]> git.saurik.com Git - wxWidgets.git/blame - configure
Fix the test for NO_GCC_PRAGMA to be faster and more accurate.
[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
e0d84535 1674WX_CURRENT=0
d230c01b 1675WX_REVISION=1
e0d84535 1676WX_AGE=0
a848cd7e
SC
1677
1678
1679
1680USE_UNIX=1
1681USE_OS2=0
1682USE_WIN32=0
1683USE_DOS=0
1684USE_BEOS=0
1685USE_MAC=0
1686
1687USE_AIX=
1688USE_BSD= USE_DARWIN= USE_FREEBSD=
1689USE_GNU= USE_HPUX=
1690USE_LINUX=
1691USE_NETBSD=
1692USE_OPENBSD=
1693USE_OSF= USE_SGI=
1694USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1695USE_ULTRIX=
1696USE_UNIXWARE=
1697
1698USE_ALPHA=
1699
1700NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1701
1702ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1703
1704DEFAULT_wxUSE_COCOA=0
1705DEFAULT_wxUSE_GTK=0
1706DEFAULT_wxUSE_MAC=0
1707DEFAULT_wxUSE_MGL=0
1708DEFAULT_wxUSE_MICROWIN=0
1709DEFAULT_wxUSE_MOTIF=0
1710DEFAULT_wxUSE_MSW=0
1711DEFAULT_wxUSE_PM=0
1712DEFAULT_wxUSE_X11=0
1713
1714DEFAULT_DEFAULT_wxUSE_COCOA=0
1715DEFAULT_DEFAULT_wxUSE_GTK=0
1716DEFAULT_DEFAULT_wxUSE_MAC=0
1717DEFAULT_DEFAULT_wxUSE_MGL=0
1718DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1719DEFAULT_DEFAULT_wxUSE_MOTIF=0
1720DEFAULT_DEFAULT_wxUSE_MSW=0
1721DEFAULT_DEFAULT_wxUSE_PM=0
1722DEFAULT_DEFAULT_wxUSE_X11=0
1723
1724PROGRAM_EXT=
1725SO_SUFFIX=so
1726SAMPLES_RPATH_FLAG=
1727SAMPLES_RPATH_POSTLINK=
1728
a03b8b04
RD
1729DEFAULT_STD_FLAG=yes
1730
a848cd7e
SC
1731case "${host}" in
1732 *-hp-hpux* )
1733 USE_HPUX=1
1734 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1735 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1736 SO_SUFFIX=sl
1737 cat >>confdefs.h <<\_ACEOF
1738#define __HPUX__ 1
1739_ACEOF
1740
1741 ;;
1742 *-*-linux* )
1743 USE_LINUX=1
1744 cat >>confdefs.h <<\_ACEOF
1745#define __LINUX__ 1
1746_ACEOF
1747
1748 TMP=`uname -m`
1749 if test "x$TMP" = "xalpha"; then
1750 USE_ALPHA=1
1751 cat >>confdefs.h <<\_ACEOF
1752#define __ALPHA__ 1
1753_ACEOF
1754
1755 fi
1756 DEFAULT_DEFAULT_wxUSE_GTK=1
1757 ;;
1758 *-*-gnu* | *-*-k*bsd*-gnu )
1759 USE_GNU=1
1760 TMP=`uname -m`
1761 if test "x$TMP" = "xalpha"; then
1762 USE_ALPHA=1
1763 cat >>confdefs.h <<\_ACEOF
1764#define __ALPHA__ 1
1765_ACEOF
1766
1767 fi
1768 DEFAULT_DEFAULT_wxUSE_GTK=1
1769 ;;
1770 *-*-irix5* | *-*-irix6* )
1771 USE_SGI=1
1772 USE_SVR4=1
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SGI__ 1
1775_ACEOF
1776
1777 cat >>confdefs.h <<\_ACEOF
1778#define __SVR4__ 1
1779_ACEOF
1780
1781 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1782 ;;
1783 *-*-solaris2* )
1784 USE_SUN=1
1785 USE_SOLARIS=1
1786 USE_SVR4=1
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SUN__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SOLARIS__ 1
1793_ACEOF
1794
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SVR4__ 1
1797_ACEOF
1798
1799 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1800 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1801 ;;
1802 *-*-sunos4* )
1803 USE_SUN=1
1804 USE_SUNOS=1
1805 USE_BSD=1
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUN__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __SUNOS__ 1
1812_ACEOF
1813
1814 cat >>confdefs.h <<\_ACEOF
1815#define __BSD__ 1
1816_ACEOF
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819 ;;
1820 *-*-freebsd*)
1821 USE_BSD=1
1822 USE_FREEBSD=1
1823 cat >>confdefs.h <<\_ACEOF
1824#define __FREEBSD__ 1
1825_ACEOF
1826
1827 cat >>confdefs.h <<\_ACEOF
1828#define __BSD__ 1
1829_ACEOF
1830
1831 DEFAULT_DEFAULT_wxUSE_GTK=1
1832 ;;
1833 *-*-openbsd*)
1834 USE_BSD=1
1835 USE_OPENBSD=1
1836 cat >>confdefs.h <<\_ACEOF
1837#define __OPENBSD__ 1
1838_ACEOF
1839
1840 cat >>confdefs.h <<\_ACEOF
1841#define __BSD__ 1
1842_ACEOF
1843
1844 DEFAULT_DEFAULT_wxUSE_GTK=1
1845 ;;
1846 *-*-netbsd*)
1847 USE_BSD=1
1848 USE_NETBSD=1
1849 cat >>confdefs.h <<\_ACEOF
1850#define __NETBSD__ 1
1851_ACEOF
1852
1853 cat >>confdefs.h <<\_ACEOF
1854#define __BSD__ 1
1855_ACEOF
1856
1857 DEFAULT_DEFAULT_wxUSE_GTK=1
1858 ;;
1859 *-*-osf* )
1860 USE_ALPHA=1
1861 USE_OSF=1
1862 cat >>confdefs.h <<\_ACEOF
1863#define __ALPHA__ 1
1864_ACEOF
1865
1866 cat >>confdefs.h <<\_ACEOF
1867#define __OSF__ 1
1868_ACEOF
1869
1870 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1872 ;;
1873 *-*-dgux5* )
1874 USE_ALPHA=1
1875 USE_SVR4=1
1876 cat >>confdefs.h <<\_ACEOF
1877#define __ALPHA__ 1
1878_ACEOF
1879
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SVR4__ 1
1882_ACEOF
1883
1884 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1885 ;;
1886 *-*-sysv5* )
1887 USE_SYSV=1
1888 USE_SVR4=1
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SYSV__ 1
1891_ACEOF
1892
1893 cat >>confdefs.h <<\_ACEOF
1894#define __SVR4__ 1
1895_ACEOF
1896
1897 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1898 ;;
1899 *-*-aix* )
1900 USE_AIX=1
1901 USE_SYSV=1
1902 USE_SVR4=1
1903 SO_SUFFIX=a
1904 cat >>confdefs.h <<\_ACEOF
1905#define __AIX__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SYSV__ 1
1910_ACEOF
1911
1912 cat >>confdefs.h <<\_ACEOF
1913#define __SVR4__ 1
1914_ACEOF
1915
1916 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1917 ;;
1918
1919 *-*-*UnixWare*)
1920 USE_SYSV=1
1921 USE_SVR4=1
1922 USE_UNIXWARE=1
1923 cat >>confdefs.h <<\_ACEOF
1924#define __UNIXWARE__ 1
1925_ACEOF
1926
1927 ;;
1928
1929 *-*-cygwin* | *-*-mingw32* )
1930 SO_SUFFIX=dll
1931 PROGRAM_EXT=".exe"
1932 RESCOMP=windres
1933 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1934 DEFAULT_STD_FLAG=no
a848cd7e
SC
1935 ;;
1936
1937 *-pc-msdosdjgpp )
1938 USE_UNIX=0
1939 USE_DOS=1
1940 cat >>confdefs.h <<\_ACEOF
1941#define __DOS__ 1
1942_ACEOF
1943
1944 PROGRAM_EXT=".exe"
1945 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1946 ;;
1947
1948 *-pc-os2_emx | *-pc-os2-emx )
1949 cat >>confdefs.h <<\_ACEOF
1950#define __EMX__ 1
1951_ACEOF
1952
1953 USE_OS2=1
1954 cat >>confdefs.h <<\_ACEOF
1955#define __OS2__ 1
1956_ACEOF
1957
1958 PROGRAM_EXT=".exe"
1959 DEFAULT_DEFAULT_wxUSE_PM=1
1960 CXX=gcc
1961 LDFLAGS="$LDFLAGS -Zcrtdll"
1962 ac_executable_extensions=".exe"
1963 export ac_executable_extensions
1964 ac_save_IFS="$IFS"
1965 IFS='\\'
1966 ac_TEMP_PATH=
1967 for ac_dir in $PATH; do
1968 IFS=$ac_save_IFS
1969 if test -z "$ac_TEMP_PATH"; then
1970 ac_TEMP_PATH="$ac_dir"
1971 else
1972 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1973 fi
1974 done
1975 export PATH="$ac_TEMP_PATH"
1976 unset ac_TEMP_PATH
a03b8b04 1977 DEFAULT_STD_FLAG=no
a848cd7e
SC
1978 ;;
1979
1980 powerpc-*-darwin* )
1981 USE_BSD=1
1982 USE_DARWIN=1
1983 SO_SUFFIX=dylib
1984 cat >>confdefs.h <<\_ACEOF
1985#define __BSD__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define __DARWIN__ 1
a848cd7e
SC
1990_ACEOF
1991
1992 cat >>confdefs.h <<\_ACEOF
1993#define TARGET_CARBON 1
1994_ACEOF
1995
1996 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1997 DEFAULT_STD_FLAG=no
a848cd7e 1998 ;;
1e9e8aba
DE
1999 powerpc-apple-macos* )
2000 USE_UNIX=0
2001 ac_cv_c_bigendian=yes
2002 SO_SUFFIX=shlib
2003 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2004 DEFAULT_STD_FLAG=no
1e9e8aba 2005 ;;
a848cd7e
SC
2006
2007 *-*-beos* )
2008 USE_BEOS=1
2009 cat >>confdefs.h <<\_ACEOF
2010#define __BEOS__ 1
2011_ACEOF
2012
2013 ;;
2014
2015 *)
2016 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2017echo "$as_me: error: unknown system type ${host}." >&2;}
2018 { (exit 1); exit 1; }; }
2019esac
2020
2021
2022
2023
2024 wx_arg_cache_file="configarg.cache"
2025 echo "loading argument cache $wx_arg_cache_file"
2026 rm -f ${wx_arg_cache_file}.tmp
2027 touch ${wx_arg_cache_file}.tmp
2028 touch ${wx_arg_cache_file}
2029
2030
2031DEBUG_CONFIGURE=0
2032if test $DEBUG_CONFIGURE = 1; then
2033 DEFAULT_wxUSE_UNIVERSAL=no
2034 DEFAULT_wxUSE_STL=no
2035
2036 DEFAULT_wxUSE_NANOX=no
2037
2038 DEFAULT_wxUSE_THREADS=yes
2039
2040 DEFAULT_wxUSE_SHARED=yes
2041 DEFAULT_wxUSE_OPTIMISE=no
2042 DEFAULT_wxUSE_PROFILE=no
2043 DEFAULT_wxUSE_NO_DEPS=no
2044 DEFAULT_wxUSE_NO_RTTI=no
2045 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2046 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2047 DEFAULT_wxUSE_PERMISSIVE=no
2048 DEFAULT_wxUSE_DEBUG_FLAG=yes
2049 DEFAULT_wxUSE_DEBUG_INFO=yes
2050 DEFAULT_wxUSE_DEBUG_GDB=yes
2051 DEFAULT_wxUSE_MEM_TRACING=no
2052 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2053 DEFAULT_wxUSE_DMALLOC=no
2054 DEFAULT_wxUSE_APPLE_IEEE=no
2055
2056 DEFAULT_wxUSE_EXCEPTIONS=no
2057 DEFAULT_wxUSE_LOG=yes
2058 DEFAULT_wxUSE_LOGWINDOW=no
2059 DEFAULT_wxUSE_LOGGUI=no
2060 DEFAULT_wxUSE_LOGDIALOG=no
2061
2062 DEFAULT_wxUSE_GUI=yes
2063 DEFAULT_wxUSE_CONTROLS=no
2064
2065 DEFAULT_wxUSE_REGEX=no
2066 DEFAULT_wxUSE_XML=no
2067 DEFAULT_wxUSE_EXPAT=no
2068 DEFAULT_wxUSE_ZLIB=no
2069 DEFAULT_wxUSE_LIBPNG=no
2070 DEFAULT_wxUSE_LIBJPEG=no
2071 DEFAULT_wxUSE_LIBTIFF=no
2072 DEFAULT_wxUSE_LIBXPM=no
2073 DEFAULT_wxUSE_LIBMSPACK=no
2074 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2075 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2076 DEFAULT_wxUSE_ODBC=no
2077 DEFAULT_wxUSE_OPENGL=no
2078
2079 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2080 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2081 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2082 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2083 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2084 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2085 DEFAULT_wxUSE_CMDLINE_PARSER=no
2086 DEFAULT_wxUSE_DATETIME=no
2087 DEFAULT_wxUSE_TIMER=no
2088 DEFAULT_wxUSE_STOPWATCH=no
2089 DEFAULT_wxUSE_FILE=no
2090 DEFAULT_wxUSE_FFILE=no
07158944 2091 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2092 DEFAULT_wxUSE_TEXTBUFFER=no
2093 DEFAULT_wxUSE_TEXTFILE=no
2094 DEFAULT_wxUSE_SOUND=no
3b57de8b 2095 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2096 DEFAULT_wxUSE_INTL=no
2097 DEFAULT_wxUSE_CONFIG=no
2098 DEFAULT_wxUSE_FONTMAP=no
2099 DEFAULT_wxUSE_STREAMS=no
2100 DEFAULT_wxUSE_SOCKETS=no
2101 DEFAULT_wxUSE_OLE=no
2102 DEFAULT_wxUSE_DATAOBJ=no
2103 DEFAULT_wxUSE_DIALUP_MANAGER=no
2104 DEFAULT_wxUSE_JOYSTICK=no
2105 DEFAULT_wxUSE_DYNLIB_CLASS=no
2106 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2107 DEFAULT_wxUSE_LONGLONG=no
2108 DEFAULT_wxUSE_GEOMETRY=no
2109
2110 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2111 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2112 DEFAULT_wxUSE_POSTSCRIPT=no
2113
2114 DEFAULT_wxUSE_CLIPBOARD=no
2115 DEFAULT_wxUSE_TOOLTIPS=no
2116 DEFAULT_wxUSE_DRAG_AND_DROP=no
2117 DEFAULT_wxUSE_DRAGIMAGE=no
2118 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2119 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2120
8a7b1113 2121 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2122 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2123 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2124 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2125
2126 DEFAULT_wxUSE_RESOURCES=no
2127 DEFAULT_wxUSE_CONSTRAINTS=no
2128 DEFAULT_wxUSE_IPC=no
2129 DEFAULT_wxUSE_HELP=no
2130 DEFAULT_wxUSE_MS_HTML_HELP=no
2131 DEFAULT_wxUSE_WXHTML_HELP=no
2132 DEFAULT_wxUSE_TREELAYOUT=no
2133 DEFAULT_wxUSE_METAFILE=no
2134 DEFAULT_wxUSE_MIMETYPE=no
2135 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2136 DEFAULT_wxUSE_PROTOCOL=no
2137 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2138 DEFAULT_wxUSE_PROTOCOL_FTP=no
2139 DEFAULT_wxUSE_PROTOCOL_FILE=no
2140 DEFAULT_wxUSE_URL=no
2141
2142 DEFAULT_wxUSE_COMMONDLGS=no
2143 DEFAULT_wxUSE_CHOICEDLG=no
2144 DEFAULT_wxUSE_COLOURDLG=no
2145 DEFAULT_wxUSE_DIRDLG=no
2146 DEFAULT_wxUSE_FILEDLG=no
2147 DEFAULT_wxUSE_FINDREPLDLG=no
2148 DEFAULT_wxUSE_FONTDLG=no
2149 DEFAULT_wxUSE_MSGDLG=no
2150 DEFAULT_wxUSE_NUMBERDLG=no
2151 DEFAULT_wxUSE_TEXTDLG=no
2152 DEFAULT_wxUSE_SPLASH=no
2153 DEFAULT_wxUSE_STARTUP_TIPS=no
2154 DEFAULT_wxUSE_PROGRESSDLG=no
2155 DEFAULT_wxUSE_WIZARDDLG=no
2156
2157 DEFAULT_wxUSE_MENUS=no
2158 DEFAULT_wxUSE_MINIFRAME=no
2159 DEFAULT_wxUSE_HTML=no
9a8f0513 2160 DEFAULT_wxUSE_XRC=no
646b6ec1 2161 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2162 DEFAULT_wxUSE_FILESYSTEM=no
2163 DEFAULT_wxUSE_FS_INET=no
2164 DEFAULT_wxUSE_FS_ZIP=no
2165 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2166 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2167 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2168 DEFAULT_wxUSE_VALIDATORS=no
2169
2170 DEFAULT_wxUSE_ACCEL=no
2171 DEFAULT_wxUSE_BUTTON=no
2172 DEFAULT_wxUSE_BMPBUTTON=no
2173 DEFAULT_wxUSE_CALCTRL=no
2174 DEFAULT_wxUSE_CARET=no
2175 DEFAULT_wxUSE_CHECKBOX=no
2176 DEFAULT_wxUSE_CHECKLST=no
2177 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2178 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2179 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2180 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2181 DEFAULT_wxUSE_DISPLAY=no
2182 DEFAULT_wxUSE_GAUGE=no
2183 DEFAULT_wxUSE_GRID=no
2184 DEFAULT_wxUSE_IMAGLIST=no
2185 DEFAULT_wxUSE_LISTBOOK=no
2186 DEFAULT_wxUSE_LISTBOX=no
2187 DEFAULT_wxUSE_LISTCTRL=no
2188 DEFAULT_wxUSE_NOTEBOOK=no
2189 DEFAULT_wxUSE_RADIOBOX=no
2190 DEFAULT_wxUSE_RADIOBTN=no
2191 DEFAULT_wxUSE_SASH=no
2192 DEFAULT_wxUSE_SCROLLBAR=no
2193 DEFAULT_wxUSE_SLIDER=no
2194 DEFAULT_wxUSE_SPINBTN=no
2195 DEFAULT_wxUSE_SPINCTRL=no
2196 DEFAULT_wxUSE_SPLITTER=no
2197 DEFAULT_wxUSE_STATBMP=no
2198 DEFAULT_wxUSE_STATBOX=no
2199 DEFAULT_wxUSE_STATLINE=no
2200 DEFAULT_wxUSE_STATTEXT=no
2201 DEFAULT_wxUSE_STATUSBAR=yes
2202 DEFAULT_wxUSE_TABDIALOG=no
2203 DEFAULT_wxUSE_TEXTCTRL=no
2204 DEFAULT_wxUSE_TOGGLEBTN=no
2205 DEFAULT_wxUSE_TOOLBAR=no
2206 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2207 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2208 DEFAULT_wxUSE_TREECTRL=no
2209 DEFAULT_wxUSE_POPUPWIN=no
2210 DEFAULT_wxUSE_TIPWINDOW=no
2211
2212 DEFAULT_wxUSE_UNICODE=no
2213 DEFAULT_wxUSE_UNICODE_MSLU=no
2214 DEFAULT_wxUSE_WCSRTOMBS=no
2215
2216 DEFAULT_wxUSE_PALETTE=no
2217 DEFAULT_wxUSE_IMAGE=no
2218 DEFAULT_wxUSE_GIF=no
2219 DEFAULT_wxUSE_PCX=no
2220 DEFAULT_wxUSE_PNM=no
2221 DEFAULT_wxUSE_IFF=no
2222 DEFAULT_wxUSE_XPM=no
2223 DEFAULT_wxUSE_ICO_CUR=no
2224 DEFAULT_wxUSE_ACCESSIBILITY=no
2225
2226 DEFAULT_wxUSE_MONOLITHIC=no
2227 DEFAULT_wxUSE_PLUGINS=no
2228 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2229else
2230 DEFAULT_wxUSE_UNIVERSAL=no
2231 DEFAULT_wxUSE_STL=no
2232
2233 DEFAULT_wxUSE_NANOX=no
2234
2235 DEFAULT_wxUSE_THREADS=yes
2236
2237 DEFAULT_wxUSE_SHARED=yes
2238 DEFAULT_wxUSE_OPTIMISE=yes
2239 DEFAULT_wxUSE_PROFILE=no
2240 DEFAULT_wxUSE_NO_DEPS=no
2241 DEFAULT_wxUSE_NO_RTTI=no
2242 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2243 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2244 DEFAULT_wxUSE_PERMISSIVE=no
2245 DEFAULT_wxUSE_DEBUG_FLAG=no
2246 DEFAULT_wxUSE_DEBUG_INFO=no
2247 DEFAULT_wxUSE_DEBUG_GDB=no
2248 DEFAULT_wxUSE_MEM_TRACING=no
2249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2250 DEFAULT_wxUSE_DMALLOC=no
2251 DEFAULT_wxUSE_APPLE_IEEE=yes
2252
2253 DEFAULT_wxUSE_EXCEPTIONS=yes
2254 DEFAULT_wxUSE_LOG=yes
2255 DEFAULT_wxUSE_LOGWINDOW=yes
2256 DEFAULT_wxUSE_LOGGUI=yes
2257 DEFAULT_wxUSE_LOGDIALOG=yes
2258
2259 DEFAULT_wxUSE_GUI=yes
2260
2261 DEFAULT_wxUSE_REGEX=yes
2262 DEFAULT_wxUSE_XML=yes
2263 DEFAULT_wxUSE_EXPAT=yes
2264 DEFAULT_wxUSE_ZLIB=yes
2265 DEFAULT_wxUSE_LIBPNG=yes
2266 DEFAULT_wxUSE_LIBJPEG=yes
2267 DEFAULT_wxUSE_LIBTIFF=yes
2268 DEFAULT_wxUSE_LIBXPM=yes
2269 DEFAULT_wxUSE_LIBMSPACK=yes
2270 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2271 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2272 DEFAULT_wxUSE_ODBC=no
52cb607e 2273 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2274
2275 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2276 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2277 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2278 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2279 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2280 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2281 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2282 DEFAULT_wxUSE_DATETIME=yes
2283 DEFAULT_wxUSE_TIMER=yes
2284 DEFAULT_wxUSE_STOPWATCH=yes
2285 DEFAULT_wxUSE_FILE=yes
2286 DEFAULT_wxUSE_FFILE=yes
07158944 2287 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2288 DEFAULT_wxUSE_TEXTBUFFER=yes
2289 DEFAULT_wxUSE_TEXTFILE=yes
2290 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2291 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2292 DEFAULT_wxUSE_INTL=yes
2293 DEFAULT_wxUSE_CONFIG=yes
2294 DEFAULT_wxUSE_FONTMAP=yes
2295 DEFAULT_wxUSE_STREAMS=yes
2296 DEFAULT_wxUSE_SOCKETS=yes
2297 DEFAULT_wxUSE_OLE=yes
2298 DEFAULT_wxUSE_DATAOBJ=yes
2299 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2300 DEFAULT_wxUSE_JOYSTICK=yes
2301 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2302 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2303 DEFAULT_wxUSE_LONGLONG=yes
2304 DEFAULT_wxUSE_GEOMETRY=yes
2305
2306 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2307 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2308 DEFAULT_wxUSE_POSTSCRIPT=yes
2309
2310 DEFAULT_wxUSE_CLIPBOARD=yes
2311 DEFAULT_wxUSE_TOOLTIPS=yes
2312 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2313 DEFAULT_wxUSE_DRAGIMAGE=yes
2314 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2315 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2316
8a7b1113 2317 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2318 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2319 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2320 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2321
2322 DEFAULT_wxUSE_RESOURCES=no
2323 DEFAULT_wxUSE_CONSTRAINTS=yes
2324 DEFAULT_wxUSE_IPC=yes
2325 DEFAULT_wxUSE_HELP=yes
2326 DEFAULT_wxUSE_MS_HTML_HELP=yes
2327 DEFAULT_wxUSE_WXHTML_HELP=yes
2328 DEFAULT_wxUSE_TREELAYOUT=yes
2329 DEFAULT_wxUSE_METAFILE=yes
2330 DEFAULT_wxUSE_MIMETYPE=yes
2331 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2332 DEFAULT_wxUSE_PROTOCOL=yes
2333 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2334 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2335 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2336 DEFAULT_wxUSE_URL=yes
2337
2338 DEFAULT_wxUSE_COMMONDLGS=yes
2339 DEFAULT_wxUSE_CHOICEDLG=yes
2340 DEFAULT_wxUSE_COLOURDLG=yes
2341 DEFAULT_wxUSE_DIRDLG=yes
2342 DEFAULT_wxUSE_FILEDLG=yes
2343 DEFAULT_wxUSE_FINDREPLDLG=yes
2344 DEFAULT_wxUSE_FONTDLG=yes
2345 DEFAULT_wxUSE_MSGDLG=yes
2346 DEFAULT_wxUSE_NUMBERDLG=yes
2347 DEFAULT_wxUSE_TEXTDLG=yes
2348 DEFAULT_wxUSE_SPLASH=yes
2349 DEFAULT_wxUSE_STARTUP_TIPS=yes
2350 DEFAULT_wxUSE_PROGRESSDLG=yes
2351 DEFAULT_wxUSE_WIZARDDLG=yes
2352
2353 DEFAULT_wxUSE_MENUS=yes
2354 DEFAULT_wxUSE_MINIFRAME=yes
2355 DEFAULT_wxUSE_HTML=yes
9a8f0513 2356 DEFAULT_wxUSE_XRC=yes
646b6ec1 2357 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2358 DEFAULT_wxUSE_FILESYSTEM=yes
2359 DEFAULT_wxUSE_FS_INET=yes
2360 DEFAULT_wxUSE_FS_ZIP=yes
2361 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2362 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2363 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2364 DEFAULT_wxUSE_VALIDATORS=yes
2365
2366 DEFAULT_wxUSE_ACCEL=yes
2367 DEFAULT_wxUSE_BUTTON=yes
2368 DEFAULT_wxUSE_BMPBUTTON=yes
2369 DEFAULT_wxUSE_CALCTRL=yes
2370 DEFAULT_wxUSE_CARET=yes
2371 DEFAULT_wxUSE_CHECKBOX=yes
2372 DEFAULT_wxUSE_CHECKLST=yes
2373 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2374 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2375 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2376 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2377 DEFAULT_wxUSE_DISPLAY=yes
2378 DEFAULT_wxUSE_GAUGE=yes
2379 DEFAULT_wxUSE_GRID=yes
2380 DEFAULT_wxUSE_IMAGLIST=yes
2381 DEFAULT_wxUSE_LISTBOOK=yes
2382 DEFAULT_wxUSE_LISTBOX=yes
2383 DEFAULT_wxUSE_LISTCTRL=yes
2384 DEFAULT_wxUSE_NOTEBOOK=yes
2385 DEFAULT_wxUSE_RADIOBOX=yes
2386 DEFAULT_wxUSE_RADIOBTN=yes
2387 DEFAULT_wxUSE_SASH=yes
2388 DEFAULT_wxUSE_SCROLLBAR=yes
2389 DEFAULT_wxUSE_SLIDER=yes
2390 DEFAULT_wxUSE_SPINBTN=yes
2391 DEFAULT_wxUSE_SPINCTRL=yes
2392 DEFAULT_wxUSE_SPLITTER=yes
2393 DEFAULT_wxUSE_STATBMP=yes
2394 DEFAULT_wxUSE_STATBOX=yes
2395 DEFAULT_wxUSE_STATLINE=yes
2396 DEFAULT_wxUSE_STATTEXT=yes
2397 DEFAULT_wxUSE_STATUSBAR=yes
2398 DEFAULT_wxUSE_TABDIALOG=no
2399 DEFAULT_wxUSE_TEXTCTRL=yes
2400 DEFAULT_wxUSE_TOGGLEBTN=yes
2401 DEFAULT_wxUSE_TOOLBAR=yes
2402 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2403 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2404 DEFAULT_wxUSE_TREECTRL=yes
2405 DEFAULT_wxUSE_POPUPWIN=yes
2406 DEFAULT_wxUSE_TIPWINDOW=yes
2407
78de529b 2408 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2409 DEFAULT_wxUSE_UNICODE_MSLU=yes
2410 DEFAULT_wxUSE_WCSRTOMBS=no
2411
2412 DEFAULT_wxUSE_PALETTE=yes
2413 DEFAULT_wxUSE_IMAGE=yes
2414 DEFAULT_wxUSE_GIF=yes
2415 DEFAULT_wxUSE_PCX=yes
2416 DEFAULT_wxUSE_IFF=no
2417 DEFAULT_wxUSE_PNM=yes
2418 DEFAULT_wxUSE_XPM=yes
2419 DEFAULT_wxUSE_ICO_CUR=yes
2420 DEFAULT_wxUSE_ACCESSIBILITY=no
2421
2422 DEFAULT_wxUSE_MONOLITHIC=no
2423 DEFAULT_wxUSE_PLUGINS=no
2424 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2425
f34ca037 2426 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2427fi
2428
2429
2430
f34ca037 2431
a848cd7e
SC
2432for toolkit in `echo $ALL_TOOLKITS`; do
2433 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2434 if test "x$LINE" != "x" ; then
2435 has_toolkit_in_cache=1
2436 eval "DEFAULT_$LINE"
2437 eval "CACHE_$toolkit=1"
f34ca037
MW
2438
2439 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2440 if test "x$LINE" != "x" ; then
2441 eval "DEFAULT_$LINE"
2442 fi
a848cd7e
SC
2443 fi
2444done
2445
2446
2447
2448 enablestring=
2449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2450echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2451 no_cache=0
2452 # Check whether --enable-gui or --disable-gui was given.
2453if test "${enable_gui+set}" = set; then
2454 enableval="$enable_gui"
2455
2456 if test "$enableval" = yes; then
2457 ac_cv_use_gui='wxUSE_GUI=yes'
2458 else
2459 ac_cv_use_gui='wxUSE_GUI=no'
2460 fi
2461
2462else
2463
2464 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2465 if test "x$LINE" != x ; then
2466 eval "DEFAULT_$LINE"
2467 else
2468 no_cache=1
2469 fi
2470
2471 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2472
2473fi;
2474
2475 eval "$ac_cv_use_gui"
2476 if test "$no_cache" != 1; then
2477 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2478 fi
2479
2480 if test "$wxUSE_GUI" = yes; then
2481 echo "$as_me:$LINENO: result: yes" >&5
2482echo "${ECHO_T}yes" >&6
2483 else
2484 echo "$as_me:$LINENO: result: no" >&5
2485echo "${ECHO_T}no" >&6
2486 fi
2487
2488
2489 enablestring=
2490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2491echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2492 no_cache=0
2493 # Check whether --enable-monolithic or --disable-monolithic was given.
2494if test "${enable_monolithic+set}" = set; then
2495 enableval="$enable_monolithic"
2496
2497 if test "$enableval" = yes; then
2498 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2499 else
2500 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2501 fi
2502
2503else
2504
2505 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2506 if test "x$LINE" != x ; then
2507 eval "DEFAULT_$LINE"
2508 else
2509 no_cache=1
2510 fi
2511
2512 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2513
2514fi;
2515
2516 eval "$ac_cv_use_monolithic"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_MONOLITHIC" = yes; then
2522 echo "$as_me:$LINENO: result: yes" >&5
2523echo "${ECHO_T}yes" >&6
2524 else
2525 echo "$as_me:$LINENO: result: no" >&5
2526echo "${ECHO_T}no" >&6
2527 fi
2528
2529
2530 enablestring=
2531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2532echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2533 no_cache=0
2534 # Check whether --enable-plugins or --disable-plugins was given.
2535if test "${enable_plugins+set}" = set; then
2536 enableval="$enable_plugins"
2537
2538 if test "$enableval" = yes; then
2539 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2540 else
2541 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2542 fi
2543
2544else
2545
2546 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2554
2555fi;
2556
2557 eval "$ac_cv_use_plugins"
2558 if test "$no_cache" != 1; then
2559 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2560 fi
2561
2562 if test "$wxUSE_PLUGINS" = yes; then
2563 echo "$as_me:$LINENO: result: yes" >&5
2564echo "${ECHO_T}yes" >&6
2565 else
2566 echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6
2568 fi
2569
2570
2571if test "$wxUSE_GUI" = "yes"; then
2572
2573
2574 enablestring=
2575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2576echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2577 no_cache=0
2578 # Check whether --enable-universal or --disable-universal was given.
2579if test "${enable_universal+set}" = set; then
2580 enableval="$enable_universal"
2581
2582 if test "$enableval" = yes; then
2583 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2584 else
2585 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2586 fi
2587
2588else
2589
2590 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2591 if test "x$LINE" != x ; then
2592 eval "DEFAULT_$LINE"
2593 else
2594 no_cache=1
2595 fi
2596
2597 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2598
2599fi;
2600
2601 eval "$ac_cv_use_universal"
2602 if test "$no_cache" != 1; then
2603 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2604 fi
2605
2606 if test "$wxUSE_UNIVERSAL" = yes; then
2607 echo "$as_me:$LINENO: result: yes" >&5
2608echo "${ECHO_T}yes" >&6
2609 else
2610 echo "$as_me:$LINENO: result: no" >&5
2611echo "${ECHO_T}no" >&6
2612 fi
2613
2614
2615# Check whether --with-gtk or --without-gtk was given.
2616if test "${with_gtk+set}" = set; then
2617 withval="$with_gtk"
2618 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2619fi;
2620
2621# Check whether --with-motif or --without-motif was given.
2622if test "${with_motif+set}" = set; then
2623 withval="$with_motif"
2624 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2625fi;
2626
2627# Check whether --with-mac or --without-mac was given.
2628if test "${with_mac+set}" = set; then
2629 withval="$with_mac"
c228d3a4 2630 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2631fi;
2632
2633# Check whether --with-cocoa or --without-cocoa was given.
2634if test "${with_cocoa+set}" = set; then
2635 withval="$with_cocoa"
c228d3a4 2636 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2637fi;
2638
2639# Check whether --with-wine or --without-wine was given.
2640if test "${with_wine+set}" = set; then
2641 withval="$with_wine"
2642 wxUSE_WINE="$withval" CACHE_WINE=1
2643fi;
2644
2645# Check whether --with-msw or --without-msw was given.
2646if test "${with_msw+set}" = set; then
2647 withval="$with_msw"
2648 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2649fi;
2650
2651# Check whether --with-pm or --without-pm was given.
2652if test "${with_pm+set}" = set; then
2653 withval="$with_pm"
2654 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2655fi;
2656
2657# Check whether --with-mgl or --without-mgl was given.
2658if test "${with_mgl+set}" = set; then
2659 withval="$with_mgl"
2660 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2661fi;
2662
2663# Check whether --with-microwin or --without-microwin was given.
2664if test "${with_microwin+set}" = set; then
2665 withval="$with_microwin"
2666 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2667fi;
2668
2669# Check whether --with-x11 or --without-x11 was given.
2670if test "${with_x11+set}" = set; then
2671 withval="$with_x11"
2672 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2673fi;
2674
2675 enablestring=
2676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2677echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2678 no_cache=0
2679 # Check whether --enable-nanox or --disable-nanox was given.
2680if test "${enable_nanox+set}" = set; then
2681 enableval="$enable_nanox"
2682
2683 if test "$enableval" = yes; then
2684 ac_cv_use_nanox='wxUSE_NANOX=yes'
2685 else
2686 ac_cv_use_nanox='wxUSE_NANOX=no'
2687 fi
2688
2689else
2690
2691 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2692 if test "x$LINE" != x ; then
2693 eval "DEFAULT_$LINE"
2694 else
2695 no_cache=1
2696 fi
2697
2698 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2699
2700fi;
2701
2702 eval "$ac_cv_use_nanox"
2703 if test "$no_cache" != 1; then
2704 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2705 fi
2706
2707 if test "$wxUSE_NANOX" = yes; then
2708 echo "$as_me:$LINENO: result: yes" >&5
2709echo "${ECHO_T}yes" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6
2713 fi
2714
2715
f34ca037
MW
2716# Check whether --enable-gtk2 or --disable-gtk2 was given.
2717if test "${enable_gtk2+set}" = set; then
2718 enableval="$enable_gtk2"
2719 wxUSE_GTK2="$enableval"
2720fi;
a848cd7e 2721
a848cd7e
SC
2722 enablestring=
2723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2724echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2725 no_cache=0
2726 # Check whether --enable-gpe or --disable-gpe was given.
2727if test "${enable_gpe+set}" = set; then
2728 enableval="$enable_gpe"
2729
2730 if test "$enableval" = yes; then
2731 ac_cv_use_gpe='wxUSE_GPE=yes'
2732 else
2733 ac_cv_use_gpe='wxUSE_GPE=no'
2734 fi
2735
2736else
2737
2738 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2739 if test "x$LINE" != x ; then
2740 eval "DEFAULT_$LINE"
2741 else
2742 no_cache=1
2743 fi
2744
2745 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2746
2747fi;
2748
2749 eval "$ac_cv_use_gpe"
2750 if test "$no_cache" != 1; then
2751 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2752 fi
2753
2754 if test "$wxUSE_GPE" = yes; then
2755 echo "$as_me:$LINENO: result: yes" >&5
2756echo "${ECHO_T}yes" >&6
2757 else
2758 echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6
2760 fi
2761
2762
2763
2764 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2765echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2766 no_cache=0
2767
2768# Check whether --with-libpng or --without-libpng was given.
2769if test "${with_libpng+set}" = set; then
2770 withval="$with_libpng"
2771
2772 if test "$withval" = yes; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2774 elif test "$withval" = no; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2776 elif test "$withval" = sys; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2778 elif test "$withval" = builtin; then
2779 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2780 else
2781 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2782echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2783 { (exit 1); exit 1; }; }
2784 fi
2785
2786else
2787
2788 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2789 if test "x$LINE" != x ; then
2790 eval "DEFAULT_$LINE"
2791 else
2792 no_cache=1
2793 fi
2794
2795 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2796
2797fi;
2798
2799 eval "$ac_cv_use_libpng"
2800 if test "$no_cache" != 1; then
2801 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2802 fi
2803
2804 if test "$wxUSE_LIBPNG" = yes; then
2805 echo "$as_me:$LINENO: result: yes" >&5
2806echo "${ECHO_T}yes" >&6
2807 elif test "$wxUSE_LIBPNG" = no; then
2808 echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6
2810 elif test "$wxUSE_LIBPNG" = sys; then
2811 echo "$as_me:$LINENO: result: system version" >&5
2812echo "${ECHO_T}system version" >&6
2813 elif test "$wxUSE_LIBPNG" = builtin; then
2814 echo "$as_me:$LINENO: result: builtin version" >&5
2815echo "${ECHO_T}builtin version" >&6
2816 else
2817 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2818echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2819 { (exit 1); exit 1; }; }
2820 fi
2821
2822
2823 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2824echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2825 no_cache=0
2826
2827# Check whether --with-libjpeg or --without-libjpeg was given.
2828if test "${with_libjpeg+set}" = set; then
2829 withval="$with_libjpeg"
2830
2831 if test "$withval" = yes; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2833 elif test "$withval" = no; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2835 elif test "$withval" = sys; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2837 elif test "$withval" = builtin; then
2838 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2839 else
2840 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2841echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2842 { (exit 1); exit 1; }; }
2843 fi
2844
2845else
2846
2847 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2848 if test "x$LINE" != x ; then
2849 eval "DEFAULT_$LINE"
2850 else
2851 no_cache=1
2852 fi
2853
2854 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2855
2856fi;
2857
2858 eval "$ac_cv_use_libjpeg"
2859 if test "$no_cache" != 1; then
2860 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2861 fi
2862
2863 if test "$wxUSE_LIBJPEG" = yes; then
2864 echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6
2866 elif test "$wxUSE_LIBJPEG" = no; then
2867 echo "$as_me:$LINENO: result: no" >&5
2868echo "${ECHO_T}no" >&6
2869 elif test "$wxUSE_LIBJPEG" = sys; then
2870 echo "$as_me:$LINENO: result: system version" >&5
2871echo "${ECHO_T}system version" >&6
2872 elif test "$wxUSE_LIBJPEG" = builtin; then
2873 echo "$as_me:$LINENO: result: builtin version" >&5
2874echo "${ECHO_T}builtin version" >&6
2875 else
2876 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2877echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2878 { (exit 1); exit 1; }; }
2879 fi
2880
2881
2882 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2883echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2884 no_cache=0
2885
2886# Check whether --with-libtiff or --without-libtiff was given.
2887if test "${with_libtiff+set}" = set; then
2888 withval="$with_libtiff"
2889
2890 if test "$withval" = yes; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2892 elif test "$withval" = no; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2894 elif test "$withval" = sys; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2896 elif test "$withval" = builtin; then
2897 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2898 else
2899 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2900echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2901 { (exit 1); exit 1; }; }
2902 fi
2903
2904else
2905
2906 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2907 if test "x$LINE" != x ; then
2908 eval "DEFAULT_$LINE"
2909 else
2910 no_cache=1
2911 fi
2912
2913 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2914
2915fi;
2916
2917 eval "$ac_cv_use_libtiff"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_LIBTIFF" = yes; then
2923 echo "$as_me:$LINENO: result: yes" >&5
2924echo "${ECHO_T}yes" >&6
2925 elif test "$wxUSE_LIBTIFF" = no; then
2926 echo "$as_me:$LINENO: result: no" >&5
2927echo "${ECHO_T}no" >&6
2928 elif test "$wxUSE_LIBTIFF" = sys; then
2929 echo "$as_me:$LINENO: result: system version" >&5
2930echo "${ECHO_T}system version" >&6
2931 elif test "$wxUSE_LIBTIFF" = builtin; then
2932 echo "$as_me:$LINENO: result: builtin version" >&5
2933echo "${ECHO_T}builtin version" >&6
2934 else
2935 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2936echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2937 { (exit 1); exit 1; }; }
2938 fi
2939
2940
2941 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2942echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2943 no_cache=0
2944
2945# Check whether --with-libxpm or --without-libxpm was given.
2946if test "${with_libxpm+set}" = set; then
2947 withval="$with_libxpm"
2948
2949 if test "$withval" = yes; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2951 elif test "$withval" = no; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2953 elif test "$withval" = sys; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2955 elif test "$withval" = builtin; then
2956 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2957 else
2958 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2959echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2960 { (exit 1); exit 1; }; }
2961 fi
2962
2963else
2964
2965 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2966 if test "x$LINE" != x ; then
2967 eval "DEFAULT_$LINE"
2968 else
2969 no_cache=1
2970 fi
2971
2972 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2973
2974fi;
2975
2976 eval "$ac_cv_use_libxpm"
2977 if test "$no_cache" != 1; then
2978 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2979 fi
2980
2981 if test "$wxUSE_LIBXPM" = yes; then
2982 echo "$as_me:$LINENO: result: yes" >&5
2983echo "${ECHO_T}yes" >&6
2984 elif test "$wxUSE_LIBXPM" = no; then
2985 echo "$as_me:$LINENO: result: no" >&5
2986echo "${ECHO_T}no" >&6
2987 elif test "$wxUSE_LIBXPM" = sys; then
2988 echo "$as_me:$LINENO: result: system version" >&5
2989echo "${ECHO_T}system version" >&6
2990 elif test "$wxUSE_LIBXPM" = builtin; then
2991 echo "$as_me:$LINENO: result: builtin version" >&5
2992echo "${ECHO_T}builtin version" >&6
2993 else
2994 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2995echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2996 { (exit 1); exit 1; }; }
2997 fi
2998
2999
3000 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3001echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3002 no_cache=0
3003
3004# Check whether --with-libmspack or --without-libmspack was given.
3005if test "${with_libmspack+set}" = set; then
3006 withval="$with_libmspack"
3007
3008 if test "$withval" = yes; then
3009 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3010 else
3011 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3012 fi
3013
3014else
3015
3016 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
3023 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3024
3025fi;
3026
3027 eval "$ac_cv_use_libmspack"
3028 if test "$no_cache" != 1; then
3029 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3030 fi
3031
3032 if test "$wxUSE_LIBMSPACK" = yes; then
3033 echo "$as_me:$LINENO: result: yes" >&5
3034echo "${ECHO_T}yes" >&6
3035 else
3036 echo "$as_me:$LINENO: result: no" >&5
3037echo "${ECHO_T}no" >&6
3038 fi
3039
3040
3041 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3042echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3043 no_cache=0
3044
3045# Check whether --with-sdl or --without-sdl was given.
3046if test "${with_sdl+set}" = set; then
3047 withval="$with_sdl"
3048
3049 if test "$withval" = yes; then
3050 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3051 else
3052 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3053 fi
3054
3055else
3056
3057 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3058 if test "x$LINE" != x ; then
3059 eval "DEFAULT_$LINE"
3060 else
3061 no_cache=1
3062 fi
3063
3064 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3065
3066fi;
3067
3068 eval "$ac_cv_use_sdl"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_LIBSDL" = yes; then
3074 echo "$as_me:$LINENO: result: yes" >&5
3075echo "${ECHO_T}yes" >&6
3076 else
3077 echo "$as_me:$LINENO: result: no" >&5
3078echo "${ECHO_T}no" >&6
3079 fi
3080
3081
d1c38808
VZ
3082 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3083echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3084 no_cache=0
3085
3086# Check whether --with-gnomeprint or --without-gnomeprint was given.
3087if test "${with_gnomeprint+set}" = set; then
3088 withval="$with_gnomeprint"
3089
3090 if test "$withval" = yes; then
3091 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3092 else
3093 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3094 fi
3095
3096else
3097
3098 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3106
3107fi;
3108
3109 eval "$ac_cv_use_gnomeprint"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3115 echo "$as_me:$LINENO: result: yes" >&5
3116echo "${ECHO_T}yes" >&6
3117 else
3118 echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
3120 fi
3121
3122
a848cd7e
SC
3123 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3124echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3125 no_cache=0
3126
3127# Check whether --with-opengl or --without-opengl was given.
3128if test "${with_opengl+set}" = set; then
3129 withval="$with_opengl"
3130
3131 if test "$withval" = yes; then
3132 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3133 else
3134 ac_cv_use_opengl='wxUSE_OPENGL=no'
3135 fi
3136
3137else
3138
3139 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3140 if test "x$LINE" != x ; then
3141 eval "DEFAULT_$LINE"
3142 else
3143 no_cache=1
3144 fi
3145
3146 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3147
3148fi;
3149
3150 eval "$ac_cv_use_opengl"
3151 if test "$no_cache" != 1; then
3152 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3153 fi
3154
3155 if test "$wxUSE_OPENGL" = yes; then
3156 echo "$as_me:$LINENO: result: yes" >&5
3157echo "${ECHO_T}yes" >&6
3158 else
3159 echo "$as_me:$LINENO: result: no" >&5
3160echo "${ECHO_T}no" >&6
3161 fi
3162
3163
3164fi
3165
3166
3167 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3168echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3169 no_cache=0
3170
3171# Check whether --with-dmalloc or --without-dmalloc was given.
3172if test "${with_dmalloc+set}" = set; then
3173 withval="$with_dmalloc"
3174
3175 if test "$withval" = yes; then
3176 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3177 else
3178 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3179 fi
3180
3181else
3182
3183 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3184 if test "x$LINE" != x ; then
3185 eval "DEFAULT_$LINE"
3186 else
3187 no_cache=1
3188 fi
3189
3190 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3191
3192fi;
3193
3194 eval "$ac_cv_use_dmalloc"
3195 if test "$no_cache" != 1; then
3196 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3197 fi
3198
3199 if test "$wxUSE_DMALLOC" = yes; then
3200 echo "$as_me:$LINENO: result: yes" >&5
3201echo "${ECHO_T}yes" >&6
3202 else
3203 echo "$as_me:$LINENO: result: no" >&5
3204echo "${ECHO_T}no" >&6
3205 fi
3206
3207
3208 echo "$as_me:$LINENO: checking for --with-regex" >&5
3209echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3210 no_cache=0
3211
3212# Check whether --with-regex or --without-regex was given.
3213if test "${with_regex+set}" = set; then
3214 withval="$with_regex"
3215
3216 if test "$withval" = yes; then
3217 ac_cv_use_regex='wxUSE_REGEX=yes'
3218 elif test "$withval" = no; then
3219 ac_cv_use_regex='wxUSE_REGEX=no'
3220 elif test "$withval" = sys; then
3221 ac_cv_use_regex='wxUSE_REGEX=sys'
3222 elif test "$withval" = builtin; then
3223 ac_cv_use_regex='wxUSE_REGEX=builtin'
3224 else
3225 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3226echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3227 { (exit 1); exit 1; }; }
3228 fi
3229
3230else
3231
3232 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3233 if test "x$LINE" != x ; then
3234 eval "DEFAULT_$LINE"
3235 else
3236 no_cache=1
3237 fi
3238
3239 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3240
3241fi;
3242
3243 eval "$ac_cv_use_regex"
3244 if test "$no_cache" != 1; then
3245 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3246 fi
3247
3248 if test "$wxUSE_REGEX" = yes; then
3249 echo "$as_me:$LINENO: result: yes" >&5
3250echo "${ECHO_T}yes" >&6
3251 elif test "$wxUSE_REGEX" = no; then
3252 echo "$as_me:$LINENO: result: no" >&5
3253echo "${ECHO_T}no" >&6
3254 elif test "$wxUSE_REGEX" = sys; then
3255 echo "$as_me:$LINENO: result: system version" >&5
3256echo "${ECHO_T}system version" >&6
3257 elif test "$wxUSE_REGEX" = builtin; then
3258 echo "$as_me:$LINENO: result: builtin version" >&5
3259echo "${ECHO_T}builtin version" >&6
3260 else
3261 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3262echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3263 { (exit 1); exit 1; }; }
3264 fi
3265
3266
3267 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3268echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3269 no_cache=0
3270
3271# Check whether --with-zlib or --without-zlib was given.
3272if test "${with_zlib+set}" = set; then
3273 withval="$with_zlib"
3274
3275 if test "$withval" = yes; then
3276 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3277 elif test "$withval" = no; then
3278 ac_cv_use_zlib='wxUSE_ZLIB=no'
3279 elif test "$withval" = sys; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3281 elif test "$withval" = builtin; then
3282 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3283 else
3284 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3285echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3286 { (exit 1); exit 1; }; }
3287 fi
3288
3289else
3290
3291 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3292 if test "x$LINE" != x ; then
3293 eval "DEFAULT_$LINE"
3294 else
3295 no_cache=1
3296 fi
3297
3298 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3299
3300fi;
3301
3302 eval "$ac_cv_use_zlib"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_ZLIB" = yes; then
3308 echo "$as_me:$LINENO: result: yes" >&5
3309echo "${ECHO_T}yes" >&6
3310 elif test "$wxUSE_ZLIB" = no; then
3311 echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
3313 elif test "$wxUSE_ZLIB" = sys; then
3314 echo "$as_me:$LINENO: result: system version" >&5
3315echo "${ECHO_T}system version" >&6
3316 elif test "$wxUSE_ZLIB" = builtin; then
3317 echo "$as_me:$LINENO: result: builtin version" >&5
3318echo "${ECHO_T}builtin version" >&6
3319 else
3320 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3321echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3322 { (exit 1); exit 1; }; }
3323 fi
3324
3325
3326 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3327echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3328 no_cache=0
3329
3330# Check whether --with-odbc or --without-odbc was given.
3331if test "${with_odbc+set}" = set; then
3332 withval="$with_odbc"
3333
3334 if test "$withval" = yes; then
3335 ac_cv_use_odbc='wxUSE_ODBC=yes'
3336 elif test "$withval" = no; then
3337 ac_cv_use_odbc='wxUSE_ODBC=no'
3338 elif test "$withval" = sys; then
3339 ac_cv_use_odbc='wxUSE_ODBC=sys'
3340 elif test "$withval" = builtin; then
3341 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3342 else
3343 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3344echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3345 { (exit 1); exit 1; }; }
3346 fi
3347
3348else
3349
3350 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3351 if test "x$LINE" != x ; then
3352 eval "DEFAULT_$LINE"
3353 else
3354 no_cache=1
3355 fi
3356
3357 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3358
3359fi;
3360
3361 eval "$ac_cv_use_odbc"
3362 if test "$no_cache" != 1; then
3363 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3364 fi
3365
3366 if test "$wxUSE_ODBC" = yes; then
3367 echo "$as_me:$LINENO: result: yes" >&5
3368echo "${ECHO_T}yes" >&6
3369 elif test "$wxUSE_ODBC" = no; then
3370 echo "$as_me:$LINENO: result: no" >&5
3371echo "${ECHO_T}no" >&6
3372 elif test "$wxUSE_ODBC" = sys; then
3373 echo "$as_me:$LINENO: result: system version" >&5
3374echo "${ECHO_T}system version" >&6
3375 elif test "$wxUSE_ODBC" = builtin; then
3376 echo "$as_me:$LINENO: result: builtin version" >&5
3377echo "${ECHO_T}builtin version" >&6
3378 else
3379 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3380echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3381 { (exit 1); exit 1; }; }
3382 fi
3383
3384
3385 echo "$as_me:$LINENO: checking for --with-expat" >&5
3386echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3387 no_cache=0
3388
3389# Check whether --with-expat or --without-expat was given.
3390if test "${with_expat+set}" = set; then
3391 withval="$with_expat"
3392
3393 if test "$withval" = yes; then
3394 ac_cv_use_expat='wxUSE_EXPAT=yes'
3395 elif test "$withval" = no; then
3396 ac_cv_use_expat='wxUSE_EXPAT=no'
3397 elif test "$withval" = sys; then
3398 ac_cv_use_expat='wxUSE_EXPAT=sys'
3399 elif test "$withval" = builtin; then
3400 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3401 else
3402 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3403echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3404 { (exit 1); exit 1; }; }
3405 fi
3406
3407else
3408
3409 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3417
3418fi;
3419
3420 eval "$ac_cv_use_expat"
3421 if test "$no_cache" != 1; then
3422 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3423 fi
3424
3425 if test "$wxUSE_EXPAT" = yes; then
3426 echo "$as_me:$LINENO: result: yes" >&5
3427echo "${ECHO_T}yes" >&6
3428 elif test "$wxUSE_EXPAT" = no; then
3429 echo "$as_me:$LINENO: result: no" >&5
3430echo "${ECHO_T}no" >&6
3431 elif test "$wxUSE_EXPAT" = sys; then
3432 echo "$as_me:$LINENO: result: system version" >&5
3433echo "${ECHO_T}system version" >&6
3434 elif test "$wxUSE_EXPAT" = builtin; then
3435 echo "$as_me:$LINENO: result: builtin version" >&5
3436echo "${ECHO_T}builtin version" >&6
3437 else
3438 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3439echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3440 { (exit 1); exit 1; }; }
3441 fi
3442
3443
3444
3445
3446 enablestring=
3447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3448echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3449 no_cache=0
3450 # Check whether --enable-shared or --disable-shared was given.
3451if test "${enable_shared+set}" = set; then
3452 enableval="$enable_shared"
3453
3454 if test "$enableval" = yes; then
3455 ac_cv_use_shared='wxUSE_SHARED=yes'
3456 else
3457 ac_cv_use_shared='wxUSE_SHARED=no'
3458 fi
3459
3460else
3461
3462 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3463 if test "x$LINE" != x ; then
3464 eval "DEFAULT_$LINE"
3465 else
3466 no_cache=1
3467 fi
3468
3469 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3470
3471fi;
3472
3473 eval "$ac_cv_use_shared"
3474 if test "$no_cache" != 1; then
3475 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3476 fi
3477
3478 if test "$wxUSE_SHARED" = yes; then
3479 echo "$as_me:$LINENO: result: yes" >&5
3480echo "${ECHO_T}yes" >&6
3481 else
3482 echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
3484 fi
3485
3486
3487 enablestring=
3488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3489echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3490 no_cache=0
3491 # Check whether --enable-optimise or --disable-optimise was given.
3492if test "${enable_optimise+set}" = set; then
3493 enableval="$enable_optimise"
3494
3495 if test "$enableval" = yes; then
3496 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3497 else
3498 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3499 fi
3500
3501else
3502
3503 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3504 if test "x$LINE" != x ; then
3505 eval "DEFAULT_$LINE"
3506 else
3507 no_cache=1
3508 fi
3509
3510 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3511
3512fi;
3513
3514 eval "$ac_cv_use_optimise"
3515 if test "$no_cache" != 1; then
3516 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3517 fi
3518
3519 if test "$wxUSE_OPTIMISE" = yes; then
3520 echo "$as_me:$LINENO: result: yes" >&5
3521echo "${ECHO_T}yes" >&6
3522 else
3523 echo "$as_me:$LINENO: result: no" >&5
3524echo "${ECHO_T}no" >&6
3525 fi
3526
3527
3528 enablestring=
3529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3530echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3531 no_cache=0
3532 # Check whether --enable-debug or --disable-debug was given.
3533if test "${enable_debug+set}" = set; then
3534 enableval="$enable_debug"
3535
3536 if test "$enableval" = yes; then
3537 ac_cv_use_debug='wxUSE_DEBUG=yes'
3538 else
3539 ac_cv_use_debug='wxUSE_DEBUG=no'
3540 fi
3541
3542else
3543
3544 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3545 if test "x$LINE" != x ; then
3546 eval "DEFAULT_$LINE"
3547 else
3548 no_cache=1
3549 fi
3550
3551 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3552
3553fi;
3554
3555 eval "$ac_cv_use_debug"
3556 if test "$no_cache" != 1; then
3557 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3558 fi
3559
3560 if test "$wxUSE_DEBUG" = yes; then
3561 echo "$as_me:$LINENO: result: yes" >&5
3562echo "${ECHO_T}yes" >&6
3563 else
3564 echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
3566 fi
3567
3568
3569 enablestring=
3570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3571echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3572 no_cache=0
3573 # Check whether --enable-stl or --disable-stl was given.
3574if test "${enable_stl+set}" = set; then
3575 enableval="$enable_stl"
3576
3577 if test "$enableval" = yes; then
3578 ac_cv_use_stl='wxUSE_STL=yes'
3579 else
3580 ac_cv_use_stl='wxUSE_STL=no'
3581 fi
3582
3583else
3584
3585 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3586 if test "x$LINE" != x ; then
3587 eval "DEFAULT_$LINE"
3588 else
3589 no_cache=1
3590 fi
3591
3592 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3593
3594fi;
3595
3596 eval "$ac_cv_use_stl"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_STL" = yes; then
3602 echo "$as_me:$LINENO: result: yes" >&5
3603echo "${ECHO_T}yes" >&6
3604 else
3605 echo "$as_me:$LINENO: result: no" >&5
3606echo "${ECHO_T}no" >&6
3607 fi
3608
3609if test "$USE_OS2" = "1"; then
69120ee4 3610 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3611
3612 enablestring=
3613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3614echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3615 no_cache=0
3616 # Check whether --enable-omf or --disable-omf was given.
3617if test "${enable_omf+set}" = set; then
3618 enableval="$enable_omf"
3619
3620 if test "$enableval" = yes; then
3621 ac_cv_use_omf='wxUSE_OMF=yes'
3622 else
3623 ac_cv_use_omf='wxUSE_OMF=no'
3624 fi
3625
3626else
3627
3628 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3629 if test "x$LINE" != x ; then
3630 eval "DEFAULT_$LINE"
3631 else
3632 no_cache=1
3633 fi
3634
3635 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3636
3637fi;
3638
3639 eval "$ac_cv_use_omf"
3640 if test "$no_cache" != 1; then
3641 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3642 fi
3643
3644 if test "$wxUSE_OMF" = yes; then
3645 echo "$as_me:$LINENO: result: yes" >&5
3646echo "${ECHO_T}yes" >&6
3647 else
3648 echo "$as_me:$LINENO: result: no" >&5
3649echo "${ECHO_T}no" >&6
3650 fi
3651
3652fi
3653
3654if test "$wxUSE_DEBUG" = "yes"; then
3655 DEFAULT_wxUSE_DEBUG_FLAG=yes
3656 DEFAULT_wxUSE_DEBUG_INFO=yes
3657 BUILD=debug
3658elif test "$wxUSE_DEBUG" = "no"; then
3659 DEFAULT_wxUSE_DEBUG_FLAG=no
3660 DEFAULT_wxUSE_DEBUG_INFO=no
3661 BUILD=release
3662fi
3663
3664
3665 enablestring=
3666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3667echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3668 no_cache=0
3669 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3670if test "${enable_debug_flag+set}" = set; then
3671 enableval="$enable_debug_flag"
3672
3673 if test "$enableval" = yes; then
3674 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3675 else
3676 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3677 fi
3678
3679else
3680
3681 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3682 if test "x$LINE" != x ; then
3683 eval "DEFAULT_$LINE"
3684 else
3685 no_cache=1
3686 fi
3687
3688 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3689
3690fi;
3691
3692 eval "$ac_cv_use_debug_flag"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_DEBUG_FLAG" = yes; then
3698 echo "$as_me:$LINENO: result: yes" >&5
3699echo "${ECHO_T}yes" >&6
3700 else
3701 echo "$as_me:$LINENO: result: no" >&5
3702echo "${ECHO_T}no" >&6
3703 fi
3704
3705
3706 enablestring=
3707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3708echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3709 no_cache=0
3710 # Check whether --enable-debug_info or --disable-debug_info was given.
3711if test "${enable_debug_info+set}" = set; then
3712 enableval="$enable_debug_info"
3713
3714 if test "$enableval" = yes; then
3715 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3716 else
3717 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3718 fi
3719
3720else
3721
3722 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
3729 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3730
3731fi;
3732
3733 eval "$ac_cv_use_debug_info"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_DEBUG_INFO" = yes; then
3739 echo "$as_me:$LINENO: result: yes" >&5
3740echo "${ECHO_T}yes" >&6
3741 else
3742 echo "$as_me:$LINENO: result: no" >&5
3743echo "${ECHO_T}no" >&6
3744 fi
3745
3746
3747 enablestring=
3748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3749echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3750 no_cache=0
3751 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3752if test "${enable_debug_gdb+set}" = set; then
3753 enableval="$enable_debug_gdb"
3754
3755 if test "$enableval" = yes; then
3756 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3757 else
3758 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3759 fi
3760
3761else
3762
3763 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3764 if test "x$LINE" != x ; then
3765 eval "DEFAULT_$LINE"
3766 else
3767 no_cache=1
3768 fi
3769
3770 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3771
3772fi;
3773
3774 eval "$ac_cv_use_debug_gdb"
3775 if test "$no_cache" != 1; then
3776 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3777 fi
3778
3779 if test "$wxUSE_DEBUG_GDB" = yes; then
3780 echo "$as_me:$LINENO: result: yes" >&5
3781echo "${ECHO_T}yes" >&6
3782 else
3783 echo "$as_me:$LINENO: result: no" >&5
3784echo "${ECHO_T}no" >&6
3785 fi
3786
3787
3788 enablestring=
3789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3790echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3791 no_cache=0
3792 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3793if test "${enable_debug_cntxt+set}" = set; then
3794 enableval="$enable_debug_cntxt"
3795
3796 if test "$enableval" = yes; then
3797 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3798 else
3799 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3800 fi
3801
3802else
3803
3804 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3805 if test "x$LINE" != x ; then
3806 eval "DEFAULT_$LINE"
3807 else
3808 no_cache=1
3809 fi
3810
3811 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3812
3813fi;
3814
3815 eval "$ac_cv_use_debug_cntxt"
3816 if test "$no_cache" != 1; then
3817 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3818 fi
3819
3820 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3821 echo "$as_me:$LINENO: result: yes" >&5
3822echo "${ECHO_T}yes" >&6
3823 else
3824 echo "$as_me:$LINENO: result: no" >&5
3825echo "${ECHO_T}no" >&6
3826 fi
3827
3828
3829 enablestring=
3830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3831echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3832 no_cache=0
3833 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3834if test "${enable_mem_tracing+set}" = set; then
3835 enableval="$enable_mem_tracing"
3836
3837 if test "$enableval" = yes; then
3838 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3839 else
3840 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3841 fi
3842
3843else
3844
3845 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3846 if test "x$LINE" != x ; then
3847 eval "DEFAULT_$LINE"
3848 else
3849 no_cache=1
3850 fi
3851
3852 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3853
3854fi;
3855
3856 eval "$ac_cv_use_mem_tracing"
3857 if test "$no_cache" != 1; then
3858 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3859 fi
3860
3861 if test "$wxUSE_MEM_TRACING" = yes; then
3862 echo "$as_me:$LINENO: result: yes" >&5
3863echo "${ECHO_T}yes" >&6
3864 else
3865 echo "$as_me:$LINENO: result: no" >&5
3866echo "${ECHO_T}no" >&6
3867 fi
3868
3869
3870 enablestring=
3871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3872echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3873 no_cache=0
3874 # Check whether --enable-profile or --disable-profile was given.
3875if test "${enable_profile+set}" = set; then
3876 enableval="$enable_profile"
3877
3878 if test "$enableval" = yes; then
3879 ac_cv_use_profile='wxUSE_PROFILE=yes'
3880 else
3881 ac_cv_use_profile='wxUSE_PROFILE=no'
3882 fi
3883
3884else
3885
3886 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3887 if test "x$LINE" != x ; then
3888 eval "DEFAULT_$LINE"
3889 else
3890 no_cache=1
3891 fi
3892
3893 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3894
3895fi;
3896
3897 eval "$ac_cv_use_profile"
3898 if test "$no_cache" != 1; then
3899 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3900 fi
3901
3902 if test "$wxUSE_PROFILE" = yes; then
3903 echo "$as_me:$LINENO: result: yes" >&5
3904echo "${ECHO_T}yes" >&6
3905 else
3906 echo "$as_me:$LINENO: result: no" >&5
3907echo "${ECHO_T}no" >&6
3908 fi
3909
3910
3911 enablestring=
3912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3913echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3914 no_cache=0
3915 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3916if test "${enable_no_rtti+set}" = set; then
3917 enableval="$enable_no_rtti"
3918
3919 if test "$enableval" = yes; then
3920 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3921 else
3922 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3923 fi
3924
3925else
3926
3927 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3935
3936fi;
3937
3938 eval "$ac_cv_use_no_rtti"
3939 if test "$no_cache" != 1; then
3940 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3941 fi
3942
3943 if test "$wxUSE_NO_RTTI" = yes; then
3944 echo "$as_me:$LINENO: result: yes" >&5
3945echo "${ECHO_T}yes" >&6
3946 else
3947 echo "$as_me:$LINENO: result: no" >&5
3948echo "${ECHO_T}no" >&6
3949 fi
3950
3951
3952 enablestring=
3953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3954echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3955 no_cache=0
3956 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3957if test "${enable_no_exceptions+set}" = set; then
3958 enableval="$enable_no_exceptions"
3959
3960 if test "$enableval" = yes; then
3961 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3962 else
3963 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3964 fi
3965
3966else
3967
3968 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3969 if test "x$LINE" != x ; then
3970 eval "DEFAULT_$LINE"
3971 else
3972 no_cache=1
3973 fi
3974
3975 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3976
3977fi;
3978
3979 eval "$ac_cv_use_no_exceptions"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3985 echo "$as_me:$LINENO: result: yes" >&5
3986echo "${ECHO_T}yes" >&6
3987 else
3988 echo "$as_me:$LINENO: result: no" >&5
3989echo "${ECHO_T}no" >&6
3990 fi
3991
3992
3993 enablestring=
3994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3995echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3996 no_cache=0
3997 # Check whether --enable-permissive or --disable-permissive was given.
3998if test "${enable_permissive+set}" = set; then
3999 enableval="$enable_permissive"
4000
4001 if test "$enableval" = yes; then
4002 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4003 else
4004 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4005 fi
4006
4007else
4008
4009 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4010 if test "x$LINE" != x ; then
4011 eval "DEFAULT_$LINE"
4012 else
4013 no_cache=1
4014 fi
4015
4016 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4017
4018fi;
4019
4020 eval "$ac_cv_use_permissive"
4021 if test "$no_cache" != 1; then
4022 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4023 fi
4024
4025 if test "$wxUSE_PERMISSIVE" = yes; then
4026 echo "$as_me:$LINENO: result: yes" >&5
4027echo "${ECHO_T}yes" >&6
4028 else
4029 echo "$as_me:$LINENO: result: no" >&5
4030echo "${ECHO_T}no" >&6
4031 fi
4032
4033
4034 enablestring=
4035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4036echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4037 no_cache=0
4038 # Check whether --enable-no_deps or --disable-no_deps was given.
4039if test "${enable_no_deps+set}" = set; then
4040 enableval="$enable_no_deps"
4041
4042 if test "$enableval" = yes; then
4043 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4044 else
4045 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4046 fi
4047
4048else
4049
4050 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4051 if test "x$LINE" != x ; then
4052 eval "DEFAULT_$LINE"
4053 else
4054 no_cache=1
4055 fi
4056
4057 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4058
4059fi;
4060
4061 eval "$ac_cv_use_no_deps"
4062 if test "$no_cache" != 1; then
4063 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4064 fi
4065
4066 if test "$wxUSE_NO_DEPS" = yes; then
4067 echo "$as_me:$LINENO: result: yes" >&5
4068echo "${ECHO_T}yes" >&6
4069 else
4070 echo "$as_me:$LINENO: result: no" >&5
4071echo "${ECHO_T}no" >&6
4072 fi
4073
4074
4075
4076 enablestring=
4077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4078echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4079 no_cache=0
4080 # Check whether --enable-compat22 or --disable-compat22 was given.
4081if test "${enable_compat22+set}" = set; then
4082 enableval="$enable_compat22"
4083
4084 if test "$enableval" = yes; then
4085 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4086 else
4087 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4088 fi
4089
4090else
4091
4092 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4093 if test "x$LINE" != x ; then
4094 eval "DEFAULT_$LINE"
4095 else
4096 no_cache=1
4097 fi
4098
4099 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4100
4101fi;
4102
4103 eval "$ac_cv_use_compat22"
4104 if test "$no_cache" != 1; then
4105 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4106 fi
4107
4108 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4109 echo "$as_me:$LINENO: result: yes" >&5
4110echo "${ECHO_T}yes" >&6
4111 else
4112 echo "$as_me:$LINENO: result: no" >&5
4113echo "${ECHO_T}no" >&6
4114 fi
4115
4116
4117 enablestring=disable
4118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4119echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4120 no_cache=0
4121 # Check whether --enable-compat24 or --disable-compat24 was given.
4122if test "${enable_compat24+set}" = set; then
4123 enableval="$enable_compat24"
4124
4125 if test "$enableval" = yes; then
4126 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4127 else
4128 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4129 fi
4130
4131else
4132
4133 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4134 if test "x$LINE" != x ; then
4135 eval "DEFAULT_$LINE"
4136 else
4137 no_cache=1
4138 fi
4139
4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4141
4142fi;
4143
4144 eval "$ac_cv_use_compat24"
4145 if test "$no_cache" != 1; then
4146 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4147 fi
4148
4149 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4150 echo "$as_me:$LINENO: result: yes" >&5
4151echo "${ECHO_T}yes" >&6
4152 else
4153 echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
4155 fi
4156
4157
ffa0583f
RL
4158
4159 enablestring=
4160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4161echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4162 no_cache=0
4163 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4164if test "${enable_rpath+set}" = set; then
4165 enableval="$enable_rpath"
ffa0583f
RL
4166
4167 if test "$enableval" = yes; then
4168 ac_cv_use_rpath='wxUSE_RPATH=yes'
4169 else
4170 ac_cv_use_rpath='wxUSE_RPATH=no'
4171 fi
4172
4173else
4174
4175 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4176 if test "x$LINE" != x ; then
4177 eval "DEFAULT_$LINE"
4178 else
4179 no_cache=1
4180 fi
4181
4182 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4183
a848cd7e
SC
4184fi;
4185
ffa0583f
RL
4186 eval "$ac_cv_use_rpath"
4187 if test "$no_cache" != 1; then
4188 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4189 fi
4190
4191 if test "$wxUSE_RPATH" = yes; then
4192 echo "$as_me:$LINENO: result: yes" >&5
4193echo "${ECHO_T}yes" >&6
4194 else
4195 echo "$as_me:$LINENO: result: no" >&5
4196echo "${ECHO_T}no" >&6
4197 fi
4198
a848cd7e
SC
4199
4200
4201
4202
4203 enablestring=
4204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4205echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4206 no_cache=0
4207 # Check whether --enable-intl or --disable-intl was given.
4208if test "${enable_intl+set}" = set; then
4209 enableval="$enable_intl"
4210
4211 if test "$enableval" = yes; then
4212 ac_cv_use_intl='wxUSE_INTL=yes'
4213 else
4214 ac_cv_use_intl='wxUSE_INTL=no'
4215 fi
4216
4217else
4218
4219 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4220 if test "x$LINE" != x ; then
4221 eval "DEFAULT_$LINE"
4222 else
4223 no_cache=1
4224 fi
4225
4226 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4227
4228fi;
4229
4230 eval "$ac_cv_use_intl"
4231 if test "$no_cache" != 1; then
4232 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4233 fi
4234
4235 if test "$wxUSE_INTL" = yes; then
4236 echo "$as_me:$LINENO: result: yes" >&5
4237echo "${ECHO_T}yes" >&6
4238 else
4239 echo "$as_me:$LINENO: result: no" >&5
4240echo "${ECHO_T}no" >&6
4241 fi
4242
4243
4244 enablestring=
4245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4246echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4247 no_cache=0
4248 # Check whether --enable-config or --disable-config was given.
4249if test "${enable_config+set}" = set; then
4250 enableval="$enable_config"
4251
4252 if test "$enableval" = yes; then
4253 ac_cv_use_config='wxUSE_CONFIG=yes'
4254 else
4255 ac_cv_use_config='wxUSE_CONFIG=no'
4256 fi
4257
4258else
4259
4260 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4261 if test "x$LINE" != x ; then
4262 eval "DEFAULT_$LINE"
4263 else
4264 no_cache=1
4265 fi
4266
4267 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4268
4269fi;
4270
4271 eval "$ac_cv_use_config"
4272 if test "$no_cache" != 1; then
4273 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4274 fi
4275
4276 if test "$wxUSE_CONFIG" = yes; then
4277 echo "$as_me:$LINENO: result: yes" >&5
4278echo "${ECHO_T}yes" >&6
4279 else
4280 echo "$as_me:$LINENO: result: no" >&5
4281echo "${ECHO_T}no" >&6
4282 fi
4283
4284
4285
4286 enablestring=
4287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4288echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4289 no_cache=0
4290 # Check whether --enable-protocols or --disable-protocols was given.
4291if test "${enable_protocols+set}" = set; then
4292 enableval="$enable_protocols"
4293
4294 if test "$enableval" = yes; then
4295 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4296 else
4297 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4298 fi
4299
4300else
4301
4302 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4303 if test "x$LINE" != x ; then
4304 eval "DEFAULT_$LINE"
4305 else
4306 no_cache=1
4307 fi
4308
4309 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4310
4311fi;
4312
4313 eval "$ac_cv_use_protocols"
4314 if test "$no_cache" != 1; then
4315 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4316 fi
4317
4318 if test "$wxUSE_PROTOCOL" = yes; then
4319 echo "$as_me:$LINENO: result: yes" >&5
4320echo "${ECHO_T}yes" >&6
4321 else
4322 echo "$as_me:$LINENO: result: no" >&5
4323echo "${ECHO_T}no" >&6
4324 fi
4325
4326
4327 enablestring=
4328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4329echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4330 no_cache=0
4331 # Check whether --enable-ftp or --disable-ftp was given.
4332if test "${enable_ftp+set}" = set; then
4333 enableval="$enable_ftp"
4334
4335 if test "$enableval" = yes; then
4336 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4337 else
4338 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4339 fi
4340
4341else
4342
4343 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4344 if test "x$LINE" != x ; then
4345 eval "DEFAULT_$LINE"
4346 else
4347 no_cache=1
4348 fi
4349
4350 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4351
4352fi;
4353
4354 eval "$ac_cv_use_ftp"
4355 if test "$no_cache" != 1; then
4356 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4357 fi
4358
4359 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4360 echo "$as_me:$LINENO: result: yes" >&5
4361echo "${ECHO_T}yes" >&6
4362 else
4363 echo "$as_me:$LINENO: result: no" >&5
4364echo "${ECHO_T}no" >&6
4365 fi
4366
4367
4368 enablestring=
4369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4370echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4371 no_cache=0
4372 # Check whether --enable-http or --disable-http was given.
4373if test "${enable_http+set}" = set; then
4374 enableval="$enable_http"
4375
4376 if test "$enableval" = yes; then
4377 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4378 else
4379 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4380 fi
4381
4382else
4383
4384 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4392
4393fi;
4394
4395 eval "$ac_cv_use_http"
4396 if test "$no_cache" != 1; then
4397 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4398 fi
4399
4400 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4401 echo "$as_me:$LINENO: result: yes" >&5
4402echo "${ECHO_T}yes" >&6
4403 else
4404 echo "$as_me:$LINENO: result: no" >&5
4405echo "${ECHO_T}no" >&6
4406 fi
4407
4408
4409 enablestring=
4410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4411echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4412 no_cache=0
4413 # Check whether --enable-fileproto or --disable-fileproto was given.
4414if test "${enable_fileproto+set}" = set; then
4415 enableval="$enable_fileproto"
4416
4417 if test "$enableval" = yes; then
4418 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4419 else
4420 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4421 fi
4422
4423else
4424
4425 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4426 if test "x$LINE" != x ; then
4427 eval "DEFAULT_$LINE"
4428 else
4429 no_cache=1
4430 fi
4431
4432 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4433
4434fi;
4435
4436 eval "$ac_cv_use_fileproto"
4437 if test "$no_cache" != 1; then
4438 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4439 fi
4440
4441 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4442 echo "$as_me:$LINENO: result: yes" >&5
4443echo "${ECHO_T}yes" >&6
4444 else
4445 echo "$as_me:$LINENO: result: no" >&5
4446echo "${ECHO_T}no" >&6
4447 fi
4448
4449
4450 enablestring=
4451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4452echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4453 no_cache=0
4454 # Check whether --enable-sockets or --disable-sockets was given.
4455if test "${enable_sockets+set}" = set; then
4456 enableval="$enable_sockets"
4457
4458 if test "$enableval" = yes; then
4459 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4460 else
4461 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4462 fi
4463
4464else
4465
4466 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4467 if test "x$LINE" != x ; then
4468 eval "DEFAULT_$LINE"
4469 else
4470 no_cache=1
4471 fi
4472
4473 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4474
4475fi;
4476
4477 eval "$ac_cv_use_sockets"
4478 if test "$no_cache" != 1; then
4479 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4480 fi
4481
4482 if test "$wxUSE_SOCKETS" = yes; then
4483 echo "$as_me:$LINENO: result: yes" >&5
4484echo "${ECHO_T}yes" >&6
4485 else
4486 echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6
4488 fi
4489
4490
4491 enablestring=
4492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4493echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4494 no_cache=0
4495 # Check whether --enable-ole or --disable-ole was given.
4496if test "${enable_ole+set}" = set; then
4497 enableval="$enable_ole"
4498
4499 if test "$enableval" = yes; then
4500 ac_cv_use_ole='wxUSE_OLE=yes'
4501 else
4502 ac_cv_use_ole='wxUSE_OLE=no'
4503 fi
4504
4505else
4506
4507 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4508 if test "x$LINE" != x ; then
4509 eval "DEFAULT_$LINE"
4510 else
4511 no_cache=1
4512 fi
4513
4514 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4515
4516fi;
4517
4518 eval "$ac_cv_use_ole"
4519 if test "$no_cache" != 1; then
4520 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4521 fi
4522
4523 if test "$wxUSE_OLE" = yes; then
4524 echo "$as_me:$LINENO: result: yes" >&5
4525echo "${ECHO_T}yes" >&6
4526 else
4527 echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529 fi
4530
4531
4532 enablestring=
4533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4534echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4535 no_cache=0
4536 # Check whether --enable-dataobj or --disable-dataobj was given.
4537if test "${enable_dataobj+set}" = set; then
4538 enableval="$enable_dataobj"
4539
4540 if test "$enableval" = yes; then
4541 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4542 else
4543 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4544 fi
4545
4546else
4547
4548 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4549 if test "x$LINE" != x ; then
4550 eval "DEFAULT_$LINE"
4551 else
4552 no_cache=1
4553 fi
4554
4555 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4556
4557fi;
4558
4559 eval "$ac_cv_use_dataobj"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_DATAOBJ" = yes; then
4565 echo "$as_me:$LINENO: result: yes" >&5
4566echo "${ECHO_T}yes" >&6
4567 else
4568 echo "$as_me:$LINENO: result: no" >&5
4569echo "${ECHO_T}no" >&6
4570 fi
4571
4572
4573
4574 enablestring=
4575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4576echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4577 no_cache=0
4578 # Check whether --enable-ipc or --disable-ipc was given.
4579if test "${enable_ipc+set}" = set; then
4580 enableval="$enable_ipc"
4581
4582 if test "$enableval" = yes; then
4583 ac_cv_use_ipc='wxUSE_IPC=yes'
4584 else
4585 ac_cv_use_ipc='wxUSE_IPC=no'
4586 fi
4587
4588else
4589
4590 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4591 if test "x$LINE" != x ; then
4592 eval "DEFAULT_$LINE"
4593 else
4594 no_cache=1
4595 fi
4596
4597 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4598
4599fi;
4600
4601 eval "$ac_cv_use_ipc"
4602 if test "$no_cache" != 1; then
4603 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4604 fi
4605
4606 if test "$wxUSE_IPC" = yes; then
4607 echo "$as_me:$LINENO: result: yes" >&5
4608echo "${ECHO_T}yes" >&6
4609 else
4610 echo "$as_me:$LINENO: result: no" >&5
4611echo "${ECHO_T}no" >&6
4612 fi
4613
4614
4615
4616 enablestring=
4617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4618echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4619 no_cache=0
4620 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4621if test "${enable_apple_ieee+set}" = set; then
4622 enableval="$enable_apple_ieee"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4626 else
4627 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4628 fi
4629
4630else
4631
4632 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4640
4641fi;
4642
4643 eval "$ac_cv_use_apple_ieee"
4644 if test "$no_cache" != 1; then
4645 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4646 fi
4647
4648 if test "$wxUSE_APPLE_IEEE" = yes; then
4649 echo "$as_me:$LINENO: result: yes" >&5
4650echo "${ECHO_T}yes" >&6
4651 else
4652 echo "$as_me:$LINENO: result: no" >&5
4653echo "${ECHO_T}no" >&6
4654 fi
4655
4656
81f90336
MW
4657 enablestring=
4658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4659echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4660 no_cache=0
4661 # Check whether --enable-arcstream or --disable-arcstream was given.
4662if test "${enable_arcstream+set}" = set; then
4663 enableval="$enable_arcstream"
4664
4665 if test "$enableval" = yes; then
9e8e867f 4666 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4667 else
9e8e867f 4668 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4669 fi
4670
4671else
4672
9e8e867f 4673 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
9e8e867f 4680 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4681
4682fi;
4683
4684 eval "$ac_cv_use_arcstream"
4685 if test "$no_cache" != 1; then
4686 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4687 fi
4688
9e8e867f 4689 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4690 echo "$as_me:$LINENO: result: yes" >&5
4691echo "${ECHO_T}yes" >&6
4692 else
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
4695 fi
4696
4697
a848cd7e 4698 enablestring=
36b6448c
VZ
4699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4700echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4701 no_cache=0
36b6448c
VZ
4702 # Check whether --enable-backtrace or --disable-backtrace was given.
4703if test "${enable_backtrace+set}" = set; then
4704 enableval="$enable_backtrace"
a848cd7e
SC
4705
4706 if test "$enableval" = yes; then
36b6448c 4707 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4708 else
36b6448c 4709 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4710 fi
4711
4712else
4713
36b6448c 4714 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
36b6448c 4721 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4722
4723fi;
4724
36b6448c 4725 eval "$ac_cv_use_backtrace"
a848cd7e 4726 if test "$no_cache" != 1; then
36b6448c 4727 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4728 fi
4729
36b6448c 4730 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4731 echo "$as_me:$LINENO: result: yes" >&5
4732echo "${ECHO_T}yes" >&6
4733 else
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
4736 fi
4737
4738
eaff0f0d 4739 enablestring=
36b6448c
VZ
4740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4741echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4742 no_cache=0
36b6448c
VZ
4743 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4744if test "${enable_catch_segvs+set}" = set; then
4745 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4746
4747 if test "$enableval" = yes; then
36b6448c 4748 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4749 else
36b6448c 4750 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4751 fi
4752
4753else
4754
36b6448c 4755 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4756 if test "x$LINE" != x ; then
4757 eval "DEFAULT_$LINE"
4758 else
4759 no_cache=1
4760 fi
4761
36b6448c 4762 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4763
4764fi;
4765
36b6448c 4766 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4767 if test "$no_cache" != 1; then
36b6448c 4768 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4769 fi
4770
36b6448c 4771 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4772 echo "$as_me:$LINENO: result: yes" >&5
4773echo "${ECHO_T}yes" >&6
4774 else
4775 echo "$as_me:$LINENO: result: no" >&5
4776echo "${ECHO_T}no" >&6
4777 fi
4778
4779
a848cd7e
SC
4780 enablestring=
4781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4782echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4783 no_cache=0
4784 # Check whether --enable-cmdline or --disable-cmdline was given.
4785if test "${enable_cmdline+set}" = set; then
4786 enableval="$enable_cmdline"
4787
4788 if test "$enableval" = yes; then
4789 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4790 else
4791 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4792 fi
4793
4794else
4795
4796 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4797 if test "x$LINE" != x ; then
4798 eval "DEFAULT_$LINE"
4799 else
4800 no_cache=1
4801 fi
4802
4803 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4804
4805fi;
4806
4807 eval "$ac_cv_use_cmdline"
4808 if test "$no_cache" != 1; then
4809 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4810 fi
4811
4812 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4813 echo "$as_me:$LINENO: result: yes" >&5
4814echo "${ECHO_T}yes" >&6
4815 else
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
4818 fi
4819
4820
4821 enablestring=
4822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4823echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4824 no_cache=0
4825 # Check whether --enable-datetime or --disable-datetime was given.
4826if test "${enable_datetime+set}" = set; then
4827 enableval="$enable_datetime"
4828
4829 if test "$enableval" = yes; then
4830 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4831 else
4832 ac_cv_use_datetime='wxUSE_DATETIME=no'
4833 fi
4834
4835else
4836
4837 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4838 if test "x$LINE" != x ; then
4839 eval "DEFAULT_$LINE"
4840 else
4841 no_cache=1
4842 fi
4843
4844 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4845
4846fi;
4847
4848 eval "$ac_cv_use_datetime"
4849 if test "$no_cache" != 1; then
4850 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4851 fi
4852
4853 if test "$wxUSE_DATETIME" = yes; then
4854 echo "$as_me:$LINENO: result: yes" >&5
4855echo "${ECHO_T}yes" >&6
4856 else
4857 echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
4859 fi
4860
4861
36b6448c
VZ
4862 enablestring=
4863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4864echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4865 no_cache=0
4866 # Check whether --enable-debugreport or --disable-debugreport was given.
4867if test "${enable_debugreport+set}" = set; then
4868 enableval="$enable_debugreport"
4869
4870 if test "$enableval" = yes; then
4871 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4872 else
4873 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4874 fi
4875
4876else
4877
4878 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4879 if test "x$LINE" != x ; then
4880 eval "DEFAULT_$LINE"
4881 else
4882 no_cache=1
4883 fi
4884
4885 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4886
4887fi;
4888
4889 eval "$ac_cv_use_debugreport"
4890 if test "$no_cache" != 1; then
4891 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4892 fi
4893
4894 if test "$wxUSE_DEBUGREPORT" = yes; then
4895 echo "$as_me:$LINENO: result: yes" >&5
4896echo "${ECHO_T}yes" >&6
4897 else
4898 echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900 fi
4901
4902
a848cd7e
SC
4903 enablestring=
4904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4905echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4906 no_cache=0
4907 # Check whether --enable-dialupman or --disable-dialupman was given.
4908if test "${enable_dialupman+set}" = set; then
4909 enableval="$enable_dialupman"
4910
4911 if test "$enableval" = yes; then
4912 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4913 else
4914 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4915 fi
4916
4917else
4918
4919 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4920 if test "x$LINE" != x ; then
4921 eval "DEFAULT_$LINE"
4922 else
4923 no_cache=1
4924 fi
4925
4926 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4927
4928fi;
4929
4930 eval "$ac_cv_use_dialupman"
4931 if test "$no_cache" != 1; then
4932 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4933 fi
4934
4935 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4936 echo "$as_me:$LINENO: result: yes" >&5
4937echo "${ECHO_T}yes" >&6
4938 else
4939 echo "$as_me:$LINENO: result: no" >&5
4940echo "${ECHO_T}no" >&6
4941 fi
4942
4943
4944 enablestring=
4945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4946echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4947 no_cache=0
4948 # Check whether --enable-dynlib or --disable-dynlib was given.
4949if test "${enable_dynlib+set}" = set; then
4950 enableval="$enable_dynlib"
4951
4952 if test "$enableval" = yes; then
4953 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4954 else
4955 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4956 fi
4957
4958else
4959
4960 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4961 if test "x$LINE" != x ; then
4962 eval "DEFAULT_$LINE"
4963 else
4964 no_cache=1
4965 fi
4966
4967 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4968
4969fi;
4970
4971 eval "$ac_cv_use_dynlib"
4972 if test "$no_cache" != 1; then
4973 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4974 fi
4975
4976 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4977 echo "$as_me:$LINENO: result: yes" >&5
4978echo "${ECHO_T}yes" >&6
4979 else
4980 echo "$as_me:$LINENO: result: no" >&5
4981echo "${ECHO_T}no" >&6
4982 fi
4983
4984
4985 enablestring=
4986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4987echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4988 no_cache=0
4989 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4990if test "${enable_dynamicloader+set}" = set; then
4991 enableval="$enable_dynamicloader"
4992
4993 if test "$enableval" = yes; then
4994 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4995 else
4996 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4997 fi
4998
4999else
5000
5001 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5002 if test "x$LINE" != x ; then
5003 eval "DEFAULT_$LINE"
5004 else
5005 no_cache=1
5006 fi
5007
5008 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5009
5010fi;
5011
5012 eval "$ac_cv_use_dynamicloader"
5013 if test "$no_cache" != 1; then
5014 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5015 fi
5016
5017 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5018 echo "$as_me:$LINENO: result: yes" >&5
5019echo "${ECHO_T}yes" >&6
5020 else
5021 echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023 fi
5024
5025
5026 enablestring=
5027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5028echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5029 no_cache=0
5030 # Check whether --enable-exceptions or --disable-exceptions was given.
5031if test "${enable_exceptions+set}" = set; then
5032 enableval="$enable_exceptions"
5033
5034 if test "$enableval" = yes; then
5035 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5036 else
5037 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5038 fi
5039
5040else
5041
5042 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5043 if test "x$LINE" != x ; then
5044 eval "DEFAULT_$LINE"
5045 else
5046 no_cache=1
5047 fi
5048
5049 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5050
5051fi;
5052
5053 eval "$ac_cv_use_exceptions"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_EXCEPTIONS" = yes; then
5059 echo "$as_me:$LINENO: result: yes" >&5
5060echo "${ECHO_T}yes" >&6
5061 else
5062 echo "$as_me:$LINENO: result: no" >&5
5063echo "${ECHO_T}no" >&6
5064 fi
5065
5066
5067 enablestring=
5068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5069echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5070 no_cache=0
5071 # Check whether --enable-ffile or --disable-ffile was given.
5072if test "${enable_ffile+set}" = set; then
5073 enableval="$enable_ffile"
5074
5075 if test "$enableval" = yes; then
5076 ac_cv_use_ffile='wxUSE_FFILE=yes'
5077 else
5078 ac_cv_use_ffile='wxUSE_FFILE=no'
5079 fi
5080
5081else
5082
5083 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5084 if test "x$LINE" != x ; then
5085 eval "DEFAULT_$LINE"
5086 else
5087 no_cache=1
5088 fi
5089
5090 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5091
5092fi;
5093
5094 eval "$ac_cv_use_ffile"
5095 if test "$no_cache" != 1; then
5096 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5097 fi
5098
5099 if test "$wxUSE_FFILE" = yes; then
5100 echo "$as_me:$LINENO: result: yes" >&5
5101echo "${ECHO_T}yes" >&6
5102 else
5103 echo "$as_me:$LINENO: result: no" >&5
5104echo "${ECHO_T}no" >&6
5105 fi
5106
5107
5108 enablestring=
5109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5110echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5111 no_cache=0
5112 # Check whether --enable-file or --disable-file was given.
5113if test "${enable_file+set}" = set; then
5114 enableval="$enable_file"
5115
5116 if test "$enableval" = yes; then
5117 ac_cv_use_file='wxUSE_FILE=yes'
5118 else
5119 ac_cv_use_file='wxUSE_FILE=no'
5120 fi
5121
5122else
5123
5124 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5125 if test "x$LINE" != x ; then
5126 eval "DEFAULT_$LINE"
5127 else
5128 no_cache=1
5129 fi
5130
5131 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5132
5133fi;
5134
5135 eval "$ac_cv_use_file"
5136 if test "$no_cache" != 1; then
5137 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5138 fi
5139
5140 if test "$wxUSE_FILE" = yes; then
5141 echo "$as_me:$LINENO: result: yes" >&5
5142echo "${ECHO_T}yes" >&6
5143 else
5144 echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6
5146 fi
5147
5148
5149 enablestring=
5150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5151echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5152 no_cache=0
5153 # Check whether --enable-filesystem or --disable-filesystem was given.
5154if test "${enable_filesystem+set}" = set; then
5155 enableval="$enable_filesystem"
5156
5157 if test "$enableval" = yes; then
5158 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5159 else
5160 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5161 fi
5162
5163else
5164
5165 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5166 if test "x$LINE" != x ; then
5167 eval "DEFAULT_$LINE"
5168 else
5169 no_cache=1
5170 fi
5171
5172 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5173
5174fi;
5175
5176 eval "$ac_cv_use_filesystem"
5177 if test "$no_cache" != 1; then
5178 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5179 fi
5180
5181 if test "$wxUSE_FILESYSTEM" = yes; then
5182 echo "$as_me:$LINENO: result: yes" >&5
5183echo "${ECHO_T}yes" >&6
5184 else
5185 echo "$as_me:$LINENO: result: no" >&5
5186echo "${ECHO_T}no" >&6
5187 fi
5188
5189
5190 enablestring=
5191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5192echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5193 no_cache=0
5194 # Check whether --enable-fontmap or --disable-fontmap was given.
5195if test "${enable_fontmap+set}" = set; then
5196 enableval="$enable_fontmap"
5197
5198 if test "$enableval" = yes; then
5199 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5200 else
5201 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5202 fi
5203
5204else
5205
5206 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5207 if test "x$LINE" != x ; then
5208 eval "DEFAULT_$LINE"
5209 else
5210 no_cache=1
5211 fi
5212
5213 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5214
5215fi;
5216
5217 eval "$ac_cv_use_fontmap"
5218 if test "$no_cache" != 1; then
5219 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5220 fi
5221
5222 if test "$wxUSE_FONTMAP" = yes; then
5223 echo "$as_me:$LINENO: result: yes" >&5
5224echo "${ECHO_T}yes" >&6
5225 else
5226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228 fi
5229
5230
5231 enablestring=
5232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5233echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5234 no_cache=0
5235 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5236if test "${enable_fs_inet+set}" = set; then
5237 enableval="$enable_fs_inet"
5238
5239 if test "$enableval" = yes; then
5240 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5241 else
5242 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5243 fi
5244
5245else
5246
5247 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5248 if test "x$LINE" != x ; then
5249 eval "DEFAULT_$LINE"
5250 else
5251 no_cache=1
5252 fi
5253
5254 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5255
5256fi;
5257
5258 eval "$ac_cv_use_fs_inet"
5259 if test "$no_cache" != 1; then
5260 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5261 fi
5262
5263 if test "$wxUSE_FS_INET" = yes; then
5264 echo "$as_me:$LINENO: result: yes" >&5
5265echo "${ECHO_T}yes" >&6
5266 else
5267 echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
5269 fi
5270
5271
5272 enablestring=
5273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5274echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5275 no_cache=0
5276 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5277if test "${enable_fs_zip+set}" = set; then
5278 enableval="$enable_fs_zip"
5279
5280 if test "$enableval" = yes; then
5281 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5282 else
5283 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5284 fi
5285
5286else
5287
5288 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5289 if test "x$LINE" != x ; then
5290 eval "DEFAULT_$LINE"
5291 else
5292 no_cache=1
5293 fi
5294
5295 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5296
5297fi;
5298
5299 eval "$ac_cv_use_fs_zip"
5300 if test "$no_cache" != 1; then
5301 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5302 fi
5303
5304 if test "$wxUSE_FS_ZIP" = yes; then
5305 echo "$as_me:$LINENO: result: yes" >&5
5306echo "${ECHO_T}yes" >&6
5307 else
5308 echo "$as_me:$LINENO: result: no" >&5
5309echo "${ECHO_T}no" >&6
5310 fi
5311
5312
5313 enablestring=
5314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5315echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5316 no_cache=0
5317 # Check whether --enable-geometry or --disable-geometry was given.
5318if test "${enable_geometry+set}" = set; then
5319 enableval="$enable_geometry"
5320
5321 if test "$enableval" = yes; then
5322 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5323 else
5324 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5325 fi
5326
5327else
5328
5329 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5330 if test "x$LINE" != x ; then
5331 eval "DEFAULT_$LINE"
5332 else
5333 no_cache=1
5334 fi
5335
5336 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5337
5338fi;
5339
5340 eval "$ac_cv_use_geometry"
5341 if test "$no_cache" != 1; then
5342 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5343 fi
5344
5345 if test "$wxUSE_GEOMETRY" = yes; then
5346 echo "$as_me:$LINENO: result: yes" >&5
5347echo "${ECHO_T}yes" >&6
5348 else
5349 echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
5351 fi
5352
5353
5354 enablestring=
5355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5356echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5357 no_cache=0
5358 # Check whether --enable-log or --disable-log was given.
5359if test "${enable_log+set}" = set; then
5360 enableval="$enable_log"
5361
5362 if test "$enableval" = yes; then
5363 ac_cv_use_log='wxUSE_LOG=yes'
5364 else
5365 ac_cv_use_log='wxUSE_LOG=no'
5366 fi
5367
5368else
5369
5370 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5378
5379fi;
5380
5381 eval "$ac_cv_use_log"
5382 if test "$no_cache" != 1; then
5383 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5384 fi
5385
5386 if test "$wxUSE_LOG" = yes; then
5387 echo "$as_me:$LINENO: result: yes" >&5
5388echo "${ECHO_T}yes" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391echo "${ECHO_T}no" >&6
5392 fi
5393
5394
5395 enablestring=
5396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5397echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5398 no_cache=0
5399 # Check whether --enable-longlong or --disable-longlong was given.
5400if test "${enable_longlong+set}" = set; then
5401 enableval="$enable_longlong"
5402
5403 if test "$enableval" = yes; then
5404 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5405 else
5406 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5407 fi
5408
5409else
5410
5411 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5412 if test "x$LINE" != x ; then
5413 eval "DEFAULT_$LINE"
5414 else
5415 no_cache=1
5416 fi
5417
5418 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5419
5420fi;
5421
5422 eval "$ac_cv_use_longlong"
5423 if test "$no_cache" != 1; then
5424 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5425 fi
5426
5427 if test "$wxUSE_LONGLONG" = yes; then
5428 echo "$as_me:$LINENO: result: yes" >&5
5429echo "${ECHO_T}yes" >&6
5430 else
5431 echo "$as_me:$LINENO: result: no" >&5
5432echo "${ECHO_T}no" >&6
5433 fi
5434
5435
5436 enablestring=
5437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5438echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5439 no_cache=0
5440 # Check whether --enable-mimetype or --disable-mimetype was given.
5441if test "${enable_mimetype+set}" = set; then
5442 enableval="$enable_mimetype"
5443
5444 if test "$enableval" = yes; then
5445 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5446 else
5447 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5448 fi
5449
5450else
5451
5452 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
5459 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5460
5461fi;
5462
5463 eval "$ac_cv_use_mimetype"
5464 if test "$no_cache" != 1; then
5465 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5466 fi
5467
5468 if test "$wxUSE_MIMETYPE" = yes; then
5469 echo "$as_me:$LINENO: result: yes" >&5
5470echo "${ECHO_T}yes" >&6
5471 else
5472 echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6
5474 fi
5475
5476
5477 enablestring=
5478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5479echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5480 no_cache=0
5481 # Check whether --enable-mslu or --disable-mslu was given.
5482if test "${enable_mslu+set}" = set; then
5483 enableval="$enable_mslu"
5484
5485 if test "$enableval" = yes; then
5486 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5487 else
5488 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5489 fi
5490
5491else
5492
5493 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5494 if test "x$LINE" != x ; then
5495 eval "DEFAULT_$LINE"
5496 else
5497 no_cache=1
5498 fi
5499
5500 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5501
5502fi;
5503
5504 eval "$ac_cv_use_mslu"
5505 if test "$no_cache" != 1; then
5506 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5507 fi
5508
5509 if test "$wxUSE_UNICODE_MSLU" = yes; then
5510 echo "$as_me:$LINENO: result: yes" >&5
5511echo "${ECHO_T}yes" >&6
5512 else
5513 echo "$as_me:$LINENO: result: no" >&5
5514echo "${ECHO_T}no" >&6
5515 fi
5516
5517
5518 enablestring=
5519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5520echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5521 no_cache=0
5522 # Check whether --enable-snglinst or --disable-snglinst was given.
5523if test "${enable_snglinst+set}" = set; then
5524 enableval="$enable_snglinst"
5525
5526 if test "$enableval" = yes; then
5527 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5528 else
5529 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5530 fi
5531
5532else
5533
5534 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5535 if test "x$LINE" != x ; then
5536 eval "DEFAULT_$LINE"
5537 else
5538 no_cache=1
5539 fi
5540
5541 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5542
5543fi;
5544
5545 eval "$ac_cv_use_snglinst"
5546 if test "$no_cache" != 1; then
5547 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5548 fi
5549
5550 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5551 echo "$as_me:$LINENO: result: yes" >&5
5552echo "${ECHO_T}yes" >&6
5553 else
5554 echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6
5556 fi
5557
5558
5559 enablestring=
07158944
VZ
5560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5561echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5562 no_cache=0
07158944
VZ
5563 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5564if test "${enable_std_iostreams+set}" = set; then
5565 enableval="$enable_std_iostreams"
a848cd7e
SC
5566
5567 if test "$enableval" = yes; then
07158944 5568 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5569 else
07158944 5570 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5571 fi
5572
5573else
5574
07158944 5575 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 else
5579 no_cache=1
5580 fi
5581
07158944 5582 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5583
5584fi;
5585
07158944 5586 eval "$ac_cv_use_std_iostreams"
a848cd7e 5587 if test "$no_cache" != 1; then
07158944 5588 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5589 fi
5590
07158944 5591 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5592 echo "$as_me:$LINENO: result: yes" >&5
5593echo "${ECHO_T}yes" >&6
5594 else
5595 echo "$as_me:$LINENO: result: no" >&5
5596echo "${ECHO_T}no" >&6
5597 fi
5598
5599
59746b65
MW
5600 enablestring=
5601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5602echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5603 no_cache=0
5604 # Check whether --enable-std_string or --disable-std_string was given.
5605if test "${enable_std_string+set}" = set; then
5606 enableval="$enable_std_string"
5607
5608 if test "$enableval" = yes; then
5609 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5610 else
5611 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5612 fi
5613
5614else
5615
5616 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5617 if test "x$LINE" != x ; then
5618 eval "DEFAULT_$LINE"
5619 else
5620 no_cache=1
5621 fi
5622
5623 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5624
5625fi;
5626
5627 eval "$ac_cv_use_std_string"
5628 if test "$no_cache" != 1; then
5629 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5630 fi
5631
5632 if test "$wxUSE_STD_STRING" = yes; then
5633 echo "$as_me:$LINENO: result: yes" >&5
5634echo "${ECHO_T}yes" >&6
5635 else
5636 echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638 fi
5639
5640
a848cd7e 5641 enablestring=
07158944
VZ
5642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5643echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5644 no_cache=0
07158944
VZ
5645 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5646if test "${enable_stdpaths+set}" = set; then
5647 enableval="$enable_stdpaths"
a848cd7e
SC
5648
5649 if test "$enableval" = yes; then
07158944 5650 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5651 else
07158944 5652 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5653 fi
5654
5655else
5656
07158944 5657 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5658 if test "x$LINE" != x ; then
5659 eval "DEFAULT_$LINE"
5660 else
5661 no_cache=1
5662 fi
5663
07158944 5664 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5665
5666fi;
5667
07158944 5668 eval "$ac_cv_use_stdpaths"
a848cd7e 5669 if test "$no_cache" != 1; then
07158944 5670 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5671 fi
5672
07158944 5673 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5674 echo "$as_me:$LINENO: result: yes" >&5
5675echo "${ECHO_T}yes" >&6
5676 else
5677 echo "$as_me:$LINENO: result: no" >&5
5678echo "${ECHO_T}no" >&6
5679 fi
5680
5681
5682 enablestring=
5683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5684echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5685 no_cache=0
5686 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5687if test "${enable_stopwatch+set}" = set; then
5688 enableval="$enable_stopwatch"
5689
5690 if test "$enableval" = yes; then
5691 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5692 else
5693 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5694 fi
5695
5696else
5697
5698 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5699 if test "x$LINE" != x ; then
5700 eval "DEFAULT_$LINE"
5701 else
5702 no_cache=1
5703 fi
5704
5705 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5706
5707fi;
5708
5709 eval "$ac_cv_use_stopwatch"
5710 if test "$no_cache" != 1; then
5711 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5712 fi
5713
5714 if test "$wxUSE_STOPWATCH" = yes; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716echo "${ECHO_T}yes" >&6
5717 else
5718 echo "$as_me:$LINENO: result: no" >&5
5719echo "${ECHO_T}no" >&6
5720 fi
5721
5722
07158944
VZ
5723 enablestring=
5724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5725echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5726 no_cache=0
5727 # Check whether --enable-streams or --disable-streams was given.
5728if test "${enable_streams+set}" = set; then
5729 enableval="$enable_streams"
5730
5731 if test "$enableval" = yes; then
5732 ac_cv_use_streams='wxUSE_STREAMS=yes'
5733 else
5734 ac_cv_use_streams='wxUSE_STREAMS=no'
5735 fi
5736
5737else
5738
5739 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5740 if test "x$LINE" != x ; then
5741 eval "DEFAULT_$LINE"
5742 else
5743 no_cache=1
5744 fi
5745
5746 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5747
5748fi;
5749
5750 eval "$ac_cv_use_streams"
5751 if test "$no_cache" != 1; then
5752 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5753 fi
5754
5755 if test "$wxUSE_STREAMS" = yes; then
5756 echo "$as_me:$LINENO: result: yes" >&5
5757echo "${ECHO_T}yes" >&6
5758 else
5759 echo "$as_me:$LINENO: result: no" >&5
5760echo "${ECHO_T}no" >&6
5761 fi
5762
5763
a848cd7e
SC
5764 enablestring=
5765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5766echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5767 no_cache=0
5768 # Check whether --enable-system_options or --disable-system_options was given.
5769if test "${enable_system_options+set}" = set; then
5770 enableval="$enable_system_options"
5771
5772 if test "$enableval" = yes; then
5773 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5774 else
5775 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5776 fi
5777
5778else
5779
5780 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5781 if test "x$LINE" != x ; then
5782 eval "DEFAULT_$LINE"
5783 else
5784 no_cache=1
5785 fi
5786
5787 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5788
5789fi;
5790
5791 eval "$ac_cv_use_system_options"
5792 if test "$no_cache" != 1; then
5793 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5794 fi
5795
5796 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5797 echo "$as_me:$LINENO: result: yes" >&5
5798echo "${ECHO_T}yes" >&6
5799 else
5800 echo "$as_me:$LINENO: result: no" >&5
5801echo "${ECHO_T}no" >&6
5802 fi
5803
5804
5805 enablestring=
5806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5807echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5808 no_cache=0
5809 # Check whether --enable-textbuf or --disable-textbuf was given.
5810if test "${enable_textbuf+set}" = set; then
5811 enableval="$enable_textbuf"
5812
5813 if test "$enableval" = yes; then
5814 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5815 else
5816 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5817 fi
5818
5819else
5820
5821 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5822 if test "x$LINE" != x ; then
5823 eval "DEFAULT_$LINE"
5824 else
5825 no_cache=1
5826 fi
5827
5828 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5829
5830fi;
5831
5832 eval "$ac_cv_use_textbuf"
5833 if test "$no_cache" != 1; then
5834 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5835 fi
5836
5837 if test "$wxUSE_TEXTBUFFER" = yes; then
5838 echo "$as_me:$LINENO: result: yes" >&5
5839echo "${ECHO_T}yes" >&6
5840 else
5841 echo "$as_me:$LINENO: result: no" >&5
5842echo "${ECHO_T}no" >&6
5843 fi
5844
5845
5846 enablestring=
5847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5848echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5849 no_cache=0
5850 # Check whether --enable-textfile or --disable-textfile was given.
5851if test "${enable_textfile+set}" = set; then
5852 enableval="$enable_textfile"
5853
5854 if test "$enableval" = yes; then
5855 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5856 else
5857 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5858 fi
5859
5860else
5861
5862 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5863 if test "x$LINE" != x ; then
5864 eval "DEFAULT_$LINE"
5865 else
5866 no_cache=1
5867 fi
5868
5869 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5870
5871fi;
5872
5873 eval "$ac_cv_use_textfile"
5874 if test "$no_cache" != 1; then
5875 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5876 fi
5877
5878 if test "$wxUSE_TEXTFILE" = yes; then
5879 echo "$as_me:$LINENO: result: yes" >&5
5880echo "${ECHO_T}yes" >&6
5881 else
5882 echo "$as_me:$LINENO: result: no" >&5
5883echo "${ECHO_T}no" >&6
5884 fi
5885
5886
5887 enablestring=
5888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5889echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5890 no_cache=0
5891 # Check whether --enable-timer or --disable-timer was given.
5892if test "${enable_timer+set}" = set; then
5893 enableval="$enable_timer"
5894
5895 if test "$enableval" = yes; then
5896 ac_cv_use_timer='wxUSE_TIMER=yes'
5897 else
5898 ac_cv_use_timer='wxUSE_TIMER=no'
5899 fi
5900
5901else
5902
5903 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5904 if test "x$LINE" != x ; then
5905 eval "DEFAULT_$LINE"
5906 else
5907 no_cache=1
5908 fi
5909
5910 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5911
5912fi;
5913
5914 eval "$ac_cv_use_timer"
5915 if test "$no_cache" != 1; then
5916 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5917 fi
5918
5919 if test "$wxUSE_TIMER" = yes; then
5920 echo "$as_me:$LINENO: result: yes" >&5
5921echo "${ECHO_T}yes" >&6
5922 else
5923 echo "$as_me:$LINENO: result: no" >&5
5924echo "${ECHO_T}no" >&6
5925 fi
5926
5927
5928 enablestring=
5929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5930echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5931 no_cache=0
5932 # Check whether --enable-unicode or --disable-unicode was given.
5933if test "${enable_unicode+set}" = set; then
5934 enableval="$enable_unicode"
5935
5936 if test "$enableval" = yes; then
5937 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5938 else
5939 ac_cv_use_unicode='wxUSE_UNICODE=no'
5940 fi
5941
5942else
5943
5944 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
5951 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5952
5953fi;
5954
5955 eval "$ac_cv_use_unicode"
5956 if test "$no_cache" != 1; then
5957 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5958 fi
5959
5960 if test "$wxUSE_UNICODE" = yes; then
5961 echo "$as_me:$LINENO: result: yes" >&5
5962echo "${ECHO_T}yes" >&6
5963 else
5964 echo "$as_me:$LINENO: result: no" >&5
5965echo "${ECHO_T}no" >&6
5966 fi
5967
5968
5969 enablestring=
5970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5971echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5972 no_cache=0
5973 # Check whether --enable-sound or --disable-sound was given.
5974if test "${enable_sound+set}" = set; then
5975 enableval="$enable_sound"
5976
5977 if test "$enableval" = yes; then
5978 ac_cv_use_sound='wxUSE_SOUND=yes'
5979 else
5980 ac_cv_use_sound='wxUSE_SOUND=no'
5981 fi
5982
5983else
5984
5985 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5993
5994fi;
5995
5996 eval "$ac_cv_use_sound"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_SOUND" = yes; then
6002 echo "$as_me:$LINENO: result: yes" >&5
6003echo "${ECHO_T}yes" >&6
6004 else
6005 echo "$as_me:$LINENO: result: no" >&5
6006echo "${ECHO_T}no" >&6
6007 fi
6008
6009
3b57de8b
RL
6010 enablestring=
6011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6012echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6013 no_cache=0
6014 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6015if test "${enable_mediactrl+set}" = set; then
6016 enableval="$enable_mediactrl"
6017
6018 if test "$enableval" = yes; then
6019 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6020 else
6021 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6022 fi
6023
6024else
6025
6026 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6027 if test "x$LINE" != x ; then
6028 eval "DEFAULT_$LINE"
6029 else
6030 no_cache=1
6031 fi
6032
6033 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6034
6035fi;
6036
6037 eval "$ac_cv_use_mediactrl"
6038 if test "$no_cache" != 1; then
6039 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6040 fi
6041
6042 if test "$wxUSE_MEDIACTRL" = yes; then
6043 echo "$as_me:$LINENO: result: yes" >&5
6044echo "${ECHO_T}yes" >&6
6045 else
6046 echo "$as_me:$LINENO: result: no" >&5
6047echo "${ECHO_T}no" >&6
6048 fi
6049
6050
a848cd7e
SC
6051 enablestring=
6052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6053echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6054 no_cache=0
6055 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6056if test "${enable_wxprintfv+set}" = set; then
6057 enableval="$enable_wxprintfv"
6058
6059 if test "$enableval" = yes; then
6060 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6061 else
6062 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6063 fi
6064
6065else
6066
6067 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6068 if test "x$LINE" != x ; then
6069 eval "DEFAULT_$LINE"
6070 else
6071 no_cache=1
6072 fi
6073
6074 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6075
6076fi;
6077
6078 eval "$ac_cv_use_wxprintfv"
6079 if test "$no_cache" != 1; then
6080 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6081 fi
6082
6083 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6084 echo "$as_me:$LINENO: result: yes" >&5
6085echo "${ECHO_T}yes" >&6
6086 else
6087 echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
6089 fi
6090
6091
6092 enablestring=
6093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6094echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6095 no_cache=0
6096 # Check whether --enable-zipstream or --disable-zipstream was given.
6097if test "${enable_zipstream+set}" = set; then
6098 enableval="$enable_zipstream"
6099
6100 if test "$enableval" = yes; then
6101 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6102 else
6103 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6104 fi
6105
6106else
6107
6108 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6116
6117fi;
6118
6119 eval "$ac_cv_use_zipstream"
6120 if test "$no_cache" != 1; then
6121 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6122 fi
6123
6124 if test "$wxUSE_ZIPSTREAM" = yes; then
6125 echo "$as_me:$LINENO: result: yes" >&5
6126echo "${ECHO_T}yes" >&6
6127 else
6128 echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
6130 fi
6131
6132
a848cd7e
SC
6133
6134 enablestring=
6135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6136echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6137 no_cache=0
6138 # Check whether --enable-url or --disable-url was given.
6139if test "${enable_url+set}" = set; then
6140 enableval="$enable_url"
6141
6142 if test "$enableval" = yes; then
6143 ac_cv_use_url='wxUSE_URL=yes'
6144 else
6145 ac_cv_use_url='wxUSE_URL=no'
6146 fi
6147
6148else
6149
6150 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6151 if test "x$LINE" != x ; then
6152 eval "DEFAULT_$LINE"
6153 else
6154 no_cache=1
6155 fi
6156
6157 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6158
6159fi;
6160
6161 eval "$ac_cv_use_url"
6162 if test "$no_cache" != 1; then
6163 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6164 fi
6165
6166 if test "$wxUSE_URL" = yes; then
6167 echo "$as_me:$LINENO: result: yes" >&5
6168echo "${ECHO_T}yes" >&6
6169 else
6170 echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6
6172 fi
6173
6174
6175 enablestring=
6176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6177echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6178 no_cache=0
6179 # Check whether --enable-protocol or --disable-protocol was given.
6180if test "${enable_protocol+set}" = set; then
6181 enableval="$enable_protocol"
6182
6183 if test "$enableval" = yes; then
6184 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6185 else
6186 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6187 fi
6188
6189else
6190
6191 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6192 if test "x$LINE" != x ; then
6193 eval "DEFAULT_$LINE"
6194 else
6195 no_cache=1
6196 fi
6197
6198 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6199
6200fi;
6201
6202 eval "$ac_cv_use_protocol"
6203 if test "$no_cache" != 1; then
6204 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6205 fi
6206
6207 if test "$wxUSE_PROTOCOL" = yes; then
6208 echo "$as_me:$LINENO: result: yes" >&5
6209echo "${ECHO_T}yes" >&6
6210 else
6211 echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6
6213 fi
6214
6215
6216 enablestring=
6217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6218echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6219 no_cache=0
6220 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6221if test "${enable_protocol_http+set}" = set; then
6222 enableval="$enable_protocol_http"
6223
6224 if test "$enableval" = yes; then
6225 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6226 else
6227 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6228 fi
6229
6230else
6231
6232 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6240
6241fi;
6242
6243 eval "$ac_cv_use_protocol_http"
6244 if test "$no_cache" != 1; then
6245 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6246 fi
6247
6248 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6249 echo "$as_me:$LINENO: result: yes" >&5
6250echo "${ECHO_T}yes" >&6
6251 else
6252 echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6
6254 fi
6255
6256
6257 enablestring=
6258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6259echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6260 no_cache=0
6261 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6262if test "${enable_protocol_ftp+set}" = set; then
6263 enableval="$enable_protocol_ftp"
6264
6265 if test "$enableval" = yes; then
6266 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6267 else
6268 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6269 fi
6270
6271else
6272
6273 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6281
6282fi;
6283
6284 eval "$ac_cv_use_protocol_ftp"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6290 echo "$as_me:$LINENO: result: yes" >&5
6291echo "${ECHO_T}yes" >&6
6292 else
6293 echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6
6295 fi
6296
6297
6298 enablestring=
6299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6300echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6301 no_cache=0
6302 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6303if test "${enable_protocol_file+set}" = set; then
6304 enableval="$enable_protocol_file"
6305
6306 if test "$enableval" = yes; then
6307 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6308 else
6309 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6310 fi
6311
6312else
6313
6314 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6322
6323fi;
6324
6325 eval "$ac_cv_use_protocol_file"
6326 if test "$no_cache" != 1; then
6327 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6328 fi
6329
6330 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6331 echo "$as_me:$LINENO: result: yes" >&5
6332echo "${ECHO_T}yes" >&6
6333 else
6334 echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6
6336 fi
6337
6338
6339
6340
6341
6342 enablestring=
6343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6344echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6345 no_cache=0
6346 # Check whether --enable-threads or --disable-threads was given.
6347if test "${enable_threads+set}" = set; then
6348 enableval="$enable_threads"
6349
6350 if test "$enableval" = yes; then
6351 ac_cv_use_threads='wxUSE_THREADS=yes'
6352 else
6353 ac_cv_use_threads='wxUSE_THREADS=no'
6354 fi
6355
6356else
6357
6358 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6359 if test "x$LINE" != x ; then
6360 eval "DEFAULT_$LINE"
6361 else
6362 no_cache=1
6363 fi
6364
6365 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6366
6367fi;
6368
6369 eval "$ac_cv_use_threads"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_THREADS" = yes; then
6375 echo "$as_me:$LINENO: result: yes" >&5
6376echo "${ECHO_T}yes" >&6
6377 else
6378 echo "$as_me:$LINENO: result: no" >&5
6379echo "${ECHO_T}no" >&6
6380 fi
6381
6382
6383if test "$wxUSE_GUI" = "yes"; then
6384
6385
6386
6387 enablestring=
6388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6389echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6390 no_cache=0
6391 # Check whether --enable-docview or --disable-docview was given.
6392if test "${enable_docview+set}" = set; then
6393 enableval="$enable_docview"
6394
6395 if test "$enableval" = yes; then
6396 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6397 else
6398 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6399 fi
6400
6401else
6402
6403 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6404 if test "x$LINE" != x ; then
6405 eval "DEFAULT_$LINE"
6406 else
6407 no_cache=1
6408 fi
6409
6410 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6411
6412fi;
6413
6414 eval "$ac_cv_use_docview"
6415 if test "$no_cache" != 1; then
6416 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6417 fi
6418
6419 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6420 echo "$as_me:$LINENO: result: yes" >&5
6421echo "${ECHO_T}yes" >&6
6422 else
6423 echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6
6425 fi
6426
6427
6428 enablestring=
6429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6430echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6431 no_cache=0
6432 # Check whether --enable-help or --disable-help was given.
6433if test "${enable_help+set}" = set; then
6434 enableval="$enable_help"
6435
6436 if test "$enableval" = yes; then
6437 ac_cv_use_help='wxUSE_HELP=yes'
6438 else
6439 ac_cv_use_help='wxUSE_HELP=no'
6440 fi
6441
6442else
6443
6444 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6445 if test "x$LINE" != x ; then
6446 eval "DEFAULT_$LINE"
6447 else
6448 no_cache=1
6449 fi
6450
6451 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6452
6453fi;
6454
6455 eval "$ac_cv_use_help"
6456 if test "$no_cache" != 1; then
6457 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6458 fi
6459
6460 if test "$wxUSE_HELP" = yes; then
6461 echo "$as_me:$LINENO: result: yes" >&5
6462echo "${ECHO_T}yes" >&6
6463 else
6464 echo "$as_me:$LINENO: result: no" >&5
6465echo "${ECHO_T}no" >&6
6466 fi
6467
6468
6469 enablestring=
6470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6471echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6472 no_cache=0
6473 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6474if test "${enable_mshtmlhelp+set}" = set; then
6475 enableval="$enable_mshtmlhelp"
6476
6477 if test "$enableval" = yes; then
6478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6479 else
6480 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6481 fi
6482
6483else
6484
6485 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6486 if test "x$LINE" != x ; then
6487 eval "DEFAULT_$LINE"
6488 else
6489 no_cache=1
6490 fi
6491
6492 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6493
6494fi;
6495
6496 eval "$ac_cv_use_mshtmlhelp"
6497 if test "$no_cache" != 1; then
6498 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6499 fi
6500
6501 if test "$wxUSE_MS_HTML_HELP" = yes; then
6502 echo "$as_me:$LINENO: result: yes" >&5
6503echo "${ECHO_T}yes" >&6
6504 else
6505 echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6
6507 fi
6508
6509
6510 enablestring=
6511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6512echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6513 no_cache=0
6514 # Check whether --enable-html or --disable-html was given.
6515if test "${enable_html+set}" = set; then
6516 enableval="$enable_html"
6517
6518 if test "$enableval" = yes; then
6519 ac_cv_use_html='wxUSE_HTML=yes'
6520 else
6521 ac_cv_use_html='wxUSE_HTML=no'
6522 fi
6523
6524else
6525
6526 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6527 if test "x$LINE" != x ; then
6528 eval "DEFAULT_$LINE"
6529 else
6530 no_cache=1
6531 fi
6532
6533 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6534
6535fi;
6536
6537 eval "$ac_cv_use_html"
6538 if test "$no_cache" != 1; then
6539 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6540 fi
6541
6542 if test "$wxUSE_HTML" = yes; then
6543 echo "$as_me:$LINENO: result: yes" >&5
6544echo "${ECHO_T}yes" >&6
6545 else
6546 echo "$as_me:$LINENO: result: no" >&5
6547echo "${ECHO_T}no" >&6
6548 fi
6549
6550
6551 enablestring=
6552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6553echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6554 no_cache=0
6555 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6556if test "${enable_htmlhelp+set}" = set; then
6557 enableval="$enable_htmlhelp"
6558
6559 if test "$enableval" = yes; then
6560 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6561 else
6562 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6563 fi
6564
6565else
6566
6567 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6568 if test "x$LINE" != x ; then
6569 eval "DEFAULT_$LINE"
6570 else
6571 no_cache=1
6572 fi
6573
6574 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6575
6576fi;
6577
6578 eval "$ac_cv_use_htmlhelp"
6579 if test "$no_cache" != 1; then
6580 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6581 fi
6582
6583 if test "$wxUSE_WXHTML_HELP" = yes; then
6584 echo "$as_me:$LINENO: result: yes" >&5
6585echo "${ECHO_T}yes" >&6
6586 else
6587 echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6
6589 fi
6590
6591
9a8f0513
VS
6592 enablestring=
6593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6594echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6595 no_cache=0
6596 # Check whether --enable-xrc or --disable-xrc was given.
6597if test "${enable_xrc+set}" = set; then
6598 enableval="$enable_xrc"
6599
6600 if test "$enableval" = yes; then
6601 ac_cv_use_xrc='wxUSE_XRC=yes'
6602 else
6603 ac_cv_use_xrc='wxUSE_XRC=no'
6604 fi
6605
6606else
6607
6608 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6609 if test "x$LINE" != x ; then
6610 eval "DEFAULT_$LINE"
6611 else
6612 no_cache=1
6613 fi
6614
6615 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6616
6617fi;
6618
6619 eval "$ac_cv_use_xrc"
6620 if test "$no_cache" != 1; then
6621 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6622 fi
6623
6624 if test "$wxUSE_XRC" = yes; then
6625 echo "$as_me:$LINENO: result: yes" >&5
6626echo "${ECHO_T}yes" >&6
6627 else
6628 echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6
6630 fi
6631
6632
a848cd7e
SC
6633 enablestring=
6634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6635echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6636 no_cache=0
6637 # Check whether --enable-constraints or --disable-constraints was given.
6638if test "${enable_constraints+set}" = set; then
6639 enableval="$enable_constraints"
6640
6641 if test "$enableval" = yes; then
6642 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6643 else
6644 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6645 fi
6646
6647else
6648
6649 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6650 if test "x$LINE" != x ; then
6651 eval "DEFAULT_$LINE"
6652 else
6653 no_cache=1
6654 fi
6655
6656 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6657
6658fi;
6659
6660 eval "$ac_cv_use_constraints"
6661 if test "$no_cache" != 1; then
6662 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6663 fi
6664
6665 if test "$wxUSE_CONSTRAINTS" = yes; then
6666 echo "$as_me:$LINENO: result: yes" >&5
6667echo "${ECHO_T}yes" >&6
6668 else
6669 echo "$as_me:$LINENO: result: no" >&5
6670echo "${ECHO_T}no" >&6
6671 fi
6672
6673
6674 enablestring=
6675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6676echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6677 no_cache=0
6678 # Check whether --enable-printarch or --disable-printarch was given.
6679if test "${enable_printarch+set}" = set; then
6680 enableval="$enable_printarch"
6681
6682 if test "$enableval" = yes; then
6683 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6684 else
6685 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6686 fi
6687
6688else
6689
6690 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6691 if test "x$LINE" != x ; then
6692 eval "DEFAULT_$LINE"
6693 else
6694 no_cache=1
6695 fi
6696
6697 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6698
6699fi;
6700
6701 eval "$ac_cv_use_printarch"
6702 if test "$no_cache" != 1; then
6703 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6704 fi
6705
6706 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6707 echo "$as_me:$LINENO: result: yes" >&5
6708echo "${ECHO_T}yes" >&6
6709 else
6710 echo "$as_me:$LINENO: result: no" >&5
6711echo "${ECHO_T}no" >&6
6712 fi
6713
6714
6715 enablestring=
6716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6717echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6718 no_cache=0
6719 # Check whether --enable-mdi or --disable-mdi was given.
6720if test "${enable_mdi+set}" = set; then
6721 enableval="$enable_mdi"
6722
6723 if test "$enableval" = yes; then
8a7b1113 6724 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6725 else
8a7b1113 6726 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6727 fi
6728
6729else
6730
8a7b1113 6731 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6732 if test "x$LINE" != x ; then
6733 eval "DEFAULT_$LINE"
6734 else
6735 no_cache=1
6736 fi
6737
8a7b1113 6738 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6739
6740fi;
6741
6742 eval "$ac_cv_use_mdi"
6743 if test "$no_cache" != 1; then
6744 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6745 fi
6746
8a7b1113
VZ
6747 if test "$wxUSE_MDI" = yes; then
6748 echo "$as_me:$LINENO: result: yes" >&5
6749echo "${ECHO_T}yes" >&6
6750 else
6751 echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6
6753 fi
6754
6755
6756 enablestring=
6757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6758echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6759 no_cache=0
6760 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6761if test "${enable_mdidoc+set}" = set; then
6762 enableval="$enable_mdidoc"
6763
6764 if test "$enableval" = yes; then
6765 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6766 else
6767 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6768 fi
6769
6770else
6771
6772 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6773 if test "x$LINE" != x ; then
6774 eval "DEFAULT_$LINE"
6775 else
6776 no_cache=1
6777 fi
6778
6779 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6780
6781fi;
6782
6783 eval "$ac_cv_use_mdidoc"
6784 if test "$no_cache" != 1; then
6785 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6786 fi
6787
a848cd7e
SC
6788 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6789 echo "$as_me:$LINENO: result: yes" >&5
6790echo "${ECHO_T}yes" >&6
6791 else
6792 echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6
6794 fi
6795
6796
6797 enablestring=
6798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6799echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6800 no_cache=0
6801 # Check whether --enable-loggui or --disable-loggui was given.
6802if test "${enable_loggui+set}" = set; then
6803 enableval="$enable_loggui"
6804
6805 if test "$enableval" = yes; then
6806 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6807 else
6808 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6809 fi
6810
6811else
6812
6813 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6814 if test "x$LINE" != x ; then
6815 eval "DEFAULT_$LINE"
6816 else
6817 no_cache=1
6818 fi
6819
6820 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6821
6822fi;
6823
6824 eval "$ac_cv_use_loggui"
6825 if test "$no_cache" != 1; then
6826 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6827 fi
6828
6829 if test "$wxUSE_LOGGUI" = yes; then
6830 echo "$as_me:$LINENO: result: yes" >&5
6831echo "${ECHO_T}yes" >&6
6832 else
6833 echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6
6835 fi
6836
6837
6838 enablestring=
6839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6840echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6841 no_cache=0
6842 # Check whether --enable-logwin or --disable-logwin was given.
6843if test "${enable_logwin+set}" = set; then
6844 enableval="$enable_logwin"
6845
6846 if test "$enableval" = yes; then
6847 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6848 else
6849 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6850 fi
6851
6852else
6853
6854 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6855 if test "x$LINE" != x ; then
6856 eval "DEFAULT_$LINE"
6857 else
6858 no_cache=1
6859 fi
6860
6861 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6862
6863fi;
6864
6865 eval "$ac_cv_use_logwin"
6866 if test "$no_cache" != 1; then
6867 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6868 fi
6869
6870 if test "$wxUSE_LOGWINDOW" = yes; then
6871 echo "$as_me:$LINENO: result: yes" >&5
6872echo "${ECHO_T}yes" >&6
6873 else
6874 echo "$as_me:$LINENO: result: no" >&5
6875echo "${ECHO_T}no" >&6
6876 fi
6877
6878
6879 enablestring=
6880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6881echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6882 no_cache=0
6883 # Check whether --enable-logdialog or --disable-logdialog was given.
6884if test "${enable_logdialog+set}" = set; then
6885 enableval="$enable_logdialog"
6886
6887 if test "$enableval" = yes; then
6888 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6889 else
6890 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6891 fi
6892
6893else
6894
6895 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6896 if test "x$LINE" != x ; then
6897 eval "DEFAULT_$LINE"
6898 else
6899 no_cache=1
6900 fi
6901
6902 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6903
6904fi;
6905
6906 eval "$ac_cv_use_logdialog"
6907 if test "$no_cache" != 1; then
6908 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6909 fi
6910
6911 if test "$wxUSE_LOGDIALOG" = yes; then
6912 echo "$as_me:$LINENO: result: yes" >&5
6913echo "${ECHO_T}yes" >&6
6914 else
6915 echo "$as_me:$LINENO: result: no" >&5
6916echo "${ECHO_T}no" >&6
6917 fi
6918
6919
646b6ec1
VS
6920 enablestring=
6921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6922echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6923 no_cache=0
6924 # Check whether --enable-webkit or --disable-webkit was given.
6925if test "${enable_webkit+set}" = set; then
6926 enableval="$enable_webkit"
6927
6928 if test "$enableval" = yes; then
6929 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6930 else
6931 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6932 fi
6933
6934else
6935
6936 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
6943 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6944
6945fi;
6946
6947 eval "$ac_cv_use_webkit"
6948 if test "$no_cache" != 1; then
6949 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6950 fi
6951
6952 if test "$wxUSE_WEBKIT" = yes; then
6953 echo "$as_me:$LINENO: result: yes" >&5
6954echo "${ECHO_T}yes" >&6
6955 else
6956 echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6
6958 fi
6959
6960
a848cd7e
SC
6961
6962 enablestring=
6963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6964echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6965 no_cache=0
6966 # Check whether --enable-postscript or --disable-postscript was given.
6967if test "${enable_postscript+set}" = set; then
6968 enableval="$enable_postscript"
6969
6970 if test "$enableval" = yes; then
6971 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6972 else
6973 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6974 fi
6975
6976else
6977
6978 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6979 if test "x$LINE" != x ; then
6980 eval "DEFAULT_$LINE"
6981 else
6982 no_cache=1
6983 fi
6984
6985 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6986
6987fi;
6988
6989 eval "$ac_cv_use_postscript"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_POSTSCRIPT" = yes; then
6995 echo "$as_me:$LINENO: result: yes" >&5
6996echo "${ECHO_T}yes" >&6
6997 else
6998 echo "$as_me:$LINENO: result: no" >&5
6999echo "${ECHO_T}no" >&6
7000 fi
7001
7002
7003
7004
7005
7006 enablestring=
7007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7008echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7009 no_cache=0
7010 # Check whether --enable-prologio or --disable-prologio was given.
7011if test "${enable_prologio+set}" = set; then
7012 enableval="$enable_prologio"
7013
7014 if test "$enableval" = yes; then
7015 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7016 else
7017 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7018 fi
7019
7020else
7021
7022 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7030
7031fi;
7032
7033 eval "$ac_cv_use_prologio"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_PROLOGIO" = yes; then
7039 echo "$as_me:$LINENO: result: yes" >&5
7040echo "${ECHO_T}yes" >&6
7041 else
7042 echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6
7044 fi
7045
7046
7047 enablestring=
7048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7049echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7050 no_cache=0
7051 # Check whether --enable-resources or --disable-resources was given.
7052if test "${enable_resources+set}" = set; then
7053 enableval="$enable_resources"
7054
7055 if test "$enableval" = yes; then
7056 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7057 else
7058 ac_cv_use_resources='wxUSE_RESOURCES=no'
7059 fi
7060
7061else
7062
7063 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7071
7072fi;
7073
7074 eval "$ac_cv_use_resources"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_RESOURCES" = yes; then
7080 echo "$as_me:$LINENO: result: yes" >&5
7081echo "${ECHO_T}yes" >&6
7082 else
7083 echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
7085 fi
7086
7087
7088
7089
7090 enablestring=
7091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7092echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7093 no_cache=0
7094 # Check whether --enable-clipboard or --disable-clipboard was given.
7095if test "${enable_clipboard+set}" = set; then
7096 enableval="$enable_clipboard"
7097
7098 if test "$enableval" = yes; then
7099 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7100 else
7101 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7102 fi
7103
7104else
7105
7106 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7114
7115fi;
7116
7117 eval "$ac_cv_use_clipboard"
7118 if test "$no_cache" != 1; then
7119 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7120 fi
7121
7122 if test "$wxUSE_CLIPBOARD" = yes; then
7123 echo "$as_me:$LINENO: result: yes" >&5
7124echo "${ECHO_T}yes" >&6
7125 else
7126 echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6
7128 fi
7129
7130
7131 enablestring=
7132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7133echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7134 no_cache=0
7135 # Check whether --enable-dnd or --disable-dnd was given.
7136if test "${enable_dnd+set}" = set; then
7137 enableval="$enable_dnd"
7138
7139 if test "$enableval" = yes; then
7140 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7141 else
7142 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7143 fi
7144
7145else
7146
7147 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7148 if test "x$LINE" != x ; then
7149 eval "DEFAULT_$LINE"
7150 else
7151 no_cache=1
7152 fi
7153
7154 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7155
7156fi;
7157
7158 eval "$ac_cv_use_dnd"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7164 echo "$as_me:$LINENO: result: yes" >&5
7165echo "${ECHO_T}yes" >&6
7166 else
7167 echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169 fi
7170
7171
7172 enablestring=
7173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7174echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7175 no_cache=0
7176 # Check whether --enable-metafile or --disable-metafile was given.
7177if test "${enable_metafile+set}" = set; then
7178 enableval="$enable_metafile"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7182 else
7183 ac_cv_use_metafile='wxUSE_METAFILE=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7196
7197fi;
7198
7199 eval "$ac_cv_use_metafile"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_METAFILE" = yes; then
7205 echo "$as_me:$LINENO: result: yes" >&5
7206echo "${ECHO_T}yes" >&6
7207 else
7208 echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6
7210 fi
7211
7212
7213
7214
7215
7216 enablestring=
7217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7218echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7219 no_cache=0
7220 # Check whether --enable-controls or --disable-controls was given.
7221if test "${enable_controls+set}" = set; then
7222 enableval="$enable_controls"
7223
7224 if test "$enableval" = yes; then
7225 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7226 else
7227 ac_cv_use_controls='wxUSE_CONTROLS=no'
7228 fi
7229
7230else
7231
7232 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7240
7241fi;
7242
7243 eval "$ac_cv_use_controls"
7244 if test "$no_cache" != 1; then
7245 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7246 fi
7247
7248 if test "$wxUSE_CONTROLS" = yes; then
7249 echo "$as_me:$LINENO: result: yes" >&5
7250echo "${ECHO_T}yes" >&6
7251 else
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
7254 fi
7255
7256
7257if test "$wxUSE_CONTROLS" = "yes"; then
7258 DEFAULT_wxUSE_ACCEL=yes
7259 DEFAULT_wxUSE_BMPBUTTON=yes
7260 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7261 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7262 DEFAULT_wxUSE_CARET=yes
7263 DEFAULT_wxUSE_COMBOBOX=yes
7264 DEFAULT_wxUSE_CHECKBOX=yes
7265 DEFAULT_wxUSE_CHECKLISTBOX=yes
7266 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7267 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7268 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7269 DEFAULT_wxUSE_GAUGE=yes
7270 DEFAULT_wxUSE_GRID=yes
7271 DEFAULT_wxUSE_IMAGLIST=yes
7272 DEFAULT_wxUSE_LISTBOOK=yes
7273 DEFAULT_wxUSE_LISTBOX=yes
7274 DEFAULT_wxUSE_LISTCTRL=yes
7275 DEFAULT_wxUSE_NOTEBOOK=yes
7276 DEFAULT_wxUSE_RADIOBOX=yes
7277 DEFAULT_wxUSE_RADIOBTN=yes
7278 DEFAULT_wxUSE_SASH=yes
7279 DEFAULT_wxUSE_SCROLLBAR=yes
7280 DEFAULT_wxUSE_SLIDER=yes
7281 DEFAULT_wxUSE_SPINBTN=yes
7282 DEFAULT_wxUSE_SPINCTRL=yes
7283 DEFAULT_wxUSE_SPLITTER=yes
7284 DEFAULT_wxUSE_STATBMP=yes
7285 DEFAULT_wxUSE_STATBOX=yes
7286 DEFAULT_wxUSE_STATLINE=yes
7287 DEFAULT_wxUSE_STATUSBAR=yes
7288 DEFAULT_wxUSE_TAB_DIALOG=yes
7289 DEFAULT_wxUSE_TOGGLEBTN=yes
7290 DEFAULT_wxUSE_TOOLBAR=yes
7291 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7292 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7293 DEFAULT_wxUSE_TOOLTIPS=yes
7294 DEFAULT_wxUSE_TREECTRL=yes
7295 DEFAULT_wxUSE_POPUPWIN=yes
7296 DEFAULT_wxUSE_TIPWINDOW=yes
7297elif test "$wxUSE_CONTROLS" = "no"; then
7298 DEFAULT_wxUSE_ACCEL=no
7299 DEFAULT_wxUSE_BMPBUTTON=no
7300 DEFAULT_wxUSE_BUTTON=no
7301 DEFAULT_wxUSE_CALCTRL=no
7302 DEFAULT_wxUSE_CARET=no
7303 DEFAULT_wxUSE_COMBOBOX=no
7304 DEFAULT_wxUSE_CHECKBOX=no
7305 DEFAULT_wxUSE_CHECKLISTBOX=no
7306 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7307 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7308 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7309 DEFAULT_wxUSE_GAUGE=no
7310 DEFAULT_wxUSE_GRID=no
7311 DEFAULT_wxUSE_IMAGLIST=no
7312 DEFAULT_wxUSE_LISTBOOK=no
7313 DEFAULT_wxUSE_LISTBOX=no
7314 DEFAULT_wxUSE_LISTCTRL=no
7315 DEFAULT_wxUSE_NOTEBOOK=no
7316 DEFAULT_wxUSE_RADIOBOX=no
7317 DEFAULT_wxUSE_RADIOBTN=no
7318 DEFAULT_wxUSE_SASH=no
7319 DEFAULT_wxUSE_SCROLLBAR=no
7320 DEFAULT_wxUSE_SLIDER=no
7321 DEFAULT_wxUSE_SPINBTN=no
7322 DEFAULT_wxUSE_SPINCTRL=no
7323 DEFAULT_wxUSE_SPLITTER=no
7324 DEFAULT_wxUSE_STATBMP=no
7325 DEFAULT_wxUSE_STATBOX=no
7326 DEFAULT_wxUSE_STATLINE=no
7327 DEFAULT_wxUSE_STATUSBAR=no
7328 DEFAULT_wxUSE_TAB_DIALOG=no
7329 DEFAULT_wxUSE_TOGGLEBTN=no
7330 DEFAULT_wxUSE_TOOLBAR=no
7331 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7332 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7333 DEFAULT_wxUSE_TOOLTIPS=no
7334 DEFAULT_wxUSE_TREECTRL=no
7335 DEFAULT_wxUSE_POPUPWIN=no
7336 DEFAULT_wxUSE_TIPWINDOW=no
7337fi
7338
a848cd7e
SC
7339
7340 enablestring=
7341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7342echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7343 no_cache=0
7344 # Check whether --enable-accel or --disable-accel was given.
7345if test "${enable_accel+set}" = set; then
7346 enableval="$enable_accel"
7347
7348 if test "$enableval" = yes; then
7349 ac_cv_use_accel='wxUSE_ACCEL=yes'
7350 else
7351 ac_cv_use_accel='wxUSE_ACCEL=no'
7352 fi
7353
7354else
7355
7356 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7357 if test "x$LINE" != x ; then
7358 eval "DEFAULT_$LINE"
7359 else
7360 no_cache=1
7361 fi
7362
7363 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7364
7365fi;
7366
7367 eval "$ac_cv_use_accel"
7368 if test "$no_cache" != 1; then
7369 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7370 fi
7371
7372 if test "$wxUSE_ACCEL" = yes; then
7373 echo "$as_me:$LINENO: result: yes" >&5
7374echo "${ECHO_T}yes" >&6
7375 else
7376 echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6
7378 fi
7379
7380
7381 enablestring=
7382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7383echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7384 no_cache=0
7385 # Check whether --enable-button or --disable-button was given.
7386if test "${enable_button+set}" = set; then
7387 enableval="$enable_button"
7388
7389 if test "$enableval" = yes; then
7390 ac_cv_use_button='wxUSE_BUTTON=yes'
7391 else
7392 ac_cv_use_button='wxUSE_BUTTON=no'
7393 fi
7394
7395else
7396
7397 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7398 if test "x$LINE" != x ; then
7399 eval "DEFAULT_$LINE"
7400 else
7401 no_cache=1
7402 fi
7403
7404 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7405
7406fi;
7407
7408 eval "$ac_cv_use_button"
7409 if test "$no_cache" != 1; then
7410 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7411 fi
7412
7413 if test "$wxUSE_BUTTON" = yes; then
7414 echo "$as_me:$LINENO: result: yes" >&5
7415echo "${ECHO_T}yes" >&6
7416 else
7417 echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6
7419 fi
7420
7421
7422 enablestring=
7423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7424echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7425 no_cache=0
7426 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7427if test "${enable_bmpbutton+set}" = set; then
7428 enableval="$enable_bmpbutton"
7429
7430 if test "$enableval" = yes; then
7431 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7432 else
7433 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7434 fi
7435
7436else
7437
7438 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7439 if test "x$LINE" != x ; then
7440 eval "DEFAULT_$LINE"
7441 else
7442 no_cache=1
7443 fi
7444
7445 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7446
7447fi;
7448
7449 eval "$ac_cv_use_bmpbutton"
7450 if test "$no_cache" != 1; then
7451 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7452 fi
7453
7454 if test "$wxUSE_BMPBUTTON" = yes; then
7455 echo "$as_me:$LINENO: result: yes" >&5
7456echo "${ECHO_T}yes" >&6
7457 else
7458 echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6
7460 fi
7461
7462
7463 enablestring=
7464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7465echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7466 no_cache=0
7467 # Check whether --enable-calendar or --disable-calendar was given.
7468if test "${enable_calendar+set}" = set; then
7469 enableval="$enable_calendar"
7470
7471 if test "$enableval" = yes; then
7472 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7473 else
7474 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7475 fi
7476
7477else
7478
7479 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7480 if test "x$LINE" != x ; then
7481 eval "DEFAULT_$LINE"
7482 else
7483 no_cache=1
7484 fi
7485
7486 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7487
7488fi;
7489
7490 eval "$ac_cv_use_calendar"
7491 if test "$no_cache" != 1; then
7492 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7493 fi
7494
7495 if test "$wxUSE_CALCTRL" = yes; then
7496 echo "$as_me:$LINENO: result: yes" >&5
7497echo "${ECHO_T}yes" >&6
7498 else
7499 echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
7501 fi
7502
7503
7504 enablestring=
7505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7506echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7507 no_cache=0
7508 # Check whether --enable-caret or --disable-caret was given.
7509if test "${enable_caret+set}" = set; then
7510 enableval="$enable_caret"
7511
7512 if test "$enableval" = yes; then
7513 ac_cv_use_caret='wxUSE_CARET=yes'
7514 else
7515 ac_cv_use_caret='wxUSE_CARET=no'
7516 fi
7517
7518else
7519
7520 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7521 if test "x$LINE" != x ; then
7522 eval "DEFAULT_$LINE"
7523 else
7524 no_cache=1
7525 fi
7526
7527 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7528
7529fi;
7530
7531 eval "$ac_cv_use_caret"
7532 if test "$no_cache" != 1; then
7533 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7534 fi
7535
7536 if test "$wxUSE_CARET" = yes; then
7537 echo "$as_me:$LINENO: result: yes" >&5
7538echo "${ECHO_T}yes" >&6
7539 else
7540 echo "$as_me:$LINENO: result: no" >&5
7541echo "${ECHO_T}no" >&6
7542 fi
7543
7544
7545 enablestring=
7546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7547echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7548 no_cache=0
7549 # Check whether --enable-checkbox or --disable-checkbox was given.
7550if test "${enable_checkbox+set}" = set; then
7551 enableval="$enable_checkbox"
7552
7553 if test "$enableval" = yes; then
7554 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7555 else
7556 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7557 fi
7558
7559else
7560
7561 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7562 if test "x$LINE" != x ; then
7563 eval "DEFAULT_$LINE"
7564 else
7565 no_cache=1
7566 fi
7567
7568 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7569
7570fi;
7571
7572 eval "$ac_cv_use_checkbox"
7573 if test "$no_cache" != 1; then
7574 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7575 fi
7576
7577 if test "$wxUSE_CHECKBOX" = yes; then
7578 echo "$as_me:$LINENO: result: yes" >&5
7579echo "${ECHO_T}yes" >&6
7580 else
7581 echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6
7583 fi
7584
7585
7586 enablestring=
7587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7588echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7589 no_cache=0
7590 # Check whether --enable-checklst or --disable-checklst was given.
7591if test "${enable_checklst+set}" = set; then
7592 enableval="$enable_checklst"
7593
7594 if test "$enableval" = yes; then
7595 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7596 else
7597 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7598 fi
7599
7600else
7601
7602 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7603 if test "x$LINE" != x ; then
7604 eval "DEFAULT_$LINE"
7605 else
7606 no_cache=1
7607 fi
7608
7609 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7610
7611fi;
7612
7613 eval "$ac_cv_use_checklst"
7614 if test "$no_cache" != 1; then
7615 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7616 fi
7617
7618 if test "$wxUSE_CHECKLST" = yes; then
7619 echo "$as_me:$LINENO: result: yes" >&5
7620echo "${ECHO_T}yes" >&6
7621 else
7622 echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6
7624 fi
7625
7626
7627 enablestring=
7628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7629echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7630 no_cache=0
7631 # Check whether --enable-choice or --disable-choice was given.
7632if test "${enable_choice+set}" = set; then
7633 enableval="$enable_choice"
7634
7635 if test "$enableval" = yes; then
7636 ac_cv_use_choice='wxUSE_CHOICE=yes'
7637 else
7638 ac_cv_use_choice='wxUSE_CHOICE=no'
7639 fi
7640
7641else
7642
7643 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7644 if test "x$LINE" != x ; then
7645 eval "DEFAULT_$LINE"
7646 else
7647 no_cache=1
7648 fi
7649
7650 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7651
7652fi;
7653
7654 eval "$ac_cv_use_choice"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_CHOICE" = yes; then
7660 echo "$as_me:$LINENO: result: yes" >&5
7661echo "${ECHO_T}yes" >&6
7662 else
7663 echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6
7665 fi
7666
7667
92bbdbcd
WS
7668 enablestring=
7669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7670echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7671 no_cache=0
7672 # Check whether --enable-choicebook or --disable-choicebook was given.
7673if test "${enable_choicebook+set}" = set; then
7674 enableval="$enable_choicebook"
7675
7676 if test "$enableval" = yes; then
7677 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7678 else
7679 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7680 fi
7681
7682else
7683
7684 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7685 if test "x$LINE" != x ; then
7686 eval "DEFAULT_$LINE"
7687 else
7688 no_cache=1
7689 fi
7690
7691 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7692
7693fi;
7694
7695 eval "$ac_cv_use_choicebook"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_CHOICEBOOK" = yes; then
7701 echo "$as_me:$LINENO: result: yes" >&5
7702echo "${ECHO_T}yes" >&6
7703 else
7704 echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706 fi
7707
7708
a848cd7e
SC
7709 enablestring=
7710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7711echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7712 no_cache=0
7713 # Check whether --enable-combobox or --disable-combobox was given.
7714if test "${enable_combobox+set}" = set; then
7715 enableval="$enable_combobox"
7716
7717 if test "$enableval" = yes; then
7718 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7719 else
7720 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7721 fi
7722
7723else
7724
7725 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7733
7734fi;
7735
7736 eval "$ac_cv_use_combobox"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_COMBOBOX" = yes; then
7742 echo "$as_me:$LINENO: result: yes" >&5
7743echo "${ECHO_T}yes" >&6
7744 else
7745 echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
7747 fi
7748
7749
da98e9be
VZ
7750 enablestring=
7751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7752echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7753 no_cache=0
7754 # Check whether --enable-datepick or --disable-datepick was given.
7755if test "${enable_datepick+set}" = set; then
7756 enableval="$enable_datepick"
7757
7758 if test "$enableval" = yes; then
7759 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7760 else
7761 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7762 fi
7763
7764else
7765
7766 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7767 if test "x$LINE" != x ; then
7768 eval "DEFAULT_$LINE"
7769 else
7770 no_cache=1
7771 fi
7772
7773 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7774
7775fi;
7776
7777 eval "$ac_cv_use_datepick"
7778 if test "$no_cache" != 1; then
7779 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7780 fi
7781
7782 if test "$wxUSE_DATEPICKCTRL" = yes; then
7783 echo "$as_me:$LINENO: result: yes" >&5
7784echo "${ECHO_T}yes" >&6
7785 else
7786 echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6
7788 fi
7789
7790
a848cd7e
SC
7791 enablestring=
7792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7793echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7794 no_cache=0
7795 # Check whether --enable-display or --disable-display was given.
7796if test "${enable_display+set}" = set; then
7797 enableval="$enable_display"
7798
7799 if test "$enableval" = yes; then
7800 ac_cv_use_display='wxUSE_DISPLAY=yes'
7801 else
7802 ac_cv_use_display='wxUSE_DISPLAY=no'
7803 fi
7804
7805else
7806
7807 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7808 if test "x$LINE" != x ; then
7809 eval "DEFAULT_$LINE"
7810 else
7811 no_cache=1
7812 fi
7813
7814 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7815
7816fi;
7817
7818 eval "$ac_cv_use_display"
7819 if test "$no_cache" != 1; then
7820 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7821 fi
7822
7823 if test "$wxUSE_DISPLAY" = yes; then
7824 echo "$as_me:$LINENO: result: yes" >&5
7825echo "${ECHO_T}yes" >&6
7826 else
7827 echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6
7829 fi
7830
7831
7832 enablestring=
7833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7834echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7835 no_cache=0
7836 # Check whether --enable-gauge or --disable-gauge was given.
7837if test "${enable_gauge+set}" = set; then
7838 enableval="$enable_gauge"
7839
7840 if test "$enableval" = yes; then
7841 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7842 else
7843 ac_cv_use_gauge='wxUSE_GAUGE=no'
7844 fi
7845
7846else
7847
7848 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7849 if test "x$LINE" != x ; then
7850 eval "DEFAULT_$LINE"
7851 else
7852 no_cache=1
7853 fi
7854
7855 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7856
7857fi;
7858
7859 eval "$ac_cv_use_gauge"
7860 if test "$no_cache" != 1; then
7861 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7862 fi
7863
7864 if test "$wxUSE_GAUGE" = yes; then
7865 echo "$as_me:$LINENO: result: yes" >&5
7866echo "${ECHO_T}yes" >&6
7867 else
7868 echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6
7870 fi
7871
7872
7873 enablestring=
7874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7875echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7876 no_cache=0
7877 # Check whether --enable-grid or --disable-grid was given.
7878if test "${enable_grid+set}" = set; then
7879 enableval="$enable_grid"
7880
7881 if test "$enableval" = yes; then
7882 ac_cv_use_grid='wxUSE_GRID=yes'
7883 else
7884 ac_cv_use_grid='wxUSE_GRID=no'
7885 fi
7886
7887else
7888
7889 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7890 if test "x$LINE" != x ; then
7891 eval "DEFAULT_$LINE"
7892 else
7893 no_cache=1
7894 fi
7895
7896 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7897
7898fi;
7899
7900 eval "$ac_cv_use_grid"
7901 if test "$no_cache" != 1; then
7902 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7903 fi
7904
7905 if test "$wxUSE_GRID" = yes; then
7906 echo "$as_me:$LINENO: result: yes" >&5
7907echo "${ECHO_T}yes" >&6
7908 else
7909 echo "$as_me:$LINENO: result: no" >&5
7910echo "${ECHO_T}no" >&6
7911 fi
7912
7913
7914 enablestring=
7915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7916echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7917 no_cache=0
7918 # Check whether --enable-imaglist or --disable-imaglist was given.
7919if test "${enable_imaglist+set}" = set; then
7920 enableval="$enable_imaglist"
7921
7922 if test "$enableval" = yes; then
7923 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7924 else
7925 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7926 fi
7927
7928else
7929
7930 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7931 if test "x$LINE" != x ; then
7932 eval "DEFAULT_$LINE"
7933 else
7934 no_cache=1
7935 fi
7936
7937 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7938
7939fi;
7940
7941 eval "$ac_cv_use_imaglist"
7942 if test "$no_cache" != 1; then
7943 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7944 fi
7945
7946 if test "$wxUSE_IMAGLIST" = yes; then
7947 echo "$as_me:$LINENO: result: yes" >&5
7948echo "${ECHO_T}yes" >&6
7949 else
7950 echo "$as_me:$LINENO: result: no" >&5
7951echo "${ECHO_T}no" >&6
7952 fi
7953
7954
7955 enablestring=
7956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7957echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7958 no_cache=0
7959 # Check whether --enable-listbook or --disable-listbook was given.
7960if test "${enable_listbook+set}" = set; then
7961 enableval="$enable_listbook"
7962
7963 if test "$enableval" = yes; then
7964 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7965 else
7966 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7967 fi
7968
7969else
7970
7971 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7979
7980fi;
7981
7982 eval "$ac_cv_use_listbook"
7983 if test "$no_cache" != 1; then
7984 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7985 fi
7986
7987 if test "$wxUSE_LISTBOOK" = yes; then
7988 echo "$as_me:$LINENO: result: yes" >&5
7989echo "${ECHO_T}yes" >&6
7990 else
7991 echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6
7993 fi
7994
7995
7996 enablestring=
7997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7998echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7999 no_cache=0
8000 # Check whether --enable-listbox or --disable-listbox was given.
8001if test "${enable_listbox+set}" = set; then
8002 enableval="$enable_listbox"
8003
8004 if test "$enableval" = yes; then
8005 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8006 else
8007 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8008 fi
8009
8010else
8011
8012 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8013 if test "x$LINE" != x ; then
8014 eval "DEFAULT_$LINE"
8015 else
8016 no_cache=1
8017 fi
8018
8019 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8020
8021fi;
8022
8023 eval "$ac_cv_use_listbox"
8024 if test "$no_cache" != 1; then
8025 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8026 fi
8027
8028 if test "$wxUSE_LISTBOX" = yes; then
8029 echo "$as_me:$LINENO: result: yes" >&5
8030echo "${ECHO_T}yes" >&6
8031 else
8032 echo "$as_me:$LINENO: result: no" >&5
8033echo "${ECHO_T}no" >&6
8034 fi
8035
8036
8037 enablestring=
8038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8039echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8040 no_cache=0
8041 # Check whether --enable-listctrl or --disable-listctrl was given.
8042if test "${enable_listctrl+set}" = set; then
8043 enableval="$enable_listctrl"
8044
8045 if test "$enableval" = yes; then
8046 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8047 else
8048 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8049 fi
8050
8051else
8052
8053 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8054 if test "x$LINE" != x ; then
8055 eval "DEFAULT_$LINE"
8056 else
8057 no_cache=1
8058 fi
8059
8060 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8061
8062fi;
8063
8064 eval "$ac_cv_use_listctrl"
8065 if test "$no_cache" != 1; then
8066 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8067 fi
8068
8069 if test "$wxUSE_LISTCTRL" = yes; then
8070 echo "$as_me:$LINENO: result: yes" >&5
8071echo "${ECHO_T}yes" >&6
8072 else
8073 echo "$as_me:$LINENO: result: no" >&5
8074echo "${ECHO_T}no" >&6
8075 fi
8076
8077
8078 enablestring=
8079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8080echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8081 no_cache=0
8082 # Check whether --enable-notebook or --disable-notebook was given.
8083if test "${enable_notebook+set}" = set; then
8084 enableval="$enable_notebook"
8085
8086 if test "$enableval" = yes; then
8087 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8088 else
8089 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8090 fi
8091
8092else
8093
8094 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8095 if test "x$LINE" != x ; then
8096 eval "DEFAULT_$LINE"
8097 else
8098 no_cache=1
8099 fi
8100
8101 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8102
8103fi;
8104
8105 eval "$ac_cv_use_notebook"
8106 if test "$no_cache" != 1; then
8107 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8108 fi
8109
8110 if test "$wxUSE_NOTEBOOK" = yes; then
8111 echo "$as_me:$LINENO: result: yes" >&5
8112echo "${ECHO_T}yes" >&6
8113 else
8114 echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6
8116 fi
8117
8118
8119 enablestring=
8120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8121echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8122 no_cache=0
8123 # Check whether --enable-radiobox or --disable-radiobox was given.
8124if test "${enable_radiobox+set}" = set; then
8125 enableval="$enable_radiobox"
8126
8127 if test "$enableval" = yes; then
8128 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8129 else
8130 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8131 fi
8132
8133else
8134
8135 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8136 if test "x$LINE" != x ; then
8137 eval "DEFAULT_$LINE"
8138 else
8139 no_cache=1
8140 fi
8141
8142 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8143
8144fi;
8145
8146 eval "$ac_cv_use_radiobox"
8147 if test "$no_cache" != 1; then
8148 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8149 fi
8150
8151 if test "$wxUSE_RADIOBOX" = yes; then
8152 echo "$as_me:$LINENO: result: yes" >&5
8153echo "${ECHO_T}yes" >&6
8154 else
8155 echo "$as_me:$LINENO: result: no" >&5
8156echo "${ECHO_T}no" >&6
8157 fi
8158
8159
8160 enablestring=
8161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8162echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8163 no_cache=0
8164 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8165if test "${enable_radiobtn+set}" = set; then
8166 enableval="$enable_radiobtn"
8167
8168 if test "$enableval" = yes; then
8169 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8170 else
8171 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8172 fi
8173
8174else
8175
8176 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8177 if test "x$LINE" != x ; then
8178 eval "DEFAULT_$LINE"
8179 else
8180 no_cache=1
8181 fi
8182
8183 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8184
8185fi;
8186
8187 eval "$ac_cv_use_radiobtn"
8188 if test "$no_cache" != 1; then
8189 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8190 fi
8191
8192 if test "$wxUSE_RADIOBTN" = yes; then
8193 echo "$as_me:$LINENO: result: yes" >&5
8194echo "${ECHO_T}yes" >&6
8195 else
8196 echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6
8198 fi
8199
8200
8201 enablestring=
8202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8203echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8204 no_cache=0
8205 # Check whether --enable-sash or --disable-sash was given.
8206if test "${enable_sash+set}" = set; then
8207 enableval="$enable_sash"
8208
8209 if test "$enableval" = yes; then
8210 ac_cv_use_sash='wxUSE_SASH=yes'
8211 else
8212 ac_cv_use_sash='wxUSE_SASH=no'
8213 fi
8214
8215else
8216
8217 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8218 if test "x$LINE" != x ; then
8219 eval "DEFAULT_$LINE"
8220 else
8221 no_cache=1
8222 fi
8223
8224 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8225
8226fi;
8227
8228 eval "$ac_cv_use_sash"
8229 if test "$no_cache" != 1; then
8230 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8231 fi
8232
8233 if test "$wxUSE_SASH" = yes; then
8234 echo "$as_me:$LINENO: result: yes" >&5
8235echo "${ECHO_T}yes" >&6
8236 else
8237 echo "$as_me:$LINENO: result: no" >&5
8238echo "${ECHO_T}no" >&6
8239 fi
8240
8241
8242 enablestring=
8243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8244echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8245 no_cache=0
8246 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8247if test "${enable_scrollbar+set}" = set; then
8248 enableval="$enable_scrollbar"
8249
8250 if test "$enableval" = yes; then
8251 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8252 else
8253 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8254 fi
8255
8256else
8257
8258 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8259 if test "x$LINE" != x ; then
8260 eval "DEFAULT_$LINE"
8261 else
8262 no_cache=1
8263 fi
8264
8265 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8266
8267fi;
8268
8269 eval "$ac_cv_use_scrollbar"
8270 if test "$no_cache" != 1; then
8271 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8272 fi
8273
8274 if test "$wxUSE_SCROLLBAR" = yes; then
8275 echo "$as_me:$LINENO: result: yes" >&5
8276echo "${ECHO_T}yes" >&6
8277 else
8278 echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6
8280 fi
8281
8282
8283 enablestring=
8284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8285echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8286 no_cache=0
8287 # Check whether --enable-slider or --disable-slider was given.
8288if test "${enable_slider+set}" = set; then
8289 enableval="$enable_slider"
8290
8291 if test "$enableval" = yes; then
8292 ac_cv_use_slider='wxUSE_SLIDER=yes'
8293 else
8294 ac_cv_use_slider='wxUSE_SLIDER=no'
8295 fi
8296
8297else
8298
8299 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8300 if test "x$LINE" != x ; then
8301 eval "DEFAULT_$LINE"
8302 else
8303 no_cache=1
8304 fi
8305
8306 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8307
8308fi;
8309
8310 eval "$ac_cv_use_slider"
8311 if test "$no_cache" != 1; then
8312 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8313 fi
8314
8315 if test "$wxUSE_SLIDER" = yes; then
8316 echo "$as_me:$LINENO: result: yes" >&5
8317echo "${ECHO_T}yes" >&6
8318 else
8319 echo "$as_me:$LINENO: result: no" >&5
8320echo "${ECHO_T}no" >&6
8321 fi
8322
8323
8324 enablestring=
8325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8326echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8327 no_cache=0
8328 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8329if test "${enable_spinbtn+set}" = set; then
8330 enableval="$enable_spinbtn"
8331
8332 if test "$enableval" = yes; then
8333 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8334 else
8335 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8336 fi
8337
8338else
8339
8340 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8341 if test "x$LINE" != x ; then
8342 eval "DEFAULT_$LINE"
8343 else
8344 no_cache=1
8345 fi
8346
8347 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8348
8349fi;
8350
8351 eval "$ac_cv_use_spinbtn"
8352 if test "$no_cache" != 1; then
8353 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8354 fi
8355
8356 if test "$wxUSE_SPINBTN" = yes; then
8357 echo "$as_me:$LINENO: result: yes" >&5
8358echo "${ECHO_T}yes" >&6
8359 else
8360 echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6
8362 fi
8363
8364
8365 enablestring=
8366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8367echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8368 no_cache=0
8369 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8370if test "${enable_spinctrl+set}" = set; then
8371 enableval="$enable_spinctrl"
8372
8373 if test "$enableval" = yes; then
8374 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8375 else
8376 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8377 fi
8378
8379else
8380
8381 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8382 if test "x$LINE" != x ; then
8383 eval "DEFAULT_$LINE"
8384 else
8385 no_cache=1
8386 fi
8387
8388 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8389
8390fi;
8391
8392 eval "$ac_cv_use_spinctrl"
8393 if test "$no_cache" != 1; then
8394 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8395 fi
8396
8397 if test "$wxUSE_SPINCTRL" = yes; then
8398 echo "$as_me:$LINENO: result: yes" >&5
8399echo "${ECHO_T}yes" >&6
8400 else
8401 echo "$as_me:$LINENO: result: no" >&5
8402echo "${ECHO_T}no" >&6
8403 fi
8404
8405
8406 enablestring=
8407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8408echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8409 no_cache=0
8410 # Check whether --enable-splitter or --disable-splitter was given.
8411if test "${enable_splitter+set}" = set; then
8412 enableval="$enable_splitter"
8413
8414 if test "$enableval" = yes; then
8415 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8416 else
8417 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8418 fi
8419
8420else
8421
8422 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8423 if test "x$LINE" != x ; then
8424 eval "DEFAULT_$LINE"
8425 else
8426 no_cache=1
8427 fi
8428
8429 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8430
8431fi;
8432
8433 eval "$ac_cv_use_splitter"
8434 if test "$no_cache" != 1; then
8435 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8436 fi
8437
8438 if test "$wxUSE_SPLITTER" = yes; then
8439 echo "$as_me:$LINENO: result: yes" >&5
8440echo "${ECHO_T}yes" >&6
8441 else
8442 echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6
8444 fi
8445
8446
8447 enablestring=
8448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8449echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8450 no_cache=0
8451 # Check whether --enable-statbmp or --disable-statbmp was given.
8452if test "${enable_statbmp+set}" = set; then
8453 enableval="$enable_statbmp"
8454
8455 if test "$enableval" = yes; then
8456 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8457 else
8458 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8459 fi
8460
8461else
8462
8463 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8464 if test "x$LINE" != x ; then
8465 eval "DEFAULT_$LINE"
8466 else
8467 no_cache=1
8468 fi
8469
8470 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8471
8472fi;
8473
8474 eval "$ac_cv_use_statbmp"
8475 if test "$no_cache" != 1; then
8476 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8477 fi
8478
8479 if test "$wxUSE_STATBMP" = yes; then
8480 echo "$as_me:$LINENO: result: yes" >&5
8481echo "${ECHO_T}yes" >&6
8482 else
8483 echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6
8485 fi
8486
8487
8488 enablestring=
8489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8490echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8491 no_cache=0
8492 # Check whether --enable-statbox or --disable-statbox was given.
8493if test "${enable_statbox+set}" = set; then
8494 enableval="$enable_statbox"
8495
8496 if test "$enableval" = yes; then
8497 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8498 else
8499 ac_cv_use_statbox='wxUSE_STATBOX=no'
8500 fi
8501
8502else
8503
8504 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8505 if test "x$LINE" != x ; then
8506 eval "DEFAULT_$LINE"
8507 else
8508 no_cache=1
8509 fi
8510
8511 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8512
8513fi;
8514
8515 eval "$ac_cv_use_statbox"
8516 if test "$no_cache" != 1; then
8517 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8518 fi
8519
8520 if test "$wxUSE_STATBOX" = yes; then
8521 echo "$as_me:$LINENO: result: yes" >&5
8522echo "${ECHO_T}yes" >&6
8523 else
8524 echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
8526 fi
8527
8528
8529 enablestring=
8530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8531echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8532 no_cache=0
8533 # Check whether --enable-statline or --disable-statline was given.
8534if test "${enable_statline+set}" = set; then
8535 enableval="$enable_statline"
8536
8537 if test "$enableval" = yes; then
8538 ac_cv_use_statline='wxUSE_STATLINE=yes'
8539 else
8540 ac_cv_use_statline='wxUSE_STATLINE=no'
8541 fi
8542
8543else
8544
8545 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8546 if test "x$LINE" != x ; then
8547 eval "DEFAULT_$LINE"
8548 else
8549 no_cache=1
8550 fi
8551
8552 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8553
8554fi;
8555
8556 eval "$ac_cv_use_statline"
8557 if test "$no_cache" != 1; then
8558 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8559 fi
8560
8561 if test "$wxUSE_STATLINE" = yes; then
8562 echo "$as_me:$LINENO: result: yes" >&5
8563echo "${ECHO_T}yes" >&6
8564 else
8565 echo "$as_me:$LINENO: result: no" >&5
8566echo "${ECHO_T}no" >&6
8567 fi
8568
8569
8570 enablestring=
8571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8572echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8573 no_cache=0
8574 # Check whether --enable-stattext or --disable-stattext was given.
8575if test "${enable_stattext+set}" = set; then
8576 enableval="$enable_stattext"
8577
8578 if test "$enableval" = yes; then
8579 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8580 else
8581 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8582 fi
8583
8584else
8585
8586 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8587 if test "x$LINE" != x ; then
8588 eval "DEFAULT_$LINE"
8589 else
8590 no_cache=1
8591 fi
8592
8593 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8594
8595fi;
8596
8597 eval "$ac_cv_use_stattext"
8598 if test "$no_cache" != 1; then
8599 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8600 fi
8601
8602 if test "$wxUSE_STATTEXT" = yes; then
8603 echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
8605 else
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608 fi
8609
8610
8611 enablestring=
8612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8613echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8614 no_cache=0
8615 # Check whether --enable-statusbar or --disable-statusbar was given.
8616if test "${enable_statusbar+set}" = set; then
8617 enableval="$enable_statusbar"
8618
8619 if test "$enableval" = yes; then
8620 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8621 else
8622 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8623 fi
8624
8625else
8626
8627 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8628 if test "x$LINE" != x ; then
8629 eval "DEFAULT_$LINE"
8630 else
8631 no_cache=1
8632 fi
8633
8634 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8635
8636fi;
8637
8638 eval "$ac_cv_use_statusbar"
8639 if test "$no_cache" != 1; then
8640 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8641 fi
8642
8643 if test "$wxUSE_STATUSBAR" = yes; then
8644 echo "$as_me:$LINENO: result: yes" >&5
8645echo "${ECHO_T}yes" >&6
8646 else
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
8649 fi
8650
8651
8652 enablestring=
8653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8654echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8655 no_cache=0
8656 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8657if test "${enable_tabdialog+set}" = set; then
8658 enableval="$enable_tabdialog"
8659
8660 if test "$enableval" = yes; then
8661 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8662 else
8663 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8664 fi
8665
8666else
8667
8668 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8669 if test "x$LINE" != x ; then
8670 eval "DEFAULT_$LINE"
8671 else
8672 no_cache=1
8673 fi
8674
8675 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8676
8677fi;
8678
8679 eval "$ac_cv_use_tabdialog"
8680 if test "$no_cache" != 1; then
8681 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8682 fi
8683
8684 if test "$wxUSE_TABDIALOG" = yes; then
8685 echo "$as_me:$LINENO: result: yes" >&5
8686echo "${ECHO_T}yes" >&6
8687 else
8688 echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6
8690 fi
8691
8692
8693 enablestring=
8694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8695echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8696 no_cache=0
8697 # Check whether --enable-textctrl or --disable-textctrl was given.
8698if test "${enable_textctrl+set}" = set; then
8699 enableval="$enable_textctrl"
8700
8701 if test "$enableval" = yes; then
8702 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8703 else
8704 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8705 fi
8706
8707else
8708
8709 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8710 if test "x$LINE" != x ; then
8711 eval "DEFAULT_$LINE"
8712 else
8713 no_cache=1
8714 fi
8715
8716 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8717
8718fi;
8719
8720 eval "$ac_cv_use_textctrl"
8721 if test "$no_cache" != 1; then
8722 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8723 fi
8724
8725 if test "$wxUSE_TEXTCTRL" = yes; then
8726 echo "$as_me:$LINENO: result: yes" >&5
8727echo "${ECHO_T}yes" >&6
8728 else
8729 echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6
8731 fi
8732
8733
8734 enablestring=
8735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8736echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8737 no_cache=0
8738 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8739if test "${enable_togglebtn+set}" = set; then
8740 enableval="$enable_togglebtn"
8741
8742 if test "$enableval" = yes; then
8743 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8744 else
8745 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8746 fi
8747
8748else
8749
8750 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8751 if test "x$LINE" != x ; then
8752 eval "DEFAULT_$LINE"
8753 else
8754 no_cache=1
8755 fi
8756
8757 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8758
8759fi;
8760
8761 eval "$ac_cv_use_togglebtn"
8762 if test "$no_cache" != 1; then
8763 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8764 fi
8765
8766 if test "$wxUSE_TOGGLEBTN" = yes; then
8767 echo "$as_me:$LINENO: result: yes" >&5
8768echo "${ECHO_T}yes" >&6
8769 else
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
8772 fi
8773
8774
8775 enablestring=
8776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8777echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8778 no_cache=0
8779 # Check whether --enable-toolbar or --disable-toolbar was given.
8780if test "${enable_toolbar+set}" = set; then
8781 enableval="$enable_toolbar"
8782
8783 if test "$enableval" = yes; then
8784 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8785 else
8786 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8787 fi
8788
8789else
8790
8791 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8792 if test "x$LINE" != x ; then
8793 eval "DEFAULT_$LINE"
8794 else
8795 no_cache=1
8796 fi
8797
8798 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8799
8800fi;
8801
8802 eval "$ac_cv_use_toolbar"
8803 if test "$no_cache" != 1; then
8804 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8805 fi
8806
8807 if test "$wxUSE_TOOLBAR" = yes; then
8808 echo "$as_me:$LINENO: result: yes" >&5
8809echo "${ECHO_T}yes" >&6
8810 else
8811 echo "$as_me:$LINENO: result: no" >&5
8812echo "${ECHO_T}no" >&6
8813 fi
8814
8815
8816 enablestring=
8817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8818echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8819 no_cache=0
8820 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8821if test "${enable_tbarnative+set}" = set; then
8822 enableval="$enable_tbarnative"
8823
8824 if test "$enableval" = yes; then
8825 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8826 else
8827 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8828 fi
8829
8830else
8831
8832 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8833 if test "x$LINE" != x ; then
8834 eval "DEFAULT_$LINE"
8835 else
8836 no_cache=1
8837 fi
8838
8839 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8840
8841fi;
8842
8843 eval "$ac_cv_use_tbarnative"
8844 if test "$no_cache" != 1; then
8845 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8846 fi
8847
8848 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8849 echo "$as_me:$LINENO: result: yes" >&5
8850echo "${ECHO_T}yes" >&6
8851 else
8852 echo "$as_me:$LINENO: result: no" >&5
8853echo "${ECHO_T}no" >&6
8854 fi
8855
8856
8857 enablestring=
8858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8859echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8860 no_cache=0
8861 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8862if test "${enable_tbarsmpl+set}" = set; then
8863 enableval="$enable_tbarsmpl"
8864
8865 if test "$enableval" = yes; then
8866 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8867 else
8868 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8869 fi
8870
8871else
8872
8873 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8874 if test "x$LINE" != x ; then
8875 eval "DEFAULT_$LINE"
8876 else
8877 no_cache=1
8878 fi
8879
8880 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8881
8882fi;
8883
8884 eval "$ac_cv_use_tbarsmpl"
8885 if test "$no_cache" != 1; then
8886 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8887 fi
8888
8889 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8890 echo "$as_me:$LINENO: result: yes" >&5
8891echo "${ECHO_T}yes" >&6
8892 else
8893 echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6
8895 fi
8896
8897
8898 enablestring=
8899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8900echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8901 no_cache=0
8902 # Check whether --enable-treectrl or --disable-treectrl was given.
8903if test "${enable_treectrl+set}" = set; then
8904 enableval="$enable_treectrl"
8905
8906 if test "$enableval" = yes; then
8907 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8908 else
8909 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8910 fi
8911
8912else
8913
8914 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8915 if test "x$LINE" != x ; then
8916 eval "DEFAULT_$LINE"
8917 else
8918 no_cache=1
8919 fi
8920
8921 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8922
8923fi;
8924
8925 eval "$ac_cv_use_treectrl"
8926 if test "$no_cache" != 1; then
8927 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8928 fi
8929
8930 if test "$wxUSE_TREECTRL" = yes; then
8931 echo "$as_me:$LINENO: result: yes" >&5
8932echo "${ECHO_T}yes" >&6
8933 else
8934 echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
8936 fi
8937
8938
8939 enablestring=
8940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8941echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8942 no_cache=0
8943 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8944if test "${enable_tipwindow+set}" = set; then
8945 enableval="$enable_tipwindow"
8946
8947 if test "$enableval" = yes; then
8948 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8949 else
8950 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8951 fi
8952
8953else
8954
8955 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8956 if test "x$LINE" != x ; then
8957 eval "DEFAULT_$LINE"
8958 else
8959 no_cache=1
8960 fi
8961
8962 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8963
8964fi;
8965
8966 eval "$ac_cv_use_tipwindow"
8967 if test "$no_cache" != 1; then
8968 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8969 fi
8970
8971 if test "$wxUSE_TIPWINDOW" = yes; then
8972 echo "$as_me:$LINENO: result: yes" >&5
8973echo "${ECHO_T}yes" >&6
8974 else
8975 echo "$as_me:$LINENO: result: no" >&5
8976echo "${ECHO_T}no" >&6
8977 fi
8978
8979
8980 enablestring=
8981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8982echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8983 no_cache=0
8984 # Check whether --enable-popupwin or --disable-popupwin was given.
8985if test "${enable_popupwin+set}" = set; then
8986 enableval="$enable_popupwin"
8987
8988 if test "$enableval" = yes; then
8989 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8990 else
8991 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8992 fi
8993
8994else
8995
8996 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8997 if test "x$LINE" != x ; then
8998 eval "DEFAULT_$LINE"
8999 else
9000 no_cache=1
9001 fi
9002
9003 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9004
9005fi;
9006
9007 eval "$ac_cv_use_popupwin"
9008 if test "$no_cache" != 1; then
9009 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9010 fi
9011
9012 if test "$wxUSE_POPUPWIN" = yes; then
9013 echo "$as_me:$LINENO: result: yes" >&5
9014echo "${ECHO_T}yes" >&6
9015 else
9016 echo "$as_me:$LINENO: result: no" >&5
9017echo "${ECHO_T}no" >&6
9018 fi
9019
9020
9021
9022
9023 enablestring=
9024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9025echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9026 no_cache=0
9027 # Check whether --enable-commondlg or --disable-commondlg was given.
9028if test "${enable_commondlg+set}" = set; then
9029 enableval="$enable_commondlg"
9030
9031 if test "$enableval" = yes; then
9032 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9033 else
9034 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9035 fi
9036
9037else
9038
9039 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9040 if test "x$LINE" != x ; then
9041 eval "DEFAULT_$LINE"
9042 else
9043 no_cache=1
9044 fi
9045
9046 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9047
9048fi;
9049
9050 eval "$ac_cv_use_commondlg"
9051 if test "$no_cache" != 1; then
9052 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9053 fi
9054
9055 if test "$wxUSE_COMMONDLGS" = yes; then
9056 echo "$as_me:$LINENO: result: yes" >&5
9057echo "${ECHO_T}yes" >&6
9058 else
9059 echo "$as_me:$LINENO: result: no" >&5
9060echo "${ECHO_T}no" >&6
9061 fi
9062
9063
9064 enablestring=
9065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9066echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9067 no_cache=0
9068 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9069if test "${enable_choicedlg+set}" = set; then
9070 enableval="$enable_choicedlg"
9071
9072 if test "$enableval" = yes; then
9073 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9074 else
9075 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9076 fi
9077
9078else
9079
9080 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9081 if test "x$LINE" != x ; then
9082 eval "DEFAULT_$LINE"
9083 else
9084 no_cache=1
9085 fi
9086
9087 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9088
9089fi;
9090
9091 eval "$ac_cv_use_choicedlg"
9092 if test "$no_cache" != 1; then
9093 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9094 fi
9095
9096 if test "$wxUSE_CHOICEDLG" = yes; then
9097 echo "$as_me:$LINENO: result: yes" >&5
9098echo "${ECHO_T}yes" >&6
9099 else
9100 echo "$as_me:$LINENO: result: no" >&5
9101echo "${ECHO_T}no" >&6
9102 fi
9103
9104
9105 enablestring=
9106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9107echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9108 no_cache=0
9109 # Check whether --enable-coldlg or --disable-coldlg was given.
9110if test "${enable_coldlg+set}" = set; then
9111 enableval="$enable_coldlg"
9112
9113 if test "$enableval" = yes; then
9114 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9115 else
9116 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9117 fi
9118
9119else
9120
9121 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9122 if test "x$LINE" != x ; then
9123 eval "DEFAULT_$LINE"
9124 else
9125 no_cache=1
9126 fi
9127
9128 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9129
9130fi;
9131
9132 eval "$ac_cv_use_coldlg"
9133 if test "$no_cache" != 1; then
9134 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9135 fi
9136
9137 if test "$wxUSE_COLOURDLG" = yes; then
9138 echo "$as_me:$LINENO: result: yes" >&5
9139echo "${ECHO_T}yes" >&6
9140 else
9141 echo "$as_me:$LINENO: result: no" >&5
9142echo "${ECHO_T}no" >&6
9143 fi
9144
9145
9146 enablestring=
9147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9148echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9149 no_cache=0
9150 # Check whether --enable-filedlg or --disable-filedlg was given.
9151if test "${enable_filedlg+set}" = set; then
9152 enableval="$enable_filedlg"
9153
9154 if test "$enableval" = yes; then
9155 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9156 else
9157 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9158 fi
9159
9160else
9161
9162 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9163 if test "x$LINE" != x ; then
9164 eval "DEFAULT_$LINE"
9165 else
9166 no_cache=1
9167 fi
9168
9169 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9170
9171fi;
9172
9173 eval "$ac_cv_use_filedlg"
9174 if test "$no_cache" != 1; then
9175 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9176 fi
9177
9178 if test "$wxUSE_FILEDLG" = yes; then
9179 echo "$as_me:$LINENO: result: yes" >&5
9180echo "${ECHO_T}yes" >&6
9181 else
9182 echo "$as_me:$LINENO: result: no" >&5
9183echo "${ECHO_T}no" >&6
9184 fi
9185
9186
9187 enablestring=
9188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9189echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9190 no_cache=0
9191 # Check whether --enable-finddlg or --disable-finddlg was given.
9192if test "${enable_finddlg+set}" = set; then
9193 enableval="$enable_finddlg"
9194
9195 if test "$enableval" = yes; then
9196 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9197 else
9198 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9199 fi
9200
9201else
9202
9203 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9204 if test "x$LINE" != x ; then
9205 eval "DEFAULT_$LINE"
9206 else
9207 no_cache=1
9208 fi
9209
9210 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9211
9212fi;
9213
9214 eval "$ac_cv_use_finddlg"
9215 if test "$no_cache" != 1; then
9216 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9217 fi
9218
9219 if test "$wxUSE_FINDREPLDLG" = yes; then
9220 echo "$as_me:$LINENO: result: yes" >&5
9221echo "${ECHO_T}yes" >&6
9222 else
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
9225 fi
9226
9227
9228 enablestring=
9229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9230echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9231 no_cache=0
9232 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9233if test "${enable_fontdlg+set}" = set; then
9234 enableval="$enable_fontdlg"
9235
9236 if test "$enableval" = yes; then
9237 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9238 else
9239 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9240 fi
9241
9242else
9243
9244 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9245 if test "x$LINE" != x ; then
9246 eval "DEFAULT_$LINE"
9247 else
9248 no_cache=1
9249 fi
9250
9251 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9252
9253fi;
9254
9255 eval "$ac_cv_use_fontdlg"
9256 if test "$no_cache" != 1; then
9257 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9258 fi
9259
9260 if test "$wxUSE_FONTDLG" = yes; then
9261 echo "$as_me:$LINENO: result: yes" >&5
9262echo "${ECHO_T}yes" >&6
9263 else
9264 echo "$as_me:$LINENO: result: no" >&5
9265echo "${ECHO_T}no" >&6
9266 fi
9267
9268
9269 enablestring=
9270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9271echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9272 no_cache=0
9273 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9274if test "${enable_dirdlg+set}" = set; then
9275 enableval="$enable_dirdlg"
9276
9277 if test "$enableval" = yes; then
9278 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9279 else
9280 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9281 fi
9282
9283else
9284
9285 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9286 if test "x$LINE" != x ; then
9287 eval "DEFAULT_$LINE"
9288 else
9289 no_cache=1
9290 fi
9291
9292 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9293
9294fi;
9295
9296 eval "$ac_cv_use_dirdlg"
9297 if test "$no_cache" != 1; then
9298 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9299 fi
9300
9301 if test "$wxUSE_DIRDLG" = yes; then
9302 echo "$as_me:$LINENO: result: yes" >&5
9303echo "${ECHO_T}yes" >&6
9304 else
9305 echo "$as_me:$LINENO: result: no" >&5
9306echo "${ECHO_T}no" >&6
9307 fi
9308
9309
9310 enablestring=
9311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9312echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9313 no_cache=0
9314 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9315if test "${enable_msgdlg+set}" = set; then
9316 enableval="$enable_msgdlg"
9317
9318 if test "$enableval" = yes; then
9319 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9320 else
9321 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9322 fi
9323
9324else
9325
9326 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9327 if test "x$LINE" != x ; then
9328 eval "DEFAULT_$LINE"
9329 else
9330 no_cache=1
9331 fi
9332
9333 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9334
9335fi;
9336
9337 eval "$ac_cv_use_msgdlg"
9338 if test "$no_cache" != 1; then
9339 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9340 fi
9341
9342 if test "$wxUSE_MSGDLG" = yes; then
9343 echo "$as_me:$LINENO: result: yes" >&5
9344echo "${ECHO_T}yes" >&6
9345 else
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
9348 fi
9349
9350
9351 enablestring=
9352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9353echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9354 no_cache=0
9355 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9356if test "${enable_numberdlg+set}" = set; then
9357 enableval="$enable_numberdlg"
9358
9359 if test "$enableval" = yes; then
9360 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9361 else
9362 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9363 fi
9364
9365else
9366
9367 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9368 if test "x$LINE" != x ; then
9369 eval "DEFAULT_$LINE"
9370 else
9371 no_cache=1
9372 fi
9373
9374 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9375
9376fi;
9377
9378 eval "$ac_cv_use_numberdlg"
9379 if test "$no_cache" != 1; then
9380 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9381 fi
9382
9383 if test "$wxUSE_NUMBERDLG" = yes; then
9384 echo "$as_me:$LINENO: result: yes" >&5
9385echo "${ECHO_T}yes" >&6
9386 else
9387 echo "$as_me:$LINENO: result: no" >&5
9388echo "${ECHO_T}no" >&6
9389 fi
9390
9391
9392 enablestring=
9393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9394echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9395 no_cache=0
9396 # Check whether --enable-splash or --disable-splash was given.
9397if test "${enable_splash+set}" = set; then
9398 enableval="$enable_splash"
9399
9400 if test "$enableval" = yes; then
9401 ac_cv_use_splash='wxUSE_SPLASH=yes'
9402 else
9403 ac_cv_use_splash='wxUSE_SPLASH=no'
9404 fi
9405
9406else
9407
9408 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9409 if test "x$LINE" != x ; then
9410 eval "DEFAULT_$LINE"
9411 else
9412 no_cache=1
9413 fi
9414
9415 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9416
9417fi;
9418
9419 eval "$ac_cv_use_splash"
9420 if test "$no_cache" != 1; then
9421 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9422 fi
9423
9424 if test "$wxUSE_SPLASH" = yes; then
9425 echo "$as_me:$LINENO: result: yes" >&5
9426echo "${ECHO_T}yes" >&6
9427 else
9428 echo "$as_me:$LINENO: result: no" >&5
9429echo "${ECHO_T}no" >&6
9430 fi
9431
9432
9433 enablestring=
9434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9435echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9436 no_cache=0
9437 # Check whether --enable-textdlg or --disable-textdlg was given.
9438if test "${enable_textdlg+set}" = set; then
9439 enableval="$enable_textdlg"
9440
9441 if test "$enableval" = yes; then
9442 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9443 else
9444 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9445 fi
9446
9447else
9448
9449 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9450 if test "x$LINE" != x ; then
9451 eval "DEFAULT_$LINE"
9452 else
9453 no_cache=1
9454 fi
9455
9456 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9457
9458fi;
9459
9460 eval "$ac_cv_use_textdlg"
9461 if test "$no_cache" != 1; then
9462 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9463 fi
9464
9465 if test "$wxUSE_TEXTDLG" = yes; then
9466 echo "$as_me:$LINENO: result: yes" >&5
9467echo "${ECHO_T}yes" >&6
9468 else
9469 echo "$as_me:$LINENO: result: no" >&5
9470echo "${ECHO_T}no" >&6
9471 fi
9472
9473
9474 enablestring=
9475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9476echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9477 no_cache=0
9478 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9479if test "${enable_tipdlg+set}" = set; then
9480 enableval="$enable_tipdlg"
9481
9482 if test "$enableval" = yes; then
9483 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9484 else
9485 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9486 fi
9487
9488else
9489
9490 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9491 if test "x$LINE" != x ; then
9492 eval "DEFAULT_$LINE"
9493 else
9494 no_cache=1
9495 fi
9496
9497 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9498
9499fi;
9500
9501 eval "$ac_cv_use_tipdlg"
9502 if test "$no_cache" != 1; then
9503 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9504 fi
9505
9506 if test "$wxUSE_STARTUP_TIPS" = yes; then
9507 echo "$as_me:$LINENO: result: yes" >&5
9508echo "${ECHO_T}yes" >&6
9509 else
9510 echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
9512 fi
9513
9514
9515 enablestring=
9516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9517echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9518 no_cache=0
9519 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9520if test "${enable_progressdlg+set}" = set; then
9521 enableval="$enable_progressdlg"
9522
9523 if test "$enableval" = yes; then
9524 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9525 else
9526 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9527 fi
9528
9529else
9530
9531 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9532 if test "x$LINE" != x ; then
9533 eval "DEFAULT_$LINE"
9534 else
9535 no_cache=1
9536 fi
9537
9538 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9539
9540fi;
9541
9542 eval "$ac_cv_use_progressdlg"
9543 if test "$no_cache" != 1; then
9544 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9545 fi
9546
9547 if test "$wxUSE_PROGRESSDLG" = yes; then
9548 echo "$as_me:$LINENO: result: yes" >&5
9549echo "${ECHO_T}yes" >&6
9550 else
9551 echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6
9553 fi
9554
9555
9556 enablestring=
9557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9558echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9559 no_cache=0
9560 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9561if test "${enable_wizarddlg+set}" = set; then
9562 enableval="$enable_wizarddlg"
9563
9564 if test "$enableval" = yes; then
9565 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9566 else
9567 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9568 fi
9569
9570else
9571
9572 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9573 if test "x$LINE" != x ; then
9574 eval "DEFAULT_$LINE"
9575 else
9576 no_cache=1
9577 fi
9578
9579 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9580
9581fi;
9582
9583 eval "$ac_cv_use_wizarddlg"
9584 if test "$no_cache" != 1; then
9585 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9586 fi
9587
9588 if test "$wxUSE_WIZARDDLG" = yes; then
9589 echo "$as_me:$LINENO: result: yes" >&5
9590echo "${ECHO_T}yes" >&6
9591 else
9592 echo "$as_me:$LINENO: result: no" >&5
9593echo "${ECHO_T}no" >&6
9594 fi
9595
9596
9597
9598
9599 enablestring=
9600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9601echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9602 no_cache=0
9603 # Check whether --enable-menus or --disable-menus was given.
9604if test "${enable_menus+set}" = set; then
9605 enableval="$enable_menus"
9606
9607 if test "$enableval" = yes; then
9608 ac_cv_use_menus='wxUSE_MENUS=yes'
9609 else
9610 ac_cv_use_menus='wxUSE_MENUS=no'
9611 fi
9612
9613else
9614
9615 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9616 if test "x$LINE" != x ; then
9617 eval "DEFAULT_$LINE"
9618 else
9619 no_cache=1
9620 fi
9621
9622 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9623
9624fi;
9625
9626 eval "$ac_cv_use_menus"
9627 if test "$no_cache" != 1; then
9628 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9629 fi
9630
9631 if test "$wxUSE_MENUS" = yes; then
9632 echo "$as_me:$LINENO: result: yes" >&5
9633echo "${ECHO_T}yes" >&6
9634 else
9635 echo "$as_me:$LINENO: result: no" >&5
9636echo "${ECHO_T}no" >&6
9637 fi
9638
9639
9640 enablestring=
9641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9642echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9643 no_cache=0
9644 # Check whether --enable-miniframe or --disable-miniframe was given.
9645if test "${enable_miniframe+set}" = set; then
9646 enableval="$enable_miniframe"
9647
9648 if test "$enableval" = yes; then
9649 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9650 else
9651 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9652 fi
9653
9654else
9655
9656 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9657 if test "x$LINE" != x ; then
9658 eval "DEFAULT_$LINE"
9659 else
9660 no_cache=1
9661 fi
9662
9663 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9664
9665fi;
9666
9667 eval "$ac_cv_use_miniframe"
9668 if test "$no_cache" != 1; then
9669 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9670 fi
9671
9672 if test "$wxUSE_MINIFRAME" = yes; then
9673 echo "$as_me:$LINENO: result: yes" >&5
9674echo "${ECHO_T}yes" >&6
9675 else
9676 echo "$as_me:$LINENO: result: no" >&5
9677echo "${ECHO_T}no" >&6
9678 fi
9679
9680
9681 enablestring=
9682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9683echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9684 no_cache=0
9685 # Check whether --enable-tooltips or --disable-tooltips was given.
9686if test "${enable_tooltips+set}" = set; then
9687 enableval="$enable_tooltips"
9688
9689 if test "$enableval" = yes; then
9690 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9691 else
9692 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9693 fi
9694
9695else
9696
9697 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9698 if test "x$LINE" != x ; then
9699 eval "DEFAULT_$LINE"
9700 else
9701 no_cache=1
9702 fi
9703
9704 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9705
9706fi;
9707
9708 eval "$ac_cv_use_tooltips"
9709 if test "$no_cache" != 1; then
9710 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9711 fi
9712
9713 if test "$wxUSE_TOOLTIPS" = yes; then
9714 echo "$as_me:$LINENO: result: yes" >&5
9715echo "${ECHO_T}yes" >&6
9716 else
9717 echo "$as_me:$LINENO: result: no" >&5
9718echo "${ECHO_T}no" >&6
9719 fi
9720
9721
9722 enablestring=
9723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9724echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9725 no_cache=0
9726 # Check whether --enable-splines or --disable-splines was given.
9727if test "${enable_splines+set}" = set; then
9728 enableval="$enable_splines"
9729
9730 if test "$enableval" = yes; then
9731 ac_cv_use_splines='wxUSE_SPLINES=yes'
9732 else
9733 ac_cv_use_splines='wxUSE_SPLINES=no'
9734 fi
9735
9736else
9737
9738 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9739 if test "x$LINE" != x ; then
9740 eval "DEFAULT_$LINE"
9741 else
9742 no_cache=1
9743 fi
9744
9745 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9746
9747fi;
9748
9749 eval "$ac_cv_use_splines"
9750 if test "$no_cache" != 1; then
9751 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9752 fi
9753
9754 if test "$wxUSE_SPLINES" = yes; then
9755 echo "$as_me:$LINENO: result: yes" >&5
9756echo "${ECHO_T}yes" >&6
9757 else
9758 echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6
9760 fi
9761
9762
fbe2ca43
SN
9763 enablestring=
9764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9765echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9766 no_cache=0
9767 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9768if test "${enable_mousewheel+set}" = set; then
9769 enableval="$enable_mousewheel"
9770
9771 if test "$enableval" = yes; then
9772 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9773 else
9774 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9775 fi
9776
9777else
9778
9779 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9780 if test "x$LINE" != x ; then
9781 eval "DEFAULT_$LINE"
9782 else
9783 no_cache=1
9784 fi
9785
9786 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9787
9788fi;
9789
9790 eval "$ac_cv_use_mousewheel"
9791 if test "$no_cache" != 1; then
9792 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9793 fi
9794
9795 if test "$wxUSE_MOUSEWHEEL" = yes; then
9796 echo "$as_me:$LINENO: result: yes" >&5
9797echo "${ECHO_T}yes" >&6
9798 else
9799 echo "$as_me:$LINENO: result: no" >&5
9800echo "${ECHO_T}no" >&6
9801 fi
9802
9803
a848cd7e
SC
9804 enablestring=
9805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9806echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9807 no_cache=0
9808 # Check whether --enable-validators or --disable-validators was given.
9809if test "${enable_validators+set}" = set; then
9810 enableval="$enable_validators"
9811
9812 if test "$enableval" = yes; then
9813 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9814 else
9815 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9816 fi
9817
9818else
9819
9820 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9821 if test "x$LINE" != x ; then
9822 eval "DEFAULT_$LINE"
9823 else
9824 no_cache=1
9825 fi
9826
9827 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9828
9829fi;
9830
9831 eval "$ac_cv_use_validators"
9832 if test "$no_cache" != 1; then
9833 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9834 fi
9835
9836 if test "$wxUSE_VALIDATORS" = yes; then
9837 echo "$as_me:$LINENO: result: yes" >&5
9838echo "${ECHO_T}yes" >&6
9839 else
9840 echo "$as_me:$LINENO: result: no" >&5
9841echo "${ECHO_T}no" >&6
9842 fi
9843
9844
9845 enablestring=
9846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9847echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9848 no_cache=0
9849 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9850if test "${enable_busyinfo+set}" = set; then
9851 enableval="$enable_busyinfo"
9852
9853 if test "$enableval" = yes; then
9854 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9855 else
9856 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9857 fi
9858
9859else
9860
9861 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9862 if test "x$LINE" != x ; then
9863 eval "DEFAULT_$LINE"
9864 else
9865 no_cache=1
9866 fi
9867
9868 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9869
9870fi;
9871
9872 eval "$ac_cv_use_busyinfo"
9873 if test "$no_cache" != 1; then
9874 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9875 fi
9876
9877 if test "$wxUSE_BUSYINFO" = yes; then
9878 echo "$as_me:$LINENO: result: yes" >&5
9879echo "${ECHO_T}yes" >&6
9880 else
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
9883 fi
9884
9885
9886 enablestring=
9887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9888echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9889 no_cache=0
9890 # Check whether --enable-joystick or --disable-joystick was given.
9891if test "${enable_joystick+set}" = set; then
9892 enableval="$enable_joystick"
9893
9894 if test "$enableval" = yes; then
9895 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9896 else
9897 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9898 fi
9899
9900else
9901
9902 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9903 if test "x$LINE" != x ; then
9904 eval "DEFAULT_$LINE"
9905 else
9906 no_cache=1
9907 fi
9908
9909 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9910
9911fi;
9912
9913 eval "$ac_cv_use_joystick"
9914 if test "$no_cache" != 1; then
9915 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9916 fi
9917
9918 if test "$wxUSE_JOYSTICK" = yes; then
9919 echo "$as_me:$LINENO: result: yes" >&5
9920echo "${ECHO_T}yes" >&6
9921 else
9922 echo "$as_me:$LINENO: result: no" >&5
9923echo "${ECHO_T}no" >&6
9924 fi
9925
9926
9927 enablestring=
9928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9929echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9930 no_cache=0
9931 # Check whether --enable-metafile or --disable-metafile was given.
9932if test "${enable_metafile+set}" = set; then
9933 enableval="$enable_metafile"
9934
9935 if test "$enableval" = yes; then
9936 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9937 else
9938 ac_cv_use_metafile='wxUSE_METAFILE=no'
9939 fi
9940
9941else
9942
9943 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9944 if test "x$LINE" != x ; then
9945 eval "DEFAULT_$LINE"
9946 else
9947 no_cache=1
9948 fi
9949
9950 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9951
9952fi;
9953
9954 eval "$ac_cv_use_metafile"
9955 if test "$no_cache" != 1; then
9956 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9957 fi
9958
9959 if test "$wxUSE_METAFILE" = yes; then
9960 echo "$as_me:$LINENO: result: yes" >&5
9961echo "${ECHO_T}yes" >&6
9962 else
9963 echo "$as_me:$LINENO: result: no" >&5
9964echo "${ECHO_T}no" >&6
9965 fi
9966
9967
9968 enablestring=
9969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9970echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9971 no_cache=0
9972 # Check whether --enable-dragimage or --disable-dragimage was given.
9973if test "${enable_dragimage+set}" = set; then
9974 enableval="$enable_dragimage"
9975
9976 if test "$enableval" = yes; then
9977 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9978 else
9979 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9980 fi
9981
9982else
9983
9984 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9985 if test "x$LINE" != x ; then
9986 eval "DEFAULT_$LINE"
9987 else
9988 no_cache=1
9989 fi
9990
9991 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9992
9993fi;
9994
9995 eval "$ac_cv_use_dragimage"
9996 if test "$no_cache" != 1; then
9997 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9998 fi
9999
10000 if test "$wxUSE_DRAGIMAGE" = yes; then
10001 echo "$as_me:$LINENO: result: yes" >&5
10002echo "${ECHO_T}yes" >&6
10003 else
10004 echo "$as_me:$LINENO: result: no" >&5
10005echo "${ECHO_T}no" >&6
10006 fi
10007
10008
10009 enablestring=
10010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10011echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10012 no_cache=0
10013 # Check whether --enable-accessibility or --disable-accessibility was given.
10014if test "${enable_accessibility+set}" = set; then
10015 enableval="$enable_accessibility"
10016
10017 if test "$enableval" = yes; then
10018 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10019 else
10020 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10021 fi
10022
10023else
10024
10025 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10026 if test "x$LINE" != x ; then
10027 eval "DEFAULT_$LINE"
10028 else
10029 no_cache=1
10030 fi
10031
10032 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10033
10034fi;
10035
10036 eval "$ac_cv_use_accessibility"
10037 if test "$no_cache" != 1; then
10038 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10039 fi
10040
10041 if test "$wxUSE_ACCESSIBILITY" = yes; then
10042 echo "$as_me:$LINENO: result: yes" >&5
10043echo "${ECHO_T}yes" >&6
10044 else
10045 echo "$as_me:$LINENO: result: no" >&5
10046echo "${ECHO_T}no" >&6
10047 fi
10048
10049
10050
10051
10052 enablestring=
10053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10054echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10055 no_cache=0
10056 # Check whether --enable-palette or --disable-palette was given.
10057if test "${enable_palette+set}" = set; then
10058 enableval="$enable_palette"
10059
10060 if test "$enableval" = yes; then
10061 ac_cv_use_palette='wxUSE_PALETTE=yes'
10062 else
10063 ac_cv_use_palette='wxUSE_PALETTE=no'
10064 fi
10065
10066else
10067
10068 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10069 if test "x$LINE" != x ; then
10070 eval "DEFAULT_$LINE"
10071 else
10072 no_cache=1
10073 fi
10074
10075 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10076
10077fi;
10078
10079 eval "$ac_cv_use_palette"
10080 if test "$no_cache" != 1; then
10081 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10082 fi
10083
10084 if test "$wxUSE_PALETTE" = yes; then
10085 echo "$as_me:$LINENO: result: yes" >&5
10086echo "${ECHO_T}yes" >&6
10087 else
10088 echo "$as_me:$LINENO: result: no" >&5
10089echo "${ECHO_T}no" >&6
10090 fi
10091
10092
10093 enablestring=
10094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10095echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10096 no_cache=0
10097 # Check whether --enable-image or --disable-image was given.
10098if test "${enable_image+set}" = set; then
10099 enableval="$enable_image"
10100
10101 if test "$enableval" = yes; then
10102 ac_cv_use_image='wxUSE_IMAGE=yes'
10103 else
10104 ac_cv_use_image='wxUSE_IMAGE=no'
10105 fi
10106
10107else
10108
10109 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10110 if test "x$LINE" != x ; then
10111 eval "DEFAULT_$LINE"
10112 else
10113 no_cache=1
10114 fi
10115
10116 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10117
10118fi;
10119
10120 eval "$ac_cv_use_image"
10121 if test "$no_cache" != 1; then
10122 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10123 fi
10124
10125 if test "$wxUSE_IMAGE" = yes; then
10126 echo "$as_me:$LINENO: result: yes" >&5
10127echo "${ECHO_T}yes" >&6
10128 else
10129 echo "$as_me:$LINENO: result: no" >&5
10130echo "${ECHO_T}no" >&6
10131 fi
10132
10133
10134 enablestring=
10135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10136echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10137 no_cache=0
10138 # Check whether --enable-gif or --disable-gif was given.
10139if test "${enable_gif+set}" = set; then
10140 enableval="$enable_gif"
10141
10142 if test "$enableval" = yes; then
10143 ac_cv_use_gif='wxUSE_GIF=yes'
10144 else
10145 ac_cv_use_gif='wxUSE_GIF=no'
10146 fi
10147
10148else
10149
10150 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10151 if test "x$LINE" != x ; then
10152 eval "DEFAULT_$LINE"
10153 else
10154 no_cache=1
10155 fi
10156
10157 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10158
10159fi;
10160
10161 eval "$ac_cv_use_gif"
10162 if test "$no_cache" != 1; then
10163 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10164 fi
10165
10166 if test "$wxUSE_GIF" = yes; then
10167 echo "$as_me:$LINENO: result: yes" >&5
10168echo "${ECHO_T}yes" >&6
10169 else
10170 echo "$as_me:$LINENO: result: no" >&5
10171echo "${ECHO_T}no" >&6
10172 fi
10173
10174
10175 enablestring=
10176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10177echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10178 no_cache=0
10179 # Check whether --enable-pcx or --disable-pcx was given.
10180if test "${enable_pcx+set}" = set; then
10181 enableval="$enable_pcx"
10182
10183 if test "$enableval" = yes; then
10184 ac_cv_use_pcx='wxUSE_PCX=yes'
10185 else
10186 ac_cv_use_pcx='wxUSE_PCX=no'
10187 fi
10188
10189else
10190
10191 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10192 if test "x$LINE" != x ; then
10193 eval "DEFAULT_$LINE"
10194 else
10195 no_cache=1
10196 fi
10197
10198 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10199
10200fi;
10201
10202 eval "$ac_cv_use_pcx"
10203 if test "$no_cache" != 1; then
10204 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10205 fi
10206
10207 if test "$wxUSE_PCX" = yes; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209echo "${ECHO_T}yes" >&6
10210 else
10211 echo "$as_me:$LINENO: result: no" >&5
10212echo "${ECHO_T}no" >&6
10213 fi
10214
10215
10216 enablestring=
10217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10218echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10219 no_cache=0
10220 # Check whether --enable-iff or --disable-iff was given.
10221if test "${enable_iff+set}" = set; then
10222 enableval="$enable_iff"
10223
10224 if test "$enableval" = yes; then
10225 ac_cv_use_iff='wxUSE_IFF=yes'
10226 else
10227 ac_cv_use_iff='wxUSE_IFF=no'
10228 fi
10229
10230else
10231
10232 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10233 if test "x$LINE" != x ; then
10234 eval "DEFAULT_$LINE"
10235 else
10236 no_cache=1
10237 fi
10238
10239 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10240
10241fi;
10242
10243 eval "$ac_cv_use_iff"
10244 if test "$no_cache" != 1; then
10245 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10246 fi
10247
10248 if test "$wxUSE_IFF" = yes; then
10249 echo "$as_me:$LINENO: result: yes" >&5
10250echo "${ECHO_T}yes" >&6
10251 else
10252 echo "$as_me:$LINENO: result: no" >&5
10253echo "${ECHO_T}no" >&6
10254 fi
10255
10256
10257 enablestring=
10258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10259echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10260 no_cache=0
10261 # Check whether --enable-pnm or --disable-pnm was given.
10262if test "${enable_pnm+set}" = set; then
10263 enableval="$enable_pnm"
10264
10265 if test "$enableval" = yes; then
10266 ac_cv_use_pnm='wxUSE_PNM=yes'
10267 else
10268 ac_cv_use_pnm='wxUSE_PNM=no'
10269 fi
10270
10271else
10272
10273 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10274 if test "x$LINE" != x ; then
10275 eval "DEFAULT_$LINE"
10276 else
10277 no_cache=1
10278 fi
10279
10280 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10281
10282fi;
10283
10284 eval "$ac_cv_use_pnm"
10285 if test "$no_cache" != 1; then
10286 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10287 fi
10288
10289 if test "$wxUSE_PNM" = yes; then
10290 echo "$as_me:$LINENO: result: yes" >&5
10291echo "${ECHO_T}yes" >&6
10292 else
10293 echo "$as_me:$LINENO: result: no" >&5
10294echo "${ECHO_T}no" >&6
10295 fi
10296
10297
10298 enablestring=
10299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10300echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10301 no_cache=0
10302 # Check whether --enable-xpm or --disable-xpm was given.
10303if test "${enable_xpm+set}" = set; then
10304 enableval="$enable_xpm"
10305
10306 if test "$enableval" = yes; then
10307 ac_cv_use_xpm='wxUSE_XPM=yes'
10308 else
10309 ac_cv_use_xpm='wxUSE_XPM=no'
10310 fi
10311
10312else
10313
10314 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10315 if test "x$LINE" != x ; then
10316 eval "DEFAULT_$LINE"
10317 else
10318 no_cache=1
10319 fi
10320
10321 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10322
10323fi;
10324
10325 eval "$ac_cv_use_xpm"
10326 if test "$no_cache" != 1; then
10327 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10328 fi
10329
10330 if test "$wxUSE_XPM" = yes; then
10331 echo "$as_me:$LINENO: result: yes" >&5
10332echo "${ECHO_T}yes" >&6
10333 else
10334 echo "$as_me:$LINENO: result: no" >&5
10335echo "${ECHO_T}no" >&6
10336 fi
10337
10338
10339 enablestring=
10340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10341echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10342 no_cache=0
10343 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10344if test "${enable_ico_cur+set}" = set; then
10345 enableval="$enable_ico_cur"
10346
10347 if test "$enableval" = yes; then
10348 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10349 else
10350 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10351 fi
10352
10353else
10354
10355 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10356 if test "x$LINE" != x ; then
10357 eval "DEFAULT_$LINE"
10358 else
10359 no_cache=1
10360 fi
10361
10362 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10363
10364fi;
10365
10366 eval "$ac_cv_use_ico_cur"
10367 if test "$no_cache" != 1; then
10368 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10369 fi
10370
10371 if test "$wxUSE_ICO_CUR" = yes; then
10372 echo "$as_me:$LINENO: result: yes" >&5
10373echo "${ECHO_T}yes" >&6
10374 else
10375 echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6
10377 fi
10378
10379
10380fi
10381
10382
10383
ceec2216
RL
10384# Check whether --with-flavour or --without-flavour was given.
10385if test "${with_flavour+set}" = set; then
10386 withval="$with_flavour"
10387 WX_FLAVOUR="$withval"
10388fi;
10389
10390
10391
a848cd7e
SC
10392 enablestring=
10393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10394echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10395 no_cache=0
10396 # Check whether --enable-official_build or --disable-official_build was given.
10397if test "${enable_official_build+set}" = set; then
10398 enableval="$enable_official_build"
10399
10400 if test "$enableval" = yes; then
10401 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10402 else
10403 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10404 fi
10405
10406else
10407
10408 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10409 if test "x$LINE" != x ; then
10410 eval "DEFAULT_$LINE"
10411 else
10412 no_cache=1
10413 fi
10414
10415 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10416
10417fi;
10418
10419 eval "$ac_cv_use_official_build"
10420 if test "$no_cache" != 1; then
10421 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10422 fi
10423
10424 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10425 echo "$as_me:$LINENO: result: yes" >&5
10426echo "${ECHO_T}yes" >&6
10427 else
10428 echo "$as_me:$LINENO: result: no" >&5
10429echo "${ECHO_T}no" >&6
10430 fi
10431
10432# Check whether --enable-vendor or --disable-vendor was given.
10433if test "${enable_vendor+set}" = set; then
10434 enableval="$enable_vendor"
10435 VENDOR="$enableval"
10436fi;
10437if test "x$VENDOR" = "x"; then
10438 VENDOR="custom"
10439fi
10440
a848cd7e
SC
10441
10442
10443
10444 echo "saving argument cache $wx_arg_cache_file"
10445 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10446
10447
10448
10449echo "$as_me:$LINENO: checking for toolkit" >&5
10450echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10451
10452# In Wine, we need to default to MSW, not GTK or MOTIF
10453if test "$wxUSE_WINE" = "yes"; then
10454 DEFAULT_DEFAULT_wxUSE_GTK=0
10455 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10456 DEFAULT_DEFAULT_wxUSE_MSW=1
10457 wxUSE_SHARED=no
10458fi
10459
f597b41c 10460
a848cd7e
SC
10461if test "$wxUSE_GUI" = "yes"; then
10462
10463 if test "$USE_BEOS" = 1; then
10464 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10465echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10466 { (exit 1); exit 1; }; }
10467 fi
10468
10469 if test "$TOOLKIT_GIVEN" = 1; then
10470 for toolkit in `echo $ALL_TOOLKITS`; do
10471 var=wxUSE_$toolkit
10472 eval "value=\$${var}"
f34ca037
MW
10473 if test "x$value" = "xno"; then
10474 eval "$var=0"
10475 elif test "x$value" != "x"; then
10476 eval "$var=1"
10477 fi
10478
10479 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10480 eval "wx${toolkit}_VERSION=$value"
10481 fi
a848cd7e
SC
10482 done
10483 else
10484 for toolkit in `echo $ALL_TOOLKITS`; do
10485 if test "$has_toolkit_in_cache" != 1; then
10486 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10487 else
10488 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10489
10490 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10491 if test "x$version" != "x"; then
10492 eval "wx${toolkit}_VERSION=$version"
10493 fi
a848cd7e
SC
10494 fi
10495 eval "wxUSE_$toolkit=\$${var}"
10496 done
10497 fi
10498
10499 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10500 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10501 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10502
10503 case "${host}" in
10504 *-pc-os2_emx | *-pc-os2-emx )
10505 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10506 esac
10507
10508 case "$NUM_TOOLKITS" in
10509 1)
10510 ;;
10511 0)
10512 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10513echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10514 { (exit 1); exit 1; }; }
10515 ;;
10516 *)
10517 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10518echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10519 { (exit 1); exit 1; }; }
10520 esac
10521
f34ca037
MW
10522 # to be removed when --disable-gtk2 isn't needed
10523 if test "x$wxUSE_GTK2" = "xyes"; then
10524 wxGTK_VERSION=2
10525 elif test "x$wxUSE_GTK2" = "xno"; then
10526 wxGTK_VERSION=1
10527 fi
10528
a848cd7e
SC
10529 for toolkit in `echo $ALL_TOOLKITS`; do
10530 var=wxUSE_$toolkit
10531 eval "value=\$${var}"
10532 if test "x$value" != x; then
10533 cache_var=CACHE_$toolkit
10534 eval "cache=\$${cache_var}"
10535 if test "$cache" = 1; then
10536 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10537 eval "version=\$wx${toolkit}_VERSION"
10538 if test "x$version" != "x"; then
10539 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10540 fi
a848cd7e
SC
10541 fi
10542 if test "$value" = 1; then
10543 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10544 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10545echo "${ECHO_T}$toolkit_echo" >&6
10546 fi
10547 fi
10548 done
10549else
10550 if test "x$host_alias" != "x"; then
10551 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10552echo "${ECHO_T}base ($host_alias hosted) only" >&6
10553 else
10554 echo "$as_me:$LINENO: result: base only" >&5
10555echo "${ECHO_T}base only" >&6
10556 fi
10557fi
10558
10559wants_win32=0
10560doesnt_want_win32=0
10561case "${host}" in
10562 *-*-cygwin*)
10563 if test "$wxUSE_MSW" = 1 ; then
10564 wants_win32=1
10565 else
10566 doesnt_want_win32=1
10567 fi
10568 ;;
10569 *-*-mingw*)
10570 wants_win32=1
10571 ;;
10572esac
10573
10574if test "$wxUSE_WINE" = "yes"; then
10575 wants_win32=1
10576 CC=winegcc
10577 CXX=wineg++
10578 RESCOMP=wrc
10579 LDFLAGS_GUI="-mwindows"
10580fi
10581
10582if test "$wants_win32" = 1 ; then
10583 USE_UNIX=0
10584 USE_WIN32=1
10585 cat >>confdefs.h <<\_ACEOF
10586#define __WIN32__ 1
10587_ACEOF
10588
10589 cat >>confdefs.h <<\_ACEOF
10590#define __WIN95__ 1
10591_ACEOF
10592
10593 cat >>confdefs.h <<\_ACEOF
10594#define __WINDOWS__ 1
10595_ACEOF
10596
10597 cat >>confdefs.h <<\_ACEOF
10598#define __GNUWIN32__ 1
10599_ACEOF
10600
10601 cat >>confdefs.h <<\_ACEOF
10602#define STRICT 1
10603_ACEOF
10604
10605 cat >>confdefs.h <<\_ACEOF
10606#define WINVER 0x0400
10607_ACEOF
10608
10609fi
10610if test "$doesnt_want_win32" = 1 ; then
10611 USE_UNIX=1
10612 USE_WIN32=0
10613fi
10614
10615if test "$USE_UNIX" = 1 ; then
10616 wxUSE_UNIX=yes
10617 cat >>confdefs.h <<\_ACEOF
10618#define __UNIX__ 1
10619_ACEOF
10620
10621fi
10622
10623
10624cat >confcache <<\_ACEOF
10625# This file is a shell script that caches the results of configure
10626# tests run on this system so they can be shared between configure
10627# scripts and configure runs, see configure's option --config-cache.
10628# It is not useful on other systems. If it contains results you don't
10629# want to keep, you may remove or edit it.
10630#
10631# config.status only pays attention to the cache file if you give it
10632# the --recheck option to rerun configure.
10633#
10634# `ac_cv_env_foo' variables (set or unset) will be overridden when
10635# loading this file, other *unset* `ac_cv_foo' will be assigned the
10636# following values.
10637
10638_ACEOF
10639
10640# The following way of writing the cache mishandles newlines in values,
10641# but we know of no workaround that is simple, portable, and efficient.
10642# So, don't put newlines in cache variables' values.
10643# Ultrix sh set writes to stderr and can't be redirected directly,
10644# and sets the high bit in the cache file unless we assign to the vars.
10645{
10646 (set) 2>&1 |
10647 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10648 *ac_space=\ *)
10649 # `set' does not quote correctly, so add quotes (double-quote
10650 # substitution turns \\\\ into \\, and sed turns \\ into \).
10651 sed -n \
ac1cb8d3
VS
10652 "s/'/'\\\\''/g;
10653 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10654 ;;
10655 *)
10656 # `set' quotes correctly as required by POSIX, so do not add quotes.
10657 sed -n \
ac1cb8d3 10658 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10659 ;;
10660 esac;
10661} |
10662 sed '
10663 t clear
10664 : clear
10665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10666 t end
10667 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10668 : end' >>confcache
10669if diff $cache_file confcache >/dev/null 2>&1; then :; else
10670 if test -w $cache_file; then
10671 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10672 cat confcache >$cache_file
10673 else
10674 echo "not updating unwritable cache $cache_file"
10675 fi
10676fi
10677rm -f confcache
10678
10679if test "$build" != "$host" ; then
1e9e8aba 10680 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10681 CC=$host_alias-gcc
10682 CXX=$host_alias-c++
10683 AR=$host_alias-ar
10684 RANLIB=$host_alias-ranlib
10685 DLLTOOL=$host_alias-dlltool
10686 RESCOMP=$host_alias-windres
a848cd7e 10687 STRIP=$host_alias-strip
1e9e8aba
DE
10688 elif test "x$CC" '!=' "x"; then
10689 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10690 else
10691 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10692echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10693 { (exit 1); exit 1; }; }
10694 fi
10695fi
10696
10697CFLAGS=${CFLAGS:=}
6dcfc289
DE
10698
10699
10700 ac_ext=c
a848cd7e
SC
10701ac_cpp='$CPP $CPPFLAGS'
10702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704ac_compiler_gnu=$ac_cv_c_compiler_gnu
10705if test -n "$ac_tool_prefix"; then
10706 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10707set dummy ${ac_tool_prefix}gcc; ac_word=$2
10708echo "$as_me:$LINENO: checking for $ac_word" >&5
10709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10710if test "${ac_cv_prog_CC+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712else
10713 if test -n "$CC"; then
10714 ac_cv_prog_CC="$CC" # Let the user override the test.
10715else
10716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $PATH
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10723 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10726 fi
10727done
10728done
10729
10730fi
10731fi
10732CC=$ac_cv_prog_CC
10733if test -n "$CC"; then
10734 echo "$as_me:$LINENO: result: $CC" >&5
10735echo "${ECHO_T}$CC" >&6
10736else
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
10739fi
10740
10741fi
10742if test -z "$ac_cv_prog_CC"; then
10743 ac_ct_CC=$CC
10744 # Extract the first word of "gcc", so it can be a program name with args.
10745set dummy gcc; ac_word=$2
10746echo "$as_me:$LINENO: checking for $ac_word" >&5
10747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10748if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751 if test -n "$ac_ct_CC"; then
10752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10753else
10754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755for as_dir in $PATH
10756do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761 ac_cv_prog_ac_ct_CC="gcc"
10762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10764 fi
10765done
10766done
10767
10768fi
10769fi
10770ac_ct_CC=$ac_cv_prog_ac_ct_CC
10771if test -n "$ac_ct_CC"; then
10772 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10773echo "${ECHO_T}$ac_ct_CC" >&6
10774else
10775 echo "$as_me:$LINENO: result: no" >&5
10776echo "${ECHO_T}no" >&6
10777fi
10778
10779 CC=$ac_ct_CC
10780else
10781 CC="$ac_cv_prog_CC"
10782fi
10783
10784if test -z "$CC"; then
10785 if test -n "$ac_tool_prefix"; then
10786 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10787set dummy ${ac_tool_prefix}cc; ac_word=$2
10788echo "$as_me:$LINENO: checking for $ac_word" >&5
10789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10790if test "${ac_cv_prog_CC+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792else
10793 if test -n "$CC"; then
10794 ac_cv_prog_CC="$CC" # Let the user override the test.
10795else
10796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797for as_dir in $PATH
10798do
10799 IFS=$as_save_IFS
10800 test -z "$as_dir" && as_dir=.
10801 for ac_exec_ext in '' $ac_executable_extensions; do
10802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10803 ac_cv_prog_CC="${ac_tool_prefix}cc"
10804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10805 break 2
10806 fi
10807done
10808done
10809
10810fi
10811fi
10812CC=$ac_cv_prog_CC
10813if test -n "$CC"; then
10814 echo "$as_me:$LINENO: result: $CC" >&5
10815echo "${ECHO_T}$CC" >&6
10816else
10817 echo "$as_me:$LINENO: result: no" >&5
10818echo "${ECHO_T}no" >&6
10819fi
10820
10821fi
10822if test -z "$ac_cv_prog_CC"; then
10823 ac_ct_CC=$CC
10824 # Extract the first word of "cc", so it can be a program name with args.
10825set dummy cc; ac_word=$2
10826echo "$as_me:$LINENO: checking for $ac_word" >&5
10827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10828if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 if test -n "$ac_ct_CC"; then
10832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10833else
10834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835for as_dir in $PATH
10836do
10837 IFS=$as_save_IFS
10838 test -z "$as_dir" && as_dir=.
10839 for ac_exec_ext in '' $ac_executable_extensions; do
10840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10841 ac_cv_prog_ac_ct_CC="cc"
10842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10843 break 2
10844 fi
10845done
10846done
10847
10848fi
10849fi
10850ac_ct_CC=$ac_cv_prog_ac_ct_CC
10851if test -n "$ac_ct_CC"; then
10852 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10853echo "${ECHO_T}$ac_ct_CC" >&6
10854else
10855 echo "$as_me:$LINENO: result: no" >&5
10856echo "${ECHO_T}no" >&6
10857fi
10858
10859 CC=$ac_ct_CC
10860else
10861 CC="$ac_cv_prog_CC"
10862fi
10863
10864fi
10865if test -z "$CC"; then
10866 # Extract the first word of "cc", so it can be a program name with args.
10867set dummy cc; ac_word=$2
10868echo "$as_me:$LINENO: checking for $ac_word" >&5
10869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10870if test "${ac_cv_prog_CC+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872else
10873 if test -n "$CC"; then
10874 ac_cv_prog_CC="$CC" # Let the user override the test.
10875else
10876 ac_prog_rejected=no
10877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $PATH
10879do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10885 ac_prog_rejected=yes
10886 continue
10887 fi
10888 ac_cv_prog_CC="cc"
10889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10891 fi
10892done
10893done
10894
10895if test $ac_prog_rejected = yes; then
10896 # We found a bogon in the path, so make sure we never use it.
10897 set dummy $ac_cv_prog_CC
10898 shift
10899 if test $# != 0; then
10900 # We chose a different compiler from the bogus one.
10901 # However, it has the same basename, so the bogon will be chosen
10902 # first if we set CC to just the basename; use the full file name.
10903 shift
10904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10905 fi
10906fi
10907fi
10908fi
10909CC=$ac_cv_prog_CC
10910if test -n "$CC"; then
10911 echo "$as_me:$LINENO: result: $CC" >&5
10912echo "${ECHO_T}$CC" >&6
10913else
10914 echo "$as_me:$LINENO: result: no" >&5
10915echo "${ECHO_T}no" >&6
10916fi
10917
10918fi
10919if test -z "$CC"; then
10920 if test -n "$ac_tool_prefix"; then
10921 for ac_prog in cl
10922 do
10923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10924set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10925echo "$as_me:$LINENO: checking for $ac_word" >&5
10926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10927if test "${ac_cv_prog_CC+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929else
10930 if test -n "$CC"; then
10931 ac_cv_prog_CC="$CC" # Let the user override the test.
10932else
10933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934for as_dir in $PATH
10935do
10936 IFS=$as_save_IFS
10937 test -z "$as_dir" && as_dir=.
10938 for ac_exec_ext in '' $ac_executable_extensions; do
10939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10942 break 2
10943 fi
10944done
10945done
10946
10947fi
10948fi
10949CC=$ac_cv_prog_CC
10950if test -n "$CC"; then
10951 echo "$as_me:$LINENO: result: $CC" >&5
10952echo "${ECHO_T}$CC" >&6
10953else
10954 echo "$as_me:$LINENO: result: no" >&5
10955echo "${ECHO_T}no" >&6
10956fi
10957
10958 test -n "$CC" && break
10959 done
10960fi
10961if test -z "$CC"; then
10962 ac_ct_CC=$CC
10963 for ac_prog in cl
10964do
10965 # Extract the first word of "$ac_prog", so it can be a program name with args.
10966set dummy $ac_prog; ac_word=$2
10967echo "$as_me:$LINENO: checking for $ac_word" >&5
10968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971else
10972 if test -n "$ac_ct_CC"; then
10973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_ac_ct_CC="$ac_prog"
10983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10985 fi
10986done
10987done
10988
10989fi
10990fi
10991ac_ct_CC=$ac_cv_prog_ac_ct_CC
10992if test -n "$ac_ct_CC"; then
10993 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10994echo "${ECHO_T}$ac_ct_CC" >&6
10995else
10996 echo "$as_me:$LINENO: result: no" >&5
10997echo "${ECHO_T}no" >&6
10998fi
10999
11000 test -n "$ac_ct_CC" && break
11001done
11002
11003 CC=$ac_ct_CC
11004fi
11005
11006fi
11007
11008
11009test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11010See \`config.log' for more details." >&5
11011echo "$as_me: error: no acceptable C compiler found in \$PATH
11012See \`config.log' for more details." >&2;}
11013 { (exit 1); exit 1; }; }
11014
11015# Provide some information about the compiler.
11016echo "$as_me:$LINENO:" \
11017 "checking for C compiler version" >&5
11018ac_compiler=`set X $ac_compile; echo $2`
11019{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11020 (eval $ac_compiler --version </dev/null >&5) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }
11024{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11025 (eval $ac_compiler -v </dev/null >&5) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }
11029{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11030 (eval $ac_compiler -V </dev/null >&5) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }
11034
11035cat >conftest.$ac_ext <<_ACEOF
11036/* confdefs.h. */
11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
11040/* end confdefs.h. */
11041
11042int
11043main ()
11044{
11045
11046 ;
11047 return 0;
11048}
11049_ACEOF
11050ac_clean_files_save=$ac_clean_files
11051ac_clean_files="$ac_clean_files a.out a.exe b.out"
11052# Try to create an executable without -o first, disregard a.out.
11053# It will help us diagnose broken compilers, and finding out an intuition
11054# of exeext.
ac1cb8d3
VS
11055echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11056echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11057ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11058if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11059 (eval $ac_link_default) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; then
11063 # Find the output, starting from the most likely. This scheme is
11064# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11065# resort.
11066
11067# Be careful to initialize this variable, since it used to be cached.
11068# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11069ac_cv_exeext=
11070# b.out is created by i960 compilers.
11071for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11072do
11073 test -f "$ac_file" || continue
11074 case $ac_file in
11075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11076 ;;
a848cd7e 11077 conftest.$ac_ext )
ac1cb8d3
VS
11078 # This is the source file.
11079 ;;
a848cd7e 11080 [ab].out )
ac1cb8d3
VS
11081 # We found the default executable, but exeext='' is most
11082 # certainly right.
11083 break;;
a848cd7e 11084 *.* )
ac1cb8d3
VS
11085 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11086 # FIXME: I believe we export ac_cv_exeext for Libtool,
11087 # but it would be cool to find out if it's true. Does anybody
11088 # maintain Libtool? --akim.
11089 export ac_cv_exeext
11090 break;;
a848cd7e 11091 * )
ac1cb8d3 11092 break;;
a848cd7e
SC
11093 esac
11094done
11095else
11096 echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
11099{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11100See \`config.log' for more details." >&5
11101echo "$as_me: error: C compiler cannot create executables
11102See \`config.log' for more details." >&2;}
11103 { (exit 77); exit 77; }; }
11104fi
11105
11106ac_exeext=$ac_cv_exeext
11107echo "$as_me:$LINENO: result: $ac_file" >&5
11108echo "${ECHO_T}$ac_file" >&6
11109
11110# Check the compiler produces executables we can run. If not, either
11111# the compiler is broken, or we cross compile.
11112echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11113echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11114# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11115# If not cross compiling, check that we can run a simple program.
11116if test "$cross_compiling" != yes; then
11117 if { ac_try='./$ac_file'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 cross_compiling=no
11124 else
11125 if test "$cross_compiling" = maybe; then
11126 cross_compiling=yes
11127 else
11128 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11129If you meant to cross compile, use \`--host'.
11130See \`config.log' for more details." >&5
11131echo "$as_me: error: cannot run C compiled programs.
11132If you meant to cross compile, use \`--host'.
11133See \`config.log' for more details." >&2;}
11134 { (exit 1); exit 1; }; }
11135 fi
11136 fi
11137fi
11138echo "$as_me:$LINENO: result: yes" >&5
11139echo "${ECHO_T}yes" >&6
11140
11141rm -f a.out a.exe conftest$ac_cv_exeext b.out
11142ac_clean_files=$ac_clean_files_save
11143# Check the compiler produces executables we can run. If not, either
11144# the compiler is broken, or we cross compile.
11145echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11146echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11147echo "$as_me:$LINENO: result: $cross_compiling" >&5
11148echo "${ECHO_T}$cross_compiling" >&6
11149
11150echo "$as_me:$LINENO: checking for suffix of executables" >&5
11151echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153 (eval $ac_link) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; then
11157 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11158# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11159# work properly (i.e., refer to `conftest.exe'), while it won't with
11160# `rm'.
11161for ac_file in conftest.exe conftest conftest.*; do
11162 test -f "$ac_file" || continue
11163 case $ac_file in
11164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11165 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11166 export ac_cv_exeext
11167 break;;
a848cd7e
SC
11168 * ) break;;
11169 esac
11170done
11171else
11172 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11173See \`config.log' for more details." >&5
11174echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11175See \`config.log' for more details." >&2;}
11176 { (exit 1); exit 1; }; }
11177fi
11178
11179rm -f conftest$ac_cv_exeext
11180echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11181echo "${ECHO_T}$ac_cv_exeext" >&6
11182
11183rm -f conftest.$ac_ext
11184EXEEXT=$ac_cv_exeext
11185ac_exeext=$EXEEXT
11186echo "$as_me:$LINENO: checking for suffix of object files" >&5
11187echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11188if test "${ac_cv_objext+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190else
11191 cat >conftest.$ac_ext <<_ACEOF
11192/* confdefs.h. */
11193_ACEOF
11194cat confdefs.h >>conftest.$ac_ext
11195cat >>conftest.$ac_ext <<_ACEOF
11196/* end confdefs.h. */
11197
11198int
11199main ()
11200{
11201
11202 ;
11203 return 0;
11204}
11205_ACEOF
11206rm -f conftest.o conftest.obj
11207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>&5
11209 ac_status=$?
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; then
11212 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11213 case $ac_file in
11214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11215 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11216 break;;
11217 esac
11218done
11219else
11220 echo "$as_me: failed program was:" >&5
11221sed 's/^/| /' conftest.$ac_ext >&5
11222
11223{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11224See \`config.log' for more details." >&5
11225echo "$as_me: error: cannot compute suffix of object files: cannot compile
11226See \`config.log' for more details." >&2;}
11227 { (exit 1); exit 1; }; }
11228fi
11229
11230rm -f conftest.$ac_cv_objext conftest.$ac_ext
11231fi
11232echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11233echo "${ECHO_T}$ac_cv_objext" >&6
11234OBJEXT=$ac_cv_objext
11235ac_objext=$OBJEXT
11236echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11237echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11238if test "${ac_cv_c_compiler_gnu+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240else
11241 cat >conftest.$ac_ext <<_ACEOF
11242/* confdefs.h. */
11243_ACEOF
11244cat confdefs.h >>conftest.$ac_ext
11245cat >>conftest.$ac_ext <<_ACEOF
11246/* end confdefs.h. */
11247
11248int
11249main ()
11250{
11251#ifndef __GNUC__
11252 choke me
11253#endif
11254
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259rm -f conftest.$ac_objext
11260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11261 (eval $ac_compile) 2>conftest.er1
a848cd7e 11262 ac_status=$?
ac1cb8d3
VS
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
a848cd7e
SC
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
8c539582 11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_compiler_gnu=yes
11281else
11282 echo "$as_me: failed program was:" >&5
11283sed 's/^/| /' conftest.$ac_ext >&5
11284
11285ac_compiler_gnu=no
11286fi
ac1cb8d3 11287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11288ac_cv_c_compiler_gnu=$ac_compiler_gnu
11289
11290fi
11291echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11292echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11293GCC=`test $ac_compiler_gnu = yes && echo yes`
11294ac_test_CFLAGS=${CFLAGS+set}
11295ac_save_CFLAGS=$CFLAGS
52ada004 11296CFLAGS="-g"
a848cd7e
SC
11297echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11298echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11299if test "${ac_cv_prog_cc_g+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301else
11302 cat >conftest.$ac_ext <<_ACEOF
11303/* confdefs.h. */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h. */
11308
11309int
11310main ()
11311{
11312
11313 ;
11314 return 0;
11315}
11316_ACEOF
11317rm -f conftest.$ac_objext
11318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11319 (eval $ac_compile) 2>conftest.er1
a848cd7e 11320 ac_status=$?
ac1cb8d3
VS
11321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
a848cd7e
SC
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
8c539582 11326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; } &&
11332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_cv_prog_cc_g=yes
11339else
11340 echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
11343ac_cv_prog_cc_g=no
11344fi
ac1cb8d3 11345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11346fi
11347echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11348echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11349if test "$ac_test_CFLAGS" = set; then
11350 CFLAGS=$ac_save_CFLAGS
11351elif test $ac_cv_prog_cc_g = yes; then
11352 if test "$GCC" = yes; then
11353 CFLAGS="-g -O2"
11354 else
11355 CFLAGS="-g"
11356 fi
11357else
11358 if test "$GCC" = yes; then
11359 CFLAGS="-O2"
11360 else
11361 CFLAGS=
11362 fi
11363fi
11364echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11365echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11366if test "${ac_cv_prog_cc_stdc+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369 ac_cv_prog_cc_stdc=no
11370ac_save_CC=$CC
11371cat >conftest.$ac_ext <<_ACEOF
11372/* confdefs.h. */
11373_ACEOF
11374cat confdefs.h >>conftest.$ac_ext
11375cat >>conftest.$ac_ext <<_ACEOF
11376/* end confdefs.h. */
11377#include <stdarg.h>
11378#include <stdio.h>
11379#include <sys/types.h>
11380#include <sys/stat.h>
11381/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11382struct buf { int x; };
11383FILE * (*rcsopen) (struct buf *, struct stat *, int);
11384static char *e (p, i)
11385 char **p;
11386 int i;
11387{
11388 return p[i];
11389}
11390static char *f (char * (*g) (char **, int), char **p, ...)
11391{
11392 char *s;
11393 va_list v;
11394 va_start (v,p);
11395 s = g (p, va_arg (v,int));
11396 va_end (v);
11397 return s;
11398}
ac1cb8d3
VS
11399
11400/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11401 function prototypes and stuff, but not '\xHH' hex character constants.
11402 These don't provoke an error unfortunately, instead are silently treated
11403 as 'x'. The following induces an error, until -std1 is added to get
11404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11405 array size at least. It's necessary to write '\x00'==0 to get something
11406 that's true only with -std1. */
11407int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11408
a848cd7e
SC
11409int test (int i, double x);
11410struct s1 {int (*f) (int a);};
11411struct s2 {int (*f) (double a);};
11412int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11413int argc;
11414char **argv;
11415int
11416main ()
11417{
11418return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423# Don't try gcc -ansi; that turns off useful extensions and
11424# breaks some systems' header files.
11425# AIX -qlanglvl=ansi
11426# Ultrix and OSF/1 -std1
11427# HP-UX 10.20 and later -Ae
11428# HP-UX older versions -Aa -D_HPUX_SOURCE
11429# SVR4 -Xc -D__EXTENSIONS__
11430for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11431do
11432 CC="$ac_save_CC $ac_arg"
11433 rm -f conftest.$ac_objext
11434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11435 (eval $ac_compile) 2>conftest.er1
a848cd7e 11436 ac_status=$?
ac1cb8d3
VS
11437 grep -v '^ *+' conftest.er1 >conftest.err
11438 rm -f conftest.er1
11439 cat conftest.err >&5
a848cd7e
SC
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
8c539582 11442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 ac_cv_prog_cc_stdc=$ac_arg
11455break
11456else
11457 echo "$as_me: failed program was:" >&5
11458sed 's/^/| /' conftest.$ac_ext >&5
11459
11460fi
ac1cb8d3 11461rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11462done
11463rm -f conftest.$ac_ext conftest.$ac_objext
11464CC=$ac_save_CC
11465
11466fi
11467
11468case "x$ac_cv_prog_cc_stdc" in
11469 x|xno)
11470 echo "$as_me:$LINENO: result: none needed" >&5
11471echo "${ECHO_T}none needed" >&6 ;;
11472 *)
11473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11474echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11475 CC="$CC $ac_cv_prog_cc_stdc" ;;
11476esac
11477
11478# Some people use a C++ compiler to compile C. Since we use `exit',
11479# in C++ we need to declare it. In case someone uses the same compiler
11480# for both compiling C and C++ we need to have the C++ compiler decide
11481# the declaration of exit, since it's the most demanding environment.
11482cat >conftest.$ac_ext <<_ACEOF
11483#ifndef __cplusplus
11484 choke me
11485#endif
11486_ACEOF
11487rm -f conftest.$ac_objext
11488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11489 (eval $ac_compile) 2>conftest.er1
a848cd7e 11490 ac_status=$?
ac1cb8d3
VS
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
a848cd7e
SC
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
8c539582 11496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; } &&
11502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 for ac_declaration in \
ac1cb8d3 11509 '' \
a848cd7e
SC
11510 'extern "C" void std::exit (int) throw (); using std::exit;' \
11511 'extern "C" void std::exit (int); using std::exit;' \
11512 'extern "C" void exit (int) throw ();' \
11513 'extern "C" void exit (int);' \
11514 'void exit (int);'
11515do
11516 cat >conftest.$ac_ext <<_ACEOF
11517/* confdefs.h. */
11518_ACEOF
11519cat confdefs.h >>conftest.$ac_ext
11520cat >>conftest.$ac_ext <<_ACEOF
11521/* end confdefs.h. */
de59c161 11522$ac_declaration
ac1cb8d3 11523#include <stdlib.h>
a848cd7e
SC
11524int
11525main ()
11526{
11527exit (42);
11528 ;
11529 return 0;
11530}
11531_ACEOF
11532rm -f conftest.$ac_objext
11533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11534 (eval $ac_compile) 2>conftest.er1
a848cd7e 11535 ac_status=$?
ac1cb8d3
VS
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
a848cd7e
SC
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
8c539582 11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 :
11554else
11555 echo "$as_me: failed program was:" >&5
11556sed 's/^/| /' conftest.$ac_ext >&5
11557
11558continue
11559fi
ac1cb8d3 11560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11561 cat >conftest.$ac_ext <<_ACEOF
11562/* confdefs.h. */
11563_ACEOF
11564cat confdefs.h >>conftest.$ac_ext
11565cat >>conftest.$ac_ext <<_ACEOF
11566/* end confdefs.h. */
11567$ac_declaration
11568int
11569main ()
11570{
11571exit (42);
11572 ;
11573 return 0;
11574}
11575_ACEOF
11576rm -f conftest.$ac_objext
11577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11578 (eval $ac_compile) 2>conftest.er1
a848cd7e 11579 ac_status=$?
ac1cb8d3
VS
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
a848cd7e
SC
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } &&
8c539582 11585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; } &&
11591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }; then
11597 break
11598else
11599 echo "$as_me: failed program was:" >&5
11600sed 's/^/| /' conftest.$ac_ext >&5
11601
11602fi
ac1cb8d3 11603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11604done
11605rm -f conftest*
11606if test -n "$ac_declaration"; then
11607 echo '#ifdef __cplusplus' >>confdefs.h
11608 echo $ac_declaration >>confdefs.h
11609 echo '#endif' >>confdefs.h
11610fi
11611
11612else
11613 echo "$as_me: failed program was:" >&5
11614sed 's/^/| /' conftest.$ac_ext >&5
11615
11616fi
ac1cb8d3 11617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11618ac_ext=c
11619ac_cpp='$CPP $CPPFLAGS'
11620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11622ac_compiler_gnu=$ac_cv_c_compiler_gnu
11623
6dcfc289 11624 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11625echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11626if test "${wx_cv_c_exto+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628else
11629 cat >conftest.$ac_ext <<_ACEOF
11630/* confdefs.h. */
11631_ACEOF
11632cat confdefs.h >>conftest.$ac_ext
11633cat >>conftest.$ac_ext <<_ACEOF
11634/* end confdefs.h. */
11635
11636int
11637main ()
11638{
11639
11640 ;
11641 return 0;
11642}
11643_ACEOF
11644rm -f conftest.$ac_objext conftest.$ac_ext.o
11645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646 (eval $ac_compile) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; then
11650 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11651 case $ac_file in
11652 conftest.$ac_ext.o)
11653 wx_cv_c_exto="-ext o"
11654 ;;
11655 *)
11656 ;;
11657 esac
11658done
11659else
11660 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11661See \`config.log' for more details." >&5
11662echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11663See \`config.log' for more details." >&2;}
11664 { (exit 1); exit 1; }; }
11665
11666fi
11667
11668rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11669
11670fi
11671echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11672echo "${ECHO_T}$wx_cv_c_exto" >&6
11673if test "x$wx_cv_c_exto" '!=' "x"; then
11674 if test "c" = "c"; then
11675 CFLAGS="$wx_cv_c_exto $CFLAGS"
11676 fi
11677 if test "c" = "cxx"; then
11678 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11679 fi
11680fi
11681
6dcfc289
DE
11682 if test "x$wx_cv_c_exto" '!=' "x"; then
11683 unset ac_cv_prog_cc_g
11684 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11685ac_save_CFLAGS=$CFLAGS
52ada004 11686CFLAGS="-g"
480ccd21
DE
11687echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11688echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11689if test "${ac_cv_prog_cc_g+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
11698
11699int
11700main ()
11701{
11702
11703 ;
11704 return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext
11708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709 (eval $ac_compile) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
8c539582 11716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest.$ac_objext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_prog_cc_g=yes
11729else
11730 echo "$as_me: failed program was:" >&5
11731sed 's/^/| /' conftest.$ac_ext >&5
11732
11733ac_cv_prog_cc_g=no
11734fi
11735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11736fi
11737echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11738echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11739if test "$ac_test_CFLAGS" = set; then
11740 CFLAGS=$ac_save_CFLAGS
11741elif test $ac_cv_prog_cc_g = yes; then
11742 if test "$GCC" = yes; then
11743 CFLAGS="-g -O2"
11744 else
11745 CFLAGS="-g"
11746 fi
11747else
11748 if test "$GCC" = yes; then
11749 CFLAGS="-O2"
11750 else
11751 CFLAGS=
11752 fi
11753fi
6dcfc289
DE
11754 fi
11755 ac_ext=c
95986553
DE
11756ac_cpp='$CPP $CPPFLAGS'
11757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760
11761echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11762echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11763if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11765else
11766 cat >conftest.$ac_ext <<_ACEOF
11767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
11772
11773int
11774main ()
11775{
11776#ifndef __MWERKS__
11777 choke me
11778#endif
11779
11780 ;
11781 return 0;
11782}
11783_ACEOF
11784rm -f conftest.$ac_objext
11785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786 (eval $ac_compile) 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
8c539582 11793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest.$ac_objext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 bakefile_compiler_mwerks=yes
11806else
11807 echo "$as_me: failed program was:" >&5
11808sed 's/^/| /' conftest.$ac_ext >&5
11809
11810bakefile_compiler_mwerks=no
11811fi
11812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11813 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11814
11815fi
11816echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11817echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11818
0e6fa1d9 11819MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11820ac_ext=c
11821ac_cpp='$CPP $CPPFLAGS'
11822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11824ac_compiler_gnu=$ac_cv_c_compiler_gnu
11825
11826
6dcfc289 11827 ac_ext=c
9273ffba
DE
11828ac_cpp='$CPP $CPPFLAGS'
11829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11831ac_compiler_gnu=$ac_cv_c_compiler_gnu
11832
11833echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11834echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11835if test "${wx_cv_c_compiler_xlc+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11837else
11838 cat >conftest.$ac_ext <<_ACEOF
11839/* confdefs.h. */
11840_ACEOF
11841cat confdefs.h >>conftest.$ac_ext
11842cat >>conftest.$ac_ext <<_ACEOF
11843/* end confdefs.h. */
11844
11845int
11846main ()
11847{
11848#ifndef __xlC__
11849 choke me
11850#endif
11851
11852 ;
11853 return 0;
11854}
11855_ACEOF
11856rm -f conftest.$ac_objext
11857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858 (eval $ac_compile) 2>conftest.er1
11859 ac_status=$?
11860 grep -v '^ *+' conftest.er1 >conftest.err
11861 rm -f conftest.er1
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } &&
8c539582 11865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; } &&
11871 { ac_try='test -s conftest.$ac_objext'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 wx_compiler_xlc=yes
11878else
11879 echo "$as_me: failed program was:" >&5
11880sed 's/^/| /' conftest.$ac_ext >&5
11881
11882wx_compiler_xlc=no
11883fi
11884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11885 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11886
11887fi
11888echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11889echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11890
0e6fa1d9 11891XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11892ac_ext=c
11893ac_cpp='$CPP $CPPFLAGS'
11894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11896ac_compiler_gnu=$ac_cv_c_compiler_gnu
11897
11898
a848cd7e 11899
6dcfc289 11900
a9e5b1f0
MW
11901 ac_ext=c
11902ac_cpp='$CPP $CPPFLAGS'
11903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11905ac_compiler_gnu=$ac_cv_c_compiler_gnu
11906
11907 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
11908echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
11909if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11911else
11912 cat >conftest.$ac_ext <<_ACEOF
11913/* confdefs.h. */
11914_ACEOF
11915cat confdefs.h >>conftest.$ac_ext
11916cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h. */
11918
11919int
11920main ()
11921{
11922
11923 #ifndef __SUNPRO_C
11924 choke me
11925 #endif
11926
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext
11932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11933 (eval $ac_compile) 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
8c539582 11940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 bakefile_cv_c_compiler___SUNPRO_C=yes
11953else
11954 echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957bakefile_cv_c_compiler___SUNPRO_C=no
11958
11959fi
11960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11961
11962
11963fi
11964echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
11965echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
11966 ac_ext=c
11967ac_cpp='$CPP $CPPFLAGS'
11968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11970ac_compiler_gnu=$ac_cv_c_compiler_gnu
11971
11972 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
11973 :; SUNCC=yes
11974 else
11975 :;
11976 fi
11977
11978
11979
11980
a848cd7e
SC
11981ac_ext=c
11982ac_cpp='$CPP $CPPFLAGS'
11983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11985ac_compiler_gnu=$ac_cv_c_compiler_gnu
11986echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11987echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11988# On Suns, sometimes $CPP names a directory.
11989if test -n "$CPP" && test -d "$CPP"; then
11990 CPP=
11991fi
11992if test -z "$CPP"; then
11993 if test "${ac_cv_prog_CPP+set}" = set; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11995else
11996 # Double quotes because CPP needs to be expanded
11997 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11998 do
11999 ac_preproc_ok=false
12000for ac_c_preproc_warn_flag in '' yes
12001do
12002 # Use a header file that comes with gcc, so configuring glibc
12003 # with a fresh cross-compiler works.
12004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005 # <limits.h> exists even on freestanding compilers.
12006 # On the NeXT, cc -E runs the code through the compiler's parser,
12007 # not just through cpp. "Syntax error" is here to catch this case.
12008 cat >conftest.$ac_ext <<_ACEOF
12009/* confdefs.h. */
12010_ACEOF
12011cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h. */
12014#ifdef __STDC__
12015# include <limits.h>
12016#else
12017# include <assert.h>
12018#endif
ac1cb8d3 12019 Syntax error
a848cd7e
SC
12020_ACEOF
12021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } >/dev/null; then
12029 if test -s conftest.err; then
12030 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12032 else
12033 ac_cpp_err=
12034 fi
12035else
12036 ac_cpp_err=yes
12037fi
12038if test -z "$ac_cpp_err"; then
12039 :
12040else
12041 echo "$as_me: failed program was:" >&5
12042sed 's/^/| /' conftest.$ac_ext >&5
12043
12044 # Broken: fails on valid input.
12045continue
12046fi
12047rm -f conftest.err conftest.$ac_ext
12048
12049 # OK, works on sane cases. Now check whether non-existent headers
12050 # can be detected and how.
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */
12057#include <ac_nonexistent.h>
12058_ACEOF
12059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev/null; then
12067 if test -s conftest.err; then
12068 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12070 else
12071 ac_cpp_err=
12072 fi
12073else
12074 ac_cpp_err=yes
12075fi
12076if test -z "$ac_cpp_err"; then
12077 # Broken: success on invalid input.
12078continue
12079else
12080 echo "$as_me: failed program was:" >&5
12081sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 # Passes both tests.
12084ac_preproc_ok=:
12085break
12086fi
12087rm -f conftest.err conftest.$ac_ext
12088
12089done
12090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12091rm -f conftest.err conftest.$ac_ext
12092if $ac_preproc_ok; then
12093 break
12094fi
12095
12096 done
12097 ac_cv_prog_CPP=$CPP
12098
12099fi
12100 CPP=$ac_cv_prog_CPP
12101else
12102 ac_cv_prog_CPP=$CPP
12103fi
12104echo "$as_me:$LINENO: result: $CPP" >&5
12105echo "${ECHO_T}$CPP" >&6
12106ac_preproc_ok=false
12107for ac_c_preproc_warn_flag in '' yes
12108do
12109 # Use a header file that comes with gcc, so configuring glibc
12110 # with a fresh cross-compiler works.
12111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12112 # <limits.h> exists even on freestanding compilers.
12113 # On the NeXT, cc -E runs the code through the compiler's parser,
12114 # not just through cpp. "Syntax error" is here to catch this case.
12115 cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h. */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h. */
12121#ifdef __STDC__
12122# include <limits.h>
12123#else
12124# include <assert.h>
12125#endif
ac1cb8d3 12126 Syntax error
a848cd7e
SC
12127_ACEOF
12128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12130 ac_status=$?
12131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } >/dev/null; then
12136 if test -s conftest.err; then
12137 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12139 else
12140 ac_cpp_err=
12141 fi
12142else
12143 ac_cpp_err=yes
12144fi
12145if test -z "$ac_cpp_err"; then
12146 :
12147else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 # Broken: fails on valid input.
12152continue
12153fi
12154rm -f conftest.err conftest.$ac_ext
12155
12156 # OK, works on sane cases. Now check whether non-existent headers
12157 # can be detected and how.
12158 cat >conftest.$ac_ext <<_ACEOF
12159/* confdefs.h. */
12160_ACEOF
12161cat confdefs.h >>conftest.$ac_ext
12162cat >>conftest.$ac_ext <<_ACEOF
12163/* end confdefs.h. */
12164#include <ac_nonexistent.h>
12165_ACEOF
12166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12168 ac_status=$?
12169 grep -v '^ *+' conftest.er1 >conftest.err
12170 rm -f conftest.er1
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } >/dev/null; then
12174 if test -s conftest.err; then
12175 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12177 else
12178 ac_cpp_err=
12179 fi
12180else
12181 ac_cpp_err=yes
12182fi
12183if test -z "$ac_cpp_err"; then
12184 # Broken: success on invalid input.
12185continue
12186else
12187 echo "$as_me: failed program was:" >&5
12188sed 's/^/| /' conftest.$ac_ext >&5
12189
12190 # Passes both tests.
12191ac_preproc_ok=:
12192break
12193fi
12194rm -f conftest.err conftest.$ac_ext
12195
12196done
12197# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12198rm -f conftest.err conftest.$ac_ext
12199if $ac_preproc_ok; then
12200 :
12201else
12202 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12203See \`config.log' for more details." >&5
12204echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12205See \`config.log' for more details." >&2;}
12206 { (exit 1); exit 1; }; }
12207fi
12208
12209ac_ext=c
12210ac_cpp='$CPP $CPPFLAGS'
12211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12213ac_compiler_gnu=$ac_cv_c_compiler_gnu
12214
12215
12216echo "$as_me:$LINENO: checking for egrep" >&5
12217echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12218if test "${ac_cv_prog_egrep+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220else
12221 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12222 then ac_cv_prog_egrep='grep -E'
12223 else ac_cv_prog_egrep='egrep'
12224 fi
12225fi
12226echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12227echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12228 EGREP=$ac_cv_prog_egrep
12229
12230
12231if test $ac_cv_c_compiler_gnu = yes; then
12232 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12233echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12234if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236else
12237 ac_pattern="Autoconf.*'x'"
12238 cat >conftest.$ac_ext <<_ACEOF
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */
12244#include <sgtty.h>
12245Autoconf TIOCGETP
12246_ACEOF
12247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12248 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12249 ac_cv_prog_gcc_traditional=yes
12250else
12251 ac_cv_prog_gcc_traditional=no
12252fi
12253rm -f conftest*
12254
12255
12256 if test $ac_cv_prog_gcc_traditional = no; then
12257 cat >conftest.$ac_ext <<_ACEOF
12258/* confdefs.h. */
12259_ACEOF
12260cat confdefs.h >>conftest.$ac_ext
12261cat >>conftest.$ac_ext <<_ACEOF
12262/* end confdefs.h. */
12263#include <termio.h>
12264Autoconf TCGETA
12265_ACEOF
12266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12267 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12268 ac_cv_prog_gcc_traditional=yes
12269fi
12270rm -f conftest*
12271
12272 fi
12273fi
12274echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12275echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12276 if test $ac_cv_prog_gcc_traditional = yes; then
12277 CC="$CC -traditional"
12278 fi
12279fi
12280
12281
12282
12283
12284ac_ext=cc
12285ac_cpp='$CXXCPP $CPPFLAGS'
12286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12289
12290
12291CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12292
12293
12294 ac_ext=cc
a848cd7e
SC
12295ac_cpp='$CXXCPP $CPPFLAGS'
12296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12299if test -n "$ac_tool_prefix"; then
12300 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12301 do
12302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12303set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12304echo "$as_me:$LINENO: checking for $ac_word" >&5
12305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12306if test "${ac_cv_prog_CXX+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 if test -n "$CXX"; then
12310 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12311else
12312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313for as_dir in $PATH
12314do
12315 IFS=$as_save_IFS
12316 test -z "$as_dir" && as_dir=.
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12319 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12321 break 2
12322 fi
12323done
12324done
12325
12326fi
12327fi
12328CXX=$ac_cv_prog_CXX
12329if test -n "$CXX"; then
12330 echo "$as_me:$LINENO: result: $CXX" >&5
12331echo "${ECHO_T}$CXX" >&6
12332else
12333 echo "$as_me:$LINENO: result: no" >&5
12334echo "${ECHO_T}no" >&6
12335fi
12336
12337 test -n "$CXX" && break
12338 done
12339fi
12340if test -z "$CXX"; then
12341 ac_ct_CXX=$CXX
12342 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12343do
12344 # Extract the first word of "$ac_prog", so it can be a program name with args.
12345set dummy $ac_prog; ac_word=$2
12346echo "$as_me:$LINENO: checking for $ac_word" >&5
12347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12348if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350else
12351 if test -n "$ac_ct_CXX"; then
12352 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12353else
12354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355for as_dir in $PATH
12356do
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12361 ac_cv_prog_ac_ct_CXX="$ac_prog"
12362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12364 fi
12365done
12366done
12367
12368fi
12369fi
12370ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12371if test -n "$ac_ct_CXX"; then
12372 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12373echo "${ECHO_T}$ac_ct_CXX" >&6
12374else
12375 echo "$as_me:$LINENO: result: no" >&5
12376echo "${ECHO_T}no" >&6
12377fi
12378
12379 test -n "$ac_ct_CXX" && break
12380done
12381test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12382
12383 CXX=$ac_ct_CXX
12384fi
12385
12386
12387# Provide some information about the compiler.
12388echo "$as_me:$LINENO:" \
12389 "checking for C++ compiler version" >&5
12390ac_compiler=`set X $ac_compile; echo $2`
12391{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12392 (eval $ac_compiler --version </dev/null >&5) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }
12396{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12397 (eval $ac_compiler -v </dev/null >&5) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }
12401{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12402 (eval $ac_compiler -V </dev/null >&5) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }
12406
12407echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12408echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12409if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411else
12412 cat >conftest.$ac_ext <<_ACEOF
12413/* confdefs.h. */
12414_ACEOF
12415cat confdefs.h >>conftest.$ac_ext
12416cat >>conftest.$ac_ext <<_ACEOF
12417/* end confdefs.h. */
12418
12419int
12420main ()
12421{
12422#ifndef __GNUC__
12423 choke me
12424#endif
12425
12426 ;
12427 return 0;
12428}
12429_ACEOF
12430rm -f conftest.$ac_objext
12431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12432 (eval $ac_compile) 2>conftest.er1
a848cd7e 12433 ac_status=$?
ac1cb8d3
VS
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
a848cd7e
SC
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } &&
8c539582 12439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 ac_compiler_gnu=yes
12452else
12453 echo "$as_me: failed program was:" >&5
12454sed 's/^/| /' conftest.$ac_ext >&5
12455
12456ac_compiler_gnu=no
12457fi
ac1cb8d3 12458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12459ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12460
12461fi
12462echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12463echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12464GXX=`test $ac_compiler_gnu = yes && echo yes`
12465ac_test_CXXFLAGS=${CXXFLAGS+set}
12466ac_save_CXXFLAGS=$CXXFLAGS
12467CXXFLAGS="-g"
12468echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12469echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12470if test "${ac_cv_prog_cxx_g+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473 cat >conftest.$ac_ext <<_ACEOF
12474/* confdefs.h. */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h. */
12479
12480int
12481main ()
12482{
12483
12484 ;
12485 return 0;
12486}
12487_ACEOF
12488rm -f conftest.$ac_objext
12489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12490 (eval $ac_compile) 2>conftest.er1
a848cd7e 12491 ac_status=$?
ac1cb8d3
VS
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
a848cd7e
SC
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
8c539582 12497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; } &&
12503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 ac_cv_prog_cxx_g=yes
12510else
12511 echo "$as_me: failed program was:" >&5
12512sed 's/^/| /' conftest.$ac_ext >&5
12513
12514ac_cv_prog_cxx_g=no
12515fi
ac1cb8d3 12516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12517fi
12518echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12519echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12520if test "$ac_test_CXXFLAGS" = set; then
12521 CXXFLAGS=$ac_save_CXXFLAGS
12522elif test $ac_cv_prog_cxx_g = yes; then
12523 if test "$GXX" = yes; then
52ada004 12524 CXXFLAGS="-g -O2"
a848cd7e 12525 else
52ada004 12526 CXXFLAGS="-g"
a848cd7e
SC
12527 fi
12528else
12529 if test "$GXX" = yes; then
12530 CXXFLAGS="-O2"
12531 else
12532 CXXFLAGS=
12533 fi
12534fi
12535for ac_declaration in \
ac1cb8d3 12536 '' \
a848cd7e
SC
12537 'extern "C" void std::exit (int) throw (); using std::exit;' \
12538 'extern "C" void std::exit (int); using std::exit;' \
12539 'extern "C" void exit (int) throw ();' \
12540 'extern "C" void exit (int);' \
12541 'void exit (int);'
12542do
12543 cat >conftest.$ac_ext <<_ACEOF
12544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
de59c161 12549$ac_declaration
ac1cb8d3 12550#include <stdlib.h>
a848cd7e
SC
12551int
12552main ()
12553{
12554exit (42);
12555 ;
12556 return 0;
12557}
12558_ACEOF
12559rm -f conftest.$ac_objext
12560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12561 (eval $ac_compile) 2>conftest.er1
a848cd7e 12562 ac_status=$?
ac1cb8d3
VS
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
a848cd7e
SC
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
8c539582 12568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12580 :
12581else
12582 echo "$as_me: failed program was:" >&5
12583sed 's/^/| /' conftest.$ac_ext >&5
12584
12585continue
12586fi
ac1cb8d3 12587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12588 cat >conftest.$ac_ext <<_ACEOF
12589/* confdefs.h. */
12590_ACEOF
12591cat confdefs.h >>conftest.$ac_ext
12592cat >>conftest.$ac_ext <<_ACEOF
12593/* end confdefs.h. */
12594$ac_declaration
12595int
12596main ()
12597{
12598exit (42);
12599 ;
12600 return 0;
12601}
12602_ACEOF
12603rm -f conftest.$ac_objext
12604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12605 (eval $ac_compile) 2>conftest.er1
a848cd7e 12606 ac_status=$?
ac1cb8d3
VS
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
a848cd7e
SC
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
8c539582 12612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; } &&
12618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 break
12625else
12626 echo "$as_me: failed program was:" >&5
12627sed 's/^/| /' conftest.$ac_ext >&5
12628
12629fi
ac1cb8d3 12630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12631done
12632rm -f conftest*
12633if test -n "$ac_declaration"; then
12634 echo '#ifdef __cplusplus' >>confdefs.h
12635 echo $ac_declaration >>confdefs.h
12636 echo '#endif' >>confdefs.h
12637fi
12638
12639ac_ext=cc
12640ac_cpp='$CXXCPP $CPPFLAGS'
12641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12644
6dcfc289 12645 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12646echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12647if test "${wx_cv_cxx_exto+set}" = set; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649else
12650 cat >conftest.$ac_ext <<_ACEOF
12651/* confdefs.h. */
12652_ACEOF
12653cat confdefs.h >>conftest.$ac_ext
12654cat >>conftest.$ac_ext <<_ACEOF
12655/* end confdefs.h. */
12656
12657int
12658main ()
12659{
12660
12661 ;
12662 return 0;
12663}
12664_ACEOF
12665rm -f conftest.$ac_objext conftest.$ac_ext.o
12666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; then
12671 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12672 case $ac_file in
12673 conftest.$ac_ext.o)
12674 wx_cv_cxx_exto="-ext o"
12675 ;;
12676 *)
12677 ;;
12678 esac
12679done
12680else
12681 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12682See \`config.log' for more details." >&5
12683echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12684See \`config.log' for more details." >&2;}
12685 { (exit 1); exit 1; }; }
12686
12687fi
12688
12689rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12690
12691fi
12692echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12693echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12694if test "x$wx_cv_cxx_exto" '!=' "x"; then
12695 if test "cxx" = "c"; then
12696 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12697 fi
12698 if test "cxx" = "cxx"; then
12699 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12700 fi
12701fi
12702
6dcfc289
DE
12703 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12704 unset ac_cv_prog_cxx_g
12705 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12706ac_save_CXXFLAGS=$CXXFLAGS
12707CXXFLAGS="-g"
12708echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12709echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12710if test "${ac_cv_prog_cxx_g+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12712else
12713 cat >conftest.$ac_ext <<_ACEOF
12714/* confdefs.h. */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h. */
12719
12720int
12721main ()
12722{
12723
12724 ;
12725 return 0;
12726}
12727_ACEOF
12728rm -f conftest.$ac_objext
12729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
8c539582 12737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_prog_cxx_g=yes
12750else
12751 echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
12754ac_cv_prog_cxx_g=no
12755fi
12756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12757fi
12758echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12759echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12760if test "$ac_test_CXXFLAGS" = set; then
12761 CXXFLAGS=$ac_save_CXXFLAGS
12762elif test $ac_cv_prog_cxx_g = yes; then
12763 if test "$GXX" = yes; then
52ada004 12764 CXXFLAGS="-g -O2"
480ccd21 12765 else
52ada004 12766 CXXFLAGS="-g"
480ccd21
DE
12767 fi
12768else
12769 if test "$GXX" = yes; then
12770 CXXFLAGS="-O2"
12771 else
12772 CXXFLAGS=
12773 fi
12774fi
6dcfc289
DE
12775 fi
12776 ac_ext=cc
95986553
DE
12777ac_cpp='$CXXCPP $CPPFLAGS'
12778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12781
12782echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12783echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12784if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 cat >conftest.$ac_ext <<_ACEOF
12788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
12793
12794int
12795main ()
12796{
12797#ifndef __MWERKS__
12798 choke me
12799#endif
12800
12801 ;
12802 return 0;
12803}
12804_ACEOF
12805rm -f conftest.$ac_objext
12806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>conftest.er1
12808 ac_status=$?
12809 grep -v '^ *+' conftest.er1 >conftest.err
12810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
8c539582 12814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; } &&
12820 { ac_try='test -s conftest.$ac_objext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 bakefile_compiler_mwerks=yes
12827else
12828 echo "$as_me: failed program was:" >&5
12829sed 's/^/| /' conftest.$ac_ext >&5
12830
12831bakefile_compiler_mwerks=no
12832fi
12833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12834 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12835
12836fi
12837echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12838echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12839
0e6fa1d9 12840MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12841ac_ext=cc
12842ac_cpp='$CXXCPP $CPPFLAGS'
12843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12846
12847
6dcfc289 12848 ac_ext=cc
9273ffba
DE
12849ac_cpp='$CXXCPP $CPPFLAGS'
12850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12853
12854echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12855echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12856if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858else
12859 cat >conftest.$ac_ext <<_ACEOF
12860/* confdefs.h. */
12861_ACEOF
12862cat confdefs.h >>conftest.$ac_ext
12863cat >>conftest.$ac_ext <<_ACEOF
12864/* end confdefs.h. */
12865
12866int
12867main ()
12868{
12869#ifndef __xlC__
12870 choke me
12871#endif
12872
12873 ;
12874 return 0;
12875}
12876_ACEOF
12877rm -f conftest.$ac_objext
12878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12879 (eval $ac_compile) 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
8c539582 12886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888 (eval $ac_try) 2>&5
12889 ac_status=$?
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); }; } &&
12892 { ac_try='test -s conftest.$ac_objext'
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 wx_compiler_xlc=yes
12899else
12900 echo "$as_me: failed program was:" >&5
12901sed 's/^/| /' conftest.$ac_ext >&5
12902
12903wx_compiler_xlc=no
12904fi
12905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12906 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12907
12908fi
12909echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12910echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12911
0e6fa1d9 12912XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12913ac_ext=cc
12914ac_cpp='$CXXCPP $CPPFLAGS'
12915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12918
12919
95986553 12920
6dcfc289 12921
a9e5b1f0
MW
12922 ac_ext=cc
12923ac_cpp='$CXXCPP $CPPFLAGS'
12924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12927
12928 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
12929echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
12930if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12932else
12933 cat >conftest.$ac_ext <<_ACEOF
12934/* confdefs.h. */
12935_ACEOF
12936cat confdefs.h >>conftest.$ac_ext
12937cat >>conftest.$ac_ext <<_ACEOF
12938/* end confdefs.h. */
12939
12940int
12941main ()
12942{
12943
12944 #ifndef __SUNPRO_CC
12945 choke me
12946 #endif
12947
12948 ;
12949 return 0;
12950}
12951_ACEOF
12952rm -f conftest.$ac_objext
12953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954 (eval $ac_compile) 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
8c539582 12961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
12974else
12975 echo "$as_me: failed program was:" >&5
12976sed 's/^/| /' conftest.$ac_ext >&5
12977
12978bakefile_cv_cxx_compiler___SUNPRO_CC=no
12979
12980fi
12981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12982
12983
12984fi
12985echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
12986echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
12987 ac_ext=cc
12988ac_cpp='$CXXCPP $CPPFLAGS'
12989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12992
12993 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
12994 :; SUNCXX=yes
12995 else
12996 :;
12997 fi
12998
12999
13000
13001
a848cd7e
SC
13002ac_ext=c
13003ac_cpp='$CPP $CPPFLAGS'
13004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13006ac_compiler_gnu=$ac_cv_c_compiler_gnu
13007
13008
a848cd7e
SC
13009if test -n "$ac_tool_prefix"; then
13010 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13011set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13012echo "$as_me:$LINENO: checking for $ac_word" >&5
13013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13014if test "${ac_cv_prog_RANLIB+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016else
13017 if test -n "$RANLIB"; then
13018 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13019else
13020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021for as_dir in $PATH
13022do
13023 IFS=$as_save_IFS
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13027 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 break 2
13030 fi
13031done
13032done
13033
13034fi
13035fi
13036RANLIB=$ac_cv_prog_RANLIB
13037if test -n "$RANLIB"; then
13038 echo "$as_me:$LINENO: result: $RANLIB" >&5
13039echo "${ECHO_T}$RANLIB" >&6
13040else
13041 echo "$as_me:$LINENO: result: no" >&5
13042echo "${ECHO_T}no" >&6
13043fi
13044
13045fi
13046if test -z "$ac_cv_prog_RANLIB"; then
13047 ac_ct_RANLIB=$RANLIB
13048 # Extract the first word of "ranlib", so it can be a program name with args.
13049set dummy ranlib; ac_word=$2
13050echo "$as_me:$LINENO: checking for $ac_word" >&5
13051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13052if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13054else
13055 if test -n "$ac_ct_RANLIB"; then
13056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13057else
13058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059for as_dir in $PATH
13060do
13061 IFS=$as_save_IFS
13062 test -z "$as_dir" && as_dir=.
13063 for ac_exec_ext in '' $ac_executable_extensions; do
13064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13065 ac_cv_prog_ac_ct_RANLIB="ranlib"
13066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13067 break 2
13068 fi
13069done
13070done
13071
13072 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13073fi
13074fi
13075ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13076if test -n "$ac_ct_RANLIB"; then
13077 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13078echo "${ECHO_T}$ac_ct_RANLIB" >&6
13079else
13080 echo "$as_me:$LINENO: result: no" >&5
13081echo "${ECHO_T}no" >&6
13082fi
13083
13084 RANLIB=$ac_ct_RANLIB
13085else
13086 RANLIB="$ac_cv_prog_RANLIB"
13087fi
13088
13089
13090# Extract the first word of "ar", so it can be a program name with args.
13091set dummy ar; ac_word=$2
13092echo "$as_me:$LINENO: checking for $ac_word" >&5
13093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13094if test "${ac_cv_prog_AR+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13096else
13097 if test -n "$AR"; then
13098 ac_cv_prog_AR="$AR" # Let the user override the test.
13099else
13100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in $PATH
13102do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13107 ac_cv_prog_AR="ar"
13108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13110 fi
13111done
13112done
13113
13114fi
13115fi
13116AR=$ac_cv_prog_AR
13117if test -n "$AR"; then
13118 echo "$as_me:$LINENO: result: $AR" >&5
13119echo "${ECHO_T}$AR" >&6
13120else
13121 echo "$as_me:$LINENO: result: no" >&5
13122echo "${ECHO_T}no" >&6
13123fi
13124
13125if test "x$AR" = "x" ; then
77ffb593
JS
13126 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13127echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13128 { (exit 1); exit 1; }; }
13129fi
13130
13131# Find a good install program. We prefer a C program (faster),
13132# so one script is as good as another. But avoid the broken or
13133# incompatible versions:
13134# SysV /etc/install, /usr/sbin/install
13135# SunOS /usr/etc/install
13136# IRIX /sbin/install
13137# AIX /bin/install
13138# AmigaOS /C/install, which installs bootblocks on floppy discs
13139# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13140# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13141# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13142# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13143# ./install, which can be erroneously created by make from ./install.sh.
13144echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13145echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13146if test -z "$INSTALL"; then
13147if test "${ac_cv_path_install+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149else
13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151for as_dir in $PATH
13152do
13153 IFS=$as_save_IFS
13154 test -z "$as_dir" && as_dir=.
13155 # Account for people who put trailing slashes in PATH elements.
13156case $as_dir/ in
13157 ./ | .// | /cC/* | \
13158 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13159 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13160 /usr/ucb/* ) ;;
13161 *)
13162 # OSF1 and SCO ODT 3.0 have their own names for install.
13163 # Don't use installbsd from OSF since it installs stuff as root
13164 # by default.
13165 for ac_prog in ginstall scoinst install; do
13166 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13167 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13168 if test $ac_prog = install &&
13169 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13170 # AIX install. It has an incompatible calling convention.
13171 :
13172 elif test $ac_prog = install &&
13173 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13174 # program-specific install script used by HP pwplus--don't use.
13175 :
13176 else
13177 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13178 break 3
13179 fi
13180 fi
a848cd7e
SC
13181 done
13182 done
13183 ;;
13184esac
13185done
13186
13187
13188fi
13189 if test "${ac_cv_path_install+set}" = set; then
13190 INSTALL=$ac_cv_path_install
13191 else
13192 # As a last resort, use the slow shell script. We don't cache a
13193 # path for INSTALL within a source directory, because that will
13194 # break other packages using the cache if that directory is
13195 # removed, or if the path is relative.
13196 INSTALL=$ac_install_sh
13197 fi
13198fi
13199echo "$as_me:$LINENO: result: $INSTALL" >&5
13200echo "${ECHO_T}$INSTALL" >&6
13201
13202# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13203# It thinks the first close brace ends the variable substitution.
13204test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13205
13206test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13207
13208test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13209
13210
13211case ${INSTALL} in
13212 /* ) # Absolute
13213 ;;
13214 ?:* ) # Drive letter, considered as absolute.
13215 ;;
13216 *)
13217 INSTALL=`pwd`/${INSTALL} ;;
13218esac
13219
a848cd7e
SC
13220
13221case "${host}" in
13222
13223 powerpc-*-darwin* )
13224 INSTALL_PROGRAM="cp -fp"
13225 INSTALL_DATA="cp -fp"
13226 ;;
13227 *)
13228 ;;
13229esac
13230
13231# Extract the first word of "strip", so it can be a program name with args.
13232set dummy strip; ac_word=$2
13233echo "$as_me:$LINENO: checking for $ac_word" >&5
13234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13235if test "${ac_cv_prog_STRIP+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237else
13238 if test -n "$STRIP"; then
13239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13240else
13241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $PATH
13243do
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13248 ac_cv_prog_STRIP="strip"
13249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 break 2
13251 fi
13252done
13253done
13254
13255 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13256fi
13257fi
13258STRIP=$ac_cv_prog_STRIP
13259if test -n "$STRIP"; then
13260 echo "$as_me:$LINENO: result: $STRIP" >&5
13261echo "${ECHO_T}$STRIP" >&6
13262else
13263 echo "$as_me:$LINENO: result: no" >&5
13264echo "${ECHO_T}no" >&6
13265fi
13266
13267
13268echo "$as_me:$LINENO: checking if make is GNU make" >&5
13269echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13270if test "${wx_cv_prog_makeisgnu+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272else
13273
13274 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13275 egrep -s GNU > /dev/null); then
13276 wx_cv_prog_makeisgnu="yes"
13277 else
13278 wx_cv_prog_makeisgnu="no"
13279 fi
13280
13281fi
13282echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13283echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13284
13285if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13286 IF_GNU_MAKE=""
13287else
13288 IF_GNU_MAKE="#"
13289fi
13290
13291
13292
13293if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13294echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13295echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13296if test "${wx_cv_prog_makevpath+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13298else
13299
13300cat - << EOF > confMake
13301check : file
13302 cp \$? \$@
13303 cp \$? final_file
13304EOF
13305
13306if test ! -d sub ; then
13307 mkdir sub
13308fi
13309echo dummy > sub/file
13310${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13311RESULT=$?
13312rm -f sub/file check final_file confMake
13313rmdir sub
13314if test "$RESULT" = 0; then
13315 wx_cv_prog_makevpath="yes"
13316else
13317 wx_cv_prog_makevpath="no"
13318fi
13319
13320fi
13321echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13322echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13323
13324if test "x$wx_cv_prog_makevpath" != "xyes"; then
13325{ { echo "$as_me:$LINENO: error:
13326You need a make-utility that is able to use the variable
13327VPATH correctly.
13328If your version of make does not support VPATH correctly,
13329please install GNU-make (possibly as gmake), and start
13330configure with the following command:
13331export MAKE=gmake; ./configure for sh-type shells
13332setenv MAKE gmake; ./configure for csh-type shells
13333Also please do remember to use gmake in this case every time
13334you are trying to compile.
13335" >&5
13336echo "$as_me: error:
13337You need a make-utility that is able to use the variable
13338VPATH correctly.
13339If your version of make does not support VPATH correctly,
13340please install GNU-make (possibly as gmake), and start
13341configure with the following command:
13342export MAKE=gmake; ./configure for sh-type shells
13343setenv MAKE gmake; ./configure for csh-type shells
13344Also please do remember to use gmake in this case every time
13345you are trying to compile.
13346" >&2;}
13347 { (exit 1); exit 1; }; }
13348fi fi
13349echo "$as_me:$LINENO: checking whether ln -s works" >&5
13350echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13351LN_S=$as_ln_s
13352if test "$LN_S" = "ln -s"; then
13353 echo "$as_me:$LINENO: result: yes" >&5
13354echo "${ECHO_T}yes" >&6
13355else
13356 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13357echo "${ECHO_T}no, using $LN_S" >&6
13358fi
13359
13360
13361
9273ffba
DE
13362if test "x$XLCXX" = "xyes"; then
13363 CXXFLAGS="$CXXFLAGS -qunique"
13364fi
13365
13366
4d7ec9f1
DE
13367case "${host}" in
13368 powerpc-*-darwin* )
13369 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13370echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13371 cat >conftest.$ac_ext <<_ACEOF
13372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h. */
13377
13378int
13379main ()
13380{
13381#ifndef __POWERPC__
13382 choke me for lack of PowerPC
13383#endif
13384
13385 ;
13386 return 0;
13387}
13388_ACEOF
13389rm -f conftest.$ac_objext
13390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13391 (eval $ac_compile) 2>conftest.er1
13392 ac_status=$?
13393 grep -v '^ *+' conftest.er1 >conftest.err
13394 rm -f conftest.er1
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
8c539582 13398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; } &&
13404 { ac_try='test -s conftest.$ac_objext'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
13410 echo "$as_me:$LINENO: result: yes" >&5
13411echo "${ECHO_T}yes" >&6
13412else
13413 echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
13416echo "$as_me:$LINENO: result: no" >&5
13417echo "${ECHO_T}no" >&6
13418 cat >>confdefs.h <<\_ACEOF
13419#define __POWERPC__ 1
13420_ACEOF
13421
13422
13423fi
13424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13425 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13426echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13427 cat >conftest.$ac_ext <<_ACEOF
13428/* confdefs.h. */
13429_ACEOF
13430cat confdefs.h >>conftest.$ac_ext
13431cat >>conftest.$ac_ext <<_ACEOF
13432/* end confdefs.h. */
13433#include <CoreFoundation/CFBase.h>
13434
13435int
13436main ()
13437{
13438
13439 ;
13440 return 0;
13441}
13442_ACEOF
13443rm -f conftest.$ac_objext
13444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13445 (eval $ac_compile) 2>conftest.er1
13446 ac_status=$?
13447 grep -v '^ *+' conftest.er1 >conftest.err
13448 rm -f conftest.er1
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
8c539582 13452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; } &&
13458 { ac_try='test -s conftest.$ac_objext'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13461 ac_status=$?
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; }; then
13464 echo "$as_me:$LINENO: result: yes" >&5
13465echo "${ECHO_T}yes" >&6
13466else
13467 echo "$as_me: failed program was:" >&5
13468sed 's/^/| /' conftest.$ac_ext >&5
13469
13470echo "$as_me:$LINENO: result: no" >&5
13471echo "${ECHO_T}no" >&6
13472 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13473echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13474 cat >conftest.$ac_ext <<_ACEOF
13475/* confdefs.h. */
13476_ACEOF
13477cat confdefs.h >>conftest.$ac_ext
13478cat >>conftest.$ac_ext <<_ACEOF
13479/* end confdefs.h. */
13480#define __CF_USE_FRAMEWORK_INCLUDES__
13481#include <CoreFoundation/CFBase.h>
13482
13483int
13484main ()
13485{
13486
13487 ;
13488 return 0;
13489}
13490_ACEOF
13491rm -f conftest.$ac_objext
13492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
8c539582 13500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13503 ac_status=$?
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 echo "$as_me:$LINENO: result: yes" >&5
13513echo "${ECHO_T}yes" >&6
13514 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13515else
13516 echo "$as_me: failed program was:" >&5
13517sed 's/^/| /' conftest.$ac_ext >&5
13518
13519{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13520See \`config.log' for more details." >&5
13521echo "$as_me: error: no. CoreFoundation not available.
13522See \`config.log' for more details." >&2;}
13523 { (exit 1); exit 1; }; }
13524
13525fi
13526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13527
13528
13529fi
13530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13531 ;;
13532esac
13533
a848cd7e
SC
13534case "${host}" in
13535 *-pc-os2_emx | *-pc-os2-emx )
13536 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13537 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13538echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13539if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541else
13542 ac_check_lib_save_LIBS=$LIBS
13543LIBS="-lcExt $LIBS"
13544cat >conftest.$ac_ext <<_ACEOF
13545/* confdefs.h. */
13546_ACEOF
13547cat confdefs.h >>conftest.$ac_ext
13548cat >>conftest.$ac_ext <<_ACEOF
13549/* end confdefs.h. */
13550
13551/* Override any gcc2 internal prototype to avoid an error. */
13552#ifdef __cplusplus
13553extern "C"
13554#endif
13555/* We use char because int might match the return type of a gcc2
13556 builtin and then its argument prototype would still apply. */
13557char drand48 ();
13558int
13559main ()
13560{
13561drand48 ();
13562 ;
13563 return 0;
13564}
13565_ACEOF
13566rm -f conftest.$ac_objext conftest$ac_exeext
13567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13568 (eval $ac_link) 2>conftest.er1
a848cd7e 13569 ac_status=$?
ac1cb8d3
VS
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
a848cd7e
SC
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
8c539582 13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_cv_lib_cExt_drand48=yes
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592ac_cv_lib_cExt_drand48=no
13593fi
ac1cb8d3
VS
13594rm -f conftest.err conftest.$ac_objext \
13595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13596LIBS=$ac_check_lib_save_LIBS
13597fi
13598echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13599echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13600if test $ac_cv_lib_cExt_drand48 = yes; then
13601 LIBS="$LIBS -lcExt"
13602fi
13603
13604 else
13605 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13606 fi
69120ee4
VZ
13607 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13608echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13609if test "${wx_cv_gccversion+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611else
13612
391a765e
VS
13613 if test "$cross_compiling" = yes; then
13614 wx_cv_gccversion="EMX2"
13615
13616else
13617 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13618/* confdefs.h. */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h. */
13623
391a765e 13624 #include <stdio.h>
a848cd7e 13625
391a765e
VS
13626 int main()
13627 {
13628 FILE *f=fopen("conftestval", "w");
13629 if (!f) exit(1);
13630 fprintf(f,
a848cd7e 13631 #if (__GNUC__ < 3)
391a765e
VS
13632 "EMX2"
13633 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13634 "EMX3"
13635 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13636 "Innotek5"
13637 #else
13638 "Innotek6"
a848cd7e 13639 #endif
391a765e
VS
13640 );
13641 exit(0);
13642 }
a848cd7e 13643
a848cd7e 13644_ACEOF
391a765e
VS
13645rm -f conftest$ac_exeext
13646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13647 (eval $ac_link) 2>&5
ac1cb8d3
VS
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
391a765e 13656 wx_cv_gccversion=`cat conftestval`
a848cd7e 13657else
391a765e
VS
13658 echo "$as_me: program exited with status $ac_status" >&5
13659echo "$as_me: failed program was:" >&5
a848cd7e
SC
13660sed 's/^/| /' conftest.$ac_ext >&5
13661
391a765e
VS
13662( exit $ac_status )
13663wx_cv_gccversion="EMX2"
a848cd7e 13664fi
391a765e 13665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13666fi
a848cd7e
SC
13667
13668fi
13669echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13670echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13671 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13672 LIBS="$LIBS -lstdcpp"
13673 LDFLAGS="$LDFLAGS -Zsysv-signals"
13674 else
391a765e 13675 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13676 LIBS="$LIBS -lstdcxx"
13677 LDFLAGS="$LDFLAGS -Zsysv-signals"
13678 else
13679 LIBS="$LIBS -lstdc++"
13680 fi
13681 fi
94acd38e
DE
13682 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13683 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13684echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13685 wxUSE_OMF=yes
2da0c077 13686 enable_omf=yes
a848cd7e
SC
13687 fi
13688 ;;
13689 *)
13690
13691
13692
13693 ac_ext=cc
13694ac_cpp='$CXXCPP $CPPFLAGS'
13695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13698
13699
95986553 13700 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13701echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13702if test "${ac_cv_string_strcasecmp+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13704else
13705
13706 cat >conftest.$ac_ext <<_ACEOF
13707/* confdefs.h. */
13708_ACEOF
13709cat confdefs.h >>conftest.$ac_ext
13710cat >>conftest.$ac_ext <<_ACEOF
13711/* end confdefs.h. */
13712
13713 #include <string.h>
13714
13715int
13716main ()
13717{
13718
13719 strcasecmp("foo", "bar");
13720
13721 ;
13722 return 0;
13723}
13724_ACEOF
13725rm -f conftest.$ac_objext conftest$ac_exeext
13726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13727 (eval $ac_link) 2>conftest.er1
a848cd7e 13728 ac_status=$?
ac1cb8d3
VS
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
a848cd7e
SC
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
8c539582 13734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; } &&
13740 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 ac_cv_string_strcasecmp=yes
13747else
13748 echo "$as_me: failed program was:" >&5
13749sed 's/^/| /' conftest.$ac_ext >&5
13750
13751ac_cv_string_strcasecmp=no
13752
13753fi
ac1cb8d3
VS
13754rm -f conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13756
13757fi
13758echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13759echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13760
13761 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13762 cat >>confdefs.h <<\_ACEOF
13763#define HAVE_STRCASECMP_IN_STRING_H 1
13764_ACEOF
13765
13766 else
13767 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13768echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13769if test "${ac_cv_strings_strcasecmp+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771else
13772
13773 cat >conftest.$ac_ext <<_ACEOF
13774/* confdefs.h. */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h. */
13779
13780 #include <strings.h>
13781
13782int
13783main ()
13784{
13785
13786 strcasecmp("foo", "bar");
13787
13788 ;
13789 return 0;
13790}
13791_ACEOF
13792rm -f conftest.$ac_objext conftest$ac_exeext
13793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13794 (eval $ac_link) 2>conftest.er1
a848cd7e 13795 ac_status=$?
ac1cb8d3
VS
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
a848cd7e
SC
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
8c539582 13801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; } &&
13807 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 ac_cv_strings_strcasecmp=yes
13814else
13815 echo "$as_me: failed program was:" >&5
13816sed 's/^/| /' conftest.$ac_ext >&5
13817
13818ac_cv_strings_strcasecmp=no
13819
13820fi
ac1cb8d3
VS
13821rm -f conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13823
13824fi
13825echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13826echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13827
0c3c69fc 13828 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13829 cat >>confdefs.h <<\_ACEOF
13830#define HAVE_STRCASECMP_IN_STRINGS_H 1
13831_ACEOF
13832
13833 else
13834 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13835echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13836 { (exit 1); exit 1; }; }
13837 fi
13838 fi
13839
13840 ac_ext=c
13841ac_cpp='$CPP $CPPFLAGS'
13842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13844ac_compiler_gnu=$ac_cv_c_compiler_gnu
13845
13846 ;;
13847esac
13848
13849
13850echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13851echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13852if test "${ac_cv_header_stdc+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13854else
13855 cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
13861#include <stdlib.h>
13862#include <stdarg.h>
13863#include <string.h>
13864#include <float.h>
13865
13866int
13867main ()
13868{
13869
13870 ;
13871 return 0;
13872}
13873_ACEOF
13874rm -f conftest.$ac_objext
13875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13876 (eval $ac_compile) 2>conftest.er1
a848cd7e 13877 ac_status=$?
ac1cb8d3
VS
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
a848cd7e
SC
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } &&
8c539582 13883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13886 ac_status=$?
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; } &&
13889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13895 ac_cv_header_stdc=yes
13896else
13897 echo "$as_me: failed program was:" >&5
13898sed 's/^/| /' conftest.$ac_ext >&5
13899
13900ac_cv_header_stdc=no
13901fi
ac1cb8d3 13902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13903
13904if test $ac_cv_header_stdc = yes; then
13905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13906 cat >conftest.$ac_ext <<_ACEOF
13907/* confdefs.h. */
13908_ACEOF
13909cat confdefs.h >>conftest.$ac_ext
13910cat >>conftest.$ac_ext <<_ACEOF
13911/* end confdefs.h. */
13912#include <string.h>
13913
13914_ACEOF
13915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13916 $EGREP "memchr" >/dev/null 2>&1; then
13917 :
13918else
13919 ac_cv_header_stdc=no
13920fi
13921rm -f conftest*
13922
13923fi
13924
13925if test $ac_cv_header_stdc = yes; then
13926 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13927 cat >conftest.$ac_ext <<_ACEOF
13928/* confdefs.h. */
13929_ACEOF
13930cat confdefs.h >>conftest.$ac_ext
13931cat >>conftest.$ac_ext <<_ACEOF
13932/* end confdefs.h. */
13933#include <stdlib.h>
13934
13935_ACEOF
13936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13937 $EGREP "free" >/dev/null 2>&1; then
13938 :
13939else
13940 ac_cv_header_stdc=no
13941fi
13942rm -f conftest*
13943
13944fi
13945
13946if test $ac_cv_header_stdc = yes; then
13947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13948 if test "$cross_compiling" = yes; then
13949 :
13950else
13951 cat >conftest.$ac_ext <<_ACEOF
13952/* confdefs.h. */
13953_ACEOF
13954cat confdefs.h >>conftest.$ac_ext
13955cat >>conftest.$ac_ext <<_ACEOF
13956/* end confdefs.h. */
13957#include <ctype.h>
13958#if ((' ' & 0x0FF) == 0x020)
13959# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13960# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13961#else
13962# define ISLOWER(c) \
ac1cb8d3
VS
13963 (('a' <= (c) && (c) <= 'i') \
13964 || ('j' <= (c) && (c) <= 'r') \
13965 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13966# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13967#endif
13968
13969#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13970int
13971main ()
13972{
13973 int i;
13974 for (i = 0; i < 256; i++)
13975 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13976 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13977 exit(2);
13978 exit (0);
13979}
13980_ACEOF
13981rm -f conftest$ac_exeext
13982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }; then
13992 :
13993else
13994 echo "$as_me: program exited with status $ac_status" >&5
13995echo "$as_me: failed program was:" >&5
13996sed 's/^/| /' conftest.$ac_ext >&5
13997
13998( exit $ac_status )
13999ac_cv_header_stdc=no
14000fi
ac1cb8d3 14001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14002fi
14003fi
14004fi
14005echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14006echo "${ECHO_T}$ac_cv_header_stdc" >&6
14007if test $ac_cv_header_stdc = yes; then
14008
14009cat >>confdefs.h <<\_ACEOF
14010#define STDC_HEADERS 1
14011_ACEOF
14012
14013fi
14014
14015# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14026 inttypes.h stdint.h unistd.h
a848cd7e
SC
14027do
14028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14029echo "$as_me:$LINENO: checking for $ac_header" >&5
14030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14031if eval "test \"\${$as_ac_Header+set}\" = set"; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033else
14034 cat >conftest.$ac_ext <<_ACEOF
14035/* confdefs.h. */
14036_ACEOF
14037cat confdefs.h >>conftest.$ac_ext
14038cat >>conftest.$ac_ext <<_ACEOF
14039/* end confdefs.h. */
14040$ac_includes_default
14041
14042#include <$ac_header>
14043_ACEOF
14044rm -f conftest.$ac_objext
14045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14046 (eval $ac_compile) 2>conftest.er1
a848cd7e 14047 ac_status=$?
ac1cb8d3
VS
14048 grep -v '^ *+' conftest.er1 >conftest.err
14049 rm -f conftest.er1
14050 cat conftest.err >&5
a848cd7e
SC
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
8c539582 14053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14062 ac_status=$?
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14065 eval "$as_ac_Header=yes"
14066else
14067 echo "$as_me: failed program was:" >&5
14068sed 's/^/| /' conftest.$ac_ext >&5
14069
14070eval "$as_ac_Header=no"
14071fi
ac1cb8d3 14072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14073fi
14074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14076if test `eval echo '${'$as_ac_Header'}'` = yes; then
14077 cat >>confdefs.h <<_ACEOF
14078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14079_ACEOF
14080
14081fi
14082
14083done
14084
14085
14086
14087for ac_header in stdlib.h
14088do
14089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14090if eval "test \"\${$as_ac_Header+set}\" = set"; then
14091 echo "$as_me:$LINENO: checking for $ac_header" >&5
14092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14093if eval "test \"\${$as_ac_Header+set}\" = set"; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095fi
14096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14098else
14099 # Is the header compilable?
14100echo "$as_me:$LINENO: checking $ac_header usability" >&5
14101echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14102cat >conftest.$ac_ext <<_ACEOF
14103/* confdefs.h. */
14104_ACEOF
14105cat confdefs.h >>conftest.$ac_ext
14106cat >>conftest.$ac_ext <<_ACEOF
14107/* end confdefs.h. */
14108$ac_includes_default
14109#include <$ac_header>
14110_ACEOF
14111rm -f conftest.$ac_objext
14112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14113 (eval $ac_compile) 2>conftest.er1
a848cd7e 14114 ac_status=$?
ac1cb8d3
VS
14115 grep -v '^ *+' conftest.er1 >conftest.err
14116 rm -f conftest.er1
14117 cat conftest.err >&5
a848cd7e
SC
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
8c539582 14120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; } &&
14126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_header_compiler=yes
14133else
14134 echo "$as_me: failed program was:" >&5
14135sed 's/^/| /' conftest.$ac_ext >&5
14136
14137ac_header_compiler=no
14138fi
ac1cb8d3 14139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14141echo "${ECHO_T}$ac_header_compiler" >&6
14142
14143# Is the header present?
14144echo "$as_me:$LINENO: checking $ac_header presence" >&5
14145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14146cat >conftest.$ac_ext <<_ACEOF
14147/* confdefs.h. */
14148_ACEOF
14149cat confdefs.h >>conftest.$ac_ext
14150cat >>conftest.$ac_ext <<_ACEOF
14151/* end confdefs.h. */
14152#include <$ac_header>
14153_ACEOF
14154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14156 ac_status=$?
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } >/dev/null; then
14162 if test -s conftest.err; then
14163 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14165 else
14166 ac_cpp_err=
14167 fi
14168else
14169 ac_cpp_err=yes
14170fi
14171if test -z "$ac_cpp_err"; then
14172 ac_header_preproc=yes
14173else
14174 echo "$as_me: failed program was:" >&5
14175sed 's/^/| /' conftest.$ac_ext >&5
14176
14177 ac_header_preproc=no
14178fi
14179rm -f conftest.err conftest.$ac_ext
14180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14181echo "${ECHO_T}$ac_header_preproc" >&6
14182
14183# So? What about this header?
ac1cb8d3
VS
14184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14185 yes:no: )
a848cd7e
SC
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14189echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14190 ac_header_preproc=yes
a848cd7e 14191 ;;
ac1cb8d3 14192 no:yes:* )
a848cd7e
SC
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14194echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14196echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14198echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14200echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14204echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14205 (
14206 cat <<\_ASBOX
ac1cb8d3
VS
14207## ----------------------------------------- ##
14208## Report this to wx-dev@lists.wxwidgets.org ##
14209## ----------------------------------------- ##
a848cd7e
SC
14210_ASBOX
14211 ) |
14212 sed "s/^/$as_me: WARNING: /" >&2
14213 ;;
14214esac
14215echo "$as_me:$LINENO: checking for $ac_header" >&5
14216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14217if eval "test \"\${$as_ac_Header+set}\" = set"; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219else
ac1cb8d3 14220 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14221fi
14222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14224
14225fi
14226if test `eval echo '${'$as_ac_Header'}'` = yes; then
14227 cat >>confdefs.h <<_ACEOF
14228#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14229_ACEOF
14230
14231fi
14232
14233done
14234
14235
14236for ac_header in malloc.h
14237do
14238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14239if eval "test \"\${$as_ac_Header+set}\" = set"; then
14240 echo "$as_me:$LINENO: checking for $ac_header" >&5
14241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14242if eval "test \"\${$as_ac_Header+set}\" = set"; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244fi
14245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14247else
14248 # Is the header compilable?
14249echo "$as_me:$LINENO: checking $ac_header usability" >&5
14250echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14251cat >conftest.$ac_ext <<_ACEOF
14252/* confdefs.h. */
14253_ACEOF
14254cat confdefs.h >>conftest.$ac_ext
14255cat >>conftest.$ac_ext <<_ACEOF
14256/* end confdefs.h. */
14257$ac_includes_default
14258#include <$ac_header>
14259_ACEOF
14260rm -f conftest.$ac_objext
14261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14262 (eval $ac_compile) 2>conftest.er1
a848cd7e 14263 ac_status=$?
ac1cb8d3
VS
14264 grep -v '^ *+' conftest.er1 >conftest.err
14265 rm -f conftest.er1
14266 cat conftest.err >&5
a848cd7e
SC
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
8c539582 14269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; } &&
14275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_header_compiler=yes
14282else
14283 echo "$as_me: failed program was:" >&5
14284sed 's/^/| /' conftest.$ac_ext >&5
14285
14286ac_header_compiler=no
14287fi
ac1cb8d3 14288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14290echo "${ECHO_T}$ac_header_compiler" >&6
14291
14292# Is the header present?
14293echo "$as_me:$LINENO: checking $ac_header presence" >&5
14294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14295cat >conftest.$ac_ext <<_ACEOF
14296/* confdefs.h. */
14297_ACEOF
14298cat confdefs.h >>conftest.$ac_ext
14299cat >>conftest.$ac_ext <<_ACEOF
14300/* end confdefs.h. */
14301#include <$ac_header>
14302_ACEOF
14303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14305 ac_status=$?
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } >/dev/null; then
14311 if test -s conftest.err; then
14312 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14314 else
14315 ac_cpp_err=
14316 fi
14317else
14318 ac_cpp_err=yes
14319fi
14320if test -z "$ac_cpp_err"; then
14321 ac_header_preproc=yes
14322else
14323 echo "$as_me: failed program was:" >&5
14324sed 's/^/| /' conftest.$ac_ext >&5
14325
14326 ac_header_preproc=no
14327fi
14328rm -f conftest.err conftest.$ac_ext
14329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14330echo "${ECHO_T}$ac_header_preproc" >&6
14331
14332# So? What about this header?
ac1cb8d3
VS
14333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14334 yes:no: )
a848cd7e
SC
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14339 ac_header_preproc=yes
a848cd7e 14340 ;;
ac1cb8d3 14341 no:yes:* )
a848cd7e
SC
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14349echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14354 (
14355 cat <<\_ASBOX
ac1cb8d3
VS
14356## ----------------------------------------- ##
14357## Report this to wx-dev@lists.wxwidgets.org ##
14358## ----------------------------------------- ##
a848cd7e
SC
14359_ASBOX
14360 ) |
14361 sed "s/^/$as_me: WARNING: /" >&2
14362 ;;
14363esac
14364echo "$as_me:$LINENO: checking for $ac_header" >&5
14365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14366if eval "test \"\${$as_ac_Header+set}\" = set"; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14368else
ac1cb8d3 14369 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14370fi
14371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14373
14374fi
14375if test `eval echo '${'$as_ac_Header'}'` = yes; then
14376 cat >>confdefs.h <<_ACEOF
14377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14378_ACEOF
14379
14380fi
14381
14382done
14383
14384
14385for ac_header in unistd.h
14386do
14387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14388if eval "test \"\${$as_ac_Header+set}\" = set"; then
14389 echo "$as_me:$LINENO: checking for $ac_header" >&5
14390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14391if eval "test \"\${$as_ac_Header+set}\" = set"; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14393fi
14394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14396else
14397 # Is the header compilable?
14398echo "$as_me:$LINENO: checking $ac_header usability" >&5
14399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14400cat >conftest.$ac_ext <<_ACEOF
14401/* confdefs.h. */
14402_ACEOF
14403cat confdefs.h >>conftest.$ac_ext
14404cat >>conftest.$ac_ext <<_ACEOF
14405/* end confdefs.h. */
14406$ac_includes_default
14407#include <$ac_header>
14408_ACEOF
14409rm -f conftest.$ac_objext
14410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14411 (eval $ac_compile) 2>conftest.er1
a848cd7e 14412 ac_status=$?
ac1cb8d3
VS
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
a848cd7e
SC
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
8c539582 14418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_header_compiler=yes
14431else
14432 echo "$as_me: failed program was:" >&5
14433sed 's/^/| /' conftest.$ac_ext >&5
14434
14435ac_header_compiler=no
14436fi
ac1cb8d3 14437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14439echo "${ECHO_T}$ac_header_compiler" >&6
14440
14441# Is the header present?
14442echo "$as_me:$LINENO: checking $ac_header presence" >&5
14443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14444cat >conftest.$ac_ext <<_ACEOF
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450#include <$ac_header>
14451_ACEOF
14452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14454 ac_status=$?
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } >/dev/null; then
14460 if test -s conftest.err; then
14461 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14463 else
14464 ac_cpp_err=
14465 fi
14466else
14467 ac_cpp_err=yes
14468fi
14469if test -z "$ac_cpp_err"; then
14470 ac_header_preproc=yes
14471else
14472 echo "$as_me: failed program was:" >&5
14473sed 's/^/| /' conftest.$ac_ext >&5
14474
14475 ac_header_preproc=no
14476fi
14477rm -f conftest.err conftest.$ac_ext
14478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14479echo "${ECHO_T}$ac_header_preproc" >&6
14480
14481# So? What about this header?
ac1cb8d3
VS
14482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14483 yes:no: )
a848cd7e
SC
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14488 ac_header_preproc=yes
a848cd7e 14489 ;;
ac1cb8d3 14490 no:yes:* )
a848cd7e
SC
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14503 (
14504 cat <<\_ASBOX
ac1cb8d3
VS
14505## ----------------------------------------- ##
14506## Report this to wx-dev@lists.wxwidgets.org ##
14507## ----------------------------------------- ##
a848cd7e
SC
14508_ASBOX
14509 ) |
14510 sed "s/^/$as_me: WARNING: /" >&2
14511 ;;
14512esac
14513echo "$as_me:$LINENO: checking for $ac_header" >&5
14514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14515if eval "test \"\${$as_ac_Header+set}\" = set"; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517else
ac1cb8d3 14518 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14519fi
14520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14522
14523fi
14524if test `eval echo '${'$as_ac_Header'}'` = yes; then
14525 cat >>confdefs.h <<_ACEOF
14526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14527_ACEOF
14528
14529fi
14530
14531done
14532
14533
14534for ac_header in wchar.h
14535do
14536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14537if eval "test \"\${$as_ac_Header+set}\" = set"; then
14538 echo "$as_me:$LINENO: checking for $ac_header" >&5
14539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14540if eval "test \"\${$as_ac_Header+set}\" = set"; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542fi
14543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14545else
14546 # Is the header compilable?
14547echo "$as_me:$LINENO: checking $ac_header usability" >&5
14548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14549cat >conftest.$ac_ext <<_ACEOF
14550/* confdefs.h. */
14551_ACEOF
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h. */
14555$ac_includes_default
14556#include <$ac_header>
14557_ACEOF
14558rm -f conftest.$ac_objext
14559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14560 (eval $ac_compile) 2>conftest.er1
a848cd7e 14561 ac_status=$?
ac1cb8d3
VS
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
a848cd7e
SC
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
8c539582 14567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_header_compiler=yes
14580else
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584ac_header_compiler=no
14585fi
ac1cb8d3 14586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14587echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14588echo "${ECHO_T}$ac_header_compiler" >&6
14589
14590# Is the header present?
14591echo "$as_me:$LINENO: checking $ac_header presence" >&5
14592echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14593cat >conftest.$ac_ext <<_ACEOF
14594/* confdefs.h. */
14595_ACEOF
14596cat confdefs.h >>conftest.$ac_ext
14597cat >>conftest.$ac_ext <<_ACEOF
14598/* end confdefs.h. */
14599#include <$ac_header>
14600_ACEOF
14601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } >/dev/null; then
14609 if test -s conftest.err; then
14610 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14612 else
14613 ac_cpp_err=
14614 fi
14615else
14616 ac_cpp_err=yes
14617fi
14618if test -z "$ac_cpp_err"; then
14619 ac_header_preproc=yes
14620else
14621 echo "$as_me: failed program was:" >&5
14622sed 's/^/| /' conftest.$ac_ext >&5
14623
14624 ac_header_preproc=no
14625fi
14626rm -f conftest.err conftest.$ac_ext
14627echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14628echo "${ECHO_T}$ac_header_preproc" >&6
14629
14630# So? What about this header?
ac1cb8d3
VS
14631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14632 yes:no: )
a848cd7e
SC
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14637 ac_header_preproc=yes
a848cd7e 14638 ;;
ac1cb8d3 14639 no:yes:* )
a848cd7e
SC
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14652 (
14653 cat <<\_ASBOX
ac1cb8d3
VS
14654## ----------------------------------------- ##
14655## Report this to wx-dev@lists.wxwidgets.org ##
14656## ----------------------------------------- ##
a848cd7e
SC
14657_ASBOX
14658 ) |
14659 sed "s/^/$as_me: WARNING: /" >&2
14660 ;;
14661esac
14662echo "$as_me:$LINENO: checking for $ac_header" >&5
14663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14664if eval "test \"\${$as_ac_Header+set}\" = set"; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14666else
ac1cb8d3 14667 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14668fi
14669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14671
14672fi
14673if test `eval echo '${'$as_ac_Header'}'` = yes; then
14674 cat >>confdefs.h <<_ACEOF
14675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14676_ACEOF
14677
14678fi
14679
14680done
14681
14682
14683if test "$ac_cv_header_wchar_h" != "yes"; then
14684
14685for ac_header in wcstr.h
14686do
14687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14688if eval "test \"\${$as_ac_Header+set}\" = set"; then
14689 echo "$as_me:$LINENO: checking for $ac_header" >&5
14690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14691if eval "test \"\${$as_ac_Header+set}\" = set"; then
14692 echo $ECHO_N "(cached) $ECHO_C" >&6
14693fi
14694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14696else
14697 # Is the header compilable?
14698echo "$as_me:$LINENO: checking $ac_header usability" >&5
14699echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14700cat >conftest.$ac_ext <<_ACEOF
14701/* confdefs.h. */
14702_ACEOF
14703cat confdefs.h >>conftest.$ac_ext
14704cat >>conftest.$ac_ext <<_ACEOF
14705/* end confdefs.h. */
14706$ac_includes_default
14707#include <$ac_header>
14708_ACEOF
14709rm -f conftest.$ac_objext
14710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14711 (eval $ac_compile) 2>conftest.er1
a848cd7e 14712 ac_status=$?
ac1cb8d3
VS
14713 grep -v '^ *+' conftest.er1 >conftest.err
14714 rm -f conftest.er1
14715 cat conftest.err >&5
a848cd7e
SC
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
8c539582 14718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 ac_header_compiler=yes
14731else
14732 echo "$as_me: failed program was:" >&5
14733sed 's/^/| /' conftest.$ac_ext >&5
14734
14735ac_header_compiler=no
14736fi
ac1cb8d3 14737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14739echo "${ECHO_T}$ac_header_compiler" >&6
14740
14741# Is the header present?
14742echo "$as_me:$LINENO: checking $ac_header presence" >&5
14743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14744cat >conftest.$ac_ext <<_ACEOF
14745/* confdefs.h. */
14746_ACEOF
14747cat confdefs.h >>conftest.$ac_ext
14748cat >>conftest.$ac_ext <<_ACEOF
14749/* end confdefs.h. */
14750#include <$ac_header>
14751_ACEOF
14752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14754 ac_status=$?
14755 grep -v '^ *+' conftest.er1 >conftest.err
14756 rm -f conftest.er1
14757 cat conftest.err >&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } >/dev/null; then
14760 if test -s conftest.err; then
14761 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14763 else
14764 ac_cpp_err=
14765 fi
14766else
14767 ac_cpp_err=yes
14768fi
14769if test -z "$ac_cpp_err"; then
14770 ac_header_preproc=yes
14771else
14772 echo "$as_me: failed program was:" >&5
14773sed 's/^/| /' conftest.$ac_ext >&5
14774
14775 ac_header_preproc=no
14776fi
14777rm -f conftest.err conftest.$ac_ext
14778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14779echo "${ECHO_T}$ac_header_preproc" >&6
14780
14781# So? What about this header?
ac1cb8d3
VS
14782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14783 yes:no: )
a848cd7e
SC
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14788 ac_header_preproc=yes
a848cd7e 14789 ;;
ac1cb8d3 14790 no:yes:* )
a848cd7e
SC
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14803 (
14804 cat <<\_ASBOX
ac1cb8d3
VS
14805## ----------------------------------------- ##
14806## Report this to wx-dev@lists.wxwidgets.org ##
14807## ----------------------------------------- ##
a848cd7e
SC
14808_ASBOX
14809 ) |
14810 sed "s/^/$as_me: WARNING: /" >&2
14811 ;;
14812esac
14813echo "$as_me:$LINENO: checking for $ac_header" >&5
14814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14815if eval "test \"\${$as_ac_Header+set}\" = set"; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14817else
ac1cb8d3 14818 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14819fi
14820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14822
14823fi
14824if test `eval echo '${'$as_ac_Header'}'` = yes; then
14825 cat >>confdefs.h <<_ACEOF
14826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14827_ACEOF
14828
14829fi
14830
14831done
14832
14833fi
14834
14835
14836for ac_header in fnmatch.h
14837do
14838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14839if eval "test \"\${$as_ac_Header+set}\" = set"; then
14840 echo "$as_me:$LINENO: checking for $ac_header" >&5
14841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14842if eval "test \"\${$as_ac_Header+set}\" = set"; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14844fi
14845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14847else
14848 # Is the header compilable?
14849echo "$as_me:$LINENO: checking $ac_header usability" >&5
14850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14851cat >conftest.$ac_ext <<_ACEOF
14852/* confdefs.h. */
14853_ACEOF
14854cat confdefs.h >>conftest.$ac_ext
14855cat >>conftest.$ac_ext <<_ACEOF
14856/* end confdefs.h. */
14857$ac_includes_default
14858#include <$ac_header>
14859_ACEOF
14860rm -f conftest.$ac_objext
14861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14862 (eval $ac_compile) 2>conftest.er1
a848cd7e 14863 ac_status=$?
ac1cb8d3
VS
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
a848cd7e
SC
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
8c539582 14869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; } &&
14875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }; then
14881 ac_header_compiler=yes
14882else
14883 echo "$as_me: failed program was:" >&5
14884sed 's/^/| /' conftest.$ac_ext >&5
14885
14886ac_header_compiler=no
14887fi
ac1cb8d3 14888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14889echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14890echo "${ECHO_T}$ac_header_compiler" >&6
14891
14892# Is the header present?
14893echo "$as_me:$LINENO: checking $ac_header presence" >&5
14894echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14895cat >conftest.$ac_ext <<_ACEOF
14896/* confdefs.h. */
14897_ACEOF
14898cat confdefs.h >>conftest.$ac_ext
14899cat >>conftest.$ac_ext <<_ACEOF
14900/* end confdefs.h. */
14901#include <$ac_header>
14902_ACEOF
14903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } >/dev/null; then
14911 if test -s conftest.err; then
14912 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14914 else
14915 ac_cpp_err=
14916 fi
14917else
14918 ac_cpp_err=yes
14919fi
14920if test -z "$ac_cpp_err"; then
14921 ac_header_preproc=yes
14922else
14923 echo "$as_me: failed program was:" >&5
14924sed 's/^/| /' conftest.$ac_ext >&5
14925
14926 ac_header_preproc=no
14927fi
14928rm -f conftest.err conftest.$ac_ext
14929echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14930echo "${ECHO_T}$ac_header_preproc" >&6
14931
14932# So? What about this header?
ac1cb8d3
VS
14933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14934 yes:no: )
a848cd7e
SC
14935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14936echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14938echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14939 ac_header_preproc=yes
a848cd7e 14940 ;;
ac1cb8d3 14941 no:yes:* )
a848cd7e
SC
14942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14943echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14945echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14947echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14949echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14951echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14953echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14954 (
14955 cat <<\_ASBOX
ac1cb8d3
VS
14956## ----------------------------------------- ##
14957## Report this to wx-dev@lists.wxwidgets.org ##
14958## ----------------------------------------- ##
a848cd7e
SC
14959_ASBOX
14960 ) |
14961 sed "s/^/$as_me: WARNING: /" >&2
14962 ;;
14963esac
14964echo "$as_me:$LINENO: checking for $ac_header" >&5
14965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14966if eval "test \"\${$as_ac_Header+set}\" = set"; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968else
ac1cb8d3 14969 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14970fi
14971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14972echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14973
14974fi
14975if test `eval echo '${'$as_ac_Header'}'` = yes; then
14976 cat >>confdefs.h <<_ACEOF
14977#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14978_ACEOF
14979
14980fi
14981
14982done
14983
14984
14985if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14986
14987for ac_func in fnmatch
14988do
14989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14990echo "$as_me:$LINENO: checking for $ac_func" >&5
14991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14992if eval "test \"\${$as_ac_var+set}\" = set"; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14994else
14995 cat >conftest.$ac_ext <<_ACEOF
14996/* confdefs.h. */
14997_ACEOF
14998cat confdefs.h >>conftest.$ac_ext
14999cat >>conftest.$ac_ext <<_ACEOF
15000/* end confdefs.h. */
ac1cb8d3
VS
15001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15003#define $ac_func innocuous_$ac_func
15004
a848cd7e
SC
15005/* System header to define __stub macros and hopefully few prototypes,
15006 which can conflict with char $ac_func (); below.
15007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15008 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 15009
a848cd7e
SC
15010#ifdef __STDC__
15011# include <limits.h>
15012#else
15013# include <assert.h>
15014#endif
ac1cb8d3
VS
15015
15016#undef $ac_func
15017
a848cd7e
SC
15018/* Override any gcc2 internal prototype to avoid an error. */
15019#ifdef __cplusplus
15020extern "C"
15021{
15022#endif
15023/* We use char because int might match the return type of a gcc2
15024 builtin and then its argument prototype would still apply. */
15025char $ac_func ();
15026/* The GNU C library defines this for functions which it implements
15027 to always fail with ENOSYS. Some functions are actually named
15028 something starting with __ and the normal name is an alias. */
15029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15030choke me
15031#else
15032char (*f) () = $ac_func;
15033#endif
15034#ifdef __cplusplus
15035}
15036#endif
15037
15038int
15039main ()
15040{
15041return f != $ac_func;
15042 ;
15043 return 0;
15044}
15045_ACEOF
15046rm -f conftest.$ac_objext conftest$ac_exeext
15047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15048 (eval $ac_link) 2>conftest.er1
a848cd7e 15049 ac_status=$?
ac1cb8d3
VS
15050 grep -v '^ *+' conftest.er1 >conftest.err
15051 rm -f conftest.er1
15052 cat conftest.err >&5
a848cd7e
SC
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } &&
8c539582 15055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 eval "$as_ac_var=yes"
15068else
15069 echo "$as_me: failed program was:" >&5
15070sed 's/^/| /' conftest.$ac_ext >&5
15071
15072eval "$as_ac_var=no"
15073fi
ac1cb8d3
VS
15074rm -f conftest.err conftest.$ac_objext \
15075 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15076fi
15077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15078echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15079if test `eval echo '${'$as_ac_var'}'` = yes; then
15080 cat >>confdefs.h <<_ACEOF
15081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15082_ACEOF
15083
15084fi
15085done
15086
15087fi
15088
15089
15090for ac_header in langinfo.h
15091do
15092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15093if eval "test \"\${$as_ac_Header+set}\" = set"; then
15094 echo "$as_me:$LINENO: checking for $ac_header" >&5
15095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15096if eval "test \"\${$as_ac_Header+set}\" = set"; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15098fi
15099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15101else
15102 # Is the header compilable?
15103echo "$as_me:$LINENO: checking $ac_header usability" >&5
15104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15105cat >conftest.$ac_ext <<_ACEOF
15106/* confdefs.h. */
15107_ACEOF
15108cat confdefs.h >>conftest.$ac_ext
15109cat >>conftest.$ac_ext <<_ACEOF
15110/* end confdefs.h. */
15111$ac_includes_default
15112#include <$ac_header>
15113_ACEOF
15114rm -f conftest.$ac_objext
15115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15116 (eval $ac_compile) 2>conftest.er1
a848cd7e 15117 ac_status=$?
ac1cb8d3
VS
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
a848cd7e
SC
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
8c539582 15123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15135 ac_header_compiler=yes
15136else
15137 echo "$as_me: failed program was:" >&5
15138sed 's/^/| /' conftest.$ac_ext >&5
15139
15140ac_header_compiler=no
15141fi
ac1cb8d3 15142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15143echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15144echo "${ECHO_T}$ac_header_compiler" >&6
15145
15146# Is the header present?
15147echo "$as_me:$LINENO: checking $ac_header presence" >&5
15148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15149cat >conftest.$ac_ext <<_ACEOF
15150/* confdefs.h. */
15151_ACEOF
15152cat confdefs.h >>conftest.$ac_ext
15153cat >>conftest.$ac_ext <<_ACEOF
15154/* end confdefs.h. */
15155#include <$ac_header>
15156_ACEOF
15157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } >/dev/null; then
15165 if test -s conftest.err; then
15166 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15168 else
15169 ac_cpp_err=
15170 fi
15171else
15172 ac_cpp_err=yes
15173fi
15174if test -z "$ac_cpp_err"; then
15175 ac_header_preproc=yes
15176else
15177 echo "$as_me: failed program was:" >&5
15178sed 's/^/| /' conftest.$ac_ext >&5
15179
15180 ac_header_preproc=no
15181fi
15182rm -f conftest.err conftest.$ac_ext
15183echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15184echo "${ECHO_T}$ac_header_preproc" >&6
15185
15186# So? What about this header?
ac1cb8d3
VS
15187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15188 yes:no: )
a848cd7e
SC
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15193 ac_header_preproc=yes
a848cd7e 15194 ;;
ac1cb8d3 15195 no:yes:* )
a848cd7e
SC
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15208 (
15209 cat <<\_ASBOX
ac1cb8d3
VS
15210## ----------------------------------------- ##
15211## Report this to wx-dev@lists.wxwidgets.org ##
15212## ----------------------------------------- ##
a848cd7e
SC
15213_ASBOX
15214 ) |
15215 sed "s/^/$as_me: WARNING: /" >&2
15216 ;;
15217esac
15218echo "$as_me:$LINENO: checking for $ac_header" >&5
15219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15220if eval "test \"\${$as_ac_Header+set}\" = set"; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15222else
ac1cb8d3 15223 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15224fi
15225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15227
15228fi
15229if test `eval echo '${'$as_ac_Header'}'` = yes; then
15230 cat >>confdefs.h <<_ACEOF
15231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15232_ACEOF
15233
15234fi
15235
15236done
15237
15238
15239case "${host}" in
15240 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15241 if test $ac_cv_header_langinfo_h = "yes" \
15242 -a \( "$wx_cv_gccversion" = "EMX2" \
15243 -o "$wx_cv_gccversion" = "EMX3" \
15244 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15245 LIBS="$LIBS -lintl"
15246 fi
15247 ;;
15248esac
15249
15250if test "$wxUSE_GUI" = "yes"; then
15251 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15252
15253for ac_header in X11/Xlib.h
15254do
15255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15256if eval "test \"\${$as_ac_Header+set}\" = set"; then
15257 echo "$as_me:$LINENO: checking for $ac_header" >&5
15258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15259if eval "test \"\${$as_ac_Header+set}\" = set"; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15261fi
15262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15264else
15265 # Is the header compilable?
15266echo "$as_me:$LINENO: checking $ac_header usability" >&5
15267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15268cat >conftest.$ac_ext <<_ACEOF
15269/* confdefs.h. */
15270_ACEOF
15271cat confdefs.h >>conftest.$ac_ext
15272cat >>conftest.$ac_ext <<_ACEOF
15273/* end confdefs.h. */
15274$ac_includes_default
15275#include <$ac_header>
15276_ACEOF
15277rm -f conftest.$ac_objext
15278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15279 (eval $ac_compile) 2>conftest.er1
a848cd7e 15280 ac_status=$?
ac1cb8d3
VS
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
a848cd7e
SC
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
8c539582 15286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; } &&
15292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
15298 ac_header_compiler=yes
15299else
15300 echo "$as_me: failed program was:" >&5
15301sed 's/^/| /' conftest.$ac_ext >&5
15302
15303ac_header_compiler=no
15304fi
ac1cb8d3 15305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15307echo "${ECHO_T}$ac_header_compiler" >&6
15308
15309# Is the header present?
15310echo "$as_me:$LINENO: checking $ac_header presence" >&5
15311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15312cat >conftest.$ac_ext <<_ACEOF
15313/* confdefs.h. */
15314_ACEOF
15315cat confdefs.h >>conftest.$ac_ext
15316cat >>conftest.$ac_ext <<_ACEOF
15317/* end confdefs.h. */
15318#include <$ac_header>
15319_ACEOF
15320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15322 ac_status=$?
15323 grep -v '^ *+' conftest.er1 >conftest.err
15324 rm -f conftest.er1
15325 cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } >/dev/null; then
15328 if test -s conftest.err; then
15329 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15331 else
15332 ac_cpp_err=
15333 fi
15334else
15335 ac_cpp_err=yes
15336fi
15337if test -z "$ac_cpp_err"; then
15338 ac_header_preproc=yes
15339else
15340 echo "$as_me: failed program was:" >&5
15341sed 's/^/| /' conftest.$ac_ext >&5
15342
15343 ac_header_preproc=no
15344fi
15345rm -f conftest.err conftest.$ac_ext
15346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15347echo "${ECHO_T}$ac_header_preproc" >&6
15348
15349# So? What about this header?
ac1cb8d3
VS
15350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15351 yes:no: )
a848cd7e
SC
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15356 ac_header_preproc=yes
a848cd7e 15357 ;;
ac1cb8d3 15358 no:yes:* )
a848cd7e
SC
15359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15362echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15366echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15371 (
15372 cat <<\_ASBOX
ac1cb8d3
VS
15373## ----------------------------------------- ##
15374## Report this to wx-dev@lists.wxwidgets.org ##
15375## ----------------------------------------- ##
a848cd7e
SC
15376_ASBOX
15377 ) |
15378 sed "s/^/$as_me: WARNING: /" >&2
15379 ;;
15380esac
15381echo "$as_me:$LINENO: checking for $ac_header" >&5
15382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15383if eval "test \"\${$as_ac_Header+set}\" = set"; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15385else
ac1cb8d3 15386 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15387fi
15388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15390
15391fi
15392if test `eval echo '${'$as_ac_Header'}'` = yes; then
15393 cat >>confdefs.h <<_ACEOF
15394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15395_ACEOF
15396
15397fi
15398
15399done
15400
15401
15402for ac_header in X11/XKBlib.h
15403do
15404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15405echo "$as_me:$LINENO: checking for $ac_header" >&5
15406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15407if eval "test \"\${$as_ac_Header+set}\" = set"; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15409else
15410 cat >conftest.$ac_ext <<_ACEOF
15411/* confdefs.h. */
15412_ACEOF
15413cat confdefs.h >>conftest.$ac_ext
15414cat >>conftest.$ac_ext <<_ACEOF
15415/* end confdefs.h. */
15416
15417 #if HAVE_X11_XLIB_H
15418 #include <X11/Xlib.h>
15419 #endif
15420
15421
15422#include <$ac_header>
15423_ACEOF
15424rm -f conftest.$ac_objext
15425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15426 (eval $ac_compile) 2>conftest.er1
a848cd7e 15427 ac_status=$?
ac1cb8d3
VS
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
a848cd7e
SC
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
8c539582 15433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 eval "$as_ac_Header=yes"
15446else
15447 echo "$as_me: failed program was:" >&5
15448sed 's/^/| /' conftest.$ac_ext >&5
15449
15450eval "$as_ac_Header=no"
15451fi
ac1cb8d3 15452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15453fi
15454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15456if test `eval echo '${'$as_ac_Header'}'` = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15459_ACEOF
15460
15461fi
15462
15463done
15464
15465 fi
15466fi
15467
15468
15469echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15470echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15471if test "${ac_cv_c_const+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473else
15474 cat >conftest.$ac_ext <<_ACEOF
15475/* confdefs.h. */
15476_ACEOF
15477cat confdefs.h >>conftest.$ac_ext
15478cat >>conftest.$ac_ext <<_ACEOF
15479/* end confdefs.h. */
15480
15481int
15482main ()
15483{
15484/* FIXME: Include the comments suggested by Paul. */
15485#ifndef __cplusplus
15486 /* Ultrix mips cc rejects this. */
15487 typedef int charset[2];
15488 const charset x;
15489 /* SunOS 4.1.1 cc rejects this. */
15490 char const *const *ccp;
15491 char **p;
15492 /* NEC SVR4.0.2 mips cc rejects this. */
15493 struct point {int x, y;};
15494 static struct point const zero = {0,0};
15495 /* AIX XL C 1.02.0.0 rejects this.
15496 It does not let you subtract one const X* pointer from another in
15497 an arm of an if-expression whose if-part is not a constant
15498 expression */
15499 const char *g = "string";
15500 ccp = &g + (g ? g-g : 0);
15501 /* HPUX 7.0 cc rejects these. */
15502 ++ccp;
15503 p = (char**) ccp;
15504 ccp = (char const *const *) p;
15505 { /* SCO 3.2v4 cc rejects this. */
15506 char *t;
15507 char const *s = 0 ? (char *) 0 : (char const *) 0;
15508
15509 *t++ = 0;
15510 }
15511 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15512 int x[] = {25, 17};
15513 const int *foo = &x[0];
15514 ++foo;
15515 }
15516 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15517 typedef const int *iptr;
15518 iptr p = 0;
15519 ++p;
15520 }
15521 { /* AIX XL C 1.02.0.0 rejects this saying
15522 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15523 struct s { int j; const int *ap[3]; };
15524 struct s *b; b->j = 5;
15525 }
15526 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15527 const int foo = 10;
15528 }
15529#endif
15530
15531 ;
15532 return 0;
15533}
15534_ACEOF
15535rm -f conftest.$ac_objext
15536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15537 (eval $ac_compile) 2>conftest.er1
a848cd7e 15538 ac_status=$?
ac1cb8d3
VS
15539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
a848cd7e
SC
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
8c539582 15544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_c_const=yes
15557else
15558 echo "$as_me: failed program was:" >&5
15559sed 's/^/| /' conftest.$ac_ext >&5
15560
15561ac_cv_c_const=no
15562fi
ac1cb8d3 15563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15564fi
15565echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15566echo "${ECHO_T}$ac_cv_c_const" >&6
15567if test $ac_cv_c_const = no; then
15568
15569cat >>confdefs.h <<\_ACEOF
15570#define const
15571_ACEOF
15572
15573fi
15574
15575echo "$as_me:$LINENO: checking for inline" >&5
15576echo $ECHO_N "checking for inline... $ECHO_C" >&6
15577if test "${ac_cv_c_inline+set}" = set; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15579else
15580 ac_cv_c_inline=no
15581for ac_kw in inline __inline__ __inline; do
15582 cat >conftest.$ac_ext <<_ACEOF
15583/* confdefs.h. */
15584_ACEOF
15585cat confdefs.h >>conftest.$ac_ext
15586cat >>conftest.$ac_ext <<_ACEOF
15587/* end confdefs.h. */
15588#ifndef __cplusplus
15589typedef int foo_t;
15590static $ac_kw foo_t static_foo () {return 0; }
15591$ac_kw foo_t foo () {return 0; }
15592#endif
15593
15594_ACEOF
15595rm -f conftest.$ac_objext
15596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15597 (eval $ac_compile) 2>conftest.er1
a848cd7e 15598 ac_status=$?
ac1cb8d3
VS
15599 grep -v '^ *+' conftest.er1 >conftest.err
15600 rm -f conftest.er1
15601 cat conftest.err >&5
a848cd7e
SC
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } &&
8c539582 15604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15616 ac_cv_c_inline=$ac_kw; break
15617else
15618 echo "$as_me: failed program was:" >&5
15619sed 's/^/| /' conftest.$ac_ext >&5
15620
15621fi
ac1cb8d3 15622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15623done
15624
15625fi
15626echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15627echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15628
15629
a848cd7e
SC
15630case $ac_cv_c_inline in
15631 inline | yes) ;;
ac1cb8d3
VS
15632 *)
15633 case $ac_cv_c_inline in
15634 no) ac_val=;;
15635 *) ac_val=$ac_cv_c_inline;;
15636 esac
15637 cat >>confdefs.h <<_ACEOF
15638#ifndef __cplusplus
15639#define inline $ac_val
15640#endif
de59c161 15641_ACEOF
ac1cb8d3 15642 ;;
a848cd7e
SC
15643esac
15644
15645
15646echo "$as_me:$LINENO: checking for char" >&5
15647echo $ECHO_N "checking for char... $ECHO_C" >&6
15648if test "${ac_cv_type_char+set}" = set; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650else
15651 cat >conftest.$ac_ext <<_ACEOF
15652/* confdefs.h. */
15653_ACEOF
15654cat confdefs.h >>conftest.$ac_ext
15655cat >>conftest.$ac_ext <<_ACEOF
15656/* end confdefs.h. */
15657$ac_includes_default
15658int
15659main ()
15660{
15661if ((char *) 0)
15662 return 0;
15663if (sizeof (char))
15664 return 0;
15665 ;
15666 return 0;
15667}
15668_ACEOF
15669rm -f conftest.$ac_objext
15670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15671 (eval $ac_compile) 2>conftest.er1
a848cd7e 15672 ac_status=$?
ac1cb8d3
VS
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
a848cd7e
SC
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
8c539582 15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_cv_type_char=yes
15691else
15692 echo "$as_me: failed program was:" >&5
15693sed 's/^/| /' conftest.$ac_ext >&5
15694
15695ac_cv_type_char=no
15696fi
ac1cb8d3 15697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15698fi
15699echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15700echo "${ECHO_T}$ac_cv_type_char" >&6
15701
15702echo "$as_me:$LINENO: checking size of char" >&5
15703echo $ECHO_N "checking size of char... $ECHO_C" >&6
15704if test "${ac_cv_sizeof_char+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15706else
15707 if test "$ac_cv_type_char" = yes; then
15708 # The cast to unsigned long works around a bug in the HP C Compiler
15709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15711 # This bug is HP SR number 8606223364.
15712 if test "$cross_compiling" = yes; then
15713 # Depending upon the size, compute the lo and hi bounds.
15714cat >conftest.$ac_ext <<_ACEOF
15715/* confdefs.h. */
15716_ACEOF
15717cat confdefs.h >>conftest.$ac_ext
15718cat >>conftest.$ac_ext <<_ACEOF
15719/* end confdefs.h. */
15720$ac_includes_default
15721int
15722main ()
15723{
15724static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15725test_array [0] = 0
15726
15727 ;
15728 return 0;
15729}
15730_ACEOF
15731rm -f conftest.$ac_objext
15732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15733 (eval $ac_compile) 2>conftest.er1
a848cd7e 15734 ac_status=$?
ac1cb8d3
VS
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
a848cd7e
SC
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
8c539582 15740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 ac_lo=0 ac_mid=0
15753 while :; do
15754 cat >conftest.$ac_ext <<_ACEOF
15755/* confdefs.h. */
15756_ACEOF
15757cat confdefs.h >>conftest.$ac_ext
15758cat >>conftest.$ac_ext <<_ACEOF
15759/* end confdefs.h. */
15760$ac_includes_default
15761int
15762main ()
15763{
15764static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15765test_array [0] = 0
15766
15767 ;
15768 return 0;
15769}
15770_ACEOF
15771rm -f conftest.$ac_objext
15772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15773 (eval $ac_compile) 2>conftest.er1
a848cd7e 15774 ac_status=$?
ac1cb8d3
VS
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
a848cd7e
SC
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
8c539582 15780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; } &&
15786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 ac_hi=$ac_mid; break
15793else
15794 echo "$as_me: failed program was:" >&5
15795sed 's/^/| /' conftest.$ac_ext >&5
15796
15797ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15798 if test $ac_lo -le $ac_mid; then
15799 ac_lo= ac_hi=
15800 break
15801 fi
15802 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15803fi
ac1cb8d3 15804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15805 done
15806else
15807 echo "$as_me: failed program was:" >&5
15808sed 's/^/| /' conftest.$ac_ext >&5
15809
15810cat >conftest.$ac_ext <<_ACEOF
15811/* confdefs.h. */
15812_ACEOF
15813cat confdefs.h >>conftest.$ac_ext
15814cat >>conftest.$ac_ext <<_ACEOF
15815/* end confdefs.h. */
15816$ac_includes_default
15817int
15818main ()
15819{
15820static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15821test_array [0] = 0
15822
15823 ;
15824 return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15829 (eval $ac_compile) 2>conftest.er1
a848cd7e 15830 ac_status=$?
ac1cb8d3
VS
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
a848cd7e
SC
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
8c539582 15836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; } &&
15842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; }; then
15848 ac_hi=-1 ac_mid=-1
15849 while :; do
15850 cat >conftest.$ac_ext <<_ACEOF
15851/* confdefs.h. */
15852_ACEOF
15853cat confdefs.h >>conftest.$ac_ext
15854cat >>conftest.$ac_ext <<_ACEOF
15855/* end confdefs.h. */
15856$ac_includes_default
15857int
15858main ()
15859{
15860static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15861test_array [0] = 0
15862
15863 ;
15864 return 0;
15865}
15866_ACEOF
15867rm -f conftest.$ac_objext
15868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15869 (eval $ac_compile) 2>conftest.er1
a848cd7e 15870 ac_status=$?
ac1cb8d3
VS
15871 grep -v '^ *+' conftest.er1 >conftest.err
15872 rm -f conftest.er1
15873 cat conftest.err >&5
a848cd7e
SC
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } &&
8c539582 15876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15879 ac_status=$?
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; } &&
15882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; }; then
15888 ac_lo=$ac_mid; break
15889else
15890 echo "$as_me: failed program was:" >&5
15891sed 's/^/| /' conftest.$ac_ext >&5
15892
15893ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15894 if test $ac_mid -le $ac_hi; then
15895 ac_lo= ac_hi=
15896 break
15897 fi
15898 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15899fi
ac1cb8d3 15900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15901 done
15902else
15903 echo "$as_me: failed program was:" >&5
15904sed 's/^/| /' conftest.$ac_ext >&5
15905
15906ac_lo= ac_hi=
15907fi
ac1cb8d3 15908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15909fi
ac1cb8d3 15910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15911# Binary search between lo and hi bounds.
15912while test "x$ac_lo" != "x$ac_hi"; do
15913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15914 cat >conftest.$ac_ext <<_ACEOF
15915/* confdefs.h. */
15916_ACEOF
15917cat confdefs.h >>conftest.$ac_ext
15918cat >>conftest.$ac_ext <<_ACEOF
15919/* end confdefs.h. */
15920$ac_includes_default
15921int
15922main ()
15923{
15924static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15925test_array [0] = 0
15926
15927 ;
15928 return 0;
15929}
15930_ACEOF
15931rm -f conftest.$ac_objext
15932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15933 (eval $ac_compile) 2>conftest.er1
a848cd7e 15934 ac_status=$?
ac1cb8d3
VS
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
a848cd7e
SC
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
8c539582 15940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; } &&
15946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 ac_hi=$ac_mid
15953else
15954 echo "$as_me: failed program was:" >&5
15955sed 's/^/| /' conftest.$ac_ext >&5
15956
15957ac_lo=`expr '(' $ac_mid ')' + 1`
15958fi
ac1cb8d3 15959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15960done
15961case $ac_lo in
15962?*) ac_cv_sizeof_char=$ac_lo;;
15963'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15964See \`config.log' for more details." >&5
15965echo "$as_me: error: cannot compute sizeof (char), 77
15966See \`config.log' for more details." >&2;}
15967 { (exit 1); exit 1; }; } ;;
15968esac
15969else
15970 if test "$cross_compiling" = yes; then
8c539582
RL
15971 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15972echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15973 { (exit 1); exit 1; }; }
15974else
15975 cat >conftest.$ac_ext <<_ACEOF
15976/* confdefs.h. */
15977_ACEOF
15978cat confdefs.h >>conftest.$ac_ext
15979cat >>conftest.$ac_ext <<_ACEOF
15980/* end confdefs.h. */
15981$ac_includes_default
15982long longval () { return (long) (sizeof (char)); }
15983unsigned long ulongval () { return (long) (sizeof (char)); }
15984#include <stdio.h>
15985#include <stdlib.h>
15986int
15987main ()
15988{
15989
15990 FILE *f = fopen ("conftest.val", "w");
15991 if (! f)
15992 exit (1);
15993 if (((long) (sizeof (char))) < 0)
15994 {
15995 long i = longval ();
15996 if (i != ((long) (sizeof (char))))
15997 exit (1);
15998 fprintf (f, "%ld\n", i);
15999 }
16000 else
16001 {
16002 unsigned long i = ulongval ();
16003 if (i != ((long) (sizeof (char))))
16004 exit (1);
16005 fprintf (f, "%lu\n", i);
16006 }
16007 exit (ferror (f) || fclose (f) != 0);
16008
16009 ;
16010 return 0;
16011}
16012_ACEOF
16013rm -f conftest$ac_exeext
16014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16015 (eval $ac_link) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_cv_sizeof_char=`cat conftest.val`
16025else
16026 echo "$as_me: program exited with status $ac_status" >&5
16027echo "$as_me: failed program was:" >&5
16028sed 's/^/| /' conftest.$ac_ext >&5
16029
16030( exit $ac_status )
16031{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16032See \`config.log' for more details." >&5
16033echo "$as_me: error: cannot compute sizeof (char), 77
16034See \`config.log' for more details." >&2;}
16035 { (exit 1); exit 1; }; }
16036fi
ac1cb8d3 16037rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16038fi
16039fi
16040rm -f conftest.val
16041else
16042 ac_cv_sizeof_char=0
16043fi
16044fi
16045echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16046echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16047cat >>confdefs.h <<_ACEOF
16048#define SIZEOF_CHAR $ac_cv_sizeof_char
16049_ACEOF
16050
16051
16052echo "$as_me:$LINENO: checking for short" >&5
16053echo $ECHO_N "checking for short... $ECHO_C" >&6
16054if test "${ac_cv_type_short+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056else
16057 cat >conftest.$ac_ext <<_ACEOF
16058/* confdefs.h. */
16059_ACEOF
16060cat confdefs.h >>conftest.$ac_ext
16061cat >>conftest.$ac_ext <<_ACEOF
16062/* end confdefs.h. */
16063$ac_includes_default
16064int
16065main ()
16066{
16067if ((short *) 0)
16068 return 0;
16069if (sizeof (short))
16070 return 0;
16071 ;
16072 return 0;
16073}
16074_ACEOF
16075rm -f conftest.$ac_objext
16076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16077 (eval $ac_compile) 2>conftest.er1
a848cd7e 16078 ac_status=$?
ac1cb8d3
VS
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
a848cd7e
SC
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
8c539582 16084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_cv_type_short=yes
16097else
16098 echo "$as_me: failed program was:" >&5
16099sed 's/^/| /' conftest.$ac_ext >&5
16100
16101ac_cv_type_short=no
16102fi
ac1cb8d3 16103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16104fi
16105echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16106echo "${ECHO_T}$ac_cv_type_short" >&6
16107
16108echo "$as_me:$LINENO: checking size of short" >&5
16109echo $ECHO_N "checking size of short... $ECHO_C" >&6
16110if test "${ac_cv_sizeof_short+set}" = set; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16112else
16113 if test "$ac_cv_type_short" = yes; then
16114 # The cast to unsigned long works around a bug in the HP C Compiler
16115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16117 # This bug is HP SR number 8606223364.
16118 if test "$cross_compiling" = yes; then
16119 # Depending upon the size, compute the lo and hi bounds.
16120cat >conftest.$ac_ext <<_ACEOF
16121/* confdefs.h. */
16122_ACEOF
16123cat confdefs.h >>conftest.$ac_ext
16124cat >>conftest.$ac_ext <<_ACEOF
16125/* end confdefs.h. */
16126$ac_includes_default
16127int
16128main ()
16129{
16130static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16131test_array [0] = 0
16132
16133 ;
16134 return 0;
16135}
16136_ACEOF
16137rm -f conftest.$ac_objext
16138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16139 (eval $ac_compile) 2>conftest.er1
a848cd7e 16140 ac_status=$?
ac1cb8d3
VS
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
a848cd7e
SC
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
8c539582 16146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_lo=0 ac_mid=0
16159 while :; do
16160 cat >conftest.$ac_ext <<_ACEOF
16161/* confdefs.h. */
16162_ACEOF
16163cat confdefs.h >>conftest.$ac_ext
16164cat >>conftest.$ac_ext <<_ACEOF
16165/* end confdefs.h. */
16166$ac_includes_default
16167int
16168main ()
16169{
16170static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16171test_array [0] = 0
16172
16173 ;
16174 return 0;
16175}
16176_ACEOF
16177rm -f conftest.$ac_objext
16178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16179 (eval $ac_compile) 2>conftest.er1
a848cd7e 16180 ac_status=$?
ac1cb8d3
VS
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
a848cd7e
SC
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
8c539582 16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; } &&
16192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_hi=$ac_mid; break
16199else
16200 echo "$as_me: failed program was:" >&5
16201sed 's/^/| /' conftest.$ac_ext >&5
16202
16203ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16204 if test $ac_lo -le $ac_mid; then
16205 ac_lo= ac_hi=
16206 break
16207 fi
16208 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16209fi
ac1cb8d3 16210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16211 done
16212else
16213 echo "$as_me: failed program was:" >&5
16214sed 's/^/| /' conftest.$ac_ext >&5
16215
16216cat >conftest.$ac_ext <<_ACEOF
16217/* confdefs.h. */
16218_ACEOF
16219cat confdefs.h >>conftest.$ac_ext
16220cat >>conftest.$ac_ext <<_ACEOF
16221/* end confdefs.h. */
16222$ac_includes_default
16223int
16224main ()
16225{
16226static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16227test_array [0] = 0
16228
16229 ;
16230 return 0;
16231}
16232_ACEOF
16233rm -f conftest.$ac_objext
16234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16235 (eval $ac_compile) 2>conftest.er1
a848cd7e 16236 ac_status=$?
ac1cb8d3
VS
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
a848cd7e
SC
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
8c539582 16242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } &&
16248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
16254 ac_hi=-1 ac_mid=-1
16255 while :; do
16256 cat >conftest.$ac_ext <<_ACEOF
16257/* confdefs.h. */
16258_ACEOF
16259cat confdefs.h >>conftest.$ac_ext
16260cat >>conftest.$ac_ext <<_ACEOF
16261/* end confdefs.h. */
16262$ac_includes_default
16263int
16264main ()
16265{
16266static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16267test_array [0] = 0
16268
16269 ;
16270 return 0;
16271}
16272_ACEOF
16273rm -f conftest.$ac_objext
16274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16275 (eval $ac_compile) 2>conftest.er1
a848cd7e 16276 ac_status=$?
ac1cb8d3
VS
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
a848cd7e
SC
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
8c539582 16282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16294 ac_lo=$ac_mid; break
16295else
16296 echo "$as_me: failed program was:" >&5
16297sed 's/^/| /' conftest.$ac_ext >&5
16298
16299ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16300 if test $ac_mid -le $ac_hi; then
16301 ac_lo= ac_hi=
16302 break
16303 fi
16304 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16305fi
ac1cb8d3 16306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16307 done
16308else
16309 echo "$as_me: failed program was:" >&5
16310sed 's/^/| /' conftest.$ac_ext >&5
16311
16312ac_lo= ac_hi=
16313fi
ac1cb8d3 16314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16315fi
ac1cb8d3 16316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16317# Binary search between lo and hi bounds.
16318while test "x$ac_lo" != "x$ac_hi"; do
16319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16320 cat >conftest.$ac_ext <<_ACEOF
16321/* confdefs.h. */
16322_ACEOF
16323cat confdefs.h >>conftest.$ac_ext
16324cat >>conftest.$ac_ext <<_ACEOF
16325/* end confdefs.h. */
16326$ac_includes_default
16327int
16328main ()
16329{
16330static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16331test_array [0] = 0
16332
16333 ;
16334 return 0;
16335}
16336_ACEOF
16337rm -f conftest.$ac_objext
16338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16339 (eval $ac_compile) 2>conftest.er1
a848cd7e 16340 ac_status=$?
ac1cb8d3
VS
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
a848cd7e
SC
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
8c539582 16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_hi=$ac_mid
16359else
16360 echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363ac_lo=`expr '(' $ac_mid ')' + 1`
16364fi
ac1cb8d3 16365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16366done
16367case $ac_lo in
16368?*) ac_cv_sizeof_short=$ac_lo;;
16369'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16370See \`config.log' for more details." >&5
16371echo "$as_me: error: cannot compute sizeof (short), 77
16372See \`config.log' for more details." >&2;}
16373 { (exit 1); exit 1; }; } ;;
16374esac
16375else
16376 if test "$cross_compiling" = yes; then
8c539582
RL
16377 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16378echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16379 { (exit 1); exit 1; }; }
16380else
16381 cat >conftest.$ac_ext <<_ACEOF
16382/* confdefs.h. */
16383_ACEOF
16384cat confdefs.h >>conftest.$ac_ext
16385cat >>conftest.$ac_ext <<_ACEOF
16386/* end confdefs.h. */
16387$ac_includes_default
16388long longval () { return (long) (sizeof (short)); }
16389unsigned long ulongval () { return (long) (sizeof (short)); }
16390#include <stdio.h>
16391#include <stdlib.h>
16392int
16393main ()
16394{
16395
16396 FILE *f = fopen ("conftest.val", "w");
16397 if (! f)
16398 exit (1);
16399 if (((long) (sizeof (short))) < 0)
16400 {
16401 long i = longval ();
16402 if (i != ((long) (sizeof (short))))
16403 exit (1);
16404 fprintf (f, "%ld\n", i);
16405 }
16406 else
16407 {
16408 unsigned long i = ulongval ();
16409 if (i != ((long) (sizeof (short))))
16410 exit (1);
16411 fprintf (f, "%lu\n", i);
16412 }
16413 exit (ferror (f) || fclose (f) != 0);
16414
16415 ;
16416 return 0;
16417}
16418_ACEOF
16419rm -f conftest$ac_exeext
16420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16421 (eval $ac_link) 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_cv_sizeof_short=`cat conftest.val`
16431else
16432 echo "$as_me: program exited with status $ac_status" >&5
16433echo "$as_me: failed program was:" >&5
16434sed 's/^/| /' conftest.$ac_ext >&5
16435
16436( exit $ac_status )
16437{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16438See \`config.log' for more details." >&5
16439echo "$as_me: error: cannot compute sizeof (short), 77
16440See \`config.log' for more details." >&2;}
16441 { (exit 1); exit 1; }; }
16442fi
ac1cb8d3 16443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16444fi
16445fi
16446rm -f conftest.val
16447else
16448 ac_cv_sizeof_short=0
16449fi
16450fi
16451echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16452echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16453cat >>confdefs.h <<_ACEOF
16454#define SIZEOF_SHORT $ac_cv_sizeof_short
16455_ACEOF
16456
16457
16458echo "$as_me:$LINENO: checking for void *" >&5
16459echo $ECHO_N "checking for void *... $ECHO_C" >&6
16460if test "${ac_cv_type_void_p+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16462else
16463 cat >conftest.$ac_ext <<_ACEOF
16464/* confdefs.h. */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h. */
16469$ac_includes_default
16470int
16471main ()
16472{
16473if ((void * *) 0)
16474 return 0;
16475if (sizeof (void *))
16476 return 0;
16477 ;
16478 return 0;
16479}
16480_ACEOF
16481rm -f conftest.$ac_objext
16482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16483 (eval $ac_compile) 2>conftest.er1
a848cd7e 16484 ac_status=$?
ac1cb8d3
VS
16485 grep -v '^ *+' conftest.er1 >conftest.err
16486 rm -f conftest.er1
16487 cat conftest.err >&5
a848cd7e
SC
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
8c539582 16490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_cv_type_void_p=yes
16503else
16504 echo "$as_me: failed program was:" >&5
16505sed 's/^/| /' conftest.$ac_ext >&5
16506
16507ac_cv_type_void_p=no
16508fi
ac1cb8d3 16509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16510fi
16511echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16512echo "${ECHO_T}$ac_cv_type_void_p" >&6
16513
16514echo "$as_me:$LINENO: checking size of void *" >&5
16515echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16516if test "${ac_cv_sizeof_void_p+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16518else
16519 if test "$ac_cv_type_void_p" = yes; then
16520 # The cast to unsigned long works around a bug in the HP C Compiler
16521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16523 # This bug is HP SR number 8606223364.
16524 if test "$cross_compiling" = yes; then
16525 # Depending upon the size, compute the lo and hi bounds.
16526cat >conftest.$ac_ext <<_ACEOF
16527/* confdefs.h. */
16528_ACEOF
16529cat confdefs.h >>conftest.$ac_ext
16530cat >>conftest.$ac_ext <<_ACEOF
16531/* end confdefs.h. */
16532$ac_includes_default
16533int
16534main ()
16535{
16536static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16537test_array [0] = 0
16538
16539 ;
16540 return 0;
16541}
16542_ACEOF
16543rm -f conftest.$ac_objext
16544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16545 (eval $ac_compile) 2>conftest.er1
a848cd7e 16546 ac_status=$?
ac1cb8d3
VS
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
a848cd7e
SC
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
8c539582 16552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_lo=0 ac_mid=0
16565 while :; do
16566 cat >conftest.$ac_ext <<_ACEOF
16567/* confdefs.h. */
16568_ACEOF
16569cat confdefs.h >>conftest.$ac_ext
16570cat >>conftest.$ac_ext <<_ACEOF
16571/* end confdefs.h. */
16572$ac_includes_default
16573int
16574main ()
16575{
16576static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16577test_array [0] = 0
16578
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext
16584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16585 (eval $ac_compile) 2>conftest.er1
a848cd7e 16586 ac_status=$?
ac1cb8d3
VS
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
a848cd7e
SC
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
8c539582 16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 ac_hi=$ac_mid; break
16605else
16606 echo "$as_me: failed program was:" >&5
16607sed 's/^/| /' conftest.$ac_ext >&5
16608
16609ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16610 if test $ac_lo -le $ac_mid; then
16611 ac_lo= ac_hi=
16612 break
16613 fi
16614 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16615fi
ac1cb8d3 16616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16617 done
16618else
16619 echo "$as_me: failed program was:" >&5
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
16622cat >conftest.$ac_ext <<_ACEOF
16623/* confdefs.h. */
16624_ACEOF
16625cat confdefs.h >>conftest.$ac_ext
16626cat >>conftest.$ac_ext <<_ACEOF
16627/* end confdefs.h. */
16628$ac_includes_default
16629int
16630main ()
16631{
16632static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16633test_array [0] = 0
16634
16635 ;
16636 return 0;
16637}
16638_ACEOF
16639rm -f conftest.$ac_objext
16640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16641 (eval $ac_compile) 2>conftest.er1
a848cd7e 16642 ac_status=$?
ac1cb8d3
VS
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
a848cd7e
SC
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
8c539582 16648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 ac_hi=-1 ac_mid=-1
16661 while :; do
16662 cat >conftest.$ac_ext <<_ACEOF
16663/* confdefs.h. */
16664_ACEOF
16665cat confdefs.h >>conftest.$ac_ext
16666cat >>conftest.$ac_ext <<_ACEOF
16667/* end confdefs.h. */
16668$ac_includes_default
16669int
16670main ()
16671{
16672static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16673test_array [0] = 0
16674
16675 ;
16676 return 0;
16677}
16678_ACEOF
16679rm -f conftest.$ac_objext
16680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16681 (eval $ac_compile) 2>conftest.er1
a848cd7e 16682 ac_status=$?
ac1cb8d3
VS
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
a848cd7e
SC
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
8c539582 16688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } &&
16694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16697 ac_status=$?
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 ac_lo=$ac_mid; break
16701else
16702 echo "$as_me: failed program was:" >&5
16703sed 's/^/| /' conftest.$ac_ext >&5
16704
16705ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16706 if test $ac_mid -le $ac_hi; then
16707 ac_lo= ac_hi=
16708 break
16709 fi
16710 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16711fi
ac1cb8d3 16712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16713 done
16714else
16715 echo "$as_me: failed program was:" >&5
16716sed 's/^/| /' conftest.$ac_ext >&5
16717
16718ac_lo= ac_hi=
16719fi
ac1cb8d3 16720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16721fi
ac1cb8d3 16722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16723# Binary search between lo and hi bounds.
16724while test "x$ac_lo" != "x$ac_hi"; do
16725 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16726 cat >conftest.$ac_ext <<_ACEOF
16727/* confdefs.h. */
16728_ACEOF
16729cat confdefs.h >>conftest.$ac_ext
16730cat >>conftest.$ac_ext <<_ACEOF
16731/* end confdefs.h. */
16732$ac_includes_default
16733int
16734main ()
16735{
16736static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16737test_array [0] = 0
16738
16739 ;
16740 return 0;
16741}
16742_ACEOF
16743rm -f conftest.$ac_objext
16744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16745 (eval $ac_compile) 2>conftest.er1
a848cd7e 16746 ac_status=$?
ac1cb8d3
VS
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
a848cd7e
SC
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
8c539582 16752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_hi=$ac_mid
16765else
16766 echo "$as_me: failed program was:" >&5
16767sed 's/^/| /' conftest.$ac_ext >&5
16768
16769ac_lo=`expr '(' $ac_mid ')' + 1`
16770fi
ac1cb8d3 16771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16772done
16773case $ac_lo in
16774?*) ac_cv_sizeof_void_p=$ac_lo;;
16775'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16776See \`config.log' for more details." >&5
16777echo "$as_me: error: cannot compute sizeof (void *), 77
16778See \`config.log' for more details." >&2;}
16779 { (exit 1); exit 1; }; } ;;
16780esac
16781else
16782 if test "$cross_compiling" = yes; then
8c539582
RL
16783 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16784echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16785 { (exit 1); exit 1; }; }
16786else
16787 cat >conftest.$ac_ext <<_ACEOF
16788/* confdefs.h. */
16789_ACEOF
16790cat confdefs.h >>conftest.$ac_ext
16791cat >>conftest.$ac_ext <<_ACEOF
16792/* end confdefs.h. */
16793$ac_includes_default
16794long longval () { return (long) (sizeof (void *)); }
16795unsigned long ulongval () { return (long) (sizeof (void *)); }
16796#include <stdio.h>
16797#include <stdlib.h>
16798int
16799main ()
16800{
16801
16802 FILE *f = fopen ("conftest.val", "w");
16803 if (! f)
16804 exit (1);
16805 if (((long) (sizeof (void *))) < 0)
16806 {
16807 long i = longval ();
16808 if (i != ((long) (sizeof (void *))))
16809 exit (1);
16810 fprintf (f, "%ld\n", i);
16811 }
16812 else
16813 {
16814 unsigned long i = ulongval ();
16815 if (i != ((long) (sizeof (void *))))
16816 exit (1);
16817 fprintf (f, "%lu\n", i);
16818 }
16819 exit (ferror (f) || fclose (f) != 0);
16820
16821 ;
16822 return 0;
16823}
16824_ACEOF
16825rm -f conftest$ac_exeext
16826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16827 (eval $ac_link) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836 ac_cv_sizeof_void_p=`cat conftest.val`
16837else
16838 echo "$as_me: program exited with status $ac_status" >&5
16839echo "$as_me: failed program was:" >&5
16840sed 's/^/| /' conftest.$ac_ext >&5
16841
16842( exit $ac_status )
16843{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16844See \`config.log' for more details." >&5
16845echo "$as_me: error: cannot compute sizeof (void *), 77
16846See \`config.log' for more details." >&2;}
16847 { (exit 1); exit 1; }; }
16848fi
ac1cb8d3 16849rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16850fi
16851fi
16852rm -f conftest.val
16853else
16854 ac_cv_sizeof_void_p=0
16855fi
16856fi
16857echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16858echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16859cat >>confdefs.h <<_ACEOF
16860#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16861_ACEOF
16862
16863
16864echo "$as_me:$LINENO: checking for int" >&5
16865echo $ECHO_N "checking for int... $ECHO_C" >&6
16866if test "${ac_cv_type_int+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868else
16869 cat >conftest.$ac_ext <<_ACEOF
16870/* confdefs.h. */
16871_ACEOF
16872cat confdefs.h >>conftest.$ac_ext
16873cat >>conftest.$ac_ext <<_ACEOF
16874/* end confdefs.h. */
16875$ac_includes_default
16876int
16877main ()
16878{
16879if ((int *) 0)
16880 return 0;
16881if (sizeof (int))
16882 return 0;
16883 ;
16884 return 0;
16885}
16886_ACEOF
16887rm -f conftest.$ac_objext
16888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16889 (eval $ac_compile) 2>conftest.er1
a848cd7e 16890 ac_status=$?
ac1cb8d3
VS
16891 grep -v '^ *+' conftest.er1 >conftest.err
16892 rm -f conftest.er1
16893 cat conftest.err >&5
a848cd7e
SC
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } &&
8c539582 16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_cv_type_int=yes
16909else
16910 echo "$as_me: failed program was:" >&5
16911sed 's/^/| /' conftest.$ac_ext >&5
16912
16913ac_cv_type_int=no
16914fi
ac1cb8d3 16915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16916fi
16917echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16918echo "${ECHO_T}$ac_cv_type_int" >&6
16919
16920echo "$as_me:$LINENO: checking size of int" >&5
16921echo $ECHO_N "checking size of int... $ECHO_C" >&6
16922if test "${ac_cv_sizeof_int+set}" = set; then
16923 echo $ECHO_N "(cached) $ECHO_C" >&6
16924else
16925 if test "$ac_cv_type_int" = yes; then
16926 # The cast to unsigned long works around a bug in the HP C Compiler
16927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16929 # This bug is HP SR number 8606223364.
16930 if test "$cross_compiling" = yes; then
16931 # Depending upon the size, compute the lo and hi bounds.
16932cat >conftest.$ac_ext <<_ACEOF
16933/* confdefs.h. */
16934_ACEOF
16935cat confdefs.h >>conftest.$ac_ext
16936cat >>conftest.$ac_ext <<_ACEOF
16937/* end confdefs.h. */
16938$ac_includes_default
16939int
16940main ()
16941{
16942static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16943test_array [0] = 0
16944
16945 ;
16946 return 0;
16947}
16948_ACEOF
16949rm -f conftest.$ac_objext
16950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16951 (eval $ac_compile) 2>conftest.er1
a848cd7e 16952 ac_status=$?
ac1cb8d3
VS
16953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
a848cd7e
SC
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } &&
8c539582 16958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; } &&
16964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_lo=0 ac_mid=0
16971 while :; do
16972 cat >conftest.$ac_ext <<_ACEOF
16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
16978$ac_includes_default
16979int
16980main ()
16981{
16982static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16983test_array [0] = 0
16984
16985 ;
16986 return 0;
16987}
16988_ACEOF
16989rm -f conftest.$ac_objext
16990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16991 (eval $ac_compile) 2>conftest.er1
a848cd7e 16992 ac_status=$?
ac1cb8d3
VS
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
a848cd7e
SC
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
8c539582 16998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_hi=$ac_mid; break
17011else
17012 echo "$as_me: failed program was:" >&5
17013sed 's/^/| /' conftest.$ac_ext >&5
17014
17015ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17016 if test $ac_lo -le $ac_mid; then
17017 ac_lo= ac_hi=
17018 break
17019 fi
17020 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17021fi
ac1cb8d3 17022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17023 done
17024else
17025 echo "$as_me: failed program was:" >&5
17026sed 's/^/| /' conftest.$ac_ext >&5
17027
17028cat >conftest.$ac_ext <<_ACEOF
17029/* confdefs.h. */
17030_ACEOF
17031cat confdefs.h >>conftest.$ac_ext
17032cat >>conftest.$ac_ext <<_ACEOF
17033/* end confdefs.h. */
17034$ac_includes_default
17035int
17036main ()
17037{
17038static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17039test_array [0] = 0
17040
17041 ;
17042 return 0;
17043}
17044_ACEOF
17045rm -f conftest.$ac_objext
17046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17047 (eval $ac_compile) 2>conftest.er1
a848cd7e 17048 ac_status=$?
ac1cb8d3
VS
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
a848cd7e
SC
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
8c539582 17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_hi=-1 ac_mid=-1
17067 while :; do
17068 cat >conftest.$ac_ext <<_ACEOF
17069/* confdefs.h. */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
17073/* end confdefs.h. */
17074$ac_includes_default
17075int
17076main ()
17077{
17078static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17079test_array [0] = 0
17080
17081 ;
17082 return 0;
17083}
17084_ACEOF
17085rm -f conftest.$ac_objext
17086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17087 (eval $ac_compile) 2>conftest.er1
a848cd7e 17088 ac_status=$?
ac1cb8d3
VS
17089 grep -v '^ *+' conftest.er1 >conftest.err
17090 rm -f conftest.er1
17091 cat conftest.err >&5
a848cd7e
SC
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
8c539582 17094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096 (eval $ac_try) 2>&5
17097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; } &&
17100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
17106 ac_lo=$ac_mid; break
17107else
17108 echo "$as_me: failed program was:" >&5
17109sed 's/^/| /' conftest.$ac_ext >&5
17110
17111ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17112 if test $ac_mid -le $ac_hi; then
17113 ac_lo= ac_hi=
17114 break
17115 fi
17116 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17117fi
ac1cb8d3 17118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17119 done
17120else
17121 echo "$as_me: failed program was:" >&5
17122sed 's/^/| /' conftest.$ac_ext >&5
17123
17124ac_lo= ac_hi=
17125fi
ac1cb8d3 17126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17127fi
ac1cb8d3 17128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17129# Binary search between lo and hi bounds.
17130while test "x$ac_lo" != "x$ac_hi"; do
17131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17132 cat >conftest.$ac_ext <<_ACEOF
17133/* confdefs.h. */
17134_ACEOF
17135cat confdefs.h >>conftest.$ac_ext
17136cat >>conftest.$ac_ext <<_ACEOF
17137/* end confdefs.h. */
17138$ac_includes_default
17139int
17140main ()
17141{
17142static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17143test_array [0] = 0
17144
17145 ;
17146 return 0;
17147}
17148_ACEOF
17149rm -f conftest.$ac_objext
17150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17151 (eval $ac_compile) 2>conftest.er1
a848cd7e 17152 ac_status=$?
ac1cb8d3
VS
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
a848cd7e
SC
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
8c539582 17158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 ac_hi=$ac_mid
17171else
17172 echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175ac_lo=`expr '(' $ac_mid ')' + 1`
17176fi
ac1cb8d3 17177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17178done
17179case $ac_lo in
17180?*) ac_cv_sizeof_int=$ac_lo;;
17181'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17182See \`config.log' for more details." >&5
17183echo "$as_me: error: cannot compute sizeof (int), 77
17184See \`config.log' for more details." >&2;}
17185 { (exit 1); exit 1; }; } ;;
17186esac
17187else
17188 if test "$cross_compiling" = yes; then
8c539582
RL
17189 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17190echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17191 { (exit 1); exit 1; }; }
17192else
17193 cat >conftest.$ac_ext <<_ACEOF
17194/* confdefs.h. */
17195_ACEOF
17196cat confdefs.h >>conftest.$ac_ext
17197cat >>conftest.$ac_ext <<_ACEOF
17198/* end confdefs.h. */
17199$ac_includes_default
17200long longval () { return (long) (sizeof (int)); }
17201unsigned long ulongval () { return (long) (sizeof (int)); }
17202#include <stdio.h>
17203#include <stdlib.h>
17204int
17205main ()
17206{
17207
17208 FILE *f = fopen ("conftest.val", "w");
17209 if (! f)
17210 exit (1);
17211 if (((long) (sizeof (int))) < 0)
17212 {
17213 long i = longval ();
17214 if (i != ((long) (sizeof (int))))
17215 exit (1);
17216 fprintf (f, "%ld\n", i);
17217 }
17218 else
17219 {
17220 unsigned long i = ulongval ();
17221 if (i != ((long) (sizeof (int))))
17222 exit (1);
17223 fprintf (f, "%lu\n", i);
17224 }
17225 exit (ferror (f) || fclose (f) != 0);
17226
17227 ;
17228 return 0;
17229}
17230_ACEOF
17231rm -f conftest$ac_exeext
17232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17233 (eval $ac_link) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_cv_sizeof_int=`cat conftest.val`
17243else
17244 echo "$as_me: program exited with status $ac_status" >&5
17245echo "$as_me: failed program was:" >&5
17246sed 's/^/| /' conftest.$ac_ext >&5
17247
17248( exit $ac_status )
17249{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17250See \`config.log' for more details." >&5
17251echo "$as_me: error: cannot compute sizeof (int), 77
17252See \`config.log' for more details." >&2;}
17253 { (exit 1); exit 1; }; }
17254fi
ac1cb8d3 17255rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17256fi
17257fi
17258rm -f conftest.val
17259else
17260 ac_cv_sizeof_int=0
17261fi
17262fi
17263echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17264echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17265cat >>confdefs.h <<_ACEOF
17266#define SIZEOF_INT $ac_cv_sizeof_int
17267_ACEOF
17268
17269
17270echo "$as_me:$LINENO: checking for long" >&5
17271echo $ECHO_N "checking for long... $ECHO_C" >&6
17272if test "${ac_cv_type_long+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274else
17275 cat >conftest.$ac_ext <<_ACEOF
17276/* confdefs.h. */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
17280/* end confdefs.h. */
17281$ac_includes_default
17282int
17283main ()
17284{
17285if ((long *) 0)
17286 return 0;
17287if (sizeof (long))
17288 return 0;
17289 ;
17290 return 0;
17291}
17292_ACEOF
17293rm -f conftest.$ac_objext
17294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17295 (eval $ac_compile) 2>conftest.er1
a848cd7e 17296 ac_status=$?
ac1cb8d3
VS
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
a848cd7e
SC
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
8c539582 17302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; } &&
17308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_cv_type_long=yes
17315else
17316 echo "$as_me: failed program was:" >&5
17317sed 's/^/| /' conftest.$ac_ext >&5
17318
17319ac_cv_type_long=no
17320fi
ac1cb8d3 17321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17322fi
17323echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17324echo "${ECHO_T}$ac_cv_type_long" >&6
17325
17326echo "$as_me:$LINENO: checking size of long" >&5
17327echo $ECHO_N "checking size of long... $ECHO_C" >&6
17328if test "${ac_cv_sizeof_long+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330else
17331 if test "$ac_cv_type_long" = yes; then
17332 # The cast to unsigned long works around a bug in the HP C Compiler
17333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17335 # This bug is HP SR number 8606223364.
17336 if test "$cross_compiling" = yes; then
17337 # Depending upon the size, compute the lo and hi bounds.
17338cat >conftest.$ac_ext <<_ACEOF
17339/* confdefs.h. */
17340_ACEOF
17341cat confdefs.h >>conftest.$ac_ext
17342cat >>conftest.$ac_ext <<_ACEOF
17343/* end confdefs.h. */
17344$ac_includes_default
17345int
17346main ()
17347{
17348static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17349test_array [0] = 0
17350
17351 ;
17352 return 0;
17353}
17354_ACEOF
17355rm -f conftest.$ac_objext
17356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17357 (eval $ac_compile) 2>conftest.er1
a848cd7e 17358 ac_status=$?
ac1cb8d3
VS
17359 grep -v '^ *+' conftest.er1 >conftest.err
17360 rm -f conftest.er1
17361 cat conftest.err >&5
a848cd7e
SC
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
8c539582 17364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_lo=0 ac_mid=0
17377 while :; do
17378 cat >conftest.$ac_ext <<_ACEOF
17379/* confdefs.h. */
17380_ACEOF
17381cat confdefs.h >>conftest.$ac_ext
17382cat >>conftest.$ac_ext <<_ACEOF
17383/* end confdefs.h. */
17384$ac_includes_default
17385int
17386main ()
17387{
17388static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17389test_array [0] = 0
17390
17391 ;
17392 return 0;
17393}
17394_ACEOF
17395rm -f conftest.$ac_objext
17396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17397 (eval $ac_compile) 2>conftest.er1
a848cd7e 17398 ac_status=$?
ac1cb8d3
VS
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
a848cd7e
SC
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
8c539582 17404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_hi=$ac_mid; break
17417else
17418 echo "$as_me: failed program was:" >&5
17419sed 's/^/| /' conftest.$ac_ext >&5
17420
17421ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17422 if test $ac_lo -le $ac_mid; then
17423 ac_lo= ac_hi=
17424 break
17425 fi
17426 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17427fi
ac1cb8d3 17428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17429 done
17430else
17431 echo "$as_me: failed program was:" >&5
17432sed 's/^/| /' conftest.$ac_ext >&5
17433
17434cat >conftest.$ac_ext <<_ACEOF
17435/* confdefs.h. */
17436_ACEOF
17437cat confdefs.h >>conftest.$ac_ext
17438cat >>conftest.$ac_ext <<_ACEOF
17439/* end confdefs.h. */
17440$ac_includes_default
17441int
17442main ()
17443{
17444static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17445test_array [0] = 0
17446
17447 ;
17448 return 0;
17449}
17450_ACEOF
17451rm -f conftest.$ac_objext
17452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17453 (eval $ac_compile) 2>conftest.er1
a848cd7e 17454 ac_status=$?
ac1cb8d3
VS
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
a848cd7e
SC
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
8c539582 17460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 ac_hi=-1 ac_mid=-1
17473 while :; do
17474 cat >conftest.$ac_ext <<_ACEOF
17475/* confdefs.h. */
17476_ACEOF
17477cat confdefs.h >>conftest.$ac_ext
17478cat >>conftest.$ac_ext <<_ACEOF
17479/* end confdefs.h. */
17480$ac_includes_default
17481int
17482main ()
17483{
17484static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17485test_array [0] = 0
17486
17487 ;
17488 return 0;
17489}
17490_ACEOF
17491rm -f conftest.$ac_objext
17492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17493 (eval $ac_compile) 2>conftest.er1
a848cd7e 17494 ac_status=$?
ac1cb8d3
VS
17495 grep -v '^ *+' conftest.er1 >conftest.err
17496 rm -f conftest.er1
17497 cat conftest.err >&5
a848cd7e
SC
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
8c539582 17500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; }; then
17512 ac_lo=$ac_mid; break
17513else
17514 echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
17516
17517ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17518 if test $ac_mid -le $ac_hi; then
17519 ac_lo= ac_hi=
17520 break
17521 fi
17522 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17523fi
ac1cb8d3 17524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17525 done
17526else
17527 echo "$as_me: failed program was:" >&5
17528sed 's/^/| /' conftest.$ac_ext >&5
17529
17530ac_lo= ac_hi=
17531fi
ac1cb8d3 17532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17533fi
ac1cb8d3 17534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17535# Binary search between lo and hi bounds.
17536while test "x$ac_lo" != "x$ac_hi"; do
17537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17538 cat >conftest.$ac_ext <<_ACEOF
17539/* confdefs.h. */
17540_ACEOF
17541cat confdefs.h >>conftest.$ac_ext
17542cat >>conftest.$ac_ext <<_ACEOF
17543/* end confdefs.h. */
17544$ac_includes_default
17545int
17546main ()
17547{
17548static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17549test_array [0] = 0
17550
17551 ;
17552 return 0;
17553}
17554_ACEOF
17555rm -f conftest.$ac_objext
17556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17557 (eval $ac_compile) 2>conftest.er1
a848cd7e 17558 ac_status=$?
ac1cb8d3
VS
17559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
a848cd7e
SC
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
8c539582 17564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 ac_hi=$ac_mid
17577else
17578 echo "$as_me: failed program was:" >&5
17579sed 's/^/| /' conftest.$ac_ext >&5
17580
17581ac_lo=`expr '(' $ac_mid ')' + 1`
17582fi
ac1cb8d3 17583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17584done
17585case $ac_lo in
17586?*) ac_cv_sizeof_long=$ac_lo;;
17587'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17588See \`config.log' for more details." >&5
17589echo "$as_me: error: cannot compute sizeof (long), 77
17590See \`config.log' for more details." >&2;}
17591 { (exit 1); exit 1; }; } ;;
17592esac
17593else
17594 if test "$cross_compiling" = yes; then
8c539582
RL
17595 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17596echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17597 { (exit 1); exit 1; }; }
17598else
17599 cat >conftest.$ac_ext <<_ACEOF
17600/* confdefs.h. */
17601_ACEOF
17602cat confdefs.h >>conftest.$ac_ext
17603cat >>conftest.$ac_ext <<_ACEOF
17604/* end confdefs.h. */
17605$ac_includes_default
17606long longval () { return (long) (sizeof (long)); }
17607unsigned long ulongval () { return (long) (sizeof (long)); }
17608#include <stdio.h>
17609#include <stdlib.h>
17610int
17611main ()
17612{
17613
17614 FILE *f = fopen ("conftest.val", "w");
17615 if (! f)
17616 exit (1);
17617 if (((long) (sizeof (long))) < 0)
17618 {
17619 long i = longval ();
17620 if (i != ((long) (sizeof (long))))
17621 exit (1);
17622 fprintf (f, "%ld\n", i);
17623 }
17624 else
17625 {
17626 unsigned long i = ulongval ();
17627 if (i != ((long) (sizeof (long))))
17628 exit (1);
17629 fprintf (f, "%lu\n", i);
17630 }
17631 exit (ferror (f) || fclose (f) != 0);
17632
17633 ;
17634 return 0;
17635}
17636_ACEOF
17637rm -f conftest$ac_exeext
17638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17645 ac_status=$?
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; }; then
17648 ac_cv_sizeof_long=`cat conftest.val`
17649else
17650 echo "$as_me: program exited with status $ac_status" >&5
17651echo "$as_me: failed program was:" >&5
17652sed 's/^/| /' conftest.$ac_ext >&5
17653
17654( exit $ac_status )
17655{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17656See \`config.log' for more details." >&5
17657echo "$as_me: error: cannot compute sizeof (long), 77
17658See \`config.log' for more details." >&2;}
17659 { (exit 1); exit 1; }; }
17660fi
ac1cb8d3 17661rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17662fi
17663fi
17664rm -f conftest.val
17665else
17666 ac_cv_sizeof_long=0
17667fi
17668fi
17669echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17670echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17671cat >>confdefs.h <<_ACEOF
17672#define SIZEOF_LONG $ac_cv_sizeof_long
17673_ACEOF
17674
17675
17676echo "$as_me:$LINENO: checking for size_t" >&5
17677echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17678if test "${ac_cv_type_size_t+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17680else
17681 cat >conftest.$ac_ext <<_ACEOF
17682/* confdefs.h. */
17683_ACEOF
17684cat confdefs.h >>conftest.$ac_ext
17685cat >>conftest.$ac_ext <<_ACEOF
17686/* end confdefs.h. */
17687$ac_includes_default
17688int
17689main ()
17690{
17691if ((size_t *) 0)
17692 return 0;
17693if (sizeof (size_t))
17694 return 0;
17695 ;
17696 return 0;
17697}
17698_ACEOF
17699rm -f conftest.$ac_objext
17700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17701 (eval $ac_compile) 2>conftest.er1
a848cd7e 17702 ac_status=$?
ac1cb8d3
VS
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
a848cd7e
SC
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
8c539582 17708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; } &&
17714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_cv_type_size_t=yes
17721else
17722 echo "$as_me: failed program was:" >&5
17723sed 's/^/| /' conftest.$ac_ext >&5
17724
17725ac_cv_type_size_t=no
17726fi
ac1cb8d3 17727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17728fi
17729echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17730echo "${ECHO_T}$ac_cv_type_size_t" >&6
17731
17732echo "$as_me:$LINENO: checking size of size_t" >&5
17733echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17734if test "${ac_cv_sizeof_size_t+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17736else
17737 if test "$ac_cv_type_size_t" = yes; then
17738 # The cast to unsigned long works around a bug in the HP C Compiler
17739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17741 # This bug is HP SR number 8606223364.
17742 if test "$cross_compiling" = yes; then
17743 # Depending upon the size, compute the lo and hi bounds.
17744cat >conftest.$ac_ext <<_ACEOF
17745/* confdefs.h. */
17746_ACEOF
17747cat confdefs.h >>conftest.$ac_ext
17748cat >>conftest.$ac_ext <<_ACEOF
17749/* end confdefs.h. */
17750$ac_includes_default
17751int
17752main ()
17753{
17754static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17755test_array [0] = 0
17756
17757 ;
17758 return 0;
17759}
17760_ACEOF
17761rm -f conftest.$ac_objext
17762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17763 (eval $ac_compile) 2>conftest.er1
a848cd7e 17764 ac_status=$?
ac1cb8d3
VS
17765 grep -v '^ *+' conftest.er1 >conftest.err
17766 rm -f conftest.er1
17767 cat conftest.err >&5
a848cd7e
SC
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
8c539582 17770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 ac_lo=0 ac_mid=0
17783 while :; do
17784 cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
17789/* end confdefs.h. */
17790$ac_includes_default
17791int
17792main ()
17793{
17794static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17795test_array [0] = 0
17796
17797 ;
17798 return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext
17802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17803 (eval $ac_compile) 2>conftest.er1
a848cd7e 17804 ac_status=$?
ac1cb8d3
VS
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
a848cd7e
SC
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
8c539582 17810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_hi=$ac_mid; break
17823else
17824 echo "$as_me: failed program was:" >&5
17825sed 's/^/| /' conftest.$ac_ext >&5
17826
17827ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17828 if test $ac_lo -le $ac_mid; then
17829 ac_lo= ac_hi=
17830 break
17831 fi
17832 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17833fi
ac1cb8d3 17834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17835 done
17836else
17837 echo "$as_me: failed program was:" >&5
17838sed 's/^/| /' conftest.$ac_ext >&5
17839
17840cat >conftest.$ac_ext <<_ACEOF
17841/* confdefs.h. */
17842_ACEOF
17843cat confdefs.h >>conftest.$ac_ext
17844cat >>conftest.$ac_ext <<_ACEOF
17845/* end confdefs.h. */
17846$ac_includes_default
17847int
17848main ()
17849{
17850static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17851test_array [0] = 0
17852
17853 ;
17854 return 0;
17855}
17856_ACEOF
17857rm -f conftest.$ac_objext
17858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17859 (eval $ac_compile) 2>conftest.er1
a848cd7e 17860 ac_status=$?
ac1cb8d3
VS
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
a848cd7e
SC
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
8c539582 17866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_hi=-1 ac_mid=-1
17879 while :; do
17880 cat >conftest.$ac_ext <<_ACEOF
17881/* confdefs.h. */
17882_ACEOF
17883cat confdefs.h >>conftest.$ac_ext
17884cat >>conftest.$ac_ext <<_ACEOF
17885/* end confdefs.h. */
17886$ac_includes_default
17887int
17888main ()
17889{
17890static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17891test_array [0] = 0
17892
17893 ;
17894 return 0;
17895}
17896_ACEOF
17897rm -f conftest.$ac_objext
17898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17899 (eval $ac_compile) 2>conftest.er1
a848cd7e 17900 ac_status=$?
ac1cb8d3
VS
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
a848cd7e
SC
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
8c539582 17906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_lo=$ac_mid; break
17919else
17920 echo "$as_me: failed program was:" >&5
17921sed 's/^/| /' conftest.$ac_ext >&5
17922
17923ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17924 if test $ac_mid -le $ac_hi; then
17925 ac_lo= ac_hi=
17926 break
17927 fi
17928 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17929fi
ac1cb8d3 17930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17931 done
17932else
17933 echo "$as_me: failed program was:" >&5
17934sed 's/^/| /' conftest.$ac_ext >&5
17935
17936ac_lo= ac_hi=
17937fi
ac1cb8d3 17938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17939fi
ac1cb8d3 17940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17941# Binary search between lo and hi bounds.
17942while test "x$ac_lo" != "x$ac_hi"; do
17943 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17944 cat >conftest.$ac_ext <<_ACEOF
17945/* confdefs.h. */
17946_ACEOF
17947cat confdefs.h >>conftest.$ac_ext
17948cat >>conftest.$ac_ext <<_ACEOF
17949/* end confdefs.h. */
17950$ac_includes_default
17951int
17952main ()
17953{
17954static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17955test_array [0] = 0
17956
17957 ;
17958 return 0;
17959}
17960_ACEOF
17961rm -f conftest.$ac_objext
17962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17963 (eval $ac_compile) 2>conftest.er1
a848cd7e 17964 ac_status=$?
ac1cb8d3
VS
17965 grep -v '^ *+' conftest.er1 >conftest.err
17966 rm -f conftest.er1
17967 cat conftest.err >&5
a848cd7e
SC
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } &&
8c539582 17970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; } &&
17976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; }; then
17982 ac_hi=$ac_mid
17983else
17984 echo "$as_me: failed program was:" >&5
17985sed 's/^/| /' conftest.$ac_ext >&5
17986
17987ac_lo=`expr '(' $ac_mid ')' + 1`
17988fi
ac1cb8d3 17989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17990done
17991case $ac_lo in
17992?*) ac_cv_sizeof_size_t=$ac_lo;;
17993'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17994See \`config.log' for more details." >&5
17995echo "$as_me: error: cannot compute sizeof (size_t), 77
17996See \`config.log' for more details." >&2;}
17997 { (exit 1); exit 1; }; } ;;
17998esac
17999else
18000 if test "$cross_compiling" = yes; then
8c539582
RL
18001 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18002echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18003 { (exit 1); exit 1; }; }
18004else
18005 cat >conftest.$ac_ext <<_ACEOF
18006/* confdefs.h. */
18007_ACEOF
18008cat confdefs.h >>conftest.$ac_ext
18009cat >>conftest.$ac_ext <<_ACEOF
18010/* end confdefs.h. */
18011$ac_includes_default
18012long longval () { return (long) (sizeof (size_t)); }
18013unsigned long ulongval () { return (long) (sizeof (size_t)); }
18014#include <stdio.h>
18015#include <stdlib.h>
18016int
18017main ()
18018{
18019
18020 FILE *f = fopen ("conftest.val", "w");
18021 if (! f)
18022 exit (1);
18023 if (((long) (sizeof (size_t))) < 0)
18024 {
18025 long i = longval ();
18026 if (i != ((long) (sizeof (size_t))))
18027 exit (1);
18028 fprintf (f, "%ld\n", i);
18029 }
18030 else
18031 {
18032 unsigned long i = ulongval ();
18033 if (i != ((long) (sizeof (size_t))))
18034 exit (1);
18035 fprintf (f, "%lu\n", i);
18036 }
18037 exit (ferror (f) || fclose (f) != 0);
18038
18039 ;
18040 return 0;
18041}
18042_ACEOF
18043rm -f conftest$ac_exeext
18044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18045 (eval $ac_link) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 ac_cv_sizeof_size_t=`cat conftest.val`
18055else
18056 echo "$as_me: program exited with status $ac_status" >&5
18057echo "$as_me: failed program was:" >&5
18058sed 's/^/| /' conftest.$ac_ext >&5
18059
18060( exit $ac_status )
18061{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18062See \`config.log' for more details." >&5
18063echo "$as_me: error: cannot compute sizeof (size_t), 77
18064See \`config.log' for more details." >&2;}
18065 { (exit 1); exit 1; }; }
18066fi
ac1cb8d3 18067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18068fi
18069fi
18070rm -f conftest.val
18071else
18072 ac_cv_sizeof_size_t=0
18073fi
18074fi
18075echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18076echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18077cat >>confdefs.h <<_ACEOF
18078#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18079_ACEOF
18080
18081
18082
18083case "${host}" in
18084 arm-*-linux* )
18085 echo "$as_me:$LINENO: checking for long long" >&5
18086echo $ECHO_N "checking for long long... $ECHO_C" >&6
18087if test "${ac_cv_type_long_long+set}" = set; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18089else
18090 cat >conftest.$ac_ext <<_ACEOF
18091/* confdefs.h. */
18092_ACEOF
18093cat confdefs.h >>conftest.$ac_ext
18094cat >>conftest.$ac_ext <<_ACEOF
18095/* end confdefs.h. */
18096$ac_includes_default
18097int
18098main ()
18099{
18100if ((long long *) 0)
18101 return 0;
18102if (sizeof (long long))
18103 return 0;
18104 ;
18105 return 0;
18106}
18107_ACEOF
18108rm -f conftest.$ac_objext
18109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18110 (eval $ac_compile) 2>conftest.er1
a848cd7e 18111 ac_status=$?
ac1cb8d3
VS
18112 grep -v '^ *+' conftest.er1 >conftest.err
18113 rm -f conftest.er1
18114 cat conftest.err >&5
a848cd7e
SC
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
8c539582 18117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; }; then
18129 ac_cv_type_long_long=yes
18130else
18131 echo "$as_me: failed program was:" >&5
18132sed 's/^/| /' conftest.$ac_ext >&5
18133
18134ac_cv_type_long_long=no
18135fi
ac1cb8d3 18136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18137fi
18138echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18139echo "${ECHO_T}$ac_cv_type_long_long" >&6
18140
18141echo "$as_me:$LINENO: checking size of long long" >&5
18142echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18143if test "${ac_cv_sizeof_long_long+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145else
18146 if test "$ac_cv_type_long_long" = yes; then
18147 # The cast to unsigned long works around a bug in the HP C Compiler
18148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18150 # This bug is HP SR number 8606223364.
18151 if test "$cross_compiling" = yes; then
18152 # Depending upon the size, compute the lo and hi bounds.
18153cat >conftest.$ac_ext <<_ACEOF
18154/* confdefs.h. */
18155_ACEOF
18156cat confdefs.h >>conftest.$ac_ext
18157cat >>conftest.$ac_ext <<_ACEOF
18158/* end confdefs.h. */
18159$ac_includes_default
18160int
18161main ()
18162{
18163static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18164test_array [0] = 0
18165
18166 ;
18167 return 0;
18168}
18169_ACEOF
18170rm -f conftest.$ac_objext
18171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18172 (eval $ac_compile) 2>conftest.er1
a848cd7e 18173 ac_status=$?
ac1cb8d3
VS
18174 grep -v '^ *+' conftest.er1 >conftest.err
18175 rm -f conftest.er1
18176 cat conftest.err >&5
a848cd7e
SC
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
8c539582 18179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; } &&
18185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 ac_lo=0 ac_mid=0
18192 while :; do
18193 cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
18199$ac_includes_default
18200int
18201main ()
18202{
18203static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18204test_array [0] = 0
18205
18206 ;
18207 return 0;
18208}
18209_ACEOF
18210rm -f conftest.$ac_objext
18211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18212 (eval $ac_compile) 2>conftest.er1
a848cd7e 18213 ac_status=$?
ac1cb8d3
VS
18214 grep -v '^ *+' conftest.er1 >conftest.err
18215 rm -f conftest.er1
18216 cat conftest.err >&5
a848cd7e
SC
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } &&
8c539582 18219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 ac_hi=$ac_mid; break
18232else
18233 echo "$as_me: failed program was:" >&5
18234sed 's/^/| /' conftest.$ac_ext >&5
18235
18236ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18237 if test $ac_lo -le $ac_mid; then
18238 ac_lo= ac_hi=
18239 break
18240 fi
18241 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18242fi
ac1cb8d3 18243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18244 done
18245else
18246 echo "$as_me: failed program was:" >&5
18247sed 's/^/| /' conftest.$ac_ext >&5
18248
18249cat >conftest.$ac_ext <<_ACEOF
18250/* confdefs.h. */
18251_ACEOF
18252cat confdefs.h >>conftest.$ac_ext
18253cat >>conftest.$ac_ext <<_ACEOF
18254/* end confdefs.h. */
18255$ac_includes_default
18256int
18257main ()
18258{
18259static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18260test_array [0] = 0
18261
18262 ;
18263 return 0;
18264}
18265_ACEOF
18266rm -f conftest.$ac_objext
18267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18268 (eval $ac_compile) 2>conftest.er1
a848cd7e 18269 ac_status=$?
ac1cb8d3
VS
18270 grep -v '^ *+' conftest.er1 >conftest.err
18271 rm -f conftest.er1
18272 cat conftest.err >&5
a848cd7e
SC
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
8c539582 18275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; }; then
18287 ac_hi=-1 ac_mid=-1
18288 while :; do
18289 cat >conftest.$ac_ext <<_ACEOF
18290/* confdefs.h. */
18291_ACEOF
18292cat confdefs.h >>conftest.$ac_ext
18293cat >>conftest.$ac_ext <<_ACEOF
18294/* end confdefs.h. */
18295$ac_includes_default
18296int
18297main ()
18298{
18299static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18300test_array [0] = 0
18301
18302 ;
18303 return 0;
18304}
18305_ACEOF
18306rm -f conftest.$ac_objext
18307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18308 (eval $ac_compile) 2>conftest.er1
a848cd7e 18309 ac_status=$?
ac1cb8d3
VS
18310 grep -v '^ *+' conftest.er1 >conftest.err
18311 rm -f conftest.er1
18312 cat conftest.err >&5
a848cd7e
SC
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } &&
8c539582 18315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; } &&
18321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 ac_lo=$ac_mid; break
18328else
18329 echo "$as_me: failed program was:" >&5
18330sed 's/^/| /' conftest.$ac_ext >&5
18331
18332ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18333 if test $ac_mid -le $ac_hi; then
18334 ac_lo= ac_hi=
18335 break
18336 fi
18337 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18338fi
ac1cb8d3 18339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18340 done
18341else
18342 echo "$as_me: failed program was:" >&5
18343sed 's/^/| /' conftest.$ac_ext >&5
18344
18345ac_lo= ac_hi=
18346fi
ac1cb8d3 18347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18348fi
ac1cb8d3 18349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18350# Binary search between lo and hi bounds.
18351while test "x$ac_lo" != "x$ac_hi"; do
18352 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18353 cat >conftest.$ac_ext <<_ACEOF
18354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
18358/* end confdefs.h. */
18359$ac_includes_default
18360int
18361main ()
18362{
18363static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18364test_array [0] = 0
18365
18366 ;
18367 return 0;
18368}
18369_ACEOF
18370rm -f conftest.$ac_objext
18371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18372 (eval $ac_compile) 2>conftest.er1
a848cd7e 18373 ac_status=$?
ac1cb8d3
VS
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
a848cd7e
SC
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
8c539582 18379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_hi=$ac_mid
18392else
18393 echo "$as_me: failed program was:" >&5
18394sed 's/^/| /' conftest.$ac_ext >&5
18395
18396ac_lo=`expr '(' $ac_mid ')' + 1`
18397fi
ac1cb8d3 18398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18399done
18400case $ac_lo in
18401?*) ac_cv_sizeof_long_long=$ac_lo;;
18402'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18403See \`config.log' for more details." >&5
18404echo "$as_me: error: cannot compute sizeof (long long), 77
18405See \`config.log' for more details." >&2;}
18406 { (exit 1); exit 1; }; } ;;
18407esac
18408else
18409 if test "$cross_compiling" = yes; then
8c539582
RL
18410 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18411echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18412 { (exit 1); exit 1; }; }
18413else
18414 cat >conftest.$ac_ext <<_ACEOF
18415/* confdefs.h. */
18416_ACEOF
18417cat confdefs.h >>conftest.$ac_ext
18418cat >>conftest.$ac_ext <<_ACEOF
18419/* end confdefs.h. */
18420$ac_includes_default
18421long longval () { return (long) (sizeof (long long)); }
18422unsigned long ulongval () { return (long) (sizeof (long long)); }
18423#include <stdio.h>
18424#include <stdlib.h>
18425int
18426main ()
18427{
18428
18429 FILE *f = fopen ("conftest.val", "w");
18430 if (! f)
18431 exit (1);
18432 if (((long) (sizeof (long long))) < 0)
18433 {
18434 long i = longval ();
18435 if (i != ((long) (sizeof (long long))))
18436 exit (1);
18437 fprintf (f, "%ld\n", i);
18438 }
18439 else
18440 {
18441 unsigned long i = ulongval ();
18442 if (i != ((long) (sizeof (long long))))
18443 exit (1);
18444 fprintf (f, "%lu\n", i);
18445 }
18446 exit (ferror (f) || fclose (f) != 0);
18447
18448 ;
18449 return 0;
18450}
18451_ACEOF
18452rm -f conftest$ac_exeext
18453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18454 (eval $ac_link) 2>&5
18455 ac_status=$?
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; }; then
18463 ac_cv_sizeof_long_long=`cat conftest.val`
18464else
18465 echo "$as_me: program exited with status $ac_status" >&5
18466echo "$as_me: failed program was:" >&5
18467sed 's/^/| /' conftest.$ac_ext >&5
18468
18469( exit $ac_status )
18470{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18471See \`config.log' for more details." >&5
18472echo "$as_me: error: cannot compute sizeof (long long), 77
18473See \`config.log' for more details." >&2;}
18474 { (exit 1); exit 1; }; }
18475fi
ac1cb8d3 18476rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18477fi
18478fi
18479rm -f conftest.val
18480else
18481 ac_cv_sizeof_long_long=0
18482fi
18483fi
18484echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18485echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18486cat >>confdefs.h <<_ACEOF
18487#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18488_ACEOF
18489
18490
18491 ;;
18492 *-hp-hpux* )
18493 echo "$as_me:$LINENO: checking for long long" >&5
18494echo $ECHO_N "checking for long long... $ECHO_C" >&6
18495if test "${ac_cv_type_long_long+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497else
18498 cat >conftest.$ac_ext <<_ACEOF
18499/* confdefs.h. */
18500_ACEOF
18501cat confdefs.h >>conftest.$ac_ext
18502cat >>conftest.$ac_ext <<_ACEOF
18503/* end confdefs.h. */
18504$ac_includes_default
18505int
18506main ()
18507{
18508if ((long long *) 0)
18509 return 0;
18510if (sizeof (long long))
18511 return 0;
18512 ;
18513 return 0;
18514}
18515_ACEOF
18516rm -f conftest.$ac_objext
18517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18518 (eval $ac_compile) 2>conftest.er1
a848cd7e 18519 ac_status=$?
ac1cb8d3
VS
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
a848cd7e
SC
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
8c539582 18525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_cv_type_long_long=yes
18538else
18539 echo "$as_me: failed program was:" >&5
18540sed 's/^/| /' conftest.$ac_ext >&5
18541
18542ac_cv_type_long_long=no
18543fi
ac1cb8d3 18544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18545fi
18546echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18547echo "${ECHO_T}$ac_cv_type_long_long" >&6
18548
18549echo "$as_me:$LINENO: checking size of long long" >&5
18550echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18551if test "${ac_cv_sizeof_long_long+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553else
18554 if test "$ac_cv_type_long_long" = yes; then
18555 # The cast to unsigned long works around a bug in the HP C Compiler
18556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18558 # This bug is HP SR number 8606223364.
18559 if test "$cross_compiling" = yes; then
18560 # Depending upon the size, compute the lo and hi bounds.
18561cat >conftest.$ac_ext <<_ACEOF
18562/* confdefs.h. */
18563_ACEOF
18564cat confdefs.h >>conftest.$ac_ext
18565cat >>conftest.$ac_ext <<_ACEOF
18566/* end confdefs.h. */
18567$ac_includes_default
18568int
18569main ()
18570{
18571static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18572test_array [0] = 0
18573
18574 ;
18575 return 0;
18576}
18577_ACEOF
18578rm -f conftest.$ac_objext
18579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18580 (eval $ac_compile) 2>conftest.er1
a848cd7e 18581 ac_status=$?
ac1cb8d3
VS
18582 grep -v '^ *+' conftest.er1 >conftest.err
18583 rm -f conftest.er1
18584 cat conftest.err >&5
a848cd7e
SC
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
8c539582 18587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589 (eval $ac_try) 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; } &&
18593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 ac_lo=0 ac_mid=0
18600 while :; do
18601 cat >conftest.$ac_ext <<_ACEOF
18602/* confdefs.h. */
18603_ACEOF
18604cat confdefs.h >>conftest.$ac_ext
18605cat >>conftest.$ac_ext <<_ACEOF
18606/* end confdefs.h. */
18607$ac_includes_default
18608int
18609main ()
18610{
18611static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18612test_array [0] = 0
18613
18614 ;
18615 return 0;
18616}
18617_ACEOF
18618rm -f conftest.$ac_objext
18619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18620 (eval $ac_compile) 2>conftest.er1
a848cd7e 18621 ac_status=$?
ac1cb8d3
VS
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
a848cd7e
SC
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
8c539582 18627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_hi=$ac_mid; break
18640else
18641 echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
18644ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18645 if test $ac_lo -le $ac_mid; then
18646 ac_lo= ac_hi=
18647 break
18648 fi
18649 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18650fi
ac1cb8d3 18651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18652 done
18653else
18654 echo "$as_me: failed program was:" >&5
18655sed 's/^/| /' conftest.$ac_ext >&5
18656
18657cat >conftest.$ac_ext <<_ACEOF
18658/* confdefs.h. */
18659_ACEOF
18660cat confdefs.h >>conftest.$ac_ext
18661cat >>conftest.$ac_ext <<_ACEOF
18662/* end confdefs.h. */
18663$ac_includes_default
18664int
18665main ()
18666{
18667static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18668test_array [0] = 0
18669
18670 ;
18671 return 0;
18672}
18673_ACEOF
18674rm -f conftest.$ac_objext
18675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18676 (eval $ac_compile) 2>conftest.er1
a848cd7e 18677 ac_status=$?
ac1cb8d3
VS
18678 grep -v '^ *+' conftest.er1 >conftest.err
18679 rm -f conftest.er1
18680 cat conftest.err >&5
a848cd7e
SC
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
8c539582 18683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; } &&
18689 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18692 ac_status=$?
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }; then
18695 ac_hi=-1 ac_mid=-1
18696 while :; do
18697 cat >conftest.$ac_ext <<_ACEOF
18698/* confdefs.h. */
18699_ACEOF
18700cat confdefs.h >>conftest.$ac_ext
18701cat >>conftest.$ac_ext <<_ACEOF
18702/* end confdefs.h. */
18703$ac_includes_default
18704int
18705main ()
18706{
18707static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18708test_array [0] = 0
18709
18710 ;
18711 return 0;
18712}
18713_ACEOF
18714rm -f conftest.$ac_objext
18715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18716 (eval $ac_compile) 2>conftest.er1
a848cd7e 18717 ac_status=$?
ac1cb8d3
VS
18718 grep -v '^ *+' conftest.er1 >conftest.err
18719 rm -f conftest.er1
18720 cat conftest.err >&5
a848cd7e
SC
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } &&
8c539582 18723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; } &&
18729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_lo=$ac_mid; break
18736else
18737 echo "$as_me: failed program was:" >&5
18738sed 's/^/| /' conftest.$ac_ext >&5
18739
18740ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18741 if test $ac_mid -le $ac_hi; then
18742 ac_lo= ac_hi=
18743 break
18744 fi
18745 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18746fi
ac1cb8d3 18747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18748 done
18749else
18750 echo "$as_me: failed program was:" >&5
18751sed 's/^/| /' conftest.$ac_ext >&5
18752
18753ac_lo= ac_hi=
18754fi
ac1cb8d3 18755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18756fi
ac1cb8d3 18757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18758# Binary search between lo and hi bounds.
18759while test "x$ac_lo" != "x$ac_hi"; do
18760 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18761 cat >conftest.$ac_ext <<_ACEOF
18762/* confdefs.h. */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h. */
18767$ac_includes_default
18768int
18769main ()
18770{
18771static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18772test_array [0] = 0
18773
18774 ;
18775 return 0;
18776}
18777_ACEOF
18778rm -f conftest.$ac_objext
18779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18780 (eval $ac_compile) 2>conftest.er1
a848cd7e 18781 ac_status=$?
ac1cb8d3
VS
18782 grep -v '^ *+' conftest.er1 >conftest.err
18783 rm -f conftest.er1
18784 cat conftest.err >&5
a848cd7e
SC
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
8c539582 18787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; } &&
18793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18799 ac_hi=$ac_mid
18800else
18801 echo "$as_me: failed program was:" >&5
18802sed 's/^/| /' conftest.$ac_ext >&5
18803
18804ac_lo=`expr '(' $ac_mid ')' + 1`
18805fi
ac1cb8d3 18806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18807done
18808case $ac_lo in
18809?*) ac_cv_sizeof_long_long=$ac_lo;;
18810'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18811See \`config.log' for more details." >&5
18812echo "$as_me: error: cannot compute sizeof (long long), 77
18813See \`config.log' for more details." >&2;}
18814 { (exit 1); exit 1; }; } ;;
18815esac
18816else
18817 if test "$cross_compiling" = yes; then
8c539582
RL
18818 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18819echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18820 { (exit 1); exit 1; }; }
18821else
18822 cat >conftest.$ac_ext <<_ACEOF
18823/* confdefs.h. */
18824_ACEOF
18825cat confdefs.h >>conftest.$ac_ext
18826cat >>conftest.$ac_ext <<_ACEOF
18827/* end confdefs.h. */
18828$ac_includes_default
18829long longval () { return (long) (sizeof (long long)); }
18830unsigned long ulongval () { return (long) (sizeof (long long)); }
18831#include <stdio.h>
18832#include <stdlib.h>
18833int
18834main ()
18835{
18836
18837 FILE *f = fopen ("conftest.val", "w");
18838 if (! f)
18839 exit (1);
18840 if (((long) (sizeof (long long))) < 0)
18841 {
18842 long i = longval ();
18843 if (i != ((long) (sizeof (long long))))
18844 exit (1);
18845 fprintf (f, "%ld\n", i);
18846 }
18847 else
18848 {
18849 unsigned long i = ulongval ();
18850 if (i != ((long) (sizeof (long long))))
18851 exit (1);
18852 fprintf (f, "%lu\n", i);
18853 }
18854 exit (ferror (f) || fclose (f) != 0);
18855
18856 ;
18857 return 0;
18858}
18859_ACEOF
18860rm -f conftest$ac_exeext
18861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18862 (eval $ac_link) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871 ac_cv_sizeof_long_long=`cat conftest.val`
18872else
18873 echo "$as_me: program exited with status $ac_status" >&5
18874echo "$as_me: failed program was:" >&5
18875sed 's/^/| /' conftest.$ac_ext >&5
18876
18877( exit $ac_status )
18878{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18879See \`config.log' for more details." >&5
18880echo "$as_me: error: cannot compute sizeof (long long), 77
18881See \`config.log' for more details." >&2;}
18882 { (exit 1); exit 1; }; }
18883fi
ac1cb8d3 18884rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18885fi
18886fi
18887rm -f conftest.val
18888else
18889 ac_cv_sizeof_long_long=0
18890fi
18891fi
18892echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18893echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18894cat >>confdefs.h <<_ACEOF
18895#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18896_ACEOF
18897
18898
18899 if test "$ac_cv_sizeof_long_long" != "0"; then
18900 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18901 fi
18902 ;;
18903 * )
18904 echo "$as_me:$LINENO: checking for long long" >&5
18905echo $ECHO_N "checking for long long... $ECHO_C" >&6
18906if test "${ac_cv_type_long_long+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18908else
18909 cat >conftest.$ac_ext <<_ACEOF
18910/* confdefs.h. */
18911_ACEOF
18912cat confdefs.h >>conftest.$ac_ext
18913cat >>conftest.$ac_ext <<_ACEOF
18914/* end confdefs.h. */
18915$ac_includes_default
18916int
18917main ()
18918{
18919if ((long long *) 0)
18920 return 0;
18921if (sizeof (long long))
18922 return 0;
18923 ;
18924 return 0;
18925}
18926_ACEOF
18927rm -f conftest.$ac_objext
18928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18929 (eval $ac_compile) 2>conftest.er1
a848cd7e 18930 ac_status=$?
ac1cb8d3
VS
18931 grep -v '^ *+' conftest.er1 >conftest.err
18932 rm -f conftest.er1
18933 cat conftest.err >&5
a848cd7e
SC
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } &&
8c539582 18936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; } &&
18942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; }; then
18948 ac_cv_type_long_long=yes
18949else
18950 echo "$as_me: failed program was:" >&5
18951sed 's/^/| /' conftest.$ac_ext >&5
18952
18953ac_cv_type_long_long=no
18954fi
ac1cb8d3 18955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18956fi
18957echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18958echo "${ECHO_T}$ac_cv_type_long_long" >&6
18959
18960echo "$as_me:$LINENO: checking size of long long" >&5
18961echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18962if test "${ac_cv_sizeof_long_long+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964else
18965 if test "$ac_cv_type_long_long" = yes; then
18966 # The cast to unsigned long works around a bug in the HP C Compiler
18967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18969 # This bug is HP SR number 8606223364.
18970 if test "$cross_compiling" = yes; then
18971 # Depending upon the size, compute the lo and hi bounds.
18972cat >conftest.$ac_ext <<_ACEOF
18973/* confdefs.h. */
18974_ACEOF
18975cat confdefs.h >>conftest.$ac_ext
18976cat >>conftest.$ac_ext <<_ACEOF
18977/* end confdefs.h. */
18978$ac_includes_default
18979int
18980main ()
18981{
18982static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18983test_array [0] = 0
18984
18985 ;
18986 return 0;
18987}
18988_ACEOF
18989rm -f conftest.$ac_objext
18990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18991 (eval $ac_compile) 2>conftest.er1
a848cd7e 18992 ac_status=$?
ac1cb8d3
VS
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
a848cd7e
SC
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } &&
8c539582 18998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; } &&
19004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; }; then
19010 ac_lo=0 ac_mid=0
19011 while :; do
19012 cat >conftest.$ac_ext <<_ACEOF
19013/* confdefs.h. */
19014_ACEOF
19015cat confdefs.h >>conftest.$ac_ext
19016cat >>conftest.$ac_ext <<_ACEOF
19017/* end confdefs.h. */
19018$ac_includes_default
19019int
19020main ()
19021{
19022static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19023test_array [0] = 0
19024
19025 ;
19026 return 0;
19027}
19028_ACEOF
19029rm -f conftest.$ac_objext
19030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19031 (eval $ac_compile) 2>conftest.er1
a848cd7e 19032 ac_status=$?
ac1cb8d3
VS
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -f conftest.er1
19035 cat conftest.err >&5
a848cd7e
SC
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } &&
8c539582 19038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_hi=$ac_mid; break
19051else
19052 echo "$as_me: failed program was:" >&5
19053sed 's/^/| /' conftest.$ac_ext >&5
19054
19055ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19056 if test $ac_lo -le $ac_mid; then
19057 ac_lo= ac_hi=
19058 break
19059 fi
19060 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19061fi
ac1cb8d3 19062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19063 done
19064else
19065 echo "$as_me: failed program was:" >&5
19066sed 's/^/| /' conftest.$ac_ext >&5
19067
19068cat >conftest.$ac_ext <<_ACEOF
19069/* confdefs.h. */
19070_ACEOF
19071cat confdefs.h >>conftest.$ac_ext
19072cat >>conftest.$ac_ext <<_ACEOF
19073/* end confdefs.h. */
19074$ac_includes_default
19075int
19076main ()
19077{
19078static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19079test_array [0] = 0
19080
19081 ;
19082 return 0;
19083}
19084_ACEOF
19085rm -f conftest.$ac_objext
19086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19087 (eval $ac_compile) 2>conftest.er1
a848cd7e 19088 ac_status=$?
ac1cb8d3
VS
19089 grep -v '^ *+' conftest.er1 >conftest.err
19090 rm -f conftest.er1
19091 cat conftest.err >&5
a848cd7e
SC
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } &&
8c539582 19094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 ac_hi=-1 ac_mid=-1
19107 while :; do
19108 cat >conftest.$ac_ext <<_ACEOF
19109/* confdefs.h. */
19110_ACEOF
19111cat confdefs.h >>conftest.$ac_ext
19112cat >>conftest.$ac_ext <<_ACEOF
19113/* end confdefs.h. */
19114$ac_includes_default
19115int
19116main ()
19117{
19118static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19119test_array [0] = 0
19120
19121 ;
19122 return 0;
19123}
19124_ACEOF
19125rm -f conftest.$ac_objext
19126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19127 (eval $ac_compile) 2>conftest.er1
a848cd7e 19128 ac_status=$?
ac1cb8d3
VS
19129 grep -v '^ *+' conftest.er1 >conftest.err
19130 rm -f conftest.er1
19131 cat conftest.err >&5
a848cd7e
SC
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
8c539582 19134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146 ac_lo=$ac_mid; break
19147else
19148 echo "$as_me: failed program was:" >&5
19149sed 's/^/| /' conftest.$ac_ext >&5
19150
19151ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19152 if test $ac_mid -le $ac_hi; then
19153 ac_lo= ac_hi=
19154 break
19155 fi
19156 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19157fi
ac1cb8d3 19158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19159 done
19160else
19161 echo "$as_me: failed program was:" >&5
19162sed 's/^/| /' conftest.$ac_ext >&5
19163
19164ac_lo= ac_hi=
19165fi
ac1cb8d3 19166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19167fi
ac1cb8d3 19168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19169# Binary search between lo and hi bounds.
19170while test "x$ac_lo" != "x$ac_hi"; do
19171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19172 cat >conftest.$ac_ext <<_ACEOF
19173/* confdefs.h. */
19174_ACEOF
19175cat confdefs.h >>conftest.$ac_ext
19176cat >>conftest.$ac_ext <<_ACEOF
19177/* end confdefs.h. */
19178$ac_includes_default
19179int
19180main ()
19181{
19182static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19183test_array [0] = 0
19184
19185 ;
19186 return 0;
19187}
19188_ACEOF
19189rm -f conftest.$ac_objext
19190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19191 (eval $ac_compile) 2>conftest.er1
a848cd7e 19192 ac_status=$?
ac1cb8d3
VS
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
a848cd7e
SC
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
8c539582 19198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 ac_hi=$ac_mid
19211else
19212 echo "$as_me: failed program was:" >&5
19213sed 's/^/| /' conftest.$ac_ext >&5
19214
19215ac_lo=`expr '(' $ac_mid ')' + 1`
19216fi
ac1cb8d3 19217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19218done
19219case $ac_lo in
19220?*) ac_cv_sizeof_long_long=$ac_lo;;
19221'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19222See \`config.log' for more details." >&5
19223echo "$as_me: error: cannot compute sizeof (long long), 77
19224See \`config.log' for more details." >&2;}
19225 { (exit 1); exit 1; }; } ;;
19226esac
19227else
19228 if test "$cross_compiling" = yes; then
8c539582
RL
19229 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19230echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19231 { (exit 1); exit 1; }; }
19232else
19233 cat >conftest.$ac_ext <<_ACEOF
19234/* confdefs.h. */
19235_ACEOF
19236cat confdefs.h >>conftest.$ac_ext
19237cat >>conftest.$ac_ext <<_ACEOF
19238/* end confdefs.h. */
19239$ac_includes_default
19240long longval () { return (long) (sizeof (long long)); }
19241unsigned long ulongval () { return (long) (sizeof (long long)); }
19242#include <stdio.h>
19243#include <stdlib.h>
19244int
19245main ()
19246{
19247
19248 FILE *f = fopen ("conftest.val", "w");
19249 if (! f)
19250 exit (1);
19251 if (((long) (sizeof (long long))) < 0)
19252 {
19253 long i = longval ();
19254 if (i != ((long) (sizeof (long long))))
19255 exit (1);
19256 fprintf (f, "%ld\n", i);
19257 }
19258 else
19259 {
19260 unsigned long i = ulongval ();
19261 if (i != ((long) (sizeof (long long))))
19262 exit (1);
19263 fprintf (f, "%lu\n", i);
19264 }
19265 exit (ferror (f) || fclose (f) != 0);
19266
19267 ;
19268 return 0;
19269}
19270_ACEOF
19271rm -f conftest$ac_exeext
19272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19273 (eval $ac_link) 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; }; then
19282 ac_cv_sizeof_long_long=`cat conftest.val`
19283else
19284 echo "$as_me: program exited with status $ac_status" >&5
19285echo "$as_me: failed program was:" >&5
19286sed 's/^/| /' conftest.$ac_ext >&5
19287
19288( exit $ac_status )
19289{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19290See \`config.log' for more details." >&5
19291echo "$as_me: error: cannot compute sizeof (long long), 77
19292See \`config.log' for more details." >&2;}
19293 { (exit 1); exit 1; }; }
19294fi
ac1cb8d3 19295rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19296fi
19297fi
19298rm -f conftest.val
19299else
19300 ac_cv_sizeof_long_long=0
19301fi
19302fi
19303echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19304echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19305cat >>confdefs.h <<_ACEOF
19306#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19307_ACEOF
19308
19309
19310esac
19311
238ecede
MW
19312echo "$as_me:$LINENO: checking for wchar_t" >&5
19313echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19314if test "${ac_cv_type_wchar_t+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19316else
19317 cat >conftest.$ac_ext <<_ACEOF
19318/* confdefs.h. */
19319_ACEOF
19320cat confdefs.h >>conftest.$ac_ext
19321cat >>conftest.$ac_ext <<_ACEOF
19322/* end confdefs.h. */
19323
83d8eb47
MW
19324 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19325 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19326 # error "fake wchar_t"
19327 #endif
19328 #ifdef HAVE_WCHAR_H
19329 # ifdef __CYGWIN__
19330 # include <stddef.h>
19331 # endif
19332 # include <wchar.h>
19333 #endif
19334 #ifdef HAVE_STDLIB_H
19335 # include <stdlib.h>
19336 #endif
19337 #include <stdio.h>
19338
19339
19340
19341int
19342main ()
19343{
19344if ((wchar_t *) 0)
19345 return 0;
19346if (sizeof (wchar_t))
19347 return 0;
19348 ;
19349 return 0;
19350}
19351_ACEOF
19352rm -f conftest.$ac_objext
19353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19354 (eval $ac_compile) 2>conftest.er1
19355 ac_status=$?
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
8c539582 19361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; } &&
19367 { ac_try='test -s conftest.$ac_objext'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 ac_cv_type_wchar_t=yes
19374else
19375 echo "$as_me: failed program was:" >&5
19376sed 's/^/| /' conftest.$ac_ext >&5
19377
19378ac_cv_type_wchar_t=no
19379fi
19380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19381fi
19382echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19383echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19384
a848cd7e
SC
19385echo "$as_me:$LINENO: checking size of wchar_t" >&5
19386echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19387if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19389else
238ecede
MW
19390 if test "$ac_cv_type_wchar_t" = yes; then
19391 # The cast to unsigned long works around a bug in the HP C Compiler
19392 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19393 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19394 # This bug is HP SR number 8606223364.
19395 if test "$cross_compiling" = yes; then
19396 # Depending upon the size, compute the lo and hi bounds.
19397cat >conftest.$ac_ext <<_ACEOF
19398/* confdefs.h. */
19399_ACEOF
19400cat confdefs.h >>conftest.$ac_ext
19401cat >>conftest.$ac_ext <<_ACEOF
19402/* end confdefs.h. */
19403
83d8eb47
MW
19404 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19405 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19406 # error "fake wchar_t"
19407 #endif
19408 #ifdef HAVE_WCHAR_H
19409 # ifdef __CYGWIN__
19410 # include <stddef.h>
19411 # endif
19412 # include <wchar.h>
19413 #endif
19414 #ifdef HAVE_STDLIB_H
19415 # include <stdlib.h>
19416 #endif
19417 #include <stdio.h>
19418
19419
19420
19421int
19422main ()
19423{
19424static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19425test_array [0] = 0
19426
19427 ;
19428 return 0;
19429}
19430_ACEOF
19431rm -f conftest.$ac_objext
19432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19433 (eval $ac_compile) 2>conftest.er1
19434 ac_status=$?
19435 grep -v '^ *+' conftest.er1 >conftest.err
19436 rm -f conftest.er1
19437 cat conftest.err >&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } &&
8c539582 19440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest.$ac_objext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_lo=0 ac_mid=0
19453 while :; do
19454 cat >conftest.$ac_ext <<_ACEOF
19455/* confdefs.h. */
19456_ACEOF
19457cat confdefs.h >>conftest.$ac_ext
19458cat >>conftest.$ac_ext <<_ACEOF
19459/* end confdefs.h. */
19460
83d8eb47
MW
19461 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19462 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19463 # error "fake wchar_t"
19464 #endif
19465 #ifdef HAVE_WCHAR_H
19466 # ifdef __CYGWIN__
19467 # include <stddef.h>
19468 # endif
19469 # include <wchar.h>
19470 #endif
19471 #ifdef HAVE_STDLIB_H
19472 # include <stdlib.h>
19473 #endif
19474 #include <stdio.h>
19475
19476
19477
19478int
19479main ()
19480{
19481static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19482test_array [0] = 0
19483
19484 ;
19485 return 0;
19486}
19487_ACEOF
19488rm -f conftest.$ac_objext
19489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19490 (eval $ac_compile) 2>conftest.er1
19491 ac_status=$?
19492 grep -v '^ *+' conftest.er1 >conftest.err
19493 rm -f conftest.er1
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
8c539582 19497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; } &&
19503 { ac_try='test -s conftest.$ac_objext'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19509 ac_hi=$ac_mid; break
19510else
19511 echo "$as_me: failed program was:" >&5
19512sed 's/^/| /' conftest.$ac_ext >&5
19513
19514ac_lo=`expr $ac_mid + 1`
19515 if test $ac_lo -le $ac_mid; then
19516 ac_lo= ac_hi=
19517 break
19518 fi
19519 ac_mid=`expr 2 '*' $ac_mid + 1`
19520fi
19521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19522 done
19523else
19524 echo "$as_me: failed program was:" >&5
19525sed 's/^/| /' conftest.$ac_ext >&5
19526
19527cat >conftest.$ac_ext <<_ACEOF
19528/* confdefs.h. */
19529_ACEOF
19530cat confdefs.h >>conftest.$ac_ext
19531cat >>conftest.$ac_ext <<_ACEOF
19532/* end confdefs.h. */
19533
83d8eb47
MW
19534 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19535 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19536 # error "fake wchar_t"
19537 #endif
19538 #ifdef HAVE_WCHAR_H
19539 # ifdef __CYGWIN__
19540 # include <stddef.h>
19541 # endif
19542 # include <wchar.h>
19543 #endif
19544 #ifdef HAVE_STDLIB_H
19545 # include <stdlib.h>
19546 #endif
19547 #include <stdio.h>
19548
19549
19550
19551int
19552main ()
19553{
19554static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19555test_array [0] = 0
19556
19557 ;
19558 return 0;
19559}
19560_ACEOF
19561rm -f conftest.$ac_objext
19562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563 (eval $ac_compile) 2>conftest.er1
19564 ac_status=$?
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
8c539582 19570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } &&
19576 { ac_try='test -s conftest.$ac_objext'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582 ac_hi=-1 ac_mid=-1
19583 while :; do
19584 cat >conftest.$ac_ext <<_ACEOF
19585/* confdefs.h. */
19586_ACEOF
19587cat confdefs.h >>conftest.$ac_ext
19588cat >>conftest.$ac_ext <<_ACEOF
19589/* end confdefs.h. */
19590
83d8eb47
MW
19591 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19592 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19593 # error "fake wchar_t"
19594 #endif
19595 #ifdef HAVE_WCHAR_H
19596 # ifdef __CYGWIN__
19597 # include <stddef.h>
19598 # endif
19599 # include <wchar.h>
19600 #endif
19601 #ifdef HAVE_STDLIB_H
19602 # include <stdlib.h>
19603 #endif
19604 #include <stdio.h>
19605
19606
19607
19608int
19609main ()
19610{
19611static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19612test_array [0] = 0
19613
19614 ;
19615 return 0;
19616}
19617_ACEOF
19618rm -f conftest.$ac_objext
19619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19620 (eval $ac_compile) 2>conftest.er1
19621 ac_status=$?
19622 grep -v '^ *+' conftest.er1 >conftest.err
19623 rm -f conftest.er1
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
8c539582 19627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try='test -s conftest.$ac_objext'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 ac_lo=$ac_mid; break
19640else
19641 echo "$as_me: failed program was:" >&5
19642sed 's/^/| /' conftest.$ac_ext >&5
19643
19644ac_hi=`expr '(' $ac_mid ')' - 1`
19645 if test $ac_mid -le $ac_hi; then
19646 ac_lo= ac_hi=
19647 break
19648 fi
19649 ac_mid=`expr 2 '*' $ac_mid`
19650fi
19651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19652 done
19653else
19654 echo "$as_me: failed program was:" >&5
19655sed 's/^/| /' conftest.$ac_ext >&5
19656
19657ac_lo= ac_hi=
19658fi
19659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19660fi
19661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19662# Binary search between lo and hi bounds.
19663while test "x$ac_lo" != "x$ac_hi"; do
19664 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19665 cat >conftest.$ac_ext <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671
83d8eb47
MW
19672 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19673 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19674 # error "fake wchar_t"
19675 #endif
19676 #ifdef HAVE_WCHAR_H
19677 # ifdef __CYGWIN__
19678 # include <stddef.h>
19679 # endif
19680 # include <wchar.h>
19681 #endif
19682 #ifdef HAVE_STDLIB_H
19683 # include <stdlib.h>
19684 #endif
19685 #include <stdio.h>
a848cd7e 19686
a848cd7e 19687
a848cd7e 19688
238ecede
MW
19689int
19690main ()
19691{
19692static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19693test_array [0] = 0
a848cd7e 19694
238ecede
MW
19695 ;
19696 return 0;
19697}
19698_ACEOF
19699rm -f conftest.$ac_objext
19700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19701 (eval $ac_compile) 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } &&
8c539582 19708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; } &&
19714 { ac_try='test -s conftest.$ac_objext'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; }; then
19720 ac_hi=$ac_mid
19721else
19722 echo "$as_me: failed program was:" >&5
19723sed 's/^/| /' conftest.$ac_ext >&5
19724
19725ac_lo=`expr '(' $ac_mid ')' + 1`
19726fi
19727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19728done
19729case $ac_lo in
19730?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19731'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19732See \`config.log' for more details." >&5
19733echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19734See \`config.log' for more details." >&2;}
19735 { (exit 1); exit 1; }; } ;;
19736esac
19737else
19738 if test "$cross_compiling" = yes; then
8c539582
RL
19739 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19740echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19741 { (exit 1); exit 1; }; }
a848cd7e
SC
19742else
19743 cat >conftest.$ac_ext <<_ACEOF
19744/* confdefs.h. */
19745_ACEOF
19746cat confdefs.h >>conftest.$ac_ext
19747cat >>conftest.$ac_ext <<_ACEOF
19748/* end confdefs.h. */
19749
83d8eb47
MW
19750 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19751 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19752 # error "fake wchar_t"
19753 #endif
19754 #ifdef HAVE_WCHAR_H
19755 # ifdef __CYGWIN__
19756 # include <stddef.h>
19757 # endif
19758 # include <wchar.h>
19759 #endif
19760 #ifdef HAVE_STDLIB_H
19761 # include <stdlib.h>
19762 #endif
19763 #include <stdio.h>
19764
19765
19766
19767long longval () { return (long) (sizeof (wchar_t)); }
19768unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19769#include <stdio.h>
19770#include <stdlib.h>
19771int
19772main ()
19773{
a848cd7e 19774
238ecede
MW
19775 FILE *f = fopen ("conftest.val", "w");
19776 if (! f)
19777 exit (1);
19778 if (((long) (sizeof (wchar_t))) < 0)
19779 {
19780 long i = longval ();
19781 if (i != ((long) (sizeof (wchar_t))))
19782 exit (1);
19783 fprintf (f, "%ld\n", i);
19784 }
19785 else
19786 {
19787 unsigned long i = ulongval ();
19788 if (i != ((long) (sizeof (wchar_t))))
19789 exit (1);
19790 fprintf (f, "%lu\n", i);
19791 }
19792 exit (ferror (f) || fclose (f) != 0);
19793
19794 ;
19795 return 0;
19796}
a848cd7e
SC
19797_ACEOF
19798rm -f conftest$ac_exeext
19799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19800 (eval $ac_link) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
238ecede 19809 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19810else
19811 echo "$as_me: program exited with status $ac_status" >&5
19812echo "$as_me: failed program was:" >&5
19813sed 's/^/| /' conftest.$ac_ext >&5
19814
19815( exit $ac_status )
238ecede
MW
19816{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19817See \`config.log' for more details." >&5
19818echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19819See \`config.log' for more details." >&2;}
19820 { (exit 1); exit 1; }; }
a848cd7e 19821fi
ac1cb8d3 19822rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19823fi
a848cd7e 19824fi
238ecede
MW
19825rm -f conftest.val
19826else
19827 ac_cv_sizeof_wchar_t=0
19828fi
19829fi
19830echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19831echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19832cat >>confdefs.h <<_ACEOF
238ecede 19833#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19834_ACEOF
19835
19836
47a7e797
MW
19837if test "$ac_cv_sizeof_wchar_t" != "0"; then
19838 wxUSE_WCHAR_T=yes
19839else
19840 wxUSE_WCHAR_T=no
19841fi
238ecede 19842
ba3d13e1
VZ
19843echo "$as_me:$LINENO: checking for va_copy" >&5
19844echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19845if test "${wx_cv_func_va_copy+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847else
19848
19849 cat >conftest.$ac_ext <<_ACEOF
19850
19851 #include <stdarg.h>
19852 void foo(char *f, ...)
19853 {
19854 va_list ap1, ap2;
19855 va_start(ap1, f);
19856 va_copy(ap2, ap1);
19857 va_end(ap2);
19858 va_end(ap1);
19859 }
5886b072
VZ
19860 int main()
19861 {
b902e639
VZ
19862 foo("hi", 17);
19863 return 0;
5886b072 19864 }
ba3d13e1
VZ
19865_ACEOF
19866rm -f conftest.$ac_objext conftest$ac_exeext
19867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19868 (eval $ac_link) 2>conftest.er1
19869 ac_status=$?
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
8c539582 19875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; } &&
19881 { ac_try='test -s conftest$ac_exeext'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 wx_cv_func_va_copy=yes
19888else
19889 echo "$as_me: failed program was:" >&5
19890sed 's/^/| /' conftest.$ac_ext >&5
19891
19892wx_cv_func_va_copy=no
19893
19894fi
19895rm -f conftest.err conftest.$ac_objext \
19896 conftest$ac_exeext conftest.$ac_ext
19897
19898
19899fi
19900echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19901echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19902
19903if test $wx_cv_func_va_copy = "yes"; then
19904 cat >>confdefs.h <<\_ACEOF
19905#define HAVE_VA_COPY 1
19906_ACEOF
19907
19908else
19909 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19910echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19911if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913else
19914
19915 if test "$cross_compiling" = yes; then
19916 wx_cv_type_va_list_lvalue=yes
19917
19918else
19919 cat >conftest.$ac_ext <<_ACEOF
19920
19921 #include <stdarg.h>
19922 int foo(char *f, ...)
19923 {
19924 va_list ap1, ap2;
19925 va_start(ap1, f);
19926 ap2 = ap1;
19927 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19928 return 1;
19929 va_end(ap2);
19930 va_end(ap1);
19931 return 0;
19932 }
19933 int main()
19934 {
19935 return foo("hi", 17);
19936 }
19937_ACEOF
19938rm -f conftest$ac_exeext
19939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19940 (eval $ac_link) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19946 ac_status=$?
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
19949 wx_cv_type_va_list_lvalue=yes
19950else
19951 echo "$as_me: program exited with status $ac_status" >&5
19952echo "$as_me: failed program was:" >&5
19953sed 's/^/| /' conftest.$ac_ext >&5
19954
19955( exit $ac_status )
19956wx_cv_type_va_list_lvalue=no
19957fi
19958rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19959fi
19960
19961
19962fi
19963echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19964echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19965
19966 if test $wx_cv_type_va_list_lvalue != "yes"; then
19967 cat >>confdefs.h <<\_ACEOF
19968#define VA_LIST_IS_ARRAY 1
19969_ACEOF
19970
19971 fi
19972fi
19973
a848cd7e
SC
19974# Check whether --enable-largefile or --disable-largefile was given.
19975if test "${enable_largefile+set}" = set; then
19976 enableval="$enable_largefile"
19977
19978fi;
19979if test "$enable_largefile" != no; then
19980 wx_largefile=no
19981
19982 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19983echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19984if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19986else
19987
19988 cat >conftest.$ac_ext <<_ACEOF
19989/* confdefs.h. */
19990_ACEOF
19991cat confdefs.h >>conftest.$ac_ext
19992cat >>conftest.$ac_ext <<_ACEOF
19993/* end confdefs.h. */
19994#define _FILE_OFFSET_BITS 64
19995 #include <sys/types.h>
19996int
19997main ()
19998{
19999typedef struct {
20000 unsigned int field: sizeof(off_t) == 8;
20001} wxlf;
20002
20003 ;
20004 return 0;
20005}
20006_ACEOF
20007rm -f conftest.$ac_objext
20008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20009 (eval $ac_compile) 2>conftest.er1
a848cd7e 20010 ac_status=$?
ac1cb8d3
VS
20011 grep -v '^ *+' conftest.er1 >conftest.err
20012 rm -f conftest.er1
20013 cat conftest.err >&5
a848cd7e
SC
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } &&
8c539582 20016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } &&
20022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028 ac_cv_sys_file_offset_bits=64
20029else
20030 echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033ac_cv_sys_file_offset_bits=no
20034fi
ac1cb8d3 20035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20036
20037
20038fi
20039echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20040echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20041
20042 if test "$ac_cv_sys_file_offset_bits" != no; then
20043 wx_largefile=yes
20044 cat >>confdefs.h <<_ACEOF
20045#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20046_ACEOF
20047
20048 fi
20049
20050 if test "x$wx_largefile" != "xyes"; then
20051
20052 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20053echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20054if test "${ac_cv_sys_large_files+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056else
20057
20058 cat >conftest.$ac_ext <<_ACEOF
20059/* confdefs.h. */
20060_ACEOF
20061cat confdefs.h >>conftest.$ac_ext
20062cat >>conftest.$ac_ext <<_ACEOF
20063/* end confdefs.h. */
20064#define _LARGE_FILES 1
20065 #include <sys/types.h>
20066int
20067main ()
20068{
20069typedef struct {
20070 unsigned int field: sizeof(off_t) == 8;
20071} wxlf;
20072
20073 ;
20074 return 0;
20075}
20076_ACEOF
20077rm -f conftest.$ac_objext
20078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20079 (eval $ac_compile) 2>conftest.er1
a848cd7e 20080 ac_status=$?
ac1cb8d3
VS
20081 grep -v '^ *+' conftest.er1 >conftest.err
20082 rm -f conftest.er1
20083 cat conftest.err >&5
a848cd7e
SC
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } &&
8c539582 20086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20088 (eval $ac_try) 2>&5
20089 ac_status=$?
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; } &&
20092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094 (eval $ac_try) 2>&5
20095 ac_status=$?
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; }; then
20098 ac_cv_sys_large_files=1
20099else
20100 echo "$as_me: failed program was:" >&5
20101sed 's/^/| /' conftest.$ac_ext >&5
20102
20103ac_cv_sys_large_files=no
20104fi
ac1cb8d3 20105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20106
20107
20108fi
20109echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20110echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20111
20112 if test "$ac_cv_sys_large_files" != no; then
20113 wx_largefile=yes
20114 cat >>confdefs.h <<_ACEOF
20115#define _LARGE_FILES $ac_cv_sys_large_files
20116_ACEOF
20117
20118 fi
20119
20120 fi
20121
20122 echo "$as_me:$LINENO: checking if large file support is available" >&5
20123echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20124 if test "x$wx_largefile" = "xyes"; then
20125 cat >>confdefs.h <<\_ACEOF
20126#define HAVE_LARGEFILE_SUPPORT 1
20127_ACEOF
20128
20129 fi
20130 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20131echo "${ECHO_T}$wx_largefile" >&6
20132fi
20133
5b674b9d
DE
20134
20135if test "x$wx_largefile" = "xyes"; then
20136 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20137 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
20138 else
20139 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20140 fi
20141 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20142echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20143if test "${ac_cv_sys_largefile_source+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145else
20146 while :; do
20147 ac_cv_sys_largefile_source=no
20148 cat >conftest.$ac_ext <<_ACEOF
20149/* confdefs.h. */
20150_ACEOF
20151cat confdefs.h >>conftest.$ac_ext
20152cat >>conftest.$ac_ext <<_ACEOF
20153/* end confdefs.h. */
20154#include <stdio.h>
20155int
20156main ()
20157{
20158return !fseeko;
20159 ;
20160 return 0;
20161}
20162_ACEOF
20163rm -f conftest.$ac_objext
20164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20165 (eval $ac_compile) 2>conftest.er1
20166 ac_status=$?
20167 grep -v '^ *+' conftest.er1 >conftest.err
20168 rm -f conftest.er1
20169 cat conftest.err >&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } &&
8c539582 20172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; } &&
20178 { ac_try='test -s conftest.$ac_objext'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; }; then
20184 break
20185else
20186 echo "$as_me: failed program was:" >&5
20187sed 's/^/| /' conftest.$ac_ext >&5
20188
20189fi
20190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20191 cat >conftest.$ac_ext <<_ACEOF
20192/* confdefs.h. */
20193_ACEOF
20194cat confdefs.h >>conftest.$ac_ext
20195cat >>conftest.$ac_ext <<_ACEOF
20196/* end confdefs.h. */
20197#define _LARGEFILE_SOURCE 1
20198#include <stdio.h>
20199int
20200main ()
20201{
20202return !fseeko;
20203 ;
20204 return 0;
20205}
20206_ACEOF
20207rm -f conftest.$ac_objext
20208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209 (eval $ac_compile) 2>conftest.er1
20210 ac_status=$?
20211 grep -v '^ *+' conftest.er1 >conftest.err
20212 rm -f conftest.er1
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
8c539582 20216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest.$ac_objext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 ac_cv_sys_largefile_source=1; break
20229else
20230 echo "$as_me: failed program was:" >&5
20231sed 's/^/| /' conftest.$ac_ext >&5
20232
20233fi
20234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20235 break
20236done
20237fi
20238echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20239echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20240if test "$ac_cv_sys_largefile_source" != no; then
20241
20242cat >>confdefs.h <<_ACEOF
20243#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20244_ACEOF
20245
20246fi
20247rm -f conftest*
20248
20249# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20250# in glibc 2.1.3, but that breaks too many other things.
20251# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20252echo "$as_me:$LINENO: checking for fseeko" >&5
20253echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20254if test "${ac_cv_func_fseeko+set}" = set; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20256else
20257 cat >conftest.$ac_ext <<_ACEOF
20258/* confdefs.h. */
20259_ACEOF
20260cat confdefs.h >>conftest.$ac_ext
20261cat >>conftest.$ac_ext <<_ACEOF
20262/* end confdefs.h. */
20263#include <stdio.h>
20264int
20265main ()
20266{
20267return fseeko && fseeko (stdin, 0, 0);
20268 ;
20269 return 0;
20270}
20271_ACEOF
20272rm -f conftest.$ac_objext conftest$ac_exeext
20273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20274 (eval $ac_link) 2>conftest.er1
20275 ac_status=$?
20276 grep -v '^ *+' conftest.er1 >conftest.err
20277 rm -f conftest.er1
20278 cat conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } &&
8c539582 20281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } &&
20287 { ac_try='test -s conftest$ac_exeext'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 ac_cv_func_fseeko=yes
20294else
20295 echo "$as_me: failed program was:" >&5
20296sed 's/^/| /' conftest.$ac_ext >&5
20297
20298ac_cv_func_fseeko=no
20299fi
20300rm -f conftest.err conftest.$ac_objext \
20301 conftest$ac_exeext conftest.$ac_ext
20302fi
20303echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20304echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20305if test $ac_cv_func_fseeko = yes; then
20306
20307cat >>confdefs.h <<\_ACEOF
20308#define HAVE_FSEEKO 1
20309_ACEOF
20310
20311fi
20312
5b674b9d
DE
20313 if test "$ac_cv_sys_largefile_source" != no; then
20314 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20315 fi
20316 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20317fi
20318
20319echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20320echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20321if test "${ac_cv_c_bigendian+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20323else
20324 ac_cv_c_bigendian=unknown
20325# See if sys/param.h defines the BYTE_ORDER macro.
20326cat >conftest.$ac_ext <<_ACEOF
20327/* confdefs.h. */
20328_ACEOF
20329cat confdefs.h >>conftest.$ac_ext
20330cat >>conftest.$ac_ext <<_ACEOF
20331/* end confdefs.h. */
20332#include <sys/types.h>
20333#include <sys/param.h>
20334int
20335main ()
20336{
20337
20338#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20339 bogus endian macros
20340#endif
20341 ;
20342 return 0;
20343}
20344_ACEOF
20345rm -f conftest.$ac_objext
20346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20347 (eval $ac_compile) 2>conftest.er1
a848cd7e 20348 ac_status=$?
ac1cb8d3
VS
20349 grep -v '^ *+' conftest.er1 >conftest.err
20350 rm -f conftest.er1
20351 cat conftest.err >&5
a848cd7e
SC
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } &&
8c539582 20354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20357 ac_status=$?
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; } &&
20360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 # It does; now see whether it defined to BIG_ENDIAN or not.
20367cat >conftest.$ac_ext <<_ACEOF
20368/* confdefs.h. */
20369_ACEOF
20370cat confdefs.h >>conftest.$ac_ext
20371cat >>conftest.$ac_ext <<_ACEOF
20372/* end confdefs.h. */
20373#include <sys/types.h>
20374#include <sys/param.h>
20375int
20376main ()
20377{
20378
20379#if BYTE_ORDER != BIG_ENDIAN
20380 not big endian
20381#endif
20382 ;
20383 return 0;
20384}
20385_ACEOF
20386rm -f conftest.$ac_objext
20387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20388 (eval $ac_compile) 2>conftest.er1
a848cd7e 20389 ac_status=$?
ac1cb8d3
VS
20390 grep -v '^ *+' conftest.er1 >conftest.err
20391 rm -f conftest.er1
20392 cat conftest.err >&5
a848cd7e
SC
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } &&
8c539582 20395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; } &&
20401 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20407 ac_cv_c_bigendian=yes
20408else
20409 echo "$as_me: failed program was:" >&5
20410sed 's/^/| /' conftest.$ac_ext >&5
20411
20412ac_cv_c_bigendian=no
20413fi
ac1cb8d3 20414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20415else
20416 echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419fi
ac1cb8d3 20420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20421if test $ac_cv_c_bigendian = unknown; then
20422if test "$cross_compiling" = yes; then
20423 ac_cv_c_bigendian=unknown
20424else
20425 cat >conftest.$ac_ext <<_ACEOF
20426/* confdefs.h. */
20427_ACEOF
20428cat confdefs.h >>conftest.$ac_ext
20429cat >>conftest.$ac_ext <<_ACEOF
20430/* end confdefs.h. */
20431main () {
20432 /* Are we little or big endian? From Harbison&Steele. */
20433 union
20434 {
20435 long l;
20436 char c[sizeof (long)];
20437 } u;
20438 u.l = 1;
20439 exit (u.c[sizeof (long) - 1] == 1);
20440}
20441_ACEOF
20442rm -f conftest$ac_exeext
20443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20444 (eval $ac_link) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_cv_c_bigendian=no
20454else
20455 echo "$as_me: program exited with status $ac_status" >&5
20456echo "$as_me: failed program was:" >&5
20457sed 's/^/| /' conftest.$ac_ext >&5
20458
20459( exit $ac_status )
20460ac_cv_c_bigendian=yes
20461fi
ac1cb8d3 20462rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20463fi
20464fi
20465fi
20466echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20467echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20468if test $ac_cv_c_bigendian = unknown; then
20469 { 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
20470echo "$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;}
20471fi
20472if test $ac_cv_c_bigendian = yes; then
20473 cat >>confdefs.h <<\_ACEOF
20474#define WORDS_BIGENDIAN 1
20475_ACEOF
20476
20477fi
20478
20479
20480ac_ext=cc
20481ac_cpp='$CXXCPP $CPPFLAGS'
20482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20485echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20486echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20487if test -z "$CXXCPP"; then
20488 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20490else
20491 # Double quotes because CXXCPP needs to be expanded
20492 for CXXCPP in "$CXX -E" "/lib/cpp"
20493 do
20494 ac_preproc_ok=false
20495for ac_cxx_preproc_warn_flag in '' yes
20496do
20497 # Use a header file that comes with gcc, so configuring glibc
20498 # with a fresh cross-compiler works.
20499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20500 # <limits.h> exists even on freestanding compilers.
20501 # On the NeXT, cc -E runs the code through the compiler's parser,
20502 # not just through cpp. "Syntax error" is here to catch this case.
20503 cat >conftest.$ac_ext <<_ACEOF
20504/* confdefs.h. */
20505_ACEOF
20506cat confdefs.h >>conftest.$ac_ext
20507cat >>conftest.$ac_ext <<_ACEOF
20508/* end confdefs.h. */
20509#ifdef __STDC__
20510# include <limits.h>
20511#else
20512# include <assert.h>
20513#endif
ac1cb8d3 20514 Syntax error
a848cd7e
SC
20515_ACEOF
20516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } >/dev/null; then
20524 if test -s conftest.err; then
20525 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20526 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20527 else
20528 ac_cpp_err=
20529 fi
20530else
20531 ac_cpp_err=yes
20532fi
20533if test -z "$ac_cpp_err"; then
20534 :
20535else
20536 echo "$as_me: failed program was:" >&5
20537sed 's/^/| /' conftest.$ac_ext >&5
20538
20539 # Broken: fails on valid input.
20540continue
20541fi
20542rm -f conftest.err conftest.$ac_ext
20543
20544 # OK, works on sane cases. Now check whether non-existent headers
20545 # can be detected and how.
20546 cat >conftest.$ac_ext <<_ACEOF
20547/* confdefs.h. */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
20551/* end confdefs.h. */
20552#include <ac_nonexistent.h>
20553_ACEOF
20554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20556 ac_status=$?
20557 grep -v '^ *+' conftest.er1 >conftest.err
20558 rm -f conftest.er1
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } >/dev/null; then
20562 if test -s conftest.err; then
20563 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20564 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20565 else
20566 ac_cpp_err=
20567 fi
20568else
20569 ac_cpp_err=yes
20570fi
20571if test -z "$ac_cpp_err"; then
20572 # Broken: success on invalid input.
20573continue
20574else
20575 echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 # Passes both tests.
20579ac_preproc_ok=:
20580break
20581fi
20582rm -f conftest.err conftest.$ac_ext
20583
20584done
20585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20586rm -f conftest.err conftest.$ac_ext
20587if $ac_preproc_ok; then
20588 break
20589fi
20590
20591 done
20592 ac_cv_prog_CXXCPP=$CXXCPP
20593
20594fi
20595 CXXCPP=$ac_cv_prog_CXXCPP
20596else
20597 ac_cv_prog_CXXCPP=$CXXCPP
20598fi
20599echo "$as_me:$LINENO: result: $CXXCPP" >&5
20600echo "${ECHO_T}$CXXCPP" >&6
20601ac_preproc_ok=false
20602for ac_cxx_preproc_warn_flag in '' yes
20603do
20604 # Use a header file that comes with gcc, so configuring glibc
20605 # with a fresh cross-compiler works.
20606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20607 # <limits.h> exists even on freestanding compilers.
20608 # On the NeXT, cc -E runs the code through the compiler's parser,
20609 # not just through cpp. "Syntax error" is here to catch this case.
20610 cat >conftest.$ac_ext <<_ACEOF
20611/* confdefs.h. */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h. */
20616#ifdef __STDC__
20617# include <limits.h>
20618#else
20619# include <assert.h>
20620#endif
ac1cb8d3 20621 Syntax error
a848cd7e
SC
20622_ACEOF
20623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20625 ac_status=$?
20626 grep -v '^ *+' conftest.er1 >conftest.err
20627 rm -f conftest.er1
20628 cat conftest.err >&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } >/dev/null; then
20631 if test -s conftest.err; then
20632 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20633 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20634 else
20635 ac_cpp_err=
20636 fi
20637else
20638 ac_cpp_err=yes
20639fi
20640if test -z "$ac_cpp_err"; then
20641 :
20642else
20643 echo "$as_me: failed program was:" >&5
20644sed 's/^/| /' conftest.$ac_ext >&5
20645
20646 # Broken: fails on valid input.
20647continue
20648fi
20649rm -f conftest.err conftest.$ac_ext
20650
20651 # OK, works on sane cases. Now check whether non-existent headers
20652 # can be detected and how.
20653 cat >conftest.$ac_ext <<_ACEOF
20654/* confdefs.h. */
20655_ACEOF
20656cat confdefs.h >>conftest.$ac_ext
20657cat >>conftest.$ac_ext <<_ACEOF
20658/* end confdefs.h. */
20659#include <ac_nonexistent.h>
20660_ACEOF
20661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20663 ac_status=$?
20664 grep -v '^ *+' conftest.er1 >conftest.err
20665 rm -f conftest.er1
20666 cat conftest.err >&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } >/dev/null; then
20669 if test -s conftest.err; then
20670 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20671 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20672 else
20673 ac_cpp_err=
20674 fi
20675else
20676 ac_cpp_err=yes
20677fi
20678if test -z "$ac_cpp_err"; then
20679 # Broken: success on invalid input.
20680continue
20681else
20682 echo "$as_me: failed program was:" >&5
20683sed 's/^/| /' conftest.$ac_ext >&5
20684
20685 # Passes both tests.
20686ac_preproc_ok=:
20687break
20688fi
20689rm -f conftest.err conftest.$ac_ext
20690
20691done
20692# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20693rm -f conftest.err conftest.$ac_ext
20694if $ac_preproc_ok; then
20695 :
20696else
20697 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20698See \`config.log' for more details." >&5
20699echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20700See \`config.log' for more details." >&2;}
20701 { (exit 1); exit 1; }; }
20702fi
20703
20704ac_ext=cc
20705ac_cpp='$CXXCPP $CPPFLAGS'
20706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20709
20710
20711
20712
20713
20714 ac_ext=cc
20715ac_cpp='$CXXCPP $CPPFLAGS'
20716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20719
20720
20721
20722for ac_header in iostream
20723do
20724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20725if eval "test \"\${$as_ac_Header+set}\" = set"; then
20726 echo "$as_me:$LINENO: checking for $ac_header" >&5
20727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20728if eval "test \"\${$as_ac_Header+set}\" = set"; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20730fi
20731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20733else
20734 # Is the header compilable?
20735echo "$as_me:$LINENO: checking $ac_header usability" >&5
20736echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20737cat >conftest.$ac_ext <<_ACEOF
20738/* confdefs.h. */
20739_ACEOF
20740cat confdefs.h >>conftest.$ac_ext
20741cat >>conftest.$ac_ext <<_ACEOF
20742/* end confdefs.h. */
20743$ac_includes_default
20744#include <$ac_header>
20745_ACEOF
20746rm -f conftest.$ac_objext
20747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20748 (eval $ac_compile) 2>conftest.er1
a848cd7e 20749 ac_status=$?
ac1cb8d3
VS
20750 grep -v '^ *+' conftest.er1 >conftest.err
20751 rm -f conftest.er1
20752 cat conftest.err >&5
a848cd7e
SC
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } &&
8c539582 20755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; } &&
20761 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 ac_header_compiler=yes
20768else
20769 echo "$as_me: failed program was:" >&5
20770sed 's/^/| /' conftest.$ac_ext >&5
20771
20772ac_header_compiler=no
20773fi
ac1cb8d3 20774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20776echo "${ECHO_T}$ac_header_compiler" >&6
20777
20778# Is the header present?
20779echo "$as_me:$LINENO: checking $ac_header presence" >&5
20780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20781cat >conftest.$ac_ext <<_ACEOF
20782/* confdefs.h. */
20783_ACEOF
20784cat confdefs.h >>conftest.$ac_ext
20785cat >>conftest.$ac_ext <<_ACEOF
20786/* end confdefs.h. */
20787#include <$ac_header>
20788_ACEOF
20789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20791 ac_status=$?
20792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } >/dev/null; then
20797 if test -s conftest.err; then
20798 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20799 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20800 else
20801 ac_cpp_err=
20802 fi
20803else
20804 ac_cpp_err=yes
20805fi
20806if test -z "$ac_cpp_err"; then
20807 ac_header_preproc=yes
20808else
20809 echo "$as_me: failed program was:" >&5
20810sed 's/^/| /' conftest.$ac_ext >&5
20811
20812 ac_header_preproc=no
20813fi
20814rm -f conftest.err conftest.$ac_ext
20815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20816echo "${ECHO_T}$ac_header_preproc" >&6
20817
20818# So? What about this header?
ac1cb8d3
VS
20819case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20820 yes:no: )
a848cd7e
SC
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20825 ac_header_preproc=yes
a848cd7e 20826 ;;
ac1cb8d3 20827 no:yes:* )
a848cd7e
SC
20828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20840 (
20841 cat <<\_ASBOX
ac1cb8d3
VS
20842## ----------------------------------------- ##
20843## Report this to wx-dev@lists.wxwidgets.org ##
20844## ----------------------------------------- ##
a848cd7e
SC
20845_ASBOX
20846 ) |
20847 sed "s/^/$as_me: WARNING: /" >&2
20848 ;;
20849esac
20850echo "$as_me:$LINENO: checking for $ac_header" >&5
20851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20852if eval "test \"\${$as_ac_Header+set}\" = set"; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20854else
ac1cb8d3 20855 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20856fi
20857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20859
20860fi
20861if test `eval echo '${'$as_ac_Header'}'` = yes; then
20862 cat >>confdefs.h <<_ACEOF
20863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20864_ACEOF
20865
20866fi
20867
20868done
20869
20870
20871 if test "$ac_cv_header_iostream" = "yes" ; then
20872 :
20873 else
20874 cat >>confdefs.h <<\_ACEOF
20875#define wxUSE_IOSTREAMH 1
20876_ACEOF
20877
20878 fi
20879
20880 ac_ext=c
20881ac_cpp='$CPP $CPPFLAGS'
20882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884ac_compiler_gnu=$ac_cv_c_compiler_gnu
20885
20886
20887
20888
20889 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20890echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20891if test "${wx_cv_cpp_bool+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20893else
20894
20895
20896
20897 ac_ext=cc
20898ac_cpp='$CXXCPP $CPPFLAGS'
20899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20902
20903
20904 cat >conftest.$ac_ext <<_ACEOF
20905/* confdefs.h. */
20906_ACEOF
20907cat confdefs.h >>conftest.$ac_ext
20908cat >>conftest.$ac_ext <<_ACEOF
20909/* end confdefs.h. */
20910
20911
20912int
20913main ()
20914{
20915
20916 bool b = true;
20917
20918 return 0;
20919
20920 ;
20921 return 0;
20922}
20923_ACEOF
20924rm -f conftest.$ac_objext
20925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20926 (eval $ac_compile) 2>conftest.er1
a848cd7e 20927 ac_status=$?
ac1cb8d3
VS
20928 grep -v '^ *+' conftest.er1 >conftest.err
20929 rm -f conftest.er1
20930 cat conftest.err >&5
a848cd7e
SC
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
8c539582 20933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; } &&
20939 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20942 ac_status=$?
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; }; then
20945
20946 wx_cv_cpp_bool=yes
20947
20948else
20949 echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5
20951
20952
20953 wx_cv_cpp_bool=no
20954
20955
20956fi
ac1cb8d3 20957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20958
20959 ac_ext=c
20960ac_cpp='$CPP $CPPFLAGS'
20961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20963ac_compiler_gnu=$ac_cv_c_compiler_gnu
20964
20965
20966fi
20967echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20968echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20969
20970 if test "$wx_cv_cpp_bool" = "yes"; then
20971 cat >>confdefs.h <<\_ACEOF
20972#define HAVE_BOOL 1
20973_ACEOF
20974
20975 fi
20976
20977
20978
20979 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20980echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20981if test "${wx_cv_explicit+set}" = set; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20983else
20984
20985
20986
20987 ac_ext=cc
20988ac_cpp='$CXXCPP $CPPFLAGS'
20989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20992
20993
20994 cat >conftest.$ac_ext <<_ACEOF
20995/* confdefs.h. */
20996_ACEOF
20997cat confdefs.h >>conftest.$ac_ext
20998cat >>conftest.$ac_ext <<_ACEOF
20999/* end confdefs.h. */
21000
21001 class Foo { public: explicit Foo(int) {} };
21002
21003int
21004main ()
21005{
21006
21007 return 0;
21008
21009 ;
21010 return 0;
21011}
21012_ACEOF
21013rm -f conftest.$ac_objext
21014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21015 (eval $ac_compile) 2>conftest.er1
a848cd7e 21016 ac_status=$?
ac1cb8d3
VS
21017 grep -v '^ *+' conftest.er1 >conftest.err
21018 rm -f conftest.er1
21019 cat conftest.err >&5
a848cd7e
SC
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } &&
8c539582 21022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21025 ac_status=$?
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; } &&
21028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; }; then
21034
21035 cat >conftest.$ac_ext <<_ACEOF
21036/* confdefs.h. */
21037_ACEOF
21038cat confdefs.h >>conftest.$ac_ext
21039cat >>conftest.$ac_ext <<_ACEOF
21040/* end confdefs.h. */
21041
21042 class Foo { public: explicit Foo(int) {} };
21043 static void TakeFoo(const Foo& foo) { }
21044
21045int
21046main ()
21047{
21048
21049 TakeFoo(17);
21050 return 0;
21051
21052 ;
21053 return 0;
21054}
21055_ACEOF
21056rm -f conftest.$ac_objext
21057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21058 (eval $ac_compile) 2>conftest.er1
a848cd7e 21059 ac_status=$?
ac1cb8d3
VS
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
a848cd7e
SC
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
8c539582 21065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21074 ac_status=$?
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21077 wx_cv_explicit=no
21078else
21079 echo "$as_me: failed program was:" >&5
21080sed 's/^/| /' conftest.$ac_ext >&5
21081
21082wx_cv_explicit=yes
21083
21084fi
ac1cb8d3 21085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21086
21087else
21088 echo "$as_me: failed program was:" >&5
21089sed 's/^/| /' conftest.$ac_ext >&5
21090
21091wx_cv_explicit=no
21092
21093fi
ac1cb8d3 21094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21095
21096 ac_ext=c
21097ac_cpp='$CPP $CPPFLAGS'
21098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100ac_compiler_gnu=$ac_cv_c_compiler_gnu
21101
21102
21103fi
21104echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21105echo "${ECHO_T}$wx_cv_explicit" >&6
21106
21107 if test "$wx_cv_explicit" = "yes"; then
21108 cat >>confdefs.h <<\_ACEOF
21109#define HAVE_EXPLICIT 1
21110_ACEOF
21111
21112 fi
21113
21114
21115echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21116echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21117if test "${ac_cv_cxx_const_cast+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21119else
21120
21121
21122 ac_ext=cc
21123ac_cpp='$CXXCPP $CPPFLAGS'
21124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21127
21128 cat >conftest.$ac_ext <<_ACEOF
21129/* confdefs.h. */
21130_ACEOF
21131cat confdefs.h >>conftest.$ac_ext
21132cat >>conftest.$ac_ext <<_ACEOF
21133/* end confdefs.h. */
21134
21135int
21136main ()
21137{
21138int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21139 ;
21140 return 0;
21141}
21142_ACEOF
21143rm -f conftest.$ac_objext
21144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21145 (eval $ac_compile) 2>conftest.er1
a848cd7e 21146 ac_status=$?
ac1cb8d3
VS
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
a848cd7e
SC
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } &&
8c539582 21152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21155 ac_status=$?
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; } &&
21158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; }; then
21164 ac_cv_cxx_const_cast=yes
21165else
21166 echo "$as_me: failed program was:" >&5
21167sed 's/^/| /' conftest.$ac_ext >&5
21168
21169ac_cv_cxx_const_cast=no
21170fi
ac1cb8d3 21171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21172 ac_ext=c
21173ac_cpp='$CPP $CPPFLAGS'
21174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21176ac_compiler_gnu=$ac_cv_c_compiler_gnu
21177
21178
21179fi
21180echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21181echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21182if test "$ac_cv_cxx_const_cast" = yes; then
21183
21184cat >>confdefs.h <<\_ACEOF
21185#define HAVE_CONST_CAST
21186_ACEOF
21187
21188fi
21189
7714864e
RL
21190echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21191echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21192if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21194else
21195
21196
21197 ac_ext=cc
21198ac_cpp='$CXXCPP $CPPFLAGS'
21199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21202
21203 cat >conftest.$ac_ext <<_ACEOF
21204/* confdefs.h. */
21205_ACEOF
21206cat confdefs.h >>conftest.$ac_ext
21207cat >>conftest.$ac_ext <<_ACEOF
21208/* end confdefs.h. */
21209#include <typeinfo>
21210class Base { public : Base () {} virtual void f () = 0;};
21211class Derived : public Base { public : Derived () {} virtual void f () {} };
21212class Unrelated { public : Unrelated () {} };
21213int g (Unrelated&) { return 0; }
21214int
21215main ()
21216{
21217
21218Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21219 ;
21220 return 0;
21221}
21222_ACEOF
21223rm -f conftest.$ac_objext
21224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21225 (eval $ac_compile) 2>conftest.er1
21226 ac_status=$?
21227 grep -v '^ *+' conftest.er1 >conftest.err
21228 rm -f conftest.er1
21229 cat conftest.err >&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } &&
8c539582 21232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21234 (eval $ac_try) 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; } &&
21238 { ac_try='test -s conftest.$ac_objext'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_cxx_reinterpret_cast=yes
21245else
21246 echo "$as_me: failed program was:" >&5
21247sed 's/^/| /' conftest.$ac_ext >&5
21248
21249ac_cv_cxx_reinterpret_cast=no
21250fi
21251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21252 ac_ext=c
21253ac_cpp='$CPP $CPPFLAGS'
21254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257
21258
21259fi
21260echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21261echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21262if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21263
21264cat >>confdefs.h <<\_ACEOF
21265#define HAVE_REINTERPRET_CAST
21266_ACEOF
21267
21268fi
21269
a848cd7e
SC
21270echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21271echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21272if test "${ac_cv_cxx_static_cast+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21274else
21275
21276
21277 ac_ext=cc
21278ac_cpp='$CXXCPP $CPPFLAGS'
21279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21282
21283 cat >conftest.$ac_ext <<_ACEOF
21284/* confdefs.h. */
21285_ACEOF
21286cat confdefs.h >>conftest.$ac_ext
21287cat >>conftest.$ac_ext <<_ACEOF
21288/* end confdefs.h. */
21289#include <typeinfo>
21290class Base { public : Base () {} virtual void f () = 0; };
21291class Derived : public Base { public : Derived () {} virtual void f () {} };
21292int g (Derived&) { return 0; }
21293int
21294main ()
21295{
21296
21297Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21298 ;
21299 return 0;
21300}
21301_ACEOF
21302rm -f conftest.$ac_objext
21303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21304 (eval $ac_compile) 2>conftest.er1
a848cd7e 21305 ac_status=$?
ac1cb8d3
VS
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
a848cd7e
SC
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
8c539582 21311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; } &&
21317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21323 ac_cv_cxx_static_cast=yes
21324else
21325 echo "$as_me: failed program was:" >&5
21326sed 's/^/| /' conftest.$ac_ext >&5
21327
21328ac_cv_cxx_static_cast=no
21329fi
ac1cb8d3 21330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21331 ac_ext=c
21332ac_cpp='$CPP $CPPFLAGS'
21333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21335ac_compiler_gnu=$ac_cv_c_compiler_gnu
21336
21337
21338fi
21339echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21340echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21341if test "$ac_cv_cxx_static_cast" = yes; then
21342
21343cat >>confdefs.h <<\_ACEOF
21344#define HAVE_STATIC_CAST
21345_ACEOF
21346
21347fi
21348
21349
f56c22b4 21350if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21351 ac_ext=cc
21352ac_cpp='$CXXCPP $CPPFLAGS'
21353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21356
21357
f56c22b4
MW
21358 if test "$wxUSE_UNICODE" = "yes"; then
21359 std_string="std::wstring"
21360 char_type="wchar_t"
21361 else
21362 std_string="std::string"
21363 char_type="char"
21364 fi
21365
21366 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21367echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21368 cat >conftest.$ac_ext <<_ACEOF
21369/* confdefs.h. */
21370_ACEOF
21371cat confdefs.h >>conftest.$ac_ext
21372cat >>conftest.$ac_ext <<_ACEOF
21373/* end confdefs.h. */
21374#include <string>
a848cd7e
SC
21375int
21376main ()
21377{
f56c22b4 21378$std_string foo;
a848cd7e
SC
21379 ;
21380 return 0;
21381}
21382_ACEOF
21383rm -f conftest.$ac_objext
21384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21385 (eval $ac_compile) 2>conftest.er1
a848cd7e 21386 ac_status=$?
ac1cb8d3
VS
21387 grep -v '^ *+' conftest.er1 >conftest.err
21388 rm -f conftest.er1
21389 cat conftest.err >&5
a848cd7e
SC
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); } &&
8c539582 21392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394 (eval $ac_try) 2>&5
21395 ac_status=$?
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; } &&
21398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400 (eval $ac_try) 2>&5
21401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; }; then
21404 echo "$as_me:$LINENO: result: yes" >&5
21405echo "${ECHO_T}yes" >&6
0a08f02a
MB
21406 cat >>confdefs.h <<\_ACEOF
21407#define HAVE_STD_WSTRING 1
21408_ACEOF
21409
a848cd7e
SC
21410else
21411 echo "$as_me: failed program was:" >&5
21412sed 's/^/| /' conftest.$ac_ext >&5
21413
21414echo "$as_me:$LINENO: result: no" >&5
21415echo "${ECHO_T}no" >&6
f56c22b4
MW
21416 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21417echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21418 cat >conftest.$ac_ext <<_ACEOF
21419/* confdefs.h. */
21420_ACEOF
21421cat confdefs.h >>conftest.$ac_ext
21422cat >>conftest.$ac_ext <<_ACEOF
21423/* end confdefs.h. */
21424
21425 #ifdef HAVE_WCHAR_H
21426 # ifdef __CYGWIN__
21427 # include <stddef.h>
21428 # endif
21429 # include <wchar.h>
21430 #endif
21431 #ifdef HAVE_STDLIB_H
21432 # include <stdlib.h>
21433 #endif
21434 #include <stdio.h>
21435 #include <string>
21436
21437int
21438main ()
21439{
f56c22b4
MW
21440std::basic_string<$char_type> foo;
21441 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21442 ;
21443 return 0;
21444}
21445_ACEOF
21446rm -f conftest.$ac_objext
21447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21448 (eval $ac_compile) 2>conftest.er1
21449 ac_status=$?
21450 grep -v '^ *+' conftest.er1 >conftest.err
21451 rm -f conftest.er1
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } &&
8c539582 21455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; } &&
21461 { ac_try='test -s conftest.$ac_objext'
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21464 ac_status=$?
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; }; then
21467 echo "$as_me:$LINENO: result: yes" >&5
21468echo "${ECHO_T}yes" >&6
21469else
21470 echo "$as_me: failed program was:" >&5
21471sed 's/^/| /' conftest.$ac_ext >&5
21472
21473echo "$as_me:$LINENO: result: no" >&5
21474echo "${ECHO_T}no" >&6
f56c22b4 21475 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21476 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21477echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21478 { (exit 1); exit 1; }; }
21479 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21480 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21481echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21482 { (exit 1); exit 1; }; }
f56c22b4
MW
21483 else
21484 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21485echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21486 wxUSE_STD_STRING=no
21487 fi
21488
0a08f02a 21489
a848cd7e 21490fi
ac1cb8d3 21491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21492
0a08f02a
MB
21493fi
21494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21495
21496 ac_ext=c
21497ac_cpp='$CPP $CPPFLAGS'
21498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21500ac_compiler_gnu=$ac_cv_c_compiler_gnu
21501
21502fi
21503
21504if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21505 ac_ext=cc
21506ac_cpp='$CXXCPP $CPPFLAGS'
21507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21510
21511
21512 echo "$as_me:$LINENO: checking for std::istream" >&5
21513echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21514if test "${ac_cv_type_std__istream+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516else
21517 cat >conftest.$ac_ext <<_ACEOF
21518/* confdefs.h. */
21519_ACEOF
21520cat confdefs.h >>conftest.$ac_ext
21521cat >>conftest.$ac_ext <<_ACEOF
21522/* end confdefs.h. */
21523#include <iostream>
21524
21525int
21526main ()
21527{
21528if ((std::istream *) 0)
21529 return 0;
21530if (sizeof (std::istream))
21531 return 0;
21532 ;
21533 return 0;
21534}
21535_ACEOF
21536rm -f conftest.$ac_objext
21537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21538 (eval $ac_compile) 2>conftest.er1
21539 ac_status=$?
21540 grep -v '^ *+' conftest.er1 >conftest.err
21541 rm -f conftest.er1
21542 cat conftest.err >&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); } &&
8c539582 21545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547 (eval $ac_try) 2>&5
21548 ac_status=$?
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); }; } &&
21551 { ac_try='test -s conftest.$ac_objext'
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; }; then
21557 ac_cv_type_std__istream=yes
21558else
21559 echo "$as_me: failed program was:" >&5
21560sed 's/^/| /' conftest.$ac_ext >&5
21561
21562ac_cv_type_std__istream=no
21563fi
21564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21565fi
21566echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21567echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21568if test $ac_cv_type_std__istream = yes; then
21569
21570cat >>confdefs.h <<_ACEOF
21571#define HAVE_STD__ISTREAM 1
21572_ACEOF
21573
21574
21575else
21576 wxUSE_STD_IOSTREAM=no
21577fi
21578echo "$as_me:$LINENO: checking for std::ostream" >&5
21579echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21580if test "${ac_cv_type_std__ostream+set}" = set; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21582else
21583 cat >conftest.$ac_ext <<_ACEOF
21584/* confdefs.h. */
21585_ACEOF
21586cat confdefs.h >>conftest.$ac_ext
21587cat >>conftest.$ac_ext <<_ACEOF
21588/* end confdefs.h. */
21589#include <iostream>
21590
21591int
21592main ()
21593{
21594if ((std::ostream *) 0)
21595 return 0;
21596if (sizeof (std::ostream))
21597 return 0;
21598 ;
21599 return 0;
21600}
21601_ACEOF
21602rm -f conftest.$ac_objext
21603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21604 (eval $ac_compile) 2>conftest.er1
21605 ac_status=$?
21606 grep -v '^ *+' conftest.er1 >conftest.err
21607 rm -f conftest.er1
21608 cat conftest.err >&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } &&
8c539582 21611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613 (eval $ac_try) 2>&5
21614 ac_status=$?
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; } &&
21617 { ac_try='test -s conftest.$ac_objext'
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21620 ac_status=$?
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; }; then
21623 ac_cv_type_std__ostream=yes
21624else
21625 echo "$as_me: failed program was:" >&5
21626sed 's/^/| /' conftest.$ac_ext >&5
21627
21628ac_cv_type_std__ostream=no
21629fi
21630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21631fi
21632echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21633echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21634if test $ac_cv_type_std__ostream = yes; then
21635
21636cat >>confdefs.h <<_ACEOF
21637#define HAVE_STD__OSTREAM 1
21638_ACEOF
21639
21640
21641else
21642 wxUSE_STD_IOSTREAM=no
21643fi
21644
21645
21646 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21647 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21648 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21649echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21650 { (exit 1); exit 1; }; }
21651 else
21652 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21653echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21654 fi
f56c22b4
MW
21655 fi
21656
21657 ac_ext=c
21658ac_cpp='$CPP $CPPFLAGS'
21659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21661ac_compiler_gnu=$ac_cv_c_compiler_gnu
21662
21663fi
21664
21665if test "$wxUSE_STL" = "yes"; then
21666 ac_ext=cc
21667ac_cpp='$CXXCPP $CPPFLAGS'
21668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21671
21672
21673 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21674echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21675 cat >conftest.$ac_ext <<_ACEOF
21676/* confdefs.h. */
21677_ACEOF
21678cat confdefs.h >>conftest.$ac_ext
21679cat >>conftest.$ac_ext <<_ACEOF
21680/* end confdefs.h. */
21681#include <string>
0a08f02a
MB
21682 #include <functional>
21683 #include <algorithm>
21684 #include <vector>
21685 #include <list>
a848cd7e
SC
21686int
21687main ()
21688{
0a08f02a
MB
21689std::vector<int> moo;
21690 std::list<int> foo;
21691 std::vector<int>::iterator it =
21692 std::find_if(moo.begin(), moo.end(),
21693 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21694 ;
21695 return 0;
21696}
21697_ACEOF
21698rm -f conftest.$ac_objext
21699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21700 (eval $ac_compile) 2>conftest.er1
a848cd7e 21701 ac_status=$?
ac1cb8d3
VS
21702 grep -v '^ *+' conftest.er1 >conftest.err
21703 rm -f conftest.er1
21704 cat conftest.err >&5
a848cd7e
SC
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } &&
8c539582 21707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; } &&
21713 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21719 echo "$as_me:$LINENO: result: yes" >&5
21720echo "${ECHO_T}yes" >&6
a848cd7e
SC
21721else
21722 echo "$as_me: failed program was:" >&5
21723sed 's/^/| /' conftest.$ac_ext >&5
21724
21725echo "$as_me:$LINENO: result: no" >&5
21726echo "${ECHO_T}no" >&6
0a08f02a
MB
21727 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21728echo "$as_me: error: Basic STL functionality missing" >&2;}
21729 { (exit 1); exit 1; }; }
a848cd7e 21730fi
ac1cb8d3 21731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21732
21733 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21734echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21735 cat >conftest.$ac_ext <<_ACEOF
21736/* confdefs.h. */
21737_ACEOF
21738cat confdefs.h >>conftest.$ac_ext
21739cat >>conftest.$ac_ext <<_ACEOF
21740/* end confdefs.h. */
21741#include <string>
21742int
21743main ()
21744{
21745std::string foo, bar;
21746 foo.compare(bar);
21747 foo.compare(1, 1, bar);
21748 foo.compare(1, 1, bar, 1, 1);
21749 foo.compare("");
21750 foo.compare(1, 1, "");
21751 foo.compare(1, 1, "", 2);
21752 ;
21753 return 0;
21754}
21755_ACEOF
21756rm -f conftest.$ac_objext
21757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21758 (eval $ac_compile) 2>conftest.er1
a848cd7e 21759 ac_status=$?
ac1cb8d3
VS
21760 grep -v '^ *+' conftest.er1 >conftest.err
21761 rm -f conftest.er1
21762 cat conftest.err >&5
a848cd7e
SC
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } &&
8c539582 21765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; } &&
21771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21774 ac_status=$?
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; }; then
21777 echo "$as_me:$LINENO: result: yes" >&5
21778echo "${ECHO_T}yes" >&6
21779 cat >>confdefs.h <<\_ACEOF
21780#define HAVE_STD_STRING_COMPARE 1
21781_ACEOF
21782
21783else
21784 echo "$as_me: failed program was:" >&5
21785sed 's/^/| /' conftest.$ac_ext >&5
21786
21787echo "$as_me:$LINENO: result: no" >&5
21788echo "${ECHO_T}no" >&6
21789fi
ac1cb8d3 21790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21791
21792 if test "${ac_cv_header_hash_map+set}" = set; then
21793 echo "$as_me:$LINENO: checking for hash_map" >&5
21794echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21795if test "${ac_cv_header_hash_map+set}" = set; then
21796 echo $ECHO_N "(cached) $ECHO_C" >&6
21797fi
21798echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21799echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21800else
21801 # Is the header compilable?
21802echo "$as_me:$LINENO: checking hash_map usability" >&5
21803echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21804cat >conftest.$ac_ext <<_ACEOF
21805/* confdefs.h. */
21806_ACEOF
21807cat confdefs.h >>conftest.$ac_ext
21808cat >>conftest.$ac_ext <<_ACEOF
21809/* end confdefs.h. */
21810$ac_includes_default
21811#include <hash_map>
21812_ACEOF
21813rm -f conftest.$ac_objext
21814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21815 (eval $ac_compile) 2>conftest.er1
bdcade0a 21816 ac_status=$?
ac1cb8d3
VS
21817 grep -v '^ *+' conftest.er1 >conftest.err
21818 rm -f conftest.er1
21819 cat conftest.err >&5
bdcade0a
MB
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } &&
8c539582 21822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; } &&
21828 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ac_header_compiler=yes
21835else
21836 echo "$as_me: failed program was:" >&5
21837sed 's/^/| /' conftest.$ac_ext >&5
21838
21839ac_header_compiler=no
21840fi
ac1cb8d3 21841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21842echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21843echo "${ECHO_T}$ac_header_compiler" >&6
21844
21845# Is the header present?
21846echo "$as_me:$LINENO: checking hash_map presence" >&5
21847echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21848cat >conftest.$ac_ext <<_ACEOF
21849/* confdefs.h. */
21850_ACEOF
21851cat confdefs.h >>conftest.$ac_ext
21852cat >>conftest.$ac_ext <<_ACEOF
21853/* end confdefs.h. */
21854#include <hash_map>
21855_ACEOF
21856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21858 ac_status=$?
21859 grep -v '^ *+' conftest.er1 >conftest.err
21860 rm -f conftest.er1
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } >/dev/null; then
21864 if test -s conftest.err; then
21865 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21866 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21867 else
21868 ac_cpp_err=
21869 fi
21870else
21871 ac_cpp_err=yes
21872fi
21873if test -z "$ac_cpp_err"; then
21874 ac_header_preproc=yes
21875else
21876 echo "$as_me: failed program was:" >&5
21877sed 's/^/| /' conftest.$ac_ext >&5
21878
21879 ac_header_preproc=no
21880fi
21881rm -f conftest.err conftest.$ac_ext
21882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21883echo "${ECHO_T}$ac_header_preproc" >&6
21884
21885# So? What about this header?
ac1cb8d3
VS
21886case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21887 yes:no: )
bdcade0a
MB
21888 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21889echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21890 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21891echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21892 ac_header_preproc=yes
bdcade0a 21893 ;;
ac1cb8d3 21894 no:yes:* )
bdcade0a
MB
21895 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21896echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21897 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21898echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21899 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21900echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21901 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21902echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21903 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21904echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21905 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21906echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21907 (
21908 cat <<\_ASBOX
ac1cb8d3
VS
21909## ----------------------------------------- ##
21910## Report this to wx-dev@lists.wxwidgets.org ##
21911## ----------------------------------------- ##
bdcade0a
MB
21912_ASBOX
21913 ) |
21914 sed "s/^/$as_me: WARNING: /" >&2
21915 ;;
21916esac
21917echo "$as_me:$LINENO: checking for hash_map" >&5
21918echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21919if test "${ac_cv_header_hash_map+set}" = set; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21921else
21922 ac_cv_header_hash_map=$ac_header_preproc
21923fi
21924echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21925echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21926
21927fi
21928if test $ac_cv_header_hash_map = yes; then
21929 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21930echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21931 cat >conftest.$ac_ext <<_ACEOF
21932/* confdefs.h. */
21933_ACEOF
21934cat confdefs.h >>conftest.$ac_ext
21935cat >>conftest.$ac_ext <<_ACEOF
21936/* end confdefs.h. */
21937#include <hash_map>
21938 #include <hash_set>
21939int
21940main ()
21941{
21942std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21943 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21944 ;
21945 return 0;
21946}
21947_ACEOF
21948rm -f conftest.$ac_objext
21949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21950 (eval $ac_compile) 2>conftest.er1
bdcade0a 21951 ac_status=$?
ac1cb8d3
VS
21952 grep -v '^ *+' conftest.er1 >conftest.err
21953 rm -f conftest.er1
21954 cat conftest.err >&5
bdcade0a
MB
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } &&
8c539582 21957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21959 (eval $ac_try) 2>&5
21960 ac_status=$?
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); }; } &&
21963 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965 (eval $ac_try) 2>&5
21966 ac_status=$?
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }; then
21969 echo "$as_me:$LINENO: result: yes" >&5
21970echo "${ECHO_T}yes" >&6
21971 cat >>confdefs.h <<\_ACEOF
21972#define HAVE_HASH_MAP 1
21973_ACEOF
21974
21975 cat >>confdefs.h <<\_ACEOF
21976#define HAVE_STD_HASH_MAP 1
21977_ACEOF
21978
21979else
21980 echo "$as_me: failed program was:" >&5
21981sed 's/^/| /' conftest.$ac_ext >&5
21982
21983echo "$as_me:$LINENO: result: no" >&5
21984echo "${ECHO_T}no" >&6
21985fi
ac1cb8d3 21986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21987
21988fi
21989
21990
21991
21992 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21993 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21994echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21995if test "${ac_cv_header_ext_hash_map+set}" = set; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21997fi
21998echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21999echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22000else
22001 # Is the header compilable?
22002echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22003echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22004cat >conftest.$ac_ext <<_ACEOF
22005/* confdefs.h. */
22006_ACEOF
22007cat confdefs.h >>conftest.$ac_ext
22008cat >>conftest.$ac_ext <<_ACEOF
22009/* end confdefs.h. */
22010$ac_includes_default
22011#include <ext/hash_map>
22012_ACEOF
22013rm -f conftest.$ac_objext
22014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22015 (eval $ac_compile) 2>conftest.er1
bdcade0a 22016 ac_status=$?
ac1cb8d3
VS
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
bdcade0a
MB
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } &&
8c539582 22022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22024 (eval $ac_try) 2>&5
22025 ac_status=$?
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); }; } &&
22028 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030 (eval $ac_try) 2>&5
22031 ac_status=$?
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; }; then
22034 ac_header_compiler=yes
22035else
22036 echo "$as_me: failed program was:" >&5
22037sed 's/^/| /' conftest.$ac_ext >&5
22038
22039ac_header_compiler=no
22040fi
ac1cb8d3 22041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22042echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22043echo "${ECHO_T}$ac_header_compiler" >&6
22044
22045# Is the header present?
22046echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22047echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22048cat >conftest.$ac_ext <<_ACEOF
22049/* confdefs.h. */
22050_ACEOF
22051cat confdefs.h >>conftest.$ac_ext
22052cat >>conftest.$ac_ext <<_ACEOF
22053/* end confdefs.h. */
22054#include <ext/hash_map>
22055_ACEOF
22056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22058 ac_status=$?
22059 grep -v '^ *+' conftest.er1 >conftest.err
22060 rm -f conftest.er1
22061 cat conftest.err >&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } >/dev/null; then
22064 if test -s conftest.err; then
22065 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22066 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22067 else
22068 ac_cpp_err=
22069 fi
22070else
22071 ac_cpp_err=yes
22072fi
22073if test -z "$ac_cpp_err"; then
22074 ac_header_preproc=yes
22075else
22076 echo "$as_me: failed program was:" >&5
22077sed 's/^/| /' conftest.$ac_ext >&5
22078
22079 ac_header_preproc=no
22080fi
22081rm -f conftest.err conftest.$ac_ext
22082echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22083echo "${ECHO_T}$ac_header_preproc" >&6
22084
22085# So? What about this header?
ac1cb8d3
VS
22086case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22087 yes:no: )
bdcade0a
MB
22088 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22089echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22090 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22091echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22092 ac_header_preproc=yes
bdcade0a 22093 ;;
ac1cb8d3 22094 no:yes:* )
bdcade0a
MB
22095 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22096echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22097 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22098echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22099 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22100echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22101 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22102echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22103 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22104echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22105 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22106echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22107 (
22108 cat <<\_ASBOX
ac1cb8d3
VS
22109## ----------------------------------------- ##
22110## Report this to wx-dev@lists.wxwidgets.org ##
22111## ----------------------------------------- ##
bdcade0a
MB
22112_ASBOX
22113 ) |
22114 sed "s/^/$as_me: WARNING: /" >&2
22115 ;;
22116esac
22117echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22118echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22119if test "${ac_cv_header_ext_hash_map+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22121else
22122 ac_cv_header_ext_hash_map=$ac_header_preproc
22123fi
22124echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22125echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22126
22127fi
22128if test $ac_cv_header_ext_hash_map = yes; then
22129 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22130echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22131 cat >conftest.$ac_ext <<_ACEOF
22132/* confdefs.h. */
22133_ACEOF
22134cat confdefs.h >>conftest.$ac_ext
22135cat >>conftest.$ac_ext <<_ACEOF
22136/* end confdefs.h. */
22137#include <ext/hash_map>
22138 #include <ext/hash_set>
22139int
22140main ()
22141{
22142__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22143 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22144 ;
22145 return 0;
22146}
22147_ACEOF
22148rm -f conftest.$ac_objext
22149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22150 (eval $ac_compile) 2>conftest.er1
bdcade0a 22151 ac_status=$?
ac1cb8d3
VS
22152 grep -v '^ *+' conftest.er1 >conftest.err
22153 rm -f conftest.er1
22154 cat conftest.err >&5
bdcade0a
MB
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } &&
8c539582 22157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22160 ac_status=$?
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; } &&
22163 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165 (eval $ac_try) 2>&5
22166 ac_status=$?
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); }; }; then
22169 echo "$as_me:$LINENO: result: yes" >&5
22170echo "${ECHO_T}yes" >&6
22171 cat >>confdefs.h <<\_ACEOF
22172#define HAVE_EXT_HASH_MAP 1
22173_ACEOF
22174
22175 cat >>confdefs.h <<\_ACEOF
22176#define HAVE_GNU_CXX_HASH_MAP 1
22177_ACEOF
22178
22179else
22180 echo "$as_me: failed program was:" >&5
22181sed 's/^/| /' conftest.$ac_ext >&5
22182
22183echo "$as_me:$LINENO: result: no" >&5
22184echo "${ECHO_T}no" >&6
22185fi
ac1cb8d3 22186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22187
22188fi
22189
22190
a848cd7e
SC
22191
22192 ac_ext=c
22193ac_cpp='$CPP $CPPFLAGS'
22194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22196ac_compiler_gnu=$ac_cv_c_compiler_gnu
22197
22198fi
22199
22200
22201SEARCH_INCLUDE="\
22202 /usr/local/include \
22203 \
22204 /usr/Motif-2.1/include \
22205 /usr/Motif-1.2/include \
22206 /usr/include/Motif1.2 \
22207 /opt/xpm/include/X11 \
22208 /opt/GBxpm/include/ \
22209 /opt/GBxpm/X11/include/ \
22210 \
22211 /usr/dt/include \
22212 /usr/openwin/include \
22213 \
22214 /usr/include/Xm \
22215 \
22216 /usr/X11R6/include \
22217 /usr/X11R6.4/include \
22218 /usr/X11R5/include \
22219 /usr/X11R4/include \
22220 \
22221 /usr/include/X11R6 \
22222 /usr/include/X11R5 \
22223 /usr/include/X11R4 \
22224 \
22225 /usr/local/X11R6/include \
22226 /usr/local/X11R5/include \
22227 /usr/local/X11R4/include \
22228 \
22229 /usr/local/include/X11R6 \
22230 /usr/local/include/X11R5 \
22231 /usr/local/include/X11R4 \
22232 \
22233 /usr/X11/include \
22234 /usr/include/X11 \
22235 /usr/local/X11/include \
22236 /usr/local/include/X11 \
22237 \
22238 /usr/X386/include \
22239 /usr/x386/include \
22240 /usr/XFree86/include/X11 \
22241 \
22242 X:/XFree86/include \
22243 X:/XFree86/include/X11 \
22244 \
22245 /usr/include/gtk \
22246 /usr/local/include/gtk \
22247 /usr/include/glib \
22248 /usr/local/include/glib \
22249 \
22250 /usr/include/qt \
22251 /usr/local/include/qt \
22252 \
22253 /usr/local/arm/3.3.2/include \
22254 \
22255 /usr/include/windows \
22256 /usr/include/wine \
22257 /usr/local/include/wine \
22258 \
22259 /usr/unsupported/include \
22260 /usr/athena/include \
22261 /usr/local/x11r5/include \
22262 /usr/lpp/Xamples/include \
22263 \
22264 /usr/openwin/share/include"
22265
07158944 22266SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
22267
22268
22269cat >confcache <<\_ACEOF
22270# This file is a shell script that caches the results of configure
22271# tests run on this system so they can be shared between configure
22272# scripts and configure runs, see configure's option --config-cache.
22273# It is not useful on other systems. If it contains results you don't
22274# want to keep, you may remove or edit it.
22275#
22276# config.status only pays attention to the cache file if you give it
22277# the --recheck option to rerun configure.
22278#
22279# `ac_cv_env_foo' variables (set or unset) will be overridden when
22280# loading this file, other *unset* `ac_cv_foo' will be assigned the
22281# following values.
22282
22283_ACEOF
22284
22285# The following way of writing the cache mishandles newlines in values,
22286# but we know of no workaround that is simple, portable, and efficient.
22287# So, don't put newlines in cache variables' values.
22288# Ultrix sh set writes to stderr and can't be redirected directly,
22289# and sets the high bit in the cache file unless we assign to the vars.
22290{
22291 (set) 2>&1 |
22292 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22293 *ac_space=\ *)
22294 # `set' does not quote correctly, so add quotes (double-quote
22295 # substitution turns \\\\ into \\, and sed turns \\ into \).
22296 sed -n \
ac1cb8d3
VS
22297 "s/'/'\\\\''/g;
22298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22299 ;;
22300 *)
22301 # `set' quotes correctly as required by POSIX, so do not add quotes.
22302 sed -n \
ac1cb8d3 22303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22304 ;;
22305 esac;
22306} |
22307 sed '
22308 t clear
22309 : clear
22310 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22311 t end
22312 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22313 : end' >>confcache
22314if diff $cache_file confcache >/dev/null 2>&1; then :; else
22315 if test -w $cache_file; then
22316 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22317 cat confcache >$cache_file
22318 else
22319 echo "not updating unwritable cache $cache_file"
22320 fi
22321fi
22322rm -f confcache
22323
22324if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22325 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22326echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22327if test "${wx_cv_lib_glibc21+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22329else
22330
22331 cat >conftest.$ac_ext <<_ACEOF
22332/* confdefs.h. */
22333_ACEOF
22334cat confdefs.h >>conftest.$ac_ext
22335cat >>conftest.$ac_ext <<_ACEOF
22336/* end confdefs.h. */
22337#include <features.h>
22338int
22339main ()
22340{
22341
22342 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22343 #error not glibc2.1
22344 #endif
22345
22346 ;
22347 return 0;
22348}
22349_ACEOF
22350rm -f conftest.$ac_objext
22351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22352 (eval $ac_compile) 2>conftest.er1
a848cd7e 22353 ac_status=$?
ac1cb8d3
VS
22354 grep -v '^ *+' conftest.er1 >conftest.err
22355 rm -f conftest.er1
22356 cat conftest.err >&5
a848cd7e
SC
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); } &&
8c539582 22359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361 (eval $ac_try) 2>&5
22362 ac_status=$?
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); }; } &&
22365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22367 (eval $ac_try) 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }; }; then
22371
22372 wx_cv_lib_glibc21=yes
22373
22374else
22375 echo "$as_me: failed program was:" >&5
22376sed 's/^/| /' conftest.$ac_ext >&5
22377
22378
22379 wx_cv_lib_glibc21=no
22380
22381
22382fi
ac1cb8d3 22383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22384
22385fi
22386echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22387echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22388 if test "$wx_cv_lib_glibc21" = "yes"; then
22389 cat >>confdefs.h <<\_ACEOF
22390#define wxHAVE_GLIBC2 1
22391_ACEOF
22392
22393 fi
22394fi
22395
22396if test "x$wx_cv_lib_glibc21" = "xyes"; then
22397 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22398 cat >>confdefs.h <<\_ACEOF
22399#define _GNU_SOURCE 1
22400_ACEOF
22401
22402 fi
22403fi
22404
22405
22406
22407if test "$wxUSE_REGEX" != "no"; then
22408 cat >>confdefs.h <<\_ACEOF
22409#define wxUSE_REGEX 1
22410_ACEOF
22411
22412
22413 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22414 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22415echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22416 wxUSE_REGEX=builtin
22417 fi
22418
22419 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22420 if test "${ac_cv_header_regex_h+set}" = set; then
22421 echo "$as_me:$LINENO: checking for regex.h" >&5
22422echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22423if test "${ac_cv_header_regex_h+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22425fi
22426echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22427echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22428else
22429 # Is the header compilable?
22430echo "$as_me:$LINENO: checking regex.h usability" >&5
22431echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22432cat >conftest.$ac_ext <<_ACEOF
22433/* confdefs.h. */
22434_ACEOF
22435cat confdefs.h >>conftest.$ac_ext
22436cat >>conftest.$ac_ext <<_ACEOF
22437/* end confdefs.h. */
22438$ac_includes_default
22439#include <regex.h>
22440_ACEOF
22441rm -f conftest.$ac_objext
22442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22443 (eval $ac_compile) 2>conftest.er1
a848cd7e 22444 ac_status=$?
ac1cb8d3
VS
22445 grep -v '^ *+' conftest.er1 >conftest.err
22446 rm -f conftest.er1
22447 cat conftest.err >&5
a848cd7e
SC
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } &&
8c539582 22450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22453 ac_status=$?
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; } &&
22456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462 ac_header_compiler=yes
22463else
22464 echo "$as_me: failed program was:" >&5
22465sed 's/^/| /' conftest.$ac_ext >&5
22466
22467ac_header_compiler=no
22468fi
ac1cb8d3 22469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22470echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22471echo "${ECHO_T}$ac_header_compiler" >&6
22472
22473# Is the header present?
22474echo "$as_me:$LINENO: checking regex.h presence" >&5
22475echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22476cat >conftest.$ac_ext <<_ACEOF
22477/* confdefs.h. */
22478_ACEOF
22479cat confdefs.h >>conftest.$ac_ext
22480cat >>conftest.$ac_ext <<_ACEOF
22481/* end confdefs.h. */
22482#include <regex.h>
22483_ACEOF
22484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22486 ac_status=$?
22487 grep -v '^ *+' conftest.er1 >conftest.err
22488 rm -f conftest.er1
22489 cat conftest.err >&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); } >/dev/null; then
22492 if test -s conftest.err; then
22493 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22495 else
22496 ac_cpp_err=
22497 fi
22498else
22499 ac_cpp_err=yes
22500fi
22501if test -z "$ac_cpp_err"; then
22502 ac_header_preproc=yes
22503else
22504 echo "$as_me: failed program was:" >&5
22505sed 's/^/| /' conftest.$ac_ext >&5
22506
22507 ac_header_preproc=no
22508fi
22509rm -f conftest.err conftest.$ac_ext
22510echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22511echo "${ECHO_T}$ac_header_preproc" >&6
22512
22513# So? What about this header?
ac1cb8d3
VS
22514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22515 yes:no: )
a848cd7e
SC
22516 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22517echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22518 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22519echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22520 ac_header_preproc=yes
a848cd7e 22521 ;;
ac1cb8d3 22522 no:yes:* )
a848cd7e
SC
22523 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22524echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22525 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22526echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22527 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22528echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22529 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22530echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22531 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22532echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22533 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22534echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22535 (
22536 cat <<\_ASBOX
ac1cb8d3
VS
22537## ----------------------------------------- ##
22538## Report this to wx-dev@lists.wxwidgets.org ##
22539## ----------------------------------------- ##
a848cd7e
SC
22540_ASBOX
22541 ) |
22542 sed "s/^/$as_me: WARNING: /" >&2
22543 ;;
22544esac
22545echo "$as_me:$LINENO: checking for regex.h" >&5
22546echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22547if test "${ac_cv_header_regex_h+set}" = set; then
22548 echo $ECHO_N "(cached) $ECHO_C" >&6
22549else
22550 ac_cv_header_regex_h=$ac_header_preproc
22551fi
22552echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22553echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22554
22555fi
22556if test $ac_cv_header_regex_h = yes; then
22557
22558for ac_func in regcomp
22559do
22560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22561echo "$as_me:$LINENO: checking for $ac_func" >&5
22562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22563if eval "test \"\${$as_ac_var+set}\" = set"; then
22564 echo $ECHO_N "(cached) $ECHO_C" >&6
22565else
22566 cat >conftest.$ac_ext <<_ACEOF
22567/* confdefs.h. */
22568_ACEOF
22569cat confdefs.h >>conftest.$ac_ext
22570cat >>conftest.$ac_ext <<_ACEOF
22571/* end confdefs.h. */
ac1cb8d3
VS
22572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22574#define $ac_func innocuous_$ac_func
22575
a848cd7e
SC
22576/* System header to define __stub macros and hopefully few prototypes,
22577 which can conflict with char $ac_func (); below.
22578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22579 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22580
a848cd7e
SC
22581#ifdef __STDC__
22582# include <limits.h>
22583#else
22584# include <assert.h>
22585#endif
ac1cb8d3
VS
22586
22587#undef $ac_func
22588
a848cd7e
SC
22589/* Override any gcc2 internal prototype to avoid an error. */
22590#ifdef __cplusplus
22591extern "C"
22592{
22593#endif
22594/* We use char because int might match the return type of a gcc2
22595 builtin and then its argument prototype would still apply. */
22596char $ac_func ();
22597/* The GNU C library defines this for functions which it implements
22598 to always fail with ENOSYS. Some functions are actually named
22599 something starting with __ and the normal name is an alias. */
22600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22601choke me
22602#else
22603char (*f) () = $ac_func;
22604#endif
22605#ifdef __cplusplus
22606}
22607#endif
22608
22609int
22610main ()
22611{
22612return f != $ac_func;
22613 ;
22614 return 0;
22615}
22616_ACEOF
22617rm -f conftest.$ac_objext conftest$ac_exeext
22618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22619 (eval $ac_link) 2>conftest.er1
a848cd7e 22620 ac_status=$?
ac1cb8d3
VS
22621 grep -v '^ *+' conftest.er1 >conftest.err
22622 rm -f conftest.er1
22623 cat conftest.err >&5
a848cd7e
SC
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } &&
8c539582 22626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; } &&
22632 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; }; then
22638 eval "$as_ac_var=yes"
22639else
22640 echo "$as_me: failed program was:" >&5
22641sed 's/^/| /' conftest.$ac_ext >&5
22642
22643eval "$as_ac_var=no"
22644fi
ac1cb8d3
VS
22645rm -f conftest.err conftest.$ac_objext \
22646 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22647fi
22648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22650if test `eval echo '${'$as_ac_var'}'` = yes; then
22651 cat >>confdefs.h <<_ACEOF
22652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22653_ACEOF
22654
22655fi
22656done
22657
22658fi
22659
22660
22661
22662 if test "x$ac_cv_func_regcomp" != "xyes"; then
22663 if test "$wxUSE_REGEX" = "sys" ; then
22664 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22665echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22666 { (exit 1); exit 1; }; }
22667 else
22668 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22669echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22670 wxUSE_REGEX=builtin
22671 fi
22672 else
22673 wxUSE_REGEX=sys
22674 cat >>confdefs.h <<\_ACEOF
22675#define WX_NO_REGEX_ADVANCED 1
22676_ACEOF
22677
22678 fi
22679 fi
22680fi
22681
22682
22683ZLIB_LINK=
22684if test "$wxUSE_ZLIB" != "no" ; then
22685 cat >>confdefs.h <<\_ACEOF
22686#define wxUSE_ZLIB 1
22687_ACEOF
22688
22689
22690 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22691 if test "$USE_DARWIN" = 1; then
22692 system_zlib_h_ok="yes"
22693 else
22694 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22695echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22696if test "${ac_cv_header_zlib_h+set}" = set; then
22697 echo $ECHO_N "(cached) $ECHO_C" >&6
22698else
22699 if test "$cross_compiling" = yes; then
22700 unset ac_cv_header_zlib_h
22701
22702else
22703 cat >conftest.$ac_ext <<_ACEOF
22704/* confdefs.h. */
22705_ACEOF
22706cat confdefs.h >>conftest.$ac_ext
22707cat >>conftest.$ac_ext <<_ACEOF
22708/* end confdefs.h. */
22709
22710 #include <zlib.h>
22711 #include <stdio.h>
22712
22713 int main()
22714 {
22715 FILE *f=fopen("conftestval", "w");
22716 if (!f) exit(1);
22717 fprintf(f, "%s",
22718 ZLIB_VERSION[0] == '1' &&
22719 (ZLIB_VERSION[2] > '1' ||
22720 (ZLIB_VERSION[2] == '1' &&
22721 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22722 exit(0);
22723 }
22724
22725_ACEOF
22726rm -f conftest$ac_exeext
22727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22728 (eval $ac_link) 2>&5
22729 ac_status=$?
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5
22734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; }; then
22737 ac_cv_header_zlib_h=`cat conftestval`
22738else
22739 echo "$as_me: program exited with status $ac_status" >&5
22740echo "$as_me: failed program was:" >&5
22741sed 's/^/| /' conftest.$ac_ext >&5
22742
22743( exit $ac_status )
22744ac_cv_header_zlib_h=no
22745fi
ac1cb8d3 22746rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22747fi
22748
22749fi
22750echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22751echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22752 if test "${ac_cv_header_zlib_h+set}" = set; then
22753 echo "$as_me:$LINENO: checking for zlib.h" >&5
22754echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22755if test "${ac_cv_header_zlib_h+set}" = set; then
22756 echo $ECHO_N "(cached) $ECHO_C" >&6
22757fi
22758echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22759echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22760else
22761 # Is the header compilable?
22762echo "$as_me:$LINENO: checking zlib.h usability" >&5
22763echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22764cat >conftest.$ac_ext <<_ACEOF
22765/* confdefs.h. */
22766_ACEOF
22767cat confdefs.h >>conftest.$ac_ext
22768cat >>conftest.$ac_ext <<_ACEOF
22769/* end confdefs.h. */
22770$ac_includes_default
22771#include <zlib.h>
22772_ACEOF
22773rm -f conftest.$ac_objext
22774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22775 (eval $ac_compile) 2>conftest.er1
a848cd7e 22776 ac_status=$?
ac1cb8d3
VS
22777 grep -v '^ *+' conftest.er1 >conftest.err
22778 rm -f conftest.er1
22779 cat conftest.err >&5
a848cd7e
SC
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } &&
8c539582 22782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784 (eval $ac_try) 2>&5
22785 ac_status=$?
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); }; } &&
22788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790 (eval $ac_try) 2>&5
22791 ac_status=$?
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; }; then
22794 ac_header_compiler=yes
22795else
22796 echo "$as_me: failed program was:" >&5
22797sed 's/^/| /' conftest.$ac_ext >&5
22798
22799ac_header_compiler=no
22800fi
ac1cb8d3 22801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22803echo "${ECHO_T}$ac_header_compiler" >&6
22804
22805# Is the header present?
22806echo "$as_me:$LINENO: checking zlib.h presence" >&5
22807echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22808cat >conftest.$ac_ext <<_ACEOF
22809/* confdefs.h. */
22810_ACEOF
22811cat confdefs.h >>conftest.$ac_ext
22812cat >>conftest.$ac_ext <<_ACEOF
22813/* end confdefs.h. */
22814#include <zlib.h>
22815_ACEOF
22816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22818 ac_status=$?
22819 grep -v '^ *+' conftest.er1 >conftest.err
22820 rm -f conftest.er1
22821 cat conftest.err >&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } >/dev/null; then
22824 if test -s conftest.err; then
22825 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22827 else
22828 ac_cpp_err=
22829 fi
22830else
22831 ac_cpp_err=yes
22832fi
22833if test -z "$ac_cpp_err"; then
22834 ac_header_preproc=yes
22835else
22836 echo "$as_me: failed program was:" >&5
22837sed 's/^/| /' conftest.$ac_ext >&5
22838
22839 ac_header_preproc=no
22840fi
22841rm -f conftest.err conftest.$ac_ext
22842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22843echo "${ECHO_T}$ac_header_preproc" >&6
22844
22845# So? What about this header?
ac1cb8d3
VS
22846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22847 yes:no: )
a848cd7e
SC
22848 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22849echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22850 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22851echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22852 ac_header_preproc=yes
a848cd7e 22853 ;;
ac1cb8d3 22854 no:yes:* )
a848cd7e
SC
22855 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22856echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22857 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22858echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22859 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22860echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22861 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22862echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22863 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22864echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22865 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22866echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22867 (
22868 cat <<\_ASBOX
ac1cb8d3
VS
22869## ----------------------------------------- ##
22870## Report this to wx-dev@lists.wxwidgets.org ##
22871## ----------------------------------------- ##
a848cd7e
SC
22872_ASBOX
22873 ) |
22874 sed "s/^/$as_me: WARNING: /" >&2
22875 ;;
22876esac
22877echo "$as_me:$LINENO: checking for zlib.h" >&5
22878echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22879if test "${ac_cv_header_zlib_h+set}" = set; then
22880 echo $ECHO_N "(cached) $ECHO_C" >&6
22881else
22882 ac_cv_header_zlib_h=$ac_header_preproc
22883fi
22884echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22885echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22886
22887fi
22888
22889
22890
22891 system_zlib_h_ok=$ac_cv_header_zlib_h
22892 fi
22893
22894 if test "$system_zlib_h_ok" = "yes"; then
22895 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22896echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22897if test "${ac_cv_lib_z_deflate+set}" = set; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22899else
22900 ac_check_lib_save_LIBS=$LIBS
22901LIBS="-lz $LIBS"
22902cat >conftest.$ac_ext <<_ACEOF
22903/* confdefs.h. */
22904_ACEOF
22905cat confdefs.h >>conftest.$ac_ext
22906cat >>conftest.$ac_ext <<_ACEOF
22907/* end confdefs.h. */
22908
22909/* Override any gcc2 internal prototype to avoid an error. */
22910#ifdef __cplusplus
22911extern "C"
22912#endif
22913/* We use char because int might match the return type of a gcc2
22914 builtin and then its argument prototype would still apply. */
22915char deflate ();
22916int
22917main ()
22918{
22919deflate ();
22920 ;
22921 return 0;
22922}
22923_ACEOF
22924rm -f conftest.$ac_objext conftest$ac_exeext
22925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22926 (eval $ac_link) 2>conftest.er1
a848cd7e 22927 ac_status=$?
ac1cb8d3
VS
22928 grep -v '^ *+' conftest.er1 >conftest.err
22929 rm -f conftest.er1
22930 cat conftest.err >&5
a848cd7e
SC
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } &&
8c539582 22933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22935 (eval $ac_try) 2>&5
22936 ac_status=$?
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); }; } &&
22939 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 ac_cv_lib_z_deflate=yes
22946else
22947 echo "$as_me: failed program was:" >&5
22948sed 's/^/| /' conftest.$ac_ext >&5
22949
22950ac_cv_lib_z_deflate=no
22951fi
ac1cb8d3
VS
22952rm -f conftest.err conftest.$ac_objext \
22953 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22954LIBS=$ac_check_lib_save_LIBS
22955fi
22956echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22957echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22958if test $ac_cv_lib_z_deflate = yes; then
22959 ZLIB_LINK=" -lz"
22960fi
22961
22962 fi
22963
22964 if test "x$ZLIB_LINK" = "x" ; then
22965 if test "$wxUSE_ZLIB" = "sys" ; then
22966 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22967echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22968 { (exit 1); exit 1; }; }
22969 else
22970 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22971echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22972 wxUSE_ZLIB=builtin
22973 fi
22974 else
22975 wxUSE_ZLIB=sys
22976 fi
22977 fi
22978fi
22979
22980
22981PNG_LINK=
22982if test "$wxUSE_LIBPNG" != "no" ; then
22983 cat >>confdefs.h <<\_ACEOF
22984#define wxUSE_LIBPNG 1
22985_ACEOF
22986
22987
22988 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22989 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22990echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22991 wxUSE_LIBPNG=sys
22992 fi
22993
22994 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22995 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22996echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22997 wxUSE_LIBPNG=builtin
22998 fi
22999
23000 if test "$wxUSE_MGL" != 1 ; then
23001 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23002 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23003echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23004if test "${ac_cv_header_png_h+set}" = set; then
23005 echo $ECHO_N "(cached) $ECHO_C" >&6
23006else
23007 if test "$cross_compiling" = yes; then
23008 unset ac_cv_header_png_h
23009
23010else
23011 cat >conftest.$ac_ext <<_ACEOF
23012/* confdefs.h. */
23013_ACEOF
23014cat confdefs.h >>conftest.$ac_ext
23015cat >>conftest.$ac_ext <<_ACEOF
23016/* end confdefs.h. */
23017
23018 #include <png.h>
23019 #include <stdio.h>
23020
23021 int main()
23022 {
23023 FILE *f=fopen("conftestval", "w");
23024 if (!f) exit(1);
23025 fprintf(f, "%s",
23026 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23027 exit(0);
23028 }
23029
23030_ACEOF
23031rm -f conftest$ac_exeext
23032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23033 (eval $ac_link) 2>&5
23034 ac_status=$?
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23038 (eval $ac_try) 2>&5
23039 ac_status=$?
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; }; then
23042 ac_cv_header_png_h=`cat conftestval`
23043else
23044 echo "$as_me: program exited with status $ac_status" >&5
23045echo "$as_me: failed program was:" >&5
23046sed 's/^/| /' conftest.$ac_ext >&5
23047
23048( exit $ac_status )
23049ac_cv_header_png_h=no
23050fi
ac1cb8d3 23051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23052fi
23053
23054fi
23055echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23056echo "${ECHO_T}$ac_cv_header_png_h" >&6
23057 if test "${ac_cv_header_png_h+set}" = set; then
23058 echo "$as_me:$LINENO: checking for png.h" >&5
23059echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23060if test "${ac_cv_header_png_h+set}" = set; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
23062fi
23063echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23064echo "${ECHO_T}$ac_cv_header_png_h" >&6
23065else
23066 # Is the header compilable?
23067echo "$as_me:$LINENO: checking png.h usability" >&5
23068echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23069cat >conftest.$ac_ext <<_ACEOF
23070/* confdefs.h. */
23071_ACEOF
23072cat confdefs.h >>conftest.$ac_ext
23073cat >>conftest.$ac_ext <<_ACEOF
23074/* end confdefs.h. */
23075$ac_includes_default
23076#include <png.h>
23077_ACEOF
23078rm -f conftest.$ac_objext
23079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23080 (eval $ac_compile) 2>conftest.er1
a848cd7e 23081 ac_status=$?
ac1cb8d3
VS
23082 grep -v '^ *+' conftest.er1 >conftest.err
23083 rm -f conftest.er1
23084 cat conftest.err >&5
a848cd7e
SC
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } &&
8c539582 23087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23090 ac_status=$?
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; } &&
23093 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23096 ac_status=$?
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; }; then
23099 ac_header_compiler=yes
23100else
23101 echo "$as_me: failed program was:" >&5
23102sed 's/^/| /' conftest.$ac_ext >&5
23103
23104ac_header_compiler=no
23105fi
ac1cb8d3 23106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23107echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23108echo "${ECHO_T}$ac_header_compiler" >&6
23109
23110# Is the header present?
23111echo "$as_me:$LINENO: checking png.h presence" >&5
23112echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23113cat >conftest.$ac_ext <<_ACEOF
23114/* confdefs.h. */
23115_ACEOF
23116cat confdefs.h >>conftest.$ac_ext
23117cat >>conftest.$ac_ext <<_ACEOF
23118/* end confdefs.h. */
23119#include <png.h>
23120_ACEOF
23121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23123 ac_status=$?
23124 grep -v '^ *+' conftest.er1 >conftest.err
23125 rm -f conftest.er1
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } >/dev/null; then
23129 if test -s conftest.err; then
23130 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23132 else
23133 ac_cpp_err=
23134 fi
23135else
23136 ac_cpp_err=yes
23137fi
23138if test -z "$ac_cpp_err"; then
23139 ac_header_preproc=yes
23140else
23141 echo "$as_me: failed program was:" >&5
23142sed 's/^/| /' conftest.$ac_ext >&5
23143
23144 ac_header_preproc=no
23145fi
23146rm -f conftest.err conftest.$ac_ext
23147echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23148echo "${ECHO_T}$ac_header_preproc" >&6
23149
23150# So? What about this header?
ac1cb8d3
VS
23151case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23152 yes:no: )
a848cd7e
SC
23153 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23154echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23155 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23156echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23157 ac_header_preproc=yes
a848cd7e 23158 ;;
ac1cb8d3 23159 no:yes:* )
a848cd7e
SC
23160 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23161echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23162 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23163echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23164 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23165echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23166 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23167echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23168 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23169echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23170 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23171echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23172 (
23173 cat <<\_ASBOX
ac1cb8d3
VS
23174## ----------------------------------------- ##
23175## Report this to wx-dev@lists.wxwidgets.org ##
23176## ----------------------------------------- ##
a848cd7e
SC
23177_ASBOX
23178 ) |
23179 sed "s/^/$as_me: WARNING: /" >&2
23180 ;;
23181esac
23182echo "$as_me:$LINENO: checking for png.h" >&5
23183echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23184if test "${ac_cv_header_png_h+set}" = set; then
23185 echo $ECHO_N "(cached) $ECHO_C" >&6
23186else
23187 ac_cv_header_png_h=$ac_header_preproc
23188fi
23189echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23190echo "${ECHO_T}$ac_cv_header_png_h" >&6
23191
23192fi
23193
23194
23195
23196 if test "$ac_cv_header_png_h" = "yes"; then
23197 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23198echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23199if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23200 echo $ECHO_N "(cached) $ECHO_C" >&6
23201else
23202 ac_check_lib_save_LIBS=$LIBS
23203LIBS="-lpng -lz -lm $LIBS"
23204cat >conftest.$ac_ext <<_ACEOF
23205/* confdefs.h. */
23206_ACEOF
23207cat confdefs.h >>conftest.$ac_ext
23208cat >>conftest.$ac_ext <<_ACEOF
23209/* end confdefs.h. */
23210
23211/* Override any gcc2 internal prototype to avoid an error. */
23212#ifdef __cplusplus
23213extern "C"
23214#endif
23215/* We use char because int might match the return type of a gcc2
23216 builtin and then its argument prototype would still apply. */
23217char png_check_sig ();
23218int
23219main ()
23220{
23221png_check_sig ();
23222 ;
23223 return 0;
23224}
23225_ACEOF
23226rm -f conftest.$ac_objext conftest$ac_exeext
23227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23228 (eval $ac_link) 2>conftest.er1
a848cd7e 23229 ac_status=$?
ac1cb8d3
VS
23230 grep -v '^ *+' conftest.er1 >conftest.err
23231 rm -f conftest.er1
23232 cat conftest.err >&5
a848cd7e
SC
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } &&
8c539582 23235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237 (eval $ac_try) 2>&5
23238 ac_status=$?
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; } &&
23241 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243 (eval $ac_try) 2>&5
23244 ac_status=$?
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); }; }; then
23247 ac_cv_lib_png_png_check_sig=yes
23248else
23249 echo "$as_me: failed program was:" >&5
23250sed 's/^/| /' conftest.$ac_ext >&5
23251
23252ac_cv_lib_png_png_check_sig=no
23253fi
ac1cb8d3
VS
23254rm -f conftest.err conftest.$ac_objext \
23255 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23256LIBS=$ac_check_lib_save_LIBS
23257fi
23258echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23259echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23260if test $ac_cv_lib_png_png_check_sig = yes; then
23261 PNG_LINK=" -lpng -lz"
23262fi
23263
23264 fi
23265
23266 if test "x$PNG_LINK" = "x" ; then
23267 if test "$wxUSE_LIBPNG" = "sys" ; then
23268 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23269echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23270 { (exit 1); exit 1; }; }
23271 else
23272 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23273echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23274 wxUSE_LIBPNG=builtin
23275 fi
23276 else
23277 wxUSE_LIBPNG=sys
23278 fi
23279 fi
23280 fi
23281
23282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23283fi
23284
23285
23286JPEG_LINK=
23287if test "$wxUSE_LIBJPEG" != "no" ; then
23288 cat >>confdefs.h <<\_ACEOF
23289#define wxUSE_LIBJPEG 1
23290_ACEOF
23291
23292
23293 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23294 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23295echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23296 wxUSE_LIBJPEG=sys
23297 fi
23298
23299 if test "$wxUSE_MGL" != 1 ; then
23300 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23301 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23302echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23303 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23305else
23306 cat >conftest.$ac_ext <<_ACEOF
23307/* confdefs.h. */
23308_ACEOF
23309cat confdefs.h >>conftest.$ac_ext
23310cat >>conftest.$ac_ext <<_ACEOF
23311/* end confdefs.h. */
23312
23313 #undef HAVE_STDLIB_H
23314 #include <stdio.h>
23315 #include <jpeglib.h>
23316
23317int
23318main ()
23319{
23320
23321
23322 ;
23323 return 0;
23324}
23325_ACEOF
23326rm -f conftest.$ac_objext
23327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23328 (eval $ac_compile) 2>conftest.er1
a848cd7e 23329 ac_status=$?
ac1cb8d3
VS
23330 grep -v '^ *+' conftest.er1 >conftest.err
23331 rm -f conftest.er1
23332 cat conftest.err >&5
a848cd7e
SC
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } &&
8c539582 23335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23338 ac_status=$?
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; } &&
23341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343 (eval $ac_try) 2>&5
23344 ac_status=$?
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; }; then
23347 ac_cv_header_jpeglib_h=yes
23348else
23349 echo "$as_me: failed program was:" >&5
23350sed 's/^/| /' conftest.$ac_ext >&5
23351
23352ac_cv_header_jpeglib_h=no
23353
23354fi
ac1cb8d3 23355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23356
23357fi
23358
23359 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23360echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23361
23362 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23363 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23364echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23365if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23366 echo $ECHO_N "(cached) $ECHO_C" >&6
23367else
23368 ac_check_lib_save_LIBS=$LIBS
23369LIBS="-ljpeg $LIBS"
23370cat >conftest.$ac_ext <<_ACEOF
23371/* confdefs.h. */
23372_ACEOF
23373cat confdefs.h >>conftest.$ac_ext
23374cat >>conftest.$ac_ext <<_ACEOF
23375/* end confdefs.h. */
23376
23377/* Override any gcc2 internal prototype to avoid an error. */
23378#ifdef __cplusplus
23379extern "C"
23380#endif
23381/* We use char because int might match the return type of a gcc2
23382 builtin and then its argument prototype would still apply. */
23383char jpeg_read_header ();
23384int
23385main ()
23386{
23387jpeg_read_header ();
23388 ;
23389 return 0;
23390}
23391_ACEOF
23392rm -f conftest.$ac_objext conftest$ac_exeext
23393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23394 (eval $ac_link) 2>conftest.er1
a848cd7e 23395 ac_status=$?
ac1cb8d3
VS
23396 grep -v '^ *+' conftest.er1 >conftest.err
23397 rm -f conftest.er1
23398 cat conftest.err >&5
a848cd7e
SC
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } &&
8c539582 23401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403 (eval $ac_try) 2>&5
23404 ac_status=$?
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); }; } &&
23407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23410 ac_status=$?
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; }; then
23413 ac_cv_lib_jpeg_jpeg_read_header=yes
23414else
23415 echo "$as_me: failed program was:" >&5
23416sed 's/^/| /' conftest.$ac_ext >&5
23417
23418ac_cv_lib_jpeg_jpeg_read_header=no
23419fi
ac1cb8d3
VS
23420rm -f conftest.err conftest.$ac_objext \
23421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23422LIBS=$ac_check_lib_save_LIBS
23423fi
23424echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23425echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23426if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23427 JPEG_LINK=" -ljpeg"
23428fi
23429
23430 fi
23431
23432 if test "x$JPEG_LINK" = "x" ; then
23433 if test "$wxUSE_LIBJPEG" = "sys" ; then
23434 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23435echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23436 { (exit 1); exit 1; }; }
23437 else
23438 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23439echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23440 wxUSE_LIBJPEG=builtin
23441 fi
23442 else
23443 wxUSE_LIBJPEG=sys
23444 fi
23445 fi
23446 fi
23447fi
23448
23449
23450TIFF_LINK=
23451TIFF_PREREQ_LINKS=-lm
23452if test "$wxUSE_LIBTIFF" != "no" ; then
23453 cat >>confdefs.h <<\_ACEOF
23454#define wxUSE_LIBTIFF 1
23455_ACEOF
23456
23457
23458 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23459 if test "$wxUSE_LIBJPEG" = "sys"; then
23460 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23461 fi
23462 if test "$wxUSE_ZLIB" = "sys"; then
23463 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23464 fi
23465 if test "${ac_cv_header_tiffio_h+set}" = set; then
23466 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23467echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23468if test "${ac_cv_header_tiffio_h+set}" = set; then
23469 echo $ECHO_N "(cached) $ECHO_C" >&6
23470fi
23471echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23472echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23473else
23474 # Is the header compilable?
23475echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23476echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23477cat >conftest.$ac_ext <<_ACEOF
23478/* confdefs.h. */
23479_ACEOF
23480cat confdefs.h >>conftest.$ac_ext
23481cat >>conftest.$ac_ext <<_ACEOF
23482/* end confdefs.h. */
23483$ac_includes_default
23484#include <tiffio.h>
23485_ACEOF
23486rm -f conftest.$ac_objext
23487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23488 (eval $ac_compile) 2>conftest.er1
a848cd7e 23489 ac_status=$?
ac1cb8d3
VS
23490 grep -v '^ *+' conftest.er1 >conftest.err
23491 rm -f conftest.er1
23492 cat conftest.err >&5
a848cd7e
SC
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); } &&
8c539582 23495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23497 (eval $ac_try) 2>&5
23498 ac_status=$?
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); }; } &&
23501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503 (eval $ac_try) 2>&5
23504 ac_status=$?
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); }; }; then
23507 ac_header_compiler=yes
23508else
23509 echo "$as_me: failed program was:" >&5
23510sed 's/^/| /' conftest.$ac_ext >&5
23511
23512ac_header_compiler=no
23513fi
ac1cb8d3 23514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23515echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23516echo "${ECHO_T}$ac_header_compiler" >&6
23517
23518# Is the header present?
23519echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23520echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23521cat >conftest.$ac_ext <<_ACEOF
23522/* confdefs.h. */
23523_ACEOF
23524cat confdefs.h >>conftest.$ac_ext
23525cat >>conftest.$ac_ext <<_ACEOF
23526/* end confdefs.h. */
23527#include <tiffio.h>
23528_ACEOF
23529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23531 ac_status=$?
23532 grep -v '^ *+' conftest.er1 >conftest.err
23533 rm -f conftest.er1
23534 cat conftest.err >&5
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } >/dev/null; then
23537 if test -s conftest.err; then
23538 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23540 else
23541 ac_cpp_err=
23542 fi
23543else
23544 ac_cpp_err=yes
23545fi
23546if test -z "$ac_cpp_err"; then
23547 ac_header_preproc=yes
23548else
23549 echo "$as_me: failed program was:" >&5
23550sed 's/^/| /' conftest.$ac_ext >&5
23551
23552 ac_header_preproc=no
23553fi
23554rm -f conftest.err conftest.$ac_ext
23555echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23556echo "${ECHO_T}$ac_header_preproc" >&6
23557
23558# So? What about this header?
ac1cb8d3
VS
23559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23560 yes:no: )
a848cd7e
SC
23561 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23562echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23563 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23564echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23565 ac_header_preproc=yes
a848cd7e 23566 ;;
ac1cb8d3 23567 no:yes:* )
a848cd7e
SC
23568 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23569echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23570 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23571echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23572 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23573echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23574 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23575echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23576 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23577echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23578 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23579echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23580 (
23581 cat <<\_ASBOX
ac1cb8d3
VS
23582## ----------------------------------------- ##
23583## Report this to wx-dev@lists.wxwidgets.org ##
23584## ----------------------------------------- ##
a848cd7e
SC
23585_ASBOX
23586 ) |
23587 sed "s/^/$as_me: WARNING: /" >&2
23588 ;;
23589esac
23590echo "$as_me:$LINENO: checking for tiffio.h" >&5
23591echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23592if test "${ac_cv_header_tiffio_h+set}" = set; then
23593 echo $ECHO_N "(cached) $ECHO_C" >&6
23594else
23595 ac_cv_header_tiffio_h=$ac_header_preproc
23596fi
23597echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23598echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23599
23600fi
23601if test $ac_cv_header_tiffio_h = yes; then
23602
23603 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23604echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23605if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23606 echo $ECHO_N "(cached) $ECHO_C" >&6
23607else
23608 ac_check_lib_save_LIBS=$LIBS
23609LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23610cat >conftest.$ac_ext <<_ACEOF
23611/* confdefs.h. */
23612_ACEOF
23613cat confdefs.h >>conftest.$ac_ext
23614cat >>conftest.$ac_ext <<_ACEOF
23615/* end confdefs.h. */
23616
23617/* Override any gcc2 internal prototype to avoid an error. */
23618#ifdef __cplusplus
23619extern "C"
23620#endif
23621/* We use char because int might match the return type of a gcc2
23622 builtin and then its argument prototype would still apply. */
23623char TIFFError ();
23624int
23625main ()
23626{
23627TIFFError ();
23628 ;
23629 return 0;
23630}
23631_ACEOF
23632rm -f conftest.$ac_objext conftest$ac_exeext
23633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23634 (eval $ac_link) 2>conftest.er1
a848cd7e 23635 ac_status=$?
ac1cb8d3
VS
23636 grep -v '^ *+' conftest.er1 >conftest.err
23637 rm -f conftest.er1
23638 cat conftest.err >&5
a848cd7e
SC
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); } &&
8c539582 23641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643 (eval $ac_try) 2>&5
23644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; } &&
23647 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23653 ac_cv_lib_tiff_TIFFError=yes
23654else
23655 echo "$as_me: failed program was:" >&5
23656sed 's/^/| /' conftest.$ac_ext >&5
23657
23658ac_cv_lib_tiff_TIFFError=no
23659fi
ac1cb8d3
VS
23660rm -f conftest.err conftest.$ac_objext \
23661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23662LIBS=$ac_check_lib_save_LIBS
23663fi
23664echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23665echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23666if test $ac_cv_lib_tiff_TIFFError = yes; then
23667 TIFF_LINK=" -ltiff"
23668fi
23669
23670
23671
23672fi
23673
23674
23675
23676 if test "x$TIFF_LINK" = "x" ; then
23677 if test "$wxUSE_LIBTIFF" = "sys" ; then
23678 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23679echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23680 { (exit 1); exit 1; }; }
23681 else
23682 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23683echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23684 wxUSE_LIBTIFF=builtin
23685 fi
23686 else
23687 wxUSE_LIBTIFF=sys
23688 fi
23689 fi
23690fi
23691
23692
47a7e797
MW
23693if test "$wxUSE_WCHAR_T" != "yes"; then
23694 if test "$wxUSE_EXPAT" != "no"; then
23695 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23696echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23697 wxUSE_EXPAT=no
23698 fi
23699 if test "$wxUSE_XML" != "no"; then
23700 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23701echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23702 wxUSE_XML=no
23703 fi
23704fi
23705
a848cd7e
SC
23706if test "$wxUSE_EXPAT" != "no"; then
23707 wxUSE_XML=yes
23708 cat >>confdefs.h <<\_ACEOF
23709#define wxUSE_EXPAT 1
23710_ACEOF
23711
23712 cat >>confdefs.h <<\_ACEOF
23713#define wxUSE_XML 1
23714_ACEOF
23715
23716
23717 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23718 if test "${ac_cv_header_expat_h+set}" = set; then
23719 echo "$as_me:$LINENO: checking for expat.h" >&5
23720echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23721if test "${ac_cv_header_expat_h+set}" = set; then
23722 echo $ECHO_N "(cached) $ECHO_C" >&6
23723fi
23724echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23725echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23726else
23727 # Is the header compilable?
23728echo "$as_me:$LINENO: checking expat.h usability" >&5
23729echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23730cat >conftest.$ac_ext <<_ACEOF
23731/* confdefs.h. */
23732_ACEOF
23733cat confdefs.h >>conftest.$ac_ext
23734cat >>conftest.$ac_ext <<_ACEOF
23735/* end confdefs.h. */
23736$ac_includes_default
23737#include <expat.h>
23738_ACEOF
23739rm -f conftest.$ac_objext
23740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23741 (eval $ac_compile) 2>conftest.er1
a848cd7e 23742 ac_status=$?
ac1cb8d3
VS
23743 grep -v '^ *+' conftest.er1 >conftest.err
23744 rm -f conftest.er1
23745 cat conftest.err >&5
a848cd7e
SC
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } &&
8c539582 23748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23750 (eval $ac_try) 2>&5
23751 ac_status=$?
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); }; } &&
23754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23757 ac_status=$?
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; }; then
23760 ac_header_compiler=yes
23761else
23762 echo "$as_me: failed program was:" >&5
23763sed 's/^/| /' conftest.$ac_ext >&5
23764
23765ac_header_compiler=no
23766fi
ac1cb8d3 23767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23769echo "${ECHO_T}$ac_header_compiler" >&6
23770
23771# Is the header present?
23772echo "$as_me:$LINENO: checking expat.h presence" >&5
23773echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23774cat >conftest.$ac_ext <<_ACEOF
23775/* confdefs.h. */
23776_ACEOF
23777cat confdefs.h >>conftest.$ac_ext
23778cat >>conftest.$ac_ext <<_ACEOF
23779/* end confdefs.h. */
23780#include <expat.h>
23781_ACEOF
23782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23784 ac_status=$?
23785 grep -v '^ *+' conftest.er1 >conftest.err
23786 rm -f conftest.er1
23787 cat conftest.err >&5
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } >/dev/null; then
23790 if test -s conftest.err; then
23791 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23793 else
23794 ac_cpp_err=
23795 fi
23796else
23797 ac_cpp_err=yes
23798fi
23799if test -z "$ac_cpp_err"; then
23800 ac_header_preproc=yes
23801else
23802 echo "$as_me: failed program was:" >&5
23803sed 's/^/| /' conftest.$ac_ext >&5
23804
23805 ac_header_preproc=no
23806fi
23807rm -f conftest.err conftest.$ac_ext
23808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23809echo "${ECHO_T}$ac_header_preproc" >&6
23810
23811# So? What about this header?
ac1cb8d3
VS
23812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23813 yes:no: )
a848cd7e
SC
23814 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23815echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23816 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23817echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23818 ac_header_preproc=yes
a848cd7e 23819 ;;
ac1cb8d3 23820 no:yes:* )
a848cd7e
SC
23821 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23822echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23823 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23824echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23825 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23826echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23827 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23828echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23829 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23830echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23831 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23832echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23833 (
23834 cat <<\_ASBOX
ac1cb8d3
VS
23835## ----------------------------------------- ##
23836## Report this to wx-dev@lists.wxwidgets.org ##
23837## ----------------------------------------- ##
a848cd7e
SC
23838_ASBOX
23839 ) |
23840 sed "s/^/$as_me: WARNING: /" >&2
23841 ;;
23842esac
23843echo "$as_me:$LINENO: checking for expat.h" >&5
23844echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23845if test "${ac_cv_header_expat_h+set}" = set; then
23846 echo $ECHO_N "(cached) $ECHO_C" >&6
23847else
23848 ac_cv_header_expat_h=$ac_header_preproc
23849fi
23850echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23851echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23852
23853fi
23854if test $ac_cv_header_expat_h = yes; then
23855 found_expat_h=1
23856fi
23857
23858
23859 if test "x$found_expat_h" = "x1"; then
23860 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23861echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23862if test "${wx_cv_expat_is_not_broken+set}" = set; then
23863 echo $ECHO_N "(cached) $ECHO_C" >&6
23864else
23865
23866
23867
23868 ac_ext=cc
23869ac_cpp='$CXXCPP $CPPFLAGS'
23870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23873
23874 cat >conftest.$ac_ext <<_ACEOF
23875/* confdefs.h. */
23876_ACEOF
23877cat confdefs.h >>conftest.$ac_ext
23878cat >>conftest.$ac_ext <<_ACEOF
23879/* end confdefs.h. */
23880#include <expat.h>
23881int
23882main ()
23883{
23884
23885 ;
23886 return 0;
23887}
23888_ACEOF
23889rm -f conftest.$ac_objext
23890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23891 (eval $ac_compile) 2>conftest.er1
a848cd7e 23892 ac_status=$?
ac1cb8d3
VS
23893 grep -v '^ *+' conftest.er1 >conftest.err
23894 rm -f conftest.er1
23895 cat conftest.err >&5
a848cd7e
SC
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } &&
8c539582 23898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; } &&
23904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; }; then
23910 wx_cv_expat_is_not_broken=yes
23911else
23912 echo "$as_me: failed program was:" >&5
23913sed 's/^/| /' conftest.$ac_ext >&5
23914
23915wx_cv_expat_is_not_broken=no
23916
23917fi
ac1cb8d3 23918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23919 ac_ext=c
23920ac_cpp='$CPP $CPPFLAGS'
23921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23923ac_compiler_gnu=$ac_cv_c_compiler_gnu
23924
23925
23926
23927fi
23928echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23929echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23930 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23931 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23932echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23933if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23934 echo $ECHO_N "(cached) $ECHO_C" >&6
23935else
23936 ac_check_lib_save_LIBS=$LIBS
23937LIBS="-lexpat $LIBS"
23938cat >conftest.$ac_ext <<_ACEOF
23939/* confdefs.h. */
23940_ACEOF
23941cat confdefs.h >>conftest.$ac_ext
23942cat >>conftest.$ac_ext <<_ACEOF
23943/* end confdefs.h. */
23944
23945/* Override any gcc2 internal prototype to avoid an error. */
23946#ifdef __cplusplus
23947extern "C"
23948#endif
23949/* We use char because int might match the return type of a gcc2
23950 builtin and then its argument prototype would still apply. */
23951char XML_ParserCreate ();
23952int
23953main ()
23954{
23955XML_ParserCreate ();
23956 ;
23957 return 0;
23958}
23959_ACEOF
23960rm -f conftest.$ac_objext conftest$ac_exeext
23961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23962 (eval $ac_link) 2>conftest.er1
a848cd7e 23963 ac_status=$?
ac1cb8d3
VS
23964 grep -v '^ *+' conftest.er1 >conftest.err
23965 rm -f conftest.er1
23966 cat conftest.err >&5
a848cd7e
SC
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } &&
8c539582 23969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23972 ac_status=$?
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; } &&
23975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23978 ac_status=$?
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; }; then
23981 ac_cv_lib_expat_XML_ParserCreate=yes
23982else
23983 echo "$as_me: failed program was:" >&5
23984sed 's/^/| /' conftest.$ac_ext >&5
23985
23986ac_cv_lib_expat_XML_ParserCreate=no
23987fi
ac1cb8d3
VS
23988rm -f conftest.err conftest.$ac_objext \
23989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23990LIBS=$ac_check_lib_save_LIBS
23991fi
23992echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23993echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23994if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23995 EXPAT_LINK=" -lexpat"
23996fi
23997
23998 fi
23999 fi
24000 if test "x$EXPAT_LINK" = "x" ; then
24001 if test "$wxUSE_EXPAT" = "sys" ; then
24002 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24003echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24004 { (exit 1); exit 1; }; }
24005 else
24006 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24007echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24008 wxUSE_EXPAT=builtin
24009 fi
24010 else
24011 wxUSE_EXPAT=sys
24012 fi
24013 fi
24014 if test "$wxUSE_EXPAT" = "builtin" ; then
24015
24016
24017subdirs="$subdirs src/expat"
24018
24019 fi
24020fi
24021
24022
24023
24024if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24025 if test "${ac_cv_header_mspack_h+set}" = set; then
24026 echo "$as_me:$LINENO: checking for mspack.h" >&5
24027echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24028if test "${ac_cv_header_mspack_h+set}" = set; then
24029 echo $ECHO_N "(cached) $ECHO_C" >&6
24030fi
24031echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24032echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24033else
24034 # Is the header compilable?
24035echo "$as_me:$LINENO: checking mspack.h usability" >&5
24036echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24037cat >conftest.$ac_ext <<_ACEOF
24038/* confdefs.h. */
24039_ACEOF
24040cat confdefs.h >>conftest.$ac_ext
24041cat >>conftest.$ac_ext <<_ACEOF
24042/* end confdefs.h. */
24043$ac_includes_default
24044#include <mspack.h>
24045_ACEOF
24046rm -f conftest.$ac_objext
24047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24048 (eval $ac_compile) 2>conftest.er1
a848cd7e 24049 ac_status=$?
ac1cb8d3
VS
24050 grep -v '^ *+' conftest.er1 >conftest.err
24051 rm -f conftest.er1
24052 cat conftest.err >&5
a848cd7e
SC
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); } &&
8c539582 24055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057 (eval $ac_try) 2>&5
24058 ac_status=$?
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); }; } &&
24061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24063 (eval $ac_try) 2>&5
24064 ac_status=$?
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); }; }; then
24067 ac_header_compiler=yes
24068else
24069 echo "$as_me: failed program was:" >&5
24070sed 's/^/| /' conftest.$ac_ext >&5
24071
24072ac_header_compiler=no
24073fi
ac1cb8d3 24074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24076echo "${ECHO_T}$ac_header_compiler" >&6
24077
24078# Is the header present?
24079echo "$as_me:$LINENO: checking mspack.h presence" >&5
24080echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24081cat >conftest.$ac_ext <<_ACEOF
24082/* confdefs.h. */
24083_ACEOF
24084cat confdefs.h >>conftest.$ac_ext
24085cat >>conftest.$ac_ext <<_ACEOF
24086/* end confdefs.h. */
24087#include <mspack.h>
24088_ACEOF
24089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24091 ac_status=$?
24092 grep -v '^ *+' conftest.er1 >conftest.err
24093 rm -f conftest.er1
24094 cat conftest.err >&5
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); } >/dev/null; then
24097 if test -s conftest.err; then
24098 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24100 else
24101 ac_cpp_err=
24102 fi
24103else
24104 ac_cpp_err=yes
24105fi
24106if test -z "$ac_cpp_err"; then
24107 ac_header_preproc=yes
24108else
24109 echo "$as_me: failed program was:" >&5
24110sed 's/^/| /' conftest.$ac_ext >&5
24111
24112 ac_header_preproc=no
24113fi
24114rm -f conftest.err conftest.$ac_ext
24115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24116echo "${ECHO_T}$ac_header_preproc" >&6
24117
24118# So? What about this header?
ac1cb8d3
VS
24119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24120 yes:no: )
a848cd7e
SC
24121 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24122echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24123 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24124echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24125 ac_header_preproc=yes
a848cd7e 24126 ;;
ac1cb8d3 24127 no:yes:* )
a848cd7e
SC
24128 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24129echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24130 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24131echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24132 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24133echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24134 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24135echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24136 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24137echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24138 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24139echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24140 (
24141 cat <<\_ASBOX
ac1cb8d3
VS
24142## ----------------------------------------- ##
24143## Report this to wx-dev@lists.wxwidgets.org ##
24144## ----------------------------------------- ##
a848cd7e
SC
24145_ASBOX
24146 ) |
24147 sed "s/^/$as_me: WARNING: /" >&2
24148 ;;
24149esac
24150echo "$as_me:$LINENO: checking for mspack.h" >&5
24151echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24152if test "${ac_cv_header_mspack_h+set}" = set; then
24153 echo $ECHO_N "(cached) $ECHO_C" >&6
24154else
24155 ac_cv_header_mspack_h=$ac_header_preproc
24156fi
24157echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24158echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24159
24160fi
24161if test $ac_cv_header_mspack_h = yes; then
24162 found_mspack_h=1
24163fi
24164
24165
24166 if test "x$found_mspack_h" = "x1"; then
24167 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24168echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24169if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24170 echo $ECHO_N "(cached) $ECHO_C" >&6
24171else
24172 ac_check_lib_save_LIBS=$LIBS
24173LIBS="-lmspack $LIBS"
24174cat >conftest.$ac_ext <<_ACEOF
24175/* confdefs.h. */
24176_ACEOF
24177cat confdefs.h >>conftest.$ac_ext
24178cat >>conftest.$ac_ext <<_ACEOF
24179/* end confdefs.h. */
24180
24181/* Override any gcc2 internal prototype to avoid an error. */
24182#ifdef __cplusplus
24183extern "C"
24184#endif
24185/* We use char because int might match the return type of a gcc2
24186 builtin and then its argument prototype would still apply. */
24187char mspack_create_chm_decompressor ();
24188int
24189main ()
24190{
24191mspack_create_chm_decompressor ();
24192 ;
24193 return 0;
24194}
24195_ACEOF
24196rm -f conftest.$ac_objext conftest$ac_exeext
24197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24198 (eval $ac_link) 2>conftest.er1
a848cd7e 24199 ac_status=$?
ac1cb8d3
VS
24200 grep -v '^ *+' conftest.er1 >conftest.err
24201 rm -f conftest.er1
24202 cat conftest.err >&5
a848cd7e
SC
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } &&
8c539582 24205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24207 (eval $ac_try) 2>&5
24208 ac_status=$?
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); }; } &&
24211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24213 (eval $ac_try) 2>&5
24214 ac_status=$?
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); }; }; then
24217 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24218else
24219 echo "$as_me: failed program was:" >&5
24220sed 's/^/| /' conftest.$ac_ext >&5
24221
24222ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24223fi
ac1cb8d3
VS
24224rm -f conftest.err conftest.$ac_objext \
24225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24226LIBS=$ac_check_lib_save_LIBS
24227fi
24228echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24229echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24230if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24231 MSPACK_LINK=" -lmspack"
24232fi
24233
24234 fi
24235 if test "x$MSPACK_LINK" = "x" ; then
24236 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24237 fi
24238fi
24239
24240if test "$wxUSE_LIBMSPACK" != "no"; then
24241 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24242#define wxUSE_LIBMSPACK 1
24243_ACEOF
24244
a848cd7e
SC
24245fi
24246
24247
24248
24249AFMINSTALL=
24250WIN32INSTALL=
24251
24252TOOLKIT=
24253TOOLKIT_INCLUDE=
24254WIDGET_SET=
24255
24256if test "$USE_WIN32" = 1 ; then
24257
24258for ac_header in w32api.h
24259do
24260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24261if eval "test \"\${$as_ac_Header+set}\" = set"; then
24262 echo "$as_me:$LINENO: checking for $ac_header" >&5
24263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24264if eval "test \"\${$as_ac_Header+set}\" = set"; then
24265 echo $ECHO_N "(cached) $ECHO_C" >&6
24266fi
24267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24269else
24270 # Is the header compilable?
24271echo "$as_me:$LINENO: checking $ac_header usability" >&5
24272echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24273cat >conftest.$ac_ext <<_ACEOF
24274/* confdefs.h. */
24275_ACEOF
24276cat confdefs.h >>conftest.$ac_ext
24277cat >>conftest.$ac_ext <<_ACEOF
24278/* end confdefs.h. */
24279$ac_includes_default
24280#include <$ac_header>
24281_ACEOF
24282rm -f conftest.$ac_objext
24283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24284 (eval $ac_compile) 2>conftest.er1
a848cd7e 24285 ac_status=$?
ac1cb8d3
VS
24286 grep -v '^ *+' conftest.er1 >conftest.err
24287 rm -f conftest.er1
24288 cat conftest.err >&5
a848cd7e
SC
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } &&
8c539582 24291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24293 (eval $ac_try) 2>&5
24294 ac_status=$?
24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); }; } &&
24297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24299 (eval $ac_try) 2>&5
24300 ac_status=$?
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); }; }; then
24303 ac_header_compiler=yes
24304else
24305 echo "$as_me: failed program was:" >&5
24306sed 's/^/| /' conftest.$ac_ext >&5
24307
24308ac_header_compiler=no
24309fi
ac1cb8d3 24310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24311echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24312echo "${ECHO_T}$ac_header_compiler" >&6
24313
24314# Is the header present?
24315echo "$as_me:$LINENO: checking $ac_header presence" >&5
24316echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24317cat >conftest.$ac_ext <<_ACEOF
24318/* confdefs.h. */
24319_ACEOF
24320cat confdefs.h >>conftest.$ac_ext
24321cat >>conftest.$ac_ext <<_ACEOF
24322/* end confdefs.h. */
24323#include <$ac_header>
24324_ACEOF
24325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24327 ac_status=$?
24328 grep -v '^ *+' conftest.er1 >conftest.err
24329 rm -f conftest.er1
24330 cat conftest.err >&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } >/dev/null; then
24333 if test -s conftest.err; then
24334 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24336 else
24337 ac_cpp_err=
24338 fi
24339else
24340 ac_cpp_err=yes
24341fi
24342if test -z "$ac_cpp_err"; then
24343 ac_header_preproc=yes
24344else
24345 echo "$as_me: failed program was:" >&5
24346sed 's/^/| /' conftest.$ac_ext >&5
24347
24348 ac_header_preproc=no
24349fi
24350rm -f conftest.err conftest.$ac_ext
24351echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24352echo "${ECHO_T}$ac_header_preproc" >&6
24353
24354# So? What about this header?
ac1cb8d3
VS
24355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24356 yes:no: )
a848cd7e
SC
24357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24358echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24360echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24361 ac_header_preproc=yes
a848cd7e 24362 ;;
ac1cb8d3 24363 no:yes:* )
a848cd7e
SC
24364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24365echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24367echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24369echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24371echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24375echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24376 (
24377 cat <<\_ASBOX
ac1cb8d3
VS
24378## ----------------------------------------- ##
24379## Report this to wx-dev@lists.wxwidgets.org ##
24380## ----------------------------------------- ##
a848cd7e
SC
24381_ASBOX
24382 ) |
24383 sed "s/^/$as_me: WARNING: /" >&2
24384 ;;
24385esac
24386echo "$as_me:$LINENO: checking for $ac_header" >&5
24387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24388if eval "test \"\${$as_ac_Header+set}\" = set"; then
24389 echo $ECHO_N "(cached) $ECHO_C" >&6
24390else
ac1cb8d3 24391 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24392fi
24393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24395
24396fi
24397if test `eval echo '${'$as_ac_Header'}'` = yes; then
24398 cat >>confdefs.h <<_ACEOF
24399#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24400_ACEOF
24401
24402fi
24403
24404done
24405
24406 if test "${ac_cv_header_windows_h+set}" = set; then
24407 echo "$as_me:$LINENO: checking for windows.h" >&5
24408echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24409if test "${ac_cv_header_windows_h+set}" = set; then
24410 echo $ECHO_N "(cached) $ECHO_C" >&6
24411fi
24412echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24413echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24414else
24415 # Is the header compilable?
24416echo "$as_me:$LINENO: checking windows.h usability" >&5
24417echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24418cat >conftest.$ac_ext <<_ACEOF
24419/* confdefs.h. */
24420_ACEOF
24421cat confdefs.h >>conftest.$ac_ext
24422cat >>conftest.$ac_ext <<_ACEOF
24423/* end confdefs.h. */
24424$ac_includes_default
24425#include <windows.h>
24426_ACEOF
24427rm -f conftest.$ac_objext
24428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24429 (eval $ac_compile) 2>conftest.er1
a848cd7e 24430 ac_status=$?
ac1cb8d3
VS
24431 grep -v '^ *+' conftest.er1 >conftest.err
24432 rm -f conftest.er1
24433 cat conftest.err >&5
a848cd7e
SC
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); } &&
8c539582 24436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24438 (eval $ac_try) 2>&5
24439 ac_status=$?
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); }; } &&
24442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444 (eval $ac_try) 2>&5
24445 ac_status=$?
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; }; then
24448 ac_header_compiler=yes
24449else
24450 echo "$as_me: failed program was:" >&5
24451sed 's/^/| /' conftest.$ac_ext >&5
24452
24453ac_header_compiler=no
24454fi
ac1cb8d3 24455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24456echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24457echo "${ECHO_T}$ac_header_compiler" >&6
24458
24459# Is the header present?
24460echo "$as_me:$LINENO: checking windows.h presence" >&5
24461echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24462cat >conftest.$ac_ext <<_ACEOF
24463/* confdefs.h. */
24464_ACEOF
24465cat confdefs.h >>conftest.$ac_ext
24466cat >>conftest.$ac_ext <<_ACEOF
24467/* end confdefs.h. */
24468#include <windows.h>
24469_ACEOF
24470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24472 ac_status=$?
24473 grep -v '^ *+' conftest.er1 >conftest.err
24474 rm -f conftest.er1
24475 cat conftest.err >&5
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); } >/dev/null; then
24478 if test -s conftest.err; then
24479 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24481 else
24482 ac_cpp_err=
24483 fi
24484else
24485 ac_cpp_err=yes
24486fi
24487if test -z "$ac_cpp_err"; then
24488 ac_header_preproc=yes
24489else
24490 echo "$as_me: failed program was:" >&5
24491sed 's/^/| /' conftest.$ac_ext >&5
24492
24493 ac_header_preproc=no
24494fi
24495rm -f conftest.err conftest.$ac_ext
24496echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24497echo "${ECHO_T}$ac_header_preproc" >&6
24498
24499# So? What about this header?
ac1cb8d3
VS
24500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24501 yes:no: )
a848cd7e
SC
24502 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24503echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24504 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24505echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24506 ac_header_preproc=yes
a848cd7e 24507 ;;
ac1cb8d3 24508 no:yes:* )
a848cd7e
SC
24509 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24510echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24511 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24512echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24513 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24514echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24515 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24516echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24517 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24518echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24519 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24520echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24521 (
24522 cat <<\_ASBOX
ac1cb8d3
VS
24523## ----------------------------------------- ##
24524## Report this to wx-dev@lists.wxwidgets.org ##
24525## ----------------------------------------- ##
a848cd7e
SC
24526_ASBOX
24527 ) |
24528 sed "s/^/$as_me: WARNING: /" >&2
24529 ;;
24530esac
24531echo "$as_me:$LINENO: checking for windows.h" >&5
24532echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24533if test "${ac_cv_header_windows_h+set}" = set; then
24534 echo $ECHO_N "(cached) $ECHO_C" >&6
24535else
24536 ac_cv_header_windows_h=$ac_header_preproc
24537fi
24538echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24539echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24540
24541fi
24542if test $ac_cv_header_windows_h = yes; then
24543 :
24544else
24545
24546 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24547echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24548 { (exit 1); exit 1; }; }
24549
24550fi
24551
24552
24553
24554 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24555
24556 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24557 LIBS="$LIBS -loleacc"
24558 fi
24559
24560 case "${host}" in
24561 *-*-cygwin* )
24562 LIBS="$LIBS -lkernel32 -luser32"
24563 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24564 esac
24565
24566 if test "$wxUSE_ODBC" = "sys" ; then
24567 wxUSE_ODBC = "yes"
24568 fi
24569 if test "$wxUSE_ODBC" = "yes" ; then
24570 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24571 cat >>confdefs.h <<\_ACEOF
24572#define wxUSE_ODBC 1
24573_ACEOF
24574
24575 fi
24576
24577 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24578 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24579
24580 WIN32INSTALL=win32install
24581fi
24582
24583if test "$wxUSE_GUI" = "yes"; then
24584 USE_GUI=1
24585
24586 GUI_TK_LIBRARY=
24587
24588 WXGTK12=
24589 WXGTK127=
24590 WXGTK20=
24591 WXGPE=
24592
207bc66c
RN
24593 if test "$wxUSE_COCOA" = 1 ; then
24594 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24595 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24596echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24597 wxUSE_PRINTING_ARCHITECTURE=no
24598 fi
24599 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24600 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24601echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24602 wxUSE_DRAG_AND_DROP=no
24603 fi
24604 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24605 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24606echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24607 wxUSE_DRAGIMAGE=no
24608 fi
24609 fi
24610
a848cd7e
SC
24611 if test "$wxUSE_MSW" = 1 ; then
24612 TOOLKIT=MSW
24613 GUIDIST=MSW_DIST
24614
ceec2216 24615 case "${host}" in
a848cd7e
SC
24616 *-*-mingw32* )
24617 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24618 esac
24619 fi
24620
24621 if test "$wxUSE_GTK" = 1; then
24622 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24623echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24624
24625 gtk_version_cached=1
24626 if test "${wx_cv_lib_gtk+set}" = set; then
24627 echo $ECHO_N "(cached) $ECHO_C" >&6
24628else
24629
24630 gtk_version_cached=0
24631 echo "$as_me:$LINENO: result: " >&5
24632echo "${ECHO_T}" >&6
24633
24634 GTK_MODULES=
24635 if test "$wxUSE_THREADS" = "yes"; then
24636 GTK_MODULES=gthread
24637 fi
24638
f597b41c 24639 wx_cv_lib_gtk=
f34ca037 24640 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24641 # Check whether --enable-gtktest or --disable-gtktest was given.
24642if test "${enable_gtktest+set}" = set; then
24643 enableval="$enable_gtktest"
24644
24645else
24646 enable_gtktest=yes
24647fi;
24648
24649 pkg_config_args=gtk+-2.0
24650 for module in . $GTK_MODULES
24651 do
24652 case "$module" in
24653 gthread)
24654 pkg_config_args="$pkg_config_args gthread-2.0"
24655 ;;
24656 esac
24657 done
24658
24659 no_gtk=""
24660
24661 # Extract the first word of "pkg-config", so it can be a program name with args.
24662set dummy pkg-config; ac_word=$2
24663echo "$as_me:$LINENO: checking for $ac_word" >&5
24664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24665if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24666 echo $ECHO_N "(cached) $ECHO_C" >&6
24667else
24668 case $PKG_CONFIG in
24669 [\\/]* | ?:[\\/]*)
24670 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24671 ;;
24672 *)
24673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24674for as_dir in $PATH
24675do
24676 IFS=$as_save_IFS
24677 test -z "$as_dir" && as_dir=.
24678 for ac_exec_ext in '' $ac_executable_extensions; do
24679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24680 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24682 break 2
24683 fi
24684done
24685done
24686
24687 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24688 ;;
24689esac
24690fi
24691PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24692
24693if test -n "$PKG_CONFIG"; then
24694 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24695echo "${ECHO_T}$PKG_CONFIG" >&6
24696else
24697 echo "$as_me:$LINENO: result: no" >&5
24698echo "${ECHO_T}no" >&6
24699fi
24700
24701
24702 if test x$PKG_CONFIG != xno ; then
24703 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24704 :
24705 else
c2218763 24706 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24707 no_gtk=yes
24708 PKG_CONFIG=no
24709 fi
24710 else
24711 no_gtk=yes
24712 fi
24713
24714 min_gtk_version=2.0.0
24715 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24716echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24717
24718 if test x$PKG_CONFIG != xno ; then
24719 ## don't try to run the test against uninstalled libtool libs
24720 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24721 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24722 enable_gtktest=no
24723 fi
24724
24725 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24726 :
24727 else
24728 no_gtk=yes
24729 fi
24730 fi
24731
24732 if test x"$no_gtk" = x ; then
24733 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24734 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24735 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24736 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24737 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24738 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24739 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24740 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24741 if test "x$enable_gtktest" = "xyes" ; then
24742 ac_save_CFLAGS="$CFLAGS"
24743 ac_save_LIBS="$LIBS"
24744 CFLAGS="$CFLAGS $GTK_CFLAGS"
24745 LIBS="$GTK_LIBS $LIBS"
24746 rm -f conf.gtktest
24747 if test "$cross_compiling" = yes; then
24748 echo $ac_n "cross compiling; assumed OK... $ac_c"
24749else
24750 cat >conftest.$ac_ext <<_ACEOF
24751/* confdefs.h. */
24752_ACEOF
24753cat confdefs.h >>conftest.$ac_ext
24754cat >>conftest.$ac_ext <<_ACEOF
24755/* end confdefs.h. */
24756
24757#include <gtk/gtk.h>
24758#include <stdio.h>
24759#include <stdlib.h>
24760
24761int
24762main ()
24763{
24764 int major, minor, micro;
24765 char *tmp_version;
24766
24767 system ("touch conf.gtktest");
24768
24769 /* HP/UX 9 (%@#!) writes to sscanf strings */
24770 tmp_version = g_strdup("$min_gtk_version");
24771 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24772 printf("%s, bad version string\n", "$min_gtk_version");
24773 exit(1);
24774 }
24775
24776 if ((gtk_major_version != $gtk_config_major_version) ||
24777 (gtk_minor_version != $gtk_config_minor_version) ||
24778 (gtk_micro_version != $gtk_config_micro_version))
24779 {
24780 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24781 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24782 gtk_major_version, gtk_minor_version, gtk_micro_version);
24783 printf ("*** was found! If pkg-config was correct, then it is best\n");
24784 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24785 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24786 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24787 printf("*** required on your system.\n");
24788 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24789 printf("*** to point to the correct configuration files\n");
24790 }
24791 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24792 (gtk_minor_version != GTK_MINOR_VERSION) ||
24793 (gtk_micro_version != GTK_MICRO_VERSION))
24794 {
24795 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24796 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24797 printf("*** library (version %d.%d.%d)\n",
24798 gtk_major_version, gtk_minor_version, gtk_micro_version);
24799 }
24800 else
24801 {
24802 if ((gtk_major_version > major) ||
24803 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24804 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24805 {
24806 return 0;
24807 }
24808 else
24809 {
24810 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24811 gtk_major_version, gtk_minor_version, gtk_micro_version);
24812 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24813 major, minor, micro);
24814 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24815 printf("***\n");
24816 printf("*** If you have already installed a sufficiently new version, this error\n");
24817 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24818 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24819 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24820 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24821 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24822 printf("*** so that the correct libraries are found at run-time))\n");
24823 }
24824 }
24825 return 1;
24826}
24827
24828_ACEOF
24829rm -f conftest$ac_exeext
24830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24831 (eval $ac_link) 2>&5
24832 ac_status=$?
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
24837 ac_status=$?
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; }; then
24840 :
24841else
24842 echo "$as_me: program exited with status $ac_status" >&5
24843echo "$as_me: failed program was:" >&5
24844sed 's/^/| /' conftest.$ac_ext >&5
24845
24846( exit $ac_status )
24847no_gtk=yes
24848fi
ac1cb8d3 24849rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24850fi
24851 CFLAGS="$ac_save_CFLAGS"
24852 LIBS="$ac_save_LIBS"
24853 fi
24854 fi
24855 if test "x$no_gtk" = x ; then
24856 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24857echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24858 wx_cv_lib_gtk=2.0
24859 else
24860 echo "$as_me:$LINENO: result: no" >&5
24861echo "${ECHO_T}no" >&6
24862 if test "$PKG_CONFIG" = "no" ; then
24863 echo "*** A new enough version of pkg-config was not found."
24864 echo "*** See http://pkgconfig.sourceforge.net"
24865 else
24866 if test -f conf.gtktest ; then
24867 :
24868 else
24869 echo "*** Could not run GTK+ test program, checking why..."
24870 ac_save_CFLAGS="$CFLAGS"
24871 ac_save_LIBS="$LIBS"
24872 CFLAGS="$CFLAGS $GTK_CFLAGS"
24873 LIBS="$LIBS $GTK_LIBS"
24874 cat >conftest.$ac_ext <<_ACEOF
24875/* confdefs.h. */
24876_ACEOF
24877cat confdefs.h >>conftest.$ac_ext
24878cat >>conftest.$ac_ext <<_ACEOF
24879/* end confdefs.h. */
24880
24881#include <gtk/gtk.h>
24882#include <stdio.h>
24883
24884int
24885main ()
24886{
24887 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24888 ;
24889 return 0;
24890}
24891_ACEOF
24892rm -f conftest.$ac_objext conftest$ac_exeext
24893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24894 (eval $ac_link) 2>conftest.er1
a848cd7e 24895 ac_status=$?
ac1cb8d3
VS
24896 grep -v '^ *+' conftest.er1 >conftest.err
24897 rm -f conftest.er1
24898 cat conftest.err >&5
a848cd7e
SC
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } &&
8c539582 24901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24903 (eval $ac_try) 2>&5
24904 ac_status=$?
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); }; } &&
24907 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24909 (eval $ac_try) 2>&5
24910 ac_status=$?
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); }; }; then
24913 echo "*** The test program compiled, but did not run. This usually means"
24914 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24915 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24916 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24917 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24918 echo "*** is required on your system"
24919 echo "***"
24920 echo "*** If you have an old version installed, it is best to remove it, although"
24921 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24922else
24923 echo "$as_me: failed program was:" >&5
24924sed 's/^/| /' conftest.$ac_ext >&5
24925
24926 echo "*** The test program failed to compile or link. See the file config.log for the"
24927 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24928fi
ac1cb8d3
VS
24929rm -f conftest.err conftest.$ac_objext \
24930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24931 CFLAGS="$ac_save_CFLAGS"
24932 LIBS="$ac_save_LIBS"
24933 fi
24934 fi
24935 GTK_CFLAGS=""
24936 GTK_LIBS=""
24937 :
24938 fi
24939
24940
24941 rm -f conf.gtktest
24942
f597b41c
MW
24943 fi
24944
f34ca037
MW
24945 if test -z "$wx_cv_lib_gtk"; then
24946 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24947
24948# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24949if test "${with_gtk_prefix+set}" = set; then
24950 withval="$with_gtk_prefix"
24951 gtk_config_prefix="$withval"
24952else
24953 gtk_config_prefix=""
24954fi;
24955
24956# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24957if test "${with_gtk_exec_prefix+set}" = set; then
24958 withval="$with_gtk_exec_prefix"
24959 gtk_config_exec_prefix="$withval"
24960else
24961 gtk_config_exec_prefix=""
24962fi;
24963# Check whether --enable-gtktest or --disable-gtktest was given.
24964if test "${enable_gtktest+set}" = set; then
24965 enableval="$enable_gtktest"
24966
24967else
24968 enable_gtktest=yes
24969fi;
24970
24971 for module in . $GTK_MODULES
24972 do
24973 case "$module" in
24974 gthread)
24975 gtk_config_args="$gtk_config_args gthread"
24976 ;;
24977 esac
24978 done
24979
24980 if test x$gtk_config_exec_prefix != x ; then
24981 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24982 if test x${GTK_CONFIG+set} != xset ; then
24983 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24984 fi
24985 fi
24986 if test x$gtk_config_prefix != x ; then
24987 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24988 if test x${GTK_CONFIG+set} != xset ; then
24989 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24990 fi
24991 fi
24992
24993 # Extract the first word of "gtk-config", so it can be a program name with args.
24994set dummy gtk-config; ac_word=$2
24995echo "$as_me:$LINENO: checking for $ac_word" >&5
24996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24997if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24998 echo $ECHO_N "(cached) $ECHO_C" >&6
24999else
25000 case $GTK_CONFIG in
25001 [\\/]* | ?:[\\/]*)
25002 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25003 ;;
25004 *)
25005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25006for as_dir in $PATH
25007do
25008 IFS=$as_save_IFS
25009 test -z "$as_dir" && as_dir=.
25010 for ac_exec_ext in '' $ac_executable_extensions; do
25011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25012 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25014 break 2
25015 fi
25016done
25017done
25018
25019 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25020 ;;
25021esac
25022fi
25023GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25024
25025if test -n "$GTK_CONFIG"; then
25026 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25027echo "${ECHO_T}$GTK_CONFIG" >&6
25028else
25029 echo "$as_me:$LINENO: result: no" >&5
25030echo "${ECHO_T}no" >&6
25031fi
25032
25033 min_gtk_version=1.2.7
25034 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25035echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25036 no_gtk=""
25037 if test "$GTK_CONFIG" = "no" ; then
25038 no_gtk=yes
25039 else
25040 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25041 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25042 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25044 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25045 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25046 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25047 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25048 if test "x$enable_gtktest" = "xyes" ; then
25049 ac_save_CFLAGS="$CFLAGS"
25050 ac_save_LIBS="$LIBS"
25051 CFLAGS="$CFLAGS $GTK_CFLAGS"
25052 LIBS="$GTK_LIBS $LIBS"
25053 rm -f conf.gtktest
25054 if test "$cross_compiling" = yes; then
25055 echo $ac_n "cross compiling; assumed OK... $ac_c"
25056else
25057 cat >conftest.$ac_ext <<_ACEOF
25058/* confdefs.h. */
25059_ACEOF
25060cat confdefs.h >>conftest.$ac_ext
25061cat >>conftest.$ac_ext <<_ACEOF
25062/* end confdefs.h. */
25063
25064#include <gtk/gtk.h>
25065#include <stdio.h>
25066#include <stdlib.h>
25067
25068int
25069main ()
25070{
25071 int major, minor, micro;
25072 char *tmp_version;
25073
25074 system ("touch conf.gtktest");
25075
25076 /* HP/UX 9 (%@#!) writes to sscanf strings */
25077 tmp_version = g_strdup("$min_gtk_version");
25078 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25079 printf("%s, bad version string\n", "$min_gtk_version");
25080 exit(1);
25081 }
25082
25083 if ((gtk_major_version != $gtk_config_major_version) ||
25084 (gtk_minor_version != $gtk_config_minor_version) ||
25085 (gtk_micro_version != $gtk_config_micro_version))
25086 {
25087 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25088 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25089 gtk_major_version, gtk_minor_version, gtk_micro_version);
25090 printf ("*** was found! If gtk-config was correct, then it is best\n");
25091 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25092 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25093 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25094 printf("*** required on your system.\n");
25095 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25096 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25097 printf("*** before re-running configure\n");
25098 }
25099#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25100 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25101 (gtk_minor_version != GTK_MINOR_VERSION) ||
25102 (gtk_micro_version != GTK_MICRO_VERSION))
25103 {
25104 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25105 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25106 printf("*** library (version %d.%d.%d)\n",
25107 gtk_major_version, gtk_minor_version, gtk_micro_version);
25108 }
25109#endif /* defined (GTK_MAJOR_VERSION) ... */
25110 else
25111 {
25112 if ((gtk_major_version > major) ||
25113 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25114 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25115 {
25116 return 0;
25117 }
25118 else
25119 {
25120 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25121 gtk_major_version, gtk_minor_version, gtk_micro_version);
25122 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25123 major, minor, micro);
25124 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25125 printf("***\n");
25126 printf("*** If you have already installed a sufficiently new version, this error\n");
25127 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25128 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25129 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25130 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25131 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25132 printf("*** so that the correct libraries are found at run-time))\n");
25133 }
25134 }
25135 return 1;
25136}
25137
25138_ACEOF
25139rm -f conftest$ac_exeext
25140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25141 (eval $ac_link) 2>&5
25142 ac_status=$?
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146 (eval $ac_try) 2>&5
25147 ac_status=$?
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); }; }; then
25150 :
25151else
25152 echo "$as_me: program exited with status $ac_status" >&5
25153echo "$as_me: failed program was:" >&5
25154sed 's/^/| /' conftest.$ac_ext >&5
25155
25156( exit $ac_status )
25157no_gtk=yes
25158fi
ac1cb8d3 25159rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25160fi
25161 CFLAGS="$ac_save_CFLAGS"
25162 LIBS="$ac_save_LIBS"
25163 fi
25164 fi
25165 if test "x$no_gtk" = x ; then
25166 echo "$as_me:$LINENO: result: yes" >&5
25167echo "${ECHO_T}yes" >&6
25168 wx_cv_lib_gtk=1.2.7
25169 else
25170 echo "$as_me:$LINENO: result: no" >&5
25171echo "${ECHO_T}no" >&6
25172 if test "$GTK_CONFIG" = "no" ; then
25173 echo "*** The gtk-config script installed by GTK could not be found"
25174 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25175 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25176 echo "*** full path to gtk-config."
25177 else
25178 if test -f conf.gtktest ; then
25179 :
25180 else
25181 echo "*** Could not run GTK test program, checking why..."
25182 CFLAGS="$CFLAGS $GTK_CFLAGS"
25183 LIBS="$LIBS $GTK_LIBS"
25184 cat >conftest.$ac_ext <<_ACEOF
25185/* confdefs.h. */
25186_ACEOF
25187cat confdefs.h >>conftest.$ac_ext
25188cat >>conftest.$ac_ext <<_ACEOF
25189/* end confdefs.h. */
25190
25191#include <gtk/gtk.h>
25192#include <stdio.h>
25193
25194int
25195main ()
25196{
25197 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25198 ;
25199 return 0;
25200}
25201_ACEOF
25202rm -f conftest.$ac_objext conftest$ac_exeext
25203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25204 (eval $ac_link) 2>conftest.er1
a848cd7e 25205 ac_status=$?
ac1cb8d3
VS
25206 grep -v '^ *+' conftest.er1 >conftest.err
25207 rm -f conftest.er1
25208 cat conftest.err >&5
a848cd7e
SC
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } &&
8c539582 25211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213 (eval $ac_try) 2>&5
25214 ac_status=$?
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); }; } &&
25217 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; }; then
25223 echo "*** The test program compiled, but did not run. This usually means"
25224 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25225 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25226 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25227 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25228 echo "*** is required on your system"
25229 echo "***"
25230 echo "*** If you have an old version installed, it is best to remove it, although"
25231 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25232 echo "***"
25233 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25234 echo "*** came with the system with the command"
25235 echo "***"
25236 echo "*** rpm --erase --nodeps gtk gtk-devel"
25237else
25238 echo "$as_me: failed program was:" >&5
25239sed 's/^/| /' conftest.$ac_ext >&5
25240
25241 echo "*** The test program failed to compile or link. See the file config.log for the"
25242 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25243 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25244 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25245fi
ac1cb8d3
VS
25246rm -f conftest.err conftest.$ac_objext \
25247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25248 CFLAGS="$ac_save_CFLAGS"
25249 LIBS="$ac_save_LIBS"
25250 fi
25251 fi
25252 GTK_CFLAGS=""
25253 GTK_LIBS=""
25254 :
25255 fi
25256
25257
25258 rm -f conf.gtktest
25259
25260
f34ca037 25261 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25262
25263# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25264if test "${with_gtk_prefix+set}" = set; then
25265 withval="$with_gtk_prefix"
25266 gtk_config_prefix="$withval"
25267else
25268 gtk_config_prefix=""
25269fi;
25270
25271# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25272if test "${with_gtk_exec_prefix+set}" = set; then
25273 withval="$with_gtk_exec_prefix"
25274 gtk_config_exec_prefix="$withval"
25275else
25276 gtk_config_exec_prefix=""
25277fi;
25278# Check whether --enable-gtktest or --disable-gtktest was given.
25279if test "${enable_gtktest+set}" = set; then
25280 enableval="$enable_gtktest"
25281
25282else
25283 enable_gtktest=yes
25284fi;
25285
25286 for module in . $GTK_MODULES
25287 do
25288 case "$module" in
25289 gthread)
25290 gtk_config_args="$gtk_config_args gthread"
25291 ;;
25292 esac
25293 done
25294
25295 if test x$gtk_config_exec_prefix != x ; then
25296 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25297 if test x${GTK_CONFIG+set} != xset ; then
25298 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25299 fi
25300 fi
25301 if test x$gtk_config_prefix != x ; then
25302 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25303 if test x${GTK_CONFIG+set} != xset ; then
25304 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25305 fi
25306 fi
25307
25308 # Extract the first word of "gtk-config", so it can be a program name with args.
25309set dummy gtk-config; ac_word=$2
25310echo "$as_me:$LINENO: checking for $ac_word" >&5
25311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25312if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25313 echo $ECHO_N "(cached) $ECHO_C" >&6
25314else
25315 case $GTK_CONFIG in
25316 [\\/]* | ?:[\\/]*)
25317 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25318 ;;
25319 *)
25320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25321for as_dir in $PATH
25322do
25323 IFS=$as_save_IFS
25324 test -z "$as_dir" && as_dir=.
25325 for ac_exec_ext in '' $ac_executable_extensions; do
25326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25327 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25329 break 2
25330 fi
25331done
25332done
25333
25334 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25335 ;;
25336esac
25337fi
25338GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25339
25340if test -n "$GTK_CONFIG"; then
25341 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25342echo "${ECHO_T}$GTK_CONFIG" >&6
25343else
25344 echo "$as_me:$LINENO: result: no" >&5
25345echo "${ECHO_T}no" >&6
25346fi
25347
25348 min_gtk_version=1.2.3
25349 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25350echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25351 no_gtk=""
25352 if test "$GTK_CONFIG" = "no" ; then
25353 no_gtk=yes
25354 else
25355 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25356 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25357 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25358 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25359 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25360 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25361 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25362 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25363 if test "x$enable_gtktest" = "xyes" ; then
25364 ac_save_CFLAGS="$CFLAGS"
25365 ac_save_LIBS="$LIBS"
25366 CFLAGS="$CFLAGS $GTK_CFLAGS"
25367 LIBS="$GTK_LIBS $LIBS"
25368 rm -f conf.gtktest
25369 if test "$cross_compiling" = yes; then
25370 echo $ac_n "cross compiling; assumed OK... $ac_c"
25371else
25372 cat >conftest.$ac_ext <<_ACEOF
25373/* confdefs.h. */
25374_ACEOF
25375cat confdefs.h >>conftest.$ac_ext
25376cat >>conftest.$ac_ext <<_ACEOF
25377/* end confdefs.h. */
25378
25379#include <gtk/gtk.h>
25380#include <stdio.h>
25381#include <stdlib.h>
25382
25383int
25384main ()
25385{
25386 int major, minor, micro;
25387 char *tmp_version;
25388
25389 system ("touch conf.gtktest");
25390
25391 /* HP/UX 9 (%@#!) writes to sscanf strings */
25392 tmp_version = g_strdup("$min_gtk_version");
25393 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25394 printf("%s, bad version string\n", "$min_gtk_version");
25395 exit(1);
25396 }
25397
25398 if ((gtk_major_version != $gtk_config_major_version) ||
25399 (gtk_minor_version != $gtk_config_minor_version) ||
25400 (gtk_micro_version != $gtk_config_micro_version))
25401 {
25402 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25403 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25404 gtk_major_version, gtk_minor_version, gtk_micro_version);
25405 printf ("*** was found! If gtk-config was correct, then it is best\n");
25406 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25407 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25408 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25409 printf("*** required on your system.\n");
25410 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25411 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25412 printf("*** before re-running configure\n");
25413 }
25414#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25415 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25416 (gtk_minor_version != GTK_MINOR_VERSION) ||
25417 (gtk_micro_version != GTK_MICRO_VERSION))
25418 {
25419 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25420 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25421 printf("*** library (version %d.%d.%d)\n",
25422 gtk_major_version, gtk_minor_version, gtk_micro_version);
25423 }
25424#endif /* defined (GTK_MAJOR_VERSION) ... */
25425 else
25426 {
25427 if ((gtk_major_version > major) ||
25428 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25429 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25430 {
25431 return 0;
25432 }
25433 else
25434 {
25435 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25436 gtk_major_version, gtk_minor_version, gtk_micro_version);
25437 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25438 major, minor, micro);
25439 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25440 printf("***\n");
25441 printf("*** If you have already installed a sufficiently new version, this error\n");
25442 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25443 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25444 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25445 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25446 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25447 printf("*** so that the correct libraries are found at run-time))\n");
25448 }
25449 }
25450 return 1;
25451}
25452
25453_ACEOF
25454rm -f conftest$ac_exeext
25455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25456 (eval $ac_link) 2>&5
25457 ac_status=$?
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461 (eval $ac_try) 2>&5
25462 ac_status=$?
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; }; then
25465 :
25466else
25467 echo "$as_me: program exited with status $ac_status" >&5
25468echo "$as_me: failed program was:" >&5
25469sed 's/^/| /' conftest.$ac_ext >&5
25470
25471( exit $ac_status )
25472no_gtk=yes
25473fi
ac1cb8d3 25474rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25475fi
25476 CFLAGS="$ac_save_CFLAGS"
25477 LIBS="$ac_save_LIBS"
25478 fi
25479 fi
25480 if test "x$no_gtk" = x ; then
25481 echo "$as_me:$LINENO: result: yes" >&5
25482echo "${ECHO_T}yes" >&6
25483 wx_cv_lib_gtk=1.2.3
25484 else
25485 echo "$as_me:$LINENO: result: no" >&5
25486echo "${ECHO_T}no" >&6
25487 if test "$GTK_CONFIG" = "no" ; then
25488 echo "*** The gtk-config script installed by GTK could not be found"
25489 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25490 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25491 echo "*** full path to gtk-config."
25492 else
25493 if test -f conf.gtktest ; then
25494 :
25495 else
25496 echo "*** Could not run GTK test program, checking why..."
25497 CFLAGS="$CFLAGS $GTK_CFLAGS"
25498 LIBS="$LIBS $GTK_LIBS"
25499 cat >conftest.$ac_ext <<_ACEOF
25500/* confdefs.h. */
25501_ACEOF
25502cat confdefs.h >>conftest.$ac_ext
25503cat >>conftest.$ac_ext <<_ACEOF
25504/* end confdefs.h. */
25505
25506#include <gtk/gtk.h>
25507#include <stdio.h>
25508
25509int
25510main ()
25511{
25512 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25513 ;
25514 return 0;
25515}
25516_ACEOF
25517rm -f conftest.$ac_objext conftest$ac_exeext
25518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25519 (eval $ac_link) 2>conftest.er1
a848cd7e 25520 ac_status=$?
ac1cb8d3
VS
25521 grep -v '^ *+' conftest.er1 >conftest.err
25522 rm -f conftest.er1
25523 cat conftest.err >&5
a848cd7e
SC
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); } &&
8c539582 25526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25528 (eval $ac_try) 2>&5
25529 ac_status=$?
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); }; } &&
25532 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25535 ac_status=$?
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; }; then
25538 echo "*** The test program compiled, but did not run. This usually means"
25539 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25540 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25541 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25542 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25543 echo "*** is required on your system"
25544 echo "***"
25545 echo "*** If you have an old version installed, it is best to remove it, although"
25546 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25547 echo "***"
25548 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25549 echo "*** came with the system with the command"
25550 echo "***"
25551 echo "*** rpm --erase --nodeps gtk gtk-devel"
25552else
25553 echo "$as_me: failed program was:" >&5
25554sed 's/^/| /' conftest.$ac_ext >&5
25555
25556 echo "*** The test program failed to compile or link. See the file config.log for the"
25557 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25558 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25559 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25560fi
ac1cb8d3
VS
25561rm -f conftest.err conftest.$ac_objext \
25562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25563 CFLAGS="$ac_save_CFLAGS"
25564 LIBS="$ac_save_LIBS"
25565 fi
25566 fi
25567 GTK_CFLAGS=""
25568 GTK_LIBS=""
25569 :
25570 fi
25571
25572
25573 rm -f conf.gtktest
25574
f34ca037 25575 fi
a848cd7e
SC
25576 fi
25577 fi
25578
25579 if test -z "$wx_cv_lib_gtk"; then
25580 wx_cv_lib_gtk=none
25581 else
25582 wx_cv_cflags_gtk=$GTK_CFLAGS
25583 wx_cv_libs_gtk=$GTK_LIBS
25584 fi
25585
25586
25587fi
25588
25589
25590 if test "$gtk_version_cached" = 1; then
25591 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25592echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25593 fi
25594
25595 case "$wx_cv_lib_gtk" in
25596 2.0) WXGTK20=1
25597 TOOLKIT_VERSION=2
25598 ;;
25599 1.2.7) WXGTK127=1
25600 WXGTK12=1
25601 ;;
25602 1.2.3) WXGTK12=1
25603 ;;
25604 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25605The development files for GTK+ were not found. For GTK+ 2, please
25606ensure that pkg-config is in the path and that gtk+-2.0.pc is
25607installed. For GTK+ 1.2 please check that gtk-config is in the path,
25608and that the version is 1.2.3 or above. Also check that the
25609libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25610--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25611 " >&5
25612echo "$as_me: error:
f597b41c
MW
25613The development files for GTK+ were not found. For GTK+ 2, please
25614ensure that pkg-config is in the path and that gtk+-2.0.pc is
25615installed. For GTK+ 1.2 please check that gtk-config is in the path,
25616and that the version is 1.2.3 or above. Also check that the
25617libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25618--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25619 " >&2;}
25620 { (exit 1); exit 1; }; }
25621 ;;
25622 esac
25623
25624 if test "$WXGTK20" = 1; then
304205f1
VS
25625 save_CFLAGS="$CFLAGS"
25626 save_LIBS="$LIBS"
9d271838 25627 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25628 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25629
9755e73b 25630
304205f1
VS
25631for ac_func in pango_font_family_is_monospace
25632do
25633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25634echo "$as_me:$LINENO: checking for $ac_func" >&5
25635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25636if eval "test \"\${$as_ac_var+set}\" = set"; then
25637 echo $ECHO_N "(cached) $ECHO_C" >&6
25638else
25639 cat >conftest.$ac_ext <<_ACEOF
25640/* confdefs.h. */
25641_ACEOF
25642cat confdefs.h >>conftest.$ac_ext
25643cat >>conftest.$ac_ext <<_ACEOF
25644/* end confdefs.h. */
25645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25647#define $ac_func innocuous_$ac_func
25648
25649/* System header to define __stub macros and hopefully few prototypes,
25650 which can conflict with char $ac_func (); below.
25651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25652 <limits.h> exists even on freestanding compilers. */
25653
25654#ifdef __STDC__
25655# include <limits.h>
25656#else
25657# include <assert.h>
25658#endif
25659
25660#undef $ac_func
25661
25662/* Override any gcc2 internal prototype to avoid an error. */
25663#ifdef __cplusplus
25664extern "C"
25665{
25666#endif
25667/* We use char because int might match the return type of a gcc2
25668 builtin and then its argument prototype would still apply. */
25669char $ac_func ();
25670/* The GNU C library defines this for functions which it implements
25671 to always fail with ENOSYS. Some functions are actually named
25672 something starting with __ and the normal name is an alias. */
25673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25674choke me
25675#else
25676char (*f) () = $ac_func;
25677#endif
25678#ifdef __cplusplus
25679}
25680#endif
25681
25682int
25683main ()
25684{
25685return f != $ac_func;
25686 ;
25687 return 0;
25688}
25689_ACEOF
25690rm -f conftest.$ac_objext conftest$ac_exeext
25691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25692 (eval $ac_link) 2>conftest.er1
25693 ac_status=$?
25694 grep -v '^ *+' conftest.er1 >conftest.err
25695 rm -f conftest.er1
25696 cat conftest.err >&5
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); } &&
8c539582 25699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25701 (eval $ac_try) 2>&5
25702 ac_status=$?
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); }; } &&
25705 { ac_try='test -s conftest$ac_exeext'
25706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25707 (eval $ac_try) 2>&5
25708 ac_status=$?
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); }; }; then
25711 eval "$as_ac_var=yes"
25712else
25713 echo "$as_me: failed program was:" >&5
25714sed 's/^/| /' conftest.$ac_ext >&5
25715
25716eval "$as_ac_var=no"
25717fi
25718rm -f conftest.err conftest.$ac_objext \
25719 conftest$ac_exeext conftest.$ac_ext
25720fi
25721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25722echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25723if test `eval echo '${'$as_ac_var'}'` = yes; then
25724 cat >>confdefs.h <<_ACEOF
25725#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25726_ACEOF
25727
25728fi
25729done
25730
9755e73b 25731
abc736fd
MW
25732 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25733echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25734 cat >conftest.$ac_ext <<_ACEOF
25735/* confdefs.h. */
25736_ACEOF
25737cat confdefs.h >>conftest.$ac_ext
25738cat >>conftest.$ac_ext <<_ACEOF
25739/* end confdefs.h. */
25740
25741 #include <gtk/gtk.h>
25742
25743int
25744main ()
25745{
25746
25747 void *f = gtk_icon_size_lookup;
25748
25749 ;
25750 return 0;
25751}
25752_ACEOF
25753rm -f conftest.$ac_objext
25754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25755 (eval $ac_compile) 2>conftest.er1
25756 ac_status=$?
25757 grep -v '^ *+' conftest.er1 >conftest.err
25758 rm -f conftest.er1
25759 cat conftest.err >&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); } &&
8c539582 25762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25765 ac_status=$?
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; } &&
25768 { ac_try='test -s conftest.$ac_objext'
25769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770 (eval $ac_try) 2>&5
25771 ac_status=$?
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); }; }; then
25774
25775 echo "$as_me:$LINENO: result: no" >&5
25776echo "${ECHO_T}no" >&6
25777
25778else
25779 echo "$as_me: failed program was:" >&5
25780sed 's/^/| /' conftest.$ac_ext >&5
25781
25782
25783 cat >>confdefs.h <<\_ACEOF
25784#define NEED_GTK_ICON_SIZE_LOOKUP 1
25785_ACEOF
25786
25787 echo "$as_me:$LINENO: result: yes" >&5
25788echo "${ECHO_T}yes" >&6
25789
25790fi
25791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25792
9755e73b
VS
25793 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25794echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25795 cat >conftest.$ac_ext <<_ACEOF
25796/* confdefs.h. */
25797_ACEOF
25798cat confdefs.h >>conftest.$ac_ext
25799cat >>conftest.$ac_ext <<_ACEOF
25800/* end confdefs.h. */
25801
25802 #include <gtk/gtk.h>
25803
25804int
25805main ()
25806{
25807
25808 #if !GTK_CHECK_VERSION(2,4,0)
25809 #error "Not GTK+ 2.4"
25810 #endif
25811
25812 ;
25813 return 0;
25814}
25815_ACEOF
25816rm -f conftest.$ac_objext
25817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25818 (eval $ac_compile) 2>conftest.er1
25819 ac_status=$?
25820 grep -v '^ *+' conftest.er1 >conftest.err
25821 rm -f conftest.er1
25822 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } &&
8c539582 25825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25827 (eval $ac_try) 2>&5
25828 ac_status=$?
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); }; } &&
25831 { ac_try='test -s conftest.$ac_objext'
25832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25833 (eval $ac_try) 2>&5
25834 ac_status=$?
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); }; }; then
25837
25838 cat >>confdefs.h <<\_ACEOF
25839#define __WXGTK24__ 1
25840_ACEOF
25841
25842 echo "$as_me:$LINENO: result: yes" >&5
25843echo "${ECHO_T}yes" >&6
25844
25845else
25846 echo "$as_me: failed program was:" >&5
25847sed 's/^/| /' conftest.$ac_ext >&5
25848
25849
25850 echo "$as_me:$LINENO: result: no" >&5
25851echo "${ECHO_T}no" >&6
25852
25853fi
25854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25855
304205f1
VS
25856 CFLAGS="$save_CFLAGS"
25857 LIBS="$save_LIBS"
a848cd7e
SC
25858 else
25859 if test "$wxUSE_UNICODE" = "yes"; then
25860 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25861echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25862 wxUSE_UNICODE=no
25863 fi
25864 fi
25865
25866 if test "$USE_DARWIN" != 1; then
25867
25868for ac_func in poll
25869do
25870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25871echo "$as_me:$LINENO: checking for $ac_func" >&5
25872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25873if eval "test \"\${$as_ac_var+set}\" = set"; then
25874 echo $ECHO_N "(cached) $ECHO_C" >&6
25875else
25876 cat >conftest.$ac_ext <<_ACEOF
25877/* confdefs.h. */
25878_ACEOF
25879cat confdefs.h >>conftest.$ac_ext
25880cat >>conftest.$ac_ext <<_ACEOF
25881/* end confdefs.h. */
ac1cb8d3
VS
25882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25884#define $ac_func innocuous_$ac_func
25885
a848cd7e
SC
25886/* System header to define __stub macros and hopefully few prototypes,
25887 which can conflict with char $ac_func (); below.
25888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25889 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25890
a848cd7e
SC
25891#ifdef __STDC__
25892# include <limits.h>
25893#else
25894# include <assert.h>
25895#endif
ac1cb8d3
VS
25896
25897#undef $ac_func
25898
a848cd7e
SC
25899/* Override any gcc2 internal prototype to avoid an error. */
25900#ifdef __cplusplus
25901extern "C"
25902{
25903#endif
25904/* We use char because int might match the return type of a gcc2
25905 builtin and then its argument prototype would still apply. */
25906char $ac_func ();
25907/* The GNU C library defines this for functions which it implements
25908 to always fail with ENOSYS. Some functions are actually named
25909 something starting with __ and the normal name is an alias. */
25910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25911choke me
25912#else
25913char (*f) () = $ac_func;
25914#endif
25915#ifdef __cplusplus
25916}
25917#endif
25918
25919int
25920main ()
25921{
25922return f != $ac_func;
25923 ;
25924 return 0;
25925}
25926_ACEOF
25927rm -f conftest.$ac_objext conftest$ac_exeext
25928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25929 (eval $ac_link) 2>conftest.er1
a848cd7e 25930 ac_status=$?
ac1cb8d3
VS
25931 grep -v '^ *+' conftest.er1 >conftest.err
25932 rm -f conftest.er1
25933 cat conftest.err >&5
a848cd7e
SC
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } &&
8c539582 25936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25938 (eval $ac_try) 2>&5
25939 ac_status=$?
25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); }; } &&
25942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25944 (eval $ac_try) 2>&5
25945 ac_status=$?
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); }; }; then
25948 eval "$as_ac_var=yes"
25949else
25950 echo "$as_me: failed program was:" >&5
25951sed 's/^/| /' conftest.$ac_ext >&5
25952
25953eval "$as_ac_var=no"
25954fi
ac1cb8d3
VS
25955rm -f conftest.err conftest.$ac_objext \
25956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25957fi
25958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25959echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25960if test `eval echo '${'$as_ac_var'}'` = yes; then
25961 cat >>confdefs.h <<_ACEOF
25962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25963_ACEOF
25964
25965fi
25966done
25967
25968 fi
25969
25970 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25971 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25972
25973 AFMINSTALL=afminstall
25974 TOOLKIT=GTK
25975 GUIDIST=GTK_DIST
25976
25977 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25978echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25979if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25980 echo $ECHO_N "(cached) $ECHO_C" >&6
25981else
25982 ac_check_lib_save_LIBS=$LIBS
25983LIBS="-lgdk $LIBS"
25984cat >conftest.$ac_ext <<_ACEOF
25985/* confdefs.h. */
25986_ACEOF
25987cat confdefs.h >>conftest.$ac_ext
25988cat >>conftest.$ac_ext <<_ACEOF
25989/* end confdefs.h. */
25990
25991/* Override any gcc2 internal prototype to avoid an error. */
25992#ifdef __cplusplus
25993extern "C"
25994#endif
25995/* We use char because int might match the return type of a gcc2
25996 builtin and then its argument prototype would still apply. */
25997char gdk_im_open ();
25998int
25999main ()
26000{
26001gdk_im_open ();
26002 ;
26003 return 0;
26004}
26005_ACEOF
26006rm -f conftest.$ac_objext conftest$ac_exeext
26007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26008 (eval $ac_link) 2>conftest.er1
a848cd7e 26009 ac_status=$?
ac1cb8d3
VS
26010 grep -v '^ *+' conftest.er1 >conftest.err
26011 rm -f conftest.er1
26012 cat conftest.err >&5
a848cd7e
SC
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); } &&
8c539582 26015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; } &&
26021 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023 (eval $ac_try) 2>&5
26024 ac_status=$?
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); }; }; then
26027 ac_cv_lib_gdk_gdk_im_open=yes
26028else
26029 echo "$as_me: failed program was:" >&5
26030sed 's/^/| /' conftest.$ac_ext >&5
26031
26032ac_cv_lib_gdk_gdk_im_open=no
26033fi
ac1cb8d3
VS
26034rm -f conftest.err conftest.$ac_objext \
26035 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26036LIBS=$ac_check_lib_save_LIBS
26037fi
26038echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26039echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26040if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26041 cat >>confdefs.h <<\_ACEOF
26042#define HAVE_XIM 1
26043_ACEOF
26044
26045fi
26046
26047
26048
26049 if test "$wxUSE_GPE" = "yes"; then
26050 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26051echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26052
26053ac_find_libraries=
26054for ac_dir in $SEARCH_LIB /usr/lib;
26055 do
26056 for ac_extension in a so sl dylib; do
26057 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26058 ac_find_libraries=$ac_dir
26059 break 2
26060 fi
26061 done
26062 done
26063
26064 if test "$ac_find_libraries" != "" ; then
26065
26066 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26067 result=$?
26068 if test $result = 0; then
26069 ac_path_to_link=""
26070 else
26071 ac_path_to_link=" -L$ac_find_libraries"
26072 fi
26073
26074 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26075 WXGPE=1
26076 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26077echo "${ECHO_T}found at $ac_find_libraries" >&6
26078 else
26079 echo "$as_me:$LINENO: result: not found" >&5
26080echo "${ECHO_T}not found" >&6
26081 fi
26082
26083 fi
26084 fi
26085
26086 if test "$wxUSE_MGL" = 1; then
26087 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26088echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26089 if test "x$MGL_ROOT" = x ; then
26090 echo "$as_me:$LINENO: result: not found" >&5
26091echo "${ECHO_T}not found" >&6
26092 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26093echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26094 { (exit 1); exit 1; }; }
26095 else
26096 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26097echo "${ECHO_T}$MGL_ROOT" >&6
26098 fi
26099
26100 echo "$as_me:$LINENO: checking for libmgl location" >&5
26101echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26102 case "${host}" in
26103 *-*-linux* )
26104 if test "x$wxUSE_SHARED" = xyes ; then
26105 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26106 else
26107 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26108 fi
26109 ;;
26110 *-pc-msdosdjgpp )
26111 mgl_os_candidates="dos32/dj2"
26112 ;;
26113 *)
26114 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26115echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26116 { (exit 1); exit 1; }; }
26117 esac
26118
26119 mgl_lib_type=""
26120 mgl_os=""
26121
26122 for mgl_os_i in $mgl_os_candidates ; do
26123 if test "x$mgl_os" = x ; then
26124 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26125 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26126 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26127 mgl_lib_type=debug
26128 mgl_os=$mgl_os_i
26129 fi
26130 fi
26131 if test "x$mgl_lib_type" = x ; then
26132 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26133 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26134 mgl_lib_type=release
26135 mgl_os=$mgl_os_i
26136 fi
26137 fi
26138 fi
26139 done
26140
26141 if test "x$mgl_os" = x ; then
26142 echo "$as_me:$LINENO: result: not found" >&5
26143echo "${ECHO_T}not found" >&6
26144 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26145echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26146 { (exit 1); exit 1; }; }
26147 fi
26148 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26149echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26150
26151 wxUSE_UNIVERSAL="yes"
26152
26153 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26154 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26155
26156 AFMINSTALL=afminstall
26157 TOOLKIT=MGL
26158 GUIDIST=MGL_DIST
26159 fi
26160
26161 if test "$wxUSE_MICROWIN" = 1; then
26162 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26163echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26164 if test "x$MICROWINDOWS" = x ; then
26165 echo "$as_me:$LINENO: result: not found" >&5
26166echo "${ECHO_T}not found" >&6
26167 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26168echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26169 { (exit 1); exit 1; }; }
26170 else
26171 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26172echo "${ECHO_T}$MICROWINDOWS" >&6
26173 fi
26174
26175 if test -f $MICROWINDOWS/lib/libmwin.a; then
26176 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26177echo "${ECHO_T}MicroWindows' libraries found." >&6
26178 else
26179 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26180echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26181 { (exit 1); exit 1; }; }
26182 fi
26183
26184 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26185 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26186
26187 wxUSE_UNIVERSAL="yes"
26188
26189 AFMINSTALL=afminstall
26190 TOOLKIT=MICROWIN
26191 GUIDIST=MICROWIN_DIST
26192
26193 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26194 fi
26195
74b84332 26196 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
8c539582
RL
26197
26198if test "x$ac_path_x_has_been_run" != xyes; then
26199 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26200echo $ECHO_N "checking for X... $ECHO_C" >&6
26201
8c539582 26202ac_path_x_has_been_run=yes
a848cd7e
SC
26203
26204# Check whether --with-x or --without-x was given.
26205if test "${with_x+set}" = set; then
26206 withval="$with_x"
26207
26208fi;
26209# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26210if test "x$with_x" = xno; then
26211 # The user explicitly disabled X.
26212 have_x=disabled
26213else
26214 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26215 # Both variables are already set.
26216 have_x=yes
26217 else
26218 if test "${ac_cv_have_x+set}" = set; then
26219 echo $ECHO_N "(cached) $ECHO_C" >&6
26220else
26221 # One or both of the vars are not set, and there is no cached value.
26222ac_x_includes=no ac_x_libraries=no
26223rm -fr conftest.dir
26224if mkdir conftest.dir; then
26225 cd conftest.dir
26226 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26227 cat >Imakefile <<'_ACEOF'
26228acfindx:
26229 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26230_ACEOF
26231 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26233 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26234 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26235 for ac_extension in a so sl; do
26236 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26237 test -f $ac_im_libdir/libX11.$ac_extension; then
26238 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26239 fi
26240 done
26241 # Screen out bogus values from the imake configuration. They are
26242 # bogus both because they are the default anyway, and because
26243 # using them would break gcc on systems where it needs fixed includes.
26244 case $ac_im_incroot in
26245 /usr/include) ;;
26246 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26247 esac
26248 case $ac_im_usrlibdir in
26249 /usr/lib | /lib) ;;
26250 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26251 esac
26252 fi
26253 cd ..
26254 rm -fr conftest.dir
26255fi
26256
26257# Standard set of common directories for X headers.
26258# Check X11 before X11Rn because it is often a symlink to the current release.
26259ac_x_header_dirs='
26260/usr/X11/include
26261/usr/X11R6/include
26262/usr/X11R5/include
26263/usr/X11R4/include
26264
26265/usr/include/X11
26266/usr/include/X11R6
26267/usr/include/X11R5
26268/usr/include/X11R4
26269
26270/usr/local/X11/include
26271/usr/local/X11R6/include
26272/usr/local/X11R5/include
26273/usr/local/X11R4/include
26274
26275/usr/local/include/X11
26276/usr/local/include/X11R6
26277/usr/local/include/X11R5
26278/usr/local/include/X11R4
26279
26280/usr/X386/include
26281/usr/x386/include
26282/usr/XFree86/include/X11
26283
26284/usr/include
26285/usr/local/include
26286/usr/unsupported/include
26287/usr/athena/include
26288/usr/local/x11r5/include
26289/usr/lpp/Xamples/include
26290
26291/usr/openwin/include
26292/usr/openwin/share/include'
26293
26294if test "$ac_x_includes" = no; then
8c539582 26295 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26296 # First, try using that file with no special directory specified.
26297 cat >conftest.$ac_ext <<_ACEOF
26298/* confdefs.h. */
26299_ACEOF
26300cat confdefs.h >>conftest.$ac_ext
26301cat >>conftest.$ac_ext <<_ACEOF
26302/* end confdefs.h. */
26303#include <X11/Intrinsic.h>
26304_ACEOF
26305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26307 ac_status=$?
26308 grep -v '^ *+' conftest.er1 >conftest.err
26309 rm -f conftest.er1
26310 cat conftest.err >&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } >/dev/null; then
26313 if test -s conftest.err; then
26314 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26316 else
26317 ac_cpp_err=
26318 fi
26319else
26320 ac_cpp_err=yes
26321fi
26322if test -z "$ac_cpp_err"; then
26323 # We can compile using X headers with no special include directory.
26324ac_x_includes=
26325else
26326 echo "$as_me: failed program was:" >&5
26327sed 's/^/| /' conftest.$ac_ext >&5
26328
26329 for ac_dir in $ac_x_header_dirs; do
26330 if test -r "$ac_dir/X11/Intrinsic.h"; then
26331 ac_x_includes=$ac_dir
26332 break
26333 fi
26334done
26335fi
26336rm -f conftest.err conftest.$ac_ext
26337fi # $ac_x_includes = no
26338
26339if test "$ac_x_libraries" = no; then
26340 # Check for the libraries.
26341 # See if we find them without any special options.
26342 # Don't add to $LIBS permanently.
26343 ac_save_LIBS=$LIBS
26344 LIBS="-lXt $LIBS"
26345 cat >conftest.$ac_ext <<_ACEOF
26346/* confdefs.h. */
26347_ACEOF
26348cat confdefs.h >>conftest.$ac_ext
26349cat >>conftest.$ac_ext <<_ACEOF
26350/* end confdefs.h. */
26351#include <X11/Intrinsic.h>
26352int
26353main ()
26354{
26355XtMalloc (0)
26356 ;
26357 return 0;
26358}
26359_ACEOF
26360rm -f conftest.$ac_objext conftest$ac_exeext
26361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26362 (eval $ac_link) 2>conftest.er1
a848cd7e 26363 ac_status=$?
ac1cb8d3
VS
26364 grep -v '^ *+' conftest.er1 >conftest.err
26365 rm -f conftest.er1
26366 cat conftest.err >&5
a848cd7e
SC
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); } &&
8c539582 26369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26371 (eval $ac_try) 2>&5
26372 ac_status=$?
26373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); }; } &&
26375 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26377 (eval $ac_try) 2>&5
26378 ac_status=$?
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); }; }; then
26381 LIBS=$ac_save_LIBS
26382# We can link X programs with no special library path.
26383ac_x_libraries=
26384else
26385 echo "$as_me: failed program was:" >&5
26386sed 's/^/| /' conftest.$ac_ext >&5
26387
26388LIBS=$ac_save_LIBS
26389for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26390do
26391 # Don't even attempt the hair of trying to link an X program!
26392 for ac_extension in a so sl; do
26393 if test -r $ac_dir/libXt.$ac_extension; then
26394 ac_x_libraries=$ac_dir
26395 break 2
26396 fi
26397 done
26398done
26399fi
ac1cb8d3
VS
26400rm -f conftest.err conftest.$ac_objext \
26401 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26402fi # $ac_x_libraries = no
26403
26404if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26405 # Didn't find X anywhere. Cache the known absence of X.
26406 ac_cv_have_x="have_x=no"
26407else
26408 # Record where we found X for the cache.
26409 ac_cv_have_x="have_x=yes \
ac1cb8d3 26410 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26411fi
26412fi
26413
26414 fi
26415 eval "$ac_cv_have_x"
26416fi # $with_x != no
26417
26418if test "$have_x" != yes; then
26419 echo "$as_me:$LINENO: result: $have_x" >&5
26420echo "${ECHO_T}$have_x" >&6
26421 no_x=yes
26422else
26423 # If each of the values was on the command line, it overrides each guess.
26424 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26425 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26426 # Update the cache value to reflect the command line values.
26427 ac_cv_have_x="have_x=yes \
26428 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8c539582
RL
26429 # It might be that x_includes is empty (headers are found in the
26430 # standard search path. Then output the corresponding message
26431 ac_out_x_includes=$x_includes
26432 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26433 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26434echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26435fi
26436
8c539582 26437fi
a848cd7e
SC
26438if test "$no_x" = yes; then
26439 # Not all programs may use this symbol, but it does not hurt to define it.
26440
26441cat >>confdefs.h <<\_ACEOF
26442#define X_DISPLAY_MISSING 1
26443_ACEOF
26444
26445 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26446else
26447 if test -n "$x_includes"; then
26448 X_CFLAGS="$X_CFLAGS -I$x_includes"
26449 fi
26450
26451 # It would also be nice to do this for all -L options, not just this one.
26452 if test -n "$x_libraries"; then
26453 X_LIBS="$X_LIBS -L$x_libraries"
26454 # For Solaris; some versions of Sun CC require a space after -R and
26455 # others require no space. Words are not sufficient . . . .
26456 case `(uname -sr) 2>/dev/null` in
26457 "SunOS 5"*)
26458 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26459echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26460 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26461 cat >conftest.$ac_ext <<_ACEOF
26462/* confdefs.h. */
26463_ACEOF
26464cat confdefs.h >>conftest.$ac_ext
26465cat >>conftest.$ac_ext <<_ACEOF
26466/* end confdefs.h. */
26467
26468int
26469main ()
26470{
26471
26472 ;
26473 return 0;
26474}
26475_ACEOF
26476rm -f conftest.$ac_objext conftest$ac_exeext
26477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26478 (eval $ac_link) 2>conftest.er1
a848cd7e 26479 ac_status=$?
ac1cb8d3
VS
26480 grep -v '^ *+' conftest.er1 >conftest.err
26481 rm -f conftest.er1
26482 cat conftest.err >&5
a848cd7e
SC
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } &&
8c539582 26485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487 (eval $ac_try) 2>&5
26488 ac_status=$?
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); }; } &&
26491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26493 (eval $ac_try) 2>&5
26494 ac_status=$?
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); }; }; then
26497 ac_R_nospace=yes
26498else
26499 echo "$as_me: failed program was:" >&5
26500sed 's/^/| /' conftest.$ac_ext >&5
26501
26502ac_R_nospace=no
26503fi
ac1cb8d3
VS
26504rm -f conftest.err conftest.$ac_objext \
26505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26506 if test $ac_R_nospace = yes; then
26507 echo "$as_me:$LINENO: result: no" >&5
26508echo "${ECHO_T}no" >&6
26509 X_LIBS="$X_LIBS -R$x_libraries"
26510 else
26511 LIBS="$ac_xsave_LIBS -R $x_libraries"
26512 cat >conftest.$ac_ext <<_ACEOF
26513/* confdefs.h. */
26514_ACEOF
26515cat confdefs.h >>conftest.$ac_ext
26516cat >>conftest.$ac_ext <<_ACEOF
26517/* end confdefs.h. */
26518
26519int
26520main ()
26521{
26522
26523 ;
26524 return 0;
26525}
26526_ACEOF
26527rm -f conftest.$ac_objext conftest$ac_exeext
26528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26529 (eval $ac_link) 2>conftest.er1
a848cd7e 26530 ac_status=$?
ac1cb8d3
VS
26531 grep -v '^ *+' conftest.er1 >conftest.err
26532 rm -f conftest.er1
26533 cat conftest.err >&5
a848cd7e
SC
26534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535 (exit $ac_status); } &&
8c539582 26536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538 (eval $ac_try) 2>&5
26539 ac_status=$?
26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); }; } &&
26542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26544 (eval $ac_try) 2>&5
26545 ac_status=$?
26546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); }; }; then
26548 ac_R_space=yes
26549else
26550 echo "$as_me: failed program was:" >&5
26551sed 's/^/| /' conftest.$ac_ext >&5
26552
26553ac_R_space=no
26554fi
ac1cb8d3
VS
26555rm -f conftest.err conftest.$ac_objext \
26556 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26557 if test $ac_R_space = yes; then
26558 echo "$as_me:$LINENO: result: yes" >&5
26559echo "${ECHO_T}yes" >&6
26560 X_LIBS="$X_LIBS -R $x_libraries"
26561 else
26562 echo "$as_me:$LINENO: result: neither works" >&5
26563echo "${ECHO_T}neither works" >&6
26564 fi
26565 fi
26566 LIBS=$ac_xsave_LIBS
26567 esac
26568 fi
26569
26570 # Check for system-dependent libraries X programs must link with.
26571 # Do this before checking for the system-independent R6 libraries
26572 # (-lICE), since we may need -lsocket or whatever for X linking.
26573
26574 if test "$ISC" = yes; then
26575 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26576 else
26577 # Martyn Johnson says this is needed for Ultrix, if the X
26578 # libraries were built with DECnet support. And Karl Berry says
26579 # the Alpha needs dnet_stub (dnet does not exist).
26580 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26581 cat >conftest.$ac_ext <<_ACEOF
26582/* confdefs.h. */
26583_ACEOF
26584cat confdefs.h >>conftest.$ac_ext
26585cat >>conftest.$ac_ext <<_ACEOF
26586/* end confdefs.h. */
26587
26588/* Override any gcc2 internal prototype to avoid an error. */
26589#ifdef __cplusplus
26590extern "C"
26591#endif
26592/* We use char because int might match the return type of a gcc2
26593 builtin and then its argument prototype would still apply. */
26594char XOpenDisplay ();
26595int
26596main ()
26597{
26598XOpenDisplay ();
26599 ;
26600 return 0;
26601}
26602_ACEOF
26603rm -f conftest.$ac_objext conftest$ac_exeext
26604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26605 (eval $ac_link) 2>conftest.er1
a848cd7e 26606 ac_status=$?
ac1cb8d3
VS
26607 grep -v '^ *+' conftest.er1 >conftest.err
26608 rm -f conftest.er1
26609 cat conftest.err >&5
a848cd7e
SC
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); } &&
8c539582 26612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26614 (eval $ac_try) 2>&5
26615 ac_status=$?
26616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617 (exit $ac_status); }; } &&
26618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620 (eval $ac_try) 2>&5
26621 ac_status=$?
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); }; }; then
26624 :
26625else
26626 echo "$as_me: failed program was:" >&5
26627sed 's/^/| /' conftest.$ac_ext >&5
26628
26629echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26630echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26631if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26633else
26634 ac_check_lib_save_LIBS=$LIBS
26635LIBS="-ldnet $LIBS"
26636cat >conftest.$ac_ext <<_ACEOF
26637/* confdefs.h. */
26638_ACEOF
26639cat confdefs.h >>conftest.$ac_ext
26640cat >>conftest.$ac_ext <<_ACEOF
26641/* end confdefs.h. */
26642
26643/* Override any gcc2 internal prototype to avoid an error. */
26644#ifdef __cplusplus
26645extern "C"
26646#endif
26647/* We use char because int might match the return type of a gcc2
26648 builtin and then its argument prototype would still apply. */
26649char dnet_ntoa ();
26650int
26651main ()
26652{
26653dnet_ntoa ();
26654 ;
26655 return 0;
26656}
26657_ACEOF
26658rm -f conftest.$ac_objext conftest$ac_exeext
26659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26660 (eval $ac_link) 2>conftest.er1
a848cd7e 26661 ac_status=$?
ac1cb8d3
VS
26662 grep -v '^ *+' conftest.er1 >conftest.err
26663 rm -f conftest.er1
26664 cat conftest.err >&5
a848cd7e
SC
26665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); } &&
8c539582 26667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669 (eval $ac_try) 2>&5
26670 ac_status=$?
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); }; } &&
26673 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675 (eval $ac_try) 2>&5
26676 ac_status=$?
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; }; then
26679 ac_cv_lib_dnet_dnet_ntoa=yes
26680else
26681 echo "$as_me: failed program was:" >&5
26682sed 's/^/| /' conftest.$ac_ext >&5
26683
26684ac_cv_lib_dnet_dnet_ntoa=no
26685fi
ac1cb8d3
VS
26686rm -f conftest.err conftest.$ac_objext \
26687 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26688LIBS=$ac_check_lib_save_LIBS
26689fi
26690echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26691echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26692if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26693 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26694fi
26695
26696 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26697 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26698echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26699if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26700 echo $ECHO_N "(cached) $ECHO_C" >&6
26701else
26702 ac_check_lib_save_LIBS=$LIBS
26703LIBS="-ldnet_stub $LIBS"
26704cat >conftest.$ac_ext <<_ACEOF
26705/* confdefs.h. */
26706_ACEOF
26707cat confdefs.h >>conftest.$ac_ext
26708cat >>conftest.$ac_ext <<_ACEOF
26709/* end confdefs.h. */
26710
26711/* Override any gcc2 internal prototype to avoid an error. */
26712#ifdef __cplusplus
26713extern "C"
26714#endif
26715/* We use char because int might match the return type of a gcc2
26716 builtin and then its argument prototype would still apply. */
26717char dnet_ntoa ();
26718int
26719main ()
26720{
26721dnet_ntoa ();
26722 ;
26723 return 0;
26724}
26725_ACEOF
26726rm -f conftest.$ac_objext conftest$ac_exeext
26727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26728 (eval $ac_link) 2>conftest.er1
a848cd7e 26729 ac_status=$?
ac1cb8d3
VS
26730 grep -v '^ *+' conftest.er1 >conftest.err
26731 rm -f conftest.er1
26732 cat conftest.err >&5
a848cd7e
SC
26733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); } &&
8c539582 26735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737 (eval $ac_try) 2>&5
26738 ac_status=$?
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); }; } &&
26741 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743 (eval $ac_try) 2>&5
26744 ac_status=$?
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); }; }; then
26747 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26748else
26749 echo "$as_me: failed program was:" >&5
26750sed 's/^/| /' conftest.$ac_ext >&5
26751
26752ac_cv_lib_dnet_stub_dnet_ntoa=no
26753fi
ac1cb8d3
VS
26754rm -f conftest.err conftest.$ac_objext \
26755 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26756LIBS=$ac_check_lib_save_LIBS
26757fi
26758echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26759echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26760if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26761 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26762fi
26763
26764 fi
26765fi
ac1cb8d3
VS
26766rm -f conftest.err conftest.$ac_objext \
26767 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26768 LIBS="$ac_xsave_LIBS"
26769
26770 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26771 # to get the SysV transport functions.
26772 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26773 # needs -lnsl.
26774 # The nsl library prevents programs from opening the X display
26775 # on Irix 5.2, according to T.E. Dickey.
26776 # The functions gethostbyname, getservbyname, and inet_addr are
26777 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26778 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26779echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26780if test "${ac_cv_func_gethostbyname+set}" = set; then
26781 echo $ECHO_N "(cached) $ECHO_C" >&6
26782else
26783 cat >conftest.$ac_ext <<_ACEOF
26784/* confdefs.h. */
26785_ACEOF
26786cat confdefs.h >>conftest.$ac_ext
26787cat >>conftest.$ac_ext <<_ACEOF
26788/* end confdefs.h. */
ac1cb8d3
VS
26789/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26791#define gethostbyname innocuous_gethostbyname
26792
a848cd7e
SC
26793/* System header to define __stub macros and hopefully few prototypes,
26794 which can conflict with char gethostbyname (); below.
26795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26796 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26797
a848cd7e
SC
26798#ifdef __STDC__
26799# include <limits.h>
26800#else
26801# include <assert.h>
26802#endif
ac1cb8d3
VS
26803
26804#undef gethostbyname
26805
a848cd7e
SC
26806/* Override any gcc2 internal prototype to avoid an error. */
26807#ifdef __cplusplus
26808extern "C"
26809{
26810#endif
26811/* We use char because int might match the return type of a gcc2
26812 builtin and then its argument prototype would still apply. */
26813char gethostbyname ();
26814/* The GNU C library defines this for functions which it implements
26815 to always fail with ENOSYS. Some functions are actually named
26816 something starting with __ and the normal name is an alias. */
26817#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26818choke me
26819#else
26820char (*f) () = gethostbyname;
26821#endif
26822#ifdef __cplusplus
26823}
26824#endif
26825
26826int
26827main ()
26828{
26829return f != gethostbyname;
26830 ;
26831 return 0;
26832}
26833_ACEOF
26834rm -f conftest.$ac_objext conftest$ac_exeext
26835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26836 (eval $ac_link) 2>conftest.er1
a848cd7e 26837 ac_status=$?
ac1cb8d3
VS
26838 grep -v '^ *+' conftest.er1 >conftest.err
26839 rm -f conftest.er1
26840 cat conftest.err >&5
a848cd7e
SC
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); } &&
8c539582 26843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845 (eval $ac_try) 2>&5
26846 ac_status=$?
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); }; } &&
26849 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26852 ac_status=$?
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; }; then
26855 ac_cv_func_gethostbyname=yes
26856else
26857 echo "$as_me: failed program was:" >&5
26858sed 's/^/| /' conftest.$ac_ext >&5
26859
26860ac_cv_func_gethostbyname=no
26861fi
ac1cb8d3
VS
26862rm -f conftest.err conftest.$ac_objext \
26863 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26864fi
26865echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26866echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26867
26868 if test $ac_cv_func_gethostbyname = no; then
26869 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26870echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26871if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26872 echo $ECHO_N "(cached) $ECHO_C" >&6
26873else
26874 ac_check_lib_save_LIBS=$LIBS
26875LIBS="-lnsl $LIBS"
26876cat >conftest.$ac_ext <<_ACEOF
26877/* confdefs.h. */
26878_ACEOF
26879cat confdefs.h >>conftest.$ac_ext
26880cat >>conftest.$ac_ext <<_ACEOF
26881/* end confdefs.h. */
26882
26883/* Override any gcc2 internal prototype to avoid an error. */
26884#ifdef __cplusplus
26885extern "C"
26886#endif
26887/* We use char because int might match the return type of a gcc2
26888 builtin and then its argument prototype would still apply. */
26889char gethostbyname ();
26890int
26891main ()
26892{
26893gethostbyname ();
26894 ;
26895 return 0;
26896}
26897_ACEOF
26898rm -f conftest.$ac_objext conftest$ac_exeext
26899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26900 (eval $ac_link) 2>conftest.er1
26901 ac_status=$?
26902 grep -v '^ *+' conftest.er1 >conftest.err
26903 rm -f conftest.er1
26904 cat conftest.err >&5
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); } &&
8c539582 26907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26909 (eval $ac_try) 2>&5
26910 ac_status=$?
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); }; } &&
26913 { ac_try='test -s conftest$ac_exeext'
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; }; then
26919 ac_cv_lib_nsl_gethostbyname=yes
26920else
26921 echo "$as_me: failed program was:" >&5
26922sed 's/^/| /' conftest.$ac_ext >&5
26923
26924ac_cv_lib_nsl_gethostbyname=no
26925fi
26926rm -f conftest.err conftest.$ac_objext \
26927 conftest$ac_exeext conftest.$ac_ext
26928LIBS=$ac_check_lib_save_LIBS
26929fi
26930echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26931echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26932if test $ac_cv_lib_nsl_gethostbyname = yes; then
26933 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26934fi
26935
26936 if test $ac_cv_lib_nsl_gethostbyname = no; then
26937 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26938echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26939if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26940 echo $ECHO_N "(cached) $ECHO_C" >&6
26941else
26942 ac_check_lib_save_LIBS=$LIBS
26943LIBS="-lbsd $LIBS"
26944cat >conftest.$ac_ext <<_ACEOF
26945/* confdefs.h. */
26946_ACEOF
26947cat confdefs.h >>conftest.$ac_ext
26948cat >>conftest.$ac_ext <<_ACEOF
26949/* end confdefs.h. */
26950
26951/* Override any gcc2 internal prototype to avoid an error. */
26952#ifdef __cplusplus
26953extern "C"
26954#endif
26955/* We use char because int might match the return type of a gcc2
26956 builtin and then its argument prototype would still apply. */
26957char gethostbyname ();
26958int
26959main ()
26960{
26961gethostbyname ();
26962 ;
26963 return 0;
26964}
26965_ACEOF
26966rm -f conftest.$ac_objext conftest$ac_exeext
26967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26968 (eval $ac_link) 2>conftest.er1
a848cd7e 26969 ac_status=$?
ac1cb8d3
VS
26970 grep -v '^ *+' conftest.er1 >conftest.err
26971 rm -f conftest.er1
26972 cat conftest.err >&5
a848cd7e
SC
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } &&
8c539582 26975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977 (eval $ac_try) 2>&5
26978 ac_status=$?
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26980 (exit $ac_status); }; } &&
26981 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; }; then
26987 ac_cv_lib_bsd_gethostbyname=yes
26988else
26989 echo "$as_me: failed program was:" >&5
26990sed 's/^/| /' conftest.$ac_ext >&5
26991
26992ac_cv_lib_bsd_gethostbyname=no
26993fi
ac1cb8d3
VS
26994rm -f conftest.err conftest.$ac_objext \
26995 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26996LIBS=$ac_check_lib_save_LIBS
26997fi
26998echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26999echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27000if test $ac_cv_lib_bsd_gethostbyname = yes; then
27001 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27002fi
27003
27004 fi
27005 fi
27006
27007 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27008 # socket/setsockopt and other routines are undefined under SCO ODT
27009 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27010 # on later versions), says Simon Leinen: it contains gethostby*
27011 # variants that don't use the name server (or something). -lsocket
27012 # must be given before -lnsl if both are needed. We assume that
27013 # if connect needs -lnsl, so does gethostbyname.
27014 echo "$as_me:$LINENO: checking for connect" >&5
27015echo $ECHO_N "checking for connect... $ECHO_C" >&6
27016if test "${ac_cv_func_connect+set}" = set; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
27018else
27019 cat >conftest.$ac_ext <<_ACEOF
27020/* confdefs.h. */
27021_ACEOF
27022cat confdefs.h >>conftest.$ac_ext
27023cat >>conftest.$ac_ext <<_ACEOF
27024/* end confdefs.h. */
ac1cb8d3
VS
27025/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27027#define connect innocuous_connect
27028
a848cd7e
SC
27029/* System header to define __stub macros and hopefully few prototypes,
27030 which can conflict with char connect (); below.
27031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27032 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27033
a848cd7e
SC
27034#ifdef __STDC__
27035# include <limits.h>
27036#else
27037# include <assert.h>
27038#endif
ac1cb8d3
VS
27039
27040#undef connect
27041
a848cd7e
SC
27042/* Override any gcc2 internal prototype to avoid an error. */
27043#ifdef __cplusplus
27044extern "C"
27045{
27046#endif
27047/* We use char because int might match the return type of a gcc2
27048 builtin and then its argument prototype would still apply. */
27049char connect ();
27050/* The GNU C library defines this for functions which it implements
27051 to always fail with ENOSYS. Some functions are actually named
27052 something starting with __ and the normal name is an alias. */
27053#if defined (__stub_connect) || defined (__stub___connect)
27054choke me
27055#else
27056char (*f) () = connect;
27057#endif
27058#ifdef __cplusplus
27059}
27060#endif
27061
27062int
27063main ()
27064{
27065return f != connect;
27066 ;
27067 return 0;
27068}
27069_ACEOF
27070rm -f conftest.$ac_objext conftest$ac_exeext
27071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27072 (eval $ac_link) 2>conftest.er1
a848cd7e 27073 ac_status=$?
ac1cb8d3
VS
27074 grep -v '^ *+' conftest.er1 >conftest.err
27075 rm -f conftest.er1
27076 cat conftest.err >&5
a848cd7e
SC
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); } &&
8c539582 27079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081 (eval $ac_try) 2>&5
27082 ac_status=$?
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; } &&
27085 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27088 ac_status=$?
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; }; then
27091 ac_cv_func_connect=yes
27092else
27093 echo "$as_me: failed program was:" >&5
27094sed 's/^/| /' conftest.$ac_ext >&5
27095
27096ac_cv_func_connect=no
27097fi
ac1cb8d3
VS
27098rm -f conftest.err conftest.$ac_objext \
27099 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27100fi
27101echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27102echo "${ECHO_T}$ac_cv_func_connect" >&6
27103
27104 if test $ac_cv_func_connect = no; then
27105 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27106echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27107if test "${ac_cv_lib_socket_connect+set}" = set; then
27108 echo $ECHO_N "(cached) $ECHO_C" >&6
27109else
27110 ac_check_lib_save_LIBS=$LIBS
27111LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27112cat >conftest.$ac_ext <<_ACEOF
27113/* confdefs.h. */
27114_ACEOF
27115cat confdefs.h >>conftest.$ac_ext
27116cat >>conftest.$ac_ext <<_ACEOF
27117/* end confdefs.h. */
27118
27119/* Override any gcc2 internal prototype to avoid an error. */
27120#ifdef __cplusplus
27121extern "C"
27122#endif
27123/* We use char because int might match the return type of a gcc2
27124 builtin and then its argument prototype would still apply. */
27125char connect ();
27126int
27127main ()
27128{
27129connect ();
27130 ;
27131 return 0;
27132}
27133_ACEOF
27134rm -f conftest.$ac_objext conftest$ac_exeext
27135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27136 (eval $ac_link) 2>conftest.er1
a848cd7e 27137 ac_status=$?
ac1cb8d3
VS
27138 grep -v '^ *+' conftest.er1 >conftest.err
27139 rm -f conftest.er1
27140 cat conftest.err >&5
a848cd7e
SC
27141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); } &&
8c539582 27143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27145 (eval $ac_try) 2>&5
27146 ac_status=$?
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); }; } &&
27149 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151 (eval $ac_try) 2>&5
27152 ac_status=$?
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); }; }; then
27155 ac_cv_lib_socket_connect=yes
27156else
27157 echo "$as_me: failed program was:" >&5
27158sed 's/^/| /' conftest.$ac_ext >&5
27159
27160ac_cv_lib_socket_connect=no
27161fi
ac1cb8d3
VS
27162rm -f conftest.err conftest.$ac_objext \
27163 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27164LIBS=$ac_check_lib_save_LIBS
27165fi
27166echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27167echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27168if test $ac_cv_lib_socket_connect = yes; then
27169 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27170fi
27171
27172 fi
27173
27174 # Guillermo Gomez says -lposix is necessary on A/UX.
27175 echo "$as_me:$LINENO: checking for remove" >&5
27176echo $ECHO_N "checking for remove... $ECHO_C" >&6
27177if test "${ac_cv_func_remove+set}" = set; then
27178 echo $ECHO_N "(cached) $ECHO_C" >&6
27179else
27180 cat >conftest.$ac_ext <<_ACEOF
27181/* confdefs.h. */
27182_ACEOF
27183cat confdefs.h >>conftest.$ac_ext
27184cat >>conftest.$ac_ext <<_ACEOF
27185/* end confdefs.h. */
ac1cb8d3
VS
27186/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27188#define remove innocuous_remove
27189
a848cd7e
SC
27190/* System header to define __stub macros and hopefully few prototypes,
27191 which can conflict with char remove (); below.
27192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27193 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27194
a848cd7e
SC
27195#ifdef __STDC__
27196# include <limits.h>
27197#else
27198# include <assert.h>
27199#endif
ac1cb8d3
VS
27200
27201#undef remove
27202
a848cd7e
SC
27203/* Override any gcc2 internal prototype to avoid an error. */
27204#ifdef __cplusplus
27205extern "C"
27206{
27207#endif
27208/* We use char because int might match the return type of a gcc2
27209 builtin and then its argument prototype would still apply. */
27210char remove ();
27211/* The GNU C library defines this for functions which it implements
27212 to always fail with ENOSYS. Some functions are actually named
27213 something starting with __ and the normal name is an alias. */
27214#if defined (__stub_remove) || defined (__stub___remove)
27215choke me
27216#else
27217char (*f) () = remove;
27218#endif
27219#ifdef __cplusplus
27220}
27221#endif
27222
27223int
27224main ()
27225{
27226return f != remove;
27227 ;
27228 return 0;
27229}
27230_ACEOF
27231rm -f conftest.$ac_objext conftest$ac_exeext
27232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27233 (eval $ac_link) 2>conftest.er1
a848cd7e 27234 ac_status=$?
ac1cb8d3
VS
27235 grep -v '^ *+' conftest.er1 >conftest.err
27236 rm -f conftest.er1
27237 cat conftest.err >&5
a848cd7e
SC
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); } &&
8c539582 27240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242 (eval $ac_try) 2>&5
27243 ac_status=$?
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); }; } &&
27246 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27248 (eval $ac_try) 2>&5
27249 ac_status=$?
27250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251 (exit $ac_status); }; }; then
27252 ac_cv_func_remove=yes
27253else
27254 echo "$as_me: failed program was:" >&5
27255sed 's/^/| /' conftest.$ac_ext >&5
27256
27257ac_cv_func_remove=no
27258fi
ac1cb8d3
VS
27259rm -f conftest.err conftest.$ac_objext \
27260 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27261fi
27262echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27263echo "${ECHO_T}$ac_cv_func_remove" >&6
27264
27265 if test $ac_cv_func_remove = no; then
27266 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27267echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27268if test "${ac_cv_lib_posix_remove+set}" = set; then
27269 echo $ECHO_N "(cached) $ECHO_C" >&6
27270else
27271 ac_check_lib_save_LIBS=$LIBS
27272LIBS="-lposix $LIBS"
27273cat >conftest.$ac_ext <<_ACEOF
27274/* confdefs.h. */
27275_ACEOF
27276cat confdefs.h >>conftest.$ac_ext
27277cat >>conftest.$ac_ext <<_ACEOF
27278/* end confdefs.h. */
27279
27280/* Override any gcc2 internal prototype to avoid an error. */
27281#ifdef __cplusplus
27282extern "C"
27283#endif
27284/* We use char because int might match the return type of a gcc2
27285 builtin and then its argument prototype would still apply. */
27286char remove ();
27287int
27288main ()
27289{
27290remove ();
27291 ;
27292 return 0;
27293}
27294_ACEOF
27295rm -f conftest.$ac_objext conftest$ac_exeext
27296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27297 (eval $ac_link) 2>conftest.er1
a848cd7e 27298 ac_status=$?
ac1cb8d3
VS
27299 grep -v '^ *+' conftest.er1 >conftest.err
27300 rm -f conftest.er1
27301 cat conftest.err >&5
a848cd7e
SC
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); } &&
8c539582 27304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27306 (eval $ac_try) 2>&5
27307 ac_status=$?
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); }; } &&
27310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312 (eval $ac_try) 2>&5
27313 ac_status=$?
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; }; then
27316 ac_cv_lib_posix_remove=yes
27317else
27318 echo "$as_me: failed program was:" >&5
27319sed 's/^/| /' conftest.$ac_ext >&5
27320
27321ac_cv_lib_posix_remove=no
27322fi
ac1cb8d3
VS
27323rm -f conftest.err conftest.$ac_objext \
27324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27325LIBS=$ac_check_lib_save_LIBS
27326fi
27327echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27328echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27329if test $ac_cv_lib_posix_remove = yes; then
27330 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27331fi
27332
27333 fi
27334
27335 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27336 echo "$as_me:$LINENO: checking for shmat" >&5
27337echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27338if test "${ac_cv_func_shmat+set}" = set; then
27339 echo $ECHO_N "(cached) $ECHO_C" >&6
27340else
27341 cat >conftest.$ac_ext <<_ACEOF
27342/* confdefs.h. */
27343_ACEOF
27344cat confdefs.h >>conftest.$ac_ext
27345cat >>conftest.$ac_ext <<_ACEOF
27346/* end confdefs.h. */
ac1cb8d3
VS
27347/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27349#define shmat innocuous_shmat
27350
a848cd7e
SC
27351/* System header to define __stub macros and hopefully few prototypes,
27352 which can conflict with char shmat (); below.
27353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27354 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27355
a848cd7e
SC
27356#ifdef __STDC__
27357# include <limits.h>
27358#else
27359# include <assert.h>
27360#endif
ac1cb8d3
VS
27361
27362#undef shmat
27363
a848cd7e
SC
27364/* Override any gcc2 internal prototype to avoid an error. */
27365#ifdef __cplusplus
27366extern "C"
27367{
27368#endif
27369/* We use char because int might match the return type of a gcc2
27370 builtin and then its argument prototype would still apply. */
27371char shmat ();
27372/* The GNU C library defines this for functions which it implements
27373 to always fail with ENOSYS. Some functions are actually named
27374 something starting with __ and the normal name is an alias. */
27375#if defined (__stub_shmat) || defined (__stub___shmat)
27376choke me
27377#else
27378char (*f) () = shmat;
27379#endif
27380#ifdef __cplusplus
27381}
27382#endif
27383
27384int
27385main ()
27386{
27387return f != shmat;
27388 ;
27389 return 0;
27390}
27391_ACEOF
27392rm -f conftest.$ac_objext conftest$ac_exeext
27393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27394 (eval $ac_link) 2>conftest.er1
a848cd7e 27395 ac_status=$?
ac1cb8d3
VS
27396 grep -v '^ *+' conftest.er1 >conftest.err
27397 rm -f conftest.er1
27398 cat conftest.err >&5
a848cd7e
SC
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); } &&
8c539582 27401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27403 (eval $ac_try) 2>&5
27404 ac_status=$?
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); }; } &&
27407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409 (eval $ac_try) 2>&5
27410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; }; then
27413 ac_cv_func_shmat=yes
27414else
27415 echo "$as_me: failed program was:" >&5
27416sed 's/^/| /' conftest.$ac_ext >&5
27417
27418ac_cv_func_shmat=no
27419fi
ac1cb8d3
VS
27420rm -f conftest.err conftest.$ac_objext \
27421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27422fi
27423echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27424echo "${ECHO_T}$ac_cv_func_shmat" >&6
27425
27426 if test $ac_cv_func_shmat = no; then
27427 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27428echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27429if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27430 echo $ECHO_N "(cached) $ECHO_C" >&6
27431else
27432 ac_check_lib_save_LIBS=$LIBS
27433LIBS="-lipc $LIBS"
27434cat >conftest.$ac_ext <<_ACEOF
27435/* confdefs.h. */
27436_ACEOF
27437cat confdefs.h >>conftest.$ac_ext
27438cat >>conftest.$ac_ext <<_ACEOF
27439/* end confdefs.h. */
27440
27441/* Override any gcc2 internal prototype to avoid an error. */
27442#ifdef __cplusplus
27443extern "C"
27444#endif
27445/* We use char because int might match the return type of a gcc2
27446 builtin and then its argument prototype would still apply. */
27447char shmat ();
27448int
27449main ()
27450{
27451shmat ();
27452 ;
27453 return 0;
27454}
27455_ACEOF
27456rm -f conftest.$ac_objext conftest$ac_exeext
27457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27458 (eval $ac_link) 2>conftest.er1
a848cd7e 27459 ac_status=$?
ac1cb8d3
VS
27460 grep -v '^ *+' conftest.er1 >conftest.err
27461 rm -f conftest.er1
27462 cat conftest.err >&5
a848cd7e
SC
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); } &&
8c539582 27465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467 (eval $ac_try) 2>&5
27468 ac_status=$?
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; } &&
27471 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27473 (eval $ac_try) 2>&5
27474 ac_status=$?
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); }; }; then
27477 ac_cv_lib_ipc_shmat=yes
27478else
27479 echo "$as_me: failed program was:" >&5
27480sed 's/^/| /' conftest.$ac_ext >&5
27481
27482ac_cv_lib_ipc_shmat=no
27483fi
ac1cb8d3
VS
27484rm -f conftest.err conftest.$ac_objext \
27485 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27486LIBS=$ac_check_lib_save_LIBS
27487fi
27488echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27489echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27490if test $ac_cv_lib_ipc_shmat = yes; then
27491 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27492fi
27493
27494 fi
27495 fi
27496
27497 # Check for libraries that X11R6 Xt/Xaw programs need.
27498 ac_save_LDFLAGS=$LDFLAGS
27499 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27500 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27501 # check for ICE first), but we must link in the order -lSM -lICE or
27502 # we get undefined symbols. So assume we have SM if we have ICE.
27503 # These have to be linked with before -lX11, unlike the other
27504 # libraries we check for below, so use a different variable.
27505 # John Interrante, Karl Berry
27506 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27507echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27508if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27509 echo $ECHO_N "(cached) $ECHO_C" >&6
27510else
27511 ac_check_lib_save_LIBS=$LIBS
27512LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27513cat >conftest.$ac_ext <<_ACEOF
27514/* confdefs.h. */
27515_ACEOF
27516cat confdefs.h >>conftest.$ac_ext
27517cat >>conftest.$ac_ext <<_ACEOF
27518/* end confdefs.h. */
27519
27520/* Override any gcc2 internal prototype to avoid an error. */
27521#ifdef __cplusplus
27522extern "C"
27523#endif
27524/* We use char because int might match the return type of a gcc2
27525 builtin and then its argument prototype would still apply. */
27526char IceConnectionNumber ();
27527int
27528main ()
27529{
27530IceConnectionNumber ();
27531 ;
27532 return 0;
27533}
27534_ACEOF
27535rm -f conftest.$ac_objext conftest$ac_exeext
27536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27537 (eval $ac_link) 2>conftest.er1
a848cd7e 27538 ac_status=$?
ac1cb8d3
VS
27539 grep -v '^ *+' conftest.er1 >conftest.err
27540 rm -f conftest.er1
27541 cat conftest.err >&5
a848cd7e
SC
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } &&
8c539582 27544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27546 (eval $ac_try) 2>&5
27547 ac_status=$?
27548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); }; } &&
27550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27552 (eval $ac_try) 2>&5
27553 ac_status=$?
27554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555 (exit $ac_status); }; }; then
27556 ac_cv_lib_ICE_IceConnectionNumber=yes
27557else
27558 echo "$as_me: failed program was:" >&5
27559sed 's/^/| /' conftest.$ac_ext >&5
27560
27561ac_cv_lib_ICE_IceConnectionNumber=no
27562fi
ac1cb8d3
VS
27563rm -f conftest.err conftest.$ac_objext \
27564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27565LIBS=$ac_check_lib_save_LIBS
27566fi
27567echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27568echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27569if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27570 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27571fi
27572
27573 LDFLAGS=$ac_save_LDFLAGS
27574
27575fi
27576
27577
27578 if test "$no_x" = "yes"; then
27579 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27580echo "$as_me: error: X11 not found" >&2;}
27581 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27582 fi
27583
74b84332
VS
27584 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27585 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27586 AFMINSTALL=afminstall
27587 COMPILED_X_PROGRAM=0
27588
74b84332
VS
27589 fi
27590
27591 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27592 if test "$wxUSE_NANOX" = "yes"; then
27593 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27594echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27595 if test "x$MICROWIN" = x ; then
27596 echo "$as_me:$LINENO: result: not found" >&5
27597echo "${ECHO_T}not found" >&6
27598 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27599echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27600 { (exit 1); exit 1; }; }
27601 else
27602 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27603echo "${ECHO_T}$MICROWIN" >&6
27604 cat >>confdefs.h <<\_ACEOF
27605#define wxUSE_NANOX 1
27606_ACEOF
27607
27608 fi
27609 fi
27610
27611 if test "$wxUSE_UNICODE" = "yes"; then
27612
27613 succeeded=no
27614
27615 if test -z "$PKG_CONFIG"; then
27616 # Extract the first word of "pkg-config", so it can be a program name with args.
27617set dummy pkg-config; ac_word=$2
27618echo "$as_me:$LINENO: checking for $ac_word" >&5
27619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27620if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27621 echo $ECHO_N "(cached) $ECHO_C" >&6
27622else
27623 case $PKG_CONFIG in
27624 [\\/]* | ?:[\\/]*)
27625 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27626 ;;
27627 *)
27628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27629for as_dir in $PATH
27630do
27631 IFS=$as_save_IFS
27632 test -z "$as_dir" && as_dir=.
27633 for ac_exec_ext in '' $ac_executable_extensions; do
27634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27635 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27637 break 2
27638 fi
27639done
27640done
27641
27642 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27643 ;;
27644esac
27645fi
27646PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27647
27648if test -n "$PKG_CONFIG"; then
27649 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27650echo "${ECHO_T}$PKG_CONFIG" >&6
27651else
27652 echo "$as_me:$LINENO: result: no" >&5
27653echo "${ECHO_T}no" >&6
27654fi
27655
27656 fi
27657
27658 if test "$PKG_CONFIG" = "no" ; then
27659 echo "*** The pkg-config script could not be found. Make sure it is"
27660 echo "*** in your path, or set the PKG_CONFIG environment variable"
27661 echo "*** to the full path to pkg-config."
27662 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27663 else
27664 PKG_CONFIG_MIN_VERSION=0.9.0
27665 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27666 echo "$as_me:$LINENO: checking for pangox" >&5
27667echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27668
27669 if $PKG_CONFIG --exists "pangox" ; then
27670 echo "$as_me:$LINENO: result: yes" >&5
27671echo "${ECHO_T}yes" >&6
27672 succeeded=yes
27673
27674 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27675echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27676 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27677 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27678echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27679
27680 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27681echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27682 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27683 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27684echo "${ECHO_T}$PANGOX_LIBS" >&6
27685 else
27686 PANGOX_CFLAGS=""
27687 PANGOX_LIBS=""
27688 ## If we have a custom action on failure, don't print errors, but
27689 ## do set a variable so people can do so.
27690 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27691
27692 fi
27693
27694
27695
27696 else
27697 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27698 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27699 fi
27700 fi
27701
27702 if test $succeeded = yes; then
27703
27704 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27705 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27706
27707 else
27708
27709 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27710echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27711 { (exit 1); exit 1; }; }
27712
27713
27714 fi
27715
27716
27717 succeeded=no
27718
27719 if test -z "$PKG_CONFIG"; then
27720 # Extract the first word of "pkg-config", so it can be a program name with args.
27721set dummy pkg-config; ac_word=$2
27722echo "$as_me:$LINENO: checking for $ac_word" >&5
27723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27724if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27725 echo $ECHO_N "(cached) $ECHO_C" >&6
27726else
27727 case $PKG_CONFIG in
27728 [\\/]* | ?:[\\/]*)
27729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27730 ;;
27731 *)
27732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27733for as_dir in $PATH
27734do
27735 IFS=$as_save_IFS
27736 test -z "$as_dir" && as_dir=.
27737 for ac_exec_ext in '' $ac_executable_extensions; do
27738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27739 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27741 break 2
27742 fi
27743done
27744done
27745
27746 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27747 ;;
27748esac
27749fi
27750PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27751
27752if test -n "$PKG_CONFIG"; then
27753 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27754echo "${ECHO_T}$PKG_CONFIG" >&6
27755else
27756 echo "$as_me:$LINENO: result: no" >&5
27757echo "${ECHO_T}no" >&6
27758fi
27759
27760 fi
27761
27762 if test "$PKG_CONFIG" = "no" ; then
27763 echo "*** The pkg-config script could not be found. Make sure it is"
27764 echo "*** in your path, or set the PKG_CONFIG environment variable"
27765 echo "*** to the full path to pkg-config."
27766 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27767 else
27768 PKG_CONFIG_MIN_VERSION=0.9.0
27769 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27770 echo "$as_me:$LINENO: checking for pangoft2" >&5
27771echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27772
27773 if $PKG_CONFIG --exists "pangoft2" ; then
27774 echo "$as_me:$LINENO: result: yes" >&5
27775echo "${ECHO_T}yes" >&6
27776 succeeded=yes
27777
27778 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27779echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27780 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27781 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27782echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27783
27784 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27785echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27786 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27787 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27788echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27789 else
27790 PANGOFT2_CFLAGS=""
27791 PANGOFT2_LIBS=""
27792 ## If we have a custom action on failure, don't print errors, but
27793 ## do set a variable so people can do so.
27794 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27795
27796 fi
27797
27798
27799
27800 else
27801 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27802 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27803 fi
27804 fi
27805
27806 if test $succeeded = yes; then
27807
27808 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27809 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27810
27811 else
27812
27813 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27814echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27815 wxUSE_PRINTING_ARCHITECTURE="no"
27816
27817
27818 fi
27819
27820
27821 succeeded=no
27822
27823 if test -z "$PKG_CONFIG"; then
27824 # Extract the first word of "pkg-config", so it can be a program name with args.
27825set dummy pkg-config; ac_word=$2
27826echo "$as_me:$LINENO: checking for $ac_word" >&5
27827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27828if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27829 echo $ECHO_N "(cached) $ECHO_C" >&6
27830else
27831 case $PKG_CONFIG in
27832 [\\/]* | ?:[\\/]*)
27833 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27834 ;;
27835 *)
27836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27837for as_dir in $PATH
27838do
27839 IFS=$as_save_IFS
27840 test -z "$as_dir" && as_dir=.
27841 for ac_exec_ext in '' $ac_executable_extensions; do
27842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27843 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27845 break 2
27846 fi
27847done
27848done
27849
27850 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27851 ;;
27852esac
27853fi
27854PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27855
27856if test -n "$PKG_CONFIG"; then
27857 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27858echo "${ECHO_T}$PKG_CONFIG" >&6
27859else
27860 echo "$as_me:$LINENO: result: no" >&5
27861echo "${ECHO_T}no" >&6
27862fi
27863
27864 fi
27865
27866 if test "$PKG_CONFIG" = "no" ; then
27867 echo "*** The pkg-config script could not be found. Make sure it is"
27868 echo "*** in your path, or set the PKG_CONFIG environment variable"
27869 echo "*** to the full path to pkg-config."
27870 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27871 else
27872 PKG_CONFIG_MIN_VERSION=0.9.0
27873 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27874 echo "$as_me:$LINENO: checking for pangoxft" >&5
27875echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27876
27877 if $PKG_CONFIG --exists "pangoxft" ; then
27878 echo "$as_me:$LINENO: result: yes" >&5
27879echo "${ECHO_T}yes" >&6
27880 succeeded=yes
27881
27882 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27883echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27884 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27885 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27886echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27887
27888 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27889echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27890 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27891 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27892echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27893 else
27894 PANGOXFT_CFLAGS=""
27895 PANGOXFT_LIBS=""
27896 ## If we have a custom action on failure, don't print errors, but
27897 ## do set a variable so people can do so.
27898 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27899
27900 fi
27901
27902
27903
27904 else
27905 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27906 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27907 fi
27908 fi
27909
27910 if test $succeeded = yes; then
27911
4ae1af05
MB
27912 cat >>confdefs.h <<\_ACEOF
27913#define HAVE_PANGO_XFT 1
27914_ACEOF
27915
a848cd7e
SC
27916 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27917 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27918
27919 else
27920
27921 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27922echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27923
27924
27925 fi
27926
304205f1
VS
27927 save_CFLAGS="$CFLAGS"
27928 save_LIBS="$LIBS"
27929 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27930 LIBS="$LIBS $PANGOX_LIBS"
27931
27932for ac_func in pango_font_family_is_monospace
27933do
27934as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27935echo "$as_me:$LINENO: checking for $ac_func" >&5
27936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27937if eval "test \"\${$as_ac_var+set}\" = set"; then
27938 echo $ECHO_N "(cached) $ECHO_C" >&6
27939else
27940 cat >conftest.$ac_ext <<_ACEOF
27941/* confdefs.h. */
27942_ACEOF
27943cat confdefs.h >>conftest.$ac_ext
27944cat >>conftest.$ac_ext <<_ACEOF
27945/* end confdefs.h. */
27946/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27948#define $ac_func innocuous_$ac_func
27949
27950/* System header to define __stub macros and hopefully few prototypes,
27951 which can conflict with char $ac_func (); below.
27952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27953 <limits.h> exists even on freestanding compilers. */
27954
27955#ifdef __STDC__
27956# include <limits.h>
27957#else
27958# include <assert.h>
27959#endif
27960
27961#undef $ac_func
27962
27963/* Override any gcc2 internal prototype to avoid an error. */
27964#ifdef __cplusplus
27965extern "C"
27966{
27967#endif
27968/* We use char because int might match the return type of a gcc2
27969 builtin and then its argument prototype would still apply. */
27970char $ac_func ();
27971/* The GNU C library defines this for functions which it implements
27972 to always fail with ENOSYS. Some functions are actually named
27973 something starting with __ and the normal name is an alias. */
27974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27975choke me
27976#else
27977char (*f) () = $ac_func;
27978#endif
27979#ifdef __cplusplus
27980}
27981#endif
27982
27983int
27984main ()
27985{
27986return f != $ac_func;
27987 ;
27988 return 0;
27989}
27990_ACEOF
27991rm -f conftest.$ac_objext conftest$ac_exeext
27992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27993 (eval $ac_link) 2>conftest.er1
27994 ac_status=$?
27995 grep -v '^ *+' conftest.er1 >conftest.err
27996 rm -f conftest.er1
27997 cat conftest.err >&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); } &&
8c539582 28000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
28001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28002 (eval $ac_try) 2>&5
28003 ac_status=$?
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); }; } &&
28006 { ac_try='test -s conftest$ac_exeext'
28007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28008 (eval $ac_try) 2>&5
28009 ac_status=$?
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); }; }; then
28012 eval "$as_ac_var=yes"
28013else
28014 echo "$as_me: failed program was:" >&5
28015sed 's/^/| /' conftest.$ac_ext >&5
28016
28017eval "$as_ac_var=no"
28018fi
28019rm -f conftest.err conftest.$ac_objext \
28020 conftest$ac_exeext conftest.$ac_ext
28021fi
28022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28024if test `eval echo '${'$as_ac_var'}'` = yes; then
28025 cat >>confdefs.h <<_ACEOF
28026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28027_ACEOF
28028
28029fi
28030done
28031
28032 CFLAGS="$save_CFLAGS"
28033 LIBS="$save_LIBS"
a848cd7e
SC
28034 fi
28035
28036 wxUSE_UNIVERSAL="yes"
28037
28038 if test "$wxUSE_NANOX" = "yes"; then
28039 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28040 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"
28041 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28042 else
28043 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28044 fi
28045
a848cd7e
SC
28046 TOOLKIT=X11
28047 GUIDIST=X11_DIST
28048 fi
28049
28050 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28051 if test "$wxUSE_UNICODE" = "yes"; then
28052 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28053echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28054 { (exit 1); exit 1; }; }
28055 fi
28056
74b84332
VS
28057 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28058echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28059
74b84332
VS
28060ac_find_includes=
28061for ac_dir in $SEARCH_INCLUDE /usr/include;
28062 do
28063 if test -f "$ac_dir/Xm/Xm.h"; then
28064 ac_find_includes=$ac_dir
28065 break
28066 fi
28067 done
a848cd7e 28068
74b84332
VS
28069 if test "$ac_find_includes" != "" ; then
28070 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28071echo "${ECHO_T}found in $ac_find_includes" >&6
28072
28073 if test "x$ac_find_includes" = "x/usr/include"; then
28074 ac_path_to_include=""
28075 else
28076 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28077 result=$?
28078 if test $result = 0; then
28079 ac_path_to_include=""
28080 else
28081 ac_path_to_include=" -I$ac_find_includes"
28082 fi
a848cd7e
SC
28083 fi
28084
74b84332
VS
28085 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28086 else
28087 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28088/* confdefs.h. */
28089_ACEOF
28090cat confdefs.h >>conftest.$ac_ext
28091cat >>conftest.$ac_ext <<_ACEOF
28092/* end confdefs.h. */
28093
74b84332
VS
28094 #include <Xm/Xm.h>
28095
a848cd7e
SC
28096int
28097main ()
28098{
28099
74b84332
VS
28100 int version;
28101 version = xmUseVersion;
28102
a848cd7e
SC
28103 ;
28104 return 0;
28105}
28106_ACEOF
74b84332
VS
28107rm -f conftest.$ac_objext
28108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28109 (eval $ac_compile) 2>conftest.er1
a848cd7e 28110 ac_status=$?
ac1cb8d3
VS
28111 grep -v '^ *+' conftest.er1 >conftest.err
28112 rm -f conftest.er1
28113 cat conftest.err >&5
a848cd7e
SC
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); } &&
8c539582 28116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28119 ac_status=$?
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; } &&
74b84332 28122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124 (eval $ac_try) 2>&5
28125 ac_status=$?
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); }; }; then
74b84332
VS
28128
28129 echo "$as_me:$LINENO: result: found in default search path" >&5
28130echo "${ECHO_T}found in default search path" >&6
28131 COMPILED_X_PROGRAM=1
28132
a848cd7e
SC
28133else
28134 echo "$as_me: failed program was:" >&5
28135sed 's/^/| /' conftest.$ac_ext >&5
28136
a848cd7e 28137
74b84332
VS
28138 echo "$as_me:$LINENO: result: no" >&5
28139echo "${ECHO_T}no" >&6
28140 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
28141echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
28142 { (exit 1); exit 1; }; }
a848cd7e 28143
a848cd7e 28144
a848cd7e 28145fi
74b84332
VS
28146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28147 fi
28148
28149 if test "$COMPILED_X_PROGRAM" = 0; then
28150 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28151echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28152
28153ac_find_libraries=
28154for ac_dir in $SEARCH_LIB /usr/lib;
28155 do
28156 for ac_extension in a so sl dylib; do
28157 if test -f "$ac_dir/libXm.$ac_extension"; then
28158 ac_find_libraries=$ac_dir
28159 break 2
a848cd7e 28160 fi
74b84332
VS
28161 done
28162 done
a848cd7e 28163
74b84332
VS
28164 if test "$ac_find_libraries" != "" ; then
28165 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28166echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28167
74b84332
VS
28168
28169 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28170 result=$?
28171 if test $result = 0; then
28172 ac_path_to_link=""
a848cd7e 28173 else
74b84332
VS
28174 ac_path_to_link=" -L$ac_find_libraries"
28175 fi
28176
28177 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28178 else
28179 save_CFLAGS=$CFLAGS
28180 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28181
28182 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28183/* confdefs.h. */
28184_ACEOF
28185cat confdefs.h >>conftest.$ac_ext
28186cat >>conftest.$ac_ext <<_ACEOF
28187/* end confdefs.h. */
28188
74b84332
VS
28189 #include <Xm/Xm.h>
28190
a848cd7e
SC
28191int
28192main ()
28193{
74b84332
VS
28194
28195 int version;
28196 version = xmUseVersion;
28197
a848cd7e
SC
28198 ;
28199 return 0;
28200}
28201_ACEOF
74b84332
VS
28202rm -f conftest.$ac_objext
28203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28204 (eval $ac_compile) 2>conftest.er1
a848cd7e 28205 ac_status=$?
ac1cb8d3
VS
28206 grep -v '^ *+' conftest.er1 >conftest.err
28207 rm -f conftest.er1
28208 cat conftest.err >&5
a848cd7e
SC
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } &&
8c539582 28211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28213 (eval $ac_try) 2>&5
28214 ac_status=$?
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); }; } &&
74b84332 28217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28219 (eval $ac_try) 2>&5
28220 ac_status=$?
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); }; }; then
74b84332
VS
28223
28224 echo "$as_me:$LINENO: result: found in default search path" >&5
28225echo "${ECHO_T}found in default search path" >&6
28226 COMPILED_X_PROGRAM=1
28227
a848cd7e
SC
28228else
28229 echo "$as_me: failed program was:" >&5
28230sed 's/^/| /' conftest.$ac_ext >&5
28231
74b84332
VS
28232
28233 echo "$as_me:$LINENO: result: no" >&5
28234echo "${ECHO_T}no" >&6
28235 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28236echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28237 { (exit 1); exit 1; }; }
28238
28239
28240fi
28241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28242
28243 CFLAGS=$save_CFLAGS
28244 fi
28245 fi
28246
28247 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28248echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28249 libp_link=""
28250 libsm_ice_link=""
28251 libs_found=0
28252 for libp in "" " -lXp"; do
28253 if test "$libs_found" = "0"; then
28254 for libsm_ice in "" " -lSM -lICE"; do
28255 if test "$libs_found" = "0"; then
28256 save_LIBS="$LIBS"
28257 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28258 save_CFLAGS=$CFLAGS
28259 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28260
28261 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28262/* confdefs.h. */
28263_ACEOF
28264cat confdefs.h >>conftest.$ac_ext
28265cat >>conftest.$ac_ext <<_ACEOF
28266/* end confdefs.h. */
28267
74b84332
VS
28268 #include <Xm/Xm.h>
28269 #include <Xm/List.h>
28270
a848cd7e
SC
28271int
28272main ()
28273{
74b84332
VS
28274
28275 XmString string = NULL;
28276 Widget w = NULL;
28277 int position = 0;
28278 XmListAddItem(w, string, position);
28279
a848cd7e
SC
28280 ;
28281 return 0;
28282}
28283_ACEOF
28284rm -f conftest.$ac_objext conftest$ac_exeext
28285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28286 (eval $ac_link) 2>conftest.er1
a848cd7e 28287 ac_status=$?
ac1cb8d3
VS
28288 grep -v '^ *+' conftest.er1 >conftest.err
28289 rm -f conftest.er1
28290 cat conftest.err >&5
a848cd7e
SC
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); } &&
8c539582 28293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28295 (eval $ac_try) 2>&5
28296 ac_status=$?
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); }; } &&
28299 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301 (eval $ac_try) 2>&5
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; }; then
28305
28306 libp_link="$libp"
28307 libsm_ice_link="$libsm_ice"
28308 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28309echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28310 libs_found=1
28311
28312else
28313 echo "$as_me: failed program was:" >&5
28314sed 's/^/| /' conftest.$ac_ext >&5
28315
28316
28317
28318fi
ac1cb8d3
VS
28319rm -f conftest.err conftest.$ac_objext \
28320 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28321
28322 LIBS="$save_LIBS"
28323 CFLAGS=$save_CFLAGS
28324 fi
28325 done
28326 fi
28327 done
28328
28329 if test "$libs_found" = "0"; then
28330 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28331echo "${ECHO_T}can't find the right libraries" >&6
28332 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28333echo "$as_me: error: can't link a simple motif program" >&2;}
28334 { (exit 1); exit 1; }; }
28335 fi
28336
28337 save_CFLAGS=$CFLAGS
28338 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28339 echo "$as_me:$LINENO: checking for Motif 2" >&5
28340echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28341 cat >conftest.$ac_ext <<_ACEOF
28342/* confdefs.h. */
28343_ACEOF
28344cat confdefs.h >>conftest.$ac_ext
28345cat >>conftest.$ac_ext <<_ACEOF
28346/* end confdefs.h. */
28347
28348 #include <Xm/Xm.h>
28349
28350int
28351main ()
28352{
28353
28354 #if XmVersion < 2000
28355 #error "Not Motif 2"
28356 #endif
28357
28358 ;
28359 return 0;
28360}
28361_ACEOF
28362rm -f conftest.$ac_objext
28363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28364 (eval $ac_compile) 2>conftest.er1
a848cd7e 28365 ac_status=$?
ac1cb8d3
VS
28366 grep -v '^ *+' conftest.er1 >conftest.err
28367 rm -f conftest.er1
28368 cat conftest.err >&5
a848cd7e
SC
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); } &&
8c539582 28371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373 (eval $ac_try) 2>&5
28374 ac_status=$?
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; } &&
28377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379 (eval $ac_try) 2>&5
28380 ac_status=$?
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); }; }; then
28383
28384 cat >>confdefs.h <<\_ACEOF
28385#define __WXMOTIF20__ 1
28386_ACEOF
28387
28388 echo "$as_me:$LINENO: result: found" >&5
28389echo "${ECHO_T}found" >&6
28390
28391else
28392 echo "$as_me: failed program was:" >&5
28393sed 's/^/| /' conftest.$ac_ext >&5
28394
28395
28396 cat >>confdefs.h <<\_ACEOF
28397#define __WXMOTIF20__ 0
28398_ACEOF
28399
28400 echo "$as_me:$LINENO: result: not found" >&5
28401echo "${ECHO_T}not found" >&6
28402
28403fi
ac1cb8d3 28404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28405 CFLAGS=$save_CFLAGS
28406
28407 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28408 TOOLKIT=MOTIF
28409 GUIDIST=MOTIF_DIST
28410 fi
28411
74b84332 28412 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28413 if test "$wxUSE_LIBXPM" = "sys"; then
28414 echo "$as_me:$LINENO: checking for Xpm library" >&5
28415echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28416
28417ac_find_libraries=
28418for ac_dir in $SEARCH_LIB /usr/lib;
28419 do
28420 for ac_extension in a so sl dylib; do
28421 if test -f "$ac_dir/libXpm.$ac_extension"; then
28422 ac_find_libraries=$ac_dir
28423 break 2
28424 fi
28425 done
28426 done
28427
28428 if test "$ac_find_libraries" != "" ; then
28429
28430 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28431 result=$?
28432 if test $result = 0; then
28433 ac_path_to_link=""
28434 else
28435 ac_path_to_link=" -L$ac_find_libraries"
28436 fi
28437
28438 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28439 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28440echo "${ECHO_T}found at $ac_find_libraries" >&6
28441
28442 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28443echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28444if test "${wx_cv_x11_xpm_h+set}" = set; then
28445 echo $ECHO_N "(cached) $ECHO_C" >&6
28446else
28447
28448 save_CFLAGS=$CFLAGS
28449 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28450
28451 cat >conftest.$ac_ext <<_ACEOF
28452/* confdefs.h. */
28453_ACEOF
28454cat confdefs.h >>conftest.$ac_ext
28455cat >>conftest.$ac_ext <<_ACEOF
28456/* end confdefs.h. */
28457
28458 #include <X11/xpm.h>
28459
28460int
28461main ()
28462{
28463
28464 int version;
28465 version = XpmLibraryVersion();
28466
28467 ;
28468 return 0;
28469}
28470_ACEOF
28471rm -f conftest.$ac_objext
28472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28473 (eval $ac_compile) 2>conftest.er1
a848cd7e 28474 ac_status=$?
ac1cb8d3
VS
28475 grep -v '^ *+' conftest.er1 >conftest.err
28476 rm -f conftest.er1
28477 cat conftest.err >&5
a848cd7e
SC
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); } &&
8c539582 28480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28482 (eval $ac_try) 2>&5
28483 ac_status=$?
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); }; } &&
28486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488 (eval $ac_try) 2>&5
28489 ac_status=$?
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; }; then
28492 wx_cv_x11_xpm_h=yes
28493else
28494 echo "$as_me: failed program was:" >&5
28495sed 's/^/| /' conftest.$ac_ext >&5
28496
28497wx_cv_x11_xpm_h=no
28498
28499fi
ac1cb8d3 28500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28501
28502 CFLAGS=$save_CFLAGS
28503
28504
28505fi
28506echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28507echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28508
28509 if test $wx_cv_x11_xpm_h = "yes"; then
28510 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28511 cat >>confdefs.h <<\_ACEOF
28512#define wxHAVE_LIB_XPM 1
28513_ACEOF
28514
28515 else
28516 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28517echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28518 fi
28519 fi
28520
28521 fi
28522
28523 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28524echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28525if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28526 echo $ECHO_N "(cached) $ECHO_C" >&6
28527else
28528 ac_check_lib_save_LIBS=$LIBS
28529LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28530cat >conftest.$ac_ext <<_ACEOF
28531/* confdefs.h. */
28532_ACEOF
28533cat confdefs.h >>conftest.$ac_ext
28534cat >>conftest.$ac_ext <<_ACEOF
28535/* end confdefs.h. */
28536
28537/* Override any gcc2 internal prototype to avoid an error. */
28538#ifdef __cplusplus
28539extern "C"
28540#endif
28541/* We use char because int might match the return type of a gcc2
28542 builtin and then its argument prototype would still apply. */
28543char XShapeQueryExtension ();
28544int
28545main ()
28546{
28547XShapeQueryExtension ();
28548 ;
28549 return 0;
28550}
28551_ACEOF
28552rm -f conftest.$ac_objext conftest$ac_exeext
28553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28554 (eval $ac_link) 2>conftest.er1
a848cd7e 28555 ac_status=$?
ac1cb8d3
VS
28556 grep -v '^ *+' conftest.er1 >conftest.err
28557 rm -f conftest.er1
28558 cat conftest.err >&5
a848cd7e
SC
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); } &&
8c539582 28561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28563 (eval $ac_try) 2>&5
28564 ac_status=$?
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); }; } &&
28567 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569 (eval $ac_try) 2>&5
28570 ac_status=$?
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; }; then
28573 ac_cv_lib_Xext_XShapeQueryExtension=yes
28574else
28575 echo "$as_me: failed program was:" >&5
28576sed 's/^/| /' conftest.$ac_ext >&5
28577
28578ac_cv_lib_Xext_XShapeQueryExtension=no
28579fi
ac1cb8d3
VS
28580rm -f conftest.err conftest.$ac_objext \
28581 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28582LIBS=$ac_check_lib_save_LIBS
28583fi
28584echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28585echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28586if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28587
28588 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28589 wxHAVE_XEXT_LIB=1
28590
28591fi
28592
28593
28594 if test "$wxHAVE_XEXT_LIB" = 1; then
28595 save_CFLAGS="$CFLAGS"
28596 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28597
28598 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28599echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28600 cat >conftest.$ac_ext <<_ACEOF
28601/* confdefs.h. */
28602_ACEOF
28603cat confdefs.h >>conftest.$ac_ext
28604cat >>conftest.$ac_ext <<_ACEOF
28605/* end confdefs.h. */
28606
28607 #include <X11/Xlib.h>
28608 #include <X11/extensions/shape.h>
28609
28610int
28611main ()
28612{
28613
28614 int dummy1, dummy2;
28615 XShapeQueryExtension((Display*)NULL,
28616 (int*)NULL, (int*)NULL);
28617
28618 ;
28619 return 0;
28620}
28621_ACEOF
28622rm -f conftest.$ac_objext
28623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28624 (eval $ac_compile) 2>conftest.er1
a848cd7e 28625 ac_status=$?
ac1cb8d3
VS
28626 grep -v '^ *+' conftest.er1 >conftest.err
28627 rm -f conftest.er1
28628 cat conftest.err >&5
a848cd7e
SC
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); } &&
8c539582 28631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28633 (eval $ac_try) 2>&5
28634 ac_status=$?
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); }; } &&
28637 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28639 (eval $ac_try) 2>&5
28640 ac_status=$?
28641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642 (exit $ac_status); }; }; then
28643
28644 cat >>confdefs.h <<\_ACEOF
28645#define HAVE_XSHAPE 1
28646_ACEOF
28647
28648 echo "$as_me:$LINENO: result: found" >&5
28649echo "${ECHO_T}found" >&6
28650
28651else
28652 echo "$as_me: failed program was:" >&5
28653sed 's/^/| /' conftest.$ac_ext >&5
28654
28655
28656 echo "$as_me:$LINENO: result: not found" >&5
28657echo "${ECHO_T}not found" >&6
28658
28659fi
ac1cb8d3 28660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28661 CFLAGS="$save_CFLAGS"
28662
28663 fi
28664 fi
28665
28666 if test "$wxUSE_MAC" = 1; then
28667 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28668echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28669 if test "$GCC" = yes; then
28670 echo "$as_me:$LINENO: result: gcc" >&5
28671echo "${ECHO_T}gcc" >&6
28672 CPPFLAGS_PASCAL="-fpascal-strings"
28673 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28674 echo "$as_me:$LINENO: result: xlc" >&5
28675echo "${ECHO_T}xlc" >&6
28676 CPPFLAGS_PASCAL="-qmacpstr"
28677 else
28678 echo "$as_me:$LINENO: result: none" >&5
28679echo "${ECHO_T}none" >&6
28680 fi
28681
1e9e8aba
DE
28682 if test "x$wxUSE_UNIX" = "xyes"; then
28683 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28684 else
28685 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28686 fi
a848cd7e 28687
a848cd7e
SC
28688 TOOLKIT=MAC
28689 GUIDIST=MACX_DIST
dd21ced8 28690 WXBASEPORT="_carbon"
a848cd7e
SC
28691 fi
28692
28693 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28694 TOOLKIT=COCOA
28695 GUIDIST=COCOA_DIST
28696 fi
28697
28698 if test "$wxUSE_PM" = 1; then
28699 TOOLKIT=PM
de59c161
RD
28700 GUIDIST=PM_DIST
28701 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28702echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28703if test "${wx_cv_spbcdata+set}" = set; then
28704 echo $ECHO_N "(cached) $ECHO_C" >&6
28705else
28706
28707 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28708/* confdefs.h. */
28709_ACEOF
28710cat confdefs.h >>conftest.$ac_ext
28711cat >>conftest.$ac_ext <<_ACEOF
28712/* end confdefs.h. */
28713
28714 #define INCL_PM
28715 #include <os2.h>
28716
28717int
28718main ()
28719{
28720
28721 SPBCDATA test;
28722
28723 ;
28724 return 0;
28725}
28726_ACEOF
28727rm -f conftest.$ac_objext
28728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28729 (eval $ac_compile) 2>conftest.er1
de59c161 28730 ac_status=$?
ac1cb8d3
VS
28731 grep -v '^ *+' conftest.er1 >conftest.err
28732 rm -f conftest.er1
28733 cat conftest.err >&5
de59c161
RD
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } &&
8c539582 28736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28738 (eval $ac_try) 2>&5
28739 ac_status=$?
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); }; } &&
28742 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28745 ac_status=$?
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; }; then
28748 wx_cv_spbcdata=yes
28749else
28750 echo "$as_me: failed program was:" >&5
28751sed 's/^/| /' conftest.$ac_ext >&5
28752
28753wx_cv_spbcdata=no
28754
28755fi
ac1cb8d3 28756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28757
28758
28759fi
28760echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28761echo "${ECHO_T}$wx_cv_spbcdata" >&6
28762
28763 if test $wx_cv_spbcdata = "yes"; then
28764 cat >>confdefs.h <<\_ACEOF
28765#define HAVE_SPBCDATA 1
28766_ACEOF
28767
28768 fi
a848cd7e
SC
28769 fi
28770
28771 if test "$TOOLKIT" = "PM" ; then
28772 TOOLKIT_DIR="os2"
28773 else
28774 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28775 fi
28776
a848cd7e 28777 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28778 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28779 WIDGET_SET=univ
a848cd7e
SC
28780 fi
28781
28782 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28783 DISTDIR="wx\$(TOOLKIT)"
28784else
28785 USE_GUI=0
28786
28787 TOOLKIT_DIR="base"
28788
28789 if test "$USE_WIN32" = 1 ; then
a848cd7e 28790 TOOLKIT="MSW"
a848cd7e
SC
28791 fi
28792
a848cd7e
SC
28793 GUIDIST="BASE_DIST"
28794 DISTDIR="wxBase"
28795fi
28796
28797
28798
28799
28800IODBC_C_SRC=""
28801
28802
28803if test "$TOOLKIT" != "MSW" ; then
28804
28805 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28806
28807 if test "${ac_cv_header_sql_h+set}" = set; then
28808 echo "$as_me:$LINENO: checking for sql.h" >&5
28809echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28810if test "${ac_cv_header_sql_h+set}" = set; then
28811 echo $ECHO_N "(cached) $ECHO_C" >&6
28812fi
28813echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28814echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28815else
28816 # Is the header compilable?
28817echo "$as_me:$LINENO: checking sql.h usability" >&5
28818echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28819cat >conftest.$ac_ext <<_ACEOF
28820/* confdefs.h. */
28821_ACEOF
28822cat confdefs.h >>conftest.$ac_ext
28823cat >>conftest.$ac_ext <<_ACEOF
28824/* end confdefs.h. */
28825$ac_includes_default
28826#include <sql.h>
28827_ACEOF
28828rm -f conftest.$ac_objext
28829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28830 (eval $ac_compile) 2>conftest.er1
a848cd7e 28831 ac_status=$?
ac1cb8d3
VS
28832 grep -v '^ *+' conftest.er1 >conftest.err
28833 rm -f conftest.er1
28834 cat conftest.err >&5
a848cd7e
SC
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); } &&
8c539582 28837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839 (eval $ac_try) 2>&5
28840 ac_status=$?
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; } &&
28843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28845 (eval $ac_try) 2>&5
28846 ac_status=$?
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); }; }; then
28849 ac_header_compiler=yes
28850else
28851 echo "$as_me: failed program was:" >&5
28852sed 's/^/| /' conftest.$ac_ext >&5
28853
28854ac_header_compiler=no
28855fi
ac1cb8d3 28856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28857echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28858echo "${ECHO_T}$ac_header_compiler" >&6
28859
28860# Is the header present?
28861echo "$as_me:$LINENO: checking sql.h presence" >&5
28862echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28863cat >conftest.$ac_ext <<_ACEOF
28864/* confdefs.h. */
28865_ACEOF
28866cat confdefs.h >>conftest.$ac_ext
28867cat >>conftest.$ac_ext <<_ACEOF
28868/* end confdefs.h. */
28869#include <sql.h>
28870_ACEOF
28871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28873 ac_status=$?
28874 grep -v '^ *+' conftest.er1 >conftest.err
28875 rm -f conftest.er1
28876 cat conftest.err >&5
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); } >/dev/null; then
28879 if test -s conftest.err; then
28880 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28882 else
28883 ac_cpp_err=
28884 fi
28885else
28886 ac_cpp_err=yes
28887fi
28888if test -z "$ac_cpp_err"; then
28889 ac_header_preproc=yes
28890else
28891 echo "$as_me: failed program was:" >&5
28892sed 's/^/| /' conftest.$ac_ext >&5
28893
28894 ac_header_preproc=no
28895fi
28896rm -f conftest.err conftest.$ac_ext
28897echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28898echo "${ECHO_T}$ac_header_preproc" >&6
28899
28900# So? What about this header?
ac1cb8d3
VS
28901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28902 yes:no: )
a848cd7e
SC
28903 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28904echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28905 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28906echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28907 ac_header_preproc=yes
a848cd7e 28908 ;;
ac1cb8d3 28909 no:yes:* )
a848cd7e
SC
28910 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28911echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28912 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28913echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28914 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28915echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28917echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28918 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28919echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28920 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28921echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28922 (
28923 cat <<\_ASBOX
ac1cb8d3
VS
28924## ----------------------------------------- ##
28925## Report this to wx-dev@lists.wxwidgets.org ##
28926## ----------------------------------------- ##
a848cd7e
SC
28927_ASBOX
28928 ) |
28929 sed "s/^/$as_me: WARNING: /" >&2
28930 ;;
28931esac
28932echo "$as_me:$LINENO: checking for sql.h" >&5
28933echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28934if test "${ac_cv_header_sql_h+set}" = set; then
28935 echo $ECHO_N "(cached) $ECHO_C" >&6
28936else
28937 ac_cv_header_sql_h=$ac_header_preproc
28938fi
28939echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28940echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28941
28942fi
28943if test $ac_cv_header_sql_h = yes; then
28944 found_sql_h=1
28945fi
28946
28947
28948 if test "x$found_sql_h" = "x1" ; then
28949 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28950echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28951if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28952 echo $ECHO_N "(cached) $ECHO_C" >&6
28953else
28954 ac_check_lib_save_LIBS=$LIBS
28955LIBS="-liodbc $LIBS"
28956cat >conftest.$ac_ext <<_ACEOF
28957/* confdefs.h. */
28958_ACEOF
28959cat confdefs.h >>conftest.$ac_ext
28960cat >>conftest.$ac_ext <<_ACEOF
28961/* end confdefs.h. */
28962
28963/* Override any gcc2 internal prototype to avoid an error. */
28964#ifdef __cplusplus
28965extern "C"
28966#endif
28967/* We use char because int might match the return type of a gcc2
28968 builtin and then its argument prototype would still apply. */
28969char SQLAllocEnv ();
28970int
28971main ()
28972{
28973SQLAllocEnv ();
28974 ;
28975 return 0;
28976}
28977_ACEOF
28978rm -f conftest.$ac_objext conftest$ac_exeext
28979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28980 (eval $ac_link) 2>conftest.er1
a848cd7e 28981 ac_status=$?
ac1cb8d3
VS
28982 grep -v '^ *+' conftest.er1 >conftest.err
28983 rm -f conftest.er1
28984 cat conftest.err >&5
a848cd7e
SC
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); } &&
8c539582 28987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989 (eval $ac_try) 2>&5
28990 ac_status=$?
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); }; } &&
28993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28995 (eval $ac_try) 2>&5
28996 ac_status=$?
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); }; }; then
28999 ac_cv_lib_iodbc_SQLAllocEnv=yes
29000else
29001 echo "$as_me: failed program was:" >&5
29002sed 's/^/| /' conftest.$ac_ext >&5
29003
29004ac_cv_lib_iodbc_SQLAllocEnv=no
29005fi
ac1cb8d3
VS
29006rm -f conftest.err conftest.$ac_objext \
29007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29008LIBS=$ac_check_lib_save_LIBS
29009fi
29010echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29011echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29012if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29013 ODBC_LINK=" -liodbc"
29014else
29015
29016 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29017echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29018if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29019 echo $ECHO_N "(cached) $ECHO_C" >&6
29020else
29021 ac_check_lib_save_LIBS=$LIBS
29022LIBS="-lunixodbc $LIBS"
29023cat >conftest.$ac_ext <<_ACEOF
29024/* confdefs.h. */
29025_ACEOF
29026cat confdefs.h >>conftest.$ac_ext
29027cat >>conftest.$ac_ext <<_ACEOF
29028/* end confdefs.h. */
29029
29030/* Override any gcc2 internal prototype to avoid an error. */
29031#ifdef __cplusplus
29032extern "C"
29033#endif
29034/* We use char because int might match the return type of a gcc2
29035 builtin and then its argument prototype would still apply. */
29036char SQLAllocEnv ();
29037int
29038main ()
29039{
29040SQLAllocEnv ();
29041 ;
29042 return 0;
29043}
29044_ACEOF
29045rm -f conftest.$ac_objext conftest$ac_exeext
29046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29047 (eval $ac_link) 2>conftest.er1
a848cd7e 29048 ac_status=$?
ac1cb8d3
VS
29049 grep -v '^ *+' conftest.er1 >conftest.err
29050 rm -f conftest.er1
29051 cat conftest.err >&5
a848cd7e
SC
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); } &&
8c539582 29054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29056 (eval $ac_try) 2>&5
29057 ac_status=$?
29058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059 (exit $ac_status); }; } &&
29060 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062 (eval $ac_try) 2>&5
29063 ac_status=$?
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); }; }; then
29066 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29067else
29068 echo "$as_me: failed program was:" >&5
29069sed 's/^/| /' conftest.$ac_ext >&5
29070
29071ac_cv_lib_unixodbc_SQLAllocEnv=no
29072fi
ac1cb8d3
VS
29073rm -f conftest.err conftest.$ac_objext \
29074 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29075LIBS=$ac_check_lib_save_LIBS
29076fi
29077echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29078echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29079if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29080 ODBC_LINK=" -lunixodbc"
29081else
29082
29083 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29084echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29085if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29086 echo $ECHO_N "(cached) $ECHO_C" >&6
29087else
29088 ac_check_lib_save_LIBS=$LIBS
29089LIBS="-lodbc $LIBS"
29090cat >conftest.$ac_ext <<_ACEOF
29091/* confdefs.h. */
29092_ACEOF
29093cat confdefs.h >>conftest.$ac_ext
29094cat >>conftest.$ac_ext <<_ACEOF
29095/* end confdefs.h. */
29096
29097/* Override any gcc2 internal prototype to avoid an error. */
29098#ifdef __cplusplus
29099extern "C"
29100#endif
29101/* We use char because int might match the return type of a gcc2
29102 builtin and then its argument prototype would still apply. */
29103char SQLAllocEnv ();
29104int
29105main ()
29106{
29107SQLAllocEnv ();
29108 ;
29109 return 0;
29110}
29111_ACEOF
29112rm -f conftest.$ac_objext conftest$ac_exeext
29113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29114 (eval $ac_link) 2>conftest.er1
a848cd7e 29115 ac_status=$?
ac1cb8d3
VS
29116 grep -v '^ *+' conftest.er1 >conftest.err
29117 rm -f conftest.er1
29118 cat conftest.err >&5
a848cd7e
SC
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } &&
8c539582 29121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29123 (eval $ac_try) 2>&5
29124 ac_status=$?
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); }; } &&
29127 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129 (eval $ac_try) 2>&5
29130 ac_status=$?
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; }; then
29133 ac_cv_lib_odbc_SQLAllocEnv=yes
29134else
29135 echo "$as_me: failed program was:" >&5
29136sed 's/^/| /' conftest.$ac_ext >&5
29137
29138ac_cv_lib_odbc_SQLAllocEnv=no
29139fi
ac1cb8d3
VS
29140rm -f conftest.err conftest.$ac_objext \
29141 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29142LIBS=$ac_check_lib_save_LIBS
29143fi
29144echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29145echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29146if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29147 ODBC_LINK=" -lodbc"
29148fi
29149
29150
29151fi
29152
29153
29154fi
29155
29156 fi
29157 if test "x$ODBC_LINK" = "x" ; then
29158 if test "$wxUSE_ODBC" = "sys" ; then
29159 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29160echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29161 { (exit 1); exit 1; }; }
29162 else
29163 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29164echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29165 wxUSE_ODBC=builtin
29166 fi
29167 else
29168 wxUSE_ODBC=sys
29169 fi
29170 fi
a848cd7e 29171
2da0c077
RD
29172 if test "$wxUSE_ODBC" = "builtin" ; then
29173 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29174#define wxUSE_BUILTIN_IODBC 1
29175_ACEOF
29176
a848cd7e
SC
29177 fi
29178fi
29179
2da0c077
RD
29180if test "$wxUSE_ODBC" != "no" ; then
29181 cat >>confdefs.h <<\_ACEOF
29182#define wxUSE_ODBC 1
29183_ACEOF
29184
29185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29186
29187 WXODBCFLAG="-D_IODBC_"
29188fi
a848cd7e 29189
01cb68df 29190
a848cd7e 29191if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29192 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29193 echo "$as_me:$LINENO: checking for Xinerama" >&5
29194echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29195
29196ac_find_libraries=
29197for ac_dir in $SEARCH_LIB /usr/lib;
29198 do
29199 for ac_extension in a so sl dylib; do
29200 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29201 ac_find_libraries=$ac_dir
29202 break 2
29203 fi
29204 done
29205 done
29206
29207 if test "$ac_find_libraries" != "" ; then
29208
29209 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29210 result=$?
29211 if test $result = 0; then
29212 ac_path_to_link=""
29213 else
29214 ac_path_to_link=" -L$ac_find_libraries"
29215 fi
29216
29217 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29218 LDFLAGS="$LDFLAGS $ac_path_to_link"
29219 fi
29220 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29221 echo "$as_me:$LINENO: result: yes" >&5
29222echo "${ECHO_T}yes" >&6
29223
29224 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29225echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29226
29227ac_find_libraries=
29228for ac_dir in $SEARCH_LIB /usr/lib;
29229 do
29230 for ac_extension in a so sl dylib; do
29231 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29232 ac_find_libraries=$ac_dir
29233 break 2
29234 fi
29235 done
29236 done
29237
29238 if test "$ac_find_libraries" != "" ; then
29239 echo "$as_me:$LINENO: result: yes" >&5
29240echo "${ECHO_T}yes" >&6
29241
29242for ac_header in X11/extensions/xf86vmode.h
29243do
29244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29245echo "$as_me:$LINENO: checking for $ac_header" >&5
29246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29247if eval "test \"\${$as_ac_Header+set}\" = set"; then
29248 echo $ECHO_N "(cached) $ECHO_C" >&6
29249else
29250 cat >conftest.$ac_ext <<_ACEOF
29251/* confdefs.h. */
29252_ACEOF
29253cat confdefs.h >>conftest.$ac_ext
29254cat >>conftest.$ac_ext <<_ACEOF
29255/* end confdefs.h. */
29256
29257 #if HAVE_X11_XLIB_H
29258 #include <X11/Xlib.h>
29259 #endif
29260
29261
29262#include <$ac_header>
29263_ACEOF
29264rm -f conftest.$ac_objext
29265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29266 (eval $ac_compile) 2>conftest.er1
a848cd7e 29267 ac_status=$?
ac1cb8d3
VS
29268 grep -v '^ *+' conftest.er1 >conftest.err
29269 rm -f conftest.er1
29270 cat conftest.err >&5
a848cd7e
SC
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); } &&
8c539582 29273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29275 (eval $ac_try) 2>&5
29276 ac_status=$?
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); }; } &&
29279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29281 (eval $ac_try) 2>&5
29282 ac_status=$?
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); }; }; then
29285 eval "$as_ac_Header=yes"
29286else
29287 echo "$as_me: failed program was:" >&5
29288sed 's/^/| /' conftest.$ac_ext >&5
29289
29290eval "$as_ac_Header=no"
29291fi
ac1cb8d3 29292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29293fi
29294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29296if test `eval echo '${'$as_ac_Header'}'` = yes; then
29297 cat >>confdefs.h <<_ACEOF
29298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29299_ACEOF
29300
29301 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29302
29303fi
29304
29305done
29306
29307 else
29308 echo "$as_me:$LINENO: result: no" >&5
29309echo "${ECHO_T}no" >&6
29310 fi
29311
29312 else
29313 echo "$as_me:$LINENO: result: no" >&5
29314echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29315 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29316echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29317 wxUSE_DISPLAY="no"
29318 fi
01cb68df
RG
29319 elif test "$wxUSE_MSW" = 1; then
29320
29321
29322for ac_header in multimon.h ddraw.h
29323do
29324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29325echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29327if eval "test \"\${$as_ac_Header+set}\" = set"; then
29328 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29329else
5294a27e 29330 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29331/* confdefs.h. */
29332_ACEOF
29333cat confdefs.h >>conftest.$ac_ext
29334cat >>conftest.$ac_ext <<_ACEOF
29335/* end confdefs.h. */
5294a27e
VZ
29336#include <windows.h>
29337
01cb68df
RG
29338#include <$ac_header>
29339_ACEOF
29340rm -f conftest.$ac_objext
29341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29342 (eval $ac_compile) 2>conftest.er1
01cb68df 29343 ac_status=$?
ac1cb8d3
VS
29344 grep -v '^ *+' conftest.er1 >conftest.err
29345 rm -f conftest.er1
29346 cat conftest.err >&5
01cb68df
RG
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); } &&
8c539582 29349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29351 (eval $ac_try) 2>&5
29352 ac_status=$?
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); }; } &&
29355 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29357 (eval $ac_try) 2>&5
29358 ac_status=$?
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); }; }; then
5294a27e 29361 eval "$as_ac_Header=yes"
01cb68df
RG
29362else
29363 echo "$as_me: failed program was:" >&5
29364sed 's/^/| /' conftest.$ac_ext >&5
29365
5294a27e 29366eval "$as_ac_Header=no"
01cb68df 29367fi
ac1cb8d3 29368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29369fi
29370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29372if test `eval echo '${'$as_ac_Header'}'` = yes; then
29373 cat >>confdefs.h <<_ACEOF
29374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29375_ACEOF
29376
29377else
29378
5294a27e
VZ
29379 wxUSE_DISPLAY="no"
29380 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29381echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29382
29383fi
29384
29385done
29386
a848cd7e
SC
29387 fi
29388fi
29389
29390
29391USE_OPENGL=0
29392if test "$wxUSE_OPENGL" = "yes"; then
29393 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29394 OPENGL_LIBS="-framework OpenGL -framework AGL"
29395 elif test "$wxUSE_MSW" = 1; then
29396 OPENGL_LIBS="-lopengl32 -lglu32"
29397 else
29398
29399
29400ac_find_includes=
29401for ac_dir in $SEARCH_INCLUDE /usr/include;
29402 do
29403 if test -f "$ac_dir/GL/gl.h"; then
29404 ac_find_includes=$ac_dir
29405 break
29406 fi
29407 done
29408
29409 if test "$ac_find_includes" != "" ; then
29410 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29411echo "${ECHO_T}found in $ac_find_includes" >&6
29412
29413 if test "x$ac_find_includes" = "x/usr/include"; then
29414 ac_path_to_include=""
29415 else
29416 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29417 result=$?
29418 if test $result = 0; then
29419 ac_path_to_include=""
29420 else
29421 ac_path_to_include=" -I$ac_find_includes"
29422 fi
29423 fi
29424
29425 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29426 fi
29427
29428 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29429 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29430echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29431if test "${ac_cv_header_GL_gl_h+set}" = set; then
29432 echo $ECHO_N "(cached) $ECHO_C" >&6
29433fi
29434echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29435echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29436else
29437 # Is the header compilable?
29438echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29439echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29440cat >conftest.$ac_ext <<_ACEOF
29441/* confdefs.h. */
29442_ACEOF
29443cat confdefs.h >>conftest.$ac_ext
29444cat >>conftest.$ac_ext <<_ACEOF
29445/* end confdefs.h. */
29446$ac_includes_default
29447#include <GL/gl.h>
29448_ACEOF
29449rm -f conftest.$ac_objext
29450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29451 (eval $ac_compile) 2>conftest.er1
a848cd7e 29452 ac_status=$?
ac1cb8d3
VS
29453 grep -v '^ *+' conftest.er1 >conftest.err
29454 rm -f conftest.er1
29455 cat conftest.err >&5
a848cd7e
SC
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); } &&
8c539582 29458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29460 (eval $ac_try) 2>&5
29461 ac_status=$?
29462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); }; } &&
29464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29466 (eval $ac_try) 2>&5
29467 ac_status=$?
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); }; }; then
29470 ac_header_compiler=yes
29471else
29472 echo "$as_me: failed program was:" >&5
29473sed 's/^/| /' conftest.$ac_ext >&5
29474
29475ac_header_compiler=no
29476fi
ac1cb8d3 29477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29479echo "${ECHO_T}$ac_header_compiler" >&6
29480
29481# Is the header present?
29482echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29483echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29484cat >conftest.$ac_ext <<_ACEOF
29485/* confdefs.h. */
29486_ACEOF
29487cat confdefs.h >>conftest.$ac_ext
29488cat >>conftest.$ac_ext <<_ACEOF
29489/* end confdefs.h. */
29490#include <GL/gl.h>
29491_ACEOF
29492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29494 ac_status=$?
29495 grep -v '^ *+' conftest.er1 >conftest.err
29496 rm -f conftest.er1
29497 cat conftest.err >&5
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); } >/dev/null; then
29500 if test -s conftest.err; then
29501 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29503 else
29504 ac_cpp_err=
29505 fi
29506else
29507 ac_cpp_err=yes
29508fi
29509if test -z "$ac_cpp_err"; then
29510 ac_header_preproc=yes
29511else
29512 echo "$as_me: failed program was:" >&5
29513sed 's/^/| /' conftest.$ac_ext >&5
29514
29515 ac_header_preproc=no
29516fi
29517rm -f conftest.err conftest.$ac_ext
29518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29519echo "${ECHO_T}$ac_header_preproc" >&6
29520
29521# So? What about this header?
ac1cb8d3
VS
29522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29523 yes:no: )
a848cd7e
SC
29524 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29525echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29526 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29527echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29528 ac_header_preproc=yes
a848cd7e 29529 ;;
ac1cb8d3 29530 no:yes:* )
a848cd7e
SC
29531 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29532echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29533 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29534echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29535 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29536echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29537 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29538echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29539 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29540echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29541 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29542echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29543 (
29544 cat <<\_ASBOX
ac1cb8d3
VS
29545## ----------------------------------------- ##
29546## Report this to wx-dev@lists.wxwidgets.org ##
29547## ----------------------------------------- ##
a848cd7e
SC
29548_ASBOX
29549 ) |
29550 sed "s/^/$as_me: WARNING: /" >&2
29551 ;;
29552esac
29553echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29554echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29555if test "${ac_cv_header_GL_gl_h+set}" = set; then
29556 echo $ECHO_N "(cached) $ECHO_C" >&6
29557else
29558 ac_cv_header_GL_gl_h=$ac_header_preproc
29559fi
29560echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29561echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29562
29563fi
29564if test $ac_cv_header_GL_gl_h = yes; then
29565
29566 found_gl=0
29567
29568 echo "$as_me:$LINENO: checking for -lGL" >&5
29569echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29570
29571ac_find_libraries=
29572for ac_dir in $SEARCH_LIB /usr/lib;
29573 do
29574 for ac_extension in a so sl dylib; do
29575 if test -f "$ac_dir/libGL.$ac_extension"; then
29576 ac_find_libraries=$ac_dir
29577 break 2
29578 fi
29579 done
29580 done
29581
29582 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29583 echo "$as_me:$LINENO: result: yes" >&5
29584echo "${ECHO_T}yes" >&6
29585
a848cd7e
SC
29586
29587 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29588 result=$?
29589 if test $result = 0; then
29590 ac_path_to_link=""
29591 else
29592 ac_path_to_link=" -L$ac_find_libraries"
29593 fi
29594
29595 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29596 LDFLAGS_GL="$ac_path_to_link"
29597 fi
29598
69120ee4
VZ
29599 echo "$as_me:$LINENO: checking for -lGLU" >&5
29600echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29601
29602ac_find_libraries=
29603for ac_dir in $SEARCH_LIB /usr/lib;
29604 do
29605 for ac_extension in a so sl dylib; do
29606 if test -f "$ac_dir/libGLU.$ac_extension"; then
29607 ac_find_libraries=$ac_dir
29608 break 2
29609 fi
29610 done
29611 done
29612
29613 if test "$ac_find_libraries" != "" ; then
29614
29615 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29616 result=$?
29617 if test $result = 0; then
29618 ac_path_to_link=""
29619 else
29620 ac_path_to_link=" -L$ac_find_libraries"
29621 fi
29622
29623 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29624 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29625 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29626 fi
29627
29628 found_gl=1
29629 OPENGL_LIBS="-lGL -lGLU"
29630 echo "$as_me:$LINENO: result: yes" >&5
29631echo "${ECHO_T}yes" >&6
69120ee4
VZ
29632 else
29633 echo "$as_me:$LINENO: result: no" >&5
29634echo "${ECHO_T}no" >&6
a848cd7e 29635 fi
69120ee4
VZ
29636 else
29637 echo "$as_me:$LINENO: result: no" >&5
29638echo "${ECHO_T}no" >&6
a848cd7e
SC
29639 fi
29640
29641 if test "$found_gl" != 1; then
a848cd7e
SC
29642 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29643echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29644
29645ac_find_libraries=
29646for ac_dir in $SEARCH_LIB /usr/lib;
29647 do
29648 for ac_extension in a so sl dylib; do
29649 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29650 ac_find_libraries=$ac_dir
29651 break 2
29652 fi
29653 done
29654 done
29655
29656 if test "$ac_find_libraries" != "" ; then
29657
29658 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29659 result=$?
29660 if test $result = 0; then
29661 ac_path_to_link=""
29662 else
29663 ac_path_to_link=" -L$ac_find_libraries"
29664 fi
29665
29666 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29667 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29668 echo "$as_me:$LINENO: result: yes" >&5
29669echo "${ECHO_T}yes" >&6
29670 else
29671 echo "$as_me:$LINENO: result: no" >&5
29672echo "${ECHO_T}no" >&6
29673 fi
29674 fi
29675
29676fi
29677
29678
29679
29680 if test "x$OPENGL_LIBS" = "x"; then
29681 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29682echo "$as_me: error: OpenGL libraries not available" >&2;}
29683 { (exit 1); exit 1; }; }
29684 fi
29685 fi
29686
29687 if test "$wxUSE_OPENGL" = "yes"; then
29688 USE_OPENGL=1
29689 cat >>confdefs.h <<\_ACEOF
29690#define wxUSE_OPENGL 1
29691_ACEOF
29692
29693 cat >>confdefs.h <<\_ACEOF
29694#define wxUSE_GLCANVAS 1
29695_ACEOF
29696
29697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29698 fi
29699fi
29700
a848cd7e
SC
29701
29702if test -n "$TOOLKIT" ; then
29703 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29704fi
29705
a848cd7e
SC
29706
29707
29708if test "$wxUSE_SHARED" = "yes"; then
29709 case "${host}" in
29710 *-pc-msdosdjgpp )
29711 wxUSE_SHARED=no
29712 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29713echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29714 ;;
29715 esac
29716fi
29717
a848cd7e 29718if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29719
29720
29721 found_versioning=no
29722
29723
29724 if test $found_versioning = no ; then
29725 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29726echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29727if test "${wx_cv_version_script+set}" = set; then
29728 echo $ECHO_N "(cached) $ECHO_C" >&6
29729else
29730
29731 echo "VER_1 { *; };" >conftest.sym
29732 echo "int main() { return 0; }" >conftest.cpp
29733
29734 if { ac_try='
29735 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29736 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738 (eval $ac_try) 2>&5
29739 ac_status=$?
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); }; } ; then
29742 if test -s conftest.stderr ; then
29743 wx_cv_version_script=no
29744 else
29745 wx_cv_version_script=yes
29746 fi
29747 else
29748 wx_cv_version_script=no
29749 fi
e5d4b470
MW
29750
29751 if test $wx_cv_version_script = yes
29752 then
29753 echo "struct B { virtual ~B() { } }; \
29754 struct D : public B { }; \
29755 void F() { D d; }" > conftest.cpp
29756
29757 if { ac_try='
29758 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29759 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29761 (eval $ac_try) 2>&5
29762 ac_status=$?
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); }; } &&
29765 { ac_try='
29766 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29767 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769 (eval $ac_try) 2>&5
29770 ac_status=$?
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); }; }
29773 then
29774 if { ac_try='
29775 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29776 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29778 (eval $ac_try) 2>&5
29779 ac_status=$?
29780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); }; }
29782 then
29783 wx_cv_version_script=yes
29784 else
29785 wx_cv_version_script=no
29786 fi
29787 fi
29788 fi
29789
a848cd7e 29790 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29791 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29792
29793fi
29794echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29795echo "${ECHO_T}$wx_cv_version_script" >&6
29796 if test $wx_cv_version_script = yes ; then
29797 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29798 fi
29799 fi
29800
29801
29802 case "${host}" in
29803 *-*-linux* | *-*-gnu* )
29804 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29805 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29806 ;;
29807
29808 *-*-solaris2* )
29809 if test "$GCC" = yes ; then
29810 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29811
29812 saveLdflags="$LDFLAGS"
29813 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29814 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29815echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29816 cat >conftest.$ac_ext <<_ACEOF
29817/* confdefs.h. */
29818_ACEOF
29819cat confdefs.h >>conftest.$ac_ext
29820cat >>conftest.$ac_ext <<_ACEOF
29821/* end confdefs.h. */
29822
29823int
29824main ()
29825{
29826
29827 ;
29828 return 0;
29829}
29830_ACEOF
29831rm -f conftest.$ac_objext conftest$ac_exeext
29832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29833 (eval $ac_link) 2>conftest.er1
a848cd7e 29834 ac_status=$?
ac1cb8d3
VS
29835 grep -v '^ *+' conftest.er1 >conftest.err
29836 rm -f conftest.er1
29837 cat conftest.err >&5
a848cd7e
SC
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); } &&
8c539582 29840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842 (eval $ac_try) 2>&5
29843 ac_status=$?
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; } &&
29846 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848 (eval $ac_try) 2>&5
29849 ac_status=$?
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; }; then
29852
29853 echo "$as_me:$LINENO: result: yes" >&5
29854echo "${ECHO_T}yes" >&6
29855 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29856 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29857
29858else
29859 echo "$as_me: failed program was:" >&5
29860sed 's/^/| /' conftest.$ac_ext >&5
29861
29862
29863 echo "$as_me:$LINENO: result: no" >&5
29864echo "${ECHO_T}no" >&6
29865 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29866echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29867 LDFLAGS="$saveLdflags -Wl,-R,/"
29868 cat >conftest.$ac_ext <<_ACEOF
29869/* confdefs.h. */
29870_ACEOF
29871cat confdefs.h >>conftest.$ac_ext
29872cat >>conftest.$ac_ext <<_ACEOF
29873/* end confdefs.h. */
29874
29875int
29876main ()
29877{
29878
29879 ;
29880 return 0;
29881}
29882_ACEOF
29883rm -f conftest.$ac_objext conftest$ac_exeext
29884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29885 (eval $ac_link) 2>conftest.er1
a848cd7e 29886 ac_status=$?
ac1cb8d3
VS
29887 grep -v '^ *+' conftest.er1 >conftest.err
29888 rm -f conftest.er1
29889 cat conftest.err >&5
a848cd7e
SC
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); } &&
8c539582 29892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894 (eval $ac_try) 2>&5
29895 ac_status=$?
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; } &&
29898 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900 (eval $ac_try) 2>&5
29901 ac_status=$?
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; }; then
29904
ffa0583f 29905 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29906echo "${ECHO_T}yes" >&6
ffa0583f
RL
29907 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29908 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29909
a848cd7e
SC
29910else
29911 echo "$as_me: failed program was:" >&5
29912sed 's/^/| /' conftest.$ac_ext >&5
29913
29914
29915 echo "$as_me:$LINENO: result: no" >&5
29916echo "${ECHO_T}no" >&6
29917
29918fi
ac1cb8d3
VS
29919rm -f conftest.err conftest.$ac_objext \
29920 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29921
29922fi
ac1cb8d3
VS
29923rm -f conftest.err conftest.$ac_objext \
29924 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29925 LDFLAGS="$saveLdflags"
29926 else
a848cd7e 29927 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29928 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29929 fi
29930 ;;
29931
29932 powerpc-*-darwin* )
0caebc27
MW
29933 install_name_tool=`which install_name_tool`
29934 if test "$install_name_tool" -a -x "$install_name_tool"; then
29935 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29936 cat <<EOF >change-install-names
a848cd7e
SC
29937#!/bin/sh
29938libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29939inst_cmd="install_name_tool "
29940for i in \${libnames} ; do
29941 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29942done
29943\${inst_cmd} \${3}
29944EOF
0caebc27
MW
29945 chmod +x change-install-names
29946 fi
a848cd7e
SC
29947 ;;
29948
29949 *-*-cygwin* | *-*-mingw32* )
29950 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29951 ;;
29952
81f90336
MW
29953 *-*-hpux* )
29954 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29955 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29956 ;;
29957
a848cd7e 29958 esac
ceec2216 29959
ffa0583f
RL
29960 if test $wxUSE_RPATH = "no"; then
29961 SAMPLES_RPATH_FLAG=''
29962 SAMPLES_RPATH_POSTLINK=''
29963 WXCONFIG_RPATH=''
29964 fi
29965
29966 SHARED=1
29967
29968else
29969
ceec2216
RL
29970 config_linkage_component="-static"
29971 SHARED=0
ffa0583f 29972
ceec2216 29973fi
a848cd7e 29974
a848cd7e 29975
ceec2216
RL
29976UNICODE=0
29977lib_unicode_suffix=
29978WX_CHARTYPE="ansi"
29979if test "$wxUSE_UNICODE" = "yes"; then
29980 lib_unicode_suffix=u
29981 WX_CHARTYPE="unicode"
29982 UNICODE=1
a848cd7e
SC
29983fi
29984
ceec2216
RL
29985lib_debug_suffix=
29986WX_DEBUGTYPE="release"
29987DEBUG_FLAG=0
29988if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29989 lib_debug_suffix=d
29990 WX_DEBUGTYPE="debug"
29991 DEBUG_FLAG=1
29992fi
a848cd7e 29993
ceec2216
RL
29994WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29995WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29996
ceec2216
RL
29997DEBUG_INFO=0
29998if test "$wxUSE_DEBUG_INFO" = "yes"; then
29999 DEBUG_INFO=1
30000fi
a848cd7e 30001
ceec2216 30002WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30003
ceec2216 30004TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30005
ceec2216 30006TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30007
ceec2216
RL
30008if test "$cross_compiling" = "yes"; then
30009 HOST_SUFFIX="-$host_alias"
30010 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30011 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30012fi
30013
dd21ced8 30014WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30015if test "${TOOLKIT_DIR}" = "os2"; then
30016 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30017else
30018 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30019fi
ceec2216
RL
30020
30021
30022
1d1af5ea
DE
30023if test "$wxUSE_COCOA" = 1; then
30024
30025
30026 ac_ext=c
30027ac_cpp='$CPP $CPPFLAGS'
30028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30030ac_compiler_gnu=$ac_cv_c_compiler_gnu
30031
30032ac_ext=m
30033
30034 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30035echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30036 cat >conftest.$ac_ext <<_ACEOF
30037/* confdefs.h. */
30038_ACEOF
30039cat confdefs.h >>conftest.$ac_ext
30040cat >>conftest.$ac_ext <<_ACEOF
30041/* end confdefs.h. */
30042#include <AppKit/NSEvent.h>
30043#include <CoreFoundation/CoreFoundation.h>
30044
30045int
30046main ()
30047{
30048
30049 ;
30050 return 0;
30051}
30052_ACEOF
30053rm -f conftest.$ac_objext
30054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30055 (eval $ac_compile) 2>conftest.er1
30056 ac_status=$?
30057 grep -v '^ *+' conftest.er1 >conftest.err
30058 rm -f conftest.er1
30059 cat conftest.err >&5
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); } &&
8c539582 30062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30064 (eval $ac_try) 2>&5
30065 ac_status=$?
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); }; } &&
30068 { ac_try='test -s conftest.$ac_objext'
30069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30070 (eval $ac_try) 2>&5
30071 ac_status=$?
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); }; }; then
30074 echo "$as_me:$LINENO: result: no" >&5
30075echo "${ECHO_T}no" >&6
30076else
30077 echo "$as_me: failed program was:" >&5
30078sed 's/^/| /' conftest.$ac_ext >&5
30079
30080echo "$as_me:$LINENO: result: yes" >&5
30081echo "${ECHO_T}yes" >&6
30082 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30083echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30084 cat >conftest.$ac_ext <<_ACEOF
30085/* confdefs.h. */
30086_ACEOF
30087cat confdefs.h >>conftest.$ac_ext
30088cat >>conftest.$ac_ext <<_ACEOF
30089/* end confdefs.h. */
30090#define __Point__ 1
30091#include <AppKit/NSEvent.h>
30092#include <CoreFoundation/CoreFoundation.h>
30093
30094int
30095main ()
30096{
30097
30098 ;
30099 return 0;
30100}
30101_ACEOF
30102rm -f conftest.$ac_objext
30103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30104 (eval $ac_compile) 2>conftest.er1
30105 ac_status=$?
30106 grep -v '^ *+' conftest.er1 >conftest.err
30107 rm -f conftest.er1
30108 cat conftest.err >&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); } &&
8c539582 30111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30113 (eval $ac_try) 2>&5
30114 ac_status=$?
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; } &&
30117 { ac_try='test -s conftest.$ac_objext'
30118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30119 (eval $ac_try) 2>&5
30120 ac_status=$?
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; }; then
30123 echo "$as_me:$LINENO: result: yes" >&5
30124echo "${ECHO_T}yes" >&6
30125 cat >>confdefs.h <<\_ACEOF
30126#define __Point__ 1
30127_ACEOF
30128
30129
30130else
30131 echo "$as_me: failed program was:" >&5
30132sed 's/^/| /' conftest.$ac_ext >&5
30133
30134{ { echo "$as_me:$LINENO: error: no
30135See \`config.log' for more details." >&5
30136echo "$as_me: error: no
30137See \`config.log' for more details." >&2;}
30138 { (exit 1); exit 1; }; }
30139
30140fi
30141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30142
30143fi
30144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30145 ac_ext=c
30146ac_cpp='$CPP $CPPFLAGS'
30147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30149ac_compiler_gnu=$ac_cv_c_compiler_gnu
30150
30151fi
30152
a848cd7e 30153if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30154 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30155 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30156
a848cd7e 30157 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30158
30159 # Extract the first word of "Rez", so it can be a program name with args.
30160set dummy Rez; ac_word=$2
30161echo "$as_me:$LINENO: checking for $ac_word" >&5
30162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30163if test "${ac_cv_prog_RESCOMP+set}" = set; then
30164 echo $ECHO_N "(cached) $ECHO_C" >&6
30165else
30166 if test -n "$RESCOMP"; then
30167 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30168else
30169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30170for as_dir in $PATH
30171do
30172 IFS=$as_save_IFS
30173 test -z "$as_dir" && as_dir=.
30174 for ac_exec_ext in '' $ac_executable_extensions; do
30175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30176 ac_cv_prog_RESCOMP="Rez"
30177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30178 break 2
30179 fi
30180done
30181done
30182
30183 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30184fi
30185fi
30186RESCOMP=$ac_cv_prog_RESCOMP
30187if test -n "$RESCOMP"; then
30188 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30189echo "${ECHO_T}$RESCOMP" >&6
30190else
30191 echo "$as_me:$LINENO: result: no" >&5
30192echo "${ECHO_T}no" >&6
30193fi
30194
30195 # Extract the first word of "DeRez", so it can be a program name with args.
30196set dummy DeRez; ac_word=$2
30197echo "$as_me:$LINENO: checking for $ac_word" >&5
30198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30199if test "${ac_cv_prog_DEREZ+set}" = set; then
30200 echo $ECHO_N "(cached) $ECHO_C" >&6
30201else
30202 if test -n "$DEREZ"; then
30203 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30204else
30205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30206for as_dir in $PATH
30207do
30208 IFS=$as_save_IFS
30209 test -z "$as_dir" && as_dir=.
30210 for ac_exec_ext in '' $ac_executable_extensions; do
30211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30212 ac_cv_prog_DEREZ="DeRez"
30213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30214 break 2
30215 fi
30216done
30217done
30218
30219 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30220fi
30221fi
30222DEREZ=$ac_cv_prog_DEREZ
30223if test -n "$DEREZ"; then
30224 echo "$as_me:$LINENO: result: $DEREZ" >&5
30225echo "${ECHO_T}$DEREZ" >&6
30226else
30227 echo "$as_me:$LINENO: result: no" >&5
30228echo "${ECHO_T}no" >&6
30229fi
30230
30231 # Extract the first word of "SetFile", so it can be a program name with args.
30232set dummy SetFile; ac_word=$2
30233echo "$as_me:$LINENO: checking for $ac_word" >&5
30234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30235if test "${ac_cv_prog_SETFILE+set}" = set; then
30236 echo $ECHO_N "(cached) $ECHO_C" >&6
30237else
30238 if test -n "$SETFILE"; then
30239 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30240else
30241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30242for as_dir in $PATH
30243do
30244 IFS=$as_save_IFS
30245 test -z "$as_dir" && as_dir=.
30246 for ac_exec_ext in '' $ac_executable_extensions; do
30247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30248 ac_cv_prog_SETFILE="SetFile"
30249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30250 break 2
30251 fi
30252done
30253done
30254
30255 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30256fi
30257fi
30258SETFILE=$ac_cv_prog_SETFILE
30259if test -n "$SETFILE"; then
30260 echo "$as_me:$LINENO: result: $SETFILE" >&5
30261echo "${ECHO_T}$SETFILE" >&6
30262else
30263 echo "$as_me:$LINENO: result: no" >&5
30264echo "${ECHO_T}no" >&6
30265fi
30266
30267
30268 MACSETFILE="\$(SETFILE)"
30269
30270 if test "$wxUSE_MAC" = 1; then
1a79f136 30271 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30272
1a79f136 30273 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30274 else
30275 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30276 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30277 fi
30278else
ffa0583f
RL
30279 MACSETFILE="@true"
30280 MACRESWXCONFIG="@true"
a848cd7e
SC
30281
30282 if test "$wxUSE_PM" = 1; then
30283 MACRESCOMP="emxbind -ep"
30284 else
ffa0583f 30285 MACRESCOMP="@true"
a848cd7e
SC
30286 fi
30287fi
30288
30289
30290
30291echo "$as_me:$LINENO: checking for mode_t" >&5
30292echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30293if test "${ac_cv_type_mode_t+set}" = set; then
30294 echo $ECHO_N "(cached) $ECHO_C" >&6
30295else
30296 cat >conftest.$ac_ext <<_ACEOF
30297/* confdefs.h. */
30298_ACEOF
30299cat confdefs.h >>conftest.$ac_ext
30300cat >>conftest.$ac_ext <<_ACEOF
30301/* end confdefs.h. */
30302$ac_includes_default
30303int
30304main ()
30305{
30306if ((mode_t *) 0)
30307 return 0;
30308if (sizeof (mode_t))
30309 return 0;
30310 ;
30311 return 0;
30312}
30313_ACEOF
30314rm -f conftest.$ac_objext
30315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30316 (eval $ac_compile) 2>conftest.er1
a848cd7e 30317 ac_status=$?
ac1cb8d3
VS
30318 grep -v '^ *+' conftest.er1 >conftest.err
30319 rm -f conftest.er1
30320 cat conftest.err >&5
a848cd7e
SC
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); } &&
8c539582 30323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30325 (eval $ac_try) 2>&5
30326 ac_status=$?
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); }; } &&
30329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30331 (eval $ac_try) 2>&5
30332 ac_status=$?
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); }; }; then
30335 ac_cv_type_mode_t=yes
30336else
30337 echo "$as_me: failed program was:" >&5
30338sed 's/^/| /' conftest.$ac_ext >&5
30339
30340ac_cv_type_mode_t=no
30341fi
ac1cb8d3 30342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30343fi
30344echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30345echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30346if test $ac_cv_type_mode_t = yes; then
30347 :
30348else
30349
30350cat >>confdefs.h <<_ACEOF
30351#define mode_t int
30352_ACEOF
30353
30354fi
30355
30356echo "$as_me:$LINENO: checking for off_t" >&5
30357echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30358if test "${ac_cv_type_off_t+set}" = set; then
30359 echo $ECHO_N "(cached) $ECHO_C" >&6
30360else
30361 cat >conftest.$ac_ext <<_ACEOF
30362/* confdefs.h. */
30363_ACEOF
30364cat confdefs.h >>conftest.$ac_ext
30365cat >>conftest.$ac_ext <<_ACEOF
30366/* end confdefs.h. */
30367$ac_includes_default
30368int
30369main ()
30370{
30371if ((off_t *) 0)
30372 return 0;
30373if (sizeof (off_t))
30374 return 0;
30375 ;
30376 return 0;
30377}
30378_ACEOF
30379rm -f conftest.$ac_objext
30380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30381 (eval $ac_compile) 2>conftest.er1
a848cd7e 30382 ac_status=$?
ac1cb8d3
VS
30383 grep -v '^ *+' conftest.er1 >conftest.err
30384 rm -f conftest.er1
30385 cat conftest.err >&5
a848cd7e
SC
30386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387 (exit $ac_status); } &&
8c539582 30388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30390 (eval $ac_try) 2>&5
30391 ac_status=$?
30392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393 (exit $ac_status); }; } &&
30394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30396 (eval $ac_try) 2>&5
30397 ac_status=$?
30398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399 (exit $ac_status); }; }; then
30400 ac_cv_type_off_t=yes
30401else
30402 echo "$as_me: failed program was:" >&5
30403sed 's/^/| /' conftest.$ac_ext >&5
30404
30405ac_cv_type_off_t=no
30406fi
ac1cb8d3 30407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30408fi
30409echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30410echo "${ECHO_T}$ac_cv_type_off_t" >&6
30411if test $ac_cv_type_off_t = yes; then
30412 :
30413else
30414
30415cat >>confdefs.h <<_ACEOF
30416#define off_t long
30417_ACEOF
30418
30419fi
30420
30421echo "$as_me:$LINENO: checking for pid_t" >&5
30422echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30423if test "${ac_cv_type_pid_t+set}" = set; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30425else
30426 cat >conftest.$ac_ext <<_ACEOF
30427/* confdefs.h. */
30428_ACEOF
30429cat confdefs.h >>conftest.$ac_ext
30430cat >>conftest.$ac_ext <<_ACEOF
30431/* end confdefs.h. */
30432$ac_includes_default
30433int
30434main ()
30435{
30436if ((pid_t *) 0)
30437 return 0;
30438if (sizeof (pid_t))
30439 return 0;
30440 ;
30441 return 0;
30442}
30443_ACEOF
30444rm -f conftest.$ac_objext
30445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30446 (eval $ac_compile) 2>conftest.er1
a848cd7e 30447 ac_status=$?
ac1cb8d3
VS
30448 grep -v '^ *+' conftest.er1 >conftest.err
30449 rm -f conftest.er1
30450 cat conftest.err >&5
a848cd7e
SC
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); } &&
8c539582 30453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30455 (eval $ac_try) 2>&5
30456 ac_status=$?
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); }; } &&
30459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30461 (eval $ac_try) 2>&5
30462 ac_status=$?
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); }; }; then
30465 ac_cv_type_pid_t=yes
30466else
30467 echo "$as_me: failed program was:" >&5
30468sed 's/^/| /' conftest.$ac_ext >&5
30469
30470ac_cv_type_pid_t=no
30471fi
ac1cb8d3 30472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30473fi
30474echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30475echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30476if test $ac_cv_type_pid_t = yes; then
30477 :
30478else
30479
30480cat >>confdefs.h <<_ACEOF
30481#define pid_t int
30482_ACEOF
30483
30484fi
30485
30486echo "$as_me:$LINENO: checking for size_t" >&5
30487echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30488if test "${ac_cv_type_size_t+set}" = set; then
30489 echo $ECHO_N "(cached) $ECHO_C" >&6
30490else
30491 cat >conftest.$ac_ext <<_ACEOF
30492/* confdefs.h. */
30493_ACEOF
30494cat confdefs.h >>conftest.$ac_ext
30495cat >>conftest.$ac_ext <<_ACEOF
30496/* end confdefs.h. */
30497$ac_includes_default
30498int
30499main ()
30500{
30501if ((size_t *) 0)
30502 return 0;
30503if (sizeof (size_t))
30504 return 0;
30505 ;
30506 return 0;
30507}
30508_ACEOF
30509rm -f conftest.$ac_objext
30510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30511 (eval $ac_compile) 2>conftest.er1
a848cd7e 30512 ac_status=$?
ac1cb8d3
VS
30513 grep -v '^ *+' conftest.er1 >conftest.err
30514 rm -f conftest.er1
30515 cat conftest.err >&5
a848cd7e
SC
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); } &&
8c539582 30518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520 (eval $ac_try) 2>&5
30521 ac_status=$?
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 (exit $ac_status); }; } &&
30524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30526 (eval $ac_try) 2>&5
30527 ac_status=$?
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); }; }; then
30530 ac_cv_type_size_t=yes
30531else
30532 echo "$as_me: failed program was:" >&5
30533sed 's/^/| /' conftest.$ac_ext >&5
30534
30535ac_cv_type_size_t=no
30536fi
ac1cb8d3 30537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30538fi
30539echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30540echo "${ECHO_T}$ac_cv_type_size_t" >&6
30541if test $ac_cv_type_size_t = yes; then
30542 :
30543else
30544
30545cat >>confdefs.h <<_ACEOF
30546#define size_t unsigned
30547_ACEOF
30548
30549fi
30550
30551echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30552echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30553if test "${ac_cv_type_uid_t+set}" = set; then
30554 echo $ECHO_N "(cached) $ECHO_C" >&6
30555else
30556 cat >conftest.$ac_ext <<_ACEOF
30557/* confdefs.h. */
30558_ACEOF
30559cat confdefs.h >>conftest.$ac_ext
30560cat >>conftest.$ac_ext <<_ACEOF
30561/* end confdefs.h. */
30562#include <sys/types.h>
30563
30564_ACEOF
30565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30566 $EGREP "uid_t" >/dev/null 2>&1; then
30567 ac_cv_type_uid_t=yes
30568else
30569 ac_cv_type_uid_t=no
30570fi
30571rm -f conftest*
30572
30573fi
30574echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30575echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30576if test $ac_cv_type_uid_t = no; then
30577
30578cat >>confdefs.h <<\_ACEOF
30579#define uid_t int
30580_ACEOF
30581
30582
30583cat >>confdefs.h <<\_ACEOF
30584#define gid_t int
30585_ACEOF
30586
30587fi
30588
30589
d51253e8
RL
30590echo "$as_me:$LINENO: checking for ssize_t" >&5
30591echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30592if test "${ac_cv_type_ssize_t+set}" = set; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594else
30595 cat >conftest.$ac_ext <<_ACEOF
30596/* confdefs.h. */
30597_ACEOF
30598cat confdefs.h >>conftest.$ac_ext
30599cat >>conftest.$ac_ext <<_ACEOF
30600/* end confdefs.h. */
30601$ac_includes_default
30602int
30603main ()
30604{
30605if ((ssize_t *) 0)
30606 return 0;
30607if (sizeof (ssize_t))
30608 return 0;
30609 ;
30610 return 0;
30611}
30612_ACEOF
30613rm -f conftest.$ac_objext
30614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30615 (eval $ac_compile) 2>conftest.er1
30616 ac_status=$?
30617 grep -v '^ *+' conftest.er1 >conftest.err
30618 rm -f conftest.er1
30619 cat conftest.err >&5
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621 (exit $ac_status); } &&
8c539582 30622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30624 (eval $ac_try) 2>&5
30625 ac_status=$?
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); }; } &&
30628 { ac_try='test -s conftest.$ac_objext'
30629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630 (eval $ac_try) 2>&5
30631 ac_status=$?
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); }; }; then
30634 ac_cv_type_ssize_t=yes
30635else
30636 echo "$as_me: failed program was:" >&5
30637sed 's/^/| /' conftest.$ac_ext >&5
30638
30639ac_cv_type_ssize_t=no
30640fi
30641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30642fi
30643echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30644echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30645if test $ac_cv_type_ssize_t = yes; then
30646
30647cat >>confdefs.h <<_ACEOF
30648#define HAVE_SSIZE_T 1
30649_ACEOF
30650
30651
30652fi
30653
30654
a848cd7e
SC
30655
30656
30657ac_ext=cc
30658ac_cpp='$CXXCPP $CPPFLAGS'
30659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30662
30663echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30664echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30665if test "${wx_cv_size_t_is_uint+set}" = set; then
30666 echo $ECHO_N "(cached) $ECHO_C" >&6
30667else
30668
30669 cat >conftest.$ac_ext <<_ACEOF
30670/* confdefs.h. */
30671_ACEOF
30672cat confdefs.h >>conftest.$ac_ext
30673cat >>conftest.$ac_ext <<_ACEOF
30674/* end confdefs.h. */
30675#include <stddef.h>
30676int
30677main ()
30678{
30679
30680 return 0; }
30681
30682 struct Foo { void foo(size_t); void foo(unsigned int); };
30683
30684 int bar() {
30685
30686 ;
30687 return 0;
30688}
30689_ACEOF
30690rm -f conftest.$ac_objext
30691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30692 (eval $ac_compile) 2>conftest.er1
a848cd7e 30693 ac_status=$?
ac1cb8d3
VS
30694 grep -v '^ *+' conftest.er1 >conftest.err
30695 rm -f conftest.er1
30696 cat conftest.err >&5
a848cd7e
SC
30697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30698 (exit $ac_status); } &&
8c539582 30699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30701 (eval $ac_try) 2>&5
30702 ac_status=$?
30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704 (exit $ac_status); }; } &&
30705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30707 (eval $ac_try) 2>&5
30708 ac_status=$?
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); }; }; then
30711 wx_cv_size_t_is_uint=no
30712else
30713 echo "$as_me: failed program was:" >&5
30714sed 's/^/| /' conftest.$ac_ext >&5
30715
30716wx_cv_size_t_is_uint=yes
30717
30718fi
ac1cb8d3 30719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30720
30721
30722fi
30723echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30724echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30725
30726if test "$wx_cv_size_t_is_uint" = "yes"; then
30727 cat >>confdefs.h <<\_ACEOF
30728#define wxSIZE_T_IS_UINT 1
30729_ACEOF
30730
30731else
30732 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30733echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30734if test "${wx_cv_size_t_is_ulong+set}" = set; then
30735 echo $ECHO_N "(cached) $ECHO_C" >&6
30736else
30737 cat >conftest.$ac_ext <<_ACEOF
30738/* confdefs.h. */
30739_ACEOF
30740cat confdefs.h >>conftest.$ac_ext
30741cat >>conftest.$ac_ext <<_ACEOF
30742/* end confdefs.h. */
30743#include <stddef.h>
30744int
30745main ()
30746{
30747
30748 return 0; }
30749
30750 struct Foo { void foo(size_t); void foo(unsigned long); };
30751
30752 int bar() {
30753
30754 ;
30755 return 0;
30756}
30757_ACEOF
30758rm -f conftest.$ac_objext
30759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30760 (eval $ac_compile) 2>conftest.er1
a848cd7e 30761 ac_status=$?
ac1cb8d3
VS
30762 grep -v '^ *+' conftest.er1 >conftest.err
30763 rm -f conftest.er1
30764 cat conftest.err >&5
a848cd7e
SC
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); } &&
8c539582 30767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30769 (eval $ac_try) 2>&5
30770 ac_status=$?
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); }; } &&
30773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30775 (eval $ac_try) 2>&5
30776 ac_status=$?
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); }; }; then
30779 wx_cv_size_t_is_ulong=no
30780else
30781 echo "$as_me: failed program was:" >&5
30782sed 's/^/| /' conftest.$ac_ext >&5
30783
30784wx_cv_size_t_is_ulong=yes
30785
30786fi
ac1cb8d3 30787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30788
30789fi
30790echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30791echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30792
30793 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30794 cat >>confdefs.h <<\_ACEOF
30795#define wxSIZE_T_IS_ULONG 1
30796_ACEOF
30797
30798 fi
30799fi
30800
30801ac_ext=c
30802ac_cpp='$CPP $CPPFLAGS'
30803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30805ac_compiler_gnu=$ac_cv_c_compiler_gnu
30806
30807
30808
30809echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30810echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30811if test "${wx_cv_struct_pw_gecos+set}" = set; then
30812 echo $ECHO_N "(cached) $ECHO_C" >&6
30813else
30814
30815 cat >conftest.$ac_ext <<_ACEOF
30816/* confdefs.h. */
30817_ACEOF
30818cat confdefs.h >>conftest.$ac_ext
30819cat >>conftest.$ac_ext <<_ACEOF
30820/* end confdefs.h. */
30821#include <pwd.h>
30822int
30823main ()
30824{
30825
30826 char *p;
30827 struct passwd *pw;
30828 p = pw->pw_gecos;
30829
30830 ;
30831 return 0;
30832}
30833_ACEOF
30834rm -f conftest.$ac_objext
30835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30836 (eval $ac_compile) 2>conftest.er1
a848cd7e 30837 ac_status=$?
ac1cb8d3
VS
30838 grep -v '^ *+' conftest.er1 >conftest.err
30839 rm -f conftest.er1
30840 cat conftest.err >&5
a848cd7e
SC
30841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30842 (exit $ac_status); } &&
8c539582 30843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30845 (eval $ac_try) 2>&5
30846 ac_status=$?
30847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30848 (exit $ac_status); }; } &&
30849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30851 (eval $ac_try) 2>&5
30852 ac_status=$?
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); }; }; then
30855
30856 wx_cv_struct_pw_gecos=yes
30857
30858else
30859 echo "$as_me: failed program was:" >&5
30860sed 's/^/| /' conftest.$ac_ext >&5
30861
30862
30863 wx_cv_struct_pw_gecos=no
30864
30865
30866fi
ac1cb8d3 30867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30868
30869
30870fi
30871echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30872echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30873
30874if test "$wx_cv_struct_pw_gecos" = "yes"; then
30875 cat >>confdefs.h <<\_ACEOF
30876#define HAVE_PW_GECOS 1
30877_ACEOF
30878
30879fi
30880
30881
47a7e797 30882if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30883 cat >>confdefs.h <<\_ACEOF
30884#define wxUSE_WCHAR_T 1
30885_ACEOF
30886
30887
30888 WCSLEN_FOUND=0
30889 WCHAR_LINK=
30890
30891for ac_func in wcslen
30892do
30893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30894echo "$as_me:$LINENO: checking for $ac_func" >&5
30895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30896if eval "test \"\${$as_ac_var+set}\" = set"; then
30897 echo $ECHO_N "(cached) $ECHO_C" >&6
30898else
30899 cat >conftest.$ac_ext <<_ACEOF
30900/* confdefs.h. */
30901_ACEOF
30902cat confdefs.h >>conftest.$ac_ext
30903cat >>conftest.$ac_ext <<_ACEOF
30904/* end confdefs.h. */
ac1cb8d3
VS
30905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30907#define $ac_func innocuous_$ac_func
30908
a848cd7e
SC
30909/* System header to define __stub macros and hopefully few prototypes,
30910 which can conflict with char $ac_func (); below.
30911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30912 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30913
a848cd7e
SC
30914#ifdef __STDC__
30915# include <limits.h>
30916#else
30917# include <assert.h>
30918#endif
ac1cb8d3
VS
30919
30920#undef $ac_func
30921
a848cd7e
SC
30922/* Override any gcc2 internal prototype to avoid an error. */
30923#ifdef __cplusplus
30924extern "C"
30925{
30926#endif
30927/* We use char because int might match the return type of a gcc2
30928 builtin and then its argument prototype would still apply. */
30929char $ac_func ();
30930/* The GNU C library defines this for functions which it implements
30931 to always fail with ENOSYS. Some functions are actually named
30932 something starting with __ and the normal name is an alias. */
30933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30934choke me
30935#else
30936char (*f) () = $ac_func;
30937#endif
30938#ifdef __cplusplus
30939}
30940#endif
30941
30942int
30943main ()
30944{
30945return f != $ac_func;
30946 ;
30947 return 0;
30948}
30949_ACEOF
30950rm -f conftest.$ac_objext conftest$ac_exeext
30951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30952 (eval $ac_link) 2>conftest.er1
a848cd7e 30953 ac_status=$?
ac1cb8d3
VS
30954 grep -v '^ *+' conftest.er1 >conftest.err
30955 rm -f conftest.er1
30956 cat conftest.err >&5
a848cd7e
SC
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); } &&
8c539582 30959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30961 (eval $ac_try) 2>&5
30962 ac_status=$?
30963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964 (exit $ac_status); }; } &&
30965 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30967 (eval $ac_try) 2>&5
30968 ac_status=$?
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); }; }; then
30971 eval "$as_ac_var=yes"
30972else
30973 echo "$as_me: failed program was:" >&5
30974sed 's/^/| /' conftest.$ac_ext >&5
30975
30976eval "$as_ac_var=no"
30977fi
ac1cb8d3
VS
30978rm -f conftest.err conftest.$ac_objext \
30979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30980fi
30981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30982echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30983if test `eval echo '${'$as_ac_var'}'` = yes; then
30984 cat >>confdefs.h <<_ACEOF
30985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30986_ACEOF
30987 WCSLEN_FOUND=1
30988fi
30989done
30990
30991
30992 if test "$WCSLEN_FOUND" = 0; then
30993 if test "$TOOLKIT" = "MSW"; then
30994 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30995echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30996if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30997 echo $ECHO_N "(cached) $ECHO_C" >&6
30998else
30999 ac_check_lib_save_LIBS=$LIBS
31000LIBS="-lmsvcrt $LIBS"
31001cat >conftest.$ac_ext <<_ACEOF
31002/* confdefs.h. */
31003_ACEOF
31004cat confdefs.h >>conftest.$ac_ext
31005cat >>conftest.$ac_ext <<_ACEOF
31006/* end confdefs.h. */
31007
31008/* Override any gcc2 internal prototype to avoid an error. */
31009#ifdef __cplusplus
31010extern "C"
31011#endif
31012/* We use char because int might match the return type of a gcc2
31013 builtin and then its argument prototype would still apply. */
31014char wcslen ();
31015int
31016main ()
31017{
31018wcslen ();
31019 ;
31020 return 0;
31021}
31022_ACEOF
31023rm -f conftest.$ac_objext conftest$ac_exeext
31024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31025 (eval $ac_link) 2>conftest.er1
a848cd7e 31026 ac_status=$?
ac1cb8d3
VS
31027 grep -v '^ *+' conftest.er1 >conftest.err
31028 rm -f conftest.er1
31029 cat conftest.err >&5
a848cd7e
SC
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); } &&
8c539582 31032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31034 (eval $ac_try) 2>&5
31035 ac_status=$?
31036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037 (exit $ac_status); }; } &&
31038 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31040 (eval $ac_try) 2>&5
31041 ac_status=$?
31042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043 (exit $ac_status); }; }; then
31044 ac_cv_lib_msvcrt_wcslen=yes
31045else
31046 echo "$as_me: failed program was:" >&5
31047sed 's/^/| /' conftest.$ac_ext >&5
31048
31049ac_cv_lib_msvcrt_wcslen=no
31050fi
ac1cb8d3
VS
31051rm -f conftest.err conftest.$ac_objext \
31052 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31053LIBS=$ac_check_lib_save_LIBS
31054fi
31055echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31056echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31057if test $ac_cv_lib_msvcrt_wcslen = yes; then
31058 WCHAR_OK=1
31059fi
31060
31061 else
31062 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31063echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31064if test "${ac_cv_lib_w_wcslen+set}" = set; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31066else
31067 ac_check_lib_save_LIBS=$LIBS
31068LIBS="-lw $LIBS"
31069cat >conftest.$ac_ext <<_ACEOF
31070/* confdefs.h. */
31071_ACEOF
31072cat confdefs.h >>conftest.$ac_ext
31073cat >>conftest.$ac_ext <<_ACEOF
31074/* end confdefs.h. */
31075
31076/* Override any gcc2 internal prototype to avoid an error. */
31077#ifdef __cplusplus
31078extern "C"
31079#endif
31080/* We use char because int might match the return type of a gcc2
31081 builtin and then its argument prototype would still apply. */
31082char wcslen ();
31083int
31084main ()
31085{
31086wcslen ();
31087 ;
31088 return 0;
31089}
31090_ACEOF
31091rm -f conftest.$ac_objext conftest$ac_exeext
31092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31093 (eval $ac_link) 2>conftest.er1
a848cd7e 31094 ac_status=$?
ac1cb8d3
VS
31095 grep -v '^ *+' conftest.er1 >conftest.err
31096 rm -f conftest.er1
31097 cat conftest.err >&5
a848cd7e
SC
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); } &&
8c539582 31100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102 (eval $ac_try) 2>&5
31103 ac_status=$?
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; } &&
31106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31108 (eval $ac_try) 2>&5
31109 ac_status=$?
31110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31111 (exit $ac_status); }; }; then
31112 ac_cv_lib_w_wcslen=yes
31113else
31114 echo "$as_me: failed program was:" >&5
31115sed 's/^/| /' conftest.$ac_ext >&5
31116
31117ac_cv_lib_w_wcslen=no
31118fi
ac1cb8d3
VS
31119rm -f conftest.err conftest.$ac_objext \
31120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31121LIBS=$ac_check_lib_save_LIBS
31122fi
31123echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31124echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31125if test $ac_cv_lib_w_wcslen = yes; then
31126
31127 WCHAR_LINK=" -lw"
31128 WCSLEN_FOUND=1
31129
31130fi
31131
31132 fi
31133 fi
31134
31135 if test "$WCSLEN_FOUND" = 1; then
31136 cat >>confdefs.h <<\_ACEOF
31137#define HAVE_WCSLEN 1
31138_ACEOF
31139
31140 fi
31141
81f90336 31142 if test "$USE_HPUX" = 1; then
473276a9
VS
31143 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31144 fi
31145
a848cd7e
SC
31146
31147for ac_func in wcsrtombs
31148do
31149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31150echo "$as_me:$LINENO: checking for $ac_func" >&5
31151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31152if eval "test \"\${$as_ac_var+set}\" = set"; then
31153 echo $ECHO_N "(cached) $ECHO_C" >&6
31154else
31155 cat >conftest.$ac_ext <<_ACEOF
31156/* confdefs.h. */
31157_ACEOF
31158cat confdefs.h >>conftest.$ac_ext
31159cat >>conftest.$ac_ext <<_ACEOF
31160/* end confdefs.h. */
ac1cb8d3
VS
31161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31163#define $ac_func innocuous_$ac_func
31164
a848cd7e
SC
31165/* System header to define __stub macros and hopefully few prototypes,
31166 which can conflict with char $ac_func (); below.
31167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31168 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31169
a848cd7e
SC
31170#ifdef __STDC__
31171# include <limits.h>
31172#else
31173# include <assert.h>
31174#endif
ac1cb8d3
VS
31175
31176#undef $ac_func
31177
a848cd7e
SC
31178/* Override any gcc2 internal prototype to avoid an error. */
31179#ifdef __cplusplus
31180extern "C"
31181{
31182#endif
31183/* We use char because int might match the return type of a gcc2
31184 builtin and then its argument prototype would still apply. */
31185char $ac_func ();
31186/* The GNU C library defines this for functions which it implements
31187 to always fail with ENOSYS. Some functions are actually named
31188 something starting with __ and the normal name is an alias. */
31189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31190choke me
31191#else
31192char (*f) () = $ac_func;
31193#endif
31194#ifdef __cplusplus
31195}
31196#endif
31197
31198int
31199main ()
31200{
31201return f != $ac_func;
31202 ;
31203 return 0;
31204}
31205_ACEOF
31206rm -f conftest.$ac_objext conftest$ac_exeext
31207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31208 (eval $ac_link) 2>conftest.er1
a848cd7e 31209 ac_status=$?
ac1cb8d3
VS
31210 grep -v '^ *+' conftest.er1 >conftest.err
31211 rm -f conftest.er1
31212 cat conftest.err >&5
a848cd7e
SC
31213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214 (exit $ac_status); } &&
8c539582 31215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31217 (eval $ac_try) 2>&5
31218 ac_status=$?
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); }; } &&
31221 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31223 (eval $ac_try) 2>&5
31224 ac_status=$?
31225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226 (exit $ac_status); }; }; then
31227 eval "$as_ac_var=yes"
31228else
31229 echo "$as_me: failed program was:" >&5
31230sed 's/^/| /' conftest.$ac_ext >&5
31231
31232eval "$as_ac_var=no"
31233fi
ac1cb8d3
VS
31234rm -f conftest.err conftest.$ac_objext \
31235 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31236fi
31237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31238echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31239if test `eval echo '${'$as_ac_var'}'` = yes; then
31240 cat >>confdefs.h <<_ACEOF
31241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31242_ACEOF
31243
31244fi
31245done
31246
31247else
31248 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31249echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31250fi
31251
31252
31253
31254ac_ext=cc
31255ac_cpp='$CXXCPP $CPPFLAGS'
31256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31259
31260
31261
31262for ac_func in vsnprintf
31263do
31264as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31265echo "$as_me:$LINENO: checking for $ac_func" >&5
31266echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31267if eval "test \"\${$as_ac_var+set}\" = set"; then
31268 echo $ECHO_N "(cached) $ECHO_C" >&6
31269else
31270 cat >conftest.$ac_ext <<_ACEOF
31271/* confdefs.h. */
31272_ACEOF
31273cat confdefs.h >>conftest.$ac_ext
31274cat >>conftest.$ac_ext <<_ACEOF
31275/* end confdefs.h. */
ac1cb8d3
VS
31276/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31278#define $ac_func innocuous_$ac_func
31279
a848cd7e
SC
31280/* System header to define __stub macros and hopefully few prototypes,
31281 which can conflict with char $ac_func (); below.
31282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31283 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31284
a848cd7e
SC
31285#ifdef __STDC__
31286# include <limits.h>
31287#else
31288# include <assert.h>
31289#endif
ac1cb8d3
VS
31290
31291#undef $ac_func
31292
a848cd7e
SC
31293/* Override any gcc2 internal prototype to avoid an error. */
31294#ifdef __cplusplus
31295extern "C"
31296{
31297#endif
31298/* We use char because int might match the return type of a gcc2
31299 builtin and then its argument prototype would still apply. */
31300char $ac_func ();
31301/* The GNU C library defines this for functions which it implements
31302 to always fail with ENOSYS. Some functions are actually named
31303 something starting with __ and the normal name is an alias. */
31304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31305choke me
31306#else
31307char (*f) () = $ac_func;
31308#endif
31309#ifdef __cplusplus
31310}
31311#endif
31312
31313int
31314main ()
31315{
31316return f != $ac_func;
31317 ;
31318 return 0;
31319}
31320_ACEOF
31321rm -f conftest.$ac_objext conftest$ac_exeext
31322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31323 (eval $ac_link) 2>conftest.er1
a848cd7e 31324 ac_status=$?
ac1cb8d3
VS
31325 grep -v '^ *+' conftest.er1 >conftest.err
31326 rm -f conftest.er1
31327 cat conftest.err >&5
a848cd7e
SC
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); } &&
8c539582 31330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31332 (eval $ac_try) 2>&5
31333 ac_status=$?
31334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335 (exit $ac_status); }; } &&
31336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31338 (eval $ac_try) 2>&5
31339 ac_status=$?
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); }; }; then
31342 eval "$as_ac_var=yes"
31343else
31344 echo "$as_me: failed program was:" >&5
31345sed 's/^/| /' conftest.$ac_ext >&5
31346
31347eval "$as_ac_var=no"
31348fi
ac1cb8d3
VS
31349rm -f conftest.err conftest.$ac_objext \
31350 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31351fi
31352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31353echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31354if test `eval echo '${'$as_ac_var'}'` = yes; then
31355 cat >>confdefs.h <<_ACEOF
31356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31357_ACEOF
31358
31359fi
31360done
31361
31362
31363if test "$ac_cv_func_vsnprintf" = "yes"; then
31364 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31365echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31366if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31367 echo $ECHO_N "(cached) $ECHO_C" >&6
31368else
31369
31370 cat >conftest.$ac_ext <<_ACEOF
31371/* confdefs.h. */
31372_ACEOF
31373cat confdefs.h >>conftest.$ac_ext
31374cat >>conftest.$ac_ext <<_ACEOF
31375/* end confdefs.h. */
31376
31377 #include <stdio.h>
31378 #include <stdarg.h>
31379
31380int
31381main ()
31382{
31383
31384 char *buf;
31385 va_list ap;
31386 vsnprintf(buf, 10u, "%s", ap);
31387
31388 ;
31389 return 0;
31390}
31391_ACEOF
31392rm -f conftest.$ac_objext
31393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31394 (eval $ac_compile) 2>conftest.er1
a848cd7e 31395 ac_status=$?
ac1cb8d3
VS
31396 grep -v '^ *+' conftest.er1 >conftest.err
31397 rm -f conftest.er1
31398 cat conftest.err >&5
a848cd7e
SC
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); } &&
8c539582 31401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31403 (eval $ac_try) 2>&5
31404 ac_status=$?
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; } &&
31407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409 (eval $ac_try) 2>&5
31410 ac_status=$?
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; }; then
31413 wx_cv_func_vsnprintf_decl=yes
31414else
31415 echo "$as_me: failed program was:" >&5
31416sed 's/^/| /' conftest.$ac_ext >&5
31417
c122b164
DE
31418
31419 cat >conftest.$ac_ext <<_ACEOF
31420/* confdefs.h. */
31421_ACEOF
31422cat confdefs.h >>conftest.$ac_ext
31423cat >>conftest.$ac_ext <<_ACEOF
31424/* end confdefs.h. */
31425
31426 #include <stdio.h>
31427 #include <stdarg.h>
31428 using namespace std;
31429
31430int
31431main ()
31432{
31433
31434 char *buf;
31435 va_list ap;
31436 vsnprintf(buf, 10u, "%s", ap);
31437
31438 ;
31439 return 0;
31440}
31441_ACEOF
31442rm -f conftest.$ac_objext
31443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31444 (eval $ac_compile) 2>conftest.er1
31445 ac_status=$?
31446 grep -v '^ *+' conftest.er1 >conftest.err
31447 rm -f conftest.er1
31448 cat conftest.err >&5
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); } &&
8c539582 31451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31453 (eval $ac_try) 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; } &&
31457 { ac_try='test -s conftest.$ac_objext'
31458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31459 (eval $ac_try) 2>&5
31460 ac_status=$?
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; }; then
31463 wx_cv_func_vsnprintf_decl=yes
31464else
31465 echo "$as_me: failed program was:" >&5
31466sed 's/^/| /' conftest.$ac_ext >&5
31467
a848cd7e
SC
31468wx_cv_func_vsnprintf_decl=no
31469
31470fi
ac1cb8d3 31471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31472
31473
c122b164
DE
31474fi
31475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31476
31477
a848cd7e
SC
31478fi
31479echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31480echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31481
31482 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31483 cat >>confdefs.h <<\_ACEOF
31484#define HAVE_VSNPRINTF_DECL 1
31485_ACEOF
31486
31487 fi
31488fi
31489
31490if test "$wxUSE_UNICODE" = yes; then
31491
31492
31493
fbe47c7b
VS
31494
31495
31496
31497for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31498do
31499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31500echo "$as_me:$LINENO: checking for $ac_func" >&5
31501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31502if eval "test \"\${$as_ac_var+set}\" = set"; then
31503 echo $ECHO_N "(cached) $ECHO_C" >&6
31504else
31505 cat >conftest.$ac_ext <<_ACEOF
31506/* confdefs.h. */
31507_ACEOF
31508cat confdefs.h >>conftest.$ac_ext
31509cat >>conftest.$ac_ext <<_ACEOF
31510/* end confdefs.h. */
ac1cb8d3
VS
31511/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31513#define $ac_func innocuous_$ac_func
31514
a848cd7e
SC
31515/* System header to define __stub macros and hopefully few prototypes,
31516 which can conflict with char $ac_func (); below.
31517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31518 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31519
a848cd7e
SC
31520#ifdef __STDC__
31521# include <limits.h>
31522#else
31523# include <assert.h>
31524#endif
ac1cb8d3
VS
31525
31526#undef $ac_func
31527
a848cd7e
SC
31528/* Override any gcc2 internal prototype to avoid an error. */
31529#ifdef __cplusplus
31530extern "C"
31531{
31532#endif
31533/* We use char because int might match the return type of a gcc2
31534 builtin and then its argument prototype would still apply. */
31535char $ac_func ();
31536/* The GNU C library defines this for functions which it implements
31537 to always fail with ENOSYS. Some functions are actually named
31538 something starting with __ and the normal name is an alias. */
31539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31540choke me
31541#else
31542char (*f) () = $ac_func;
31543#endif
31544#ifdef __cplusplus
31545}
31546#endif
31547
31548int
31549main ()
31550{
31551return f != $ac_func;
31552 ;
31553 return 0;
31554}
31555_ACEOF
31556rm -f conftest.$ac_objext conftest$ac_exeext
31557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31558 (eval $ac_link) 2>conftest.er1
a848cd7e 31559 ac_status=$?
ac1cb8d3
VS
31560 grep -v '^ *+' conftest.er1 >conftest.err
31561 rm -f conftest.er1
31562 cat conftest.err >&5
a848cd7e
SC
31563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564 (exit $ac_status); } &&
8c539582 31565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31567 (eval $ac_try) 2>&5
31568 ac_status=$?
31569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570 (exit $ac_status); }; } &&
31571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31573 (eval $ac_try) 2>&5
31574 ac_status=$?
31575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31576 (exit $ac_status); }; }; then
31577 eval "$as_ac_var=yes"
31578else
31579 echo "$as_me: failed program was:" >&5
31580sed 's/^/| /' conftest.$ac_ext >&5
31581
31582eval "$as_ac_var=no"
31583fi
ac1cb8d3
VS
31584rm -f conftest.err conftest.$ac_objext \
31585 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31586fi
31587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31588echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31589if test `eval echo '${'$as_ac_var'}'` = yes; then
31590 cat >>confdefs.h <<_ACEOF
31591#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31592_ACEOF
31593
31594fi
31595done
31596
31597
31598 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31599echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31600 cat >conftest.$ac_ext <<_ACEOF
31601/* confdefs.h. */
31602_ACEOF
31603cat confdefs.h >>conftest.$ac_ext
31604cat >>conftest.$ac_ext <<_ACEOF
31605/* end confdefs.h. */
31606#include <wchar.h>
31607int
31608main ()
31609{
31610&_vsnwprintf;
31611 ;
31612 return 0;
31613}
31614_ACEOF
31615rm -f conftest.$ac_objext
31616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31617 (eval $ac_compile) 2>conftest.er1
a848cd7e 31618 ac_status=$?
ac1cb8d3
VS
31619 grep -v '^ *+' conftest.er1 >conftest.err
31620 rm -f conftest.er1
31621 cat conftest.err >&5
a848cd7e
SC
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); } &&
8c539582 31624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31626 (eval $ac_try) 2>&5
31627 ac_status=$?
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); }; } &&
31630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31632 (eval $ac_try) 2>&5
31633 ac_status=$?
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); }; }; then
31636 echo "$as_me:$LINENO: result: yes" >&5
31637echo "${ECHO_T}yes" >&6
31638 cat >>confdefs.h <<\_ACEOF
31639#define HAVE__VSNWPRINTF 1
31640_ACEOF
31641
31642else
31643 echo "$as_me: failed program was:" >&5
31644sed 's/^/| /' conftest.$ac_ext >&5
31645
31646echo "$as_me:$LINENO: result: no" >&5
31647echo "${ECHO_T}no" >&6
31648fi
ac1cb8d3 31649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31650fi
31651
31652ac_ext=c
31653ac_cpp='$CPP $CPPFLAGS'
31654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31656ac_compiler_gnu=$ac_cv_c_compiler_gnu
31657
31658
31659
31660
31661if test "$TOOLKIT" != "MSW"; then
31662
31663
31664
31665
31666ac_ext=cc
31667ac_cpp='$CXXCPP $CPPFLAGS'
31668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31671
31672
31673
31674
31675# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31676if test "${with_libiconv_prefix+set}" = set; then
31677 withval="$with_libiconv_prefix"
31678
31679 for dir in `echo "$withval" | tr : ' '`; do
31680 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31681 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31682 done
31683
31684fi;
31685
31686 echo "$as_me:$LINENO: checking for iconv" >&5
31687echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31688if test "${am_cv_func_iconv+set}" = set; then
31689 echo $ECHO_N "(cached) $ECHO_C" >&6
31690else
31691
31692 am_cv_func_iconv="no, consider installing GNU libiconv"
31693 am_cv_lib_iconv=no
31694 cat >conftest.$ac_ext <<_ACEOF
31695/* confdefs.h. */
31696_ACEOF
31697cat confdefs.h >>conftest.$ac_ext
31698cat >>conftest.$ac_ext <<_ACEOF
31699/* end confdefs.h. */
31700#include <stdlib.h>
31701#include <iconv.h>
31702int
31703main ()
31704{
31705iconv_t cd = iconv_open("","");
31706 iconv(cd,NULL,NULL,NULL,NULL);
31707 iconv_close(cd);
31708 ;
31709 return 0;
31710}
31711_ACEOF
31712rm -f conftest.$ac_objext conftest$ac_exeext
31713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31714 (eval $ac_link) 2>conftest.er1
a848cd7e 31715 ac_status=$?
ac1cb8d3
VS
31716 grep -v '^ *+' conftest.er1 >conftest.err
31717 rm -f conftest.er1
31718 cat conftest.err >&5
a848cd7e
SC
31719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720 (exit $ac_status); } &&
8c539582 31721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723 (eval $ac_try) 2>&5
31724 ac_status=$?
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); }; } &&
31727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31729 (eval $ac_try) 2>&5
31730 ac_status=$?
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); }; }; then
31733 am_cv_func_iconv=yes
31734else
31735 echo "$as_me: failed program was:" >&5
31736sed 's/^/| /' conftest.$ac_ext >&5
31737
31738fi
ac1cb8d3
VS
31739rm -f conftest.err conftest.$ac_objext \
31740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31741 if test "$am_cv_func_iconv" != yes; then
31742 am_save_LIBS="$LIBS"
31743 LIBS="$LIBS -liconv"
31744 cat >conftest.$ac_ext <<_ACEOF
31745/* confdefs.h. */
31746_ACEOF
31747cat confdefs.h >>conftest.$ac_ext
31748cat >>conftest.$ac_ext <<_ACEOF
31749/* end confdefs.h. */
31750#include <stdlib.h>
31751#include <iconv.h>
31752int
31753main ()
31754{
31755iconv_t cd = iconv_open("","");
31756 iconv(cd,NULL,NULL,NULL,NULL);
31757 iconv_close(cd);
31758 ;
31759 return 0;
31760}
31761_ACEOF
31762rm -f conftest.$ac_objext conftest$ac_exeext
31763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31764 (eval $ac_link) 2>conftest.er1
a848cd7e 31765 ac_status=$?
ac1cb8d3
VS
31766 grep -v '^ *+' conftest.er1 >conftest.err
31767 rm -f conftest.er1
31768 cat conftest.err >&5
a848cd7e
SC
31769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770 (exit $ac_status); } &&
8c539582 31771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31773 (eval $ac_try) 2>&5
31774 ac_status=$?
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); }; } &&
31777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31779 (eval $ac_try) 2>&5
31780 ac_status=$?
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); }; }; then
31783 am_cv_lib_iconv=yes
31784 am_cv_func_iconv=yes
31785else
31786 echo "$as_me: failed program was:" >&5
31787sed 's/^/| /' conftest.$ac_ext >&5
31788
31789fi
ac1cb8d3
VS
31790rm -f conftest.err conftest.$ac_objext \
31791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31792 LIBS="$am_save_LIBS"
31793 fi
31794
31795fi
31796echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31797echo "${ECHO_T}$am_cv_func_iconv" >&6
31798 if test "$am_cv_func_iconv" = yes; then
31799
31800cat >>confdefs.h <<\_ACEOF
31801#define HAVE_ICONV 1
31802_ACEOF
31803
31804 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31805echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31806if test "${wx_cv_func_iconv_const+set}" = set; then
31807 echo $ECHO_N "(cached) $ECHO_C" >&6
31808else
31809 cat >conftest.$ac_ext <<_ACEOF
31810/* confdefs.h. */
31811_ACEOF
31812cat confdefs.h >>conftest.$ac_ext
31813cat >>conftest.$ac_ext <<_ACEOF
31814/* end confdefs.h. */
31815
31816#include <stdlib.h>
31817#include <iconv.h>
31818extern
31819#ifdef __cplusplus
31820"C"
31821#endif
31822#if defined(__STDC__) || defined(__cplusplus)
31823size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31824#else
31825size_t iconv();
31826#endif
31827
31828int
31829main ()
31830{
31831
31832 ;
31833 return 0;
31834}
31835_ACEOF
31836rm -f conftest.$ac_objext
31837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31838 (eval $ac_compile) 2>conftest.er1
a848cd7e 31839 ac_status=$?
ac1cb8d3
VS
31840 grep -v '^ *+' conftest.er1 >conftest.err
31841 rm -f conftest.er1
31842 cat conftest.err >&5
a848cd7e
SC
31843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844 (exit $ac_status); } &&
8c539582 31845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847 (eval $ac_try) 2>&5
31848 ac_status=$?
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; } &&
31851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31853 (eval $ac_try) 2>&5
31854 ac_status=$?
31855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856 (exit $ac_status); }; }; then
31857 wx_cv_func_iconv_const="no"
31858else
31859 echo "$as_me: failed program was:" >&5
31860sed 's/^/| /' conftest.$ac_ext >&5
31861
31862wx_cv_func_iconv_const="yes"
31863
31864fi
ac1cb8d3 31865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31866
31867fi
31868echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31869echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31870
31871 iconv_const=
31872 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31873 iconv_const="const"
31874 fi
31875
31876
31877cat >>confdefs.h <<_ACEOF
31878#define ICONV_CONST $iconv_const
31879_ACEOF
31880
31881 fi
31882 LIBICONV=
31883 if test "$am_cv_lib_iconv" = yes; then
31884 LIBICONV="-liconv"
31885 fi
31886
31887
31888LIBS="$LIBICONV $LIBS"
31889ac_ext=c
31890ac_cpp='$CPP $CPPFLAGS'
31891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31893ac_compiler_gnu=$ac_cv_c_compiler_gnu
31894
31895
31896if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31897
31898for ac_func in sigaction
31899do
31900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31901echo "$as_me:$LINENO: checking for $ac_func" >&5
31902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31903if eval "test \"\${$as_ac_var+set}\" = set"; then
31904 echo $ECHO_N "(cached) $ECHO_C" >&6
31905else
31906 cat >conftest.$ac_ext <<_ACEOF
31907/* confdefs.h. */
31908_ACEOF
31909cat confdefs.h >>conftest.$ac_ext
31910cat >>conftest.$ac_ext <<_ACEOF
31911/* end confdefs.h. */
ac1cb8d3
VS
31912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31914#define $ac_func innocuous_$ac_func
31915
a848cd7e
SC
31916/* System header to define __stub macros and hopefully few prototypes,
31917 which can conflict with char $ac_func (); below.
31918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31919 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31920
a848cd7e
SC
31921#ifdef __STDC__
31922# include <limits.h>
31923#else
31924# include <assert.h>
31925#endif
ac1cb8d3
VS
31926
31927#undef $ac_func
31928
a848cd7e
SC
31929/* Override any gcc2 internal prototype to avoid an error. */
31930#ifdef __cplusplus
31931extern "C"
31932{
31933#endif
31934/* We use char because int might match the return type of a gcc2
31935 builtin and then its argument prototype would still apply. */
31936char $ac_func ();
31937/* The GNU C library defines this for functions which it implements
31938 to always fail with ENOSYS. Some functions are actually named
31939 something starting with __ and the normal name is an alias. */
31940#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31941choke me
31942#else
31943char (*f) () = $ac_func;
31944#endif
31945#ifdef __cplusplus
31946}
31947#endif
31948
31949int
31950main ()
31951{
31952return f != $ac_func;
31953 ;
31954 return 0;
31955}
31956_ACEOF
31957rm -f conftest.$ac_objext conftest$ac_exeext
31958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31959 (eval $ac_link) 2>conftest.er1
a848cd7e 31960 ac_status=$?
ac1cb8d3
VS
31961 grep -v '^ *+' conftest.er1 >conftest.err
31962 rm -f conftest.er1
31963 cat conftest.err >&5
a848cd7e
SC
31964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 (exit $ac_status); } &&
8c539582 31966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31968 (eval $ac_try) 2>&5
31969 ac_status=$?
31970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971 (exit $ac_status); }; } &&
31972 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31974 (eval $ac_try) 2>&5
31975 ac_status=$?
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); }; }; then
31978 eval "$as_ac_var=yes"
31979else
31980 echo "$as_me: failed program was:" >&5
31981sed 's/^/| /' conftest.$ac_ext >&5
31982
31983eval "$as_ac_var=no"
31984fi
ac1cb8d3
VS
31985rm -f conftest.err conftest.$ac_objext \
31986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31987fi
31988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31989echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31990if test `eval echo '${'$as_ac_var'}'` = yes; then
31991 cat >>confdefs.h <<_ACEOF
31992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31993_ACEOF
31994
31995fi
31996done
31997
31998
31999 if test "$ac_cv_func_sigaction" = "no"; then
32000 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32001echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32002 wxUSE_ON_FATAL_EXCEPTION=no
32003 fi
32004
32005 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32006
32007
32008 ac_ext=cc
32009ac_cpp='$CXXCPP $CPPFLAGS'
32010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32013
32014
32015 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32016echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32017if test "${wx_cv_type_sa_handler+set}" = set; then
32018 echo $ECHO_N "(cached) $ECHO_C" >&6
32019else
32020
32021 cat >conftest.$ac_ext <<_ACEOF
32022/* confdefs.h. */
32023_ACEOF
32024cat confdefs.h >>conftest.$ac_ext
32025cat >>conftest.$ac_ext <<_ACEOF
32026/* end confdefs.h. */
32027#include <signal.h>
32028int
32029main ()
32030{
32031
32032 extern void testSigHandler(int);
32033
32034 struct sigaction sa;
32035 sa.sa_handler = testSigHandler;
32036
32037 ;
32038 return 0;
32039}
32040_ACEOF
32041rm -f conftest.$ac_objext
32042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32043 (eval $ac_compile) 2>conftest.er1
a848cd7e 32044 ac_status=$?
ac1cb8d3
VS
32045 grep -v '^ *+' conftest.er1 >conftest.err
32046 rm -f conftest.er1
32047 cat conftest.err >&5
a848cd7e
SC
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); } &&
8c539582 32050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32052 (eval $ac_try) 2>&5
32053 ac_status=$?
32054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055 (exit $ac_status); }; } &&
32056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32058 (eval $ac_try) 2>&5
32059 ac_status=$?
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); }; }; then
32062
32063 wx_cv_type_sa_handler=int
32064
32065else
32066 echo "$as_me: failed program was:" >&5
32067sed 's/^/| /' conftest.$ac_ext >&5
32068
32069
32070 wx_cv_type_sa_handler=void
32071
32072fi
ac1cb8d3 32073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32074
32075fi
32076echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32077echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32078
32079 ac_ext=c
32080ac_cpp='$CPP $CPPFLAGS'
32081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32083ac_compiler_gnu=$ac_cv_c_compiler_gnu
32084
32085
32086 cat >>confdefs.h <<_ACEOF
32087#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32088_ACEOF
32089
32090 fi
32091fi
32092
eaff0f0d
VZ
32093if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32094
32095
32096 ac_ext=cc
32097ac_cpp='$CXXCPP $CPPFLAGS'
32098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32101
32102
32103 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32104echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32105if test "${wx_cv_func_backtrace+set}" = set; then
32106 echo $ECHO_N "(cached) $ECHO_C" >&6
32107else
32108
32109 cat >conftest.$ac_ext <<_ACEOF
32110/* confdefs.h. */
32111_ACEOF
32112cat confdefs.h >>conftest.$ac_ext
32113cat >>conftest.$ac_ext <<_ACEOF
32114/* end confdefs.h. */
32115#include <execinfo.h>
32116int
32117main ()
32118{
32119
32120 void *trace[1];
32121 char **messages;
32122
32123 backtrace(trace, 1);
32124 messages = backtrace_symbols(trace, 1);
32125
32126 ;
32127 return 0;
32128}
32129_ACEOF
32130rm -f conftest.$ac_objext
32131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32132 (eval $ac_compile) 2>conftest.er1
32133 ac_status=$?
32134 grep -v '^ *+' conftest.er1 >conftest.err
32135 rm -f conftest.er1
32136 cat conftest.err >&5
32137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138 (exit $ac_status); } &&
8c539582 32139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32141 (eval $ac_try) 2>&5
32142 ac_status=$?
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); }; } &&
32145 { ac_try='test -s conftest.$ac_objext'
32146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32147 (eval $ac_try) 2>&5
32148 ac_status=$?
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); }; }; then
32151 wx_cv_func_backtrace=yes
32152else
32153 echo "$as_me: failed program was:" >&5
32154sed 's/^/| /' conftest.$ac_ext >&5
32155
32156wx_cv_func_backtrace=no
32157
32158fi
32159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32160
32161
32162fi
32163echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32164echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32165
32166
32167 if test "$wx_cv_func_backtrace" = "no"; then
32168 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32169echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32170 wxUSE_STACKWALKER=no
32171 else
32172 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32173echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32174if test "${wx_cv_func_cxa_demangle+set}" = set; then
32175 echo $ECHO_N "(cached) $ECHO_C" >&6
32176else
32177
32178 cat >conftest.$ac_ext <<_ACEOF
32179/* confdefs.h. */
32180_ACEOF
32181cat confdefs.h >>conftest.$ac_ext
32182cat >>conftest.$ac_ext <<_ACEOF
32183/* end confdefs.h. */
32184#include <cxxabi.h>
32185int
32186main ()
32187{
32188
32189 int rc;
32190 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32191
32192 ;
32193 return 0;
32194}
32195_ACEOF
dfe0c803
JS
32196rm -f conftest.$ac_objext conftest$ac_exeext
32197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32198 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32199 ac_status=$?
32200 grep -v '^ *+' conftest.er1 >conftest.err
32201 rm -f conftest.er1
32202 cat conftest.err >&5
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); } &&
8c539582 32205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32207 (eval $ac_try) 2>&5
32208 ac_status=$?
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); }; } &&
dfe0c803 32211 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32213 (eval $ac_try) 2>&5
32214 ac_status=$?
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; }; then
32217 wx_cv_func_cxa_demangle=yes
32218else
32219 echo "$as_me: failed program was:" >&5
32220sed 's/^/| /' conftest.$ac_ext >&5
32221
32222wx_cv_func_cxa_demangle=no
32223
32224fi
dfe0c803
JS
32225rm -f conftest.err conftest.$ac_objext \
32226 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32227
32228
32229fi
32230echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32231echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32232
32233 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32234 cat >>confdefs.h <<\_ACEOF
32235#define HAVE_CXA_DEMANGLE 1
32236_ACEOF
32237
32238 fi
32239 fi
32240
32241 ac_ext=c
32242ac_cpp='$CPP $CPPFLAGS'
32243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32245ac_compiler_gnu=$ac_cv_c_compiler_gnu
32246
32247fi
32248
898beab1
DE
32249if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32250 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32251echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32252 wxUSE_STACKWALKER=no
32253fi
32254
32255
a848cd7e
SC
32256
32257
32258for ac_func in mkstemp mktemp
32259do
32260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32261echo "$as_me:$LINENO: checking for $ac_func" >&5
32262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32263if eval "test \"\${$as_ac_var+set}\" = set"; then
32264 echo $ECHO_N "(cached) $ECHO_C" >&6
32265else
32266 cat >conftest.$ac_ext <<_ACEOF
32267/* confdefs.h. */
32268_ACEOF
32269cat confdefs.h >>conftest.$ac_ext
32270cat >>conftest.$ac_ext <<_ACEOF
32271/* end confdefs.h. */
ac1cb8d3
VS
32272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32274#define $ac_func innocuous_$ac_func
32275
a848cd7e
SC
32276/* System header to define __stub macros and hopefully few prototypes,
32277 which can conflict with char $ac_func (); below.
32278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32279 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32280
a848cd7e
SC
32281#ifdef __STDC__
32282# include <limits.h>
32283#else
32284# include <assert.h>
32285#endif
ac1cb8d3
VS
32286
32287#undef $ac_func
32288
a848cd7e
SC
32289/* Override any gcc2 internal prototype to avoid an error. */
32290#ifdef __cplusplus
32291extern "C"
32292{
32293#endif
32294/* We use char because int might match the return type of a gcc2
32295 builtin and then its argument prototype would still apply. */
32296char $ac_func ();
32297/* The GNU C library defines this for functions which it implements
32298 to always fail with ENOSYS. Some functions are actually named
32299 something starting with __ and the normal name is an alias. */
32300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32301choke me
32302#else
32303char (*f) () = $ac_func;
32304#endif
32305#ifdef __cplusplus
32306}
32307#endif
32308
32309int
32310main ()
32311{
32312return f != $ac_func;
32313 ;
32314 return 0;
32315}
32316_ACEOF
32317rm -f conftest.$ac_objext conftest$ac_exeext
32318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32319 (eval $ac_link) 2>conftest.er1
a848cd7e 32320 ac_status=$?
ac1cb8d3
VS
32321 grep -v '^ *+' conftest.er1 >conftest.err
32322 rm -f conftest.er1
32323 cat conftest.err >&5
a848cd7e
SC
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); } &&
8c539582 32326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32328 (eval $ac_try) 2>&5
32329 ac_status=$?
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; } &&
32332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32334 (eval $ac_try) 2>&5
32335 ac_status=$?
32336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337 (exit $ac_status); }; }; then
32338 eval "$as_ac_var=yes"
32339else
32340 echo "$as_me: failed program was:" >&5
32341sed 's/^/| /' conftest.$ac_ext >&5
32342
32343eval "$as_ac_var=no"
32344fi
ac1cb8d3
VS
32345rm -f conftest.err conftest.$ac_objext \
32346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32347fi
32348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32349echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32350if test `eval echo '${'$as_ac_var'}'` = yes; then
32351 cat >>confdefs.h <<_ACEOF
32352#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32353_ACEOF
32354 break
32355fi
32356done
32357
32358
32359echo "$as_me:$LINENO: checking for statfs" >&5
32360echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32361if test "${wx_cv_func_statfs+set}" = set; then
32362 echo $ECHO_N "(cached) $ECHO_C" >&6
32363else
32364 cat >conftest.$ac_ext <<_ACEOF
32365/* confdefs.h. */
32366_ACEOF
32367cat confdefs.h >>conftest.$ac_ext
32368cat >>conftest.$ac_ext <<_ACEOF
32369/* end confdefs.h. */
32370
32371 #if defined(__BSD__)
32372 #include <sys/param.h>
32373 #include <sys/mount.h>
32374 #else
32375 #include <sys/vfs.h>
32376 #endif
32377
32378int
32379main ()
32380{
32381
32382 long l;
32383 struct statfs fs;
32384 statfs("/", &fs);
32385 l = fs.f_bsize;
32386 l += fs.f_blocks;
32387 l += fs.f_bavail;
32388
32389 ;
32390 return 0;
32391}
32392_ACEOF
32393rm -f conftest.$ac_objext
32394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32395 (eval $ac_compile) 2>conftest.er1
a848cd7e 32396 ac_status=$?
ac1cb8d3
VS
32397 grep -v '^ *+' conftest.er1 >conftest.err
32398 rm -f conftest.er1
32399 cat conftest.err >&5
a848cd7e
SC
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); } &&
8c539582 32402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404 (eval $ac_try) 2>&5
32405 ac_status=$?
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; } &&
32408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32410 (eval $ac_try) 2>&5
32411 ac_status=$?
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); }; }; then
32414
32415 wx_cv_func_statfs=yes
32416
32417else
32418 echo "$as_me: failed program was:" >&5
32419sed 's/^/| /' conftest.$ac_ext >&5
32420
32421
32422 wx_cv_func_statfs=no
32423
32424
32425fi
ac1cb8d3 32426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32427
32428fi
32429echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32430echo "${ECHO_T}$wx_cv_func_statfs" >&6
32431
32432if test "$wx_cv_func_statfs" = "yes"; then
32433 wx_cv_type_statvfs_t="struct statfs"
32434 cat >>confdefs.h <<\_ACEOF
32435#define HAVE_STATFS 1
32436_ACEOF
32437
32438else
32439 echo "$as_me:$LINENO: checking for statvfs" >&5
32440echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32441if test "${wx_cv_func_statvfs+set}" = set; then
32442 echo $ECHO_N "(cached) $ECHO_C" >&6
32443else
32444 cat >conftest.$ac_ext <<_ACEOF
32445/* confdefs.h. */
32446_ACEOF
32447cat confdefs.h >>conftest.$ac_ext
32448cat >>conftest.$ac_ext <<_ACEOF
32449/* end confdefs.h. */
32450
32451 #include <stddef.h>
32452 #include <sys/statvfs.h>
32453
32454int
32455main ()
32456{
32457
32458 statvfs("/", NULL);
32459
32460 ;
32461 return 0;
32462}
32463_ACEOF
32464rm -f conftest.$ac_objext
32465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32466 (eval $ac_compile) 2>conftest.er1
a848cd7e 32467 ac_status=$?
ac1cb8d3
VS
32468 grep -v '^ *+' conftest.er1 >conftest.err
32469 rm -f conftest.er1
32470 cat conftest.err >&5
a848cd7e
SC
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); } &&
8c539582 32473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32475 (eval $ac_try) 2>&5
32476 ac_status=$?
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); }; } &&
32479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32481 (eval $ac_try) 2>&5
32482 ac_status=$?
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); }; }; then
32485 wx_cv_func_statvfs=yes
32486else
32487 echo "$as_me: failed program was:" >&5
32488sed 's/^/| /' conftest.$ac_ext >&5
32489
32490wx_cv_func_statvfs=no
32491
32492fi
ac1cb8d3 32493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32494
32495fi
32496echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32497echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32498
32499 if test "$wx_cv_func_statvfs" = "yes"; then
32500
32501
32502 ac_ext=cc
32503ac_cpp='$CXXCPP $CPPFLAGS'
32504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32507
32508
32509 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32510echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32511if test "${wx_cv_type_statvfs_t+set}" = set; then
32512 echo $ECHO_N "(cached) $ECHO_C" >&6
32513else
32514 cat >conftest.$ac_ext <<_ACEOF
32515/* confdefs.h. */
32516_ACEOF
32517cat confdefs.h >>conftest.$ac_ext
32518cat >>conftest.$ac_ext <<_ACEOF
32519/* end confdefs.h. */
32520
32521 #include <sys/statvfs.h>
32522
32523int
32524main ()
32525{
32526
32527 long l;
32528 statvfs_t fs;
32529 statvfs("/", &fs);
32530 l = fs.f_bsize;
32531 l += fs.f_blocks;
32532 l += fs.f_bavail;
32533
32534 ;
32535 return 0;
32536}
32537_ACEOF
32538rm -f conftest.$ac_objext
32539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32540 (eval $ac_compile) 2>conftest.er1
a848cd7e 32541 ac_status=$?
ac1cb8d3
VS
32542 grep -v '^ *+' conftest.er1 >conftest.err
32543 rm -f conftest.er1
32544 cat conftest.err >&5
a848cd7e
SC
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); } &&
8c539582 32547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549 (eval $ac_try) 2>&5
32550 ac_status=$?
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; } &&
32553 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555 (eval $ac_try) 2>&5
32556 ac_status=$?
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; }; then
32559 wx_cv_type_statvfs_t=statvfs_t
32560else
32561 echo "$as_me: failed program was:" >&5
32562sed 's/^/| /' conftest.$ac_ext >&5
32563
32564
32565 cat >conftest.$ac_ext <<_ACEOF
32566/* confdefs.h. */
32567_ACEOF
32568cat confdefs.h >>conftest.$ac_ext
32569cat >>conftest.$ac_ext <<_ACEOF
32570/* end confdefs.h. */
32571
32572 #include <sys/statvfs.h>
32573
32574int
32575main ()
32576{
32577
32578 long l;
32579 struct statvfs fs;
32580 statvfs("/", &fs);
32581 l = fs.f_bsize;
32582 l += fs.f_blocks;
32583 l += fs.f_bavail;
32584
32585 ;
32586 return 0;
32587}
32588_ACEOF
32589rm -f conftest.$ac_objext
32590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32591 (eval $ac_compile) 2>conftest.er1
a848cd7e 32592 ac_status=$?
ac1cb8d3
VS
32593 grep -v '^ *+' conftest.er1 >conftest.err
32594 rm -f conftest.er1
32595 cat conftest.err >&5
a848cd7e
SC
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); } &&
8c539582 32598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32600 (eval $ac_try) 2>&5
32601 ac_status=$?
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; } &&
32604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32606 (eval $ac_try) 2>&5
32607 ac_status=$?
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); }; }; then
32610 wx_cv_type_statvfs_t="struct statvfs"
32611else
32612 echo "$as_me: failed program was:" >&5
32613sed 's/^/| /' conftest.$ac_ext >&5
32614
32615wx_cv_type_statvfs_t="unknown"
32616
32617fi
ac1cb8d3 32618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32619
32620
32621fi
ac1cb8d3 32622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32623
32624fi
32625echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32626echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32627
32628 ac_ext=c
32629ac_cpp='$CPP $CPPFLAGS'
32630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32632ac_compiler_gnu=$ac_cv_c_compiler_gnu
32633
32634
32635 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32636 cat >>confdefs.h <<\_ACEOF
32637#define HAVE_STATVFS 1
32638_ACEOF
32639
32640 fi
32641 else
32642 wx_cv_type_statvfs_t="unknown"
32643 fi
32644fi
32645
32646if test "$wx_cv_type_statvfs_t" != "unknown"; then
32647 cat >>confdefs.h <<_ACEOF
32648#define WX_STATFS_T $wx_cv_type_statvfs_t
32649_ACEOF
32650
32651else
32652 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32653echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32654fi
32655
32656if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32657
32658
32659for ac_func in fcntl flock
32660do
32661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32662echo "$as_me:$LINENO: checking for $ac_func" >&5
32663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32664if eval "test \"\${$as_ac_var+set}\" = set"; then
32665 echo $ECHO_N "(cached) $ECHO_C" >&6
32666else
32667 cat >conftest.$ac_ext <<_ACEOF
32668/* confdefs.h. */
32669_ACEOF
32670cat confdefs.h >>conftest.$ac_ext
32671cat >>conftest.$ac_ext <<_ACEOF
32672/* end confdefs.h. */
ac1cb8d3
VS
32673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32675#define $ac_func innocuous_$ac_func
32676
a848cd7e
SC
32677/* System header to define __stub macros and hopefully few prototypes,
32678 which can conflict with char $ac_func (); below.
32679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32680 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32681
a848cd7e
SC
32682#ifdef __STDC__
32683# include <limits.h>
32684#else
32685# include <assert.h>
32686#endif
ac1cb8d3
VS
32687
32688#undef $ac_func
32689
a848cd7e
SC
32690/* Override any gcc2 internal prototype to avoid an error. */
32691#ifdef __cplusplus
32692extern "C"
32693{
32694#endif
32695/* We use char because int might match the return type of a gcc2
32696 builtin and then its argument prototype would still apply. */
32697char $ac_func ();
32698/* The GNU C library defines this for functions which it implements
32699 to always fail with ENOSYS. Some functions are actually named
32700 something starting with __ and the normal name is an alias. */
32701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32702choke me
32703#else
32704char (*f) () = $ac_func;
32705#endif
32706#ifdef __cplusplus
32707}
32708#endif
32709
32710int
32711main ()
32712{
32713return f != $ac_func;
32714 ;
32715 return 0;
32716}
32717_ACEOF
32718rm -f conftest.$ac_objext conftest$ac_exeext
32719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32720 (eval $ac_link) 2>conftest.er1
a848cd7e 32721 ac_status=$?
ac1cb8d3
VS
32722 grep -v '^ *+' conftest.er1 >conftest.err
32723 rm -f conftest.er1
32724 cat conftest.err >&5
a848cd7e
SC
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); } &&
8c539582 32727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32729 (eval $ac_try) 2>&5
32730 ac_status=$?
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; } &&
32733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32735 (eval $ac_try) 2>&5
32736 ac_status=$?
32737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); }; }; then
32739 eval "$as_ac_var=yes"
32740else
32741 echo "$as_me: failed program was:" >&5
32742sed 's/^/| /' conftest.$ac_ext >&5
32743
32744eval "$as_ac_var=no"
32745fi
ac1cb8d3
VS
32746rm -f conftest.err conftest.$ac_objext \
32747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32748fi
32749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32750echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32751if test `eval echo '${'$as_ac_var'}'` = yes; then
32752 cat >>confdefs.h <<_ACEOF
32753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32754_ACEOF
32755 break
32756fi
32757done
32758
32759
32760 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32761 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32762echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32763 wxUSE_SNGLINST_CHECKER=no
32764 fi
32765fi
32766
32767
32768for ac_func in timegm
32769do
32770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32771echo "$as_me:$LINENO: checking for $ac_func" >&5
32772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32773if eval "test \"\${$as_ac_var+set}\" = set"; then
32774 echo $ECHO_N "(cached) $ECHO_C" >&6
32775else
32776 cat >conftest.$ac_ext <<_ACEOF
32777/* confdefs.h. */
32778_ACEOF
32779cat confdefs.h >>conftest.$ac_ext
32780cat >>conftest.$ac_ext <<_ACEOF
32781/* end confdefs.h. */
ac1cb8d3
VS
32782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32784#define $ac_func innocuous_$ac_func
32785
a848cd7e
SC
32786/* System header to define __stub macros and hopefully few prototypes,
32787 which can conflict with char $ac_func (); below.
32788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32789 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32790
a848cd7e
SC
32791#ifdef __STDC__
32792# include <limits.h>
32793#else
32794# include <assert.h>
32795#endif
ac1cb8d3
VS
32796
32797#undef $ac_func
32798
a848cd7e
SC
32799/* Override any gcc2 internal prototype to avoid an error. */
32800#ifdef __cplusplus
32801extern "C"
32802{
32803#endif
32804/* We use char because int might match the return type of a gcc2
32805 builtin and then its argument prototype would still apply. */
32806char $ac_func ();
32807/* The GNU C library defines this for functions which it implements
32808 to always fail with ENOSYS. Some functions are actually named
32809 something starting with __ and the normal name is an alias. */
32810#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32811choke me
32812#else
32813char (*f) () = $ac_func;
32814#endif
32815#ifdef __cplusplus
32816}
32817#endif
32818
32819int
32820main ()
32821{
32822return f != $ac_func;
32823 ;
32824 return 0;
32825}
32826_ACEOF
32827rm -f conftest.$ac_objext conftest$ac_exeext
32828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32829 (eval $ac_link) 2>conftest.er1
a848cd7e 32830 ac_status=$?
ac1cb8d3
VS
32831 grep -v '^ *+' conftest.er1 >conftest.err
32832 rm -f conftest.er1
32833 cat conftest.err >&5
a848cd7e
SC
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); } &&
8c539582 32836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32838 (eval $ac_try) 2>&5
32839 ac_status=$?
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; } &&
32842 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844 (eval $ac_try) 2>&5
32845 ac_status=$?
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); }; }; then
32848 eval "$as_ac_var=yes"
32849else
32850 echo "$as_me: failed program was:" >&5
32851sed 's/^/| /' conftest.$ac_ext >&5
32852
32853eval "$as_ac_var=no"
32854fi
ac1cb8d3
VS
32855rm -f conftest.err conftest.$ac_objext \
32856 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32857fi
32858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32859echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32860if test `eval echo '${'$as_ac_var'}'` = yes; then
32861 cat >>confdefs.h <<_ACEOF
32862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32863_ACEOF
32864
32865fi
32866done
32867
32868
32869
32870
32871for ac_func in putenv setenv
32872do
32873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32874echo "$as_me:$LINENO: checking for $ac_func" >&5
32875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32876if eval "test \"\${$as_ac_var+set}\" = set"; then
32877 echo $ECHO_N "(cached) $ECHO_C" >&6
32878else
32879 cat >conftest.$ac_ext <<_ACEOF
32880/* confdefs.h. */
32881_ACEOF
32882cat confdefs.h >>conftest.$ac_ext
32883cat >>conftest.$ac_ext <<_ACEOF
32884/* end confdefs.h. */
ac1cb8d3
VS
32885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32887#define $ac_func innocuous_$ac_func
32888
a848cd7e
SC
32889/* System header to define __stub macros and hopefully few prototypes,
32890 which can conflict with char $ac_func (); below.
32891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32892 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32893
a848cd7e
SC
32894#ifdef __STDC__
32895# include <limits.h>
32896#else
32897# include <assert.h>
32898#endif
ac1cb8d3
VS
32899
32900#undef $ac_func
32901
a848cd7e
SC
32902/* Override any gcc2 internal prototype to avoid an error. */
32903#ifdef __cplusplus
32904extern "C"
32905{
32906#endif
32907/* We use char because int might match the return type of a gcc2
32908 builtin and then its argument prototype would still apply. */
32909char $ac_func ();
32910/* The GNU C library defines this for functions which it implements
32911 to always fail with ENOSYS. Some functions are actually named
32912 something starting with __ and the normal name is an alias. */
32913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32914choke me
32915#else
32916char (*f) () = $ac_func;
32917#endif
32918#ifdef __cplusplus
32919}
32920#endif
32921
32922int
32923main ()
32924{
32925return f != $ac_func;
32926 ;
32927 return 0;
32928}
32929_ACEOF
32930rm -f conftest.$ac_objext conftest$ac_exeext
32931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32932 (eval $ac_link) 2>conftest.er1
a848cd7e 32933 ac_status=$?
ac1cb8d3
VS
32934 grep -v '^ *+' conftest.er1 >conftest.err
32935 rm -f conftest.er1
32936 cat conftest.err >&5
a848cd7e
SC
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } &&
8c539582 32939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32941 (eval $ac_try) 2>&5
32942 ac_status=$?
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); }; } &&
32945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32947 (eval $ac_try) 2>&5
32948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; }; then
32951 eval "$as_ac_var=yes"
32952else
32953 echo "$as_me: failed program was:" >&5
32954sed 's/^/| /' conftest.$ac_ext >&5
32955
32956eval "$as_ac_var=no"
32957fi
ac1cb8d3
VS
32958rm -f conftest.err conftest.$ac_objext \
32959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32960fi
32961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32962echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32963if test `eval echo '${'$as_ac_var'}'` = yes; then
32964 cat >>confdefs.h <<_ACEOF
32965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32966_ACEOF
32967 break
32968fi
32969done
32970
32971
32972HAVE_SOME_SLEEP_FUNC=0
32973if test "$USE_BEOS" = 1; then
32974 cat >>confdefs.h <<\_ACEOF
32975#define HAVE_SLEEP 1
32976_ACEOF
32977
32978 HAVE_SOME_SLEEP_FUNC=1
32979fi
32980
32981if test "$USE_DARWIN" = 1; then
32982 cat >>confdefs.h <<\_ACEOF
32983#define HAVE_USLEEP 1
32984_ACEOF
32985
32986 HAVE_SOME_SLEEP_FUNC=1
32987fi
32988
32989if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32990 POSIX4_LINK=
32991
32992for ac_func in nanosleep
32993do
32994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32995echo "$as_me:$LINENO: checking for $ac_func" >&5
32996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32997if eval "test \"\${$as_ac_var+set}\" = set"; then
32998 echo $ECHO_N "(cached) $ECHO_C" >&6
32999else
33000 cat >conftest.$ac_ext <<_ACEOF
33001/* confdefs.h. */
33002_ACEOF
33003cat confdefs.h >>conftest.$ac_ext
33004cat >>conftest.$ac_ext <<_ACEOF
33005/* end confdefs.h. */
ac1cb8d3
VS
33006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33008#define $ac_func innocuous_$ac_func
33009
a848cd7e
SC
33010/* System header to define __stub macros and hopefully few prototypes,
33011 which can conflict with char $ac_func (); below.
33012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33013 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33014
a848cd7e
SC
33015#ifdef __STDC__
33016# include <limits.h>
33017#else
33018# include <assert.h>
33019#endif
ac1cb8d3
VS
33020
33021#undef $ac_func
33022
a848cd7e
SC
33023/* Override any gcc2 internal prototype to avoid an error. */
33024#ifdef __cplusplus
33025extern "C"
33026{
33027#endif
33028/* We use char because int might match the return type of a gcc2
33029 builtin and then its argument prototype would still apply. */
33030char $ac_func ();
33031/* The GNU C library defines this for functions which it implements
33032 to always fail with ENOSYS. Some functions are actually named
33033 something starting with __ and the normal name is an alias. */
33034#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33035choke me
33036#else
33037char (*f) () = $ac_func;
33038#endif
33039#ifdef __cplusplus
33040}
33041#endif
33042
33043int
33044main ()
33045{
33046return f != $ac_func;
33047 ;
33048 return 0;
33049}
33050_ACEOF
33051rm -f conftest.$ac_objext conftest$ac_exeext
33052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33053 (eval $ac_link) 2>conftest.er1
a848cd7e 33054 ac_status=$?
ac1cb8d3
VS
33055 grep -v '^ *+' conftest.er1 >conftest.err
33056 rm -f conftest.er1
33057 cat conftest.err >&5
a848cd7e
SC
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); } &&
8c539582 33060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33062 (eval $ac_try) 2>&5
33063 ac_status=$?
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065 (exit $ac_status); }; } &&
33066 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33068 (eval $ac_try) 2>&5
33069 ac_status=$?
33070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071 (exit $ac_status); }; }; then
33072 eval "$as_ac_var=yes"
33073else
33074 echo "$as_me: failed program was:" >&5
33075sed 's/^/| /' conftest.$ac_ext >&5
33076
33077eval "$as_ac_var=no"
33078fi
ac1cb8d3
VS
33079rm -f conftest.err conftest.$ac_objext \
33080 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33081fi
33082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33084if test `eval echo '${'$as_ac_var'}'` = yes; then
33085 cat >>confdefs.h <<_ACEOF
33086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33087_ACEOF
33088 cat >>confdefs.h <<\_ACEOF
33089#define HAVE_NANOSLEEP 1
33090_ACEOF
33091
33092else
33093
33094 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33095echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33096if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33097 echo $ECHO_N "(cached) $ECHO_C" >&6
33098else
33099 ac_check_lib_save_LIBS=$LIBS
33100LIBS="-lposix4 $LIBS"
33101cat >conftest.$ac_ext <<_ACEOF
33102/* confdefs.h. */
33103_ACEOF
33104cat confdefs.h >>conftest.$ac_ext
33105cat >>conftest.$ac_ext <<_ACEOF
33106/* end confdefs.h. */
33107
33108/* Override any gcc2 internal prototype to avoid an error. */
33109#ifdef __cplusplus
33110extern "C"
33111#endif
33112/* We use char because int might match the return type of a gcc2
33113 builtin and then its argument prototype would still apply. */
33114char nanosleep ();
33115int
33116main ()
33117{
33118nanosleep ();
33119 ;
33120 return 0;
33121}
33122_ACEOF
33123rm -f conftest.$ac_objext conftest$ac_exeext
33124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33125 (eval $ac_link) 2>conftest.er1
a848cd7e 33126 ac_status=$?
ac1cb8d3
VS
33127 grep -v '^ *+' conftest.er1 >conftest.err
33128 rm -f conftest.er1
33129 cat conftest.err >&5
a848cd7e
SC
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); } &&
8c539582 33132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33134 (eval $ac_try) 2>&5
33135 ac_status=$?
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); }; } &&
33138 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33140 (eval $ac_try) 2>&5
33141 ac_status=$?
33142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143 (exit $ac_status); }; }; then
33144 ac_cv_lib_posix4_nanosleep=yes
33145else
33146 echo "$as_me: failed program was:" >&5
33147sed 's/^/| /' conftest.$ac_ext >&5
33148
33149ac_cv_lib_posix4_nanosleep=no
33150fi
ac1cb8d3
VS
33151rm -f conftest.err conftest.$ac_objext \
33152 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33153LIBS=$ac_check_lib_save_LIBS
33154fi
33155echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33156echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33157if test $ac_cv_lib_posix4_nanosleep = yes; then
33158
33159 cat >>confdefs.h <<\_ACEOF
33160#define HAVE_NANOSLEEP 1
33161_ACEOF
33162
33163 POSIX4_LINK=" -lposix4"
33164
33165else
33166
33167
33168for ac_func in usleep
33169do
33170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33171echo "$as_me:$LINENO: checking for $ac_func" >&5
33172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33173if eval "test \"\${$as_ac_var+set}\" = set"; then
33174 echo $ECHO_N "(cached) $ECHO_C" >&6
33175else
33176 cat >conftest.$ac_ext <<_ACEOF
33177/* confdefs.h. */
33178_ACEOF
33179cat confdefs.h >>conftest.$ac_ext
33180cat >>conftest.$ac_ext <<_ACEOF
33181/* end confdefs.h. */
ac1cb8d3
VS
33182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33184#define $ac_func innocuous_$ac_func
33185
a848cd7e
SC
33186/* System header to define __stub macros and hopefully few prototypes,
33187 which can conflict with char $ac_func (); below.
33188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33189 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33190
a848cd7e
SC
33191#ifdef __STDC__
33192# include <limits.h>
33193#else
33194# include <assert.h>
33195#endif
ac1cb8d3
VS
33196
33197#undef $ac_func
33198
a848cd7e
SC
33199/* Override any gcc2 internal prototype to avoid an error. */
33200#ifdef __cplusplus
33201extern "C"
33202{
33203#endif
33204/* We use char because int might match the return type of a gcc2
33205 builtin and then its argument prototype would still apply. */
33206char $ac_func ();
33207/* The GNU C library defines this for functions which it implements
33208 to always fail with ENOSYS. Some functions are actually named
33209 something starting with __ and the normal name is an alias. */
33210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33211choke me
33212#else
33213char (*f) () = $ac_func;
33214#endif
33215#ifdef __cplusplus
33216}
33217#endif
33218
33219int
33220main ()
33221{
33222return f != $ac_func;
33223 ;
33224 return 0;
33225}
33226_ACEOF
33227rm -f conftest.$ac_objext conftest$ac_exeext
33228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33229 (eval $ac_link) 2>conftest.er1
a848cd7e 33230 ac_status=$?
ac1cb8d3
VS
33231 grep -v '^ *+' conftest.er1 >conftest.err
33232 rm -f conftest.er1
33233 cat conftest.err >&5
a848cd7e
SC
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); } &&
8c539582 33236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33238 (eval $ac_try) 2>&5
33239 ac_status=$?
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); }; } &&
33242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33244 (eval $ac_try) 2>&5
33245 ac_status=$?
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); }; }; then
33248 eval "$as_ac_var=yes"
33249else
33250 echo "$as_me: failed program was:" >&5
33251sed 's/^/| /' conftest.$ac_ext >&5
33252
33253eval "$as_ac_var=no"
33254fi
ac1cb8d3
VS
33255rm -f conftest.err conftest.$ac_objext \
33256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33257fi
33258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33259echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33260if test `eval echo '${'$as_ac_var'}'` = yes; then
33261 cat >>confdefs.h <<_ACEOF
33262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33263_ACEOF
33264 cat >>confdefs.h <<\_ACEOF
33265#define HAVE_USLEEP 1
33266_ACEOF
33267
33268else
33269 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33270echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33271
33272fi
33273done
33274
33275
33276
33277fi
33278
33279
33280
33281fi
33282done
33283
33284fi
33285
33286
33287
33288for ac_func in uname gethostname
33289do
33290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33291echo "$as_me:$LINENO: checking for $ac_func" >&5
33292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33293if eval "test \"\${$as_ac_var+set}\" = set"; then
33294 echo $ECHO_N "(cached) $ECHO_C" >&6
33295else
33296 cat >conftest.$ac_ext <<_ACEOF
33297/* confdefs.h. */
33298_ACEOF
33299cat confdefs.h >>conftest.$ac_ext
33300cat >>conftest.$ac_ext <<_ACEOF
33301/* end confdefs.h. */
ac1cb8d3
VS
33302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33304#define $ac_func innocuous_$ac_func
33305
a848cd7e
SC
33306/* System header to define __stub macros and hopefully few prototypes,
33307 which can conflict with char $ac_func (); below.
33308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33309 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33310
a848cd7e
SC
33311#ifdef __STDC__
33312# include <limits.h>
33313#else
33314# include <assert.h>
33315#endif
ac1cb8d3
VS
33316
33317#undef $ac_func
33318
a848cd7e
SC
33319/* Override any gcc2 internal prototype to avoid an error. */
33320#ifdef __cplusplus
33321extern "C"
33322{
33323#endif
33324/* We use char because int might match the return type of a gcc2
33325 builtin and then its argument prototype would still apply. */
33326char $ac_func ();
33327/* The GNU C library defines this for functions which it implements
33328 to always fail with ENOSYS. Some functions are actually named
33329 something starting with __ and the normal name is an alias. */
33330#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33331choke me
33332#else
33333char (*f) () = $ac_func;
33334#endif
33335#ifdef __cplusplus
33336}
33337#endif
33338
33339int
33340main ()
33341{
33342return f != $ac_func;
33343 ;
33344 return 0;
33345}
33346_ACEOF
33347rm -f conftest.$ac_objext conftest$ac_exeext
33348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33349 (eval $ac_link) 2>conftest.er1
a848cd7e 33350 ac_status=$?
ac1cb8d3
VS
33351 grep -v '^ *+' conftest.er1 >conftest.err
33352 rm -f conftest.er1
33353 cat conftest.err >&5
a848cd7e
SC
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); } &&
8c539582 33356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33358 (eval $ac_try) 2>&5
33359 ac_status=$?
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); }; } &&
33362 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33364 (eval $ac_try) 2>&5
33365 ac_status=$?
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; }; then
33368 eval "$as_ac_var=yes"
33369else
33370 echo "$as_me: failed program was:" >&5
33371sed 's/^/| /' conftest.$ac_ext >&5
33372
33373eval "$as_ac_var=no"
33374fi
ac1cb8d3
VS
33375rm -f conftest.err conftest.$ac_objext \
33376 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33377fi
33378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33380if test `eval echo '${'$as_ac_var'}'` = yes; then
33381 cat >>confdefs.h <<_ACEOF
33382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33383_ACEOF
33384 break
33385fi
33386done
33387
33388
33389
33390
33391ac_ext=cc
33392ac_cpp='$CXXCPP $CPPFLAGS'
33393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33396
33397
33398
33399for ac_func in strtok_r
33400do
33401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33402echo "$as_me:$LINENO: checking for $ac_func" >&5
33403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33404if eval "test \"\${$as_ac_var+set}\" = set"; then
33405 echo $ECHO_N "(cached) $ECHO_C" >&6
33406else
33407 cat >conftest.$ac_ext <<_ACEOF
33408/* confdefs.h. */
33409_ACEOF
33410cat confdefs.h >>conftest.$ac_ext
33411cat >>conftest.$ac_ext <<_ACEOF
33412/* end confdefs.h. */
ac1cb8d3
VS
33413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33415#define $ac_func innocuous_$ac_func
33416
a848cd7e
SC
33417/* System header to define __stub macros and hopefully few prototypes,
33418 which can conflict with char $ac_func (); below.
33419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33421
a848cd7e
SC
33422#ifdef __STDC__
33423# include <limits.h>
33424#else
33425# include <assert.h>
33426#endif
ac1cb8d3
VS
33427
33428#undef $ac_func
33429
a848cd7e
SC
33430/* Override any gcc2 internal prototype to avoid an error. */
33431#ifdef __cplusplus
33432extern "C"
33433{
33434#endif
33435/* We use char because int might match the return type of a gcc2
33436 builtin and then its argument prototype would still apply. */
33437char $ac_func ();
33438/* The GNU C library defines this for functions which it implements
33439 to always fail with ENOSYS. Some functions are actually named
33440 something starting with __ and the normal name is an alias. */
33441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33442choke me
33443#else
33444char (*f) () = $ac_func;
33445#endif
33446#ifdef __cplusplus
33447}
33448#endif
33449
33450int
33451main ()
33452{
33453return f != $ac_func;
33454 ;
33455 return 0;
33456}
33457_ACEOF
33458rm -f conftest.$ac_objext conftest$ac_exeext
33459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33460 (eval $ac_link) 2>conftest.er1
a848cd7e 33461 ac_status=$?
ac1cb8d3
VS
33462 grep -v '^ *+' conftest.er1 >conftest.err
33463 rm -f conftest.er1
33464 cat conftest.err >&5
a848cd7e
SC
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); } &&
8c539582 33467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33469 (eval $ac_try) 2>&5
33470 ac_status=$?
33471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33472 (exit $ac_status); }; } &&
33473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33475 (eval $ac_try) 2>&5
33476 ac_status=$?
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); }; }; then
33479 eval "$as_ac_var=yes"
33480else
33481 echo "$as_me: failed program was:" >&5
33482sed 's/^/| /' conftest.$ac_ext >&5
33483
33484eval "$as_ac_var=no"
33485fi
ac1cb8d3
VS
33486rm -f conftest.err conftest.$ac_objext \
33487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33488fi
33489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33491if test `eval echo '${'$as_ac_var'}'` = yes; then
33492 cat >>confdefs.h <<_ACEOF
33493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33494_ACEOF
33495
33496fi
33497done
33498
33499
33500ac_ext=c
33501ac_cpp='$CPP $CPPFLAGS'
33502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33504ac_compiler_gnu=$ac_cv_c_compiler_gnu
33505
33506
33507INET_LINK=
33508
33509for ac_func in inet_addr
33510do
33511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33512echo "$as_me:$LINENO: checking for $ac_func" >&5
33513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33514if eval "test \"\${$as_ac_var+set}\" = set"; then
33515 echo $ECHO_N "(cached) $ECHO_C" >&6
33516else
33517 cat >conftest.$ac_ext <<_ACEOF
33518/* confdefs.h. */
33519_ACEOF
33520cat confdefs.h >>conftest.$ac_ext
33521cat >>conftest.$ac_ext <<_ACEOF
33522/* end confdefs.h. */
ac1cb8d3
VS
33523/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33525#define $ac_func innocuous_$ac_func
33526
a848cd7e
SC
33527/* System header to define __stub macros and hopefully few prototypes,
33528 which can conflict with char $ac_func (); below.
33529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33530 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33531
a848cd7e
SC
33532#ifdef __STDC__
33533# include <limits.h>
33534#else
33535# include <assert.h>
33536#endif
ac1cb8d3
VS
33537
33538#undef $ac_func
33539
a848cd7e
SC
33540/* Override any gcc2 internal prototype to avoid an error. */
33541#ifdef __cplusplus
33542extern "C"
33543{
33544#endif
33545/* We use char because int might match the return type of a gcc2
33546 builtin and then its argument prototype would still apply. */
33547char $ac_func ();
33548/* The GNU C library defines this for functions which it implements
33549 to always fail with ENOSYS. Some functions are actually named
33550 something starting with __ and the normal name is an alias. */
33551#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33552choke me
33553#else
33554char (*f) () = $ac_func;
33555#endif
33556#ifdef __cplusplus
33557}
33558#endif
33559
33560int
33561main ()
33562{
33563return f != $ac_func;
33564 ;
33565 return 0;
33566}
33567_ACEOF
33568rm -f conftest.$ac_objext conftest$ac_exeext
33569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33570 (eval $ac_link) 2>conftest.er1
a848cd7e 33571 ac_status=$?
ac1cb8d3
VS
33572 grep -v '^ *+' conftest.er1 >conftest.err
33573 rm -f conftest.er1
33574 cat conftest.err >&5
a848cd7e
SC
33575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576 (exit $ac_status); } &&
8c539582 33577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33579 (eval $ac_try) 2>&5
33580 ac_status=$?
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); }; } &&
33583 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585 (eval $ac_try) 2>&5
33586 ac_status=$?
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); }; }; then
33589 eval "$as_ac_var=yes"
33590else
33591 echo "$as_me: failed program was:" >&5
33592sed 's/^/| /' conftest.$ac_ext >&5
33593
33594eval "$as_ac_var=no"
33595fi
ac1cb8d3
VS
33596rm -f conftest.err conftest.$ac_objext \
33597 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33598fi
33599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33600echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33601if test `eval echo '${'$as_ac_var'}'` = yes; then
33602 cat >>confdefs.h <<_ACEOF
33603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33604_ACEOF
33605 cat >>confdefs.h <<\_ACEOF
33606#define HAVE_INET_ADDR 1
33607_ACEOF
33608
33609else
33610
33611 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33612echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33613if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33614 echo $ECHO_N "(cached) $ECHO_C" >&6
33615else
33616 ac_check_lib_save_LIBS=$LIBS
33617LIBS="-lnsl $LIBS"
33618cat >conftest.$ac_ext <<_ACEOF
33619/* confdefs.h. */
33620_ACEOF
33621cat confdefs.h >>conftest.$ac_ext
33622cat >>conftest.$ac_ext <<_ACEOF
33623/* end confdefs.h. */
33624
33625/* Override any gcc2 internal prototype to avoid an error. */
33626#ifdef __cplusplus
33627extern "C"
33628#endif
33629/* We use char because int might match the return type of a gcc2
33630 builtin and then its argument prototype would still apply. */
33631char inet_addr ();
33632int
33633main ()
33634{
33635inet_addr ();
33636 ;
33637 return 0;
33638}
33639_ACEOF
33640rm -f conftest.$ac_objext conftest$ac_exeext
33641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33642 (eval $ac_link) 2>conftest.er1
a848cd7e 33643 ac_status=$?
ac1cb8d3
VS
33644 grep -v '^ *+' conftest.er1 >conftest.err
33645 rm -f conftest.er1
33646 cat conftest.err >&5
a848cd7e
SC
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); } &&
8c539582 33649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651 (eval $ac_try) 2>&5
33652 ac_status=$?
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); }; } &&
33655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33658 ac_status=$?
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; }; then
33661 ac_cv_lib_nsl_inet_addr=yes
33662else
33663 echo "$as_me: failed program was:" >&5
33664sed 's/^/| /' conftest.$ac_ext >&5
33665
33666ac_cv_lib_nsl_inet_addr=no
33667fi
ac1cb8d3
VS
33668rm -f conftest.err conftest.$ac_objext \
33669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33670LIBS=$ac_check_lib_save_LIBS
33671fi
33672echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33673echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33674if test $ac_cv_lib_nsl_inet_addr = yes; then
33675 INET_LINK="nsl"
33676else
33677
33678 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33679echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33680if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33681 echo $ECHO_N "(cached) $ECHO_C" >&6
33682else
33683 ac_check_lib_save_LIBS=$LIBS
33684LIBS="-lresolv $LIBS"
33685cat >conftest.$ac_ext <<_ACEOF
33686/* confdefs.h. */
33687_ACEOF
33688cat confdefs.h >>conftest.$ac_ext
33689cat >>conftest.$ac_ext <<_ACEOF
33690/* end confdefs.h. */
33691
33692/* Override any gcc2 internal prototype to avoid an error. */
33693#ifdef __cplusplus
33694extern "C"
33695#endif
33696/* We use char because int might match the return type of a gcc2
33697 builtin and then its argument prototype would still apply. */
33698char inet_addr ();
33699int
33700main ()
33701{
33702inet_addr ();
33703 ;
33704 return 0;
33705}
33706_ACEOF
33707rm -f conftest.$ac_objext conftest$ac_exeext
33708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33709 (eval $ac_link) 2>conftest.er1
a848cd7e 33710 ac_status=$?
ac1cb8d3
VS
33711 grep -v '^ *+' conftest.er1 >conftest.err
33712 rm -f conftest.er1
33713 cat conftest.err >&5
a848cd7e
SC
33714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715 (exit $ac_status); } &&
8c539582 33716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33718 (eval $ac_try) 2>&5
33719 ac_status=$?
33720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); }; } &&
33722 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33724 (eval $ac_try) 2>&5
33725 ac_status=$?
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); }; }; then
33728 ac_cv_lib_resolv_inet_addr=yes
33729else
33730 echo "$as_me: failed program was:" >&5
33731sed 's/^/| /' conftest.$ac_ext >&5
33732
33733ac_cv_lib_resolv_inet_addr=no
33734fi
ac1cb8d3
VS
33735rm -f conftest.err conftest.$ac_objext \
33736 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33737LIBS=$ac_check_lib_save_LIBS
33738fi
33739echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33740echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33741if test $ac_cv_lib_resolv_inet_addr = yes; then
33742 INET_LINK="resolv"
33743else
33744
33745 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33746echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33747if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33748 echo $ECHO_N "(cached) $ECHO_C" >&6
33749else
33750 ac_check_lib_save_LIBS=$LIBS
33751LIBS="-lsocket $LIBS"
33752cat >conftest.$ac_ext <<_ACEOF
33753/* confdefs.h. */
33754_ACEOF
33755cat confdefs.h >>conftest.$ac_ext
33756cat >>conftest.$ac_ext <<_ACEOF
33757/* end confdefs.h. */
33758
33759/* Override any gcc2 internal prototype to avoid an error. */
33760#ifdef __cplusplus
33761extern "C"
33762#endif
33763/* We use char because int might match the return type of a gcc2
33764 builtin and then its argument prototype would still apply. */
33765char inet_addr ();
33766int
33767main ()
33768{
33769inet_addr ();
33770 ;
33771 return 0;
33772}
33773_ACEOF
33774rm -f conftest.$ac_objext conftest$ac_exeext
33775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33776 (eval $ac_link) 2>conftest.er1
a848cd7e 33777 ac_status=$?
ac1cb8d3
VS
33778 grep -v '^ *+' conftest.er1 >conftest.err
33779 rm -f conftest.er1
33780 cat conftest.err >&5
a848cd7e
SC
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); } &&
8c539582 33783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33785 (eval $ac_try) 2>&5
33786 ac_status=$?
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); }; } &&
33789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33791 (eval $ac_try) 2>&5
33792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; }; then
33795 ac_cv_lib_socket_inet_addr=yes
33796else
33797 echo "$as_me: failed program was:" >&5
33798sed 's/^/| /' conftest.$ac_ext >&5
33799
33800ac_cv_lib_socket_inet_addr=no
33801fi
ac1cb8d3
VS
33802rm -f conftest.err conftest.$ac_objext \
33803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33804LIBS=$ac_check_lib_save_LIBS
33805fi
33806echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33807echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33808if test $ac_cv_lib_socket_inet_addr = yes; then
33809 INET_LINK="socket"
33810
33811fi
33812
33813
33814
33815fi
33816
33817
33818
33819fi
33820
33821
33822
33823fi
33824done
33825
33826
33827
33828for ac_func in inet_aton
33829do
33830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33831echo "$as_me:$LINENO: checking for $ac_func" >&5
33832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33833if eval "test \"\${$as_ac_var+set}\" = set"; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33835else
33836 cat >conftest.$ac_ext <<_ACEOF
33837/* confdefs.h. */
33838_ACEOF
33839cat confdefs.h >>conftest.$ac_ext
33840cat >>conftest.$ac_ext <<_ACEOF
33841/* end confdefs.h. */
ac1cb8d3
VS
33842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33844#define $ac_func innocuous_$ac_func
33845
a848cd7e
SC
33846/* System header to define __stub macros and hopefully few prototypes,
33847 which can conflict with char $ac_func (); below.
33848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33849 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33850
a848cd7e
SC
33851#ifdef __STDC__
33852# include <limits.h>
33853#else
33854# include <assert.h>
33855#endif
ac1cb8d3
VS
33856
33857#undef $ac_func
33858
a848cd7e
SC
33859/* Override any gcc2 internal prototype to avoid an error. */
33860#ifdef __cplusplus
33861extern "C"
33862{
33863#endif
33864/* We use char because int might match the return type of a gcc2
33865 builtin and then its argument prototype would still apply. */
33866char $ac_func ();
33867/* The GNU C library defines this for functions which it implements
33868 to always fail with ENOSYS. Some functions are actually named
33869 something starting with __ and the normal name is an alias. */
33870#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33871choke me
33872#else
33873char (*f) () = $ac_func;
33874#endif
33875#ifdef __cplusplus
33876}
33877#endif
33878
33879int
33880main ()
33881{
33882return f != $ac_func;
33883 ;
33884 return 0;
33885}
33886_ACEOF
33887rm -f conftest.$ac_objext conftest$ac_exeext
33888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33889 (eval $ac_link) 2>conftest.er1
a848cd7e 33890 ac_status=$?
ac1cb8d3
VS
33891 grep -v '^ *+' conftest.er1 >conftest.err
33892 rm -f conftest.er1
33893 cat conftest.err >&5
a848cd7e
SC
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); } &&
8c539582 33896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33898 (eval $ac_try) 2>&5
33899 ac_status=$?
33900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33901 (exit $ac_status); }; } &&
33902 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33904 (eval $ac_try) 2>&5
33905 ac_status=$?
33906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907 (exit $ac_status); }; }; then
33908 eval "$as_ac_var=yes"
33909else
33910 echo "$as_me: failed program was:" >&5
33911sed 's/^/| /' conftest.$ac_ext >&5
33912
33913eval "$as_ac_var=no"
33914fi
ac1cb8d3
VS
33915rm -f conftest.err conftest.$ac_objext \
33916 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33917fi
33918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33919echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33920if test `eval echo '${'$as_ac_var'}'` = yes; then
33921 cat >>confdefs.h <<_ACEOF
33922#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33923_ACEOF
33924 cat >>confdefs.h <<\_ACEOF
33925#define HAVE_INET_ATON 1
33926_ACEOF
33927
33928else
33929
33930 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33931echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33932echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33933if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33934 echo $ECHO_N "(cached) $ECHO_C" >&6
33935else
33936 ac_check_lib_save_LIBS=$LIBS
33937LIBS="-l$INET_LINK $LIBS"
33938cat >conftest.$ac_ext <<_ACEOF
33939/* confdefs.h. */
33940_ACEOF
33941cat confdefs.h >>conftest.$ac_ext
33942cat >>conftest.$ac_ext <<_ACEOF
33943/* end confdefs.h. */
33944
33945/* Override any gcc2 internal prototype to avoid an error. */
33946#ifdef __cplusplus
33947extern "C"
33948#endif
33949/* We use char because int might match the return type of a gcc2
33950 builtin and then its argument prototype would still apply. */
33951char inet_aton ();
33952int
33953main ()
33954{
33955inet_aton ();
33956 ;
33957 return 0;
33958}
33959_ACEOF
33960rm -f conftest.$ac_objext conftest$ac_exeext
33961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33962 (eval $ac_link) 2>conftest.er1
a848cd7e 33963 ac_status=$?
ac1cb8d3
VS
33964 grep -v '^ *+' conftest.er1 >conftest.err
33965 rm -f conftest.er1
33966 cat conftest.err >&5
a848cd7e
SC
33967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968 (exit $ac_status); } &&
8c539582 33969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33971 (eval $ac_try) 2>&5
33972 ac_status=$?
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); }; } &&
33975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33977 (eval $ac_try) 2>&5
33978 ac_status=$?
33979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980 (exit $ac_status); }; }; then
33981 eval "$as_ac_Lib=yes"
33982else
33983 echo "$as_me: failed program was:" >&5
33984sed 's/^/| /' conftest.$ac_ext >&5
33985
33986eval "$as_ac_Lib=no"
33987fi
ac1cb8d3
VS
33988rm -f conftest.err conftest.$ac_objext \
33989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33990LIBS=$ac_check_lib_save_LIBS
33991fi
33992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33993echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33994if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33995 cat >>confdefs.h <<\_ACEOF
33996#define HAVE_INET_ATON 1
33997_ACEOF
33998
33999fi
34000
34001
34002fi
34003done
34004
34005
34006if test "x$INET_LINK" != "x"; then
34007 cat >>confdefs.h <<\_ACEOF
34008#define HAVE_INET_ADDR 1
34009_ACEOF
34010
34011 INET_LINK=" -l$INET_LINK"
34012fi
34013
34014fi
34015
34016
34017
34018EXTRALIBS_ESD=
34019echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34020echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34021if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34022 echo $ECHO_N "(cached) $ECHO_C" >&6
34023else
34024 ac_check_lib_save_LIBS=$LIBS
34025LIBS="-lesd $LIBS"
34026cat >conftest.$ac_ext <<_ACEOF
34027/* confdefs.h. */
34028_ACEOF
34029cat confdefs.h >>conftest.$ac_ext
34030cat >>conftest.$ac_ext <<_ACEOF
34031/* end confdefs.h. */
34032
34033/* Override any gcc2 internal prototype to avoid an error. */
34034#ifdef __cplusplus
34035extern "C"
34036#endif
34037/* We use char because int might match the return type of a gcc2
34038 builtin and then its argument prototype would still apply. */
34039char esd_close ();
34040int
34041main ()
34042{
34043esd_close ();
34044 ;
34045 return 0;
34046}
34047_ACEOF
34048rm -f conftest.$ac_objext conftest$ac_exeext
34049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34050 (eval $ac_link) 2>conftest.er1
a848cd7e 34051 ac_status=$?
ac1cb8d3
VS
34052 grep -v '^ *+' conftest.er1 >conftest.err
34053 rm -f conftest.er1
34054 cat conftest.err >&5
a848cd7e
SC
34055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34056 (exit $ac_status); } &&
8c539582 34057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34059 (eval $ac_try) 2>&5
34060 ac_status=$?
34061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062 (exit $ac_status); }; } &&
34063 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34065 (eval $ac_try) 2>&5
34066 ac_status=$?
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); }; }; then
34069 ac_cv_lib_esd_esd_close=yes
34070else
34071 echo "$as_me: failed program was:" >&5
34072sed 's/^/| /' conftest.$ac_ext >&5
34073
34074ac_cv_lib_esd_esd_close=no
34075fi
ac1cb8d3
VS
34076rm -f conftest.err conftest.$ac_objext \
34077 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34078LIBS=$ac_check_lib_save_LIBS
34079fi
34080echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34081echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34082if test $ac_cv_lib_esd_esd_close = yes; then
34083
34084
34085for ac_header in esd.h
34086do
34087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34088if eval "test \"\${$as_ac_Header+set}\" = set"; then
34089 echo "$as_me:$LINENO: checking for $ac_header" >&5
34090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34091if eval "test \"\${$as_ac_Header+set}\" = set"; then
34092 echo $ECHO_N "(cached) $ECHO_C" >&6
34093fi
34094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34096else
34097 # Is the header compilable?
34098echo "$as_me:$LINENO: checking $ac_header usability" >&5
34099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34100cat >conftest.$ac_ext <<_ACEOF
34101/* confdefs.h. */
34102_ACEOF
34103cat confdefs.h >>conftest.$ac_ext
34104cat >>conftest.$ac_ext <<_ACEOF
34105/* end confdefs.h. */
34106$ac_includes_default
34107#include <$ac_header>
34108_ACEOF
34109rm -f conftest.$ac_objext
34110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34111 (eval $ac_compile) 2>conftest.er1
a848cd7e 34112 ac_status=$?
ac1cb8d3
VS
34113 grep -v '^ *+' conftest.er1 >conftest.err
34114 rm -f conftest.er1
34115 cat conftest.err >&5
a848cd7e
SC
34116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 (exit $ac_status); } &&
8c539582 34118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34120 (eval $ac_try) 2>&5
34121 ac_status=$?
34122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123 (exit $ac_status); }; } &&
34124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34126 (eval $ac_try) 2>&5
34127 ac_status=$?
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); }; }; then
34130 ac_header_compiler=yes
34131else
34132 echo "$as_me: failed program was:" >&5
34133sed 's/^/| /' conftest.$ac_ext >&5
34134
34135ac_header_compiler=no
34136fi
ac1cb8d3 34137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34139echo "${ECHO_T}$ac_header_compiler" >&6
34140
34141# Is the header present?
34142echo "$as_me:$LINENO: checking $ac_header presence" >&5
34143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34144cat >conftest.$ac_ext <<_ACEOF
34145/* confdefs.h. */
34146_ACEOF
34147cat confdefs.h >>conftest.$ac_ext
34148cat >>conftest.$ac_ext <<_ACEOF
34149/* end confdefs.h. */
34150#include <$ac_header>
34151_ACEOF
34152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34154 ac_status=$?
34155 grep -v '^ *+' conftest.er1 >conftest.err
34156 rm -f conftest.er1
34157 cat conftest.err >&5
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); } >/dev/null; then
34160 if test -s conftest.err; then
34161 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34163 else
34164 ac_cpp_err=
34165 fi
34166else
34167 ac_cpp_err=yes
34168fi
34169if test -z "$ac_cpp_err"; then
34170 ac_header_preproc=yes
34171else
34172 echo "$as_me: failed program was:" >&5
34173sed 's/^/| /' conftest.$ac_ext >&5
34174
34175 ac_header_preproc=no
34176fi
34177rm -f conftest.err conftest.$ac_ext
34178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34179echo "${ECHO_T}$ac_header_preproc" >&6
34180
34181# So? What about this header?
ac1cb8d3
VS
34182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34183 yes:no: )
a848cd7e
SC
34184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34187echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34188 ac_header_preproc=yes
a848cd7e 34189 ;;
ac1cb8d3 34190 no:yes:* )
a848cd7e
SC
34191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34192echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34194echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34196echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34198echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34202echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34203 (
34204 cat <<\_ASBOX
ac1cb8d3
VS
34205## ----------------------------------------- ##
34206## Report this to wx-dev@lists.wxwidgets.org ##
34207## ----------------------------------------- ##
a848cd7e
SC
34208_ASBOX
34209 ) |
34210 sed "s/^/$as_me: WARNING: /" >&2
34211 ;;
34212esac
34213echo "$as_me:$LINENO: checking for $ac_header" >&5
34214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34215if eval "test \"\${$as_ac_Header+set}\" = set"; then
34216 echo $ECHO_N "(cached) $ECHO_C" >&6
34217else
ac1cb8d3 34218 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34219fi
34220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34222
34223fi
34224if test `eval echo '${'$as_ac_Header'}'` = yes; then
34225 cat >>confdefs.h <<_ACEOF
34226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34227_ACEOF
34228
34229 EXTRALIBS_ESD="-lesd"
34230
34231fi
34232
34233done
34234
34235
34236fi
34237
34238
34239
34240echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34241echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34242cat >conftest.$ac_ext <<_ACEOF
34243/* confdefs.h. */
34244_ACEOF
34245cat confdefs.h >>conftest.$ac_ext
34246cat >>conftest.$ac_ext <<_ACEOF
34247/* end confdefs.h. */
34248#ifdef __linux__
34249 #include <linux/cdrom.h>
34250 #else
34251 /* For Solaris */
34252 #include <sys/cdio.h>
34253 #endif
34254
34255int
34256main ()
34257{
34258struct cdrom_tocentry entry, old_entry;
34259 ;
34260 return 0;
34261}
34262_ACEOF
34263rm -f conftest.$ac_objext
34264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34265 (eval $ac_compile) 2>conftest.er1
a848cd7e 34266 ac_status=$?
ac1cb8d3
VS
34267 grep -v '^ *+' conftest.er1 >conftest.err
34268 rm -f conftest.er1
34269 cat conftest.err >&5
a848cd7e
SC
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); } &&
8c539582 34272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34274 (eval $ac_try) 2>&5
34275 ac_status=$?
34276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277 (exit $ac_status); }; } &&
34278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34280 (eval $ac_try) 2>&5
34281 ac_status=$?
34282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34283 (exit $ac_status); }; }; then
34284 echo "$as_me:$LINENO: result: yes" >&5
34285echo "${ECHO_T}yes" >&6
34286 cat >>confdefs.h <<\_ACEOF
34287#define HAVE_KNOWN_CDROM_INTERFACE 1
34288_ACEOF
34289
34290else
34291 echo "$as_me: failed program was:" >&5
34292sed 's/^/| /' conftest.$ac_ext >&5
34293
34294echo "$as_me:$LINENO: result: no" >&5
34295echo "${ECHO_T}no" >&6
34296fi
ac1cb8d3 34297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34298
34299
34300cat >confcache <<\_ACEOF
34301# This file is a shell script that caches the results of configure
34302# tests run on this system so they can be shared between configure
34303# scripts and configure runs, see configure's option --config-cache.
34304# It is not useful on other systems. If it contains results you don't
34305# want to keep, you may remove or edit it.
34306#
34307# config.status only pays attention to the cache file if you give it
34308# the --recheck option to rerun configure.
34309#
34310# `ac_cv_env_foo' variables (set or unset) will be overridden when
34311# loading this file, other *unset* `ac_cv_foo' will be assigned the
34312# following values.
34313
34314_ACEOF
34315
34316# The following way of writing the cache mishandles newlines in values,
34317# but we know of no workaround that is simple, portable, and efficient.
34318# So, don't put newlines in cache variables' values.
34319# Ultrix sh set writes to stderr and can't be redirected directly,
34320# and sets the high bit in the cache file unless we assign to the vars.
34321{
34322 (set) 2>&1 |
34323 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34324 *ac_space=\ *)
34325 # `set' does not quote correctly, so add quotes (double-quote
34326 # substitution turns \\\\ into \\, and sed turns \\ into \).
34327 sed -n \
ac1cb8d3
VS
34328 "s/'/'\\\\''/g;
34329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34330 ;;
34331 *)
34332 # `set' quotes correctly as required by POSIX, so do not add quotes.
34333 sed -n \
ac1cb8d3 34334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34335 ;;
34336 esac;
34337} |
34338 sed '
34339 t clear
34340 : clear
34341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34342 t end
34343 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34344 : end' >>confcache
34345if diff $cache_file confcache >/dev/null 2>&1; then :; else
34346 if test -w $cache_file; then
34347 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34348 cat confcache >$cache_file
34349 else
34350 echo "not updating unwritable cache $cache_file"
34351 fi
34352fi
34353rm -f confcache
34354
34355
34356CPP_MT_FLAG=
34357if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34358
34359
34360 THREADS_LINK=
34361 THREADS_CFLAGS=
34362
34363 if test "$wxUSE_THREADS" = "yes" ; then
34364 if test "$USE_BEOS" = 1; then
34365 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34366echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34367 wxUSE_THREADS="no"
34368 fi
34369 fi
34370
34371 if test "$wxUSE_THREADS" = "yes" ; then
34372
34373
34374 THREAD_OPTS="-pthread"
34375 case "${host}" in
34376 *-*-solaris2* | *-*-sunos4* )
34377 if test "x$GCC" = "xyes"; then
34378 THREAD_OPTS="-pthreads $THREAD_OPTS"
34379 else
34380 THREAD_OPTS="-mt $THREAD_OPTS"
34381 fi
34382 ;;
34383 *-*-freebsd*)
34384 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34385 ;;
34386 *-*-darwin* | *-*-cygwin* )
34387 THREAD_OPTS=""
34388 ;;
34389 *-*-aix*)
34390 THREAD_OPTS="pthreads"
34391 ;;
34392 *-hp-hpux* )
34393 if test "x$GCC" != "xyes"; then
34394 THREAD_OPTS=""
34395 fi
34396 ;;
34397
34398 *-*-irix* )
34399 if test "x$GCC" = "xyes"; then
34400 THREAD_OPTS=""
34401 fi
34402 ;;
34403
34404 *-*-*UnixWare*)
34405 if test "x$GCC" != "xyes"; then
34406 THREAD_OPTS="-Ethread"
34407 fi
34408 ;;
34409 esac
34410
34411 THREAD_OPTS="$THREAD_OPTS pthread none"
34412
34413 THREADS_OK=no
34414 for flag in $THREAD_OPTS; do
34415 case $flag in
34416 none)
34417 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34418echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34419 ;;
34420
34421 -*)
34422 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34423echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34424 THREADS_CFLAGS="$flag"
34425 ;;
34426
34427 *)
34428 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34429echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34430 THREADS_LINK="-l$flag"
34431 ;;
34432 esac
34433
34434 save_LIBS="$LIBS"
34435 save_CFLAGS="$CFLAGS"
34436 LIBS="$THREADS_LINK $LIBS"
34437 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34438
34439 cat >conftest.$ac_ext <<_ACEOF
34440/* confdefs.h. */
34441_ACEOF
34442cat confdefs.h >>conftest.$ac_ext
34443cat >>conftest.$ac_ext <<_ACEOF
34444/* end confdefs.h. */
34445#include <pthread.h>
34446int
34447main ()
34448{
34449pthread_create(0,0,0,0);
34450 ;
34451 return 0;
34452}
34453_ACEOF
34454rm -f conftest.$ac_objext conftest$ac_exeext
34455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34456 (eval $ac_link) 2>conftest.er1
a848cd7e 34457 ac_status=$?
ac1cb8d3
VS
34458 grep -v '^ *+' conftest.er1 >conftest.err
34459 rm -f conftest.er1
34460 cat conftest.err >&5
a848cd7e
SC
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); } &&
8c539582 34463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34465 (eval $ac_try) 2>&5
34466 ac_status=$?
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); }; } &&
34469 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34471 (eval $ac_try) 2>&5
34472 ac_status=$?
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); }; }; then
34475 THREADS_OK=yes
34476else
34477 echo "$as_me: failed program was:" >&5
34478sed 's/^/| /' conftest.$ac_ext >&5
34479
34480fi
ac1cb8d3
VS
34481rm -f conftest.err conftest.$ac_objext \
34482 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34483
34484 LIBS="$save_LIBS"
34485 CFLAGS="$save_CFLAGS"
34486
34487 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34488echo "${ECHO_T}$THREADS_OK" >&6
34489 if test "x$THREADS_OK" = "xyes"; then
34490 break;
34491 fi
34492
34493 THREADS_LINK=""
34494 THREADS_CFLAGS=""
34495 done
34496
34497 if test "x$THREADS_OK" != "xyes"; then
34498 wxUSE_THREADS=no
34499 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34500echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34501 else
34502 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34503 LIBS="$THREADS_LINK $LIBS"
34504
34505 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34506echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34507 flag=no
34508 case "${host}" in
34509 *-aix*)
34510 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34511 flag="-D_THREAD_SAFE"
34512 ;;
34513 *-freebsd*)
34514 flag="-D_THREAD_SAFE"
34515 ;;
34516 *-hp-hpux* )
34517 flag="-D_REENTRANT"
34518 if test "x$GCC" != "xyes"; then
34519 flag="$flag -D_RWSTD_MULTI_THREAD"
34520 fi
34521 ;;
34522 *solaris* | alpha*-osf*)
34523 flag="-D_REENTRANT"
34524 ;;
34525 esac
34526 echo "$as_me:$LINENO: result: ${flag}" >&5
34527echo "${ECHO_T}${flag}" >&6
34528 if test "x$flag" != xno; then
34529 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34530 fi
34531
34532 if test "x$THREADS_CFLAGS" != "x"; then
34533 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34534 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34535 fi
34536 fi
34537 fi
34538
34539 if test "$wxUSE_THREADS" = "yes" ; then
34540
34541for ac_func in thr_setconcurrency
34542do
34543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34544echo "$as_me:$LINENO: checking for $ac_func" >&5
34545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34546if eval "test \"\${$as_ac_var+set}\" = set"; then
34547 echo $ECHO_N "(cached) $ECHO_C" >&6
34548else
34549 cat >conftest.$ac_ext <<_ACEOF
34550/* confdefs.h. */
34551_ACEOF
34552cat confdefs.h >>conftest.$ac_ext
34553cat >>conftest.$ac_ext <<_ACEOF
34554/* end confdefs.h. */
ac1cb8d3
VS
34555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34557#define $ac_func innocuous_$ac_func
34558
a848cd7e
SC
34559/* System header to define __stub macros and hopefully few prototypes,
34560 which can conflict with char $ac_func (); below.
34561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34562 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34563
a848cd7e
SC
34564#ifdef __STDC__
34565# include <limits.h>
34566#else
34567# include <assert.h>
34568#endif
ac1cb8d3
VS
34569
34570#undef $ac_func
34571
a848cd7e
SC
34572/* Override any gcc2 internal prototype to avoid an error. */
34573#ifdef __cplusplus
34574extern "C"
34575{
34576#endif
34577/* We use char because int might match the return type of a gcc2
34578 builtin and then its argument prototype would still apply. */
34579char $ac_func ();
34580/* The GNU C library defines this for functions which it implements
34581 to always fail with ENOSYS. Some functions are actually named
34582 something starting with __ and the normal name is an alias. */
34583#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34584choke me
34585#else
34586char (*f) () = $ac_func;
34587#endif
34588#ifdef __cplusplus
34589}
34590#endif
34591
34592int
34593main ()
34594{
34595return f != $ac_func;
34596 ;
34597 return 0;
34598}
34599_ACEOF
34600rm -f conftest.$ac_objext conftest$ac_exeext
34601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34602 (eval $ac_link) 2>conftest.er1
a848cd7e 34603 ac_status=$?
ac1cb8d3
VS
34604 grep -v '^ *+' conftest.er1 >conftest.err
34605 rm -f conftest.er1
34606 cat conftest.err >&5
a848cd7e
SC
34607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608 (exit $ac_status); } &&
8c539582 34609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34611 (eval $ac_try) 2>&5
34612 ac_status=$?
34613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614 (exit $ac_status); }; } &&
34615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34617 (eval $ac_try) 2>&5
34618 ac_status=$?
34619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620 (exit $ac_status); }; }; then
34621 eval "$as_ac_var=yes"
34622else
34623 echo "$as_me: failed program was:" >&5
34624sed 's/^/| /' conftest.$ac_ext >&5
34625
34626eval "$as_ac_var=no"
34627fi
ac1cb8d3
VS
34628rm -f conftest.err conftest.$ac_objext \
34629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34630fi
34631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34632echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34633if test `eval echo '${'$as_ac_var'}'` = yes; then
34634 cat >>confdefs.h <<_ACEOF
34635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34636_ACEOF
34637
34638fi
34639done
34640
34641
34642
34643for ac_header in sched.h
34644do
34645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34646if eval "test \"\${$as_ac_Header+set}\" = set"; then
34647 echo "$as_me:$LINENO: checking for $ac_header" >&5
34648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34649if eval "test \"\${$as_ac_Header+set}\" = set"; then
34650 echo $ECHO_N "(cached) $ECHO_C" >&6
34651fi
34652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34654else
34655 # Is the header compilable?
34656echo "$as_me:$LINENO: checking $ac_header usability" >&5
34657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34658cat >conftest.$ac_ext <<_ACEOF
34659/* confdefs.h. */
34660_ACEOF
34661cat confdefs.h >>conftest.$ac_ext
34662cat >>conftest.$ac_ext <<_ACEOF
34663/* end confdefs.h. */
34664$ac_includes_default
34665#include <$ac_header>
34666_ACEOF
34667rm -f conftest.$ac_objext
34668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34669 (eval $ac_compile) 2>conftest.er1
a848cd7e 34670 ac_status=$?
ac1cb8d3
VS
34671 grep -v '^ *+' conftest.er1 >conftest.err
34672 rm -f conftest.er1
34673 cat conftest.err >&5
a848cd7e
SC
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); } &&
8c539582 34676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34678 (eval $ac_try) 2>&5
34679 ac_status=$?
34680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34681 (exit $ac_status); }; } &&
34682 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34684 (eval $ac_try) 2>&5
34685 ac_status=$?
34686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); }; }; then
34688 ac_header_compiler=yes
34689else
34690 echo "$as_me: failed program was:" >&5
34691sed 's/^/| /' conftest.$ac_ext >&5
34692
34693ac_header_compiler=no
34694fi
ac1cb8d3 34695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34696echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34697echo "${ECHO_T}$ac_header_compiler" >&6
34698
34699# Is the header present?
34700echo "$as_me:$LINENO: checking $ac_header presence" >&5
34701echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34702cat >conftest.$ac_ext <<_ACEOF
34703/* confdefs.h. */
34704_ACEOF
34705cat confdefs.h >>conftest.$ac_ext
34706cat >>conftest.$ac_ext <<_ACEOF
34707/* end confdefs.h. */
34708#include <$ac_header>
34709_ACEOF
34710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34712 ac_status=$?
34713 grep -v '^ *+' conftest.er1 >conftest.err
34714 rm -f conftest.er1
34715 cat conftest.err >&5
34716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717 (exit $ac_status); } >/dev/null; then
34718 if test -s conftest.err; then
34719 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34721 else
34722 ac_cpp_err=
34723 fi
34724else
34725 ac_cpp_err=yes
34726fi
34727if test -z "$ac_cpp_err"; then
34728 ac_header_preproc=yes
34729else
34730 echo "$as_me: failed program was:" >&5
34731sed 's/^/| /' conftest.$ac_ext >&5
34732
34733 ac_header_preproc=no
34734fi
34735rm -f conftest.err conftest.$ac_ext
34736echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34737echo "${ECHO_T}$ac_header_preproc" >&6
34738
34739# So? What about this header?
ac1cb8d3
VS
34740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34741 yes:no: )
a848cd7e
SC
34742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34743echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34745echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34746 ac_header_preproc=yes
a848cd7e 34747 ;;
ac1cb8d3 34748 no:yes:* )
a848cd7e
SC
34749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34750echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34752echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34754echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34756echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34758echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34760echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34761 (
34762 cat <<\_ASBOX
ac1cb8d3
VS
34763## ----------------------------------------- ##
34764## Report this to wx-dev@lists.wxwidgets.org ##
34765## ----------------------------------------- ##
a848cd7e
SC
34766_ASBOX
34767 ) |
34768 sed "s/^/$as_me: WARNING: /" >&2
34769 ;;
34770esac
34771echo "$as_me:$LINENO: checking for $ac_header" >&5
34772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34773if eval "test \"\${$as_ac_Header+set}\" = set"; then
34774 echo $ECHO_N "(cached) $ECHO_C" >&6
34775else
ac1cb8d3 34776 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34777fi
34778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34780
34781fi
34782if test `eval echo '${'$as_ac_Header'}'` = yes; then
34783 cat >>confdefs.h <<_ACEOF
34784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34785_ACEOF
34786
34787fi
34788
34789done
34790
34791 if test "$ac_cv_header_sched_h" = "yes"; then
34792 echo "$as_me:$LINENO: checking for sched_yield" >&5
34793echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34794if test "${ac_cv_func_sched_yield+set}" = set; then
34795 echo $ECHO_N "(cached) $ECHO_C" >&6
34796else
34797 cat >conftest.$ac_ext <<_ACEOF
34798/* confdefs.h. */
34799_ACEOF
34800cat confdefs.h >>conftest.$ac_ext
34801cat >>conftest.$ac_ext <<_ACEOF
34802/* end confdefs.h. */
ac1cb8d3
VS
34803/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34805#define sched_yield innocuous_sched_yield
34806
a848cd7e
SC
34807/* System header to define __stub macros and hopefully few prototypes,
34808 which can conflict with char sched_yield (); below.
34809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34810 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34811
a848cd7e
SC
34812#ifdef __STDC__
34813# include <limits.h>
34814#else
34815# include <assert.h>
34816#endif
ac1cb8d3
VS
34817
34818#undef sched_yield
34819
a848cd7e
SC
34820/* Override any gcc2 internal prototype to avoid an error. */
34821#ifdef __cplusplus
34822extern "C"
34823{
34824#endif
34825/* We use char because int might match the return type of a gcc2
34826 builtin and then its argument prototype would still apply. */
34827char sched_yield ();
34828/* The GNU C library defines this for functions which it implements
34829 to always fail with ENOSYS. Some functions are actually named
34830 something starting with __ and the normal name is an alias. */
34831#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34832choke me
34833#else
34834char (*f) () = sched_yield;
34835#endif
34836#ifdef __cplusplus
34837}
34838#endif
34839
34840int
34841main ()
34842{
34843return f != sched_yield;
34844 ;
34845 return 0;
34846}
34847_ACEOF
34848rm -f conftest.$ac_objext conftest$ac_exeext
34849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34850 (eval $ac_link) 2>conftest.er1
a848cd7e 34851 ac_status=$?
ac1cb8d3
VS
34852 grep -v '^ *+' conftest.er1 >conftest.err
34853 rm -f conftest.er1
34854 cat conftest.err >&5
a848cd7e
SC
34855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34856 (exit $ac_status); } &&
8c539582 34857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34859 (eval $ac_try) 2>&5
34860 ac_status=$?
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); }; } &&
34863 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34865 (eval $ac_try) 2>&5
34866 ac_status=$?
34867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868 (exit $ac_status); }; }; then
34869 ac_cv_func_sched_yield=yes
34870else
34871 echo "$as_me: failed program was:" >&5
34872sed 's/^/| /' conftest.$ac_ext >&5
34873
34874ac_cv_func_sched_yield=no
34875fi
ac1cb8d3
VS
34876rm -f conftest.err conftest.$ac_objext \
34877 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34878fi
34879echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34880echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34881if test $ac_cv_func_sched_yield = yes; then
34882 cat >>confdefs.h <<\_ACEOF
34883#define HAVE_SCHED_YIELD 1
34884_ACEOF
34885
34886else
34887
34888 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34889echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34890if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34891 echo $ECHO_N "(cached) $ECHO_C" >&6
34892else
34893 ac_check_lib_save_LIBS=$LIBS
34894LIBS="-lposix4 $LIBS"
34895cat >conftest.$ac_ext <<_ACEOF
34896/* confdefs.h. */
34897_ACEOF
34898cat confdefs.h >>conftest.$ac_ext
34899cat >>conftest.$ac_ext <<_ACEOF
34900/* end confdefs.h. */
34901
34902/* Override any gcc2 internal prototype to avoid an error. */
34903#ifdef __cplusplus
34904extern "C"
34905#endif
34906/* We use char because int might match the return type of a gcc2
34907 builtin and then its argument prototype would still apply. */
34908char sched_yield ();
34909int
34910main ()
34911{
34912sched_yield ();
34913 ;
34914 return 0;
34915}
34916_ACEOF
34917rm -f conftest.$ac_objext conftest$ac_exeext
34918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34919 (eval $ac_link) 2>conftest.er1
a848cd7e 34920 ac_status=$?
ac1cb8d3
VS
34921 grep -v '^ *+' conftest.er1 >conftest.err
34922 rm -f conftest.er1
34923 cat conftest.err >&5
a848cd7e
SC
34924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925 (exit $ac_status); } &&
8c539582 34926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34928 (eval $ac_try) 2>&5
34929 ac_status=$?
34930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931 (exit $ac_status); }; } &&
34932 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34934 (eval $ac_try) 2>&5
34935 ac_status=$?
34936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937 (exit $ac_status); }; }; then
34938 ac_cv_lib_posix4_sched_yield=yes
34939else
34940 echo "$as_me: failed program was:" >&5
34941sed 's/^/| /' conftest.$ac_ext >&5
34942
34943ac_cv_lib_posix4_sched_yield=no
34944fi
ac1cb8d3
VS
34945rm -f conftest.err conftest.$ac_objext \
34946 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34947LIBS=$ac_check_lib_save_LIBS
34948fi
34949echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34950echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34951if test $ac_cv_lib_posix4_sched_yield = yes; then
34952 cat >>confdefs.h <<\_ACEOF
34953#define HAVE_SCHED_YIELD 1
34954_ACEOF
34955 POSIX4_LINK=" -lposix4"
34956else
34957 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34958echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34959
34960fi
34961
34962
34963
34964fi
34965
34966 fi
34967
34968 HAVE_PRIOR_FUNCS=0
34969 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34970echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34971if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34972 echo $ECHO_N "(cached) $ECHO_C" >&6
34973else
34974 cat >conftest.$ac_ext <<_ACEOF
34975/* confdefs.h. */
34976_ACEOF
34977cat confdefs.h >>conftest.$ac_ext
34978cat >>conftest.$ac_ext <<_ACEOF
34979/* end confdefs.h. */
ac1cb8d3
VS
34980/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34982#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34983
a848cd7e
SC
34984/* System header to define __stub macros and hopefully few prototypes,
34985 which can conflict with char pthread_attr_getschedpolicy (); below.
34986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34987 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34988
a848cd7e
SC
34989#ifdef __STDC__
34990# include <limits.h>
34991#else
34992# include <assert.h>
34993#endif
ac1cb8d3
VS
34994
34995#undef pthread_attr_getschedpolicy
34996
a848cd7e
SC
34997/* Override any gcc2 internal prototype to avoid an error. */
34998#ifdef __cplusplus
34999extern "C"
35000{
35001#endif
35002/* We use char because int might match the return type of a gcc2
35003 builtin and then its argument prototype would still apply. */
35004char pthread_attr_getschedpolicy ();
35005/* The GNU C library defines this for functions which it implements
35006 to always fail with ENOSYS. Some functions are actually named
35007 something starting with __ and the normal name is an alias. */
35008#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35009choke me
35010#else
35011char (*f) () = pthread_attr_getschedpolicy;
35012#endif
35013#ifdef __cplusplus
35014}
35015#endif
35016
35017int
35018main ()
35019{
35020return f != pthread_attr_getschedpolicy;
35021 ;
35022 return 0;
35023}
35024_ACEOF
35025rm -f conftest.$ac_objext conftest$ac_exeext
35026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35027 (eval $ac_link) 2>conftest.er1
a848cd7e 35028 ac_status=$?
ac1cb8d3
VS
35029 grep -v '^ *+' conftest.er1 >conftest.err
35030 rm -f conftest.er1
35031 cat conftest.err >&5
a848cd7e
SC
35032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35033 (exit $ac_status); } &&
8c539582 35034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35036 (eval $ac_try) 2>&5
35037 ac_status=$?
35038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039 (exit $ac_status); }; } &&
35040 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35042 (eval $ac_try) 2>&5
35043 ac_status=$?
35044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045 (exit $ac_status); }; }; then
35046 ac_cv_func_pthread_attr_getschedpolicy=yes
35047else
35048 echo "$as_me: failed program was:" >&5
35049sed 's/^/| /' conftest.$ac_ext >&5
35050
35051ac_cv_func_pthread_attr_getschedpolicy=no
35052fi
ac1cb8d3
VS
35053rm -f conftest.err conftest.$ac_objext \
35054 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35055fi
35056echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35057echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35058if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35059 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35060echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35061if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35062 echo $ECHO_N "(cached) $ECHO_C" >&6
35063else
35064 cat >conftest.$ac_ext <<_ACEOF
35065/* confdefs.h. */
35066_ACEOF
35067cat confdefs.h >>conftest.$ac_ext
35068cat >>conftest.$ac_ext <<_ACEOF
35069/* end confdefs.h. */
ac1cb8d3
VS
35070/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35072#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35073
a848cd7e
SC
35074/* System header to define __stub macros and hopefully few prototypes,
35075 which can conflict with char pthread_attr_setschedparam (); below.
35076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35077 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35078
a848cd7e
SC
35079#ifdef __STDC__
35080# include <limits.h>
35081#else
35082# include <assert.h>
35083#endif
ac1cb8d3
VS
35084
35085#undef pthread_attr_setschedparam
35086
a848cd7e
SC
35087/* Override any gcc2 internal prototype to avoid an error. */
35088#ifdef __cplusplus
35089extern "C"
35090{
35091#endif
35092/* We use char because int might match the return type of a gcc2
35093 builtin and then its argument prototype would still apply. */
35094char pthread_attr_setschedparam ();
35095/* The GNU C library defines this for functions which it implements
35096 to always fail with ENOSYS. Some functions are actually named
35097 something starting with __ and the normal name is an alias. */
35098#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35099choke me
35100#else
35101char (*f) () = pthread_attr_setschedparam;
35102#endif
35103#ifdef __cplusplus
35104}
35105#endif
35106
35107int
35108main ()
35109{
35110return f != pthread_attr_setschedparam;
35111 ;
35112 return 0;
35113}
35114_ACEOF
35115rm -f conftest.$ac_objext conftest$ac_exeext
35116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35117 (eval $ac_link) 2>conftest.er1
a848cd7e 35118 ac_status=$?
ac1cb8d3
VS
35119 grep -v '^ *+' conftest.er1 >conftest.err
35120 rm -f conftest.er1
35121 cat conftest.err >&5
a848cd7e
SC
35122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35123 (exit $ac_status); } &&
8c539582 35124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35126 (eval $ac_try) 2>&5
35127 ac_status=$?
35128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35129 (exit $ac_status); }; } &&
35130 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35132 (eval $ac_try) 2>&5
35133 ac_status=$?
35134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35135 (exit $ac_status); }; }; then
35136 ac_cv_func_pthread_attr_setschedparam=yes
35137else
35138 echo "$as_me: failed program was:" >&5
35139sed 's/^/| /' conftest.$ac_ext >&5
35140
35141ac_cv_func_pthread_attr_setschedparam=no
35142fi
ac1cb8d3
VS
35143rm -f conftest.err conftest.$ac_objext \
35144 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35145fi
35146echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35147echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35148if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35149 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35150echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35151if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35152 echo $ECHO_N "(cached) $ECHO_C" >&6
35153else
35154 cat >conftest.$ac_ext <<_ACEOF
35155/* confdefs.h. */
35156_ACEOF
35157cat confdefs.h >>conftest.$ac_ext
35158cat >>conftest.$ac_ext <<_ACEOF
35159/* end confdefs.h. */
ac1cb8d3
VS
35160/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35162#define sched_get_priority_max innocuous_sched_get_priority_max
35163
a848cd7e
SC
35164/* System header to define __stub macros and hopefully few prototypes,
35165 which can conflict with char sched_get_priority_max (); below.
35166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35167 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35168
a848cd7e
SC
35169#ifdef __STDC__
35170# include <limits.h>
35171#else
35172# include <assert.h>
35173#endif
ac1cb8d3
VS
35174
35175#undef sched_get_priority_max
35176
a848cd7e
SC
35177/* Override any gcc2 internal prototype to avoid an error. */
35178#ifdef __cplusplus
35179extern "C"
35180{
35181#endif
35182/* We use char because int might match the return type of a gcc2
35183 builtin and then its argument prototype would still apply. */
35184char sched_get_priority_max ();
35185/* The GNU C library defines this for functions which it implements
35186 to always fail with ENOSYS. Some functions are actually named
35187 something starting with __ and the normal name is an alias. */
35188#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35189choke me
35190#else
35191char (*f) () = sched_get_priority_max;
35192#endif
35193#ifdef __cplusplus
35194}
35195#endif
35196
35197int
35198main ()
35199{
35200return f != sched_get_priority_max;
35201 ;
35202 return 0;
35203}
35204_ACEOF
35205rm -f conftest.$ac_objext conftest$ac_exeext
35206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35207 (eval $ac_link) 2>conftest.er1
a848cd7e 35208 ac_status=$?
ac1cb8d3
VS
35209 grep -v '^ *+' conftest.er1 >conftest.err
35210 rm -f conftest.er1
35211 cat conftest.err >&5
a848cd7e
SC
35212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); } &&
8c539582 35214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216 (eval $ac_try) 2>&5
35217 ac_status=$?
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); }; } &&
35220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35222 (eval $ac_try) 2>&5
35223 ac_status=$?
35224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35225 (exit $ac_status); }; }; then
35226 ac_cv_func_sched_get_priority_max=yes
35227else
35228 echo "$as_me: failed program was:" >&5
35229sed 's/^/| /' conftest.$ac_ext >&5
35230
35231ac_cv_func_sched_get_priority_max=no
35232fi
ac1cb8d3
VS
35233rm -f conftest.err conftest.$ac_objext \
35234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35235fi
35236echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35237echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35238if test $ac_cv_func_sched_get_priority_max = yes; then
35239 HAVE_PRIOR_FUNCS=1
35240else
35241 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35242echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35243if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35244 echo $ECHO_N "(cached) $ECHO_C" >&6
35245else
35246 ac_check_lib_save_LIBS=$LIBS
35247LIBS="-lposix4 $LIBS"
35248cat >conftest.$ac_ext <<_ACEOF
35249/* confdefs.h. */
35250_ACEOF
35251cat confdefs.h >>conftest.$ac_ext
35252cat >>conftest.$ac_ext <<_ACEOF
35253/* end confdefs.h. */
35254
35255/* Override any gcc2 internal prototype to avoid an error. */
35256#ifdef __cplusplus
35257extern "C"
35258#endif
35259/* We use char because int might match the return type of a gcc2
35260 builtin and then its argument prototype would still apply. */
35261char sched_get_priority_max ();
35262int
35263main ()
35264{
35265sched_get_priority_max ();
35266 ;
35267 return 0;
35268}
35269_ACEOF
35270rm -f conftest.$ac_objext conftest$ac_exeext
35271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35272 (eval $ac_link) 2>conftest.er1
a848cd7e 35273 ac_status=$?
ac1cb8d3
VS
35274 grep -v '^ *+' conftest.er1 >conftest.err
35275 rm -f conftest.er1
35276 cat conftest.err >&5
a848cd7e
SC
35277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278 (exit $ac_status); } &&
8c539582 35279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35281 (eval $ac_try) 2>&5
35282 ac_status=$?
35283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); }; } &&
35285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35287 (eval $ac_try) 2>&5
35288 ac_status=$?
35289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290 (exit $ac_status); }; }; then
35291 ac_cv_lib_posix4_sched_get_priority_max=yes
35292else
35293 echo "$as_me: failed program was:" >&5
35294sed 's/^/| /' conftest.$ac_ext >&5
35295
35296ac_cv_lib_posix4_sched_get_priority_max=no
35297fi
ac1cb8d3
VS
35298rm -f conftest.err conftest.$ac_objext \
35299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35300LIBS=$ac_check_lib_save_LIBS
35301fi
35302echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35303echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35304if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35305
35306 HAVE_PRIOR_FUNCS=1
35307 POSIX4_LINK=" -lposix4"
35308
35309fi
35310
35311
35312fi
35313
35314
35315fi
35316
35317
35318fi
35319
35320
35321 if test "$HAVE_PRIOR_FUNCS" = 1; then
35322 cat >>confdefs.h <<\_ACEOF
35323#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35324_ACEOF
35325
35326 else
35327 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35328echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35329 fi
35330
35331 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35332echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35333if test "${ac_cv_func_pthread_cancel+set}" = set; then
35334 echo $ECHO_N "(cached) $ECHO_C" >&6
35335else
35336 cat >conftest.$ac_ext <<_ACEOF
35337/* confdefs.h. */
35338_ACEOF
35339cat confdefs.h >>conftest.$ac_ext
35340cat >>conftest.$ac_ext <<_ACEOF
35341/* end confdefs.h. */
ac1cb8d3
VS
35342/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35344#define pthread_cancel innocuous_pthread_cancel
35345
a848cd7e
SC
35346/* System header to define __stub macros and hopefully few prototypes,
35347 which can conflict with char pthread_cancel (); below.
35348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35349 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35350
a848cd7e
SC
35351#ifdef __STDC__
35352# include <limits.h>
35353#else
35354# include <assert.h>
35355#endif
ac1cb8d3
VS
35356
35357#undef pthread_cancel
35358
a848cd7e
SC
35359/* Override any gcc2 internal prototype to avoid an error. */
35360#ifdef __cplusplus
35361extern "C"
35362{
35363#endif
35364/* We use char because int might match the return type of a gcc2
35365 builtin and then its argument prototype would still apply. */
35366char pthread_cancel ();
35367/* The GNU C library defines this for functions which it implements
35368 to always fail with ENOSYS. Some functions are actually named
35369 something starting with __ and the normal name is an alias. */
35370#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35371choke me
35372#else
35373char (*f) () = pthread_cancel;
35374#endif
35375#ifdef __cplusplus
35376}
35377#endif
35378
35379int
35380main ()
35381{
35382return f != pthread_cancel;
35383 ;
35384 return 0;
35385}
35386_ACEOF
35387rm -f conftest.$ac_objext conftest$ac_exeext
35388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35389 (eval $ac_link) 2>conftest.er1
a848cd7e 35390 ac_status=$?
ac1cb8d3
VS
35391 grep -v '^ *+' conftest.er1 >conftest.err
35392 rm -f conftest.er1
35393 cat conftest.err >&5
a848cd7e
SC
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 (exit $ac_status); } &&
8c539582 35396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35398 (eval $ac_try) 2>&5
35399 ac_status=$?
35400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401 (exit $ac_status); }; } &&
35402 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35404 (eval $ac_try) 2>&5
35405 ac_status=$?
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); }; }; then
35408 ac_cv_func_pthread_cancel=yes
35409else
35410 echo "$as_me: failed program was:" >&5
35411sed 's/^/| /' conftest.$ac_ext >&5
35412
35413ac_cv_func_pthread_cancel=no
35414fi
ac1cb8d3
VS
35415rm -f conftest.err conftest.$ac_objext \
35416 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35417fi
35418echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35419echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35420if test $ac_cv_func_pthread_cancel = yes; then
35421 cat >>confdefs.h <<\_ACEOF
35422#define HAVE_PTHREAD_CANCEL 1
35423_ACEOF
35424
35425else
35426 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35427echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35428fi
35429
35430
abc736fd
MW
35431 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
35432echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
35433if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
35434 echo $ECHO_N "(cached) $ECHO_C" >&6
35435else
35436 cat >conftest.$ac_ext <<_ACEOF
35437/* confdefs.h. */
35438_ACEOF
35439cat confdefs.h >>conftest.$ac_ext
35440cat >>conftest.$ac_ext <<_ACEOF
35441/* end confdefs.h. */
35442/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
35443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35444#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
35445
35446/* System header to define __stub macros and hopefully few prototypes,
35447 which can conflict with char pthread_attr_setstacksize (); below.
35448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35449 <limits.h> exists even on freestanding compilers. */
35450
35451#ifdef __STDC__
35452# include <limits.h>
35453#else
35454# include <assert.h>
35455#endif
35456
35457#undef pthread_attr_setstacksize
35458
35459/* Override any gcc2 internal prototype to avoid an error. */
35460#ifdef __cplusplus
35461extern "C"
35462{
35463#endif
35464/* We use char because int might match the return type of a gcc2
35465 builtin and then its argument prototype would still apply. */
35466char pthread_attr_setstacksize ();
35467/* The GNU C library defines this for functions which it implements
35468 to always fail with ENOSYS. Some functions are actually named
35469 something starting with __ and the normal name is an alias. */
35470#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
35471choke me
35472#else
35473char (*f) () = pthread_attr_setstacksize;
35474#endif
35475#ifdef __cplusplus
35476}
35477#endif
35478
35479int
35480main ()
35481{
35482return f != pthread_attr_setstacksize;
35483 ;
35484 return 0;
35485}
35486_ACEOF
35487rm -f conftest.$ac_objext conftest$ac_exeext
35488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35489 (eval $ac_link) 2>conftest.er1
35490 ac_status=$?
35491 grep -v '^ *+' conftest.er1 >conftest.err
35492 rm -f conftest.er1
35493 cat conftest.err >&5
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); } &&
8c539582 35496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
35497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35498 (eval $ac_try) 2>&5
35499 ac_status=$?
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); }; } &&
35502 { ac_try='test -s conftest$ac_exeext'
35503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35504 (eval $ac_try) 2>&5
35505 ac_status=$?
35506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507 (exit $ac_status); }; }; then
35508 ac_cv_func_pthread_attr_setstacksize=yes
35509else
35510 echo "$as_me: failed program was:" >&5
35511sed 's/^/| /' conftest.$ac_ext >&5
35512
35513ac_cv_func_pthread_attr_setstacksize=no
35514fi
35515rm -f conftest.err conftest.$ac_objext \
35516 conftest$ac_exeext conftest.$ac_ext
35517fi
35518echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
35519echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
35520if test $ac_cv_func_pthread_attr_setstacksize = yes; then
35521 cat >>confdefs.h <<\_ACEOF
35522#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
35523_ACEOF
35524
35525fi
35526
a848cd7e
SC
35527
35528
35529 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35530echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35531if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35532 echo $ECHO_N "(cached) $ECHO_C" >&6
35533else
35534
35535 cat >conftest.$ac_ext <<_ACEOF
35536/* confdefs.h. */
35537_ACEOF
35538cat confdefs.h >>conftest.$ac_ext
35539cat >>conftest.$ac_ext <<_ACEOF
35540/* end confdefs.h. */
35541#include <pthread.h>
35542int
35543main ()
35544{
35545
35546 pthread_mutexattr_t attr;
35547 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35548
35549 ;
35550 return 0;
35551}
35552_ACEOF
35553rm -f conftest.$ac_objext
35554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35555 (eval $ac_compile) 2>conftest.er1
a848cd7e 35556 ac_status=$?
ac1cb8d3
VS
35557 grep -v '^ *+' conftest.er1 >conftest.err
35558 rm -f conftest.er1
35559 cat conftest.err >&5
a848cd7e
SC
35560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561 (exit $ac_status); } &&
8c539582 35562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35564 (eval $ac_try) 2>&5
35565 ac_status=$?
35566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567 (exit $ac_status); }; } &&
35568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35570 (eval $ac_try) 2>&5
35571 ac_status=$?
35572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35573 (exit $ac_status); }; }; then
35574
35575 wx_cv_type_pthread_mutexattr_t=yes
35576
35577else
35578 echo "$as_me: failed program was:" >&5
35579sed 's/^/| /' conftest.$ac_ext >&5
35580
35581
35582 wx_cv_type_pthread_mutexattr_t=no
35583
35584
35585fi
ac1cb8d3 35586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35587
35588fi
35589echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35590echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35591
35592 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35593 cat >>confdefs.h <<\_ACEOF
35594#define HAVE_PTHREAD_MUTEXATTR_T 1
35595_ACEOF
35596
35597 else
35598 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35599echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35600if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35601 echo $ECHO_N "(cached) $ECHO_C" >&6
35602else
35603
35604 cat >conftest.$ac_ext <<_ACEOF
35605/* confdefs.h. */
35606_ACEOF
35607cat confdefs.h >>conftest.$ac_ext
35608cat >>conftest.$ac_ext <<_ACEOF
35609/* end confdefs.h. */
35610#include <pthread.h>
35611int
35612main ()
35613{
35614
35615 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35616
35617 ;
35618 return 0;
35619}
35620_ACEOF
35621rm -f conftest.$ac_objext
35622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35623 (eval $ac_compile) 2>conftest.er1
a848cd7e 35624 ac_status=$?
ac1cb8d3
VS
35625 grep -v '^ *+' conftest.er1 >conftest.err
35626 rm -f conftest.er1
35627 cat conftest.err >&5
a848cd7e
SC
35628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35629 (exit $ac_status); } &&
8c539582 35630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35632 (eval $ac_try) 2>&5
35633 ac_status=$?
35634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635 (exit $ac_status); }; } &&
35636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35638 (eval $ac_try) 2>&5
35639 ac_status=$?
35640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641 (exit $ac_status); }; }; then
35642
35643 wx_cv_type_pthread_rec_mutex_init=yes
35644
35645else
35646 echo "$as_me: failed program was:" >&5
35647sed 's/^/| /' conftest.$ac_ext >&5
35648
35649
35650 wx_cv_type_pthread_rec_mutex_init=no
35651
35652
35653fi
ac1cb8d3 35654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35655
35656fi
35657echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35658echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35659 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35660 cat >>confdefs.h <<\_ACEOF
35661#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35662_ACEOF
35663
35664 else
35665 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35666echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35667 fi
35668 fi
35669 fi
35670
35671else
35672 if test "$wxUSE_THREADS" = "yes" ; then
35673 case "${host}" in
35674 *-*-mingw32* )
35675 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35676echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35677if test "${wx_cv_cflags_mthread+set}" = set; then
35678 echo $ECHO_N "(cached) $ECHO_C" >&6
35679else
35680
35681 CFLAGS_OLD="$CFLAGS"
35682 CFLAGS="$CFLAGS -mthreads"
35683 cat >conftest.$ac_ext <<_ACEOF
35684/* confdefs.h. */
35685_ACEOF
35686cat confdefs.h >>conftest.$ac_ext
35687cat >>conftest.$ac_ext <<_ACEOF
35688/* end confdefs.h. */
35689
35690int
35691main ()
35692{
35693
35694 ;
35695 return 0;
35696}
35697_ACEOF
35698rm -f conftest.$ac_objext
35699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35700 (eval $ac_compile) 2>conftest.er1
a848cd7e 35701 ac_status=$?
ac1cb8d3
VS
35702 grep -v '^ *+' conftest.er1 >conftest.err
35703 rm -f conftest.er1
35704 cat conftest.err >&5
a848cd7e
SC
35705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); } &&
8c539582 35707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35710 ac_status=$?
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; } &&
35713 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715 (eval $ac_try) 2>&5
35716 ac_status=$?
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); }; }; then
35719 wx_cv_cflags_mthread=yes
35720else
35721 echo "$as_me: failed program was:" >&5
35722sed 's/^/| /' conftest.$ac_ext >&5
35723
35724wx_cv_cflags_mthread=no
35725
35726fi
ac1cb8d3 35727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35728
35729
35730fi
35731echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35732echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35733
35734 if test "$wx_cv_cflags_mthread" = "yes"; then
35735 CXXFLAGS="$CXXFLAGS -mthreads"
35736 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35737 LDFLAGS="$LDFLAGS -mthreads"
35738 else
35739 CFLAGS="$CFLAGS_OLD"
35740 fi
35741 ;;
35742 *-pc-os2*emx )
35743 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35744 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35745 LDFLAGS="$LDFLAGS -Zmt"
35746 ;;
35747 esac
35748 fi
35749fi
35750
35751if test "$wxUSE_THREADS" = "yes"; then
35752 cat >>confdefs.h <<\_ACEOF
35753#define wxUSE_THREADS 1
35754_ACEOF
35755
35756
35757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35758else
35759 if test "$ac_cv_func_strtok_r" = "yes"; then
35760 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35761echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35762 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35763 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35764 echo "$as_me:$LINENO: result: yes" >&5
35765echo "${ECHO_T}yes" >&6
35766 else
35767 echo "$as_me:$LINENO: result: no" >&5
35768echo "${ECHO_T}no" >&6
35769 fi
35770 fi
35771fi
35772
35773if test "$WXGTK20" = 1 ; then
35774 cat >>confdefs.h <<_ACEOF
35775#define __WXGTK20__ $WXGTK20
35776_ACEOF
35777
35778 WXGTK12=1
35779fi
35780
35781if test "$WXGTK12" = 1 ; then
35782 cat >>confdefs.h <<_ACEOF
35783#define __WXGTK12__ $WXGTK12
35784_ACEOF
35785
35786fi
35787
35788if test "$WXGTK127" = 1 ; then
35789 cat >>confdefs.h <<_ACEOF
35790#define __WXGTK127__ $WXGTK127
35791_ACEOF
35792
35793fi
35794
35795if test "$WXGPE" = 1 ; then
35796 cat >>confdefs.h <<_ACEOF
35797#define __WXGPE__ $WXGPE
35798_ACEOF
35799
35800fi
35801
35802WXDEBUG=
35803
35804if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35805 WXDEBUG="-g"
35806 wxUSE_OPTIMISE=no
35807fi
35808
35809if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35810 wxUSE_DEBUG_INFO=yes
18228ab4
MW
35811 if test "$GCC" = yes; then
35812 WXDEBUG="-ggdb"
35813 fi
a848cd7e
SC
35814fi
35815
35816if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35817 cat >>confdefs.h <<\_ACEOF
35818#define WXDEBUG 1
35819_ACEOF
35820
35821 WXDEBUG_DEFINE="-D__WXDEBUG__"
35822else
35823 if test "$wxUSE_GTK" = 1 ; then
35824 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35825 fi
35826fi
35827
35828if test "$wxUSE_MEM_TRACING" = "yes" ; then
35829 cat >>confdefs.h <<\_ACEOF
35830#define wxUSE_MEMORY_TRACING 1
35831_ACEOF
35832
35833 cat >>confdefs.h <<\_ACEOF
35834#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35835_ACEOF
35836
35837 cat >>confdefs.h <<\_ACEOF
35838#define wxUSE_DEBUG_NEW_ALWAYS 1
35839_ACEOF
35840
35841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35842fi
35843
35844if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 35845 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
35846fi
35847
35848PROFILE=
35849if test "$wxUSE_PROFILE" = "yes" ; then
35850 PROFILE=" -pg"
35851fi
35852
35853CODE_GEN_FLAGS=
35854CODE_GEN_FLAGS_CXX=
35855if test "$GCC" = "yes" ; then
35856 if test "$wxUSE_NO_RTTI" = "yes" ; then
35857 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35858 fi
35859 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35860 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35861 fi
35862 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35863 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35864 fi
35865
35866 case "${host}" in
35867 powerpc*-*-aix* )
35868 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35869 ;;
35870 *-hppa* )
35871 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35872 ;;
35873 esac
35874fi
35875
35876OPTIMISE=
35877if test "$wxUSE_OPTIMISE" = "no" ; then
35878 if test "$GCC" = yes ; then
35879 OPTIMISE="-O0"
35880 fi
35881else
35882 if test "$GCC" = yes ; then
35883 OPTIMISE="-O2"
35884
35885 case "${host}" in
35886 i586-*-*|i686-*-* )
35887 OPTIMISE="${OPTIMISE} "
35888 ;;
35889 esac
35890 else
35891 OPTIMISE="-O"
35892 fi
35893fi
35894
35895
35896if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35897 cat >>confdefs.h <<\_ACEOF
35898#define WXWIN_COMPATIBILITY_2_2 1
35899_ACEOF
35900
35901
35902 WXWIN_COMPATIBILITY_2_4="yes"
35903fi
35904
35905if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35906 cat >>confdefs.h <<\_ACEOF
35907#define WXWIN_COMPATIBILITY_2_4 1
35908_ACEOF
35909
35910fi
35911
35912
35913if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35914 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35915#define wxUSE_GUI 1
35916_ACEOF
35917
35918
370fd4c2 35919 fi
a848cd7e
SC
35920
35921
35922if test "$wxUSE_UNIX" = "yes"; then
35923 cat >>confdefs.h <<\_ACEOF
35924#define wxUSE_UNIX 1
35925_ACEOF
35926
35927fi
35928
35929
35930if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35931
35932 HAVE_DL_FUNCS=0
35933 HAVE_SHL_FUNCS=0
35934 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35935 if test "$USE_DARWIN" = 1; then
35936 HAVE_DL_FUNCS=1
47a7e797
MW
35937 elif test "$USE_DOS" = 1; then
35938 HAVE_DL_FUNCS=0
a848cd7e
SC
35939 else
35940
35941for ac_func in dlopen
35942do
35943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35944echo "$as_me:$LINENO: checking for $ac_func" >&5
35945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35946if eval "test \"\${$as_ac_var+set}\" = set"; then
35947 echo $ECHO_N "(cached) $ECHO_C" >&6
35948else
35949 cat >conftest.$ac_ext <<_ACEOF
35950/* confdefs.h. */
35951_ACEOF
35952cat confdefs.h >>conftest.$ac_ext
35953cat >>conftest.$ac_ext <<_ACEOF
35954/* end confdefs.h. */
ac1cb8d3
VS
35955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35957#define $ac_func innocuous_$ac_func
35958
a848cd7e
SC
35959/* System header to define __stub macros and hopefully few prototypes,
35960 which can conflict with char $ac_func (); below.
35961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35962 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35963
a848cd7e
SC
35964#ifdef __STDC__
35965# include <limits.h>
35966#else
35967# include <assert.h>
35968#endif
ac1cb8d3
VS
35969
35970#undef $ac_func
35971
a848cd7e
SC
35972/* Override any gcc2 internal prototype to avoid an error. */
35973#ifdef __cplusplus
35974extern "C"
35975{
35976#endif
35977/* We use char because int might match the return type of a gcc2
35978 builtin and then its argument prototype would still apply. */
35979char $ac_func ();
35980/* The GNU C library defines this for functions which it implements
35981 to always fail with ENOSYS. Some functions are actually named
35982 something starting with __ and the normal name is an alias. */
35983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35984choke me
35985#else
35986char (*f) () = $ac_func;
35987#endif
35988#ifdef __cplusplus
35989}
35990#endif
35991
35992int
35993main ()
35994{
35995return f != $ac_func;
35996 ;
35997 return 0;
35998}
35999_ACEOF
36000rm -f conftest.$ac_objext conftest$ac_exeext
36001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36002 (eval $ac_link) 2>conftest.er1
a848cd7e 36003 ac_status=$?
ac1cb8d3
VS
36004 grep -v '^ *+' conftest.er1 >conftest.err
36005 rm -f conftest.er1
36006 cat conftest.err >&5
a848cd7e
SC
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); } &&
8c539582 36009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36011 (eval $ac_try) 2>&5
36012 ac_status=$?
36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014 (exit $ac_status); }; } &&
36015 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017 (eval $ac_try) 2>&5
36018 ac_status=$?
36019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020 (exit $ac_status); }; }; then
36021 eval "$as_ac_var=yes"
36022else
36023 echo "$as_me: failed program was:" >&5
36024sed 's/^/| /' conftest.$ac_ext >&5
36025
36026eval "$as_ac_var=no"
36027fi
ac1cb8d3
VS
36028rm -f conftest.err conftest.$ac_objext \
36029 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36030fi
36031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36032echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36033if test `eval echo '${'$as_ac_var'}'` = yes; then
36034 cat >>confdefs.h <<_ACEOF
36035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36036_ACEOF
36037
36038 cat >>confdefs.h <<\_ACEOF
36039#define HAVE_DLOPEN 1
36040_ACEOF
36041
36042 HAVE_DL_FUNCS=1
36043
36044else
36045
36046 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36047echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36048if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36049 echo $ECHO_N "(cached) $ECHO_C" >&6
36050else
36051 ac_check_lib_save_LIBS=$LIBS
36052LIBS="-ldl $LIBS"
36053cat >conftest.$ac_ext <<_ACEOF
36054/* confdefs.h. */
36055_ACEOF
36056cat confdefs.h >>conftest.$ac_ext
36057cat >>conftest.$ac_ext <<_ACEOF
36058/* end confdefs.h. */
36059
36060/* Override any gcc2 internal prototype to avoid an error. */
36061#ifdef __cplusplus
36062extern "C"
36063#endif
36064/* We use char because int might match the return type of a gcc2
36065 builtin and then its argument prototype would still apply. */
36066char dlopen ();
36067int
36068main ()
36069{
36070dlopen ();
36071 ;
36072 return 0;
36073}
36074_ACEOF
36075rm -f conftest.$ac_objext conftest$ac_exeext
36076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36077 (eval $ac_link) 2>conftest.er1
a848cd7e 36078 ac_status=$?
ac1cb8d3
VS
36079 grep -v '^ *+' conftest.er1 >conftest.err
36080 rm -f conftest.er1
36081 cat conftest.err >&5
a848cd7e
SC
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); } &&
8c539582 36084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36086 (eval $ac_try) 2>&5
36087 ac_status=$?
36088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089 (exit $ac_status); }; } &&
36090 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36092 (eval $ac_try) 2>&5
36093 ac_status=$?
36094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36095 (exit $ac_status); }; }; then
36096 ac_cv_lib_dl_dlopen=yes
36097else
36098 echo "$as_me: failed program was:" >&5
36099sed 's/^/| /' conftest.$ac_ext >&5
36100
36101ac_cv_lib_dl_dlopen=no
36102fi
ac1cb8d3
VS
36103rm -f conftest.err conftest.$ac_objext \
36104 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36105LIBS=$ac_check_lib_save_LIBS
36106fi
36107echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36108echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36109if test $ac_cv_lib_dl_dlopen = yes; then
36110
36111 cat >>confdefs.h <<\_ACEOF
36112#define HAVE_DLOPEN 1
36113_ACEOF
36114
36115 HAVE_DL_FUNCS=1
36116 DL_LINK=" -ldl$DL_LINK"
36117
36118else
36119
36120
36121for ac_func in shl_load
36122do
36123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36124echo "$as_me:$LINENO: checking for $ac_func" >&5
36125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36126if eval "test \"\${$as_ac_var+set}\" = set"; then
36127 echo $ECHO_N "(cached) $ECHO_C" >&6
36128else
36129 cat >conftest.$ac_ext <<_ACEOF
36130/* confdefs.h. */
36131_ACEOF
36132cat confdefs.h >>conftest.$ac_ext
36133cat >>conftest.$ac_ext <<_ACEOF
36134/* end confdefs.h. */
ac1cb8d3
VS
36135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36137#define $ac_func innocuous_$ac_func
36138
a848cd7e
SC
36139/* System header to define __stub macros and hopefully few prototypes,
36140 which can conflict with char $ac_func (); below.
36141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36142 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36143
a848cd7e
SC
36144#ifdef __STDC__
36145# include <limits.h>
36146#else
36147# include <assert.h>
36148#endif
ac1cb8d3
VS
36149
36150#undef $ac_func
36151
a848cd7e
SC
36152/* Override any gcc2 internal prototype to avoid an error. */
36153#ifdef __cplusplus
36154extern "C"
36155{
36156#endif
36157/* We use char because int might match the return type of a gcc2
36158 builtin and then its argument prototype would still apply. */
36159char $ac_func ();
36160/* The GNU C library defines this for functions which it implements
36161 to always fail with ENOSYS. Some functions are actually named
36162 something starting with __ and the normal name is an alias. */
36163#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36164choke me
36165#else
36166char (*f) () = $ac_func;
36167#endif
36168#ifdef __cplusplus
36169}
36170#endif
36171
36172int
36173main ()
36174{
36175return f != $ac_func;
36176 ;
36177 return 0;
36178}
36179_ACEOF
36180rm -f conftest.$ac_objext conftest$ac_exeext
36181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36182 (eval $ac_link) 2>conftest.er1
a848cd7e 36183 ac_status=$?
ac1cb8d3
VS
36184 grep -v '^ *+' conftest.er1 >conftest.err
36185 rm -f conftest.er1
36186 cat conftest.err >&5
a848cd7e
SC
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); } &&
8c539582 36189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36191 (eval $ac_try) 2>&5
36192 ac_status=$?
36193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36194 (exit $ac_status); }; } &&
36195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36197 (eval $ac_try) 2>&5
36198 ac_status=$?
36199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36200 (exit $ac_status); }; }; then
36201 eval "$as_ac_var=yes"
36202else
36203 echo "$as_me: failed program was:" >&5
36204sed 's/^/| /' conftest.$ac_ext >&5
36205
36206eval "$as_ac_var=no"
36207fi
ac1cb8d3
VS
36208rm -f conftest.err conftest.$ac_objext \
36209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36210fi
36211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36213if test `eval echo '${'$as_ac_var'}'` = yes; then
36214 cat >>confdefs.h <<_ACEOF
36215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36216_ACEOF
36217
36218 cat >>confdefs.h <<\_ACEOF
36219#define HAVE_SHL_LOAD 1
36220_ACEOF
36221
36222 HAVE_SHL_FUNCS=1
36223
36224else
36225
36226 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36227echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36228if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36229 echo $ECHO_N "(cached) $ECHO_C" >&6
36230else
36231 ac_check_lib_save_LIBS=$LIBS
36232LIBS="-lshl_load $LIBS"
36233cat >conftest.$ac_ext <<_ACEOF
36234/* confdefs.h. */
36235_ACEOF
36236cat confdefs.h >>conftest.$ac_ext
36237cat >>conftest.$ac_ext <<_ACEOF
36238/* end confdefs.h. */
36239
36240/* Override any gcc2 internal prototype to avoid an error. */
36241#ifdef __cplusplus
36242extern "C"
36243#endif
36244/* We use char because int might match the return type of a gcc2
36245 builtin and then its argument prototype would still apply. */
36246char dld ();
36247int
36248main ()
36249{
36250dld ();
36251 ;
36252 return 0;
36253}
36254_ACEOF
36255rm -f conftest.$ac_objext conftest$ac_exeext
36256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36257 (eval $ac_link) 2>conftest.er1
a848cd7e 36258 ac_status=$?
ac1cb8d3
VS
36259 grep -v '^ *+' conftest.er1 >conftest.err
36260 rm -f conftest.er1
36261 cat conftest.err >&5
a848cd7e
SC
36262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263 (exit $ac_status); } &&
8c539582 36264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36266 (eval $ac_try) 2>&5
36267 ac_status=$?
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); }; } &&
36270 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36272 (eval $ac_try) 2>&5
36273 ac_status=$?
36274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36275 (exit $ac_status); }; }; then
36276 ac_cv_lib_shl_load_dld=yes
36277else
36278 echo "$as_me: failed program was:" >&5
36279sed 's/^/| /' conftest.$ac_ext >&5
36280
36281ac_cv_lib_shl_load_dld=no
36282fi
ac1cb8d3
VS
36283rm -f conftest.err conftest.$ac_objext \
36284 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36285LIBS=$ac_check_lib_save_LIBS
36286fi
36287echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36288echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36289if test $ac_cv_lib_shl_load_dld = yes; then
36290
36291 HAVE_SHL_FUNCS=1
36292 DL_LINK=" -ldld$DL_LINK"
36293
36294fi
36295
36296
36297fi
36298done
36299
36300
36301fi
36302
36303
36304fi
36305done
36306
36307
36308 if test "$HAVE_DL_FUNCS" = 1; then
36309
36310for ac_func in dlerror
36311do
36312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36313echo "$as_me:$LINENO: checking for $ac_func" >&5
36314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36315if eval "test \"\${$as_ac_var+set}\" = set"; then
36316 echo $ECHO_N "(cached) $ECHO_C" >&6
36317else
36318 cat >conftest.$ac_ext <<_ACEOF
36319/* confdefs.h. */
36320_ACEOF
36321cat confdefs.h >>conftest.$ac_ext
36322cat >>conftest.$ac_ext <<_ACEOF
36323/* end confdefs.h. */
ac1cb8d3
VS
36324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36326#define $ac_func innocuous_$ac_func
36327
a848cd7e
SC
36328/* System header to define __stub macros and hopefully few prototypes,
36329 which can conflict with char $ac_func (); below.
36330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36331 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36332
a848cd7e
SC
36333#ifdef __STDC__
36334# include <limits.h>
36335#else
36336# include <assert.h>
36337#endif
ac1cb8d3
VS
36338
36339#undef $ac_func
36340
a848cd7e
SC
36341/* Override any gcc2 internal prototype to avoid an error. */
36342#ifdef __cplusplus
36343extern "C"
36344{
36345#endif
36346/* We use char because int might match the return type of a gcc2
36347 builtin and then its argument prototype would still apply. */
36348char $ac_func ();
36349/* The GNU C library defines this for functions which it implements
36350 to always fail with ENOSYS. Some functions are actually named
36351 something starting with __ and the normal name is an alias. */
36352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36353choke me
36354#else
36355char (*f) () = $ac_func;
36356#endif
36357#ifdef __cplusplus
36358}
36359#endif
36360
36361int
36362main ()
36363{
36364return f != $ac_func;
36365 ;
36366 return 0;
36367}
36368_ACEOF
36369rm -f conftest.$ac_objext conftest$ac_exeext
36370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36371 (eval $ac_link) 2>conftest.er1
a848cd7e 36372 ac_status=$?
ac1cb8d3
VS
36373 grep -v '^ *+' conftest.er1 >conftest.err
36374 rm -f conftest.er1
36375 cat conftest.err >&5
a848cd7e
SC
36376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36377 (exit $ac_status); } &&
8c539582 36378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36380 (eval $ac_try) 2>&5
36381 ac_status=$?
36382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383 (exit $ac_status); }; } &&
36384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36386 (eval $ac_try) 2>&5
36387 ac_status=$?
36388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389 (exit $ac_status); }; }; then
36390 eval "$as_ac_var=yes"
36391else
36392 echo "$as_me: failed program was:" >&5
36393sed 's/^/| /' conftest.$ac_ext >&5
36394
36395eval "$as_ac_var=no"
36396fi
ac1cb8d3
VS
36397rm -f conftest.err conftest.$ac_objext \
36398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36399fi
36400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36402if test `eval echo '${'$as_ac_var'}'` = yes; then
36403 cat >>confdefs.h <<_ACEOF
36404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36405_ACEOF
36406 cat >>confdefs.h <<\_ACEOF
36407#define HAVE_DLERROR 1
36408_ACEOF
36409
36410else
36411
36412 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36413echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36414if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36415 echo $ECHO_N "(cached) $ECHO_C" >&6
36416else
36417 ac_check_lib_save_LIBS=$LIBS
36418LIBS="-ldl $LIBS"
36419cat >conftest.$ac_ext <<_ACEOF
36420/* confdefs.h. */
36421_ACEOF
36422cat confdefs.h >>conftest.$ac_ext
36423cat >>conftest.$ac_ext <<_ACEOF
36424/* end confdefs.h. */
36425
36426/* Override any gcc2 internal prototype to avoid an error. */
36427#ifdef __cplusplus
36428extern "C"
36429#endif
36430/* We use char because int might match the return type of a gcc2
36431 builtin and then its argument prototype would still apply. */
36432char dlerror ();
36433int
36434main ()
36435{
36436dlerror ();
36437 ;
36438 return 0;
36439}
36440_ACEOF
36441rm -f conftest.$ac_objext conftest$ac_exeext
36442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36443 (eval $ac_link) 2>conftest.er1
a848cd7e 36444 ac_status=$?
ac1cb8d3
VS
36445 grep -v '^ *+' conftest.er1 >conftest.err
36446 rm -f conftest.er1
36447 cat conftest.err >&5
a848cd7e
SC
36448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36449 (exit $ac_status); } &&
8c539582 36450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36452 (eval $ac_try) 2>&5
36453 ac_status=$?
36454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36455 (exit $ac_status); }; } &&
36456 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36458 (eval $ac_try) 2>&5
36459 ac_status=$?
36460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36461 (exit $ac_status); }; }; then
36462 ac_cv_lib_dl_dlerror=yes
36463else
36464 echo "$as_me: failed program was:" >&5
36465sed 's/^/| /' conftest.$ac_ext >&5
36466
36467ac_cv_lib_dl_dlerror=no
36468fi
ac1cb8d3
VS
36469rm -f conftest.err conftest.$ac_objext \
36470 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36471LIBS=$ac_check_lib_save_LIBS
36472fi
36473echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36474echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36475if test $ac_cv_lib_dl_dlerror = yes; then
36476 cat >>confdefs.h <<\_ACEOF
36477#define HAVE_DLERROR 1
36478_ACEOF
36479
36480fi
36481
36482
36483
36484fi
36485done
36486
36487 fi
36488 fi
36489
36490 if test "$HAVE_DL_FUNCS" = 0; then
36491 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36492 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36493 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36494echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36495 wxUSE_DYNAMIC_LOADER=no
36496 wxUSE_DYNLIB_CLASS=no
36497 else
36498 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36499echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36500 fi
36501 fi
36502 fi
36503 fi
36504fi
36505
36506if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36507 cat >>confdefs.h <<\_ACEOF
36508#define wxUSE_DYNAMIC_LOADER 1
36509_ACEOF
36510
36511fi
36512if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36513 cat >>confdefs.h <<\_ACEOF
36514#define wxUSE_DYNLIB_CLASS 1
36515_ACEOF
36516
36517fi
36518
36519
36520
36521if test "$wxUSE_PLUGINS" = "yes" ; then
36522 if test "$wxUSE_SHARED" = "no" ; then
36523 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36524echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36525 wxUSE_PLUGINS=no
36526 fi
36527 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36528 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36529echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36530 wxUSE_PLUGINS=no
36531 fi
36532 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36533 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36534echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36535 wxUSE_PLUGINS=no
36536 fi
36537 if test "$wxUSE_PLUGINS" = "yes" ; then
36538 cat >>confdefs.h <<\_ACEOF
36539#define wxUSE_PLUGINS 1
36540_ACEOF
36541
36542 fi
36543fi
36544
36545
36546if test "$wxUSE_STL" = "yes"; then
36547 cat >>confdefs.h <<\_ACEOF
36548#define wxUSE_STL 1
36549_ACEOF
36550
36551fi
36552
36553if test "$wxUSE_APPLE_IEEE" = "yes"; then
36554 cat >>confdefs.h <<\_ACEOF
36555#define wxUSE_APPLE_IEEE 1
36556_ACEOF
36557
36558fi
36559
36560if test "$wxUSE_TIMER" = "yes"; then
36561 cat >>confdefs.h <<\_ACEOF
36562#define wxUSE_TIMER 1
36563_ACEOF
36564
36565fi
36566
9c112555 36567if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36568
36569for ac_header in sys/soundcard.h
36570do
36571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36572if eval "test \"\${$as_ac_Header+set}\" = set"; then
36573 echo "$as_me:$LINENO: checking for $ac_header" >&5
36574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36575if eval "test \"\${$as_ac_Header+set}\" = set"; then
36576 echo $ECHO_N "(cached) $ECHO_C" >&6
36577fi
36578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36580else
36581 # Is the header compilable?
36582echo "$as_me:$LINENO: checking $ac_header usability" >&5
36583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36584cat >conftest.$ac_ext <<_ACEOF
36585/* confdefs.h. */
36586_ACEOF
36587cat confdefs.h >>conftest.$ac_ext
36588cat >>conftest.$ac_ext <<_ACEOF
36589/* end confdefs.h. */
36590$ac_includes_default
36591#include <$ac_header>
36592_ACEOF
36593rm -f conftest.$ac_objext
36594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36595 (eval $ac_compile) 2>conftest.er1
a848cd7e 36596 ac_status=$?
ac1cb8d3
VS
36597 grep -v '^ *+' conftest.er1 >conftest.err
36598 rm -f conftest.er1
36599 cat conftest.err >&5
a848cd7e
SC
36600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36601 (exit $ac_status); } &&
8c539582 36602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36604 (eval $ac_try) 2>&5
36605 ac_status=$?
36606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607 (exit $ac_status); }; } &&
36608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36610 (eval $ac_try) 2>&5
36611 ac_status=$?
36612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36613 (exit $ac_status); }; }; then
36614 ac_header_compiler=yes
36615else
36616 echo "$as_me: failed program was:" >&5
36617sed 's/^/| /' conftest.$ac_ext >&5
36618
36619ac_header_compiler=no
36620fi
ac1cb8d3 36621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36623echo "${ECHO_T}$ac_header_compiler" >&6
36624
36625# Is the header present?
36626echo "$as_me:$LINENO: checking $ac_header presence" >&5
36627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36628cat >conftest.$ac_ext <<_ACEOF
36629/* confdefs.h. */
36630_ACEOF
36631cat confdefs.h >>conftest.$ac_ext
36632cat >>conftest.$ac_ext <<_ACEOF
36633/* end confdefs.h. */
36634#include <$ac_header>
36635_ACEOF
36636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36638 ac_status=$?
36639 grep -v '^ *+' conftest.er1 >conftest.err
36640 rm -f conftest.er1
36641 cat conftest.err >&5
36642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); } >/dev/null; then
36644 if test -s conftest.err; then
36645 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36647 else
36648 ac_cpp_err=
36649 fi
36650else
36651 ac_cpp_err=yes
36652fi
36653if test -z "$ac_cpp_err"; then
36654 ac_header_preproc=yes
36655else
36656 echo "$as_me: failed program was:" >&5
36657sed 's/^/| /' conftest.$ac_ext >&5
36658
36659 ac_header_preproc=no
36660fi
36661rm -f conftest.err conftest.$ac_ext
36662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36663echo "${ECHO_T}$ac_header_preproc" >&6
36664
36665# So? What about this header?
ac1cb8d3
VS
36666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36667 yes:no: )
a848cd7e
SC
36668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36672 ac_header_preproc=yes
a848cd7e 36673 ;;
ac1cb8d3 36674 no:yes:* )
a848cd7e
SC
36675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36687 (
36688 cat <<\_ASBOX
ac1cb8d3
VS
36689## ----------------------------------------- ##
36690## Report this to wx-dev@lists.wxwidgets.org ##
36691## ----------------------------------------- ##
a848cd7e
SC
36692_ASBOX
36693 ) |
36694 sed "s/^/$as_me: WARNING: /" >&2
36695 ;;
36696esac
36697echo "$as_me:$LINENO: checking for $ac_header" >&5
36698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36699if eval "test \"\${$as_ac_Header+set}\" = set"; then
36700 echo $ECHO_N "(cached) $ECHO_C" >&6
36701else
ac1cb8d3 36702 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36703fi
36704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36706
36707fi
36708if test `eval echo '${'$as_ac_Header'}'` = yes; then
36709 cat >>confdefs.h <<_ACEOF
36710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36711_ACEOF
36712
9c112555
MW
36713else
36714 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
36715fi
36716
36717done
36718
9c112555
MW
36719fi
36720WITH_PLUGIN_SDL=0
36721if test "$wxUSE_SOUND" = "yes"; then
36722 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36723 if test "$wxUSE_LIBSDL" != "no"; then
36724
36725# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36726if test "${with_sdl_prefix+set}" = set; then
36727 withval="$with_sdl_prefix"
36728 sdl_prefix="$withval"
36729else
36730 sdl_prefix=""
36731fi;
36732
36733# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36734if test "${with_sdl_exec_prefix+set}" = set; then
36735 withval="$with_sdl_exec_prefix"
36736 sdl_exec_prefix="$withval"
36737else
36738 sdl_exec_prefix=""
36739fi;
36740# Check whether --enable-sdltest or --disable-sdltest was given.
36741if test "${enable_sdltest+set}" = set; then
36742 enableval="$enable_sdltest"
36743
36744else
36745 enable_sdltest=yes
36746fi;
36747
36748 if test x$sdl_exec_prefix != x ; then
36749 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36750 if test x${SDL_CONFIG+set} != xset ; then
36751 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36752 fi
36753 fi
36754 if test x$sdl_prefix != x ; then
36755 sdl_args="$sdl_args --prefix=$sdl_prefix"
36756 if test x${SDL_CONFIG+set} != xset ; then
36757 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36758 fi
36759 fi
36760
36761
36762 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36763 # Extract the first word of "sdl-config", so it can be a program name with args.
36764set dummy sdl-config; ac_word=$2
36765echo "$as_me:$LINENO: checking for $ac_word" >&5
36766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36767if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36768 echo $ECHO_N "(cached) $ECHO_C" >&6
36769else
36770 case $SDL_CONFIG in
36771 [\\/]* | ?:[\\/]*)
36772 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36773 ;;
36774 *)
36775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36776for as_dir in $PATH
36777do
36778 IFS=$as_save_IFS
36779 test -z "$as_dir" && as_dir=.
36780 for ac_exec_ext in '' $ac_executable_extensions; do
36781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36782 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36784 break 2
36785 fi
36786done
36787done
36788
36789 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36790 ;;
36791esac
36792fi
36793SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36794
36795if test -n "$SDL_CONFIG"; then
36796 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36797echo "${ECHO_T}$SDL_CONFIG" >&6
36798else
36799 echo "$as_me:$LINENO: result: no" >&5
36800echo "${ECHO_T}no" >&6
36801fi
36802
36803 min_sdl_version=1.2.0
36804 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36805echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36806 no_sdl=""
36807 if test "$SDL_CONFIG" = "no" ; then
36808 no_sdl=yes
36809 else
36810 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36811 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36812
36813 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36814 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36815 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36816 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36817 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36818 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36819 if test "x$enable_sdltest" = "xyes" ; then
36820 ac_save_CFLAGS="$CFLAGS"
94acd38e 36821 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36822 ac_save_LIBS="$LIBS"
36823 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36824 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36825 LIBS="$LIBS $SDL_LIBS"
36826 rm -f conf.sdltest
36827 if test "$cross_compiling" = yes; then
36828 echo $ac_n "cross compiling; assumed OK... $ac_c"
36829else
36830 cat >conftest.$ac_ext <<_ACEOF
36831/* confdefs.h. */
36832_ACEOF
36833cat confdefs.h >>conftest.$ac_ext
36834cat >>conftest.$ac_ext <<_ACEOF
36835/* end confdefs.h. */
36836
36837#include <stdio.h>
36838#include <stdlib.h>
36839#include <string.h>
36840#include "SDL.h"
36841
36842char*
36843my_strdup (char *str)
36844{
36845 char *new_str;
36846
36847 if (str)
36848 {
36849 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36850 strcpy (new_str, str);
36851 }
36852 else
36853 new_str = NULL;
36854
36855 return new_str;
36856}
36857
36858int main (int argc, char *argv[])
36859{
36860 int major, minor, micro;
36861 char *tmp_version;
36862
36863 /* This hangs on some systems (?)
36864 system ("touch conf.sdltest");
36865 */
36866 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36867
36868 /* HP/UX 9 (%@#!) writes to sscanf strings */
36869 tmp_version = my_strdup("$min_sdl_version");
36870 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36871 printf("%s, bad version string\n", "$min_sdl_version");
36872 exit(1);
36873 }
36874
36875 if (($sdl_major_version > major) ||
36876 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36877 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36878 {
36879 return 0;
36880 }
36881 else
36882 {
36883 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36884 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36885 printf("*** best to upgrade to the required version.\n");
36886 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36887 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36888 printf("*** config.cache before re-running configure\n");
36889 return 1;
36890 }
36891}
36892
36893
36894_ACEOF
36895rm -f conftest$ac_exeext
36896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36897 (eval $ac_link) 2>&5
36898 ac_status=$?
36899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36902 (eval $ac_try) 2>&5
36903 ac_status=$?
36904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36905 (exit $ac_status); }; }; then
36906 :
36907else
36908 echo "$as_me: program exited with status $ac_status" >&5
36909echo "$as_me: failed program was:" >&5
36910sed 's/^/| /' conftest.$ac_ext >&5
36911
36912( exit $ac_status )
36913no_sdl=yes
36914fi
ac1cb8d3 36915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36916fi
36917 CFLAGS="$ac_save_CFLAGS"
94acd38e 36918 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36919 LIBS="$ac_save_LIBS"
36920 fi
36921 fi
36922 if test "x$no_sdl" = x ; then
36923 echo "$as_me:$LINENO: result: yes" >&5
36924echo "${ECHO_T}yes" >&6
36925
36926 EXTRALIBS_SDL="$SDL_LIBS"
36927 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36928 cat >>confdefs.h <<\_ACEOF
36929#define wxUSE_LIBSDL 1
36930_ACEOF
36931
36932
36933 else
36934 echo "$as_me:$LINENO: result: no" >&5
36935echo "${ECHO_T}no" >&6
36936 if test "$SDL_CONFIG" = "no" ; then
36937 echo "*** The sdl-config script installed by SDL could not be found"
36938 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36939 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36940 echo "*** full path to sdl-config."
36941 else
36942 if test -f conf.sdltest ; then
36943 :
36944 else
36945 echo "*** Could not run SDL test program, checking why..."
36946 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36947 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36948 LIBS="$LIBS $SDL_LIBS"
36949 cat >conftest.$ac_ext <<_ACEOF
36950/* confdefs.h. */
36951_ACEOF
36952cat confdefs.h >>conftest.$ac_ext
36953cat >>conftest.$ac_ext <<_ACEOF
36954/* end confdefs.h. */
36955
36956#include <stdio.h>
36957#include "SDL.h"
36958
36959int main(int argc, char *argv[])
36960{ return 0; }
36961#undef main
36962#define main K_and_R_C_main
36963
36964int
36965main ()
36966{
36967 return 0;
36968 ;
36969 return 0;
36970}
36971_ACEOF
36972rm -f conftest.$ac_objext conftest$ac_exeext
36973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36974 (eval $ac_link) 2>conftest.er1
a848cd7e 36975 ac_status=$?
ac1cb8d3
VS
36976 grep -v '^ *+' conftest.er1 >conftest.err
36977 rm -f conftest.er1
36978 cat conftest.err >&5
a848cd7e
SC
36979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980 (exit $ac_status); } &&
8c539582 36981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36983 (eval $ac_try) 2>&5
36984 ac_status=$?
36985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36986 (exit $ac_status); }; } &&
36987 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36989 (eval $ac_try) 2>&5
36990 ac_status=$?
36991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992 (exit $ac_status); }; }; then
36993 echo "*** The test program compiled, but did not run. This usually means"
36994 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36995 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36996 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36997 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36998 echo "*** is required on your system"
36999 echo "***"
37000 echo "*** If you have an old version installed, it is best to remove it, although"
37001 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
37002else
37003 echo "$as_me: failed program was:" >&5
37004sed 's/^/| /' conftest.$ac_ext >&5
37005
37006 echo "*** The test program failed to compile or link. See the file config.log for the"
37007 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
37008 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
37009 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
37010fi
ac1cb8d3
VS
37011rm -f conftest.err conftest.$ac_objext \
37012 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37013 CFLAGS="$ac_save_CFLAGS"
94acd38e 37014 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37015 LIBS="$ac_save_LIBS"
37016 fi
37017 fi
37018 SDL_CFLAGS=""
37019 SDL_LIBS=""
37020 wxUSE_LIBSDL="no"
37021 fi
37022
37023
37024 rm -f conf.sdltest
37025
37026 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
37027 WITH_PLUGIN_SDL=1
37028 fi
37029 fi
37030 fi
37031
37032 cat >>confdefs.h <<\_ACEOF
37033#define wxUSE_SOUND 1
37034_ACEOF
37035
37036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
37037fi
37038
d1c38808
VZ
37039if test "$WXGTK20" = 1; then
37040 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37041 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
37042
37043
37044 succeeded=no
37045
37046 if test -z "$PKG_CONFIG"; then
37047 # Extract the first word of "pkg-config", so it can be a program name with args.
37048set dummy pkg-config; ac_word=$2
37049echo "$as_me:$LINENO: checking for $ac_word" >&5
37050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37051if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37052 echo $ECHO_N "(cached) $ECHO_C" >&6
37053else
37054 case $PKG_CONFIG in
37055 [\\/]* | ?:[\\/]*)
37056 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37057 ;;
37058 *)
37059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37060for as_dir in $PATH
37061do
37062 IFS=$as_save_IFS
37063 test -z "$as_dir" && as_dir=.
37064 for ac_exec_ext in '' $ac_executable_extensions; do
37065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37066 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37068 break 2
37069 fi
37070done
37071done
37072
37073 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37074 ;;
37075esac
37076fi
37077PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37078
37079if test -n "$PKG_CONFIG"; then
37080 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37081echo "${ECHO_T}$PKG_CONFIG" >&6
37082else
37083 echo "$as_me:$LINENO: result: no" >&5
37084echo "${ECHO_T}no" >&6
37085fi
37086
37087 fi
37088
37089 if test "$PKG_CONFIG" = "no" ; then
37090 echo "*** The pkg-config script could not be found. Make sure it is"
37091 echo "*** in your path, or set the PKG_CONFIG environment variable"
37092 echo "*** to the full path to pkg-config."
37093 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37094 else
37095 PKG_CONFIG_MIN_VERSION=0.9.0
37096 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37097 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37098echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37099
ffa762ff 37100 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37101 echo "$as_me:$LINENO: result: yes" >&5
37102echo "${ECHO_T}yes" >&6
37103 succeeded=yes
37104
37105 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37106echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37107 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37108 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37109echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37110
37111 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37112echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37113 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37114 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37115echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37116 else
37117 LIBGNOMEPRINTUI_CFLAGS=""
37118 LIBGNOMEPRINTUI_LIBS=""
37119 ## If we have a custom action on failure, don't print errors, but
37120 ## do set a variable so people can do so.
ffa762ff 37121 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37122
37123 fi
37124
37125
37126
37127 else
37128 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37129 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37130 fi
37131 fi
37132
37133 if test $succeeded = yes; then
37134
d1c38808
VZ
37135 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37136 cat >>confdefs.h <<\_ACEOF
37137#define wxUSE_LIBGNOMEPRINT 1
37138_ACEOF
37139
37140
37141 else
37142
37143 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37144echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37145 wxUSE_LIBGNOMEPRINT="no"
37146
37147
37148 fi
37149
37150 fi
37151 fi
37152fi
37153
37154
a848cd7e
SC
37155if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37156 cat >>confdefs.h <<\_ACEOF
37157#define wxUSE_CMDLINE_PARSER 1
37158_ACEOF
37159
37160fi
37161
37162if test "$wxUSE_STOPWATCH" = "yes"; then
37163 cat >>confdefs.h <<\_ACEOF
37164#define wxUSE_STOPWATCH 1
37165_ACEOF
37166
37167fi
37168
37169if test "$wxUSE_DATETIME" = "yes"; then
37170 cat >>confdefs.h <<\_ACEOF
37171#define wxUSE_DATETIME 1
37172_ACEOF
37173
37174fi
37175
37176if test "$wxUSE_FILE" = "yes"; then
37177 cat >>confdefs.h <<\_ACEOF
37178#define wxUSE_FILE 1
37179_ACEOF
37180
37181fi
37182
37183if test "$wxUSE_FFILE" = "yes"; then
37184 cat >>confdefs.h <<\_ACEOF
37185#define wxUSE_FFILE 1
37186_ACEOF
37187
37188fi
37189
37190if test "$wxUSE_FILESYSTEM" = "yes"; then
37191 cat >>confdefs.h <<\_ACEOF
37192#define wxUSE_FILESYSTEM 1
37193_ACEOF
37194
37195fi
37196
37197if test "$wxUSE_FS_ZIP" = "yes"; then
37198 cat >>confdefs.h <<\_ACEOF
37199#define wxUSE_FS_ZIP 1
37200_ACEOF
37201
37202fi
37203
9e8e867f 37204if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37205 cat >>confdefs.h <<\_ACEOF
9e8e867f 37206#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37207_ACEOF
37208
37209fi
37210
37211if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37212 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37213 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37214echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37215 elif test "$wxUSE_ZLIB" = "no"; then
37216 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37217echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37218 else
37219 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37220#define wxUSE_ZIPSTREAM 1
37221_ACEOF
37222
81f90336 37223 fi
a848cd7e
SC
37224fi
37225
a848cd7e 37226if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37227 if test "$USE_UNIX" != 1; then
37228 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37229echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37230 wxUSE_ON_FATAL_EXCEPTION=no
37231 else
37232 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37233#define wxUSE_ON_FATAL_EXCEPTION 1
37234_ACEOF
37235
18228ab4 37236 fi
a848cd7e
SC
37237fi
37238
eaff0f0d
VZ
37239if test "$wxUSE_STACKWALKER" = "yes"; then
37240 cat >>confdefs.h <<\_ACEOF
37241#define wxUSE_STACKWALKER 1
37242_ACEOF
37243
37244fi
37245
36b6448c 37246if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37247 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37248 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37249echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37250 wxUSE_DEBUGREPORT=no
37251 else
37252 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37253#define wxUSE_DEBUGREPORT 1
37254_ACEOF
37255
21dfc162
MW
37256 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37258 fi
dfe0c803 37259 fi
36b6448c
VZ
37260fi
37261
a848cd7e
SC
37262if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37263 cat >>confdefs.h <<\_ACEOF
37264#define wxUSE_SNGLINST_CHECKER 1
37265_ACEOF
37266
37267fi
37268
37269if test "$wxUSE_BUSYINFO" = "yes"; then
37270 cat >>confdefs.h <<\_ACEOF
37271#define wxUSE_BUSYINFO 1
37272_ACEOF
37273
37274fi
37275
37276if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37277 cat >>confdefs.h <<\_ACEOF
37278#define wxUSE_STD_IOSTREAM 1
37279_ACEOF
37280
37281fi
37282
59746b65
MW
37283if test "$wxUSE_STD_STRING" = "yes"; then
37284 cat >>confdefs.h <<\_ACEOF
37285#define wxUSE_STD_STRING 1
37286_ACEOF
37287
37288fi
37289
07158944
VZ
37290if test "$wxUSE_STDPATHS" = "yes"; then
37291 cat >>confdefs.h <<\_ACEOF
37292#define wxUSE_STDPATHS 1
37293_ACEOF
37294
37295fi
37296
a848cd7e
SC
37297if test "$wxUSE_TEXTBUFFER" = "yes"; then
37298 cat >>confdefs.h <<\_ACEOF
37299#define wxUSE_TEXTBUFFER 1
37300_ACEOF
37301
37302fi
37303
37304if test "$wxUSE_TEXTFILE" = "yes"; then
37305 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37306 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37307echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37308 else
37309 cat >>confdefs.h <<\_ACEOF
37310#define wxUSE_TEXTFILE 1
37311_ACEOF
37312
37313 fi
37314fi
37315
37316if test "$wxUSE_CONFIG" = "yes" ; then
37317 if test "$wxUSE_TEXTFILE" != "yes"; then
37318 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37319echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37320 else
37321 cat >>confdefs.h <<\_ACEOF
37322#define wxUSE_CONFIG 1
89be85c2
VS
37323_ACEOF
37324
37325 cat >>confdefs.h <<\_ACEOF
37326#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37327_ACEOF
37328
37329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37330 fi
37331fi
37332
37333if test "$wxUSE_INTL" = "yes" ; then
37334 if test "$wxUSE_FILE" != "yes"; then
37335 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37336echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37337 else
37338 cat >>confdefs.h <<\_ACEOF
37339#define wxUSE_INTL 1
37340_ACEOF
37341
37342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37343 GUIDIST="$GUIDIST INTL_DIST"
37344 fi
37345fi
37346
37347if test "$wxUSE_LOG" = "yes"; then
37348 cat >>confdefs.h <<\_ACEOF
37349#define wxUSE_LOG 1
37350_ACEOF
37351
37352
37353 if test "$wxUSE_LOGGUI" = "yes"; then
37354 cat >>confdefs.h <<\_ACEOF
37355#define wxUSE_LOGGUI 1
37356_ACEOF
37357
37358 fi
37359
37360 if test "$wxUSE_LOGWINDOW" = "yes"; then
37361 cat >>confdefs.h <<\_ACEOF
37362#define wxUSE_LOGWINDOW 1
37363_ACEOF
37364
37365 fi
37366
37367 if test "$wxUSE_LOGDIALOG" = "yes"; then
37368 cat >>confdefs.h <<\_ACEOF
37369#define wxUSE_LOG_DIALOG 1
37370_ACEOF
37371
37372 fi
0b78747f
MW
37373
37374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37375fi
37376
37377if test "$wxUSE_LONGLONG" = "yes"; then
37378 cat >>confdefs.h <<\_ACEOF
37379#define wxUSE_LONGLONG 1
37380_ACEOF
37381
37382fi
37383
37384if test "$wxUSE_GEOMETRY" = "yes"; then
37385 cat >>confdefs.h <<\_ACEOF
37386#define wxUSE_GEOMETRY 1
37387_ACEOF
37388
37389fi
37390
a848cd7e
SC
37391if test "$wxUSE_STREAMS" = "yes" ; then
37392 cat >>confdefs.h <<\_ACEOF
37393#define wxUSE_STREAMS 1
37394_ACEOF
37395
37396fi
37397
37398
37399if test "$wxUSE_DATETIME" = "yes"; then
37400
37401for ac_func in strptime
37402do
37403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37404echo "$as_me:$LINENO: checking for $ac_func" >&5
37405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37406if eval "test \"\${$as_ac_var+set}\" = set"; then
37407 echo $ECHO_N "(cached) $ECHO_C" >&6
37408else
37409 cat >conftest.$ac_ext <<_ACEOF
37410/* confdefs.h. */
37411_ACEOF
37412cat confdefs.h >>conftest.$ac_ext
37413cat >>conftest.$ac_ext <<_ACEOF
37414/* end confdefs.h. */
ac1cb8d3
VS
37415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37417#define $ac_func innocuous_$ac_func
37418
a848cd7e
SC
37419/* System header to define __stub macros and hopefully few prototypes,
37420 which can conflict with char $ac_func (); below.
37421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37422 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37423
a848cd7e
SC
37424#ifdef __STDC__
37425# include <limits.h>
37426#else
37427# include <assert.h>
37428#endif
ac1cb8d3
VS
37429
37430#undef $ac_func
37431
a848cd7e
SC
37432/* Override any gcc2 internal prototype to avoid an error. */
37433#ifdef __cplusplus
37434extern "C"
37435{
37436#endif
37437/* We use char because int might match the return type of a gcc2
37438 builtin and then its argument prototype would still apply. */
37439char $ac_func ();
37440/* The GNU C library defines this for functions which it implements
37441 to always fail with ENOSYS. Some functions are actually named
37442 something starting with __ and the normal name is an alias. */
37443#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37444choke me
37445#else
37446char (*f) () = $ac_func;
37447#endif
37448#ifdef __cplusplus
37449}
37450#endif
37451
37452int
37453main ()
37454{
37455return f != $ac_func;
37456 ;
37457 return 0;
37458}
37459_ACEOF
37460rm -f conftest.$ac_objext conftest$ac_exeext
37461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37462 (eval $ac_link) 2>conftest.er1
a848cd7e 37463 ac_status=$?
ac1cb8d3
VS
37464 grep -v '^ *+' conftest.er1 >conftest.err
37465 rm -f conftest.er1
37466 cat conftest.err >&5
a848cd7e
SC
37467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468 (exit $ac_status); } &&
8c539582 37469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37471 (eval $ac_try) 2>&5
37472 ac_status=$?
37473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474 (exit $ac_status); }; } &&
37475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37477 (eval $ac_try) 2>&5
37478 ac_status=$?
37479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480 (exit $ac_status); }; }; then
37481 eval "$as_ac_var=yes"
37482else
37483 echo "$as_me: failed program was:" >&5
37484sed 's/^/| /' conftest.$ac_ext >&5
37485
37486eval "$as_ac_var=no"
37487fi
ac1cb8d3
VS
37488rm -f conftest.err conftest.$ac_objext \
37489 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37490fi
37491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37493if test `eval echo '${'$as_ac_var'}'` = yes; then
37494 cat >>confdefs.h <<_ACEOF
37495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37496_ACEOF
37497
37498fi
37499done
37500
37501
37502 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37503echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37504if test "${wx_cv_var_timezone+set}" = set; then
37505 echo $ECHO_N "(cached) $ECHO_C" >&6
37506else
37507
37508 cat >conftest.$ac_ext <<_ACEOF
37509/* confdefs.h. */
37510_ACEOF
37511cat confdefs.h >>conftest.$ac_ext
37512cat >>conftest.$ac_ext <<_ACEOF
37513/* end confdefs.h. */
37514
37515 #include <time.h>
37516
37517int
37518main ()
37519{
37520
37521 int tz;
37522 tz = timezone;
37523
37524 ;
37525 return 0;
37526}
37527_ACEOF
37528rm -f conftest.$ac_objext
37529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37530 (eval $ac_compile) 2>conftest.er1
a848cd7e 37531 ac_status=$?
ac1cb8d3
VS
37532 grep -v '^ *+' conftest.er1 >conftest.err
37533 rm -f conftest.er1
37534 cat conftest.err >&5
a848cd7e
SC
37535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37536 (exit $ac_status); } &&
8c539582 37537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37539 (eval $ac_try) 2>&5
37540 ac_status=$?
37541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542 (exit $ac_status); }; } &&
37543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37545 (eval $ac_try) 2>&5
37546 ac_status=$?
37547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548 (exit $ac_status); }; }; then
37549
37550 wx_cv_var_timezone=timezone
37551
37552else
37553 echo "$as_me: failed program was:" >&5
37554sed 's/^/| /' conftest.$ac_ext >&5
37555
37556
37557 cat >conftest.$ac_ext <<_ACEOF
37558/* confdefs.h. */
37559_ACEOF
37560cat confdefs.h >>conftest.$ac_ext
37561cat >>conftest.$ac_ext <<_ACEOF
37562/* end confdefs.h. */
37563
37564 #include <time.h>
37565
37566int
37567main ()
37568{
37569
37570 int tz;
37571 tz = _timezone;
37572
37573 ;
37574 return 0;
37575}
37576_ACEOF
37577rm -f conftest.$ac_objext
37578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37579 (eval $ac_compile) 2>conftest.er1
a848cd7e 37580 ac_status=$?
ac1cb8d3
VS
37581 grep -v '^ *+' conftest.er1 >conftest.err
37582 rm -f conftest.er1
37583 cat conftest.err >&5
a848cd7e
SC
37584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585 (exit $ac_status); } &&
8c539582 37586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37588 (eval $ac_try) 2>&5
37589 ac_status=$?
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); }; } &&
37592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37594 (eval $ac_try) 2>&5
37595 ac_status=$?
37596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597 (exit $ac_status); }; }; then
37598
37599 wx_cv_var_timezone=_timezone
37600
37601else
37602 echo "$as_me: failed program was:" >&5
37603sed 's/^/| /' conftest.$ac_ext >&5
37604
37605
37606 cat >conftest.$ac_ext <<_ACEOF
37607/* confdefs.h. */
37608_ACEOF
37609cat confdefs.h >>conftest.$ac_ext
37610cat >>conftest.$ac_ext <<_ACEOF
37611/* end confdefs.h. */
37612
37613 #include <time.h>
37614
37615int
37616main ()
37617{
37618
37619 int tz;
37620 tz = __timezone;
37621
37622 ;
37623 return 0;
37624}
37625_ACEOF
37626rm -f conftest.$ac_objext
37627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37628 (eval $ac_compile) 2>conftest.er1
a848cd7e 37629 ac_status=$?
ac1cb8d3
VS
37630 grep -v '^ *+' conftest.er1 >conftest.err
37631 rm -f conftest.er1
37632 cat conftest.err >&5
a848cd7e
SC
37633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634 (exit $ac_status); } &&
8c539582 37635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37637 (eval $ac_try) 2>&5
37638 ac_status=$?
37639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37640 (exit $ac_status); }; } &&
37641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37643 (eval $ac_try) 2>&5
37644 ac_status=$?
37645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646 (exit $ac_status); }; }; then
37647
37648 wx_cv_var_timezone=__timezone
37649
37650else
37651 echo "$as_me: failed program was:" >&5
37652sed 's/^/| /' conftest.$ac_ext >&5
37653
37654
37655 if test "$USE_DOS" = 0 ; then
37656 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37657echo "$as_me: WARNING: no timezone variable" >&2;}
37658 fi
37659
37660
37661fi
ac1cb8d3 37662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37663
37664
37665fi
ac1cb8d3 37666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37667
37668
37669fi
ac1cb8d3 37670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37671
37672
37673fi
37674echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37675echo "${ECHO_T}$wx_cv_var_timezone" >&6
37676
37677 if test "x$wx_cv_var_timezone" != x ; then
37678 cat >>confdefs.h <<_ACEOF
37679#define WX_TIMEZONE $wx_cv_var_timezone
37680_ACEOF
37681
37682 fi
37683
37684
37685for ac_func in localtime
37686do
37687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37688echo "$as_me:$LINENO: checking for $ac_func" >&5
37689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37690if eval "test \"\${$as_ac_var+set}\" = set"; then
37691 echo $ECHO_N "(cached) $ECHO_C" >&6
37692else
37693 cat >conftest.$ac_ext <<_ACEOF
37694/* confdefs.h. */
37695_ACEOF
37696cat confdefs.h >>conftest.$ac_ext
37697cat >>conftest.$ac_ext <<_ACEOF
37698/* end confdefs.h. */
ac1cb8d3
VS
37699/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37701#define $ac_func innocuous_$ac_func
37702
a848cd7e
SC
37703/* System header to define __stub macros and hopefully few prototypes,
37704 which can conflict with char $ac_func (); below.
37705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37706 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37707
a848cd7e
SC
37708#ifdef __STDC__
37709# include <limits.h>
37710#else
37711# include <assert.h>
37712#endif
ac1cb8d3
VS
37713
37714#undef $ac_func
37715
a848cd7e
SC
37716/* Override any gcc2 internal prototype to avoid an error. */
37717#ifdef __cplusplus
37718extern "C"
37719{
37720#endif
37721/* We use char because int might match the return type of a gcc2
37722 builtin and then its argument prototype would still apply. */
37723char $ac_func ();
37724/* The GNU C library defines this for functions which it implements
37725 to always fail with ENOSYS. Some functions are actually named
37726 something starting with __ and the normal name is an alias. */
37727#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37728choke me
37729#else
37730char (*f) () = $ac_func;
37731#endif
37732#ifdef __cplusplus
37733}
37734#endif
37735
37736int
37737main ()
37738{
37739return f != $ac_func;
37740 ;
37741 return 0;
37742}
37743_ACEOF
37744rm -f conftest.$ac_objext conftest$ac_exeext
37745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37746 (eval $ac_link) 2>conftest.er1
a848cd7e 37747 ac_status=$?
ac1cb8d3
VS
37748 grep -v '^ *+' conftest.er1 >conftest.err
37749 rm -f conftest.er1
37750 cat conftest.err >&5
a848cd7e
SC
37751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37752 (exit $ac_status); } &&
8c539582 37753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37755 (eval $ac_try) 2>&5
37756 ac_status=$?
37757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37758 (exit $ac_status); }; } &&
37759 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37761 (eval $ac_try) 2>&5
37762 ac_status=$?
37763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764 (exit $ac_status); }; }; then
37765 eval "$as_ac_var=yes"
37766else
37767 echo "$as_me: failed program was:" >&5
37768sed 's/^/| /' conftest.$ac_ext >&5
37769
37770eval "$as_ac_var=no"
37771fi
ac1cb8d3
VS
37772rm -f conftest.err conftest.$ac_objext \
37773 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37774fi
37775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37776echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37777if test `eval echo '${'$as_ac_var'}'` = yes; then
37778 cat >>confdefs.h <<_ACEOF
37779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37780_ACEOF
37781
37782fi
37783done
37784
37785
37786 if test "$ac_cv_func_localtime" = "yes"; then
37787 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37788echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37789if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37790 echo $ECHO_N "(cached) $ECHO_C" >&6
37791else
37792
37793 cat >conftest.$ac_ext <<_ACEOF
37794/* confdefs.h. */
37795_ACEOF
37796cat confdefs.h >>conftest.$ac_ext
37797cat >>conftest.$ac_ext <<_ACEOF
37798/* end confdefs.h. */
37799
37800 #include <time.h>
37801
37802int
37803main ()
37804{
37805
37806 struct tm tm;
37807 tm.tm_gmtoff++;
37808
37809 ;
37810 return 0;
37811}
37812_ACEOF
37813rm -f conftest.$ac_objext
37814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37815 (eval $ac_compile) 2>conftest.er1
a848cd7e 37816 ac_status=$?
ac1cb8d3
VS
37817 grep -v '^ *+' conftest.er1 >conftest.err
37818 rm -f conftest.er1
37819 cat conftest.err >&5
a848cd7e
SC
37820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821 (exit $ac_status); } &&
8c539582 37822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37824 (eval $ac_try) 2>&5
37825 ac_status=$?
37826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827 (exit $ac_status); }; } &&
37828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37830 (eval $ac_try) 2>&5
37831 ac_status=$?
37832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37833 (exit $ac_status); }; }; then
37834
37835 wx_cv_struct_tm_has_gmtoff=yes
37836
37837else
37838 echo "$as_me: failed program was:" >&5
37839sed 's/^/| /' conftest.$ac_ext >&5
37840
37841wx_cv_struct_tm_has_gmtoff=no
37842
37843fi
ac1cb8d3 37844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37845
37846fi
37847echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37848echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37849 fi
37850
37851 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37852 cat >>confdefs.h <<\_ACEOF
37853#define WX_GMTOFF_IN_TM 1
37854_ACEOF
37855
37856 fi
37857
37858
37859
37860for ac_func in gettimeofday ftime
37861do
37862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37863echo "$as_me:$LINENO: checking for $ac_func" >&5
37864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37865if eval "test \"\${$as_ac_var+set}\" = set"; then
37866 echo $ECHO_N "(cached) $ECHO_C" >&6
37867else
37868 cat >conftest.$ac_ext <<_ACEOF
37869/* confdefs.h. */
37870_ACEOF
37871cat confdefs.h >>conftest.$ac_ext
37872cat >>conftest.$ac_ext <<_ACEOF
37873/* end confdefs.h. */
ac1cb8d3
VS
37874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37876#define $ac_func innocuous_$ac_func
37877
a848cd7e
SC
37878/* System header to define __stub macros and hopefully few prototypes,
37879 which can conflict with char $ac_func (); below.
37880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37881 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37882
a848cd7e
SC
37883#ifdef __STDC__
37884# include <limits.h>
37885#else
37886# include <assert.h>
37887#endif
ac1cb8d3
VS
37888
37889#undef $ac_func
37890
a848cd7e
SC
37891/* Override any gcc2 internal prototype to avoid an error. */
37892#ifdef __cplusplus
37893extern "C"
37894{
37895#endif
37896/* We use char because int might match the return type of a gcc2
37897 builtin and then its argument prototype would still apply. */
37898char $ac_func ();
37899/* The GNU C library defines this for functions which it implements
37900 to always fail with ENOSYS. Some functions are actually named
37901 something starting with __ and the normal name is an alias. */
37902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37903choke me
37904#else
37905char (*f) () = $ac_func;
37906#endif
37907#ifdef __cplusplus
37908}
37909#endif
37910
37911int
37912main ()
37913{
37914return f != $ac_func;
37915 ;
37916 return 0;
37917}
37918_ACEOF
37919rm -f conftest.$ac_objext conftest$ac_exeext
37920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37921 (eval $ac_link) 2>conftest.er1
a848cd7e 37922 ac_status=$?
ac1cb8d3
VS
37923 grep -v '^ *+' conftest.er1 >conftest.err
37924 rm -f conftest.er1
37925 cat conftest.err >&5
a848cd7e
SC
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); } &&
8c539582 37928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37930 (eval $ac_try) 2>&5
37931 ac_status=$?
37932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37933 (exit $ac_status); }; } &&
37934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37936 (eval $ac_try) 2>&5
37937 ac_status=$?
37938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37939 (exit $ac_status); }; }; then
37940 eval "$as_ac_var=yes"
37941else
37942 echo "$as_me: failed program was:" >&5
37943sed 's/^/| /' conftest.$ac_ext >&5
37944
37945eval "$as_ac_var=no"
37946fi
ac1cb8d3
VS
37947rm -f conftest.err conftest.$ac_objext \
37948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37949fi
37950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37952if test `eval echo '${'$as_ac_var'}'` = yes; then
37953 cat >>confdefs.h <<_ACEOF
37954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37955_ACEOF
37956 break
37957fi
37958done
37959
37960
37961 if test "$ac_cv_func_gettimeofday" = "yes"; then
37962 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37963echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37964if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37965 echo $ECHO_N "(cached) $ECHO_C" >&6
37966else
37967
37968
37969
37970 ac_ext=cc
37971ac_cpp='$CXXCPP $CPPFLAGS'
37972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37975
37976
37977 cat >conftest.$ac_ext <<_ACEOF
37978/* confdefs.h. */
37979_ACEOF
37980cat confdefs.h >>conftest.$ac_ext
37981cat >>conftest.$ac_ext <<_ACEOF
37982/* end confdefs.h. */
37983
37984 #include <sys/time.h>
37985 #include <unistd.h>
37986
37987int
37988main ()
37989{
37990
37991 struct timeval tv;
37992 gettimeofday(&tv, NULL);
37993
37994 ;
37995 return 0;
37996}
37997_ACEOF
37998rm -f conftest.$ac_objext
37999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38000 (eval $ac_compile) 2>conftest.er1
a848cd7e 38001 ac_status=$?
ac1cb8d3
VS
38002 grep -v '^ *+' conftest.er1 >conftest.err
38003 rm -f conftest.er1
38004 cat conftest.err >&5
a848cd7e
SC
38005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006 (exit $ac_status); } &&
8c539582 38007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38009 (eval $ac_try) 2>&5
38010 ac_status=$?
38011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38012 (exit $ac_status); }; } &&
38013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38015 (eval $ac_try) 2>&5
38016 ac_status=$?
38017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38018 (exit $ac_status); }; }; then
38019 wx_cv_func_gettimeofday_has_2_args=yes
38020else
38021 echo "$as_me: failed program was:" >&5
38022sed 's/^/| /' conftest.$ac_ext >&5
38023
38024cat >conftest.$ac_ext <<_ACEOF
38025/* confdefs.h. */
38026_ACEOF
38027cat confdefs.h >>conftest.$ac_ext
38028cat >>conftest.$ac_ext <<_ACEOF
38029/* end confdefs.h. */
38030
38031 #include <sys/time.h>
38032 #include <unistd.h>
38033
38034int
38035main ()
38036{
38037
38038 struct timeval tv;
38039 gettimeofday(&tv);
38040
38041 ;
38042 return 0;
38043}
38044_ACEOF
38045rm -f conftest.$ac_objext
38046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38047 (eval $ac_compile) 2>conftest.er1
a848cd7e 38048 ac_status=$?
ac1cb8d3
VS
38049 grep -v '^ *+' conftest.er1 >conftest.err
38050 rm -f conftest.er1
38051 cat conftest.err >&5
a848cd7e
SC
38052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38053 (exit $ac_status); } &&
8c539582 38054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38056 (eval $ac_try) 2>&5
38057 ac_status=$?
38058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38059 (exit $ac_status); }; } &&
38060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38062 (eval $ac_try) 2>&5
38063 ac_status=$?
38064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065 (exit $ac_status); }; }; then
38066 wx_cv_func_gettimeofday_has_2_args=no
38067else
38068 echo "$as_me: failed program was:" >&5
38069sed 's/^/| /' conftest.$ac_ext >&5
38070
38071
38072 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38073echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38074 wx_cv_func_gettimeofday_has_2_args=unknown
38075
38076
38077fi
ac1cb8d3 38078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38079
38080fi
ac1cb8d3 38081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38082 ac_ext=c
38083ac_cpp='$CPP $CPPFLAGS'
38084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38086ac_compiler_gnu=$ac_cv_c_compiler_gnu
38087
38088
38089fi
38090echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38091echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38092
38093 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38094 cat >>confdefs.h <<\_ACEOF
38095#define WX_GETTIMEOFDAY_NO_TZ 1
38096_ACEOF
38097
38098 fi
38099 fi
38100
38101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38102fi
38103
38104
38105if test "$wxUSE_SOCKETS" = "yes"; then
38106 if test "$wxUSE_MGL" = "1"; then
38107 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38108echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38109 wxUSE_SOCKETS="no"
38110 fi
38111fi
38112
38113if test "$wxUSE_SOCKETS" = "yes"; then
38114 if test "$TOOLKIT" != "MSW"; then
38115 echo "$as_me:$LINENO: checking for socket" >&5
38116echo $ECHO_N "checking for socket... $ECHO_C" >&6
38117if test "${ac_cv_func_socket+set}" = set; then
38118 echo $ECHO_N "(cached) $ECHO_C" >&6
38119else
38120 cat >conftest.$ac_ext <<_ACEOF
38121/* confdefs.h. */
38122_ACEOF
38123cat confdefs.h >>conftest.$ac_ext
38124cat >>conftest.$ac_ext <<_ACEOF
38125/* end confdefs.h. */
ac1cb8d3
VS
38126/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38128#define socket innocuous_socket
38129
a848cd7e
SC
38130/* System header to define __stub macros and hopefully few prototypes,
38131 which can conflict with char socket (); below.
38132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38133 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38134
a848cd7e
SC
38135#ifdef __STDC__
38136# include <limits.h>
38137#else
38138# include <assert.h>
38139#endif
ac1cb8d3
VS
38140
38141#undef socket
38142
a848cd7e
SC
38143/* Override any gcc2 internal prototype to avoid an error. */
38144#ifdef __cplusplus
38145extern "C"
38146{
38147#endif
38148/* We use char because int might match the return type of a gcc2
38149 builtin and then its argument prototype would still apply. */
38150char socket ();
38151/* The GNU C library defines this for functions which it implements
38152 to always fail with ENOSYS. Some functions are actually named
38153 something starting with __ and the normal name is an alias. */
38154#if defined (__stub_socket) || defined (__stub___socket)
38155choke me
38156#else
38157char (*f) () = socket;
38158#endif
38159#ifdef __cplusplus
38160}
38161#endif
38162
38163int
38164main ()
38165{
38166return f != socket;
38167 ;
38168 return 0;
38169}
38170_ACEOF
38171rm -f conftest.$ac_objext conftest$ac_exeext
38172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38173 (eval $ac_link) 2>conftest.er1
a848cd7e 38174 ac_status=$?
ac1cb8d3
VS
38175 grep -v '^ *+' conftest.er1 >conftest.err
38176 rm -f conftest.er1
38177 cat conftest.err >&5
a848cd7e
SC
38178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38179 (exit $ac_status); } &&
8c539582 38180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38182 (eval $ac_try) 2>&5
38183 ac_status=$?
38184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38185 (exit $ac_status); }; } &&
38186 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38188 (eval $ac_try) 2>&5
38189 ac_status=$?
38190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38191 (exit $ac_status); }; }; then
38192 ac_cv_func_socket=yes
38193else
38194 echo "$as_me: failed program was:" >&5
38195sed 's/^/| /' conftest.$ac_ext >&5
38196
38197ac_cv_func_socket=no
38198fi
ac1cb8d3
VS
38199rm -f conftest.err conftest.$ac_objext \
38200 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38201fi
38202echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38203echo "${ECHO_T}$ac_cv_func_socket" >&6
38204if test $ac_cv_func_socket = yes; then
38205 :
38206else
38207
38208 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38209echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38210if test "${ac_cv_lib_socket_socket+set}" = set; then
38211 echo $ECHO_N "(cached) $ECHO_C" >&6
38212else
38213 ac_check_lib_save_LIBS=$LIBS
38214LIBS="-lsocket $LIBS"
38215cat >conftest.$ac_ext <<_ACEOF
38216/* confdefs.h. */
38217_ACEOF
38218cat confdefs.h >>conftest.$ac_ext
38219cat >>conftest.$ac_ext <<_ACEOF
38220/* end confdefs.h. */
38221
38222/* Override any gcc2 internal prototype to avoid an error. */
38223#ifdef __cplusplus
38224extern "C"
38225#endif
38226/* We use char because int might match the return type of a gcc2
38227 builtin and then its argument prototype would still apply. */
38228char socket ();
38229int
38230main ()
38231{
38232socket ();
38233 ;
38234 return 0;
38235}
38236_ACEOF
38237rm -f conftest.$ac_objext conftest$ac_exeext
38238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38239 (eval $ac_link) 2>conftest.er1
a848cd7e 38240 ac_status=$?
ac1cb8d3
VS
38241 grep -v '^ *+' conftest.er1 >conftest.err
38242 rm -f conftest.er1
38243 cat conftest.err >&5
a848cd7e
SC
38244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38245 (exit $ac_status); } &&
8c539582 38246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38248 (eval $ac_try) 2>&5
38249 ac_status=$?
38250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38251 (exit $ac_status); }; } &&
38252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38254 (eval $ac_try) 2>&5
38255 ac_status=$?
38256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257 (exit $ac_status); }; }; then
38258 ac_cv_lib_socket_socket=yes
38259else
38260 echo "$as_me: failed program was:" >&5
38261sed 's/^/| /' conftest.$ac_ext >&5
38262
38263ac_cv_lib_socket_socket=no
38264fi
ac1cb8d3
VS
38265rm -f conftest.err conftest.$ac_objext \
38266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38267LIBS=$ac_check_lib_save_LIBS
38268fi
38269echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38270echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38271if test $ac_cv_lib_socket_socket = yes; then
38272 if test "$INET_LINK" != " -lsocket"; then
38273 INET_LINK="$INET_LINK -lsocket"
38274 fi
38275else
38276
38277 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38278echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38279 wxUSE_SOCKETS=no
38280
38281
38282fi
38283
38284
38285
38286fi
38287
38288 fi
38289fi
38290
38291if test "$wxUSE_SOCKETS" = "yes" ; then
38292 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38293 ac_ext=cc
38294ac_cpp='$CXXCPP $CPPFLAGS'
38295ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38296ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38298
38299 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38300echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38301if test "${wx_cv_type_getsockname3+set}" = set; then
38302 echo $ECHO_N "(cached) $ECHO_C" >&6
38303else
38304
38305 cat >conftest.$ac_ext <<_ACEOF
38306/* confdefs.h. */
38307_ACEOF
38308cat confdefs.h >>conftest.$ac_ext
38309cat >>conftest.$ac_ext <<_ACEOF
38310/* end confdefs.h. */
38311
38312 #include <sys/types.h>
38313 #include <sys/socket.h>
38314
38315int
38316main ()
38317{
38318
38319 socklen_t len;
38320 getsockname(0, 0, &len);
38321
38322 ;
38323 return 0;
38324}
38325_ACEOF
38326rm -f conftest.$ac_objext
38327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38328 (eval $ac_compile) 2>conftest.er1
a848cd7e 38329 ac_status=$?
ac1cb8d3
VS
38330 grep -v '^ *+' conftest.er1 >conftest.err
38331 rm -f conftest.er1
38332 cat conftest.err >&5
a848cd7e
SC
38333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38334 (exit $ac_status); } &&
8c539582 38335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38337 (eval $ac_try) 2>&5
38338 ac_status=$?
38339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38340 (exit $ac_status); }; } &&
38341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38343 (eval $ac_try) 2>&5
38344 ac_status=$?
38345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346 (exit $ac_status); }; }; then
38347 wx_cv_type_getsockname3=socklen_t
38348else
38349 echo "$as_me: failed program was:" >&5
38350sed 's/^/| /' conftest.$ac_ext >&5
38351
38352
38353 CFLAGS_OLD="$CFLAGS"
38354 if test "$GCC" = yes ; then
38355 CFLAGS="$CFLAGS -Werror"
38356 fi
38357
38358 cat >conftest.$ac_ext <<_ACEOF
38359/* confdefs.h. */
38360_ACEOF
38361cat confdefs.h >>conftest.$ac_ext
38362cat >>conftest.$ac_ext <<_ACEOF
38363/* end confdefs.h. */
38364
38365 #include <sys/types.h>
38366 #include <sys/socket.h>
38367
38368int
38369main ()
38370{
38371
38372 size_t len;
38373 getsockname(0, 0, &len);
38374
38375 ;
38376 return 0;
38377}
38378_ACEOF
38379rm -f conftest.$ac_objext
38380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38381 (eval $ac_compile) 2>conftest.er1
a848cd7e 38382 ac_status=$?
ac1cb8d3
VS
38383 grep -v '^ *+' conftest.er1 >conftest.err
38384 rm -f conftest.er1
38385 cat conftest.err >&5
a848cd7e
SC
38386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387 (exit $ac_status); } &&
8c539582 38388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38390 (eval $ac_try) 2>&5
38391 ac_status=$?
38392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393 (exit $ac_status); }; } &&
38394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38396 (eval $ac_try) 2>&5
38397 ac_status=$?
38398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38399 (exit $ac_status); }; }; then
38400 wx_cv_type_getsockname3=size_t
38401else
38402 echo "$as_me: failed program was:" >&5
38403sed 's/^/| /' conftest.$ac_ext >&5
38404
38405cat >conftest.$ac_ext <<_ACEOF
38406/* confdefs.h. */
38407_ACEOF
38408cat confdefs.h >>conftest.$ac_ext
38409cat >>conftest.$ac_ext <<_ACEOF
38410/* end confdefs.h. */
38411
38412 #include <sys/types.h>
38413 #include <sys/socket.h>
38414
38415int
38416main ()
38417{
38418
38419 int len;
38420 getsockname(0, 0, &len);
38421
38422 ;
38423 return 0;
38424}
38425_ACEOF
38426rm -f conftest.$ac_objext
38427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38428 (eval $ac_compile) 2>conftest.er1
a848cd7e 38429 ac_status=$?
ac1cb8d3
VS
38430 grep -v '^ *+' conftest.er1 >conftest.err
38431 rm -f conftest.er1
38432 cat conftest.err >&5
a848cd7e
SC
38433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434 (exit $ac_status); } &&
8c539582 38435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38437 (eval $ac_try) 2>&5
38438 ac_status=$?
38439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440 (exit $ac_status); }; } &&
38441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38443 (eval $ac_try) 2>&5
38444 ac_status=$?
38445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38446 (exit $ac_status); }; }; then
38447 wx_cv_type_getsockname3=int
38448else
38449 echo "$as_me: failed program was:" >&5
38450sed 's/^/| /' conftest.$ac_ext >&5
38451
38452wx_cv_type_getsockname3=unknown
38453
38454fi
ac1cb8d3 38455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38456
38457fi
ac1cb8d3 38458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38459
38460 CFLAGS="$CFLAGS_OLD"
38461
38462
38463fi
ac1cb8d3 38464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38465
38466fi
38467echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38468echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38469
38470 if test "$wx_cv_type_getsockname3" = "unknown"; then
38471 wxUSE_SOCKETS=no
38472 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38473echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38474 else
38475 cat >>confdefs.h <<_ACEOF
38476#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38477_ACEOF
38478
38479 fi
38480 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38481echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38482if test "${wx_cv_type_getsockopt5+set}" = set; then
38483 echo $ECHO_N "(cached) $ECHO_C" >&6
38484else
38485
38486 cat >conftest.$ac_ext <<_ACEOF
38487/* confdefs.h. */
38488_ACEOF
38489cat confdefs.h >>conftest.$ac_ext
38490cat >>conftest.$ac_ext <<_ACEOF
38491/* end confdefs.h. */
38492
38493 #include <sys/types.h>
38494 #include <sys/socket.h>
38495
38496int
38497main ()
38498{
38499
38500 socklen_t len;
38501 getsockopt(0, 0, 0, 0, &len);
38502
38503 ;
38504 return 0;
38505}
38506_ACEOF
38507rm -f conftest.$ac_objext
38508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38509 (eval $ac_compile) 2>conftest.er1
38510 ac_status=$?
38511 grep -v '^ *+' conftest.er1 >conftest.err
38512 rm -f conftest.er1
38513 cat conftest.err >&5
38514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38515 (exit $ac_status); } &&
8c539582 38516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38518 (eval $ac_try) 2>&5
38519 ac_status=$?
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); }; } &&
38522 { ac_try='test -s conftest.$ac_objext'
38523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38524 (eval $ac_try) 2>&5
38525 ac_status=$?
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); }; }; then
38528 wx_cv_type_getsockopt5=socklen_t
38529else
38530 echo "$as_me: failed program was:" >&5
38531sed 's/^/| /' conftest.$ac_ext >&5
38532
38533
38534 CFLAGS_OLD="$CFLAGS"
38535 if test "$GCC" = yes ; then
38536 CFLAGS="$CFLAGS -Werror"
38537 fi
38538
38539 cat >conftest.$ac_ext <<_ACEOF
38540/* confdefs.h. */
38541_ACEOF
38542cat confdefs.h >>conftest.$ac_ext
38543cat >>conftest.$ac_ext <<_ACEOF
38544/* end confdefs.h. */
38545
38546 #include <sys/types.h>
38547 #include <sys/socket.h>
38548
38549int
38550main ()
38551{
38552
38553 size_t len;
38554 getsockopt(0, 0, 0, 0, &len);
38555
38556 ;
38557 return 0;
38558}
38559_ACEOF
38560rm -f conftest.$ac_objext
38561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38562 (eval $ac_compile) 2>conftest.er1
38563 ac_status=$?
38564 grep -v '^ *+' conftest.er1 >conftest.err
38565 rm -f conftest.er1
38566 cat conftest.err >&5
38567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38568 (exit $ac_status); } &&
8c539582 38569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38571 (eval $ac_try) 2>&5
38572 ac_status=$?
38573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38574 (exit $ac_status); }; } &&
38575 { ac_try='test -s conftest.$ac_objext'
38576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38577 (eval $ac_try) 2>&5
38578 ac_status=$?
38579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38580 (exit $ac_status); }; }; then
38581 wx_cv_type_getsockopt5=size_t
38582else
38583 echo "$as_me: failed program was:" >&5
38584sed 's/^/| /' conftest.$ac_ext >&5
38585
38586cat >conftest.$ac_ext <<_ACEOF
38587/* confdefs.h. */
38588_ACEOF
38589cat confdefs.h >>conftest.$ac_ext
38590cat >>conftest.$ac_ext <<_ACEOF
38591/* end confdefs.h. */
38592
38593 #include <sys/types.h>
38594 #include <sys/socket.h>
38595
38596int
38597main ()
38598{
38599
38600 int len;
38601 getsockopt(0, 0, 0, 0, &len);
38602
38603 ;
38604 return 0;
38605}
38606_ACEOF
38607rm -f conftest.$ac_objext
38608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38609 (eval $ac_compile) 2>conftest.er1
38610 ac_status=$?
38611 grep -v '^ *+' conftest.er1 >conftest.err
38612 rm -f conftest.er1
38613 cat conftest.err >&5
38614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38615 (exit $ac_status); } &&
8c539582 38616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38618 (eval $ac_try) 2>&5
38619 ac_status=$?
38620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38621 (exit $ac_status); }; } &&
38622 { ac_try='test -s conftest.$ac_objext'
38623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38624 (eval $ac_try) 2>&5
38625 ac_status=$?
38626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38627 (exit $ac_status); }; }; then
38628 wx_cv_type_getsockopt5=int
38629else
38630 echo "$as_me: failed program was:" >&5
38631sed 's/^/| /' conftest.$ac_ext >&5
38632
38633wx_cv_type_getsockopt5=unknown
38634
38635fi
38636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38637
38638fi
38639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38640
38641 CFLAGS="$CFLAGS_OLD"
38642
38643
38644fi
38645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38646
38647fi
38648echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38649echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38650
38651 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38652 wxUSE_SOCKETS=no
38653 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38654echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38655 else
38656 cat >>confdefs.h <<_ACEOF
38657#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38658_ACEOF
38659
38660 fi
4d4ff94c
VZ
38661 ac_ext=c
38662ac_cpp='$CPP $CPPFLAGS'
38663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38665ac_compiler_gnu=$ac_cv_c_compiler_gnu
38666
a848cd7e
SC
38667 fi
38668fi
38669
38670if test "$wxUSE_SOCKETS" = "yes" ; then
38671 cat >>confdefs.h <<\_ACEOF
38672#define wxUSE_SOCKETS 1
38673_ACEOF
38674
38675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38676fi
38677
38678if test "$wxUSE_PROTOCOL" = "yes"; then
38679 if test "$wxUSE_SOCKETS" != "yes"; then
38680 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38681echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38682 wxUSE_PROTOCOL=no
38683 fi
38684fi
38685
38686if test "$wxUSE_PROTOCOL" = "yes"; then
38687 cat >>confdefs.h <<\_ACEOF
38688#define wxUSE_PROTOCOL 1
38689_ACEOF
38690
38691
38692 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38693 cat >>confdefs.h <<\_ACEOF
38694#define wxUSE_PROTOCOL_HTTP 1
38695_ACEOF
38696
38697 fi
38698 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38699 cat >>confdefs.h <<\_ACEOF
38700#define wxUSE_PROTOCOL_FTP 1
38701_ACEOF
38702
38703 fi
38704 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38705 cat >>confdefs.h <<\_ACEOF
38706#define wxUSE_PROTOCOL_FILE 1
38707_ACEOF
38708
38709 fi
38710else
38711 if test "$wxUSE_FS_INET" = "yes"; then
38712 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38713echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38714 wxUSE_FS_INET="no"
38715 fi
38716fi
38717
38718if test "$wxUSE_URL" = "yes"; then
38719 if test "$wxUSE_PROTOCOL" != "yes"; then
38720 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38721echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38722 wxUSE_URL=no
38723 fi
38724 if test "$wxUSE_URL" = "yes"; then
38725 cat >>confdefs.h <<\_ACEOF
38726#define wxUSE_URL 1
38727_ACEOF
38728
38729 fi
38730fi
38731
38732if test "$wxUSE_FS_INET" = "yes"; then
38733 cat >>confdefs.h <<\_ACEOF
38734#define wxUSE_FS_INET 1
38735_ACEOF
38736
38737fi
38738
38739
ee45c548
MW
38740if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
38741 wxUSE_JOYSTICK=no
38742
38743 if test "$TOOLKIT" = "MSW"; then
38744 wxUSE_JOYSTICK=yes
38745
38746 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
38747 if test "$USE_DARWIN" = 1; then
38748 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
38749echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
38750 ac_ext=cc
38751ac_cpp='$CXXCPP $CPPFLAGS'
38752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38755
38756 cat >conftest.$ac_ext <<_ACEOF
38757/* confdefs.h. */
38758_ACEOF
38759cat confdefs.h >>conftest.$ac_ext
38760cat >>conftest.$ac_ext <<_ACEOF
38761/* end confdefs.h. */
38762 #include <IOKit/hid/IOHIDLib.h>
38763int
38764main ()
38765{
38766 IOHIDQueueInterface *qi = NULL;
38767 IOHIDCallbackFunction cb = NULL;
38768 qi->setEventCallout(NULL, cb, NULL, NULL);
38769 ;
38770 return 0;
38771}
38772_ACEOF
38773rm -f conftest.$ac_objext
38774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38775 (eval $ac_compile) 2>conftest.er1
38776 ac_status=$?
38777 grep -v '^ *+' conftest.er1 >conftest.err
38778 rm -f conftest.er1
38779 cat conftest.err >&5
38780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781 (exit $ac_status); } &&
8c539582 38782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
38783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38784 (eval $ac_try) 2>&5
38785 ac_status=$?
38786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38787 (exit $ac_status); }; } &&
38788 { ac_try='test -s conftest.$ac_objext'
38789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38790 (eval $ac_try) 2>&5
38791 ac_status=$?
38792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793 (exit $ac_status); }; }; then
38794 wxUSE_JOYSTICK=yes
a848cd7e 38795
ee45c548
MW
38796else
38797 echo "$as_me: failed program was:" >&5
38798sed 's/^/| /' conftest.$ac_ext >&5
38799
38800fi
38801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38802 ac_ext=c
38803ac_cpp='$CPP $CPPFLAGS'
38804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38806ac_compiler_gnu=$ac_cv_c_compiler_gnu
38807
38808 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
38809echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
38810 fi
38811
38812 else
a848cd7e
SC
38813
38814for ac_header in linux/joystick.h
38815do
38816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38817if eval "test \"\${$as_ac_Header+set}\" = set"; then
38818 echo "$as_me:$LINENO: checking for $ac_header" >&5
38819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38820if eval "test \"\${$as_ac_Header+set}\" = set"; then
38821 echo $ECHO_N "(cached) $ECHO_C" >&6
38822fi
38823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38825else
38826 # Is the header compilable?
38827echo "$as_me:$LINENO: checking $ac_header usability" >&5
38828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38829cat >conftest.$ac_ext <<_ACEOF
38830/* confdefs.h. */
38831_ACEOF
38832cat confdefs.h >>conftest.$ac_ext
38833cat >>conftest.$ac_ext <<_ACEOF
38834/* end confdefs.h. */
38835$ac_includes_default
38836#include <$ac_header>
38837_ACEOF
38838rm -f conftest.$ac_objext
38839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38840 (eval $ac_compile) 2>conftest.er1
a848cd7e 38841 ac_status=$?
ac1cb8d3
VS
38842 grep -v '^ *+' conftest.er1 >conftest.err
38843 rm -f conftest.er1
38844 cat conftest.err >&5
a848cd7e
SC
38845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846 (exit $ac_status); } &&
8c539582 38847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38849 (eval $ac_try) 2>&5
38850 ac_status=$?
38851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852 (exit $ac_status); }; } &&
38853 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38855 (eval $ac_try) 2>&5
38856 ac_status=$?
38857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858 (exit $ac_status); }; }; then
38859 ac_header_compiler=yes
38860else
38861 echo "$as_me: failed program was:" >&5
38862sed 's/^/| /' conftest.$ac_ext >&5
38863
38864ac_header_compiler=no
38865fi
ac1cb8d3 38866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38867echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38868echo "${ECHO_T}$ac_header_compiler" >&6
38869
38870# Is the header present?
38871echo "$as_me:$LINENO: checking $ac_header presence" >&5
38872echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38873cat >conftest.$ac_ext <<_ACEOF
38874/* confdefs.h. */
38875_ACEOF
38876cat confdefs.h >>conftest.$ac_ext
38877cat >>conftest.$ac_ext <<_ACEOF
38878/* end confdefs.h. */
38879#include <$ac_header>
38880_ACEOF
38881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38883 ac_status=$?
38884 grep -v '^ *+' conftest.er1 >conftest.err
38885 rm -f conftest.er1
38886 cat conftest.err >&5
38887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38888 (exit $ac_status); } >/dev/null; then
38889 if test -s conftest.err; then
38890 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38892 else
38893 ac_cpp_err=
38894 fi
38895else
38896 ac_cpp_err=yes
38897fi
38898if test -z "$ac_cpp_err"; then
38899 ac_header_preproc=yes
38900else
38901 echo "$as_me: failed program was:" >&5
38902sed 's/^/| /' conftest.$ac_ext >&5
38903
38904 ac_header_preproc=no
38905fi
38906rm -f conftest.err conftest.$ac_ext
38907echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38908echo "${ECHO_T}$ac_header_preproc" >&6
38909
38910# So? What about this header?
ac1cb8d3
VS
38911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38912 yes:no: )
a848cd7e
SC
38913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38917 ac_header_preproc=yes
a848cd7e 38918 ;;
ac1cb8d3 38919 no:yes:* )
a848cd7e
SC
38920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38923echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38927echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38932 (
38933 cat <<\_ASBOX
ac1cb8d3
VS
38934## ----------------------------------------- ##
38935## Report this to wx-dev@lists.wxwidgets.org ##
38936## ----------------------------------------- ##
a848cd7e
SC
38937_ASBOX
38938 ) |
38939 sed "s/^/$as_me: WARNING: /" >&2
38940 ;;
38941esac
38942echo "$as_me:$LINENO: checking for $ac_header" >&5
38943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38944if eval "test \"\${$as_ac_Header+set}\" = set"; then
38945 echo $ECHO_N "(cached) $ECHO_C" >&6
38946else
ac1cb8d3 38947 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38948fi
38949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38951
38952fi
38953if test `eval echo '${'$as_ac_Header'}'` = yes; then
38954 cat >>confdefs.h <<_ACEOF
38955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38956_ACEOF
ee45c548 38957 wxUSE_JOYSTICK=yes
a848cd7e
SC
38958fi
38959
38960done
38961
ee45c548 38962 fi
4cb1d3da 38963
ee45c548
MW
38964 if test "$wxUSE_JOYSTICK" = "yes"; then
38965 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38966#define wxUSE_JOYSTICK 1
38967_ACEOF
38968
ee45c548
MW
38969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38970 else
38971 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38972echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
38973 fi
38974fi
38975
38976
38977
38978if test "$wxUSE_FONTMAP" = "yes" ; then
38979 cat >>confdefs.h <<\_ACEOF
38980#define wxUSE_FONTMAP 1
38981_ACEOF
38982
38983fi
38984
38985if test "$wxUSE_UNICODE" = "yes" ; then
38986 cat >>confdefs.h <<\_ACEOF
38987#define wxUSE_UNICODE 1
38988_ACEOF
38989
38990
38991 if test "$USE_WIN32" != 1; then
38992 wxUSE_UNICODE_MSLU=no
38993 fi
38994
38995 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38996 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38997echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38998if test "${ac_cv_lib_unicows_main+set}" = set; then
38999 echo $ECHO_N "(cached) $ECHO_C" >&6
39000else
39001 ac_check_lib_save_LIBS=$LIBS
39002LIBS="-lunicows $LIBS"
39003cat >conftest.$ac_ext <<_ACEOF
39004/* confdefs.h. */
39005_ACEOF
39006cat confdefs.h >>conftest.$ac_ext
39007cat >>conftest.$ac_ext <<_ACEOF
39008/* end confdefs.h. */
39009
39010
39011int
39012main ()
39013{
39014main ();
39015 ;
39016 return 0;
39017}
39018_ACEOF
39019rm -f conftest.$ac_objext conftest$ac_exeext
39020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39021 (eval $ac_link) 2>conftest.er1
a848cd7e 39022 ac_status=$?
ac1cb8d3
VS
39023 grep -v '^ *+' conftest.er1 >conftest.err
39024 rm -f conftest.er1
39025 cat conftest.err >&5
a848cd7e
SC
39026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39027 (exit $ac_status); } &&
8c539582 39028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39030 (eval $ac_try) 2>&5
39031 ac_status=$?
39032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39033 (exit $ac_status); }; } &&
39034 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39036 (eval $ac_try) 2>&5
39037 ac_status=$?
39038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39039 (exit $ac_status); }; }; then
39040 ac_cv_lib_unicows_main=yes
39041else
39042 echo "$as_me: failed program was:" >&5
39043sed 's/^/| /' conftest.$ac_ext >&5
39044
39045ac_cv_lib_unicows_main=no
39046fi
ac1cb8d3
VS
39047rm -f conftest.err conftest.$ac_objext \
39048 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39049LIBS=$ac_check_lib_save_LIBS
39050fi
39051echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
39052echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
39053if test $ac_cv_lib_unicows_main = yes; then
39054
39055 cat >>confdefs.h <<\_ACEOF
39056#define wxUSE_UNICODE_MSLU 1
39057_ACEOF
39058
39059
39060else
39061
39062 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39063 Applications will only run on Windows NT/2000/XP!" >&5
39064echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39065 Applications will only run on Windows NT/2000/XP!" >&2;}
39066 wxUSE_UNICODE_MSLU=no
39067
39068fi
39069
39070 fi
39071fi
39072
39073if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
39074 cat >>confdefs.h <<\_ACEOF
39075#define wxUSE_EXPERIMENTAL_PRINTF 1
39076_ACEOF
39077
39078fi
39079
39080
39081if test "$wxUSE_POSTSCRIPT" = "yes" ; then
39082 cat >>confdefs.h <<\_ACEOF
39083#define wxUSE_POSTSCRIPT 1
39084_ACEOF
39085
39086fi
39087
39088cat >>confdefs.h <<\_ACEOF
39089#define wxUSE_AFM_FOR_POSTSCRIPT 1
39090_ACEOF
39091
39092
39093cat >>confdefs.h <<\_ACEOF
39094#define wxUSE_NORMALIZED_PS_FONTS 1
39095_ACEOF
39096
39097
39098
39099if test "$wxUSE_CONSTRAINTS" = "yes"; then
39100 cat >>confdefs.h <<\_ACEOF
39101#define wxUSE_CONSTRAINTS 1
39102_ACEOF
39103
39104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39105fi
39106
8a7b1113
VZ
39107if test "$wxUSE_MDI" = "yes"; then
39108 cat >>confdefs.h <<\_ACEOF
39109#define wxUSE_MDI 1
39110_ACEOF
39111
39112
39113 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39114 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39115#define wxUSE_MDI_ARCHITECTURE 1
39116_ACEOF
39117
8a7b1113
VZ
39118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39119 fi
a848cd7e
SC
39120fi
39121
39122if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39123 cat >>confdefs.h <<\_ACEOF
39124#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39125_ACEOF
39126
39127 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39128 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39130 fi
39131fi
39132
39133if test "$wxUSE_HELP" = "yes"; then
39134 cat >>confdefs.h <<\_ACEOF
39135#define wxUSE_HELP 1
39136_ACEOF
39137
39138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39139
39140 if test "$wxUSE_MSW" = 1; then
39141 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39142 cat >>confdefs.h <<\_ACEOF
39143#define wxUSE_MS_HTML_HELP 1
39144_ACEOF
39145
39146 fi
39147 fi
39148
39149 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39150 if test "$wxUSE_HTML" = "yes"; then
39151 cat >>confdefs.h <<\_ACEOF
39152#define wxUSE_WXHTML_HELP 1
39153_ACEOF
39154
39155 else
39156 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39157echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39158 wxUSE_WXHTML_HELP=no
39159 fi
39160 fi
39161fi
39162
39163if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39164 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39165 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39166echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39167 else
39168 cat >>confdefs.h <<\_ACEOF
39169#define wxUSE_PRINTING_ARCHITECTURE 1
39170_ACEOF
39171
39172 fi
39173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39174fi
39175
39176if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39177 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39178echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39179 { (exit 1); exit 1; }; }
39180fi
39181
39182
39183if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39184 -o "$wxUSE_CLIPBOARD" = "yes" \
39185 -o "$wxUSE_OLE" = "yes" \
39186 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39187
39188for ac_header in ole2.h
39189do
39190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39191if eval "test \"\${$as_ac_Header+set}\" = set"; then
39192 echo "$as_me:$LINENO: checking for $ac_header" >&5
39193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39194if eval "test \"\${$as_ac_Header+set}\" = set"; then
39195 echo $ECHO_N "(cached) $ECHO_C" >&6
39196fi
39197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39199else
39200 # Is the header compilable?
39201echo "$as_me:$LINENO: checking $ac_header usability" >&5
39202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39203cat >conftest.$ac_ext <<_ACEOF
39204/* confdefs.h. */
39205_ACEOF
39206cat confdefs.h >>conftest.$ac_ext
39207cat >>conftest.$ac_ext <<_ACEOF
39208/* end confdefs.h. */
39209$ac_includes_default
39210#include <$ac_header>
39211_ACEOF
39212rm -f conftest.$ac_objext
39213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39214 (eval $ac_compile) 2>conftest.er1
a848cd7e 39215 ac_status=$?
ac1cb8d3
VS
39216 grep -v '^ *+' conftest.er1 >conftest.err
39217 rm -f conftest.er1
39218 cat conftest.err >&5
a848cd7e
SC
39219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39220 (exit $ac_status); } &&
8c539582 39221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39223 (eval $ac_try) 2>&5
39224 ac_status=$?
39225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226 (exit $ac_status); }; } &&
39227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39229 (eval $ac_try) 2>&5
39230 ac_status=$?
39231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232 (exit $ac_status); }; }; then
39233 ac_header_compiler=yes
39234else
39235 echo "$as_me: failed program was:" >&5
39236sed 's/^/| /' conftest.$ac_ext >&5
39237
39238ac_header_compiler=no
39239fi
ac1cb8d3 39240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39241echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39242echo "${ECHO_T}$ac_header_compiler" >&6
39243
39244# Is the header present?
39245echo "$as_me:$LINENO: checking $ac_header presence" >&5
39246echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39247cat >conftest.$ac_ext <<_ACEOF
39248/* confdefs.h. */
39249_ACEOF
39250cat confdefs.h >>conftest.$ac_ext
39251cat >>conftest.$ac_ext <<_ACEOF
39252/* end confdefs.h. */
39253#include <$ac_header>
39254_ACEOF
39255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39257 ac_status=$?
39258 grep -v '^ *+' conftest.er1 >conftest.err
39259 rm -f conftest.er1
39260 cat conftest.err >&5
39261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262 (exit $ac_status); } >/dev/null; then
39263 if test -s conftest.err; then
39264 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39266 else
39267 ac_cpp_err=
39268 fi
39269else
39270 ac_cpp_err=yes
39271fi
39272if test -z "$ac_cpp_err"; then
39273 ac_header_preproc=yes
39274else
39275 echo "$as_me: failed program was:" >&5
39276sed 's/^/| /' conftest.$ac_ext >&5
39277
39278 ac_header_preproc=no
39279fi
39280rm -f conftest.err conftest.$ac_ext
39281echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39282echo "${ECHO_T}$ac_header_preproc" >&6
39283
39284# So? What about this header?
ac1cb8d3
VS
39285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39286 yes:no: )
a848cd7e
SC
39287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39291 ac_header_preproc=yes
a848cd7e 39292 ;;
ac1cb8d3 39293 no:yes:* )
a848cd7e
SC
39294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39306 (
39307 cat <<\_ASBOX
ac1cb8d3
VS
39308## ----------------------------------------- ##
39309## Report this to wx-dev@lists.wxwidgets.org ##
39310## ----------------------------------------- ##
a848cd7e
SC
39311_ASBOX
39312 ) |
39313 sed "s/^/$as_me: WARNING: /" >&2
39314 ;;
39315esac
39316echo "$as_me:$LINENO: checking for $ac_header" >&5
39317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39318if eval "test \"\${$as_ac_Header+set}\" = set"; then
39319 echo $ECHO_N "(cached) $ECHO_C" >&6
39320else
ac1cb8d3 39321 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39322fi
39323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39325
39326fi
39327if test `eval echo '${'$as_ac_Header'}'` = yes; then
39328 cat >>confdefs.h <<_ACEOF
39329#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39330_ACEOF
39331
39332fi
39333
39334done
39335
39336
39337 if test "$ac_cv_header_ole2_h" = "yes" ; then
39338 if test "$GCC" = yes ; then
39339
39340
39341 ac_ext=cc
39342ac_cpp='$CXXCPP $CPPFLAGS'
39343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39346
39347
39348 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39349echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39350 cat >conftest.$ac_ext <<_ACEOF
39351/* confdefs.h. */
39352_ACEOF
39353cat confdefs.h >>conftest.$ac_ext
39354cat >>conftest.$ac_ext <<_ACEOF
39355/* end confdefs.h. */
39356#include <windows.h>
39357 #include <ole2.h>
39358int
39359main ()
39360{
39361
39362 ;
39363 return 0;
39364}
39365_ACEOF
39366rm -f conftest.$ac_objext
39367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39368 (eval $ac_compile) 2>conftest.er1
a848cd7e 39369 ac_status=$?
ac1cb8d3
VS
39370 grep -v '^ *+' conftest.er1 >conftest.err
39371 rm -f conftest.er1
39372 cat conftest.err >&5
a848cd7e
SC
39373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39374 (exit $ac_status); } &&
8c539582 39375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39377 (eval $ac_try) 2>&5
39378 ac_status=$?
39379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380 (exit $ac_status); }; } &&
39381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39383 (eval $ac_try) 2>&5
39384 ac_status=$?
39385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39386 (exit $ac_status); }; }; then
39387 echo "$as_me:$LINENO: result: no" >&5
39388echo "${ECHO_T}no" >&6
39389else
39390 echo "$as_me: failed program was:" >&5
39391sed 's/^/| /' conftest.$ac_ext >&5
39392
39393echo "$as_me:$LINENO: result: yes" >&5
39394echo "${ECHO_T}yes" >&6
39395 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39396fi
ac1cb8d3 39397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39398 ac_ext=c
39399ac_cpp='$CPP $CPPFLAGS'
39400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39402ac_compiler_gnu=$ac_cv_c_compiler_gnu
39403
a848cd7e
SC
39404 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39405 if test "$wxUSE_OLE" = "yes" ; then
39406 cat >>confdefs.h <<\_ACEOF
39407#define wxUSE_OLE 1
39408_ACEOF
39409
0b78747f 39410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39411 fi
39412 fi
39413
39414 if test "$wxUSE_DATAOBJ" = "yes" ; then
39415 cat >>confdefs.h <<\_ACEOF
39416#define wxUSE_DATAOBJ 1
39417_ACEOF
39418
39419 fi
39420 else
39421 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39422echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39423
39424 wxUSE_CLIPBOARD=no
39425 wxUSE_DRAG_AND_DROP=no
39426 wxUSE_DATAOBJ=no
39427 wxUSE_OLE=no
39428 fi
39429
39430 if test "$wxUSE_METAFILE" = "yes"; then
39431 cat >>confdefs.h <<\_ACEOF
39432#define wxUSE_METAFILE 1
39433_ACEOF
39434
39435
39436 cat >>confdefs.h <<\_ACEOF
39437#define wxUSE_ENH_METAFILE 1
39438_ACEOF
39439
39440 fi
39441fi
39442
39443if test "$wxUSE_IPC" = "yes"; then
0b78747f 39444 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39445 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39446echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39447 wxUSE_IPC=no
a848cd7e
SC
39448 fi
39449
0b78747f
MW
39450 if test "$wxUSE_IPC" = "yes"; then
39451 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39452#define wxUSE_IPC 1
39453_ACEOF
39454
0b78747f
MW
39455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39456 fi
a848cd7e
SC
39457fi
39458
39459if test "$wxUSE_CLIPBOARD" = "yes"; then
39460 if test "$wxUSE_MGL" = 1; then
39461 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39462echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39463 wxUSE_CLIPBOARD=no
39464 fi
39465
39466 if test "$wxUSE_CLIPBOARD" = "yes"; then
39467 cat >>confdefs.h <<\_ACEOF
39468#define wxUSE_CLIPBOARD 1
39469_ACEOF
39470
39471
39472 cat >>confdefs.h <<\_ACEOF
39473#define wxUSE_DATAOBJ 1
39474_ACEOF
39475
39476 fi
39477fi
39478
39479if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39480 if test "$wxUSE_GTK" = 1; then
39481 if test "$WXGTK12" != 1; then
39482 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39483echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39484 wxUSE_DRAG_AND_DROP=no
39485 fi
39486 fi
39487
39488 if test "$wxUSE_MOTIF" = 1; then
39489 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39490echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39491 wxUSE_DRAG_AND_DROP=no
39492 fi
39493
39494 if test "$wxUSE_X11" = 1; then
39495 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39496echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39497 wxUSE_DRAG_AND_DROP=no
39498 fi
39499
39500 if test "$wxUSE_MGL" = 1; then
39501 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39502echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39503 wxUSE_DRAG_AND_DROP=no
39504 fi
39505
39506 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39507 cat >>confdefs.h <<\_ACEOF
39508#define wxUSE_DRAG_AND_DROP 1
39509_ACEOF
39510
39511 fi
39512
39513fi
39514
39515if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39517fi
39518
39519if test "$wxUSE_SPLINES" = "yes" ; then
39520 cat >>confdefs.h <<\_ACEOF
39521#define wxUSE_SPLINES 1
39522_ACEOF
39523
39524fi
39525
fbe2ca43
SN
39526if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39527 cat >>confdefs.h <<\_ACEOF
39528#define wxUSE_MOUSEWHEEL 1
39529_ACEOF
39530
39531fi
39532
a848cd7e
SC
39533
39534USES_CONTROLS=0
39535if test "$wxUSE_CONTROLS" = "yes"; then
39536 USES_CONTROLS=1
39537fi
39538
39539if test "$wxUSE_ACCEL" = "yes"; then
39540 cat >>confdefs.h <<\_ACEOF
39541#define wxUSE_ACCEL 1
39542_ACEOF
39543
39544 USES_CONTROLS=1
39545fi
39546
39547if test "$wxUSE_BUTTON" = "yes"; then
39548 cat >>confdefs.h <<\_ACEOF
39549#define wxUSE_BUTTON 1
39550_ACEOF
39551
39552 USES_CONTROLS=1
39553fi
39554
39555if test "$wxUSE_BMPBUTTON" = "yes"; then
39556 cat >>confdefs.h <<\_ACEOF
39557#define wxUSE_BMPBUTTON 1
39558_ACEOF
39559
39560 USES_CONTROLS=1
39561fi
39562
39563if test "$wxUSE_CALCTRL" = "yes"; then
39564 cat >>confdefs.h <<\_ACEOF
39565#define wxUSE_CALENDARCTRL 1
39566_ACEOF
39567
39568 USES_CONTROLS=1
39569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39570fi
39571
39572if test "$wxUSE_CARET" = "yes"; then
39573 cat >>confdefs.h <<\_ACEOF
39574#define wxUSE_CARET 1
39575_ACEOF
39576
39577 USES_CONTROLS=1
39578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39579fi
39580
39581if test "$wxUSE_COMBOBOX" = "yes"; then
39582 cat >>confdefs.h <<\_ACEOF
39583#define wxUSE_COMBOBOX 1
39584_ACEOF
39585
39586 USES_CONTROLS=1
39587fi
39588
39589if test "$wxUSE_CHOICE" = "yes"; then
39590 cat >>confdefs.h <<\_ACEOF
39591#define wxUSE_CHOICE 1
39592_ACEOF
39593
39594 USES_CONTROLS=1
39595fi
39596
92bbdbcd
WS
39597if test "$wxUSE_CHOICEBOOK" = "yes"; then
39598 cat >>confdefs.h <<\_ACEOF
39599#define wxUSE_CHOICEBOOK 1
39600_ACEOF
39601
39602 USES_CONTROLS=1
39603fi
39604
a848cd7e
SC
39605if test "$wxUSE_CHECKBOX" = "yes"; then
39606 cat >>confdefs.h <<\_ACEOF
39607#define wxUSE_CHECKBOX 1
39608_ACEOF
39609
39610 USES_CONTROLS=1
39611fi
39612
39613if test "$wxUSE_CHECKLST" = "yes"; then
39614 cat >>confdefs.h <<\_ACEOF
39615#define wxUSE_CHECKLISTBOX 1
39616_ACEOF
39617
39618 USES_CONTROLS=1
39619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39620fi
39621
da98e9be
VZ
39622if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39623 cat >>confdefs.h <<\_ACEOF
39624#define wxUSE_DATEPICKCTRL 1
39625_ACEOF
39626
39627 USES_CONTROLS=1
39628fi
39629
a848cd7e
SC
39630if test "$wxUSE_DISPLAY" = "yes"; then
39631 cat >>confdefs.h <<\_ACEOF
39632#define wxUSE_DISPLAY 1
39633_ACEOF
39634
0b78747f 39635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39636fi
39637
39638if test "$wxUSE_GAUGE" = "yes"; then
39639 cat >>confdefs.h <<\_ACEOF
39640#define wxUSE_GAUGE 1
39641_ACEOF
39642
39643 USES_CONTROLS=1
39644fi
39645
39646if test "$wxUSE_GRID" = "yes"; then
39647 cat >>confdefs.h <<\_ACEOF
39648#define wxUSE_GRID 1
39649_ACEOF
39650
39651 USES_CONTROLS=1
39652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39653fi
39654
39655if test "$wxUSE_IMAGLIST" = "yes"; then
39656 cat >>confdefs.h <<\_ACEOF
39657#define wxUSE_IMAGLIST 1
39658_ACEOF
39659
39660fi
39661
39662if test "$wxUSE_LISTBOOK" = "yes"; then
39663 cat >>confdefs.h <<\_ACEOF
39664#define wxUSE_LISTBOOK 1
39665_ACEOF
39666
39667 USES_CONTROLS=1
39668fi
39669
39670if test "$wxUSE_LISTBOX" = "yes"; then
39671 cat >>confdefs.h <<\_ACEOF
39672#define wxUSE_LISTBOX 1
39673_ACEOF
39674
39675 USES_CONTROLS=1
0b78747f 39676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39677fi
39678
39679if test "$wxUSE_LISTCTRL" = "yes"; then
39680 if test "$wxUSE_IMAGLIST" = "yes"; then
39681 cat >>confdefs.h <<\_ACEOF
39682#define wxUSE_LISTCTRL 1
39683_ACEOF
39684
39685 USES_CONTROLS=1
39686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39687 else
39688 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39689echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39690 fi
39691fi
39692
39693if test "$wxUSE_NOTEBOOK" = "yes"; then
39694 cat >>confdefs.h <<\_ACEOF
39695#define wxUSE_NOTEBOOK 1
39696_ACEOF
39697
39698 USES_CONTROLS=1
39699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39700fi
39701
39702
39703if test "$wxUSE_RADIOBOX" = "yes"; then
39704 cat >>confdefs.h <<\_ACEOF
39705#define wxUSE_RADIOBOX 1
39706_ACEOF
39707
39708 USES_CONTROLS=1
39709fi
39710
39711if test "$wxUSE_RADIOBTN" = "yes"; then
39712 cat >>confdefs.h <<\_ACEOF
39713#define wxUSE_RADIOBTN 1
39714_ACEOF
39715
39716 USES_CONTROLS=1
39717fi
39718
39719if test "$wxUSE_SASH" = "yes"; then
39720 cat >>confdefs.h <<\_ACEOF
39721#define wxUSE_SASH 1
39722_ACEOF
39723
39724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39725fi
39726
39727if test "$wxUSE_SCROLLBAR" = "yes"; then
39728 cat >>confdefs.h <<\_ACEOF
39729#define wxUSE_SCROLLBAR 1
39730_ACEOF
39731
39732 USES_CONTROLS=1
39733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39734fi
39735
39736if test "$wxUSE_SLIDER" = "yes"; then
39737 cat >>confdefs.h <<\_ACEOF
39738#define wxUSE_SLIDER 1
39739_ACEOF
39740
39741 USES_CONTROLS=1
39742fi
39743
39744if test "$wxUSE_SPINBTN" = "yes"; then
39745 cat >>confdefs.h <<\_ACEOF
39746#define wxUSE_SPINBTN 1
39747_ACEOF
39748
39749 USES_CONTROLS=1
39750fi
39751
39752if test "$wxUSE_SPINCTRL" = "yes"; then
39753 cat >>confdefs.h <<\_ACEOF
39754#define wxUSE_SPINCTRL 1
39755_ACEOF
39756
39757 USES_CONTROLS=1
39758fi
39759
39760if test "$wxUSE_SPLITTER" = "yes"; then
39761 cat >>confdefs.h <<\_ACEOF
39762#define wxUSE_SPLITTER 1
39763_ACEOF
39764
39765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39766fi
39767
39768if test "$wxUSE_STATBMP" = "yes"; then
39769 cat >>confdefs.h <<\_ACEOF
39770#define wxUSE_STATBMP 1
39771_ACEOF
39772
39773 USES_CONTROLS=1
39774fi
39775
39776if test "$wxUSE_STATBOX" = "yes"; then
39777 cat >>confdefs.h <<\_ACEOF
39778#define wxUSE_STATBOX 1
39779_ACEOF
39780
39781 USES_CONTROLS=1
39782fi
39783
39784if test "$wxUSE_STATTEXT" = "yes"; then
39785 cat >>confdefs.h <<\_ACEOF
39786#define wxUSE_STATTEXT 1
39787_ACEOF
39788
39789 USES_CONTROLS=1
39790fi
39791
39792if test "$wxUSE_STATLINE" = "yes"; then
39793 cat >>confdefs.h <<\_ACEOF
39794#define wxUSE_STATLINE 1
39795_ACEOF
39796
39797 USES_CONTROLS=1
39798fi
39799
39800if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39801 cat >>confdefs.h <<\_ACEOF
39802#define wxUSE_NATIVE_STATUSBAR 1
39803_ACEOF
39804
a848cd7e
SC
39805 cat >>confdefs.h <<\_ACEOF
39806#define wxUSE_STATUSBAR 1
39807_ACEOF
39808
39809 USES_CONTROLS=1
39810
39811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39812fi
39813
39814if test "$wxUSE_TABDIALOG" = "yes"; then
39815 cat >>confdefs.h <<\_ACEOF
39816#define wxUSE_TAB_DIALOG 1
39817_ACEOF
39818
a848cd7e
SC
39819fi
39820
39821if test "$wxUSE_TEXTCTRL" = "yes"; then
39822 cat >>confdefs.h <<\_ACEOF
39823#define wxUSE_TEXTCTRL 1
39824_ACEOF
39825
39826 USES_CONTROLS=1
39827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39828fi
39829
39830if test "$wxUSE_TOGGLEBTN" = "yes"; then
39831 if test "$wxUSE_COCOA" = 1 ; then
39832 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39833echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39834 wxUSE_TOGGLEBTN=no
39835 fi
39836 if test "$wxUSE_UNIVERSAL" = "yes"; then
39837 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39838echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39839 wxUSE_TOGGLEBTN=no
39840 fi
39841
39842 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39843 cat >>confdefs.h <<\_ACEOF
39844#define wxUSE_TOGGLEBTN 1
39845_ACEOF
39846
39847 USES_CONTROLS=1
39848 fi
39849fi
39850
39851if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39852 cat >>confdefs.h <<\_ACEOF
39853#define wxUSE_TOOLBAR_SIMPLE 1
39854_ACEOF
39855
39856 wxUSE_TOOLBAR="yes"
39857 USES_CONTROLS=1
39858fi
39859
39860if test "$wxUSE_TOOLBAR" = "yes"; then
39861 cat >>confdefs.h <<\_ACEOF
39862#define wxUSE_TOOLBAR 1
39863_ACEOF
39864
39865 USES_CONTROLS=1
39866
39867 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39868 wxUSE_TOOLBAR_NATIVE="yes"
39869 fi
39870
39871 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39872 cat >>confdefs.h <<\_ACEOF
39873#define wxUSE_TOOLBAR_NATIVE 1
39874_ACEOF
39875
39876 USES_CONTROLS=1
39877 fi
39878
39879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39880fi
39881
39882if test "$wxUSE_TOOLTIPS" = "yes"; then
39883 if test "$wxUSE_MOTIF" = 1; then
39884 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39885echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39886 else
39887 if test "$wxUSE_UNIVERSAL" = "yes"; then
39888 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39889echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39890 else
39891 cat >>confdefs.h <<\_ACEOF
39892#define wxUSE_TOOLTIPS 1
39893_ACEOF
39894
39895 fi
39896 fi
39897fi
39898
39899if test "$wxUSE_TREECTRL" = "yes"; then
39900 if test "$wxUSE_IMAGLIST" = "yes"; then
39901 cat >>confdefs.h <<\_ACEOF
39902#define wxUSE_TREECTRL 1
39903_ACEOF
39904
39905 USES_CONTROLS=1
39906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39907 else
39908 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39909echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39910 fi
39911fi
39912
39913if test "$wxUSE_POPUPWIN" = "yes"; then
39914 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39915 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39916echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39917 else
39918 if test "$wxUSE_PM" = 1; then
39919 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39920echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39921 else
39922 cat >>confdefs.h <<\_ACEOF
39923#define wxUSE_POPUPWIN 1
39924_ACEOF
39925
0b78747f 39926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39927
39928 USES_CONTROLS=1
39929 fi
39930 fi
39931fi
39932
0dcd06dd 39933if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39934 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39935 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39936echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39937 else
39938 cat >>confdefs.h <<\_ACEOF
39939#define wxUSE_DIALUP_MANAGER 1
39940_ACEOF
39941
39942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39943 fi
39944fi
39945
a848cd7e
SC
39946if test "$wxUSE_TIPWINDOW" = "yes"; then
39947 if test "$wxUSE_PM" = 1; then
39948 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39949echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39950 else
39951 cat >>confdefs.h <<\_ACEOF
39952#define wxUSE_TIPWINDOW 1
39953_ACEOF
39954
39955 fi
39956fi
39957
39958if test "$USES_CONTROLS" = 1; then
39959 cat >>confdefs.h <<\_ACEOF
39960#define wxUSE_CONTROLS 1
39961_ACEOF
39962
39963fi
39964
39965
39966if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39967 cat >>confdefs.h <<\_ACEOF
39968#define wxUSE_ACCESSIBILITY 1
39969_ACEOF
39970
39971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39972fi
39973
39974if test "$wxUSE_DRAGIMAGE" = "yes"; then
39975 cat >>confdefs.h <<\_ACEOF
39976#define wxUSE_DRAGIMAGE 1
39977_ACEOF
39978
39979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39980fi
39981
39982if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39983 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39984 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39985echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39986 else
39987 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39988#define wxUSE_EXCEPTIONS 1
39989_ACEOF
39990
07bea8f0
VS
39991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39992 fi
a848cd7e
SC
39993fi
39994
39995USE_HTML=0
39996if test "$wxUSE_HTML" = "yes"; then
39997 cat >>confdefs.h <<\_ACEOF
39998#define wxUSE_HTML 1
39999_ACEOF
40000
40001 USE_HTML=1
40002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
40003 if test "$wxUSE_MAC" = 1; then
40004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
40005 fi
a848cd7e 40006fi
646b6ec1 40007if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 40008 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
40009 old_CPPFLAGS="$CPPFLAGS"
40010 CPPFLAGS="$CPPFLAGS -x objective-c++"
40011 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
40012echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
40013if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
40014 echo $ECHO_N "(cached) $ECHO_C" >&6
40015else
40016 cat >conftest.$ac_ext <<_ACEOF
40017/* confdefs.h. */
40018_ACEOF
40019cat confdefs.h >>conftest.$ac_ext
40020cat >>conftest.$ac_ext <<_ACEOF
40021/* end confdefs.h. */
40022#include <Carbon/Carbon.h>
40023
40024#include <WebKit/HIWebView.h>
40025_ACEOF
40026rm -f conftest.$ac_objext
40027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40028 (eval $ac_compile) 2>conftest.er1
40029 ac_status=$?
40030 grep -v '^ *+' conftest.er1 >conftest.err
40031 rm -f conftest.er1
40032 cat conftest.err >&5
40033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40034 (exit $ac_status); } &&
8c539582 40035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
40036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40037 (eval $ac_try) 2>&5
40038 ac_status=$?
40039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040 (exit $ac_status); }; } &&
40041 { ac_try='test -s conftest.$ac_objext'
40042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40043 (eval $ac_try) 2>&5
40044 ac_status=$?
40045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046 (exit $ac_status); }; }; then
40047 ac_cv_header_WebKit_HIWebView_h=yes
40048else
40049 echo "$as_me: failed program was:" >&5
40050sed 's/^/| /' conftest.$ac_ext >&5
40051
40052ac_cv_header_WebKit_HIWebView_h=no
40053fi
40054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40055fi
40056echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
40057echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
40058if test $ac_cv_header_WebKit_HIWebView_h = yes; then
40059
40060 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
40061#define wxUSE_WEBKIT 1
40062_ACEOF
40063
07bea8f0
VS
40064 WEBKIT_LINK="-framework WebKit"
40065
40066else
40067
40068 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
40069echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
40070 wxUSE_WEBKIT=no
40071
646b6ec1
VS
40072fi
40073
07bea8f0
VS
40074
40075 CPPFLAGS="$old_CPPFLAGS"
40076 elif test "$wxUSE_COCOA" = 1; then
40077 cat >>confdefs.h <<\_ACEOF
40078#define wxUSE_WEBKIT 1
40079_ACEOF
40080
40081 else
40082 wxUSE_WEBKIT=no
40083 fi
40084fi
40085
9a8f0513
VS
40086USE_XRC=0
40087if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
40088 if test "$wxUSE_XML" != "yes"; then
40089 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
40090echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
40091 wxUSE_XRC=no
40092 else
40093 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
40094#define wxUSE_XRC 1
40095_ACEOF
40096
d2ebf0b7
VS
40097 USE_XRC=1
40098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40099 fi
9a8f0513 40100fi
07bea8f0 40101
a848cd7e
SC
40102if test "$wxUSE_MENUS" = "yes"; then
40103 cat >>confdefs.h <<\_ACEOF
40104#define wxUSE_MENUS 1
40105_ACEOF
40106
40107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40108fi
40109
40110if test "$wxUSE_METAFILE" = "yes"; then
40111 cat >>confdefs.h <<\_ACEOF
40112#define wxUSE_METAFILE 1
40113_ACEOF
40114
40115fi
40116
40117if test "$wxUSE_MIMETYPE" = "yes"; then
40118 cat >>confdefs.h <<\_ACEOF
40119#define wxUSE_MIMETYPE 1
40120_ACEOF
40121
40122fi
40123
40124if test "$wxUSE_MINIFRAME" = "yes"; then
40125 cat >>confdefs.h <<\_ACEOF
40126#define wxUSE_MINIFRAME 1
40127_ACEOF
40128
40129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40130fi
40131
40132if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40133 cat >>confdefs.h <<\_ACEOF
40134#define wxUSE_SYSTEM_OPTIONS 1
40135_ACEOF
40136
40137 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40138 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40140 fi
40141fi
40142
40143
40144if test "$wxUSE_VALIDATORS" = "yes"; then
40145 cat >>confdefs.h <<\_ACEOF
40146#define wxUSE_VALIDATORS 1
40147_ACEOF
40148
40149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40150fi
40151
40152if test "$wxUSE_PALETTE" = "yes" ; then
40153 cat >>confdefs.h <<\_ACEOF
40154#define wxUSE_PALETTE 1
40155_ACEOF
40156
40157fi
40158
40159if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40160 LIBS=" -lunicows $LIBS"
40161fi
40162
40163
40164if test "$wxUSE_IMAGE" = "yes" ; then
40165 cat >>confdefs.h <<\_ACEOF
40166#define wxUSE_IMAGE 1
40167_ACEOF
40168
40169
40170 if test "$wxUSE_GIF" = "yes" ; then
40171 cat >>confdefs.h <<\_ACEOF
40172#define wxUSE_GIF 1
40173_ACEOF
40174
40175 fi
40176
40177 if test "$wxUSE_PCX" = "yes" ; then
40178 cat >>confdefs.h <<\_ACEOF
40179#define wxUSE_PCX 1
40180_ACEOF
40181
40182 fi
40183
40184 if test "$wxUSE_IFF" = "yes" ; then
40185 cat >>confdefs.h <<\_ACEOF
40186#define wxUSE_IFF 1
40187_ACEOF
40188
40189 fi
40190
40191 if test "$wxUSE_PNM" = "yes" ; then
40192 cat >>confdefs.h <<\_ACEOF
40193#define wxUSE_PNM 1
40194_ACEOF
40195
40196 fi
40197
40198 if test "$wxUSE_XPM" = "yes" ; then
40199 cat >>confdefs.h <<\_ACEOF
40200#define wxUSE_XPM 1
40201_ACEOF
40202
40203 fi
40204
40205 if test "$wxUSE_ICO_CUR" = "yes" ; then
40206 cat >>confdefs.h <<\_ACEOF
40207#define wxUSE_ICO_CUR 1
40208_ACEOF
40209
40210 fi
40211fi
40212
40213
40214if test "$wxUSE_CHOICEDLG" = "yes"; then
40215 cat >>confdefs.h <<\_ACEOF
40216#define wxUSE_CHOICEDLG 1
40217_ACEOF
40218
40219fi
40220
40221if test "$wxUSE_COLOURDLG" = "yes"; then
40222 cat >>confdefs.h <<\_ACEOF
40223#define wxUSE_COLOURDLG 1
40224_ACEOF
40225
40226fi
40227
40228if test "$wxUSE_FILEDLG" = "yes"; then
40229 cat >>confdefs.h <<\_ACEOF
40230#define wxUSE_FILEDLG 1
40231_ACEOF
40232
40233fi
40234
40235if test "$wxUSE_FINDREPLDLG" = "yes"; then
40236 cat >>confdefs.h <<\_ACEOF
40237#define wxUSE_FINDREPLDLG 1
40238_ACEOF
40239
40240fi
40241
40242if test "$wxUSE_FONTDLG" = "yes"; then
40243 cat >>confdefs.h <<\_ACEOF
40244#define wxUSE_FONTDLG 1
40245_ACEOF
40246
40247fi
40248
40249if test "$wxUSE_DIRDLG" = "yes"; then
40250 if test "$wxUSE_TREECTRL" != "yes"; then
40251 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40252echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40253 else
40254 cat >>confdefs.h <<\_ACEOF
40255#define wxUSE_DIRDLG 1
40256_ACEOF
40257
40258 fi
40259fi
40260
40261if test "$wxUSE_MSGDLG" = "yes"; then
40262 cat >>confdefs.h <<\_ACEOF
40263#define wxUSE_MSGDLG 1
40264_ACEOF
40265
40266fi
40267
40268if test "$wxUSE_NUMBERDLG" = "yes"; then
40269 cat >>confdefs.h <<\_ACEOF
40270#define wxUSE_NUMBERDLG 1
40271_ACEOF
40272
40273fi
40274
40275if test "$wxUSE_PROGRESSDLG" = "yes"; then
40276 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40277 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40278echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40279 else
40280 cat >>confdefs.h <<\_ACEOF
40281#define wxUSE_PROGRESSDLG 1
40282_ACEOF
40283
40284 fi
40285fi
40286
40287if test "$wxUSE_SPLASH" = "yes"; then
40288 cat >>confdefs.h <<\_ACEOF
40289#define wxUSE_SPLASH 1
40290_ACEOF
40291
2057db16 40292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40293fi
40294
40295if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40296 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40297 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40298echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40299 else
40300 cat >>confdefs.h <<\_ACEOF
40301#define wxUSE_STARTUP_TIPS 1
40302_ACEOF
40303
40304 fi
40305fi
40306
40307if test "$wxUSE_TEXTDLG" = "yes"; then
40308 cat >>confdefs.h <<\_ACEOF
40309#define wxUSE_TEXTDLG 1
40310_ACEOF
40311
40312fi
40313
40314if test "$wxUSE_WIZARDDLG" = "yes"; then
40315 cat >>confdefs.h <<\_ACEOF
40316#define wxUSE_WIZARDDLG 1
40317_ACEOF
40318
40319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40320fi
40321
40322
ce756cb0 40323if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
40324 if test "$wxUSE_GTK" = 1; then
40325 wxUSE_GSTREAMER="yes"
40326
ce756cb0 40327
dae87f93 40328 succeeded=no
ce756cb0 40329
dae87f93
RN
40330 if test -z "$PKG_CONFIG"; then
40331 # Extract the first word of "pkg-config", so it can be a program name with args.
40332set dummy pkg-config; ac_word=$2
40333echo "$as_me:$LINENO: checking for $ac_word" >&5
40334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40335if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40336 echo $ECHO_N "(cached) $ECHO_C" >&6
40337else
40338 case $PKG_CONFIG in
40339 [\\/]* | ?:[\\/]*)
40340 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40341 ;;
40342 *)
40343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40344for as_dir in $PATH
40345do
40346 IFS=$as_save_IFS
40347 test -z "$as_dir" && as_dir=.
40348 for ac_exec_ext in '' $ac_executable_extensions; do
40349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40350 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40352 break 2
40353 fi
40354done
40355done
40356
40357 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40358 ;;
40359esac
40360fi
40361PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40362
40363if test -n "$PKG_CONFIG"; then
40364 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40365echo "${ECHO_T}$PKG_CONFIG" >&6
40366else
40367 echo "$as_me:$LINENO: result: no" >&5
40368echo "${ECHO_T}no" >&6
40369fi
40370
40371 fi
40372
40373 if test "$PKG_CONFIG" = "no" ; then
40374 echo "*** The pkg-config script could not be found. Make sure it is"
40375 echo "*** in your path, or set the PKG_CONFIG environment variable"
40376 echo "*** to the full path to pkg-config."
40377 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40378 else
40379 PKG_CONFIG_MIN_VERSION=0.9.0
40380 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40381 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40382echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40383
40384 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40385 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40386echo "${ECHO_T}yes" >&6
dae87f93 40387 succeeded=yes
ce756cb0 40388
dae87f93
RN
40389 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40390echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40391 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40392 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40393echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40394
40395 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40396echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40397 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40398 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40399echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40400 else
40401 GSTREAMER_CFLAGS=""
40402 GSTREAMER_LIBS=""
40403 ## If we have a custom action on failure, don't print errors, but
40404 ## do set a variable so people can do so.
40405 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40406
dae87f93
RN
40407 fi
40408
40409
40410
40411 else
40412 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40413 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40414 fi
40415 fi
40416
40417 if test $succeeded = yes; then
40418
40419 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40420 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40421
ce756cb0 40422 else
dae87f93
RN
40423
40424 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40425echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40426 wxUSE_GSTREAMER="no"
40427
40428 fi
40429
40430
40431
40432
40433
40434 if test "x$GST_INSPECT" == "x"; then
40435 # Extract the first word of "gst-inspect", so it can be a program name with args.
40436set dummy gst-inspect; ac_word=$2
40437echo "$as_me:$LINENO: checking for $ac_word" >&5
40438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40439if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40440 echo $ECHO_N "(cached) $ECHO_C" >&6
40441else
40442 if test -n "$GST_INSPECT"; then
40443 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40444else
40445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40446for as_dir in $PATH
40447do
40448 IFS=$as_save_IFS
40449 test -z "$as_dir" && as_dir=.
40450 for ac_exec_ext in '' $ac_executable_extensions; do
40451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40452 ac_cv_prog_GST_INSPECT="gst-inspect"
40453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40454 break 2
ce756cb0 40455 fi
dae87f93
RN
40456done
40457done
40458
40459fi
40460fi
40461GST_INSPECT=$ac_cv_prog_GST_INSPECT
40462if test -n "$GST_INSPECT"; then
40463 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40464echo "${ECHO_T}$GST_INSPECT" >&6
40465else
40466 echo "$as_me:$LINENO: result: no" >&5
40467echo "${ECHO_T}no" >&6
40468fi
40469
40470 fi
40471
40472 if test "x$GST_INSPECT" != "x"; then
40473 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40474echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40475 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40476 echo "$as_me:$LINENO: result: found." >&5
40477echo "${ECHO_T}found." >&6
ce756cb0 40478
ce756cb0 40479 else
dae87f93
RN
40480 echo "$as_me:$LINENO: result: not found." >&5
40481echo "${ECHO_T}not found." >&6
40482
40483 wxUSE_GSTREAMER="no"
40484 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40485echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40486
40487 fi
40488 fi
40489
40490
40491 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40492echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40493if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40494 echo $ECHO_N "(cached) $ECHO_C" >&6
40495else
40496 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40497/* confdefs.h. */
40498_ACEOF
40499cat confdefs.h >>conftest.$ac_ext
40500cat >>conftest.$ac_ext <<_ACEOF
40501/* end confdefs.h. */
dae87f93 40502#include <gst/gst.h>
ce756cb0 40503
dae87f93 40504#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40505_ACEOF
40506rm -f conftest.$ac_objext
40507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40508 (eval $ac_compile) 2>conftest.er1
40509 ac_status=$?
40510 grep -v '^ *+' conftest.er1 >conftest.err
40511 rm -f conftest.er1
40512 cat conftest.err >&5
40513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40514 (exit $ac_status); } &&
8c539582 40515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
40516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40517 (eval $ac_try) 2>&5
40518 ac_status=$?
40519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40520 (exit $ac_status); }; } &&
40521 { ac_try='test -s conftest.$ac_objext'
40522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40523 (eval $ac_try) 2>&5
40524 ac_status=$?
40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526 (exit $ac_status); }; }; then
dae87f93 40527 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40528else
40529 echo "$as_me: failed program was:" >&5
40530sed 's/^/| /' conftest.$ac_ext >&5
40531
dae87f93 40532ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40533fi
40534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40535fi
40536echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40537echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40538if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40539 :
40540else
ce756cb0 40541
dae87f93
RN
40542 wxUSE_GSTREAMER="no"
40543 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40544echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40545
dae87f93 40546fi
ce756cb0 40547
dae87f93
RN
40548
40549
40550 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40551echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40552
40553ac_find_libraries=
40554for ac_dir in $SEARCH_LIB /usr/lib;
40555 do
40556 for ac_extension in a so sl dylib; do
40557 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40558 ac_find_libraries=$ac_dir
40559 break 2
40560 fi
40561 done
40562 done
40563
ce756cb0 40564
dae87f93
RN
40565 if test "$ac_find_libraries" = "" ; then
40566 echo "$as_me:$LINENO: result: no" >&5
40567echo "${ECHO_T}no" >&6
40568 wxUSE_GSTREAMER="no"
40569 else
40570 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40571echo "${ECHO_T}yes" >&6
dae87f93 40572 fi
ce756cb0 40573
dae87f93
RN
40574 if test "$wxUSE_GSTREAMER" = "yes"; then
40575 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40576#define wxUSE_GSTREAMER 1
40577_ACEOF
40578
dae87f93
RN
40579 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40580echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40581 fi
40582 fi
40583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40584 cat >>confdefs.h <<\_ACEOF
40585#define wxUSE_MEDIACTRL 1
40586_ACEOF
40587
40588fi
40589
40590
a848cd7e
SC
40591if test "$cross_compiling" = "yes"; then
40592 OSINFO="\"$host\""
40593else
40594 OSINFO=`uname -s -r -m`
40595 OSINFO="\"$OSINFO\""
40596fi
40597
40598cat >>confdefs.h <<_ACEOF
40599#define WXWIN_OS_DESCRIPTION $OSINFO
40600_ACEOF
40601
40602
40603
40604if test "x$prefix" != "xNONE"; then
40605 wxPREFIX=$prefix
40606else
40607 wxPREFIX=$ac_default_prefix
40608fi
40609
40610cat >>confdefs.h <<_ACEOF
40611#define wxINSTALL_PREFIX "$wxPREFIX"
40612_ACEOF
40613
40614
a848cd7e
SC
40615
40616
40617CORE_BASE_LIBS="net base"
40618CORE_GUI_LIBS="adv core"
40619
40620if test "$wxUSE_XML" = "yes" ; then
40621 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40622fi
40623if test "$wxUSE_ODBC" != "no" ; then
40624 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40625 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40626fi
40627if test "$wxUSE_HTML" = "yes" ; then
40628 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40629fi
61639efb
VZ
40630if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40631 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40632fi
9a8f0513
VS
40633if test "$wxUSE_XRC" = "yes" ; then
40634 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40635fi
a848cd7e
SC
40636
40637if test "$wxUSE_GUI" != "yes"; then
40638 CORE_GUI_LIBS=""
40639fi
40640
40641
40642
40643
40644
40645
40646
40647
40648if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40649 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40650 if test "$USE_DARWIN" = 1; then
40651 LDFLAGS="$LDFLAGS -framework QuickTime"
40652 else
40653 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40654 fi
07bea8f0 40655 fi
5dcf30a0 40656 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40657 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40658 else
40659 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40660 fi
a848cd7e
SC
40661fi
40662if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40663 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40664 if test "$wxUSE_MEDIACTRL" = "yes"; then
40665 LDFLAGS="$LDFLAGS -framework QuickTime"
40666 fi
a848cd7e 40667fi
19b27e78
MW
40668if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
40669 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
40670fi
a848cd7e
SC
40671
40672
40673LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40674
40675have_cos=0
40676have_floor=0
40677
40678for ac_func in cos
40679do
40680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40681echo "$as_me:$LINENO: checking for $ac_func" >&5
40682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40683if eval "test \"\${$as_ac_var+set}\" = set"; then
40684 echo $ECHO_N "(cached) $ECHO_C" >&6
40685else
40686 cat >conftest.$ac_ext <<_ACEOF
40687/* confdefs.h. */
40688_ACEOF
40689cat confdefs.h >>conftest.$ac_ext
40690cat >>conftest.$ac_ext <<_ACEOF
40691/* end confdefs.h. */
ac1cb8d3
VS
40692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40694#define $ac_func innocuous_$ac_func
40695
a848cd7e
SC
40696/* System header to define __stub macros and hopefully few prototypes,
40697 which can conflict with char $ac_func (); below.
40698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40699 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40700
a848cd7e
SC
40701#ifdef __STDC__
40702# include <limits.h>
40703#else
40704# include <assert.h>
40705#endif
ac1cb8d3
VS
40706
40707#undef $ac_func
40708
a848cd7e
SC
40709/* Override any gcc2 internal prototype to avoid an error. */
40710#ifdef __cplusplus
40711extern "C"
40712{
40713#endif
40714/* We use char because int might match the return type of a gcc2
40715 builtin and then its argument prototype would still apply. */
40716char $ac_func ();
40717/* The GNU C library defines this for functions which it implements
40718 to always fail with ENOSYS. Some functions are actually named
40719 something starting with __ and the normal name is an alias. */
40720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40721choke me
40722#else
40723char (*f) () = $ac_func;
40724#endif
40725#ifdef __cplusplus
40726}
40727#endif
40728
40729int
40730main ()
40731{
40732return f != $ac_func;
40733 ;
40734 return 0;
40735}
40736_ACEOF
40737rm -f conftest.$ac_objext conftest$ac_exeext
40738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40739 (eval $ac_link) 2>conftest.er1
a848cd7e 40740 ac_status=$?
ac1cb8d3
VS
40741 grep -v '^ *+' conftest.er1 >conftest.err
40742 rm -f conftest.er1
40743 cat conftest.err >&5
a848cd7e
SC
40744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40745 (exit $ac_status); } &&
8c539582 40746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748 (eval $ac_try) 2>&5
40749 ac_status=$?
40750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751 (exit $ac_status); }; } &&
40752 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40754 (eval $ac_try) 2>&5
40755 ac_status=$?
40756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757 (exit $ac_status); }; }; then
40758 eval "$as_ac_var=yes"
40759else
40760 echo "$as_me: failed program was:" >&5
40761sed 's/^/| /' conftest.$ac_ext >&5
40762
40763eval "$as_ac_var=no"
40764fi
ac1cb8d3
VS
40765rm -f conftest.err conftest.$ac_objext \
40766 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40767fi
40768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40769echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40770if test `eval echo '${'$as_ac_var'}'` = yes; then
40771 cat >>confdefs.h <<_ACEOF
40772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40773_ACEOF
40774 have_cos=1
40775fi
40776done
40777
40778
40779for ac_func in floor
40780do
40781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40782echo "$as_me:$LINENO: checking for $ac_func" >&5
40783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40784if eval "test \"\${$as_ac_var+set}\" = set"; then
40785 echo $ECHO_N "(cached) $ECHO_C" >&6
40786else
40787 cat >conftest.$ac_ext <<_ACEOF
40788/* confdefs.h. */
40789_ACEOF
40790cat confdefs.h >>conftest.$ac_ext
40791cat >>conftest.$ac_ext <<_ACEOF
40792/* end confdefs.h. */
ac1cb8d3
VS
40793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40795#define $ac_func innocuous_$ac_func
40796
a848cd7e
SC
40797/* System header to define __stub macros and hopefully few prototypes,
40798 which can conflict with char $ac_func (); below.
40799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40800 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40801
a848cd7e
SC
40802#ifdef __STDC__
40803# include <limits.h>
40804#else
40805# include <assert.h>
40806#endif
ac1cb8d3
VS
40807
40808#undef $ac_func
40809
a848cd7e
SC
40810/* Override any gcc2 internal prototype to avoid an error. */
40811#ifdef __cplusplus
40812extern "C"
40813{
40814#endif
40815/* We use char because int might match the return type of a gcc2
40816 builtin and then its argument prototype would still apply. */
40817char $ac_func ();
40818/* The GNU C library defines this for functions which it implements
40819 to always fail with ENOSYS. Some functions are actually named
40820 something starting with __ and the normal name is an alias. */
40821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40822choke me
40823#else
40824char (*f) () = $ac_func;
40825#endif
40826#ifdef __cplusplus
40827}
40828#endif
40829
40830int
40831main ()
40832{
40833return f != $ac_func;
40834 ;
40835 return 0;
40836}
40837_ACEOF
40838rm -f conftest.$ac_objext conftest$ac_exeext
40839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40840 (eval $ac_link) 2>conftest.er1
a848cd7e 40841 ac_status=$?
ac1cb8d3
VS
40842 grep -v '^ *+' conftest.er1 >conftest.err
40843 rm -f conftest.er1
40844 cat conftest.err >&5
a848cd7e
SC
40845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40846 (exit $ac_status); } &&
8c539582 40847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40849 (eval $ac_try) 2>&5
40850 ac_status=$?
40851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40852 (exit $ac_status); }; } &&
40853 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40855 (eval $ac_try) 2>&5
40856 ac_status=$?
40857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40858 (exit $ac_status); }; }; then
40859 eval "$as_ac_var=yes"
40860else
40861 echo "$as_me: failed program was:" >&5
40862sed 's/^/| /' conftest.$ac_ext >&5
40863
40864eval "$as_ac_var=no"
40865fi
ac1cb8d3
VS
40866rm -f conftest.err conftest.$ac_objext \
40867 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40868fi
40869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40870echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40871if test `eval echo '${'$as_ac_var'}'` = yes; then
40872 cat >>confdefs.h <<_ACEOF
40873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40874_ACEOF
40875 have_floor=1
40876fi
40877done
40878
40879echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40880echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40881if test "$have_cos" = 1 -a "$have_floor" = 1; then
40882 echo "$as_me:$LINENO: result: yes" >&5
40883echo "${ECHO_T}yes" >&6
40884else
40885 echo "$as_me:$LINENO: result: no" >&5
40886echo "${ECHO_T}no" >&6
40887 LIBS="$LIBS -lm"
40888 # use different functions to avoid configure caching
40889 have_sin=0
40890 have_ceil=0
40891
40892for ac_func in sin
40893do
40894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40895echo "$as_me:$LINENO: checking for $ac_func" >&5
40896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40897if eval "test \"\${$as_ac_var+set}\" = set"; then
40898 echo $ECHO_N "(cached) $ECHO_C" >&6
40899else
40900 cat >conftest.$ac_ext <<_ACEOF
40901/* confdefs.h. */
40902_ACEOF
40903cat confdefs.h >>conftest.$ac_ext
40904cat >>conftest.$ac_ext <<_ACEOF
40905/* end confdefs.h. */
ac1cb8d3
VS
40906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40908#define $ac_func innocuous_$ac_func
40909
a848cd7e
SC
40910/* System header to define __stub macros and hopefully few prototypes,
40911 which can conflict with char $ac_func (); below.
40912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40913 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40914
a848cd7e
SC
40915#ifdef __STDC__
40916# include <limits.h>
40917#else
40918# include <assert.h>
40919#endif
ac1cb8d3
VS
40920
40921#undef $ac_func
40922
a848cd7e
SC
40923/* Override any gcc2 internal prototype to avoid an error. */
40924#ifdef __cplusplus
40925extern "C"
40926{
40927#endif
40928/* We use char because int might match the return type of a gcc2
40929 builtin and then its argument prototype would still apply. */
40930char $ac_func ();
40931/* The GNU C library defines this for functions which it implements
40932 to always fail with ENOSYS. Some functions are actually named
40933 something starting with __ and the normal name is an alias. */
40934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40935choke me
40936#else
40937char (*f) () = $ac_func;
40938#endif
40939#ifdef __cplusplus
40940}
40941#endif
40942
40943int
40944main ()
40945{
40946return f != $ac_func;
40947 ;
40948 return 0;
40949}
40950_ACEOF
40951rm -f conftest.$ac_objext conftest$ac_exeext
40952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40953 (eval $ac_link) 2>conftest.er1
a848cd7e 40954 ac_status=$?
ac1cb8d3
VS
40955 grep -v '^ *+' conftest.er1 >conftest.err
40956 rm -f conftest.er1
40957 cat conftest.err >&5
a848cd7e
SC
40958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959 (exit $ac_status); } &&
8c539582 40960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40962 (eval $ac_try) 2>&5
40963 ac_status=$?
40964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965 (exit $ac_status); }; } &&
40966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968 (eval $ac_try) 2>&5
40969 ac_status=$?
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); }; }; then
40972 eval "$as_ac_var=yes"
40973else
40974 echo "$as_me: failed program was:" >&5
40975sed 's/^/| /' conftest.$ac_ext >&5
40976
40977eval "$as_ac_var=no"
40978fi
ac1cb8d3
VS
40979rm -f conftest.err conftest.$ac_objext \
40980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40981fi
40982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40984if test `eval echo '${'$as_ac_var'}'` = yes; then
40985 cat >>confdefs.h <<_ACEOF
40986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40987_ACEOF
40988 have_sin=1
40989fi
40990done
40991
40992
40993for ac_func in ceil
40994do
40995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40996echo "$as_me:$LINENO: checking for $ac_func" >&5
40997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40998if eval "test \"\${$as_ac_var+set}\" = set"; then
40999 echo $ECHO_N "(cached) $ECHO_C" >&6
41000else
41001 cat >conftest.$ac_ext <<_ACEOF
41002/* confdefs.h. */
41003_ACEOF
41004cat confdefs.h >>conftest.$ac_ext
41005cat >>conftest.$ac_ext <<_ACEOF
41006/* end confdefs.h. */
ac1cb8d3
VS
41007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41009#define $ac_func innocuous_$ac_func
41010
a848cd7e
SC
41011/* System header to define __stub macros and hopefully few prototypes,
41012 which can conflict with char $ac_func (); below.
41013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41014 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41015
a848cd7e
SC
41016#ifdef __STDC__
41017# include <limits.h>
41018#else
41019# include <assert.h>
41020#endif
ac1cb8d3
VS
41021
41022#undef $ac_func
41023
a848cd7e
SC
41024/* Override any gcc2 internal prototype to avoid an error. */
41025#ifdef __cplusplus
41026extern "C"
41027{
41028#endif
41029/* We use char because int might match the return type of a gcc2
41030 builtin and then its argument prototype would still apply. */
41031char $ac_func ();
41032/* The GNU C library defines this for functions which it implements
41033 to always fail with ENOSYS. Some functions are actually named
41034 something starting with __ and the normal name is an alias. */
41035#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41036choke me
41037#else
41038char (*f) () = $ac_func;
41039#endif
41040#ifdef __cplusplus
41041}
41042#endif
41043
41044int
41045main ()
41046{
41047return f != $ac_func;
41048 ;
41049 return 0;
41050}
41051_ACEOF
41052rm -f conftest.$ac_objext conftest$ac_exeext
41053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41054 (eval $ac_link) 2>conftest.er1
a848cd7e 41055 ac_status=$?
ac1cb8d3
VS
41056 grep -v '^ *+' conftest.er1 >conftest.err
41057 rm -f conftest.er1
41058 cat conftest.err >&5
a848cd7e
SC
41059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41060 (exit $ac_status); } &&
8c539582 41061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41063 (eval $ac_try) 2>&5
41064 ac_status=$?
41065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41066 (exit $ac_status); }; } &&
41067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41069 (eval $ac_try) 2>&5
41070 ac_status=$?
41071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072 (exit $ac_status); }; }; then
41073 eval "$as_ac_var=yes"
41074else
41075 echo "$as_me: failed program was:" >&5
41076sed 's/^/| /' conftest.$ac_ext >&5
41077
41078eval "$as_ac_var=no"
41079fi
ac1cb8d3
VS
41080rm -f conftest.err conftest.$ac_objext \
41081 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41082fi
41083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41085if test `eval echo '${'$as_ac_var'}'` = yes; then
41086 cat >>confdefs.h <<_ACEOF
41087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41088_ACEOF
41089 have_ceil=1
41090fi
41091done
41092
41093 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41094echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41095 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41096 echo "$as_me:$LINENO: result: yes" >&5
41097echo "${ECHO_T}yes" >&6
41098 else
41099 echo "$as_me:$LINENO: result: no" >&5
41100echo "${ECHO_T}no" >&6
41101 # not sure we should warn the user, crash, etc.
41102 fi
41103fi
41104
41105if test "$wxUSE_GUI" = "yes"; then
41106
41107
8bce5cda
MW
41108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41109 dynamic erase event exec font image minimal mobile \
41110 mobile/wxedit mobile/styles propsize render \
41111 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41112
41113 if test "$wxUSE_MONOLITHIC" != "yes"; then
41114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41115 fi
0b78747f 41116 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41118 if test "$wxUSE_UNIVERSAL" != "yes"; then
41119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41120 fi
41121 fi
41122 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41124 fi
a848cd7e
SC
41125else
41126 SAMPLES_SUBDIRS="console"
41127fi
41128
41129
ceec2216 41130INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41131-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41132
41133if test "$GXX" = yes ; then
5294a27e
VZ
41134 CWARNINGS="-Wall"
41135 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
41136 fi
41137
41138EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41139
0c3c69fc 41140CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41141CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41142CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41143
95986553
DE
41144if test "x$MWCC" = "xyes"; then
41145
41146 CC="$CC -cwd source -I-"
41147 CXX="$CXX -cwd source -I-"
41148fi
41149
a848cd7e 41150
0c3c69fc 41151LIBS=`echo $LIBS`
a848cd7e
SC
41152EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41153EXTRALIBS_XML="$EXPAT_LINK"
41154EXTRALIBS_HTML="$MSPACK_LINK"
41155EXTRALIBS_ODBC="$ODBC_LINK"
41156if test "$wxUSE_GUI" = "yes"; then
2e350179 41157 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41158fi
41159if test "$wxUSE_OPENGL" = "yes"; then
41160 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41161fi
41162
41163LDFLAGS="$LDFLAGS $PROFILE"
41164
41165if test "$wxUSE_GTK" = 1; then
41166 WXCONFIG_INCLUDE=
41167else
41168 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41169fi
41170
41171WXCONFIG_EXTRALIBS="$LIBS"
41172
41173if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41174 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41175fi
41176if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41177 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41178fi
41179if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41180 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41181fi
41182if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41183 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41184fi
41185if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41186 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41187fi
41188if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41189 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41190fi
41191if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41192 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41193fi
41194
41195for i in $wxconfig_3rdparty ; do
74802184 41196 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41197done
41198
41199
41200if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41201 WXUNIV=1
41202else
41203 WXUNIV=0
41204fi
41205
41206
41207
41208
41209
41210
41211
41212
41213
41214if test $wxUSE_MONOLITHIC = "yes" ; then
41215 MONOLITHIC=1
41216else
41217 MONOLITHIC=0
41218fi
41219
41220if test $wxUSE_PLUGINS = "yes" ; then
41221 USE_PLUGINS=1
41222else
41223 USE_PLUGINS=0
41224fi
41225
41226if test $wxUSE_ODBC != "no" ; then
41227 USE_ODBC=1
41228else
41229 USE_ODBC=0
41230fi
41231
16358932
VZ
41232if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41233 USE_QA=1
41234else
41235 USE_QA=0
41236fi
41237
a848cd7e
SC
41238if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41239 OFFICIAL_BUILD=1
41240else
41241 OFFICIAL_BUILD=0
41242fi
41243
41244
41245
41246
41247
41248
41249
41250
41251
41252
41253
41254
41255
41256
41257
41258
41259
41260
41261
ceec2216 41262
d1c38808 41263
a848cd7e
SC
41264
41265
41266TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41267
41268
41269
41270
41271
41272
41273
41274
4d4ff94c
VZ
41275case "$TOOLKIT" in
41276 GTK)
41277 TOOLKIT_USER="GTK+"
41278 if test "$WXGTK20" = 1; then
41279 TOOLKIT_USER="$TOOLKIT_USER 2"
41280 fi
9a8f0513 41281 ;;
4d4ff94c
VZ
41282
41283 *)
41284 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41285 ;;
4d4ff94c 41286esac
a848cd7e 41287
fb00f58d
JS
41288if test "$wxUSE_WINE" = "yes"; then
41289 BAKEFILE_FORCE_PLATFORM=win32
41290fi
41291
9a8f0513 41292
1e9e8aba
DE
41293
41294
a848cd7e
SC
41295 if test "x$BAKEFILE_HOST" = "x"; then
41296 BAKEFILE_HOST="${host}"
41297 fi
41298
41299 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41300
41301 if test -n "$ac_tool_prefix"; then
41302 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41303set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41304echo "$as_me:$LINENO: checking for $ac_word" >&5
41305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41306if test "${ac_cv_prog_RANLIB+set}" = set; then
41307 echo $ECHO_N "(cached) $ECHO_C" >&6
41308else
41309 if test -n "$RANLIB"; then
41310 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41311else
41312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41313for as_dir in $PATH
41314do
41315 IFS=$as_save_IFS
41316 test -z "$as_dir" && as_dir=.
41317 for ac_exec_ext in '' $ac_executable_extensions; do
41318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41319 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41321 break 2
41322 fi
41323done
41324done
41325
41326fi
41327fi
41328RANLIB=$ac_cv_prog_RANLIB
41329if test -n "$RANLIB"; then
41330 echo "$as_me:$LINENO: result: $RANLIB" >&5
41331echo "${ECHO_T}$RANLIB" >&6
41332else
41333 echo "$as_me:$LINENO: result: no" >&5
41334echo "${ECHO_T}no" >&6
41335fi
41336
41337fi
41338if test -z "$ac_cv_prog_RANLIB"; then
41339 ac_ct_RANLIB=$RANLIB
41340 # Extract the first word of "ranlib", so it can be a program name with args.
41341set dummy ranlib; ac_word=$2
41342echo "$as_me:$LINENO: checking for $ac_word" >&5
41343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41344if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41345 echo $ECHO_N "(cached) $ECHO_C" >&6
41346else
41347 if test -n "$ac_ct_RANLIB"; then
41348 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41349else
41350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41351for as_dir in $PATH
41352do
41353 IFS=$as_save_IFS
41354 test -z "$as_dir" && as_dir=.
41355 for ac_exec_ext in '' $ac_executable_extensions; do
41356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41357 ac_cv_prog_ac_ct_RANLIB="ranlib"
41358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41359 break 2
41360 fi
41361done
41362done
41363
41364 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41365fi
41366fi
41367ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41368if test -n "$ac_ct_RANLIB"; then
41369 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41370echo "${ECHO_T}$ac_ct_RANLIB" >&6
41371else
41372 echo "$as_me:$LINENO: result: no" >&5
41373echo "${ECHO_T}no" >&6
41374fi
41375
41376 RANLIB=$ac_ct_RANLIB
41377else
41378 RANLIB="$ac_cv_prog_RANLIB"
41379fi
41380
41381 # Find a good install program. We prefer a C program (faster),
41382# so one script is as good as another. But avoid the broken or
41383# incompatible versions:
41384# SysV /etc/install, /usr/sbin/install
41385# SunOS /usr/etc/install
41386# IRIX /sbin/install
41387# AIX /bin/install
41388# AmigaOS /C/install, which installs bootblocks on floppy discs
41389# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41390# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41391# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41392# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41393# ./install, which can be erroneously created by make from ./install.sh.
41394echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41395echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41396if test -z "$INSTALL"; then
41397if test "${ac_cv_path_install+set}" = set; then
41398 echo $ECHO_N "(cached) $ECHO_C" >&6
41399else
41400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41401for as_dir in $PATH
41402do
41403 IFS=$as_save_IFS
41404 test -z "$as_dir" && as_dir=.
41405 # Account for people who put trailing slashes in PATH elements.
41406case $as_dir/ in
41407 ./ | .// | /cC/* | \
41408 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41409 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41410 /usr/ucb/* ) ;;
41411 *)
41412 # OSF1 and SCO ODT 3.0 have their own names for install.
41413 # Don't use installbsd from OSF since it installs stuff as root
41414 # by default.
41415 for ac_prog in ginstall scoinst install; do
41416 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41417 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41418 if test $ac_prog = install &&
41419 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41420 # AIX install. It has an incompatible calling convention.
41421 :
41422 elif test $ac_prog = install &&
41423 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41424 # program-specific install script used by HP pwplus--don't use.
41425 :
41426 else
41427 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41428 break 3
41429 fi
41430 fi
a848cd7e
SC
41431 done
41432 done
41433 ;;
41434esac
41435done
41436
41437
41438fi
41439 if test "${ac_cv_path_install+set}" = set; then
41440 INSTALL=$ac_cv_path_install
41441 else
41442 # As a last resort, use the slow shell script. We don't cache a
41443 # path for INSTALL within a source directory, because that will
41444 # break other packages using the cache if that directory is
41445 # removed, or if the path is relative.
41446 INSTALL=$ac_install_sh
41447 fi
41448fi
41449echo "$as_me:$LINENO: result: $INSTALL" >&5
41450echo "${ECHO_T}$INSTALL" >&6
41451
41452# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41453# It thinks the first close brace ends the variable substitution.
41454test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41455
41456test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41457
41458test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41459
41460 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41461echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41462LN_S=$as_ln_s
41463if test "$LN_S" = "ln -s"; then
41464 echo "$as_me:$LINENO: result: yes" >&5
41465echo "${ECHO_T}yes" >&6
41466else
41467 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41468echo "${ECHO_T}no, using $LN_S" >&6
41469fi
41470
41471
41472 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41473echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41474set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41475if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41476 echo $ECHO_N "(cached) $ECHO_C" >&6
41477else
41478 cat >conftest.make <<\_ACEOF
41479all:
41480 @echo 'ac_maketemp="$(MAKE)"'
41481_ACEOF
41482# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41483eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41484if test -n "$ac_maketemp"; then
41485 eval ac_cv_prog_make_${ac_make}_set=yes
41486else
41487 eval ac_cv_prog_make_${ac_make}_set=no
41488fi
41489rm -f conftest.make
41490fi
41491if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41492 echo "$as_me:$LINENO: result: yes" >&5
41493echo "${ECHO_T}yes" >&6
41494 SET_MAKE=
41495else
41496 echo "$as_me:$LINENO: result: no" >&5
41497echo "${ECHO_T}no" >&6
41498 SET_MAKE="MAKE=${MAKE-make}"
41499fi
41500
41501
41502
41503 if test -n "$ac_tool_prefix"; then
41504 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41505set dummy ${ac_tool_prefix}ar; ac_word=$2
41506echo "$as_me:$LINENO: checking for $ac_word" >&5
41507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41508if test "${ac_cv_prog_AR+set}" = set; then
41509 echo $ECHO_N "(cached) $ECHO_C" >&6
41510else
41511 if test -n "$AR"; then
41512 ac_cv_prog_AR="$AR" # Let the user override the test.
41513else
41514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41515for as_dir in $PATH
41516do
41517 IFS=$as_save_IFS
41518 test -z "$as_dir" && as_dir=.
41519 for ac_exec_ext in '' $ac_executable_extensions; do
41520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41521 ac_cv_prog_AR="${ac_tool_prefix}ar"
41522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41523 break 2
41524 fi
41525done
41526done
41527
41528fi
41529fi
41530AR=$ac_cv_prog_AR
41531if test -n "$AR"; then
41532 echo "$as_me:$LINENO: result: $AR" >&5
41533echo "${ECHO_T}$AR" >&6
41534else
41535 echo "$as_me:$LINENO: result: no" >&5
41536echo "${ECHO_T}no" >&6
41537fi
41538
41539fi
41540if test -z "$ac_cv_prog_AR"; then
41541 ac_ct_AR=$AR
41542 # Extract the first word of "ar", so it can be a program name with args.
41543set dummy ar; ac_word=$2
41544echo "$as_me:$LINENO: checking for $ac_word" >&5
41545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41546if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41547 echo $ECHO_N "(cached) $ECHO_C" >&6
41548else
41549 if test -n "$ac_ct_AR"; then
41550 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41551else
41552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41553for as_dir in $PATH
41554do
41555 IFS=$as_save_IFS
41556 test -z "$as_dir" && as_dir=.
41557 for ac_exec_ext in '' $ac_executable_extensions; do
41558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41559 ac_cv_prog_ac_ct_AR="ar"
41560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41561 break 2
41562 fi
41563done
41564done
41565
41566 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41567fi
41568fi
41569ac_ct_AR=$ac_cv_prog_ac_ct_AR
41570if test -n "$ac_ct_AR"; then
41571 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41572echo "${ECHO_T}$ac_ct_AR" >&6
41573else
41574 echo "$as_me:$LINENO: result: no" >&5
41575echo "${ECHO_T}no" >&6
41576fi
41577
41578 AR=$ac_ct_AR
41579else
41580 AR="$ac_cv_prog_AR"
41581fi
41582
41583 if test -n "$ac_tool_prefix"; then
41584 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41585set dummy ${ac_tool_prefix}strip; ac_word=$2
41586echo "$as_me:$LINENO: checking for $ac_word" >&5
41587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41588if test "${ac_cv_prog_STRIP+set}" = set; then
41589 echo $ECHO_N "(cached) $ECHO_C" >&6
41590else
41591 if test -n "$STRIP"; then
41592 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41593else
41594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41595for as_dir in $PATH
41596do
41597 IFS=$as_save_IFS
41598 test -z "$as_dir" && as_dir=.
41599 for ac_exec_ext in '' $ac_executable_extensions; do
41600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41601 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41603 break 2
41604 fi
41605done
41606done
41607
41608fi
41609fi
41610STRIP=$ac_cv_prog_STRIP
41611if test -n "$STRIP"; then
41612 echo "$as_me:$LINENO: result: $STRIP" >&5
41613echo "${ECHO_T}$STRIP" >&6
41614else
41615 echo "$as_me:$LINENO: result: no" >&5
41616echo "${ECHO_T}no" >&6
41617fi
41618
41619fi
41620if test -z "$ac_cv_prog_STRIP"; then
41621 ac_ct_STRIP=$STRIP
41622 # Extract the first word of "strip", so it can be a program name with args.
41623set dummy strip; ac_word=$2
41624echo "$as_me:$LINENO: checking for $ac_word" >&5
41625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41626if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41627 echo $ECHO_N "(cached) $ECHO_C" >&6
41628else
41629 if test -n "$ac_ct_STRIP"; then
41630 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41631else
41632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41633for as_dir in $PATH
41634do
41635 IFS=$as_save_IFS
41636 test -z "$as_dir" && as_dir=.
41637 for ac_exec_ext in '' $ac_executable_extensions; do
41638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41639 ac_cv_prog_ac_ct_STRIP="strip"
41640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41641 break 2
41642 fi
41643done
41644done
41645
41646 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41647fi
41648fi
41649ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41650if test -n "$ac_ct_STRIP"; then
41651 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41652echo "${ECHO_T}$ac_ct_STRIP" >&6
41653else
41654 echo "$as_me:$LINENO: result: no" >&5
41655echo "${ECHO_T}no" >&6
41656fi
41657
41658 STRIP=$ac_ct_STRIP
41659else
41660 STRIP="$ac_cv_prog_STRIP"
41661fi
41662
41663 if test -n "$ac_tool_prefix"; then
41664 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41665set dummy ${ac_tool_prefix}nm; ac_word=$2
41666echo "$as_me:$LINENO: checking for $ac_word" >&5
41667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41668if test "${ac_cv_prog_NM+set}" = set; then
41669 echo $ECHO_N "(cached) $ECHO_C" >&6
41670else
41671 if test -n "$NM"; then
41672 ac_cv_prog_NM="$NM" # Let the user override the test.
41673else
41674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41675for as_dir in $PATH
41676do
41677 IFS=$as_save_IFS
41678 test -z "$as_dir" && as_dir=.
41679 for ac_exec_ext in '' $ac_executable_extensions; do
41680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41681 ac_cv_prog_NM="${ac_tool_prefix}nm"
41682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41683 break 2
41684 fi
41685done
41686done
41687
41688fi
41689fi
41690NM=$ac_cv_prog_NM
41691if test -n "$NM"; then
41692 echo "$as_me:$LINENO: result: $NM" >&5
41693echo "${ECHO_T}$NM" >&6
41694else
41695 echo "$as_me:$LINENO: result: no" >&5
41696echo "${ECHO_T}no" >&6
41697fi
41698
41699fi
41700if test -z "$ac_cv_prog_NM"; then
41701 ac_ct_NM=$NM
41702 # Extract the first word of "nm", so it can be a program name with args.
41703set dummy nm; ac_word=$2
41704echo "$as_me:$LINENO: checking for $ac_word" >&5
41705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41706if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41707 echo $ECHO_N "(cached) $ECHO_C" >&6
41708else
41709 if test -n "$ac_ct_NM"; then
41710 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41711else
41712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41713for as_dir in $PATH
41714do
41715 IFS=$as_save_IFS
41716 test -z "$as_dir" && as_dir=.
41717 for ac_exec_ext in '' $ac_executable_extensions; do
41718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41719 ac_cv_prog_ac_ct_NM="nm"
41720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41721 break 2
41722 fi
41723done
41724done
41725
41726 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41727fi
41728fi
41729ac_ct_NM=$ac_cv_prog_ac_ct_NM
41730if test -n "$ac_ct_NM"; then
41731 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41732echo "${ECHO_T}$ac_ct_NM" >&6
41733else
41734 echo "$as_me:$LINENO: result: no" >&5
41735echo "${ECHO_T}no" >&6
41736fi
41737
41738 NM=$ac_ct_NM
41739else
41740 NM="$ac_cv_prog_NM"
41741fi
41742
41743
41744 case ${BAKEFILE_HOST} in
41745 *-hp-hpux* )
1e9e8aba 41746 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41747 ;;
41748 *) INSTALL_DIR="$INSTALL -d"
41749 ;;
41750 esac
41751
41752
41753 LDFLAGS_GUI=
41754 case ${BAKEFILE_HOST} in
41755 *-*-cygwin* | *-*-mingw32* )
41756 LDFLAGS_GUI="-mwindows"
41757 esac
41758
41759
41760 fi
41761
41762 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41763echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41764if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41765 echo $ECHO_N "(cached) $ECHO_C" >&6
41766else
41767
41768 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41769 egrep -s GNU > /dev/null); then
41770 bakefile_cv_prog_makeisgnu="yes"
41771 else
41772 bakefile_cv_prog_makeisgnu="no"
41773 fi
41774
41775fi
41776echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41777echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41778
41779 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41780 IF_GNU_MAKE=""
41781 else
41782 IF_GNU_MAKE="#"
41783 fi
41784
41785
41786
41787 PLATFORM_UNIX=0
41788 PLATFORM_WIN32=0
41789 PLATFORM_MSDOS=0
41790 PLATFORM_MAC=0
1e9e8aba 41791 PLATFORM_MACOS=0
a848cd7e
SC
41792 PLATFORM_MACOSX=0
41793 PLATFORM_OS2=0
1e9e8aba 41794 PLATFORM_BEOS=0
a848cd7e
SC
41795
41796 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41797 case "${BAKEFILE_HOST}" in
41798 *-*-cygwin* | *-*-mingw32* )
41799 PLATFORM_WIN32=1
41800 ;;
41801 *-pc-msdosdjgpp )
41802 PLATFORM_MSDOS=1
41803 ;;
41804 *-pc-os2_emx | *-pc-os2-emx )
41805 PLATFORM_OS2=1
41806 ;;
41807 powerpc-*-darwin* )
41808 PLATFORM_MAC=1
41809 PLATFORM_MACOSX=1
41810 ;;
1e9e8aba
DE
41811 *-*-beos* )
41812 PLATFORM_BEOS=1
41813 ;;
41814 powerpc-apple-macos* )
41815 PLATFORM_MAC=1
41816 PLATFORM_MACOS=1
41817 ;;
a848cd7e
SC
41818 * )
41819 PLATFORM_UNIX=1
41820 ;;
41821 esac
41822 else
41823 case "$BAKEFILE_FORCE_PLATFORM" in
41824 win32 )
41825 PLATFORM_WIN32=1
41826 ;;
41827 msdos )
41828 PLATFORM_MSDOS=1
41829 ;;
41830 os2 )
41831 PLATFORM_OS2=1
41832 ;;
41833 darwin )
41834 PLATFORM_MAC=1
41835 PLATFORM_MACOSX=1
41836 ;;
41837 unix )
41838 PLATFORM_UNIX=1
41839 ;;
1e9e8aba
DE
41840 beos )
41841 PLATFORM_BEOS=1
41842 ;;
a848cd7e
SC
41843 * )
41844 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41845echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41846 { (exit 1); exit 1; }; }
41847 ;;
41848 esac
41849 fi
41850
41851
41852
41853
41854
41855
41856
41857
41858
1e9e8aba
DE
41859
41860
a848cd7e
SC
41861 # Check whether --enable-omf or --disable-omf was given.
41862if test "${enable_omf+set}" = set; then
41863 enableval="$enable_omf"
41864 bk_os2_use_omf="$enableval"
41865fi;
41866
41867 case "${BAKEFILE_HOST}" in
41868 *-*-darwin* )
41869 CFLAGS="$CFLAGS -fno-common"
41870 CXXFLAGS="$CXXFLAGS -fno-common"
41871 ;;
41872
41873 *-pc-os2_emx | *-pc-os2-emx )
41874 if test "x$bk_os2_use_omf" = "xyes" ; then
41875 AR=emxomfar
41876 RANLIB=:
41877 LDFLAGS="-Zomf $LDFLAGS"
41878 CFLAGS="-Zomf $CFLAGS"
41879 CXXFLAGS="-Zomf $CXXFLAGS"
41880 OS2_LIBEXT="lib"
41881 else
41882 OS2_LIBEXT="a"
41883 fi
41884 ;;
1e9e8aba
DE
41885
41886 i*86-*-beos* )
41887 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41888 ;;
a848cd7e
SC
41889 esac
41890
41891
41892 SO_SUFFIX="so"
41893 SO_SUFFIX_MODULE="so"
41894 EXEEXT=""
41895 LIBPREFIX="lib"
41896 LIBEXT=".a"
41897 DLLPREFIX="lib"
41898 DLLPREFIX_MODULE=""
41899 DLLIMP_SUFFIX=""
41900
41901 case "${BAKEFILE_HOST}" in
41902 *-hp-hpux* )
41903 SO_SUFFIX="sl"
41904 SO_SUFFIX_MODULE="sl"
41905 ;;
41906 *-*-aix* )
41907 SO_SUFFIX="a"
41908 SO_SUFFIX_MODULE="a"
41909 ;;
41910 *-*-cygwin* | *-*-mingw32* )
41911 SO_SUFFIX="dll"
41912 SO_SUFFIX_MODULE="dll"
41913 DLLIMP_SUFFIX="dll.a"
41914 EXEEXT=".exe"
41915 DLLPREFIX=""
41916 ;;
41917 *-pc-msdosdjgpp )
41918 EXEEXT=".exe"
41919 DLLPREFIX=""
41920 ;;
41921 *-pc-os2_emx | *-pc-os2-emx )
41922 SO_SUFFIX="dll"
41923 SO_SUFFIX_MODULE="dll"
41924 DLLIMP_SUFFIX=$OS2_LIBEXT
41925 EXEEXT=".exe"
41926 DLLPREFIX=""
41927 LIBPREFIX=""
41928 LIBEXT=".$OS2_LIBEXT"
41929 ;;
41930 powerpc-*-darwin* )
41931 SO_SUFFIX="dylib"
41932 SO_SUFFIX_MODULE="bundle"
41933 ;;
41934 esac
41935
41936 if test "x$DLLIMP_SUFFIX" = "x" ; then
41937 DLLIMP_SUFFIX="$SO_SUFFIX"
41938 fi
41939
41940
41941
41942
41943
41944
41945
41946
41947
41948
41949
1e9e8aba
DE
41950 PIC_FLAG=""
41951 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41952 PIC_FLAG="-fPIC"
41953 fi
41954
1e9e8aba
DE
41955 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41956 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41957
a848cd7e
SC
41958 case "${BAKEFILE_HOST}" in
41959 *-hp-hpux* )
1e9e8aba 41960 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41961 LDFLAGS="$LDFLAGS -L/usr/lib"
41962
41963 SHARED_LD_CC="${CC} -b -o"
41964 SHARED_LD_CXX="${CXX} -b -o"
41965 PIC_FLAG="+Z"
41966 fi
41967 ;;
41968
41969 *-*-linux* )
41970 if test "x$GCC" != "xyes"; then
41971 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41972echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41973if test "${bakefile_cv_prog_icc+set}" = set; then
41974 echo $ECHO_N "(cached) $ECHO_C" >&6
41975else
41976
41977 cat >conftest.$ac_ext <<_ACEOF
41978/* confdefs.h. */
41979_ACEOF
41980cat confdefs.h >>conftest.$ac_ext
41981cat >>conftest.$ac_ext <<_ACEOF
41982/* end confdefs.h. */
41983
41984int
41985main ()
41986{
41987
41988 #ifndef __INTEL_COMPILER
41989 #error Not icc
41990 #endif
41991
41992 ;
41993 return 0;
41994}
41995_ACEOF
41996rm -f conftest.$ac_objext
41997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41998 (eval $ac_compile) 2>conftest.er1
a848cd7e 41999 ac_status=$?
ac1cb8d3
VS
42000 grep -v '^ *+' conftest.er1 >conftest.err
42001 rm -f conftest.er1
42002 cat conftest.err >&5
a848cd7e
SC
42003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42004 (exit $ac_status); } &&
8c539582 42005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42007 (eval $ac_try) 2>&5
42008 ac_status=$?
42009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010 (exit $ac_status); }; } &&
42011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42013 (eval $ac_try) 2>&5
42014 ac_status=$?
42015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016 (exit $ac_status); }; }; then
42017 bakefile_cv_prog_icc=yes
42018else
42019 echo "$as_me: failed program was:" >&5
42020sed 's/^/| /' conftest.$ac_ext >&5
42021
42022bakefile_cv_prog_icc=no
42023
42024fi
ac1cb8d3 42025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42026
42027fi
42028echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42029echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42030 if test "$bakefile_cv_prog_icc" = "yes"; then
42031 PIC_FLAG="-KPIC"
42032 fi
42033 fi
42034 ;;
42035
42036 *-*-solaris2* )
42037 if test "x$GCC" != xyes ; then
42038 SHARED_LD_CC="${CC} -G -o"
42039 SHARED_LD_CXX="${CXX} -G -o"
42040 PIC_FLAG="-KPIC"
42041 fi
42042 ;;
42043
42044 *-*-darwin* )
42045
42046 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42047echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42048if test "${wx_cv_gcc31+set}" = set; then
42049 echo $ECHO_N "(cached) $ECHO_C" >&6
42050else
42051
42052 cat >conftest.$ac_ext <<_ACEOF
42053/* confdefs.h. */
42054_ACEOF
42055cat confdefs.h >>conftest.$ac_ext
42056cat >>conftest.$ac_ext <<_ACEOF
42057/* end confdefs.h. */
42058
42059int
42060main ()
42061{
42062
42063 #if (__GNUC__ < 3) || \
42064 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42065 #error old gcc
42066 #endif
42067
42068 ;
42069 return 0;
42070}
42071_ACEOF
42072rm -f conftest.$ac_objext
42073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42074 (eval $ac_compile) 2>conftest.er1
a848cd7e 42075 ac_status=$?
ac1cb8d3
VS
42076 grep -v '^ *+' conftest.er1 >conftest.err
42077 rm -f conftest.er1
42078 cat conftest.err >&5
a848cd7e
SC
42079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42080 (exit $ac_status); } &&
8c539582 42081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42083 (eval $ac_try) 2>&5
42084 ac_status=$?
42085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42086 (exit $ac_status); }; } &&
42087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42089 (eval $ac_try) 2>&5
42090 ac_status=$?
42091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42092 (exit $ac_status); }; }; then
42093
42094 wx_cv_gcc31=yes
42095
42096else
42097 echo "$as_me: failed program was:" >&5
42098sed 's/^/| /' conftest.$ac_ext >&5
42099
42100
42101 wx_cv_gcc31=no
42102
42103
42104fi
ac1cb8d3 42105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42106
42107fi
42108echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42109echo "${ECHO_T}$wx_cv_gcc31" >&6
42110 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42111
42112D='$'
42113cat <<EOF >shared-ld-sh
a848cd7e
SC
42114#!/bin/sh
42115#-----------------------------------------------------------------------------
42116#-- Name: distrib/mac/shared-ld-sh
42117#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42118#-- Author: Gilles Depeyrot
42119#-- Copyright: (c) 2002 Gilles Depeyrot
42120#-- Licence: any use permitted
42121#-----------------------------------------------------------------------------
42122
42123verbose=0
42124args=""
42125objects=""
42126linking_flag="-dynamiclib"
42127
473276a9
VS
42128while test ${D}# -gt 0; do
42129 case ${D}1 in
a848cd7e
SC
42130
42131 -v)
42132 verbose=1
42133 ;;
42134
42135 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42136 # collect these options and values
473276a9 42137 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42138 shift
42139 ;;
42140
df1b269d 42141 -l*|-L*|-Wl,*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42142 # collect these options
473276a9 42143 args="${D}{args} ${D}1"
a848cd7e
SC
42144 ;;
42145
42146 -dynamiclib|-bundle)
473276a9 42147 linking_flag="${D}1"
a848cd7e
SC
42148 ;;
42149
42150 -*)
473276a9 42151 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42152 exit 1
42153 ;;
42154
42155 *.o | *.a | *.dylib)
42156 # collect object files
473276a9 42157 objects="${D}{objects} ${D}1"
a848cd7e
SC
42158 ;;
42159
42160 *)
473276a9 42161 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42162 exit 1
42163 ;;
42164
42165 esac
42166 shift
42167done
42168
42169#
42170# Link one module containing all the others
42171#
473276a9
VS
42172if test ${D}{verbose} = 1; then
42173 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42174fi
473276a9
VS
42175c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
42176status=${D}?
42177if test ${D}{status} != 0; then
42178 exit ${D}{status}
a848cd7e
SC
42179fi
42180
42181#
42182# Link the shared library from the single module created
42183#
473276a9
VS
42184if test ${D}{verbose} = 1; then
42185 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 42186fi
473276a9
VS
42187c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42188status=${D}?
42189if test ${D}{status} != 0; then
42190 exit ${D}{status}
a848cd7e
SC
42191fi
42192
42193#
42194# Remove intermediate module
42195#
473276a9 42196rm -f master.${D}${D}.o
a848cd7e
SC
42197
42198exit 0
42199EOF
473276a9 42200
a848cd7e
SC
42201 chmod +x shared-ld-sh
42202
42203 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42204 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42205 SHARED_LD_CXX="$SHARED_LD_CC"
42206 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42207 else
42208 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42209 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42210 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42211 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42212 fi
42213
42214 PIC_FLAG="-dynamic -fPIC"
42215 ;;
42216
42217 *-*-aix* )
42218 if test "x$GCC" != "xyes"; then
42219 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42220set dummy makeC++SharedLib; ac_word=$2
42221echo "$as_me:$LINENO: checking for $ac_word" >&5
42222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42223if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42224 echo $ECHO_N "(cached) $ECHO_C" >&6
42225else
42226 if test -n "$AIX_CXX_LD"; then
42227 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42228else
42229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42230for as_dir in $PATH
42231do
42232 IFS=$as_save_IFS
42233 test -z "$as_dir" && as_dir=.
42234 for ac_exec_ext in '' $ac_executable_extensions; do
42235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42236 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42238 break 2
42239 fi
42240done
42241done
42242
42243 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42244fi
42245fi
42246AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42247if test -n "$AIX_CXX_LD"; then
42248 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42249echo "${ECHO_T}$AIX_CXX_LD" >&6
42250else
42251 echo "$as_me:$LINENO: result: no" >&5
42252echo "${ECHO_T}no" >&6
42253fi
42254
42255 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42256 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42257 fi
42258 ;;
42259
42260 *-*-beos* )
1e9e8aba
DE
42261 SHARED_LD_CC="${LD} -nostart -o"
42262 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42263 ;;
42264
42265 *-*-irix* )
42266 if test "x$GCC" != "xyes"; then
42267 PIC_FLAG="-KPIC"
42268 fi
42269 ;;
42270
42271 *-*-cygwin* | *-*-mingw32* )
42272 PIC_FLAG=""
1e9e8aba
DE
42273 SHARED_LD_CC="\$(CC) -shared -o"
42274 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
42275 ;;
42276
42277 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42278 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42279 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42280 PIC_FLAG=""
473276a9
VS
42281
42282D='$'
42283cat <<EOF >dllar.sh
42284#!/bin/sh
42285#
42286# dllar - a tool to build both a .dll and an .a file
42287# from a set of object (.o) files for EMX/OS2.
42288#
42289# Written by Andrew Zabolotny, bit@freya.etu.ru
42290# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42291#
42292# This script will accept a set of files on the command line.
42293# All the public symbols from the .o files will be exported into
42294# a .DEF file, then linker will be run (through gcc) against them to
42295# build a shared library consisting of all given .o files. All libraries
42296# (.a) will be first decompressed into component .o files then act as
42297# described above. You can optionally give a description (-d "description")
42298# which will be put into .DLL. To see the list of accepted options (as well
42299# as command-line format) simply run this program without options. The .DLL
42300# is built to be imported by name (there is no guarantee that new versions
42301# of the library you build will have same ordinals for same symbols).
42302#
42303# dllar is free software; you can redistribute it and/or modify
42304# it under the terms of the GNU General Public License as published by
42305# the Free Software Foundation; either version 2, or (at your option)
42306# any later version.
42307#
42308# dllar is distributed in the hope that it will be useful,
42309# but WITHOUT ANY WARRANTY; without even the implied warranty of
42310# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42311# GNU General Public License for more details.
42312#
42313# You should have received a copy of the GNU General Public License
42314# along with dllar; see the file COPYING. If not, write to the Free
42315# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42316# 02111-1307, USA.
42317
42318# To successfuly run this program you will need:
42319# - Current drive should have LFN support (HPFS, ext2, network, etc)
42320# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42321# - gcc
42322# (used to build the .dll)
42323# - emxexp
42324# (used to create .def file from .o files)
42325# - emximp
42326# (used to create .a file from .def file)
42327# - GNU text utilites (cat, sort, uniq)
42328# used to process emxexp output
42329# - GNU file utilities (mv, rm)
42330# - GNU sed
42331# - lxlite (optional, see flag below)
42332# (used for general .dll cleanup)
42333#
42334
42335flag_USE_LXLITE=1;
42336
42337#
42338# helper functions
42339# basnam, variant of basename, which does _not_ remove the path, _iff_
42340# second argument (suffix to remove) is given
42341basnam(){
42342 case ${D}# in
42343 1)
1e9e8aba 42344 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42345 ;;
42346 2)
42347 echo ${D}1 | sed 's/'${D}2'${D}//'
42348 ;;
42349 *)
42350 echo "error in basnam ${D}*"
42351 exit 8
42352 ;;
42353 esac
42354}
42355
42356# Cleanup temporary files and output
42357CleanUp() {
42358 cd ${D}curDir
42359 for i in ${D}inputFiles ; do
42360 case ${D}i in
42361 *!)
42362 rm -rf \`basnam ${D}i !\`
42363 ;;
42364 *)
42365 ;;
42366 esac
42367 done
42368
42369 # Kill result in case of failure as there is just to many stupid make/nmake
42370 # things out there which doesn't do this.
1e9e8aba 42371 if [ ${D}# -eq 0 ]; then
473276a9
VS
42372 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42373 fi
42374}
42375
42376# Print usage and exit script with rc=1.
42377PrintHelp() {
b1d22ded
DE
42378 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42379 echo ' [-name-mangler-script script.sh]'
42380 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42381 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42382 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42383 echo ' [*.o] [*.a]'
473276a9
VS
42384 echo '*> "output_file" should have no extension.'
42385 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42386 echo ' The import library name is derived from this and is set to "name".a,'
42387 echo ' unless overridden by -import'
42388 echo '*> "importlib_name" should have no extension.'
42389 echo ' If it has the .o, or .a extension, it is automatically removed.'
42390 echo ' This name is used as the import library name and may be longer and'
42391 echo ' more descriptive than the DLL name which has to follow the old '
42392 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42393 echo '*> "script.sh may be given to override the output_file name by a'
42394 echo ' different name. It is mainly useful if the regular make process'
42395 echo ' of some package does not take into account OS/2 restriction of'
42396 echo ' DLL name lengths. It takes the importlib name as input and is'
42397 echo ' supposed to procude a shorter name as output. The script should'
42398 echo ' expect to get importlib_name without extension and should produce'
42399 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42400 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42401 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42402 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42403 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42404 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42405 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42406 echo ' If the last character of a symbol is "*", all symbols beginning'
42407 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42408 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42409 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42410 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42411 echo ' C runtime DLLs.'
b1d22ded 42412 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42413 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42414 echo ' unchanged to GCC at the end of command line.'
42415 echo '*> If you create a DLL from a library and you do not specify -o,'
42416 echo ' the basename for DLL and import library will be set to library name,'
42417 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42418 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42419 echo ' library will be renamed into gcc_s.a.'
42420 echo '--------'
42421 echo 'Example:'
42422 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42423 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42424 CleanUp
42425 exit 1
42426}
42427
42428# Execute a command.
42429# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42430# @Uses Whatever CleanUp() uses.
42431doCommand() {
42432 echo "${D}*"
42433 eval ${D}*
42434 rcCmd=${D}?
42435
1e9e8aba 42436 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42437 echo "command failed, exit code="${D}rcCmd
42438 CleanUp
42439 exit ${D}rcCmd
42440 fi
42441}
42442
42443# main routine
42444# setup globals
42445cmdLine=${D}*
42446outFile=""
42447outimpFile=""
42448inputFiles=""
b1d22ded 42449renameScript=""
473276a9
VS
42450description=""
42451CC=gcc.exe
42452CFLAGS="-s -Zcrtdll"
42453EXTRA_CFLAGS=""
42454EXPORT_BY_ORDINALS=0
42455exclude_symbols=""
42456library_flags=""
42457curDir=\`pwd\`
42458curDirS=curDir
42459case ${D}curDirS in
42460*/)
42461 ;;
42462*)
42463 curDirS=${D}{curDirS}"/"
42464 ;;
42465esac
42466# Parse commandline
42467libsToLink=0
b1d22ded 42468omfLinking=0
1e9e8aba 42469while [ ${D}1 ]; do
473276a9
VS
42470 case ${D}1 in
42471 -ord*)
42472 EXPORT_BY_ORDINALS=1;
42473 ;;
42474 -o*)
42475 shift
42476 outFile=${D}1
42477 ;;
42478 -i*)
42479 shift
42480 outimpFile=${D}1
42481 ;;
b1d22ded
DE
42482 -name-mangler-script)
42483 shift
42484 renameScript=${D}1
42485 ;;
473276a9
VS
42486 -d*)
42487 shift
42488 description=${D}1
42489 ;;
42490 -f*)
42491 shift
42492 CFLAGS=${D}1
42493 ;;
42494 -c*)
42495 shift
42496 CC=${D}1
42497 ;;
42498 -h*)
42499 PrintHelp
42500 ;;
42501 -ex*)
42502 shift
42503 exclude_symbols=${D}{exclude_symbols}${D}1" "
42504 ;;
42505 -libf*)
42506 shift
42507 library_flags=${D}{library_flags}${D}1" "
42508 ;;
42509 -nocrt*)
42510 CFLAGS="-s"
42511 ;;
42512 -nolxl*)
42513 flag_USE_LXLITE=0
42514 ;;
42515 -* | /*)
42516 case ${D}1 in
42517 -L* | -l*)
42518 libsToLink=1
42519 ;;
b1d22ded
DE
42520 -Zomf)
42521 omfLinking=1
42522 ;;
473276a9
VS
42523 *)
42524 ;;
42525 esac
42526 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42527 ;;
b1d22ded
DE
42528 *.dll)
42529 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42530 if [ ${D}omfLinking -eq 1 ]; then
42531 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42532 else
42533 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42534 fi
42535 ;;
473276a9
VS
42536 *)
42537 found=0;
1e9e8aba 42538 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42539 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42540 else
42541 for file in ${D}1 ; do
1e9e8aba 42542 if [ -f ${D}file ]; then
473276a9
VS
42543 inputFiles="${D}{inputFiles} ${D}file"
42544 found=1
42545 fi
42546 done
1e9e8aba 42547 if [ ${D}found -eq 0 ]; then
473276a9
VS
42548 echo "ERROR: No file(s) found: "${D}1
42549 exit 8
42550 fi
42551 fi
42552 ;;
42553 esac
42554 shift
42555done # iterate cmdline words
42556
42557#
1e9e8aba 42558if [ -z "${D}inputFiles" ]; then
473276a9
VS
42559 echo "dllar: no input files"
42560 PrintHelp
42561fi
42562
42563# Now extract all .o files from .a files
42564newInputFiles=""
42565for file in ${D}inputFiles ; do
42566 case ${D}file in
42567 *.a | *.lib)
42568 case ${D}file in
42569 *.a)
42570 suffix=".a"
42571 AR="ar"
42572 ;;
42573 *.lib)
42574 suffix=".lib"
42575 AR="emxomfar"
42576 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42577 ;;
42578 *)
42579 ;;
42580 esac
42581 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42582 mkdir ${D}dirname
1e9e8aba 42583 if [ ${D}? -ne 0 ]; then
473276a9
VS
42584 echo "Failed to create subdirectory ./${D}dirname"
42585 CleanUp
42586 exit 8;
42587 fi
42588 # Append '!' to indicate archive
42589 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42590 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42591 cd ${D}curDir
42592 found=0;
42593 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42594 if [ -f ${D}subfile ]; then
473276a9 42595 found=1
1e9e8aba 42596 if [ -s ${D}subfile ]; then
473276a9
VS
42597 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42598 newInputFiles="${D}newInputFiles ${D}subfile"
42599 fi
42600 fi
42601 done
1e9e8aba
DE
42602 if [ ${D}found -eq 0 ]; then
42603 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42604 fi
42605 ;;
42606 *)
42607 newInputFiles="${D}{newInputFiles} ${D}file"
42608 ;;
42609 esac
42610done
42611inputFiles="${D}newInputFiles"
42612
42613# Output filename(s).
42614do_backup=0;
1e9e8aba 42615if [ -z ${D}outFile ]; then
473276a9
VS
42616 do_backup=1;
42617 set outFile ${D}inputFiles; outFile=${D}2
42618fi
42619
42620# If it is an archive, remove the '!' and the '_%' suffixes
42621case ${D}outFile in
42622*_%!)
42623 outFile=\`basnam ${D}outFile _%!\`
42624 ;;
42625*)
42626 ;;
42627esac
42628case ${D}outFile in
42629*.dll)
42630 outFile=\`basnam ${D}outFile .dll\`
42631 ;;
42632*.DLL)
42633 outFile=\`basnam ${D}outFile .DLL\`
42634 ;;
42635*.o)
42636 outFile=\`basnam ${D}outFile .o\`
42637 ;;
42638*.obj)
42639 outFile=\`basnam ${D}outFile .obj\`
42640 ;;
42641*.a)
42642 outFile=\`basnam ${D}outFile .a\`
42643 ;;
42644*.lib)
42645 outFile=\`basnam ${D}outFile .lib\`
42646 ;;
42647*)
42648 ;;
42649esac
42650case ${D}outimpFile in
42651*.a)
42652 outimpFile=\`basnam ${D}outimpFile .a\`
42653 ;;
42654*.lib)
42655 outimpFile=\`basnam ${D}outimpFile .lib\`
42656 ;;
42657*)
42658 ;;
42659esac
1e9e8aba 42660if [ -z ${D}outimpFile ]; then
473276a9
VS
42661 outimpFile=${D}outFile
42662fi
42663defFile="${D}{outFile}.def"
42664arcFile="${D}{outimpFile}.a"
42665arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42666
42667#create ${D}dllFile as something matching 8.3 restrictions,
42668if [ -z ${D}renameScript ] ; then
42669 dllFile="${D}outFile"
42670else
42671 dllFile=\`${D}renameScript ${D}outimpFile\`
42672fi
473276a9 42673
1e9e8aba
DE
42674if [ ${D}do_backup -ne 0 ] ; then
42675 if [ -f ${D}arcFile ] ; then
473276a9
VS
42676 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42677 fi
1e9e8aba 42678 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42679 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42680 fi
42681fi
42682
42683# Extract public symbols from all the object files.
42684tmpdefFile=${D}{defFile}_%
42685rm -f ${D}tmpdefFile
42686for file in ${D}inputFiles ; do
42687 case ${D}file in
42688 *!)
42689 ;;
42690 *)
42691 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42692 ;;
42693 esac
42694done
42695
42696# Create the def file.
42697rm -f ${D}defFile
42698echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42699dllFile="${D}{dllFile}.dll"
42700if [ ! -z ${D}description ]; then
1e9e8aba 42701 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42702fi
42703echo "EXPORTS" >> ${D}defFile
42704
42705doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42706grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42707
42708# Checks if the export is ok or not.
42709for word in ${D}exclude_symbols; do
42710 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42711 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42712done
42713
42714
1e9e8aba
DE
42715if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42716 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42717 sed '
42718 N
42719 : loop
1e9e8aba 42720 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42721 t loop
42722 ' > ${D}{tmpdefFile}%
42723 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42724else
42725 rm -f ${D}{tmpdefFile}%
42726fi
42727cat ${D}tmpdefFile >> ${D}defFile
42728rm -f ${D}tmpdefFile
42729
42730# Do linking, create implib, and apply lxlite.
42731gccCmdl="";
42732for file in ${D}inputFiles ; do
42733 case ${D}file in
42734 *!)
42735 ;;
42736 *)
42737 gccCmdl="${D}gccCmdl ${D}file"
42738 ;;
42739 esac
42740done
42741doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42742touch "${D}{outFile}.dll"
42743
42744doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42745if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42746 add_flags="";
1e9e8aba 42747 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42748 add_flags="-ynd"
42749 fi
42750 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42751fi
42752doCommand "emxomf -s -l ${D}arcFile"
42753
42754# Successful exit.
42755CleanUp 1
42756exit 0
42757EOF
42758
42759 chmod +x dllar.sh
a848cd7e
SC
42760 ;;
42761
1e9e8aba 42762 powerpc-apple-macos* | \
a848cd7e
SC
42763 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42764 *-*-sunos4* | \
42765 *-*-osf* | \
42766 *-*-dgux5* | \
47a7e797
MW
42767 *-*-sysv5* | \
42768 *-pc-msdosdjgpp )
a848cd7e
SC
42769 ;;
42770
42771 *)
42772 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42773echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42774 { (exit 1); exit 1; }; }
42775 esac
42776
2057db16
VS
42777 if test "x$PIC_FLAG" != "x" ; then
42778 PIC_FLAG="$PIC_FLAG -DPIC"
42779 fi
42780
a848cd7e
SC
42781 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42782 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42783 fi
42784 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42785 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42786 fi
42787
42788
42789
42790
42791
42792
42793
42794
42795 USE_SOVERSION=0
42796 USE_SOVERLINUX=0
42797 USE_SOVERSOLARIS=0
42798 USE_SOSYMLINKS=0
42799 USE_MACVERSION=0
42800 SONAME_FLAG=
42801
42802 case "${BAKEFILE_HOST}" in
b1d22ded 42803 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42804 SONAME_FLAG="-Wl,-soname,"
42805 USE_SOVERSION=1
42806 USE_SOVERLINUX=1
42807 USE_SOSYMLINKS=1
42808 ;;
42809
a848cd7e
SC
42810 *-*-solaris2* )
42811 SONAME_FLAG="-h "
42812 USE_SOVERSION=1
42813 USE_SOVERSOLARIS=1
42814 USE_SOSYMLINKS=1
42815 ;;
42816
42817 *-*-darwin* )
42818 USE_MACVERSION=1
42819 USE_SOVERSION=1
42820 USE_SOSYMLINKS=1
42821 ;;
42822 esac
42823
42824
42825
42826
42827
42828
42829
42830
42831
42832 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42833echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42834 DEPS_TRACKING=0
42835
42836 if test "x$GCC" = "xyes"; then
42837 DEPSMODE=gcc
42838 DEPS_TRACKING=1
42839 case "${BAKEFILE_HOST}" in
42840 powerpc-*-darwin* )
42841 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42842 ;;
42843 * )
42844 DEPSFLAG_GCC="-MMD"
42845 ;;
42846 esac
42847 echo "$as_me:$LINENO: result: gcc" >&5
42848echo "${ECHO_T}gcc" >&6
b1d22ded 42849 elif test "x$MWCC" = "xyes"; then
81f90336 42850 DEPSMODE=mwcc
b1d22ded 42851 DEPS_TRACKING=1
81f90336 42852 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42853 echo "$as_me:$LINENO: result: mwcc" >&5
42854echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
42855 elif test "x$SUNCC" = "xyes"; then
42856 DEPSMODE=suncc
42857 DEPS_TRACKING=1
42858 DEPSFLAG_SUNCC="-xM1"
42859 echo "$as_me:$LINENO: result: suncc" >&5
42860echo "${ECHO_T}suncc" >&6
a848cd7e
SC
42861 else
42862 echo "$as_me:$LINENO: result: none" >&5
42863echo "${ECHO_T}none" >&6
42864 fi
42865
42866 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42867
42868D='$'
42869cat <<EOF >bk-deps
a848cd7e
SC
42870#!/bin/sh
42871
42872# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42873# script. It is used to track C/C++ files dependencies in portable way.
42874#
42875# Permission is given to use this file in any way.
42876
473276a9 42877DEPSMODE=${DEPSMODE}
a848cd7e 42878DEPSDIR=.deps
473276a9 42879DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42880DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 42881DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 42882
473276a9 42883mkdir -p ${D}DEPSDIR
a848cd7e 42884
473276a9
VS
42885if test ${D}DEPSMODE = gcc ; then
42886 ${D}* ${D}{DEPSFLAG_GCC}
42887 status=${D}?
42888 if test ${D}{status} != 0 ; then
42889 exit ${D}{status}
a848cd7e
SC
42890 fi
42891 # move created file to the location we want it in:
473276a9
VS
42892 while test ${D}# -gt 0; do
42893 case "${D}1" in
a848cd7e
SC
42894 -o )
42895 shift
473276a9 42896 objfile=${D}1
a848cd7e
SC
42897 ;;
42898 -* )
42899 ;;
42900 * )
473276a9 42901 srcfile=${D}1
a848cd7e
SC
42902 ;;
42903 esac
42904 shift
42905 done
1e9e8aba
DE
42906 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42907 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42908 if test -f ${D}depfile ; then
42909 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42910 rm -f ${D}depfile
a848cd7e 42911 else
1e9e8aba 42912 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42913 if test -f ${D}depfile ; then
42914 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42915 rm -f ${D}depfile
a848cd7e
SC
42916 fi
42917 fi
42918 exit 0
81f90336
MW
42919elif test ${D}DEPSMODE = mwcc ; then
42920 ${D}*
42921 status=${D}?
42922 if test ${D}{status} != 0 ; then
42923 exit ${D}{status}
42924 fi
42925 # Run mwcc again with -MM and redirect into the dep file we want
42926 # NOTE: We can't use shift here because we need ${D}* to be valid
42927 prevarg=
42928 for arg in ${D}* ; do
42929 if test "${D}prevarg" = "-o"; then
42930 objfile=${D}arg
42931 else
42932 case "${D}arg" in
42933 -* )
42934 ;;
42935 * )
42936 srcfile=${D}arg
42937 ;;
42938 esac
42939 fi
42940 prevarg="${D}arg"
42941 done
42942 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42943 exit 0
a9e5b1f0
MW
42944elif test ${D}DEPSMODE = suncc; then
42945 ${D}* || exit
42946 # Run compiler again with deps flag and redirect into the dep file.
42947 # It doesn't work if the '-o FILE' option is used, but without it the
42948 # dependency file will contain the wrong name for the object. So it is
42949 # removed from the command line, and the dep file is fixed with sed.
42950 cmd=""
42951 while test ${D}# -gt 0; do
42952 case "${D}1" in
42953 -o )
42954 shift
42955 objfile=${D}1
42956 ;;
42957 * )
42958 eval arg${D}#=\\${D}1
42959 cmd="${D}cmd \\${D}arg${D}#"
42960 ;;
42961 esac
42962 shift
42963 done
42964 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
42965 exit 0
a848cd7e 42966else
473276a9
VS
42967 ${D}*
42968 exit ${D}?
a848cd7e
SC
42969fi
42970EOF
473276a9 42971
a848cd7e
SC
42972 chmod +x bk-deps
42973 fi
42974
42975
42976
42977
42978 RESCOMP=
42979 SETFILE=
42980
42981 case ${BAKEFILE_HOST} in
42982 *-*-cygwin* | *-*-mingw32* )
42983 if test "$build" != "$host" ; then
42984 RESCOMP=$host_alias-windres
42985 else
42986 # Extract the first word of "windres", so it can be a program name with args.
42987set dummy windres; ac_word=$2
42988echo "$as_me:$LINENO: checking for $ac_word" >&5
42989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42990if test "${ac_cv_prog_RESCOMP+set}" = set; then
42991 echo $ECHO_N "(cached) $ECHO_C" >&6
42992else
42993 if test -n "$RESCOMP"; then
42994 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42995else
42996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42997for as_dir in $PATH
42998do
42999 IFS=$as_save_IFS
43000 test -z "$as_dir" && as_dir=.
43001 for ac_exec_ext in '' $ac_executable_extensions; do
43002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43003 ac_cv_prog_RESCOMP="windres"
43004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43005 break 2
43006 fi
43007done
43008done
43009
43010 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
43011fi
43012fi
43013RESCOMP=$ac_cv_prog_RESCOMP
43014if test -n "$RESCOMP"; then
43015 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43016echo "${ECHO_T}$RESCOMP" >&6
43017else
43018 echo "$as_me:$LINENO: result: no" >&5
43019echo "${ECHO_T}no" >&6
43020fi
43021
43022 fi
43023 ;;
43024
1e9e8aba 43025 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
43026 # Extract the first word of "Rez", so it can be a program name with args.
43027set dummy Rez; ac_word=$2
43028echo "$as_me:$LINENO: checking for $ac_word" >&5
43029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43030if test "${ac_cv_prog_RESCOMP+set}" = set; then
43031 echo $ECHO_N "(cached) $ECHO_C" >&6
43032else
43033 if test -n "$RESCOMP"; then
43034 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43035else
43036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43037for as_dir in $PATH
43038do
43039 IFS=$as_save_IFS
43040 test -z "$as_dir" && as_dir=.
43041 for ac_exec_ext in '' $ac_executable_extensions; do
43042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43043 ac_cv_prog_RESCOMP="Rez"
43044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43045 break 2
43046 fi
43047done
43048done
43049
43050 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43051fi
43052fi
43053RESCOMP=$ac_cv_prog_RESCOMP
43054if test -n "$RESCOMP"; then
43055 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43056echo "${ECHO_T}$RESCOMP" >&6
43057else
43058 echo "$as_me:$LINENO: result: no" >&5
43059echo "${ECHO_T}no" >&6
43060fi
43061
43062 # Extract the first word of "SetFile", so it can be a program name with args.
43063set dummy SetFile; ac_word=$2
43064echo "$as_me:$LINENO: checking for $ac_word" >&5
43065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43066if test "${ac_cv_prog_SETFILE+set}" = set; then
43067 echo $ECHO_N "(cached) $ECHO_C" >&6
43068else
43069 if test -n "$SETFILE"; then
43070 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43071else
43072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43073for as_dir in $PATH
43074do
43075 IFS=$as_save_IFS
43076 test -z "$as_dir" && as_dir=.
43077 for ac_exec_ext in '' $ac_executable_extensions; do
43078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43079 ac_cv_prog_SETFILE="SetFile"
43080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43081 break 2
43082 fi
43083done
43084done
43085
43086 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43087fi
43088fi
43089SETFILE=$ac_cv_prog_SETFILE
43090if test -n "$SETFILE"; then
43091 echo "$as_me:$LINENO: result: $SETFILE" >&5
43092echo "${ECHO_T}$SETFILE" >&6
43093else
43094 echo "$as_me:$LINENO: result: no" >&5
43095echo "${ECHO_T}no" >&6
43096fi
43097
43098 ;;
43099 esac
43100
43101
43102
43103
43104
fbb7dfff 43105 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 43106
dcc1b6ad 43107
fbb7dfff 43108BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 43109
646b6ec1 43110
74b84332 43111
a848cd7e
SC
43112 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43113if test "${enable_precomp_headers+set}" = set; then
43114 enableval="$enable_precomp_headers"
43115 bk_use_pch="$enableval"
43116fi;
43117
43118 GCC_PCH=0
43119
43120 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43121 if test "x$GCC" = "xyes"; then
43122 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43123echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43124 cat >conftest.$ac_ext <<_ACEOF
43125/* confdefs.h. */
43126_ACEOF
43127cat confdefs.h >>conftest.$ac_ext
43128cat >>conftest.$ac_ext <<_ACEOF
43129/* end confdefs.h. */
43130
43131int
43132main ()
43133{
43134
43135 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43136 #error "no pch support"
43137 #endif
43138 #if (__GNUC__ < 3)
43139 #error "no pch support"
43140 #endif
43141 #if (__GNUC__ == 3) && \
43142 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43143 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43144 #error "no pch support"
43145 #endif
43146
43147 ;
43148 return 0;
43149}
43150_ACEOF
43151rm -f conftest.$ac_objext
43152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43153 (eval $ac_compile) 2>conftest.er1
a848cd7e 43154 ac_status=$?
ac1cb8d3
VS
43155 grep -v '^ *+' conftest.er1 >conftest.err
43156 rm -f conftest.er1
43157 cat conftest.err >&5
a848cd7e
SC
43158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43159 (exit $ac_status); } &&
8c539582 43160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43162 (eval $ac_try) 2>&5
43163 ac_status=$?
43164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43165 (exit $ac_status); }; } &&
43166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43168 (eval $ac_try) 2>&5
43169 ac_status=$?
43170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43171 (exit $ac_status); }; }; then
43172
43173 echo "$as_me:$LINENO: result: yes" >&5
43174echo "${ECHO_T}yes" >&6
a848cd7e
SC
43175 GCC_PCH=1
43176
43177else
43178 echo "$as_me: failed program was:" >&5
43179sed 's/^/| /' conftest.$ac_ext >&5
43180
43181
43182 echo "$as_me:$LINENO: result: no" >&5
43183echo "${ECHO_T}no" >&6
43184
43185fi
ac1cb8d3 43186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43187 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43188
43189D='$'
43190cat <<EOF >bk-make-pch
a848cd7e
SC
43191#!/bin/sh
43192
43193# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43194# script. It is used to generated precompiled headers.
43195#
43196# Permission is given to use this file in any way.
43197
1e9e8aba
DE
43198outfile="${D}{1}"
43199header="${D}{2}"
a848cd7e
SC
43200shift
43201shift
43202
43203compiler=
43204headerfile=
1e9e8aba
DE
43205while test ${D}{#} -gt 0; do
43206 case "${D}{1}" in
a848cd7e 43207 -I* )
1e9e8aba
DE
43208 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43209 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43210 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43211 fi
43212 ;;
43213 esac
1e9e8aba 43214 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43215 shift
43216done
43217
1e9e8aba
DE
43218if test "x${D}{headerfile}" = "x" ; then
43219 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43220else
1e9e8aba
DE
43221 if test -f ${D}{outfile} ; then
43222 rm -f ${D}{outfile}
a848cd7e 43223 else
1e9e8aba 43224 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43225 fi
1e9e8aba 43226 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43227 mkdir -p .deps
43228 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43229 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43230 exit ${D}{?}
a848cd7e
SC
43231fi
43232EOF
1e9e8aba 43233
a848cd7e
SC
43234 chmod +x bk-make-pch
43235 fi
43236 fi
43237 fi
43238
43239
43240
a848cd7e
SC
43241 COND_BUILD_DEBUG="#"
43242 if test "x$BUILD" = "xdebug" ; then
43243 COND_BUILD_DEBUG=""
43244 fi
43245
43246 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43247 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43248 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43249 fi
43250
43251 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43252 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43253 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43254 fi
43255
43256 COND_BUILD_DEBUG_UNICODE_0="#"
43257 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43258 COND_BUILD_DEBUG_UNICODE_0=""
43259 fi
43260
43261 COND_BUILD_DEBUG_UNICODE_1="#"
43262 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43263 COND_BUILD_DEBUG_UNICODE_1=""
43264 fi
43265
43266 COND_BUILD_RELEASE="#"
43267 if test "x$BUILD" = "xrelease" ; then
43268 COND_BUILD_RELEASE=""
43269 fi
43270
43271 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43272 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43273 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43274 fi
43275
43276 COND_BUILD_RELEASE_UNICODE_0="#"
43277 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43278 COND_BUILD_RELEASE_UNICODE_0=""
43279 fi
43280
43281 COND_BUILD_RELEASE_UNICODE_1="#"
43282 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43283 COND_BUILD_RELEASE_UNICODE_1=""
43284 fi
43285
43286 COND_DEBUG_FLAG_1="#"
43287 if test "x$DEBUG_FLAG" = "x1" ; then
43288 COND_DEBUG_FLAG_1=""
43289 fi
43290
43291 COND_DEBUG_INFO_0="#"
43292 if test "x$DEBUG_INFO" = "x0" ; then
43293 COND_DEBUG_INFO_0=""
43294 fi
43295
43296 COND_DEBUG_INFO_1="#"
43297 if test "x$DEBUG_INFO" = "x1" ; then
43298 COND_DEBUG_INFO_1=""
43299 fi
43300
43301 COND_DEPS_TRACKING_0="#"
43302 if test "x$DEPS_TRACKING" = "x0" ; then
43303 COND_DEPS_TRACKING_0=""
43304 fi
43305
43306 COND_DEPS_TRACKING_1="#"
43307 if test "x$DEPS_TRACKING" = "x1" ; then
43308 COND_DEPS_TRACKING_1=""
43309 fi
43310
43311 COND_GCC_PCH_1="#"
43312 if test "x$GCC_PCH" = "x1" ; then
43313 COND_GCC_PCH_1=""
43314 fi
43315
43316 COND_MONOLITHIC_0="#"
43317 if test "x$MONOLITHIC" = "x0" ; then
43318 COND_MONOLITHIC_0=""
43319 fi
43320
43321 COND_MONOLITHIC_0_SHARED_0="#"
43322 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43323 COND_MONOLITHIC_0_SHARED_0=""
43324 fi
43325
43326 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43327 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43328 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43329 fi
43330
90970d69
DE
43331 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
43332 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43333 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
43334 fi
43335
a848cd7e
SC
43336 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
43337 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43338 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
43339 fi
43340
6671c68b
VZ
43341 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
43342 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43343 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
43344 fi
43345
a848cd7e
SC
43346 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43347 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43348 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43349 fi
43350
ceec2216
RL
43351 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43352 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43353 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43354 fi
43355
a848cd7e
SC
43356 COND_MONOLITHIC_0_SHARED_1="#"
43357 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43358 COND_MONOLITHIC_0_SHARED_1=""
43359 fi
43360
43361 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43362 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43363 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43364 fi
43365
90970d69
DE
43366 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43367 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43368 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43369 fi
43370
a848cd7e
SC
43371 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43372 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43373 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43374 fi
43375
6671c68b
VZ
43376 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43377 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43378 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43379 fi
43380
a848cd7e
SC
43381 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43382 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43383 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43384 fi
43385
ceec2216
RL
43386 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43387 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43388 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43389 fi
43390
a848cd7e
SC
43391 COND_MONOLITHIC_0_USE_ODBC_1="#"
43392 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43393 COND_MONOLITHIC_0_USE_ODBC_1=""
43394 fi
43395
43396 COND_MONOLITHIC_1="#"
43397 if test "x$MONOLITHIC" = "x1" ; then
43398 COND_MONOLITHIC_1=""
43399 fi
43400
43401 COND_MONOLITHIC_1_SHARED_0="#"
43402 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43403 COND_MONOLITHIC_1_SHARED_0=""
43404 fi
43405
43406 COND_MONOLITHIC_1_SHARED_1="#"
43407 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43408 COND_MONOLITHIC_1_SHARED_1=""
43409 fi
43410
43411 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43412 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43413 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43414 fi
43415
43416 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43417 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43418 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43419 fi
43420
43421 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43422 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43423 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43424 fi
43425
43426 COND_PLATFORM_MACOSX_1="#"
43427 if test "x$PLATFORM_MACOSX" = "x1" ; then
43428 COND_PLATFORM_MACOSX_1=""
43429 fi
43430
a30f955f
VS
43431 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43432 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43433 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43434 fi
43435
a848cd7e
SC
43436 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43437 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43438 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43439 fi
43440
43441 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43442 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43443 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43444 fi
43445
43446 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43447 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43448 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43449 fi
43450
fc480dc1
DE
43451 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43452 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43453 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43454 fi
43455
1e9e8aba
DE
43456 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43457 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43458 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43459 fi
43460
ebee3cd0
VS
43461 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43462 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43463 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43464 fi
43465
43466 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43467 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43468 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43469 fi
43470
a848cd7e
SC
43471 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43472 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43473 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43474 fi
43475
43476 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43477 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43478 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43479 fi
43480
b48a2016
DE
43481 COND_PLATFORM_MACOS_1="#"
43482 if test "x$PLATFORM_MACOS" = "x1" ; then
43483 COND_PLATFORM_MACOS_1=""
43484 fi
43485
a848cd7e
SC
43486 COND_PLATFORM_MAC_1="#"
43487 if test "x$PLATFORM_MAC" = "x1" ; then
43488 COND_PLATFORM_MAC_1=""
43489 fi
43490
83d8eb47
MW
43491 COND_PLATFORM_MSDOS_1="#"
43492 if test "x$PLATFORM_MSDOS" = "x1" ; then
43493 COND_PLATFORM_MSDOS_1=""
43494 fi
43495
a848cd7e
SC
43496 COND_PLATFORM_OS2_1="#"
43497 if test "x$PLATFORM_OS2" = "x1" ; then
43498 COND_PLATFORM_OS2_1=""
43499 fi
43500
43501 COND_PLATFORM_UNIX_0="#"
43502 if test "x$PLATFORM_UNIX" = "x0" ; then
43503 COND_PLATFORM_UNIX_0=""
43504 fi
43505
43506 COND_PLATFORM_UNIX_1="#"
43507 if test "x$PLATFORM_UNIX" = "x1" ; then
43508 COND_PLATFORM_UNIX_1=""
43509 fi
43510
43511 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43512 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43513 COND_PLATFORM_UNIX_1_USE_GUI_1=""
43514 fi
43515
43516 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43517 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43518 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43519 fi
43520
43521 COND_PLATFORM_WIN32_0="#"
43522 if test "x$PLATFORM_WIN32" = "x0" ; then
43523 COND_PLATFORM_WIN32_0=""
43524 fi
43525
43526 COND_PLATFORM_WIN32_1="#"
43527 if test "x$PLATFORM_WIN32" = "x1" ; then
43528 COND_PLATFORM_WIN32_1=""
43529 fi
43530
43531 COND_SHARED_0="#"
43532 if test "x$SHARED" = "x0" ; then
43533 COND_SHARED_0=""
43534 fi
43535
ceec2216
RL
43536 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43537 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43538 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43539 fi
43540
43541 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43542 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43543 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43544 fi
43545
43546 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43547 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43548 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43549 fi
43550
a848cd7e
SC
43551 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43552 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43553 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43554 fi
43555
43556 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43557 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43558 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43559 fi
43560
43561 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43562 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43563 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43564 fi
43565
43566 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43567 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43568 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43569 fi
43570
52ada004
RL
43571 COND_SHARED_0_USE_XRC_1="#"
43572 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43573 COND_SHARED_0_USE_XRC_1=""
43574 fi
43575
a848cd7e
SC
43576 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43577 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43578 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43579 fi
43580
43581 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43582 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43583 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43584 fi
43585
43586 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43587 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43588 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43589 fi
43590
43591 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43592 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43593 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43594 fi
43595
43596 COND_SHARED_1="#"
43597 if test "x$SHARED" = "x1" ; then
43598 COND_SHARED_1=""
43599 fi
43600
43601 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43602 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43603 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43604 fi
43605
52ada004
RL
43606 COND_SHARED_1_USE_XRC_1="#"
43607 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43608 COND_SHARED_1_USE_XRC_1=""
43609 fi
43610
a30f955f
VS
43611 COND_TOOLKIT_="#"
43612 if test "x$TOOLKIT" = "x" ; then
43613 COND_TOOLKIT_=""
43614 fi
43615
a848cd7e
SC
43616 COND_TOOLKIT_COCOA="#"
43617 if test "x$TOOLKIT" = "xCOCOA" ; then
43618 COND_TOOLKIT_COCOA=""
43619 fi
43620
a49baeab
DE
43621 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43622 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43623 COND_TOOLKIT_COCOA_USE_GUI_1=""
43624 fi
43625
a848cd7e
SC
43626 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43627 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43628 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43629 fi
43630
43631 COND_TOOLKIT_GTK="#"
43632 if test "x$TOOLKIT" = "xGTK" ; then
43633 COND_TOOLKIT_GTK=""
43634 fi
43635
43636 COND_TOOLKIT_GTK_USE_GUI_1="#"
43637 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43638 COND_TOOLKIT_GTK_USE_GUI_1=""
43639 fi
43640
43641 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43642 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43643 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43644 fi
43645
43646 COND_TOOLKIT_MAC="#"
43647 if test "x$TOOLKIT" = "xMAC" ; then
43648 COND_TOOLKIT_MAC=""
43649 fi
43650
43651 COND_TOOLKIT_MAC_USE_GUI_1="#"
43652 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43653 COND_TOOLKIT_MAC_USE_GUI_1=""
43654 fi
43655
43656 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43657 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43658 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43659 fi
43660
43661 COND_TOOLKIT_MGL="#"
43662 if test "x$TOOLKIT" = "xMGL" ; then
43663 COND_TOOLKIT_MGL=""
43664 fi
43665
43666 COND_TOOLKIT_MGL_USE_GUI_1="#"
43667 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43668 COND_TOOLKIT_MGL_USE_GUI_1=""
43669 fi
43670
43671 COND_TOOLKIT_MOTIF="#"
43672 if test "x$TOOLKIT" = "xMOTIF" ; then
43673 COND_TOOLKIT_MOTIF=""
43674 fi
43675
43676 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43677 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43678 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43679 fi
43680
43681 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43682 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43683 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43684 fi
43685
43686 COND_TOOLKIT_MSW="#"
43687 if test "x$TOOLKIT" = "xMSW" ; then
43688 COND_TOOLKIT_MSW=""
43689 fi
43690
43691 COND_TOOLKIT_MSW_USE_GUI_1="#"
43692 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43693 COND_TOOLKIT_MSW_USE_GUI_1=""
43694 fi
43695
43696 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43697 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43698 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43699 fi
43700
43701 COND_TOOLKIT_PM="#"
43702 if test "x$TOOLKIT" = "xPM" ; then
43703 COND_TOOLKIT_PM=""
43704 fi
43705
43706 COND_TOOLKIT_PM_USE_GUI_1="#"
43707 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43708 COND_TOOLKIT_PM_USE_GUI_1=""
43709 fi
43710
43711 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43712 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43713 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43714 fi
43715
3fd9c298
DE
43716 COND_TOOLKIT_WINCE="#"
43717 if test "x$TOOLKIT" = "xWINCE" ; then
43718 COND_TOOLKIT_WINCE=""
43719 fi
43720
43721 COND_TOOLKIT_WINCE_USE_GUI_1="#"
43722 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43723 COND_TOOLKIT_WINCE_USE_GUI_1=""
43724 fi
43725
43726 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43727 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43728 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43729 fi
43730
a848cd7e
SC
43731 COND_TOOLKIT_X11="#"
43732 if test "x$TOOLKIT" = "xX11" ; then
43733 COND_TOOLKIT_X11=""
43734 fi
43735
43736 COND_TOOLKIT_X11_USE_GUI_1="#"
43737 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43738 COND_TOOLKIT_X11_USE_GUI_1=""
43739 fi
43740
43741 COND_UNICODE_1="#"
43742 if test "x$UNICODE" = "x1" ; then
43743 COND_UNICODE_1=""
43744 fi
43745
43746 COND_USE_EXCEPTIONS_0="#"
43747 if test "x$USE_EXCEPTIONS" = "x0" ; then
43748 COND_USE_EXCEPTIONS_0=""
43749 fi
43750
43751 COND_USE_EXCEPTIONS_1="#"
43752 if test "x$USE_EXCEPTIONS" = "x1" ; then
43753 COND_USE_EXCEPTIONS_1=""
43754 fi
43755
43756 COND_USE_GUI_0="#"
43757 if test "x$USE_GUI" = "x0" ; then
43758 COND_USE_GUI_0=""
43759 fi
43760
43761 COND_USE_GUI_1="#"
43762 if test "x$USE_GUI" = "x1" ; then
43763 COND_USE_GUI_1=""
43764 fi
43765
43766 COND_USE_GUI_1_WXUNIV_0="#"
43767 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43768 COND_USE_GUI_1_WXUNIV_0=""
43769 fi
43770
43771 COND_USE_GUI_1_WXUNIV_1="#"
43772 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43773 COND_USE_GUI_1_WXUNIV_1=""
43774 fi
43775
43776 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43777 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43778 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43779 fi
43780
43781 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43782 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43783 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43784 fi
43785
43786 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43787 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43788 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43789 fi
43790
ceec2216
RL
43791 COND_USE_ODBC_1="#"
43792 if test "x$USE_ODBC" = "x1" ; then
43793 COND_USE_ODBC_1=""
43794 fi
43795
ffa0583f
RL
43796 COND_USE_OPENGL_1="#"
43797 if test "x$USE_OPENGL" = "x1" ; then
43798 COND_USE_OPENGL_1=""
43799 fi
43800
a848cd7e
SC
43801 COND_USE_PLUGINS_0="#"
43802 if test "x$USE_PLUGINS" = "x0" ; then
43803 COND_USE_PLUGINS_0=""
43804 fi
43805
0b78747f
MW
43806 COND_USE_RTTI_0="#"
43807 if test "x$USE_RTTI" = "x0" ; then
43808 COND_USE_RTTI_0=""
43809 fi
43810
43811 COND_USE_RTTI_1="#"
43812 if test "x$USE_RTTI" = "x1" ; then
43813 COND_USE_RTTI_1=""
43814 fi
43815
a848cd7e
SC
43816 COND_USE_SOSYMLINKS_1="#"
43817 if test "x$USE_SOSYMLINKS" = "x1" ; then
43818 COND_USE_SOSYMLINKS_1=""
43819 fi
43820
43821 COND_USE_SOVERLINUX_1="#"
43822 if test "x$USE_SOVERLINUX" = "x1" ; then
43823 COND_USE_SOVERLINUX_1=""
43824 fi
43825
43826 COND_USE_SOVERSION_0="#"
43827 if test "x$USE_SOVERSION" = "x0" ; then
43828 COND_USE_SOVERSION_0=""
43829 fi
43830
43831 COND_USE_SOVERSOLARIS_1="#"
43832 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43833 COND_USE_SOVERSOLARIS_1=""
43834 fi
43835
0b78747f
MW
43836 COND_USE_THREADS_0="#"
43837 if test "x$USE_THREADS" = "x0" ; then
43838 COND_USE_THREADS_0=""
43839 fi
43840
43841 COND_USE_THREADS_1="#"
43842 if test "x$USE_THREADS" = "x1" ; then
43843 COND_USE_THREADS_1=""
43844 fi
43845
a13a7f89
RL
43846 COND_USE_XRC_1="#"
43847 if test "x$USE_XRC" = "x1" ; then
43848 COND_USE_XRC_1=""
43849 fi
43850
a848cd7e
SC
43851 COND_WITH_PLUGIN_SDL_1="#"
43852 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43853 COND_WITH_PLUGIN_SDL_1=""
43854 fi
43855
1e6eb025
VZ
43856 COND_WXUNIV_0="#"
43857 if test "x$WXUNIV" = "x0" ; then
43858 COND_WXUNIV_0=""
43859 fi
43860
a848cd7e
SC
43861 COND_WXUNIV_1="#"
43862 if test "x$WXUNIV" = "x1" ; then
43863 COND_WXUNIV_1=""
43864 fi
43865
43866 COND_WXUSE_EXPAT_BUILTIN="#"
43867 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43868 COND_WXUSE_EXPAT_BUILTIN=""
43869 fi
43870
43871 COND_WXUSE_LIBJPEG_BUILTIN="#"
43872 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43873 COND_WXUSE_LIBJPEG_BUILTIN=""
43874 fi
43875
43876 COND_WXUSE_LIBPNG_BUILTIN="#"
43877 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43878 COND_WXUSE_LIBPNG_BUILTIN=""
43879 fi
43880
43881 COND_WXUSE_LIBTIFF_BUILTIN="#"
43882 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43883 COND_WXUSE_LIBTIFF_BUILTIN=""
43884 fi
43885
43886 COND_WXUSE_ODBC_BUILTIN="#"
43887 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43888 COND_WXUSE_ODBC_BUILTIN=""
43889 fi
43890
43891 COND_WXUSE_REGEX_BUILTIN="#"
43892 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43893 COND_WXUSE_REGEX_BUILTIN=""
43894 fi
43895
43896 COND_WXUSE_ZLIB_BUILTIN="#"
43897 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43898 COND_WXUSE_ZLIB_BUILTIN=""
43899 fi
43900
43901
43902
2057db16
VS
43903 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43904 { { 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
43905echo "$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;}
43906 { (exit 1); exit 1; }; }
43907 fi
43908
a848cd7e 43909
fb00f58d
JS
43910if test "$wxUSE_WINE" = "yes"; then
43911 RESCOMP=wrc
43912fi
43913
ceec2216
RL
43914if test "$wxUSE_SHARED" = "yes"; then
43915
43916 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43917 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43918
5b674b9d
DE
43919 case "${host}" in
43920 *-pc-os2_emx | *-pc-os2-emx )
43921 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43922 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43923 cp -p ${srcdir}/src/os2/dllnames.sh .
43924 cp -p ${srcdir}/src/os2/dllar.sh .
43925 ;;
43926 esac
ceec2216
RL
43927else
43928
43929 EXE_LINKER="$CXX -o"
43930
43931fi
69120ee4
VZ
43932if test "$wxUSE_OMF" = "yes"; then
43933 case "${host}" in
43934 *-pc-os2_emx | *-pc-os2-emx )
43935 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43936 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43937 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43938 ;;
43939 esac
43940fi
a848cd7e 43941
c08ebc62 43942if test $GCC_PCH = 1 ; then
8c539582 43943 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
3314e67b 43944fi
bea8e651 43945
8c539582 43946CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
a848cd7e
SC
43947
43948
43949SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43950
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
a848cd7e
SC
43992
43993
43994
43995
43996
43997
43998
43999
44000
44001
44002
44003
44004
44005
44006
44007
44008
44009
44010
44011
44012echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44013echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44014set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44015if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44016 echo $ECHO_N "(cached) $ECHO_C" >&6
44017else
44018 cat >conftest.make <<\_ACEOF
44019all:
44020 @echo 'ac_maketemp="$(MAKE)"'
44021_ACEOF
44022# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44023eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44024if test -n "$ac_maketemp"; then
44025 eval ac_cv_prog_make_${ac_make}_set=yes
44026else
44027 eval ac_cv_prog_make_${ac_make}_set=no
44028fi
44029rm -f conftest.make
44030fi
44031if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44032 echo "$as_me:$LINENO: result: yes" >&5
44033echo "${ECHO_T}yes" >&6
44034 SET_MAKE=
44035else
44036 echo "$as_me:$LINENO: result: no" >&5
44037echo "${ECHO_T}no" >&6
44038 SET_MAKE="MAKE=${MAKE-make}"
44039fi
44040
44041
a848cd7e 44042
ceec2216
RL
44043 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44044
a848cd7e 44045
ceec2216 44046 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44047
a848cd7e 44048
ceec2216 44049 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44050
ceec2216
RL
44051
44052 ac_config_files="$ac_config_files version-script Makefile"
44053
44054
44055 ac_config_commands="$ac_config_commands wx-config
44056 "
a848cd7e
SC
44057
44058
9103d280
RL
44059
44060
a848cd7e
SC
44061if test "$wxUSE_GUI" = "yes"; then
44062 SUBDIRS="samples demos utils contrib"
44063else SUBDIRS="samples utils"
44064fi
44065
44066
44067
44068# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44069if test "${with_cppunit_prefix+set}" = set; then
44070 withval="$with_cppunit_prefix"
44071 cppunit_config_prefix="$withval"
44072else
44073 cppunit_config_prefix=""
44074fi;
44075
44076# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44077if test "${with_cppunit_exec_prefix+set}" = set; then
44078 withval="$with_cppunit_exec_prefix"
44079 cppunit_config_exec_prefix="$withval"
44080else
44081 cppunit_config_exec_prefix=""
44082fi;
44083
44084 if test x$cppunit_config_exec_prefix != x ; then
44085 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44086 if test x${CPPUNIT_CONFIG+set} != xset ; then
44087 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44088 fi
44089 fi
44090 if test x$cppunit_config_prefix != x ; then
44091 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44092 if test x${CPPUNIT_CONFIG+set} != xset ; then
44093 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44094 fi
44095 fi
44096
44097 # Extract the first word of "cppunit-config", so it can be a program name with args.
44098set dummy cppunit-config; ac_word=$2
44099echo "$as_me:$LINENO: checking for $ac_word" >&5
44100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44101if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44102 echo $ECHO_N "(cached) $ECHO_C" >&6
44103else
44104 case $CPPUNIT_CONFIG in
44105 [\\/]* | ?:[\\/]*)
44106 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44107 ;;
44108 *)
44109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44110for as_dir in $PATH
44111do
44112 IFS=$as_save_IFS
44113 test -z "$as_dir" && as_dir=.
44114 for ac_exec_ext in '' $ac_executable_extensions; do
44115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44116 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44118 break 2
44119 fi
44120done
44121done
44122
44123 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44124 ;;
44125esac
44126fi
44127CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44128
44129if test -n "$CPPUNIT_CONFIG"; then
44130 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44131echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
44132else
44133 echo "$as_me:$LINENO: result: no" >&5
44134echo "${ECHO_T}no" >&6
44135fi
44136
44137 cppunit_version_min=1.8.0
44138
44139 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
44140echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
44141 no_cppunit=""
44142 if test "$CPPUNIT_CONFIG" = "no" ; then
44143 no_cppunit=yes
44144 else
44145 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
44146 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
44147 cppunit_version=`$CPPUNIT_CONFIG --version`
44148
44149 cppunit_major_version=`echo $cppunit_version | \
44150 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44151 cppunit_minor_version=`echo $cppunit_version | \
44152 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44153 cppunit_micro_version=`echo $cppunit_version | \
44154 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44155
44156 cppunit_major_min=`echo $cppunit_version_min | \
44157 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44158 cppunit_minor_min=`echo $cppunit_version_min | \
44159 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44160 cppunit_micro_min=`echo $cppunit_version_min | \
44161 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44162
44163 cppunit_version_proper=`expr \
44164 $cppunit_major_version \> $cppunit_major_min \| \
44165 $cppunit_major_version \= $cppunit_major_min \& \
44166 $cppunit_minor_version \> $cppunit_minor_min \| \
44167 $cppunit_major_version \= $cppunit_major_min \& \
44168 $cppunit_minor_version \= $cppunit_minor_min \& \
44169 $cppunit_micro_version \>= $cppunit_micro_min `
44170
44171 if test "$cppunit_version_proper" = "1" ; then
44172 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
44173echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
44174 else
44175 echo "$as_me:$LINENO: result: no" >&5
44176echo "${ECHO_T}no" >&6
44177 no_cppunit=yes
44178 fi
44179 fi
44180
44181 if test "x$no_cppunit" = x ; then
c2218763 44182 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
44183 else
44184 CPPUNIT_CFLAGS=""
44185 CPPUNIT_LIBS=""
c2218763 44186 :
a848cd7e
SC
44187 fi
44188
44189
44190
44191
44192
44193for subdir in `echo $SUBDIRS`; do
44194 if test -d ${srcdir}/${subdir} ; then
44195 if test "$wxUSE_GUI" = "yes"; then
44196 if test ${subdir} = "samples"; then
44197 makefiles="samples/Makefile.in $makefiles"
44198 for sample in `echo $SAMPLES_SUBDIRS`; do
44199 if test -d $srcdir/samples/$sample; then
44200 makefiles="samples/$sample/Makefile.in $makefiles"
44201 fi
44202 done
9c112555
MW
44203 else
44204 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
44205 eval "disabled=\$$disabled_var"
44206 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
44207 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
44208 fi
44209 else if test ${subdir} = "samples"; then
44210 makefiles="samples/Makefile.in samples/console/Makefile.in"
44211 elif test ${subdir} = "utils"; then
6537ccf8
VS
44212 makefiles=""
44213 for util in HelpGen tex2rtf ; do
44214 if test -d $srcdir/utils/$util ; then
44215 makefiles="utils/$util/Makefile.in \
44216 utils/$util/src/Makefile.in \
44217 $makefiles"
44218 fi
44219 done
a848cd7e
SC
44220 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
44221 fi
44222 fi
44223
44224 for mkin in $makefiles ; do
44225 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44226 ac_config_files="$ac_config_files $mk"
44227
44228 done
44229 fi
44230done
44231
44232
44233cat >confcache <<\_ACEOF
44234# This file is a shell script that caches the results of configure
44235# tests run on this system so they can be shared between configure
44236# scripts and configure runs, see configure's option --config-cache.
44237# It is not useful on other systems. If it contains results you don't
44238# want to keep, you may remove or edit it.
44239#
44240# config.status only pays attention to the cache file if you give it
44241# the --recheck option to rerun configure.
44242#
44243# `ac_cv_env_foo' variables (set or unset) will be overridden when
44244# loading this file, other *unset* `ac_cv_foo' will be assigned the
44245# following values.
44246
44247_ACEOF
44248
44249# The following way of writing the cache mishandles newlines in values,
44250# but we know of no workaround that is simple, portable, and efficient.
44251# So, don't put newlines in cache variables' values.
44252# Ultrix sh set writes to stderr and can't be redirected directly,
44253# and sets the high bit in the cache file unless we assign to the vars.
44254{
44255 (set) 2>&1 |
44256 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44257 *ac_space=\ *)
44258 # `set' does not quote correctly, so add quotes (double-quote
44259 # substitution turns \\\\ into \\, and sed turns \\ into \).
44260 sed -n \
ac1cb8d3
VS
44261 "s/'/'\\\\''/g;
44262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
44263 ;;
44264 *)
44265 # `set' quotes correctly as required by POSIX, so do not add quotes.
44266 sed -n \
ac1cb8d3 44267 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
44268 ;;
44269 esac;
44270} |
44271 sed '
44272 t clear
44273 : clear
44274 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44275 t end
44276 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44277 : end' >>confcache
44278if diff $cache_file confcache >/dev/null 2>&1; then :; else
44279 if test -w $cache_file; then
44280 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44281 cat confcache >$cache_file
44282 else
44283 echo "not updating unwritable cache $cache_file"
44284 fi
44285fi
44286rm -f confcache
44287
44288test "x$prefix" = xNONE && prefix=$ac_default_prefix
44289# Let make expand exec_prefix.
44290test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44291
44292# VPATH may cause trouble with some makes, so we remove $(srcdir),
44293# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44294# trailing colons and then remove the whole line if VPATH becomes empty
44295# (actually we leave an empty line to preserve line numbers).
44296if test "x$srcdir" = x.; then
ac1cb8d3 44297 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
44298s/:*\$(srcdir):*/:/;
44299s/:*\${srcdir}:*/:/;
44300s/:*@srcdir@:*/:/;
ac1cb8d3 44301s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 44302s/:*$//;
ac1cb8d3 44303s/^[^=]*=[ ]*$//;
a848cd7e
SC
44304}'
44305fi
44306
44307DEFS=-DHAVE_CONFIG_H
44308
44309ac_libobjs=
44310ac_ltlibobjs=
44311for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44312 # 1. Remove the extension, and $U if already installed.
44313 ac_i=`echo "$ac_i" |
ac1cb8d3 44314 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
44315 # 2. Add them.
44316 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44317 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44318done
44319LIBOBJS=$ac_libobjs
44320
44321LTLIBOBJS=$ac_ltlibobjs
44322
44323
44324
44325: ${CONFIG_STATUS=./config.status}
44326ac_clean_files_save=$ac_clean_files
44327ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44328{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44329echo "$as_me: creating $CONFIG_STATUS" >&6;}
44330cat >$CONFIG_STATUS <<_ACEOF
44331#! $SHELL
44332# Generated by $as_me.
44333# Run this file to recreate the current configuration.
44334# Compiler output produced by configure, useful for debugging
44335# configure, is in config.log if it exists.
44336
44337debug=false
44338ac_cs_recheck=false
44339ac_cs_silent=false
44340SHELL=\${CONFIG_SHELL-$SHELL}
44341_ACEOF
44342
44343cat >>$CONFIG_STATUS <<\_ACEOF
44344## --------------------- ##
44345## M4sh Initialization. ##
44346## --------------------- ##
44347
44348# Be Bourne compatible
44349if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44350 emulate sh
44351 NULLCMD=:
44352 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44353 # is contrary to our usage. Disable this feature.
44354 alias -g '${1+"$@"}'='"$@"'
44355elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44356 set -o posix
44357fi
ac1cb8d3 44358DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
44359
44360# Support unset when possible.
ac1cb8d3 44361if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
44362 as_unset=unset
44363else
44364 as_unset=false
44365fi
44366
44367
44368# Work around bugs in pre-3.0 UWIN ksh.
44369$as_unset ENV MAIL MAILPATH
44370PS1='$ '
44371PS2='> '
44372PS4='+ '
44373
44374# NLS nuisances.
44375for as_var in \
44376 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44377 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44378 LC_TELEPHONE LC_TIME
44379do
ac1cb8d3 44380 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
44381 eval $as_var=C; export $as_var
44382 else
44383 $as_unset $as_var
44384 fi
44385done
44386
44387# Required to use basename.
44388if expr a : '\(a\)' >/dev/null 2>&1; then
44389 as_expr=expr
44390else
44391 as_expr=false
44392fi
44393
44394if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44395 as_basename=basename
44396else
44397 as_basename=false
44398fi
44399
44400
44401# Name of the executable.
44402as_me=`$as_basename "$0" ||
44403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44404 X"$0" : 'X\(//\)$' \| \
44405 X"$0" : 'X\(/\)$' \| \
44406 . : '\(.\)' 2>/dev/null ||
44407echo X/"$0" |
44408 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44409 /^X\/\(\/\/\)$/{ s//\1/; q; }
44410 /^X\/\(\/\).*/{ s//\1/; q; }
44411 s/.*/./; q'`
44412
44413
44414# PATH needs CR, and LINENO needs CR and PATH.
44415# Avoid depending upon Character Ranges.
44416as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44417as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44418as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44419as_cr_digits='0123456789'
44420as_cr_alnum=$as_cr_Letters$as_cr_digits
44421
44422# The user is always right.
44423if test "${PATH_SEPARATOR+set}" != set; then
44424 echo "#! /bin/sh" >conf$$.sh
44425 echo "exit 0" >>conf$$.sh
44426 chmod +x conf$$.sh
44427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44428 PATH_SEPARATOR=';'
44429 else
44430 PATH_SEPARATOR=:
44431 fi
44432 rm -f conf$$.sh
44433fi
44434
44435
44436 as_lineno_1=$LINENO
44437 as_lineno_2=$LINENO
44438 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44439 test "x$as_lineno_1" != "x$as_lineno_2" &&
44440 test "x$as_lineno_3" = "x$as_lineno_2" || {
44441 # Find who we are. Look in the path if we contain no path at all
44442 # relative or not.
44443 case $0 in
44444 *[\\/]* ) as_myself=$0 ;;
44445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44446for as_dir in $PATH
44447do
44448 IFS=$as_save_IFS
44449 test -z "$as_dir" && as_dir=.
44450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44451done
44452
44453 ;;
44454 esac
44455 # We did not find ourselves, most probably we were run as `sh COMMAND'
44456 # in which case we are not to be found in the path.
44457 if test "x$as_myself" = x; then
44458 as_myself=$0
44459 fi
44460 if test ! -f "$as_myself"; then
44461 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44462echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44463 { (exit 1); exit 1; }; }
44464 fi
44465 case $CONFIG_SHELL in
44466 '')
44467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44468for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44469do
44470 IFS=$as_save_IFS
44471 test -z "$as_dir" && as_dir=.
44472 for as_base in sh bash ksh sh5; do
44473 case $as_dir in
44474 /*)
44475 if ("$as_dir/$as_base" -c '
44476 as_lineno_1=$LINENO
44477 as_lineno_2=$LINENO
44478 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44479 test "x$as_lineno_1" != "x$as_lineno_2" &&
44480 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44481 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44482 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44483 CONFIG_SHELL=$as_dir/$as_base
44484 export CONFIG_SHELL
44485 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44486 fi;;
44487 esac
44488 done
44489done
44490;;
44491 esac
44492
44493 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44494 # uniformly replaced by the line number. The first 'sed' inserts a
44495 # line-number line before each line; the second 'sed' does the real
44496 # work. The second script uses 'N' to pair each line-number line
44497 # with the numbered line, and appends trailing '-' during
44498 # substitution so that $LINENO is not a special case at line end.
44499 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44500 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44501 sed '=' <$as_myself |
44502 sed '
44503 N
44504 s,$,-,
44505 : loop
44506 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44507 t loop
44508 s,-$,,
44509 s,^['$as_cr_digits']*\n,,
44510 ' >$as_me.lineno &&
44511 chmod +x $as_me.lineno ||
44512 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44513echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44514 { (exit 1); exit 1; }; }
44515
44516 # Don't try to exec as it changes $[0], causing all sort of problems
44517 # (the dirname of $[0] is not the place where we might find the
44518 # original and so on. Autoconf is especially sensible to this).
44519 . ./$as_me.lineno
44520 # Exit status is that of the last command.
44521 exit
44522}
44523
44524
44525case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44526 *c*,-n*) ECHO_N= ECHO_C='
44527' ECHO_T=' ' ;;
44528 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44529 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44530esac
44531
44532if expr a : '\(a\)' >/dev/null 2>&1; then
44533 as_expr=expr
44534else
44535 as_expr=false
44536fi
44537
44538rm -f conf$$ conf$$.exe conf$$.file
44539echo >conf$$.file
44540if ln -s conf$$.file conf$$ 2>/dev/null; then
44541 # We could just check for DJGPP; but this test a) works b) is more generic
44542 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44543 if test -f conf$$.exe; then
44544 # Don't use ln at all; we don't have any links
44545 as_ln_s='cp -p'
44546 else
44547 as_ln_s='ln -s'
44548 fi
44549elif ln conf$$.file conf$$ 2>/dev/null; then
44550 as_ln_s=ln
44551else
44552 as_ln_s='cp -p'
44553fi
44554rm -f conf$$ conf$$.exe conf$$.file
44555
44556if mkdir -p . 2>/dev/null; then
44557 as_mkdir_p=:
44558else
ac1cb8d3 44559 test -d ./-p && rmdir ./-p
a848cd7e
SC
44560 as_mkdir_p=false
44561fi
44562
44563as_executable_p="test -f"
44564
44565# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44566as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44567
44568# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44569as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44570
44571
44572# IFS
44573# We need space, tab and new line, in precisely that order.
44574as_nl='
44575'
44576IFS=" $as_nl"
44577
44578# CDPATH.
44579$as_unset CDPATH
44580
44581exec 6>&1
44582
44583# Open the log real soon, to keep \$[0] and so on meaningful, and to
44584# report actual input values of CONFIG_FILES etc. instead of their
44585# values after options handling. Logging --version etc. is OK.
44586exec 5>>config.log
44587{
44588 echo
44589 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44590## Running $as_me. ##
44591_ASBOX
44592} >&5
44593cat >&5 <<_CSEOF
44594
d230c01b 44595This file was extended by wxWidgets $as_me 2.6.1, which was
ac1cb8d3 44596generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
44597
44598 CONFIG_FILES = $CONFIG_FILES
44599 CONFIG_HEADERS = $CONFIG_HEADERS
44600 CONFIG_LINKS = $CONFIG_LINKS
44601 CONFIG_COMMANDS = $CONFIG_COMMANDS
44602 $ $0 $@
44603
44604_CSEOF
44605echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44606echo >&5
44607_ACEOF
44608
44609# Files that config.status was made for.
44610if test -n "$ac_config_files"; then
44611 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44612fi
44613
44614if test -n "$ac_config_headers"; then
44615 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44616fi
44617
44618if test -n "$ac_config_links"; then
44619 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44620fi
44621
44622if test -n "$ac_config_commands"; then
44623 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44624fi
44625
44626cat >>$CONFIG_STATUS <<\_ACEOF
44627
44628ac_cs_usage="\
44629\`$as_me' instantiates files from templates according to the
44630current configuration.
44631
44632Usage: $0 [OPTIONS] [FILE]...
44633
44634 -h, --help print this help, then exit
44635 -V, --version print version number, then exit
44636 -q, --quiet do not print progress messages
44637 -d, --debug don't remove temporary files
44638 --recheck update $as_me by reconfiguring in the same conditions
44639 --file=FILE[:TEMPLATE]
ac1cb8d3 44640 instantiate the configuration file FILE
a848cd7e 44641 --header=FILE[:TEMPLATE]
ac1cb8d3 44642 instantiate the configuration header FILE
a848cd7e
SC
44643
44644Configuration files:
44645$config_files
44646
44647Configuration headers:
44648$config_headers
44649
44650Configuration commands:
44651$config_commands
44652
44653Report bugs to <bug-autoconf@gnu.org>."
44654_ACEOF
44655
44656cat >>$CONFIG_STATUS <<_ACEOF
44657ac_cs_version="\\
d230c01b 44658wxWidgets config.status 2.6.1
ac1cb8d3 44659configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44660 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44661
ac1cb8d3 44662Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44663This config.status script is free software; the Free Software Foundation
44664gives unlimited permission to copy, distribute and modify it."
44665srcdir=$srcdir
44666INSTALL="$INSTALL"
44667_ACEOF
44668
44669cat >>$CONFIG_STATUS <<\_ACEOF
44670# If no file are specified by the user, then we need to provide default
44671# value. By we need to know if files were specified by the user.
44672ac_need_defaults=:
44673while test $# != 0
44674do
44675 case $1 in
44676 --*=*)
44677 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44678 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44679 ac_shift=:
44680 ;;
44681 -*)
44682 ac_option=$1
44683 ac_optarg=$2
44684 ac_shift=shift
44685 ;;
44686 *) # This is not an option, so the user has probably given explicit
44687 # arguments.
44688 ac_option=$1
44689 ac_need_defaults=false;;
44690 esac
44691
44692 case $ac_option in
44693 # Handling of the options.
44694_ACEOF
44695cat >>$CONFIG_STATUS <<\_ACEOF
44696 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44697 ac_cs_recheck=: ;;
44698 --version | --vers* | -V )
44699 echo "$ac_cs_version"; exit 0 ;;
44700 --he | --h)
44701 # Conflict between --help and --header
44702 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44703Try \`$0 --help' for more information." >&5
44704echo "$as_me: error: ambiguous option: $1
44705Try \`$0 --help' for more information." >&2;}
44706 { (exit 1); exit 1; }; };;
44707 --help | --hel | -h )
44708 echo "$ac_cs_usage"; exit 0 ;;
44709 --debug | --d* | -d )
44710 debug=: ;;
44711 --file | --fil | --fi | --f )
44712 $ac_shift
44713 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44714 ac_need_defaults=false;;
44715 --header | --heade | --head | --hea )
44716 $ac_shift
44717 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44718 ac_need_defaults=false;;
44719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44720 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44721 ac_cs_silent=: ;;
44722
44723 # This is an error.
44724 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44725Try \`$0 --help' for more information." >&5
44726echo "$as_me: error: unrecognized option: $1
44727Try \`$0 --help' for more information." >&2;}
44728 { (exit 1); exit 1; }; } ;;
44729
44730 *) ac_config_targets="$ac_config_targets $1" ;;
44731
44732 esac
44733 shift
44734done
44735
44736ac_configure_extra_args=
44737
44738if $ac_cs_silent; then
44739 exec 6>/dev/null
44740 ac_configure_extra_args="$ac_configure_extra_args --silent"
44741fi
44742
44743_ACEOF
44744cat >>$CONFIG_STATUS <<_ACEOF
44745if \$ac_cs_recheck; then
44746 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44747 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44748fi
44749
44750_ACEOF
44751
44752cat >>$CONFIG_STATUS <<_ACEOF
44753#
44754# INIT-COMMANDS section.
44755#
44756
ceec2216
RL
44757 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44758 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44759 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44760 LN_S="${LN_S}"
a848cd7e
SC
44761
44762
44763_ACEOF
44764
44765
44766
44767cat >>$CONFIG_STATUS <<\_ACEOF
44768for ac_config_target in $ac_config_targets
44769do
44770 case "$ac_config_target" in
44771 # Handling of arguments.
ceec2216
RL
44772 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44773 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44774 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44775 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44776 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44777 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44778 "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
44779 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44780echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44781 { (exit 1); exit 1; }; };;
44782 esac
44783done
44784
44785# If the user did not use the arguments to specify the items to instantiate,
44786# then the envvar interface is used. Set only those that are not.
44787# We use the long form for the default assignment because of an extremely
44788# bizarre bug on SunOS 4.1.3.
44789if $ac_need_defaults; then
44790 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44791 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44792 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44793fi
44794
44795# Have a temporary directory for convenience. Make it in the build tree
44796# simply because there is no reason to put it here, and in addition,
44797# creating and moving files from /tmp can sometimes cause problems.
44798# Create a temporary directory, and hook for its removal unless debugging.
44799$debug ||
44800{
44801 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44802 trap '{ (exit 1); exit 1; }' 1 2 13 15
44803}
44804
44805# Create a (secure) tmp directory for tmp files.
44806
44807{
44808 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44809 test -n "$tmp" && test -d "$tmp"
44810} ||
44811{
44812 tmp=./confstat$$-$RANDOM
44813 (umask 077 && mkdir $tmp)
44814} ||
44815{
44816 echo "$me: cannot create a temporary directory in ." >&2
44817 { (exit 1); exit 1; }
44818}
44819
44820_ACEOF
44821
44822cat >>$CONFIG_STATUS <<_ACEOF
44823
44824#
44825# CONFIG_FILES section.
44826#
44827
44828# No need to generate the scripts if there are no CONFIG_FILES.
44829# This happens for instance when ./config.status config.h
44830if test -n "\$CONFIG_FILES"; then
44831 # Protect against being on the right side of a sed subst in config.status.
44832 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44833 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44834s,@SHELL@,$SHELL,;t t
44835s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44836s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44837s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44838s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44839s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44840s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44841s,@exec_prefix@,$exec_prefix,;t t
44842s,@prefix@,$prefix,;t t
44843s,@program_transform_name@,$program_transform_name,;t t
44844s,@bindir@,$bindir,;t t
44845s,@sbindir@,$sbindir,;t t
44846s,@libexecdir@,$libexecdir,;t t
44847s,@datadir@,$datadir,;t t
44848s,@sysconfdir@,$sysconfdir,;t t
44849s,@sharedstatedir@,$sharedstatedir,;t t
44850s,@localstatedir@,$localstatedir,;t t
44851s,@libdir@,$libdir,;t t
44852s,@includedir@,$includedir,;t t
44853s,@oldincludedir@,$oldincludedir,;t t
44854s,@infodir@,$infodir,;t t
44855s,@mandir@,$mandir,;t t
44856s,@build_alias@,$build_alias,;t t
44857s,@host_alias@,$host_alias,;t t
44858s,@target_alias@,$target_alias,;t t
44859s,@DEFS@,$DEFS,;t t
44860s,@ECHO_C@,$ECHO_C,;t t
44861s,@ECHO_N@,$ECHO_N,;t t
44862s,@ECHO_T@,$ECHO_T,;t t
44863s,@LIBS@,$LIBS,;t t
44864s,@build@,$build,;t t
44865s,@build_cpu@,$build_cpu,;t t
44866s,@build_vendor@,$build_vendor,;t t
44867s,@build_os@,$build_os,;t t
44868s,@host@,$host,;t t
44869s,@host_cpu@,$host_cpu,;t t
44870s,@host_vendor@,$host_vendor,;t t
44871s,@host_os@,$host_os,;t t
44872s,@target@,$target,;t t
44873s,@target_cpu@,$target_cpu,;t t
44874s,@target_vendor@,$target_vendor,;t t
44875s,@target_os@,$target_os,;t t
44876s,@CC@,$CC,;t t
44877s,@CFLAGS@,$CFLAGS,;t t
44878s,@LDFLAGS@,$LDFLAGS,;t t
44879s,@CPPFLAGS@,$CPPFLAGS,;t t
44880s,@ac_ct_CC@,$ac_ct_CC,;t t
44881s,@EXEEXT@,$EXEEXT,;t t
44882s,@OBJEXT@,$OBJEXT,;t t
44883s,@CPP@,$CPP,;t t
44884s,@EGREP@,$EGREP,;t t
44885s,@CXX@,$CXX,;t t
44886s,@CXXFLAGS@,$CXXFLAGS,;t t
44887s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44888s,@RANLIB@,$RANLIB,;t t
44889s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44890s,@AR@,$AR,;t t
44891s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44892s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44893s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44894s,@STRIP@,$STRIP,;t t
44895s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44896s,@LN_S@,$LN_S,;t t
44897s,@CXXCPP@,$CXXCPP,;t t
44898s,@subdirs@,$subdirs,;t t
44899s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44900s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44901s,@GTK_LIBS@,$GTK_LIBS,;t t
44902s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44903s,@X_CFLAGS@,$X_CFLAGS,;t t
44904s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44905s,@X_LIBS@,$X_LIBS,;t t
44906s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44907s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44908s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44909s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44910s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44911s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44912s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44913s,@RESCOMP@,$RESCOMP,;t t
44914s,@DEREZ@,$DEREZ,;t t
44915s,@SETFILE@,$SETFILE,;t t
44916s,@LIBICONV@,$LIBICONV,;t t
44917s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44918s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44919s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44920s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44921s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44922s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44923s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44924s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44925s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44926s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44927s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44928s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44929s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44930s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44931s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44932s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44933s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44934s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44935s,@VENDOR@,$VENDOR,;t t
44936s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44937s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44938s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44939s,@WXUNIV@,$WXUNIV,;t t
44940s,@MONOLITHIC@,$MONOLITHIC,;t t
44941s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44942s,@EXTRALIBS@,$EXTRALIBS,;t t
44943s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44944s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44945s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44946s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44947s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44948s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44949s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44950s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44951s,@UNICODE@,$UNICODE,;t t
44952s,@BUILD@,$BUILD,;t t
44953s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44954s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44955s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44956s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44957s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44958s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44959s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44960s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44961s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44962s,@SET_MAKE@,$SET_MAKE,;t t
44963s,@MAKE_SET@,$MAKE_SET,;t t
44964s,@ac_ct_AR@,$ac_ct_AR,;t t
44965s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44966s,@NM@,$NM,;t t
44967s,@ac_ct_NM@,$ac_ct_NM,;t t
44968s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44969s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44970s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44971s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44972s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44973s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44974s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44975s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44976s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44977s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44978s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44979s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44980s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44981s,@LIBPREFIX@,$LIBPREFIX,;t t
44982s,@LIBEXT@,$LIBEXT,;t t
44983s,@DLLPREFIX@,$DLLPREFIX,;t t
44984s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44985s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44986s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44987s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44988s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44989s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44990s,@PIC_FLAG@,$PIC_FLAG,;t t
44991s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44992s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44993s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44994s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44995s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44996s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44997s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44998s,@GCC_PCH@,$GCC_PCH,;t t
44999s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45000s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45001s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45002s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45003s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45004s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45005s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45006s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45007s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45008s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45009s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45010s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45011s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45012s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45013s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45014s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45015s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45016s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45017s,@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 45018s,@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 45019s,@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 45020s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45021s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45022s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45023s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45024s,@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 45025s,@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 45026s,@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 45027s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45028s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45029s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45030s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45031s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45032s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45033s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45034s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
45035s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45036s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45037s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45038s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45039s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45040s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45041s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45042s,@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
45043s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45044s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45045s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45046s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45047s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e 45048s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45049s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45050s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45051s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45052s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45053s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45054s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45055s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45056s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45057s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
45058s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45059s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45060s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45061s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45062s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45063s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45064s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52ada004 45065s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45066s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45067s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45068s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45069s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45070s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45071s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52ada004 45072s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45073s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45074s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45075s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45076s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45077s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45078s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45079s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45080s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45081s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45082s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45083s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45084s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45085s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45086s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45087s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45088s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45089s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45090s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45091s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45092s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45093s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45094s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45095s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45096s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45097s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45098s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45099s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45100s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45101s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45102s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45103s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45104s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45105s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45106s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45107s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45108s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 45109s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 45110s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45111s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45112s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45113s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
45114s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
45115s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45116s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45117s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45118s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45119s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45120s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 45121s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45122s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45123s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45124s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45125s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
45126s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
45127s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
45128s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
45129s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
45130s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 45131s,@SHARED@,$SHARED,;t t
a848cd7e
SC
45132s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
45133s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
45134s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
45135s,@USE_GUI@,$USE_GUI,;t t
45136s,@AFMINSTALL@,$AFMINSTALL,;t t
45137s,@WIN32INSTALL@,$WIN32INSTALL,;t t
45138s,@TOOLKIT@,$TOOLKIT,;t t
45139s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 45140s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 45141s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
45142s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
45143s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 45144s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
45145s,@WIDGET_SET@,$WIDGET_SET,;t t
45146s,@WX_RELEASE@,$WX_RELEASE,;t t
45147s,@WX_VERSION@,$WX_VERSION,;t t
45148s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
45149s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
45150s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 45151s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
45152s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
45153s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
45154s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
45155s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
45156s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
45157s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 45158s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 45159s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
45160s,@DISTDIR@,$DISTDIR,;t t
45161s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
45162s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
45163s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
45164s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
45165s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
45166s,@RESFLAGS@,$RESFLAGS,;t t
45167s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
45168s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
45169s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
45170s,@LIBWXMACRES@,$LIBWXMACRES,;t t
45171s,@MACRESCOMP@,$MACRESCOMP,;t t
45172s,@MACSETFILE@,$MACSETFILE,;t t
45173s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
45174s,@GCC@,$GCC,;t t
a848cd7e 45175s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
45176s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
45177s,@LIBOBJS@,$LIBOBJS,;t t
45178s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45179CEOF
45180
45181_ACEOF
45182
45183 cat >>$CONFIG_STATUS <<\_ACEOF
45184 # Split the substitutions into bite-sized pieces for seds with
45185 # small command number limits, like on Digital OSF/1 and HP-UX.
45186 ac_max_sed_lines=48
45187 ac_sed_frag=1 # Number of current file.
45188 ac_beg=1 # First line for current file.
45189 ac_end=$ac_max_sed_lines # Line after last line for current file.
45190 ac_more_lines=:
45191 ac_sed_cmds=
45192 while $ac_more_lines; do
45193 if test $ac_beg -gt 1; then
45194 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45195 else
45196 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45197 fi
45198 if test ! -s $tmp/subs.frag; then
45199 ac_more_lines=false
45200 else
45201 # The purpose of the label and of the branching condition is to
45202 # speed up the sed processing (if there are no `@' at all, there
45203 # is no need to browse any of the substitutions).
45204 # These are the two extra sed commands mentioned above.
45205 (echo ':t
45206 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45207 if test -z "$ac_sed_cmds"; then
ac1cb8d3 45208 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 45209 else
ac1cb8d3 45210 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
45211 fi
45212 ac_sed_frag=`expr $ac_sed_frag + 1`
45213 ac_beg=$ac_end
45214 ac_end=`expr $ac_end + $ac_max_sed_lines`
45215 fi
45216 done
45217 if test -z "$ac_sed_cmds"; then
45218 ac_sed_cmds=cat
45219 fi
45220fi # test -n "$CONFIG_FILES"
45221
45222_ACEOF
45223cat >>$CONFIG_STATUS <<\_ACEOF
45224for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45225 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45226 case $ac_file in
45227 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45228 cat >$tmp/stdin
45229 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45230 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45231 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45232 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45233 * ) ac_file_in=$ac_file.in ;;
45234 esac
45235
45236 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45237 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45238$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45239 X"$ac_file" : 'X\(//\)[^/]' \| \
45240 X"$ac_file" : 'X\(//\)$' \| \
45241 X"$ac_file" : 'X\(/\)' \| \
45242 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45243echo X"$ac_file" |
45244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45246 /^X\(\/\/\)$/{ s//\1/; q; }
45247 /^X\(\/\).*/{ s//\1/; q; }
45248 s/.*/./; q'`
45249 { if $as_mkdir_p; then
45250 mkdir -p "$ac_dir"
45251 else
45252 as_dir="$ac_dir"
45253 as_dirs=
45254 while test ! -d "$as_dir"; do
45255 as_dirs="$as_dir $as_dirs"
45256 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45257$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45258 X"$as_dir" : 'X\(//\)[^/]' \| \
45259 X"$as_dir" : 'X\(//\)$' \| \
45260 X"$as_dir" : 'X\(/\)' \| \
45261 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45262echo X"$as_dir" |
45263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45265 /^X\(\/\/\)$/{ s//\1/; q; }
45266 /^X\(\/\).*/{ s//\1/; q; }
45267 s/.*/./; q'`
45268 done
45269 test ! -n "$as_dirs" || mkdir $as_dirs
45270 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45271echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45272 { (exit 1); exit 1; }; }; }
45273
45274 ac_builddir=.
45275
45276if test "$ac_dir" != .; then
45277 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45278 # A "../" for each directory in $ac_dir_suffix.
45279 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45280else
45281 ac_dir_suffix= ac_top_builddir=
45282fi
45283
45284case $srcdir in
45285 .) # No --srcdir option. We are building in place.
45286 ac_srcdir=.
45287 if test -z "$ac_top_builddir"; then
45288 ac_top_srcdir=.
45289 else
45290 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45291 fi ;;
45292 [\\/]* | ?:[\\/]* ) # Absolute path.
45293 ac_srcdir=$srcdir$ac_dir_suffix;
45294 ac_top_srcdir=$srcdir ;;
45295 *) # Relative path.
45296 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45297 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45298esac
ac1cb8d3
VS
45299
45300# Do not use `cd foo && pwd` to compute absolute paths, because
45301# the directories may not exist.
45302case `pwd` in
45303.) ac_abs_builddir="$ac_dir";;
45304*)
45305 case "$ac_dir" in
45306 .) ac_abs_builddir=`pwd`;;
45307 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45308 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45309 esac;;
45310esac
45311case $ac_abs_builddir in
45312.) ac_abs_top_builddir=${ac_top_builddir}.;;
45313*)
45314 case ${ac_top_builddir}. in
45315 .) ac_abs_top_builddir=$ac_abs_builddir;;
45316 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45317 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45318 esac;;
45319esac
45320case $ac_abs_builddir in
45321.) ac_abs_srcdir=$ac_srcdir;;
45322*)
45323 case $ac_srcdir in
45324 .) ac_abs_srcdir=$ac_abs_builddir;;
45325 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45326 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45327 esac;;
45328esac
45329case $ac_abs_builddir in
45330.) ac_abs_top_srcdir=$ac_top_srcdir;;
45331*)
45332 case $ac_top_srcdir in
45333 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45334 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45335 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45336 esac;;
45337esac
a848cd7e
SC
45338
45339
45340 case $INSTALL in
45341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45342 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45343 esac
45344
a848cd7e
SC
45345 # Let's still pretend it is `configure' which instantiates (i.e., don't
45346 # use $as_me), people would be surprised to read:
45347 # /* config.h. Generated by config.status. */
45348 if test x"$ac_file" = x-; then
45349 configure_input=
45350 else
45351 configure_input="$ac_file. "
45352 fi
45353 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 45354 sed 's,.*/,,'` by configure."
a848cd7e
SC
45355
45356 # First look for the input files in the build tree, otherwise in the
45357 # src tree.
45358 ac_file_inputs=`IFS=:
45359 for f in $ac_file_in; do
45360 case $f in
45361 -) echo $tmp/stdin ;;
45362 [\\/$]*)
ac1cb8d3
VS
45363 # Absolute (can't be DOS-style, as IFS=:)
45364 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45365echo "$as_me: error: cannot find input file: $f" >&2;}
45366 { (exit 1); exit 1; }; }
ac1cb8d3 45367 echo "$f";;
a848cd7e 45368 *) # Relative
ac1cb8d3
VS
45369 if test -f "$f"; then
45370 # Build tree
45371 echo "$f"
45372 elif test -f "$srcdir/$f"; then
45373 # Source tree
45374 echo "$srcdir/$f"
45375 else
45376 # /dev/null tree
45377 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45378echo "$as_me: error: cannot find input file: $f" >&2;}
45379 { (exit 1); exit 1; }; }
ac1cb8d3 45380 fi;;
a848cd7e
SC
45381 esac
45382 done` || { (exit 1); exit 1; }
8c539582
RL
45383
45384 if test x"$ac_file" != x-; then
45385 { echo "$as_me:$LINENO: creating $ac_file" >&5
45386echo "$as_me: creating $ac_file" >&6;}
45387 rm -f "$ac_file"
45388 fi
a848cd7e
SC
45389_ACEOF
45390cat >>$CONFIG_STATUS <<_ACEOF
45391 sed "$ac_vpsub
45392$extrasub
45393_ACEOF
45394cat >>$CONFIG_STATUS <<\_ACEOF
45395:t
45396/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45397s,@configure_input@,$configure_input,;t t
45398s,@srcdir@,$ac_srcdir,;t t
45399s,@abs_srcdir@,$ac_abs_srcdir,;t t
45400s,@top_srcdir@,$ac_top_srcdir,;t t
45401s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45402s,@builddir@,$ac_builddir,;t t
45403s,@abs_builddir@,$ac_abs_builddir,;t t
45404s,@top_builddir@,$ac_top_builddir,;t t
45405s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45406s,@INSTALL@,$ac_INSTALL,;t t
45407" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45408 rm -f $tmp/stdin
45409 if test x"$ac_file" != x-; then
45410 mv $tmp/out $ac_file
45411 else
45412 cat $tmp/out
45413 rm -f $tmp/out
45414 fi
45415
ceec2216
RL
45416 # Run the commands associated with the file.
45417 case $ac_file in
45418 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
45419 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
45420 esac
a848cd7e
SC
45421done
45422_ACEOF
45423cat >>$CONFIG_STATUS <<\_ACEOF
45424
45425#
45426# CONFIG_HEADER section.
45427#
45428
45429# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45430# NAME is the cpp macro being defined and VALUE is the value it is being given.
45431#
45432# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
45433ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45434ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
45435ac_dC=' '
45436ac_dD=',;t'
45437# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 45438ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
45439ac_uB='$,\1#\2define\3'
45440ac_uC=' '
45441ac_uD=',;t'
45442
45443for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45444 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45445 case $ac_file in
45446 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45447 cat >$tmp/stdin
45448 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45450 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45451 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45452 * ) ac_file_in=$ac_file.in ;;
45453 esac
45454
45455 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45456echo "$as_me: creating $ac_file" >&6;}
45457
45458 # First look for the input files in the build tree, otherwise in the
45459 # src tree.
45460 ac_file_inputs=`IFS=:
45461 for f in $ac_file_in; do
45462 case $f in
45463 -) echo $tmp/stdin ;;
45464 [\\/$]*)
ac1cb8d3
VS
45465 # Absolute (can't be DOS-style, as IFS=:)
45466 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45467echo "$as_me: error: cannot find input file: $f" >&2;}
45468 { (exit 1); exit 1; }; }
ac1cb8d3
VS
45469 # Do quote $f, to prevent DOS paths from being IFS'd.
45470 echo "$f";;
a848cd7e 45471 *) # Relative
ac1cb8d3
VS
45472 if test -f "$f"; then
45473 # Build tree
45474 echo "$f"
45475 elif test -f "$srcdir/$f"; then
45476 # Source tree
45477 echo "$srcdir/$f"
45478 else
45479 # /dev/null tree
45480 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45481echo "$as_me: error: cannot find input file: $f" >&2;}
45482 { (exit 1); exit 1; }; }
ac1cb8d3 45483 fi;;
a848cd7e
SC
45484 esac
45485 done` || { (exit 1); exit 1; }
45486 # Remove the trailing spaces.
ac1cb8d3 45487 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
45488
45489_ACEOF
45490
45491# Transform confdefs.h into two sed scripts, `conftest.defines' and
45492# `conftest.undefs', that substitutes the proper values into
45493# config.h.in to produce config.h. The first handles `#define'
45494# templates, and the second `#undef' templates.
45495# And first: Protect against being on the right side of a sed subst in
45496# config.status. Protect against being in an unquoted here document
45497# in config.status.
45498rm -f conftest.defines conftest.undefs
45499# Using a here document instead of a string reduces the quoting nightmare.
45500# Putting comments in sed scripts is not portable.
45501#
45502# `end' is used to avoid that the second main sed command (meant for
45503# 0-ary CPP macros) applies to n-ary macro definitions.
45504# See the Autoconf documentation for `clear'.
45505cat >confdef2sed.sed <<\_ACEOF
45506s/[\\&,]/\\&/g
45507s,[\\$`],\\&,g
45508t clear
45509: clear
ac1cb8d3 45510s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45511t end
ac1cb8d3 45512s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45513: end
45514_ACEOF
45515# If some macros were called several times there might be several times
45516# the same #defines, which is useless. Nevertheless, we may not want to
45517# sort them, since we want the *last* AC-DEFINE to be honored.
45518uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45519sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45520rm -f confdef2sed.sed
45521
45522# This sed command replaces #undef with comments. This is necessary, for
45523# example, in the case of _POSIX_SOURCE, which is predefined and required
45524# on some systems where configure will not decide to define it.
45525cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45526s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45527_ACEOF
45528
45529# Break up conftest.defines because some shells have a limit on the size
45530# of here documents, and old seds have small limits too (100 cmds).
45531echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45532echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45533echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45534echo ' :' >>$CONFIG_STATUS
45535rm -f conftest.tail
45536while grep . conftest.defines >/dev/null
45537do
45538 # Write a limited-size here document to $tmp/defines.sed.
45539 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45540 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45541 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45542 # Work around the forget-to-reset-the-flag bug.
45543 echo 't clr' >>$CONFIG_STATUS
45544 echo ': clr' >>$CONFIG_STATUS
45545 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45546 echo 'CEOF
45547 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45548 rm -f $tmp/in
45549 mv $tmp/out $tmp/in
45550' >>$CONFIG_STATUS
45551 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45552 rm -f conftest.defines
45553 mv conftest.tail conftest.defines
45554done
45555rm -f conftest.defines
45556echo ' fi # grep' >>$CONFIG_STATUS
45557echo >>$CONFIG_STATUS
45558
45559# Break up conftest.undefs because some shells have a limit on the size
45560# of here documents, and old seds have small limits too (100 cmds).
45561echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45562rm -f conftest.tail
45563while grep . conftest.undefs >/dev/null
45564do
45565 # Write a limited-size here document to $tmp/undefs.sed.
45566 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45567 # Speed up: don't consider the non `#undef'
ac1cb8d3 45568 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45569 # Work around the forget-to-reset-the-flag bug.
45570 echo 't clr' >>$CONFIG_STATUS
45571 echo ': clr' >>$CONFIG_STATUS
45572 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45573 echo 'CEOF
45574 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45575 rm -f $tmp/in
45576 mv $tmp/out $tmp/in
45577' >>$CONFIG_STATUS
45578 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45579 rm -f conftest.undefs
45580 mv conftest.tail conftest.undefs
45581done
45582rm -f conftest.undefs
45583
45584cat >>$CONFIG_STATUS <<\_ACEOF
45585 # Let's still pretend it is `configure' which instantiates (i.e., don't
45586 # use $as_me), people would be surprised to read:
45587 # /* config.h. Generated by config.status. */
45588 if test x"$ac_file" = x-; then
45589 echo "/* Generated by configure. */" >$tmp/config.h
45590 else
45591 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45592 fi
45593 cat $tmp/in >>$tmp/config.h
45594 rm -f $tmp/in
45595 if test x"$ac_file" != x-; then
45596 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45597 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45598echo "$as_me: $ac_file is unchanged" >&6;}
45599 else
45600 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45601$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45602 X"$ac_file" : 'X\(//\)[^/]' \| \
45603 X"$ac_file" : 'X\(//\)$' \| \
45604 X"$ac_file" : 'X\(/\)' \| \
45605 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45606echo X"$ac_file" |
45607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45609 /^X\(\/\/\)$/{ s//\1/; q; }
45610 /^X\(\/\).*/{ s//\1/; q; }
45611 s/.*/./; q'`
45612 { if $as_mkdir_p; then
45613 mkdir -p "$ac_dir"
45614 else
45615 as_dir="$ac_dir"
45616 as_dirs=
45617 while test ! -d "$as_dir"; do
45618 as_dirs="$as_dir $as_dirs"
45619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45620$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45621 X"$as_dir" : 'X\(//\)[^/]' \| \
45622 X"$as_dir" : 'X\(//\)$' \| \
45623 X"$as_dir" : 'X\(/\)' \| \
45624 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45625echo X"$as_dir" |
45626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45628 /^X\(\/\/\)$/{ s//\1/; q; }
45629 /^X\(\/\).*/{ s//\1/; q; }
45630 s/.*/./; q'`
45631 done
45632 test ! -n "$as_dirs" || mkdir $as_dirs
45633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45634echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45635 { (exit 1); exit 1; }; }; }
45636
45637 rm -f $ac_file
45638 mv $tmp/config.h $ac_file
45639 fi
45640 else
45641 cat $tmp/config.h
45642 rm -f $tmp/config.h
45643 fi
45644done
45645_ACEOF
45646cat >>$CONFIG_STATUS <<\_ACEOF
45647
45648#
45649# CONFIG_COMMANDS section.
45650#
45651for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45652 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45653 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45654 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45655$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45656 X"$ac_dest" : 'X\(//\)[^/]' \| \
45657 X"$ac_dest" : 'X\(//\)$' \| \
45658 X"$ac_dest" : 'X\(/\)' \| \
45659 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45660echo X"$ac_dest" |
45661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45663 /^X\(\/\/\)$/{ s//\1/; q; }
45664 /^X\(\/\).*/{ s//\1/; q; }
45665 s/.*/./; q'`
ac1cb8d3
VS
45666 { if $as_mkdir_p; then
45667 mkdir -p "$ac_dir"
45668 else
45669 as_dir="$ac_dir"
45670 as_dirs=
45671 while test ! -d "$as_dir"; do
45672 as_dirs="$as_dir $as_dirs"
45673 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45674$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45675 X"$as_dir" : 'X\(//\)[^/]' \| \
45676 X"$as_dir" : 'X\(//\)$' \| \
45677 X"$as_dir" : 'X\(/\)' \| \
45678 . : '\(.\)' 2>/dev/null ||
45679echo X"$as_dir" |
45680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45682 /^X\(\/\/\)$/{ s//\1/; q; }
45683 /^X\(\/\).*/{ s//\1/; q; }
45684 s/.*/./; q'`
45685 done
45686 test ! -n "$as_dirs" || mkdir $as_dirs
45687 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45688echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45689 { (exit 1); exit 1; }; }; }
45690
a848cd7e
SC
45691 ac_builddir=.
45692
45693if test "$ac_dir" != .; then
45694 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45695 # A "../" for each directory in $ac_dir_suffix.
45696 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45697else
45698 ac_dir_suffix= ac_top_builddir=
45699fi
45700
45701case $srcdir in
45702 .) # No --srcdir option. We are building in place.
45703 ac_srcdir=.
45704 if test -z "$ac_top_builddir"; then
45705 ac_top_srcdir=.
45706 else
45707 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45708 fi ;;
45709 [\\/]* | ?:[\\/]* ) # Absolute path.
45710 ac_srcdir=$srcdir$ac_dir_suffix;
45711 ac_top_srcdir=$srcdir ;;
45712 *) # Relative path.
45713 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45714 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45715esac
ac1cb8d3
VS
45716
45717# Do not use `cd foo && pwd` to compute absolute paths, because
45718# the directories may not exist.
45719case `pwd` in
45720.) ac_abs_builddir="$ac_dir";;
45721*)
45722 case "$ac_dir" in
45723 .) ac_abs_builddir=`pwd`;;
45724 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45725 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45726 esac;;
45727esac
45728case $ac_abs_builddir in
45729.) ac_abs_top_builddir=${ac_top_builddir}.;;
45730*)
45731 case ${ac_top_builddir}. in
45732 .) ac_abs_top_builddir=$ac_abs_builddir;;
45733 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45734 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45735 esac;;
45736esac
45737case $ac_abs_builddir in
45738.) ac_abs_srcdir=$ac_srcdir;;
45739*)
45740 case $ac_srcdir in
45741 .) ac_abs_srcdir=$ac_abs_builddir;;
45742 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45743 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45744 esac;;
45745esac
45746case $ac_abs_builddir in
45747.) ac_abs_top_srcdir=$ac_top_srcdir;;
45748*)
45749 case $ac_top_srcdir in
45750 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45751 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45752 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45753 esac;;
45754esac
a848cd7e
SC
45755
45756
45757 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45758echo "$as_me: executing $ac_dest commands" >&6;}
45759 case $ac_dest in
ceec2216
RL
45760 wx-config ) rm -f wx-config
45761 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45762 ;;
a848cd7e
SC
45763 esac
45764done
45765_ACEOF
45766
45767cat >>$CONFIG_STATUS <<\_ACEOF
45768
45769{ (exit 0); exit 0; }
45770_ACEOF
45771chmod +x $CONFIG_STATUS
45772ac_clean_files=$ac_clean_files_save
45773
45774
45775# configure is writing to config.log, and then calls config.status.
45776# config.status does its own redirection, appending to config.log.
45777# Unfortunately, on DOS this fails, as config.log is still kept open
45778# by configure, so config.status won't be able to write to it; its
45779# output is simply discarded. So we exec the FD to /dev/null,
45780# effectively closing config.log, so it can be properly (re)opened and
45781# appended to by config.status. When coming back to configure, we
45782# need to make the FD available again.
45783if test "$no_create" != yes; then
45784 ac_cs_success=:
45785 ac_config_status_args=
45786 test "$silent" = yes &&
45787 ac_config_status_args="$ac_config_status_args --quiet"
45788 exec 5>/dev/null
45789 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45790 exec 5>>config.log
45791 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45792 # would make configure fail if this is the last instruction.
45793 $ac_cs_success || { (exit 1); exit 1; }
45794fi
45795
45796#
45797# CONFIG_SUBDIRS section.
45798#
45799if test "$no_recursion" != yes; then
45800
45801 # Remove --cache-file and --srcdir arguments so they do not pile up.
45802 ac_sub_configure_args=
45803 ac_prev=
45804 for ac_arg in $ac_configure_args; do
45805 if test -n "$ac_prev"; then
45806 ac_prev=
45807 continue
45808 fi
45809 case $ac_arg in
45810 -cache-file | --cache-file | --cache-fil | --cache-fi \
45811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45812 ac_prev=cache_file ;;
45813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45815 | --c=*)
45816 ;;
45817 --config-cache | -C)
45818 ;;
45819 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45820 ac_prev=srcdir ;;
45821 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45822 ;;
45823 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45824 ac_prev=prefix ;;
45825 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45826 ;;
45827 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45828 esac
45829 done
45830
45831 # Always prepend --prefix to ensure using the same prefix
45832 # in subdir configurations.
45833 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45834
45835 ac_popdir=`pwd`
45836 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45837
45838 # Do not complain, so a configure script can configure whichever
45839 # parts of a large source tree are present.
45840 test -d $srcdir/$ac_dir || continue
45841
45842 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45843echo "$as_me: configuring in $ac_dir" >&6;}
45844 { if $as_mkdir_p; then
45845 mkdir -p "$ac_dir"
45846 else
45847 as_dir="$ac_dir"
45848 as_dirs=
45849 while test ! -d "$as_dir"; do
45850 as_dirs="$as_dir $as_dirs"
45851 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45852$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45853 X"$as_dir" : 'X\(//\)[^/]' \| \
45854 X"$as_dir" : 'X\(//\)$' \| \
45855 X"$as_dir" : 'X\(/\)' \| \
45856 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45857echo X"$as_dir" |
45858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45860 /^X\(\/\/\)$/{ s//\1/; q; }
45861 /^X\(\/\).*/{ s//\1/; q; }
45862 s/.*/./; q'`
45863 done
45864 test ! -n "$as_dirs" || mkdir $as_dirs
45865 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45866echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45867 { (exit 1); exit 1; }; }; }
45868
45869 ac_builddir=.
45870
45871if test "$ac_dir" != .; then
45872 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45873 # A "../" for each directory in $ac_dir_suffix.
45874 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45875else
45876 ac_dir_suffix= ac_top_builddir=
45877fi
45878
45879case $srcdir in
45880 .) # No --srcdir option. We are building in place.
45881 ac_srcdir=.
45882 if test -z "$ac_top_builddir"; then
45883 ac_top_srcdir=.
45884 else
45885 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45886 fi ;;
45887 [\\/]* | ?:[\\/]* ) # Absolute path.
45888 ac_srcdir=$srcdir$ac_dir_suffix;
45889 ac_top_srcdir=$srcdir ;;
45890 *) # Relative path.
45891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45892 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45893esac
ac1cb8d3
VS
45894
45895# Do not use `cd foo && pwd` to compute absolute paths, because
45896# the directories may not exist.
45897case `pwd` in
45898.) ac_abs_builddir="$ac_dir";;
45899*)
45900 case "$ac_dir" in
45901 .) ac_abs_builddir=`pwd`;;
45902 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45903 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45904 esac;;
45905esac
45906case $ac_abs_builddir in
45907.) ac_abs_top_builddir=${ac_top_builddir}.;;
45908*)
45909 case ${ac_top_builddir}. in
45910 .) ac_abs_top_builddir=$ac_abs_builddir;;
45911 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45912 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45913 esac;;
45914esac
45915case $ac_abs_builddir in
45916.) ac_abs_srcdir=$ac_srcdir;;
45917*)
45918 case $ac_srcdir in
45919 .) ac_abs_srcdir=$ac_abs_builddir;;
45920 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45921 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45922 esac;;
45923esac
45924case $ac_abs_builddir in
45925.) ac_abs_top_srcdir=$ac_top_srcdir;;
45926*)
45927 case $ac_top_srcdir in
45928 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45929 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45930 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45931 esac;;
45932esac
a848cd7e
SC
45933
45934
45935 cd $ac_dir
45936
45937 # Check for guested configure; otherwise get Cygnus style configure.
45938 if test -f $ac_srcdir/configure.gnu; then
45939 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45940 elif test -f $ac_srcdir/configure; then
45941 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45942 elif test -f $ac_srcdir/configure.in; then
45943 ac_sub_configure=$ac_configure
45944 else
45945 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45946echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45947 ac_sub_configure=
45948 fi
45949
45950 # The recursion is here.
45951 if test -n "$ac_sub_configure"; then
45952 # Make the cache file name correct relative to the subdirectory.
45953 case $cache_file in
45954 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45955 *) # Relative path.
ac1cb8d3 45956 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45957 esac
45958
45959 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45960echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45961 # The eval makes quoting arguments work.
45962 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45963 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45964 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45965echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45966 { (exit 1); exit 1; }; }
45967 fi
45968
8c539582 45969 cd "$ac_popdir"
a848cd7e
SC
45970 done
45971fi
45972
45973
45974echo
77ffb593 45975echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45976echo ""
4d4ff94c 45977echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45978echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45979
77ffb593
JS
45980echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45981echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45982echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45983
77ffb593
JS
45984echo " What level of wxWidgets compatibility should be enabled?"
45985echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45986echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45987
77ffb593 45988echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45989echo " jpeg ${wxUSE_LIBJPEG-none}"
45990echo " png ${wxUSE_LIBPNG-none}"
45991echo " regex ${wxUSE_REGEX}"
45992echo " tiff ${wxUSE_LIBTIFF-none}"
45993if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45994echo " xpm ${wxUSE_LIBXPM-none}"
45995fi
45996echo " zlib ${wxUSE_ZLIB}"
45997echo " odbc ${wxUSE_ODBC}"
45998echo " expat ${wxUSE_EXPAT}"
45999echo " libmspack ${wxUSE_LIBMSPACK}"
46000echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46001echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46002
46003echo ""
46004