]> git.saurik.com Git - wxWidgets.git/blame - configure
Add support for wxSL_INVERSE using gtk_range_set_inverted
[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.
7714864e 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3.
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'
7714864e
RL
273PACKAGE_VERSION='2.5.3'
274PACKAGE_STRING='wxWidgets 2.5.3'
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"
1e6eb025 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 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_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_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_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_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_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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 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
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
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
9f45f08e 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
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
a848cd7e
SC
908 --enable-cmdline use wxCmdLineParser class
909 --enable-datetime use wxDateTime class
910 --enable-dialupman use dialup network classes
911 --enable-dynlib use wxLibrary class for DLL loading
912 --enable-dynamicloader use (new) wxDynamicLibrary class
913 --enable-exceptions build exception-safe library
914 --enable-ffile use wxFFile class
915 --enable-file use wxFile class
916 --enable-filesystem use virtual file systems classes
917 --enable-fontmap use font encodings conversion classes
918 --enable-fs_inet use virtual HTTP/FTP filesystems
919 --enable-fs_zip use virtual ZIP filesystems
920 --enable-geometry use geometry class
921 --enable-log use logging system
922 --enable-longlong use wxLongLong class
923 --enable-mimetype use wxMimeTypesManager
924 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
925 --enable-snglinst use wxSingleInstanceChecker class
926 --enable-streams use wxStream etc classes
927 --enable-std_iostreams use standard C++ stream classes
928 --enable-stopwatch use wxStopWatch class
929 --enable-sysoptions use wxSystemOptions
930 --enable-textbuf use wxTextBuffer class
931 --enable-textfile use wxTextFile class
932 --enable-timer use wxTimer class
933 --enable-unicode compile wxString with Unicode support
934 --enable-sound use wxSound class
3b57de8b 935 --enable-mediactrl use wxMediaCtrl class
77ffb593 936 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 937 --enable-zipstream use wxZipInputStream
a848cd7e
SC
938 --enable-url use wxURL class
939 --enable-protocol use wxProtocol class
940 --enable-protocol-http HTTP support in wxProtocol
941 --enable-protocol-ftp FTP support in wxProtocol
942 --enable-protocol-file FILE support in wxProtocol
943 --enable-threads use threads
944 --enable-docview use document view architecture
945 --enable-help use help subsystem
946 --enable-mshtmlhelp use MS HTML Help (win32)
947 --enable-html use wxHTML sub-library
948 --enable-htmlhelp use wxHTML-based help
9a8f0513 949 --enable-xrc use XRC resources sub-library
a848cd7e
SC
950 --enable-constraints use layout-constraints system
951 --enable-printarch use printing architecture
952 --enable-mdi use multiple document interface architecture
8a7b1113 953 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
954 --enable-loggui use standard GUI logger
955 --enable-logwin use wxLogWindow
956 --enable-logdialog use wxLogDialog
646b6ec1 957 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
958 --enable-postscript use wxPostscriptDC device context (default for gtk+)
959 --enable-prologio not available; see contrib
960 --enable-resources not available; see contrib
961 --enable-clipboard use wxClipboard class
962 --enable-dnd use Drag'n'Drop classes
963 --enable-metafile use win32 metafiles
964 --enable-controls use all usual controls
965 --enable-accel use accelerators
966 --enable-button use wxButton class
967 --enable-bmpbutton use wxBitmapButton class
968 --enable-calendar use wxCalendarCtrl class
969 --enable-caret use wxCaret class
970 --enable-checkbox use wxCheckBox class
971 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
972 --enable-choice use wxChoice class
92bbdbcd 973 --enable-choicebook use wxChoicebook class
a848cd7e
SC
974 --enable-combobox use wxComboBox class
975 --enable-display use wxDisplay class
976 --enable-gauge use wxGauge class
977 --enable-grid use wxGrid class
978 --enable-imaglist use wxImageList class
979 --enable-listbook use wxListbook class
980 --enable-listbox use wxListBox class
981 --enable-listctrl use wxListCtrl class
982 --enable-notebook use wxNotebook class
983 --enable-radiobox use wxRadioBox class
984 --enable-radiobtn use wxRadioButton class
985 --enable-sash use wxSashWindow class
986 --enable-scrollbar use wxScrollBar class and scrollable windows
987 --enable-slider use wxSlider class
988 --enable-spinbtn use wxSpinButton class
989 --enable-spinctrl use wxSpinCtrl class
990 --enable-splitter use wxSplitterWindow class
991 --enable-statbmp use wxStaticBitmap class
992 --enable-statbox use wxStaticBox class
993 --enable-statline use wxStaticLine class
994 --enable-stattext use wxStaticText class
995 --enable-statusbar use wxStatusBar class
996 --enable-tabdialog use wxTabControl class
997 --enable-textctrl use wxTextCtrl class
998 --enable-togglebtn use wxToggleButton class
999 --enable-toolbar use wxToolBar class
1000 --enable-tbarnative use native wxToolBar class
1001 --enable-tbarsmpl use wxToolBarSimple class
1002 --enable-treectrl use wxTreeCtrl class
1003 --enable-tipwindow use wxTipWindow class
1004 --enable-popupwin use wxPopUpWindow class
1005 --enable-commondlg use all common dialogs
1006 --enable-choicedlg use wxChoiceDialog
1007 --enable-coldlg use wxColourDialog
1008 --enable-filedlg use wxFileDialog
1009 --enable-finddlg use wxFindReplaceDialog
1010 --enable-fontdlg use wxFontDialog
1011 --enable-dirdlg use wxDirDialog
1012 --enable-msgdlg use wxMessageDialog
1013 --enable-numberdlg use wxNumberEntryDialog
1014 --enable-splash use wxSplashScreen
1015 --enable-textdlg use wxTextDialog
1016 --enable-tipdlg use startup tips
1017 --enable-progressdlg use wxProgressDialog
1018 --enable-wizarddlg use wxWizard
1019 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1020 --enable-miniframe use wxMiniFrame class
1021 --enable-tooltips use wxToolTip class
1022 --enable-splines use spline drawing code
1023 --enable-validators use wxValidator and derived classes
1024 --enable-busyinfo use wxBusyInfo
1025 --enable-joystick use wxJoystick (Linux only)
1026 --enable-metafiles use wxMetaFile (Windows only)
1027 --enable-dragimage use wxDragImage
1028 --enable-accessibility enable accessibility support
1029 --enable-palette use wxPalette class
1030 --enable-image use wxImage class
1031 --enable-gif use gif images (GIF file format)
1032 --enable-pcx use pcx images (PCX file format)
1033 --enable-iff use iff images (IFF file format)
1034 --enable-pnm use pnm images (PNM file format)
1035 --enable-xpm use xpm images (XPM file format)
1036 --enable-icocur use Windows ICO and CUR formats
77ffb593 1037 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1038 --enable-vendor=VENDOR vendor name (win32 DLL only)
1039 --disable-largefile omit support for large files
1040 --disable-gtktest do not try to compile and run a test GTK+ program
1041 --disable-gtktest Do not try to compile and run a test GTK program
1042 --disable-sdltest Do not try to compile and run a test SDL program
1043 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1044 --disable-precomp-headers
1045 don't use precompiled headers even if compiler can
a848cd7e
SC
1046
1047Optional Packages:
1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050 --with-gtk use GTK+
1051 --with-motif use Motif/Lesstif
1052 --with-mac use Mac OS X
1053 --with-cocoa use Cocoa
1054 --with-wine use Wine
1055 --with-msw use MS-Windows
1056 --with-pm use OS/2 Presentation Manager
1057 --with-mgl use SciTech MGL
1058 --with-microwin use MicroWindows
1059 --with-x11 use X11
1060 --with-libpng use libpng (PNG image format)
1061 --with-libjpeg use libjpeg (JPEG file format)
1062 --with-libtiff use libtiff (TIFF file format)
1063 --with-libxpm use libxpm (XPM file format)
1064 --with-libmspack use libmspack (CHM help files loading)
1065 --with-sdl use SDL for audio on Unix
d51253e8 1066 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1067 --with-opengl use OpenGL (or Mesa)
1068 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1069 --with-regex enable support for wxRegEx class
1070 --with-zlib use zlib for LZW compression
1071 --with-odbc use the IODBC and wxODBC classes
1072 --with-expat enable XML support using expat parser
ceec2216 1073 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1074 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1075 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1076 --with-x use the X Window System
1077 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1078 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1079 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1080 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1081 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1082
1083Some influential environment variables:
dcc1b6ad
VS
1084 CC C compiler command
1085 CFLAGS C compiler flags
1086 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1087 nonstandard directory <lib dir>
1088 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1089 headers in a nonstandard directory <include dir>
1090 CPP C preprocessor
1091 CXX C++ compiler command
1092 CXXFLAGS C++ compiler flags
1093 CXXCPP C++ preprocessor
a848cd7e
SC
1094
1095Use these variables to override the choices made by `configure' or to help
1096it to find libraries and programs with nonstandard names/locations.
1097
77ffb593 1098Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1099_ACEOF
1100fi
1101
1102if test "$ac_init_help" = "recursive"; then
1103 # If there are subdirs, report their specific --help.
1104 ac_popdir=`pwd`
1105 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1106 test -d $ac_dir || continue
1107 ac_builddir=.
1108
1109if test "$ac_dir" != .; then
1110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1111 # A "../" for each directory in $ac_dir_suffix.
1112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1113else
1114 ac_dir_suffix= ac_top_builddir=
1115fi
1116
1117case $srcdir in
1118 .) # No --srcdir option. We are building in place.
1119 ac_srcdir=.
1120 if test -z "$ac_top_builddir"; then
1121 ac_top_srcdir=.
1122 else
1123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1124 fi ;;
1125 [\\/]* | ?:[\\/]* ) # Absolute path.
1126 ac_srcdir=$srcdir$ac_dir_suffix;
1127 ac_top_srcdir=$srcdir ;;
1128 *) # Relative path.
1129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1130 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131esac
ac1cb8d3
VS
1132
1133# Do not use `cd foo && pwd` to compute absolute paths, because
1134# the directories may not exist.
1135case `pwd` in
1136.) ac_abs_builddir="$ac_dir";;
1137*)
1138 case "$ac_dir" in
1139 .) ac_abs_builddir=`pwd`;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1141 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1142 esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_builddir=${ac_top_builddir}.;;
1146*)
1147 case ${ac_top_builddir}. in
1148 .) ac_abs_top_builddir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151 esac;;
1152esac
1153case $ac_abs_builddir in
1154.) ac_abs_srcdir=$ac_srcdir;;
1155*)
1156 case $ac_srcdir in
1157 .) ac_abs_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160 esac;;
1161esac
1162case $ac_abs_builddir in
1163.) ac_abs_top_srcdir=$ac_top_srcdir;;
1164*)
1165 case $ac_top_srcdir in
1166 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1169 esac;;
1170esac
a848cd7e
SC
1171
1172 cd $ac_dir
1173 # Check for guested configure; otherwise get Cygnus style configure.
1174 if test -f $ac_srcdir/configure.gnu; then
1175 echo
1176 $SHELL $ac_srcdir/configure.gnu --help=recursive
1177 elif test -f $ac_srcdir/configure; then
1178 echo
1179 $SHELL $ac_srcdir/configure --help=recursive
1180 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1181 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1182 echo
1183 $ac_configure --help
1184 else
1185 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1186 fi
da4486fb 1187 cd "$ac_popdir"
a848cd7e
SC
1188 done
1189fi
1190
1191test -n "$ac_init_help" && exit 0
1192if $ac_init_version; then
1193 cat <<\_ACEOF
7714864e 1194wxWidgets configure 2.5.3
ac1cb8d3 1195generated by GNU Autoconf 2.59
a848cd7e 1196
ac1cb8d3 1197Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1198This configure script is free software; the Free Software Foundation
1199gives unlimited permission to copy, distribute and modify it.
1200_ACEOF
1201 exit 0
1202fi
1203exec 5>config.log
1204cat >&5 <<_ACEOF
1205This file contains any messages produced by compilers while
1206running configure, to aid debugging if configure makes a mistake.
1207
7714864e 1208It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1209generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1210
1211 $ $0 $@
1212
1213_ACEOF
1214{
1215cat <<_ASUNAME
1216## --------- ##
1217## Platform. ##
1218## --------- ##
1219
1220hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1221uname -m = `(uname -m) 2>/dev/null || echo unknown`
1222uname -r = `(uname -r) 2>/dev/null || echo unknown`
1223uname -s = `(uname -s) 2>/dev/null || echo unknown`
1224uname -v = `(uname -v) 2>/dev/null || echo unknown`
1225
1226/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1227/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1228
1229/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1230/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1231/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1232hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1233/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1234/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1235/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1236
1237_ASUNAME
1238
1239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1240for as_dir in $PATH
1241do
1242 IFS=$as_save_IFS
1243 test -z "$as_dir" && as_dir=.
1244 echo "PATH: $as_dir"
1245done
1246
1247} >&5
1248
1249cat >&5 <<_ACEOF
1250
1251
1252## ----------- ##
1253## Core tests. ##
1254## ----------- ##
1255
1256_ACEOF
1257
1258
1259# Keep a trace of the command line.
1260# Strip out --no-create and --no-recursion so they do not pile up.
1261# Strip out --silent because we don't want to record it for future runs.
1262# Also quote any args containing shell meta-characters.
1263# Make two passes to allow for proper duplicate-argument suppression.
1264ac_configure_args=
1265ac_configure_args0=
1266ac_configure_args1=
1267ac_sep=
1268ac_must_keep_next=false
1269for ac_pass in 1 2
1270do
1271 for ac_arg
1272 do
1273 case $ac_arg in
1274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1277 continue ;;
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 esac
1281 case $ac_pass in
1282 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1283 2)
1284 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1285 if test $ac_must_keep_next = true; then
ac1cb8d3 1286 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1287 else
ac1cb8d3
VS
1288 case $ac_arg in
1289 *=* | --config-cache | -C | -disable-* | --disable-* \
1290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1292 | -with-* | --with-* | -without-* | --without-* | --x)
1293 case "$ac_configure_args0 " in
1294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1295 esac
1296 ;;
1297 -* ) ac_must_keep_next=true ;;
1298 esac
a848cd7e
SC
1299 fi
1300 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1301 # Get rid of the leading space.
1302 ac_sep=" "
1303 ;;
1304 esac
1305 done
1306done
1307$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1308$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1309
1310# When interrupted or exit'd, cleanup temporary files, and complete
1311# config.log. We remove comments because anyway the quotes in there
1312# would cause problems or look ugly.
1313# WARNING: Be sure not to use single quotes in there, as some shells,
1314# such as our DU 5.0 friend, will then `close' the trap.
1315trap 'exit_status=$?
1316 # Save into config.log some information that might help in debugging.
1317 {
1318 echo
1319
1320 cat <<\_ASBOX
1321## ---------------- ##
1322## Cache variables. ##
1323## ---------------- ##
1324_ASBOX
1325 echo
1326 # The following way of writing the cache mishandles newlines in values,
1327{
1328 (set) 2>&1 |
1329 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1330 *ac_space=\ *)
1331 sed -n \
ac1cb8d3
VS
1332 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1334 ;;
1335 *)
1336 sed -n \
ac1cb8d3 1337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1338 ;;
1339 esac;
1340}
1341 echo
1342
1343 cat <<\_ASBOX
1344## ----------------- ##
1345## Output variables. ##
1346## ----------------- ##
1347_ASBOX
1348 echo
1349 for ac_var in $ac_subst_vars
1350 do
1351 eval ac_val=$`echo $ac_var`
1352 echo "$ac_var='"'"'$ac_val'"'"'"
1353 done | sort
1354 echo
1355
1356 if test -n "$ac_subst_files"; then
1357 cat <<\_ASBOX
1358## ------------- ##
1359## Output files. ##
1360## ------------- ##
1361_ASBOX
1362 echo
1363 for ac_var in $ac_subst_files
1364 do
1365 eval ac_val=$`echo $ac_var`
ac1cb8d3 1366 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1367 done | sort
1368 echo
1369 fi
1370
1371 if test -s confdefs.h; then
1372 cat <<\_ASBOX
1373## ----------- ##
1374## confdefs.h. ##
1375## ----------- ##
1376_ASBOX
1377 echo
1378 sed "/^$/d" confdefs.h | sort
1379 echo
1380 fi
1381 test "$ac_signal" != 0 &&
1382 echo "$as_me: caught signal $ac_signal"
1383 echo "$as_me: exit $exit_status"
1384 } >&5
ac1cb8d3 1385 rm -f core *.core &&
a848cd7e
SC
1386 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1387 exit $exit_status
1388 ' 0
1389for ac_signal in 1 2 13 15; do
1390 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1391done
1392ac_signal=0
1393
1394# confdefs.h avoids OS command line length limits that DEFS can exceed.
1395rm -rf conftest* confdefs.h
1396# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1397echo >confdefs.h
1398
1399# Predefined preprocessor variables.
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_NAME "$PACKAGE_NAME"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_VERSION "$PACKAGE_VERSION"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_STRING "$PACKAGE_STRING"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1423_ACEOF
1424
1425
1426# Let the site file select an alternate cache file if it wants to.
1427# Prefer explicitly selected file to automatically selected ones.
1428if test -z "$CONFIG_SITE"; then
1429 if test "x$prefix" != xNONE; then
1430 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1431 else
1432 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1433 fi
1434fi
1435for ac_site_file in $CONFIG_SITE; do
1436 if test -r "$ac_site_file"; then
1437 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1438echo "$as_me: loading site script $ac_site_file" >&6;}
1439 sed 's/^/| /' "$ac_site_file" >&5
1440 . "$ac_site_file"
1441 fi
1442done
1443
1444if test -r "$cache_file"; then
1445 # Some versions of bash will fail to source /dev/null (special
1446 # files actually), so we avoid doing that.
1447 if test -f "$cache_file"; then
1448 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1449echo "$as_me: loading cache $cache_file" >&6;}
1450 case $cache_file in
1451 [\\/]* | ?:[\\/]* ) . $cache_file;;
1452 *) . ./$cache_file;;
1453 esac
1454 fi
1455else
1456 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1457echo "$as_me: creating cache $cache_file" >&6;}
1458 >$cache_file
1459fi
1460
1461# Check that the precious variables saved in the cache have kept the same
1462# value.
1463ac_cache_corrupted=false
1464for ac_var in `(set) 2>&1 |
ac1cb8d3 1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467 eval ac_new_set=\$ac_env_${ac_var}_set
1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469 eval ac_new_val="\$ac_env_${ac_var}_value"
1470 case $ac_old_set,$ac_new_set in
1471 set,)
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1475 ,set)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,);;
1480 *)
1481 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1482 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1483echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1484 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1485echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1486 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1487echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1488 ac_cache_corrupted=:
a848cd7e
SC
1489 fi;;
1490 esac
1491 # Pass precious variables to config.status.
1492 if test "$ac_new_set" = set; then
1493 case $ac_new_val in
1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 *) ac_arg=$ac_var=$ac_new_val ;;
1497 esac
1498 case " $ac_configure_args " in
1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501 esac
1502 fi
1503done
1504if $ac_cache_corrupted; then
1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509 { (exit 1); exit 1; }; }
1510fi
1511
1512ac_ext=c
1513ac_cpp='$CPP $CPPFLAGS'
1514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547ac_aux_dir=
1548for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1549 if test -f $ac_dir/install-sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install-sh -c"
1552 break
1553 elif test -f $ac_dir/install.sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install.sh -c"
1556 break
1557 elif test -f $ac_dir/shtool; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/shtool install -c"
1560 break
1561 fi
1562done
1563if test -z "$ac_aux_dir"; then
1564 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1565echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1566 { (exit 1); exit 1; }; }
1567fi
1568ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1571
1572# Make sure we can run config.sub.
1573$ac_config_sub sun4 >/dev/null 2>&1 ||
1574 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1575echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578echo "$as_me:$LINENO: checking build system type" >&5
1579echo $ECHO_N "checking build system type... $ECHO_C" >&6
1580if test "${ac_cv_build+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583 ac_cv_build_alias=$build_alias
1584test -z "$ac_cv_build_alias" &&
1585 ac_cv_build_alias=`$ac_config_guess`
1586test -z "$ac_cv_build_alias" &&
1587 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1588echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1589 { (exit 1); exit 1; }; }
1590ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1592echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1594
1595fi
1596echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1597echo "${ECHO_T}$ac_cv_build" >&6
1598build=$ac_cv_build
1599build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602
1603
1604echo "$as_me:$LINENO: checking host system type" >&5
1605echo $ECHO_N "checking host system type... $ECHO_C" >&6
1606if test "${ac_cv_host+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608else
1609 ac_cv_host_alias=$host_alias
1610test -z "$ac_cv_host_alias" &&
1611 ac_cv_host_alias=$ac_cv_build_alias
1612ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1614echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1616
1617fi
1618echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1619echo "${ECHO_T}$ac_cv_host" >&6
1620host=$ac_cv_host
1621host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624
1625
1626echo "$as_me:$LINENO: checking target system type" >&5
1627echo $ECHO_N "checking target system type... $ECHO_C" >&6
1628if test "${ac_cv_target+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 ac_cv_target_alias=$target_alias
1632test "x$ac_cv_target_alias" = "x" &&
1633 ac_cv_target_alias=$ac_cv_host_alias
1634ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1636echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639fi
1640echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1641echo "${ECHO_T}$ac_cv_target" >&6
1642target=$ac_cv_target
1643target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648# The aliases save the names the user supplied, while $host etc.
1649# will get canonicalized.
1650test -n "$target_alias" &&
1651 test "$program_prefix$program_suffix$program_transform_name" = \
1652 NONENONEs,x,x, &&
1653 program_prefix=${target_alias}-
1654
1655
1656
ceec2216
RL
1657wx_major_version_number=2
1658wx_minor_version_number=5
7714864e 1659wx_release_number=3
0210f373 1660wx_subrelease_number=3
a848cd7e 1661
ceec2216
RL
1662WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1663WX_VERSION=$WX_RELEASE.$wx_release_number
1664WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1665
ceec2216 1666WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1667
e653e181 1668WX_CURRENT=3
a848cd7e 1669WX_REVISION=0
0210f373 1670WX_AGE=3
a848cd7e
SC
1671
1672
1673
1674USE_UNIX=1
1675USE_OS2=0
1676USE_WIN32=0
1677USE_DOS=0
1678USE_BEOS=0
1679USE_MAC=0
1680
1681USE_AIX=
1682USE_BSD= USE_DARWIN= USE_FREEBSD=
1683USE_GNU= USE_HPUX=
1684USE_LINUX=
1685USE_NETBSD=
1686USE_OPENBSD=
1687USE_OSF= USE_SGI=
1688USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1689USE_ULTRIX=
1690USE_UNIXWARE=
1691
1692USE_ALPHA=
1693
1694NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1695
1696ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1697
1698DEFAULT_wxUSE_COCOA=0
1699DEFAULT_wxUSE_GTK=0
1700DEFAULT_wxUSE_MAC=0
1701DEFAULT_wxUSE_MGL=0
1702DEFAULT_wxUSE_MICROWIN=0
1703DEFAULT_wxUSE_MOTIF=0
1704DEFAULT_wxUSE_MSW=0
1705DEFAULT_wxUSE_PM=0
1706DEFAULT_wxUSE_X11=0
1707
1708DEFAULT_DEFAULT_wxUSE_COCOA=0
1709DEFAULT_DEFAULT_wxUSE_GTK=0
1710DEFAULT_DEFAULT_wxUSE_MAC=0
1711DEFAULT_DEFAULT_wxUSE_MGL=0
1712DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1713DEFAULT_DEFAULT_wxUSE_MOTIF=0
1714DEFAULT_DEFAULT_wxUSE_MSW=0
1715DEFAULT_DEFAULT_wxUSE_PM=0
1716DEFAULT_DEFAULT_wxUSE_X11=0
1717
1718PROGRAM_EXT=
1719SO_SUFFIX=so
1720SAMPLES_RPATH_FLAG=
1721SAMPLES_RPATH_POSTLINK=
1722
1723case "${host}" in
1724 *-hp-hpux* )
1725 USE_HPUX=1
1726 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1727 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1728 SO_SUFFIX=sl
1729 cat >>confdefs.h <<\_ACEOF
1730#define __HPUX__ 1
1731_ACEOF
1732
1733 ;;
1734 *-*-linux* )
1735 USE_LINUX=1
1736 cat >>confdefs.h <<\_ACEOF
1737#define __LINUX__ 1
1738_ACEOF
1739
1740 TMP=`uname -m`
1741 if test "x$TMP" = "xalpha"; then
1742 USE_ALPHA=1
1743 cat >>confdefs.h <<\_ACEOF
1744#define __ALPHA__ 1
1745_ACEOF
1746
1747 fi
1748 DEFAULT_DEFAULT_wxUSE_GTK=1
1749 ;;
1750 *-*-gnu* | *-*-k*bsd*-gnu )
1751 USE_GNU=1
1752 TMP=`uname -m`
1753 if test "x$TMP" = "xalpha"; then
1754 USE_ALPHA=1
1755 cat >>confdefs.h <<\_ACEOF
1756#define __ALPHA__ 1
1757_ACEOF
1758
1759 fi
1760 DEFAULT_DEFAULT_wxUSE_GTK=1
1761 ;;
1762 *-*-irix5* | *-*-irix6* )
1763 USE_SGI=1
1764 USE_SVR4=1
1765 cat >>confdefs.h <<\_ACEOF
1766#define __SGI__ 1
1767_ACEOF
1768
1769 cat >>confdefs.h <<\_ACEOF
1770#define __SVR4__ 1
1771_ACEOF
1772
1773 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1774 ;;
1775 *-*-solaris2* )
1776 USE_SUN=1
1777 USE_SOLARIS=1
1778 USE_SVR4=1
1779 cat >>confdefs.h <<\_ACEOF
1780#define __SUN__ 1
1781_ACEOF
1782
1783 cat >>confdefs.h <<\_ACEOF
1784#define __SOLARIS__ 1
1785_ACEOF
1786
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SVR4__ 1
1789_ACEOF
1790
1791 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1792 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1793 ;;
1794 *-*-sunos4* )
1795 USE_SUN=1
1796 USE_SUNOS=1
1797 USE_BSD=1
1798 cat >>confdefs.h <<\_ACEOF
1799#define __SUN__ 1
1800_ACEOF
1801
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SUNOS__ 1
1804_ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807#define __BSD__ 1
1808_ACEOF
1809
1810 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1811 ;;
1812 *-*-freebsd*)
1813 USE_BSD=1
1814 USE_FREEBSD=1
1815 cat >>confdefs.h <<\_ACEOF
1816#define __FREEBSD__ 1
1817_ACEOF
1818
1819 cat >>confdefs.h <<\_ACEOF
1820#define __BSD__ 1
1821_ACEOF
1822
1823 DEFAULT_DEFAULT_wxUSE_GTK=1
1824 ;;
1825 *-*-openbsd*)
1826 USE_BSD=1
1827 USE_OPENBSD=1
1828 cat >>confdefs.h <<\_ACEOF
1829#define __OPENBSD__ 1
1830_ACEOF
1831
1832 cat >>confdefs.h <<\_ACEOF
1833#define __BSD__ 1
1834_ACEOF
1835
1836 DEFAULT_DEFAULT_wxUSE_GTK=1
1837 ;;
1838 *-*-netbsd*)
1839 USE_BSD=1
1840 USE_NETBSD=1
1841 cat >>confdefs.h <<\_ACEOF
1842#define __NETBSD__ 1
1843_ACEOF
1844
1845 cat >>confdefs.h <<\_ACEOF
1846#define __BSD__ 1
1847_ACEOF
1848
1849 DEFAULT_DEFAULT_wxUSE_GTK=1
1850 ;;
1851 *-*-osf* )
1852 USE_ALPHA=1
1853 USE_OSF=1
1854 cat >>confdefs.h <<\_ACEOF
1855#define __ALPHA__ 1
1856_ACEOF
1857
1858 cat >>confdefs.h <<\_ACEOF
1859#define __OSF__ 1
1860_ACEOF
1861
1862 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1863 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1864 ;;
1865 *-*-dgux5* )
1866 USE_ALPHA=1
1867 USE_SVR4=1
1868 cat >>confdefs.h <<\_ACEOF
1869#define __ALPHA__ 1
1870_ACEOF
1871
1872 cat >>confdefs.h <<\_ACEOF
1873#define __SVR4__ 1
1874_ACEOF
1875
1876 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1877 ;;
1878 *-*-sysv5* )
1879 USE_SYSV=1
1880 USE_SVR4=1
1881 cat >>confdefs.h <<\_ACEOF
1882#define __SYSV__ 1
1883_ACEOF
1884
1885 cat >>confdefs.h <<\_ACEOF
1886#define __SVR4__ 1
1887_ACEOF
1888
1889 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1890 ;;
1891 *-*-aix* )
1892 USE_AIX=1
1893 USE_SYSV=1
1894 USE_SVR4=1
1895 SO_SUFFIX=a
1896 cat >>confdefs.h <<\_ACEOF
1897#define __AIX__ 1
1898_ACEOF
1899
1900 cat >>confdefs.h <<\_ACEOF
1901#define __SYSV__ 1
1902_ACEOF
1903
1904 cat >>confdefs.h <<\_ACEOF
1905#define __SVR4__ 1
1906_ACEOF
1907
1908 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1909 ;;
1910
1911 *-*-*UnixWare*)
1912 USE_SYSV=1
1913 USE_SVR4=1
1914 USE_UNIXWARE=1
1915 cat >>confdefs.h <<\_ACEOF
1916#define __UNIXWARE__ 1
1917_ACEOF
1918
1919 ;;
1920
1921 *-*-cygwin* | *-*-mingw32* )
1922 SO_SUFFIX=dll
1923 PROGRAM_EXT=".exe"
1924 RESCOMP=windres
1925 DEFAULT_DEFAULT_wxUSE_MSW=1
1926 ;;
1927
1928 *-pc-msdosdjgpp )
1929 USE_UNIX=0
1930 USE_DOS=1
1931 cat >>confdefs.h <<\_ACEOF
1932#define __DOS__ 1
1933_ACEOF
1934
1935 PROGRAM_EXT=".exe"
1936 DEFAULT_DEFAULT_wxUSE_MGL=1
1937 LIBS="$LIBS -lstdc++"
1938 ;;
1939
1940 *-pc-os2_emx | *-pc-os2-emx )
1941 cat >>confdefs.h <<\_ACEOF
1942#define __EMX__ 1
1943_ACEOF
1944
1945 USE_OS2=1
1946 cat >>confdefs.h <<\_ACEOF
1947#define __OS2__ 1
1948_ACEOF
1949
1950 PROGRAM_EXT=".exe"
1951 DEFAULT_DEFAULT_wxUSE_PM=1
1952 CXX=gcc
1953 LDFLAGS="$LDFLAGS -Zcrtdll"
1954 ac_executable_extensions=".exe"
1955 export ac_executable_extensions
1956 ac_save_IFS="$IFS"
1957 IFS='\\'
1958 ac_TEMP_PATH=
1959 for ac_dir in $PATH; do
1960 IFS=$ac_save_IFS
1961 if test -z "$ac_TEMP_PATH"; then
1962 ac_TEMP_PATH="$ac_dir"
1963 else
1964 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1965 fi
1966 done
1967 export PATH="$ac_TEMP_PATH"
1968 unset ac_TEMP_PATH
1969 ;;
1970
1971 powerpc-*-darwin* )
1972 USE_BSD=1
1973 USE_DARWIN=1
1974 SO_SUFFIX=dylib
1975 cat >>confdefs.h <<\_ACEOF
1976#define __BSD__ 1
1977_ACEOF
1978
1979 cat >>confdefs.h <<\_ACEOF
1980#define __DARWIN__ 1
1981_ACEOF
1982
1983 cat >>confdefs.h <<\_ACEOF
1984#define __POWERPC__ 1
1985_ACEOF
1986
1987 cat >>confdefs.h <<\_ACEOF
1988#define TARGET_CARBON 1
1989_ACEOF
1990
1991 DEFAULT_DEFAULT_wxUSE_MAC=1
1992 ;;
1e9e8aba
DE
1993 powerpc-apple-macos* )
1994 USE_UNIX=0
1995 ac_cv_c_bigendian=yes
1996 SO_SUFFIX=shlib
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
1998 ;;
a848cd7e
SC
1999
2000 *-*-beos* )
2001 USE_BEOS=1
2002 cat >>confdefs.h <<\_ACEOF
2003#define __BEOS__ 1
2004_ACEOF
2005
2006 ;;
2007
2008 *)
2009 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2010echo "$as_me: error: unknown system type ${host}." >&2;}
2011 { (exit 1); exit 1; }; }
2012esac
2013
2014
2015
2016
2017 wx_arg_cache_file="configarg.cache"
2018 echo "loading argument cache $wx_arg_cache_file"
2019 rm -f ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}
2022
2023
2024DEBUG_CONFIGURE=0
2025if test $DEBUG_CONFIGURE = 1; then
2026 DEFAULT_wxUSE_UNIVERSAL=no
2027 DEFAULT_wxUSE_STL=no
2028
2029 DEFAULT_wxUSE_NANOX=no
2030
2031 DEFAULT_wxUSE_THREADS=yes
2032
2033 DEFAULT_wxUSE_SHARED=yes
2034 DEFAULT_wxUSE_OPTIMISE=no
2035 DEFAULT_wxUSE_PROFILE=no
2036 DEFAULT_wxUSE_NO_DEPS=no
2037 DEFAULT_wxUSE_NO_RTTI=no
2038 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2039 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2040 DEFAULT_wxUSE_PERMISSIVE=no
2041 DEFAULT_wxUSE_DEBUG_FLAG=yes
2042 DEFAULT_wxUSE_DEBUG_INFO=yes
2043 DEFAULT_wxUSE_DEBUG_GDB=yes
2044 DEFAULT_wxUSE_MEM_TRACING=no
2045 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2046 DEFAULT_wxUSE_DMALLOC=no
2047 DEFAULT_wxUSE_APPLE_IEEE=no
2048
2049 DEFAULT_wxUSE_EXCEPTIONS=no
2050 DEFAULT_wxUSE_LOG=yes
2051 DEFAULT_wxUSE_LOGWINDOW=no
2052 DEFAULT_wxUSE_LOGGUI=no
2053 DEFAULT_wxUSE_LOGDIALOG=no
2054
2055 DEFAULT_wxUSE_GUI=yes
2056 DEFAULT_wxUSE_CONTROLS=no
2057
2058 DEFAULT_wxUSE_REGEX=no
2059 DEFAULT_wxUSE_XML=no
2060 DEFAULT_wxUSE_EXPAT=no
2061 DEFAULT_wxUSE_ZLIB=no
2062 DEFAULT_wxUSE_LIBPNG=no
2063 DEFAULT_wxUSE_LIBJPEG=no
2064 DEFAULT_wxUSE_LIBTIFF=no
2065 DEFAULT_wxUSE_LIBXPM=no
2066 DEFAULT_wxUSE_LIBMSPACK=no
2067 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2068 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2069 DEFAULT_wxUSE_ODBC=no
2070 DEFAULT_wxUSE_OPENGL=no
2071
2072 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2073 DEFAULT_wxUSE_STACKWALKER=no
a848cd7e
SC
2074 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2075 DEFAULT_wxUSE_STD_IOSTREAM=no
2076 DEFAULT_wxUSE_CMDLINE_PARSER=no
2077 DEFAULT_wxUSE_DATETIME=no
2078 DEFAULT_wxUSE_TIMER=no
2079 DEFAULT_wxUSE_STOPWATCH=no
2080 DEFAULT_wxUSE_FILE=no
2081 DEFAULT_wxUSE_FFILE=no
2082 DEFAULT_wxUSE_TEXTBUFFER=no
2083 DEFAULT_wxUSE_TEXTFILE=no
2084 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2085 DEFAULT_wxUSE_MEDIACTRL=no
2086 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2087 DEFAULT_wxUSE_INTL=no
2088 DEFAULT_wxUSE_CONFIG=no
2089 DEFAULT_wxUSE_FONTMAP=no
2090 DEFAULT_wxUSE_STREAMS=no
2091 DEFAULT_wxUSE_SOCKETS=no
2092 DEFAULT_wxUSE_OLE=no
2093 DEFAULT_wxUSE_DATAOBJ=no
2094 DEFAULT_wxUSE_DIALUP_MANAGER=no
2095 DEFAULT_wxUSE_JOYSTICK=no
2096 DEFAULT_wxUSE_DYNLIB_CLASS=no
2097 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2098 DEFAULT_wxUSE_LONGLONG=no
2099 DEFAULT_wxUSE_GEOMETRY=no
2100
2101 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2102 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2103 DEFAULT_wxUSE_POSTSCRIPT=no
2104
2105 DEFAULT_wxUSE_CLIPBOARD=no
2106 DEFAULT_wxUSE_TOOLTIPS=no
2107 DEFAULT_wxUSE_DRAG_AND_DROP=no
2108 DEFAULT_wxUSE_DRAGIMAGE=no
2109 DEFAULT_wxUSE_SPLINES=no
2110
8a7b1113 2111 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2112 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2113 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2114 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2115
2116 DEFAULT_wxUSE_RESOURCES=no
2117 DEFAULT_wxUSE_CONSTRAINTS=no
2118 DEFAULT_wxUSE_IPC=no
2119 DEFAULT_wxUSE_HELP=no
2120 DEFAULT_wxUSE_MS_HTML_HELP=no
2121 DEFAULT_wxUSE_WXHTML_HELP=no
2122 DEFAULT_wxUSE_TREELAYOUT=no
2123 DEFAULT_wxUSE_METAFILE=no
2124 DEFAULT_wxUSE_MIMETYPE=no
2125 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2126 DEFAULT_wxUSE_PROTOCOL=no
2127 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2128 DEFAULT_wxUSE_PROTOCOL_FTP=no
2129 DEFAULT_wxUSE_PROTOCOL_FILE=no
2130 DEFAULT_wxUSE_URL=no
2131
2132 DEFAULT_wxUSE_COMMONDLGS=no
2133 DEFAULT_wxUSE_CHOICEDLG=no
2134 DEFAULT_wxUSE_COLOURDLG=no
2135 DEFAULT_wxUSE_DIRDLG=no
2136 DEFAULT_wxUSE_FILEDLG=no
2137 DEFAULT_wxUSE_FINDREPLDLG=no
2138 DEFAULT_wxUSE_FONTDLG=no
2139 DEFAULT_wxUSE_MSGDLG=no
2140 DEFAULT_wxUSE_NUMBERDLG=no
2141 DEFAULT_wxUSE_TEXTDLG=no
2142 DEFAULT_wxUSE_SPLASH=no
2143 DEFAULT_wxUSE_STARTUP_TIPS=no
2144 DEFAULT_wxUSE_PROGRESSDLG=no
2145 DEFAULT_wxUSE_WIZARDDLG=no
2146
2147 DEFAULT_wxUSE_MENUS=no
2148 DEFAULT_wxUSE_MINIFRAME=no
2149 DEFAULT_wxUSE_HTML=no
9a8f0513 2150 DEFAULT_wxUSE_XRC=no
646b6ec1 2151 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2152 DEFAULT_wxUSE_FILESYSTEM=no
2153 DEFAULT_wxUSE_FS_INET=no
2154 DEFAULT_wxUSE_FS_ZIP=no
2155 DEFAULT_wxUSE_BUSYINFO=no
2156 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2157 DEFAULT_wxUSE_VALIDATORS=no
2158
2159 DEFAULT_wxUSE_ACCEL=no
2160 DEFAULT_wxUSE_BUTTON=no
2161 DEFAULT_wxUSE_BMPBUTTON=no
2162 DEFAULT_wxUSE_CALCTRL=no
2163 DEFAULT_wxUSE_CARET=no
2164 DEFAULT_wxUSE_CHECKBOX=no
2165 DEFAULT_wxUSE_CHECKLST=no
2166 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2167 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2168 DEFAULT_wxUSE_COMBOBOX=no
2169 DEFAULT_wxUSE_DISPLAY=no
2170 DEFAULT_wxUSE_GAUGE=no
2171 DEFAULT_wxUSE_GRID=no
2172 DEFAULT_wxUSE_IMAGLIST=no
2173 DEFAULT_wxUSE_LISTBOOK=no
2174 DEFAULT_wxUSE_LISTBOX=no
2175 DEFAULT_wxUSE_LISTCTRL=no
2176 DEFAULT_wxUSE_NOTEBOOK=no
2177 DEFAULT_wxUSE_RADIOBOX=no
2178 DEFAULT_wxUSE_RADIOBTN=no
2179 DEFAULT_wxUSE_SASH=no
2180 DEFAULT_wxUSE_SCROLLBAR=no
2181 DEFAULT_wxUSE_SLIDER=no
2182 DEFAULT_wxUSE_SPINBTN=no
2183 DEFAULT_wxUSE_SPINCTRL=no
2184 DEFAULT_wxUSE_SPLITTER=no
2185 DEFAULT_wxUSE_STATBMP=no
2186 DEFAULT_wxUSE_STATBOX=no
2187 DEFAULT_wxUSE_STATLINE=no
2188 DEFAULT_wxUSE_STATTEXT=no
2189 DEFAULT_wxUSE_STATUSBAR=yes
2190 DEFAULT_wxUSE_TABDIALOG=no
2191 DEFAULT_wxUSE_TEXTCTRL=no
2192 DEFAULT_wxUSE_TOGGLEBTN=no
2193 DEFAULT_wxUSE_TOOLBAR=no
2194 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2195 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2196 DEFAULT_wxUSE_TREECTRL=no
2197 DEFAULT_wxUSE_POPUPWIN=no
2198 DEFAULT_wxUSE_TIPWINDOW=no
2199
2200 DEFAULT_wxUSE_UNICODE=no
2201 DEFAULT_wxUSE_UNICODE_MSLU=no
2202 DEFAULT_wxUSE_WCSRTOMBS=no
2203
2204 DEFAULT_wxUSE_PALETTE=no
2205 DEFAULT_wxUSE_IMAGE=no
2206 DEFAULT_wxUSE_GIF=no
2207 DEFAULT_wxUSE_PCX=no
2208 DEFAULT_wxUSE_PNM=no
2209 DEFAULT_wxUSE_IFF=no
2210 DEFAULT_wxUSE_XPM=no
2211 DEFAULT_wxUSE_ICO_CUR=no
2212 DEFAULT_wxUSE_ACCESSIBILITY=no
2213
2214 DEFAULT_wxUSE_MONOLITHIC=no
2215 DEFAULT_wxUSE_PLUGINS=no
2216 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2217else
2218 DEFAULT_wxUSE_UNIVERSAL=no
2219 DEFAULT_wxUSE_STL=no
2220
2221 DEFAULT_wxUSE_NANOX=no
2222
2223 DEFAULT_wxUSE_THREADS=yes
2224
2225 DEFAULT_wxUSE_SHARED=yes
2226 DEFAULT_wxUSE_OPTIMISE=yes
2227 DEFAULT_wxUSE_PROFILE=no
2228 DEFAULT_wxUSE_NO_DEPS=no
2229 DEFAULT_wxUSE_NO_RTTI=no
2230 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2231 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2232 DEFAULT_wxUSE_PERMISSIVE=no
2233 DEFAULT_wxUSE_DEBUG_FLAG=no
2234 DEFAULT_wxUSE_DEBUG_INFO=no
2235 DEFAULT_wxUSE_DEBUG_GDB=no
2236 DEFAULT_wxUSE_MEM_TRACING=no
2237 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2238 DEFAULT_wxUSE_DMALLOC=no
2239 DEFAULT_wxUSE_APPLE_IEEE=yes
2240
2241 DEFAULT_wxUSE_EXCEPTIONS=yes
2242 DEFAULT_wxUSE_LOG=yes
2243 DEFAULT_wxUSE_LOGWINDOW=yes
2244 DEFAULT_wxUSE_LOGGUI=yes
2245 DEFAULT_wxUSE_LOGDIALOG=yes
2246
2247 DEFAULT_wxUSE_GUI=yes
2248
2249 DEFAULT_wxUSE_REGEX=yes
2250 DEFAULT_wxUSE_XML=yes
2251 DEFAULT_wxUSE_EXPAT=yes
2252 DEFAULT_wxUSE_ZLIB=yes
2253 DEFAULT_wxUSE_LIBPNG=yes
2254 DEFAULT_wxUSE_LIBJPEG=yes
2255 DEFAULT_wxUSE_LIBTIFF=yes
2256 DEFAULT_wxUSE_LIBXPM=yes
2257 DEFAULT_wxUSE_LIBMSPACK=yes
2258 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2259 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2260 DEFAULT_wxUSE_ODBC=no
2261 DEFAULT_wxUSE_OPENGL=no
2262
2263 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2264 DEFAULT_wxUSE_STACKWALKER=yes
a848cd7e
SC
2265 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2266 DEFAULT_wxUSE_STD_IOSTREAM=no
2267 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2268 DEFAULT_wxUSE_DATETIME=yes
2269 DEFAULT_wxUSE_TIMER=yes
2270 DEFAULT_wxUSE_STOPWATCH=yes
2271 DEFAULT_wxUSE_FILE=yes
2272 DEFAULT_wxUSE_FFILE=yes
2273 DEFAULT_wxUSE_TEXTBUFFER=yes
2274 DEFAULT_wxUSE_TEXTFILE=yes
2275 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2276 DEFAULT_wxUSE_MEDIACTRL=no
2277 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2278 DEFAULT_wxUSE_INTL=yes
2279 DEFAULT_wxUSE_CONFIG=yes
2280 DEFAULT_wxUSE_FONTMAP=yes
2281 DEFAULT_wxUSE_STREAMS=yes
2282 DEFAULT_wxUSE_SOCKETS=yes
2283 DEFAULT_wxUSE_OLE=yes
2284 DEFAULT_wxUSE_DATAOBJ=yes
2285 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2286 DEFAULT_wxUSE_JOYSTICK=yes
2287 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2288 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2289 DEFAULT_wxUSE_LONGLONG=yes
2290 DEFAULT_wxUSE_GEOMETRY=yes
2291
2292 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2293 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2294 DEFAULT_wxUSE_POSTSCRIPT=yes
2295
2296 DEFAULT_wxUSE_CLIPBOARD=yes
2297 DEFAULT_wxUSE_TOOLTIPS=yes
2298 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2299 DEFAULT_wxUSE_DRAGIMAGE=yes
2300 DEFAULT_wxUSE_SPLINES=yes
2301
8a7b1113 2302 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2303 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2304 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2305 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2306
2307 DEFAULT_wxUSE_RESOURCES=no
2308 DEFAULT_wxUSE_CONSTRAINTS=yes
2309 DEFAULT_wxUSE_IPC=yes
2310 DEFAULT_wxUSE_HELP=yes
2311 DEFAULT_wxUSE_MS_HTML_HELP=yes
2312 DEFAULT_wxUSE_WXHTML_HELP=yes
2313 DEFAULT_wxUSE_TREELAYOUT=yes
2314 DEFAULT_wxUSE_METAFILE=yes
2315 DEFAULT_wxUSE_MIMETYPE=yes
2316 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2317 DEFAULT_wxUSE_PROTOCOL=yes
2318 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2319 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2320 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2321 DEFAULT_wxUSE_URL=yes
2322
2323 DEFAULT_wxUSE_COMMONDLGS=yes
2324 DEFAULT_wxUSE_CHOICEDLG=yes
2325 DEFAULT_wxUSE_COLOURDLG=yes
2326 DEFAULT_wxUSE_DIRDLG=yes
2327 DEFAULT_wxUSE_FILEDLG=yes
2328 DEFAULT_wxUSE_FINDREPLDLG=yes
2329 DEFAULT_wxUSE_FONTDLG=yes
2330 DEFAULT_wxUSE_MSGDLG=yes
2331 DEFAULT_wxUSE_NUMBERDLG=yes
2332 DEFAULT_wxUSE_TEXTDLG=yes
2333 DEFAULT_wxUSE_SPLASH=yes
2334 DEFAULT_wxUSE_STARTUP_TIPS=yes
2335 DEFAULT_wxUSE_PROGRESSDLG=yes
2336 DEFAULT_wxUSE_WIZARDDLG=yes
2337
2338 DEFAULT_wxUSE_MENUS=yes
2339 DEFAULT_wxUSE_MINIFRAME=yes
2340 DEFAULT_wxUSE_HTML=yes
9a8f0513 2341 DEFAULT_wxUSE_XRC=yes
646b6ec1 2342 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2343 DEFAULT_wxUSE_FILESYSTEM=yes
2344 DEFAULT_wxUSE_FS_INET=yes
2345 DEFAULT_wxUSE_FS_ZIP=yes
2346 DEFAULT_wxUSE_BUSYINFO=yes
2347 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2348 DEFAULT_wxUSE_VALIDATORS=yes
2349
2350 DEFAULT_wxUSE_ACCEL=yes
2351 DEFAULT_wxUSE_BUTTON=yes
2352 DEFAULT_wxUSE_BMPBUTTON=yes
2353 DEFAULT_wxUSE_CALCTRL=yes
2354 DEFAULT_wxUSE_CARET=yes
2355 DEFAULT_wxUSE_CHECKBOX=yes
2356 DEFAULT_wxUSE_CHECKLST=yes
2357 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2358 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2359 DEFAULT_wxUSE_COMBOBOX=yes
2360 DEFAULT_wxUSE_DISPLAY=yes
2361 DEFAULT_wxUSE_GAUGE=yes
2362 DEFAULT_wxUSE_GRID=yes
2363 DEFAULT_wxUSE_IMAGLIST=yes
2364 DEFAULT_wxUSE_LISTBOOK=yes
2365 DEFAULT_wxUSE_LISTBOX=yes
2366 DEFAULT_wxUSE_LISTCTRL=yes
2367 DEFAULT_wxUSE_NOTEBOOK=yes
2368 DEFAULT_wxUSE_RADIOBOX=yes
2369 DEFAULT_wxUSE_RADIOBTN=yes
2370 DEFAULT_wxUSE_SASH=yes
2371 DEFAULT_wxUSE_SCROLLBAR=yes
2372 DEFAULT_wxUSE_SLIDER=yes
2373 DEFAULT_wxUSE_SPINBTN=yes
2374 DEFAULT_wxUSE_SPINCTRL=yes
2375 DEFAULT_wxUSE_SPLITTER=yes
2376 DEFAULT_wxUSE_STATBMP=yes
2377 DEFAULT_wxUSE_STATBOX=yes
2378 DEFAULT_wxUSE_STATLINE=yes
2379 DEFAULT_wxUSE_STATTEXT=yes
2380 DEFAULT_wxUSE_STATUSBAR=yes
2381 DEFAULT_wxUSE_TABDIALOG=no
2382 DEFAULT_wxUSE_TEXTCTRL=yes
2383 DEFAULT_wxUSE_TOGGLEBTN=yes
2384 DEFAULT_wxUSE_TOOLBAR=yes
2385 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2386 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2387 DEFAULT_wxUSE_TREECTRL=yes
2388 DEFAULT_wxUSE_POPUPWIN=yes
2389 DEFAULT_wxUSE_TIPWINDOW=yes
2390
2391 DEFAULT_wxUSE_UNICODE=no
2392 DEFAULT_wxUSE_UNICODE_MSLU=yes
2393 DEFAULT_wxUSE_WCSRTOMBS=no
2394
2395 DEFAULT_wxUSE_PALETTE=yes
2396 DEFAULT_wxUSE_IMAGE=yes
2397 DEFAULT_wxUSE_GIF=yes
2398 DEFAULT_wxUSE_PCX=yes
2399 DEFAULT_wxUSE_IFF=no
2400 DEFAULT_wxUSE_PNM=yes
2401 DEFAULT_wxUSE_XPM=yes
2402 DEFAULT_wxUSE_ICO_CUR=yes
2403 DEFAULT_wxUSE_ACCESSIBILITY=no
2404
2405 DEFAULT_wxUSE_MONOLITHIC=no
2406 DEFAULT_wxUSE_PLUGINS=no
2407 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2408
2409 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2410fi
2411
2412
2413
2414for toolkit in `echo $ALL_TOOLKITS`; do
2415 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2416 if test "x$LINE" != "x" ; then
2417 has_toolkit_in_cache=1
2418 eval "DEFAULT_$LINE"
2419 eval "CACHE_$toolkit=1"
2420 fi
2421done
2422
2423
2424
2425 enablestring=
2426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2427echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2428 no_cache=0
2429 # Check whether --enable-gui or --disable-gui was given.
2430if test "${enable_gui+set}" = set; then
2431 enableval="$enable_gui"
2432
2433 if test "$enableval" = yes; then
2434 ac_cv_use_gui='wxUSE_GUI=yes'
2435 else
2436 ac_cv_use_gui='wxUSE_GUI=no'
2437 fi
2438
2439else
2440
2441 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2442 if test "x$LINE" != x ; then
2443 eval "DEFAULT_$LINE"
2444 else
2445 no_cache=1
2446 fi
2447
2448 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2449
2450fi;
2451
2452 eval "$ac_cv_use_gui"
2453 if test "$no_cache" != 1; then
2454 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2455 fi
2456
2457 if test "$wxUSE_GUI" = yes; then
2458 echo "$as_me:$LINENO: result: yes" >&5
2459echo "${ECHO_T}yes" >&6
2460 else
2461 echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6
2463 fi
2464
2465
2466 enablestring=
2467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2468echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2469 no_cache=0
2470 # Check whether --enable-monolithic or --disable-monolithic was given.
2471if test "${enable_monolithic+set}" = set; then
2472 enableval="$enable_monolithic"
2473
2474 if test "$enableval" = yes; then
2475 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2476 else
2477 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2478 fi
2479
2480else
2481
2482 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2483 if test "x$LINE" != x ; then
2484 eval "DEFAULT_$LINE"
2485 else
2486 no_cache=1
2487 fi
2488
2489 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2490
2491fi;
2492
2493 eval "$ac_cv_use_monolithic"
2494 if test "$no_cache" != 1; then
2495 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2496 fi
2497
2498 if test "$wxUSE_MONOLITHIC" = yes; then
2499 echo "$as_me:$LINENO: result: yes" >&5
2500echo "${ECHO_T}yes" >&6
2501 else
2502 echo "$as_me:$LINENO: result: no" >&5
2503echo "${ECHO_T}no" >&6
2504 fi
2505
2506
2507 enablestring=
2508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2509echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2510 no_cache=0
2511 # Check whether --enable-plugins or --disable-plugins was given.
2512if test "${enable_plugins+set}" = set; then
2513 enableval="$enable_plugins"
2514
2515 if test "$enableval" = yes; then
2516 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2517 else
2518 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2519 fi
2520
2521else
2522
2523 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2524 if test "x$LINE" != x ; then
2525 eval "DEFAULT_$LINE"
2526 else
2527 no_cache=1
2528 fi
2529
2530 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2531
2532fi;
2533
2534 eval "$ac_cv_use_plugins"
2535 if test "$no_cache" != 1; then
2536 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2537 fi
2538
2539 if test "$wxUSE_PLUGINS" = yes; then
2540 echo "$as_me:$LINENO: result: yes" >&5
2541echo "${ECHO_T}yes" >&6
2542 else
2543 echo "$as_me:$LINENO: result: no" >&5
2544echo "${ECHO_T}no" >&6
2545 fi
2546
2547
2548if test "$wxUSE_GUI" = "yes"; then
2549
2550
2551 enablestring=
2552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2553echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2554 no_cache=0
2555 # Check whether --enable-universal or --disable-universal was given.
2556if test "${enable_universal+set}" = set; then
2557 enableval="$enable_universal"
2558
2559 if test "$enableval" = yes; then
2560 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2561 else
2562 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2563 fi
2564
2565else
2566
2567 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2568 if test "x$LINE" != x ; then
2569 eval "DEFAULT_$LINE"
2570 else
2571 no_cache=1
2572 fi
2573
2574 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2575
2576fi;
2577
2578 eval "$ac_cv_use_universal"
2579 if test "$no_cache" != 1; then
2580 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2581 fi
2582
2583 if test "$wxUSE_UNIVERSAL" = yes; then
2584 echo "$as_me:$LINENO: result: yes" >&5
2585echo "${ECHO_T}yes" >&6
2586 else
2587 echo "$as_me:$LINENO: result: no" >&5
2588echo "${ECHO_T}no" >&6
2589 fi
2590
2591
2592# Check whether --with-gtk or --without-gtk was given.
2593if test "${with_gtk+set}" = set; then
2594 withval="$with_gtk"
2595 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2596fi;
2597
2598# Check whether --with-motif or --without-motif was given.
2599if test "${with_motif+set}" = set; then
2600 withval="$with_motif"
2601 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2602fi;
2603
2604# Check whether --with-mac or --without-mac was given.
2605if test "${with_mac+set}" = set; then
2606 withval="$with_mac"
c228d3a4 2607 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2608fi;
2609
2610# Check whether --with-cocoa or --without-cocoa was given.
2611if test "${with_cocoa+set}" = set; then
2612 withval="$with_cocoa"
c228d3a4 2613 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2614fi;
2615
2616# Check whether --with-wine or --without-wine was given.
2617if test "${with_wine+set}" = set; then
2618 withval="$with_wine"
2619 wxUSE_WINE="$withval" CACHE_WINE=1
2620fi;
2621
2622# Check whether --with-msw or --without-msw was given.
2623if test "${with_msw+set}" = set; then
2624 withval="$with_msw"
2625 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2626fi;
2627
2628# Check whether --with-pm or --without-pm was given.
2629if test "${with_pm+set}" = set; then
2630 withval="$with_pm"
2631 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2632fi;
2633
2634# Check whether --with-mgl or --without-mgl was given.
2635if test "${with_mgl+set}" = set; then
2636 withval="$with_mgl"
2637 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2638fi;
2639
2640# Check whether --with-microwin or --without-microwin was given.
2641if test "${with_microwin+set}" = set; then
2642 withval="$with_microwin"
2643 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2644fi;
2645
2646# Check whether --with-x11 or --without-x11 was given.
2647if test "${with_x11+set}" = set; then
2648 withval="$with_x11"
2649 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2650fi;
2651
2652 enablestring=
2653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2654echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2655 no_cache=0
2656 # Check whether --enable-nanox or --disable-nanox was given.
2657if test "${enable_nanox+set}" = set; then
2658 enableval="$enable_nanox"
2659
2660 if test "$enableval" = yes; then
2661 ac_cv_use_nanox='wxUSE_NANOX=yes'
2662 else
2663 ac_cv_use_nanox='wxUSE_NANOX=no'
2664 fi
2665
2666else
2667
2668 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2669 if test "x$LINE" != x ; then
2670 eval "DEFAULT_$LINE"
2671 else
2672 no_cache=1
2673 fi
2674
2675 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2676
2677fi;
2678
2679 eval "$ac_cv_use_nanox"
2680 if test "$no_cache" != 1; then
2681 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2682 fi
2683
2684 if test "$wxUSE_NANOX" = yes; then
2685 echo "$as_me:$LINENO: result: yes" >&5
2686echo "${ECHO_T}yes" >&6
2687 else
2688 echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6
2690 fi
2691
2692
2693
2694 enablestring=
2695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2696echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2697 no_cache=0
2698 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2699if test "${enable_gtk2+set}" = set; then
2700 enableval="$enable_gtk2"
2701
2702 if test "$enableval" = yes; then
2703 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2704 else
2705 ac_cv_use_gtk2='wxUSE_GTK2=no'
2706 fi
2707
2708else
2709
2710 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2711 if test "x$LINE" != x ; then
2712 eval "DEFAULT_$LINE"
2713 else
2714 no_cache=1
2715 fi
2716
2717 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2718
2719fi;
2720
2721 eval "$ac_cv_use_gtk2"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_GTK2" = yes; then
2727 echo "$as_me:$LINENO: result: yes" >&5
2728echo "${ECHO_T}yes" >&6
2729 else
2730 echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6
2732 fi
2733
2734
2735 enablestring=
2736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2737echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2738 no_cache=0
2739 # Check whether --enable-gpe or --disable-gpe was given.
2740if test "${enable_gpe+set}" = set; then
2741 enableval="$enable_gpe"
2742
2743 if test "$enableval" = yes; then
2744 ac_cv_use_gpe='wxUSE_GPE=yes'
2745 else
2746 ac_cv_use_gpe='wxUSE_GPE=no'
2747 fi
2748
2749else
2750
2751 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2759
2760fi;
2761
2762 eval "$ac_cv_use_gpe"
2763 if test "$no_cache" != 1; then
2764 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2765 fi
2766
2767 if test "$wxUSE_GPE" = yes; then
2768 echo "$as_me:$LINENO: result: yes" >&5
2769echo "${ECHO_T}yes" >&6
2770 else
2771 echo "$as_me:$LINENO: result: no" >&5
2772echo "${ECHO_T}no" >&6
2773 fi
2774
2775
2776
2777 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2778echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2779 no_cache=0
2780
2781# Check whether --with-libpng or --without-libpng was given.
2782if test "${with_libpng+set}" = set; then
2783 withval="$with_libpng"
2784
2785 if test "$withval" = yes; then
2786 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2787 elif test "$withval" = no; then
2788 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2789 elif test "$withval" = sys; then
2790 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2791 elif test "$withval" = builtin; then
2792 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2793 else
2794 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2795echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2796 { (exit 1); exit 1; }; }
2797 fi
2798
2799else
2800
2801 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2802 if test "x$LINE" != x ; then
2803 eval "DEFAULT_$LINE"
2804 else
2805 no_cache=1
2806 fi
2807
2808 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2809
2810fi;
2811
2812 eval "$ac_cv_use_libpng"
2813 if test "$no_cache" != 1; then
2814 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2815 fi
2816
2817 if test "$wxUSE_LIBPNG" = yes; then
2818 echo "$as_me:$LINENO: result: yes" >&5
2819echo "${ECHO_T}yes" >&6
2820 elif test "$wxUSE_LIBPNG" = no; then
2821 echo "$as_me:$LINENO: result: no" >&5
2822echo "${ECHO_T}no" >&6
2823 elif test "$wxUSE_LIBPNG" = sys; then
2824 echo "$as_me:$LINENO: result: system version" >&5
2825echo "${ECHO_T}system version" >&6
2826 elif test "$wxUSE_LIBPNG" = builtin; then
2827 echo "$as_me:$LINENO: result: builtin version" >&5
2828echo "${ECHO_T}builtin version" >&6
2829 else
2830 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2831echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2832 { (exit 1); exit 1; }; }
2833 fi
2834
2835
2836 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2837echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2838 no_cache=0
2839
2840# Check whether --with-libjpeg or --without-libjpeg was given.
2841if test "${with_libjpeg+set}" = set; then
2842 withval="$with_libjpeg"
2843
2844 if test "$withval" = yes; then
2845 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2846 elif test "$withval" = no; then
2847 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2848 elif test "$withval" = sys; then
2849 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2850 elif test "$withval" = builtin; then
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2852 else
2853 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2854echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2855 { (exit 1); exit 1; }; }
2856 fi
2857
2858else
2859
2860 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2861 if test "x$LINE" != x ; then
2862 eval "DEFAULT_$LINE"
2863 else
2864 no_cache=1
2865 fi
2866
2867 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2868
2869fi;
2870
2871 eval "$ac_cv_use_libjpeg"
2872 if test "$no_cache" != 1; then
2873 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2874 fi
2875
2876 if test "$wxUSE_LIBJPEG" = yes; then
2877 echo "$as_me:$LINENO: result: yes" >&5
2878echo "${ECHO_T}yes" >&6
2879 elif test "$wxUSE_LIBJPEG" = no; then
2880 echo "$as_me:$LINENO: result: no" >&5
2881echo "${ECHO_T}no" >&6
2882 elif test "$wxUSE_LIBJPEG" = sys; then
2883 echo "$as_me:$LINENO: result: system version" >&5
2884echo "${ECHO_T}system version" >&6
2885 elif test "$wxUSE_LIBJPEG" = builtin; then
2886 echo "$as_me:$LINENO: result: builtin version" >&5
2887echo "${ECHO_T}builtin version" >&6
2888 else
2889 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2890echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2891 { (exit 1); exit 1; }; }
2892 fi
2893
2894
2895 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2896echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2897 no_cache=0
2898
2899# Check whether --with-libtiff or --without-libtiff was given.
2900if test "${with_libtiff+set}" = set; then
2901 withval="$with_libtiff"
2902
2903 if test "$withval" = yes; then
2904 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2905 elif test "$withval" = no; then
2906 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2907 elif test "$withval" = sys; then
2908 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2909 elif test "$withval" = builtin; then
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2911 else
2912 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2913echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2914 { (exit 1); exit 1; }; }
2915 fi
2916
2917else
2918
2919 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2920 if test "x$LINE" != x ; then
2921 eval "DEFAULT_$LINE"
2922 else
2923 no_cache=1
2924 fi
2925
2926 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2927
2928fi;
2929
2930 eval "$ac_cv_use_libtiff"
2931 if test "$no_cache" != 1; then
2932 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2933 fi
2934
2935 if test "$wxUSE_LIBTIFF" = yes; then
2936 echo "$as_me:$LINENO: result: yes" >&5
2937echo "${ECHO_T}yes" >&6
2938 elif test "$wxUSE_LIBTIFF" = no; then
2939 echo "$as_me:$LINENO: result: no" >&5
2940echo "${ECHO_T}no" >&6
2941 elif test "$wxUSE_LIBTIFF" = sys; then
2942 echo "$as_me:$LINENO: result: system version" >&5
2943echo "${ECHO_T}system version" >&6
2944 elif test "$wxUSE_LIBTIFF" = builtin; then
2945 echo "$as_me:$LINENO: result: builtin version" >&5
2946echo "${ECHO_T}builtin version" >&6
2947 else
2948 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2949echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2950 { (exit 1); exit 1; }; }
2951 fi
2952
2953
2954 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2955echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2956 no_cache=0
2957
2958# Check whether --with-libxpm or --without-libxpm was given.
2959if test "${with_libxpm+set}" = set; then
2960 withval="$with_libxpm"
2961
2962 if test "$withval" = yes; then
2963 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2964 elif test "$withval" = no; then
2965 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2966 elif test "$withval" = sys; then
2967 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2968 elif test "$withval" = builtin; then
2969 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2970 else
2971 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2972echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2973 { (exit 1); exit 1; }; }
2974 fi
2975
2976else
2977
2978 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2986
2987fi;
2988
2989 eval "$ac_cv_use_libxpm"
2990 if test "$no_cache" != 1; then
2991 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2992 fi
2993
2994 if test "$wxUSE_LIBXPM" = yes; then
2995 echo "$as_me:$LINENO: result: yes" >&5
2996echo "${ECHO_T}yes" >&6
2997 elif test "$wxUSE_LIBXPM" = no; then
2998 echo "$as_me:$LINENO: result: no" >&5
2999echo "${ECHO_T}no" >&6
3000 elif test "$wxUSE_LIBXPM" = sys; then
3001 echo "$as_me:$LINENO: result: system version" >&5
3002echo "${ECHO_T}system version" >&6
3003 elif test "$wxUSE_LIBXPM" = builtin; then
3004 echo "$as_me:$LINENO: result: builtin version" >&5
3005echo "${ECHO_T}builtin version" >&6
3006 else
3007 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3008echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3009 { (exit 1); exit 1; }; }
3010 fi
3011
3012
3013 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3014echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3015 no_cache=0
3016
3017# Check whether --with-libmspack or --without-libmspack was given.
3018if test "${with_libmspack+set}" = set; then
3019 withval="$with_libmspack"
3020
3021 if test "$withval" = yes; then
3022 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3023 else
3024 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3025 fi
3026
3027else
3028
3029 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3037
3038fi;
3039
3040 eval "$ac_cv_use_libmspack"
3041 if test "$no_cache" != 1; then
3042 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3043 fi
3044
3045 if test "$wxUSE_LIBMSPACK" = yes; then
3046 echo "$as_me:$LINENO: result: yes" >&5
3047echo "${ECHO_T}yes" >&6
3048 else
3049 echo "$as_me:$LINENO: result: no" >&5
3050echo "${ECHO_T}no" >&6
3051 fi
3052
3053
3054 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3055echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3056 no_cache=0
3057
3058# Check whether --with-sdl or --without-sdl was given.
3059if test "${with_sdl+set}" = set; then
3060 withval="$with_sdl"
3061
3062 if test "$withval" = yes; then
3063 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3064 else
3065 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3066 fi
3067
3068else
3069
3070 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3071 if test "x$LINE" != x ; then
3072 eval "DEFAULT_$LINE"
3073 else
3074 no_cache=1
3075 fi
3076
3077 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3078
3079fi;
3080
3081 eval "$ac_cv_use_sdl"
3082 if test "$no_cache" != 1; then
3083 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3084 fi
3085
3086 if test "$wxUSE_LIBSDL" = yes; then
3087 echo "$as_me:$LINENO: result: yes" >&5
3088echo "${ECHO_T}yes" >&6
3089 else
3090 echo "$as_me:$LINENO: result: no" >&5
3091echo "${ECHO_T}no" >&6
3092 fi
3093
3094
d1c38808
VZ
3095 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3096echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3097 no_cache=0
3098
3099# Check whether --with-gnomeprint or --without-gnomeprint was given.
3100if test "${with_gnomeprint+set}" = set; then
3101 withval="$with_gnomeprint"
3102
3103 if test "$withval" = yes; then
3104 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3105 else
3106 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3107 fi
3108
3109else
3110
3111 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3112 if test "x$LINE" != x ; then
3113 eval "DEFAULT_$LINE"
3114 else
3115 no_cache=1
3116 fi
3117
3118 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3119
3120fi;
3121
3122 eval "$ac_cv_use_gnomeprint"
3123 if test "$no_cache" != 1; then
3124 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3125 fi
3126
3127 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3128 echo "$as_me:$LINENO: result: yes" >&5
3129echo "${ECHO_T}yes" >&6
3130 else
3131 echo "$as_me:$LINENO: result: no" >&5
3132echo "${ECHO_T}no" >&6
3133 fi
3134
3135
a848cd7e
SC
3136 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3137echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3138 no_cache=0
3139
3140# Check whether --with-opengl or --without-opengl was given.
3141if test "${with_opengl+set}" = set; then
3142 withval="$with_opengl"
3143
3144 if test "$withval" = yes; then
3145 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3146 else
3147 ac_cv_use_opengl='wxUSE_OPENGL=no'
3148 fi
3149
3150else
3151
3152 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3153 if test "x$LINE" != x ; then
3154 eval "DEFAULT_$LINE"
3155 else
3156 no_cache=1
3157 fi
3158
3159 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3160
3161fi;
3162
3163 eval "$ac_cv_use_opengl"
3164 if test "$no_cache" != 1; then
3165 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3166 fi
3167
3168 if test "$wxUSE_OPENGL" = yes; then
3169 echo "$as_me:$LINENO: result: yes" >&5
3170echo "${ECHO_T}yes" >&6
3171 else
3172 echo "$as_me:$LINENO: result: no" >&5
3173echo "${ECHO_T}no" >&6
3174 fi
3175
3176
3177fi
3178
3179
3180 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3181echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3182 no_cache=0
3183
3184# Check whether --with-dmalloc or --without-dmalloc was given.
3185if test "${with_dmalloc+set}" = set; then
3186 withval="$with_dmalloc"
3187
3188 if test "$withval" = yes; then
3189 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3190 else
3191 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3192 fi
3193
3194else
3195
3196 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3197 if test "x$LINE" != x ; then
3198 eval "DEFAULT_$LINE"
3199 else
3200 no_cache=1
3201 fi
3202
3203 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3204
3205fi;
3206
3207 eval "$ac_cv_use_dmalloc"
3208 if test "$no_cache" != 1; then
3209 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3210 fi
3211
3212 if test "$wxUSE_DMALLOC" = yes; then
3213 echo "$as_me:$LINENO: result: yes" >&5
3214echo "${ECHO_T}yes" >&6
3215 else
3216 echo "$as_me:$LINENO: result: no" >&5
3217echo "${ECHO_T}no" >&6
3218 fi
3219
3220
3221 echo "$as_me:$LINENO: checking for --with-regex" >&5
3222echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3223 no_cache=0
3224
3225# Check whether --with-regex or --without-regex was given.
3226if test "${with_regex+set}" = set; then
3227 withval="$with_regex"
3228
3229 if test "$withval" = yes; then
3230 ac_cv_use_regex='wxUSE_REGEX=yes'
3231 elif test "$withval" = no; then
3232 ac_cv_use_regex='wxUSE_REGEX=no'
3233 elif test "$withval" = sys; then
3234 ac_cv_use_regex='wxUSE_REGEX=sys'
3235 elif test "$withval" = builtin; then
3236 ac_cv_use_regex='wxUSE_REGEX=builtin'
3237 else
3238 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3239echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3240 { (exit 1); exit 1; }; }
3241 fi
3242
3243else
3244
3245 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3246 if test "x$LINE" != x ; then
3247 eval "DEFAULT_$LINE"
3248 else
3249 no_cache=1
3250 fi
3251
3252 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3253
3254fi;
3255
3256 eval "$ac_cv_use_regex"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_REGEX" = yes; then
3262 echo "$as_me:$LINENO: result: yes" >&5
3263echo "${ECHO_T}yes" >&6
3264 elif test "$wxUSE_REGEX" = no; then
3265 echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
3267 elif test "$wxUSE_REGEX" = sys; then
3268 echo "$as_me:$LINENO: result: system version" >&5
3269echo "${ECHO_T}system version" >&6
3270 elif test "$wxUSE_REGEX" = builtin; then
3271 echo "$as_me:$LINENO: result: builtin version" >&5
3272echo "${ECHO_T}builtin version" >&6
3273 else
3274 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3275echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3276 { (exit 1); exit 1; }; }
3277 fi
3278
3279
3280 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3281echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3282 no_cache=0
3283
3284# Check whether --with-zlib or --without-zlib was given.
3285if test "${with_zlib+set}" = set; then
3286 withval="$with_zlib"
3287
3288 if test "$withval" = yes; then
3289 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3290 elif test "$withval" = no; then
3291 ac_cv_use_zlib='wxUSE_ZLIB=no'
3292 elif test "$withval" = sys; then
3293 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3294 elif test "$withval" = builtin; then
3295 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3296 else
3297 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3298echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3299 { (exit 1); exit 1; }; }
3300 fi
3301
3302else
3303
3304 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3312
3313fi;
3314
3315 eval "$ac_cv_use_zlib"
3316 if test "$no_cache" != 1; then
3317 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3318 fi
3319
3320 if test "$wxUSE_ZLIB" = yes; then
3321 echo "$as_me:$LINENO: result: yes" >&5
3322echo "${ECHO_T}yes" >&6
3323 elif test "$wxUSE_ZLIB" = no; then
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
3326 elif test "$wxUSE_ZLIB" = sys; then
3327 echo "$as_me:$LINENO: result: system version" >&5
3328echo "${ECHO_T}system version" >&6
3329 elif test "$wxUSE_ZLIB" = builtin; then
3330 echo "$as_me:$LINENO: result: builtin version" >&5
3331echo "${ECHO_T}builtin version" >&6
3332 else
3333 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3334echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3335 { (exit 1); exit 1; }; }
3336 fi
3337
3338
3339 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3340echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3341 no_cache=0
3342
3343# Check whether --with-odbc or --without-odbc was given.
3344if test "${with_odbc+set}" = set; then
3345 withval="$with_odbc"
3346
3347 if test "$withval" = yes; then
3348 ac_cv_use_odbc='wxUSE_ODBC=yes'
3349 elif test "$withval" = no; then
3350 ac_cv_use_odbc='wxUSE_ODBC=no'
3351 elif test "$withval" = sys; then
3352 ac_cv_use_odbc='wxUSE_ODBC=sys'
3353 elif test "$withval" = builtin; then
3354 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3355 else
3356 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3357echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3358 { (exit 1); exit 1; }; }
3359 fi
3360
3361else
3362
3363 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3364 if test "x$LINE" != x ; then
3365 eval "DEFAULT_$LINE"
3366 else
3367 no_cache=1
3368 fi
3369
3370 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3371
3372fi;
3373
3374 eval "$ac_cv_use_odbc"
3375 if test "$no_cache" != 1; then
3376 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3377 fi
3378
3379 if test "$wxUSE_ODBC" = yes; then
3380 echo "$as_me:$LINENO: result: yes" >&5
3381echo "${ECHO_T}yes" >&6
3382 elif test "$wxUSE_ODBC" = no; then
3383 echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
3385 elif test "$wxUSE_ODBC" = sys; then
3386 echo "$as_me:$LINENO: result: system version" >&5
3387echo "${ECHO_T}system version" >&6
3388 elif test "$wxUSE_ODBC" = builtin; then
3389 echo "$as_me:$LINENO: result: builtin version" >&5
3390echo "${ECHO_T}builtin version" >&6
3391 else
3392 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3393echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3394 { (exit 1); exit 1; }; }
3395 fi
3396
3397
3398 echo "$as_me:$LINENO: checking for --with-expat" >&5
3399echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3400 no_cache=0
3401
3402# Check whether --with-expat or --without-expat was given.
3403if test "${with_expat+set}" = set; then
3404 withval="$with_expat"
3405
3406 if test "$withval" = yes; then
3407 ac_cv_use_expat='wxUSE_EXPAT=yes'
3408 elif test "$withval" = no; then
3409 ac_cv_use_expat='wxUSE_EXPAT=no'
3410 elif test "$withval" = sys; then
3411 ac_cv_use_expat='wxUSE_EXPAT=sys'
3412 elif test "$withval" = builtin; then
3413 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3414 else
3415 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3416echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3417 { (exit 1); exit 1; }; }
3418 fi
3419
3420else
3421
3422 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3423 if test "x$LINE" != x ; then
3424 eval "DEFAULT_$LINE"
3425 else
3426 no_cache=1
3427 fi
3428
3429 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3430
3431fi;
3432
3433 eval "$ac_cv_use_expat"
3434 if test "$no_cache" != 1; then
3435 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3436 fi
3437
3438 if test "$wxUSE_EXPAT" = yes; then
3439 echo "$as_me:$LINENO: result: yes" >&5
3440echo "${ECHO_T}yes" >&6
3441 elif test "$wxUSE_EXPAT" = no; then
3442 echo "$as_me:$LINENO: result: no" >&5
3443echo "${ECHO_T}no" >&6
3444 elif test "$wxUSE_EXPAT" = sys; then
3445 echo "$as_me:$LINENO: result: system version" >&5
3446echo "${ECHO_T}system version" >&6
3447 elif test "$wxUSE_EXPAT" = builtin; then
3448 echo "$as_me:$LINENO: result: builtin version" >&5
3449echo "${ECHO_T}builtin version" >&6
3450 else
3451 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3452echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3453 { (exit 1); exit 1; }; }
3454 fi
3455
3456
3457
3458
3459 enablestring=
3460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3461echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3462 no_cache=0
3463 # Check whether --enable-shared or --disable-shared was given.
3464if test "${enable_shared+set}" = set; then
3465 enableval="$enable_shared"
3466
3467 if test "$enableval" = yes; then
3468 ac_cv_use_shared='wxUSE_SHARED=yes'
3469 else
3470 ac_cv_use_shared='wxUSE_SHARED=no'
3471 fi
3472
3473else
3474
3475 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3476 if test "x$LINE" != x ; then
3477 eval "DEFAULT_$LINE"
3478 else
3479 no_cache=1
3480 fi
3481
3482 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3483
3484fi;
3485
3486 eval "$ac_cv_use_shared"
3487 if test "$no_cache" != 1; then
3488 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3489 fi
3490
3491 if test "$wxUSE_SHARED" = yes; then
3492 echo "$as_me:$LINENO: result: yes" >&5
3493echo "${ECHO_T}yes" >&6
3494 else
3495 echo "$as_me:$LINENO: result: no" >&5
3496echo "${ECHO_T}no" >&6
3497 fi
3498
3499
3500 enablestring=
3501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3502echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3503 no_cache=0
3504 # Check whether --enable-optimise or --disable-optimise was given.
3505if test "${enable_optimise+set}" = set; then
3506 enableval="$enable_optimise"
3507
3508 if test "$enableval" = yes; then
3509 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3510 else
3511 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3512 fi
3513
3514else
3515
3516 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3517 if test "x$LINE" != x ; then
3518 eval "DEFAULT_$LINE"
3519 else
3520 no_cache=1
3521 fi
3522
3523 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3524
3525fi;
3526
3527 eval "$ac_cv_use_optimise"
3528 if test "$no_cache" != 1; then
3529 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3530 fi
3531
3532 if test "$wxUSE_OPTIMISE" = yes; then
3533 echo "$as_me:$LINENO: result: yes" >&5
3534echo "${ECHO_T}yes" >&6
3535 else
3536 echo "$as_me:$LINENO: result: no" >&5
3537echo "${ECHO_T}no" >&6
3538 fi
3539
3540
3541 enablestring=
3542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3543echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3544 no_cache=0
3545 # Check whether --enable-debug or --disable-debug was given.
3546if test "${enable_debug+set}" = set; then
3547 enableval="$enable_debug"
3548
3549 if test "$enableval" = yes; then
3550 ac_cv_use_debug='wxUSE_DEBUG=yes'
3551 else
3552 ac_cv_use_debug='wxUSE_DEBUG=no'
3553 fi
3554
3555else
3556
3557 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3558 if test "x$LINE" != x ; then
3559 eval "DEFAULT_$LINE"
3560 else
3561 no_cache=1
3562 fi
3563
3564 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3565
3566fi;
3567
3568 eval "$ac_cv_use_debug"
3569 if test "$no_cache" != 1; then
3570 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3571 fi
3572
3573 if test "$wxUSE_DEBUG" = yes; then
3574 echo "$as_me:$LINENO: result: yes" >&5
3575echo "${ECHO_T}yes" >&6
3576 else
3577 echo "$as_me:$LINENO: result: no" >&5
3578echo "${ECHO_T}no" >&6
3579 fi
3580
3581
3582 enablestring=
3583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3584echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3585 no_cache=0
3586 # Check whether --enable-stl or --disable-stl was given.
3587if test "${enable_stl+set}" = set; then
3588 enableval="$enable_stl"
3589
3590 if test "$enableval" = yes; then
3591 ac_cv_use_stl='wxUSE_STL=yes'
3592 else
3593 ac_cv_use_stl='wxUSE_STL=no'
3594 fi
3595
3596else
3597
3598 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3599 if test "x$LINE" != x ; then
3600 eval "DEFAULT_$LINE"
3601 else
3602 no_cache=1
3603 fi
3604
3605 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3606
3607fi;
3608
3609 eval "$ac_cv_use_stl"
3610 if test "$no_cache" != 1; then
3611 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3612 fi
3613
3614 if test "$wxUSE_STL" = yes; then
3615 echo "$as_me:$LINENO: result: yes" >&5
3616echo "${ECHO_T}yes" >&6
3617 else
3618 echo "$as_me:$LINENO: result: no" >&5
3619echo "${ECHO_T}no" >&6
3620 fi
3621
3622if test "$USE_OS2" = "1"; then
3623
3624 enablestring=
3625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3626echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3627 no_cache=0
3628 # Check whether --enable-omf or --disable-omf was given.
3629if test "${enable_omf+set}" = set; then
3630 enableval="$enable_omf"
3631
3632 if test "$enableval" = yes; then
3633 ac_cv_use_omf='wxUSE_OMF=yes'
3634 else
3635 ac_cv_use_omf='wxUSE_OMF=no'
3636 fi
3637
3638else
3639
3640 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3641 if test "x$LINE" != x ; then
3642 eval "DEFAULT_$LINE"
3643 else
3644 no_cache=1
3645 fi
3646
3647 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3648
3649fi;
3650
3651 eval "$ac_cv_use_omf"
3652 if test "$no_cache" != 1; then
3653 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3654 fi
3655
3656 if test "$wxUSE_OMF" = yes; then
3657 echo "$as_me:$LINENO: result: yes" >&5
3658echo "${ECHO_T}yes" >&6
3659 else
3660 echo "$as_me:$LINENO: result: no" >&5
3661echo "${ECHO_T}no" >&6
3662 fi
3663
3664fi
3665
3666if test "$wxUSE_DEBUG" = "yes"; then
3667 DEFAULT_wxUSE_DEBUG_FLAG=yes
3668 DEFAULT_wxUSE_DEBUG_INFO=yes
3669 BUILD=debug
3670elif test "$wxUSE_DEBUG" = "no"; then
3671 DEFAULT_wxUSE_DEBUG_FLAG=no
3672 DEFAULT_wxUSE_DEBUG_INFO=no
3673 BUILD=release
3674fi
3675
3676
3677 enablestring=
3678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3679echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3680 no_cache=0
3681 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3682if test "${enable_debug_flag+set}" = set; then
3683 enableval="$enable_debug_flag"
3684
3685 if test "$enableval" = yes; then
3686 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3687 else
3688 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3689 fi
3690
3691else
3692
3693 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3701
3702fi;
3703
3704 eval "$ac_cv_use_debug_flag"
3705 if test "$no_cache" != 1; then
3706 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3707 fi
3708
3709 if test "$wxUSE_DEBUG_FLAG" = yes; then
3710 echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6
3712 else
3713 echo "$as_me:$LINENO: result: no" >&5
3714echo "${ECHO_T}no" >&6
3715 fi
3716
3717
3718 enablestring=
3719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3720echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3721 no_cache=0
3722 # Check whether --enable-debug_info or --disable-debug_info was given.
3723if test "${enable_debug_info+set}" = set; then
3724 enableval="$enable_debug_info"
3725
3726 if test "$enableval" = yes; then
3727 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3728 else
3729 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3730 fi
3731
3732else
3733
3734 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3735 if test "x$LINE" != x ; then
3736 eval "DEFAULT_$LINE"
3737 else
3738 no_cache=1
3739 fi
3740
3741 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3742
3743fi;
3744
3745 eval "$ac_cv_use_debug_info"
3746 if test "$no_cache" != 1; then
3747 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3748 fi
3749
3750 if test "$wxUSE_DEBUG_INFO" = yes; then
3751 echo "$as_me:$LINENO: result: yes" >&5
3752echo "${ECHO_T}yes" >&6
3753 else
3754 echo "$as_me:$LINENO: result: no" >&5
3755echo "${ECHO_T}no" >&6
3756 fi
3757
3758
3759 enablestring=
3760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3761echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3762 no_cache=0
3763 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3764if test "${enable_debug_gdb+set}" = set; then
3765 enableval="$enable_debug_gdb"
3766
3767 if test "$enableval" = yes; then
3768 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3769 else
3770 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3771 fi
3772
3773else
3774
3775 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3776 if test "x$LINE" != x ; then
3777 eval "DEFAULT_$LINE"
3778 else
3779 no_cache=1
3780 fi
3781
3782 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3783
3784fi;
3785
3786 eval "$ac_cv_use_debug_gdb"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_DEBUG_GDB" = yes; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793echo "${ECHO_T}yes" >&6
3794 else
3795 echo "$as_me:$LINENO: result: no" >&5
3796echo "${ECHO_T}no" >&6
3797 fi
3798
3799
3800 enablestring=
3801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3802echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3803 no_cache=0
3804 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3805if test "${enable_debug_cntxt+set}" = set; then
3806 enableval="$enable_debug_cntxt"
3807
3808 if test "$enableval" = yes; then
3809 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3810 else
3811 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3812 fi
3813
3814else
3815
3816 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3824
3825fi;
3826
3827 eval "$ac_cv_use_debug_cntxt"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3833 echo "$as_me:$LINENO: result: yes" >&5
3834echo "${ECHO_T}yes" >&6
3835 else
3836 echo "$as_me:$LINENO: result: no" >&5
3837echo "${ECHO_T}no" >&6
3838 fi
3839
3840
3841 enablestring=
3842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3843echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3844 no_cache=0
3845 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3846if test "${enable_mem_tracing+set}" = set; then
3847 enableval="$enable_mem_tracing"
3848
3849 if test "$enableval" = yes; then
3850 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3851 else
3852 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3853 fi
3854
3855else
3856
3857 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3858 if test "x$LINE" != x ; then
3859 eval "DEFAULT_$LINE"
3860 else
3861 no_cache=1
3862 fi
3863
3864 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3865
3866fi;
3867
3868 eval "$ac_cv_use_mem_tracing"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_MEM_TRACING" = yes; then
3874 echo "$as_me:$LINENO: result: yes" >&5
3875echo "${ECHO_T}yes" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6
3879 fi
3880
3881
3882 enablestring=
3883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3884echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3885 no_cache=0
3886 # Check whether --enable-profile or --disable-profile was given.
3887if test "${enable_profile+set}" = set; then
3888 enableval="$enable_profile"
3889
3890 if test "$enableval" = yes; then
3891 ac_cv_use_profile='wxUSE_PROFILE=yes'
3892 else
3893 ac_cv_use_profile='wxUSE_PROFILE=no'
3894 fi
3895
3896else
3897
3898 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3899 if test "x$LINE" != x ; then
3900 eval "DEFAULT_$LINE"
3901 else
3902 no_cache=1
3903 fi
3904
3905 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3906
3907fi;
3908
3909 eval "$ac_cv_use_profile"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_PROFILE" = yes; then
3915 echo "$as_me:$LINENO: result: yes" >&5
3916echo "${ECHO_T}yes" >&6
3917 else
3918 echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6
3920 fi
3921
3922
3923 enablestring=
3924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3925echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3926 no_cache=0
3927 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3928if test "${enable_no_rtti+set}" = set; then
3929 enableval="$enable_no_rtti"
3930
3931 if test "$enableval" = yes; then
3932 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3933 else
3934 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3935 fi
3936
3937else
3938
3939 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3940 if test "x$LINE" != x ; then
3941 eval "DEFAULT_$LINE"
3942 else
3943 no_cache=1
3944 fi
3945
3946 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3947
3948fi;
3949
3950 eval "$ac_cv_use_no_rtti"
3951 if test "$no_cache" != 1; then
3952 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3953 fi
3954
3955 if test "$wxUSE_NO_RTTI" = yes; then
3956 echo "$as_me:$LINENO: result: yes" >&5
3957echo "${ECHO_T}yes" >&6
3958 else
3959 echo "$as_me:$LINENO: result: no" >&5
3960echo "${ECHO_T}no" >&6
3961 fi
3962
3963
3964 enablestring=
3965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3966echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3967 no_cache=0
3968 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3969if test "${enable_no_exceptions+set}" = set; then
3970 enableval="$enable_no_exceptions"
3971
3972 if test "$enableval" = yes; then
3973 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3974 else
3975 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3976 fi
3977
3978else
3979
3980 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3981 if test "x$LINE" != x ; then
3982 eval "DEFAULT_$LINE"
3983 else
3984 no_cache=1
3985 fi
3986
3987 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3988
3989fi;
3990
3991 eval "$ac_cv_use_no_exceptions"
3992 if test "$no_cache" != 1; then
3993 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3994 fi
3995
3996 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3997 echo "$as_me:$LINENO: result: yes" >&5
3998echo "${ECHO_T}yes" >&6
3999 else
4000 echo "$as_me:$LINENO: result: no" >&5
4001echo "${ECHO_T}no" >&6
4002 fi
4003
4004
4005 enablestring=
4006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4007echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4008 no_cache=0
4009 # Check whether --enable-permissive or --disable-permissive was given.
4010if test "${enable_permissive+set}" = set; then
4011 enableval="$enable_permissive"
4012
4013 if test "$enableval" = yes; then
4014 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4015 else
4016 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4017 fi
4018
4019else
4020
4021 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4022 if test "x$LINE" != x ; then
4023 eval "DEFAULT_$LINE"
4024 else
4025 no_cache=1
4026 fi
4027
4028 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4029
4030fi;
4031
4032 eval "$ac_cv_use_permissive"
4033 if test "$no_cache" != 1; then
4034 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4035 fi
4036
4037 if test "$wxUSE_PERMISSIVE" = yes; then
4038 echo "$as_me:$LINENO: result: yes" >&5
4039echo "${ECHO_T}yes" >&6
4040 else
4041 echo "$as_me:$LINENO: result: no" >&5
4042echo "${ECHO_T}no" >&6
4043 fi
4044
4045
4046 enablestring=
4047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4048echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4049 no_cache=0
4050 # Check whether --enable-no_deps or --disable-no_deps was given.
4051if test "${enable_no_deps+set}" = set; then
4052 enableval="$enable_no_deps"
4053
4054 if test "$enableval" = yes; then
4055 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4056 else
4057 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4058 fi
4059
4060else
4061
4062 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4063 if test "x$LINE" != x ; then
4064 eval "DEFAULT_$LINE"
4065 else
4066 no_cache=1
4067 fi
4068
4069 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4070
4071fi;
4072
4073 eval "$ac_cv_use_no_deps"
4074 if test "$no_cache" != 1; then
4075 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4076 fi
4077
4078 if test "$wxUSE_NO_DEPS" = yes; then
4079 echo "$as_me:$LINENO: result: yes" >&5
4080echo "${ECHO_T}yes" >&6
4081 else
4082 echo "$as_me:$LINENO: result: no" >&5
4083echo "${ECHO_T}no" >&6
4084 fi
4085
4086
4087
4088 enablestring=
4089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4090echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4091 no_cache=0
4092 # Check whether --enable-compat22 or --disable-compat22 was given.
4093if test "${enable_compat22+set}" = set; then
4094 enableval="$enable_compat22"
4095
4096 if test "$enableval" = yes; then
4097 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4098 else
4099 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4100 fi
4101
4102else
4103
4104 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4105 if test "x$LINE" != x ; then
4106 eval "DEFAULT_$LINE"
4107 else
4108 no_cache=1
4109 fi
4110
4111 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4112
4113fi;
4114
4115 eval "$ac_cv_use_compat22"
4116 if test "$no_cache" != 1; then
4117 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4118 fi
4119
4120 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4121 echo "$as_me:$LINENO: result: yes" >&5
4122echo "${ECHO_T}yes" >&6
4123 else
4124 echo "$as_me:$LINENO: result: no" >&5
4125echo "${ECHO_T}no" >&6
4126 fi
4127
4128
4129 enablestring=disable
4130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4131echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4132 no_cache=0
4133 # Check whether --enable-compat24 or --disable-compat24 was given.
4134if test "${enable_compat24+set}" = set; then
4135 enableval="$enable_compat24"
4136
4137 if test "$enableval" = yes; then
4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4139 else
4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4141 fi
4142
4143else
4144
4145 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4146 if test "x$LINE" != x ; then
4147 eval "DEFAULT_$LINE"
4148 else
4149 no_cache=1
4150 fi
4151
4152 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4153
4154fi;
4155
4156 eval "$ac_cv_use_compat24"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4162 echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166echo "${ECHO_T}no" >&6
4167 fi
4168
4169
ffa0583f
RL
4170
4171 enablestring=
4172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4173echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4174 no_cache=0
4175 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4176if test "${enable_rpath+set}" = set; then
4177 enableval="$enable_rpath"
ffa0583f
RL
4178
4179 if test "$enableval" = yes; then
4180 ac_cv_use_rpath='wxUSE_RPATH=yes'
4181 else
4182 ac_cv_use_rpath='wxUSE_RPATH=no'
4183 fi
4184
4185else
4186
4187 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4188 if test "x$LINE" != x ; then
4189 eval "DEFAULT_$LINE"
4190 else
4191 no_cache=1
4192 fi
4193
4194 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4195
a848cd7e
SC
4196fi;
4197
ffa0583f
RL
4198 eval "$ac_cv_use_rpath"
4199 if test "$no_cache" != 1; then
4200 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4201 fi
4202
4203 if test "$wxUSE_RPATH" = yes; then
4204 echo "$as_me:$LINENO: result: yes" >&5
4205echo "${ECHO_T}yes" >&6
4206 else
4207 echo "$as_me:$LINENO: result: no" >&5
4208echo "${ECHO_T}no" >&6
4209 fi
4210
a848cd7e
SC
4211
4212
4213
4214
4215 enablestring=
4216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4217echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4218 no_cache=0
4219 # Check whether --enable-intl or --disable-intl was given.
4220if test "${enable_intl+set}" = set; then
4221 enableval="$enable_intl"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_intl='wxUSE_INTL=yes'
4225 else
4226 ac_cv_use_intl='wxUSE_INTL=no'
4227 fi
4228
4229else
4230
4231 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4239
4240fi;
4241
4242 eval "$ac_cv_use_intl"
4243 if test "$no_cache" != 1; then
4244 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4245 fi
4246
4247 if test "$wxUSE_INTL" = yes; then
4248 echo "$as_me:$LINENO: result: yes" >&5
4249echo "${ECHO_T}yes" >&6
4250 else
4251 echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253 fi
4254
4255
4256 enablestring=
4257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4258echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4259 no_cache=0
4260 # Check whether --enable-config or --disable-config was given.
4261if test "${enable_config+set}" = set; then
4262 enableval="$enable_config"
4263
4264 if test "$enableval" = yes; then
4265 ac_cv_use_config='wxUSE_CONFIG=yes'
4266 else
4267 ac_cv_use_config='wxUSE_CONFIG=no'
4268 fi
4269
4270else
4271
4272 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4273 if test "x$LINE" != x ; then
4274 eval "DEFAULT_$LINE"
4275 else
4276 no_cache=1
4277 fi
4278
4279 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4280
4281fi;
4282
4283 eval "$ac_cv_use_config"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_CONFIG" = yes; then
4289 echo "$as_me:$LINENO: result: yes" >&5
4290echo "${ECHO_T}yes" >&6
4291 else
4292 echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
4294 fi
4295
4296
4297
4298 enablestring=
4299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4300echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4301 no_cache=0
4302 # Check whether --enable-protocols or --disable-protocols was given.
4303if test "${enable_protocols+set}" = set; then
4304 enableval="$enable_protocols"
4305
4306 if test "$enableval" = yes; then
4307 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4308 else
4309 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4310 fi
4311
4312else
4313
4314 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4315 if test "x$LINE" != x ; then
4316 eval "DEFAULT_$LINE"
4317 else
4318 no_cache=1
4319 fi
4320
4321 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4322
4323fi;
4324
4325 eval "$ac_cv_use_protocols"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_PROTOCOL" = yes; then
4331 echo "$as_me:$LINENO: result: yes" >&5
4332echo "${ECHO_T}yes" >&6
4333 else
4334 echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
4336 fi
4337
4338
4339 enablestring=
4340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4341echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4342 no_cache=0
4343 # Check whether --enable-ftp or --disable-ftp was given.
4344if test "${enable_ftp+set}" = set; then
4345 enableval="$enable_ftp"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4349 else
4350 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4351 fi
4352
4353else
4354
4355 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4363
4364fi;
4365
4366 eval "$ac_cv_use_ftp"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4372 echo "$as_me:$LINENO: result: yes" >&5
4373echo "${ECHO_T}yes" >&6
4374 else
4375 echo "$as_me:$LINENO: result: no" >&5
4376echo "${ECHO_T}no" >&6
4377 fi
4378
4379
4380 enablestring=
4381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4382echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4383 no_cache=0
4384 # Check whether --enable-http or --disable-http was given.
4385if test "${enable_http+set}" = set; then
4386 enableval="$enable_http"
4387
4388 if test "$enableval" = yes; then
4389 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4390 else
4391 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4392 fi
4393
4394else
4395
4396 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4404
4405fi;
4406
4407 eval "$ac_cv_use_http"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4413 echo "$as_me:$LINENO: result: yes" >&5
4414echo "${ECHO_T}yes" >&6
4415 else
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
4418 fi
4419
4420
4421 enablestring=
4422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4423echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4424 no_cache=0
4425 # Check whether --enable-fileproto or --disable-fileproto was given.
4426if test "${enable_fileproto+set}" = set; then
4427 enableval="$enable_fileproto"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4431 else
4432 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4433 fi
4434
4435else
4436
4437 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
4444 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4445
4446fi;
4447
4448 eval "$ac_cv_use_fileproto"
4449 if test "$no_cache" != 1; then
4450 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4451 fi
4452
4453 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4454 echo "$as_me:$LINENO: result: yes" >&5
4455echo "${ECHO_T}yes" >&6
4456 else
4457 echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6
4459 fi
4460
4461
4462 enablestring=
4463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4464echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4465 no_cache=0
4466 # Check whether --enable-sockets or --disable-sockets was given.
4467if test "${enable_sockets+set}" = set; then
4468 enableval="$enable_sockets"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4472 else
4473 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4474 fi
4475
4476else
4477
4478 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4486
4487fi;
4488
4489 eval "$ac_cv_use_sockets"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_SOCKETS" = yes; then
4495 echo "$as_me:$LINENO: result: yes" >&5
4496echo "${ECHO_T}yes" >&6
4497 else
4498 echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6
4500 fi
4501
4502
4503 enablestring=
4504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4505echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4506 no_cache=0
4507 # Check whether --enable-ole or --disable-ole was given.
4508if test "${enable_ole+set}" = set; then
4509 enableval="$enable_ole"
4510
4511 if test "$enableval" = yes; then
4512 ac_cv_use_ole='wxUSE_OLE=yes'
4513 else
4514 ac_cv_use_ole='wxUSE_OLE=no'
4515 fi
4516
4517else
4518
4519 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4520 if test "x$LINE" != x ; then
4521 eval "DEFAULT_$LINE"
4522 else
4523 no_cache=1
4524 fi
4525
4526 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4527
4528fi;
4529
4530 eval "$ac_cv_use_ole"
4531 if test "$no_cache" != 1; then
4532 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4533 fi
4534
4535 if test "$wxUSE_OLE" = yes; then
4536 echo "$as_me:$LINENO: result: yes" >&5
4537echo "${ECHO_T}yes" >&6
4538 else
4539 echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6
4541 fi
4542
4543
4544 enablestring=
4545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4546echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4547 no_cache=0
4548 # Check whether --enable-dataobj or --disable-dataobj was given.
4549if test "${enable_dataobj+set}" = set; then
4550 enableval="$enable_dataobj"
4551
4552 if test "$enableval" = yes; then
4553 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4554 else
4555 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4556 fi
4557
4558else
4559
4560 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4561 if test "x$LINE" != x ; then
4562 eval "DEFAULT_$LINE"
4563 else
4564 no_cache=1
4565 fi
4566
4567 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4568
4569fi;
4570
4571 eval "$ac_cv_use_dataobj"
4572 if test "$no_cache" != 1; then
4573 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4574 fi
4575
4576 if test "$wxUSE_DATAOBJ" = yes; then
4577 echo "$as_me:$LINENO: result: yes" >&5
4578echo "${ECHO_T}yes" >&6
4579 else
4580 echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6
4582 fi
4583
4584
4585
4586 enablestring=
4587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4588echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4589 no_cache=0
4590 # Check whether --enable-ipc or --disable-ipc was given.
4591if test "${enable_ipc+set}" = set; then
4592 enableval="$enable_ipc"
4593
4594 if test "$enableval" = yes; then
4595 ac_cv_use_ipc='wxUSE_IPC=yes'
4596 else
4597 ac_cv_use_ipc='wxUSE_IPC=no'
4598 fi
4599
4600else
4601
4602 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4603 if test "x$LINE" != x ; then
4604 eval "DEFAULT_$LINE"
4605 else
4606 no_cache=1
4607 fi
4608
4609 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4610
4611fi;
4612
4613 eval "$ac_cv_use_ipc"
4614 if test "$no_cache" != 1; then
4615 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4616 fi
4617
4618 if test "$wxUSE_IPC" = yes; then
4619 echo "$as_me:$LINENO: result: yes" >&5
4620echo "${ECHO_T}yes" >&6
4621 else
4622 echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6
4624 fi
4625
4626
4627
4628 enablestring=
4629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4630echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4631 no_cache=0
4632 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4633if test "${enable_apple_ieee+set}" = set; then
4634 enableval="$enable_apple_ieee"
4635
4636 if test "$enableval" = yes; then
4637 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4638 else
4639 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4640 fi
4641
4642else
4643
4644 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4652
4653fi;
4654
4655 eval "$ac_cv_use_apple_ieee"
4656 if test "$no_cache" != 1; then
4657 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4658 fi
4659
4660 if test "$wxUSE_APPLE_IEEE" = yes; then
4661 echo "$as_me:$LINENO: result: yes" >&5
4662echo "${ECHO_T}yes" >&6
4663 else
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
4666 fi
4667
4668
4669 enablestring=
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4672 no_cache=0
4673 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4674if test "${enable_catch_segvs+set}" = set; then
4675 enableval="$enable_catch_segvs"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4679 else
4680 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4681 fi
4682
4683else
4684
4685 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4693
4694fi;
4695
4696 eval "$ac_cv_use_catch_segvs"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4702 echo "$as_me:$LINENO: result: yes" >&5
4703echo "${ECHO_T}yes" >&6
4704 else
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
4707 fi
4708
4709
eaff0f0d
VZ
4710 enablestring=
4711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4712echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4713 no_cache=0
4714 # Check whether --enable-backtrace or --disable-backtrace was given.
4715if test "${enable_backtrace+set}" = set; then
4716 enableval="$enable_backtrace"
4717
4718 if test "$enableval" = yes; then
4719 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4720 else
4721 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4722 fi
4723
4724else
4725
4726 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
4733 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4734
4735fi;
4736
4737 eval "$ac_cv_use_backtrace"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_STACKWALKER" = yes; then
4743 echo "$as_me:$LINENO: result: yes" >&5
4744echo "${ECHO_T}yes" >&6
4745 else
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
4748 fi
4749
4750
a848cd7e
SC
4751 enablestring=
4752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4753echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4754 no_cache=0
4755 # Check whether --enable-cmdline or --disable-cmdline was given.
4756if test "${enable_cmdline+set}" = set; then
4757 enableval="$enable_cmdline"
4758
4759 if test "$enableval" = yes; then
4760 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4761 else
4762 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4763 fi
4764
4765else
4766
4767 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
4774 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4775
4776fi;
4777
4778 eval "$ac_cv_use_cmdline"
4779 if test "$no_cache" != 1; then
4780 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4781 fi
4782
4783 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4784 echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
4786 else
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
4789 fi
4790
4791
4792 enablestring=
4793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4794echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4795 no_cache=0
4796 # Check whether --enable-datetime or --disable-datetime was given.
4797if test "${enable_datetime+set}" = set; then
4798 enableval="$enable_datetime"
4799
4800 if test "$enableval" = yes; then
4801 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4802 else
4803 ac_cv_use_datetime='wxUSE_DATETIME=no'
4804 fi
4805
4806else
4807
4808 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
4815 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4816
4817fi;
4818
4819 eval "$ac_cv_use_datetime"
4820 if test "$no_cache" != 1; then
4821 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4822 fi
4823
4824 if test "$wxUSE_DATETIME" = yes; then
4825 echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
4827 else
4828 echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
4830 fi
4831
4832
4833 enablestring=
4834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4835echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4836 no_cache=0
4837 # Check whether --enable-dialupman or --disable-dialupman was given.
4838if test "${enable_dialupman+set}" = set; then
4839 enableval="$enable_dialupman"
4840
4841 if test "$enableval" = yes; then
4842 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4843 else
4844 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4845 fi
4846
4847else
4848
4849 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
4856 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4857
4858fi;
4859
4860 eval "$ac_cv_use_dialupman"
4861 if test "$no_cache" != 1; then
4862 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4863 fi
4864
4865 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4866 echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6
4868 else
4869 echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
4871 fi
4872
4873
4874 enablestring=
4875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4876echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4877 no_cache=0
4878 # Check whether --enable-dynlib or --disable-dynlib was given.
4879if test "${enable_dynlib+set}" = set; then
4880 enableval="$enable_dynlib"
4881
4882 if test "$enableval" = yes; then
4883 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4884 else
4885 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4886 fi
4887
4888else
4889
4890 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
4897 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4898
4899fi;
4900
4901 eval "$ac_cv_use_dynlib"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4907 echo "$as_me:$LINENO: result: yes" >&5
4908echo "${ECHO_T}yes" >&6
4909 else
4910 echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6
4912 fi
4913
4914
4915 enablestring=
4916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4917echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4918 no_cache=0
4919 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4920if test "${enable_dynamicloader+set}" = set; then
4921 enableval="$enable_dynamicloader"
4922
4923 if test "$enableval" = yes; then
4924 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4925 else
4926 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4927 fi
4928
4929else
4930
4931 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4932 if test "x$LINE" != x ; then
4933 eval "DEFAULT_$LINE"
4934 else
4935 no_cache=1
4936 fi
4937
4938 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4939
4940fi;
4941
4942 eval "$ac_cv_use_dynamicloader"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4948 echo "$as_me:$LINENO: result: yes" >&5
4949echo "${ECHO_T}yes" >&6
4950 else
4951 echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
4953 fi
4954
4955
4956 enablestring=
4957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4958echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4959 no_cache=0
4960 # Check whether --enable-exceptions or --disable-exceptions was given.
4961if test "${enable_exceptions+set}" = set; then
4962 enableval="$enable_exceptions"
4963
4964 if test "$enableval" = yes; then
4965 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4966 else
4967 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4968 fi
4969
4970else
4971
4972 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
4979 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4980
4981fi;
4982
4983 eval "$ac_cv_use_exceptions"
4984 if test "$no_cache" != 1; then
4985 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4986 fi
4987
4988 if test "$wxUSE_EXCEPTIONS" = yes; then
4989 echo "$as_me:$LINENO: result: yes" >&5
4990echo "${ECHO_T}yes" >&6
4991 else
4992 echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
4994 fi
4995
4996
4997 enablestring=
4998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4999echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5000 no_cache=0
5001 # Check whether --enable-ffile or --disable-ffile was given.
5002if test "${enable_ffile+set}" = set; then
5003 enableval="$enable_ffile"
5004
5005 if test "$enableval" = yes; then
5006 ac_cv_use_ffile='wxUSE_FFILE=yes'
5007 else
5008 ac_cv_use_ffile='wxUSE_FFILE=no'
5009 fi
5010
5011else
5012
5013 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
5020 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5021
5022fi;
5023
5024 eval "$ac_cv_use_ffile"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_FFILE" = yes; then
5030 echo "$as_me:$LINENO: result: yes" >&5
5031echo "${ECHO_T}yes" >&6
5032 else
5033 echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6
5035 fi
5036
5037
5038 enablestring=
5039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5040echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5041 no_cache=0
5042 # Check whether --enable-file or --disable-file was given.
5043if test "${enable_file+set}" = set; then
5044 enableval="$enable_file"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_file='wxUSE_FILE=yes'
5048 else
5049 ac_cv_use_file='wxUSE_FILE=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5062
5063fi;
5064
5065 eval "$ac_cv_use_file"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_FILE" = yes; then
5071 echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
5073 else
5074 echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
5076 fi
5077
5078
5079 enablestring=
5080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5081echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5082 no_cache=0
5083 # Check whether --enable-filesystem or --disable-filesystem was given.
5084if test "${enable_filesystem+set}" = set; then
5085 enableval="$enable_filesystem"
5086
5087 if test "$enableval" = yes; then
5088 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5089 else
5090 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5091 fi
5092
5093else
5094
5095 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5096 if test "x$LINE" != x ; then
5097 eval "DEFAULT_$LINE"
5098 else
5099 no_cache=1
5100 fi
5101
5102 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5103
5104fi;
5105
5106 eval "$ac_cv_use_filesystem"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5109 fi
5110
5111 if test "$wxUSE_FILESYSTEM" = yes; then
5112 echo "$as_me:$LINENO: result: yes" >&5
5113echo "${ECHO_T}yes" >&6
5114 else
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
5117 fi
5118
5119
5120 enablestring=
5121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5122echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5123 no_cache=0
5124 # Check whether --enable-fontmap or --disable-fontmap was given.
5125if test "${enable_fontmap+set}" = set; then
5126 enableval="$enable_fontmap"
5127
5128 if test "$enableval" = yes; then
5129 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5130 else
5131 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5132 fi
5133
5134else
5135
5136 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5144
5145fi;
5146
5147 eval "$ac_cv_use_fontmap"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_FONTMAP" = yes; then
5153 echo "$as_me:$LINENO: result: yes" >&5
5154echo "${ECHO_T}yes" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158 fi
5159
5160
5161 enablestring=
5162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5163echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5164 no_cache=0
5165 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5166if test "${enable_fs_inet+set}" = set; then
5167 enableval="$enable_fs_inet"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5171 else
5172 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5173 fi
5174
5175else
5176
5177 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5185
5186fi;
5187
5188 eval "$ac_cv_use_fs_inet"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_FS_INET" = yes; then
5194 echo "$as_me:$LINENO: result: yes" >&5
5195echo "${ECHO_T}yes" >&6
5196 else
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199 fi
5200
5201
5202 enablestring=
5203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5204echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5205 no_cache=0
5206 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5207if test "${enable_fs_zip+set}" = set; then
5208 enableval="$enable_fs_zip"
5209
5210 if test "$enableval" = yes; then
5211 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5212 else
5213 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5214 fi
5215
5216else
5217
5218 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5226
5227fi;
5228
5229 eval "$ac_cv_use_fs_zip"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_FS_ZIP" = yes; then
5235 echo "$as_me:$LINENO: result: yes" >&5
5236echo "${ECHO_T}yes" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
5240 fi
5241
5242
5243 enablestring=
5244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5245echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5246 no_cache=0
5247 # Check whether --enable-geometry or --disable-geometry was given.
5248if test "${enable_geometry+set}" = set; then
5249 enableval="$enable_geometry"
5250
5251 if test "$enableval" = yes; then
5252 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5253 else
5254 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5255 fi
5256
5257else
5258
5259 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
5266 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5267
5268fi;
5269
5270 eval "$ac_cv_use_geometry"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_GEOMETRY" = yes; then
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
5278 else
5279 echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
5281 fi
5282
5283
5284 enablestring=
5285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5286echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5287 no_cache=0
5288 # Check whether --enable-log or --disable-log was given.
5289if test "${enable_log+set}" = set; then
5290 enableval="$enable_log"
5291
5292 if test "$enableval" = yes; then
5293 ac_cv_use_log='wxUSE_LOG=yes'
5294 else
5295 ac_cv_use_log='wxUSE_LOG=no'
5296 fi
5297
5298else
5299
5300 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5301 if test "x$LINE" != x ; then
5302 eval "DEFAULT_$LINE"
5303 else
5304 no_cache=1
5305 fi
5306
5307 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5308
5309fi;
5310
5311 eval "$ac_cv_use_log"
5312 if test "$no_cache" != 1; then
5313 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5314 fi
5315
5316 if test "$wxUSE_LOG" = yes; then
5317 echo "$as_me:$LINENO: result: yes" >&5
5318echo "${ECHO_T}yes" >&6
5319 else
5320 echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6
5322 fi
5323
5324
5325 enablestring=
5326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5328 no_cache=0
5329 # Check whether --enable-longlong or --disable-longlong was given.
5330if test "${enable_longlong+set}" = set; then
5331 enableval="$enable_longlong"
5332
5333 if test "$enableval" = yes; then
5334 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5335 else
5336 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5337 fi
5338
5339else
5340
5341 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5349
5350fi;
5351
5352 eval "$ac_cv_use_longlong"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_LONGLONG" = yes; then
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
5360 else
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
5363 fi
5364
5365
5366 enablestring=
5367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5369 no_cache=0
5370 # Check whether --enable-mimetype or --disable-mimetype was given.
5371if test "${enable_mimetype+set}" = set; then
5372 enableval="$enable_mimetype"
5373
5374 if test "$enableval" = yes; then
5375 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5376 else
5377 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5378 fi
5379
5380else
5381
5382 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
5389 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5390
5391fi;
5392
5393 eval "$ac_cv_use_mimetype"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_MIMETYPE" = yes; then
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
5401 else
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
5404 fi
5405
5406
5407 enablestring=
5408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5409echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5410 no_cache=0
5411 # Check whether --enable-mslu or --disable-mslu was given.
5412if test "${enable_mslu+set}" = set; then
5413 enableval="$enable_mslu"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5417 else
5418 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5419 fi
5420
5421else
5422
5423 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5431
5432fi;
5433
5434 eval "$ac_cv_use_mslu"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_UNICODE_MSLU" = yes; then
5440 echo "$as_me:$LINENO: result: yes" >&5
5441echo "${ECHO_T}yes" >&6
5442 else
5443 echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6
5445 fi
5446
5447
5448 enablestring=
5449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5450echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5451 no_cache=0
5452 # Check whether --enable-snglinst or --disable-snglinst was given.
5453if test "${enable_snglinst+set}" = set; then
5454 enableval="$enable_snglinst"
5455
5456 if test "$enableval" = yes; then
5457 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5458 else
5459 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5460 fi
5461
5462else
5463
5464 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5472
5473fi;
5474
5475 eval "$ac_cv_use_snglinst"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5481 echo "$as_me:$LINENO: result: yes" >&5
5482echo "${ECHO_T}yes" >&6
5483 else
5484 echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
5486 fi
5487
5488
5489 enablestring=
5490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5491echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5492 no_cache=0
5493 # Check whether --enable-streams or --disable-streams was given.
5494if test "${enable_streams+set}" = set; then
5495 enableval="$enable_streams"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_streams='wxUSE_STREAMS=yes'
5499 else
5500 ac_cv_use_streams='wxUSE_STREAMS=no'
5501 fi
5502
5503else
5504
5505 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5513
5514fi;
5515
5516 eval "$ac_cv_use_streams"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_STREAMS" = yes; then
5522 echo "$as_me:$LINENO: result: yes" >&5
5523echo "${ECHO_T}yes" >&6
5524 else
5525 echo "$as_me:$LINENO: result: no" >&5
5526echo "${ECHO_T}no" >&6
5527 fi
5528
5529
5530 enablestring=
5531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5532echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5533 no_cache=0
5534 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5535if test "${enable_std_iostreams+set}" = set; then
5536 enableval="$enable_std_iostreams"
5537
5538 if test "$enableval" = yes; then
5539 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5540 else
5541 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5542 fi
5543
5544else
5545
5546 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
5553 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5554
5555fi;
5556
5557 eval "$ac_cv_use_std_iostreams"
5558 if test "$no_cache" != 1; then
5559 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5560 fi
5561
5562 if test "$wxUSE_STD_IOSTREAM" = yes; then
5563 echo "$as_me:$LINENO: result: yes" >&5
5564echo "${ECHO_T}yes" >&6
5565 else
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
5568 fi
5569
5570
5571 enablestring=
5572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5573echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5574 no_cache=0
5575 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5576if test "${enable_stopwatch+set}" = set; then
5577 enableval="$enable_stopwatch"
5578
5579 if test "$enableval" = yes; then
5580 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5581 else
5582 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5583 fi
5584
5585else
5586
5587 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
5594 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5595
5596fi;
5597
5598 eval "$ac_cv_use_stopwatch"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_STOPWATCH" = yes; then
5604 echo "$as_me:$LINENO: result: yes" >&5
5605echo "${ECHO_T}yes" >&6
5606 else
5607 echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
5609 fi
5610
5611
5612 enablestring=
5613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5614echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5615 no_cache=0
5616 # Check whether --enable-system_options or --disable-system_options was given.
5617if test "${enable_system_options+set}" = set; then
5618 enableval="$enable_system_options"
5619
5620 if test "$enableval" = yes; then
5621 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5622 else
5623 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5624 fi
5625
5626else
5627
5628 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
5635 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5636
5637fi;
5638
5639 eval "$ac_cv_use_system_options"
5640 if test "$no_cache" != 1; then
5641 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5642 fi
5643
5644 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5645 echo "$as_me:$LINENO: result: yes" >&5
5646echo "${ECHO_T}yes" >&6
5647 else
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650 fi
5651
5652
5653 enablestring=
5654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5655echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5656 no_cache=0
5657 # Check whether --enable-textbuf or --disable-textbuf was given.
5658if test "${enable_textbuf+set}" = set; then
5659 enableval="$enable_textbuf"
5660
5661 if test "$enableval" = yes; then
5662 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5663 else
5664 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5665 fi
5666
5667else
5668
5669 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5670 if test "x$LINE" != x ; then
5671 eval "DEFAULT_$LINE"
5672 else
5673 no_cache=1
5674 fi
5675
5676 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5677
5678fi;
5679
5680 eval "$ac_cv_use_textbuf"
5681 if test "$no_cache" != 1; then
5682 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5683 fi
5684
5685 if test "$wxUSE_TEXTBUFFER" = yes; then
5686 echo "$as_me:$LINENO: result: yes" >&5
5687echo "${ECHO_T}yes" >&6
5688 else
5689 echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6
5691 fi
5692
5693
5694 enablestring=
5695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5696echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5697 no_cache=0
5698 # Check whether --enable-textfile or --disable-textfile was given.
5699if test "${enable_textfile+set}" = set; then
5700 enableval="$enable_textfile"
5701
5702 if test "$enableval" = yes; then
5703 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5704 else
5705 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5706 fi
5707
5708else
5709
5710 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5711 if test "x$LINE" != x ; then
5712 eval "DEFAULT_$LINE"
5713 else
5714 no_cache=1
5715 fi
5716
5717 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5718
5719fi;
5720
5721 eval "$ac_cv_use_textfile"
5722 if test "$no_cache" != 1; then
5723 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5724 fi
5725
5726 if test "$wxUSE_TEXTFILE" = yes; then
5727 echo "$as_me:$LINENO: result: yes" >&5
5728echo "${ECHO_T}yes" >&6
5729 else
5730 echo "$as_me:$LINENO: result: no" >&5
5731echo "${ECHO_T}no" >&6
5732 fi
5733
5734
5735 enablestring=
5736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5737echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5738 no_cache=0
5739 # Check whether --enable-timer or --disable-timer was given.
5740if test "${enable_timer+set}" = set; then
5741 enableval="$enable_timer"
5742
5743 if test "$enableval" = yes; then
5744 ac_cv_use_timer='wxUSE_TIMER=yes'
5745 else
5746 ac_cv_use_timer='wxUSE_TIMER=no'
5747 fi
5748
5749else
5750
5751 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5752 if test "x$LINE" != x ; then
5753 eval "DEFAULT_$LINE"
5754 else
5755 no_cache=1
5756 fi
5757
5758 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5759
5760fi;
5761
5762 eval "$ac_cv_use_timer"
5763 if test "$no_cache" != 1; then
5764 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5765 fi
5766
5767 if test "$wxUSE_TIMER" = yes; then
5768 echo "$as_me:$LINENO: result: yes" >&5
5769echo "${ECHO_T}yes" >&6
5770 else
5771 echo "$as_me:$LINENO: result: no" >&5
5772echo "${ECHO_T}no" >&6
5773 fi
5774
5775
5776 enablestring=
5777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5778echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5779 no_cache=0
5780 # Check whether --enable-unicode or --disable-unicode was given.
5781if test "${enable_unicode+set}" = set; then
5782 enableval="$enable_unicode"
5783
5784 if test "$enableval" = yes; then
5785 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5786 else
5787 ac_cv_use_unicode='wxUSE_UNICODE=no'
5788 fi
5789
5790else
5791
5792 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5793 if test "x$LINE" != x ; then
5794 eval "DEFAULT_$LINE"
5795 else
5796 no_cache=1
5797 fi
5798
5799 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5800
5801fi;
5802
5803 eval "$ac_cv_use_unicode"
5804 if test "$no_cache" != 1; then
5805 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5806 fi
5807
5808 if test "$wxUSE_UNICODE" = yes; then
5809 echo "$as_me:$LINENO: result: yes" >&5
5810echo "${ECHO_T}yes" >&6
5811 else
5812 echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
5814 fi
5815
5816
5817 enablestring=
5818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5819echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5820 no_cache=0
5821 # Check whether --enable-sound or --disable-sound was given.
5822if test "${enable_sound+set}" = set; then
5823 enableval="$enable_sound"
5824
5825 if test "$enableval" = yes; then
5826 ac_cv_use_sound='wxUSE_SOUND=yes'
5827 else
5828 ac_cv_use_sound='wxUSE_SOUND=no'
5829 fi
5830
5831else
5832
5833 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5834 if test "x$LINE" != x ; then
5835 eval "DEFAULT_$LINE"
5836 else
5837 no_cache=1
5838 fi
5839
5840 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5841
5842fi;
5843
5844 eval "$ac_cv_use_sound"
5845 if test "$no_cache" != 1; then
5846 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5847 fi
5848
5849 if test "$wxUSE_SOUND" = yes; then
5850 echo "$as_me:$LINENO: result: yes" >&5
5851echo "${ECHO_T}yes" >&6
5852 else
5853 echo "$as_me:$LINENO: result: no" >&5
5854echo "${ECHO_T}no" >&6
5855 fi
5856
5857
3b57de8b
RL
5858 enablestring=
5859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5860echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5861 no_cache=0
5862 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5863if test "${enable_mediactrl+set}" = set; then
5864 enableval="$enable_mediactrl"
5865
5866 if test "$enableval" = yes; then
5867 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5868 else
5869 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5870 fi
5871
5872else
5873
5874 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5875 if test "x$LINE" != x ; then
5876 eval "DEFAULT_$LINE"
5877 else
5878 no_cache=1
5879 fi
5880
5881 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5882
5883fi;
5884
5885 eval "$ac_cv_use_mediactrl"
5886 if test "$no_cache" != 1; then
5887 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5888 fi
5889
5890 if test "$wxUSE_MEDIACTRL" = yes; then
5891 echo "$as_me:$LINENO: result: yes" >&5
5892echo "${ECHO_T}yes" >&6
5893 else
5894 echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6
5896 fi
5897
5898
a848cd7e
SC
5899 enablestring=
5900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5901echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5902 no_cache=0
5903 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5904if test "${enable_wxprintfv+set}" = set; then
5905 enableval="$enable_wxprintfv"
5906
5907 if test "$enableval" = yes; then
5908 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5909 else
5910 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5911 fi
5912
5913else
5914
5915 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5916 if test "x$LINE" != x ; then
5917 eval "DEFAULT_$LINE"
5918 else
5919 no_cache=1
5920 fi
5921
5922 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5923
5924fi;
5925
5926 eval "$ac_cv_use_wxprintfv"
5927 if test "$no_cache" != 1; then
5928 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5929 fi
5930
5931 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5932 echo "$as_me:$LINENO: result: yes" >&5
5933echo "${ECHO_T}yes" >&6
5934 else
5935 echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6
5937 fi
5938
5939
5940 enablestring=
5941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5942echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5943 no_cache=0
5944 # Check whether --enable-zipstream or --disable-zipstream was given.
5945if test "${enable_zipstream+set}" = set; then
5946 enableval="$enable_zipstream"
5947
5948 if test "$enableval" = yes; then
5949 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5950 else
5951 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5952 fi
5953
5954else
5955
5956 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5957 if test "x$LINE" != x ; then
5958 eval "DEFAULT_$LINE"
5959 else
5960 no_cache=1
5961 fi
5962
5963 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5964
5965fi;
5966
5967 eval "$ac_cv_use_zipstream"
5968 if test "$no_cache" != 1; then
5969 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5970 fi
5971
5972 if test "$wxUSE_ZIPSTREAM" = yes; then
5973 echo "$as_me:$LINENO: result: yes" >&5
5974echo "${ECHO_T}yes" >&6
5975 else
5976 echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6
5978 fi
5979
5980
a848cd7e
SC
5981
5982 enablestring=
5983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5984echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5985 no_cache=0
5986 # Check whether --enable-url or --disable-url was given.
5987if test "${enable_url+set}" = set; then
5988 enableval="$enable_url"
5989
5990 if test "$enableval" = yes; then
5991 ac_cv_use_url='wxUSE_URL=yes'
5992 else
5993 ac_cv_use_url='wxUSE_URL=no'
5994 fi
5995
5996else
5997
5998 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6006
6007fi;
6008
6009 eval "$ac_cv_use_url"
6010 if test "$no_cache" != 1; then
6011 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6012 fi
6013
6014 if test "$wxUSE_URL" = yes; then
6015 echo "$as_me:$LINENO: result: yes" >&5
6016echo "${ECHO_T}yes" >&6
6017 else
6018 echo "$as_me:$LINENO: result: no" >&5
6019echo "${ECHO_T}no" >&6
6020 fi
6021
6022
6023 enablestring=
6024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6025echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6026 no_cache=0
6027 # Check whether --enable-protocol or --disable-protocol was given.
6028if test "${enable_protocol+set}" = set; then
6029 enableval="$enable_protocol"
6030
6031 if test "$enableval" = yes; then
6032 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6033 else
6034 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6035 fi
6036
6037else
6038
6039 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6040 if test "x$LINE" != x ; then
6041 eval "DEFAULT_$LINE"
6042 else
6043 no_cache=1
6044 fi
6045
6046 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6047
6048fi;
6049
6050 eval "$ac_cv_use_protocol"
6051 if test "$no_cache" != 1; then
6052 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6053 fi
6054
6055 if test "$wxUSE_PROTOCOL" = yes; then
6056 echo "$as_me:$LINENO: result: yes" >&5
6057echo "${ECHO_T}yes" >&6
6058 else
6059 echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6
6061 fi
6062
6063
6064 enablestring=
6065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6066echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6067 no_cache=0
6068 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6069if test "${enable_protocol_http+set}" = set; then
6070 enableval="$enable_protocol_http"
6071
6072 if test "$enableval" = yes; then
6073 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6074 else
6075 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6076 fi
6077
6078else
6079
6080 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6088
6089fi;
6090
6091 eval "$ac_cv_use_protocol_http"
6092 if test "$no_cache" != 1; then
6093 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6094 fi
6095
6096 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6097 echo "$as_me:$LINENO: result: yes" >&5
6098echo "${ECHO_T}yes" >&6
6099 else
6100 echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6
6102 fi
6103
6104
6105 enablestring=
6106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6107echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6108 no_cache=0
6109 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6110if test "${enable_protocol_ftp+set}" = set; then
6111 enableval="$enable_protocol_ftp"
6112
6113 if test "$enableval" = yes; then
6114 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6115 else
6116 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6117 fi
6118
6119else
6120
6121 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6122 if test "x$LINE" != x ; then
6123 eval "DEFAULT_$LINE"
6124 else
6125 no_cache=1
6126 fi
6127
6128 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6129
6130fi;
6131
6132 eval "$ac_cv_use_protocol_ftp"
6133 if test "$no_cache" != 1; then
6134 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6135 fi
6136
6137 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6138 echo "$as_me:$LINENO: result: yes" >&5
6139echo "${ECHO_T}yes" >&6
6140 else
6141 echo "$as_me:$LINENO: result: no" >&5
6142echo "${ECHO_T}no" >&6
6143 fi
6144
6145
6146 enablestring=
6147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6148echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6149 no_cache=0
6150 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6151if test "${enable_protocol_file+set}" = set; then
6152 enableval="$enable_protocol_file"
6153
6154 if test "$enableval" = yes; then
6155 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6156 else
6157 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6158 fi
6159
6160else
6161
6162 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6170
6171fi;
6172
6173 eval "$ac_cv_use_protocol_file"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6179 echo "$as_me:$LINENO: result: yes" >&5
6180echo "${ECHO_T}yes" >&6
6181 else
6182 echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6
6184 fi
6185
6186
6187
6188
6189
6190 enablestring=
6191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6192echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6193 no_cache=0
6194 # Check whether --enable-threads or --disable-threads was given.
6195if test "${enable_threads+set}" = set; then
6196 enableval="$enable_threads"
6197
6198 if test "$enableval" = yes; then
6199 ac_cv_use_threads='wxUSE_THREADS=yes'
6200 else
6201 ac_cv_use_threads='wxUSE_THREADS=no'
6202 fi
6203
6204else
6205
6206 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6207 if test "x$LINE" != x ; then
6208 eval "DEFAULT_$LINE"
6209 else
6210 no_cache=1
6211 fi
6212
6213 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6214
6215fi;
6216
6217 eval "$ac_cv_use_threads"
6218 if test "$no_cache" != 1; then
6219 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6220 fi
6221
6222 if test "$wxUSE_THREADS" = yes; then
6223 echo "$as_me:$LINENO: result: yes" >&5
6224echo "${ECHO_T}yes" >&6
6225 else
6226 echo "$as_me:$LINENO: result: no" >&5
6227echo "${ECHO_T}no" >&6
6228 fi
6229
6230
6231if test "$wxUSE_GUI" = "yes"; then
6232
6233
6234
6235 enablestring=
6236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6237echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6238 no_cache=0
6239 # Check whether --enable-docview or --disable-docview was given.
6240if test "${enable_docview+set}" = set; then
6241 enableval="$enable_docview"
6242
6243 if test "$enableval" = yes; then
6244 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6245 else
6246 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6247 fi
6248
6249else
6250
6251 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6252 if test "x$LINE" != x ; then
6253 eval "DEFAULT_$LINE"
6254 else
6255 no_cache=1
6256 fi
6257
6258 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6259
6260fi;
6261
6262 eval "$ac_cv_use_docview"
6263 if test "$no_cache" != 1; then
6264 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6265 fi
6266
6267 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6268 echo "$as_me:$LINENO: result: yes" >&5
6269echo "${ECHO_T}yes" >&6
6270 else
6271 echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
6273 fi
6274
6275
6276 enablestring=
6277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6278echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6279 no_cache=0
6280 # Check whether --enable-help or --disable-help was given.
6281if test "${enable_help+set}" = set; then
6282 enableval="$enable_help"
6283
6284 if test "$enableval" = yes; then
6285 ac_cv_use_help='wxUSE_HELP=yes'
6286 else
6287 ac_cv_use_help='wxUSE_HELP=no'
6288 fi
6289
6290else
6291
6292 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6293 if test "x$LINE" != x ; then
6294 eval "DEFAULT_$LINE"
6295 else
6296 no_cache=1
6297 fi
6298
6299 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6300
6301fi;
6302
6303 eval "$ac_cv_use_help"
6304 if test "$no_cache" != 1; then
6305 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6306 fi
6307
6308 if test "$wxUSE_HELP" = yes; then
6309 echo "$as_me:$LINENO: result: yes" >&5
6310echo "${ECHO_T}yes" >&6
6311 else
6312 echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6
6314 fi
6315
6316
6317 enablestring=
6318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6319echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6320 no_cache=0
6321 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6322if test "${enable_mshtmlhelp+set}" = set; then
6323 enableval="$enable_mshtmlhelp"
6324
6325 if test "$enableval" = yes; then
6326 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6327 else
6328 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6329 fi
6330
6331else
6332
6333 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6341
6342fi;
6343
6344 eval "$ac_cv_use_mshtmlhelp"
6345 if test "$no_cache" != 1; then
6346 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6347 fi
6348
6349 if test "$wxUSE_MS_HTML_HELP" = yes; then
6350 echo "$as_me:$LINENO: result: yes" >&5
6351echo "${ECHO_T}yes" >&6
6352 else
6353 echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6
6355 fi
6356
6357
6358 enablestring=
6359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6360echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6361 no_cache=0
6362 # Check whether --enable-html or --disable-html was given.
6363if test "${enable_html+set}" = set; then
6364 enableval="$enable_html"
6365
6366 if test "$enableval" = yes; then
6367 ac_cv_use_html='wxUSE_HTML=yes'
6368 else
6369 ac_cv_use_html='wxUSE_HTML=no'
6370 fi
6371
6372else
6373
6374 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6375 if test "x$LINE" != x ; then
6376 eval "DEFAULT_$LINE"
6377 else
6378 no_cache=1
6379 fi
6380
6381 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6382
6383fi;
6384
6385 eval "$ac_cv_use_html"
6386 if test "$no_cache" != 1; then
6387 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6388 fi
6389
6390 if test "$wxUSE_HTML" = yes; then
6391 echo "$as_me:$LINENO: result: yes" >&5
6392echo "${ECHO_T}yes" >&6
6393 else
6394 echo "$as_me:$LINENO: result: no" >&5
6395echo "${ECHO_T}no" >&6
6396 fi
6397
6398
6399 enablestring=
6400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6401echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6402 no_cache=0
6403 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6404if test "${enable_htmlhelp+set}" = set; then
6405 enableval="$enable_htmlhelp"
6406
6407 if test "$enableval" = yes; then
6408 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6409 else
6410 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6411 fi
6412
6413else
6414
6415 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6416 if test "x$LINE" != x ; then
6417 eval "DEFAULT_$LINE"
6418 else
6419 no_cache=1
6420 fi
6421
6422 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6423
6424fi;
6425
6426 eval "$ac_cv_use_htmlhelp"
6427 if test "$no_cache" != 1; then
6428 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6429 fi
6430
6431 if test "$wxUSE_WXHTML_HELP" = yes; then
6432 echo "$as_me:$LINENO: result: yes" >&5
6433echo "${ECHO_T}yes" >&6
6434 else
6435 echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6
6437 fi
6438
6439
9a8f0513
VS
6440 enablestring=
6441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6442echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6443 no_cache=0
6444 # Check whether --enable-xrc or --disable-xrc was given.
6445if test "${enable_xrc+set}" = set; then
6446 enableval="$enable_xrc"
6447
6448 if test "$enableval" = yes; then
6449 ac_cv_use_xrc='wxUSE_XRC=yes'
6450 else
6451 ac_cv_use_xrc='wxUSE_XRC=no'
6452 fi
6453
6454else
6455
6456 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6457 if test "x$LINE" != x ; then
6458 eval "DEFAULT_$LINE"
6459 else
6460 no_cache=1
6461 fi
6462
6463 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6464
6465fi;
6466
6467 eval "$ac_cv_use_xrc"
6468 if test "$no_cache" != 1; then
6469 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6470 fi
6471
6472 if test "$wxUSE_XRC" = yes; then
6473 echo "$as_me:$LINENO: result: yes" >&5
6474echo "${ECHO_T}yes" >&6
6475 else
6476 echo "$as_me:$LINENO: result: no" >&5
6477echo "${ECHO_T}no" >&6
6478 fi
6479
6480
a848cd7e
SC
6481 enablestring=
6482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6483echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6484 no_cache=0
6485 # Check whether --enable-constraints or --disable-constraints was given.
6486if test "${enable_constraints+set}" = set; then
6487 enableval="$enable_constraints"
6488
6489 if test "$enableval" = yes; then
6490 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6491 else
6492 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6493 fi
6494
6495else
6496
6497 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6498 if test "x$LINE" != x ; then
6499 eval "DEFAULT_$LINE"
6500 else
6501 no_cache=1
6502 fi
6503
6504 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6505
6506fi;
6507
6508 eval "$ac_cv_use_constraints"
6509 if test "$no_cache" != 1; then
6510 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6511 fi
6512
6513 if test "$wxUSE_CONSTRAINTS" = yes; then
6514 echo "$as_me:$LINENO: result: yes" >&5
6515echo "${ECHO_T}yes" >&6
6516 else
6517 echo "$as_me:$LINENO: result: no" >&5
6518echo "${ECHO_T}no" >&6
6519 fi
6520
6521
6522 enablestring=
6523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6524echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6525 no_cache=0
6526 # Check whether --enable-printarch or --disable-printarch was given.
6527if test "${enable_printarch+set}" = set; then
6528 enableval="$enable_printarch"
6529
6530 if test "$enableval" = yes; then
6531 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6532 else
6533 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6534 fi
6535
6536else
6537
6538 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6539 if test "x$LINE" != x ; then
6540 eval "DEFAULT_$LINE"
6541 else
6542 no_cache=1
6543 fi
6544
6545 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6546
6547fi;
6548
6549 eval "$ac_cv_use_printarch"
6550 if test "$no_cache" != 1; then
6551 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6552 fi
6553
6554 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6555 echo "$as_me:$LINENO: result: yes" >&5
6556echo "${ECHO_T}yes" >&6
6557 else
6558 echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6
6560 fi
6561
6562
6563 enablestring=
6564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6565echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6566 no_cache=0
6567 # Check whether --enable-mdi or --disable-mdi was given.
6568if test "${enable_mdi+set}" = set; then
6569 enableval="$enable_mdi"
6570
6571 if test "$enableval" = yes; then
8a7b1113 6572 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6573 else
8a7b1113 6574 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6575 fi
6576
6577else
6578
8a7b1113 6579 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6580 if test "x$LINE" != x ; then
6581 eval "DEFAULT_$LINE"
6582 else
6583 no_cache=1
6584 fi
6585
8a7b1113 6586 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6587
6588fi;
6589
6590 eval "$ac_cv_use_mdi"
6591 if test "$no_cache" != 1; then
6592 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6593 fi
6594
8a7b1113
VZ
6595 if test "$wxUSE_MDI" = yes; then
6596 echo "$as_me:$LINENO: result: yes" >&5
6597echo "${ECHO_T}yes" >&6
6598 else
6599 echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6
6601 fi
6602
6603
6604 enablestring=
6605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6606echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6607 no_cache=0
6608 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6609if test "${enable_mdidoc+set}" = set; then
6610 enableval="$enable_mdidoc"
6611
6612 if test "$enableval" = yes; then
6613 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6614 else
6615 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6616 fi
6617
6618else
6619
6620 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6621 if test "x$LINE" != x ; then
6622 eval "DEFAULT_$LINE"
6623 else
6624 no_cache=1
6625 fi
6626
6627 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6628
6629fi;
6630
6631 eval "$ac_cv_use_mdidoc"
6632 if test "$no_cache" != 1; then
6633 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6634 fi
6635
a848cd7e
SC
6636 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6637 echo "$as_me:$LINENO: result: yes" >&5
6638echo "${ECHO_T}yes" >&6
6639 else
6640 echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6
6642 fi
6643
6644
6645 enablestring=
6646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6647echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6648 no_cache=0
6649 # Check whether --enable-loggui or --disable-loggui was given.
6650if test "${enable_loggui+set}" = set; then
6651 enableval="$enable_loggui"
6652
6653 if test "$enableval" = yes; then
6654 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6655 else
6656 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6657 fi
6658
6659else
6660
6661 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6662 if test "x$LINE" != x ; then
6663 eval "DEFAULT_$LINE"
6664 else
6665 no_cache=1
6666 fi
6667
6668 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6669
6670fi;
6671
6672 eval "$ac_cv_use_loggui"
6673 if test "$no_cache" != 1; then
6674 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6675 fi
6676
6677 if test "$wxUSE_LOGGUI" = yes; then
6678 echo "$as_me:$LINENO: result: yes" >&5
6679echo "${ECHO_T}yes" >&6
6680 else
6681 echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6
6683 fi
6684
6685
6686 enablestring=
6687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6688echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6689 no_cache=0
6690 # Check whether --enable-logwin or --disable-logwin was given.
6691if test "${enable_logwin+set}" = set; then
6692 enableval="$enable_logwin"
6693
6694 if test "$enableval" = yes; then
6695 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6696 else
6697 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6698 fi
6699
6700else
6701
6702 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6703 if test "x$LINE" != x ; then
6704 eval "DEFAULT_$LINE"
6705 else
6706 no_cache=1
6707 fi
6708
6709 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6710
6711fi;
6712
6713 eval "$ac_cv_use_logwin"
6714 if test "$no_cache" != 1; then
6715 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6716 fi
6717
6718 if test "$wxUSE_LOGWINDOW" = yes; then
6719 echo "$as_me:$LINENO: result: yes" >&5
6720echo "${ECHO_T}yes" >&6
6721 else
6722 echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6
6724 fi
6725
6726
6727 enablestring=
6728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6729echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6730 no_cache=0
6731 # Check whether --enable-logdialog or --disable-logdialog was given.
6732if test "${enable_logdialog+set}" = set; then
6733 enableval="$enable_logdialog"
6734
6735 if test "$enableval" = yes; then
6736 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6737 else
6738 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6739 fi
6740
6741else
6742
6743 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6751
6752fi;
6753
6754 eval "$ac_cv_use_logdialog"
6755 if test "$no_cache" != 1; then
6756 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6757 fi
6758
6759 if test "$wxUSE_LOGDIALOG" = yes; then
6760 echo "$as_me:$LINENO: result: yes" >&5
6761echo "${ECHO_T}yes" >&6
6762 else
6763 echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
6765 fi
6766
6767
646b6ec1
VS
6768 enablestring=
6769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6770echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6771 no_cache=0
6772 # Check whether --enable-webkit or --disable-webkit was given.
6773if test "${enable_webkit+set}" = set; then
6774 enableval="$enable_webkit"
6775
6776 if test "$enableval" = yes; then
6777 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6778 else
6779 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6780 fi
6781
6782else
6783
6784 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
6791 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6792
6793fi;
6794
6795 eval "$ac_cv_use_webkit"
6796 if test "$no_cache" != 1; then
6797 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6798 fi
6799
6800 if test "$wxUSE_WEBKIT" = yes; then
6801 echo "$as_me:$LINENO: result: yes" >&5
6802echo "${ECHO_T}yes" >&6
6803 else
6804 echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6
6806 fi
6807
6808
a848cd7e
SC
6809
6810 enablestring=
6811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6812echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6813 no_cache=0
6814 # Check whether --enable-postscript or --disable-postscript was given.
6815if test "${enable_postscript+set}" = set; then
6816 enableval="$enable_postscript"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6820 else
6821 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6822 fi
6823
6824else
6825
6826 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6834
6835fi;
6836
6837 eval "$ac_cv_use_postscript"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_POSTSCRIPT" = yes; then
6843 echo "$as_me:$LINENO: result: yes" >&5
6844echo "${ECHO_T}yes" >&6
6845 else
6846 echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6
6848 fi
6849
6850
6851
6852
6853
6854 enablestring=
6855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6856echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6857 no_cache=0
6858 # Check whether --enable-prologio or --disable-prologio was given.
6859if test "${enable_prologio+set}" = set; then
6860 enableval="$enable_prologio"
6861
6862 if test "$enableval" = yes; then
6863 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6864 else
6865 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6866 fi
6867
6868else
6869
6870 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6871 if test "x$LINE" != x ; then
6872 eval "DEFAULT_$LINE"
6873 else
6874 no_cache=1
6875 fi
6876
6877 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6878
6879fi;
6880
6881 eval "$ac_cv_use_prologio"
6882 if test "$no_cache" != 1; then
6883 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6884 fi
6885
6886 if test "$wxUSE_PROLOGIO" = yes; then
6887 echo "$as_me:$LINENO: result: yes" >&5
6888echo "${ECHO_T}yes" >&6
6889 else
6890 echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6
6892 fi
6893
6894
6895 enablestring=
6896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6897echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6898 no_cache=0
6899 # Check whether --enable-resources or --disable-resources was given.
6900if test "${enable_resources+set}" = set; then
6901 enableval="$enable_resources"
6902
6903 if test "$enableval" = yes; then
6904 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6905 else
6906 ac_cv_use_resources='wxUSE_RESOURCES=no'
6907 fi
6908
6909else
6910
6911 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6912 if test "x$LINE" != x ; then
6913 eval "DEFAULT_$LINE"
6914 else
6915 no_cache=1
6916 fi
6917
6918 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6919
6920fi;
6921
6922 eval "$ac_cv_use_resources"
6923 if test "$no_cache" != 1; then
6924 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6925 fi
6926
6927 if test "$wxUSE_RESOURCES" = yes; then
6928 echo "$as_me:$LINENO: result: yes" >&5
6929echo "${ECHO_T}yes" >&6
6930 else
6931 echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6
6933 fi
6934
6935
6936
6937
6938 enablestring=
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6941 no_cache=0
6942 # Check whether --enable-clipboard or --disable-clipboard was given.
6943if test "${enable_clipboard+set}" = set; then
6944 enableval="$enable_clipboard"
6945
6946 if test "$enableval" = yes; then
6947 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6948 else
6949 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6950 fi
6951
6952else
6953
6954 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6962
6963fi;
6964
6965 eval "$ac_cv_use_clipboard"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_CLIPBOARD" = yes; then
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
6973 else
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
6976 fi
6977
6978
6979 enablestring=
6980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6981echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6982 no_cache=0
6983 # Check whether --enable-dnd or --disable-dnd was given.
6984if test "${enable_dnd+set}" = set; then
6985 enableval="$enable_dnd"
6986
6987 if test "$enableval" = yes; then
6988 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6989 else
6990 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6991 fi
6992
6993else
6994
6995 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7003
7004fi;
7005
7006 eval "$ac_cv_use_dnd"
7007 if test "$no_cache" != 1; then
7008 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7009 fi
7010
7011 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7012 echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6
7014 else
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
7017 fi
7018
7019
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-metafile or --disable-metafile was given.
7025if test "${enable_metafile+set}" = set; then
7026 enableval="$enable_metafile"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7030 else
7031 ac_cv_use_metafile='wxUSE_METAFILE=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7044
7045fi;
7046
7047 eval "$ac_cv_use_metafile"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_METAFILE" = yes; then
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055 else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058 fi
7059
7060
7061
7062
7063
7064 enablestring=
7065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7066echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7067 no_cache=0
7068 # Check whether --enable-controls or --disable-controls was given.
7069if test "${enable_controls+set}" = set; then
7070 enableval="$enable_controls"
7071
7072 if test "$enableval" = yes; then
7073 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7074 else
7075 ac_cv_use_controls='wxUSE_CONTROLS=no'
7076 fi
7077
7078else
7079
7080 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7081 if test "x$LINE" != x ; then
7082 eval "DEFAULT_$LINE"
7083 else
7084 no_cache=1
7085 fi
7086
7087 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7088
7089fi;
7090
7091 eval "$ac_cv_use_controls"
7092 if test "$no_cache" != 1; then
7093 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7094 fi
7095
7096 if test "$wxUSE_CONTROLS" = yes; then
7097 echo "$as_me:$LINENO: result: yes" >&5
7098echo "${ECHO_T}yes" >&6
7099 else
7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
7102 fi
7103
7104
7105if test "$wxUSE_CONTROLS" = "yes"; then
7106 DEFAULT_wxUSE_ACCEL=yes
7107 DEFAULT_wxUSE_BMPBUTTON=yes
7108 DEFAULT_wxUSE_BUTTON=yes
7109 DEFAULT_wxUSE_CALCTRL=no
7110 DEFAULT_wxUSE_CARET=yes
7111 DEFAULT_wxUSE_COMBOBOX=yes
7112 DEFAULT_wxUSE_CHECKBOX=yes
7113 DEFAULT_wxUSE_CHECKLISTBOX=yes
7114 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7115 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
7116 DEFAULT_wxUSE_GAUGE=yes
7117 DEFAULT_wxUSE_GRID=yes
7118 DEFAULT_wxUSE_IMAGLIST=yes
7119 DEFAULT_wxUSE_LISTBOOK=yes
7120 DEFAULT_wxUSE_LISTBOX=yes
7121 DEFAULT_wxUSE_LISTCTRL=yes
7122 DEFAULT_wxUSE_NOTEBOOK=yes
7123 DEFAULT_wxUSE_RADIOBOX=yes
7124 DEFAULT_wxUSE_RADIOBTN=yes
7125 DEFAULT_wxUSE_SASH=yes
7126 DEFAULT_wxUSE_SCROLLBAR=yes
7127 DEFAULT_wxUSE_SLIDER=yes
7128 DEFAULT_wxUSE_SPINBTN=yes
7129 DEFAULT_wxUSE_SPINCTRL=yes
7130 DEFAULT_wxUSE_SPLITTER=yes
7131 DEFAULT_wxUSE_STATBMP=yes
7132 DEFAULT_wxUSE_STATBOX=yes
7133 DEFAULT_wxUSE_STATLINE=yes
7134 DEFAULT_wxUSE_STATUSBAR=yes
7135 DEFAULT_wxUSE_TAB_DIALOG=yes
7136 DEFAULT_wxUSE_TOGGLEBTN=yes
7137 DEFAULT_wxUSE_TOOLBAR=yes
7138 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7139 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7140 DEFAULT_wxUSE_TOOLTIPS=yes
7141 DEFAULT_wxUSE_TREECTRL=yes
7142 DEFAULT_wxUSE_POPUPWIN=yes
7143 DEFAULT_wxUSE_TIPWINDOW=yes
7144elif test "$wxUSE_CONTROLS" = "no"; then
7145 DEFAULT_wxUSE_ACCEL=no
7146 DEFAULT_wxUSE_BMPBUTTON=no
7147 DEFAULT_wxUSE_BUTTON=no
7148 DEFAULT_wxUSE_CALCTRL=no
7149 DEFAULT_wxUSE_CARET=no
7150 DEFAULT_wxUSE_COMBOBOX=no
7151 DEFAULT_wxUSE_CHECKBOX=no
7152 DEFAULT_wxUSE_CHECKLISTBOX=no
7153 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7154 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7155 DEFAULT_wxUSE_GAUGE=no
7156 DEFAULT_wxUSE_GRID=no
7157 DEFAULT_wxUSE_IMAGLIST=no
7158 DEFAULT_wxUSE_LISTBOOK=no
7159 DEFAULT_wxUSE_LISTBOX=no
7160 DEFAULT_wxUSE_LISTCTRL=no
7161 DEFAULT_wxUSE_NOTEBOOK=no
7162 DEFAULT_wxUSE_RADIOBOX=no
7163 DEFAULT_wxUSE_RADIOBTN=no
7164 DEFAULT_wxUSE_SASH=no
7165 DEFAULT_wxUSE_SCROLLBAR=no
7166 DEFAULT_wxUSE_SLIDER=no
7167 DEFAULT_wxUSE_SPINBTN=no
7168 DEFAULT_wxUSE_SPINCTRL=no
7169 DEFAULT_wxUSE_SPLITTER=no
7170 DEFAULT_wxUSE_STATBMP=no
7171 DEFAULT_wxUSE_STATBOX=no
7172 DEFAULT_wxUSE_STATLINE=no
7173 DEFAULT_wxUSE_STATUSBAR=no
7174 DEFAULT_wxUSE_TAB_DIALOG=no
7175 DEFAULT_wxUSE_TOGGLEBTN=no
7176 DEFAULT_wxUSE_TOOLBAR=no
7177 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7178 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7179 DEFAULT_wxUSE_TOOLTIPS=no
7180 DEFAULT_wxUSE_TREECTRL=no
7181 DEFAULT_wxUSE_POPUPWIN=no
7182 DEFAULT_wxUSE_TIPWINDOW=no
7183fi
7184
a848cd7e
SC
7185
7186 enablestring=
7187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7188echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7189 no_cache=0
7190 # Check whether --enable-accel or --disable-accel was given.
7191if test "${enable_accel+set}" = set; then
7192 enableval="$enable_accel"
7193
7194 if test "$enableval" = yes; then
7195 ac_cv_use_accel='wxUSE_ACCEL=yes'
7196 else
7197 ac_cv_use_accel='wxUSE_ACCEL=no'
7198 fi
7199
7200else
7201
7202 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7203 if test "x$LINE" != x ; then
7204 eval "DEFAULT_$LINE"
7205 else
7206 no_cache=1
7207 fi
7208
7209 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7210
7211fi;
7212
7213 eval "$ac_cv_use_accel"
7214 if test "$no_cache" != 1; then
7215 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7216 fi
7217
7218 if test "$wxUSE_ACCEL" = yes; then
7219 echo "$as_me:$LINENO: result: yes" >&5
7220echo "${ECHO_T}yes" >&6
7221 else
7222 echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6
7224 fi
7225
7226
7227 enablestring=
7228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7229echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7230 no_cache=0
7231 # Check whether --enable-button or --disable-button was given.
7232if test "${enable_button+set}" = set; then
7233 enableval="$enable_button"
7234
7235 if test "$enableval" = yes; then
7236 ac_cv_use_button='wxUSE_BUTTON=yes'
7237 else
7238 ac_cv_use_button='wxUSE_BUTTON=no'
7239 fi
7240
7241else
7242
7243 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7244 if test "x$LINE" != x ; then
7245 eval "DEFAULT_$LINE"
7246 else
7247 no_cache=1
7248 fi
7249
7250 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7251
7252fi;
7253
7254 eval "$ac_cv_use_button"
7255 if test "$no_cache" != 1; then
7256 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7257 fi
7258
7259 if test "$wxUSE_BUTTON" = yes; then
7260 echo "$as_me:$LINENO: result: yes" >&5
7261echo "${ECHO_T}yes" >&6
7262 else
7263 echo "$as_me:$LINENO: result: no" >&5
7264echo "${ECHO_T}no" >&6
7265 fi
7266
7267
7268 enablestring=
7269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7270echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7271 no_cache=0
7272 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7273if test "${enable_bmpbutton+set}" = set; then
7274 enableval="$enable_bmpbutton"
7275
7276 if test "$enableval" = yes; then
7277 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7278 else
7279 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7280 fi
7281
7282else
7283
7284 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7285 if test "x$LINE" != x ; then
7286 eval "DEFAULT_$LINE"
7287 else
7288 no_cache=1
7289 fi
7290
7291 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7292
7293fi;
7294
7295 eval "$ac_cv_use_bmpbutton"
7296 if test "$no_cache" != 1; then
7297 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7298 fi
7299
7300 if test "$wxUSE_BMPBUTTON" = yes; then
7301 echo "$as_me:$LINENO: result: yes" >&5
7302echo "${ECHO_T}yes" >&6
7303 else
7304 echo "$as_me:$LINENO: result: no" >&5
7305echo "${ECHO_T}no" >&6
7306 fi
7307
7308
7309 enablestring=
7310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7311echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7312 no_cache=0
7313 # Check whether --enable-calendar or --disable-calendar was given.
7314if test "${enable_calendar+set}" = set; then
7315 enableval="$enable_calendar"
7316
7317 if test "$enableval" = yes; then
7318 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7319 else
7320 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7321 fi
7322
7323else
7324
7325 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7326 if test "x$LINE" != x ; then
7327 eval "DEFAULT_$LINE"
7328 else
7329 no_cache=1
7330 fi
7331
7332 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7333
7334fi;
7335
7336 eval "$ac_cv_use_calendar"
7337 if test "$no_cache" != 1; then
7338 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7339 fi
7340
7341 if test "$wxUSE_CALCTRL" = yes; then
7342 echo "$as_me:$LINENO: result: yes" >&5
7343echo "${ECHO_T}yes" >&6
7344 else
7345 echo "$as_me:$LINENO: result: no" >&5
7346echo "${ECHO_T}no" >&6
7347 fi
7348
7349
7350 enablestring=
7351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7352echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7353 no_cache=0
7354 # Check whether --enable-caret or --disable-caret was given.
7355if test "${enable_caret+set}" = set; then
7356 enableval="$enable_caret"
7357
7358 if test "$enableval" = yes; then
7359 ac_cv_use_caret='wxUSE_CARET=yes'
7360 else
7361 ac_cv_use_caret='wxUSE_CARET=no'
7362 fi
7363
7364else
7365
7366 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7367 if test "x$LINE" != x ; then
7368 eval "DEFAULT_$LINE"
7369 else
7370 no_cache=1
7371 fi
7372
7373 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7374
7375fi;
7376
7377 eval "$ac_cv_use_caret"
7378 if test "$no_cache" != 1; then
7379 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7380 fi
7381
7382 if test "$wxUSE_CARET" = yes; then
7383 echo "$as_me:$LINENO: result: yes" >&5
7384echo "${ECHO_T}yes" >&6
7385 else
7386 echo "$as_me:$LINENO: result: no" >&5
7387echo "${ECHO_T}no" >&6
7388 fi
7389
7390
7391 enablestring=
7392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7393echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7394 no_cache=0
7395 # Check whether --enable-checkbox or --disable-checkbox was given.
7396if test "${enable_checkbox+set}" = set; then
7397 enableval="$enable_checkbox"
7398
7399 if test "$enableval" = yes; then
7400 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7401 else
7402 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7403 fi
7404
7405else
7406
7407 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7408 if test "x$LINE" != x ; then
7409 eval "DEFAULT_$LINE"
7410 else
7411 no_cache=1
7412 fi
7413
7414 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7415
7416fi;
7417
7418 eval "$ac_cv_use_checkbox"
7419 if test "$no_cache" != 1; then
7420 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7421 fi
7422
7423 if test "$wxUSE_CHECKBOX" = yes; then
7424 echo "$as_me:$LINENO: result: yes" >&5
7425echo "${ECHO_T}yes" >&6
7426 else
7427 echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6
7429 fi
7430
7431
7432 enablestring=
7433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7434echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7435 no_cache=0
7436 # Check whether --enable-checklst or --disable-checklst was given.
7437if test "${enable_checklst+set}" = set; then
7438 enableval="$enable_checklst"
7439
7440 if test "$enableval" = yes; then
7441 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7442 else
7443 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7444 fi
7445
7446else
7447
7448 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7449 if test "x$LINE" != x ; then
7450 eval "DEFAULT_$LINE"
7451 else
7452 no_cache=1
7453 fi
7454
7455 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7456
7457fi;
7458
7459 eval "$ac_cv_use_checklst"
7460 if test "$no_cache" != 1; then
7461 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7462 fi
7463
7464 if test "$wxUSE_CHECKLST" = yes; then
7465 echo "$as_me:$LINENO: result: yes" >&5
7466echo "${ECHO_T}yes" >&6
7467 else
7468 echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6
7470 fi
7471
7472
7473 enablestring=
7474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7475echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7476 no_cache=0
7477 # Check whether --enable-choice or --disable-choice was given.
7478if test "${enable_choice+set}" = set; then
7479 enableval="$enable_choice"
7480
7481 if test "$enableval" = yes; then
7482 ac_cv_use_choice='wxUSE_CHOICE=yes'
7483 else
7484 ac_cv_use_choice='wxUSE_CHOICE=no'
7485 fi
7486
7487else
7488
7489 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7490 if test "x$LINE" != x ; then
7491 eval "DEFAULT_$LINE"
7492 else
7493 no_cache=1
7494 fi
7495
7496 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7497
7498fi;
7499
7500 eval "$ac_cv_use_choice"
7501 if test "$no_cache" != 1; then
7502 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7503 fi
7504
7505 if test "$wxUSE_CHOICE" = yes; then
7506 echo "$as_me:$LINENO: result: yes" >&5
7507echo "${ECHO_T}yes" >&6
7508 else
7509 echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6
7511 fi
7512
7513
92bbdbcd
WS
7514 enablestring=
7515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7516echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7517 no_cache=0
7518 # Check whether --enable-choicebook or --disable-choicebook was given.
7519if test "${enable_choicebook+set}" = set; then
7520 enableval="$enable_choicebook"
7521
7522 if test "$enableval" = yes; then
7523 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7524 else
7525 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7526 fi
7527
7528else
7529
7530 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7531 if test "x$LINE" != x ; then
7532 eval "DEFAULT_$LINE"
7533 else
7534 no_cache=1
7535 fi
7536
7537 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7538
7539fi;
7540
7541 eval "$ac_cv_use_choicebook"
7542 if test "$no_cache" != 1; then
7543 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7544 fi
7545
7546 if test "$wxUSE_CHOICEBOOK" = yes; then
7547 echo "$as_me:$LINENO: result: yes" >&5
7548echo "${ECHO_T}yes" >&6
7549 else
7550 echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6
7552 fi
7553
7554
a848cd7e
SC
7555 enablestring=
7556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7557echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7558 no_cache=0
7559 # Check whether --enable-combobox or --disable-combobox was given.
7560if test "${enable_combobox+set}" = set; then
7561 enableval="$enable_combobox"
7562
7563 if test "$enableval" = yes; then
7564 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7565 else
7566 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7567 fi
7568
7569else
7570
7571 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7572 if test "x$LINE" != x ; then
7573 eval "DEFAULT_$LINE"
7574 else
7575 no_cache=1
7576 fi
7577
7578 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7579
7580fi;
7581
7582 eval "$ac_cv_use_combobox"
7583 if test "$no_cache" != 1; then
7584 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7585 fi
7586
7587 if test "$wxUSE_COMBOBOX" = yes; then
7588 echo "$as_me:$LINENO: result: yes" >&5
7589echo "${ECHO_T}yes" >&6
7590 else
7591 echo "$as_me:$LINENO: result: no" >&5
7592echo "${ECHO_T}no" >&6
7593 fi
7594
7595
7596 enablestring=
7597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7598echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7599 no_cache=0
7600 # Check whether --enable-display or --disable-display was given.
7601if test "${enable_display+set}" = set; then
7602 enableval="$enable_display"
7603
7604 if test "$enableval" = yes; then
7605 ac_cv_use_display='wxUSE_DISPLAY=yes'
7606 else
7607 ac_cv_use_display='wxUSE_DISPLAY=no'
7608 fi
7609
7610else
7611
7612 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7613 if test "x$LINE" != x ; then
7614 eval "DEFAULT_$LINE"
7615 else
7616 no_cache=1
7617 fi
7618
7619 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7620
7621fi;
7622
7623 eval "$ac_cv_use_display"
7624 if test "$no_cache" != 1; then
7625 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7626 fi
7627
7628 if test "$wxUSE_DISPLAY" = yes; then
7629 echo "$as_me:$LINENO: result: yes" >&5
7630echo "${ECHO_T}yes" >&6
7631 else
7632 echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6
7634 fi
7635
7636
7637 enablestring=
7638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7639echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7640 no_cache=0
7641 # Check whether --enable-gauge or --disable-gauge was given.
7642if test "${enable_gauge+set}" = set; then
7643 enableval="$enable_gauge"
7644
7645 if test "$enableval" = yes; then
7646 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7647 else
7648 ac_cv_use_gauge='wxUSE_GAUGE=no'
7649 fi
7650
7651else
7652
7653 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7654 if test "x$LINE" != x ; then
7655 eval "DEFAULT_$LINE"
7656 else
7657 no_cache=1
7658 fi
7659
7660 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7661
7662fi;
7663
7664 eval "$ac_cv_use_gauge"
7665 if test "$no_cache" != 1; then
7666 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7667 fi
7668
7669 if test "$wxUSE_GAUGE" = yes; then
7670 echo "$as_me:$LINENO: result: yes" >&5
7671echo "${ECHO_T}yes" >&6
7672 else
7673 echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
7675 fi
7676
7677
7678 enablestring=
7679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7680echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7681 no_cache=0
7682 # Check whether --enable-grid or --disable-grid was given.
7683if test "${enable_grid+set}" = set; then
7684 enableval="$enable_grid"
7685
7686 if test "$enableval" = yes; then
7687 ac_cv_use_grid='wxUSE_GRID=yes'
7688 else
7689 ac_cv_use_grid='wxUSE_GRID=no'
7690 fi
7691
7692else
7693
7694 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7695 if test "x$LINE" != x ; then
7696 eval "DEFAULT_$LINE"
7697 else
7698 no_cache=1
7699 fi
7700
7701 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7702
7703fi;
7704
7705 eval "$ac_cv_use_grid"
7706 if test "$no_cache" != 1; then
7707 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7708 fi
7709
7710 if test "$wxUSE_GRID" = yes; then
7711 echo "$as_me:$LINENO: result: yes" >&5
7712echo "${ECHO_T}yes" >&6
7713 else
7714 echo "$as_me:$LINENO: result: no" >&5
7715echo "${ECHO_T}no" >&6
7716 fi
7717
7718
7719 enablestring=
7720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7721echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7722 no_cache=0
7723 # Check whether --enable-imaglist or --disable-imaglist was given.
7724if test "${enable_imaglist+set}" = set; then
7725 enableval="$enable_imaglist"
7726
7727 if test "$enableval" = yes; then
7728 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7729 else
7730 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7731 fi
7732
7733else
7734
7735 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7736 if test "x$LINE" != x ; then
7737 eval "DEFAULT_$LINE"
7738 else
7739 no_cache=1
7740 fi
7741
7742 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7743
7744fi;
7745
7746 eval "$ac_cv_use_imaglist"
7747 if test "$no_cache" != 1; then
7748 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7749 fi
7750
7751 if test "$wxUSE_IMAGLIST" = yes; then
7752 echo "$as_me:$LINENO: result: yes" >&5
7753echo "${ECHO_T}yes" >&6
7754 else
7755 echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6
7757 fi
7758
7759
7760 enablestring=
7761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7762echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7763 no_cache=0
7764 # Check whether --enable-listbook or --disable-listbook was given.
7765if test "${enable_listbook+set}" = set; then
7766 enableval="$enable_listbook"
7767
7768 if test "$enableval" = yes; then
7769 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7770 else
7771 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7772 fi
7773
7774else
7775
7776 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7777 if test "x$LINE" != x ; then
7778 eval "DEFAULT_$LINE"
7779 else
7780 no_cache=1
7781 fi
7782
7783 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7784
7785fi;
7786
7787 eval "$ac_cv_use_listbook"
7788 if test "$no_cache" != 1; then
7789 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7790 fi
7791
7792 if test "$wxUSE_LISTBOOK" = yes; then
7793 echo "$as_me:$LINENO: result: yes" >&5
7794echo "${ECHO_T}yes" >&6
7795 else
7796 echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6
7798 fi
7799
7800
7801 enablestring=
7802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7803echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7804 no_cache=0
7805 # Check whether --enable-listbox or --disable-listbox was given.
7806if test "${enable_listbox+set}" = set; then
7807 enableval="$enable_listbox"
7808
7809 if test "$enableval" = yes; then
7810 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7811 else
7812 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7813 fi
7814
7815else
7816
7817 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7818 if test "x$LINE" != x ; then
7819 eval "DEFAULT_$LINE"
7820 else
7821 no_cache=1
7822 fi
7823
7824 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7825
7826fi;
7827
7828 eval "$ac_cv_use_listbox"
7829 if test "$no_cache" != 1; then
7830 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7831 fi
7832
7833 if test "$wxUSE_LISTBOX" = yes; then
7834 echo "$as_me:$LINENO: result: yes" >&5
7835echo "${ECHO_T}yes" >&6
7836 else
7837 echo "$as_me:$LINENO: result: no" >&5
7838echo "${ECHO_T}no" >&6
7839 fi
7840
7841
7842 enablestring=
7843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7844echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7845 no_cache=0
7846 # Check whether --enable-listctrl or --disable-listctrl was given.
7847if test "${enable_listctrl+set}" = set; then
7848 enableval="$enable_listctrl"
7849
7850 if test "$enableval" = yes; then
7851 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7852 else
7853 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7854 fi
7855
7856else
7857
7858 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7859 if test "x$LINE" != x ; then
7860 eval "DEFAULT_$LINE"
7861 else
7862 no_cache=1
7863 fi
7864
7865 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7866
7867fi;
7868
7869 eval "$ac_cv_use_listctrl"
7870 if test "$no_cache" != 1; then
7871 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7872 fi
7873
7874 if test "$wxUSE_LISTCTRL" = yes; then
7875 echo "$as_me:$LINENO: result: yes" >&5
7876echo "${ECHO_T}yes" >&6
7877 else
7878 echo "$as_me:$LINENO: result: no" >&5
7879echo "${ECHO_T}no" >&6
7880 fi
7881
7882
7883 enablestring=
7884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7885echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7886 no_cache=0
7887 # Check whether --enable-notebook or --disable-notebook was given.
7888if test "${enable_notebook+set}" = set; then
7889 enableval="$enable_notebook"
7890
7891 if test "$enableval" = yes; then
7892 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7893 else
7894 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7895 fi
7896
7897else
7898
7899 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7900 if test "x$LINE" != x ; then
7901 eval "DEFAULT_$LINE"
7902 else
7903 no_cache=1
7904 fi
7905
7906 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7907
7908fi;
7909
7910 eval "$ac_cv_use_notebook"
7911 if test "$no_cache" != 1; then
7912 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7913 fi
7914
7915 if test "$wxUSE_NOTEBOOK" = yes; then
7916 echo "$as_me:$LINENO: result: yes" >&5
7917echo "${ECHO_T}yes" >&6
7918 else
7919 echo "$as_me:$LINENO: result: no" >&5
7920echo "${ECHO_T}no" >&6
7921 fi
7922
7923
7924 enablestring=
7925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7926echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7927 no_cache=0
7928 # Check whether --enable-radiobox or --disable-radiobox was given.
7929if test "${enable_radiobox+set}" = set; then
7930 enableval="$enable_radiobox"
7931
7932 if test "$enableval" = yes; then
7933 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7934 else
7935 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7936 fi
7937
7938else
7939
7940 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7941 if test "x$LINE" != x ; then
7942 eval "DEFAULT_$LINE"
7943 else
7944 no_cache=1
7945 fi
7946
7947 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7948
7949fi;
7950
7951 eval "$ac_cv_use_radiobox"
7952 if test "$no_cache" != 1; then
7953 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7954 fi
7955
7956 if test "$wxUSE_RADIOBOX" = yes; then
7957 echo "$as_me:$LINENO: result: yes" >&5
7958echo "${ECHO_T}yes" >&6
7959 else
7960 echo "$as_me:$LINENO: result: no" >&5
7961echo "${ECHO_T}no" >&6
7962 fi
7963
7964
7965 enablestring=
7966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7967echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7968 no_cache=0
7969 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7970if test "${enable_radiobtn+set}" = set; then
7971 enableval="$enable_radiobtn"
7972
7973 if test "$enableval" = yes; then
7974 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7975 else
7976 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7977 fi
7978
7979else
7980
7981 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7982 if test "x$LINE" != x ; then
7983 eval "DEFAULT_$LINE"
7984 else
7985 no_cache=1
7986 fi
7987
7988 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7989
7990fi;
7991
7992 eval "$ac_cv_use_radiobtn"
7993 if test "$no_cache" != 1; then
7994 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7995 fi
7996
7997 if test "$wxUSE_RADIOBTN" = yes; then
7998 echo "$as_me:$LINENO: result: yes" >&5
7999echo "${ECHO_T}yes" >&6
8000 else
8001 echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6
8003 fi
8004
8005
8006 enablestring=
8007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8008echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8009 no_cache=0
8010 # Check whether --enable-sash or --disable-sash was given.
8011if test "${enable_sash+set}" = set; then
8012 enableval="$enable_sash"
8013
8014 if test "$enableval" = yes; then
8015 ac_cv_use_sash='wxUSE_SASH=yes'
8016 else
8017 ac_cv_use_sash='wxUSE_SASH=no'
8018 fi
8019
8020else
8021
8022 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8023 if test "x$LINE" != x ; then
8024 eval "DEFAULT_$LINE"
8025 else
8026 no_cache=1
8027 fi
8028
8029 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8030
8031fi;
8032
8033 eval "$ac_cv_use_sash"
8034 if test "$no_cache" != 1; then
8035 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8036 fi
8037
8038 if test "$wxUSE_SASH" = yes; then
8039 echo "$as_me:$LINENO: result: yes" >&5
8040echo "${ECHO_T}yes" >&6
8041 else
8042 echo "$as_me:$LINENO: result: no" >&5
8043echo "${ECHO_T}no" >&6
8044 fi
8045
8046
8047 enablestring=
8048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8049echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8050 no_cache=0
8051 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8052if test "${enable_scrollbar+set}" = set; then
8053 enableval="$enable_scrollbar"
8054
8055 if test "$enableval" = yes; then
8056 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8057 else
8058 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8059 fi
8060
8061else
8062
8063 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8064 if test "x$LINE" != x ; then
8065 eval "DEFAULT_$LINE"
8066 else
8067 no_cache=1
8068 fi
8069
8070 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8071
8072fi;
8073
8074 eval "$ac_cv_use_scrollbar"
8075 if test "$no_cache" != 1; then
8076 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8077 fi
8078
8079 if test "$wxUSE_SCROLLBAR" = yes; then
8080 echo "$as_me:$LINENO: result: yes" >&5
8081echo "${ECHO_T}yes" >&6
8082 else
8083 echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6
8085 fi
8086
8087
8088 enablestring=
8089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8090echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8091 no_cache=0
8092 # Check whether --enable-slider or --disable-slider was given.
8093if test "${enable_slider+set}" = set; then
8094 enableval="$enable_slider"
8095
8096 if test "$enableval" = yes; then
8097 ac_cv_use_slider='wxUSE_SLIDER=yes'
8098 else
8099 ac_cv_use_slider='wxUSE_SLIDER=no'
8100 fi
8101
8102else
8103
8104 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8105 if test "x$LINE" != x ; then
8106 eval "DEFAULT_$LINE"
8107 else
8108 no_cache=1
8109 fi
8110
8111 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8112
8113fi;
8114
8115 eval "$ac_cv_use_slider"
8116 if test "$no_cache" != 1; then
8117 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8118 fi
8119
8120 if test "$wxUSE_SLIDER" = yes; then
8121 echo "$as_me:$LINENO: result: yes" >&5
8122echo "${ECHO_T}yes" >&6
8123 else
8124 echo "$as_me:$LINENO: result: no" >&5
8125echo "${ECHO_T}no" >&6
8126 fi
8127
8128
8129 enablestring=
8130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8131echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8132 no_cache=0
8133 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8134if test "${enable_spinbtn+set}" = set; then
8135 enableval="$enable_spinbtn"
8136
8137 if test "$enableval" = yes; then
8138 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8139 else
8140 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8141 fi
8142
8143else
8144
8145 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8146 if test "x$LINE" != x ; then
8147 eval "DEFAULT_$LINE"
8148 else
8149 no_cache=1
8150 fi
8151
8152 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8153
8154fi;
8155
8156 eval "$ac_cv_use_spinbtn"
8157 if test "$no_cache" != 1; then
8158 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8159 fi
8160
8161 if test "$wxUSE_SPINBTN" = yes; then
8162 echo "$as_me:$LINENO: result: yes" >&5
8163echo "${ECHO_T}yes" >&6
8164 else
8165 echo "$as_me:$LINENO: result: no" >&5
8166echo "${ECHO_T}no" >&6
8167 fi
8168
8169
8170 enablestring=
8171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8172echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8173 no_cache=0
8174 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8175if test "${enable_spinctrl+set}" = set; then
8176 enableval="$enable_spinctrl"
8177
8178 if test "$enableval" = yes; then
8179 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8180 else
8181 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8182 fi
8183
8184else
8185
8186 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8187 if test "x$LINE" != x ; then
8188 eval "DEFAULT_$LINE"
8189 else
8190 no_cache=1
8191 fi
8192
8193 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8194
8195fi;
8196
8197 eval "$ac_cv_use_spinctrl"
8198 if test "$no_cache" != 1; then
8199 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8200 fi
8201
8202 if test "$wxUSE_SPINCTRL" = yes; then
8203 echo "$as_me:$LINENO: result: yes" >&5
8204echo "${ECHO_T}yes" >&6
8205 else
8206 echo "$as_me:$LINENO: result: no" >&5
8207echo "${ECHO_T}no" >&6
8208 fi
8209
8210
8211 enablestring=
8212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8213echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8214 no_cache=0
8215 # Check whether --enable-splitter or --disable-splitter was given.
8216if test "${enable_splitter+set}" = set; then
8217 enableval="$enable_splitter"
8218
8219 if test "$enableval" = yes; then
8220 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8221 else
8222 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8223 fi
8224
8225else
8226
8227 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8228 if test "x$LINE" != x ; then
8229 eval "DEFAULT_$LINE"
8230 else
8231 no_cache=1
8232 fi
8233
8234 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8235
8236fi;
8237
8238 eval "$ac_cv_use_splitter"
8239 if test "$no_cache" != 1; then
8240 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8241 fi
8242
8243 if test "$wxUSE_SPLITTER" = yes; then
8244 echo "$as_me:$LINENO: result: yes" >&5
8245echo "${ECHO_T}yes" >&6
8246 else
8247 echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6
8249 fi
8250
8251
8252 enablestring=
8253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8254echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8255 no_cache=0
8256 # Check whether --enable-statbmp or --disable-statbmp was given.
8257if test "${enable_statbmp+set}" = set; then
8258 enableval="$enable_statbmp"
8259
8260 if test "$enableval" = yes; then
8261 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8262 else
8263 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8264 fi
8265
8266else
8267
8268 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8276
8277fi;
8278
8279 eval "$ac_cv_use_statbmp"
8280 if test "$no_cache" != 1; then
8281 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8282 fi
8283
8284 if test "$wxUSE_STATBMP" = yes; then
8285 echo "$as_me:$LINENO: result: yes" >&5
8286echo "${ECHO_T}yes" >&6
8287 else
8288 echo "$as_me:$LINENO: result: no" >&5
8289echo "${ECHO_T}no" >&6
8290 fi
8291
8292
8293 enablestring=
8294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8295echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8296 no_cache=0
8297 # Check whether --enable-statbox or --disable-statbox was given.
8298if test "${enable_statbox+set}" = set; then
8299 enableval="$enable_statbox"
8300
8301 if test "$enableval" = yes; then
8302 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8303 else
8304 ac_cv_use_statbox='wxUSE_STATBOX=no'
8305 fi
8306
8307else
8308
8309 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8310 if test "x$LINE" != x ; then
8311 eval "DEFAULT_$LINE"
8312 else
8313 no_cache=1
8314 fi
8315
8316 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8317
8318fi;
8319
8320 eval "$ac_cv_use_statbox"
8321 if test "$no_cache" != 1; then
8322 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8323 fi
8324
8325 if test "$wxUSE_STATBOX" = yes; then
8326 echo "$as_me:$LINENO: result: yes" >&5
8327echo "${ECHO_T}yes" >&6
8328 else
8329 echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6
8331 fi
8332
8333
8334 enablestring=
8335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8336echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8337 no_cache=0
8338 # Check whether --enable-statline or --disable-statline was given.
8339if test "${enable_statline+set}" = set; then
8340 enableval="$enable_statline"
8341
8342 if test "$enableval" = yes; then
8343 ac_cv_use_statline='wxUSE_STATLINE=yes'
8344 else
8345 ac_cv_use_statline='wxUSE_STATLINE=no'
8346 fi
8347
8348else
8349
8350 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8351 if test "x$LINE" != x ; then
8352 eval "DEFAULT_$LINE"
8353 else
8354 no_cache=1
8355 fi
8356
8357 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8358
8359fi;
8360
8361 eval "$ac_cv_use_statline"
8362 if test "$no_cache" != 1; then
8363 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8364 fi
8365
8366 if test "$wxUSE_STATLINE" = yes; then
8367 echo "$as_me:$LINENO: result: yes" >&5
8368echo "${ECHO_T}yes" >&6
8369 else
8370 echo "$as_me:$LINENO: result: no" >&5
8371echo "${ECHO_T}no" >&6
8372 fi
8373
8374
8375 enablestring=
8376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8377echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8378 no_cache=0
8379 # Check whether --enable-stattext or --disable-stattext was given.
8380if test "${enable_stattext+set}" = set; then
8381 enableval="$enable_stattext"
8382
8383 if test "$enableval" = yes; then
8384 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8385 else
8386 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8387 fi
8388
8389else
8390
8391 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8392 if test "x$LINE" != x ; then
8393 eval "DEFAULT_$LINE"
8394 else
8395 no_cache=1
8396 fi
8397
8398 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8399
8400fi;
8401
8402 eval "$ac_cv_use_stattext"
8403 if test "$no_cache" != 1; then
8404 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8405 fi
8406
8407 if test "$wxUSE_STATTEXT" = yes; then
8408 echo "$as_me:$LINENO: result: yes" >&5
8409echo "${ECHO_T}yes" >&6
8410 else
8411 echo "$as_me:$LINENO: result: no" >&5
8412echo "${ECHO_T}no" >&6
8413 fi
8414
8415
8416 enablestring=
8417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8418echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8419 no_cache=0
8420 # Check whether --enable-statusbar or --disable-statusbar was given.
8421if test "${enable_statusbar+set}" = set; then
8422 enableval="$enable_statusbar"
8423
8424 if test "$enableval" = yes; then
8425 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8426 else
8427 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8428 fi
8429
8430else
8431
8432 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8433 if test "x$LINE" != x ; then
8434 eval "DEFAULT_$LINE"
8435 else
8436 no_cache=1
8437 fi
8438
8439 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8440
8441fi;
8442
8443 eval "$ac_cv_use_statusbar"
8444 if test "$no_cache" != 1; then
8445 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8446 fi
8447
8448 if test "$wxUSE_STATUSBAR" = yes; then
8449 echo "$as_me:$LINENO: result: yes" >&5
8450echo "${ECHO_T}yes" >&6
8451 else
8452 echo "$as_me:$LINENO: result: no" >&5
8453echo "${ECHO_T}no" >&6
8454 fi
8455
8456
8457 enablestring=
8458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8459echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8460 no_cache=0
8461 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8462if test "${enable_tabdialog+set}" = set; then
8463 enableval="$enable_tabdialog"
8464
8465 if test "$enableval" = yes; then
8466 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8467 else
8468 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8469 fi
8470
8471else
8472
8473 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8474 if test "x$LINE" != x ; then
8475 eval "DEFAULT_$LINE"
8476 else
8477 no_cache=1
8478 fi
8479
8480 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8481
8482fi;
8483
8484 eval "$ac_cv_use_tabdialog"
8485 if test "$no_cache" != 1; then
8486 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8487 fi
8488
8489 if test "$wxUSE_TABDIALOG" = yes; then
8490 echo "$as_me:$LINENO: result: yes" >&5
8491echo "${ECHO_T}yes" >&6
8492 else
8493 echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6
8495 fi
8496
8497
8498 enablestring=
8499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8500echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8501 no_cache=0
8502 # Check whether --enable-textctrl or --disable-textctrl was given.
8503if test "${enable_textctrl+set}" = set; then
8504 enableval="$enable_textctrl"
8505
8506 if test "$enableval" = yes; then
8507 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8508 else
8509 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8510 fi
8511
8512else
8513
8514 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8515 if test "x$LINE" != x ; then
8516 eval "DEFAULT_$LINE"
8517 else
8518 no_cache=1
8519 fi
8520
8521 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8522
8523fi;
8524
8525 eval "$ac_cv_use_textctrl"
8526 if test "$no_cache" != 1; then
8527 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8528 fi
8529
8530 if test "$wxUSE_TEXTCTRL" = yes; then
8531 echo "$as_me:$LINENO: result: yes" >&5
8532echo "${ECHO_T}yes" >&6
8533 else
8534 echo "$as_me:$LINENO: result: no" >&5
8535echo "${ECHO_T}no" >&6
8536 fi
8537
8538
8539 enablestring=
8540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8541echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8542 no_cache=0
8543 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8544if test "${enable_togglebtn+set}" = set; then
8545 enableval="$enable_togglebtn"
8546
8547 if test "$enableval" = yes; then
8548 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8549 else
8550 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8551 fi
8552
8553else
8554
8555 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8556 if test "x$LINE" != x ; then
8557 eval "DEFAULT_$LINE"
8558 else
8559 no_cache=1
8560 fi
8561
8562 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8563
8564fi;
8565
8566 eval "$ac_cv_use_togglebtn"
8567 if test "$no_cache" != 1; then
8568 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8569 fi
8570
8571 if test "$wxUSE_TOGGLEBTN" = yes; then
8572 echo "$as_me:$LINENO: result: yes" >&5
8573echo "${ECHO_T}yes" >&6
8574 else
8575 echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6
8577 fi
8578
8579
8580 enablestring=
8581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8582echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8583 no_cache=0
8584 # Check whether --enable-toolbar or --disable-toolbar was given.
8585if test "${enable_toolbar+set}" = set; then
8586 enableval="$enable_toolbar"
8587
8588 if test "$enableval" = yes; then
8589 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8590 else
8591 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8592 fi
8593
8594else
8595
8596 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8597 if test "x$LINE" != x ; then
8598 eval "DEFAULT_$LINE"
8599 else
8600 no_cache=1
8601 fi
8602
8603 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8604
8605fi;
8606
8607 eval "$ac_cv_use_toolbar"
8608 if test "$no_cache" != 1; then
8609 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8610 fi
8611
8612 if test "$wxUSE_TOOLBAR" = yes; then
8613 echo "$as_me:$LINENO: result: yes" >&5
8614echo "${ECHO_T}yes" >&6
8615 else
8616 echo "$as_me:$LINENO: result: no" >&5
8617echo "${ECHO_T}no" >&6
8618 fi
8619
8620
8621 enablestring=
8622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8623echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8624 no_cache=0
8625 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8626if test "${enable_tbarnative+set}" = set; then
8627 enableval="$enable_tbarnative"
8628
8629 if test "$enableval" = yes; then
8630 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8631 else
8632 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8633 fi
8634
8635else
8636
8637 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8638 if test "x$LINE" != x ; then
8639 eval "DEFAULT_$LINE"
8640 else
8641 no_cache=1
8642 fi
8643
8644 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8645
8646fi;
8647
8648 eval "$ac_cv_use_tbarnative"
8649 if test "$no_cache" != 1; then
8650 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8651 fi
8652
8653 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8654 echo "$as_me:$LINENO: result: yes" >&5
8655echo "${ECHO_T}yes" >&6
8656 else
8657 echo "$as_me:$LINENO: result: no" >&5
8658echo "${ECHO_T}no" >&6
8659 fi
8660
8661
8662 enablestring=
8663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8664echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8665 no_cache=0
8666 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8667if test "${enable_tbarsmpl+set}" = set; then
8668 enableval="$enable_tbarsmpl"
8669
8670 if test "$enableval" = yes; then
8671 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8672 else
8673 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8674 fi
8675
8676else
8677
8678 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8679 if test "x$LINE" != x ; then
8680 eval "DEFAULT_$LINE"
8681 else
8682 no_cache=1
8683 fi
8684
8685 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8686
8687fi;
8688
8689 eval "$ac_cv_use_tbarsmpl"
8690 if test "$no_cache" != 1; then
8691 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8692 fi
8693
8694 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8695 echo "$as_me:$LINENO: result: yes" >&5
8696echo "${ECHO_T}yes" >&6
8697 else
8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
8700 fi
8701
8702
8703 enablestring=
8704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8705echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8706 no_cache=0
8707 # Check whether --enable-treectrl or --disable-treectrl was given.
8708if test "${enable_treectrl+set}" = set; then
8709 enableval="$enable_treectrl"
8710
8711 if test "$enableval" = yes; then
8712 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8713 else
8714 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8715 fi
8716
8717else
8718
8719 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8720 if test "x$LINE" != x ; then
8721 eval "DEFAULT_$LINE"
8722 else
8723 no_cache=1
8724 fi
8725
8726 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8727
8728fi;
8729
8730 eval "$ac_cv_use_treectrl"
8731 if test "$no_cache" != 1; then
8732 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8733 fi
8734
8735 if test "$wxUSE_TREECTRL" = yes; then
8736 echo "$as_me:$LINENO: result: yes" >&5
8737echo "${ECHO_T}yes" >&6
8738 else
8739 echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6
8741 fi
8742
8743
8744 enablestring=
8745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8746echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8747 no_cache=0
8748 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8749if test "${enable_tipwindow+set}" = set; then
8750 enableval="$enable_tipwindow"
8751
8752 if test "$enableval" = yes; then
8753 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8754 else
8755 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8756 fi
8757
8758else
8759
8760 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8761 if test "x$LINE" != x ; then
8762 eval "DEFAULT_$LINE"
8763 else
8764 no_cache=1
8765 fi
8766
8767 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8768
8769fi;
8770
8771 eval "$ac_cv_use_tipwindow"
8772 if test "$no_cache" != 1; then
8773 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8774 fi
8775
8776 if test "$wxUSE_TIPWINDOW" = yes; then
8777 echo "$as_me:$LINENO: result: yes" >&5
8778echo "${ECHO_T}yes" >&6
8779 else
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
8782 fi
8783
8784
8785 enablestring=
8786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8787echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8788 no_cache=0
8789 # Check whether --enable-popupwin or --disable-popupwin was given.
8790if test "${enable_popupwin+set}" = set; then
8791 enableval="$enable_popupwin"
8792
8793 if test "$enableval" = yes; then
8794 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8795 else
8796 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8797 fi
8798
8799else
8800
8801 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8802 if test "x$LINE" != x ; then
8803 eval "DEFAULT_$LINE"
8804 else
8805 no_cache=1
8806 fi
8807
8808 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8809
8810fi;
8811
8812 eval "$ac_cv_use_popupwin"
8813 if test "$no_cache" != 1; then
8814 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8815 fi
8816
8817 if test "$wxUSE_POPUPWIN" = yes; then
8818 echo "$as_me:$LINENO: result: yes" >&5
8819echo "${ECHO_T}yes" >&6
8820 else
8821 echo "$as_me:$LINENO: result: no" >&5
8822echo "${ECHO_T}no" >&6
8823 fi
8824
8825
8826
8827
8828 enablestring=
8829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8830echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8831 no_cache=0
8832 # Check whether --enable-commondlg or --disable-commondlg was given.
8833if test "${enable_commondlg+set}" = set; then
8834 enableval="$enable_commondlg"
8835
8836 if test "$enableval" = yes; then
8837 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8838 else
8839 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8840 fi
8841
8842else
8843
8844 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8845 if test "x$LINE" != x ; then
8846 eval "DEFAULT_$LINE"
8847 else
8848 no_cache=1
8849 fi
8850
8851 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8852
8853fi;
8854
8855 eval "$ac_cv_use_commondlg"
8856 if test "$no_cache" != 1; then
8857 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8858 fi
8859
8860 if test "$wxUSE_COMMONDLGS" = yes; then
8861 echo "$as_me:$LINENO: result: yes" >&5
8862echo "${ECHO_T}yes" >&6
8863 else
8864 echo "$as_me:$LINENO: result: no" >&5
8865echo "${ECHO_T}no" >&6
8866 fi
8867
8868
8869 enablestring=
8870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8871echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8872 no_cache=0
8873 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8874if test "${enable_choicedlg+set}" = set; then
8875 enableval="$enable_choicedlg"
8876
8877 if test "$enableval" = yes; then
8878 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8879 else
8880 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8881 fi
8882
8883else
8884
8885 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8886 if test "x$LINE" != x ; then
8887 eval "DEFAULT_$LINE"
8888 else
8889 no_cache=1
8890 fi
8891
8892 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8893
8894fi;
8895
8896 eval "$ac_cv_use_choicedlg"
8897 if test "$no_cache" != 1; then
8898 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8899 fi
8900
8901 if test "$wxUSE_CHOICEDLG" = yes; then
8902 echo "$as_me:$LINENO: result: yes" >&5
8903echo "${ECHO_T}yes" >&6
8904 else
8905 echo "$as_me:$LINENO: result: no" >&5
8906echo "${ECHO_T}no" >&6
8907 fi
8908
8909
8910 enablestring=
8911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8912echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8913 no_cache=0
8914 # Check whether --enable-coldlg or --disable-coldlg was given.
8915if test "${enable_coldlg+set}" = set; then
8916 enableval="$enable_coldlg"
8917
8918 if test "$enableval" = yes; then
8919 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8920 else
8921 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8922 fi
8923
8924else
8925
8926 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8927 if test "x$LINE" != x ; then
8928 eval "DEFAULT_$LINE"
8929 else
8930 no_cache=1
8931 fi
8932
8933 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8934
8935fi;
8936
8937 eval "$ac_cv_use_coldlg"
8938 if test "$no_cache" != 1; then
8939 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8940 fi
8941
8942 if test "$wxUSE_COLOURDLG" = yes; then
8943 echo "$as_me:$LINENO: result: yes" >&5
8944echo "${ECHO_T}yes" >&6
8945 else
8946 echo "$as_me:$LINENO: result: no" >&5
8947echo "${ECHO_T}no" >&6
8948 fi
8949
8950
8951 enablestring=
8952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8953echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8954 no_cache=0
8955 # Check whether --enable-filedlg or --disable-filedlg was given.
8956if test "${enable_filedlg+set}" = set; then
8957 enableval="$enable_filedlg"
8958
8959 if test "$enableval" = yes; then
8960 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8961 else
8962 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8963 fi
8964
8965else
8966
8967 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8968 if test "x$LINE" != x ; then
8969 eval "DEFAULT_$LINE"
8970 else
8971 no_cache=1
8972 fi
8973
8974 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8975
8976fi;
8977
8978 eval "$ac_cv_use_filedlg"
8979 if test "$no_cache" != 1; then
8980 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8981 fi
8982
8983 if test "$wxUSE_FILEDLG" = yes; then
8984 echo "$as_me:$LINENO: result: yes" >&5
8985echo "${ECHO_T}yes" >&6
8986 else
8987 echo "$as_me:$LINENO: result: no" >&5
8988echo "${ECHO_T}no" >&6
8989 fi
8990
8991
8992 enablestring=
8993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8994echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8995 no_cache=0
8996 # Check whether --enable-finddlg or --disable-finddlg was given.
8997if test "${enable_finddlg+set}" = set; then
8998 enableval="$enable_finddlg"
8999
9000 if test "$enableval" = yes; then
9001 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9002 else
9003 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9004 fi
9005
9006else
9007
9008 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9009 if test "x$LINE" != x ; then
9010 eval "DEFAULT_$LINE"
9011 else
9012 no_cache=1
9013 fi
9014
9015 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9016
9017fi;
9018
9019 eval "$ac_cv_use_finddlg"
9020 if test "$no_cache" != 1; then
9021 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9022 fi
9023
9024 if test "$wxUSE_FINDREPLDLG" = yes; then
9025 echo "$as_me:$LINENO: result: yes" >&5
9026echo "${ECHO_T}yes" >&6
9027 else
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
9030 fi
9031
9032
9033 enablestring=
9034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9035echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9036 no_cache=0
9037 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9038if test "${enable_fontdlg+set}" = set; then
9039 enableval="$enable_fontdlg"
9040
9041 if test "$enableval" = yes; then
9042 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9043 else
9044 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9045 fi
9046
9047else
9048
9049 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9050 if test "x$LINE" != x ; then
9051 eval "DEFAULT_$LINE"
9052 else
9053 no_cache=1
9054 fi
9055
9056 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9057
9058fi;
9059
9060 eval "$ac_cv_use_fontdlg"
9061 if test "$no_cache" != 1; then
9062 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9063 fi
9064
9065 if test "$wxUSE_FONTDLG" = yes; then
9066 echo "$as_me:$LINENO: result: yes" >&5
9067echo "${ECHO_T}yes" >&6
9068 else
9069 echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
9071 fi
9072
9073
9074 enablestring=
9075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9076echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9077 no_cache=0
9078 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9079if test "${enable_dirdlg+set}" = set; then
9080 enableval="$enable_dirdlg"
9081
9082 if test "$enableval" = yes; then
9083 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9084 else
9085 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9086 fi
9087
9088else
9089
9090 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9091 if test "x$LINE" != x ; then
9092 eval "DEFAULT_$LINE"
9093 else
9094 no_cache=1
9095 fi
9096
9097 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9098
9099fi;
9100
9101 eval "$ac_cv_use_dirdlg"
9102 if test "$no_cache" != 1; then
9103 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9104 fi
9105
9106 if test "$wxUSE_DIRDLG" = yes; then
9107 echo "$as_me:$LINENO: result: yes" >&5
9108echo "${ECHO_T}yes" >&6
9109 else
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
9112 fi
9113
9114
9115 enablestring=
9116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9117echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9118 no_cache=0
9119 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9120if test "${enable_msgdlg+set}" = set; then
9121 enableval="$enable_msgdlg"
9122
9123 if test "$enableval" = yes; then
9124 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9125 else
9126 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9127 fi
9128
9129else
9130
9131 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9132 if test "x$LINE" != x ; then
9133 eval "DEFAULT_$LINE"
9134 else
9135 no_cache=1
9136 fi
9137
9138 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9139
9140fi;
9141
9142 eval "$ac_cv_use_msgdlg"
9143 if test "$no_cache" != 1; then
9144 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9145 fi
9146
9147 if test "$wxUSE_MSGDLG" = yes; then
9148 echo "$as_me:$LINENO: result: yes" >&5
9149echo "${ECHO_T}yes" >&6
9150 else
9151 echo "$as_me:$LINENO: result: no" >&5
9152echo "${ECHO_T}no" >&6
9153 fi
9154
9155
9156 enablestring=
9157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9158echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9159 no_cache=0
9160 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9161if test "${enable_numberdlg+set}" = set; then
9162 enableval="$enable_numberdlg"
9163
9164 if test "$enableval" = yes; then
9165 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9166 else
9167 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9168 fi
9169
9170else
9171
9172 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9173 if test "x$LINE" != x ; then
9174 eval "DEFAULT_$LINE"
9175 else
9176 no_cache=1
9177 fi
9178
9179 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9180
9181fi;
9182
9183 eval "$ac_cv_use_numberdlg"
9184 if test "$no_cache" != 1; then
9185 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9186 fi
9187
9188 if test "$wxUSE_NUMBERDLG" = yes; then
9189 echo "$as_me:$LINENO: result: yes" >&5
9190echo "${ECHO_T}yes" >&6
9191 else
9192 echo "$as_me:$LINENO: result: no" >&5
9193echo "${ECHO_T}no" >&6
9194 fi
9195
9196
9197 enablestring=
9198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9199echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9200 no_cache=0
9201 # Check whether --enable-splash or --disable-splash was given.
9202if test "${enable_splash+set}" = set; then
9203 enableval="$enable_splash"
9204
9205 if test "$enableval" = yes; then
9206 ac_cv_use_splash='wxUSE_SPLASH=yes'
9207 else
9208 ac_cv_use_splash='wxUSE_SPLASH=no'
9209 fi
9210
9211else
9212
9213 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9214 if test "x$LINE" != x ; then
9215 eval "DEFAULT_$LINE"
9216 else
9217 no_cache=1
9218 fi
9219
9220 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9221
9222fi;
9223
9224 eval "$ac_cv_use_splash"
9225 if test "$no_cache" != 1; then
9226 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9227 fi
9228
9229 if test "$wxUSE_SPLASH" = yes; then
9230 echo "$as_me:$LINENO: result: yes" >&5
9231echo "${ECHO_T}yes" >&6
9232 else
9233 echo "$as_me:$LINENO: result: no" >&5
9234echo "${ECHO_T}no" >&6
9235 fi
9236
9237
9238 enablestring=
9239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9240echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9241 no_cache=0
9242 # Check whether --enable-textdlg or --disable-textdlg was given.
9243if test "${enable_textdlg+set}" = set; then
9244 enableval="$enable_textdlg"
9245
9246 if test "$enableval" = yes; then
9247 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9248 else
9249 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9250 fi
9251
9252else
9253
9254 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9255 if test "x$LINE" != x ; then
9256 eval "DEFAULT_$LINE"
9257 else
9258 no_cache=1
9259 fi
9260
9261 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9262
9263fi;
9264
9265 eval "$ac_cv_use_textdlg"
9266 if test "$no_cache" != 1; then
9267 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9268 fi
9269
9270 if test "$wxUSE_TEXTDLG" = yes; then
9271 echo "$as_me:$LINENO: result: yes" >&5
9272echo "${ECHO_T}yes" >&6
9273 else
9274 echo "$as_me:$LINENO: result: no" >&5
9275echo "${ECHO_T}no" >&6
9276 fi
9277
9278
9279 enablestring=
9280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9281echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9282 no_cache=0
9283 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9284if test "${enable_tipdlg+set}" = set; then
9285 enableval="$enable_tipdlg"
9286
9287 if test "$enableval" = yes; then
9288 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9289 else
9290 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9291 fi
9292
9293else
9294
9295 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9296 if test "x$LINE" != x ; then
9297 eval "DEFAULT_$LINE"
9298 else
9299 no_cache=1
9300 fi
9301
9302 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9303
9304fi;
9305
9306 eval "$ac_cv_use_tipdlg"
9307 if test "$no_cache" != 1; then
9308 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9309 fi
9310
9311 if test "$wxUSE_STARTUP_TIPS" = yes; then
9312 echo "$as_me:$LINENO: result: yes" >&5
9313echo "${ECHO_T}yes" >&6
9314 else
9315 echo "$as_me:$LINENO: result: no" >&5
9316echo "${ECHO_T}no" >&6
9317 fi
9318
9319
9320 enablestring=
9321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9322echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9323 no_cache=0
9324 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9325if test "${enable_progressdlg+set}" = set; then
9326 enableval="$enable_progressdlg"
9327
9328 if test "$enableval" = yes; then
9329 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9330 else
9331 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9332 fi
9333
9334else
9335
9336 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9337 if test "x$LINE" != x ; then
9338 eval "DEFAULT_$LINE"
9339 else
9340 no_cache=1
9341 fi
9342
9343 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9344
9345fi;
9346
9347 eval "$ac_cv_use_progressdlg"
9348 if test "$no_cache" != 1; then
9349 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9350 fi
9351
9352 if test "$wxUSE_PROGRESSDLG" = yes; then
9353 echo "$as_me:$LINENO: result: yes" >&5
9354echo "${ECHO_T}yes" >&6
9355 else
9356 echo "$as_me:$LINENO: result: no" >&5
9357echo "${ECHO_T}no" >&6
9358 fi
9359
9360
9361 enablestring=
9362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9363echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9364 no_cache=0
9365 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9366if test "${enable_wizarddlg+set}" = set; then
9367 enableval="$enable_wizarddlg"
9368
9369 if test "$enableval" = yes; then
9370 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9371 else
9372 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9373 fi
9374
9375else
9376
9377 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9378 if test "x$LINE" != x ; then
9379 eval "DEFAULT_$LINE"
9380 else
9381 no_cache=1
9382 fi
9383
9384 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9385
9386fi;
9387
9388 eval "$ac_cv_use_wizarddlg"
9389 if test "$no_cache" != 1; then
9390 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9391 fi
9392
9393 if test "$wxUSE_WIZARDDLG" = yes; then
9394 echo "$as_me:$LINENO: result: yes" >&5
9395echo "${ECHO_T}yes" >&6
9396 else
9397 echo "$as_me:$LINENO: result: no" >&5
9398echo "${ECHO_T}no" >&6
9399 fi
9400
9401
9402
9403
9404 enablestring=
9405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9406echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9407 no_cache=0
9408 # Check whether --enable-menus or --disable-menus was given.
9409if test "${enable_menus+set}" = set; then
9410 enableval="$enable_menus"
9411
9412 if test "$enableval" = yes; then
9413 ac_cv_use_menus='wxUSE_MENUS=yes'
9414 else
9415 ac_cv_use_menus='wxUSE_MENUS=no'
9416 fi
9417
9418else
9419
9420 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9421 if test "x$LINE" != x ; then
9422 eval "DEFAULT_$LINE"
9423 else
9424 no_cache=1
9425 fi
9426
9427 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9428
9429fi;
9430
9431 eval "$ac_cv_use_menus"
9432 if test "$no_cache" != 1; then
9433 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9434 fi
9435
9436 if test "$wxUSE_MENUS" = yes; then
9437 echo "$as_me:$LINENO: result: yes" >&5
9438echo "${ECHO_T}yes" >&6
9439 else
9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
9442 fi
9443
9444
9445 enablestring=
9446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9447echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9448 no_cache=0
9449 # Check whether --enable-miniframe or --disable-miniframe was given.
9450if test "${enable_miniframe+set}" = set; then
9451 enableval="$enable_miniframe"
9452
9453 if test "$enableval" = yes; then
9454 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9455 else
9456 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9457 fi
9458
9459else
9460
9461 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9462 if test "x$LINE" != x ; then
9463 eval "DEFAULT_$LINE"
9464 else
9465 no_cache=1
9466 fi
9467
9468 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9469
9470fi;
9471
9472 eval "$ac_cv_use_miniframe"
9473 if test "$no_cache" != 1; then
9474 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9475 fi
9476
9477 if test "$wxUSE_MINIFRAME" = yes; then
9478 echo "$as_me:$LINENO: result: yes" >&5
9479echo "${ECHO_T}yes" >&6
9480 else
9481 echo "$as_me:$LINENO: result: no" >&5
9482echo "${ECHO_T}no" >&6
9483 fi
9484
9485
9486 enablestring=
9487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9488echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9489 no_cache=0
9490 # Check whether --enable-tooltips or --disable-tooltips was given.
9491if test "${enable_tooltips+set}" = set; then
9492 enableval="$enable_tooltips"
9493
9494 if test "$enableval" = yes; then
9495 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9496 else
9497 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9498 fi
9499
9500else
9501
9502 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9503 if test "x$LINE" != x ; then
9504 eval "DEFAULT_$LINE"
9505 else
9506 no_cache=1
9507 fi
9508
9509 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9510
9511fi;
9512
9513 eval "$ac_cv_use_tooltips"
9514 if test "$no_cache" != 1; then
9515 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9516 fi
9517
9518 if test "$wxUSE_TOOLTIPS" = yes; then
9519 echo "$as_me:$LINENO: result: yes" >&5
9520echo "${ECHO_T}yes" >&6
9521 else
9522 echo "$as_me:$LINENO: result: no" >&5
9523echo "${ECHO_T}no" >&6
9524 fi
9525
9526
9527 enablestring=
9528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9529echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9530 no_cache=0
9531 # Check whether --enable-splines or --disable-splines was given.
9532if test "${enable_splines+set}" = set; then
9533 enableval="$enable_splines"
9534
9535 if test "$enableval" = yes; then
9536 ac_cv_use_splines='wxUSE_SPLINES=yes'
9537 else
9538 ac_cv_use_splines='wxUSE_SPLINES=no'
9539 fi
9540
9541else
9542
9543 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9544 if test "x$LINE" != x ; then
9545 eval "DEFAULT_$LINE"
9546 else
9547 no_cache=1
9548 fi
9549
9550 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9551
9552fi;
9553
9554 eval "$ac_cv_use_splines"
9555 if test "$no_cache" != 1; then
9556 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9557 fi
9558
9559 if test "$wxUSE_SPLINES" = yes; then
9560 echo "$as_me:$LINENO: result: yes" >&5
9561echo "${ECHO_T}yes" >&6
9562 else
9563 echo "$as_me:$LINENO: result: no" >&5
9564echo "${ECHO_T}no" >&6
9565 fi
9566
9567
9568 enablestring=
9569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9570echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9571 no_cache=0
9572 # Check whether --enable-validators or --disable-validators was given.
9573if test "${enable_validators+set}" = set; then
9574 enableval="$enable_validators"
9575
9576 if test "$enableval" = yes; then
9577 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9578 else
9579 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9580 fi
9581
9582else
9583
9584 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9585 if test "x$LINE" != x ; then
9586 eval "DEFAULT_$LINE"
9587 else
9588 no_cache=1
9589 fi
9590
9591 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9592
9593fi;
9594
9595 eval "$ac_cv_use_validators"
9596 if test "$no_cache" != 1; then
9597 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9598 fi
9599
9600 if test "$wxUSE_VALIDATORS" = yes; then
9601 echo "$as_me:$LINENO: result: yes" >&5
9602echo "${ECHO_T}yes" >&6
9603 else
9604 echo "$as_me:$LINENO: result: no" >&5
9605echo "${ECHO_T}no" >&6
9606 fi
9607
9608
9609 enablestring=
9610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9611echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9612 no_cache=0
9613 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9614if test "${enable_busyinfo+set}" = set; then
9615 enableval="$enable_busyinfo"
9616
9617 if test "$enableval" = yes; then
9618 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9619 else
9620 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9621 fi
9622
9623else
9624
9625 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9626 if test "x$LINE" != x ; then
9627 eval "DEFAULT_$LINE"
9628 else
9629 no_cache=1
9630 fi
9631
9632 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9633
9634fi;
9635
9636 eval "$ac_cv_use_busyinfo"
9637 if test "$no_cache" != 1; then
9638 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9639 fi
9640
9641 if test "$wxUSE_BUSYINFO" = yes; then
9642 echo "$as_me:$LINENO: result: yes" >&5
9643echo "${ECHO_T}yes" >&6
9644 else
9645 echo "$as_me:$LINENO: result: no" >&5
9646echo "${ECHO_T}no" >&6
9647 fi
9648
9649
9650 enablestring=
9651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9652echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9653 no_cache=0
9654 # Check whether --enable-joystick or --disable-joystick was given.
9655if test "${enable_joystick+set}" = set; then
9656 enableval="$enable_joystick"
9657
9658 if test "$enableval" = yes; then
9659 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9660 else
9661 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9662 fi
9663
9664else
9665
9666 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9667 if test "x$LINE" != x ; then
9668 eval "DEFAULT_$LINE"
9669 else
9670 no_cache=1
9671 fi
9672
9673 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9674
9675fi;
9676
9677 eval "$ac_cv_use_joystick"
9678 if test "$no_cache" != 1; then
9679 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9680 fi
9681
9682 if test "$wxUSE_JOYSTICK" = yes; then
9683 echo "$as_me:$LINENO: result: yes" >&5
9684echo "${ECHO_T}yes" >&6
9685 else
9686 echo "$as_me:$LINENO: result: no" >&5
9687echo "${ECHO_T}no" >&6
9688 fi
9689
9690
9691 enablestring=
9692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9693echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9694 no_cache=0
9695 # Check whether --enable-metafile or --disable-metafile was given.
9696if test "${enable_metafile+set}" = set; then
9697 enableval="$enable_metafile"
9698
9699 if test "$enableval" = yes; then
9700 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9701 else
9702 ac_cv_use_metafile='wxUSE_METAFILE=no'
9703 fi
9704
9705else
9706
9707 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9708 if test "x$LINE" != x ; then
9709 eval "DEFAULT_$LINE"
9710 else
9711 no_cache=1
9712 fi
9713
9714 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9715
9716fi;
9717
9718 eval "$ac_cv_use_metafile"
9719 if test "$no_cache" != 1; then
9720 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9721 fi
9722
9723 if test "$wxUSE_METAFILE" = yes; then
9724 echo "$as_me:$LINENO: result: yes" >&5
9725echo "${ECHO_T}yes" >&6
9726 else
9727 echo "$as_me:$LINENO: result: no" >&5
9728echo "${ECHO_T}no" >&6
9729 fi
9730
9731
9732 enablestring=
9733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9734echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9735 no_cache=0
9736 # Check whether --enable-dragimage or --disable-dragimage was given.
9737if test "${enable_dragimage+set}" = set; then
9738 enableval="$enable_dragimage"
9739
9740 if test "$enableval" = yes; then
9741 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9742 else
9743 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9744 fi
9745
9746else
9747
9748 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9749 if test "x$LINE" != x ; then
9750 eval "DEFAULT_$LINE"
9751 else
9752 no_cache=1
9753 fi
9754
9755 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9756
9757fi;
9758
9759 eval "$ac_cv_use_dragimage"
9760 if test "$no_cache" != 1; then
9761 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9762 fi
9763
9764 if test "$wxUSE_DRAGIMAGE" = yes; then
9765 echo "$as_me:$LINENO: result: yes" >&5
9766echo "${ECHO_T}yes" >&6
9767 else
9768 echo "$as_me:$LINENO: result: no" >&5
9769echo "${ECHO_T}no" >&6
9770 fi
9771
9772
9773 enablestring=
9774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9775echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9776 no_cache=0
9777 # Check whether --enable-accessibility or --disable-accessibility was given.
9778if test "${enable_accessibility+set}" = set; then
9779 enableval="$enable_accessibility"
9780
9781 if test "$enableval" = yes; then
9782 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9783 else
9784 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9785 fi
9786
9787else
9788
9789 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9790 if test "x$LINE" != x ; then
9791 eval "DEFAULT_$LINE"
9792 else
9793 no_cache=1
9794 fi
9795
9796 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9797
9798fi;
9799
9800 eval "$ac_cv_use_accessibility"
9801 if test "$no_cache" != 1; then
9802 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9803 fi
9804
9805 if test "$wxUSE_ACCESSIBILITY" = yes; then
9806 echo "$as_me:$LINENO: result: yes" >&5
9807echo "${ECHO_T}yes" >&6
9808 else
9809 echo "$as_me:$LINENO: result: no" >&5
9810echo "${ECHO_T}no" >&6
9811 fi
9812
9813
9814
9815
9816 enablestring=
9817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9818echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9819 no_cache=0
9820 # Check whether --enable-palette or --disable-palette was given.
9821if test "${enable_palette+set}" = set; then
9822 enableval="$enable_palette"
9823
9824 if test "$enableval" = yes; then
9825 ac_cv_use_palette='wxUSE_PALETTE=yes'
9826 else
9827 ac_cv_use_palette='wxUSE_PALETTE=no'
9828 fi
9829
9830else
9831
9832 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9833 if test "x$LINE" != x ; then
9834 eval "DEFAULT_$LINE"
9835 else
9836 no_cache=1
9837 fi
9838
9839 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9840
9841fi;
9842
9843 eval "$ac_cv_use_palette"
9844 if test "$no_cache" != 1; then
9845 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9846 fi
9847
9848 if test "$wxUSE_PALETTE" = yes; then
9849 echo "$as_me:$LINENO: result: yes" >&5
9850echo "${ECHO_T}yes" >&6
9851 else
9852 echo "$as_me:$LINENO: result: no" >&5
9853echo "${ECHO_T}no" >&6
9854 fi
9855
9856
9857 enablestring=
9858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9859echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9860 no_cache=0
9861 # Check whether --enable-image or --disable-image was given.
9862if test "${enable_image+set}" = set; then
9863 enableval="$enable_image"
9864
9865 if test "$enableval" = yes; then
9866 ac_cv_use_image='wxUSE_IMAGE=yes'
9867 else
9868 ac_cv_use_image='wxUSE_IMAGE=no'
9869 fi
9870
9871else
9872
9873 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9874 if test "x$LINE" != x ; then
9875 eval "DEFAULT_$LINE"
9876 else
9877 no_cache=1
9878 fi
9879
9880 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9881
9882fi;
9883
9884 eval "$ac_cv_use_image"
9885 if test "$no_cache" != 1; then
9886 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9887 fi
9888
9889 if test "$wxUSE_IMAGE" = yes; then
9890 echo "$as_me:$LINENO: result: yes" >&5
9891echo "${ECHO_T}yes" >&6
9892 else
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
9895 fi
9896
9897
9898 enablestring=
9899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9900echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9901 no_cache=0
9902 # Check whether --enable-gif or --disable-gif was given.
9903if test "${enable_gif+set}" = set; then
9904 enableval="$enable_gif"
9905
9906 if test "$enableval" = yes; then
9907 ac_cv_use_gif='wxUSE_GIF=yes'
9908 else
9909 ac_cv_use_gif='wxUSE_GIF=no'
9910 fi
9911
9912else
9913
9914 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9915 if test "x$LINE" != x ; then
9916 eval "DEFAULT_$LINE"
9917 else
9918 no_cache=1
9919 fi
9920
9921 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9922
9923fi;
9924
9925 eval "$ac_cv_use_gif"
9926 if test "$no_cache" != 1; then
9927 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9928 fi
9929
9930 if test "$wxUSE_GIF" = yes; then
9931 echo "$as_me:$LINENO: result: yes" >&5
9932echo "${ECHO_T}yes" >&6
9933 else
9934 echo "$as_me:$LINENO: result: no" >&5
9935echo "${ECHO_T}no" >&6
9936 fi
9937
9938
9939 enablestring=
9940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9941echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9942 no_cache=0
9943 # Check whether --enable-pcx or --disable-pcx was given.
9944if test "${enable_pcx+set}" = set; then
9945 enableval="$enable_pcx"
9946
9947 if test "$enableval" = yes; then
9948 ac_cv_use_pcx='wxUSE_PCX=yes'
9949 else
9950 ac_cv_use_pcx='wxUSE_PCX=no'
9951 fi
9952
9953else
9954
9955 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9956 if test "x$LINE" != x ; then
9957 eval "DEFAULT_$LINE"
9958 else
9959 no_cache=1
9960 fi
9961
9962 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9963
9964fi;
9965
9966 eval "$ac_cv_use_pcx"
9967 if test "$no_cache" != 1; then
9968 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9969 fi
9970
9971 if test "$wxUSE_PCX" = yes; then
9972 echo "$as_me:$LINENO: result: yes" >&5
9973echo "${ECHO_T}yes" >&6
9974 else
9975 echo "$as_me:$LINENO: result: no" >&5
9976echo "${ECHO_T}no" >&6
9977 fi
9978
9979
9980 enablestring=
9981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9982echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9983 no_cache=0
9984 # Check whether --enable-iff or --disable-iff was given.
9985if test "${enable_iff+set}" = set; then
9986 enableval="$enable_iff"
9987
9988 if test "$enableval" = yes; then
9989 ac_cv_use_iff='wxUSE_IFF=yes'
9990 else
9991 ac_cv_use_iff='wxUSE_IFF=no'
9992 fi
9993
9994else
9995
9996 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9997 if test "x$LINE" != x ; then
9998 eval "DEFAULT_$LINE"
9999 else
10000 no_cache=1
10001 fi
10002
10003 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10004
10005fi;
10006
10007 eval "$ac_cv_use_iff"
10008 if test "$no_cache" != 1; then
10009 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10010 fi
10011
10012 if test "$wxUSE_IFF" = yes; then
10013 echo "$as_me:$LINENO: result: yes" >&5
10014echo "${ECHO_T}yes" >&6
10015 else
10016 echo "$as_me:$LINENO: result: no" >&5
10017echo "${ECHO_T}no" >&6
10018 fi
10019
10020
10021 enablestring=
10022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10023echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10024 no_cache=0
10025 # Check whether --enable-pnm or --disable-pnm was given.
10026if test "${enable_pnm+set}" = set; then
10027 enableval="$enable_pnm"
10028
10029 if test "$enableval" = yes; then
10030 ac_cv_use_pnm='wxUSE_PNM=yes'
10031 else
10032 ac_cv_use_pnm='wxUSE_PNM=no'
10033 fi
10034
10035else
10036
10037 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10038 if test "x$LINE" != x ; then
10039 eval "DEFAULT_$LINE"
10040 else
10041 no_cache=1
10042 fi
10043
10044 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10045
10046fi;
10047
10048 eval "$ac_cv_use_pnm"
10049 if test "$no_cache" != 1; then
10050 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10051 fi
10052
10053 if test "$wxUSE_PNM" = yes; then
10054 echo "$as_me:$LINENO: result: yes" >&5
10055echo "${ECHO_T}yes" >&6
10056 else
10057 echo "$as_me:$LINENO: result: no" >&5
10058echo "${ECHO_T}no" >&6
10059 fi
10060
10061
10062 enablestring=
10063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10064echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10065 no_cache=0
10066 # Check whether --enable-xpm or --disable-xpm was given.
10067if test "${enable_xpm+set}" = set; then
10068 enableval="$enable_xpm"
10069
10070 if test "$enableval" = yes; then
10071 ac_cv_use_xpm='wxUSE_XPM=yes'
10072 else
10073 ac_cv_use_xpm='wxUSE_XPM=no'
10074 fi
10075
10076else
10077
10078 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10079 if test "x$LINE" != x ; then
10080 eval "DEFAULT_$LINE"
10081 else
10082 no_cache=1
10083 fi
10084
10085 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10086
10087fi;
10088
10089 eval "$ac_cv_use_xpm"
10090 if test "$no_cache" != 1; then
10091 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10092 fi
10093
10094 if test "$wxUSE_XPM" = yes; then
10095 echo "$as_me:$LINENO: result: yes" >&5
10096echo "${ECHO_T}yes" >&6
10097 else
10098 echo "$as_me:$LINENO: result: no" >&5
10099echo "${ECHO_T}no" >&6
10100 fi
10101
10102
10103 enablestring=
10104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10105echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10106 no_cache=0
10107 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10108if test "${enable_ico_cur+set}" = set; then
10109 enableval="$enable_ico_cur"
10110
10111 if test "$enableval" = yes; then
10112 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10113 else
10114 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10115 fi
10116
10117else
10118
10119 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10120 if test "x$LINE" != x ; then
10121 eval "DEFAULT_$LINE"
10122 else
10123 no_cache=1
10124 fi
10125
10126 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10127
10128fi;
10129
10130 eval "$ac_cv_use_ico_cur"
10131 if test "$no_cache" != 1; then
10132 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10133 fi
10134
10135 if test "$wxUSE_ICO_CUR" = yes; then
10136 echo "$as_me:$LINENO: result: yes" >&5
10137echo "${ECHO_T}yes" >&6
10138 else
10139 echo "$as_me:$LINENO: result: no" >&5
10140echo "${ECHO_T}no" >&6
10141 fi
10142
10143
10144fi
10145
10146
10147
ceec2216
RL
10148# Check whether --with-flavour or --without-flavour was given.
10149if test "${with_flavour+set}" = set; then
10150 withval="$with_flavour"
10151 WX_FLAVOUR="$withval"
10152fi;
10153
10154
10155
a848cd7e
SC
10156 enablestring=
10157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10158echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10159 no_cache=0
10160 # Check whether --enable-official_build or --disable-official_build was given.
10161if test "${enable_official_build+set}" = set; then
10162 enableval="$enable_official_build"
10163
10164 if test "$enableval" = yes; then
10165 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10166 else
10167 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10168 fi
10169
10170else
10171
10172 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10173 if test "x$LINE" != x ; then
10174 eval "DEFAULT_$LINE"
10175 else
10176 no_cache=1
10177 fi
10178
10179 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10180
10181fi;
10182
10183 eval "$ac_cv_use_official_build"
10184 if test "$no_cache" != 1; then
10185 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10186 fi
10187
10188 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10189 echo "$as_me:$LINENO: result: yes" >&5
10190echo "${ECHO_T}yes" >&6
10191 else
10192 echo "$as_me:$LINENO: result: no" >&5
10193echo "${ECHO_T}no" >&6
10194 fi
10195
10196# Check whether --enable-vendor or --disable-vendor was given.
10197if test "${enable_vendor+set}" = set; then
10198 enableval="$enable_vendor"
10199 VENDOR="$enableval"
10200fi;
10201if test "x$VENDOR" = "x"; then
10202 VENDOR="custom"
10203fi
10204
a848cd7e
SC
10205
10206
10207
10208 echo "saving argument cache $wx_arg_cache_file"
10209 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10210
10211
10212
10213echo "$as_me:$LINENO: checking for toolkit" >&5
10214echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10215
10216# In Wine, we need to default to MSW, not GTK or MOTIF
10217if test "$wxUSE_WINE" = "yes"; then
10218 DEFAULT_DEFAULT_wxUSE_GTK=0
10219 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10220 DEFAULT_DEFAULT_wxUSE_MSW=1
10221 wxUSE_SHARED=no
10222fi
10223
10224if test "$wxUSE_GUI" = "yes"; then
10225
10226 if test "$USE_BEOS" = 1; then
10227 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10228echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10229 { (exit 1); exit 1; }; }
10230 fi
10231
10232 if test "$TOOLKIT_GIVEN" = 1; then
10233 for toolkit in `echo $ALL_TOOLKITS`; do
10234 var=wxUSE_$toolkit
10235 eval "value=\$${var}"
10236 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10237 done
10238 else
10239 for toolkit in `echo $ALL_TOOLKITS`; do
10240 if test "$has_toolkit_in_cache" != 1; then
10241 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10242 else
10243 var=DEFAULT_wxUSE_$toolkit
10244 fi
10245 eval "wxUSE_$toolkit=\$${var}"
10246 done
10247 fi
10248
10249 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10250 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10251 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10252
10253 case "${host}" in
10254 *-pc-os2_emx | *-pc-os2-emx )
10255 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10256 esac
10257
10258 case "$NUM_TOOLKITS" in
10259 1)
10260 ;;
10261 0)
10262 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10263echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10264 { (exit 1); exit 1; }; }
10265 ;;
10266 *)
10267 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10268echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10269 { (exit 1); exit 1; }; }
10270 esac
10271
10272 for toolkit in `echo $ALL_TOOLKITS`; do
10273 var=wxUSE_$toolkit
10274 eval "value=\$${var}"
10275 if test "x$value" != x; then
10276 cache_var=CACHE_$toolkit
10277 eval "cache=\$${cache_var}"
10278 if test "$cache" = 1; then
10279 echo "$var=$value" >> ${wx_arg_cache_file}
10280 fi
10281 if test "$value" = 1; then
10282 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10283 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10284echo "${ECHO_T}$toolkit_echo" >&6
10285 fi
10286 fi
10287 done
10288else
10289 if test "x$host_alias" != "x"; then
10290 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10291echo "${ECHO_T}base ($host_alias hosted) only" >&6
10292 else
10293 echo "$as_me:$LINENO: result: base only" >&5
10294echo "${ECHO_T}base only" >&6
10295 fi
10296fi
10297
10298wants_win32=0
10299doesnt_want_win32=0
10300case "${host}" in
10301 *-*-cygwin*)
10302 if test "$wxUSE_MSW" = 1 ; then
10303 wants_win32=1
10304 else
10305 doesnt_want_win32=1
10306 fi
10307 ;;
10308 *-*-mingw*)
10309 wants_win32=1
10310 ;;
10311esac
10312
10313if test "$wxUSE_WINE" = "yes"; then
10314 wants_win32=1
10315 CC=winegcc
10316 CXX=wineg++
10317 RESCOMP=wrc
10318 LDFLAGS_GUI="-mwindows"
10319fi
10320
10321if test "$wants_win32" = 1 ; then
10322 USE_UNIX=0
10323 USE_WIN32=1
10324 cat >>confdefs.h <<\_ACEOF
10325#define __WIN32__ 1
10326_ACEOF
10327
10328 cat >>confdefs.h <<\_ACEOF
10329#define __WIN95__ 1
10330_ACEOF
10331
10332 cat >>confdefs.h <<\_ACEOF
10333#define __WINDOWS__ 1
10334_ACEOF
10335
10336 cat >>confdefs.h <<\_ACEOF
10337#define __GNUWIN32__ 1
10338_ACEOF
10339
10340 cat >>confdefs.h <<\_ACEOF
10341#define STRICT 1
10342_ACEOF
10343
10344 cat >>confdefs.h <<\_ACEOF
10345#define WINVER 0x0400
10346_ACEOF
10347
10348fi
10349if test "$doesnt_want_win32" = 1 ; then
10350 USE_UNIX=1
10351 USE_WIN32=0
10352fi
10353
10354if test "$USE_UNIX" = 1 ; then
10355 wxUSE_UNIX=yes
10356 cat >>confdefs.h <<\_ACEOF
10357#define __UNIX__ 1
10358_ACEOF
10359
10360fi
10361
10362
10363cat >confcache <<\_ACEOF
10364# This file is a shell script that caches the results of configure
10365# tests run on this system so they can be shared between configure
10366# scripts and configure runs, see configure's option --config-cache.
10367# It is not useful on other systems. If it contains results you don't
10368# want to keep, you may remove or edit it.
10369#
10370# config.status only pays attention to the cache file if you give it
10371# the --recheck option to rerun configure.
10372#
10373# `ac_cv_env_foo' variables (set or unset) will be overridden when
10374# loading this file, other *unset* `ac_cv_foo' will be assigned the
10375# following values.
10376
10377_ACEOF
10378
10379# The following way of writing the cache mishandles newlines in values,
10380# but we know of no workaround that is simple, portable, and efficient.
10381# So, don't put newlines in cache variables' values.
10382# Ultrix sh set writes to stderr and can't be redirected directly,
10383# and sets the high bit in the cache file unless we assign to the vars.
10384{
10385 (set) 2>&1 |
10386 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10387 *ac_space=\ *)
10388 # `set' does not quote correctly, so add quotes (double-quote
10389 # substitution turns \\\\ into \\, and sed turns \\ into \).
10390 sed -n \
ac1cb8d3
VS
10391 "s/'/'\\\\''/g;
10392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10393 ;;
10394 *)
10395 # `set' quotes correctly as required by POSIX, so do not add quotes.
10396 sed -n \
ac1cb8d3 10397 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10398 ;;
10399 esac;
10400} |
10401 sed '
10402 t clear
10403 : clear
10404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10405 t end
10406 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10407 : end' >>confcache
10408if diff $cache_file confcache >/dev/null 2>&1; then :; else
10409 if test -w $cache_file; then
10410 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10411 cat confcache >$cache_file
10412 else
10413 echo "not updating unwritable cache $cache_file"
10414 fi
10415fi
10416rm -f confcache
10417
10418if test "$build" != "$host" ; then
1e9e8aba 10419 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10420 CC=$host_alias-gcc
10421 CXX=$host_alias-c++
10422 AR=$host_alias-ar
10423 RANLIB=$host_alias-ranlib
10424 DLLTOOL=$host_alias-dlltool
10425 RESCOMP=$host_alias-windres
a848cd7e 10426 STRIP=$host_alias-strip
1e9e8aba
DE
10427 elif test "x$CC" '!=' "x"; then
10428 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10429 else
10430 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10431echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10432 { (exit 1); exit 1; }; }
10433 fi
10434fi
10435
10436CFLAGS=${CFLAGS:=}
10437ac_ext=c
10438ac_cpp='$CPP $CPPFLAGS'
10439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10441ac_compiler_gnu=$ac_cv_c_compiler_gnu
10442if test -n "$ac_tool_prefix"; then
10443 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10444set dummy ${ac_tool_prefix}gcc; ac_word=$2
10445echo "$as_me:$LINENO: checking for $ac_word" >&5
10446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10447if test "${ac_cv_prog_CC+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449else
10450 if test -n "$CC"; then
10451 ac_cv_prog_CC="$CC" # Let the user override the test.
10452else
10453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454for as_dir in $PATH
10455do
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10460 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 break 2
10463 fi
10464done
10465done
10466
10467fi
10468fi
10469CC=$ac_cv_prog_CC
10470if test -n "$CC"; then
10471 echo "$as_me:$LINENO: result: $CC" >&5
10472echo "${ECHO_T}$CC" >&6
10473else
10474 echo "$as_me:$LINENO: result: no" >&5
10475echo "${ECHO_T}no" >&6
10476fi
10477
10478fi
10479if test -z "$ac_cv_prog_CC"; then
10480 ac_ct_CC=$CC
10481 # Extract the first word of "gcc", so it can be a program name with args.
10482set dummy gcc; ac_word=$2
10483echo "$as_me:$LINENO: checking for $ac_word" >&5
10484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10485if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488 if test -n "$ac_ct_CC"; then
10489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10490else
10491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
10497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10498 ac_cv_prog_ac_ct_CC="gcc"
10499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 break 2
10501 fi
10502done
10503done
10504
10505fi
10506fi
10507ac_ct_CC=$ac_cv_prog_ac_ct_CC
10508if test -n "$ac_ct_CC"; then
10509 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10510echo "${ECHO_T}$ac_ct_CC" >&6
10511else
10512 echo "$as_me:$LINENO: result: no" >&5
10513echo "${ECHO_T}no" >&6
10514fi
10515
10516 CC=$ac_ct_CC
10517else
10518 CC="$ac_cv_prog_CC"
10519fi
10520
10521if test -z "$CC"; then
10522 if test -n "$ac_tool_prefix"; then
10523 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10524set dummy ${ac_tool_prefix}cc; ac_word=$2
10525echo "$as_me:$LINENO: checking for $ac_word" >&5
10526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10527if test "${ac_cv_prog_CC+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529else
10530 if test -n "$CC"; then
10531 ac_cv_prog_CC="$CC" # Let the user override the test.
10532else
10533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534for as_dir in $PATH
10535do
10536 IFS=$as_save_IFS
10537 test -z "$as_dir" && as_dir=.
10538 for ac_exec_ext in '' $ac_executable_extensions; do
10539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10540 ac_cv_prog_CC="${ac_tool_prefix}cc"
10541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10542 break 2
10543 fi
10544done
10545done
10546
10547fi
10548fi
10549CC=$ac_cv_prog_CC
10550if test -n "$CC"; then
10551 echo "$as_me:$LINENO: result: $CC" >&5
10552echo "${ECHO_T}$CC" >&6
10553else
10554 echo "$as_me:$LINENO: result: no" >&5
10555echo "${ECHO_T}no" >&6
10556fi
10557
10558fi
10559if test -z "$ac_cv_prog_CC"; then
10560 ac_ct_CC=$CC
10561 # Extract the first word of "cc", so it can be a program name with args.
10562set dummy cc; ac_word=$2
10563echo "$as_me:$LINENO: checking for $ac_word" >&5
10564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10565if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568 if test -n "$ac_ct_CC"; then
10569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10570else
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10578 ac_cv_prog_ac_ct_CC="cc"
10579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582done
10583done
10584
10585fi
10586fi
10587ac_ct_CC=$ac_cv_prog_ac_ct_CC
10588if test -n "$ac_ct_CC"; then
10589 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10590echo "${ECHO_T}$ac_ct_CC" >&6
10591else
10592 echo "$as_me:$LINENO: result: no" >&5
10593echo "${ECHO_T}no" >&6
10594fi
10595
10596 CC=$ac_ct_CC
10597else
10598 CC="$ac_cv_prog_CC"
10599fi
10600
10601fi
10602if test -z "$CC"; then
10603 # Extract the first word of "cc", so it can be a program name with args.
10604set dummy cc; ac_word=$2
10605echo "$as_me:$LINENO: checking for $ac_word" >&5
10606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10607if test "${ac_cv_prog_CC+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10609else
10610 if test -n "$CC"; then
10611 ac_cv_prog_CC="$CC" # Let the user override the test.
10612else
10613 ac_prog_rejected=no
10614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615for as_dir in $PATH
10616do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10622 ac_prog_rejected=yes
10623 continue
10624 fi
10625 ac_cv_prog_CC="cc"
10626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 break 2
10628 fi
10629done
10630done
10631
10632if test $ac_prog_rejected = yes; then
10633 # We found a bogon in the path, so make sure we never use it.
10634 set dummy $ac_cv_prog_CC
10635 shift
10636 if test $# != 0; then
10637 # We chose a different compiler from the bogus one.
10638 # However, it has the same basename, so the bogon will be chosen
10639 # first if we set CC to just the basename; use the full file name.
10640 shift
10641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10642 fi
10643fi
10644fi
10645fi
10646CC=$ac_cv_prog_CC
10647if test -n "$CC"; then
10648 echo "$as_me:$LINENO: result: $CC" >&5
10649echo "${ECHO_T}$CC" >&6
10650else
10651 echo "$as_me:$LINENO: result: no" >&5
10652echo "${ECHO_T}no" >&6
10653fi
10654
10655fi
10656if test -z "$CC"; then
10657 if test -n "$ac_tool_prefix"; then
10658 for ac_prog in cl
10659 do
10660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10661set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10662echo "$as_me:$LINENO: checking for $ac_word" >&5
10663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10664if test "${ac_cv_prog_CC+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667 if test -n "$CC"; then
10668 ac_cv_prog_CC="$CC" # Let the user override the test.
10669else
10670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671for as_dir in $PATH
10672do
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10680 fi
10681done
10682done
10683
10684fi
10685fi
10686CC=$ac_cv_prog_CC
10687if test -n "$CC"; then
10688 echo "$as_me:$LINENO: result: $CC" >&5
10689echo "${ECHO_T}$CC" >&6
10690else
10691 echo "$as_me:$LINENO: result: no" >&5
10692echo "${ECHO_T}no" >&6
10693fi
10694
10695 test -n "$CC" && break
10696 done
10697fi
10698if test -z "$CC"; then
10699 ac_ct_CC=$CC
10700 for ac_prog in cl
10701do
10702 # Extract the first word of "$ac_prog", so it can be a program name with args.
10703set dummy $ac_prog; ac_word=$2
10704echo "$as_me:$LINENO: checking for $ac_word" >&5
10705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10706if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708else
10709 if test -n "$ac_ct_CC"; then
10710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10711else
10712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713for as_dir in $PATH
10714do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719 ac_cv_prog_ac_ct_CC="$ac_prog"
10720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10722 fi
10723done
10724done
10725
10726fi
10727fi
10728ac_ct_CC=$ac_cv_prog_ac_ct_CC
10729if test -n "$ac_ct_CC"; then
10730 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10731echo "${ECHO_T}$ac_ct_CC" >&6
10732else
10733 echo "$as_me:$LINENO: result: no" >&5
10734echo "${ECHO_T}no" >&6
10735fi
10736
10737 test -n "$ac_ct_CC" && break
10738done
10739
10740 CC=$ac_ct_CC
10741fi
10742
10743fi
10744
10745
10746test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10747See \`config.log' for more details." >&5
10748echo "$as_me: error: no acceptable C compiler found in \$PATH
10749See \`config.log' for more details." >&2;}
10750 { (exit 1); exit 1; }; }
10751
10752# Provide some information about the compiler.
10753echo "$as_me:$LINENO:" \
10754 "checking for C compiler version" >&5
10755ac_compiler=`set X $ac_compile; echo $2`
10756{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10757 (eval $ac_compiler --version </dev/null >&5) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }
10761{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10762 (eval $ac_compiler -v </dev/null >&5) 2>&5
10763 ac_status=$?
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }
10766{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10767 (eval $ac_compiler -V </dev/null >&5) 2>&5
10768 ac_status=$?
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }
10771
10772cat >conftest.$ac_ext <<_ACEOF
10773/* confdefs.h. */
10774_ACEOF
10775cat confdefs.h >>conftest.$ac_ext
10776cat >>conftest.$ac_ext <<_ACEOF
10777/* end confdefs.h. */
10778
10779int
10780main ()
10781{
10782
10783 ;
10784 return 0;
10785}
10786_ACEOF
10787ac_clean_files_save=$ac_clean_files
10788ac_clean_files="$ac_clean_files a.out a.exe b.out"
10789# Try to create an executable without -o first, disregard a.out.
10790# It will help us diagnose broken compilers, and finding out an intuition
10791# of exeext.
ac1cb8d3
VS
10792echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10793echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10794ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10795if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10796 (eval $ac_link_default) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; then
10800 # Find the output, starting from the most likely. This scheme is
10801# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10802# resort.
10803
10804# Be careful to initialize this variable, since it used to be cached.
10805# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10806ac_cv_exeext=
10807# b.out is created by i960 compilers.
10808for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10809do
10810 test -f "$ac_file" || continue
10811 case $ac_file in
10812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10813 ;;
a848cd7e 10814 conftest.$ac_ext )
ac1cb8d3
VS
10815 # This is the source file.
10816 ;;
a848cd7e 10817 [ab].out )
ac1cb8d3
VS
10818 # We found the default executable, but exeext='' is most
10819 # certainly right.
10820 break;;
a848cd7e 10821 *.* )
ac1cb8d3
VS
10822 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10823 # FIXME: I believe we export ac_cv_exeext for Libtool,
10824 # but it would be cool to find out if it's true. Does anybody
10825 # maintain Libtool? --akim.
10826 export ac_cv_exeext
10827 break;;
a848cd7e 10828 * )
ac1cb8d3 10829 break;;
a848cd7e
SC
10830 esac
10831done
10832else
10833 echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
10836{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10837See \`config.log' for more details." >&5
10838echo "$as_me: error: C compiler cannot create executables
10839See \`config.log' for more details." >&2;}
10840 { (exit 77); exit 77; }; }
10841fi
10842
10843ac_exeext=$ac_cv_exeext
10844echo "$as_me:$LINENO: result: $ac_file" >&5
10845echo "${ECHO_T}$ac_file" >&6
10846
10847# Check the compiler produces executables we can run. If not, either
10848# the compiler is broken, or we cross compile.
10849echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10850echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10851# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10852# If not cross compiling, check that we can run a simple program.
10853if test "$cross_compiling" != yes; then
10854 if { ac_try='./$ac_file'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 cross_compiling=no
10861 else
10862 if test "$cross_compiling" = maybe; then
10863 cross_compiling=yes
10864 else
10865 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10866If you meant to cross compile, use \`--host'.
10867See \`config.log' for more details." >&5
10868echo "$as_me: error: cannot run C compiled programs.
10869If you meant to cross compile, use \`--host'.
10870See \`config.log' for more details." >&2;}
10871 { (exit 1); exit 1; }; }
10872 fi
10873 fi
10874fi
10875echo "$as_me:$LINENO: result: yes" >&5
10876echo "${ECHO_T}yes" >&6
10877
10878rm -f a.out a.exe conftest$ac_cv_exeext b.out
10879ac_clean_files=$ac_clean_files_save
10880# Check the compiler produces executables we can run. If not, either
10881# the compiler is broken, or we cross compile.
10882echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10883echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10884echo "$as_me:$LINENO: result: $cross_compiling" >&5
10885echo "${ECHO_T}$cross_compiling" >&6
10886
10887echo "$as_me:$LINENO: checking for suffix of executables" >&5
10888echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10890 (eval $ac_link) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; then
10894 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10895# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10896# work properly (i.e., refer to `conftest.exe'), while it won't with
10897# `rm'.
10898for ac_file in conftest.exe conftest conftest.*; do
10899 test -f "$ac_file" || continue
10900 case $ac_file in
10901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10902 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10903 export ac_cv_exeext
10904 break;;
a848cd7e
SC
10905 * ) break;;
10906 esac
10907done
10908else
10909 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10910See \`config.log' for more details." >&5
10911echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10912See \`config.log' for more details." >&2;}
10913 { (exit 1); exit 1; }; }
10914fi
10915
10916rm -f conftest$ac_cv_exeext
10917echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10918echo "${ECHO_T}$ac_cv_exeext" >&6
10919
10920rm -f conftest.$ac_ext
10921EXEEXT=$ac_cv_exeext
10922ac_exeext=$EXEEXT
10923echo "$as_me:$LINENO: checking for suffix of object files" >&5
10924echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10925if test "${ac_cv_objext+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 cat >conftest.$ac_ext <<_ACEOF
10929/* confdefs.h. */
10930_ACEOF
10931cat confdefs.h >>conftest.$ac_ext
10932cat >>conftest.$ac_ext <<_ACEOF
10933/* end confdefs.h. */
10934
10935int
10936main ()
10937{
10938
10939 ;
10940 return 0;
10941}
10942_ACEOF
10943rm -f conftest.o conftest.obj
10944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945 (eval $ac_compile) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; then
10949 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10950 case $ac_file in
10951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10953 break;;
10954 esac
10955done
10956else
10957 echo "$as_me: failed program was:" >&5
10958sed 's/^/| /' conftest.$ac_ext >&5
10959
10960{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10961See \`config.log' for more details." >&5
10962echo "$as_me: error: cannot compute suffix of object files: cannot compile
10963See \`config.log' for more details." >&2;}
10964 { (exit 1); exit 1; }; }
10965fi
10966
10967rm -f conftest.$ac_cv_objext conftest.$ac_ext
10968fi
10969echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10970echo "${ECHO_T}$ac_cv_objext" >&6
10971OBJEXT=$ac_cv_objext
10972ac_objext=$OBJEXT
10973echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10974echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10975if test "${ac_cv_c_compiler_gnu+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977else
10978 cat >conftest.$ac_ext <<_ACEOF
10979/* confdefs.h. */
10980_ACEOF
10981cat confdefs.h >>conftest.$ac_ext
10982cat >>conftest.$ac_ext <<_ACEOF
10983/* end confdefs.h. */
10984
10985int
10986main ()
10987{
10988#ifndef __GNUC__
10989 choke me
10990#endif
10991
10992 ;
10993 return 0;
10994}
10995_ACEOF
10996rm -f conftest.$ac_objext
10997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10998 (eval $ac_compile) 2>conftest.er1
a848cd7e 10999 ac_status=$?
ac1cb8d3
VS
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
a848cd7e
SC
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
da4486fb 11005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; } &&
11011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; }; then
11017 ac_compiler_gnu=yes
11018else
11019 echo "$as_me: failed program was:" >&5
11020sed 's/^/| /' conftest.$ac_ext >&5
11021
11022ac_compiler_gnu=no
11023fi
ac1cb8d3 11024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11025ac_cv_c_compiler_gnu=$ac_compiler_gnu
11026
11027fi
11028echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11029echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11030GCC=`test $ac_compiler_gnu = yes && echo yes`
11031ac_test_CFLAGS=${CFLAGS+set}
11032ac_save_CFLAGS=$CFLAGS
11033CFLAGS="-g"
11034echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11035echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11036if test "${ac_cv_prog_cc_g+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038else
11039 cat >conftest.$ac_ext <<_ACEOF
11040/* confdefs.h. */
11041_ACEOF
11042cat confdefs.h >>conftest.$ac_ext
11043cat >>conftest.$ac_ext <<_ACEOF
11044/* end confdefs.h. */
11045
11046int
11047main ()
11048{
11049
11050 ;
11051 return 0;
11052}
11053_ACEOF
11054rm -f conftest.$ac_objext
11055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11056 (eval $ac_compile) 2>conftest.er1
a848cd7e 11057 ac_status=$?
ac1cb8d3
VS
11058 grep -v '^ *+' conftest.er1 >conftest.err
11059 rm -f conftest.er1
11060 cat conftest.err >&5
a848cd7e
SC
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } &&
da4486fb 11063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_prog_cc_g=yes
11076else
11077 echo "$as_me: failed program was:" >&5
11078sed 's/^/| /' conftest.$ac_ext >&5
11079
11080ac_cv_prog_cc_g=no
11081fi
ac1cb8d3 11082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11083fi
11084echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11085echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11086if test "$ac_test_CFLAGS" = set; then
11087 CFLAGS=$ac_save_CFLAGS
11088elif test $ac_cv_prog_cc_g = yes; then
11089 if test "$GCC" = yes; then
11090 CFLAGS="-g -O2"
11091 else
11092 CFLAGS="-g"
11093 fi
11094else
11095 if test "$GCC" = yes; then
11096 CFLAGS="-O2"
11097 else
11098 CFLAGS=
11099 fi
11100fi
11101echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11102echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11103if test "${ac_cv_prog_cc_stdc+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11105else
11106 ac_cv_prog_cc_stdc=no
11107ac_save_CC=$CC
11108cat >conftest.$ac_ext <<_ACEOF
11109/* confdefs.h. */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h. */
11114#include <stdarg.h>
11115#include <stdio.h>
11116#include <sys/types.h>
11117#include <sys/stat.h>
11118/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11119struct buf { int x; };
11120FILE * (*rcsopen) (struct buf *, struct stat *, int);
11121static char *e (p, i)
11122 char **p;
11123 int i;
11124{
11125 return p[i];
11126}
11127static char *f (char * (*g) (char **, int), char **p, ...)
11128{
11129 char *s;
11130 va_list v;
11131 va_start (v,p);
11132 s = g (p, va_arg (v,int));
11133 va_end (v);
11134 return s;
11135}
ac1cb8d3
VS
11136
11137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11138 function prototypes and stuff, but not '\xHH' hex character constants.
11139 These don't provoke an error unfortunately, instead are silently treated
11140 as 'x'. The following induces an error, until -std1 is added to get
11141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11142 array size at least. It's necessary to write '\x00'==0 to get something
11143 that's true only with -std1. */
11144int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11145
a848cd7e
SC
11146int test (int i, double x);
11147struct s1 {int (*f) (int a);};
11148struct s2 {int (*f) (double a);};
11149int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11150int argc;
11151char **argv;
11152int
11153main ()
11154{
11155return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11156 ;
11157 return 0;
11158}
11159_ACEOF
11160# Don't try gcc -ansi; that turns off useful extensions and
11161# breaks some systems' header files.
11162# AIX -qlanglvl=ansi
11163# Ultrix and OSF/1 -std1
11164# HP-UX 10.20 and later -Ae
11165# HP-UX older versions -Aa -D_HPUX_SOURCE
11166# SVR4 -Xc -D__EXTENSIONS__
11167for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11168do
11169 CC="$ac_save_CC $ac_arg"
11170 rm -f conftest.$ac_objext
11171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11172 (eval $ac_compile) 2>conftest.er1
a848cd7e 11173 ac_status=$?
ac1cb8d3
VS
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
a848cd7e
SC
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
da4486fb 11179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_cv_prog_cc_stdc=$ac_arg
11192break
11193else
11194 echo "$as_me: failed program was:" >&5
11195sed 's/^/| /' conftest.$ac_ext >&5
11196
11197fi
ac1cb8d3 11198rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11199done
11200rm -f conftest.$ac_ext conftest.$ac_objext
11201CC=$ac_save_CC
11202
11203fi
11204
11205case "x$ac_cv_prog_cc_stdc" in
11206 x|xno)
11207 echo "$as_me:$LINENO: result: none needed" >&5
11208echo "${ECHO_T}none needed" >&6 ;;
11209 *)
11210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11211echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11212 CC="$CC $ac_cv_prog_cc_stdc" ;;
11213esac
11214
11215# Some people use a C++ compiler to compile C. Since we use `exit',
11216# in C++ we need to declare it. In case someone uses the same compiler
11217# for both compiling C and C++ we need to have the C++ compiler decide
11218# the declaration of exit, since it's the most demanding environment.
11219cat >conftest.$ac_ext <<_ACEOF
11220#ifndef __cplusplus
11221 choke me
11222#endif
11223_ACEOF
11224rm -f conftest.$ac_objext
11225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11226 (eval $ac_compile) 2>conftest.er1
a848cd7e 11227 ac_status=$?
ac1cb8d3
VS
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
a848cd7e
SC
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
da4486fb 11233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 for ac_declaration in \
ac1cb8d3 11246 '' \
a848cd7e
SC
11247 'extern "C" void std::exit (int) throw (); using std::exit;' \
11248 'extern "C" void std::exit (int); using std::exit;' \
11249 'extern "C" void exit (int) throw ();' \
11250 'extern "C" void exit (int);' \
11251 'void exit (int);'
11252do
11253 cat >conftest.$ac_ext <<_ACEOF
11254/* confdefs.h. */
11255_ACEOF
11256cat confdefs.h >>conftest.$ac_ext
11257cat >>conftest.$ac_ext <<_ACEOF
11258/* end confdefs.h. */
de59c161 11259$ac_declaration
ac1cb8d3 11260#include <stdlib.h>
a848cd7e
SC
11261int
11262main ()
11263{
11264exit (42);
11265 ;
11266 return 0;
11267}
11268_ACEOF
11269rm -f conftest.$ac_objext
11270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11271 (eval $ac_compile) 2>conftest.er1
a848cd7e 11272 ac_status=$?
ac1cb8d3
VS
11273 grep -v '^ *+' conftest.er1 >conftest.err
11274 rm -f conftest.er1
11275 cat conftest.err >&5
a848cd7e
SC
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } &&
da4486fb 11278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 :
11291else
11292 echo "$as_me: failed program was:" >&5
11293sed 's/^/| /' conftest.$ac_ext >&5
11294
11295continue
11296fi
ac1cb8d3 11297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11298 cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
11304$ac_declaration
11305int
11306main ()
11307{
11308exit (42);
11309 ;
11310 return 0;
11311}
11312_ACEOF
11313rm -f conftest.$ac_objext
11314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11315 (eval $ac_compile) 2>conftest.er1
a848cd7e 11316 ac_status=$?
ac1cb8d3
VS
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
a848cd7e
SC
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
da4486fb 11322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 break
11335else
11336 echo "$as_me: failed program was:" >&5
11337sed 's/^/| /' conftest.$ac_ext >&5
11338
11339fi
ac1cb8d3 11340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11341done
11342rm -f conftest*
11343if test -n "$ac_declaration"; then
11344 echo '#ifdef __cplusplus' >>confdefs.h
11345 echo $ac_declaration >>confdefs.h
11346 echo '#endif' >>confdefs.h
11347fi
11348
11349else
11350 echo "$as_me: failed program was:" >&5
11351sed 's/^/| /' conftest.$ac_ext >&5
11352
11353fi
ac1cb8d3 11354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11355ac_ext=c
11356ac_cpp='$CPP $CPPFLAGS'
11357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11359ac_compiler_gnu=$ac_cv_c_compiler_gnu
11360
11361
95986553
DE
11362ac_ext=c
11363ac_cpp='$CPP $CPPFLAGS'
11364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11366ac_compiler_gnu=$ac_cv_c_compiler_gnu
11367
11368echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11369echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11370if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372else
11373 cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379
11380int
11381main ()
11382{
11383#ifndef __MWERKS__
11384 choke me
11385#endif
11386
11387 ;
11388 return 0;
11389}
11390_ACEOF
11391rm -f conftest.$ac_objext
11392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 bakefile_compiler_mwerks=yes
11413else
11414 echo "$as_me: failed program was:" >&5
11415sed 's/^/| /' conftest.$ac_ext >&5
11416
11417bakefile_compiler_mwerks=no
11418fi
11419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11420 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11421
11422fi
11423echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11424echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11425
11426MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11427ac_ext=c
11428ac_cpp='$CPP $CPPFLAGS'
11429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11431ac_compiler_gnu=$ac_cv_c_compiler_gnu
11432
11433
a848cd7e
SC
11434
11435ac_ext=c
11436ac_cpp='$CPP $CPPFLAGS'
11437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11439ac_compiler_gnu=$ac_cv_c_compiler_gnu
11440echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11441echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11442# On Suns, sometimes $CPP names a directory.
11443if test -n "$CPP" && test -d "$CPP"; then
11444 CPP=
11445fi
11446if test -z "$CPP"; then
11447 if test "${ac_cv_prog_CPP+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449else
11450 # Double quotes because CPP needs to be expanded
11451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11452 do
11453 ac_preproc_ok=false
11454for ac_c_preproc_warn_flag in '' yes
11455do
11456 # Use a header file that comes with gcc, so configuring glibc
11457 # with a fresh cross-compiler works.
11458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11459 # <limits.h> exists even on freestanding compilers.
11460 # On the NeXT, cc -E runs the code through the compiler's parser,
11461 # not just through cpp. "Syntax error" is here to catch this case.
11462 cat >conftest.$ac_ext <<_ACEOF
11463/* confdefs.h. */
11464_ACEOF
11465cat confdefs.h >>conftest.$ac_ext
11466cat >>conftest.$ac_ext <<_ACEOF
11467/* end confdefs.h. */
11468#ifdef __STDC__
11469# include <limits.h>
11470#else
11471# include <assert.h>
11472#endif
ac1cb8d3 11473 Syntax error
a848cd7e
SC
11474_ACEOF
11475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11477 ac_status=$?
11478 grep -v '^ *+' conftest.er1 >conftest.err
11479 rm -f conftest.er1
11480 cat conftest.err >&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } >/dev/null; then
11483 if test -s conftest.err; then
11484 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11486 else
11487 ac_cpp_err=
11488 fi
11489else
11490 ac_cpp_err=yes
11491fi
11492if test -z "$ac_cpp_err"; then
11493 :
11494else
11495 echo "$as_me: failed program was:" >&5
11496sed 's/^/| /' conftest.$ac_ext >&5
11497
11498 # Broken: fails on valid input.
11499continue
11500fi
11501rm -f conftest.err conftest.$ac_ext
11502
11503 # OK, works on sane cases. Now check whether non-existent headers
11504 # can be detected and how.
11505 cat >conftest.$ac_ext <<_ACEOF
11506/* confdefs.h. */
11507_ACEOF
11508cat confdefs.h >>conftest.$ac_ext
11509cat >>conftest.$ac_ext <<_ACEOF
11510/* end confdefs.h. */
11511#include <ac_nonexistent.h>
11512_ACEOF
11513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } >/dev/null; then
11521 if test -s conftest.err; then
11522 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11524 else
11525 ac_cpp_err=
11526 fi
11527else
11528 ac_cpp_err=yes
11529fi
11530if test -z "$ac_cpp_err"; then
11531 # Broken: success on invalid input.
11532continue
11533else
11534 echo "$as_me: failed program was:" >&5
11535sed 's/^/| /' conftest.$ac_ext >&5
11536
11537 # Passes both tests.
11538ac_preproc_ok=:
11539break
11540fi
11541rm -f conftest.err conftest.$ac_ext
11542
11543done
11544# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11545rm -f conftest.err conftest.$ac_ext
11546if $ac_preproc_ok; then
11547 break
11548fi
11549
11550 done
11551 ac_cv_prog_CPP=$CPP
11552
11553fi
11554 CPP=$ac_cv_prog_CPP
11555else
11556 ac_cv_prog_CPP=$CPP
11557fi
11558echo "$as_me:$LINENO: result: $CPP" >&5
11559echo "${ECHO_T}$CPP" >&6
11560ac_preproc_ok=false
11561for ac_c_preproc_warn_flag in '' yes
11562do
11563 # Use a header file that comes with gcc, so configuring glibc
11564 # with a fresh cross-compiler works.
11565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11566 # <limits.h> exists even on freestanding compilers.
11567 # On the NeXT, cc -E runs the code through the compiler's parser,
11568 # not just through cpp. "Syntax error" is here to catch this case.
11569 cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h. */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h. */
11575#ifdef __STDC__
11576# include <limits.h>
11577#else
11578# include <assert.h>
11579#endif
ac1cb8d3 11580 Syntax error
a848cd7e
SC
11581_ACEOF
11582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11584 ac_status=$?
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } >/dev/null; then
11590 if test -s conftest.err; then
11591 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11593 else
11594 ac_cpp_err=
11595 fi
11596else
11597 ac_cpp_err=yes
11598fi
11599if test -z "$ac_cpp_err"; then
11600 :
11601else
11602 echo "$as_me: failed program was:" >&5
11603sed 's/^/| /' conftest.$ac_ext >&5
11604
11605 # Broken: fails on valid input.
11606continue
11607fi
11608rm -f conftest.err conftest.$ac_ext
11609
11610 # OK, works on sane cases. Now check whether non-existent headers
11611 # can be detected and how.
11612 cat >conftest.$ac_ext <<_ACEOF
11613/* confdefs.h. */
11614_ACEOF
11615cat confdefs.h >>conftest.$ac_ext
11616cat >>conftest.$ac_ext <<_ACEOF
11617/* end confdefs.h. */
11618#include <ac_nonexistent.h>
11619_ACEOF
11620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11622 ac_status=$?
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } >/dev/null; then
11628 if test -s conftest.err; then
11629 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11631 else
11632 ac_cpp_err=
11633 fi
11634else
11635 ac_cpp_err=yes
11636fi
11637if test -z "$ac_cpp_err"; then
11638 # Broken: success on invalid input.
11639continue
11640else
11641 echo "$as_me: failed program was:" >&5
11642sed 's/^/| /' conftest.$ac_ext >&5
11643
11644 # Passes both tests.
11645ac_preproc_ok=:
11646break
11647fi
11648rm -f conftest.err conftest.$ac_ext
11649
11650done
11651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11652rm -f conftest.err conftest.$ac_ext
11653if $ac_preproc_ok; then
11654 :
11655else
11656 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11657See \`config.log' for more details." >&5
11658echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11659See \`config.log' for more details." >&2;}
11660 { (exit 1); exit 1; }; }
11661fi
11662
11663ac_ext=c
11664ac_cpp='$CPP $CPPFLAGS'
11665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11667ac_compiler_gnu=$ac_cv_c_compiler_gnu
11668
11669
11670echo "$as_me:$LINENO: checking for egrep" >&5
11671echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11672if test "${ac_cv_prog_egrep+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674else
11675 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11676 then ac_cv_prog_egrep='grep -E'
11677 else ac_cv_prog_egrep='egrep'
11678 fi
11679fi
11680echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11681echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11682 EGREP=$ac_cv_prog_egrep
11683
11684
11685if test $ac_cv_c_compiler_gnu = yes; then
11686 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11687echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11688if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11690else
11691 ac_pattern="Autoconf.*'x'"
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#include <sgtty.h>
11699Autoconf TIOCGETP
11700_ACEOF
11701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11702 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11703 ac_cv_prog_gcc_traditional=yes
11704else
11705 ac_cv_prog_gcc_traditional=no
11706fi
11707rm -f conftest*
11708
11709
11710 if test $ac_cv_prog_gcc_traditional = no; then
11711 cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717#include <termio.h>
11718Autoconf TCGETA
11719_ACEOF
11720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11721 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11722 ac_cv_prog_gcc_traditional=yes
11723fi
11724rm -f conftest*
11725
11726 fi
11727fi
11728echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11729echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11730 if test $ac_cv_prog_gcc_traditional = yes; then
11731 CC="$CC -traditional"
11732 fi
11733fi
11734
11735
11736
11737
11738ac_ext=cc
11739ac_cpp='$CXXCPP $CPPFLAGS'
11740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11743
11744
11745CXXFLAGS=${CXXFLAGS:=}
11746ac_ext=cc
11747ac_cpp='$CXXCPP $CPPFLAGS'
11748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11751if test -n "$ac_tool_prefix"; then
11752 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11753 do
11754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11755set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11756echo "$as_me:$LINENO: checking for $ac_word" >&5
11757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11758if test "${ac_cv_prog_CXX+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760else
11761 if test -n "$CXX"; then
11762 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11763else
11764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765for as_dir in $PATH
11766do
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11771 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 break 2
11774 fi
11775done
11776done
11777
11778fi
11779fi
11780CXX=$ac_cv_prog_CXX
11781if test -n "$CXX"; then
11782 echo "$as_me:$LINENO: result: $CXX" >&5
11783echo "${ECHO_T}$CXX" >&6
11784else
11785 echo "$as_me:$LINENO: result: no" >&5
11786echo "${ECHO_T}no" >&6
11787fi
11788
11789 test -n "$CXX" && break
11790 done
11791fi
11792if test -z "$CXX"; then
11793 ac_ct_CXX=$CXX
11794 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11795do
11796 # Extract the first word of "$ac_prog", so it can be a program name with args.
11797set dummy $ac_prog; ac_word=$2
11798echo "$as_me:$LINENO: checking for $ac_word" >&5
11799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11800if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802else
11803 if test -n "$ac_ct_CXX"; then
11804 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11805else
11806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807for as_dir in $PATH
11808do
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11813 ac_cv_prog_ac_ct_CXX="$ac_prog"
11814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11815 break 2
11816 fi
11817done
11818done
11819
11820fi
11821fi
11822ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11823if test -n "$ac_ct_CXX"; then
11824 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11825echo "${ECHO_T}$ac_ct_CXX" >&6
11826else
11827 echo "$as_me:$LINENO: result: no" >&5
11828echo "${ECHO_T}no" >&6
11829fi
11830
11831 test -n "$ac_ct_CXX" && break
11832done
11833test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11834
11835 CXX=$ac_ct_CXX
11836fi
11837
11838
11839# Provide some information about the compiler.
11840echo "$as_me:$LINENO:" \
11841 "checking for C++ compiler version" >&5
11842ac_compiler=`set X $ac_compile; echo $2`
11843{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11844 (eval $ac_compiler --version </dev/null >&5) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }
11848{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11849 (eval $ac_compiler -v </dev/null >&5) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }
11853{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11854 (eval $ac_compiler -V </dev/null >&5) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }
11858
11859echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11860echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11861if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863else
11864 cat >conftest.$ac_ext <<_ACEOF
11865/* confdefs.h. */
11866_ACEOF
11867cat confdefs.h >>conftest.$ac_ext
11868cat >>conftest.$ac_ext <<_ACEOF
11869/* end confdefs.h. */
11870
11871int
11872main ()
11873{
11874#ifndef __GNUC__
11875 choke me
11876#endif
11877
11878 ;
11879 return 0;
11880}
11881_ACEOF
11882rm -f conftest.$ac_objext
11883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11884 (eval $ac_compile) 2>conftest.er1
a848cd7e 11885 ac_status=$?
ac1cb8d3
VS
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
a848cd7e
SC
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
da4486fb 11891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 ac_compiler_gnu=yes
11904else
11905 echo "$as_me: failed program was:" >&5
11906sed 's/^/| /' conftest.$ac_ext >&5
11907
11908ac_compiler_gnu=no
11909fi
ac1cb8d3 11910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11911ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11912
11913fi
11914echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11915echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11916GXX=`test $ac_compiler_gnu = yes && echo yes`
11917ac_test_CXXFLAGS=${CXXFLAGS+set}
11918ac_save_CXXFLAGS=$CXXFLAGS
11919CXXFLAGS="-g"
11920echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11921echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11922if test "${ac_cv_prog_cxx_g+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924else
11925 cat >conftest.$ac_ext <<_ACEOF
11926/* confdefs.h. */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h. */
11931
11932int
11933main ()
11934{
11935
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940rm -f conftest.$ac_objext
11941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11942 (eval $ac_compile) 2>conftest.er1
a848cd7e 11943 ac_status=$?
ac1cb8d3
VS
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
a848cd7e
SC
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
da4486fb 11949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_cv_prog_cxx_g=yes
11962else
11963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
11966ac_cv_prog_cxx_g=no
11967fi
ac1cb8d3 11968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11969fi
11970echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11971echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11972if test "$ac_test_CXXFLAGS" = set; then
11973 CXXFLAGS=$ac_save_CXXFLAGS
11974elif test $ac_cv_prog_cxx_g = yes; then
11975 if test "$GXX" = yes; then
11976 CXXFLAGS="-g -O2"
11977 else
11978 CXXFLAGS="-g"
11979 fi
11980else
11981 if test "$GXX" = yes; then
11982 CXXFLAGS="-O2"
11983 else
11984 CXXFLAGS=
11985 fi
11986fi
11987for ac_declaration in \
ac1cb8d3 11988 '' \
a848cd7e
SC
11989 'extern "C" void std::exit (int) throw (); using std::exit;' \
11990 'extern "C" void std::exit (int); using std::exit;' \
11991 'extern "C" void exit (int) throw ();' \
11992 'extern "C" void exit (int);' \
11993 'void exit (int);'
11994do
11995 cat >conftest.$ac_ext <<_ACEOF
11996/* confdefs.h. */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h. */
de59c161 12001$ac_declaration
ac1cb8d3 12002#include <stdlib.h>
a848cd7e
SC
12003int
12004main ()
12005{
12006exit (42);
12007 ;
12008 return 0;
12009}
12010_ACEOF
12011rm -f conftest.$ac_objext
12012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12013 (eval $ac_compile) 2>conftest.er1
a848cd7e 12014 ac_status=$?
ac1cb8d3
VS
12015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
a848cd7e
SC
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
da4486fb 12020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; } &&
12026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 :
12033else
12034 echo "$as_me: failed program was:" >&5
12035sed 's/^/| /' conftest.$ac_ext >&5
12036
12037continue
12038fi
ac1cb8d3 12039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12040 cat >conftest.$ac_ext <<_ACEOF
12041/* confdefs.h. */
12042_ACEOF
12043cat confdefs.h >>conftest.$ac_ext
12044cat >>conftest.$ac_ext <<_ACEOF
12045/* end confdefs.h. */
12046$ac_declaration
12047int
12048main ()
12049{
12050exit (42);
12051 ;
12052 return 0;
12053}
12054_ACEOF
12055rm -f conftest.$ac_objext
12056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12057 (eval $ac_compile) 2>conftest.er1
a848cd7e 12058 ac_status=$?
ac1cb8d3
VS
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
a848cd7e
SC
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
da4486fb 12064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; } &&
12070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 break
12077else
12078 echo "$as_me: failed program was:" >&5
12079sed 's/^/| /' conftest.$ac_ext >&5
12080
12081fi
ac1cb8d3 12082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12083done
12084rm -f conftest*
12085if test -n "$ac_declaration"; then
12086 echo '#ifdef __cplusplus' >>confdefs.h
12087 echo $ac_declaration >>confdefs.h
12088 echo '#endif' >>confdefs.h
12089fi
12090
12091ac_ext=cc
12092ac_cpp='$CXXCPP $CPPFLAGS'
12093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12096
12097
95986553
DE
12098ac_ext=cc
12099ac_cpp='$CXXCPP $CPPFLAGS'
12100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12103
12104echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12105echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12106if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108else
12109 cat >conftest.$ac_ext <<_ACEOF
12110/* confdefs.h. */
12111_ACEOF
12112cat confdefs.h >>conftest.$ac_ext
12113cat >>conftest.$ac_ext <<_ACEOF
12114/* end confdefs.h. */
12115
12116int
12117main ()
12118{
12119#ifndef __MWERKS__
12120 choke me
12121#endif
12122
12123 ;
12124 return 0;
12125}
12126_ACEOF
12127rm -f conftest.$ac_objext
12128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12129 (eval $ac_compile) 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); } &&
12136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; } &&
12142 { ac_try='test -s conftest.$ac_objext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 bakefile_compiler_mwerks=yes
12149else
12150 echo "$as_me: failed program was:" >&5
12151sed 's/^/| /' conftest.$ac_ext >&5
12152
12153bakefile_compiler_mwerks=no
12154fi
12155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12156 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12157
12158fi
12159echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12160echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12161
12162MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12163ac_ext=cc
12164ac_cpp='$CXXCPP $CPPFLAGS'
12165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12168
12169
12170
a848cd7e
SC
12171ac_ext=c
12172ac_cpp='$CPP $CPPFLAGS'
12173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12175ac_compiler_gnu=$ac_cv_c_compiler_gnu
12176
12177
a848cd7e
SC
12178if test -n "$ac_tool_prefix"; then
12179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12180set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12181echo "$as_me:$LINENO: checking for $ac_word" >&5
12182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12183if test "${ac_cv_prog_RANLIB+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185else
12186 if test -n "$RANLIB"; then
12187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12188else
12189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190for as_dir in $PATH
12191do
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
12194 for ac_exec_ext in '' $ac_executable_extensions; do
12195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 break 2
12199 fi
12200done
12201done
12202
12203fi
12204fi
12205RANLIB=$ac_cv_prog_RANLIB
12206if test -n "$RANLIB"; then
12207 echo "$as_me:$LINENO: result: $RANLIB" >&5
12208echo "${ECHO_T}$RANLIB" >&6
12209else
12210 echo "$as_me:$LINENO: result: no" >&5
12211echo "${ECHO_T}no" >&6
12212fi
12213
12214fi
12215if test -z "$ac_cv_prog_RANLIB"; then
12216 ac_ct_RANLIB=$RANLIB
12217 # Extract the first word of "ranlib", so it can be a program name with args.
12218set dummy ranlib; ac_word=$2
12219echo "$as_me:$LINENO: checking for $ac_word" >&5
12220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12221if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223else
12224 if test -n "$ac_ct_RANLIB"; then
12225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12226else
12227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228for as_dir in $PATH
12229do
12230 IFS=$as_save_IFS
12231 test -z "$as_dir" && as_dir=.
12232 for ac_exec_ext in '' $ac_executable_extensions; do
12233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12234 ac_cv_prog_ac_ct_RANLIB="ranlib"
12235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12236 break 2
12237 fi
12238done
12239done
12240
12241 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12242fi
12243fi
12244ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12245if test -n "$ac_ct_RANLIB"; then
12246 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12247echo "${ECHO_T}$ac_ct_RANLIB" >&6
12248else
12249 echo "$as_me:$LINENO: result: no" >&5
12250echo "${ECHO_T}no" >&6
12251fi
12252
12253 RANLIB=$ac_ct_RANLIB
12254else
12255 RANLIB="$ac_cv_prog_RANLIB"
12256fi
12257
12258
12259# Extract the first word of "ar", so it can be a program name with args.
12260set dummy ar; ac_word=$2
12261echo "$as_me:$LINENO: checking for $ac_word" >&5
12262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12263if test "${ac_cv_prog_AR+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265else
12266 if test -n "$AR"; then
12267 ac_cv_prog_AR="$AR" # Let the user override the test.
12268else
12269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270for as_dir in $PATH
12271do
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12276 ac_cv_prog_AR="ar"
12277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12279 fi
12280done
12281done
12282
12283fi
12284fi
12285AR=$ac_cv_prog_AR
12286if test -n "$AR"; then
12287 echo "$as_me:$LINENO: result: $AR" >&5
12288echo "${ECHO_T}$AR" >&6
12289else
12290 echo "$as_me:$LINENO: result: no" >&5
12291echo "${ECHO_T}no" >&6
12292fi
12293
12294if test "x$AR" = "x" ; then
77ffb593
JS
12295 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12296echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12297 { (exit 1); exit 1; }; }
12298fi
12299
12300# Find a good install program. We prefer a C program (faster),
12301# so one script is as good as another. But avoid the broken or
12302# incompatible versions:
12303# SysV /etc/install, /usr/sbin/install
12304# SunOS /usr/etc/install
12305# IRIX /sbin/install
12306# AIX /bin/install
12307# AmigaOS /C/install, which installs bootblocks on floppy discs
12308# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12309# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12310# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12311# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12312# ./install, which can be erroneously created by make from ./install.sh.
12313echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12314echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12315if test -z "$INSTALL"; then
12316if test "${ac_cv_path_install+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12318else
12319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320for as_dir in $PATH
12321do
12322 IFS=$as_save_IFS
12323 test -z "$as_dir" && as_dir=.
12324 # Account for people who put trailing slashes in PATH elements.
12325case $as_dir/ in
12326 ./ | .// | /cC/* | \
12327 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12328 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12329 /usr/ucb/* ) ;;
12330 *)
12331 # OSF1 and SCO ODT 3.0 have their own names for install.
12332 # Don't use installbsd from OSF since it installs stuff as root
12333 # by default.
12334 for ac_prog in ginstall scoinst install; do
12335 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12336 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12337 if test $ac_prog = install &&
12338 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12339 # AIX install. It has an incompatible calling convention.
12340 :
12341 elif test $ac_prog = install &&
12342 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12343 # program-specific install script used by HP pwplus--don't use.
12344 :
12345 else
12346 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12347 break 3
12348 fi
12349 fi
a848cd7e
SC
12350 done
12351 done
12352 ;;
12353esac
12354done
12355
12356
12357fi
12358 if test "${ac_cv_path_install+set}" = set; then
12359 INSTALL=$ac_cv_path_install
12360 else
12361 # As a last resort, use the slow shell script. We don't cache a
12362 # path for INSTALL within a source directory, because that will
12363 # break other packages using the cache if that directory is
12364 # removed, or if the path is relative.
12365 INSTALL=$ac_install_sh
12366 fi
12367fi
12368echo "$as_me:$LINENO: result: $INSTALL" >&5
12369echo "${ECHO_T}$INSTALL" >&6
12370
12371# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12372# It thinks the first close brace ends the variable substitution.
12373test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12374
12375test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12376
12377test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12378
12379
12380case ${INSTALL} in
12381 /* ) # Absolute
12382 ;;
12383 ?:* ) # Drive letter, considered as absolute.
12384 ;;
12385 *)
12386 INSTALL=`pwd`/${INSTALL} ;;
12387esac
12388
a848cd7e
SC
12389
12390case "${host}" in
12391
12392 powerpc-*-darwin* )
12393 INSTALL_PROGRAM="cp -fp"
12394 INSTALL_DATA="cp -fp"
12395 ;;
12396 *)
12397 ;;
12398esac
12399
12400# Extract the first word of "strip", so it can be a program name with args.
12401set dummy strip; ac_word=$2
12402echo "$as_me:$LINENO: checking for $ac_word" >&5
12403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12404if test "${ac_cv_prog_STRIP+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12406else
12407 if test -n "$STRIP"; then
12408 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12409else
12410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411for as_dir in $PATH
12412do
12413 IFS=$as_save_IFS
12414 test -z "$as_dir" && as_dir=.
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12417 ac_cv_prog_STRIP="strip"
12418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12419 break 2
12420 fi
12421done
12422done
12423
12424 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12425fi
12426fi
12427STRIP=$ac_cv_prog_STRIP
12428if test -n "$STRIP"; then
12429 echo "$as_me:$LINENO: result: $STRIP" >&5
12430echo "${ECHO_T}$STRIP" >&6
12431else
12432 echo "$as_me:$LINENO: result: no" >&5
12433echo "${ECHO_T}no" >&6
12434fi
12435
12436
12437echo "$as_me:$LINENO: checking if make is GNU make" >&5
12438echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12439if test "${wx_cv_prog_makeisgnu+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441else
12442
12443 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12444 egrep -s GNU > /dev/null); then
12445 wx_cv_prog_makeisgnu="yes"
12446 else
12447 wx_cv_prog_makeisgnu="no"
12448 fi
12449
12450fi
12451echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12452echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12453
12454if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12455 IF_GNU_MAKE=""
12456else
12457 IF_GNU_MAKE="#"
12458fi
12459
12460
12461
12462if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12463echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12464echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12465if test "${wx_cv_prog_makevpath+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467else
12468
12469cat - << EOF > confMake
12470check : file
12471 cp \$? \$@
12472 cp \$? final_file
12473EOF
12474
12475if test ! -d sub ; then
12476 mkdir sub
12477fi
12478echo dummy > sub/file
12479${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12480RESULT=$?
12481rm -f sub/file check final_file confMake
12482rmdir sub
12483if test "$RESULT" = 0; then
12484 wx_cv_prog_makevpath="yes"
12485else
12486 wx_cv_prog_makevpath="no"
12487fi
12488
12489fi
12490echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12491echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12492
12493if test "x$wx_cv_prog_makevpath" != "xyes"; then
12494{ { echo "$as_me:$LINENO: error:
12495You need a make-utility that is able to use the variable
12496VPATH correctly.
12497If your version of make does not support VPATH correctly,
12498please install GNU-make (possibly as gmake), and start
12499configure with the following command:
12500export MAKE=gmake; ./configure for sh-type shells
12501setenv MAKE gmake; ./configure for csh-type shells
12502Also please do remember to use gmake in this case every time
12503you are trying to compile.
12504" >&5
12505echo "$as_me: error:
12506You need a make-utility that is able to use the variable
12507VPATH correctly.
12508If your version of make does not support VPATH correctly,
12509please install GNU-make (possibly as gmake), and start
12510configure with the following command:
12511export MAKE=gmake; ./configure for sh-type shells
12512setenv MAKE gmake; ./configure for csh-type shells
12513Also please do remember to use gmake in this case every time
12514you are trying to compile.
12515" >&2;}
12516 { (exit 1); exit 1; }; }
12517fi fi
12518echo "$as_me:$LINENO: checking whether ln -s works" >&5
12519echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12520LN_S=$as_ln_s
12521if test "$LN_S" = "ln -s"; then
12522 echo "$as_me:$LINENO: result: yes" >&5
12523echo "${ECHO_T}yes" >&6
12524else
12525 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12526echo "${ECHO_T}no, using $LN_S" >&6
12527fi
12528
12529
12530
12531case "${host}" in
12532 *-pc-os2_emx | *-pc-os2-emx )
12533 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12534 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12535echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12536if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12538else
12539 ac_check_lib_save_LIBS=$LIBS
12540LIBS="-lcExt $LIBS"
12541cat >conftest.$ac_ext <<_ACEOF
12542/* confdefs.h. */
12543_ACEOF
12544cat confdefs.h >>conftest.$ac_ext
12545cat >>conftest.$ac_ext <<_ACEOF
12546/* end confdefs.h. */
12547
12548/* Override any gcc2 internal prototype to avoid an error. */
12549#ifdef __cplusplus
12550extern "C"
12551#endif
12552/* We use char because int might match the return type of a gcc2
12553 builtin and then its argument prototype would still apply. */
12554char drand48 ();
12555int
12556main ()
12557{
12558drand48 ();
12559 ;
12560 return 0;
12561}
12562_ACEOF
12563rm -f conftest.$ac_objext conftest$ac_exeext
12564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12565 (eval $ac_link) 2>conftest.er1
a848cd7e 12566 ac_status=$?
ac1cb8d3
VS
12567 grep -v '^ *+' conftest.er1 >conftest.err
12568 rm -f conftest.er1
12569 cat conftest.err >&5
a848cd7e
SC
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
da4486fb 12572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 ac_cv_lib_cExt_drand48=yes
12585else
12586 echo "$as_me: failed program was:" >&5
12587sed 's/^/| /' conftest.$ac_ext >&5
12588
12589ac_cv_lib_cExt_drand48=no
12590fi
ac1cb8d3
VS
12591rm -f conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12593LIBS=$ac_check_lib_save_LIBS
12594fi
12595echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12596echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12597if test $ac_cv_lib_cExt_drand48 = yes; then
12598 LIBS="$LIBS -lcExt"
12599fi
12600
12601 else
12602 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12603 fi
12604 echo "$as_me:$LINENO: checking for gcc version" >&5
12605echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12606if test "${wx_cv_gccversion+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12608else
12609
12610 cat >conftest.$ac_ext <<_ACEOF
12611/* confdefs.h. */
12612_ACEOF
12613cat confdefs.h >>conftest.$ac_ext
12614cat >>conftest.$ac_ext <<_ACEOF
12615/* end confdefs.h. */
12616
12617int
12618main ()
12619{
12620
12621 #if (__GNUC__ < 3)
12622 #error old gcc
12623 #endif
12624
12625 ;
12626 return 0;
12627}
12628_ACEOF
12629rm -f conftest.$ac_objext
12630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12631 (eval $ac_compile) 2>conftest.er1
a848cd7e 12632 ac_status=$?
ac1cb8d3
VS
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
a848cd7e
SC
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
da4486fb 12638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650
12651 cat >conftest.$ac_ext <<_ACEOF
12652/* confdefs.h. */
12653_ACEOF
12654cat confdefs.h >>conftest.$ac_ext
12655cat >>conftest.$ac_ext <<_ACEOF
12656/* end confdefs.h. */
12657
12658int
12659main ()
12660{
12661
12662 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12663 #error intermediate gcc
12664 #endif
12665
12666 ;
12667 return 0;
12668}
12669_ACEOF
12670rm -f conftest.$ac_objext
12671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12672 (eval $ac_compile) 2>conftest.er1
a848cd7e 12673 ac_status=$?
ac1cb8d3
VS
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
a848cd7e
SC
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
da4486fb 12679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691
12692 wx_cv_gccversion=Innotek
12693
12694else
12695 echo "$as_me: failed program was:" >&5
12696sed 's/^/| /' conftest.$ac_ext >&5
12697
12698
12699 wx_cv_gccversion=3
12700
12701
12702fi
ac1cb8d3 12703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12704
12705else
12706 echo "$as_me: failed program was:" >&5
12707sed 's/^/| /' conftest.$ac_ext >&5
12708
12709
12710 wx_cv_gccversion=2
12711
12712
12713fi
ac1cb8d3 12714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12715
12716fi
12717echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12718echo "${ECHO_T}$wx_cv_gccversion" >&6
12719 if test "$wx_cv_gccversion" = "2"; then
12720 LIBS="$LIBS -lstdcpp"
12721 LDFLAGS="$LDFLAGS -Zsysv-signals"
12722 else
12723 if test "$wx_cv_gccversion" = "3"; then
12724 LIBS="$LIBS -lstdcxx"
12725 LDFLAGS="$LDFLAGS -Zsysv-signals"
12726 else
12727 LIBS="$LIBS -lstdc++"
12728 fi
12729 fi
12730 if test "$wxUSE_OMF" = "yes"; then
de59c161 12731 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12732 fi
12733 ;;
12734 *)
12735
12736
12737
12738 ac_ext=cc
12739ac_cpp='$CXXCPP $CPPFLAGS'
12740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12743
12744
95986553 12745 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
12746echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12747if test "${ac_cv_string_strcasecmp+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12749else
12750
12751 cat >conftest.$ac_ext <<_ACEOF
12752/* confdefs.h. */
12753_ACEOF
12754cat confdefs.h >>conftest.$ac_ext
12755cat >>conftest.$ac_ext <<_ACEOF
12756/* end confdefs.h. */
12757
12758 #include <string.h>
12759
12760int
12761main ()
12762{
12763
12764 strcasecmp("foo", "bar");
12765
12766 ;
12767 return 0;
12768}
12769_ACEOF
12770rm -f conftest.$ac_objext conftest$ac_exeext
12771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12772 (eval $ac_link) 2>conftest.er1
a848cd7e 12773 ac_status=$?
ac1cb8d3
VS
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
a848cd7e
SC
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
da4486fb 12779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 ac_cv_string_strcasecmp=yes
12792else
12793 echo "$as_me: failed program was:" >&5
12794sed 's/^/| /' conftest.$ac_ext >&5
12795
12796ac_cv_string_strcasecmp=no
12797
12798fi
ac1cb8d3
VS
12799rm -f conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12801
12802fi
12803echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12804echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12805
12806 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12807 cat >>confdefs.h <<\_ACEOF
12808#define HAVE_STRCASECMP_IN_STRING_H 1
12809_ACEOF
12810
12811 else
12812 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12813echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12814if test "${ac_cv_strings_strcasecmp+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816else
12817
12818 cat >conftest.$ac_ext <<_ACEOF
12819/* confdefs.h. */
12820_ACEOF
12821cat confdefs.h >>conftest.$ac_ext
12822cat >>conftest.$ac_ext <<_ACEOF
12823/* end confdefs.h. */
12824
12825 #include <strings.h>
12826
12827int
12828main ()
12829{
12830
12831 strcasecmp("foo", "bar");
12832
12833 ;
12834 return 0;
12835}
12836_ACEOF
12837rm -f conftest.$ac_objext conftest$ac_exeext
12838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12839 (eval $ac_link) 2>conftest.er1
a848cd7e 12840 ac_status=$?
ac1cb8d3
VS
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
a848cd7e
SC
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
da4486fb 12846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_cv_strings_strcasecmp=yes
12859else
12860 echo "$as_me: failed program was:" >&5
12861sed 's/^/| /' conftest.$ac_ext >&5
12862
12863ac_cv_strings_strcasecmp=no
12864
12865fi
ac1cb8d3
VS
12866rm -f conftest.err conftest.$ac_objext \
12867 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12868
12869fi
12870echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12871echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12872
0c3c69fc 12873 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12874 cat >>confdefs.h <<\_ACEOF
12875#define HAVE_STRCASECMP_IN_STRINGS_H 1
12876_ACEOF
12877
12878 else
12879 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12880echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12881 { (exit 1); exit 1; }; }
12882 fi
12883 fi
12884
12885 ac_ext=c
12886ac_cpp='$CPP $CPPFLAGS'
12887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12889ac_compiler_gnu=$ac_cv_c_compiler_gnu
12890
12891 ;;
12892esac
12893
12894
12895echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12896echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12897if test "${ac_cv_header_stdc+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12899else
12900 cat >conftest.$ac_ext <<_ACEOF
12901/* confdefs.h. */
12902_ACEOF
12903cat confdefs.h >>conftest.$ac_ext
12904cat >>conftest.$ac_ext <<_ACEOF
12905/* end confdefs.h. */
12906#include <stdlib.h>
12907#include <stdarg.h>
12908#include <string.h>
12909#include <float.h>
12910
12911int
12912main ()
12913{
12914
12915 ;
12916 return 0;
12917}
12918_ACEOF
12919rm -f conftest.$ac_objext
12920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12921 (eval $ac_compile) 2>conftest.er1
a848cd7e 12922 ac_status=$?
ac1cb8d3
VS
12923 grep -v '^ *+' conftest.er1 >conftest.err
12924 rm -f conftest.er1
12925 cat conftest.err >&5
a848cd7e
SC
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } &&
da4486fb 12928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; } &&
12934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 (eval $ac_try) 2>&5
12937 ac_status=$?
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; }; then
12940 ac_cv_header_stdc=yes
12941else
12942 echo "$as_me: failed program was:" >&5
12943sed 's/^/| /' conftest.$ac_ext >&5
12944
12945ac_cv_header_stdc=no
12946fi
ac1cb8d3 12947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12948
12949if test $ac_cv_header_stdc = yes; then
12950 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12951 cat >conftest.$ac_ext <<_ACEOF
12952/* confdefs.h. */
12953_ACEOF
12954cat confdefs.h >>conftest.$ac_ext
12955cat >>conftest.$ac_ext <<_ACEOF
12956/* end confdefs.h. */
12957#include <string.h>
12958
12959_ACEOF
12960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12961 $EGREP "memchr" >/dev/null 2>&1; then
12962 :
12963else
12964 ac_cv_header_stdc=no
12965fi
12966rm -f conftest*
12967
12968fi
12969
12970if test $ac_cv_header_stdc = yes; then
12971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12972 cat >conftest.$ac_ext <<_ACEOF
12973/* confdefs.h. */
12974_ACEOF
12975cat confdefs.h >>conftest.$ac_ext
12976cat >>conftest.$ac_ext <<_ACEOF
12977/* end confdefs.h. */
12978#include <stdlib.h>
12979
12980_ACEOF
12981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12982 $EGREP "free" >/dev/null 2>&1; then
12983 :
12984else
12985 ac_cv_header_stdc=no
12986fi
12987rm -f conftest*
12988
12989fi
12990
12991if test $ac_cv_header_stdc = yes; then
12992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12993 if test "$cross_compiling" = yes; then
12994 :
12995else
12996 cat >conftest.$ac_ext <<_ACEOF
12997/* confdefs.h. */
12998_ACEOF
12999cat confdefs.h >>conftest.$ac_ext
13000cat >>conftest.$ac_ext <<_ACEOF
13001/* end confdefs.h. */
13002#include <ctype.h>
13003#if ((' ' & 0x0FF) == 0x020)
13004# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13005# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13006#else
13007# define ISLOWER(c) \
ac1cb8d3
VS
13008 (('a' <= (c) && (c) <= 'i') \
13009 || ('j' <= (c) && (c) <= 'r') \
13010 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13011# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13012#endif
13013
13014#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13015int
13016main ()
13017{
13018 int i;
13019 for (i = 0; i < 256; i++)
13020 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13021 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13022 exit(2);
13023 exit (0);
13024}
13025_ACEOF
13026rm -f conftest$ac_exeext
13027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028 (eval $ac_link) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 :
13038else
13039 echo "$as_me: program exited with status $ac_status" >&5
13040echo "$as_me: failed program was:" >&5
13041sed 's/^/| /' conftest.$ac_ext >&5
13042
13043( exit $ac_status )
13044ac_cv_header_stdc=no
13045fi
ac1cb8d3 13046rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13047fi
13048fi
13049fi
13050echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13051echo "${ECHO_T}$ac_cv_header_stdc" >&6
13052if test $ac_cv_header_stdc = yes; then
13053
13054cat >>confdefs.h <<\_ACEOF
13055#define STDC_HEADERS 1
13056_ACEOF
13057
13058fi
13059
13060# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13071 inttypes.h stdint.h unistd.h
a848cd7e
SC
13072do
13073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13074echo "$as_me:$LINENO: checking for $ac_header" >&5
13075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13076if eval "test \"\${$as_ac_Header+set}\" = set"; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13078else
13079 cat >conftest.$ac_ext <<_ACEOF
13080/* confdefs.h. */
13081_ACEOF
13082cat confdefs.h >>conftest.$ac_ext
13083cat >>conftest.$ac_ext <<_ACEOF
13084/* end confdefs.h. */
13085$ac_includes_default
13086
13087#include <$ac_header>
13088_ACEOF
13089rm -f conftest.$ac_objext
13090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13091 (eval $ac_compile) 2>conftest.er1
a848cd7e 13092 ac_status=$?
ac1cb8d3
VS
13093 grep -v '^ *+' conftest.er1 >conftest.err
13094 rm -f conftest.er1
13095 cat conftest.err >&5
a848cd7e
SC
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
da4486fb 13098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; } &&
13104 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 eval "$as_ac_Header=yes"
13111else
13112 echo "$as_me: failed program was:" >&5
13113sed 's/^/| /' conftest.$ac_ext >&5
13114
13115eval "$as_ac_Header=no"
13116fi
ac1cb8d3 13117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13118fi
13119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13121if test `eval echo '${'$as_ac_Header'}'` = yes; then
13122 cat >>confdefs.h <<_ACEOF
13123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13124_ACEOF
13125
13126fi
13127
13128done
13129
13130
13131
13132for ac_header in stdlib.h
13133do
13134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13135if eval "test \"\${$as_ac_Header+set}\" = set"; then
13136 echo "$as_me:$LINENO: checking for $ac_header" >&5
13137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13138if eval "test \"\${$as_ac_Header+set}\" = set"; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13140fi
13141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13143else
13144 # Is the header compilable?
13145echo "$as_me:$LINENO: checking $ac_header usability" >&5
13146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13147cat >conftest.$ac_ext <<_ACEOF
13148/* confdefs.h. */
13149_ACEOF
13150cat confdefs.h >>conftest.$ac_ext
13151cat >>conftest.$ac_ext <<_ACEOF
13152/* end confdefs.h. */
13153$ac_includes_default
13154#include <$ac_header>
13155_ACEOF
13156rm -f conftest.$ac_objext
13157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13158 (eval $ac_compile) 2>conftest.er1
a848cd7e 13159 ac_status=$?
ac1cb8d3
VS
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
a848cd7e
SC
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
da4486fb 13165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_header_compiler=yes
13178else
13179 echo "$as_me: failed program was:" >&5
13180sed 's/^/| /' conftest.$ac_ext >&5
13181
13182ac_header_compiler=no
13183fi
ac1cb8d3 13184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13185echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13186echo "${ECHO_T}$ac_header_compiler" >&6
13187
13188# Is the header present?
13189echo "$as_me:$LINENO: checking $ac_header presence" >&5
13190echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13191cat >conftest.$ac_ext <<_ACEOF
13192/* confdefs.h. */
13193_ACEOF
13194cat confdefs.h >>conftest.$ac_ext
13195cat >>conftest.$ac_ext <<_ACEOF
13196/* end confdefs.h. */
13197#include <$ac_header>
13198_ACEOF
13199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } >/dev/null; then
13207 if test -s conftest.err; then
13208 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13210 else
13211 ac_cpp_err=
13212 fi
13213else
13214 ac_cpp_err=yes
13215fi
13216if test -z "$ac_cpp_err"; then
13217 ac_header_preproc=yes
13218else
13219 echo "$as_me: failed program was:" >&5
13220sed 's/^/| /' conftest.$ac_ext >&5
13221
13222 ac_header_preproc=no
13223fi
13224rm -f conftest.err conftest.$ac_ext
13225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13226echo "${ECHO_T}$ac_header_preproc" >&6
13227
13228# So? What about this header?
ac1cb8d3
VS
13229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13230 yes:no: )
a848cd7e
SC
13231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13232echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13234echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13235 ac_header_preproc=yes
a848cd7e 13236 ;;
ac1cb8d3 13237 no:yes:* )
a848cd7e
SC
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13239echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13241echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13243echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13245echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13247echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13249echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13250 (
13251 cat <<\_ASBOX
ac1cb8d3
VS
13252## ----------------------------------------- ##
13253## Report this to wx-dev@lists.wxwidgets.org ##
13254## ----------------------------------------- ##
a848cd7e
SC
13255_ASBOX
13256 ) |
13257 sed "s/^/$as_me: WARNING: /" >&2
13258 ;;
13259esac
13260echo "$as_me:$LINENO: checking for $ac_header" >&5
13261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13262if eval "test \"\${$as_ac_Header+set}\" = set"; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264else
ac1cb8d3 13265 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13266fi
13267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13269
13270fi
13271if test `eval echo '${'$as_ac_Header'}'` = yes; then
13272 cat >>confdefs.h <<_ACEOF
13273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13274_ACEOF
13275
13276fi
13277
13278done
13279
13280
13281for ac_header in malloc.h
13282do
13283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13284if eval "test \"\${$as_ac_Header+set}\" = set"; then
13285 echo "$as_me:$LINENO: checking for $ac_header" >&5
13286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13287if eval "test \"\${$as_ac_Header+set}\" = set"; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289fi
13290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13291echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13292else
13293 # Is the header compilable?
13294echo "$as_me:$LINENO: checking $ac_header usability" >&5
13295echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13296cat >conftest.$ac_ext <<_ACEOF
13297/* confdefs.h. */
13298_ACEOF
13299cat confdefs.h >>conftest.$ac_ext
13300cat >>conftest.$ac_ext <<_ACEOF
13301/* end confdefs.h. */
13302$ac_includes_default
13303#include <$ac_header>
13304_ACEOF
13305rm -f conftest.$ac_objext
13306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13307 (eval $ac_compile) 2>conftest.er1
a848cd7e 13308 ac_status=$?
ac1cb8d3
VS
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
a848cd7e
SC
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
da4486fb 13314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; } &&
13320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_header_compiler=yes
13327else
13328 echo "$as_me: failed program was:" >&5
13329sed 's/^/| /' conftest.$ac_ext >&5
13330
13331ac_header_compiler=no
13332fi
ac1cb8d3 13333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13335echo "${ECHO_T}$ac_header_compiler" >&6
13336
13337# Is the header present?
13338echo "$as_me:$LINENO: checking $ac_header presence" >&5
13339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13340cat >conftest.$ac_ext <<_ACEOF
13341/* confdefs.h. */
13342_ACEOF
13343cat confdefs.h >>conftest.$ac_ext
13344cat >>conftest.$ac_ext <<_ACEOF
13345/* end confdefs.h. */
13346#include <$ac_header>
13347_ACEOF
13348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } >/dev/null; then
13356 if test -s conftest.err; then
13357 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13359 else
13360 ac_cpp_err=
13361 fi
13362else
13363 ac_cpp_err=yes
13364fi
13365if test -z "$ac_cpp_err"; then
13366 ac_header_preproc=yes
13367else
13368 echo "$as_me: failed program was:" >&5
13369sed 's/^/| /' conftest.$ac_ext >&5
13370
13371 ac_header_preproc=no
13372fi
13373rm -f conftest.err conftest.$ac_ext
13374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13375echo "${ECHO_T}$ac_header_preproc" >&6
13376
13377# So? What about this header?
ac1cb8d3
VS
13378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13379 yes:no: )
a848cd7e
SC
13380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13384 ac_header_preproc=yes
a848cd7e 13385 ;;
ac1cb8d3 13386 no:yes:* )
a848cd7e
SC
13387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13399 (
13400 cat <<\_ASBOX
ac1cb8d3
VS
13401## ----------------------------------------- ##
13402## Report this to wx-dev@lists.wxwidgets.org ##
13403## ----------------------------------------- ##
a848cd7e
SC
13404_ASBOX
13405 ) |
13406 sed "s/^/$as_me: WARNING: /" >&2
13407 ;;
13408esac
13409echo "$as_me:$LINENO: checking for $ac_header" >&5
13410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13411if eval "test \"\${$as_ac_Header+set}\" = set"; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413else
ac1cb8d3 13414 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13415fi
13416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13418
13419fi
13420if test `eval echo '${'$as_ac_Header'}'` = yes; then
13421 cat >>confdefs.h <<_ACEOF
13422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13423_ACEOF
13424
13425fi
13426
13427done
13428
13429
13430for ac_header in unistd.h
13431do
13432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13433if eval "test \"\${$as_ac_Header+set}\" = set"; then
13434 echo "$as_me:$LINENO: checking for $ac_header" >&5
13435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13436if eval "test \"\${$as_ac_Header+set}\" = set"; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438fi
13439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13441else
13442 # Is the header compilable?
13443echo "$as_me:$LINENO: checking $ac_header usability" >&5
13444echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13445cat >conftest.$ac_ext <<_ACEOF
13446/* confdefs.h. */
13447_ACEOF
13448cat confdefs.h >>conftest.$ac_ext
13449cat >>conftest.$ac_ext <<_ACEOF
13450/* end confdefs.h. */
13451$ac_includes_default
13452#include <$ac_header>
13453_ACEOF
13454rm -f conftest.$ac_objext
13455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13456 (eval $ac_compile) 2>conftest.er1
a848cd7e 13457 ac_status=$?
ac1cb8d3
VS
13458 grep -v '^ *+' conftest.er1 >conftest.err
13459 rm -f conftest.er1
13460 cat conftest.err >&5
a848cd7e
SC
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
da4486fb 13463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_header_compiler=yes
13476else
13477 echo "$as_me: failed program was:" >&5
13478sed 's/^/| /' conftest.$ac_ext >&5
13479
13480ac_header_compiler=no
13481fi
ac1cb8d3 13482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13483echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13484echo "${ECHO_T}$ac_header_compiler" >&6
13485
13486# Is the header present?
13487echo "$as_me:$LINENO: checking $ac_header presence" >&5
13488echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13489cat >conftest.$ac_ext <<_ACEOF
13490/* confdefs.h. */
13491_ACEOF
13492cat confdefs.h >>conftest.$ac_ext
13493cat >>conftest.$ac_ext <<_ACEOF
13494/* end confdefs.h. */
13495#include <$ac_header>
13496_ACEOF
13497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } >/dev/null; then
13505 if test -s conftest.err; then
13506 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13508 else
13509 ac_cpp_err=
13510 fi
13511else
13512 ac_cpp_err=yes
13513fi
13514if test -z "$ac_cpp_err"; then
13515 ac_header_preproc=yes
13516else
13517 echo "$as_me: failed program was:" >&5
13518sed 's/^/| /' conftest.$ac_ext >&5
13519
13520 ac_header_preproc=no
13521fi
13522rm -f conftest.err conftest.$ac_ext
13523echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13524echo "${ECHO_T}$ac_header_preproc" >&6
13525
13526# So? What about this header?
ac1cb8d3
VS
13527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13528 yes:no: )
a848cd7e
SC
13529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13530echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13532echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13533 ac_header_preproc=yes
a848cd7e 13534 ;;
ac1cb8d3 13535 no:yes:* )
a848cd7e
SC
13536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13537echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13539echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13541echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13543echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13547echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13548 (
13549 cat <<\_ASBOX
ac1cb8d3
VS
13550## ----------------------------------------- ##
13551## Report this to wx-dev@lists.wxwidgets.org ##
13552## ----------------------------------------- ##
a848cd7e
SC
13553_ASBOX
13554 ) |
13555 sed "s/^/$as_me: WARNING: /" >&2
13556 ;;
13557esac
13558echo "$as_me:$LINENO: checking for $ac_header" >&5
13559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13560if eval "test \"\${$as_ac_Header+set}\" = set"; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13562else
ac1cb8d3 13563 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13564fi
13565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13567
13568fi
13569if test `eval echo '${'$as_ac_Header'}'` = yes; then
13570 cat >>confdefs.h <<_ACEOF
13571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13572_ACEOF
13573
13574fi
13575
13576done
13577
13578
13579for ac_header in wchar.h
13580do
13581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13582if eval "test \"\${$as_ac_Header+set}\" = set"; then
13583 echo "$as_me:$LINENO: checking for $ac_header" >&5
13584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13585if eval "test \"\${$as_ac_Header+set}\" = set"; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587fi
13588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13590else
13591 # Is the header compilable?
13592echo "$as_me:$LINENO: checking $ac_header usability" >&5
13593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13594cat >conftest.$ac_ext <<_ACEOF
13595/* confdefs.h. */
13596_ACEOF
13597cat confdefs.h >>conftest.$ac_ext
13598cat >>conftest.$ac_ext <<_ACEOF
13599/* end confdefs.h. */
13600$ac_includes_default
13601#include <$ac_header>
13602_ACEOF
13603rm -f conftest.$ac_objext
13604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13605 (eval $ac_compile) 2>conftest.er1
a848cd7e 13606 ac_status=$?
ac1cb8d3
VS
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
a848cd7e
SC
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
da4486fb 13612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 ac_header_compiler=yes
13625else
13626 echo "$as_me: failed program was:" >&5
13627sed 's/^/| /' conftest.$ac_ext >&5
13628
13629ac_header_compiler=no
13630fi
ac1cb8d3 13631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13633echo "${ECHO_T}$ac_header_compiler" >&6
13634
13635# Is the header present?
13636echo "$as_me:$LINENO: checking $ac_header presence" >&5
13637echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13638cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
13644#include <$ac_header>
13645_ACEOF
13646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13648 ac_status=$?
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } >/dev/null; then
13654 if test -s conftest.err; then
13655 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13657 else
13658 ac_cpp_err=
13659 fi
13660else
13661 ac_cpp_err=yes
13662fi
13663if test -z "$ac_cpp_err"; then
13664 ac_header_preproc=yes
13665else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 ac_header_preproc=no
13670fi
13671rm -f conftest.err conftest.$ac_ext
13672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13673echo "${ECHO_T}$ac_header_preproc" >&6
13674
13675# So? What about this header?
ac1cb8d3
VS
13676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13677 yes:no: )
a848cd7e
SC
13678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13682 ac_header_preproc=yes
a848cd7e 13683 ;;
ac1cb8d3 13684 no:yes:* )
a848cd7e
SC
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13697 (
13698 cat <<\_ASBOX
ac1cb8d3
VS
13699## ----------------------------------------- ##
13700## Report this to wx-dev@lists.wxwidgets.org ##
13701## ----------------------------------------- ##
a848cd7e
SC
13702_ASBOX
13703 ) |
13704 sed "s/^/$as_me: WARNING: /" >&2
13705 ;;
13706esac
13707echo "$as_me:$LINENO: checking for $ac_header" >&5
13708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13709if eval "test \"\${$as_ac_Header+set}\" = set"; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711else
ac1cb8d3 13712 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13713fi
13714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13716
13717fi
13718if test `eval echo '${'$as_ac_Header'}'` = yes; then
13719 cat >>confdefs.h <<_ACEOF
13720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13721_ACEOF
13722
13723fi
13724
13725done
13726
13727
13728if test "$ac_cv_header_wchar_h" != "yes"; then
13729
13730for ac_header in wcstr.h
13731do
13732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13733if eval "test \"\${$as_ac_Header+set}\" = set"; then
13734 echo "$as_me:$LINENO: checking for $ac_header" >&5
13735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13736if eval "test \"\${$as_ac_Header+set}\" = set"; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13738fi
13739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13741else
13742 # Is the header compilable?
13743echo "$as_me:$LINENO: checking $ac_header usability" >&5
13744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13745cat >conftest.$ac_ext <<_ACEOF
13746/* confdefs.h. */
13747_ACEOF
13748cat confdefs.h >>conftest.$ac_ext
13749cat >>conftest.$ac_ext <<_ACEOF
13750/* end confdefs.h. */
13751$ac_includes_default
13752#include <$ac_header>
13753_ACEOF
13754rm -f conftest.$ac_objext
13755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13756 (eval $ac_compile) 2>conftest.er1
a848cd7e 13757 ac_status=$?
ac1cb8d3
VS
13758 grep -v '^ *+' conftest.er1 >conftest.err
13759 rm -f conftest.er1
13760 cat conftest.err >&5
a848cd7e
SC
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } &&
da4486fb 13763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; } &&
13769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 ac_header_compiler=yes
13776else
13777 echo "$as_me: failed program was:" >&5
13778sed 's/^/| /' conftest.$ac_ext >&5
13779
13780ac_header_compiler=no
13781fi
ac1cb8d3 13782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13784echo "${ECHO_T}$ac_header_compiler" >&6
13785
13786# Is the header present?
13787echo "$as_me:$LINENO: checking $ac_header presence" >&5
13788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13789cat >conftest.$ac_ext <<_ACEOF
13790/* confdefs.h. */
13791_ACEOF
13792cat confdefs.h >>conftest.$ac_ext
13793cat >>conftest.$ac_ext <<_ACEOF
13794/* end confdefs.h. */
13795#include <$ac_header>
13796_ACEOF
13797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13799 ac_status=$?
13800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1
13802 cat conftest.err >&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } >/dev/null; then
13805 if test -s conftest.err; then
13806 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13808 else
13809 ac_cpp_err=
13810 fi
13811else
13812 ac_cpp_err=yes
13813fi
13814if test -z "$ac_cpp_err"; then
13815 ac_header_preproc=yes
13816else
13817 echo "$as_me: failed program was:" >&5
13818sed 's/^/| /' conftest.$ac_ext >&5
13819
13820 ac_header_preproc=no
13821fi
13822rm -f conftest.err conftest.$ac_ext
13823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13824echo "${ECHO_T}$ac_header_preproc" >&6
13825
13826# So? What about this header?
ac1cb8d3
VS
13827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13828 yes:no: )
a848cd7e
SC
13829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13832echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13833 ac_header_preproc=yes
a848cd7e 13834 ;;
ac1cb8d3 13835 no:yes:* )
a848cd7e
SC
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13837echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13839echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13841echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13843echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13845echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13847echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13848 (
13849 cat <<\_ASBOX
ac1cb8d3
VS
13850## ----------------------------------------- ##
13851## Report this to wx-dev@lists.wxwidgets.org ##
13852## ----------------------------------------- ##
a848cd7e
SC
13853_ASBOX
13854 ) |
13855 sed "s/^/$as_me: WARNING: /" >&2
13856 ;;
13857esac
13858echo "$as_me:$LINENO: checking for $ac_header" >&5
13859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13860if eval "test \"\${$as_ac_Header+set}\" = set"; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13862else
ac1cb8d3 13863 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13864fi
13865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13867
13868fi
13869if test `eval echo '${'$as_ac_Header'}'` = yes; then
13870 cat >>confdefs.h <<_ACEOF
13871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13872_ACEOF
13873
13874fi
13875
13876done
13877
13878fi
13879
13880
13881for ac_header in fnmatch.h
13882do
13883as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13884if eval "test \"\${$as_ac_Header+set}\" = set"; then
13885 echo "$as_me:$LINENO: checking for $ac_header" >&5
13886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13887if eval "test \"\${$as_ac_Header+set}\" = set"; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889fi
13890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13892else
13893 # Is the header compilable?
13894echo "$as_me:$LINENO: checking $ac_header usability" >&5
13895echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13896cat >conftest.$ac_ext <<_ACEOF
13897/* confdefs.h. */
13898_ACEOF
13899cat confdefs.h >>conftest.$ac_ext
13900cat >>conftest.$ac_ext <<_ACEOF
13901/* end confdefs.h. */
13902$ac_includes_default
13903#include <$ac_header>
13904_ACEOF
13905rm -f conftest.$ac_objext
13906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13907 (eval $ac_compile) 2>conftest.er1
a848cd7e 13908 ac_status=$?
ac1cb8d3
VS
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
a848cd7e
SC
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
da4486fb 13914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } &&
13920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_header_compiler=yes
13927else
13928 echo "$as_me: failed program was:" >&5
13929sed 's/^/| /' conftest.$ac_ext >&5
13930
13931ac_header_compiler=no
13932fi
ac1cb8d3 13933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13934echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13935echo "${ECHO_T}$ac_header_compiler" >&6
13936
13937# Is the header present?
13938echo "$as_me:$LINENO: checking $ac_header presence" >&5
13939echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13940cat >conftest.$ac_ext <<_ACEOF
13941/* confdefs.h. */
13942_ACEOF
13943cat confdefs.h >>conftest.$ac_ext
13944cat >>conftest.$ac_ext <<_ACEOF
13945/* end confdefs.h. */
13946#include <$ac_header>
13947_ACEOF
13948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13950 ac_status=$?
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } >/dev/null; then
13956 if test -s conftest.err; then
13957 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13959 else
13960 ac_cpp_err=
13961 fi
13962else
13963 ac_cpp_err=yes
13964fi
13965if test -z "$ac_cpp_err"; then
13966 ac_header_preproc=yes
13967else
13968 echo "$as_me: failed program was:" >&5
13969sed 's/^/| /' conftest.$ac_ext >&5
13970
13971 ac_header_preproc=no
13972fi
13973rm -f conftest.err conftest.$ac_ext
13974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13975echo "${ECHO_T}$ac_header_preproc" >&6
13976
13977# So? What about this header?
ac1cb8d3
VS
13978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13979 yes:no: )
a848cd7e
SC
13980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13984 ac_header_preproc=yes
a848cd7e 13985 ;;
ac1cb8d3 13986 no:yes:* )
a848cd7e
SC
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13999 (
14000 cat <<\_ASBOX
ac1cb8d3
VS
14001## ----------------------------------------- ##
14002## Report this to wx-dev@lists.wxwidgets.org ##
14003## ----------------------------------------- ##
a848cd7e
SC
14004_ASBOX
14005 ) |
14006 sed "s/^/$as_me: WARNING: /" >&2
14007 ;;
14008esac
14009echo "$as_me:$LINENO: checking for $ac_header" >&5
14010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14011if eval "test \"\${$as_ac_Header+set}\" = set"; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14013else
ac1cb8d3 14014 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14015fi
14016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14018
14019fi
14020if test `eval echo '${'$as_ac_Header'}'` = yes; then
14021 cat >>confdefs.h <<_ACEOF
14022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14023_ACEOF
14024
14025fi
14026
14027done
14028
14029
14030if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14031
14032for ac_func in fnmatch
14033do
14034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14035echo "$as_me:$LINENO: checking for $ac_func" >&5
14036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14037if eval "test \"\${$as_ac_var+set}\" = set"; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039else
14040 cat >conftest.$ac_ext <<_ACEOF
14041/* confdefs.h. */
14042_ACEOF
14043cat confdefs.h >>conftest.$ac_ext
14044cat >>conftest.$ac_ext <<_ACEOF
14045/* end confdefs.h. */
ac1cb8d3
VS
14046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14048#define $ac_func innocuous_$ac_func
14049
a848cd7e
SC
14050/* System header to define __stub macros and hopefully few prototypes,
14051 which can conflict with char $ac_func (); below.
14052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14053 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14054
a848cd7e
SC
14055#ifdef __STDC__
14056# include <limits.h>
14057#else
14058# include <assert.h>
14059#endif
ac1cb8d3
VS
14060
14061#undef $ac_func
14062
a848cd7e
SC
14063/* Override any gcc2 internal prototype to avoid an error. */
14064#ifdef __cplusplus
14065extern "C"
14066{
14067#endif
14068/* We use char because int might match the return type of a gcc2
14069 builtin and then its argument prototype would still apply. */
14070char $ac_func ();
14071/* The GNU C library defines this for functions which it implements
14072 to always fail with ENOSYS. Some functions are actually named
14073 something starting with __ and the normal name is an alias. */
14074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14075choke me
14076#else
14077char (*f) () = $ac_func;
14078#endif
14079#ifdef __cplusplus
14080}
14081#endif
14082
14083int
14084main ()
14085{
14086return f != $ac_func;
14087 ;
14088 return 0;
14089}
14090_ACEOF
14091rm -f conftest.$ac_objext conftest$ac_exeext
14092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14093 (eval $ac_link) 2>conftest.er1
a848cd7e 14094 ac_status=$?
ac1cb8d3
VS
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
a848cd7e
SC
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
da4486fb 14100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 eval "$as_ac_var=yes"
14113else
14114 echo "$as_me: failed program was:" >&5
14115sed 's/^/| /' conftest.$ac_ext >&5
14116
14117eval "$as_ac_var=no"
14118fi
ac1cb8d3
VS
14119rm -f conftest.err conftest.$ac_objext \
14120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14121fi
14122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14124if test `eval echo '${'$as_ac_var'}'` = yes; then
14125 cat >>confdefs.h <<_ACEOF
14126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14127_ACEOF
14128
14129fi
14130done
14131
14132fi
14133
14134
14135for ac_header in langinfo.h
14136do
14137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14138if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo "$as_me:$LINENO: checking for $ac_header" >&5
14140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14141if eval "test \"\${$as_ac_Header+set}\" = set"; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143fi
14144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14146else
14147 # Is the header compilable?
14148echo "$as_me:$LINENO: checking $ac_header usability" >&5
14149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14150cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156$ac_includes_default
14157#include <$ac_header>
14158_ACEOF
14159rm -f conftest.$ac_objext
14160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14161 (eval $ac_compile) 2>conftest.er1
a848cd7e 14162 ac_status=$?
ac1cb8d3
VS
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
a848cd7e
SC
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
da4486fb 14168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_header_compiler=yes
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185ac_header_compiler=no
14186fi
ac1cb8d3 14187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14189echo "${ECHO_T}$ac_header_compiler" >&6
14190
14191# Is the header present?
14192echo "$as_me:$LINENO: checking $ac_header presence" >&5
14193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14194cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
14200#include <$ac_header>
14201_ACEOF
14202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } >/dev/null; then
14210 if test -s conftest.err; then
14211 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14213 else
14214 ac_cpp_err=
14215 fi
14216else
14217 ac_cpp_err=yes
14218fi
14219if test -z "$ac_cpp_err"; then
14220 ac_header_preproc=yes
14221else
14222 echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 ac_header_preproc=no
14226fi
14227rm -f conftest.err conftest.$ac_ext
14228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229echo "${ECHO_T}$ac_header_preproc" >&6
14230
14231# So? What about this header?
ac1cb8d3
VS
14232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 yes:no: )
a848cd7e
SC
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc=yes
a848cd7e 14239 ;;
ac1cb8d3 14240 no:yes:* )
a848cd7e
SC
14241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14253 (
14254 cat <<\_ASBOX
ac1cb8d3
VS
14255## ----------------------------------------- ##
14256## Report this to wx-dev@lists.wxwidgets.org ##
14257## ----------------------------------------- ##
a848cd7e
SC
14258_ASBOX
14259 ) |
14260 sed "s/^/$as_me: WARNING: /" >&2
14261 ;;
14262esac
14263echo "$as_me:$LINENO: checking for $ac_header" >&5
14264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14265if eval "test \"\${$as_ac_Header+set}\" = set"; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267else
ac1cb8d3 14268 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14269fi
14270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14272
14273fi
14274if test `eval echo '${'$as_ac_Header'}'` = yes; then
14275 cat >>confdefs.h <<_ACEOF
14276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14277_ACEOF
14278
14279fi
14280
14281done
14282
14283
14284case "${host}" in
14285 *-pc-os2_emx | *-pc-os2-emx )
14286 if test $ac_cv_header_langinfo_h = "yes"; then
14287 LIBS="$LIBS -lintl"
14288 fi
14289 ;;
14290esac
14291
14292if test "$wxUSE_GUI" = "yes"; then
14293 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14294
14295for ac_header in X11/Xlib.h
14296do
14297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14298if eval "test \"\${$as_ac_Header+set}\" = set"; then
14299 echo "$as_me:$LINENO: checking for $ac_header" >&5
14300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14301if eval "test \"\${$as_ac_Header+set}\" = set"; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14303fi
14304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14306else
14307 # Is the header compilable?
14308echo "$as_me:$LINENO: checking $ac_header usability" >&5
14309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14310cat >conftest.$ac_ext <<_ACEOF
14311/* confdefs.h. */
14312_ACEOF
14313cat confdefs.h >>conftest.$ac_ext
14314cat >>conftest.$ac_ext <<_ACEOF
14315/* end confdefs.h. */
14316$ac_includes_default
14317#include <$ac_header>
14318_ACEOF
14319rm -f conftest.$ac_objext
14320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14321 (eval $ac_compile) 2>conftest.er1
a848cd7e 14322 ac_status=$?
ac1cb8d3
VS
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
a848cd7e
SC
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
da4486fb 14328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; } &&
14334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_header_compiler=yes
14341else
14342 echo "$as_me: failed program was:" >&5
14343sed 's/^/| /' conftest.$ac_ext >&5
14344
14345ac_header_compiler=no
14346fi
ac1cb8d3 14347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14349echo "${ECHO_T}$ac_header_compiler" >&6
14350
14351# Is the header present?
14352echo "$as_me:$LINENO: checking $ac_header presence" >&5
14353echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14354cat >conftest.$ac_ext <<_ACEOF
14355/* confdefs.h. */
14356_ACEOF
14357cat confdefs.h >>conftest.$ac_ext
14358cat >>conftest.$ac_ext <<_ACEOF
14359/* end confdefs.h. */
14360#include <$ac_header>
14361_ACEOF
14362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14364 ac_status=$?
14365 grep -v '^ *+' conftest.er1 >conftest.err
14366 rm -f conftest.er1
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } >/dev/null; then
14370 if test -s conftest.err; then
14371 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14373 else
14374 ac_cpp_err=
14375 fi
14376else
14377 ac_cpp_err=yes
14378fi
14379if test -z "$ac_cpp_err"; then
14380 ac_header_preproc=yes
14381else
14382 echo "$as_me: failed program was:" >&5
14383sed 's/^/| /' conftest.$ac_ext >&5
14384
14385 ac_header_preproc=no
14386fi
14387rm -f conftest.err conftest.$ac_ext
14388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14389echo "${ECHO_T}$ac_header_preproc" >&6
14390
14391# So? What about this header?
ac1cb8d3
VS
14392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14393 yes:no: )
a848cd7e
SC
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14398 ac_header_preproc=yes
a848cd7e 14399 ;;
ac1cb8d3 14400 no:yes:* )
a848cd7e
SC
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14408echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14413 (
14414 cat <<\_ASBOX
ac1cb8d3
VS
14415## ----------------------------------------- ##
14416## Report this to wx-dev@lists.wxwidgets.org ##
14417## ----------------------------------------- ##
a848cd7e
SC
14418_ASBOX
14419 ) |
14420 sed "s/^/$as_me: WARNING: /" >&2
14421 ;;
14422esac
14423echo "$as_me:$LINENO: checking for $ac_header" >&5
14424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14425if eval "test \"\${$as_ac_Header+set}\" = set"; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14427else
ac1cb8d3 14428 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14429fi
14430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14432
14433fi
14434if test `eval echo '${'$as_ac_Header'}'` = yes; then
14435 cat >>confdefs.h <<_ACEOF
14436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14437_ACEOF
14438
14439fi
14440
14441done
14442
14443
14444for ac_header in X11/XKBlib.h
14445do
14446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14447echo "$as_me:$LINENO: checking for $ac_header" >&5
14448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14449if eval "test \"\${$as_ac_Header+set}\" = set"; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451else
14452 cat >conftest.$ac_ext <<_ACEOF
14453/* confdefs.h. */
14454_ACEOF
14455cat confdefs.h >>conftest.$ac_ext
14456cat >>conftest.$ac_ext <<_ACEOF
14457/* end confdefs.h. */
14458
14459 #if HAVE_X11_XLIB_H
14460 #include <X11/Xlib.h>
14461 #endif
14462
14463
14464#include <$ac_header>
14465_ACEOF
14466rm -f conftest.$ac_objext
14467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14468 (eval $ac_compile) 2>conftest.er1
a848cd7e 14469 ac_status=$?
ac1cb8d3
VS
14470 grep -v '^ *+' conftest.er1 >conftest.err
14471 rm -f conftest.er1
14472 cat conftest.err >&5
a848cd7e
SC
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
da4486fb 14475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; } &&
14481 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14487 eval "$as_ac_Header=yes"
14488else
14489 echo "$as_me: failed program was:" >&5
14490sed 's/^/| /' conftest.$ac_ext >&5
14491
14492eval "$as_ac_Header=no"
14493fi
ac1cb8d3 14494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14495fi
14496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14498if test `eval echo '${'$as_ac_Header'}'` = yes; then
14499 cat >>confdefs.h <<_ACEOF
14500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14501_ACEOF
14502
14503fi
14504
14505done
14506
14507 fi
14508fi
14509
14510
14511echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14512echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14513if test "${ac_cv_c_const+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515else
14516 cat >conftest.$ac_ext <<_ACEOF
14517/* confdefs.h. */
14518_ACEOF
14519cat confdefs.h >>conftest.$ac_ext
14520cat >>conftest.$ac_ext <<_ACEOF
14521/* end confdefs.h. */
14522
14523int
14524main ()
14525{
14526/* FIXME: Include the comments suggested by Paul. */
14527#ifndef __cplusplus
14528 /* Ultrix mips cc rejects this. */
14529 typedef int charset[2];
14530 const charset x;
14531 /* SunOS 4.1.1 cc rejects this. */
14532 char const *const *ccp;
14533 char **p;
14534 /* NEC SVR4.0.2 mips cc rejects this. */
14535 struct point {int x, y;};
14536 static struct point const zero = {0,0};
14537 /* AIX XL C 1.02.0.0 rejects this.
14538 It does not let you subtract one const X* pointer from another in
14539 an arm of an if-expression whose if-part is not a constant
14540 expression */
14541 const char *g = "string";
14542 ccp = &g + (g ? g-g : 0);
14543 /* HPUX 7.0 cc rejects these. */
14544 ++ccp;
14545 p = (char**) ccp;
14546 ccp = (char const *const *) p;
14547 { /* SCO 3.2v4 cc rejects this. */
14548 char *t;
14549 char const *s = 0 ? (char *) 0 : (char const *) 0;
14550
14551 *t++ = 0;
14552 }
14553 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14554 int x[] = {25, 17};
14555 const int *foo = &x[0];
14556 ++foo;
14557 }
14558 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14559 typedef const int *iptr;
14560 iptr p = 0;
14561 ++p;
14562 }
14563 { /* AIX XL C 1.02.0.0 rejects this saying
14564 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14565 struct s { int j; const int *ap[3]; };
14566 struct s *b; b->j = 5;
14567 }
14568 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14569 const int foo = 10;
14570 }
14571#endif
14572
14573 ;
14574 return 0;
14575}
14576_ACEOF
14577rm -f conftest.$ac_objext
14578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14579 (eval $ac_compile) 2>conftest.er1
a848cd7e 14580 ac_status=$?
ac1cb8d3
VS
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
a848cd7e
SC
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
da4486fb 14586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } &&
14592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_cv_c_const=yes
14599else
14600 echo "$as_me: failed program was:" >&5
14601sed 's/^/| /' conftest.$ac_ext >&5
14602
14603ac_cv_c_const=no
14604fi
ac1cb8d3 14605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14606fi
14607echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14608echo "${ECHO_T}$ac_cv_c_const" >&6
14609if test $ac_cv_c_const = no; then
14610
14611cat >>confdefs.h <<\_ACEOF
14612#define const
14613_ACEOF
14614
14615fi
14616
14617echo "$as_me:$LINENO: checking for inline" >&5
14618echo $ECHO_N "checking for inline... $ECHO_C" >&6
14619if test "${ac_cv_c_inline+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14621else
14622 ac_cv_c_inline=no
14623for ac_kw in inline __inline__ __inline; do
14624 cat >conftest.$ac_ext <<_ACEOF
14625/* confdefs.h. */
14626_ACEOF
14627cat confdefs.h >>conftest.$ac_ext
14628cat >>conftest.$ac_ext <<_ACEOF
14629/* end confdefs.h. */
14630#ifndef __cplusplus
14631typedef int foo_t;
14632static $ac_kw foo_t static_foo () {return 0; }
14633$ac_kw foo_t foo () {return 0; }
14634#endif
14635
14636_ACEOF
14637rm -f conftest.$ac_objext
14638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14639 (eval $ac_compile) 2>conftest.er1
a848cd7e 14640 ac_status=$?
ac1cb8d3
VS
14641 grep -v '^ *+' conftest.er1 >conftest.err
14642 rm -f conftest.er1
14643 cat conftest.err >&5
a848cd7e
SC
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } &&
da4486fb 14646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; } &&
14652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 ac_cv_c_inline=$ac_kw; break
14659else
14660 echo "$as_me: failed program was:" >&5
14661sed 's/^/| /' conftest.$ac_ext >&5
14662
14663fi
ac1cb8d3 14664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14665done
14666
14667fi
14668echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14669echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14670
14671
a848cd7e
SC
14672case $ac_cv_c_inline in
14673 inline | yes) ;;
ac1cb8d3
VS
14674 *)
14675 case $ac_cv_c_inline in
14676 no) ac_val=;;
14677 *) ac_val=$ac_cv_c_inline;;
14678 esac
14679 cat >>confdefs.h <<_ACEOF
14680#ifndef __cplusplus
14681#define inline $ac_val
14682#endif
de59c161 14683_ACEOF
ac1cb8d3 14684 ;;
a848cd7e
SC
14685esac
14686
14687
14688echo "$as_me:$LINENO: checking for char" >&5
14689echo $ECHO_N "checking for char... $ECHO_C" >&6
14690if test "${ac_cv_type_char+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14692else
14693 cat >conftest.$ac_ext <<_ACEOF
14694/* confdefs.h. */
14695_ACEOF
14696cat confdefs.h >>conftest.$ac_ext
14697cat >>conftest.$ac_ext <<_ACEOF
14698/* end confdefs.h. */
14699$ac_includes_default
14700int
14701main ()
14702{
14703if ((char *) 0)
14704 return 0;
14705if (sizeof (char))
14706 return 0;
14707 ;
14708 return 0;
14709}
14710_ACEOF
14711rm -f conftest.$ac_objext
14712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14713 (eval $ac_compile) 2>conftest.er1
a848cd7e 14714 ac_status=$?
ac1cb8d3
VS
14715 grep -v '^ *+' conftest.er1 >conftest.err
14716 rm -f conftest.er1
14717 cat conftest.err >&5
a848cd7e
SC
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } &&
da4486fb 14720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; } &&
14726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 ac_cv_type_char=yes
14733else
14734 echo "$as_me: failed program was:" >&5
14735sed 's/^/| /' conftest.$ac_ext >&5
14736
14737ac_cv_type_char=no
14738fi
ac1cb8d3 14739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14740fi
14741echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14742echo "${ECHO_T}$ac_cv_type_char" >&6
14743
14744echo "$as_me:$LINENO: checking size of char" >&5
14745echo $ECHO_N "checking size of char... $ECHO_C" >&6
14746if test "${ac_cv_sizeof_char+set}" = set; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14748else
14749 if test "$ac_cv_type_char" = yes; then
14750 # The cast to unsigned long works around a bug in the HP C Compiler
14751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14753 # This bug is HP SR number 8606223364.
14754 if test "$cross_compiling" = yes; then
14755 # Depending upon the size, compute the lo and hi bounds.
14756cat >conftest.$ac_ext <<_ACEOF
14757/* confdefs.h. */
14758_ACEOF
14759cat confdefs.h >>conftest.$ac_ext
14760cat >>conftest.$ac_ext <<_ACEOF
14761/* end confdefs.h. */
14762$ac_includes_default
14763int
14764main ()
14765{
14766static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14767test_array [0] = 0
14768
14769 ;
14770 return 0;
14771}
14772_ACEOF
14773rm -f conftest.$ac_objext
14774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14775 (eval $ac_compile) 2>conftest.er1
a848cd7e 14776 ac_status=$?
ac1cb8d3
VS
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
a848cd7e
SC
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
da4486fb 14782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_lo=0 ac_mid=0
14795 while :; do
14796 cat >conftest.$ac_ext <<_ACEOF
14797/* confdefs.h. */
14798_ACEOF
14799cat confdefs.h >>conftest.$ac_ext
14800cat >>conftest.$ac_ext <<_ACEOF
14801/* end confdefs.h. */
14802$ac_includes_default
14803int
14804main ()
14805{
14806static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14807test_array [0] = 0
14808
14809 ;
14810 return 0;
14811}
14812_ACEOF
14813rm -f conftest.$ac_objext
14814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14815 (eval $ac_compile) 2>conftest.er1
a848cd7e 14816 ac_status=$?
ac1cb8d3
VS
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
a848cd7e
SC
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
da4486fb 14822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; } &&
14828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834 ac_hi=$ac_mid; break
14835else
14836 echo "$as_me: failed program was:" >&5
14837sed 's/^/| /' conftest.$ac_ext >&5
14838
14839ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14840 if test $ac_lo -le $ac_mid; then
14841 ac_lo= ac_hi=
14842 break
14843 fi
14844 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14845fi
ac1cb8d3 14846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14847 done
14848else
14849 echo "$as_me: failed program was:" >&5
14850sed 's/^/| /' conftest.$ac_ext >&5
14851
14852cat >conftest.$ac_ext <<_ACEOF
14853/* confdefs.h. */
14854_ACEOF
14855cat confdefs.h >>conftest.$ac_ext
14856cat >>conftest.$ac_ext <<_ACEOF
14857/* end confdefs.h. */
14858$ac_includes_default
14859int
14860main ()
14861{
14862static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14863test_array [0] = 0
14864
14865 ;
14866 return 0;
14867}
14868_ACEOF
14869rm -f conftest.$ac_objext
14870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14871 (eval $ac_compile) 2>conftest.er1
a848cd7e 14872 ac_status=$?
ac1cb8d3
VS
14873 grep -v '^ *+' conftest.er1 >conftest.err
14874 rm -f conftest.er1
14875 cat conftest.err >&5
a848cd7e
SC
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } &&
da4486fb 14878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 ac_hi=-1 ac_mid=-1
14891 while :; do
14892 cat >conftest.$ac_ext <<_ACEOF
14893/* confdefs.h. */
14894_ACEOF
14895cat confdefs.h >>conftest.$ac_ext
14896cat >>conftest.$ac_ext <<_ACEOF
14897/* end confdefs.h. */
14898$ac_includes_default
14899int
14900main ()
14901{
14902static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14903test_array [0] = 0
14904
14905 ;
14906 return 0;
14907}
14908_ACEOF
14909rm -f conftest.$ac_objext
14910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14911 (eval $ac_compile) 2>conftest.er1
a848cd7e 14912 ac_status=$?
ac1cb8d3
VS
14913 grep -v '^ *+' conftest.er1 >conftest.err
14914 rm -f conftest.er1
14915 cat conftest.err >&5
a848cd7e
SC
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } &&
da4486fb 14918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; } &&
14924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 ac_lo=$ac_mid; break
14931else
14932 echo "$as_me: failed program was:" >&5
14933sed 's/^/| /' conftest.$ac_ext >&5
14934
14935ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14936 if test $ac_mid -le $ac_hi; then
14937 ac_lo= ac_hi=
14938 break
14939 fi
14940 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14941fi
ac1cb8d3 14942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14943 done
14944else
14945 echo "$as_me: failed program was:" >&5
14946sed 's/^/| /' conftest.$ac_ext >&5
14947
14948ac_lo= ac_hi=
14949fi
ac1cb8d3 14950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14951fi
ac1cb8d3 14952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14953# Binary search between lo and hi bounds.
14954while test "x$ac_lo" != "x$ac_hi"; do
14955 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14956 cat >conftest.$ac_ext <<_ACEOF
14957/* confdefs.h. */
14958_ACEOF
14959cat confdefs.h >>conftest.$ac_ext
14960cat >>conftest.$ac_ext <<_ACEOF
14961/* end confdefs.h. */
14962$ac_includes_default
14963int
14964main ()
14965{
14966static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14967test_array [0] = 0
14968
14969 ;
14970 return 0;
14971}
14972_ACEOF
14973rm -f conftest.$ac_objext
14974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14975 (eval $ac_compile) 2>conftest.er1
a848cd7e 14976 ac_status=$?
ac1cb8d3
VS
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
a848cd7e
SC
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
da4486fb 14982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; } &&
14988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14991 ac_status=$?
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_hi=$ac_mid
14995else
14996 echo "$as_me: failed program was:" >&5
14997sed 's/^/| /' conftest.$ac_ext >&5
14998
14999ac_lo=`expr '(' $ac_mid ')' + 1`
15000fi
ac1cb8d3 15001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15002done
15003case $ac_lo in
15004?*) ac_cv_sizeof_char=$ac_lo;;
15005'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15006See \`config.log' for more details." >&5
15007echo "$as_me: error: cannot compute sizeof (char), 77
15008See \`config.log' for more details." >&2;}
15009 { (exit 1); exit 1; }; } ;;
15010esac
15011else
15012 if test "$cross_compiling" = yes; then
da4486fb
VZ
15013 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15014echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15015 { (exit 1); exit 1; }; }
15016else
15017 cat >conftest.$ac_ext <<_ACEOF
15018/* confdefs.h. */
15019_ACEOF
15020cat confdefs.h >>conftest.$ac_ext
15021cat >>conftest.$ac_ext <<_ACEOF
15022/* end confdefs.h. */
15023$ac_includes_default
15024long longval () { return (long) (sizeof (char)); }
15025unsigned long ulongval () { return (long) (sizeof (char)); }
15026#include <stdio.h>
15027#include <stdlib.h>
15028int
15029main ()
15030{
15031
15032 FILE *f = fopen ("conftest.val", "w");
15033 if (! f)
15034 exit (1);
15035 if (((long) (sizeof (char))) < 0)
15036 {
15037 long i = longval ();
15038 if (i != ((long) (sizeof (char))))
15039 exit (1);
15040 fprintf (f, "%ld\n", i);
15041 }
15042 else
15043 {
15044 unsigned long i = ulongval ();
15045 if (i != ((long) (sizeof (char))))
15046 exit (1);
15047 fprintf (f, "%lu\n", i);
15048 }
15049 exit (ferror (f) || fclose (f) != 0);
15050
15051 ;
15052 return 0;
15053}
15054_ACEOF
15055rm -f conftest$ac_exeext
15056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057 (eval $ac_link) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062 (eval $ac_try) 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; }; then
15066 ac_cv_sizeof_char=`cat conftest.val`
15067else
15068 echo "$as_me: program exited with status $ac_status" >&5
15069echo "$as_me: failed program was:" >&5
15070sed 's/^/| /' conftest.$ac_ext >&5
15071
15072( exit $ac_status )
15073{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15074See \`config.log' for more details." >&5
15075echo "$as_me: error: cannot compute sizeof (char), 77
15076See \`config.log' for more details." >&2;}
15077 { (exit 1); exit 1; }; }
15078fi
ac1cb8d3 15079rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15080fi
15081fi
15082rm -f conftest.val
15083else
15084 ac_cv_sizeof_char=0
15085fi
15086fi
15087echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15088echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15089cat >>confdefs.h <<_ACEOF
15090#define SIZEOF_CHAR $ac_cv_sizeof_char
15091_ACEOF
15092
15093
15094echo "$as_me:$LINENO: checking for short" >&5
15095echo $ECHO_N "checking for short... $ECHO_C" >&6
15096if test "${ac_cv_type_short+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15098else
15099 cat >conftest.$ac_ext <<_ACEOF
15100/* confdefs.h. */
15101_ACEOF
15102cat confdefs.h >>conftest.$ac_ext
15103cat >>conftest.$ac_ext <<_ACEOF
15104/* end confdefs.h. */
15105$ac_includes_default
15106int
15107main ()
15108{
15109if ((short *) 0)
15110 return 0;
15111if (sizeof (short))
15112 return 0;
15113 ;
15114 return 0;
15115}
15116_ACEOF
15117rm -f conftest.$ac_objext
15118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15119 (eval $ac_compile) 2>conftest.er1
a848cd7e 15120 ac_status=$?
ac1cb8d3
VS
15121 grep -v '^ *+' conftest.er1 >conftest.err
15122 rm -f conftest.er1
15123 cat conftest.err >&5
a848cd7e
SC
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } &&
da4486fb 15126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; } &&
15132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_cv_type_short=yes
15139else
15140 echo "$as_me: failed program was:" >&5
15141sed 's/^/| /' conftest.$ac_ext >&5
15142
15143ac_cv_type_short=no
15144fi
ac1cb8d3 15145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15146fi
15147echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15148echo "${ECHO_T}$ac_cv_type_short" >&6
15149
15150echo "$as_me:$LINENO: checking size of short" >&5
15151echo $ECHO_N "checking size of short... $ECHO_C" >&6
15152if test "${ac_cv_sizeof_short+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154else
15155 if test "$ac_cv_type_short" = yes; then
15156 # The cast to unsigned long works around a bug in the HP C Compiler
15157 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15158 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15159 # This bug is HP SR number 8606223364.
15160 if test "$cross_compiling" = yes; then
15161 # Depending upon the size, compute the lo and hi bounds.
15162cat >conftest.$ac_ext <<_ACEOF
15163/* confdefs.h. */
15164_ACEOF
15165cat confdefs.h >>conftest.$ac_ext
15166cat >>conftest.$ac_ext <<_ACEOF
15167/* end confdefs.h. */
15168$ac_includes_default
15169int
15170main ()
15171{
15172static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15173test_array [0] = 0
15174
15175 ;
15176 return 0;
15177}
15178_ACEOF
15179rm -f conftest.$ac_objext
15180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15181 (eval $ac_compile) 2>conftest.er1
a848cd7e 15182 ac_status=$?
ac1cb8d3
VS
15183 grep -v '^ *+' conftest.er1 >conftest.err
15184 rm -f conftest.er1
15185 cat conftest.err >&5
a848cd7e
SC
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } &&
da4486fb 15188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15190 (eval $ac_try) 2>&5
15191 ac_status=$?
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; } &&
15194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; }; then
15200 ac_lo=0 ac_mid=0
15201 while :; do
15202 cat >conftest.$ac_ext <<_ACEOF
15203/* confdefs.h. */
15204_ACEOF
15205cat confdefs.h >>conftest.$ac_ext
15206cat >>conftest.$ac_ext <<_ACEOF
15207/* end confdefs.h. */
15208$ac_includes_default
15209int
15210main ()
15211{
15212static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15213test_array [0] = 0
15214
15215 ;
15216 return 0;
15217}
15218_ACEOF
15219rm -f conftest.$ac_objext
15220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15221 (eval $ac_compile) 2>conftest.er1
a848cd7e 15222 ac_status=$?
ac1cb8d3
VS
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
a848cd7e
SC
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } &&
da4486fb 15228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_hi=$ac_mid; break
15241else
15242 echo "$as_me: failed program was:" >&5
15243sed 's/^/| /' conftest.$ac_ext >&5
15244
15245ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15246 if test $ac_lo -le $ac_mid; then
15247 ac_lo= ac_hi=
15248 break
15249 fi
15250 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15251fi
ac1cb8d3 15252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15253 done
15254else
15255 echo "$as_me: failed program was:" >&5
15256sed 's/^/| /' conftest.$ac_ext >&5
15257
15258cat >conftest.$ac_ext <<_ACEOF
15259/* confdefs.h. */
15260_ACEOF
15261cat confdefs.h >>conftest.$ac_ext
15262cat >>conftest.$ac_ext <<_ACEOF
15263/* end confdefs.h. */
15264$ac_includes_default
15265int
15266main ()
15267{
15268static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15269test_array [0] = 0
15270
15271 ;
15272 return 0;
15273}
15274_ACEOF
15275rm -f conftest.$ac_objext
15276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15277 (eval $ac_compile) 2>conftest.er1
a848cd7e 15278 ac_status=$?
ac1cb8d3
VS
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
a848cd7e
SC
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
da4486fb 15284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15287 ac_status=$?
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; } &&
15290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
15296 ac_hi=-1 ac_mid=-1
15297 while :; do
15298 cat >conftest.$ac_ext <<_ACEOF
15299/* confdefs.h. */
15300_ACEOF
15301cat confdefs.h >>conftest.$ac_ext
15302cat >>conftest.$ac_ext <<_ACEOF
15303/* end confdefs.h. */
15304$ac_includes_default
15305int
15306main ()
15307{
15308static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15309test_array [0] = 0
15310
15311 ;
15312 return 0;
15313}
15314_ACEOF
15315rm -f conftest.$ac_objext
15316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15317 (eval $ac_compile) 2>conftest.er1
a848cd7e 15318 ac_status=$?
ac1cb8d3
VS
15319 grep -v '^ *+' conftest.er1 >conftest.err
15320 rm -f conftest.er1
15321 cat conftest.err >&5
a848cd7e
SC
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } &&
da4486fb 15324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; } &&
15330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_lo=$ac_mid; break
15337else
15338 echo "$as_me: failed program was:" >&5
15339sed 's/^/| /' conftest.$ac_ext >&5
15340
15341ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15342 if test $ac_mid -le $ac_hi; then
15343 ac_lo= ac_hi=
15344 break
15345 fi
15346 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15347fi
ac1cb8d3 15348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15349 done
15350else
15351 echo "$as_me: failed program was:" >&5
15352sed 's/^/| /' conftest.$ac_ext >&5
15353
15354ac_lo= ac_hi=
15355fi
ac1cb8d3 15356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15357fi
ac1cb8d3 15358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15359# Binary search between lo and hi bounds.
15360while test "x$ac_lo" != "x$ac_hi"; do
15361 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15362 cat >conftest.$ac_ext <<_ACEOF
15363/* confdefs.h. */
15364_ACEOF
15365cat confdefs.h >>conftest.$ac_ext
15366cat >>conftest.$ac_ext <<_ACEOF
15367/* end confdefs.h. */
15368$ac_includes_default
15369int
15370main ()
15371{
15372static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15373test_array [0] = 0
15374
15375 ;
15376 return 0;
15377}
15378_ACEOF
15379rm -f conftest.$ac_objext
15380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15381 (eval $ac_compile) 2>conftest.er1
a848cd7e 15382 ac_status=$?
ac1cb8d3
VS
15383 grep -v '^ *+' conftest.er1 >conftest.err
15384 rm -f conftest.er1
15385 cat conftest.err >&5
a848cd7e
SC
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
da4486fb 15388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; } &&
15394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 ac_hi=$ac_mid
15401else
15402 echo "$as_me: failed program was:" >&5
15403sed 's/^/| /' conftest.$ac_ext >&5
15404
15405ac_lo=`expr '(' $ac_mid ')' + 1`
15406fi
ac1cb8d3 15407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15408done
15409case $ac_lo in
15410?*) ac_cv_sizeof_short=$ac_lo;;
15411'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15412See \`config.log' for more details." >&5
15413echo "$as_me: error: cannot compute sizeof (short), 77
15414See \`config.log' for more details." >&2;}
15415 { (exit 1); exit 1; }; } ;;
15416esac
15417else
15418 if test "$cross_compiling" = yes; then
da4486fb
VZ
15419 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15420echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15421 { (exit 1); exit 1; }; }
15422else
15423 cat >conftest.$ac_ext <<_ACEOF
15424/* confdefs.h. */
15425_ACEOF
15426cat confdefs.h >>conftest.$ac_ext
15427cat >>conftest.$ac_ext <<_ACEOF
15428/* end confdefs.h. */
15429$ac_includes_default
15430long longval () { return (long) (sizeof (short)); }
15431unsigned long ulongval () { return (long) (sizeof (short)); }
15432#include <stdio.h>
15433#include <stdlib.h>
15434int
15435main ()
15436{
15437
15438 FILE *f = fopen ("conftest.val", "w");
15439 if (! f)
15440 exit (1);
15441 if (((long) (sizeof (short))) < 0)
15442 {
15443 long i = longval ();
15444 if (i != ((long) (sizeof (short))))
15445 exit (1);
15446 fprintf (f, "%ld\n", i);
15447 }
15448 else
15449 {
15450 unsigned long i = ulongval ();
15451 if (i != ((long) (sizeof (short))))
15452 exit (1);
15453 fprintf (f, "%lu\n", i);
15454 }
15455 exit (ferror (f) || fclose (f) != 0);
15456
15457 ;
15458 return 0;
15459}
15460_ACEOF
15461rm -f conftest$ac_exeext
15462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15463 (eval $ac_link) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_cv_sizeof_short=`cat conftest.val`
15473else
15474 echo "$as_me: program exited with status $ac_status" >&5
15475echo "$as_me: failed program was:" >&5
15476sed 's/^/| /' conftest.$ac_ext >&5
15477
15478( exit $ac_status )
15479{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15480See \`config.log' for more details." >&5
15481echo "$as_me: error: cannot compute sizeof (short), 77
15482See \`config.log' for more details." >&2;}
15483 { (exit 1); exit 1; }; }
15484fi
ac1cb8d3 15485rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15486fi
15487fi
15488rm -f conftest.val
15489else
15490 ac_cv_sizeof_short=0
15491fi
15492fi
15493echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15494echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15495cat >>confdefs.h <<_ACEOF
15496#define SIZEOF_SHORT $ac_cv_sizeof_short
15497_ACEOF
15498
15499
15500echo "$as_me:$LINENO: checking for void *" >&5
15501echo $ECHO_N "checking for void *... $ECHO_C" >&6
15502if test "${ac_cv_type_void_p+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15504else
15505 cat >conftest.$ac_ext <<_ACEOF
15506/* confdefs.h. */
15507_ACEOF
15508cat confdefs.h >>conftest.$ac_ext
15509cat >>conftest.$ac_ext <<_ACEOF
15510/* end confdefs.h. */
15511$ac_includes_default
15512int
15513main ()
15514{
15515if ((void * *) 0)
15516 return 0;
15517if (sizeof (void *))
15518 return 0;
15519 ;
15520 return 0;
15521}
15522_ACEOF
15523rm -f conftest.$ac_objext
15524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15525 (eval $ac_compile) 2>conftest.er1
a848cd7e 15526 ac_status=$?
ac1cb8d3
VS
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
a848cd7e
SC
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
da4486fb 15532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 ac_cv_type_void_p=yes
15545else
15546 echo "$as_me: failed program was:" >&5
15547sed 's/^/| /' conftest.$ac_ext >&5
15548
15549ac_cv_type_void_p=no
15550fi
ac1cb8d3 15551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15552fi
15553echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15554echo "${ECHO_T}$ac_cv_type_void_p" >&6
15555
15556echo "$as_me:$LINENO: checking size of void *" >&5
15557echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15558if test "${ac_cv_sizeof_void_p+set}" = set; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15560else
15561 if test "$ac_cv_type_void_p" = yes; then
15562 # The cast to unsigned long works around a bug in the HP C Compiler
15563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15565 # This bug is HP SR number 8606223364.
15566 if test "$cross_compiling" = yes; then
15567 # Depending upon the size, compute the lo and hi bounds.
15568cat >conftest.$ac_ext <<_ACEOF
15569/* confdefs.h. */
15570_ACEOF
15571cat confdefs.h >>conftest.$ac_ext
15572cat >>conftest.$ac_ext <<_ACEOF
15573/* end confdefs.h. */
15574$ac_includes_default
15575int
15576main ()
15577{
15578static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15579test_array [0] = 0
15580
15581 ;
15582 return 0;
15583}
15584_ACEOF
15585rm -f conftest.$ac_objext
15586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15587 (eval $ac_compile) 2>conftest.er1
a848cd7e 15588 ac_status=$?
ac1cb8d3
VS
15589 grep -v '^ *+' conftest.er1 >conftest.err
15590 rm -f conftest.er1
15591 cat conftest.err >&5
a848cd7e
SC
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } &&
da4486fb 15594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; } &&
15600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602 (eval $ac_try) 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }; then
15606 ac_lo=0 ac_mid=0
15607 while :; do
15608 cat >conftest.$ac_ext <<_ACEOF
15609/* confdefs.h. */
15610_ACEOF
15611cat confdefs.h >>conftest.$ac_ext
15612cat >>conftest.$ac_ext <<_ACEOF
15613/* end confdefs.h. */
15614$ac_includes_default
15615int
15616main ()
15617{
15618static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15619test_array [0] = 0
15620
15621 ;
15622 return 0;
15623}
15624_ACEOF
15625rm -f conftest.$ac_objext
15626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15627 (eval $ac_compile) 2>conftest.er1
a848cd7e 15628 ac_status=$?
ac1cb8d3
VS
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
a848cd7e
SC
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
da4486fb 15634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 ac_hi=$ac_mid; break
15647else
15648 echo "$as_me: failed program was:" >&5
15649sed 's/^/| /' conftest.$ac_ext >&5
15650
15651ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15652 if test $ac_lo -le $ac_mid; then
15653 ac_lo= ac_hi=
15654 break
15655 fi
15656 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15657fi
ac1cb8d3 15658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15659 done
15660else
15661 echo "$as_me: failed program was:" >&5
15662sed 's/^/| /' conftest.$ac_ext >&5
15663
15664cat >conftest.$ac_ext <<_ACEOF
15665/* confdefs.h. */
15666_ACEOF
15667cat confdefs.h >>conftest.$ac_ext
15668cat >>conftest.$ac_ext <<_ACEOF
15669/* end confdefs.h. */
15670$ac_includes_default
15671int
15672main ()
15673{
15674static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15675test_array [0] = 0
15676
15677 ;
15678 return 0;
15679}
15680_ACEOF
15681rm -f conftest.$ac_objext
15682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15683 (eval $ac_compile) 2>conftest.er1
a848cd7e 15684 ac_status=$?
ac1cb8d3
VS
15685 grep -v '^ *+' conftest.er1 >conftest.err
15686 rm -f conftest.er1
15687 cat conftest.err >&5
a848cd7e
SC
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } &&
da4486fb 15690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; } &&
15696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_hi=-1 ac_mid=-1
15703 while :; do
15704 cat >conftest.$ac_ext <<_ACEOF
15705/* confdefs.h. */
15706_ACEOF
15707cat confdefs.h >>conftest.$ac_ext
15708cat >>conftest.$ac_ext <<_ACEOF
15709/* end confdefs.h. */
15710$ac_includes_default
15711int
15712main ()
15713{
15714static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15715test_array [0] = 0
15716
15717 ;
15718 return 0;
15719}
15720_ACEOF
15721rm -f conftest.$ac_objext
15722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15723 (eval $ac_compile) 2>conftest.er1
a848cd7e 15724 ac_status=$?
ac1cb8d3
VS
15725 grep -v '^ *+' conftest.er1 >conftest.err
15726 rm -f conftest.er1
15727 cat conftest.err >&5
a848cd7e
SC
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
da4486fb 15730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; } &&
15736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_lo=$ac_mid; break
15743else
15744 echo "$as_me: failed program was:" >&5
15745sed 's/^/| /' conftest.$ac_ext >&5
15746
15747ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15748 if test $ac_mid -le $ac_hi; then
15749 ac_lo= ac_hi=
15750 break
15751 fi
15752 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15753fi
ac1cb8d3 15754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15755 done
15756else
15757 echo "$as_me: failed program was:" >&5
15758sed 's/^/| /' conftest.$ac_ext >&5
15759
15760ac_lo= ac_hi=
15761fi
ac1cb8d3 15762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15763fi
ac1cb8d3 15764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15765# Binary search between lo and hi bounds.
15766while test "x$ac_lo" != "x$ac_hi"; do
15767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15768 cat >conftest.$ac_ext <<_ACEOF
15769/* confdefs.h. */
15770_ACEOF
15771cat confdefs.h >>conftest.$ac_ext
15772cat >>conftest.$ac_ext <<_ACEOF
15773/* end confdefs.h. */
15774$ac_includes_default
15775int
15776main ()
15777{
15778static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15779test_array [0] = 0
15780
15781 ;
15782 return 0;
15783}
15784_ACEOF
15785rm -f conftest.$ac_objext
15786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15787 (eval $ac_compile) 2>conftest.er1
a848cd7e 15788 ac_status=$?
ac1cb8d3
VS
15789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -f conftest.er1
15791 cat conftest.err >&5
a848cd7e
SC
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
da4486fb 15794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_hi=$ac_mid
15807else
15808 echo "$as_me: failed program was:" >&5
15809sed 's/^/| /' conftest.$ac_ext >&5
15810
15811ac_lo=`expr '(' $ac_mid ')' + 1`
15812fi
ac1cb8d3 15813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15814done
15815case $ac_lo in
15816?*) ac_cv_sizeof_void_p=$ac_lo;;
15817'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15818See \`config.log' for more details." >&5
15819echo "$as_me: error: cannot compute sizeof (void *), 77
15820See \`config.log' for more details." >&2;}
15821 { (exit 1); exit 1; }; } ;;
15822esac
15823else
15824 if test "$cross_compiling" = yes; then
da4486fb
VZ
15825 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15826echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15827 { (exit 1); exit 1; }; }
15828else
15829 cat >conftest.$ac_ext <<_ACEOF
15830/* confdefs.h. */
15831_ACEOF
15832cat confdefs.h >>conftest.$ac_ext
15833cat >>conftest.$ac_ext <<_ACEOF
15834/* end confdefs.h. */
15835$ac_includes_default
15836long longval () { return (long) (sizeof (void *)); }
15837unsigned long ulongval () { return (long) (sizeof (void *)); }
15838#include <stdio.h>
15839#include <stdlib.h>
15840int
15841main ()
15842{
15843
15844 FILE *f = fopen ("conftest.val", "w");
15845 if (! f)
15846 exit (1);
15847 if (((long) (sizeof (void *))) < 0)
15848 {
15849 long i = longval ();
15850 if (i != ((long) (sizeof (void *))))
15851 exit (1);
15852 fprintf (f, "%ld\n", i);
15853 }
15854 else
15855 {
15856 unsigned long i = ulongval ();
15857 if (i != ((long) (sizeof (void *))))
15858 exit (1);
15859 fprintf (f, "%lu\n", i);
15860 }
15861 exit (ferror (f) || fclose (f) != 0);
15862
15863 ;
15864 return 0;
15865}
15866_ACEOF
15867rm -f conftest$ac_exeext
15868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15869 (eval $ac_link) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15878 ac_cv_sizeof_void_p=`cat conftest.val`
15879else
15880 echo "$as_me: program exited with status $ac_status" >&5
15881echo "$as_me: failed program was:" >&5
15882sed 's/^/| /' conftest.$ac_ext >&5
15883
15884( exit $ac_status )
15885{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15886See \`config.log' for more details." >&5
15887echo "$as_me: error: cannot compute sizeof (void *), 77
15888See \`config.log' for more details." >&2;}
15889 { (exit 1); exit 1; }; }
15890fi
ac1cb8d3 15891rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15892fi
15893fi
15894rm -f conftest.val
15895else
15896 ac_cv_sizeof_void_p=0
15897fi
15898fi
15899echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15900echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15901cat >>confdefs.h <<_ACEOF
15902#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15903_ACEOF
15904
15905
15906echo "$as_me:$LINENO: checking for int" >&5
15907echo $ECHO_N "checking for int... $ECHO_C" >&6
15908if test "${ac_cv_type_int+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910else
15911 cat >conftest.$ac_ext <<_ACEOF
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917$ac_includes_default
15918int
15919main ()
15920{
15921if ((int *) 0)
15922 return 0;
15923if (sizeof (int))
15924 return 0;
15925 ;
15926 return 0;
15927}
15928_ACEOF
15929rm -f conftest.$ac_objext
15930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15931 (eval $ac_compile) 2>conftest.er1
a848cd7e 15932 ac_status=$?
ac1cb8d3
VS
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
a848cd7e
SC
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } &&
da4486fb 15938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15941 ac_status=$?
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; } &&
15944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 ac_cv_type_int=yes
15951else
15952 echo "$as_me: failed program was:" >&5
15953sed 's/^/| /' conftest.$ac_ext >&5
15954
15955ac_cv_type_int=no
15956fi
ac1cb8d3 15957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15958fi
15959echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15960echo "${ECHO_T}$ac_cv_type_int" >&6
15961
15962echo "$as_me:$LINENO: checking size of int" >&5
15963echo $ECHO_N "checking size of int... $ECHO_C" >&6
15964if test "${ac_cv_sizeof_int+set}" = set; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15966else
15967 if test "$ac_cv_type_int" = yes; then
15968 # The cast to unsigned long works around a bug in the HP C Compiler
15969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15971 # This bug is HP SR number 8606223364.
15972 if test "$cross_compiling" = yes; then
15973 # Depending upon the size, compute the lo and hi bounds.
15974cat >conftest.$ac_ext <<_ACEOF
15975/* confdefs.h. */
15976_ACEOF
15977cat confdefs.h >>conftest.$ac_ext
15978cat >>conftest.$ac_ext <<_ACEOF
15979/* end confdefs.h. */
15980$ac_includes_default
15981int
15982main ()
15983{
15984static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15985test_array [0] = 0
15986
15987 ;
15988 return 0;
15989}
15990_ACEOF
15991rm -f conftest.$ac_objext
15992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15993 (eval $ac_compile) 2>conftest.er1
a848cd7e 15994 ac_status=$?
ac1cb8d3
VS
15995 grep -v '^ *+' conftest.er1 >conftest.err
15996 rm -f conftest.er1
15997 cat conftest.err >&5
a848cd7e
SC
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } &&
da4486fb 16000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; } &&
16006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16009 ac_status=$?
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); }; }; then
16012 ac_lo=0 ac_mid=0
16013 while :; do
16014 cat >conftest.$ac_ext <<_ACEOF
16015/* confdefs.h. */
16016_ACEOF
16017cat confdefs.h >>conftest.$ac_ext
16018cat >>conftest.$ac_ext <<_ACEOF
16019/* end confdefs.h. */
16020$ac_includes_default
16021int
16022main ()
16023{
16024static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16025test_array [0] = 0
16026
16027 ;
16028 return 0;
16029}
16030_ACEOF
16031rm -f conftest.$ac_objext
16032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16033 (eval $ac_compile) 2>conftest.er1
a848cd7e 16034 ac_status=$?
ac1cb8d3
VS
16035 grep -v '^ *+' conftest.er1 >conftest.err
16036 rm -f conftest.er1
16037 cat conftest.err >&5
a848cd7e
SC
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
da4486fb 16040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; } &&
16046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 ac_hi=$ac_mid; break
16053else
16054 echo "$as_me: failed program was:" >&5
16055sed 's/^/| /' conftest.$ac_ext >&5
16056
16057ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16058 if test $ac_lo -le $ac_mid; then
16059 ac_lo= ac_hi=
16060 break
16061 fi
16062 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16063fi
ac1cb8d3 16064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16065 done
16066else
16067 echo "$as_me: failed program was:" >&5
16068sed 's/^/| /' conftest.$ac_ext >&5
16069
16070cat >conftest.$ac_ext <<_ACEOF
16071/* confdefs.h. */
16072_ACEOF
16073cat confdefs.h >>conftest.$ac_ext
16074cat >>conftest.$ac_ext <<_ACEOF
16075/* end confdefs.h. */
16076$ac_includes_default
16077int
16078main ()
16079{
16080static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16081test_array [0] = 0
16082
16083 ;
16084 return 0;
16085}
16086_ACEOF
16087rm -f conftest.$ac_objext
16088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16089 (eval $ac_compile) 2>conftest.er1
a848cd7e 16090 ac_status=$?
ac1cb8d3
VS
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
a848cd7e
SC
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
da4486fb 16096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16099 ac_status=$?
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; } &&
16102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }; then
16108 ac_hi=-1 ac_mid=-1
16109 while :; do
16110 cat >conftest.$ac_ext <<_ACEOF
16111/* confdefs.h. */
16112_ACEOF
16113cat confdefs.h >>conftest.$ac_ext
16114cat >>conftest.$ac_ext <<_ACEOF
16115/* end confdefs.h. */
16116$ac_includes_default
16117int
16118main ()
16119{
16120static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16121test_array [0] = 0
16122
16123 ;
16124 return 0;
16125}
16126_ACEOF
16127rm -f conftest.$ac_objext
16128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16129 (eval $ac_compile) 2>conftest.er1
a848cd7e 16130 ac_status=$?
ac1cb8d3
VS
16131 grep -v '^ *+' conftest.er1 >conftest.err
16132 rm -f conftest.er1
16133 cat conftest.err >&5
a848cd7e
SC
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } &&
da4486fb 16136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16148 ac_lo=$ac_mid; break
16149else
16150 echo "$as_me: failed program was:" >&5
16151sed 's/^/| /' conftest.$ac_ext >&5
16152
16153ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16154 if test $ac_mid -le $ac_hi; then
16155 ac_lo= ac_hi=
16156 break
16157 fi
16158 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16159fi
ac1cb8d3 16160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16161 done
16162else
16163 echo "$as_me: failed program was:" >&5
16164sed 's/^/| /' conftest.$ac_ext >&5
16165
16166ac_lo= ac_hi=
16167fi
ac1cb8d3 16168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16169fi
ac1cb8d3 16170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16171# Binary search between lo and hi bounds.
16172while test "x$ac_lo" != "x$ac_hi"; do
16173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16174 cat >conftest.$ac_ext <<_ACEOF
16175/* confdefs.h. */
16176_ACEOF
16177cat confdefs.h >>conftest.$ac_ext
16178cat >>conftest.$ac_ext <<_ACEOF
16179/* end confdefs.h. */
16180$ac_includes_default
16181int
16182main ()
16183{
16184static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16185test_array [0] = 0
16186
16187 ;
16188 return 0;
16189}
16190_ACEOF
16191rm -f conftest.$ac_objext
16192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16193 (eval $ac_compile) 2>conftest.er1
a848cd7e 16194 ac_status=$?
ac1cb8d3
VS
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
a848cd7e
SC
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } &&
da4486fb 16200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16212 ac_hi=$ac_mid
16213else
16214 echo "$as_me: failed program was:" >&5
16215sed 's/^/| /' conftest.$ac_ext >&5
16216
16217ac_lo=`expr '(' $ac_mid ')' + 1`
16218fi
ac1cb8d3 16219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16220done
16221case $ac_lo in
16222?*) ac_cv_sizeof_int=$ac_lo;;
16223'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16224See \`config.log' for more details." >&5
16225echo "$as_me: error: cannot compute sizeof (int), 77
16226See \`config.log' for more details." >&2;}
16227 { (exit 1); exit 1; }; } ;;
16228esac
16229else
16230 if test "$cross_compiling" = yes; then
da4486fb
VZ
16231 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16232echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16233 { (exit 1); exit 1; }; }
16234else
16235 cat >conftest.$ac_ext <<_ACEOF
16236/* confdefs.h. */
16237_ACEOF
16238cat confdefs.h >>conftest.$ac_ext
16239cat >>conftest.$ac_ext <<_ACEOF
16240/* end confdefs.h. */
16241$ac_includes_default
16242long longval () { return (long) (sizeof (int)); }
16243unsigned long ulongval () { return (long) (sizeof (int)); }
16244#include <stdio.h>
16245#include <stdlib.h>
16246int
16247main ()
16248{
16249
16250 FILE *f = fopen ("conftest.val", "w");
16251 if (! f)
16252 exit (1);
16253 if (((long) (sizeof (int))) < 0)
16254 {
16255 long i = longval ();
16256 if (i != ((long) (sizeof (int))))
16257 exit (1);
16258 fprintf (f, "%ld\n", i);
16259 }
16260 else
16261 {
16262 unsigned long i = ulongval ();
16263 if (i != ((long) (sizeof (int))))
16264 exit (1);
16265 fprintf (f, "%lu\n", i);
16266 }
16267 exit (ferror (f) || fclose (f) != 0);
16268
16269 ;
16270 return 0;
16271}
16272_ACEOF
16273rm -f conftest$ac_exeext
16274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>&5
16276 ac_status=$?
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284 ac_cv_sizeof_int=`cat conftest.val`
16285else
16286 echo "$as_me: program exited with status $ac_status" >&5
16287echo "$as_me: failed program was:" >&5
16288sed 's/^/| /' conftest.$ac_ext >&5
16289
16290( exit $ac_status )
16291{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16292See \`config.log' for more details." >&5
16293echo "$as_me: error: cannot compute sizeof (int), 77
16294See \`config.log' for more details." >&2;}
16295 { (exit 1); exit 1; }; }
16296fi
ac1cb8d3 16297rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16298fi
16299fi
16300rm -f conftest.val
16301else
16302 ac_cv_sizeof_int=0
16303fi
16304fi
16305echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16306echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16307cat >>confdefs.h <<_ACEOF
16308#define SIZEOF_INT $ac_cv_sizeof_int
16309_ACEOF
16310
16311
16312echo "$as_me:$LINENO: checking for long" >&5
16313echo $ECHO_N "checking for long... $ECHO_C" >&6
16314if test "${ac_cv_type_long+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16316else
16317 cat >conftest.$ac_ext <<_ACEOF
16318/* confdefs.h. */
16319_ACEOF
16320cat confdefs.h >>conftest.$ac_ext
16321cat >>conftest.$ac_ext <<_ACEOF
16322/* end confdefs.h. */
16323$ac_includes_default
16324int
16325main ()
16326{
16327if ((long *) 0)
16328 return 0;
16329if (sizeof (long))
16330 return 0;
16331 ;
16332 return 0;
16333}
16334_ACEOF
16335rm -f conftest.$ac_objext
16336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16337 (eval $ac_compile) 2>conftest.er1
a848cd7e 16338 ac_status=$?
ac1cb8d3
VS
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
a848cd7e
SC
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
da4486fb 16344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; } &&
16350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 ac_cv_type_long=yes
16357else
16358 echo "$as_me: failed program was:" >&5
16359sed 's/^/| /' conftest.$ac_ext >&5
16360
16361ac_cv_type_long=no
16362fi
ac1cb8d3 16363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16364fi
16365echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16366echo "${ECHO_T}$ac_cv_type_long" >&6
16367
16368echo "$as_me:$LINENO: checking size of long" >&5
16369echo $ECHO_N "checking size of long... $ECHO_C" >&6
16370if test "${ac_cv_sizeof_long+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16372else
16373 if test "$ac_cv_type_long" = yes; then
16374 # The cast to unsigned long works around a bug in the HP C Compiler
16375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16377 # This bug is HP SR number 8606223364.
16378 if test "$cross_compiling" = yes; then
16379 # Depending upon the size, compute the lo and hi bounds.
16380cat >conftest.$ac_ext <<_ACEOF
16381/* confdefs.h. */
16382_ACEOF
16383cat confdefs.h >>conftest.$ac_ext
16384cat >>conftest.$ac_ext <<_ACEOF
16385/* end confdefs.h. */
16386$ac_includes_default
16387int
16388main ()
16389{
16390static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16391test_array [0] = 0
16392
16393 ;
16394 return 0;
16395}
16396_ACEOF
16397rm -f conftest.$ac_objext
16398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16399 (eval $ac_compile) 2>conftest.er1
a848cd7e 16400 ac_status=$?
ac1cb8d3
VS
16401 grep -v '^ *+' conftest.er1 >conftest.err
16402 rm -f conftest.er1
16403 cat conftest.err >&5
a848cd7e
SC
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } &&
da4486fb 16406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; } &&
16412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16415 ac_status=$?
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 ac_lo=0 ac_mid=0
16419 while :; do
16420 cat >conftest.$ac_ext <<_ACEOF
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
16426$ac_includes_default
16427int
16428main ()
16429{
16430static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16431test_array [0] = 0
16432
16433 ;
16434 return 0;
16435}
16436_ACEOF
16437rm -f conftest.$ac_objext
16438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16439 (eval $ac_compile) 2>conftest.er1
a848cd7e 16440 ac_status=$?
ac1cb8d3
VS
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
a848cd7e
SC
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
da4486fb 16446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_hi=$ac_mid; break
16459else
16460 echo "$as_me: failed program was:" >&5
16461sed 's/^/| /' conftest.$ac_ext >&5
16462
16463ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16464 if test $ac_lo -le $ac_mid; then
16465 ac_lo= ac_hi=
16466 break
16467 fi
16468 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16469fi
ac1cb8d3 16470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16471 done
16472else
16473 echo "$as_me: failed program was:" >&5
16474sed 's/^/| /' conftest.$ac_ext >&5
16475
16476cat >conftest.$ac_ext <<_ACEOF
16477/* confdefs.h. */
16478_ACEOF
16479cat confdefs.h >>conftest.$ac_ext
16480cat >>conftest.$ac_ext <<_ACEOF
16481/* end confdefs.h. */
16482$ac_includes_default
16483int
16484main ()
16485{
16486static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16487test_array [0] = 0
16488
16489 ;
16490 return 0;
16491}
16492_ACEOF
16493rm -f conftest.$ac_objext
16494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16495 (eval $ac_compile) 2>conftest.er1
a848cd7e 16496 ac_status=$?
ac1cb8d3
VS
16497 grep -v '^ *+' conftest.er1 >conftest.err
16498 rm -f conftest.er1
16499 cat conftest.err >&5
a848cd7e
SC
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } &&
da4486fb 16502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; } &&
16508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514 ac_hi=-1 ac_mid=-1
16515 while :; do
16516 cat >conftest.$ac_ext <<_ACEOF
16517/* confdefs.h. */
16518_ACEOF
16519cat confdefs.h >>conftest.$ac_ext
16520cat >>conftest.$ac_ext <<_ACEOF
16521/* end confdefs.h. */
16522$ac_includes_default
16523int
16524main ()
16525{
16526static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16527test_array [0] = 0
16528
16529 ;
16530 return 0;
16531}
16532_ACEOF
16533rm -f conftest.$ac_objext
16534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16535 (eval $ac_compile) 2>conftest.er1
a848cd7e 16536 ac_status=$?
ac1cb8d3
VS
16537 grep -v '^ *+' conftest.er1 >conftest.err
16538 rm -f conftest.er1
16539 cat conftest.err >&5
a848cd7e
SC
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
da4486fb 16542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_lo=$ac_mid; break
16555else
16556 echo "$as_me: failed program was:" >&5
16557sed 's/^/| /' conftest.$ac_ext >&5
16558
16559ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16560 if test $ac_mid -le $ac_hi; then
16561 ac_lo= ac_hi=
16562 break
16563 fi
16564 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16565fi
ac1cb8d3 16566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16567 done
16568else
16569 echo "$as_me: failed program was:" >&5
16570sed 's/^/| /' conftest.$ac_ext >&5
16571
16572ac_lo= ac_hi=
16573fi
ac1cb8d3 16574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16575fi
ac1cb8d3 16576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16577# Binary search between lo and hi bounds.
16578while test "x$ac_lo" != "x$ac_hi"; do
16579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16580 cat >conftest.$ac_ext <<_ACEOF
16581/* confdefs.h. */
16582_ACEOF
16583cat confdefs.h >>conftest.$ac_ext
16584cat >>conftest.$ac_ext <<_ACEOF
16585/* end confdefs.h. */
16586$ac_includes_default
16587int
16588main ()
16589{
16590static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16591test_array [0] = 0
16592
16593 ;
16594 return 0;
16595}
16596_ACEOF
16597rm -f conftest.$ac_objext
16598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16599 (eval $ac_compile) 2>conftest.er1
a848cd7e 16600 ac_status=$?
ac1cb8d3
VS
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
a848cd7e
SC
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
da4486fb 16606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; } &&
16612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_hi=$ac_mid
16619else
16620 echo "$as_me: failed program was:" >&5
16621sed 's/^/| /' conftest.$ac_ext >&5
16622
16623ac_lo=`expr '(' $ac_mid ')' + 1`
16624fi
ac1cb8d3 16625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16626done
16627case $ac_lo in
16628?*) ac_cv_sizeof_long=$ac_lo;;
16629'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16630See \`config.log' for more details." >&5
16631echo "$as_me: error: cannot compute sizeof (long), 77
16632See \`config.log' for more details." >&2;}
16633 { (exit 1); exit 1; }; } ;;
16634esac
16635else
16636 if test "$cross_compiling" = yes; then
da4486fb
VZ
16637 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16638echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16639 { (exit 1); exit 1; }; }
16640else
16641 cat >conftest.$ac_ext <<_ACEOF
16642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
16647$ac_includes_default
16648long longval () { return (long) (sizeof (long)); }
16649unsigned long ulongval () { return (long) (sizeof (long)); }
16650#include <stdio.h>
16651#include <stdlib.h>
16652int
16653main ()
16654{
16655
16656 FILE *f = fopen ("conftest.val", "w");
16657 if (! f)
16658 exit (1);
16659 if (((long) (sizeof (long))) < 0)
16660 {
16661 long i = longval ();
16662 if (i != ((long) (sizeof (long))))
16663 exit (1);
16664 fprintf (f, "%ld\n", i);
16665 }
16666 else
16667 {
16668 unsigned long i = ulongval ();
16669 if (i != ((long) (sizeof (long))))
16670 exit (1);
16671 fprintf (f, "%lu\n", i);
16672 }
16673 exit (ferror (f) || fclose (f) != 0);
16674
16675 ;
16676 return 0;
16677}
16678_ACEOF
16679rm -f conftest$ac_exeext
16680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16681 (eval $ac_link) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16690 ac_cv_sizeof_long=`cat conftest.val`
16691else
16692 echo "$as_me: program exited with status $ac_status" >&5
16693echo "$as_me: failed program was:" >&5
16694sed 's/^/| /' conftest.$ac_ext >&5
16695
16696( exit $ac_status )
16697{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16698See \`config.log' for more details." >&5
16699echo "$as_me: error: cannot compute sizeof (long), 77
16700See \`config.log' for more details." >&2;}
16701 { (exit 1); exit 1; }; }
16702fi
ac1cb8d3 16703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16704fi
16705fi
16706rm -f conftest.val
16707else
16708 ac_cv_sizeof_long=0
16709fi
16710fi
16711echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16712echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16713cat >>confdefs.h <<_ACEOF
16714#define SIZEOF_LONG $ac_cv_sizeof_long
16715_ACEOF
16716
16717
16718echo "$as_me:$LINENO: checking for size_t" >&5
16719echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16720if test "${ac_cv_type_size_t+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16722else
16723 cat >conftest.$ac_ext <<_ACEOF
16724/* confdefs.h. */
16725_ACEOF
16726cat confdefs.h >>conftest.$ac_ext
16727cat >>conftest.$ac_ext <<_ACEOF
16728/* end confdefs.h. */
16729$ac_includes_default
16730int
16731main ()
16732{
16733if ((size_t *) 0)
16734 return 0;
16735if (sizeof (size_t))
16736 return 0;
16737 ;
16738 return 0;
16739}
16740_ACEOF
16741rm -f conftest.$ac_objext
16742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16743 (eval $ac_compile) 2>conftest.er1
a848cd7e 16744 ac_status=$?
ac1cb8d3
VS
16745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
a848cd7e
SC
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
da4486fb 16750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_cv_type_size_t=yes
16763else
16764 echo "$as_me: failed program was:" >&5
16765sed 's/^/| /' conftest.$ac_ext >&5
16766
16767ac_cv_type_size_t=no
16768fi
ac1cb8d3 16769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16770fi
16771echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16772echo "${ECHO_T}$ac_cv_type_size_t" >&6
16773
16774echo "$as_me:$LINENO: checking size of size_t" >&5
16775echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16776if test "${ac_cv_sizeof_size_t+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778else
16779 if test "$ac_cv_type_size_t" = yes; then
16780 # The cast to unsigned long works around a bug in the HP C Compiler
16781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16783 # This bug is HP SR number 8606223364.
16784 if test "$cross_compiling" = yes; then
16785 # Depending upon the size, compute the lo and hi bounds.
16786cat >conftest.$ac_ext <<_ACEOF
16787/* confdefs.h. */
16788_ACEOF
16789cat confdefs.h >>conftest.$ac_ext
16790cat >>conftest.$ac_ext <<_ACEOF
16791/* end confdefs.h. */
16792$ac_includes_default
16793int
16794main ()
16795{
16796static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16797test_array [0] = 0
16798
16799 ;
16800 return 0;
16801}
16802_ACEOF
16803rm -f conftest.$ac_objext
16804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16805 (eval $ac_compile) 2>conftest.er1
a848cd7e 16806 ac_status=$?
ac1cb8d3
VS
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
a848cd7e
SC
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
da4486fb 16812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_lo=0 ac_mid=0
16825 while :; do
16826 cat >conftest.$ac_ext <<_ACEOF
16827/* confdefs.h. */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h. */
16832$ac_includes_default
16833int
16834main ()
16835{
16836static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16837test_array [0] = 0
16838
16839 ;
16840 return 0;
16841}
16842_ACEOF
16843rm -f conftest.$ac_objext
16844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16845 (eval $ac_compile) 2>conftest.er1
a848cd7e 16846 ac_status=$?
ac1cb8d3
VS
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
a848cd7e
SC
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
da4486fb 16852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_hi=$ac_mid; break
16865else
16866 echo "$as_me: failed program was:" >&5
16867sed 's/^/| /' conftest.$ac_ext >&5
16868
16869ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16870 if test $ac_lo -le $ac_mid; then
16871 ac_lo= ac_hi=
16872 break
16873 fi
16874 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16875fi
ac1cb8d3 16876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16877 done
16878else
16879 echo "$as_me: failed program was:" >&5
16880sed 's/^/| /' conftest.$ac_ext >&5
16881
16882cat >conftest.$ac_ext <<_ACEOF
16883/* confdefs.h. */
16884_ACEOF
16885cat confdefs.h >>conftest.$ac_ext
16886cat >>conftest.$ac_ext <<_ACEOF
16887/* end confdefs.h. */
16888$ac_includes_default
16889int
16890main ()
16891{
16892static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16893test_array [0] = 0
16894
16895 ;
16896 return 0;
16897}
16898_ACEOF
16899rm -f conftest.$ac_objext
16900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16901 (eval $ac_compile) 2>conftest.er1
a848cd7e 16902 ac_status=$?
ac1cb8d3
VS
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
a848cd7e
SC
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
da4486fb 16908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 ac_hi=-1 ac_mid=-1
16921 while :; do
16922 cat >conftest.$ac_ext <<_ACEOF
16923/* confdefs.h. */
16924_ACEOF
16925cat confdefs.h >>conftest.$ac_ext
16926cat >>conftest.$ac_ext <<_ACEOF
16927/* end confdefs.h. */
16928$ac_includes_default
16929int
16930main ()
16931{
16932static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16933test_array [0] = 0
16934
16935 ;
16936 return 0;
16937}
16938_ACEOF
16939rm -f conftest.$ac_objext
16940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16941 (eval $ac_compile) 2>conftest.er1
a848cd7e 16942 ac_status=$?
ac1cb8d3
VS
16943 grep -v '^ *+' conftest.er1 >conftest.err
16944 rm -f conftest.er1
16945 cat conftest.err >&5
a848cd7e
SC
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
da4486fb 16948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_lo=$ac_mid; break
16961else
16962 echo "$as_me: failed program was:" >&5
16963sed 's/^/| /' conftest.$ac_ext >&5
16964
16965ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16966 if test $ac_mid -le $ac_hi; then
16967 ac_lo= ac_hi=
16968 break
16969 fi
16970 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16971fi
ac1cb8d3 16972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16973 done
16974else
16975 echo "$as_me: failed program was:" >&5
16976sed 's/^/| /' conftest.$ac_ext >&5
16977
16978ac_lo= ac_hi=
16979fi
ac1cb8d3 16980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16981fi
ac1cb8d3 16982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16983# Binary search between lo and hi bounds.
16984while test "x$ac_lo" != "x$ac_hi"; do
16985 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16986 cat >conftest.$ac_ext <<_ACEOF
16987/* confdefs.h. */
16988_ACEOF
16989cat confdefs.h >>conftest.$ac_ext
16990cat >>conftest.$ac_ext <<_ACEOF
16991/* end confdefs.h. */
16992$ac_includes_default
16993int
16994main ()
16995{
16996static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16997test_array [0] = 0
16998
16999 ;
17000 return 0;
17001}
17002_ACEOF
17003rm -f conftest.$ac_objext
17004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17005 (eval $ac_compile) 2>conftest.er1
a848cd7e 17006 ac_status=$?
ac1cb8d3
VS
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
a848cd7e
SC
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
da4486fb 17012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17014 (eval $ac_try) 2>&5
17015 ac_status=$?
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; } &&
17018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; }; then
17024 ac_hi=$ac_mid
17025else
17026 echo "$as_me: failed program was:" >&5
17027sed 's/^/| /' conftest.$ac_ext >&5
17028
17029ac_lo=`expr '(' $ac_mid ')' + 1`
17030fi
ac1cb8d3 17031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17032done
17033case $ac_lo in
17034?*) ac_cv_sizeof_size_t=$ac_lo;;
17035'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17036See \`config.log' for more details." >&5
17037echo "$as_me: error: cannot compute sizeof (size_t), 77
17038See \`config.log' for more details." >&2;}
17039 { (exit 1); exit 1; }; } ;;
17040esac
17041else
17042 if test "$cross_compiling" = yes; then
da4486fb
VZ
17043 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17044echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17045 { (exit 1); exit 1; }; }
17046else
17047 cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
17053$ac_includes_default
17054long longval () { return (long) (sizeof (size_t)); }
17055unsigned long ulongval () { return (long) (sizeof (size_t)); }
17056#include <stdio.h>
17057#include <stdlib.h>
17058int
17059main ()
17060{
17061
17062 FILE *f = fopen ("conftest.val", "w");
17063 if (! f)
17064 exit (1);
17065 if (((long) (sizeof (size_t))) < 0)
17066 {
17067 long i = longval ();
17068 if (i != ((long) (sizeof (size_t))))
17069 exit (1);
17070 fprintf (f, "%ld\n", i);
17071 }
17072 else
17073 {
17074 unsigned long i = ulongval ();
17075 if (i != ((long) (sizeof (size_t))))
17076 exit (1);
17077 fprintf (f, "%lu\n", i);
17078 }
17079 exit (ferror (f) || fclose (f) != 0);
17080
17081 ;
17082 return 0;
17083}
17084_ACEOF
17085rm -f conftest$ac_exeext
17086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17087 (eval $ac_link) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
17096 ac_cv_sizeof_size_t=`cat conftest.val`
17097else
17098 echo "$as_me: program exited with status $ac_status" >&5
17099echo "$as_me: failed program was:" >&5
17100sed 's/^/| /' conftest.$ac_ext >&5
17101
17102( exit $ac_status )
17103{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17104See \`config.log' for more details." >&5
17105echo "$as_me: error: cannot compute sizeof (size_t), 77
17106See \`config.log' for more details." >&2;}
17107 { (exit 1); exit 1; }; }
17108fi
ac1cb8d3 17109rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17110fi
17111fi
17112rm -f conftest.val
17113else
17114 ac_cv_sizeof_size_t=0
17115fi
17116fi
17117echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17118echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17119cat >>confdefs.h <<_ACEOF
17120#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17121_ACEOF
17122
17123
17124
17125case "${host}" in
17126 arm-*-linux* )
17127 echo "$as_me:$LINENO: checking for long long" >&5
17128echo $ECHO_N "checking for long long... $ECHO_C" >&6
17129if test "${ac_cv_type_long_long+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17131else
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{
17142if ((long long *) 0)
17143 return 0;
17144if (sizeof (long long))
17145 return 0;
17146 ;
17147 return 0;
17148}
17149_ACEOF
17150rm -f conftest.$ac_objext
17151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17152 (eval $ac_compile) 2>conftest.er1
a848cd7e 17153 ac_status=$?
ac1cb8d3
VS
17154 grep -v '^ *+' conftest.er1 >conftest.err
17155 rm -f conftest.er1
17156 cat conftest.err >&5
a848cd7e
SC
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } &&
da4486fb 17159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 ac_cv_type_long_long=yes
17172else
17173 echo "$as_me: failed program was:" >&5
17174sed 's/^/| /' conftest.$ac_ext >&5
17175
17176ac_cv_type_long_long=no
17177fi
ac1cb8d3 17178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17179fi
17180echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17181echo "${ECHO_T}$ac_cv_type_long_long" >&6
17182
17183echo "$as_me:$LINENO: checking size of long long" >&5
17184echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17185if test "${ac_cv_sizeof_long_long+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17187else
17188 if test "$ac_cv_type_long_long" = yes; then
17189 # The cast to unsigned long works around a bug in the HP C Compiler
17190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17192 # This bug is HP SR number 8606223364.
17193 if test "$cross_compiling" = yes; then
17194 # Depending upon the size, compute the lo and hi bounds.
17195cat >conftest.$ac_ext <<_ACEOF
17196/* confdefs.h. */
17197_ACEOF
17198cat confdefs.h >>conftest.$ac_ext
17199cat >>conftest.$ac_ext <<_ACEOF
17200/* end confdefs.h. */
17201$ac_includes_default
17202int
17203main ()
17204{
17205static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17206test_array [0] = 0
17207
17208 ;
17209 return 0;
17210}
17211_ACEOF
17212rm -f conftest.$ac_objext
17213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17214 (eval $ac_compile) 2>conftest.er1
a848cd7e 17215 ac_status=$?
ac1cb8d3
VS
17216 grep -v '^ *+' conftest.er1 >conftest.err
17217 rm -f conftest.er1
17218 cat conftest.err >&5
a848cd7e
SC
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } &&
da4486fb 17221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 ac_lo=0 ac_mid=0
17234 while :; do
17235 cat >conftest.$ac_ext <<_ACEOF
17236/* confdefs.h. */
17237_ACEOF
17238cat confdefs.h >>conftest.$ac_ext
17239cat >>conftest.$ac_ext <<_ACEOF
17240/* end confdefs.h. */
17241$ac_includes_default
17242int
17243main ()
17244{
17245static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17246test_array [0] = 0
17247
17248 ;
17249 return 0;
17250}
17251_ACEOF
17252rm -f conftest.$ac_objext
17253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17254 (eval $ac_compile) 2>conftest.er1
a848cd7e 17255 ac_status=$?
ac1cb8d3
VS
17256 grep -v '^ *+' conftest.er1 >conftest.err
17257 rm -f conftest.er1
17258 cat conftest.err >&5
a848cd7e
SC
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } &&
da4486fb 17261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 ac_hi=$ac_mid; break
17274else
17275 echo "$as_me: failed program was:" >&5
17276sed 's/^/| /' conftest.$ac_ext >&5
17277
17278ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17279 if test $ac_lo -le $ac_mid; then
17280 ac_lo= ac_hi=
17281 break
17282 fi
17283 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17284fi
ac1cb8d3 17285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17286 done
17287else
17288 echo "$as_me: failed program was:" >&5
17289sed 's/^/| /' conftest.$ac_ext >&5
17290
17291cat >conftest.$ac_ext <<_ACEOF
17292/* confdefs.h. */
17293_ACEOF
17294cat confdefs.h >>conftest.$ac_ext
17295cat >>conftest.$ac_ext <<_ACEOF
17296/* end confdefs.h. */
17297$ac_includes_default
17298int
17299main ()
17300{
17301static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17302test_array [0] = 0
17303
17304 ;
17305 return 0;
17306}
17307_ACEOF
17308rm -f conftest.$ac_objext
17309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17310 (eval $ac_compile) 2>conftest.er1
a848cd7e 17311 ac_status=$?
ac1cb8d3
VS
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
a848cd7e
SC
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
da4486fb 17317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329 ac_hi=-1 ac_mid=-1
17330 while :; do
17331 cat >conftest.$ac_ext <<_ACEOF
17332/* confdefs.h. */
17333_ACEOF
17334cat confdefs.h >>conftest.$ac_ext
17335cat >>conftest.$ac_ext <<_ACEOF
17336/* end confdefs.h. */
17337$ac_includes_default
17338int
17339main ()
17340{
17341static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17342test_array [0] = 0
17343
17344 ;
17345 return 0;
17346}
17347_ACEOF
17348rm -f conftest.$ac_objext
17349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17350 (eval $ac_compile) 2>conftest.er1
a848cd7e 17351 ac_status=$?
ac1cb8d3
VS
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
a848cd7e
SC
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
da4486fb 17357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 ac_lo=$ac_mid; break
17370else
17371 echo "$as_me: failed program was:" >&5
17372sed 's/^/| /' conftest.$ac_ext >&5
17373
17374ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17375 if test $ac_mid -le $ac_hi; then
17376 ac_lo= ac_hi=
17377 break
17378 fi
17379 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17380fi
ac1cb8d3 17381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17382 done
17383else
17384 echo "$as_me: failed program was:" >&5
17385sed 's/^/| /' conftest.$ac_ext >&5
17386
17387ac_lo= ac_hi=
17388fi
ac1cb8d3 17389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17390fi
ac1cb8d3 17391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17392# Binary search between lo and hi bounds.
17393while test "x$ac_lo" != "x$ac_hi"; do
17394 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17395 cat >conftest.$ac_ext <<_ACEOF
17396/* confdefs.h. */
17397_ACEOF
17398cat confdefs.h >>conftest.$ac_ext
17399cat >>conftest.$ac_ext <<_ACEOF
17400/* end confdefs.h. */
17401$ac_includes_default
17402int
17403main ()
17404{
17405static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17406test_array [0] = 0
17407
17408 ;
17409 return 0;
17410}
17411_ACEOF
17412rm -f conftest.$ac_objext
17413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17414 (eval $ac_compile) 2>conftest.er1
a848cd7e 17415 ac_status=$?
ac1cb8d3
VS
17416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
a848cd7e
SC
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } &&
da4486fb 17421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17433 ac_hi=$ac_mid
17434else
17435 echo "$as_me: failed program was:" >&5
17436sed 's/^/| /' conftest.$ac_ext >&5
17437
17438ac_lo=`expr '(' $ac_mid ')' + 1`
17439fi
ac1cb8d3 17440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17441done
17442case $ac_lo in
17443?*) ac_cv_sizeof_long_long=$ac_lo;;
17444'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17445See \`config.log' for more details." >&5
17446echo "$as_me: error: cannot compute sizeof (long long), 77
17447See \`config.log' for more details." >&2;}
17448 { (exit 1); exit 1; }; } ;;
17449esac
17450else
17451 if test "$cross_compiling" = yes; then
da4486fb
VZ
17452 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17453echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17454 { (exit 1); exit 1; }; }
17455else
17456 cat >conftest.$ac_ext <<_ACEOF
17457/* confdefs.h. */
17458_ACEOF
17459cat confdefs.h >>conftest.$ac_ext
17460cat >>conftest.$ac_ext <<_ACEOF
17461/* end confdefs.h. */
17462$ac_includes_default
17463long longval () { return (long) (sizeof (long long)); }
17464unsigned long ulongval () { return (long) (sizeof (long long)); }
17465#include <stdio.h>
17466#include <stdlib.h>
17467int
17468main ()
17469{
17470
17471 FILE *f = fopen ("conftest.val", "w");
17472 if (! f)
17473 exit (1);
17474 if (((long) (sizeof (long long))) < 0)
17475 {
17476 long i = longval ();
17477 if (i != ((long) (sizeof (long long))))
17478 exit (1);
17479 fprintf (f, "%ld\n", i);
17480 }
17481 else
17482 {
17483 unsigned long i = ulongval ();
17484 if (i != ((long) (sizeof (long long))))
17485 exit (1);
17486 fprintf (f, "%lu\n", i);
17487 }
17488 exit (ferror (f) || fclose (f) != 0);
17489
17490 ;
17491 return 0;
17492}
17493_ACEOF
17494rm -f conftest$ac_exeext
17495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17496 (eval $ac_link) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501 (eval $ac_try) 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; }; then
17505 ac_cv_sizeof_long_long=`cat conftest.val`
17506else
17507 echo "$as_me: program exited with status $ac_status" >&5
17508echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511( exit $ac_status )
17512{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17513See \`config.log' for more details." >&5
17514echo "$as_me: error: cannot compute sizeof (long long), 77
17515See \`config.log' for more details." >&2;}
17516 { (exit 1); exit 1; }; }
17517fi
ac1cb8d3 17518rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17519fi
17520fi
17521rm -f conftest.val
17522else
17523 ac_cv_sizeof_long_long=0
17524fi
17525fi
17526echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17527echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17528cat >>confdefs.h <<_ACEOF
17529#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17530_ACEOF
17531
17532
17533 ;;
17534 *-hp-hpux* )
17535 echo "$as_me:$LINENO: checking for long long" >&5
17536echo $ECHO_N "checking for long long... $ECHO_C" >&6
17537if test "${ac_cv_type_long_long+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17539else
17540 cat >conftest.$ac_ext <<_ACEOF
17541/* confdefs.h. */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h. */
17546$ac_includes_default
17547int
17548main ()
17549{
17550if ((long long *) 0)
17551 return 0;
17552if (sizeof (long long))
17553 return 0;
17554 ;
17555 return 0;
17556}
17557_ACEOF
17558rm -f conftest.$ac_objext
17559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17560 (eval $ac_compile) 2>conftest.er1
a848cd7e 17561 ac_status=$?
ac1cb8d3
VS
17562 grep -v '^ *+' conftest.er1 >conftest.err
17563 rm -f conftest.er1
17564 cat conftest.err >&5
a848cd7e
SC
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); } &&
da4486fb 17567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569 (eval $ac_try) 2>&5
17570 ac_status=$?
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; } &&
17573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; }; then
17579 ac_cv_type_long_long=yes
17580else
17581 echo "$as_me: failed program was:" >&5
17582sed 's/^/| /' conftest.$ac_ext >&5
17583
17584ac_cv_type_long_long=no
17585fi
ac1cb8d3 17586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17587fi
17588echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17589echo "${ECHO_T}$ac_cv_type_long_long" >&6
17590
17591echo "$as_me:$LINENO: checking size of long long" >&5
17592echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17593if test "${ac_cv_sizeof_long_long+set}" = set; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17595else
17596 if test "$ac_cv_type_long_long" = yes; then
17597 # The cast to unsigned long works around a bug in the HP C Compiler
17598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17600 # This bug is HP SR number 8606223364.
17601 if test "$cross_compiling" = yes; then
17602 # Depending upon the size, compute the lo and hi bounds.
17603cat >conftest.$ac_ext <<_ACEOF
17604/* confdefs.h. */
17605_ACEOF
17606cat confdefs.h >>conftest.$ac_ext
17607cat >>conftest.$ac_ext <<_ACEOF
17608/* end confdefs.h. */
17609$ac_includes_default
17610int
17611main ()
17612{
17613static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17614test_array [0] = 0
17615
17616 ;
17617 return 0;
17618}
17619_ACEOF
17620rm -f conftest.$ac_objext
17621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17622 (eval $ac_compile) 2>conftest.er1
a848cd7e 17623 ac_status=$?
ac1cb8d3
VS
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
a848cd7e
SC
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } &&
da4486fb 17629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; } &&
17635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637 (eval $ac_try) 2>&5
17638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; }; then
17641 ac_lo=0 ac_mid=0
17642 while :; do
17643 cat >conftest.$ac_ext <<_ACEOF
17644/* confdefs.h. */
17645_ACEOF
17646cat confdefs.h >>conftest.$ac_ext
17647cat >>conftest.$ac_ext <<_ACEOF
17648/* end confdefs.h. */
17649$ac_includes_default
17650int
17651main ()
17652{
17653static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17654test_array [0] = 0
17655
17656 ;
17657 return 0;
17658}
17659_ACEOF
17660rm -f conftest.$ac_objext
17661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17662 (eval $ac_compile) 2>conftest.er1
a848cd7e 17663 ac_status=$?
ac1cb8d3
VS
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
a848cd7e
SC
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
da4486fb 17669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; } &&
17675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 ac_hi=$ac_mid; break
17682else
17683 echo "$as_me: failed program was:" >&5
17684sed 's/^/| /' conftest.$ac_ext >&5
17685
17686ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17687 if test $ac_lo -le $ac_mid; then
17688 ac_lo= ac_hi=
17689 break
17690 fi
17691 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17692fi
ac1cb8d3 17693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17694 done
17695else
17696 echo "$as_me: failed program was:" >&5
17697sed 's/^/| /' conftest.$ac_ext >&5
17698
17699cat >conftest.$ac_ext <<_ACEOF
17700/* confdefs.h. */
17701_ACEOF
17702cat confdefs.h >>conftest.$ac_ext
17703cat >>conftest.$ac_ext <<_ACEOF
17704/* end confdefs.h. */
17705$ac_includes_default
17706int
17707main ()
17708{
17709static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17710test_array [0] = 0
17711
17712 ;
17713 return 0;
17714}
17715_ACEOF
17716rm -f conftest.$ac_objext
17717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17718 (eval $ac_compile) 2>conftest.er1
a848cd7e 17719 ac_status=$?
ac1cb8d3
VS
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
a848cd7e
SC
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
da4486fb 17725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17734 ac_status=$?
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; }; then
17737 ac_hi=-1 ac_mid=-1
17738 while :; do
17739 cat >conftest.$ac_ext <<_ACEOF
17740/* confdefs.h. */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h. */
17745$ac_includes_default
17746int
17747main ()
17748{
17749static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17750test_array [0] = 0
17751
17752 ;
17753 return 0;
17754}
17755_ACEOF
17756rm -f conftest.$ac_objext
17757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17758 (eval $ac_compile) 2>conftest.er1
a848cd7e 17759 ac_status=$?
ac1cb8d3
VS
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
a848cd7e
SC
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
da4486fb 17765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; } &&
17771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_lo=$ac_mid; break
17778else
17779 echo "$as_me: failed program was:" >&5
17780sed 's/^/| /' conftest.$ac_ext >&5
17781
17782ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17783 if test $ac_mid -le $ac_hi; then
17784 ac_lo= ac_hi=
17785 break
17786 fi
17787 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17788fi
ac1cb8d3 17789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17790 done
17791else
17792 echo "$as_me: failed program was:" >&5
17793sed 's/^/| /' conftest.$ac_ext >&5
17794
17795ac_lo= ac_hi=
17796fi
ac1cb8d3 17797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17798fi
ac1cb8d3 17799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17800# Binary search between lo and hi bounds.
17801while test "x$ac_lo" != "x$ac_hi"; do
17802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17803 cat >conftest.$ac_ext <<_ACEOF
17804/* confdefs.h. */
17805_ACEOF
17806cat confdefs.h >>conftest.$ac_ext
17807cat >>conftest.$ac_ext <<_ACEOF
17808/* end confdefs.h. */
17809$ac_includes_default
17810int
17811main ()
17812{
17813static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17814test_array [0] = 0
17815
17816 ;
17817 return 0;
17818}
17819_ACEOF
17820rm -f conftest.$ac_objext
17821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17822 (eval $ac_compile) 2>conftest.er1
a848cd7e 17823 ac_status=$?
ac1cb8d3
VS
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
a848cd7e
SC
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
da4486fb 17829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_hi=$ac_mid
17842else
17843 echo "$as_me: failed program was:" >&5
17844sed 's/^/| /' conftest.$ac_ext >&5
17845
17846ac_lo=`expr '(' $ac_mid ')' + 1`
17847fi
ac1cb8d3 17848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17849done
17850case $ac_lo in
17851?*) ac_cv_sizeof_long_long=$ac_lo;;
17852'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17853See \`config.log' for more details." >&5
17854echo "$as_me: error: cannot compute sizeof (long long), 77
17855See \`config.log' for more details." >&2;}
17856 { (exit 1); exit 1; }; } ;;
17857esac
17858else
17859 if test "$cross_compiling" = yes; then
da4486fb
VZ
17860 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17861echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17862 { (exit 1); exit 1; }; }
17863else
17864 cat >conftest.$ac_ext <<_ACEOF
17865/* confdefs.h. */
17866_ACEOF
17867cat confdefs.h >>conftest.$ac_ext
17868cat >>conftest.$ac_ext <<_ACEOF
17869/* end confdefs.h. */
17870$ac_includes_default
17871long longval () { return (long) (sizeof (long long)); }
17872unsigned long ulongval () { return (long) (sizeof (long long)); }
17873#include <stdio.h>
17874#include <stdlib.h>
17875int
17876main ()
17877{
17878
17879 FILE *f = fopen ("conftest.val", "w");
17880 if (! f)
17881 exit (1);
17882 if (((long) (sizeof (long long))) < 0)
17883 {
17884 long i = longval ();
17885 if (i != ((long) (sizeof (long long))))
17886 exit (1);
17887 fprintf (f, "%ld\n", i);
17888 }
17889 else
17890 {
17891 unsigned long i = ulongval ();
17892 if (i != ((long) (sizeof (long long))))
17893 exit (1);
17894 fprintf (f, "%lu\n", i);
17895 }
17896 exit (ferror (f) || fclose (f) != 0);
17897
17898 ;
17899 return 0;
17900}
17901_ACEOF
17902rm -f conftest$ac_exeext
17903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17904 (eval $ac_link) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 ac_cv_sizeof_long_long=`cat conftest.val`
17914else
17915 echo "$as_me: program exited with status $ac_status" >&5
17916echo "$as_me: failed program was:" >&5
17917sed 's/^/| /' conftest.$ac_ext >&5
17918
17919( exit $ac_status )
17920{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17921See \`config.log' for more details." >&5
17922echo "$as_me: error: cannot compute sizeof (long long), 77
17923See \`config.log' for more details." >&2;}
17924 { (exit 1); exit 1; }; }
17925fi
ac1cb8d3 17926rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17927fi
17928fi
17929rm -f conftest.val
17930else
17931 ac_cv_sizeof_long_long=0
17932fi
17933fi
17934echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17935echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17936cat >>confdefs.h <<_ACEOF
17937#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17938_ACEOF
17939
17940
17941 if test "$ac_cv_sizeof_long_long" != "0"; then
17942 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17943 fi
17944 ;;
17945 * )
17946 echo "$as_me:$LINENO: checking for long long" >&5
17947echo $ECHO_N "checking for long long... $ECHO_C" >&6
17948if test "${ac_cv_type_long_long+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17950else
17951 cat >conftest.$ac_ext <<_ACEOF
17952/* confdefs.h. */
17953_ACEOF
17954cat confdefs.h >>conftest.$ac_ext
17955cat >>conftest.$ac_ext <<_ACEOF
17956/* end confdefs.h. */
17957$ac_includes_default
17958int
17959main ()
17960{
17961if ((long long *) 0)
17962 return 0;
17963if (sizeof (long long))
17964 return 0;
17965 ;
17966 return 0;
17967}
17968_ACEOF
17969rm -f conftest.$ac_objext
17970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17971 (eval $ac_compile) 2>conftest.er1
a848cd7e 17972 ac_status=$?
ac1cb8d3
VS
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
a848cd7e
SC
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
da4486fb 17978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17981 ac_status=$?
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; } &&
17984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; }; then
17990 ac_cv_type_long_long=yes
17991else
17992 echo "$as_me: failed program was:" >&5
17993sed 's/^/| /' conftest.$ac_ext >&5
17994
17995ac_cv_type_long_long=no
17996fi
ac1cb8d3 17997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17998fi
17999echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18000echo "${ECHO_T}$ac_cv_type_long_long" >&6
18001
18002echo "$as_me:$LINENO: checking size of long long" >&5
18003echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18004if test "${ac_cv_sizeof_long_long+set}" = set; then
18005 echo $ECHO_N "(cached) $ECHO_C" >&6
18006else
18007 if test "$ac_cv_type_long_long" = yes; then
18008 # The cast to unsigned long works around a bug in the HP C Compiler
18009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18011 # This bug is HP SR number 8606223364.
18012 if test "$cross_compiling" = yes; then
18013 # Depending upon the size, compute the lo and hi bounds.
18014cat >conftest.$ac_ext <<_ACEOF
18015/* confdefs.h. */
18016_ACEOF
18017cat confdefs.h >>conftest.$ac_ext
18018cat >>conftest.$ac_ext <<_ACEOF
18019/* end confdefs.h. */
18020$ac_includes_default
18021int
18022main ()
18023{
18024static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18025test_array [0] = 0
18026
18027 ;
18028 return 0;
18029}
18030_ACEOF
18031rm -f conftest.$ac_objext
18032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18033 (eval $ac_compile) 2>conftest.er1
a848cd7e 18034 ac_status=$?
ac1cb8d3
VS
18035 grep -v '^ *+' conftest.er1 >conftest.err
18036 rm -f conftest.er1
18037 cat conftest.err >&5
a848cd7e
SC
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
da4486fb 18040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_lo=0 ac_mid=0
18053 while :; do
18054 cat >conftest.$ac_ext <<_ACEOF
18055/* confdefs.h. */
18056_ACEOF
18057cat confdefs.h >>conftest.$ac_ext
18058cat >>conftest.$ac_ext <<_ACEOF
18059/* end confdefs.h. */
18060$ac_includes_default
18061int
18062main ()
18063{
18064static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18065test_array [0] = 0
18066
18067 ;
18068 return 0;
18069}
18070_ACEOF
18071rm -f conftest.$ac_objext
18072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18073 (eval $ac_compile) 2>conftest.er1
a848cd7e 18074 ac_status=$?
ac1cb8d3
VS
18075 grep -v '^ *+' conftest.er1 >conftest.err
18076 rm -f conftest.er1
18077 cat conftest.err >&5
a848cd7e
SC
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
da4486fb 18080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18083 ac_status=$?
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; } &&
18086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; }; then
18092 ac_hi=$ac_mid; break
18093else
18094 echo "$as_me: failed program was:" >&5
18095sed 's/^/| /' conftest.$ac_ext >&5
18096
18097ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18098 if test $ac_lo -le $ac_mid; then
18099 ac_lo= ac_hi=
18100 break
18101 fi
18102 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18103fi
ac1cb8d3 18104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18105 done
18106else
18107 echo "$as_me: failed program was:" >&5
18108sed 's/^/| /' conftest.$ac_ext >&5
18109
18110cat >conftest.$ac_ext <<_ACEOF
18111/* confdefs.h. */
18112_ACEOF
18113cat confdefs.h >>conftest.$ac_ext
18114cat >>conftest.$ac_ext <<_ACEOF
18115/* end confdefs.h. */
18116$ac_includes_default
18117int
18118main ()
18119{
18120static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18121test_array [0] = 0
18122
18123 ;
18124 return 0;
18125}
18126_ACEOF
18127rm -f conftest.$ac_objext
18128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18129 (eval $ac_compile) 2>conftest.er1
a848cd7e 18130 ac_status=$?
ac1cb8d3
VS
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
a848cd7e
SC
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
da4486fb 18136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; } &&
18142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
18148 ac_hi=-1 ac_mid=-1
18149 while :; do
18150 cat >conftest.$ac_ext <<_ACEOF
18151/* confdefs.h. */
18152_ACEOF
18153cat confdefs.h >>conftest.$ac_ext
18154cat >>conftest.$ac_ext <<_ACEOF
18155/* end confdefs.h. */
18156$ac_includes_default
18157int
18158main ()
18159{
18160static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18161test_array [0] = 0
18162
18163 ;
18164 return 0;
18165}
18166_ACEOF
18167rm -f conftest.$ac_objext
18168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18169 (eval $ac_compile) 2>conftest.er1
a848cd7e 18170 ac_status=$?
ac1cb8d3
VS
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
a848cd7e
SC
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
da4486fb 18176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18185 ac_status=$?
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; }; then
18188 ac_lo=$ac_mid; break
18189else
18190 echo "$as_me: failed program was:" >&5
18191sed 's/^/| /' conftest.$ac_ext >&5
18192
18193ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18194 if test $ac_mid -le $ac_hi; then
18195 ac_lo= ac_hi=
18196 break
18197 fi
18198 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18199fi
ac1cb8d3 18200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18201 done
18202else
18203 echo "$as_me: failed program was:" >&5
18204sed 's/^/| /' conftest.$ac_ext >&5
18205
18206ac_lo= ac_hi=
18207fi
ac1cb8d3 18208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18209fi
ac1cb8d3 18210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18211# Binary search between lo and hi bounds.
18212while test "x$ac_lo" != "x$ac_hi"; do
18213 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18214 cat >conftest.$ac_ext <<_ACEOF
18215/* confdefs.h. */
18216_ACEOF
18217cat confdefs.h >>conftest.$ac_ext
18218cat >>conftest.$ac_ext <<_ACEOF
18219/* end confdefs.h. */
18220$ac_includes_default
18221int
18222main ()
18223{
18224static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18225test_array [0] = 0
18226
18227 ;
18228 return 0;
18229}
18230_ACEOF
18231rm -f conftest.$ac_objext
18232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18233 (eval $ac_compile) 2>conftest.er1
a848cd7e 18234 ac_status=$?
ac1cb8d3
VS
18235 grep -v '^ *+' conftest.er1 >conftest.err
18236 rm -f conftest.er1
18237 cat conftest.err >&5
a848cd7e
SC
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
da4486fb 18240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18252 ac_hi=$ac_mid
18253else
18254 echo "$as_me: failed program was:" >&5
18255sed 's/^/| /' conftest.$ac_ext >&5
18256
18257ac_lo=`expr '(' $ac_mid ')' + 1`
18258fi
ac1cb8d3 18259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18260done
18261case $ac_lo in
18262?*) ac_cv_sizeof_long_long=$ac_lo;;
18263'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18264See \`config.log' for more details." >&5
18265echo "$as_me: error: cannot compute sizeof (long long), 77
18266See \`config.log' for more details." >&2;}
18267 { (exit 1); exit 1; }; } ;;
18268esac
18269else
18270 if test "$cross_compiling" = yes; then
da4486fb
VZ
18271 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18272echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18273 { (exit 1); exit 1; }; }
18274else
18275 cat >conftest.$ac_ext <<_ACEOF
18276/* confdefs.h. */
18277_ACEOF
18278cat confdefs.h >>conftest.$ac_ext
18279cat >>conftest.$ac_ext <<_ACEOF
18280/* end confdefs.h. */
18281$ac_includes_default
18282long longval () { return (long) (sizeof (long long)); }
18283unsigned long ulongval () { return (long) (sizeof (long long)); }
18284#include <stdio.h>
18285#include <stdlib.h>
18286int
18287main ()
18288{
18289
18290 FILE *f = fopen ("conftest.val", "w");
18291 if (! f)
18292 exit (1);
18293 if (((long) (sizeof (long long))) < 0)
18294 {
18295 long i = longval ();
18296 if (i != ((long) (sizeof (long long))))
18297 exit (1);
18298 fprintf (f, "%ld\n", i);
18299 }
18300 else
18301 {
18302 unsigned long i = ulongval ();
18303 if (i != ((long) (sizeof (long long))))
18304 exit (1);
18305 fprintf (f, "%lu\n", i);
18306 }
18307 exit (ferror (f) || fclose (f) != 0);
18308
18309 ;
18310 return 0;
18311}
18312_ACEOF
18313rm -f conftest$ac_exeext
18314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18315 (eval $ac_link) 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; }; then
18324 ac_cv_sizeof_long_long=`cat conftest.val`
18325else
18326 echo "$as_me: program exited with status $ac_status" >&5
18327echo "$as_me: failed program was:" >&5
18328sed 's/^/| /' conftest.$ac_ext >&5
18329
18330( exit $ac_status )
18331{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18332See \`config.log' for more details." >&5
18333echo "$as_me: error: cannot compute sizeof (long long), 77
18334See \`config.log' for more details." >&2;}
18335 { (exit 1); exit 1; }; }
18336fi
ac1cb8d3 18337rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18338fi
18339fi
18340rm -f conftest.val
18341else
18342 ac_cv_sizeof_long_long=0
18343fi
18344fi
18345echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18346echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18347cat >>confdefs.h <<_ACEOF
18348#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18349_ACEOF
18350
18351
18352esac
18353
18354echo "$as_me:$LINENO: checking size of wchar_t" >&5
18355echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18356if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18357 echo $ECHO_N "(cached) $ECHO_C" >&6
18358else
18359
18360 if test "$cross_compiling" = yes; then
18361
18362 case "${host}" in
18363 *-pc-msdosdjgpp )
18364 wx_cv_sizeof_wchar_t=0
18365 ;;
18366 * )
18367 wx_cv_sizeof_wchar_t=4
18368 ;;
18369 esac
18370
18371
18372else
18373 cat >conftest.$ac_ext <<_ACEOF
18374/* confdefs.h. */
18375_ACEOF
18376cat confdefs.h >>conftest.$ac_ext
18377cat >>conftest.$ac_ext <<_ACEOF
18378/* end confdefs.h. */
18379
18380 /* DJGPP only has fake wchar_t: */
18381 #ifdef __DJGPP__
18382 # error "fake wchar_t"
18383 #endif
18384 #ifdef HAVE_WCHAR_H
18385 # ifdef __CYGWIN__
18386 # include <stddef.h>
18387 # endif
18388 # include <wchar.h>
18389 #endif
18390 #ifdef HAVE_STDLIB_H
18391 # include <stdlib.h>
18392 #endif
18393 #include <stdio.h>
18394 int main()
18395 {
18396 FILE *f=fopen("conftestval", "w");
18397 if (!f) exit(1);
18398 fprintf(f, "%i", sizeof(wchar_t));
18399 exit(0);
18400 }
18401
18402_ACEOF
18403rm -f conftest$ac_exeext
18404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18405 (eval $ac_link) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18414 wx_cv_sizeof_wchar_t=`cat conftestval`
18415else
18416 echo "$as_me: program exited with status $ac_status" >&5
18417echo "$as_me: failed program was:" >&5
18418sed 's/^/| /' conftest.$ac_ext >&5
18419
18420( exit $ac_status )
18421wx_cv_sizeof_wchar_t=0
18422fi
ac1cb8d3 18423rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18424fi
18425
18426fi
18427echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18428echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18429
18430cat >>confdefs.h <<_ACEOF
18431#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18432_ACEOF
18433
18434
ba3d13e1
VZ
18435echo "$as_me:$LINENO: checking for va_copy" >&5
18436echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18437if test "${wx_cv_func_va_copy+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18439else
18440
18441 cat >conftest.$ac_ext <<_ACEOF
18442
18443 #include <stdarg.h>
18444 void foo(char *f, ...)
18445 {
18446 va_list ap1, ap2;
18447 va_start(ap1, f);
18448 va_copy(ap2, ap1);
18449 va_end(ap2);
18450 va_end(ap1);
18451 }
5886b072
VZ
18452 int main()
18453 {
b902e639
VZ
18454 foo("hi", 17);
18455 return 0;
5886b072 18456 }
ba3d13e1
VZ
18457_ACEOF
18458rm -f conftest.$ac_objext conftest$ac_exeext
18459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18460 (eval $ac_link) 2>conftest.er1
18461 ac_status=$?
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
da4486fb 18467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; } &&
18473 { ac_try='test -s conftest$ac_exeext'
18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18476 ac_status=$?
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 wx_cv_func_va_copy=yes
18480else
18481 echo "$as_me: failed program was:" >&5
18482sed 's/^/| /' conftest.$ac_ext >&5
18483
18484wx_cv_func_va_copy=no
18485
18486fi
18487rm -f conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489
18490
18491fi
18492echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18493echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18494
18495if test $wx_cv_func_va_copy = "yes"; then
18496 cat >>confdefs.h <<\_ACEOF
18497#define HAVE_VA_COPY 1
18498_ACEOF
18499
18500else
18501 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18502echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18503if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18505else
18506
18507 if test "$cross_compiling" = yes; then
18508 wx_cv_type_va_list_lvalue=yes
18509
18510else
18511 cat >conftest.$ac_ext <<_ACEOF
18512
18513 #include <stdarg.h>
18514 int foo(char *f, ...)
18515 {
18516 va_list ap1, ap2;
18517 va_start(ap1, f);
18518 ap2 = ap1;
18519 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18520 return 1;
18521 va_end(ap2);
18522 va_end(ap1);
18523 return 0;
18524 }
18525 int main()
18526 {
18527 return foo("hi", 17);
18528 }
18529_ACEOF
18530rm -f conftest$ac_exeext
18531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18532 (eval $ac_link) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 wx_cv_type_va_list_lvalue=yes
18542else
18543 echo "$as_me: program exited with status $ac_status" >&5
18544echo "$as_me: failed program was:" >&5
18545sed 's/^/| /' conftest.$ac_ext >&5
18546
18547( exit $ac_status )
18548wx_cv_type_va_list_lvalue=no
18549fi
18550rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18551fi
18552
18553
18554fi
18555echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18556echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18557
18558 if test $wx_cv_type_va_list_lvalue != "yes"; then
18559 cat >>confdefs.h <<\_ACEOF
18560#define VA_LIST_IS_ARRAY 1
18561_ACEOF
18562
18563 fi
18564fi
18565
a848cd7e
SC
18566# Check whether --enable-largefile or --disable-largefile was given.
18567if test "${enable_largefile+set}" = set; then
18568 enableval="$enable_largefile"
18569
18570fi;
18571if test "$enable_largefile" != no; then
18572 wx_largefile=no
18573
18574 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18575echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18576if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578else
18579
18580 cat >conftest.$ac_ext <<_ACEOF
18581/* confdefs.h. */
18582_ACEOF
18583cat confdefs.h >>conftest.$ac_ext
18584cat >>conftest.$ac_ext <<_ACEOF
18585/* end confdefs.h. */
18586#define _FILE_OFFSET_BITS 64
18587 #include <sys/types.h>
18588int
18589main ()
18590{
18591typedef struct {
18592 unsigned int field: sizeof(off_t) == 8;
18593} wxlf;
18594
18595 ;
18596 return 0;
18597}
18598_ACEOF
18599rm -f conftest.$ac_objext
18600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18601 (eval $ac_compile) 2>conftest.er1
a848cd7e 18602 ac_status=$?
ac1cb8d3
VS
18603 grep -v '^ *+' conftest.er1 >conftest.err
18604 rm -f conftest.er1
18605 cat conftest.err >&5
a848cd7e
SC
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } &&
da4486fb 18608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; } &&
18614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
18620 ac_cv_sys_file_offset_bits=64
18621else
18622 echo "$as_me: failed program was:" >&5
18623sed 's/^/| /' conftest.$ac_ext >&5
18624
18625ac_cv_sys_file_offset_bits=no
18626fi
ac1cb8d3 18627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18628
18629
18630fi
18631echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18632echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18633
18634 if test "$ac_cv_sys_file_offset_bits" != no; then
18635 wx_largefile=yes
18636 cat >>confdefs.h <<_ACEOF
18637#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18638_ACEOF
18639
18640 fi
18641
18642 if test "x$wx_largefile" != "xyes"; then
18643
18644 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18645echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18646if test "${ac_cv_sys_large_files+set}" = set; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18648else
18649
18650 cat >conftest.$ac_ext <<_ACEOF
18651/* confdefs.h. */
18652_ACEOF
18653cat confdefs.h >>conftest.$ac_ext
18654cat >>conftest.$ac_ext <<_ACEOF
18655/* end confdefs.h. */
18656#define _LARGE_FILES 1
18657 #include <sys/types.h>
18658int
18659main ()
18660{
18661typedef struct {
18662 unsigned int field: sizeof(off_t) == 8;
18663} wxlf;
18664
18665 ;
18666 return 0;
18667}
18668_ACEOF
18669rm -f conftest.$ac_objext
18670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18671 (eval $ac_compile) 2>conftest.er1
a848cd7e 18672 ac_status=$?
ac1cb8d3
VS
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
a848cd7e
SC
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
da4486fb 18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; } &&
18684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 ac_cv_sys_large_files=1
18691else
18692 echo "$as_me: failed program was:" >&5
18693sed 's/^/| /' conftest.$ac_ext >&5
18694
18695ac_cv_sys_large_files=no
18696fi
ac1cb8d3 18697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18698
18699
18700fi
18701echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18702echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18703
18704 if test "$ac_cv_sys_large_files" != no; then
18705 wx_largefile=yes
18706 cat >>confdefs.h <<_ACEOF
18707#define _LARGE_FILES $ac_cv_sys_large_files
18708_ACEOF
18709
18710 fi
18711
18712 fi
18713
18714 echo "$as_me:$LINENO: checking if large file support is available" >&5
18715echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18716 if test "x$wx_largefile" = "xyes"; then
18717 cat >>confdefs.h <<\_ACEOF
18718#define HAVE_LARGEFILE_SUPPORT 1
18719_ACEOF
18720
18721 fi
18722 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18723echo "${ECHO_T}$wx_largefile" >&6
18724fi
18725
5b674b9d
DE
18726
18727if test "x$wx_largefile" = "xyes"; then
18728 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18729 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18730 else
18731 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18732 fi
18733 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
18734echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18735if test "${ac_cv_sys_largefile_source+set}" = set; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18737else
18738 while :; do
18739 ac_cv_sys_largefile_source=no
18740 cat >conftest.$ac_ext <<_ACEOF
18741/* confdefs.h. */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
18745/* end confdefs.h. */
18746#include <stdio.h>
18747int
18748main ()
18749{
18750return !fseeko;
18751 ;
18752 return 0;
18753}
18754_ACEOF
18755rm -f conftest.$ac_objext
18756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18757 (eval $ac_compile) 2>conftest.er1
18758 ac_status=$?
18759 grep -v '^ *+' conftest.er1 >conftest.err
18760 rm -f conftest.er1
18761 cat conftest.err >&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } &&
da4486fb 18764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest.$ac_objext'
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 break
18777else
18778 echo "$as_me: failed program was:" >&5
18779sed 's/^/| /' conftest.$ac_ext >&5
18780
18781fi
18782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18783 cat >conftest.$ac_ext <<_ACEOF
18784/* confdefs.h. */
18785_ACEOF
18786cat confdefs.h >>conftest.$ac_ext
18787cat >>conftest.$ac_ext <<_ACEOF
18788/* end confdefs.h. */
18789#define _LARGEFILE_SOURCE 1
18790#include <stdio.h>
18791int
18792main ()
18793{
18794return !fseeko;
18795 ;
18796 return 0;
18797}
18798_ACEOF
18799rm -f conftest.$ac_objext
18800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18801 (eval $ac_compile) 2>conftest.er1
18802 ac_status=$?
18803 grep -v '^ *+' conftest.er1 >conftest.err
18804 rm -f conftest.er1
18805 cat conftest.err >&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } &&
da4486fb 18808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
18809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810 (eval $ac_try) 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; } &&
18814 { ac_try='test -s conftest.$ac_objext'
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 ac_cv_sys_largefile_source=1; break
18821else
18822 echo "$as_me: failed program was:" >&5
18823sed 's/^/| /' conftest.$ac_ext >&5
18824
18825fi
18826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18827 break
18828done
18829fi
18830echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18831echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
18832if test "$ac_cv_sys_largefile_source" != no; then
18833
18834cat >>confdefs.h <<_ACEOF
18835#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18836_ACEOF
18837
18838fi
18839rm -f conftest*
18840
18841# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18842# in glibc 2.1.3, but that breaks too many other things.
18843# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18844echo "$as_me:$LINENO: checking for fseeko" >&5
18845echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18846if test "${ac_cv_func_fseeko+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18848else
18849 cat >conftest.$ac_ext <<_ACEOF
18850/* confdefs.h. */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h. */
18855#include <stdio.h>
18856int
18857main ()
18858{
18859return fseeko && fseeko (stdin, 0, 0);
18860 ;
18861 return 0;
18862}
18863_ACEOF
18864rm -f conftest.$ac_objext conftest$ac_exeext
18865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18866 (eval $ac_link) 2>conftest.er1
18867 ac_status=$?
18868 grep -v '^ *+' conftest.er1 >conftest.err
18869 rm -f conftest.er1
18870 cat conftest.err >&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } &&
da4486fb 18873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; } &&
18879 { ac_try='test -s conftest$ac_exeext'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18885 ac_cv_func_fseeko=yes
18886else
18887 echo "$as_me: failed program was:" >&5
18888sed 's/^/| /' conftest.$ac_ext >&5
18889
18890ac_cv_func_fseeko=no
18891fi
18892rm -f conftest.err conftest.$ac_objext \
18893 conftest$ac_exeext conftest.$ac_ext
18894fi
18895echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
18896echo "${ECHO_T}$ac_cv_func_fseeko" >&6
18897if test $ac_cv_func_fseeko = yes; then
18898
18899cat >>confdefs.h <<\_ACEOF
18900#define HAVE_FSEEKO 1
18901_ACEOF
18902
18903fi
18904
5b674b9d
DE
18905 if test "$ac_cv_sys_largefile_source" != no; then
18906 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
18907 fi
18908 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18909fi
18910
18911echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18912echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18913if test "${ac_cv_c_bigendian+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915else
18916 ac_cv_c_bigendian=unknown
18917# See if sys/param.h defines the BYTE_ORDER macro.
18918cat >conftest.$ac_ext <<_ACEOF
18919/* confdefs.h. */
18920_ACEOF
18921cat confdefs.h >>conftest.$ac_ext
18922cat >>conftest.$ac_ext <<_ACEOF
18923/* end confdefs.h. */
18924#include <sys/types.h>
18925#include <sys/param.h>
18926int
18927main ()
18928{
18929
18930#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18931 bogus endian macros
18932#endif
18933 ;
18934 return 0;
18935}
18936_ACEOF
18937rm -f conftest.$ac_objext
18938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18939 (eval $ac_compile) 2>conftest.er1
a848cd7e 18940 ac_status=$?
ac1cb8d3
VS
18941 grep -v '^ *+' conftest.er1 >conftest.err
18942 rm -f conftest.er1
18943 cat conftest.err >&5
a848cd7e
SC
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } &&
da4486fb 18946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; } &&
18952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; }; then
18958 # It does; now see whether it defined to BIG_ENDIAN or not.
18959cat >conftest.$ac_ext <<_ACEOF
18960/* confdefs.h. */
18961_ACEOF
18962cat confdefs.h >>conftest.$ac_ext
18963cat >>conftest.$ac_ext <<_ACEOF
18964/* end confdefs.h. */
18965#include <sys/types.h>
18966#include <sys/param.h>
18967int
18968main ()
18969{
18970
18971#if BYTE_ORDER != BIG_ENDIAN
18972 not big endian
18973#endif
18974 ;
18975 return 0;
18976}
18977_ACEOF
18978rm -f conftest.$ac_objext
18979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18980 (eval $ac_compile) 2>conftest.er1
a848cd7e 18981 ac_status=$?
ac1cb8d3
VS
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
a848cd7e
SC
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
da4486fb 18987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; } &&
18993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; }; then
18999 ac_cv_c_bigendian=yes
19000else
19001 echo "$as_me: failed program was:" >&5
19002sed 's/^/| /' conftest.$ac_ext >&5
19003
19004ac_cv_c_bigendian=no
19005fi
ac1cb8d3 19006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19007else
19008 echo "$as_me: failed program was:" >&5
19009sed 's/^/| /' conftest.$ac_ext >&5
19010
19011fi
ac1cb8d3 19012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19013if test $ac_cv_c_bigendian = unknown; then
19014if test "$cross_compiling" = yes; then
19015 ac_cv_c_bigendian=unknown
19016else
19017 cat >conftest.$ac_ext <<_ACEOF
19018/* confdefs.h. */
19019_ACEOF
19020cat confdefs.h >>conftest.$ac_ext
19021cat >>conftest.$ac_ext <<_ACEOF
19022/* end confdefs.h. */
19023main () {
19024 /* Are we little or big endian? From Harbison&Steele. */
19025 union
19026 {
19027 long l;
19028 char c[sizeof (long)];
19029 } u;
19030 u.l = 1;
19031 exit (u.c[sizeof (long) - 1] == 1);
19032}
19033_ACEOF
19034rm -f conftest$ac_exeext
19035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036 (eval $ac_link) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 ac_cv_c_bigendian=no
19046else
19047 echo "$as_me: program exited with status $ac_status" >&5
19048echo "$as_me: failed program was:" >&5
19049sed 's/^/| /' conftest.$ac_ext >&5
19050
19051( exit $ac_status )
19052ac_cv_c_bigendian=yes
19053fi
ac1cb8d3 19054rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19055fi
19056fi
19057fi
19058echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19059echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19060if test $ac_cv_c_bigendian = unknown; then
19061 { 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
19062echo "$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;}
19063fi
19064if test $ac_cv_c_bigendian = yes; then
19065 cat >>confdefs.h <<\_ACEOF
19066#define WORDS_BIGENDIAN 1
19067_ACEOF
19068
19069fi
19070
19071
19072ac_ext=cc
19073ac_cpp='$CXXCPP $CPPFLAGS'
19074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19077echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19078echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19079if test -z "$CXXCPP"; then
19080 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082else
19083 # Double quotes because CXXCPP needs to be expanded
19084 for CXXCPP in "$CXX -E" "/lib/cpp"
19085 do
19086 ac_preproc_ok=false
19087for ac_cxx_preproc_warn_flag in '' yes
19088do
19089 # Use a header file that comes with gcc, so configuring glibc
19090 # with a fresh cross-compiler works.
19091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19092 # <limits.h> exists even on freestanding compilers.
19093 # On the NeXT, cc -E runs the code through the compiler's parser,
19094 # not just through cpp. "Syntax error" is here to catch this case.
19095 cat >conftest.$ac_ext <<_ACEOF
19096/* confdefs.h. */
19097_ACEOF
19098cat confdefs.h >>conftest.$ac_ext
19099cat >>conftest.$ac_ext <<_ACEOF
19100/* end confdefs.h. */
19101#ifdef __STDC__
19102# include <limits.h>
19103#else
19104# include <assert.h>
19105#endif
ac1cb8d3 19106 Syntax error
a848cd7e
SC
19107_ACEOF
19108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19110 ac_status=$?
19111 grep -v '^ *+' conftest.er1 >conftest.err
19112 rm -f conftest.er1
19113 cat conftest.err >&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } >/dev/null; then
19116 if test -s conftest.err; then
19117 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19118 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19119 else
19120 ac_cpp_err=
19121 fi
19122else
19123 ac_cpp_err=yes
19124fi
19125if test -z "$ac_cpp_err"; then
19126 :
19127else
19128 echo "$as_me: failed program was:" >&5
19129sed 's/^/| /' conftest.$ac_ext >&5
19130
19131 # Broken: fails on valid input.
19132continue
19133fi
19134rm -f conftest.err conftest.$ac_ext
19135
19136 # OK, works on sane cases. Now check whether non-existent headers
19137 # can be detected and how.
19138 cat >conftest.$ac_ext <<_ACEOF
19139/* confdefs.h. */
19140_ACEOF
19141cat confdefs.h >>conftest.$ac_ext
19142cat >>conftest.$ac_ext <<_ACEOF
19143/* end confdefs.h. */
19144#include <ac_nonexistent.h>
19145_ACEOF
19146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } >/dev/null; then
19154 if test -s conftest.err; then
19155 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19156 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19157 else
19158 ac_cpp_err=
19159 fi
19160else
19161 ac_cpp_err=yes
19162fi
19163if test -z "$ac_cpp_err"; then
19164 # Broken: success on invalid input.
19165continue
19166else
19167 echo "$as_me: failed program was:" >&5
19168sed 's/^/| /' conftest.$ac_ext >&5
19169
19170 # Passes both tests.
19171ac_preproc_ok=:
19172break
19173fi
19174rm -f conftest.err conftest.$ac_ext
19175
19176done
19177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19178rm -f conftest.err conftest.$ac_ext
19179if $ac_preproc_ok; then
19180 break
19181fi
19182
19183 done
19184 ac_cv_prog_CXXCPP=$CXXCPP
19185
19186fi
19187 CXXCPP=$ac_cv_prog_CXXCPP
19188else
19189 ac_cv_prog_CXXCPP=$CXXCPP
19190fi
19191echo "$as_me:$LINENO: result: $CXXCPP" >&5
19192echo "${ECHO_T}$CXXCPP" >&6
19193ac_preproc_ok=false
19194for ac_cxx_preproc_warn_flag in '' yes
19195do
19196 # Use a header file that comes with gcc, so configuring glibc
19197 # with a fresh cross-compiler works.
19198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19199 # <limits.h> exists even on freestanding compilers.
19200 # On the NeXT, cc -E runs the code through the compiler's parser,
19201 # not just through cpp. "Syntax error" is here to catch this case.
19202 cat >conftest.$ac_ext <<_ACEOF
19203/* confdefs.h. */
19204_ACEOF
19205cat confdefs.h >>conftest.$ac_ext
19206cat >>conftest.$ac_ext <<_ACEOF
19207/* end confdefs.h. */
19208#ifdef __STDC__
19209# include <limits.h>
19210#else
19211# include <assert.h>
19212#endif
ac1cb8d3 19213 Syntax error
a848cd7e
SC
19214_ACEOF
19215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } >/dev/null; then
19223 if test -s conftest.err; then
19224 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19225 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19226 else
19227 ac_cpp_err=
19228 fi
19229else
19230 ac_cpp_err=yes
19231fi
19232if test -z "$ac_cpp_err"; then
19233 :
19234else
19235 echo "$as_me: failed program was:" >&5
19236sed 's/^/| /' conftest.$ac_ext >&5
19237
19238 # Broken: fails on valid input.
19239continue
19240fi
19241rm -f conftest.err conftest.$ac_ext
19242
19243 # OK, works on sane cases. Now check whether non-existent headers
19244 # can be detected and how.
19245 cat >conftest.$ac_ext <<_ACEOF
19246/* confdefs.h. */
19247_ACEOF
19248cat confdefs.h >>conftest.$ac_ext
19249cat >>conftest.$ac_ext <<_ACEOF
19250/* end confdefs.h. */
19251#include <ac_nonexistent.h>
19252_ACEOF
19253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19255 ac_status=$?
19256 grep -v '^ *+' conftest.er1 >conftest.err
19257 rm -f conftest.er1
19258 cat conftest.err >&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } >/dev/null; then
19261 if test -s conftest.err; then
19262 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19263 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19264 else
19265 ac_cpp_err=
19266 fi
19267else
19268 ac_cpp_err=yes
19269fi
19270if test -z "$ac_cpp_err"; then
19271 # Broken: success on invalid input.
19272continue
19273else
19274 echo "$as_me: failed program was:" >&5
19275sed 's/^/| /' conftest.$ac_ext >&5
19276
19277 # Passes both tests.
19278ac_preproc_ok=:
19279break
19280fi
19281rm -f conftest.err conftest.$ac_ext
19282
19283done
19284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19285rm -f conftest.err conftest.$ac_ext
19286if $ac_preproc_ok; then
19287 :
19288else
19289 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19290See \`config.log' for more details." >&5
19291echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19292See \`config.log' for more details." >&2;}
19293 { (exit 1); exit 1; }; }
19294fi
19295
19296ac_ext=cc
19297ac_cpp='$CXXCPP $CPPFLAGS'
19298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19301
19302
19303
19304
19305
19306 ac_ext=cc
19307ac_cpp='$CXXCPP $CPPFLAGS'
19308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19311
19312
19313
19314for ac_header in iostream
19315do
19316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19317if eval "test \"\${$as_ac_Header+set}\" = set"; then
19318 echo "$as_me:$LINENO: checking for $ac_header" >&5
19319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19320if eval "test \"\${$as_ac_Header+set}\" = set"; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322fi
19323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19325else
19326 # Is the header compilable?
19327echo "$as_me:$LINENO: checking $ac_header usability" >&5
19328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19329cat >conftest.$ac_ext <<_ACEOF
19330/* confdefs.h. */
19331_ACEOF
19332cat confdefs.h >>conftest.$ac_ext
19333cat >>conftest.$ac_ext <<_ACEOF
19334/* end confdefs.h. */
19335$ac_includes_default
19336#include <$ac_header>
19337_ACEOF
19338rm -f conftest.$ac_objext
19339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19340 (eval $ac_compile) 2>conftest.er1
a848cd7e 19341 ac_status=$?
ac1cb8d3
VS
19342 grep -v '^ *+' conftest.er1 >conftest.err
19343 rm -f conftest.er1
19344 cat conftest.err >&5
a848cd7e
SC
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } &&
da4486fb 19347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; } &&
19353 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; }; then
19359 ac_header_compiler=yes
19360else
19361 echo "$as_me: failed program was:" >&5
19362sed 's/^/| /' conftest.$ac_ext >&5
19363
19364ac_header_compiler=no
19365fi
ac1cb8d3 19366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19367echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19368echo "${ECHO_T}$ac_header_compiler" >&6
19369
19370# Is the header present?
19371echo "$as_me:$LINENO: checking $ac_header presence" >&5
19372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19373cat >conftest.$ac_ext <<_ACEOF
19374/* confdefs.h. */
19375_ACEOF
19376cat confdefs.h >>conftest.$ac_ext
19377cat >>conftest.$ac_ext <<_ACEOF
19378/* end confdefs.h. */
19379#include <$ac_header>
19380_ACEOF
19381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } >/dev/null; then
19389 if test -s conftest.err; then
19390 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19391 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19392 else
19393 ac_cpp_err=
19394 fi
19395else
19396 ac_cpp_err=yes
19397fi
19398if test -z "$ac_cpp_err"; then
19399 ac_header_preproc=yes
19400else
19401 echo "$as_me: failed program was:" >&5
19402sed 's/^/| /' conftest.$ac_ext >&5
19403
19404 ac_header_preproc=no
19405fi
19406rm -f conftest.err conftest.$ac_ext
19407echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19408echo "${ECHO_T}$ac_header_preproc" >&6
19409
19410# So? What about this header?
ac1cb8d3
VS
19411case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19412 yes:no: )
a848cd7e
SC
19413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19414echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19416echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19417 ac_header_preproc=yes
a848cd7e 19418 ;;
ac1cb8d3 19419 no:yes:* )
a848cd7e
SC
19420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19425echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19427echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19431echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19432 (
19433 cat <<\_ASBOX
ac1cb8d3
VS
19434## ----------------------------------------- ##
19435## Report this to wx-dev@lists.wxwidgets.org ##
19436## ----------------------------------------- ##
a848cd7e
SC
19437_ASBOX
19438 ) |
19439 sed "s/^/$as_me: WARNING: /" >&2
19440 ;;
19441esac
19442echo "$as_me:$LINENO: checking for $ac_header" >&5
19443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19444if eval "test \"\${$as_ac_Header+set}\" = set"; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19446else
ac1cb8d3 19447 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19448fi
19449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19451
19452fi
19453if test `eval echo '${'$as_ac_Header'}'` = yes; then
19454 cat >>confdefs.h <<_ACEOF
19455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19456_ACEOF
19457
19458fi
19459
19460done
19461
19462
19463 if test "$ac_cv_header_iostream" = "yes" ; then
19464 :
19465 else
19466 cat >>confdefs.h <<\_ACEOF
19467#define wxUSE_IOSTREAMH 1
19468_ACEOF
19469
19470 fi
19471
19472 ac_ext=c
19473ac_cpp='$CPP $CPPFLAGS'
19474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19476ac_compiler_gnu=$ac_cv_c_compiler_gnu
19477
19478
19479
19480
19481 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19482echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19483if test "${wx_cv_cpp_bool+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19485else
19486
19487
19488
19489 ac_ext=cc
19490ac_cpp='$CXXCPP $CPPFLAGS'
19491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19494
19495
19496 cat >conftest.$ac_ext <<_ACEOF
19497/* confdefs.h. */
19498_ACEOF
19499cat confdefs.h >>conftest.$ac_ext
19500cat >>conftest.$ac_ext <<_ACEOF
19501/* end confdefs.h. */
19502
19503
19504int
19505main ()
19506{
19507
19508 bool b = true;
19509
19510 return 0;
19511
19512 ;
19513 return 0;
19514}
19515_ACEOF
19516rm -f conftest.$ac_objext
19517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19518 (eval $ac_compile) 2>conftest.er1
a848cd7e 19519 ac_status=$?
ac1cb8d3
VS
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
a848cd7e
SC
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
da4486fb 19525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } &&
19531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537
19538 wx_cv_cpp_bool=yes
19539
19540else
19541 echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544
19545 wx_cv_cpp_bool=no
19546
19547
19548fi
ac1cb8d3 19549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19550
19551 ac_ext=c
19552ac_cpp='$CPP $CPPFLAGS'
19553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19555ac_compiler_gnu=$ac_cv_c_compiler_gnu
19556
19557
19558fi
19559echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19560echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19561
19562 if test "$wx_cv_cpp_bool" = "yes"; then
19563 cat >>confdefs.h <<\_ACEOF
19564#define HAVE_BOOL 1
19565_ACEOF
19566
19567 fi
19568
19569
19570
19571 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19572echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19573if test "${wx_cv_explicit+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575else
19576
19577
19578
19579 ac_ext=cc
19580ac_cpp='$CXXCPP $CPPFLAGS'
19581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19584
19585
19586 cat >conftest.$ac_ext <<_ACEOF
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
19592
19593 class Foo { public: explicit Foo(int) {} };
19594
19595int
19596main ()
19597{
19598
19599 return 0;
19600
19601 ;
19602 return 0;
19603}
19604_ACEOF
19605rm -f conftest.$ac_objext
19606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19607 (eval $ac_compile) 2>conftest.er1
a848cd7e 19608 ac_status=$?
ac1cb8d3
VS
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
a848cd7e
SC
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
da4486fb 19614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; } &&
19620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622 (eval $ac_try) 2>&5
19623 ac_status=$?
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; }; then
19626
19627 cat >conftest.$ac_ext <<_ACEOF
19628/* confdefs.h. */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h. */
19633
19634 class Foo { public: explicit Foo(int) {} };
19635 static void TakeFoo(const Foo& foo) { }
19636
19637int
19638main ()
19639{
19640
19641 TakeFoo(17);
19642 return 0;
19643
19644 ;
19645 return 0;
19646}
19647_ACEOF
19648rm -f conftest.$ac_objext
19649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19650 (eval $ac_compile) 2>conftest.er1
a848cd7e 19651 ac_status=$?
ac1cb8d3
VS
19652 grep -v '^ *+' conftest.er1 >conftest.err
19653 rm -f conftest.er1
19654 cat conftest.err >&5
a848cd7e
SC
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } &&
da4486fb 19657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19669 wx_cv_explicit=no
19670else
19671 echo "$as_me: failed program was:" >&5
19672sed 's/^/| /' conftest.$ac_ext >&5
19673
19674wx_cv_explicit=yes
19675
19676fi
ac1cb8d3 19677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19678
19679else
19680 echo "$as_me: failed program was:" >&5
19681sed 's/^/| /' conftest.$ac_ext >&5
19682
19683wx_cv_explicit=no
19684
19685fi
ac1cb8d3 19686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19687
19688 ac_ext=c
19689ac_cpp='$CPP $CPPFLAGS'
19690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19692ac_compiler_gnu=$ac_cv_c_compiler_gnu
19693
19694
19695fi
19696echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19697echo "${ECHO_T}$wx_cv_explicit" >&6
19698
19699 if test "$wx_cv_explicit" = "yes"; then
19700 cat >>confdefs.h <<\_ACEOF
19701#define HAVE_EXPLICIT 1
19702_ACEOF
19703
19704 fi
19705
19706
19707echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19708echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19709if test "${ac_cv_cxx_const_cast+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19711else
19712
19713
19714 ac_ext=cc
19715ac_cpp='$CXXCPP $CPPFLAGS'
19716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19719
19720 cat >conftest.$ac_ext <<_ACEOF
19721/* confdefs.h. */
19722_ACEOF
19723cat confdefs.h >>conftest.$ac_ext
19724cat >>conftest.$ac_ext <<_ACEOF
19725/* end confdefs.h. */
19726
19727int
19728main ()
19729{
19730int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19731 ;
19732 return 0;
19733}
19734_ACEOF
19735rm -f conftest.$ac_objext
19736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19737 (eval $ac_compile) 2>conftest.er1
a848cd7e 19738 ac_status=$?
ac1cb8d3
VS
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
a848cd7e
SC
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
da4486fb 19744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; } &&
19750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752 (eval $ac_try) 2>&5
19753 ac_status=$?
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }; }; then
19756 ac_cv_cxx_const_cast=yes
19757else
19758 echo "$as_me: failed program was:" >&5
19759sed 's/^/| /' conftest.$ac_ext >&5
19760
19761ac_cv_cxx_const_cast=no
19762fi
ac1cb8d3 19763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19764 ac_ext=c
19765ac_cpp='$CPP $CPPFLAGS'
19766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768ac_compiler_gnu=$ac_cv_c_compiler_gnu
19769
19770
19771fi
19772echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19773echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19774if test "$ac_cv_cxx_const_cast" = yes; then
19775
19776cat >>confdefs.h <<\_ACEOF
19777#define HAVE_CONST_CAST
19778_ACEOF
19779
19780fi
19781
7714864e
RL
19782echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19783echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19784if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786else
19787
19788
19789 ac_ext=cc
19790ac_cpp='$CXXCPP $CPPFLAGS'
19791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19794
19795 cat >conftest.$ac_ext <<_ACEOF
19796/* confdefs.h. */
19797_ACEOF
19798cat confdefs.h >>conftest.$ac_ext
19799cat >>conftest.$ac_ext <<_ACEOF
19800/* end confdefs.h. */
19801#include <typeinfo>
19802class Base { public : Base () {} virtual void f () = 0;};
19803class Derived : public Base { public : Derived () {} virtual void f () {} };
19804class Unrelated { public : Unrelated () {} };
19805int g (Unrelated&) { return 0; }
19806int
19807main ()
19808{
19809
19810Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19811 ;
19812 return 0;
19813}
19814_ACEOF
19815rm -f conftest.$ac_objext
19816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19817 (eval $ac_compile) 2>conftest.er1
19818 ac_status=$?
19819 grep -v '^ *+' conftest.er1 >conftest.err
19820 rm -f conftest.er1
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
da4486fb 19824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; } &&
19830 { ac_try='test -s conftest.$ac_objext'
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836 ac_cv_cxx_reinterpret_cast=yes
19837else
19838 echo "$as_me: failed program was:" >&5
19839sed 's/^/| /' conftest.$ac_ext >&5
19840
19841ac_cv_cxx_reinterpret_cast=no
19842fi
19843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19844 ac_ext=c
19845ac_cpp='$CPP $CPPFLAGS'
19846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848ac_compiler_gnu=$ac_cv_c_compiler_gnu
19849
19850
19851fi
19852echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19853echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19854if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19855
19856cat >>confdefs.h <<\_ACEOF
19857#define HAVE_REINTERPRET_CAST
19858_ACEOF
19859
19860fi
19861
a848cd7e
SC
19862echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19863echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19864if test "${ac_cv_cxx_static_cast+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19866else
19867
19868
19869 ac_ext=cc
19870ac_cpp='$CXXCPP $CPPFLAGS'
19871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19874
19875 cat >conftest.$ac_ext <<_ACEOF
19876/* confdefs.h. */
19877_ACEOF
19878cat confdefs.h >>conftest.$ac_ext
19879cat >>conftest.$ac_ext <<_ACEOF
19880/* end confdefs.h. */
19881#include <typeinfo>
19882class Base { public : Base () {} virtual void f () = 0; };
19883class Derived : public Base { public : Derived () {} virtual void f () {} };
19884int g (Derived&) { return 0; }
19885int
19886main ()
19887{
19888
19889Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19890 ;
19891 return 0;
19892}
19893_ACEOF
19894rm -f conftest.$ac_objext
19895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19896 (eval $ac_compile) 2>conftest.er1
a848cd7e 19897 ac_status=$?
ac1cb8d3
VS
19898 grep -v '^ *+' conftest.er1 >conftest.err
19899 rm -f conftest.er1
19900 cat conftest.err >&5
a848cd7e
SC
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } &&
da4486fb 19903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19906 ac_status=$?
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; } &&
19909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; }; then
19915 ac_cv_cxx_static_cast=yes
19916else
19917 echo "$as_me: failed program was:" >&5
19918sed 's/^/| /' conftest.$ac_ext >&5
19919
19920ac_cv_cxx_static_cast=no
19921fi
ac1cb8d3 19922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19923 ac_ext=c
19924ac_cpp='$CPP $CPPFLAGS'
19925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19927ac_compiler_gnu=$ac_cv_c_compiler_gnu
19928
19929
19930fi
19931echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19932echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19933if test "$ac_cv_cxx_static_cast" = yes; then
19934
19935cat >>confdefs.h <<\_ACEOF
19936#define HAVE_STATIC_CAST
19937_ACEOF
19938
19939fi
19940
19941
19942if test "$wxUSE_STL" = "yes"; then
19943 ac_ext=cc
19944ac_cpp='$CXXCPP $CPPFLAGS'
19945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19948
19949
19950 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19951echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19952 cat >conftest.$ac_ext <<_ACEOF
19953/* confdefs.h. */
19954_ACEOF
19955cat confdefs.h >>conftest.$ac_ext
19956cat >>conftest.$ac_ext <<_ACEOF
19957/* end confdefs.h. */
19958#include <string>
19959 #include <functional>
19960 #include <algorithm>
19961 #include <vector>
19962 #include <list>
19963int
19964main ()
19965{
19966std::vector<int> moo;
19967 std::list<int> foo;
19968 std::vector<int>::iterator it =
19969 std::find_if(moo.begin(), moo.end(),
19970 std::bind2nd(std::less<int>(), 3));
19971 ;
19972 return 0;
19973}
19974_ACEOF
19975rm -f conftest.$ac_objext
19976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19977 (eval $ac_compile) 2>conftest.er1
a848cd7e 19978 ac_status=$?
ac1cb8d3
VS
19979 grep -v '^ *+' conftest.er1 >conftest.err
19980 rm -f conftest.er1
19981 cat conftest.err >&5
a848cd7e
SC
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } &&
da4486fb 19984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 echo "$as_me:$LINENO: result: yes" >&5
19997echo "${ECHO_T}yes" >&6
19998else
19999 echo "$as_me: failed program was:" >&5
20000sed 's/^/| /' conftest.$ac_ext >&5
20001
20002echo "$as_me:$LINENO: result: no" >&5
20003echo "${ECHO_T}no" >&6
20004 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
20005echo "$as_me: error: Basic STL functionality missing" >&2;}
20006 { (exit 1); exit 1; }; }
20007fi
ac1cb8d3 20008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20009
20010 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
20011echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
20012 cat >conftest.$ac_ext <<_ACEOF
20013/* confdefs.h. */
20014_ACEOF
20015cat confdefs.h >>conftest.$ac_ext
20016cat >>conftest.$ac_ext <<_ACEOF
20017/* end confdefs.h. */
20018#include <string>
20019int
20020main ()
20021{
20022std::wstring foo;
20023 ;
20024 return 0;
20025}
20026_ACEOF
20027rm -f conftest.$ac_objext
20028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20029 (eval $ac_compile) 2>conftest.er1
a848cd7e 20030 ac_status=$?
ac1cb8d3
VS
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
a848cd7e
SC
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
da4486fb 20036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; } &&
20042 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; }; then
20048 echo "$as_me:$LINENO: result: yes" >&5
20049echo "${ECHO_T}yes" >&6
20050 cat >>confdefs.h <<\_ACEOF
20051#define HAVE_STD_WSTRING 1
20052_ACEOF
20053
20054else
20055 echo "$as_me: failed program was:" >&5
20056sed 's/^/| /' conftest.$ac_ext >&5
20057
20058echo "$as_me:$LINENO: result: no" >&5
20059echo "${ECHO_T}no" >&6
20060fi
ac1cb8d3 20061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20062
20063 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
20064echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
20065 cat >conftest.$ac_ext <<_ACEOF
20066/* confdefs.h. */
20067_ACEOF
20068cat confdefs.h >>conftest.$ac_ext
20069cat >>conftest.$ac_ext <<_ACEOF
20070/* end confdefs.h. */
20071#include <string>
20072int
20073main ()
20074{
20075std::string foo, bar;
20076 foo.compare(bar);
20077 foo.compare(1, 1, bar);
20078 foo.compare(1, 1, bar, 1, 1);
20079 foo.compare("");
20080 foo.compare(1, 1, "");
20081 foo.compare(1, 1, "", 2);
20082 ;
20083 return 0;
20084}
20085_ACEOF
20086rm -f conftest.$ac_objext
20087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20088 (eval $ac_compile) 2>conftest.er1
a848cd7e 20089 ac_status=$?
ac1cb8d3
VS
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
a848cd7e
SC
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
da4486fb 20095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
20107 echo "$as_me:$LINENO: result: yes" >&5
20108echo "${ECHO_T}yes" >&6
20109 cat >>confdefs.h <<\_ACEOF
20110#define HAVE_STD_STRING_COMPARE 1
20111_ACEOF
20112
20113else
20114 echo "$as_me: failed program was:" >&5
20115sed 's/^/| /' conftest.$ac_ext >&5
20116
20117echo "$as_me:$LINENO: result: no" >&5
20118echo "${ECHO_T}no" >&6
20119fi
ac1cb8d3 20120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20121
20122 if test "${ac_cv_header_hash_map+set}" = set; then
20123 echo "$as_me:$LINENO: checking for hash_map" >&5
20124echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20125if test "${ac_cv_header_hash_map+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20127fi
20128echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20129echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20130else
20131 # Is the header compilable?
20132echo "$as_me:$LINENO: checking hash_map usability" >&5
20133echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
20134cat >conftest.$ac_ext <<_ACEOF
20135/* confdefs.h. */
20136_ACEOF
20137cat confdefs.h >>conftest.$ac_ext
20138cat >>conftest.$ac_ext <<_ACEOF
20139/* end confdefs.h. */
20140$ac_includes_default
20141#include <hash_map>
20142_ACEOF
20143rm -f conftest.$ac_objext
20144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20145 (eval $ac_compile) 2>conftest.er1
bdcade0a 20146 ac_status=$?
ac1cb8d3
VS
20147 grep -v '^ *+' conftest.er1 >conftest.err
20148 rm -f conftest.er1
20149 cat conftest.err >&5
bdcade0a
MB
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } &&
da4486fb 20152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; } &&
20158 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 ac_header_compiler=yes
20165else
20166 echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169ac_header_compiler=no
20170fi
ac1cb8d3 20171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20172echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20173echo "${ECHO_T}$ac_header_compiler" >&6
20174
20175# Is the header present?
20176echo "$as_me:$LINENO: checking hash_map presence" >&5
20177echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20178cat >conftest.$ac_ext <<_ACEOF
20179/* confdefs.h. */
20180_ACEOF
20181cat confdefs.h >>conftest.$ac_ext
20182cat >>conftest.$ac_ext <<_ACEOF
20183/* end confdefs.h. */
20184#include <hash_map>
20185_ACEOF
20186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20188 ac_status=$?
20189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } >/dev/null; then
20194 if test -s conftest.err; then
20195 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20196 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20197 else
20198 ac_cpp_err=
20199 fi
20200else
20201 ac_cpp_err=yes
20202fi
20203if test -z "$ac_cpp_err"; then
20204 ac_header_preproc=yes
20205else
20206 echo "$as_me: failed program was:" >&5
20207sed 's/^/| /' conftest.$ac_ext >&5
20208
20209 ac_header_preproc=no
20210fi
20211rm -f conftest.err conftest.$ac_ext
20212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20213echo "${ECHO_T}$ac_header_preproc" >&6
20214
20215# So? What about this header?
ac1cb8d3
VS
20216case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20217 yes:no: )
bdcade0a
MB
20218 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20219echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20220 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20221echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20222 ac_header_preproc=yes
bdcade0a 20223 ;;
ac1cb8d3 20224 no:yes:* )
bdcade0a
MB
20225 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20226echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20227 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20228echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20230echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20232echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20233 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20234echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20235 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20236echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20237 (
20238 cat <<\_ASBOX
ac1cb8d3
VS
20239## ----------------------------------------- ##
20240## Report this to wx-dev@lists.wxwidgets.org ##
20241## ----------------------------------------- ##
bdcade0a
MB
20242_ASBOX
20243 ) |
20244 sed "s/^/$as_me: WARNING: /" >&2
20245 ;;
20246esac
20247echo "$as_me:$LINENO: checking for hash_map" >&5
20248echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20249if test "${ac_cv_header_hash_map+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20251else
20252 ac_cv_header_hash_map=$ac_header_preproc
20253fi
20254echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20255echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20256
20257fi
20258if test $ac_cv_header_hash_map = yes; then
20259 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20260echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20261 cat >conftest.$ac_ext <<_ACEOF
20262/* confdefs.h. */
20263_ACEOF
20264cat confdefs.h >>conftest.$ac_ext
20265cat >>conftest.$ac_ext <<_ACEOF
20266/* end confdefs.h. */
20267#include <hash_map>
20268 #include <hash_set>
20269int
20270main ()
20271{
20272std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20273 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20274 ;
20275 return 0;
20276}
20277_ACEOF
20278rm -f conftest.$ac_objext
20279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20280 (eval $ac_compile) 2>conftest.er1
bdcade0a 20281 ac_status=$?
ac1cb8d3
VS
20282 grep -v '^ *+' conftest.er1 >conftest.err
20283 rm -f conftest.er1
20284 cat conftest.err >&5
bdcade0a
MB
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } &&
da4486fb 20287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20293 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 echo "$as_me:$LINENO: result: yes" >&5
20300echo "${ECHO_T}yes" >&6
20301 cat >>confdefs.h <<\_ACEOF
20302#define HAVE_HASH_MAP 1
20303_ACEOF
20304
20305 cat >>confdefs.h <<\_ACEOF
20306#define HAVE_STD_HASH_MAP 1
20307_ACEOF
20308
20309else
20310 echo "$as_me: failed program was:" >&5
20311sed 's/^/| /' conftest.$ac_ext >&5
20312
20313echo "$as_me:$LINENO: result: no" >&5
20314echo "${ECHO_T}no" >&6
20315fi
ac1cb8d3 20316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20317
20318fi
20319
20320
20321
20322 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20323 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20324echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20325if test "${ac_cv_header_ext_hash_map+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327fi
20328echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20329echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20330else
20331 # Is the header compilable?
20332echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20333echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20334cat >conftest.$ac_ext <<_ACEOF
20335/* confdefs.h. */
20336_ACEOF
20337cat confdefs.h >>conftest.$ac_ext
20338cat >>conftest.$ac_ext <<_ACEOF
20339/* end confdefs.h. */
20340$ac_includes_default
20341#include <ext/hash_map>
20342_ACEOF
20343rm -f conftest.$ac_objext
20344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20345 (eval $ac_compile) 2>conftest.er1
bdcade0a 20346 ac_status=$?
ac1cb8d3
VS
20347 grep -v '^ *+' conftest.er1 >conftest.err
20348 rm -f conftest.er1
20349 cat conftest.err >&5
bdcade0a
MB
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } &&
da4486fb 20352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; } &&
20358 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20364 ac_header_compiler=yes
20365else
20366 echo "$as_me: failed program was:" >&5
20367sed 's/^/| /' conftest.$ac_ext >&5
20368
20369ac_header_compiler=no
20370fi
ac1cb8d3 20371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20372echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20373echo "${ECHO_T}$ac_header_compiler" >&6
20374
20375# Is the header present?
20376echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20377echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20378cat >conftest.$ac_ext <<_ACEOF
20379/* confdefs.h. */
20380_ACEOF
20381cat confdefs.h >>conftest.$ac_ext
20382cat >>conftest.$ac_ext <<_ACEOF
20383/* end confdefs.h. */
20384#include <ext/hash_map>
20385_ACEOF
20386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } >/dev/null; then
20394 if test -s conftest.err; then
20395 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20396 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20397 else
20398 ac_cpp_err=
20399 fi
20400else
20401 ac_cpp_err=yes
20402fi
20403if test -z "$ac_cpp_err"; then
20404 ac_header_preproc=yes
20405else
20406 echo "$as_me: failed program was:" >&5
20407sed 's/^/| /' conftest.$ac_ext >&5
20408
20409 ac_header_preproc=no
20410fi
20411rm -f conftest.err conftest.$ac_ext
20412echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20413echo "${ECHO_T}$ac_header_preproc" >&6
20414
20415# So? What about this header?
ac1cb8d3
VS
20416case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20417 yes:no: )
bdcade0a
MB
20418 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20419echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20420 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20421echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20422 ac_header_preproc=yes
bdcade0a 20423 ;;
ac1cb8d3 20424 no:yes:* )
bdcade0a
MB
20425 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20426echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20427 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20428echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20429 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20430echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20431 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20432echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20433 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20434echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20435 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20436echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20437 (
20438 cat <<\_ASBOX
ac1cb8d3
VS
20439## ----------------------------------------- ##
20440## Report this to wx-dev@lists.wxwidgets.org ##
20441## ----------------------------------------- ##
bdcade0a
MB
20442_ASBOX
20443 ) |
20444 sed "s/^/$as_me: WARNING: /" >&2
20445 ;;
20446esac
20447echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20448echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20449if test "${ac_cv_header_ext_hash_map+set}" = set; then
20450 echo $ECHO_N "(cached) $ECHO_C" >&6
20451else
20452 ac_cv_header_ext_hash_map=$ac_header_preproc
20453fi
20454echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20455echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20456
20457fi
20458if test $ac_cv_header_ext_hash_map = yes; then
20459 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20460echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20461 cat >conftest.$ac_ext <<_ACEOF
20462/* confdefs.h. */
20463_ACEOF
20464cat confdefs.h >>conftest.$ac_ext
20465cat >>conftest.$ac_ext <<_ACEOF
20466/* end confdefs.h. */
20467#include <ext/hash_map>
20468 #include <ext/hash_set>
20469int
20470main ()
20471{
20472__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20473 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20474 ;
20475 return 0;
20476}
20477_ACEOF
20478rm -f conftest.$ac_objext
20479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20480 (eval $ac_compile) 2>conftest.er1
bdcade0a 20481 ac_status=$?
ac1cb8d3
VS
20482 grep -v '^ *+' conftest.er1 >conftest.err
20483 rm -f conftest.er1
20484 cat conftest.err >&5
bdcade0a
MB
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
da4486fb 20487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489 (eval $ac_try) 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20499 echo "$as_me:$LINENO: result: yes" >&5
20500echo "${ECHO_T}yes" >&6
20501 cat >>confdefs.h <<\_ACEOF
20502#define HAVE_EXT_HASH_MAP 1
20503_ACEOF
20504
20505 cat >>confdefs.h <<\_ACEOF
20506#define HAVE_GNU_CXX_HASH_MAP 1
20507_ACEOF
20508
20509else
20510 echo "$as_me: failed program was:" >&5
20511sed 's/^/| /' conftest.$ac_ext >&5
20512
20513echo "$as_me:$LINENO: result: no" >&5
20514echo "${ECHO_T}no" >&6
20515fi
ac1cb8d3 20516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20517
20518fi
20519
20520
a848cd7e
SC
20521
20522 ac_ext=c
20523ac_cpp='$CPP $CPPFLAGS'
20524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20526ac_compiler_gnu=$ac_cv_c_compiler_gnu
20527
20528fi
20529
20530
20531SEARCH_INCLUDE="\
20532 /usr/local/include \
20533 \
20534 /usr/Motif-2.1/include \
20535 /usr/Motif-1.2/include \
20536 /usr/include/Motif1.2 \
20537 /opt/xpm/include/X11 \
20538 /opt/GBxpm/include/ \
20539 /opt/GBxpm/X11/include/ \
20540 \
20541 /usr/dt/include \
20542 /usr/openwin/include \
20543 \
20544 /usr/include/Xm \
20545 \
20546 /usr/X11R6/include \
20547 /usr/X11R6.4/include \
20548 /usr/X11R5/include \
20549 /usr/X11R4/include \
20550 \
20551 /usr/include/X11R6 \
20552 /usr/include/X11R5 \
20553 /usr/include/X11R4 \
20554 \
20555 /usr/local/X11R6/include \
20556 /usr/local/X11R5/include \
20557 /usr/local/X11R4/include \
20558 \
20559 /usr/local/include/X11R6 \
20560 /usr/local/include/X11R5 \
20561 /usr/local/include/X11R4 \
20562 \
20563 /usr/X11/include \
20564 /usr/include/X11 \
20565 /usr/local/X11/include \
20566 /usr/local/include/X11 \
20567 \
20568 /usr/X386/include \
20569 /usr/x386/include \
20570 /usr/XFree86/include/X11 \
20571 \
20572 X:/XFree86/include \
20573 X:/XFree86/include/X11 \
20574 \
20575 /usr/include/gtk \
20576 /usr/local/include/gtk \
20577 /usr/include/glib \
20578 /usr/local/include/glib \
20579 \
20580 /usr/include/qt \
20581 /usr/local/include/qt \
20582 \
20583 /usr/local/arm/3.3.2/include \
20584 \
20585 /usr/include/windows \
20586 /usr/include/wine \
20587 /usr/local/include/wine \
20588 \
20589 /usr/unsupported/include \
20590 /usr/athena/include \
20591 /usr/local/x11r5/include \
20592 /usr/lpp/Xamples/include \
20593 \
20594 /usr/openwin/share/include"
20595
20596SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20597
20598
20599cat >confcache <<\_ACEOF
20600# This file is a shell script that caches the results of configure
20601# tests run on this system so they can be shared between configure
20602# scripts and configure runs, see configure's option --config-cache.
20603# It is not useful on other systems. If it contains results you don't
20604# want to keep, you may remove or edit it.
20605#
20606# config.status only pays attention to the cache file if you give it
20607# the --recheck option to rerun configure.
20608#
20609# `ac_cv_env_foo' variables (set or unset) will be overridden when
20610# loading this file, other *unset* `ac_cv_foo' will be assigned the
20611# following values.
20612
20613_ACEOF
20614
20615# The following way of writing the cache mishandles newlines in values,
20616# but we know of no workaround that is simple, portable, and efficient.
20617# So, don't put newlines in cache variables' values.
20618# Ultrix sh set writes to stderr and can't be redirected directly,
20619# and sets the high bit in the cache file unless we assign to the vars.
20620{
20621 (set) 2>&1 |
20622 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20623 *ac_space=\ *)
20624 # `set' does not quote correctly, so add quotes (double-quote
20625 # substitution turns \\\\ into \\, and sed turns \\ into \).
20626 sed -n \
ac1cb8d3
VS
20627 "s/'/'\\\\''/g;
20628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20629 ;;
20630 *)
20631 # `set' quotes correctly as required by POSIX, so do not add quotes.
20632 sed -n \
ac1cb8d3 20633 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20634 ;;
20635 esac;
20636} |
20637 sed '
20638 t clear
20639 : clear
20640 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20641 t end
20642 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20643 : end' >>confcache
20644if diff $cache_file confcache >/dev/null 2>&1; then :; else
20645 if test -w $cache_file; then
20646 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20647 cat confcache >$cache_file
20648 else
20649 echo "not updating unwritable cache $cache_file"
20650 fi
20651fi
20652rm -f confcache
20653
20654if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20655 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20656echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20657if test "${wx_cv_lib_glibc21+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20659else
20660
20661 cat >conftest.$ac_ext <<_ACEOF
20662/* confdefs.h. */
20663_ACEOF
20664cat confdefs.h >>conftest.$ac_ext
20665cat >>conftest.$ac_ext <<_ACEOF
20666/* end confdefs.h. */
20667#include <features.h>
20668int
20669main ()
20670{
20671
20672 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20673 #error not glibc2.1
20674 #endif
20675
20676 ;
20677 return 0;
20678}
20679_ACEOF
20680rm -f conftest.$ac_objext
20681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20682 (eval $ac_compile) 2>conftest.er1
a848cd7e 20683 ac_status=$?
ac1cb8d3
VS
20684 grep -v '^ *+' conftest.er1 >conftest.err
20685 rm -f conftest.er1
20686 cat conftest.err >&5
a848cd7e
SC
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } &&
da4486fb 20689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701
20702 wx_cv_lib_glibc21=yes
20703
20704else
20705 echo "$as_me: failed program was:" >&5
20706sed 's/^/| /' conftest.$ac_ext >&5
20707
20708
20709 wx_cv_lib_glibc21=no
20710
20711
20712fi
ac1cb8d3 20713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20714
20715fi
20716echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20717echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20718 if test "$wx_cv_lib_glibc21" = "yes"; then
20719 cat >>confdefs.h <<\_ACEOF
20720#define wxHAVE_GLIBC2 1
20721_ACEOF
20722
20723 fi
20724fi
20725
20726if test "x$wx_cv_lib_glibc21" = "xyes"; then
20727 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20728 cat >>confdefs.h <<\_ACEOF
20729#define _GNU_SOURCE 1
20730_ACEOF
20731
20732 fi
20733fi
20734
20735
20736
20737if test "$wxUSE_REGEX" != "no"; then
20738 cat >>confdefs.h <<\_ACEOF
20739#define wxUSE_REGEX 1
20740_ACEOF
20741
20742
20743 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20744 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20745echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20746 wxUSE_REGEX=builtin
20747 fi
20748
20749 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20750 if test "${ac_cv_header_regex_h+set}" = set; then
20751 echo "$as_me:$LINENO: checking for regex.h" >&5
20752echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20753if test "${ac_cv_header_regex_h+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20755fi
20756echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20757echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20758else
20759 # Is the header compilable?
20760echo "$as_me:$LINENO: checking regex.h usability" >&5
20761echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20762cat >conftest.$ac_ext <<_ACEOF
20763/* confdefs.h. */
20764_ACEOF
20765cat confdefs.h >>conftest.$ac_ext
20766cat >>conftest.$ac_ext <<_ACEOF
20767/* end confdefs.h. */
20768$ac_includes_default
20769#include <regex.h>
20770_ACEOF
20771rm -f conftest.$ac_objext
20772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20773 (eval $ac_compile) 2>conftest.er1
a848cd7e 20774 ac_status=$?
ac1cb8d3
VS
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
a848cd7e
SC
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } &&
da4486fb 20780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; } &&
20786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_header_compiler=yes
20793else
20794 echo "$as_me: failed program was:" >&5
20795sed 's/^/| /' conftest.$ac_ext >&5
20796
20797ac_header_compiler=no
20798fi
ac1cb8d3 20799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20800echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20801echo "${ECHO_T}$ac_header_compiler" >&6
20802
20803# Is the header present?
20804echo "$as_me:$LINENO: checking regex.h presence" >&5
20805echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20806cat >conftest.$ac_ext <<_ACEOF
20807/* confdefs.h. */
20808_ACEOF
20809cat confdefs.h >>conftest.$ac_ext
20810cat >>conftest.$ac_ext <<_ACEOF
20811/* end confdefs.h. */
20812#include <regex.h>
20813_ACEOF
20814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20816 ac_status=$?
20817 grep -v '^ *+' conftest.er1 >conftest.err
20818 rm -f conftest.er1
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } >/dev/null; then
20822 if test -s conftest.err; then
20823 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20825 else
20826 ac_cpp_err=
20827 fi
20828else
20829 ac_cpp_err=yes
20830fi
20831if test -z "$ac_cpp_err"; then
20832 ac_header_preproc=yes
20833else
20834 echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 ac_header_preproc=no
20838fi
20839rm -f conftest.err conftest.$ac_ext
20840echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20841echo "${ECHO_T}$ac_header_preproc" >&6
20842
20843# So? What about this header?
ac1cb8d3
VS
20844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20845 yes:no: )
a848cd7e
SC
20846 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20847echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20848 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20849echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20850 ac_header_preproc=yes
a848cd7e 20851 ;;
ac1cb8d3 20852 no:yes:* )
a848cd7e
SC
20853 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20854echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20855 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20856echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20857 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20858echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20859 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20860echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20861 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20862echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20863 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20864echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20865 (
20866 cat <<\_ASBOX
ac1cb8d3
VS
20867## ----------------------------------------- ##
20868## Report this to wx-dev@lists.wxwidgets.org ##
20869## ----------------------------------------- ##
a848cd7e
SC
20870_ASBOX
20871 ) |
20872 sed "s/^/$as_me: WARNING: /" >&2
20873 ;;
20874esac
20875echo "$as_me:$LINENO: checking for regex.h" >&5
20876echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20877if test "${ac_cv_header_regex_h+set}" = set; then
20878 echo $ECHO_N "(cached) $ECHO_C" >&6
20879else
20880 ac_cv_header_regex_h=$ac_header_preproc
20881fi
20882echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20883echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20884
20885fi
20886if test $ac_cv_header_regex_h = yes; then
20887
20888for ac_func in regcomp
20889do
20890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20891echo "$as_me:$LINENO: checking for $ac_func" >&5
20892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20893if eval "test \"\${$as_ac_var+set}\" = set"; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20895else
20896 cat >conftest.$ac_ext <<_ACEOF
20897/* confdefs.h. */
20898_ACEOF
20899cat confdefs.h >>conftest.$ac_ext
20900cat >>conftest.$ac_ext <<_ACEOF
20901/* end confdefs.h. */
ac1cb8d3
VS
20902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20904#define $ac_func innocuous_$ac_func
20905
a848cd7e
SC
20906/* System header to define __stub macros and hopefully few prototypes,
20907 which can conflict with char $ac_func (); below.
20908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20909 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20910
a848cd7e
SC
20911#ifdef __STDC__
20912# include <limits.h>
20913#else
20914# include <assert.h>
20915#endif
ac1cb8d3
VS
20916
20917#undef $ac_func
20918
a848cd7e
SC
20919/* Override any gcc2 internal prototype to avoid an error. */
20920#ifdef __cplusplus
20921extern "C"
20922{
20923#endif
20924/* We use char because int might match the return type of a gcc2
20925 builtin and then its argument prototype would still apply. */
20926char $ac_func ();
20927/* The GNU C library defines this for functions which it implements
20928 to always fail with ENOSYS. Some functions are actually named
20929 something starting with __ and the normal name is an alias. */
20930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20931choke me
20932#else
20933char (*f) () = $ac_func;
20934#endif
20935#ifdef __cplusplus
20936}
20937#endif
20938
20939int
20940main ()
20941{
20942return f != $ac_func;
20943 ;
20944 return 0;
20945}
20946_ACEOF
20947rm -f conftest.$ac_objext conftest$ac_exeext
20948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20949 (eval $ac_link) 2>conftest.er1
a848cd7e 20950 ac_status=$?
ac1cb8d3
VS
20951 grep -v '^ *+' conftest.er1 >conftest.err
20952 rm -f conftest.er1
20953 cat conftest.err >&5
a848cd7e
SC
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } &&
da4486fb 20956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20959 ac_status=$?
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; } &&
20962 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; }; then
20968 eval "$as_ac_var=yes"
20969else
20970 echo "$as_me: failed program was:" >&5
20971sed 's/^/| /' conftest.$ac_ext >&5
20972
20973eval "$as_ac_var=no"
20974fi
ac1cb8d3
VS
20975rm -f conftest.err conftest.$ac_objext \
20976 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20977fi
20978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20979echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20980if test `eval echo '${'$as_ac_var'}'` = yes; then
20981 cat >>confdefs.h <<_ACEOF
20982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20983_ACEOF
20984
20985fi
20986done
20987
20988fi
20989
20990
20991
20992 if test "x$ac_cv_func_regcomp" != "xyes"; then
20993 if test "$wxUSE_REGEX" = "sys" ; then
20994 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20995echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20996 { (exit 1); exit 1; }; }
20997 else
20998 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20999echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21000 wxUSE_REGEX=builtin
21001 fi
21002 else
21003 wxUSE_REGEX=sys
21004 cat >>confdefs.h <<\_ACEOF
21005#define WX_NO_REGEX_ADVANCED 1
21006_ACEOF
21007
21008 fi
21009 fi
21010fi
21011
21012
21013ZLIB_LINK=
21014if test "$wxUSE_ZLIB" != "no" ; then
21015 cat >>confdefs.h <<\_ACEOF
21016#define wxUSE_ZLIB 1
21017_ACEOF
21018
21019
21020 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
21021 if test "$USE_DARWIN" = 1; then
21022 system_zlib_h_ok="yes"
21023 else
21024 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
21025echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
21026if test "${ac_cv_header_zlib_h+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21028else
21029 if test "$cross_compiling" = yes; then
21030 unset ac_cv_header_zlib_h
21031
21032else
21033 cat >conftest.$ac_ext <<_ACEOF
21034/* confdefs.h. */
21035_ACEOF
21036cat confdefs.h >>conftest.$ac_ext
21037cat >>conftest.$ac_ext <<_ACEOF
21038/* end confdefs.h. */
21039
21040 #include <zlib.h>
21041 #include <stdio.h>
21042
21043 int main()
21044 {
21045 FILE *f=fopen("conftestval", "w");
21046 if (!f) exit(1);
21047 fprintf(f, "%s",
21048 ZLIB_VERSION[0] == '1' &&
21049 (ZLIB_VERSION[2] > '1' ||
21050 (ZLIB_VERSION[2] == '1' &&
21051 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
21052 exit(0);
21053 }
21054
21055_ACEOF
21056rm -f conftest$ac_exeext
21057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21058 (eval $ac_link) 2>&5
21059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21064 ac_status=$?
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }; then
21067 ac_cv_header_zlib_h=`cat conftestval`
21068else
21069 echo "$as_me: program exited with status $ac_status" >&5
21070echo "$as_me: failed program was:" >&5
21071sed 's/^/| /' conftest.$ac_ext >&5
21072
21073( exit $ac_status )
21074ac_cv_header_zlib_h=no
21075fi
ac1cb8d3 21076rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21077fi
21078
21079fi
21080echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21081echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21082 if test "${ac_cv_header_zlib_h+set}" = set; then
21083 echo "$as_me:$LINENO: checking for zlib.h" >&5
21084echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21085if test "${ac_cv_header_zlib_h+set}" = set; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21087fi
21088echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21089echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21090else
21091 # Is the header compilable?
21092echo "$as_me:$LINENO: checking zlib.h usability" >&5
21093echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
21094cat >conftest.$ac_ext <<_ACEOF
21095/* confdefs.h. */
21096_ACEOF
21097cat confdefs.h >>conftest.$ac_ext
21098cat >>conftest.$ac_ext <<_ACEOF
21099/* end confdefs.h. */
21100$ac_includes_default
21101#include <zlib.h>
21102_ACEOF
21103rm -f conftest.$ac_objext
21104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21105 (eval $ac_compile) 2>conftest.er1
a848cd7e 21106 ac_status=$?
ac1cb8d3
VS
21107 grep -v '^ *+' conftest.er1 >conftest.err
21108 rm -f conftest.er1
21109 cat conftest.err >&5
a848cd7e
SC
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } &&
da4486fb 21112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; } &&
21118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ac_header_compiler=yes
21125else
21126 echo "$as_me: failed program was:" >&5
21127sed 's/^/| /' conftest.$ac_ext >&5
21128
21129ac_header_compiler=no
21130fi
ac1cb8d3 21131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21133echo "${ECHO_T}$ac_header_compiler" >&6
21134
21135# Is the header present?
21136echo "$as_me:$LINENO: checking zlib.h presence" >&5
21137echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
21138cat >conftest.$ac_ext <<_ACEOF
21139/* confdefs.h. */
21140_ACEOF
21141cat confdefs.h >>conftest.$ac_ext
21142cat >>conftest.$ac_ext <<_ACEOF
21143/* end confdefs.h. */
21144#include <zlib.h>
21145_ACEOF
21146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21148 ac_status=$?
21149 grep -v '^ *+' conftest.er1 >conftest.err
21150 rm -f conftest.er1
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } >/dev/null; then
21154 if test -s conftest.err; then
21155 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21157 else
21158 ac_cpp_err=
21159 fi
21160else
21161 ac_cpp_err=yes
21162fi
21163if test -z "$ac_cpp_err"; then
21164 ac_header_preproc=yes
21165else
21166 echo "$as_me: failed program was:" >&5
21167sed 's/^/| /' conftest.$ac_ext >&5
21168
21169 ac_header_preproc=no
21170fi
21171rm -f conftest.err conftest.$ac_ext
21172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21173echo "${ECHO_T}$ac_header_preproc" >&6
21174
21175# So? What about this header?
ac1cb8d3
VS
21176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21177 yes:no: )
a848cd7e
SC
21178 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21179echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21180 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21181echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21182 ac_header_preproc=yes
a848cd7e 21183 ;;
ac1cb8d3 21184 no:yes:* )
a848cd7e
SC
21185 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21186echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21187 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21188echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21189 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21190echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21191 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21192echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21193 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21194echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21195 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21196echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21197 (
21198 cat <<\_ASBOX
ac1cb8d3
VS
21199## ----------------------------------------- ##
21200## Report this to wx-dev@lists.wxwidgets.org ##
21201## ----------------------------------------- ##
a848cd7e
SC
21202_ASBOX
21203 ) |
21204 sed "s/^/$as_me: WARNING: /" >&2
21205 ;;
21206esac
21207echo "$as_me:$LINENO: checking for zlib.h" >&5
21208echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21209if test "${ac_cv_header_zlib_h+set}" = set; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21211else
21212 ac_cv_header_zlib_h=$ac_header_preproc
21213fi
21214echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21215echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21216
21217fi
21218
21219
21220
21221 system_zlib_h_ok=$ac_cv_header_zlib_h
21222 fi
21223
21224 if test "$system_zlib_h_ok" = "yes"; then
21225 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21226echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21227if test "${ac_cv_lib_z_deflate+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21229else
21230 ac_check_lib_save_LIBS=$LIBS
21231LIBS="-lz $LIBS"
21232cat >conftest.$ac_ext <<_ACEOF
21233/* confdefs.h. */
21234_ACEOF
21235cat confdefs.h >>conftest.$ac_ext
21236cat >>conftest.$ac_ext <<_ACEOF
21237/* end confdefs.h. */
21238
21239/* Override any gcc2 internal prototype to avoid an error. */
21240#ifdef __cplusplus
21241extern "C"
21242#endif
21243/* We use char because int might match the return type of a gcc2
21244 builtin and then its argument prototype would still apply. */
21245char deflate ();
21246int
21247main ()
21248{
21249deflate ();
21250 ;
21251 return 0;
21252}
21253_ACEOF
21254rm -f conftest.$ac_objext conftest$ac_exeext
21255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21256 (eval $ac_link) 2>conftest.er1
a848cd7e 21257 ac_status=$?
ac1cb8d3
VS
21258 grep -v '^ *+' conftest.er1 >conftest.err
21259 rm -f conftest.er1
21260 cat conftest.err >&5
a848cd7e
SC
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } &&
da4486fb 21263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21265 (eval $ac_try) 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; } &&
21269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21272 ac_status=$?
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; }; then
21275 ac_cv_lib_z_deflate=yes
21276else
21277 echo "$as_me: failed program was:" >&5
21278sed 's/^/| /' conftest.$ac_ext >&5
21279
21280ac_cv_lib_z_deflate=no
21281fi
ac1cb8d3
VS
21282rm -f conftest.err conftest.$ac_objext \
21283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21284LIBS=$ac_check_lib_save_LIBS
21285fi
21286echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21287echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21288if test $ac_cv_lib_z_deflate = yes; then
21289 ZLIB_LINK=" -lz"
21290fi
21291
21292 fi
21293
21294 if test "x$ZLIB_LINK" = "x" ; then
21295 if test "$wxUSE_ZLIB" = "sys" ; then
21296 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21297echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21298 { (exit 1); exit 1; }; }
21299 else
21300 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21301echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21302 wxUSE_ZLIB=builtin
21303 fi
21304 else
21305 wxUSE_ZLIB=sys
21306 fi
21307 fi
21308fi
21309
21310
21311PNG_LINK=
21312if test "$wxUSE_LIBPNG" != "no" ; then
21313 cat >>confdefs.h <<\_ACEOF
21314#define wxUSE_LIBPNG 1
21315_ACEOF
21316
21317
21318 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21319 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21320echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21321 wxUSE_LIBPNG=sys
21322 fi
21323
21324 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21325 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21326echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21327 wxUSE_LIBPNG=builtin
21328 fi
21329
21330 if test "$wxUSE_MGL" != 1 ; then
21331 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21332 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21333echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21334if test "${ac_cv_header_png_h+set}" = set; then
21335 echo $ECHO_N "(cached) $ECHO_C" >&6
21336else
21337 if test "$cross_compiling" = yes; then
21338 unset ac_cv_header_png_h
21339
21340else
21341 cat >conftest.$ac_ext <<_ACEOF
21342/* confdefs.h. */
21343_ACEOF
21344cat confdefs.h >>conftest.$ac_ext
21345cat >>conftest.$ac_ext <<_ACEOF
21346/* end confdefs.h. */
21347
21348 #include <png.h>
21349 #include <stdio.h>
21350
21351 int main()
21352 {
21353 FILE *f=fopen("conftestval", "w");
21354 if (!f) exit(1);
21355 fprintf(f, "%s",
21356 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21357 exit(0);
21358 }
21359
21360_ACEOF
21361rm -f conftest$ac_exeext
21362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21363 (eval $ac_link) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368 (eval $ac_try) 2>&5
21369 ac_status=$?
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; }; then
21372 ac_cv_header_png_h=`cat conftestval`
21373else
21374 echo "$as_me: program exited with status $ac_status" >&5
21375echo "$as_me: failed program was:" >&5
21376sed 's/^/| /' conftest.$ac_ext >&5
21377
21378( exit $ac_status )
21379ac_cv_header_png_h=no
21380fi
ac1cb8d3 21381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21382fi
21383
21384fi
21385echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21386echo "${ECHO_T}$ac_cv_header_png_h" >&6
21387 if test "${ac_cv_header_png_h+set}" = set; then
21388 echo "$as_me:$LINENO: checking for png.h" >&5
21389echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21390if test "${ac_cv_header_png_h+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21392fi
21393echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21394echo "${ECHO_T}$ac_cv_header_png_h" >&6
21395else
21396 # Is the header compilable?
21397echo "$as_me:$LINENO: checking png.h usability" >&5
21398echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21399cat >conftest.$ac_ext <<_ACEOF
21400/* confdefs.h. */
21401_ACEOF
21402cat confdefs.h >>conftest.$ac_ext
21403cat >>conftest.$ac_ext <<_ACEOF
21404/* end confdefs.h. */
21405$ac_includes_default
21406#include <png.h>
21407_ACEOF
21408rm -f conftest.$ac_objext
21409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21410 (eval $ac_compile) 2>conftest.er1
a848cd7e 21411 ac_status=$?
ac1cb8d3
VS
21412 grep -v '^ *+' conftest.er1 >conftest.err
21413 rm -f conftest.er1
21414 cat conftest.err >&5
a848cd7e
SC
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } &&
da4486fb 21417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; } &&
21423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425 (eval $ac_try) 2>&5
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); }; }; then
21429 ac_header_compiler=yes
21430else
21431 echo "$as_me: failed program was:" >&5
21432sed 's/^/| /' conftest.$ac_ext >&5
21433
21434ac_header_compiler=no
21435fi
ac1cb8d3 21436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21438echo "${ECHO_T}$ac_header_compiler" >&6
21439
21440# Is the header present?
21441echo "$as_me:$LINENO: checking png.h presence" >&5
21442echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21443cat >conftest.$ac_ext <<_ACEOF
21444/* confdefs.h. */
21445_ACEOF
21446cat confdefs.h >>conftest.$ac_ext
21447cat >>conftest.$ac_ext <<_ACEOF
21448/* end confdefs.h. */
21449#include <png.h>
21450_ACEOF
21451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21453 ac_status=$?
21454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } >/dev/null; then
21459 if test -s conftest.err; then
21460 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21462 else
21463 ac_cpp_err=
21464 fi
21465else
21466 ac_cpp_err=yes
21467fi
21468if test -z "$ac_cpp_err"; then
21469 ac_header_preproc=yes
21470else
21471 echo "$as_me: failed program was:" >&5
21472sed 's/^/| /' conftest.$ac_ext >&5
21473
21474 ac_header_preproc=no
21475fi
21476rm -f conftest.err conftest.$ac_ext
21477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21478echo "${ECHO_T}$ac_header_preproc" >&6
21479
21480# So? What about this header?
ac1cb8d3
VS
21481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21482 yes:no: )
a848cd7e
SC
21483 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21484echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21485 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21486echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21487 ac_header_preproc=yes
a848cd7e 21488 ;;
ac1cb8d3 21489 no:yes:* )
a848cd7e
SC
21490 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21491echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21492 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21493echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21495echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21496 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21497echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21498 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21499echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21500 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21501echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21502 (
21503 cat <<\_ASBOX
ac1cb8d3
VS
21504## ----------------------------------------- ##
21505## Report this to wx-dev@lists.wxwidgets.org ##
21506## ----------------------------------------- ##
a848cd7e
SC
21507_ASBOX
21508 ) |
21509 sed "s/^/$as_me: WARNING: /" >&2
21510 ;;
21511esac
21512echo "$as_me:$LINENO: checking for png.h" >&5
21513echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21514if test "${ac_cv_header_png_h+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516else
21517 ac_cv_header_png_h=$ac_header_preproc
21518fi
21519echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21520echo "${ECHO_T}$ac_cv_header_png_h" >&6
21521
21522fi
21523
21524
21525
21526 if test "$ac_cv_header_png_h" = "yes"; then
21527 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21528echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21529if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21531else
21532 ac_check_lib_save_LIBS=$LIBS
21533LIBS="-lpng -lz -lm $LIBS"
21534cat >conftest.$ac_ext <<_ACEOF
21535/* confdefs.h. */
21536_ACEOF
21537cat confdefs.h >>conftest.$ac_ext
21538cat >>conftest.$ac_ext <<_ACEOF
21539/* end confdefs.h. */
21540
21541/* Override any gcc2 internal prototype to avoid an error. */
21542#ifdef __cplusplus
21543extern "C"
21544#endif
21545/* We use char because int might match the return type of a gcc2
21546 builtin and then its argument prototype would still apply. */
21547char png_check_sig ();
21548int
21549main ()
21550{
21551png_check_sig ();
21552 ;
21553 return 0;
21554}
21555_ACEOF
21556rm -f conftest.$ac_objext conftest$ac_exeext
21557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21558 (eval $ac_link) 2>conftest.er1
a848cd7e 21559 ac_status=$?
ac1cb8d3
VS
21560 grep -v '^ *+' conftest.er1 >conftest.err
21561 rm -f conftest.er1
21562 cat conftest.err >&5
a848cd7e
SC
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } &&
da4486fb 21565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; } &&
21571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573 (eval $ac_try) 2>&5
21574 ac_status=$?
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; }; then
21577 ac_cv_lib_png_png_check_sig=yes
21578else
21579 echo "$as_me: failed program was:" >&5
21580sed 's/^/| /' conftest.$ac_ext >&5
21581
21582ac_cv_lib_png_png_check_sig=no
21583fi
ac1cb8d3
VS
21584rm -f conftest.err conftest.$ac_objext \
21585 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21586LIBS=$ac_check_lib_save_LIBS
21587fi
21588echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21589echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21590if test $ac_cv_lib_png_png_check_sig = yes; then
21591 PNG_LINK=" -lpng -lz"
21592fi
21593
21594 fi
21595
21596 if test "x$PNG_LINK" = "x" ; then
21597 if test "$wxUSE_LIBPNG" = "sys" ; then
21598 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21599echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21600 { (exit 1); exit 1; }; }
21601 else
21602 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21603echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21604 wxUSE_LIBPNG=builtin
21605 fi
21606 else
21607 wxUSE_LIBPNG=sys
21608 fi
21609 fi
21610 fi
21611
21612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21613fi
21614
21615
21616JPEG_LINK=
21617if test "$wxUSE_LIBJPEG" != "no" ; then
21618 cat >>confdefs.h <<\_ACEOF
21619#define wxUSE_LIBJPEG 1
21620_ACEOF
21621
21622
21623 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21624 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21625echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21626 wxUSE_LIBJPEG=sys
21627 fi
21628
21629 if test "$wxUSE_MGL" != 1 ; then
21630 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21631 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21632echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21633 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21634 echo $ECHO_N "(cached) $ECHO_C" >&6
21635else
21636 cat >conftest.$ac_ext <<_ACEOF
21637/* confdefs.h. */
21638_ACEOF
21639cat confdefs.h >>conftest.$ac_ext
21640cat >>conftest.$ac_ext <<_ACEOF
21641/* end confdefs.h. */
21642
21643 #undef HAVE_STDLIB_H
21644 #include <stdio.h>
21645 #include <jpeglib.h>
21646
21647int
21648main ()
21649{
21650
21651
21652 ;
21653 return 0;
21654}
21655_ACEOF
21656rm -f conftest.$ac_objext
21657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21658 (eval $ac_compile) 2>conftest.er1
a848cd7e 21659 ac_status=$?
ac1cb8d3
VS
21660 grep -v '^ *+' conftest.er1 >conftest.err
21661 rm -f conftest.er1
21662 cat conftest.err >&5
a848cd7e
SC
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } &&
da4486fb 21665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21668 ac_status=$?
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; } &&
21671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21674 ac_status=$?
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21677 ac_cv_header_jpeglib_h=yes
21678else
21679 echo "$as_me: failed program was:" >&5
21680sed 's/^/| /' conftest.$ac_ext >&5
21681
21682ac_cv_header_jpeglib_h=no
21683
21684fi
ac1cb8d3 21685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21686
21687fi
21688
21689 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21690echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21691
21692 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21693 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21694echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21695if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21697else
21698 ac_check_lib_save_LIBS=$LIBS
21699LIBS="-ljpeg $LIBS"
21700cat >conftest.$ac_ext <<_ACEOF
21701/* confdefs.h. */
21702_ACEOF
21703cat confdefs.h >>conftest.$ac_ext
21704cat >>conftest.$ac_ext <<_ACEOF
21705/* end confdefs.h. */
21706
21707/* Override any gcc2 internal prototype to avoid an error. */
21708#ifdef __cplusplus
21709extern "C"
21710#endif
21711/* We use char because int might match the return type of a gcc2
21712 builtin and then its argument prototype would still apply. */
21713char jpeg_read_header ();
21714int
21715main ()
21716{
21717jpeg_read_header ();
21718 ;
21719 return 0;
21720}
21721_ACEOF
21722rm -f conftest.$ac_objext conftest$ac_exeext
21723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21724 (eval $ac_link) 2>conftest.er1
a848cd7e 21725 ac_status=$?
ac1cb8d3
VS
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
a848cd7e
SC
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } &&
da4486fb 21731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21734 ac_status=$?
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; } &&
21737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; }; then
21743 ac_cv_lib_jpeg_jpeg_read_header=yes
21744else
21745 echo "$as_me: failed program was:" >&5
21746sed 's/^/| /' conftest.$ac_ext >&5
21747
21748ac_cv_lib_jpeg_jpeg_read_header=no
21749fi
ac1cb8d3
VS
21750rm -f conftest.err conftest.$ac_objext \
21751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21752LIBS=$ac_check_lib_save_LIBS
21753fi
21754echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21755echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21756if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21757 JPEG_LINK=" -ljpeg"
21758fi
21759
21760 fi
21761
21762 if test "x$JPEG_LINK" = "x" ; then
21763 if test "$wxUSE_LIBJPEG" = "sys" ; then
21764 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21765echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21766 { (exit 1); exit 1; }; }
21767 else
21768 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21769echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21770 wxUSE_LIBJPEG=builtin
21771 fi
21772 else
21773 wxUSE_LIBJPEG=sys
21774 fi
21775 fi
21776 fi
21777fi
21778
21779
21780TIFF_LINK=
21781TIFF_PREREQ_LINKS=-lm
21782if test "$wxUSE_LIBTIFF" != "no" ; then
21783 cat >>confdefs.h <<\_ACEOF
21784#define wxUSE_LIBTIFF 1
21785_ACEOF
21786
21787
21788 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21789 if test "$wxUSE_LIBJPEG" = "sys"; then
21790 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21791 fi
21792 if test "$wxUSE_ZLIB" = "sys"; then
21793 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21794 fi
21795 if test "${ac_cv_header_tiffio_h+set}" = set; then
21796 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21797echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21798if test "${ac_cv_header_tiffio_h+set}" = set; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21800fi
21801echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21802echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21803else
21804 # Is the header compilable?
21805echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21806echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21807cat >conftest.$ac_ext <<_ACEOF
21808/* confdefs.h. */
21809_ACEOF
21810cat confdefs.h >>conftest.$ac_ext
21811cat >>conftest.$ac_ext <<_ACEOF
21812/* end confdefs.h. */
21813$ac_includes_default
21814#include <tiffio.h>
21815_ACEOF
21816rm -f conftest.$ac_objext
21817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21818 (eval $ac_compile) 2>conftest.er1
a848cd7e 21819 ac_status=$?
ac1cb8d3
VS
21820 grep -v '^ *+' conftest.er1 >conftest.err
21821 rm -f conftest.er1
21822 cat conftest.err >&5
a848cd7e
SC
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } &&
da4486fb 21825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827 (eval $ac_try) 2>&5
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; } &&
21831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21833 (eval $ac_try) 2>&5
21834 ac_status=$?
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); }; }; then
21837 ac_header_compiler=yes
21838else
21839 echo "$as_me: failed program was:" >&5
21840sed 's/^/| /' conftest.$ac_ext >&5
21841
21842ac_header_compiler=no
21843fi
ac1cb8d3 21844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21846echo "${ECHO_T}$ac_header_compiler" >&6
21847
21848# Is the header present?
21849echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21850echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21851cat >conftest.$ac_ext <<_ACEOF
21852/* confdefs.h. */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h. */
21857#include <tiffio.h>
21858_ACEOF
21859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21861 ac_status=$?
21862 grep -v '^ *+' conftest.er1 >conftest.err
21863 rm -f conftest.er1
21864 cat conftest.err >&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } >/dev/null; then
21867 if test -s conftest.err; then
21868 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21870 else
21871 ac_cpp_err=
21872 fi
21873else
21874 ac_cpp_err=yes
21875fi
21876if test -z "$ac_cpp_err"; then
21877 ac_header_preproc=yes
21878else
21879 echo "$as_me: failed program was:" >&5
21880sed 's/^/| /' conftest.$ac_ext >&5
21881
21882 ac_header_preproc=no
21883fi
21884rm -f conftest.err conftest.$ac_ext
21885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21886echo "${ECHO_T}$ac_header_preproc" >&6
21887
21888# So? What about this header?
ac1cb8d3
VS
21889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21890 yes:no: )
a848cd7e
SC
21891 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21892echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21893 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21894echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21895 ac_header_preproc=yes
a848cd7e 21896 ;;
ac1cb8d3 21897 no:yes:* )
a848cd7e
SC
21898 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21899echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21900 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21901echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21902 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21903echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21905echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21906 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21907echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21908 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21909echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21910 (
21911 cat <<\_ASBOX
ac1cb8d3
VS
21912## ----------------------------------------- ##
21913## Report this to wx-dev@lists.wxwidgets.org ##
21914## ----------------------------------------- ##
a848cd7e
SC
21915_ASBOX
21916 ) |
21917 sed "s/^/$as_me: WARNING: /" >&2
21918 ;;
21919esac
21920echo "$as_me:$LINENO: checking for tiffio.h" >&5
21921echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21922if test "${ac_cv_header_tiffio_h+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21924else
21925 ac_cv_header_tiffio_h=$ac_header_preproc
21926fi
21927echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21928echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21929
21930fi
21931if test $ac_cv_header_tiffio_h = yes; then
21932
21933 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21934echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21935if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21937else
21938 ac_check_lib_save_LIBS=$LIBS
21939LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21940cat >conftest.$ac_ext <<_ACEOF
21941/* confdefs.h. */
21942_ACEOF
21943cat confdefs.h >>conftest.$ac_ext
21944cat >>conftest.$ac_ext <<_ACEOF
21945/* end confdefs.h. */
21946
21947/* Override any gcc2 internal prototype to avoid an error. */
21948#ifdef __cplusplus
21949extern "C"
21950#endif
21951/* We use char because int might match the return type of a gcc2
21952 builtin and then its argument prototype would still apply. */
21953char TIFFError ();
21954int
21955main ()
21956{
21957TIFFError ();
21958 ;
21959 return 0;
21960}
21961_ACEOF
21962rm -f conftest.$ac_objext conftest$ac_exeext
21963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21964 (eval $ac_link) 2>conftest.er1
a848cd7e 21965 ac_status=$?
ac1cb8d3
VS
21966 grep -v '^ *+' conftest.er1 >conftest.err
21967 rm -f conftest.er1
21968 cat conftest.err >&5
a848cd7e
SC
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } &&
da4486fb 21971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21974 ac_status=$?
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; } &&
21977 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21980 ac_status=$?
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
21983 ac_cv_lib_tiff_TIFFError=yes
21984else
21985 echo "$as_me: failed program was:" >&5
21986sed 's/^/| /' conftest.$ac_ext >&5
21987
21988ac_cv_lib_tiff_TIFFError=no
21989fi
ac1cb8d3
VS
21990rm -f conftest.err conftest.$ac_objext \
21991 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21992LIBS=$ac_check_lib_save_LIBS
21993fi
21994echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21995echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21996if test $ac_cv_lib_tiff_TIFFError = yes; then
21997 TIFF_LINK=" -ltiff"
21998fi
21999
22000
22001
22002fi
22003
22004
22005
22006 if test "x$TIFF_LINK" = "x" ; then
22007 if test "$wxUSE_LIBTIFF" = "sys" ; then
22008 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
22009echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
22010 { (exit 1); exit 1; }; }
22011 else
22012 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
22013echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
22014 wxUSE_LIBTIFF=builtin
22015 fi
22016 else
22017 wxUSE_LIBTIFF=sys
22018 fi
22019 fi
22020fi
22021
22022
22023if test "$wxUSE_EXPAT" != "no"; then
22024 wxUSE_XML=yes
22025 cat >>confdefs.h <<\_ACEOF
22026#define wxUSE_EXPAT 1
22027_ACEOF
22028
22029 cat >>confdefs.h <<\_ACEOF
22030#define wxUSE_XML 1
22031_ACEOF
22032
22033
22034 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
22035 if test "${ac_cv_header_expat_h+set}" = set; then
22036 echo "$as_me:$LINENO: checking for expat.h" >&5
22037echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22038if test "${ac_cv_header_expat_h+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22040fi
22041echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22042echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22043else
22044 # Is the header compilable?
22045echo "$as_me:$LINENO: checking expat.h usability" >&5
22046echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
22047cat >conftest.$ac_ext <<_ACEOF
22048/* confdefs.h. */
22049_ACEOF
22050cat confdefs.h >>conftest.$ac_ext
22051cat >>conftest.$ac_ext <<_ACEOF
22052/* end confdefs.h. */
22053$ac_includes_default
22054#include <expat.h>
22055_ACEOF
22056rm -f conftest.$ac_objext
22057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22058 (eval $ac_compile) 2>conftest.er1
a848cd7e 22059 ac_status=$?
ac1cb8d3
VS
22060 grep -v '^ *+' conftest.er1 >conftest.err
22061 rm -f conftest.er1
22062 cat conftest.err >&5
a848cd7e
SC
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } &&
da4486fb 22065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067 (eval $ac_try) 2>&5
22068 ac_status=$?
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); }; } &&
22071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22074 ac_status=$?
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; }; then
22077 ac_header_compiler=yes
22078else
22079 echo "$as_me: failed program was:" >&5
22080sed 's/^/| /' conftest.$ac_ext >&5
22081
22082ac_header_compiler=no
22083fi
ac1cb8d3 22084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22085echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22086echo "${ECHO_T}$ac_header_compiler" >&6
22087
22088# Is the header present?
22089echo "$as_me:$LINENO: checking expat.h presence" >&5
22090echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
22091cat >conftest.$ac_ext <<_ACEOF
22092/* confdefs.h. */
22093_ACEOF
22094cat confdefs.h >>conftest.$ac_ext
22095cat >>conftest.$ac_ext <<_ACEOF
22096/* end confdefs.h. */
22097#include <expat.h>
22098_ACEOF
22099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22101 ac_status=$?
22102 grep -v '^ *+' conftest.er1 >conftest.err
22103 rm -f conftest.er1
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } >/dev/null; then
22107 if test -s conftest.err; then
22108 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22110 else
22111 ac_cpp_err=
22112 fi
22113else
22114 ac_cpp_err=yes
22115fi
22116if test -z "$ac_cpp_err"; then
22117 ac_header_preproc=yes
22118else
22119 echo "$as_me: failed program was:" >&5
22120sed 's/^/| /' conftest.$ac_ext >&5
22121
22122 ac_header_preproc=no
22123fi
22124rm -f conftest.err conftest.$ac_ext
22125echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22126echo "${ECHO_T}$ac_header_preproc" >&6
22127
22128# So? What about this header?
ac1cb8d3
VS
22129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22130 yes:no: )
a848cd7e
SC
22131 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22132echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22133 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22134echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22135 ac_header_preproc=yes
a848cd7e 22136 ;;
ac1cb8d3 22137 no:yes:* )
a848cd7e
SC
22138 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22139echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22140 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
22141echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
22142 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22143echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22144 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22145echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22146 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22147echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22148 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22149echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22150 (
22151 cat <<\_ASBOX
ac1cb8d3
VS
22152## ----------------------------------------- ##
22153## Report this to wx-dev@lists.wxwidgets.org ##
22154## ----------------------------------------- ##
a848cd7e
SC
22155_ASBOX
22156 ) |
22157 sed "s/^/$as_me: WARNING: /" >&2
22158 ;;
22159esac
22160echo "$as_me:$LINENO: checking for expat.h" >&5
22161echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22162if test "${ac_cv_header_expat_h+set}" = set; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
22164else
22165 ac_cv_header_expat_h=$ac_header_preproc
22166fi
22167echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22168echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22169
22170fi
22171if test $ac_cv_header_expat_h = yes; then
22172 found_expat_h=1
22173fi
22174
22175
22176 if test "x$found_expat_h" = "x1"; then
22177 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22178echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22179if test "${wx_cv_expat_is_not_broken+set}" = set; then
22180 echo $ECHO_N "(cached) $ECHO_C" >&6
22181else
22182
22183
22184
22185 ac_ext=cc
22186ac_cpp='$CXXCPP $CPPFLAGS'
22187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22190
22191 cat >conftest.$ac_ext <<_ACEOF
22192/* confdefs.h. */
22193_ACEOF
22194cat confdefs.h >>conftest.$ac_ext
22195cat >>conftest.$ac_ext <<_ACEOF
22196/* end confdefs.h. */
22197#include <expat.h>
22198int
22199main ()
22200{
22201
22202 ;
22203 return 0;
22204}
22205_ACEOF
22206rm -f conftest.$ac_objext
22207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22208 (eval $ac_compile) 2>conftest.er1
a848cd7e 22209 ac_status=$?
ac1cb8d3
VS
22210 grep -v '^ *+' conftest.er1 >conftest.err
22211 rm -f conftest.er1
22212 cat conftest.err >&5
a848cd7e
SC
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } &&
da4486fb 22215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217 (eval $ac_try) 2>&5
22218 ac_status=$?
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; } &&
22221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22223 (eval $ac_try) 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; }; then
22227 wx_cv_expat_is_not_broken=yes
22228else
22229 echo "$as_me: failed program was:" >&5
22230sed 's/^/| /' conftest.$ac_ext >&5
22231
22232wx_cv_expat_is_not_broken=no
22233
22234fi
ac1cb8d3 22235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22236 ac_ext=c
22237ac_cpp='$CPP $CPPFLAGS'
22238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22240ac_compiler_gnu=$ac_cv_c_compiler_gnu
22241
22242
22243
22244fi
22245echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22246echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22247 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22248 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22249echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22250if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252else
22253 ac_check_lib_save_LIBS=$LIBS
22254LIBS="-lexpat $LIBS"
22255cat >conftest.$ac_ext <<_ACEOF
22256/* confdefs.h. */
22257_ACEOF
22258cat confdefs.h >>conftest.$ac_ext
22259cat >>conftest.$ac_ext <<_ACEOF
22260/* end confdefs.h. */
22261
22262/* Override any gcc2 internal prototype to avoid an error. */
22263#ifdef __cplusplus
22264extern "C"
22265#endif
22266/* We use char because int might match the return type of a gcc2
22267 builtin and then its argument prototype would still apply. */
22268char XML_ParserCreate ();
22269int
22270main ()
22271{
22272XML_ParserCreate ();
22273 ;
22274 return 0;
22275}
22276_ACEOF
22277rm -f conftest.$ac_objext conftest$ac_exeext
22278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22279 (eval $ac_link) 2>conftest.er1
a848cd7e 22280 ac_status=$?
ac1cb8d3
VS
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
a848cd7e
SC
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
da4486fb 22286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22289 ac_status=$?
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; } &&
22292 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22294 (eval $ac_try) 2>&5
22295 ac_status=$?
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; }; then
22298 ac_cv_lib_expat_XML_ParserCreate=yes
22299else
22300 echo "$as_me: failed program was:" >&5
22301sed 's/^/| /' conftest.$ac_ext >&5
22302
22303ac_cv_lib_expat_XML_ParserCreate=no
22304fi
ac1cb8d3
VS
22305rm -f conftest.err conftest.$ac_objext \
22306 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22307LIBS=$ac_check_lib_save_LIBS
22308fi
22309echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22310echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22311if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22312 EXPAT_LINK=" -lexpat"
22313fi
22314
22315 fi
22316 fi
22317 if test "x$EXPAT_LINK" = "x" ; then
22318 if test "$wxUSE_EXPAT" = "sys" ; then
22319 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22320echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22321 { (exit 1); exit 1; }; }
22322 else
22323 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22324echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22325 wxUSE_EXPAT=builtin
22326 fi
22327 else
22328 wxUSE_EXPAT=sys
22329 fi
22330 fi
22331 if test "$wxUSE_EXPAT" = "builtin" ; then
22332
22333
22334subdirs="$subdirs src/expat"
22335
22336 fi
22337fi
22338
22339
22340
22341if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
22342 if test "${ac_cv_header_mspack_h+set}" = set; then
22343 echo "$as_me:$LINENO: checking for mspack.h" >&5
22344echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22345if test "${ac_cv_header_mspack_h+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22347fi
22348echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22349echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22350else
22351 # Is the header compilable?
22352echo "$as_me:$LINENO: checking mspack.h usability" >&5
22353echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22354cat >conftest.$ac_ext <<_ACEOF
22355/* confdefs.h. */
22356_ACEOF
22357cat confdefs.h >>conftest.$ac_ext
22358cat >>conftest.$ac_ext <<_ACEOF
22359/* end confdefs.h. */
22360$ac_includes_default
22361#include <mspack.h>
22362_ACEOF
22363rm -f conftest.$ac_objext
22364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22365 (eval $ac_compile) 2>conftest.er1
a848cd7e 22366 ac_status=$?
ac1cb8d3
VS
22367 grep -v '^ *+' conftest.er1 >conftest.err
22368 rm -f conftest.er1
22369 cat conftest.err >&5
a848cd7e
SC
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } &&
da4486fb 22372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374 (eval $ac_try) 2>&5
22375 ac_status=$?
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; } &&
22378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380 (eval $ac_try) 2>&5
22381 ac_status=$?
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); }; }; then
22384 ac_header_compiler=yes
22385else
22386 echo "$as_me: failed program was:" >&5
22387sed 's/^/| /' conftest.$ac_ext >&5
22388
22389ac_header_compiler=no
22390fi
ac1cb8d3 22391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22393echo "${ECHO_T}$ac_header_compiler" >&6
22394
22395# Is the header present?
22396echo "$as_me:$LINENO: checking mspack.h presence" >&5
22397echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22398cat >conftest.$ac_ext <<_ACEOF
22399/* confdefs.h. */
22400_ACEOF
22401cat confdefs.h >>conftest.$ac_ext
22402cat >>conftest.$ac_ext <<_ACEOF
22403/* end confdefs.h. */
22404#include <mspack.h>
22405_ACEOF
22406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22408 ac_status=$?
22409 grep -v '^ *+' conftest.er1 >conftest.err
22410 rm -f conftest.er1
22411 cat conftest.err >&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } >/dev/null; then
22414 if test -s conftest.err; then
22415 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22417 else
22418 ac_cpp_err=
22419 fi
22420else
22421 ac_cpp_err=yes
22422fi
22423if test -z "$ac_cpp_err"; then
22424 ac_header_preproc=yes
22425else
22426 echo "$as_me: failed program was:" >&5
22427sed 's/^/| /' conftest.$ac_ext >&5
22428
22429 ac_header_preproc=no
22430fi
22431rm -f conftest.err conftest.$ac_ext
22432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22433echo "${ECHO_T}$ac_header_preproc" >&6
22434
22435# So? What about this header?
ac1cb8d3
VS
22436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22437 yes:no: )
a848cd7e
SC
22438 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22439echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22440 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22441echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22442 ac_header_preproc=yes
a848cd7e 22443 ;;
ac1cb8d3 22444 no:yes:* )
a848cd7e
SC
22445 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22446echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22447 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22448echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22449 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22450echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22451 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22452echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22453 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22454echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22455 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22456echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22457 (
22458 cat <<\_ASBOX
ac1cb8d3
VS
22459## ----------------------------------------- ##
22460## Report this to wx-dev@lists.wxwidgets.org ##
22461## ----------------------------------------- ##
a848cd7e
SC
22462_ASBOX
22463 ) |
22464 sed "s/^/$as_me: WARNING: /" >&2
22465 ;;
22466esac
22467echo "$as_me:$LINENO: checking for mspack.h" >&5
22468echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22469if test "${ac_cv_header_mspack_h+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22471else
22472 ac_cv_header_mspack_h=$ac_header_preproc
22473fi
22474echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22475echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22476
22477fi
22478if test $ac_cv_header_mspack_h = yes; then
22479 found_mspack_h=1
22480fi
22481
22482
22483 if test "x$found_mspack_h" = "x1"; then
22484 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22485echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22486if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22487 echo $ECHO_N "(cached) $ECHO_C" >&6
22488else
22489 ac_check_lib_save_LIBS=$LIBS
22490LIBS="-lmspack $LIBS"
22491cat >conftest.$ac_ext <<_ACEOF
22492/* confdefs.h. */
22493_ACEOF
22494cat confdefs.h >>conftest.$ac_ext
22495cat >>conftest.$ac_ext <<_ACEOF
22496/* end confdefs.h. */
22497
22498/* Override any gcc2 internal prototype to avoid an error. */
22499#ifdef __cplusplus
22500extern "C"
22501#endif
22502/* We use char because int might match the return type of a gcc2
22503 builtin and then its argument prototype would still apply. */
22504char mspack_create_chm_decompressor ();
22505int
22506main ()
22507{
22508mspack_create_chm_decompressor ();
22509 ;
22510 return 0;
22511}
22512_ACEOF
22513rm -f conftest.$ac_objext conftest$ac_exeext
22514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22515 (eval $ac_link) 2>conftest.er1
a848cd7e 22516 ac_status=$?
ac1cb8d3
VS
22517 grep -v '^ *+' conftest.er1 >conftest.err
22518 rm -f conftest.er1
22519 cat conftest.err >&5
a848cd7e
SC
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } &&
da4486fb 22522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; } &&
22528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22534 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22535else
22536 echo "$as_me: failed program was:" >&5
22537sed 's/^/| /' conftest.$ac_ext >&5
22538
22539ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22540fi
ac1cb8d3
VS
22541rm -f conftest.err conftest.$ac_objext \
22542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22543LIBS=$ac_check_lib_save_LIBS
22544fi
22545echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22546echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22547if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22548 MSPACK_LINK=" -lmspack"
22549fi
22550
22551 fi
22552 if test "x$MSPACK_LINK" = "x" ; then
22553 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
22554 fi
22555fi
22556
22557if test "$wxUSE_LIBMSPACK" != "no"; then
22558 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
22559#define wxUSE_LIBMSPACK 1
22560_ACEOF
22561
a848cd7e
SC
22562fi
22563
22564
22565
22566AFMINSTALL=
22567WIN32INSTALL=
22568
22569TOOLKIT=
22570TOOLKIT_INCLUDE=
22571WIDGET_SET=
22572
22573if test "$USE_WIN32" = 1 ; then
22574
22575for ac_header in w32api.h
22576do
22577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22578if eval "test \"\${$as_ac_Header+set}\" = set"; then
22579 echo "$as_me:$LINENO: checking for $ac_header" >&5
22580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22581if eval "test \"\${$as_ac_Header+set}\" = set"; then
22582 echo $ECHO_N "(cached) $ECHO_C" >&6
22583fi
22584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22586else
22587 # Is the header compilable?
22588echo "$as_me:$LINENO: checking $ac_header usability" >&5
22589echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22590cat >conftest.$ac_ext <<_ACEOF
22591/* confdefs.h. */
22592_ACEOF
22593cat confdefs.h >>conftest.$ac_ext
22594cat >>conftest.$ac_ext <<_ACEOF
22595/* end confdefs.h. */
22596$ac_includes_default
22597#include <$ac_header>
22598_ACEOF
22599rm -f conftest.$ac_objext
22600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22601 (eval $ac_compile) 2>conftest.er1
a848cd7e 22602 ac_status=$?
ac1cb8d3
VS
22603 grep -v '^ *+' conftest.er1 >conftest.err
22604 rm -f conftest.er1
22605 cat conftest.err >&5
a848cd7e
SC
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); } &&
da4486fb 22608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22611 ac_status=$?
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; } &&
22614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; }; then
22620 ac_header_compiler=yes
22621else
22622 echo "$as_me: failed program was:" >&5
22623sed 's/^/| /' conftest.$ac_ext >&5
22624
22625ac_header_compiler=no
22626fi
ac1cb8d3 22627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22629echo "${ECHO_T}$ac_header_compiler" >&6
22630
22631# Is the header present?
22632echo "$as_me:$LINENO: checking $ac_header presence" >&5
22633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22634cat >conftest.$ac_ext <<_ACEOF
22635/* confdefs.h. */
22636_ACEOF
22637cat confdefs.h >>conftest.$ac_ext
22638cat >>conftest.$ac_ext <<_ACEOF
22639/* end confdefs.h. */
22640#include <$ac_header>
22641_ACEOF
22642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22644 ac_status=$?
22645 grep -v '^ *+' conftest.er1 >conftest.err
22646 rm -f conftest.er1
22647 cat conftest.err >&5
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); } >/dev/null; then
22650 if test -s conftest.err; then
22651 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22653 else
22654 ac_cpp_err=
22655 fi
22656else
22657 ac_cpp_err=yes
22658fi
22659if test -z "$ac_cpp_err"; then
22660 ac_header_preproc=yes
22661else
22662 echo "$as_me: failed program was:" >&5
22663sed 's/^/| /' conftest.$ac_ext >&5
22664
22665 ac_header_preproc=no
22666fi
22667rm -f conftest.err conftest.$ac_ext
22668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22669echo "${ECHO_T}$ac_header_preproc" >&6
22670
22671# So? What about this header?
ac1cb8d3
VS
22672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22673 yes:no: )
a848cd7e
SC
22674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22678 ac_header_preproc=yes
a848cd7e 22679 ;;
ac1cb8d3 22680 no:yes:* )
a848cd7e
SC
22681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22688echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22693 (
22694 cat <<\_ASBOX
ac1cb8d3
VS
22695## ----------------------------------------- ##
22696## Report this to wx-dev@lists.wxwidgets.org ##
22697## ----------------------------------------- ##
a848cd7e
SC
22698_ASBOX
22699 ) |
22700 sed "s/^/$as_me: WARNING: /" >&2
22701 ;;
22702esac
22703echo "$as_me:$LINENO: checking for $ac_header" >&5
22704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22705if eval "test \"\${$as_ac_Header+set}\" = set"; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
22707else
ac1cb8d3 22708 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22709fi
22710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22712
22713fi
22714if test `eval echo '${'$as_ac_Header'}'` = yes; then
22715 cat >>confdefs.h <<_ACEOF
22716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22717_ACEOF
22718
22719fi
22720
22721done
22722
22723 if test "${ac_cv_header_windows_h+set}" = set; then
22724 echo "$as_me:$LINENO: checking for windows.h" >&5
22725echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22726if test "${ac_cv_header_windows_h+set}" = set; then
22727 echo $ECHO_N "(cached) $ECHO_C" >&6
22728fi
22729echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22730echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22731else
22732 # Is the header compilable?
22733echo "$as_me:$LINENO: checking windows.h usability" >&5
22734echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22735cat >conftest.$ac_ext <<_ACEOF
22736/* confdefs.h. */
22737_ACEOF
22738cat confdefs.h >>conftest.$ac_ext
22739cat >>conftest.$ac_ext <<_ACEOF
22740/* end confdefs.h. */
22741$ac_includes_default
22742#include <windows.h>
22743_ACEOF
22744rm -f conftest.$ac_objext
22745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22746 (eval $ac_compile) 2>conftest.er1
a848cd7e 22747 ac_status=$?
ac1cb8d3
VS
22748 grep -v '^ *+' conftest.er1 >conftest.err
22749 rm -f conftest.er1
22750 cat conftest.err >&5
a848cd7e
SC
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } &&
da4486fb 22753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22756 ac_status=$?
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; } &&
22759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22761 (eval $ac_try) 2>&5
22762 ac_status=$?
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); }; }; then
22765 ac_header_compiler=yes
22766else
22767 echo "$as_me: failed program was:" >&5
22768sed 's/^/| /' conftest.$ac_ext >&5
22769
22770ac_header_compiler=no
22771fi
ac1cb8d3 22772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22774echo "${ECHO_T}$ac_header_compiler" >&6
22775
22776# Is the header present?
22777echo "$as_me:$LINENO: checking windows.h presence" >&5
22778echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22779cat >conftest.$ac_ext <<_ACEOF
22780/* confdefs.h. */
22781_ACEOF
22782cat confdefs.h >>conftest.$ac_ext
22783cat >>conftest.$ac_ext <<_ACEOF
22784/* end confdefs.h. */
22785#include <windows.h>
22786_ACEOF
22787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } >/dev/null; then
22795 if test -s conftest.err; then
22796 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22798 else
22799 ac_cpp_err=
22800 fi
22801else
22802 ac_cpp_err=yes
22803fi
22804if test -z "$ac_cpp_err"; then
22805 ac_header_preproc=yes
22806else
22807 echo "$as_me: failed program was:" >&5
22808sed 's/^/| /' conftest.$ac_ext >&5
22809
22810 ac_header_preproc=no
22811fi
22812rm -f conftest.err conftest.$ac_ext
22813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22814echo "${ECHO_T}$ac_header_preproc" >&6
22815
22816# So? What about this header?
ac1cb8d3
VS
22817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22818 yes:no: )
a848cd7e
SC
22819 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22820echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22821 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22822echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22823 ac_header_preproc=yes
a848cd7e 22824 ;;
ac1cb8d3 22825 no:yes:* )
a848cd7e
SC
22826 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22827echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22828 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22829echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22830 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22831echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22832 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22833echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22834 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22835echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22836 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22837echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22838 (
22839 cat <<\_ASBOX
ac1cb8d3
VS
22840## ----------------------------------------- ##
22841## Report this to wx-dev@lists.wxwidgets.org ##
22842## ----------------------------------------- ##
a848cd7e
SC
22843_ASBOX
22844 ) |
22845 sed "s/^/$as_me: WARNING: /" >&2
22846 ;;
22847esac
22848echo "$as_me:$LINENO: checking for windows.h" >&5
22849echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22850if test "${ac_cv_header_windows_h+set}" = set; then
22851 echo $ECHO_N "(cached) $ECHO_C" >&6
22852else
22853 ac_cv_header_windows_h=$ac_header_preproc
22854fi
22855echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22856echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22857
22858fi
22859if test $ac_cv_header_windows_h = yes; then
22860 :
22861else
22862
22863 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22864echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22865 { (exit 1); exit 1; }; }
22866
22867fi
22868
22869
22870
22871 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22872
22873 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22874 LIBS="$LIBS -loleacc"
22875 fi
22876
22877 case "${host}" in
22878 *-*-cygwin* )
22879 LIBS="$LIBS -lkernel32 -luser32"
22880 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22881 esac
22882
22883 if test "$wxUSE_ODBC" = "sys" ; then
22884 wxUSE_ODBC = "yes"
22885 fi
22886 if test "$wxUSE_ODBC" = "yes" ; then
22887 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22888 cat >>confdefs.h <<\_ACEOF
22889#define wxUSE_ODBC 1
22890_ACEOF
22891
22892 fi
22893
22894 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22895 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22896
22897 WIN32INSTALL=win32install
22898fi
22899
22900if test "$wxUSE_GUI" = "yes"; then
22901 USE_GUI=1
22902
22903 GUI_TK_LIBRARY=
22904
22905 WXGTK12=
22906 WXGTK127=
22907 WXGTK20=
22908 WXGPE=
22909
207bc66c
RN
22910 if test "$wxUSE_COCOA" = 1 ; then
22911 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22912 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22913echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22914 wxUSE_PRINTING_ARCHITECTURE=no
22915 fi
22916 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22917 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22918echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22919 wxUSE_DRAG_AND_DROP=no
22920 fi
22921 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22922 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22923echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22924 wxUSE_DRAGIMAGE=no
22925 fi
22926 fi
22927
a848cd7e
SC
22928 if test "$wxUSE_MSW" = 1 ; then
22929 TOOLKIT=MSW
22930 GUIDIST=MSW_DIST
22931
ceec2216 22932 case "${host}" in
a848cd7e
SC
22933 *-*-mingw32* )
22934 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22935 esac
22936 fi
22937
22938 if test "$wxUSE_GTK" = 1; then
22939 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22940echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22941
22942 gtk_version_cached=1
22943 if test "${wx_cv_lib_gtk+set}" = set; then
22944 echo $ECHO_N "(cached) $ECHO_C" >&6
22945else
22946
22947 gtk_version_cached=0
22948 echo "$as_me:$LINENO: result: " >&5
22949echo "${ECHO_T}" >&6
22950
22951 GTK_MODULES=
22952 if test "$wxUSE_THREADS" = "yes"; then
22953 GTK_MODULES=gthread
22954 fi
22955
22956 wx_cv_lib_gtk=
22957 if test "x$wxUSE_GTK2" = "xyes"; then
22958 # Check whether --enable-gtktest or --disable-gtktest was given.
22959if test "${enable_gtktest+set}" = set; then
22960 enableval="$enable_gtktest"
22961
22962else
22963 enable_gtktest=yes
22964fi;
22965
22966 pkg_config_args=gtk+-2.0
22967 for module in . $GTK_MODULES
22968 do
22969 case "$module" in
22970 gthread)
22971 pkg_config_args="$pkg_config_args gthread-2.0"
22972 ;;
22973 esac
22974 done
22975
22976 no_gtk=""
22977
22978 # Extract the first word of "pkg-config", so it can be a program name with args.
22979set dummy pkg-config; ac_word=$2
22980echo "$as_me:$LINENO: checking for $ac_word" >&5
22981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22982if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22983 echo $ECHO_N "(cached) $ECHO_C" >&6
22984else
22985 case $PKG_CONFIG in
22986 [\\/]* | ?:[\\/]*)
22987 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22988 ;;
22989 *)
22990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22991for as_dir in $PATH
22992do
22993 IFS=$as_save_IFS
22994 test -z "$as_dir" && as_dir=.
22995 for ac_exec_ext in '' $ac_executable_extensions; do
22996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22997 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22999 break 2
23000 fi
23001done
23002done
23003
23004 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23005 ;;
23006esac
23007fi
23008PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23009
23010if test -n "$PKG_CONFIG"; then
23011 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23012echo "${ECHO_T}$PKG_CONFIG" >&6
23013else
23014 echo "$as_me:$LINENO: result: no" >&5
23015echo "${ECHO_T}no" >&6
23016fi
23017
23018
23019 if test x$PKG_CONFIG != xno ; then
23020 if pkg-config --atleast-pkgconfig-version 0.7 ; then
23021 :
23022 else
c2218763 23023 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
23024 no_gtk=yes
23025 PKG_CONFIG=no
23026 fi
23027 else
23028 no_gtk=yes
23029 fi
23030
23031 min_gtk_version=2.0.0
23032 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
23033echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
23034
23035 if test x$PKG_CONFIG != xno ; then
23036 ## don't try to run the test against uninstalled libtool libs
23037 if $PKG_CONFIG --uninstalled $pkg_config_args; then
23038 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
23039 enable_gtktest=no
23040 fi
23041
23042 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
23043 :
23044 else
23045 no_gtk=yes
23046 fi
23047 fi
23048
23049 if test x"$no_gtk" = x ; then
23050 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
23051 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
23052 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23053 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23054 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23055 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23056 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23057 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23058 if test "x$enable_gtktest" = "xyes" ; then
23059 ac_save_CFLAGS="$CFLAGS"
23060 ac_save_LIBS="$LIBS"
23061 CFLAGS="$CFLAGS $GTK_CFLAGS"
23062 LIBS="$GTK_LIBS $LIBS"
23063 rm -f conf.gtktest
23064 if test "$cross_compiling" = yes; then
23065 echo $ac_n "cross compiling; assumed OK... $ac_c"
23066else
23067 cat >conftest.$ac_ext <<_ACEOF
23068/* confdefs.h. */
23069_ACEOF
23070cat confdefs.h >>conftest.$ac_ext
23071cat >>conftest.$ac_ext <<_ACEOF
23072/* end confdefs.h. */
23073
23074#include <gtk/gtk.h>
23075#include <stdio.h>
23076#include <stdlib.h>
23077
23078int
23079main ()
23080{
23081 int major, minor, micro;
23082 char *tmp_version;
23083
23084 system ("touch conf.gtktest");
23085
23086 /* HP/UX 9 (%@#!) writes to sscanf strings */
23087 tmp_version = g_strdup("$min_gtk_version");
23088 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23089 printf("%s, bad version string\n", "$min_gtk_version");
23090 exit(1);
23091 }
23092
23093 if ((gtk_major_version != $gtk_config_major_version) ||
23094 (gtk_minor_version != $gtk_config_minor_version) ||
23095 (gtk_micro_version != $gtk_config_micro_version))
23096 {
23097 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23098 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23099 gtk_major_version, gtk_minor_version, gtk_micro_version);
23100 printf ("*** was found! If pkg-config was correct, then it is best\n");
23101 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23102 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23103 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23104 printf("*** required on your system.\n");
23105 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
23106 printf("*** to point to the correct configuration files\n");
23107 }
23108 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23109 (gtk_minor_version != GTK_MINOR_VERSION) ||
23110 (gtk_micro_version != GTK_MICRO_VERSION))
23111 {
23112 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23113 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23114 printf("*** library (version %d.%d.%d)\n",
23115 gtk_major_version, gtk_minor_version, gtk_micro_version);
23116 }
23117 else
23118 {
23119 if ((gtk_major_version > major) ||
23120 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23121 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23122 {
23123 return 0;
23124 }
23125 else
23126 {
23127 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23128 gtk_major_version, gtk_minor_version, gtk_micro_version);
23129 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23130 major, minor, micro);
23131 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23132 printf("***\n");
23133 printf("*** If you have already installed a sufficiently new version, this error\n");
23134 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
23135 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23136 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
23137 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
23138 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23139 printf("*** so that the correct libraries are found at run-time))\n");
23140 }
23141 }
23142 return 1;
23143}
23144
23145_ACEOF
23146rm -f conftest$ac_exeext
23147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23148 (eval $ac_link) 2>&5
23149 ac_status=$?
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23153 (eval $ac_try) 2>&5
23154 ac_status=$?
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); }; }; then
23157 :
23158else
23159 echo "$as_me: program exited with status $ac_status" >&5
23160echo "$as_me: failed program was:" >&5
23161sed 's/^/| /' conftest.$ac_ext >&5
23162
23163( exit $ac_status )
23164no_gtk=yes
23165fi
ac1cb8d3 23166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23167fi
23168 CFLAGS="$ac_save_CFLAGS"
23169 LIBS="$ac_save_LIBS"
23170 fi
23171 fi
23172 if test "x$no_gtk" = x ; then
23173 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23174echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23175 wx_cv_lib_gtk=2.0
23176 else
23177 echo "$as_me:$LINENO: result: no" >&5
23178echo "${ECHO_T}no" >&6
23179 if test "$PKG_CONFIG" = "no" ; then
23180 echo "*** A new enough version of pkg-config was not found."
23181 echo "*** See http://pkgconfig.sourceforge.net"
23182 else
23183 if test -f conf.gtktest ; then
23184 :
23185 else
23186 echo "*** Could not run GTK+ test program, checking why..."
23187 ac_save_CFLAGS="$CFLAGS"
23188 ac_save_LIBS="$LIBS"
23189 CFLAGS="$CFLAGS $GTK_CFLAGS"
23190 LIBS="$LIBS $GTK_LIBS"
23191 cat >conftest.$ac_ext <<_ACEOF
23192/* confdefs.h. */
23193_ACEOF
23194cat confdefs.h >>conftest.$ac_ext
23195cat >>conftest.$ac_ext <<_ACEOF
23196/* end confdefs.h. */
23197
23198#include <gtk/gtk.h>
23199#include <stdio.h>
23200
23201int
23202main ()
23203{
23204 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23205 ;
23206 return 0;
23207}
23208_ACEOF
23209rm -f conftest.$ac_objext conftest$ac_exeext
23210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23211 (eval $ac_link) 2>conftest.er1
a848cd7e 23212 ac_status=$?
ac1cb8d3
VS
23213 grep -v '^ *+' conftest.er1 >conftest.err
23214 rm -f conftest.er1
23215 cat conftest.err >&5
a848cd7e
SC
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } &&
da4486fb 23218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23221 ac_status=$?
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; } &&
23224 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226 (eval $ac_try) 2>&5
23227 ac_status=$?
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; }; then
23230 echo "*** The test program compiled, but did not run. This usually means"
23231 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23232 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23233 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23234 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23235 echo "*** is required on your system"
23236 echo "***"
23237 echo "*** If you have an old version installed, it is best to remove it, although"
23238 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23239else
23240 echo "$as_me: failed program was:" >&5
23241sed 's/^/| /' conftest.$ac_ext >&5
23242
23243 echo "*** The test program failed to compile or link. See the file config.log for the"
23244 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23245fi
ac1cb8d3
VS
23246rm -f conftest.err conftest.$ac_objext \
23247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23248 CFLAGS="$ac_save_CFLAGS"
23249 LIBS="$ac_save_LIBS"
23250 fi
23251 fi
23252 GTK_CFLAGS=""
23253 GTK_LIBS=""
23254 :
23255 fi
23256
23257
23258 rm -f conf.gtktest
23259
23260 else
23261
23262# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23263if test "${with_gtk_prefix+set}" = set; then
23264 withval="$with_gtk_prefix"
23265 gtk_config_prefix="$withval"
23266else
23267 gtk_config_prefix=""
23268fi;
23269
23270# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23271if test "${with_gtk_exec_prefix+set}" = set; then
23272 withval="$with_gtk_exec_prefix"
23273 gtk_config_exec_prefix="$withval"
23274else
23275 gtk_config_exec_prefix=""
23276fi;
23277# Check whether --enable-gtktest or --disable-gtktest was given.
23278if test "${enable_gtktest+set}" = set; then
23279 enableval="$enable_gtktest"
23280
23281else
23282 enable_gtktest=yes
23283fi;
23284
23285 for module in . $GTK_MODULES
23286 do
23287 case "$module" in
23288 gthread)
23289 gtk_config_args="$gtk_config_args gthread"
23290 ;;
23291 esac
23292 done
23293
23294 if test x$gtk_config_exec_prefix != x ; then
23295 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23296 if test x${GTK_CONFIG+set} != xset ; then
23297 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23298 fi
23299 fi
23300 if test x$gtk_config_prefix != x ; then
23301 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23302 if test x${GTK_CONFIG+set} != xset ; then
23303 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23304 fi
23305 fi
23306
23307 # Extract the first word of "gtk-config", so it can be a program name with args.
23308set dummy gtk-config; ac_word=$2
23309echo "$as_me:$LINENO: checking for $ac_word" >&5
23310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23311if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
23313else
23314 case $GTK_CONFIG in
23315 [\\/]* | ?:[\\/]*)
23316 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23317 ;;
23318 *)
23319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23320for as_dir in $PATH
23321do
23322 IFS=$as_save_IFS
23323 test -z "$as_dir" && as_dir=.
23324 for ac_exec_ext in '' $ac_executable_extensions; do
23325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23326 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23328 break 2
23329 fi
23330done
23331done
23332
23333 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23334 ;;
23335esac
23336fi
23337GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23338
23339if test -n "$GTK_CONFIG"; then
23340 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23341echo "${ECHO_T}$GTK_CONFIG" >&6
23342else
23343 echo "$as_me:$LINENO: result: no" >&5
23344echo "${ECHO_T}no" >&6
23345fi
23346
23347 min_gtk_version=1.2.7
23348 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23349echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23350 no_gtk=""
23351 if test "$GTK_CONFIG" = "no" ; then
23352 no_gtk=yes
23353 else
23354 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23355 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23356 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23357 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23358 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23359 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23360 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23361 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23362 if test "x$enable_gtktest" = "xyes" ; then
23363 ac_save_CFLAGS="$CFLAGS"
23364 ac_save_LIBS="$LIBS"
23365 CFLAGS="$CFLAGS $GTK_CFLAGS"
23366 LIBS="$GTK_LIBS $LIBS"
23367 rm -f conf.gtktest
23368 if test "$cross_compiling" = yes; then
23369 echo $ac_n "cross compiling; assumed OK... $ac_c"
23370else
23371 cat >conftest.$ac_ext <<_ACEOF
23372/* confdefs.h. */
23373_ACEOF
23374cat confdefs.h >>conftest.$ac_ext
23375cat >>conftest.$ac_ext <<_ACEOF
23376/* end confdefs.h. */
23377
23378#include <gtk/gtk.h>
23379#include <stdio.h>
23380#include <stdlib.h>
23381
23382int
23383main ()
23384{
23385 int major, minor, micro;
23386 char *tmp_version;
23387
23388 system ("touch conf.gtktest");
23389
23390 /* HP/UX 9 (%@#!) writes to sscanf strings */
23391 tmp_version = g_strdup("$min_gtk_version");
23392 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23393 printf("%s, bad version string\n", "$min_gtk_version");
23394 exit(1);
23395 }
23396
23397 if ((gtk_major_version != $gtk_config_major_version) ||
23398 (gtk_minor_version != $gtk_config_minor_version) ||
23399 (gtk_micro_version != $gtk_config_micro_version))
23400 {
23401 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23402 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23403 gtk_major_version, gtk_minor_version, gtk_micro_version);
23404 printf ("*** was found! If gtk-config was correct, then it is best\n");
23405 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23406 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23407 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23408 printf("*** required on your system.\n");
23409 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23410 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23411 printf("*** before re-running configure\n");
23412 }
23413#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23414 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23415 (gtk_minor_version != GTK_MINOR_VERSION) ||
23416 (gtk_micro_version != GTK_MICRO_VERSION))
23417 {
23418 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23419 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23420 printf("*** library (version %d.%d.%d)\n",
23421 gtk_major_version, gtk_minor_version, gtk_micro_version);
23422 }
23423#endif /* defined (GTK_MAJOR_VERSION) ... */
23424 else
23425 {
23426 if ((gtk_major_version > major) ||
23427 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23428 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23429 {
23430 return 0;
23431 }
23432 else
23433 {
23434 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23435 gtk_major_version, gtk_minor_version, gtk_micro_version);
23436 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23437 major, minor, micro);
23438 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23439 printf("***\n");
23440 printf("*** If you have already installed a sufficiently new version, this error\n");
23441 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23442 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23443 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23444 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23445 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23446 printf("*** so that the correct libraries are found at run-time))\n");
23447 }
23448 }
23449 return 1;
23450}
23451
23452_ACEOF
23453rm -f conftest$ac_exeext
23454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23455 (eval $ac_link) 2>&5
23456 ac_status=$?
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460 (eval $ac_try) 2>&5
23461 ac_status=$?
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 :
23465else
23466 echo "$as_me: program exited with status $ac_status" >&5
23467echo "$as_me: failed program was:" >&5
23468sed 's/^/| /' conftest.$ac_ext >&5
23469
23470( exit $ac_status )
23471no_gtk=yes
23472fi
ac1cb8d3 23473rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23474fi
23475 CFLAGS="$ac_save_CFLAGS"
23476 LIBS="$ac_save_LIBS"
23477 fi
23478 fi
23479 if test "x$no_gtk" = x ; then
23480 echo "$as_me:$LINENO: result: yes" >&5
23481echo "${ECHO_T}yes" >&6
23482 wx_cv_lib_gtk=1.2.7
23483 else
23484 echo "$as_me:$LINENO: result: no" >&5
23485echo "${ECHO_T}no" >&6
23486 if test "$GTK_CONFIG" = "no" ; then
23487 echo "*** The gtk-config script installed by GTK could not be found"
23488 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23489 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23490 echo "*** full path to gtk-config."
23491 else
23492 if test -f conf.gtktest ; then
23493 :
23494 else
23495 echo "*** Could not run GTK test program, checking why..."
23496 CFLAGS="$CFLAGS $GTK_CFLAGS"
23497 LIBS="$LIBS $GTK_LIBS"
23498 cat >conftest.$ac_ext <<_ACEOF
23499/* confdefs.h. */
23500_ACEOF
23501cat confdefs.h >>conftest.$ac_ext
23502cat >>conftest.$ac_ext <<_ACEOF
23503/* end confdefs.h. */
23504
23505#include <gtk/gtk.h>
23506#include <stdio.h>
23507
23508int
23509main ()
23510{
23511 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23512 ;
23513 return 0;
23514}
23515_ACEOF
23516rm -f conftest.$ac_objext conftest$ac_exeext
23517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23518 (eval $ac_link) 2>conftest.er1
a848cd7e 23519 ac_status=$?
ac1cb8d3
VS
23520 grep -v '^ *+' conftest.er1 >conftest.err
23521 rm -f conftest.er1
23522 cat conftest.err >&5
a848cd7e
SC
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } &&
da4486fb 23525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527 (eval $ac_try) 2>&5
23528 ac_status=$?
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); }; } &&
23531 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
23534 ac_status=$?
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; }; then
23537 echo "*** The test program compiled, but did not run. This usually means"
23538 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23539 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23540 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23541 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23542 echo "*** is required on your system"
23543 echo "***"
23544 echo "*** If you have an old version installed, it is best to remove it, although"
23545 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23546 echo "***"
23547 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23548 echo "*** came with the system with the command"
23549 echo "***"
23550 echo "*** rpm --erase --nodeps gtk gtk-devel"
23551else
23552 echo "$as_me: failed program was:" >&5
23553sed 's/^/| /' conftest.$ac_ext >&5
23554
23555 echo "*** The test program failed to compile or link. See the file config.log for the"
23556 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23557 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23558 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23559fi
ac1cb8d3
VS
23560rm -f conftest.err conftest.$ac_objext \
23561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23562 CFLAGS="$ac_save_CFLAGS"
23563 LIBS="$ac_save_LIBS"
23564 fi
23565 fi
23566 GTK_CFLAGS=""
23567 GTK_LIBS=""
23568 :
23569 fi
23570
23571
23572 rm -f conf.gtktest
23573
23574
23575 if test -z "$wx_cv_lib_gtk"; then
23576
23577# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23578if test "${with_gtk_prefix+set}" = set; then
23579 withval="$with_gtk_prefix"
23580 gtk_config_prefix="$withval"
23581else
23582 gtk_config_prefix=""
23583fi;
23584
23585# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23586if test "${with_gtk_exec_prefix+set}" = set; then
23587 withval="$with_gtk_exec_prefix"
23588 gtk_config_exec_prefix="$withval"
23589else
23590 gtk_config_exec_prefix=""
23591fi;
23592# Check whether --enable-gtktest or --disable-gtktest was given.
23593if test "${enable_gtktest+set}" = set; then
23594 enableval="$enable_gtktest"
23595
23596else
23597 enable_gtktest=yes
23598fi;
23599
23600 for module in . $GTK_MODULES
23601 do
23602 case "$module" in
23603 gthread)
23604 gtk_config_args="$gtk_config_args gthread"
23605 ;;
23606 esac
23607 done
23608
23609 if test x$gtk_config_exec_prefix != x ; then
23610 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23611 if test x${GTK_CONFIG+set} != xset ; then
23612 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23613 fi
23614 fi
23615 if test x$gtk_config_prefix != x ; then
23616 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23617 if test x${GTK_CONFIG+set} != xset ; then
23618 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23619 fi
23620 fi
23621
23622 # Extract the first word of "gtk-config", so it can be a program name with args.
23623set dummy gtk-config; ac_word=$2
23624echo "$as_me:$LINENO: checking for $ac_word" >&5
23625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23626if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23628else
23629 case $GTK_CONFIG in
23630 [\\/]* | ?:[\\/]*)
23631 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23632 ;;
23633 *)
23634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23635for as_dir in $PATH
23636do
23637 IFS=$as_save_IFS
23638 test -z "$as_dir" && as_dir=.
23639 for ac_exec_ext in '' $ac_executable_extensions; do
23640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23641 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23643 break 2
23644 fi
23645done
23646done
23647
23648 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23649 ;;
23650esac
23651fi
23652GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23653
23654if test -n "$GTK_CONFIG"; then
23655 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23656echo "${ECHO_T}$GTK_CONFIG" >&6
23657else
23658 echo "$as_me:$LINENO: result: no" >&5
23659echo "${ECHO_T}no" >&6
23660fi
23661
23662 min_gtk_version=1.2.3
23663 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23664echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23665 no_gtk=""
23666 if test "$GTK_CONFIG" = "no" ; then
23667 no_gtk=yes
23668 else
23669 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23670 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23671 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23672 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23673 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23674 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23675 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23676 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23677 if test "x$enable_gtktest" = "xyes" ; then
23678 ac_save_CFLAGS="$CFLAGS"
23679 ac_save_LIBS="$LIBS"
23680 CFLAGS="$CFLAGS $GTK_CFLAGS"
23681 LIBS="$GTK_LIBS $LIBS"
23682 rm -f conf.gtktest
23683 if test "$cross_compiling" = yes; then
23684 echo $ac_n "cross compiling; assumed OK... $ac_c"
23685else
23686 cat >conftest.$ac_ext <<_ACEOF
23687/* confdefs.h. */
23688_ACEOF
23689cat confdefs.h >>conftest.$ac_ext
23690cat >>conftest.$ac_ext <<_ACEOF
23691/* end confdefs.h. */
23692
23693#include <gtk/gtk.h>
23694#include <stdio.h>
23695#include <stdlib.h>
23696
23697int
23698main ()
23699{
23700 int major, minor, micro;
23701 char *tmp_version;
23702
23703 system ("touch conf.gtktest");
23704
23705 /* HP/UX 9 (%@#!) writes to sscanf strings */
23706 tmp_version = g_strdup("$min_gtk_version");
23707 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23708 printf("%s, bad version string\n", "$min_gtk_version");
23709 exit(1);
23710 }
23711
23712 if ((gtk_major_version != $gtk_config_major_version) ||
23713 (gtk_minor_version != $gtk_config_minor_version) ||
23714 (gtk_micro_version != $gtk_config_micro_version))
23715 {
23716 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23717 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23718 gtk_major_version, gtk_minor_version, gtk_micro_version);
23719 printf ("*** was found! If gtk-config was correct, then it is best\n");
23720 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23721 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23722 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23723 printf("*** required on your system.\n");
23724 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23725 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23726 printf("*** before re-running configure\n");
23727 }
23728#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23729 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23730 (gtk_minor_version != GTK_MINOR_VERSION) ||
23731 (gtk_micro_version != GTK_MICRO_VERSION))
23732 {
23733 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23734 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23735 printf("*** library (version %d.%d.%d)\n",
23736 gtk_major_version, gtk_minor_version, gtk_micro_version);
23737 }
23738#endif /* defined (GTK_MAJOR_VERSION) ... */
23739 else
23740 {
23741 if ((gtk_major_version > major) ||
23742 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23743 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23744 {
23745 return 0;
23746 }
23747 else
23748 {
23749 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23750 gtk_major_version, gtk_minor_version, gtk_micro_version);
23751 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23752 major, minor, micro);
23753 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23754 printf("***\n");
23755 printf("*** If you have already installed a sufficiently new version, this error\n");
23756 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23757 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23758 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23759 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23760 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23761 printf("*** so that the correct libraries are found at run-time))\n");
23762 }
23763 }
23764 return 1;
23765}
23766
23767_ACEOF
23768rm -f conftest$ac_exeext
23769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23770 (eval $ac_link) 2>&5
23771 ac_status=$?
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23775 (eval $ac_try) 2>&5
23776 ac_status=$?
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); }; }; then
23779 :
23780else
23781 echo "$as_me: program exited with status $ac_status" >&5
23782echo "$as_me: failed program was:" >&5
23783sed 's/^/| /' conftest.$ac_ext >&5
23784
23785( exit $ac_status )
23786no_gtk=yes
23787fi
ac1cb8d3 23788rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23789fi
23790 CFLAGS="$ac_save_CFLAGS"
23791 LIBS="$ac_save_LIBS"
23792 fi
23793 fi
23794 if test "x$no_gtk" = x ; then
23795 echo "$as_me:$LINENO: result: yes" >&5
23796echo "${ECHO_T}yes" >&6
23797 wx_cv_lib_gtk=1.2.3
23798 else
23799 echo "$as_me:$LINENO: result: no" >&5
23800echo "${ECHO_T}no" >&6
23801 if test "$GTK_CONFIG" = "no" ; then
23802 echo "*** The gtk-config script installed by GTK could not be found"
23803 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23804 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23805 echo "*** full path to gtk-config."
23806 else
23807 if test -f conf.gtktest ; then
23808 :
23809 else
23810 echo "*** Could not run GTK test program, checking why..."
23811 CFLAGS="$CFLAGS $GTK_CFLAGS"
23812 LIBS="$LIBS $GTK_LIBS"
23813 cat >conftest.$ac_ext <<_ACEOF
23814/* confdefs.h. */
23815_ACEOF
23816cat confdefs.h >>conftest.$ac_ext
23817cat >>conftest.$ac_ext <<_ACEOF
23818/* end confdefs.h. */
23819
23820#include <gtk/gtk.h>
23821#include <stdio.h>
23822
23823int
23824main ()
23825{
23826 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23827 ;
23828 return 0;
23829}
23830_ACEOF
23831rm -f conftest.$ac_objext conftest$ac_exeext
23832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23833 (eval $ac_link) 2>conftest.er1
a848cd7e 23834 ac_status=$?
ac1cb8d3
VS
23835 grep -v '^ *+' conftest.er1 >conftest.err
23836 rm -f conftest.er1
23837 cat conftest.err >&5
a848cd7e
SC
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } &&
da4486fb 23840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842 (eval $ac_try) 2>&5
23843 ac_status=$?
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); }; } &&
23846 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23849 ac_status=$?
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; }; then
23852 echo "*** The test program compiled, but did not run. This usually means"
23853 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23854 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23855 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23856 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23857 echo "*** is required on your system"
23858 echo "***"
23859 echo "*** If you have an old version installed, it is best to remove it, although"
23860 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23861 echo "***"
23862 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23863 echo "*** came with the system with the command"
23864 echo "***"
23865 echo "*** rpm --erase --nodeps gtk gtk-devel"
23866else
23867 echo "$as_me: failed program was:" >&5
23868sed 's/^/| /' conftest.$ac_ext >&5
23869
23870 echo "*** The test program failed to compile or link. See the file config.log for the"
23871 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23872 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23873 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23874fi
ac1cb8d3
VS
23875rm -f conftest.err conftest.$ac_objext \
23876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23877 CFLAGS="$ac_save_CFLAGS"
23878 LIBS="$ac_save_LIBS"
23879 fi
23880 fi
23881 GTK_CFLAGS=""
23882 GTK_LIBS=""
23883 :
23884 fi
23885
23886
23887 rm -f conf.gtktest
23888
23889 fi
23890 fi
23891
23892 if test -z "$wx_cv_lib_gtk"; then
23893 wx_cv_lib_gtk=none
23894 else
23895 wx_cv_cflags_gtk=$GTK_CFLAGS
23896 wx_cv_libs_gtk=$GTK_LIBS
23897 fi
23898
23899
23900fi
23901
23902
23903 if test "$gtk_version_cached" = 1; then
23904 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23905echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23906 fi
23907
23908 case "$wx_cv_lib_gtk" in
23909 2.0) WXGTK20=1
23910 TOOLKIT_VERSION=2
23911 ;;
23912 1.2.7) WXGTK127=1
23913 WXGTK12=1
23914 ;;
23915 1.2.3) WXGTK12=1
23916 ;;
23917 *) { { echo "$as_me:$LINENO: error:
23918Please check that gtk-config is in path, the directory
23919where GTK+ libraries are installed (returned by
23920'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23921equivalent variable and GTK+ is version 1.2.3 or above.
23922 " >&5
23923echo "$as_me: error:
23924Please check that gtk-config is in path, the directory
23925where GTK+ libraries are installed (returned by
23926'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23927equivalent variable and GTK+ is version 1.2.3 or above.
23928 " >&2;}
23929 { (exit 1); exit 1; }; }
23930 ;;
23931 esac
23932
23933 if test "$WXGTK20" = 1; then
304205f1
VS
23934 save_CFLAGS="$CFLAGS"
23935 save_LIBS="$LIBS"
23936 CFLAGS="$CFLAGS $GTK_CFLAGS"
23937 LIBS="$LIBS $GTK_LIBS"
23938
9755e73b 23939
304205f1
VS
23940for ac_func in pango_font_family_is_monospace
23941do
23942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23943echo "$as_me:$LINENO: checking for $ac_func" >&5
23944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23945if eval "test \"\${$as_ac_var+set}\" = set"; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
23947else
23948 cat >conftest.$ac_ext <<_ACEOF
23949/* confdefs.h. */
23950_ACEOF
23951cat confdefs.h >>conftest.$ac_ext
23952cat >>conftest.$ac_ext <<_ACEOF
23953/* end confdefs.h. */
23954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23956#define $ac_func innocuous_$ac_func
23957
23958/* System header to define __stub macros and hopefully few prototypes,
23959 which can conflict with char $ac_func (); below.
23960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23961 <limits.h> exists even on freestanding compilers. */
23962
23963#ifdef __STDC__
23964# include <limits.h>
23965#else
23966# include <assert.h>
23967#endif
23968
23969#undef $ac_func
23970
23971/* Override any gcc2 internal prototype to avoid an error. */
23972#ifdef __cplusplus
23973extern "C"
23974{
23975#endif
23976/* We use char because int might match the return type of a gcc2
23977 builtin and then its argument prototype would still apply. */
23978char $ac_func ();
23979/* The GNU C library defines this for functions which it implements
23980 to always fail with ENOSYS. Some functions are actually named
23981 something starting with __ and the normal name is an alias. */
23982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23983choke me
23984#else
23985char (*f) () = $ac_func;
23986#endif
23987#ifdef __cplusplus
23988}
23989#endif
23990
23991int
23992main ()
23993{
23994return f != $ac_func;
23995 ;
23996 return 0;
23997}
23998_ACEOF
23999rm -f conftest.$ac_objext conftest$ac_exeext
24000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24001 (eval $ac_link) 2>conftest.er1
24002 ac_status=$?
24003 grep -v '^ *+' conftest.er1 >conftest.err
24004 rm -f conftest.er1
24005 cat conftest.err >&5
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); } &&
da4486fb 24008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
24009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24010 (eval $ac_try) 2>&5
24011 ac_status=$?
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); }; } &&
24014 { ac_try='test -s conftest$ac_exeext'
24015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24016 (eval $ac_try) 2>&5
24017 ac_status=$?
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); }; }; then
24020 eval "$as_ac_var=yes"
24021else
24022 echo "$as_me: failed program was:" >&5
24023sed 's/^/| /' conftest.$ac_ext >&5
24024
24025eval "$as_ac_var=no"
24026fi
24027rm -f conftest.err conftest.$ac_objext \
24028 conftest$ac_exeext conftest.$ac_ext
24029fi
24030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24031echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24032if test `eval echo '${'$as_ac_var'}'` = yes; then
24033 cat >>confdefs.h <<_ACEOF
24034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24035_ACEOF
24036
24037fi
24038done
24039
9755e73b
VS
24040
24041 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
24042echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
24043 cat >conftest.$ac_ext <<_ACEOF
24044/* confdefs.h. */
24045_ACEOF
24046cat confdefs.h >>conftest.$ac_ext
24047cat >>conftest.$ac_ext <<_ACEOF
24048/* end confdefs.h. */
24049
24050 #include <gtk/gtk.h>
24051
24052int
24053main ()
24054{
24055
24056 #if !GTK_CHECK_VERSION(2,4,0)
24057 #error "Not GTK+ 2.4"
24058 #endif
24059
24060 ;
24061 return 0;
24062}
24063_ACEOF
24064rm -f conftest.$ac_objext
24065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24066 (eval $ac_compile) 2>conftest.er1
24067 ac_status=$?
24068 grep -v '^ *+' conftest.er1 >conftest.err
24069 rm -f conftest.er1
24070 cat conftest.err >&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } &&
da4486fb 24073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
24074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24075 (eval $ac_try) 2>&5
24076 ac_status=$?
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); }; } &&
24079 { ac_try='test -s conftest.$ac_objext'
24080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24081 (eval $ac_try) 2>&5
24082 ac_status=$?
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); }; }; then
24085
24086 cat >>confdefs.h <<\_ACEOF
24087#define __WXGTK24__ 1
24088_ACEOF
24089
24090 echo "$as_me:$LINENO: result: yes" >&5
24091echo "${ECHO_T}yes" >&6
24092
24093else
24094 echo "$as_me: failed program was:" >&5
24095sed 's/^/| /' conftest.$ac_ext >&5
24096
24097
24098 echo "$as_me:$LINENO: result: no" >&5
24099echo "${ECHO_T}no" >&6
24100
24101fi
24102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24103
304205f1
VS
24104 CFLAGS="$save_CFLAGS"
24105 LIBS="$save_LIBS"
a848cd7e
SC
24106 else
24107 if test "$wxUSE_UNICODE" = "yes"; then
24108 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
24109echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
24110 wxUSE_UNICODE=no
24111 fi
24112 fi
24113
24114 if test "$USE_DARWIN" != 1; then
24115
24116for ac_func in poll
24117do
24118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24119echo "$as_me:$LINENO: checking for $ac_func" >&5
24120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24121if eval "test \"\${$as_ac_var+set}\" = set"; then
24122 echo $ECHO_N "(cached) $ECHO_C" >&6
24123else
24124 cat >conftest.$ac_ext <<_ACEOF
24125/* confdefs.h. */
24126_ACEOF
24127cat confdefs.h >>conftest.$ac_ext
24128cat >>conftest.$ac_ext <<_ACEOF
24129/* end confdefs.h. */
ac1cb8d3
VS
24130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24132#define $ac_func innocuous_$ac_func
24133
a848cd7e
SC
24134/* System header to define __stub macros and hopefully few prototypes,
24135 which can conflict with char $ac_func (); below.
24136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24137 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24138
a848cd7e
SC
24139#ifdef __STDC__
24140# include <limits.h>
24141#else
24142# include <assert.h>
24143#endif
ac1cb8d3
VS
24144
24145#undef $ac_func
24146
a848cd7e
SC
24147/* Override any gcc2 internal prototype to avoid an error. */
24148#ifdef __cplusplus
24149extern "C"
24150{
24151#endif
24152/* We use char because int might match the return type of a gcc2
24153 builtin and then its argument prototype would still apply. */
24154char $ac_func ();
24155/* The GNU C library defines this for functions which it implements
24156 to always fail with ENOSYS. Some functions are actually named
24157 something starting with __ and the normal name is an alias. */
24158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24159choke me
24160#else
24161char (*f) () = $ac_func;
24162#endif
24163#ifdef __cplusplus
24164}
24165#endif
24166
24167int
24168main ()
24169{
24170return f != $ac_func;
24171 ;
24172 return 0;
24173}
24174_ACEOF
24175rm -f conftest.$ac_objext conftest$ac_exeext
24176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24177 (eval $ac_link) 2>conftest.er1
a848cd7e 24178 ac_status=$?
ac1cb8d3
VS
24179 grep -v '^ *+' conftest.er1 >conftest.err
24180 rm -f conftest.er1
24181 cat conftest.err >&5
a848cd7e
SC
24182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); } &&
da4486fb 24184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24186 (eval $ac_try) 2>&5
24187 ac_status=$?
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); }; } &&
24190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192 (eval $ac_try) 2>&5
24193 ac_status=$?
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; }; then
24196 eval "$as_ac_var=yes"
24197else
24198 echo "$as_me: failed program was:" >&5
24199sed 's/^/| /' conftest.$ac_ext >&5
24200
24201eval "$as_ac_var=no"
24202fi
ac1cb8d3
VS
24203rm -f conftest.err conftest.$ac_objext \
24204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24205fi
24206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24207echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24208if test `eval echo '${'$as_ac_var'}'` = yes; then
24209 cat >>confdefs.h <<_ACEOF
24210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24211_ACEOF
24212
24213fi
24214done
24215
24216 fi
24217
24218 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24219 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24220
24221 AFMINSTALL=afminstall
24222 TOOLKIT=GTK
24223 GUIDIST=GTK_DIST
24224
24225 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24226echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24227if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24228 echo $ECHO_N "(cached) $ECHO_C" >&6
24229else
24230 ac_check_lib_save_LIBS=$LIBS
24231LIBS="-lgdk $LIBS"
24232cat >conftest.$ac_ext <<_ACEOF
24233/* confdefs.h. */
24234_ACEOF
24235cat confdefs.h >>conftest.$ac_ext
24236cat >>conftest.$ac_ext <<_ACEOF
24237/* end confdefs.h. */
24238
24239/* Override any gcc2 internal prototype to avoid an error. */
24240#ifdef __cplusplus
24241extern "C"
24242#endif
24243/* We use char because int might match the return type of a gcc2
24244 builtin and then its argument prototype would still apply. */
24245char gdk_im_open ();
24246int
24247main ()
24248{
24249gdk_im_open ();
24250 ;
24251 return 0;
24252}
24253_ACEOF
24254rm -f conftest.$ac_objext conftest$ac_exeext
24255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24256 (eval $ac_link) 2>conftest.er1
a848cd7e 24257 ac_status=$?
ac1cb8d3
VS
24258 grep -v '^ *+' conftest.er1 >conftest.err
24259 rm -f conftest.er1
24260 cat conftest.err >&5
a848cd7e
SC
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } &&
da4486fb 24263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265 (eval $ac_try) 2>&5
24266 ac_status=$?
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; } &&
24269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24271 (eval $ac_try) 2>&5
24272 ac_status=$?
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); }; }; then
24275 ac_cv_lib_gdk_gdk_im_open=yes
24276else
24277 echo "$as_me: failed program was:" >&5
24278sed 's/^/| /' conftest.$ac_ext >&5
24279
24280ac_cv_lib_gdk_gdk_im_open=no
24281fi
ac1cb8d3
VS
24282rm -f conftest.err conftest.$ac_objext \
24283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24284LIBS=$ac_check_lib_save_LIBS
24285fi
24286echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24287echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24288if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24289 cat >>confdefs.h <<\_ACEOF
24290#define HAVE_XIM 1
24291_ACEOF
24292
24293fi
24294
24295
24296
24297 if test "$wxUSE_GPE" = "yes"; then
24298 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24299echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24300
24301ac_find_libraries=
24302for ac_dir in $SEARCH_LIB /usr/lib;
24303 do
24304 for ac_extension in a so sl dylib; do
24305 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24306 ac_find_libraries=$ac_dir
24307 break 2
24308 fi
24309 done
24310 done
24311
24312 if test "$ac_find_libraries" != "" ; then
24313
24314 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24315 result=$?
24316 if test $result = 0; then
24317 ac_path_to_link=""
24318 else
24319 ac_path_to_link=" -L$ac_find_libraries"
24320 fi
24321
24322 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24323 WXGPE=1
24324 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24325echo "${ECHO_T}found at $ac_find_libraries" >&6
24326 else
24327 echo "$as_me:$LINENO: result: not found" >&5
24328echo "${ECHO_T}not found" >&6
24329 fi
24330
24331 fi
24332 fi
24333
24334 if test "$wxUSE_MGL" = 1; then
24335 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24336echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24337 if test "x$MGL_ROOT" = x ; then
24338 echo "$as_me:$LINENO: result: not found" >&5
24339echo "${ECHO_T}not found" >&6
24340 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24341echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24342 { (exit 1); exit 1; }; }
24343 else
24344 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24345echo "${ECHO_T}$MGL_ROOT" >&6
24346 fi
24347
24348 echo "$as_me:$LINENO: checking for libmgl location" >&5
24349echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24350 case "${host}" in
24351 *-*-linux* )
24352 if test "x$wxUSE_SHARED" = xyes ; then
24353 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24354 else
24355 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24356 fi
24357 ;;
24358 *-pc-msdosdjgpp )
24359 mgl_os_candidates="dos32/dj2"
24360 ;;
24361 *)
24362 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24363echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24364 { (exit 1); exit 1; }; }
24365 esac
24366
24367 mgl_lib_type=""
24368 mgl_os=""
24369
24370 for mgl_os_i in $mgl_os_candidates ; do
24371 if test "x$mgl_os" = x ; then
24372 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24373 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24374 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24375 mgl_lib_type=debug
24376 mgl_os=$mgl_os_i
24377 fi
24378 fi
24379 if test "x$mgl_lib_type" = x ; then
24380 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24381 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24382 mgl_lib_type=release
24383 mgl_os=$mgl_os_i
24384 fi
24385 fi
24386 fi
24387 done
24388
24389 if test "x$mgl_os" = x ; then
24390 echo "$as_me:$LINENO: result: not found" >&5
24391echo "${ECHO_T}not found" >&6
24392 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24393echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24394 { (exit 1); exit 1; }; }
24395 fi
24396 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24397echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24398
24399 wxUSE_UNIVERSAL="yes"
24400
24401 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24402 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24403
24404 AFMINSTALL=afminstall
24405 TOOLKIT=MGL
24406 GUIDIST=MGL_DIST
24407 fi
24408
24409 if test "$wxUSE_MICROWIN" = 1; then
24410 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24411echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24412 if test "x$MICROWINDOWS" = x ; then
24413 echo "$as_me:$LINENO: result: not found" >&5
24414echo "${ECHO_T}not found" >&6
24415 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24416echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24417 { (exit 1); exit 1; }; }
24418 else
24419 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24420echo "${ECHO_T}$MICROWINDOWS" >&6
24421 fi
24422
24423 if test -f $MICROWINDOWS/lib/libmwin.a; then
24424 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24425echo "${ECHO_T}MicroWindows' libraries found." >&6
24426 else
24427 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24428echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24429 { (exit 1); exit 1; }; }
24430 fi
24431
24432 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24433 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24434
24435 wxUSE_UNIVERSAL="yes"
24436
24437 AFMINSTALL=afminstall
24438 TOOLKIT=MICROWIN
24439 GUIDIST=MICROWIN_DIST
24440
24441 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24442 fi
24443
74b84332 24444 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
da4486fb
VZ
24445
24446if test "x$ac_path_x_has_been_run" != xyes; then
24447 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24448echo $ECHO_N "checking for X... $ECHO_C" >&6
24449
da4486fb 24450ac_path_x_has_been_run=yes
a848cd7e
SC
24451
24452# Check whether --with-x or --without-x was given.
24453if test "${with_x+set}" = set; then
24454 withval="$with_x"
24455
24456fi;
24457# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24458if test "x$with_x" = xno; then
24459 # The user explicitly disabled X.
24460 have_x=disabled
24461else
24462 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24463 # Both variables are already set.
24464 have_x=yes
24465 else
24466 if test "${ac_cv_have_x+set}" = set; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24468else
24469 # One or both of the vars are not set, and there is no cached value.
24470ac_x_includes=no ac_x_libraries=no
24471rm -fr conftest.dir
24472if mkdir conftest.dir; then
24473 cd conftest.dir
24474 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24475 cat >Imakefile <<'_ACEOF'
24476acfindx:
24477 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24478_ACEOF
24479 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24481 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24482 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24483 for ac_extension in a so sl; do
24484 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24485 test -f $ac_im_libdir/libX11.$ac_extension; then
24486 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24487 fi
24488 done
24489 # Screen out bogus values from the imake configuration. They are
24490 # bogus both because they are the default anyway, and because
24491 # using them would break gcc on systems where it needs fixed includes.
24492 case $ac_im_incroot in
24493 /usr/include) ;;
24494 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24495 esac
24496 case $ac_im_usrlibdir in
24497 /usr/lib | /lib) ;;
24498 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24499 esac
24500 fi
24501 cd ..
24502 rm -fr conftest.dir
24503fi
24504
24505# Standard set of common directories for X headers.
24506# Check X11 before X11Rn because it is often a symlink to the current release.
24507ac_x_header_dirs='
24508/usr/X11/include
24509/usr/X11R6/include
24510/usr/X11R5/include
24511/usr/X11R4/include
24512
24513/usr/include/X11
24514/usr/include/X11R6
24515/usr/include/X11R5
24516/usr/include/X11R4
24517
24518/usr/local/X11/include
24519/usr/local/X11R6/include
24520/usr/local/X11R5/include
24521/usr/local/X11R4/include
24522
24523/usr/local/include/X11
24524/usr/local/include/X11R6
24525/usr/local/include/X11R5
24526/usr/local/include/X11R4
24527
24528/usr/X386/include
24529/usr/x386/include
24530/usr/XFree86/include/X11
24531
24532/usr/include
24533/usr/local/include
24534/usr/unsupported/include
24535/usr/athena/include
24536/usr/local/x11r5/include
24537/usr/lpp/Xamples/include
24538
24539/usr/openwin/include
24540/usr/openwin/share/include'
24541
24542if test "$ac_x_includes" = no; then
da4486fb 24543 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
24544 # First, try using that file with no special directory specified.
24545 cat >conftest.$ac_ext <<_ACEOF
24546/* confdefs.h. */
24547_ACEOF
24548cat confdefs.h >>conftest.$ac_ext
24549cat >>conftest.$ac_ext <<_ACEOF
24550/* end confdefs.h. */
24551#include <X11/Intrinsic.h>
24552_ACEOF
24553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24555 ac_status=$?
24556 grep -v '^ *+' conftest.er1 >conftest.err
24557 rm -f conftest.er1
24558 cat conftest.err >&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); } >/dev/null; then
24561 if test -s conftest.err; then
24562 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24564 else
24565 ac_cpp_err=
24566 fi
24567else
24568 ac_cpp_err=yes
24569fi
24570if test -z "$ac_cpp_err"; then
24571 # We can compile using X headers with no special include directory.
24572ac_x_includes=
24573else
24574 echo "$as_me: failed program was:" >&5
24575sed 's/^/| /' conftest.$ac_ext >&5
24576
24577 for ac_dir in $ac_x_header_dirs; do
24578 if test -r "$ac_dir/X11/Intrinsic.h"; then
24579 ac_x_includes=$ac_dir
24580 break
24581 fi
24582done
24583fi
24584rm -f conftest.err conftest.$ac_ext
24585fi # $ac_x_includes = no
24586
24587if test "$ac_x_libraries" = no; then
24588 # Check for the libraries.
24589 # See if we find them without any special options.
24590 # Don't add to $LIBS permanently.
24591 ac_save_LIBS=$LIBS
24592 LIBS="-lXt $LIBS"
24593 cat >conftest.$ac_ext <<_ACEOF
24594/* confdefs.h. */
24595_ACEOF
24596cat confdefs.h >>conftest.$ac_ext
24597cat >>conftest.$ac_ext <<_ACEOF
24598/* end confdefs.h. */
24599#include <X11/Intrinsic.h>
24600int
24601main ()
24602{
24603XtMalloc (0)
24604 ;
24605 return 0;
24606}
24607_ACEOF
24608rm -f conftest.$ac_objext conftest$ac_exeext
24609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24610 (eval $ac_link) 2>conftest.er1
a848cd7e 24611 ac_status=$?
ac1cb8d3
VS
24612 grep -v '^ *+' conftest.er1 >conftest.err
24613 rm -f conftest.er1
24614 cat conftest.err >&5
a848cd7e
SC
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); } &&
da4486fb 24617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619 (eval $ac_try) 2>&5
24620 ac_status=$?
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); }; } &&
24623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24625 (eval $ac_try) 2>&5
24626 ac_status=$?
24627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628 (exit $ac_status); }; }; then
24629 LIBS=$ac_save_LIBS
24630# We can link X programs with no special library path.
24631ac_x_libraries=
24632else
24633 echo "$as_me: failed program was:" >&5
24634sed 's/^/| /' conftest.$ac_ext >&5
24635
24636LIBS=$ac_save_LIBS
24637for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24638do
24639 # Don't even attempt the hair of trying to link an X program!
24640 for ac_extension in a so sl; do
24641 if test -r $ac_dir/libXt.$ac_extension; then
24642 ac_x_libraries=$ac_dir
24643 break 2
24644 fi
24645 done
24646done
24647fi
ac1cb8d3
VS
24648rm -f conftest.err conftest.$ac_objext \
24649 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24650fi # $ac_x_libraries = no
24651
24652if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24653 # Didn't find X anywhere. Cache the known absence of X.
24654 ac_cv_have_x="have_x=no"
24655else
24656 # Record where we found X for the cache.
24657 ac_cv_have_x="have_x=yes \
ac1cb8d3 24658 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24659fi
24660fi
24661
24662 fi
24663 eval "$ac_cv_have_x"
24664fi # $with_x != no
24665
24666if test "$have_x" != yes; then
24667 echo "$as_me:$LINENO: result: $have_x" >&5
24668echo "${ECHO_T}$have_x" >&6
24669 no_x=yes
24670else
24671 # If each of the values was on the command line, it overrides each guess.
24672 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24673 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24674 # Update the cache value to reflect the command line values.
24675 ac_cv_have_x="have_x=yes \
24676 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
da4486fb
VZ
24677 # It might be that x_includes is empty (headers are found in the
24678 # standard search path. Then output the corresponding message
24679 ac_out_x_includes=$x_includes
24680 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24681 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24682echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
24683fi
24684
da4486fb 24685fi
a848cd7e
SC
24686if test "$no_x" = yes; then
24687 # Not all programs may use this symbol, but it does not hurt to define it.
24688
24689cat >>confdefs.h <<\_ACEOF
24690#define X_DISPLAY_MISSING 1
24691_ACEOF
24692
24693 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24694else
24695 if test -n "$x_includes"; then
24696 X_CFLAGS="$X_CFLAGS -I$x_includes"
24697 fi
24698
24699 # It would also be nice to do this for all -L options, not just this one.
24700 if test -n "$x_libraries"; then
24701 X_LIBS="$X_LIBS -L$x_libraries"
24702 # For Solaris; some versions of Sun CC require a space after -R and
24703 # others require no space. Words are not sufficient . . . .
24704 case `(uname -sr) 2>/dev/null` in
24705 "SunOS 5"*)
24706 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24707echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24708 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24709 cat >conftest.$ac_ext <<_ACEOF
24710/* confdefs.h. */
24711_ACEOF
24712cat confdefs.h >>conftest.$ac_ext
24713cat >>conftest.$ac_ext <<_ACEOF
24714/* end confdefs.h. */
24715
24716int
24717main ()
24718{
24719
24720 ;
24721 return 0;
24722}
24723_ACEOF
24724rm -f conftest.$ac_objext conftest$ac_exeext
24725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24726 (eval $ac_link) 2>conftest.er1
a848cd7e 24727 ac_status=$?
ac1cb8d3
VS
24728 grep -v '^ *+' conftest.er1 >conftest.err
24729 rm -f conftest.er1
24730 cat conftest.err >&5
a848cd7e
SC
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); } &&
da4486fb 24733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } &&
24739 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24741 (eval $ac_try) 2>&5
24742 ac_status=$?
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); }; }; then
24745 ac_R_nospace=yes
24746else
24747 echo "$as_me: failed program was:" >&5
24748sed 's/^/| /' conftest.$ac_ext >&5
24749
24750ac_R_nospace=no
24751fi
ac1cb8d3
VS
24752rm -f conftest.err conftest.$ac_objext \
24753 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24754 if test $ac_R_nospace = yes; then
24755 echo "$as_me:$LINENO: result: no" >&5
24756echo "${ECHO_T}no" >&6
24757 X_LIBS="$X_LIBS -R$x_libraries"
24758 else
24759 LIBS="$ac_xsave_LIBS -R $x_libraries"
24760 cat >conftest.$ac_ext <<_ACEOF
24761/* confdefs.h. */
24762_ACEOF
24763cat confdefs.h >>conftest.$ac_ext
24764cat >>conftest.$ac_ext <<_ACEOF
24765/* end confdefs.h. */
24766
24767int
24768main ()
24769{
24770
24771 ;
24772 return 0;
24773}
24774_ACEOF
24775rm -f conftest.$ac_objext conftest$ac_exeext
24776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24777 (eval $ac_link) 2>conftest.er1
a848cd7e 24778 ac_status=$?
ac1cb8d3
VS
24779 grep -v '^ *+' conftest.er1 >conftest.err
24780 rm -f conftest.er1
24781 cat conftest.err >&5
a848cd7e
SC
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); } &&
da4486fb 24784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24787 ac_status=$?
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; } &&
24790 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; }; then
24796 ac_R_space=yes
24797else
24798 echo "$as_me: failed program was:" >&5
24799sed 's/^/| /' conftest.$ac_ext >&5
24800
24801ac_R_space=no
24802fi
ac1cb8d3
VS
24803rm -f conftest.err conftest.$ac_objext \
24804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24805 if test $ac_R_space = yes; then
24806 echo "$as_me:$LINENO: result: yes" >&5
24807echo "${ECHO_T}yes" >&6
24808 X_LIBS="$X_LIBS -R $x_libraries"
24809 else
24810 echo "$as_me:$LINENO: result: neither works" >&5
24811echo "${ECHO_T}neither works" >&6
24812 fi
24813 fi
24814 LIBS=$ac_xsave_LIBS
24815 esac
24816 fi
24817
24818 # Check for system-dependent libraries X programs must link with.
24819 # Do this before checking for the system-independent R6 libraries
24820 # (-lICE), since we may need -lsocket or whatever for X linking.
24821
24822 if test "$ISC" = yes; then
24823 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24824 else
24825 # Martyn Johnson says this is needed for Ultrix, if the X
24826 # libraries were built with DECnet support. And Karl Berry says
24827 # the Alpha needs dnet_stub (dnet does not exist).
24828 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24829 cat >conftest.$ac_ext <<_ACEOF
24830/* confdefs.h. */
24831_ACEOF
24832cat confdefs.h >>conftest.$ac_ext
24833cat >>conftest.$ac_ext <<_ACEOF
24834/* end confdefs.h. */
24835
24836/* Override any gcc2 internal prototype to avoid an error. */
24837#ifdef __cplusplus
24838extern "C"
24839#endif
24840/* We use char because int might match the return type of a gcc2
24841 builtin and then its argument prototype would still apply. */
24842char XOpenDisplay ();
24843int
24844main ()
24845{
24846XOpenDisplay ();
24847 ;
24848 return 0;
24849}
24850_ACEOF
24851rm -f conftest.$ac_objext conftest$ac_exeext
24852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24853 (eval $ac_link) 2>conftest.er1
a848cd7e 24854 ac_status=$?
ac1cb8d3
VS
24855 grep -v '^ *+' conftest.er1 >conftest.err
24856 rm -f conftest.er1
24857 cat conftest.err >&5
a848cd7e
SC
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } &&
da4486fb 24860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); }; } &&
24866 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24868 (eval $ac_try) 2>&5
24869 ac_status=$?
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); }; }; then
24872 :
24873else
24874 echo "$as_me: failed program was:" >&5
24875sed 's/^/| /' conftest.$ac_ext >&5
24876
24877echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24878echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24879if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24880 echo $ECHO_N "(cached) $ECHO_C" >&6
24881else
24882 ac_check_lib_save_LIBS=$LIBS
24883LIBS="-ldnet $LIBS"
24884cat >conftest.$ac_ext <<_ACEOF
24885/* confdefs.h. */
24886_ACEOF
24887cat confdefs.h >>conftest.$ac_ext
24888cat >>conftest.$ac_ext <<_ACEOF
24889/* end confdefs.h. */
24890
24891/* Override any gcc2 internal prototype to avoid an error. */
24892#ifdef __cplusplus
24893extern "C"
24894#endif
24895/* We use char because int might match the return type of a gcc2
24896 builtin and then its argument prototype would still apply. */
24897char dnet_ntoa ();
24898int
24899main ()
24900{
24901dnet_ntoa ();
24902 ;
24903 return 0;
24904}
24905_ACEOF
24906rm -f conftest.$ac_objext conftest$ac_exeext
24907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24908 (eval $ac_link) 2>conftest.er1
a848cd7e 24909 ac_status=$?
ac1cb8d3
VS
24910 grep -v '^ *+' conftest.er1 >conftest.err
24911 rm -f conftest.er1
24912 cat conftest.err >&5
a848cd7e
SC
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); } &&
da4486fb 24915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; } &&
24921 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24923 (eval $ac_try) 2>&5
24924 ac_status=$?
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); }; }; then
24927 ac_cv_lib_dnet_dnet_ntoa=yes
24928else
24929 echo "$as_me: failed program was:" >&5
24930sed 's/^/| /' conftest.$ac_ext >&5
24931
24932ac_cv_lib_dnet_dnet_ntoa=no
24933fi
ac1cb8d3
VS
24934rm -f conftest.err conftest.$ac_objext \
24935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24936LIBS=$ac_check_lib_save_LIBS
24937fi
24938echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24939echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24940if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24941 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24942fi
24943
24944 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24945 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24946echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24947if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24948 echo $ECHO_N "(cached) $ECHO_C" >&6
24949else
24950 ac_check_lib_save_LIBS=$LIBS
24951LIBS="-ldnet_stub $LIBS"
24952cat >conftest.$ac_ext <<_ACEOF
24953/* confdefs.h. */
24954_ACEOF
24955cat confdefs.h >>conftest.$ac_ext
24956cat >>conftest.$ac_ext <<_ACEOF
24957/* end confdefs.h. */
24958
24959/* Override any gcc2 internal prototype to avoid an error. */
24960#ifdef __cplusplus
24961extern "C"
24962#endif
24963/* We use char because int might match the return type of a gcc2
24964 builtin and then its argument prototype would still apply. */
24965char dnet_ntoa ();
24966int
24967main ()
24968{
24969dnet_ntoa ();
24970 ;
24971 return 0;
24972}
24973_ACEOF
24974rm -f conftest.$ac_objext conftest$ac_exeext
24975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24976 (eval $ac_link) 2>conftest.er1
a848cd7e 24977 ac_status=$?
ac1cb8d3
VS
24978 grep -v '^ *+' conftest.er1 >conftest.err
24979 rm -f conftest.er1
24980 cat conftest.err >&5
a848cd7e
SC
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } &&
da4486fb 24983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24986 ac_status=$?
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; } &&
24989 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991 (eval $ac_try) 2>&5
24992 ac_status=$?
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; }; then
24995 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24996else
24997 echo "$as_me: failed program was:" >&5
24998sed 's/^/| /' conftest.$ac_ext >&5
24999
25000ac_cv_lib_dnet_stub_dnet_ntoa=no
25001fi
ac1cb8d3
VS
25002rm -f conftest.err conftest.$ac_objext \
25003 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25004LIBS=$ac_check_lib_save_LIBS
25005fi
25006echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25007echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25008if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25009 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25010fi
25011
25012 fi
25013fi
ac1cb8d3
VS
25014rm -f conftest.err conftest.$ac_objext \
25015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25016 LIBS="$ac_xsave_LIBS"
25017
25018 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25019 # to get the SysV transport functions.
25020 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25021 # needs -lnsl.
25022 # The nsl library prevents programs from opening the X display
25023 # on Irix 5.2, according to T.E. Dickey.
25024 # The functions gethostbyname, getservbyname, and inet_addr are
25025 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25026 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25027echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25028if test "${ac_cv_func_gethostbyname+set}" = set; then
25029 echo $ECHO_N "(cached) $ECHO_C" >&6
25030else
25031 cat >conftest.$ac_ext <<_ACEOF
25032/* confdefs.h. */
25033_ACEOF
25034cat confdefs.h >>conftest.$ac_ext
25035cat >>conftest.$ac_ext <<_ACEOF
25036/* end confdefs.h. */
ac1cb8d3
VS
25037/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25039#define gethostbyname innocuous_gethostbyname
25040
a848cd7e
SC
25041/* System header to define __stub macros and hopefully few prototypes,
25042 which can conflict with char gethostbyname (); below.
25043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25044 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25045
a848cd7e
SC
25046#ifdef __STDC__
25047# include <limits.h>
25048#else
25049# include <assert.h>
25050#endif
ac1cb8d3
VS
25051
25052#undef gethostbyname
25053
a848cd7e
SC
25054/* Override any gcc2 internal prototype to avoid an error. */
25055#ifdef __cplusplus
25056extern "C"
25057{
25058#endif
25059/* We use char because int might match the return type of a gcc2
25060 builtin and then its argument prototype would still apply. */
25061char gethostbyname ();
25062/* The GNU C library defines this for functions which it implements
25063 to always fail with ENOSYS. Some functions are actually named
25064 something starting with __ and the normal name is an alias. */
25065#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25066choke me
25067#else
25068char (*f) () = gethostbyname;
25069#endif
25070#ifdef __cplusplus
25071}
25072#endif
25073
25074int
25075main ()
25076{
25077return f != gethostbyname;
25078 ;
25079 return 0;
25080}
25081_ACEOF
25082rm -f conftest.$ac_objext conftest$ac_exeext
25083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25084 (eval $ac_link) 2>conftest.er1
a848cd7e 25085 ac_status=$?
ac1cb8d3
VS
25086 grep -v '^ *+' conftest.er1 >conftest.err
25087 rm -f conftest.er1
25088 cat conftest.err >&5
a848cd7e
SC
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); } &&
da4486fb 25091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
25094 ac_status=$?
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; } &&
25097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; }; then
25103 ac_cv_func_gethostbyname=yes
25104else
25105 echo "$as_me: failed program was:" >&5
25106sed 's/^/| /' conftest.$ac_ext >&5
25107
25108ac_cv_func_gethostbyname=no
25109fi
ac1cb8d3
VS
25110rm -f conftest.err conftest.$ac_objext \
25111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25112fi
25113echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25114echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25115
25116 if test $ac_cv_func_gethostbyname = no; then
25117 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25118echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25119if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25121else
25122 ac_check_lib_save_LIBS=$LIBS
25123LIBS="-lnsl $LIBS"
25124cat >conftest.$ac_ext <<_ACEOF
25125/* confdefs.h. */
25126_ACEOF
25127cat confdefs.h >>conftest.$ac_ext
25128cat >>conftest.$ac_ext <<_ACEOF
25129/* end confdefs.h. */
25130
25131/* Override any gcc2 internal prototype to avoid an error. */
25132#ifdef __cplusplus
25133extern "C"
25134#endif
25135/* We use char because int might match the return type of a gcc2
25136 builtin and then its argument prototype would still apply. */
25137char gethostbyname ();
25138int
25139main ()
25140{
25141gethostbyname ();
25142 ;
25143 return 0;
25144}
25145_ACEOF
25146rm -f conftest.$ac_objext conftest$ac_exeext
25147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
25148 (eval $ac_link) 2>conftest.er1
25149 ac_status=$?
25150 grep -v '^ *+' conftest.er1 >conftest.err
25151 rm -f conftest.er1
25152 cat conftest.err >&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); } &&
da4486fb 25155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25157 (eval $ac_try) 2>&5
25158 ac_status=$?
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); }; } &&
25161 { ac_try='test -s conftest$ac_exeext'
25162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163 (eval $ac_try) 2>&5
25164 ac_status=$?
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); }; }; then
25167 ac_cv_lib_nsl_gethostbyname=yes
25168else
25169 echo "$as_me: failed program was:" >&5
25170sed 's/^/| /' conftest.$ac_ext >&5
25171
25172ac_cv_lib_nsl_gethostbyname=no
25173fi
25174rm -f conftest.err conftest.$ac_objext \
25175 conftest$ac_exeext conftest.$ac_ext
25176LIBS=$ac_check_lib_save_LIBS
25177fi
25178echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25179echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25180if test $ac_cv_lib_nsl_gethostbyname = yes; then
25181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25182fi
25183
25184 if test $ac_cv_lib_nsl_gethostbyname = no; then
25185 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25186echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25187if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25188 echo $ECHO_N "(cached) $ECHO_C" >&6
25189else
25190 ac_check_lib_save_LIBS=$LIBS
25191LIBS="-lbsd $LIBS"
25192cat >conftest.$ac_ext <<_ACEOF
25193/* confdefs.h. */
25194_ACEOF
25195cat confdefs.h >>conftest.$ac_ext
25196cat >>conftest.$ac_ext <<_ACEOF
25197/* end confdefs.h. */
25198
25199/* Override any gcc2 internal prototype to avoid an error. */
25200#ifdef __cplusplus
25201extern "C"
25202#endif
25203/* We use char because int might match the return type of a gcc2
25204 builtin and then its argument prototype would still apply. */
25205char gethostbyname ();
25206int
25207main ()
25208{
25209gethostbyname ();
25210 ;
25211 return 0;
25212}
25213_ACEOF
25214rm -f conftest.$ac_objext conftest$ac_exeext
25215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25216 (eval $ac_link) 2>conftest.er1
a848cd7e 25217 ac_status=$?
ac1cb8d3
VS
25218 grep -v '^ *+' conftest.er1 >conftest.err
25219 rm -f conftest.er1
25220 cat conftest.err >&5
a848cd7e
SC
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); } &&
da4486fb 25223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225 (eval $ac_try) 2>&5
25226 ac_status=$?
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25228 (exit $ac_status); }; } &&
25229 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; }; then
25235 ac_cv_lib_bsd_gethostbyname=yes
25236else
25237 echo "$as_me: failed program was:" >&5
25238sed 's/^/| /' conftest.$ac_ext >&5
25239
25240ac_cv_lib_bsd_gethostbyname=no
25241fi
ac1cb8d3
VS
25242rm -f conftest.err conftest.$ac_objext \
25243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25244LIBS=$ac_check_lib_save_LIBS
25245fi
25246echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25247echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25248if test $ac_cv_lib_bsd_gethostbyname = yes; then
25249 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25250fi
25251
25252 fi
25253 fi
25254
25255 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25256 # socket/setsockopt and other routines are undefined under SCO ODT
25257 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25258 # on later versions), says Simon Leinen: it contains gethostby*
25259 # variants that don't use the name server (or something). -lsocket
25260 # must be given before -lnsl if both are needed. We assume that
25261 # if connect needs -lnsl, so does gethostbyname.
25262 echo "$as_me:$LINENO: checking for connect" >&5
25263echo $ECHO_N "checking for connect... $ECHO_C" >&6
25264if test "${ac_cv_func_connect+set}" = set; then
25265 echo $ECHO_N "(cached) $ECHO_C" >&6
25266else
25267 cat >conftest.$ac_ext <<_ACEOF
25268/* confdefs.h. */
25269_ACEOF
25270cat confdefs.h >>conftest.$ac_ext
25271cat >>conftest.$ac_ext <<_ACEOF
25272/* end confdefs.h. */
ac1cb8d3
VS
25273/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25275#define connect innocuous_connect
25276
a848cd7e
SC
25277/* System header to define __stub macros and hopefully few prototypes,
25278 which can conflict with char connect (); below.
25279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25280 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25281
a848cd7e
SC
25282#ifdef __STDC__
25283# include <limits.h>
25284#else
25285# include <assert.h>
25286#endif
ac1cb8d3
VS
25287
25288#undef connect
25289
a848cd7e
SC
25290/* Override any gcc2 internal prototype to avoid an error. */
25291#ifdef __cplusplus
25292extern "C"
25293{
25294#endif
25295/* We use char because int might match the return type of a gcc2
25296 builtin and then its argument prototype would still apply. */
25297char connect ();
25298/* The GNU C library defines this for functions which it implements
25299 to always fail with ENOSYS. Some functions are actually named
25300 something starting with __ and the normal name is an alias. */
25301#if defined (__stub_connect) || defined (__stub___connect)
25302choke me
25303#else
25304char (*f) () = connect;
25305#endif
25306#ifdef __cplusplus
25307}
25308#endif
25309
25310int
25311main ()
25312{
25313return f != connect;
25314 ;
25315 return 0;
25316}
25317_ACEOF
25318rm -f conftest.$ac_objext conftest$ac_exeext
25319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25320 (eval $ac_link) 2>conftest.er1
a848cd7e 25321 ac_status=$?
ac1cb8d3
VS
25322 grep -v '^ *+' conftest.er1 >conftest.err
25323 rm -f conftest.er1
25324 cat conftest.err >&5
a848cd7e
SC
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } &&
da4486fb 25327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329 (eval $ac_try) 2>&5
25330 ac_status=$?
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); }; } &&
25333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335 (eval $ac_try) 2>&5
25336 ac_status=$?
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); }; }; then
25339 ac_cv_func_connect=yes
25340else
25341 echo "$as_me: failed program was:" >&5
25342sed 's/^/| /' conftest.$ac_ext >&5
25343
25344ac_cv_func_connect=no
25345fi
ac1cb8d3
VS
25346rm -f conftest.err conftest.$ac_objext \
25347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25348fi
25349echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25350echo "${ECHO_T}$ac_cv_func_connect" >&6
25351
25352 if test $ac_cv_func_connect = no; then
25353 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25354echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25355if test "${ac_cv_lib_socket_connect+set}" = set; then
25356 echo $ECHO_N "(cached) $ECHO_C" >&6
25357else
25358 ac_check_lib_save_LIBS=$LIBS
25359LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25360cat >conftest.$ac_ext <<_ACEOF
25361/* confdefs.h. */
25362_ACEOF
25363cat confdefs.h >>conftest.$ac_ext
25364cat >>conftest.$ac_ext <<_ACEOF
25365/* end confdefs.h. */
25366
25367/* Override any gcc2 internal prototype to avoid an error. */
25368#ifdef __cplusplus
25369extern "C"
25370#endif
25371/* We use char because int might match the return type of a gcc2
25372 builtin and then its argument prototype would still apply. */
25373char connect ();
25374int
25375main ()
25376{
25377connect ();
25378 ;
25379 return 0;
25380}
25381_ACEOF
25382rm -f conftest.$ac_objext conftest$ac_exeext
25383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25384 (eval $ac_link) 2>conftest.er1
a848cd7e 25385 ac_status=$?
ac1cb8d3
VS
25386 grep -v '^ *+' conftest.er1 >conftest.err
25387 rm -f conftest.er1
25388 cat conftest.err >&5
a848cd7e
SC
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); } &&
da4486fb 25391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393 (eval $ac_try) 2>&5
25394 ac_status=$?
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); }; } &&
25397 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399 (eval $ac_try) 2>&5
25400 ac_status=$?
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); }; }; then
25403 ac_cv_lib_socket_connect=yes
25404else
25405 echo "$as_me: failed program was:" >&5
25406sed 's/^/| /' conftest.$ac_ext >&5
25407
25408ac_cv_lib_socket_connect=no
25409fi
ac1cb8d3
VS
25410rm -f conftest.err conftest.$ac_objext \
25411 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25412LIBS=$ac_check_lib_save_LIBS
25413fi
25414echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25415echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25416if test $ac_cv_lib_socket_connect = yes; then
25417 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25418fi
25419
25420 fi
25421
25422 # Guillermo Gomez says -lposix is necessary on A/UX.
25423 echo "$as_me:$LINENO: checking for remove" >&5
25424echo $ECHO_N "checking for remove... $ECHO_C" >&6
25425if test "${ac_cv_func_remove+set}" = set; then
25426 echo $ECHO_N "(cached) $ECHO_C" >&6
25427else
25428 cat >conftest.$ac_ext <<_ACEOF
25429/* confdefs.h. */
25430_ACEOF
25431cat confdefs.h >>conftest.$ac_ext
25432cat >>conftest.$ac_ext <<_ACEOF
25433/* end confdefs.h. */
ac1cb8d3
VS
25434/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25436#define remove innocuous_remove
25437
a848cd7e
SC
25438/* System header to define __stub macros and hopefully few prototypes,
25439 which can conflict with char remove (); below.
25440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25441 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25442
a848cd7e
SC
25443#ifdef __STDC__
25444# include <limits.h>
25445#else
25446# include <assert.h>
25447#endif
ac1cb8d3
VS
25448
25449#undef remove
25450
a848cd7e
SC
25451/* Override any gcc2 internal prototype to avoid an error. */
25452#ifdef __cplusplus
25453extern "C"
25454{
25455#endif
25456/* We use char because int might match the return type of a gcc2
25457 builtin and then its argument prototype would still apply. */
25458char remove ();
25459/* The GNU C library defines this for functions which it implements
25460 to always fail with ENOSYS. Some functions are actually named
25461 something starting with __ and the normal name is an alias. */
25462#if defined (__stub_remove) || defined (__stub___remove)
25463choke me
25464#else
25465char (*f) () = remove;
25466#endif
25467#ifdef __cplusplus
25468}
25469#endif
25470
25471int
25472main ()
25473{
25474return f != remove;
25475 ;
25476 return 0;
25477}
25478_ACEOF
25479rm -f conftest.$ac_objext conftest$ac_exeext
25480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25481 (eval $ac_link) 2>conftest.er1
a848cd7e 25482 ac_status=$?
ac1cb8d3
VS
25483 grep -v '^ *+' conftest.er1 >conftest.err
25484 rm -f conftest.er1
25485 cat conftest.err >&5
a848cd7e
SC
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); } &&
da4486fb 25488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25490 (eval $ac_try) 2>&5
25491 ac_status=$?
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); }; } &&
25494 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25496 (eval $ac_try) 2>&5
25497 ac_status=$?
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); }; }; then
25500 ac_cv_func_remove=yes
25501else
25502 echo "$as_me: failed program was:" >&5
25503sed 's/^/| /' conftest.$ac_ext >&5
25504
25505ac_cv_func_remove=no
25506fi
ac1cb8d3
VS
25507rm -f conftest.err conftest.$ac_objext \
25508 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25509fi
25510echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25511echo "${ECHO_T}$ac_cv_func_remove" >&6
25512
25513 if test $ac_cv_func_remove = no; then
25514 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25515echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25516if test "${ac_cv_lib_posix_remove+set}" = set; then
25517 echo $ECHO_N "(cached) $ECHO_C" >&6
25518else
25519 ac_check_lib_save_LIBS=$LIBS
25520LIBS="-lposix $LIBS"
25521cat >conftest.$ac_ext <<_ACEOF
25522/* confdefs.h. */
25523_ACEOF
25524cat confdefs.h >>conftest.$ac_ext
25525cat >>conftest.$ac_ext <<_ACEOF
25526/* end confdefs.h. */
25527
25528/* Override any gcc2 internal prototype to avoid an error. */
25529#ifdef __cplusplus
25530extern "C"
25531#endif
25532/* We use char because int might match the return type of a gcc2
25533 builtin and then its argument prototype would still apply. */
25534char remove ();
25535int
25536main ()
25537{
25538remove ();
25539 ;
25540 return 0;
25541}
25542_ACEOF
25543rm -f conftest.$ac_objext conftest$ac_exeext
25544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25545 (eval $ac_link) 2>conftest.er1
a848cd7e 25546 ac_status=$?
ac1cb8d3
VS
25547 grep -v '^ *+' conftest.er1 >conftest.err
25548 rm -f conftest.er1
25549 cat conftest.err >&5
a848cd7e
SC
25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); } &&
da4486fb 25552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554 (eval $ac_try) 2>&5
25555 ac_status=$?
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }; } &&
25558 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560 (eval $ac_try) 2>&5
25561 ac_status=$?
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; }; then
25564 ac_cv_lib_posix_remove=yes
25565else
25566 echo "$as_me: failed program was:" >&5
25567sed 's/^/| /' conftest.$ac_ext >&5
25568
25569ac_cv_lib_posix_remove=no
25570fi
ac1cb8d3
VS
25571rm -f conftest.err conftest.$ac_objext \
25572 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25573LIBS=$ac_check_lib_save_LIBS
25574fi
25575echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25576echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25577if test $ac_cv_lib_posix_remove = yes; then
25578 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25579fi
25580
25581 fi
25582
25583 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25584 echo "$as_me:$LINENO: checking for shmat" >&5
25585echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25586if test "${ac_cv_func_shmat+set}" = set; then
25587 echo $ECHO_N "(cached) $ECHO_C" >&6
25588else
25589 cat >conftest.$ac_ext <<_ACEOF
25590/* confdefs.h. */
25591_ACEOF
25592cat confdefs.h >>conftest.$ac_ext
25593cat >>conftest.$ac_ext <<_ACEOF
25594/* end confdefs.h. */
ac1cb8d3
VS
25595/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25597#define shmat innocuous_shmat
25598
a848cd7e
SC
25599/* System header to define __stub macros and hopefully few prototypes,
25600 which can conflict with char shmat (); below.
25601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25603
a848cd7e
SC
25604#ifdef __STDC__
25605# include <limits.h>
25606#else
25607# include <assert.h>
25608#endif
ac1cb8d3
VS
25609
25610#undef shmat
25611
a848cd7e
SC
25612/* Override any gcc2 internal prototype to avoid an error. */
25613#ifdef __cplusplus
25614extern "C"
25615{
25616#endif
25617/* We use char because int might match the return type of a gcc2
25618 builtin and then its argument prototype would still apply. */
25619char shmat ();
25620/* The GNU C library defines this for functions which it implements
25621 to always fail with ENOSYS. Some functions are actually named
25622 something starting with __ and the normal name is an alias. */
25623#if defined (__stub_shmat) || defined (__stub___shmat)
25624choke me
25625#else
25626char (*f) () = shmat;
25627#endif
25628#ifdef __cplusplus
25629}
25630#endif
25631
25632int
25633main ()
25634{
25635return f != shmat;
25636 ;
25637 return 0;
25638}
25639_ACEOF
25640rm -f conftest.$ac_objext conftest$ac_exeext
25641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25642 (eval $ac_link) 2>conftest.er1
a848cd7e 25643 ac_status=$?
ac1cb8d3
VS
25644 grep -v '^ *+' conftest.er1 >conftest.err
25645 rm -f conftest.er1
25646 cat conftest.err >&5
a848cd7e
SC
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } &&
da4486fb 25649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25652 ac_status=$?
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; } &&
25655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657 (eval $ac_try) 2>&5
25658 ac_status=$?
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); }; }; then
25661 ac_cv_func_shmat=yes
25662else
25663 echo "$as_me: failed program was:" >&5
25664sed 's/^/| /' conftest.$ac_ext >&5
25665
25666ac_cv_func_shmat=no
25667fi
ac1cb8d3
VS
25668rm -f conftest.err conftest.$ac_objext \
25669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25670fi
25671echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25672echo "${ECHO_T}$ac_cv_func_shmat" >&6
25673
25674 if test $ac_cv_func_shmat = no; then
25675 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25676echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25677if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25678 echo $ECHO_N "(cached) $ECHO_C" >&6
25679else
25680 ac_check_lib_save_LIBS=$LIBS
25681LIBS="-lipc $LIBS"
25682cat >conftest.$ac_ext <<_ACEOF
25683/* confdefs.h. */
25684_ACEOF
25685cat confdefs.h >>conftest.$ac_ext
25686cat >>conftest.$ac_ext <<_ACEOF
25687/* end confdefs.h. */
25688
25689/* Override any gcc2 internal prototype to avoid an error. */
25690#ifdef __cplusplus
25691extern "C"
25692#endif
25693/* We use char because int might match the return type of a gcc2
25694 builtin and then its argument prototype would still apply. */
25695char shmat ();
25696int
25697main ()
25698{
25699shmat ();
25700 ;
25701 return 0;
25702}
25703_ACEOF
25704rm -f conftest.$ac_objext conftest$ac_exeext
25705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25706 (eval $ac_link) 2>conftest.er1
a848cd7e 25707 ac_status=$?
ac1cb8d3
VS
25708 grep -v '^ *+' conftest.er1 >conftest.err
25709 rm -f conftest.er1
25710 cat conftest.err >&5
a848cd7e
SC
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } &&
da4486fb 25713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25716 ac_status=$?
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; } &&
25719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721 (eval $ac_try) 2>&5
25722 ac_status=$?
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); }; }; then
25725 ac_cv_lib_ipc_shmat=yes
25726else
25727 echo "$as_me: failed program was:" >&5
25728sed 's/^/| /' conftest.$ac_ext >&5
25729
25730ac_cv_lib_ipc_shmat=no
25731fi
ac1cb8d3
VS
25732rm -f conftest.err conftest.$ac_objext \
25733 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25734LIBS=$ac_check_lib_save_LIBS
25735fi
25736echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25737echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25738if test $ac_cv_lib_ipc_shmat = yes; then
25739 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25740fi
25741
25742 fi
25743 fi
25744
25745 # Check for libraries that X11R6 Xt/Xaw programs need.
25746 ac_save_LDFLAGS=$LDFLAGS
25747 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25748 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25749 # check for ICE first), but we must link in the order -lSM -lICE or
25750 # we get undefined symbols. So assume we have SM if we have ICE.
25751 # These have to be linked with before -lX11, unlike the other
25752 # libraries we check for below, so use a different variable.
25753 # John Interrante, Karl Berry
25754 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25755echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25756if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25757 echo $ECHO_N "(cached) $ECHO_C" >&6
25758else
25759 ac_check_lib_save_LIBS=$LIBS
25760LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25761cat >conftest.$ac_ext <<_ACEOF
25762/* confdefs.h. */
25763_ACEOF
25764cat confdefs.h >>conftest.$ac_ext
25765cat >>conftest.$ac_ext <<_ACEOF
25766/* end confdefs.h. */
25767
25768/* Override any gcc2 internal prototype to avoid an error. */
25769#ifdef __cplusplus
25770extern "C"
25771#endif
25772/* We use char because int might match the return type of a gcc2
25773 builtin and then its argument prototype would still apply. */
25774char IceConnectionNumber ();
25775int
25776main ()
25777{
25778IceConnectionNumber ();
25779 ;
25780 return 0;
25781}
25782_ACEOF
25783rm -f conftest.$ac_objext conftest$ac_exeext
25784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25785 (eval $ac_link) 2>conftest.er1
a848cd7e 25786 ac_status=$?
ac1cb8d3
VS
25787 grep -v '^ *+' conftest.er1 >conftest.err
25788 rm -f conftest.er1
25789 cat conftest.err >&5
a848cd7e
SC
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); } &&
da4486fb 25792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794 (eval $ac_try) 2>&5
25795 ac_status=$?
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); }; } &&
25798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800 (eval $ac_try) 2>&5
25801 ac_status=$?
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; }; then
25804 ac_cv_lib_ICE_IceConnectionNumber=yes
25805else
25806 echo "$as_me: failed program was:" >&5
25807sed 's/^/| /' conftest.$ac_ext >&5
25808
25809ac_cv_lib_ICE_IceConnectionNumber=no
25810fi
ac1cb8d3
VS
25811rm -f conftest.err conftest.$ac_objext \
25812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25813LIBS=$ac_check_lib_save_LIBS
25814fi
25815echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25816echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25817if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25818 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25819fi
25820
25821 LDFLAGS=$ac_save_LDFLAGS
25822
25823fi
25824
25825
25826 if test "$no_x" = "yes"; then
25827 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25828echo "$as_me: error: X11 not found" >&2;}
25829 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25830 fi
25831
74b84332
VS
25832 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25833 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25834 AFMINSTALL=afminstall
25835 COMPILED_X_PROGRAM=0
25836
74b84332
VS
25837 fi
25838
25839 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25840 if test "$wxUSE_NANOX" = "yes"; then
25841 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25842echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25843 if test "x$MICROWIN" = x ; then
25844 echo "$as_me:$LINENO: result: not found" >&5
25845echo "${ECHO_T}not found" >&6
25846 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25847echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25848 { (exit 1); exit 1; }; }
25849 else
25850 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25851echo "${ECHO_T}$MICROWIN" >&6
25852 cat >>confdefs.h <<\_ACEOF
25853#define wxUSE_NANOX 1
25854_ACEOF
25855
25856 fi
25857 fi
25858
25859 if test "$wxUSE_UNICODE" = "yes"; then
25860
25861 succeeded=no
25862
25863 if test -z "$PKG_CONFIG"; then
25864 # Extract the first word of "pkg-config", so it can be a program name with args.
25865set dummy pkg-config; ac_word=$2
25866echo "$as_me:$LINENO: checking for $ac_word" >&5
25867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25868if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25869 echo $ECHO_N "(cached) $ECHO_C" >&6
25870else
25871 case $PKG_CONFIG in
25872 [\\/]* | ?:[\\/]*)
25873 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25874 ;;
25875 *)
25876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25877for as_dir in $PATH
25878do
25879 IFS=$as_save_IFS
25880 test -z "$as_dir" && as_dir=.
25881 for ac_exec_ext in '' $ac_executable_extensions; do
25882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25883 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25885 break 2
25886 fi
25887done
25888done
25889
25890 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25891 ;;
25892esac
25893fi
25894PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25895
25896if test -n "$PKG_CONFIG"; then
25897 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25898echo "${ECHO_T}$PKG_CONFIG" >&6
25899else
25900 echo "$as_me:$LINENO: result: no" >&5
25901echo "${ECHO_T}no" >&6
25902fi
25903
25904 fi
25905
25906 if test "$PKG_CONFIG" = "no" ; then
25907 echo "*** The pkg-config script could not be found. Make sure it is"
25908 echo "*** in your path, or set the PKG_CONFIG environment variable"
25909 echo "*** to the full path to pkg-config."
25910 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25911 else
25912 PKG_CONFIG_MIN_VERSION=0.9.0
25913 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25914 echo "$as_me:$LINENO: checking for pangox" >&5
25915echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25916
25917 if $PKG_CONFIG --exists "pangox" ; then
25918 echo "$as_me:$LINENO: result: yes" >&5
25919echo "${ECHO_T}yes" >&6
25920 succeeded=yes
25921
25922 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25923echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25924 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25925 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25926echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25927
25928 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25929echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25930 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25931 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25932echo "${ECHO_T}$PANGOX_LIBS" >&6
25933 else
25934 PANGOX_CFLAGS=""
25935 PANGOX_LIBS=""
25936 ## If we have a custom action on failure, don't print errors, but
25937 ## do set a variable so people can do so.
25938 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25939
25940 fi
25941
25942
25943
25944 else
25945 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25946 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25947 fi
25948 fi
25949
25950 if test $succeeded = yes; then
25951
25952 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25953 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25954
25955 else
25956
25957 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25958echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25959 { (exit 1); exit 1; }; }
25960
25961
25962 fi
25963
25964
25965 succeeded=no
25966
25967 if test -z "$PKG_CONFIG"; then
25968 # Extract the first word of "pkg-config", so it can be a program name with args.
25969set dummy pkg-config; ac_word=$2
25970echo "$as_me:$LINENO: checking for $ac_word" >&5
25971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25972if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25973 echo $ECHO_N "(cached) $ECHO_C" >&6
25974else
25975 case $PKG_CONFIG in
25976 [\\/]* | ?:[\\/]*)
25977 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25978 ;;
25979 *)
25980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25981for as_dir in $PATH
25982do
25983 IFS=$as_save_IFS
25984 test -z "$as_dir" && as_dir=.
25985 for ac_exec_ext in '' $ac_executable_extensions; do
25986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25987 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25989 break 2
25990 fi
25991done
25992done
25993
25994 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25995 ;;
25996esac
25997fi
25998PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25999
26000if test -n "$PKG_CONFIG"; then
26001 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26002echo "${ECHO_T}$PKG_CONFIG" >&6
26003else
26004 echo "$as_me:$LINENO: result: no" >&5
26005echo "${ECHO_T}no" >&6
26006fi
26007
26008 fi
26009
26010 if test "$PKG_CONFIG" = "no" ; then
26011 echo "*** The pkg-config script could not be found. Make sure it is"
26012 echo "*** in your path, or set the PKG_CONFIG environment variable"
26013 echo "*** to the full path to pkg-config."
26014 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26015 else
26016 PKG_CONFIG_MIN_VERSION=0.9.0
26017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26018 echo "$as_me:$LINENO: checking for pangoft2" >&5
26019echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
26020
26021 if $PKG_CONFIG --exists "pangoft2" ; then
26022 echo "$as_me:$LINENO: result: yes" >&5
26023echo "${ECHO_T}yes" >&6
26024 succeeded=yes
26025
26026 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
26027echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
26028 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
26029 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
26030echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
26031
26032 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
26033echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
26034 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
26035 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
26036echo "${ECHO_T}$PANGOFT2_LIBS" >&6
26037 else
26038 PANGOFT2_CFLAGS=""
26039 PANGOFT2_LIBS=""
26040 ## If we have a custom action on failure, don't print errors, but
26041 ## do set a variable so people can do so.
26042 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
26043
26044 fi
26045
26046
26047
26048 else
26049 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26050 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26051 fi
26052 fi
26053
26054 if test $succeeded = yes; then
26055
26056 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
26057 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
26058
26059 else
26060
26061 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
26062echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
26063 wxUSE_PRINTING_ARCHITECTURE="no"
26064
26065
26066 fi
26067
26068
26069 succeeded=no
26070
26071 if test -z "$PKG_CONFIG"; then
26072 # Extract the first word of "pkg-config", so it can be a program name with args.
26073set dummy pkg-config; ac_word=$2
26074echo "$as_me:$LINENO: checking for $ac_word" >&5
26075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26076if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26078else
26079 case $PKG_CONFIG in
26080 [\\/]* | ?:[\\/]*)
26081 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26082 ;;
26083 *)
26084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26085for as_dir in $PATH
26086do
26087 IFS=$as_save_IFS
26088 test -z "$as_dir" && as_dir=.
26089 for ac_exec_ext in '' $ac_executable_extensions; do
26090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26091 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26093 break 2
26094 fi
26095done
26096done
26097
26098 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26099 ;;
26100esac
26101fi
26102PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26103
26104if test -n "$PKG_CONFIG"; then
26105 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26106echo "${ECHO_T}$PKG_CONFIG" >&6
26107else
26108 echo "$as_me:$LINENO: result: no" >&5
26109echo "${ECHO_T}no" >&6
26110fi
26111
26112 fi
26113
26114 if test "$PKG_CONFIG" = "no" ; then
26115 echo "*** The pkg-config script could not be found. Make sure it is"
26116 echo "*** in your path, or set the PKG_CONFIG environment variable"
26117 echo "*** to the full path to pkg-config."
26118 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26119 else
26120 PKG_CONFIG_MIN_VERSION=0.9.0
26121 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26122 echo "$as_me:$LINENO: checking for pangoxft" >&5
26123echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
26124
26125 if $PKG_CONFIG --exists "pangoxft" ; then
26126 echo "$as_me:$LINENO: result: yes" >&5
26127echo "${ECHO_T}yes" >&6
26128 succeeded=yes
26129
26130 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
26131echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
26132 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
26133 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
26134echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
26135
26136 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
26137echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
26138 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
26139 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
26140echo "${ECHO_T}$PANGOXFT_LIBS" >&6
26141 else
26142 PANGOXFT_CFLAGS=""
26143 PANGOXFT_LIBS=""
26144 ## If we have a custom action on failure, don't print errors, but
26145 ## do set a variable so people can do so.
26146 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26147
26148 fi
26149
26150
26151
26152 else
26153 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26154 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26155 fi
26156 fi
26157
26158 if test $succeeded = yes; then
26159
4ae1af05
MB
26160 cat >>confdefs.h <<\_ACEOF
26161#define HAVE_PANGO_XFT 1
26162_ACEOF
26163
a848cd7e
SC
26164 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26165 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26166
26167 else
26168
26169 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26170echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26171
26172
26173 fi
26174
304205f1
VS
26175 save_CFLAGS="$CFLAGS"
26176 save_LIBS="$LIBS"
26177 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26178 LIBS="$LIBS $PANGOX_LIBS"
26179
26180for ac_func in pango_font_family_is_monospace
26181do
26182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26183echo "$as_me:$LINENO: checking for $ac_func" >&5
26184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26185if eval "test \"\${$as_ac_var+set}\" = set"; then
26186 echo $ECHO_N "(cached) $ECHO_C" >&6
26187else
26188 cat >conftest.$ac_ext <<_ACEOF
26189/* confdefs.h. */
26190_ACEOF
26191cat confdefs.h >>conftest.$ac_ext
26192cat >>conftest.$ac_ext <<_ACEOF
26193/* end confdefs.h. */
26194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26196#define $ac_func innocuous_$ac_func
26197
26198/* System header to define __stub macros and hopefully few prototypes,
26199 which can conflict with char $ac_func (); below.
26200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26201 <limits.h> exists even on freestanding compilers. */
26202
26203#ifdef __STDC__
26204# include <limits.h>
26205#else
26206# include <assert.h>
26207#endif
26208
26209#undef $ac_func
26210
26211/* Override any gcc2 internal prototype to avoid an error. */
26212#ifdef __cplusplus
26213extern "C"
26214{
26215#endif
26216/* We use char because int might match the return type of a gcc2
26217 builtin and then its argument prototype would still apply. */
26218char $ac_func ();
26219/* The GNU C library defines this for functions which it implements
26220 to always fail with ENOSYS. Some functions are actually named
26221 something starting with __ and the normal name is an alias. */
26222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26223choke me
26224#else
26225char (*f) () = $ac_func;
26226#endif
26227#ifdef __cplusplus
26228}
26229#endif
26230
26231int
26232main ()
26233{
26234return f != $ac_func;
26235 ;
26236 return 0;
26237}
26238_ACEOF
26239rm -f conftest.$ac_objext conftest$ac_exeext
26240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26241 (eval $ac_link) 2>conftest.er1
26242 ac_status=$?
26243 grep -v '^ *+' conftest.er1 >conftest.err
26244 rm -f conftest.er1
26245 cat conftest.err >&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } &&
da4486fb 26248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
26249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250 (eval $ac_try) 2>&5
26251 ac_status=$?
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; } &&
26254 { ac_try='test -s conftest$ac_exeext'
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26257 ac_status=$?
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; }; then
26260 eval "$as_ac_var=yes"
26261else
26262 echo "$as_me: failed program was:" >&5
26263sed 's/^/| /' conftest.$ac_ext >&5
26264
26265eval "$as_ac_var=no"
26266fi
26267rm -f conftest.err conftest.$ac_objext \
26268 conftest$ac_exeext conftest.$ac_ext
26269fi
26270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26271echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26272if test `eval echo '${'$as_ac_var'}'` = yes; then
26273 cat >>confdefs.h <<_ACEOF
26274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26275_ACEOF
26276
26277fi
26278done
26279
26280 CFLAGS="$save_CFLAGS"
26281 LIBS="$save_LIBS"
a848cd7e
SC
26282 fi
26283
26284 wxUSE_UNIVERSAL="yes"
26285
26286 if test "$wxUSE_NANOX" = "yes"; then
26287 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26288 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"
26289 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26290 else
26291 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26292 fi
26293
a848cd7e
SC
26294 TOOLKIT=X11
26295 GUIDIST=X11_DIST
26296 fi
26297
26298 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26299 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26300echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26301
74b84332
VS
26302ac_find_includes=
26303for ac_dir in $SEARCH_INCLUDE /usr/include;
26304 do
26305 if test -f "$ac_dir/Xm/Xm.h"; then
26306 ac_find_includes=$ac_dir
26307 break
26308 fi
26309 done
a848cd7e 26310
74b84332
VS
26311 if test "$ac_find_includes" != "" ; then
26312 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26313echo "${ECHO_T}found in $ac_find_includes" >&6
26314
26315 if test "x$ac_find_includes" = "x/usr/include"; then
26316 ac_path_to_include=""
26317 else
26318 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26319 result=$?
26320 if test $result = 0; then
26321 ac_path_to_include=""
26322 else
26323 ac_path_to_include=" -I$ac_find_includes"
26324 fi
a848cd7e
SC
26325 fi
26326
74b84332
VS
26327 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26328 else
26329 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26330/* confdefs.h. */
26331_ACEOF
26332cat confdefs.h >>conftest.$ac_ext
26333cat >>conftest.$ac_ext <<_ACEOF
26334/* end confdefs.h. */
26335
74b84332
VS
26336 #include <Xm/Xm.h>
26337
a848cd7e
SC
26338int
26339main ()
26340{
26341
74b84332
VS
26342 int version;
26343 version = xmUseVersion;
26344
a848cd7e
SC
26345 ;
26346 return 0;
26347}
26348_ACEOF
74b84332
VS
26349rm -f conftest.$ac_objext
26350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26351 (eval $ac_compile) 2>conftest.er1
a848cd7e 26352 ac_status=$?
ac1cb8d3
VS
26353 grep -v '^ *+' conftest.er1 >conftest.err
26354 rm -f conftest.er1
26355 cat conftest.err >&5
a848cd7e
SC
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); } &&
da4486fb 26358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26360 (eval $ac_try) 2>&5
26361 ac_status=$?
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); }; } &&
74b84332 26364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26366 (eval $ac_try) 2>&5
26367 ac_status=$?
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); }; }; then
74b84332
VS
26370
26371 echo "$as_me:$LINENO: result: found in default search path" >&5
26372echo "${ECHO_T}found in default search path" >&6
26373 COMPILED_X_PROGRAM=1
26374
a848cd7e
SC
26375else
26376 echo "$as_me: failed program was:" >&5
26377sed 's/^/| /' conftest.$ac_ext >&5
26378
a848cd7e 26379
74b84332
VS
26380 echo "$as_me:$LINENO: result: no" >&5
26381echo "${ECHO_T}no" >&6
26382 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26383echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26384 { (exit 1); exit 1; }; }
a848cd7e 26385
a848cd7e 26386
a848cd7e 26387fi
74b84332
VS
26388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26389 fi
26390
26391 if test "$COMPILED_X_PROGRAM" = 0; then
26392 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26393echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26394
26395ac_find_libraries=
26396for ac_dir in $SEARCH_LIB /usr/lib;
26397 do
26398 for ac_extension in a so sl dylib; do
26399 if test -f "$ac_dir/libXm.$ac_extension"; then
26400 ac_find_libraries=$ac_dir
26401 break 2
a848cd7e 26402 fi
74b84332
VS
26403 done
26404 done
a848cd7e 26405
74b84332
VS
26406 if test "$ac_find_libraries" != "" ; then
26407 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26408echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26409
74b84332
VS
26410
26411 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26412 result=$?
26413 if test $result = 0; then
26414 ac_path_to_link=""
a848cd7e 26415 else
74b84332
VS
26416 ac_path_to_link=" -L$ac_find_libraries"
26417 fi
26418
26419 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26420 else
26421 save_CFLAGS=$CFLAGS
26422 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26423
26424 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26425/* confdefs.h. */
26426_ACEOF
26427cat confdefs.h >>conftest.$ac_ext
26428cat >>conftest.$ac_ext <<_ACEOF
26429/* end confdefs.h. */
26430
74b84332
VS
26431 #include <Xm/Xm.h>
26432
a848cd7e
SC
26433int
26434main ()
26435{
74b84332
VS
26436
26437 int version;
26438 version = xmUseVersion;
26439
a848cd7e
SC
26440 ;
26441 return 0;
26442}
26443_ACEOF
74b84332
VS
26444rm -f conftest.$ac_objext
26445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26446 (eval $ac_compile) 2>conftest.er1
a848cd7e 26447 ac_status=$?
ac1cb8d3
VS
26448 grep -v '^ *+' conftest.er1 >conftest.err
26449 rm -f conftest.er1
26450 cat conftest.err >&5
a848cd7e
SC
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); } &&
da4486fb 26453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455 (eval $ac_try) 2>&5
26456 ac_status=$?
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); }; } &&
74b84332 26459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461 (eval $ac_try) 2>&5
26462 ac_status=$?
26463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464 (exit $ac_status); }; }; then
74b84332
VS
26465
26466 echo "$as_me:$LINENO: result: found in default search path" >&5
26467echo "${ECHO_T}found in default search path" >&6
26468 COMPILED_X_PROGRAM=1
26469
a848cd7e
SC
26470else
26471 echo "$as_me: failed program was:" >&5
26472sed 's/^/| /' conftest.$ac_ext >&5
26473
74b84332
VS
26474
26475 echo "$as_me:$LINENO: result: no" >&5
26476echo "${ECHO_T}no" >&6
26477 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26478echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26479 { (exit 1); exit 1; }; }
26480
26481
26482fi
26483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26484
26485 CFLAGS=$save_CFLAGS
26486 fi
26487 fi
26488
26489 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26490echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26491 libp_link=""
26492 libsm_ice_link=""
26493 libs_found=0
26494 for libp in "" " -lXp"; do
26495 if test "$libs_found" = "0"; then
26496 for libsm_ice in "" " -lSM -lICE"; do
26497 if test "$libs_found" = "0"; then
26498 save_LIBS="$LIBS"
26499 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26500 save_CFLAGS=$CFLAGS
26501 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26502
26503 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26504/* confdefs.h. */
26505_ACEOF
26506cat confdefs.h >>conftest.$ac_ext
26507cat >>conftest.$ac_ext <<_ACEOF
26508/* end confdefs.h. */
26509
74b84332
VS
26510 #include <Xm/Xm.h>
26511 #include <Xm/List.h>
26512
a848cd7e
SC
26513int
26514main ()
26515{
74b84332
VS
26516
26517 XmString string = NULL;
26518 Widget w = NULL;
26519 int position = 0;
26520 XmListAddItem(w, string, position);
26521
a848cd7e
SC
26522 ;
26523 return 0;
26524}
26525_ACEOF
26526rm -f conftest.$ac_objext conftest$ac_exeext
26527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26528 (eval $ac_link) 2>conftest.er1
a848cd7e 26529 ac_status=$?
ac1cb8d3
VS
26530 grep -v '^ *+' conftest.er1 >conftest.err
26531 rm -f conftest.er1
26532 cat conftest.err >&5
a848cd7e
SC
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); } &&
da4486fb 26535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537 (eval $ac_try) 2>&5
26538 ac_status=$?
26539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); }; } &&
26541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543 (eval $ac_try) 2>&5
26544 ac_status=$?
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; }; then
26547
26548 libp_link="$libp"
26549 libsm_ice_link="$libsm_ice"
26550 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26551echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26552 libs_found=1
26553
26554else
26555 echo "$as_me: failed program was:" >&5
26556sed 's/^/| /' conftest.$ac_ext >&5
26557
26558
26559
26560fi
ac1cb8d3
VS
26561rm -f conftest.err conftest.$ac_objext \
26562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26563
26564 LIBS="$save_LIBS"
26565 CFLAGS=$save_CFLAGS
26566 fi
26567 done
26568 fi
26569 done
26570
26571 if test "$libs_found" = "0"; then
26572 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26573echo "${ECHO_T}can't find the right libraries" >&6
26574 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26575echo "$as_me: error: can't link a simple motif program" >&2;}
26576 { (exit 1); exit 1; }; }
26577 fi
26578
26579 save_CFLAGS=$CFLAGS
26580 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26581 echo "$as_me:$LINENO: checking for Motif 2" >&5
26582echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26583 cat >conftest.$ac_ext <<_ACEOF
26584/* confdefs.h. */
26585_ACEOF
26586cat confdefs.h >>conftest.$ac_ext
26587cat >>conftest.$ac_ext <<_ACEOF
26588/* end confdefs.h. */
26589
26590 #include <Xm/Xm.h>
26591
26592int
26593main ()
26594{
26595
26596 #if XmVersion < 2000
26597 #error "Not Motif 2"
26598 #endif
26599
26600 ;
26601 return 0;
26602}
26603_ACEOF
26604rm -f conftest.$ac_objext
26605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26606 (eval $ac_compile) 2>conftest.er1
a848cd7e 26607 ac_status=$?
ac1cb8d3
VS
26608 grep -v '^ *+' conftest.er1 >conftest.err
26609 rm -f conftest.er1
26610 cat conftest.err >&5
a848cd7e
SC
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); } &&
da4486fb 26613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26615 (eval $ac_try) 2>&5
26616 ac_status=$?
26617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618 (exit $ac_status); }; } &&
26619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26621 (eval $ac_try) 2>&5
26622 ac_status=$?
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); }; }; then
26625
26626 cat >>confdefs.h <<\_ACEOF
26627#define __WXMOTIF20__ 1
26628_ACEOF
26629
26630 echo "$as_me:$LINENO: result: found" >&5
26631echo "${ECHO_T}found" >&6
26632
26633else
26634 echo "$as_me: failed program was:" >&5
26635sed 's/^/| /' conftest.$ac_ext >&5
26636
26637
26638 cat >>confdefs.h <<\_ACEOF
26639#define __WXMOTIF20__ 0
26640_ACEOF
26641
26642 echo "$as_me:$LINENO: result: not found" >&5
26643echo "${ECHO_T}not found" >&6
26644
26645fi
ac1cb8d3 26646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26647 CFLAGS=$save_CFLAGS
26648
26649 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26650 TOOLKIT=MOTIF
26651 GUIDIST=MOTIF_DIST
26652 fi
26653
74b84332 26654 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26655 if test "$wxUSE_LIBXPM" = "sys"; then
26656 echo "$as_me:$LINENO: checking for Xpm library" >&5
26657echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26658
26659ac_find_libraries=
26660for ac_dir in $SEARCH_LIB /usr/lib;
26661 do
26662 for ac_extension in a so sl dylib; do
26663 if test -f "$ac_dir/libXpm.$ac_extension"; then
26664 ac_find_libraries=$ac_dir
26665 break 2
26666 fi
26667 done
26668 done
26669
26670 if test "$ac_find_libraries" != "" ; then
26671
26672 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26673 result=$?
26674 if test $result = 0; then
26675 ac_path_to_link=""
26676 else
26677 ac_path_to_link=" -L$ac_find_libraries"
26678 fi
26679
26680 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26681 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26682echo "${ECHO_T}found at $ac_find_libraries" >&6
26683
26684 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26685echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26686if test "${wx_cv_x11_xpm_h+set}" = set; then
26687 echo $ECHO_N "(cached) $ECHO_C" >&6
26688else
26689
26690 save_CFLAGS=$CFLAGS
26691 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26692
26693 cat >conftest.$ac_ext <<_ACEOF
26694/* confdefs.h. */
26695_ACEOF
26696cat confdefs.h >>conftest.$ac_ext
26697cat >>conftest.$ac_ext <<_ACEOF
26698/* end confdefs.h. */
26699
26700 #include <X11/xpm.h>
26701
26702int
26703main ()
26704{
26705
26706 int version;
26707 version = XpmLibraryVersion();
26708
26709 ;
26710 return 0;
26711}
26712_ACEOF
26713rm -f conftest.$ac_objext
26714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26715 (eval $ac_compile) 2>conftest.er1
a848cd7e 26716 ac_status=$?
ac1cb8d3
VS
26717 grep -v '^ *+' conftest.er1 >conftest.err
26718 rm -f conftest.er1
26719 cat conftest.err >&5
a848cd7e
SC
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); } &&
da4486fb 26722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26724 (eval $ac_try) 2>&5
26725 ac_status=$?
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); }; } &&
26728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26730 (eval $ac_try) 2>&5
26731 ac_status=$?
26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); }; }; then
26734 wx_cv_x11_xpm_h=yes
26735else
26736 echo "$as_me: failed program was:" >&5
26737sed 's/^/| /' conftest.$ac_ext >&5
26738
26739wx_cv_x11_xpm_h=no
26740
26741fi
ac1cb8d3 26742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26743
26744 CFLAGS=$save_CFLAGS
26745
26746
26747fi
26748echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26749echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26750
26751 if test $wx_cv_x11_xpm_h = "yes"; then
26752 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26753 cat >>confdefs.h <<\_ACEOF
26754#define wxHAVE_LIB_XPM 1
26755_ACEOF
26756
26757 else
26758 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26759echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26760 fi
26761 fi
26762
26763 fi
26764
26765 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26766echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26767if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26768 echo $ECHO_N "(cached) $ECHO_C" >&6
26769else
26770 ac_check_lib_save_LIBS=$LIBS
26771LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26772cat >conftest.$ac_ext <<_ACEOF
26773/* confdefs.h. */
26774_ACEOF
26775cat confdefs.h >>conftest.$ac_ext
26776cat >>conftest.$ac_ext <<_ACEOF
26777/* end confdefs.h. */
26778
26779/* Override any gcc2 internal prototype to avoid an error. */
26780#ifdef __cplusplus
26781extern "C"
26782#endif
26783/* We use char because int might match the return type of a gcc2
26784 builtin and then its argument prototype would still apply. */
26785char XShapeQueryExtension ();
26786int
26787main ()
26788{
26789XShapeQueryExtension ();
26790 ;
26791 return 0;
26792}
26793_ACEOF
26794rm -f conftest.$ac_objext conftest$ac_exeext
26795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26796 (eval $ac_link) 2>conftest.er1
a848cd7e 26797 ac_status=$?
ac1cb8d3
VS
26798 grep -v '^ *+' conftest.er1 >conftest.err
26799 rm -f conftest.er1
26800 cat conftest.err >&5
a848cd7e
SC
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); } &&
da4486fb 26803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805 (eval $ac_try) 2>&5
26806 ac_status=$?
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); }; } &&
26809 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811 (eval $ac_try) 2>&5
26812 ac_status=$?
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); }; }; then
26815 ac_cv_lib_Xext_XShapeQueryExtension=yes
26816else
26817 echo "$as_me: failed program was:" >&5
26818sed 's/^/| /' conftest.$ac_ext >&5
26819
26820ac_cv_lib_Xext_XShapeQueryExtension=no
26821fi
ac1cb8d3
VS
26822rm -f conftest.err conftest.$ac_objext \
26823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26824LIBS=$ac_check_lib_save_LIBS
26825fi
26826echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26827echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26828if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26829
26830 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26831 wxHAVE_XEXT_LIB=1
26832
26833fi
26834
26835
26836 if test "$wxHAVE_XEXT_LIB" = 1; then
26837 save_CFLAGS="$CFLAGS"
26838 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26839
26840 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26841echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26842 cat >conftest.$ac_ext <<_ACEOF
26843/* confdefs.h. */
26844_ACEOF
26845cat confdefs.h >>conftest.$ac_ext
26846cat >>conftest.$ac_ext <<_ACEOF
26847/* end confdefs.h. */
26848
26849 #include <X11/Xlib.h>
26850 #include <X11/extensions/shape.h>
26851
26852int
26853main ()
26854{
26855
26856 int dummy1, dummy2;
26857 XShapeQueryExtension((Display*)NULL,
26858 (int*)NULL, (int*)NULL);
26859
26860 ;
26861 return 0;
26862}
26863_ACEOF
26864rm -f conftest.$ac_objext
26865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26866 (eval $ac_compile) 2>conftest.er1
a848cd7e 26867 ac_status=$?
ac1cb8d3
VS
26868 grep -v '^ *+' conftest.er1 >conftest.err
26869 rm -f conftest.er1
26870 cat conftest.err >&5
a848cd7e
SC
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); } &&
da4486fb 26873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875 (eval $ac_try) 2>&5
26876 ac_status=$?
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); }; } &&
26879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26881 (eval $ac_try) 2>&5
26882 ac_status=$?
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); }; }; then
26885
26886 cat >>confdefs.h <<\_ACEOF
26887#define HAVE_XSHAPE 1
26888_ACEOF
26889
26890 echo "$as_me:$LINENO: result: found" >&5
26891echo "${ECHO_T}found" >&6
26892
26893else
26894 echo "$as_me: failed program was:" >&5
26895sed 's/^/| /' conftest.$ac_ext >&5
26896
26897
26898 echo "$as_me:$LINENO: result: not found" >&5
26899echo "${ECHO_T}not found" >&6
26900
26901fi
ac1cb8d3 26902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26903 CFLAGS="$save_CFLAGS"
26904
26905 fi
26906 fi
26907
26908 if test "$wxUSE_MAC" = 1; then
26909 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26910echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26911 if test "$GCC" = yes; then
26912 echo "$as_me:$LINENO: result: gcc" >&5
26913echo "${ECHO_T}gcc" >&6
26914 CPPFLAGS_PASCAL="-fpascal-strings"
26915 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26916 echo "$as_me:$LINENO: result: xlc" >&5
26917echo "${ECHO_T}xlc" >&6
26918 CPPFLAGS_PASCAL="-qmacpstr"
26919 else
26920 echo "$as_me:$LINENO: result: none" >&5
26921echo "${ECHO_T}none" >&6
26922 fi
26923
1e9e8aba
DE
26924 if test "x$wxUSE_UNIX" = "xyes"; then
26925 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26926 else
26927 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
26928 fi
a848cd7e 26929
a848cd7e
SC
26930 TOOLKIT=MAC
26931 GUIDIST=MACX_DIST
dd21ced8 26932 WXBASEPORT="_carbon"
a848cd7e
SC
26933 fi
26934
26935 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26936 TOOLKIT=COCOA
26937 GUIDIST=COCOA_DIST
26938 fi
26939
26940 if test "$wxUSE_PM" = 1; then
26941 TOOLKIT=PM
de59c161
RD
26942 GUIDIST=PM_DIST
26943 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26944echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26945if test "${wx_cv_spbcdata+set}" = set; then
26946 echo $ECHO_N "(cached) $ECHO_C" >&6
26947else
26948
26949 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26950/* confdefs.h. */
26951_ACEOF
26952cat confdefs.h >>conftest.$ac_ext
26953cat >>conftest.$ac_ext <<_ACEOF
26954/* end confdefs.h. */
26955
26956 #define INCL_PM
26957 #include <os2.h>
26958
26959int
26960main ()
26961{
26962
26963 SPBCDATA test;
26964
26965 ;
26966 return 0;
26967}
26968_ACEOF
26969rm -f conftest.$ac_objext
26970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26971 (eval $ac_compile) 2>conftest.er1
de59c161 26972 ac_status=$?
ac1cb8d3
VS
26973 grep -v '^ *+' conftest.er1 >conftest.err
26974 rm -f conftest.er1
26975 cat conftest.err >&5
de59c161
RD
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } &&
da4486fb 26978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980 (eval $ac_try) 2>&5
26981 ac_status=$?
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; } &&
26984 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986 (eval $ac_try) 2>&5
26987 ac_status=$?
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; }; then
26990 wx_cv_spbcdata=yes
26991else
26992 echo "$as_me: failed program was:" >&5
26993sed 's/^/| /' conftest.$ac_ext >&5
26994
26995wx_cv_spbcdata=no
26996
26997fi
ac1cb8d3 26998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26999
27000
27001fi
27002echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27003echo "${ECHO_T}$wx_cv_spbcdata" >&6
27004
27005 if test $wx_cv_spbcdata = "yes"; then
27006 cat >>confdefs.h <<\_ACEOF
27007#define HAVE_SPBCDATA 1
27008_ACEOF
27009
27010 fi
a848cd7e
SC
27011 fi
27012
27013 if test "$TOOLKIT" = "PM" ; then
27014 TOOLKIT_DIR="os2"
27015 else
27016 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27017 fi
27018
a848cd7e 27019 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
27020 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27021 WIDGET_SET=univ
a848cd7e
SC
27022 fi
27023
27024 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27025 DISTDIR="wx\$(TOOLKIT)"
27026else
27027 USE_GUI=0
27028
27029 TOOLKIT_DIR="base"
27030
27031 if test "$USE_WIN32" = 1 ; then
a848cd7e 27032 TOOLKIT="MSW"
a848cd7e
SC
27033 fi
27034
a848cd7e
SC
27035 GUIDIST="BASE_DIST"
27036 DISTDIR="wxBase"
27037fi
27038
27039
27040
27041
27042IODBC_C_SRC=""
27043
27044
27045if test "$TOOLKIT" != "MSW" ; then
27046
27047 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27048
27049 if test "${ac_cv_header_sql_h+set}" = set; then
27050 echo "$as_me:$LINENO: checking for sql.h" >&5
27051echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27052if test "${ac_cv_header_sql_h+set}" = set; then
27053 echo $ECHO_N "(cached) $ECHO_C" >&6
27054fi
27055echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27056echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27057else
27058 # Is the header compilable?
27059echo "$as_me:$LINENO: checking sql.h usability" >&5
27060echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27061cat >conftest.$ac_ext <<_ACEOF
27062/* confdefs.h. */
27063_ACEOF
27064cat confdefs.h >>conftest.$ac_ext
27065cat >>conftest.$ac_ext <<_ACEOF
27066/* end confdefs.h. */
27067$ac_includes_default
27068#include <sql.h>
27069_ACEOF
27070rm -f conftest.$ac_objext
27071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27072 (eval $ac_compile) 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); } &&
da4486fb 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_objext'
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_header_compiler=yes
27092else
27093 echo "$as_me: failed program was:" >&5
27094sed 's/^/| /' conftest.$ac_ext >&5
27095
27096ac_header_compiler=no
27097fi
ac1cb8d3 27098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27100echo "${ECHO_T}$ac_header_compiler" >&6
27101
27102# Is the header present?
27103echo "$as_me:$LINENO: checking sql.h presence" >&5
27104echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27105cat >conftest.$ac_ext <<_ACEOF
27106/* confdefs.h. */
27107_ACEOF
27108cat confdefs.h >>conftest.$ac_ext
27109cat >>conftest.$ac_ext <<_ACEOF
27110/* end confdefs.h. */
27111#include <sql.h>
27112_ACEOF
27113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27115 ac_status=$?
27116 grep -v '^ *+' conftest.er1 >conftest.err
27117 rm -f conftest.er1
27118 cat conftest.err >&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); } >/dev/null; then
27121 if test -s conftest.err; then
27122 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27124 else
27125 ac_cpp_err=
27126 fi
27127else
27128 ac_cpp_err=yes
27129fi
27130if test -z "$ac_cpp_err"; then
27131 ac_header_preproc=yes
27132else
27133 echo "$as_me: failed program was:" >&5
27134sed 's/^/| /' conftest.$ac_ext >&5
27135
27136 ac_header_preproc=no
27137fi
27138rm -f conftest.err conftest.$ac_ext
27139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27140echo "${ECHO_T}$ac_header_preproc" >&6
27141
27142# So? What about this header?
ac1cb8d3
VS
27143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27144 yes:no: )
a848cd7e
SC
27145 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27146echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27147 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27148echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27149 ac_header_preproc=yes
a848cd7e 27150 ;;
ac1cb8d3 27151 no:yes:* )
a848cd7e
SC
27152 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27153echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27154 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27155echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27156 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27157echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27158 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27159echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27160 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27161echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27162 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27163echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27164 (
27165 cat <<\_ASBOX
ac1cb8d3
VS
27166## ----------------------------------------- ##
27167## Report this to wx-dev@lists.wxwidgets.org ##
27168## ----------------------------------------- ##
a848cd7e
SC
27169_ASBOX
27170 ) |
27171 sed "s/^/$as_me: WARNING: /" >&2
27172 ;;
27173esac
27174echo "$as_me:$LINENO: checking for sql.h" >&5
27175echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27176if test "${ac_cv_header_sql_h+set}" = set; then
27177 echo $ECHO_N "(cached) $ECHO_C" >&6
27178else
27179 ac_cv_header_sql_h=$ac_header_preproc
27180fi
27181echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27182echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27183
27184fi
27185if test $ac_cv_header_sql_h = yes; then
27186 found_sql_h=1
27187fi
27188
27189
27190 if test "x$found_sql_h" = "x1" ; then
27191 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27192echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27193if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27194 echo $ECHO_N "(cached) $ECHO_C" >&6
27195else
27196 ac_check_lib_save_LIBS=$LIBS
27197LIBS="-liodbc $LIBS"
27198cat >conftest.$ac_ext <<_ACEOF
27199/* confdefs.h. */
27200_ACEOF
27201cat confdefs.h >>conftest.$ac_ext
27202cat >>conftest.$ac_ext <<_ACEOF
27203/* end confdefs.h. */
27204
27205/* Override any gcc2 internal prototype to avoid an error. */
27206#ifdef __cplusplus
27207extern "C"
27208#endif
27209/* We use char because int might match the return type of a gcc2
27210 builtin and then its argument prototype would still apply. */
27211char SQLAllocEnv ();
27212int
27213main ()
27214{
27215SQLAllocEnv ();
27216 ;
27217 return 0;
27218}
27219_ACEOF
27220rm -f conftest.$ac_objext conftest$ac_exeext
27221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27222 (eval $ac_link) 2>conftest.er1
a848cd7e 27223 ac_status=$?
ac1cb8d3
VS
27224 grep -v '^ *+' conftest.er1 >conftest.err
27225 rm -f conftest.er1
27226 cat conftest.err >&5
a848cd7e
SC
27227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228 (exit $ac_status); } &&
da4486fb 27229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27231 (eval $ac_try) 2>&5
27232 ac_status=$?
27233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); }; } &&
27235 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237 (eval $ac_try) 2>&5
27238 ac_status=$?
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); }; }; then
27241 ac_cv_lib_iodbc_SQLAllocEnv=yes
27242else
27243 echo "$as_me: failed program was:" >&5
27244sed 's/^/| /' conftest.$ac_ext >&5
27245
27246ac_cv_lib_iodbc_SQLAllocEnv=no
27247fi
ac1cb8d3
VS
27248rm -f conftest.err conftest.$ac_objext \
27249 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27250LIBS=$ac_check_lib_save_LIBS
27251fi
27252echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27253echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27254if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27255 ODBC_LINK=" -liodbc"
27256else
27257
27258 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27259echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27260if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27261 echo $ECHO_N "(cached) $ECHO_C" >&6
27262else
27263 ac_check_lib_save_LIBS=$LIBS
27264LIBS="-lunixodbc $LIBS"
27265cat >conftest.$ac_ext <<_ACEOF
27266/* confdefs.h. */
27267_ACEOF
27268cat confdefs.h >>conftest.$ac_ext
27269cat >>conftest.$ac_ext <<_ACEOF
27270/* end confdefs.h. */
27271
27272/* Override any gcc2 internal prototype to avoid an error. */
27273#ifdef __cplusplus
27274extern "C"
27275#endif
27276/* We use char because int might match the return type of a gcc2
27277 builtin and then its argument prototype would still apply. */
27278char SQLAllocEnv ();
27279int
27280main ()
27281{
27282SQLAllocEnv ();
27283 ;
27284 return 0;
27285}
27286_ACEOF
27287rm -f conftest.$ac_objext conftest$ac_exeext
27288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27289 (eval $ac_link) 2>conftest.er1
a848cd7e 27290 ac_status=$?
ac1cb8d3
VS
27291 grep -v '^ *+' conftest.er1 >conftest.err
27292 rm -f conftest.er1
27293 cat conftest.err >&5
a848cd7e
SC
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } &&
da4486fb 27296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298 (eval $ac_try) 2>&5
27299 ac_status=$?
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); }; } &&
27302 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27304 (eval $ac_try) 2>&5
27305 ac_status=$?
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); }; }; then
27308 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27309else
27310 echo "$as_me: failed program was:" >&5
27311sed 's/^/| /' conftest.$ac_ext >&5
27312
27313ac_cv_lib_unixodbc_SQLAllocEnv=no
27314fi
ac1cb8d3
VS
27315rm -f conftest.err conftest.$ac_objext \
27316 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27317LIBS=$ac_check_lib_save_LIBS
27318fi
27319echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27320echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27321if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27322 ODBC_LINK=" -lunixodbc"
27323else
27324
27325 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27326echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27327if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27328 echo $ECHO_N "(cached) $ECHO_C" >&6
27329else
27330 ac_check_lib_save_LIBS=$LIBS
27331LIBS="-lodbc $LIBS"
27332cat >conftest.$ac_ext <<_ACEOF
27333/* confdefs.h. */
27334_ACEOF
27335cat confdefs.h >>conftest.$ac_ext
27336cat >>conftest.$ac_ext <<_ACEOF
27337/* end confdefs.h. */
27338
27339/* Override any gcc2 internal prototype to avoid an error. */
27340#ifdef __cplusplus
27341extern "C"
27342#endif
27343/* We use char because int might match the return type of a gcc2
27344 builtin and then its argument prototype would still apply. */
27345char SQLAllocEnv ();
27346int
27347main ()
27348{
27349SQLAllocEnv ();
27350 ;
27351 return 0;
27352}
27353_ACEOF
27354rm -f conftest.$ac_objext conftest$ac_exeext
27355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27356 (eval $ac_link) 2>conftest.er1
a848cd7e 27357 ac_status=$?
ac1cb8d3
VS
27358 grep -v '^ *+' conftest.er1 >conftest.err
27359 rm -f conftest.er1
27360 cat conftest.err >&5
a848cd7e
SC
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); } &&
da4486fb 27363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27365 (eval $ac_try) 2>&5
27366 ac_status=$?
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); }; } &&
27369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371 (eval $ac_try) 2>&5
27372 ac_status=$?
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; }; then
27375 ac_cv_lib_odbc_SQLAllocEnv=yes
27376else
27377 echo "$as_me: failed program was:" >&5
27378sed 's/^/| /' conftest.$ac_ext >&5
27379
27380ac_cv_lib_odbc_SQLAllocEnv=no
27381fi
ac1cb8d3
VS
27382rm -f conftest.err conftest.$ac_objext \
27383 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27384LIBS=$ac_check_lib_save_LIBS
27385fi
27386echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27387echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27388if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27389 ODBC_LINK=" -lodbc"
27390fi
27391
27392
27393fi
27394
27395
27396fi
27397
27398 fi
27399 if test "x$ODBC_LINK" = "x" ; then
27400 if test "$wxUSE_ODBC" = "sys" ; then
27401 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27402echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27403 { (exit 1); exit 1; }; }
27404 else
27405 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27406echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27407 wxUSE_ODBC=builtin
27408 fi
27409 else
27410 wxUSE_ODBC=sys
27411 fi
27412 fi
27413 if test "$wxUSE_ODBC" != "no" ; then
27414 cat >>confdefs.h <<\_ACEOF
27415#define wxUSE_ODBC 1
27416_ACEOF
27417
27418 if test "$wxUSE_ODBC" = "builtin" ; then
27419 cat >>confdefs.h <<\_ACEOF
27420#define wxUSE_BUILTIN_IODBC 1
27421_ACEOF
27422
27423 fi
27424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27425
27426 WXODBCFLAG="-D_IODBC_"
27427 fi
27428fi
27429
a848cd7e 27430
01cb68df 27431
a848cd7e 27432if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27433 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27434 echo "$as_me:$LINENO: checking for Xinerama" >&5
27435echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27436
27437ac_find_libraries=
27438for ac_dir in $SEARCH_LIB /usr/lib;
27439 do
27440 for ac_extension in a so sl dylib; do
27441 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27442 ac_find_libraries=$ac_dir
27443 break 2
27444 fi
27445 done
27446 done
27447
27448 if test "$ac_find_libraries" != "" ; then
27449
27450 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27451 result=$?
27452 if test $result = 0; then
27453 ac_path_to_link=""
27454 else
27455 ac_path_to_link=" -L$ac_find_libraries"
27456 fi
27457
27458 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27459 LDFLAGS="$LDFLAGS $ac_path_to_link"
27460 fi
27461 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27462 echo "$as_me:$LINENO: result: yes" >&5
27463echo "${ECHO_T}yes" >&6
27464
27465 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27466echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27467
27468ac_find_libraries=
27469for ac_dir in $SEARCH_LIB /usr/lib;
27470 do
27471 for ac_extension in a so sl dylib; do
27472 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27473 ac_find_libraries=$ac_dir
27474 break 2
27475 fi
27476 done
27477 done
27478
27479 if test "$ac_find_libraries" != "" ; then
27480 echo "$as_me:$LINENO: result: yes" >&5
27481echo "${ECHO_T}yes" >&6
27482
27483for ac_header in X11/extensions/xf86vmode.h
27484do
27485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27486echo "$as_me:$LINENO: checking for $ac_header" >&5
27487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27488if eval "test \"\${$as_ac_Header+set}\" = set"; then
27489 echo $ECHO_N "(cached) $ECHO_C" >&6
27490else
27491 cat >conftest.$ac_ext <<_ACEOF
27492/* confdefs.h. */
27493_ACEOF
27494cat confdefs.h >>conftest.$ac_ext
27495cat >>conftest.$ac_ext <<_ACEOF
27496/* end confdefs.h. */
27497
27498 #if HAVE_X11_XLIB_H
27499 #include <X11/Xlib.h>
27500 #endif
27501
27502
27503#include <$ac_header>
27504_ACEOF
27505rm -f conftest.$ac_objext
27506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27507 (eval $ac_compile) 2>conftest.er1
a848cd7e 27508 ac_status=$?
ac1cb8d3
VS
27509 grep -v '^ *+' conftest.er1 >conftest.err
27510 rm -f conftest.er1
27511 cat conftest.err >&5
a848cd7e
SC
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); } &&
da4486fb 27514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27516 (eval $ac_try) 2>&5
27517 ac_status=$?
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; } &&
27520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522 (eval $ac_try) 2>&5
27523 ac_status=$?
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); }; }; then
27526 eval "$as_ac_Header=yes"
27527else
27528 echo "$as_me: failed program was:" >&5
27529sed 's/^/| /' conftest.$ac_ext >&5
27530
27531eval "$as_ac_Header=no"
27532fi
ac1cb8d3 27533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27534fi
27535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27537if test `eval echo '${'$as_ac_Header'}'` = yes; then
27538 cat >>confdefs.h <<_ACEOF
27539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27540_ACEOF
27541
27542 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27543
27544fi
27545
27546done
27547
27548 else
27549 echo "$as_me:$LINENO: result: no" >&5
27550echo "${ECHO_T}no" >&6
27551 fi
27552
27553 else
27554 echo "$as_me:$LINENO: result: no" >&5
27555echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27556 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27557echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27558 wxUSE_DISPLAY="no"
27559 fi
01cb68df
RG
27560 elif test "$wxUSE_MSW" = 1; then
27561
27562
27563for ac_header in multimon.h ddraw.h
27564do
27565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27566echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
27567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27568if eval "test \"\${$as_ac_Header+set}\" = set"; then
27569 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 27570else
5294a27e 27571 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
27572/* confdefs.h. */
27573_ACEOF
27574cat confdefs.h >>conftest.$ac_ext
27575cat >>conftest.$ac_ext <<_ACEOF
27576/* end confdefs.h. */
5294a27e
VZ
27577#include <windows.h>
27578
01cb68df
RG
27579#include <$ac_header>
27580_ACEOF
27581rm -f conftest.$ac_objext
27582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27583 (eval $ac_compile) 2>conftest.er1
01cb68df 27584 ac_status=$?
ac1cb8d3
VS
27585 grep -v '^ *+' conftest.er1 >conftest.err
27586 rm -f conftest.er1
27587 cat conftest.err >&5
01cb68df
RG
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); } &&
da4486fb 27590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27592 (eval $ac_try) 2>&5
27593 ac_status=$?
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; } &&
27596 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27598 (eval $ac_try) 2>&5
27599 ac_status=$?
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
5294a27e 27602 eval "$as_ac_Header=yes"
01cb68df
RG
27603else
27604 echo "$as_me: failed program was:" >&5
27605sed 's/^/| /' conftest.$ac_ext >&5
27606
5294a27e 27607eval "$as_ac_Header=no"
01cb68df 27608fi
ac1cb8d3 27609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27610fi
27611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
27613if test `eval echo '${'$as_ac_Header'}'` = yes; then
27614 cat >>confdefs.h <<_ACEOF
27615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27616_ACEOF
27617
27618else
27619
5294a27e
VZ
27620 wxUSE_DISPLAY="no"
27621 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 27622echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27623
27624fi
27625
27626done
27627
a848cd7e
SC
27628 fi
27629fi
27630
27631
3b57de8b
RL
27632if test "$wxUSE_MEDIACTRL" = "yes"; then
27633 if test "$wxUSE_MSW" = 1; then
27634 wxUSE_DIRECTSHOW="yes"
27635
27636for ac_header in dshow.h
27637do
27638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27639echo "$as_me:$LINENO: checking for $ac_header" >&5
3b57de8b
RL
27640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27641if eval "test \"\${$as_ac_Header+set}\" = set"; then
27642 echo $ECHO_N "(cached) $ECHO_C" >&6
3b57de8b 27643else
5294a27e 27644 cat >conftest.$ac_ext <<_ACEOF
3b57de8b
RL
27645/* confdefs.h. */
27646_ACEOF
27647cat confdefs.h >>conftest.$ac_ext
27648cat >>conftest.$ac_ext <<_ACEOF
27649/* end confdefs.h. */
5294a27e
VZ
27650#include <windows.h>
27651
3b57de8b
RL
27652#include <$ac_header>
27653_ACEOF
27654rm -f conftest.$ac_objext
27655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27656 (eval $ac_compile) 2>conftest.er1
27657 ac_status=$?
27658 grep -v '^ *+' conftest.er1 >conftest.err
27659 rm -f conftest.er1
27660 cat conftest.err >&5
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); } &&
da4486fb 27663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3b57de8b
RL
27664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27665 (eval $ac_try) 2>&5
27666 ac_status=$?
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); }; } &&
27669 { ac_try='test -s conftest.$ac_objext'
27670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27671 (eval $ac_try) 2>&5
27672 ac_status=$?
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); }; }; then
5294a27e 27675 eval "$as_ac_Header=yes"
3b57de8b
RL
27676else
27677 echo "$as_me: failed program was:" >&5
27678sed 's/^/| /' conftest.$ac_ext >&5
27679
5294a27e 27680eval "$as_ac_Header=no"
3b57de8b
RL
27681fi
27682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3b57de8b
RL
27683fi
27684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3b57de8b
RL
27686if test `eval echo '${'$as_ac_Header'}'` = yes; then
27687 cat >>confdefs.h <<_ACEOF
27688#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27689_ACEOF
27690
27691else
27692
5294a27e
VZ
27693 wxUSE_DIRECTSHOW="no"
27694 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
3b57de8b
RL
27695echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27696
27697fi
27698
27699done
27700
27701
27702 if test "$wxUSE_DIRECTSHOW" = "yes"; then
5294a27e 27703 cat >>confdefs.h <<\_ACEOF
3b57de8b
RL
27704#define wxUSE_DIRECTSHOW 1
27705_ACEOF
27706
5294a27e 27707 LIBS="$LIBS -lstrmiids"
a98bf0c0 27708 fi
3b57de8b 27709 fi
7e4a1c28 27710
fa9ad408 27711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
7e4a1c28
RN
27712 cat >>confdefs.h <<\_ACEOF
27713#define wxUSE_MEDIACTRL 1
27714_ACEOF
27715
3b57de8b
RL
27716fi
27717
27718
a848cd7e
SC
27719USE_OPENGL=0
27720if test "$wxUSE_OPENGL" = "yes"; then
27721 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27722 OPENGL_LIBS="-framework OpenGL -framework AGL"
27723 elif test "$wxUSE_MSW" = 1; then
27724 OPENGL_LIBS="-lopengl32 -lglu32"
27725 else
27726
27727
27728ac_find_includes=
27729for ac_dir in $SEARCH_INCLUDE /usr/include;
27730 do
27731 if test -f "$ac_dir/GL/gl.h"; then
27732 ac_find_includes=$ac_dir
27733 break
27734 fi
27735 done
27736
27737 if test "$ac_find_includes" != "" ; then
27738 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27739echo "${ECHO_T}found in $ac_find_includes" >&6
27740
27741 if test "x$ac_find_includes" = "x/usr/include"; then
27742 ac_path_to_include=""
27743 else
27744 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27745 result=$?
27746 if test $result = 0; then
27747 ac_path_to_include=""
27748 else
27749 ac_path_to_include=" -I$ac_find_includes"
27750 fi
27751 fi
27752
27753 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27754 fi
27755
27756 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27757 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27758echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27759if test "${ac_cv_header_GL_gl_h+set}" = set; then
27760 echo $ECHO_N "(cached) $ECHO_C" >&6
27761fi
27762echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27763echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27764else
27765 # Is the header compilable?
27766echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27767echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27768cat >conftest.$ac_ext <<_ACEOF
27769/* confdefs.h. */
27770_ACEOF
27771cat confdefs.h >>conftest.$ac_ext
27772cat >>conftest.$ac_ext <<_ACEOF
27773/* end confdefs.h. */
27774$ac_includes_default
27775#include <GL/gl.h>
27776_ACEOF
27777rm -f conftest.$ac_objext
27778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27779 (eval $ac_compile) 2>conftest.er1
a848cd7e 27780 ac_status=$?
ac1cb8d3
VS
27781 grep -v '^ *+' conftest.er1 >conftest.err
27782 rm -f conftest.er1
27783 cat conftest.err >&5
a848cd7e
SC
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); } &&
da4486fb 27786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788 (eval $ac_try) 2>&5
27789 ac_status=$?
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; } &&
27792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27794 (eval $ac_try) 2>&5
27795 ac_status=$?
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); }; }; then
27798 ac_header_compiler=yes
27799else
27800 echo "$as_me: failed program was:" >&5
27801sed 's/^/| /' conftest.$ac_ext >&5
27802
27803ac_header_compiler=no
27804fi
ac1cb8d3 27805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27807echo "${ECHO_T}$ac_header_compiler" >&6
27808
27809# Is the header present?
27810echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27811echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27812cat >conftest.$ac_ext <<_ACEOF
27813/* confdefs.h. */
27814_ACEOF
27815cat confdefs.h >>conftest.$ac_ext
27816cat >>conftest.$ac_ext <<_ACEOF
27817/* end confdefs.h. */
27818#include <GL/gl.h>
27819_ACEOF
27820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27822 ac_status=$?
27823 grep -v '^ *+' conftest.er1 >conftest.err
27824 rm -f conftest.er1
27825 cat conftest.err >&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } >/dev/null; then
27828 if test -s conftest.err; then
27829 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27831 else
27832 ac_cpp_err=
27833 fi
27834else
27835 ac_cpp_err=yes
27836fi
27837if test -z "$ac_cpp_err"; then
27838 ac_header_preproc=yes
27839else
27840 echo "$as_me: failed program was:" >&5
27841sed 's/^/| /' conftest.$ac_ext >&5
27842
27843 ac_header_preproc=no
27844fi
27845rm -f conftest.err conftest.$ac_ext
27846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27847echo "${ECHO_T}$ac_header_preproc" >&6
27848
27849# So? What about this header?
ac1cb8d3
VS
27850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27851 yes:no: )
a848cd7e
SC
27852 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27853echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27854 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27855echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27856 ac_header_preproc=yes
a848cd7e 27857 ;;
ac1cb8d3 27858 no:yes:* )
a848cd7e
SC
27859 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27860echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27861 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27862echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27863 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27864echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27865 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27866echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27867 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27868echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27869 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27870echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27871 (
27872 cat <<\_ASBOX
ac1cb8d3
VS
27873## ----------------------------------------- ##
27874## Report this to wx-dev@lists.wxwidgets.org ##
27875## ----------------------------------------- ##
a848cd7e
SC
27876_ASBOX
27877 ) |
27878 sed "s/^/$as_me: WARNING: /" >&2
27879 ;;
27880esac
27881echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27882echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27883if test "${ac_cv_header_GL_gl_h+set}" = set; then
27884 echo $ECHO_N "(cached) $ECHO_C" >&6
27885else
27886 ac_cv_header_GL_gl_h=$ac_header_preproc
27887fi
27888echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27889echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27890
27891fi
27892if test $ac_cv_header_GL_gl_h = yes; then
27893
27894 found_gl=0
27895
27896 echo "$as_me:$LINENO: checking for -lGL" >&5
27897echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27898
27899ac_find_libraries=
27900for ac_dir in $SEARCH_LIB /usr/lib;
27901 do
27902 for ac_extension in a so sl dylib; do
27903 if test -f "$ac_dir/libGL.$ac_extension"; then
27904 ac_find_libraries=$ac_dir
27905 break 2
27906 fi
27907 done
27908 done
27909
27910 if test "$ac_find_libraries" != "" ; then
27911
27912 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27913 result=$?
27914 if test $result = 0; then
27915 ac_path_to_link=""
27916 else
27917 ac_path_to_link=" -L$ac_find_libraries"
27918 fi
27919
27920 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27921 LDFLAGS_GL="$ac_path_to_link"
27922 fi
27923
27924
27925ac_find_libraries=
27926for ac_dir in $SEARCH_LIB /usr/lib;
27927 do
27928 for ac_extension in a so sl dylib; do
27929 if test -f "$ac_dir/libGLU.$ac_extension"; then
27930 ac_find_libraries=$ac_dir
27931 break 2
27932 fi
27933 done
27934 done
27935
27936 if test "$ac_find_libraries" != "" ; then
27937
27938 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27939 result=$?
27940 if test $result = 0; then
27941 ac_path_to_link=""
27942 else
27943 ac_path_to_link=" -L$ac_find_libraries"
27944 fi
27945
27946 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27947 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27948 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27949 fi
27950
27951 found_gl=1
27952 OPENGL_LIBS="-lGL -lGLU"
27953 echo "$as_me:$LINENO: result: yes" >&5
27954echo "${ECHO_T}yes" >&6
27955 fi
27956 fi
27957
27958 if test "$found_gl" != 1; then
27959 echo "$as_me:$LINENO: result: no" >&5
27960echo "${ECHO_T}no" >&6
27961 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27962echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27963
27964ac_find_libraries=
27965for ac_dir in $SEARCH_LIB /usr/lib;
27966 do
27967 for ac_extension in a so sl dylib; do
27968 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27969 ac_find_libraries=$ac_dir
27970 break 2
27971 fi
27972 done
27973 done
27974
27975 if test "$ac_find_libraries" != "" ; then
27976
27977 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27978 result=$?
27979 if test $result = 0; then
27980 ac_path_to_link=""
27981 else
27982 ac_path_to_link=" -L$ac_find_libraries"
27983 fi
27984
27985 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27986 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27987 echo "$as_me:$LINENO: result: yes" >&5
27988echo "${ECHO_T}yes" >&6
27989 else
27990 echo "$as_me:$LINENO: result: no" >&5
27991echo "${ECHO_T}no" >&6
27992 fi
27993 fi
27994
27995fi
27996
27997
27998
27999 if test "x$OPENGL_LIBS" = "x"; then
28000 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28001echo "$as_me: error: OpenGL libraries not available" >&2;}
28002 { (exit 1); exit 1; }; }
28003 fi
28004 fi
28005
28006 if test "$wxUSE_OPENGL" = "yes"; then
28007 USE_OPENGL=1
28008 cat >>confdefs.h <<\_ACEOF
28009#define wxUSE_OPENGL 1
28010_ACEOF
28011
28012 cat >>confdefs.h <<\_ACEOF
28013#define wxUSE_GLCANVAS 1
28014_ACEOF
28015
28016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28017 fi
28018fi
28019
a848cd7e
SC
28020
28021if test -n "$TOOLKIT" ; then
28022 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28023fi
28024
a848cd7e
SC
28025
28026
28027if test "$wxUSE_SHARED" = "yes"; then
28028 case "${host}" in
28029 *-pc-msdosdjgpp )
28030 wxUSE_SHARED=no
28031 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28032echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28033 ;;
28034 esac
28035fi
28036
a848cd7e 28037if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
28038
28039
28040 found_versioning=no
28041
28042
28043 if test $found_versioning = no ; then
28044 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28045echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28046if test "${wx_cv_version_script+set}" = set; then
28047 echo $ECHO_N "(cached) $ECHO_C" >&6
28048else
28049
28050 echo "VER_1 { *; };" >conftest.sym
28051 echo "int main() { return 0; }" >conftest.cpp
28052
28053 if { ac_try='
28054 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28055 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28057 (eval $ac_try) 2>&5
28058 ac_status=$?
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); }; } ; then
28061 if test -s conftest.stderr ; then
28062 wx_cv_version_script=no
28063 else
28064 wx_cv_version_script=yes
28065 fi
28066 else
28067 wx_cv_version_script=no
28068 fi
28069 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28070
28071fi
28072echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28073echo "${ECHO_T}$wx_cv_version_script" >&6
28074 if test $wx_cv_version_script = yes ; then
28075 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28076 fi
28077 fi
28078
28079
28080 case "${host}" in
28081 *-*-linux* | *-*-gnu* )
28082 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28083 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28084 ;;
28085
28086 *-*-solaris2* )
28087 if test "$GCC" = yes ; then
28088 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28089
28090 saveLdflags="$LDFLAGS"
28091 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28092 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28093echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28094 cat >conftest.$ac_ext <<_ACEOF
28095/* confdefs.h. */
28096_ACEOF
28097cat confdefs.h >>conftest.$ac_ext
28098cat >>conftest.$ac_ext <<_ACEOF
28099/* end confdefs.h. */
28100
28101int
28102main ()
28103{
28104
28105 ;
28106 return 0;
28107}
28108_ACEOF
28109rm -f conftest.$ac_objext conftest$ac_exeext
28110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28111 (eval $ac_link) 2>conftest.er1
a848cd7e 28112 ac_status=$?
ac1cb8d3
VS
28113 grep -v '^ *+' conftest.er1 >conftest.err
28114 rm -f conftest.er1
28115 cat conftest.err >&5
a848cd7e
SC
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); } &&
da4486fb 28118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28120 (eval $ac_try) 2>&5
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); }; } &&
28124 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; }; then
28130
28131 echo "$as_me:$LINENO: result: yes" >&5
28132echo "${ECHO_T}yes" >&6
28133 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28134 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28135
28136else
28137 echo "$as_me: failed program was:" >&5
28138sed 's/^/| /' conftest.$ac_ext >&5
28139
28140
28141 echo "$as_me:$LINENO: result: no" >&5
28142echo "${ECHO_T}no" >&6
28143 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28144echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28145 LDFLAGS="$saveLdflags -Wl,-R,/"
28146 cat >conftest.$ac_ext <<_ACEOF
28147/* confdefs.h. */
28148_ACEOF
28149cat confdefs.h >>conftest.$ac_ext
28150cat >>conftest.$ac_ext <<_ACEOF
28151/* end confdefs.h. */
28152
28153int
28154main ()
28155{
28156
28157 ;
28158 return 0;
28159}
28160_ACEOF
28161rm -f conftest.$ac_objext conftest$ac_exeext
28162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28163 (eval $ac_link) 2>conftest.er1
a848cd7e 28164 ac_status=$?
ac1cb8d3
VS
28165 grep -v '^ *+' conftest.er1 >conftest.err
28166 rm -f conftest.er1
28167 cat conftest.err >&5
a848cd7e
SC
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); } &&
da4486fb 28170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28172 (eval $ac_try) 2>&5
28173 ac_status=$?
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); }; } &&
28176 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28178 (eval $ac_try) 2>&5
28179 ac_status=$?
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; }; then
28182
ffa0583f 28183 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28184echo "${ECHO_T}yes" >&6
ffa0583f
RL
28185 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28186 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28187
a848cd7e
SC
28188else
28189 echo "$as_me: failed program was:" >&5
28190sed 's/^/| /' conftest.$ac_ext >&5
28191
28192
28193 echo "$as_me:$LINENO: result: no" >&5
28194echo "${ECHO_T}no" >&6
28195
28196fi
ac1cb8d3
VS
28197rm -f conftest.err conftest.$ac_objext \
28198 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28199
28200fi
ac1cb8d3
VS
28201rm -f conftest.err conftest.$ac_objext \
28202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28203 LDFLAGS="$saveLdflags"
28204 else
a848cd7e 28205 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28206 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28207 fi
28208 ;;
28209
28210 powerpc-*-darwin* )
28211 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28212 cat <<EOF >change-install-names
28213#!/bin/sh
28214libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28215inst_cmd="install_name_tool "
28216for i in \${libnames} ; do
28217 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28218done
28219\${inst_cmd} \${3}
28220EOF
28221 chmod +x change-install-names
28222 ;;
28223
28224 *-*-cygwin* | *-*-mingw32* )
28225 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28226 ;;
28227
28228 esac
ceec2216 28229
ffa0583f
RL
28230 if test $wxUSE_RPATH = "no"; then
28231 SAMPLES_RPATH_FLAG=''
28232 SAMPLES_RPATH_POSTLINK=''
28233 WXCONFIG_RPATH=''
28234 fi
28235
28236 SHARED=1
28237
28238else
28239
ceec2216
RL
28240 config_linkage_component="-static"
28241 SHARED=0
ffa0583f 28242
ceec2216 28243fi
a848cd7e 28244
a848cd7e 28245
ceec2216
RL
28246UNICODE=0
28247lib_unicode_suffix=
28248WX_CHARTYPE="ansi"
28249if test "$wxUSE_UNICODE" = "yes"; then
28250 lib_unicode_suffix=u
28251 WX_CHARTYPE="unicode"
28252 UNICODE=1
a848cd7e
SC
28253fi
28254
ceec2216
RL
28255lib_debug_suffix=
28256WX_DEBUGTYPE="release"
28257DEBUG_FLAG=0
28258if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28259 lib_debug_suffix=d
28260 WX_DEBUGTYPE="debug"
28261 DEBUG_FLAG=1
28262fi
a848cd7e 28263
ceec2216
RL
28264WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28265WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28266
ceec2216
RL
28267DEBUG_INFO=0
28268if test "$wxUSE_DEBUG_INFO" = "yes"; then
28269 DEBUG_INFO=1
28270fi
a848cd7e 28271
ceec2216 28272WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28273
ceec2216 28274TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28275
ceec2216 28276TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28277
ceec2216
RL
28278if test "$cross_compiling" = "yes"; then
28279 HOST_SUFFIX="-$host_alias"
28280 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28281 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28282fi
28283
dd21ced8 28284WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28285WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28286
28287
28288
a848cd7e 28289if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28290 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28291 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28292
a848cd7e 28293 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28294
28295 # Extract the first word of "Rez", so it can be a program name with args.
28296set dummy Rez; ac_word=$2
28297echo "$as_me:$LINENO: checking for $ac_word" >&5
28298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28299if test "${ac_cv_prog_RESCOMP+set}" = set; then
28300 echo $ECHO_N "(cached) $ECHO_C" >&6
28301else
28302 if test -n "$RESCOMP"; then
28303 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28304else
28305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28306for as_dir in $PATH
28307do
28308 IFS=$as_save_IFS
28309 test -z "$as_dir" && as_dir=.
28310 for ac_exec_ext in '' $ac_executable_extensions; do
28311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28312 ac_cv_prog_RESCOMP="Rez"
28313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28314 break 2
28315 fi
28316done
28317done
28318
28319 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28320fi
28321fi
28322RESCOMP=$ac_cv_prog_RESCOMP
28323if test -n "$RESCOMP"; then
28324 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28325echo "${ECHO_T}$RESCOMP" >&6
28326else
28327 echo "$as_me:$LINENO: result: no" >&5
28328echo "${ECHO_T}no" >&6
28329fi
28330
28331 # Extract the first word of "DeRez", so it can be a program name with args.
28332set dummy DeRez; ac_word=$2
28333echo "$as_me:$LINENO: checking for $ac_word" >&5
28334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28335if test "${ac_cv_prog_DEREZ+set}" = set; then
28336 echo $ECHO_N "(cached) $ECHO_C" >&6
28337else
28338 if test -n "$DEREZ"; then
28339 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28340else
28341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28342for as_dir in $PATH
28343do
28344 IFS=$as_save_IFS
28345 test -z "$as_dir" && as_dir=.
28346 for ac_exec_ext in '' $ac_executable_extensions; do
28347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28348 ac_cv_prog_DEREZ="DeRez"
28349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28350 break 2
28351 fi
28352done
28353done
28354
28355 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28356fi
28357fi
28358DEREZ=$ac_cv_prog_DEREZ
28359if test -n "$DEREZ"; then
28360 echo "$as_me:$LINENO: result: $DEREZ" >&5
28361echo "${ECHO_T}$DEREZ" >&6
28362else
28363 echo "$as_me:$LINENO: result: no" >&5
28364echo "${ECHO_T}no" >&6
28365fi
28366
28367 # Extract the first word of "SetFile", so it can be a program name with args.
28368set dummy SetFile; ac_word=$2
28369echo "$as_me:$LINENO: checking for $ac_word" >&5
28370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28371if test "${ac_cv_prog_SETFILE+set}" = set; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28373else
28374 if test -n "$SETFILE"; then
28375 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28376else
28377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28378for as_dir in $PATH
28379do
28380 IFS=$as_save_IFS
28381 test -z "$as_dir" && as_dir=.
28382 for ac_exec_ext in '' $ac_executable_extensions; do
28383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28384 ac_cv_prog_SETFILE="SetFile"
28385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28386 break 2
28387 fi
28388done
28389done
28390
28391 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28392fi
28393fi
28394SETFILE=$ac_cv_prog_SETFILE
28395if test -n "$SETFILE"; then
28396 echo "$as_me:$LINENO: result: $SETFILE" >&5
28397echo "${ECHO_T}$SETFILE" >&6
28398else
28399 echo "$as_me:$LINENO: result: no" >&5
28400echo "${ECHO_T}no" >&6
28401fi
28402
28403
28404 MACSETFILE="\$(SETFILE)"
28405
28406 if test "$wxUSE_MAC" = 1; then
28407 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28408
28409 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28410 else
28411 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28412 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28413 fi
28414else
ffa0583f
RL
28415 MACSETFILE="@true"
28416 MACRESWXCONFIG="@true"
a848cd7e
SC
28417
28418 if test "$wxUSE_PM" = 1; then
28419 MACRESCOMP="emxbind -ep"
28420 else
ffa0583f 28421 MACRESCOMP="@true"
a848cd7e
SC
28422 fi
28423fi
28424
28425
28426
28427echo "$as_me:$LINENO: checking for mode_t" >&5
28428echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28429if test "${ac_cv_type_mode_t+set}" = set; then
28430 echo $ECHO_N "(cached) $ECHO_C" >&6
28431else
28432 cat >conftest.$ac_ext <<_ACEOF
28433/* confdefs.h. */
28434_ACEOF
28435cat confdefs.h >>conftest.$ac_ext
28436cat >>conftest.$ac_ext <<_ACEOF
28437/* end confdefs.h. */
28438$ac_includes_default
28439int
28440main ()
28441{
28442if ((mode_t *) 0)
28443 return 0;
28444if (sizeof (mode_t))
28445 return 0;
28446 ;
28447 return 0;
28448}
28449_ACEOF
28450rm -f conftest.$ac_objext
28451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28452 (eval $ac_compile) 2>conftest.er1
a848cd7e 28453 ac_status=$?
ac1cb8d3
VS
28454 grep -v '^ *+' conftest.er1 >conftest.err
28455 rm -f conftest.er1
28456 cat conftest.err >&5
a848cd7e
SC
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); } &&
da4486fb 28459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28461 (eval $ac_try) 2>&5
28462 ac_status=$?
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); }; } &&
28465 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28467 (eval $ac_try) 2>&5
28468 ac_status=$?
28469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); }; }; then
28471 ac_cv_type_mode_t=yes
28472else
28473 echo "$as_me: failed program was:" >&5
28474sed 's/^/| /' conftest.$ac_ext >&5
28475
28476ac_cv_type_mode_t=no
28477fi
ac1cb8d3 28478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28479fi
28480echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28481echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28482if test $ac_cv_type_mode_t = yes; then
28483 :
28484else
28485
28486cat >>confdefs.h <<_ACEOF
28487#define mode_t int
28488_ACEOF
28489
28490fi
28491
28492echo "$as_me:$LINENO: checking for off_t" >&5
28493echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28494if test "${ac_cv_type_off_t+set}" = set; then
28495 echo $ECHO_N "(cached) $ECHO_C" >&6
28496else
28497 cat >conftest.$ac_ext <<_ACEOF
28498/* confdefs.h. */
28499_ACEOF
28500cat confdefs.h >>conftest.$ac_ext
28501cat >>conftest.$ac_ext <<_ACEOF
28502/* end confdefs.h. */
28503$ac_includes_default
28504int
28505main ()
28506{
28507if ((off_t *) 0)
28508 return 0;
28509if (sizeof (off_t))
28510 return 0;
28511 ;
28512 return 0;
28513}
28514_ACEOF
28515rm -f conftest.$ac_objext
28516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28517 (eval $ac_compile) 2>conftest.er1
a848cd7e 28518 ac_status=$?
ac1cb8d3
VS
28519 grep -v '^ *+' conftest.er1 >conftest.err
28520 rm -f conftest.er1
28521 cat conftest.err >&5
a848cd7e
SC
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); } &&
da4486fb 28524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526 (eval $ac_try) 2>&5
28527 ac_status=$?
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; } &&
28530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28532 (eval $ac_try) 2>&5
28533 ac_status=$?
28534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 (exit $ac_status); }; }; then
28536 ac_cv_type_off_t=yes
28537else
28538 echo "$as_me: failed program was:" >&5
28539sed 's/^/| /' conftest.$ac_ext >&5
28540
28541ac_cv_type_off_t=no
28542fi
ac1cb8d3 28543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28544fi
28545echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28546echo "${ECHO_T}$ac_cv_type_off_t" >&6
28547if test $ac_cv_type_off_t = yes; then
28548 :
28549else
28550
28551cat >>confdefs.h <<_ACEOF
28552#define off_t long
28553_ACEOF
28554
28555fi
28556
28557echo "$as_me:$LINENO: checking for pid_t" >&5
28558echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28559if test "${ac_cv_type_pid_t+set}" = set; then
28560 echo $ECHO_N "(cached) $ECHO_C" >&6
28561else
28562 cat >conftest.$ac_ext <<_ACEOF
28563/* confdefs.h. */
28564_ACEOF
28565cat confdefs.h >>conftest.$ac_ext
28566cat >>conftest.$ac_ext <<_ACEOF
28567/* end confdefs.h. */
28568$ac_includes_default
28569int
28570main ()
28571{
28572if ((pid_t *) 0)
28573 return 0;
28574if (sizeof (pid_t))
28575 return 0;
28576 ;
28577 return 0;
28578}
28579_ACEOF
28580rm -f conftest.$ac_objext
28581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28582 (eval $ac_compile) 2>conftest.er1
a848cd7e 28583 ac_status=$?
ac1cb8d3
VS
28584 grep -v '^ *+' conftest.er1 >conftest.err
28585 rm -f conftest.er1
28586 cat conftest.err >&5
a848cd7e
SC
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } &&
da4486fb 28589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591 (eval $ac_try) 2>&5
28592 ac_status=$?
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); }; } &&
28595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597 (eval $ac_try) 2>&5
28598 ac_status=$?
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); }; }; then
28601 ac_cv_type_pid_t=yes
28602else
28603 echo "$as_me: failed program was:" >&5
28604sed 's/^/| /' conftest.$ac_ext >&5
28605
28606ac_cv_type_pid_t=no
28607fi
ac1cb8d3 28608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28609fi
28610echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28611echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28612if test $ac_cv_type_pid_t = yes; then
28613 :
28614else
28615
28616cat >>confdefs.h <<_ACEOF
28617#define pid_t int
28618_ACEOF
28619
28620fi
28621
28622echo "$as_me:$LINENO: checking for size_t" >&5
28623echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28624if test "${ac_cv_type_size_t+set}" = set; then
28625 echo $ECHO_N "(cached) $ECHO_C" >&6
28626else
28627 cat >conftest.$ac_ext <<_ACEOF
28628/* confdefs.h. */
28629_ACEOF
28630cat confdefs.h >>conftest.$ac_ext
28631cat >>conftest.$ac_ext <<_ACEOF
28632/* end confdefs.h. */
28633$ac_includes_default
28634int
28635main ()
28636{
28637if ((size_t *) 0)
28638 return 0;
28639if (sizeof (size_t))
28640 return 0;
28641 ;
28642 return 0;
28643}
28644_ACEOF
28645rm -f conftest.$ac_objext
28646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28647 (eval $ac_compile) 2>conftest.er1
a848cd7e 28648 ac_status=$?
ac1cb8d3
VS
28649 grep -v '^ *+' conftest.er1 >conftest.err
28650 rm -f conftest.er1
28651 cat conftest.err >&5
a848cd7e
SC
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); } &&
da4486fb 28654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656 (eval $ac_try) 2>&5
28657 ac_status=$?
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; } &&
28660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662 (eval $ac_try) 2>&5
28663 ac_status=$?
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); }; }; then
28666 ac_cv_type_size_t=yes
28667else
28668 echo "$as_me: failed program was:" >&5
28669sed 's/^/| /' conftest.$ac_ext >&5
28670
28671ac_cv_type_size_t=no
28672fi
ac1cb8d3 28673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28674fi
28675echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28676echo "${ECHO_T}$ac_cv_type_size_t" >&6
28677if test $ac_cv_type_size_t = yes; then
28678 :
28679else
28680
28681cat >>confdefs.h <<_ACEOF
28682#define size_t unsigned
28683_ACEOF
28684
28685fi
28686
28687echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28688echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28689if test "${ac_cv_type_uid_t+set}" = set; then
28690 echo $ECHO_N "(cached) $ECHO_C" >&6
28691else
28692 cat >conftest.$ac_ext <<_ACEOF
28693/* confdefs.h. */
28694_ACEOF
28695cat confdefs.h >>conftest.$ac_ext
28696cat >>conftest.$ac_ext <<_ACEOF
28697/* end confdefs.h. */
28698#include <sys/types.h>
28699
28700_ACEOF
28701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28702 $EGREP "uid_t" >/dev/null 2>&1; then
28703 ac_cv_type_uid_t=yes
28704else
28705 ac_cv_type_uid_t=no
28706fi
28707rm -f conftest*
28708
28709fi
28710echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28711echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28712if test $ac_cv_type_uid_t = no; then
28713
28714cat >>confdefs.h <<\_ACEOF
28715#define uid_t int
28716_ACEOF
28717
28718
28719cat >>confdefs.h <<\_ACEOF
28720#define gid_t int
28721_ACEOF
28722
28723fi
28724
28725
d51253e8
RL
28726echo "$as_me:$LINENO: checking for ssize_t" >&5
28727echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28728if test "${ac_cv_type_ssize_t+set}" = set; then
28729 echo $ECHO_N "(cached) $ECHO_C" >&6
28730else
28731 cat >conftest.$ac_ext <<_ACEOF
28732/* confdefs.h. */
28733_ACEOF
28734cat confdefs.h >>conftest.$ac_ext
28735cat >>conftest.$ac_ext <<_ACEOF
28736/* end confdefs.h. */
28737$ac_includes_default
28738int
28739main ()
28740{
28741if ((ssize_t *) 0)
28742 return 0;
28743if (sizeof (ssize_t))
28744 return 0;
28745 ;
28746 return 0;
28747}
28748_ACEOF
28749rm -f conftest.$ac_objext
28750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28751 (eval $ac_compile) 2>conftest.er1
28752 ac_status=$?
28753 grep -v '^ *+' conftest.er1 >conftest.err
28754 rm -f conftest.er1
28755 cat conftest.err >&5
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); } &&
da4486fb 28758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
28759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760 (eval $ac_try) 2>&5
28761 ac_status=$?
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; } &&
28764 { ac_try='test -s conftest.$ac_objext'
28765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766 (eval $ac_try) 2>&5
28767 ac_status=$?
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); }; }; then
28770 ac_cv_type_ssize_t=yes
28771else
28772 echo "$as_me: failed program was:" >&5
28773sed 's/^/| /' conftest.$ac_ext >&5
28774
28775ac_cv_type_ssize_t=no
28776fi
28777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28778fi
28779echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28780echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28781if test $ac_cv_type_ssize_t = yes; then
28782
28783cat >>confdefs.h <<_ACEOF
28784#define HAVE_SSIZE_T 1
28785_ACEOF
28786
28787
28788fi
28789
28790
a848cd7e
SC
28791
28792
28793ac_ext=cc
28794ac_cpp='$CXXCPP $CPPFLAGS'
28795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28798
28799echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28800echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28801if test "${wx_cv_size_t_is_uint+set}" = set; then
28802 echo $ECHO_N "(cached) $ECHO_C" >&6
28803else
28804
28805 cat >conftest.$ac_ext <<_ACEOF
28806/* confdefs.h. */
28807_ACEOF
28808cat confdefs.h >>conftest.$ac_ext
28809cat >>conftest.$ac_ext <<_ACEOF
28810/* end confdefs.h. */
28811#include <stddef.h>
28812int
28813main ()
28814{
28815
28816 return 0; }
28817
28818 struct Foo { void foo(size_t); void foo(unsigned int); };
28819
28820 int bar() {
28821
28822 ;
28823 return 0;
28824}
28825_ACEOF
28826rm -f conftest.$ac_objext
28827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28828 (eval $ac_compile) 2>conftest.er1
a848cd7e 28829 ac_status=$?
ac1cb8d3
VS
28830 grep -v '^ *+' conftest.er1 >conftest.err
28831 rm -f conftest.er1
28832 cat conftest.err >&5
a848cd7e
SC
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); } &&
da4486fb 28835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837 (eval $ac_try) 2>&5
28838 ac_status=$?
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; } &&
28841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843 (eval $ac_try) 2>&5
28844 ac_status=$?
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; }; then
28847 wx_cv_size_t_is_uint=no
28848else
28849 echo "$as_me: failed program was:" >&5
28850sed 's/^/| /' conftest.$ac_ext >&5
28851
28852wx_cv_size_t_is_uint=yes
28853
28854fi
ac1cb8d3 28855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28856
28857
28858fi
28859echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28860echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28861
28862if test "$wx_cv_size_t_is_uint" = "yes"; then
28863 cat >>confdefs.h <<\_ACEOF
28864#define wxSIZE_T_IS_UINT 1
28865_ACEOF
28866
28867else
28868 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28869echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28870if test "${wx_cv_size_t_is_ulong+set}" = set; then
28871 echo $ECHO_N "(cached) $ECHO_C" >&6
28872else
28873 cat >conftest.$ac_ext <<_ACEOF
28874/* confdefs.h. */
28875_ACEOF
28876cat confdefs.h >>conftest.$ac_ext
28877cat >>conftest.$ac_ext <<_ACEOF
28878/* end confdefs.h. */
28879#include <stddef.h>
28880int
28881main ()
28882{
28883
28884 return 0; }
28885
28886 struct Foo { void foo(size_t); void foo(unsigned long); };
28887
28888 int bar() {
28889
28890 ;
28891 return 0;
28892}
28893_ACEOF
28894rm -f conftest.$ac_objext
28895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28896 (eval $ac_compile) 2>conftest.er1
a848cd7e 28897 ac_status=$?
ac1cb8d3
VS
28898 grep -v '^ *+' conftest.er1 >conftest.err
28899 rm -f conftest.er1
28900 cat conftest.err >&5
a848cd7e
SC
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); } &&
da4486fb 28903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; } &&
28909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28911 (eval $ac_try) 2>&5
28912 ac_status=$?
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); }; }; then
28915 wx_cv_size_t_is_ulong=no
28916else
28917 echo "$as_me: failed program was:" >&5
28918sed 's/^/| /' conftest.$ac_ext >&5
28919
28920wx_cv_size_t_is_ulong=yes
28921
28922fi
ac1cb8d3 28923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28924
28925fi
28926echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28927echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28928
28929 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28930 cat >>confdefs.h <<\_ACEOF
28931#define wxSIZE_T_IS_ULONG 1
28932_ACEOF
28933
28934 fi
28935fi
28936
28937ac_ext=c
28938ac_cpp='$CPP $CPPFLAGS'
28939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28941ac_compiler_gnu=$ac_cv_c_compiler_gnu
28942
28943
28944
28945echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28946echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28947if test "${wx_cv_struct_pw_gecos+set}" = set; then
28948 echo $ECHO_N "(cached) $ECHO_C" >&6
28949else
28950
28951 cat >conftest.$ac_ext <<_ACEOF
28952/* confdefs.h. */
28953_ACEOF
28954cat confdefs.h >>conftest.$ac_ext
28955cat >>conftest.$ac_ext <<_ACEOF
28956/* end confdefs.h. */
28957#include <pwd.h>
28958int
28959main ()
28960{
28961
28962 char *p;
28963 struct passwd *pw;
28964 p = pw->pw_gecos;
28965
28966 ;
28967 return 0;
28968}
28969_ACEOF
28970rm -f conftest.$ac_objext
28971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28972 (eval $ac_compile) 2>conftest.er1
a848cd7e 28973 ac_status=$?
ac1cb8d3
VS
28974 grep -v '^ *+' conftest.er1 >conftest.err
28975 rm -f conftest.er1
28976 cat conftest.err >&5
a848cd7e
SC
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); } &&
da4486fb 28979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28981 (eval $ac_try) 2>&5
28982 ac_status=$?
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); }; } &&
28985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987 (eval $ac_try) 2>&5
28988 ac_status=$?
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); }; }; then
28991
28992 wx_cv_struct_pw_gecos=yes
28993
28994else
28995 echo "$as_me: failed program was:" >&5
28996sed 's/^/| /' conftest.$ac_ext >&5
28997
28998
28999 wx_cv_struct_pw_gecos=no
29000
29001
29002fi
ac1cb8d3 29003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29004
29005
29006fi
29007echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29008echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29009
29010if test "$wx_cv_struct_pw_gecos" = "yes"; then
29011 cat >>confdefs.h <<\_ACEOF
29012#define HAVE_PW_GECOS 1
29013_ACEOF
29014
29015fi
29016
29017
29018if test "$wx_cv_sizeof_wchar_t" != "0"; then
29019 cat >>confdefs.h <<\_ACEOF
29020#define wxUSE_WCHAR_T 1
29021_ACEOF
29022
29023
29024 WCSLEN_FOUND=0
29025 WCHAR_LINK=
29026
29027for ac_func in wcslen
29028do
29029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29030echo "$as_me:$LINENO: checking for $ac_func" >&5
29031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29032if eval "test \"\${$as_ac_var+set}\" = set"; then
29033 echo $ECHO_N "(cached) $ECHO_C" >&6
29034else
29035 cat >conftest.$ac_ext <<_ACEOF
29036/* confdefs.h. */
29037_ACEOF
29038cat confdefs.h >>conftest.$ac_ext
29039cat >>conftest.$ac_ext <<_ACEOF
29040/* end confdefs.h. */
ac1cb8d3
VS
29041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29043#define $ac_func innocuous_$ac_func
29044
a848cd7e
SC
29045/* System header to define __stub macros and hopefully few prototypes,
29046 which can conflict with char $ac_func (); below.
29047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29048 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29049
a848cd7e
SC
29050#ifdef __STDC__
29051# include <limits.h>
29052#else
29053# include <assert.h>
29054#endif
ac1cb8d3
VS
29055
29056#undef $ac_func
29057
a848cd7e
SC
29058/* Override any gcc2 internal prototype to avoid an error. */
29059#ifdef __cplusplus
29060extern "C"
29061{
29062#endif
29063/* We use char because int might match the return type of a gcc2
29064 builtin and then its argument prototype would still apply. */
29065char $ac_func ();
29066/* The GNU C library defines this for functions which it implements
29067 to always fail with ENOSYS. Some functions are actually named
29068 something starting with __ and the normal name is an alias. */
29069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29070choke me
29071#else
29072char (*f) () = $ac_func;
29073#endif
29074#ifdef __cplusplus
29075}
29076#endif
29077
29078int
29079main ()
29080{
29081return f != $ac_func;
29082 ;
29083 return 0;
29084}
29085_ACEOF
29086rm -f conftest.$ac_objext conftest$ac_exeext
29087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29088 (eval $ac_link) 2>conftest.er1
a848cd7e 29089 ac_status=$?
ac1cb8d3
VS
29090 grep -v '^ *+' conftest.er1 >conftest.err
29091 rm -f conftest.er1
29092 cat conftest.err >&5
a848cd7e
SC
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } &&
da4486fb 29095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097 (eval $ac_try) 2>&5
29098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; } &&
29101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29104 ac_status=$?
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; }; then
29107 eval "$as_ac_var=yes"
29108else
29109 echo "$as_me: failed program was:" >&5
29110sed 's/^/| /' conftest.$ac_ext >&5
29111
29112eval "$as_ac_var=no"
29113fi
ac1cb8d3
VS
29114rm -f conftest.err conftest.$ac_objext \
29115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29116fi
29117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29118echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29119if test `eval echo '${'$as_ac_var'}'` = yes; then
29120 cat >>confdefs.h <<_ACEOF
29121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29122_ACEOF
29123 WCSLEN_FOUND=1
29124fi
29125done
29126
29127
29128 if test "$WCSLEN_FOUND" = 0; then
29129 if test "$TOOLKIT" = "MSW"; then
29130 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29131echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29132if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29133 echo $ECHO_N "(cached) $ECHO_C" >&6
29134else
29135 ac_check_lib_save_LIBS=$LIBS
29136LIBS="-lmsvcrt $LIBS"
29137cat >conftest.$ac_ext <<_ACEOF
29138/* confdefs.h. */
29139_ACEOF
29140cat confdefs.h >>conftest.$ac_ext
29141cat >>conftest.$ac_ext <<_ACEOF
29142/* end confdefs.h. */
29143
29144/* Override any gcc2 internal prototype to avoid an error. */
29145#ifdef __cplusplus
29146extern "C"
29147#endif
29148/* We use char because int might match the return type of a gcc2
29149 builtin and then its argument prototype would still apply. */
29150char wcslen ();
29151int
29152main ()
29153{
29154wcslen ();
29155 ;
29156 return 0;
29157}
29158_ACEOF
29159rm -f conftest.$ac_objext conftest$ac_exeext
29160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29161 (eval $ac_link) 2>conftest.er1
a848cd7e 29162 ac_status=$?
ac1cb8d3
VS
29163 grep -v '^ *+' conftest.er1 >conftest.err
29164 rm -f conftest.er1
29165 cat conftest.err >&5
a848cd7e
SC
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); } &&
da4486fb 29168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170 (eval $ac_try) 2>&5
29171 ac_status=$?
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); }; } &&
29174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29177 ac_status=$?
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; }; then
29180 ac_cv_lib_msvcrt_wcslen=yes
29181else
29182 echo "$as_me: failed program was:" >&5
29183sed 's/^/| /' conftest.$ac_ext >&5
29184
29185ac_cv_lib_msvcrt_wcslen=no
29186fi
ac1cb8d3
VS
29187rm -f conftest.err conftest.$ac_objext \
29188 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29189LIBS=$ac_check_lib_save_LIBS
29190fi
29191echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29192echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29193if test $ac_cv_lib_msvcrt_wcslen = yes; then
29194 WCHAR_OK=1
29195fi
29196
29197 else
29198 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29199echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29200if test "${ac_cv_lib_w_wcslen+set}" = set; then
29201 echo $ECHO_N "(cached) $ECHO_C" >&6
29202else
29203 ac_check_lib_save_LIBS=$LIBS
29204LIBS="-lw $LIBS"
29205cat >conftest.$ac_ext <<_ACEOF
29206/* confdefs.h. */
29207_ACEOF
29208cat confdefs.h >>conftest.$ac_ext
29209cat >>conftest.$ac_ext <<_ACEOF
29210/* end confdefs.h. */
29211
29212/* Override any gcc2 internal prototype to avoid an error. */
29213#ifdef __cplusplus
29214extern "C"
29215#endif
29216/* We use char because int might match the return type of a gcc2
29217 builtin and then its argument prototype would still apply. */
29218char wcslen ();
29219int
29220main ()
29221{
29222wcslen ();
29223 ;
29224 return 0;
29225}
29226_ACEOF
29227rm -f conftest.$ac_objext conftest$ac_exeext
29228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29229 (eval $ac_link) 2>conftest.er1
a848cd7e 29230 ac_status=$?
ac1cb8d3
VS
29231 grep -v '^ *+' conftest.er1 >conftest.err
29232 rm -f conftest.er1
29233 cat conftest.err >&5
a848cd7e
SC
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); } &&
da4486fb 29236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238 (eval $ac_try) 2>&5
29239 ac_status=$?
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; } &&
29242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29244 (eval $ac_try) 2>&5
29245 ac_status=$?
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; }; then
29248 ac_cv_lib_w_wcslen=yes
29249else
29250 echo "$as_me: failed program was:" >&5
29251sed 's/^/| /' conftest.$ac_ext >&5
29252
29253ac_cv_lib_w_wcslen=no
29254fi
ac1cb8d3
VS
29255rm -f conftest.err conftest.$ac_objext \
29256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29257LIBS=$ac_check_lib_save_LIBS
29258fi
29259echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29260echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29261if test $ac_cv_lib_w_wcslen = yes; then
29262
29263 WCHAR_LINK=" -lw"
29264 WCSLEN_FOUND=1
29265
29266fi
29267
29268 fi
29269 fi
29270
29271 if test "$WCSLEN_FOUND" = 1; then
29272 cat >>confdefs.h <<\_ACEOF
29273#define HAVE_WCSLEN 1
29274_ACEOF
29275
29276 fi
29277
473276a9
VS
29278 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29279 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29280 fi
29281
a848cd7e
SC
29282
29283for ac_func in wcsrtombs
29284do
29285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29286echo "$as_me:$LINENO: checking for $ac_func" >&5
29287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29288if eval "test \"\${$as_ac_var+set}\" = set"; then
29289 echo $ECHO_N "(cached) $ECHO_C" >&6
29290else
29291 cat >conftest.$ac_ext <<_ACEOF
29292/* confdefs.h. */
29293_ACEOF
29294cat confdefs.h >>conftest.$ac_ext
29295cat >>conftest.$ac_ext <<_ACEOF
29296/* end confdefs.h. */
ac1cb8d3
VS
29297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29299#define $ac_func innocuous_$ac_func
29300
a848cd7e
SC
29301/* System header to define __stub macros and hopefully few prototypes,
29302 which can conflict with char $ac_func (); below.
29303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29304 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29305
a848cd7e
SC
29306#ifdef __STDC__
29307# include <limits.h>
29308#else
29309# include <assert.h>
29310#endif
ac1cb8d3
VS
29311
29312#undef $ac_func
29313
a848cd7e
SC
29314/* Override any gcc2 internal prototype to avoid an error. */
29315#ifdef __cplusplus
29316extern "C"
29317{
29318#endif
29319/* We use char because int might match the return type of a gcc2
29320 builtin and then its argument prototype would still apply. */
29321char $ac_func ();
29322/* The GNU C library defines this for functions which it implements
29323 to always fail with ENOSYS. Some functions are actually named
29324 something starting with __ and the normal name is an alias. */
29325#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29326choke me
29327#else
29328char (*f) () = $ac_func;
29329#endif
29330#ifdef __cplusplus
29331}
29332#endif
29333
29334int
29335main ()
29336{
29337return f != $ac_func;
29338 ;
29339 return 0;
29340}
29341_ACEOF
29342rm -f conftest.$ac_objext conftest$ac_exeext
29343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29344 (eval $ac_link) 2>conftest.er1
a848cd7e 29345 ac_status=$?
ac1cb8d3
VS
29346 grep -v '^ *+' conftest.er1 >conftest.err
29347 rm -f conftest.er1
29348 cat conftest.err >&5
a848cd7e
SC
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); } &&
da4486fb 29351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29353 (eval $ac_try) 2>&5
29354 ac_status=$?
29355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356 (exit $ac_status); }; } &&
29357 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29359 (eval $ac_try) 2>&5
29360 ac_status=$?
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); }; }; then
29363 eval "$as_ac_var=yes"
29364else
29365 echo "$as_me: failed program was:" >&5
29366sed 's/^/| /' conftest.$ac_ext >&5
29367
29368eval "$as_ac_var=no"
29369fi
ac1cb8d3
VS
29370rm -f conftest.err conftest.$ac_objext \
29371 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29372fi
29373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29374echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29375if test `eval echo '${'$as_ac_var'}'` = yes; then
29376 cat >>confdefs.h <<_ACEOF
29377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29378_ACEOF
29379
29380fi
29381done
29382
29383else
29384 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29385echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29386fi
29387
29388
29389
29390ac_ext=cc
29391ac_cpp='$CXXCPP $CPPFLAGS'
29392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29395
29396
29397
29398for ac_func in vsnprintf
29399do
29400as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29401echo "$as_me:$LINENO: checking for $ac_func" >&5
29402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29403if eval "test \"\${$as_ac_var+set}\" = set"; then
29404 echo $ECHO_N "(cached) $ECHO_C" >&6
29405else
29406 cat >conftest.$ac_ext <<_ACEOF
29407/* confdefs.h. */
29408_ACEOF
29409cat confdefs.h >>conftest.$ac_ext
29410cat >>conftest.$ac_ext <<_ACEOF
29411/* end confdefs.h. */
ac1cb8d3
VS
29412/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29414#define $ac_func innocuous_$ac_func
29415
a848cd7e
SC
29416/* System header to define __stub macros and hopefully few prototypes,
29417 which can conflict with char $ac_func (); below.
29418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29419 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29420
a848cd7e
SC
29421#ifdef __STDC__
29422# include <limits.h>
29423#else
29424# include <assert.h>
29425#endif
ac1cb8d3
VS
29426
29427#undef $ac_func
29428
a848cd7e
SC
29429/* Override any gcc2 internal prototype to avoid an error. */
29430#ifdef __cplusplus
29431extern "C"
29432{
29433#endif
29434/* We use char because int might match the return type of a gcc2
29435 builtin and then its argument prototype would still apply. */
29436char $ac_func ();
29437/* The GNU C library defines this for functions which it implements
29438 to always fail with ENOSYS. Some functions are actually named
29439 something starting with __ and the normal name is an alias. */
29440#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29441choke me
29442#else
29443char (*f) () = $ac_func;
29444#endif
29445#ifdef __cplusplus
29446}
29447#endif
29448
29449int
29450main ()
29451{
29452return f != $ac_func;
29453 ;
29454 return 0;
29455}
29456_ACEOF
29457rm -f conftest.$ac_objext conftest$ac_exeext
29458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29459 (eval $ac_link) 2>conftest.er1
a848cd7e 29460 ac_status=$?
ac1cb8d3
VS
29461 grep -v '^ *+' conftest.er1 >conftest.err
29462 rm -f conftest.er1
29463 cat conftest.err >&5
a848cd7e
SC
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } &&
da4486fb 29466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29468 (eval $ac_try) 2>&5
29469 ac_status=$?
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); }; } &&
29472 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474 (eval $ac_try) 2>&5
29475 ac_status=$?
29476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); }; }; then
29478 eval "$as_ac_var=yes"
29479else
29480 echo "$as_me: failed program was:" >&5
29481sed 's/^/| /' conftest.$ac_ext >&5
29482
29483eval "$as_ac_var=no"
29484fi
ac1cb8d3
VS
29485rm -f conftest.err conftest.$ac_objext \
29486 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29487fi
29488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29489echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29490if test `eval echo '${'$as_ac_var'}'` = yes; then
29491 cat >>confdefs.h <<_ACEOF
29492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29493_ACEOF
29494
29495fi
29496done
29497
29498
29499if test "$ac_cv_func_vsnprintf" = "yes"; then
29500 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29501echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29502if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29503 echo $ECHO_N "(cached) $ECHO_C" >&6
29504else
29505
29506 cat >conftest.$ac_ext <<_ACEOF
29507/* confdefs.h. */
29508_ACEOF
29509cat confdefs.h >>conftest.$ac_ext
29510cat >>conftest.$ac_ext <<_ACEOF
29511/* end confdefs.h. */
29512
29513 #include <stdio.h>
29514 #include <stdarg.h>
29515
29516int
29517main ()
29518{
29519
29520 char *buf;
29521 va_list ap;
29522 vsnprintf(buf, 10u, "%s", ap);
29523
29524 ;
29525 return 0;
29526}
29527_ACEOF
29528rm -f conftest.$ac_objext
29529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29530 (eval $ac_compile) 2>conftest.er1
a848cd7e 29531 ac_status=$?
ac1cb8d3
VS
29532 grep -v '^ *+' conftest.er1 >conftest.err
29533 rm -f conftest.er1
29534 cat conftest.err >&5
a848cd7e
SC
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } &&
da4486fb 29537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539 (eval $ac_try) 2>&5
29540 ac_status=$?
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); }; } &&
29543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545 (eval $ac_try) 2>&5
29546 ac_status=$?
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; }; then
29549 wx_cv_func_vsnprintf_decl=yes
29550else
29551 echo "$as_me: failed program was:" >&5
29552sed 's/^/| /' conftest.$ac_ext >&5
29553
c122b164
DE
29554
29555 cat >conftest.$ac_ext <<_ACEOF
29556/* confdefs.h. */
29557_ACEOF
29558cat confdefs.h >>conftest.$ac_ext
29559cat >>conftest.$ac_ext <<_ACEOF
29560/* end confdefs.h. */
29561
29562 #include <stdio.h>
29563 #include <stdarg.h>
29564 using namespace std;
29565
29566int
29567main ()
29568{
29569
29570 char *buf;
29571 va_list ap;
29572 vsnprintf(buf, 10u, "%s", ap);
29573
29574 ;
29575 return 0;
29576}
29577_ACEOF
29578rm -f conftest.$ac_objext
29579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29580 (eval $ac_compile) 2>conftest.er1
29581 ac_status=$?
29582 grep -v '^ *+' conftest.er1 >conftest.err
29583 rm -f conftest.er1
29584 cat conftest.err >&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); } &&
29587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29589 (eval $ac_try) 2>&5
29590 ac_status=$?
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); }; } &&
29593 { ac_try='test -s conftest.$ac_objext'
29594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29595 (eval $ac_try) 2>&5
29596 ac_status=$?
29597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); }; }; then
29599 wx_cv_func_vsnprintf_decl=yes
29600else
29601 echo "$as_me: failed program was:" >&5
29602sed 's/^/| /' conftest.$ac_ext >&5
29603
a848cd7e
SC
29604wx_cv_func_vsnprintf_decl=no
29605
29606fi
ac1cb8d3 29607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29608
29609
c122b164
DE
29610fi
29611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29612
29613
a848cd7e
SC
29614fi
29615echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29616echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29617
29618 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29619 cat >>confdefs.h <<\_ACEOF
29620#define HAVE_VSNPRINTF_DECL 1
29621_ACEOF
29622
29623 fi
29624fi
29625
29626if test "$wxUSE_UNICODE" = yes; then
29627
29628
29629
fbe47c7b
VS
29630
29631
29632
29633for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29634do
29635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29636echo "$as_me:$LINENO: checking for $ac_func" >&5
29637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29638if eval "test \"\${$as_ac_var+set}\" = set"; then
29639 echo $ECHO_N "(cached) $ECHO_C" >&6
29640else
29641 cat >conftest.$ac_ext <<_ACEOF
29642/* confdefs.h. */
29643_ACEOF
29644cat confdefs.h >>conftest.$ac_ext
29645cat >>conftest.$ac_ext <<_ACEOF
29646/* end confdefs.h. */
ac1cb8d3
VS
29647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29649#define $ac_func innocuous_$ac_func
29650
a848cd7e
SC
29651/* System header to define __stub macros and hopefully few prototypes,
29652 which can conflict with char $ac_func (); below.
29653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29654 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29655
a848cd7e
SC
29656#ifdef __STDC__
29657# include <limits.h>
29658#else
29659# include <assert.h>
29660#endif
ac1cb8d3
VS
29661
29662#undef $ac_func
29663
a848cd7e
SC
29664/* Override any gcc2 internal prototype to avoid an error. */
29665#ifdef __cplusplus
29666extern "C"
29667{
29668#endif
29669/* We use char because int might match the return type of a gcc2
29670 builtin and then its argument prototype would still apply. */
29671char $ac_func ();
29672/* The GNU C library defines this for functions which it implements
29673 to always fail with ENOSYS. Some functions are actually named
29674 something starting with __ and the normal name is an alias. */
29675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29676choke me
29677#else
29678char (*f) () = $ac_func;
29679#endif
29680#ifdef __cplusplus
29681}
29682#endif
29683
29684int
29685main ()
29686{
29687return f != $ac_func;
29688 ;
29689 return 0;
29690}
29691_ACEOF
29692rm -f conftest.$ac_objext conftest$ac_exeext
29693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29694 (eval $ac_link) 2>conftest.er1
a848cd7e 29695 ac_status=$?
ac1cb8d3
VS
29696 grep -v '^ *+' conftest.er1 >conftest.err
29697 rm -f conftest.er1
29698 cat conftest.err >&5
a848cd7e
SC
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); } &&
da4486fb 29701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703 (eval $ac_try) 2>&5
29704 ac_status=$?
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); }; } &&
29707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29709 (eval $ac_try) 2>&5
29710 ac_status=$?
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); }; }; then
29713 eval "$as_ac_var=yes"
29714else
29715 echo "$as_me: failed program was:" >&5
29716sed 's/^/| /' conftest.$ac_ext >&5
29717
29718eval "$as_ac_var=no"
29719fi
ac1cb8d3
VS
29720rm -f conftest.err conftest.$ac_objext \
29721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29722fi
29723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29724echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29725if test `eval echo '${'$as_ac_var'}'` = yes; then
29726 cat >>confdefs.h <<_ACEOF
29727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29728_ACEOF
29729
29730fi
29731done
29732
29733
29734 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29735echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29736 cat >conftest.$ac_ext <<_ACEOF
29737/* confdefs.h. */
29738_ACEOF
29739cat confdefs.h >>conftest.$ac_ext
29740cat >>conftest.$ac_ext <<_ACEOF
29741/* end confdefs.h. */
29742#include <wchar.h>
29743int
29744main ()
29745{
29746&_vsnwprintf;
29747 ;
29748 return 0;
29749}
29750_ACEOF
29751rm -f conftest.$ac_objext
29752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29753 (eval $ac_compile) 2>conftest.er1
a848cd7e 29754 ac_status=$?
ac1cb8d3
VS
29755 grep -v '^ *+' conftest.er1 >conftest.err
29756 rm -f conftest.er1
29757 cat conftest.err >&5
a848cd7e
SC
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); } &&
da4486fb 29760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29762 (eval $ac_try) 2>&5
29763 ac_status=$?
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); }; } &&
29766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29768 (eval $ac_try) 2>&5
29769 ac_status=$?
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); }; }; then
29772 echo "$as_me:$LINENO: result: yes" >&5
29773echo "${ECHO_T}yes" >&6
29774 cat >>confdefs.h <<\_ACEOF
29775#define HAVE__VSNWPRINTF 1
29776_ACEOF
29777
29778else
29779 echo "$as_me: failed program was:" >&5
29780sed 's/^/| /' conftest.$ac_ext >&5
29781
29782echo "$as_me:$LINENO: result: no" >&5
29783echo "${ECHO_T}no" >&6
29784fi
ac1cb8d3 29785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29786fi
29787
29788ac_ext=c
29789ac_cpp='$CPP $CPPFLAGS'
29790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29792ac_compiler_gnu=$ac_cv_c_compiler_gnu
29793
29794
29795
29796
29797if test "$TOOLKIT" != "MSW"; then
29798
29799
29800
29801
29802ac_ext=cc
29803ac_cpp='$CXXCPP $CPPFLAGS'
29804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29807
29808
29809
29810
29811# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29812if test "${with_libiconv_prefix+set}" = set; then
29813 withval="$with_libiconv_prefix"
29814
29815 for dir in `echo "$withval" | tr : ' '`; do
29816 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29817 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29818 done
29819
29820fi;
29821
29822 echo "$as_me:$LINENO: checking for iconv" >&5
29823echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29824if test "${am_cv_func_iconv+set}" = set; then
29825 echo $ECHO_N "(cached) $ECHO_C" >&6
29826else
29827
29828 am_cv_func_iconv="no, consider installing GNU libiconv"
29829 am_cv_lib_iconv=no
29830 cat >conftest.$ac_ext <<_ACEOF
29831/* confdefs.h. */
29832_ACEOF
29833cat confdefs.h >>conftest.$ac_ext
29834cat >>conftest.$ac_ext <<_ACEOF
29835/* end confdefs.h. */
29836#include <stdlib.h>
29837#include <iconv.h>
29838int
29839main ()
29840{
29841iconv_t cd = iconv_open("","");
29842 iconv(cd,NULL,NULL,NULL,NULL);
29843 iconv_close(cd);
29844 ;
29845 return 0;
29846}
29847_ACEOF
29848rm -f conftest.$ac_objext conftest$ac_exeext
29849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29850 (eval $ac_link) 2>conftest.er1
a848cd7e 29851 ac_status=$?
ac1cb8d3
VS
29852 grep -v '^ *+' conftest.er1 >conftest.err
29853 rm -f conftest.er1
29854 cat conftest.err >&5
a848cd7e
SC
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); } &&
da4486fb 29857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29859 (eval $ac_try) 2>&5
29860 ac_status=$?
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; } &&
29863 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29865 (eval $ac_try) 2>&5
29866 ac_status=$?
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); }; }; then
29869 am_cv_func_iconv=yes
29870else
29871 echo "$as_me: failed program was:" >&5
29872sed 's/^/| /' conftest.$ac_ext >&5
29873
29874fi
ac1cb8d3
VS
29875rm -f conftest.err conftest.$ac_objext \
29876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29877 if test "$am_cv_func_iconv" != yes; then
29878 am_save_LIBS="$LIBS"
29879 LIBS="$LIBS -liconv"
29880 cat >conftest.$ac_ext <<_ACEOF
29881/* confdefs.h. */
29882_ACEOF
29883cat confdefs.h >>conftest.$ac_ext
29884cat >>conftest.$ac_ext <<_ACEOF
29885/* end confdefs.h. */
29886#include <stdlib.h>
29887#include <iconv.h>
29888int
29889main ()
29890{
29891iconv_t cd = iconv_open("","");
29892 iconv(cd,NULL,NULL,NULL,NULL);
29893 iconv_close(cd);
29894 ;
29895 return 0;
29896}
29897_ACEOF
29898rm -f conftest.$ac_objext conftest$ac_exeext
29899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29900 (eval $ac_link) 2>conftest.er1
a848cd7e 29901 ac_status=$?
ac1cb8d3
VS
29902 grep -v '^ *+' conftest.er1 >conftest.err
29903 rm -f conftest.er1
29904 cat conftest.err >&5
a848cd7e
SC
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); } &&
da4486fb 29907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29909 (eval $ac_try) 2>&5
29910 ac_status=$?
29911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912 (exit $ac_status); }; } &&
29913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29915 (eval $ac_try) 2>&5
29916 ac_status=$?
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; }; then
29919 am_cv_lib_iconv=yes
29920 am_cv_func_iconv=yes
29921else
29922 echo "$as_me: failed program was:" >&5
29923sed 's/^/| /' conftest.$ac_ext >&5
29924
29925fi
ac1cb8d3
VS
29926rm -f conftest.err conftest.$ac_objext \
29927 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29928 LIBS="$am_save_LIBS"
29929 fi
29930
29931fi
29932echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29933echo "${ECHO_T}$am_cv_func_iconv" >&6
29934 if test "$am_cv_func_iconv" = yes; then
29935
29936cat >>confdefs.h <<\_ACEOF
29937#define HAVE_ICONV 1
29938_ACEOF
29939
29940 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29941echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29942if test "${wx_cv_func_iconv_const+set}" = set; then
29943 echo $ECHO_N "(cached) $ECHO_C" >&6
29944else
29945 cat >conftest.$ac_ext <<_ACEOF
29946/* confdefs.h. */
29947_ACEOF
29948cat confdefs.h >>conftest.$ac_ext
29949cat >>conftest.$ac_ext <<_ACEOF
29950/* end confdefs.h. */
29951
29952#include <stdlib.h>
29953#include <iconv.h>
29954extern
29955#ifdef __cplusplus
29956"C"
29957#endif
29958#if defined(__STDC__) || defined(__cplusplus)
29959size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29960#else
29961size_t iconv();
29962#endif
29963
29964int
29965main ()
29966{
29967
29968 ;
29969 return 0;
29970}
29971_ACEOF
29972rm -f conftest.$ac_objext
29973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29974 (eval $ac_compile) 2>conftest.er1
a848cd7e 29975 ac_status=$?
ac1cb8d3
VS
29976 grep -v '^ *+' conftest.er1 >conftest.err
29977 rm -f conftest.er1
29978 cat conftest.err >&5
a848cd7e
SC
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } &&
da4486fb 29981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; } &&
29987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989 (eval $ac_try) 2>&5
29990 ac_status=$?
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; }; then
29993 wx_cv_func_iconv_const="no"
29994else
29995 echo "$as_me: failed program was:" >&5
29996sed 's/^/| /' conftest.$ac_ext >&5
29997
29998wx_cv_func_iconv_const="yes"
29999
30000fi
ac1cb8d3 30001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30002
30003fi
30004echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30005echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30006
30007 iconv_const=
30008 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30009 iconv_const="const"
30010 fi
30011
30012
30013cat >>confdefs.h <<_ACEOF
30014#define ICONV_CONST $iconv_const
30015_ACEOF
30016
30017 fi
30018 LIBICONV=
30019 if test "$am_cv_lib_iconv" = yes; then
30020 LIBICONV="-liconv"
30021 fi
30022
30023
30024LIBS="$LIBICONV $LIBS"
30025ac_ext=c
30026ac_cpp='$CPP $CPPFLAGS'
30027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30029ac_compiler_gnu=$ac_cv_c_compiler_gnu
30030
30031
30032if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30033
30034for ac_func in sigaction
30035do
30036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30037echo "$as_me:$LINENO: checking for $ac_func" >&5
30038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30039if eval "test \"\${$as_ac_var+set}\" = set"; then
30040 echo $ECHO_N "(cached) $ECHO_C" >&6
30041else
30042 cat >conftest.$ac_ext <<_ACEOF
30043/* confdefs.h. */
30044_ACEOF
30045cat confdefs.h >>conftest.$ac_ext
30046cat >>conftest.$ac_ext <<_ACEOF
30047/* end confdefs.h. */
ac1cb8d3
VS
30048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30050#define $ac_func innocuous_$ac_func
30051
a848cd7e
SC
30052/* System header to define __stub macros and hopefully few prototypes,
30053 which can conflict with char $ac_func (); below.
30054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30055 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30056
a848cd7e
SC
30057#ifdef __STDC__
30058# include <limits.h>
30059#else
30060# include <assert.h>
30061#endif
ac1cb8d3
VS
30062
30063#undef $ac_func
30064
a848cd7e
SC
30065/* Override any gcc2 internal prototype to avoid an error. */
30066#ifdef __cplusplus
30067extern "C"
30068{
30069#endif
30070/* We use char because int might match the return type of a gcc2
30071 builtin and then its argument prototype would still apply. */
30072char $ac_func ();
30073/* The GNU C library defines this for functions which it implements
30074 to always fail with ENOSYS. Some functions are actually named
30075 something starting with __ and the normal name is an alias. */
30076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30077choke me
30078#else
30079char (*f) () = $ac_func;
30080#endif
30081#ifdef __cplusplus
30082}
30083#endif
30084
30085int
30086main ()
30087{
30088return f != $ac_func;
30089 ;
30090 return 0;
30091}
30092_ACEOF
30093rm -f conftest.$ac_objext conftest$ac_exeext
30094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30095 (eval $ac_link) 2>conftest.er1
a848cd7e 30096 ac_status=$?
ac1cb8d3
VS
30097 grep -v '^ *+' conftest.er1 >conftest.err
30098 rm -f conftest.er1
30099 cat conftest.err >&5
a848cd7e
SC
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); } &&
da4486fb 30102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30104 (eval $ac_try) 2>&5
30105 ac_status=$?
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); }; } &&
30108 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110 (eval $ac_try) 2>&5
30111 ac_status=$?
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); }; }; then
30114 eval "$as_ac_var=yes"
30115else
30116 echo "$as_me: failed program was:" >&5
30117sed 's/^/| /' conftest.$ac_ext >&5
30118
30119eval "$as_ac_var=no"
30120fi
ac1cb8d3
VS
30121rm -f conftest.err conftest.$ac_objext \
30122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30123fi
30124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30125echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30126if test `eval echo '${'$as_ac_var'}'` = yes; then
30127 cat >>confdefs.h <<_ACEOF
30128#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30129_ACEOF
30130
30131fi
30132done
30133
30134
30135 if test "$ac_cv_func_sigaction" = "no"; then
30136 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30137echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30138 wxUSE_ON_FATAL_EXCEPTION=no
30139 fi
30140
30141 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30142
30143
30144 ac_ext=cc
30145ac_cpp='$CXXCPP $CPPFLAGS'
30146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30149
30150
30151 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30152echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30153if test "${wx_cv_type_sa_handler+set}" = set; then
30154 echo $ECHO_N "(cached) $ECHO_C" >&6
30155else
30156
30157 cat >conftest.$ac_ext <<_ACEOF
30158/* confdefs.h. */
30159_ACEOF
30160cat confdefs.h >>conftest.$ac_ext
30161cat >>conftest.$ac_ext <<_ACEOF
30162/* end confdefs.h. */
30163#include <signal.h>
30164int
30165main ()
30166{
30167
30168 extern void testSigHandler(int);
30169
30170 struct sigaction sa;
30171 sa.sa_handler = testSigHandler;
30172
30173 ;
30174 return 0;
30175}
30176_ACEOF
30177rm -f conftest.$ac_objext
30178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30179 (eval $ac_compile) 2>conftest.er1
a848cd7e 30180 ac_status=$?
ac1cb8d3
VS
30181 grep -v '^ *+' conftest.er1 >conftest.err
30182 rm -f conftest.er1
30183 cat conftest.err >&5
a848cd7e
SC
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); } &&
da4486fb 30186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30188 (eval $ac_try) 2>&5
30189 ac_status=$?
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); }; } &&
30192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30194 (eval $ac_try) 2>&5
30195 ac_status=$?
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); }; }; then
30198
30199 wx_cv_type_sa_handler=int
30200
30201else
30202 echo "$as_me: failed program was:" >&5
30203sed 's/^/| /' conftest.$ac_ext >&5
30204
30205
30206 wx_cv_type_sa_handler=void
30207
30208fi
ac1cb8d3 30209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30210
30211fi
30212echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30213echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30214
30215 ac_ext=c
30216ac_cpp='$CPP $CPPFLAGS'
30217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30219ac_compiler_gnu=$ac_cv_c_compiler_gnu
30220
30221
30222 cat >>confdefs.h <<_ACEOF
30223#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30224_ACEOF
30225
30226 fi
30227fi
30228
eaff0f0d
VZ
30229if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30230
30231
30232 ac_ext=cc
30233ac_cpp='$CXXCPP $CPPFLAGS'
30234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30237
30238
30239 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30240echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30241if test "${wx_cv_func_backtrace+set}" = set; then
30242 echo $ECHO_N "(cached) $ECHO_C" >&6
30243else
30244
30245 cat >conftest.$ac_ext <<_ACEOF
30246/* confdefs.h. */
30247_ACEOF
30248cat confdefs.h >>conftest.$ac_ext
30249cat >>conftest.$ac_ext <<_ACEOF
30250/* end confdefs.h. */
30251#include <execinfo.h>
30252int
30253main ()
30254{
30255
30256 void *trace[1];
30257 char **messages;
30258
30259 backtrace(trace, 1);
30260 messages = backtrace_symbols(trace, 1);
30261
30262 ;
30263 return 0;
30264}
30265_ACEOF
30266rm -f conftest.$ac_objext
30267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30268 (eval $ac_compile) 2>conftest.er1
30269 ac_status=$?
30270 grep -v '^ *+' conftest.er1 >conftest.err
30271 rm -f conftest.er1
30272 cat conftest.err >&5
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); } &&
da4486fb 30275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
30276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30277 (eval $ac_try) 2>&5
30278 ac_status=$?
30279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30280 (exit $ac_status); }; } &&
30281 { ac_try='test -s conftest.$ac_objext'
30282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30283 (eval $ac_try) 2>&5
30284 ac_status=$?
30285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286 (exit $ac_status); }; }; then
30287 wx_cv_func_backtrace=yes
30288else
30289 echo "$as_me: failed program was:" >&5
30290sed 's/^/| /' conftest.$ac_ext >&5
30291
30292wx_cv_func_backtrace=no
30293
30294fi
30295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30296
30297
30298fi
30299echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
30300echo "${ECHO_T}$wx_cv_func_backtrace" >&6
30301
30302
30303 if test "$wx_cv_func_backtrace" = "no"; then
30304 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
30305echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
30306 wxUSE_STACKWALKER=no
30307 else
30308 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
30309echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
30310if test "${wx_cv_func_cxa_demangle+set}" = set; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30312else
30313
30314 cat >conftest.$ac_ext <<_ACEOF
30315/* confdefs.h. */
30316_ACEOF
30317cat confdefs.h >>conftest.$ac_ext
30318cat >>conftest.$ac_ext <<_ACEOF
30319/* end confdefs.h. */
30320#include <cxxabi.h>
30321int
30322main ()
30323{
30324
30325 int rc;
30326 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
30327
30328 ;
30329 return 0;
30330}
30331_ACEOF
30332rm -f conftest.$ac_objext
30333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30334 (eval $ac_compile) 2>conftest.er1
30335 ac_status=$?
30336 grep -v '^ *+' conftest.er1 >conftest.err
30337 rm -f conftest.er1
30338 cat conftest.err >&5
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); } &&
da4486fb 30341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
30342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30343 (eval $ac_try) 2>&5
30344 ac_status=$?
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); }; } &&
30347 { ac_try='test -s conftest.$ac_objext'
30348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349 (eval $ac_try) 2>&5
30350 ac_status=$?
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); }; }; then
30353 wx_cv_func_cxa_demangle=yes
30354else
30355 echo "$as_me: failed program was:" >&5
30356sed 's/^/| /' conftest.$ac_ext >&5
30357
30358wx_cv_func_cxa_demangle=no
30359
30360fi
30361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30362
30363
30364fi
30365echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
30366echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
30367
30368 if test "$wx_cv_func_cxa_demangle" = "yes"; then
30369 cat >>confdefs.h <<\_ACEOF
30370#define HAVE_CXA_DEMANGLE 1
30371_ACEOF
30372
30373 fi
30374 fi
30375
30376 ac_ext=c
30377ac_cpp='$CPP $CPPFLAGS'
30378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30380ac_compiler_gnu=$ac_cv_c_compiler_gnu
30381
30382fi
30383
a848cd7e
SC
30384
30385
30386for ac_func in mkstemp mktemp
30387do
30388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30389echo "$as_me:$LINENO: checking for $ac_func" >&5
30390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30391if eval "test \"\${$as_ac_var+set}\" = set"; then
30392 echo $ECHO_N "(cached) $ECHO_C" >&6
30393else
30394 cat >conftest.$ac_ext <<_ACEOF
30395/* confdefs.h. */
30396_ACEOF
30397cat confdefs.h >>conftest.$ac_ext
30398cat >>conftest.$ac_ext <<_ACEOF
30399/* end confdefs.h. */
ac1cb8d3
VS
30400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30402#define $ac_func innocuous_$ac_func
30403
a848cd7e
SC
30404/* System header to define __stub macros and hopefully few prototypes,
30405 which can conflict with char $ac_func (); below.
30406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30407 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30408
a848cd7e
SC
30409#ifdef __STDC__
30410# include <limits.h>
30411#else
30412# include <assert.h>
30413#endif
ac1cb8d3
VS
30414
30415#undef $ac_func
30416
a848cd7e
SC
30417/* Override any gcc2 internal prototype to avoid an error. */
30418#ifdef __cplusplus
30419extern "C"
30420{
30421#endif
30422/* We use char because int might match the return type of a gcc2
30423 builtin and then its argument prototype would still apply. */
30424char $ac_func ();
30425/* The GNU C library defines this for functions which it implements
30426 to always fail with ENOSYS. Some functions are actually named
30427 something starting with __ and the normal name is an alias. */
30428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30429choke me
30430#else
30431char (*f) () = $ac_func;
30432#endif
30433#ifdef __cplusplus
30434}
30435#endif
30436
30437int
30438main ()
30439{
30440return f != $ac_func;
30441 ;
30442 return 0;
30443}
30444_ACEOF
30445rm -f conftest.$ac_objext conftest$ac_exeext
30446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30447 (eval $ac_link) 2>conftest.er1
a848cd7e 30448 ac_status=$?
ac1cb8d3
VS
30449 grep -v '^ *+' conftest.er1 >conftest.err
30450 rm -f conftest.er1
30451 cat conftest.err >&5
a848cd7e
SC
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); } &&
da4486fb 30454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30456 (eval $ac_try) 2>&5
30457 ac_status=$?
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); }; } &&
30460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30462 (eval $ac_try) 2>&5
30463 ac_status=$?
30464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465 (exit $ac_status); }; }; then
30466 eval "$as_ac_var=yes"
30467else
30468 echo "$as_me: failed program was:" >&5
30469sed 's/^/| /' conftest.$ac_ext >&5
30470
30471eval "$as_ac_var=no"
30472fi
ac1cb8d3
VS
30473rm -f conftest.err conftest.$ac_objext \
30474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30475fi
30476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30478if test `eval echo '${'$as_ac_var'}'` = yes; then
30479 cat >>confdefs.h <<_ACEOF
30480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30481_ACEOF
30482 break
30483fi
30484done
30485
30486
30487echo "$as_me:$LINENO: checking for statfs" >&5
30488echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30489if test "${wx_cv_func_statfs+set}" = set; then
30490 echo $ECHO_N "(cached) $ECHO_C" >&6
30491else
30492 cat >conftest.$ac_ext <<_ACEOF
30493/* confdefs.h. */
30494_ACEOF
30495cat confdefs.h >>conftest.$ac_ext
30496cat >>conftest.$ac_ext <<_ACEOF
30497/* end confdefs.h. */
30498
30499 #if defined(__BSD__)
30500 #include <sys/param.h>
30501 #include <sys/mount.h>
30502 #else
30503 #include <sys/vfs.h>
30504 #endif
30505
30506int
30507main ()
30508{
30509
30510 long l;
30511 struct statfs fs;
30512 statfs("/", &fs);
30513 l = fs.f_bsize;
30514 l += fs.f_blocks;
30515 l += fs.f_bavail;
30516
30517 ;
30518 return 0;
30519}
30520_ACEOF
30521rm -f conftest.$ac_objext
30522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30523 (eval $ac_compile) 2>conftest.er1
a848cd7e 30524 ac_status=$?
ac1cb8d3
VS
30525 grep -v '^ *+' conftest.er1 >conftest.err
30526 rm -f conftest.er1
30527 cat conftest.err >&5
a848cd7e
SC
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); } &&
da4486fb 30530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30532 (eval $ac_try) 2>&5
30533 ac_status=$?
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); }; } &&
30536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538 (eval $ac_try) 2>&5
30539 ac_status=$?
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; }; then
30542
30543 wx_cv_func_statfs=yes
30544
30545else
30546 echo "$as_me: failed program was:" >&5
30547sed 's/^/| /' conftest.$ac_ext >&5
30548
30549
30550 wx_cv_func_statfs=no
30551
30552
30553fi
ac1cb8d3 30554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30555
30556fi
30557echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30558echo "${ECHO_T}$wx_cv_func_statfs" >&6
30559
30560if test "$wx_cv_func_statfs" = "yes"; then
30561 wx_cv_type_statvfs_t="struct statfs"
30562 cat >>confdefs.h <<\_ACEOF
30563#define HAVE_STATFS 1
30564_ACEOF
30565
30566else
30567 echo "$as_me:$LINENO: checking for statvfs" >&5
30568echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30569if test "${wx_cv_func_statvfs+set}" = set; then
30570 echo $ECHO_N "(cached) $ECHO_C" >&6
30571else
30572 cat >conftest.$ac_ext <<_ACEOF
30573/* confdefs.h. */
30574_ACEOF
30575cat confdefs.h >>conftest.$ac_ext
30576cat >>conftest.$ac_ext <<_ACEOF
30577/* end confdefs.h. */
30578
30579 #include <stddef.h>
30580 #include <sys/statvfs.h>
30581
30582int
30583main ()
30584{
30585
30586 statvfs("/", NULL);
30587
30588 ;
30589 return 0;
30590}
30591_ACEOF
30592rm -f conftest.$ac_objext
30593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30594 (eval $ac_compile) 2>conftest.er1
a848cd7e 30595 ac_status=$?
ac1cb8d3
VS
30596 grep -v '^ *+' conftest.er1 >conftest.err
30597 rm -f conftest.er1
30598 cat conftest.err >&5
a848cd7e
SC
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); } &&
da4486fb 30601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30603 (eval $ac_try) 2>&5
30604 ac_status=$?
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); }; } &&
30607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30609 (eval $ac_try) 2>&5
30610 ac_status=$?
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); }; }; then
30613 wx_cv_func_statvfs=yes
30614else
30615 echo "$as_me: failed program was:" >&5
30616sed 's/^/| /' conftest.$ac_ext >&5
30617
30618wx_cv_func_statvfs=no
30619
30620fi
ac1cb8d3 30621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30622
30623fi
30624echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30625echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30626
30627 if test "$wx_cv_func_statvfs" = "yes"; then
30628
30629
30630 ac_ext=cc
30631ac_cpp='$CXXCPP $CPPFLAGS'
30632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30635
30636
30637 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30638echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30639if test "${wx_cv_type_statvfs_t+set}" = set; then
30640 echo $ECHO_N "(cached) $ECHO_C" >&6
30641else
30642 cat >conftest.$ac_ext <<_ACEOF
30643/* confdefs.h. */
30644_ACEOF
30645cat confdefs.h >>conftest.$ac_ext
30646cat >>conftest.$ac_ext <<_ACEOF
30647/* end confdefs.h. */
30648
30649 #include <sys/statvfs.h>
30650
30651int
30652main ()
30653{
30654
30655 long l;
30656 statvfs_t fs;
30657 statvfs("/", &fs);
30658 l = fs.f_bsize;
30659 l += fs.f_blocks;
30660 l += fs.f_bavail;
30661
30662 ;
30663 return 0;
30664}
30665_ACEOF
30666rm -f conftest.$ac_objext
30667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30668 (eval $ac_compile) 2>conftest.er1
a848cd7e 30669 ac_status=$?
ac1cb8d3
VS
30670 grep -v '^ *+' conftest.er1 >conftest.err
30671 rm -f conftest.er1
30672 cat conftest.err >&5
a848cd7e
SC
30673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30674 (exit $ac_status); } &&
da4486fb 30675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30677 (eval $ac_try) 2>&5
30678 ac_status=$?
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); }; } &&
30681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683 (eval $ac_try) 2>&5
30684 ac_status=$?
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; }; then
30687 wx_cv_type_statvfs_t=statvfs_t
30688else
30689 echo "$as_me: failed program was:" >&5
30690sed 's/^/| /' conftest.$ac_ext >&5
30691
30692
30693 cat >conftest.$ac_ext <<_ACEOF
30694/* confdefs.h. */
30695_ACEOF
30696cat confdefs.h >>conftest.$ac_ext
30697cat >>conftest.$ac_ext <<_ACEOF
30698/* end confdefs.h. */
30699
30700 #include <sys/statvfs.h>
30701
30702int
30703main ()
30704{
30705
30706 long l;
30707 struct statvfs fs;
30708 statvfs("/", &fs);
30709 l = fs.f_bsize;
30710 l += fs.f_blocks;
30711 l += fs.f_bavail;
30712
30713 ;
30714 return 0;
30715}
30716_ACEOF
30717rm -f conftest.$ac_objext
30718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30719 (eval $ac_compile) 2>conftest.er1
a848cd7e 30720 ac_status=$?
ac1cb8d3
VS
30721 grep -v '^ *+' conftest.er1 >conftest.err
30722 rm -f conftest.er1
30723 cat conftest.err >&5
a848cd7e
SC
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); } &&
da4486fb 30726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30728 (eval $ac_try) 2>&5
30729 ac_status=$?
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); }; } &&
30732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30734 (eval $ac_try) 2>&5
30735 ac_status=$?
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); }; }; then
30738 wx_cv_type_statvfs_t="struct statvfs"
30739else
30740 echo "$as_me: failed program was:" >&5
30741sed 's/^/| /' conftest.$ac_ext >&5
30742
30743wx_cv_type_statvfs_t="unknown"
30744
30745fi
ac1cb8d3 30746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30747
30748
30749fi
ac1cb8d3 30750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30751
30752fi
30753echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30754echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30755
30756 ac_ext=c
30757ac_cpp='$CPP $CPPFLAGS'
30758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30760ac_compiler_gnu=$ac_cv_c_compiler_gnu
30761
30762
30763 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30764 cat >>confdefs.h <<\_ACEOF
30765#define HAVE_STATVFS 1
30766_ACEOF
30767
30768 fi
30769 else
30770 wx_cv_type_statvfs_t="unknown"
30771 fi
30772fi
30773
30774if test "$wx_cv_type_statvfs_t" != "unknown"; then
30775 cat >>confdefs.h <<_ACEOF
30776#define WX_STATFS_T $wx_cv_type_statvfs_t
30777_ACEOF
30778
30779else
30780 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30781echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30782fi
30783
30784if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30785
30786
30787for ac_func in fcntl flock
30788do
30789as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30790echo "$as_me:$LINENO: checking for $ac_func" >&5
30791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30792if eval "test \"\${$as_ac_var+set}\" = set"; then
30793 echo $ECHO_N "(cached) $ECHO_C" >&6
30794else
30795 cat >conftest.$ac_ext <<_ACEOF
30796/* confdefs.h. */
30797_ACEOF
30798cat confdefs.h >>conftest.$ac_ext
30799cat >>conftest.$ac_ext <<_ACEOF
30800/* end confdefs.h. */
ac1cb8d3
VS
30801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30803#define $ac_func innocuous_$ac_func
30804
a848cd7e
SC
30805/* System header to define __stub macros and hopefully few prototypes,
30806 which can conflict with char $ac_func (); below.
30807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30808 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30809
a848cd7e
SC
30810#ifdef __STDC__
30811# include <limits.h>
30812#else
30813# include <assert.h>
30814#endif
ac1cb8d3
VS
30815
30816#undef $ac_func
30817
a848cd7e
SC
30818/* Override any gcc2 internal prototype to avoid an error. */
30819#ifdef __cplusplus
30820extern "C"
30821{
30822#endif
30823/* We use char because int might match the return type of a gcc2
30824 builtin and then its argument prototype would still apply. */
30825char $ac_func ();
30826/* The GNU C library defines this for functions which it implements
30827 to always fail with ENOSYS. Some functions are actually named
30828 something starting with __ and the normal name is an alias. */
30829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30830choke me
30831#else
30832char (*f) () = $ac_func;
30833#endif
30834#ifdef __cplusplus
30835}
30836#endif
30837
30838int
30839main ()
30840{
30841return f != $ac_func;
30842 ;
30843 return 0;
30844}
30845_ACEOF
30846rm -f conftest.$ac_objext conftest$ac_exeext
30847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30848 (eval $ac_link) 2>conftest.er1
a848cd7e 30849 ac_status=$?
ac1cb8d3
VS
30850 grep -v '^ *+' conftest.er1 >conftest.err
30851 rm -f conftest.er1
30852 cat conftest.err >&5
a848cd7e
SC
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); } &&
da4486fb 30855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30857 (eval $ac_try) 2>&5
30858 ac_status=$?
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); }; } &&
30861 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30863 (eval $ac_try) 2>&5
30864 ac_status=$?
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); }; }; then
30867 eval "$as_ac_var=yes"
30868else
30869 echo "$as_me: failed program was:" >&5
30870sed 's/^/| /' conftest.$ac_ext >&5
30871
30872eval "$as_ac_var=no"
30873fi
ac1cb8d3
VS
30874rm -f conftest.err conftest.$ac_objext \
30875 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30876fi
30877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30879if test `eval echo '${'$as_ac_var'}'` = yes; then
30880 cat >>confdefs.h <<_ACEOF
30881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30882_ACEOF
30883 break
30884fi
30885done
30886
30887
30888 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30889 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30890echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30891 wxUSE_SNGLINST_CHECKER=no
30892 fi
30893fi
30894
30895
30896for ac_func in timegm
30897do
30898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30899echo "$as_me:$LINENO: checking for $ac_func" >&5
30900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30901if eval "test \"\${$as_ac_var+set}\" = set"; then
30902 echo $ECHO_N "(cached) $ECHO_C" >&6
30903else
30904 cat >conftest.$ac_ext <<_ACEOF
30905/* confdefs.h. */
30906_ACEOF
30907cat confdefs.h >>conftest.$ac_ext
30908cat >>conftest.$ac_ext <<_ACEOF
30909/* end confdefs.h. */
ac1cb8d3
VS
30910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30912#define $ac_func innocuous_$ac_func
30913
a848cd7e
SC
30914/* System header to define __stub macros and hopefully few prototypes,
30915 which can conflict with char $ac_func (); below.
30916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30917 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30918
a848cd7e
SC
30919#ifdef __STDC__
30920# include <limits.h>
30921#else
30922# include <assert.h>
30923#endif
ac1cb8d3
VS
30924
30925#undef $ac_func
30926
a848cd7e
SC
30927/* Override any gcc2 internal prototype to avoid an error. */
30928#ifdef __cplusplus
30929extern "C"
30930{
30931#endif
30932/* We use char because int might match the return type of a gcc2
30933 builtin and then its argument prototype would still apply. */
30934char $ac_func ();
30935/* The GNU C library defines this for functions which it implements
30936 to always fail with ENOSYS. Some functions are actually named
30937 something starting with __ and the normal name is an alias. */
30938#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30939choke me
30940#else
30941char (*f) () = $ac_func;
30942#endif
30943#ifdef __cplusplus
30944}
30945#endif
30946
30947int
30948main ()
30949{
30950return f != $ac_func;
30951 ;
30952 return 0;
30953}
30954_ACEOF
30955rm -f conftest.$ac_objext conftest$ac_exeext
30956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30957 (eval $ac_link) 2>conftest.er1
a848cd7e 30958 ac_status=$?
ac1cb8d3
VS
30959 grep -v '^ *+' conftest.er1 >conftest.err
30960 rm -f conftest.er1
30961 cat conftest.err >&5
a848cd7e
SC
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); } &&
da4486fb 30964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30966 (eval $ac_try) 2>&5
30967 ac_status=$?
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); }; } &&
30970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30972 (eval $ac_try) 2>&5
30973 ac_status=$?
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); }; }; then
30976 eval "$as_ac_var=yes"
30977else
30978 echo "$as_me: failed program was:" >&5
30979sed 's/^/| /' conftest.$ac_ext >&5
30980
30981eval "$as_ac_var=no"
30982fi
ac1cb8d3
VS
30983rm -f conftest.err conftest.$ac_objext \
30984 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30985fi
30986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30987echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30988if test `eval echo '${'$as_ac_var'}'` = yes; then
30989 cat >>confdefs.h <<_ACEOF
30990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30991_ACEOF
30992
30993fi
30994done
30995
30996
30997
30998
30999for ac_func in putenv setenv
31000do
31001as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31002echo "$as_me:$LINENO: checking for $ac_func" >&5
31003echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31004if eval "test \"\${$as_ac_var+set}\" = set"; then
31005 echo $ECHO_N "(cached) $ECHO_C" >&6
31006else
31007 cat >conftest.$ac_ext <<_ACEOF
31008/* confdefs.h. */
31009_ACEOF
31010cat confdefs.h >>conftest.$ac_ext
31011cat >>conftest.$ac_ext <<_ACEOF
31012/* end confdefs.h. */
ac1cb8d3
VS
31013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31015#define $ac_func innocuous_$ac_func
31016
a848cd7e
SC
31017/* System header to define __stub macros and hopefully few prototypes,
31018 which can conflict with char $ac_func (); below.
31019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31020 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31021
a848cd7e
SC
31022#ifdef __STDC__
31023# include <limits.h>
31024#else
31025# include <assert.h>
31026#endif
ac1cb8d3
VS
31027
31028#undef $ac_func
31029
a848cd7e
SC
31030/* Override any gcc2 internal prototype to avoid an error. */
31031#ifdef __cplusplus
31032extern "C"
31033{
31034#endif
31035/* We use char because int might match the return type of a gcc2
31036 builtin and then its argument prototype would still apply. */
31037char $ac_func ();
31038/* The GNU C library defines this for functions which it implements
31039 to always fail with ENOSYS. Some functions are actually named
31040 something starting with __ and the normal name is an alias. */
31041#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31042choke me
31043#else
31044char (*f) () = $ac_func;
31045#endif
31046#ifdef __cplusplus
31047}
31048#endif
31049
31050int
31051main ()
31052{
31053return f != $ac_func;
31054 ;
31055 return 0;
31056}
31057_ACEOF
31058rm -f conftest.$ac_objext conftest$ac_exeext
31059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31060 (eval $ac_link) 2>conftest.er1
a848cd7e 31061 ac_status=$?
ac1cb8d3
VS
31062 grep -v '^ *+' conftest.er1 >conftest.err
31063 rm -f conftest.er1
31064 cat conftest.err >&5
a848cd7e
SC
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); } &&
da4486fb 31067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31069 (eval $ac_try) 2>&5
31070 ac_status=$?
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); }; } &&
31073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31075 (eval $ac_try) 2>&5
31076 ac_status=$?
31077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31078 (exit $ac_status); }; }; then
31079 eval "$as_ac_var=yes"
31080else
31081 echo "$as_me: failed program was:" >&5
31082sed 's/^/| /' conftest.$ac_ext >&5
31083
31084eval "$as_ac_var=no"
31085fi
ac1cb8d3
VS
31086rm -f conftest.err conftest.$ac_objext \
31087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31088fi
31089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31090echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31091if test `eval echo '${'$as_ac_var'}'` = yes; then
31092 cat >>confdefs.h <<_ACEOF
31093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31094_ACEOF
31095 break
31096fi
31097done
31098
31099
31100HAVE_SOME_SLEEP_FUNC=0
31101if test "$USE_BEOS" = 1; then
31102 cat >>confdefs.h <<\_ACEOF
31103#define HAVE_SLEEP 1
31104_ACEOF
31105
31106 HAVE_SOME_SLEEP_FUNC=1
31107fi
31108
31109if test "$USE_DARWIN" = 1; then
31110 cat >>confdefs.h <<\_ACEOF
31111#define HAVE_USLEEP 1
31112_ACEOF
31113
31114 HAVE_SOME_SLEEP_FUNC=1
31115fi
31116
31117if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31118 POSIX4_LINK=
31119
31120for ac_func in nanosleep
31121do
31122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31123echo "$as_me:$LINENO: checking for $ac_func" >&5
31124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31125if eval "test \"\${$as_ac_var+set}\" = set"; then
31126 echo $ECHO_N "(cached) $ECHO_C" >&6
31127else
31128 cat >conftest.$ac_ext <<_ACEOF
31129/* confdefs.h. */
31130_ACEOF
31131cat confdefs.h >>conftest.$ac_ext
31132cat >>conftest.$ac_ext <<_ACEOF
31133/* end confdefs.h. */
ac1cb8d3
VS
31134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31136#define $ac_func innocuous_$ac_func
31137
a848cd7e
SC
31138/* System header to define __stub macros and hopefully few prototypes,
31139 which can conflict with char $ac_func (); below.
31140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31141 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31142
a848cd7e
SC
31143#ifdef __STDC__
31144# include <limits.h>
31145#else
31146# include <assert.h>
31147#endif
ac1cb8d3
VS
31148
31149#undef $ac_func
31150
a848cd7e
SC
31151/* Override any gcc2 internal prototype to avoid an error. */
31152#ifdef __cplusplus
31153extern "C"
31154{
31155#endif
31156/* We use char because int might match the return type of a gcc2
31157 builtin and then its argument prototype would still apply. */
31158char $ac_func ();
31159/* The GNU C library defines this for functions which it implements
31160 to always fail with ENOSYS. Some functions are actually named
31161 something starting with __ and the normal name is an alias. */
31162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31163choke me
31164#else
31165char (*f) () = $ac_func;
31166#endif
31167#ifdef __cplusplus
31168}
31169#endif
31170
31171int
31172main ()
31173{
31174return f != $ac_func;
31175 ;
31176 return 0;
31177}
31178_ACEOF
31179rm -f conftest.$ac_objext conftest$ac_exeext
31180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31181 (eval $ac_link) 2>conftest.er1
a848cd7e 31182 ac_status=$?
ac1cb8d3
VS
31183 grep -v '^ *+' conftest.er1 >conftest.err
31184 rm -f conftest.er1
31185 cat conftest.err >&5
a848cd7e
SC
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); } &&
da4486fb 31188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31190 (eval $ac_try) 2>&5
31191 ac_status=$?
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; } &&
31194 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31196 (eval $ac_try) 2>&5
31197 ac_status=$?
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); }; }; then
31200 eval "$as_ac_var=yes"
31201else
31202 echo "$as_me: failed program was:" >&5
31203sed 's/^/| /' conftest.$ac_ext >&5
31204
31205eval "$as_ac_var=no"
31206fi
ac1cb8d3
VS
31207rm -f conftest.err conftest.$ac_objext \
31208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31209fi
31210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31211echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31212if test `eval echo '${'$as_ac_var'}'` = yes; then
31213 cat >>confdefs.h <<_ACEOF
31214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31215_ACEOF
31216 cat >>confdefs.h <<\_ACEOF
31217#define HAVE_NANOSLEEP 1
31218_ACEOF
31219
31220else
31221
31222 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31223echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31224if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31225 echo $ECHO_N "(cached) $ECHO_C" >&6
31226else
31227 ac_check_lib_save_LIBS=$LIBS
31228LIBS="-lposix4 $LIBS"
31229cat >conftest.$ac_ext <<_ACEOF
31230/* confdefs.h. */
31231_ACEOF
31232cat confdefs.h >>conftest.$ac_ext
31233cat >>conftest.$ac_ext <<_ACEOF
31234/* end confdefs.h. */
31235
31236/* Override any gcc2 internal prototype to avoid an error. */
31237#ifdef __cplusplus
31238extern "C"
31239#endif
31240/* We use char because int might match the return type of a gcc2
31241 builtin and then its argument prototype would still apply. */
31242char nanosleep ();
31243int
31244main ()
31245{
31246nanosleep ();
31247 ;
31248 return 0;
31249}
31250_ACEOF
31251rm -f conftest.$ac_objext conftest$ac_exeext
31252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31253 (eval $ac_link) 2>conftest.er1
a848cd7e 31254 ac_status=$?
ac1cb8d3
VS
31255 grep -v '^ *+' conftest.er1 >conftest.err
31256 rm -f conftest.er1
31257 cat conftest.err >&5
a848cd7e
SC
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); } &&
da4486fb 31260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31262 (eval $ac_try) 2>&5
31263 ac_status=$?
31264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265 (exit $ac_status); }; } &&
31266 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31268 (eval $ac_try) 2>&5
31269 ac_status=$?
31270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31271 (exit $ac_status); }; }; then
31272 ac_cv_lib_posix4_nanosleep=yes
31273else
31274 echo "$as_me: failed program was:" >&5
31275sed 's/^/| /' conftest.$ac_ext >&5
31276
31277ac_cv_lib_posix4_nanosleep=no
31278fi
ac1cb8d3
VS
31279rm -f conftest.err conftest.$ac_objext \
31280 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31281LIBS=$ac_check_lib_save_LIBS
31282fi
31283echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31284echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31285if test $ac_cv_lib_posix4_nanosleep = yes; then
31286
31287 cat >>confdefs.h <<\_ACEOF
31288#define HAVE_NANOSLEEP 1
31289_ACEOF
31290
31291 POSIX4_LINK=" -lposix4"
31292
31293else
31294
31295
31296for ac_func in usleep
31297do
31298as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31299echo "$as_me:$LINENO: checking for $ac_func" >&5
31300echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31301if eval "test \"\${$as_ac_var+set}\" = set"; then
31302 echo $ECHO_N "(cached) $ECHO_C" >&6
31303else
31304 cat >conftest.$ac_ext <<_ACEOF
31305/* confdefs.h. */
31306_ACEOF
31307cat confdefs.h >>conftest.$ac_ext
31308cat >>conftest.$ac_ext <<_ACEOF
31309/* end confdefs.h. */
ac1cb8d3
VS
31310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31312#define $ac_func innocuous_$ac_func
31313
a848cd7e
SC
31314/* System header to define __stub macros and hopefully few prototypes,
31315 which can conflict with char $ac_func (); below.
31316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31317 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31318
a848cd7e
SC
31319#ifdef __STDC__
31320# include <limits.h>
31321#else
31322# include <assert.h>
31323#endif
ac1cb8d3
VS
31324
31325#undef $ac_func
31326
a848cd7e
SC
31327/* Override any gcc2 internal prototype to avoid an error. */
31328#ifdef __cplusplus
31329extern "C"
31330{
31331#endif
31332/* We use char because int might match the return type of a gcc2
31333 builtin and then its argument prototype would still apply. */
31334char $ac_func ();
31335/* The GNU C library defines this for functions which it implements
31336 to always fail with ENOSYS. Some functions are actually named
31337 something starting with __ and the normal name is an alias. */
31338#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31339choke me
31340#else
31341char (*f) () = $ac_func;
31342#endif
31343#ifdef __cplusplus
31344}
31345#endif
31346
31347int
31348main ()
31349{
31350return f != $ac_func;
31351 ;
31352 return 0;
31353}
31354_ACEOF
31355rm -f conftest.$ac_objext conftest$ac_exeext
31356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31357 (eval $ac_link) 2>conftest.er1
a848cd7e 31358 ac_status=$?
ac1cb8d3
VS
31359 grep -v '^ *+' conftest.er1 >conftest.err
31360 rm -f conftest.er1
31361 cat conftest.err >&5
a848cd7e
SC
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); } &&
da4486fb 31364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31366 (eval $ac_try) 2>&5
31367 ac_status=$?
31368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31369 (exit $ac_status); }; } &&
31370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31372 (eval $ac_try) 2>&5
31373 ac_status=$?
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; }; then
31376 eval "$as_ac_var=yes"
31377else
31378 echo "$as_me: failed program was:" >&5
31379sed 's/^/| /' conftest.$ac_ext >&5
31380
31381eval "$as_ac_var=no"
31382fi
ac1cb8d3
VS
31383rm -f conftest.err conftest.$ac_objext \
31384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31385fi
31386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31387echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31388if test `eval echo '${'$as_ac_var'}'` = yes; then
31389 cat >>confdefs.h <<_ACEOF
31390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31391_ACEOF
31392 cat >>confdefs.h <<\_ACEOF
31393#define HAVE_USLEEP 1
31394_ACEOF
31395
31396else
31397 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31398echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31399
31400fi
31401done
31402
31403
31404
31405fi
31406
31407
31408
31409fi
31410done
31411
31412fi
31413
31414
31415
31416for ac_func in uname gethostname
31417do
31418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31419echo "$as_me:$LINENO: checking for $ac_func" >&5
31420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31421if eval "test \"\${$as_ac_var+set}\" = set"; then
31422 echo $ECHO_N "(cached) $ECHO_C" >&6
31423else
31424 cat >conftest.$ac_ext <<_ACEOF
31425/* confdefs.h. */
31426_ACEOF
31427cat confdefs.h >>conftest.$ac_ext
31428cat >>conftest.$ac_ext <<_ACEOF
31429/* end confdefs.h. */
ac1cb8d3
VS
31430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31432#define $ac_func innocuous_$ac_func
31433
a848cd7e
SC
31434/* System header to define __stub macros and hopefully few prototypes,
31435 which can conflict with char $ac_func (); below.
31436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31437 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31438
a848cd7e
SC
31439#ifdef __STDC__
31440# include <limits.h>
31441#else
31442# include <assert.h>
31443#endif
ac1cb8d3
VS
31444
31445#undef $ac_func
31446
a848cd7e
SC
31447/* Override any gcc2 internal prototype to avoid an error. */
31448#ifdef __cplusplus
31449extern "C"
31450{
31451#endif
31452/* We use char because int might match the return type of a gcc2
31453 builtin and then its argument prototype would still apply. */
31454char $ac_func ();
31455/* The GNU C library defines this for functions which it implements
31456 to always fail with ENOSYS. Some functions are actually named
31457 something starting with __ and the normal name is an alias. */
31458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31459choke me
31460#else
31461char (*f) () = $ac_func;
31462#endif
31463#ifdef __cplusplus
31464}
31465#endif
31466
31467int
31468main ()
31469{
31470return f != $ac_func;
31471 ;
31472 return 0;
31473}
31474_ACEOF
31475rm -f conftest.$ac_objext conftest$ac_exeext
31476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31477 (eval $ac_link) 2>conftest.er1
a848cd7e 31478 ac_status=$?
ac1cb8d3
VS
31479 grep -v '^ *+' conftest.er1 >conftest.err
31480 rm -f conftest.er1
31481 cat conftest.err >&5
a848cd7e
SC
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); } &&
da4486fb 31484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31486 (eval $ac_try) 2>&5
31487 ac_status=$?
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; } &&
31490 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31492 (eval $ac_try) 2>&5
31493 ac_status=$?
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); }; }; then
31496 eval "$as_ac_var=yes"
31497else
31498 echo "$as_me: failed program was:" >&5
31499sed 's/^/| /' conftest.$ac_ext >&5
31500
31501eval "$as_ac_var=no"
31502fi
ac1cb8d3
VS
31503rm -f conftest.err conftest.$ac_objext \
31504 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31505fi
31506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31508if test `eval echo '${'$as_ac_var'}'` = yes; then
31509 cat >>confdefs.h <<_ACEOF
31510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31511_ACEOF
31512 break
31513fi
31514done
31515
31516
31517
31518
31519ac_ext=cc
31520ac_cpp='$CXXCPP $CPPFLAGS'
31521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31524
31525
31526
31527for ac_func in strtok_r
31528do
31529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31530echo "$as_me:$LINENO: checking for $ac_func" >&5
31531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31532if eval "test \"\${$as_ac_var+set}\" = set"; then
31533 echo $ECHO_N "(cached) $ECHO_C" >&6
31534else
31535 cat >conftest.$ac_ext <<_ACEOF
31536/* confdefs.h. */
31537_ACEOF
31538cat confdefs.h >>conftest.$ac_ext
31539cat >>conftest.$ac_ext <<_ACEOF
31540/* end confdefs.h. */
ac1cb8d3
VS
31541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31543#define $ac_func innocuous_$ac_func
31544
a848cd7e
SC
31545/* System header to define __stub macros and hopefully few prototypes,
31546 which can conflict with char $ac_func (); below.
31547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31548 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31549
a848cd7e
SC
31550#ifdef __STDC__
31551# include <limits.h>
31552#else
31553# include <assert.h>
31554#endif
ac1cb8d3
VS
31555
31556#undef $ac_func
31557
a848cd7e
SC
31558/* Override any gcc2 internal prototype to avoid an error. */
31559#ifdef __cplusplus
31560extern "C"
31561{
31562#endif
31563/* We use char because int might match the return type of a gcc2
31564 builtin and then its argument prototype would still apply. */
31565char $ac_func ();
31566/* The GNU C library defines this for functions which it implements
31567 to always fail with ENOSYS. Some functions are actually named
31568 something starting with __ and the normal name is an alias. */
31569#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31570choke me
31571#else
31572char (*f) () = $ac_func;
31573#endif
31574#ifdef __cplusplus
31575}
31576#endif
31577
31578int
31579main ()
31580{
31581return f != $ac_func;
31582 ;
31583 return 0;
31584}
31585_ACEOF
31586rm -f conftest.$ac_objext conftest$ac_exeext
31587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31588 (eval $ac_link) 2>conftest.er1
a848cd7e 31589 ac_status=$?
ac1cb8d3
VS
31590 grep -v '^ *+' conftest.er1 >conftest.err
31591 rm -f conftest.er1
31592 cat conftest.err >&5
a848cd7e
SC
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); } &&
da4486fb 31595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31597 (eval $ac_try) 2>&5
31598 ac_status=$?
31599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); }; } &&
31601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31603 (eval $ac_try) 2>&5
31604 ac_status=$?
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); }; }; then
31607 eval "$as_ac_var=yes"
31608else
31609 echo "$as_me: failed program was:" >&5
31610sed 's/^/| /' conftest.$ac_ext >&5
31611
31612eval "$as_ac_var=no"
31613fi
ac1cb8d3
VS
31614rm -f conftest.err conftest.$ac_objext \
31615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31616fi
31617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31618echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31619if test `eval echo '${'$as_ac_var'}'` = yes; then
31620 cat >>confdefs.h <<_ACEOF
31621#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31622_ACEOF
31623
31624fi
31625done
31626
31627
31628ac_ext=c
31629ac_cpp='$CPP $CPPFLAGS'
31630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31632ac_compiler_gnu=$ac_cv_c_compiler_gnu
31633
31634
31635INET_LINK=
31636
31637for ac_func in inet_addr
31638do
31639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31640echo "$as_me:$LINENO: checking for $ac_func" >&5
31641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31642if eval "test \"\${$as_ac_var+set}\" = set"; then
31643 echo $ECHO_N "(cached) $ECHO_C" >&6
31644else
31645 cat >conftest.$ac_ext <<_ACEOF
31646/* confdefs.h. */
31647_ACEOF
31648cat confdefs.h >>conftest.$ac_ext
31649cat >>conftest.$ac_ext <<_ACEOF
31650/* end confdefs.h. */
ac1cb8d3
VS
31651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31653#define $ac_func innocuous_$ac_func
31654
a848cd7e
SC
31655/* System header to define __stub macros and hopefully few prototypes,
31656 which can conflict with char $ac_func (); below.
31657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31658 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31659
a848cd7e
SC
31660#ifdef __STDC__
31661# include <limits.h>
31662#else
31663# include <assert.h>
31664#endif
ac1cb8d3
VS
31665
31666#undef $ac_func
31667
a848cd7e
SC
31668/* Override any gcc2 internal prototype to avoid an error. */
31669#ifdef __cplusplus
31670extern "C"
31671{
31672#endif
31673/* We use char because int might match the return type of a gcc2
31674 builtin and then its argument prototype would still apply. */
31675char $ac_func ();
31676/* The GNU C library defines this for functions which it implements
31677 to always fail with ENOSYS. Some functions are actually named
31678 something starting with __ and the normal name is an alias. */
31679#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31680choke me
31681#else
31682char (*f) () = $ac_func;
31683#endif
31684#ifdef __cplusplus
31685}
31686#endif
31687
31688int
31689main ()
31690{
31691return f != $ac_func;
31692 ;
31693 return 0;
31694}
31695_ACEOF
31696rm -f conftest.$ac_objext conftest$ac_exeext
31697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31698 (eval $ac_link) 2>conftest.er1
a848cd7e 31699 ac_status=$?
ac1cb8d3
VS
31700 grep -v '^ *+' conftest.er1 >conftest.err
31701 rm -f conftest.er1
31702 cat conftest.err >&5
a848cd7e
SC
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); } &&
da4486fb 31705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31707 (eval $ac_try) 2>&5
31708 ac_status=$?
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); }; } &&
31711 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31713 (eval $ac_try) 2>&5
31714 ac_status=$?
31715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716 (exit $ac_status); }; }; then
31717 eval "$as_ac_var=yes"
31718else
31719 echo "$as_me: failed program was:" >&5
31720sed 's/^/| /' conftest.$ac_ext >&5
31721
31722eval "$as_ac_var=no"
31723fi
ac1cb8d3
VS
31724rm -f conftest.err conftest.$ac_objext \
31725 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31726fi
31727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31728echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31729if test `eval echo '${'$as_ac_var'}'` = yes; then
31730 cat >>confdefs.h <<_ACEOF
31731#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31732_ACEOF
31733 cat >>confdefs.h <<\_ACEOF
31734#define HAVE_INET_ADDR 1
31735_ACEOF
31736
31737else
31738
31739 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31740echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31741if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31742 echo $ECHO_N "(cached) $ECHO_C" >&6
31743else
31744 ac_check_lib_save_LIBS=$LIBS
31745LIBS="-lnsl $LIBS"
31746cat >conftest.$ac_ext <<_ACEOF
31747/* confdefs.h. */
31748_ACEOF
31749cat confdefs.h >>conftest.$ac_ext
31750cat >>conftest.$ac_ext <<_ACEOF
31751/* end confdefs.h. */
31752
31753/* Override any gcc2 internal prototype to avoid an error. */
31754#ifdef __cplusplus
31755extern "C"
31756#endif
31757/* We use char because int might match the return type of a gcc2
31758 builtin and then its argument prototype would still apply. */
31759char inet_addr ();
31760int
31761main ()
31762{
31763inet_addr ();
31764 ;
31765 return 0;
31766}
31767_ACEOF
31768rm -f conftest.$ac_objext conftest$ac_exeext
31769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31770 (eval $ac_link) 2>conftest.er1
a848cd7e 31771 ac_status=$?
ac1cb8d3
VS
31772 grep -v '^ *+' conftest.er1 >conftest.err
31773 rm -f conftest.er1
31774 cat conftest.err >&5
a848cd7e
SC
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); } &&
da4486fb 31777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
31783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31785 (eval $ac_try) 2>&5
31786 ac_status=$?
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); }; }; then
31789 ac_cv_lib_nsl_inet_addr=yes
31790else
31791 echo "$as_me: failed program was:" >&5
31792sed 's/^/| /' conftest.$ac_ext >&5
31793
31794ac_cv_lib_nsl_inet_addr=no
31795fi
ac1cb8d3
VS
31796rm -f conftest.err conftest.$ac_objext \
31797 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31798LIBS=$ac_check_lib_save_LIBS
31799fi
31800echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31801echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31802if test $ac_cv_lib_nsl_inet_addr = yes; then
31803 INET_LINK="nsl"
31804else
31805
31806 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31807echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31808if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31809 echo $ECHO_N "(cached) $ECHO_C" >&6
31810else
31811 ac_check_lib_save_LIBS=$LIBS
31812LIBS="-lresolv $LIBS"
31813cat >conftest.$ac_ext <<_ACEOF
31814/* confdefs.h. */
31815_ACEOF
31816cat confdefs.h >>conftest.$ac_ext
31817cat >>conftest.$ac_ext <<_ACEOF
31818/* end confdefs.h. */
31819
31820/* Override any gcc2 internal prototype to avoid an error. */
31821#ifdef __cplusplus
31822extern "C"
31823#endif
31824/* We use char because int might match the return type of a gcc2
31825 builtin and then its argument prototype would still apply. */
31826char inet_addr ();
31827int
31828main ()
31829{
31830inet_addr ();
31831 ;
31832 return 0;
31833}
31834_ACEOF
31835rm -f conftest.$ac_objext conftest$ac_exeext
31836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31837 (eval $ac_link) 2>conftest.er1
a848cd7e 31838 ac_status=$?
ac1cb8d3
VS
31839 grep -v '^ *+' conftest.er1 >conftest.err
31840 rm -f conftest.er1
31841 cat conftest.err >&5
a848cd7e
SC
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); } &&
da4486fb 31844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; } &&
31850 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31852 (eval $ac_try) 2>&5
31853 ac_status=$?
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); }; }; then
31856 ac_cv_lib_resolv_inet_addr=yes
31857else
31858 echo "$as_me: failed program was:" >&5
31859sed 's/^/| /' conftest.$ac_ext >&5
31860
31861ac_cv_lib_resolv_inet_addr=no
31862fi
ac1cb8d3
VS
31863rm -f conftest.err conftest.$ac_objext \
31864 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31865LIBS=$ac_check_lib_save_LIBS
31866fi
31867echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31868echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31869if test $ac_cv_lib_resolv_inet_addr = yes; then
31870 INET_LINK="resolv"
31871else
31872
31873 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31874echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31875if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31876 echo $ECHO_N "(cached) $ECHO_C" >&6
31877else
31878 ac_check_lib_save_LIBS=$LIBS
31879LIBS="-lsocket $LIBS"
31880cat >conftest.$ac_ext <<_ACEOF
31881/* confdefs.h. */
31882_ACEOF
31883cat confdefs.h >>conftest.$ac_ext
31884cat >>conftest.$ac_ext <<_ACEOF
31885/* end confdefs.h. */
31886
31887/* Override any gcc2 internal prototype to avoid an error. */
31888#ifdef __cplusplus
31889extern "C"
31890#endif
31891/* We use char because int might match the return type of a gcc2
31892 builtin and then its argument prototype would still apply. */
31893char inet_addr ();
31894int
31895main ()
31896{
31897inet_addr ();
31898 ;
31899 return 0;
31900}
31901_ACEOF
31902rm -f conftest.$ac_objext conftest$ac_exeext
31903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31904 (eval $ac_link) 2>conftest.er1
a848cd7e 31905 ac_status=$?
ac1cb8d3
VS
31906 grep -v '^ *+' conftest.er1 >conftest.err
31907 rm -f conftest.er1
31908 cat conftest.err >&5
a848cd7e
SC
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); } &&
da4486fb 31911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31913 (eval $ac_try) 2>&5
31914 ac_status=$?
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; } &&
31917 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31919 (eval $ac_try) 2>&5
31920 ac_status=$?
31921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922 (exit $ac_status); }; }; then
31923 ac_cv_lib_socket_inet_addr=yes
31924else
31925 echo "$as_me: failed program was:" >&5
31926sed 's/^/| /' conftest.$ac_ext >&5
31927
31928ac_cv_lib_socket_inet_addr=no
31929fi
ac1cb8d3
VS
31930rm -f conftest.err conftest.$ac_objext \
31931 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31932LIBS=$ac_check_lib_save_LIBS
31933fi
31934echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31935echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31936if test $ac_cv_lib_socket_inet_addr = yes; then
31937 INET_LINK="socket"
31938
31939fi
31940
31941
31942
31943fi
31944
31945
31946
31947fi
31948
31949
31950
31951fi
31952done
31953
31954
31955
31956for ac_func in inet_aton
31957do
31958as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31959echo "$as_me:$LINENO: checking for $ac_func" >&5
31960echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31961if eval "test \"\${$as_ac_var+set}\" = set"; then
31962 echo $ECHO_N "(cached) $ECHO_C" >&6
31963else
31964 cat >conftest.$ac_ext <<_ACEOF
31965/* confdefs.h. */
31966_ACEOF
31967cat confdefs.h >>conftest.$ac_ext
31968cat >>conftest.$ac_ext <<_ACEOF
31969/* end confdefs.h. */
ac1cb8d3
VS
31970/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31972#define $ac_func innocuous_$ac_func
31973
a848cd7e
SC
31974/* System header to define __stub macros and hopefully few prototypes,
31975 which can conflict with char $ac_func (); below.
31976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31977 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31978
a848cd7e
SC
31979#ifdef __STDC__
31980# include <limits.h>
31981#else
31982# include <assert.h>
31983#endif
ac1cb8d3
VS
31984
31985#undef $ac_func
31986
a848cd7e
SC
31987/* Override any gcc2 internal prototype to avoid an error. */
31988#ifdef __cplusplus
31989extern "C"
31990{
31991#endif
31992/* We use char because int might match the return type of a gcc2
31993 builtin and then its argument prototype would still apply. */
31994char $ac_func ();
31995/* The GNU C library defines this for functions which it implements
31996 to always fail with ENOSYS. Some functions are actually named
31997 something starting with __ and the normal name is an alias. */
31998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31999choke me
32000#else
32001char (*f) () = $ac_func;
32002#endif
32003#ifdef __cplusplus
32004}
32005#endif
32006
32007int
32008main ()
32009{
32010return f != $ac_func;
32011 ;
32012 return 0;
32013}
32014_ACEOF
32015rm -f conftest.$ac_objext conftest$ac_exeext
32016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32017 (eval $ac_link) 2>conftest.er1
a848cd7e 32018 ac_status=$?
ac1cb8d3
VS
32019 grep -v '^ *+' conftest.er1 >conftest.err
32020 rm -f conftest.er1
32021 cat conftest.err >&5
a848cd7e
SC
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); } &&
da4486fb 32024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32026 (eval $ac_try) 2>&5
32027 ac_status=$?
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); }; } &&
32030 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32032 (eval $ac_try) 2>&5
32033 ac_status=$?
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; }; then
32036 eval "$as_ac_var=yes"
32037else
32038 echo "$as_me: failed program was:" >&5
32039sed 's/^/| /' conftest.$ac_ext >&5
32040
32041eval "$as_ac_var=no"
32042fi
ac1cb8d3
VS
32043rm -f conftest.err conftest.$ac_objext \
32044 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32045fi
32046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32047echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32048if test `eval echo '${'$as_ac_var'}'` = yes; then
32049 cat >>confdefs.h <<_ACEOF
32050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32051_ACEOF
32052 cat >>confdefs.h <<\_ACEOF
32053#define HAVE_INET_ATON 1
32054_ACEOF
32055
32056else
32057
32058 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32059echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32060echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32061if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32062 echo $ECHO_N "(cached) $ECHO_C" >&6
32063else
32064 ac_check_lib_save_LIBS=$LIBS
32065LIBS="-l$INET_LINK $LIBS"
32066cat >conftest.$ac_ext <<_ACEOF
32067/* confdefs.h. */
32068_ACEOF
32069cat confdefs.h >>conftest.$ac_ext
32070cat >>conftest.$ac_ext <<_ACEOF
32071/* end confdefs.h. */
32072
32073/* Override any gcc2 internal prototype to avoid an error. */
32074#ifdef __cplusplus
32075extern "C"
32076#endif
32077/* We use char because int might match the return type of a gcc2
32078 builtin and then its argument prototype would still apply. */
32079char inet_aton ();
32080int
32081main ()
32082{
32083inet_aton ();
32084 ;
32085 return 0;
32086}
32087_ACEOF
32088rm -f conftest.$ac_objext conftest$ac_exeext
32089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32090 (eval $ac_link) 2>conftest.er1
a848cd7e 32091 ac_status=$?
ac1cb8d3
VS
32092 grep -v '^ *+' conftest.er1 >conftest.err
32093 rm -f conftest.er1
32094 cat conftest.err >&5
a848cd7e
SC
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); } &&
da4486fb 32097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32099 (eval $ac_try) 2>&5
32100 ac_status=$?
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); }; } &&
32103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32105 (eval $ac_try) 2>&5
32106 ac_status=$?
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; }; then
32109 eval "$as_ac_Lib=yes"
32110else
32111 echo "$as_me: failed program was:" >&5
32112sed 's/^/| /' conftest.$ac_ext >&5
32113
32114eval "$as_ac_Lib=no"
32115fi
ac1cb8d3
VS
32116rm -f conftest.err conftest.$ac_objext \
32117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32118LIBS=$ac_check_lib_save_LIBS
32119fi
32120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32121echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32122if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32123 cat >>confdefs.h <<\_ACEOF
32124#define HAVE_INET_ATON 1
32125_ACEOF
32126
32127fi
32128
32129
32130fi
32131done
32132
32133
32134if test "x$INET_LINK" != "x"; then
32135 cat >>confdefs.h <<\_ACEOF
32136#define HAVE_INET_ADDR 1
32137_ACEOF
32138
32139 INET_LINK=" -l$INET_LINK"
32140fi
32141
32142fi
32143
32144
32145
32146EXTRALIBS_ESD=
32147echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32148echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32149if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32150 echo $ECHO_N "(cached) $ECHO_C" >&6
32151else
32152 ac_check_lib_save_LIBS=$LIBS
32153LIBS="-lesd $LIBS"
32154cat >conftest.$ac_ext <<_ACEOF
32155/* confdefs.h. */
32156_ACEOF
32157cat confdefs.h >>conftest.$ac_ext
32158cat >>conftest.$ac_ext <<_ACEOF
32159/* end confdefs.h. */
32160
32161/* Override any gcc2 internal prototype to avoid an error. */
32162#ifdef __cplusplus
32163extern "C"
32164#endif
32165/* We use char because int might match the return type of a gcc2
32166 builtin and then its argument prototype would still apply. */
32167char esd_close ();
32168int
32169main ()
32170{
32171esd_close ();
32172 ;
32173 return 0;
32174}
32175_ACEOF
32176rm -f conftest.$ac_objext conftest$ac_exeext
32177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32178 (eval $ac_link) 2>conftest.er1
a848cd7e 32179 ac_status=$?
ac1cb8d3
VS
32180 grep -v '^ *+' conftest.er1 >conftest.err
32181 rm -f conftest.er1
32182 cat conftest.err >&5
a848cd7e
SC
32183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184 (exit $ac_status); } &&
da4486fb 32185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32187 (eval $ac_try) 2>&5
32188 ac_status=$?
32189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190 (exit $ac_status); }; } &&
32191 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32193 (eval $ac_try) 2>&5
32194 ac_status=$?
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); }; }; then
32197 ac_cv_lib_esd_esd_close=yes
32198else
32199 echo "$as_me: failed program was:" >&5
32200sed 's/^/| /' conftest.$ac_ext >&5
32201
32202ac_cv_lib_esd_esd_close=no
32203fi
ac1cb8d3
VS
32204rm -f conftest.err conftest.$ac_objext \
32205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32206LIBS=$ac_check_lib_save_LIBS
32207fi
32208echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32209echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32210if test $ac_cv_lib_esd_esd_close = yes; then
32211
32212
32213for ac_header in esd.h
32214do
32215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32216if eval "test \"\${$as_ac_Header+set}\" = set"; then
32217 echo "$as_me:$LINENO: checking for $ac_header" >&5
32218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32219if eval "test \"\${$as_ac_Header+set}\" = set"; then
32220 echo $ECHO_N "(cached) $ECHO_C" >&6
32221fi
32222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32224else
32225 # Is the header compilable?
32226echo "$as_me:$LINENO: checking $ac_header usability" >&5
32227echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32228cat >conftest.$ac_ext <<_ACEOF
32229/* confdefs.h. */
32230_ACEOF
32231cat confdefs.h >>conftest.$ac_ext
32232cat >>conftest.$ac_ext <<_ACEOF
32233/* end confdefs.h. */
32234$ac_includes_default
32235#include <$ac_header>
32236_ACEOF
32237rm -f conftest.$ac_objext
32238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32239 (eval $ac_compile) 2>conftest.er1
a848cd7e 32240 ac_status=$?
ac1cb8d3
VS
32241 grep -v '^ *+' conftest.er1 >conftest.err
32242 rm -f conftest.er1
32243 cat conftest.err >&5
a848cd7e
SC
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); } &&
da4486fb 32246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32248 (eval $ac_try) 2>&5
32249 ac_status=$?
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); }; } &&
32252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32254 (eval $ac_try) 2>&5
32255 ac_status=$?
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); }; }; then
32258 ac_header_compiler=yes
32259else
32260 echo "$as_me: failed program was:" >&5
32261sed 's/^/| /' conftest.$ac_ext >&5
32262
32263ac_header_compiler=no
32264fi
ac1cb8d3 32265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32266echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32267echo "${ECHO_T}$ac_header_compiler" >&6
32268
32269# Is the header present?
32270echo "$as_me:$LINENO: checking $ac_header presence" >&5
32271echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32272cat >conftest.$ac_ext <<_ACEOF
32273/* confdefs.h. */
32274_ACEOF
32275cat confdefs.h >>conftest.$ac_ext
32276cat >>conftest.$ac_ext <<_ACEOF
32277/* end confdefs.h. */
32278#include <$ac_header>
32279_ACEOF
32280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32282 ac_status=$?
32283 grep -v '^ *+' conftest.er1 >conftest.err
32284 rm -f conftest.er1
32285 cat conftest.err >&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); } >/dev/null; then
32288 if test -s conftest.err; then
32289 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32291 else
32292 ac_cpp_err=
32293 fi
32294else
32295 ac_cpp_err=yes
32296fi
32297if test -z "$ac_cpp_err"; then
32298 ac_header_preproc=yes
32299else
32300 echo "$as_me: failed program was:" >&5
32301sed 's/^/| /' conftest.$ac_ext >&5
32302
32303 ac_header_preproc=no
32304fi
32305rm -f conftest.err conftest.$ac_ext
32306echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32307echo "${ECHO_T}$ac_header_preproc" >&6
32308
32309# So? What about this header?
ac1cb8d3
VS
32310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32311 yes:no: )
a848cd7e
SC
32312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32313echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32315echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32316 ac_header_preproc=yes
a848cd7e 32317 ;;
ac1cb8d3 32318 no:yes:* )
a848cd7e
SC
32319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32320echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32322echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32324echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32326echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32328echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32330echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32331 (
32332 cat <<\_ASBOX
ac1cb8d3
VS
32333## ----------------------------------------- ##
32334## Report this to wx-dev@lists.wxwidgets.org ##
32335## ----------------------------------------- ##
a848cd7e
SC
32336_ASBOX
32337 ) |
32338 sed "s/^/$as_me: WARNING: /" >&2
32339 ;;
32340esac
32341echo "$as_me:$LINENO: checking for $ac_header" >&5
32342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32343if eval "test \"\${$as_ac_Header+set}\" = set"; then
32344 echo $ECHO_N "(cached) $ECHO_C" >&6
32345else
ac1cb8d3 32346 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32347fi
32348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32350
32351fi
32352if test `eval echo '${'$as_ac_Header'}'` = yes; then
32353 cat >>confdefs.h <<_ACEOF
32354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32355_ACEOF
32356
32357 EXTRALIBS_ESD="-lesd"
32358
32359fi
32360
32361done
32362
32363
32364fi
32365
32366
32367
32368echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32369echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32370cat >conftest.$ac_ext <<_ACEOF
32371/* confdefs.h. */
32372_ACEOF
32373cat confdefs.h >>conftest.$ac_ext
32374cat >>conftest.$ac_ext <<_ACEOF
32375/* end confdefs.h. */
32376#ifdef __linux__
32377 #include <linux/cdrom.h>
32378 #else
32379 /* For Solaris */
32380 #include <sys/cdio.h>
32381 #endif
32382
32383int
32384main ()
32385{
32386struct cdrom_tocentry entry, old_entry;
32387 ;
32388 return 0;
32389}
32390_ACEOF
32391rm -f conftest.$ac_objext
32392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32393 (eval $ac_compile) 2>conftest.er1
a848cd7e 32394 ac_status=$?
ac1cb8d3
VS
32395 grep -v '^ *+' conftest.er1 >conftest.err
32396 rm -f conftest.er1
32397 cat conftest.err >&5
a848cd7e
SC
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); } &&
da4486fb 32400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32402 (eval $ac_try) 2>&5
32403 ac_status=$?
32404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32405 (exit $ac_status); }; } &&
32406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32408 (eval $ac_try) 2>&5
32409 ac_status=$?
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); }; }; then
32412 echo "$as_me:$LINENO: result: yes" >&5
32413echo "${ECHO_T}yes" >&6
32414 cat >>confdefs.h <<\_ACEOF
32415#define HAVE_KNOWN_CDROM_INTERFACE 1
32416_ACEOF
32417
32418else
32419 echo "$as_me: failed program was:" >&5
32420sed 's/^/| /' conftest.$ac_ext >&5
32421
32422echo "$as_me:$LINENO: result: no" >&5
32423echo "${ECHO_T}no" >&6
32424fi
ac1cb8d3 32425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32426
32427
32428cat >confcache <<\_ACEOF
32429# This file is a shell script that caches the results of configure
32430# tests run on this system so they can be shared between configure
32431# scripts and configure runs, see configure's option --config-cache.
32432# It is not useful on other systems. If it contains results you don't
32433# want to keep, you may remove or edit it.
32434#
32435# config.status only pays attention to the cache file if you give it
32436# the --recheck option to rerun configure.
32437#
32438# `ac_cv_env_foo' variables (set or unset) will be overridden when
32439# loading this file, other *unset* `ac_cv_foo' will be assigned the
32440# following values.
32441
32442_ACEOF
32443
32444# The following way of writing the cache mishandles newlines in values,
32445# but we know of no workaround that is simple, portable, and efficient.
32446# So, don't put newlines in cache variables' values.
32447# Ultrix sh set writes to stderr and can't be redirected directly,
32448# and sets the high bit in the cache file unless we assign to the vars.
32449{
32450 (set) 2>&1 |
32451 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32452 *ac_space=\ *)
32453 # `set' does not quote correctly, so add quotes (double-quote
32454 # substitution turns \\\\ into \\, and sed turns \\ into \).
32455 sed -n \
ac1cb8d3
VS
32456 "s/'/'\\\\''/g;
32457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32458 ;;
32459 *)
32460 # `set' quotes correctly as required by POSIX, so do not add quotes.
32461 sed -n \
ac1cb8d3 32462 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32463 ;;
32464 esac;
32465} |
32466 sed '
32467 t clear
32468 : clear
32469 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32470 t end
32471 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32472 : end' >>confcache
32473if diff $cache_file confcache >/dev/null 2>&1; then :; else
32474 if test -w $cache_file; then
32475 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32476 cat confcache >$cache_file
32477 else
32478 echo "not updating unwritable cache $cache_file"
32479 fi
32480fi
32481rm -f confcache
32482
32483
32484CPP_MT_FLAG=
32485if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32486
32487
32488 THREADS_LINK=
32489 THREADS_CFLAGS=
32490
32491 if test "$wxUSE_THREADS" = "yes" ; then
32492 if test "$USE_BEOS" = 1; then
32493 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32494echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32495 wxUSE_THREADS="no"
32496 fi
32497 fi
32498
32499 if test "$wxUSE_THREADS" = "yes" ; then
32500
32501
32502 THREAD_OPTS="-pthread"
32503 case "${host}" in
32504 *-*-solaris2* | *-*-sunos4* )
32505 if test "x$GCC" = "xyes"; then
32506 THREAD_OPTS="-pthreads $THREAD_OPTS"
32507 else
32508 THREAD_OPTS="-mt $THREAD_OPTS"
32509 fi
32510 ;;
32511 *-*-freebsd*)
32512 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32513 ;;
32514 *-*-darwin* | *-*-cygwin* )
32515 THREAD_OPTS=""
32516 ;;
32517 *-*-aix*)
32518 THREAD_OPTS="pthreads"
32519 ;;
32520 *-hp-hpux* )
32521 if test "x$GCC" != "xyes"; then
32522 THREAD_OPTS=""
32523 fi
32524 ;;
32525
32526 *-*-irix* )
32527 if test "x$GCC" = "xyes"; then
32528 THREAD_OPTS=""
32529 fi
32530 ;;
32531
32532 *-*-*UnixWare*)
32533 if test "x$GCC" != "xyes"; then
32534 THREAD_OPTS="-Ethread"
32535 fi
32536 ;;
32537 esac
32538
32539 THREAD_OPTS="$THREAD_OPTS pthread none"
32540
32541 THREADS_OK=no
32542 for flag in $THREAD_OPTS; do
32543 case $flag in
32544 none)
32545 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32546echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32547 ;;
32548
32549 -*)
32550 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32551echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32552 THREADS_CFLAGS="$flag"
32553 ;;
32554
32555 *)
32556 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32557echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32558 THREADS_LINK="-l$flag"
32559 ;;
32560 esac
32561
32562 save_LIBS="$LIBS"
32563 save_CFLAGS="$CFLAGS"
32564 LIBS="$THREADS_LINK $LIBS"
32565 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32566
32567 cat >conftest.$ac_ext <<_ACEOF
32568/* confdefs.h. */
32569_ACEOF
32570cat confdefs.h >>conftest.$ac_ext
32571cat >>conftest.$ac_ext <<_ACEOF
32572/* end confdefs.h. */
32573#include <pthread.h>
32574int
32575main ()
32576{
32577pthread_create(0,0,0,0);
32578 ;
32579 return 0;
32580}
32581_ACEOF
32582rm -f conftest.$ac_objext conftest$ac_exeext
32583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32584 (eval $ac_link) 2>conftest.er1
a848cd7e 32585 ac_status=$?
ac1cb8d3
VS
32586 grep -v '^ *+' conftest.er1 >conftest.err
32587 rm -f conftest.er1
32588 cat conftest.err >&5
a848cd7e
SC
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); } &&
da4486fb 32591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32593 (eval $ac_try) 2>&5
32594 ac_status=$?
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; } &&
32597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32599 (eval $ac_try) 2>&5
32600 ac_status=$?
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); }; }; then
32603 THREADS_OK=yes
32604else
32605 echo "$as_me: failed program was:" >&5
32606sed 's/^/| /' conftest.$ac_ext >&5
32607
32608fi
ac1cb8d3
VS
32609rm -f conftest.err conftest.$ac_objext \
32610 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32611
32612 LIBS="$save_LIBS"
32613 CFLAGS="$save_CFLAGS"
32614
32615 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32616echo "${ECHO_T}$THREADS_OK" >&6
32617 if test "x$THREADS_OK" = "xyes"; then
32618 break;
32619 fi
32620
32621 THREADS_LINK=""
32622 THREADS_CFLAGS=""
32623 done
32624
32625 if test "x$THREADS_OK" != "xyes"; then
32626 wxUSE_THREADS=no
32627 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32628echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32629 else
32630 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32631 LIBS="$THREADS_LINK $LIBS"
32632
32633 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32634echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32635 flag=no
32636 case "${host}" in
32637 *-aix*)
32638 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32639 flag="-D_THREAD_SAFE"
32640 ;;
32641 *-freebsd*)
32642 flag="-D_THREAD_SAFE"
32643 ;;
32644 *-hp-hpux* )
32645 flag="-D_REENTRANT"
32646 if test "x$GCC" != "xyes"; then
32647 flag="$flag -D_RWSTD_MULTI_THREAD"
32648 fi
32649 ;;
32650 *solaris* | alpha*-osf*)
32651 flag="-D_REENTRANT"
32652 ;;
32653 esac
32654 echo "$as_me:$LINENO: result: ${flag}" >&5
32655echo "${ECHO_T}${flag}" >&6
32656 if test "x$flag" != xno; then
32657 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32658 fi
32659
32660 if test "x$THREADS_CFLAGS" != "x"; then
32661 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32662 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32663 fi
32664 fi
32665 fi
32666
32667 if test "$wxUSE_THREADS" = "yes" ; then
32668
32669for ac_func in thr_setconcurrency
32670do
32671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32672echo "$as_me:$LINENO: checking for $ac_func" >&5
32673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32674if eval "test \"\${$as_ac_var+set}\" = set"; then
32675 echo $ECHO_N "(cached) $ECHO_C" >&6
32676else
32677 cat >conftest.$ac_ext <<_ACEOF
32678/* confdefs.h. */
32679_ACEOF
32680cat confdefs.h >>conftest.$ac_ext
32681cat >>conftest.$ac_ext <<_ACEOF
32682/* end confdefs.h. */
ac1cb8d3
VS
32683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32685#define $ac_func innocuous_$ac_func
32686
a848cd7e
SC
32687/* System header to define __stub macros and hopefully few prototypes,
32688 which can conflict with char $ac_func (); below.
32689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32690 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32691
a848cd7e
SC
32692#ifdef __STDC__
32693# include <limits.h>
32694#else
32695# include <assert.h>
32696#endif
ac1cb8d3
VS
32697
32698#undef $ac_func
32699
a848cd7e
SC
32700/* Override any gcc2 internal prototype to avoid an error. */
32701#ifdef __cplusplus
32702extern "C"
32703{
32704#endif
32705/* We use char because int might match the return type of a gcc2
32706 builtin and then its argument prototype would still apply. */
32707char $ac_func ();
32708/* The GNU C library defines this for functions which it implements
32709 to always fail with ENOSYS. Some functions are actually named
32710 something starting with __ and the normal name is an alias. */
32711#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32712choke me
32713#else
32714char (*f) () = $ac_func;
32715#endif
32716#ifdef __cplusplus
32717}
32718#endif
32719
32720int
32721main ()
32722{
32723return f != $ac_func;
32724 ;
32725 return 0;
32726}
32727_ACEOF
32728rm -f conftest.$ac_objext conftest$ac_exeext
32729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32730 (eval $ac_link) 2>conftest.er1
a848cd7e 32731 ac_status=$?
ac1cb8d3
VS
32732 grep -v '^ *+' conftest.er1 >conftest.err
32733 rm -f conftest.er1
32734 cat conftest.err >&5
a848cd7e
SC
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); } &&
da4486fb 32737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32739 (eval $ac_try) 2>&5
32740 ac_status=$?
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); }; } &&
32743 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32745 (eval $ac_try) 2>&5
32746 ac_status=$?
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); }; }; then
32749 eval "$as_ac_var=yes"
32750else
32751 echo "$as_me: failed program was:" >&5
32752sed 's/^/| /' conftest.$ac_ext >&5
32753
32754eval "$as_ac_var=no"
32755fi
ac1cb8d3
VS
32756rm -f conftest.err conftest.$ac_objext \
32757 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32758fi
32759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32760echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32761if test `eval echo '${'$as_ac_var'}'` = yes; then
32762 cat >>confdefs.h <<_ACEOF
32763#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32764_ACEOF
32765
32766fi
32767done
32768
32769
32770
32771for ac_header in sched.h
32772do
32773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32774if eval "test \"\${$as_ac_Header+set}\" = set"; then
32775 echo "$as_me:$LINENO: checking for $ac_header" >&5
32776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32777if eval "test \"\${$as_ac_Header+set}\" = set"; then
32778 echo $ECHO_N "(cached) $ECHO_C" >&6
32779fi
32780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32782else
32783 # Is the header compilable?
32784echo "$as_me:$LINENO: checking $ac_header usability" >&5
32785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32786cat >conftest.$ac_ext <<_ACEOF
32787/* confdefs.h. */
32788_ACEOF
32789cat confdefs.h >>conftest.$ac_ext
32790cat >>conftest.$ac_ext <<_ACEOF
32791/* end confdefs.h. */
32792$ac_includes_default
32793#include <$ac_header>
32794_ACEOF
32795rm -f conftest.$ac_objext
32796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32797 (eval $ac_compile) 2>conftest.er1
a848cd7e 32798 ac_status=$?
ac1cb8d3
VS
32799 grep -v '^ *+' conftest.er1 >conftest.err
32800 rm -f conftest.er1
32801 cat conftest.err >&5
a848cd7e
SC
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); } &&
da4486fb 32804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32806 (eval $ac_try) 2>&5
32807 ac_status=$?
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); }; } &&
32810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32812 (eval $ac_try) 2>&5
32813 ac_status=$?
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); }; }; then
32816 ac_header_compiler=yes
32817else
32818 echo "$as_me: failed program was:" >&5
32819sed 's/^/| /' conftest.$ac_ext >&5
32820
32821ac_header_compiler=no
32822fi
ac1cb8d3 32823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32824echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32825echo "${ECHO_T}$ac_header_compiler" >&6
32826
32827# Is the header present?
32828echo "$as_me:$LINENO: checking $ac_header presence" >&5
32829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32830cat >conftest.$ac_ext <<_ACEOF
32831/* confdefs.h. */
32832_ACEOF
32833cat confdefs.h >>conftest.$ac_ext
32834cat >>conftest.$ac_ext <<_ACEOF
32835/* end confdefs.h. */
32836#include <$ac_header>
32837_ACEOF
32838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32840 ac_status=$?
32841 grep -v '^ *+' conftest.er1 >conftest.err
32842 rm -f conftest.er1
32843 cat conftest.err >&5
32844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845 (exit $ac_status); } >/dev/null; then
32846 if test -s conftest.err; then
32847 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32849 else
32850 ac_cpp_err=
32851 fi
32852else
32853 ac_cpp_err=yes
32854fi
32855if test -z "$ac_cpp_err"; then
32856 ac_header_preproc=yes
32857else
32858 echo "$as_me: failed program was:" >&5
32859sed 's/^/| /' conftest.$ac_ext >&5
32860
32861 ac_header_preproc=no
32862fi
32863rm -f conftest.err conftest.$ac_ext
32864echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32865echo "${ECHO_T}$ac_header_preproc" >&6
32866
32867# So? What about this header?
ac1cb8d3
VS
32868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32869 yes:no: )
a848cd7e
SC
32870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32871echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32873echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32874 ac_header_preproc=yes
a848cd7e 32875 ;;
ac1cb8d3 32876 no:yes:* )
a848cd7e
SC
32877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32878echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32880echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32882echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32884echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32886echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32888echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32889 (
32890 cat <<\_ASBOX
ac1cb8d3
VS
32891## ----------------------------------------- ##
32892## Report this to wx-dev@lists.wxwidgets.org ##
32893## ----------------------------------------- ##
a848cd7e
SC
32894_ASBOX
32895 ) |
32896 sed "s/^/$as_me: WARNING: /" >&2
32897 ;;
32898esac
32899echo "$as_me:$LINENO: checking for $ac_header" >&5
32900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32901if eval "test \"\${$as_ac_Header+set}\" = set"; then
32902 echo $ECHO_N "(cached) $ECHO_C" >&6
32903else
ac1cb8d3 32904 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32905fi
32906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32908
32909fi
32910if test `eval echo '${'$as_ac_Header'}'` = yes; then
32911 cat >>confdefs.h <<_ACEOF
32912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32913_ACEOF
32914
32915fi
32916
32917done
32918
32919 if test "$ac_cv_header_sched_h" = "yes"; then
32920 echo "$as_me:$LINENO: checking for sched_yield" >&5
32921echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32922if test "${ac_cv_func_sched_yield+set}" = set; then
32923 echo $ECHO_N "(cached) $ECHO_C" >&6
32924else
32925 cat >conftest.$ac_ext <<_ACEOF
32926/* confdefs.h. */
32927_ACEOF
32928cat confdefs.h >>conftest.$ac_ext
32929cat >>conftest.$ac_ext <<_ACEOF
32930/* end confdefs.h. */
ac1cb8d3
VS
32931/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32933#define sched_yield innocuous_sched_yield
32934
a848cd7e
SC
32935/* System header to define __stub macros and hopefully few prototypes,
32936 which can conflict with char sched_yield (); below.
32937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32938 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32939
a848cd7e
SC
32940#ifdef __STDC__
32941# include <limits.h>
32942#else
32943# include <assert.h>
32944#endif
ac1cb8d3
VS
32945
32946#undef sched_yield
32947
a848cd7e
SC
32948/* Override any gcc2 internal prototype to avoid an error. */
32949#ifdef __cplusplus
32950extern "C"
32951{
32952#endif
32953/* We use char because int might match the return type of a gcc2
32954 builtin and then its argument prototype would still apply. */
32955char sched_yield ();
32956/* The GNU C library defines this for functions which it implements
32957 to always fail with ENOSYS. Some functions are actually named
32958 something starting with __ and the normal name is an alias. */
32959#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32960choke me
32961#else
32962char (*f) () = sched_yield;
32963#endif
32964#ifdef __cplusplus
32965}
32966#endif
32967
32968int
32969main ()
32970{
32971return f != sched_yield;
32972 ;
32973 return 0;
32974}
32975_ACEOF
32976rm -f conftest.$ac_objext conftest$ac_exeext
32977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32978 (eval $ac_link) 2>conftest.er1
a848cd7e 32979 ac_status=$?
ac1cb8d3
VS
32980 grep -v '^ *+' conftest.er1 >conftest.err
32981 rm -f conftest.er1
32982 cat conftest.err >&5
a848cd7e
SC
32983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32984 (exit $ac_status); } &&
da4486fb 32985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32987 (eval $ac_try) 2>&5
32988 ac_status=$?
32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990 (exit $ac_status); }; } &&
32991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32993 (eval $ac_try) 2>&5
32994 ac_status=$?
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); }; }; then
32997 ac_cv_func_sched_yield=yes
32998else
32999 echo "$as_me: failed program was:" >&5
33000sed 's/^/| /' conftest.$ac_ext >&5
33001
33002ac_cv_func_sched_yield=no
33003fi
ac1cb8d3
VS
33004rm -f conftest.err conftest.$ac_objext \
33005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33006fi
33007echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33008echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33009if test $ac_cv_func_sched_yield = yes; then
33010 cat >>confdefs.h <<\_ACEOF
33011#define HAVE_SCHED_YIELD 1
33012_ACEOF
33013
33014else
33015
33016 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33017echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33018if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33019 echo $ECHO_N "(cached) $ECHO_C" >&6
33020else
33021 ac_check_lib_save_LIBS=$LIBS
33022LIBS="-lposix4 $LIBS"
33023cat >conftest.$ac_ext <<_ACEOF
33024/* confdefs.h. */
33025_ACEOF
33026cat confdefs.h >>conftest.$ac_ext
33027cat >>conftest.$ac_ext <<_ACEOF
33028/* end confdefs.h. */
33029
33030/* Override any gcc2 internal prototype to avoid an error. */
33031#ifdef __cplusplus
33032extern "C"
33033#endif
33034/* We use char because int might match the return type of a gcc2
33035 builtin and then its argument prototype would still apply. */
33036char sched_yield ();
33037int
33038main ()
33039{
33040sched_yield ();
33041 ;
33042 return 0;
33043}
33044_ACEOF
33045rm -f conftest.$ac_objext conftest$ac_exeext
33046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33047 (eval $ac_link) 2>conftest.er1
a848cd7e 33048 ac_status=$?
ac1cb8d3
VS
33049 grep -v '^ *+' conftest.er1 >conftest.err
33050 rm -f conftest.er1
33051 cat conftest.err >&5
a848cd7e
SC
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); } &&
da4486fb 33054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056 (eval $ac_try) 2>&5
33057 ac_status=$?
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); }; } &&
33060 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33066 ac_cv_lib_posix4_sched_yield=yes
33067else
33068 echo "$as_me: failed program was:" >&5
33069sed 's/^/| /' conftest.$ac_ext >&5
33070
33071ac_cv_lib_posix4_sched_yield=no
33072fi
ac1cb8d3
VS
33073rm -f conftest.err conftest.$ac_objext \
33074 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33075LIBS=$ac_check_lib_save_LIBS
33076fi
33077echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33078echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33079if test $ac_cv_lib_posix4_sched_yield = yes; then
33080 cat >>confdefs.h <<\_ACEOF
33081#define HAVE_SCHED_YIELD 1
33082_ACEOF
33083 POSIX4_LINK=" -lposix4"
33084else
33085 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33086echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33087
33088fi
33089
33090
33091
33092fi
33093
33094 fi
33095
33096 HAVE_PRIOR_FUNCS=0
33097 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33098echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33099if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33100 echo $ECHO_N "(cached) $ECHO_C" >&6
33101else
33102 cat >conftest.$ac_ext <<_ACEOF
33103/* confdefs.h. */
33104_ACEOF
33105cat confdefs.h >>conftest.$ac_ext
33106cat >>conftest.$ac_ext <<_ACEOF
33107/* end confdefs.h. */
ac1cb8d3
VS
33108/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33110#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33111
a848cd7e
SC
33112/* System header to define __stub macros and hopefully few prototypes,
33113 which can conflict with char pthread_attr_getschedpolicy (); below.
33114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33115 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33116
a848cd7e
SC
33117#ifdef __STDC__
33118# include <limits.h>
33119#else
33120# include <assert.h>
33121#endif
ac1cb8d3
VS
33122
33123#undef pthread_attr_getschedpolicy
33124
a848cd7e
SC
33125/* Override any gcc2 internal prototype to avoid an error. */
33126#ifdef __cplusplus
33127extern "C"
33128{
33129#endif
33130/* We use char because int might match the return type of a gcc2
33131 builtin and then its argument prototype would still apply. */
33132char pthread_attr_getschedpolicy ();
33133/* The GNU C library defines this for functions which it implements
33134 to always fail with ENOSYS. Some functions are actually named
33135 something starting with __ and the normal name is an alias. */
33136#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33137choke me
33138#else
33139char (*f) () = pthread_attr_getschedpolicy;
33140#endif
33141#ifdef __cplusplus
33142}
33143#endif
33144
33145int
33146main ()
33147{
33148return f != pthread_attr_getschedpolicy;
33149 ;
33150 return 0;
33151}
33152_ACEOF
33153rm -f conftest.$ac_objext conftest$ac_exeext
33154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33155 (eval $ac_link) 2>conftest.er1
a848cd7e 33156 ac_status=$?
ac1cb8d3
VS
33157 grep -v '^ *+' conftest.er1 >conftest.err
33158 rm -f conftest.er1
33159 cat conftest.err >&5
a848cd7e
SC
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); } &&
da4486fb 33162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33164 (eval $ac_try) 2>&5
33165 ac_status=$?
33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); }; } &&
33168 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33170 (eval $ac_try) 2>&5
33171 ac_status=$?
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; }; then
33174 ac_cv_func_pthread_attr_getschedpolicy=yes
33175else
33176 echo "$as_me: failed program was:" >&5
33177sed 's/^/| /' conftest.$ac_ext >&5
33178
33179ac_cv_func_pthread_attr_getschedpolicy=no
33180fi
ac1cb8d3
VS
33181rm -f conftest.err conftest.$ac_objext \
33182 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33183fi
33184echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33185echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33186if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33187 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33188echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33189if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33190 echo $ECHO_N "(cached) $ECHO_C" >&6
33191else
33192 cat >conftest.$ac_ext <<_ACEOF
33193/* confdefs.h. */
33194_ACEOF
33195cat confdefs.h >>conftest.$ac_ext
33196cat >>conftest.$ac_ext <<_ACEOF
33197/* end confdefs.h. */
ac1cb8d3
VS
33198/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33200#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33201
a848cd7e
SC
33202/* System header to define __stub macros and hopefully few prototypes,
33203 which can conflict with char pthread_attr_setschedparam (); below.
33204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33205 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33206
a848cd7e
SC
33207#ifdef __STDC__
33208# include <limits.h>
33209#else
33210# include <assert.h>
33211#endif
ac1cb8d3
VS
33212
33213#undef pthread_attr_setschedparam
33214
a848cd7e
SC
33215/* Override any gcc2 internal prototype to avoid an error. */
33216#ifdef __cplusplus
33217extern "C"
33218{
33219#endif
33220/* We use char because int might match the return type of a gcc2
33221 builtin and then its argument prototype would still apply. */
33222char pthread_attr_setschedparam ();
33223/* The GNU C library defines this for functions which it implements
33224 to always fail with ENOSYS. Some functions are actually named
33225 something starting with __ and the normal name is an alias. */
33226#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33227choke me
33228#else
33229char (*f) () = pthread_attr_setschedparam;
33230#endif
33231#ifdef __cplusplus
33232}
33233#endif
33234
33235int
33236main ()
33237{
33238return f != pthread_attr_setschedparam;
33239 ;
33240 return 0;
33241}
33242_ACEOF
33243rm -f conftest.$ac_objext conftest$ac_exeext
33244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33245 (eval $ac_link) 2>conftest.er1
a848cd7e 33246 ac_status=$?
ac1cb8d3
VS
33247 grep -v '^ *+' conftest.er1 >conftest.err
33248 rm -f conftest.er1
33249 cat conftest.err >&5
a848cd7e
SC
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); } &&
da4486fb 33252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33254 (eval $ac_try) 2>&5
33255 ac_status=$?
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); }; } &&
33258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33260 (eval $ac_try) 2>&5
33261 ac_status=$?
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); }; }; then
33264 ac_cv_func_pthread_attr_setschedparam=yes
33265else
33266 echo "$as_me: failed program was:" >&5
33267sed 's/^/| /' conftest.$ac_ext >&5
33268
33269ac_cv_func_pthread_attr_setschedparam=no
33270fi
ac1cb8d3
VS
33271rm -f conftest.err conftest.$ac_objext \
33272 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33273fi
33274echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33275echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33276if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33277 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33278echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33279if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33280 echo $ECHO_N "(cached) $ECHO_C" >&6
33281else
33282 cat >conftest.$ac_ext <<_ACEOF
33283/* confdefs.h. */
33284_ACEOF
33285cat confdefs.h >>conftest.$ac_ext
33286cat >>conftest.$ac_ext <<_ACEOF
33287/* end confdefs.h. */
ac1cb8d3
VS
33288/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33290#define sched_get_priority_max innocuous_sched_get_priority_max
33291
a848cd7e
SC
33292/* System header to define __stub macros and hopefully few prototypes,
33293 which can conflict with char sched_get_priority_max (); below.
33294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33295 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33296
a848cd7e
SC
33297#ifdef __STDC__
33298# include <limits.h>
33299#else
33300# include <assert.h>
33301#endif
ac1cb8d3
VS
33302
33303#undef sched_get_priority_max
33304
a848cd7e
SC
33305/* Override any gcc2 internal prototype to avoid an error. */
33306#ifdef __cplusplus
33307extern "C"
33308{
33309#endif
33310/* We use char because int might match the return type of a gcc2
33311 builtin and then its argument prototype would still apply. */
33312char sched_get_priority_max ();
33313/* The GNU C library defines this for functions which it implements
33314 to always fail with ENOSYS. Some functions are actually named
33315 something starting with __ and the normal name is an alias. */
33316#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33317choke me
33318#else
33319char (*f) () = sched_get_priority_max;
33320#endif
33321#ifdef __cplusplus
33322}
33323#endif
33324
33325int
33326main ()
33327{
33328return f != sched_get_priority_max;
33329 ;
33330 return 0;
33331}
33332_ACEOF
33333rm -f conftest.$ac_objext conftest$ac_exeext
33334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33335 (eval $ac_link) 2>conftest.er1
a848cd7e 33336 ac_status=$?
ac1cb8d3
VS
33337 grep -v '^ *+' conftest.er1 >conftest.err
33338 rm -f conftest.er1
33339 cat conftest.err >&5
a848cd7e
SC
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); } &&
da4486fb 33342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33344 (eval $ac_try) 2>&5
33345 ac_status=$?
33346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347 (exit $ac_status); }; } &&
33348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33350 (eval $ac_try) 2>&5
33351 ac_status=$?
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); }; }; then
33354 ac_cv_func_sched_get_priority_max=yes
33355else
33356 echo "$as_me: failed program was:" >&5
33357sed 's/^/| /' conftest.$ac_ext >&5
33358
33359ac_cv_func_sched_get_priority_max=no
33360fi
ac1cb8d3
VS
33361rm -f conftest.err conftest.$ac_objext \
33362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33363fi
33364echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33365echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33366if test $ac_cv_func_sched_get_priority_max = yes; then
33367 HAVE_PRIOR_FUNCS=1
33368else
33369 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33370echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33371if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33372 echo $ECHO_N "(cached) $ECHO_C" >&6
33373else
33374 ac_check_lib_save_LIBS=$LIBS
33375LIBS="-lposix4 $LIBS"
33376cat >conftest.$ac_ext <<_ACEOF
33377/* confdefs.h. */
33378_ACEOF
33379cat confdefs.h >>conftest.$ac_ext
33380cat >>conftest.$ac_ext <<_ACEOF
33381/* end confdefs.h. */
33382
33383/* Override any gcc2 internal prototype to avoid an error. */
33384#ifdef __cplusplus
33385extern "C"
33386#endif
33387/* We use char because int might match the return type of a gcc2
33388 builtin and then its argument prototype would still apply. */
33389char sched_get_priority_max ();
33390int
33391main ()
33392{
33393sched_get_priority_max ();
33394 ;
33395 return 0;
33396}
33397_ACEOF
33398rm -f conftest.$ac_objext conftest$ac_exeext
33399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33400 (eval $ac_link) 2>conftest.er1
a848cd7e 33401 ac_status=$?
ac1cb8d3
VS
33402 grep -v '^ *+' conftest.er1 >conftest.err
33403 rm -f conftest.er1
33404 cat conftest.err >&5
a848cd7e
SC
33405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406 (exit $ac_status); } &&
da4486fb 33407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409 (eval $ac_try) 2>&5
33410 ac_status=$?
33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 (exit $ac_status); }; } &&
33413 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33415 (eval $ac_try) 2>&5
33416 ac_status=$?
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); }; }; then
33419 ac_cv_lib_posix4_sched_get_priority_max=yes
33420else
33421 echo "$as_me: failed program was:" >&5
33422sed 's/^/| /' conftest.$ac_ext >&5
33423
33424ac_cv_lib_posix4_sched_get_priority_max=no
33425fi
ac1cb8d3
VS
33426rm -f conftest.err conftest.$ac_objext \
33427 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33428LIBS=$ac_check_lib_save_LIBS
33429fi
33430echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33431echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33432if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33433
33434 HAVE_PRIOR_FUNCS=1
33435 POSIX4_LINK=" -lposix4"
33436
33437fi
33438
33439
33440fi
33441
33442
33443fi
33444
33445
33446fi
33447
33448
33449 if test "$HAVE_PRIOR_FUNCS" = 1; then
33450 cat >>confdefs.h <<\_ACEOF
33451#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33452_ACEOF
33453
33454 else
33455 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33456echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33457 fi
33458
33459 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33460echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33461if test "${ac_cv_func_pthread_cancel+set}" = set; then
33462 echo $ECHO_N "(cached) $ECHO_C" >&6
33463else
33464 cat >conftest.$ac_ext <<_ACEOF
33465/* confdefs.h. */
33466_ACEOF
33467cat confdefs.h >>conftest.$ac_ext
33468cat >>conftest.$ac_ext <<_ACEOF
33469/* end confdefs.h. */
ac1cb8d3
VS
33470/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33472#define pthread_cancel innocuous_pthread_cancel
33473
a848cd7e
SC
33474/* System header to define __stub macros and hopefully few prototypes,
33475 which can conflict with char pthread_cancel (); below.
33476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33477 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33478
a848cd7e
SC
33479#ifdef __STDC__
33480# include <limits.h>
33481#else
33482# include <assert.h>
33483#endif
ac1cb8d3
VS
33484
33485#undef pthread_cancel
33486
a848cd7e
SC
33487/* Override any gcc2 internal prototype to avoid an error. */
33488#ifdef __cplusplus
33489extern "C"
33490{
33491#endif
33492/* We use char because int might match the return type of a gcc2
33493 builtin and then its argument prototype would still apply. */
33494char pthread_cancel ();
33495/* The GNU C library defines this for functions which it implements
33496 to always fail with ENOSYS. Some functions are actually named
33497 something starting with __ and the normal name is an alias. */
33498#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33499choke me
33500#else
33501char (*f) () = pthread_cancel;
33502#endif
33503#ifdef __cplusplus
33504}
33505#endif
33506
33507int
33508main ()
33509{
33510return f != pthread_cancel;
33511 ;
33512 return 0;
33513}
33514_ACEOF
33515rm -f conftest.$ac_objext conftest$ac_exeext
33516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33517 (eval $ac_link) 2>conftest.er1
a848cd7e 33518 ac_status=$?
ac1cb8d3
VS
33519 grep -v '^ *+' conftest.er1 >conftest.err
33520 rm -f conftest.er1
33521 cat conftest.err >&5
a848cd7e
SC
33522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523 (exit $ac_status); } &&
da4486fb 33524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33526 (eval $ac_try) 2>&5
33527 ac_status=$?
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); }; } &&
33530 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33532 (eval $ac_try) 2>&5
33533 ac_status=$?
33534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33535 (exit $ac_status); }; }; then
33536 ac_cv_func_pthread_cancel=yes
33537else
33538 echo "$as_me: failed program was:" >&5
33539sed 's/^/| /' conftest.$ac_ext >&5
33540
33541ac_cv_func_pthread_cancel=no
33542fi
ac1cb8d3
VS
33543rm -f conftest.err conftest.$ac_objext \
33544 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33545fi
33546echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33547echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33548if test $ac_cv_func_pthread_cancel = yes; then
33549 cat >>confdefs.h <<\_ACEOF
33550#define HAVE_PTHREAD_CANCEL 1
33551_ACEOF
33552
33553else
33554 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33555echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33556fi
33557
33558
33559
33560
33561 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33562echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33563if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33564 echo $ECHO_N "(cached) $ECHO_C" >&6
33565else
33566
33567 cat >conftest.$ac_ext <<_ACEOF
33568/* confdefs.h. */
33569_ACEOF
33570cat confdefs.h >>conftest.$ac_ext
33571cat >>conftest.$ac_ext <<_ACEOF
33572/* end confdefs.h. */
33573#include <pthread.h>
33574int
33575main ()
33576{
33577
33578 pthread_mutexattr_t attr;
33579 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33580
33581 ;
33582 return 0;
33583}
33584_ACEOF
33585rm -f conftest.$ac_objext
33586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33587 (eval $ac_compile) 2>conftest.er1
a848cd7e 33588 ac_status=$?
ac1cb8d3
VS
33589 grep -v '^ *+' conftest.er1 >conftest.err
33590 rm -f conftest.er1
33591 cat conftest.err >&5
a848cd7e
SC
33592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33593 (exit $ac_status); } &&
da4486fb 33594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33596 (eval $ac_try) 2>&5
33597 ac_status=$?
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); }; } &&
33600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33602 (eval $ac_try) 2>&5
33603 ac_status=$?
33604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605 (exit $ac_status); }; }; then
33606
33607 wx_cv_type_pthread_mutexattr_t=yes
33608
33609else
33610 echo "$as_me: failed program was:" >&5
33611sed 's/^/| /' conftest.$ac_ext >&5
33612
33613
33614 wx_cv_type_pthread_mutexattr_t=no
33615
33616
33617fi
ac1cb8d3 33618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33619
33620fi
33621echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33622echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33623
33624 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33625 cat >>confdefs.h <<\_ACEOF
33626#define HAVE_PTHREAD_MUTEXATTR_T 1
33627_ACEOF
33628
33629 else
33630 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33631echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33632if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33633 echo $ECHO_N "(cached) $ECHO_C" >&6
33634else
33635
33636 cat >conftest.$ac_ext <<_ACEOF
33637/* confdefs.h. */
33638_ACEOF
33639cat confdefs.h >>conftest.$ac_ext
33640cat >>conftest.$ac_ext <<_ACEOF
33641/* end confdefs.h. */
33642#include <pthread.h>
33643int
33644main ()
33645{
33646
33647 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33648
33649 ;
33650 return 0;
33651}
33652_ACEOF
33653rm -f conftest.$ac_objext
33654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33655 (eval $ac_compile) 2>conftest.er1
a848cd7e 33656 ac_status=$?
ac1cb8d3
VS
33657 grep -v '^ *+' conftest.er1 >conftest.err
33658 rm -f conftest.er1
33659 cat conftest.err >&5
a848cd7e
SC
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); } &&
da4486fb 33662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33664 (eval $ac_try) 2>&5
33665 ac_status=$?
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); }; } &&
33668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33670 (eval $ac_try) 2>&5
33671 ac_status=$?
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); }; }; then
33674
33675 wx_cv_type_pthread_rec_mutex_init=yes
33676
33677else
33678 echo "$as_me: failed program was:" >&5
33679sed 's/^/| /' conftest.$ac_ext >&5
33680
33681
33682 wx_cv_type_pthread_rec_mutex_init=no
33683
33684
33685fi
ac1cb8d3 33686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33687
33688fi
33689echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33690echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33691 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33692 cat >>confdefs.h <<\_ACEOF
33693#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33694_ACEOF
33695
33696 else
33697 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33698echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33699 fi
33700 fi
33701 fi
33702
33703else
33704 if test "$wxUSE_THREADS" = "yes" ; then
33705 case "${host}" in
33706 *-*-mingw32* )
33707 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33708echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33709if test "${wx_cv_cflags_mthread+set}" = set; then
33710 echo $ECHO_N "(cached) $ECHO_C" >&6
33711else
33712
33713 CFLAGS_OLD="$CFLAGS"
33714 CFLAGS="$CFLAGS -mthreads"
33715 cat >conftest.$ac_ext <<_ACEOF
33716/* confdefs.h. */
33717_ACEOF
33718cat confdefs.h >>conftest.$ac_ext
33719cat >>conftest.$ac_ext <<_ACEOF
33720/* end confdefs.h. */
33721
33722int
33723main ()
33724{
33725
33726 ;
33727 return 0;
33728}
33729_ACEOF
33730rm -f conftest.$ac_objext
33731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33732 (eval $ac_compile) 2>conftest.er1
a848cd7e 33733 ac_status=$?
ac1cb8d3
VS
33734 grep -v '^ *+' conftest.er1 >conftest.err
33735 rm -f conftest.er1
33736 cat conftest.err >&5
a848cd7e
SC
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); } &&
da4486fb 33739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741 (eval $ac_try) 2>&5
33742 ac_status=$?
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; } &&
33745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33747 (eval $ac_try) 2>&5
33748 ac_status=$?
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); }; }; then
33751 wx_cv_cflags_mthread=yes
33752else
33753 echo "$as_me: failed program was:" >&5
33754sed 's/^/| /' conftest.$ac_ext >&5
33755
33756wx_cv_cflags_mthread=no
33757
33758fi
ac1cb8d3 33759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33760
33761
33762fi
33763echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33764echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33765
33766 if test "$wx_cv_cflags_mthread" = "yes"; then
33767 CXXFLAGS="$CXXFLAGS -mthreads"
33768 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33769 LDFLAGS="$LDFLAGS -mthreads"
33770 else
33771 CFLAGS="$CFLAGS_OLD"
33772 fi
33773 ;;
33774 *-pc-os2*emx )
33775 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33776 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33777 LDFLAGS="$LDFLAGS -Zmt"
33778 ;;
33779 esac
33780 fi
33781fi
33782
33783if test "$wxUSE_THREADS" = "yes"; then
33784 cat >>confdefs.h <<\_ACEOF
33785#define wxUSE_THREADS 1
33786_ACEOF
33787
33788
33789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33790else
33791 if test "$ac_cv_func_strtok_r" = "yes"; then
33792 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33793echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33794 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33795 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33796 echo "$as_me:$LINENO: result: yes" >&5
33797echo "${ECHO_T}yes" >&6
33798 else
33799 echo "$as_me:$LINENO: result: no" >&5
33800echo "${ECHO_T}no" >&6
33801 fi
33802 fi
33803fi
33804
33805if test "$WXGTK20" = 1 ; then
33806 cat >>confdefs.h <<_ACEOF
33807#define __WXGTK20__ $WXGTK20
33808_ACEOF
33809
33810 WXGTK12=1
33811fi
33812
33813if test "$WXGTK12" = 1 ; then
33814 cat >>confdefs.h <<_ACEOF
33815#define __WXGTK12__ $WXGTK12
33816_ACEOF
33817
33818fi
33819
33820if test "$WXGTK127" = 1 ; then
33821 cat >>confdefs.h <<_ACEOF
33822#define __WXGTK127__ $WXGTK127
33823_ACEOF
33824
33825fi
33826
33827if test "$WXGPE" = 1 ; then
33828 cat >>confdefs.h <<_ACEOF
33829#define __WXGPE__ $WXGPE
33830_ACEOF
33831
33832fi
33833
33834WXDEBUG=
33835
33836if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33837 WXDEBUG="-g"
33838 wxUSE_OPTIMISE=no
33839fi
33840
33841if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33842 wxUSE_DEBUG_INFO=yes
33843 WXDEBUG="-ggdb"
33844fi
33845
33846if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33847 cat >>confdefs.h <<\_ACEOF
33848#define WXDEBUG 1
33849_ACEOF
33850
33851 WXDEBUG_DEFINE="-D__WXDEBUG__"
33852else
33853 if test "$wxUSE_GTK" = 1 ; then
33854 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33855 fi
33856fi
33857
33858if test "$wxUSE_MEM_TRACING" = "yes" ; then
33859 cat >>confdefs.h <<\_ACEOF
33860#define wxUSE_MEMORY_TRACING 1
33861_ACEOF
33862
33863 cat >>confdefs.h <<\_ACEOF
33864#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33865_ACEOF
33866
33867 cat >>confdefs.h <<\_ACEOF
33868#define wxUSE_DEBUG_NEW_ALWAYS 1
33869_ACEOF
33870
33871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33872fi
33873
33874if test "$wxUSE_DMALLOC" = "yes" ; then
33875 DMALLOC_LIBS="-ldmalloc"
33876fi
33877
33878PROFILE=
33879if test "$wxUSE_PROFILE" = "yes" ; then
33880 PROFILE=" -pg"
33881fi
33882
33883CODE_GEN_FLAGS=
33884CODE_GEN_FLAGS_CXX=
33885if test "$GCC" = "yes" ; then
33886 if test "$wxUSE_NO_RTTI" = "yes" ; then
33887 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33888 fi
33889 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33890 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33891 fi
33892 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33893 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33894 fi
33895
33896 case "${host}" in
33897 powerpc*-*-aix* )
33898 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33899 ;;
33900 *-hppa* )
33901 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33902 ;;
33903 esac
33904fi
33905
33906OPTIMISE=
33907if test "$wxUSE_OPTIMISE" = "no" ; then
33908 if test "$GCC" = yes ; then
33909 OPTIMISE="-O0"
33910 fi
33911else
33912 if test "$GCC" = yes ; then
33913 OPTIMISE="-O2"
33914
33915 case "${host}" in
33916 i586-*-*|i686-*-* )
33917 OPTIMISE="${OPTIMISE} "
33918 ;;
33919 esac
33920 else
33921 OPTIMISE="-O"
33922 fi
33923fi
33924
33925
33926if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33927 cat >>confdefs.h <<\_ACEOF
33928#define WXWIN_COMPATIBILITY_2_2 1
33929_ACEOF
33930
33931
33932 WXWIN_COMPATIBILITY_2_4="yes"
33933fi
33934
33935if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33936 cat >>confdefs.h <<\_ACEOF
33937#define WXWIN_COMPATIBILITY_2_4 1
33938_ACEOF
33939
33940fi
33941
33942
33943if test "$wxUSE_GUI" = "yes"; then
881bfcd6 33944 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33945#define wxUSE_GUI 1
33946_ACEOF
33947
33948
370fd4c2 33949 fi
a848cd7e
SC
33950
33951
33952if test "$wxUSE_UNIX" = "yes"; then
33953 cat >>confdefs.h <<\_ACEOF
33954#define wxUSE_UNIX 1
33955_ACEOF
33956
33957fi
33958
33959
33960if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33961
33962 HAVE_DL_FUNCS=0
33963 HAVE_SHL_FUNCS=0
33964 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33965 if test "$USE_DARWIN" = 1; then
33966 HAVE_DL_FUNCS=1
33967 else
33968
33969for ac_func in dlopen
33970do
33971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33972echo "$as_me:$LINENO: checking for $ac_func" >&5
33973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33974if eval "test \"\${$as_ac_var+set}\" = set"; then
33975 echo $ECHO_N "(cached) $ECHO_C" >&6
33976else
33977 cat >conftest.$ac_ext <<_ACEOF
33978/* confdefs.h. */
33979_ACEOF
33980cat confdefs.h >>conftest.$ac_ext
33981cat >>conftest.$ac_ext <<_ACEOF
33982/* end confdefs.h. */
ac1cb8d3
VS
33983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33985#define $ac_func innocuous_$ac_func
33986
a848cd7e
SC
33987/* System header to define __stub macros and hopefully few prototypes,
33988 which can conflict with char $ac_func (); below.
33989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33990 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33991
a848cd7e
SC
33992#ifdef __STDC__
33993# include <limits.h>
33994#else
33995# include <assert.h>
33996#endif
ac1cb8d3
VS
33997
33998#undef $ac_func
33999
a848cd7e
SC
34000/* Override any gcc2 internal prototype to avoid an error. */
34001#ifdef __cplusplus
34002extern "C"
34003{
34004#endif
34005/* We use char because int might match the return type of a gcc2
34006 builtin and then its argument prototype would still apply. */
34007char $ac_func ();
34008/* The GNU C library defines this for functions which it implements
34009 to always fail with ENOSYS. Some functions are actually named
34010 something starting with __ and the normal name is an alias. */
34011#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34012choke me
34013#else
34014char (*f) () = $ac_func;
34015#endif
34016#ifdef __cplusplus
34017}
34018#endif
34019
34020int
34021main ()
34022{
34023return f != $ac_func;
34024 ;
34025 return 0;
34026}
34027_ACEOF
34028rm -f conftest.$ac_objext conftest$ac_exeext
34029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34030 (eval $ac_link) 2>conftest.er1
a848cd7e 34031 ac_status=$?
ac1cb8d3
VS
34032 grep -v '^ *+' conftest.er1 >conftest.err
34033 rm -f conftest.er1
34034 cat conftest.err >&5
a848cd7e
SC
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); } &&
da4486fb 34037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34039 (eval $ac_try) 2>&5
34040 ac_status=$?
34041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042 (exit $ac_status); }; } &&
34043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34045 (eval $ac_try) 2>&5
34046 ac_status=$?
34047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048 (exit $ac_status); }; }; then
34049 eval "$as_ac_var=yes"
34050else
34051 echo "$as_me: failed program was:" >&5
34052sed 's/^/| /' conftest.$ac_ext >&5
34053
34054eval "$as_ac_var=no"
34055fi
ac1cb8d3
VS
34056rm -f conftest.err conftest.$ac_objext \
34057 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34058fi
34059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34060echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34061if test `eval echo '${'$as_ac_var'}'` = yes; then
34062 cat >>confdefs.h <<_ACEOF
34063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34064_ACEOF
34065
34066 cat >>confdefs.h <<\_ACEOF
34067#define HAVE_DLOPEN 1
34068_ACEOF
34069
34070 HAVE_DL_FUNCS=1
34071
34072else
34073
34074 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34075echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34076if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34077 echo $ECHO_N "(cached) $ECHO_C" >&6
34078else
34079 ac_check_lib_save_LIBS=$LIBS
34080LIBS="-ldl $LIBS"
34081cat >conftest.$ac_ext <<_ACEOF
34082/* confdefs.h. */
34083_ACEOF
34084cat confdefs.h >>conftest.$ac_ext
34085cat >>conftest.$ac_ext <<_ACEOF
34086/* end confdefs.h. */
34087
34088/* Override any gcc2 internal prototype to avoid an error. */
34089#ifdef __cplusplus
34090extern "C"
34091#endif
34092/* We use char because int might match the return type of a gcc2
34093 builtin and then its argument prototype would still apply. */
34094char dlopen ();
34095int
34096main ()
34097{
34098dlopen ();
34099 ;
34100 return 0;
34101}
34102_ACEOF
34103rm -f conftest.$ac_objext conftest$ac_exeext
34104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34105 (eval $ac_link) 2>conftest.er1
a848cd7e 34106 ac_status=$?
ac1cb8d3
VS
34107 grep -v '^ *+' conftest.er1 >conftest.err
34108 rm -f conftest.er1
34109 cat conftest.err >&5
a848cd7e
SC
34110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 (exit $ac_status); } &&
da4486fb 34112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34114 (eval $ac_try) 2>&5
34115 ac_status=$?
34116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 (exit $ac_status); }; } &&
34118 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34124 ac_cv_lib_dl_dlopen=yes
34125else
34126 echo "$as_me: failed program was:" >&5
34127sed 's/^/| /' conftest.$ac_ext >&5
34128
34129ac_cv_lib_dl_dlopen=no
34130fi
ac1cb8d3
VS
34131rm -f conftest.err conftest.$ac_objext \
34132 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34133LIBS=$ac_check_lib_save_LIBS
34134fi
34135echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34136echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34137if test $ac_cv_lib_dl_dlopen = yes; then
34138
34139 cat >>confdefs.h <<\_ACEOF
34140#define HAVE_DLOPEN 1
34141_ACEOF
34142
34143 HAVE_DL_FUNCS=1
34144 DL_LINK=" -ldl$DL_LINK"
34145
34146else
34147
34148
34149for ac_func in shl_load
34150do
34151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34152echo "$as_me:$LINENO: checking for $ac_func" >&5
34153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34154if eval "test \"\${$as_ac_var+set}\" = set"; then
34155 echo $ECHO_N "(cached) $ECHO_C" >&6
34156else
34157 cat >conftest.$ac_ext <<_ACEOF
34158/* confdefs.h. */
34159_ACEOF
34160cat confdefs.h >>conftest.$ac_ext
34161cat >>conftest.$ac_ext <<_ACEOF
34162/* end confdefs.h. */
ac1cb8d3
VS
34163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34165#define $ac_func innocuous_$ac_func
34166
a848cd7e
SC
34167/* System header to define __stub macros and hopefully few prototypes,
34168 which can conflict with char $ac_func (); below.
34169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34170 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34171
a848cd7e
SC
34172#ifdef __STDC__
34173# include <limits.h>
34174#else
34175# include <assert.h>
34176#endif
ac1cb8d3
VS
34177
34178#undef $ac_func
34179
a848cd7e
SC
34180/* Override any gcc2 internal prototype to avoid an error. */
34181#ifdef __cplusplus
34182extern "C"
34183{
34184#endif
34185/* We use char because int might match the return type of a gcc2
34186 builtin and then its argument prototype would still apply. */
34187char $ac_func ();
34188/* The GNU C library defines this for functions which it implements
34189 to always fail with ENOSYS. Some functions are actually named
34190 something starting with __ and the normal name is an alias. */
34191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34192choke me
34193#else
34194char (*f) () = $ac_func;
34195#endif
34196#ifdef __cplusplus
34197}
34198#endif
34199
34200int
34201main ()
34202{
34203return f != $ac_func;
34204 ;
34205 return 0;
34206}
34207_ACEOF
34208rm -f conftest.$ac_objext conftest$ac_exeext
34209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34210 (eval $ac_link) 2>conftest.er1
a848cd7e 34211 ac_status=$?
ac1cb8d3
VS
34212 grep -v '^ *+' conftest.er1 >conftest.err
34213 rm -f conftest.er1
34214 cat conftest.err >&5
a848cd7e
SC
34215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216 (exit $ac_status); } &&
da4486fb 34217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34219 (eval $ac_try) 2>&5
34220 ac_status=$?
34221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222 (exit $ac_status); }; } &&
34223 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225 (eval $ac_try) 2>&5
34226 ac_status=$?
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; }; then
34229 eval "$as_ac_var=yes"
34230else
34231 echo "$as_me: failed program was:" >&5
34232sed 's/^/| /' conftest.$ac_ext >&5
34233
34234eval "$as_ac_var=no"
34235fi
ac1cb8d3
VS
34236rm -f conftest.err conftest.$ac_objext \
34237 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34238fi
34239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34240echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34241if test `eval echo '${'$as_ac_var'}'` = yes; then
34242 cat >>confdefs.h <<_ACEOF
34243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34244_ACEOF
34245
34246 cat >>confdefs.h <<\_ACEOF
34247#define HAVE_SHL_LOAD 1
34248_ACEOF
34249
34250 HAVE_SHL_FUNCS=1
34251
34252else
34253
34254 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34255echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34256if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34257 echo $ECHO_N "(cached) $ECHO_C" >&6
34258else
34259 ac_check_lib_save_LIBS=$LIBS
34260LIBS="-lshl_load $LIBS"
34261cat >conftest.$ac_ext <<_ACEOF
34262/* confdefs.h. */
34263_ACEOF
34264cat confdefs.h >>conftest.$ac_ext
34265cat >>conftest.$ac_ext <<_ACEOF
34266/* end confdefs.h. */
34267
34268/* Override any gcc2 internal prototype to avoid an error. */
34269#ifdef __cplusplus
34270extern "C"
34271#endif
34272/* We use char because int might match the return type of a gcc2
34273 builtin and then its argument prototype would still apply. */
34274char dld ();
34275int
34276main ()
34277{
34278dld ();
34279 ;
34280 return 0;
34281}
34282_ACEOF
34283rm -f conftest.$ac_objext conftest$ac_exeext
34284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34285 (eval $ac_link) 2>conftest.er1
a848cd7e 34286 ac_status=$?
ac1cb8d3
VS
34287 grep -v '^ *+' conftest.er1 >conftest.err
34288 rm -f conftest.er1
34289 cat conftest.err >&5
a848cd7e
SC
34290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34291 (exit $ac_status); } &&
da4486fb 34292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34294 (eval $ac_try) 2>&5
34295 ac_status=$?
34296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34297 (exit $ac_status); }; } &&
34298 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34300 (eval $ac_try) 2>&5
34301 ac_status=$?
34302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34303 (exit $ac_status); }; }; then
34304 ac_cv_lib_shl_load_dld=yes
34305else
34306 echo "$as_me: failed program was:" >&5
34307sed 's/^/| /' conftest.$ac_ext >&5
34308
34309ac_cv_lib_shl_load_dld=no
34310fi
ac1cb8d3
VS
34311rm -f conftest.err conftest.$ac_objext \
34312 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34313LIBS=$ac_check_lib_save_LIBS
34314fi
34315echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34316echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34317if test $ac_cv_lib_shl_load_dld = yes; then
34318
34319 HAVE_SHL_FUNCS=1
34320 DL_LINK=" -ldld$DL_LINK"
34321
34322fi
34323
34324
34325fi
34326done
34327
34328
34329fi
34330
34331
34332fi
34333done
34334
34335
34336 if test "$HAVE_DL_FUNCS" = 1; then
34337
34338for ac_func in dlerror
34339do
34340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34341echo "$as_me:$LINENO: checking for $ac_func" >&5
34342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34343if eval "test \"\${$as_ac_var+set}\" = set"; then
34344 echo $ECHO_N "(cached) $ECHO_C" >&6
34345else
34346 cat >conftest.$ac_ext <<_ACEOF
34347/* confdefs.h. */
34348_ACEOF
34349cat confdefs.h >>conftest.$ac_ext
34350cat >>conftest.$ac_ext <<_ACEOF
34351/* end confdefs.h. */
ac1cb8d3
VS
34352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34354#define $ac_func innocuous_$ac_func
34355
a848cd7e
SC
34356/* System header to define __stub macros and hopefully few prototypes,
34357 which can conflict with char $ac_func (); below.
34358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34359 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34360
a848cd7e
SC
34361#ifdef __STDC__
34362# include <limits.h>
34363#else
34364# include <assert.h>
34365#endif
ac1cb8d3
VS
34366
34367#undef $ac_func
34368
a848cd7e
SC
34369/* Override any gcc2 internal prototype to avoid an error. */
34370#ifdef __cplusplus
34371extern "C"
34372{
34373#endif
34374/* We use char because int might match the return type of a gcc2
34375 builtin and then its argument prototype would still apply. */
34376char $ac_func ();
34377/* The GNU C library defines this for functions which it implements
34378 to always fail with ENOSYS. Some functions are actually named
34379 something starting with __ and the normal name is an alias. */
34380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34381choke me
34382#else
34383char (*f) () = $ac_func;
34384#endif
34385#ifdef __cplusplus
34386}
34387#endif
34388
34389int
34390main ()
34391{
34392return f != $ac_func;
34393 ;
34394 return 0;
34395}
34396_ACEOF
34397rm -f conftest.$ac_objext conftest$ac_exeext
34398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34399 (eval $ac_link) 2>conftest.er1
a848cd7e 34400 ac_status=$?
ac1cb8d3
VS
34401 grep -v '^ *+' conftest.er1 >conftest.err
34402 rm -f conftest.er1
34403 cat conftest.err >&5
a848cd7e
SC
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); } &&
da4486fb 34406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34408 (eval $ac_try) 2>&5
34409 ac_status=$?
34410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34411 (exit $ac_status); }; } &&
34412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34414 (eval $ac_try) 2>&5
34415 ac_status=$?
34416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417 (exit $ac_status); }; }; then
34418 eval "$as_ac_var=yes"
34419else
34420 echo "$as_me: failed program was:" >&5
34421sed 's/^/| /' conftest.$ac_ext >&5
34422
34423eval "$as_ac_var=no"
34424fi
ac1cb8d3
VS
34425rm -f conftest.err conftest.$ac_objext \
34426 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34427fi
34428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34429echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34430if test `eval echo '${'$as_ac_var'}'` = yes; then
34431 cat >>confdefs.h <<_ACEOF
34432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34433_ACEOF
34434 cat >>confdefs.h <<\_ACEOF
34435#define HAVE_DLERROR 1
34436_ACEOF
34437
34438else
34439
34440 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34441echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34442if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34443 echo $ECHO_N "(cached) $ECHO_C" >&6
34444else
34445 ac_check_lib_save_LIBS=$LIBS
34446LIBS="-ldl $LIBS"
34447cat >conftest.$ac_ext <<_ACEOF
34448/* confdefs.h. */
34449_ACEOF
34450cat confdefs.h >>conftest.$ac_ext
34451cat >>conftest.$ac_ext <<_ACEOF
34452/* end confdefs.h. */
34453
34454/* Override any gcc2 internal prototype to avoid an error. */
34455#ifdef __cplusplus
34456extern "C"
34457#endif
34458/* We use char because int might match the return type of a gcc2
34459 builtin and then its argument prototype would still apply. */
34460char dlerror ();
34461int
34462main ()
34463{
34464dlerror ();
34465 ;
34466 return 0;
34467}
34468_ACEOF
34469rm -f conftest.$ac_objext conftest$ac_exeext
34470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34471 (eval $ac_link) 2>conftest.er1
a848cd7e 34472 ac_status=$?
ac1cb8d3
VS
34473 grep -v '^ *+' conftest.er1 >conftest.err
34474 rm -f conftest.er1
34475 cat conftest.err >&5
a848cd7e
SC
34476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477 (exit $ac_status); } &&
da4486fb 34478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34480 (eval $ac_try) 2>&5
34481 ac_status=$?
34482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483 (exit $ac_status); }; } &&
34484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34486 (eval $ac_try) 2>&5
34487 ac_status=$?
34488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34489 (exit $ac_status); }; }; then
34490 ac_cv_lib_dl_dlerror=yes
34491else
34492 echo "$as_me: failed program was:" >&5
34493sed 's/^/| /' conftest.$ac_ext >&5
34494
34495ac_cv_lib_dl_dlerror=no
34496fi
ac1cb8d3
VS
34497rm -f conftest.err conftest.$ac_objext \
34498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34499LIBS=$ac_check_lib_save_LIBS
34500fi
34501echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34502echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34503if test $ac_cv_lib_dl_dlerror = yes; then
34504 cat >>confdefs.h <<\_ACEOF
34505#define HAVE_DLERROR 1
34506_ACEOF
34507
34508fi
34509
34510
34511
34512fi
34513done
34514
34515 fi
34516 fi
34517
34518 if test "$HAVE_DL_FUNCS" = 0; then
34519 if test "$HAVE_SHL_FUNCS" = 0; then
34520 if test "$USE_UNIX" = 1; then
34521 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34522echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34523 wxUSE_DYNAMIC_LOADER=no
34524 wxUSE_DYNLIB_CLASS=no
34525 else
34526 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34527echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34528 fi
34529 fi
34530 fi
34531 fi
34532fi
34533
34534if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34535 cat >>confdefs.h <<\_ACEOF
34536#define wxUSE_DYNAMIC_LOADER 1
34537_ACEOF
34538
34539fi
34540if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34541 cat >>confdefs.h <<\_ACEOF
34542#define wxUSE_DYNLIB_CLASS 1
34543_ACEOF
34544
34545fi
34546
34547
34548
34549if test "$wxUSE_PLUGINS" = "yes" ; then
34550 if test "$wxUSE_SHARED" = "no" ; then
34551 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34552echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34553 wxUSE_PLUGINS=no
34554 fi
34555 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34556 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34557echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34558 wxUSE_PLUGINS=no
34559 fi
34560 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34561 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34562echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34563 wxUSE_PLUGINS=no
34564 fi
34565 if test "$wxUSE_PLUGINS" = "yes" ; then
34566 cat >>confdefs.h <<\_ACEOF
34567#define wxUSE_PLUGINS 1
34568_ACEOF
34569
34570 fi
34571fi
34572
34573
34574if test "$wxUSE_STL" = "yes"; then
34575 cat >>confdefs.h <<\_ACEOF
34576#define wxUSE_STL 1
34577_ACEOF
34578
34579fi
34580
34581if test "$wxUSE_APPLE_IEEE" = "yes"; then
34582 cat >>confdefs.h <<\_ACEOF
34583#define wxUSE_APPLE_IEEE 1
34584_ACEOF
34585
34586fi
34587
34588if test "$wxUSE_TIMER" = "yes"; then
34589 cat >>confdefs.h <<\_ACEOF
34590#define wxUSE_TIMER 1
34591_ACEOF
34592
34593fi
34594
34595WITH_PLUGIN_SDL=0
34596if test "$wxUSE_SOUND" = "yes"; then
34597 if test "$USE_UNIX" = "1" ; then
34598
34599for ac_header in sys/soundcard.h
34600do
34601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34602if eval "test \"\${$as_ac_Header+set}\" = set"; then
34603 echo "$as_me:$LINENO: checking for $ac_header" >&5
34604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34605if eval "test \"\${$as_ac_Header+set}\" = set"; then
34606 echo $ECHO_N "(cached) $ECHO_C" >&6
34607fi
34608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34610else
34611 # Is the header compilable?
34612echo "$as_me:$LINENO: checking $ac_header usability" >&5
34613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34614cat >conftest.$ac_ext <<_ACEOF
34615/* confdefs.h. */
34616_ACEOF
34617cat confdefs.h >>conftest.$ac_ext
34618cat >>conftest.$ac_ext <<_ACEOF
34619/* end confdefs.h. */
34620$ac_includes_default
34621#include <$ac_header>
34622_ACEOF
34623rm -f conftest.$ac_objext
34624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34625 (eval $ac_compile) 2>conftest.er1
a848cd7e 34626 ac_status=$?
ac1cb8d3
VS
34627 grep -v '^ *+' conftest.er1 >conftest.err
34628 rm -f conftest.er1
34629 cat conftest.err >&5
a848cd7e
SC
34630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 (exit $ac_status); } &&
da4486fb 34632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34634 (eval $ac_try) 2>&5
34635 ac_status=$?
34636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637 (exit $ac_status); }; } &&
34638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34640 (eval $ac_try) 2>&5
34641 ac_status=$?
34642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643 (exit $ac_status); }; }; then
34644 ac_header_compiler=yes
34645else
34646 echo "$as_me: failed program was:" >&5
34647sed 's/^/| /' conftest.$ac_ext >&5
34648
34649ac_header_compiler=no
34650fi
ac1cb8d3 34651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34652echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34653echo "${ECHO_T}$ac_header_compiler" >&6
34654
34655# Is the header present?
34656echo "$as_me:$LINENO: checking $ac_header presence" >&5
34657echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
34665_ACEOF
34666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34668 ac_status=$?
34669 grep -v '^ *+' conftest.er1 >conftest.err
34670 rm -f conftest.er1
34671 cat conftest.err >&5
34672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34673 (exit $ac_status); } >/dev/null; then
34674 if test -s conftest.err; then
34675 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34677 else
34678 ac_cpp_err=
34679 fi
34680else
34681 ac_cpp_err=yes
34682fi
34683if test -z "$ac_cpp_err"; then
34684 ac_header_preproc=yes
34685else
34686 echo "$as_me: failed program was:" >&5
34687sed 's/^/| /' conftest.$ac_ext >&5
34688
34689 ac_header_preproc=no
34690fi
34691rm -f conftest.err conftest.$ac_ext
34692echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34693echo "${ECHO_T}$ac_header_preproc" >&6
34694
34695# So? What about this header?
ac1cb8d3
VS
34696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34697 yes:no: )
a848cd7e
SC
34698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34699echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34701echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34702 ac_header_preproc=yes
a848cd7e 34703 ;;
ac1cb8d3 34704 no:yes:* )
a848cd7e
SC
34705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34706echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34708echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34710echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34712echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34716echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34717 (
34718 cat <<\_ASBOX
ac1cb8d3
VS
34719## ----------------------------------------- ##
34720## Report this to wx-dev@lists.wxwidgets.org ##
34721## ----------------------------------------- ##
a848cd7e
SC
34722_ASBOX
34723 ) |
34724 sed "s/^/$as_me: WARNING: /" >&2
34725 ;;
34726esac
34727echo "$as_me:$LINENO: checking for $ac_header" >&5
34728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34729if eval "test \"\${$as_ac_Header+set}\" = set"; then
34730 echo $ECHO_N "(cached) $ECHO_C" >&6
34731else
ac1cb8d3 34732 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34733fi
34734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34736
34737fi
34738if test `eval echo '${'$as_ac_Header'}'` = yes; then
34739 cat >>confdefs.h <<_ACEOF
34740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34741_ACEOF
34742
34743fi
34744
34745done
34746
34747
34748 if test "$wxUSE_LIBSDL" != "no"; then
34749
34750# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34751if test "${with_sdl_prefix+set}" = set; then
34752 withval="$with_sdl_prefix"
34753 sdl_prefix="$withval"
34754else
34755 sdl_prefix=""
34756fi;
34757
34758# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34759if test "${with_sdl_exec_prefix+set}" = set; then
34760 withval="$with_sdl_exec_prefix"
34761 sdl_exec_prefix="$withval"
34762else
34763 sdl_exec_prefix=""
34764fi;
34765# Check whether --enable-sdltest or --disable-sdltest was given.
34766if test "${enable_sdltest+set}" = set; then
34767 enableval="$enable_sdltest"
34768
34769else
34770 enable_sdltest=yes
34771fi;
34772
34773 if test x$sdl_exec_prefix != x ; then
34774 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34775 if test x${SDL_CONFIG+set} != xset ; then
34776 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34777 fi
34778 fi
34779 if test x$sdl_prefix != x ; then
34780 sdl_args="$sdl_args --prefix=$sdl_prefix"
34781 if test x${SDL_CONFIG+set} != xset ; then
34782 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34783 fi
34784 fi
34785
34786
34787 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34788 # Extract the first word of "sdl-config", so it can be a program name with args.
34789set dummy sdl-config; ac_word=$2
34790echo "$as_me:$LINENO: checking for $ac_word" >&5
34791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34792if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34793 echo $ECHO_N "(cached) $ECHO_C" >&6
34794else
34795 case $SDL_CONFIG in
34796 [\\/]* | ?:[\\/]*)
34797 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34798 ;;
34799 *)
34800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34801for as_dir in $PATH
34802do
34803 IFS=$as_save_IFS
34804 test -z "$as_dir" && as_dir=.
34805 for ac_exec_ext in '' $ac_executable_extensions; do
34806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34807 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34809 break 2
34810 fi
34811done
34812done
34813
34814 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34815 ;;
34816esac
34817fi
34818SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34819
34820if test -n "$SDL_CONFIG"; then
34821 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34822echo "${ECHO_T}$SDL_CONFIG" >&6
34823else
34824 echo "$as_me:$LINENO: result: no" >&5
34825echo "${ECHO_T}no" >&6
34826fi
34827
34828 min_sdl_version=1.2.0
34829 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34830echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34831 no_sdl=""
34832 if test "$SDL_CONFIG" = "no" ; then
34833 no_sdl=yes
34834 else
34835 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34836 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34837
34838 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34839 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34840 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34841 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34842 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34843 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34844 if test "x$enable_sdltest" = "xyes" ; then
34845 ac_save_CFLAGS="$CFLAGS"
34846 ac_save_LIBS="$LIBS"
34847 CFLAGS="$CFLAGS $SDL_CFLAGS"
34848 LIBS="$LIBS $SDL_LIBS"
34849 rm -f conf.sdltest
34850 if test "$cross_compiling" = yes; then
34851 echo $ac_n "cross compiling; assumed OK... $ac_c"
34852else
34853 cat >conftest.$ac_ext <<_ACEOF
34854/* confdefs.h. */
34855_ACEOF
34856cat confdefs.h >>conftest.$ac_ext
34857cat >>conftest.$ac_ext <<_ACEOF
34858/* end confdefs.h. */
34859
34860#include <stdio.h>
34861#include <stdlib.h>
34862#include <string.h>
34863#include "SDL.h"
34864
34865char*
34866my_strdup (char *str)
34867{
34868 char *new_str;
34869
34870 if (str)
34871 {
34872 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34873 strcpy (new_str, str);
34874 }
34875 else
34876 new_str = NULL;
34877
34878 return new_str;
34879}
34880
34881int main (int argc, char *argv[])
34882{
34883 int major, minor, micro;
34884 char *tmp_version;
34885
34886 /* This hangs on some systems (?)
34887 system ("touch conf.sdltest");
34888 */
34889 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34890
34891 /* HP/UX 9 (%@#!) writes to sscanf strings */
34892 tmp_version = my_strdup("$min_sdl_version");
34893 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34894 printf("%s, bad version string\n", "$min_sdl_version");
34895 exit(1);
34896 }
34897
34898 if (($sdl_major_version > major) ||
34899 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34900 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34901 {
34902 return 0;
34903 }
34904 else
34905 {
34906 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34907 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34908 printf("*** best to upgrade to the required version.\n");
34909 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34910 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34911 printf("*** config.cache before re-running configure\n");
34912 return 1;
34913 }
34914}
34915
34916
34917_ACEOF
34918rm -f conftest$ac_exeext
34919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34920 (eval $ac_link) 2>&5
34921 ac_status=$?
34922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34925 (eval $ac_try) 2>&5
34926 ac_status=$?
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); }; }; then
34929 :
34930else
34931 echo "$as_me: program exited with status $ac_status" >&5
34932echo "$as_me: failed program was:" >&5
34933sed 's/^/| /' conftest.$ac_ext >&5
34934
34935( exit $ac_status )
34936no_sdl=yes
34937fi
ac1cb8d3 34938rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34939fi
34940 CFLAGS="$ac_save_CFLAGS"
34941 LIBS="$ac_save_LIBS"
34942 fi
34943 fi
34944 if test "x$no_sdl" = x ; then
34945 echo "$as_me:$LINENO: result: yes" >&5
34946echo "${ECHO_T}yes" >&6
34947
34948 EXTRALIBS_SDL="$SDL_LIBS"
34949 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34950 cat >>confdefs.h <<\_ACEOF
34951#define wxUSE_LIBSDL 1
34952_ACEOF
34953
34954
34955 else
34956 echo "$as_me:$LINENO: result: no" >&5
34957echo "${ECHO_T}no" >&6
34958 if test "$SDL_CONFIG" = "no" ; then
34959 echo "*** The sdl-config script installed by SDL could not be found"
34960 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34961 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34962 echo "*** full path to sdl-config."
34963 else
34964 if test -f conf.sdltest ; then
34965 :
34966 else
34967 echo "*** Could not run SDL test program, checking why..."
34968 CFLAGS="$CFLAGS $SDL_CFLAGS"
34969 LIBS="$LIBS $SDL_LIBS"
34970 cat >conftest.$ac_ext <<_ACEOF
34971/* confdefs.h. */
34972_ACEOF
34973cat confdefs.h >>conftest.$ac_ext
34974cat >>conftest.$ac_ext <<_ACEOF
34975/* end confdefs.h. */
34976
34977#include <stdio.h>
34978#include "SDL.h"
34979
34980int main(int argc, char *argv[])
34981{ return 0; }
34982#undef main
34983#define main K_and_R_C_main
34984
34985int
34986main ()
34987{
34988 return 0;
34989 ;
34990 return 0;
34991}
34992_ACEOF
34993rm -f conftest.$ac_objext conftest$ac_exeext
34994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34995 (eval $ac_link) 2>conftest.er1
a848cd7e 34996 ac_status=$?
ac1cb8d3
VS
34997 grep -v '^ *+' conftest.er1 >conftest.err
34998 rm -f conftest.er1
34999 cat conftest.err >&5
a848cd7e
SC
35000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); } &&
da4486fb 35002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35004 (eval $ac_try) 2>&5
35005 ac_status=$?
35006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007 (exit $ac_status); }; } &&
35008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35010 (eval $ac_try) 2>&5
35011 ac_status=$?
35012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013 (exit $ac_status); }; }; then
35014 echo "*** The test program compiled, but did not run. This usually means"
35015 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35016 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35017 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35018 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35019 echo "*** is required on your system"
35020 echo "***"
35021 echo "*** If you have an old version installed, it is best to remove it, although"
35022 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35023else
35024 echo "$as_me: failed program was:" >&5
35025sed 's/^/| /' conftest.$ac_ext >&5
35026
35027 echo "*** The test program failed to compile or link. See the file config.log for the"
35028 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35029 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35030 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35031fi
ac1cb8d3
VS
35032rm -f conftest.err conftest.$ac_objext \
35033 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35034 CFLAGS="$ac_save_CFLAGS"
35035 LIBS="$ac_save_LIBS"
35036 fi
35037 fi
35038 SDL_CFLAGS=""
35039 SDL_LIBS=""
35040 wxUSE_LIBSDL="no"
35041 fi
35042
35043
35044 rm -f conf.sdltest
35045
35046 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35047 WITH_PLUGIN_SDL=1
35048 fi
35049 fi
35050 fi
35051
35052 cat >>confdefs.h <<\_ACEOF
35053#define wxUSE_SOUND 1
35054_ACEOF
35055
35056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35057fi
35058
d1c38808
VZ
35059if test "$WXGTK20" = 1; then
35060 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35061 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
35062
35063
35064 succeeded=no
35065
35066 if test -z "$PKG_CONFIG"; then
35067 # Extract the first word of "pkg-config", so it can be a program name with args.
35068set dummy pkg-config; ac_word=$2
35069echo "$as_me:$LINENO: checking for $ac_word" >&5
35070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35071if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35072 echo $ECHO_N "(cached) $ECHO_C" >&6
35073else
35074 case $PKG_CONFIG in
35075 [\\/]* | ?:[\\/]*)
35076 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35077 ;;
35078 *)
35079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35080for as_dir in $PATH
35081do
35082 IFS=$as_save_IFS
35083 test -z "$as_dir" && as_dir=.
35084 for ac_exec_ext in '' $ac_executable_extensions; do
35085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35086 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35088 break 2
35089 fi
35090done
35091done
35092
35093 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
35094 ;;
35095esac
35096fi
35097PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35098
35099if test -n "$PKG_CONFIG"; then
35100 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35101echo "${ECHO_T}$PKG_CONFIG" >&6
35102else
35103 echo "$as_me:$LINENO: result: no" >&5
35104echo "${ECHO_T}no" >&6
35105fi
35106
35107 fi
35108
35109 if test "$PKG_CONFIG" = "no" ; then
35110 echo "*** The pkg-config script could not be found. Make sure it is"
35111 echo "*** in your path, or set the PKG_CONFIG environment variable"
35112 echo "*** to the full path to pkg-config."
35113 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
35114 else
35115 PKG_CONFIG_MIN_VERSION=0.9.0
35116 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
35117 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
35118echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 35119
ffa762ff 35120 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
35121 echo "$as_me:$LINENO: result: yes" >&5
35122echo "${ECHO_T}yes" >&6
35123 succeeded=yes
35124
35125 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
35126echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 35127 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35128 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
35129echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
35130
35131 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
35132echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 35133 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35134 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
35135echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
35136 else
35137 LIBGNOMEPRINTUI_CFLAGS=""
35138 LIBGNOMEPRINTUI_LIBS=""
35139 ## If we have a custom action on failure, don't print errors, but
35140 ## do set a variable so people can do so.
ffa762ff 35141 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35142
35143 fi
35144
35145
35146
35147 else
35148 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35149 echo "*** See http://www.freedesktop.org/software/pkgconfig"
35150 fi
35151 fi
35152
35153 if test $succeeded = yes; then
35154
d1c38808
VZ
35155 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35156 cat >>confdefs.h <<\_ACEOF
35157#define wxUSE_LIBGNOMEPRINT 1
35158_ACEOF
35159
35160
35161 else
35162
35163 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35164echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35165 wxUSE_LIBGNOMEPRINT="no"
35166
35167
35168 fi
35169
35170 fi
35171 fi
35172fi
35173
35174
a848cd7e
SC
35175if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35176 cat >>confdefs.h <<\_ACEOF
35177#define wxUSE_CMDLINE_PARSER 1
35178_ACEOF
35179
35180fi
35181
35182if test "$wxUSE_STOPWATCH" = "yes"; then
35183 cat >>confdefs.h <<\_ACEOF
35184#define wxUSE_STOPWATCH 1
35185_ACEOF
35186
35187fi
35188
35189if test "$wxUSE_DATETIME" = "yes"; then
35190 cat >>confdefs.h <<\_ACEOF
35191#define wxUSE_DATETIME 1
35192_ACEOF
35193
35194fi
35195
35196if test "$wxUSE_FILE" = "yes"; then
35197 cat >>confdefs.h <<\_ACEOF
35198#define wxUSE_FILE 1
35199_ACEOF
35200
35201fi
35202
35203if test "$wxUSE_FFILE" = "yes"; then
35204 cat >>confdefs.h <<\_ACEOF
35205#define wxUSE_FFILE 1
35206_ACEOF
35207
35208fi
35209
35210if test "$wxUSE_FILESYSTEM" = "yes"; then
35211 cat >>confdefs.h <<\_ACEOF
35212#define wxUSE_FILESYSTEM 1
35213_ACEOF
35214
35215fi
35216
35217if test "$wxUSE_FS_ZIP" = "yes"; then
35218 cat >>confdefs.h <<\_ACEOF
35219#define wxUSE_FS_ZIP 1
35220_ACEOF
35221
35222fi
35223
35224if test "$wxUSE_ZIPSTREAM" = "yes"; then
35225 cat >>confdefs.h <<\_ACEOF
35226#define wxUSE_ZIPSTREAM 1
35227_ACEOF
35228
35229fi
35230
a848cd7e
SC
35231if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35232 cat >>confdefs.h <<\_ACEOF
35233#define wxUSE_ON_FATAL_EXCEPTION 1
35234_ACEOF
35235
35236fi
35237
eaff0f0d
VZ
35238if test "$wxUSE_STACKWALKER" = "yes"; then
35239 cat >>confdefs.h <<\_ACEOF
35240#define wxUSE_STACKWALKER 1
35241_ACEOF
35242
35243fi
35244
a848cd7e
SC
35245if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35246 cat >>confdefs.h <<\_ACEOF
35247#define wxUSE_SNGLINST_CHECKER 1
35248_ACEOF
35249
35250fi
35251
35252if test "$wxUSE_BUSYINFO" = "yes"; then
35253 cat >>confdefs.h <<\_ACEOF
35254#define wxUSE_BUSYINFO 1
35255_ACEOF
35256
35257fi
35258
35259if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35260 cat >>confdefs.h <<\_ACEOF
35261#define wxUSE_STD_IOSTREAM 1
35262_ACEOF
35263
35264fi
35265
35266if test "$wxUSE_TEXTBUFFER" = "yes"; then
35267 cat >>confdefs.h <<\_ACEOF
35268#define wxUSE_TEXTBUFFER 1
35269_ACEOF
35270
35271fi
35272
35273if test "$wxUSE_TEXTFILE" = "yes"; then
35274 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35275 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35276echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35277 else
35278 cat >>confdefs.h <<\_ACEOF
35279#define wxUSE_TEXTFILE 1
35280_ACEOF
35281
35282 fi
35283fi
35284
35285if test "$wxUSE_CONFIG" = "yes" ; then
35286 if test "$wxUSE_TEXTFILE" != "yes"; then
35287 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35288echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35289 else
35290 cat >>confdefs.h <<\_ACEOF
35291#define wxUSE_CONFIG 1
35292_ACEOF
35293
35294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35295 fi
35296fi
35297
35298if test "$wxUSE_INTL" = "yes" ; then
35299 if test "$wxUSE_FILE" != "yes"; then
35300 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35301echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35302 else
35303 cat >>confdefs.h <<\_ACEOF
35304#define wxUSE_INTL 1
35305_ACEOF
35306
35307 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35308 GUIDIST="$GUIDIST INTL_DIST"
35309 fi
35310fi
35311
35312if test "$wxUSE_LOG" = "yes"; then
35313 cat >>confdefs.h <<\_ACEOF
35314#define wxUSE_LOG 1
35315_ACEOF
35316
35317
35318 if test "$wxUSE_LOGGUI" = "yes"; then
35319 cat >>confdefs.h <<\_ACEOF
35320#define wxUSE_LOGGUI 1
35321_ACEOF
35322
35323 fi
35324
35325 if test "$wxUSE_LOGWINDOW" = "yes"; then
35326 cat >>confdefs.h <<\_ACEOF
35327#define wxUSE_LOGWINDOW 1
35328_ACEOF
35329
35330 fi
35331
35332 if test "$wxUSE_LOGDIALOG" = "yes"; then
35333 cat >>confdefs.h <<\_ACEOF
35334#define wxUSE_LOG_DIALOG 1
35335_ACEOF
35336
35337 fi
35338fi
35339
35340if test "$wxUSE_LONGLONG" = "yes"; then
35341 cat >>confdefs.h <<\_ACEOF
35342#define wxUSE_LONGLONG 1
35343_ACEOF
35344
35345fi
35346
35347if test "$wxUSE_GEOMETRY" = "yes"; then
35348 cat >>confdefs.h <<\_ACEOF
35349#define wxUSE_GEOMETRY 1
35350_ACEOF
35351
35352fi
35353
35354if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
35355 cat >>confdefs.h <<\_ACEOF
35356#define wxUSE_DIALUP_MANAGER 1
35357_ACEOF
35358
35359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
35360fi
35361
35362if test "$wxUSE_STREAMS" = "yes" ; then
35363 cat >>confdefs.h <<\_ACEOF
35364#define wxUSE_STREAMS 1
35365_ACEOF
35366
35367fi
35368
35369
35370if test "$wxUSE_DATETIME" = "yes"; then
35371
35372for ac_func in strptime
35373do
35374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35375echo "$as_me:$LINENO: checking for $ac_func" >&5
35376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35377if eval "test \"\${$as_ac_var+set}\" = set"; then
35378 echo $ECHO_N "(cached) $ECHO_C" >&6
35379else
35380 cat >conftest.$ac_ext <<_ACEOF
35381/* confdefs.h. */
35382_ACEOF
35383cat confdefs.h >>conftest.$ac_ext
35384cat >>conftest.$ac_ext <<_ACEOF
35385/* end confdefs.h. */
ac1cb8d3
VS
35386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35388#define $ac_func innocuous_$ac_func
35389
a848cd7e
SC
35390/* System header to define __stub macros and hopefully few prototypes,
35391 which can conflict with char $ac_func (); below.
35392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35393 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35394
a848cd7e
SC
35395#ifdef __STDC__
35396# include <limits.h>
35397#else
35398# include <assert.h>
35399#endif
ac1cb8d3
VS
35400
35401#undef $ac_func
35402
a848cd7e
SC
35403/* Override any gcc2 internal prototype to avoid an error. */
35404#ifdef __cplusplus
35405extern "C"
35406{
35407#endif
35408/* We use char because int might match the return type of a gcc2
35409 builtin and then its argument prototype would still apply. */
35410char $ac_func ();
35411/* The GNU C library defines this for functions which it implements
35412 to always fail with ENOSYS. Some functions are actually named
35413 something starting with __ and the normal name is an alias. */
35414#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35415choke me
35416#else
35417char (*f) () = $ac_func;
35418#endif
35419#ifdef __cplusplus
35420}
35421#endif
35422
35423int
35424main ()
35425{
35426return f != $ac_func;
35427 ;
35428 return 0;
35429}
35430_ACEOF
35431rm -f conftest.$ac_objext conftest$ac_exeext
35432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35433 (eval $ac_link) 2>conftest.er1
a848cd7e 35434 ac_status=$?
ac1cb8d3
VS
35435 grep -v '^ *+' conftest.er1 >conftest.err
35436 rm -f conftest.er1
35437 cat conftest.err >&5
a848cd7e
SC
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); } &&
da4486fb 35440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35442 (eval $ac_try) 2>&5
35443 ac_status=$?
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); }; } &&
35446 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35448 (eval $ac_try) 2>&5
35449 ac_status=$?
35450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451 (exit $ac_status); }; }; then
35452 eval "$as_ac_var=yes"
35453else
35454 echo "$as_me: failed program was:" >&5
35455sed 's/^/| /' conftest.$ac_ext >&5
35456
35457eval "$as_ac_var=no"
35458fi
ac1cb8d3
VS
35459rm -f conftest.err conftest.$ac_objext \
35460 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35461fi
35462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35463echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35464if test `eval echo '${'$as_ac_var'}'` = yes; then
35465 cat >>confdefs.h <<_ACEOF
35466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35467_ACEOF
35468
35469fi
35470done
35471
35472
35473 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35474echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35475if test "${wx_cv_var_timezone+set}" = set; then
35476 echo $ECHO_N "(cached) $ECHO_C" >&6
35477else
35478
35479 cat >conftest.$ac_ext <<_ACEOF
35480/* confdefs.h. */
35481_ACEOF
35482cat confdefs.h >>conftest.$ac_ext
35483cat >>conftest.$ac_ext <<_ACEOF
35484/* end confdefs.h. */
35485
35486 #include <time.h>
35487
35488int
35489main ()
35490{
35491
35492 int tz;
35493 tz = timezone;
35494
35495 ;
35496 return 0;
35497}
35498_ACEOF
35499rm -f conftest.$ac_objext
35500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35501 (eval $ac_compile) 2>conftest.er1
a848cd7e 35502 ac_status=$?
ac1cb8d3
VS
35503 grep -v '^ *+' conftest.er1 >conftest.err
35504 rm -f conftest.er1
35505 cat conftest.err >&5
a848cd7e
SC
35506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507 (exit $ac_status); } &&
da4486fb 35508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35510 (eval $ac_try) 2>&5
35511 ac_status=$?
35512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35513 (exit $ac_status); }; } &&
35514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35516 (eval $ac_try) 2>&5
35517 ac_status=$?
35518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35519 (exit $ac_status); }; }; then
35520
35521 wx_cv_var_timezone=timezone
35522
35523else
35524 echo "$as_me: failed program was:" >&5
35525sed 's/^/| /' conftest.$ac_ext >&5
35526
35527
35528 cat >conftest.$ac_ext <<_ACEOF
35529/* confdefs.h. */
35530_ACEOF
35531cat confdefs.h >>conftest.$ac_ext
35532cat >>conftest.$ac_ext <<_ACEOF
35533/* end confdefs.h. */
35534
35535 #include <time.h>
35536
35537int
35538main ()
35539{
35540
35541 int tz;
35542 tz = _timezone;
35543
35544 ;
35545 return 0;
35546}
35547_ACEOF
35548rm -f conftest.$ac_objext
35549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35550 (eval $ac_compile) 2>conftest.er1
a848cd7e 35551 ac_status=$?
ac1cb8d3
VS
35552 grep -v '^ *+' conftest.er1 >conftest.err
35553 rm -f conftest.er1
35554 cat conftest.err >&5
a848cd7e
SC
35555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35556 (exit $ac_status); } &&
da4486fb 35557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35559 (eval $ac_try) 2>&5
35560 ac_status=$?
35561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562 (exit $ac_status); }; } &&
35563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565 (eval $ac_try) 2>&5
35566 ac_status=$?
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); }; }; then
35569
35570 wx_cv_var_timezone=_timezone
35571
35572else
35573 echo "$as_me: failed program was:" >&5
35574sed 's/^/| /' conftest.$ac_ext >&5
35575
35576
35577 cat >conftest.$ac_ext <<_ACEOF
35578/* confdefs.h. */
35579_ACEOF
35580cat confdefs.h >>conftest.$ac_ext
35581cat >>conftest.$ac_ext <<_ACEOF
35582/* end confdefs.h. */
35583
35584 #include <time.h>
35585
35586int
35587main ()
35588{
35589
35590 int tz;
35591 tz = __timezone;
35592
35593 ;
35594 return 0;
35595}
35596_ACEOF
35597rm -f conftest.$ac_objext
35598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35599 (eval $ac_compile) 2>conftest.er1
a848cd7e 35600 ac_status=$?
ac1cb8d3
VS
35601 grep -v '^ *+' conftest.er1 >conftest.err
35602 rm -f conftest.er1
35603 cat conftest.err >&5
a848cd7e
SC
35604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35605 (exit $ac_status); } &&
da4486fb 35606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35608 (eval $ac_try) 2>&5
35609 ac_status=$?
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); }; } &&
35612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35614 (eval $ac_try) 2>&5
35615 ac_status=$?
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); }; }; then
35618
35619 wx_cv_var_timezone=__timezone
35620
35621else
35622 echo "$as_me: failed program was:" >&5
35623sed 's/^/| /' conftest.$ac_ext >&5
35624
35625
35626 if test "$USE_DOS" = 0 ; then
35627 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35628echo "$as_me: WARNING: no timezone variable" >&2;}
35629 fi
35630
35631
35632fi
ac1cb8d3 35633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35634
35635
35636fi
ac1cb8d3 35637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35638
35639
35640fi
ac1cb8d3 35641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35642
35643
35644fi
35645echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35646echo "${ECHO_T}$wx_cv_var_timezone" >&6
35647
35648 if test "x$wx_cv_var_timezone" != x ; then
35649 cat >>confdefs.h <<_ACEOF
35650#define WX_TIMEZONE $wx_cv_var_timezone
35651_ACEOF
35652
35653 fi
35654
35655
35656for ac_func in localtime
35657do
35658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35659echo "$as_me:$LINENO: checking for $ac_func" >&5
35660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35661if eval "test \"\${$as_ac_var+set}\" = set"; then
35662 echo $ECHO_N "(cached) $ECHO_C" >&6
35663else
35664 cat >conftest.$ac_ext <<_ACEOF
35665/* confdefs.h. */
35666_ACEOF
35667cat confdefs.h >>conftest.$ac_ext
35668cat >>conftest.$ac_ext <<_ACEOF
35669/* end confdefs.h. */
ac1cb8d3
VS
35670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35672#define $ac_func innocuous_$ac_func
35673
a848cd7e
SC
35674/* System header to define __stub macros and hopefully few prototypes,
35675 which can conflict with char $ac_func (); below.
35676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35677 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35678
a848cd7e
SC
35679#ifdef __STDC__
35680# include <limits.h>
35681#else
35682# include <assert.h>
35683#endif
ac1cb8d3
VS
35684
35685#undef $ac_func
35686
a848cd7e
SC
35687/* Override any gcc2 internal prototype to avoid an error. */
35688#ifdef __cplusplus
35689extern "C"
35690{
35691#endif
35692/* We use char because int might match the return type of a gcc2
35693 builtin and then its argument prototype would still apply. */
35694char $ac_func ();
35695/* The GNU C library defines this for functions which it implements
35696 to always fail with ENOSYS. Some functions are actually named
35697 something starting with __ and the normal name is an alias. */
35698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35699choke me
35700#else
35701char (*f) () = $ac_func;
35702#endif
35703#ifdef __cplusplus
35704}
35705#endif
35706
35707int
35708main ()
35709{
35710return f != $ac_func;
35711 ;
35712 return 0;
35713}
35714_ACEOF
35715rm -f conftest.$ac_objext conftest$ac_exeext
35716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35717 (eval $ac_link) 2>conftest.er1
a848cd7e 35718 ac_status=$?
ac1cb8d3
VS
35719 grep -v '^ *+' conftest.er1 >conftest.err
35720 rm -f conftest.er1
35721 cat conftest.err >&5
a848cd7e
SC
35722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723 (exit $ac_status); } &&
da4486fb 35724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35726 (eval $ac_try) 2>&5
35727 ac_status=$?
35728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729 (exit $ac_status); }; } &&
35730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35732 (eval $ac_try) 2>&5
35733 ac_status=$?
35734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35735 (exit $ac_status); }; }; then
35736 eval "$as_ac_var=yes"
35737else
35738 echo "$as_me: failed program was:" >&5
35739sed 's/^/| /' conftest.$ac_ext >&5
35740
35741eval "$as_ac_var=no"
35742fi
ac1cb8d3
VS
35743rm -f conftest.err conftest.$ac_objext \
35744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35745fi
35746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35747echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35748if test `eval echo '${'$as_ac_var'}'` = yes; then
35749 cat >>confdefs.h <<_ACEOF
35750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35751_ACEOF
35752
35753fi
35754done
35755
35756
35757 if test "$ac_cv_func_localtime" = "yes"; then
35758 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35759echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35760if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35761 echo $ECHO_N "(cached) $ECHO_C" >&6
35762else
35763
35764 cat >conftest.$ac_ext <<_ACEOF
35765/* confdefs.h. */
35766_ACEOF
35767cat confdefs.h >>conftest.$ac_ext
35768cat >>conftest.$ac_ext <<_ACEOF
35769/* end confdefs.h. */
35770
35771 #include <time.h>
35772
35773int
35774main ()
35775{
35776
35777 struct tm tm;
35778 tm.tm_gmtoff++;
35779
35780 ;
35781 return 0;
35782}
35783_ACEOF
35784rm -f conftest.$ac_objext
35785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35786 (eval $ac_compile) 2>conftest.er1
a848cd7e 35787 ac_status=$?
ac1cb8d3
VS
35788 grep -v '^ *+' conftest.er1 >conftest.err
35789 rm -f conftest.er1
35790 cat conftest.err >&5
a848cd7e
SC
35791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35792 (exit $ac_status); } &&
da4486fb 35793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35795 (eval $ac_try) 2>&5
35796 ac_status=$?
35797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35798 (exit $ac_status); }; } &&
35799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35801 (eval $ac_try) 2>&5
35802 ac_status=$?
35803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804 (exit $ac_status); }; }; then
35805
35806 wx_cv_struct_tm_has_gmtoff=yes
35807
35808else
35809 echo "$as_me: failed program was:" >&5
35810sed 's/^/| /' conftest.$ac_ext >&5
35811
35812wx_cv_struct_tm_has_gmtoff=no
35813
35814fi
ac1cb8d3 35815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35816
35817fi
35818echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35819echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35820 fi
35821
35822 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35823 cat >>confdefs.h <<\_ACEOF
35824#define WX_GMTOFF_IN_TM 1
35825_ACEOF
35826
35827 fi
35828
35829
35830
35831for ac_func in gettimeofday ftime
35832do
35833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35834echo "$as_me:$LINENO: checking for $ac_func" >&5
35835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35836if eval "test \"\${$as_ac_var+set}\" = set"; then
35837 echo $ECHO_N "(cached) $ECHO_C" >&6
35838else
35839 cat >conftest.$ac_ext <<_ACEOF
35840/* confdefs.h. */
35841_ACEOF
35842cat confdefs.h >>conftest.$ac_ext
35843cat >>conftest.$ac_ext <<_ACEOF
35844/* end confdefs.h. */
ac1cb8d3
VS
35845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35847#define $ac_func innocuous_$ac_func
35848
a848cd7e
SC
35849/* System header to define __stub macros and hopefully few prototypes,
35850 which can conflict with char $ac_func (); below.
35851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35852 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35853
a848cd7e
SC
35854#ifdef __STDC__
35855# include <limits.h>
35856#else
35857# include <assert.h>
35858#endif
ac1cb8d3
VS
35859
35860#undef $ac_func
35861
a848cd7e
SC
35862/* Override any gcc2 internal prototype to avoid an error. */
35863#ifdef __cplusplus
35864extern "C"
35865{
35866#endif
35867/* We use char because int might match the return type of a gcc2
35868 builtin and then its argument prototype would still apply. */
35869char $ac_func ();
35870/* The GNU C library defines this for functions which it implements
35871 to always fail with ENOSYS. Some functions are actually named
35872 something starting with __ and the normal name is an alias. */
35873#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35874choke me
35875#else
35876char (*f) () = $ac_func;
35877#endif
35878#ifdef __cplusplus
35879}
35880#endif
35881
35882int
35883main ()
35884{
35885return f != $ac_func;
35886 ;
35887 return 0;
35888}
35889_ACEOF
35890rm -f conftest.$ac_objext conftest$ac_exeext
35891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35892 (eval $ac_link) 2>conftest.er1
a848cd7e 35893 ac_status=$?
ac1cb8d3
VS
35894 grep -v '^ *+' conftest.er1 >conftest.err
35895 rm -f conftest.er1
35896 cat conftest.err >&5
a848cd7e
SC
35897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); } &&
da4486fb 35899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35901 (eval $ac_try) 2>&5
35902 ac_status=$?
35903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904 (exit $ac_status); }; } &&
35905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35907 (eval $ac_try) 2>&5
35908 ac_status=$?
35909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910 (exit $ac_status); }; }; then
35911 eval "$as_ac_var=yes"
35912else
35913 echo "$as_me: failed program was:" >&5
35914sed 's/^/| /' conftest.$ac_ext >&5
35915
35916eval "$as_ac_var=no"
35917fi
ac1cb8d3
VS
35918rm -f conftest.err conftest.$ac_objext \
35919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35920fi
35921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35923if test `eval echo '${'$as_ac_var'}'` = yes; then
35924 cat >>confdefs.h <<_ACEOF
35925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35926_ACEOF
35927 break
35928fi
35929done
35930
35931
35932 if test "$ac_cv_func_gettimeofday" = "yes"; then
35933 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35934echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35935if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35936 echo $ECHO_N "(cached) $ECHO_C" >&6
35937else
35938
35939
35940
35941 ac_ext=cc
35942ac_cpp='$CXXCPP $CPPFLAGS'
35943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35946
35947
35948 cat >conftest.$ac_ext <<_ACEOF
35949/* confdefs.h. */
35950_ACEOF
35951cat confdefs.h >>conftest.$ac_ext
35952cat >>conftest.$ac_ext <<_ACEOF
35953/* end confdefs.h. */
35954
35955 #include <sys/time.h>
35956 #include <unistd.h>
35957
35958int
35959main ()
35960{
35961
35962 struct timeval tv;
35963 gettimeofday(&tv, NULL);
35964
35965 ;
35966 return 0;
35967}
35968_ACEOF
35969rm -f conftest.$ac_objext
35970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35971 (eval $ac_compile) 2>conftest.er1
a848cd7e 35972 ac_status=$?
ac1cb8d3
VS
35973 grep -v '^ *+' conftest.er1 >conftest.err
35974 rm -f conftest.er1
35975 cat conftest.err >&5
a848cd7e
SC
35976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977 (exit $ac_status); } &&
da4486fb 35978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35980 (eval $ac_try) 2>&5
35981 ac_status=$?
35982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983 (exit $ac_status); }; } &&
35984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35986 (eval $ac_try) 2>&5
35987 ac_status=$?
35988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35989 (exit $ac_status); }; }; then
35990 wx_cv_func_gettimeofday_has_2_args=yes
35991else
35992 echo "$as_me: failed program was:" >&5
35993sed 's/^/| /' conftest.$ac_ext >&5
35994
35995cat >conftest.$ac_ext <<_ACEOF
35996/* confdefs.h. */
35997_ACEOF
35998cat confdefs.h >>conftest.$ac_ext
35999cat >>conftest.$ac_ext <<_ACEOF
36000/* end confdefs.h. */
36001
36002 #include <sys/time.h>
36003 #include <unistd.h>
36004
36005int
36006main ()
36007{
36008
36009 struct timeval tv;
36010 gettimeofday(&tv);
36011
36012 ;
36013 return 0;
36014}
36015_ACEOF
36016rm -f conftest.$ac_objext
36017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36018 (eval $ac_compile) 2>conftest.er1
a848cd7e 36019 ac_status=$?
ac1cb8d3
VS
36020 grep -v '^ *+' conftest.er1 >conftest.err
36021 rm -f conftest.er1
36022 cat conftest.err >&5
a848cd7e
SC
36023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024 (exit $ac_status); } &&
da4486fb 36025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36027 (eval $ac_try) 2>&5
36028 ac_status=$?
36029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36030 (exit $ac_status); }; } &&
36031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36033 (eval $ac_try) 2>&5
36034 ac_status=$?
36035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36036 (exit $ac_status); }; }; then
36037 wx_cv_func_gettimeofday_has_2_args=no
36038else
36039 echo "$as_me: failed program was:" >&5
36040sed 's/^/| /' conftest.$ac_ext >&5
36041
36042
36043 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36044echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36045 wx_cv_func_gettimeofday_has_2_args=unknown
36046
36047
36048fi
ac1cb8d3 36049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36050
36051fi
ac1cb8d3 36052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36053 ac_ext=c
36054ac_cpp='$CPP $CPPFLAGS'
36055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36057ac_compiler_gnu=$ac_cv_c_compiler_gnu
36058
36059
36060fi
36061echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36062echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36063
36064 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36065 cat >>confdefs.h <<\_ACEOF
36066#define WX_GETTIMEOFDAY_NO_TZ 1
36067_ACEOF
36068
36069 fi
36070 fi
36071
36072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36073fi
36074
36075
36076if test "$wxUSE_SOCKETS" = "yes"; then
36077 if test "$wxUSE_MGL" = "1"; then
36078 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36079echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36080 wxUSE_SOCKETS="no"
36081 fi
36082fi
36083
36084if test "$wxUSE_SOCKETS" = "yes"; then
36085 if test "$TOOLKIT" != "MSW"; then
36086 echo "$as_me:$LINENO: checking for socket" >&5
36087echo $ECHO_N "checking for socket... $ECHO_C" >&6
36088if test "${ac_cv_func_socket+set}" = set; then
36089 echo $ECHO_N "(cached) $ECHO_C" >&6
36090else
36091 cat >conftest.$ac_ext <<_ACEOF
36092/* confdefs.h. */
36093_ACEOF
36094cat confdefs.h >>conftest.$ac_ext
36095cat >>conftest.$ac_ext <<_ACEOF
36096/* end confdefs.h. */
ac1cb8d3
VS
36097/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36099#define socket innocuous_socket
36100
a848cd7e
SC
36101/* System header to define __stub macros and hopefully few prototypes,
36102 which can conflict with char socket (); below.
36103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36104 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36105
a848cd7e
SC
36106#ifdef __STDC__
36107# include <limits.h>
36108#else
36109# include <assert.h>
36110#endif
ac1cb8d3
VS
36111
36112#undef socket
36113
a848cd7e
SC
36114/* Override any gcc2 internal prototype to avoid an error. */
36115#ifdef __cplusplus
36116extern "C"
36117{
36118#endif
36119/* We use char because int might match the return type of a gcc2
36120 builtin and then its argument prototype would still apply. */
36121char socket ();
36122/* The GNU C library defines this for functions which it implements
36123 to always fail with ENOSYS. Some functions are actually named
36124 something starting with __ and the normal name is an alias. */
36125#if defined (__stub_socket) || defined (__stub___socket)
36126choke me
36127#else
36128char (*f) () = socket;
36129#endif
36130#ifdef __cplusplus
36131}
36132#endif
36133
36134int
36135main ()
36136{
36137return f != socket;
36138 ;
36139 return 0;
36140}
36141_ACEOF
36142rm -f conftest.$ac_objext conftest$ac_exeext
36143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36144 (eval $ac_link) 2>conftest.er1
a848cd7e 36145 ac_status=$?
ac1cb8d3
VS
36146 grep -v '^ *+' conftest.er1 >conftest.err
36147 rm -f conftest.er1
36148 cat conftest.err >&5
a848cd7e
SC
36149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 (exit $ac_status); } &&
da4486fb 36151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36153 (eval $ac_try) 2>&5
36154 ac_status=$?
36155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36156 (exit $ac_status); }; } &&
36157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36159 (eval $ac_try) 2>&5
36160 ac_status=$?
36161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162 (exit $ac_status); }; }; then
36163 ac_cv_func_socket=yes
36164else
36165 echo "$as_me: failed program was:" >&5
36166sed 's/^/| /' conftest.$ac_ext >&5
36167
36168ac_cv_func_socket=no
36169fi
ac1cb8d3
VS
36170rm -f conftest.err conftest.$ac_objext \
36171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36172fi
36173echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36174echo "${ECHO_T}$ac_cv_func_socket" >&6
36175if test $ac_cv_func_socket = yes; then
36176 :
36177else
36178
36179 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36180echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36181if test "${ac_cv_lib_socket_socket+set}" = set; then
36182 echo $ECHO_N "(cached) $ECHO_C" >&6
36183else
36184 ac_check_lib_save_LIBS=$LIBS
36185LIBS="-lsocket $LIBS"
36186cat >conftest.$ac_ext <<_ACEOF
36187/* confdefs.h. */
36188_ACEOF
36189cat confdefs.h >>conftest.$ac_ext
36190cat >>conftest.$ac_ext <<_ACEOF
36191/* end confdefs.h. */
36192
36193/* Override any gcc2 internal prototype to avoid an error. */
36194#ifdef __cplusplus
36195extern "C"
36196#endif
36197/* We use char because int might match the return type of a gcc2
36198 builtin and then its argument prototype would still apply. */
36199char socket ();
36200int
36201main ()
36202{
36203socket ();
36204 ;
36205 return 0;
36206}
36207_ACEOF
36208rm -f conftest.$ac_objext conftest$ac_exeext
36209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36210 (eval $ac_link) 2>conftest.er1
a848cd7e 36211 ac_status=$?
ac1cb8d3
VS
36212 grep -v '^ *+' conftest.er1 >conftest.err
36213 rm -f conftest.er1
36214 cat conftest.err >&5
a848cd7e
SC
36215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36216 (exit $ac_status); } &&
da4486fb 36217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36219 (eval $ac_try) 2>&5
36220 ac_status=$?
36221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36222 (exit $ac_status); }; } &&
36223 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36225 (eval $ac_try) 2>&5
36226 ac_status=$?
36227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); }; }; then
36229 ac_cv_lib_socket_socket=yes
36230else
36231 echo "$as_me: failed program was:" >&5
36232sed 's/^/| /' conftest.$ac_ext >&5
36233
36234ac_cv_lib_socket_socket=no
36235fi
ac1cb8d3
VS
36236rm -f conftest.err conftest.$ac_objext \
36237 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36238LIBS=$ac_check_lib_save_LIBS
36239fi
36240echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36241echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36242if test $ac_cv_lib_socket_socket = yes; then
36243 if test "$INET_LINK" != " -lsocket"; then
36244 INET_LINK="$INET_LINK -lsocket"
36245 fi
36246else
36247
36248 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36249echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36250 wxUSE_SOCKETS=no
36251
36252
36253fi
36254
36255
36256
36257fi
36258
36259 fi
36260fi
36261
36262if test "$wxUSE_SOCKETS" = "yes" ; then
36263 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36264 ac_ext=cc
36265ac_cpp='$CXXCPP $CPPFLAGS'
36266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36269
36270 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36271echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36272if test "${wx_cv_type_getsockname3+set}" = set; then
36273 echo $ECHO_N "(cached) $ECHO_C" >&6
36274else
36275
36276 cat >conftest.$ac_ext <<_ACEOF
36277/* confdefs.h. */
36278_ACEOF
36279cat confdefs.h >>conftest.$ac_ext
36280cat >>conftest.$ac_ext <<_ACEOF
36281/* end confdefs.h. */
36282
36283 #include <sys/types.h>
36284 #include <sys/socket.h>
36285
36286int
36287main ()
36288{
36289
36290 socklen_t len;
36291 getsockname(0, 0, &len);
36292
36293 ;
36294 return 0;
36295}
36296_ACEOF
36297rm -f conftest.$ac_objext
36298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36299 (eval $ac_compile) 2>conftest.er1
a848cd7e 36300 ac_status=$?
ac1cb8d3
VS
36301 grep -v '^ *+' conftest.er1 >conftest.err
36302 rm -f conftest.er1
36303 cat conftest.err >&5
a848cd7e
SC
36304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36305 (exit $ac_status); } &&
da4486fb 36306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36308 (eval $ac_try) 2>&5
36309 ac_status=$?
36310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36311 (exit $ac_status); }; } &&
36312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36314 (eval $ac_try) 2>&5
36315 ac_status=$?
36316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36317 (exit $ac_status); }; }; then
36318 wx_cv_type_getsockname3=socklen_t
36319else
36320 echo "$as_me: failed program was:" >&5
36321sed 's/^/| /' conftest.$ac_ext >&5
36322
36323
36324 CFLAGS_OLD="$CFLAGS"
36325 if test "$GCC" = yes ; then
36326 CFLAGS="$CFLAGS -Werror"
36327 fi
36328
36329 cat >conftest.$ac_ext <<_ACEOF
36330/* confdefs.h. */
36331_ACEOF
36332cat confdefs.h >>conftest.$ac_ext
36333cat >>conftest.$ac_ext <<_ACEOF
36334/* end confdefs.h. */
36335
36336 #include <sys/types.h>
36337 #include <sys/socket.h>
36338
36339int
36340main ()
36341{
36342
36343 size_t len;
36344 getsockname(0, 0, &len);
36345
36346 ;
36347 return 0;
36348}
36349_ACEOF
36350rm -f conftest.$ac_objext
36351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36352 (eval $ac_compile) 2>conftest.er1
a848cd7e 36353 ac_status=$?
ac1cb8d3
VS
36354 grep -v '^ *+' conftest.er1 >conftest.err
36355 rm -f conftest.er1
36356 cat conftest.err >&5
a848cd7e
SC
36357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36358 (exit $ac_status); } &&
da4486fb 36359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36361 (eval $ac_try) 2>&5
36362 ac_status=$?
36363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36364 (exit $ac_status); }; } &&
36365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36367 (eval $ac_try) 2>&5
36368 ac_status=$?
36369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370 (exit $ac_status); }; }; then
36371 wx_cv_type_getsockname3=size_t
36372else
36373 echo "$as_me: failed program was:" >&5
36374sed 's/^/| /' conftest.$ac_ext >&5
36375
36376cat >conftest.$ac_ext <<_ACEOF
36377/* confdefs.h. */
36378_ACEOF
36379cat confdefs.h >>conftest.$ac_ext
36380cat >>conftest.$ac_ext <<_ACEOF
36381/* end confdefs.h. */
36382
36383 #include <sys/types.h>
36384 #include <sys/socket.h>
36385
36386int
36387main ()
36388{
36389
36390 int len;
36391 getsockname(0, 0, &len);
36392
36393 ;
36394 return 0;
36395}
36396_ACEOF
36397rm -f conftest.$ac_objext
36398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36399 (eval $ac_compile) 2>conftest.er1
a848cd7e 36400 ac_status=$?
ac1cb8d3
VS
36401 grep -v '^ *+' conftest.er1 >conftest.err
36402 rm -f conftest.er1
36403 cat conftest.err >&5
a848cd7e
SC
36404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); } &&
da4486fb 36406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36408 (eval $ac_try) 2>&5
36409 ac_status=$?
36410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411 (exit $ac_status); }; } &&
36412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36414 (eval $ac_try) 2>&5
36415 ac_status=$?
36416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36417 (exit $ac_status); }; }; then
36418 wx_cv_type_getsockname3=int
36419else
36420 echo "$as_me: failed program was:" >&5
36421sed 's/^/| /' conftest.$ac_ext >&5
36422
36423wx_cv_type_getsockname3=unknown
36424
36425fi
ac1cb8d3 36426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36427
36428fi
ac1cb8d3 36429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36430
36431 CFLAGS="$CFLAGS_OLD"
36432
36433
36434fi
ac1cb8d3 36435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36436
36437fi
36438echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36439echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36440
36441 if test "$wx_cv_type_getsockname3" = "unknown"; then
36442 wxUSE_SOCKETS=no
36443 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36444echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36445 else
36446 cat >>confdefs.h <<_ACEOF
36447#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
36448_ACEOF
36449
36450 fi
36451 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
36452echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
36453if test "${wx_cv_type_getsockopt5+set}" = set; then
36454 echo $ECHO_N "(cached) $ECHO_C" >&6
36455else
36456
36457 cat >conftest.$ac_ext <<_ACEOF
36458/* confdefs.h. */
36459_ACEOF
36460cat confdefs.h >>conftest.$ac_ext
36461cat >>conftest.$ac_ext <<_ACEOF
36462/* end confdefs.h. */
36463
36464 #include <sys/types.h>
36465 #include <sys/socket.h>
36466
36467int
36468main ()
36469{
36470
36471 socklen_t len;
36472 getsockopt(0, 0, 0, 0, &len);
36473
36474 ;
36475 return 0;
36476}
36477_ACEOF
36478rm -f conftest.$ac_objext
36479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36480 (eval $ac_compile) 2>conftest.er1
36481 ac_status=$?
36482 grep -v '^ *+' conftest.er1 >conftest.err
36483 rm -f conftest.er1
36484 cat conftest.err >&5
36485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36486 (exit $ac_status); } &&
da4486fb 36487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
36488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36489 (eval $ac_try) 2>&5
36490 ac_status=$?
36491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492 (exit $ac_status); }; } &&
36493 { ac_try='test -s conftest.$ac_objext'
36494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36495 (eval $ac_try) 2>&5
36496 ac_status=$?
36497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36498 (exit $ac_status); }; }; then
36499 wx_cv_type_getsockopt5=socklen_t
36500else
36501 echo "$as_me: failed program was:" >&5
36502sed 's/^/| /' conftest.$ac_ext >&5
36503
36504
36505 CFLAGS_OLD="$CFLAGS"
36506 if test "$GCC" = yes ; then
36507 CFLAGS="$CFLAGS -Werror"
36508 fi
36509
36510 cat >conftest.$ac_ext <<_ACEOF
36511/* confdefs.h. */
36512_ACEOF
36513cat confdefs.h >>conftest.$ac_ext
36514cat >>conftest.$ac_ext <<_ACEOF
36515/* end confdefs.h. */
36516
36517 #include <sys/types.h>
36518 #include <sys/socket.h>
36519
36520int
36521main ()
36522{
36523
36524 size_t len;
36525 getsockopt(0, 0, 0, 0, &len);
36526
36527 ;
36528 return 0;
36529}
36530_ACEOF
36531rm -f conftest.$ac_objext
36532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36533 (eval $ac_compile) 2>conftest.er1
36534 ac_status=$?
36535 grep -v '^ *+' conftest.er1 >conftest.err
36536 rm -f conftest.er1
36537 cat conftest.err >&5
36538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539 (exit $ac_status); } &&
da4486fb 36540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
36541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36542 (eval $ac_try) 2>&5
36543 ac_status=$?
36544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); }; } &&
36546 { ac_try='test -s conftest.$ac_objext'
36547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548 (eval $ac_try) 2>&5
36549 ac_status=$?
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); }; }; then
36552 wx_cv_type_getsockopt5=size_t
36553else
36554 echo "$as_me: failed program was:" >&5
36555sed 's/^/| /' conftest.$ac_ext >&5
36556
36557cat >conftest.$ac_ext <<_ACEOF
36558/* confdefs.h. */
36559_ACEOF
36560cat confdefs.h >>conftest.$ac_ext
36561cat >>conftest.$ac_ext <<_ACEOF
36562/* end confdefs.h. */
36563
36564 #include <sys/types.h>
36565 #include <sys/socket.h>
36566
36567int
36568main ()
36569{
36570
36571 int len;
36572 getsockopt(0, 0, 0, 0, &len);
36573
36574 ;
36575 return 0;
36576}
36577_ACEOF
36578rm -f conftest.$ac_objext
36579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36580 (eval $ac_compile) 2>conftest.er1
36581 ac_status=$?
36582 grep -v '^ *+' conftest.er1 >conftest.err
36583 rm -f conftest.er1
36584 cat conftest.err >&5
36585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586 (exit $ac_status); } &&
da4486fb 36587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
36588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36589 (eval $ac_try) 2>&5
36590 ac_status=$?
36591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592 (exit $ac_status); }; } &&
36593 { ac_try='test -s conftest.$ac_objext'
36594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36595 (eval $ac_try) 2>&5
36596 ac_status=$?
36597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36598 (exit $ac_status); }; }; then
36599 wx_cv_type_getsockopt5=int
36600else
36601 echo "$as_me: failed program was:" >&5
36602sed 's/^/| /' conftest.$ac_ext >&5
36603
36604wx_cv_type_getsockopt5=unknown
36605
36606fi
36607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36608
36609fi
36610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36611
36612 CFLAGS="$CFLAGS_OLD"
36613
36614
36615fi
36616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36617
36618fi
36619echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
36620echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
36621
36622 if test "$wx_cv_type_getsockopt5" = "unknown"; then
36623 wxUSE_SOCKETS=no
36624 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36625echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36626 else
36627 cat >>confdefs.h <<_ACEOF
36628#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
36629_ACEOF
36630
36631 fi
4d4ff94c
VZ
36632 ac_ext=c
36633ac_cpp='$CPP $CPPFLAGS'
36634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36636ac_compiler_gnu=$ac_cv_c_compiler_gnu
36637
a848cd7e
SC
36638 fi
36639fi
36640
36641if test "$wxUSE_SOCKETS" = "yes" ; then
36642 cat >>confdefs.h <<\_ACEOF
36643#define wxUSE_SOCKETS 1
36644_ACEOF
36645
36646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36647fi
36648
36649if test "$wxUSE_PROTOCOL" = "yes"; then
36650 if test "$wxUSE_SOCKETS" != "yes"; then
36651 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36652echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36653 wxUSE_PROTOCOL=no
36654 fi
36655fi
36656
36657if test "$wxUSE_PROTOCOL" = "yes"; then
36658 cat >>confdefs.h <<\_ACEOF
36659#define wxUSE_PROTOCOL 1
36660_ACEOF
36661
36662
36663 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36664 cat >>confdefs.h <<\_ACEOF
36665#define wxUSE_PROTOCOL_HTTP 1
36666_ACEOF
36667
36668 fi
36669 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36670 cat >>confdefs.h <<\_ACEOF
36671#define wxUSE_PROTOCOL_FTP 1
36672_ACEOF
36673
36674 fi
36675 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36676 cat >>confdefs.h <<\_ACEOF
36677#define wxUSE_PROTOCOL_FILE 1
36678_ACEOF
36679
36680 fi
36681else
36682 if test "$wxUSE_FS_INET" = "yes"; then
36683 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36684echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36685 wxUSE_FS_INET="no"
36686 fi
36687fi
36688
36689if test "$wxUSE_URL" = "yes"; then
36690 if test "$wxUSE_PROTOCOL" != "yes"; then
36691 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36692echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36693 wxUSE_URL=no
36694 fi
36695 if test "$wxUSE_URL" = "yes"; then
36696 cat >>confdefs.h <<\_ACEOF
36697#define wxUSE_URL 1
36698_ACEOF
36699
36700 fi
36701fi
36702
36703if test "$wxUSE_FS_INET" = "yes"; then
36704 cat >>confdefs.h <<\_ACEOF
36705#define wxUSE_FS_INET 1
36706_ACEOF
36707
36708fi
36709
36710
36711if test "$wxUSE_GUI" = "yes"; then
36712
36713 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36714 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36715echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36716 wxUSE_JOYSTICK=no
36717 fi
36718
36719 if test "$TOOLKIT" != "MSW"; then
36720 if test "$wxUSE_JOYSTICK" = "yes"; then
36721
36722for ac_header in linux/joystick.h
36723do
36724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36725if eval "test \"\${$as_ac_Header+set}\" = set"; then
36726 echo "$as_me:$LINENO: checking for $ac_header" >&5
36727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36728if eval "test \"\${$as_ac_Header+set}\" = set"; then
36729 echo $ECHO_N "(cached) $ECHO_C" >&6
36730fi
36731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36733else
36734 # Is the header compilable?
36735echo "$as_me:$LINENO: checking $ac_header usability" >&5
36736echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36737cat >conftest.$ac_ext <<_ACEOF
36738/* confdefs.h. */
36739_ACEOF
36740cat confdefs.h >>conftest.$ac_ext
36741cat >>conftest.$ac_ext <<_ACEOF
36742/* end confdefs.h. */
36743$ac_includes_default
36744#include <$ac_header>
36745_ACEOF
36746rm -f conftest.$ac_objext
36747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36748 (eval $ac_compile) 2>conftest.er1
a848cd7e 36749 ac_status=$?
ac1cb8d3
VS
36750 grep -v '^ *+' conftest.er1 >conftest.err
36751 rm -f conftest.er1
36752 cat conftest.err >&5
a848cd7e
SC
36753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36754 (exit $ac_status); } &&
da4486fb 36755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36757 (eval $ac_try) 2>&5
36758 ac_status=$?
36759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760 (exit $ac_status); }; } &&
36761 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36763 (eval $ac_try) 2>&5
36764 ac_status=$?
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); }; }; then
36767 ac_header_compiler=yes
36768else
36769 echo "$as_me: failed program was:" >&5
36770sed 's/^/| /' conftest.$ac_ext >&5
36771
36772ac_header_compiler=no
36773fi
ac1cb8d3 36774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36776echo "${ECHO_T}$ac_header_compiler" >&6
36777
36778# Is the header present?
36779echo "$as_me:$LINENO: checking $ac_header presence" >&5
36780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36781cat >conftest.$ac_ext <<_ACEOF
36782/* confdefs.h. */
36783_ACEOF
36784cat confdefs.h >>conftest.$ac_ext
36785cat >>conftest.$ac_ext <<_ACEOF
36786/* end confdefs.h. */
36787#include <$ac_header>
36788_ACEOF
36789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36791 ac_status=$?
36792 grep -v '^ *+' conftest.er1 >conftest.err
36793 rm -f conftest.er1
36794 cat conftest.err >&5
36795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 (exit $ac_status); } >/dev/null; then
36797 if test -s conftest.err; then
36798 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36800 else
36801 ac_cpp_err=
36802 fi
36803else
36804 ac_cpp_err=yes
36805fi
36806if test -z "$ac_cpp_err"; then
36807 ac_header_preproc=yes
36808else
36809 echo "$as_me: failed program was:" >&5
36810sed 's/^/| /' conftest.$ac_ext >&5
36811
36812 ac_header_preproc=no
36813fi
36814rm -f conftest.err conftest.$ac_ext
36815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36816echo "${ECHO_T}$ac_header_preproc" >&6
36817
36818# So? What about this header?
ac1cb8d3
VS
36819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36820 yes:no: )
a848cd7e
SC
36821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36825 ac_header_preproc=yes
a848cd7e 36826 ;;
ac1cb8d3 36827 no:yes:* )
a848cd7e
SC
36828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36840 (
36841 cat <<\_ASBOX
ac1cb8d3
VS
36842## ----------------------------------------- ##
36843## Report this to wx-dev@lists.wxwidgets.org ##
36844## ----------------------------------------- ##
a848cd7e
SC
36845_ASBOX
36846 ) |
36847 sed "s/^/$as_me: WARNING: /" >&2
36848 ;;
36849esac
36850echo "$as_me:$LINENO: checking for $ac_header" >&5
36851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36852if eval "test \"\${$as_ac_Header+set}\" = set"; then
36853 echo $ECHO_N "(cached) $ECHO_C" >&6
36854else
ac1cb8d3 36855 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36856fi
36857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36859
36860fi
36861if test `eval echo '${'$as_ac_Header'}'` = yes; then
36862 cat >>confdefs.h <<_ACEOF
36863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36864_ACEOF
36865
36866fi
36867
36868done
36869
36870 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36871 wxUSE_JOYSTICK=no
36872 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36873echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36874 fi
36875 fi
36876 fi
36877
36878 if test "$wxUSE_JOYSTICK" = "yes"; then
36879 cat >>confdefs.h <<\_ACEOF
36880#define wxUSE_JOYSTICK 1
36881_ACEOF
36882
36883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36884 fi
36885fi
36886
36887
36888
36889if test "$wxUSE_FONTMAP" = "yes" ; then
36890 cat >>confdefs.h <<\_ACEOF
36891#define wxUSE_FONTMAP 1
36892_ACEOF
36893
36894fi
36895
36896if test "$wxUSE_UNICODE" = "yes" ; then
36897 cat >>confdefs.h <<\_ACEOF
36898#define wxUSE_UNICODE 1
36899_ACEOF
36900
36901
36902 if test "$USE_WIN32" != 1; then
36903 wxUSE_UNICODE_MSLU=no
36904 fi
36905
36906 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36907 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36908echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36909if test "${ac_cv_lib_unicows_main+set}" = set; then
36910 echo $ECHO_N "(cached) $ECHO_C" >&6
36911else
36912 ac_check_lib_save_LIBS=$LIBS
36913LIBS="-lunicows $LIBS"
36914cat >conftest.$ac_ext <<_ACEOF
36915/* confdefs.h. */
36916_ACEOF
36917cat confdefs.h >>conftest.$ac_ext
36918cat >>conftest.$ac_ext <<_ACEOF
36919/* end confdefs.h. */
36920
36921
36922int
36923main ()
36924{
36925main ();
36926 ;
36927 return 0;
36928}
36929_ACEOF
36930rm -f conftest.$ac_objext conftest$ac_exeext
36931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36932 (eval $ac_link) 2>conftest.er1
a848cd7e 36933 ac_status=$?
ac1cb8d3
VS
36934 grep -v '^ *+' conftest.er1 >conftest.err
36935 rm -f conftest.er1
36936 cat conftest.err >&5
a848cd7e
SC
36937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938 (exit $ac_status); } &&
da4486fb 36939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36941 (eval $ac_try) 2>&5
36942 ac_status=$?
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); }; } &&
36945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36947 (eval $ac_try) 2>&5
36948 ac_status=$?
36949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950 (exit $ac_status); }; }; then
36951 ac_cv_lib_unicows_main=yes
36952else
36953 echo "$as_me: failed program was:" >&5
36954sed 's/^/| /' conftest.$ac_ext >&5
36955
36956ac_cv_lib_unicows_main=no
36957fi
ac1cb8d3
VS
36958rm -f conftest.err conftest.$ac_objext \
36959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36960LIBS=$ac_check_lib_save_LIBS
36961fi
36962echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36963echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36964if test $ac_cv_lib_unicows_main = yes; then
36965
36966 cat >>confdefs.h <<\_ACEOF
36967#define wxUSE_UNICODE_MSLU 1
36968_ACEOF
36969
36970
36971else
36972
36973 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36974 Applications will only run on Windows NT/2000/XP!" >&5
36975echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36976 Applications will only run on Windows NT/2000/XP!" >&2;}
36977 wxUSE_UNICODE_MSLU=no
36978
36979fi
36980
36981 fi
36982fi
36983
36984if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36985 cat >>confdefs.h <<\_ACEOF
36986#define wxUSE_EXPERIMENTAL_PRINTF 1
36987_ACEOF
36988
36989fi
36990
36991
36992if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36993 cat >>confdefs.h <<\_ACEOF
36994#define wxUSE_POSTSCRIPT 1
36995_ACEOF
36996
36997fi
36998
36999cat >>confdefs.h <<\_ACEOF
37000#define wxUSE_AFM_FOR_POSTSCRIPT 1
37001_ACEOF
37002
37003
37004cat >>confdefs.h <<\_ACEOF
37005#define wxUSE_NORMALIZED_PS_FONTS 1
37006_ACEOF
37007
37008
37009
37010if test "$wxUSE_CONSTRAINTS" = "yes"; then
37011 cat >>confdefs.h <<\_ACEOF
37012#define wxUSE_CONSTRAINTS 1
37013_ACEOF
37014
37015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37016fi
37017
8a7b1113
VZ
37018if test "$wxUSE_MDI" = "yes"; then
37019 cat >>confdefs.h <<\_ACEOF
37020#define wxUSE_MDI 1
37021_ACEOF
37022
37023
37024 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37025 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37026#define wxUSE_MDI_ARCHITECTURE 1
37027_ACEOF
37028
8a7b1113
VZ
37029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37030 fi
a848cd7e
SC
37031fi
37032
37033if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37034 cat >>confdefs.h <<\_ACEOF
37035#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37036_ACEOF
37037
37038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37039 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37041 fi
37042fi
37043
37044if test "$wxUSE_HELP" = "yes"; then
37045 cat >>confdefs.h <<\_ACEOF
37046#define wxUSE_HELP 1
37047_ACEOF
37048
37049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37050
37051 if test "$wxUSE_MSW" = 1; then
37052 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37053 cat >>confdefs.h <<\_ACEOF
37054#define wxUSE_MS_HTML_HELP 1
37055_ACEOF
37056
37057 fi
37058 fi
37059
37060 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37061 if test "$wxUSE_HTML" = "yes"; then
37062 cat >>confdefs.h <<\_ACEOF
37063#define wxUSE_WXHTML_HELP 1
37064_ACEOF
37065
37066 else
37067 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37068echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37069 wxUSE_WXHTML_HELP=no
37070 fi
37071 fi
37072fi
37073
37074if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37075 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37076 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37077echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37078 else
37079 cat >>confdefs.h <<\_ACEOF
37080#define wxUSE_PRINTING_ARCHITECTURE 1
37081_ACEOF
37082
37083 fi
37084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37085fi
37086
37087if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37088 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37089echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37090 { (exit 1); exit 1; }; }
37091fi
37092
37093
37094if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37095 -o "$wxUSE_CLIPBOARD" = "yes" \
37096 -o "$wxUSE_OLE" = "yes" \
37097 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37098
37099for ac_header in ole2.h
37100do
37101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37102if eval "test \"\${$as_ac_Header+set}\" = set"; then
37103 echo "$as_me:$LINENO: checking for $ac_header" >&5
37104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37105if eval "test \"\${$as_ac_Header+set}\" = set"; then
37106 echo $ECHO_N "(cached) $ECHO_C" >&6
37107fi
37108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37110else
37111 # Is the header compilable?
37112echo "$as_me:$LINENO: checking $ac_header usability" >&5
37113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37114cat >conftest.$ac_ext <<_ACEOF
37115/* confdefs.h. */
37116_ACEOF
37117cat confdefs.h >>conftest.$ac_ext
37118cat >>conftest.$ac_ext <<_ACEOF
37119/* end confdefs.h. */
37120$ac_includes_default
37121#include <$ac_header>
37122_ACEOF
37123rm -f conftest.$ac_objext
37124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37125 (eval $ac_compile) 2>conftest.er1
a848cd7e 37126 ac_status=$?
ac1cb8d3
VS
37127 grep -v '^ *+' conftest.er1 >conftest.err
37128 rm -f conftest.er1
37129 cat conftest.err >&5
a848cd7e
SC
37130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37131 (exit $ac_status); } &&
da4486fb 37132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37134 (eval $ac_try) 2>&5
37135 ac_status=$?
37136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37137 (exit $ac_status); }; } &&
37138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37140 (eval $ac_try) 2>&5
37141 ac_status=$?
37142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37143 (exit $ac_status); }; }; then
37144 ac_header_compiler=yes
37145else
37146 echo "$as_me: failed program was:" >&5
37147sed 's/^/| /' conftest.$ac_ext >&5
37148
37149ac_header_compiler=no
37150fi
ac1cb8d3 37151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37153echo "${ECHO_T}$ac_header_compiler" >&6
37154
37155# Is the header present?
37156echo "$as_me:$LINENO: checking $ac_header presence" >&5
37157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37158cat >conftest.$ac_ext <<_ACEOF
37159/* confdefs.h. */
37160_ACEOF
37161cat confdefs.h >>conftest.$ac_ext
37162cat >>conftest.$ac_ext <<_ACEOF
37163/* end confdefs.h. */
37164#include <$ac_header>
37165_ACEOF
37166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37168 ac_status=$?
37169 grep -v '^ *+' conftest.er1 >conftest.err
37170 rm -f conftest.er1
37171 cat conftest.err >&5
37172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 (exit $ac_status); } >/dev/null; then
37174 if test -s conftest.err; then
37175 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37177 else
37178 ac_cpp_err=
37179 fi
37180else
37181 ac_cpp_err=yes
37182fi
37183if test -z "$ac_cpp_err"; then
37184 ac_header_preproc=yes
37185else
37186 echo "$as_me: failed program was:" >&5
37187sed 's/^/| /' conftest.$ac_ext >&5
37188
37189 ac_header_preproc=no
37190fi
37191rm -f conftest.err conftest.$ac_ext
37192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37193echo "${ECHO_T}$ac_header_preproc" >&6
37194
37195# So? What about this header?
ac1cb8d3
VS
37196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37197 yes:no: )
a848cd7e
SC
37198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37202 ac_header_preproc=yes
a848cd7e 37203 ;;
ac1cb8d3 37204 no:yes:* )
a848cd7e
SC
37205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37217 (
37218 cat <<\_ASBOX
ac1cb8d3
VS
37219## ----------------------------------------- ##
37220## Report this to wx-dev@lists.wxwidgets.org ##
37221## ----------------------------------------- ##
a848cd7e
SC
37222_ASBOX
37223 ) |
37224 sed "s/^/$as_me: WARNING: /" >&2
37225 ;;
37226esac
37227echo "$as_me:$LINENO: checking for $ac_header" >&5
37228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37229if eval "test \"\${$as_ac_Header+set}\" = set"; then
37230 echo $ECHO_N "(cached) $ECHO_C" >&6
37231else
ac1cb8d3 37232 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37233fi
37234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37236
37237fi
37238if test `eval echo '${'$as_ac_Header'}'` = yes; then
37239 cat >>confdefs.h <<_ACEOF
37240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37241_ACEOF
37242
37243fi
37244
37245done
37246
37247
37248 if test "$ac_cv_header_ole2_h" = "yes" ; then
37249 if test "$GCC" = yes ; then
37250
37251
37252 ac_ext=cc
37253ac_cpp='$CXXCPP $CPPFLAGS'
37254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37257
37258
37259 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37260echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37261 cat >conftest.$ac_ext <<_ACEOF
37262/* confdefs.h. */
37263_ACEOF
37264cat confdefs.h >>conftest.$ac_ext
37265cat >>conftest.$ac_ext <<_ACEOF
37266/* end confdefs.h. */
37267#include <windows.h>
37268 #include <ole2.h>
37269int
37270main ()
37271{
37272
37273 ;
37274 return 0;
37275}
37276_ACEOF
37277rm -f conftest.$ac_objext
37278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37279 (eval $ac_compile) 2>conftest.er1
a848cd7e 37280 ac_status=$?
ac1cb8d3
VS
37281 grep -v '^ *+' conftest.er1 >conftest.err
37282 rm -f conftest.er1
37283 cat conftest.err >&5
a848cd7e
SC
37284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37285 (exit $ac_status); } &&
da4486fb 37286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37288 (eval $ac_try) 2>&5
37289 ac_status=$?
37290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291 (exit $ac_status); }; } &&
37292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37294 (eval $ac_try) 2>&5
37295 ac_status=$?
37296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297 (exit $ac_status); }; }; then
37298 echo "$as_me:$LINENO: result: no" >&5
37299echo "${ECHO_T}no" >&6
37300else
37301 echo "$as_me: failed program was:" >&5
37302sed 's/^/| /' conftest.$ac_ext >&5
37303
37304echo "$as_me:$LINENO: result: yes" >&5
37305echo "${ECHO_T}yes" >&6
37306 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37307fi
ac1cb8d3 37308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37309 ac_ext=c
37310ac_cpp='$CPP $CPPFLAGS'
37311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37313ac_compiler_gnu=$ac_cv_c_compiler_gnu
37314
a848cd7e
SC
37315 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37316 if test "$wxUSE_OLE" = "yes" ; then
37317 cat >>confdefs.h <<\_ACEOF
37318#define wxUSE_OLE 1
37319_ACEOF
37320
37321 fi
37322 fi
37323
37324 if test "$wxUSE_DATAOBJ" = "yes" ; then
37325 cat >>confdefs.h <<\_ACEOF
37326#define wxUSE_DATAOBJ 1
37327_ACEOF
37328
37329 fi
37330 else
37331 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37332echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37333
37334 wxUSE_CLIPBOARD=no
37335 wxUSE_DRAG_AND_DROP=no
37336 wxUSE_DATAOBJ=no
37337 wxUSE_OLE=no
37338 fi
37339
37340 if test "$wxUSE_METAFILE" = "yes"; then
37341 cat >>confdefs.h <<\_ACEOF
37342#define wxUSE_METAFILE 1
37343_ACEOF
37344
37345
37346 cat >>confdefs.h <<\_ACEOF
37347#define wxUSE_ENH_METAFILE 1
37348_ACEOF
37349
37350 fi
37351fi
37352
37353if test "$wxUSE_IPC" = "yes"; then
37354 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37355 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37356echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37357 fi
37358
37359 cat >>confdefs.h <<\_ACEOF
37360#define wxUSE_IPC 1
37361_ACEOF
37362
37363fi
37364
37365if test "$wxUSE_CLIPBOARD" = "yes"; then
37366 if test "$wxUSE_MGL" = 1; then
37367 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37368echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37369 wxUSE_CLIPBOARD=no
37370 fi
37371
37372 if test "$wxUSE_CLIPBOARD" = "yes"; then
37373 cat >>confdefs.h <<\_ACEOF
37374#define wxUSE_CLIPBOARD 1
37375_ACEOF
37376
37377
37378 cat >>confdefs.h <<\_ACEOF
37379#define wxUSE_DATAOBJ 1
37380_ACEOF
37381
37382 fi
37383fi
37384
37385if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37386 if test "$wxUSE_GTK" = 1; then
37387 if test "$WXGTK12" != 1; then
37388 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37389echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37390 wxUSE_DRAG_AND_DROP=no
37391 fi
37392 fi
37393
37394 if test "$wxUSE_MOTIF" = 1; then
37395 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37396echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37397 wxUSE_DRAG_AND_DROP=no
37398 fi
37399
37400 if test "$wxUSE_X11" = 1; then
37401 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37402echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37403 wxUSE_DRAG_AND_DROP=no
37404 fi
37405
37406 if test "$wxUSE_MGL" = 1; then
37407 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37408echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37409 wxUSE_DRAG_AND_DROP=no
37410 fi
37411
37412 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37413 cat >>confdefs.h <<\_ACEOF
37414#define wxUSE_DRAG_AND_DROP 1
37415_ACEOF
37416
37417 fi
37418
37419fi
37420
37421if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37422 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37423fi
37424
37425if test "$wxUSE_SPLINES" = "yes" ; then
37426 cat >>confdefs.h <<\_ACEOF
37427#define wxUSE_SPLINES 1
37428_ACEOF
37429
37430fi
37431
37432
37433USES_CONTROLS=0
37434if test "$wxUSE_CONTROLS" = "yes"; then
37435 USES_CONTROLS=1
37436fi
37437
37438if test "$wxUSE_ACCEL" = "yes"; then
37439 cat >>confdefs.h <<\_ACEOF
37440#define wxUSE_ACCEL 1
37441_ACEOF
37442
37443 USES_CONTROLS=1
37444fi
37445
37446if test "$wxUSE_BUTTON" = "yes"; then
37447 cat >>confdefs.h <<\_ACEOF
37448#define wxUSE_BUTTON 1
37449_ACEOF
37450
37451 USES_CONTROLS=1
37452fi
37453
37454if test "$wxUSE_BMPBUTTON" = "yes"; then
37455 cat >>confdefs.h <<\_ACEOF
37456#define wxUSE_BMPBUTTON 1
37457_ACEOF
37458
37459 USES_CONTROLS=1
37460fi
37461
37462if test "$wxUSE_CALCTRL" = "yes"; then
37463 cat >>confdefs.h <<\_ACEOF
37464#define wxUSE_CALENDARCTRL 1
37465_ACEOF
37466
37467 USES_CONTROLS=1
37468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37469fi
37470
37471if test "$wxUSE_CARET" = "yes"; then
37472 cat >>confdefs.h <<\_ACEOF
37473#define wxUSE_CARET 1
37474_ACEOF
37475
37476 USES_CONTROLS=1
37477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37478fi
37479
37480if test "$wxUSE_COMBOBOX" = "yes"; then
37481 cat >>confdefs.h <<\_ACEOF
37482#define wxUSE_COMBOBOX 1
37483_ACEOF
37484
37485 USES_CONTROLS=1
37486fi
37487
37488if test "$wxUSE_CHOICE" = "yes"; then
37489 cat >>confdefs.h <<\_ACEOF
37490#define wxUSE_CHOICE 1
37491_ACEOF
37492
37493 USES_CONTROLS=1
37494fi
37495
92bbdbcd
WS
37496if test "$wxUSE_CHOICEBOOK" = "yes"; then
37497 cat >>confdefs.h <<\_ACEOF
37498#define wxUSE_CHOICEBOOK 1
37499_ACEOF
37500
37501 USES_CONTROLS=1
37502fi
37503
a848cd7e
SC
37504if test "$wxUSE_CHECKBOX" = "yes"; then
37505 cat >>confdefs.h <<\_ACEOF
37506#define wxUSE_CHECKBOX 1
37507_ACEOF
37508
37509 USES_CONTROLS=1
37510fi
37511
37512if test "$wxUSE_CHECKLST" = "yes"; then
37513 cat >>confdefs.h <<\_ACEOF
37514#define wxUSE_CHECKLISTBOX 1
37515_ACEOF
37516
37517 USES_CONTROLS=1
37518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37519fi
37520
37521if test "$wxUSE_DISPLAY" = "yes"; then
37522 cat >>confdefs.h <<\_ACEOF
37523#define wxUSE_DISPLAY 1
37524_ACEOF
37525
37526 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37527fi
37528
37529if test "$wxUSE_GAUGE" = "yes"; then
37530 cat >>confdefs.h <<\_ACEOF
37531#define wxUSE_GAUGE 1
37532_ACEOF
37533
37534 USES_CONTROLS=1
37535fi
37536
37537if test "$wxUSE_GRID" = "yes"; then
37538 cat >>confdefs.h <<\_ACEOF
37539#define wxUSE_GRID 1
37540_ACEOF
37541
37542 USES_CONTROLS=1
37543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37544fi
37545
37546if test "$wxUSE_IMAGLIST" = "yes"; then
37547 cat >>confdefs.h <<\_ACEOF
37548#define wxUSE_IMAGLIST 1
37549_ACEOF
37550
37551fi
37552
37553if test "$wxUSE_LISTBOOK" = "yes"; then
37554 cat >>confdefs.h <<\_ACEOF
37555#define wxUSE_LISTBOOK 1
37556_ACEOF
37557
37558 USES_CONTROLS=1
37559fi
37560
37561if test "$wxUSE_LISTBOX" = "yes"; then
37562 cat >>confdefs.h <<\_ACEOF
37563#define wxUSE_LISTBOX 1
37564_ACEOF
37565
37566 USES_CONTROLS=1
37567fi
37568
37569if test "$wxUSE_LISTCTRL" = "yes"; then
37570 if test "$wxUSE_IMAGLIST" = "yes"; then
37571 cat >>confdefs.h <<\_ACEOF
37572#define wxUSE_LISTCTRL 1
37573_ACEOF
37574
37575 USES_CONTROLS=1
37576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37577 else
37578 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37579echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37580 fi
37581fi
37582
37583if test "$wxUSE_NOTEBOOK" = "yes"; then
37584 cat >>confdefs.h <<\_ACEOF
37585#define wxUSE_NOTEBOOK 1
37586_ACEOF
37587
37588 USES_CONTROLS=1
37589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37590fi
37591
37592
37593if test "$wxUSE_RADIOBOX" = "yes"; then
37594 cat >>confdefs.h <<\_ACEOF
37595#define wxUSE_RADIOBOX 1
37596_ACEOF
37597
37598 USES_CONTROLS=1
37599fi
37600
37601if test "$wxUSE_RADIOBTN" = "yes"; then
37602 cat >>confdefs.h <<\_ACEOF
37603#define wxUSE_RADIOBTN 1
37604_ACEOF
37605
37606 USES_CONTROLS=1
37607fi
37608
37609if test "$wxUSE_SASH" = "yes"; then
37610 cat >>confdefs.h <<\_ACEOF
37611#define wxUSE_SASH 1
37612_ACEOF
37613
37614 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37615fi
37616
37617if test "$wxUSE_SCROLLBAR" = "yes"; then
37618 cat >>confdefs.h <<\_ACEOF
37619#define wxUSE_SCROLLBAR 1
37620_ACEOF
37621
37622 USES_CONTROLS=1
37623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37624fi
37625
37626if test "$wxUSE_SLIDER" = "yes"; then
37627 cat >>confdefs.h <<\_ACEOF
37628#define wxUSE_SLIDER 1
37629_ACEOF
37630
37631 USES_CONTROLS=1
37632fi
37633
37634if test "$wxUSE_SPINBTN" = "yes"; then
37635 cat >>confdefs.h <<\_ACEOF
37636#define wxUSE_SPINBTN 1
37637_ACEOF
37638
37639 USES_CONTROLS=1
37640fi
37641
37642if test "$wxUSE_SPINCTRL" = "yes"; then
37643 cat >>confdefs.h <<\_ACEOF
37644#define wxUSE_SPINCTRL 1
37645_ACEOF
37646
37647 USES_CONTROLS=1
37648fi
37649
37650if test "$wxUSE_SPLITTER" = "yes"; then
37651 cat >>confdefs.h <<\_ACEOF
37652#define wxUSE_SPLITTER 1
37653_ACEOF
37654
37655 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37656fi
37657
37658if test "$wxUSE_STATBMP" = "yes"; then
37659 cat >>confdefs.h <<\_ACEOF
37660#define wxUSE_STATBMP 1
37661_ACEOF
37662
37663 USES_CONTROLS=1
37664fi
37665
37666if test "$wxUSE_STATBOX" = "yes"; then
37667 cat >>confdefs.h <<\_ACEOF
37668#define wxUSE_STATBOX 1
37669_ACEOF
37670
37671 USES_CONTROLS=1
37672fi
37673
37674if test "$wxUSE_STATTEXT" = "yes"; then
37675 cat >>confdefs.h <<\_ACEOF
37676#define wxUSE_STATTEXT 1
37677_ACEOF
37678
37679 USES_CONTROLS=1
37680fi
37681
37682if test "$wxUSE_STATLINE" = "yes"; then
37683 cat >>confdefs.h <<\_ACEOF
37684#define wxUSE_STATLINE 1
37685_ACEOF
37686
37687 USES_CONTROLS=1
37688fi
37689
37690if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
37691 cat >>confdefs.h <<\_ACEOF
37692#define wxUSE_NATIVE_STATUSBAR 1
37693_ACEOF
37694
a848cd7e
SC
37695 cat >>confdefs.h <<\_ACEOF
37696#define wxUSE_STATUSBAR 1
37697_ACEOF
37698
37699 USES_CONTROLS=1
37700
37701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37702fi
37703
37704if test "$wxUSE_TABDIALOG" = "yes"; then
37705 cat >>confdefs.h <<\_ACEOF
37706#define wxUSE_TAB_DIALOG 1
37707_ACEOF
37708
37709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37710fi
37711
37712if test "$wxUSE_TEXTCTRL" = "yes"; then
37713 cat >>confdefs.h <<\_ACEOF
37714#define wxUSE_TEXTCTRL 1
37715_ACEOF
37716
37717 USES_CONTROLS=1
37718 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37719fi
37720
37721if test "$wxUSE_TOGGLEBTN" = "yes"; then
37722 if test "$wxUSE_COCOA" = 1 ; then
37723 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37724echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37725 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37726 else
37727 if test "$wxUSE_PM" = 1; then
37728 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37729echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37730 wxUSE_TOGGLEBTN=no
37731 fi
a848cd7e
SC
37732 fi
37733 if test "$wxUSE_UNIVERSAL" = "yes"; then
37734 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37735echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37736 wxUSE_TOGGLEBTN=no
37737 fi
37738
37739 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37740 cat >>confdefs.h <<\_ACEOF
37741#define wxUSE_TOGGLEBTN 1
37742_ACEOF
37743
37744 USES_CONTROLS=1
37745 fi
37746fi
37747
37748if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37749 cat >>confdefs.h <<\_ACEOF
37750#define wxUSE_TOOLBAR_SIMPLE 1
37751_ACEOF
37752
37753 wxUSE_TOOLBAR="yes"
37754 USES_CONTROLS=1
37755fi
37756
37757if test "$wxUSE_TOOLBAR" = "yes"; then
37758 cat >>confdefs.h <<\_ACEOF
37759#define wxUSE_TOOLBAR 1
37760_ACEOF
37761
37762 USES_CONTROLS=1
37763
37764 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37765 wxUSE_TOOLBAR_NATIVE="yes"
37766 fi
37767
37768 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37769 cat >>confdefs.h <<\_ACEOF
37770#define wxUSE_TOOLBAR_NATIVE 1
37771_ACEOF
37772
37773 USES_CONTROLS=1
37774 fi
37775
37776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37777fi
37778
37779if test "$wxUSE_TOOLTIPS" = "yes"; then
37780 if test "$wxUSE_MOTIF" = 1; then
37781 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37782echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37783 else
37784 if test "$wxUSE_UNIVERSAL" = "yes"; then
37785 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37786echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37787 else
37788 cat >>confdefs.h <<\_ACEOF
37789#define wxUSE_TOOLTIPS 1
37790_ACEOF
37791
37792 fi
37793 fi
37794fi
37795
37796if test "$wxUSE_TREECTRL" = "yes"; then
37797 if test "$wxUSE_IMAGLIST" = "yes"; then
37798 cat >>confdefs.h <<\_ACEOF
37799#define wxUSE_TREECTRL 1
37800_ACEOF
37801
37802 USES_CONTROLS=1
37803 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37804 else
37805 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37806echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37807 fi
37808fi
37809
37810if test "$wxUSE_POPUPWIN" = "yes"; then
37811 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37812 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37813echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37814 else
37815 if test "$wxUSE_PM" = 1; then
37816 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37817echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37818 else
37819 cat >>confdefs.h <<\_ACEOF
37820#define wxUSE_POPUPWIN 1
37821_ACEOF
37822
37823
37824 USES_CONTROLS=1
37825 fi
37826 fi
37827fi
37828
37829if test "$wxUSE_TIPWINDOW" = "yes"; then
37830 if test "$wxUSE_PM" = 1; then
37831 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37832echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37833 else
37834 cat >>confdefs.h <<\_ACEOF
37835#define wxUSE_TIPWINDOW 1
37836_ACEOF
37837
37838 fi
37839fi
37840
37841if test "$USES_CONTROLS" = 1; then
37842 cat >>confdefs.h <<\_ACEOF
37843#define wxUSE_CONTROLS 1
37844_ACEOF
37845
37846fi
37847
37848
37849if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37850 cat >>confdefs.h <<\_ACEOF
37851#define wxUSE_ACCESSIBILITY 1
37852_ACEOF
37853
37854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37855fi
37856
37857if test "$wxUSE_DRAGIMAGE" = "yes"; then
37858 cat >>confdefs.h <<\_ACEOF
37859#define wxUSE_DRAGIMAGE 1
37860_ACEOF
37861
37862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37863fi
37864
37865if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37866 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37867 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37868echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37869 else
37870 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37871#define wxUSE_EXCEPTIONS 1
37872_ACEOF
37873
07bea8f0
VS
37874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37875 fi
a848cd7e
SC
37876fi
37877
37878USE_HTML=0
37879if test "$wxUSE_HTML" = "yes"; then
37880 cat >>confdefs.h <<\_ACEOF
37881#define wxUSE_HTML 1
37882_ACEOF
37883
37884 USE_HTML=1
37885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37886 if test "$wxUSE_MAC" = 1; then
37887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37888 fi
a848cd7e 37889fi
646b6ec1 37890if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 37891 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
37892 old_CPPFLAGS="$CPPFLAGS"
37893 CPPFLAGS="$CPPFLAGS -x objective-c++"
37894 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37895echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37896if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37897 echo $ECHO_N "(cached) $ECHO_C" >&6
37898else
37899 cat >conftest.$ac_ext <<_ACEOF
37900/* confdefs.h. */
37901_ACEOF
37902cat confdefs.h >>conftest.$ac_ext
37903cat >>conftest.$ac_ext <<_ACEOF
37904/* end confdefs.h. */
37905#include <Carbon/Carbon.h>
37906
37907#include <WebKit/HIWebView.h>
37908_ACEOF
37909rm -f conftest.$ac_objext
37910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37911 (eval $ac_compile) 2>conftest.er1
37912 ac_status=$?
37913 grep -v '^ *+' conftest.er1 >conftest.err
37914 rm -f conftest.er1
37915 cat conftest.err >&5
37916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917 (exit $ac_status); } &&
da4486fb 37918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
37919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37920 (eval $ac_try) 2>&5
37921 ac_status=$?
37922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923 (exit $ac_status); }; } &&
37924 { ac_try='test -s conftest.$ac_objext'
37925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37926 (eval $ac_try) 2>&5
37927 ac_status=$?
37928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37929 (exit $ac_status); }; }; then
37930 ac_cv_header_WebKit_HIWebView_h=yes
37931else
37932 echo "$as_me: failed program was:" >&5
37933sed 's/^/| /' conftest.$ac_ext >&5
37934
37935ac_cv_header_WebKit_HIWebView_h=no
37936fi
37937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37938fi
37939echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37940echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37941if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37942
37943 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37944#define wxUSE_WEBKIT 1
37945_ACEOF
37946
07bea8f0
VS
37947 WEBKIT_LINK="-framework WebKit"
37948
37949else
37950
37951 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37952echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37953 wxUSE_WEBKIT=no
37954
646b6ec1
VS
37955fi
37956
07bea8f0
VS
37957
37958 CPPFLAGS="$old_CPPFLAGS"
37959 elif test "$wxUSE_COCOA" = 1; then
37960 cat >>confdefs.h <<\_ACEOF
37961#define wxUSE_WEBKIT 1
37962_ACEOF
37963
37964 else
37965 wxUSE_WEBKIT=no
37966 fi
37967fi
37968
9a8f0513
VS
37969USE_XRC=0
37970if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37971 if test "$wxUSE_XML" != "yes"; then
37972 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37973echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37974 wxUSE_XRC=no
37975 else
37976 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37977#define wxUSE_XRC 1
37978_ACEOF
37979
d2ebf0b7
VS
37980 USE_XRC=1
37981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37982 fi
9a8f0513 37983fi
07bea8f0 37984
a848cd7e
SC
37985if test "$wxUSE_MENUS" = "yes"; then
37986 cat >>confdefs.h <<\_ACEOF
37987#define wxUSE_MENUS 1
37988_ACEOF
37989
37990 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37991fi
37992
37993if test "$wxUSE_METAFILE" = "yes"; then
37994 cat >>confdefs.h <<\_ACEOF
37995#define wxUSE_METAFILE 1
37996_ACEOF
37997
37998fi
37999
38000if test "$wxUSE_MIMETYPE" = "yes"; then
38001 cat >>confdefs.h <<\_ACEOF
38002#define wxUSE_MIMETYPE 1
38003_ACEOF
38004
38005fi
38006
38007if test "$wxUSE_MINIFRAME" = "yes"; then
38008 cat >>confdefs.h <<\_ACEOF
38009#define wxUSE_MINIFRAME 1
38010_ACEOF
38011
38012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38013fi
38014
38015if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38016 cat >>confdefs.h <<\_ACEOF
38017#define wxUSE_SYSTEM_OPTIONS 1
38018_ACEOF
38019
38020 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 38021 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
38022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38023 fi
38024fi
38025
38026
38027if test "$wxUSE_VALIDATORS" = "yes"; then
38028 cat >>confdefs.h <<\_ACEOF
38029#define wxUSE_VALIDATORS 1
38030_ACEOF
38031
38032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38033fi
38034
38035if test "$wxUSE_PALETTE" = "yes" ; then
38036 cat >>confdefs.h <<\_ACEOF
38037#define wxUSE_PALETTE 1
38038_ACEOF
38039
38040fi
38041
38042if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38043 LIBS=" -lunicows $LIBS"
38044fi
38045
38046
38047if test "$wxUSE_IMAGE" = "yes" ; then
38048 cat >>confdefs.h <<\_ACEOF
38049#define wxUSE_IMAGE 1
38050_ACEOF
38051
38052
38053 if test "$wxUSE_GIF" = "yes" ; then
38054 cat >>confdefs.h <<\_ACEOF
38055#define wxUSE_GIF 1
38056_ACEOF
38057
38058 fi
38059
38060 if test "$wxUSE_PCX" = "yes" ; then
38061 cat >>confdefs.h <<\_ACEOF
38062#define wxUSE_PCX 1
38063_ACEOF
38064
38065 fi
38066
38067 if test "$wxUSE_IFF" = "yes" ; then
38068 cat >>confdefs.h <<\_ACEOF
38069#define wxUSE_IFF 1
38070_ACEOF
38071
38072 fi
38073
38074 if test "$wxUSE_PNM" = "yes" ; then
38075 cat >>confdefs.h <<\_ACEOF
38076#define wxUSE_PNM 1
38077_ACEOF
38078
38079 fi
38080
38081 if test "$wxUSE_XPM" = "yes" ; then
38082 cat >>confdefs.h <<\_ACEOF
38083#define wxUSE_XPM 1
38084_ACEOF
38085
38086 fi
38087
38088 if test "$wxUSE_ICO_CUR" = "yes" ; then
38089 cat >>confdefs.h <<\_ACEOF
38090#define wxUSE_ICO_CUR 1
38091_ACEOF
38092
38093 fi
38094fi
38095
38096
38097if test "$wxUSE_CHOICEDLG" = "yes"; then
38098 cat >>confdefs.h <<\_ACEOF
38099#define wxUSE_CHOICEDLG 1
38100_ACEOF
38101
38102fi
38103
38104if test "$wxUSE_COLOURDLG" = "yes"; then
38105 cat >>confdefs.h <<\_ACEOF
38106#define wxUSE_COLOURDLG 1
38107_ACEOF
38108
38109fi
38110
38111if test "$wxUSE_FILEDLG" = "yes"; then
38112 cat >>confdefs.h <<\_ACEOF
38113#define wxUSE_FILEDLG 1
38114_ACEOF
38115
38116fi
38117
38118if test "$wxUSE_FINDREPLDLG" = "yes"; then
38119 cat >>confdefs.h <<\_ACEOF
38120#define wxUSE_FINDREPLDLG 1
38121_ACEOF
38122
38123fi
38124
38125if test "$wxUSE_FONTDLG" = "yes"; then
38126 cat >>confdefs.h <<\_ACEOF
38127#define wxUSE_FONTDLG 1
38128_ACEOF
38129
38130fi
38131
38132if test "$wxUSE_DIRDLG" = "yes"; then
38133 if test "$wxUSE_TREECTRL" != "yes"; then
38134 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38135echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38136 else
38137 cat >>confdefs.h <<\_ACEOF
38138#define wxUSE_DIRDLG 1
38139_ACEOF
38140
38141 fi
38142fi
38143
38144if test "$wxUSE_MSGDLG" = "yes"; then
38145 cat >>confdefs.h <<\_ACEOF
38146#define wxUSE_MSGDLG 1
38147_ACEOF
38148
38149fi
38150
38151if test "$wxUSE_NUMBERDLG" = "yes"; then
38152 cat >>confdefs.h <<\_ACEOF
38153#define wxUSE_NUMBERDLG 1
38154_ACEOF
38155
38156fi
38157
38158if test "$wxUSE_PROGRESSDLG" = "yes"; then
38159 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38160 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38161echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38162 else
38163 cat >>confdefs.h <<\_ACEOF
38164#define wxUSE_PROGRESSDLG 1
38165_ACEOF
38166
38167 fi
38168fi
38169
38170if test "$wxUSE_SPLASH" = "yes"; then
38171 cat >>confdefs.h <<\_ACEOF
38172#define wxUSE_SPLASH 1
38173_ACEOF
38174
2057db16 38175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
38176fi
38177
38178if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38179 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38180 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38181echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38182 else
38183 cat >>confdefs.h <<\_ACEOF
38184#define wxUSE_STARTUP_TIPS 1
38185_ACEOF
38186
38187 fi
38188fi
38189
38190if test "$wxUSE_TEXTDLG" = "yes"; then
38191 cat >>confdefs.h <<\_ACEOF
38192#define wxUSE_TEXTDLG 1
38193_ACEOF
38194
38195fi
38196
38197if test "$wxUSE_WIZARDDLG" = "yes"; then
38198 cat >>confdefs.h <<\_ACEOF
38199#define wxUSE_WIZARDDLG 1
38200_ACEOF
38201
38202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38203fi
38204
38205
38206if test "$cross_compiling" = "yes"; then
38207 OSINFO="\"$host\""
38208else
38209 OSINFO=`uname -s -r -m`
38210 OSINFO="\"$OSINFO\""
38211fi
38212
38213cat >>confdefs.h <<_ACEOF
38214#define WXWIN_OS_DESCRIPTION $OSINFO
38215_ACEOF
38216
38217
38218
38219if test "x$prefix" != "xNONE"; then
38220 wxPREFIX=$prefix
38221else
38222 wxPREFIX=$ac_default_prefix
38223fi
38224
38225cat >>confdefs.h <<_ACEOF
38226#define wxINSTALL_PREFIX "$wxPREFIX"
38227_ACEOF
38228
38229
a848cd7e
SC
38230
38231
38232CORE_BASE_LIBS="net base"
38233CORE_GUI_LIBS="adv core"
38234
38235if test "$wxUSE_XML" = "yes" ; then
38236 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
38237fi
38238if test "$wxUSE_ODBC" != "no" ; then
38239 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
38240 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
38241fi
38242if test "$wxUSE_HTML" = "yes" ; then
38243 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
38244fi
9a8f0513
VS
38245if test "$wxUSE_XRC" = "yes" ; then
38246 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
38247fi
a848cd7e
SC
38248
38249if test "$wxUSE_GUI" != "yes"; then
38250 CORE_GUI_LIBS=""
38251fi
38252
38253
38254
38255
38256
38257
38258
38259
38260if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 38261 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
38262 if test "$USE_DARWIN" = 1; then
38263 LDFLAGS="$LDFLAGS -framework QuickTime"
38264 else
38265 LDFLAGS="$LDFLAGS -lQuickTimeLib"
38266 fi
07bea8f0 38267 fi
5dcf30a0 38268 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
38269 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
38270 else
38271 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 38272 fi
a848cd7e
SC
38273fi
38274if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 38275 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
38276fi
38277
38278
38279LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
38280
38281have_cos=0
38282have_floor=0
38283
38284for ac_func in cos
38285do
38286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38287echo "$as_me:$LINENO: checking for $ac_func" >&5
38288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38289if eval "test \"\${$as_ac_var+set}\" = set"; then
38290 echo $ECHO_N "(cached) $ECHO_C" >&6
38291else
38292 cat >conftest.$ac_ext <<_ACEOF
38293/* confdefs.h. */
38294_ACEOF
38295cat confdefs.h >>conftest.$ac_ext
38296cat >>conftest.$ac_ext <<_ACEOF
38297/* end confdefs.h. */
ac1cb8d3
VS
38298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38300#define $ac_func innocuous_$ac_func
38301
a848cd7e
SC
38302/* System header to define __stub macros and hopefully few prototypes,
38303 which can conflict with char $ac_func (); below.
38304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38305 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38306
a848cd7e
SC
38307#ifdef __STDC__
38308# include <limits.h>
38309#else
38310# include <assert.h>
38311#endif
ac1cb8d3
VS
38312
38313#undef $ac_func
38314
a848cd7e
SC
38315/* Override any gcc2 internal prototype to avoid an error. */
38316#ifdef __cplusplus
38317extern "C"
38318{
38319#endif
38320/* We use char because int might match the return type of a gcc2
38321 builtin and then its argument prototype would still apply. */
38322char $ac_func ();
38323/* The GNU C library defines this for functions which it implements
38324 to always fail with ENOSYS. Some functions are actually named
38325 something starting with __ and the normal name is an alias. */
38326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38327choke me
38328#else
38329char (*f) () = $ac_func;
38330#endif
38331#ifdef __cplusplus
38332}
38333#endif
38334
38335int
38336main ()
38337{
38338return f != $ac_func;
38339 ;
38340 return 0;
38341}
38342_ACEOF
38343rm -f conftest.$ac_objext conftest$ac_exeext
38344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38345 (eval $ac_link) 2>conftest.er1
a848cd7e 38346 ac_status=$?
ac1cb8d3
VS
38347 grep -v '^ *+' conftest.er1 >conftest.err
38348 rm -f conftest.er1
38349 cat conftest.err >&5
a848cd7e
SC
38350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38351 (exit $ac_status); } &&
da4486fb 38352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38354 (eval $ac_try) 2>&5
38355 ac_status=$?
38356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38357 (exit $ac_status); }; } &&
38358 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38360 (eval $ac_try) 2>&5
38361 ac_status=$?
38362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363 (exit $ac_status); }; }; then
38364 eval "$as_ac_var=yes"
38365else
38366 echo "$as_me: failed program was:" >&5
38367sed 's/^/| /' conftest.$ac_ext >&5
38368
38369eval "$as_ac_var=no"
38370fi
ac1cb8d3
VS
38371rm -f conftest.err conftest.$ac_objext \
38372 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38373fi
38374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38375echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38376if test `eval echo '${'$as_ac_var'}'` = yes; then
38377 cat >>confdefs.h <<_ACEOF
38378#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38379_ACEOF
38380 have_cos=1
38381fi
38382done
38383
38384
38385for ac_func in floor
38386do
38387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38388echo "$as_me:$LINENO: checking for $ac_func" >&5
38389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38390if eval "test \"\${$as_ac_var+set}\" = set"; then
38391 echo $ECHO_N "(cached) $ECHO_C" >&6
38392else
38393 cat >conftest.$ac_ext <<_ACEOF
38394/* confdefs.h. */
38395_ACEOF
38396cat confdefs.h >>conftest.$ac_ext
38397cat >>conftest.$ac_ext <<_ACEOF
38398/* end confdefs.h. */
ac1cb8d3
VS
38399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38401#define $ac_func innocuous_$ac_func
38402
a848cd7e
SC
38403/* System header to define __stub macros and hopefully few prototypes,
38404 which can conflict with char $ac_func (); below.
38405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38406 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38407
a848cd7e
SC
38408#ifdef __STDC__
38409# include <limits.h>
38410#else
38411# include <assert.h>
38412#endif
ac1cb8d3
VS
38413
38414#undef $ac_func
38415
a848cd7e
SC
38416/* Override any gcc2 internal prototype to avoid an error. */
38417#ifdef __cplusplus
38418extern "C"
38419{
38420#endif
38421/* We use char because int might match the return type of a gcc2
38422 builtin and then its argument prototype would still apply. */
38423char $ac_func ();
38424/* The GNU C library defines this for functions which it implements
38425 to always fail with ENOSYS. Some functions are actually named
38426 something starting with __ and the normal name is an alias. */
38427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38428choke me
38429#else
38430char (*f) () = $ac_func;
38431#endif
38432#ifdef __cplusplus
38433}
38434#endif
38435
38436int
38437main ()
38438{
38439return f != $ac_func;
38440 ;
38441 return 0;
38442}
38443_ACEOF
38444rm -f conftest.$ac_objext conftest$ac_exeext
38445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38446 (eval $ac_link) 2>conftest.er1
a848cd7e 38447 ac_status=$?
ac1cb8d3
VS
38448 grep -v '^ *+' conftest.er1 >conftest.err
38449 rm -f conftest.er1
38450 cat conftest.err >&5
a848cd7e
SC
38451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38452 (exit $ac_status); } &&
da4486fb 38453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38455 (eval $ac_try) 2>&5
38456 ac_status=$?
38457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458 (exit $ac_status); }; } &&
38459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38461 (eval $ac_try) 2>&5
38462 ac_status=$?
38463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38464 (exit $ac_status); }; }; then
38465 eval "$as_ac_var=yes"
38466else
38467 echo "$as_me: failed program was:" >&5
38468sed 's/^/| /' conftest.$ac_ext >&5
38469
38470eval "$as_ac_var=no"
38471fi
ac1cb8d3
VS
38472rm -f conftest.err conftest.$ac_objext \
38473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38474fi
38475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38477if test `eval echo '${'$as_ac_var'}'` = yes; then
38478 cat >>confdefs.h <<_ACEOF
38479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38480_ACEOF
38481 have_floor=1
38482fi
38483done
38484
38485echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
38486echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
38487if test "$have_cos" = 1 -a "$have_floor" = 1; then
38488 echo "$as_me:$LINENO: result: yes" >&5
38489echo "${ECHO_T}yes" >&6
38490else
38491 echo "$as_me:$LINENO: result: no" >&5
38492echo "${ECHO_T}no" >&6
38493 LIBS="$LIBS -lm"
38494 # use different functions to avoid configure caching
38495 have_sin=0
38496 have_ceil=0
38497
38498for ac_func in sin
38499do
38500as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38501echo "$as_me:$LINENO: checking for $ac_func" >&5
38502echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38503if eval "test \"\${$as_ac_var+set}\" = set"; then
38504 echo $ECHO_N "(cached) $ECHO_C" >&6
38505else
38506 cat >conftest.$ac_ext <<_ACEOF
38507/* confdefs.h. */
38508_ACEOF
38509cat confdefs.h >>conftest.$ac_ext
38510cat >>conftest.$ac_ext <<_ACEOF
38511/* end confdefs.h. */
ac1cb8d3
VS
38512/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38514#define $ac_func innocuous_$ac_func
38515
a848cd7e
SC
38516/* System header to define __stub macros and hopefully few prototypes,
38517 which can conflict with char $ac_func (); below.
38518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38519 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38520
a848cd7e
SC
38521#ifdef __STDC__
38522# include <limits.h>
38523#else
38524# include <assert.h>
38525#endif
ac1cb8d3
VS
38526
38527#undef $ac_func
38528
a848cd7e
SC
38529/* Override any gcc2 internal prototype to avoid an error. */
38530#ifdef __cplusplus
38531extern "C"
38532{
38533#endif
38534/* We use char because int might match the return type of a gcc2
38535 builtin and then its argument prototype would still apply. */
38536char $ac_func ();
38537/* The GNU C library defines this for functions which it implements
38538 to always fail with ENOSYS. Some functions are actually named
38539 something starting with __ and the normal name is an alias. */
38540#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38541choke me
38542#else
38543char (*f) () = $ac_func;
38544#endif
38545#ifdef __cplusplus
38546}
38547#endif
38548
38549int
38550main ()
38551{
38552return f != $ac_func;
38553 ;
38554 return 0;
38555}
38556_ACEOF
38557rm -f conftest.$ac_objext conftest$ac_exeext
38558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38559 (eval $ac_link) 2>conftest.er1
a848cd7e 38560 ac_status=$?
ac1cb8d3
VS
38561 grep -v '^ *+' conftest.er1 >conftest.err
38562 rm -f conftest.er1
38563 cat conftest.err >&5
a848cd7e
SC
38564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38565 (exit $ac_status); } &&
da4486fb 38566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38568 (eval $ac_try) 2>&5
38569 ac_status=$?
38570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 (exit $ac_status); }; } &&
38572 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38574 (eval $ac_try) 2>&5
38575 ac_status=$?
38576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577 (exit $ac_status); }; }; then
38578 eval "$as_ac_var=yes"
38579else
38580 echo "$as_me: failed program was:" >&5
38581sed 's/^/| /' conftest.$ac_ext >&5
38582
38583eval "$as_ac_var=no"
38584fi
ac1cb8d3
VS
38585rm -f conftest.err conftest.$ac_objext \
38586 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38587fi
38588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38589echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38590if test `eval echo '${'$as_ac_var'}'` = yes; then
38591 cat >>confdefs.h <<_ACEOF
38592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38593_ACEOF
38594 have_sin=1
38595fi
38596done
38597
38598
38599for ac_func in ceil
38600do
38601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38602echo "$as_me:$LINENO: checking for $ac_func" >&5
38603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38604if eval "test \"\${$as_ac_var+set}\" = set"; then
38605 echo $ECHO_N "(cached) $ECHO_C" >&6
38606else
38607 cat >conftest.$ac_ext <<_ACEOF
38608/* confdefs.h. */
38609_ACEOF
38610cat confdefs.h >>conftest.$ac_ext
38611cat >>conftest.$ac_ext <<_ACEOF
38612/* end confdefs.h. */
ac1cb8d3
VS
38613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38615#define $ac_func innocuous_$ac_func
38616
a848cd7e
SC
38617/* System header to define __stub macros and hopefully few prototypes,
38618 which can conflict with char $ac_func (); below.
38619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38620 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38621
a848cd7e
SC
38622#ifdef __STDC__
38623# include <limits.h>
38624#else
38625# include <assert.h>
38626#endif
ac1cb8d3
VS
38627
38628#undef $ac_func
38629
a848cd7e
SC
38630/* Override any gcc2 internal prototype to avoid an error. */
38631#ifdef __cplusplus
38632extern "C"
38633{
38634#endif
38635/* We use char because int might match the return type of a gcc2
38636 builtin and then its argument prototype would still apply. */
38637char $ac_func ();
38638/* The GNU C library defines this for functions which it implements
38639 to always fail with ENOSYS. Some functions are actually named
38640 something starting with __ and the normal name is an alias. */
38641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38642choke me
38643#else
38644char (*f) () = $ac_func;
38645#endif
38646#ifdef __cplusplus
38647}
38648#endif
38649
38650int
38651main ()
38652{
38653return f != $ac_func;
38654 ;
38655 return 0;
38656}
38657_ACEOF
38658rm -f conftest.$ac_objext conftest$ac_exeext
38659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38660 (eval $ac_link) 2>conftest.er1
a848cd7e 38661 ac_status=$?
ac1cb8d3
VS
38662 grep -v '^ *+' conftest.er1 >conftest.err
38663 rm -f conftest.er1
38664 cat conftest.err >&5
a848cd7e
SC
38665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38666 (exit $ac_status); } &&
da4486fb 38667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38669 (eval $ac_try) 2>&5
38670 ac_status=$?
38671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672 (exit $ac_status); }; } &&
38673 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38675 (eval $ac_try) 2>&5
38676 ac_status=$?
38677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38678 (exit $ac_status); }; }; then
38679 eval "$as_ac_var=yes"
38680else
38681 echo "$as_me: failed program was:" >&5
38682sed 's/^/| /' conftest.$ac_ext >&5
38683
38684eval "$as_ac_var=no"
38685fi
ac1cb8d3
VS
38686rm -f conftest.err conftest.$ac_objext \
38687 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38688fi
38689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38690echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38691if test `eval echo '${'$as_ac_var'}'` = yes; then
38692 cat >>confdefs.h <<_ACEOF
38693#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38694_ACEOF
38695 have_ceil=1
38696fi
38697done
38698
38699 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38700echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38701 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38702 echo "$as_me:$LINENO: result: yes" >&5
38703echo "${ECHO_T}yes" >&6
38704 else
38705 echo "$as_me:$LINENO: result: no" >&5
38706echo "${ECHO_T}no" >&6
38707 # not sure we should warn the user, crash, etc.
38708 fi
38709fi
38710
38711if test "$wxUSE_GUI" = "yes"; then
38712
38713
38714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38715 drawing dynamic erase event exec font image \
38716 minimal propsize rotate shaped widgets render"
38717
38718 if test "$wxUSE_MONOLITHIC" != "yes"; then
38719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38720 fi
38721else
38722 SAMPLES_SUBDIRS="console"
38723fi
38724
38725
ceec2216 38726INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
38727-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38728
38729if test "$GXX" = yes ; then
5294a27e
VZ
38730 CWARNINGS="-Wall"
38731 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
38732 fi
38733
38734EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38735
0c3c69fc 38736CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 38737CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 38738CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 38739
95986553
DE
38740if test "x$MWCC" = "xyes"; then
38741
38742 CC="$CC -cwd source -I-"
38743 CXX="$CXX -cwd source -I-"
38744fi
38745
a848cd7e 38746
0c3c69fc 38747LIBS=`echo $LIBS`
a848cd7e
SC
38748EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38749EXTRALIBS_XML="$EXPAT_LINK"
38750EXTRALIBS_HTML="$MSPACK_LINK"
38751EXTRALIBS_ODBC="$ODBC_LINK"
38752if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 38753 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
38754fi
38755if test "$wxUSE_OPENGL" = "yes"; then
38756 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38757fi
38758
38759LDFLAGS="$LDFLAGS $PROFILE"
38760
38761if test "$wxUSE_GTK" = 1; then
38762 WXCONFIG_INCLUDE=
38763else
38764 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38765fi
38766
38767WXCONFIG_EXTRALIBS="$LIBS"
38768
38769if test "$wxUSE_REGEX" = "builtin" ; then
38770 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38771fi
38772if test "$wxUSE_EXPAT" = "builtin" ; then
38773 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38774fi
38775if test "$wxUSE_ODBC" = "builtin" ; then
38776 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38777fi
38778if test "$wxUSE_LIBTIFF" = "builtin" ; then
38779 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38780fi
38781if test "$wxUSE_LIBJPEG" = "builtin" ; then
38782 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38783fi
38784if test "$wxUSE_LIBPNG" = "builtin" ; then
38785 wxconfig_3rdparty="$wxconfig_3rdparty png"
38786fi
38787if test "$wxUSE_ZLIB" = "builtin" ; then
38788 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38789fi
38790if test "$wxUSE_ODBC" = "builtin" ; then
38791 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38792fi
38793
38794for i in $wxconfig_3rdparty ; do
ceec2216 38795 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38796done
38797
38798
38799if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38800 WXUNIV=1
38801else
38802 WXUNIV=0
38803fi
38804
38805
38806
38807
38808
38809
38810
38811
38812
38813if test $wxUSE_MONOLITHIC = "yes" ; then
38814 MONOLITHIC=1
38815else
38816 MONOLITHIC=0
38817fi
38818
38819if test $wxUSE_PLUGINS = "yes" ; then
38820 USE_PLUGINS=1
38821else
38822 USE_PLUGINS=0
38823fi
38824
38825if test $wxUSE_ODBC != "no" ; then
38826 USE_ODBC=1
38827else
38828 USE_ODBC=0
38829fi
38830
38831if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38832 OFFICIAL_BUILD=1
38833else
38834 OFFICIAL_BUILD=0
38835fi
38836
38837
38838
38839
38840
38841
38842
38843
38844
38845
38846
38847
38848
38849
38850
38851
38852
38853
38854
ceec2216 38855
d1c38808 38856
a848cd7e
SC
38857
38858
38859TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38860
38861
38862
38863
38864
38865
38866
38867
4d4ff94c
VZ
38868case "$TOOLKIT" in
38869 GTK)
38870 TOOLKIT_USER="GTK+"
38871 if test "$WXGTK20" = 1; then
38872 TOOLKIT_USER="$TOOLKIT_USER 2"
38873 fi
9a8f0513 38874 ;;
4d4ff94c
VZ
38875
38876 *)
38877 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38878 ;;
4d4ff94c 38879esac
a848cd7e 38880
9a8f0513 38881
1e9e8aba
DE
38882
38883
a848cd7e
SC
38884 if test "x$BAKEFILE_HOST" = "x"; then
38885 BAKEFILE_HOST="${host}"
38886 fi
38887
38888 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38889
38890 if test -n "$ac_tool_prefix"; then
38891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38892set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38893echo "$as_me:$LINENO: checking for $ac_word" >&5
38894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38895if test "${ac_cv_prog_RANLIB+set}" = set; then
38896 echo $ECHO_N "(cached) $ECHO_C" >&6
38897else
38898 if test -n "$RANLIB"; then
38899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38900else
38901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38902for as_dir in $PATH
38903do
38904 IFS=$as_save_IFS
38905 test -z "$as_dir" && as_dir=.
38906 for ac_exec_ext in '' $ac_executable_extensions; do
38907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38910 break 2
38911 fi
38912done
38913done
38914
38915fi
38916fi
38917RANLIB=$ac_cv_prog_RANLIB
38918if test -n "$RANLIB"; then
38919 echo "$as_me:$LINENO: result: $RANLIB" >&5
38920echo "${ECHO_T}$RANLIB" >&6
38921else
38922 echo "$as_me:$LINENO: result: no" >&5
38923echo "${ECHO_T}no" >&6
38924fi
38925
38926fi
38927if test -z "$ac_cv_prog_RANLIB"; then
38928 ac_ct_RANLIB=$RANLIB
38929 # Extract the first word of "ranlib", so it can be a program name with args.
38930set dummy ranlib; ac_word=$2
38931echo "$as_me:$LINENO: checking for $ac_word" >&5
38932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38933if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38934 echo $ECHO_N "(cached) $ECHO_C" >&6
38935else
38936 if test -n "$ac_ct_RANLIB"; then
38937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38938else
38939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38940for as_dir in $PATH
38941do
38942 IFS=$as_save_IFS
38943 test -z "$as_dir" && as_dir=.
38944 for ac_exec_ext in '' $ac_executable_extensions; do
38945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38946 ac_cv_prog_ac_ct_RANLIB="ranlib"
38947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38948 break 2
38949 fi
38950done
38951done
38952
38953 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38954fi
38955fi
38956ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38957if test -n "$ac_ct_RANLIB"; then
38958 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38959echo "${ECHO_T}$ac_ct_RANLIB" >&6
38960else
38961 echo "$as_me:$LINENO: result: no" >&5
38962echo "${ECHO_T}no" >&6
38963fi
38964
38965 RANLIB=$ac_ct_RANLIB
38966else
38967 RANLIB="$ac_cv_prog_RANLIB"
38968fi
38969
38970 # Find a good install program. We prefer a C program (faster),
38971# so one script is as good as another. But avoid the broken or
38972# incompatible versions:
38973# SysV /etc/install, /usr/sbin/install
38974# SunOS /usr/etc/install
38975# IRIX /sbin/install
38976# AIX /bin/install
38977# AmigaOS /C/install, which installs bootblocks on floppy discs
38978# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38979# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38980# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38981# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38982# ./install, which can be erroneously created by make from ./install.sh.
38983echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38984echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38985if test -z "$INSTALL"; then
38986if test "${ac_cv_path_install+set}" = set; then
38987 echo $ECHO_N "(cached) $ECHO_C" >&6
38988else
38989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38990for as_dir in $PATH
38991do
38992 IFS=$as_save_IFS
38993 test -z "$as_dir" && as_dir=.
38994 # Account for people who put trailing slashes in PATH elements.
38995case $as_dir/ in
38996 ./ | .// | /cC/* | \
38997 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38998 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38999 /usr/ucb/* ) ;;
39000 *)
39001 # OSF1 and SCO ODT 3.0 have their own names for install.
39002 # Don't use installbsd from OSF since it installs stuff as root
39003 # by default.
39004 for ac_prog in ginstall scoinst install; do
39005 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
39006 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
39007 if test $ac_prog = install &&
39008 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39009 # AIX install. It has an incompatible calling convention.
39010 :
39011 elif test $ac_prog = install &&
39012 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39013 # program-specific install script used by HP pwplus--don't use.
39014 :
39015 else
39016 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
39017 break 3
39018 fi
39019 fi
a848cd7e
SC
39020 done
39021 done
39022 ;;
39023esac
39024done
39025
39026
39027fi
39028 if test "${ac_cv_path_install+set}" = set; then
39029 INSTALL=$ac_cv_path_install
39030 else
39031 # As a last resort, use the slow shell script. We don't cache a
39032 # path for INSTALL within a source directory, because that will
39033 # break other packages using the cache if that directory is
39034 # removed, or if the path is relative.
39035 INSTALL=$ac_install_sh
39036 fi
39037fi
39038echo "$as_me:$LINENO: result: $INSTALL" >&5
39039echo "${ECHO_T}$INSTALL" >&6
39040
39041# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
39042# It thinks the first close brace ends the variable substitution.
39043test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
39044
39045test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
39046
39047test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39048
39049 echo "$as_me:$LINENO: checking whether ln -s works" >&5
39050echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
39051LN_S=$as_ln_s
39052if test "$LN_S" = "ln -s"; then
39053 echo "$as_me:$LINENO: result: yes" >&5
39054echo "${ECHO_T}yes" >&6
39055else
39056 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
39057echo "${ECHO_T}no, using $LN_S" >&6
39058fi
39059
39060
39061 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39062echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 39063set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
39064if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39065 echo $ECHO_N "(cached) $ECHO_C" >&6
39066else
39067 cat >conftest.make <<\_ACEOF
39068all:
39069 @echo 'ac_maketemp="$(MAKE)"'
39070_ACEOF
39071# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39072eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39073if test -n "$ac_maketemp"; then
39074 eval ac_cv_prog_make_${ac_make}_set=yes
39075else
39076 eval ac_cv_prog_make_${ac_make}_set=no
39077fi
39078rm -f conftest.make
39079fi
39080if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39081 echo "$as_me:$LINENO: result: yes" >&5
39082echo "${ECHO_T}yes" >&6
39083 SET_MAKE=
39084else
39085 echo "$as_me:$LINENO: result: no" >&5
39086echo "${ECHO_T}no" >&6
39087 SET_MAKE="MAKE=${MAKE-make}"
39088fi
39089
39090
39091
39092 if test -n "$ac_tool_prefix"; then
39093 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
39094set dummy ${ac_tool_prefix}ar; ac_word=$2
39095echo "$as_me:$LINENO: checking for $ac_word" >&5
39096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39097if test "${ac_cv_prog_AR+set}" = set; then
39098 echo $ECHO_N "(cached) $ECHO_C" >&6
39099else
39100 if test -n "$AR"; then
39101 ac_cv_prog_AR="$AR" # Let the user override the test.
39102else
39103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39104for as_dir in $PATH
39105do
39106 IFS=$as_save_IFS
39107 test -z "$as_dir" && as_dir=.
39108 for ac_exec_ext in '' $ac_executable_extensions; do
39109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39110 ac_cv_prog_AR="${ac_tool_prefix}ar"
39111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39112 break 2
39113 fi
39114done
39115done
39116
39117fi
39118fi
39119AR=$ac_cv_prog_AR
39120if test -n "$AR"; then
39121 echo "$as_me:$LINENO: result: $AR" >&5
39122echo "${ECHO_T}$AR" >&6
39123else
39124 echo "$as_me:$LINENO: result: no" >&5
39125echo "${ECHO_T}no" >&6
39126fi
39127
39128fi
39129if test -z "$ac_cv_prog_AR"; then
39130 ac_ct_AR=$AR
39131 # Extract the first word of "ar", so it can be a program name with args.
39132set dummy ar; ac_word=$2
39133echo "$as_me:$LINENO: checking for $ac_word" >&5
39134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39135if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
39136 echo $ECHO_N "(cached) $ECHO_C" >&6
39137else
39138 if test -n "$ac_ct_AR"; then
39139 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
39140else
39141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39142for as_dir in $PATH
39143do
39144 IFS=$as_save_IFS
39145 test -z "$as_dir" && as_dir=.
39146 for ac_exec_ext in '' $ac_executable_extensions; do
39147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39148 ac_cv_prog_ac_ct_AR="ar"
39149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39150 break 2
39151 fi
39152done
39153done
39154
39155 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39156fi
39157fi
39158ac_ct_AR=$ac_cv_prog_ac_ct_AR
39159if test -n "$ac_ct_AR"; then
39160 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39161echo "${ECHO_T}$ac_ct_AR" >&6
39162else
39163 echo "$as_me:$LINENO: result: no" >&5
39164echo "${ECHO_T}no" >&6
39165fi
39166
39167 AR=$ac_ct_AR
39168else
39169 AR="$ac_cv_prog_AR"
39170fi
39171
39172 if test -n "$ac_tool_prefix"; then
39173 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39174set dummy ${ac_tool_prefix}strip; ac_word=$2
39175echo "$as_me:$LINENO: checking for $ac_word" >&5
39176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39177if test "${ac_cv_prog_STRIP+set}" = set; then
39178 echo $ECHO_N "(cached) $ECHO_C" >&6
39179else
39180 if test -n "$STRIP"; then
39181 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39182else
39183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39184for as_dir in $PATH
39185do
39186 IFS=$as_save_IFS
39187 test -z "$as_dir" && as_dir=.
39188 for ac_exec_ext in '' $ac_executable_extensions; do
39189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39190 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39192 break 2
39193 fi
39194done
39195done
39196
39197fi
39198fi
39199STRIP=$ac_cv_prog_STRIP
39200if test -n "$STRIP"; then
39201 echo "$as_me:$LINENO: result: $STRIP" >&5
39202echo "${ECHO_T}$STRIP" >&6
39203else
39204 echo "$as_me:$LINENO: result: no" >&5
39205echo "${ECHO_T}no" >&6
39206fi
39207
39208fi
39209if test -z "$ac_cv_prog_STRIP"; then
39210 ac_ct_STRIP=$STRIP
39211 # Extract the first word of "strip", so it can be a program name with args.
39212set dummy strip; ac_word=$2
39213echo "$as_me:$LINENO: checking for $ac_word" >&5
39214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39215if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
39216 echo $ECHO_N "(cached) $ECHO_C" >&6
39217else
39218 if test -n "$ac_ct_STRIP"; then
39219 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
39220else
39221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39222for as_dir in $PATH
39223do
39224 IFS=$as_save_IFS
39225 test -z "$as_dir" && as_dir=.
39226 for ac_exec_ext in '' $ac_executable_extensions; do
39227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39228 ac_cv_prog_ac_ct_STRIP="strip"
39229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39230 break 2
39231 fi
39232done
39233done
39234
39235 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
39236fi
39237fi
39238ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
39239if test -n "$ac_ct_STRIP"; then
39240 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
39241echo "${ECHO_T}$ac_ct_STRIP" >&6
39242else
39243 echo "$as_me:$LINENO: result: no" >&5
39244echo "${ECHO_T}no" >&6
39245fi
39246
39247 STRIP=$ac_ct_STRIP
39248else
39249 STRIP="$ac_cv_prog_STRIP"
39250fi
39251
39252 if test -n "$ac_tool_prefix"; then
39253 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
39254set dummy ${ac_tool_prefix}nm; ac_word=$2
39255echo "$as_me:$LINENO: checking for $ac_word" >&5
39256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39257if test "${ac_cv_prog_NM+set}" = set; then
39258 echo $ECHO_N "(cached) $ECHO_C" >&6
39259else
39260 if test -n "$NM"; then
39261 ac_cv_prog_NM="$NM" # Let the user override the test.
39262else
39263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39264for as_dir in $PATH
39265do
39266 IFS=$as_save_IFS
39267 test -z "$as_dir" && as_dir=.
39268 for ac_exec_ext in '' $ac_executable_extensions; do
39269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39270 ac_cv_prog_NM="${ac_tool_prefix}nm"
39271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39272 break 2
39273 fi
39274done
39275done
39276
39277fi
39278fi
39279NM=$ac_cv_prog_NM
39280if test -n "$NM"; then
39281 echo "$as_me:$LINENO: result: $NM" >&5
39282echo "${ECHO_T}$NM" >&6
39283else
39284 echo "$as_me:$LINENO: result: no" >&5
39285echo "${ECHO_T}no" >&6
39286fi
39287
39288fi
39289if test -z "$ac_cv_prog_NM"; then
39290 ac_ct_NM=$NM
39291 # Extract the first word of "nm", so it can be a program name with args.
39292set dummy nm; ac_word=$2
39293echo "$as_me:$LINENO: checking for $ac_word" >&5
39294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39295if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
39296 echo $ECHO_N "(cached) $ECHO_C" >&6
39297else
39298 if test -n "$ac_ct_NM"; then
39299 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
39300else
39301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39302for as_dir in $PATH
39303do
39304 IFS=$as_save_IFS
39305 test -z "$as_dir" && as_dir=.
39306 for ac_exec_ext in '' $ac_executable_extensions; do
39307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39308 ac_cv_prog_ac_ct_NM="nm"
39309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39310 break 2
39311 fi
39312done
39313done
39314
39315 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
39316fi
39317fi
39318ac_ct_NM=$ac_cv_prog_ac_ct_NM
39319if test -n "$ac_ct_NM"; then
39320 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
39321echo "${ECHO_T}$ac_ct_NM" >&6
39322else
39323 echo "$as_me:$LINENO: result: no" >&5
39324echo "${ECHO_T}no" >&6
39325fi
39326
39327 NM=$ac_ct_NM
39328else
39329 NM="$ac_cv_prog_NM"
39330fi
39331
39332
39333 case ${BAKEFILE_HOST} in
39334 *-hp-hpux* )
1e9e8aba 39335 INSTALL_DIR="mkdir -p"
a848cd7e
SC
39336 ;;
39337 *) INSTALL_DIR="$INSTALL -d"
39338 ;;
39339 esac
39340
39341
39342 LDFLAGS_GUI=
39343 case ${BAKEFILE_HOST} in
39344 *-*-cygwin* | *-*-mingw32* )
39345 LDFLAGS_GUI="-mwindows"
39346 esac
39347
39348
39349 fi
39350
39351 echo "$as_me:$LINENO: checking if make is GNU make" >&5
39352echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
39353if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
39354 echo $ECHO_N "(cached) $ECHO_C" >&6
39355else
39356
39357 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
39358 egrep -s GNU > /dev/null); then
39359 bakefile_cv_prog_makeisgnu="yes"
39360 else
39361 bakefile_cv_prog_makeisgnu="no"
39362 fi
39363
39364fi
39365echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39366echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39367
39368 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39369 IF_GNU_MAKE=""
39370 else
39371 IF_GNU_MAKE="#"
39372 fi
39373
39374
39375
39376 PLATFORM_UNIX=0
39377 PLATFORM_WIN32=0
39378 PLATFORM_MSDOS=0
39379 PLATFORM_MAC=0
1e9e8aba 39380 PLATFORM_MACOS=0
a848cd7e
SC
39381 PLATFORM_MACOSX=0
39382 PLATFORM_OS2=0
1e9e8aba 39383 PLATFORM_BEOS=0
a848cd7e
SC
39384
39385 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
39386 case "${BAKEFILE_HOST}" in
39387 *-*-cygwin* | *-*-mingw32* )
39388 PLATFORM_WIN32=1
39389 ;;
39390 *-pc-msdosdjgpp )
39391 PLATFORM_MSDOS=1
39392 ;;
39393 *-pc-os2_emx | *-pc-os2-emx )
39394 PLATFORM_OS2=1
39395 ;;
39396 powerpc-*-darwin* )
39397 PLATFORM_MAC=1
39398 PLATFORM_MACOSX=1
39399 ;;
1e9e8aba
DE
39400 *-*-beos* )
39401 PLATFORM_BEOS=1
39402 ;;
39403 powerpc-apple-macos* )
39404 PLATFORM_MAC=1
39405 PLATFORM_MACOS=1
39406 ;;
a848cd7e
SC
39407 * )
39408 PLATFORM_UNIX=1
39409 ;;
39410 esac
39411 else
39412 case "$BAKEFILE_FORCE_PLATFORM" in
39413 win32 )
39414 PLATFORM_WIN32=1
39415 ;;
39416 msdos )
39417 PLATFORM_MSDOS=1
39418 ;;
39419 os2 )
39420 PLATFORM_OS2=1
39421 ;;
39422 darwin )
39423 PLATFORM_MAC=1
39424 PLATFORM_MACOSX=1
39425 ;;
39426 unix )
39427 PLATFORM_UNIX=1
39428 ;;
1e9e8aba
DE
39429 beos )
39430 PLATFORM_BEOS=1
39431 ;;
a848cd7e
SC
39432 * )
39433 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
39434echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
39435 { (exit 1); exit 1; }; }
39436 ;;
39437 esac
39438 fi
39439
39440
39441
39442
39443
39444
39445
39446
39447
1e9e8aba
DE
39448
39449
a848cd7e
SC
39450 # Check whether --enable-omf or --disable-omf was given.
39451if test "${enable_omf+set}" = set; then
39452 enableval="$enable_omf"
39453 bk_os2_use_omf="$enableval"
39454fi;
39455
39456 case "${BAKEFILE_HOST}" in
39457 *-*-darwin* )
39458 CFLAGS="$CFLAGS -fno-common"
39459 CXXFLAGS="$CXXFLAGS -fno-common"
39460 ;;
39461
39462 *-pc-os2_emx | *-pc-os2-emx )
39463 if test "x$bk_os2_use_omf" = "xyes" ; then
39464 AR=emxomfar
39465 RANLIB=:
39466 LDFLAGS="-Zomf $LDFLAGS"
39467 CFLAGS="-Zomf $CFLAGS"
39468 CXXFLAGS="-Zomf $CXXFLAGS"
39469 OS2_LIBEXT="lib"
39470 else
39471 OS2_LIBEXT="a"
39472 fi
39473 ;;
1e9e8aba
DE
39474
39475 i*86-*-beos* )
39476 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
39477 ;;
a848cd7e
SC
39478 esac
39479
39480
39481 SO_SUFFIX="so"
39482 SO_SUFFIX_MODULE="so"
39483 EXEEXT=""
39484 LIBPREFIX="lib"
39485 LIBEXT=".a"
39486 DLLPREFIX="lib"
39487 DLLPREFIX_MODULE=""
39488 DLLIMP_SUFFIX=""
39489
39490 case "${BAKEFILE_HOST}" in
39491 *-hp-hpux* )
39492 SO_SUFFIX="sl"
39493 SO_SUFFIX_MODULE="sl"
39494 ;;
39495 *-*-aix* )
39496 SO_SUFFIX="a"
39497 SO_SUFFIX_MODULE="a"
39498 ;;
39499 *-*-cygwin* | *-*-mingw32* )
39500 SO_SUFFIX="dll"
39501 SO_SUFFIX_MODULE="dll"
39502 DLLIMP_SUFFIX="dll.a"
39503 EXEEXT=".exe"
39504 DLLPREFIX=""
39505 ;;
39506 *-pc-msdosdjgpp )
39507 EXEEXT=".exe"
39508 DLLPREFIX=""
39509 ;;
39510 *-pc-os2_emx | *-pc-os2-emx )
39511 SO_SUFFIX="dll"
39512 SO_SUFFIX_MODULE="dll"
39513 DLLIMP_SUFFIX=$OS2_LIBEXT
39514 EXEEXT=".exe"
39515 DLLPREFIX=""
39516 LIBPREFIX=""
39517 LIBEXT=".$OS2_LIBEXT"
39518 ;;
39519 powerpc-*-darwin* )
39520 SO_SUFFIX="dylib"
39521 SO_SUFFIX_MODULE="bundle"
39522 ;;
39523 esac
39524
39525 if test "x$DLLIMP_SUFFIX" = "x" ; then
39526 DLLIMP_SUFFIX="$SO_SUFFIX"
39527 fi
39528
39529
39530
39531
39532
39533
39534
39535
39536
39537
39538
1e9e8aba
DE
39539 PIC_FLAG=""
39540 if test "x$GCC" = "xyes"; then
a848cd7e
SC
39541 PIC_FLAG="-fPIC"
39542 fi
39543
1e9e8aba
DE
39544 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
39545 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
39546
a848cd7e
SC
39547 case "${BAKEFILE_HOST}" in
39548 *-hp-hpux* )
1e9e8aba 39549 if test "x$GCC" != "xyes"; then
a848cd7e
SC
39550 LDFLAGS="$LDFLAGS -L/usr/lib"
39551
39552 SHARED_LD_CC="${CC} -b -o"
39553 SHARED_LD_CXX="${CXX} -b -o"
39554 PIC_FLAG="+Z"
39555 fi
39556 ;;
39557
39558 *-*-linux* )
39559 if test "x$GCC" != "xyes"; then
39560 echo "$as_me:$LINENO: checking for Intel compiler" >&5
39561echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
39562if test "${bakefile_cv_prog_icc+set}" = set; then
39563 echo $ECHO_N "(cached) $ECHO_C" >&6
39564else
39565
39566 cat >conftest.$ac_ext <<_ACEOF
39567/* confdefs.h. */
39568_ACEOF
39569cat confdefs.h >>conftest.$ac_ext
39570cat >>conftest.$ac_ext <<_ACEOF
39571/* end confdefs.h. */
39572
39573int
39574main ()
39575{
39576
39577 #ifndef __INTEL_COMPILER
39578 #error Not icc
39579 #endif
39580
39581 ;
39582 return 0;
39583}
39584_ACEOF
39585rm -f conftest.$ac_objext
39586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39587 (eval $ac_compile) 2>conftest.er1
a848cd7e 39588 ac_status=$?
ac1cb8d3
VS
39589 grep -v '^ *+' conftest.er1 >conftest.err
39590 rm -f conftest.er1
39591 cat conftest.err >&5
a848cd7e
SC
39592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593 (exit $ac_status); } &&
da4486fb 39594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39596 (eval $ac_try) 2>&5
39597 ac_status=$?
39598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599 (exit $ac_status); }; } &&
39600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39602 (eval $ac_try) 2>&5
39603 ac_status=$?
39604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605 (exit $ac_status); }; }; then
39606 bakefile_cv_prog_icc=yes
39607else
39608 echo "$as_me: failed program was:" >&5
39609sed 's/^/| /' conftest.$ac_ext >&5
39610
39611bakefile_cv_prog_icc=no
39612
39613fi
ac1cb8d3 39614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39615
39616fi
39617echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39618echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39619 if test "$bakefile_cv_prog_icc" = "yes"; then
39620 PIC_FLAG="-KPIC"
39621 fi
39622 fi
39623 ;;
39624
39625 *-*-solaris2* )
39626 if test "x$GCC" != xyes ; then
39627 SHARED_LD_CC="${CC} -G -o"
39628 SHARED_LD_CXX="${CXX} -G -o"
39629 PIC_FLAG="-KPIC"
39630 fi
39631 ;;
39632
39633 *-*-darwin* )
39634
39635 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39636echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39637if test "${wx_cv_gcc31+set}" = set; then
39638 echo $ECHO_N "(cached) $ECHO_C" >&6
39639else
39640
39641 cat >conftest.$ac_ext <<_ACEOF
39642/* confdefs.h. */
39643_ACEOF
39644cat confdefs.h >>conftest.$ac_ext
39645cat >>conftest.$ac_ext <<_ACEOF
39646/* end confdefs.h. */
39647
39648int
39649main ()
39650{
39651
39652 #if (__GNUC__ < 3) || \
39653 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39654 #error old gcc
39655 #endif
39656
39657 ;
39658 return 0;
39659}
39660_ACEOF
39661rm -f conftest.$ac_objext
39662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39663 (eval $ac_compile) 2>conftest.er1
a848cd7e 39664 ac_status=$?
ac1cb8d3
VS
39665 grep -v '^ *+' conftest.er1 >conftest.err
39666 rm -f conftest.er1
39667 cat conftest.err >&5
a848cd7e
SC
39668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39669 (exit $ac_status); } &&
da4486fb 39670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39672 (eval $ac_try) 2>&5
39673 ac_status=$?
39674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675 (exit $ac_status); }; } &&
39676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39678 (eval $ac_try) 2>&5
39679 ac_status=$?
39680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681 (exit $ac_status); }; }; then
39682
39683 wx_cv_gcc31=yes
39684
39685else
39686 echo "$as_me: failed program was:" >&5
39687sed 's/^/| /' conftest.$ac_ext >&5
39688
39689
39690 wx_cv_gcc31=no
39691
39692
39693fi
ac1cb8d3 39694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39695
39696fi
39697echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39698echo "${ECHO_T}$wx_cv_gcc31" >&6
39699 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
39700
39701D='$'
39702cat <<EOF >shared-ld-sh
a848cd7e
SC
39703#!/bin/sh
39704#-----------------------------------------------------------------------------
39705#-- Name: distrib/mac/shared-ld-sh
39706#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
39707#-- Author: Gilles Depeyrot
39708#-- Copyright: (c) 2002 Gilles Depeyrot
39709#-- Licence: any use permitted
39710#-----------------------------------------------------------------------------
39711
39712verbose=0
39713args=""
39714objects=""
39715linking_flag="-dynamiclib"
39716
473276a9
VS
39717while test ${D}# -gt 0; do
39718 case ${D}1 in
a848cd7e
SC
39719
39720 -v)
39721 verbose=1
39722 ;;
39723
39724 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39725 # collect these options and values
473276a9 39726 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39727 shift
39728 ;;
39729
39730 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39731 # collect these options
473276a9 39732 args="${D}{args} ${D}1"
a848cd7e
SC
39733 ;;
39734
39735 -dynamiclib|-bundle)
473276a9 39736 linking_flag="${D}1"
a848cd7e
SC
39737 ;;
39738
39739 -*)
473276a9 39740 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39741 exit 1
39742 ;;
39743
39744 *.o | *.a | *.dylib)
39745 # collect object files
473276a9 39746 objects="${D}{objects} ${D}1"
a848cd7e
SC
39747 ;;
39748
39749 *)
473276a9 39750 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39751 exit 1
39752 ;;
39753
39754 esac
39755 shift
39756done
39757
39758#
39759# Link one module containing all the others
39760#
473276a9
VS
39761if test ${D}{verbose} = 1; then
39762 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39763fi
473276a9
VS
39764c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39765status=${D}?
39766if test ${D}{status} != 0; then
39767 exit ${D}{status}
a848cd7e
SC
39768fi
39769
39770#
39771# Link the shared library from the single module created
39772#
473276a9
VS
39773if test ${D}{verbose} = 1; then
39774 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39775fi
473276a9
VS
39776c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39777status=${D}?
39778if test ${D}{status} != 0; then
39779 exit ${D}{status}
a848cd7e
SC
39780fi
39781
39782#
39783# Remove intermediate module
39784#
473276a9 39785rm -f master.${D}${D}.o
a848cd7e
SC
39786
39787exit 0
39788EOF
473276a9 39789
a848cd7e
SC
39790 chmod +x shared-ld-sh
39791
39792 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39793 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39794 SHARED_LD_CXX="$SHARED_LD_CC"
39795 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39796 else
39797 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39798 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39799 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39800 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39801 fi
39802
39803 PIC_FLAG="-dynamic -fPIC"
39804 ;;
39805
39806 *-*-aix* )
39807 if test "x$GCC" != "xyes"; then
39808 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39809set dummy makeC++SharedLib; ac_word=$2
39810echo "$as_me:$LINENO: checking for $ac_word" >&5
39811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39812if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39813 echo $ECHO_N "(cached) $ECHO_C" >&6
39814else
39815 if test -n "$AIX_CXX_LD"; then
39816 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39817else
39818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39819for as_dir in $PATH
39820do
39821 IFS=$as_save_IFS
39822 test -z "$as_dir" && as_dir=.
39823 for ac_exec_ext in '' $ac_executable_extensions; do
39824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39825 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39827 break 2
39828 fi
39829done
39830done
39831
39832 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39833fi
39834fi
39835AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39836if test -n "$AIX_CXX_LD"; then
39837 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39838echo "${ECHO_T}$AIX_CXX_LD" >&6
39839else
39840 echo "$as_me:$LINENO: result: no" >&5
39841echo "${ECHO_T}no" >&6
39842fi
39843
39844 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39845 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39846 fi
39847 ;;
39848
39849 *-*-beos* )
1e9e8aba
DE
39850 SHARED_LD_CC="${LD} -nostart -o"
39851 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
39852 ;;
39853
39854 *-*-irix* )
39855 if test "x$GCC" != "xyes"; then
39856 PIC_FLAG="-KPIC"
39857 fi
39858 ;;
39859
39860 *-*-cygwin* | *-*-mingw32* )
39861 PIC_FLAG=""
1e9e8aba
DE
39862 SHARED_LD_CC="\$(CC) -shared -o"
39863 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
39864 ;;
39865
39866 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
39867 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
39868 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 39869 PIC_FLAG=""
473276a9
VS
39870
39871D='$'
39872cat <<EOF >dllar.sh
39873#!/bin/sh
39874#
39875# dllar - a tool to build both a .dll and an .a file
39876# from a set of object (.o) files for EMX/OS2.
39877#
39878# Written by Andrew Zabolotny, bit@freya.etu.ru
39879# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39880#
39881# This script will accept a set of files on the command line.
39882# All the public symbols from the .o files will be exported into
39883# a .DEF file, then linker will be run (through gcc) against them to
39884# build a shared library consisting of all given .o files. All libraries
39885# (.a) will be first decompressed into component .o files then act as
39886# described above. You can optionally give a description (-d "description")
39887# which will be put into .DLL. To see the list of accepted options (as well
39888# as command-line format) simply run this program without options. The .DLL
39889# is built to be imported by name (there is no guarantee that new versions
39890# of the library you build will have same ordinals for same symbols).
39891#
39892# dllar is free software; you can redistribute it and/or modify
39893# it under the terms of the GNU General Public License as published by
39894# the Free Software Foundation; either version 2, or (at your option)
39895# any later version.
39896#
39897# dllar is distributed in the hope that it will be useful,
39898# but WITHOUT ANY WARRANTY; without even the implied warranty of
39899# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39900# GNU General Public License for more details.
39901#
39902# You should have received a copy of the GNU General Public License
39903# along with dllar; see the file COPYING. If not, write to the Free
39904# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39905# 02111-1307, USA.
39906
39907# To successfuly run this program you will need:
39908# - Current drive should have LFN support (HPFS, ext2, network, etc)
39909# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39910# - gcc
39911# (used to build the .dll)
39912# - emxexp
39913# (used to create .def file from .o files)
39914# - emximp
39915# (used to create .a file from .def file)
39916# - GNU text utilites (cat, sort, uniq)
39917# used to process emxexp output
39918# - GNU file utilities (mv, rm)
39919# - GNU sed
39920# - lxlite (optional, see flag below)
39921# (used for general .dll cleanup)
39922#
39923
39924flag_USE_LXLITE=1;
39925
39926#
39927# helper functions
39928# basnam, variant of basename, which does _not_ remove the path, _iff_
39929# second argument (suffix to remove) is given
39930basnam(){
39931 case ${D}# in
39932 1)
1e9e8aba 39933 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
39934 ;;
39935 2)
39936 echo ${D}1 | sed 's/'${D}2'${D}//'
39937 ;;
39938 *)
39939 echo "error in basnam ${D}*"
39940 exit 8
39941 ;;
39942 esac
39943}
39944
39945# Cleanup temporary files and output
39946CleanUp() {
39947 cd ${D}curDir
39948 for i in ${D}inputFiles ; do
39949 case ${D}i in
39950 *!)
39951 rm -rf \`basnam ${D}i !\`
39952 ;;
39953 *)
39954 ;;
39955 esac
39956 done
39957
39958 # Kill result in case of failure as there is just to many stupid make/nmake
39959 # things out there which doesn't do this.
1e9e8aba 39960 if [ ${D}# -eq 0 ]; then
473276a9
VS
39961 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39962 fi
39963}
39964
39965# Print usage and exit script with rc=1.
39966PrintHelp() {
b1d22ded
DE
39967 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
39968 echo ' [-name-mangler-script script.sh]'
39969 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
39970 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
39971 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 39972 echo ' [*.o] [*.a]'
473276a9
VS
39973 echo '*> "output_file" should have no extension.'
39974 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39975 echo ' The import library name is derived from this and is set to "name".a,'
39976 echo ' unless overridden by -import'
39977 echo '*> "importlib_name" should have no extension.'
39978 echo ' If it has the .o, or .a extension, it is automatically removed.'
39979 echo ' This name is used as the import library name and may be longer and'
39980 echo ' more descriptive than the DLL name which has to follow the old '
39981 echo ' 8.3 convention of FAT.'
b1d22ded
DE
39982 echo '*> "script.sh may be given to override the output_file name by a'
39983 echo ' different name. It is mainly useful if the regular make process'
39984 echo ' of some package does not take into account OS/2 restriction of'
39985 echo ' DLL name lengths. It takes the importlib name as input and is'
39986 echo ' supposed to procude a shorter name as output. The script should'
39987 echo ' expect to get importlib_name without extension and should produce'
39988 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
39989 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39990 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39991 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
39992 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
39993 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
39994 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39995 echo ' If the last character of a symbol is "*", all symbols beginning'
39996 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 39997 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39998 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 39999 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 40000 echo ' C runtime DLLs.'
b1d22ded 40001 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
40002 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
40003 echo ' unchanged to GCC at the end of command line.'
40004 echo '*> If you create a DLL from a library and you do not specify -o,'
40005 echo ' the basename for DLL and import library will be set to library name,'
40006 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
40007 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
40008 echo ' library will be renamed into gcc_s.a.'
40009 echo '--------'
40010 echo 'Example:'
40011 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
40012 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
40013 CleanUp
40014 exit 1
40015}
40016
40017# Execute a command.
40018# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
40019# @Uses Whatever CleanUp() uses.
40020doCommand() {
40021 echo "${D}*"
40022 eval ${D}*
40023 rcCmd=${D}?
40024
1e9e8aba 40025 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
40026 echo "command failed, exit code="${D}rcCmd
40027 CleanUp
40028 exit ${D}rcCmd
40029 fi
40030}
40031
40032# main routine
40033# setup globals
40034cmdLine=${D}*
40035outFile=""
40036outimpFile=""
40037inputFiles=""
b1d22ded 40038renameScript=""
473276a9
VS
40039description=""
40040CC=gcc.exe
40041CFLAGS="-s -Zcrtdll"
40042EXTRA_CFLAGS=""
40043EXPORT_BY_ORDINALS=0
40044exclude_symbols=""
40045library_flags=""
40046curDir=\`pwd\`
40047curDirS=curDir
40048case ${D}curDirS in
40049*/)
40050 ;;
40051*)
40052 curDirS=${D}{curDirS}"/"
40053 ;;
40054esac
40055# Parse commandline
40056libsToLink=0
b1d22ded 40057omfLinking=0
1e9e8aba 40058while [ ${D}1 ]; do
473276a9
VS
40059 case ${D}1 in
40060 -ord*)
40061 EXPORT_BY_ORDINALS=1;
40062 ;;
40063 -o*)
40064 shift
40065 outFile=${D}1
40066 ;;
40067 -i*)
40068 shift
40069 outimpFile=${D}1
40070 ;;
b1d22ded
DE
40071 -name-mangler-script)
40072 shift
40073 renameScript=${D}1
40074 ;;
473276a9
VS
40075 -d*)
40076 shift
40077 description=${D}1
40078 ;;
40079 -f*)
40080 shift
40081 CFLAGS=${D}1
40082 ;;
40083 -c*)
40084 shift
40085 CC=${D}1
40086 ;;
40087 -h*)
40088 PrintHelp
40089 ;;
40090 -ex*)
40091 shift
40092 exclude_symbols=${D}{exclude_symbols}${D}1" "
40093 ;;
40094 -libf*)
40095 shift
40096 library_flags=${D}{library_flags}${D}1" "
40097 ;;
40098 -nocrt*)
40099 CFLAGS="-s"
40100 ;;
40101 -nolxl*)
40102 flag_USE_LXLITE=0
40103 ;;
40104 -* | /*)
40105 case ${D}1 in
40106 -L* | -l*)
40107 libsToLink=1
40108 ;;
b1d22ded
DE
40109 -Zomf)
40110 omfLinking=1
40111 ;;
473276a9
VS
40112 *)
40113 ;;
40114 esac
40115 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40116 ;;
b1d22ded
DE
40117 *.dll)
40118 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
40119 if [ ${D}omfLinking -eq 1 ]; then
40120 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
40121 else
40122 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
40123 fi
40124 ;;
473276a9
VS
40125 *)
40126 found=0;
1e9e8aba 40127 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
40128 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40129 else
40130 for file in ${D}1 ; do
1e9e8aba 40131 if [ -f ${D}file ]; then
473276a9
VS
40132 inputFiles="${D}{inputFiles} ${D}file"
40133 found=1
40134 fi
40135 done
1e9e8aba 40136 if [ ${D}found -eq 0 ]; then
473276a9
VS
40137 echo "ERROR: No file(s) found: "${D}1
40138 exit 8
40139 fi
40140 fi
40141 ;;
40142 esac
40143 shift
40144done # iterate cmdline words
40145
40146#
1e9e8aba 40147if [ -z "${D}inputFiles" ]; then
473276a9
VS
40148 echo "dllar: no input files"
40149 PrintHelp
40150fi
40151
40152# Now extract all .o files from .a files
40153newInputFiles=""
40154for file in ${D}inputFiles ; do
40155 case ${D}file in
40156 *.a | *.lib)
40157 case ${D}file in
40158 *.a)
40159 suffix=".a"
40160 AR="ar"
40161 ;;
40162 *.lib)
40163 suffix=".lib"
40164 AR="emxomfar"
40165 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40166 ;;
40167 *)
40168 ;;
40169 esac
40170 dirname=\`basnam ${D}file ${D}suffix\`"_%"
40171 mkdir ${D}dirname
1e9e8aba 40172 if [ ${D}? -ne 0 ]; then
473276a9
VS
40173 echo "Failed to create subdirectory ./${D}dirname"
40174 CleanUp
40175 exit 8;
40176 fi
40177 # Append '!' to indicate archive
40178 newInputFiles="${D}newInputFiles ${D}{dirname}!"
40179 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40180 cd ${D}curDir
40181 found=0;
40182 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 40183 if [ -f ${D}subfile ]; then
473276a9 40184 found=1
1e9e8aba 40185 if [ -s ${D}subfile ]; then
473276a9
VS
40186 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40187 newInputFiles="${D}newInputFiles ${D}subfile"
40188 fi
40189 fi
40190 done
1e9e8aba
DE
40191 if [ ${D}found -eq 0 ]; then
40192 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
40193 fi
40194 ;;
40195 *)
40196 newInputFiles="${D}{newInputFiles} ${D}file"
40197 ;;
40198 esac
40199done
40200inputFiles="${D}newInputFiles"
40201
40202# Output filename(s).
40203do_backup=0;
1e9e8aba 40204if [ -z ${D}outFile ]; then
473276a9
VS
40205 do_backup=1;
40206 set outFile ${D}inputFiles; outFile=${D}2
40207fi
40208
40209# If it is an archive, remove the '!' and the '_%' suffixes
40210case ${D}outFile in
40211*_%!)
40212 outFile=\`basnam ${D}outFile _%!\`
40213 ;;
40214*)
40215 ;;
40216esac
40217case ${D}outFile in
40218*.dll)
40219 outFile=\`basnam ${D}outFile .dll\`
40220 ;;
40221*.DLL)
40222 outFile=\`basnam ${D}outFile .DLL\`
40223 ;;
40224*.o)
40225 outFile=\`basnam ${D}outFile .o\`
40226 ;;
40227*.obj)
40228 outFile=\`basnam ${D}outFile .obj\`
40229 ;;
40230*.a)
40231 outFile=\`basnam ${D}outFile .a\`
40232 ;;
40233*.lib)
40234 outFile=\`basnam ${D}outFile .lib\`
40235 ;;
40236*)
40237 ;;
40238esac
40239case ${D}outimpFile in
40240*.a)
40241 outimpFile=\`basnam ${D}outimpFile .a\`
40242 ;;
40243*.lib)
40244 outimpFile=\`basnam ${D}outimpFile .lib\`
40245 ;;
40246*)
40247 ;;
40248esac
1e9e8aba 40249if [ -z ${D}outimpFile ]; then
473276a9
VS
40250 outimpFile=${D}outFile
40251fi
40252defFile="${D}{outFile}.def"
40253arcFile="${D}{outimpFile}.a"
40254arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
40255
40256#create ${D}dllFile as something matching 8.3 restrictions,
40257if [ -z ${D}renameScript ] ; then
40258 dllFile="${D}outFile"
40259else
40260 dllFile=\`${D}renameScript ${D}outimpFile\`
40261fi
473276a9 40262
1e9e8aba
DE
40263if [ ${D}do_backup -ne 0 ] ; then
40264 if [ -f ${D}arcFile ] ; then
473276a9
VS
40265 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
40266 fi
1e9e8aba 40267 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
40268 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
40269 fi
40270fi
40271
40272# Extract public symbols from all the object files.
40273tmpdefFile=${D}{defFile}_%
40274rm -f ${D}tmpdefFile
40275for file in ${D}inputFiles ; do
40276 case ${D}file in
40277 *!)
40278 ;;
40279 *)
40280 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
40281 ;;
40282 esac
40283done
40284
40285# Create the def file.
40286rm -f ${D}defFile
40287echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
40288dllFile="${D}{dllFile}.dll"
40289if [ ! -z ${D}description ]; then
1e9e8aba 40290 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
40291fi
40292echo "EXPORTS" >> ${D}defFile
40293
40294doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
40295grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
40296
40297# Checks if the export is ok or not.
40298for word in ${D}exclude_symbols; do
40299 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
40300 mv ${D}{tmpdefFile}% ${D}tmpdefFile
40301done
40302
40303
1e9e8aba
DE
40304if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
40305 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
40306 sed '
40307 N
40308 : loop
1e9e8aba 40309 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
40310 t loop
40311 ' > ${D}{tmpdefFile}%
40312 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
40313else
40314 rm -f ${D}{tmpdefFile}%
40315fi
40316cat ${D}tmpdefFile >> ${D}defFile
40317rm -f ${D}tmpdefFile
40318
40319# Do linking, create implib, and apply lxlite.
40320gccCmdl="";
40321for file in ${D}inputFiles ; do
40322 case ${D}file in
40323 *!)
40324 ;;
40325 *)
40326 gccCmdl="${D}gccCmdl ${D}file"
40327 ;;
40328 esac
40329done
40330doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
40331touch "${D}{outFile}.dll"
40332
40333doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 40334if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 40335 add_flags="";
1e9e8aba 40336 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
40337 add_flags="-ynd"
40338 fi
40339 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
40340fi
40341doCommand "emxomf -s -l ${D}arcFile"
40342
40343# Successful exit.
40344CleanUp 1
40345exit 0
40346EOF
40347
40348 chmod +x dllar.sh
a848cd7e
SC
40349 ;;
40350
1e9e8aba 40351 powerpc-apple-macos* | \
a848cd7e
SC
40352 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
40353 *-*-sunos4* | \
40354 *-*-osf* | \
40355 *-*-dgux5* | \
40356 *-*-sysv5* )
40357 ;;
40358
40359 *)
40360 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
40361echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
40362 { (exit 1); exit 1; }; }
40363 esac
40364
2057db16
VS
40365 if test "x$PIC_FLAG" != "x" ; then
40366 PIC_FLAG="$PIC_FLAG -DPIC"
40367 fi
40368
a848cd7e
SC
40369 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
40370 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
40371 fi
40372 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
40373 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
40374 fi
40375
40376
40377
40378
40379
40380
40381
40382
40383 USE_SOVERSION=0
40384 USE_SOVERLINUX=0
40385 USE_SOVERSOLARIS=0
40386 USE_SOSYMLINKS=0
40387 USE_MACVERSION=0
40388 SONAME_FLAG=
40389
40390 case "${BAKEFILE_HOST}" in
b1d22ded 40391 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
40392 SONAME_FLAG="-Wl,-soname,"
40393 USE_SOVERSION=1
40394 USE_SOVERLINUX=1
40395 USE_SOSYMLINKS=1
40396 ;;
40397
a848cd7e
SC
40398 *-*-solaris2* )
40399 SONAME_FLAG="-h "
40400 USE_SOVERSION=1
40401 USE_SOVERSOLARIS=1
40402 USE_SOSYMLINKS=1
40403 ;;
40404
40405 *-*-darwin* )
40406 USE_MACVERSION=1
40407 USE_SOVERSION=1
40408 USE_SOSYMLINKS=1
40409 ;;
40410 esac
40411
40412
40413
40414
40415
40416
40417
40418
40419
40420 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
40421echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
40422 DEPS_TRACKING=0
40423
40424 if test "x$GCC" = "xyes"; then
40425 DEPSMODE=gcc
40426 DEPS_TRACKING=1
40427 case "${BAKEFILE_HOST}" in
40428 powerpc-*-darwin* )
40429 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
40430 ;;
40431 * )
40432 DEPSFLAG_GCC="-MMD"
40433 ;;
40434 esac
40435 echo "$as_me:$LINENO: result: gcc" >&5
40436echo "${ECHO_T}gcc" >&6
b1d22ded 40437 elif test "x$MWCC" = "xyes"; then
04840eaa 40438 DEPSMODE=gcc
b1d22ded 40439 DEPS_TRACKING=1
04840eaa 40440 DEPSFLAG_GCC="-MMD"
b1d22ded
DE
40441 echo "$as_me:$LINENO: result: mwcc" >&5
40442echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
40443 else
40444 echo "$as_me:$LINENO: result: none" >&5
40445echo "${ECHO_T}none" >&6
40446 fi
40447
40448 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
40449
40450D='$'
40451cat <<EOF >bk-deps
a848cd7e
SC
40452#!/bin/sh
40453
40454# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40455# script. It is used to track C/C++ files dependencies in portable way.
40456#
40457# Permission is given to use this file in any way.
40458
473276a9 40459DEPSMODE=${DEPSMODE}
a848cd7e 40460DEPSDIR=.deps
473276a9 40461DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 40462
473276a9 40463mkdir -p ${D}DEPSDIR
a848cd7e 40464
473276a9
VS
40465if test ${D}DEPSMODE = gcc ; then
40466 ${D}* ${D}{DEPSFLAG_GCC}
40467 status=${D}?
40468 if test ${D}{status} != 0 ; then
40469 exit ${D}{status}
a848cd7e
SC
40470 fi
40471 # move created file to the location we want it in:
473276a9
VS
40472 while test ${D}# -gt 0; do
40473 case "${D}1" in
a848cd7e
SC
40474 -o )
40475 shift
473276a9 40476 objfile=${D}1
a848cd7e
SC
40477 ;;
40478 -* )
40479 ;;
40480 * )
473276a9 40481 srcfile=${D}1
a848cd7e
SC
40482 ;;
40483 esac
40484 shift
40485 done
1e9e8aba
DE
40486 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
40487 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
40488 if test -f ${D}depfile ; then
40489 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40490 rm -f ${D}depfile
a848cd7e 40491 else
1e9e8aba 40492 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
40493 if test -f ${D}depfile ; then
40494 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40495 rm -f ${D}depfile
a848cd7e
SC
40496 fi
40497 fi
40498 exit 0
40499else
473276a9
VS
40500 ${D}*
40501 exit ${D}?
a848cd7e
SC
40502fi
40503EOF
473276a9 40504
a848cd7e
SC
40505 chmod +x bk-deps
40506 fi
40507
40508
40509
40510
40511 RESCOMP=
40512 SETFILE=
40513
40514 case ${BAKEFILE_HOST} in
40515 *-*-cygwin* | *-*-mingw32* )
40516 if test "$build" != "$host" ; then
40517 RESCOMP=$host_alias-windres
40518 else
40519 # Extract the first word of "windres", so it can be a program name with args.
40520set dummy windres; ac_word=$2
40521echo "$as_me:$LINENO: checking for $ac_word" >&5
40522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40523if test "${ac_cv_prog_RESCOMP+set}" = set; then
40524 echo $ECHO_N "(cached) $ECHO_C" >&6
40525else
40526 if test -n "$RESCOMP"; then
40527 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40528else
40529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40530for as_dir in $PATH
40531do
40532 IFS=$as_save_IFS
40533 test -z "$as_dir" && as_dir=.
40534 for ac_exec_ext in '' $ac_executable_extensions; do
40535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40536 ac_cv_prog_RESCOMP="windres"
40537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40538 break 2
40539 fi
40540done
40541done
40542
40543 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
40544fi
40545fi
40546RESCOMP=$ac_cv_prog_RESCOMP
40547if test -n "$RESCOMP"; then
40548 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40549echo "${ECHO_T}$RESCOMP" >&6
40550else
40551 echo "$as_me:$LINENO: result: no" >&5
40552echo "${ECHO_T}no" >&6
40553fi
40554
40555 fi
40556 ;;
40557
1e9e8aba 40558 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
40559 # Extract the first word of "Rez", so it can be a program name with args.
40560set dummy Rez; ac_word=$2
40561echo "$as_me:$LINENO: checking for $ac_word" >&5
40562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40563if test "${ac_cv_prog_RESCOMP+set}" = set; then
40564 echo $ECHO_N "(cached) $ECHO_C" >&6
40565else
40566 if test -n "$RESCOMP"; then
40567 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40568else
40569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40570for as_dir in $PATH
40571do
40572 IFS=$as_save_IFS
40573 test -z "$as_dir" && as_dir=.
40574 for ac_exec_ext in '' $ac_executable_extensions; do
40575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40576 ac_cv_prog_RESCOMP="Rez"
40577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40578 break 2
40579 fi
40580done
40581done
40582
40583 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
40584fi
40585fi
40586RESCOMP=$ac_cv_prog_RESCOMP
40587if test -n "$RESCOMP"; then
40588 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40589echo "${ECHO_T}$RESCOMP" >&6
40590else
40591 echo "$as_me:$LINENO: result: no" >&5
40592echo "${ECHO_T}no" >&6
40593fi
40594
40595 # Extract the first word of "SetFile", so it can be a program name with args.
40596set dummy SetFile; ac_word=$2
40597echo "$as_me:$LINENO: checking for $ac_word" >&5
40598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40599if test "${ac_cv_prog_SETFILE+set}" = set; then
40600 echo $ECHO_N "(cached) $ECHO_C" >&6
40601else
40602 if test -n "$SETFILE"; then
40603 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
40604else
40605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40606for as_dir in $PATH
40607do
40608 IFS=$as_save_IFS
40609 test -z "$as_dir" && as_dir=.
40610 for ac_exec_ext in '' $ac_executable_extensions; do
40611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40612 ac_cv_prog_SETFILE="SetFile"
40613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40614 break 2
40615 fi
40616done
40617done
40618
40619 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40620fi
40621fi
40622SETFILE=$ac_cv_prog_SETFILE
40623if test -n "$SETFILE"; then
40624 echo "$as_me:$LINENO: result: $SETFILE" >&5
40625echo "${ECHO_T}$SETFILE" >&6
40626else
40627 echo "$as_me:$LINENO: result: no" >&5
40628echo "${ECHO_T}no" >&6
40629fi
40630
40631 ;;
40632 esac
40633
40634
40635
40636
40637
04840eaa 40638 BAKEFILE_BAKEFILE_M4_VERSION="0.1.5"
a848cd7e 40639
dcc1b6ad 40640
04840eaa 40641BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.5"
a848cd7e 40642
646b6ec1 40643
74b84332 40644
a848cd7e
SC
40645 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40646if test "${enable_precomp_headers+set}" = set; then
40647 enableval="$enable_precomp_headers"
40648 bk_use_pch="$enableval"
40649fi;
40650
40651 GCC_PCH=0
40652
40653 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40654 if test "x$GCC" = "xyes"; then
40655 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40656echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40657 cat >conftest.$ac_ext <<_ACEOF
40658/* confdefs.h. */
40659_ACEOF
40660cat confdefs.h >>conftest.$ac_ext
40661cat >>conftest.$ac_ext <<_ACEOF
40662/* end confdefs.h. */
40663
40664int
40665main ()
40666{
40667
40668 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40669 #error "no pch support"
40670 #endif
40671 #if (__GNUC__ < 3)
40672 #error "no pch support"
40673 #endif
40674 #if (__GNUC__ == 3) && \
40675 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40676 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40677 #error "no pch support"
40678 #endif
40679
40680 ;
40681 return 0;
40682}
40683_ACEOF
40684rm -f conftest.$ac_objext
40685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40686 (eval $ac_compile) 2>conftest.er1
a848cd7e 40687 ac_status=$?
ac1cb8d3
VS
40688 grep -v '^ *+' conftest.er1 >conftest.err
40689 rm -f conftest.er1
40690 cat conftest.err >&5
a848cd7e
SC
40691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40692 (exit $ac_status); } &&
da4486fb 40693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40695 (eval $ac_try) 2>&5
40696 ac_status=$?
40697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40698 (exit $ac_status); }; } &&
40699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40701 (eval $ac_try) 2>&5
40702 ac_status=$?
40703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40704 (exit $ac_status); }; }; then
40705
40706 echo "$as_me:$LINENO: result: yes" >&5
40707echo "${ECHO_T}yes" >&6
a848cd7e
SC
40708 GCC_PCH=1
40709
40710else
40711 echo "$as_me: failed program was:" >&5
40712sed 's/^/| /' conftest.$ac_ext >&5
40713
40714
40715 echo "$as_me:$LINENO: result: no" >&5
40716echo "${ECHO_T}no" >&6
40717
40718fi
ac1cb8d3 40719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40720 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
40721
40722D='$'
40723cat <<EOF >bk-make-pch
a848cd7e
SC
40724#!/bin/sh
40725
40726# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40727# script. It is used to generated precompiled headers.
40728#
40729# Permission is given to use this file in any way.
40730
1e9e8aba
DE
40731outfile="${D}{1}"
40732header="${D}{2}"
a848cd7e
SC
40733shift
40734shift
40735
40736compiler=
40737headerfile=
1e9e8aba
DE
40738while test ${D}{#} -gt 0; do
40739 case "${D}{1}" in
a848cd7e 40740 -I* )
1e9e8aba
DE
40741 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40742 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40743 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
40744 fi
40745 ;;
40746 esac
1e9e8aba 40747 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
40748 shift
40749done
40750
1e9e8aba
DE
40751if test "x${D}{headerfile}" = "x" ; then
40752 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 40753else
1e9e8aba
DE
40754 if test -f ${D}{outfile} ; then
40755 rm -f ${D}{outfile}
a848cd7e 40756 else
1e9e8aba 40757 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 40758 fi
1e9e8aba 40759 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
40760 mkdir -p .deps
40761 # can do this because gcc is >= 3.4:
1e9e8aba
DE
40762 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40763 exit ${D}{?}
a848cd7e
SC
40764fi
40765EOF
1e9e8aba 40766
a848cd7e
SC
40767 chmod +x bk-make-pch
40768 fi
40769 fi
40770 fi
40771
40772
40773
a848cd7e
SC
40774 COND_BUILD_DEBUG="#"
40775 if test "x$BUILD" = "xdebug" ; then
40776 COND_BUILD_DEBUG=""
40777 fi
40778
40779 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40780 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40781 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40782 fi
40783
40784 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40785 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40786 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40787 fi
40788
40789 COND_BUILD_DEBUG_UNICODE_0="#"
40790 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40791 COND_BUILD_DEBUG_UNICODE_0=""
40792 fi
40793
40794 COND_BUILD_DEBUG_UNICODE_1="#"
40795 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40796 COND_BUILD_DEBUG_UNICODE_1=""
40797 fi
40798
40799 COND_BUILD_RELEASE="#"
40800 if test "x$BUILD" = "xrelease" ; then
40801 COND_BUILD_RELEASE=""
40802 fi
40803
40804 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40805 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40806 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40807 fi
40808
40809 COND_BUILD_RELEASE_UNICODE_0="#"
40810 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40811 COND_BUILD_RELEASE_UNICODE_0=""
40812 fi
40813
40814 COND_BUILD_RELEASE_UNICODE_1="#"
40815 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40816 COND_BUILD_RELEASE_UNICODE_1=""
40817 fi
40818
40819 COND_DEBUG_FLAG_1="#"
40820 if test "x$DEBUG_FLAG" = "x1" ; then
40821 COND_DEBUG_FLAG_1=""
40822 fi
40823
40824 COND_DEBUG_INFO_0="#"
40825 if test "x$DEBUG_INFO" = "x0" ; then
40826 COND_DEBUG_INFO_0=""
40827 fi
40828
40829 COND_DEBUG_INFO_1="#"
40830 if test "x$DEBUG_INFO" = "x1" ; then
40831 COND_DEBUG_INFO_1=""
40832 fi
40833
40834 COND_DEPS_TRACKING_0="#"
40835 if test "x$DEPS_TRACKING" = "x0" ; then
40836 COND_DEPS_TRACKING_0=""
40837 fi
40838
40839 COND_DEPS_TRACKING_1="#"
40840 if test "x$DEPS_TRACKING" = "x1" ; then
40841 COND_DEPS_TRACKING_1=""
40842 fi
40843
40844 COND_GCC_PCH_1="#"
40845 if test "x$GCC_PCH" = "x1" ; then
40846 COND_GCC_PCH_1=""
40847 fi
40848
40849 COND_MONOLITHIC_0="#"
40850 if test "x$MONOLITHIC" = "x0" ; then
40851 COND_MONOLITHIC_0=""
40852 fi
40853
40854 COND_MONOLITHIC_0_SHARED_0="#"
40855 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40856 COND_MONOLITHIC_0_SHARED_0=""
40857 fi
40858
40859 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40860 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40861 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40862 fi
40863
90970d69
DE
40864 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
40865 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40866 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
40867 fi
40868
a848cd7e
SC
40869 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40870 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40871 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40872 fi
40873
a848cd7e
SC
40874 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40875 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40876 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40877 fi
40878
ceec2216
RL
40879 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40880 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40881 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40882 fi
40883
a848cd7e
SC
40884 COND_MONOLITHIC_0_SHARED_1="#"
40885 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40886 COND_MONOLITHIC_0_SHARED_1=""
40887 fi
40888
40889 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40890 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40891 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40892 fi
40893
90970d69
DE
40894 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
40895 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40896 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
40897 fi
40898
a848cd7e
SC
40899 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40900 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40901 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40902 fi
40903
a848cd7e
SC
40904 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40905 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40906 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40907 fi
40908
ceec2216
RL
40909 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40910 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40911 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40912 fi
40913
a848cd7e
SC
40914 COND_MONOLITHIC_0_USE_ODBC_1="#"
40915 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40916 COND_MONOLITHIC_0_USE_ODBC_1=""
40917 fi
40918
40919 COND_MONOLITHIC_1="#"
40920 if test "x$MONOLITHIC" = "x1" ; then
40921 COND_MONOLITHIC_1=""
40922 fi
40923
40924 COND_MONOLITHIC_1_SHARED_0="#"
40925 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40926 COND_MONOLITHIC_1_SHARED_0=""
40927 fi
40928
40929 COND_MONOLITHIC_1_SHARED_1="#"
40930 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40931 COND_MONOLITHIC_1_SHARED_1=""
40932 fi
40933
40934 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40935 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40936 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40937 fi
40938
40939 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40940 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40941 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40942 fi
40943
40944 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40945 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40946 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40947 fi
40948
40949 COND_PLATFORM_MACOSX_1="#"
40950 if test "x$PLATFORM_MACOSX" = "x1" ; then
40951 COND_PLATFORM_MACOSX_1=""
40952 fi
40953
a30f955f
VS
40954 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40955 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40956 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40957 fi
40958
a848cd7e
SC
40959 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40960 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40961 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40962 fi
40963
40964 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40965 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40966 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40967 fi
40968
40969 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40970 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40971 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40972 fi
40973
fc480dc1
DE
40974 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
40975 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40976 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
40977 fi
40978
1e9e8aba
DE
40979 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40980 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40981 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40982 fi
40983
ebee3cd0
VS
40984 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40985 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40986 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40987 fi
40988
40989 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40990 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40991 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40992 fi
40993
a848cd7e
SC
40994 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40995 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40996 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40997 fi
40998
40999 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41000 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41001 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41002 fi
41003
b48a2016
DE
41004 COND_PLATFORM_MACOS_1="#"
41005 if test "x$PLATFORM_MACOS" = "x1" ; then
41006 COND_PLATFORM_MACOS_1=""
41007 fi
41008
a848cd7e
SC
41009 COND_PLATFORM_MAC_1="#"
41010 if test "x$PLATFORM_MAC" = "x1" ; then
41011 COND_PLATFORM_MAC_1=""
41012 fi
41013
41014 COND_PLATFORM_OS2_1="#"
41015 if test "x$PLATFORM_OS2" = "x1" ; then
41016 COND_PLATFORM_OS2_1=""
41017 fi
41018
41019 COND_PLATFORM_UNIX_0="#"
41020 if test "x$PLATFORM_UNIX" = "x0" ; then
41021 COND_PLATFORM_UNIX_0=""
41022 fi
41023
41024 COND_PLATFORM_UNIX_1="#"
41025 if test "x$PLATFORM_UNIX" = "x1" ; then
41026 COND_PLATFORM_UNIX_1=""
41027 fi
41028
41029 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41030 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41031 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41032 fi
41033
41034 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41035 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41036 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41037 fi
41038
41039 COND_PLATFORM_WIN32_0="#"
41040 if test "x$PLATFORM_WIN32" = "x0" ; then
41041 COND_PLATFORM_WIN32_0=""
41042 fi
41043
41044 COND_PLATFORM_WIN32_1="#"
41045 if test "x$PLATFORM_WIN32" = "x1" ; then
41046 COND_PLATFORM_WIN32_1=""
41047 fi
41048
41049 COND_SHARED_0="#"
41050 if test "x$SHARED" = "x0" ; then
41051 COND_SHARED_0=""
41052 fi
41053
ceec2216
RL
41054 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
41055 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41056 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
41057 fi
41058
41059 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
41060 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41061 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
41062 fi
41063
41064 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
41065 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41066 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
41067 fi
41068
a848cd7e
SC
41069 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41070 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41071 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41072 fi
41073
41074 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41075 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41076 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41077 fi
41078
41079 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41080 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41081 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41082 fi
41083
41084 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41085 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41086 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41087 fi
41088
41089 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41090 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41091 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41092 fi
41093
41094 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41095 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41096 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41097 fi
41098
41099 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41100 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41101 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41102 fi
41103
41104 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41105 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41106 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41107 fi
41108
41109 COND_SHARED_1="#"
41110 if test "x$SHARED" = "x1" ; then
41111 COND_SHARED_1=""
41112 fi
41113
41114 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41115 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41116 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41117 fi
41118
a30f955f
VS
41119 COND_TOOLKIT_="#"
41120 if test "x$TOOLKIT" = "x" ; then
41121 COND_TOOLKIT_=""
41122 fi
41123
a848cd7e
SC
41124 COND_TOOLKIT_COCOA="#"
41125 if test "x$TOOLKIT" = "xCOCOA" ; then
41126 COND_TOOLKIT_COCOA=""
41127 fi
41128
a49baeab
DE
41129 COND_TOOLKIT_COCOA_USE_GUI_1="#"
41130 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
41131 COND_TOOLKIT_COCOA_USE_GUI_1=""
41132 fi
41133
a848cd7e
SC
41134 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41135 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41136 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41137 fi
41138
41139 COND_TOOLKIT_GTK="#"
41140 if test "x$TOOLKIT" = "xGTK" ; then
41141 COND_TOOLKIT_GTK=""
41142 fi
41143
41144 COND_TOOLKIT_GTK_USE_GUI_1="#"
41145 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41146 COND_TOOLKIT_GTK_USE_GUI_1=""
41147 fi
41148
41149 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41150 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41151 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41152 fi
41153
41154 COND_TOOLKIT_MAC="#"
41155 if test "x$TOOLKIT" = "xMAC" ; then
41156 COND_TOOLKIT_MAC=""
41157 fi
41158
41159 COND_TOOLKIT_MAC_USE_GUI_1="#"
41160 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41161 COND_TOOLKIT_MAC_USE_GUI_1=""
41162 fi
41163
41164 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41165 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41166 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41167 fi
41168
41169 COND_TOOLKIT_MGL="#"
41170 if test "x$TOOLKIT" = "xMGL" ; then
41171 COND_TOOLKIT_MGL=""
41172 fi
41173
41174 COND_TOOLKIT_MGL_USE_GUI_1="#"
41175 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41176 COND_TOOLKIT_MGL_USE_GUI_1=""
41177 fi
41178
41179 COND_TOOLKIT_MOTIF="#"
41180 if test "x$TOOLKIT" = "xMOTIF" ; then
41181 COND_TOOLKIT_MOTIF=""
41182 fi
41183
41184 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41185 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41186 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41187 fi
41188
41189 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41190 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41191 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41192 fi
41193
41194 COND_TOOLKIT_MSW="#"
41195 if test "x$TOOLKIT" = "xMSW" ; then
41196 COND_TOOLKIT_MSW=""
41197 fi
41198
41199 COND_TOOLKIT_MSW_USE_GUI_1="#"
41200 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41201 COND_TOOLKIT_MSW_USE_GUI_1=""
41202 fi
41203
41204 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41205 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41206 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41207 fi
41208
41209 COND_TOOLKIT_PM="#"
41210 if test "x$TOOLKIT" = "xPM" ; then
41211 COND_TOOLKIT_PM=""
41212 fi
41213
41214 COND_TOOLKIT_PM_USE_GUI_1="#"
41215 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41216 COND_TOOLKIT_PM_USE_GUI_1=""
41217 fi
41218
41219 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41220 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41221 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41222 fi
41223
3fd9c298
DE
41224 COND_TOOLKIT_WINCE="#"
41225 if test "x$TOOLKIT" = "xWINCE" ; then
41226 COND_TOOLKIT_WINCE=""
41227 fi
41228
41229 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41230 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41231 COND_TOOLKIT_WINCE_USE_GUI_1=""
41232 fi
41233
41234 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41235 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41236 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41237 fi
41238
a848cd7e
SC
41239 COND_TOOLKIT_X11="#"
41240 if test "x$TOOLKIT" = "xX11" ; then
41241 COND_TOOLKIT_X11=""
41242 fi
41243
41244 COND_TOOLKIT_X11_USE_GUI_1="#"
41245 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41246 COND_TOOLKIT_X11_USE_GUI_1=""
41247 fi
41248
41249 COND_UNICODE_1="#"
41250 if test "x$UNICODE" = "x1" ; then
41251 COND_UNICODE_1=""
41252 fi
41253
41254 COND_USE_EXCEPTIONS_0="#"
41255 if test "x$USE_EXCEPTIONS" = "x0" ; then
41256 COND_USE_EXCEPTIONS_0=""
41257 fi
41258
41259 COND_USE_EXCEPTIONS_1="#"
41260 if test "x$USE_EXCEPTIONS" = "x1" ; then
41261 COND_USE_EXCEPTIONS_1=""
41262 fi
41263
41264 COND_USE_GUI_0="#"
41265 if test "x$USE_GUI" = "x0" ; then
41266 COND_USE_GUI_0=""
41267 fi
41268
41269 COND_USE_GUI_1="#"
41270 if test "x$USE_GUI" = "x1" ; then
41271 COND_USE_GUI_1=""
41272 fi
41273
41274 COND_USE_GUI_1_WXUNIV_0="#"
41275 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41276 COND_USE_GUI_1_WXUNIV_0=""
41277 fi
41278
41279 COND_USE_GUI_1_WXUNIV_1="#"
41280 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41281 COND_USE_GUI_1_WXUNIV_1=""
41282 fi
41283
41284 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41285 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41286 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41287 fi
41288
41289 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41290 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41291 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41292 fi
41293
41294 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41295 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41296 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41297 fi
41298
ceec2216
RL
41299 COND_USE_ODBC_1="#"
41300 if test "x$USE_ODBC" = "x1" ; then
41301 COND_USE_ODBC_1=""
41302 fi
41303
ffa0583f
RL
41304 COND_USE_OPENGL_1="#"
41305 if test "x$USE_OPENGL" = "x1" ; then
41306 COND_USE_OPENGL_1=""
41307 fi
41308
a848cd7e
SC
41309 COND_USE_PLUGINS_0="#"
41310 if test "x$USE_PLUGINS" = "x0" ; then
41311 COND_USE_PLUGINS_0=""
41312 fi
41313
41314 COND_USE_SOSYMLINKS_1="#"
41315 if test "x$USE_SOSYMLINKS" = "x1" ; then
41316 COND_USE_SOSYMLINKS_1=""
41317 fi
41318
41319 COND_USE_SOVERLINUX_1="#"
41320 if test "x$USE_SOVERLINUX" = "x1" ; then
41321 COND_USE_SOVERLINUX_1=""
41322 fi
41323
41324 COND_USE_SOVERSION_0="#"
41325 if test "x$USE_SOVERSION" = "x0" ; then
41326 COND_USE_SOVERSION_0=""
41327 fi
41328
41329 COND_USE_SOVERSOLARIS_1="#"
41330 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41331 COND_USE_SOVERSOLARIS_1=""
41332 fi
41333
a13a7f89
RL
41334 COND_USE_XRC_1="#"
41335 if test "x$USE_XRC" = "x1" ; then
41336 COND_USE_XRC_1=""
41337 fi
41338
a848cd7e
SC
41339 COND_WITH_PLUGIN_SDL_1="#"
41340 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41341 COND_WITH_PLUGIN_SDL_1=""
41342 fi
41343
1e6eb025
VZ
41344 COND_WXUNIV_0="#"
41345 if test "x$WXUNIV" = "x0" ; then
41346 COND_WXUNIV_0=""
41347 fi
41348
a848cd7e
SC
41349 COND_WXUNIV_1="#"
41350 if test "x$WXUNIV" = "x1" ; then
41351 COND_WXUNIV_1=""
41352 fi
41353
41354 COND_WXUSE_EXPAT_BUILTIN="#"
41355 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41356 COND_WXUSE_EXPAT_BUILTIN=""
41357 fi
41358
41359 COND_WXUSE_LIBJPEG_BUILTIN="#"
41360 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41361 COND_WXUSE_LIBJPEG_BUILTIN=""
41362 fi
41363
41364 COND_WXUSE_LIBPNG_BUILTIN="#"
41365 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41366 COND_WXUSE_LIBPNG_BUILTIN=""
41367 fi
41368
41369 COND_WXUSE_LIBTIFF_BUILTIN="#"
41370 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41371 COND_WXUSE_LIBTIFF_BUILTIN=""
41372 fi
41373
41374 COND_WXUSE_ODBC_BUILTIN="#"
41375 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41376 COND_WXUSE_ODBC_BUILTIN=""
41377 fi
41378
41379 COND_WXUSE_REGEX_BUILTIN="#"
41380 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41381 COND_WXUSE_REGEX_BUILTIN=""
41382 fi
41383
41384 COND_WXUSE_ZLIB_BUILTIN="#"
41385 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41386 COND_WXUSE_ZLIB_BUILTIN=""
41387 fi
41388
41389
41390
2057db16
VS
41391 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41392 { { 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
41393echo "$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;}
41394 { (exit 1); exit 1; }; }
41395 fi
41396
a848cd7e 41397
ceec2216
RL
41398if test "$wxUSE_SHARED" = "yes"; then
41399
41400 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41401 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41402
5b674b9d
DE
41403 case "${host}" in
41404 *-pc-os2_emx | *-pc-os2-emx )
41405 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41406 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41407 cp -p ${srcdir}/src/os2/dllnames.sh .
41408 cp -p ${srcdir}/src/os2/dllar.sh .
41409 ;;
41410 esac
ceec2216
RL
41411else
41412
41413 EXE_LINKER="$CXX -o"
41414
41415fi
a848cd7e 41416
74b84332 41417GCC_PRAGMA_FLAGS=""
c08ebc62
DE
41418PCH_FLAGS=""
41419if test $GCC_PCH = 1 ; then
41420 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41421 PCH_FLAGS="-DWX_PRECOMP"
41422else
a848cd7e
SC
41423 case "${host}" in
41424 powerpc-*-darwin* )
74b84332 41425 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41426 ;;
bea8e651 41427 *-*-mingw32* )
1f344abf
VS
41428 if test "$wxUSE_STL" = "yes" -o \
41429 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41430 "$wxUSE_NO_RTTI" != "yes"; then
41431 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41432echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41433 cat >conftest.$ac_ext <<_ACEOF
41434/* confdefs.h. */
41435_ACEOF
41436cat confdefs.h >>conftest.$ac_ext
41437cat >>conftest.$ac_ext <<_ACEOF
41438/* end confdefs.h. */
41439
3314e67b
RR
41440int
41441main ()
41442{
41443#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
41444 #error "Not GCC 3.2 or greater"
41445 #endif
41446
41447 ;
41448 return 0;
41449}
41450_ACEOF
41451rm -f conftest.$ac_objext
41452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41453 (eval $ac_compile) 2>conftest.er1
41454 ac_status=$?
41455 grep -v '^ *+' conftest.er1 >conftest.err
41456 rm -f conftest.er1
41457 cat conftest.err >&5
41458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41459 (exit $ac_status); } &&
da4486fb 41460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
41461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41462 (eval $ac_try) 2>&5
41463 ac_status=$?
41464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41465 (exit $ac_status); }; } &&
41466 { ac_try='test -s conftest.$ac_objext'
41467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41468 (eval $ac_try) 2>&5
41469 ac_status=$?
41470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471 (exit $ac_status); }; }; then
41472 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41473 echo "$as_me:$LINENO: result: yes" >&5
41474echo "${ECHO_T}yes" >&6
41475else
41476 echo "$as_me: failed program was:" >&5
41477sed 's/^/| /' conftest.$ac_ext >&5
41478
41479echo "$as_me:$LINENO: result: no" >&5
41480echo "${ECHO_T}no" >&6
41481fi
41482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41483 fi
41484 ;;
41485 *-pc-os2_emx | *-pc-os2-emx )
41486 if test "$wxUSE_STL" = "yes"; then
41487 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
41488echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41489 cat >conftest.$ac_ext <<_ACEOF
41490/* confdefs.h. */
41491_ACEOF
41492cat confdefs.h >>conftest.$ac_ext
41493cat >>conftest.$ac_ext <<_ACEOF
41494/* end confdefs.h. */
41495
bea8e651
MB
41496int
41497main ()
41498{
1f344abf 41499#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41500 #error "Not GCC 3.2 or greater"
41501 #endif
41502
41503 ;
41504 return 0;
41505}
41506_ACEOF
41507rm -f conftest.$ac_objext
41508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41509 (eval $ac_compile) 2>conftest.er1
bea8e651 41510 ac_status=$?
ac1cb8d3
VS
41511 grep -v '^ *+' conftest.er1 >conftest.err
41512 rm -f conftest.er1
41513 cat conftest.err >&5
bea8e651
MB
41514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41515 (exit $ac_status); } &&
da4486fb 41516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41518 (eval $ac_try) 2>&5
41519 ac_status=$?
41520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41521 (exit $ac_status); }; } &&
41522 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41524 (eval $ac_try) 2>&5
41525 ac_status=$?
41526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41527 (exit $ac_status); }; }; then
74b84332 41528 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41529 echo "$as_me:$LINENO: result: yes" >&5
41530echo "${ECHO_T}yes" >&6
41531else
41532 echo "$as_me: failed program was:" >&5
41533sed 's/^/| /' conftest.$ac_ext >&5
41534
41535echo "$as_me:$LINENO: result: no" >&5
41536echo "${ECHO_T}no" >&6
41537fi
ac1cb8d3 41538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41539 fi
41540 ;;
a848cd7e
SC
41541 esac
41542fi
d2083416 41543CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41544
41545
41546SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41547
41548
41549
41550
41551
41552
41553
41554
41555
41556
41557
41558
41559
41560
41561
41562
41563
41564
41565
41566
41567
41568
41569
41570
41571
41572
41573
41574
41575
41576
41577
41578
41579
41580
41581
41582
41583
41584
41585
41586
41587
41588
a848cd7e
SC
41589
41590
41591
41592
41593
41594
41595
41596
41597
41598
41599
41600
41601
41602
41603
41604
41605
41606
74b84332 41607
a848cd7e
SC
41608
41609
41610echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41611echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41612set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41613if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41614 echo $ECHO_N "(cached) $ECHO_C" >&6
41615else
41616 cat >conftest.make <<\_ACEOF
41617all:
41618 @echo 'ac_maketemp="$(MAKE)"'
41619_ACEOF
41620# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41621eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41622if test -n "$ac_maketemp"; then
41623 eval ac_cv_prog_make_${ac_make}_set=yes
41624else
41625 eval ac_cv_prog_make_${ac_make}_set=no
41626fi
41627rm -f conftest.make
41628fi
41629if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41630 echo "$as_me:$LINENO: result: yes" >&5
41631echo "${ECHO_T}yes" >&6
41632 SET_MAKE=
41633else
41634 echo "$as_me:$LINENO: result: no" >&5
41635echo "${ECHO_T}no" >&6
41636 SET_MAKE="MAKE=${MAKE-make}"
41637fi
41638
41639
a848cd7e 41640
ceec2216
RL
41641 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41642
a848cd7e 41643
ceec2216 41644 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41645
a848cd7e 41646
ceec2216 41647 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41648
ceec2216
RL
41649
41650 ac_config_files="$ac_config_files version-script Makefile"
41651
41652
41653 ac_config_commands="$ac_config_commands wx-config
41654 "
a848cd7e
SC
41655
41656
9103d280
RL
41657
41658
a848cd7e
SC
41659if test "$wxUSE_GUI" = "yes"; then
41660 SUBDIRS="samples demos utils contrib"
41661else SUBDIRS="samples utils"
41662fi
41663
41664
41665
41666# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41667if test "${with_cppunit_prefix+set}" = set; then
41668 withval="$with_cppunit_prefix"
41669 cppunit_config_prefix="$withval"
41670else
41671 cppunit_config_prefix=""
41672fi;
41673
41674# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41675if test "${with_cppunit_exec_prefix+set}" = set; then
41676 withval="$with_cppunit_exec_prefix"
41677 cppunit_config_exec_prefix="$withval"
41678else
41679 cppunit_config_exec_prefix=""
41680fi;
41681
41682 if test x$cppunit_config_exec_prefix != x ; then
41683 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41684 if test x${CPPUNIT_CONFIG+set} != xset ; then
41685 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41686 fi
41687 fi
41688 if test x$cppunit_config_prefix != x ; then
41689 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41690 if test x${CPPUNIT_CONFIG+set} != xset ; then
41691 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41692 fi
41693 fi
41694
41695 # Extract the first word of "cppunit-config", so it can be a program name with args.
41696set dummy cppunit-config; ac_word=$2
41697echo "$as_me:$LINENO: checking for $ac_word" >&5
41698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41699if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41700 echo $ECHO_N "(cached) $ECHO_C" >&6
41701else
41702 case $CPPUNIT_CONFIG in
41703 [\\/]* | ?:[\\/]*)
41704 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41705 ;;
41706 *)
41707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41708for as_dir in $PATH
41709do
41710 IFS=$as_save_IFS
41711 test -z "$as_dir" && as_dir=.
41712 for ac_exec_ext in '' $ac_executable_extensions; do
41713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41714 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41716 break 2
41717 fi
41718done
41719done
41720
41721 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41722 ;;
41723esac
41724fi
41725CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41726
41727if test -n "$CPPUNIT_CONFIG"; then
41728 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41729echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41730else
41731 echo "$as_me:$LINENO: result: no" >&5
41732echo "${ECHO_T}no" >&6
41733fi
41734
41735 cppunit_version_min=1.8.0
41736
41737 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41738echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41739 no_cppunit=""
41740 if test "$CPPUNIT_CONFIG" = "no" ; then
41741 no_cppunit=yes
41742 else
41743 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41744 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41745 cppunit_version=`$CPPUNIT_CONFIG --version`
41746
41747 cppunit_major_version=`echo $cppunit_version | \
41748 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41749 cppunit_minor_version=`echo $cppunit_version | \
41750 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41751 cppunit_micro_version=`echo $cppunit_version | \
41752 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41753
41754 cppunit_major_min=`echo $cppunit_version_min | \
41755 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41756 cppunit_minor_min=`echo $cppunit_version_min | \
41757 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41758 cppunit_micro_min=`echo $cppunit_version_min | \
41759 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41760
41761 cppunit_version_proper=`expr \
41762 $cppunit_major_version \> $cppunit_major_min \| \
41763 $cppunit_major_version \= $cppunit_major_min \& \
41764 $cppunit_minor_version \> $cppunit_minor_min \| \
41765 $cppunit_major_version \= $cppunit_major_min \& \
41766 $cppunit_minor_version \= $cppunit_minor_min \& \
41767 $cppunit_micro_version \>= $cppunit_micro_min `
41768
41769 if test "$cppunit_version_proper" = "1" ; then
41770 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41771echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41772 else
41773 echo "$as_me:$LINENO: result: no" >&5
41774echo "${ECHO_T}no" >&6
41775 no_cppunit=yes
41776 fi
41777 fi
41778
41779 if test "x$no_cppunit" = x ; then
c2218763 41780 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41781 else
41782 CPPUNIT_CFLAGS=""
41783 CPPUNIT_LIBS=""
c2218763 41784 :
a848cd7e
SC
41785 fi
41786
41787
41788
41789
41790
41791for subdir in `echo $SUBDIRS`; do
41792 if test -d ${srcdir}/${subdir} ; then
41793 if test "$wxUSE_GUI" = "yes"; then
41794 if test ${subdir} = "samples"; then
41795 makefiles="samples/Makefile.in $makefiles"
41796 for sample in `echo $SAMPLES_SUBDIRS`; do
41797 if test -d $srcdir/samples/$sample; then
41798 makefiles="samples/$sample/Makefile.in $makefiles"
41799 fi
41800 done
41801 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41802 fi
41803 else if test ${subdir} = "samples"; then
41804 makefiles="samples/Makefile.in samples/console/Makefile.in"
41805 elif test ${subdir} = "utils"; then
6537ccf8
VS
41806 makefiles=""
41807 for util in HelpGen tex2rtf ; do
41808 if test -d $srcdir/utils/$util ; then
41809 makefiles="utils/$util/Makefile.in \
41810 utils/$util/src/Makefile.in \
41811 $makefiles"
41812 fi
41813 done
a848cd7e
SC
41814 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41815 fi
41816 fi
41817
41818 for mkin in $makefiles ; do
41819 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41820 ac_config_files="$ac_config_files $mk"
41821
41822 done
41823 fi
41824done
41825
41826
41827cat >confcache <<\_ACEOF
41828# This file is a shell script that caches the results of configure
41829# tests run on this system so they can be shared between configure
41830# scripts and configure runs, see configure's option --config-cache.
41831# It is not useful on other systems. If it contains results you don't
41832# want to keep, you may remove or edit it.
41833#
41834# config.status only pays attention to the cache file if you give it
41835# the --recheck option to rerun configure.
41836#
41837# `ac_cv_env_foo' variables (set or unset) will be overridden when
41838# loading this file, other *unset* `ac_cv_foo' will be assigned the
41839# following values.
41840
41841_ACEOF
41842
41843# The following way of writing the cache mishandles newlines in values,
41844# but we know of no workaround that is simple, portable, and efficient.
41845# So, don't put newlines in cache variables' values.
41846# Ultrix sh set writes to stderr and can't be redirected directly,
41847# and sets the high bit in the cache file unless we assign to the vars.
41848{
41849 (set) 2>&1 |
41850 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41851 *ac_space=\ *)
41852 # `set' does not quote correctly, so add quotes (double-quote
41853 # substitution turns \\\\ into \\, and sed turns \\ into \).
41854 sed -n \
ac1cb8d3
VS
41855 "s/'/'\\\\''/g;
41856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41857 ;;
41858 *)
41859 # `set' quotes correctly as required by POSIX, so do not add quotes.
41860 sed -n \
ac1cb8d3 41861 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41862 ;;
41863 esac;
41864} |
41865 sed '
41866 t clear
41867 : clear
41868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41869 t end
41870 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41871 : end' >>confcache
41872if diff $cache_file confcache >/dev/null 2>&1; then :; else
41873 if test -w $cache_file; then
41874 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41875 cat confcache >$cache_file
41876 else
41877 echo "not updating unwritable cache $cache_file"
41878 fi
41879fi
41880rm -f confcache
41881
41882test "x$prefix" = xNONE && prefix=$ac_default_prefix
41883# Let make expand exec_prefix.
41884test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41885
41886# VPATH may cause trouble with some makes, so we remove $(srcdir),
41887# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41888# trailing colons and then remove the whole line if VPATH becomes empty
41889# (actually we leave an empty line to preserve line numbers).
41890if test "x$srcdir" = x.; then
ac1cb8d3 41891 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41892s/:*\$(srcdir):*/:/;
41893s/:*\${srcdir}:*/:/;
41894s/:*@srcdir@:*/:/;
ac1cb8d3 41895s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41896s/:*$//;
ac1cb8d3 41897s/^[^=]*=[ ]*$//;
a848cd7e
SC
41898}'
41899fi
41900
41901DEFS=-DHAVE_CONFIG_H
41902
41903ac_libobjs=
41904ac_ltlibobjs=
41905for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41906 # 1. Remove the extension, and $U if already installed.
41907 ac_i=`echo "$ac_i" |
ac1cb8d3 41908 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41909 # 2. Add them.
41910 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41911 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41912done
41913LIBOBJS=$ac_libobjs
41914
41915LTLIBOBJS=$ac_ltlibobjs
41916
41917
41918
41919: ${CONFIG_STATUS=./config.status}
41920ac_clean_files_save=$ac_clean_files
41921ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41922{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41923echo "$as_me: creating $CONFIG_STATUS" >&6;}
41924cat >$CONFIG_STATUS <<_ACEOF
41925#! $SHELL
41926# Generated by $as_me.
41927# Run this file to recreate the current configuration.
41928# Compiler output produced by configure, useful for debugging
41929# configure, is in config.log if it exists.
41930
41931debug=false
41932ac_cs_recheck=false
41933ac_cs_silent=false
41934SHELL=\${CONFIG_SHELL-$SHELL}
41935_ACEOF
41936
41937cat >>$CONFIG_STATUS <<\_ACEOF
41938## --------------------- ##
41939## M4sh Initialization. ##
41940## --------------------- ##
41941
41942# Be Bourne compatible
41943if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41944 emulate sh
41945 NULLCMD=:
41946 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41947 # is contrary to our usage. Disable this feature.
41948 alias -g '${1+"$@"}'='"$@"'
41949elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41950 set -o posix
41951fi
ac1cb8d3 41952DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41953
41954# Support unset when possible.
ac1cb8d3 41955if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41956 as_unset=unset
41957else
41958 as_unset=false
41959fi
41960
41961
41962# Work around bugs in pre-3.0 UWIN ksh.
41963$as_unset ENV MAIL MAILPATH
41964PS1='$ '
41965PS2='> '
41966PS4='+ '
41967
41968# NLS nuisances.
41969for as_var in \
41970 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41971 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41972 LC_TELEPHONE LC_TIME
41973do
ac1cb8d3 41974 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41975 eval $as_var=C; export $as_var
41976 else
41977 $as_unset $as_var
41978 fi
41979done
41980
41981# Required to use basename.
41982if expr a : '\(a\)' >/dev/null 2>&1; then
41983 as_expr=expr
41984else
41985 as_expr=false
41986fi
41987
41988if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41989 as_basename=basename
41990else
41991 as_basename=false
41992fi
41993
41994
41995# Name of the executable.
41996as_me=`$as_basename "$0" ||
41997$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41998 X"$0" : 'X\(//\)$' \| \
41999 X"$0" : 'X\(/\)$' \| \
42000 . : '\(.\)' 2>/dev/null ||
42001echo X/"$0" |
42002 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42003 /^X\/\(\/\/\)$/{ s//\1/; q; }
42004 /^X\/\(\/\).*/{ s//\1/; q; }
42005 s/.*/./; q'`
42006
42007
42008# PATH needs CR, and LINENO needs CR and PATH.
42009# Avoid depending upon Character Ranges.
42010as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42011as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42012as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42013as_cr_digits='0123456789'
42014as_cr_alnum=$as_cr_Letters$as_cr_digits
42015
42016# The user is always right.
42017if test "${PATH_SEPARATOR+set}" != set; then
42018 echo "#! /bin/sh" >conf$$.sh
42019 echo "exit 0" >>conf$$.sh
42020 chmod +x conf$$.sh
42021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42022 PATH_SEPARATOR=';'
42023 else
42024 PATH_SEPARATOR=:
42025 fi
42026 rm -f conf$$.sh
42027fi
42028
42029
42030 as_lineno_1=$LINENO
42031 as_lineno_2=$LINENO
42032 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42033 test "x$as_lineno_1" != "x$as_lineno_2" &&
42034 test "x$as_lineno_3" = "x$as_lineno_2" || {
42035 # Find who we are. Look in the path if we contain no path at all
42036 # relative or not.
42037 case $0 in
42038 *[\\/]* ) as_myself=$0 ;;
42039 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42040for as_dir in $PATH
42041do
42042 IFS=$as_save_IFS
42043 test -z "$as_dir" && as_dir=.
42044 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42045done
42046
42047 ;;
42048 esac
42049 # We did not find ourselves, most probably we were run as `sh COMMAND'
42050 # in which case we are not to be found in the path.
42051 if test "x$as_myself" = x; then
42052 as_myself=$0
42053 fi
42054 if test ! -f "$as_myself"; then
42055 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42056echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42057 { (exit 1); exit 1; }; }
42058 fi
42059 case $CONFIG_SHELL in
42060 '')
42061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42062for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42063do
42064 IFS=$as_save_IFS
42065 test -z "$as_dir" && as_dir=.
42066 for as_base in sh bash ksh sh5; do
42067 case $as_dir in
42068 /*)
42069 if ("$as_dir/$as_base" -c '
42070 as_lineno_1=$LINENO
42071 as_lineno_2=$LINENO
42072 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42073 test "x$as_lineno_1" != "x$as_lineno_2" &&
42074 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42075 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42076 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42077 CONFIG_SHELL=$as_dir/$as_base
42078 export CONFIG_SHELL
42079 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42080 fi;;
42081 esac
42082 done
42083done
42084;;
42085 esac
42086
42087 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42088 # uniformly replaced by the line number. The first 'sed' inserts a
42089 # line-number line before each line; the second 'sed' does the real
42090 # work. The second script uses 'N' to pair each line-number line
42091 # with the numbered line, and appends trailing '-' during
42092 # substitution so that $LINENO is not a special case at line end.
42093 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42094 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42095 sed '=' <$as_myself |
42096 sed '
42097 N
42098 s,$,-,
42099 : loop
42100 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42101 t loop
42102 s,-$,,
42103 s,^['$as_cr_digits']*\n,,
42104 ' >$as_me.lineno &&
42105 chmod +x $as_me.lineno ||
42106 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42107echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42108 { (exit 1); exit 1; }; }
42109
42110 # Don't try to exec as it changes $[0], causing all sort of problems
42111 # (the dirname of $[0] is not the place where we might find the
42112 # original and so on. Autoconf is especially sensible to this).
42113 . ./$as_me.lineno
42114 # Exit status is that of the last command.
42115 exit
42116}
42117
42118
42119case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42120 *c*,-n*) ECHO_N= ECHO_C='
42121' ECHO_T=' ' ;;
42122 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42123 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42124esac
42125
42126if expr a : '\(a\)' >/dev/null 2>&1; then
42127 as_expr=expr
42128else
42129 as_expr=false
42130fi
42131
42132rm -f conf$$ conf$$.exe conf$$.file
42133echo >conf$$.file
42134if ln -s conf$$.file conf$$ 2>/dev/null; then
42135 # We could just check for DJGPP; but this test a) works b) is more generic
42136 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42137 if test -f conf$$.exe; then
42138 # Don't use ln at all; we don't have any links
42139 as_ln_s='cp -p'
42140 else
42141 as_ln_s='ln -s'
42142 fi
42143elif ln conf$$.file conf$$ 2>/dev/null; then
42144 as_ln_s=ln
42145else
42146 as_ln_s='cp -p'
42147fi
42148rm -f conf$$ conf$$.exe conf$$.file
42149
42150if mkdir -p . 2>/dev/null; then
42151 as_mkdir_p=:
42152else
ac1cb8d3 42153 test -d ./-p && rmdir ./-p
a848cd7e
SC
42154 as_mkdir_p=false
42155fi
42156
42157as_executable_p="test -f"
42158
42159# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42160as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42161
42162# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42163as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42164
42165
42166# IFS
42167# We need space, tab and new line, in precisely that order.
42168as_nl='
42169'
42170IFS=" $as_nl"
42171
42172# CDPATH.
42173$as_unset CDPATH
42174
42175exec 6>&1
42176
42177# Open the log real soon, to keep \$[0] and so on meaningful, and to
42178# report actual input values of CONFIG_FILES etc. instead of their
42179# values after options handling. Logging --version etc. is OK.
42180exec 5>>config.log
42181{
42182 echo
42183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42184## Running $as_me. ##
42185_ASBOX
42186} >&5
42187cat >&5 <<_CSEOF
42188
7714864e 42189This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42190generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42191
42192 CONFIG_FILES = $CONFIG_FILES
42193 CONFIG_HEADERS = $CONFIG_HEADERS
42194 CONFIG_LINKS = $CONFIG_LINKS
42195 CONFIG_COMMANDS = $CONFIG_COMMANDS
42196 $ $0 $@
42197
42198_CSEOF
42199echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42200echo >&5
42201_ACEOF
42202
42203# Files that config.status was made for.
42204if test -n "$ac_config_files"; then
42205 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42206fi
42207
42208if test -n "$ac_config_headers"; then
42209 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42210fi
42211
42212if test -n "$ac_config_links"; then
42213 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42214fi
42215
42216if test -n "$ac_config_commands"; then
42217 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42218fi
42219
42220cat >>$CONFIG_STATUS <<\_ACEOF
42221
42222ac_cs_usage="\
42223\`$as_me' instantiates files from templates according to the
42224current configuration.
42225
42226Usage: $0 [OPTIONS] [FILE]...
42227
42228 -h, --help print this help, then exit
42229 -V, --version print version number, then exit
42230 -q, --quiet do not print progress messages
42231 -d, --debug don't remove temporary files
42232 --recheck update $as_me by reconfiguring in the same conditions
42233 --file=FILE[:TEMPLATE]
ac1cb8d3 42234 instantiate the configuration file FILE
a848cd7e 42235 --header=FILE[:TEMPLATE]
ac1cb8d3 42236 instantiate the configuration header FILE
a848cd7e
SC
42237
42238Configuration files:
42239$config_files
42240
42241Configuration headers:
42242$config_headers
42243
42244Configuration commands:
42245$config_commands
42246
42247Report bugs to <bug-autoconf@gnu.org>."
42248_ACEOF
42249
42250cat >>$CONFIG_STATUS <<_ACEOF
42251ac_cs_version="\\
7714864e 42252wxWidgets config.status 2.5.3
ac1cb8d3 42253configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42254 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42255
ac1cb8d3 42256Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42257This config.status script is free software; the Free Software Foundation
42258gives unlimited permission to copy, distribute and modify it."
42259srcdir=$srcdir
42260INSTALL="$INSTALL"
42261_ACEOF
42262
42263cat >>$CONFIG_STATUS <<\_ACEOF
42264# If no file are specified by the user, then we need to provide default
42265# value. By we need to know if files were specified by the user.
42266ac_need_defaults=:
42267while test $# != 0
42268do
42269 case $1 in
42270 --*=*)
42271 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42272 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42273 ac_shift=:
42274 ;;
42275 -*)
42276 ac_option=$1
42277 ac_optarg=$2
42278 ac_shift=shift
42279 ;;
42280 *) # This is not an option, so the user has probably given explicit
42281 # arguments.
42282 ac_option=$1
42283 ac_need_defaults=false;;
42284 esac
42285
42286 case $ac_option in
42287 # Handling of the options.
42288_ACEOF
42289cat >>$CONFIG_STATUS <<\_ACEOF
42290 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42291 ac_cs_recheck=: ;;
42292 --version | --vers* | -V )
42293 echo "$ac_cs_version"; exit 0 ;;
42294 --he | --h)
42295 # Conflict between --help and --header
42296 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42297Try \`$0 --help' for more information." >&5
42298echo "$as_me: error: ambiguous option: $1
42299Try \`$0 --help' for more information." >&2;}
42300 { (exit 1); exit 1; }; };;
42301 --help | --hel | -h )
42302 echo "$ac_cs_usage"; exit 0 ;;
42303 --debug | --d* | -d )
42304 debug=: ;;
42305 --file | --fil | --fi | --f )
42306 $ac_shift
42307 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42308 ac_need_defaults=false;;
42309 --header | --heade | --head | --hea )
42310 $ac_shift
42311 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42312 ac_need_defaults=false;;
42313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42315 ac_cs_silent=: ;;
42316
42317 # This is an error.
42318 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42319Try \`$0 --help' for more information." >&5
42320echo "$as_me: error: unrecognized option: $1
42321Try \`$0 --help' for more information." >&2;}
42322 { (exit 1); exit 1; }; } ;;
42323
42324 *) ac_config_targets="$ac_config_targets $1" ;;
42325
42326 esac
42327 shift
42328done
42329
42330ac_configure_extra_args=
42331
42332if $ac_cs_silent; then
42333 exec 6>/dev/null
42334 ac_configure_extra_args="$ac_configure_extra_args --silent"
42335fi
42336
42337_ACEOF
42338cat >>$CONFIG_STATUS <<_ACEOF
42339if \$ac_cs_recheck; then
42340 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42341 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42342fi
42343
42344_ACEOF
42345
42346cat >>$CONFIG_STATUS <<_ACEOF
42347#
42348# INIT-COMMANDS section.
42349#
42350
ceec2216
RL
42351 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42352 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42353 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42354 LN_S="${LN_S}"
a848cd7e
SC
42355
42356
42357_ACEOF
42358
42359
42360
42361cat >>$CONFIG_STATUS <<\_ACEOF
42362for ac_config_target in $ac_config_targets
42363do
42364 case "$ac_config_target" in
42365 # Handling of arguments.
ceec2216
RL
42366 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42367 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42368 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42369 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42370 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42371 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42372 "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
42373 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42374echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42375 { (exit 1); exit 1; }; };;
42376 esac
42377done
42378
42379# If the user did not use the arguments to specify the items to instantiate,
42380# then the envvar interface is used. Set only those that are not.
42381# We use the long form for the default assignment because of an extremely
42382# bizarre bug on SunOS 4.1.3.
42383if $ac_need_defaults; then
42384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42385 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42386 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42387fi
42388
42389# Have a temporary directory for convenience. Make it in the build tree
42390# simply because there is no reason to put it here, and in addition,
42391# creating and moving files from /tmp can sometimes cause problems.
42392# Create a temporary directory, and hook for its removal unless debugging.
42393$debug ||
42394{
42395 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42396 trap '{ (exit 1); exit 1; }' 1 2 13 15
42397}
42398
42399# Create a (secure) tmp directory for tmp files.
42400
42401{
42402 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42403 test -n "$tmp" && test -d "$tmp"
42404} ||
42405{
42406 tmp=./confstat$$-$RANDOM
42407 (umask 077 && mkdir $tmp)
42408} ||
42409{
42410 echo "$me: cannot create a temporary directory in ." >&2
42411 { (exit 1); exit 1; }
42412}
42413
42414_ACEOF
42415
42416cat >>$CONFIG_STATUS <<_ACEOF
42417
42418#
42419# CONFIG_FILES section.
42420#
42421
42422# No need to generate the scripts if there are no CONFIG_FILES.
42423# This happens for instance when ./config.status config.h
42424if test -n "\$CONFIG_FILES"; then
42425 # Protect against being on the right side of a sed subst in config.status.
42426 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42427 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42428s,@SHELL@,$SHELL,;t t
42429s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42430s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42431s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42432s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42433s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42434s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42435s,@exec_prefix@,$exec_prefix,;t t
42436s,@prefix@,$prefix,;t t
42437s,@program_transform_name@,$program_transform_name,;t t
42438s,@bindir@,$bindir,;t t
42439s,@sbindir@,$sbindir,;t t
42440s,@libexecdir@,$libexecdir,;t t
42441s,@datadir@,$datadir,;t t
42442s,@sysconfdir@,$sysconfdir,;t t
42443s,@sharedstatedir@,$sharedstatedir,;t t
42444s,@localstatedir@,$localstatedir,;t t
42445s,@libdir@,$libdir,;t t
42446s,@includedir@,$includedir,;t t
42447s,@oldincludedir@,$oldincludedir,;t t
42448s,@infodir@,$infodir,;t t
42449s,@mandir@,$mandir,;t t
42450s,@build_alias@,$build_alias,;t t
42451s,@host_alias@,$host_alias,;t t
42452s,@target_alias@,$target_alias,;t t
42453s,@DEFS@,$DEFS,;t t
42454s,@ECHO_C@,$ECHO_C,;t t
42455s,@ECHO_N@,$ECHO_N,;t t
42456s,@ECHO_T@,$ECHO_T,;t t
42457s,@LIBS@,$LIBS,;t t
42458s,@build@,$build,;t t
42459s,@build_cpu@,$build_cpu,;t t
42460s,@build_vendor@,$build_vendor,;t t
42461s,@build_os@,$build_os,;t t
42462s,@host@,$host,;t t
42463s,@host_cpu@,$host_cpu,;t t
42464s,@host_vendor@,$host_vendor,;t t
42465s,@host_os@,$host_os,;t t
42466s,@target@,$target,;t t
42467s,@target_cpu@,$target_cpu,;t t
42468s,@target_vendor@,$target_vendor,;t t
42469s,@target_os@,$target_os,;t t
42470s,@CC@,$CC,;t t
42471s,@CFLAGS@,$CFLAGS,;t t
42472s,@LDFLAGS@,$LDFLAGS,;t t
42473s,@CPPFLAGS@,$CPPFLAGS,;t t
42474s,@ac_ct_CC@,$ac_ct_CC,;t t
42475s,@EXEEXT@,$EXEEXT,;t t
42476s,@OBJEXT@,$OBJEXT,;t t
42477s,@CPP@,$CPP,;t t
42478s,@EGREP@,$EGREP,;t t
42479s,@CXX@,$CXX,;t t
42480s,@CXXFLAGS@,$CXXFLAGS,;t t
42481s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42482s,@RANLIB@,$RANLIB,;t t
42483s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42484s,@AR@,$AR,;t t
42485s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42486s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42487s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42488s,@STRIP@,$STRIP,;t t
42489s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42490s,@LN_S@,$LN_S,;t t
42491s,@CXXCPP@,$CXXCPP,;t t
42492s,@subdirs@,$subdirs,;t t
42493s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42494s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42495s,@GTK_LIBS@,$GTK_LIBS,;t t
42496s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42497s,@X_CFLAGS@,$X_CFLAGS,;t t
42498s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42499s,@X_LIBS@,$X_LIBS,;t t
42500s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42501s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42502s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42503s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42504s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42505s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42506s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42507s,@RESCOMP@,$RESCOMP,;t t
42508s,@DEREZ@,$DEREZ,;t t
42509s,@SETFILE@,$SETFILE,;t t
42510s,@LIBICONV@,$LIBICONV,;t t
42511s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42512s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42513s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42514s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42515s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42516s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42517s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42518s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42519s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42520s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42521s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42522s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42523s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42524s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42525s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42526s,@VENDOR@,$VENDOR,;t t
42527s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42528s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42529s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42530s,@WXUNIV@,$WXUNIV,;t t
42531s,@MONOLITHIC@,$MONOLITHIC,;t t
42532s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42533s,@EXTRALIBS@,$EXTRALIBS,;t t
42534s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42535s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42536s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42537s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42538s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42539s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42540s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42541s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42542s,@UNICODE@,$UNICODE,;t t
42543s,@BUILD@,$BUILD,;t t
42544s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42545s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42546s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42547s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42548s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42549s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42550s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42551s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42552s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42553s,@SET_MAKE@,$SET_MAKE,;t t
42554s,@MAKE_SET@,$MAKE_SET,;t t
42555s,@ac_ct_AR@,$ac_ct_AR,;t t
42556s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42557s,@NM@,$NM,;t t
42558s,@ac_ct_NM@,$ac_ct_NM,;t t
42559s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42560s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42561s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42562s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42563s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42564s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 42565s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
42566s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42567s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 42568s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
42569s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42570s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42571s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42572s,@LIBPREFIX@,$LIBPREFIX,;t t
42573s,@LIBEXT@,$LIBEXT,;t t
42574s,@DLLPREFIX@,$DLLPREFIX,;t t
42575s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42576s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42577s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42578s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42579s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42580s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42581s,@PIC_FLAG@,$PIC_FLAG,;t t
42582s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42583s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42584s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42585s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42586s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42587s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42588s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42589s,@GCC_PCH@,$GCC_PCH,;t t
42590s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42591s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42592s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42593s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42594s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42595s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42596s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42597s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42598s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42599s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42600s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42601s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42602s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42603s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42604s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42605s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42606s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42607s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 42608s,@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 42609s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 42610s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42611s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42612s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42613s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 42614s,@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 42615s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 42616s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42617s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42618s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42619s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42620s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42621s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42622s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42623s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42624s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42625s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42626s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42627s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42628s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42629s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 42630s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 42631s,@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
42632s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42633s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42634s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42635s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42636s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42637s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42638s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42639s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42640s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42641s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42642s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42643s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42644s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42645s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42646s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42647s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42648s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42649s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42650s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42651s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42652s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42653s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42654s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42655s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42656s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42657s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42658s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42659s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42660s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42661s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42662s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42663s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42664s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42665s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42666s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42667s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42668s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42669s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42670s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42671s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42672s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42673s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42674s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42675s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42676s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42677s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42678s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42679s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42680s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42681s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42682s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42683s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42684s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42685s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42686s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42687s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42688s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42689s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42690s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42691s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42692s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42693s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42694s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42695s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42696s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42697s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42698s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42699s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42700s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42701s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42702s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42703s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 42704s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
42705s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42706s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42707s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42708s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42709s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42710s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42711s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42712s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 42713s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42714s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42715s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42716s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42717s,@USE_GUI@,$USE_GUI,;t t
42718s,@AFMINSTALL@,$AFMINSTALL,;t t
42719s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42720s,@TOOLKIT@,$TOOLKIT,;t t
42721s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42722s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42723s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42724s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42725s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42726s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42727s,@WIDGET_SET@,$WIDGET_SET,;t t
42728s,@WX_RELEASE@,$WX_RELEASE,;t t
42729s,@WX_VERSION@,$WX_VERSION,;t t
42730s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42731s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42732s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42733s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42734s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42735s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42736s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42737s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42738s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42739s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42740s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42741s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42742s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42743s,@DISTDIR@,$DISTDIR,;t t
42744s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42745s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42746s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42747s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42748s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42749s,@RESFLAGS@,$RESFLAGS,;t t
42750s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42751s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42752s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42753s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42754s,@MACRESCOMP@,$MACRESCOMP,;t t
42755s,@MACSETFILE@,$MACSETFILE,;t t
42756s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42757s,@GCC@,$GCC,;t t
a848cd7e 42758s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42759s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42760s,@LIBOBJS@,$LIBOBJS,;t t
42761s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42762CEOF
42763
42764_ACEOF
42765
42766 cat >>$CONFIG_STATUS <<\_ACEOF
42767 # Split the substitutions into bite-sized pieces for seds with
42768 # small command number limits, like on Digital OSF/1 and HP-UX.
42769 ac_max_sed_lines=48
42770 ac_sed_frag=1 # Number of current file.
42771 ac_beg=1 # First line for current file.
42772 ac_end=$ac_max_sed_lines # Line after last line for current file.
42773 ac_more_lines=:
42774 ac_sed_cmds=
42775 while $ac_more_lines; do
42776 if test $ac_beg -gt 1; then
42777 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42778 else
42779 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42780 fi
42781 if test ! -s $tmp/subs.frag; then
42782 ac_more_lines=false
42783 else
42784 # The purpose of the label and of the branching condition is to
42785 # speed up the sed processing (if there are no `@' at all, there
42786 # is no need to browse any of the substitutions).
42787 # These are the two extra sed commands mentioned above.
42788 (echo ':t
42789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42790 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42791 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42792 else
ac1cb8d3 42793 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42794 fi
42795 ac_sed_frag=`expr $ac_sed_frag + 1`
42796 ac_beg=$ac_end
42797 ac_end=`expr $ac_end + $ac_max_sed_lines`
42798 fi
42799 done
42800 if test -z "$ac_sed_cmds"; then
42801 ac_sed_cmds=cat
42802 fi
42803fi # test -n "$CONFIG_FILES"
42804
42805_ACEOF
42806cat >>$CONFIG_STATUS <<\_ACEOF
42807for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42809 case $ac_file in
42810 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42811 cat >$tmp/stdin
42812 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42814 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42816 * ) ac_file_in=$ac_file.in ;;
42817 esac
42818
42819 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42820 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42821$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42822 X"$ac_file" : 'X\(//\)[^/]' \| \
42823 X"$ac_file" : 'X\(//\)$' \| \
42824 X"$ac_file" : 'X\(/\)' \| \
42825 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42826echo X"$ac_file" |
42827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42829 /^X\(\/\/\)$/{ s//\1/; q; }
42830 /^X\(\/\).*/{ s//\1/; q; }
42831 s/.*/./; q'`
42832 { if $as_mkdir_p; then
42833 mkdir -p "$ac_dir"
42834 else
42835 as_dir="$ac_dir"
42836 as_dirs=
42837 while test ! -d "$as_dir"; do
42838 as_dirs="$as_dir $as_dirs"
42839 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42840$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42841 X"$as_dir" : 'X\(//\)[^/]' \| \
42842 X"$as_dir" : 'X\(//\)$' \| \
42843 X"$as_dir" : 'X\(/\)' \| \
42844 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42845echo X"$as_dir" |
42846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42848 /^X\(\/\/\)$/{ s//\1/; q; }
42849 /^X\(\/\).*/{ s//\1/; q; }
42850 s/.*/./; q'`
42851 done
42852 test ! -n "$as_dirs" || mkdir $as_dirs
42853 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42854echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42855 { (exit 1); exit 1; }; }; }
42856
42857 ac_builddir=.
42858
42859if test "$ac_dir" != .; then
42860 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42861 # A "../" for each directory in $ac_dir_suffix.
42862 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42863else
42864 ac_dir_suffix= ac_top_builddir=
42865fi
42866
42867case $srcdir in
42868 .) # No --srcdir option. We are building in place.
42869 ac_srcdir=.
42870 if test -z "$ac_top_builddir"; then
42871 ac_top_srcdir=.
42872 else
42873 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42874 fi ;;
42875 [\\/]* | ?:[\\/]* ) # Absolute path.
42876 ac_srcdir=$srcdir$ac_dir_suffix;
42877 ac_top_srcdir=$srcdir ;;
42878 *) # Relative path.
42879 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42880 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42881esac
ac1cb8d3
VS
42882
42883# Do not use `cd foo && pwd` to compute absolute paths, because
42884# the directories may not exist.
42885case `pwd` in
42886.) ac_abs_builddir="$ac_dir";;
42887*)
42888 case "$ac_dir" in
42889 .) ac_abs_builddir=`pwd`;;
42890 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42891 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42892 esac;;
42893esac
42894case $ac_abs_builddir in
42895.) ac_abs_top_builddir=${ac_top_builddir}.;;
42896*)
42897 case ${ac_top_builddir}. in
42898 .) ac_abs_top_builddir=$ac_abs_builddir;;
42899 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42900 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42901 esac;;
42902esac
42903case $ac_abs_builddir in
42904.) ac_abs_srcdir=$ac_srcdir;;
42905*)
42906 case $ac_srcdir in
42907 .) ac_abs_srcdir=$ac_abs_builddir;;
42908 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42909 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42910 esac;;
42911esac
42912case $ac_abs_builddir in
42913.) ac_abs_top_srcdir=$ac_top_srcdir;;
42914*)
42915 case $ac_top_srcdir in
42916 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42917 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42918 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42919 esac;;
42920esac
a848cd7e
SC
42921
42922
42923 case $INSTALL in
42924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42925 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42926 esac
42927
a848cd7e
SC
42928 # Let's still pretend it is `configure' which instantiates (i.e., don't
42929 # use $as_me), people would be surprised to read:
42930 # /* config.h. Generated by config.status. */
42931 if test x"$ac_file" = x-; then
42932 configure_input=
42933 else
42934 configure_input="$ac_file. "
42935 fi
42936 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42937 sed 's,.*/,,'` by configure."
a848cd7e
SC
42938
42939 # First look for the input files in the build tree, otherwise in the
42940 # src tree.
42941 ac_file_inputs=`IFS=:
42942 for f in $ac_file_in; do
42943 case $f in
42944 -) echo $tmp/stdin ;;
42945 [\\/$]*)
ac1cb8d3
VS
42946 # Absolute (can't be DOS-style, as IFS=:)
42947 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42948echo "$as_me: error: cannot find input file: $f" >&2;}
42949 { (exit 1); exit 1; }; }
ac1cb8d3 42950 echo "$f";;
a848cd7e 42951 *) # Relative
ac1cb8d3
VS
42952 if test -f "$f"; then
42953 # Build tree
42954 echo "$f"
42955 elif test -f "$srcdir/$f"; then
42956 # Source tree
42957 echo "$srcdir/$f"
42958 else
42959 # /dev/null tree
42960 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42961echo "$as_me: error: cannot find input file: $f" >&2;}
42962 { (exit 1); exit 1; }; }
ac1cb8d3 42963 fi;;
a848cd7e
SC
42964 esac
42965 done` || { (exit 1); exit 1; }
da4486fb
VZ
42966
42967 if test x"$ac_file" != x-; then
42968 { echo "$as_me:$LINENO: creating $ac_file" >&5
42969echo "$as_me: creating $ac_file" >&6;}
42970 rm -f "$ac_file"
42971 fi
a848cd7e
SC
42972_ACEOF
42973cat >>$CONFIG_STATUS <<_ACEOF
42974 sed "$ac_vpsub
42975$extrasub
42976_ACEOF
42977cat >>$CONFIG_STATUS <<\_ACEOF
42978:t
42979/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42980s,@configure_input@,$configure_input,;t t
42981s,@srcdir@,$ac_srcdir,;t t
42982s,@abs_srcdir@,$ac_abs_srcdir,;t t
42983s,@top_srcdir@,$ac_top_srcdir,;t t
42984s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42985s,@builddir@,$ac_builddir,;t t
42986s,@abs_builddir@,$ac_abs_builddir,;t t
42987s,@top_builddir@,$ac_top_builddir,;t t
42988s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42989s,@INSTALL@,$ac_INSTALL,;t t
42990" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42991 rm -f $tmp/stdin
42992 if test x"$ac_file" != x-; then
42993 mv $tmp/out $ac_file
42994 else
42995 cat $tmp/out
42996 rm -f $tmp/out
42997 fi
42998
ceec2216
RL
42999 # Run the commands associated with the file.
43000 case $ac_file in
43001 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
43002 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
43003 esac
a848cd7e
SC
43004done
43005_ACEOF
43006cat >>$CONFIG_STATUS <<\_ACEOF
43007
43008#
43009# CONFIG_HEADER section.
43010#
43011
43012# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43013# NAME is the cpp macro being defined and VALUE is the value it is being given.
43014#
43015# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43016ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43017ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43018ac_dC=' '
43019ac_dD=',;t'
43020# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43021ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43022ac_uB='$,\1#\2define\3'
43023ac_uC=' '
43024ac_uD=',;t'
43025
43026for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43027 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43028 case $ac_file in
43029 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43030 cat >$tmp/stdin
43031 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43033 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43034 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43035 * ) ac_file_in=$ac_file.in ;;
43036 esac
43037
43038 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43039echo "$as_me: creating $ac_file" >&6;}
43040
43041 # First look for the input files in the build tree, otherwise in the
43042 # src tree.
43043 ac_file_inputs=`IFS=:
43044 for f in $ac_file_in; do
43045 case $f in
43046 -) echo $tmp/stdin ;;
43047 [\\/$]*)
ac1cb8d3
VS
43048 # Absolute (can't be DOS-style, as IFS=:)
43049 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43050echo "$as_me: error: cannot find input file: $f" >&2;}
43051 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43052 # Do quote $f, to prevent DOS paths from being IFS'd.
43053 echo "$f";;
a848cd7e 43054 *) # Relative
ac1cb8d3
VS
43055 if test -f "$f"; then
43056 # Build tree
43057 echo "$f"
43058 elif test -f "$srcdir/$f"; then
43059 # Source tree
43060 echo "$srcdir/$f"
43061 else
43062 # /dev/null tree
43063 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43064echo "$as_me: error: cannot find input file: $f" >&2;}
43065 { (exit 1); exit 1; }; }
ac1cb8d3 43066 fi;;
a848cd7e
SC
43067 esac
43068 done` || { (exit 1); exit 1; }
43069 # Remove the trailing spaces.
ac1cb8d3 43070 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43071
43072_ACEOF
43073
43074# Transform confdefs.h into two sed scripts, `conftest.defines' and
43075# `conftest.undefs', that substitutes the proper values into
43076# config.h.in to produce config.h. The first handles `#define'
43077# templates, and the second `#undef' templates.
43078# And first: Protect against being on the right side of a sed subst in
43079# config.status. Protect against being in an unquoted here document
43080# in config.status.
43081rm -f conftest.defines conftest.undefs
43082# Using a here document instead of a string reduces the quoting nightmare.
43083# Putting comments in sed scripts is not portable.
43084#
43085# `end' is used to avoid that the second main sed command (meant for
43086# 0-ary CPP macros) applies to n-ary macro definitions.
43087# See the Autoconf documentation for `clear'.
43088cat >confdef2sed.sed <<\_ACEOF
43089s/[\\&,]/\\&/g
43090s,[\\$`],\\&,g
43091t clear
43092: clear
ac1cb8d3 43093s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43094t end
ac1cb8d3 43095s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43096: end
43097_ACEOF
43098# If some macros were called several times there might be several times
43099# the same #defines, which is useless. Nevertheless, we may not want to
43100# sort them, since we want the *last* AC-DEFINE to be honored.
43101uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43102sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43103rm -f confdef2sed.sed
43104
43105# This sed command replaces #undef with comments. This is necessary, for
43106# example, in the case of _POSIX_SOURCE, which is predefined and required
43107# on some systems where configure will not decide to define it.
43108cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43109s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43110_ACEOF
43111
43112# Break up conftest.defines because some shells have a limit on the size
43113# of here documents, and old seds have small limits too (100 cmds).
43114echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43115echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43116echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43117echo ' :' >>$CONFIG_STATUS
43118rm -f conftest.tail
43119while grep . conftest.defines >/dev/null
43120do
43121 # Write a limited-size here document to $tmp/defines.sed.
43122 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43123 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43124 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43125 # Work around the forget-to-reset-the-flag bug.
43126 echo 't clr' >>$CONFIG_STATUS
43127 echo ': clr' >>$CONFIG_STATUS
43128 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43129 echo 'CEOF
43130 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43131 rm -f $tmp/in
43132 mv $tmp/out $tmp/in
43133' >>$CONFIG_STATUS
43134 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43135 rm -f conftest.defines
43136 mv conftest.tail conftest.defines
43137done
43138rm -f conftest.defines
43139echo ' fi # grep' >>$CONFIG_STATUS
43140echo >>$CONFIG_STATUS
43141
43142# Break up conftest.undefs because some shells have a limit on the size
43143# of here documents, and old seds have small limits too (100 cmds).
43144echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43145rm -f conftest.tail
43146while grep . conftest.undefs >/dev/null
43147do
43148 # Write a limited-size here document to $tmp/undefs.sed.
43149 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43150 # Speed up: don't consider the non `#undef'
ac1cb8d3 43151 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43152 # Work around the forget-to-reset-the-flag bug.
43153 echo 't clr' >>$CONFIG_STATUS
43154 echo ': clr' >>$CONFIG_STATUS
43155 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43156 echo 'CEOF
43157 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43158 rm -f $tmp/in
43159 mv $tmp/out $tmp/in
43160' >>$CONFIG_STATUS
43161 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43162 rm -f conftest.undefs
43163 mv conftest.tail conftest.undefs
43164done
43165rm -f conftest.undefs
43166
43167cat >>$CONFIG_STATUS <<\_ACEOF
43168 # Let's still pretend it is `configure' which instantiates (i.e., don't
43169 # use $as_me), people would be surprised to read:
43170 # /* config.h. Generated by config.status. */
43171 if test x"$ac_file" = x-; then
43172 echo "/* Generated by configure. */" >$tmp/config.h
43173 else
43174 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43175 fi
43176 cat $tmp/in >>$tmp/config.h
43177 rm -f $tmp/in
43178 if test x"$ac_file" != x-; then
43179 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43180 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43181echo "$as_me: $ac_file is unchanged" >&6;}
43182 else
43183 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43184$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43185 X"$ac_file" : 'X\(//\)[^/]' \| \
43186 X"$ac_file" : 'X\(//\)$' \| \
43187 X"$ac_file" : 'X\(/\)' \| \
43188 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43189echo X"$ac_file" |
43190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43192 /^X\(\/\/\)$/{ s//\1/; q; }
43193 /^X\(\/\).*/{ s//\1/; q; }
43194 s/.*/./; q'`
43195 { if $as_mkdir_p; then
43196 mkdir -p "$ac_dir"
43197 else
43198 as_dir="$ac_dir"
43199 as_dirs=
43200 while test ! -d "$as_dir"; do
43201 as_dirs="$as_dir $as_dirs"
43202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43203$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43204 X"$as_dir" : 'X\(//\)[^/]' \| \
43205 X"$as_dir" : 'X\(//\)$' \| \
43206 X"$as_dir" : 'X\(/\)' \| \
43207 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43208echo X"$as_dir" |
43209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43211 /^X\(\/\/\)$/{ s//\1/; q; }
43212 /^X\(\/\).*/{ s//\1/; q; }
43213 s/.*/./; q'`
43214 done
43215 test ! -n "$as_dirs" || mkdir $as_dirs
43216 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43217echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43218 { (exit 1); exit 1; }; }; }
43219
43220 rm -f $ac_file
43221 mv $tmp/config.h $ac_file
43222 fi
43223 else
43224 cat $tmp/config.h
43225 rm -f $tmp/config.h
43226 fi
43227done
43228_ACEOF
43229cat >>$CONFIG_STATUS <<\_ACEOF
43230
43231#
43232# CONFIG_COMMANDS section.
43233#
43234for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43235 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43236 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43237 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43238$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43239 X"$ac_dest" : 'X\(//\)[^/]' \| \
43240 X"$ac_dest" : 'X\(//\)$' \| \
43241 X"$ac_dest" : 'X\(/\)' \| \
43242 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43243echo X"$ac_dest" |
43244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43246 /^X\(\/\/\)$/{ s//\1/; q; }
43247 /^X\(\/\).*/{ s//\1/; q; }
43248 s/.*/./; q'`
ac1cb8d3
VS
43249 { if $as_mkdir_p; then
43250 mkdir -p "$ac_dir"
43251 else
43252 as_dir="$ac_dir"
43253 as_dirs=
43254 while test ! -d "$as_dir"; do
43255 as_dirs="$as_dir $as_dirs"
43256 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43257$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43258 X"$as_dir" : 'X\(//\)[^/]' \| \
43259 X"$as_dir" : 'X\(//\)$' \| \
43260 X"$as_dir" : 'X\(/\)' \| \
43261 . : '\(.\)' 2>/dev/null ||
43262echo X"$as_dir" |
43263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43265 /^X\(\/\/\)$/{ s//\1/; q; }
43266 /^X\(\/\).*/{ s//\1/; q; }
43267 s/.*/./; q'`
43268 done
43269 test ! -n "$as_dirs" || mkdir $as_dirs
43270 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43271echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43272 { (exit 1); exit 1; }; }; }
43273
a848cd7e
SC
43274 ac_builddir=.
43275
43276if test "$ac_dir" != .; then
43277 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43278 # A "../" for each directory in $ac_dir_suffix.
43279 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43280else
43281 ac_dir_suffix= ac_top_builddir=
43282fi
43283
43284case $srcdir in
43285 .) # No --srcdir option. We are building in place.
43286 ac_srcdir=.
43287 if test -z "$ac_top_builddir"; then
43288 ac_top_srcdir=.
43289 else
43290 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43291 fi ;;
43292 [\\/]* | ?:[\\/]* ) # Absolute path.
43293 ac_srcdir=$srcdir$ac_dir_suffix;
43294 ac_top_srcdir=$srcdir ;;
43295 *) # Relative path.
43296 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43297 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43298esac
ac1cb8d3
VS
43299
43300# Do not use `cd foo && pwd` to compute absolute paths, because
43301# the directories may not exist.
43302case `pwd` in
43303.) ac_abs_builddir="$ac_dir";;
43304*)
43305 case "$ac_dir" in
43306 .) ac_abs_builddir=`pwd`;;
43307 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43308 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43309 esac;;
43310esac
43311case $ac_abs_builddir in
43312.) ac_abs_top_builddir=${ac_top_builddir}.;;
43313*)
43314 case ${ac_top_builddir}. in
43315 .) ac_abs_top_builddir=$ac_abs_builddir;;
43316 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43317 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43318 esac;;
43319esac
43320case $ac_abs_builddir in
43321.) ac_abs_srcdir=$ac_srcdir;;
43322*)
43323 case $ac_srcdir in
43324 .) ac_abs_srcdir=$ac_abs_builddir;;
43325 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43326 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43327 esac;;
43328esac
43329case $ac_abs_builddir in
43330.) ac_abs_top_srcdir=$ac_top_srcdir;;
43331*)
43332 case $ac_top_srcdir in
43333 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43334 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43335 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43336 esac;;
43337esac
a848cd7e
SC
43338
43339
43340 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43341echo "$as_me: executing $ac_dest commands" >&6;}
43342 case $ac_dest in
ceec2216
RL
43343 wx-config ) rm -f wx-config
43344 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43345 ;;
a848cd7e
SC
43346 esac
43347done
43348_ACEOF
43349
43350cat >>$CONFIG_STATUS <<\_ACEOF
43351
43352{ (exit 0); exit 0; }
43353_ACEOF
43354chmod +x $CONFIG_STATUS
43355ac_clean_files=$ac_clean_files_save
43356
43357
43358# configure is writing to config.log, and then calls config.status.
43359# config.status does its own redirection, appending to config.log.
43360# Unfortunately, on DOS this fails, as config.log is still kept open
43361# by configure, so config.status won't be able to write to it; its
43362# output is simply discarded. So we exec the FD to /dev/null,
43363# effectively closing config.log, so it can be properly (re)opened and
43364# appended to by config.status. When coming back to configure, we
43365# need to make the FD available again.
43366if test "$no_create" != yes; then
43367 ac_cs_success=:
43368 ac_config_status_args=
43369 test "$silent" = yes &&
43370 ac_config_status_args="$ac_config_status_args --quiet"
43371 exec 5>/dev/null
43372 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43373 exec 5>>config.log
43374 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43375 # would make configure fail if this is the last instruction.
43376 $ac_cs_success || { (exit 1); exit 1; }
43377fi
43378
43379#
43380# CONFIG_SUBDIRS section.
43381#
43382if test "$no_recursion" != yes; then
43383
43384 # Remove --cache-file and --srcdir arguments so they do not pile up.
43385 ac_sub_configure_args=
43386 ac_prev=
43387 for ac_arg in $ac_configure_args; do
43388 if test -n "$ac_prev"; then
43389 ac_prev=
43390 continue
43391 fi
43392 case $ac_arg in
43393 -cache-file | --cache-file | --cache-fil | --cache-fi \
43394 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43395 ac_prev=cache_file ;;
43396 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43397 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43398 | --c=*)
43399 ;;
43400 --config-cache | -C)
43401 ;;
43402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43403 ac_prev=srcdir ;;
43404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43405 ;;
43406 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43407 ac_prev=prefix ;;
43408 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43409 ;;
43410 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43411 esac
43412 done
43413
43414 # Always prepend --prefix to ensure using the same prefix
43415 # in subdir configurations.
43416 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43417
43418 ac_popdir=`pwd`
43419 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43420
43421 # Do not complain, so a configure script can configure whichever
43422 # parts of a large source tree are present.
43423 test -d $srcdir/$ac_dir || continue
43424
43425 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43426echo "$as_me: configuring in $ac_dir" >&6;}
43427 { if $as_mkdir_p; then
43428 mkdir -p "$ac_dir"
43429 else
43430 as_dir="$ac_dir"
43431 as_dirs=
43432 while test ! -d "$as_dir"; do
43433 as_dirs="$as_dir $as_dirs"
43434 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43435$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43436 X"$as_dir" : 'X\(//\)[^/]' \| \
43437 X"$as_dir" : 'X\(//\)$' \| \
43438 X"$as_dir" : 'X\(/\)' \| \
43439 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43440echo X"$as_dir" |
43441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43443 /^X\(\/\/\)$/{ s//\1/; q; }
43444 /^X\(\/\).*/{ s//\1/; q; }
43445 s/.*/./; q'`
43446 done
43447 test ! -n "$as_dirs" || mkdir $as_dirs
43448 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43449echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43450 { (exit 1); exit 1; }; }; }
43451
43452 ac_builddir=.
43453
43454if test "$ac_dir" != .; then
43455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43456 # A "../" for each directory in $ac_dir_suffix.
43457 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43458else
43459 ac_dir_suffix= ac_top_builddir=
43460fi
43461
43462case $srcdir in
43463 .) # No --srcdir option. We are building in place.
43464 ac_srcdir=.
43465 if test -z "$ac_top_builddir"; then
43466 ac_top_srcdir=.
43467 else
43468 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43469 fi ;;
43470 [\\/]* | ?:[\\/]* ) # Absolute path.
43471 ac_srcdir=$srcdir$ac_dir_suffix;
43472 ac_top_srcdir=$srcdir ;;
43473 *) # Relative path.
43474 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43475 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43476esac
ac1cb8d3
VS
43477
43478# Do not use `cd foo && pwd` to compute absolute paths, because
43479# the directories may not exist.
43480case `pwd` in
43481.) ac_abs_builddir="$ac_dir";;
43482*)
43483 case "$ac_dir" in
43484 .) ac_abs_builddir=`pwd`;;
43485 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43486 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43487 esac;;
43488esac
43489case $ac_abs_builddir in
43490.) ac_abs_top_builddir=${ac_top_builddir}.;;
43491*)
43492 case ${ac_top_builddir}. in
43493 .) ac_abs_top_builddir=$ac_abs_builddir;;
43494 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43495 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43496 esac;;
43497esac
43498case $ac_abs_builddir in
43499.) ac_abs_srcdir=$ac_srcdir;;
43500*)
43501 case $ac_srcdir in
43502 .) ac_abs_srcdir=$ac_abs_builddir;;
43503 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43504 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43505 esac;;
43506esac
43507case $ac_abs_builddir in
43508.) ac_abs_top_srcdir=$ac_top_srcdir;;
43509*)
43510 case $ac_top_srcdir in
43511 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43512 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43513 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43514 esac;;
43515esac
a848cd7e
SC
43516
43517
43518 cd $ac_dir
43519
43520 # Check for guested configure; otherwise get Cygnus style configure.
43521 if test -f $ac_srcdir/configure.gnu; then
43522 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43523 elif test -f $ac_srcdir/configure; then
43524 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43525 elif test -f $ac_srcdir/configure.in; then
43526 ac_sub_configure=$ac_configure
43527 else
43528 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43529echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43530 ac_sub_configure=
43531 fi
43532
43533 # The recursion is here.
43534 if test -n "$ac_sub_configure"; then
43535 # Make the cache file name correct relative to the subdirectory.
43536 case $cache_file in
43537 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43538 *) # Relative path.
ac1cb8d3 43539 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43540 esac
43541
43542 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43543echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43544 # The eval makes quoting arguments work.
43545 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43546 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43547 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43548echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43549 { (exit 1); exit 1; }; }
43550 fi
43551
da4486fb 43552 cd "$ac_popdir"
a848cd7e
SC
43553 done
43554fi
43555
43556
43557echo
77ffb593 43558echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43559echo ""
4d4ff94c 43560echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43561echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43562
77ffb593
JS
43563echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43564echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43565echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43566
77ffb593
JS
43567echo " What level of wxWidgets compatibility should be enabled?"
43568echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43569echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43570
77ffb593 43571echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43572echo " jpeg ${wxUSE_LIBJPEG-none}"
43573echo " png ${wxUSE_LIBPNG-none}"
43574echo " regex ${wxUSE_REGEX}"
43575echo " tiff ${wxUSE_LIBTIFF-none}"
43576if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43577echo " xpm ${wxUSE_LIBXPM-none}"
43578fi
43579echo " zlib ${wxUSE_ZLIB}"
43580echo " odbc ${wxUSE_ODBC}"
43581echo " expat ${wxUSE_EXPAT}"
43582echo " libmspack ${wxUSE_LIBMSPACK}"
43583echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 43584echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
43585
43586echo ""
43587