]> git.saurik.com Git - wxWidgets.git/blame - configure
Bump subrelease number
[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"
d1c38808 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_MACOSX PLATFORM_OS2 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_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_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_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_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_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_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 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 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)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
77ffb593 934 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 935 --enable-zipstream use wxZipInputStream
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
9a8f0513 947 --enable-xrc use XRC resources sub-library
a848cd7e
SC
948 --enable-constraints use layout-constraints system
949 --enable-printarch use printing architecture
950 --enable-mdi use multiple document interface architecture
8a7b1113 951 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
952 --enable-loggui use standard GUI logger
953 --enable-logwin use wxLogWindow
954 --enable-logdialog use wxLogDialog
646b6ec1 955 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
956 --enable-postscript use wxPostscriptDC device context (default for gtk+)
957 --enable-prologio not available; see contrib
958 --enable-resources not available; see contrib
959 --enable-clipboard use wxClipboard class
960 --enable-dnd use Drag'n'Drop classes
961 --enable-metafile use win32 metafiles
962 --enable-controls use all usual controls
963 --enable-accel use accelerators
964 --enable-button use wxButton class
965 --enable-bmpbutton use wxBitmapButton class
966 --enable-calendar use wxCalendarCtrl class
967 --enable-caret use wxCaret class
968 --enable-checkbox use wxCheckBox class
969 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
970 --enable-choice use wxChoice class
92bbdbcd 971 --enable-choicebook use wxChoicebook class
a848cd7e
SC
972 --enable-combobox use wxComboBox class
973 --enable-display use wxDisplay class
974 --enable-gauge use wxGauge class
975 --enable-grid use wxGrid class
976 --enable-imaglist use wxImageList class
977 --enable-listbook use wxListbook class
978 --enable-listbox use wxListBox class
979 --enable-listctrl use wxListCtrl class
980 --enable-notebook use wxNotebook class
981 --enable-radiobox use wxRadioBox class
982 --enable-radiobtn use wxRadioButton class
983 --enable-sash use wxSashWindow class
984 --enable-scrollbar use wxScrollBar class and scrollable windows
985 --enable-slider use wxSlider class
986 --enable-spinbtn use wxSpinButton class
987 --enable-spinctrl use wxSpinCtrl class
988 --enable-splitter use wxSplitterWindow class
989 --enable-statbmp use wxStaticBitmap class
990 --enable-statbox use wxStaticBox class
991 --enable-statline use wxStaticLine class
992 --enable-stattext use wxStaticText class
993 --enable-statusbar use wxStatusBar class
994 --enable-tabdialog use wxTabControl class
995 --enable-textctrl use wxTextCtrl class
996 --enable-togglebtn use wxToggleButton class
997 --enable-toolbar use wxToolBar class
998 --enable-tbarnative use native wxToolBar class
999 --enable-tbarsmpl use wxToolBarSimple class
1000 --enable-treectrl use wxTreeCtrl class
1001 --enable-tipwindow use wxTipWindow class
1002 --enable-popupwin use wxPopUpWindow class
1003 --enable-commondlg use all common dialogs
1004 --enable-choicedlg use wxChoiceDialog
1005 --enable-coldlg use wxColourDialog
1006 --enable-filedlg use wxFileDialog
1007 --enable-finddlg use wxFindReplaceDialog
1008 --enable-fontdlg use wxFontDialog
1009 --enable-dirdlg use wxDirDialog
1010 --enable-msgdlg use wxMessageDialog
1011 --enable-numberdlg use wxNumberEntryDialog
1012 --enable-splash use wxSplashScreen
1013 --enable-textdlg use wxTextDialog
1014 --enable-tipdlg use startup tips
1015 --enable-progressdlg use wxProgressDialog
1016 --enable-wizarddlg use wxWizard
1017 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1018 --enable-miniframe use wxMiniFrame class
1019 --enable-tooltips use wxToolTip class
1020 --enable-splines use spline drawing code
1021 --enable-validators use wxValidator and derived classes
1022 --enable-busyinfo use wxBusyInfo
1023 --enable-joystick use wxJoystick (Linux only)
1024 --enable-metafiles use wxMetaFile (Windows only)
1025 --enable-dragimage use wxDragImage
1026 --enable-accessibility enable accessibility support
1027 --enable-palette use wxPalette class
1028 --enable-image use wxImage class
1029 --enable-gif use gif images (GIF file format)
1030 --enable-pcx use pcx images (PCX file format)
1031 --enable-iff use iff images (IFF file format)
1032 --enable-pnm use pnm images (PNM file format)
1033 --enable-xpm use xpm images (XPM file format)
1034 --enable-icocur use Windows ICO and CUR formats
77ffb593 1035 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1036 --enable-vendor=VENDOR vendor name (win32 DLL only)
1037 --disable-largefile omit support for large files
1038 --disable-gtktest do not try to compile and run a test GTK+ program
1039 --disable-gtktest Do not try to compile and run a test GTK program
1040 --disable-sdltest Do not try to compile and run a test SDL program
1041 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1042 --disable-precomp-headers
1043 don't use precompiled headers even if compiler can
a848cd7e
SC
1044
1045Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gtk use GTK+
1049 --with-motif use Motif/Lesstif
1050 --with-mac use Mac OS X
1051 --with-cocoa use Cocoa
1052 --with-wine use Wine
1053 --with-msw use MS-Windows
1054 --with-pm use OS/2 Presentation Manager
1055 --with-mgl use SciTech MGL
1056 --with-microwin use MicroWindows
1057 --with-x11 use X11
1058 --with-libpng use libpng (PNG image format)
1059 --with-libjpeg use libjpeg (JPEG file format)
1060 --with-libtiff use libtiff (TIFF file format)
1061 --with-libxpm use libxpm (XPM file format)
1062 --with-libmspack use libmspack (CHM help files loading)
1063 --with-sdl use SDL for audio on Unix
d1c38808 1064 --with-gnomeprint use GNOME print for audio printing under Unix
a848cd7e
SC
1065 --with-opengl use OpenGL (or Mesa)
1066 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1067 --with-regex enable support for wxRegEx class
1068 --with-zlib use zlib for LZW compression
1069 --with-odbc use the IODBC and wxODBC classes
1070 --with-expat enable XML support using expat parser
ceec2216 1071 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1072 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1073 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1074 --with-x use the X Window System
1075 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1076 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1077 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1078 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1079 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1080
1081Some influential environment variables:
dcc1b6ad
VS
1082 CC C compiler command
1083 CFLAGS C compiler flags
1084 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1085 nonstandard directory <lib dir>
1086 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1087 headers in a nonstandard directory <include dir>
1088 CPP C preprocessor
1089 CXX C++ compiler command
1090 CXXFLAGS C++ compiler flags
1091 CXXCPP C++ preprocessor
a848cd7e
SC
1092
1093Use these variables to override the choices made by `configure' or to help
1094it to find libraries and programs with nonstandard names/locations.
1095
77ffb593 1096Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1097_ACEOF
1098fi
1099
1100if test "$ac_init_help" = "recursive"; then
1101 # If there are subdirs, report their specific --help.
1102 ac_popdir=`pwd`
1103 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1104 test -d $ac_dir || continue
1105 ac_builddir=.
1106
1107if test "$ac_dir" != .; then
1108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1109 # A "../" for each directory in $ac_dir_suffix.
1110 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1111else
1112 ac_dir_suffix= ac_top_builddir=
1113fi
1114
1115case $srcdir in
1116 .) # No --srcdir option. We are building in place.
1117 ac_srcdir=.
1118 if test -z "$ac_top_builddir"; then
1119 ac_top_srcdir=.
1120 else
1121 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1122 fi ;;
1123 [\\/]* | ?:[\\/]* ) # Absolute path.
1124 ac_srcdir=$srcdir$ac_dir_suffix;
1125 ac_top_srcdir=$srcdir ;;
1126 *) # Relative path.
1127 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1128 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1129esac
ac1cb8d3
VS
1130
1131# Do not use `cd foo && pwd` to compute absolute paths, because
1132# the directories may not exist.
1133case `pwd` in
1134.) ac_abs_builddir="$ac_dir";;
1135*)
1136 case "$ac_dir" in
1137 .) ac_abs_builddir=`pwd`;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1139 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1140 esac;;
1141esac
1142case $ac_abs_builddir in
1143.) ac_abs_top_builddir=${ac_top_builddir}.;;
1144*)
1145 case ${ac_top_builddir}. in
1146 .) ac_abs_top_builddir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1148 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_srcdir=$ac_srcdir;;
1153*)
1154 case $ac_srcdir in
1155 .) ac_abs_srcdir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1157 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_top_srcdir=$ac_top_srcdir;;
1162*)
1163 case $ac_top_srcdir in
1164 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1166 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1167 esac;;
1168esac
a848cd7e
SC
1169
1170 cd $ac_dir
1171 # Check for guested configure; otherwise get Cygnus style configure.
1172 if test -f $ac_srcdir/configure.gnu; then
1173 echo
1174 $SHELL $ac_srcdir/configure.gnu --help=recursive
1175 elif test -f $ac_srcdir/configure; then
1176 echo
1177 $SHELL $ac_srcdir/configure --help=recursive
1178 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1179 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1180 echo
1181 $ac_configure --help
1182 else
1183 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1184 fi
2cbbc68d 1185 cd $ac_popdir
a848cd7e
SC
1186 done
1187fi
1188
1189test -n "$ac_init_help" && exit 0
1190if $ac_init_version; then
1191 cat <<\_ACEOF
7714864e 1192wxWidgets configure 2.5.3
ac1cb8d3 1193generated by GNU Autoconf 2.59
a848cd7e 1194
ac1cb8d3 1195Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1196This configure script is free software; the Free Software Foundation
1197gives unlimited permission to copy, distribute and modify it.
1198_ACEOF
1199 exit 0
1200fi
1201exec 5>config.log
1202cat >&5 <<_ACEOF
1203This file contains any messages produced by compilers while
1204running configure, to aid debugging if configure makes a mistake.
1205
7714864e 1206It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1207generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1208
1209 $ $0 $@
1210
1211_ACEOF
1212{
1213cat <<_ASUNAME
1214## --------- ##
1215## Platform. ##
1216## --------- ##
1217
1218hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1219uname -m = `(uname -m) 2>/dev/null || echo unknown`
1220uname -r = `(uname -r) 2>/dev/null || echo unknown`
1221uname -s = `(uname -s) 2>/dev/null || echo unknown`
1222uname -v = `(uname -v) 2>/dev/null || echo unknown`
1223
1224/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1225/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1226
1227/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1228/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1229/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1230hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1231/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1232/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1233/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1234
1235_ASUNAME
1236
1237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1238for as_dir in $PATH
1239do
1240 IFS=$as_save_IFS
1241 test -z "$as_dir" && as_dir=.
1242 echo "PATH: $as_dir"
1243done
1244
1245} >&5
1246
1247cat >&5 <<_ACEOF
1248
1249
1250## ----------- ##
1251## Core tests. ##
1252## ----------- ##
1253
1254_ACEOF
1255
1256
1257# Keep a trace of the command line.
1258# Strip out --no-create and --no-recursion so they do not pile up.
1259# Strip out --silent because we don't want to record it for future runs.
1260# Also quote any args containing shell meta-characters.
1261# Make two passes to allow for proper duplicate-argument suppression.
1262ac_configure_args=
1263ac_configure_args0=
1264ac_configure_args1=
1265ac_sep=
1266ac_must_keep_next=false
1267for ac_pass in 1 2
1268do
1269 for ac_arg
1270 do
1271 case $ac_arg in
1272 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 continue ;;
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1278 esac
1279 case $ac_pass in
1280 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1281 2)
1282 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1283 if test $ac_must_keep_next = true; then
ac1cb8d3 1284 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1285 else
ac1cb8d3
VS
1286 case $ac_arg in
1287 *=* | --config-cache | -C | -disable-* | --disable-* \
1288 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1289 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1290 | -with-* | --with-* | -without-* | --without-* | --x)
1291 case "$ac_configure_args0 " in
1292 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1293 esac
1294 ;;
1295 -* ) ac_must_keep_next=true ;;
1296 esac
a848cd7e
SC
1297 fi
1298 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1299 # Get rid of the leading space.
1300 ac_sep=" "
1301 ;;
1302 esac
1303 done
1304done
1305$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1306$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1307
1308# When interrupted or exit'd, cleanup temporary files, and complete
1309# config.log. We remove comments because anyway the quotes in there
1310# would cause problems or look ugly.
1311# WARNING: Be sure not to use single quotes in there, as some shells,
1312# such as our DU 5.0 friend, will then `close' the trap.
1313trap 'exit_status=$?
1314 # Save into config.log some information that might help in debugging.
1315 {
1316 echo
1317
1318 cat <<\_ASBOX
1319## ---------------- ##
1320## Cache variables. ##
1321## ---------------- ##
1322_ASBOX
1323 echo
1324 # The following way of writing the cache mishandles newlines in values,
1325{
1326 (set) 2>&1 |
1327 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1328 *ac_space=\ *)
1329 sed -n \
ac1cb8d3
VS
1330 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1332 ;;
1333 *)
1334 sed -n \
ac1cb8d3 1335 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1336 ;;
1337 esac;
1338}
1339 echo
1340
1341 cat <<\_ASBOX
1342## ----------------- ##
1343## Output variables. ##
1344## ----------------- ##
1345_ASBOX
1346 echo
1347 for ac_var in $ac_subst_vars
1348 do
1349 eval ac_val=$`echo $ac_var`
1350 echo "$ac_var='"'"'$ac_val'"'"'"
1351 done | sort
1352 echo
1353
1354 if test -n "$ac_subst_files"; then
1355 cat <<\_ASBOX
1356## ------------- ##
1357## Output files. ##
1358## ------------- ##
1359_ASBOX
1360 echo
1361 for ac_var in $ac_subst_files
1362 do
1363 eval ac_val=$`echo $ac_var`
ac1cb8d3 1364 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1365 done | sort
1366 echo
1367 fi
1368
1369 if test -s confdefs.h; then
1370 cat <<\_ASBOX
1371## ----------- ##
1372## confdefs.h. ##
1373## ----------- ##
1374_ASBOX
1375 echo
1376 sed "/^$/d" confdefs.h | sort
1377 echo
1378 fi
1379 test "$ac_signal" != 0 &&
1380 echo "$as_me: caught signal $ac_signal"
1381 echo "$as_me: exit $exit_status"
1382 } >&5
ac1cb8d3 1383 rm -f core *.core &&
a848cd7e
SC
1384 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1385 exit $exit_status
1386 ' 0
1387for ac_signal in 1 2 13 15; do
1388 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1389done
1390ac_signal=0
1391
1392# confdefs.h avoids OS command line length limits that DEFS can exceed.
1393rm -rf conftest* confdefs.h
1394# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1395echo >confdefs.h
1396
1397# Predefined preprocessor variables.
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_NAME "$PACKAGE_NAME"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_VERSION "$PACKAGE_VERSION"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_STRING "$PACKAGE_STRING"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1421_ACEOF
1422
1423
1424# Let the site file select an alternate cache file if it wants to.
1425# Prefer explicitly selected file to automatically selected ones.
1426if test -z "$CONFIG_SITE"; then
1427 if test "x$prefix" != xNONE; then
1428 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1429 else
1430 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1431 fi
1432fi
1433for ac_site_file in $CONFIG_SITE; do
1434 if test -r "$ac_site_file"; then
1435 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1436echo "$as_me: loading site script $ac_site_file" >&6;}
1437 sed 's/^/| /' "$ac_site_file" >&5
1438 . "$ac_site_file"
1439 fi
1440done
1441
1442if test -r "$cache_file"; then
1443 # Some versions of bash will fail to source /dev/null (special
1444 # files actually), so we avoid doing that.
1445 if test -f "$cache_file"; then
1446 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1447echo "$as_me: loading cache $cache_file" >&6;}
1448 case $cache_file in
1449 [\\/]* | ?:[\\/]* ) . $cache_file;;
1450 *) . ./$cache_file;;
1451 esac
1452 fi
1453else
1454 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1455echo "$as_me: creating cache $cache_file" >&6;}
1456 >$cache_file
1457fi
1458
1459# Check that the precious variables saved in the cache have kept the same
1460# value.
1461ac_cache_corrupted=false
1462for ac_var in `(set) 2>&1 |
ac1cb8d3 1463 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465 eval ac_new_set=\$ac_env_${ac_var}_set
1466 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467 eval ac_new_val="\$ac_env_${ac_var}_value"
1468 case $ac_old_set,$ac_new_set in
1469 set,)
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1473 ,set)
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1477 ,);;
1478 *)
1479 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1480 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1481echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1482 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1483echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1484 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1485echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1486 ac_cache_corrupted=:
a848cd7e
SC
1487 fi;;
1488 esac
1489 # Pass precious variables to config.status.
1490 if test "$ac_new_set" = set; then
1491 case $ac_new_val in
1492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 *) ac_arg=$ac_var=$ac_new_val ;;
1495 esac
1496 case " $ac_configure_args " in
1497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1499 esac
1500 fi
1501done
1502if $ac_cache_corrupted; then
1503 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507 { (exit 1); exit 1; }; }
1508fi
1509
1510ac_ext=c
1511ac_cpp='$CPP $CPPFLAGS'
1512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515
1516
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
1545ac_aux_dir=
1546for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1547 if test -f $ac_dir/install-sh; then
1548 ac_aux_dir=$ac_dir
1549 ac_install_sh="$ac_aux_dir/install-sh -c"
1550 break
1551 elif test -f $ac_dir/install.sh; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/install.sh -c"
1554 break
1555 elif test -f $ac_dir/shtool; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/shtool install -c"
1558 break
1559 fi
1560done
1561if test -z "$ac_aux_dir"; then
1562 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1563echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1564 { (exit 1); exit 1; }; }
1565fi
1566ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1567ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1568ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1569
1570# Make sure we can run config.sub.
1571$ac_config_sub sun4 >/dev/null 2>&1 ||
1572 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1573echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1574 { (exit 1); exit 1; }; }
1575
1576echo "$as_me:$LINENO: checking build system type" >&5
1577echo $ECHO_N "checking build system type... $ECHO_C" >&6
1578if test "${ac_cv_build+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
1581 ac_cv_build_alias=$build_alias
1582test -z "$ac_cv_build_alias" &&
1583 ac_cv_build_alias=`$ac_config_guess`
1584test -z "$ac_cv_build_alias" &&
1585 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1586echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1587 { (exit 1); exit 1; }; }
1588ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1592
1593fi
1594echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1595echo "${ECHO_T}$ac_cv_build" >&6
1596build=$ac_cv_build
1597build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602echo "$as_me:$LINENO: checking host system type" >&5
1603echo $ECHO_N "checking host system type... $ECHO_C" >&6
1604if test "${ac_cv_host+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606else
1607 ac_cv_host_alias=$host_alias
1608test -z "$ac_cv_host_alias" &&
1609 ac_cv_host_alias=$ac_cv_build_alias
1610ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1611 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1612echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1613 { (exit 1); exit 1; }; }
1614
1615fi
1616echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1617echo "${ECHO_T}$ac_cv_host" >&6
1618host=$ac_cv_host
1619host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1620host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1621host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622
1623
1624echo "$as_me:$LINENO: checking target system type" >&5
1625echo $ECHO_N "checking target system type... $ECHO_C" >&6
1626if test "${ac_cv_target+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 ac_cv_target_alias=$target_alias
1630test "x$ac_cv_target_alias" = "x" &&
1631 ac_cv_target_alias=$ac_cv_host_alias
1632ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1633 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1634echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1635 { (exit 1); exit 1; }; }
1636
1637fi
1638echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1639echo "${ECHO_T}$ac_cv_target" >&6
1640target=$ac_cv_target
1641target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1642target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1643target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644
1645
1646# The aliases save the names the user supplied, while $host etc.
1647# will get canonicalized.
1648test -n "$target_alias" &&
1649 test "$program_prefix$program_suffix$program_transform_name" = \
1650 NONENONEs,x,x, &&
1651 program_prefix=${target_alias}-
1652
1653
1654
ceec2216
RL
1655wx_major_version_number=2
1656wx_minor_version_number=5
7714864e 1657wx_release_number=3
2cbbc68d 1658wx_subrelease_number=2
a848cd7e 1659
ceec2216
RL
1660WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1661WX_VERSION=$WX_RELEASE.$wx_release_number
1662WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1663
ceec2216 1664WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1665
78a9e10d 1666WX_CURRENT=4
a848cd7e 1667WX_REVISION=0
78a9e10d 1668WX_AGE=1
a848cd7e
SC
1669
1670
1671
1672USE_UNIX=1
1673USE_OS2=0
1674USE_WIN32=0
1675USE_DOS=0
1676USE_BEOS=0
1677USE_MAC=0
1678
1679USE_AIX=
1680USE_BSD= USE_DARWIN= USE_FREEBSD=
1681USE_GNU= USE_HPUX=
1682USE_LINUX=
1683USE_NETBSD=
1684USE_OPENBSD=
1685USE_OSF= USE_SGI=
1686USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1687USE_ULTRIX=
1688USE_UNIXWARE=
1689
1690USE_ALPHA=
1691
1692NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1693
1694ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1695
1696DEFAULT_wxUSE_COCOA=0
1697DEFAULT_wxUSE_GTK=0
1698DEFAULT_wxUSE_MAC=0
1699DEFAULT_wxUSE_MGL=0
1700DEFAULT_wxUSE_MICROWIN=0
1701DEFAULT_wxUSE_MOTIF=0
1702DEFAULT_wxUSE_MSW=0
1703DEFAULT_wxUSE_PM=0
1704DEFAULT_wxUSE_X11=0
1705
1706DEFAULT_DEFAULT_wxUSE_COCOA=0
1707DEFAULT_DEFAULT_wxUSE_GTK=0
1708DEFAULT_DEFAULT_wxUSE_MAC=0
1709DEFAULT_DEFAULT_wxUSE_MGL=0
1710DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1711DEFAULT_DEFAULT_wxUSE_MOTIF=0
1712DEFAULT_DEFAULT_wxUSE_MSW=0
1713DEFAULT_DEFAULT_wxUSE_PM=0
1714DEFAULT_DEFAULT_wxUSE_X11=0
1715
1716PROGRAM_EXT=
1717SO_SUFFIX=so
1718SAMPLES_RPATH_FLAG=
1719SAMPLES_RPATH_POSTLINK=
1720
1721case "${host}" in
1722 *-hp-hpux* )
1723 USE_HPUX=1
1724 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1725 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1726 SO_SUFFIX=sl
1727 cat >>confdefs.h <<\_ACEOF
1728#define __HPUX__ 1
1729_ACEOF
1730
1731 ;;
1732 *-*-linux* )
1733 USE_LINUX=1
1734 cat >>confdefs.h <<\_ACEOF
1735#define __LINUX__ 1
1736_ACEOF
1737
1738 TMP=`uname -m`
1739 if test "x$TMP" = "xalpha"; then
1740 USE_ALPHA=1
1741 cat >>confdefs.h <<\_ACEOF
1742#define __ALPHA__ 1
1743_ACEOF
1744
1745 fi
1746 DEFAULT_DEFAULT_wxUSE_GTK=1
1747 ;;
1748 *-*-gnu* | *-*-k*bsd*-gnu )
1749 USE_GNU=1
1750 TMP=`uname -m`
1751 if test "x$TMP" = "xalpha"; then
1752 USE_ALPHA=1
1753 cat >>confdefs.h <<\_ACEOF
1754#define __ALPHA__ 1
1755_ACEOF
1756
1757 fi
1758 DEFAULT_DEFAULT_wxUSE_GTK=1
1759 ;;
1760 *-*-irix5* | *-*-irix6* )
1761 USE_SGI=1
1762 USE_SVR4=1
1763 cat >>confdefs.h <<\_ACEOF
1764#define __SGI__ 1
1765_ACEOF
1766
1767 cat >>confdefs.h <<\_ACEOF
1768#define __SVR4__ 1
1769_ACEOF
1770
1771 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1772 ;;
1773 *-*-solaris2* )
1774 USE_SUN=1
1775 USE_SOLARIS=1
1776 USE_SVR4=1
1777 cat >>confdefs.h <<\_ACEOF
1778#define __SUN__ 1
1779_ACEOF
1780
1781 cat >>confdefs.h <<\_ACEOF
1782#define __SOLARIS__ 1
1783_ACEOF
1784
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SVR4__ 1
1787_ACEOF
1788
1789 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1790 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1791 ;;
1792 *-*-sunos4* )
1793 USE_SUN=1
1794 USE_SUNOS=1
1795 USE_BSD=1
1796 cat >>confdefs.h <<\_ACEOF
1797#define __SUN__ 1
1798_ACEOF
1799
1800 cat >>confdefs.h <<\_ACEOF
1801#define __SUNOS__ 1
1802_ACEOF
1803
1804 cat >>confdefs.h <<\_ACEOF
1805#define __BSD__ 1
1806_ACEOF
1807
1808 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1809 ;;
1810 *-*-freebsd*)
1811 USE_BSD=1
1812 USE_FREEBSD=1
1813 cat >>confdefs.h <<\_ACEOF
1814#define __FREEBSD__ 1
1815_ACEOF
1816
1817 cat >>confdefs.h <<\_ACEOF
1818#define __BSD__ 1
1819_ACEOF
1820
1821 DEFAULT_DEFAULT_wxUSE_GTK=1
1822 ;;
1823 *-*-openbsd*)
1824 USE_BSD=1
1825 USE_OPENBSD=1
1826 cat >>confdefs.h <<\_ACEOF
1827#define __OPENBSD__ 1
1828_ACEOF
1829
1830 cat >>confdefs.h <<\_ACEOF
1831#define __BSD__ 1
1832_ACEOF
1833
1834 DEFAULT_DEFAULT_wxUSE_GTK=1
1835 ;;
1836 *-*-netbsd*)
1837 USE_BSD=1
1838 USE_NETBSD=1
1839 cat >>confdefs.h <<\_ACEOF
1840#define __NETBSD__ 1
1841_ACEOF
1842
1843 cat >>confdefs.h <<\_ACEOF
1844#define __BSD__ 1
1845_ACEOF
1846
1847 DEFAULT_DEFAULT_wxUSE_GTK=1
1848 ;;
1849 *-*-osf* )
1850 USE_ALPHA=1
1851 USE_OSF=1
1852 cat >>confdefs.h <<\_ACEOF
1853#define __ALPHA__ 1
1854_ACEOF
1855
1856 cat >>confdefs.h <<\_ACEOF
1857#define __OSF__ 1
1858_ACEOF
1859
1860 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1861 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1862 ;;
1863 *-*-dgux5* )
1864 USE_ALPHA=1
1865 USE_SVR4=1
1866 cat >>confdefs.h <<\_ACEOF
1867#define __ALPHA__ 1
1868_ACEOF
1869
1870 cat >>confdefs.h <<\_ACEOF
1871#define __SVR4__ 1
1872_ACEOF
1873
1874 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1875 ;;
1876 *-*-sysv5* )
1877 USE_SYSV=1
1878 USE_SVR4=1
1879 cat >>confdefs.h <<\_ACEOF
1880#define __SYSV__ 1
1881_ACEOF
1882
1883 cat >>confdefs.h <<\_ACEOF
1884#define __SVR4__ 1
1885_ACEOF
1886
1887 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1888 ;;
1889 *-*-aix* )
1890 USE_AIX=1
1891 USE_SYSV=1
1892 USE_SVR4=1
1893 SO_SUFFIX=a
1894 cat >>confdefs.h <<\_ACEOF
1895#define __AIX__ 1
1896_ACEOF
1897
1898 cat >>confdefs.h <<\_ACEOF
1899#define __SYSV__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SVR4__ 1
1904_ACEOF
1905
1906 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1907 ;;
1908
1909 *-*-*UnixWare*)
1910 USE_SYSV=1
1911 USE_SVR4=1
1912 USE_UNIXWARE=1
1913 cat >>confdefs.h <<\_ACEOF
1914#define __UNIXWARE__ 1
1915_ACEOF
1916
1917 ;;
1918
1919 *-*-cygwin* | *-*-mingw32* )
1920 SO_SUFFIX=dll
1921 PROGRAM_EXT=".exe"
1922 RESCOMP=windres
1923 DEFAULT_DEFAULT_wxUSE_MSW=1
1924 ;;
1925
1926 *-pc-msdosdjgpp )
1927 USE_UNIX=0
1928 USE_DOS=1
1929 cat >>confdefs.h <<\_ACEOF
1930#define __DOS__ 1
1931_ACEOF
1932
1933 PROGRAM_EXT=".exe"
1934 DEFAULT_DEFAULT_wxUSE_MGL=1
1935 LIBS="$LIBS -lstdc++"
1936 ;;
1937
1938 *-pc-os2_emx | *-pc-os2-emx )
1939 cat >>confdefs.h <<\_ACEOF
1940#define __EMX__ 1
1941_ACEOF
1942
1943 USE_OS2=1
1944 cat >>confdefs.h <<\_ACEOF
1945#define __OS2__ 1
1946_ACEOF
1947
1948 PROGRAM_EXT=".exe"
1949 DEFAULT_DEFAULT_wxUSE_PM=1
1950 CXX=gcc
1951 LDFLAGS="$LDFLAGS -Zcrtdll"
1952 ac_executable_extensions=".exe"
1953 export ac_executable_extensions
1954 ac_save_IFS="$IFS"
1955 IFS='\\'
1956 ac_TEMP_PATH=
1957 for ac_dir in $PATH; do
1958 IFS=$ac_save_IFS
1959 if test -z "$ac_TEMP_PATH"; then
1960 ac_TEMP_PATH="$ac_dir"
1961 else
1962 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1963 fi
1964 done
1965 export PATH="$ac_TEMP_PATH"
1966 unset ac_TEMP_PATH
1967 ;;
1968
1969 powerpc-*-darwin* )
1970 USE_BSD=1
1971 USE_DARWIN=1
1972 SO_SUFFIX=dylib
1973 cat >>confdefs.h <<\_ACEOF
1974#define __BSD__ 1
1975_ACEOF
1976
1977 cat >>confdefs.h <<\_ACEOF
1978#define __DARWIN__ 1
1979_ACEOF
1980
1981 cat >>confdefs.h <<\_ACEOF
1982#define __POWERPC__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define TARGET_CARBON 1
1987_ACEOF
1988
1989 DEFAULT_DEFAULT_wxUSE_MAC=1
1990 ;;
1991
1992 *-*-beos* )
1993 USE_BEOS=1
1994 cat >>confdefs.h <<\_ACEOF
1995#define __BEOS__ 1
1996_ACEOF
1997
1998 ;;
1999
2000 *)
2001 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2002echo "$as_me: error: unknown system type ${host}." >&2;}
2003 { (exit 1); exit 1; }; }
2004esac
2005
2006
2007
2008
2009 wx_arg_cache_file="configarg.cache"
2010 echo "loading argument cache $wx_arg_cache_file"
2011 rm -f ${wx_arg_cache_file}.tmp
2012 touch ${wx_arg_cache_file}.tmp
2013 touch ${wx_arg_cache_file}
2014
2015
2016DEBUG_CONFIGURE=0
2017if test $DEBUG_CONFIGURE = 1; then
2018 DEFAULT_wxUSE_UNIVERSAL=no
2019 DEFAULT_wxUSE_STL=no
2020
2021 DEFAULT_wxUSE_NANOX=no
2022
2023 DEFAULT_wxUSE_THREADS=yes
2024
2025 DEFAULT_wxUSE_SHARED=yes
2026 DEFAULT_wxUSE_OPTIMISE=no
2027 DEFAULT_wxUSE_PROFILE=no
2028 DEFAULT_wxUSE_NO_DEPS=no
2029 DEFAULT_wxUSE_NO_RTTI=no
2030 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2031 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2032 DEFAULT_wxUSE_PERMISSIVE=no
2033 DEFAULT_wxUSE_DEBUG_FLAG=yes
2034 DEFAULT_wxUSE_DEBUG_INFO=yes
2035 DEFAULT_wxUSE_DEBUG_GDB=yes
2036 DEFAULT_wxUSE_MEM_TRACING=no
2037 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2038 DEFAULT_wxUSE_DMALLOC=no
2039 DEFAULT_wxUSE_APPLE_IEEE=no
2040
2041 DEFAULT_wxUSE_EXCEPTIONS=no
2042 DEFAULT_wxUSE_LOG=yes
2043 DEFAULT_wxUSE_LOGWINDOW=no
2044 DEFAULT_wxUSE_LOGGUI=no
2045 DEFAULT_wxUSE_LOGDIALOG=no
2046
2047 DEFAULT_wxUSE_GUI=yes
2048 DEFAULT_wxUSE_CONTROLS=no
2049
2050 DEFAULT_wxUSE_REGEX=no
2051 DEFAULT_wxUSE_XML=no
2052 DEFAULT_wxUSE_EXPAT=no
2053 DEFAULT_wxUSE_ZLIB=no
2054 DEFAULT_wxUSE_LIBPNG=no
2055 DEFAULT_wxUSE_LIBJPEG=no
2056 DEFAULT_wxUSE_LIBTIFF=no
2057 DEFAULT_wxUSE_LIBXPM=no
2058 DEFAULT_wxUSE_LIBMSPACK=no
2059 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2060 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2061 DEFAULT_wxUSE_ODBC=no
2062 DEFAULT_wxUSE_OPENGL=no
2063
2064 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2065 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2066 DEFAULT_wxUSE_STD_IOSTREAM=no
2067 DEFAULT_wxUSE_CMDLINE_PARSER=no
2068 DEFAULT_wxUSE_DATETIME=no
2069 DEFAULT_wxUSE_TIMER=no
2070 DEFAULT_wxUSE_STOPWATCH=no
2071 DEFAULT_wxUSE_FILE=no
2072 DEFAULT_wxUSE_FFILE=no
2073 DEFAULT_wxUSE_TEXTBUFFER=no
2074 DEFAULT_wxUSE_TEXTFILE=no
2075 DEFAULT_wxUSE_SOUND=no
2076 DEFAULT_wxUSE_INTL=no
2077 DEFAULT_wxUSE_CONFIG=no
2078 DEFAULT_wxUSE_FONTMAP=no
2079 DEFAULT_wxUSE_STREAMS=no
2080 DEFAULT_wxUSE_SOCKETS=no
2081 DEFAULT_wxUSE_OLE=no
2082 DEFAULT_wxUSE_DATAOBJ=no
2083 DEFAULT_wxUSE_DIALUP_MANAGER=no
2084 DEFAULT_wxUSE_JOYSTICK=no
2085 DEFAULT_wxUSE_DYNLIB_CLASS=no
2086 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2087 DEFAULT_wxUSE_LONGLONG=no
2088 DEFAULT_wxUSE_GEOMETRY=no
2089
2090 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2091 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2092 DEFAULT_wxUSE_POSTSCRIPT=no
2093
2094 DEFAULT_wxUSE_CLIPBOARD=no
2095 DEFAULT_wxUSE_TOOLTIPS=no
2096 DEFAULT_wxUSE_DRAG_AND_DROP=no
2097 DEFAULT_wxUSE_DRAGIMAGE=no
2098 DEFAULT_wxUSE_SPLINES=no
2099
8a7b1113 2100 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2101 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2102 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2103 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2104
2105 DEFAULT_wxUSE_RESOURCES=no
2106 DEFAULT_wxUSE_CONSTRAINTS=no
2107 DEFAULT_wxUSE_IPC=no
2108 DEFAULT_wxUSE_HELP=no
2109 DEFAULT_wxUSE_MS_HTML_HELP=no
2110 DEFAULT_wxUSE_WXHTML_HELP=no
2111 DEFAULT_wxUSE_TREELAYOUT=no
2112 DEFAULT_wxUSE_METAFILE=no
2113 DEFAULT_wxUSE_MIMETYPE=no
2114 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2115 DEFAULT_wxUSE_PROTOCOL=no
2116 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2117 DEFAULT_wxUSE_PROTOCOL_FTP=no
2118 DEFAULT_wxUSE_PROTOCOL_FILE=no
2119 DEFAULT_wxUSE_URL=no
2120
2121 DEFAULT_wxUSE_COMMONDLGS=no
2122 DEFAULT_wxUSE_CHOICEDLG=no
2123 DEFAULT_wxUSE_COLOURDLG=no
2124 DEFAULT_wxUSE_DIRDLG=no
2125 DEFAULT_wxUSE_FILEDLG=no
2126 DEFAULT_wxUSE_FINDREPLDLG=no
2127 DEFAULT_wxUSE_FONTDLG=no
2128 DEFAULT_wxUSE_MSGDLG=no
2129 DEFAULT_wxUSE_NUMBERDLG=no
2130 DEFAULT_wxUSE_TEXTDLG=no
2131 DEFAULT_wxUSE_SPLASH=no
2132 DEFAULT_wxUSE_STARTUP_TIPS=no
2133 DEFAULT_wxUSE_PROGRESSDLG=no
2134 DEFAULT_wxUSE_WIZARDDLG=no
2135
2136 DEFAULT_wxUSE_MENUS=no
2137 DEFAULT_wxUSE_MINIFRAME=no
2138 DEFAULT_wxUSE_HTML=no
9a8f0513 2139 DEFAULT_wxUSE_XRC=no
646b6ec1 2140 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2141 DEFAULT_wxUSE_FILESYSTEM=no
2142 DEFAULT_wxUSE_FS_INET=no
2143 DEFAULT_wxUSE_FS_ZIP=no
2144 DEFAULT_wxUSE_BUSYINFO=no
2145 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2146 DEFAULT_wxUSE_VALIDATORS=no
2147
2148 DEFAULT_wxUSE_ACCEL=no
2149 DEFAULT_wxUSE_BUTTON=no
2150 DEFAULT_wxUSE_BMPBUTTON=no
2151 DEFAULT_wxUSE_CALCTRL=no
2152 DEFAULT_wxUSE_CARET=no
2153 DEFAULT_wxUSE_CHECKBOX=no
2154 DEFAULT_wxUSE_CHECKLST=no
2155 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2156 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2157 DEFAULT_wxUSE_COMBOBOX=no
2158 DEFAULT_wxUSE_DISPLAY=no
2159 DEFAULT_wxUSE_GAUGE=no
2160 DEFAULT_wxUSE_GRID=no
2161 DEFAULT_wxUSE_IMAGLIST=no
2162 DEFAULT_wxUSE_LISTBOOK=no
2163 DEFAULT_wxUSE_LISTBOX=no
2164 DEFAULT_wxUSE_LISTCTRL=no
2165 DEFAULT_wxUSE_NOTEBOOK=no
2166 DEFAULT_wxUSE_RADIOBOX=no
2167 DEFAULT_wxUSE_RADIOBTN=no
2168 DEFAULT_wxUSE_SASH=no
2169 DEFAULT_wxUSE_SCROLLBAR=no
2170 DEFAULT_wxUSE_SLIDER=no
2171 DEFAULT_wxUSE_SPINBTN=no
2172 DEFAULT_wxUSE_SPINCTRL=no
2173 DEFAULT_wxUSE_SPLITTER=no
2174 DEFAULT_wxUSE_STATBMP=no
2175 DEFAULT_wxUSE_STATBOX=no
2176 DEFAULT_wxUSE_STATLINE=no
2177 DEFAULT_wxUSE_STATTEXT=no
2178 DEFAULT_wxUSE_STATUSBAR=yes
2179 DEFAULT_wxUSE_TABDIALOG=no
2180 DEFAULT_wxUSE_TEXTCTRL=no
2181 DEFAULT_wxUSE_TOGGLEBTN=no
2182 DEFAULT_wxUSE_TOOLBAR=no
2183 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2184 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2185 DEFAULT_wxUSE_TREECTRL=no
2186 DEFAULT_wxUSE_POPUPWIN=no
2187 DEFAULT_wxUSE_TIPWINDOW=no
2188
2189 DEFAULT_wxUSE_UNICODE=no
2190 DEFAULT_wxUSE_UNICODE_MSLU=no
2191 DEFAULT_wxUSE_WCSRTOMBS=no
2192
2193 DEFAULT_wxUSE_PALETTE=no
2194 DEFAULT_wxUSE_IMAGE=no
2195 DEFAULT_wxUSE_GIF=no
2196 DEFAULT_wxUSE_PCX=no
2197 DEFAULT_wxUSE_PNM=no
2198 DEFAULT_wxUSE_IFF=no
2199 DEFAULT_wxUSE_XPM=no
2200 DEFAULT_wxUSE_ICO_CUR=no
2201 DEFAULT_wxUSE_ACCESSIBILITY=no
2202
2203 DEFAULT_wxUSE_MONOLITHIC=no
2204 DEFAULT_wxUSE_PLUGINS=no
2205 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2206else
2207 DEFAULT_wxUSE_UNIVERSAL=no
2208 DEFAULT_wxUSE_STL=no
2209
2210 DEFAULT_wxUSE_NANOX=no
2211
2212 DEFAULT_wxUSE_THREADS=yes
2213
2214 DEFAULT_wxUSE_SHARED=yes
2215 DEFAULT_wxUSE_OPTIMISE=yes
2216 DEFAULT_wxUSE_PROFILE=no
2217 DEFAULT_wxUSE_NO_DEPS=no
2218 DEFAULT_wxUSE_NO_RTTI=no
2219 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2220 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2221 DEFAULT_wxUSE_PERMISSIVE=no
2222 DEFAULT_wxUSE_DEBUG_FLAG=no
2223 DEFAULT_wxUSE_DEBUG_INFO=no
2224 DEFAULT_wxUSE_DEBUG_GDB=no
2225 DEFAULT_wxUSE_MEM_TRACING=no
2226 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2227 DEFAULT_wxUSE_DMALLOC=no
2228 DEFAULT_wxUSE_APPLE_IEEE=yes
2229
2230 DEFAULT_wxUSE_EXCEPTIONS=yes
2231 DEFAULT_wxUSE_LOG=yes
2232 DEFAULT_wxUSE_LOGWINDOW=yes
2233 DEFAULT_wxUSE_LOGGUI=yes
2234 DEFAULT_wxUSE_LOGDIALOG=yes
2235
2236 DEFAULT_wxUSE_GUI=yes
2237
2238 DEFAULT_wxUSE_REGEX=yes
2239 DEFAULT_wxUSE_XML=yes
2240 DEFAULT_wxUSE_EXPAT=yes
2241 DEFAULT_wxUSE_ZLIB=yes
2242 DEFAULT_wxUSE_LIBPNG=yes
2243 DEFAULT_wxUSE_LIBJPEG=yes
2244 DEFAULT_wxUSE_LIBTIFF=yes
2245 DEFAULT_wxUSE_LIBXPM=yes
2246 DEFAULT_wxUSE_LIBMSPACK=yes
2247 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2248 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2249 DEFAULT_wxUSE_ODBC=no
2250 DEFAULT_wxUSE_OPENGL=no
2251
2252 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2253 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2254 DEFAULT_wxUSE_STD_IOSTREAM=no
2255 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2256 DEFAULT_wxUSE_DATETIME=yes
2257 DEFAULT_wxUSE_TIMER=yes
2258 DEFAULT_wxUSE_STOPWATCH=yes
2259 DEFAULT_wxUSE_FILE=yes
2260 DEFAULT_wxUSE_FFILE=yes
2261 DEFAULT_wxUSE_TEXTBUFFER=yes
2262 DEFAULT_wxUSE_TEXTFILE=yes
2263 DEFAULT_wxUSE_SOUND=yes
2264 DEFAULT_wxUSE_INTL=yes
2265 DEFAULT_wxUSE_CONFIG=yes
2266 DEFAULT_wxUSE_FONTMAP=yes
2267 DEFAULT_wxUSE_STREAMS=yes
2268 DEFAULT_wxUSE_SOCKETS=yes
2269 DEFAULT_wxUSE_OLE=yes
2270 DEFAULT_wxUSE_DATAOBJ=yes
2271 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2272 DEFAULT_wxUSE_JOYSTICK=yes
2273 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2274 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2275 DEFAULT_wxUSE_LONGLONG=yes
2276 DEFAULT_wxUSE_GEOMETRY=yes
2277
2278 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2279 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2280 DEFAULT_wxUSE_POSTSCRIPT=yes
2281
2282 DEFAULT_wxUSE_CLIPBOARD=yes
2283 DEFAULT_wxUSE_TOOLTIPS=yes
2284 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2285 DEFAULT_wxUSE_DRAGIMAGE=yes
2286 DEFAULT_wxUSE_SPLINES=yes
2287
8a7b1113 2288 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2289 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2290 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2291 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2292
2293 DEFAULT_wxUSE_RESOURCES=no
2294 DEFAULT_wxUSE_CONSTRAINTS=yes
2295 DEFAULT_wxUSE_IPC=yes
2296 DEFAULT_wxUSE_HELP=yes
2297 DEFAULT_wxUSE_MS_HTML_HELP=yes
2298 DEFAULT_wxUSE_WXHTML_HELP=yes
2299 DEFAULT_wxUSE_TREELAYOUT=yes
2300 DEFAULT_wxUSE_METAFILE=yes
2301 DEFAULT_wxUSE_MIMETYPE=yes
2302 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2303 DEFAULT_wxUSE_PROTOCOL=yes
2304 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2305 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2306 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2307 DEFAULT_wxUSE_URL=yes
2308
2309 DEFAULT_wxUSE_COMMONDLGS=yes
2310 DEFAULT_wxUSE_CHOICEDLG=yes
2311 DEFAULT_wxUSE_COLOURDLG=yes
2312 DEFAULT_wxUSE_DIRDLG=yes
2313 DEFAULT_wxUSE_FILEDLG=yes
2314 DEFAULT_wxUSE_FINDREPLDLG=yes
2315 DEFAULT_wxUSE_FONTDLG=yes
2316 DEFAULT_wxUSE_MSGDLG=yes
2317 DEFAULT_wxUSE_NUMBERDLG=yes
2318 DEFAULT_wxUSE_TEXTDLG=yes
2319 DEFAULT_wxUSE_SPLASH=yes
2320 DEFAULT_wxUSE_STARTUP_TIPS=yes
2321 DEFAULT_wxUSE_PROGRESSDLG=yes
2322 DEFAULT_wxUSE_WIZARDDLG=yes
2323
2324 DEFAULT_wxUSE_MENUS=yes
2325 DEFAULT_wxUSE_MINIFRAME=yes
2326 DEFAULT_wxUSE_HTML=yes
9a8f0513 2327 DEFAULT_wxUSE_XRC=yes
646b6ec1 2328 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2329 DEFAULT_wxUSE_FILESYSTEM=yes
2330 DEFAULT_wxUSE_FS_INET=yes
2331 DEFAULT_wxUSE_FS_ZIP=yes
2332 DEFAULT_wxUSE_BUSYINFO=yes
2333 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2334 DEFAULT_wxUSE_VALIDATORS=yes
2335
2336 DEFAULT_wxUSE_ACCEL=yes
2337 DEFAULT_wxUSE_BUTTON=yes
2338 DEFAULT_wxUSE_BMPBUTTON=yes
2339 DEFAULT_wxUSE_CALCTRL=yes
2340 DEFAULT_wxUSE_CARET=yes
2341 DEFAULT_wxUSE_CHECKBOX=yes
2342 DEFAULT_wxUSE_CHECKLST=yes
2343 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2344 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2345 DEFAULT_wxUSE_COMBOBOX=yes
2346 DEFAULT_wxUSE_DISPLAY=yes
2347 DEFAULT_wxUSE_GAUGE=yes
2348 DEFAULT_wxUSE_GRID=yes
2349 DEFAULT_wxUSE_IMAGLIST=yes
2350 DEFAULT_wxUSE_LISTBOOK=yes
2351 DEFAULT_wxUSE_LISTBOX=yes
2352 DEFAULT_wxUSE_LISTCTRL=yes
2353 DEFAULT_wxUSE_NOTEBOOK=yes
2354 DEFAULT_wxUSE_RADIOBOX=yes
2355 DEFAULT_wxUSE_RADIOBTN=yes
2356 DEFAULT_wxUSE_SASH=yes
2357 DEFAULT_wxUSE_SCROLLBAR=yes
2358 DEFAULT_wxUSE_SLIDER=yes
2359 DEFAULT_wxUSE_SPINBTN=yes
2360 DEFAULT_wxUSE_SPINCTRL=yes
2361 DEFAULT_wxUSE_SPLITTER=yes
2362 DEFAULT_wxUSE_STATBMP=yes
2363 DEFAULT_wxUSE_STATBOX=yes
2364 DEFAULT_wxUSE_STATLINE=yes
2365 DEFAULT_wxUSE_STATTEXT=yes
2366 DEFAULT_wxUSE_STATUSBAR=yes
2367 DEFAULT_wxUSE_TABDIALOG=no
2368 DEFAULT_wxUSE_TEXTCTRL=yes
2369 DEFAULT_wxUSE_TOGGLEBTN=yes
2370 DEFAULT_wxUSE_TOOLBAR=yes
2371 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2372 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2373 DEFAULT_wxUSE_TREECTRL=yes
2374 DEFAULT_wxUSE_POPUPWIN=yes
2375 DEFAULT_wxUSE_TIPWINDOW=yes
2376
2377 DEFAULT_wxUSE_UNICODE=no
2378 DEFAULT_wxUSE_UNICODE_MSLU=yes
2379 DEFAULT_wxUSE_WCSRTOMBS=no
2380
2381 DEFAULT_wxUSE_PALETTE=yes
2382 DEFAULT_wxUSE_IMAGE=yes
2383 DEFAULT_wxUSE_GIF=yes
2384 DEFAULT_wxUSE_PCX=yes
2385 DEFAULT_wxUSE_IFF=no
2386 DEFAULT_wxUSE_PNM=yes
2387 DEFAULT_wxUSE_XPM=yes
2388 DEFAULT_wxUSE_ICO_CUR=yes
2389 DEFAULT_wxUSE_ACCESSIBILITY=no
2390
2391 DEFAULT_wxUSE_MONOLITHIC=no
2392 DEFAULT_wxUSE_PLUGINS=no
2393 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2394
2395 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2396fi
2397
2398
2399
2400for toolkit in `echo $ALL_TOOLKITS`; do
2401 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2402 if test "x$LINE" != "x" ; then
2403 has_toolkit_in_cache=1
2404 eval "DEFAULT_$LINE"
2405 eval "CACHE_$toolkit=1"
2406 fi
2407done
2408
2409
2410
2411 enablestring=
2412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2413echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2414 no_cache=0
2415 # Check whether --enable-gui or --disable-gui was given.
2416if test "${enable_gui+set}" = set; then
2417 enableval="$enable_gui"
2418
2419 if test "$enableval" = yes; then
2420 ac_cv_use_gui='wxUSE_GUI=yes'
2421 else
2422 ac_cv_use_gui='wxUSE_GUI=no'
2423 fi
2424
2425else
2426
2427 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2435
2436fi;
2437
2438 eval "$ac_cv_use_gui"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_GUI" = yes; then
2444 echo "$as_me:$LINENO: result: yes" >&5
2445echo "${ECHO_T}yes" >&6
2446 else
2447 echo "$as_me:$LINENO: result: no" >&5
2448echo "${ECHO_T}no" >&6
2449 fi
2450
2451
2452 enablestring=
2453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2454echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2455 no_cache=0
2456 # Check whether --enable-monolithic or --disable-monolithic was given.
2457if test "${enable_monolithic+set}" = set; then
2458 enableval="$enable_monolithic"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2462 else
2463 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2464 fi
2465
2466else
2467
2468 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2476
2477fi;
2478
2479 eval "$ac_cv_use_monolithic"
2480 if test "$no_cache" != 1; then
2481 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2482 fi
2483
2484 if test "$wxUSE_MONOLITHIC" = yes; then
2485 echo "$as_me:$LINENO: result: yes" >&5
2486echo "${ECHO_T}yes" >&6
2487 else
2488 echo "$as_me:$LINENO: result: no" >&5
2489echo "${ECHO_T}no" >&6
2490 fi
2491
2492
2493 enablestring=
2494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2495echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2496 no_cache=0
2497 # Check whether --enable-plugins or --disable-plugins was given.
2498if test "${enable_plugins+set}" = set; then
2499 enableval="$enable_plugins"
2500
2501 if test "$enableval" = yes; then
2502 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2503 else
2504 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2505 fi
2506
2507else
2508
2509 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2510 if test "x$LINE" != x ; then
2511 eval "DEFAULT_$LINE"
2512 else
2513 no_cache=1
2514 fi
2515
2516 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2517
2518fi;
2519
2520 eval "$ac_cv_use_plugins"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_PLUGINS" = yes; then
2526 echo "$as_me:$LINENO: result: yes" >&5
2527echo "${ECHO_T}yes" >&6
2528 else
2529 echo "$as_me:$LINENO: result: no" >&5
2530echo "${ECHO_T}no" >&6
2531 fi
2532
2533
2534if test "$wxUSE_GUI" = "yes"; then
2535
2536
2537 enablestring=
2538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2539echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2540 no_cache=0
2541 # Check whether --enable-universal or --disable-universal was given.
2542if test "${enable_universal+set}" = set; then
2543 enableval="$enable_universal"
2544
2545 if test "$enableval" = yes; then
2546 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2547 else
2548 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2549 fi
2550
2551else
2552
2553 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2554 if test "x$LINE" != x ; then
2555 eval "DEFAULT_$LINE"
2556 else
2557 no_cache=1
2558 fi
2559
2560 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2561
2562fi;
2563
2564 eval "$ac_cv_use_universal"
2565 if test "$no_cache" != 1; then
2566 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2567 fi
2568
2569 if test "$wxUSE_UNIVERSAL" = yes; then
2570 echo "$as_me:$LINENO: result: yes" >&5
2571echo "${ECHO_T}yes" >&6
2572 else
2573 echo "$as_me:$LINENO: result: no" >&5
2574echo "${ECHO_T}no" >&6
2575 fi
2576
2577
2578# Check whether --with-gtk or --without-gtk was given.
2579if test "${with_gtk+set}" = set; then
2580 withval="$with_gtk"
2581 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2582fi;
2583
2584# Check whether --with-motif or --without-motif was given.
2585if test "${with_motif+set}" = set; then
2586 withval="$with_motif"
2587 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2588fi;
2589
2590# Check whether --with-mac or --without-mac was given.
2591if test "${with_mac+set}" = set; then
2592 withval="$with_mac"
c228d3a4 2593 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2594fi;
2595
2596# Check whether --with-cocoa or --without-cocoa was given.
2597if test "${with_cocoa+set}" = set; then
2598 withval="$with_cocoa"
c228d3a4 2599 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2600fi;
2601
2602# Check whether --with-wine or --without-wine was given.
2603if test "${with_wine+set}" = set; then
2604 withval="$with_wine"
2605 wxUSE_WINE="$withval" CACHE_WINE=1
2606fi;
2607
2608# Check whether --with-msw or --without-msw was given.
2609if test "${with_msw+set}" = set; then
2610 withval="$with_msw"
2611 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2612fi;
2613
2614# Check whether --with-pm or --without-pm was given.
2615if test "${with_pm+set}" = set; then
2616 withval="$with_pm"
2617 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2618fi;
2619
2620# Check whether --with-mgl or --without-mgl was given.
2621if test "${with_mgl+set}" = set; then
2622 withval="$with_mgl"
2623 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2624fi;
2625
2626# Check whether --with-microwin or --without-microwin was given.
2627if test "${with_microwin+set}" = set; then
2628 withval="$with_microwin"
2629 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2630fi;
2631
2632# Check whether --with-x11 or --without-x11 was given.
2633if test "${with_x11+set}" = set; then
2634 withval="$with_x11"
2635 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2636fi;
2637
2638 enablestring=
2639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2640echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2641 no_cache=0
2642 # Check whether --enable-nanox or --disable-nanox was given.
2643if test "${enable_nanox+set}" = set; then
2644 enableval="$enable_nanox"
2645
2646 if test "$enableval" = yes; then
2647 ac_cv_use_nanox='wxUSE_NANOX=yes'
2648 else
2649 ac_cv_use_nanox='wxUSE_NANOX=no'
2650 fi
2651
2652else
2653
2654 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2655 if test "x$LINE" != x ; then
2656 eval "DEFAULT_$LINE"
2657 else
2658 no_cache=1
2659 fi
2660
2661 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2662
2663fi;
2664
2665 eval "$ac_cv_use_nanox"
2666 if test "$no_cache" != 1; then
2667 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2668 fi
2669
2670 if test "$wxUSE_NANOX" = yes; then
2671 echo "$as_me:$LINENO: result: yes" >&5
2672echo "${ECHO_T}yes" >&6
2673 else
2674 echo "$as_me:$LINENO: result: no" >&5
2675echo "${ECHO_T}no" >&6
2676 fi
2677
2678
2679
2680 enablestring=
2681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2682echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2683 no_cache=0
2684 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2685if test "${enable_gtk2+set}" = set; then
2686 enableval="$enable_gtk2"
2687
2688 if test "$enableval" = yes; then
2689 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2690 else
2691 ac_cv_use_gtk2='wxUSE_GTK2=no'
2692 fi
2693
2694else
2695
2696 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2697 if test "x$LINE" != x ; then
2698 eval "DEFAULT_$LINE"
2699 else
2700 no_cache=1
2701 fi
2702
2703 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2704
2705fi;
2706
2707 eval "$ac_cv_use_gtk2"
2708 if test "$no_cache" != 1; then
2709 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2710 fi
2711
2712 if test "$wxUSE_GTK2" = yes; then
2713 echo "$as_me:$LINENO: result: yes" >&5
2714echo "${ECHO_T}yes" >&6
2715 else
2716 echo "$as_me:$LINENO: result: no" >&5
2717echo "${ECHO_T}no" >&6
2718 fi
2719
2720
2721 enablestring=
2722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2723echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2724 no_cache=0
2725 # Check whether --enable-gpe or --disable-gpe was given.
2726if test "${enable_gpe+set}" = set; then
2727 enableval="$enable_gpe"
2728
2729 if test "$enableval" = yes; then
2730 ac_cv_use_gpe='wxUSE_GPE=yes'
2731 else
2732 ac_cv_use_gpe='wxUSE_GPE=no'
2733 fi
2734
2735else
2736
2737 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2738 if test "x$LINE" != x ; then
2739 eval "DEFAULT_$LINE"
2740 else
2741 no_cache=1
2742 fi
2743
2744 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2745
2746fi;
2747
2748 eval "$ac_cv_use_gpe"
2749 if test "$no_cache" != 1; then
2750 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2751 fi
2752
2753 if test "$wxUSE_GPE" = yes; then
2754 echo "$as_me:$LINENO: result: yes" >&5
2755echo "${ECHO_T}yes" >&6
2756 else
2757 echo "$as_me:$LINENO: result: no" >&5
2758echo "${ECHO_T}no" >&6
2759 fi
2760
2761
2762
2763 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2764echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2765 no_cache=0
2766
2767# Check whether --with-libpng or --without-libpng was given.
2768if test "${with_libpng+set}" = set; then
2769 withval="$with_libpng"
2770
2771 if test "$withval" = yes; then
2772 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2773 elif test "$withval" = no; then
2774 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2775 elif test "$withval" = sys; then
2776 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2777 elif test "$withval" = builtin; then
2778 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2779 else
2780 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2781echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2782 { (exit 1); exit 1; }; }
2783 fi
2784
2785else
2786
2787 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2788 if test "x$LINE" != x ; then
2789 eval "DEFAULT_$LINE"
2790 else
2791 no_cache=1
2792 fi
2793
2794 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2795
2796fi;
2797
2798 eval "$ac_cv_use_libpng"
2799 if test "$no_cache" != 1; then
2800 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2801 fi
2802
2803 if test "$wxUSE_LIBPNG" = yes; then
2804 echo "$as_me:$LINENO: result: yes" >&5
2805echo "${ECHO_T}yes" >&6
2806 elif test "$wxUSE_LIBPNG" = no; then
2807 echo "$as_me:$LINENO: result: no" >&5
2808echo "${ECHO_T}no" >&6
2809 elif test "$wxUSE_LIBPNG" = sys; then
2810 echo "$as_me:$LINENO: result: system version" >&5
2811echo "${ECHO_T}system version" >&6
2812 elif test "$wxUSE_LIBPNG" = builtin; then
2813 echo "$as_me:$LINENO: result: builtin version" >&5
2814echo "${ECHO_T}builtin version" >&6
2815 else
2816 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2817echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2818 { (exit 1); exit 1; }; }
2819 fi
2820
2821
2822 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2823echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2824 no_cache=0
2825
2826# Check whether --with-libjpeg or --without-libjpeg was given.
2827if test "${with_libjpeg+set}" = set; then
2828 withval="$with_libjpeg"
2829
2830 if test "$withval" = yes; then
2831 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2832 elif test "$withval" = no; then
2833 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2834 elif test "$withval" = sys; then
2835 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2836 elif test "$withval" = builtin; then
2837 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2838 else
2839 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2840echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2841 { (exit 1); exit 1; }; }
2842 fi
2843
2844else
2845
2846 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2847 if test "x$LINE" != x ; then
2848 eval "DEFAULT_$LINE"
2849 else
2850 no_cache=1
2851 fi
2852
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2854
2855fi;
2856
2857 eval "$ac_cv_use_libjpeg"
2858 if test "$no_cache" != 1; then
2859 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2860 fi
2861
2862 if test "$wxUSE_LIBJPEG" = yes; then
2863 echo "$as_me:$LINENO: result: yes" >&5
2864echo "${ECHO_T}yes" >&6
2865 elif test "$wxUSE_LIBJPEG" = no; then
2866 echo "$as_me:$LINENO: result: no" >&5
2867echo "${ECHO_T}no" >&6
2868 elif test "$wxUSE_LIBJPEG" = sys; then
2869 echo "$as_me:$LINENO: result: system version" >&5
2870echo "${ECHO_T}system version" >&6
2871 elif test "$wxUSE_LIBJPEG" = builtin; then
2872 echo "$as_me:$LINENO: result: builtin version" >&5
2873echo "${ECHO_T}builtin version" >&6
2874 else
2875 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2876echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2877 { (exit 1); exit 1; }; }
2878 fi
2879
2880
2881 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2882echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2883 no_cache=0
2884
2885# Check whether --with-libtiff or --without-libtiff was given.
2886if test "${with_libtiff+set}" = set; then
2887 withval="$with_libtiff"
2888
2889 if test "$withval" = yes; then
2890 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2891 elif test "$withval" = no; then
2892 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2893 elif test "$withval" = sys; then
2894 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2895 elif test "$withval" = builtin; then
2896 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2897 else
2898 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2899echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902
2903else
2904
2905 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2913
2914fi;
2915
2916 eval "$ac_cv_use_libtiff"
2917 if test "$no_cache" != 1; then
2918 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2919 fi
2920
2921 if test "$wxUSE_LIBTIFF" = yes; then
2922 echo "$as_me:$LINENO: result: yes" >&5
2923echo "${ECHO_T}yes" >&6
2924 elif test "$wxUSE_LIBTIFF" = no; then
2925 echo "$as_me:$LINENO: result: no" >&5
2926echo "${ECHO_T}no" >&6
2927 elif test "$wxUSE_LIBTIFF" = sys; then
2928 echo "$as_me:$LINENO: result: system version" >&5
2929echo "${ECHO_T}system version" >&6
2930 elif test "$wxUSE_LIBTIFF" = builtin; then
2931 echo "$as_me:$LINENO: result: builtin version" >&5
2932echo "${ECHO_T}builtin version" >&6
2933 else
2934 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2935echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2936 { (exit 1); exit 1; }; }
2937 fi
2938
2939
2940 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2941echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2942 no_cache=0
2943
2944# Check whether --with-libxpm or --without-libxpm was given.
2945if test "${with_libxpm+set}" = set; then
2946 withval="$with_libxpm"
2947
2948 if test "$withval" = yes; then
2949 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2950 elif test "$withval" = no; then
2951 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2952 elif test "$withval" = sys; then
2953 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2954 elif test "$withval" = builtin; then
2955 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2956 else
2957 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2958echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2959 { (exit 1); exit 1; }; }
2960 fi
2961
2962else
2963
2964 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2965 if test "x$LINE" != x ; then
2966 eval "DEFAULT_$LINE"
2967 else
2968 no_cache=1
2969 fi
2970
2971 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2972
2973fi;
2974
2975 eval "$ac_cv_use_libxpm"
2976 if test "$no_cache" != 1; then
2977 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2978 fi
2979
2980 if test "$wxUSE_LIBXPM" = yes; then
2981 echo "$as_me:$LINENO: result: yes" >&5
2982echo "${ECHO_T}yes" >&6
2983 elif test "$wxUSE_LIBXPM" = no; then
2984 echo "$as_me:$LINENO: result: no" >&5
2985echo "${ECHO_T}no" >&6
2986 elif test "$wxUSE_LIBXPM" = sys; then
2987 echo "$as_me:$LINENO: result: system version" >&5
2988echo "${ECHO_T}system version" >&6
2989 elif test "$wxUSE_LIBXPM" = builtin; then
2990 echo "$as_me:$LINENO: result: builtin version" >&5
2991echo "${ECHO_T}builtin version" >&6
2992 else
2993 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2994echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2995 { (exit 1); exit 1; }; }
2996 fi
2997
2998
2999 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3000echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3001 no_cache=0
3002
3003# Check whether --with-libmspack or --without-libmspack was given.
3004if test "${with_libmspack+set}" = set; then
3005 withval="$with_libmspack"
3006
3007 if test "$withval" = yes; then
3008 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3009 else
3010 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3011 fi
3012
3013else
3014
3015 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3016 if test "x$LINE" != x ; then
3017 eval "DEFAULT_$LINE"
3018 else
3019 no_cache=1
3020 fi
3021
3022 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3023
3024fi;
3025
3026 eval "$ac_cv_use_libmspack"
3027 if test "$no_cache" != 1; then
3028 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3029 fi
3030
3031 if test "$wxUSE_LIBMSPACK" = yes; then
3032 echo "$as_me:$LINENO: result: yes" >&5
3033echo "${ECHO_T}yes" >&6
3034 else
3035 echo "$as_me:$LINENO: result: no" >&5
3036echo "${ECHO_T}no" >&6
3037 fi
3038
3039
3040 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3041echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3042 no_cache=0
3043
3044# Check whether --with-sdl or --without-sdl was given.
3045if test "${with_sdl+set}" = set; then
3046 withval="$with_sdl"
3047
3048 if test "$withval" = yes; then
3049 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3050 else
3051 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3052 fi
3053
3054else
3055
3056 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3064
3065fi;
3066
3067 eval "$ac_cv_use_sdl"
3068 if test "$no_cache" != 1; then
3069 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3070 fi
3071
3072 if test "$wxUSE_LIBSDL" = yes; then
3073 echo "$as_me:$LINENO: result: yes" >&5
3074echo "${ECHO_T}yes" >&6
3075 else
3076 echo "$as_me:$LINENO: result: no" >&5
3077echo "${ECHO_T}no" >&6
3078 fi
3079
3080
d1c38808
VZ
3081 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3082echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3083 no_cache=0
3084
3085# Check whether --with-gnomeprint or --without-gnomeprint was given.
3086if test "${with_gnomeprint+set}" = set; then
3087 withval="$with_gnomeprint"
3088
3089 if test "$withval" = yes; then
3090 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3091 else
3092 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3093 fi
3094
3095else
3096
3097 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3098 if test "x$LINE" != x ; then
3099 eval "DEFAULT_$LINE"
3100 else
3101 no_cache=1
3102 fi
3103
3104 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3105
3106fi;
3107
3108 eval "$ac_cv_use_gnomeprint"
3109 if test "$no_cache" != 1; then
3110 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3111 fi
3112
3113 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3114 echo "$as_me:$LINENO: result: yes" >&5
3115echo "${ECHO_T}yes" >&6
3116 else
3117 echo "$as_me:$LINENO: result: no" >&5
3118echo "${ECHO_T}no" >&6
3119 fi
3120
3121
a848cd7e
SC
3122 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3123echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3124 no_cache=0
3125
3126# Check whether --with-opengl or --without-opengl was given.
3127if test "${with_opengl+set}" = set; then
3128 withval="$with_opengl"
3129
3130 if test "$withval" = yes; then
3131 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3132 else
3133 ac_cv_use_opengl='wxUSE_OPENGL=no'
3134 fi
3135
3136else
3137
3138 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3139 if test "x$LINE" != x ; then
3140 eval "DEFAULT_$LINE"
3141 else
3142 no_cache=1
3143 fi
3144
3145 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3146
3147fi;
3148
3149 eval "$ac_cv_use_opengl"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_OPENGL" = yes; then
3155 echo "$as_me:$LINENO: result: yes" >&5
3156echo "${ECHO_T}yes" >&6
3157 else
3158 echo "$as_me:$LINENO: result: no" >&5
3159echo "${ECHO_T}no" >&6
3160 fi
3161
3162
3163fi
3164
3165
3166 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3167echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3168 no_cache=0
3169
3170# Check whether --with-dmalloc or --without-dmalloc was given.
3171if test "${with_dmalloc+set}" = set; then
3172 withval="$with_dmalloc"
3173
3174 if test "$withval" = yes; then
3175 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3176 else
3177 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3178 fi
3179
3180else
3181
3182 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3183 if test "x$LINE" != x ; then
3184 eval "DEFAULT_$LINE"
3185 else
3186 no_cache=1
3187 fi
3188
3189 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3190
3191fi;
3192
3193 eval "$ac_cv_use_dmalloc"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_DMALLOC" = yes; then
3199 echo "$as_me:$LINENO: result: yes" >&5
3200echo "${ECHO_T}yes" >&6
3201 else
3202 echo "$as_me:$LINENO: result: no" >&5
3203echo "${ECHO_T}no" >&6
3204 fi
3205
3206
3207 echo "$as_me:$LINENO: checking for --with-regex" >&5
3208echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3209 no_cache=0
3210
3211# Check whether --with-regex or --without-regex was given.
3212if test "${with_regex+set}" = set; then
3213 withval="$with_regex"
3214
3215 if test "$withval" = yes; then
3216 ac_cv_use_regex='wxUSE_REGEX=yes'
3217 elif test "$withval" = no; then
3218 ac_cv_use_regex='wxUSE_REGEX=no'
3219 elif test "$withval" = sys; then
3220 ac_cv_use_regex='wxUSE_REGEX=sys'
3221 elif test "$withval" = builtin; then
3222 ac_cv_use_regex='wxUSE_REGEX=builtin'
3223 else
3224 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3225echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3226 { (exit 1); exit 1; }; }
3227 fi
3228
3229else
3230
3231 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3232 if test "x$LINE" != x ; then
3233 eval "DEFAULT_$LINE"
3234 else
3235 no_cache=1
3236 fi
3237
3238 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3239
3240fi;
3241
3242 eval "$ac_cv_use_regex"
3243 if test "$no_cache" != 1; then
3244 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3245 fi
3246
3247 if test "$wxUSE_REGEX" = yes; then
3248 echo "$as_me:$LINENO: result: yes" >&5
3249echo "${ECHO_T}yes" >&6
3250 elif test "$wxUSE_REGEX" = no; then
3251 echo "$as_me:$LINENO: result: no" >&5
3252echo "${ECHO_T}no" >&6
3253 elif test "$wxUSE_REGEX" = sys; then
3254 echo "$as_me:$LINENO: result: system version" >&5
3255echo "${ECHO_T}system version" >&6
3256 elif test "$wxUSE_REGEX" = builtin; then
3257 echo "$as_me:$LINENO: result: builtin version" >&5
3258echo "${ECHO_T}builtin version" >&6
3259 else
3260 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3261echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3262 { (exit 1); exit 1; }; }
3263 fi
3264
3265
3266 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3267echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3268 no_cache=0
3269
3270# Check whether --with-zlib or --without-zlib was given.
3271if test "${with_zlib+set}" = set; then
3272 withval="$with_zlib"
3273
3274 if test "$withval" = yes; then
3275 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3276 elif test "$withval" = no; then
3277 ac_cv_use_zlib='wxUSE_ZLIB=no'
3278 elif test "$withval" = sys; then
3279 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3280 elif test "$withval" = builtin; then
3281 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3282 else
3283 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3284echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3285 { (exit 1); exit 1; }; }
3286 fi
3287
3288else
3289
3290 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3298
3299fi;
3300
3301 eval "$ac_cv_use_zlib"
3302 if test "$no_cache" != 1; then
3303 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3304 fi
3305
3306 if test "$wxUSE_ZLIB" = yes; then
3307 echo "$as_me:$LINENO: result: yes" >&5
3308echo "${ECHO_T}yes" >&6
3309 elif test "$wxUSE_ZLIB" = no; then
3310 echo "$as_me:$LINENO: result: no" >&5
3311echo "${ECHO_T}no" >&6
3312 elif test "$wxUSE_ZLIB" = sys; then
3313 echo "$as_me:$LINENO: result: system version" >&5
3314echo "${ECHO_T}system version" >&6
3315 elif test "$wxUSE_ZLIB" = builtin; then
3316 echo "$as_me:$LINENO: result: builtin version" >&5
3317echo "${ECHO_T}builtin version" >&6
3318 else
3319 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3320echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3321 { (exit 1); exit 1; }; }
3322 fi
3323
3324
3325 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3326echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3327 no_cache=0
3328
3329# Check whether --with-odbc or --without-odbc was given.
3330if test "${with_odbc+set}" = set; then
3331 withval="$with_odbc"
3332
3333 if test "$withval" = yes; then
3334 ac_cv_use_odbc='wxUSE_ODBC=yes'
3335 elif test "$withval" = no; then
3336 ac_cv_use_odbc='wxUSE_ODBC=no'
3337 elif test "$withval" = sys; then
3338 ac_cv_use_odbc='wxUSE_ODBC=sys'
3339 elif test "$withval" = builtin; then
3340 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3341 else
3342 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3343echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3344 { (exit 1); exit 1; }; }
3345 fi
3346
3347else
3348
3349 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3350 if test "x$LINE" != x ; then
3351 eval "DEFAULT_$LINE"
3352 else
3353 no_cache=1
3354 fi
3355
3356 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3357
3358fi;
3359
3360 eval "$ac_cv_use_odbc"
3361 if test "$no_cache" != 1; then
3362 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3363 fi
3364
3365 if test "$wxUSE_ODBC" = yes; then
3366 echo "$as_me:$LINENO: result: yes" >&5
3367echo "${ECHO_T}yes" >&6
3368 elif test "$wxUSE_ODBC" = no; then
3369 echo "$as_me:$LINENO: result: no" >&5
3370echo "${ECHO_T}no" >&6
3371 elif test "$wxUSE_ODBC" = sys; then
3372 echo "$as_me:$LINENO: result: system version" >&5
3373echo "${ECHO_T}system version" >&6
3374 elif test "$wxUSE_ODBC" = builtin; then
3375 echo "$as_me:$LINENO: result: builtin version" >&5
3376echo "${ECHO_T}builtin version" >&6
3377 else
3378 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3379echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3380 { (exit 1); exit 1; }; }
3381 fi
3382
3383
3384 echo "$as_me:$LINENO: checking for --with-expat" >&5
3385echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3386 no_cache=0
3387
3388# Check whether --with-expat or --without-expat was given.
3389if test "${with_expat+set}" = set; then
3390 withval="$with_expat"
3391
3392 if test "$withval" = yes; then
3393 ac_cv_use_expat='wxUSE_EXPAT=yes'
3394 elif test "$withval" = no; then
3395 ac_cv_use_expat='wxUSE_EXPAT=no'
3396 elif test "$withval" = sys; then
3397 ac_cv_use_expat='wxUSE_EXPAT=sys'
3398 elif test "$withval" = builtin; then
3399 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3400 else
3401 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3402echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3403 { (exit 1); exit 1; }; }
3404 fi
3405
3406else
3407
3408 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
3415 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3416
3417fi;
3418
3419 eval "$ac_cv_use_expat"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_EXPAT" = yes; then
3425 echo "$as_me:$LINENO: result: yes" >&5
3426echo "${ECHO_T}yes" >&6
3427 elif test "$wxUSE_EXPAT" = no; then
3428 echo "$as_me:$LINENO: result: no" >&5
3429echo "${ECHO_T}no" >&6
3430 elif test "$wxUSE_EXPAT" = sys; then
3431 echo "$as_me:$LINENO: result: system version" >&5
3432echo "${ECHO_T}system version" >&6
3433 elif test "$wxUSE_EXPAT" = builtin; then
3434 echo "$as_me:$LINENO: result: builtin version" >&5
3435echo "${ECHO_T}builtin version" >&6
3436 else
3437 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3438echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3439 { (exit 1); exit 1; }; }
3440 fi
3441
3442
3443
3444
3445 enablestring=
3446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3447echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3448 no_cache=0
3449 # Check whether --enable-shared or --disable-shared was given.
3450if test "${enable_shared+set}" = set; then
3451 enableval="$enable_shared"
3452
3453 if test "$enableval" = yes; then
3454 ac_cv_use_shared='wxUSE_SHARED=yes'
3455 else
3456 ac_cv_use_shared='wxUSE_SHARED=no'
3457 fi
3458
3459else
3460
3461 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3462 if test "x$LINE" != x ; then
3463 eval "DEFAULT_$LINE"
3464 else
3465 no_cache=1
3466 fi
3467
3468 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3469
3470fi;
3471
3472 eval "$ac_cv_use_shared"
3473 if test "$no_cache" != 1; then
3474 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3475 fi
3476
3477 if test "$wxUSE_SHARED" = yes; then
3478 echo "$as_me:$LINENO: result: yes" >&5
3479echo "${ECHO_T}yes" >&6
3480 else
3481 echo "$as_me:$LINENO: result: no" >&5
3482echo "${ECHO_T}no" >&6
3483 fi
3484
3485
3486 enablestring=
3487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3488echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3489 no_cache=0
3490 # Check whether --enable-optimise or --disable-optimise was given.
3491if test "${enable_optimise+set}" = set; then
3492 enableval="$enable_optimise"
3493
3494 if test "$enableval" = yes; then
3495 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3496 else
3497 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3498 fi
3499
3500else
3501
3502 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3503 if test "x$LINE" != x ; then
3504 eval "DEFAULT_$LINE"
3505 else
3506 no_cache=1
3507 fi
3508
3509 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3510
3511fi;
3512
3513 eval "$ac_cv_use_optimise"
3514 if test "$no_cache" != 1; then
3515 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3516 fi
3517
3518 if test "$wxUSE_OPTIMISE" = yes; then
3519 echo "$as_me:$LINENO: result: yes" >&5
3520echo "${ECHO_T}yes" >&6
3521 else
3522 echo "$as_me:$LINENO: result: no" >&5
3523echo "${ECHO_T}no" >&6
3524 fi
3525
3526
3527 enablestring=
3528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3529echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3530 no_cache=0
3531 # Check whether --enable-debug or --disable-debug was given.
3532if test "${enable_debug+set}" = set; then
3533 enableval="$enable_debug"
3534
3535 if test "$enableval" = yes; then
3536 ac_cv_use_debug='wxUSE_DEBUG=yes'
3537 else
3538 ac_cv_use_debug='wxUSE_DEBUG=no'
3539 fi
3540
3541else
3542
3543 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3544 if test "x$LINE" != x ; then
3545 eval "DEFAULT_$LINE"
3546 else
3547 no_cache=1
3548 fi
3549
3550 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3551
3552fi;
3553
3554 eval "$ac_cv_use_debug"
3555 if test "$no_cache" != 1; then
3556 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3557 fi
3558
3559 if test "$wxUSE_DEBUG" = yes; then
3560 echo "$as_me:$LINENO: result: yes" >&5
3561echo "${ECHO_T}yes" >&6
3562 else
3563 echo "$as_me:$LINENO: result: no" >&5
3564echo "${ECHO_T}no" >&6
3565 fi
3566
3567
3568 enablestring=
3569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3570echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3571 no_cache=0
3572 # Check whether --enable-stl or --disable-stl was given.
3573if test "${enable_stl+set}" = set; then
3574 enableval="$enable_stl"
3575
3576 if test "$enableval" = yes; then
3577 ac_cv_use_stl='wxUSE_STL=yes'
3578 else
3579 ac_cv_use_stl='wxUSE_STL=no'
3580 fi
3581
3582else
3583
3584 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3585 if test "x$LINE" != x ; then
3586 eval "DEFAULT_$LINE"
3587 else
3588 no_cache=1
3589 fi
3590
3591 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3592
3593fi;
3594
3595 eval "$ac_cv_use_stl"
3596 if test "$no_cache" != 1; then
3597 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3598 fi
3599
3600 if test "$wxUSE_STL" = yes; then
3601 echo "$as_me:$LINENO: result: yes" >&5
3602echo "${ECHO_T}yes" >&6
3603 else
3604 echo "$as_me:$LINENO: result: no" >&5
3605echo "${ECHO_T}no" >&6
3606 fi
3607
3608if test "$USE_OS2" = "1"; then
3609
3610 enablestring=
3611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3612echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3613 no_cache=0
3614 # Check whether --enable-omf or --disable-omf was given.
3615if test "${enable_omf+set}" = set; then
3616 enableval="$enable_omf"
3617
3618 if test "$enableval" = yes; then
3619 ac_cv_use_omf='wxUSE_OMF=yes'
3620 else
3621 ac_cv_use_omf='wxUSE_OMF=no'
3622 fi
3623
3624else
3625
3626 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3634
3635fi;
3636
3637 eval "$ac_cv_use_omf"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_OMF" = yes; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648 fi
3649
3650fi
3651
3652if test "$wxUSE_DEBUG" = "yes"; then
3653 DEFAULT_wxUSE_DEBUG_FLAG=yes
3654 DEFAULT_wxUSE_DEBUG_INFO=yes
3655 BUILD=debug
3656elif test "$wxUSE_DEBUG" = "no"; then
3657 DEFAULT_wxUSE_DEBUG_FLAG=no
3658 DEFAULT_wxUSE_DEBUG_INFO=no
3659 BUILD=release
3660fi
3661
3662
3663 enablestring=
3664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3665echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3666 no_cache=0
3667 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3668if test "${enable_debug_flag+set}" = set; then
3669 enableval="$enable_debug_flag"
3670
3671 if test "$enableval" = yes; then
3672 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3673 else
3674 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3675 fi
3676
3677else
3678
3679 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3680 if test "x$LINE" != x ; then
3681 eval "DEFAULT_$LINE"
3682 else
3683 no_cache=1
3684 fi
3685
3686 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3687
3688fi;
3689
3690 eval "$ac_cv_use_debug_flag"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_DEBUG_FLAG" = yes; then
3696 echo "$as_me:$LINENO: result: yes" >&5
3697echo "${ECHO_T}yes" >&6
3698 else
3699 echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701 fi
3702
3703
3704 enablestring=
3705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3706echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3707 no_cache=0
3708 # Check whether --enable-debug_info or --disable-debug_info was given.
3709if test "${enable_debug_info+set}" = set; then
3710 enableval="$enable_debug_info"
3711
3712 if test "$enableval" = yes; then
3713 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3714 else
3715 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3716 fi
3717
3718else
3719
3720 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3721 if test "x$LINE" != x ; then
3722 eval "DEFAULT_$LINE"
3723 else
3724 no_cache=1
3725 fi
3726
3727 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3728
3729fi;
3730
3731 eval "$ac_cv_use_debug_info"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_DEBUG_INFO" = yes; then
3737 echo "$as_me:$LINENO: result: yes" >&5
3738echo "${ECHO_T}yes" >&6
3739 else
3740 echo "$as_me:$LINENO: result: no" >&5
3741echo "${ECHO_T}no" >&6
3742 fi
3743
3744
3745 enablestring=
3746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3747echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3748 no_cache=0
3749 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3750if test "${enable_debug_gdb+set}" = set; then
3751 enableval="$enable_debug_gdb"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3755 else
3756 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3757 fi
3758
3759else
3760
3761 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3769
3770fi;
3771
3772 eval "$ac_cv_use_debug_gdb"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_DEBUG_GDB" = yes; then
3778 echo "$as_me:$LINENO: result: yes" >&5
3779echo "${ECHO_T}yes" >&6
3780 else
3781 echo "$as_me:$LINENO: result: no" >&5
3782echo "${ECHO_T}no" >&6
3783 fi
3784
3785
3786 enablestring=
3787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3788echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3789 no_cache=0
3790 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3791if test "${enable_debug_cntxt+set}" = set; then
3792 enableval="$enable_debug_cntxt"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3796 else
3797 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3798 fi
3799
3800else
3801
3802 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3810
3811fi;
3812
3813 eval "$ac_cv_use_debug_cntxt"
3814 if test "$no_cache" != 1; then
3815 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3816 fi
3817
3818 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3819 echo "$as_me:$LINENO: result: yes" >&5
3820echo "${ECHO_T}yes" >&6
3821 else
3822 echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824 fi
3825
3826
3827 enablestring=
3828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3829echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3830 no_cache=0
3831 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3832if test "${enable_mem_tracing+set}" = set; then
3833 enableval="$enable_mem_tracing"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3837 else
3838 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3851
3852fi;
3853
3854 eval "$ac_cv_use_mem_tracing"
3855 if test "$no_cache" != 1; then
3856 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3857 fi
3858
3859 if test "$wxUSE_MEM_TRACING" = yes; then
3860 echo "$as_me:$LINENO: result: yes" >&5
3861echo "${ECHO_T}yes" >&6
3862 else
3863 echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6
3865 fi
3866
3867
3868 enablestring=
3869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3870echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3871 no_cache=0
3872 # Check whether --enable-profile or --disable-profile was given.
3873if test "${enable_profile+set}" = set; then
3874 enableval="$enable_profile"
3875
3876 if test "$enableval" = yes; then
3877 ac_cv_use_profile='wxUSE_PROFILE=yes'
3878 else
3879 ac_cv_use_profile='wxUSE_PROFILE=no'
3880 fi
3881
3882else
3883
3884 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3885 if test "x$LINE" != x ; then
3886 eval "DEFAULT_$LINE"
3887 else
3888 no_cache=1
3889 fi
3890
3891 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3892
3893fi;
3894
3895 eval "$ac_cv_use_profile"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_PROFILE" = yes; then
3901 echo "$as_me:$LINENO: result: yes" >&5
3902echo "${ECHO_T}yes" >&6
3903 else
3904 echo "$as_me:$LINENO: result: no" >&5
3905echo "${ECHO_T}no" >&6
3906 fi
3907
3908
3909 enablestring=
3910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3911echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3912 no_cache=0
3913 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3914if test "${enable_no_rtti+set}" = set; then
3915 enableval="$enable_no_rtti"
3916
3917 if test "$enableval" = yes; then
3918 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3919 else
3920 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3921 fi
3922
3923else
3924
3925 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3926 if test "x$LINE" != x ; then
3927 eval "DEFAULT_$LINE"
3928 else
3929 no_cache=1
3930 fi
3931
3932 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3933
3934fi;
3935
3936 eval "$ac_cv_use_no_rtti"
3937 if test "$no_cache" != 1; then
3938 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3939 fi
3940
3941 if test "$wxUSE_NO_RTTI" = yes; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943echo "${ECHO_T}yes" >&6
3944 else
3945 echo "$as_me:$LINENO: result: no" >&5
3946echo "${ECHO_T}no" >&6
3947 fi
3948
3949
3950 enablestring=
3951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3952echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3953 no_cache=0
3954 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3955if test "${enable_no_exceptions+set}" = set; then
3956 enableval="$enable_no_exceptions"
3957
3958 if test "$enableval" = yes; then
3959 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3960 else
3961 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3962 fi
3963
3964else
3965
3966 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
3973 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3974
3975fi;
3976
3977 eval "$ac_cv_use_no_exceptions"
3978 if test "$no_cache" != 1; then
3979 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3980 fi
3981
3982 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3983 echo "$as_me:$LINENO: result: yes" >&5
3984echo "${ECHO_T}yes" >&6
3985 else
3986 echo "$as_me:$LINENO: result: no" >&5
3987echo "${ECHO_T}no" >&6
3988 fi
3989
3990
3991 enablestring=
3992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3993echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3994 no_cache=0
3995 # Check whether --enable-permissive or --disable-permissive was given.
3996if test "${enable_permissive+set}" = set; then
3997 enableval="$enable_permissive"
3998
3999 if test "$enableval" = yes; then
4000 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4001 else
4002 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4003 fi
4004
4005else
4006
4007 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4008 if test "x$LINE" != x ; then
4009 eval "DEFAULT_$LINE"
4010 else
4011 no_cache=1
4012 fi
4013
4014 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4015
4016fi;
4017
4018 eval "$ac_cv_use_permissive"
4019 if test "$no_cache" != 1; then
4020 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4021 fi
4022
4023 if test "$wxUSE_PERMISSIVE" = yes; then
4024 echo "$as_me:$LINENO: result: yes" >&5
4025echo "${ECHO_T}yes" >&6
4026 else
4027 echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6
4029 fi
4030
4031
4032 enablestring=
4033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4034echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4035 no_cache=0
4036 # Check whether --enable-no_deps or --disable-no_deps was given.
4037if test "${enable_no_deps+set}" = set; then
4038 enableval="$enable_no_deps"
4039
4040 if test "$enableval" = yes; then
4041 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4042 else
4043 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4044 fi
4045
4046else
4047
4048 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4049 if test "x$LINE" != x ; then
4050 eval "DEFAULT_$LINE"
4051 else
4052 no_cache=1
4053 fi
4054
4055 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4056
4057fi;
4058
4059 eval "$ac_cv_use_no_deps"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_NO_DEPS" = yes; then
4065 echo "$as_me:$LINENO: result: yes" >&5
4066echo "${ECHO_T}yes" >&6
4067 else
4068 echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6
4070 fi
4071
4072
4073
4074 enablestring=
4075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4076echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4077 no_cache=0
4078 # Check whether --enable-compat22 or --disable-compat22 was given.
4079if test "${enable_compat22+set}" = set; then
4080 enableval="$enable_compat22"
4081
4082 if test "$enableval" = yes; then
4083 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4084 else
4085 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4086 fi
4087
4088else
4089
4090 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4091 if test "x$LINE" != x ; then
4092 eval "DEFAULT_$LINE"
4093 else
4094 no_cache=1
4095 fi
4096
4097 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4098
4099fi;
4100
4101 eval "$ac_cv_use_compat22"
4102 if test "$no_cache" != 1; then
4103 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4104 fi
4105
4106 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4107 echo "$as_me:$LINENO: result: yes" >&5
4108echo "${ECHO_T}yes" >&6
4109 else
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112 fi
4113
4114
4115 enablestring=disable
4116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4117echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4118 no_cache=0
4119 # Check whether --enable-compat24 or --disable-compat24 was given.
4120if test "${enable_compat24+set}" = set; then
4121 enableval="$enable_compat24"
4122
4123 if test "$enableval" = yes; then
4124 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4125 else
4126 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4127 fi
4128
4129else
4130
4131 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4139
4140fi;
4141
4142 eval "$ac_cv_use_compat24"
4143 if test "$no_cache" != 1; then
4144 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4145 fi
4146
4147 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4148 echo "$as_me:$LINENO: result: yes" >&5
4149echo "${ECHO_T}yes" >&6
4150 else
4151 echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
4153 fi
4154
4155
ffa0583f
RL
4156
4157 enablestring=
4158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4159echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4160 no_cache=0
4161 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4162if test "${enable_rpath+set}" = set; then
4163 enableval="$enable_rpath"
ffa0583f
RL
4164
4165 if test "$enableval" = yes; then
4166 ac_cv_use_rpath='wxUSE_RPATH=yes'
4167 else
4168 ac_cv_use_rpath='wxUSE_RPATH=no'
4169 fi
4170
4171else
4172
4173 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
4180 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4181
a848cd7e
SC
4182fi;
4183
ffa0583f
RL
4184 eval "$ac_cv_use_rpath"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_RPATH" = yes; then
4190 echo "$as_me:$LINENO: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
4192 else
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195 fi
4196
a848cd7e
SC
4197
4198
4199
4200
4201 enablestring=
4202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4203echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4204 no_cache=0
4205 # Check whether --enable-intl or --disable-intl was given.
4206if test "${enable_intl+set}" = set; then
4207 enableval="$enable_intl"
4208
4209 if test "$enableval" = yes; then
4210 ac_cv_use_intl='wxUSE_INTL=yes'
4211 else
4212 ac_cv_use_intl='wxUSE_INTL=no'
4213 fi
4214
4215else
4216
4217 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
4224 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4225
4226fi;
4227
4228 eval "$ac_cv_use_intl"
4229 if test "$no_cache" != 1; then
4230 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4231 fi
4232
4233 if test "$wxUSE_INTL" = yes; then
4234 echo "$as_me:$LINENO: result: yes" >&5
4235echo "${ECHO_T}yes" >&6
4236 else
4237 echo "$as_me:$LINENO: result: no" >&5
4238echo "${ECHO_T}no" >&6
4239 fi
4240
4241
4242 enablestring=
4243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4244echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4245 no_cache=0
4246 # Check whether --enable-config or --disable-config was given.
4247if test "${enable_config+set}" = set; then
4248 enableval="$enable_config"
4249
4250 if test "$enableval" = yes; then
4251 ac_cv_use_config='wxUSE_CONFIG=yes'
4252 else
4253 ac_cv_use_config='wxUSE_CONFIG=no'
4254 fi
4255
4256else
4257
4258 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4259 if test "x$LINE" != x ; then
4260 eval "DEFAULT_$LINE"
4261 else
4262 no_cache=1
4263 fi
4264
4265 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4266
4267fi;
4268
4269 eval "$ac_cv_use_config"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_CONFIG" = yes; then
4275 echo "$as_me:$LINENO: result: yes" >&5
4276echo "${ECHO_T}yes" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6
4280 fi
4281
4282
4283
4284 enablestring=
4285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4286echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4287 no_cache=0
4288 # Check whether --enable-protocols or --disable-protocols was given.
4289if test "${enable_protocols+set}" = set; then
4290 enableval="$enable_protocols"
4291
4292 if test "$enableval" = yes; then
4293 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4294 else
4295 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4296 fi
4297
4298else
4299
4300 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4301 if test "x$LINE" != x ; then
4302 eval "DEFAULT_$LINE"
4303 else
4304 no_cache=1
4305 fi
4306
4307 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4308
4309fi;
4310
4311 eval "$ac_cv_use_protocols"
4312 if test "$no_cache" != 1; then
4313 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4314 fi
4315
4316 if test "$wxUSE_PROTOCOL" = yes; then
4317 echo "$as_me:$LINENO: result: yes" >&5
4318echo "${ECHO_T}yes" >&6
4319 else
4320 echo "$as_me:$LINENO: result: no" >&5
4321echo "${ECHO_T}no" >&6
4322 fi
4323
4324
4325 enablestring=
4326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4327echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4328 no_cache=0
4329 # Check whether --enable-ftp or --disable-ftp was given.
4330if test "${enable_ftp+set}" = set; then
4331 enableval="$enable_ftp"
4332
4333 if test "$enableval" = yes; then
4334 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4335 else
4336 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4337 fi
4338
4339else
4340
4341 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4349
4350fi;
4351
4352 eval "$ac_cv_use_ftp"
4353 if test "$no_cache" != 1; then
4354 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4355 fi
4356
4357 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4358 echo "$as_me:$LINENO: result: yes" >&5
4359echo "${ECHO_T}yes" >&6
4360 else
4361 echo "$as_me:$LINENO: result: no" >&5
4362echo "${ECHO_T}no" >&6
4363 fi
4364
4365
4366 enablestring=
4367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4368echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4369 no_cache=0
4370 # Check whether --enable-http or --disable-http was given.
4371if test "${enable_http+set}" = set; then
4372 enableval="$enable_http"
4373
4374 if test "$enableval" = yes; then
4375 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4376 else
4377 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4378 fi
4379
4380else
4381
4382 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4383 if test "x$LINE" != x ; then
4384 eval "DEFAULT_$LINE"
4385 else
4386 no_cache=1
4387 fi
4388
4389 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4390
4391fi;
4392
4393 eval "$ac_cv_use_http"
4394 if test "$no_cache" != 1; then
4395 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4396 fi
4397
4398 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4399 echo "$as_me:$LINENO: result: yes" >&5
4400echo "${ECHO_T}yes" >&6
4401 else
4402 echo "$as_me:$LINENO: result: no" >&5
4403echo "${ECHO_T}no" >&6
4404 fi
4405
4406
4407 enablestring=
4408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4409echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4410 no_cache=0
4411 # Check whether --enable-fileproto or --disable-fileproto was given.
4412if test "${enable_fileproto+set}" = set; then
4413 enableval="$enable_fileproto"
4414
4415 if test "$enableval" = yes; then
4416 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4417 else
4418 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4419 fi
4420
4421else
4422
4423 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4431
4432fi;
4433
4434 eval "$ac_cv_use_fileproto"
4435 if test "$no_cache" != 1; then
4436 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4437 fi
4438
4439 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4440 echo "$as_me:$LINENO: result: yes" >&5
4441echo "${ECHO_T}yes" >&6
4442 else
4443 echo "$as_me:$LINENO: result: no" >&5
4444echo "${ECHO_T}no" >&6
4445 fi
4446
4447
4448 enablestring=
4449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4450echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4451 no_cache=0
4452 # Check whether --enable-sockets or --disable-sockets was given.
4453if test "${enable_sockets+set}" = set; then
4454 enableval="$enable_sockets"
4455
4456 if test "$enableval" = yes; then
4457 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4458 else
4459 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4460 fi
4461
4462else
4463
4464 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4465 if test "x$LINE" != x ; then
4466 eval "DEFAULT_$LINE"
4467 else
4468 no_cache=1
4469 fi
4470
4471 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4472
4473fi;
4474
4475 eval "$ac_cv_use_sockets"
4476 if test "$no_cache" != 1; then
4477 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4478 fi
4479
4480 if test "$wxUSE_SOCKETS" = yes; then
4481 echo "$as_me:$LINENO: result: yes" >&5
4482echo "${ECHO_T}yes" >&6
4483 else
4484 echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6
4486 fi
4487
4488
4489 enablestring=
4490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4491echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4492 no_cache=0
4493 # Check whether --enable-ole or --disable-ole was given.
4494if test "${enable_ole+set}" = set; then
4495 enableval="$enable_ole"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_ole='wxUSE_OLE=yes'
4499 else
4500 ac_cv_use_ole='wxUSE_OLE=no'
4501 fi
4502
4503else
4504
4505 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4513
4514fi;
4515
4516 eval "$ac_cv_use_ole"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_OLE" = yes; then
4522 echo "$as_me:$LINENO: result: yes" >&5
4523echo "${ECHO_T}yes" >&6
4524 else
4525 echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6
4527 fi
4528
4529
4530 enablestring=
4531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4532echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4533 no_cache=0
4534 # Check whether --enable-dataobj or --disable-dataobj was given.
4535if test "${enable_dataobj+set}" = set; then
4536 enableval="$enable_dataobj"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4540 else
4541 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4542 fi
4543
4544else
4545
4546 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4554
4555fi;
4556
4557 eval "$ac_cv_use_dataobj"
4558 if test "$no_cache" != 1; then
4559 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4560 fi
4561
4562 if test "$wxUSE_DATAOBJ" = yes; then
4563 echo "$as_me:$LINENO: result: yes" >&5
4564echo "${ECHO_T}yes" >&6
4565 else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568 fi
4569
4570
4571
4572 enablestring=
4573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4574echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4575 no_cache=0
4576 # Check whether --enable-ipc or --disable-ipc was given.
4577if test "${enable_ipc+set}" = set; then
4578 enableval="$enable_ipc"
4579
4580 if test "$enableval" = yes; then
4581 ac_cv_use_ipc='wxUSE_IPC=yes'
4582 else
4583 ac_cv_use_ipc='wxUSE_IPC=no'
4584 fi
4585
4586else
4587
4588 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4596
4597fi;
4598
4599 eval "$ac_cv_use_ipc"
4600 if test "$no_cache" != 1; then
4601 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4602 fi
4603
4604 if test "$wxUSE_IPC" = yes; then
4605 echo "$as_me:$LINENO: result: yes" >&5
4606echo "${ECHO_T}yes" >&6
4607 else
4608 echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6
4610 fi
4611
4612
4613
4614 enablestring=
4615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4616echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4617 no_cache=0
4618 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4619if test "${enable_apple_ieee+set}" = set; then
4620 enableval="$enable_apple_ieee"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4624 else
4625 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4626 fi
4627
4628else
4629
4630 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4638
4639fi;
4640
4641 eval "$ac_cv_use_apple_ieee"
4642 if test "$no_cache" != 1; then
4643 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4644 fi
4645
4646 if test "$wxUSE_APPLE_IEEE" = yes; then
4647 echo "$as_me:$LINENO: result: yes" >&5
4648echo "${ECHO_T}yes" >&6
4649 else
4650 echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652 fi
4653
4654
4655 enablestring=
4656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4657echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4658 no_cache=0
4659 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4660if test "${enable_catch_segvs+set}" = set; then
4661 enableval="$enable_catch_segvs"
4662
4663 if test "$enableval" = yes; then
4664 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4665 else
4666 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4667 fi
4668
4669else
4670
4671 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
4678 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4679
4680fi;
4681
4682 eval "$ac_cv_use_catch_segvs"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4685 fi
4686
4687 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4688 echo "$as_me:$LINENO: result: yes" >&5
4689echo "${ECHO_T}yes" >&6
4690 else
4691 echo "$as_me:$LINENO: result: no" >&5
4692echo "${ECHO_T}no" >&6
4693 fi
4694
4695
4696 enablestring=
4697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4698echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4699 no_cache=0
4700 # Check whether --enable-cmdline or --disable-cmdline was given.
4701if test "${enable_cmdline+set}" = set; then
4702 enableval="$enable_cmdline"
4703
4704 if test "$enableval" = yes; then
4705 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4706 else
4707 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4708 fi
4709
4710else
4711
4712 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4713 if test "x$LINE" != x ; then
4714 eval "DEFAULT_$LINE"
4715 else
4716 no_cache=1
4717 fi
4718
4719 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4720
4721fi;
4722
4723 eval "$ac_cv_use_cmdline"
4724 if test "$no_cache" != 1; then
4725 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4726 fi
4727
4728 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4729 echo "$as_me:$LINENO: result: yes" >&5
4730echo "${ECHO_T}yes" >&6
4731 else
4732 echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6
4734 fi
4735
4736
4737 enablestring=
4738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4739echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4740 no_cache=0
4741 # Check whether --enable-datetime or --disable-datetime was given.
4742if test "${enable_datetime+set}" = set; then
4743 enableval="$enable_datetime"
4744
4745 if test "$enableval" = yes; then
4746 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4747 else
4748 ac_cv_use_datetime='wxUSE_DATETIME=no'
4749 fi
4750
4751else
4752
4753 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
4760 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4761
4762fi;
4763
4764 eval "$ac_cv_use_datetime"
4765 if test "$no_cache" != 1; then
4766 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4767 fi
4768
4769 if test "$wxUSE_DATETIME" = yes; then
4770 echo "$as_me:$LINENO: result: yes" >&5
4771echo "${ECHO_T}yes" >&6
4772 else
4773 echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775 fi
4776
4777
4778 enablestring=
4779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4780echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4781 no_cache=0
4782 # Check whether --enable-dialupman or --disable-dialupman was given.
4783if test "${enable_dialupman+set}" = set; then
4784 enableval="$enable_dialupman"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4788 else
4789 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4790 fi
4791
4792else
4793
4794 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4802
4803fi;
4804
4805 eval "$ac_cv_use_dialupman"
4806 if test "$no_cache" != 1; then
4807 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4808 fi
4809
4810 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4811 echo "$as_me:$LINENO: result: yes" >&5
4812echo "${ECHO_T}yes" >&6
4813 else
4814 echo "$as_me:$LINENO: result: no" >&5
4815echo "${ECHO_T}no" >&6
4816 fi
4817
4818
4819 enablestring=
4820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4821echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4822 no_cache=0
4823 # Check whether --enable-dynlib or --disable-dynlib was given.
4824if test "${enable_dynlib+set}" = set; then
4825 enableval="$enable_dynlib"
4826
4827 if test "$enableval" = yes; then
4828 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4829 else
4830 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4831 fi
4832
4833else
4834
4835 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4836 if test "x$LINE" != x ; then
4837 eval "DEFAULT_$LINE"
4838 else
4839 no_cache=1
4840 fi
4841
4842 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4843
4844fi;
4845
4846 eval "$ac_cv_use_dynlib"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4852 echo "$as_me:$LINENO: result: yes" >&5
4853echo "${ECHO_T}yes" >&6
4854 else
4855 echo "$as_me:$LINENO: result: no" >&5
4856echo "${ECHO_T}no" >&6
4857 fi
4858
4859
4860 enablestring=
4861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4862echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4863 no_cache=0
4864 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4865if test "${enable_dynamicloader+set}" = set; then
4866 enableval="$enable_dynamicloader"
4867
4868 if test "$enableval" = yes; then
4869 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4870 else
4871 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4872 fi
4873
4874else
4875
4876 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4877 if test "x$LINE" != x ; then
4878 eval "DEFAULT_$LINE"
4879 else
4880 no_cache=1
4881 fi
4882
4883 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4884
4885fi;
4886
4887 eval "$ac_cv_use_dynamicloader"
4888 if test "$no_cache" != 1; then
4889 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4890 fi
4891
4892 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4893 echo "$as_me:$LINENO: result: yes" >&5
4894echo "${ECHO_T}yes" >&6
4895 else
4896 echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898 fi
4899
4900
4901 enablestring=
4902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4903echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4904 no_cache=0
4905 # Check whether --enable-exceptions or --disable-exceptions was given.
4906if test "${enable_exceptions+set}" = set; then
4907 enableval="$enable_exceptions"
4908
4909 if test "$enableval" = yes; then
4910 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4911 else
4912 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4913 fi
4914
4915else
4916
4917 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4918 if test "x$LINE" != x ; then
4919 eval "DEFAULT_$LINE"
4920 else
4921 no_cache=1
4922 fi
4923
4924 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4925
4926fi;
4927
4928 eval "$ac_cv_use_exceptions"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_EXCEPTIONS" = yes; then
4934 echo "$as_me:$LINENO: result: yes" >&5
4935echo "${ECHO_T}yes" >&6
4936 else
4937 echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6
4939 fi
4940
4941
4942 enablestring=
4943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4944echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4945 no_cache=0
4946 # Check whether --enable-ffile or --disable-ffile was given.
4947if test "${enable_ffile+set}" = set; then
4948 enableval="$enable_ffile"
4949
4950 if test "$enableval" = yes; then
4951 ac_cv_use_ffile='wxUSE_FFILE=yes'
4952 else
4953 ac_cv_use_ffile='wxUSE_FFILE=no'
4954 fi
4955
4956else
4957
4958 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4959 if test "x$LINE" != x ; then
4960 eval "DEFAULT_$LINE"
4961 else
4962 no_cache=1
4963 fi
4964
4965 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4966
4967fi;
4968
4969 eval "$ac_cv_use_ffile"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_FFILE" = yes; then
4975 echo "$as_me:$LINENO: result: yes" >&5
4976echo "${ECHO_T}yes" >&6
4977 else
4978 echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6
4980 fi
4981
4982
4983 enablestring=
4984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4985echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4986 no_cache=0
4987 # Check whether --enable-file or --disable-file was given.
4988if test "${enable_file+set}" = set; then
4989 enableval="$enable_file"
4990
4991 if test "$enableval" = yes; then
4992 ac_cv_use_file='wxUSE_FILE=yes'
4993 else
4994 ac_cv_use_file='wxUSE_FILE=no'
4995 fi
4996
4997else
4998
4999 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
5006 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5007
5008fi;
5009
5010 eval "$ac_cv_use_file"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5013 fi
5014
5015 if test "$wxUSE_FILE" = yes; then
5016 echo "$as_me:$LINENO: result: yes" >&5
5017echo "${ECHO_T}yes" >&6
5018 else
5019 echo "$as_me:$LINENO: result: no" >&5
5020echo "${ECHO_T}no" >&6
5021 fi
5022
5023
5024 enablestring=
5025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5026echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5027 no_cache=0
5028 # Check whether --enable-filesystem or --disable-filesystem was given.
5029if test "${enable_filesystem+set}" = set; then
5030 enableval="$enable_filesystem"
5031
5032 if test "$enableval" = yes; then
5033 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5034 else
5035 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5036 fi
5037
5038else
5039
5040 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5041 if test "x$LINE" != x ; then
5042 eval "DEFAULT_$LINE"
5043 else
5044 no_cache=1
5045 fi
5046
5047 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5048
5049fi;
5050
5051 eval "$ac_cv_use_filesystem"
5052 if test "$no_cache" != 1; then
5053 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5054 fi
5055
5056 if test "$wxUSE_FILESYSTEM" = yes; then
5057 echo "$as_me:$LINENO: result: yes" >&5
5058echo "${ECHO_T}yes" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062 fi
5063
5064
5065 enablestring=
5066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5067echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5068 no_cache=0
5069 # Check whether --enable-fontmap or --disable-fontmap was given.
5070if test "${enable_fontmap+set}" = set; then
5071 enableval="$enable_fontmap"
5072
5073 if test "$enableval" = yes; then
5074 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5075 else
5076 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5077 fi
5078
5079else
5080
5081 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5089
5090fi;
5091
5092 eval "$ac_cv_use_fontmap"
5093 if test "$no_cache" != 1; then
5094 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5095 fi
5096
5097 if test "$wxUSE_FONTMAP" = yes; then
5098 echo "$as_me:$LINENO: result: yes" >&5
5099echo "${ECHO_T}yes" >&6
5100 else
5101 echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103 fi
5104
5105
5106 enablestring=
5107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5108echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5109 no_cache=0
5110 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5111if test "${enable_fs_inet+set}" = set; then
5112 enableval="$enable_fs_inet"
5113
5114 if test "$enableval" = yes; then
5115 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5116 else
5117 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5118 fi
5119
5120else
5121
5122 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5123 if test "x$LINE" != x ; then
5124 eval "DEFAULT_$LINE"
5125 else
5126 no_cache=1
5127 fi
5128
5129 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5130
5131fi;
5132
5133 eval "$ac_cv_use_fs_inet"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_FS_INET" = yes; then
5139 echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143echo "${ECHO_T}no" >&6
5144 fi
5145
5146
5147 enablestring=
5148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5149echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5150 no_cache=0
5151 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5152if test "${enable_fs_zip+set}" = set; then
5153 enableval="$enable_fs_zip"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5157 else
5158 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5159 fi
5160
5161else
5162
5163 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5171
5172fi;
5173
5174 eval "$ac_cv_use_fs_zip"
5175 if test "$no_cache" != 1; then
5176 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5177 fi
5178
5179 if test "$wxUSE_FS_ZIP" = yes; then
5180 echo "$as_me:$LINENO: result: yes" >&5
5181echo "${ECHO_T}yes" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185 fi
5186
5187
5188 enablestring=
5189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5190echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5191 no_cache=0
5192 # Check whether --enable-geometry or --disable-geometry was given.
5193if test "${enable_geometry+set}" = set; then
5194 enableval="$enable_geometry"
5195
5196 if test "$enableval" = yes; then
5197 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5198 else
5199 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5200 fi
5201
5202else
5203
5204 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5205 if test "x$LINE" != x ; then
5206 eval "DEFAULT_$LINE"
5207 else
5208 no_cache=1
5209 fi
5210
5211 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5212
5213fi;
5214
5215 eval "$ac_cv_use_geometry"
5216 if test "$no_cache" != 1; then
5217 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5218 fi
5219
5220 if test "$wxUSE_GEOMETRY" = yes; then
5221 echo "$as_me:$LINENO: result: yes" >&5
5222echo "${ECHO_T}yes" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226 fi
5227
5228
5229 enablestring=
5230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5231echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5232 no_cache=0
5233 # Check whether --enable-log or --disable-log was given.
5234if test "${enable_log+set}" = set; then
5235 enableval="$enable_log"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_log='wxUSE_LOG=yes'
5239 else
5240 ac_cv_use_log='wxUSE_LOG=no'
5241 fi
5242
5243else
5244
5245 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5253
5254fi;
5255
5256 eval "$ac_cv_use_log"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_LOG" = yes; then
5262 echo "$as_me:$LINENO: result: yes" >&5
5263echo "${ECHO_T}yes" >&6
5264 else
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267 fi
5268
5269
5270 enablestring=
5271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5272echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5273 no_cache=0
5274 # Check whether --enable-longlong or --disable-longlong was given.
5275if test "${enable_longlong+set}" = set; then
5276 enableval="$enable_longlong"
5277
5278 if test "$enableval" = yes; then
5279 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5280 else
5281 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5282 fi
5283
5284else
5285
5286 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5287 if test "x$LINE" != x ; then
5288 eval "DEFAULT_$LINE"
5289 else
5290 no_cache=1
5291 fi
5292
5293 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5294
5295fi;
5296
5297 eval "$ac_cv_use_longlong"
5298 if test "$no_cache" != 1; then
5299 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5300 fi
5301
5302 if test "$wxUSE_LONGLONG" = yes; then
5303 echo "$as_me:$LINENO: result: yes" >&5
5304echo "${ECHO_T}yes" >&6
5305 else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308 fi
5309
5310
5311 enablestring=
5312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5313echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5314 no_cache=0
5315 # Check whether --enable-mimetype or --disable-mimetype was given.
5316if test "${enable_mimetype+set}" = set; then
5317 enableval="$enable_mimetype"
5318
5319 if test "$enableval" = yes; then
5320 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5321 else
5322 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5323 fi
5324
5325else
5326
5327 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5328 if test "x$LINE" != x ; then
5329 eval "DEFAULT_$LINE"
5330 else
5331 no_cache=1
5332 fi
5333
5334 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5335
5336fi;
5337
5338 eval "$ac_cv_use_mimetype"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_MIMETYPE" = yes; then
5344 echo "$as_me:$LINENO: result: yes" >&5
5345echo "${ECHO_T}yes" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349 fi
5350
5351
5352 enablestring=
5353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5354echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5355 no_cache=0
5356 # Check whether --enable-mslu or --disable-mslu was given.
5357if test "${enable_mslu+set}" = set; then
5358 enableval="$enable_mslu"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5362 else
5363 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5376
5377fi;
5378
5379 eval "$ac_cv_use_mslu"
5380 if test "$no_cache" != 1; then
5381 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5382 fi
5383
5384 if test "$wxUSE_UNICODE_MSLU" = yes; then
5385 echo "$as_me:$LINENO: result: yes" >&5
5386echo "${ECHO_T}yes" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390 fi
5391
5392
5393 enablestring=
5394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5395echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5396 no_cache=0
5397 # Check whether --enable-snglinst or --disable-snglinst was given.
5398if test "${enable_snglinst+set}" = set; then
5399 enableval="$enable_snglinst"
5400
5401 if test "$enableval" = yes; then
5402 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5403 else
5404 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5405 fi
5406
5407else
5408
5409 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5417
5418fi;
5419
5420 eval "$ac_cv_use_snglinst"
5421 if test "$no_cache" != 1; then
5422 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5423 fi
5424
5425 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5426 echo "$as_me:$LINENO: result: yes" >&5
5427echo "${ECHO_T}yes" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431 fi
5432
5433
5434 enablestring=
5435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5436echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5437 no_cache=0
5438 # Check whether --enable-streams or --disable-streams was given.
5439if test "${enable_streams+set}" = set; then
5440 enableval="$enable_streams"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_streams='wxUSE_STREAMS=yes'
5444 else
5445 ac_cv_use_streams='wxUSE_STREAMS=no'
5446 fi
5447
5448else
5449
5450 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5458
5459fi;
5460
5461 eval "$ac_cv_use_streams"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_STREAMS" = yes; then
5467 echo "$as_me:$LINENO: result: yes" >&5
5468echo "${ECHO_T}yes" >&6
5469 else
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
5472 fi
5473
5474
5475 enablestring=
5476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5477echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5478 no_cache=0
5479 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5480if test "${enable_std_iostreams+set}" = set; then
5481 enableval="$enable_std_iostreams"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5485 else
5486 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5499
5500fi;
5501
5502 eval "$ac_cv_use_std_iostreams"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_STD_IOSTREAM" = yes; then
5508 echo "$as_me:$LINENO: result: yes" >&5
5509echo "${ECHO_T}yes" >&6
5510 else
5511 echo "$as_me:$LINENO: result: no" >&5
5512echo "${ECHO_T}no" >&6
5513 fi
5514
5515
5516 enablestring=
5517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5518echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5519 no_cache=0
5520 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5521if test "${enable_stopwatch+set}" = set; then
5522 enableval="$enable_stopwatch"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5526 else
5527 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5528 fi
5529
5530else
5531
5532 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5540
5541fi;
5542
5543 eval "$ac_cv_use_stopwatch"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_STOPWATCH" = yes; then
5549 echo "$as_me:$LINENO: result: yes" >&5
5550echo "${ECHO_T}yes" >&6
5551 else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554 fi
5555
5556
5557 enablestring=
5558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5559echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5560 no_cache=0
5561 # Check whether --enable-system_options or --disable-system_options was given.
5562if test "${enable_system_options+set}" = set; then
5563 enableval="$enable_system_options"
5564
5565 if test "$enableval" = yes; then
5566 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5567 else
5568 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5569 fi
5570
5571else
5572
5573 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5574 if test "x$LINE" != x ; then
5575 eval "DEFAULT_$LINE"
5576 else
5577 no_cache=1
5578 fi
5579
5580 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5581
5582fi;
5583
5584 eval "$ac_cv_use_system_options"
5585 if test "$no_cache" != 1; then
5586 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5587 fi
5588
5589 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5590 echo "$as_me:$LINENO: result: yes" >&5
5591echo "${ECHO_T}yes" >&6
5592 else
5593 echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595 fi
5596
5597
5598 enablestring=
5599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5600echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5601 no_cache=0
5602 # Check whether --enable-textbuf or --disable-textbuf was given.
5603if test "${enable_textbuf+set}" = set; then
5604 enableval="$enable_textbuf"
5605
5606 if test "$enableval" = yes; then
5607 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5608 else
5609 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5610 fi
5611
5612else
5613
5614 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5622
5623fi;
5624
5625 eval "$ac_cv_use_textbuf"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_TEXTBUFFER" = yes; then
5631 echo "$as_me:$LINENO: result: yes" >&5
5632echo "${ECHO_T}yes" >&6
5633 else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636 fi
5637
5638
5639 enablestring=
5640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5641echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5642 no_cache=0
5643 # Check whether --enable-textfile or --disable-textfile was given.
5644if test "${enable_textfile+set}" = set; then
5645 enableval="$enable_textfile"
5646
5647 if test "$enableval" = yes; then
5648 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5649 else
5650 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5651 fi
5652
5653else
5654
5655 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5656 if test "x$LINE" != x ; then
5657 eval "DEFAULT_$LINE"
5658 else
5659 no_cache=1
5660 fi
5661
5662 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5663
5664fi;
5665
5666 eval "$ac_cv_use_textfile"
5667 if test "$no_cache" != 1; then
5668 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5669 fi
5670
5671 if test "$wxUSE_TEXTFILE" = yes; then
5672 echo "$as_me:$LINENO: result: yes" >&5
5673echo "${ECHO_T}yes" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677 fi
5678
5679
5680 enablestring=
5681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5682echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5683 no_cache=0
5684 # Check whether --enable-timer or --disable-timer was given.
5685if test "${enable_timer+set}" = set; then
5686 enableval="$enable_timer"
5687
5688 if test "$enableval" = yes; then
5689 ac_cv_use_timer='wxUSE_TIMER=yes'
5690 else
5691 ac_cv_use_timer='wxUSE_TIMER=no'
5692 fi
5693
5694else
5695
5696 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5704
5705fi;
5706
5707 eval "$ac_cv_use_timer"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_TIMER" = yes; then
5713 echo "$as_me:$LINENO: result: yes" >&5
5714echo "${ECHO_T}yes" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718 fi
5719
5720
5721 enablestring=
5722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5723echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5724 no_cache=0
5725 # Check whether --enable-unicode or --disable-unicode was given.
5726if test "${enable_unicode+set}" = set; then
5727 enableval="$enable_unicode"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5731 else
5732 ac_cv_use_unicode='wxUSE_UNICODE=no'
5733 fi
5734
5735else
5736
5737 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5745
5746fi;
5747
5748 eval "$ac_cv_use_unicode"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_UNICODE" = yes; then
5754 echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756 else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759 fi
5760
5761
5762 enablestring=
5763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5764echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5765 no_cache=0
5766 # Check whether --enable-sound or --disable-sound was given.
5767if test "${enable_sound+set}" = set; then
5768 enableval="$enable_sound"
5769
5770 if test "$enableval" = yes; then
5771 ac_cv_use_sound='wxUSE_SOUND=yes'
5772 else
5773 ac_cv_use_sound='wxUSE_SOUND=no'
5774 fi
5775
5776else
5777
5778 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 else
5782 no_cache=1
5783 fi
5784
5785 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5786
5787fi;
5788
5789 eval "$ac_cv_use_sound"
5790 if test "$no_cache" != 1; then
5791 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5792 fi
5793
5794 if test "$wxUSE_SOUND" = yes; then
5795 echo "$as_me:$LINENO: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
5797 else
5798 echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800 fi
5801
5802
5803 enablestring=
5804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5805echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5806 no_cache=0
5807 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5808if test "${enable_wxprintfv+set}" = set; then
5809 enableval="$enable_wxprintfv"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5813 else
5814 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5815 fi
5816
5817else
5818
5819 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5827
5828fi;
5829
5830 eval "$ac_cv_use_wxprintfv"
5831 if test "$no_cache" != 1; then
5832 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5833 fi
5834
5835 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5836 echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841 fi
5842
5843
5844 enablestring=
5845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5846echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5847 no_cache=0
5848 # Check whether --enable-zipstream or --disable-zipstream was given.
5849if test "${enable_zipstream+set}" = set; then
5850 enableval="$enable_zipstream"
5851
5852 if test "$enableval" = yes; then
5853 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5854 else
5855 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5856 fi
5857
5858else
5859
5860 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5861 if test "x$LINE" != x ; then
5862 eval "DEFAULT_$LINE"
5863 else
5864 no_cache=1
5865 fi
5866
5867 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5868
5869fi;
5870
5871 eval "$ac_cv_use_zipstream"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_ZIPSTREAM" = yes; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878echo "${ECHO_T}yes" >&6
5879 else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882 fi
5883
5884
a848cd7e
SC
5885
5886 enablestring=
5887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5888echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5889 no_cache=0
5890 # Check whether --enable-url or --disable-url was given.
5891if test "${enable_url+set}" = set; then
5892 enableval="$enable_url"
5893
5894 if test "$enableval" = yes; then
5895 ac_cv_use_url='wxUSE_URL=yes'
5896 else
5897 ac_cv_use_url='wxUSE_URL=no'
5898 fi
5899
5900else
5901
5902 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5903 if test "x$LINE" != x ; then
5904 eval "DEFAULT_$LINE"
5905 else
5906 no_cache=1
5907 fi
5908
5909 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5910
5911fi;
5912
5913 eval "$ac_cv_use_url"
5914 if test "$no_cache" != 1; then
5915 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5916 fi
5917
5918 if test "$wxUSE_URL" = yes; then
5919 echo "$as_me:$LINENO: result: yes" >&5
5920echo "${ECHO_T}yes" >&6
5921 else
5922 echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6
5924 fi
5925
5926
5927 enablestring=
5928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5929echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5930 no_cache=0
5931 # Check whether --enable-protocol or --disable-protocol was given.
5932if test "${enable_protocol+set}" = set; then
5933 enableval="$enable_protocol"
5934
5935 if test "$enableval" = yes; then
5936 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5937 else
5938 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5939 fi
5940
5941else
5942
5943 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5944 if test "x$LINE" != x ; then
5945 eval "DEFAULT_$LINE"
5946 else
5947 no_cache=1
5948 fi
5949
5950 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5951
5952fi;
5953
5954 eval "$ac_cv_use_protocol"
5955 if test "$no_cache" != 1; then
5956 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5957 fi
5958
5959 if test "$wxUSE_PROTOCOL" = yes; then
5960 echo "$as_me:$LINENO: result: yes" >&5
5961echo "${ECHO_T}yes" >&6
5962 else
5963 echo "$as_me:$LINENO: result: no" >&5
5964echo "${ECHO_T}no" >&6
5965 fi
5966
5967
5968 enablestring=
5969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5970echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5971 no_cache=0
5972 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5973if test "${enable_protocol_http+set}" = set; then
5974 enableval="$enable_protocol_http"
5975
5976 if test "$enableval" = yes; then
5977 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5978 else
5979 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5980 fi
5981
5982else
5983
5984 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5992
5993fi;
5994
5995 eval "$ac_cv_use_protocol_http"
5996 if test "$no_cache" != 1; then
5997 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5998 fi
5999
6000 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6001 echo "$as_me:$LINENO: result: yes" >&5
6002echo "${ECHO_T}yes" >&6
6003 else
6004 echo "$as_me:$LINENO: result: no" >&5
6005echo "${ECHO_T}no" >&6
6006 fi
6007
6008
6009 enablestring=
6010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6011echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6012 no_cache=0
6013 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6014if test "${enable_protocol_ftp+set}" = set; then
6015 enableval="$enable_protocol_ftp"
6016
6017 if test "$enableval" = yes; then
6018 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6019 else
6020 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6021 fi
6022
6023else
6024
6025 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6026 if test "x$LINE" != x ; then
6027 eval "DEFAULT_$LINE"
6028 else
6029 no_cache=1
6030 fi
6031
6032 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6033
6034fi;
6035
6036 eval "$ac_cv_use_protocol_ftp"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6042 echo "$as_me:$LINENO: result: yes" >&5
6043echo "${ECHO_T}yes" >&6
6044 else
6045 echo "$as_me:$LINENO: result: no" >&5
6046echo "${ECHO_T}no" >&6
6047 fi
6048
6049
6050 enablestring=
6051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6052echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6053 no_cache=0
6054 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6055if test "${enable_protocol_file+set}" = set; then
6056 enableval="$enable_protocol_file"
6057
6058 if test "$enableval" = yes; then
6059 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6060 else
6061 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6062 fi
6063
6064else
6065
6066 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6067 if test "x$LINE" != x ; then
6068 eval "DEFAULT_$LINE"
6069 else
6070 no_cache=1
6071 fi
6072
6073 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6074
6075fi;
6076
6077 eval "$ac_cv_use_protocol_file"
6078 if test "$no_cache" != 1; then
6079 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6080 fi
6081
6082 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6083 echo "$as_me:$LINENO: result: yes" >&5
6084echo "${ECHO_T}yes" >&6
6085 else
6086 echo "$as_me:$LINENO: result: no" >&5
6087echo "${ECHO_T}no" >&6
6088 fi
6089
6090
6091
6092
6093
6094 enablestring=
6095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6096echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6097 no_cache=0
6098 # Check whether --enable-threads or --disable-threads was given.
6099if test "${enable_threads+set}" = set; then
6100 enableval="$enable_threads"
6101
6102 if test "$enableval" = yes; then
6103 ac_cv_use_threads='wxUSE_THREADS=yes'
6104 else
6105 ac_cv_use_threads='wxUSE_THREADS=no'
6106 fi
6107
6108else
6109
6110 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6111 if test "x$LINE" != x ; then
6112 eval "DEFAULT_$LINE"
6113 else
6114 no_cache=1
6115 fi
6116
6117 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6118
6119fi;
6120
6121 eval "$ac_cv_use_threads"
6122 if test "$no_cache" != 1; then
6123 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6124 fi
6125
6126 if test "$wxUSE_THREADS" = yes; then
6127 echo "$as_me:$LINENO: result: yes" >&5
6128echo "${ECHO_T}yes" >&6
6129 else
6130 echo "$as_me:$LINENO: result: no" >&5
6131echo "${ECHO_T}no" >&6
6132 fi
6133
6134
6135if test "$wxUSE_GUI" = "yes"; then
6136
6137
6138
6139 enablestring=
6140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6141echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6142 no_cache=0
6143 # Check whether --enable-docview or --disable-docview was given.
6144if test "${enable_docview+set}" = set; then
6145 enableval="$enable_docview"
6146
6147 if test "$enableval" = yes; then
6148 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6149 else
6150 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6151 fi
6152
6153else
6154
6155 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6163
6164fi;
6165
6166 eval "$ac_cv_use_docview"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6172 echo "$as_me:$LINENO: result: yes" >&5
6173echo "${ECHO_T}yes" >&6
6174 else
6175 echo "$as_me:$LINENO: result: no" >&5
6176echo "${ECHO_T}no" >&6
6177 fi
6178
6179
6180 enablestring=
6181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6182echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6183 no_cache=0
6184 # Check whether --enable-help or --disable-help was given.
6185if test "${enable_help+set}" = set; then
6186 enableval="$enable_help"
6187
6188 if test "$enableval" = yes; then
6189 ac_cv_use_help='wxUSE_HELP=yes'
6190 else
6191 ac_cv_use_help='wxUSE_HELP=no'
6192 fi
6193
6194else
6195
6196 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6197 if test "x$LINE" != x ; then
6198 eval "DEFAULT_$LINE"
6199 else
6200 no_cache=1
6201 fi
6202
6203 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6204
6205fi;
6206
6207 eval "$ac_cv_use_help"
6208 if test "$no_cache" != 1; then
6209 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6210 fi
6211
6212 if test "$wxUSE_HELP" = yes; then
6213 echo "$as_me:$LINENO: result: yes" >&5
6214echo "${ECHO_T}yes" >&6
6215 else
6216 echo "$as_me:$LINENO: result: no" >&5
6217echo "${ECHO_T}no" >&6
6218 fi
6219
6220
6221 enablestring=
6222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6223echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6224 no_cache=0
6225 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6226if test "${enable_mshtmlhelp+set}" = set; then
6227 enableval="$enable_mshtmlhelp"
6228
6229 if test "$enableval" = yes; then
6230 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6231 else
6232 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6233 fi
6234
6235else
6236
6237 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6238 if test "x$LINE" != x ; then
6239 eval "DEFAULT_$LINE"
6240 else
6241 no_cache=1
6242 fi
6243
6244 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6245
6246fi;
6247
6248 eval "$ac_cv_use_mshtmlhelp"
6249 if test "$no_cache" != 1; then
6250 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6251 fi
6252
6253 if test "$wxUSE_MS_HTML_HELP" = yes; then
6254 echo "$as_me:$LINENO: result: yes" >&5
6255echo "${ECHO_T}yes" >&6
6256 else
6257 echo "$as_me:$LINENO: result: no" >&5
6258echo "${ECHO_T}no" >&6
6259 fi
6260
6261
6262 enablestring=
6263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6264echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6265 no_cache=0
6266 # Check whether --enable-html or --disable-html was given.
6267if test "${enable_html+set}" = set; then
6268 enableval="$enable_html"
6269
6270 if test "$enableval" = yes; then
6271 ac_cv_use_html='wxUSE_HTML=yes'
6272 else
6273 ac_cv_use_html='wxUSE_HTML=no'
6274 fi
6275
6276else
6277
6278 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6279 if test "x$LINE" != x ; then
6280 eval "DEFAULT_$LINE"
6281 else
6282 no_cache=1
6283 fi
6284
6285 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6286
6287fi;
6288
6289 eval "$ac_cv_use_html"
6290 if test "$no_cache" != 1; then
6291 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6292 fi
6293
6294 if test "$wxUSE_HTML" = yes; then
6295 echo "$as_me:$LINENO: result: yes" >&5
6296echo "${ECHO_T}yes" >&6
6297 else
6298 echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6
6300 fi
6301
6302
6303 enablestring=
6304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6305echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6306 no_cache=0
6307 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6308if test "${enable_htmlhelp+set}" = set; then
6309 enableval="$enable_htmlhelp"
6310
6311 if test "$enableval" = yes; then
6312 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6313 else
6314 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6315 fi
6316
6317else
6318
6319 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6327
6328fi;
6329
6330 eval "$ac_cv_use_htmlhelp"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_WXHTML_HELP" = yes; then
6336 echo "$as_me:$LINENO: result: yes" >&5
6337echo "${ECHO_T}yes" >&6
6338 else
6339 echo "$as_me:$LINENO: result: no" >&5
6340echo "${ECHO_T}no" >&6
6341 fi
6342
6343
9a8f0513
VS
6344 enablestring=
6345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6346echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6347 no_cache=0
6348 # Check whether --enable-xrc or --disable-xrc was given.
6349if test "${enable_xrc+set}" = set; then
6350 enableval="$enable_xrc"
6351
6352 if test "$enableval" = yes; then
6353 ac_cv_use_xrc='wxUSE_XRC=yes'
6354 else
6355 ac_cv_use_xrc='wxUSE_XRC=no'
6356 fi
6357
6358else
6359
6360 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6361 if test "x$LINE" != x ; then
6362 eval "DEFAULT_$LINE"
6363 else
6364 no_cache=1
6365 fi
6366
6367 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6368
6369fi;
6370
6371 eval "$ac_cv_use_xrc"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_XRC" = yes; then
6377 echo "$as_me:$LINENO: result: yes" >&5
6378echo "${ECHO_T}yes" >&6
6379 else
6380 echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
6382 fi
6383
6384
a848cd7e
SC
6385 enablestring=
6386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6387echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6388 no_cache=0
6389 # Check whether --enable-constraints or --disable-constraints was given.
6390if test "${enable_constraints+set}" = set; then
6391 enableval="$enable_constraints"
6392
6393 if test "$enableval" = yes; then
6394 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6395 else
6396 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6397 fi
6398
6399else
6400
6401 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6402 if test "x$LINE" != x ; then
6403 eval "DEFAULT_$LINE"
6404 else
6405 no_cache=1
6406 fi
6407
6408 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6409
6410fi;
6411
6412 eval "$ac_cv_use_constraints"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_CONSTRAINTS" = yes; then
6418 echo "$as_me:$LINENO: result: yes" >&5
6419echo "${ECHO_T}yes" >&6
6420 else
6421 echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6
6423 fi
6424
6425
6426 enablestring=
6427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6428echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6429 no_cache=0
6430 # Check whether --enable-printarch or --disable-printarch was given.
6431if test "${enable_printarch+set}" = set; then
6432 enableval="$enable_printarch"
6433
6434 if test "$enableval" = yes; then
6435 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6436 else
6437 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6438 fi
6439
6440else
6441
6442 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6443 if test "x$LINE" != x ; then
6444 eval "DEFAULT_$LINE"
6445 else
6446 no_cache=1
6447 fi
6448
6449 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6450
6451fi;
6452
6453 eval "$ac_cv_use_printarch"
6454 if test "$no_cache" != 1; then
6455 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6456 fi
6457
6458 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6459 echo "$as_me:$LINENO: result: yes" >&5
6460echo "${ECHO_T}yes" >&6
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
6464 fi
6465
6466
6467 enablestring=
6468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6469echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6470 no_cache=0
6471 # Check whether --enable-mdi or --disable-mdi was given.
6472if test "${enable_mdi+set}" = set; then
6473 enableval="$enable_mdi"
6474
6475 if test "$enableval" = yes; then
8a7b1113 6476 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6477 else
8a7b1113 6478 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6479 fi
6480
6481else
6482
8a7b1113 6483 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
8a7b1113 6490 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6491
6492fi;
6493
6494 eval "$ac_cv_use_mdi"
6495 if test "$no_cache" != 1; then
6496 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6497 fi
6498
8a7b1113
VZ
6499 if test "$wxUSE_MDI" = yes; then
6500 echo "$as_me:$LINENO: result: yes" >&5
6501echo "${ECHO_T}yes" >&6
6502 else
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
6505 fi
6506
6507
6508 enablestring=
6509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6510echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6511 no_cache=0
6512 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6513if test "${enable_mdidoc+set}" = set; then
6514 enableval="$enable_mdidoc"
6515
6516 if test "$enableval" = yes; then
6517 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6518 else
6519 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6520 fi
6521
6522else
6523
6524 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6525 if test "x$LINE" != x ; then
6526 eval "DEFAULT_$LINE"
6527 else
6528 no_cache=1
6529 fi
6530
6531 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6532
6533fi;
6534
6535 eval "$ac_cv_use_mdidoc"
6536 if test "$no_cache" != 1; then
6537 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6538 fi
6539
a848cd7e
SC
6540 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6541 echo "$as_me:$LINENO: result: yes" >&5
6542echo "${ECHO_T}yes" >&6
6543 else
6544 echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6
6546 fi
6547
6548
6549 enablestring=
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6552 no_cache=0
6553 # Check whether --enable-loggui or --disable-loggui was given.
6554if test "${enable_loggui+set}" = set; then
6555 enableval="$enable_loggui"
6556
6557 if test "$enableval" = yes; then
6558 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6559 else
6560 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6561 fi
6562
6563else
6564
6565 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
6572 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6573
6574fi;
6575
6576 eval "$ac_cv_use_loggui"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_LOGGUI" = yes; then
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
6584 else
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
6587 fi
6588
6589
6590 enablestring=
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6593 no_cache=0
6594 # Check whether --enable-logwin or --disable-logwin was given.
6595if test "${enable_logwin+set}" = set; then
6596 enableval="$enable_logwin"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6600 else
6601 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6614
6615fi;
6616
6617 eval "$ac_cv_use_logwin"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_LOGWINDOW" = yes; then
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628 fi
6629
6630
6631 enablestring=
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6633echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6634 no_cache=0
6635 # Check whether --enable-logdialog or --disable-logdialog was given.
6636if test "${enable_logdialog+set}" = set; then
6637 enableval="$enable_logdialog"
6638
6639 if test "$enableval" = yes; then
6640 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6641 else
6642 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6643 fi
6644
6645else
6646
6647 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6655
6656fi;
6657
6658 eval "$ac_cv_use_logdialog"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_LOGDIALOG" = yes; then
6664 echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6
6666 else
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
6669 fi
6670
6671
646b6ec1
VS
6672 enablestring=
6673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6674echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6675 no_cache=0
6676 # Check whether --enable-webkit or --disable-webkit was given.
6677if test "${enable_webkit+set}" = set; then
6678 enableval="$enable_webkit"
6679
6680 if test "$enableval" = yes; then
6681 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6682 else
6683 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6684 fi
6685
6686else
6687
6688 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6689 if test "x$LINE" != x ; then
6690 eval "DEFAULT_$LINE"
6691 else
6692 no_cache=1
6693 fi
6694
6695 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6696
6697fi;
6698
6699 eval "$ac_cv_use_webkit"
6700 if test "$no_cache" != 1; then
6701 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6702 fi
6703
6704 if test "$wxUSE_WEBKIT" = yes; then
6705 echo "$as_me:$LINENO: result: yes" >&5
6706echo "${ECHO_T}yes" >&6
6707 else
6708 echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6
6710 fi
6711
6712
a848cd7e
SC
6713
6714 enablestring=
6715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6716echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6717 no_cache=0
6718 # Check whether --enable-postscript or --disable-postscript was given.
6719if test "${enable_postscript+set}" = set; then
6720 enableval="$enable_postscript"
6721
6722 if test "$enableval" = yes; then
6723 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6724 else
6725 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6726 fi
6727
6728else
6729
6730 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6731 if test "x$LINE" != x ; then
6732 eval "DEFAULT_$LINE"
6733 else
6734 no_cache=1
6735 fi
6736
6737 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6738
6739fi;
6740
6741 eval "$ac_cv_use_postscript"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_POSTSCRIPT" = yes; then
6747 echo "$as_me:$LINENO: result: yes" >&5
6748echo "${ECHO_T}yes" >&6
6749 else
6750 echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6
6752 fi
6753
6754
6755
6756
6757
6758 enablestring=
6759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6760echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6761 no_cache=0
6762 # Check whether --enable-prologio or --disable-prologio was given.
6763if test "${enable_prologio+set}" = set; then
6764 enableval="$enable_prologio"
6765
6766 if test "$enableval" = yes; then
6767 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6768 else
6769 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6770 fi
6771
6772else
6773
6774 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6775 if test "x$LINE" != x ; then
6776 eval "DEFAULT_$LINE"
6777 else
6778 no_cache=1
6779 fi
6780
6781 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6782
6783fi;
6784
6785 eval "$ac_cv_use_prologio"
6786 if test "$no_cache" != 1; then
6787 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6788 fi
6789
6790 if test "$wxUSE_PROLOGIO" = yes; then
6791 echo "$as_me:$LINENO: result: yes" >&5
6792echo "${ECHO_T}yes" >&6
6793 else
6794 echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6
6796 fi
6797
6798
6799 enablestring=
6800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6801echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6802 no_cache=0
6803 # Check whether --enable-resources or --disable-resources was given.
6804if test "${enable_resources+set}" = set; then
6805 enableval="$enable_resources"
6806
6807 if test "$enableval" = yes; then
6808 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6809 else
6810 ac_cv_use_resources='wxUSE_RESOURCES=no'
6811 fi
6812
6813else
6814
6815 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6816 if test "x$LINE" != x ; then
6817 eval "DEFAULT_$LINE"
6818 else
6819 no_cache=1
6820 fi
6821
6822 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6823
6824fi;
6825
6826 eval "$ac_cv_use_resources"
6827 if test "$no_cache" != 1; then
6828 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6829 fi
6830
6831 if test "$wxUSE_RESOURCES" = yes; then
6832 echo "$as_me:$LINENO: result: yes" >&5
6833echo "${ECHO_T}yes" >&6
6834 else
6835 echo "$as_me:$LINENO: result: no" >&5
6836echo "${ECHO_T}no" >&6
6837 fi
6838
6839
6840
6841
6842 enablestring=
6843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6844echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6845 no_cache=0
6846 # Check whether --enable-clipboard or --disable-clipboard was given.
6847if test "${enable_clipboard+set}" = set; then
6848 enableval="$enable_clipboard"
6849
6850 if test "$enableval" = yes; then
6851 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6852 else
6853 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6854 fi
6855
6856else
6857
6858 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6859 if test "x$LINE" != x ; then
6860 eval "DEFAULT_$LINE"
6861 else
6862 no_cache=1
6863 fi
6864
6865 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6866
6867fi;
6868
6869 eval "$ac_cv_use_clipboard"
6870 if test "$no_cache" != 1; then
6871 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6872 fi
6873
6874 if test "$wxUSE_CLIPBOARD" = yes; then
6875 echo "$as_me:$LINENO: result: yes" >&5
6876echo "${ECHO_T}yes" >&6
6877 else
6878 echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6
6880 fi
6881
6882
6883 enablestring=
6884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6885echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6886 no_cache=0
6887 # Check whether --enable-dnd or --disable-dnd was given.
6888if test "${enable_dnd+set}" = set; then
6889 enableval="$enable_dnd"
6890
6891 if test "$enableval" = yes; then
6892 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6893 else
6894 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6895 fi
6896
6897else
6898
6899 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6900 if test "x$LINE" != x ; then
6901 eval "DEFAULT_$LINE"
6902 else
6903 no_cache=1
6904 fi
6905
6906 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6907
6908fi;
6909
6910 eval "$ac_cv_use_dnd"
6911 if test "$no_cache" != 1; then
6912 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6913 fi
6914
6915 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6916 echo "$as_me:$LINENO: result: yes" >&5
6917echo "${ECHO_T}yes" >&6
6918 else
6919 echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6
6921 fi
6922
6923
6924 enablestring=
6925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6926echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6927 no_cache=0
6928 # Check whether --enable-metafile or --disable-metafile was given.
6929if test "${enable_metafile+set}" = set; then
6930 enableval="$enable_metafile"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6934 else
6935 ac_cv_use_metafile='wxUSE_METAFILE=no'
6936 fi
6937
6938else
6939
6940 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6948
6949fi;
6950
6951 eval "$ac_cv_use_metafile"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_METAFILE" = yes; then
6957 echo "$as_me:$LINENO: result: yes" >&5
6958echo "${ECHO_T}yes" >&6
6959 else
6960 echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6
6962 fi
6963
6964
6965
6966
6967
6968 enablestring=
6969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6970echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6971 no_cache=0
6972 # Check whether --enable-controls or --disable-controls was given.
6973if test "${enable_controls+set}" = set; then
6974 enableval="$enable_controls"
6975
6976 if test "$enableval" = yes; then
6977 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6978 else
6979 ac_cv_use_controls='wxUSE_CONTROLS=no'
6980 fi
6981
6982else
6983
6984 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6992
6993fi;
6994
6995 eval "$ac_cv_use_controls"
6996 if test "$no_cache" != 1; then
6997 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6998 fi
6999
7000 if test "$wxUSE_CONTROLS" = yes; then
7001 echo "$as_me:$LINENO: result: yes" >&5
7002echo "${ECHO_T}yes" >&6
7003 else
7004 echo "$as_me:$LINENO: result: no" >&5
7005echo "${ECHO_T}no" >&6
7006 fi
7007
7008
7009if test "$wxUSE_CONTROLS" = "yes"; then
7010 DEFAULT_wxUSE_ACCEL=yes
7011 DEFAULT_wxUSE_BMPBUTTON=yes
7012 DEFAULT_wxUSE_BUTTON=yes
7013 DEFAULT_wxUSE_CALCTRL=no
7014 DEFAULT_wxUSE_CARET=yes
7015 DEFAULT_wxUSE_COMBOBOX=yes
7016 DEFAULT_wxUSE_CHECKBOX=yes
7017 DEFAULT_wxUSE_CHECKLISTBOX=yes
7018 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7019 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
7020 DEFAULT_wxUSE_GAUGE=yes
7021 DEFAULT_wxUSE_GRID=yes
7022 DEFAULT_wxUSE_IMAGLIST=yes
7023 DEFAULT_wxUSE_LISTBOOK=yes
7024 DEFAULT_wxUSE_LISTBOX=yes
7025 DEFAULT_wxUSE_LISTCTRL=yes
7026 DEFAULT_wxUSE_NOTEBOOK=yes
7027 DEFAULT_wxUSE_RADIOBOX=yes
7028 DEFAULT_wxUSE_RADIOBTN=yes
7029 DEFAULT_wxUSE_SASH=yes
7030 DEFAULT_wxUSE_SCROLLBAR=yes
7031 DEFAULT_wxUSE_SLIDER=yes
7032 DEFAULT_wxUSE_SPINBTN=yes
7033 DEFAULT_wxUSE_SPINCTRL=yes
7034 DEFAULT_wxUSE_SPLITTER=yes
7035 DEFAULT_wxUSE_STATBMP=yes
7036 DEFAULT_wxUSE_STATBOX=yes
7037 DEFAULT_wxUSE_STATLINE=yes
7038 DEFAULT_wxUSE_STATUSBAR=yes
7039 DEFAULT_wxUSE_TAB_DIALOG=yes
7040 DEFAULT_wxUSE_TOGGLEBTN=yes
7041 DEFAULT_wxUSE_TOOLBAR=yes
7042 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7043 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7044 DEFAULT_wxUSE_TOOLTIPS=yes
7045 DEFAULT_wxUSE_TREECTRL=yes
7046 DEFAULT_wxUSE_POPUPWIN=yes
7047 DEFAULT_wxUSE_TIPWINDOW=yes
7048elif test "$wxUSE_CONTROLS" = "no"; then
7049 DEFAULT_wxUSE_ACCEL=no
7050 DEFAULT_wxUSE_BMPBUTTON=no
7051 DEFAULT_wxUSE_BUTTON=no
7052 DEFAULT_wxUSE_CALCTRL=no
7053 DEFAULT_wxUSE_CARET=no
7054 DEFAULT_wxUSE_COMBOBOX=no
7055 DEFAULT_wxUSE_CHECKBOX=no
7056 DEFAULT_wxUSE_CHECKLISTBOX=no
7057 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7058 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7059 DEFAULT_wxUSE_GAUGE=no
7060 DEFAULT_wxUSE_GRID=no
7061 DEFAULT_wxUSE_IMAGLIST=no
7062 DEFAULT_wxUSE_LISTBOOK=no
7063 DEFAULT_wxUSE_LISTBOX=no
7064 DEFAULT_wxUSE_LISTCTRL=no
7065 DEFAULT_wxUSE_NOTEBOOK=no
7066 DEFAULT_wxUSE_RADIOBOX=no
7067 DEFAULT_wxUSE_RADIOBTN=no
7068 DEFAULT_wxUSE_SASH=no
7069 DEFAULT_wxUSE_SCROLLBAR=no
7070 DEFAULT_wxUSE_SLIDER=no
7071 DEFAULT_wxUSE_SPINBTN=no
7072 DEFAULT_wxUSE_SPINCTRL=no
7073 DEFAULT_wxUSE_SPLITTER=no
7074 DEFAULT_wxUSE_STATBMP=no
7075 DEFAULT_wxUSE_STATBOX=no
7076 DEFAULT_wxUSE_STATLINE=no
7077 DEFAULT_wxUSE_STATUSBAR=no
7078 DEFAULT_wxUSE_TAB_DIALOG=no
7079 DEFAULT_wxUSE_TOGGLEBTN=no
7080 DEFAULT_wxUSE_TOOLBAR=no
7081 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7082 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7083 DEFAULT_wxUSE_TOOLTIPS=no
7084 DEFAULT_wxUSE_TREECTRL=no
7085 DEFAULT_wxUSE_POPUPWIN=no
7086 DEFAULT_wxUSE_TIPWINDOW=no
7087fi
7088
a848cd7e
SC
7089
7090 enablestring=
7091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7092echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7093 no_cache=0
7094 # Check whether --enable-accel or --disable-accel was given.
7095if test "${enable_accel+set}" = set; then
7096 enableval="$enable_accel"
7097
7098 if test "$enableval" = yes; then
7099 ac_cv_use_accel='wxUSE_ACCEL=yes'
7100 else
7101 ac_cv_use_accel='wxUSE_ACCEL=no'
7102 fi
7103
7104else
7105
7106 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7114
7115fi;
7116
7117 eval "$ac_cv_use_accel"
7118 if test "$no_cache" != 1; then
7119 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7120 fi
7121
7122 if test "$wxUSE_ACCEL" = yes; then
7123 echo "$as_me:$LINENO: result: yes" >&5
7124echo "${ECHO_T}yes" >&6
7125 else
7126 echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6
7128 fi
7129
7130
7131 enablestring=
7132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7133echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7134 no_cache=0
7135 # Check whether --enable-button or --disable-button was given.
7136if test "${enable_button+set}" = set; then
7137 enableval="$enable_button"
7138
7139 if test "$enableval" = yes; then
7140 ac_cv_use_button='wxUSE_BUTTON=yes'
7141 else
7142 ac_cv_use_button='wxUSE_BUTTON=no'
7143 fi
7144
7145else
7146
7147 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7148 if test "x$LINE" != x ; then
7149 eval "DEFAULT_$LINE"
7150 else
7151 no_cache=1
7152 fi
7153
7154 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7155
7156fi;
7157
7158 eval "$ac_cv_use_button"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_BUTTON" = yes; then
7164 echo "$as_me:$LINENO: result: yes" >&5
7165echo "${ECHO_T}yes" >&6
7166 else
7167 echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169 fi
7170
7171
7172 enablestring=
7173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7174echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7175 no_cache=0
7176 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7177if test "${enable_bmpbutton+set}" = set; then
7178 enableval="$enable_bmpbutton"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7182 else
7183 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7196
7197fi;
7198
7199 eval "$ac_cv_use_bmpbutton"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_BMPBUTTON" = yes; then
7205 echo "$as_me:$LINENO: result: yes" >&5
7206echo "${ECHO_T}yes" >&6
7207 else
7208 echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6
7210 fi
7211
7212
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7215echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-calendar or --disable-calendar was given.
7218if test "${enable_calendar+set}" = set; then
7219 enableval="$enable_calendar"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7223 else
7224 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7237
7238fi;
7239
7240 eval "$ac_cv_use_calendar"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_CALCTRL" = yes; then
7246 echo "$as_me:$LINENO: result: yes" >&5
7247echo "${ECHO_T}yes" >&6
7248 else
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
7251 fi
7252
7253
7254 enablestring=
7255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7256echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7257 no_cache=0
7258 # Check whether --enable-caret or --disable-caret was given.
7259if test "${enable_caret+set}" = set; then
7260 enableval="$enable_caret"
7261
7262 if test "$enableval" = yes; then
7263 ac_cv_use_caret='wxUSE_CARET=yes'
7264 else
7265 ac_cv_use_caret='wxUSE_CARET=no'
7266 fi
7267
7268else
7269
7270 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7271 if test "x$LINE" != x ; then
7272 eval "DEFAULT_$LINE"
7273 else
7274 no_cache=1
7275 fi
7276
7277 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7278
7279fi;
7280
7281 eval "$ac_cv_use_caret"
7282 if test "$no_cache" != 1; then
7283 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7284 fi
7285
7286 if test "$wxUSE_CARET" = yes; then
7287 echo "$as_me:$LINENO: result: yes" >&5
7288echo "${ECHO_T}yes" >&6
7289 else
7290 echo "$as_me:$LINENO: result: no" >&5
7291echo "${ECHO_T}no" >&6
7292 fi
7293
7294
7295 enablestring=
7296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7297echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7298 no_cache=0
7299 # Check whether --enable-checkbox or --disable-checkbox was given.
7300if test "${enable_checkbox+set}" = set; then
7301 enableval="$enable_checkbox"
7302
7303 if test "$enableval" = yes; then
7304 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7305 else
7306 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7307 fi
7308
7309else
7310
7311 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7312 if test "x$LINE" != x ; then
7313 eval "DEFAULT_$LINE"
7314 else
7315 no_cache=1
7316 fi
7317
7318 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7319
7320fi;
7321
7322 eval "$ac_cv_use_checkbox"
7323 if test "$no_cache" != 1; then
7324 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7325 fi
7326
7327 if test "$wxUSE_CHECKBOX" = yes; then
7328 echo "$as_me:$LINENO: result: yes" >&5
7329echo "${ECHO_T}yes" >&6
7330 else
7331 echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6
7333 fi
7334
7335
7336 enablestring=
7337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7338echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7339 no_cache=0
7340 # Check whether --enable-checklst or --disable-checklst was given.
7341if test "${enable_checklst+set}" = set; then
7342 enableval="$enable_checklst"
7343
7344 if test "$enableval" = yes; then
7345 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7346 else
7347 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7348 fi
7349
7350else
7351
7352 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7353 if test "x$LINE" != x ; then
7354 eval "DEFAULT_$LINE"
7355 else
7356 no_cache=1
7357 fi
7358
7359 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7360
7361fi;
7362
7363 eval "$ac_cv_use_checklst"
7364 if test "$no_cache" != 1; then
7365 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7366 fi
7367
7368 if test "$wxUSE_CHECKLST" = yes; then
7369 echo "$as_me:$LINENO: result: yes" >&5
7370echo "${ECHO_T}yes" >&6
7371 else
7372 echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6
7374 fi
7375
7376
7377 enablestring=
7378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7379echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7380 no_cache=0
7381 # Check whether --enable-choice or --disable-choice was given.
7382if test "${enable_choice+set}" = set; then
7383 enableval="$enable_choice"
7384
7385 if test "$enableval" = yes; then
7386 ac_cv_use_choice='wxUSE_CHOICE=yes'
7387 else
7388 ac_cv_use_choice='wxUSE_CHOICE=no'
7389 fi
7390
7391else
7392
7393 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7394 if test "x$LINE" != x ; then
7395 eval "DEFAULT_$LINE"
7396 else
7397 no_cache=1
7398 fi
7399
7400 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7401
7402fi;
7403
7404 eval "$ac_cv_use_choice"
7405 if test "$no_cache" != 1; then
7406 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7407 fi
7408
7409 if test "$wxUSE_CHOICE" = yes; then
7410 echo "$as_me:$LINENO: result: yes" >&5
7411echo "${ECHO_T}yes" >&6
7412 else
7413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
7415 fi
7416
7417
92bbdbcd
WS
7418 enablestring=
7419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7420echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7421 no_cache=0
7422 # Check whether --enable-choicebook or --disable-choicebook was given.
7423if test "${enable_choicebook+set}" = set; then
7424 enableval="$enable_choicebook"
7425
7426 if test "$enableval" = yes; then
7427 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7428 else
7429 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7430 fi
7431
7432else
7433
7434 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7435 if test "x$LINE" != x ; then
7436 eval "DEFAULT_$LINE"
7437 else
7438 no_cache=1
7439 fi
7440
7441 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7442
7443fi;
7444
7445 eval "$ac_cv_use_choicebook"
7446 if test "$no_cache" != 1; then
7447 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7448 fi
7449
7450 if test "$wxUSE_CHOICEBOOK" = yes; then
7451 echo "$as_me:$LINENO: result: yes" >&5
7452echo "${ECHO_T}yes" >&6
7453 else
7454 echo "$as_me:$LINENO: result: no" >&5
7455echo "${ECHO_T}no" >&6
7456 fi
7457
7458
a848cd7e
SC
7459 enablestring=
7460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7461echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7462 no_cache=0
7463 # Check whether --enable-combobox or --disable-combobox was given.
7464if test "${enable_combobox+set}" = set; then
7465 enableval="$enable_combobox"
7466
7467 if test "$enableval" = yes; then
7468 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7469 else
7470 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7471 fi
7472
7473else
7474
7475 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7476 if test "x$LINE" != x ; then
7477 eval "DEFAULT_$LINE"
7478 else
7479 no_cache=1
7480 fi
7481
7482 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7483
7484fi;
7485
7486 eval "$ac_cv_use_combobox"
7487 if test "$no_cache" != 1; then
7488 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7489 fi
7490
7491 if test "$wxUSE_COMBOBOX" = yes; then
7492 echo "$as_me:$LINENO: result: yes" >&5
7493echo "${ECHO_T}yes" >&6
7494 else
7495 echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6
7497 fi
7498
7499
7500 enablestring=
7501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7502echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7503 no_cache=0
7504 # Check whether --enable-display or --disable-display was given.
7505if test "${enable_display+set}" = set; then
7506 enableval="$enable_display"
7507
7508 if test "$enableval" = yes; then
7509 ac_cv_use_display='wxUSE_DISPLAY=yes'
7510 else
7511 ac_cv_use_display='wxUSE_DISPLAY=no'
7512 fi
7513
7514else
7515
7516 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7517 if test "x$LINE" != x ; then
7518 eval "DEFAULT_$LINE"
7519 else
7520 no_cache=1
7521 fi
7522
7523 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7524
7525fi;
7526
7527 eval "$ac_cv_use_display"
7528 if test "$no_cache" != 1; then
7529 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7530 fi
7531
7532 if test "$wxUSE_DISPLAY" = yes; then
7533 echo "$as_me:$LINENO: result: yes" >&5
7534echo "${ECHO_T}yes" >&6
7535 else
7536 echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6
7538 fi
7539
7540
7541 enablestring=
7542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7543echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7544 no_cache=0
7545 # Check whether --enable-gauge or --disable-gauge was given.
7546if test "${enable_gauge+set}" = set; then
7547 enableval="$enable_gauge"
7548
7549 if test "$enableval" = yes; then
7550 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7551 else
7552 ac_cv_use_gauge='wxUSE_GAUGE=no'
7553 fi
7554
7555else
7556
7557 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7558 if test "x$LINE" != x ; then
7559 eval "DEFAULT_$LINE"
7560 else
7561 no_cache=1
7562 fi
7563
7564 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7565
7566fi;
7567
7568 eval "$ac_cv_use_gauge"
7569 if test "$no_cache" != 1; then
7570 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7571 fi
7572
7573 if test "$wxUSE_GAUGE" = yes; then
7574 echo "$as_me:$LINENO: result: yes" >&5
7575echo "${ECHO_T}yes" >&6
7576 else
7577 echo "$as_me:$LINENO: result: no" >&5
7578echo "${ECHO_T}no" >&6
7579 fi
7580
7581
7582 enablestring=
7583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7584echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7585 no_cache=0
7586 # Check whether --enable-grid or --disable-grid was given.
7587if test "${enable_grid+set}" = set; then
7588 enableval="$enable_grid"
7589
7590 if test "$enableval" = yes; then
7591 ac_cv_use_grid='wxUSE_GRID=yes'
7592 else
7593 ac_cv_use_grid='wxUSE_GRID=no'
7594 fi
7595
7596else
7597
7598 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7599 if test "x$LINE" != x ; then
7600 eval "DEFAULT_$LINE"
7601 else
7602 no_cache=1
7603 fi
7604
7605 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7606
7607fi;
7608
7609 eval "$ac_cv_use_grid"
7610 if test "$no_cache" != 1; then
7611 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7612 fi
7613
7614 if test "$wxUSE_GRID" = yes; then
7615 echo "$as_me:$LINENO: result: yes" >&5
7616echo "${ECHO_T}yes" >&6
7617 else
7618 echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6
7620 fi
7621
7622
7623 enablestring=
7624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7625echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7626 no_cache=0
7627 # Check whether --enable-imaglist or --disable-imaglist was given.
7628if test "${enable_imaglist+set}" = set; then
7629 enableval="$enable_imaglist"
7630
7631 if test "$enableval" = yes; then
7632 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7633 else
7634 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7635 fi
7636
7637else
7638
7639 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7640 if test "x$LINE" != x ; then
7641 eval "DEFAULT_$LINE"
7642 else
7643 no_cache=1
7644 fi
7645
7646 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7647
7648fi;
7649
7650 eval "$ac_cv_use_imaglist"
7651 if test "$no_cache" != 1; then
7652 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7653 fi
7654
7655 if test "$wxUSE_IMAGLIST" = yes; then
7656 echo "$as_me:$LINENO: result: yes" >&5
7657echo "${ECHO_T}yes" >&6
7658 else
7659 echo "$as_me:$LINENO: result: no" >&5
7660echo "${ECHO_T}no" >&6
7661 fi
7662
7663
7664 enablestring=
7665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7666echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7667 no_cache=0
7668 # Check whether --enable-listbook or --disable-listbook was given.
7669if test "${enable_listbook+set}" = set; then
7670 enableval="$enable_listbook"
7671
7672 if test "$enableval" = yes; then
7673 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7674 else
7675 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7676 fi
7677
7678else
7679
7680 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7681 if test "x$LINE" != x ; then
7682 eval "DEFAULT_$LINE"
7683 else
7684 no_cache=1
7685 fi
7686
7687 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7688
7689fi;
7690
7691 eval "$ac_cv_use_listbook"
7692 if test "$no_cache" != 1; then
7693 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7694 fi
7695
7696 if test "$wxUSE_LISTBOOK" = yes; then
7697 echo "$as_me:$LINENO: result: yes" >&5
7698echo "${ECHO_T}yes" >&6
7699 else
7700 echo "$as_me:$LINENO: result: no" >&5
7701echo "${ECHO_T}no" >&6
7702 fi
7703
7704
7705 enablestring=
7706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7707echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7708 no_cache=0
7709 # Check whether --enable-listbox or --disable-listbox was given.
7710if test "${enable_listbox+set}" = set; then
7711 enableval="$enable_listbox"
7712
7713 if test "$enableval" = yes; then
7714 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7715 else
7716 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7717 fi
7718
7719else
7720
7721 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7722 if test "x$LINE" != x ; then
7723 eval "DEFAULT_$LINE"
7724 else
7725 no_cache=1
7726 fi
7727
7728 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7729
7730fi;
7731
7732 eval "$ac_cv_use_listbox"
7733 if test "$no_cache" != 1; then
7734 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7735 fi
7736
7737 if test "$wxUSE_LISTBOX" = yes; then
7738 echo "$as_me:$LINENO: result: yes" >&5
7739echo "${ECHO_T}yes" >&6
7740 else
7741 echo "$as_me:$LINENO: result: no" >&5
7742echo "${ECHO_T}no" >&6
7743 fi
7744
7745
7746 enablestring=
7747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7748echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7749 no_cache=0
7750 # Check whether --enable-listctrl or --disable-listctrl was given.
7751if test "${enable_listctrl+set}" = set; then
7752 enableval="$enable_listctrl"
7753
7754 if test "$enableval" = yes; then
7755 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7756 else
7757 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7758 fi
7759
7760else
7761
7762 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7763 if test "x$LINE" != x ; then
7764 eval "DEFAULT_$LINE"
7765 else
7766 no_cache=1
7767 fi
7768
7769 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7770
7771fi;
7772
7773 eval "$ac_cv_use_listctrl"
7774 if test "$no_cache" != 1; then
7775 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7776 fi
7777
7778 if test "$wxUSE_LISTCTRL" = yes; then
7779 echo "$as_me:$LINENO: result: yes" >&5
7780echo "${ECHO_T}yes" >&6
7781 else
7782 echo "$as_me:$LINENO: result: no" >&5
7783echo "${ECHO_T}no" >&6
7784 fi
7785
7786
7787 enablestring=
7788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7789echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7790 no_cache=0
7791 # Check whether --enable-notebook or --disable-notebook was given.
7792if test "${enable_notebook+set}" = set; then
7793 enableval="$enable_notebook"
7794
7795 if test "$enableval" = yes; then
7796 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7797 else
7798 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7799 fi
7800
7801else
7802
7803 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7804 if test "x$LINE" != x ; then
7805 eval "DEFAULT_$LINE"
7806 else
7807 no_cache=1
7808 fi
7809
7810 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7811
7812fi;
7813
7814 eval "$ac_cv_use_notebook"
7815 if test "$no_cache" != 1; then
7816 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7817 fi
7818
7819 if test "$wxUSE_NOTEBOOK" = yes; then
7820 echo "$as_me:$LINENO: result: yes" >&5
7821echo "${ECHO_T}yes" >&6
7822 else
7823 echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6
7825 fi
7826
7827
7828 enablestring=
7829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7830echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7831 no_cache=0
7832 # Check whether --enable-radiobox or --disable-radiobox was given.
7833if test "${enable_radiobox+set}" = set; then
7834 enableval="$enable_radiobox"
7835
7836 if test "$enableval" = yes; then
7837 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7838 else
7839 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7840 fi
7841
7842else
7843
7844 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7845 if test "x$LINE" != x ; then
7846 eval "DEFAULT_$LINE"
7847 else
7848 no_cache=1
7849 fi
7850
7851 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7852
7853fi;
7854
7855 eval "$ac_cv_use_radiobox"
7856 if test "$no_cache" != 1; then
7857 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7858 fi
7859
7860 if test "$wxUSE_RADIOBOX" = yes; then
7861 echo "$as_me:$LINENO: result: yes" >&5
7862echo "${ECHO_T}yes" >&6
7863 else
7864 echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6
7866 fi
7867
7868
7869 enablestring=
7870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7871echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7872 no_cache=0
7873 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7874if test "${enable_radiobtn+set}" = set; then
7875 enableval="$enable_radiobtn"
7876
7877 if test "$enableval" = yes; then
7878 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7879 else
7880 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7881 fi
7882
7883else
7884
7885 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7886 if test "x$LINE" != x ; then
7887 eval "DEFAULT_$LINE"
7888 else
7889 no_cache=1
7890 fi
7891
7892 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7893
7894fi;
7895
7896 eval "$ac_cv_use_radiobtn"
7897 if test "$no_cache" != 1; then
7898 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7899 fi
7900
7901 if test "$wxUSE_RADIOBTN" = yes; then
7902 echo "$as_me:$LINENO: result: yes" >&5
7903echo "${ECHO_T}yes" >&6
7904 else
7905 echo "$as_me:$LINENO: result: no" >&5
7906echo "${ECHO_T}no" >&6
7907 fi
7908
7909
7910 enablestring=
7911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7912echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7913 no_cache=0
7914 # Check whether --enable-sash or --disable-sash was given.
7915if test "${enable_sash+set}" = set; then
7916 enableval="$enable_sash"
7917
7918 if test "$enableval" = yes; then
7919 ac_cv_use_sash='wxUSE_SASH=yes'
7920 else
7921 ac_cv_use_sash='wxUSE_SASH=no'
7922 fi
7923
7924else
7925
7926 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7927 if test "x$LINE" != x ; then
7928 eval "DEFAULT_$LINE"
7929 else
7930 no_cache=1
7931 fi
7932
7933 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7934
7935fi;
7936
7937 eval "$ac_cv_use_sash"
7938 if test "$no_cache" != 1; then
7939 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7940 fi
7941
7942 if test "$wxUSE_SASH" = yes; then
7943 echo "$as_me:$LINENO: result: yes" >&5
7944echo "${ECHO_T}yes" >&6
7945 else
7946 echo "$as_me:$LINENO: result: no" >&5
7947echo "${ECHO_T}no" >&6
7948 fi
7949
7950
7951 enablestring=
7952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7953echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7954 no_cache=0
7955 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7956if test "${enable_scrollbar+set}" = set; then
7957 enableval="$enable_scrollbar"
7958
7959 if test "$enableval" = yes; then
7960 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7961 else
7962 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7963 fi
7964
7965else
7966
7967 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7968 if test "x$LINE" != x ; then
7969 eval "DEFAULT_$LINE"
7970 else
7971 no_cache=1
7972 fi
7973
7974 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7975
7976fi;
7977
7978 eval "$ac_cv_use_scrollbar"
7979 if test "$no_cache" != 1; then
7980 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7981 fi
7982
7983 if test "$wxUSE_SCROLLBAR" = yes; then
7984 echo "$as_me:$LINENO: result: yes" >&5
7985echo "${ECHO_T}yes" >&6
7986 else
7987 echo "$as_me:$LINENO: result: no" >&5
7988echo "${ECHO_T}no" >&6
7989 fi
7990
7991
7992 enablestring=
7993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7994echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7995 no_cache=0
7996 # Check whether --enable-slider or --disable-slider was given.
7997if test "${enable_slider+set}" = set; then
7998 enableval="$enable_slider"
7999
8000 if test "$enableval" = yes; then
8001 ac_cv_use_slider='wxUSE_SLIDER=yes'
8002 else
8003 ac_cv_use_slider='wxUSE_SLIDER=no'
8004 fi
8005
8006else
8007
8008 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8009 if test "x$LINE" != x ; then
8010 eval "DEFAULT_$LINE"
8011 else
8012 no_cache=1
8013 fi
8014
8015 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8016
8017fi;
8018
8019 eval "$ac_cv_use_slider"
8020 if test "$no_cache" != 1; then
8021 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8022 fi
8023
8024 if test "$wxUSE_SLIDER" = yes; then
8025 echo "$as_me:$LINENO: result: yes" >&5
8026echo "${ECHO_T}yes" >&6
8027 else
8028 echo "$as_me:$LINENO: result: no" >&5
8029echo "${ECHO_T}no" >&6
8030 fi
8031
8032
8033 enablestring=
8034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8035echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8036 no_cache=0
8037 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8038if test "${enable_spinbtn+set}" = set; then
8039 enableval="$enable_spinbtn"
8040
8041 if test "$enableval" = yes; then
8042 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8043 else
8044 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8045 fi
8046
8047else
8048
8049 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8050 if test "x$LINE" != x ; then
8051 eval "DEFAULT_$LINE"
8052 else
8053 no_cache=1
8054 fi
8055
8056 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8057
8058fi;
8059
8060 eval "$ac_cv_use_spinbtn"
8061 if test "$no_cache" != 1; then
8062 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8063 fi
8064
8065 if test "$wxUSE_SPINBTN" = yes; then
8066 echo "$as_me:$LINENO: result: yes" >&5
8067echo "${ECHO_T}yes" >&6
8068 else
8069 echo "$as_me:$LINENO: result: no" >&5
8070echo "${ECHO_T}no" >&6
8071 fi
8072
8073
8074 enablestring=
8075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8076echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8077 no_cache=0
8078 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8079if test "${enable_spinctrl+set}" = set; then
8080 enableval="$enable_spinctrl"
8081
8082 if test "$enableval" = yes; then
8083 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8084 else
8085 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8086 fi
8087
8088else
8089
8090 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8091 if test "x$LINE" != x ; then
8092 eval "DEFAULT_$LINE"
8093 else
8094 no_cache=1
8095 fi
8096
8097 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8098
8099fi;
8100
8101 eval "$ac_cv_use_spinctrl"
8102 if test "$no_cache" != 1; then
8103 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8104 fi
8105
8106 if test "$wxUSE_SPINCTRL" = yes; then
8107 echo "$as_me:$LINENO: result: yes" >&5
8108echo "${ECHO_T}yes" >&6
8109 else
8110 echo "$as_me:$LINENO: result: no" >&5
8111echo "${ECHO_T}no" >&6
8112 fi
8113
8114
8115 enablestring=
8116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8117echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8118 no_cache=0
8119 # Check whether --enable-splitter or --disable-splitter was given.
8120if test "${enable_splitter+set}" = set; then
8121 enableval="$enable_splitter"
8122
8123 if test "$enableval" = yes; then
8124 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8125 else
8126 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8127 fi
8128
8129else
8130
8131 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8132 if test "x$LINE" != x ; then
8133 eval "DEFAULT_$LINE"
8134 else
8135 no_cache=1
8136 fi
8137
8138 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8139
8140fi;
8141
8142 eval "$ac_cv_use_splitter"
8143 if test "$no_cache" != 1; then
8144 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8145 fi
8146
8147 if test "$wxUSE_SPLITTER" = yes; then
8148 echo "$as_me:$LINENO: result: yes" >&5
8149echo "${ECHO_T}yes" >&6
8150 else
8151 echo "$as_me:$LINENO: result: no" >&5
8152echo "${ECHO_T}no" >&6
8153 fi
8154
8155
8156 enablestring=
8157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8158echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8159 no_cache=0
8160 # Check whether --enable-statbmp or --disable-statbmp was given.
8161if test "${enable_statbmp+set}" = set; then
8162 enableval="$enable_statbmp"
8163
8164 if test "$enableval" = yes; then
8165 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8166 else
8167 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8168 fi
8169
8170else
8171
8172 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8173 if test "x$LINE" != x ; then
8174 eval "DEFAULT_$LINE"
8175 else
8176 no_cache=1
8177 fi
8178
8179 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8180
8181fi;
8182
8183 eval "$ac_cv_use_statbmp"
8184 if test "$no_cache" != 1; then
8185 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8186 fi
8187
8188 if test "$wxUSE_STATBMP" = yes; then
8189 echo "$as_me:$LINENO: result: yes" >&5
8190echo "${ECHO_T}yes" >&6
8191 else
8192 echo "$as_me:$LINENO: result: no" >&5
8193echo "${ECHO_T}no" >&6
8194 fi
8195
8196
8197 enablestring=
8198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8199echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8200 no_cache=0
8201 # Check whether --enable-statbox or --disable-statbox was given.
8202if test "${enable_statbox+set}" = set; then
8203 enableval="$enable_statbox"
8204
8205 if test "$enableval" = yes; then
8206 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8207 else
8208 ac_cv_use_statbox='wxUSE_STATBOX=no'
8209 fi
8210
8211else
8212
8213 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8214 if test "x$LINE" != x ; then
8215 eval "DEFAULT_$LINE"
8216 else
8217 no_cache=1
8218 fi
8219
8220 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8221
8222fi;
8223
8224 eval "$ac_cv_use_statbox"
8225 if test "$no_cache" != 1; then
8226 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8227 fi
8228
8229 if test "$wxUSE_STATBOX" = yes; then
8230 echo "$as_me:$LINENO: result: yes" >&5
8231echo "${ECHO_T}yes" >&6
8232 else
8233 echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
8235 fi
8236
8237
8238 enablestring=
8239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8240echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8241 no_cache=0
8242 # Check whether --enable-statline or --disable-statline was given.
8243if test "${enable_statline+set}" = set; then
8244 enableval="$enable_statline"
8245
8246 if test "$enableval" = yes; then
8247 ac_cv_use_statline='wxUSE_STATLINE=yes'
8248 else
8249 ac_cv_use_statline='wxUSE_STATLINE=no'
8250 fi
8251
8252else
8253
8254 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8255 if test "x$LINE" != x ; then
8256 eval "DEFAULT_$LINE"
8257 else
8258 no_cache=1
8259 fi
8260
8261 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8262
8263fi;
8264
8265 eval "$ac_cv_use_statline"
8266 if test "$no_cache" != 1; then
8267 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8268 fi
8269
8270 if test "$wxUSE_STATLINE" = yes; then
8271 echo "$as_me:$LINENO: result: yes" >&5
8272echo "${ECHO_T}yes" >&6
8273 else
8274 echo "$as_me:$LINENO: result: no" >&5
8275echo "${ECHO_T}no" >&6
8276 fi
8277
8278
8279 enablestring=
8280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8281echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8282 no_cache=0
8283 # Check whether --enable-stattext or --disable-stattext was given.
8284if test "${enable_stattext+set}" = set; then
8285 enableval="$enable_stattext"
8286
8287 if test "$enableval" = yes; then
8288 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8289 else
8290 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8291 fi
8292
8293else
8294
8295 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8296 if test "x$LINE" != x ; then
8297 eval "DEFAULT_$LINE"
8298 else
8299 no_cache=1
8300 fi
8301
8302 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8303
8304fi;
8305
8306 eval "$ac_cv_use_stattext"
8307 if test "$no_cache" != 1; then
8308 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8309 fi
8310
8311 if test "$wxUSE_STATTEXT" = yes; then
8312 echo "$as_me:$LINENO: result: yes" >&5
8313echo "${ECHO_T}yes" >&6
8314 else
8315 echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6
8317 fi
8318
8319
8320 enablestring=
8321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8322echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8323 no_cache=0
8324 # Check whether --enable-statusbar or --disable-statusbar was given.
8325if test "${enable_statusbar+set}" = set; then
8326 enableval="$enable_statusbar"
8327
8328 if test "$enableval" = yes; then
8329 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8330 else
8331 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8332 fi
8333
8334else
8335
8336 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8337 if test "x$LINE" != x ; then
8338 eval "DEFAULT_$LINE"
8339 else
8340 no_cache=1
8341 fi
8342
8343 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8344
8345fi;
8346
8347 eval "$ac_cv_use_statusbar"
8348 if test "$no_cache" != 1; then
8349 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8350 fi
8351
8352 if test "$wxUSE_STATUSBAR" = yes; then
8353 echo "$as_me:$LINENO: result: yes" >&5
8354echo "${ECHO_T}yes" >&6
8355 else
8356 echo "$as_me:$LINENO: result: no" >&5
8357echo "${ECHO_T}no" >&6
8358 fi
8359
8360
8361 enablestring=
8362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8363echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8364 no_cache=0
8365 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8366if test "${enable_tabdialog+set}" = set; then
8367 enableval="$enable_tabdialog"
8368
8369 if test "$enableval" = yes; then
8370 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8371 else
8372 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8373 fi
8374
8375else
8376
8377 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8378 if test "x$LINE" != x ; then
8379 eval "DEFAULT_$LINE"
8380 else
8381 no_cache=1
8382 fi
8383
8384 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8385
8386fi;
8387
8388 eval "$ac_cv_use_tabdialog"
8389 if test "$no_cache" != 1; then
8390 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8391 fi
8392
8393 if test "$wxUSE_TABDIALOG" = yes; then
8394 echo "$as_me:$LINENO: result: yes" >&5
8395echo "${ECHO_T}yes" >&6
8396 else
8397 echo "$as_me:$LINENO: result: no" >&5
8398echo "${ECHO_T}no" >&6
8399 fi
8400
8401
8402 enablestring=
8403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8404echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8405 no_cache=0
8406 # Check whether --enable-textctrl or --disable-textctrl was given.
8407if test "${enable_textctrl+set}" = set; then
8408 enableval="$enable_textctrl"
8409
8410 if test "$enableval" = yes; then
8411 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8412 else
8413 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8414 fi
8415
8416else
8417
8418 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8419 if test "x$LINE" != x ; then
8420 eval "DEFAULT_$LINE"
8421 else
8422 no_cache=1
8423 fi
8424
8425 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8426
8427fi;
8428
8429 eval "$ac_cv_use_textctrl"
8430 if test "$no_cache" != 1; then
8431 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8432 fi
8433
8434 if test "$wxUSE_TEXTCTRL" = yes; then
8435 echo "$as_me:$LINENO: result: yes" >&5
8436echo "${ECHO_T}yes" >&6
8437 else
8438 echo "$as_me:$LINENO: result: no" >&5
8439echo "${ECHO_T}no" >&6
8440 fi
8441
8442
8443 enablestring=
8444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8445echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8446 no_cache=0
8447 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8448if test "${enable_togglebtn+set}" = set; then
8449 enableval="$enable_togglebtn"
8450
8451 if test "$enableval" = yes; then
8452 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8453 else
8454 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8455 fi
8456
8457else
8458
8459 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8460 if test "x$LINE" != x ; then
8461 eval "DEFAULT_$LINE"
8462 else
8463 no_cache=1
8464 fi
8465
8466 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8467
8468fi;
8469
8470 eval "$ac_cv_use_togglebtn"
8471 if test "$no_cache" != 1; then
8472 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8473 fi
8474
8475 if test "$wxUSE_TOGGLEBTN" = yes; then
8476 echo "$as_me:$LINENO: result: yes" >&5
8477echo "${ECHO_T}yes" >&6
8478 else
8479 echo "$as_me:$LINENO: result: no" >&5
8480echo "${ECHO_T}no" >&6
8481 fi
8482
8483
8484 enablestring=
8485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8486echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8487 no_cache=0
8488 # Check whether --enable-toolbar or --disable-toolbar was given.
8489if test "${enable_toolbar+set}" = set; then
8490 enableval="$enable_toolbar"
8491
8492 if test "$enableval" = yes; then
8493 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8494 else
8495 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8496 fi
8497
8498else
8499
8500 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8501 if test "x$LINE" != x ; then
8502 eval "DEFAULT_$LINE"
8503 else
8504 no_cache=1
8505 fi
8506
8507 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8508
8509fi;
8510
8511 eval "$ac_cv_use_toolbar"
8512 if test "$no_cache" != 1; then
8513 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8514 fi
8515
8516 if test "$wxUSE_TOOLBAR" = yes; then
8517 echo "$as_me:$LINENO: result: yes" >&5
8518echo "${ECHO_T}yes" >&6
8519 else
8520 echo "$as_me:$LINENO: result: no" >&5
8521echo "${ECHO_T}no" >&6
8522 fi
8523
8524
8525 enablestring=
8526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8527echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8528 no_cache=0
8529 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8530if test "${enable_tbarnative+set}" = set; then
8531 enableval="$enable_tbarnative"
8532
8533 if test "$enableval" = yes; then
8534 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8535 else
8536 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8537 fi
8538
8539else
8540
8541 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8542 if test "x$LINE" != x ; then
8543 eval "DEFAULT_$LINE"
8544 else
8545 no_cache=1
8546 fi
8547
8548 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8549
8550fi;
8551
8552 eval "$ac_cv_use_tbarnative"
8553 if test "$no_cache" != 1; then
8554 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8555 fi
8556
8557 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8558 echo "$as_me:$LINENO: result: yes" >&5
8559echo "${ECHO_T}yes" >&6
8560 else
8561 echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6
8563 fi
8564
8565
8566 enablestring=
8567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8568echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8569 no_cache=0
8570 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8571if test "${enable_tbarsmpl+set}" = set; then
8572 enableval="$enable_tbarsmpl"
8573
8574 if test "$enableval" = yes; then
8575 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8576 else
8577 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8578 fi
8579
8580else
8581
8582 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8583 if test "x$LINE" != x ; then
8584 eval "DEFAULT_$LINE"
8585 else
8586 no_cache=1
8587 fi
8588
8589 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8590
8591fi;
8592
8593 eval "$ac_cv_use_tbarsmpl"
8594 if test "$no_cache" != 1; then
8595 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8596 fi
8597
8598 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8599 echo "$as_me:$LINENO: result: yes" >&5
8600echo "${ECHO_T}yes" >&6
8601 else
8602 echo "$as_me:$LINENO: result: no" >&5
8603echo "${ECHO_T}no" >&6
8604 fi
8605
8606
8607 enablestring=
8608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8609echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8610 no_cache=0
8611 # Check whether --enable-treectrl or --disable-treectrl was given.
8612if test "${enable_treectrl+set}" = set; then
8613 enableval="$enable_treectrl"
8614
8615 if test "$enableval" = yes; then
8616 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8617 else
8618 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8619 fi
8620
8621else
8622
8623 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8624 if test "x$LINE" != x ; then
8625 eval "DEFAULT_$LINE"
8626 else
8627 no_cache=1
8628 fi
8629
8630 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8631
8632fi;
8633
8634 eval "$ac_cv_use_treectrl"
8635 if test "$no_cache" != 1; then
8636 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8637 fi
8638
8639 if test "$wxUSE_TREECTRL" = yes; then
8640 echo "$as_me:$LINENO: result: yes" >&5
8641echo "${ECHO_T}yes" >&6
8642 else
8643 echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6
8645 fi
8646
8647
8648 enablestring=
8649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8650echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8651 no_cache=0
8652 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8653if test "${enable_tipwindow+set}" = set; then
8654 enableval="$enable_tipwindow"
8655
8656 if test "$enableval" = yes; then
8657 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8658 else
8659 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8660 fi
8661
8662else
8663
8664 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8665 if test "x$LINE" != x ; then
8666 eval "DEFAULT_$LINE"
8667 else
8668 no_cache=1
8669 fi
8670
8671 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8672
8673fi;
8674
8675 eval "$ac_cv_use_tipwindow"
8676 if test "$no_cache" != 1; then
8677 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8678 fi
8679
8680 if test "$wxUSE_TIPWINDOW" = yes; then
8681 echo "$as_me:$LINENO: result: yes" >&5
8682echo "${ECHO_T}yes" >&6
8683 else
8684 echo "$as_me:$LINENO: result: no" >&5
8685echo "${ECHO_T}no" >&6
8686 fi
8687
8688
8689 enablestring=
8690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8691echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8692 no_cache=0
8693 # Check whether --enable-popupwin or --disable-popupwin was given.
8694if test "${enable_popupwin+set}" = set; then
8695 enableval="$enable_popupwin"
8696
8697 if test "$enableval" = yes; then
8698 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8699 else
8700 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8701 fi
8702
8703else
8704
8705 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8706 if test "x$LINE" != x ; then
8707 eval "DEFAULT_$LINE"
8708 else
8709 no_cache=1
8710 fi
8711
8712 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8713
8714fi;
8715
8716 eval "$ac_cv_use_popupwin"
8717 if test "$no_cache" != 1; then
8718 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8719 fi
8720
8721 if test "$wxUSE_POPUPWIN" = yes; then
8722 echo "$as_me:$LINENO: result: yes" >&5
8723echo "${ECHO_T}yes" >&6
8724 else
8725 echo "$as_me:$LINENO: result: no" >&5
8726echo "${ECHO_T}no" >&6
8727 fi
8728
8729
8730
8731
8732 enablestring=
8733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8734echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8735 no_cache=0
8736 # Check whether --enable-commondlg or --disable-commondlg was given.
8737if test "${enable_commondlg+set}" = set; then
8738 enableval="$enable_commondlg"
8739
8740 if test "$enableval" = yes; then
8741 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8742 else
8743 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8744 fi
8745
8746else
8747
8748 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8749 if test "x$LINE" != x ; then
8750 eval "DEFAULT_$LINE"
8751 else
8752 no_cache=1
8753 fi
8754
8755 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8756
8757fi;
8758
8759 eval "$ac_cv_use_commondlg"
8760 if test "$no_cache" != 1; then
8761 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8762 fi
8763
8764 if test "$wxUSE_COMMONDLGS" = yes; then
8765 echo "$as_me:$LINENO: result: yes" >&5
8766echo "${ECHO_T}yes" >&6
8767 else
8768 echo "$as_me:$LINENO: result: no" >&5
8769echo "${ECHO_T}no" >&6
8770 fi
8771
8772
8773 enablestring=
8774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8775echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8776 no_cache=0
8777 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8778if test "${enable_choicedlg+set}" = set; then
8779 enableval="$enable_choicedlg"
8780
8781 if test "$enableval" = yes; then
8782 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8783 else
8784 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8785 fi
8786
8787else
8788
8789 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8790 if test "x$LINE" != x ; then
8791 eval "DEFAULT_$LINE"
8792 else
8793 no_cache=1
8794 fi
8795
8796 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8797
8798fi;
8799
8800 eval "$ac_cv_use_choicedlg"
8801 if test "$no_cache" != 1; then
8802 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8803 fi
8804
8805 if test "$wxUSE_CHOICEDLG" = yes; then
8806 echo "$as_me:$LINENO: result: yes" >&5
8807echo "${ECHO_T}yes" >&6
8808 else
8809 echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
8811 fi
8812
8813
8814 enablestring=
8815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8816echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8817 no_cache=0
8818 # Check whether --enable-coldlg or --disable-coldlg was given.
8819if test "${enable_coldlg+set}" = set; then
8820 enableval="$enable_coldlg"
8821
8822 if test "$enableval" = yes; then
8823 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8824 else
8825 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8826 fi
8827
8828else
8829
8830 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8831 if test "x$LINE" != x ; then
8832 eval "DEFAULT_$LINE"
8833 else
8834 no_cache=1
8835 fi
8836
8837 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8838
8839fi;
8840
8841 eval "$ac_cv_use_coldlg"
8842 if test "$no_cache" != 1; then
8843 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8844 fi
8845
8846 if test "$wxUSE_COLOURDLG" = yes; then
8847 echo "$as_me:$LINENO: result: yes" >&5
8848echo "${ECHO_T}yes" >&6
8849 else
8850 echo "$as_me:$LINENO: result: no" >&5
8851echo "${ECHO_T}no" >&6
8852 fi
8853
8854
8855 enablestring=
8856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8857echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8858 no_cache=0
8859 # Check whether --enable-filedlg or --disable-filedlg was given.
8860if test "${enable_filedlg+set}" = set; then
8861 enableval="$enable_filedlg"
8862
8863 if test "$enableval" = yes; then
8864 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8865 else
8866 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8867 fi
8868
8869else
8870
8871 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8872 if test "x$LINE" != x ; then
8873 eval "DEFAULT_$LINE"
8874 else
8875 no_cache=1
8876 fi
8877
8878 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8879
8880fi;
8881
8882 eval "$ac_cv_use_filedlg"
8883 if test "$no_cache" != 1; then
8884 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8885 fi
8886
8887 if test "$wxUSE_FILEDLG" = yes; then
8888 echo "$as_me:$LINENO: result: yes" >&5
8889echo "${ECHO_T}yes" >&6
8890 else
8891 echo "$as_me:$LINENO: result: no" >&5
8892echo "${ECHO_T}no" >&6
8893 fi
8894
8895
8896 enablestring=
8897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8898echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8899 no_cache=0
8900 # Check whether --enable-finddlg or --disable-finddlg was given.
8901if test "${enable_finddlg+set}" = set; then
8902 enableval="$enable_finddlg"
8903
8904 if test "$enableval" = yes; then
8905 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8906 else
8907 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8908 fi
8909
8910else
8911
8912 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8913 if test "x$LINE" != x ; then
8914 eval "DEFAULT_$LINE"
8915 else
8916 no_cache=1
8917 fi
8918
8919 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8920
8921fi;
8922
8923 eval "$ac_cv_use_finddlg"
8924 if test "$no_cache" != 1; then
8925 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8926 fi
8927
8928 if test "$wxUSE_FINDREPLDLG" = yes; then
8929 echo "$as_me:$LINENO: result: yes" >&5
8930echo "${ECHO_T}yes" >&6
8931 else
8932 echo "$as_me:$LINENO: result: no" >&5
8933echo "${ECHO_T}no" >&6
8934 fi
8935
8936
8937 enablestring=
8938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8939echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8940 no_cache=0
8941 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8942if test "${enable_fontdlg+set}" = set; then
8943 enableval="$enable_fontdlg"
8944
8945 if test "$enableval" = yes; then
8946 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8947 else
8948 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8949 fi
8950
8951else
8952
8953 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8954 if test "x$LINE" != x ; then
8955 eval "DEFAULT_$LINE"
8956 else
8957 no_cache=1
8958 fi
8959
8960 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8961
8962fi;
8963
8964 eval "$ac_cv_use_fontdlg"
8965 if test "$no_cache" != 1; then
8966 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8967 fi
8968
8969 if test "$wxUSE_FONTDLG" = yes; then
8970 echo "$as_me:$LINENO: result: yes" >&5
8971echo "${ECHO_T}yes" >&6
8972 else
8973 echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
8975 fi
8976
8977
8978 enablestring=
8979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8980echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8981 no_cache=0
8982 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8983if test "${enable_dirdlg+set}" = set; then
8984 enableval="$enable_dirdlg"
8985
8986 if test "$enableval" = yes; then
8987 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8988 else
8989 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8990 fi
8991
8992else
8993
8994 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8995 if test "x$LINE" != x ; then
8996 eval "DEFAULT_$LINE"
8997 else
8998 no_cache=1
8999 fi
9000
9001 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9002
9003fi;
9004
9005 eval "$ac_cv_use_dirdlg"
9006 if test "$no_cache" != 1; then
9007 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9008 fi
9009
9010 if test "$wxUSE_DIRDLG" = yes; then
9011 echo "$as_me:$LINENO: result: yes" >&5
9012echo "${ECHO_T}yes" >&6
9013 else
9014 echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
9016 fi
9017
9018
9019 enablestring=
9020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9021echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9022 no_cache=0
9023 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9024if test "${enable_msgdlg+set}" = set; then
9025 enableval="$enable_msgdlg"
9026
9027 if test "$enableval" = yes; then
9028 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9029 else
9030 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9031 fi
9032
9033else
9034
9035 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9036 if test "x$LINE" != x ; then
9037 eval "DEFAULT_$LINE"
9038 else
9039 no_cache=1
9040 fi
9041
9042 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9043
9044fi;
9045
9046 eval "$ac_cv_use_msgdlg"
9047 if test "$no_cache" != 1; then
9048 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9049 fi
9050
9051 if test "$wxUSE_MSGDLG" = yes; then
9052 echo "$as_me:$LINENO: result: yes" >&5
9053echo "${ECHO_T}yes" >&6
9054 else
9055 echo "$as_me:$LINENO: result: no" >&5
9056echo "${ECHO_T}no" >&6
9057 fi
9058
9059
9060 enablestring=
9061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9062echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9063 no_cache=0
9064 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9065if test "${enable_numberdlg+set}" = set; then
9066 enableval="$enable_numberdlg"
9067
9068 if test "$enableval" = yes; then
9069 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9070 else
9071 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9072 fi
9073
9074else
9075
9076 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9077 if test "x$LINE" != x ; then
9078 eval "DEFAULT_$LINE"
9079 else
9080 no_cache=1
9081 fi
9082
9083 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9084
9085fi;
9086
9087 eval "$ac_cv_use_numberdlg"
9088 if test "$no_cache" != 1; then
9089 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9090 fi
9091
9092 if test "$wxUSE_NUMBERDLG" = yes; then
9093 echo "$as_me:$LINENO: result: yes" >&5
9094echo "${ECHO_T}yes" >&6
9095 else
9096 echo "$as_me:$LINENO: result: no" >&5
9097echo "${ECHO_T}no" >&6
9098 fi
9099
9100
9101 enablestring=
9102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9103echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9104 no_cache=0
9105 # Check whether --enable-splash or --disable-splash was given.
9106if test "${enable_splash+set}" = set; then
9107 enableval="$enable_splash"
9108
9109 if test "$enableval" = yes; then
9110 ac_cv_use_splash='wxUSE_SPLASH=yes'
9111 else
9112 ac_cv_use_splash='wxUSE_SPLASH=no'
9113 fi
9114
9115else
9116
9117 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9118 if test "x$LINE" != x ; then
9119 eval "DEFAULT_$LINE"
9120 else
9121 no_cache=1
9122 fi
9123
9124 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9125
9126fi;
9127
9128 eval "$ac_cv_use_splash"
9129 if test "$no_cache" != 1; then
9130 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9131 fi
9132
9133 if test "$wxUSE_SPLASH" = yes; then
9134 echo "$as_me:$LINENO: result: yes" >&5
9135echo "${ECHO_T}yes" >&6
9136 else
9137 echo "$as_me:$LINENO: result: no" >&5
9138echo "${ECHO_T}no" >&6
9139 fi
9140
9141
9142 enablestring=
9143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9144echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9145 no_cache=0
9146 # Check whether --enable-textdlg or --disable-textdlg was given.
9147if test "${enable_textdlg+set}" = set; then
9148 enableval="$enable_textdlg"
9149
9150 if test "$enableval" = yes; then
9151 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9152 else
9153 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9154 fi
9155
9156else
9157
9158 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9159 if test "x$LINE" != x ; then
9160 eval "DEFAULT_$LINE"
9161 else
9162 no_cache=1
9163 fi
9164
9165 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9166
9167fi;
9168
9169 eval "$ac_cv_use_textdlg"
9170 if test "$no_cache" != 1; then
9171 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9172 fi
9173
9174 if test "$wxUSE_TEXTDLG" = yes; then
9175 echo "$as_me:$LINENO: result: yes" >&5
9176echo "${ECHO_T}yes" >&6
9177 else
9178 echo "$as_me:$LINENO: result: no" >&5
9179echo "${ECHO_T}no" >&6
9180 fi
9181
9182
9183 enablestring=
9184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9185echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9186 no_cache=0
9187 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9188if test "${enable_tipdlg+set}" = set; then
9189 enableval="$enable_tipdlg"
9190
9191 if test "$enableval" = yes; then
9192 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9193 else
9194 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9195 fi
9196
9197else
9198
9199 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9200 if test "x$LINE" != x ; then
9201 eval "DEFAULT_$LINE"
9202 else
9203 no_cache=1
9204 fi
9205
9206 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9207
9208fi;
9209
9210 eval "$ac_cv_use_tipdlg"
9211 if test "$no_cache" != 1; then
9212 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9213 fi
9214
9215 if test "$wxUSE_STARTUP_TIPS" = yes; then
9216 echo "$as_me:$LINENO: result: yes" >&5
9217echo "${ECHO_T}yes" >&6
9218 else
9219 echo "$as_me:$LINENO: result: no" >&5
9220echo "${ECHO_T}no" >&6
9221 fi
9222
9223
9224 enablestring=
9225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9226echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9227 no_cache=0
9228 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9229if test "${enable_progressdlg+set}" = set; then
9230 enableval="$enable_progressdlg"
9231
9232 if test "$enableval" = yes; then
9233 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9234 else
9235 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9236 fi
9237
9238else
9239
9240 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9241 if test "x$LINE" != x ; then
9242 eval "DEFAULT_$LINE"
9243 else
9244 no_cache=1
9245 fi
9246
9247 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9248
9249fi;
9250
9251 eval "$ac_cv_use_progressdlg"
9252 if test "$no_cache" != 1; then
9253 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9254 fi
9255
9256 if test "$wxUSE_PROGRESSDLG" = yes; then
9257 echo "$as_me:$LINENO: result: yes" >&5
9258echo "${ECHO_T}yes" >&6
9259 else
9260 echo "$as_me:$LINENO: result: no" >&5
9261echo "${ECHO_T}no" >&6
9262 fi
9263
9264
9265 enablestring=
9266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9267echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9268 no_cache=0
9269 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9270if test "${enable_wizarddlg+set}" = set; then
9271 enableval="$enable_wizarddlg"
9272
9273 if test "$enableval" = yes; then
9274 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9275 else
9276 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9277 fi
9278
9279else
9280
9281 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9282 if test "x$LINE" != x ; then
9283 eval "DEFAULT_$LINE"
9284 else
9285 no_cache=1
9286 fi
9287
9288 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9289
9290fi;
9291
9292 eval "$ac_cv_use_wizarddlg"
9293 if test "$no_cache" != 1; then
9294 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9295 fi
9296
9297 if test "$wxUSE_WIZARDDLG" = yes; then
9298 echo "$as_me:$LINENO: result: yes" >&5
9299echo "${ECHO_T}yes" >&6
9300 else
9301 echo "$as_me:$LINENO: result: no" >&5
9302echo "${ECHO_T}no" >&6
9303 fi
9304
9305
9306
9307
9308 enablestring=
9309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9310echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9311 no_cache=0
9312 # Check whether --enable-menus or --disable-menus was given.
9313if test "${enable_menus+set}" = set; then
9314 enableval="$enable_menus"
9315
9316 if test "$enableval" = yes; then
9317 ac_cv_use_menus='wxUSE_MENUS=yes'
9318 else
9319 ac_cv_use_menus='wxUSE_MENUS=no'
9320 fi
9321
9322else
9323
9324 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9325 if test "x$LINE" != x ; then
9326 eval "DEFAULT_$LINE"
9327 else
9328 no_cache=1
9329 fi
9330
9331 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9332
9333fi;
9334
9335 eval "$ac_cv_use_menus"
9336 if test "$no_cache" != 1; then
9337 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9338 fi
9339
9340 if test "$wxUSE_MENUS" = yes; then
9341 echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6
9343 else
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
9346 fi
9347
9348
9349 enablestring=
9350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9351echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9352 no_cache=0
9353 # Check whether --enable-miniframe or --disable-miniframe was given.
9354if test "${enable_miniframe+set}" = set; then
9355 enableval="$enable_miniframe"
9356
9357 if test "$enableval" = yes; then
9358 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9359 else
9360 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9361 fi
9362
9363else
9364
9365 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9366 if test "x$LINE" != x ; then
9367 eval "DEFAULT_$LINE"
9368 else
9369 no_cache=1
9370 fi
9371
9372 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9373
9374fi;
9375
9376 eval "$ac_cv_use_miniframe"
9377 if test "$no_cache" != 1; then
9378 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9379 fi
9380
9381 if test "$wxUSE_MINIFRAME" = yes; then
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
9384 else
9385 echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
9387 fi
9388
9389
9390 enablestring=
9391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9392echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9393 no_cache=0
9394 # Check whether --enable-tooltips or --disable-tooltips was given.
9395if test "${enable_tooltips+set}" = set; then
9396 enableval="$enable_tooltips"
9397
9398 if test "$enableval" = yes; then
9399 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9400 else
9401 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9402 fi
9403
9404else
9405
9406 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9407 if test "x$LINE" != x ; then
9408 eval "DEFAULT_$LINE"
9409 else
9410 no_cache=1
9411 fi
9412
9413 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9414
9415fi;
9416
9417 eval "$ac_cv_use_tooltips"
9418 if test "$no_cache" != 1; then
9419 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9420 fi
9421
9422 if test "$wxUSE_TOOLTIPS" = yes; then
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
9425 else
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
9428 fi
9429
9430
9431 enablestring=
9432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9433echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9434 no_cache=0
9435 # Check whether --enable-splines or --disable-splines was given.
9436if test "${enable_splines+set}" = set; then
9437 enableval="$enable_splines"
9438
9439 if test "$enableval" = yes; then
9440 ac_cv_use_splines='wxUSE_SPLINES=yes'
9441 else
9442 ac_cv_use_splines='wxUSE_SPLINES=no'
9443 fi
9444
9445else
9446
9447 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9448 if test "x$LINE" != x ; then
9449 eval "DEFAULT_$LINE"
9450 else
9451 no_cache=1
9452 fi
9453
9454 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9455
9456fi;
9457
9458 eval "$ac_cv_use_splines"
9459 if test "$no_cache" != 1; then
9460 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9461 fi
9462
9463 if test "$wxUSE_SPLINES" = yes; then
9464 echo "$as_me:$LINENO: result: yes" >&5
9465echo "${ECHO_T}yes" >&6
9466 else
9467 echo "$as_me:$LINENO: result: no" >&5
9468echo "${ECHO_T}no" >&6
9469 fi
9470
9471
9472 enablestring=
9473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9474echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9475 no_cache=0
9476 # Check whether --enable-validators or --disable-validators was given.
9477if test "${enable_validators+set}" = set; then
9478 enableval="$enable_validators"
9479
9480 if test "$enableval" = yes; then
9481 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9482 else
9483 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9484 fi
9485
9486else
9487
9488 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9489 if test "x$LINE" != x ; then
9490 eval "DEFAULT_$LINE"
9491 else
9492 no_cache=1
9493 fi
9494
9495 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9496
9497fi;
9498
9499 eval "$ac_cv_use_validators"
9500 if test "$no_cache" != 1; then
9501 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9502 fi
9503
9504 if test "$wxUSE_VALIDATORS" = yes; then
9505 echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6
9507 else
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
9510 fi
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9518if test "${enable_busyinfo+set}" = set; then
9519 enableval="$enable_busyinfo"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9523 else
9524 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9525 fi
9526
9527else
9528
9529 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9537
9538fi;
9539
9540 eval "$ac_cv_use_busyinfo"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_BUSYINFO" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-joystick or --disable-joystick was given.
9559if test "${enable_joystick+set}" = set; then
9560 enableval="$enable_joystick"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9564 else
9565 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9578
9579fi;
9580
9581 eval "$ac_cv_use_joystick"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_JOYSTICK" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592 fi
9593
9594
9595 enablestring=
9596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9597echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9598 no_cache=0
9599 # Check whether --enable-metafile or --disable-metafile was given.
9600if test "${enable_metafile+set}" = set; then
9601 enableval="$enable_metafile"
9602
9603 if test "$enableval" = yes; then
9604 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9605 else
9606 ac_cv_use_metafile='wxUSE_METAFILE=no'
9607 fi
9608
9609else
9610
9611 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9612 if test "x$LINE" != x ; then
9613 eval "DEFAULT_$LINE"
9614 else
9615 no_cache=1
9616 fi
9617
9618 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9619
9620fi;
9621
9622 eval "$ac_cv_use_metafile"
9623 if test "$no_cache" != 1; then
9624 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9625 fi
9626
9627 if test "$wxUSE_METAFILE" = yes; then
9628 echo "$as_me:$LINENO: result: yes" >&5
9629echo "${ECHO_T}yes" >&6
9630 else
9631 echo "$as_me:$LINENO: result: no" >&5
9632echo "${ECHO_T}no" >&6
9633 fi
9634
9635
9636 enablestring=
9637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9638echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9639 no_cache=0
9640 # Check whether --enable-dragimage or --disable-dragimage was given.
9641if test "${enable_dragimage+set}" = set; then
9642 enableval="$enable_dragimage"
9643
9644 if test "$enableval" = yes; then
9645 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9646 else
9647 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9648 fi
9649
9650else
9651
9652 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9653 if test "x$LINE" != x ; then
9654 eval "DEFAULT_$LINE"
9655 else
9656 no_cache=1
9657 fi
9658
9659 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9660
9661fi;
9662
9663 eval "$ac_cv_use_dragimage"
9664 if test "$no_cache" != 1; then
9665 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9666 fi
9667
9668 if test "$wxUSE_DRAGIMAGE" = yes; then
9669 echo "$as_me:$LINENO: result: yes" >&5
9670echo "${ECHO_T}yes" >&6
9671 else
9672 echo "$as_me:$LINENO: result: no" >&5
9673echo "${ECHO_T}no" >&6
9674 fi
9675
9676
9677 enablestring=
9678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9679echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9680 no_cache=0
9681 # Check whether --enable-accessibility or --disable-accessibility was given.
9682if test "${enable_accessibility+set}" = set; then
9683 enableval="$enable_accessibility"
9684
9685 if test "$enableval" = yes; then
9686 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9687 else
9688 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9689 fi
9690
9691else
9692
9693 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9694 if test "x$LINE" != x ; then
9695 eval "DEFAULT_$LINE"
9696 else
9697 no_cache=1
9698 fi
9699
9700 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9701
9702fi;
9703
9704 eval "$ac_cv_use_accessibility"
9705 if test "$no_cache" != 1; then
9706 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9707 fi
9708
9709 if test "$wxUSE_ACCESSIBILITY" = yes; then
9710 echo "$as_me:$LINENO: result: yes" >&5
9711echo "${ECHO_T}yes" >&6
9712 else
9713 echo "$as_me:$LINENO: result: no" >&5
9714echo "${ECHO_T}no" >&6
9715 fi
9716
9717
9718
9719
9720 enablestring=
9721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9722echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9723 no_cache=0
9724 # Check whether --enable-palette or --disable-palette was given.
9725if test "${enable_palette+set}" = set; then
9726 enableval="$enable_palette"
9727
9728 if test "$enableval" = yes; then
9729 ac_cv_use_palette='wxUSE_PALETTE=yes'
9730 else
9731 ac_cv_use_palette='wxUSE_PALETTE=no'
9732 fi
9733
9734else
9735
9736 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9737 if test "x$LINE" != x ; then
9738 eval "DEFAULT_$LINE"
9739 else
9740 no_cache=1
9741 fi
9742
9743 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9744
9745fi;
9746
9747 eval "$ac_cv_use_palette"
9748 if test "$no_cache" != 1; then
9749 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9750 fi
9751
9752 if test "$wxUSE_PALETTE" = yes; then
9753 echo "$as_me:$LINENO: result: yes" >&5
9754echo "${ECHO_T}yes" >&6
9755 else
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758 fi
9759
9760
9761 enablestring=
9762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9763echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9764 no_cache=0
9765 # Check whether --enable-image or --disable-image was given.
9766if test "${enable_image+set}" = set; then
9767 enableval="$enable_image"
9768
9769 if test "$enableval" = yes; then
9770 ac_cv_use_image='wxUSE_IMAGE=yes'
9771 else
9772 ac_cv_use_image='wxUSE_IMAGE=no'
9773 fi
9774
9775else
9776
9777 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9778 if test "x$LINE" != x ; then
9779 eval "DEFAULT_$LINE"
9780 else
9781 no_cache=1
9782 fi
9783
9784 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9785
9786fi;
9787
9788 eval "$ac_cv_use_image"
9789 if test "$no_cache" != 1; then
9790 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9791 fi
9792
9793 if test "$wxUSE_IMAGE" = yes; then
9794 echo "$as_me:$LINENO: result: yes" >&5
9795echo "${ECHO_T}yes" >&6
9796 else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799 fi
9800
9801
9802 enablestring=
9803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9804echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9805 no_cache=0
9806 # Check whether --enable-gif or --disable-gif was given.
9807if test "${enable_gif+set}" = set; then
9808 enableval="$enable_gif"
9809
9810 if test "$enableval" = yes; then
9811 ac_cv_use_gif='wxUSE_GIF=yes'
9812 else
9813 ac_cv_use_gif='wxUSE_GIF=no'
9814 fi
9815
9816else
9817
9818 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9819 if test "x$LINE" != x ; then
9820 eval "DEFAULT_$LINE"
9821 else
9822 no_cache=1
9823 fi
9824
9825 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9826
9827fi;
9828
9829 eval "$ac_cv_use_gif"
9830 if test "$no_cache" != 1; then
9831 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9832 fi
9833
9834 if test "$wxUSE_GIF" = yes; then
9835 echo "$as_me:$LINENO: result: yes" >&5
9836echo "${ECHO_T}yes" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840 fi
9841
9842
9843 enablestring=
9844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9845echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9846 no_cache=0
9847 # Check whether --enable-pcx or --disable-pcx was given.
9848if test "${enable_pcx+set}" = set; then
9849 enableval="$enable_pcx"
9850
9851 if test "$enableval" = yes; then
9852 ac_cv_use_pcx='wxUSE_PCX=yes'
9853 else
9854 ac_cv_use_pcx='wxUSE_PCX=no'
9855 fi
9856
9857else
9858
9859 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9860 if test "x$LINE" != x ; then
9861 eval "DEFAULT_$LINE"
9862 else
9863 no_cache=1
9864 fi
9865
9866 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9867
9868fi;
9869
9870 eval "$ac_cv_use_pcx"
9871 if test "$no_cache" != 1; then
9872 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9873 fi
9874
9875 if test "$wxUSE_PCX" = yes; then
9876 echo "$as_me:$LINENO: result: yes" >&5
9877echo "${ECHO_T}yes" >&6
9878 else
9879 echo "$as_me:$LINENO: result: no" >&5
9880echo "${ECHO_T}no" >&6
9881 fi
9882
9883
9884 enablestring=
9885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9886echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9887 no_cache=0
9888 # Check whether --enable-iff or --disable-iff was given.
9889if test "${enable_iff+set}" = set; then
9890 enableval="$enable_iff"
9891
9892 if test "$enableval" = yes; then
9893 ac_cv_use_iff='wxUSE_IFF=yes'
9894 else
9895 ac_cv_use_iff='wxUSE_IFF=no'
9896 fi
9897
9898else
9899
9900 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9901 if test "x$LINE" != x ; then
9902 eval "DEFAULT_$LINE"
9903 else
9904 no_cache=1
9905 fi
9906
9907 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9908
9909fi;
9910
9911 eval "$ac_cv_use_iff"
9912 if test "$no_cache" != 1; then
9913 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9914 fi
9915
9916 if test "$wxUSE_IFF" = yes; then
9917 echo "$as_me:$LINENO: result: yes" >&5
9918echo "${ECHO_T}yes" >&6
9919 else
9920 echo "$as_me:$LINENO: result: no" >&5
9921echo "${ECHO_T}no" >&6
9922 fi
9923
9924
9925 enablestring=
9926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9927echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9928 no_cache=0
9929 # Check whether --enable-pnm or --disable-pnm was given.
9930if test "${enable_pnm+set}" = set; then
9931 enableval="$enable_pnm"
9932
9933 if test "$enableval" = yes; then
9934 ac_cv_use_pnm='wxUSE_PNM=yes'
9935 else
9936 ac_cv_use_pnm='wxUSE_PNM=no'
9937 fi
9938
9939else
9940
9941 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9942 if test "x$LINE" != x ; then
9943 eval "DEFAULT_$LINE"
9944 else
9945 no_cache=1
9946 fi
9947
9948 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9949
9950fi;
9951
9952 eval "$ac_cv_use_pnm"
9953 if test "$no_cache" != 1; then
9954 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9955 fi
9956
9957 if test "$wxUSE_PNM" = yes; then
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
9960 else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963 fi
9964
9965
9966 enablestring=
9967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9968echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9969 no_cache=0
9970 # Check whether --enable-xpm or --disable-xpm was given.
9971if test "${enable_xpm+set}" = set; then
9972 enableval="$enable_xpm"
9973
9974 if test "$enableval" = yes; then
9975 ac_cv_use_xpm='wxUSE_XPM=yes'
9976 else
9977 ac_cv_use_xpm='wxUSE_XPM=no'
9978 fi
9979
9980else
9981
9982 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9983 if test "x$LINE" != x ; then
9984 eval "DEFAULT_$LINE"
9985 else
9986 no_cache=1
9987 fi
9988
9989 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9990
9991fi;
9992
9993 eval "$ac_cv_use_xpm"
9994 if test "$no_cache" != 1; then
9995 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9996 fi
9997
9998 if test "$wxUSE_XPM" = yes; then
9999 echo "$as_me:$LINENO: result: yes" >&5
10000echo "${ECHO_T}yes" >&6
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004 fi
10005
10006
10007 enablestring=
10008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10009echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10010 no_cache=0
10011 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10012if test "${enable_ico_cur+set}" = set; then
10013 enableval="$enable_ico_cur"
10014
10015 if test "$enableval" = yes; then
10016 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10017 else
10018 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10019 fi
10020
10021else
10022
10023 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10024 if test "x$LINE" != x ; then
10025 eval "DEFAULT_$LINE"
10026 else
10027 no_cache=1
10028 fi
10029
10030 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10031
10032fi;
10033
10034 eval "$ac_cv_use_ico_cur"
10035 if test "$no_cache" != 1; then
10036 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10037 fi
10038
10039 if test "$wxUSE_ICO_CUR" = yes; then
10040 echo "$as_me:$LINENO: result: yes" >&5
10041echo "${ECHO_T}yes" >&6
10042 else
10043 echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6
10045 fi
10046
10047
10048fi
10049
10050
10051
ceec2216
RL
10052# Check whether --with-flavour or --without-flavour was given.
10053if test "${with_flavour+set}" = set; then
10054 withval="$with_flavour"
10055 WX_FLAVOUR="$withval"
10056fi;
10057
10058
10059
a848cd7e
SC
10060 enablestring=
10061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10062echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10063 no_cache=0
10064 # Check whether --enable-official_build or --disable-official_build was given.
10065if test "${enable_official_build+set}" = set; then
10066 enableval="$enable_official_build"
10067
10068 if test "$enableval" = yes; then
10069 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10070 else
10071 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10072 fi
10073
10074else
10075
10076 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10077 if test "x$LINE" != x ; then
10078 eval "DEFAULT_$LINE"
10079 else
10080 no_cache=1
10081 fi
10082
10083 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10084
10085fi;
10086
10087 eval "$ac_cv_use_official_build"
10088 if test "$no_cache" != 1; then
10089 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10090 fi
10091
10092 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10093 echo "$as_me:$LINENO: result: yes" >&5
10094echo "${ECHO_T}yes" >&6
10095 else
10096 echo "$as_me:$LINENO: result: no" >&5
10097echo "${ECHO_T}no" >&6
10098 fi
10099
10100# Check whether --enable-vendor or --disable-vendor was given.
10101if test "${enable_vendor+set}" = set; then
10102 enableval="$enable_vendor"
10103 VENDOR="$enableval"
10104fi;
10105if test "x$VENDOR" = "x"; then
10106 VENDOR="custom"
10107fi
10108
a848cd7e
SC
10109
10110
10111
10112 echo "saving argument cache $wx_arg_cache_file"
10113 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10114
10115
10116
10117echo "$as_me:$LINENO: checking for toolkit" >&5
10118echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10119
10120# In Wine, we need to default to MSW, not GTK or MOTIF
10121if test "$wxUSE_WINE" = "yes"; then
10122 DEFAULT_DEFAULT_wxUSE_GTK=0
10123 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10124 DEFAULT_DEFAULT_wxUSE_MSW=1
10125 wxUSE_SHARED=no
10126fi
10127
10128if test "$wxUSE_GUI" = "yes"; then
10129
10130 if test "$USE_BEOS" = 1; then
10131 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10132echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10133 { (exit 1); exit 1; }; }
10134 fi
10135
10136 if test "$TOOLKIT_GIVEN" = 1; then
10137 for toolkit in `echo $ALL_TOOLKITS`; do
10138 var=wxUSE_$toolkit
10139 eval "value=\$${var}"
10140 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10141 done
10142 else
10143 for toolkit in `echo $ALL_TOOLKITS`; do
10144 if test "$has_toolkit_in_cache" != 1; then
10145 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10146 else
10147 var=DEFAULT_wxUSE_$toolkit
10148 fi
10149 eval "wxUSE_$toolkit=\$${var}"
10150 done
10151 fi
10152
10153 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10154 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10155 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10156
10157 case "${host}" in
10158 *-pc-os2_emx | *-pc-os2-emx )
10159 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10160 esac
10161
10162 case "$NUM_TOOLKITS" in
10163 1)
10164 ;;
10165 0)
10166 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10167echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10168 { (exit 1); exit 1; }; }
10169 ;;
10170 *)
10171 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10172echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10173 { (exit 1); exit 1; }; }
10174 esac
10175
10176 for toolkit in `echo $ALL_TOOLKITS`; do
10177 var=wxUSE_$toolkit
10178 eval "value=\$${var}"
10179 if test "x$value" != x; then
10180 cache_var=CACHE_$toolkit
10181 eval "cache=\$${cache_var}"
10182 if test "$cache" = 1; then
10183 echo "$var=$value" >> ${wx_arg_cache_file}
10184 fi
10185 if test "$value" = 1; then
10186 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10187 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10188echo "${ECHO_T}$toolkit_echo" >&6
10189 fi
10190 fi
10191 done
10192else
10193 if test "x$host_alias" != "x"; then
10194 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10195echo "${ECHO_T}base ($host_alias hosted) only" >&6
10196 else
10197 echo "$as_me:$LINENO: result: base only" >&5
10198echo "${ECHO_T}base only" >&6
10199 fi
10200fi
10201
10202wants_win32=0
10203doesnt_want_win32=0
10204case "${host}" in
10205 *-*-cygwin*)
10206 if test "$wxUSE_MSW" = 1 ; then
10207 wants_win32=1
10208 else
10209 doesnt_want_win32=1
10210 fi
10211 ;;
10212 *-*-mingw*)
10213 wants_win32=1
10214 ;;
10215esac
10216
10217if test "$wxUSE_WINE" = "yes"; then
10218 wants_win32=1
10219 CC=winegcc
10220 CXX=wineg++
10221 RESCOMP=wrc
10222 LDFLAGS_GUI="-mwindows"
10223fi
10224
10225if test "$wants_win32" = 1 ; then
10226 USE_UNIX=0
10227 USE_WIN32=1
10228 cat >>confdefs.h <<\_ACEOF
10229#define __WIN32__ 1
10230_ACEOF
10231
10232 cat >>confdefs.h <<\_ACEOF
10233#define __WIN95__ 1
10234_ACEOF
10235
10236 cat >>confdefs.h <<\_ACEOF
10237#define __WINDOWS__ 1
10238_ACEOF
10239
10240 cat >>confdefs.h <<\_ACEOF
10241#define __GNUWIN32__ 1
10242_ACEOF
10243
10244 cat >>confdefs.h <<\_ACEOF
10245#define STRICT 1
10246_ACEOF
10247
10248 cat >>confdefs.h <<\_ACEOF
10249#define WINVER 0x0400
10250_ACEOF
10251
10252fi
10253if test "$doesnt_want_win32" = 1 ; then
10254 USE_UNIX=1
10255 USE_WIN32=0
10256fi
10257
10258if test "$USE_UNIX" = 1 ; then
10259 wxUSE_UNIX=yes
10260 cat >>confdefs.h <<\_ACEOF
10261#define __UNIX__ 1
10262_ACEOF
10263
10264fi
10265
10266
10267cat >confcache <<\_ACEOF
10268# This file is a shell script that caches the results of configure
10269# tests run on this system so they can be shared between configure
10270# scripts and configure runs, see configure's option --config-cache.
10271# It is not useful on other systems. If it contains results you don't
10272# want to keep, you may remove or edit it.
10273#
10274# config.status only pays attention to the cache file if you give it
10275# the --recheck option to rerun configure.
10276#
10277# `ac_cv_env_foo' variables (set or unset) will be overridden when
10278# loading this file, other *unset* `ac_cv_foo' will be assigned the
10279# following values.
10280
10281_ACEOF
10282
10283# The following way of writing the cache mishandles newlines in values,
10284# but we know of no workaround that is simple, portable, and efficient.
10285# So, don't put newlines in cache variables' values.
10286# Ultrix sh set writes to stderr and can't be redirected directly,
10287# and sets the high bit in the cache file unless we assign to the vars.
10288{
10289 (set) 2>&1 |
10290 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10291 *ac_space=\ *)
10292 # `set' does not quote correctly, so add quotes (double-quote
10293 # substitution turns \\\\ into \\, and sed turns \\ into \).
10294 sed -n \
ac1cb8d3
VS
10295 "s/'/'\\\\''/g;
10296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10297 ;;
10298 *)
10299 # `set' quotes correctly as required by POSIX, so do not add quotes.
10300 sed -n \
ac1cb8d3 10301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10302 ;;
10303 esac;
10304} |
10305 sed '
10306 t clear
10307 : clear
10308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10309 t end
10310 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10311 : end' >>confcache
10312if diff $cache_file confcache >/dev/null 2>&1; then :; else
10313 if test -w $cache_file; then
10314 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10315 cat confcache >$cache_file
10316 else
10317 echo "not updating unwritable cache $cache_file"
10318 fi
10319fi
10320rm -f confcache
10321
10322if test "$build" != "$host" ; then
10323 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10324 CC=$host_alias-gcc
10325 CXX=$host_alias-c++
10326 AR=$host_alias-ar
10327 RANLIB=$host_alias-ranlib
10328 DLLTOOL=$host_alias-dlltool
10329 RESCOMP=$host_alias-windres
a848cd7e
SC
10330 STRIP=$host_alias-strip
10331 else
10332 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10333echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10334 { (exit 1); exit 1; }; }
10335 fi
10336fi
10337
10338CFLAGS=${CFLAGS:=}
10339ac_ext=c
10340ac_cpp='$CPP $CPPFLAGS'
10341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10343ac_compiler_gnu=$ac_cv_c_compiler_gnu
10344if test -n "$ac_tool_prefix"; then
10345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10346set dummy ${ac_tool_prefix}gcc; ac_word=$2
10347echo "$as_me:$LINENO: checking for $ac_word" >&5
10348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10349if test "${ac_cv_prog_CC+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352 if test -n "$CC"; then
10353 ac_cv_prog_CC="$CC" # Let the user override the test.
10354else
10355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356for as_dir in $PATH
10357do
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10364 break 2
10365 fi
10366done
10367done
10368
10369fi
10370fi
10371CC=$ac_cv_prog_CC
10372if test -n "$CC"; then
10373 echo "$as_me:$LINENO: result: $CC" >&5
10374echo "${ECHO_T}$CC" >&6
10375else
10376 echo "$as_me:$LINENO: result: no" >&5
10377echo "${ECHO_T}no" >&6
10378fi
10379
10380fi
10381if test -z "$ac_cv_prog_CC"; then
10382 ac_ct_CC=$CC
10383 # Extract the first word of "gcc", so it can be a program name with args.
10384set dummy gcc; ac_word=$2
10385echo "$as_me:$LINENO: checking for $ac_word" >&5
10386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10387if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10389else
10390 if test -n "$ac_ct_CC"; then
10391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10392else
10393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394for as_dir in $PATH
10395do
10396 IFS=$as_save_IFS
10397 test -z "$as_dir" && as_dir=.
10398 for ac_exec_ext in '' $ac_executable_extensions; do
10399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10400 ac_cv_prog_ac_ct_CC="gcc"
10401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 break 2
10403 fi
10404done
10405done
10406
10407fi
10408fi
10409ac_ct_CC=$ac_cv_prog_ac_ct_CC
10410if test -n "$ac_ct_CC"; then
10411 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10412echo "${ECHO_T}$ac_ct_CC" >&6
10413else
10414 echo "$as_me:$LINENO: result: no" >&5
10415echo "${ECHO_T}no" >&6
10416fi
10417
10418 CC=$ac_ct_CC
10419else
10420 CC="$ac_cv_prog_CC"
10421fi
10422
10423if test -z "$CC"; then
10424 if test -n "$ac_tool_prefix"; then
10425 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10426set dummy ${ac_tool_prefix}cc; ac_word=$2
10427echo "$as_me:$LINENO: checking for $ac_word" >&5
10428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10429if test "${ac_cv_prog_CC+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10431else
10432 if test -n "$CC"; then
10433 ac_cv_prog_CC="$CC" # Let the user override the test.
10434else
10435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436for as_dir in $PATH
10437do
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10442 ac_cv_prog_CC="${ac_tool_prefix}cc"
10443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 break 2
10445 fi
10446done
10447done
10448
10449fi
10450fi
10451CC=$ac_cv_prog_CC
10452if test -n "$CC"; then
10453 echo "$as_me:$LINENO: result: $CC" >&5
10454echo "${ECHO_T}$CC" >&6
10455else
10456 echo "$as_me:$LINENO: result: no" >&5
10457echo "${ECHO_T}no" >&6
10458fi
10459
10460fi
10461if test -z "$ac_cv_prog_CC"; then
10462 ac_ct_CC=$CC
10463 # Extract the first word of "cc", so it can be a program name with args.
10464set dummy cc; ac_word=$2
10465echo "$as_me:$LINENO: checking for $ac_word" >&5
10466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10467if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10469else
10470 if test -n "$ac_ct_CC"; then
10471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10472else
10473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474for as_dir in $PATH
10475do
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_prog_ac_ct_CC="cc"
10481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10483 fi
10484done
10485done
10486
10487fi
10488fi
10489ac_ct_CC=$ac_cv_prog_ac_ct_CC
10490if test -n "$ac_ct_CC"; then
10491 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10492echo "${ECHO_T}$ac_ct_CC" >&6
10493else
10494 echo "$as_me:$LINENO: result: no" >&5
10495echo "${ECHO_T}no" >&6
10496fi
10497
10498 CC=$ac_ct_CC
10499else
10500 CC="$ac_cv_prog_CC"
10501fi
10502
10503fi
10504if test -z "$CC"; then
10505 # Extract the first word of "cc", so it can be a program name with args.
10506set dummy cc; ac_word=$2
10507echo "$as_me:$LINENO: checking for $ac_word" >&5
10508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10509if test "${ac_cv_prog_CC+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511else
10512 if test -n "$CC"; then
10513 ac_cv_prog_CC="$CC" # Let the user override the test.
10514else
10515 ac_prog_rejected=no
10516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517for as_dir in $PATH
10518do
10519 IFS=$as_save_IFS
10520 test -z "$as_dir" && as_dir=.
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10524 ac_prog_rejected=yes
10525 continue
10526 fi
10527 ac_cv_prog_CC="cc"
10528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 break 2
10530 fi
10531done
10532done
10533
10534if test $ac_prog_rejected = yes; then
10535 # We found a bogon in the path, so make sure we never use it.
10536 set dummy $ac_cv_prog_CC
10537 shift
10538 if test $# != 0; then
10539 # We chose a different compiler from the bogus one.
10540 # However, it has the same basename, so the bogon will be chosen
10541 # first if we set CC to just the basename; use the full file name.
10542 shift
10543 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10544 fi
10545fi
10546fi
10547fi
10548CC=$ac_cv_prog_CC
10549if test -n "$CC"; then
10550 echo "$as_me:$LINENO: result: $CC" >&5
10551echo "${ECHO_T}$CC" >&6
10552else
10553 echo "$as_me:$LINENO: result: no" >&5
10554echo "${ECHO_T}no" >&6
10555fi
10556
10557fi
10558if test -z "$CC"; then
10559 if test -n "$ac_tool_prefix"; then
10560 for ac_prog in cl
10561 do
10562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10564echo "$as_me:$LINENO: checking for $ac_word" >&5
10565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10566if test "${ac_cv_prog_CC+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568else
10569 if test -n "$CC"; then
10570 ac_cv_prog_CC="$CC" # Let the user override the test.
10571else
10572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573for as_dir in $PATH
10574do
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10579 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10582 fi
10583done
10584done
10585
10586fi
10587fi
10588CC=$ac_cv_prog_CC
10589if test -n "$CC"; then
10590 echo "$as_me:$LINENO: result: $CC" >&5
10591echo "${ECHO_T}$CC" >&6
10592else
10593 echo "$as_me:$LINENO: result: no" >&5
10594echo "${ECHO_T}no" >&6
10595fi
10596
10597 test -n "$CC" && break
10598 done
10599fi
10600if test -z "$CC"; then
10601 ac_ct_CC=$CC
10602 for ac_prog in cl
10603do
10604 # Extract the first word of "$ac_prog", so it can be a program name with args.
10605set dummy $ac_prog; ac_word=$2
10606echo "$as_me:$LINENO: checking for $ac_word" >&5
10607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10608if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610else
10611 if test -n "$ac_ct_CC"; then
10612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10613else
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 ac_cv_prog_ac_ct_CC="$ac_prog"
10622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10624 fi
10625done
10626done
10627
10628fi
10629fi
10630ac_ct_CC=$ac_cv_prog_ac_ct_CC
10631if test -n "$ac_ct_CC"; then
10632 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10633echo "${ECHO_T}$ac_ct_CC" >&6
10634else
10635 echo "$as_me:$LINENO: result: no" >&5
10636echo "${ECHO_T}no" >&6
10637fi
10638
10639 test -n "$ac_ct_CC" && break
10640done
10641
10642 CC=$ac_ct_CC
10643fi
10644
10645fi
10646
10647
10648test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10649See \`config.log' for more details." >&5
10650echo "$as_me: error: no acceptable C compiler found in \$PATH
10651See \`config.log' for more details." >&2;}
10652 { (exit 1); exit 1; }; }
10653
10654# Provide some information about the compiler.
10655echo "$as_me:$LINENO:" \
10656 "checking for C compiler version" >&5
10657ac_compiler=`set X $ac_compile; echo $2`
10658{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10659 (eval $ac_compiler --version </dev/null >&5) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }
10663{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10664 (eval $ac_compiler -v </dev/null >&5) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }
10668{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10669 (eval $ac_compiler -V </dev/null >&5) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }
10673
10674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
10680
10681int
10682main ()
10683{
10684
10685 ;
10686 return 0;
10687}
10688_ACEOF
10689ac_clean_files_save=$ac_clean_files
10690ac_clean_files="$ac_clean_files a.out a.exe b.out"
10691# Try to create an executable without -o first, disregard a.out.
10692# It will help us diagnose broken compilers, and finding out an intuition
10693# of exeext.
ac1cb8d3
VS
10694echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10695echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10696ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10697if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10698 (eval $ac_link_default) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; then
10702 # Find the output, starting from the most likely. This scheme is
10703# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10704# resort.
10705
10706# Be careful to initialize this variable, since it used to be cached.
10707# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10708ac_cv_exeext=
10709# b.out is created by i960 compilers.
10710for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10711do
10712 test -f "$ac_file" || continue
10713 case $ac_file in
10714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10715 ;;
a848cd7e 10716 conftest.$ac_ext )
ac1cb8d3
VS
10717 # This is the source file.
10718 ;;
a848cd7e 10719 [ab].out )
ac1cb8d3
VS
10720 # We found the default executable, but exeext='' is most
10721 # certainly right.
10722 break;;
a848cd7e 10723 *.* )
ac1cb8d3
VS
10724 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10725 # FIXME: I believe we export ac_cv_exeext for Libtool,
10726 # but it would be cool to find out if it's true. Does anybody
10727 # maintain Libtool? --akim.
10728 export ac_cv_exeext
10729 break;;
a848cd7e 10730 * )
ac1cb8d3 10731 break;;
a848cd7e
SC
10732 esac
10733done
10734else
10735 echo "$as_me: failed program was:" >&5
10736sed 's/^/| /' conftest.$ac_ext >&5
10737
10738{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10739See \`config.log' for more details." >&5
10740echo "$as_me: error: C compiler cannot create executables
10741See \`config.log' for more details." >&2;}
10742 { (exit 77); exit 77; }; }
10743fi
10744
10745ac_exeext=$ac_cv_exeext
10746echo "$as_me:$LINENO: result: $ac_file" >&5
10747echo "${ECHO_T}$ac_file" >&6
10748
10749# Check the compiler produces executables we can run. If not, either
10750# the compiler is broken, or we cross compile.
10751echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10752echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10753# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10754# If not cross compiling, check that we can run a simple program.
10755if test "$cross_compiling" != yes; then
10756 if { ac_try='./$ac_file'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 cross_compiling=no
10763 else
10764 if test "$cross_compiling" = maybe; then
10765 cross_compiling=yes
10766 else
10767 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10768If you meant to cross compile, use \`--host'.
10769See \`config.log' for more details." >&5
10770echo "$as_me: error: cannot run C compiled programs.
10771If you meant to cross compile, use \`--host'.
10772See \`config.log' for more details." >&2;}
10773 { (exit 1); exit 1; }; }
10774 fi
10775 fi
10776fi
10777echo "$as_me:$LINENO: result: yes" >&5
10778echo "${ECHO_T}yes" >&6
10779
10780rm -f a.out a.exe conftest$ac_cv_exeext b.out
10781ac_clean_files=$ac_clean_files_save
10782# Check the compiler produces executables we can run. If not, either
10783# the compiler is broken, or we cross compile.
10784echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10785echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10786echo "$as_me:$LINENO: result: $cross_compiling" >&5
10787echo "${ECHO_T}$cross_compiling" >&6
10788
10789echo "$as_me:$LINENO: checking for suffix of executables" >&5
10790echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10792 (eval $ac_link) 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; then
10796 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10797# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10798# work properly (i.e., refer to `conftest.exe'), while it won't with
10799# `rm'.
10800for ac_file in conftest.exe conftest conftest.*; do
10801 test -f "$ac_file" || continue
10802 case $ac_file in
10803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10805 export ac_cv_exeext
10806 break;;
a848cd7e
SC
10807 * ) break;;
10808 esac
10809done
10810else
10811 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10812See \`config.log' for more details." >&5
10813echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10814See \`config.log' for more details." >&2;}
10815 { (exit 1); exit 1; }; }
10816fi
10817
10818rm -f conftest$ac_cv_exeext
10819echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10820echo "${ECHO_T}$ac_cv_exeext" >&6
10821
10822rm -f conftest.$ac_ext
10823EXEEXT=$ac_cv_exeext
10824ac_exeext=$EXEEXT
10825echo "$as_me:$LINENO: checking for suffix of object files" >&5
10826echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10827if test "${ac_cv_objext+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829else
10830 cat >conftest.$ac_ext <<_ACEOF
10831/* confdefs.h. */
10832_ACEOF
10833cat confdefs.h >>conftest.$ac_ext
10834cat >>conftest.$ac_ext <<_ACEOF
10835/* end confdefs.h. */
10836
10837int
10838main ()
10839{
10840
10841 ;
10842 return 0;
10843}
10844_ACEOF
10845rm -f conftest.o conftest.obj
10846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10847 (eval $ac_compile) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; then
10851 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10852 case $ac_file in
10853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10855 break;;
10856 esac
10857done
10858else
10859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10863See \`config.log' for more details." >&5
10864echo "$as_me: error: cannot compute suffix of object files: cannot compile
10865See \`config.log' for more details." >&2;}
10866 { (exit 1); exit 1; }; }
10867fi
10868
10869rm -f conftest.$ac_cv_objext conftest.$ac_ext
10870fi
10871echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10872echo "${ECHO_T}$ac_cv_objext" >&6
10873OBJEXT=$ac_cv_objext
10874ac_objext=$OBJEXT
10875echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10876echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10877if test "${ac_cv_c_compiler_gnu+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879else
10880 cat >conftest.$ac_ext <<_ACEOF
10881/* confdefs.h. */
10882_ACEOF
10883cat confdefs.h >>conftest.$ac_ext
10884cat >>conftest.$ac_ext <<_ACEOF
10885/* end confdefs.h. */
10886
10887int
10888main ()
10889{
10890#ifndef __GNUC__
10891 choke me
10892#endif
10893
10894 ;
10895 return 0;
10896}
10897_ACEOF
10898rm -f conftest.$ac_objext
10899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10900 (eval $ac_compile) 2>conftest.er1
a848cd7e 10901 ac_status=$?
ac1cb8d3
VS
10902 grep -v '^ *+' conftest.er1 >conftest.err
10903 rm -f conftest.er1
10904 cat conftest.err >&5
a848cd7e
SC
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); } &&
2cbbc68d
RD
10907 { ac_try='test -z "$ac_c_werror_flag"
10908 || test ! -s conftest.err'
ac1cb8d3
VS
10909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910 (eval $ac_try) 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; } &&
10914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10916 (eval $ac_try) 2>&5
10917 ac_status=$?
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; }; then
10920 ac_compiler_gnu=yes
10921else
10922 echo "$as_me: failed program was:" >&5
10923sed 's/^/| /' conftest.$ac_ext >&5
10924
10925ac_compiler_gnu=no
10926fi
ac1cb8d3 10927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10928ac_cv_c_compiler_gnu=$ac_compiler_gnu
10929
10930fi
10931echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10932echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10933GCC=`test $ac_compiler_gnu = yes && echo yes`
10934ac_test_CFLAGS=${CFLAGS+set}
10935ac_save_CFLAGS=$CFLAGS
10936CFLAGS="-g"
10937echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10938echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10939if test "${ac_cv_prog_cc_g+set}" = set; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941else
10942 cat >conftest.$ac_ext <<_ACEOF
10943/* confdefs.h. */
10944_ACEOF
10945cat confdefs.h >>conftest.$ac_ext
10946cat >>conftest.$ac_ext <<_ACEOF
10947/* end confdefs.h. */
10948
10949int
10950main ()
10951{
10952
10953 ;
10954 return 0;
10955}
10956_ACEOF
10957rm -f conftest.$ac_objext
10958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10959 (eval $ac_compile) 2>conftest.er1
a848cd7e 10960 ac_status=$?
ac1cb8d3
VS
10961 grep -v '^ *+' conftest.er1 >conftest.err
10962 rm -f conftest.er1
10963 cat conftest.err >&5
a848cd7e
SC
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
2cbbc68d
RD
10966 { ac_try='test -z "$ac_c_werror_flag"
10967 || test ! -s conftest.err'
ac1cb8d3
VS
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_cv_prog_cc_g=yes
10980else
10981 echo "$as_me: failed program was:" >&5
10982sed 's/^/| /' conftest.$ac_ext >&5
10983
10984ac_cv_prog_cc_g=no
10985fi
ac1cb8d3 10986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10987fi
10988echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10989echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10990if test "$ac_test_CFLAGS" = set; then
10991 CFLAGS=$ac_save_CFLAGS
10992elif test $ac_cv_prog_cc_g = yes; then
10993 if test "$GCC" = yes; then
10994 CFLAGS="-g -O2"
10995 else
10996 CFLAGS="-g"
10997 fi
10998else
10999 if test "$GCC" = yes; then
11000 CFLAGS="-O2"
11001 else
11002 CFLAGS=
11003 fi
11004fi
11005echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11006echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11007if test "${ac_cv_prog_cc_stdc+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009else
11010 ac_cv_prog_cc_stdc=no
11011ac_save_CC=$CC
11012cat >conftest.$ac_ext <<_ACEOF
11013/* confdefs.h. */
11014_ACEOF
11015cat confdefs.h >>conftest.$ac_ext
11016cat >>conftest.$ac_ext <<_ACEOF
11017/* end confdefs.h. */
11018#include <stdarg.h>
11019#include <stdio.h>
11020#include <sys/types.h>
11021#include <sys/stat.h>
11022/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11023struct buf { int x; };
11024FILE * (*rcsopen) (struct buf *, struct stat *, int);
11025static char *e (p, i)
11026 char **p;
11027 int i;
11028{
11029 return p[i];
11030}
11031static char *f (char * (*g) (char **, int), char **p, ...)
11032{
11033 char *s;
11034 va_list v;
11035 va_start (v,p);
11036 s = g (p, va_arg (v,int));
11037 va_end (v);
11038 return s;
11039}
ac1cb8d3
VS
11040
11041/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11042 function prototypes and stuff, but not '\xHH' hex character constants.
11043 These don't provoke an error unfortunately, instead are silently treated
11044 as 'x'. The following induces an error, until -std1 is added to get
11045 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11046 array size at least. It's necessary to write '\x00'==0 to get something
11047 that's true only with -std1. */
11048int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11049
a848cd7e
SC
11050int test (int i, double x);
11051struct s1 {int (*f) (int a);};
11052struct s2 {int (*f) (double a);};
11053int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11054int argc;
11055char **argv;
11056int
11057main ()
11058{
11059return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11060 ;
11061 return 0;
11062}
11063_ACEOF
11064# Don't try gcc -ansi; that turns off useful extensions and
11065# breaks some systems' header files.
11066# AIX -qlanglvl=ansi
11067# Ultrix and OSF/1 -std1
11068# HP-UX 10.20 and later -Ae
11069# HP-UX older versions -Aa -D_HPUX_SOURCE
11070# SVR4 -Xc -D__EXTENSIONS__
11071for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11072do
11073 CC="$ac_save_CC $ac_arg"
11074 rm -f conftest.$ac_objext
11075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11076 (eval $ac_compile) 2>conftest.er1
a848cd7e 11077 ac_status=$?
ac1cb8d3
VS
11078 grep -v '^ *+' conftest.er1 >conftest.err
11079 rm -f conftest.er1
11080 cat conftest.err >&5
a848cd7e
SC
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } &&
2cbbc68d
RD
11083 { ac_try='test -z "$ac_c_werror_flag"
11084 || test ! -s conftest.err'
ac1cb8d3
VS
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11087 ac_status=$?
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; } &&
11090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; }; then
11096 ac_cv_prog_cc_stdc=$ac_arg
11097break
11098else
11099 echo "$as_me: failed program was:" >&5
11100sed 's/^/| /' conftest.$ac_ext >&5
11101
11102fi
ac1cb8d3 11103rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11104done
11105rm -f conftest.$ac_ext conftest.$ac_objext
11106CC=$ac_save_CC
11107
11108fi
11109
11110case "x$ac_cv_prog_cc_stdc" in
11111 x|xno)
11112 echo "$as_me:$LINENO: result: none needed" >&5
11113echo "${ECHO_T}none needed" >&6 ;;
11114 *)
11115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11116echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11117 CC="$CC $ac_cv_prog_cc_stdc" ;;
11118esac
11119
11120# Some people use a C++ compiler to compile C. Since we use `exit',
11121# in C++ we need to declare it. In case someone uses the same compiler
11122# for both compiling C and C++ we need to have the C++ compiler decide
11123# the declaration of exit, since it's the most demanding environment.
11124cat >conftest.$ac_ext <<_ACEOF
11125#ifndef __cplusplus
11126 choke me
11127#endif
11128_ACEOF
11129rm -f conftest.$ac_objext
11130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11131 (eval $ac_compile) 2>conftest.er1
a848cd7e 11132 ac_status=$?
ac1cb8d3
VS
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
a848cd7e
SC
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
2cbbc68d
RD
11138 { ac_try='test -z "$ac_c_werror_flag"
11139 || test ! -s conftest.err'
ac1cb8d3
VS
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 for ac_declaration in \
ac1cb8d3 11152 '' \
a848cd7e
SC
11153 'extern "C" void std::exit (int) throw (); using std::exit;' \
11154 'extern "C" void std::exit (int); using std::exit;' \
11155 'extern "C" void exit (int) throw ();' \
11156 'extern "C" void exit (int);' \
11157 'void exit (int);'
11158do
11159 cat >conftest.$ac_ext <<_ACEOF
11160/* confdefs.h. */
11161_ACEOF
11162cat confdefs.h >>conftest.$ac_ext
11163cat >>conftest.$ac_ext <<_ACEOF
11164/* end confdefs.h. */
de59c161 11165$ac_declaration
ac1cb8d3 11166#include <stdlib.h>
a848cd7e
SC
11167int
11168main ()
11169{
11170exit (42);
11171 ;
11172 return 0;
11173}
11174_ACEOF
11175rm -f conftest.$ac_objext
11176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11177 (eval $ac_compile) 2>conftest.er1
a848cd7e 11178 ac_status=$?
ac1cb8d3
VS
11179 grep -v '^ *+' conftest.er1 >conftest.err
11180 rm -f conftest.er1
11181 cat conftest.err >&5
a848cd7e
SC
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } &&
2cbbc68d
RD
11184 { ac_try='test -z "$ac_c_werror_flag"
11185 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 :
11198else
11199 echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202continue
11203fi
ac1cb8d3 11204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11205 cat >conftest.$ac_ext <<_ACEOF
11206/* confdefs.h. */
11207_ACEOF
11208cat confdefs.h >>conftest.$ac_ext
11209cat >>conftest.$ac_ext <<_ACEOF
11210/* end confdefs.h. */
11211$ac_declaration
11212int
11213main ()
11214{
11215exit (42);
11216 ;
11217 return 0;
11218}
11219_ACEOF
11220rm -f conftest.$ac_objext
11221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11222 (eval $ac_compile) 2>conftest.er1
a848cd7e 11223 ac_status=$?
ac1cb8d3
VS
11224 grep -v '^ *+' conftest.er1 >conftest.err
11225 rm -f conftest.er1
11226 cat conftest.err >&5
a848cd7e
SC
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
2cbbc68d
RD
11229 { ac_try='test -z "$ac_c_werror_flag"
11230 || test ! -s conftest.err'
ac1cb8d3
VS
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; } &&
11236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 break
11243else
11244 echo "$as_me: failed program was:" >&5
11245sed 's/^/| /' conftest.$ac_ext >&5
11246
11247fi
ac1cb8d3 11248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11249done
11250rm -f conftest*
11251if test -n "$ac_declaration"; then
11252 echo '#ifdef __cplusplus' >>confdefs.h
11253 echo $ac_declaration >>confdefs.h
11254 echo '#endif' >>confdefs.h
11255fi
11256
11257else
11258 echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261fi
ac1cb8d3 11262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11263ac_ext=c
11264ac_cpp='$CPP $CPPFLAGS'
11265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11267ac_compiler_gnu=$ac_cv_c_compiler_gnu
11268
11269
11270
11271ac_ext=c
11272ac_cpp='$CPP $CPPFLAGS'
11273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11275ac_compiler_gnu=$ac_cv_c_compiler_gnu
11276echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11277echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11278# On Suns, sometimes $CPP names a directory.
11279if test -n "$CPP" && test -d "$CPP"; then
11280 CPP=
11281fi
11282if test -z "$CPP"; then
11283 if test "${ac_cv_prog_CPP+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11285else
11286 # Double quotes because CPP needs to be expanded
11287 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11288 do
11289 ac_preproc_ok=false
11290for ac_c_preproc_warn_flag in '' yes
11291do
11292 # Use a header file that comes with gcc, so configuring glibc
11293 # with a fresh cross-compiler works.
11294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11295 # <limits.h> exists even on freestanding compilers.
11296 # On the NeXT, cc -E runs the code through the compiler's parser,
11297 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
11305# include <limits.h>
11306#else
11307# include <assert.h>
11308#endif
ac1cb8d3 11309 Syntax error
a848cd7e
SC
11310_ACEOF
11311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11313 ac_status=$?
11314 grep -v '^ *+' conftest.er1 >conftest.err
11315 rm -f conftest.er1
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } >/dev/null; then
11319 if test -s conftest.err; then
11320 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11322 else
11323 ac_cpp_err=
11324 fi
11325else
11326 ac_cpp_err=yes
11327fi
11328if test -z "$ac_cpp_err"; then
11329 :
11330else
11331 echo "$as_me: failed program was:" >&5
11332sed 's/^/| /' conftest.$ac_ext >&5
11333
11334 # Broken: fails on valid input.
11335continue
11336fi
11337rm -f conftest.err conftest.$ac_ext
11338
11339 # OK, works on sane cases. Now check whether non-existent headers
11340 # can be detected and how.
11341 cat >conftest.$ac_ext <<_ACEOF
11342/* confdefs.h. */
11343_ACEOF
11344cat confdefs.h >>conftest.$ac_ext
11345cat >>conftest.$ac_ext <<_ACEOF
11346/* end confdefs.h. */
11347#include <ac_nonexistent.h>
11348_ACEOF
11349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11351 ac_status=$?
11352 grep -v '^ *+' conftest.er1 >conftest.err
11353 rm -f conftest.er1
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } >/dev/null; then
11357 if test -s conftest.err; then
11358 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11360 else
11361 ac_cpp_err=
11362 fi
11363else
11364 ac_cpp_err=yes
11365fi
11366if test -z "$ac_cpp_err"; then
11367 # Broken: success on invalid input.
11368continue
11369else
11370 echo "$as_me: failed program was:" >&5
11371sed 's/^/| /' conftest.$ac_ext >&5
11372
11373 # Passes both tests.
11374ac_preproc_ok=:
11375break
11376fi
11377rm -f conftest.err conftest.$ac_ext
11378
11379done
11380# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11381rm -f conftest.err conftest.$ac_ext
11382if $ac_preproc_ok; then
11383 break
11384fi
11385
11386 done
11387 ac_cv_prog_CPP=$CPP
11388
11389fi
11390 CPP=$ac_cv_prog_CPP
11391else
11392 ac_cv_prog_CPP=$CPP
11393fi
11394echo "$as_me:$LINENO: result: $CPP" >&5
11395echo "${ECHO_T}$CPP" >&6
11396ac_preproc_ok=false
11397for ac_c_preproc_warn_flag in '' yes
11398do
11399 # Use a header file that comes with gcc, so configuring glibc
11400 # with a fresh cross-compiler works.
11401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11402 # <limits.h> exists even on freestanding compilers.
11403 # On the NeXT, cc -E runs the code through the compiler's parser,
11404 # not just through cpp. "Syntax error" is here to catch this case.
11405 cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411#ifdef __STDC__
11412# include <limits.h>
11413#else
11414# include <assert.h>
11415#endif
ac1cb8d3 11416 Syntax error
a848cd7e
SC
11417_ACEOF
11418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } >/dev/null; then
11426 if test -s conftest.err; then
11427 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11429 else
11430 ac_cpp_err=
11431 fi
11432else
11433 ac_cpp_err=yes
11434fi
11435if test -z "$ac_cpp_err"; then
11436 :
11437else
11438 echo "$as_me: failed program was:" >&5
11439sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 # Broken: fails on valid input.
11442continue
11443fi
11444rm -f conftest.err conftest.$ac_ext
11445
11446 # OK, works on sane cases. Now check whether non-existent headers
11447 # can be detected and how.
11448 cat >conftest.$ac_ext <<_ACEOF
11449/* confdefs.h. */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h. */
11454#include <ac_nonexistent.h>
11455_ACEOF
11456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11458 ac_status=$?
11459 grep -v '^ *+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } >/dev/null; then
11464 if test -s conftest.err; then
11465 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11467 else
11468 ac_cpp_err=
11469 fi
11470else
11471 ac_cpp_err=yes
11472fi
11473if test -z "$ac_cpp_err"; then
11474 # Broken: success on invalid input.
11475continue
11476else
11477 echo "$as_me: failed program was:" >&5
11478sed 's/^/| /' conftest.$ac_ext >&5
11479
11480 # Passes both tests.
11481ac_preproc_ok=:
11482break
11483fi
11484rm -f conftest.err conftest.$ac_ext
11485
11486done
11487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11488rm -f conftest.err conftest.$ac_ext
11489if $ac_preproc_ok; then
11490 :
11491else
11492 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11493See \`config.log' for more details." >&5
11494echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11495See \`config.log' for more details." >&2;}
11496 { (exit 1); exit 1; }; }
11497fi
11498
11499ac_ext=c
11500ac_cpp='$CPP $CPPFLAGS'
11501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11503ac_compiler_gnu=$ac_cv_c_compiler_gnu
11504
11505
11506echo "$as_me:$LINENO: checking for egrep" >&5
11507echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11508if test "${ac_cv_prog_egrep+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11510else
11511 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11512 then ac_cv_prog_egrep='grep -E'
11513 else ac_cv_prog_egrep='egrep'
11514 fi
11515fi
11516echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11517echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11518 EGREP=$ac_cv_prog_egrep
11519
11520
11521if test $ac_cv_c_compiler_gnu = yes; then
11522 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11523echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11524if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11526else
11527 ac_pattern="Autoconf.*'x'"
11528 cat >conftest.$ac_ext <<_ACEOF
11529/* confdefs.h. */
11530_ACEOF
11531cat confdefs.h >>conftest.$ac_ext
11532cat >>conftest.$ac_ext <<_ACEOF
11533/* end confdefs.h. */
11534#include <sgtty.h>
11535Autoconf TIOCGETP
11536_ACEOF
11537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11538 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11539 ac_cv_prog_gcc_traditional=yes
11540else
11541 ac_cv_prog_gcc_traditional=no
11542fi
11543rm -f conftest*
11544
11545
11546 if test $ac_cv_prog_gcc_traditional = no; then
11547 cat >conftest.$ac_ext <<_ACEOF
11548/* confdefs.h. */
11549_ACEOF
11550cat confdefs.h >>conftest.$ac_ext
11551cat >>conftest.$ac_ext <<_ACEOF
11552/* end confdefs.h. */
11553#include <termio.h>
11554Autoconf TCGETA
11555_ACEOF
11556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11557 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11558 ac_cv_prog_gcc_traditional=yes
11559fi
11560rm -f conftest*
11561
11562 fi
11563fi
11564echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11565echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11566 if test $ac_cv_prog_gcc_traditional = yes; then
11567 CC="$CC -traditional"
11568 fi
11569fi
11570
11571
11572
11573
11574ac_ext=cc
11575ac_cpp='$CXXCPP $CPPFLAGS'
11576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11579
11580
11581CXXFLAGS=${CXXFLAGS:=}
11582ac_ext=cc
11583ac_cpp='$CXXCPP $CPPFLAGS'
11584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11587if test -n "$ac_tool_prefix"; then
11588 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11589 do
11590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11592echo "$as_me:$LINENO: checking for $ac_word" >&5
11593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11594if test "${ac_cv_prog_CXX+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597 if test -n "$CXX"; then
11598 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11599else
11600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601for as_dir in $PATH
11602do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11607 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11610 fi
11611done
11612done
11613
11614fi
11615fi
11616CXX=$ac_cv_prog_CXX
11617if test -n "$CXX"; then
11618 echo "$as_me:$LINENO: result: $CXX" >&5
11619echo "${ECHO_T}$CXX" >&6
11620else
11621 echo "$as_me:$LINENO: result: no" >&5
11622echo "${ECHO_T}no" >&6
11623fi
11624
11625 test -n "$CXX" && break
11626 done
11627fi
11628if test -z "$CXX"; then
11629 ac_ct_CXX=$CXX
11630 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11631do
11632 # Extract the first word of "$ac_prog", so it can be a program name with args.
11633set dummy $ac_prog; ac_word=$2
11634echo "$as_me:$LINENO: checking for $ac_word" >&5
11635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11636if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638else
11639 if test -n "$ac_ct_CXX"; then
11640 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11641else
11642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643for as_dir in $PATH
11644do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649 ac_cv_prog_ac_ct_CXX="$ac_prog"
11650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11652 fi
11653done
11654done
11655
11656fi
11657fi
11658ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11659if test -n "$ac_ct_CXX"; then
11660 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11661echo "${ECHO_T}$ac_ct_CXX" >&6
11662else
11663 echo "$as_me:$LINENO: result: no" >&5
11664echo "${ECHO_T}no" >&6
11665fi
11666
11667 test -n "$ac_ct_CXX" && break
11668done
11669test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11670
11671 CXX=$ac_ct_CXX
11672fi
11673
11674
11675# Provide some information about the compiler.
11676echo "$as_me:$LINENO:" \
11677 "checking for C++ compiler version" >&5
11678ac_compiler=`set X $ac_compile; echo $2`
11679{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11680 (eval $ac_compiler --version </dev/null >&5) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }
11684{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11685 (eval $ac_compiler -v </dev/null >&5) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }
11689{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11690 (eval $ac_compiler -V </dev/null >&5) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }
11694
11695echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11696echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11697if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11699else
11700 cat >conftest.$ac_ext <<_ACEOF
11701/* confdefs.h. */
11702_ACEOF
11703cat confdefs.h >>conftest.$ac_ext
11704cat >>conftest.$ac_ext <<_ACEOF
11705/* end confdefs.h. */
11706
11707int
11708main ()
11709{
11710#ifndef __GNUC__
11711 choke me
11712#endif
11713
11714 ;
11715 return 0;
11716}
11717_ACEOF
11718rm -f conftest.$ac_objext
11719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11720 (eval $ac_compile) 2>conftest.er1
a848cd7e 11721 ac_status=$?
ac1cb8d3
VS
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
a848cd7e
SC
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
2cbbc68d
RD
11727 { ac_try='test -z "$ac_cxx_werror_flag"
11728 || test ! -s conftest.err'
ac1cb8d3
VS
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 ac_compiler_gnu=yes
11741else
11742 echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
11744
11745ac_compiler_gnu=no
11746fi
ac1cb8d3 11747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11748ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11749
11750fi
11751echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11752echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11753GXX=`test $ac_compiler_gnu = yes && echo yes`
11754ac_test_CXXFLAGS=${CXXFLAGS+set}
11755ac_save_CXXFLAGS=$CXXFLAGS
11756CXXFLAGS="-g"
11757echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11758echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11759if test "${ac_cv_prog_cxx_g+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761else
11762 cat >conftest.$ac_ext <<_ACEOF
11763/* confdefs.h. */
11764_ACEOF
11765cat confdefs.h >>conftest.$ac_ext
11766cat >>conftest.$ac_ext <<_ACEOF
11767/* end confdefs.h. */
11768
11769int
11770main ()
11771{
11772
11773 ;
11774 return 0;
11775}
11776_ACEOF
11777rm -f conftest.$ac_objext
11778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11779 (eval $ac_compile) 2>conftest.er1
a848cd7e 11780 ac_status=$?
ac1cb8d3
VS
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
a848cd7e
SC
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } &&
2cbbc68d
RD
11786 { ac_try='test -z "$ac_cxx_werror_flag"
11787 || test ! -s conftest.err'
ac1cb8d3
VS
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_prog_cxx_g=yes
11800else
11801 echo "$as_me: failed program was:" >&5
11802sed 's/^/| /' conftest.$ac_ext >&5
11803
11804ac_cv_prog_cxx_g=no
11805fi
ac1cb8d3 11806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11807fi
11808echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11809echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11810if test "$ac_test_CXXFLAGS" = set; then
11811 CXXFLAGS=$ac_save_CXXFLAGS
11812elif test $ac_cv_prog_cxx_g = yes; then
11813 if test "$GXX" = yes; then
11814 CXXFLAGS="-g -O2"
11815 else
11816 CXXFLAGS="-g"
11817 fi
11818else
11819 if test "$GXX" = yes; then
11820 CXXFLAGS="-O2"
11821 else
11822 CXXFLAGS=
11823 fi
11824fi
11825for ac_declaration in \
ac1cb8d3 11826 '' \
a848cd7e
SC
11827 'extern "C" void std::exit (int) throw (); using std::exit;' \
11828 'extern "C" void std::exit (int); using std::exit;' \
11829 'extern "C" void exit (int) throw ();' \
11830 'extern "C" void exit (int);' \
11831 'void exit (int);'
11832do
11833 cat >conftest.$ac_ext <<_ACEOF
11834/* confdefs.h. */
11835_ACEOF
11836cat confdefs.h >>conftest.$ac_ext
11837cat >>conftest.$ac_ext <<_ACEOF
11838/* end confdefs.h. */
de59c161 11839$ac_declaration
ac1cb8d3 11840#include <stdlib.h>
a848cd7e
SC
11841int
11842main ()
11843{
11844exit (42);
11845 ;
11846 return 0;
11847}
11848_ACEOF
11849rm -f conftest.$ac_objext
11850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11851 (eval $ac_compile) 2>conftest.er1
a848cd7e 11852 ac_status=$?
ac1cb8d3
VS
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
a848cd7e
SC
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } &&
2cbbc68d
RD
11858 { ac_try='test -z "$ac_cxx_werror_flag"
11859 || test ! -s conftest.err'
ac1cb8d3
VS
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 :
11872else
11873 echo "$as_me: failed program was:" >&5
11874sed 's/^/| /' conftest.$ac_ext >&5
11875
11876continue
11877fi
ac1cb8d3 11878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11879 cat >conftest.$ac_ext <<_ACEOF
11880/* confdefs.h. */
11881_ACEOF
11882cat confdefs.h >>conftest.$ac_ext
11883cat >>conftest.$ac_ext <<_ACEOF
11884/* end confdefs.h. */
11885$ac_declaration
11886int
11887main ()
11888{
11889exit (42);
11890 ;
11891 return 0;
11892}
11893_ACEOF
11894rm -f conftest.$ac_objext
11895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11896 (eval $ac_compile) 2>conftest.er1
a848cd7e 11897 ac_status=$?
ac1cb8d3
VS
11898 grep -v '^ *+' conftest.er1 >conftest.err
11899 rm -f conftest.er1
11900 cat conftest.err >&5
a848cd7e
SC
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
2cbbc68d
RD
11903 { ac_try='test -z "$ac_cxx_werror_flag"
11904 || test ! -s conftest.err'
ac1cb8d3
VS
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 break
11917else
11918 echo "$as_me: failed program was:" >&5
11919sed 's/^/| /' conftest.$ac_ext >&5
11920
11921fi
ac1cb8d3 11922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11923done
11924rm -f conftest*
11925if test -n "$ac_declaration"; then
11926 echo '#ifdef __cplusplus' >>confdefs.h
11927 echo $ac_declaration >>confdefs.h
11928 echo '#endif' >>confdefs.h
11929fi
11930
11931ac_ext=cc
11932ac_cpp='$CXXCPP $CPPFLAGS'
11933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11936
11937
11938ac_ext=c
11939ac_cpp='$CPP $CPPFLAGS'
11940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11942ac_compiler_gnu=$ac_cv_c_compiler_gnu
11943
11944
a848cd7e
SC
11945if test -n "$ac_tool_prefix"; then
11946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11947set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11948echo "$as_me:$LINENO: checking for $ac_word" >&5
11949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11950if test "${ac_cv_prog_RANLIB+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 if test -n "$RANLIB"; then
11954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11955else
11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957for as_dir in $PATH
11958do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11966 fi
11967done
11968done
11969
11970fi
11971fi
11972RANLIB=$ac_cv_prog_RANLIB
11973if test -n "$RANLIB"; then
11974 echo "$as_me:$LINENO: result: $RANLIB" >&5
11975echo "${ECHO_T}$RANLIB" >&6
11976else
11977 echo "$as_me:$LINENO: result: no" >&5
11978echo "${ECHO_T}no" >&6
11979fi
11980
11981fi
11982if test -z "$ac_cv_prog_RANLIB"; then
11983 ac_ct_RANLIB=$RANLIB
11984 # Extract the first word of "ranlib", so it can be a program name with args.
11985set dummy ranlib; ac_word=$2
11986echo "$as_me:$LINENO: checking for $ac_word" >&5
11987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11988if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990else
11991 if test -n "$ac_ct_RANLIB"; then
11992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11993else
11994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995for as_dir in $PATH
11996do
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001 ac_cv_prog_ac_ct_RANLIB="ranlib"
12002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12004 fi
12005done
12006done
12007
12008 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12009fi
12010fi
12011ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12012if test -n "$ac_ct_RANLIB"; then
12013 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12014echo "${ECHO_T}$ac_ct_RANLIB" >&6
12015else
12016 echo "$as_me:$LINENO: result: no" >&5
12017echo "${ECHO_T}no" >&6
12018fi
12019
12020 RANLIB=$ac_ct_RANLIB
12021else
12022 RANLIB="$ac_cv_prog_RANLIB"
12023fi
12024
12025
12026# Extract the first word of "ar", so it can be a program name with args.
12027set dummy ar; ac_word=$2
12028echo "$as_me:$LINENO: checking for $ac_word" >&5
12029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12030if test "${ac_cv_prog_AR+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032else
12033 if test -n "$AR"; then
12034 ac_cv_prog_AR="$AR" # Let the user override the test.
12035else
12036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037for as_dir in $PATH
12038do
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12043 ac_cv_prog_AR="ar"
12044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12045 break 2
12046 fi
12047done
12048done
12049
12050fi
12051fi
12052AR=$ac_cv_prog_AR
12053if test -n "$AR"; then
12054 echo "$as_me:$LINENO: result: $AR" >&5
12055echo "${ECHO_T}$AR" >&6
12056else
12057 echo "$as_me:$LINENO: result: no" >&5
12058echo "${ECHO_T}no" >&6
12059fi
12060
12061if test "x$AR" = "x" ; then
77ffb593
JS
12062 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12063echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12064 { (exit 1); exit 1; }; }
12065fi
12066
12067# Find a good install program. We prefer a C program (faster),
12068# so one script is as good as another. But avoid the broken or
12069# incompatible versions:
12070# SysV /etc/install, /usr/sbin/install
12071# SunOS /usr/etc/install
12072# IRIX /sbin/install
12073# AIX /bin/install
12074# AmigaOS /C/install, which installs bootblocks on floppy discs
12075# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12076# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12077# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12078# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12079# ./install, which can be erroneously created by make from ./install.sh.
12080echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12081echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12082if test -z "$INSTALL"; then
12083if test "${ac_cv_path_install+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085else
12086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087for as_dir in $PATH
12088do
12089 IFS=$as_save_IFS
12090 test -z "$as_dir" && as_dir=.
12091 # Account for people who put trailing slashes in PATH elements.
12092case $as_dir/ in
12093 ./ | .// | /cC/* | \
12094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12095 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12096 /usr/ucb/* ) ;;
12097 *)
12098 # OSF1 and SCO ODT 3.0 have their own names for install.
12099 # Don't use installbsd from OSF since it installs stuff as root
12100 # by default.
12101 for ac_prog in ginstall scoinst install; do
12102 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12103 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12104 if test $ac_prog = install &&
12105 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12106 # AIX install. It has an incompatible calling convention.
12107 :
12108 elif test $ac_prog = install &&
12109 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12110 # program-specific install script used by HP pwplus--don't use.
12111 :
12112 else
12113 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12114 break 3
12115 fi
12116 fi
a848cd7e
SC
12117 done
12118 done
12119 ;;
12120esac
12121done
12122
12123
12124fi
12125 if test "${ac_cv_path_install+set}" = set; then
12126 INSTALL=$ac_cv_path_install
12127 else
12128 # As a last resort, use the slow shell script. We don't cache a
12129 # path for INSTALL within a source directory, because that will
12130 # break other packages using the cache if that directory is
12131 # removed, or if the path is relative.
12132 INSTALL=$ac_install_sh
12133 fi
12134fi
12135echo "$as_me:$LINENO: result: $INSTALL" >&5
12136echo "${ECHO_T}$INSTALL" >&6
12137
12138# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12139# It thinks the first close brace ends the variable substitution.
12140test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12141
12142test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12143
12144test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12145
12146
12147case ${INSTALL} in
12148 /* ) # Absolute
12149 ;;
12150 ?:* ) # Drive letter, considered as absolute.
12151 ;;
12152 *)
12153 INSTALL=`pwd`/${INSTALL} ;;
12154esac
12155
a848cd7e
SC
12156
12157case "${host}" in
12158
12159 powerpc-*-darwin* )
12160 INSTALL_PROGRAM="cp -fp"
12161 INSTALL_DATA="cp -fp"
12162 ;;
12163 *)
12164 ;;
12165esac
12166
12167# Extract the first word of "strip", so it can be a program name with args.
12168set dummy strip; ac_word=$2
12169echo "$as_me:$LINENO: checking for $ac_word" >&5
12170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12171if test "${ac_cv_prog_STRIP+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173else
12174 if test -n "$STRIP"; then
12175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12176else
12177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178for as_dir in $PATH
12179do
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12184 ac_cv_prog_STRIP="strip"
12185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12186 break 2
12187 fi
12188done
12189done
12190
12191 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12192fi
12193fi
12194STRIP=$ac_cv_prog_STRIP
12195if test -n "$STRIP"; then
12196 echo "$as_me:$LINENO: result: $STRIP" >&5
12197echo "${ECHO_T}$STRIP" >&6
12198else
12199 echo "$as_me:$LINENO: result: no" >&5
12200echo "${ECHO_T}no" >&6
12201fi
12202
12203
12204echo "$as_me:$LINENO: checking if make is GNU make" >&5
12205echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12206if test "${wx_cv_prog_makeisgnu+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12208else
12209
12210 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12211 egrep -s GNU > /dev/null); then
12212 wx_cv_prog_makeisgnu="yes"
12213 else
12214 wx_cv_prog_makeisgnu="no"
12215 fi
12216
12217fi
12218echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12219echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12220
12221if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12222 IF_GNU_MAKE=""
12223else
12224 IF_GNU_MAKE="#"
12225fi
12226
12227
12228
12229if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12230echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12231echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12232if test "${wx_cv_prog_makevpath+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234else
12235
12236cat - << EOF > confMake
12237check : file
12238 cp \$? \$@
12239 cp \$? final_file
12240EOF
12241
12242if test ! -d sub ; then
12243 mkdir sub
12244fi
12245echo dummy > sub/file
12246${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12247RESULT=$?
12248rm -f sub/file check final_file confMake
12249rmdir sub
12250if test "$RESULT" = 0; then
12251 wx_cv_prog_makevpath="yes"
12252else
12253 wx_cv_prog_makevpath="no"
12254fi
12255
12256fi
12257echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12258echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12259
12260if test "x$wx_cv_prog_makevpath" != "xyes"; then
12261{ { echo "$as_me:$LINENO: error:
12262You need a make-utility that is able to use the variable
12263VPATH correctly.
12264If your version of make does not support VPATH correctly,
12265please install GNU-make (possibly as gmake), and start
12266configure with the following command:
12267export MAKE=gmake; ./configure for sh-type shells
12268setenv MAKE gmake; ./configure for csh-type shells
12269Also please do remember to use gmake in this case every time
12270you are trying to compile.
12271" >&5
12272echo "$as_me: error:
12273You need a make-utility that is able to use the variable
12274VPATH correctly.
12275If your version of make does not support VPATH correctly,
12276please install GNU-make (possibly as gmake), and start
12277configure with the following command:
12278export MAKE=gmake; ./configure for sh-type shells
12279setenv MAKE gmake; ./configure for csh-type shells
12280Also please do remember to use gmake in this case every time
12281you are trying to compile.
12282" >&2;}
12283 { (exit 1); exit 1; }; }
12284fi fi
12285echo "$as_me:$LINENO: checking whether ln -s works" >&5
12286echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12287LN_S=$as_ln_s
12288if test "$LN_S" = "ln -s"; then
12289 echo "$as_me:$LINENO: result: yes" >&5
12290echo "${ECHO_T}yes" >&6
12291else
12292 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12293echo "${ECHO_T}no, using $LN_S" >&6
12294fi
12295
12296
12297
12298case "${host}" in
12299 *-pc-os2_emx | *-pc-os2-emx )
12300 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12301 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12302echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12303if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305else
12306 ac_check_lib_save_LIBS=$LIBS
12307LIBS="-lcExt $LIBS"
12308cat >conftest.$ac_ext <<_ACEOF
12309/* confdefs.h. */
12310_ACEOF
12311cat confdefs.h >>conftest.$ac_ext
12312cat >>conftest.$ac_ext <<_ACEOF
12313/* end confdefs.h. */
12314
12315/* Override any gcc2 internal prototype to avoid an error. */
12316#ifdef __cplusplus
12317extern "C"
12318#endif
12319/* We use char because int might match the return type of a gcc2
12320 builtin and then its argument prototype would still apply. */
12321char drand48 ();
12322int
12323main ()
12324{
12325drand48 ();
12326 ;
12327 return 0;
12328}
12329_ACEOF
12330rm -f conftest.$ac_objext conftest$ac_exeext
12331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12332 (eval $ac_link) 2>conftest.er1
a848cd7e 12333 ac_status=$?
ac1cb8d3
VS
12334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
a848cd7e
SC
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } &&
2cbbc68d
RD
12339 { ac_try='test -z "$ac_c_werror_flag"
12340 || test ! -s conftest.err'
ac1cb8d3
VS
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; } &&
12346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_cv_lib_cExt_drand48=yes
12353else
12354 echo "$as_me: failed program was:" >&5
12355sed 's/^/| /' conftest.$ac_ext >&5
12356
12357ac_cv_lib_cExt_drand48=no
12358fi
ac1cb8d3
VS
12359rm -f conftest.err conftest.$ac_objext \
12360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12361LIBS=$ac_check_lib_save_LIBS
12362fi
12363echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12364echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12365if test $ac_cv_lib_cExt_drand48 = yes; then
12366 LIBS="$LIBS -lcExt"
12367fi
12368
12369 else
12370 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12371 fi
12372 echo "$as_me:$LINENO: checking for gcc version" >&5
12373echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12374if test "${wx_cv_gccversion+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376else
12377
12378 cat >conftest.$ac_ext <<_ACEOF
12379/* confdefs.h. */
12380_ACEOF
12381cat confdefs.h >>conftest.$ac_ext
12382cat >>conftest.$ac_ext <<_ACEOF
12383/* end confdefs.h. */
12384
12385int
12386main ()
12387{
12388
12389 #if (__GNUC__ < 3)
12390 #error old gcc
12391 #endif
12392
12393 ;
12394 return 0;
12395}
12396_ACEOF
12397rm -f conftest.$ac_objext
12398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12399 (eval $ac_compile) 2>conftest.er1
a848cd7e 12400 ac_status=$?
ac1cb8d3
VS
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
a848cd7e
SC
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
2cbbc68d
RD
12406 { ac_try='test -z "$ac_c_werror_flag"
12407 || test ! -s conftest.err'
ac1cb8d3
VS
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; } &&
12413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
12419
12420 cat >conftest.$ac_ext <<_ACEOF
12421/* confdefs.h. */
12422_ACEOF
12423cat confdefs.h >>conftest.$ac_ext
12424cat >>conftest.$ac_ext <<_ACEOF
12425/* end confdefs.h. */
12426
12427int
12428main ()
12429{
12430
12431 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12432 #error intermediate gcc
12433 #endif
12434
12435 ;
12436 return 0;
12437}
12438_ACEOF
12439rm -f conftest.$ac_objext
12440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12441 (eval $ac_compile) 2>conftest.er1
a848cd7e 12442 ac_status=$?
ac1cb8d3
VS
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
a848cd7e
SC
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
2cbbc68d
RD
12448 { ac_try='test -z "$ac_c_werror_flag"
12449 || test ! -s conftest.err'
ac1cb8d3
VS
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; } &&
12455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461
12462 wx_cv_gccversion=Innotek
12463
12464else
12465 echo "$as_me: failed program was:" >&5
12466sed 's/^/| /' conftest.$ac_ext >&5
12467
12468
12469 wx_cv_gccversion=3
12470
12471
12472fi
ac1cb8d3 12473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12474
12475else
12476 echo "$as_me: failed program was:" >&5
12477sed 's/^/| /' conftest.$ac_ext >&5
12478
12479
12480 wx_cv_gccversion=2
12481
12482
12483fi
ac1cb8d3 12484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12485
12486fi
12487echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12488echo "${ECHO_T}$wx_cv_gccversion" >&6
12489 if test "$wx_cv_gccversion" = "2"; then
12490 LIBS="$LIBS -lstdcpp"
12491 LDFLAGS="$LDFLAGS -Zsysv-signals"
12492 else
12493 if test "$wx_cv_gccversion" = "3"; then
12494 LIBS="$LIBS -lstdcxx"
12495 LDFLAGS="$LDFLAGS -Zsysv-signals"
12496 else
12497 LIBS="$LIBS -lstdc++"
12498 fi
12499 fi
12500 if test "$wxUSE_OMF" = "yes"; then
de59c161 12501 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12502 fi
12503 ;;
12504 *)
12505
12506
12507
12508 ac_ext=cc
12509ac_cpp='$CXXCPP $CPPFLAGS'
12510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12513
12514
12515
12516echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12517echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12518if test "${ac_cv_string_strcasecmp+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520else
12521
12522 cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528
12529 #include <string.h>
12530
12531int
12532main ()
12533{
12534
12535 strcasecmp("foo", "bar");
12536
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541rm -f conftest.$ac_objext conftest$ac_exeext
12542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12543 (eval $ac_link) 2>conftest.er1
a848cd7e 12544 ac_status=$?
ac1cb8d3
VS
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
a848cd7e
SC
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
2cbbc68d
RD
12550 { ac_try='test -z "$ac_cxx_werror_flag"
12551 || test ! -s conftest.err'
ac1cb8d3
VS
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_string_strcasecmp=yes
12564else
12565 echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568ac_cv_string_strcasecmp=no
12569
12570fi
ac1cb8d3
VS
12571rm -f conftest.err conftest.$ac_objext \
12572 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12573
12574fi
12575echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12576echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12577
12578 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12579 cat >>confdefs.h <<\_ACEOF
12580#define HAVE_STRCASECMP_IN_STRING_H 1
12581_ACEOF
12582
12583 else
12584 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12585echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12586if test "${ac_cv_strings_strcasecmp+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588else
12589
12590 cat >conftest.$ac_ext <<_ACEOF
12591/* confdefs.h. */
12592_ACEOF
12593cat confdefs.h >>conftest.$ac_ext
12594cat >>conftest.$ac_ext <<_ACEOF
12595/* end confdefs.h. */
12596
12597 #include <strings.h>
12598
12599int
12600main ()
12601{
12602
12603 strcasecmp("foo", "bar");
12604
12605 ;
12606 return 0;
12607}
12608_ACEOF
12609rm -f conftest.$ac_objext conftest$ac_exeext
12610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12611 (eval $ac_link) 2>conftest.er1
a848cd7e 12612 ac_status=$?
ac1cb8d3
VS
12613 grep -v '^ *+' conftest.er1 >conftest.err
12614 rm -f conftest.er1
12615 cat conftest.err >&5
a848cd7e
SC
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } &&
2cbbc68d
RD
12618 { ac_try='test -z "$ac_cxx_werror_flag"
12619 || test ! -s conftest.err'
ac1cb8d3
VS
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; } &&
12625 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_cv_strings_strcasecmp=yes
12632else
12633 echo "$as_me: failed program was:" >&5
12634sed 's/^/| /' conftest.$ac_ext >&5
12635
12636ac_cv_strings_strcasecmp=no
12637
12638fi
ac1cb8d3
VS
12639rm -f conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12641
12642fi
12643echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12644echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12645
0c3c69fc 12646 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12647 cat >>confdefs.h <<\_ACEOF
12648#define HAVE_STRCASECMP_IN_STRINGS_H 1
12649_ACEOF
12650
12651 else
12652 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12653echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12654 { (exit 1); exit 1; }; }
12655 fi
12656 fi
12657
12658 ac_ext=c
12659ac_cpp='$CPP $CPPFLAGS'
12660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12662ac_compiler_gnu=$ac_cv_c_compiler_gnu
12663
12664 ;;
12665esac
12666
12667
12668echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12669echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12670if test "${ac_cv_header_stdc+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672else
12673 cat >conftest.$ac_ext <<_ACEOF
12674/* confdefs.h. */
12675_ACEOF
12676cat confdefs.h >>conftest.$ac_ext
12677cat >>conftest.$ac_ext <<_ACEOF
12678/* end confdefs.h. */
12679#include <stdlib.h>
12680#include <stdarg.h>
12681#include <string.h>
12682#include <float.h>
12683
12684int
12685main ()
12686{
12687
12688 ;
12689 return 0;
12690}
12691_ACEOF
12692rm -f conftest.$ac_objext
12693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12694 (eval $ac_compile) 2>conftest.er1
a848cd7e 12695 ac_status=$?
ac1cb8d3
VS
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
a848cd7e
SC
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
2cbbc68d
RD
12701 { ac_try='test -z "$ac_c_werror_flag"
12702 || test ! -s conftest.err'
ac1cb8d3
VS
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_header_stdc=yes
12715else
12716 echo "$as_me: failed program was:" >&5
12717sed 's/^/| /' conftest.$ac_ext >&5
12718
12719ac_cv_header_stdc=no
12720fi
ac1cb8d3 12721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12722
12723if test $ac_cv_header_stdc = yes; then
12724 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12725 cat >conftest.$ac_ext <<_ACEOF
12726/* confdefs.h. */
12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h. */
12731#include <string.h>
12732
12733_ACEOF
12734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12735 $EGREP "memchr" >/dev/null 2>&1; then
12736 :
12737else
12738 ac_cv_header_stdc=no
12739fi
12740rm -f conftest*
12741
12742fi
12743
12744if test $ac_cv_header_stdc = yes; then
12745 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12746 cat >conftest.$ac_ext <<_ACEOF
12747/* confdefs.h. */
12748_ACEOF
12749cat confdefs.h >>conftest.$ac_ext
12750cat >>conftest.$ac_ext <<_ACEOF
12751/* end confdefs.h. */
12752#include <stdlib.h>
12753
12754_ACEOF
12755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12756 $EGREP "free" >/dev/null 2>&1; then
12757 :
12758else
12759 ac_cv_header_stdc=no
12760fi
12761rm -f conftest*
12762
12763fi
12764
12765if test $ac_cv_header_stdc = yes; then
12766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12767 if test "$cross_compiling" = yes; then
12768 :
12769else
12770 cat >conftest.$ac_ext <<_ACEOF
12771/* confdefs.h. */
12772_ACEOF
12773cat confdefs.h >>conftest.$ac_ext
12774cat >>conftest.$ac_ext <<_ACEOF
12775/* end confdefs.h. */
12776#include <ctype.h>
12777#if ((' ' & 0x0FF) == 0x020)
12778# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12779# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12780#else
12781# define ISLOWER(c) \
ac1cb8d3
VS
12782 (('a' <= (c) && (c) <= 'i') \
12783 || ('j' <= (c) && (c) <= 'r') \
12784 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12785# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12786#endif
12787
12788#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12789int
12790main ()
12791{
12792 int i;
12793 for (i = 0; i < 256; i++)
12794 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12795 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12796 exit(2);
12797 exit (0);
12798}
12799_ACEOF
12800rm -f conftest$ac_exeext
12801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 :
12812else
12813 echo "$as_me: program exited with status $ac_status" >&5
12814echo "$as_me: failed program was:" >&5
12815sed 's/^/| /' conftest.$ac_ext >&5
12816
12817( exit $ac_status )
12818ac_cv_header_stdc=no
12819fi
ac1cb8d3 12820rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12821fi
12822fi
12823fi
12824echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12825echo "${ECHO_T}$ac_cv_header_stdc" >&6
12826if test $ac_cv_header_stdc = yes; then
12827
12828cat >>confdefs.h <<\_ACEOF
12829#define STDC_HEADERS 1
12830_ACEOF
12831
12832fi
12833
12834# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12845 inttypes.h stdint.h unistd.h
a848cd7e
SC
12846do
12847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12848echo "$as_me:$LINENO: checking for $ac_header" >&5
12849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12850if eval "test \"\${$as_ac_Header+set}\" = set"; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852else
12853 cat >conftest.$ac_ext <<_ACEOF
12854/* confdefs.h. */
12855_ACEOF
12856cat confdefs.h >>conftest.$ac_ext
12857cat >>conftest.$ac_ext <<_ACEOF
12858/* end confdefs.h. */
12859$ac_includes_default
12860
12861#include <$ac_header>
12862_ACEOF
12863rm -f conftest.$ac_objext
12864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12865 (eval $ac_compile) 2>conftest.er1
a848cd7e 12866 ac_status=$?
ac1cb8d3
VS
12867 grep -v '^ *+' conftest.er1 >conftest.err
12868 rm -f conftest.er1
12869 cat conftest.err >&5
a848cd7e
SC
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
2cbbc68d
RD
12872 { ac_try='test -z "$ac_c_werror_flag"
12873 || test ! -s conftest.err'
ac1cb8d3
VS
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12876 ac_status=$?
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; } &&
12879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12882 ac_status=$?
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885 eval "$as_ac_Header=yes"
12886else
12887 echo "$as_me: failed program was:" >&5
12888sed 's/^/| /' conftest.$ac_ext >&5
12889
12890eval "$as_ac_Header=no"
12891fi
ac1cb8d3 12892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12893fi
12894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12896if test `eval echo '${'$as_ac_Header'}'` = yes; then
12897 cat >>confdefs.h <<_ACEOF
12898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12899_ACEOF
12900
12901fi
12902
12903done
12904
12905
12906
12907for ac_header in stdlib.h
12908do
12909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12910if eval "test \"\${$as_ac_Header+set}\" = set"; then
12911 echo "$as_me:$LINENO: checking for $ac_header" >&5
12912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12913if eval "test \"\${$as_ac_Header+set}\" = set"; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915fi
12916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12918else
12919 # Is the header compilable?
12920echo "$as_me:$LINENO: checking $ac_header usability" >&5
12921echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12922cat >conftest.$ac_ext <<_ACEOF
12923/* confdefs.h. */
12924_ACEOF
12925cat confdefs.h >>conftest.$ac_ext
12926cat >>conftest.$ac_ext <<_ACEOF
12927/* end confdefs.h. */
12928$ac_includes_default
12929#include <$ac_header>
12930_ACEOF
12931rm -f conftest.$ac_objext
12932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12933 (eval $ac_compile) 2>conftest.er1
a848cd7e 12934 ac_status=$?
ac1cb8d3
VS
12935 grep -v '^ *+' conftest.er1 >conftest.err
12936 rm -f conftest.er1
12937 cat conftest.err >&5
a848cd7e
SC
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } &&
2cbbc68d
RD
12940 { ac_try='test -z "$ac_c_werror_flag"
12941 || test ! -s conftest.err'
ac1cb8d3
VS
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_header_compiler=yes
12954else
12955 echo "$as_me: failed program was:" >&5
12956sed 's/^/| /' conftest.$ac_ext >&5
12957
12958ac_header_compiler=no
12959fi
ac1cb8d3 12960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12961echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12962echo "${ECHO_T}$ac_header_compiler" >&6
12963
12964# Is the header present?
12965echo "$as_me:$LINENO: checking $ac_header presence" >&5
12966echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12967cat >conftest.$ac_ext <<_ACEOF
12968/* confdefs.h. */
12969_ACEOF
12970cat confdefs.h >>conftest.$ac_ext
12971cat >>conftest.$ac_ext <<_ACEOF
12972/* end confdefs.h. */
12973#include <$ac_header>
12974_ACEOF
12975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } >/dev/null; then
12983 if test -s conftest.err; then
12984 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12986 else
12987 ac_cpp_err=
12988 fi
12989else
12990 ac_cpp_err=yes
12991fi
12992if test -z "$ac_cpp_err"; then
12993 ac_header_preproc=yes
12994else
12995 echo "$as_me: failed program was:" >&5
12996sed 's/^/| /' conftest.$ac_ext >&5
12997
12998 ac_header_preproc=no
12999fi
13000rm -f conftest.err conftest.$ac_ext
13001echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13002echo "${ECHO_T}$ac_header_preproc" >&6
13003
13004# So? What about this header?
ac1cb8d3
VS
13005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13006 yes:no: )
a848cd7e
SC
13007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13008echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13010echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13011 ac_header_preproc=yes
a848cd7e 13012 ;;
ac1cb8d3 13013 no:yes:* )
a848cd7e
SC
13014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13015echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13017echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13019echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13021echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13023echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13025echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13026 (
13027 cat <<\_ASBOX
ac1cb8d3
VS
13028## ----------------------------------------- ##
13029## Report this to wx-dev@lists.wxwidgets.org ##
13030## ----------------------------------------- ##
a848cd7e
SC
13031_ASBOX
13032 ) |
13033 sed "s/^/$as_me: WARNING: /" >&2
13034 ;;
13035esac
13036echo "$as_me:$LINENO: checking for $ac_header" >&5
13037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13038if eval "test \"\${$as_ac_Header+set}\" = set"; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040else
ac1cb8d3 13041 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13042fi
13043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13045
13046fi
13047if test `eval echo '${'$as_ac_Header'}'` = yes; then
13048 cat >>confdefs.h <<_ACEOF
13049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13050_ACEOF
13051
13052fi
13053
13054done
13055
13056
13057for ac_header in malloc.h
13058do
13059as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13060if eval "test \"\${$as_ac_Header+set}\" = set"; then
13061 echo "$as_me:$LINENO: checking for $ac_header" >&5
13062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13063if eval "test \"\${$as_ac_Header+set}\" = set"; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13065fi
13066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13068else
13069 # Is the header compilable?
13070echo "$as_me:$LINENO: checking $ac_header usability" >&5
13071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13072cat >conftest.$ac_ext <<_ACEOF
13073/* confdefs.h. */
13074_ACEOF
13075cat confdefs.h >>conftest.$ac_ext
13076cat >>conftest.$ac_ext <<_ACEOF
13077/* end confdefs.h. */
13078$ac_includes_default
13079#include <$ac_header>
13080_ACEOF
13081rm -f conftest.$ac_objext
13082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13083 (eval $ac_compile) 2>conftest.er1
a848cd7e 13084 ac_status=$?
ac1cb8d3
VS
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
a848cd7e
SC
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } &&
2cbbc68d
RD
13090 { ac_try='test -z "$ac_c_werror_flag"
13091 || test ! -s conftest.err'
ac1cb8d3
VS
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; } &&
13097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 ac_header_compiler=yes
13104else
13105 echo "$as_me: failed program was:" >&5
13106sed 's/^/| /' conftest.$ac_ext >&5
13107
13108ac_header_compiler=no
13109fi
ac1cb8d3 13110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13111echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13112echo "${ECHO_T}$ac_header_compiler" >&6
13113
13114# Is the header present?
13115echo "$as_me:$LINENO: checking $ac_header presence" >&5
13116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13117cat >conftest.$ac_ext <<_ACEOF
13118/* confdefs.h. */
13119_ACEOF
13120cat confdefs.h >>conftest.$ac_ext
13121cat >>conftest.$ac_ext <<_ACEOF
13122/* end confdefs.h. */
13123#include <$ac_header>
13124_ACEOF
13125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } >/dev/null; then
13133 if test -s conftest.err; then
13134 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13136 else
13137 ac_cpp_err=
13138 fi
13139else
13140 ac_cpp_err=yes
13141fi
13142if test -z "$ac_cpp_err"; then
13143 ac_header_preproc=yes
13144else
13145 echo "$as_me: failed program was:" >&5
13146sed 's/^/| /' conftest.$ac_ext >&5
13147
13148 ac_header_preproc=no
13149fi
13150rm -f conftest.err conftest.$ac_ext
13151echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13152echo "${ECHO_T}$ac_header_preproc" >&6
13153
13154# So? What about this header?
ac1cb8d3
VS
13155case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13156 yes:no: )
a848cd7e
SC
13157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13158echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13160echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13161 ac_header_preproc=yes
a848cd7e 13162 ;;
ac1cb8d3 13163 no:yes:* )
a848cd7e
SC
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13167echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13169echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13171echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13175echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13176 (
13177 cat <<\_ASBOX
ac1cb8d3
VS
13178## ----------------------------------------- ##
13179## Report this to wx-dev@lists.wxwidgets.org ##
13180## ----------------------------------------- ##
a848cd7e
SC
13181_ASBOX
13182 ) |
13183 sed "s/^/$as_me: WARNING: /" >&2
13184 ;;
13185esac
13186echo "$as_me:$LINENO: checking for $ac_header" >&5
13187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13188if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13190else
ac1cb8d3 13191 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13192fi
13193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13194echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13195
13196fi
13197if test `eval echo '${'$as_ac_Header'}'` = yes; then
13198 cat >>confdefs.h <<_ACEOF
13199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13200_ACEOF
13201
13202fi
13203
13204done
13205
13206
13207for ac_header in unistd.h
13208do
13209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13210if eval "test \"\${$as_ac_Header+set}\" = set"; then
13211 echo "$as_me:$LINENO: checking for $ac_header" >&5
13212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13213if eval "test \"\${$as_ac_Header+set}\" = set"; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13215fi
13216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13218else
13219 # Is the header compilable?
13220echo "$as_me:$LINENO: checking $ac_header usability" >&5
13221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13222cat >conftest.$ac_ext <<_ACEOF
13223/* confdefs.h. */
13224_ACEOF
13225cat confdefs.h >>conftest.$ac_ext
13226cat >>conftest.$ac_ext <<_ACEOF
13227/* end confdefs.h. */
13228$ac_includes_default
13229#include <$ac_header>
13230_ACEOF
13231rm -f conftest.$ac_objext
13232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13233 (eval $ac_compile) 2>conftest.er1
a848cd7e 13234 ac_status=$?
ac1cb8d3
VS
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
a848cd7e
SC
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
2cbbc68d
RD
13240 { ac_try='test -z "$ac_c_werror_flag"
13241 || test ! -s conftest.err'
ac1cb8d3
VS
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 ac_header_compiler=yes
13254else
13255 echo "$as_me: failed program was:" >&5
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
13258ac_header_compiler=no
13259fi
ac1cb8d3 13260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13261echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13262echo "${ECHO_T}$ac_header_compiler" >&6
13263
13264# Is the header present?
13265echo "$as_me:$LINENO: checking $ac_header presence" >&5
13266echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13267cat >conftest.$ac_ext <<_ACEOF
13268/* confdefs.h. */
13269_ACEOF
13270cat confdefs.h >>conftest.$ac_ext
13271cat >>conftest.$ac_ext <<_ACEOF
13272/* end confdefs.h. */
13273#include <$ac_header>
13274_ACEOF
13275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13277 ac_status=$?
13278 grep -v '^ *+' conftest.er1 >conftest.err
13279 rm -f conftest.er1
13280 cat conftest.err >&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } >/dev/null; then
13283 if test -s conftest.err; then
13284 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13286 else
13287 ac_cpp_err=
13288 fi
13289else
13290 ac_cpp_err=yes
13291fi
13292if test -z "$ac_cpp_err"; then
13293 ac_header_preproc=yes
13294else
13295 echo "$as_me: failed program was:" >&5
13296sed 's/^/| /' conftest.$ac_ext >&5
13297
13298 ac_header_preproc=no
13299fi
13300rm -f conftest.err conftest.$ac_ext
13301echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13302echo "${ECHO_T}$ac_header_preproc" >&6
13303
13304# So? What about this header?
ac1cb8d3
VS
13305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13306 yes:no: )
a848cd7e
SC
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13308echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13310echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13311 ac_header_preproc=yes
a848cd7e 13312 ;;
ac1cb8d3 13313 no:yes:* )
a848cd7e
SC
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13315echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13317echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13319echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13321echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13323echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13325echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13326 (
13327 cat <<\_ASBOX
ac1cb8d3
VS
13328## ----------------------------------------- ##
13329## Report this to wx-dev@lists.wxwidgets.org ##
13330## ----------------------------------------- ##
a848cd7e
SC
13331_ASBOX
13332 ) |
13333 sed "s/^/$as_me: WARNING: /" >&2
13334 ;;
13335esac
13336echo "$as_me:$LINENO: checking for $ac_header" >&5
13337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13338if eval "test \"\${$as_ac_Header+set}\" = set"; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340else
ac1cb8d3 13341 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13342fi
13343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13345
13346fi
13347if test `eval echo '${'$as_ac_Header'}'` = yes; then
13348 cat >>confdefs.h <<_ACEOF
13349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13350_ACEOF
13351
13352fi
13353
13354done
13355
13356
13357for ac_header in wchar.h
13358do
13359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13360if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361 echo "$as_me:$LINENO: checking for $ac_header" >&5
13362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13363if eval "test \"\${$as_ac_Header+set}\" = set"; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365fi
13366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13368else
13369 # Is the header compilable?
13370echo "$as_me:$LINENO: checking $ac_header usability" >&5
13371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13372cat >conftest.$ac_ext <<_ACEOF
13373/* confdefs.h. */
13374_ACEOF
13375cat confdefs.h >>conftest.$ac_ext
13376cat >>conftest.$ac_ext <<_ACEOF
13377/* end confdefs.h. */
13378$ac_includes_default
13379#include <$ac_header>
13380_ACEOF
13381rm -f conftest.$ac_objext
13382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13383 (eval $ac_compile) 2>conftest.er1
a848cd7e 13384 ac_status=$?
ac1cb8d3
VS
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
a848cd7e
SC
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
2cbbc68d
RD
13390 { ac_try='test -z "$ac_c_werror_flag"
13391 || test ! -s conftest.err'
ac1cb8d3
VS
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_header_compiler=yes
13404else
13405 echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
13408ac_header_compiler=no
13409fi
ac1cb8d3 13410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13412echo "${ECHO_T}$ac_header_compiler" >&6
13413
13414# Is the header present?
13415echo "$as_me:$LINENO: checking $ac_header presence" >&5
13416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13417cat >conftest.$ac_ext <<_ACEOF
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423#include <$ac_header>
13424_ACEOF
13425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13427 ac_status=$?
13428 grep -v '^ *+' conftest.er1 >conftest.err
13429 rm -f conftest.er1
13430 cat conftest.err >&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } >/dev/null; then
13433 if test -s conftest.err; then
13434 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13436 else
13437 ac_cpp_err=
13438 fi
13439else
13440 ac_cpp_err=yes
13441fi
13442if test -z "$ac_cpp_err"; then
13443 ac_header_preproc=yes
13444else
13445 echo "$as_me: failed program was:" >&5
13446sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 ac_header_preproc=no
13449fi
13450rm -f conftest.err conftest.$ac_ext
13451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13452echo "${ECHO_T}$ac_header_preproc" >&6
13453
13454# So? What about this header?
ac1cb8d3
VS
13455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13456 yes:no: )
a848cd7e
SC
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13461 ac_header_preproc=yes
a848cd7e 13462 ;;
ac1cb8d3 13463 no:yes:* )
a848cd7e
SC
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13471echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13476 (
13477 cat <<\_ASBOX
ac1cb8d3
VS
13478## ----------------------------------------- ##
13479## Report this to wx-dev@lists.wxwidgets.org ##
13480## ----------------------------------------- ##
a848cd7e
SC
13481_ASBOX
13482 ) |
13483 sed "s/^/$as_me: WARNING: /" >&2
13484 ;;
13485esac
13486echo "$as_me:$LINENO: checking for $ac_header" >&5
13487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13488if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490else
ac1cb8d3 13491 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13492fi
13493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13495
13496fi
13497if test `eval echo '${'$as_ac_Header'}'` = yes; then
13498 cat >>confdefs.h <<_ACEOF
13499#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13500_ACEOF
13501
13502fi
13503
13504done
13505
13506
13507if test "$ac_cv_header_wchar_h" != "yes"; then
13508
13509for ac_header in wcstr.h
13510do
13511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13512if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513 echo "$as_me:$LINENO: checking for $ac_header" >&5
13514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13515if eval "test \"\${$as_ac_Header+set}\" = set"; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517fi
13518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520else
13521 # Is the header compilable?
13522echo "$as_me:$LINENO: checking $ac_header usability" >&5
13523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13524cat >conftest.$ac_ext <<_ACEOF
13525/* confdefs.h. */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
13529/* end confdefs.h. */
13530$ac_includes_default
13531#include <$ac_header>
13532_ACEOF
13533rm -f conftest.$ac_objext
13534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13535 (eval $ac_compile) 2>conftest.er1
a848cd7e 13536 ac_status=$?
ac1cb8d3
VS
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
a848cd7e
SC
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
2cbbc68d
RD
13542 { ac_try='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
ac1cb8d3
VS
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 ac_header_compiler=yes
13556else
13557 echo "$as_me: failed program was:" >&5
13558sed 's/^/| /' conftest.$ac_ext >&5
13559
13560ac_header_compiler=no
13561fi
ac1cb8d3 13562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13563echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13564echo "${ECHO_T}$ac_header_compiler" >&6
13565
13566# Is the header present?
13567echo "$as_me:$LINENO: checking $ac_header presence" >&5
13568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13569cat >conftest.$ac_ext <<_ACEOF
13570/* confdefs.h. */
13571_ACEOF
13572cat confdefs.h >>conftest.$ac_ext
13573cat >>conftest.$ac_ext <<_ACEOF
13574/* end confdefs.h. */
13575#include <$ac_header>
13576_ACEOF
13577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } >/dev/null; then
13585 if test -s conftest.err; then
13586 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13588 else
13589 ac_cpp_err=
13590 fi
13591else
13592 ac_cpp_err=yes
13593fi
13594if test -z "$ac_cpp_err"; then
13595 ac_header_preproc=yes
13596else
13597 echo "$as_me: failed program was:" >&5
13598sed 's/^/| /' conftest.$ac_ext >&5
13599
13600 ac_header_preproc=no
13601fi
13602rm -f conftest.err conftest.$ac_ext
13603echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13604echo "${ECHO_T}$ac_header_preproc" >&6
13605
13606# So? What about this header?
ac1cb8d3
VS
13607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13608 yes:no: )
a848cd7e
SC
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13613 ac_header_preproc=yes
a848cd7e 13614 ;;
ac1cb8d3 13615 no:yes:* )
a848cd7e
SC
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13628 (
13629 cat <<\_ASBOX
ac1cb8d3
VS
13630## ----------------------------------------- ##
13631## Report this to wx-dev@lists.wxwidgets.org ##
13632## ----------------------------------------- ##
a848cd7e
SC
13633_ASBOX
13634 ) |
13635 sed "s/^/$as_me: WARNING: /" >&2
13636 ;;
13637esac
13638echo "$as_me:$LINENO: checking for $ac_header" >&5
13639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13640if eval "test \"\${$as_ac_Header+set}\" = set"; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642else
ac1cb8d3 13643 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13644fi
13645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13647
13648fi
13649if test `eval echo '${'$as_ac_Header'}'` = yes; then
13650 cat >>confdefs.h <<_ACEOF
13651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13652_ACEOF
13653
13654fi
13655
13656done
13657
13658fi
13659
13660
13661for ac_header in fnmatch.h
13662do
13663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13664if eval "test \"\${$as_ac_Header+set}\" = set"; then
13665 echo "$as_me:$LINENO: checking for $ac_header" >&5
13666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13667if eval "test \"\${$as_ac_Header+set}\" = set"; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669fi
13670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13672else
13673 # Is the header compilable?
13674echo "$as_me:$LINENO: checking $ac_header usability" >&5
13675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13676cat >conftest.$ac_ext <<_ACEOF
13677/* confdefs.h. */
13678_ACEOF
13679cat confdefs.h >>conftest.$ac_ext
13680cat >>conftest.$ac_ext <<_ACEOF
13681/* end confdefs.h. */
13682$ac_includes_default
13683#include <$ac_header>
13684_ACEOF
13685rm -f conftest.$ac_objext
13686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13687 (eval $ac_compile) 2>conftest.er1
a848cd7e 13688 ac_status=$?
ac1cb8d3
VS
13689 grep -v '^ *+' conftest.er1 >conftest.err
13690 rm -f conftest.er1
13691 cat conftest.err >&5
a848cd7e
SC
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
2cbbc68d
RD
13694 { ac_try='test -z "$ac_c_werror_flag"
13695 || test ! -s conftest.err'
ac1cb8d3
VS
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } &&
13701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_header_compiler=yes
13708else
13709 echo "$as_me: failed program was:" >&5
13710sed 's/^/| /' conftest.$ac_ext >&5
13711
13712ac_header_compiler=no
13713fi
ac1cb8d3 13714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13716echo "${ECHO_T}$ac_header_compiler" >&6
13717
13718# Is the header present?
13719echo "$as_me:$LINENO: checking $ac_header presence" >&5
13720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13721cat >conftest.$ac_ext <<_ACEOF
13722/* confdefs.h. */
13723_ACEOF
13724cat confdefs.h >>conftest.$ac_ext
13725cat >>conftest.$ac_ext <<_ACEOF
13726/* end confdefs.h. */
13727#include <$ac_header>
13728_ACEOF
13729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } >/dev/null; then
13737 if test -s conftest.err; then
13738 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13740 else
13741 ac_cpp_err=
13742 fi
13743else
13744 ac_cpp_err=yes
13745fi
13746if test -z "$ac_cpp_err"; then
13747 ac_header_preproc=yes
13748else
13749 echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
13752 ac_header_preproc=no
13753fi
13754rm -f conftest.err conftest.$ac_ext
13755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13756echo "${ECHO_T}$ac_header_preproc" >&6
13757
13758# So? What about this header?
ac1cb8d3
VS
13759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13760 yes:no: )
a848cd7e
SC
13761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13764echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13765 ac_header_preproc=yes
a848cd7e 13766 ;;
ac1cb8d3 13767 no:yes:* )
a848cd7e
SC
13768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13769echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13771echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13773echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13775echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13779echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13780 (
13781 cat <<\_ASBOX
ac1cb8d3
VS
13782## ----------------------------------------- ##
13783## Report this to wx-dev@lists.wxwidgets.org ##
13784## ----------------------------------------- ##
a848cd7e
SC
13785_ASBOX
13786 ) |
13787 sed "s/^/$as_me: WARNING: /" >&2
13788 ;;
13789esac
13790echo "$as_me:$LINENO: checking for $ac_header" >&5
13791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13792if eval "test \"\${$as_ac_Header+set}\" = set"; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13794else
ac1cb8d3 13795 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13796fi
13797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13799
13800fi
13801if test `eval echo '${'$as_ac_Header'}'` = yes; then
13802 cat >>confdefs.h <<_ACEOF
13803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13804_ACEOF
13805
13806fi
13807
13808done
13809
13810
13811if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13812
13813for ac_func in fnmatch
13814do
13815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13816echo "$as_me:$LINENO: checking for $ac_func" >&5
13817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13818if eval "test \"\${$as_ac_var+set}\" = set"; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820else
13821 cat >conftest.$ac_ext <<_ACEOF
13822/* confdefs.h. */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h. */
ac1cb8d3
VS
13827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13829#define $ac_func innocuous_$ac_func
13830
a848cd7e
SC
13831/* System header to define __stub macros and hopefully few prototypes,
13832 which can conflict with char $ac_func (); below.
13833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13834 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13835
a848cd7e
SC
13836#ifdef __STDC__
13837# include <limits.h>
13838#else
13839# include <assert.h>
13840#endif
ac1cb8d3
VS
13841
13842#undef $ac_func
13843
a848cd7e
SC
13844/* Override any gcc2 internal prototype to avoid an error. */
13845#ifdef __cplusplus
13846extern "C"
13847{
13848#endif
13849/* We use char because int might match the return type of a gcc2
13850 builtin and then its argument prototype would still apply. */
13851char $ac_func ();
13852/* The GNU C library defines this for functions which it implements
13853 to always fail with ENOSYS. Some functions are actually named
13854 something starting with __ and the normal name is an alias. */
13855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13856choke me
13857#else
13858char (*f) () = $ac_func;
13859#endif
13860#ifdef __cplusplus
13861}
13862#endif
13863
13864int
13865main ()
13866{
13867return f != $ac_func;
13868 ;
13869 return 0;
13870}
13871_ACEOF
13872rm -f conftest.$ac_objext conftest$ac_exeext
13873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13874 (eval $ac_link) 2>conftest.er1
a848cd7e 13875 ac_status=$?
ac1cb8d3
VS
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
a848cd7e
SC
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
2cbbc68d
RD
13881 { ac_try='test -z "$ac_c_werror_flag"
13882 || test ! -s conftest.err'
ac1cb8d3
VS
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 eval "$as_ac_var=yes"
13895else
13896 echo "$as_me: failed program was:" >&5
13897sed 's/^/| /' conftest.$ac_ext >&5
13898
13899eval "$as_ac_var=no"
13900fi
ac1cb8d3
VS
13901rm -f conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13903fi
13904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13906if test `eval echo '${'$as_ac_var'}'` = yes; then
13907 cat >>confdefs.h <<_ACEOF
13908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13909_ACEOF
13910
13911fi
13912done
13913
13914fi
13915
13916
13917for ac_header in langinfo.h
13918do
13919as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13920if eval "test \"\${$as_ac_Header+set}\" = set"; then
13921 echo "$as_me:$LINENO: checking for $ac_header" >&5
13922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13923if eval "test \"\${$as_ac_Header+set}\" = set"; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13925fi
13926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13928else
13929 # Is the header compilable?
13930echo "$as_me:$LINENO: checking $ac_header usability" >&5
13931echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13932cat >conftest.$ac_ext <<_ACEOF
13933/* confdefs.h. */
13934_ACEOF
13935cat confdefs.h >>conftest.$ac_ext
13936cat >>conftest.$ac_ext <<_ACEOF
13937/* end confdefs.h. */
13938$ac_includes_default
13939#include <$ac_header>
13940_ACEOF
13941rm -f conftest.$ac_objext
13942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13943 (eval $ac_compile) 2>conftest.er1
a848cd7e 13944 ac_status=$?
ac1cb8d3
VS
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
a848cd7e
SC
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
2cbbc68d
RD
13950 { ac_try='test -z "$ac_c_werror_flag"
13951 || test ! -s conftest.err'
ac1cb8d3
VS
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; } &&
13957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_header_compiler=yes
13964else
13965 echo "$as_me: failed program was:" >&5
13966sed 's/^/| /' conftest.$ac_ext >&5
13967
13968ac_header_compiler=no
13969fi
ac1cb8d3 13970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13971echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13972echo "${ECHO_T}$ac_header_compiler" >&6
13973
13974# Is the header present?
13975echo "$as_me:$LINENO: checking $ac_header presence" >&5
13976echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13977cat >conftest.$ac_ext <<_ACEOF
13978/* confdefs.h. */
13979_ACEOF
13980cat confdefs.h >>conftest.$ac_ext
13981cat >>conftest.$ac_ext <<_ACEOF
13982/* end confdefs.h. */
13983#include <$ac_header>
13984_ACEOF
13985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } >/dev/null; then
13993 if test -s conftest.err; then
13994 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13996 else
13997 ac_cpp_err=
13998 fi
13999else
14000 ac_cpp_err=yes
14001fi
14002if test -z "$ac_cpp_err"; then
14003 ac_header_preproc=yes
14004else
14005 echo "$as_me: failed program was:" >&5
14006sed 's/^/| /' conftest.$ac_ext >&5
14007
14008 ac_header_preproc=no
14009fi
14010rm -f conftest.err conftest.$ac_ext
14011echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14012echo "${ECHO_T}$ac_header_preproc" >&6
14013
14014# So? What about this header?
ac1cb8d3
VS
14015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14016 yes:no: )
a848cd7e
SC
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14018echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14020echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14021 ac_header_preproc=yes
a848cd7e 14022 ;;
ac1cb8d3 14023 no:yes:* )
a848cd7e
SC
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14025echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14027echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14029echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14031echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14033echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14035echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14036 (
14037 cat <<\_ASBOX
ac1cb8d3
VS
14038## ----------------------------------------- ##
14039## Report this to wx-dev@lists.wxwidgets.org ##
14040## ----------------------------------------- ##
a848cd7e
SC
14041_ASBOX
14042 ) |
14043 sed "s/^/$as_me: WARNING: /" >&2
14044 ;;
14045esac
14046echo "$as_me:$LINENO: checking for $ac_header" >&5
14047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14048if eval "test \"\${$as_ac_Header+set}\" = set"; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050else
ac1cb8d3 14051 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14052fi
14053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14055
14056fi
14057if test `eval echo '${'$as_ac_Header'}'` = yes; then
14058 cat >>confdefs.h <<_ACEOF
14059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14060_ACEOF
14061
14062fi
14063
14064done
14065
14066
14067case "${host}" in
14068 *-pc-os2_emx | *-pc-os2-emx )
14069 if test $ac_cv_header_langinfo_h = "yes"; then
14070 LIBS="$LIBS -lintl"
14071 fi
14072 ;;
14073esac
14074
14075if test "$wxUSE_GUI" = "yes"; then
14076 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14077
14078for ac_header in X11/Xlib.h
14079do
14080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14081if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082 echo "$as_me:$LINENO: checking for $ac_header" >&5
14083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14084if eval "test \"\${$as_ac_Header+set}\" = set"; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086fi
14087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14089else
14090 # Is the header compilable?
14091echo "$as_me:$LINENO: checking $ac_header usability" >&5
14092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14093cat >conftest.$ac_ext <<_ACEOF
14094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h. */
14099$ac_includes_default
14100#include <$ac_header>
14101_ACEOF
14102rm -f conftest.$ac_objext
14103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14104 (eval $ac_compile) 2>conftest.er1
a848cd7e 14105 ac_status=$?
ac1cb8d3
VS
14106 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1
14108 cat conftest.err >&5
a848cd7e
SC
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
2cbbc68d
RD
14111 { ac_try='test -z "$ac_c_werror_flag"
14112 || test ! -s conftest.err'
ac1cb8d3
VS
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14124 ac_header_compiler=yes
14125else
14126 echo "$as_me: failed program was:" >&5
14127sed 's/^/| /' conftest.$ac_ext >&5
14128
14129ac_header_compiler=no
14130fi
ac1cb8d3 14131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14133echo "${ECHO_T}$ac_header_compiler" >&6
14134
14135# Is the header present?
14136echo "$as_me:$LINENO: checking $ac_header presence" >&5
14137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14138cat >conftest.$ac_ext <<_ACEOF
14139/* confdefs.h. */
14140_ACEOF
14141cat confdefs.h >>conftest.$ac_ext
14142cat >>conftest.$ac_ext <<_ACEOF
14143/* end confdefs.h. */
14144#include <$ac_header>
14145_ACEOF
14146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } >/dev/null; then
14154 if test -s conftest.err; then
14155 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14157 else
14158 ac_cpp_err=
14159 fi
14160else
14161 ac_cpp_err=yes
14162fi
14163if test -z "$ac_cpp_err"; then
14164 ac_header_preproc=yes
14165else
14166 echo "$as_me: failed program was:" >&5
14167sed 's/^/| /' conftest.$ac_ext >&5
14168
14169 ac_header_preproc=no
14170fi
14171rm -f conftest.err conftest.$ac_ext
14172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14173echo "${ECHO_T}$ac_header_preproc" >&6
14174
14175# So? What about this header?
ac1cb8d3
VS
14176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14177 yes:no: )
a848cd7e
SC
14178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14182 ac_header_preproc=yes
a848cd7e 14183 ;;
ac1cb8d3 14184 no:yes:* )
a848cd7e
SC
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14197 (
14198 cat <<\_ASBOX
ac1cb8d3
VS
14199## ----------------------------------------- ##
14200## Report this to wx-dev@lists.wxwidgets.org ##
14201## ----------------------------------------- ##
a848cd7e
SC
14202_ASBOX
14203 ) |
14204 sed "s/^/$as_me: WARNING: /" >&2
14205 ;;
14206esac
14207echo "$as_me:$LINENO: checking for $ac_header" >&5
14208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14209if eval "test \"\${$as_ac_Header+set}\" = set"; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211else
ac1cb8d3 14212 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14213fi
14214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14216
14217fi
14218if test `eval echo '${'$as_ac_Header'}'` = yes; then
14219 cat >>confdefs.h <<_ACEOF
14220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14221_ACEOF
14222
14223fi
14224
14225done
14226
14227
14228for ac_header in X11/XKBlib.h
14229do
14230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14231echo "$as_me:$LINENO: checking for $ac_header" >&5
14232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14233if eval "test \"\${$as_ac_Header+set}\" = set"; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235else
14236 cat >conftest.$ac_ext <<_ACEOF
14237/* confdefs.h. */
14238_ACEOF
14239cat confdefs.h >>conftest.$ac_ext
14240cat >>conftest.$ac_ext <<_ACEOF
14241/* end confdefs.h. */
14242
14243 #if HAVE_X11_XLIB_H
14244 #include <X11/Xlib.h>
14245 #endif
14246
14247
14248#include <$ac_header>
14249_ACEOF
14250rm -f conftest.$ac_objext
14251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14252 (eval $ac_compile) 2>conftest.er1
a848cd7e 14253 ac_status=$?
ac1cb8d3
VS
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
a848cd7e
SC
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
2cbbc68d
RD
14259 { ac_try='test -z "$ac_c_werror_flag"
14260 || test ! -s conftest.err'
ac1cb8d3
VS
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } &&
14266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 eval "$as_ac_Header=yes"
14273else
14274 echo "$as_me: failed program was:" >&5
14275sed 's/^/| /' conftest.$ac_ext >&5
14276
14277eval "$as_ac_Header=no"
14278fi
ac1cb8d3 14279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14280fi
14281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14283if test `eval echo '${'$as_ac_Header'}'` = yes; then
14284 cat >>confdefs.h <<_ACEOF
14285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14286_ACEOF
14287
14288fi
14289
14290done
14291
14292 fi
14293fi
14294
14295
14296echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14297echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14298if test "${ac_cv_c_const+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300else
14301 cat >conftest.$ac_ext <<_ACEOF
14302/* confdefs.h. */
14303_ACEOF
14304cat confdefs.h >>conftest.$ac_ext
14305cat >>conftest.$ac_ext <<_ACEOF
14306/* end confdefs.h. */
14307
14308int
14309main ()
14310{
14311/* FIXME: Include the comments suggested by Paul. */
14312#ifndef __cplusplus
14313 /* Ultrix mips cc rejects this. */
14314 typedef int charset[2];
14315 const charset x;
14316 /* SunOS 4.1.1 cc rejects this. */
14317 char const *const *ccp;
14318 char **p;
14319 /* NEC SVR4.0.2 mips cc rejects this. */
14320 struct point {int x, y;};
14321 static struct point const zero = {0,0};
14322 /* AIX XL C 1.02.0.0 rejects this.
14323 It does not let you subtract one const X* pointer from another in
14324 an arm of an if-expression whose if-part is not a constant
14325 expression */
14326 const char *g = "string";
14327 ccp = &g + (g ? g-g : 0);
14328 /* HPUX 7.0 cc rejects these. */
14329 ++ccp;
14330 p = (char**) ccp;
14331 ccp = (char const *const *) p;
14332 { /* SCO 3.2v4 cc rejects this. */
14333 char *t;
14334 char const *s = 0 ? (char *) 0 : (char const *) 0;
14335
14336 *t++ = 0;
14337 }
14338 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14339 int x[] = {25, 17};
14340 const int *foo = &x[0];
14341 ++foo;
14342 }
14343 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14344 typedef const int *iptr;
14345 iptr p = 0;
14346 ++p;
14347 }
14348 { /* AIX XL C 1.02.0.0 rejects this saying
14349 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14350 struct s { int j; const int *ap[3]; };
14351 struct s *b; b->j = 5;
14352 }
14353 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14354 const int foo = 10;
14355 }
14356#endif
14357
14358 ;
14359 return 0;
14360}
14361_ACEOF
14362rm -f conftest.$ac_objext
14363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14364 (eval $ac_compile) 2>conftest.er1
a848cd7e 14365 ac_status=$?
ac1cb8d3
VS
14366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
a848cd7e
SC
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
2cbbc68d
RD
14371 { ac_try='test -z "$ac_c_werror_flag"
14372 || test ! -s conftest.err'
ac1cb8d3
VS
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; } &&
14378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }; then
14384 ac_cv_c_const=yes
14385else
14386 echo "$as_me: failed program was:" >&5
14387sed 's/^/| /' conftest.$ac_ext >&5
14388
14389ac_cv_c_const=no
14390fi
ac1cb8d3 14391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14392fi
14393echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14394echo "${ECHO_T}$ac_cv_c_const" >&6
14395if test $ac_cv_c_const = no; then
14396
14397cat >>confdefs.h <<\_ACEOF
14398#define const
14399_ACEOF
14400
14401fi
14402
14403echo "$as_me:$LINENO: checking for inline" >&5
14404echo $ECHO_N "checking for inline... $ECHO_C" >&6
14405if test "${ac_cv_c_inline+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407else
14408 ac_cv_c_inline=no
14409for ac_kw in inline __inline__ __inline; do
14410 cat >conftest.$ac_ext <<_ACEOF
14411/* confdefs.h. */
14412_ACEOF
14413cat confdefs.h >>conftest.$ac_ext
14414cat >>conftest.$ac_ext <<_ACEOF
14415/* end confdefs.h. */
14416#ifndef __cplusplus
14417typedef int foo_t;
14418static $ac_kw foo_t static_foo () {return 0; }
14419$ac_kw foo_t foo () {return 0; }
14420#endif
14421
14422_ACEOF
14423rm -f conftest.$ac_objext
14424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14425 (eval $ac_compile) 2>conftest.er1
a848cd7e 14426 ac_status=$?
ac1cb8d3
VS
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
a848cd7e
SC
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
2cbbc68d
RD
14432 { ac_try='test -z "$ac_c_werror_flag"
14433 || test ! -s conftest.err'
ac1cb8d3
VS
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; } &&
14439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
14445 ac_cv_c_inline=$ac_kw; break
14446else
14447 echo "$as_me: failed program was:" >&5
14448sed 's/^/| /' conftest.$ac_ext >&5
14449
14450fi
ac1cb8d3 14451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14452done
14453
14454fi
14455echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14456echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14457
14458
a848cd7e
SC
14459case $ac_cv_c_inline in
14460 inline | yes) ;;
ac1cb8d3
VS
14461 *)
14462 case $ac_cv_c_inline in
14463 no) ac_val=;;
14464 *) ac_val=$ac_cv_c_inline;;
14465 esac
14466 cat >>confdefs.h <<_ACEOF
14467#ifndef __cplusplus
14468#define inline $ac_val
14469#endif
de59c161 14470_ACEOF
ac1cb8d3 14471 ;;
a848cd7e
SC
14472esac
14473
14474
14475echo "$as_me:$LINENO: checking for char" >&5
14476echo $ECHO_N "checking for char... $ECHO_C" >&6
14477if test "${ac_cv_type_char+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14479else
14480 cat >conftest.$ac_ext <<_ACEOF
14481/* confdefs.h. */
14482_ACEOF
14483cat confdefs.h >>conftest.$ac_ext
14484cat >>conftest.$ac_ext <<_ACEOF
14485/* end confdefs.h. */
14486$ac_includes_default
14487int
14488main ()
14489{
14490if ((char *) 0)
14491 return 0;
14492if (sizeof (char))
14493 return 0;
14494 ;
14495 return 0;
14496}
14497_ACEOF
14498rm -f conftest.$ac_objext
14499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14500 (eval $ac_compile) 2>conftest.er1
a848cd7e 14501 ac_status=$?
ac1cb8d3
VS
14502 grep -v '^ *+' conftest.er1 >conftest.err
14503 rm -f conftest.er1
14504 cat conftest.err >&5
a848cd7e
SC
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } &&
2cbbc68d
RD
14507 { ac_try='test -z "$ac_c_werror_flag"
14508 || test ! -s conftest.err'
ac1cb8d3
VS
14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510 (eval $ac_try) 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; } &&
14514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14520 ac_cv_type_char=yes
14521else
14522 echo "$as_me: failed program was:" >&5
14523sed 's/^/| /' conftest.$ac_ext >&5
14524
14525ac_cv_type_char=no
14526fi
ac1cb8d3 14527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14528fi
14529echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14530echo "${ECHO_T}$ac_cv_type_char" >&6
14531
14532echo "$as_me:$LINENO: checking size of char" >&5
14533echo $ECHO_N "checking size of char... $ECHO_C" >&6
14534if test "${ac_cv_sizeof_char+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536else
14537 if test "$ac_cv_type_char" = yes; then
14538 # The cast to unsigned long works around a bug in the HP C Compiler
14539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14541 # This bug is HP SR number 8606223364.
14542 if test "$cross_compiling" = yes; then
14543 # Depending upon the size, compute the lo and hi bounds.
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550$ac_includes_default
14551int
14552main ()
14553{
14554static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14555test_array [0] = 0
14556
14557 ;
14558 return 0;
14559}
14560_ACEOF
14561rm -f conftest.$ac_objext
14562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14563 (eval $ac_compile) 2>conftest.er1
a848cd7e 14564 ac_status=$?
ac1cb8d3
VS
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
a848cd7e
SC
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
2cbbc68d
RD
14570 { ac_try='test -z "$ac_c_werror_flag"
14571 || test ! -s conftest.err'
ac1cb8d3
VS
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583 ac_lo=0 ac_mid=0
14584 while :; do
14585 cat >conftest.$ac_ext <<_ACEOF
14586/* confdefs.h. */
14587_ACEOF
14588cat confdefs.h >>conftest.$ac_ext
14589cat >>conftest.$ac_ext <<_ACEOF
14590/* end confdefs.h. */
14591$ac_includes_default
14592int
14593main ()
14594{
14595static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14596test_array [0] = 0
14597
14598 ;
14599 return 0;
14600}
14601_ACEOF
14602rm -f conftest.$ac_objext
14603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14604 (eval $ac_compile) 2>conftest.er1
a848cd7e 14605 ac_status=$?
ac1cb8d3
VS
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
a848cd7e
SC
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
2cbbc68d
RD
14611 { ac_try='test -z "$ac_c_werror_flag"
14612 || test ! -s conftest.err'
ac1cb8d3
VS
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; } &&
14618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }; then
14624 ac_hi=$ac_mid; break
14625else
14626 echo "$as_me: failed program was:" >&5
14627sed 's/^/| /' conftest.$ac_ext >&5
14628
14629ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14630 if test $ac_lo -le $ac_mid; then
14631 ac_lo= ac_hi=
14632 break
14633 fi
14634 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14635fi
ac1cb8d3 14636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14637 done
14638else
14639 echo "$as_me: failed program was:" >&5
14640sed 's/^/| /' conftest.$ac_ext >&5
14641
14642cat >conftest.$ac_ext <<_ACEOF
14643/* confdefs.h. */
14644_ACEOF
14645cat confdefs.h >>conftest.$ac_ext
14646cat >>conftest.$ac_ext <<_ACEOF
14647/* end confdefs.h. */
14648$ac_includes_default
14649int
14650main ()
14651{
14652static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14653test_array [0] = 0
14654
14655 ;
14656 return 0;
14657}
14658_ACEOF
14659rm -f conftest.$ac_objext
14660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14661 (eval $ac_compile) 2>conftest.er1
a848cd7e 14662 ac_status=$?
ac1cb8d3
VS
14663 grep -v '^ *+' conftest.er1 >conftest.err
14664 rm -f conftest.er1
14665 cat conftest.err >&5
a848cd7e
SC
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
2cbbc68d
RD
14668 { ac_try='test -z "$ac_c_werror_flag"
14669 || test ! -s conftest.err'
ac1cb8d3
VS
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } &&
14675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 ac_hi=-1 ac_mid=-1
14682 while :; do
14683 cat >conftest.$ac_ext <<_ACEOF
14684/* confdefs.h. */
14685_ACEOF
14686cat confdefs.h >>conftest.$ac_ext
14687cat >>conftest.$ac_ext <<_ACEOF
14688/* end confdefs.h. */
14689$ac_includes_default
14690int
14691main ()
14692{
14693static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14694test_array [0] = 0
14695
14696 ;
14697 return 0;
14698}
14699_ACEOF
14700rm -f conftest.$ac_objext
14701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14702 (eval $ac_compile) 2>conftest.er1
a848cd7e 14703 ac_status=$?
ac1cb8d3
VS
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
a848cd7e
SC
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
2cbbc68d
RD
14709 { ac_try='test -z "$ac_c_werror_flag"
14710 || test ! -s conftest.err'
ac1cb8d3
VS
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_lo=$ac_mid; break
14723else
14724 echo "$as_me: failed program was:" >&5
14725sed 's/^/| /' conftest.$ac_ext >&5
14726
14727ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14728 if test $ac_mid -le $ac_hi; then
14729 ac_lo= ac_hi=
14730 break
14731 fi
14732 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14733fi
ac1cb8d3 14734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14735 done
14736else
14737 echo "$as_me: failed program was:" >&5
14738sed 's/^/| /' conftest.$ac_ext >&5
14739
14740ac_lo= ac_hi=
14741fi
ac1cb8d3 14742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14743fi
ac1cb8d3 14744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14745# Binary search between lo and hi bounds.
14746while test "x$ac_lo" != "x$ac_hi"; do
14747 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14748 cat >conftest.$ac_ext <<_ACEOF
14749/* confdefs.h. */
14750_ACEOF
14751cat confdefs.h >>conftest.$ac_ext
14752cat >>conftest.$ac_ext <<_ACEOF
14753/* end confdefs.h. */
14754$ac_includes_default
14755int
14756main ()
14757{
14758static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14759test_array [0] = 0
14760
14761 ;
14762 return 0;
14763}
14764_ACEOF
14765rm -f conftest.$ac_objext
14766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14767 (eval $ac_compile) 2>conftest.er1
a848cd7e 14768 ac_status=$?
ac1cb8d3
VS
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
a848cd7e
SC
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
2cbbc68d
RD
14774 { ac_try='test -z "$ac_c_werror_flag"
14775 || test ! -s conftest.err'
ac1cb8d3
VS
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; } &&
14781 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14784 ac_status=$?
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; }; then
14787 ac_hi=$ac_mid
14788else
14789 echo "$as_me: failed program was:" >&5
14790sed 's/^/| /' conftest.$ac_ext >&5
14791
14792ac_lo=`expr '(' $ac_mid ')' + 1`
14793fi
ac1cb8d3 14794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14795done
14796case $ac_lo in
14797?*) ac_cv_sizeof_char=$ac_lo;;
14798'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14799See \`config.log' for more details." >&5
14800echo "$as_me: error: cannot compute sizeof (char), 77
14801See \`config.log' for more details." >&2;}
14802 { (exit 1); exit 1; }; } ;;
14803esac
14804else
14805 if test "$cross_compiling" = yes; then
2cbbc68d
RD
14806 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14807See \`config.log' for more details." >&5
14808echo "$as_me: error: cannot run test program while cross compiling
14809See \`config.log' for more details." >&2;}
a848cd7e
SC
14810 { (exit 1); exit 1; }; }
14811else
14812 cat >conftest.$ac_ext <<_ACEOF
14813/* confdefs.h. */
14814_ACEOF
14815cat confdefs.h >>conftest.$ac_ext
14816cat >>conftest.$ac_ext <<_ACEOF
14817/* end confdefs.h. */
14818$ac_includes_default
14819long longval () { return (long) (sizeof (char)); }
14820unsigned long ulongval () { return (long) (sizeof (char)); }
14821#include <stdio.h>
14822#include <stdlib.h>
14823int
14824main ()
14825{
14826
14827 FILE *f = fopen ("conftest.val", "w");
14828 if (! f)
14829 exit (1);
14830 if (((long) (sizeof (char))) < 0)
14831 {
14832 long i = longval ();
14833 if (i != ((long) (sizeof (char))))
14834 exit (1);
14835 fprintf (f, "%ld\n", i);
14836 }
14837 else
14838 {
14839 unsigned long i = ulongval ();
14840 if (i != ((long) (sizeof (char))))
14841 exit (1);
14842 fprintf (f, "%lu\n", i);
14843 }
14844 exit (ferror (f) || fclose (f) != 0);
14845
14846 ;
14847 return 0;
14848}
14849_ACEOF
14850rm -f conftest$ac_exeext
14851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852 (eval $ac_link) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_cv_sizeof_char=`cat conftest.val`
14862else
14863 echo "$as_me: program exited with status $ac_status" >&5
14864echo "$as_me: failed program was:" >&5
14865sed 's/^/| /' conftest.$ac_ext >&5
14866
14867( exit $ac_status )
14868{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14869See \`config.log' for more details." >&5
14870echo "$as_me: error: cannot compute sizeof (char), 77
14871See \`config.log' for more details." >&2;}
14872 { (exit 1); exit 1; }; }
14873fi
ac1cb8d3 14874rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14875fi
14876fi
14877rm -f conftest.val
14878else
14879 ac_cv_sizeof_char=0
14880fi
14881fi
14882echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14883echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14884cat >>confdefs.h <<_ACEOF
14885#define SIZEOF_CHAR $ac_cv_sizeof_char
14886_ACEOF
14887
14888
14889echo "$as_me:$LINENO: checking for short" >&5
14890echo $ECHO_N "checking for short... $ECHO_C" >&6
14891if test "${ac_cv_type_short+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14893else
14894 cat >conftest.$ac_ext <<_ACEOF
14895/* confdefs.h. */
14896_ACEOF
14897cat confdefs.h >>conftest.$ac_ext
14898cat >>conftest.$ac_ext <<_ACEOF
14899/* end confdefs.h. */
14900$ac_includes_default
14901int
14902main ()
14903{
14904if ((short *) 0)
14905 return 0;
14906if (sizeof (short))
14907 return 0;
14908 ;
14909 return 0;
14910}
14911_ACEOF
14912rm -f conftest.$ac_objext
14913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14914 (eval $ac_compile) 2>conftest.er1
a848cd7e 14915 ac_status=$?
ac1cb8d3
VS
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
a848cd7e
SC
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
2cbbc68d
RD
14921 { ac_try='test -z "$ac_c_werror_flag"
14922 || test ! -s conftest.err'
ac1cb8d3
VS
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; } &&
14928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14934 ac_cv_type_short=yes
14935else
14936 echo "$as_me: failed program was:" >&5
14937sed 's/^/| /' conftest.$ac_ext >&5
14938
14939ac_cv_type_short=no
14940fi
ac1cb8d3 14941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14942fi
14943echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14944echo "${ECHO_T}$ac_cv_type_short" >&6
14945
14946echo "$as_me:$LINENO: checking size of short" >&5
14947echo $ECHO_N "checking size of short... $ECHO_C" >&6
14948if test "${ac_cv_sizeof_short+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14950else
14951 if test "$ac_cv_type_short" = yes; then
14952 # The cast to unsigned long works around a bug in the HP C Compiler
14953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14955 # This bug is HP SR number 8606223364.
14956 if test "$cross_compiling" = yes; then
14957 # Depending upon the size, compute the lo and hi bounds.
14958cat >conftest.$ac_ext <<_ACEOF
14959/* confdefs.h. */
14960_ACEOF
14961cat confdefs.h >>conftest.$ac_ext
14962cat >>conftest.$ac_ext <<_ACEOF
14963/* end confdefs.h. */
14964$ac_includes_default
14965int
14966main ()
14967{
14968static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14969test_array [0] = 0
14970
14971 ;
14972 return 0;
14973}
14974_ACEOF
14975rm -f conftest.$ac_objext
14976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14977 (eval $ac_compile) 2>conftest.er1
a848cd7e 14978 ac_status=$?
ac1cb8d3
VS
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
a848cd7e
SC
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
2cbbc68d
RD
14984 { ac_try='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
ac1cb8d3
VS
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_lo=0 ac_mid=0
14998 while :; do
14999 cat >conftest.$ac_ext <<_ACEOF
15000/* confdefs.h. */
15001_ACEOF
15002cat confdefs.h >>conftest.$ac_ext
15003cat >>conftest.$ac_ext <<_ACEOF
15004/* end confdefs.h. */
15005$ac_includes_default
15006int
15007main ()
15008{
15009static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15010test_array [0] = 0
15011
15012 ;
15013 return 0;
15014}
15015_ACEOF
15016rm -f conftest.$ac_objext
15017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15018 (eval $ac_compile) 2>conftest.er1
a848cd7e 15019 ac_status=$?
ac1cb8d3
VS
15020 grep -v '^ *+' conftest.er1 >conftest.err
15021 rm -f conftest.er1
15022 cat conftest.err >&5
a848cd7e
SC
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
2cbbc68d
RD
15025 { ac_try='test -z "$ac_c_werror_flag"
15026 || test ! -s conftest.err'
ac1cb8d3
VS
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_hi=$ac_mid; break
15039else
15040 echo "$as_me: failed program was:" >&5
15041sed 's/^/| /' conftest.$ac_ext >&5
15042
15043ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15044 if test $ac_lo -le $ac_mid; then
15045 ac_lo= ac_hi=
15046 break
15047 fi
15048 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15049fi
ac1cb8d3 15050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15051 done
15052else
15053 echo "$as_me: failed program was:" >&5
15054sed 's/^/| /' conftest.$ac_ext >&5
15055
15056cat >conftest.$ac_ext <<_ACEOF
15057/* confdefs.h. */
15058_ACEOF
15059cat confdefs.h >>conftest.$ac_ext
15060cat >>conftest.$ac_ext <<_ACEOF
15061/* end confdefs.h. */
15062$ac_includes_default
15063int
15064main ()
15065{
15066static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15067test_array [0] = 0
15068
15069 ;
15070 return 0;
15071}
15072_ACEOF
15073rm -f conftest.$ac_objext
15074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15075 (eval $ac_compile) 2>conftest.er1
a848cd7e 15076 ac_status=$?
ac1cb8d3
VS
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
a848cd7e
SC
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
2cbbc68d
RD
15082 { ac_try='test -z "$ac_c_werror_flag"
15083 || test ! -s conftest.err'
ac1cb8d3
VS
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_hi=-1 ac_mid=-1
15096 while :; do
15097 cat >conftest.$ac_ext <<_ACEOF
15098/* confdefs.h. */
15099_ACEOF
15100cat confdefs.h >>conftest.$ac_ext
15101cat >>conftest.$ac_ext <<_ACEOF
15102/* end confdefs.h. */
15103$ac_includes_default
15104int
15105main ()
15106{
15107static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15108test_array [0] = 0
15109
15110 ;
15111 return 0;
15112}
15113_ACEOF
15114rm -f conftest.$ac_objext
15115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15116 (eval $ac_compile) 2>conftest.er1
a848cd7e 15117 ac_status=$?
ac1cb8d3
VS
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
a848cd7e
SC
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
2cbbc68d
RD
15123 { ac_try='test -z "$ac_c_werror_flag"
15124 || test ! -s conftest.err'
ac1cb8d3
VS
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; } &&
15130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136 ac_lo=$ac_mid; break
15137else
15138 echo "$as_me: failed program was:" >&5
15139sed 's/^/| /' conftest.$ac_ext >&5
15140
15141ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15142 if test $ac_mid -le $ac_hi; then
15143 ac_lo= ac_hi=
15144 break
15145 fi
15146 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15147fi
ac1cb8d3 15148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15149 done
15150else
15151 echo "$as_me: failed program was:" >&5
15152sed 's/^/| /' conftest.$ac_ext >&5
15153
15154ac_lo= ac_hi=
15155fi
ac1cb8d3 15156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15157fi
ac1cb8d3 15158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15159# Binary search between lo and hi bounds.
15160while test "x$ac_lo" != "x$ac_hi"; do
15161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15162 cat >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))) <= $ac_mid)];
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); } &&
2cbbc68d
RD
15188 { ac_try='test -z "$ac_c_werror_flag"
15189 || test ! -s conftest.err'
ac1cb8d3
VS
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 ac_hi=$ac_mid
15202else
15203 echo "$as_me: failed program was:" >&5
15204sed 's/^/| /' conftest.$ac_ext >&5
15205
15206ac_lo=`expr '(' $ac_mid ')' + 1`
15207fi
ac1cb8d3 15208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15209done
15210case $ac_lo in
15211?*) ac_cv_sizeof_short=$ac_lo;;
15212'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15213See \`config.log' for more details." >&5
15214echo "$as_me: error: cannot compute sizeof (short), 77
15215See \`config.log' for more details." >&2;}
15216 { (exit 1); exit 1; }; } ;;
15217esac
15218else
15219 if test "$cross_compiling" = yes; then
2cbbc68d
RD
15220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15221See \`config.log' for more details." >&5
15222echo "$as_me: error: cannot run test program while cross compiling
15223See \`config.log' for more details." >&2;}
a848cd7e
SC
15224 { (exit 1); exit 1; }; }
15225else
15226 cat >conftest.$ac_ext <<_ACEOF
15227/* confdefs.h. */
15228_ACEOF
15229cat confdefs.h >>conftest.$ac_ext
15230cat >>conftest.$ac_ext <<_ACEOF
15231/* end confdefs.h. */
15232$ac_includes_default
15233long longval () { return (long) (sizeof (short)); }
15234unsigned long ulongval () { return (long) (sizeof (short)); }
15235#include <stdio.h>
15236#include <stdlib.h>
15237int
15238main ()
15239{
15240
15241 FILE *f = fopen ("conftest.val", "w");
15242 if (! f)
15243 exit (1);
15244 if (((long) (sizeof (short))) < 0)
15245 {
15246 long i = longval ();
15247 if (i != ((long) (sizeof (short))))
15248 exit (1);
15249 fprintf (f, "%ld\n", i);
15250 }
15251 else
15252 {
15253 unsigned long i = ulongval ();
15254 if (i != ((long) (sizeof (short))))
15255 exit (1);
15256 fprintf (f, "%lu\n", i);
15257 }
15258 exit (ferror (f) || fclose (f) != 0);
15259
15260 ;
15261 return 0;
15262}
15263_ACEOF
15264rm -f conftest$ac_exeext
15265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15266 (eval $ac_link) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 ac_cv_sizeof_short=`cat conftest.val`
15276else
15277 echo "$as_me: program exited with status $ac_status" >&5
15278echo "$as_me: failed program was:" >&5
15279sed 's/^/| /' conftest.$ac_ext >&5
15280
15281( exit $ac_status )
15282{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15283See \`config.log' for more details." >&5
15284echo "$as_me: error: cannot compute sizeof (short), 77
15285See \`config.log' for more details." >&2;}
15286 { (exit 1); exit 1; }; }
15287fi
ac1cb8d3 15288rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15289fi
15290fi
15291rm -f conftest.val
15292else
15293 ac_cv_sizeof_short=0
15294fi
15295fi
15296echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15297echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15298cat >>confdefs.h <<_ACEOF
15299#define SIZEOF_SHORT $ac_cv_sizeof_short
15300_ACEOF
15301
15302
15303echo "$as_me:$LINENO: checking for void *" >&5
15304echo $ECHO_N "checking for void *... $ECHO_C" >&6
15305if test "${ac_cv_type_void_p+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307else
15308 cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
15314$ac_includes_default
15315int
15316main ()
15317{
15318if ((void * *) 0)
15319 return 0;
15320if (sizeof (void *))
15321 return 0;
15322 ;
15323 return 0;
15324}
15325_ACEOF
15326rm -f conftest.$ac_objext
15327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15328 (eval $ac_compile) 2>conftest.er1
a848cd7e 15329 ac_status=$?
ac1cb8d3
VS
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
a848cd7e
SC
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
2cbbc68d
RD
15335 { ac_try='test -z "$ac_c_werror_flag"
15336 || test ! -s conftest.err'
ac1cb8d3
VS
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_cv_type_void_p=yes
15349else
15350 echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
15353ac_cv_type_void_p=no
15354fi
ac1cb8d3 15355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15356fi
15357echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15358echo "${ECHO_T}$ac_cv_type_void_p" >&6
15359
15360echo "$as_me:$LINENO: checking size of void *" >&5
15361echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15362if test "${ac_cv_sizeof_void_p+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15364else
15365 if test "$ac_cv_type_void_p" = yes; then
15366 # The cast to unsigned long works around a bug in the HP C Compiler
15367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15369 # This bug is HP SR number 8606223364.
15370 if test "$cross_compiling" = yes; then
15371 # Depending upon the size, compute the lo and hi bounds.
15372cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378$ac_includes_default
15379int
15380main ()
15381{
15382static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15383test_array [0] = 0
15384
15385 ;
15386 return 0;
15387}
15388_ACEOF
15389rm -f conftest.$ac_objext
15390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15391 (eval $ac_compile) 2>conftest.er1
a848cd7e 15392 ac_status=$?
ac1cb8d3
VS
15393 grep -v '^ *+' conftest.er1 >conftest.err
15394 rm -f conftest.er1
15395 cat conftest.err >&5
a848cd7e
SC
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
2cbbc68d
RD
15398 { ac_try='test -z "$ac_c_werror_flag"
15399 || test ! -s conftest.err'
ac1cb8d3
VS
15400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401 (eval $ac_try) 2>&5
15402 ac_status=$?
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; } &&
15405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15408 ac_status=$?
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; }; then
15411 ac_lo=0 ac_mid=0
15412 while :; do
15413 cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
15418/* end confdefs.h. */
15419$ac_includes_default
15420int
15421main ()
15422{
15423static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15424test_array [0] = 0
15425
15426 ;
15427 return 0;
15428}
15429_ACEOF
15430rm -f conftest.$ac_objext
15431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15432 (eval $ac_compile) 2>conftest.er1
a848cd7e 15433 ac_status=$?
ac1cb8d3
VS
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
a848cd7e
SC
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } &&
2cbbc68d
RD
15439 { ac_try='test -z "$ac_c_werror_flag"
15440 || test ! -s conftest.err'
ac1cb8d3
VS
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; } &&
15446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15452 ac_hi=$ac_mid; break
15453else
15454 echo "$as_me: failed program was:" >&5
15455sed 's/^/| /' conftest.$ac_ext >&5
15456
15457ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15458 if test $ac_lo -le $ac_mid; then
15459 ac_lo= ac_hi=
15460 break
15461 fi
15462 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15463fi
ac1cb8d3 15464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15465 done
15466else
15467 echo "$as_me: failed program was:" >&5
15468sed 's/^/| /' conftest.$ac_ext >&5
15469
15470cat >conftest.$ac_ext <<_ACEOF
15471/* confdefs.h. */
15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
15476$ac_includes_default
15477int
15478main ()
15479{
15480static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15481test_array [0] = 0
15482
15483 ;
15484 return 0;
15485}
15486_ACEOF
15487rm -f conftest.$ac_objext
15488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15489 (eval $ac_compile) 2>conftest.er1
a848cd7e 15490 ac_status=$?
ac1cb8d3
VS
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
a848cd7e
SC
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
2cbbc68d
RD
15496 { ac_try='test -z "$ac_c_werror_flag"
15497 || test ! -s conftest.err'
ac1cb8d3
VS
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 ac_hi=-1 ac_mid=-1
15510 while :; do
15511 cat >conftest.$ac_ext <<_ACEOF
15512/* confdefs.h. */
15513_ACEOF
15514cat confdefs.h >>conftest.$ac_ext
15515cat >>conftest.$ac_ext <<_ACEOF
15516/* end confdefs.h. */
15517$ac_includes_default
15518int
15519main ()
15520{
15521static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15522test_array [0] = 0
15523
15524 ;
15525 return 0;
15526}
15527_ACEOF
15528rm -f conftest.$ac_objext
15529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15530 (eval $ac_compile) 2>conftest.er1
a848cd7e 15531 ac_status=$?
ac1cb8d3
VS
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
a848cd7e
SC
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
2cbbc68d
RD
15537 { ac_try='test -z "$ac_c_werror_flag"
15538 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 ac_lo=$ac_mid; break
15551else
15552 echo "$as_me: failed program was:" >&5
15553sed 's/^/| /' conftest.$ac_ext >&5
15554
15555ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15556 if test $ac_mid -le $ac_hi; then
15557 ac_lo= ac_hi=
15558 break
15559 fi
15560 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15561fi
ac1cb8d3 15562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15563 done
15564else
15565 echo "$as_me: failed program was:" >&5
15566sed 's/^/| /' conftest.$ac_ext >&5
15567
15568ac_lo= ac_hi=
15569fi
ac1cb8d3 15570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15571fi
ac1cb8d3 15572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15573# Binary search between lo and hi bounds.
15574while test "x$ac_lo" != "x$ac_hi"; do
15575 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15576 cat >conftest.$ac_ext <<_ACEOF
15577/* confdefs.h. */
15578_ACEOF
15579cat confdefs.h >>conftest.$ac_ext
15580cat >>conftest.$ac_ext <<_ACEOF
15581/* end confdefs.h. */
15582$ac_includes_default
15583int
15584main ()
15585{
15586static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15587test_array [0] = 0
15588
15589 ;
15590 return 0;
15591}
15592_ACEOF
15593rm -f conftest.$ac_objext
15594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15595 (eval $ac_compile) 2>conftest.er1
a848cd7e 15596 ac_status=$?
ac1cb8d3
VS
15597 grep -v '^ *+' conftest.er1 >conftest.err
15598 rm -f conftest.er1
15599 cat conftest.err >&5
a848cd7e
SC
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
2cbbc68d
RD
15602 { ac_try='test -z "$ac_c_werror_flag"
15603 || test ! -s conftest.err'
ac1cb8d3
VS
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; } &&
15609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15612 ac_status=$?
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_hi=$ac_mid
15616else
15617 echo "$as_me: failed program was:" >&5
15618sed 's/^/| /' conftest.$ac_ext >&5
15619
15620ac_lo=`expr '(' $ac_mid ')' + 1`
15621fi
ac1cb8d3 15622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15623done
15624case $ac_lo in
15625?*) ac_cv_sizeof_void_p=$ac_lo;;
15626'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15627See \`config.log' for more details." >&5
15628echo "$as_me: error: cannot compute sizeof (void *), 77
15629See \`config.log' for more details." >&2;}
15630 { (exit 1); exit 1; }; } ;;
15631esac
15632else
15633 if test "$cross_compiling" = yes; then
2cbbc68d
RD
15634 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15635See \`config.log' for more details." >&5
15636echo "$as_me: error: cannot run test program while cross compiling
15637See \`config.log' for more details." >&2;}
a848cd7e
SC
15638 { (exit 1); exit 1; }; }
15639else
15640 cat >conftest.$ac_ext <<_ACEOF
15641/* confdefs.h. */
15642_ACEOF
15643cat confdefs.h >>conftest.$ac_ext
15644cat >>conftest.$ac_ext <<_ACEOF
15645/* end confdefs.h. */
15646$ac_includes_default
15647long longval () { return (long) (sizeof (void *)); }
15648unsigned long ulongval () { return (long) (sizeof (void *)); }
15649#include <stdio.h>
15650#include <stdlib.h>
15651int
15652main ()
15653{
15654
15655 FILE *f = fopen ("conftest.val", "w");
15656 if (! f)
15657 exit (1);
15658 if (((long) (sizeof (void *))) < 0)
15659 {
15660 long i = longval ();
15661 if (i != ((long) (sizeof (void *))))
15662 exit (1);
15663 fprintf (f, "%ld\n", i);
15664 }
15665 else
15666 {
15667 unsigned long i = ulongval ();
15668 if (i != ((long) (sizeof (void *))))
15669 exit (1);
15670 fprintf (f, "%lu\n", i);
15671 }
15672 exit (ferror (f) || fclose (f) != 0);
15673
15674 ;
15675 return 0;
15676}
15677_ACEOF
15678rm -f conftest$ac_exeext
15679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15680 (eval $ac_link) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; }; then
15689 ac_cv_sizeof_void_p=`cat conftest.val`
15690else
15691 echo "$as_me: program exited with status $ac_status" >&5
15692echo "$as_me: failed program was:" >&5
15693sed 's/^/| /' conftest.$ac_ext >&5
15694
15695( exit $ac_status )
15696{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15697See \`config.log' for more details." >&5
15698echo "$as_me: error: cannot compute sizeof (void *), 77
15699See \`config.log' for more details." >&2;}
15700 { (exit 1); exit 1; }; }
15701fi
ac1cb8d3 15702rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15703fi
15704fi
15705rm -f conftest.val
15706else
15707 ac_cv_sizeof_void_p=0
15708fi
15709fi
15710echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15711echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15712cat >>confdefs.h <<_ACEOF
15713#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15714_ACEOF
15715
15716
15717echo "$as_me:$LINENO: checking for int" >&5
15718echo $ECHO_N "checking for int... $ECHO_C" >&6
15719if test "${ac_cv_type_int+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15721else
15722 cat >conftest.$ac_ext <<_ACEOF
15723/* confdefs.h. */
15724_ACEOF
15725cat confdefs.h >>conftest.$ac_ext
15726cat >>conftest.$ac_ext <<_ACEOF
15727/* end confdefs.h. */
15728$ac_includes_default
15729int
15730main ()
15731{
15732if ((int *) 0)
15733 return 0;
15734if (sizeof (int))
15735 return 0;
15736 ;
15737 return 0;
15738}
15739_ACEOF
15740rm -f conftest.$ac_objext
15741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15742 (eval $ac_compile) 2>conftest.er1
a848cd7e 15743 ac_status=$?
ac1cb8d3
VS
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
a848cd7e
SC
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
2cbbc68d
RD
15749 { ac_try='test -z "$ac_c_werror_flag"
15750 || test ! -s conftest.err'
ac1cb8d3
VS
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 ac_cv_type_int=yes
15763else
15764 echo "$as_me: failed program was:" >&5
15765sed 's/^/| /' conftest.$ac_ext >&5
15766
15767ac_cv_type_int=no
15768fi
ac1cb8d3 15769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15770fi
15771echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15772echo "${ECHO_T}$ac_cv_type_int" >&6
15773
15774echo "$as_me:$LINENO: checking size of int" >&5
15775echo $ECHO_N "checking size of int... $ECHO_C" >&6
15776if test "${ac_cv_sizeof_int+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15778else
15779 if test "$ac_cv_type_int" = yes; then
15780 # The cast to unsigned long works around a bug in the HP C Compiler
15781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15783 # This bug is HP SR number 8606223364.
15784 if test "$cross_compiling" = yes; then
15785 # Depending upon the size, compute the lo and hi bounds.
15786cat >conftest.$ac_ext <<_ACEOF
15787/* confdefs.h. */
15788_ACEOF
15789cat confdefs.h >>conftest.$ac_ext
15790cat >>conftest.$ac_ext <<_ACEOF
15791/* end confdefs.h. */
15792$ac_includes_default
15793int
15794main ()
15795{
15796static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15797test_array [0] = 0
15798
15799 ;
15800 return 0;
15801}
15802_ACEOF
15803rm -f conftest.$ac_objext
15804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15805 (eval $ac_compile) 2>conftest.er1
a848cd7e 15806 ac_status=$?
ac1cb8d3
VS
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
a848cd7e
SC
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
2cbbc68d
RD
15812 { ac_try='test -z "$ac_c_werror_flag"
15813 || test ! -s conftest.err'
ac1cb8d3
VS
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 ac_lo=0 ac_mid=0
15826 while :; do
15827 cat >conftest.$ac_ext <<_ACEOF
15828/* confdefs.h. */
15829_ACEOF
15830cat confdefs.h >>conftest.$ac_ext
15831cat >>conftest.$ac_ext <<_ACEOF
15832/* end confdefs.h. */
15833$ac_includes_default
15834int
15835main ()
15836{
15837static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15838test_array [0] = 0
15839
15840 ;
15841 return 0;
15842}
15843_ACEOF
15844rm -f conftest.$ac_objext
15845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15846 (eval $ac_compile) 2>conftest.er1
a848cd7e 15847 ac_status=$?
ac1cb8d3
VS
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
a848cd7e
SC
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
2cbbc68d
RD
15853 { ac_try='test -z "$ac_c_werror_flag"
15854 || test ! -s conftest.err'
ac1cb8d3
VS
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_hi=$ac_mid; break
15867else
15868 echo "$as_me: failed program was:" >&5
15869sed 's/^/| /' conftest.$ac_ext >&5
15870
15871ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15872 if test $ac_lo -le $ac_mid; then
15873 ac_lo= ac_hi=
15874 break
15875 fi
15876 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15877fi
ac1cb8d3 15878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15879 done
15880else
15881 echo "$as_me: failed program was:" >&5
15882sed 's/^/| /' conftest.$ac_ext >&5
15883
15884cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h. */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h. */
15890$ac_includes_default
15891int
15892main ()
15893{
15894static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15895test_array [0] = 0
15896
15897 ;
15898 return 0;
15899}
15900_ACEOF
15901rm -f conftest.$ac_objext
15902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15903 (eval $ac_compile) 2>conftest.er1
a848cd7e 15904 ac_status=$?
ac1cb8d3
VS
15905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
a848cd7e
SC
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
2cbbc68d
RD
15910 { ac_try='test -z "$ac_c_werror_flag"
15911 || test ! -s conftest.err'
ac1cb8d3
VS
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 ac_hi=-1 ac_mid=-1
15924 while :; do
15925 cat >conftest.$ac_ext <<_ACEOF
15926/* confdefs.h. */
15927_ACEOF
15928cat confdefs.h >>conftest.$ac_ext
15929cat >>conftest.$ac_ext <<_ACEOF
15930/* end confdefs.h. */
15931$ac_includes_default
15932int
15933main ()
15934{
15935static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15936test_array [0] = 0
15937
15938 ;
15939 return 0;
15940}
15941_ACEOF
15942rm -f conftest.$ac_objext
15943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15944 (eval $ac_compile) 2>conftest.er1
a848cd7e 15945 ac_status=$?
ac1cb8d3
VS
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
a848cd7e
SC
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
2cbbc68d
RD
15951 { ac_try='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
ac1cb8d3
VS
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_lo=$ac_mid; break
15965else
15966 echo "$as_me: failed program was:" >&5
15967sed 's/^/| /' conftest.$ac_ext >&5
15968
15969ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15970 if test $ac_mid -le $ac_hi; then
15971 ac_lo= ac_hi=
15972 break
15973 fi
15974 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15975fi
ac1cb8d3 15976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15977 done
15978else
15979 echo "$as_me: failed program was:" >&5
15980sed 's/^/| /' conftest.$ac_ext >&5
15981
15982ac_lo= ac_hi=
15983fi
ac1cb8d3 15984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15985fi
ac1cb8d3 15986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15987# Binary search between lo and hi bounds.
15988while test "x$ac_lo" != "x$ac_hi"; do
15989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15990 cat >conftest.$ac_ext <<_ACEOF
15991/* confdefs.h. */
15992_ACEOF
15993cat confdefs.h >>conftest.$ac_ext
15994cat >>conftest.$ac_ext <<_ACEOF
15995/* end confdefs.h. */
15996$ac_includes_default
15997int
15998main ()
15999{
16000static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16001test_array [0] = 0
16002
16003 ;
16004 return 0;
16005}
16006_ACEOF
16007rm -f conftest.$ac_objext
16008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16009 (eval $ac_compile) 2>conftest.er1
a848cd7e 16010 ac_status=$?
ac1cb8d3
VS
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
a848cd7e
SC
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } &&
2cbbc68d
RD
16016 { ac_try='test -z "$ac_c_werror_flag"
16017 || test ! -s conftest.err'
ac1cb8d3
VS
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_hi=$ac_mid
16030else
16031 echo "$as_me: failed program was:" >&5
16032sed 's/^/| /' conftest.$ac_ext >&5
16033
16034ac_lo=`expr '(' $ac_mid ')' + 1`
16035fi
ac1cb8d3 16036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16037done
16038case $ac_lo in
16039?*) ac_cv_sizeof_int=$ac_lo;;
16040'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16041See \`config.log' for more details." >&5
16042echo "$as_me: error: cannot compute sizeof (int), 77
16043See \`config.log' for more details." >&2;}
16044 { (exit 1); exit 1; }; } ;;
16045esac
16046else
16047 if test "$cross_compiling" = yes; then
2cbbc68d
RD
16048 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16049See \`config.log' for more details." >&5
16050echo "$as_me: error: cannot run test program while cross compiling
16051See \`config.log' for more details." >&2;}
a848cd7e
SC
16052 { (exit 1); exit 1; }; }
16053else
16054 cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h. */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h. */
16060$ac_includes_default
16061long longval () { return (long) (sizeof (int)); }
16062unsigned long ulongval () { return (long) (sizeof (int)); }
16063#include <stdio.h>
16064#include <stdlib.h>
16065int
16066main ()
16067{
16068
16069 FILE *f = fopen ("conftest.val", "w");
16070 if (! f)
16071 exit (1);
16072 if (((long) (sizeof (int))) < 0)
16073 {
16074 long i = longval ();
16075 if (i != ((long) (sizeof (int))))
16076 exit (1);
16077 fprintf (f, "%ld\n", i);
16078 }
16079 else
16080 {
16081 unsigned long i = ulongval ();
16082 if (i != ((long) (sizeof (int))))
16083 exit (1);
16084 fprintf (f, "%lu\n", i);
16085 }
16086 exit (ferror (f) || fclose (f) != 0);
16087
16088 ;
16089 return 0;
16090}
16091_ACEOF
16092rm -f conftest$ac_exeext
16093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16094 (eval $ac_link) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 ac_cv_sizeof_int=`cat conftest.val`
16104else
16105 echo "$as_me: program exited with status $ac_status" >&5
16106echo "$as_me: failed program was:" >&5
16107sed 's/^/| /' conftest.$ac_ext >&5
16108
16109( exit $ac_status )
16110{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16111See \`config.log' for more details." >&5
16112echo "$as_me: error: cannot compute sizeof (int), 77
16113See \`config.log' for more details." >&2;}
16114 { (exit 1); exit 1; }; }
16115fi
ac1cb8d3 16116rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16117fi
16118fi
16119rm -f conftest.val
16120else
16121 ac_cv_sizeof_int=0
16122fi
16123fi
16124echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16125echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16126cat >>confdefs.h <<_ACEOF
16127#define SIZEOF_INT $ac_cv_sizeof_int
16128_ACEOF
16129
16130
16131echo "$as_me:$LINENO: checking for long" >&5
16132echo $ECHO_N "checking for long... $ECHO_C" >&6
16133if test "${ac_cv_type_long+set}" = set; then
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16135else
16136 cat >conftest.$ac_ext <<_ACEOF
16137/* confdefs.h. */
16138_ACEOF
16139cat confdefs.h >>conftest.$ac_ext
16140cat >>conftest.$ac_ext <<_ACEOF
16141/* end confdefs.h. */
16142$ac_includes_default
16143int
16144main ()
16145{
16146if ((long *) 0)
16147 return 0;
16148if (sizeof (long))
16149 return 0;
16150 ;
16151 return 0;
16152}
16153_ACEOF
16154rm -f conftest.$ac_objext
16155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16156 (eval $ac_compile) 2>conftest.er1
a848cd7e 16157 ac_status=$?
ac1cb8d3
VS
16158 grep -v '^ *+' conftest.er1 >conftest.err
16159 rm -f conftest.er1
16160 cat conftest.err >&5
a848cd7e
SC
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } &&
2cbbc68d
RD
16163 { ac_try='test -z "$ac_c_werror_flag"
16164 || test ! -s conftest.err'
ac1cb8d3
VS
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; } &&
16170 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16172 (eval $ac_try) 2>&5
16173 ac_status=$?
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); }; }; then
16176 ac_cv_type_long=yes
16177else
16178 echo "$as_me: failed program was:" >&5
16179sed 's/^/| /' conftest.$ac_ext >&5
16180
16181ac_cv_type_long=no
16182fi
ac1cb8d3 16183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16184fi
16185echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16186echo "${ECHO_T}$ac_cv_type_long" >&6
16187
16188echo "$as_me:$LINENO: checking size of long" >&5
16189echo $ECHO_N "checking size of long... $ECHO_C" >&6
16190if test "${ac_cv_sizeof_long+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192else
16193 if test "$ac_cv_type_long" = yes; then
16194 # The cast to unsigned long works around a bug in the HP C Compiler
16195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16197 # This bug is HP SR number 8606223364.
16198 if test "$cross_compiling" = yes; then
16199 # Depending upon the size, compute the lo and hi bounds.
16200cat >conftest.$ac_ext <<_ACEOF
16201/* confdefs.h. */
16202_ACEOF
16203cat confdefs.h >>conftest.$ac_ext
16204cat >>conftest.$ac_ext <<_ACEOF
16205/* end confdefs.h. */
16206$ac_includes_default
16207int
16208main ()
16209{
16210static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16211test_array [0] = 0
16212
16213 ;
16214 return 0;
16215}
16216_ACEOF
16217rm -f conftest.$ac_objext
16218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16219 (eval $ac_compile) 2>conftest.er1
a848cd7e 16220 ac_status=$?
ac1cb8d3
VS
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
a848cd7e
SC
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
2cbbc68d
RD
16226 { ac_try='test -z "$ac_c_werror_flag"
16227 || test ! -s conftest.err'
ac1cb8d3
VS
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; } &&
16233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
16239 ac_lo=0 ac_mid=0
16240 while :; do
16241 cat >conftest.$ac_ext <<_ACEOF
16242/* confdefs.h. */
16243_ACEOF
16244cat confdefs.h >>conftest.$ac_ext
16245cat >>conftest.$ac_ext <<_ACEOF
16246/* end confdefs.h. */
16247$ac_includes_default
16248int
16249main ()
16250{
16251static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16252test_array [0] = 0
16253
16254 ;
16255 return 0;
16256}
16257_ACEOF
16258rm -f conftest.$ac_objext
16259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16260 (eval $ac_compile) 2>conftest.er1
a848cd7e 16261 ac_status=$?
ac1cb8d3
VS
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
a848cd7e
SC
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } &&
2cbbc68d
RD
16267 { ac_try='test -z "$ac_c_werror_flag"
16268 || test ! -s conftest.err'
ac1cb8d3
VS
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; } &&
16274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; }; then
16280 ac_hi=$ac_mid; break
16281else
16282 echo "$as_me: failed program was:" >&5
16283sed 's/^/| /' conftest.$ac_ext >&5
16284
16285ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16286 if test $ac_lo -le $ac_mid; then
16287 ac_lo= ac_hi=
16288 break
16289 fi
16290 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16291fi
ac1cb8d3 16292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16293 done
16294else
16295 echo "$as_me: failed program was:" >&5
16296sed 's/^/| /' conftest.$ac_ext >&5
16297
16298cat >conftest.$ac_ext <<_ACEOF
16299/* confdefs.h. */
16300_ACEOF
16301cat confdefs.h >>conftest.$ac_ext
16302cat >>conftest.$ac_ext <<_ACEOF
16303/* end confdefs.h. */
16304$ac_includes_default
16305int
16306main ()
16307{
16308static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16309test_array [0] = 0
16310
16311 ;
16312 return 0;
16313}
16314_ACEOF
16315rm -f conftest.$ac_objext
16316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16317 (eval $ac_compile) 2>conftest.er1
a848cd7e 16318 ac_status=$?
ac1cb8d3
VS
16319 grep -v '^ *+' conftest.er1 >conftest.err
16320 rm -f conftest.er1
16321 cat conftest.err >&5
a848cd7e
SC
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } &&
2cbbc68d
RD
16324 { ac_try='test -z "$ac_c_werror_flag"
16325 || test ! -s conftest.err'
ac1cb8d3
VS
16326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327 (eval $ac_try) 2>&5
16328 ac_status=$?
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; } &&
16331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 ac_hi=-1 ac_mid=-1
16338 while :; do
16339 cat >conftest.$ac_ext <<_ACEOF
16340/* confdefs.h. */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h. */
16345$ac_includes_default
16346int
16347main ()
16348{
16349static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16350test_array [0] = 0
16351
16352 ;
16353 return 0;
16354}
16355_ACEOF
16356rm -f conftest.$ac_objext
16357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16358 (eval $ac_compile) 2>conftest.er1
a848cd7e 16359 ac_status=$?
ac1cb8d3
VS
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
a848cd7e
SC
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
2cbbc68d
RD
16365 { ac_try='test -z "$ac_c_werror_flag"
16366 || test ! -s conftest.err'
ac1cb8d3
VS
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_lo=$ac_mid; break
16379else
16380 echo "$as_me: failed program was:" >&5
16381sed 's/^/| /' conftest.$ac_ext >&5
16382
16383ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16384 if test $ac_mid -le $ac_hi; then
16385 ac_lo= ac_hi=
16386 break
16387 fi
16388 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16389fi
ac1cb8d3 16390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16391 done
16392else
16393 echo "$as_me: failed program was:" >&5
16394sed 's/^/| /' conftest.$ac_ext >&5
16395
16396ac_lo= ac_hi=
16397fi
ac1cb8d3 16398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16399fi
ac1cb8d3 16400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16401# Binary search between lo and hi bounds.
16402while test "x$ac_lo" != "x$ac_hi"; do
16403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16404 cat >conftest.$ac_ext <<_ACEOF
16405/* confdefs.h. */
16406_ACEOF
16407cat confdefs.h >>conftest.$ac_ext
16408cat >>conftest.$ac_ext <<_ACEOF
16409/* end confdefs.h. */
16410$ac_includes_default
16411int
16412main ()
16413{
16414static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16415test_array [0] = 0
16416
16417 ;
16418 return 0;
16419}
16420_ACEOF
16421rm -f conftest.$ac_objext
16422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16423 (eval $ac_compile) 2>conftest.er1
a848cd7e 16424 ac_status=$?
ac1cb8d3
VS
16425 grep -v '^ *+' conftest.er1 >conftest.err
16426 rm -f conftest.er1
16427 cat conftest.err >&5
a848cd7e
SC
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } &&
2cbbc68d
RD
16430 { ac_try='test -z "$ac_c_werror_flag"
16431 || test ! -s conftest.err'
ac1cb8d3
VS
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; } &&
16437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16443 ac_hi=$ac_mid
16444else
16445 echo "$as_me: failed program was:" >&5
16446sed 's/^/| /' conftest.$ac_ext >&5
16447
16448ac_lo=`expr '(' $ac_mid ')' + 1`
16449fi
ac1cb8d3 16450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16451done
16452case $ac_lo in
16453?*) ac_cv_sizeof_long=$ac_lo;;
16454'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16455See \`config.log' for more details." >&5
16456echo "$as_me: error: cannot compute sizeof (long), 77
16457See \`config.log' for more details." >&2;}
16458 { (exit 1); exit 1; }; } ;;
16459esac
16460else
16461 if test "$cross_compiling" = yes; then
2cbbc68d
RD
16462 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16463See \`config.log' for more details." >&5
16464echo "$as_me: error: cannot run test program while cross compiling
16465See \`config.log' for more details." >&2;}
a848cd7e
SC
16466 { (exit 1); exit 1; }; }
16467else
16468 cat >conftest.$ac_ext <<_ACEOF
16469/* confdefs.h. */
16470_ACEOF
16471cat confdefs.h >>conftest.$ac_ext
16472cat >>conftest.$ac_ext <<_ACEOF
16473/* end confdefs.h. */
16474$ac_includes_default
16475long longval () { return (long) (sizeof (long)); }
16476unsigned long ulongval () { return (long) (sizeof (long)); }
16477#include <stdio.h>
16478#include <stdlib.h>
16479int
16480main ()
16481{
16482
16483 FILE *f = fopen ("conftest.val", "w");
16484 if (! f)
16485 exit (1);
16486 if (((long) (sizeof (long))) < 0)
16487 {
16488 long i = longval ();
16489 if (i != ((long) (sizeof (long))))
16490 exit (1);
16491 fprintf (f, "%ld\n", i);
16492 }
16493 else
16494 {
16495 unsigned long i = ulongval ();
16496 if (i != ((long) (sizeof (long))))
16497 exit (1);
16498 fprintf (f, "%lu\n", i);
16499 }
16500 exit (ferror (f) || fclose (f) != 0);
16501
16502 ;
16503 return 0;
16504}
16505_ACEOF
16506rm -f conftest$ac_exeext
16507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16508 (eval $ac_link) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 ac_cv_sizeof_long=`cat conftest.val`
16518else
16519 echo "$as_me: program exited with status $ac_status" >&5
16520echo "$as_me: failed program was:" >&5
16521sed 's/^/| /' conftest.$ac_ext >&5
16522
16523( exit $ac_status )
16524{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16525See \`config.log' for more details." >&5
16526echo "$as_me: error: cannot compute sizeof (long), 77
16527See \`config.log' for more details." >&2;}
16528 { (exit 1); exit 1; }; }
16529fi
ac1cb8d3 16530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16531fi
16532fi
16533rm -f conftest.val
16534else
16535 ac_cv_sizeof_long=0
16536fi
16537fi
16538echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16539echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16540cat >>confdefs.h <<_ACEOF
16541#define SIZEOF_LONG $ac_cv_sizeof_long
16542_ACEOF
16543
16544
16545echo "$as_me:$LINENO: checking for size_t" >&5
16546echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16547if test "${ac_cv_type_size_t+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16549else
16550 cat >conftest.$ac_ext <<_ACEOF
16551/* confdefs.h. */
16552_ACEOF
16553cat confdefs.h >>conftest.$ac_ext
16554cat >>conftest.$ac_ext <<_ACEOF
16555/* end confdefs.h. */
16556$ac_includes_default
16557int
16558main ()
16559{
16560if ((size_t *) 0)
16561 return 0;
16562if (sizeof (size_t))
16563 return 0;
16564 ;
16565 return 0;
16566}
16567_ACEOF
16568rm -f conftest.$ac_objext
16569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16570 (eval $ac_compile) 2>conftest.er1
a848cd7e 16571 ac_status=$?
ac1cb8d3
VS
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
a848cd7e
SC
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
2cbbc68d
RD
16577 { ac_try='test -z "$ac_c_werror_flag"
16578 || test ! -s conftest.err'
ac1cb8d3
VS
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; } &&
16584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_type_size_t=yes
16591else
16592 echo "$as_me: failed program was:" >&5
16593sed 's/^/| /' conftest.$ac_ext >&5
16594
16595ac_cv_type_size_t=no
16596fi
ac1cb8d3 16597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16598fi
16599echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16600echo "${ECHO_T}$ac_cv_type_size_t" >&6
16601
16602echo "$as_me:$LINENO: checking size of size_t" >&5
16603echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16604if test "${ac_cv_sizeof_size_t+set}" = set; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16606else
16607 if test "$ac_cv_type_size_t" = yes; then
16608 # The cast to unsigned long works around a bug in the HP C Compiler
16609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16611 # This bug is HP SR number 8606223364.
16612 if test "$cross_compiling" = yes; then
16613 # Depending upon the size, compute the lo and hi bounds.
16614cat >conftest.$ac_ext <<_ACEOF
16615/* confdefs.h. */
16616_ACEOF
16617cat confdefs.h >>conftest.$ac_ext
16618cat >>conftest.$ac_ext <<_ACEOF
16619/* end confdefs.h. */
16620$ac_includes_default
16621int
16622main ()
16623{
16624static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16625test_array [0] = 0
16626
16627 ;
16628 return 0;
16629}
16630_ACEOF
16631rm -f conftest.$ac_objext
16632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16633 (eval $ac_compile) 2>conftest.er1
a848cd7e 16634 ac_status=$?
ac1cb8d3
VS
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
a848cd7e
SC
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } &&
2cbbc68d
RD
16640 { ac_try='test -z "$ac_c_werror_flag"
16641 || test ! -s conftest.err'
ac1cb8d3
VS
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16644 ac_status=$?
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; } &&
16647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 ac_lo=0 ac_mid=0
16654 while :; do
16655 cat >conftest.$ac_ext <<_ACEOF
16656/* confdefs.h. */
16657_ACEOF
16658cat confdefs.h >>conftest.$ac_ext
16659cat >>conftest.$ac_ext <<_ACEOF
16660/* end confdefs.h. */
16661$ac_includes_default
16662int
16663main ()
16664{
16665static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16666test_array [0] = 0
16667
16668 ;
16669 return 0;
16670}
16671_ACEOF
16672rm -f conftest.$ac_objext
16673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16674 (eval $ac_compile) 2>conftest.er1
a848cd7e 16675 ac_status=$?
ac1cb8d3
VS
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
a848cd7e
SC
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
2cbbc68d
RD
16681 { ac_try='test -z "$ac_c_werror_flag"
16682 || test ! -s conftest.err'
ac1cb8d3
VS
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; } &&
16688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 ac_hi=$ac_mid; break
16695else
16696 echo "$as_me: failed program was:" >&5
16697sed 's/^/| /' conftest.$ac_ext >&5
16698
16699ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16700 if test $ac_lo -le $ac_mid; then
16701 ac_lo= ac_hi=
16702 break
16703 fi
16704 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16705fi
ac1cb8d3 16706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16707 done
16708else
16709 echo "$as_me: failed program was:" >&5
16710sed 's/^/| /' conftest.$ac_ext >&5
16711
16712cat >conftest.$ac_ext <<_ACEOF
16713/* confdefs.h. */
16714_ACEOF
16715cat confdefs.h >>conftest.$ac_ext
16716cat >>conftest.$ac_ext <<_ACEOF
16717/* end confdefs.h. */
16718$ac_includes_default
16719int
16720main ()
16721{
16722static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16723test_array [0] = 0
16724
16725 ;
16726 return 0;
16727}
16728_ACEOF
16729rm -f conftest.$ac_objext
16730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16731 (eval $ac_compile) 2>conftest.er1
a848cd7e 16732 ac_status=$?
ac1cb8d3
VS
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
a848cd7e
SC
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
2cbbc68d
RD
16738 { ac_try='test -z "$ac_c_werror_flag"
16739 || test ! -s conftest.err'
ac1cb8d3
VS
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 ac_hi=-1 ac_mid=-1
16752 while :; do
16753 cat >conftest.$ac_ext <<_ACEOF
16754/* confdefs.h. */
16755_ACEOF
16756cat confdefs.h >>conftest.$ac_ext
16757cat >>conftest.$ac_ext <<_ACEOF
16758/* end confdefs.h. */
16759$ac_includes_default
16760int
16761main ()
16762{
16763static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16764test_array [0] = 0
16765
16766 ;
16767 return 0;
16768}
16769_ACEOF
16770rm -f conftest.$ac_objext
16771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16772 (eval $ac_compile) 2>conftest.er1
a848cd7e 16773 ac_status=$?
ac1cb8d3
VS
16774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
a848cd7e
SC
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
2cbbc68d
RD
16779 { ac_try='test -z "$ac_c_werror_flag"
16780 || test ! -s conftest.err'
ac1cb8d3
VS
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_lo=$ac_mid; break
16793else
16794 echo "$as_me: failed program was:" >&5
16795sed 's/^/| /' conftest.$ac_ext >&5
16796
16797ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16798 if test $ac_mid -le $ac_hi; then
16799 ac_lo= ac_hi=
16800 break
16801 fi
16802 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16803fi
ac1cb8d3 16804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16805 done
16806else
16807 echo "$as_me: failed program was:" >&5
16808sed 's/^/| /' conftest.$ac_ext >&5
16809
16810ac_lo= ac_hi=
16811fi
ac1cb8d3 16812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16813fi
ac1cb8d3 16814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16815# Binary search between lo and hi bounds.
16816while test "x$ac_lo" != "x$ac_hi"; do
16817 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16818 cat >conftest.$ac_ext <<_ACEOF
16819/* confdefs.h. */
16820_ACEOF
16821cat confdefs.h >>conftest.$ac_ext
16822cat >>conftest.$ac_ext <<_ACEOF
16823/* end confdefs.h. */
16824$ac_includes_default
16825int
16826main ()
16827{
16828static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16829test_array [0] = 0
16830
16831 ;
16832 return 0;
16833}
16834_ACEOF
16835rm -f conftest.$ac_objext
16836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16837 (eval $ac_compile) 2>conftest.er1
a848cd7e 16838 ac_status=$?
ac1cb8d3
VS
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
a848cd7e
SC
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
2cbbc68d
RD
16844 { ac_try='test -z "$ac_c_werror_flag"
16845 || test ! -s conftest.err'
ac1cb8d3
VS
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_hi=$ac_mid
16858else
16859 echo "$as_me: failed program was:" >&5
16860sed 's/^/| /' conftest.$ac_ext >&5
16861
16862ac_lo=`expr '(' $ac_mid ')' + 1`
16863fi
ac1cb8d3 16864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16865done
16866case $ac_lo in
16867?*) ac_cv_sizeof_size_t=$ac_lo;;
16868'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16869See \`config.log' for more details." >&5
16870echo "$as_me: error: cannot compute sizeof (size_t), 77
16871See \`config.log' for more details." >&2;}
16872 { (exit 1); exit 1; }; } ;;
16873esac
16874else
16875 if test "$cross_compiling" = yes; then
2cbbc68d
RD
16876 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16877See \`config.log' for more details." >&5
16878echo "$as_me: error: cannot run test program while cross compiling
16879See \`config.log' for more details." >&2;}
a848cd7e
SC
16880 { (exit 1); exit 1; }; }
16881else
16882 cat >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
16889long longval () { return (long) (sizeof (size_t)); }
16890unsigned long ulongval () { return (long) (sizeof (size_t)); }
16891#include <stdio.h>
16892#include <stdlib.h>
16893int
16894main ()
16895{
16896
16897 FILE *f = fopen ("conftest.val", "w");
16898 if (! f)
16899 exit (1);
16900 if (((long) (sizeof (size_t))) < 0)
16901 {
16902 long i = longval ();
16903 if (i != ((long) (sizeof (size_t))))
16904 exit (1);
16905 fprintf (f, "%ld\n", i);
16906 }
16907 else
16908 {
16909 unsigned long i = ulongval ();
16910 if (i != ((long) (sizeof (size_t))))
16911 exit (1);
16912 fprintf (f, "%lu\n", i);
16913 }
16914 exit (ferror (f) || fclose (f) != 0);
16915
16916 ;
16917 return 0;
16918}
16919_ACEOF
16920rm -f conftest$ac_exeext
16921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922 (eval $ac_link) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_sizeof_size_t=`cat conftest.val`
16932else
16933 echo "$as_me: program exited with status $ac_status" >&5
16934echo "$as_me: failed program was:" >&5
16935sed 's/^/| /' conftest.$ac_ext >&5
16936
16937( exit $ac_status )
16938{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16939See \`config.log' for more details." >&5
16940echo "$as_me: error: cannot compute sizeof (size_t), 77
16941See \`config.log' for more details." >&2;}
16942 { (exit 1); exit 1; }; }
16943fi
ac1cb8d3 16944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16945fi
16946fi
16947rm -f conftest.val
16948else
16949 ac_cv_sizeof_size_t=0
16950fi
16951fi
16952echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16953echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16954cat >>confdefs.h <<_ACEOF
16955#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16956_ACEOF
16957
16958
16959
16960case "${host}" in
16961 arm-*-linux* )
16962 echo "$as_me:$LINENO: checking for long long" >&5
16963echo $ECHO_N "checking for long long... $ECHO_C" >&6
16964if test "${ac_cv_type_long_long+set}" = set; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16966else
16967 cat >conftest.$ac_ext <<_ACEOF
16968/* confdefs.h. */
16969_ACEOF
16970cat confdefs.h >>conftest.$ac_ext
16971cat >>conftest.$ac_ext <<_ACEOF
16972/* end confdefs.h. */
16973$ac_includes_default
16974int
16975main ()
16976{
16977if ((long long *) 0)
16978 return 0;
16979if (sizeof (long long))
16980 return 0;
16981 ;
16982 return 0;
16983}
16984_ACEOF
16985rm -f conftest.$ac_objext
16986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16987 (eval $ac_compile) 2>conftest.er1
a848cd7e 16988 ac_status=$?
ac1cb8d3
VS
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
a848cd7e
SC
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
2cbbc68d
RD
16994 { ac_try='test -z "$ac_c_werror_flag"
16995 || test ! -s conftest.err'
ac1cb8d3
VS
16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16998 ac_status=$?
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; } &&
17001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; }; then
17007 ac_cv_type_long_long=yes
17008else
17009 echo "$as_me: failed program was:" >&5
17010sed 's/^/| /' conftest.$ac_ext >&5
17011
17012ac_cv_type_long_long=no
17013fi
ac1cb8d3 17014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17015fi
17016echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17017echo "${ECHO_T}$ac_cv_type_long_long" >&6
17018
17019echo "$as_me:$LINENO: checking size of long long" >&5
17020echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17021if test "${ac_cv_sizeof_long_long+set}" = set; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17023else
17024 if test "$ac_cv_type_long_long" = yes; then
17025 # The cast to unsigned long works around a bug in the HP C Compiler
17026 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17027 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17028 # This bug is HP SR number 8606223364.
17029 if test "$cross_compiling" = yes; then
17030 # Depending upon the size, compute the lo and hi bounds.
17031cat >conftest.$ac_ext <<_ACEOF
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
17037$ac_includes_default
17038int
17039main ()
17040{
17041static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17042test_array [0] = 0
17043
17044 ;
17045 return 0;
17046}
17047_ACEOF
17048rm -f conftest.$ac_objext
17049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17050 (eval $ac_compile) 2>conftest.er1
a848cd7e 17051 ac_status=$?
ac1cb8d3
VS
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
a848cd7e
SC
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
2cbbc68d
RD
17057 { ac_try='test -z "$ac_c_werror_flag"
17058 || test ! -s conftest.err'
ac1cb8d3
VS
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_lo=0 ac_mid=0
17071 while :; do
17072 cat >conftest.$ac_ext <<_ACEOF
17073/* confdefs.h. */
17074_ACEOF
17075cat confdefs.h >>conftest.$ac_ext
17076cat >>conftest.$ac_ext <<_ACEOF
17077/* end confdefs.h. */
17078$ac_includes_default
17079int
17080main ()
17081{
17082static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17083test_array [0] = 0
17084
17085 ;
17086 return 0;
17087}
17088_ACEOF
17089rm -f conftest.$ac_objext
17090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17091 (eval $ac_compile) 2>conftest.er1
a848cd7e 17092 ac_status=$?
ac1cb8d3
VS
17093 grep -v '^ *+' conftest.er1 >conftest.err
17094 rm -f conftest.er1
17095 cat conftest.err >&5
a848cd7e
SC
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } &&
2cbbc68d
RD
17098 { ac_try='test -z "$ac_c_werror_flag"
17099 || test ! -s conftest.err'
ac1cb8d3
VS
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_hi=$ac_mid; break
17112else
17113 echo "$as_me: failed program was:" >&5
17114sed 's/^/| /' conftest.$ac_ext >&5
17115
17116ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17117 if test $ac_lo -le $ac_mid; then
17118 ac_lo= ac_hi=
17119 break
17120 fi
17121 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17122fi
ac1cb8d3 17123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17124 done
17125else
17126 echo "$as_me: failed program was:" >&5
17127sed 's/^/| /' conftest.$ac_ext >&5
17128
17129cat >conftest.$ac_ext <<_ACEOF
17130/* confdefs.h. */
17131_ACEOF
17132cat confdefs.h >>conftest.$ac_ext
17133cat >>conftest.$ac_ext <<_ACEOF
17134/* end confdefs.h. */
17135$ac_includes_default
17136int
17137main ()
17138{
17139static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17140test_array [0] = 0
17141
17142 ;
17143 return 0;
17144}
17145_ACEOF
17146rm -f conftest.$ac_objext
17147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17148 (eval $ac_compile) 2>conftest.er1
a848cd7e 17149 ac_status=$?
ac1cb8d3
VS
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
a848cd7e
SC
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
2cbbc68d
RD
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
ac1cb8d3
VS
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_hi=-1 ac_mid=-1
17169 while :; do
17170 cat >conftest.$ac_ext <<_ACEOF
17171/* confdefs.h. */
17172_ACEOF
17173cat confdefs.h >>conftest.$ac_ext
17174cat >>conftest.$ac_ext <<_ACEOF
17175/* end confdefs.h. */
17176$ac_includes_default
17177int
17178main ()
17179{
17180static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17181test_array [0] = 0
17182
17183 ;
17184 return 0;
17185}
17186_ACEOF
17187rm -f conftest.$ac_objext
17188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17189 (eval $ac_compile) 2>conftest.er1
a848cd7e 17190 ac_status=$?
ac1cb8d3
VS
17191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
a848cd7e
SC
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
2cbbc68d
RD
17196 { ac_try='test -z "$ac_c_werror_flag"
17197 || test ! -s conftest.err'
ac1cb8d3
VS
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_lo=$ac_mid; break
17210else
17211 echo "$as_me: failed program was:" >&5
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
17214ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17215 if test $ac_mid -le $ac_hi; then
17216 ac_lo= ac_hi=
17217 break
17218 fi
17219 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17220fi
ac1cb8d3 17221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17222 done
17223else
17224 echo "$as_me: failed program was:" >&5
17225sed 's/^/| /' conftest.$ac_ext >&5
17226
17227ac_lo= ac_hi=
17228fi
ac1cb8d3 17229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17230fi
ac1cb8d3 17231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17232# Binary search between lo and hi bounds.
17233while test "x$ac_lo" != "x$ac_hi"; do
17234 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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); } &&
2cbbc68d
RD
17261 { ac_try='test -z "$ac_c_werror_flag"
17262 || test ! -s conftest.err'
ac1cb8d3
VS
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; } &&
17268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 ac_hi=$ac_mid
17275else
17276 echo "$as_me: failed program was:" >&5
17277sed 's/^/| /' conftest.$ac_ext >&5
17278
17279ac_lo=`expr '(' $ac_mid ')' + 1`
17280fi
ac1cb8d3 17281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17282done
17283case $ac_lo in
17284?*) ac_cv_sizeof_long_long=$ac_lo;;
17285'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17286See \`config.log' for more details." >&5
17287echo "$as_me: error: cannot compute sizeof (long long), 77
17288See \`config.log' for more details." >&2;}
17289 { (exit 1); exit 1; }; } ;;
17290esac
17291else
17292 if test "$cross_compiling" = yes; then
2cbbc68d
RD
17293 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17294See \`config.log' for more details." >&5
17295echo "$as_me: error: cannot run test program while cross compiling
17296See \`config.log' for more details." >&2;}
a848cd7e
SC
17297 { (exit 1); exit 1; }; }
17298else
17299 cat >conftest.$ac_ext <<_ACEOF
17300/* confdefs.h. */
17301_ACEOF
17302cat confdefs.h >>conftest.$ac_ext
17303cat >>conftest.$ac_ext <<_ACEOF
17304/* end confdefs.h. */
17305$ac_includes_default
17306long longval () { return (long) (sizeof (long long)); }
17307unsigned long ulongval () { return (long) (sizeof (long long)); }
17308#include <stdio.h>
17309#include <stdlib.h>
17310int
17311main ()
17312{
17313
17314 FILE *f = fopen ("conftest.val", "w");
17315 if (! f)
17316 exit (1);
17317 if (((long) (sizeof (long long))) < 0)
17318 {
17319 long i = longval ();
17320 if (i != ((long) (sizeof (long long))))
17321 exit (1);
17322 fprintf (f, "%ld\n", i);
17323 }
17324 else
17325 {
17326 unsigned long i = ulongval ();
17327 if (i != ((long) (sizeof (long long))))
17328 exit (1);
17329 fprintf (f, "%lu\n", i);
17330 }
17331 exit (ferror (f) || fclose (f) != 0);
17332
17333 ;
17334 return 0;
17335}
17336_ACEOF
17337rm -f conftest$ac_exeext
17338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17339 (eval $ac_link) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; }; then
17348 ac_cv_sizeof_long_long=`cat conftest.val`
17349else
17350 echo "$as_me: program exited with status $ac_status" >&5
17351echo "$as_me: failed program was:" >&5
17352sed 's/^/| /' conftest.$ac_ext >&5
17353
17354( exit $ac_status )
17355{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17356See \`config.log' for more details." >&5
17357echo "$as_me: error: cannot compute sizeof (long long), 77
17358See \`config.log' for more details." >&2;}
17359 { (exit 1); exit 1; }; }
17360fi
ac1cb8d3 17361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17362fi
17363fi
17364rm -f conftest.val
17365else
17366 ac_cv_sizeof_long_long=0
17367fi
17368fi
17369echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17370echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17371cat >>confdefs.h <<_ACEOF
17372#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17373_ACEOF
17374
17375
17376 ;;
17377 *-hp-hpux* )
17378 echo "$as_me:$LINENO: checking for long long" >&5
17379echo $ECHO_N "checking for long long... $ECHO_C" >&6
17380if test "${ac_cv_type_long_long+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382else
17383 cat >conftest.$ac_ext <<_ACEOF
17384/* confdefs.h. */
17385_ACEOF
17386cat confdefs.h >>conftest.$ac_ext
17387cat >>conftest.$ac_ext <<_ACEOF
17388/* end confdefs.h. */
17389$ac_includes_default
17390int
17391main ()
17392{
17393if ((long long *) 0)
17394 return 0;
17395if (sizeof (long long))
17396 return 0;
17397 ;
17398 return 0;
17399}
17400_ACEOF
17401rm -f conftest.$ac_objext
17402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17403 (eval $ac_compile) 2>conftest.er1
a848cd7e 17404 ac_status=$?
ac1cb8d3
VS
17405 grep -v '^ *+' conftest.er1 >conftest.err
17406 rm -f conftest.er1
17407 cat conftest.err >&5
a848cd7e
SC
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
2cbbc68d
RD
17410 { ac_try='test -z "$ac_c_werror_flag"
17411 || test ! -s conftest.err'
ac1cb8d3
VS
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 ac_cv_type_long_long=yes
17424else
17425 echo "$as_me: failed program was:" >&5
17426sed 's/^/| /' conftest.$ac_ext >&5
17427
17428ac_cv_type_long_long=no
17429fi
ac1cb8d3 17430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17431fi
17432echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17433echo "${ECHO_T}$ac_cv_type_long_long" >&6
17434
17435echo "$as_me:$LINENO: checking size of long long" >&5
17436echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17437if test "${ac_cv_sizeof_long_long+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17439else
17440 if test "$ac_cv_type_long_long" = yes; then
17441 # The cast to unsigned long works around a bug in the HP C Compiler
17442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17444 # This bug is HP SR number 8606223364.
17445 if test "$cross_compiling" = yes; then
17446 # Depending upon the size, compute the lo and hi bounds.
17447cat >conftest.$ac_ext <<_ACEOF
17448/* confdefs.h. */
17449_ACEOF
17450cat confdefs.h >>conftest.$ac_ext
17451cat >>conftest.$ac_ext <<_ACEOF
17452/* end confdefs.h. */
17453$ac_includes_default
17454int
17455main ()
17456{
17457static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17458test_array [0] = 0
17459
17460 ;
17461 return 0;
17462}
17463_ACEOF
17464rm -f conftest.$ac_objext
17465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17466 (eval $ac_compile) 2>conftest.er1
a848cd7e 17467 ac_status=$?
ac1cb8d3
VS
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
a848cd7e
SC
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
2cbbc68d
RD
17473 { ac_try='test -z "$ac_c_werror_flag"
17474 || test ! -s conftest.err'
ac1cb8d3
VS
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; } &&
17480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
17486 ac_lo=0 ac_mid=0
17487 while :; do
17488 cat >conftest.$ac_ext <<_ACEOF
17489/* confdefs.h. */
17490_ACEOF
17491cat confdefs.h >>conftest.$ac_ext
17492cat >>conftest.$ac_ext <<_ACEOF
17493/* end confdefs.h. */
17494$ac_includes_default
17495int
17496main ()
17497{
17498static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17499test_array [0] = 0
17500
17501 ;
17502 return 0;
17503}
17504_ACEOF
17505rm -f conftest.$ac_objext
17506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17507 (eval $ac_compile) 2>conftest.er1
a848cd7e 17508 ac_status=$?
ac1cb8d3
VS
17509 grep -v '^ *+' conftest.er1 >conftest.err
17510 rm -f conftest.er1
17511 cat conftest.err >&5
a848cd7e
SC
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } &&
2cbbc68d
RD
17514 { ac_try='test -z "$ac_c_werror_flag"
17515 || test ! -s conftest.err'
ac1cb8d3
VS
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } &&
17521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; }; then
17527 ac_hi=$ac_mid; break
17528else
17529 echo "$as_me: failed program was:" >&5
17530sed 's/^/| /' conftest.$ac_ext >&5
17531
17532ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17533 if test $ac_lo -le $ac_mid; then
17534 ac_lo= ac_hi=
17535 break
17536 fi
17537 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17538fi
ac1cb8d3 17539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17540 done
17541else
17542 echo "$as_me: failed program was:" >&5
17543sed 's/^/| /' conftest.$ac_ext >&5
17544
17545cat >conftest.$ac_ext <<_ACEOF
17546/* confdefs.h. */
17547_ACEOF
17548cat confdefs.h >>conftest.$ac_ext
17549cat >>conftest.$ac_ext <<_ACEOF
17550/* end confdefs.h. */
17551$ac_includes_default
17552int
17553main ()
17554{
17555static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17556test_array [0] = 0
17557
17558 ;
17559 return 0;
17560}
17561_ACEOF
17562rm -f conftest.$ac_objext
17563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17564 (eval $ac_compile) 2>conftest.er1
a848cd7e 17565 ac_status=$?
ac1cb8d3
VS
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
a848cd7e
SC
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
2cbbc68d
RD
17571 { ac_try='test -z "$ac_c_werror_flag"
17572 || test ! -s conftest.err'
ac1cb8d3
VS
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; } &&
17578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17581 ac_status=$?
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; }; then
17584 ac_hi=-1 ac_mid=-1
17585 while :; do
17586 cat >conftest.$ac_ext <<_ACEOF
17587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
17592$ac_includes_default
17593int
17594main ()
17595{
17596static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17597test_array [0] = 0
17598
17599 ;
17600 return 0;
17601}
17602_ACEOF
17603rm -f conftest.$ac_objext
17604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17605 (eval $ac_compile) 2>conftest.er1
a848cd7e 17606 ac_status=$?
ac1cb8d3
VS
17607 grep -v '^ *+' conftest.er1 >conftest.err
17608 rm -f conftest.er1
17609 cat conftest.err >&5
a848cd7e
SC
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
2cbbc68d
RD
17612 { ac_try='test -z "$ac_c_werror_flag"
17613 || test ! -s conftest.err'
ac1cb8d3
VS
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; } &&
17619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 ac_lo=$ac_mid; break
17626else
17627 echo "$as_me: failed program was:" >&5
17628sed 's/^/| /' conftest.$ac_ext >&5
17629
17630ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17631 if test $ac_mid -le $ac_hi; then
17632 ac_lo= ac_hi=
17633 break
17634 fi
17635 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17636fi
ac1cb8d3 17637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17638 done
17639else
17640 echo "$as_me: failed program was:" >&5
17641sed 's/^/| /' conftest.$ac_ext >&5
17642
17643ac_lo= ac_hi=
17644fi
ac1cb8d3 17645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17646fi
ac1cb8d3 17647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17648# Binary search between lo and hi bounds.
17649while test "x$ac_lo" != "x$ac_hi"; do
17650 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17651 cat >conftest.$ac_ext <<_ACEOF
17652/* confdefs.h. */
17653_ACEOF
17654cat confdefs.h >>conftest.$ac_ext
17655cat >>conftest.$ac_ext <<_ACEOF
17656/* end confdefs.h. */
17657$ac_includes_default
17658int
17659main ()
17660{
17661static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17662test_array [0] = 0
17663
17664 ;
17665 return 0;
17666}
17667_ACEOF
17668rm -f conftest.$ac_objext
17669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17670 (eval $ac_compile) 2>conftest.er1
a848cd7e 17671 ac_status=$?
ac1cb8d3
VS
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
a848cd7e
SC
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
2cbbc68d
RD
17677 { ac_try='test -z "$ac_c_werror_flag"
17678 || test ! -s conftest.err'
ac1cb8d3
VS
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_hi=$ac_mid
17691else
17692 echo "$as_me: failed program was:" >&5
17693sed 's/^/| /' conftest.$ac_ext >&5
17694
17695ac_lo=`expr '(' $ac_mid ')' + 1`
17696fi
ac1cb8d3 17697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17698done
17699case $ac_lo in
17700?*) ac_cv_sizeof_long_long=$ac_lo;;
17701'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17702See \`config.log' for more details." >&5
17703echo "$as_me: error: cannot compute sizeof (long long), 77
17704See \`config.log' for more details." >&2;}
17705 { (exit 1); exit 1; }; } ;;
17706esac
17707else
17708 if test "$cross_compiling" = yes; then
2cbbc68d
RD
17709 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17710See \`config.log' for more details." >&5
17711echo "$as_me: error: cannot run test program while cross compiling
17712See \`config.log' for more details." >&2;}
a848cd7e
SC
17713 { (exit 1); exit 1; }; }
17714else
17715 cat >conftest.$ac_ext <<_ACEOF
17716/* confdefs.h. */
17717_ACEOF
17718cat confdefs.h >>conftest.$ac_ext
17719cat >>conftest.$ac_ext <<_ACEOF
17720/* end confdefs.h. */
17721$ac_includes_default
17722long longval () { return (long) (sizeof (long long)); }
17723unsigned long ulongval () { return (long) (sizeof (long long)); }
17724#include <stdio.h>
17725#include <stdlib.h>
17726int
17727main ()
17728{
17729
17730 FILE *f = fopen ("conftest.val", "w");
17731 if (! f)
17732 exit (1);
17733 if (((long) (sizeof (long long))) < 0)
17734 {
17735 long i = longval ();
17736 if (i != ((long) (sizeof (long long))))
17737 exit (1);
17738 fprintf (f, "%ld\n", i);
17739 }
17740 else
17741 {
17742 unsigned long i = ulongval ();
17743 if (i != ((long) (sizeof (long long))))
17744 exit (1);
17745 fprintf (f, "%lu\n", i);
17746 }
17747 exit (ferror (f) || fclose (f) != 0);
17748
17749 ;
17750 return 0;
17751}
17752_ACEOF
17753rm -f conftest$ac_exeext
17754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17755 (eval $ac_link) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_sizeof_long_long=`cat conftest.val`
17765else
17766 echo "$as_me: program exited with status $ac_status" >&5
17767echo "$as_me: failed program was:" >&5
17768sed 's/^/| /' conftest.$ac_ext >&5
17769
17770( exit $ac_status )
17771{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17772See \`config.log' for more details." >&5
17773echo "$as_me: error: cannot compute sizeof (long long), 77
17774See \`config.log' for more details." >&2;}
17775 { (exit 1); exit 1; }; }
17776fi
ac1cb8d3 17777rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17778fi
17779fi
17780rm -f conftest.val
17781else
17782 ac_cv_sizeof_long_long=0
17783fi
17784fi
17785echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17786echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17787cat >>confdefs.h <<_ACEOF
17788#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17789_ACEOF
17790
17791
17792 if test "$ac_cv_sizeof_long_long" != "0"; then
17793 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17794 fi
17795 ;;
17796 * )
17797 echo "$as_me:$LINENO: checking for long long" >&5
17798echo $ECHO_N "checking for long long... $ECHO_C" >&6
17799if test "${ac_cv_type_long_long+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801else
17802 cat >conftest.$ac_ext <<_ACEOF
17803/* confdefs.h. */
17804_ACEOF
17805cat confdefs.h >>conftest.$ac_ext
17806cat >>conftest.$ac_ext <<_ACEOF
17807/* end confdefs.h. */
17808$ac_includes_default
17809int
17810main ()
17811{
17812if ((long long *) 0)
17813 return 0;
17814if (sizeof (long long))
17815 return 0;
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); } &&
2cbbc68d
RD
17829 { ac_try='test -z "$ac_c_werror_flag"
17830 || test ! -s conftest.err'
ac1cb8d3
VS
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_type_long_long=yes
17843else
17844 echo "$as_me: failed program was:" >&5
17845sed 's/^/| /' conftest.$ac_ext >&5
17846
17847ac_cv_type_long_long=no
17848fi
ac1cb8d3 17849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17850fi
17851echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17852echo "${ECHO_T}$ac_cv_type_long_long" >&6
17853
17854echo "$as_me:$LINENO: checking size of long long" >&5
17855echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17856if test "${ac_cv_sizeof_long_long+set}" = set; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17858else
17859 if test "$ac_cv_type_long_long" = yes; then
17860 # The cast to unsigned long works around a bug in the HP C Compiler
17861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17863 # This bug is HP SR number 8606223364.
17864 if test "$cross_compiling" = yes; then
17865 # Depending upon the size, compute the lo and hi bounds.
17866cat >conftest.$ac_ext <<_ACEOF
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
17872$ac_includes_default
17873int
17874main ()
17875{
17876static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17877test_array [0] = 0
17878
17879 ;
17880 return 0;
17881}
17882_ACEOF
17883rm -f conftest.$ac_objext
17884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17885 (eval $ac_compile) 2>conftest.er1
a848cd7e 17886 ac_status=$?
ac1cb8d3
VS
17887 grep -v '^ *+' conftest.er1 >conftest.err
17888 rm -f conftest.er1
17889 cat conftest.err >&5
a848cd7e
SC
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
2cbbc68d
RD
17892 { ac_try='test -z "$ac_c_werror_flag"
17893 || test ! -s conftest.err'
ac1cb8d3
VS
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; } &&
17899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 ac_lo=0 ac_mid=0
17906 while :; do
17907 cat >conftest.$ac_ext <<_ACEOF
17908/* confdefs.h. */
17909_ACEOF
17910cat confdefs.h >>conftest.$ac_ext
17911cat >>conftest.$ac_ext <<_ACEOF
17912/* end confdefs.h. */
17913$ac_includes_default
17914int
17915main ()
17916{
17917static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17918test_array [0] = 0
17919
17920 ;
17921 return 0;
17922}
17923_ACEOF
17924rm -f conftest.$ac_objext
17925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17926 (eval $ac_compile) 2>conftest.er1
a848cd7e 17927 ac_status=$?
ac1cb8d3
VS
17928 grep -v '^ *+' conftest.er1 >conftest.err
17929 rm -f conftest.er1
17930 cat conftest.err >&5
a848cd7e
SC
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } &&
2cbbc68d
RD
17933 { ac_try='test -z "$ac_c_werror_flag"
17934 || test ! -s conftest.err'
ac1cb8d3
VS
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; } &&
17940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
17946 ac_hi=$ac_mid; break
17947else
17948 echo "$as_me: failed program was:" >&5
17949sed 's/^/| /' conftest.$ac_ext >&5
17950
17951ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17952 if test $ac_lo -le $ac_mid; then
17953 ac_lo= ac_hi=
17954 break
17955 fi
17956 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17957fi
ac1cb8d3 17958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17959 done
17960else
17961 echo "$as_me: failed program was:" >&5
17962sed 's/^/| /' conftest.$ac_ext >&5
17963
17964cat >conftest.$ac_ext <<_ACEOF
17965/* confdefs.h. */
17966_ACEOF
17967cat confdefs.h >>conftest.$ac_ext
17968cat >>conftest.$ac_ext <<_ACEOF
17969/* end confdefs.h. */
17970$ac_includes_default
17971int
17972main ()
17973{
17974static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17975test_array [0] = 0
17976
17977 ;
17978 return 0;
17979}
17980_ACEOF
17981rm -f conftest.$ac_objext
17982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17983 (eval $ac_compile) 2>conftest.er1
a848cd7e 17984 ac_status=$?
ac1cb8d3
VS
17985 grep -v '^ *+' conftest.er1 >conftest.err
17986 rm -f conftest.er1
17987 cat conftest.err >&5
a848cd7e
SC
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } &&
2cbbc68d
RD
17990 { ac_try='test -z "$ac_c_werror_flag"
17991 || test ! -s conftest.err'
ac1cb8d3
VS
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; } &&
17997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999 (eval $ac_try) 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; }; then
18003 ac_hi=-1 ac_mid=-1
18004 while :; do
18005 cat >conftest.$ac_ext <<_ACEOF
18006/* confdefs.h. */
18007_ACEOF
18008cat confdefs.h >>conftest.$ac_ext
18009cat >>conftest.$ac_ext <<_ACEOF
18010/* end confdefs.h. */
18011$ac_includes_default
18012int
18013main ()
18014{
18015static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18016test_array [0] = 0
18017
18018 ;
18019 return 0;
18020}
18021_ACEOF
18022rm -f conftest.$ac_objext
18023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18024 (eval $ac_compile) 2>conftest.er1
a848cd7e 18025 ac_status=$?
ac1cb8d3
VS
18026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
a848cd7e
SC
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
2cbbc68d
RD
18031 { ac_try='test -z "$ac_c_werror_flag"
18032 || test ! -s conftest.err'
ac1cb8d3
VS
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; } &&
18038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; }; then
18044 ac_lo=$ac_mid; break
18045else
18046 echo "$as_me: failed program was:" >&5
18047sed 's/^/| /' conftest.$ac_ext >&5
18048
18049ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18050 if test $ac_mid -le $ac_hi; then
18051 ac_lo= ac_hi=
18052 break
18053 fi
18054 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18055fi
ac1cb8d3 18056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18057 done
18058else
18059 echo "$as_me: failed program was:" >&5
18060sed 's/^/| /' conftest.$ac_ext >&5
18061
18062ac_lo= ac_hi=
18063fi
ac1cb8d3 18064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18065fi
ac1cb8d3 18066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18067# Binary search between lo and hi bounds.
18068while test "x$ac_lo" != "x$ac_hi"; do
18069 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18070 cat >conftest.$ac_ext <<_ACEOF
18071/* confdefs.h. */
18072_ACEOF
18073cat confdefs.h >>conftest.$ac_ext
18074cat >>conftest.$ac_ext <<_ACEOF
18075/* end confdefs.h. */
18076$ac_includes_default
18077int
18078main ()
18079{
18080static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18081test_array [0] = 0
18082
18083 ;
18084 return 0;
18085}
18086_ACEOF
18087rm -f conftest.$ac_objext
18088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18089 (eval $ac_compile) 2>conftest.er1
a848cd7e 18090 ac_status=$?
ac1cb8d3
VS
18091 grep -v '^ *+' conftest.er1 >conftest.err
18092 rm -f conftest.er1
18093 cat conftest.err >&5
a848cd7e
SC
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } &&
2cbbc68d
RD
18096 { ac_try='test -z "$ac_c_werror_flag"
18097 || test ! -s conftest.err'
ac1cb8d3
VS
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; } &&
18103 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105 (eval $ac_try) 2>&5
18106 ac_status=$?
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; }; then
18109 ac_hi=$ac_mid
18110else
18111 echo "$as_me: failed program was:" >&5
18112sed 's/^/| /' conftest.$ac_ext >&5
18113
18114ac_lo=`expr '(' $ac_mid ')' + 1`
18115fi
ac1cb8d3 18116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18117done
18118case $ac_lo in
18119?*) ac_cv_sizeof_long_long=$ac_lo;;
18120'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18121See \`config.log' for more details." >&5
18122echo "$as_me: error: cannot compute sizeof (long long), 77
18123See \`config.log' for more details." >&2;}
18124 { (exit 1); exit 1; }; } ;;
18125esac
18126else
18127 if test "$cross_compiling" = yes; then
2cbbc68d
RD
18128 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18129See \`config.log' for more details." >&5
18130echo "$as_me: error: cannot run test program while cross compiling
18131See \`config.log' for more details." >&2;}
a848cd7e
SC
18132 { (exit 1); exit 1; }; }
18133else
18134 cat >conftest.$ac_ext <<_ACEOF
18135/* confdefs.h. */
18136_ACEOF
18137cat confdefs.h >>conftest.$ac_ext
18138cat >>conftest.$ac_ext <<_ACEOF
18139/* end confdefs.h. */
18140$ac_includes_default
18141long longval () { return (long) (sizeof (long long)); }
18142unsigned long ulongval () { return (long) (sizeof (long long)); }
18143#include <stdio.h>
18144#include <stdlib.h>
18145int
18146main ()
18147{
18148
18149 FILE *f = fopen ("conftest.val", "w");
18150 if (! f)
18151 exit (1);
18152 if (((long) (sizeof (long long))) < 0)
18153 {
18154 long i = longval ();
18155 if (i != ((long) (sizeof (long long))))
18156 exit (1);
18157 fprintf (f, "%ld\n", i);
18158 }
18159 else
18160 {
18161 unsigned long i = ulongval ();
18162 if (i != ((long) (sizeof (long long))))
18163 exit (1);
18164 fprintf (f, "%lu\n", i);
18165 }
18166 exit (ferror (f) || fclose (f) != 0);
18167
18168 ;
18169 return 0;
18170}
18171_ACEOF
18172rm -f conftest$ac_exeext
18173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18174 (eval $ac_link) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
18183 ac_cv_sizeof_long_long=`cat conftest.val`
18184else
18185 echo "$as_me: program exited with status $ac_status" >&5
18186echo "$as_me: failed program was:" >&5
18187sed 's/^/| /' conftest.$ac_ext >&5
18188
18189( exit $ac_status )
18190{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18191See \`config.log' for more details." >&5
18192echo "$as_me: error: cannot compute sizeof (long long), 77
18193See \`config.log' for more details." >&2;}
18194 { (exit 1); exit 1; }; }
18195fi
ac1cb8d3 18196rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18197fi
18198fi
18199rm -f conftest.val
18200else
18201 ac_cv_sizeof_long_long=0
18202fi
18203fi
18204echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18205echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18206cat >>confdefs.h <<_ACEOF
18207#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18208_ACEOF
18209
18210
18211esac
18212
18213echo "$as_me:$LINENO: checking size of wchar_t" >&5
18214echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18215if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18217else
18218
18219 if test "$cross_compiling" = yes; then
18220
18221 case "${host}" in
18222 *-pc-msdosdjgpp )
18223 wx_cv_sizeof_wchar_t=0
18224 ;;
18225 * )
18226 wx_cv_sizeof_wchar_t=4
18227 ;;
18228 esac
18229
18230
18231else
18232 cat >conftest.$ac_ext <<_ACEOF
18233/* confdefs.h. */
18234_ACEOF
18235cat confdefs.h >>conftest.$ac_ext
18236cat >>conftest.$ac_ext <<_ACEOF
18237/* end confdefs.h. */
18238
18239 /* DJGPP only has fake wchar_t: */
18240 #ifdef __DJGPP__
18241 # error "fake wchar_t"
18242 #endif
18243 #ifdef HAVE_WCHAR_H
18244 # ifdef __CYGWIN__
18245 # include <stddef.h>
18246 # endif
18247 # include <wchar.h>
18248 #endif
18249 #ifdef HAVE_STDLIB_H
18250 # include <stdlib.h>
18251 #endif
18252 #include <stdio.h>
18253 int main()
18254 {
18255 FILE *f=fopen("conftestval", "w");
18256 if (!f) exit(1);
18257 fprintf(f, "%i", sizeof(wchar_t));
18258 exit(0);
18259 }
18260
18261_ACEOF
18262rm -f conftest$ac_exeext
18263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18264 (eval $ac_link) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18273 wx_cv_sizeof_wchar_t=`cat conftestval`
18274else
18275 echo "$as_me: program exited with status $ac_status" >&5
18276echo "$as_me: failed program was:" >&5
18277sed 's/^/| /' conftest.$ac_ext >&5
18278
18279( exit $ac_status )
18280wx_cv_sizeof_wchar_t=0
18281fi
ac1cb8d3 18282rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18283fi
18284
18285fi
18286echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18287echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18288
18289cat >>confdefs.h <<_ACEOF
18290#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18291_ACEOF
18292
18293
ba3d13e1
VZ
18294echo "$as_me:$LINENO: checking for va_copy" >&5
18295echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18296if test "${wx_cv_func_va_copy+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298else
18299
18300 cat >conftest.$ac_ext <<_ACEOF
18301
18302 #include <stdarg.h>
18303 void foo(char *f, ...)
18304 {
18305 va_list ap1, ap2;
18306 va_start(ap1, f);
18307 va_copy(ap2, ap1);
18308 va_end(ap2);
18309 va_end(ap1);
18310 }
18311_ACEOF
18312rm -f conftest.$ac_objext conftest$ac_exeext
18313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18314 (eval $ac_link) 2>conftest.er1
18315 ac_status=$?
18316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
2cbbc68d
RD
18321 { ac_try='test -z "$ac_c_werror_flag"
18322 || test ! -s conftest.err'
ba3d13e1
VZ
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; } &&
18328 { ac_try='test -s conftest$ac_exeext'
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; }; then
18334 wx_cv_func_va_copy=yes
18335else
18336 echo "$as_me: failed program was:" >&5
18337sed 's/^/| /' conftest.$ac_ext >&5
18338
18339wx_cv_func_va_copy=no
18340
18341fi
18342rm -f conftest.err conftest.$ac_objext \
18343 conftest$ac_exeext conftest.$ac_ext
18344
18345
18346fi
18347echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18348echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18349
18350if test $wx_cv_func_va_copy = "yes"; then
18351 cat >>confdefs.h <<\_ACEOF
18352#define HAVE_VA_COPY 1
18353_ACEOF
18354
18355else
18356 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18357echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18358if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18360else
18361
18362 if test "$cross_compiling" = yes; then
18363 wx_cv_type_va_list_lvalue=yes
18364
18365else
18366 cat >conftest.$ac_ext <<_ACEOF
18367
18368 #include <stdarg.h>
18369 int foo(char *f, ...)
18370 {
18371 va_list ap1, ap2;
18372 va_start(ap1, f);
18373 ap2 = ap1;
18374 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18375 return 1;
18376 va_end(ap2);
18377 va_end(ap1);
18378 return 0;
18379 }
18380 int main()
18381 {
18382 return foo("hi", 17);
18383 }
18384_ACEOF
18385rm -f conftest$ac_exeext
18386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387 (eval $ac_link) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 wx_cv_type_va_list_lvalue=yes
18397else
18398 echo "$as_me: program exited with status $ac_status" >&5
18399echo "$as_me: failed program was:" >&5
18400sed 's/^/| /' conftest.$ac_ext >&5
18401
18402( exit $ac_status )
18403wx_cv_type_va_list_lvalue=no
18404fi
18405rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18406fi
18407
18408
18409fi
18410echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18411echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18412
18413 if test $wx_cv_type_va_list_lvalue != "yes"; then
18414 cat >>confdefs.h <<\_ACEOF
18415#define VA_LIST_IS_ARRAY 1
18416_ACEOF
18417
18418 fi
18419fi
18420
a848cd7e
SC
18421# Check whether --enable-largefile or --disable-largefile was given.
18422if test "${enable_largefile+set}" = set; then
18423 enableval="$enable_largefile"
18424
18425fi;
18426if test "$enable_largefile" != no; then
18427 wx_largefile=no
18428
18429 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18430echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18431if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18433else
18434
18435 cat >conftest.$ac_ext <<_ACEOF
18436/* confdefs.h. */
18437_ACEOF
18438cat confdefs.h >>conftest.$ac_ext
18439cat >>conftest.$ac_ext <<_ACEOF
18440/* end confdefs.h. */
18441#define _FILE_OFFSET_BITS 64
18442 #include <sys/types.h>
18443int
18444main ()
18445{
18446typedef struct {
18447 unsigned int field: sizeof(off_t) == 8;
18448} wxlf;
18449
18450 ;
18451 return 0;
18452}
18453_ACEOF
18454rm -f conftest.$ac_objext
18455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18456 (eval $ac_compile) 2>conftest.er1
a848cd7e 18457 ac_status=$?
ac1cb8d3
VS
18458 grep -v '^ *+' conftest.er1 >conftest.err
18459 rm -f conftest.er1
18460 cat conftest.err >&5
a848cd7e
SC
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
2cbbc68d
RD
18463 { ac_try='test -z "$ac_c_werror_flag"
18464 || test ! -s conftest.err'
ac1cb8d3
VS
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 ac_cv_sys_file_offset_bits=64
18477else
18478 echo "$as_me: failed program was:" >&5
18479sed 's/^/| /' conftest.$ac_ext >&5
18480
18481ac_cv_sys_file_offset_bits=no
18482fi
ac1cb8d3 18483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18484
18485
18486fi
18487echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18488echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18489
18490 if test "$ac_cv_sys_file_offset_bits" != no; then
18491 wx_largefile=yes
18492 cat >>confdefs.h <<_ACEOF
18493#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18494_ACEOF
18495
18496 fi
18497
18498 if test "x$wx_largefile" != "xyes"; then
18499
18500 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18501echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18502if test "${ac_cv_sys_large_files+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18504else
18505
18506 cat >conftest.$ac_ext <<_ACEOF
18507/* confdefs.h. */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
18511/* end confdefs.h. */
18512#define _LARGE_FILES 1
18513 #include <sys/types.h>
18514int
18515main ()
18516{
18517typedef struct {
18518 unsigned int field: sizeof(off_t) == 8;
18519} wxlf;
18520
18521 ;
18522 return 0;
18523}
18524_ACEOF
18525rm -f conftest.$ac_objext
18526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18527 (eval $ac_compile) 2>conftest.er1
a848cd7e 18528 ac_status=$?
ac1cb8d3
VS
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
a848cd7e
SC
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
2cbbc68d
RD
18534 { ac_try='test -z "$ac_c_werror_flag"
18535 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 ac_cv_sys_large_files=1
18548else
18549 echo "$as_me: failed program was:" >&5
18550sed 's/^/| /' conftest.$ac_ext >&5
18551
18552ac_cv_sys_large_files=no
18553fi
ac1cb8d3 18554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18555
18556
18557fi
18558echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18559echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18560
18561 if test "$ac_cv_sys_large_files" != no; then
18562 wx_largefile=yes
18563 cat >>confdefs.h <<_ACEOF
18564#define _LARGE_FILES $ac_cv_sys_large_files
18565_ACEOF
18566
18567 fi
18568
18569 fi
18570
18571 echo "$as_me:$LINENO: checking if large file support is available" >&5
18572echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18573 if test "x$wx_largefile" = "xyes"; then
18574 cat >>confdefs.h <<\_ACEOF
18575#define HAVE_LARGEFILE_SUPPORT 1
18576_ACEOF
18577
18578 fi
18579 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18580echo "${ECHO_T}$wx_largefile" >&6
18581fi
18582
18583
18584if test "x$wx_largefile" = "xyes"; then
18585 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18586 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18587 else
18588 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18589 fi
18590 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18591fi
18592
18593echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18594echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18595if test "${ac_cv_c_bigendian+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18597else
18598 ac_cv_c_bigendian=unknown
18599# See if sys/param.h defines the BYTE_ORDER macro.
18600cat >conftest.$ac_ext <<_ACEOF
18601/* confdefs.h. */
18602_ACEOF
18603cat confdefs.h >>conftest.$ac_ext
18604cat >>conftest.$ac_ext <<_ACEOF
18605/* end confdefs.h. */
18606#include <sys/types.h>
18607#include <sys/param.h>
18608int
18609main ()
18610{
18611
18612#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18613 bogus endian macros
18614#endif
18615 ;
18616 return 0;
18617}
18618_ACEOF
18619rm -f conftest.$ac_objext
18620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18621 (eval $ac_compile) 2>conftest.er1
a848cd7e 18622 ac_status=$?
ac1cb8d3
VS
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
a848cd7e
SC
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } &&
2cbbc68d
RD
18628 { ac_try='test -z "$ac_c_werror_flag"
18629 || test ! -s conftest.err'
ac1cb8d3
VS
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 # It does; now see whether it defined to BIG_ENDIAN or not.
18642cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h. */
18648#include <sys/types.h>
18649#include <sys/param.h>
18650int
18651main ()
18652{
18653
18654#if BYTE_ORDER != BIG_ENDIAN
18655 not big endian
18656#endif
18657 ;
18658 return 0;
18659}
18660_ACEOF
18661rm -f conftest.$ac_objext
18662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18663 (eval $ac_compile) 2>conftest.er1
a848cd7e 18664 ac_status=$?
ac1cb8d3
VS
18665 grep -v '^ *+' conftest.er1 >conftest.err
18666 rm -f conftest.er1
18667 cat conftest.err >&5
a848cd7e
SC
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
2cbbc68d
RD
18670 { ac_try='test -z "$ac_c_werror_flag"
18671 || test ! -s conftest.err'
ac1cb8d3
VS
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; } &&
18677 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; }; then
18683 ac_cv_c_bigendian=yes
18684else
18685 echo "$as_me: failed program was:" >&5
18686sed 's/^/| /' conftest.$ac_ext >&5
18687
18688ac_cv_c_bigendian=no
18689fi
ac1cb8d3 18690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18691else
18692 echo "$as_me: failed program was:" >&5
18693sed 's/^/| /' conftest.$ac_ext >&5
18694
18695fi
ac1cb8d3 18696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18697if test $ac_cv_c_bigendian = unknown; then
18698if test "$cross_compiling" = yes; then
18699 ac_cv_c_bigendian=unknown
18700else
18701 cat >conftest.$ac_ext <<_ACEOF
18702/* confdefs.h. */
18703_ACEOF
18704cat confdefs.h >>conftest.$ac_ext
18705cat >>conftest.$ac_ext <<_ACEOF
18706/* end confdefs.h. */
18707main () {
18708 /* Are we little or big endian? From Harbison&Steele. */
18709 union
18710 {
18711 long l;
18712 char c[sizeof (long)];
18713 } u;
18714 u.l = 1;
18715 exit (u.c[sizeof (long) - 1] == 1);
18716}
18717_ACEOF
18718rm -f conftest$ac_exeext
18719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18720 (eval $ac_link) 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_cv_c_bigendian=no
18730else
18731 echo "$as_me: program exited with status $ac_status" >&5
18732echo "$as_me: failed program was:" >&5
18733sed 's/^/| /' conftest.$ac_ext >&5
18734
18735( exit $ac_status )
18736ac_cv_c_bigendian=yes
18737fi
ac1cb8d3 18738rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18739fi
18740fi
18741fi
18742echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18743echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18744if test $ac_cv_c_bigendian = unknown; then
18745 { 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
18746echo "$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;}
18747fi
18748if test $ac_cv_c_bigendian = yes; then
18749 cat >>confdefs.h <<\_ACEOF
18750#define WORDS_BIGENDIAN 1
18751_ACEOF
18752
18753fi
18754
18755
18756ac_ext=cc
18757ac_cpp='$CXXCPP $CPPFLAGS'
18758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18761echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18762echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18763if test -z "$CXXCPP"; then
18764 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18766else
18767 # Double quotes because CXXCPP needs to be expanded
18768 for CXXCPP in "$CXX -E" "/lib/cpp"
18769 do
18770 ac_preproc_ok=false
18771for ac_cxx_preproc_warn_flag in '' yes
18772do
18773 # Use a header file that comes with gcc, so configuring glibc
18774 # with a fresh cross-compiler works.
18775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18776 # <limits.h> exists even on freestanding compilers.
18777 # On the NeXT, cc -E runs the code through the compiler's parser,
18778 # not just through cpp. "Syntax error" is here to catch this case.
18779 cat >conftest.$ac_ext <<_ACEOF
18780/* confdefs.h. */
18781_ACEOF
18782cat confdefs.h >>conftest.$ac_ext
18783cat >>conftest.$ac_ext <<_ACEOF
18784/* end confdefs.h. */
18785#ifdef __STDC__
18786# include <limits.h>
18787#else
18788# include <assert.h>
18789#endif
ac1cb8d3 18790 Syntax error
a848cd7e
SC
18791_ACEOF
18792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } >/dev/null; then
18800 if test -s conftest.err; then
18801 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18802 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18803 else
18804 ac_cpp_err=
18805 fi
18806else
18807 ac_cpp_err=yes
18808fi
18809if test -z "$ac_cpp_err"; then
18810 :
18811else
18812 echo "$as_me: failed program was:" >&5
18813sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 # Broken: fails on valid input.
18816continue
18817fi
18818rm -f conftest.err conftest.$ac_ext
18819
18820 # OK, works on sane cases. Now check whether non-existent headers
18821 # can be detected and how.
18822 cat >conftest.$ac_ext <<_ACEOF
18823/* confdefs.h. */
18824_ACEOF
18825cat confdefs.h >>conftest.$ac_ext
18826cat >>conftest.$ac_ext <<_ACEOF
18827/* end confdefs.h. */
18828#include <ac_nonexistent.h>
18829_ACEOF
18830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } >/dev/null; then
18838 if test -s conftest.err; then
18839 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18840 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18841 else
18842 ac_cpp_err=
18843 fi
18844else
18845 ac_cpp_err=yes
18846fi
18847if test -z "$ac_cpp_err"; then
18848 # Broken: success on invalid input.
18849continue
18850else
18851 echo "$as_me: failed program was:" >&5
18852sed 's/^/| /' conftest.$ac_ext >&5
18853
18854 # Passes both tests.
18855ac_preproc_ok=:
18856break
18857fi
18858rm -f conftest.err conftest.$ac_ext
18859
18860done
18861# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18862rm -f conftest.err conftest.$ac_ext
18863if $ac_preproc_ok; then
18864 break
18865fi
18866
18867 done
18868 ac_cv_prog_CXXCPP=$CXXCPP
18869
18870fi
18871 CXXCPP=$ac_cv_prog_CXXCPP
18872else
18873 ac_cv_prog_CXXCPP=$CXXCPP
18874fi
18875echo "$as_me:$LINENO: result: $CXXCPP" >&5
18876echo "${ECHO_T}$CXXCPP" >&6
18877ac_preproc_ok=false
18878for ac_cxx_preproc_warn_flag in '' yes
18879do
18880 # Use a header file that comes with gcc, so configuring glibc
18881 # with a fresh cross-compiler works.
18882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18883 # <limits.h> exists even on freestanding compilers.
18884 # On the NeXT, cc -E runs the code through the compiler's parser,
18885 # not just through cpp. "Syntax error" is here to catch this case.
18886 cat >conftest.$ac_ext <<_ACEOF
18887/* confdefs.h. */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
18891/* end confdefs.h. */
18892#ifdef __STDC__
18893# include <limits.h>
18894#else
18895# include <assert.h>
18896#endif
ac1cb8d3 18897 Syntax error
a848cd7e
SC
18898_ACEOF
18899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18901 ac_status=$?
18902 grep -v '^ *+' conftest.er1 >conftest.err
18903 rm -f conftest.er1
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } >/dev/null; then
18907 if test -s conftest.err; then
18908 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18909 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18910 else
18911 ac_cpp_err=
18912 fi
18913else
18914 ac_cpp_err=yes
18915fi
18916if test -z "$ac_cpp_err"; then
18917 :
18918else
18919 echo "$as_me: failed program was:" >&5
18920sed 's/^/| /' conftest.$ac_ext >&5
18921
18922 # Broken: fails on valid input.
18923continue
18924fi
18925rm -f conftest.err conftest.$ac_ext
18926
18927 # OK, works on sane cases. Now check whether non-existent headers
18928 # can be detected and how.
18929 cat >conftest.$ac_ext <<_ACEOF
18930/* confdefs.h. */
18931_ACEOF
18932cat confdefs.h >>conftest.$ac_ext
18933cat >>conftest.$ac_ext <<_ACEOF
18934/* end confdefs.h. */
18935#include <ac_nonexistent.h>
18936_ACEOF
18937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18939 ac_status=$?
18940 grep -v '^ *+' conftest.er1 >conftest.err
18941 rm -f conftest.er1
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } >/dev/null; then
18945 if test -s conftest.err; then
18946 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18947 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18948 else
18949 ac_cpp_err=
18950 fi
18951else
18952 ac_cpp_err=yes
18953fi
18954if test -z "$ac_cpp_err"; then
18955 # Broken: success on invalid input.
18956continue
18957else
18958 echo "$as_me: failed program was:" >&5
18959sed 's/^/| /' conftest.$ac_ext >&5
18960
18961 # Passes both tests.
18962ac_preproc_ok=:
18963break
18964fi
18965rm -f conftest.err conftest.$ac_ext
18966
18967done
18968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18969rm -f conftest.err conftest.$ac_ext
18970if $ac_preproc_ok; then
18971 :
18972else
18973 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18974See \`config.log' for more details." >&5
18975echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18976See \`config.log' for more details." >&2;}
18977 { (exit 1); exit 1; }; }
18978fi
18979
18980ac_ext=cc
18981ac_cpp='$CXXCPP $CPPFLAGS'
18982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18985
18986
18987
18988
18989
18990 ac_ext=cc
18991ac_cpp='$CXXCPP $CPPFLAGS'
18992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18995
18996
18997
18998for ac_header in iostream
18999do
19000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19001if eval "test \"\${$as_ac_Header+set}\" = set"; then
19002 echo "$as_me:$LINENO: checking for $ac_header" >&5
19003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19004if eval "test \"\${$as_ac_Header+set}\" = set"; then
19005 echo $ECHO_N "(cached) $ECHO_C" >&6
19006fi
19007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19009else
19010 # Is the header compilable?
19011echo "$as_me:$LINENO: checking $ac_header usability" >&5
19012echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19013cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019$ac_includes_default
19020#include <$ac_header>
19021_ACEOF
19022rm -f conftest.$ac_objext
19023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19024 (eval $ac_compile) 2>conftest.er1
a848cd7e 19025 ac_status=$?
ac1cb8d3
VS
19026 grep -v '^ *+' conftest.er1 >conftest.err
19027 rm -f conftest.er1
19028 cat conftest.err >&5
a848cd7e
SC
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } &&
2cbbc68d
RD
19031 { ac_try='test -z "$ac_cxx_werror_flag"
19032 || test ! -s conftest.err'
ac1cb8d3
VS
19033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034 (eval $ac_try) 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; } &&
19038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; }; then
19044 ac_header_compiler=yes
19045else
19046 echo "$as_me: failed program was:" >&5
19047sed 's/^/| /' conftest.$ac_ext >&5
19048
19049ac_header_compiler=no
19050fi
ac1cb8d3 19051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19052echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19053echo "${ECHO_T}$ac_header_compiler" >&6
19054
19055# Is the header present?
19056echo "$as_me:$LINENO: checking $ac_header presence" >&5
19057echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19058cat >conftest.$ac_ext <<_ACEOF
19059/* confdefs.h. */
19060_ACEOF
19061cat confdefs.h >>conftest.$ac_ext
19062cat >>conftest.$ac_ext <<_ACEOF
19063/* end confdefs.h. */
19064#include <$ac_header>
19065_ACEOF
19066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19068 ac_status=$?
19069 grep -v '^ *+' conftest.er1 >conftest.err
19070 rm -f conftest.er1
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } >/dev/null; then
19074 if test -s conftest.err; then
19075 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19076 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19077 else
19078 ac_cpp_err=
19079 fi
19080else
19081 ac_cpp_err=yes
19082fi
19083if test -z "$ac_cpp_err"; then
19084 ac_header_preproc=yes
19085else
19086 echo "$as_me: failed program was:" >&5
19087sed 's/^/| /' conftest.$ac_ext >&5
19088
19089 ac_header_preproc=no
19090fi
19091rm -f conftest.err conftest.$ac_ext
19092echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19093echo "${ECHO_T}$ac_header_preproc" >&6
19094
19095# So? What about this header?
ac1cb8d3
VS
19096case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19097 yes:no: )
a848cd7e
SC
19098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19099echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19101echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19102 ac_header_preproc=yes
a848cd7e 19103 ;;
ac1cb8d3 19104 no:yes:* )
a848cd7e
SC
19105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19106echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19108echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19110echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19112echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19116echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19117 (
19118 cat <<\_ASBOX
ac1cb8d3
VS
19119## ----------------------------------------- ##
19120## Report this to wx-dev@lists.wxwidgets.org ##
19121## ----------------------------------------- ##
a848cd7e
SC
19122_ASBOX
19123 ) |
19124 sed "s/^/$as_me: WARNING: /" >&2
19125 ;;
19126esac
19127echo "$as_me:$LINENO: checking for $ac_header" >&5
19128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19129if eval "test \"\${$as_ac_Header+set}\" = set"; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131else
ac1cb8d3 19132 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19133fi
19134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19136
19137fi
19138if test `eval echo '${'$as_ac_Header'}'` = yes; then
19139 cat >>confdefs.h <<_ACEOF
19140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19141_ACEOF
19142
19143fi
19144
19145done
19146
19147
19148 if test "$ac_cv_header_iostream" = "yes" ; then
19149 :
19150 else
19151 cat >>confdefs.h <<\_ACEOF
19152#define wxUSE_IOSTREAMH 1
19153_ACEOF
19154
19155 fi
19156
19157 ac_ext=c
19158ac_cpp='$CPP $CPPFLAGS'
19159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19161ac_compiler_gnu=$ac_cv_c_compiler_gnu
19162
19163
19164
19165
19166 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19167echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19168if test "${wx_cv_cpp_bool+set}" = set; then
19169 echo $ECHO_N "(cached) $ECHO_C" >&6
19170else
19171
19172
19173
19174 ac_ext=cc
19175ac_cpp='$CXXCPP $CPPFLAGS'
19176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19179
19180
19181 cat >conftest.$ac_ext <<_ACEOF
19182/* confdefs.h. */
19183_ACEOF
19184cat confdefs.h >>conftest.$ac_ext
19185cat >>conftest.$ac_ext <<_ACEOF
19186/* end confdefs.h. */
19187
19188
19189int
19190main ()
19191{
19192
19193 bool b = true;
19194
19195 return 0;
19196
19197 ;
19198 return 0;
19199}
19200_ACEOF
19201rm -f conftest.$ac_objext
19202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19203 (eval $ac_compile) 2>conftest.er1
a848cd7e 19204 ac_status=$?
ac1cb8d3
VS
19205 grep -v '^ *+' conftest.er1 >conftest.err
19206 rm -f conftest.er1
19207 cat conftest.err >&5
a848cd7e
SC
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
2cbbc68d
RD
19210 { ac_try='test -z "$ac_cxx_werror_flag"
19211 || test ! -s conftest.err'
ac1cb8d3
VS
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19220 ac_status=$?
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; }; then
19223
19224 wx_cv_cpp_bool=yes
19225
19226else
19227 echo "$as_me: failed program was:" >&5
19228sed 's/^/| /' conftest.$ac_ext >&5
19229
19230
19231 wx_cv_cpp_bool=no
19232
19233
19234fi
ac1cb8d3 19235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19236
19237 ac_ext=c
19238ac_cpp='$CPP $CPPFLAGS'
19239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19241ac_compiler_gnu=$ac_cv_c_compiler_gnu
19242
19243
19244fi
19245echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19246echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19247
19248 if test "$wx_cv_cpp_bool" = "yes"; then
19249 cat >>confdefs.h <<\_ACEOF
19250#define HAVE_BOOL 1
19251_ACEOF
19252
19253 fi
19254
19255
19256
19257 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19258echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19259if test "${wx_cv_explicit+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19261else
19262
19263
19264
19265 ac_ext=cc
19266ac_cpp='$CXXCPP $CPPFLAGS'
19267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19270
19271
19272 cat >conftest.$ac_ext <<_ACEOF
19273/* confdefs.h. */
19274_ACEOF
19275cat confdefs.h >>conftest.$ac_ext
19276cat >>conftest.$ac_ext <<_ACEOF
19277/* end confdefs.h. */
19278
19279 class Foo { public: explicit Foo(int) {} };
19280
19281int
19282main ()
19283{
19284
19285 return 0;
19286
19287 ;
19288 return 0;
19289}
19290_ACEOF
19291rm -f conftest.$ac_objext
19292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19293 (eval $ac_compile) 2>conftest.er1
a848cd7e 19294 ac_status=$?
ac1cb8d3
VS
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
a848cd7e
SC
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
2cbbc68d
RD
19300 { ac_try='test -z "$ac_cxx_werror_flag"
19301 || test ! -s conftest.err'
ac1cb8d3
VS
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; } &&
19307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19313
19314 cat >conftest.$ac_ext <<_ACEOF
19315/* confdefs.h. */
19316_ACEOF
19317cat confdefs.h >>conftest.$ac_ext
19318cat >>conftest.$ac_ext <<_ACEOF
19319/* end confdefs.h. */
19320
19321 class Foo { public: explicit Foo(int) {} };
19322 static void TakeFoo(const Foo& foo) { }
19323
19324int
19325main ()
19326{
19327
19328 TakeFoo(17);
19329 return 0;
19330
19331 ;
19332 return 0;
19333}
19334_ACEOF
19335rm -f conftest.$ac_objext
19336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19337 (eval $ac_compile) 2>conftest.er1
a848cd7e 19338 ac_status=$?
ac1cb8d3
VS
19339 grep -v '^ *+' conftest.er1 >conftest.err
19340 rm -f conftest.er1
19341 cat conftest.err >&5
a848cd7e
SC
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } &&
2cbbc68d
RD
19344 { ac_try='test -z "$ac_cxx_werror_flag"
19345 || test ! -s conftest.err'
ac1cb8d3
VS
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19354 ac_status=$?
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; }; then
19357 wx_cv_explicit=no
19358else
19359 echo "$as_me: failed program was:" >&5
19360sed 's/^/| /' conftest.$ac_ext >&5
19361
19362wx_cv_explicit=yes
19363
19364fi
ac1cb8d3 19365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19366
19367else
19368 echo "$as_me: failed program was:" >&5
19369sed 's/^/| /' conftest.$ac_ext >&5
19370
19371wx_cv_explicit=no
19372
19373fi
ac1cb8d3 19374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19375
19376 ac_ext=c
19377ac_cpp='$CPP $CPPFLAGS'
19378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19380ac_compiler_gnu=$ac_cv_c_compiler_gnu
19381
19382
19383fi
19384echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19385echo "${ECHO_T}$wx_cv_explicit" >&6
19386
19387 if test "$wx_cv_explicit" = "yes"; then
19388 cat >>confdefs.h <<\_ACEOF
19389#define HAVE_EXPLICIT 1
19390_ACEOF
19391
19392 fi
19393
19394
19395echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19396echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19397if test "${ac_cv_cxx_const_cast+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19399else
19400
19401
19402 ac_ext=cc
19403ac_cpp='$CXXCPP $CPPFLAGS'
19404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19407
19408 cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h. */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h. */
19414
19415int
19416main ()
19417{
19418int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19419 ;
19420 return 0;
19421}
19422_ACEOF
19423rm -f conftest.$ac_objext
19424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19425 (eval $ac_compile) 2>conftest.er1
a848cd7e 19426 ac_status=$?
ac1cb8d3
VS
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
a848cd7e
SC
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
2cbbc68d
RD
19432 { ac_try='test -z "$ac_cxx_werror_flag"
19433 || test ! -s conftest.err'
ac1cb8d3
VS
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } &&
19439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 ac_cv_cxx_const_cast=yes
19446else
19447 echo "$as_me: failed program was:" >&5
19448sed 's/^/| /' conftest.$ac_ext >&5
19449
19450ac_cv_cxx_const_cast=no
19451fi
ac1cb8d3 19452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19453 ac_ext=c
19454ac_cpp='$CPP $CPPFLAGS'
19455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457ac_compiler_gnu=$ac_cv_c_compiler_gnu
19458
19459
19460fi
19461echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19462echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19463if test "$ac_cv_cxx_const_cast" = yes; then
19464
19465cat >>confdefs.h <<\_ACEOF
19466#define HAVE_CONST_CAST
19467_ACEOF
19468
19469fi
19470
7714864e
RL
19471echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19472echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19473if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475else
19476
19477
19478 ac_ext=cc
19479ac_cpp='$CXXCPP $CPPFLAGS'
19480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19483
19484 cat >conftest.$ac_ext <<_ACEOF
19485/* confdefs.h. */
19486_ACEOF
19487cat confdefs.h >>conftest.$ac_ext
19488cat >>conftest.$ac_ext <<_ACEOF
19489/* end confdefs.h. */
19490#include <typeinfo>
19491class Base { public : Base () {} virtual void f () = 0;};
19492class Derived : public Base { public : Derived () {} virtual void f () {} };
19493class Unrelated { public : Unrelated () {} };
19494int g (Unrelated&) { return 0; }
19495int
19496main ()
19497{
19498
19499Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19500 ;
19501 return 0;
19502}
19503_ACEOF
19504rm -f conftest.$ac_objext
19505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19506 (eval $ac_compile) 2>conftest.er1
19507 ac_status=$?
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
2cbbc68d
RD
19513 { ac_try='test -z "$ac_cxx_werror_flag"
19514 || test ! -s conftest.err'
7714864e
RL
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; } &&
19520 { ac_try='test -s conftest.$ac_objext'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_cv_cxx_reinterpret_cast=yes
19527else
19528 echo "$as_me: failed program was:" >&5
19529sed 's/^/| /' conftest.$ac_ext >&5
19530
19531ac_cv_cxx_reinterpret_cast=no
19532fi
19533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19534 ac_ext=c
19535ac_cpp='$CPP $CPPFLAGS'
19536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538ac_compiler_gnu=$ac_cv_c_compiler_gnu
19539
19540
19541fi
19542echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19543echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19544if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19545
19546cat >>confdefs.h <<\_ACEOF
19547#define HAVE_REINTERPRET_CAST
19548_ACEOF
19549
19550fi
19551
a848cd7e
SC
19552echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19553echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19554if test "${ac_cv_cxx_static_cast+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556else
19557
19558
19559 ac_ext=cc
19560ac_cpp='$CXXCPP $CPPFLAGS'
19561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19564
19565 cat >conftest.$ac_ext <<_ACEOF
19566/* confdefs.h. */
19567_ACEOF
19568cat confdefs.h >>conftest.$ac_ext
19569cat >>conftest.$ac_ext <<_ACEOF
19570/* end confdefs.h. */
19571#include <typeinfo>
19572class Base { public : Base () {} virtual void f () = 0; };
19573class Derived : public Base { public : Derived () {} virtual void f () {} };
19574int g (Derived&) { return 0; }
19575int
19576main ()
19577{
19578
19579Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19580 ;
19581 return 0;
19582}
19583_ACEOF
19584rm -f conftest.$ac_objext
19585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19586 (eval $ac_compile) 2>conftest.er1
a848cd7e 19587 ac_status=$?
ac1cb8d3
VS
19588 grep -v '^ *+' conftest.er1 >conftest.err
19589 rm -f conftest.er1
19590 cat conftest.err >&5
a848cd7e
SC
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } &&
2cbbc68d
RD
19593 { ac_try='test -z "$ac_cxx_werror_flag"
19594 || test ! -s conftest.err'
ac1cb8d3
VS
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; } &&
19600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; }; then
19606 ac_cv_cxx_static_cast=yes
19607else
19608 echo "$as_me: failed program was:" >&5
19609sed 's/^/| /' conftest.$ac_ext >&5
19610
19611ac_cv_cxx_static_cast=no
19612fi
ac1cb8d3 19613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19614 ac_ext=c
19615ac_cpp='$CPP $CPPFLAGS'
19616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19618ac_compiler_gnu=$ac_cv_c_compiler_gnu
19619
19620
19621fi
19622echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19623echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19624if test "$ac_cv_cxx_static_cast" = yes; then
19625
19626cat >>confdefs.h <<\_ACEOF
19627#define HAVE_STATIC_CAST
19628_ACEOF
19629
19630fi
19631
19632
19633if test "$wxUSE_STL" = "yes"; then
19634 ac_ext=cc
19635ac_cpp='$CXXCPP $CPPFLAGS'
19636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19639
19640
19641 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19642echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19643 cat >conftest.$ac_ext <<_ACEOF
19644/* confdefs.h. */
19645_ACEOF
19646cat confdefs.h >>conftest.$ac_ext
19647cat >>conftest.$ac_ext <<_ACEOF
19648/* end confdefs.h. */
19649#include <string>
19650 #include <functional>
19651 #include <algorithm>
19652 #include <vector>
19653 #include <list>
19654int
19655main ()
19656{
19657std::vector<int> moo;
19658 std::list<int> foo;
19659 std::vector<int>::iterator it =
19660 std::find_if(moo.begin(), moo.end(),
19661 std::bind2nd(std::less<int>(), 3));
19662 ;
19663 return 0;
19664}
19665_ACEOF
19666rm -f conftest.$ac_objext
19667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19668 (eval $ac_compile) 2>conftest.er1
a848cd7e 19669 ac_status=$?
ac1cb8d3
VS
19670 grep -v '^ *+' conftest.er1 >conftest.err
19671 rm -f conftest.er1
19672 cat conftest.err >&5
a848cd7e
SC
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } &&
2cbbc68d
RD
19675 { ac_try='test -z "$ac_cxx_werror_flag"
19676 || test ! -s conftest.err'
ac1cb8d3
VS
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19679 ac_status=$?
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; } &&
19682 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; }; then
19688 echo "$as_me:$LINENO: result: yes" >&5
19689echo "${ECHO_T}yes" >&6
19690else
19691 echo "$as_me: failed program was:" >&5
19692sed 's/^/| /' conftest.$ac_ext >&5
19693
19694echo "$as_me:$LINENO: result: no" >&5
19695echo "${ECHO_T}no" >&6
19696 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19697echo "$as_me: error: Basic STL functionality missing" >&2;}
19698 { (exit 1); exit 1; }; }
19699fi
ac1cb8d3 19700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19701
19702 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19703echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19704 cat >conftest.$ac_ext <<_ACEOF
19705/* confdefs.h. */
19706_ACEOF
19707cat confdefs.h >>conftest.$ac_ext
19708cat >>conftest.$ac_ext <<_ACEOF
19709/* end confdefs.h. */
19710#include <string>
19711int
19712main ()
19713{
19714std::wstring foo;
19715 ;
19716 return 0;
19717}
19718_ACEOF
19719rm -f conftest.$ac_objext
19720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19721 (eval $ac_compile) 2>conftest.er1
a848cd7e 19722 ac_status=$?
ac1cb8d3
VS
19723 grep -v '^ *+' conftest.er1 >conftest.err
19724 rm -f conftest.er1
19725 cat conftest.err >&5
a848cd7e
SC
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } &&
2cbbc68d
RD
19728 { ac_try='test -z "$ac_cxx_werror_flag"
19729 || test ! -s conftest.err'
ac1cb8d3
VS
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; } &&
19735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737 (eval $ac_try) 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
19741 echo "$as_me:$LINENO: result: yes" >&5
19742echo "${ECHO_T}yes" >&6
19743 cat >>confdefs.h <<\_ACEOF
19744#define HAVE_STD_WSTRING 1
19745_ACEOF
19746
19747else
19748 echo "$as_me: failed program was:" >&5
19749sed 's/^/| /' conftest.$ac_ext >&5
19750
19751echo "$as_me:$LINENO: result: no" >&5
19752echo "${ECHO_T}no" >&6
19753fi
ac1cb8d3 19754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19755
19756 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19757echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19758 cat >conftest.$ac_ext <<_ACEOF
19759/* confdefs.h. */
19760_ACEOF
19761cat confdefs.h >>conftest.$ac_ext
19762cat >>conftest.$ac_ext <<_ACEOF
19763/* end confdefs.h. */
19764#include <string>
19765int
19766main ()
19767{
19768std::string foo, bar;
19769 foo.compare(bar);
19770 foo.compare(1, 1, bar);
19771 foo.compare(1, 1, bar, 1, 1);
19772 foo.compare("");
19773 foo.compare(1, 1, "");
19774 foo.compare(1, 1, "", 2);
19775 ;
19776 return 0;
19777}
19778_ACEOF
19779rm -f conftest.$ac_objext
19780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19781 (eval $ac_compile) 2>conftest.er1
a848cd7e 19782 ac_status=$?
ac1cb8d3
VS
19783 grep -v '^ *+' conftest.er1 >conftest.err
19784 rm -f conftest.er1
19785 cat conftest.err >&5
a848cd7e
SC
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
2cbbc68d
RD
19788 { ac_try='test -z "$ac_cxx_werror_flag"
19789 || test ! -s conftest.err'
ac1cb8d3
VS
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 echo "$as_me:$LINENO: result: yes" >&5
19802echo "${ECHO_T}yes" >&6
19803 cat >>confdefs.h <<\_ACEOF
19804#define HAVE_STD_STRING_COMPARE 1
19805_ACEOF
19806
19807else
19808 echo "$as_me: failed program was:" >&5
19809sed 's/^/| /' conftest.$ac_ext >&5
19810
19811echo "$as_me:$LINENO: result: no" >&5
19812echo "${ECHO_T}no" >&6
19813fi
ac1cb8d3 19814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19815
19816 if test "${ac_cv_header_hash_map+set}" = set; then
19817 echo "$as_me:$LINENO: checking for hash_map" >&5
19818echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19819if test "${ac_cv_header_hash_map+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19821fi
19822echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19823echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19824else
19825 # Is the header compilable?
19826echo "$as_me:$LINENO: checking hash_map usability" >&5
19827echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19828cat >conftest.$ac_ext <<_ACEOF
19829/* confdefs.h. */
19830_ACEOF
19831cat confdefs.h >>conftest.$ac_ext
19832cat >>conftest.$ac_ext <<_ACEOF
19833/* end confdefs.h. */
19834$ac_includes_default
19835#include <hash_map>
19836_ACEOF
19837rm -f conftest.$ac_objext
19838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19839 (eval $ac_compile) 2>conftest.er1
bdcade0a 19840 ac_status=$?
ac1cb8d3
VS
19841 grep -v '^ *+' conftest.er1 >conftest.err
19842 rm -f conftest.er1
19843 cat conftest.err >&5
bdcade0a
MB
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } &&
2cbbc68d
RD
19846 { ac_try='test -z "$ac_cxx_werror_flag"
19847 || test ! -s conftest.err'
ac1cb8d3
VS
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; } &&
19853 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; }; then
19859 ac_header_compiler=yes
19860else
19861 echo "$as_me: failed program was:" >&5
19862sed 's/^/| /' conftest.$ac_ext >&5
19863
19864ac_header_compiler=no
19865fi
ac1cb8d3 19866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19867echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19868echo "${ECHO_T}$ac_header_compiler" >&6
19869
19870# Is the header present?
19871echo "$as_me:$LINENO: checking hash_map presence" >&5
19872echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19873cat >conftest.$ac_ext <<_ACEOF
19874/* confdefs.h. */
19875_ACEOF
19876cat confdefs.h >>conftest.$ac_ext
19877cat >>conftest.$ac_ext <<_ACEOF
19878/* end confdefs.h. */
19879#include <hash_map>
19880_ACEOF
19881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } >/dev/null; then
19889 if test -s conftest.err; then
19890 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19891 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19892 else
19893 ac_cpp_err=
19894 fi
19895else
19896 ac_cpp_err=yes
19897fi
19898if test -z "$ac_cpp_err"; then
19899 ac_header_preproc=yes
19900else
19901 echo "$as_me: failed program was:" >&5
19902sed 's/^/| /' conftest.$ac_ext >&5
19903
19904 ac_header_preproc=no
19905fi
19906rm -f conftest.err conftest.$ac_ext
19907echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19908echo "${ECHO_T}$ac_header_preproc" >&6
19909
19910# So? What about this header?
ac1cb8d3
VS
19911case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19912 yes:no: )
bdcade0a
MB
19913 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19914echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19915 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19916echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19917 ac_header_preproc=yes
bdcade0a 19918 ;;
ac1cb8d3 19919 no:yes:* )
bdcade0a
MB
19920 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19921echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19922 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19923echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19925echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19927echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19928 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19929echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19930 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19931echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19932 (
19933 cat <<\_ASBOX
ac1cb8d3
VS
19934## ----------------------------------------- ##
19935## Report this to wx-dev@lists.wxwidgets.org ##
19936## ----------------------------------------- ##
bdcade0a
MB
19937_ASBOX
19938 ) |
19939 sed "s/^/$as_me: WARNING: /" >&2
19940 ;;
19941esac
19942echo "$as_me:$LINENO: checking for hash_map" >&5
19943echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19944if test "${ac_cv_header_hash_map+set}" = set; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19946else
19947 ac_cv_header_hash_map=$ac_header_preproc
19948fi
19949echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19950echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19951
19952fi
19953if test $ac_cv_header_hash_map = yes; then
19954 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19955echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19956 cat >conftest.$ac_ext <<_ACEOF
19957/* confdefs.h. */
19958_ACEOF
19959cat confdefs.h >>conftest.$ac_ext
19960cat >>conftest.$ac_ext <<_ACEOF
19961/* end confdefs.h. */
19962#include <hash_map>
19963 #include <hash_set>
19964int
19965main ()
19966{
19967std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19968 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19969 ;
19970 return 0;
19971}
19972_ACEOF
19973rm -f conftest.$ac_objext
19974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19975 (eval $ac_compile) 2>conftest.er1
bdcade0a 19976 ac_status=$?
ac1cb8d3
VS
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
bdcade0a
MB
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
2cbbc68d
RD
19982 { ac_try='test -z "$ac_cxx_werror_flag"
19983 || test ! -s conftest.err'
ac1cb8d3
VS
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }; then
19995 echo "$as_me:$LINENO: result: yes" >&5
19996echo "${ECHO_T}yes" >&6
19997 cat >>confdefs.h <<\_ACEOF
19998#define HAVE_HASH_MAP 1
19999_ACEOF
20000
20001 cat >>confdefs.h <<\_ACEOF
20002#define HAVE_STD_HASH_MAP 1
20003_ACEOF
20004
20005else
20006 echo "$as_me: failed program was:" >&5
20007sed 's/^/| /' conftest.$ac_ext >&5
20008
20009echo "$as_me:$LINENO: result: no" >&5
20010echo "${ECHO_T}no" >&6
20011fi
ac1cb8d3 20012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20013
20014fi
20015
20016
20017
20018 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20019 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20020echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20021if test "${ac_cv_header_ext_hash_map+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023fi
20024echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20025echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20026else
20027 # Is the header compilable?
20028echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20029echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20030cat >conftest.$ac_ext <<_ACEOF
20031/* confdefs.h. */
20032_ACEOF
20033cat confdefs.h >>conftest.$ac_ext
20034cat >>conftest.$ac_ext <<_ACEOF
20035/* end confdefs.h. */
20036$ac_includes_default
20037#include <ext/hash_map>
20038_ACEOF
20039rm -f conftest.$ac_objext
20040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20041 (eval $ac_compile) 2>conftest.er1
bdcade0a 20042 ac_status=$?
ac1cb8d3
VS
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
bdcade0a
MB
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
2cbbc68d
RD
20048 { ac_try='test -z "$ac_cxx_werror_flag"
20049 || test ! -s conftest.err'
ac1cb8d3
VS
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 ac_header_compiler=yes
20062else
20063 echo "$as_me: failed program was:" >&5
20064sed 's/^/| /' conftest.$ac_ext >&5
20065
20066ac_header_compiler=no
20067fi
ac1cb8d3 20068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20069echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20070echo "${ECHO_T}$ac_header_compiler" >&6
20071
20072# Is the header present?
20073echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20074echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20075cat >conftest.$ac_ext <<_ACEOF
20076/* confdefs.h. */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h. */
20081#include <ext/hash_map>
20082_ACEOF
20083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20085 ac_status=$?
20086 grep -v '^ *+' conftest.er1 >conftest.err
20087 rm -f conftest.er1
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } >/dev/null; then
20091 if test -s conftest.err; then
20092 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20093 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20094 else
20095 ac_cpp_err=
20096 fi
20097else
20098 ac_cpp_err=yes
20099fi
20100if test -z "$ac_cpp_err"; then
20101 ac_header_preproc=yes
20102else
20103 echo "$as_me: failed program was:" >&5
20104sed 's/^/| /' conftest.$ac_ext >&5
20105
20106 ac_header_preproc=no
20107fi
20108rm -f conftest.err conftest.$ac_ext
20109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20110echo "${ECHO_T}$ac_header_preproc" >&6
20111
20112# So? What about this header?
ac1cb8d3
VS
20113case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20114 yes:no: )
bdcade0a
MB
20115 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20116echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20117 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20118echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20119 ac_header_preproc=yes
bdcade0a 20120 ;;
ac1cb8d3 20121 no:yes:* )
bdcade0a
MB
20122 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20123echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20124 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20125echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20126 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20127echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20129echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20130 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20131echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20132 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20133echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20134 (
20135 cat <<\_ASBOX
ac1cb8d3
VS
20136## ----------------------------------------- ##
20137## Report this to wx-dev@lists.wxwidgets.org ##
20138## ----------------------------------------- ##
bdcade0a
MB
20139_ASBOX
20140 ) |
20141 sed "s/^/$as_me: WARNING: /" >&2
20142 ;;
20143esac
20144echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20145echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20146if test "${ac_cv_header_ext_hash_map+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20148else
20149 ac_cv_header_ext_hash_map=$ac_header_preproc
20150fi
20151echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20152echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20153
20154fi
20155if test $ac_cv_header_ext_hash_map = yes; then
20156 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20157echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20158 cat >conftest.$ac_ext <<_ACEOF
20159/* confdefs.h. */
20160_ACEOF
20161cat confdefs.h >>conftest.$ac_ext
20162cat >>conftest.$ac_ext <<_ACEOF
20163/* end confdefs.h. */
20164#include <ext/hash_map>
20165 #include <ext/hash_set>
20166int
20167main ()
20168{
20169__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20170 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20171 ;
20172 return 0;
20173}
20174_ACEOF
20175rm -f conftest.$ac_objext
20176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20177 (eval $ac_compile) 2>conftest.er1
bdcade0a 20178 ac_status=$?
ac1cb8d3
VS
20179 grep -v '^ *+' conftest.er1 >conftest.err
20180 rm -f conftest.er1
20181 cat conftest.err >&5
bdcade0a
MB
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } &&
2cbbc68d
RD
20184 { ac_try='test -z "$ac_cxx_werror_flag"
20185 || test ! -s conftest.err'
ac1cb8d3
VS
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; } &&
20191 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 echo "$as_me:$LINENO: result: yes" >&5
20198echo "${ECHO_T}yes" >&6
20199 cat >>confdefs.h <<\_ACEOF
20200#define HAVE_EXT_HASH_MAP 1
20201_ACEOF
20202
20203 cat >>confdefs.h <<\_ACEOF
20204#define HAVE_GNU_CXX_HASH_MAP 1
20205_ACEOF
20206
20207else
20208 echo "$as_me: failed program was:" >&5
20209sed 's/^/| /' conftest.$ac_ext >&5
20210
20211echo "$as_me:$LINENO: result: no" >&5
20212echo "${ECHO_T}no" >&6
20213fi
ac1cb8d3 20214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20215
20216fi
20217
20218
a848cd7e
SC
20219
20220 ac_ext=c
20221ac_cpp='$CPP $CPPFLAGS'
20222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20224ac_compiler_gnu=$ac_cv_c_compiler_gnu
20225
20226fi
20227
20228
20229SEARCH_INCLUDE="\
20230 /usr/local/include \
20231 \
20232 /usr/Motif-2.1/include \
20233 /usr/Motif-1.2/include \
20234 /usr/include/Motif1.2 \
20235 /opt/xpm/include/X11 \
20236 /opt/GBxpm/include/ \
20237 /opt/GBxpm/X11/include/ \
20238 \
20239 /usr/dt/include \
20240 /usr/openwin/include \
20241 \
20242 /usr/include/Xm \
20243 \
20244 /usr/X11R6/include \
20245 /usr/X11R6.4/include \
20246 /usr/X11R5/include \
20247 /usr/X11R4/include \
20248 \
20249 /usr/include/X11R6 \
20250 /usr/include/X11R5 \
20251 /usr/include/X11R4 \
20252 \
20253 /usr/local/X11R6/include \
20254 /usr/local/X11R5/include \
20255 /usr/local/X11R4/include \
20256 \
20257 /usr/local/include/X11R6 \
20258 /usr/local/include/X11R5 \
20259 /usr/local/include/X11R4 \
20260 \
20261 /usr/X11/include \
20262 /usr/include/X11 \
20263 /usr/local/X11/include \
20264 /usr/local/include/X11 \
20265 \
20266 /usr/X386/include \
20267 /usr/x386/include \
20268 /usr/XFree86/include/X11 \
20269 \
20270 X:/XFree86/include \
20271 X:/XFree86/include/X11 \
20272 \
20273 /usr/include/gtk \
20274 /usr/local/include/gtk \
20275 /usr/include/glib \
20276 /usr/local/include/glib \
20277 \
20278 /usr/include/qt \
20279 /usr/local/include/qt \
20280 \
20281 /usr/local/arm/3.3.2/include \
20282 \
20283 /usr/include/windows \
20284 /usr/include/wine \
20285 /usr/local/include/wine \
20286 \
20287 /usr/unsupported/include \
20288 /usr/athena/include \
20289 /usr/local/x11r5/include \
20290 /usr/lpp/Xamples/include \
20291 \
20292 /usr/openwin/share/include"
20293
20294SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20295
20296
20297cat >confcache <<\_ACEOF
20298# This file is a shell script that caches the results of configure
20299# tests run on this system so they can be shared between configure
20300# scripts and configure runs, see configure's option --config-cache.
20301# It is not useful on other systems. If it contains results you don't
20302# want to keep, you may remove or edit it.
20303#
20304# config.status only pays attention to the cache file if you give it
20305# the --recheck option to rerun configure.
20306#
20307# `ac_cv_env_foo' variables (set or unset) will be overridden when
20308# loading this file, other *unset* `ac_cv_foo' will be assigned the
20309# following values.
20310
20311_ACEOF
20312
20313# The following way of writing the cache mishandles newlines in values,
20314# but we know of no workaround that is simple, portable, and efficient.
20315# So, don't put newlines in cache variables' values.
20316# Ultrix sh set writes to stderr and can't be redirected directly,
20317# and sets the high bit in the cache file unless we assign to the vars.
20318{
20319 (set) 2>&1 |
20320 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20321 *ac_space=\ *)
20322 # `set' does not quote correctly, so add quotes (double-quote
20323 # substitution turns \\\\ into \\, and sed turns \\ into \).
20324 sed -n \
ac1cb8d3
VS
20325 "s/'/'\\\\''/g;
20326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20327 ;;
20328 *)
20329 # `set' quotes correctly as required by POSIX, so do not add quotes.
20330 sed -n \
ac1cb8d3 20331 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20332 ;;
20333 esac;
20334} |
20335 sed '
20336 t clear
20337 : clear
20338 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20339 t end
20340 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20341 : end' >>confcache
20342if diff $cache_file confcache >/dev/null 2>&1; then :; else
20343 if test -w $cache_file; then
20344 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20345 cat confcache >$cache_file
20346 else
20347 echo "not updating unwritable cache $cache_file"
20348 fi
20349fi
20350rm -f confcache
20351
20352if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20353 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20354echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20355if test "${wx_cv_lib_glibc21+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20357else
20358
20359 cat >conftest.$ac_ext <<_ACEOF
20360/* confdefs.h. */
20361_ACEOF
20362cat confdefs.h >>conftest.$ac_ext
20363cat >>conftest.$ac_ext <<_ACEOF
20364/* end confdefs.h. */
20365#include <features.h>
20366int
20367main ()
20368{
20369
20370 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20371 #error not glibc2.1
20372 #endif
20373
20374 ;
20375 return 0;
20376}
20377_ACEOF
20378rm -f conftest.$ac_objext
20379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20380 (eval $ac_compile) 2>conftest.er1
a848cd7e 20381 ac_status=$?
ac1cb8d3
VS
20382 grep -v '^ *+' conftest.er1 >conftest.err
20383 rm -f conftest.er1
20384 cat conftest.err >&5
a848cd7e
SC
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } &&
2cbbc68d
RD
20387 { ac_try='test -z "$ac_c_werror_flag"
20388 || test ! -s conftest.err'
ac1cb8d3
VS
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; } &&
20394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400
20401 wx_cv_lib_glibc21=yes
20402
20403else
20404 echo "$as_me: failed program was:" >&5
20405sed 's/^/| /' conftest.$ac_ext >&5
20406
20407
20408 wx_cv_lib_glibc21=no
20409
20410
20411fi
ac1cb8d3 20412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20413
20414fi
20415echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20416echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20417 if test "$wx_cv_lib_glibc21" = "yes"; then
20418 cat >>confdefs.h <<\_ACEOF
20419#define wxHAVE_GLIBC2 1
20420_ACEOF
20421
20422 fi
20423fi
20424
20425if test "x$wx_cv_lib_glibc21" = "xyes"; then
20426 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20427 cat >>confdefs.h <<\_ACEOF
20428#define _GNU_SOURCE 1
20429_ACEOF
20430
20431 fi
20432fi
20433
20434
20435
20436if test "$wxUSE_REGEX" != "no"; then
20437 cat >>confdefs.h <<\_ACEOF
20438#define wxUSE_REGEX 1
20439_ACEOF
20440
20441
20442 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20443 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20444echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20445 wxUSE_REGEX=builtin
20446 fi
20447
20448 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20449 if test "${ac_cv_header_regex_h+set}" = set; then
20450 echo "$as_me:$LINENO: checking for regex.h" >&5
20451echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20452if test "${ac_cv_header_regex_h+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20454fi
20455echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20456echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20457else
20458 # Is the header compilable?
20459echo "$as_me:$LINENO: checking regex.h usability" >&5
20460echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20461cat >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$ac_includes_default
20468#include <regex.h>
20469_ACEOF
20470rm -f conftest.$ac_objext
20471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20472 (eval $ac_compile) 2>conftest.er1
a848cd7e 20473 ac_status=$?
ac1cb8d3
VS
20474 grep -v '^ *+' conftest.er1 >conftest.err
20475 rm -f conftest.er1
20476 cat conftest.err >&5
a848cd7e
SC
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
2cbbc68d
RD
20479 { ac_try='test -z "$ac_c_werror_flag"
20480 || test ! -s conftest.err'
ac1cb8d3
VS
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; } &&
20486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 ac_header_compiler=yes
20493else
20494 echo "$as_me: failed program was:" >&5
20495sed 's/^/| /' conftest.$ac_ext >&5
20496
20497ac_header_compiler=no
20498fi
ac1cb8d3 20499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20501echo "${ECHO_T}$ac_header_compiler" >&6
20502
20503# Is the header present?
20504echo "$as_me:$LINENO: checking regex.h presence" >&5
20505echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20506cat >conftest.$ac_ext <<_ACEOF
20507/* confdefs.h. */
20508_ACEOF
20509cat confdefs.h >>conftest.$ac_ext
20510cat >>conftest.$ac_ext <<_ACEOF
20511/* end confdefs.h. */
20512#include <regex.h>
20513_ACEOF
20514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20516 ac_status=$?
20517 grep -v '^ *+' conftest.er1 >conftest.err
20518 rm -f conftest.er1
20519 cat conftest.err >&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } >/dev/null; then
20522 if test -s conftest.err; then
20523 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20525 else
20526 ac_cpp_err=
20527 fi
20528else
20529 ac_cpp_err=yes
20530fi
20531if test -z "$ac_cpp_err"; then
20532 ac_header_preproc=yes
20533else
20534 echo "$as_me: failed program was:" >&5
20535sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 ac_header_preproc=no
20538fi
20539rm -f conftest.err conftest.$ac_ext
20540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20541echo "${ECHO_T}$ac_header_preproc" >&6
20542
20543# So? What about this header?
ac1cb8d3
VS
20544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20545 yes:no: )
a848cd7e
SC
20546 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20547echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20548 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20549echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20550 ac_header_preproc=yes
a848cd7e 20551 ;;
ac1cb8d3 20552 no:yes:* )
a848cd7e
SC
20553 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20554echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20555 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20556echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20557 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20558echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20559 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20560echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20561 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20562echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20563 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20564echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20565 (
20566 cat <<\_ASBOX
ac1cb8d3
VS
20567## ----------------------------------------- ##
20568## Report this to wx-dev@lists.wxwidgets.org ##
20569## ----------------------------------------- ##
a848cd7e
SC
20570_ASBOX
20571 ) |
20572 sed "s/^/$as_me: WARNING: /" >&2
20573 ;;
20574esac
20575echo "$as_me:$LINENO: checking for regex.h" >&5
20576echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20577if test "${ac_cv_header_regex_h+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20579else
20580 ac_cv_header_regex_h=$ac_header_preproc
20581fi
20582echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20583echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20584
20585fi
20586if test $ac_cv_header_regex_h = yes; then
20587
20588for ac_func in regcomp
20589do
20590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20591echo "$as_me:$LINENO: checking for $ac_func" >&5
20592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20593if eval "test \"\${$as_ac_var+set}\" = set"; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595else
20596 cat >conftest.$ac_ext <<_ACEOF
20597/* confdefs.h. */
20598_ACEOF
20599cat confdefs.h >>conftest.$ac_ext
20600cat >>conftest.$ac_ext <<_ACEOF
20601/* end confdefs.h. */
ac1cb8d3
VS
20602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20604#define $ac_func innocuous_$ac_func
20605
a848cd7e
SC
20606/* System header to define __stub macros and hopefully few prototypes,
20607 which can conflict with char $ac_func (); below.
20608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20609 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20610
a848cd7e
SC
20611#ifdef __STDC__
20612# include <limits.h>
20613#else
20614# include <assert.h>
20615#endif
ac1cb8d3
VS
20616
20617#undef $ac_func
20618
a848cd7e
SC
20619/* Override any gcc2 internal prototype to avoid an error. */
20620#ifdef __cplusplus
20621extern "C"
20622{
20623#endif
20624/* We use char because int might match the return type of a gcc2
20625 builtin and then its argument prototype would still apply. */
20626char $ac_func ();
20627/* The GNU C library defines this for functions which it implements
20628 to always fail with ENOSYS. Some functions are actually named
20629 something starting with __ and the normal name is an alias. */
20630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20631choke me
20632#else
20633char (*f) () = $ac_func;
20634#endif
20635#ifdef __cplusplus
20636}
20637#endif
20638
20639int
20640main ()
20641{
20642return f != $ac_func;
20643 ;
20644 return 0;
20645}
20646_ACEOF
20647rm -f conftest.$ac_objext conftest$ac_exeext
20648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20649 (eval $ac_link) 2>conftest.er1
a848cd7e 20650 ac_status=$?
ac1cb8d3
VS
20651 grep -v '^ *+' conftest.er1 >conftest.err
20652 rm -f conftest.er1
20653 cat conftest.err >&5
a848cd7e
SC
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } &&
2cbbc68d
RD
20656 { ac_try='test -z "$ac_c_werror_flag"
20657 || test ! -s conftest.err'
ac1cb8d3
VS
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; } &&
20663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; }; then
20669 eval "$as_ac_var=yes"
20670else
20671 echo "$as_me: failed program was:" >&5
20672sed 's/^/| /' conftest.$ac_ext >&5
20673
20674eval "$as_ac_var=no"
20675fi
ac1cb8d3
VS
20676rm -f conftest.err conftest.$ac_objext \
20677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20678fi
20679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20680echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20681if test `eval echo '${'$as_ac_var'}'` = yes; then
20682 cat >>confdefs.h <<_ACEOF
20683#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20684_ACEOF
20685
20686fi
20687done
20688
20689fi
20690
20691
20692
20693 if test "x$ac_cv_func_regcomp" != "xyes"; then
20694 if test "$wxUSE_REGEX" = "sys" ; then
20695 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20696echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20697 { (exit 1); exit 1; }; }
20698 else
20699 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20700echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20701 wxUSE_REGEX=builtin
20702 fi
20703 else
20704 wxUSE_REGEX=sys
20705 cat >>confdefs.h <<\_ACEOF
20706#define WX_NO_REGEX_ADVANCED 1
20707_ACEOF
20708
20709 fi
20710 fi
20711fi
20712
20713
20714ZLIB_LINK=
20715if test "$wxUSE_ZLIB" != "no" ; then
20716 cat >>confdefs.h <<\_ACEOF
20717#define wxUSE_ZLIB 1
20718_ACEOF
20719
20720
20721 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20722 if test "$USE_DARWIN" = 1; then
20723 system_zlib_h_ok="yes"
20724 else
20725 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20726echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20727if test "${ac_cv_header_zlib_h+set}" = set; then
20728 echo $ECHO_N "(cached) $ECHO_C" >&6
20729else
20730 if test "$cross_compiling" = yes; then
20731 unset ac_cv_header_zlib_h
20732
20733else
20734 cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
20740
20741 #include <zlib.h>
20742 #include <stdio.h>
20743
20744 int main()
20745 {
20746 FILE *f=fopen("conftestval", "w");
20747 if (!f) exit(1);
20748 fprintf(f, "%s",
20749 ZLIB_VERSION[0] == '1' &&
20750 (ZLIB_VERSION[2] > '1' ||
20751 (ZLIB_VERSION[2] == '1' &&
20752 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20753 exit(0);
20754 }
20755
20756_ACEOF
20757rm -f conftest$ac_exeext
20758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20759 (eval $ac_link) 2>&5
20760 ac_status=$?
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 ac_cv_header_zlib_h=`cat conftestval`
20769else
20770 echo "$as_me: program exited with status $ac_status" >&5
20771echo "$as_me: failed program was:" >&5
20772sed 's/^/| /' conftest.$ac_ext >&5
20773
20774( exit $ac_status )
20775ac_cv_header_zlib_h=no
20776fi
ac1cb8d3 20777rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20778fi
20779
20780fi
20781echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20782echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20783 if test "${ac_cv_header_zlib_h+set}" = set; then
20784 echo "$as_me:$LINENO: checking for zlib.h" >&5
20785echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20786if test "${ac_cv_header_zlib_h+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20788fi
20789echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20790echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20791else
20792 # Is the header compilable?
20793echo "$as_me:$LINENO: checking zlib.h usability" >&5
20794echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20795cat >conftest.$ac_ext <<_ACEOF
20796/* confdefs.h. */
20797_ACEOF
20798cat confdefs.h >>conftest.$ac_ext
20799cat >>conftest.$ac_ext <<_ACEOF
20800/* end confdefs.h. */
20801$ac_includes_default
20802#include <zlib.h>
20803_ACEOF
20804rm -f conftest.$ac_objext
20805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20806 (eval $ac_compile) 2>conftest.er1
a848cd7e 20807 ac_status=$?
ac1cb8d3
VS
20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
a848cd7e
SC
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
2cbbc68d
RD
20813 { ac_try='test -z "$ac_c_werror_flag"
20814 || test ! -s conftest.err'
ac1cb8d3
VS
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 ac_header_compiler=yes
20827else
20828 echo "$as_me: failed program was:" >&5
20829sed 's/^/| /' conftest.$ac_ext >&5
20830
20831ac_header_compiler=no
20832fi
ac1cb8d3 20833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20835echo "${ECHO_T}$ac_header_compiler" >&6
20836
20837# Is the header present?
20838echo "$as_me:$LINENO: checking zlib.h presence" >&5
20839echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20840cat >conftest.$ac_ext <<_ACEOF
20841/* confdefs.h. */
20842_ACEOF
20843cat confdefs.h >>conftest.$ac_ext
20844cat >>conftest.$ac_ext <<_ACEOF
20845/* end confdefs.h. */
20846#include <zlib.h>
20847_ACEOF
20848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20850 ac_status=$?
20851 grep -v '^ *+' conftest.er1 >conftest.err
20852 rm -f conftest.er1
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } >/dev/null; then
20856 if test -s conftest.err; then
20857 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20859 else
20860 ac_cpp_err=
20861 fi
20862else
20863 ac_cpp_err=yes
20864fi
20865if test -z "$ac_cpp_err"; then
20866 ac_header_preproc=yes
20867else
20868 echo "$as_me: failed program was:" >&5
20869sed 's/^/| /' conftest.$ac_ext >&5
20870
20871 ac_header_preproc=no
20872fi
20873rm -f conftest.err conftest.$ac_ext
20874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20875echo "${ECHO_T}$ac_header_preproc" >&6
20876
20877# So? What about this header?
ac1cb8d3
VS
20878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20879 yes:no: )
a848cd7e
SC
20880 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20881echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20882 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20883echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20884 ac_header_preproc=yes
a848cd7e 20885 ;;
ac1cb8d3 20886 no:yes:* )
a848cd7e
SC
20887 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20888echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20889 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20890echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20891 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20892echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20894echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20895 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20896echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20897 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20898echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20899 (
20900 cat <<\_ASBOX
ac1cb8d3
VS
20901## ----------------------------------------- ##
20902## Report this to wx-dev@lists.wxwidgets.org ##
20903## ----------------------------------------- ##
a848cd7e
SC
20904_ASBOX
20905 ) |
20906 sed "s/^/$as_me: WARNING: /" >&2
20907 ;;
20908esac
20909echo "$as_me:$LINENO: checking for zlib.h" >&5
20910echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20911if test "${ac_cv_header_zlib_h+set}" = set; then
20912 echo $ECHO_N "(cached) $ECHO_C" >&6
20913else
20914 ac_cv_header_zlib_h=$ac_header_preproc
20915fi
20916echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20917echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20918
20919fi
20920
20921
20922
20923 system_zlib_h_ok=$ac_cv_header_zlib_h
20924 fi
20925
20926 if test "$system_zlib_h_ok" = "yes"; then
20927 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20928echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20929if test "${ac_cv_lib_z_deflate+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20931else
20932 ac_check_lib_save_LIBS=$LIBS
20933LIBS="-lz $LIBS"
20934cat >conftest.$ac_ext <<_ACEOF
20935/* confdefs.h. */
20936_ACEOF
20937cat confdefs.h >>conftest.$ac_ext
20938cat >>conftest.$ac_ext <<_ACEOF
20939/* end confdefs.h. */
20940
20941/* Override any gcc2 internal prototype to avoid an error. */
20942#ifdef __cplusplus
20943extern "C"
20944#endif
20945/* We use char because int might match the return type of a gcc2
20946 builtin and then its argument prototype would still apply. */
20947char deflate ();
20948int
20949main ()
20950{
20951deflate ();
20952 ;
20953 return 0;
20954}
20955_ACEOF
20956rm -f conftest.$ac_objext conftest$ac_exeext
20957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20958 (eval $ac_link) 2>conftest.er1
a848cd7e 20959 ac_status=$?
ac1cb8d3
VS
20960 grep -v '^ *+' conftest.er1 >conftest.err
20961 rm -f conftest.er1
20962 cat conftest.err >&5
a848cd7e
SC
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } &&
2cbbc68d
RD
20965 { ac_try='test -z "$ac_c_werror_flag"
20966 || test ! -s conftest.err'
ac1cb8d3
VS
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; } &&
20972 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }; then
20978 ac_cv_lib_z_deflate=yes
20979else
20980 echo "$as_me: failed program was:" >&5
20981sed 's/^/| /' conftest.$ac_ext >&5
20982
20983ac_cv_lib_z_deflate=no
20984fi
ac1cb8d3
VS
20985rm -f conftest.err conftest.$ac_objext \
20986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20987LIBS=$ac_check_lib_save_LIBS
20988fi
20989echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20990echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20991if test $ac_cv_lib_z_deflate = yes; then
20992 ZLIB_LINK=" -lz"
20993fi
20994
20995 fi
20996
20997 if test "x$ZLIB_LINK" = "x" ; then
20998 if test "$wxUSE_ZLIB" = "sys" ; then
20999 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21000echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21001 { (exit 1); exit 1; }; }
21002 else
21003 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21004echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21005 wxUSE_ZLIB=builtin
21006 fi
21007 else
21008 wxUSE_ZLIB=sys
21009 fi
21010 fi
21011fi
21012
21013
21014PNG_LINK=
21015if test "$wxUSE_LIBPNG" != "no" ; then
21016 cat >>confdefs.h <<\_ACEOF
21017#define wxUSE_LIBPNG 1
21018_ACEOF
21019
21020
21021 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21022 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21023echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21024 wxUSE_LIBPNG=sys
21025 fi
21026
21027 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21028 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21029echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21030 wxUSE_LIBPNG=builtin
21031 fi
21032
21033 if test "$wxUSE_MGL" != 1 ; then
21034 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21035 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21036echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21037if test "${ac_cv_header_png_h+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21039else
21040 if test "$cross_compiling" = yes; then
21041 unset ac_cv_header_png_h
21042
21043else
21044 cat >conftest.$ac_ext <<_ACEOF
21045/* confdefs.h. */
21046_ACEOF
21047cat confdefs.h >>conftest.$ac_ext
21048cat >>conftest.$ac_ext <<_ACEOF
21049/* end confdefs.h. */
21050
21051 #include <png.h>
21052 #include <stdio.h>
21053
21054 int main()
21055 {
21056 FILE *f=fopen("conftestval", "w");
21057 if (!f) exit(1);
21058 fprintf(f, "%s",
21059 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21060 exit(0);
21061 }
21062
21063_ACEOF
21064rm -f conftest$ac_exeext
21065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21066 (eval $ac_link) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21072 ac_status=$?
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; }; then
21075 ac_cv_header_png_h=`cat conftestval`
21076else
21077 echo "$as_me: program exited with status $ac_status" >&5
21078echo "$as_me: failed program was:" >&5
21079sed 's/^/| /' conftest.$ac_ext >&5
21080
21081( exit $ac_status )
21082ac_cv_header_png_h=no
21083fi
ac1cb8d3 21084rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21085fi
21086
21087fi
21088echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21089echo "${ECHO_T}$ac_cv_header_png_h" >&6
21090 if test "${ac_cv_header_png_h+set}" = set; then
21091 echo "$as_me:$LINENO: checking for png.h" >&5
21092echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21093if test "${ac_cv_header_png_h+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21095fi
21096echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21097echo "${ECHO_T}$ac_cv_header_png_h" >&6
21098else
21099 # Is the header compilable?
21100echo "$as_me:$LINENO: checking png.h usability" >&5
21101echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21102cat >conftest.$ac_ext <<_ACEOF
21103/* confdefs.h. */
21104_ACEOF
21105cat confdefs.h >>conftest.$ac_ext
21106cat >>conftest.$ac_ext <<_ACEOF
21107/* end confdefs.h. */
21108$ac_includes_default
21109#include <png.h>
21110_ACEOF
21111rm -f conftest.$ac_objext
21112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21113 (eval $ac_compile) 2>conftest.er1
a848cd7e 21114 ac_status=$?
ac1cb8d3
VS
21115 grep -v '^ *+' conftest.er1 >conftest.err
21116 rm -f conftest.er1
21117 cat conftest.err >&5
a848cd7e
SC
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } &&
2cbbc68d
RD
21120 { ac_try='test -z "$ac_c_werror_flag"
21121 || test ! -s conftest.err'
ac1cb8d3
VS
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21124 ac_status=$?
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; } &&
21127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129 (eval $ac_try) 2>&5
21130 ac_status=$?
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; }; then
21133 ac_header_compiler=yes
21134else
21135 echo "$as_me: failed program was:" >&5
21136sed 's/^/| /' conftest.$ac_ext >&5
21137
21138ac_header_compiler=no
21139fi
ac1cb8d3 21140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21141echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21142echo "${ECHO_T}$ac_header_compiler" >&6
21143
21144# Is the header present?
21145echo "$as_me:$LINENO: checking png.h presence" >&5
21146echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21147cat >conftest.$ac_ext <<_ACEOF
21148/* confdefs.h. */
21149_ACEOF
21150cat confdefs.h >>conftest.$ac_ext
21151cat >>conftest.$ac_ext <<_ACEOF
21152/* end confdefs.h. */
21153#include <png.h>
21154_ACEOF
21155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21157 ac_status=$?
21158 grep -v '^ *+' conftest.er1 >conftest.err
21159 rm -f conftest.er1
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } >/dev/null; then
21163 if test -s conftest.err; then
21164 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21166 else
21167 ac_cpp_err=
21168 fi
21169else
21170 ac_cpp_err=yes
21171fi
21172if test -z "$ac_cpp_err"; then
21173 ac_header_preproc=yes
21174else
21175 echo "$as_me: failed program was:" >&5
21176sed 's/^/| /' conftest.$ac_ext >&5
21177
21178 ac_header_preproc=no
21179fi
21180rm -f conftest.err conftest.$ac_ext
21181echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21182echo "${ECHO_T}$ac_header_preproc" >&6
21183
21184# So? What about this header?
ac1cb8d3
VS
21185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21186 yes:no: )
a848cd7e
SC
21187 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21188echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21189 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21190echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21191 ac_header_preproc=yes
a848cd7e 21192 ;;
ac1cb8d3 21193 no:yes:* )
a848cd7e
SC
21194 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21195echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21196 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21197echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21198 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21199echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21200 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21201echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21202 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21203echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21204 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21205echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21206 (
21207 cat <<\_ASBOX
ac1cb8d3
VS
21208## ----------------------------------------- ##
21209## Report this to wx-dev@lists.wxwidgets.org ##
21210## ----------------------------------------- ##
a848cd7e
SC
21211_ASBOX
21212 ) |
21213 sed "s/^/$as_me: WARNING: /" >&2
21214 ;;
21215esac
21216echo "$as_me:$LINENO: checking for png.h" >&5
21217echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21218if test "${ac_cv_header_png_h+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21220else
21221 ac_cv_header_png_h=$ac_header_preproc
21222fi
21223echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21224echo "${ECHO_T}$ac_cv_header_png_h" >&6
21225
21226fi
21227
21228
21229
21230 if test "$ac_cv_header_png_h" = "yes"; then
21231 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21232echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21233if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21235else
21236 ac_check_lib_save_LIBS=$LIBS
21237LIBS="-lpng -lz -lm $LIBS"
21238cat >conftest.$ac_ext <<_ACEOF
21239/* confdefs.h. */
21240_ACEOF
21241cat confdefs.h >>conftest.$ac_ext
21242cat >>conftest.$ac_ext <<_ACEOF
21243/* end confdefs.h. */
21244
21245/* Override any gcc2 internal prototype to avoid an error. */
21246#ifdef __cplusplus
21247extern "C"
21248#endif
21249/* We use char because int might match the return type of a gcc2
21250 builtin and then its argument prototype would still apply. */
21251char png_check_sig ();
21252int
21253main ()
21254{
21255png_check_sig ();
21256 ;
21257 return 0;
21258}
21259_ACEOF
21260rm -f conftest.$ac_objext conftest$ac_exeext
21261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21262 (eval $ac_link) 2>conftest.er1
a848cd7e 21263 ac_status=$?
ac1cb8d3
VS
21264 grep -v '^ *+' conftest.er1 >conftest.err
21265 rm -f conftest.er1
21266 cat conftest.err >&5
a848cd7e
SC
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
2cbbc68d
RD
21269 { ac_try='test -z "$ac_c_werror_flag"
21270 || test ! -s conftest.err'
ac1cb8d3
VS
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; } &&
21276 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 ac_cv_lib_png_png_check_sig=yes
21283else
21284 echo "$as_me: failed program was:" >&5
21285sed 's/^/| /' conftest.$ac_ext >&5
21286
21287ac_cv_lib_png_png_check_sig=no
21288fi
ac1cb8d3
VS
21289rm -f conftest.err conftest.$ac_objext \
21290 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21291LIBS=$ac_check_lib_save_LIBS
21292fi
21293echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21294echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21295if test $ac_cv_lib_png_png_check_sig = yes; then
21296 PNG_LINK=" -lpng -lz"
21297fi
21298
21299 fi
21300
21301 if test "x$PNG_LINK" = "x" ; then
21302 if test "$wxUSE_LIBPNG" = "sys" ; then
21303 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21304echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21305 { (exit 1); exit 1; }; }
21306 else
21307 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21308echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21309 wxUSE_LIBPNG=builtin
21310 fi
21311 else
21312 wxUSE_LIBPNG=sys
21313 fi
21314 fi
21315 fi
21316
21317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21318fi
21319
21320
21321JPEG_LINK=
21322if test "$wxUSE_LIBJPEG" != "no" ; then
21323 cat >>confdefs.h <<\_ACEOF
21324#define wxUSE_LIBJPEG 1
21325_ACEOF
21326
21327
21328 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21329 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21330echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21331 wxUSE_LIBJPEG=sys
21332 fi
21333
21334 if test "$wxUSE_MGL" != 1 ; then
21335 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21336 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21337echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21338 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21339 echo $ECHO_N "(cached) $ECHO_C" >&6
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 #undef HAVE_STDLIB_H
21349 #include <stdio.h>
21350 #include <jpeglib.h>
21351
21352int
21353main ()
21354{
21355
21356
21357 ;
21358 return 0;
21359}
21360_ACEOF
21361rm -f conftest.$ac_objext
21362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21363 (eval $ac_compile) 2>conftest.er1
a848cd7e 21364 ac_status=$?
ac1cb8d3
VS
21365 grep -v '^ *+' conftest.er1 >conftest.err
21366 rm -f conftest.er1
21367 cat conftest.err >&5
a848cd7e
SC
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } &&
2cbbc68d
RD
21370 { ac_try='test -z "$ac_c_werror_flag"
21371 || test ! -s conftest.err'
ac1cb8d3
VS
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; } &&
21377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379 (eval $ac_try) 2>&5
21380 ac_status=$?
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); }; }; then
21383 ac_cv_header_jpeglib_h=yes
21384else
21385 echo "$as_me: failed program was:" >&5
21386sed 's/^/| /' conftest.$ac_ext >&5
21387
21388ac_cv_header_jpeglib_h=no
21389
21390fi
ac1cb8d3 21391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21392
21393fi
21394
21395 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21396echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21397
21398 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21399 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21400echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21401if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21403else
21404 ac_check_lib_save_LIBS=$LIBS
21405LIBS="-ljpeg $LIBS"
21406cat >conftest.$ac_ext <<_ACEOF
21407/* confdefs.h. */
21408_ACEOF
21409cat confdefs.h >>conftest.$ac_ext
21410cat >>conftest.$ac_ext <<_ACEOF
21411/* end confdefs.h. */
21412
21413/* Override any gcc2 internal prototype to avoid an error. */
21414#ifdef __cplusplus
21415extern "C"
21416#endif
21417/* We use char because int might match the return type of a gcc2
21418 builtin and then its argument prototype would still apply. */
21419char jpeg_read_header ();
21420int
21421main ()
21422{
21423jpeg_read_header ();
21424 ;
21425 return 0;
21426}
21427_ACEOF
21428rm -f conftest.$ac_objext conftest$ac_exeext
21429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21430 (eval $ac_link) 2>conftest.er1
a848cd7e 21431 ac_status=$?
ac1cb8d3
VS
21432 grep -v '^ *+' conftest.er1 >conftest.err
21433 rm -f conftest.er1
21434 cat conftest.err >&5
a848cd7e
SC
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } &&
2cbbc68d
RD
21437 { ac_try='test -z "$ac_c_werror_flag"
21438 || test ! -s conftest.err'
ac1cb8d3
VS
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; } &&
21444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 ac_cv_lib_jpeg_jpeg_read_header=yes
21451else
21452 echo "$as_me: failed program was:" >&5
21453sed 's/^/| /' conftest.$ac_ext >&5
21454
21455ac_cv_lib_jpeg_jpeg_read_header=no
21456fi
ac1cb8d3
VS
21457rm -f conftest.err conftest.$ac_objext \
21458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21459LIBS=$ac_check_lib_save_LIBS
21460fi
21461echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21462echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21463if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21464 JPEG_LINK=" -ljpeg"
21465fi
21466
21467 fi
21468
21469 if test "x$JPEG_LINK" = "x" ; then
21470 if test "$wxUSE_LIBJPEG" = "sys" ; then
21471 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21472echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21473 { (exit 1); exit 1; }; }
21474 else
21475 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21476echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21477 wxUSE_LIBJPEG=builtin
21478 fi
21479 else
21480 wxUSE_LIBJPEG=sys
21481 fi
21482 fi
21483 fi
21484fi
21485
21486
21487TIFF_LINK=
21488TIFF_PREREQ_LINKS=-lm
21489if test "$wxUSE_LIBTIFF" != "no" ; then
21490 cat >>confdefs.h <<\_ACEOF
21491#define wxUSE_LIBTIFF 1
21492_ACEOF
21493
21494
21495 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21496 if test "$wxUSE_LIBJPEG" = "sys"; then
21497 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21498 fi
21499 if test "$wxUSE_ZLIB" = "sys"; then
21500 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21501 fi
21502 if test "${ac_cv_header_tiffio_h+set}" = set; then
21503 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21504echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21505if test "${ac_cv_header_tiffio_h+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507fi
21508echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21509echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21510else
21511 # Is the header compilable?
21512echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21513echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21514cat >conftest.$ac_ext <<_ACEOF
21515/* confdefs.h. */
21516_ACEOF
21517cat confdefs.h >>conftest.$ac_ext
21518cat >>conftest.$ac_ext <<_ACEOF
21519/* end confdefs.h. */
21520$ac_includes_default
21521#include <tiffio.h>
21522_ACEOF
21523rm -f conftest.$ac_objext
21524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21525 (eval $ac_compile) 2>conftest.er1
a848cd7e 21526 ac_status=$?
ac1cb8d3
VS
21527 grep -v '^ *+' conftest.er1 >conftest.err
21528 rm -f conftest.er1
21529 cat conftest.err >&5
a848cd7e
SC
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } &&
2cbbc68d
RD
21532 { ac_try='test -z "$ac_c_werror_flag"
21533 || test ! -s conftest.err'
ac1cb8d3
VS
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; } &&
21539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21542 ac_status=$?
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }; then
21545 ac_header_compiler=yes
21546else
21547 echo "$as_me: failed program was:" >&5
21548sed 's/^/| /' conftest.$ac_ext >&5
21549
21550ac_header_compiler=no
21551fi
ac1cb8d3 21552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21553echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21554echo "${ECHO_T}$ac_header_compiler" >&6
21555
21556# Is the header present?
21557echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21558echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21559cat >conftest.$ac_ext <<_ACEOF
21560/* confdefs.h. */
21561_ACEOF
21562cat confdefs.h >>conftest.$ac_ext
21563cat >>conftest.$ac_ext <<_ACEOF
21564/* end confdefs.h. */
21565#include <tiffio.h>
21566_ACEOF
21567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21569 ac_status=$?
21570 grep -v '^ *+' conftest.er1 >conftest.err
21571 rm -f conftest.er1
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } >/dev/null; then
21575 if test -s conftest.err; then
21576 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21578 else
21579 ac_cpp_err=
21580 fi
21581else
21582 ac_cpp_err=yes
21583fi
21584if test -z "$ac_cpp_err"; then
21585 ac_header_preproc=yes
21586else
21587 echo "$as_me: failed program was:" >&5
21588sed 's/^/| /' conftest.$ac_ext >&5
21589
21590 ac_header_preproc=no
21591fi
21592rm -f conftest.err conftest.$ac_ext
21593echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21594echo "${ECHO_T}$ac_header_preproc" >&6
21595
21596# So? What about this header?
ac1cb8d3
VS
21597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21598 yes:no: )
a848cd7e
SC
21599 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21600echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21601 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21602echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21603 ac_header_preproc=yes
a848cd7e 21604 ;;
ac1cb8d3 21605 no:yes:* )
a848cd7e
SC
21606 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21607echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21608 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21609echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21610 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21611echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21612 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21613echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21614 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21615echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21616 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21617echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21618 (
21619 cat <<\_ASBOX
ac1cb8d3
VS
21620## ----------------------------------------- ##
21621## Report this to wx-dev@lists.wxwidgets.org ##
21622## ----------------------------------------- ##
a848cd7e
SC
21623_ASBOX
21624 ) |
21625 sed "s/^/$as_me: WARNING: /" >&2
21626 ;;
21627esac
21628echo "$as_me:$LINENO: checking for tiffio.h" >&5
21629echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21630if test "${ac_cv_header_tiffio_h+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632else
21633 ac_cv_header_tiffio_h=$ac_header_preproc
21634fi
21635echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21636echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21637
21638fi
21639if test $ac_cv_header_tiffio_h = yes; then
21640
21641 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21642echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21643if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21645else
21646 ac_check_lib_save_LIBS=$LIBS
21647LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21648cat >conftest.$ac_ext <<_ACEOF
21649/* confdefs.h. */
21650_ACEOF
21651cat confdefs.h >>conftest.$ac_ext
21652cat >>conftest.$ac_ext <<_ACEOF
21653/* end confdefs.h. */
21654
21655/* Override any gcc2 internal prototype to avoid an error. */
21656#ifdef __cplusplus
21657extern "C"
21658#endif
21659/* We use char because int might match the return type of a gcc2
21660 builtin and then its argument prototype would still apply. */
21661char TIFFError ();
21662int
21663main ()
21664{
21665TIFFError ();
21666 ;
21667 return 0;
21668}
21669_ACEOF
21670rm -f conftest.$ac_objext conftest$ac_exeext
21671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21672 (eval $ac_link) 2>conftest.er1
a848cd7e 21673 ac_status=$?
ac1cb8d3
VS
21674 grep -v '^ *+' conftest.er1 >conftest.err
21675 rm -f conftest.er1
21676 cat conftest.err >&5
a848cd7e
SC
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } &&
2cbbc68d
RD
21679 { ac_try='test -z "$ac_c_werror_flag"
21680 || test ! -s conftest.err'
ac1cb8d3
VS
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; } &&
21686 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; }; then
21692 ac_cv_lib_tiff_TIFFError=yes
21693else
21694 echo "$as_me: failed program was:" >&5
21695sed 's/^/| /' conftest.$ac_ext >&5
21696
21697ac_cv_lib_tiff_TIFFError=no
21698fi
ac1cb8d3
VS
21699rm -f conftest.err conftest.$ac_objext \
21700 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21701LIBS=$ac_check_lib_save_LIBS
21702fi
21703echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21704echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21705if test $ac_cv_lib_tiff_TIFFError = yes; then
21706 TIFF_LINK=" -ltiff"
21707fi
21708
21709
21710
21711fi
21712
21713
21714
21715 if test "x$TIFF_LINK" = "x" ; then
21716 if test "$wxUSE_LIBTIFF" = "sys" ; then
21717 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21718echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21719 { (exit 1); exit 1; }; }
21720 else
21721 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21722echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21723 wxUSE_LIBTIFF=builtin
21724 fi
21725 else
21726 wxUSE_LIBTIFF=sys
21727 fi
21728 fi
21729fi
21730
21731
21732if test "$wxUSE_EXPAT" != "no"; then
21733 wxUSE_XML=yes
21734 cat >>confdefs.h <<\_ACEOF
21735#define wxUSE_EXPAT 1
21736_ACEOF
21737
21738 cat >>confdefs.h <<\_ACEOF
21739#define wxUSE_XML 1
21740_ACEOF
21741
21742
21743 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21744 if test "${ac_cv_header_expat_h+set}" = set; then
21745 echo "$as_me:$LINENO: checking for expat.h" >&5
21746echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21747if test "${ac_cv_header_expat_h+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749fi
21750echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21751echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21752else
21753 # Is the header compilable?
21754echo "$as_me:$LINENO: checking expat.h usability" >&5
21755echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21756cat >conftest.$ac_ext <<_ACEOF
21757/* confdefs.h. */
21758_ACEOF
21759cat confdefs.h >>conftest.$ac_ext
21760cat >>conftest.$ac_ext <<_ACEOF
21761/* end confdefs.h. */
21762$ac_includes_default
21763#include <expat.h>
21764_ACEOF
21765rm -f conftest.$ac_objext
21766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21767 (eval $ac_compile) 2>conftest.er1
a848cd7e 21768 ac_status=$?
ac1cb8d3
VS
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
a848cd7e
SC
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } &&
2cbbc68d
RD
21774 { ac_try='test -z "$ac_c_werror_flag"
21775 || test ! -s conftest.err'
ac1cb8d3
VS
21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777 (eval $ac_try) 2>&5
21778 ac_status=$?
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; } &&
21781 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }; then
21787 ac_header_compiler=yes
21788else
21789 echo "$as_me: failed program was:" >&5
21790sed 's/^/| /' conftest.$ac_ext >&5
21791
21792ac_header_compiler=no
21793fi
ac1cb8d3 21794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21795echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21796echo "${ECHO_T}$ac_header_compiler" >&6
21797
21798# Is the header present?
21799echo "$as_me:$LINENO: checking expat.h presence" >&5
21800echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21801cat >conftest.$ac_ext <<_ACEOF
21802/* confdefs.h. */
21803_ACEOF
21804cat confdefs.h >>conftest.$ac_ext
21805cat >>conftest.$ac_ext <<_ACEOF
21806/* end confdefs.h. */
21807#include <expat.h>
21808_ACEOF
21809if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21811 ac_status=$?
21812 grep -v '^ *+' conftest.er1 >conftest.err
21813 rm -f conftest.er1
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } >/dev/null; then
21817 if test -s conftest.err; then
21818 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21820 else
21821 ac_cpp_err=
21822 fi
21823else
21824 ac_cpp_err=yes
21825fi
21826if test -z "$ac_cpp_err"; then
21827 ac_header_preproc=yes
21828else
21829 echo "$as_me: failed program was:" >&5
21830sed 's/^/| /' conftest.$ac_ext >&5
21831
21832 ac_header_preproc=no
21833fi
21834rm -f conftest.err conftest.$ac_ext
21835echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21836echo "${ECHO_T}$ac_header_preproc" >&6
21837
21838# So? What about this header?
ac1cb8d3
VS
21839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21840 yes:no: )
a848cd7e
SC
21841 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21842echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21843 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21844echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21845 ac_header_preproc=yes
a848cd7e 21846 ;;
ac1cb8d3 21847 no:yes:* )
a848cd7e
SC
21848 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21849echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21850 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21851echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21852 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21853echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21854 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21855echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21856 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21857echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21858 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21859echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21860 (
21861 cat <<\_ASBOX
ac1cb8d3
VS
21862## ----------------------------------------- ##
21863## Report this to wx-dev@lists.wxwidgets.org ##
21864## ----------------------------------------- ##
a848cd7e
SC
21865_ASBOX
21866 ) |
21867 sed "s/^/$as_me: WARNING: /" >&2
21868 ;;
21869esac
21870echo "$as_me:$LINENO: checking for expat.h" >&5
21871echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21872if test "${ac_cv_header_expat_h+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21874else
21875 ac_cv_header_expat_h=$ac_header_preproc
21876fi
21877echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21878echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21879
21880fi
21881if test $ac_cv_header_expat_h = yes; then
21882 found_expat_h=1
21883fi
21884
21885
21886 if test "x$found_expat_h" = "x1"; then
21887 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21888echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21889if test "${wx_cv_expat_is_not_broken+set}" = set; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21891else
21892
21893
21894
21895 ac_ext=cc
21896ac_cpp='$CXXCPP $CPPFLAGS'
21897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21900
21901 cat >conftest.$ac_ext <<_ACEOF
21902/* confdefs.h. */
21903_ACEOF
21904cat confdefs.h >>conftest.$ac_ext
21905cat >>conftest.$ac_ext <<_ACEOF
21906/* end confdefs.h. */
21907#include <expat.h>
21908int
21909main ()
21910{
21911
21912 ;
21913 return 0;
21914}
21915_ACEOF
21916rm -f conftest.$ac_objext
21917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21918 (eval $ac_compile) 2>conftest.er1
a848cd7e 21919 ac_status=$?
ac1cb8d3
VS
21920 grep -v '^ *+' conftest.er1 >conftest.err
21921 rm -f conftest.er1
21922 cat conftest.err >&5
a848cd7e
SC
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } &&
2cbbc68d
RD
21925 { ac_try='test -z "$ac_cxx_werror_flag"
21926 || test ! -s conftest.err'
ac1cb8d3
VS
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; } &&
21932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21935 ac_status=$?
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
21938 wx_cv_expat_is_not_broken=yes
21939else
21940 echo "$as_me: failed program was:" >&5
21941sed 's/^/| /' conftest.$ac_ext >&5
21942
21943wx_cv_expat_is_not_broken=no
21944
21945fi
ac1cb8d3 21946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21947 ac_ext=c
21948ac_cpp='$CPP $CPPFLAGS'
21949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951ac_compiler_gnu=$ac_cv_c_compiler_gnu
21952
21953
21954
21955fi
21956echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21957echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21958 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21959 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21960echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21961if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21963else
21964 ac_check_lib_save_LIBS=$LIBS
21965LIBS="-lexpat $LIBS"
21966cat >conftest.$ac_ext <<_ACEOF
21967/* confdefs.h. */
21968_ACEOF
21969cat confdefs.h >>conftest.$ac_ext
21970cat >>conftest.$ac_ext <<_ACEOF
21971/* end confdefs.h. */
21972
21973/* Override any gcc2 internal prototype to avoid an error. */
21974#ifdef __cplusplus
21975extern "C"
21976#endif
21977/* We use char because int might match the return type of a gcc2
21978 builtin and then its argument prototype would still apply. */
21979char XML_ParserCreate ();
21980int
21981main ()
21982{
21983XML_ParserCreate ();
21984 ;
21985 return 0;
21986}
21987_ACEOF
21988rm -f conftest.$ac_objext conftest$ac_exeext
21989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21990 (eval $ac_link) 2>conftest.er1
a848cd7e 21991 ac_status=$?
ac1cb8d3
VS
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
a848cd7e
SC
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
2cbbc68d
RD
21997 { ac_try='test -z "$ac_c_werror_flag"
21998 || test ! -s conftest.err'
ac1cb8d3
VS
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
22010 ac_cv_lib_expat_XML_ParserCreate=yes
22011else
22012 echo "$as_me: failed program was:" >&5
22013sed 's/^/| /' conftest.$ac_ext >&5
22014
22015ac_cv_lib_expat_XML_ParserCreate=no
22016fi
ac1cb8d3
VS
22017rm -f conftest.err conftest.$ac_objext \
22018 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22019LIBS=$ac_check_lib_save_LIBS
22020fi
22021echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22022echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22023if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22024 EXPAT_LINK=" -lexpat"
22025fi
22026
22027 fi
22028 fi
22029 if test "x$EXPAT_LINK" = "x" ; then
22030 if test "$wxUSE_EXPAT" = "sys" ; then
22031 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22032echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22033 { (exit 1); exit 1; }; }
22034 else
22035 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22036echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22037 wxUSE_EXPAT=builtin
22038 fi
22039 else
22040 wxUSE_EXPAT=sys
22041 fi
22042 fi
22043 if test "$wxUSE_EXPAT" = "builtin" ; then
22044
22045
22046subdirs="$subdirs src/expat"
22047
22048 fi
22049fi
22050
22051
22052
22053if test "$wxUSE_LIBMSPACK" != "no"; then
22054
22055 if test "${ac_cv_header_mspack_h+set}" = set; then
22056 echo "$as_me:$LINENO: checking for mspack.h" >&5
22057echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22058if test "${ac_cv_header_mspack_h+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22060fi
22061echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22062echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22063else
22064 # Is the header compilable?
22065echo "$as_me:$LINENO: checking mspack.h usability" >&5
22066echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22067cat >conftest.$ac_ext <<_ACEOF
22068/* confdefs.h. */
22069_ACEOF
22070cat confdefs.h >>conftest.$ac_ext
22071cat >>conftest.$ac_ext <<_ACEOF
22072/* end confdefs.h. */
22073$ac_includes_default
22074#include <mspack.h>
22075_ACEOF
22076rm -f conftest.$ac_objext
22077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22078 (eval $ac_compile) 2>conftest.er1
a848cd7e 22079 ac_status=$?
ac1cb8d3
VS
22080 grep -v '^ *+' conftest.er1 >conftest.err
22081 rm -f conftest.er1
22082 cat conftest.err >&5
a848cd7e
SC
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } &&
2cbbc68d
RD
22085 { ac_try='test -z "$ac_c_werror_flag"
22086 || test ! -s conftest.err'
ac1cb8d3
VS
22087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088 (eval $ac_try) 2>&5
22089 ac_status=$?
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); }; } &&
22092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; }; then
22098 ac_header_compiler=yes
22099else
22100 echo "$as_me: failed program was:" >&5
22101sed 's/^/| /' conftest.$ac_ext >&5
22102
22103ac_header_compiler=no
22104fi
ac1cb8d3 22105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22107echo "${ECHO_T}$ac_header_compiler" >&6
22108
22109# Is the header present?
22110echo "$as_me:$LINENO: checking mspack.h presence" >&5
22111echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22112cat >conftest.$ac_ext <<_ACEOF
22113/* confdefs.h. */
22114_ACEOF
22115cat confdefs.h >>conftest.$ac_ext
22116cat >>conftest.$ac_ext <<_ACEOF
22117/* end confdefs.h. */
22118#include <mspack.h>
22119_ACEOF
22120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22122 ac_status=$?
22123 grep -v '^ *+' conftest.er1 >conftest.err
22124 rm -f conftest.er1
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } >/dev/null; then
22128 if test -s conftest.err; then
22129 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22131 else
22132 ac_cpp_err=
22133 fi
22134else
22135 ac_cpp_err=yes
22136fi
22137if test -z "$ac_cpp_err"; then
22138 ac_header_preproc=yes
22139else
22140 echo "$as_me: failed program was:" >&5
22141sed 's/^/| /' conftest.$ac_ext >&5
22142
22143 ac_header_preproc=no
22144fi
22145rm -f conftest.err conftest.$ac_ext
22146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22147echo "${ECHO_T}$ac_header_preproc" >&6
22148
22149# So? What about this header?
ac1cb8d3
VS
22150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22151 yes:no: )
a848cd7e
SC
22152 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22153echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22154 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22155echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22156 ac_header_preproc=yes
a848cd7e 22157 ;;
ac1cb8d3 22158 no:yes:* )
a848cd7e
SC
22159 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22160echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22161 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22162echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22164echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22166echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22167 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22168echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22169 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22170echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22171 (
22172 cat <<\_ASBOX
ac1cb8d3
VS
22173## ----------------------------------------- ##
22174## Report this to wx-dev@lists.wxwidgets.org ##
22175## ----------------------------------------- ##
a848cd7e
SC
22176_ASBOX
22177 ) |
22178 sed "s/^/$as_me: WARNING: /" >&2
22179 ;;
22180esac
22181echo "$as_me:$LINENO: checking for mspack.h" >&5
22182echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22183if test "${ac_cv_header_mspack_h+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22185else
22186 ac_cv_header_mspack_h=$ac_header_preproc
22187fi
22188echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22189echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22190
22191fi
22192if test $ac_cv_header_mspack_h = yes; then
22193 found_mspack_h=1
22194fi
22195
22196
22197 if test "x$found_mspack_h" = "x1"; then
22198 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22199echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22200if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22202else
22203 ac_check_lib_save_LIBS=$LIBS
22204LIBS="-lmspack $LIBS"
22205cat >conftest.$ac_ext <<_ACEOF
22206/* confdefs.h. */
22207_ACEOF
22208cat confdefs.h >>conftest.$ac_ext
22209cat >>conftest.$ac_ext <<_ACEOF
22210/* end confdefs.h. */
22211
22212/* Override any gcc2 internal prototype to avoid an error. */
22213#ifdef __cplusplus
22214extern "C"
22215#endif
22216/* We use char because int might match the return type of a gcc2
22217 builtin and then its argument prototype would still apply. */
22218char mspack_create_chm_decompressor ();
22219int
22220main ()
22221{
22222mspack_create_chm_decompressor ();
22223 ;
22224 return 0;
22225}
22226_ACEOF
22227rm -f conftest.$ac_objext conftest$ac_exeext
22228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22229 (eval $ac_link) 2>conftest.er1
a848cd7e 22230 ac_status=$?
ac1cb8d3
VS
22231 grep -v '^ *+' conftest.er1 >conftest.err
22232 rm -f conftest.er1
22233 cat conftest.err >&5
a848cd7e
SC
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } &&
2cbbc68d
RD
22236 { ac_try='test -z "$ac_c_werror_flag"
22237 || test ! -s conftest.err'
ac1cb8d3
VS
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; } &&
22243 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22246 ac_status=$?
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; }; then
22249 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22250else
22251 echo "$as_me: failed program was:" >&5
22252sed 's/^/| /' conftest.$ac_ext >&5
22253
22254ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22255fi
ac1cb8d3
VS
22256rm -f conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22258LIBS=$ac_check_lib_save_LIBS
22259fi
22260echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22261echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22262if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22263 MSPACK_LINK=" -lmspack"
22264fi
22265
22266 fi
22267 if test "x$MSPACK_LINK" = "x" ; then
22268 wxUSE_LIBMSPACK=no
22269 else
22270 cat >>confdefs.h <<\_ACEOF
22271#define wxUSE_LIBMSPACK 1
22272_ACEOF
22273
22274 fi
22275fi
22276
22277
22278
22279AFMINSTALL=
22280WIN32INSTALL=
22281
22282TOOLKIT=
22283TOOLKIT_INCLUDE=
22284WIDGET_SET=
22285
22286if test "$USE_WIN32" = 1 ; then
22287
22288for ac_header in w32api.h
22289do
22290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22291if eval "test \"\${$as_ac_Header+set}\" = set"; then
22292 echo "$as_me:$LINENO: checking for $ac_header" >&5
22293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22294if eval "test \"\${$as_ac_Header+set}\" = set"; then
22295 echo $ECHO_N "(cached) $ECHO_C" >&6
22296fi
22297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22299else
22300 # Is the header compilable?
22301echo "$as_me:$LINENO: checking $ac_header usability" >&5
22302echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22303cat >conftest.$ac_ext <<_ACEOF
22304/* confdefs.h. */
22305_ACEOF
22306cat confdefs.h >>conftest.$ac_ext
22307cat >>conftest.$ac_ext <<_ACEOF
22308/* end confdefs.h. */
22309$ac_includes_default
22310#include <$ac_header>
22311_ACEOF
22312rm -f conftest.$ac_objext
22313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22314 (eval $ac_compile) 2>conftest.er1
a848cd7e 22315 ac_status=$?
ac1cb8d3
VS
22316 grep -v '^ *+' conftest.er1 >conftest.err
22317 rm -f conftest.er1
22318 cat conftest.err >&5
a848cd7e
SC
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } &&
2cbbc68d
RD
22321 { ac_try='test -z "$ac_c_werror_flag"
22322 || test ! -s conftest.err'
ac1cb8d3
VS
22323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324 (eval $ac_try) 2>&5
22325 ac_status=$?
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; } &&
22328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22330 (eval $ac_try) 2>&5
22331 ac_status=$?
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; }; then
22334 ac_header_compiler=yes
22335else
22336 echo "$as_me: failed program was:" >&5
22337sed 's/^/| /' conftest.$ac_ext >&5
22338
22339ac_header_compiler=no
22340fi
ac1cb8d3 22341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22343echo "${ECHO_T}$ac_header_compiler" >&6
22344
22345# Is the header present?
22346echo "$as_me:$LINENO: checking $ac_header presence" >&5
22347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22348cat >conftest.$ac_ext <<_ACEOF
22349/* confdefs.h. */
22350_ACEOF
22351cat confdefs.h >>conftest.$ac_ext
22352cat >>conftest.$ac_ext <<_ACEOF
22353/* end confdefs.h. */
22354#include <$ac_header>
22355_ACEOF
22356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22358 ac_status=$?
22359 grep -v '^ *+' conftest.er1 >conftest.err
22360 rm -f conftest.er1
22361 cat conftest.err >&5
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } >/dev/null; then
22364 if test -s conftest.err; then
22365 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22367 else
22368 ac_cpp_err=
22369 fi
22370else
22371 ac_cpp_err=yes
22372fi
22373if test -z "$ac_cpp_err"; then
22374 ac_header_preproc=yes
22375else
22376 echo "$as_me: failed program was:" >&5
22377sed 's/^/| /' conftest.$ac_ext >&5
22378
22379 ac_header_preproc=no
22380fi
22381rm -f conftest.err conftest.$ac_ext
22382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22383echo "${ECHO_T}$ac_header_preproc" >&6
22384
22385# So? What about this header?
ac1cb8d3
VS
22386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22387 yes:no: )
a848cd7e
SC
22388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22391echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22392 ac_header_preproc=yes
a848cd7e 22393 ;;
ac1cb8d3 22394 no:yes:* )
a848cd7e
SC
22395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22398echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22400echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22402echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22406echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22407 (
22408 cat <<\_ASBOX
ac1cb8d3
VS
22409## ----------------------------------------- ##
22410## Report this to wx-dev@lists.wxwidgets.org ##
22411## ----------------------------------------- ##
a848cd7e
SC
22412_ASBOX
22413 ) |
22414 sed "s/^/$as_me: WARNING: /" >&2
22415 ;;
22416esac
22417echo "$as_me:$LINENO: checking for $ac_header" >&5
22418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22419if eval "test \"\${$as_ac_Header+set}\" = set"; then
22420 echo $ECHO_N "(cached) $ECHO_C" >&6
22421else
ac1cb8d3 22422 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22423fi
22424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22426
22427fi
22428if test `eval echo '${'$as_ac_Header'}'` = yes; then
22429 cat >>confdefs.h <<_ACEOF
22430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22431_ACEOF
22432
22433fi
22434
22435done
22436
22437 if test "${ac_cv_header_windows_h+set}" = set; then
22438 echo "$as_me:$LINENO: checking for windows.h" >&5
22439echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22440if test "${ac_cv_header_windows_h+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22442fi
22443echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22444echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22445else
22446 # Is the header compilable?
22447echo "$as_me:$LINENO: checking windows.h usability" >&5
22448echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22449cat >conftest.$ac_ext <<_ACEOF
22450/* confdefs.h. */
22451_ACEOF
22452cat confdefs.h >>conftest.$ac_ext
22453cat >>conftest.$ac_ext <<_ACEOF
22454/* end confdefs.h. */
22455$ac_includes_default
22456#include <windows.h>
22457_ACEOF
22458rm -f conftest.$ac_objext
22459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22460 (eval $ac_compile) 2>conftest.er1
a848cd7e 22461 ac_status=$?
ac1cb8d3
VS
22462 grep -v '^ *+' conftest.er1 >conftest.err
22463 rm -f conftest.er1
22464 cat conftest.err >&5
a848cd7e
SC
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } &&
2cbbc68d
RD
22467 { ac_try='test -z "$ac_c_werror_flag"
22468 || test ! -s conftest.err'
ac1cb8d3
VS
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; } &&
22474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22477 ac_status=$?
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; }; then
22480 ac_header_compiler=yes
22481else
22482 echo "$as_me: failed program was:" >&5
22483sed 's/^/| /' conftest.$ac_ext >&5
22484
22485ac_header_compiler=no
22486fi
ac1cb8d3 22487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22488echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22489echo "${ECHO_T}$ac_header_compiler" >&6
22490
22491# Is the header present?
22492echo "$as_me:$LINENO: checking windows.h presence" >&5
22493echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22494cat >conftest.$ac_ext <<_ACEOF
22495/* confdefs.h. */
22496_ACEOF
22497cat confdefs.h >>conftest.$ac_ext
22498cat >>conftest.$ac_ext <<_ACEOF
22499/* end confdefs.h. */
22500#include <windows.h>
22501_ACEOF
22502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22504 ac_status=$?
22505 grep -v '^ *+' conftest.er1 >conftest.err
22506 rm -f conftest.er1
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } >/dev/null; then
22510 if test -s conftest.err; then
22511 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22513 else
22514 ac_cpp_err=
22515 fi
22516else
22517 ac_cpp_err=yes
22518fi
22519if test -z "$ac_cpp_err"; then
22520 ac_header_preproc=yes
22521else
22522 echo "$as_me: failed program was:" >&5
22523sed 's/^/| /' conftest.$ac_ext >&5
22524
22525 ac_header_preproc=no
22526fi
22527rm -f conftest.err conftest.$ac_ext
22528echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22529echo "${ECHO_T}$ac_header_preproc" >&6
22530
22531# So? What about this header?
ac1cb8d3
VS
22532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22533 yes:no: )
a848cd7e
SC
22534 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22535echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22536 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22537echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22538 ac_header_preproc=yes
a848cd7e 22539 ;;
ac1cb8d3 22540 no:yes:* )
a848cd7e
SC
22541 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22542echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22543 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22544echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22545 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22546echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22547 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22548echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22549 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22550echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22551 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22552echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22553 (
22554 cat <<\_ASBOX
ac1cb8d3
VS
22555## ----------------------------------------- ##
22556## Report this to wx-dev@lists.wxwidgets.org ##
22557## ----------------------------------------- ##
a848cd7e
SC
22558_ASBOX
22559 ) |
22560 sed "s/^/$as_me: WARNING: /" >&2
22561 ;;
22562esac
22563echo "$as_me:$LINENO: checking for windows.h" >&5
22564echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22565if test "${ac_cv_header_windows_h+set}" = set; then
22566 echo $ECHO_N "(cached) $ECHO_C" >&6
22567else
22568 ac_cv_header_windows_h=$ac_header_preproc
22569fi
22570echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22571echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22572
22573fi
22574if test $ac_cv_header_windows_h = yes; then
22575 :
22576else
22577
22578 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22579echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22580 { (exit 1); exit 1; }; }
22581
22582fi
22583
22584
22585
22586 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22587
22588 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22589 LIBS="$LIBS -loleacc"
22590 fi
22591
22592 case "${host}" in
22593 *-*-cygwin* )
22594 LIBS="$LIBS -lkernel32 -luser32"
22595 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22596 esac
22597
22598 if test "$wxUSE_ODBC" = "sys" ; then
22599 wxUSE_ODBC = "yes"
22600 fi
22601 if test "$wxUSE_ODBC" = "yes" ; then
22602 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22603 cat >>confdefs.h <<\_ACEOF
22604#define wxUSE_ODBC 1
22605_ACEOF
22606
22607 fi
22608
22609 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22610 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22611
22612 WIN32INSTALL=win32install
22613fi
22614
22615if test "$wxUSE_GUI" = "yes"; then
22616 USE_GUI=1
22617
22618 GUI_TK_LIBRARY=
22619
22620 WXGTK12=
22621 WXGTK127=
22622 WXGTK20=
22623 WXGPE=
22624
207bc66c
RN
22625 if test "$wxUSE_COCOA" = 1 ; then
22626 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22627 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22628echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22629 wxUSE_PRINTING_ARCHITECTURE=no
22630 fi
22631 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22632 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22633echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22634 wxUSE_DRAG_AND_DROP=no
22635 fi
22636 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22637 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22638echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22639 wxUSE_DRAGIMAGE=no
22640 fi
22641 fi
22642
a848cd7e
SC
22643 if test "$wxUSE_MSW" = 1 ; then
22644 TOOLKIT=MSW
22645 GUIDIST=MSW_DIST
22646
ceec2216 22647 case "${host}" in
a848cd7e
SC
22648 *-*-mingw32* )
22649 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22650 esac
22651 fi
22652
22653 if test "$wxUSE_GTK" = 1; then
22654 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22655echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22656
22657 gtk_version_cached=1
22658 if test "${wx_cv_lib_gtk+set}" = set; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22660else
22661
22662 gtk_version_cached=0
22663 echo "$as_me:$LINENO: result: " >&5
22664echo "${ECHO_T}" >&6
22665
22666 GTK_MODULES=
22667 if test "$wxUSE_THREADS" = "yes"; then
22668 GTK_MODULES=gthread
22669 fi
22670
22671 wx_cv_lib_gtk=
22672 if test "x$wxUSE_GTK2" = "xyes"; then
22673 # Check whether --enable-gtktest or --disable-gtktest was given.
22674if test "${enable_gtktest+set}" = set; then
22675 enableval="$enable_gtktest"
22676
22677else
22678 enable_gtktest=yes
22679fi;
22680
22681 pkg_config_args=gtk+-2.0
22682 for module in . $GTK_MODULES
22683 do
22684 case "$module" in
22685 gthread)
22686 pkg_config_args="$pkg_config_args gthread-2.0"
22687 ;;
22688 esac
22689 done
22690
22691 no_gtk=""
22692
22693 # Extract the first word of "pkg-config", so it can be a program name with args.
22694set dummy pkg-config; ac_word=$2
22695echo "$as_me:$LINENO: checking for $ac_word" >&5
22696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22697if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22699else
22700 case $PKG_CONFIG in
22701 [\\/]* | ?:[\\/]*)
22702 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22703 ;;
22704 *)
22705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22706for as_dir in $PATH
22707do
22708 IFS=$as_save_IFS
22709 test -z "$as_dir" && as_dir=.
22710 for ac_exec_ext in '' $ac_executable_extensions; do
22711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22712 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22714 break 2
22715 fi
22716done
22717done
22718
22719 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22720 ;;
22721esac
22722fi
22723PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22724
22725if test -n "$PKG_CONFIG"; then
22726 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22727echo "${ECHO_T}$PKG_CONFIG" >&6
22728else
22729 echo "$as_me:$LINENO: result: no" >&5
22730echo "${ECHO_T}no" >&6
22731fi
22732
22733
22734 if test x$PKG_CONFIG != xno ; then
22735 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22736 :
22737 else
c2218763 22738 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22739 no_gtk=yes
22740 PKG_CONFIG=no
22741 fi
22742 else
22743 no_gtk=yes
22744 fi
22745
22746 min_gtk_version=2.0.0
22747 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22748echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22749
22750 if test x$PKG_CONFIG != xno ; then
22751 ## don't try to run the test against uninstalled libtool libs
22752 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22753 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22754 enable_gtktest=no
22755 fi
22756
22757 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22758 :
22759 else
22760 no_gtk=yes
22761 fi
22762 fi
22763
22764 if test x"$no_gtk" = x ; then
22765 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22766 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22767 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22768 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22769 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22770 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22771 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22773 if test "x$enable_gtktest" = "xyes" ; then
22774 ac_save_CFLAGS="$CFLAGS"
22775 ac_save_LIBS="$LIBS"
22776 CFLAGS="$CFLAGS $GTK_CFLAGS"
22777 LIBS="$GTK_LIBS $LIBS"
22778 rm -f conf.gtktest
22779 if test "$cross_compiling" = yes; then
22780 echo $ac_n "cross compiling; assumed OK... $ac_c"
22781else
22782 cat >conftest.$ac_ext <<_ACEOF
22783/* confdefs.h. */
22784_ACEOF
22785cat confdefs.h >>conftest.$ac_ext
22786cat >>conftest.$ac_ext <<_ACEOF
22787/* end confdefs.h. */
22788
22789#include <gtk/gtk.h>
22790#include <stdio.h>
22791#include <stdlib.h>
22792
22793int
22794main ()
22795{
22796 int major, minor, micro;
22797 char *tmp_version;
22798
22799 system ("touch conf.gtktest");
22800
22801 /* HP/UX 9 (%@#!) writes to sscanf strings */
22802 tmp_version = g_strdup("$min_gtk_version");
22803 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22804 printf("%s, bad version string\n", "$min_gtk_version");
22805 exit(1);
22806 }
22807
22808 if ((gtk_major_version != $gtk_config_major_version) ||
22809 (gtk_minor_version != $gtk_config_minor_version) ||
22810 (gtk_micro_version != $gtk_config_micro_version))
22811 {
22812 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22813 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22814 gtk_major_version, gtk_minor_version, gtk_micro_version);
22815 printf ("*** was found! If pkg-config was correct, then it is best\n");
22816 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22817 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22818 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22819 printf("*** required on your system.\n");
22820 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22821 printf("*** to point to the correct configuration files\n");
22822 }
22823 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22824 (gtk_minor_version != GTK_MINOR_VERSION) ||
22825 (gtk_micro_version != GTK_MICRO_VERSION))
22826 {
22827 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22828 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22829 printf("*** library (version %d.%d.%d)\n",
22830 gtk_major_version, gtk_minor_version, gtk_micro_version);
22831 }
22832 else
22833 {
22834 if ((gtk_major_version > major) ||
22835 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22836 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22837 {
22838 return 0;
22839 }
22840 else
22841 {
22842 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22843 gtk_major_version, gtk_minor_version, gtk_micro_version);
22844 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22845 major, minor, micro);
22846 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22847 printf("***\n");
22848 printf("*** If you have already installed a sufficiently new version, this error\n");
22849 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22850 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22851 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22852 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22853 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22854 printf("*** so that the correct libraries are found at run-time))\n");
22855 }
22856 }
22857 return 1;
22858}
22859
22860_ACEOF
22861rm -f conftest$ac_exeext
22862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22863 (eval $ac_link) 2>&5
22864 ac_status=$?
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; }; then
22872 :
22873else
22874 echo "$as_me: program exited with status $ac_status" >&5
22875echo "$as_me: failed program was:" >&5
22876sed 's/^/| /' conftest.$ac_ext >&5
22877
22878( exit $ac_status )
22879no_gtk=yes
22880fi
ac1cb8d3 22881rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22882fi
22883 CFLAGS="$ac_save_CFLAGS"
22884 LIBS="$ac_save_LIBS"
22885 fi
22886 fi
22887 if test "x$no_gtk" = x ; then
22888 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22889echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22890 wx_cv_lib_gtk=2.0
22891 else
22892 echo "$as_me:$LINENO: result: no" >&5
22893echo "${ECHO_T}no" >&6
22894 if test "$PKG_CONFIG" = "no" ; then
22895 echo "*** A new enough version of pkg-config was not found."
22896 echo "*** See http://pkgconfig.sourceforge.net"
22897 else
22898 if test -f conf.gtktest ; then
22899 :
22900 else
22901 echo "*** Could not run GTK+ test program, checking why..."
22902 ac_save_CFLAGS="$CFLAGS"
22903 ac_save_LIBS="$LIBS"
22904 CFLAGS="$CFLAGS $GTK_CFLAGS"
22905 LIBS="$LIBS $GTK_LIBS"
22906 cat >conftest.$ac_ext <<_ACEOF
22907/* confdefs.h. */
22908_ACEOF
22909cat confdefs.h >>conftest.$ac_ext
22910cat >>conftest.$ac_ext <<_ACEOF
22911/* end confdefs.h. */
22912
22913#include <gtk/gtk.h>
22914#include <stdio.h>
22915
22916int
22917main ()
22918{
22919 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22920 ;
22921 return 0;
22922}
22923_ACEOF
22924rm -f conftest.$ac_objext conftest$ac_exeext
22925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22926 (eval $ac_link) 2>conftest.er1
a848cd7e 22927 ac_status=$?
ac1cb8d3
VS
22928 grep -v '^ *+' conftest.er1 >conftest.err
22929 rm -f conftest.er1
22930 cat conftest.err >&5
a848cd7e
SC
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } &&
2cbbc68d
RD
22933 { ac_try='test -z "$ac_c_werror_flag"
22934 || test ! -s conftest.err'
ac1cb8d3
VS
22935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936 (eval $ac_try) 2>&5
22937 ac_status=$?
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); }; } &&
22940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22942 (eval $ac_try) 2>&5
22943 ac_status=$?
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); }; }; then
22946 echo "*** The test program compiled, but did not run. This usually means"
22947 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22948 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22949 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22950 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22951 echo "*** is required on your system"
22952 echo "***"
22953 echo "*** If you have an old version installed, it is best to remove it, although"
22954 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22955else
22956 echo "$as_me: failed program was:" >&5
22957sed 's/^/| /' conftest.$ac_ext >&5
22958
22959 echo "*** The test program failed to compile or link. See the file config.log for the"
22960 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22961fi
ac1cb8d3
VS
22962rm -f conftest.err conftest.$ac_objext \
22963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22964 CFLAGS="$ac_save_CFLAGS"
22965 LIBS="$ac_save_LIBS"
22966 fi
22967 fi
22968 GTK_CFLAGS=""
22969 GTK_LIBS=""
22970 :
22971 fi
22972
22973
22974 rm -f conf.gtktest
22975
22976 else
22977
22978# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22979if test "${with_gtk_prefix+set}" = set; then
22980 withval="$with_gtk_prefix"
22981 gtk_config_prefix="$withval"
22982else
22983 gtk_config_prefix=""
22984fi;
22985
22986# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22987if test "${with_gtk_exec_prefix+set}" = set; then
22988 withval="$with_gtk_exec_prefix"
22989 gtk_config_exec_prefix="$withval"
22990else
22991 gtk_config_exec_prefix=""
22992fi;
22993# Check whether --enable-gtktest or --disable-gtktest was given.
22994if test "${enable_gtktest+set}" = set; then
22995 enableval="$enable_gtktest"
22996
22997else
22998 enable_gtktest=yes
22999fi;
23000
23001 for module in . $GTK_MODULES
23002 do
23003 case "$module" in
23004 gthread)
23005 gtk_config_args="$gtk_config_args gthread"
23006 ;;
23007 esac
23008 done
23009
23010 if test x$gtk_config_exec_prefix != x ; then
23011 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23012 if test x${GTK_CONFIG+set} != xset ; then
23013 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23014 fi
23015 fi
23016 if test x$gtk_config_prefix != x ; then
23017 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23018 if test x${GTK_CONFIG+set} != xset ; then
23019 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23020 fi
23021 fi
23022
23023 # Extract the first word of "gtk-config", so it can be a program name with args.
23024set dummy gtk-config; ac_word=$2
23025echo "$as_me:$LINENO: checking for $ac_word" >&5
23026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23027if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23028 echo $ECHO_N "(cached) $ECHO_C" >&6
23029else
23030 case $GTK_CONFIG in
23031 [\\/]* | ?:[\\/]*)
23032 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23033 ;;
23034 *)
23035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23036for as_dir in $PATH
23037do
23038 IFS=$as_save_IFS
23039 test -z "$as_dir" && as_dir=.
23040 for ac_exec_ext in '' $ac_executable_extensions; do
23041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23042 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23044 break 2
23045 fi
23046done
23047done
23048
23049 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23050 ;;
23051esac
23052fi
23053GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23054
23055if test -n "$GTK_CONFIG"; then
23056 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23057echo "${ECHO_T}$GTK_CONFIG" >&6
23058else
23059 echo "$as_me:$LINENO: result: no" >&5
23060echo "${ECHO_T}no" >&6
23061fi
23062
23063 min_gtk_version=1.2.7
23064 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23065echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23066 no_gtk=""
23067 if test "$GTK_CONFIG" = "no" ; then
23068 no_gtk=yes
23069 else
23070 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23071 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23072 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23073 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23074 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23075 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23076 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23077 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23078 if test "x$enable_gtktest" = "xyes" ; then
23079 ac_save_CFLAGS="$CFLAGS"
23080 ac_save_LIBS="$LIBS"
23081 CFLAGS="$CFLAGS $GTK_CFLAGS"
23082 LIBS="$GTK_LIBS $LIBS"
23083 rm -f conf.gtktest
23084 if test "$cross_compiling" = yes; then
23085 echo $ac_n "cross compiling; assumed OK... $ac_c"
23086else
23087 cat >conftest.$ac_ext <<_ACEOF
23088/* confdefs.h. */
23089_ACEOF
23090cat confdefs.h >>conftest.$ac_ext
23091cat >>conftest.$ac_ext <<_ACEOF
23092/* end confdefs.h. */
23093
23094#include <gtk/gtk.h>
23095#include <stdio.h>
23096#include <stdlib.h>
23097
23098int
23099main ()
23100{
23101 int major, minor, micro;
23102 char *tmp_version;
23103
23104 system ("touch conf.gtktest");
23105
23106 /* HP/UX 9 (%@#!) writes to sscanf strings */
23107 tmp_version = g_strdup("$min_gtk_version");
23108 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23109 printf("%s, bad version string\n", "$min_gtk_version");
23110 exit(1);
23111 }
23112
23113 if ((gtk_major_version != $gtk_config_major_version) ||
23114 (gtk_minor_version != $gtk_config_minor_version) ||
23115 (gtk_micro_version != $gtk_config_micro_version))
23116 {
23117 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23118 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23119 gtk_major_version, gtk_minor_version, gtk_micro_version);
23120 printf ("*** was found! If gtk-config was correct, then it is best\n");
23121 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23122 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23123 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23124 printf("*** required on your system.\n");
23125 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23126 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23127 printf("*** before re-running configure\n");
23128 }
23129#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23130 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23131 (gtk_minor_version != GTK_MINOR_VERSION) ||
23132 (gtk_micro_version != GTK_MICRO_VERSION))
23133 {
23134 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23135 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23136 printf("*** library (version %d.%d.%d)\n",
23137 gtk_major_version, gtk_minor_version, gtk_micro_version);
23138 }
23139#endif /* defined (GTK_MAJOR_VERSION) ... */
23140 else
23141 {
23142 if ((gtk_major_version > major) ||
23143 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23144 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23145 {
23146 return 0;
23147 }
23148 else
23149 {
23150 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23151 gtk_major_version, gtk_minor_version, gtk_micro_version);
23152 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23153 major, minor, micro);
23154 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23155 printf("***\n");
23156 printf("*** If you have already installed a sufficiently new version, this error\n");
23157 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23158 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23159 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23160 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23161 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23162 printf("*** so that the correct libraries are found at run-time))\n");
23163 }
23164 }
23165 return 1;
23166}
23167
23168_ACEOF
23169rm -f conftest$ac_exeext
23170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23171 (eval $ac_link) 2>&5
23172 ac_status=$?
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23176 (eval $ac_try) 2>&5
23177 ac_status=$?
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); }; }; then
23180 :
23181else
23182 echo "$as_me: program exited with status $ac_status" >&5
23183echo "$as_me: failed program was:" >&5
23184sed 's/^/| /' conftest.$ac_ext >&5
23185
23186( exit $ac_status )
23187no_gtk=yes
23188fi
ac1cb8d3 23189rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23190fi
23191 CFLAGS="$ac_save_CFLAGS"
23192 LIBS="$ac_save_LIBS"
23193 fi
23194 fi
23195 if test "x$no_gtk" = x ; then
23196 echo "$as_me:$LINENO: result: yes" >&5
23197echo "${ECHO_T}yes" >&6
23198 wx_cv_lib_gtk=1.2.7
23199 else
23200 echo "$as_me:$LINENO: result: no" >&5
23201echo "${ECHO_T}no" >&6
23202 if test "$GTK_CONFIG" = "no" ; then
23203 echo "*** The gtk-config script installed by GTK could not be found"
23204 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23205 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23206 echo "*** full path to gtk-config."
23207 else
23208 if test -f conf.gtktest ; then
23209 :
23210 else
23211 echo "*** Could not run GTK test program, checking why..."
23212 CFLAGS="$CFLAGS $GTK_CFLAGS"
23213 LIBS="$LIBS $GTK_LIBS"
23214 cat >conftest.$ac_ext <<_ACEOF
23215/* confdefs.h. */
23216_ACEOF
23217cat confdefs.h >>conftest.$ac_ext
23218cat >>conftest.$ac_ext <<_ACEOF
23219/* end confdefs.h. */
23220
23221#include <gtk/gtk.h>
23222#include <stdio.h>
23223
23224int
23225main ()
23226{
23227 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23228 ;
23229 return 0;
23230}
23231_ACEOF
23232rm -f conftest.$ac_objext conftest$ac_exeext
23233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23234 (eval $ac_link) 2>conftest.er1
a848cd7e 23235 ac_status=$?
ac1cb8d3
VS
23236 grep -v '^ *+' conftest.er1 >conftest.err
23237 rm -f conftest.er1
23238 cat conftest.err >&5
a848cd7e
SC
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); } &&
2cbbc68d
RD
23241 { ac_try='test -z "$ac_c_werror_flag"
23242 || test ! -s conftest.err'
ac1cb8d3
VS
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; } &&
23248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23250 (eval $ac_try) 2>&5
23251 ac_status=$?
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); }; }; then
23254 echo "*** The test program compiled, but did not run. This usually means"
23255 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23256 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23257 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23258 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23259 echo "*** is required on your system"
23260 echo "***"
23261 echo "*** If you have an old version installed, it is best to remove it, although"
23262 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23263 echo "***"
23264 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23265 echo "*** came with the system with the command"
23266 echo "***"
23267 echo "*** rpm --erase --nodeps gtk gtk-devel"
23268else
23269 echo "$as_me: failed program was:" >&5
23270sed 's/^/| /' conftest.$ac_ext >&5
23271
23272 echo "*** The test program failed to compile or link. See the file config.log for the"
23273 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23274 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23275 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23276fi
ac1cb8d3
VS
23277rm -f conftest.err conftest.$ac_objext \
23278 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23279 CFLAGS="$ac_save_CFLAGS"
23280 LIBS="$ac_save_LIBS"
23281 fi
23282 fi
23283 GTK_CFLAGS=""
23284 GTK_LIBS=""
23285 :
23286 fi
23287
23288
23289 rm -f conf.gtktest
23290
23291
23292 if test -z "$wx_cv_lib_gtk"; then
23293
23294# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23295if test "${with_gtk_prefix+set}" = set; then
23296 withval="$with_gtk_prefix"
23297 gtk_config_prefix="$withval"
23298else
23299 gtk_config_prefix=""
23300fi;
23301
23302# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23303if test "${with_gtk_exec_prefix+set}" = set; then
23304 withval="$with_gtk_exec_prefix"
23305 gtk_config_exec_prefix="$withval"
23306else
23307 gtk_config_exec_prefix=""
23308fi;
23309# Check whether --enable-gtktest or --disable-gtktest was given.
23310if test "${enable_gtktest+set}" = set; then
23311 enableval="$enable_gtktest"
23312
23313else
23314 enable_gtktest=yes
23315fi;
23316
23317 for module in . $GTK_MODULES
23318 do
23319 case "$module" in
23320 gthread)
23321 gtk_config_args="$gtk_config_args gthread"
23322 ;;
23323 esac
23324 done
23325
23326 if test x$gtk_config_exec_prefix != x ; then
23327 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23328 if test x${GTK_CONFIG+set} != xset ; then
23329 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23330 fi
23331 fi
23332 if test x$gtk_config_prefix != x ; then
23333 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23334 if test x${GTK_CONFIG+set} != xset ; then
23335 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23336 fi
23337 fi
23338
23339 # Extract the first word of "gtk-config", so it can be a program name with args.
23340set dummy gtk-config; ac_word=$2
23341echo "$as_me:$LINENO: checking for $ac_word" >&5
23342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23343if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23344 echo $ECHO_N "(cached) $ECHO_C" >&6
23345else
23346 case $GTK_CONFIG in
23347 [\\/]* | ?:[\\/]*)
23348 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23349 ;;
23350 *)
23351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23352for as_dir in $PATH
23353do
23354 IFS=$as_save_IFS
23355 test -z "$as_dir" && as_dir=.
23356 for ac_exec_ext in '' $ac_executable_extensions; do
23357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23358 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23360 break 2
23361 fi
23362done
23363done
23364
23365 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23366 ;;
23367esac
23368fi
23369GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23370
23371if test -n "$GTK_CONFIG"; then
23372 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23373echo "${ECHO_T}$GTK_CONFIG" >&6
23374else
23375 echo "$as_me:$LINENO: result: no" >&5
23376echo "${ECHO_T}no" >&6
23377fi
23378
23379 min_gtk_version=1.2.3
23380 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23381echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23382 no_gtk=""
23383 if test "$GTK_CONFIG" = "no" ; then
23384 no_gtk=yes
23385 else
23386 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23387 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23388 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23389 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23390 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23391 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23392 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23393 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23394 if test "x$enable_gtktest" = "xyes" ; then
23395 ac_save_CFLAGS="$CFLAGS"
23396 ac_save_LIBS="$LIBS"
23397 CFLAGS="$CFLAGS $GTK_CFLAGS"
23398 LIBS="$GTK_LIBS $LIBS"
23399 rm -f conf.gtktest
23400 if test "$cross_compiling" = yes; then
23401 echo $ac_n "cross compiling; assumed OK... $ac_c"
23402else
23403 cat >conftest.$ac_ext <<_ACEOF
23404/* confdefs.h. */
23405_ACEOF
23406cat confdefs.h >>conftest.$ac_ext
23407cat >>conftest.$ac_ext <<_ACEOF
23408/* end confdefs.h. */
23409
23410#include <gtk/gtk.h>
23411#include <stdio.h>
23412#include <stdlib.h>
23413
23414int
23415main ()
23416{
23417 int major, minor, micro;
23418 char *tmp_version;
23419
23420 system ("touch conf.gtktest");
23421
23422 /* HP/UX 9 (%@#!) writes to sscanf strings */
23423 tmp_version = g_strdup("$min_gtk_version");
23424 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23425 printf("%s, bad version string\n", "$min_gtk_version");
23426 exit(1);
23427 }
23428
23429 if ((gtk_major_version != $gtk_config_major_version) ||
23430 (gtk_minor_version != $gtk_config_minor_version) ||
23431 (gtk_micro_version != $gtk_config_micro_version))
23432 {
23433 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23434 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23435 gtk_major_version, gtk_minor_version, gtk_micro_version);
23436 printf ("*** was found! If gtk-config was correct, then it is best\n");
23437 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23438 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23439 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23440 printf("*** required on your system.\n");
23441 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23442 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23443 printf("*** before re-running configure\n");
23444 }
23445#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23446 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23447 (gtk_minor_version != GTK_MINOR_VERSION) ||
23448 (gtk_micro_version != GTK_MICRO_VERSION))
23449 {
23450 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23451 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23452 printf("*** library (version %d.%d.%d)\n",
23453 gtk_major_version, gtk_minor_version, gtk_micro_version);
23454 }
23455#endif /* defined (GTK_MAJOR_VERSION) ... */
23456 else
23457 {
23458 if ((gtk_major_version > major) ||
23459 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23460 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23461 {
23462 return 0;
23463 }
23464 else
23465 {
23466 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23467 gtk_major_version, gtk_minor_version, gtk_micro_version);
23468 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23469 major, minor, micro);
23470 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23471 printf("***\n");
23472 printf("*** If you have already installed a sufficiently new version, this error\n");
23473 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23474 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23475 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23476 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23477 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23478 printf("*** so that the correct libraries are found at run-time))\n");
23479 }
23480 }
23481 return 1;
23482}
23483
23484_ACEOF
23485rm -f conftest$ac_exeext
23486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23487 (eval $ac_link) 2>&5
23488 ac_status=$?
23489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23492 (eval $ac_try) 2>&5
23493 ac_status=$?
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); }; }; then
23496 :
23497else
23498 echo "$as_me: program exited with status $ac_status" >&5
23499echo "$as_me: failed program was:" >&5
23500sed 's/^/| /' conftest.$ac_ext >&5
23501
23502( exit $ac_status )
23503no_gtk=yes
23504fi
ac1cb8d3 23505rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23506fi
23507 CFLAGS="$ac_save_CFLAGS"
23508 LIBS="$ac_save_LIBS"
23509 fi
23510 fi
23511 if test "x$no_gtk" = x ; then
23512 echo "$as_me:$LINENO: result: yes" >&5
23513echo "${ECHO_T}yes" >&6
23514 wx_cv_lib_gtk=1.2.3
23515 else
23516 echo "$as_me:$LINENO: result: no" >&5
23517echo "${ECHO_T}no" >&6
23518 if test "$GTK_CONFIG" = "no" ; then
23519 echo "*** The gtk-config script installed by GTK could not be found"
23520 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23521 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23522 echo "*** full path to gtk-config."
23523 else
23524 if test -f conf.gtktest ; then
23525 :
23526 else
23527 echo "*** Could not run GTK test program, checking why..."
23528 CFLAGS="$CFLAGS $GTK_CFLAGS"
23529 LIBS="$LIBS $GTK_LIBS"
23530 cat >conftest.$ac_ext <<_ACEOF
23531/* confdefs.h. */
23532_ACEOF
23533cat confdefs.h >>conftest.$ac_ext
23534cat >>conftest.$ac_ext <<_ACEOF
23535/* end confdefs.h. */
23536
23537#include <gtk/gtk.h>
23538#include <stdio.h>
23539
23540int
23541main ()
23542{
23543 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23544 ;
23545 return 0;
23546}
23547_ACEOF
23548rm -f conftest.$ac_objext conftest$ac_exeext
23549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23550 (eval $ac_link) 2>conftest.er1
a848cd7e 23551 ac_status=$?
ac1cb8d3
VS
23552 grep -v '^ *+' conftest.er1 >conftest.err
23553 rm -f conftest.er1
23554 cat conftest.err >&5
a848cd7e
SC
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } &&
2cbbc68d
RD
23557 { ac_try='test -z "$ac_c_werror_flag"
23558 || test ! -s conftest.err'
ac1cb8d3
VS
23559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560 (eval $ac_try) 2>&5
23561 ac_status=$?
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); }; } &&
23564 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23567 ac_status=$?
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; }; then
23570 echo "*** The test program compiled, but did not run. This usually means"
23571 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23572 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23573 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23574 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23575 echo "*** is required on your system"
23576 echo "***"
23577 echo "*** If you have an old version installed, it is best to remove it, although"
23578 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23579 echo "***"
23580 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23581 echo "*** came with the system with the command"
23582 echo "***"
23583 echo "*** rpm --erase --nodeps gtk gtk-devel"
23584else
23585 echo "$as_me: failed program was:" >&5
23586sed 's/^/| /' conftest.$ac_ext >&5
23587
23588 echo "*** The test program failed to compile or link. See the file config.log for the"
23589 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23590 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23591 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23592fi
ac1cb8d3
VS
23593rm -f conftest.err conftest.$ac_objext \
23594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23595 CFLAGS="$ac_save_CFLAGS"
23596 LIBS="$ac_save_LIBS"
23597 fi
23598 fi
23599 GTK_CFLAGS=""
23600 GTK_LIBS=""
23601 :
23602 fi
23603
23604
23605 rm -f conf.gtktest
23606
23607 fi
23608 fi
23609
23610 if test -z "$wx_cv_lib_gtk"; then
23611 wx_cv_lib_gtk=none
23612 else
23613 wx_cv_cflags_gtk=$GTK_CFLAGS
23614 wx_cv_libs_gtk=$GTK_LIBS
23615 fi
23616
23617
23618fi
23619
23620
23621 if test "$gtk_version_cached" = 1; then
23622 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23623echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23624 fi
23625
23626 case "$wx_cv_lib_gtk" in
23627 2.0) WXGTK20=1
23628 TOOLKIT_VERSION=2
23629 ;;
23630 1.2.7) WXGTK127=1
23631 WXGTK12=1
23632 ;;
23633 1.2.3) WXGTK12=1
23634 ;;
23635 *) { { echo "$as_me:$LINENO: error:
23636Please check that gtk-config is in path, the directory
23637where GTK+ libraries are installed (returned by
23638'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23639equivalent variable and GTK+ is version 1.2.3 or above.
23640 " >&5
23641echo "$as_me: error:
23642Please check that gtk-config is in path, the directory
23643where GTK+ libraries are installed (returned by
23644'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23645equivalent variable and GTK+ is version 1.2.3 or above.
23646 " >&2;}
23647 { (exit 1); exit 1; }; }
23648 ;;
23649 esac
23650
23651 if test "$WXGTK20" = 1; then
304205f1
VS
23652 save_CFLAGS="$CFLAGS"
23653 save_LIBS="$LIBS"
23654 CFLAGS="$CFLAGS $GTK_CFLAGS"
23655 LIBS="$LIBS $GTK_LIBS"
23656
23657for ac_func in pango_font_family_is_monospace
23658do
23659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23660echo "$as_me:$LINENO: checking for $ac_func" >&5
23661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23662if eval "test \"\${$as_ac_var+set}\" = set"; then
23663 echo $ECHO_N "(cached) $ECHO_C" >&6
23664else
23665 cat >conftest.$ac_ext <<_ACEOF
23666/* confdefs.h. */
23667_ACEOF
23668cat confdefs.h >>conftest.$ac_ext
23669cat >>conftest.$ac_ext <<_ACEOF
23670/* end confdefs.h. */
23671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23673#define $ac_func innocuous_$ac_func
23674
23675/* System header to define __stub macros and hopefully few prototypes,
23676 which can conflict with char $ac_func (); below.
23677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23678 <limits.h> exists even on freestanding compilers. */
23679
23680#ifdef __STDC__
23681# include <limits.h>
23682#else
23683# include <assert.h>
23684#endif
23685
23686#undef $ac_func
23687
23688/* Override any gcc2 internal prototype to avoid an error. */
23689#ifdef __cplusplus
23690extern "C"
23691{
23692#endif
23693/* We use char because int might match the return type of a gcc2
23694 builtin and then its argument prototype would still apply. */
23695char $ac_func ();
23696/* The GNU C library defines this for functions which it implements
23697 to always fail with ENOSYS. Some functions are actually named
23698 something starting with __ and the normal name is an alias. */
23699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23700choke me
23701#else
23702char (*f) () = $ac_func;
23703#endif
23704#ifdef __cplusplus
23705}
23706#endif
23707
23708int
23709main ()
23710{
23711return f != $ac_func;
23712 ;
23713 return 0;
23714}
23715_ACEOF
23716rm -f conftest.$ac_objext conftest$ac_exeext
23717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23718 (eval $ac_link) 2>conftest.er1
23719 ac_status=$?
23720 grep -v '^ *+' conftest.er1 >conftest.err
23721 rm -f conftest.er1
23722 cat conftest.err >&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } &&
2cbbc68d
RD
23725 { ac_try='test -z "$ac_c_werror_flag"
23726 || test ! -s conftest.err'
304205f1
VS
23727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23728 (eval $ac_try) 2>&5
23729 ac_status=$?
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); }; } &&
23732 { ac_try='test -s conftest$ac_exeext'
23733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734 (eval $ac_try) 2>&5
23735 ac_status=$?
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); }; }; then
23738 eval "$as_ac_var=yes"
23739else
23740 echo "$as_me: failed program was:" >&5
23741sed 's/^/| /' conftest.$ac_ext >&5
23742
23743eval "$as_ac_var=no"
23744fi
23745rm -f conftest.err conftest.$ac_objext \
23746 conftest$ac_exeext conftest.$ac_ext
23747fi
23748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23749echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23750if test `eval echo '${'$as_ac_var'}'` = yes; then
23751 cat >>confdefs.h <<_ACEOF
23752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23753_ACEOF
23754
23755fi
23756done
23757
23758 CFLAGS="$save_CFLAGS"
23759 LIBS="$save_LIBS"
a848cd7e
SC
23760 else
23761 if test "$wxUSE_UNICODE" = "yes"; then
23762 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23763echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23764 wxUSE_UNICODE=no
23765 fi
23766 fi
23767
23768 if test "$USE_DARWIN" != 1; then
23769
23770for ac_func in poll
23771do
23772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23773echo "$as_me:$LINENO: checking for $ac_func" >&5
23774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23775if eval "test \"\${$as_ac_var+set}\" = set"; then
23776 echo $ECHO_N "(cached) $ECHO_C" >&6
23777else
23778 cat >conftest.$ac_ext <<_ACEOF
23779/* confdefs.h. */
23780_ACEOF
23781cat confdefs.h >>conftest.$ac_ext
23782cat >>conftest.$ac_ext <<_ACEOF
23783/* end confdefs.h. */
ac1cb8d3
VS
23784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23786#define $ac_func innocuous_$ac_func
23787
a848cd7e
SC
23788/* System header to define __stub macros and hopefully few prototypes,
23789 which can conflict with char $ac_func (); below.
23790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23791 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23792
a848cd7e
SC
23793#ifdef __STDC__
23794# include <limits.h>
23795#else
23796# include <assert.h>
23797#endif
ac1cb8d3
VS
23798
23799#undef $ac_func
23800
a848cd7e
SC
23801/* Override any gcc2 internal prototype to avoid an error. */
23802#ifdef __cplusplus
23803extern "C"
23804{
23805#endif
23806/* We use char because int might match the return type of a gcc2
23807 builtin and then its argument prototype would still apply. */
23808char $ac_func ();
23809/* The GNU C library defines this for functions which it implements
23810 to always fail with ENOSYS. Some functions are actually named
23811 something starting with __ and the normal name is an alias. */
23812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23813choke me
23814#else
23815char (*f) () = $ac_func;
23816#endif
23817#ifdef __cplusplus
23818}
23819#endif
23820
23821int
23822main ()
23823{
23824return f != $ac_func;
23825 ;
23826 return 0;
23827}
23828_ACEOF
23829rm -f conftest.$ac_objext conftest$ac_exeext
23830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23831 (eval $ac_link) 2>conftest.er1
a848cd7e 23832 ac_status=$?
ac1cb8d3
VS
23833 grep -v '^ *+' conftest.er1 >conftest.err
23834 rm -f conftest.er1
23835 cat conftest.err >&5
a848cd7e
SC
23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); } &&
2cbbc68d
RD
23838 { ac_try='test -z "$ac_c_werror_flag"
23839 || test ! -s conftest.err'
ac1cb8d3
VS
23840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23841 (eval $ac_try) 2>&5
23842 ac_status=$?
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); }; } &&
23845 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23847 (eval $ac_try) 2>&5
23848 ac_status=$?
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); }; }; then
23851 eval "$as_ac_var=yes"
23852else
23853 echo "$as_me: failed program was:" >&5
23854sed 's/^/| /' conftest.$ac_ext >&5
23855
23856eval "$as_ac_var=no"
23857fi
ac1cb8d3
VS
23858rm -f conftest.err conftest.$ac_objext \
23859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23860fi
23861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23863if test `eval echo '${'$as_ac_var'}'` = yes; then
23864 cat >>confdefs.h <<_ACEOF
23865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23866_ACEOF
23867
23868fi
23869done
23870
23871 fi
23872
23873 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23874 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23875
23876 AFMINSTALL=afminstall
23877 TOOLKIT=GTK
23878 GUIDIST=GTK_DIST
23879
23880 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23881echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23882if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23883 echo $ECHO_N "(cached) $ECHO_C" >&6
23884else
23885 ac_check_lib_save_LIBS=$LIBS
23886LIBS="-lgdk $LIBS"
23887cat >conftest.$ac_ext <<_ACEOF
23888/* confdefs.h. */
23889_ACEOF
23890cat confdefs.h >>conftest.$ac_ext
23891cat >>conftest.$ac_ext <<_ACEOF
23892/* end confdefs.h. */
23893
23894/* Override any gcc2 internal prototype to avoid an error. */
23895#ifdef __cplusplus
23896extern "C"
23897#endif
23898/* We use char because int might match the return type of a gcc2
23899 builtin and then its argument prototype would still apply. */
23900char gdk_im_open ();
23901int
23902main ()
23903{
23904gdk_im_open ();
23905 ;
23906 return 0;
23907}
23908_ACEOF
23909rm -f conftest.$ac_objext conftest$ac_exeext
23910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23911 (eval $ac_link) 2>conftest.er1
a848cd7e 23912 ac_status=$?
ac1cb8d3
VS
23913 grep -v '^ *+' conftest.er1 >conftest.err
23914 rm -f conftest.er1
23915 cat conftest.err >&5
a848cd7e
SC
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } &&
2cbbc68d
RD
23918 { ac_try='test -z "$ac_c_werror_flag"
23919 || test ! -s conftest.err'
ac1cb8d3
VS
23920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921 (eval $ac_try) 2>&5
23922 ac_status=$?
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; } &&
23925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927 (eval $ac_try) 2>&5
23928 ac_status=$?
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; }; then
23931 ac_cv_lib_gdk_gdk_im_open=yes
23932else
23933 echo "$as_me: failed program was:" >&5
23934sed 's/^/| /' conftest.$ac_ext >&5
23935
23936ac_cv_lib_gdk_gdk_im_open=no
23937fi
ac1cb8d3
VS
23938rm -f conftest.err conftest.$ac_objext \
23939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23940LIBS=$ac_check_lib_save_LIBS
23941fi
23942echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23943echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23944if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23945 cat >>confdefs.h <<\_ACEOF
23946#define HAVE_XIM 1
23947_ACEOF
23948
23949fi
23950
23951
23952
23953 if test "$wxUSE_GPE" = "yes"; then
23954 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23955echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23956
23957ac_find_libraries=
23958for ac_dir in $SEARCH_LIB /usr/lib;
23959 do
23960 for ac_extension in a so sl dylib; do
23961 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23962 ac_find_libraries=$ac_dir
23963 break 2
23964 fi
23965 done
23966 done
23967
23968 if test "$ac_find_libraries" != "" ; then
23969
23970 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23971 result=$?
23972 if test $result = 0; then
23973 ac_path_to_link=""
23974 else
23975 ac_path_to_link=" -L$ac_find_libraries"
23976 fi
23977
23978 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23979 WXGPE=1
23980 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23981echo "${ECHO_T}found at $ac_find_libraries" >&6
23982 else
23983 echo "$as_me:$LINENO: result: not found" >&5
23984echo "${ECHO_T}not found" >&6
23985 fi
23986
23987 fi
23988 fi
23989
23990 if test "$wxUSE_MGL" = 1; then
23991 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23992echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23993 if test "x$MGL_ROOT" = x ; then
23994 echo "$as_me:$LINENO: result: not found" >&5
23995echo "${ECHO_T}not found" >&6
23996 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23997echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23998 { (exit 1); exit 1; }; }
23999 else
24000 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24001echo "${ECHO_T}$MGL_ROOT" >&6
24002 fi
24003
24004 echo "$as_me:$LINENO: checking for libmgl location" >&5
24005echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24006 case "${host}" in
24007 *-*-linux* )
24008 if test "x$wxUSE_SHARED" = xyes ; then
24009 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24010 else
24011 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24012 fi
24013 ;;
24014 *-pc-msdosdjgpp )
24015 mgl_os_candidates="dos32/dj2"
24016 ;;
24017 *)
24018 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24019echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24020 { (exit 1); exit 1; }; }
24021 esac
24022
24023 mgl_lib_type=""
24024 mgl_os=""
24025
24026 for mgl_os_i in $mgl_os_candidates ; do
24027 if test "x$mgl_os" = x ; then
24028 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24029 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24030 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24031 mgl_lib_type=debug
24032 mgl_os=$mgl_os_i
24033 fi
24034 fi
24035 if test "x$mgl_lib_type" = x ; then
24036 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24037 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24038 mgl_lib_type=release
24039 mgl_os=$mgl_os_i
24040 fi
24041 fi
24042 fi
24043 done
24044
24045 if test "x$mgl_os" = x ; then
24046 echo "$as_me:$LINENO: result: not found" >&5
24047echo "${ECHO_T}not found" >&6
24048 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24049echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24050 { (exit 1); exit 1; }; }
24051 fi
24052 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24053echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24054
24055 wxUSE_UNIVERSAL="yes"
24056
24057 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24058 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24059
24060 AFMINSTALL=afminstall
24061 TOOLKIT=MGL
24062 GUIDIST=MGL_DIST
24063 fi
24064
24065 if test "$wxUSE_MICROWIN" = 1; then
24066 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24067echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24068 if test "x$MICROWINDOWS" = x ; then
24069 echo "$as_me:$LINENO: result: not found" >&5
24070echo "${ECHO_T}not found" >&6
24071 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24072echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24073 { (exit 1); exit 1; }; }
24074 else
24075 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24076echo "${ECHO_T}$MICROWINDOWS" >&6
24077 fi
24078
24079 if test -f $MICROWINDOWS/lib/libmwin.a; then
24080 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24081echo "${ECHO_T}MicroWindows' libraries found." >&6
24082 else
24083 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24084echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24085 { (exit 1); exit 1; }; }
24086 fi
24087
24088 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24089 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24090
24091 wxUSE_UNIVERSAL="yes"
24092
24093 AFMINSTALL=afminstall
24094 TOOLKIT=MICROWIN
24095 GUIDIST=MICROWIN_DIST
24096
24097 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24098 fi
24099
74b84332 24100 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
2cbbc68d 24101 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24102echo $ECHO_N "checking for X... $ECHO_C" >&6
24103
24104
24105# Check whether --with-x or --without-x was given.
24106if test "${with_x+set}" = set; then
24107 withval="$with_x"
24108
24109fi;
24110# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24111if test "x$with_x" = xno; then
24112 # The user explicitly disabled X.
24113 have_x=disabled
24114else
24115 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24116 # Both variables are already set.
24117 have_x=yes
24118 else
24119 if test "${ac_cv_have_x+set}" = set; then
24120 echo $ECHO_N "(cached) $ECHO_C" >&6
24121else
24122 # One or both of the vars are not set, and there is no cached value.
24123ac_x_includes=no ac_x_libraries=no
24124rm -fr conftest.dir
24125if mkdir conftest.dir; then
24126 cd conftest.dir
24127 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24128 cat >Imakefile <<'_ACEOF'
24129acfindx:
24130 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24131_ACEOF
24132 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24134 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24135 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24136 for ac_extension in a so sl; do
24137 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24138 test -f $ac_im_libdir/libX11.$ac_extension; then
24139 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24140 fi
24141 done
24142 # Screen out bogus values from the imake configuration. They are
24143 # bogus both because they are the default anyway, and because
24144 # using them would break gcc on systems where it needs fixed includes.
24145 case $ac_im_incroot in
24146 /usr/include) ;;
24147 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24148 esac
24149 case $ac_im_usrlibdir in
24150 /usr/lib | /lib) ;;
24151 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24152 esac
24153 fi
24154 cd ..
24155 rm -fr conftest.dir
24156fi
24157
24158# Standard set of common directories for X headers.
24159# Check X11 before X11Rn because it is often a symlink to the current release.
24160ac_x_header_dirs='
24161/usr/X11/include
24162/usr/X11R6/include
24163/usr/X11R5/include
24164/usr/X11R4/include
24165
24166/usr/include/X11
24167/usr/include/X11R6
24168/usr/include/X11R5
24169/usr/include/X11R4
24170
24171/usr/local/X11/include
24172/usr/local/X11R6/include
24173/usr/local/X11R5/include
24174/usr/local/X11R4/include
24175
24176/usr/local/include/X11
24177/usr/local/include/X11R6
24178/usr/local/include/X11R5
24179/usr/local/include/X11R4
24180
24181/usr/X386/include
24182/usr/x386/include
24183/usr/XFree86/include/X11
24184
24185/usr/include
24186/usr/local/include
24187/usr/unsupported/include
24188/usr/athena/include
24189/usr/local/x11r5/include
24190/usr/lpp/Xamples/include
24191
24192/usr/openwin/include
24193/usr/openwin/share/include'
24194
24195if test "$ac_x_includes" = no; then
2cbbc68d 24196 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24197 # First, try using that file with no special directory specified.
24198 cat >conftest.$ac_ext <<_ACEOF
24199/* confdefs.h. */
24200_ACEOF
24201cat confdefs.h >>conftest.$ac_ext
24202cat >>conftest.$ac_ext <<_ACEOF
24203/* end confdefs.h. */
24204#include <X11/Intrinsic.h>
24205_ACEOF
24206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24208 ac_status=$?
24209 grep -v '^ *+' conftest.er1 >conftest.err
24210 rm -f conftest.er1
24211 cat conftest.err >&5
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); } >/dev/null; then
24214 if test -s conftest.err; then
24215 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24217 else
24218 ac_cpp_err=
24219 fi
24220else
24221 ac_cpp_err=yes
24222fi
24223if test -z "$ac_cpp_err"; then
24224 # We can compile using X headers with no special include directory.
24225ac_x_includes=
24226else
24227 echo "$as_me: failed program was:" >&5
24228sed 's/^/| /' conftest.$ac_ext >&5
24229
24230 for ac_dir in $ac_x_header_dirs; do
24231 if test -r "$ac_dir/X11/Intrinsic.h"; then
24232 ac_x_includes=$ac_dir
24233 break
24234 fi
24235done
24236fi
24237rm -f conftest.err conftest.$ac_ext
24238fi # $ac_x_includes = no
24239
24240if test "$ac_x_libraries" = no; then
24241 # Check for the libraries.
24242 # See if we find them without any special options.
24243 # Don't add to $LIBS permanently.
24244 ac_save_LIBS=$LIBS
24245 LIBS="-lXt $LIBS"
24246 cat >conftest.$ac_ext <<_ACEOF
24247/* confdefs.h. */
24248_ACEOF
24249cat confdefs.h >>conftest.$ac_ext
24250cat >>conftest.$ac_ext <<_ACEOF
24251/* end confdefs.h. */
24252#include <X11/Intrinsic.h>
24253int
24254main ()
24255{
24256XtMalloc (0)
24257 ;
24258 return 0;
24259}
24260_ACEOF
24261rm -f conftest.$ac_objext conftest$ac_exeext
24262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24263 (eval $ac_link) 2>conftest.er1
a848cd7e 24264 ac_status=$?
ac1cb8d3
VS
24265 grep -v '^ *+' conftest.er1 >conftest.err
24266 rm -f conftest.er1
24267 cat conftest.err >&5
a848cd7e
SC
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); } &&
2cbbc68d
RD
24270 { ac_try='test -z "$ac_c_werror_flag"
24271 || test ! -s conftest.err'
ac1cb8d3
VS
24272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24273 (eval $ac_try) 2>&5
24274 ac_status=$?
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); }; } &&
24277 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24279 (eval $ac_try) 2>&5
24280 ac_status=$?
24281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); }; }; then
24283 LIBS=$ac_save_LIBS
24284# We can link X programs with no special library path.
24285ac_x_libraries=
24286else
24287 echo "$as_me: failed program was:" >&5
24288sed 's/^/| /' conftest.$ac_ext >&5
24289
24290LIBS=$ac_save_LIBS
24291for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24292do
24293 # Don't even attempt the hair of trying to link an X program!
24294 for ac_extension in a so sl; do
24295 if test -r $ac_dir/libXt.$ac_extension; then
24296 ac_x_libraries=$ac_dir
24297 break 2
24298 fi
24299 done
24300done
24301fi
ac1cb8d3
VS
24302rm -f conftest.err conftest.$ac_objext \
24303 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24304fi # $ac_x_libraries = no
24305
24306if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24307 # Didn't find X anywhere. Cache the known absence of X.
24308 ac_cv_have_x="have_x=no"
24309else
24310 # Record where we found X for the cache.
24311 ac_cv_have_x="have_x=yes \
ac1cb8d3 24312 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24313fi
24314fi
24315
24316 fi
24317 eval "$ac_cv_have_x"
24318fi # $with_x != no
24319
24320if test "$have_x" != yes; then
24321 echo "$as_me:$LINENO: result: $have_x" >&5
24322echo "${ECHO_T}$have_x" >&6
24323 no_x=yes
24324else
24325 # If each of the values was on the command line, it overrides each guess.
24326 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24327 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24328 # Update the cache value to reflect the command line values.
24329 ac_cv_have_x="have_x=yes \
24330 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2cbbc68d
RD
24331 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24332echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24333fi
24334
24335if test "$no_x" = yes; then
24336 # Not all programs may use this symbol, but it does not hurt to define it.
24337
24338cat >>confdefs.h <<\_ACEOF
24339#define X_DISPLAY_MISSING 1
24340_ACEOF
24341
24342 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24343else
24344 if test -n "$x_includes"; then
24345 X_CFLAGS="$X_CFLAGS -I$x_includes"
24346 fi
24347
24348 # It would also be nice to do this for all -L options, not just this one.
24349 if test -n "$x_libraries"; then
24350 X_LIBS="$X_LIBS -L$x_libraries"
24351 # For Solaris; some versions of Sun CC require a space after -R and
24352 # others require no space. Words are not sufficient . . . .
24353 case `(uname -sr) 2>/dev/null` in
24354 "SunOS 5"*)
24355 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24356echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24357 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24358 cat >conftest.$ac_ext <<_ACEOF
24359/* confdefs.h. */
24360_ACEOF
24361cat confdefs.h >>conftest.$ac_ext
24362cat >>conftest.$ac_ext <<_ACEOF
24363/* end confdefs.h. */
24364
24365int
24366main ()
24367{
24368
24369 ;
24370 return 0;
24371}
24372_ACEOF
24373rm -f conftest.$ac_objext conftest$ac_exeext
24374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24375 (eval $ac_link) 2>conftest.er1
a848cd7e 24376 ac_status=$?
ac1cb8d3
VS
24377 grep -v '^ *+' conftest.er1 >conftest.err
24378 rm -f conftest.er1
24379 cat conftest.err >&5
a848cd7e
SC
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } &&
2cbbc68d
RD
24382 { ac_try='test -z "$ac_c_werror_flag"
24383 || test ! -s conftest.err'
ac1cb8d3
VS
24384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385 (eval $ac_try) 2>&5
24386 ac_status=$?
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; } &&
24389 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24391 (eval $ac_try) 2>&5
24392 ac_status=$?
24393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); }; }; then
24395 ac_R_nospace=yes
24396else
24397 echo "$as_me: failed program was:" >&5
24398sed 's/^/| /' conftest.$ac_ext >&5
24399
24400ac_R_nospace=no
24401fi
ac1cb8d3
VS
24402rm -f conftest.err conftest.$ac_objext \
24403 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24404 if test $ac_R_nospace = yes; then
24405 echo "$as_me:$LINENO: result: no" >&5
24406echo "${ECHO_T}no" >&6
24407 X_LIBS="$X_LIBS -R$x_libraries"
24408 else
24409 LIBS="$ac_xsave_LIBS -R $x_libraries"
24410 cat >conftest.$ac_ext <<_ACEOF
24411/* confdefs.h. */
24412_ACEOF
24413cat confdefs.h >>conftest.$ac_ext
24414cat >>conftest.$ac_ext <<_ACEOF
24415/* end confdefs.h. */
24416
24417int
24418main ()
24419{
24420
24421 ;
24422 return 0;
24423}
24424_ACEOF
24425rm -f conftest.$ac_objext conftest$ac_exeext
24426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24427 (eval $ac_link) 2>conftest.er1
a848cd7e 24428 ac_status=$?
ac1cb8d3
VS
24429 grep -v '^ *+' conftest.er1 >conftest.err
24430 rm -f conftest.er1
24431 cat conftest.err >&5
a848cd7e
SC
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } &&
2cbbc68d
RD
24434 { ac_try='test -z "$ac_c_werror_flag"
24435 || test ! -s conftest.err'
ac1cb8d3
VS
24436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437 (eval $ac_try) 2>&5
24438 ac_status=$?
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); }; } &&
24441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443 (eval $ac_try) 2>&5
24444 ac_status=$?
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; }; then
24447 ac_R_space=yes
24448else
24449 echo "$as_me: failed program was:" >&5
24450sed 's/^/| /' conftest.$ac_ext >&5
24451
24452ac_R_space=no
24453fi
ac1cb8d3
VS
24454rm -f conftest.err conftest.$ac_objext \
24455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24456 if test $ac_R_space = yes; then
24457 echo "$as_me:$LINENO: result: yes" >&5
24458echo "${ECHO_T}yes" >&6
24459 X_LIBS="$X_LIBS -R $x_libraries"
24460 else
24461 echo "$as_me:$LINENO: result: neither works" >&5
24462echo "${ECHO_T}neither works" >&6
24463 fi
24464 fi
24465 LIBS=$ac_xsave_LIBS
24466 esac
24467 fi
24468
24469 # Check for system-dependent libraries X programs must link with.
24470 # Do this before checking for the system-independent R6 libraries
24471 # (-lICE), since we may need -lsocket or whatever for X linking.
24472
24473 if test "$ISC" = yes; then
24474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24475 else
24476 # Martyn Johnson says this is needed for Ultrix, if the X
24477 # libraries were built with DECnet support. And Karl Berry says
24478 # the Alpha needs dnet_stub (dnet does not exist).
24479 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24480 cat >conftest.$ac_ext <<_ACEOF
24481/* confdefs.h. */
24482_ACEOF
24483cat confdefs.h >>conftest.$ac_ext
24484cat >>conftest.$ac_ext <<_ACEOF
24485/* end confdefs.h. */
24486
24487/* Override any gcc2 internal prototype to avoid an error. */
24488#ifdef __cplusplus
24489extern "C"
24490#endif
24491/* We use char because int might match the return type of a gcc2
24492 builtin and then its argument prototype would still apply. */
24493char XOpenDisplay ();
24494int
24495main ()
24496{
24497XOpenDisplay ();
24498 ;
24499 return 0;
24500}
24501_ACEOF
24502rm -f conftest.$ac_objext conftest$ac_exeext
24503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24504 (eval $ac_link) 2>conftest.er1
a848cd7e 24505 ac_status=$?
ac1cb8d3
VS
24506 grep -v '^ *+' conftest.er1 >conftest.err
24507 rm -f conftest.er1
24508 cat conftest.err >&5
a848cd7e
SC
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } &&
2cbbc68d
RD
24511 { ac_try='test -z "$ac_c_werror_flag"
24512 || test ! -s conftest.err'
ac1cb8d3
VS
24513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24514 (eval $ac_try) 2>&5
24515 ac_status=$?
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); }; } &&
24518 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520 (eval $ac_try) 2>&5
24521 ac_status=$?
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); }; }; then
24524 :
24525else
24526 echo "$as_me: failed program was:" >&5
24527sed 's/^/| /' conftest.$ac_ext >&5
24528
24529echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24530echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24531if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24532 echo $ECHO_N "(cached) $ECHO_C" >&6
24533else
24534 ac_check_lib_save_LIBS=$LIBS
24535LIBS="-ldnet $LIBS"
24536cat >conftest.$ac_ext <<_ACEOF
24537/* confdefs.h. */
24538_ACEOF
24539cat confdefs.h >>conftest.$ac_ext
24540cat >>conftest.$ac_ext <<_ACEOF
24541/* end confdefs.h. */
24542
24543/* Override any gcc2 internal prototype to avoid an error. */
24544#ifdef __cplusplus
24545extern "C"
24546#endif
24547/* We use char because int might match the return type of a gcc2
24548 builtin and then its argument prototype would still apply. */
24549char dnet_ntoa ();
24550int
24551main ()
24552{
24553dnet_ntoa ();
24554 ;
24555 return 0;
24556}
24557_ACEOF
24558rm -f conftest.$ac_objext conftest$ac_exeext
24559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24560 (eval $ac_link) 2>conftest.er1
a848cd7e 24561 ac_status=$?
ac1cb8d3
VS
24562 grep -v '^ *+' conftest.er1 >conftest.err
24563 rm -f conftest.er1
24564 cat conftest.err >&5
a848cd7e
SC
24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); } &&
2cbbc68d
RD
24567 { ac_try='test -z "$ac_c_werror_flag"
24568 || test ! -s conftest.err'
ac1cb8d3
VS
24569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570 (eval $ac_try) 2>&5
24571 ac_status=$?
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); }; } &&
24574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24576 (eval $ac_try) 2>&5
24577 ac_status=$?
24578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); }; }; then
24580 ac_cv_lib_dnet_dnet_ntoa=yes
24581else
24582 echo "$as_me: failed program was:" >&5
24583sed 's/^/| /' conftest.$ac_ext >&5
24584
24585ac_cv_lib_dnet_dnet_ntoa=no
24586fi
ac1cb8d3
VS
24587rm -f conftest.err conftest.$ac_objext \
24588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24589LIBS=$ac_check_lib_save_LIBS
24590fi
24591echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24592echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24593if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24594 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24595fi
24596
24597 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24598 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24599echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24600if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24602else
24603 ac_check_lib_save_LIBS=$LIBS
24604LIBS="-ldnet_stub $LIBS"
24605cat >conftest.$ac_ext <<_ACEOF
24606/* confdefs.h. */
24607_ACEOF
24608cat confdefs.h >>conftest.$ac_ext
24609cat >>conftest.$ac_ext <<_ACEOF
24610/* end confdefs.h. */
24611
24612/* Override any gcc2 internal prototype to avoid an error. */
24613#ifdef __cplusplus
24614extern "C"
24615#endif
24616/* We use char because int might match the return type of a gcc2
24617 builtin and then its argument prototype would still apply. */
24618char dnet_ntoa ();
24619int
24620main ()
24621{
24622dnet_ntoa ();
24623 ;
24624 return 0;
24625}
24626_ACEOF
24627rm -f conftest.$ac_objext conftest$ac_exeext
24628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24629 (eval $ac_link) 2>conftest.er1
a848cd7e 24630 ac_status=$?
ac1cb8d3
VS
24631 grep -v '^ *+' conftest.er1 >conftest.err
24632 rm -f conftest.er1
24633 cat conftest.err >&5
a848cd7e
SC
24634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635 (exit $ac_status); } &&
2cbbc68d
RD
24636 { ac_try='test -z "$ac_c_werror_flag"
24637 || test ! -s conftest.err'
ac1cb8d3
VS
24638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639 (eval $ac_try) 2>&5
24640 ac_status=$?
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); }; } &&
24643 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645 (eval $ac_try) 2>&5
24646 ac_status=$?
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); }; }; then
24649 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24650else
24651 echo "$as_me: failed program was:" >&5
24652sed 's/^/| /' conftest.$ac_ext >&5
24653
24654ac_cv_lib_dnet_stub_dnet_ntoa=no
24655fi
ac1cb8d3
VS
24656rm -f conftest.err conftest.$ac_objext \
24657 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24658LIBS=$ac_check_lib_save_LIBS
24659fi
24660echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24661echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24662if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24663 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24664fi
24665
24666 fi
24667fi
ac1cb8d3
VS
24668rm -f conftest.err conftest.$ac_objext \
24669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24670 LIBS="$ac_xsave_LIBS"
24671
24672 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24673 # to get the SysV transport functions.
24674 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24675 # needs -lnsl.
24676 # The nsl library prevents programs from opening the X display
24677 # on Irix 5.2, according to T.E. Dickey.
24678 # The functions gethostbyname, getservbyname, and inet_addr are
24679 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24680 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24681echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24682if test "${ac_cv_func_gethostbyname+set}" = set; then
24683 echo $ECHO_N "(cached) $ECHO_C" >&6
24684else
24685 cat >conftest.$ac_ext <<_ACEOF
24686/* confdefs.h. */
24687_ACEOF
24688cat confdefs.h >>conftest.$ac_ext
24689cat >>conftest.$ac_ext <<_ACEOF
24690/* end confdefs.h. */
ac1cb8d3
VS
24691/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24693#define gethostbyname innocuous_gethostbyname
24694
a848cd7e
SC
24695/* System header to define __stub macros and hopefully few prototypes,
24696 which can conflict with char gethostbyname (); below.
24697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24698 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24699
a848cd7e
SC
24700#ifdef __STDC__
24701# include <limits.h>
24702#else
24703# include <assert.h>
24704#endif
ac1cb8d3
VS
24705
24706#undef gethostbyname
24707
a848cd7e
SC
24708/* Override any gcc2 internal prototype to avoid an error. */
24709#ifdef __cplusplus
24710extern "C"
24711{
24712#endif
24713/* We use char because int might match the return type of a gcc2
24714 builtin and then its argument prototype would still apply. */
24715char gethostbyname ();
24716/* The GNU C library defines this for functions which it implements
24717 to always fail with ENOSYS. Some functions are actually named
24718 something starting with __ and the normal name is an alias. */
24719#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24720choke me
24721#else
24722char (*f) () = gethostbyname;
24723#endif
24724#ifdef __cplusplus
24725}
24726#endif
24727
24728int
24729main ()
24730{
24731return f != gethostbyname;
24732 ;
24733 return 0;
24734}
24735_ACEOF
24736rm -f conftest.$ac_objext conftest$ac_exeext
24737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24738 (eval $ac_link) 2>conftest.er1
a848cd7e 24739 ac_status=$?
ac1cb8d3
VS
24740 grep -v '^ *+' conftest.er1 >conftest.err
24741 rm -f conftest.er1
24742 cat conftest.err >&5
a848cd7e
SC
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } &&
2cbbc68d
RD
24745 { ac_try='test -z "$ac_c_werror_flag"
24746 || test ! -s conftest.err'
ac1cb8d3
VS
24747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24748 (eval $ac_try) 2>&5
24749 ac_status=$?
24750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 (exit $ac_status); }; } &&
24752 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24754 (eval $ac_try) 2>&5
24755 ac_status=$?
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); }; }; then
24758 ac_cv_func_gethostbyname=yes
24759else
24760 echo "$as_me: failed program was:" >&5
24761sed 's/^/| /' conftest.$ac_ext >&5
24762
24763ac_cv_func_gethostbyname=no
24764fi
ac1cb8d3
VS
24765rm -f conftest.err conftest.$ac_objext \
24766 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24767fi
24768echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24769echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24770
24771 if test $ac_cv_func_gethostbyname = no; then
24772 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24773echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24774if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24775 echo $ECHO_N "(cached) $ECHO_C" >&6
24776else
24777 ac_check_lib_save_LIBS=$LIBS
24778LIBS="-lnsl $LIBS"
24779cat >conftest.$ac_ext <<_ACEOF
24780/* confdefs.h. */
24781_ACEOF
24782cat confdefs.h >>conftest.$ac_ext
24783cat >>conftest.$ac_ext <<_ACEOF
24784/* end confdefs.h. */
24785
24786/* Override any gcc2 internal prototype to avoid an error. */
24787#ifdef __cplusplus
24788extern "C"
24789#endif
24790/* We use char because int might match the return type of a gcc2
24791 builtin and then its argument prototype would still apply. */
24792char gethostbyname ();
24793int
24794main ()
24795{
24796gethostbyname ();
24797 ;
24798 return 0;
24799}
24800_ACEOF
24801rm -f conftest.$ac_objext conftest$ac_exeext
24802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24803 (eval $ac_link) 2>conftest.er1
24804 ac_status=$?
24805 grep -v '^ *+' conftest.er1 >conftest.err
24806 rm -f conftest.er1
24807 cat conftest.err >&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); } &&
2cbbc68d
RD
24810 { ac_try='test -z "$ac_c_werror_flag"
24811 || test ! -s conftest.err'
ac1cb8d3
VS
24812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24813 (eval $ac_try) 2>&5
24814 ac_status=$?
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); }; } &&
24817 { ac_try='test -s conftest$ac_exeext'
24818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24819 (eval $ac_try) 2>&5
24820 ac_status=$?
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); }; }; then
24823 ac_cv_lib_nsl_gethostbyname=yes
24824else
24825 echo "$as_me: failed program was:" >&5
24826sed 's/^/| /' conftest.$ac_ext >&5
24827
24828ac_cv_lib_nsl_gethostbyname=no
24829fi
24830rm -f conftest.err conftest.$ac_objext \
24831 conftest$ac_exeext conftest.$ac_ext
24832LIBS=$ac_check_lib_save_LIBS
24833fi
24834echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24835echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24836if test $ac_cv_lib_nsl_gethostbyname = yes; then
24837 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24838fi
24839
24840 if test $ac_cv_lib_nsl_gethostbyname = no; then
24841 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24842echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24843if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24844 echo $ECHO_N "(cached) $ECHO_C" >&6
24845else
24846 ac_check_lib_save_LIBS=$LIBS
24847LIBS="-lbsd $LIBS"
24848cat >conftest.$ac_ext <<_ACEOF
24849/* confdefs.h. */
24850_ACEOF
24851cat confdefs.h >>conftest.$ac_ext
24852cat >>conftest.$ac_ext <<_ACEOF
24853/* end confdefs.h. */
24854
24855/* Override any gcc2 internal prototype to avoid an error. */
24856#ifdef __cplusplus
24857extern "C"
24858#endif
24859/* We use char because int might match the return type of a gcc2
24860 builtin and then its argument prototype would still apply. */
24861char gethostbyname ();
24862int
24863main ()
24864{
24865gethostbyname ();
24866 ;
24867 return 0;
24868}
24869_ACEOF
24870rm -f conftest.$ac_objext conftest$ac_exeext
24871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24872 (eval $ac_link) 2>conftest.er1
a848cd7e 24873 ac_status=$?
ac1cb8d3
VS
24874 grep -v '^ *+' conftest.er1 >conftest.err
24875 rm -f conftest.er1
24876 cat conftest.err >&5
a848cd7e
SC
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } &&
2cbbc68d
RD
24879 { ac_try='test -z "$ac_c_werror_flag"
24880 || test ! -s conftest.err'
a848cd7e
SC
24881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24882 (eval $ac_try) 2>&5
24883 ac_status=$?
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24885 (exit $ac_status); }; } &&
24886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24888 (eval $ac_try) 2>&5
24889 ac_status=$?
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); }; }; then
24892 ac_cv_lib_bsd_gethostbyname=yes
24893else
24894 echo "$as_me: failed program was:" >&5
24895sed 's/^/| /' conftest.$ac_ext >&5
24896
24897ac_cv_lib_bsd_gethostbyname=no
24898fi
ac1cb8d3
VS
24899rm -f conftest.err conftest.$ac_objext \
24900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24901LIBS=$ac_check_lib_save_LIBS
24902fi
24903echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24904echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24905if test $ac_cv_lib_bsd_gethostbyname = yes; then
24906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24907fi
24908
24909 fi
24910 fi
24911
24912 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24913 # socket/setsockopt and other routines are undefined under SCO ODT
24914 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24915 # on later versions), says Simon Leinen: it contains gethostby*
24916 # variants that don't use the name server (or something). -lsocket
24917 # must be given before -lnsl if both are needed. We assume that
24918 # if connect needs -lnsl, so does gethostbyname.
24919 echo "$as_me:$LINENO: checking for connect" >&5
24920echo $ECHO_N "checking for connect... $ECHO_C" >&6
24921if test "${ac_cv_func_connect+set}" = set; then
24922 echo $ECHO_N "(cached) $ECHO_C" >&6
24923else
24924 cat >conftest.$ac_ext <<_ACEOF
24925/* confdefs.h. */
24926_ACEOF
24927cat confdefs.h >>conftest.$ac_ext
24928cat >>conftest.$ac_ext <<_ACEOF
24929/* end confdefs.h. */
ac1cb8d3
VS
24930/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24932#define connect innocuous_connect
24933
a848cd7e
SC
24934/* System header to define __stub macros and hopefully few prototypes,
24935 which can conflict with char connect (); below.
24936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24937 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24938
a848cd7e
SC
24939#ifdef __STDC__
24940# include <limits.h>
24941#else
24942# include <assert.h>
24943#endif
ac1cb8d3
VS
24944
24945#undef connect
24946
a848cd7e
SC
24947/* Override any gcc2 internal prototype to avoid an error. */
24948#ifdef __cplusplus
24949extern "C"
24950{
24951#endif
24952/* We use char because int might match the return type of a gcc2
24953 builtin and then its argument prototype would still apply. */
24954char connect ();
24955/* The GNU C library defines this for functions which it implements
24956 to always fail with ENOSYS. Some functions are actually named
24957 something starting with __ and the normal name is an alias. */
24958#if defined (__stub_connect) || defined (__stub___connect)
24959choke me
24960#else
24961char (*f) () = connect;
24962#endif
24963#ifdef __cplusplus
24964}
24965#endif
24966
24967int
24968main ()
24969{
24970return f != connect;
24971 ;
24972 return 0;
24973}
24974_ACEOF
24975rm -f conftest.$ac_objext conftest$ac_exeext
24976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24977 (eval $ac_link) 2>conftest.er1
a848cd7e 24978 ac_status=$?
ac1cb8d3
VS
24979 grep -v '^ *+' conftest.er1 >conftest.err
24980 rm -f conftest.er1
24981 cat conftest.err >&5
a848cd7e
SC
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); } &&
2cbbc68d
RD
24984 { ac_try='test -z "$ac_c_werror_flag"
24985 || test ! -s conftest.err'
ac1cb8d3
VS
24986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24987 (eval $ac_try) 2>&5
24988 ac_status=$?
24989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990 (exit $ac_status); }; } &&
24991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993 (eval $ac_try) 2>&5
24994 ac_status=$?
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; }; then
24997 ac_cv_func_connect=yes
24998else
24999 echo "$as_me: failed program was:" >&5
25000sed 's/^/| /' conftest.$ac_ext >&5
25001
25002ac_cv_func_connect=no
25003fi
ac1cb8d3
VS
25004rm -f conftest.err conftest.$ac_objext \
25005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25006fi
25007echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25008echo "${ECHO_T}$ac_cv_func_connect" >&6
25009
25010 if test $ac_cv_func_connect = no; then
25011 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25012echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25013if test "${ac_cv_lib_socket_connect+set}" = set; then
25014 echo $ECHO_N "(cached) $ECHO_C" >&6
25015else
25016 ac_check_lib_save_LIBS=$LIBS
25017LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25018cat >conftest.$ac_ext <<_ACEOF
25019/* confdefs.h. */
25020_ACEOF
25021cat confdefs.h >>conftest.$ac_ext
25022cat >>conftest.$ac_ext <<_ACEOF
25023/* end confdefs.h. */
25024
25025/* Override any gcc2 internal prototype to avoid an error. */
25026#ifdef __cplusplus
25027extern "C"
25028#endif
25029/* We use char because int might match the return type of a gcc2
25030 builtin and then its argument prototype would still apply. */
25031char connect ();
25032int
25033main ()
25034{
25035connect ();
25036 ;
25037 return 0;
25038}
25039_ACEOF
25040rm -f conftest.$ac_objext conftest$ac_exeext
25041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25042 (eval $ac_link) 2>conftest.er1
a848cd7e 25043 ac_status=$?
ac1cb8d3
VS
25044 grep -v '^ *+' conftest.er1 >conftest.err
25045 rm -f conftest.er1
25046 cat conftest.err >&5
a848cd7e
SC
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); } &&
2cbbc68d
RD
25049 { ac_try='test -z "$ac_c_werror_flag"
25050 || test ! -s conftest.err'
ac1cb8d3
VS
25051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25052 (eval $ac_try) 2>&5
25053 ac_status=$?
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); }; } &&
25056 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); }; }; then
25062 ac_cv_lib_socket_connect=yes
25063else
25064 echo "$as_me: failed program was:" >&5
25065sed 's/^/| /' conftest.$ac_ext >&5
25066
25067ac_cv_lib_socket_connect=no
25068fi
ac1cb8d3
VS
25069rm -f conftest.err conftest.$ac_objext \
25070 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25071LIBS=$ac_check_lib_save_LIBS
25072fi
25073echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25074echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25075if test $ac_cv_lib_socket_connect = yes; then
25076 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25077fi
25078
25079 fi
25080
25081 # Guillermo Gomez says -lposix is necessary on A/UX.
25082 echo "$as_me:$LINENO: checking for remove" >&5
25083echo $ECHO_N "checking for remove... $ECHO_C" >&6
25084if test "${ac_cv_func_remove+set}" = set; then
25085 echo $ECHO_N "(cached) $ECHO_C" >&6
25086else
25087 cat >conftest.$ac_ext <<_ACEOF
25088/* confdefs.h. */
25089_ACEOF
25090cat confdefs.h >>conftest.$ac_ext
25091cat >>conftest.$ac_ext <<_ACEOF
25092/* end confdefs.h. */
ac1cb8d3
VS
25093/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25095#define remove innocuous_remove
25096
a848cd7e
SC
25097/* System header to define __stub macros and hopefully few prototypes,
25098 which can conflict with char remove (); below.
25099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25100 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25101
a848cd7e
SC
25102#ifdef __STDC__
25103# include <limits.h>
25104#else
25105# include <assert.h>
25106#endif
ac1cb8d3
VS
25107
25108#undef remove
25109
a848cd7e
SC
25110/* Override any gcc2 internal prototype to avoid an error. */
25111#ifdef __cplusplus
25112extern "C"
25113{
25114#endif
25115/* We use char because int might match the return type of a gcc2
25116 builtin and then its argument prototype would still apply. */
25117char remove ();
25118/* The GNU C library defines this for functions which it implements
25119 to always fail with ENOSYS. Some functions are actually named
25120 something starting with __ and the normal name is an alias. */
25121#if defined (__stub_remove) || defined (__stub___remove)
25122choke me
25123#else
25124char (*f) () = remove;
25125#endif
25126#ifdef __cplusplus
25127}
25128#endif
25129
25130int
25131main ()
25132{
25133return f != remove;
25134 ;
25135 return 0;
25136}
25137_ACEOF
25138rm -f conftest.$ac_objext conftest$ac_exeext
25139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25140 (eval $ac_link) 2>conftest.er1
a848cd7e 25141 ac_status=$?
ac1cb8d3
VS
25142 grep -v '^ *+' conftest.er1 >conftest.err
25143 rm -f conftest.er1
25144 cat conftest.err >&5
a848cd7e
SC
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); } &&
2cbbc68d
RD
25147 { ac_try='test -z "$ac_c_werror_flag"
25148 || test ! -s conftest.err'
ac1cb8d3
VS
25149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25150 (eval $ac_try) 2>&5
25151 ac_status=$?
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); }; } &&
25154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25156 (eval $ac_try) 2>&5
25157 ac_status=$?
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); }; }; then
25160 ac_cv_func_remove=yes
25161else
25162 echo "$as_me: failed program was:" >&5
25163sed 's/^/| /' conftest.$ac_ext >&5
25164
25165ac_cv_func_remove=no
25166fi
ac1cb8d3
VS
25167rm -f conftest.err conftest.$ac_objext \
25168 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25169fi
25170echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25171echo "${ECHO_T}$ac_cv_func_remove" >&6
25172
25173 if test $ac_cv_func_remove = no; then
25174 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25175echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25176if test "${ac_cv_lib_posix_remove+set}" = set; then
25177 echo $ECHO_N "(cached) $ECHO_C" >&6
25178else
25179 ac_check_lib_save_LIBS=$LIBS
25180LIBS="-lposix $LIBS"
25181cat >conftest.$ac_ext <<_ACEOF
25182/* confdefs.h. */
25183_ACEOF
25184cat confdefs.h >>conftest.$ac_ext
25185cat >>conftest.$ac_ext <<_ACEOF
25186/* end confdefs.h. */
25187
25188/* Override any gcc2 internal prototype to avoid an error. */
25189#ifdef __cplusplus
25190extern "C"
25191#endif
25192/* We use char because int might match the return type of a gcc2
25193 builtin and then its argument prototype would still apply. */
25194char remove ();
25195int
25196main ()
25197{
25198remove ();
25199 ;
25200 return 0;
25201}
25202_ACEOF
25203rm -f conftest.$ac_objext conftest$ac_exeext
25204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25205 (eval $ac_link) 2>conftest.er1
a848cd7e 25206 ac_status=$?
ac1cb8d3
VS
25207 grep -v '^ *+' conftest.er1 >conftest.err
25208 rm -f conftest.er1
25209 cat conftest.err >&5
a848cd7e
SC
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } &&
2cbbc68d
RD
25212 { ac_try='test -z "$ac_c_werror_flag"
25213 || test ! -s conftest.err'
ac1cb8d3
VS
25214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215 (eval $ac_try) 2>&5
25216 ac_status=$?
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); }; } &&
25219 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25221 (eval $ac_try) 2>&5
25222 ac_status=$?
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); }; }; then
25225 ac_cv_lib_posix_remove=yes
25226else
25227 echo "$as_me: failed program was:" >&5
25228sed 's/^/| /' conftest.$ac_ext >&5
25229
25230ac_cv_lib_posix_remove=no
25231fi
ac1cb8d3
VS
25232rm -f conftest.err conftest.$ac_objext \
25233 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25234LIBS=$ac_check_lib_save_LIBS
25235fi
25236echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25237echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25238if test $ac_cv_lib_posix_remove = yes; then
25239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25240fi
25241
25242 fi
25243
25244 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25245 echo "$as_me:$LINENO: checking for shmat" >&5
25246echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25247if test "${ac_cv_func_shmat+set}" = set; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25249else
25250 cat >conftest.$ac_ext <<_ACEOF
25251/* confdefs.h. */
25252_ACEOF
25253cat confdefs.h >>conftest.$ac_ext
25254cat >>conftest.$ac_ext <<_ACEOF
25255/* end confdefs.h. */
ac1cb8d3
VS
25256/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25258#define shmat innocuous_shmat
25259
a848cd7e
SC
25260/* System header to define __stub macros and hopefully few prototypes,
25261 which can conflict with char shmat (); below.
25262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25264
a848cd7e
SC
25265#ifdef __STDC__
25266# include <limits.h>
25267#else
25268# include <assert.h>
25269#endif
ac1cb8d3
VS
25270
25271#undef shmat
25272
a848cd7e
SC
25273/* Override any gcc2 internal prototype to avoid an error. */
25274#ifdef __cplusplus
25275extern "C"
25276{
25277#endif
25278/* We use char because int might match the return type of a gcc2
25279 builtin and then its argument prototype would still apply. */
25280char shmat ();
25281/* The GNU C library defines this for functions which it implements
25282 to always fail with ENOSYS. Some functions are actually named
25283 something starting with __ and the normal name is an alias. */
25284#if defined (__stub_shmat) || defined (__stub___shmat)
25285choke me
25286#else
25287char (*f) () = shmat;
25288#endif
25289#ifdef __cplusplus
25290}
25291#endif
25292
25293int
25294main ()
25295{
25296return f != shmat;
25297 ;
25298 return 0;
25299}
25300_ACEOF
25301rm -f conftest.$ac_objext conftest$ac_exeext
25302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25303 (eval $ac_link) 2>conftest.er1
a848cd7e 25304 ac_status=$?
ac1cb8d3
VS
25305 grep -v '^ *+' conftest.er1 >conftest.err
25306 rm -f conftest.er1
25307 cat conftest.err >&5
a848cd7e
SC
25308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309 (exit $ac_status); } &&
2cbbc68d
RD
25310 { ac_try='test -z "$ac_c_werror_flag"
25311 || test ! -s conftest.err'
ac1cb8d3
VS
25312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25313 (eval $ac_try) 2>&5
25314 ac_status=$?
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); }; } &&
25317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25319 (eval $ac_try) 2>&5
25320 ac_status=$?
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); }; }; then
25323 ac_cv_func_shmat=yes
25324else
25325 echo "$as_me: failed program was:" >&5
25326sed 's/^/| /' conftest.$ac_ext >&5
25327
25328ac_cv_func_shmat=no
25329fi
ac1cb8d3
VS
25330rm -f conftest.err conftest.$ac_objext \
25331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25332fi
25333echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25334echo "${ECHO_T}$ac_cv_func_shmat" >&6
25335
25336 if test $ac_cv_func_shmat = no; then
25337 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25338echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25339if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25340 echo $ECHO_N "(cached) $ECHO_C" >&6
25341else
25342 ac_check_lib_save_LIBS=$LIBS
25343LIBS="-lipc $LIBS"
25344cat >conftest.$ac_ext <<_ACEOF
25345/* confdefs.h. */
25346_ACEOF
25347cat confdefs.h >>conftest.$ac_ext
25348cat >>conftest.$ac_ext <<_ACEOF
25349/* end confdefs.h. */
25350
25351/* Override any gcc2 internal prototype to avoid an error. */
25352#ifdef __cplusplus
25353extern "C"
25354#endif
25355/* We use char because int might match the return type of a gcc2
25356 builtin and then its argument prototype would still apply. */
25357char shmat ();
25358int
25359main ()
25360{
25361shmat ();
25362 ;
25363 return 0;
25364}
25365_ACEOF
25366rm -f conftest.$ac_objext conftest$ac_exeext
25367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25368 (eval $ac_link) 2>conftest.er1
a848cd7e 25369 ac_status=$?
ac1cb8d3
VS
25370 grep -v '^ *+' conftest.er1 >conftest.err
25371 rm -f conftest.er1
25372 cat conftest.err >&5
a848cd7e
SC
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } &&
2cbbc68d
RD
25375 { ac_try='test -z "$ac_c_werror_flag"
25376 || test ! -s conftest.err'
ac1cb8d3
VS
25377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378 (eval $ac_try) 2>&5
25379 ac_status=$?
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); }; } &&
25382 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25385 ac_status=$?
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; }; then
25388 ac_cv_lib_ipc_shmat=yes
25389else
25390 echo "$as_me: failed program was:" >&5
25391sed 's/^/| /' conftest.$ac_ext >&5
25392
25393ac_cv_lib_ipc_shmat=no
25394fi
ac1cb8d3
VS
25395rm -f conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25397LIBS=$ac_check_lib_save_LIBS
25398fi
25399echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25400echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25401if test $ac_cv_lib_ipc_shmat = yes; then
25402 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25403fi
25404
25405 fi
25406 fi
25407
25408 # Check for libraries that X11R6 Xt/Xaw programs need.
25409 ac_save_LDFLAGS=$LDFLAGS
25410 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25411 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25412 # check for ICE first), but we must link in the order -lSM -lICE or
25413 # we get undefined symbols. So assume we have SM if we have ICE.
25414 # These have to be linked with before -lX11, unlike the other
25415 # libraries we check for below, so use a different variable.
25416 # John Interrante, Karl Berry
25417 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25418echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25419if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25420 echo $ECHO_N "(cached) $ECHO_C" >&6
25421else
25422 ac_check_lib_save_LIBS=$LIBS
25423LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25424cat >conftest.$ac_ext <<_ACEOF
25425/* confdefs.h. */
25426_ACEOF
25427cat confdefs.h >>conftest.$ac_ext
25428cat >>conftest.$ac_ext <<_ACEOF
25429/* end confdefs.h. */
25430
25431/* Override any gcc2 internal prototype to avoid an error. */
25432#ifdef __cplusplus
25433extern "C"
25434#endif
25435/* We use char because int might match the return type of a gcc2
25436 builtin and then its argument prototype would still apply. */
25437char IceConnectionNumber ();
25438int
25439main ()
25440{
25441IceConnectionNumber ();
25442 ;
25443 return 0;
25444}
25445_ACEOF
25446rm -f conftest.$ac_objext conftest$ac_exeext
25447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25448 (eval $ac_link) 2>conftest.er1
a848cd7e 25449 ac_status=$?
ac1cb8d3
VS
25450 grep -v '^ *+' conftest.er1 >conftest.err
25451 rm -f conftest.er1
25452 cat conftest.err >&5
a848cd7e
SC
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); } &&
2cbbc68d
RD
25455 { ac_try='test -z "$ac_c_werror_flag"
25456 || test ! -s conftest.err'
ac1cb8d3
VS
25457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458 (eval $ac_try) 2>&5
25459 ac_status=$?
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); }; } &&
25462 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464 (eval $ac_try) 2>&5
25465 ac_status=$?
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); }; }; then
25468 ac_cv_lib_ICE_IceConnectionNumber=yes
25469else
25470 echo "$as_me: failed program was:" >&5
25471sed 's/^/| /' conftest.$ac_ext >&5
25472
25473ac_cv_lib_ICE_IceConnectionNumber=no
25474fi
ac1cb8d3
VS
25475rm -f conftest.err conftest.$ac_objext \
25476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25477LIBS=$ac_check_lib_save_LIBS
25478fi
25479echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25480echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25481if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25482 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25483fi
25484
25485 LDFLAGS=$ac_save_LDFLAGS
25486
25487fi
25488
25489
25490 if test "$no_x" = "yes"; then
25491 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25492echo "$as_me: error: X11 not found" >&2;}
25493 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25494 fi
25495
74b84332
VS
25496 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25497 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25498 AFMINSTALL=afminstall
25499 COMPILED_X_PROGRAM=0
25500
74b84332
VS
25501 fi
25502
25503 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25504 if test "$wxUSE_NANOX" = "yes"; then
25505 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25506echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25507 if test "x$MICROWIN" = x ; then
25508 echo "$as_me:$LINENO: result: not found" >&5
25509echo "${ECHO_T}not found" >&6
25510 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25511echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25512 { (exit 1); exit 1; }; }
25513 else
25514 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25515echo "${ECHO_T}$MICROWIN" >&6
25516 cat >>confdefs.h <<\_ACEOF
25517#define wxUSE_NANOX 1
25518_ACEOF
25519
25520 fi
25521 fi
25522
25523 if test "$wxUSE_UNICODE" = "yes"; then
25524
25525 succeeded=no
25526
25527 if test -z "$PKG_CONFIG"; then
25528 # Extract the first word of "pkg-config", so it can be a program name with args.
25529set dummy pkg-config; ac_word=$2
25530echo "$as_me:$LINENO: checking for $ac_word" >&5
25531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25532if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25533 echo $ECHO_N "(cached) $ECHO_C" >&6
25534else
25535 case $PKG_CONFIG in
25536 [\\/]* | ?:[\\/]*)
25537 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25538 ;;
25539 *)
25540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25541for as_dir in $PATH
25542do
25543 IFS=$as_save_IFS
25544 test -z "$as_dir" && as_dir=.
25545 for ac_exec_ext in '' $ac_executable_extensions; do
25546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25547 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25549 break 2
25550 fi
25551done
25552done
25553
25554 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25555 ;;
25556esac
25557fi
25558PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25559
25560if test -n "$PKG_CONFIG"; then
25561 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25562echo "${ECHO_T}$PKG_CONFIG" >&6
25563else
25564 echo "$as_me:$LINENO: result: no" >&5
25565echo "${ECHO_T}no" >&6
25566fi
25567
25568 fi
25569
25570 if test "$PKG_CONFIG" = "no" ; then
25571 echo "*** The pkg-config script could not be found. Make sure it is"
25572 echo "*** in your path, or set the PKG_CONFIG environment variable"
25573 echo "*** to the full path to pkg-config."
25574 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25575 else
25576 PKG_CONFIG_MIN_VERSION=0.9.0
25577 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25578 echo "$as_me:$LINENO: checking for pangox" >&5
25579echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25580
25581 if $PKG_CONFIG --exists "pangox" ; then
25582 echo "$as_me:$LINENO: result: yes" >&5
25583echo "${ECHO_T}yes" >&6
25584 succeeded=yes
25585
25586 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25587echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25588 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25589 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25590echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25591
25592 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25593echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25594 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25595 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25596echo "${ECHO_T}$PANGOX_LIBS" >&6
25597 else
25598 PANGOX_CFLAGS=""
25599 PANGOX_LIBS=""
25600 ## If we have a custom action on failure, don't print errors, but
25601 ## do set a variable so people can do so.
25602 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25603
25604 fi
25605
25606
25607
25608 else
25609 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25610 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25611 fi
25612 fi
25613
25614 if test $succeeded = yes; then
25615
25616 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25617 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25618
25619 else
25620
25621 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25622echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25623 { (exit 1); exit 1; }; }
25624
25625
25626 fi
25627
25628
25629 succeeded=no
25630
25631 if test -z "$PKG_CONFIG"; then
25632 # Extract the first word of "pkg-config", so it can be a program name with args.
25633set dummy pkg-config; ac_word=$2
25634echo "$as_me:$LINENO: checking for $ac_word" >&5
25635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25636if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25637 echo $ECHO_N "(cached) $ECHO_C" >&6
25638else
25639 case $PKG_CONFIG in
25640 [\\/]* | ?:[\\/]*)
25641 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25642 ;;
25643 *)
25644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25645for as_dir in $PATH
25646do
25647 IFS=$as_save_IFS
25648 test -z "$as_dir" && as_dir=.
25649 for ac_exec_ext in '' $ac_executable_extensions; do
25650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25651 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25653 break 2
25654 fi
25655done
25656done
25657
25658 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25659 ;;
25660esac
25661fi
25662PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25663
25664if test -n "$PKG_CONFIG"; then
25665 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25666echo "${ECHO_T}$PKG_CONFIG" >&6
25667else
25668 echo "$as_me:$LINENO: result: no" >&5
25669echo "${ECHO_T}no" >&6
25670fi
25671
25672 fi
25673
25674 if test "$PKG_CONFIG" = "no" ; then
25675 echo "*** The pkg-config script could not be found. Make sure it is"
25676 echo "*** in your path, or set the PKG_CONFIG environment variable"
25677 echo "*** to the full path to pkg-config."
25678 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25679 else
25680 PKG_CONFIG_MIN_VERSION=0.9.0
25681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25682 echo "$as_me:$LINENO: checking for pangoft2" >&5
25683echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25684
25685 if $PKG_CONFIG --exists "pangoft2" ; then
25686 echo "$as_me:$LINENO: result: yes" >&5
25687echo "${ECHO_T}yes" >&6
25688 succeeded=yes
25689
25690 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25691echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25692 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25693 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25694echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25695
25696 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25697echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25698 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25699 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25700echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25701 else
25702 PANGOFT2_CFLAGS=""
25703 PANGOFT2_LIBS=""
25704 ## If we have a custom action on failure, don't print errors, but
25705 ## do set a variable so people can do so.
25706 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25707
25708 fi
25709
25710
25711
25712 else
25713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25715 fi
25716 fi
25717
25718 if test $succeeded = yes; then
25719
25720 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25721 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25722
25723 else
25724
25725 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25726echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25727 wxUSE_PRINTING_ARCHITECTURE="no"
25728
25729
25730 fi
25731
25732
25733 succeeded=no
25734
25735 if test -z "$PKG_CONFIG"; then
25736 # Extract the first word of "pkg-config", so it can be a program name with args.
25737set dummy pkg-config; ac_word=$2
25738echo "$as_me:$LINENO: checking for $ac_word" >&5
25739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25740if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25741 echo $ECHO_N "(cached) $ECHO_C" >&6
25742else
25743 case $PKG_CONFIG in
25744 [\\/]* | ?:[\\/]*)
25745 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25746 ;;
25747 *)
25748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25749for as_dir in $PATH
25750do
25751 IFS=$as_save_IFS
25752 test -z "$as_dir" && as_dir=.
25753 for ac_exec_ext in '' $ac_executable_extensions; do
25754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25755 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25757 break 2
25758 fi
25759done
25760done
25761
25762 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25763 ;;
25764esac
25765fi
25766PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25767
25768if test -n "$PKG_CONFIG"; then
25769 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25770echo "${ECHO_T}$PKG_CONFIG" >&6
25771else
25772 echo "$as_me:$LINENO: result: no" >&5
25773echo "${ECHO_T}no" >&6
25774fi
25775
25776 fi
25777
25778 if test "$PKG_CONFIG" = "no" ; then
25779 echo "*** The pkg-config script could not be found. Make sure it is"
25780 echo "*** in your path, or set the PKG_CONFIG environment variable"
25781 echo "*** to the full path to pkg-config."
25782 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25783 else
25784 PKG_CONFIG_MIN_VERSION=0.9.0
25785 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25786 echo "$as_me:$LINENO: checking for pangoxft" >&5
25787echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25788
25789 if $PKG_CONFIG --exists "pangoxft" ; then
25790 echo "$as_me:$LINENO: result: yes" >&5
25791echo "${ECHO_T}yes" >&6
25792 succeeded=yes
25793
25794 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25795echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25796 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25797 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25798echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25799
25800 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25801echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25802 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25803 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25804echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25805 else
25806 PANGOXFT_CFLAGS=""
25807 PANGOXFT_LIBS=""
25808 ## If we have a custom action on failure, don't print errors, but
25809 ## do set a variable so people can do so.
25810 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25811
25812 fi
25813
25814
25815
25816 else
25817 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25818 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25819 fi
25820 fi
25821
25822 if test $succeeded = yes; then
25823
25824 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25825 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25826
25827 else
25828
25829 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25830echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25831
25832
25833 fi
25834
304205f1
VS
25835 save_CFLAGS="$CFLAGS"
25836 save_LIBS="$LIBS"
25837 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25838 LIBS="$LIBS $PANGOX_LIBS"
25839
25840for ac_func in pango_font_family_is_monospace
25841do
25842as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25843echo "$as_me:$LINENO: checking for $ac_func" >&5
25844echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25845if eval "test \"\${$as_ac_var+set}\" = set"; then
25846 echo $ECHO_N "(cached) $ECHO_C" >&6
25847else
25848 cat >conftest.$ac_ext <<_ACEOF
25849/* confdefs.h. */
25850_ACEOF
25851cat confdefs.h >>conftest.$ac_ext
25852cat >>conftest.$ac_ext <<_ACEOF
25853/* end confdefs.h. */
25854/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25856#define $ac_func innocuous_$ac_func
25857
25858/* System header to define __stub macros and hopefully few prototypes,
25859 which can conflict with char $ac_func (); below.
25860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25861 <limits.h> exists even on freestanding compilers. */
25862
25863#ifdef __STDC__
25864# include <limits.h>
25865#else
25866# include <assert.h>
25867#endif
25868
25869#undef $ac_func
25870
25871/* Override any gcc2 internal prototype to avoid an error. */
25872#ifdef __cplusplus
25873extern "C"
25874{
25875#endif
25876/* We use char because int might match the return type of a gcc2
25877 builtin and then its argument prototype would still apply. */
25878char $ac_func ();
25879/* The GNU C library defines this for functions which it implements
25880 to always fail with ENOSYS. Some functions are actually named
25881 something starting with __ and the normal name is an alias. */
25882#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25883choke me
25884#else
25885char (*f) () = $ac_func;
25886#endif
25887#ifdef __cplusplus
25888}
25889#endif
25890
25891int
25892main ()
25893{
25894return f != $ac_func;
25895 ;
25896 return 0;
25897}
25898_ACEOF
25899rm -f conftest.$ac_objext conftest$ac_exeext
25900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25901 (eval $ac_link) 2>conftest.er1
25902 ac_status=$?
25903 grep -v '^ *+' conftest.er1 >conftest.err
25904 rm -f conftest.er1
25905 cat conftest.err >&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); } &&
2cbbc68d
RD
25908 { ac_try='test -z "$ac_c_werror_flag"
25909 || test ! -s conftest.err'
304205f1
VS
25910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25911 (eval $ac_try) 2>&5
25912 ac_status=$?
25913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); }; } &&
25915 { ac_try='test -s conftest$ac_exeext'
25916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25917 (eval $ac_try) 2>&5
25918 ac_status=$?
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); }; }; then
25921 eval "$as_ac_var=yes"
25922else
25923 echo "$as_me: failed program was:" >&5
25924sed 's/^/| /' conftest.$ac_ext >&5
25925
25926eval "$as_ac_var=no"
25927fi
25928rm -f conftest.err conftest.$ac_objext \
25929 conftest$ac_exeext conftest.$ac_ext
25930fi
25931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25933if test `eval echo '${'$as_ac_var'}'` = yes; then
25934 cat >>confdefs.h <<_ACEOF
25935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25936_ACEOF
25937
25938fi
25939done
25940
25941 CFLAGS="$save_CFLAGS"
25942 LIBS="$save_LIBS"
a848cd7e
SC
25943 fi
25944
25945 wxUSE_UNIVERSAL="yes"
25946
25947 if test "$wxUSE_NANOX" = "yes"; then
25948 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25949 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"
25950 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25951 else
25952 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25953 fi
25954
a848cd7e
SC
25955 TOOLKIT=X11
25956 GUIDIST=X11_DIST
25957 fi
25958
25959 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25960 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25961echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25962
74b84332
VS
25963ac_find_includes=
25964for ac_dir in $SEARCH_INCLUDE /usr/include;
25965 do
25966 if test -f "$ac_dir/Xm/Xm.h"; then
25967 ac_find_includes=$ac_dir
25968 break
25969 fi
25970 done
a848cd7e 25971
74b84332
VS
25972 if test "$ac_find_includes" != "" ; then
25973 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25974echo "${ECHO_T}found in $ac_find_includes" >&6
25975
25976 if test "x$ac_find_includes" = "x/usr/include"; then
25977 ac_path_to_include=""
25978 else
25979 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25980 result=$?
25981 if test $result = 0; then
25982 ac_path_to_include=""
25983 else
25984 ac_path_to_include=" -I$ac_find_includes"
25985 fi
a848cd7e
SC
25986 fi
25987
74b84332
VS
25988 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25989 else
25990 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25991/* confdefs.h. */
25992_ACEOF
25993cat confdefs.h >>conftest.$ac_ext
25994cat >>conftest.$ac_ext <<_ACEOF
25995/* end confdefs.h. */
25996
74b84332
VS
25997 #include <Xm/Xm.h>
25998
a848cd7e
SC
25999int
26000main ()
26001{
26002
74b84332
VS
26003 int version;
26004 version = xmUseVersion;
26005
a848cd7e
SC
26006 ;
26007 return 0;
26008}
26009_ACEOF
74b84332
VS
26010rm -f conftest.$ac_objext
26011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26012 (eval $ac_compile) 2>conftest.er1
a848cd7e 26013 ac_status=$?
ac1cb8d3
VS
26014 grep -v '^ *+' conftest.er1 >conftest.err
26015 rm -f conftest.er1
26016 cat conftest.err >&5
a848cd7e
SC
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } &&
2cbbc68d
RD
26019 { ac_try='test -z "$ac_c_werror_flag"
26020 || test ! -s conftest.err'
ac1cb8d3
VS
26021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022 (eval $ac_try) 2>&5
26023 ac_status=$?
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; } &&
74b84332 26026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028 (eval $ac_try) 2>&5
26029 ac_status=$?
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); }; }; then
74b84332
VS
26032
26033 echo "$as_me:$LINENO: result: found in default search path" >&5
26034echo "${ECHO_T}found in default search path" >&6
26035 COMPILED_X_PROGRAM=1
26036
a848cd7e
SC
26037else
26038 echo "$as_me: failed program was:" >&5
26039sed 's/^/| /' conftest.$ac_ext >&5
26040
a848cd7e 26041
74b84332
VS
26042 echo "$as_me:$LINENO: result: no" >&5
26043echo "${ECHO_T}no" >&6
26044 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26045echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26046 { (exit 1); exit 1; }; }
a848cd7e 26047
a848cd7e 26048
a848cd7e 26049fi
74b84332
VS
26050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26051 fi
26052
26053 if test "$COMPILED_X_PROGRAM" = 0; then
26054 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26055echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26056
26057ac_find_libraries=
26058for ac_dir in $SEARCH_LIB /usr/lib;
26059 do
26060 for ac_extension in a so sl dylib; do
26061 if test -f "$ac_dir/libXm.$ac_extension"; then
26062 ac_find_libraries=$ac_dir
26063 break 2
a848cd7e 26064 fi
74b84332
VS
26065 done
26066 done
a848cd7e 26067
74b84332
VS
26068 if test "$ac_find_libraries" != "" ; then
26069 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26070echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26071
74b84332
VS
26072
26073 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26074 result=$?
26075 if test $result = 0; then
26076 ac_path_to_link=""
a848cd7e 26077 else
74b84332
VS
26078 ac_path_to_link=" -L$ac_find_libraries"
26079 fi
26080
26081 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26082 else
26083 save_CFLAGS=$CFLAGS
26084 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26085
26086 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26087/* confdefs.h. */
26088_ACEOF
26089cat confdefs.h >>conftest.$ac_ext
26090cat >>conftest.$ac_ext <<_ACEOF
26091/* end confdefs.h. */
26092
74b84332
VS
26093 #include <Xm/Xm.h>
26094
a848cd7e
SC
26095int
26096main ()
26097{
74b84332
VS
26098
26099 int version;
26100 version = xmUseVersion;
26101
a848cd7e
SC
26102 ;
26103 return 0;
26104}
26105_ACEOF
74b84332
VS
26106rm -f conftest.$ac_objext
26107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26108 (eval $ac_compile) 2>conftest.er1
a848cd7e 26109 ac_status=$?
ac1cb8d3
VS
26110 grep -v '^ *+' conftest.er1 >conftest.err
26111 rm -f conftest.er1
26112 cat conftest.err >&5
a848cd7e
SC
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); } &&
2cbbc68d
RD
26115 { ac_try='test -z "$ac_c_werror_flag"
26116 || test ! -s conftest.err'
ac1cb8d3
VS
26117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26118 (eval $ac_try) 2>&5
26119 ac_status=$?
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); }; } &&
74b84332 26122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124 (eval $ac_try) 2>&5
26125 ac_status=$?
26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127 (exit $ac_status); }; }; then
74b84332
VS
26128
26129 echo "$as_me:$LINENO: result: found in default search path" >&5
26130echo "${ECHO_T}found in default search path" >&6
26131 COMPILED_X_PROGRAM=1
26132
a848cd7e
SC
26133else
26134 echo "$as_me: failed program was:" >&5
26135sed 's/^/| /' conftest.$ac_ext >&5
26136
74b84332
VS
26137
26138 echo "$as_me:$LINENO: result: no" >&5
26139echo "${ECHO_T}no" >&6
26140 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26141echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26142 { (exit 1); exit 1; }; }
26143
26144
26145fi
26146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26147
26148 CFLAGS=$save_CFLAGS
26149 fi
26150 fi
26151
26152 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26153echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26154 libp_link=""
26155 libsm_ice_link=""
26156 libs_found=0
26157 for libp in "" " -lXp"; do
26158 if test "$libs_found" = "0"; then
26159 for libsm_ice in "" " -lSM -lICE"; do
26160 if test "$libs_found" = "0"; then
26161 save_LIBS="$LIBS"
26162 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26163 save_CFLAGS=$CFLAGS
26164 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26165
26166 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26167/* confdefs.h. */
26168_ACEOF
26169cat confdefs.h >>conftest.$ac_ext
26170cat >>conftest.$ac_ext <<_ACEOF
26171/* end confdefs.h. */
26172
74b84332
VS
26173 #include <Xm/Xm.h>
26174 #include <Xm/List.h>
26175
a848cd7e
SC
26176int
26177main ()
26178{
74b84332
VS
26179
26180 XmString string = NULL;
26181 Widget w = NULL;
26182 int position = 0;
26183 XmListAddItem(w, string, position);
26184
a848cd7e
SC
26185 ;
26186 return 0;
26187}
26188_ACEOF
26189rm -f conftest.$ac_objext conftest$ac_exeext
26190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26191 (eval $ac_link) 2>conftest.er1
a848cd7e 26192 ac_status=$?
ac1cb8d3
VS
26193 grep -v '^ *+' conftest.er1 >conftest.err
26194 rm -f conftest.er1
26195 cat conftest.err >&5
a848cd7e
SC
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); } &&
2cbbc68d
RD
26198 { ac_try='test -z "$ac_c_werror_flag"
26199 || test ! -s conftest.err'
ac1cb8d3
VS
26200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26201 (eval $ac_try) 2>&5
26202 ac_status=$?
26203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); }; } &&
26205 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26207 (eval $ac_try) 2>&5
26208 ac_status=$?
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); }; }; then
26211
26212 libp_link="$libp"
26213 libsm_ice_link="$libsm_ice"
26214 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26215echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26216 libs_found=1
26217
26218else
26219 echo "$as_me: failed program was:" >&5
26220sed 's/^/| /' conftest.$ac_ext >&5
26221
26222
26223
26224fi
ac1cb8d3
VS
26225rm -f conftest.err conftest.$ac_objext \
26226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26227
26228 LIBS="$save_LIBS"
26229 CFLAGS=$save_CFLAGS
26230 fi
26231 done
26232 fi
26233 done
26234
26235 if test "$libs_found" = "0"; then
26236 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26237echo "${ECHO_T}can't find the right libraries" >&6
26238 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26239echo "$as_me: error: can't link a simple motif program" >&2;}
26240 { (exit 1); exit 1; }; }
26241 fi
26242
26243 save_CFLAGS=$CFLAGS
26244 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26245 echo "$as_me:$LINENO: checking for Motif 2" >&5
26246echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26247 cat >conftest.$ac_ext <<_ACEOF
26248/* confdefs.h. */
26249_ACEOF
26250cat confdefs.h >>conftest.$ac_ext
26251cat >>conftest.$ac_ext <<_ACEOF
26252/* end confdefs.h. */
26253
26254 #include <Xm/Xm.h>
26255
26256int
26257main ()
26258{
26259
26260 #if XmVersion < 2000
26261 #error "Not Motif 2"
26262 #endif
26263
26264 ;
26265 return 0;
26266}
26267_ACEOF
26268rm -f conftest.$ac_objext
26269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26270 (eval $ac_compile) 2>conftest.er1
a848cd7e 26271 ac_status=$?
ac1cb8d3
VS
26272 grep -v '^ *+' conftest.er1 >conftest.err
26273 rm -f conftest.er1
26274 cat conftest.err >&5
a848cd7e
SC
26275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276 (exit $ac_status); } &&
2cbbc68d
RD
26277 { ac_try='test -z "$ac_c_werror_flag"
26278 || test ! -s conftest.err'
ac1cb8d3
VS
26279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26280 (eval $ac_try) 2>&5
26281 ac_status=$?
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); }; } &&
26284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26286 (eval $ac_try) 2>&5
26287 ac_status=$?
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); }; }; then
26290
26291 cat >>confdefs.h <<\_ACEOF
26292#define __WXMOTIF20__ 1
26293_ACEOF
26294
26295 echo "$as_me:$LINENO: result: found" >&5
26296echo "${ECHO_T}found" >&6
26297
26298else
26299 echo "$as_me: failed program was:" >&5
26300sed 's/^/| /' conftest.$ac_ext >&5
26301
26302
26303 cat >>confdefs.h <<\_ACEOF
26304#define __WXMOTIF20__ 0
26305_ACEOF
26306
26307 echo "$as_me:$LINENO: result: not found" >&5
26308echo "${ECHO_T}not found" >&6
26309
26310fi
ac1cb8d3 26311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26312 CFLAGS=$save_CFLAGS
26313
26314 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26315 TOOLKIT=MOTIF
26316 GUIDIST=MOTIF_DIST
26317 fi
26318
74b84332 26319 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26320 if test "$wxUSE_LIBXPM" = "sys"; then
26321 echo "$as_me:$LINENO: checking for Xpm library" >&5
26322echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26323
26324ac_find_libraries=
26325for ac_dir in $SEARCH_LIB /usr/lib;
26326 do
26327 for ac_extension in a so sl dylib; do
26328 if test -f "$ac_dir/libXpm.$ac_extension"; then
26329 ac_find_libraries=$ac_dir
26330 break 2
26331 fi
26332 done
26333 done
26334
26335 if test "$ac_find_libraries" != "" ; then
26336
26337 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26338 result=$?
26339 if test $result = 0; then
26340 ac_path_to_link=""
26341 else
26342 ac_path_to_link=" -L$ac_find_libraries"
26343 fi
26344
26345 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26346 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26347echo "${ECHO_T}found at $ac_find_libraries" >&6
26348
26349 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26350echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26351if test "${wx_cv_x11_xpm_h+set}" = set; then
26352 echo $ECHO_N "(cached) $ECHO_C" >&6
26353else
26354
26355 save_CFLAGS=$CFLAGS
26356 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26357
26358 cat >conftest.$ac_ext <<_ACEOF
26359/* confdefs.h. */
26360_ACEOF
26361cat confdefs.h >>conftest.$ac_ext
26362cat >>conftest.$ac_ext <<_ACEOF
26363/* end confdefs.h. */
26364
26365 #include <X11/xpm.h>
26366
26367int
26368main ()
26369{
26370
26371 int version;
26372 version = XpmLibraryVersion();
26373
26374 ;
26375 return 0;
26376}
26377_ACEOF
26378rm -f conftest.$ac_objext
26379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26380 (eval $ac_compile) 2>conftest.er1
a848cd7e 26381 ac_status=$?
ac1cb8d3
VS
26382 grep -v '^ *+' conftest.er1 >conftest.err
26383 rm -f conftest.er1
26384 cat conftest.err >&5
a848cd7e
SC
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); } &&
2cbbc68d
RD
26387 { ac_try='test -z "$ac_c_werror_flag"
26388 || test ! -s conftest.err'
ac1cb8d3
VS
26389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390 (eval $ac_try) 2>&5
26391 ac_status=$?
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; } &&
26394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396 (eval $ac_try) 2>&5
26397 ac_status=$?
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); }; }; then
26400 wx_cv_x11_xpm_h=yes
26401else
26402 echo "$as_me: failed program was:" >&5
26403sed 's/^/| /' conftest.$ac_ext >&5
26404
26405wx_cv_x11_xpm_h=no
26406
26407fi
ac1cb8d3 26408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26409
26410 CFLAGS=$save_CFLAGS
26411
26412
26413fi
26414echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26415echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26416
26417 if test $wx_cv_x11_xpm_h = "yes"; then
26418 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26419 cat >>confdefs.h <<\_ACEOF
26420#define wxHAVE_LIB_XPM 1
26421_ACEOF
26422
26423 else
26424 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26425echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26426 fi
26427 fi
26428
26429 fi
26430
26431 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26432echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26433if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26434 echo $ECHO_N "(cached) $ECHO_C" >&6
26435else
26436 ac_check_lib_save_LIBS=$LIBS
26437LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26438cat >conftest.$ac_ext <<_ACEOF
26439/* confdefs.h. */
26440_ACEOF
26441cat confdefs.h >>conftest.$ac_ext
26442cat >>conftest.$ac_ext <<_ACEOF
26443/* end confdefs.h. */
26444
26445/* Override any gcc2 internal prototype to avoid an error. */
26446#ifdef __cplusplus
26447extern "C"
26448#endif
26449/* We use char because int might match the return type of a gcc2
26450 builtin and then its argument prototype would still apply. */
26451char XShapeQueryExtension ();
26452int
26453main ()
26454{
26455XShapeQueryExtension ();
26456 ;
26457 return 0;
26458}
26459_ACEOF
26460rm -f conftest.$ac_objext conftest$ac_exeext
26461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26462 (eval $ac_link) 2>conftest.er1
a848cd7e 26463 ac_status=$?
ac1cb8d3
VS
26464 grep -v '^ *+' conftest.er1 >conftest.err
26465 rm -f conftest.er1
26466 cat conftest.err >&5
a848cd7e
SC
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); } &&
2cbbc68d
RD
26469 { ac_try='test -z "$ac_c_werror_flag"
26470 || test ! -s conftest.err'
ac1cb8d3
VS
26471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472 (eval $ac_try) 2>&5
26473 ac_status=$?
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); }; } &&
26476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478 (eval $ac_try) 2>&5
26479 ac_status=$?
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); }; }; then
26482 ac_cv_lib_Xext_XShapeQueryExtension=yes
26483else
26484 echo "$as_me: failed program was:" >&5
26485sed 's/^/| /' conftest.$ac_ext >&5
26486
26487ac_cv_lib_Xext_XShapeQueryExtension=no
26488fi
ac1cb8d3
VS
26489rm -f conftest.err conftest.$ac_objext \
26490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26491LIBS=$ac_check_lib_save_LIBS
26492fi
26493echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26494echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26495if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26496
26497 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26498 wxHAVE_XEXT_LIB=1
26499
26500fi
26501
26502
26503 if test "$wxHAVE_XEXT_LIB" = 1; then
26504 save_CFLAGS="$CFLAGS"
26505 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26506
26507 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26508echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26509 cat >conftest.$ac_ext <<_ACEOF
26510/* confdefs.h. */
26511_ACEOF
26512cat confdefs.h >>conftest.$ac_ext
26513cat >>conftest.$ac_ext <<_ACEOF
26514/* end confdefs.h. */
26515
26516 #include <X11/Xlib.h>
26517 #include <X11/extensions/shape.h>
26518
26519int
26520main ()
26521{
26522
26523 int dummy1, dummy2;
26524 XShapeQueryExtension((Display*)NULL,
26525 (int*)NULL, (int*)NULL);
26526
26527 ;
26528 return 0;
26529}
26530_ACEOF
26531rm -f conftest.$ac_objext
26532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26533 (eval $ac_compile) 2>conftest.er1
a848cd7e 26534 ac_status=$?
ac1cb8d3
VS
26535 grep -v '^ *+' conftest.er1 >conftest.err
26536 rm -f conftest.er1
26537 cat conftest.err >&5
a848cd7e
SC
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } &&
2cbbc68d
RD
26540 { ac_try='test -z "$ac_c_werror_flag"
26541 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
26547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549 (eval $ac_try) 2>&5
26550 ac_status=$?
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); }; }; then
26553
26554 cat >>confdefs.h <<\_ACEOF
26555#define HAVE_XSHAPE 1
26556_ACEOF
26557
26558 echo "$as_me:$LINENO: result: found" >&5
26559echo "${ECHO_T}found" >&6
26560
26561else
26562 echo "$as_me: failed program was:" >&5
26563sed 's/^/| /' conftest.$ac_ext >&5
26564
26565
26566 echo "$as_me:$LINENO: result: not found" >&5
26567echo "${ECHO_T}not found" >&6
26568
26569fi
ac1cb8d3 26570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26571 CFLAGS="$save_CFLAGS"
26572
26573 fi
26574 fi
26575
26576 if test "$wxUSE_MAC" = 1; then
26577 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26578echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26579 if test "$GCC" = yes; then
26580 echo "$as_me:$LINENO: result: gcc" >&5
26581echo "${ECHO_T}gcc" >&6
26582 CPPFLAGS_PASCAL="-fpascal-strings"
26583 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26584 echo "$as_me:$LINENO: result: xlc" >&5
26585echo "${ECHO_T}xlc" >&6
26586 CPPFLAGS_PASCAL="-qmacpstr"
26587 else
26588 echo "$as_me:$LINENO: result: none" >&5
26589echo "${ECHO_T}none" >&6
26590 fi
26591
26592 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26593
a848cd7e
SC
26594 TOOLKIT=MAC
26595 GUIDIST=MACX_DIST
dd21ced8 26596 WXBASEPORT="_carbon"
a848cd7e
SC
26597 fi
26598
26599 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26600 TOOLKIT=COCOA
26601 GUIDIST=COCOA_DIST
26602 fi
26603
26604 if test "$wxUSE_PM" = 1; then
26605 TOOLKIT=PM
de59c161
RD
26606 GUIDIST=PM_DIST
26607 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26608echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26609if test "${wx_cv_spbcdata+set}" = set; then
26610 echo $ECHO_N "(cached) $ECHO_C" >&6
26611else
26612
26613 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26614/* confdefs.h. */
26615_ACEOF
26616cat confdefs.h >>conftest.$ac_ext
26617cat >>conftest.$ac_ext <<_ACEOF
26618/* end confdefs.h. */
26619
26620 #define INCL_PM
26621 #include <os2.h>
26622
26623int
26624main ()
26625{
26626
26627 SPBCDATA test;
26628
26629 ;
26630 return 0;
26631}
26632_ACEOF
26633rm -f conftest.$ac_objext
26634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26635 (eval $ac_compile) 2>conftest.er1
de59c161 26636 ac_status=$?
ac1cb8d3
VS
26637 grep -v '^ *+' conftest.er1 >conftest.err
26638 rm -f conftest.er1
26639 cat conftest.err >&5
de59c161
RD
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); } &&
2cbbc68d
RD
26642 { ac_try='test -z "$ac_c_werror_flag"
26643 || test ! -s conftest.err'
ac1cb8d3
VS
26644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26645 (eval $ac_try) 2>&5
26646 ac_status=$?
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); }; } &&
26649 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26651 (eval $ac_try) 2>&5
26652 ac_status=$?
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); }; }; then
26655 wx_cv_spbcdata=yes
26656else
26657 echo "$as_me: failed program was:" >&5
26658sed 's/^/| /' conftest.$ac_ext >&5
26659
26660wx_cv_spbcdata=no
26661
26662fi
ac1cb8d3 26663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26664
26665
26666fi
26667echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26668echo "${ECHO_T}$wx_cv_spbcdata" >&6
26669
26670 if test $wx_cv_spbcdata = "yes"; then
26671 cat >>confdefs.h <<\_ACEOF
26672#define HAVE_SPBCDATA 1
26673_ACEOF
26674
26675 fi
a848cd7e
SC
26676 fi
26677
26678 if test "$TOOLKIT" = "PM" ; then
26679 TOOLKIT_DIR="os2"
26680 else
26681 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26682 fi
26683
a848cd7e 26684 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26685 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26686 WIDGET_SET=univ
a848cd7e
SC
26687 fi
26688
26689 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26690 DISTDIR="wx\$(TOOLKIT)"
26691else
26692 USE_GUI=0
26693
26694 TOOLKIT_DIR="base"
26695
26696 if test "$USE_WIN32" = 1 ; then
a848cd7e 26697 TOOLKIT="MSW"
a848cd7e
SC
26698 fi
26699
a848cd7e
SC
26700 GUIDIST="BASE_DIST"
26701 DISTDIR="wxBase"
26702fi
26703
26704
26705
26706
26707IODBC_C_SRC=""
26708
26709
26710if test "$TOOLKIT" != "MSW" ; then
26711
26712 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26713
26714 if test "${ac_cv_header_sql_h+set}" = set; then
26715 echo "$as_me:$LINENO: checking for sql.h" >&5
26716echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26717if test "${ac_cv_header_sql_h+set}" = set; then
26718 echo $ECHO_N "(cached) $ECHO_C" >&6
26719fi
26720echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26721echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26722else
26723 # Is the header compilable?
26724echo "$as_me:$LINENO: checking sql.h usability" >&5
26725echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26726cat >conftest.$ac_ext <<_ACEOF
26727/* confdefs.h. */
26728_ACEOF
26729cat confdefs.h >>conftest.$ac_ext
26730cat >>conftest.$ac_ext <<_ACEOF
26731/* end confdefs.h. */
26732$ac_includes_default
26733#include <sql.h>
26734_ACEOF
26735rm -f conftest.$ac_objext
26736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26737 (eval $ac_compile) 2>conftest.er1
a848cd7e 26738 ac_status=$?
ac1cb8d3
VS
26739 grep -v '^ *+' conftest.er1 >conftest.err
26740 rm -f conftest.er1
26741 cat conftest.err >&5
a848cd7e
SC
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); } &&
2cbbc68d
RD
26744 { ac_try='test -z "$ac_c_werror_flag"
26745 || test ! -s conftest.err'
ac1cb8d3
VS
26746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747 (eval $ac_try) 2>&5
26748 ac_status=$?
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); }; } &&
26751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753 (eval $ac_try) 2>&5
26754 ac_status=$?
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; }; then
26757 ac_header_compiler=yes
26758else
26759 echo "$as_me: failed program was:" >&5
26760sed 's/^/| /' conftest.$ac_ext >&5
26761
26762ac_header_compiler=no
26763fi
ac1cb8d3 26764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26765echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26766echo "${ECHO_T}$ac_header_compiler" >&6
26767
26768# Is the header present?
26769echo "$as_me:$LINENO: checking sql.h presence" >&5
26770echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26771cat >conftest.$ac_ext <<_ACEOF
26772/* confdefs.h. */
26773_ACEOF
26774cat confdefs.h >>conftest.$ac_ext
26775cat >>conftest.$ac_ext <<_ACEOF
26776/* end confdefs.h. */
26777#include <sql.h>
26778_ACEOF
26779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26781 ac_status=$?
26782 grep -v '^ *+' conftest.er1 >conftest.err
26783 rm -f conftest.er1
26784 cat conftest.err >&5
26785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786 (exit $ac_status); } >/dev/null; then
26787 if test -s conftest.err; then
26788 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26790 else
26791 ac_cpp_err=
26792 fi
26793else
26794 ac_cpp_err=yes
26795fi
26796if test -z "$ac_cpp_err"; then
26797 ac_header_preproc=yes
26798else
26799 echo "$as_me: failed program was:" >&5
26800sed 's/^/| /' conftest.$ac_ext >&5
26801
26802 ac_header_preproc=no
26803fi
26804rm -f conftest.err conftest.$ac_ext
26805echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26806echo "${ECHO_T}$ac_header_preproc" >&6
26807
26808# So? What about this header?
ac1cb8d3
VS
26809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26810 yes:no: )
a848cd7e
SC
26811 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26812echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26813 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26814echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26815 ac_header_preproc=yes
a848cd7e 26816 ;;
ac1cb8d3 26817 no:yes:* )
a848cd7e
SC
26818 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26819echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26820 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26821echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26822 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26823echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26824 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26825echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26826 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26827echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26828 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26829echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26830 (
26831 cat <<\_ASBOX
ac1cb8d3
VS
26832## ----------------------------------------- ##
26833## Report this to wx-dev@lists.wxwidgets.org ##
26834## ----------------------------------------- ##
a848cd7e
SC
26835_ASBOX
26836 ) |
26837 sed "s/^/$as_me: WARNING: /" >&2
26838 ;;
26839esac
26840echo "$as_me:$LINENO: checking for sql.h" >&5
26841echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26842if test "${ac_cv_header_sql_h+set}" = set; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26844else
26845 ac_cv_header_sql_h=$ac_header_preproc
26846fi
26847echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26848echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26849
26850fi
26851if test $ac_cv_header_sql_h = yes; then
26852 found_sql_h=1
26853fi
26854
26855
26856 if test "x$found_sql_h" = "x1" ; then
26857 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26858echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26859if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26860 echo $ECHO_N "(cached) $ECHO_C" >&6
26861else
26862 ac_check_lib_save_LIBS=$LIBS
26863LIBS="-liodbc $LIBS"
26864cat >conftest.$ac_ext <<_ACEOF
26865/* confdefs.h. */
26866_ACEOF
26867cat confdefs.h >>conftest.$ac_ext
26868cat >>conftest.$ac_ext <<_ACEOF
26869/* end confdefs.h. */
26870
26871/* Override any gcc2 internal prototype to avoid an error. */
26872#ifdef __cplusplus
26873extern "C"
26874#endif
26875/* We use char because int might match the return type of a gcc2
26876 builtin and then its argument prototype would still apply. */
26877char SQLAllocEnv ();
26878int
26879main ()
26880{
26881SQLAllocEnv ();
26882 ;
26883 return 0;
26884}
26885_ACEOF
26886rm -f conftest.$ac_objext conftest$ac_exeext
26887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26888 (eval $ac_link) 2>conftest.er1
a848cd7e 26889 ac_status=$?
ac1cb8d3
VS
26890 grep -v '^ *+' conftest.er1 >conftest.err
26891 rm -f conftest.er1
26892 cat conftest.err >&5
a848cd7e
SC
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); } &&
2cbbc68d
RD
26895 { ac_try='test -z "$ac_c_werror_flag"
26896 || test ! -s conftest.err'
ac1cb8d3
VS
26897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26898 (eval $ac_try) 2>&5
26899 ac_status=$?
26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901 (exit $ac_status); }; } &&
26902 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26904 (eval $ac_try) 2>&5
26905 ac_status=$?
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); }; }; then
26908 ac_cv_lib_iodbc_SQLAllocEnv=yes
26909else
26910 echo "$as_me: failed program was:" >&5
26911sed 's/^/| /' conftest.$ac_ext >&5
26912
26913ac_cv_lib_iodbc_SQLAllocEnv=no
26914fi
ac1cb8d3
VS
26915rm -f conftest.err conftest.$ac_objext \
26916 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26917LIBS=$ac_check_lib_save_LIBS
26918fi
26919echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26920echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26921if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26922 ODBC_LINK=" -liodbc"
26923else
26924
26925 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26926echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26927if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26928 echo $ECHO_N "(cached) $ECHO_C" >&6
26929else
26930 ac_check_lib_save_LIBS=$LIBS
26931LIBS="-lunixodbc $LIBS"
26932cat >conftest.$ac_ext <<_ACEOF
26933/* confdefs.h. */
26934_ACEOF
26935cat confdefs.h >>conftest.$ac_ext
26936cat >>conftest.$ac_ext <<_ACEOF
26937/* end confdefs.h. */
26938
26939/* Override any gcc2 internal prototype to avoid an error. */
26940#ifdef __cplusplus
26941extern "C"
26942#endif
26943/* We use char because int might match the return type of a gcc2
26944 builtin and then its argument prototype would still apply. */
26945char SQLAllocEnv ();
26946int
26947main ()
26948{
26949SQLAllocEnv ();
26950 ;
26951 return 0;
26952}
26953_ACEOF
26954rm -f conftest.$ac_objext conftest$ac_exeext
26955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26956 (eval $ac_link) 2>conftest.er1
a848cd7e 26957 ac_status=$?
ac1cb8d3
VS
26958 grep -v '^ *+' conftest.er1 >conftest.err
26959 rm -f conftest.er1
26960 cat conftest.err >&5
a848cd7e
SC
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); } &&
2cbbc68d
RD
26963 { ac_try='test -z "$ac_c_werror_flag"
26964 || test ! -s conftest.err'
ac1cb8d3
VS
26965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26966 (eval $ac_try) 2>&5
26967 ac_status=$?
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); }; } &&
26970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26972 (eval $ac_try) 2>&5
26973 ac_status=$?
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); }; }; then
26976 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26977else
26978 echo "$as_me: failed program was:" >&5
26979sed 's/^/| /' conftest.$ac_ext >&5
26980
26981ac_cv_lib_unixodbc_SQLAllocEnv=no
26982fi
ac1cb8d3
VS
26983rm -f conftest.err conftest.$ac_objext \
26984 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26985LIBS=$ac_check_lib_save_LIBS
26986fi
26987echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26988echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26989if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26990 ODBC_LINK=" -lunixodbc"
26991else
26992
26993 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26994echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26995if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26997else
26998 ac_check_lib_save_LIBS=$LIBS
26999LIBS="-lodbc $LIBS"
27000cat >conftest.$ac_ext <<_ACEOF
27001/* confdefs.h. */
27002_ACEOF
27003cat confdefs.h >>conftest.$ac_ext
27004cat >>conftest.$ac_ext <<_ACEOF
27005/* end confdefs.h. */
27006
27007/* Override any gcc2 internal prototype to avoid an error. */
27008#ifdef __cplusplus
27009extern "C"
27010#endif
27011/* We use char because int might match the return type of a gcc2
27012 builtin and then its argument prototype would still apply. */
27013char SQLAllocEnv ();
27014int
27015main ()
27016{
27017SQLAllocEnv ();
27018 ;
27019 return 0;
27020}
27021_ACEOF
27022rm -f conftest.$ac_objext conftest$ac_exeext
27023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27024 (eval $ac_link) 2>conftest.er1
a848cd7e 27025 ac_status=$?
ac1cb8d3
VS
27026 grep -v '^ *+' conftest.er1 >conftest.err
27027 rm -f conftest.er1
27028 cat conftest.err >&5
a848cd7e
SC
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } &&
2cbbc68d
RD
27031 { ac_try='test -z "$ac_c_werror_flag"
27032 || test ! -s conftest.err'
ac1cb8d3
VS
27033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034 (eval $ac_try) 2>&5
27035 ac_status=$?
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; } &&
27038 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040 (eval $ac_try) 2>&5
27041 ac_status=$?
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; }; then
27044 ac_cv_lib_odbc_SQLAllocEnv=yes
27045else
27046 echo "$as_me: failed program was:" >&5
27047sed 's/^/| /' conftest.$ac_ext >&5
27048
27049ac_cv_lib_odbc_SQLAllocEnv=no
27050fi
ac1cb8d3
VS
27051rm -f conftest.err conftest.$ac_objext \
27052 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27053LIBS=$ac_check_lib_save_LIBS
27054fi
27055echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27056echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27057if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27058 ODBC_LINK=" -lodbc"
27059fi
27060
27061
27062fi
27063
27064
27065fi
27066
27067 fi
27068 if test "x$ODBC_LINK" = "x" ; then
27069 if test "$wxUSE_ODBC" = "sys" ; then
27070 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27071echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27072 { (exit 1); exit 1; }; }
27073 else
27074 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27075echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27076 wxUSE_ODBC=builtin
27077 fi
27078 else
27079 wxUSE_ODBC=sys
27080 fi
27081 fi
27082 if test "$wxUSE_ODBC" != "no" ; then
27083 cat >>confdefs.h <<\_ACEOF
27084#define wxUSE_ODBC 1
27085_ACEOF
27086
27087 if test "$wxUSE_ODBC" = "builtin" ; then
27088 cat >>confdefs.h <<\_ACEOF
27089#define wxUSE_BUILTIN_IODBC 1
27090_ACEOF
27091
27092 fi
27093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27094
27095 WXODBCFLAG="-D_IODBC_"
27096 fi
27097fi
27098
a848cd7e 27099
01cb68df 27100
a848cd7e 27101if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27102 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27103 echo "$as_me:$LINENO: checking for Xinerama" >&5
27104echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27105
27106ac_find_libraries=
27107for ac_dir in $SEARCH_LIB /usr/lib;
27108 do
27109 for ac_extension in a so sl dylib; do
27110 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27111 ac_find_libraries=$ac_dir
27112 break 2
27113 fi
27114 done
27115 done
27116
27117 if test "$ac_find_libraries" != "" ; then
27118
27119 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27120 result=$?
27121 if test $result = 0; then
27122 ac_path_to_link=""
27123 else
27124 ac_path_to_link=" -L$ac_find_libraries"
27125 fi
27126
27127 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27128 LDFLAGS="$LDFLAGS $ac_path_to_link"
27129 fi
27130 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27131 echo "$as_me:$LINENO: result: yes" >&5
27132echo "${ECHO_T}yes" >&6
27133
27134 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27135echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27136
27137ac_find_libraries=
27138for ac_dir in $SEARCH_LIB /usr/lib;
27139 do
27140 for ac_extension in a so sl dylib; do
27141 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27142 ac_find_libraries=$ac_dir
27143 break 2
27144 fi
27145 done
27146 done
27147
27148 if test "$ac_find_libraries" != "" ; then
27149 echo "$as_me:$LINENO: result: yes" >&5
27150echo "${ECHO_T}yes" >&6
27151
27152for ac_header in X11/extensions/xf86vmode.h
27153do
27154as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27155echo "$as_me:$LINENO: checking for $ac_header" >&5
27156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27157if eval "test \"\${$as_ac_Header+set}\" = set"; then
27158 echo $ECHO_N "(cached) $ECHO_C" >&6
27159else
27160 cat >conftest.$ac_ext <<_ACEOF
27161/* confdefs.h. */
27162_ACEOF
27163cat confdefs.h >>conftest.$ac_ext
27164cat >>conftest.$ac_ext <<_ACEOF
27165/* end confdefs.h. */
27166
27167 #if HAVE_X11_XLIB_H
27168 #include <X11/Xlib.h>
27169 #endif
27170
27171
27172#include <$ac_header>
27173_ACEOF
27174rm -f conftest.$ac_objext
27175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27176 (eval $ac_compile) 2>conftest.er1
a848cd7e 27177 ac_status=$?
ac1cb8d3
VS
27178 grep -v '^ *+' conftest.er1 >conftest.err
27179 rm -f conftest.er1
27180 cat conftest.err >&5
a848cd7e
SC
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } &&
2cbbc68d
RD
27183 { ac_try='test -z "$ac_c_werror_flag"
27184 || test ! -s conftest.err'
ac1cb8d3
VS
27185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186 (eval $ac_try) 2>&5
27187 ac_status=$?
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; } &&
27190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27193 ac_status=$?
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; }; then
27196 eval "$as_ac_Header=yes"
27197else
27198 echo "$as_me: failed program was:" >&5
27199sed 's/^/| /' conftest.$ac_ext >&5
27200
27201eval "$as_ac_Header=no"
27202fi
ac1cb8d3 27203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27204fi
27205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27207if test `eval echo '${'$as_ac_Header'}'` = yes; then
27208 cat >>confdefs.h <<_ACEOF
27209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27210_ACEOF
27211
27212 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27213
27214fi
27215
27216done
27217
27218 else
27219 echo "$as_me:$LINENO: result: no" >&5
27220echo "${ECHO_T}no" >&6
27221 fi
27222
27223 else
27224 echo "$as_me:$LINENO: result: no" >&5
27225echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27226 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27227echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27228 wxUSE_DISPLAY="no"
27229 fi
01cb68df
RG
27230 elif test "$wxUSE_MSW" = 1; then
27231
27232
27233for ac_header in multimon.h ddraw.h
27234do
27235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27236if eval "test \"\${$as_ac_Header+set}\" = set"; then
27237 echo "$as_me:$LINENO: checking for $ac_header" >&5
27238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27239if eval "test \"\${$as_ac_Header+set}\" = set"; then
27240 echo $ECHO_N "(cached) $ECHO_C" >&6
27241fi
27242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27244else
27245 # Is the header compilable?
27246echo "$as_me:$LINENO: checking $ac_header usability" >&5
27247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27248cat >conftest.$ac_ext <<_ACEOF
27249/* confdefs.h. */
27250_ACEOF
27251cat confdefs.h >>conftest.$ac_ext
27252cat >>conftest.$ac_ext <<_ACEOF
27253/* end confdefs.h. */
27254$ac_includes_default
27255#include <$ac_header>
27256_ACEOF
27257rm -f conftest.$ac_objext
27258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27259 (eval $ac_compile) 2>conftest.er1
01cb68df 27260 ac_status=$?
ac1cb8d3
VS
27261 grep -v '^ *+' conftest.er1 >conftest.err
27262 rm -f conftest.er1
27263 cat conftest.err >&5
01cb68df
RG
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); } &&
2cbbc68d
RD
27266 { ac_try='test -z "$ac_c_werror_flag"
27267 || test ! -s conftest.err'
ac1cb8d3
VS
27268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269 (eval $ac_try) 2>&5
27270 ac_status=$?
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); }; } &&
27273 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27275 (eval $ac_try) 2>&5
27276 ac_status=$?
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); }; }; then
27279 ac_header_compiler=yes
27280else
27281 echo "$as_me: failed program was:" >&5
27282sed 's/^/| /' conftest.$ac_ext >&5
27283
27284ac_header_compiler=no
27285fi
ac1cb8d3 27286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27288echo "${ECHO_T}$ac_header_compiler" >&6
27289
27290# Is the header present?
27291echo "$as_me:$LINENO: checking $ac_header presence" >&5
27292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27293cat >conftest.$ac_ext <<_ACEOF
27294/* confdefs.h. */
27295_ACEOF
27296cat confdefs.h >>conftest.$ac_ext
27297cat >>conftest.$ac_ext <<_ACEOF
27298/* end confdefs.h. */
27299#include <$ac_header>
27300_ACEOF
27301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27303 ac_status=$?
27304 grep -v '^ *+' conftest.er1 >conftest.err
27305 rm -f conftest.er1
27306 cat conftest.err >&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); } >/dev/null; then
27309 if test -s conftest.err; then
27310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27312 else
27313 ac_cpp_err=
27314 fi
27315else
27316 ac_cpp_err=yes
27317fi
27318if test -z "$ac_cpp_err"; then
27319 ac_header_preproc=yes
27320else
27321 echo "$as_me: failed program was:" >&5
27322sed 's/^/| /' conftest.$ac_ext >&5
27323
27324 ac_header_preproc=no
27325fi
27326rm -f conftest.err conftest.$ac_ext
27327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27328echo "${ECHO_T}$ac_header_preproc" >&6
27329
27330# So? What about this header?
ac1cb8d3
VS
27331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27332 yes:no: )
01cb68df
RG
27333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27337 ac_header_preproc=yes
01cb68df 27338 ;;
ac1cb8d3 27339 no:yes:* )
01cb68df
RG
27340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27352 (
27353 cat <<\_ASBOX
ac1cb8d3
VS
27354## ----------------------------------------- ##
27355## Report this to wx-dev@lists.wxwidgets.org ##
27356## ----------------------------------------- ##
01cb68df
RG
27357_ASBOX
27358 ) |
27359 sed "s/^/$as_me: WARNING: /" >&2
27360 ;;
27361esac
27362echo "$as_me:$LINENO: checking for $ac_header" >&5
27363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27364if eval "test \"\${$as_ac_Header+set}\" = set"; then
27365 echo $ECHO_N "(cached) $ECHO_C" >&6
27366else
ac1cb8d3 27367 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27368fi
27369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27371
27372fi
27373if test `eval echo '${'$as_ac_Header'}'` = yes; then
27374 cat >>confdefs.h <<_ACEOF
27375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27376_ACEOF
27377
27378else
27379
27380 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27381 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27382echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27383
27384fi
27385
27386done
27387
a848cd7e
SC
27388 fi
27389fi
27390
27391
27392USE_OPENGL=0
27393if test "$wxUSE_OPENGL" = "yes"; then
27394 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27395 OPENGL_LIBS="-framework OpenGL -framework AGL"
27396 elif test "$wxUSE_MSW" = 1; then
27397 OPENGL_LIBS="-lopengl32 -lglu32"
27398 else
27399
27400
27401ac_find_includes=
27402for ac_dir in $SEARCH_INCLUDE /usr/include;
27403 do
27404 if test -f "$ac_dir/GL/gl.h"; then
27405 ac_find_includes=$ac_dir
27406 break
27407 fi
27408 done
27409
27410 if test "$ac_find_includes" != "" ; then
27411 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27412echo "${ECHO_T}found in $ac_find_includes" >&6
27413
27414 if test "x$ac_find_includes" = "x/usr/include"; then
27415 ac_path_to_include=""
27416 else
27417 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27418 result=$?
27419 if test $result = 0; then
27420 ac_path_to_include=""
27421 else
27422 ac_path_to_include=" -I$ac_find_includes"
27423 fi
27424 fi
27425
27426 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27427 fi
27428
27429 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27430 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27431echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27432if test "${ac_cv_header_GL_gl_h+set}" = set; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27434fi
27435echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27436echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27437else
27438 # Is the header compilable?
27439echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27440echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27441cat >conftest.$ac_ext <<_ACEOF
27442/* confdefs.h. */
27443_ACEOF
27444cat confdefs.h >>conftest.$ac_ext
27445cat >>conftest.$ac_ext <<_ACEOF
27446/* end confdefs.h. */
27447$ac_includes_default
27448#include <GL/gl.h>
27449_ACEOF
27450rm -f conftest.$ac_objext
27451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27452 (eval $ac_compile) 2>conftest.er1
a848cd7e 27453 ac_status=$?
ac1cb8d3
VS
27454 grep -v '^ *+' conftest.er1 >conftest.err
27455 rm -f conftest.er1
27456 cat conftest.err >&5
a848cd7e
SC
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } &&
2cbbc68d
RD
27459 { ac_try='test -z "$ac_c_werror_flag"
27460 || test ! -s conftest.err'
ac1cb8d3
VS
27461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462 (eval $ac_try) 2>&5
27463 ac_status=$?
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); }; } &&
27466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27469 ac_status=$?
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; }; then
27472 ac_header_compiler=yes
27473else
27474 echo "$as_me: failed program was:" >&5
27475sed 's/^/| /' conftest.$ac_ext >&5
27476
27477ac_header_compiler=no
27478fi
ac1cb8d3 27479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27481echo "${ECHO_T}$ac_header_compiler" >&6
27482
27483# Is the header present?
27484echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27485echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27486cat >conftest.$ac_ext <<_ACEOF
27487/* confdefs.h. */
27488_ACEOF
27489cat confdefs.h >>conftest.$ac_ext
27490cat >>conftest.$ac_ext <<_ACEOF
27491/* end confdefs.h. */
27492#include <GL/gl.h>
27493_ACEOF
27494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27496 ac_status=$?
27497 grep -v '^ *+' conftest.er1 >conftest.err
27498 rm -f conftest.er1
27499 cat conftest.err >&5
27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); } >/dev/null; then
27502 if test -s conftest.err; then
27503 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27505 else
27506 ac_cpp_err=
27507 fi
27508else
27509 ac_cpp_err=yes
27510fi
27511if test -z "$ac_cpp_err"; then
27512 ac_header_preproc=yes
27513else
27514 echo "$as_me: failed program was:" >&5
27515sed 's/^/| /' conftest.$ac_ext >&5
27516
27517 ac_header_preproc=no
27518fi
27519rm -f conftest.err conftest.$ac_ext
27520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27521echo "${ECHO_T}$ac_header_preproc" >&6
27522
27523# So? What about this header?
ac1cb8d3
VS
27524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27525 yes:no: )
a848cd7e
SC
27526 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27527echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27528 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27529echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27530 ac_header_preproc=yes
a848cd7e 27531 ;;
ac1cb8d3 27532 no:yes:* )
a848cd7e
SC
27533 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27534echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27535 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27536echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27537 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27538echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27539 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27540echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27541 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27542echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27543 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27544echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27545 (
27546 cat <<\_ASBOX
ac1cb8d3
VS
27547## ----------------------------------------- ##
27548## Report this to wx-dev@lists.wxwidgets.org ##
27549## ----------------------------------------- ##
a848cd7e
SC
27550_ASBOX
27551 ) |
27552 sed "s/^/$as_me: WARNING: /" >&2
27553 ;;
27554esac
27555echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27556echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27557if test "${ac_cv_header_GL_gl_h+set}" = set; then
27558 echo $ECHO_N "(cached) $ECHO_C" >&6
27559else
27560 ac_cv_header_GL_gl_h=$ac_header_preproc
27561fi
27562echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27563echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27564
27565fi
27566if test $ac_cv_header_GL_gl_h = yes; then
27567
27568 found_gl=0
27569
27570 echo "$as_me:$LINENO: checking for -lGL" >&5
27571echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27572
27573ac_find_libraries=
27574for ac_dir in $SEARCH_LIB /usr/lib;
27575 do
27576 for ac_extension in a so sl dylib; do
27577 if test -f "$ac_dir/libGL.$ac_extension"; then
27578 ac_find_libraries=$ac_dir
27579 break 2
27580 fi
27581 done
27582 done
27583
27584 if test "$ac_find_libraries" != "" ; then
27585
27586 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27587 result=$?
27588 if test $result = 0; then
27589 ac_path_to_link=""
27590 else
27591 ac_path_to_link=" -L$ac_find_libraries"
27592 fi
27593
27594 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27595 LDFLAGS_GL="$ac_path_to_link"
27596 fi
27597
27598
27599ac_find_libraries=
27600for ac_dir in $SEARCH_LIB /usr/lib;
27601 do
27602 for ac_extension in a so sl dylib; do
27603 if test -f "$ac_dir/libGLU.$ac_extension"; then
27604 ac_find_libraries=$ac_dir
27605 break 2
27606 fi
27607 done
27608 done
27609
27610 if test "$ac_find_libraries" != "" ; then
27611
27612 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27613 result=$?
27614 if test $result = 0; then
27615 ac_path_to_link=""
27616 else
27617 ac_path_to_link=" -L$ac_find_libraries"
27618 fi
27619
27620 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27621 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27622 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27623 fi
27624
27625 found_gl=1
27626 OPENGL_LIBS="-lGL -lGLU"
27627 echo "$as_me:$LINENO: result: yes" >&5
27628echo "${ECHO_T}yes" >&6
27629 fi
27630 fi
27631
27632 if test "$found_gl" != 1; then
27633 echo "$as_me:$LINENO: result: no" >&5
27634echo "${ECHO_T}no" >&6
27635 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27636echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27637
27638ac_find_libraries=
27639for ac_dir in $SEARCH_LIB /usr/lib;
27640 do
27641 for ac_extension in a so sl dylib; do
27642 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27643 ac_find_libraries=$ac_dir
27644 break 2
27645 fi
27646 done
27647 done
27648
27649 if test "$ac_find_libraries" != "" ; then
27650
27651 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27652 result=$?
27653 if test $result = 0; then
27654 ac_path_to_link=""
27655 else
27656 ac_path_to_link=" -L$ac_find_libraries"
27657 fi
27658
27659 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27660 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27661 echo "$as_me:$LINENO: result: yes" >&5
27662echo "${ECHO_T}yes" >&6
27663 else
27664 echo "$as_me:$LINENO: result: no" >&5
27665echo "${ECHO_T}no" >&6
27666 fi
27667 fi
27668
27669fi
27670
27671
27672
27673 if test "x$OPENGL_LIBS" = "x"; then
27674 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27675echo "$as_me: error: OpenGL libraries not available" >&2;}
27676 { (exit 1); exit 1; }; }
27677 fi
27678 fi
27679
27680 if test "$wxUSE_OPENGL" = "yes"; then
27681 USE_OPENGL=1
27682 cat >>confdefs.h <<\_ACEOF
27683#define wxUSE_OPENGL 1
27684_ACEOF
27685
27686 cat >>confdefs.h <<\_ACEOF
27687#define wxUSE_GLCANVAS 1
27688_ACEOF
27689
27690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27691 fi
27692fi
27693
a848cd7e
SC
27694
27695if test -n "$TOOLKIT" ; then
27696 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27697fi
27698
a848cd7e
SC
27699
27700
27701if test "$wxUSE_SHARED" = "yes"; then
27702 case "${host}" in
27703 *-pc-msdosdjgpp )
27704 wxUSE_SHARED=no
27705 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27706echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27707 ;;
27708 esac
27709fi
27710
a848cd7e 27711if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27712
27713
27714 found_versioning=no
27715
27716
27717 if test $found_versioning = no ; then
27718 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27719echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27720if test "${wx_cv_version_script+set}" = set; then
27721 echo $ECHO_N "(cached) $ECHO_C" >&6
27722else
27723
27724 echo "VER_1 { *; };" >conftest.sym
27725 echo "int main() { return 0; }" >conftest.cpp
27726
27727 if { ac_try='
27728 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27729 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731 (eval $ac_try) 2>&5
27732 ac_status=$?
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); }; } ; then
27735 if test -s conftest.stderr ; then
27736 wx_cv_version_script=no
27737 else
27738 wx_cv_version_script=yes
27739 fi
27740 else
27741 wx_cv_version_script=no
27742 fi
27743 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27744
27745fi
27746echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27747echo "${ECHO_T}$wx_cv_version_script" >&6
27748 if test $wx_cv_version_script = yes ; then
27749 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27750 fi
27751 fi
27752
27753
27754 case "${host}" in
27755 *-*-linux* | *-*-gnu* )
27756 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27757 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27758 ;;
27759
27760 *-*-solaris2* )
27761 if test "$GCC" = yes ; then
27762 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27763
27764 saveLdflags="$LDFLAGS"
27765 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27766 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27767echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27768 cat >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
27775int
27776main ()
27777{
27778
27779 ;
27780 return 0;
27781}
27782_ACEOF
27783rm -f conftest.$ac_objext conftest$ac_exeext
27784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27785 (eval $ac_link) 2>conftest.er1
a848cd7e 27786 ac_status=$?
ac1cb8d3
VS
27787 grep -v '^ *+' conftest.er1 >conftest.err
27788 rm -f conftest.er1
27789 cat conftest.err >&5
a848cd7e
SC
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); } &&
2cbbc68d
RD
27792 { ac_try='test -z "$ac_c_werror_flag"
27793 || test ! -s conftest.err'
ac1cb8d3
VS
27794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27795 (eval $ac_try) 2>&5
27796 ac_status=$?
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); }; } &&
27799 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27801 (eval $ac_try) 2>&5
27802 ac_status=$?
27803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804 (exit $ac_status); }; }; then
27805
27806 echo "$as_me:$LINENO: result: yes" >&5
27807echo "${ECHO_T}yes" >&6
27808 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27809 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27810
27811else
27812 echo "$as_me: failed program was:" >&5
27813sed 's/^/| /' conftest.$ac_ext >&5
27814
27815
27816 echo "$as_me:$LINENO: result: no" >&5
27817echo "${ECHO_T}no" >&6
27818 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27819echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27820 LDFLAGS="$saveLdflags -Wl,-R,/"
27821 cat >conftest.$ac_ext <<_ACEOF
27822/* confdefs.h. */
27823_ACEOF
27824cat confdefs.h >>conftest.$ac_ext
27825cat >>conftest.$ac_ext <<_ACEOF
27826/* end confdefs.h. */
27827
27828int
27829main ()
27830{
27831
27832 ;
27833 return 0;
27834}
27835_ACEOF
27836rm -f conftest.$ac_objext conftest$ac_exeext
27837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27838 (eval $ac_link) 2>conftest.er1
a848cd7e 27839 ac_status=$?
ac1cb8d3
VS
27840 grep -v '^ *+' conftest.er1 >conftest.err
27841 rm -f conftest.er1
27842 cat conftest.err >&5
a848cd7e
SC
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); } &&
2cbbc68d
RD
27845 { ac_try='test -z "$ac_c_werror_flag"
27846 || test ! -s conftest.err'
ac1cb8d3
VS
27847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27848 (eval $ac_try) 2>&5
27849 ac_status=$?
27850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851 (exit $ac_status); }; } &&
27852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854 (eval $ac_try) 2>&5
27855 ac_status=$?
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); }; }; then
27858
ffa0583f 27859 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 27860echo "${ECHO_T}yes" >&6
ffa0583f
RL
27861 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27862 WXCONFIG_RPATH="-Wl,-R,\$libdir"
27863
a848cd7e
SC
27864else
27865 echo "$as_me: failed program was:" >&5
27866sed 's/^/| /' conftest.$ac_ext >&5
27867
27868
27869 echo "$as_me:$LINENO: result: no" >&5
27870echo "${ECHO_T}no" >&6
27871
27872fi
ac1cb8d3
VS
27873rm -f conftest.err conftest.$ac_objext \
27874 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27875
27876fi
ac1cb8d3
VS
27877rm -f conftest.err conftest.$ac_objext \
27878 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27879 LDFLAGS="$saveLdflags"
27880 else
a848cd7e 27881 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 27882 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
27883 fi
27884 ;;
27885
27886 powerpc-*-darwin* )
27887 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27888 cat <<EOF >change-install-names
27889#!/bin/sh
27890libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27891inst_cmd="install_name_tool "
27892for i in \${libnames} ; do
27893 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27894done
27895\${inst_cmd} \${3}
27896EOF
27897 chmod +x change-install-names
27898 ;;
27899
27900 *-*-cygwin* | *-*-mingw32* )
27901 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27902 ;;
27903
27904 esac
ceec2216 27905
ffa0583f
RL
27906 if test $wxUSE_RPATH = "no"; then
27907 SAMPLES_RPATH_FLAG=''
27908 SAMPLES_RPATH_POSTLINK=''
27909 WXCONFIG_RPATH=''
27910 fi
27911
27912 SHARED=1
27913
27914else
27915
ceec2216
RL
27916 config_linkage_component="-static"
27917 SHARED=0
ffa0583f 27918
ceec2216 27919fi
a848cd7e 27920
a848cd7e 27921
ceec2216
RL
27922UNICODE=0
27923lib_unicode_suffix=
27924WX_CHARTYPE="ansi"
27925if test "$wxUSE_UNICODE" = "yes"; then
27926 lib_unicode_suffix=u
27927 WX_CHARTYPE="unicode"
27928 UNICODE=1
a848cd7e
SC
27929fi
27930
ceec2216
RL
27931lib_debug_suffix=
27932WX_DEBUGTYPE="release"
27933DEBUG_FLAG=0
27934if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27935 lib_debug_suffix=d
27936 WX_DEBUGTYPE="debug"
27937 DEBUG_FLAG=1
27938fi
a848cd7e 27939
ceec2216
RL
27940WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
27941WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 27942
ceec2216
RL
27943DEBUG_INFO=0
27944if test "$wxUSE_DEBUG_INFO" = "yes"; then
27945 DEBUG_INFO=1
27946fi
a848cd7e 27947
ceec2216 27948WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 27949
ceec2216 27950TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 27951
ceec2216 27952TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 27953
ceec2216
RL
27954if test "$cross_compiling" = "yes"; then
27955 HOST_SUFFIX="-$host_alias"
27956 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
27957 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
27958fi
27959
dd21ced8 27960WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
27961WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
27962
27963
27964
a848cd7e 27965if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
27966 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
27967 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 27968
a848cd7e 27969 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
27970
27971 # Extract the first word of "Rez", so it can be a program name with args.
27972set dummy Rez; ac_word=$2
27973echo "$as_me:$LINENO: checking for $ac_word" >&5
27974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27975if test "${ac_cv_prog_RESCOMP+set}" = set; then
27976 echo $ECHO_N "(cached) $ECHO_C" >&6
27977else
27978 if test -n "$RESCOMP"; then
27979 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27980else
27981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27982for as_dir in $PATH
27983do
27984 IFS=$as_save_IFS
27985 test -z "$as_dir" && as_dir=.
27986 for ac_exec_ext in '' $ac_executable_extensions; do
27987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27988 ac_cv_prog_RESCOMP="Rez"
27989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27990 break 2
27991 fi
27992done
27993done
27994
27995 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27996fi
27997fi
27998RESCOMP=$ac_cv_prog_RESCOMP
27999if test -n "$RESCOMP"; then
28000 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28001echo "${ECHO_T}$RESCOMP" >&6
28002else
28003 echo "$as_me:$LINENO: result: no" >&5
28004echo "${ECHO_T}no" >&6
28005fi
28006
28007 # Extract the first word of "DeRez", so it can be a program name with args.
28008set dummy DeRez; ac_word=$2
28009echo "$as_me:$LINENO: checking for $ac_word" >&5
28010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28011if test "${ac_cv_prog_DEREZ+set}" = set; then
28012 echo $ECHO_N "(cached) $ECHO_C" >&6
28013else
28014 if test -n "$DEREZ"; then
28015 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28016else
28017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28018for as_dir in $PATH
28019do
28020 IFS=$as_save_IFS
28021 test -z "$as_dir" && as_dir=.
28022 for ac_exec_ext in '' $ac_executable_extensions; do
28023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28024 ac_cv_prog_DEREZ="DeRez"
28025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28026 break 2
28027 fi
28028done
28029done
28030
28031 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28032fi
28033fi
28034DEREZ=$ac_cv_prog_DEREZ
28035if test -n "$DEREZ"; then
28036 echo "$as_me:$LINENO: result: $DEREZ" >&5
28037echo "${ECHO_T}$DEREZ" >&6
28038else
28039 echo "$as_me:$LINENO: result: no" >&5
28040echo "${ECHO_T}no" >&6
28041fi
28042
28043 # Extract the first word of "SetFile", so it can be a program name with args.
28044set dummy SetFile; ac_word=$2
28045echo "$as_me:$LINENO: checking for $ac_word" >&5
28046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28047if test "${ac_cv_prog_SETFILE+set}" = set; then
28048 echo $ECHO_N "(cached) $ECHO_C" >&6
28049else
28050 if test -n "$SETFILE"; then
28051 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28052else
28053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28054for as_dir in $PATH
28055do
28056 IFS=$as_save_IFS
28057 test -z "$as_dir" && as_dir=.
28058 for ac_exec_ext in '' $ac_executable_extensions; do
28059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28060 ac_cv_prog_SETFILE="SetFile"
28061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28062 break 2
28063 fi
28064done
28065done
28066
28067 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28068fi
28069fi
28070SETFILE=$ac_cv_prog_SETFILE
28071if test -n "$SETFILE"; then
28072 echo "$as_me:$LINENO: result: $SETFILE" >&5
28073echo "${ECHO_T}$SETFILE" >&6
28074else
28075 echo "$as_me:$LINENO: result: no" >&5
28076echo "${ECHO_T}no" >&6
28077fi
28078
28079
28080 MACSETFILE="\$(SETFILE)"
28081
28082 if test "$wxUSE_MAC" = 1; then
28083 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28084
28085 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28086 else
28087 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28088 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28089 fi
28090else
ffa0583f
RL
28091 MACSETFILE="@true"
28092 MACRESWXCONFIG="@true"
a848cd7e
SC
28093
28094 if test "$wxUSE_PM" = 1; then
28095 MACRESCOMP="emxbind -ep"
28096 else
ffa0583f 28097 MACRESCOMP="@true"
a848cd7e
SC
28098 fi
28099fi
28100
28101
28102
28103echo "$as_me:$LINENO: checking for mode_t" >&5
28104echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28105if test "${ac_cv_type_mode_t+set}" = set; then
28106 echo $ECHO_N "(cached) $ECHO_C" >&6
28107else
28108 cat >conftest.$ac_ext <<_ACEOF
28109/* confdefs.h. */
28110_ACEOF
28111cat confdefs.h >>conftest.$ac_ext
28112cat >>conftest.$ac_ext <<_ACEOF
28113/* end confdefs.h. */
28114$ac_includes_default
28115int
28116main ()
28117{
28118if ((mode_t *) 0)
28119 return 0;
28120if (sizeof (mode_t))
28121 return 0;
28122 ;
28123 return 0;
28124}
28125_ACEOF
28126rm -f conftest.$ac_objext
28127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28128 (eval $ac_compile) 2>conftest.er1
a848cd7e 28129 ac_status=$?
ac1cb8d3
VS
28130 grep -v '^ *+' conftest.er1 >conftest.err
28131 rm -f conftest.er1
28132 cat conftest.err >&5
a848cd7e
SC
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); } &&
2cbbc68d
RD
28135 { ac_try='test -z "$ac_c_werror_flag"
28136 || test ! -s conftest.err'
ac1cb8d3
VS
28137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28138 (eval $ac_try) 2>&5
28139 ac_status=$?
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); }; } &&
28142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28144 (eval $ac_try) 2>&5
28145 ac_status=$?
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; }; then
28148 ac_cv_type_mode_t=yes
28149else
28150 echo "$as_me: failed program was:" >&5
28151sed 's/^/| /' conftest.$ac_ext >&5
28152
28153ac_cv_type_mode_t=no
28154fi
ac1cb8d3 28155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28156fi
28157echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28158echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28159if test $ac_cv_type_mode_t = yes; then
28160 :
28161else
28162
28163cat >>confdefs.h <<_ACEOF
28164#define mode_t int
28165_ACEOF
28166
28167fi
28168
28169echo "$as_me:$LINENO: checking for off_t" >&5
28170echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28171if test "${ac_cv_type_off_t+set}" = set; then
28172 echo $ECHO_N "(cached) $ECHO_C" >&6
28173else
28174 cat >conftest.$ac_ext <<_ACEOF
28175/* confdefs.h. */
28176_ACEOF
28177cat confdefs.h >>conftest.$ac_ext
28178cat >>conftest.$ac_ext <<_ACEOF
28179/* end confdefs.h. */
28180$ac_includes_default
28181int
28182main ()
28183{
28184if ((off_t *) 0)
28185 return 0;
28186if (sizeof (off_t))
28187 return 0;
28188 ;
28189 return 0;
28190}
28191_ACEOF
28192rm -f conftest.$ac_objext
28193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28194 (eval $ac_compile) 2>conftest.er1
a848cd7e 28195 ac_status=$?
ac1cb8d3
VS
28196 grep -v '^ *+' conftest.er1 >conftest.err
28197 rm -f conftest.er1
28198 cat conftest.err >&5
a848cd7e
SC
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); } &&
2cbbc68d
RD
28201 { ac_try='test -z "$ac_c_werror_flag"
28202 || test ! -s conftest.err'
ac1cb8d3
VS
28203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28204 (eval $ac_try) 2>&5
28205 ac_status=$?
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); }; } &&
28208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28210 (eval $ac_try) 2>&5
28211 ac_status=$?
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); }; }; then
28214 ac_cv_type_off_t=yes
28215else
28216 echo "$as_me: failed program was:" >&5
28217sed 's/^/| /' conftest.$ac_ext >&5
28218
28219ac_cv_type_off_t=no
28220fi
ac1cb8d3 28221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28222fi
28223echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28224echo "${ECHO_T}$ac_cv_type_off_t" >&6
28225if test $ac_cv_type_off_t = yes; then
28226 :
28227else
28228
28229cat >>confdefs.h <<_ACEOF
28230#define off_t long
28231_ACEOF
28232
28233fi
28234
28235echo "$as_me:$LINENO: checking for pid_t" >&5
28236echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28237if test "${ac_cv_type_pid_t+set}" = set; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28239else
28240 cat >conftest.$ac_ext <<_ACEOF
28241/* confdefs.h. */
28242_ACEOF
28243cat confdefs.h >>conftest.$ac_ext
28244cat >>conftest.$ac_ext <<_ACEOF
28245/* end confdefs.h. */
28246$ac_includes_default
28247int
28248main ()
28249{
28250if ((pid_t *) 0)
28251 return 0;
28252if (sizeof (pid_t))
28253 return 0;
28254 ;
28255 return 0;
28256}
28257_ACEOF
28258rm -f conftest.$ac_objext
28259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28260 (eval $ac_compile) 2>conftest.er1
a848cd7e 28261 ac_status=$?
ac1cb8d3
VS
28262 grep -v '^ *+' conftest.er1 >conftest.err
28263 rm -f conftest.er1
28264 cat conftest.err >&5
a848cd7e
SC
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); } &&
2cbbc68d
RD
28267 { ac_try='test -z "$ac_c_werror_flag"
28268 || test ! -s conftest.err'
ac1cb8d3
VS
28269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28270 (eval $ac_try) 2>&5
28271 ac_status=$?
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; } &&
28274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276 (eval $ac_try) 2>&5
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; }; then
28280 ac_cv_type_pid_t=yes
28281else
28282 echo "$as_me: failed program was:" >&5
28283sed 's/^/| /' conftest.$ac_ext >&5
28284
28285ac_cv_type_pid_t=no
28286fi
ac1cb8d3 28287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28288fi
28289echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28290echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28291if test $ac_cv_type_pid_t = yes; then
28292 :
28293else
28294
28295cat >>confdefs.h <<_ACEOF
28296#define pid_t int
28297_ACEOF
28298
28299fi
28300
28301echo "$as_me:$LINENO: checking for size_t" >&5
28302echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28303if test "${ac_cv_type_size_t+set}" = set; then
28304 echo $ECHO_N "(cached) $ECHO_C" >&6
28305else
28306 cat >conftest.$ac_ext <<_ACEOF
28307/* confdefs.h. */
28308_ACEOF
28309cat confdefs.h >>conftest.$ac_ext
28310cat >>conftest.$ac_ext <<_ACEOF
28311/* end confdefs.h. */
28312$ac_includes_default
28313int
28314main ()
28315{
28316if ((size_t *) 0)
28317 return 0;
28318if (sizeof (size_t))
28319 return 0;
28320 ;
28321 return 0;
28322}
28323_ACEOF
28324rm -f conftest.$ac_objext
28325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28326 (eval $ac_compile) 2>conftest.er1
a848cd7e 28327 ac_status=$?
ac1cb8d3
VS
28328 grep -v '^ *+' conftest.er1 >conftest.err
28329 rm -f conftest.er1
28330 cat conftest.err >&5
a848cd7e
SC
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); } &&
2cbbc68d
RD
28333 { ac_try='test -z "$ac_c_werror_flag"
28334 || test ! -s conftest.err'
ac1cb8d3
VS
28335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28336 (eval $ac_try) 2>&5
28337 ac_status=$?
28338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339 (exit $ac_status); }; } &&
28340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28342 (eval $ac_try) 2>&5
28343 ac_status=$?
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); }; }; then
28346 ac_cv_type_size_t=yes
28347else
28348 echo "$as_me: failed program was:" >&5
28349sed 's/^/| /' conftest.$ac_ext >&5
28350
28351ac_cv_type_size_t=no
28352fi
ac1cb8d3 28353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28354fi
28355echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28356echo "${ECHO_T}$ac_cv_type_size_t" >&6
28357if test $ac_cv_type_size_t = yes; then
28358 :
28359else
28360
28361cat >>confdefs.h <<_ACEOF
28362#define size_t unsigned
28363_ACEOF
28364
28365fi
28366
28367echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28368echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28369if test "${ac_cv_type_uid_t+set}" = set; then
28370 echo $ECHO_N "(cached) $ECHO_C" >&6
28371else
28372 cat >conftest.$ac_ext <<_ACEOF
28373/* confdefs.h. */
28374_ACEOF
28375cat confdefs.h >>conftest.$ac_ext
28376cat >>conftest.$ac_ext <<_ACEOF
28377/* end confdefs.h. */
28378#include <sys/types.h>
28379
28380_ACEOF
28381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28382 $EGREP "uid_t" >/dev/null 2>&1; then
28383 ac_cv_type_uid_t=yes
28384else
28385 ac_cv_type_uid_t=no
28386fi
28387rm -f conftest*
28388
28389fi
28390echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28391echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28392if test $ac_cv_type_uid_t = no; then
28393
28394cat >>confdefs.h <<\_ACEOF
28395#define uid_t int
28396_ACEOF
28397
28398
28399cat >>confdefs.h <<\_ACEOF
28400#define gid_t int
28401_ACEOF
28402
28403fi
28404
28405
28406
28407
28408ac_ext=cc
28409ac_cpp='$CXXCPP $CPPFLAGS'
28410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28413
28414echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28415echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28416if test "${wx_cv_size_t_is_uint+set}" = set; then
28417 echo $ECHO_N "(cached) $ECHO_C" >&6
28418else
28419
28420 cat >conftest.$ac_ext <<_ACEOF
28421/* confdefs.h. */
28422_ACEOF
28423cat confdefs.h >>conftest.$ac_ext
28424cat >>conftest.$ac_ext <<_ACEOF
28425/* end confdefs.h. */
28426#include <stddef.h>
28427int
28428main ()
28429{
28430
28431 return 0; }
28432
28433 struct Foo { void foo(size_t); void foo(unsigned int); };
28434
28435 int bar() {
28436
28437 ;
28438 return 0;
28439}
28440_ACEOF
28441rm -f conftest.$ac_objext
28442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28443 (eval $ac_compile) 2>conftest.er1
a848cd7e 28444 ac_status=$?
ac1cb8d3
VS
28445 grep -v '^ *+' conftest.er1 >conftest.err
28446 rm -f conftest.er1
28447 cat conftest.err >&5
a848cd7e
SC
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); } &&
2cbbc68d
RD
28450 { ac_try='test -z "$ac_cxx_werror_flag"
28451 || test ! -s conftest.err'
ac1cb8d3
VS
28452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453 (eval $ac_try) 2>&5
28454 ac_status=$?
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; } &&
28457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28459 (eval $ac_try) 2>&5
28460 ac_status=$?
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); }; }; then
28463 wx_cv_size_t_is_uint=no
28464else
28465 echo "$as_me: failed program was:" >&5
28466sed 's/^/| /' conftest.$ac_ext >&5
28467
28468wx_cv_size_t_is_uint=yes
28469
28470fi
ac1cb8d3 28471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28472
28473
28474fi
28475echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28476echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28477
28478if test "$wx_cv_size_t_is_uint" = "yes"; then
28479 cat >>confdefs.h <<\_ACEOF
28480#define wxSIZE_T_IS_UINT 1
28481_ACEOF
28482
28483else
28484 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28485echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28486if test "${wx_cv_size_t_is_ulong+set}" = set; then
28487 echo $ECHO_N "(cached) $ECHO_C" >&6
28488else
28489 cat >conftest.$ac_ext <<_ACEOF
28490/* confdefs.h. */
28491_ACEOF
28492cat confdefs.h >>conftest.$ac_ext
28493cat >>conftest.$ac_ext <<_ACEOF
28494/* end confdefs.h. */
28495#include <stddef.h>
28496int
28497main ()
28498{
28499
28500 return 0; }
28501
28502 struct Foo { void foo(size_t); void foo(unsigned long); };
28503
28504 int bar() {
28505
28506 ;
28507 return 0;
28508}
28509_ACEOF
28510rm -f conftest.$ac_objext
28511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28512 (eval $ac_compile) 2>conftest.er1
a848cd7e 28513 ac_status=$?
ac1cb8d3
VS
28514 grep -v '^ *+' conftest.er1 >conftest.err
28515 rm -f conftest.er1
28516 cat conftest.err >&5
a848cd7e
SC
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); } &&
2cbbc68d
RD
28519 { ac_try='test -z "$ac_cxx_werror_flag"
28520 || test ! -s conftest.err'
ac1cb8d3
VS
28521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28522 (eval $ac_try) 2>&5
28523 ac_status=$?
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); }; } &&
28526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28528 (eval $ac_try) 2>&5
28529 ac_status=$?
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; }; then
28532 wx_cv_size_t_is_ulong=no
28533else
28534 echo "$as_me: failed program was:" >&5
28535sed 's/^/| /' conftest.$ac_ext >&5
28536
28537wx_cv_size_t_is_ulong=yes
28538
28539fi
ac1cb8d3 28540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28541
28542fi
28543echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28544echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28545
28546 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28547 cat >>confdefs.h <<\_ACEOF
28548#define wxSIZE_T_IS_ULONG 1
28549_ACEOF
28550
28551 fi
28552fi
28553
28554ac_ext=c
28555ac_cpp='$CPP $CPPFLAGS'
28556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28558ac_compiler_gnu=$ac_cv_c_compiler_gnu
28559
28560
28561
28562echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28563echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28564if test "${wx_cv_struct_pw_gecos+set}" = set; then
28565 echo $ECHO_N "(cached) $ECHO_C" >&6
28566else
28567
28568 cat >conftest.$ac_ext <<_ACEOF
28569/* confdefs.h. */
28570_ACEOF
28571cat confdefs.h >>conftest.$ac_ext
28572cat >>conftest.$ac_ext <<_ACEOF
28573/* end confdefs.h. */
28574#include <pwd.h>
28575int
28576main ()
28577{
28578
28579 char *p;
28580 struct passwd *pw;
28581 p = pw->pw_gecos;
28582
28583 ;
28584 return 0;
28585}
28586_ACEOF
28587rm -f conftest.$ac_objext
28588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28589 (eval $ac_compile) 2>conftest.er1
a848cd7e 28590 ac_status=$?
ac1cb8d3
VS
28591 grep -v '^ *+' conftest.er1 >conftest.err
28592 rm -f conftest.er1
28593 cat conftest.err >&5
a848cd7e
SC
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); } &&
2cbbc68d
RD
28596 { ac_try='test -z "$ac_c_werror_flag"
28597 || test ! -s conftest.err'
ac1cb8d3
VS
28598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599 (eval $ac_try) 2>&5
28600 ac_status=$?
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); }; } &&
28603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605 (eval $ac_try) 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; }; then
28609
28610 wx_cv_struct_pw_gecos=yes
28611
28612else
28613 echo "$as_me: failed program was:" >&5
28614sed 's/^/| /' conftest.$ac_ext >&5
28615
28616
28617 wx_cv_struct_pw_gecos=no
28618
28619
28620fi
ac1cb8d3 28621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28622
28623
28624fi
28625echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28626echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28627
28628if test "$wx_cv_struct_pw_gecos" = "yes"; then
28629 cat >>confdefs.h <<\_ACEOF
28630#define HAVE_PW_GECOS 1
28631_ACEOF
28632
28633fi
28634
28635
28636if test "$wx_cv_sizeof_wchar_t" != "0"; then
28637 cat >>confdefs.h <<\_ACEOF
28638#define wxUSE_WCHAR_T 1
28639_ACEOF
28640
28641
28642 WCSLEN_FOUND=0
28643 WCHAR_LINK=
28644
28645for ac_func in wcslen
28646do
28647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28648echo "$as_me:$LINENO: checking for $ac_func" >&5
28649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28650if eval "test \"\${$as_ac_var+set}\" = set"; then
28651 echo $ECHO_N "(cached) $ECHO_C" >&6
28652else
28653 cat >conftest.$ac_ext <<_ACEOF
28654/* confdefs.h. */
28655_ACEOF
28656cat confdefs.h >>conftest.$ac_ext
28657cat >>conftest.$ac_ext <<_ACEOF
28658/* end confdefs.h. */
ac1cb8d3
VS
28659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28661#define $ac_func innocuous_$ac_func
28662
a848cd7e
SC
28663/* System header to define __stub macros and hopefully few prototypes,
28664 which can conflict with char $ac_func (); below.
28665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28666 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28667
a848cd7e
SC
28668#ifdef __STDC__
28669# include <limits.h>
28670#else
28671# include <assert.h>
28672#endif
ac1cb8d3
VS
28673
28674#undef $ac_func
28675
a848cd7e
SC
28676/* Override any gcc2 internal prototype to avoid an error. */
28677#ifdef __cplusplus
28678extern "C"
28679{
28680#endif
28681/* We use char because int might match the return type of a gcc2
28682 builtin and then its argument prototype would still apply. */
28683char $ac_func ();
28684/* The GNU C library defines this for functions which it implements
28685 to always fail with ENOSYS. Some functions are actually named
28686 something starting with __ and the normal name is an alias. */
28687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28688choke me
28689#else
28690char (*f) () = $ac_func;
28691#endif
28692#ifdef __cplusplus
28693}
28694#endif
28695
28696int
28697main ()
28698{
28699return f != $ac_func;
28700 ;
28701 return 0;
28702}
28703_ACEOF
28704rm -f conftest.$ac_objext conftest$ac_exeext
28705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28706 (eval $ac_link) 2>conftest.er1
a848cd7e 28707 ac_status=$?
ac1cb8d3
VS
28708 grep -v '^ *+' conftest.er1 >conftest.err
28709 rm -f conftest.er1
28710 cat conftest.err >&5
a848cd7e
SC
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); } &&
2cbbc68d
RD
28713 { ac_try='test -z "$ac_c_werror_flag"
28714 || test ! -s conftest.err'
ac1cb8d3
VS
28715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28716 (eval $ac_try) 2>&5
28717 ac_status=$?
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); }; } &&
28720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28722 (eval $ac_try) 2>&5
28723 ac_status=$?
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); }; }; then
28726 eval "$as_ac_var=yes"
28727else
28728 echo "$as_me: failed program was:" >&5
28729sed 's/^/| /' conftest.$ac_ext >&5
28730
28731eval "$as_ac_var=no"
28732fi
ac1cb8d3
VS
28733rm -f conftest.err conftest.$ac_objext \
28734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28735fi
28736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28737echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28738if test `eval echo '${'$as_ac_var'}'` = yes; then
28739 cat >>confdefs.h <<_ACEOF
28740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28741_ACEOF
28742 WCSLEN_FOUND=1
28743fi
28744done
28745
28746
28747 if test "$WCSLEN_FOUND" = 0; then
28748 if test "$TOOLKIT" = "MSW"; then
28749 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28750echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28751if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28752 echo $ECHO_N "(cached) $ECHO_C" >&6
28753else
28754 ac_check_lib_save_LIBS=$LIBS
28755LIBS="-lmsvcrt $LIBS"
28756cat >conftest.$ac_ext <<_ACEOF
28757/* confdefs.h. */
28758_ACEOF
28759cat confdefs.h >>conftest.$ac_ext
28760cat >>conftest.$ac_ext <<_ACEOF
28761/* end confdefs.h. */
28762
28763/* Override any gcc2 internal prototype to avoid an error. */
28764#ifdef __cplusplus
28765extern "C"
28766#endif
28767/* We use char because int might match the return type of a gcc2
28768 builtin and then its argument prototype would still apply. */
28769char wcslen ();
28770int
28771main ()
28772{
28773wcslen ();
28774 ;
28775 return 0;
28776}
28777_ACEOF
28778rm -f conftest.$ac_objext conftest$ac_exeext
28779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28780 (eval $ac_link) 2>conftest.er1
a848cd7e 28781 ac_status=$?
ac1cb8d3
VS
28782 grep -v '^ *+' conftest.er1 >conftest.err
28783 rm -f conftest.er1
28784 cat conftest.err >&5
a848cd7e
SC
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } &&
2cbbc68d
RD
28787 { ac_try='test -z "$ac_c_werror_flag"
28788 || test ! -s conftest.err'
ac1cb8d3
VS
28789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790 (eval $ac_try) 2>&5
28791 ac_status=$?
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; } &&
28794 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28796 (eval $ac_try) 2>&5
28797 ac_status=$?
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); }; }; then
28800 ac_cv_lib_msvcrt_wcslen=yes
28801else
28802 echo "$as_me: failed program was:" >&5
28803sed 's/^/| /' conftest.$ac_ext >&5
28804
28805ac_cv_lib_msvcrt_wcslen=no
28806fi
ac1cb8d3
VS
28807rm -f conftest.err conftest.$ac_objext \
28808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28809LIBS=$ac_check_lib_save_LIBS
28810fi
28811echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28812echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28813if test $ac_cv_lib_msvcrt_wcslen = yes; then
28814 WCHAR_OK=1
28815fi
28816
28817 else
28818 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28819echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28820if test "${ac_cv_lib_w_wcslen+set}" = set; then
28821 echo $ECHO_N "(cached) $ECHO_C" >&6
28822else
28823 ac_check_lib_save_LIBS=$LIBS
28824LIBS="-lw $LIBS"
28825cat >conftest.$ac_ext <<_ACEOF
28826/* confdefs.h. */
28827_ACEOF
28828cat confdefs.h >>conftest.$ac_ext
28829cat >>conftest.$ac_ext <<_ACEOF
28830/* end confdefs.h. */
28831
28832/* Override any gcc2 internal prototype to avoid an error. */
28833#ifdef __cplusplus
28834extern "C"
28835#endif
28836/* We use char because int might match the return type of a gcc2
28837 builtin and then its argument prototype would still apply. */
28838char wcslen ();
28839int
28840main ()
28841{
28842wcslen ();
28843 ;
28844 return 0;
28845}
28846_ACEOF
28847rm -f conftest.$ac_objext conftest$ac_exeext
28848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28849 (eval $ac_link) 2>conftest.er1
a848cd7e 28850 ac_status=$?
ac1cb8d3
VS
28851 grep -v '^ *+' conftest.er1 >conftest.err
28852 rm -f conftest.er1
28853 cat conftest.err >&5
a848cd7e
SC
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); } &&
2cbbc68d
RD
28856 { ac_try='test -z "$ac_c_werror_flag"
28857 || test ! -s conftest.err'
ac1cb8d3
VS
28858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28859 (eval $ac_try) 2>&5
28860 ac_status=$?
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); }; } &&
28863 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865 (eval $ac_try) 2>&5
28866 ac_status=$?
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; }; then
28869 ac_cv_lib_w_wcslen=yes
28870else
28871 echo "$as_me: failed program was:" >&5
28872sed 's/^/| /' conftest.$ac_ext >&5
28873
28874ac_cv_lib_w_wcslen=no
28875fi
ac1cb8d3
VS
28876rm -f conftest.err conftest.$ac_objext \
28877 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28878LIBS=$ac_check_lib_save_LIBS
28879fi
28880echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28881echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28882if test $ac_cv_lib_w_wcslen = yes; then
28883
28884 WCHAR_LINK=" -lw"
28885 WCSLEN_FOUND=1
28886
28887fi
28888
28889 fi
28890 fi
28891
28892 if test "$WCSLEN_FOUND" = 1; then
28893 cat >>confdefs.h <<\_ACEOF
28894#define HAVE_WCSLEN 1
28895_ACEOF
28896
28897 fi
28898
473276a9
VS
28899 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28900 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28901 fi
28902
a848cd7e
SC
28903
28904for ac_func in wcsrtombs
28905do
28906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28907echo "$as_me:$LINENO: checking for $ac_func" >&5
28908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28909if eval "test \"\${$as_ac_var+set}\" = set"; then
28910 echo $ECHO_N "(cached) $ECHO_C" >&6
28911else
28912 cat >conftest.$ac_ext <<_ACEOF
28913/* confdefs.h. */
28914_ACEOF
28915cat confdefs.h >>conftest.$ac_ext
28916cat >>conftest.$ac_ext <<_ACEOF
28917/* end confdefs.h. */
ac1cb8d3
VS
28918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28920#define $ac_func innocuous_$ac_func
28921
a848cd7e
SC
28922/* System header to define __stub macros and hopefully few prototypes,
28923 which can conflict with char $ac_func (); below.
28924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28925 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28926
a848cd7e
SC
28927#ifdef __STDC__
28928# include <limits.h>
28929#else
28930# include <assert.h>
28931#endif
ac1cb8d3
VS
28932
28933#undef $ac_func
28934
a848cd7e
SC
28935/* Override any gcc2 internal prototype to avoid an error. */
28936#ifdef __cplusplus
28937extern "C"
28938{
28939#endif
28940/* We use char because int might match the return type of a gcc2
28941 builtin and then its argument prototype would still apply. */
28942char $ac_func ();
28943/* The GNU C library defines this for functions which it implements
28944 to always fail with ENOSYS. Some functions are actually named
28945 something starting with __ and the normal name is an alias. */
28946#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28947choke me
28948#else
28949char (*f) () = $ac_func;
28950#endif
28951#ifdef __cplusplus
28952}
28953#endif
28954
28955int
28956main ()
28957{
28958return f != $ac_func;
28959 ;
28960 return 0;
28961}
28962_ACEOF
28963rm -f conftest.$ac_objext conftest$ac_exeext
28964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28965 (eval $ac_link) 2>conftest.er1
a848cd7e 28966 ac_status=$?
ac1cb8d3
VS
28967 grep -v '^ *+' conftest.er1 >conftest.err
28968 rm -f conftest.er1
28969 cat conftest.err >&5
a848cd7e
SC
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); } &&
2cbbc68d
RD
28972 { ac_try='test -z "$ac_c_werror_flag"
28973 || test ! -s conftest.err'
ac1cb8d3
VS
28974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28975 (eval $ac_try) 2>&5
28976 ac_status=$?
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); }; } &&
28979 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
28985 eval "$as_ac_var=yes"
28986else
28987 echo "$as_me: failed program was:" >&5
28988sed 's/^/| /' conftest.$ac_ext >&5
28989
28990eval "$as_ac_var=no"
28991fi
ac1cb8d3
VS
28992rm -f conftest.err conftest.$ac_objext \
28993 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28994fi
28995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28996echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28997if test `eval echo '${'$as_ac_var'}'` = yes; then
28998 cat >>confdefs.h <<_ACEOF
28999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29000_ACEOF
29001
29002fi
29003done
29004
29005else
29006 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29007echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29008fi
29009
29010
29011
29012ac_ext=cc
29013ac_cpp='$CXXCPP $CPPFLAGS'
29014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29017
29018
29019
29020for ac_func in vsnprintf
29021do
29022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29023echo "$as_me:$LINENO: checking for $ac_func" >&5
29024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29025if eval "test \"\${$as_ac_var+set}\" = set"; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29027else
29028 cat >conftest.$ac_ext <<_ACEOF
29029/* confdefs.h. */
29030_ACEOF
29031cat confdefs.h >>conftest.$ac_ext
29032cat >>conftest.$ac_ext <<_ACEOF
29033/* end confdefs.h. */
ac1cb8d3
VS
29034/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29036#define $ac_func innocuous_$ac_func
29037
a848cd7e
SC
29038/* System header to define __stub macros and hopefully few prototypes,
29039 which can conflict with char $ac_func (); below.
29040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29041 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29042
a848cd7e
SC
29043#ifdef __STDC__
29044# include <limits.h>
29045#else
29046# include <assert.h>
29047#endif
ac1cb8d3
VS
29048
29049#undef $ac_func
29050
a848cd7e
SC
29051/* Override any gcc2 internal prototype to avoid an error. */
29052#ifdef __cplusplus
29053extern "C"
29054{
29055#endif
29056/* We use char because int might match the return type of a gcc2
29057 builtin and then its argument prototype would still apply. */
29058char $ac_func ();
29059/* The GNU C library defines this for functions which it implements
29060 to always fail with ENOSYS. Some functions are actually named
29061 something starting with __ and the normal name is an alias. */
29062#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29063choke me
29064#else
29065char (*f) () = $ac_func;
29066#endif
29067#ifdef __cplusplus
29068}
29069#endif
29070
29071int
29072main ()
29073{
29074return f != $ac_func;
29075 ;
29076 return 0;
29077}
29078_ACEOF
29079rm -f conftest.$ac_objext conftest$ac_exeext
29080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29081 (eval $ac_link) 2>conftest.er1
a848cd7e 29082 ac_status=$?
ac1cb8d3
VS
29083 grep -v '^ *+' conftest.er1 >conftest.err
29084 rm -f conftest.er1
29085 cat conftest.err >&5
a848cd7e
SC
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); } &&
2cbbc68d
RD
29088 { ac_try='test -z "$ac_cxx_werror_flag"
29089 || test ! -s conftest.err'
ac1cb8d3
VS
29090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29091 (eval $ac_try) 2>&5
29092 ac_status=$?
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); }; } &&
29095 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
29101 eval "$as_ac_var=yes"
29102else
29103 echo "$as_me: failed program was:" >&5
29104sed 's/^/| /' conftest.$ac_ext >&5
29105
29106eval "$as_ac_var=no"
29107fi
ac1cb8d3
VS
29108rm -f conftest.err conftest.$ac_objext \
29109 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29110fi
29111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29112echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29113if test `eval echo '${'$as_ac_var'}'` = yes; then
29114 cat >>confdefs.h <<_ACEOF
29115#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29116_ACEOF
29117
29118fi
29119done
29120
29121
29122if test "$ac_cv_func_vsnprintf" = "yes"; then
29123 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29124echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29125if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29126 echo $ECHO_N "(cached) $ECHO_C" >&6
29127else
29128
29129 cat >conftest.$ac_ext <<_ACEOF
29130/* confdefs.h. */
29131_ACEOF
29132cat confdefs.h >>conftest.$ac_ext
29133cat >>conftest.$ac_ext <<_ACEOF
29134/* end confdefs.h. */
29135
29136 #include <stdio.h>
29137 #include <stdarg.h>
29138
29139int
29140main ()
29141{
29142
29143 char *buf;
29144 va_list ap;
29145 vsnprintf(buf, 10u, "%s", ap);
29146
29147 ;
29148 return 0;
29149}
29150_ACEOF
29151rm -f conftest.$ac_objext
29152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29153 (eval $ac_compile) 2>conftest.er1
a848cd7e 29154 ac_status=$?
ac1cb8d3
VS
29155 grep -v '^ *+' conftest.er1 >conftest.err
29156 rm -f conftest.er1
29157 cat conftest.err >&5
a848cd7e
SC
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); } &&
2cbbc68d
RD
29160 { ac_try='test -z "$ac_cxx_werror_flag"
29161 || test ! -s conftest.err'
ac1cb8d3
VS
29162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29163 (eval $ac_try) 2>&5
29164 ac_status=$?
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); }; } &&
29167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29169 (eval $ac_try) 2>&5
29170 ac_status=$?
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); }; }; then
29173 wx_cv_func_vsnprintf_decl=yes
29174else
29175 echo "$as_me: failed program was:" >&5
29176sed 's/^/| /' conftest.$ac_ext >&5
29177
29178wx_cv_func_vsnprintf_decl=no
29179
29180fi
ac1cb8d3 29181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29182
29183
29184fi
29185echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29186echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29187
29188 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29189 cat >>confdefs.h <<\_ACEOF
29190#define HAVE_VSNPRINTF_DECL 1
29191_ACEOF
29192
29193 fi
29194fi
29195
29196if test "$wxUSE_UNICODE" = yes; then
29197
29198
29199
fbe47c7b
VS
29200
29201
29202
29203for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29204do
29205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29206echo "$as_me:$LINENO: checking for $ac_func" >&5
29207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29208if eval "test \"\${$as_ac_var+set}\" = set"; then
29209 echo $ECHO_N "(cached) $ECHO_C" >&6
29210else
29211 cat >conftest.$ac_ext <<_ACEOF
29212/* confdefs.h. */
29213_ACEOF
29214cat confdefs.h >>conftest.$ac_ext
29215cat >>conftest.$ac_ext <<_ACEOF
29216/* end confdefs.h. */
ac1cb8d3
VS
29217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29219#define $ac_func innocuous_$ac_func
29220
a848cd7e
SC
29221/* System header to define __stub macros and hopefully few prototypes,
29222 which can conflict with char $ac_func (); below.
29223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29224 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29225
a848cd7e
SC
29226#ifdef __STDC__
29227# include <limits.h>
29228#else
29229# include <assert.h>
29230#endif
ac1cb8d3
VS
29231
29232#undef $ac_func
29233
a848cd7e
SC
29234/* Override any gcc2 internal prototype to avoid an error. */
29235#ifdef __cplusplus
29236extern "C"
29237{
29238#endif
29239/* We use char because int might match the return type of a gcc2
29240 builtin and then its argument prototype would still apply. */
29241char $ac_func ();
29242/* The GNU C library defines this for functions which it implements
29243 to always fail with ENOSYS. Some functions are actually named
29244 something starting with __ and the normal name is an alias. */
29245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29246choke me
29247#else
29248char (*f) () = $ac_func;
29249#endif
29250#ifdef __cplusplus
29251}
29252#endif
29253
29254int
29255main ()
29256{
29257return f != $ac_func;
29258 ;
29259 return 0;
29260}
29261_ACEOF
29262rm -f conftest.$ac_objext conftest$ac_exeext
29263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29264 (eval $ac_link) 2>conftest.er1
a848cd7e 29265 ac_status=$?
ac1cb8d3
VS
29266 grep -v '^ *+' conftest.er1 >conftest.err
29267 rm -f conftest.er1
29268 cat conftest.err >&5
a848cd7e
SC
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); } &&
2cbbc68d
RD
29271 { ac_try='test -z "$ac_cxx_werror_flag"
29272 || test ! -s conftest.err'
ac1cb8d3
VS
29273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29274 (eval $ac_try) 2>&5
29275 ac_status=$?
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); }; } &&
29278 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29280 (eval $ac_try) 2>&5
29281 ac_status=$?
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); }; }; then
29284 eval "$as_ac_var=yes"
29285else
29286 echo "$as_me: failed program was:" >&5
29287sed 's/^/| /' conftest.$ac_ext >&5
29288
29289eval "$as_ac_var=no"
29290fi
ac1cb8d3
VS
29291rm -f conftest.err conftest.$ac_objext \
29292 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29293fi
29294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29295echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29296if test `eval echo '${'$as_ac_var'}'` = yes; then
29297 cat >>confdefs.h <<_ACEOF
29298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29299_ACEOF
29300
29301fi
29302done
29303
29304
29305 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29306echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29307 cat >conftest.$ac_ext <<_ACEOF
29308/* confdefs.h. */
29309_ACEOF
29310cat confdefs.h >>conftest.$ac_ext
29311cat >>conftest.$ac_ext <<_ACEOF
29312/* end confdefs.h. */
29313#include <wchar.h>
29314int
29315main ()
29316{
29317&_vsnwprintf;
29318 ;
29319 return 0;
29320}
29321_ACEOF
29322rm -f conftest.$ac_objext
29323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29324 (eval $ac_compile) 2>conftest.er1
a848cd7e 29325 ac_status=$?
ac1cb8d3
VS
29326 grep -v '^ *+' conftest.er1 >conftest.err
29327 rm -f conftest.er1
29328 cat conftest.err >&5
a848cd7e
SC
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); } &&
2cbbc68d
RD
29331 { ac_try='test -z "$ac_cxx_werror_flag"
29332 || test ! -s conftest.err'
ac1cb8d3
VS
29333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29334 (eval $ac_try) 2>&5
29335 ac_status=$?
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); }; } &&
29338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29340 (eval $ac_try) 2>&5
29341 ac_status=$?
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); }; }; then
29344 echo "$as_me:$LINENO: result: yes" >&5
29345echo "${ECHO_T}yes" >&6
29346 cat >>confdefs.h <<\_ACEOF
29347#define HAVE__VSNWPRINTF 1
29348_ACEOF
29349
29350else
29351 echo "$as_me: failed program was:" >&5
29352sed 's/^/| /' conftest.$ac_ext >&5
29353
29354echo "$as_me:$LINENO: result: no" >&5
29355echo "${ECHO_T}no" >&6
29356fi
ac1cb8d3 29357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29358fi
29359
29360ac_ext=c
29361ac_cpp='$CPP $CPPFLAGS'
29362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29364ac_compiler_gnu=$ac_cv_c_compiler_gnu
29365
29366
29367
29368
29369if test "$TOOLKIT" != "MSW"; then
29370
29371
29372
29373
29374ac_ext=cc
29375ac_cpp='$CXXCPP $CPPFLAGS'
29376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29379
29380
29381
29382
29383# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29384if test "${with_libiconv_prefix+set}" = set; then
29385 withval="$with_libiconv_prefix"
29386
29387 for dir in `echo "$withval" | tr : ' '`; do
29388 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29389 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29390 done
29391
29392fi;
29393
29394 echo "$as_me:$LINENO: checking for iconv" >&5
29395echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29396if test "${am_cv_func_iconv+set}" = set; then
29397 echo $ECHO_N "(cached) $ECHO_C" >&6
29398else
29399
29400 am_cv_func_iconv="no, consider installing GNU libiconv"
29401 am_cv_lib_iconv=no
29402 cat >conftest.$ac_ext <<_ACEOF
29403/* confdefs.h. */
29404_ACEOF
29405cat confdefs.h >>conftest.$ac_ext
29406cat >>conftest.$ac_ext <<_ACEOF
29407/* end confdefs.h. */
29408#include <stdlib.h>
29409#include <iconv.h>
29410int
29411main ()
29412{
29413iconv_t cd = iconv_open("","");
29414 iconv(cd,NULL,NULL,NULL,NULL);
29415 iconv_close(cd);
29416 ;
29417 return 0;
29418}
29419_ACEOF
29420rm -f conftest.$ac_objext conftest$ac_exeext
29421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29422 (eval $ac_link) 2>conftest.er1
a848cd7e 29423 ac_status=$?
ac1cb8d3
VS
29424 grep -v '^ *+' conftest.er1 >conftest.err
29425 rm -f conftest.er1
29426 cat conftest.err >&5
a848cd7e
SC
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); } &&
2cbbc68d
RD
29429 { ac_try='test -z "$ac_cxx_werror_flag"
29430 || test ! -s conftest.err'
ac1cb8d3
VS
29431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29432 (eval $ac_try) 2>&5
29433 ac_status=$?
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); }; } &&
29436 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; }; then
29442 am_cv_func_iconv=yes
29443else
29444 echo "$as_me: failed program was:" >&5
29445sed 's/^/| /' conftest.$ac_ext >&5
29446
29447fi
ac1cb8d3
VS
29448rm -f conftest.err conftest.$ac_objext \
29449 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29450 if test "$am_cv_func_iconv" != yes; then
29451 am_save_LIBS="$LIBS"
29452 LIBS="$LIBS -liconv"
29453 cat >conftest.$ac_ext <<_ACEOF
29454/* confdefs.h. */
29455_ACEOF
29456cat confdefs.h >>conftest.$ac_ext
29457cat >>conftest.$ac_ext <<_ACEOF
29458/* end confdefs.h. */
29459#include <stdlib.h>
29460#include <iconv.h>
29461int
29462main ()
29463{
29464iconv_t cd = iconv_open("","");
29465 iconv(cd,NULL,NULL,NULL,NULL);
29466 iconv_close(cd);
29467 ;
29468 return 0;
29469}
29470_ACEOF
29471rm -f conftest.$ac_objext conftest$ac_exeext
29472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29473 (eval $ac_link) 2>conftest.er1
a848cd7e 29474 ac_status=$?
ac1cb8d3
VS
29475 grep -v '^ *+' conftest.er1 >conftest.err
29476 rm -f conftest.er1
29477 cat conftest.err >&5
a848cd7e
SC
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } &&
2cbbc68d
RD
29480 { ac_try='test -z "$ac_cxx_werror_flag"
29481 || test ! -s conftest.err'
ac1cb8d3
VS
29482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29483 (eval $ac_try) 2>&5
29484 ac_status=$?
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; } &&
29487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29489 (eval $ac_try) 2>&5
29490 ac_status=$?
29491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492 (exit $ac_status); }; }; then
29493 am_cv_lib_iconv=yes
29494 am_cv_func_iconv=yes
29495else
29496 echo "$as_me: failed program was:" >&5
29497sed 's/^/| /' conftest.$ac_ext >&5
29498
29499fi
ac1cb8d3
VS
29500rm -f conftest.err conftest.$ac_objext \
29501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29502 LIBS="$am_save_LIBS"
29503 fi
29504
29505fi
29506echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29507echo "${ECHO_T}$am_cv_func_iconv" >&6
29508 if test "$am_cv_func_iconv" = yes; then
29509
29510cat >>confdefs.h <<\_ACEOF
29511#define HAVE_ICONV 1
29512_ACEOF
29513
29514 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29515echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29516if test "${wx_cv_func_iconv_const+set}" = set; then
29517 echo $ECHO_N "(cached) $ECHO_C" >&6
29518else
29519 cat >conftest.$ac_ext <<_ACEOF
29520/* confdefs.h. */
29521_ACEOF
29522cat confdefs.h >>conftest.$ac_ext
29523cat >>conftest.$ac_ext <<_ACEOF
29524/* end confdefs.h. */
29525
29526#include <stdlib.h>
29527#include <iconv.h>
29528extern
29529#ifdef __cplusplus
29530"C"
29531#endif
29532#if defined(__STDC__) || defined(__cplusplus)
29533size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29534#else
29535size_t iconv();
29536#endif
29537
29538int
29539main ()
29540{
29541
29542 ;
29543 return 0;
29544}
29545_ACEOF
29546rm -f conftest.$ac_objext
29547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29548 (eval $ac_compile) 2>conftest.er1
a848cd7e 29549 ac_status=$?
ac1cb8d3
VS
29550 grep -v '^ *+' conftest.er1 >conftest.err
29551 rm -f conftest.er1
29552 cat conftest.err >&5
a848cd7e
SC
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); } &&
2cbbc68d
RD
29555 { ac_try='test -z "$ac_cxx_werror_flag"
29556 || test ! -s conftest.err'
ac1cb8d3
VS
29557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558 (eval $ac_try) 2>&5
29559 ac_status=$?
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); }; } &&
29562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564 (eval $ac_try) 2>&5
29565 ac_status=$?
29566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567 (exit $ac_status); }; }; then
29568 wx_cv_func_iconv_const="no"
29569else
29570 echo "$as_me: failed program was:" >&5
29571sed 's/^/| /' conftest.$ac_ext >&5
29572
29573wx_cv_func_iconv_const="yes"
29574
29575fi
ac1cb8d3 29576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29577
29578fi
29579echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29580echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29581
29582 iconv_const=
29583 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29584 iconv_const="const"
29585 fi
29586
29587
29588cat >>confdefs.h <<_ACEOF
29589#define ICONV_CONST $iconv_const
29590_ACEOF
29591
29592 fi
29593 LIBICONV=
29594 if test "$am_cv_lib_iconv" = yes; then
29595 LIBICONV="-liconv"
29596 fi
29597
29598
29599LIBS="$LIBICONV $LIBS"
29600ac_ext=c
29601ac_cpp='$CPP $CPPFLAGS'
29602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29604ac_compiler_gnu=$ac_cv_c_compiler_gnu
29605
29606
29607if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29608
29609for ac_func in sigaction
29610do
29611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29612echo "$as_me:$LINENO: checking for $ac_func" >&5
29613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29614if eval "test \"\${$as_ac_var+set}\" = set"; then
29615 echo $ECHO_N "(cached) $ECHO_C" >&6
29616else
29617 cat >conftest.$ac_ext <<_ACEOF
29618/* confdefs.h. */
29619_ACEOF
29620cat confdefs.h >>conftest.$ac_ext
29621cat >>conftest.$ac_ext <<_ACEOF
29622/* end confdefs.h. */
ac1cb8d3
VS
29623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29625#define $ac_func innocuous_$ac_func
29626
a848cd7e
SC
29627/* System header to define __stub macros and hopefully few prototypes,
29628 which can conflict with char $ac_func (); below.
29629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29630 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29631
a848cd7e
SC
29632#ifdef __STDC__
29633# include <limits.h>
29634#else
29635# include <assert.h>
29636#endif
ac1cb8d3
VS
29637
29638#undef $ac_func
29639
a848cd7e
SC
29640/* Override any gcc2 internal prototype to avoid an error. */
29641#ifdef __cplusplus
29642extern "C"
29643{
29644#endif
29645/* We use char because int might match the return type of a gcc2
29646 builtin and then its argument prototype would still apply. */
29647char $ac_func ();
29648/* The GNU C library defines this for functions which it implements
29649 to always fail with ENOSYS. Some functions are actually named
29650 something starting with __ and the normal name is an alias. */
29651#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29652choke me
29653#else
29654char (*f) () = $ac_func;
29655#endif
29656#ifdef __cplusplus
29657}
29658#endif
29659
29660int
29661main ()
29662{
29663return f != $ac_func;
29664 ;
29665 return 0;
29666}
29667_ACEOF
29668rm -f conftest.$ac_objext conftest$ac_exeext
29669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29670 (eval $ac_link) 2>conftest.er1
a848cd7e 29671 ac_status=$?
ac1cb8d3
VS
29672 grep -v '^ *+' conftest.er1 >conftest.err
29673 rm -f conftest.er1
29674 cat conftest.err >&5
a848cd7e
SC
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } &&
2cbbc68d
RD
29677 { ac_try='test -z "$ac_c_werror_flag"
29678 || test ! -s conftest.err'
ac1cb8d3
VS
29679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29680 (eval $ac_try) 2>&5
29681 ac_status=$?
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); }; } &&
29684 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29686 (eval $ac_try) 2>&5
29687 ac_status=$?
29688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29689 (exit $ac_status); }; }; then
29690 eval "$as_ac_var=yes"
29691else
29692 echo "$as_me: failed program was:" >&5
29693sed 's/^/| /' conftest.$ac_ext >&5
29694
29695eval "$as_ac_var=no"
29696fi
ac1cb8d3
VS
29697rm -f conftest.err conftest.$ac_objext \
29698 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29699fi
29700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29701echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29702if test `eval echo '${'$as_ac_var'}'` = yes; then
29703 cat >>confdefs.h <<_ACEOF
29704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29705_ACEOF
29706
29707fi
29708done
29709
29710
29711 if test "$ac_cv_func_sigaction" = "no"; then
29712 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29713echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29714 wxUSE_ON_FATAL_EXCEPTION=no
29715 fi
29716
29717 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29718
29719
29720 ac_ext=cc
29721ac_cpp='$CXXCPP $CPPFLAGS'
29722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29725
29726
29727 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29728echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29729if test "${wx_cv_type_sa_handler+set}" = set; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29731else
29732
29733 cat >conftest.$ac_ext <<_ACEOF
29734/* confdefs.h. */
29735_ACEOF
29736cat confdefs.h >>conftest.$ac_ext
29737cat >>conftest.$ac_ext <<_ACEOF
29738/* end confdefs.h. */
29739#include <signal.h>
29740int
29741main ()
29742{
29743
29744 extern void testSigHandler(int);
29745
29746 struct sigaction sa;
29747 sa.sa_handler = testSigHandler;
29748
29749 ;
29750 return 0;
29751}
29752_ACEOF
29753rm -f conftest.$ac_objext
29754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29755 (eval $ac_compile) 2>conftest.er1
a848cd7e 29756 ac_status=$?
ac1cb8d3
VS
29757 grep -v '^ *+' conftest.er1 >conftest.err
29758 rm -f conftest.er1
29759 cat conftest.err >&5
a848cd7e
SC
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } &&
2cbbc68d
RD
29762 { ac_try='test -z "$ac_cxx_werror_flag"
29763 || test ! -s conftest.err'
ac1cb8d3
VS
29764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29765 (eval $ac_try) 2>&5
29766 ac_status=$?
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); }; } &&
29769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771 (eval $ac_try) 2>&5
29772 ac_status=$?
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; }; then
29775
29776 wx_cv_type_sa_handler=int
29777
29778else
29779 echo "$as_me: failed program was:" >&5
29780sed 's/^/| /' conftest.$ac_ext >&5
29781
29782
29783 wx_cv_type_sa_handler=void
29784
29785fi
ac1cb8d3 29786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29787
29788fi
29789echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29790echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29791
29792 ac_ext=c
29793ac_cpp='$CPP $CPPFLAGS'
29794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29796ac_compiler_gnu=$ac_cv_c_compiler_gnu
29797
29798
29799 cat >>confdefs.h <<_ACEOF
29800#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29801_ACEOF
29802
29803 fi
29804fi
29805
29806
29807
29808for ac_func in mkstemp mktemp
29809do
29810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29811echo "$as_me:$LINENO: checking for $ac_func" >&5
29812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29813if eval "test \"\${$as_ac_var+set}\" = set"; then
29814 echo $ECHO_N "(cached) $ECHO_C" >&6
29815else
29816 cat >conftest.$ac_ext <<_ACEOF
29817/* confdefs.h. */
29818_ACEOF
29819cat confdefs.h >>conftest.$ac_ext
29820cat >>conftest.$ac_ext <<_ACEOF
29821/* end confdefs.h. */
ac1cb8d3
VS
29822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29824#define $ac_func innocuous_$ac_func
29825
a848cd7e
SC
29826/* System header to define __stub macros and hopefully few prototypes,
29827 which can conflict with char $ac_func (); below.
29828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29829 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29830
a848cd7e
SC
29831#ifdef __STDC__
29832# include <limits.h>
29833#else
29834# include <assert.h>
29835#endif
ac1cb8d3
VS
29836
29837#undef $ac_func
29838
a848cd7e
SC
29839/* Override any gcc2 internal prototype to avoid an error. */
29840#ifdef __cplusplus
29841extern "C"
29842{
29843#endif
29844/* We use char because int might match the return type of a gcc2
29845 builtin and then its argument prototype would still apply. */
29846char $ac_func ();
29847/* The GNU C library defines this for functions which it implements
29848 to always fail with ENOSYS. Some functions are actually named
29849 something starting with __ and the normal name is an alias. */
29850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29851choke me
29852#else
29853char (*f) () = $ac_func;
29854#endif
29855#ifdef __cplusplus
29856}
29857#endif
29858
29859int
29860main ()
29861{
29862return f != $ac_func;
29863 ;
29864 return 0;
29865}
29866_ACEOF
29867rm -f conftest.$ac_objext conftest$ac_exeext
29868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29869 (eval $ac_link) 2>conftest.er1
a848cd7e 29870 ac_status=$?
ac1cb8d3
VS
29871 grep -v '^ *+' conftest.er1 >conftest.err
29872 rm -f conftest.er1
29873 cat conftest.err >&5
a848cd7e
SC
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); } &&
2cbbc68d
RD
29876 { ac_try='test -z "$ac_c_werror_flag"
29877 || test ! -s conftest.err'
ac1cb8d3
VS
29878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29879 (eval $ac_try) 2>&5
29880 ac_status=$?
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); }; } &&
29883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29885 (eval $ac_try) 2>&5
29886 ac_status=$?
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; }; then
29889 eval "$as_ac_var=yes"
29890else
29891 echo "$as_me: failed program was:" >&5
29892sed 's/^/| /' conftest.$ac_ext >&5
29893
29894eval "$as_ac_var=no"
29895fi
ac1cb8d3
VS
29896rm -f conftest.err conftest.$ac_objext \
29897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29898fi
29899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29900echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29901if test `eval echo '${'$as_ac_var'}'` = yes; then
29902 cat >>confdefs.h <<_ACEOF
29903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29904_ACEOF
29905 break
29906fi
29907done
29908
29909
29910echo "$as_me:$LINENO: checking for statfs" >&5
29911echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29912if test "${wx_cv_func_statfs+set}" = set; then
29913 echo $ECHO_N "(cached) $ECHO_C" >&6
29914else
29915 cat >conftest.$ac_ext <<_ACEOF
29916/* confdefs.h. */
29917_ACEOF
29918cat confdefs.h >>conftest.$ac_ext
29919cat >>conftest.$ac_ext <<_ACEOF
29920/* end confdefs.h. */
29921
29922 #if defined(__BSD__)
29923 #include <sys/param.h>
29924 #include <sys/mount.h>
29925 #else
29926 #include <sys/vfs.h>
29927 #endif
29928
29929int
29930main ()
29931{
29932
29933 long l;
29934 struct statfs fs;
29935 statfs("/", &fs);
29936 l = fs.f_bsize;
29937 l += fs.f_blocks;
29938 l += fs.f_bavail;
29939
29940 ;
29941 return 0;
29942}
29943_ACEOF
29944rm -f conftest.$ac_objext
29945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29946 (eval $ac_compile) 2>conftest.er1
a848cd7e 29947 ac_status=$?
ac1cb8d3
VS
29948 grep -v '^ *+' conftest.er1 >conftest.err
29949 rm -f conftest.er1
29950 cat conftest.err >&5
a848cd7e
SC
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); } &&
2cbbc68d
RD
29953 { ac_try='test -z "$ac_c_werror_flag"
29954 || test ! -s conftest.err'
ac1cb8d3
VS
29955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29956 (eval $ac_try) 2>&5
29957 ac_status=$?
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); }; } &&
29960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29962 (eval $ac_try) 2>&5
29963 ac_status=$?
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); }; }; then
29966
29967 wx_cv_func_statfs=yes
29968
29969else
29970 echo "$as_me: failed program was:" >&5
29971sed 's/^/| /' conftest.$ac_ext >&5
29972
29973
29974 wx_cv_func_statfs=no
29975
29976
29977fi
ac1cb8d3 29978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29979
29980fi
29981echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29982echo "${ECHO_T}$wx_cv_func_statfs" >&6
29983
29984if test "$wx_cv_func_statfs" = "yes"; then
29985 wx_cv_type_statvfs_t="struct statfs"
29986 cat >>confdefs.h <<\_ACEOF
29987#define HAVE_STATFS 1
29988_ACEOF
29989
29990else
29991 echo "$as_me:$LINENO: checking for statvfs" >&5
29992echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29993if test "${wx_cv_func_statvfs+set}" = set; then
29994 echo $ECHO_N "(cached) $ECHO_C" >&6
29995else
29996 cat >conftest.$ac_ext <<_ACEOF
29997/* confdefs.h. */
29998_ACEOF
29999cat confdefs.h >>conftest.$ac_ext
30000cat >>conftest.$ac_ext <<_ACEOF
30001/* end confdefs.h. */
30002
30003 #include <stddef.h>
30004 #include <sys/statvfs.h>
30005
30006int
30007main ()
30008{
30009
30010 statvfs("/", NULL);
30011
30012 ;
30013 return 0;
30014}
30015_ACEOF
30016rm -f conftest.$ac_objext
30017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30018 (eval $ac_compile) 2>conftest.er1
a848cd7e 30019 ac_status=$?
ac1cb8d3
VS
30020 grep -v '^ *+' conftest.er1 >conftest.err
30021 rm -f conftest.er1
30022 cat conftest.err >&5
a848cd7e
SC
30023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024 (exit $ac_status); } &&
2cbbc68d
RD
30025 { ac_try='test -z "$ac_c_werror_flag"
30026 || test ! -s conftest.err'
ac1cb8d3
VS
30027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30028 (eval $ac_try) 2>&5
30029 ac_status=$?
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); }; } &&
30032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30034 (eval $ac_try) 2>&5
30035 ac_status=$?
30036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037 (exit $ac_status); }; }; then
30038 wx_cv_func_statvfs=yes
30039else
30040 echo "$as_me: failed program was:" >&5
30041sed 's/^/| /' conftest.$ac_ext >&5
30042
30043wx_cv_func_statvfs=no
30044
30045fi
ac1cb8d3 30046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30047
30048fi
30049echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30050echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30051
30052 if test "$wx_cv_func_statvfs" = "yes"; then
30053
30054
30055 ac_ext=cc
30056ac_cpp='$CXXCPP $CPPFLAGS'
30057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30060
30061
30062 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30063echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30064if test "${wx_cv_type_statvfs_t+set}" = set; then
30065 echo $ECHO_N "(cached) $ECHO_C" >&6
30066else
30067 cat >conftest.$ac_ext <<_ACEOF
30068/* confdefs.h. */
30069_ACEOF
30070cat confdefs.h >>conftest.$ac_ext
30071cat >>conftest.$ac_ext <<_ACEOF
30072/* end confdefs.h. */
30073
30074 #include <sys/statvfs.h>
30075
30076int
30077main ()
30078{
30079
30080 long l;
30081 statvfs_t fs;
30082 statvfs("/", &fs);
30083 l = fs.f_bsize;
30084 l += fs.f_blocks;
30085 l += fs.f_bavail;
30086
30087 ;
30088 return 0;
30089}
30090_ACEOF
30091rm -f conftest.$ac_objext
30092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30093 (eval $ac_compile) 2>conftest.er1
a848cd7e 30094 ac_status=$?
ac1cb8d3
VS
30095 grep -v '^ *+' conftest.er1 >conftest.err
30096 rm -f conftest.er1
30097 cat conftest.err >&5
a848cd7e
SC
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); } &&
2cbbc68d
RD
30100 { ac_try='test -z "$ac_cxx_werror_flag"
30101 || test ! -s conftest.err'
ac1cb8d3
VS
30102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30103 (eval $ac_try) 2>&5
30104 ac_status=$?
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); }; } &&
30107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30109 (eval $ac_try) 2>&5
30110 ac_status=$?
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); }; }; then
30113 wx_cv_type_statvfs_t=statvfs_t
30114else
30115 echo "$as_me: failed program was:" >&5
30116sed 's/^/| /' conftest.$ac_ext >&5
30117
30118
30119 cat >conftest.$ac_ext <<_ACEOF
30120/* confdefs.h. */
30121_ACEOF
30122cat confdefs.h >>conftest.$ac_ext
30123cat >>conftest.$ac_ext <<_ACEOF
30124/* end confdefs.h. */
30125
30126 #include <sys/statvfs.h>
30127
30128int
30129main ()
30130{
30131
30132 long l;
30133 struct statvfs fs;
30134 statvfs("/", &fs);
30135 l = fs.f_bsize;
30136 l += fs.f_blocks;
30137 l += fs.f_bavail;
30138
30139 ;
30140 return 0;
30141}
30142_ACEOF
30143rm -f conftest.$ac_objext
30144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30145 (eval $ac_compile) 2>conftest.er1
a848cd7e 30146 ac_status=$?
ac1cb8d3
VS
30147 grep -v '^ *+' conftest.er1 >conftest.err
30148 rm -f conftest.er1
30149 cat conftest.err >&5
a848cd7e
SC
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); } &&
2cbbc68d
RD
30152 { ac_try='test -z "$ac_cxx_werror_flag"
30153 || test ! -s conftest.err'
ac1cb8d3
VS
30154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30155 (eval $ac_try) 2>&5
30156 ac_status=$?
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); }; } &&
30159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30161 (eval $ac_try) 2>&5
30162 ac_status=$?
30163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164 (exit $ac_status); }; }; then
30165 wx_cv_type_statvfs_t="struct statvfs"
30166else
30167 echo "$as_me: failed program was:" >&5
30168sed 's/^/| /' conftest.$ac_ext >&5
30169
30170wx_cv_type_statvfs_t="unknown"
30171
30172fi
ac1cb8d3 30173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30174
30175
30176fi
ac1cb8d3 30177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30178
30179fi
30180echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30181echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30182
30183 ac_ext=c
30184ac_cpp='$CPP $CPPFLAGS'
30185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30187ac_compiler_gnu=$ac_cv_c_compiler_gnu
30188
30189
30190 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30191 cat >>confdefs.h <<\_ACEOF
30192#define HAVE_STATVFS 1
30193_ACEOF
30194
30195 fi
30196 else
30197 wx_cv_type_statvfs_t="unknown"
30198 fi
30199fi
30200
30201if test "$wx_cv_type_statvfs_t" != "unknown"; then
30202 cat >>confdefs.h <<_ACEOF
30203#define WX_STATFS_T $wx_cv_type_statvfs_t
30204_ACEOF
30205
30206else
30207 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30208echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30209fi
30210
30211if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30212
30213
30214for ac_func in fcntl flock
30215do
30216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30217echo "$as_me:$LINENO: checking for $ac_func" >&5
30218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30219if eval "test \"\${$as_ac_var+set}\" = set"; then
30220 echo $ECHO_N "(cached) $ECHO_C" >&6
30221else
30222 cat >conftest.$ac_ext <<_ACEOF
30223/* confdefs.h. */
30224_ACEOF
30225cat confdefs.h >>conftest.$ac_ext
30226cat >>conftest.$ac_ext <<_ACEOF
30227/* end confdefs.h. */
ac1cb8d3
VS
30228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30230#define $ac_func innocuous_$ac_func
30231
a848cd7e
SC
30232/* System header to define __stub macros and hopefully few prototypes,
30233 which can conflict with char $ac_func (); below.
30234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30235 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30236
a848cd7e
SC
30237#ifdef __STDC__
30238# include <limits.h>
30239#else
30240# include <assert.h>
30241#endif
ac1cb8d3
VS
30242
30243#undef $ac_func
30244
a848cd7e
SC
30245/* Override any gcc2 internal prototype to avoid an error. */
30246#ifdef __cplusplus
30247extern "C"
30248{
30249#endif
30250/* We use char because int might match the return type of a gcc2
30251 builtin and then its argument prototype would still apply. */
30252char $ac_func ();
30253/* The GNU C library defines this for functions which it implements
30254 to always fail with ENOSYS. Some functions are actually named
30255 something starting with __ and the normal name is an alias. */
30256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30257choke me
30258#else
30259char (*f) () = $ac_func;
30260#endif
30261#ifdef __cplusplus
30262}
30263#endif
30264
30265int
30266main ()
30267{
30268return f != $ac_func;
30269 ;
30270 return 0;
30271}
30272_ACEOF
30273rm -f conftest.$ac_objext conftest$ac_exeext
30274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30275 (eval $ac_link) 2>conftest.er1
a848cd7e 30276 ac_status=$?
ac1cb8d3
VS
30277 grep -v '^ *+' conftest.er1 >conftest.err
30278 rm -f conftest.er1
30279 cat conftest.err >&5
a848cd7e
SC
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); } &&
2cbbc68d
RD
30282 { ac_try='test -z "$ac_c_werror_flag"
30283 || test ! -s conftest.err'
ac1cb8d3
VS
30284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285 (eval $ac_try) 2>&5
30286 ac_status=$?
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; } &&
30289 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30291 (eval $ac_try) 2>&5
30292 ac_status=$?
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); }; }; then
30295 eval "$as_ac_var=yes"
30296else
30297 echo "$as_me: failed program was:" >&5
30298sed 's/^/| /' conftest.$ac_ext >&5
30299
30300eval "$as_ac_var=no"
30301fi
ac1cb8d3
VS
30302rm -f conftest.err conftest.$ac_objext \
30303 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30304fi
30305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30306echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30307if test `eval echo '${'$as_ac_var'}'` = yes; then
30308 cat >>confdefs.h <<_ACEOF
30309#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30310_ACEOF
30311 break
30312fi
30313done
30314
30315
30316 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30317 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30318echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30319 wxUSE_SNGLINST_CHECKER=no
30320 fi
30321fi
30322
30323
30324for ac_func in timegm
30325do
30326as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30327echo "$as_me:$LINENO: checking for $ac_func" >&5
30328echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30329if eval "test \"\${$as_ac_var+set}\" = set"; then
30330 echo $ECHO_N "(cached) $ECHO_C" >&6
30331else
30332 cat >conftest.$ac_ext <<_ACEOF
30333/* confdefs.h. */
30334_ACEOF
30335cat confdefs.h >>conftest.$ac_ext
30336cat >>conftest.$ac_ext <<_ACEOF
30337/* end confdefs.h. */
ac1cb8d3
VS
30338/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30340#define $ac_func innocuous_$ac_func
30341
a848cd7e
SC
30342/* System header to define __stub macros and hopefully few prototypes,
30343 which can conflict with char $ac_func (); below.
30344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30345 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30346
a848cd7e
SC
30347#ifdef __STDC__
30348# include <limits.h>
30349#else
30350# include <assert.h>
30351#endif
ac1cb8d3
VS
30352
30353#undef $ac_func
30354
a848cd7e
SC
30355/* Override any gcc2 internal prototype to avoid an error. */
30356#ifdef __cplusplus
30357extern "C"
30358{
30359#endif
30360/* We use char because int might match the return type of a gcc2
30361 builtin and then its argument prototype would still apply. */
30362char $ac_func ();
30363/* The GNU C library defines this for functions which it implements
30364 to always fail with ENOSYS. Some functions are actually named
30365 something starting with __ and the normal name is an alias. */
30366#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30367choke me
30368#else
30369char (*f) () = $ac_func;
30370#endif
30371#ifdef __cplusplus
30372}
30373#endif
30374
30375int
30376main ()
30377{
30378return f != $ac_func;
30379 ;
30380 return 0;
30381}
30382_ACEOF
30383rm -f conftest.$ac_objext conftest$ac_exeext
30384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30385 (eval $ac_link) 2>conftest.er1
a848cd7e 30386 ac_status=$?
ac1cb8d3
VS
30387 grep -v '^ *+' conftest.er1 >conftest.err
30388 rm -f conftest.er1
30389 cat conftest.err >&5
a848cd7e
SC
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); } &&
2cbbc68d
RD
30392 { ac_try='test -z "$ac_c_werror_flag"
30393 || test ! -s conftest.err'
ac1cb8d3
VS
30394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30395 (eval $ac_try) 2>&5
30396 ac_status=$?
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); }; } &&
30399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30401 (eval $ac_try) 2>&5
30402 ac_status=$?
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); }; }; then
30405 eval "$as_ac_var=yes"
30406else
30407 echo "$as_me: failed program was:" >&5
30408sed 's/^/| /' conftest.$ac_ext >&5
30409
30410eval "$as_ac_var=no"
30411fi
ac1cb8d3
VS
30412rm -f conftest.err conftest.$ac_objext \
30413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30414fi
30415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30416echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30417if test `eval echo '${'$as_ac_var'}'` = yes; then
30418 cat >>confdefs.h <<_ACEOF
30419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30420_ACEOF
30421
30422fi
30423done
30424
30425
30426
30427
30428for ac_func in putenv setenv
30429do
30430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30431echo "$as_me:$LINENO: checking for $ac_func" >&5
30432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30433if eval "test \"\${$as_ac_var+set}\" = set"; then
30434 echo $ECHO_N "(cached) $ECHO_C" >&6
30435else
30436 cat >conftest.$ac_ext <<_ACEOF
30437/* confdefs.h. */
30438_ACEOF
30439cat confdefs.h >>conftest.$ac_ext
30440cat >>conftest.$ac_ext <<_ACEOF
30441/* end confdefs.h. */
ac1cb8d3
VS
30442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30444#define $ac_func innocuous_$ac_func
30445
a848cd7e
SC
30446/* System header to define __stub macros and hopefully few prototypes,
30447 which can conflict with char $ac_func (); below.
30448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30449 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30450
a848cd7e
SC
30451#ifdef __STDC__
30452# include <limits.h>
30453#else
30454# include <assert.h>
30455#endif
ac1cb8d3
VS
30456
30457#undef $ac_func
30458
a848cd7e
SC
30459/* Override any gcc2 internal prototype to avoid an error. */
30460#ifdef __cplusplus
30461extern "C"
30462{
30463#endif
30464/* We use char because int might match the return type of a gcc2
30465 builtin and then its argument prototype would still apply. */
30466char $ac_func ();
30467/* The GNU C library defines this for functions which it implements
30468 to always fail with ENOSYS. Some functions are actually named
30469 something starting with __ and the normal name is an alias. */
30470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30471choke me
30472#else
30473char (*f) () = $ac_func;
30474#endif
30475#ifdef __cplusplus
30476}
30477#endif
30478
30479int
30480main ()
30481{
30482return f != $ac_func;
30483 ;
30484 return 0;
30485}
30486_ACEOF
30487rm -f conftest.$ac_objext conftest$ac_exeext
30488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30489 (eval $ac_link) 2>conftest.er1
a848cd7e 30490 ac_status=$?
ac1cb8d3
VS
30491 grep -v '^ *+' conftest.er1 >conftest.err
30492 rm -f conftest.er1
30493 cat conftest.err >&5
a848cd7e
SC
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); } &&
2cbbc68d
RD
30496 { ac_try='test -z "$ac_c_werror_flag"
30497 || test ! -s conftest.err'
ac1cb8d3
VS
30498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30499 (eval $ac_try) 2>&5
30500 ac_status=$?
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); }; } &&
30503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30505 (eval $ac_try) 2>&5
30506 ac_status=$?
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); }; }; then
30509 eval "$as_ac_var=yes"
30510else
30511 echo "$as_me: failed program was:" >&5
30512sed 's/^/| /' conftest.$ac_ext >&5
30513
30514eval "$as_ac_var=no"
30515fi
ac1cb8d3
VS
30516rm -f conftest.err conftest.$ac_objext \
30517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30518fi
30519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30521if test `eval echo '${'$as_ac_var'}'` = yes; then
30522 cat >>confdefs.h <<_ACEOF
30523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30524_ACEOF
30525 break
30526fi
30527done
30528
30529
30530HAVE_SOME_SLEEP_FUNC=0
30531if test "$USE_BEOS" = 1; then
30532 cat >>confdefs.h <<\_ACEOF
30533#define HAVE_SLEEP 1
30534_ACEOF
30535
30536 HAVE_SOME_SLEEP_FUNC=1
30537fi
30538
30539if test "$USE_DARWIN" = 1; then
30540 cat >>confdefs.h <<\_ACEOF
30541#define HAVE_USLEEP 1
30542_ACEOF
30543
30544 HAVE_SOME_SLEEP_FUNC=1
30545fi
30546
30547if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30548 POSIX4_LINK=
30549
30550for ac_func in nanosleep
30551do
30552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30553echo "$as_me:$LINENO: checking for $ac_func" >&5
30554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30555if eval "test \"\${$as_ac_var+set}\" = set"; then
30556 echo $ECHO_N "(cached) $ECHO_C" >&6
30557else
30558 cat >conftest.$ac_ext <<_ACEOF
30559/* confdefs.h. */
30560_ACEOF
30561cat confdefs.h >>conftest.$ac_ext
30562cat >>conftest.$ac_ext <<_ACEOF
30563/* end confdefs.h. */
ac1cb8d3
VS
30564/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30566#define $ac_func innocuous_$ac_func
30567
a848cd7e
SC
30568/* System header to define __stub macros and hopefully few prototypes,
30569 which can conflict with char $ac_func (); below.
30570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30571 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30572
a848cd7e
SC
30573#ifdef __STDC__
30574# include <limits.h>
30575#else
30576# include <assert.h>
30577#endif
ac1cb8d3
VS
30578
30579#undef $ac_func
30580
a848cd7e
SC
30581/* Override any gcc2 internal prototype to avoid an error. */
30582#ifdef __cplusplus
30583extern "C"
30584{
30585#endif
30586/* We use char because int might match the return type of a gcc2
30587 builtin and then its argument prototype would still apply. */
30588char $ac_func ();
30589/* The GNU C library defines this for functions which it implements
30590 to always fail with ENOSYS. Some functions are actually named
30591 something starting with __ and the normal name is an alias. */
30592#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30593choke me
30594#else
30595char (*f) () = $ac_func;
30596#endif
30597#ifdef __cplusplus
30598}
30599#endif
30600
30601int
30602main ()
30603{
30604return f != $ac_func;
30605 ;
30606 return 0;
30607}
30608_ACEOF
30609rm -f conftest.$ac_objext conftest$ac_exeext
30610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30611 (eval $ac_link) 2>conftest.er1
a848cd7e 30612 ac_status=$?
ac1cb8d3
VS
30613 grep -v '^ *+' conftest.er1 >conftest.err
30614 rm -f conftest.er1
30615 cat conftest.err >&5
a848cd7e
SC
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); } &&
2cbbc68d
RD
30618 { ac_try='test -z "$ac_c_werror_flag"
30619 || test ! -s conftest.err'
ac1cb8d3
VS
30620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30621 (eval $ac_try) 2>&5
30622 ac_status=$?
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); }; } &&
30625 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30627 (eval $ac_try) 2>&5
30628 ac_status=$?
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); }; }; then
30631 eval "$as_ac_var=yes"
30632else
30633 echo "$as_me: failed program was:" >&5
30634sed 's/^/| /' conftest.$ac_ext >&5
30635
30636eval "$as_ac_var=no"
30637fi
ac1cb8d3
VS
30638rm -f conftest.err conftest.$ac_objext \
30639 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30640fi
30641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30642echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30643if test `eval echo '${'$as_ac_var'}'` = yes; then
30644 cat >>confdefs.h <<_ACEOF
30645#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30646_ACEOF
30647 cat >>confdefs.h <<\_ACEOF
30648#define HAVE_NANOSLEEP 1
30649_ACEOF
30650
30651else
30652
30653 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30654echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30655if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30656 echo $ECHO_N "(cached) $ECHO_C" >&6
30657else
30658 ac_check_lib_save_LIBS=$LIBS
30659LIBS="-lposix4 $LIBS"
30660cat >conftest.$ac_ext <<_ACEOF
30661/* confdefs.h. */
30662_ACEOF
30663cat confdefs.h >>conftest.$ac_ext
30664cat >>conftest.$ac_ext <<_ACEOF
30665/* end confdefs.h. */
30666
30667/* Override any gcc2 internal prototype to avoid an error. */
30668#ifdef __cplusplus
30669extern "C"
30670#endif
30671/* We use char because int might match the return type of a gcc2
30672 builtin and then its argument prototype would still apply. */
30673char nanosleep ();
30674int
30675main ()
30676{
30677nanosleep ();
30678 ;
30679 return 0;
30680}
30681_ACEOF
30682rm -f conftest.$ac_objext conftest$ac_exeext
30683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30684 (eval $ac_link) 2>conftest.er1
a848cd7e 30685 ac_status=$?
ac1cb8d3
VS
30686 grep -v '^ *+' conftest.er1 >conftest.err
30687 rm -f conftest.er1
30688 cat conftest.err >&5
a848cd7e
SC
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); } &&
2cbbc68d
RD
30691 { ac_try='test -z "$ac_c_werror_flag"
30692 || test ! -s conftest.err'
ac1cb8d3
VS
30693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30694 (eval $ac_try) 2>&5
30695 ac_status=$?
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697 (exit $ac_status); }; } &&
30698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30700 (eval $ac_try) 2>&5
30701 ac_status=$?
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); }; }; then
30704 ac_cv_lib_posix4_nanosleep=yes
30705else
30706 echo "$as_me: failed program was:" >&5
30707sed 's/^/| /' conftest.$ac_ext >&5
30708
30709ac_cv_lib_posix4_nanosleep=no
30710fi
ac1cb8d3
VS
30711rm -f conftest.err conftest.$ac_objext \
30712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30713LIBS=$ac_check_lib_save_LIBS
30714fi
30715echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30716echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30717if test $ac_cv_lib_posix4_nanosleep = yes; then
30718
30719 cat >>confdefs.h <<\_ACEOF
30720#define HAVE_NANOSLEEP 1
30721_ACEOF
30722
30723 POSIX4_LINK=" -lposix4"
30724
30725else
30726
30727
30728for ac_func in usleep
30729do
30730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30731echo "$as_me:$LINENO: checking for $ac_func" >&5
30732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30733if eval "test \"\${$as_ac_var+set}\" = set"; then
30734 echo $ECHO_N "(cached) $ECHO_C" >&6
30735else
30736 cat >conftest.$ac_ext <<_ACEOF
30737/* confdefs.h. */
30738_ACEOF
30739cat confdefs.h >>conftest.$ac_ext
30740cat >>conftest.$ac_ext <<_ACEOF
30741/* end confdefs.h. */
ac1cb8d3
VS
30742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30744#define $ac_func innocuous_$ac_func
30745
a848cd7e
SC
30746/* System header to define __stub macros and hopefully few prototypes,
30747 which can conflict with char $ac_func (); below.
30748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30749 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30750
a848cd7e
SC
30751#ifdef __STDC__
30752# include <limits.h>
30753#else
30754# include <assert.h>
30755#endif
ac1cb8d3
VS
30756
30757#undef $ac_func
30758
a848cd7e
SC
30759/* Override any gcc2 internal prototype to avoid an error. */
30760#ifdef __cplusplus
30761extern "C"
30762{
30763#endif
30764/* We use char because int might match the return type of a gcc2
30765 builtin and then its argument prototype would still apply. */
30766char $ac_func ();
30767/* The GNU C library defines this for functions which it implements
30768 to always fail with ENOSYS. Some functions are actually named
30769 something starting with __ and the normal name is an alias. */
30770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30771choke me
30772#else
30773char (*f) () = $ac_func;
30774#endif
30775#ifdef __cplusplus
30776}
30777#endif
30778
30779int
30780main ()
30781{
30782return f != $ac_func;
30783 ;
30784 return 0;
30785}
30786_ACEOF
30787rm -f conftest.$ac_objext conftest$ac_exeext
30788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30789 (eval $ac_link) 2>conftest.er1
a848cd7e 30790 ac_status=$?
ac1cb8d3
VS
30791 grep -v '^ *+' conftest.er1 >conftest.err
30792 rm -f conftest.er1
30793 cat conftest.err >&5
a848cd7e
SC
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); } &&
2cbbc68d
RD
30796 { ac_try='test -z "$ac_c_werror_flag"
30797 || test ! -s conftest.err'
ac1cb8d3
VS
30798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30799 (eval $ac_try) 2>&5
30800 ac_status=$?
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); }; } &&
30803 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30805 (eval $ac_try) 2>&5
30806 ac_status=$?
30807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808 (exit $ac_status); }; }; then
30809 eval "$as_ac_var=yes"
30810else
30811 echo "$as_me: failed program was:" >&5
30812sed 's/^/| /' conftest.$ac_ext >&5
30813
30814eval "$as_ac_var=no"
30815fi
ac1cb8d3
VS
30816rm -f conftest.err conftest.$ac_objext \
30817 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30818fi
30819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30820echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30821if test `eval echo '${'$as_ac_var'}'` = yes; then
30822 cat >>confdefs.h <<_ACEOF
30823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30824_ACEOF
30825 cat >>confdefs.h <<\_ACEOF
30826#define HAVE_USLEEP 1
30827_ACEOF
30828
30829else
30830 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30831echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30832
30833fi
30834done
30835
30836
30837
30838fi
30839
30840
30841
30842fi
30843done
30844
30845fi
30846
30847
30848
30849for ac_func in uname gethostname
30850do
30851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30852echo "$as_me:$LINENO: checking for $ac_func" >&5
30853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30854if eval "test \"\${$as_ac_var+set}\" = set"; then
30855 echo $ECHO_N "(cached) $ECHO_C" >&6
30856else
30857 cat >conftest.$ac_ext <<_ACEOF
30858/* confdefs.h. */
30859_ACEOF
30860cat confdefs.h >>conftest.$ac_ext
30861cat >>conftest.$ac_ext <<_ACEOF
30862/* end confdefs.h. */
ac1cb8d3
VS
30863/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30865#define $ac_func innocuous_$ac_func
30866
a848cd7e
SC
30867/* System header to define __stub macros and hopefully few prototypes,
30868 which can conflict with char $ac_func (); below.
30869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30870 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30871
a848cd7e
SC
30872#ifdef __STDC__
30873# include <limits.h>
30874#else
30875# include <assert.h>
30876#endif
ac1cb8d3
VS
30877
30878#undef $ac_func
30879
a848cd7e
SC
30880/* Override any gcc2 internal prototype to avoid an error. */
30881#ifdef __cplusplus
30882extern "C"
30883{
30884#endif
30885/* We use char because int might match the return type of a gcc2
30886 builtin and then its argument prototype would still apply. */
30887char $ac_func ();
30888/* The GNU C library defines this for functions which it implements
30889 to always fail with ENOSYS. Some functions are actually named
30890 something starting with __ and the normal name is an alias. */
30891#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30892choke me
30893#else
30894char (*f) () = $ac_func;
30895#endif
30896#ifdef __cplusplus
30897}
30898#endif
30899
30900int
30901main ()
30902{
30903return f != $ac_func;
30904 ;
30905 return 0;
30906}
30907_ACEOF
30908rm -f conftest.$ac_objext conftest$ac_exeext
30909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30910 (eval $ac_link) 2>conftest.er1
a848cd7e 30911 ac_status=$?
ac1cb8d3
VS
30912 grep -v '^ *+' conftest.er1 >conftest.err
30913 rm -f conftest.er1
30914 cat conftest.err >&5
a848cd7e
SC
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); } &&
2cbbc68d
RD
30917 { ac_try='test -z "$ac_c_werror_flag"
30918 || test ! -s conftest.err'
ac1cb8d3
VS
30919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30920 (eval $ac_try) 2>&5
30921 ac_status=$?
30922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923 (exit $ac_status); }; } &&
30924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30926 (eval $ac_try) 2>&5
30927 ac_status=$?
30928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929 (exit $ac_status); }; }; then
30930 eval "$as_ac_var=yes"
30931else
30932 echo "$as_me: failed program was:" >&5
30933sed 's/^/| /' conftest.$ac_ext >&5
30934
30935eval "$as_ac_var=no"
30936fi
ac1cb8d3
VS
30937rm -f conftest.err conftest.$ac_objext \
30938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30939fi
30940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30941echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30942if test `eval echo '${'$as_ac_var'}'` = yes; then
30943 cat >>confdefs.h <<_ACEOF
30944#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30945_ACEOF
30946 break
30947fi
30948done
30949
30950
30951
30952
30953ac_ext=cc
30954ac_cpp='$CXXCPP $CPPFLAGS'
30955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30958
30959
30960
30961for ac_func in strtok_r
30962do
30963as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30964echo "$as_me:$LINENO: checking for $ac_func" >&5
30965echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30966if eval "test \"\${$as_ac_var+set}\" = set"; then
30967 echo $ECHO_N "(cached) $ECHO_C" >&6
30968else
30969 cat >conftest.$ac_ext <<_ACEOF
30970/* confdefs.h. */
30971_ACEOF
30972cat confdefs.h >>conftest.$ac_ext
30973cat >>conftest.$ac_ext <<_ACEOF
30974/* end confdefs.h. */
ac1cb8d3
VS
30975/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30977#define $ac_func innocuous_$ac_func
30978
a848cd7e
SC
30979/* System header to define __stub macros and hopefully few prototypes,
30980 which can conflict with char $ac_func (); below.
30981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30982 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30983
a848cd7e
SC
30984#ifdef __STDC__
30985# include <limits.h>
30986#else
30987# include <assert.h>
30988#endif
ac1cb8d3
VS
30989
30990#undef $ac_func
30991
a848cd7e
SC
30992/* Override any gcc2 internal prototype to avoid an error. */
30993#ifdef __cplusplus
30994extern "C"
30995{
30996#endif
30997/* We use char because int might match the return type of a gcc2
30998 builtin and then its argument prototype would still apply. */
30999char $ac_func ();
31000/* The GNU C library defines this for functions which it implements
31001 to always fail with ENOSYS. Some functions are actually named
31002 something starting with __ and the normal name is an alias. */
31003#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31004choke me
31005#else
31006char (*f) () = $ac_func;
31007#endif
31008#ifdef __cplusplus
31009}
31010#endif
31011
31012int
31013main ()
31014{
31015return f != $ac_func;
31016 ;
31017 return 0;
31018}
31019_ACEOF
31020rm -f conftest.$ac_objext conftest$ac_exeext
31021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31022 (eval $ac_link) 2>conftest.er1
a848cd7e 31023 ac_status=$?
ac1cb8d3
VS
31024 grep -v '^ *+' conftest.er1 >conftest.err
31025 rm -f conftest.er1
31026 cat conftest.err >&5
a848cd7e
SC
31027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028 (exit $ac_status); } &&
2cbbc68d
RD
31029 { ac_try='test -z "$ac_cxx_werror_flag"
31030 || test ! -s conftest.err'
ac1cb8d3
VS
31031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31032 (eval $ac_try) 2>&5
31033 ac_status=$?
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; } &&
31036 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31038 (eval $ac_try) 2>&5
31039 ac_status=$?
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); }; }; then
31042 eval "$as_ac_var=yes"
31043else
31044 echo "$as_me: failed program was:" >&5
31045sed 's/^/| /' conftest.$ac_ext >&5
31046
31047eval "$as_ac_var=no"
31048fi
ac1cb8d3
VS
31049rm -f conftest.err conftest.$ac_objext \
31050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31051fi
31052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31053echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31054if test `eval echo '${'$as_ac_var'}'` = yes; then
31055 cat >>confdefs.h <<_ACEOF
31056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31057_ACEOF
31058
31059fi
31060done
31061
31062
31063ac_ext=c
31064ac_cpp='$CPP $CPPFLAGS'
31065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31067ac_compiler_gnu=$ac_cv_c_compiler_gnu
31068
31069
31070INET_LINK=
31071
31072for ac_func in inet_addr
31073do
31074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31075echo "$as_me:$LINENO: checking for $ac_func" >&5
31076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31077if eval "test \"\${$as_ac_var+set}\" = set"; then
31078 echo $ECHO_N "(cached) $ECHO_C" >&6
31079else
31080 cat >conftest.$ac_ext <<_ACEOF
31081/* confdefs.h. */
31082_ACEOF
31083cat confdefs.h >>conftest.$ac_ext
31084cat >>conftest.$ac_ext <<_ACEOF
31085/* end confdefs.h. */
ac1cb8d3
VS
31086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31088#define $ac_func innocuous_$ac_func
31089
a848cd7e
SC
31090/* System header to define __stub macros and hopefully few prototypes,
31091 which can conflict with char $ac_func (); below.
31092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31093 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31094
a848cd7e
SC
31095#ifdef __STDC__
31096# include <limits.h>
31097#else
31098# include <assert.h>
31099#endif
ac1cb8d3
VS
31100
31101#undef $ac_func
31102
a848cd7e
SC
31103/* Override any gcc2 internal prototype to avoid an error. */
31104#ifdef __cplusplus
31105extern "C"
31106{
31107#endif
31108/* We use char because int might match the return type of a gcc2
31109 builtin and then its argument prototype would still apply. */
31110char $ac_func ();
31111/* The GNU C library defines this for functions which it implements
31112 to always fail with ENOSYS. Some functions are actually named
31113 something starting with __ and the normal name is an alias. */
31114#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31115choke me
31116#else
31117char (*f) () = $ac_func;
31118#endif
31119#ifdef __cplusplus
31120}
31121#endif
31122
31123int
31124main ()
31125{
31126return f != $ac_func;
31127 ;
31128 return 0;
31129}
31130_ACEOF
31131rm -f conftest.$ac_objext conftest$ac_exeext
31132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31133 (eval $ac_link) 2>conftest.er1
a848cd7e 31134 ac_status=$?
ac1cb8d3
VS
31135 grep -v '^ *+' conftest.er1 >conftest.err
31136 rm -f conftest.er1
31137 cat conftest.err >&5
a848cd7e
SC
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } &&
2cbbc68d
RD
31140 { ac_try='test -z "$ac_c_werror_flag"
31141 || test ! -s conftest.err'
ac1cb8d3
VS
31142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31143 (eval $ac_try) 2>&5
31144 ac_status=$?
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); }; } &&
31147 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31149 (eval $ac_try) 2>&5
31150 ac_status=$?
31151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31152 (exit $ac_status); }; }; then
31153 eval "$as_ac_var=yes"
31154else
31155 echo "$as_me: failed program was:" >&5
31156sed 's/^/| /' conftest.$ac_ext >&5
31157
31158eval "$as_ac_var=no"
31159fi
ac1cb8d3
VS
31160rm -f conftest.err conftest.$ac_objext \
31161 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31162fi
31163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31164echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31165if test `eval echo '${'$as_ac_var'}'` = yes; then
31166 cat >>confdefs.h <<_ACEOF
31167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31168_ACEOF
31169 cat >>confdefs.h <<\_ACEOF
31170#define HAVE_INET_ADDR 1
31171_ACEOF
31172
31173else
31174
31175 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31176echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31177if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31178 echo $ECHO_N "(cached) $ECHO_C" >&6
31179else
31180 ac_check_lib_save_LIBS=$LIBS
31181LIBS="-lnsl $LIBS"
31182cat >conftest.$ac_ext <<_ACEOF
31183/* confdefs.h. */
31184_ACEOF
31185cat confdefs.h >>conftest.$ac_ext
31186cat >>conftest.$ac_ext <<_ACEOF
31187/* end confdefs.h. */
31188
31189/* Override any gcc2 internal prototype to avoid an error. */
31190#ifdef __cplusplus
31191extern "C"
31192#endif
31193/* We use char because int might match the return type of a gcc2
31194 builtin and then its argument prototype would still apply. */
31195char inet_addr ();
31196int
31197main ()
31198{
31199inet_addr ();
31200 ;
31201 return 0;
31202}
31203_ACEOF
31204rm -f conftest.$ac_objext conftest$ac_exeext
31205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31206 (eval $ac_link) 2>conftest.er1
a848cd7e 31207 ac_status=$?
ac1cb8d3
VS
31208 grep -v '^ *+' conftest.er1 >conftest.err
31209 rm -f conftest.er1
31210 cat conftest.err >&5
a848cd7e
SC
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); } &&
2cbbc68d
RD
31213 { ac_try='test -z "$ac_c_werror_flag"
31214 || test ! -s conftest.err'
ac1cb8d3
VS
31215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31216 (eval $ac_try) 2>&5
31217 ac_status=$?
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); }; } &&
31220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31222 (eval $ac_try) 2>&5
31223 ac_status=$?
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); }; }; then
31226 ac_cv_lib_nsl_inet_addr=yes
31227else
31228 echo "$as_me: failed program was:" >&5
31229sed 's/^/| /' conftest.$ac_ext >&5
31230
31231ac_cv_lib_nsl_inet_addr=no
31232fi
ac1cb8d3
VS
31233rm -f conftest.err conftest.$ac_objext \
31234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31235LIBS=$ac_check_lib_save_LIBS
31236fi
31237echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31238echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31239if test $ac_cv_lib_nsl_inet_addr = yes; then
31240 INET_LINK="nsl"
31241else
31242
31243 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31244echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31245if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31246 echo $ECHO_N "(cached) $ECHO_C" >&6
31247else
31248 ac_check_lib_save_LIBS=$LIBS
31249LIBS="-lresolv $LIBS"
31250cat >conftest.$ac_ext <<_ACEOF
31251/* confdefs.h. */
31252_ACEOF
31253cat confdefs.h >>conftest.$ac_ext
31254cat >>conftest.$ac_ext <<_ACEOF
31255/* end confdefs.h. */
31256
31257/* Override any gcc2 internal prototype to avoid an error. */
31258#ifdef __cplusplus
31259extern "C"
31260#endif
31261/* We use char because int might match the return type of a gcc2
31262 builtin and then its argument prototype would still apply. */
31263char inet_addr ();
31264int
31265main ()
31266{
31267inet_addr ();
31268 ;
31269 return 0;
31270}
31271_ACEOF
31272rm -f conftest.$ac_objext conftest$ac_exeext
31273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31274 (eval $ac_link) 2>conftest.er1
a848cd7e 31275 ac_status=$?
ac1cb8d3
VS
31276 grep -v '^ *+' conftest.er1 >conftest.err
31277 rm -f conftest.er1
31278 cat conftest.err >&5
a848cd7e
SC
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); } &&
2cbbc68d
RD
31281 { ac_try='test -z "$ac_c_werror_flag"
31282 || test ! -s conftest.err'
ac1cb8d3
VS
31283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31284 (eval $ac_try) 2>&5
31285 ac_status=$?
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); }; } &&
31288 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31290 (eval $ac_try) 2>&5
31291 ac_status=$?
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); }; }; then
31294 ac_cv_lib_resolv_inet_addr=yes
31295else
31296 echo "$as_me: failed program was:" >&5
31297sed 's/^/| /' conftest.$ac_ext >&5
31298
31299ac_cv_lib_resolv_inet_addr=no
31300fi
ac1cb8d3
VS
31301rm -f conftest.err conftest.$ac_objext \
31302 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31303LIBS=$ac_check_lib_save_LIBS
31304fi
31305echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31306echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31307if test $ac_cv_lib_resolv_inet_addr = yes; then
31308 INET_LINK="resolv"
31309else
31310
31311 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31312echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31313if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31314 echo $ECHO_N "(cached) $ECHO_C" >&6
31315else
31316 ac_check_lib_save_LIBS=$LIBS
31317LIBS="-lsocket $LIBS"
31318cat >conftest.$ac_ext <<_ACEOF
31319/* confdefs.h. */
31320_ACEOF
31321cat confdefs.h >>conftest.$ac_ext
31322cat >>conftest.$ac_ext <<_ACEOF
31323/* end confdefs.h. */
31324
31325/* Override any gcc2 internal prototype to avoid an error. */
31326#ifdef __cplusplus
31327extern "C"
31328#endif
31329/* We use char because int might match the return type of a gcc2
31330 builtin and then its argument prototype would still apply. */
31331char inet_addr ();
31332int
31333main ()
31334{
31335inet_addr ();
31336 ;
31337 return 0;
31338}
31339_ACEOF
31340rm -f conftest.$ac_objext conftest$ac_exeext
31341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31342 (eval $ac_link) 2>conftest.er1
a848cd7e 31343 ac_status=$?
ac1cb8d3
VS
31344 grep -v '^ *+' conftest.er1 >conftest.err
31345 rm -f conftest.er1
31346 cat conftest.err >&5
a848cd7e
SC
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); } &&
2cbbc68d
RD
31349 { ac_try='test -z "$ac_c_werror_flag"
31350 || test ! -s conftest.err'
ac1cb8d3
VS
31351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352 (eval $ac_try) 2>&5
31353 ac_status=$?
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); }; } &&
31356 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31358 (eval $ac_try) 2>&5
31359 ac_status=$?
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; }; then
31362 ac_cv_lib_socket_inet_addr=yes
31363else
31364 echo "$as_me: failed program was:" >&5
31365sed 's/^/| /' conftest.$ac_ext >&5
31366
31367ac_cv_lib_socket_inet_addr=no
31368fi
ac1cb8d3
VS
31369rm -f conftest.err conftest.$ac_objext \
31370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31371LIBS=$ac_check_lib_save_LIBS
31372fi
31373echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31374echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31375if test $ac_cv_lib_socket_inet_addr = yes; then
31376 INET_LINK="socket"
31377
31378fi
31379
31380
31381
31382fi
31383
31384
31385
31386fi
31387
31388
31389
31390fi
31391done
31392
31393
31394
31395for ac_func in inet_aton
31396do
31397as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31398echo "$as_me:$LINENO: checking for $ac_func" >&5
31399echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31400if eval "test \"\${$as_ac_var+set}\" = set"; then
31401 echo $ECHO_N "(cached) $ECHO_C" >&6
31402else
31403 cat >conftest.$ac_ext <<_ACEOF
31404/* confdefs.h. */
31405_ACEOF
31406cat confdefs.h >>conftest.$ac_ext
31407cat >>conftest.$ac_ext <<_ACEOF
31408/* end confdefs.h. */
ac1cb8d3
VS
31409/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31411#define $ac_func innocuous_$ac_func
31412
a848cd7e
SC
31413/* System header to define __stub macros and hopefully few prototypes,
31414 which can conflict with char $ac_func (); below.
31415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31416 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31417
a848cd7e
SC
31418#ifdef __STDC__
31419# include <limits.h>
31420#else
31421# include <assert.h>
31422#endif
ac1cb8d3
VS
31423
31424#undef $ac_func
31425
a848cd7e
SC
31426/* Override any gcc2 internal prototype to avoid an error. */
31427#ifdef __cplusplus
31428extern "C"
31429{
31430#endif
31431/* We use char because int might match the return type of a gcc2
31432 builtin and then its argument prototype would still apply. */
31433char $ac_func ();
31434/* The GNU C library defines this for functions which it implements
31435 to always fail with ENOSYS. Some functions are actually named
31436 something starting with __ and the normal name is an alias. */
31437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31438choke me
31439#else
31440char (*f) () = $ac_func;
31441#endif
31442#ifdef __cplusplus
31443}
31444#endif
31445
31446int
31447main ()
31448{
31449return f != $ac_func;
31450 ;
31451 return 0;
31452}
31453_ACEOF
31454rm -f conftest.$ac_objext conftest$ac_exeext
31455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31456 (eval $ac_link) 2>conftest.er1
a848cd7e 31457 ac_status=$?
ac1cb8d3
VS
31458 grep -v '^ *+' conftest.er1 >conftest.err
31459 rm -f conftest.er1
31460 cat conftest.err >&5
a848cd7e
SC
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); } &&
2cbbc68d
RD
31463 { ac_try='test -z "$ac_c_werror_flag"
31464 || test ! -s conftest.err'
ac1cb8d3
VS
31465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31466 (eval $ac_try) 2>&5
31467 ac_status=$?
31468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469 (exit $ac_status); }; } &&
31470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31472 (eval $ac_try) 2>&5
31473 ac_status=$?
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); }; }; then
31476 eval "$as_ac_var=yes"
31477else
31478 echo "$as_me: failed program was:" >&5
31479sed 's/^/| /' conftest.$ac_ext >&5
31480
31481eval "$as_ac_var=no"
31482fi
ac1cb8d3
VS
31483rm -f conftest.err conftest.$ac_objext \
31484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31485fi
31486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31487echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31488if test `eval echo '${'$as_ac_var'}'` = yes; then
31489 cat >>confdefs.h <<_ACEOF
31490#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31491_ACEOF
31492 cat >>confdefs.h <<\_ACEOF
31493#define HAVE_INET_ATON 1
31494_ACEOF
31495
31496else
31497
31498 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31499echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31500echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31501if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31502 echo $ECHO_N "(cached) $ECHO_C" >&6
31503else
31504 ac_check_lib_save_LIBS=$LIBS
31505LIBS="-l$INET_LINK $LIBS"
31506cat >conftest.$ac_ext <<_ACEOF
31507/* confdefs.h. */
31508_ACEOF
31509cat confdefs.h >>conftest.$ac_ext
31510cat >>conftest.$ac_ext <<_ACEOF
31511/* end confdefs.h. */
31512
31513/* Override any gcc2 internal prototype to avoid an error. */
31514#ifdef __cplusplus
31515extern "C"
31516#endif
31517/* We use char because int might match the return type of a gcc2
31518 builtin and then its argument prototype would still apply. */
31519char inet_aton ();
31520int
31521main ()
31522{
31523inet_aton ();
31524 ;
31525 return 0;
31526}
31527_ACEOF
31528rm -f conftest.$ac_objext conftest$ac_exeext
31529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31530 (eval $ac_link) 2>conftest.er1
a848cd7e 31531 ac_status=$?
ac1cb8d3
VS
31532 grep -v '^ *+' conftest.er1 >conftest.err
31533 rm -f conftest.er1
31534 cat conftest.err >&5
a848cd7e
SC
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); } &&
2cbbc68d
RD
31537 { ac_try='test -z "$ac_c_werror_flag"
31538 || test ! -s conftest.err'
ac1cb8d3
VS
31539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31540 (eval $ac_try) 2>&5
31541 ac_status=$?
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; } &&
31544 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31546 (eval $ac_try) 2>&5
31547 ac_status=$?
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; }; then
31550 eval "$as_ac_Lib=yes"
31551else
31552 echo "$as_me: failed program was:" >&5
31553sed 's/^/| /' conftest.$ac_ext >&5
31554
31555eval "$as_ac_Lib=no"
31556fi
ac1cb8d3
VS
31557rm -f conftest.err conftest.$ac_objext \
31558 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31559LIBS=$ac_check_lib_save_LIBS
31560fi
31561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31562echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31563if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31564 cat >>confdefs.h <<\_ACEOF
31565#define HAVE_INET_ATON 1
31566_ACEOF
31567
31568fi
31569
31570
31571fi
31572done
31573
31574
31575if test "x$INET_LINK" != "x"; then
31576 cat >>confdefs.h <<\_ACEOF
31577#define HAVE_INET_ADDR 1
31578_ACEOF
31579
31580 INET_LINK=" -l$INET_LINK"
31581fi
31582
31583fi
31584
31585
31586
31587EXTRALIBS_ESD=
31588echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31589echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31590if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31591 echo $ECHO_N "(cached) $ECHO_C" >&6
31592else
31593 ac_check_lib_save_LIBS=$LIBS
31594LIBS="-lesd $LIBS"
31595cat >conftest.$ac_ext <<_ACEOF
31596/* confdefs.h. */
31597_ACEOF
31598cat confdefs.h >>conftest.$ac_ext
31599cat >>conftest.$ac_ext <<_ACEOF
31600/* end confdefs.h. */
31601
31602/* Override any gcc2 internal prototype to avoid an error. */
31603#ifdef __cplusplus
31604extern "C"
31605#endif
31606/* We use char because int might match the return type of a gcc2
31607 builtin and then its argument prototype would still apply. */
31608char esd_close ();
31609int
31610main ()
31611{
31612esd_close ();
31613 ;
31614 return 0;
31615}
31616_ACEOF
31617rm -f conftest.$ac_objext conftest$ac_exeext
31618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31619 (eval $ac_link) 2>conftest.er1
a848cd7e 31620 ac_status=$?
ac1cb8d3
VS
31621 grep -v '^ *+' conftest.er1 >conftest.err
31622 rm -f conftest.er1
31623 cat conftest.err >&5
a848cd7e
SC
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } &&
2cbbc68d
RD
31626 { ac_try='test -z "$ac_c_werror_flag"
31627 || test ! -s conftest.err'
ac1cb8d3
VS
31628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629 (eval $ac_try) 2>&5
31630 ac_status=$?
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); }; } &&
31633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635 (eval $ac_try) 2>&5
31636 ac_status=$?
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; }; then
31639 ac_cv_lib_esd_esd_close=yes
31640else
31641 echo "$as_me: failed program was:" >&5
31642sed 's/^/| /' conftest.$ac_ext >&5
31643
31644ac_cv_lib_esd_esd_close=no
31645fi
ac1cb8d3
VS
31646rm -f conftest.err conftest.$ac_objext \
31647 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31648LIBS=$ac_check_lib_save_LIBS
31649fi
31650echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31651echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31652if test $ac_cv_lib_esd_esd_close = yes; then
31653
31654
31655for ac_header in esd.h
31656do
31657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31658if eval "test \"\${$as_ac_Header+set}\" = set"; then
31659 echo "$as_me:$LINENO: checking for $ac_header" >&5
31660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31661if eval "test \"\${$as_ac_Header+set}\" = set"; then
31662 echo $ECHO_N "(cached) $ECHO_C" >&6
31663fi
31664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31666else
31667 # Is the header compilable?
31668echo "$as_me:$LINENO: checking $ac_header usability" >&5
31669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31670cat >conftest.$ac_ext <<_ACEOF
31671/* confdefs.h. */
31672_ACEOF
31673cat confdefs.h >>conftest.$ac_ext
31674cat >>conftest.$ac_ext <<_ACEOF
31675/* end confdefs.h. */
31676$ac_includes_default
31677#include <$ac_header>
31678_ACEOF
31679rm -f conftest.$ac_objext
31680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31681 (eval $ac_compile) 2>conftest.er1
a848cd7e 31682 ac_status=$?
ac1cb8d3
VS
31683 grep -v '^ *+' conftest.er1 >conftest.err
31684 rm -f conftest.er1
31685 cat conftest.err >&5
a848cd7e
SC
31686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687 (exit $ac_status); } &&
2cbbc68d
RD
31688 { ac_try='test -z "$ac_c_werror_flag"
31689 || test ! -s conftest.err'
ac1cb8d3
VS
31690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31691 (eval $ac_try) 2>&5
31692 ac_status=$?
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); }; } &&
31695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31697 (eval $ac_try) 2>&5
31698 ac_status=$?
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; }; then
31701 ac_header_compiler=yes
31702else
31703 echo "$as_me: failed program was:" >&5
31704sed 's/^/| /' conftest.$ac_ext >&5
31705
31706ac_header_compiler=no
31707fi
ac1cb8d3 31708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31710echo "${ECHO_T}$ac_header_compiler" >&6
31711
31712# Is the header present?
31713echo "$as_me:$LINENO: checking $ac_header presence" >&5
31714echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31715cat >conftest.$ac_ext <<_ACEOF
31716/* confdefs.h. */
31717_ACEOF
31718cat confdefs.h >>conftest.$ac_ext
31719cat >>conftest.$ac_ext <<_ACEOF
31720/* end confdefs.h. */
31721#include <$ac_header>
31722_ACEOF
31723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31725 ac_status=$?
31726 grep -v '^ *+' conftest.er1 >conftest.err
31727 rm -f conftest.er1
31728 cat conftest.err >&5
31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); } >/dev/null; then
31731 if test -s conftest.err; then
31732 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31734 else
31735 ac_cpp_err=
31736 fi
31737else
31738 ac_cpp_err=yes
31739fi
31740if test -z "$ac_cpp_err"; then
31741 ac_header_preproc=yes
31742else
31743 echo "$as_me: failed program was:" >&5
31744sed 's/^/| /' conftest.$ac_ext >&5
31745
31746 ac_header_preproc=no
31747fi
31748rm -f conftest.err conftest.$ac_ext
31749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31750echo "${ECHO_T}$ac_header_preproc" >&6
31751
31752# So? What about this header?
ac1cb8d3
VS
31753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31754 yes:no: )
a848cd7e
SC
31755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31756echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31758echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31759 ac_header_preproc=yes
a848cd7e 31760 ;;
ac1cb8d3 31761 no:yes:* )
a848cd7e
SC
31762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31765echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31767echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31769echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31773echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31774 (
31775 cat <<\_ASBOX
ac1cb8d3
VS
31776## ----------------------------------------- ##
31777## Report this to wx-dev@lists.wxwidgets.org ##
31778## ----------------------------------------- ##
a848cd7e
SC
31779_ASBOX
31780 ) |
31781 sed "s/^/$as_me: WARNING: /" >&2
31782 ;;
31783esac
31784echo "$as_me:$LINENO: checking for $ac_header" >&5
31785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31786if eval "test \"\${$as_ac_Header+set}\" = set"; then
31787 echo $ECHO_N "(cached) $ECHO_C" >&6
31788else
ac1cb8d3 31789 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31790fi
31791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31793
31794fi
31795if test `eval echo '${'$as_ac_Header'}'` = yes; then
31796 cat >>confdefs.h <<_ACEOF
31797#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31798_ACEOF
31799
31800 EXTRALIBS_ESD="-lesd"
31801
31802fi
31803
31804done
31805
31806
31807fi
31808
31809
31810
31811echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31812echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
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#ifdef __linux__
31820 #include <linux/cdrom.h>
31821 #else
31822 /* For Solaris */
31823 #include <sys/cdio.h>
31824 #endif
31825
31826int
31827main ()
31828{
31829struct cdrom_tocentry entry, old_entry;
31830 ;
31831 return 0;
31832}
31833_ACEOF
31834rm -f conftest.$ac_objext
31835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31836 (eval $ac_compile) 2>conftest.er1
a848cd7e 31837 ac_status=$?
ac1cb8d3
VS
31838 grep -v '^ *+' conftest.er1 >conftest.err
31839 rm -f conftest.er1
31840 cat conftest.err >&5
a848cd7e
SC
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); } &&
2cbbc68d
RD
31843 { ac_try='test -z "$ac_c_werror_flag"
31844 || 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_objext'
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 echo "$as_me:$LINENO: result: yes" >&5
31857echo "${ECHO_T}yes" >&6
31858 cat >>confdefs.h <<\_ACEOF
31859#define HAVE_KNOWN_CDROM_INTERFACE 1
31860_ACEOF
31861
31862else
31863 echo "$as_me: failed program was:" >&5
31864sed 's/^/| /' conftest.$ac_ext >&5
31865
31866echo "$as_me:$LINENO: result: no" >&5
31867echo "${ECHO_T}no" >&6
31868fi
ac1cb8d3 31869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31870
31871
31872cat >confcache <<\_ACEOF
31873# This file is a shell script that caches the results of configure
31874# tests run on this system so they can be shared between configure
31875# scripts and configure runs, see configure's option --config-cache.
31876# It is not useful on other systems. If it contains results you don't
31877# want to keep, you may remove or edit it.
31878#
31879# config.status only pays attention to the cache file if you give it
31880# the --recheck option to rerun configure.
31881#
31882# `ac_cv_env_foo' variables (set or unset) will be overridden when
31883# loading this file, other *unset* `ac_cv_foo' will be assigned the
31884# following values.
31885
31886_ACEOF
31887
31888# The following way of writing the cache mishandles newlines in values,
31889# but we know of no workaround that is simple, portable, and efficient.
31890# So, don't put newlines in cache variables' values.
31891# Ultrix sh set writes to stderr and can't be redirected directly,
31892# and sets the high bit in the cache file unless we assign to the vars.
31893{
31894 (set) 2>&1 |
31895 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31896 *ac_space=\ *)
31897 # `set' does not quote correctly, so add quotes (double-quote
31898 # substitution turns \\\\ into \\, and sed turns \\ into \).
31899 sed -n \
ac1cb8d3
VS
31900 "s/'/'\\\\''/g;
31901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31902 ;;
31903 *)
31904 # `set' quotes correctly as required by POSIX, so do not add quotes.
31905 sed -n \
ac1cb8d3 31906 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31907 ;;
31908 esac;
31909} |
31910 sed '
31911 t clear
31912 : clear
31913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31914 t end
31915 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31916 : end' >>confcache
31917if diff $cache_file confcache >/dev/null 2>&1; then :; else
31918 if test -w $cache_file; then
31919 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31920 cat confcache >$cache_file
31921 else
31922 echo "not updating unwritable cache $cache_file"
31923 fi
31924fi
31925rm -f confcache
31926
31927
31928CPP_MT_FLAG=
31929if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31930
31931
31932 THREADS_LINK=
31933 THREADS_CFLAGS=
31934
31935 if test "$wxUSE_THREADS" = "yes" ; then
31936 if test "$USE_BEOS" = 1; then
31937 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31938echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31939 wxUSE_THREADS="no"
31940 fi
31941 fi
31942
31943 if test "$wxUSE_THREADS" = "yes" ; then
31944
31945
31946 THREAD_OPTS="-pthread"
31947 case "${host}" in
31948 *-*-solaris2* | *-*-sunos4* )
31949 if test "x$GCC" = "xyes"; then
31950 THREAD_OPTS="-pthreads $THREAD_OPTS"
31951 else
31952 THREAD_OPTS="-mt $THREAD_OPTS"
31953 fi
31954 ;;
31955 *-*-freebsd*)
31956 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31957 ;;
31958 *-*-darwin* | *-*-cygwin* )
31959 THREAD_OPTS=""
31960 ;;
31961 *-*-aix*)
31962 THREAD_OPTS="pthreads"
31963 ;;
31964 *-hp-hpux* )
31965 if test "x$GCC" != "xyes"; then
31966 THREAD_OPTS=""
31967 fi
31968 ;;
31969
31970 *-*-irix* )
31971 if test "x$GCC" = "xyes"; then
31972 THREAD_OPTS=""
31973 fi
31974 ;;
31975
31976 *-*-*UnixWare*)
31977 if test "x$GCC" != "xyes"; then
31978 THREAD_OPTS="-Ethread"
31979 fi
31980 ;;
31981 esac
31982
31983 THREAD_OPTS="$THREAD_OPTS pthread none"
31984
31985 THREADS_OK=no
31986 for flag in $THREAD_OPTS; do
31987 case $flag in
31988 none)
31989 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31990echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31991 ;;
31992
31993 -*)
31994 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31995echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31996 THREADS_CFLAGS="$flag"
31997 ;;
31998
31999 *)
32000 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32001echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32002 THREADS_LINK="-l$flag"
32003 ;;
32004 esac
32005
32006 save_LIBS="$LIBS"
32007 save_CFLAGS="$CFLAGS"
32008 LIBS="$THREADS_LINK $LIBS"
32009 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32010
32011 cat >conftest.$ac_ext <<_ACEOF
32012/* confdefs.h. */
32013_ACEOF
32014cat confdefs.h >>conftest.$ac_ext
32015cat >>conftest.$ac_ext <<_ACEOF
32016/* end confdefs.h. */
32017#include <pthread.h>
32018int
32019main ()
32020{
32021pthread_create(0,0,0,0);
32022 ;
32023 return 0;
32024}
32025_ACEOF
32026rm -f conftest.$ac_objext conftest$ac_exeext
32027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32028 (eval $ac_link) 2>conftest.er1
a848cd7e 32029 ac_status=$?
ac1cb8d3
VS
32030 grep -v '^ *+' conftest.er1 >conftest.err
32031 rm -f conftest.er1
32032 cat conftest.err >&5
a848cd7e
SC
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); } &&
2cbbc68d
RD
32035 { ac_try='test -z "$ac_c_werror_flag"
32036 || test ! -s conftest.err'
ac1cb8d3
VS
32037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32038 (eval $ac_try) 2>&5
32039 ac_status=$?
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); }; } &&
32042 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32044 (eval $ac_try) 2>&5
32045 ac_status=$?
32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047 (exit $ac_status); }; }; then
32048 THREADS_OK=yes
32049else
32050 echo "$as_me: failed program was:" >&5
32051sed 's/^/| /' conftest.$ac_ext >&5
32052
32053fi
ac1cb8d3
VS
32054rm -f conftest.err conftest.$ac_objext \
32055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32056
32057 LIBS="$save_LIBS"
32058 CFLAGS="$save_CFLAGS"
32059
32060 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32061echo "${ECHO_T}$THREADS_OK" >&6
32062 if test "x$THREADS_OK" = "xyes"; then
32063 break;
32064 fi
32065
32066 THREADS_LINK=""
32067 THREADS_CFLAGS=""
32068 done
32069
32070 if test "x$THREADS_OK" != "xyes"; then
32071 wxUSE_THREADS=no
32072 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32073echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32074 else
32075 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32076 LIBS="$THREADS_LINK $LIBS"
32077
32078 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32079echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32080 flag=no
32081 case "${host}" in
32082 *-aix*)
32083 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32084 flag="-D_THREAD_SAFE"
32085 ;;
32086 *-freebsd*)
32087 flag="-D_THREAD_SAFE"
32088 ;;
32089 *-hp-hpux* )
32090 flag="-D_REENTRANT"
32091 if test "x$GCC" != "xyes"; then
32092 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32093
32094 LIBS="$LIBS -lcma"
a848cd7e
SC
32095 fi
32096 ;;
32097 *solaris* | alpha*-osf*)
32098 flag="-D_REENTRANT"
32099 ;;
32100 esac
32101 echo "$as_me:$LINENO: result: ${flag}" >&5
32102echo "${ECHO_T}${flag}" >&6
32103 if test "x$flag" != xno; then
32104 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32105 fi
32106
32107 if test "x$THREADS_CFLAGS" != "x"; then
32108 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32109 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32110 fi
32111 fi
32112 fi
32113
32114 if test "$wxUSE_THREADS" = "yes" ; then
32115
32116for ac_func in thr_setconcurrency
32117do
32118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32119echo "$as_me:$LINENO: checking for $ac_func" >&5
32120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32121if eval "test \"\${$as_ac_var+set}\" = set"; then
32122 echo $ECHO_N "(cached) $ECHO_C" >&6
32123else
32124 cat >conftest.$ac_ext <<_ACEOF
32125/* confdefs.h. */
32126_ACEOF
32127cat confdefs.h >>conftest.$ac_ext
32128cat >>conftest.$ac_ext <<_ACEOF
32129/* end confdefs.h. */
ac1cb8d3
VS
32130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32132#define $ac_func innocuous_$ac_func
32133
a848cd7e
SC
32134/* System header to define __stub macros and hopefully few prototypes,
32135 which can conflict with char $ac_func (); below.
32136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32137 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32138
a848cd7e
SC
32139#ifdef __STDC__
32140# include <limits.h>
32141#else
32142# include <assert.h>
32143#endif
ac1cb8d3
VS
32144
32145#undef $ac_func
32146
a848cd7e
SC
32147/* Override any gcc2 internal prototype to avoid an error. */
32148#ifdef __cplusplus
32149extern "C"
32150{
32151#endif
32152/* We use char because int might match the return type of a gcc2
32153 builtin and then its argument prototype would still apply. */
32154char $ac_func ();
32155/* The GNU C library defines this for functions which it implements
32156 to always fail with ENOSYS. Some functions are actually named
32157 something starting with __ and the normal name is an alias. */
32158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32159choke me
32160#else
32161char (*f) () = $ac_func;
32162#endif
32163#ifdef __cplusplus
32164}
32165#endif
32166
32167int
32168main ()
32169{
32170return f != $ac_func;
32171 ;
32172 return 0;
32173}
32174_ACEOF
32175rm -f conftest.$ac_objext conftest$ac_exeext
32176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32177 (eval $ac_link) 2>conftest.er1
a848cd7e 32178 ac_status=$?
ac1cb8d3
VS
32179 grep -v '^ *+' conftest.er1 >conftest.err
32180 rm -f conftest.er1
32181 cat conftest.err >&5
a848cd7e
SC
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); } &&
2cbbc68d
RD
32184 { ac_try='test -z "$ac_c_werror_flag"
32185 || 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 eval "$as_ac_var=yes"
32198else
32199 echo "$as_me: failed program was:" >&5
32200sed 's/^/| /' conftest.$ac_ext >&5
32201
32202eval "$as_ac_var=no"
32203fi
ac1cb8d3
VS
32204rm -f conftest.err conftest.$ac_objext \
32205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32206fi
32207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32209if test `eval echo '${'$as_ac_var'}'` = yes; then
32210 cat >>confdefs.h <<_ACEOF
32211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32212_ACEOF
32213
32214fi
32215done
32216
32217
32218
32219for ac_header in sched.h
32220do
32221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32222if eval "test \"\${$as_ac_Header+set}\" = set"; then
32223 echo "$as_me:$LINENO: checking for $ac_header" >&5
32224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32225if eval "test \"\${$as_ac_Header+set}\" = set"; then
32226 echo $ECHO_N "(cached) $ECHO_C" >&6
32227fi
32228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32230else
32231 # Is the header compilable?
32232echo "$as_me:$LINENO: checking $ac_header usability" >&5
32233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32234cat >conftest.$ac_ext <<_ACEOF
32235/* confdefs.h. */
32236_ACEOF
32237cat confdefs.h >>conftest.$ac_ext
32238cat >>conftest.$ac_ext <<_ACEOF
32239/* end confdefs.h. */
32240$ac_includes_default
32241#include <$ac_header>
32242_ACEOF
32243rm -f conftest.$ac_objext
32244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32245 (eval $ac_compile) 2>conftest.er1
a848cd7e 32246 ac_status=$?
ac1cb8d3
VS
32247 grep -v '^ *+' conftest.er1 >conftest.err
32248 rm -f conftest.er1
32249 cat conftest.err >&5
a848cd7e
SC
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); } &&
2cbbc68d
RD
32252 { ac_try='test -z "$ac_c_werror_flag"
32253 || test ! -s conftest.err'
ac1cb8d3
VS
32254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32255 (eval $ac_try) 2>&5
32256 ac_status=$?
32257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258 (exit $ac_status); }; } &&
32259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32261 (eval $ac_try) 2>&5
32262 ac_status=$?
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; }; then
32265 ac_header_compiler=yes
32266else
32267 echo "$as_me: failed program was:" >&5
32268sed 's/^/| /' conftest.$ac_ext >&5
32269
32270ac_header_compiler=no
32271fi
ac1cb8d3 32272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32273echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32274echo "${ECHO_T}$ac_header_compiler" >&6
32275
32276# Is the header present?
32277echo "$as_me:$LINENO: checking $ac_header presence" >&5
32278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32279cat >conftest.$ac_ext <<_ACEOF
32280/* confdefs.h. */
32281_ACEOF
32282cat confdefs.h >>conftest.$ac_ext
32283cat >>conftest.$ac_ext <<_ACEOF
32284/* end confdefs.h. */
32285#include <$ac_header>
32286_ACEOF
32287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32289 ac_status=$?
32290 grep -v '^ *+' conftest.er1 >conftest.err
32291 rm -f conftest.er1
32292 cat conftest.err >&5
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); } >/dev/null; then
32295 if test -s conftest.err; then
32296 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32298 else
32299 ac_cpp_err=
32300 fi
32301else
32302 ac_cpp_err=yes
32303fi
32304if test -z "$ac_cpp_err"; then
32305 ac_header_preproc=yes
32306else
32307 echo "$as_me: failed program was:" >&5
32308sed 's/^/| /' conftest.$ac_ext >&5
32309
32310 ac_header_preproc=no
32311fi
32312rm -f conftest.err conftest.$ac_ext
32313echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32314echo "${ECHO_T}$ac_header_preproc" >&6
32315
32316# So? What about this header?
ac1cb8d3
VS
32317case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32318 yes:no: )
a848cd7e
SC
32319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32320echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32322echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32323 ac_header_preproc=yes
a848cd7e 32324 ;;
ac1cb8d3 32325 no:yes:* )
a848cd7e
SC
32326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32327echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32329echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32331echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32333echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32335echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32337echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32338 (
32339 cat <<\_ASBOX
ac1cb8d3
VS
32340## ----------------------------------------- ##
32341## Report this to wx-dev@lists.wxwidgets.org ##
32342## ----------------------------------------- ##
a848cd7e
SC
32343_ASBOX
32344 ) |
32345 sed "s/^/$as_me: WARNING: /" >&2
32346 ;;
32347esac
32348echo "$as_me:$LINENO: checking for $ac_header" >&5
32349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32350if eval "test \"\${$as_ac_Header+set}\" = set"; then
32351 echo $ECHO_N "(cached) $ECHO_C" >&6
32352else
ac1cb8d3 32353 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32354fi
32355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32357
32358fi
32359if test `eval echo '${'$as_ac_Header'}'` = yes; then
32360 cat >>confdefs.h <<_ACEOF
32361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32362_ACEOF
32363
32364fi
32365
32366done
32367
32368 if test "$ac_cv_header_sched_h" = "yes"; then
32369 echo "$as_me:$LINENO: checking for sched_yield" >&5
32370echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32371if test "${ac_cv_func_sched_yield+set}" = set; then
32372 echo $ECHO_N "(cached) $ECHO_C" >&6
32373else
32374 cat >conftest.$ac_ext <<_ACEOF
32375/* confdefs.h. */
32376_ACEOF
32377cat confdefs.h >>conftest.$ac_ext
32378cat >>conftest.$ac_ext <<_ACEOF
32379/* end confdefs.h. */
ac1cb8d3
VS
32380/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32382#define sched_yield innocuous_sched_yield
32383
a848cd7e
SC
32384/* System header to define __stub macros and hopefully few prototypes,
32385 which can conflict with char sched_yield (); below.
32386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32387 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32388
a848cd7e
SC
32389#ifdef __STDC__
32390# include <limits.h>
32391#else
32392# include <assert.h>
32393#endif
ac1cb8d3
VS
32394
32395#undef sched_yield
32396
a848cd7e
SC
32397/* Override any gcc2 internal prototype to avoid an error. */
32398#ifdef __cplusplus
32399extern "C"
32400{
32401#endif
32402/* We use char because int might match the return type of a gcc2
32403 builtin and then its argument prototype would still apply. */
32404char sched_yield ();
32405/* The GNU C library defines this for functions which it implements
32406 to always fail with ENOSYS. Some functions are actually named
32407 something starting with __ and the normal name is an alias. */
32408#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32409choke me
32410#else
32411char (*f) () = sched_yield;
32412#endif
32413#ifdef __cplusplus
32414}
32415#endif
32416
32417int
32418main ()
32419{
32420return f != sched_yield;
32421 ;
32422 return 0;
32423}
32424_ACEOF
32425rm -f conftest.$ac_objext conftest$ac_exeext
32426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32427 (eval $ac_link) 2>conftest.er1
a848cd7e 32428 ac_status=$?
ac1cb8d3
VS
32429 grep -v '^ *+' conftest.er1 >conftest.err
32430 rm -f conftest.er1
32431 cat conftest.err >&5
a848cd7e
SC
32432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433 (exit $ac_status); } &&
2cbbc68d
RD
32434 { ac_try='test -z "$ac_c_werror_flag"
32435 || test ! -s conftest.err'
ac1cb8d3
VS
32436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32437 (eval $ac_try) 2>&5
32438 ac_status=$?
32439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440 (exit $ac_status); }; } &&
32441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32443 (eval $ac_try) 2>&5
32444 ac_status=$?
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); }; }; then
32447 ac_cv_func_sched_yield=yes
32448else
32449 echo "$as_me: failed program was:" >&5
32450sed 's/^/| /' conftest.$ac_ext >&5
32451
32452ac_cv_func_sched_yield=no
32453fi
ac1cb8d3
VS
32454rm -f conftest.err conftest.$ac_objext \
32455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32456fi
32457echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32458echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32459if test $ac_cv_func_sched_yield = yes; then
32460 cat >>confdefs.h <<\_ACEOF
32461#define HAVE_SCHED_YIELD 1
32462_ACEOF
32463
32464else
32465
32466 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32467echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32468if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32469 echo $ECHO_N "(cached) $ECHO_C" >&6
32470else
32471 ac_check_lib_save_LIBS=$LIBS
32472LIBS="-lposix4 $LIBS"
32473cat >conftest.$ac_ext <<_ACEOF
32474/* confdefs.h. */
32475_ACEOF
32476cat confdefs.h >>conftest.$ac_ext
32477cat >>conftest.$ac_ext <<_ACEOF
32478/* end confdefs.h. */
32479
32480/* Override any gcc2 internal prototype to avoid an error. */
32481#ifdef __cplusplus
32482extern "C"
32483#endif
32484/* We use char because int might match the return type of a gcc2
32485 builtin and then its argument prototype would still apply. */
32486char sched_yield ();
32487int
32488main ()
32489{
32490sched_yield ();
32491 ;
32492 return 0;
32493}
32494_ACEOF
32495rm -f conftest.$ac_objext conftest$ac_exeext
32496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32497 (eval $ac_link) 2>conftest.er1
a848cd7e 32498 ac_status=$?
ac1cb8d3
VS
32499 grep -v '^ *+' conftest.er1 >conftest.err
32500 rm -f conftest.er1
32501 cat conftest.err >&5
a848cd7e
SC
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); } &&
2cbbc68d
RD
32504 { ac_try='test -z "$ac_c_werror_flag"
32505 || test ! -s conftest.err'
ac1cb8d3
VS
32506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32507 (eval $ac_try) 2>&5
32508 ac_status=$?
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); }; } &&
32511 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32513 (eval $ac_try) 2>&5
32514 ac_status=$?
32515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516 (exit $ac_status); }; }; then
32517 ac_cv_lib_posix4_sched_yield=yes
32518else
32519 echo "$as_me: failed program was:" >&5
32520sed 's/^/| /' conftest.$ac_ext >&5
32521
32522ac_cv_lib_posix4_sched_yield=no
32523fi
ac1cb8d3
VS
32524rm -f conftest.err conftest.$ac_objext \
32525 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32526LIBS=$ac_check_lib_save_LIBS
32527fi
32528echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32529echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32530if test $ac_cv_lib_posix4_sched_yield = yes; then
32531 cat >>confdefs.h <<\_ACEOF
32532#define HAVE_SCHED_YIELD 1
32533_ACEOF
32534 POSIX4_LINK=" -lposix4"
32535else
32536 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32537echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32538
32539fi
32540
32541
32542
32543fi
32544
32545 fi
32546
32547 HAVE_PRIOR_FUNCS=0
32548 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32549echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32550if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32551 echo $ECHO_N "(cached) $ECHO_C" >&6
32552else
32553 cat >conftest.$ac_ext <<_ACEOF
32554/* confdefs.h. */
32555_ACEOF
32556cat confdefs.h >>conftest.$ac_ext
32557cat >>conftest.$ac_ext <<_ACEOF
32558/* end confdefs.h. */
ac1cb8d3
VS
32559/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32561#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32562
a848cd7e
SC
32563/* System header to define __stub macros and hopefully few prototypes,
32564 which can conflict with char pthread_attr_getschedpolicy (); below.
32565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32566 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32567
a848cd7e
SC
32568#ifdef __STDC__
32569# include <limits.h>
32570#else
32571# include <assert.h>
32572#endif
ac1cb8d3
VS
32573
32574#undef pthread_attr_getschedpolicy
32575
a848cd7e
SC
32576/* Override any gcc2 internal prototype to avoid an error. */
32577#ifdef __cplusplus
32578extern "C"
32579{
32580#endif
32581/* We use char because int might match the return type of a gcc2
32582 builtin and then its argument prototype would still apply. */
32583char pthread_attr_getschedpolicy ();
32584/* The GNU C library defines this for functions which it implements
32585 to always fail with ENOSYS. Some functions are actually named
32586 something starting with __ and the normal name is an alias. */
32587#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32588choke me
32589#else
32590char (*f) () = pthread_attr_getschedpolicy;
32591#endif
32592#ifdef __cplusplus
32593}
32594#endif
32595
32596int
32597main ()
32598{
32599return f != pthread_attr_getschedpolicy;
32600 ;
32601 return 0;
32602}
32603_ACEOF
32604rm -f conftest.$ac_objext conftest$ac_exeext
32605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32606 (eval $ac_link) 2>conftest.er1
a848cd7e 32607 ac_status=$?
ac1cb8d3
VS
32608 grep -v '^ *+' conftest.er1 >conftest.err
32609 rm -f conftest.er1
32610 cat conftest.err >&5
a848cd7e
SC
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); } &&
2cbbc68d
RD
32613 { ac_try='test -z "$ac_c_werror_flag"
32614 || test ! -s conftest.err'
ac1cb8d3
VS
32615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616 (eval $ac_try) 2>&5
32617 ac_status=$?
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; } &&
32620 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32622 (eval $ac_try) 2>&5
32623 ac_status=$?
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); }; }; then
32626 ac_cv_func_pthread_attr_getschedpolicy=yes
32627else
32628 echo "$as_me: failed program was:" >&5
32629sed 's/^/| /' conftest.$ac_ext >&5
32630
32631ac_cv_func_pthread_attr_getschedpolicy=no
32632fi
ac1cb8d3
VS
32633rm -f conftest.err conftest.$ac_objext \
32634 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32635fi
32636echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32637echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32638if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32639 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32640echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32641if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32642 echo $ECHO_N "(cached) $ECHO_C" >&6
32643else
32644 cat >conftest.$ac_ext <<_ACEOF
32645/* confdefs.h. */
32646_ACEOF
32647cat confdefs.h >>conftest.$ac_ext
32648cat >>conftest.$ac_ext <<_ACEOF
32649/* end confdefs.h. */
ac1cb8d3
VS
32650/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32652#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32653
a848cd7e
SC
32654/* System header to define __stub macros and hopefully few prototypes,
32655 which can conflict with char pthread_attr_setschedparam (); below.
32656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32657 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32658
a848cd7e
SC
32659#ifdef __STDC__
32660# include <limits.h>
32661#else
32662# include <assert.h>
32663#endif
ac1cb8d3
VS
32664
32665#undef pthread_attr_setschedparam
32666
a848cd7e
SC
32667/* Override any gcc2 internal prototype to avoid an error. */
32668#ifdef __cplusplus
32669extern "C"
32670{
32671#endif
32672/* We use char because int might match the return type of a gcc2
32673 builtin and then its argument prototype would still apply. */
32674char pthread_attr_setschedparam ();
32675/* The GNU C library defines this for functions which it implements
32676 to always fail with ENOSYS. Some functions are actually named
32677 something starting with __ and the normal name is an alias. */
32678#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32679choke me
32680#else
32681char (*f) () = pthread_attr_setschedparam;
32682#endif
32683#ifdef __cplusplus
32684}
32685#endif
32686
32687int
32688main ()
32689{
32690return f != pthread_attr_setschedparam;
32691 ;
32692 return 0;
32693}
32694_ACEOF
32695rm -f conftest.$ac_objext conftest$ac_exeext
32696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32697 (eval $ac_link) 2>conftest.er1
a848cd7e 32698 ac_status=$?
ac1cb8d3
VS
32699 grep -v '^ *+' conftest.er1 >conftest.err
32700 rm -f conftest.er1
32701 cat conftest.err >&5
a848cd7e
SC
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); } &&
2cbbc68d
RD
32704 { ac_try='test -z "$ac_c_werror_flag"
32705 || test ! -s conftest.err'
ac1cb8d3
VS
32706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32707 (eval $ac_try) 2>&5
32708 ac_status=$?
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); }; } &&
32711 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32713 (eval $ac_try) 2>&5
32714 ac_status=$?
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); }; }; then
32717 ac_cv_func_pthread_attr_setschedparam=yes
32718else
32719 echo "$as_me: failed program was:" >&5
32720sed 's/^/| /' conftest.$ac_ext >&5
32721
32722ac_cv_func_pthread_attr_setschedparam=no
32723fi
ac1cb8d3
VS
32724rm -f conftest.err conftest.$ac_objext \
32725 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32726fi
32727echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32728echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32729if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32730 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32731echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32732if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32733 echo $ECHO_N "(cached) $ECHO_C" >&6
32734else
32735 cat >conftest.$ac_ext <<_ACEOF
32736/* confdefs.h. */
32737_ACEOF
32738cat confdefs.h >>conftest.$ac_ext
32739cat >>conftest.$ac_ext <<_ACEOF
32740/* end confdefs.h. */
ac1cb8d3
VS
32741/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32743#define sched_get_priority_max innocuous_sched_get_priority_max
32744
a848cd7e
SC
32745/* System header to define __stub macros and hopefully few prototypes,
32746 which can conflict with char sched_get_priority_max (); below.
32747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32748 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32749
a848cd7e
SC
32750#ifdef __STDC__
32751# include <limits.h>
32752#else
32753# include <assert.h>
32754#endif
ac1cb8d3
VS
32755
32756#undef sched_get_priority_max
32757
a848cd7e
SC
32758/* Override any gcc2 internal prototype to avoid an error. */
32759#ifdef __cplusplus
32760extern "C"
32761{
32762#endif
32763/* We use char because int might match the return type of a gcc2
32764 builtin and then its argument prototype would still apply. */
32765char sched_get_priority_max ();
32766/* The GNU C library defines this for functions which it implements
32767 to always fail with ENOSYS. Some functions are actually named
32768 something starting with __ and the normal name is an alias. */
32769#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32770choke me
32771#else
32772char (*f) () = sched_get_priority_max;
32773#endif
32774#ifdef __cplusplus
32775}
32776#endif
32777
32778int
32779main ()
32780{
32781return f != sched_get_priority_max;
32782 ;
32783 return 0;
32784}
32785_ACEOF
32786rm -f conftest.$ac_objext conftest$ac_exeext
32787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32788 (eval $ac_link) 2>conftest.er1
a848cd7e 32789 ac_status=$?
ac1cb8d3
VS
32790 grep -v '^ *+' conftest.er1 >conftest.err
32791 rm -f conftest.er1
32792 cat conftest.err >&5
a848cd7e
SC
32793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794 (exit $ac_status); } &&
2cbbc68d
RD
32795 { ac_try='test -z "$ac_c_werror_flag"
32796 || test ! -s conftest.err'
ac1cb8d3
VS
32797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32798 (eval $ac_try) 2>&5
32799 ac_status=$?
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); }; } &&
32802 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32804 (eval $ac_try) 2>&5
32805 ac_status=$?
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); }; }; then
32808 ac_cv_func_sched_get_priority_max=yes
32809else
32810 echo "$as_me: failed program was:" >&5
32811sed 's/^/| /' conftest.$ac_ext >&5
32812
32813ac_cv_func_sched_get_priority_max=no
32814fi
ac1cb8d3
VS
32815rm -f conftest.err conftest.$ac_objext \
32816 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32817fi
32818echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32819echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32820if test $ac_cv_func_sched_get_priority_max = yes; then
32821 HAVE_PRIOR_FUNCS=1
32822else
32823 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32824echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32825if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32826 echo $ECHO_N "(cached) $ECHO_C" >&6
32827else
32828 ac_check_lib_save_LIBS=$LIBS
32829LIBS="-lposix4 $LIBS"
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
32837/* Override any gcc2 internal prototype to avoid an error. */
32838#ifdef __cplusplus
32839extern "C"
32840#endif
32841/* We use char because int might match the return type of a gcc2
32842 builtin and then its argument prototype would still apply. */
32843char sched_get_priority_max ();
32844int
32845main ()
32846{
32847sched_get_priority_max ();
32848 ;
32849 return 0;
32850}
32851_ACEOF
32852rm -f conftest.$ac_objext conftest$ac_exeext
32853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32854 (eval $ac_link) 2>conftest.er1
a848cd7e 32855 ac_status=$?
ac1cb8d3
VS
32856 grep -v '^ *+' conftest.er1 >conftest.err
32857 rm -f conftest.er1
32858 cat conftest.err >&5
a848cd7e
SC
32859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860 (exit $ac_status); } &&
2cbbc68d
RD
32861 { ac_try='test -z "$ac_c_werror_flag"
32862 || test ! -s conftest.err'
ac1cb8d3
VS
32863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864 (eval $ac_try) 2>&5
32865 ac_status=$?
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; } &&
32868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32870 (eval $ac_try) 2>&5
32871 ac_status=$?
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); }; }; then
32874 ac_cv_lib_posix4_sched_get_priority_max=yes
32875else
32876 echo "$as_me: failed program was:" >&5
32877sed 's/^/| /' conftest.$ac_ext >&5
32878
32879ac_cv_lib_posix4_sched_get_priority_max=no
32880fi
ac1cb8d3
VS
32881rm -f conftest.err conftest.$ac_objext \
32882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32883LIBS=$ac_check_lib_save_LIBS
32884fi
32885echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32886echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32887if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32888
32889 HAVE_PRIOR_FUNCS=1
32890 POSIX4_LINK=" -lposix4"
32891
32892fi
32893
32894
32895fi
32896
32897
32898fi
32899
32900
32901fi
32902
32903
32904 if test "$HAVE_PRIOR_FUNCS" = 1; then
32905 cat >>confdefs.h <<\_ACEOF
32906#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32907_ACEOF
32908
32909 else
32910 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32911echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32912 fi
32913
32914 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32915echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32916if test "${ac_cv_func_pthread_cancel+set}" = set; then
32917 echo $ECHO_N "(cached) $ECHO_C" >&6
32918else
32919 cat >conftest.$ac_ext <<_ACEOF
32920/* confdefs.h. */
32921_ACEOF
32922cat confdefs.h >>conftest.$ac_ext
32923cat >>conftest.$ac_ext <<_ACEOF
32924/* end confdefs.h. */
ac1cb8d3
VS
32925/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32927#define pthread_cancel innocuous_pthread_cancel
32928
a848cd7e
SC
32929/* System header to define __stub macros and hopefully few prototypes,
32930 which can conflict with char pthread_cancel (); below.
32931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32932 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32933
a848cd7e
SC
32934#ifdef __STDC__
32935# include <limits.h>
32936#else
32937# include <assert.h>
32938#endif
ac1cb8d3
VS
32939
32940#undef pthread_cancel
32941
a848cd7e
SC
32942/* Override any gcc2 internal prototype to avoid an error. */
32943#ifdef __cplusplus
32944extern "C"
32945{
32946#endif
32947/* We use char because int might match the return type of a gcc2
32948 builtin and then its argument prototype would still apply. */
32949char pthread_cancel ();
32950/* The GNU C library defines this for functions which it implements
32951 to always fail with ENOSYS. Some functions are actually named
32952 something starting with __ and the normal name is an alias. */
32953#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32954choke me
32955#else
32956char (*f) () = pthread_cancel;
32957#endif
32958#ifdef __cplusplus
32959}
32960#endif
32961
32962int
32963main ()
32964{
32965return f != pthread_cancel;
32966 ;
32967 return 0;
32968}
32969_ACEOF
32970rm -f conftest.$ac_objext conftest$ac_exeext
32971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32972 (eval $ac_link) 2>conftest.er1
a848cd7e 32973 ac_status=$?
ac1cb8d3
VS
32974 grep -v '^ *+' conftest.er1 >conftest.err
32975 rm -f conftest.er1
32976 cat conftest.err >&5
a848cd7e
SC
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); } &&
2cbbc68d
RD
32979 { ac_try='test -z "$ac_c_werror_flag"
32980 || test ! -s conftest.err'
ac1cb8d3
VS
32981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982 (eval $ac_try) 2>&5
32983 ac_status=$?
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); }; } &&
32986 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32988 (eval $ac_try) 2>&5
32989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; }; then
32992 ac_cv_func_pthread_cancel=yes
32993else
32994 echo "$as_me: failed program was:" >&5
32995sed 's/^/| /' conftest.$ac_ext >&5
32996
32997ac_cv_func_pthread_cancel=no
32998fi
ac1cb8d3
VS
32999rm -f conftest.err conftest.$ac_objext \
33000 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33001fi
33002echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33003echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33004if test $ac_cv_func_pthread_cancel = yes; then
33005 cat >>confdefs.h <<\_ACEOF
33006#define HAVE_PTHREAD_CANCEL 1
33007_ACEOF
33008
33009else
33010 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33011echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33012fi
33013
33014
33015
33016
33017 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33018echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33019if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33020 echo $ECHO_N "(cached) $ECHO_C" >&6
33021else
33022
33023 cat >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#include <pthread.h>
33030int
33031main ()
33032{
33033
33034 pthread_mutexattr_t attr;
33035 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33036
33037 ;
33038 return 0;
33039}
33040_ACEOF
33041rm -f conftest.$ac_objext
33042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33043 (eval $ac_compile) 2>conftest.er1
a848cd7e 33044 ac_status=$?
ac1cb8d3
VS
33045 grep -v '^ *+' conftest.er1 >conftest.err
33046 rm -f conftest.er1
33047 cat conftest.err >&5
a848cd7e
SC
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); } &&
2cbbc68d
RD
33050 { ac_try='test -z "$ac_c_werror_flag"
33051 || test ! -s conftest.err'
ac1cb8d3
VS
33052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053 (eval $ac_try) 2>&5
33054 ac_status=$?
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); }; } &&
33057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059 (eval $ac_try) 2>&5
33060 ac_status=$?
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); }; }; then
33063
33064 wx_cv_type_pthread_mutexattr_t=yes
33065
33066else
33067 echo "$as_me: failed program was:" >&5
33068sed 's/^/| /' conftest.$ac_ext >&5
33069
33070
33071 wx_cv_type_pthread_mutexattr_t=no
33072
33073
33074fi
ac1cb8d3 33075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33076
33077fi
33078echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33079echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33080
33081 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33082 cat >>confdefs.h <<\_ACEOF
33083#define HAVE_PTHREAD_MUTEXATTR_T 1
33084_ACEOF
33085
33086 else
33087 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33088echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33089if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33090 echo $ECHO_N "(cached) $ECHO_C" >&6
33091else
33092
33093 cat >conftest.$ac_ext <<_ACEOF
33094/* confdefs.h. */
33095_ACEOF
33096cat confdefs.h >>conftest.$ac_ext
33097cat >>conftest.$ac_ext <<_ACEOF
33098/* end confdefs.h. */
33099#include <pthread.h>
33100int
33101main ()
33102{
33103
33104 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33105
33106 ;
33107 return 0;
33108}
33109_ACEOF
33110rm -f conftest.$ac_objext
33111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33112 (eval $ac_compile) 2>conftest.er1
a848cd7e 33113 ac_status=$?
ac1cb8d3
VS
33114 grep -v '^ *+' conftest.er1 >conftest.err
33115 rm -f conftest.er1
33116 cat conftest.err >&5
a848cd7e
SC
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); } &&
2cbbc68d
RD
33119 { ac_try='test -z "$ac_c_werror_flag"
33120 || test ! -s conftest.err'
ac1cb8d3
VS
33121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33122 (eval $ac_try) 2>&5
33123 ac_status=$?
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; } &&
33126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128 (eval $ac_try) 2>&5
33129 ac_status=$?
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; }; then
33132
33133 wx_cv_type_pthread_rec_mutex_init=yes
33134
33135else
33136 echo "$as_me: failed program was:" >&5
33137sed 's/^/| /' conftest.$ac_ext >&5
33138
33139
33140 wx_cv_type_pthread_rec_mutex_init=no
33141
33142
33143fi
ac1cb8d3 33144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33145
33146fi
33147echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33148echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33149 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33150 cat >>confdefs.h <<\_ACEOF
33151#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33152_ACEOF
33153
33154 else
33155 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33156echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33157 fi
33158 fi
33159 fi
33160
33161else
33162 if test "$wxUSE_THREADS" = "yes" ; then
33163 case "${host}" in
33164 *-*-mingw32* )
33165 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33166echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33167if test "${wx_cv_cflags_mthread+set}" = set; then
33168 echo $ECHO_N "(cached) $ECHO_C" >&6
33169else
33170
33171 CFLAGS_OLD="$CFLAGS"
33172 CFLAGS="$CFLAGS -mthreads"
33173 cat >conftest.$ac_ext <<_ACEOF
33174/* confdefs.h. */
33175_ACEOF
33176cat confdefs.h >>conftest.$ac_ext
33177cat >>conftest.$ac_ext <<_ACEOF
33178/* end confdefs.h. */
33179
33180int
33181main ()
33182{
33183
33184 ;
33185 return 0;
33186}
33187_ACEOF
33188rm -f conftest.$ac_objext
33189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33190 (eval $ac_compile) 2>conftest.er1
a848cd7e 33191 ac_status=$?
ac1cb8d3
VS
33192 grep -v '^ *+' conftest.er1 >conftest.err
33193 rm -f conftest.er1
33194 cat conftest.err >&5
a848cd7e
SC
33195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33196 (exit $ac_status); } &&
2cbbc68d
RD
33197 { ac_try='test -z "$ac_c_werror_flag"
33198 || test ! -s conftest.err'
ac1cb8d3
VS
33199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33200 (eval $ac_try) 2>&5
33201 ac_status=$?
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); }; } &&
33204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33206 (eval $ac_try) 2>&5
33207 ac_status=$?
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; }; then
33210 wx_cv_cflags_mthread=yes
33211else
33212 echo "$as_me: failed program was:" >&5
33213sed 's/^/| /' conftest.$ac_ext >&5
33214
33215wx_cv_cflags_mthread=no
33216
33217fi
ac1cb8d3 33218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33219
33220
33221fi
33222echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33223echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33224
33225 if test "$wx_cv_cflags_mthread" = "yes"; then
33226 CXXFLAGS="$CXXFLAGS -mthreads"
33227 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33228 LDFLAGS="$LDFLAGS -mthreads"
33229 else
33230 CFLAGS="$CFLAGS_OLD"
33231 fi
33232 ;;
33233 *-pc-os2*emx )
33234 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33235 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33236 LDFLAGS="$LDFLAGS -Zmt"
33237 ;;
33238 esac
33239 fi
33240fi
33241
33242if test "$wxUSE_THREADS" = "yes"; then
33243 cat >>confdefs.h <<\_ACEOF
33244#define wxUSE_THREADS 1
33245_ACEOF
33246
33247
33248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33249else
33250 if test "$ac_cv_func_strtok_r" = "yes"; then
33251 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33252echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33253 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33254 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33255 echo "$as_me:$LINENO: result: yes" >&5
33256echo "${ECHO_T}yes" >&6
33257 else
33258 echo "$as_me:$LINENO: result: no" >&5
33259echo "${ECHO_T}no" >&6
33260 fi
33261 fi
33262fi
33263
33264if test "$WXGTK20" = 1 ; then
33265 cat >>confdefs.h <<_ACEOF
33266#define __WXGTK20__ $WXGTK20
33267_ACEOF
33268
33269 WXGTK12=1
33270fi
33271
33272if test "$WXGTK12" = 1 ; then
33273 cat >>confdefs.h <<_ACEOF
33274#define __WXGTK12__ $WXGTK12
33275_ACEOF
33276
33277fi
33278
33279if test "$WXGTK127" = 1 ; then
33280 cat >>confdefs.h <<_ACEOF
33281#define __WXGTK127__ $WXGTK127
33282_ACEOF
33283
33284fi
33285
33286if test "$WXGPE" = 1 ; then
33287 cat >>confdefs.h <<_ACEOF
33288#define __WXGPE__ $WXGPE
33289_ACEOF
33290
33291fi
33292
33293WXDEBUG=
33294
33295if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33296 WXDEBUG="-g"
33297 wxUSE_OPTIMISE=no
33298fi
33299
33300if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33301 wxUSE_DEBUG_INFO=yes
33302 WXDEBUG="-ggdb"
33303fi
33304
33305if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33306 cat >>confdefs.h <<\_ACEOF
33307#define WXDEBUG 1
33308_ACEOF
33309
33310 WXDEBUG_DEFINE="-D__WXDEBUG__"
33311else
33312 if test "$wxUSE_GTK" = 1 ; then
33313 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33314 fi
33315fi
33316
33317if test "$wxUSE_MEM_TRACING" = "yes" ; then
33318 cat >>confdefs.h <<\_ACEOF
33319#define wxUSE_MEMORY_TRACING 1
33320_ACEOF
33321
33322 cat >>confdefs.h <<\_ACEOF
33323#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33324_ACEOF
33325
33326 cat >>confdefs.h <<\_ACEOF
33327#define wxUSE_DEBUG_NEW_ALWAYS 1
33328_ACEOF
33329
33330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33331fi
33332
33333if test "$wxUSE_DMALLOC" = "yes" ; then
33334 DMALLOC_LIBS="-ldmalloc"
33335fi
33336
33337PROFILE=
33338if test "$wxUSE_PROFILE" = "yes" ; then
33339 PROFILE=" -pg"
33340fi
33341
33342CODE_GEN_FLAGS=
33343CODE_GEN_FLAGS_CXX=
33344if test "$GCC" = "yes" ; then
33345 if test "$wxUSE_NO_RTTI" = "yes" ; then
33346 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33347 fi
33348 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33349 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33350 fi
33351 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33352 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33353 fi
33354
33355 case "${host}" in
33356 powerpc*-*-aix* )
33357 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33358 ;;
33359 *-hppa* )
33360 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33361 ;;
33362 esac
33363fi
33364
33365OPTIMISE=
33366if test "$wxUSE_OPTIMISE" = "no" ; then
33367 if test "$GCC" = yes ; then
33368 OPTIMISE="-O0"
33369 fi
33370else
33371 if test "$GCC" = yes ; then
33372 OPTIMISE="-O2"
33373
33374 case "${host}" in
33375 i586-*-*|i686-*-* )
33376 OPTIMISE="${OPTIMISE} "
33377 ;;
33378 esac
33379 else
33380 OPTIMISE="-O"
33381 fi
33382fi
33383
33384
33385if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33386 cat >>confdefs.h <<\_ACEOF
33387#define WXWIN_COMPATIBILITY_2_2 1
33388_ACEOF
33389
33390
33391 WXWIN_COMPATIBILITY_2_4="yes"
33392fi
33393
33394if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33395 cat >>confdefs.h <<\_ACEOF
33396#define WXWIN_COMPATIBILITY_2_4 1
33397_ACEOF
33398
33399fi
33400
33401
33402if test "$wxUSE_GUI" = "yes"; then
33403 cat >>confdefs.h <<\_ACEOF
33404#define wxUSE_GUI 1
33405_ACEOF
33406
33407
33408 else
33409 cat >>confdefs.h <<\_ACEOF
33410#define wxUSE_NOGUI 1
33411_ACEOF
33412
33413fi
33414
33415
33416if test "$wxUSE_UNIX" = "yes"; then
33417 cat >>confdefs.h <<\_ACEOF
33418#define wxUSE_UNIX 1
33419_ACEOF
33420
33421fi
33422
33423
33424if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33425
33426 HAVE_DL_FUNCS=0
33427 HAVE_SHL_FUNCS=0
33428 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33429 if test "$USE_DARWIN" = 1; then
33430 HAVE_DL_FUNCS=1
33431 else
33432
33433for ac_func in dlopen
33434do
33435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33436echo "$as_me:$LINENO: checking for $ac_func" >&5
33437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33438if eval "test \"\${$as_ac_var+set}\" = set"; then
33439 echo $ECHO_N "(cached) $ECHO_C" >&6
33440else
33441 cat >conftest.$ac_ext <<_ACEOF
33442/* confdefs.h. */
33443_ACEOF
33444cat confdefs.h >>conftest.$ac_ext
33445cat >>conftest.$ac_ext <<_ACEOF
33446/* end confdefs.h. */
ac1cb8d3
VS
33447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33449#define $ac_func innocuous_$ac_func
33450
a848cd7e
SC
33451/* System header to define __stub macros and hopefully few prototypes,
33452 which can conflict with char $ac_func (); below.
33453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33454 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33455
a848cd7e
SC
33456#ifdef __STDC__
33457# include <limits.h>
33458#else
33459# include <assert.h>
33460#endif
ac1cb8d3
VS
33461
33462#undef $ac_func
33463
a848cd7e
SC
33464/* Override any gcc2 internal prototype to avoid an error. */
33465#ifdef __cplusplus
33466extern "C"
33467{
33468#endif
33469/* We use char because int might match the return type of a gcc2
33470 builtin and then its argument prototype would still apply. */
33471char $ac_func ();
33472/* The GNU C library defines this for functions which it implements
33473 to always fail with ENOSYS. Some functions are actually named
33474 something starting with __ and the normal name is an alias. */
33475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33476choke me
33477#else
33478char (*f) () = $ac_func;
33479#endif
33480#ifdef __cplusplus
33481}
33482#endif
33483
33484int
33485main ()
33486{
33487return f != $ac_func;
33488 ;
33489 return 0;
33490}
33491_ACEOF
33492rm -f conftest.$ac_objext conftest$ac_exeext
33493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33494 (eval $ac_link) 2>conftest.er1
a848cd7e 33495 ac_status=$?
ac1cb8d3
VS
33496 grep -v '^ *+' conftest.er1 >conftest.err
33497 rm -f conftest.er1
33498 cat conftest.err >&5
a848cd7e
SC
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); } &&
2cbbc68d
RD
33501 { ac_try='test -z "$ac_c_werror_flag"
33502 || test ! -s conftest.err'
ac1cb8d3
VS
33503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33504 (eval $ac_try) 2>&5
33505 ac_status=$?
33506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33507 (exit $ac_status); }; } &&
33508 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33510 (eval $ac_try) 2>&5
33511 ac_status=$?
33512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33513 (exit $ac_status); }; }; then
33514 eval "$as_ac_var=yes"
33515else
33516 echo "$as_me: failed program was:" >&5
33517sed 's/^/| /' conftest.$ac_ext >&5
33518
33519eval "$as_ac_var=no"
33520fi
ac1cb8d3
VS
33521rm -f conftest.err conftest.$ac_objext \
33522 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33523fi
33524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33526if test `eval echo '${'$as_ac_var'}'` = yes; then
33527 cat >>confdefs.h <<_ACEOF
33528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33529_ACEOF
33530
33531 cat >>confdefs.h <<\_ACEOF
33532#define HAVE_DLOPEN 1
33533_ACEOF
33534
33535 HAVE_DL_FUNCS=1
33536
33537else
33538
33539 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33540echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33541if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33542 echo $ECHO_N "(cached) $ECHO_C" >&6
33543else
33544 ac_check_lib_save_LIBS=$LIBS
33545LIBS="-ldl $LIBS"
33546cat >conftest.$ac_ext <<_ACEOF
33547/* confdefs.h. */
33548_ACEOF
33549cat confdefs.h >>conftest.$ac_ext
33550cat >>conftest.$ac_ext <<_ACEOF
33551/* end confdefs.h. */
33552
33553/* Override any gcc2 internal prototype to avoid an error. */
33554#ifdef __cplusplus
33555extern "C"
33556#endif
33557/* We use char because int might match the return type of a gcc2
33558 builtin and then its argument prototype would still apply. */
33559char dlopen ();
33560int
33561main ()
33562{
33563dlopen ();
33564 ;
33565 return 0;
33566}
33567_ACEOF
33568rm -f conftest.$ac_objext conftest$ac_exeext
33569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33570 (eval $ac_link) 2>conftest.er1
a848cd7e 33571 ac_status=$?
ac1cb8d3
VS
33572 grep -v '^ *+' conftest.er1 >conftest.err
33573 rm -f conftest.er1
33574 cat conftest.err >&5
a848cd7e
SC
33575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576 (exit $ac_status); } &&
2cbbc68d
RD
33577 { ac_try='test -z "$ac_c_werror_flag"
33578 || test ! -s conftest.err'
ac1cb8d3
VS
33579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580 (eval $ac_try) 2>&5
33581 ac_status=$?
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); }; } &&
33584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33586 (eval $ac_try) 2>&5
33587 ac_status=$?
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); }; }; then
33590 ac_cv_lib_dl_dlopen=yes
33591else
33592 echo "$as_me: failed program was:" >&5
33593sed 's/^/| /' conftest.$ac_ext >&5
33594
33595ac_cv_lib_dl_dlopen=no
33596fi
ac1cb8d3
VS
33597rm -f conftest.err conftest.$ac_objext \
33598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33599LIBS=$ac_check_lib_save_LIBS
33600fi
33601echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33602echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33603if test $ac_cv_lib_dl_dlopen = yes; then
33604
33605 cat >>confdefs.h <<\_ACEOF
33606#define HAVE_DLOPEN 1
33607_ACEOF
33608
33609 HAVE_DL_FUNCS=1
33610 DL_LINK=" -ldl$DL_LINK"
33611
33612else
33613
33614
33615for ac_func in shl_load
33616do
33617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33618echo "$as_me:$LINENO: checking for $ac_func" >&5
33619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33620if eval "test \"\${$as_ac_var+set}\" = set"; then
33621 echo $ECHO_N "(cached) $ECHO_C" >&6
33622else
33623 cat >conftest.$ac_ext <<_ACEOF
33624/* confdefs.h. */
33625_ACEOF
33626cat confdefs.h >>conftest.$ac_ext
33627cat >>conftest.$ac_ext <<_ACEOF
33628/* end confdefs.h. */
ac1cb8d3
VS
33629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33631#define $ac_func innocuous_$ac_func
33632
a848cd7e
SC
33633/* System header to define __stub macros and hopefully few prototypes,
33634 which can conflict with char $ac_func (); below.
33635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33636 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33637
a848cd7e
SC
33638#ifdef __STDC__
33639# include <limits.h>
33640#else
33641# include <assert.h>
33642#endif
ac1cb8d3
VS
33643
33644#undef $ac_func
33645
a848cd7e
SC
33646/* Override any gcc2 internal prototype to avoid an error. */
33647#ifdef __cplusplus
33648extern "C"
33649{
33650#endif
33651/* We use char because int might match the return type of a gcc2
33652 builtin and then its argument prototype would still apply. */
33653char $ac_func ();
33654/* The GNU C library defines this for functions which it implements
33655 to always fail with ENOSYS. Some functions are actually named
33656 something starting with __ and the normal name is an alias. */
33657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33658choke me
33659#else
33660char (*f) () = $ac_func;
33661#endif
33662#ifdef __cplusplus
33663}
33664#endif
33665
33666int
33667main ()
33668{
33669return f != $ac_func;
33670 ;
33671 return 0;
33672}
33673_ACEOF
33674rm -f conftest.$ac_objext conftest$ac_exeext
33675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33676 (eval $ac_link) 2>conftest.er1
a848cd7e 33677 ac_status=$?
ac1cb8d3
VS
33678 grep -v '^ *+' conftest.er1 >conftest.err
33679 rm -f conftest.er1
33680 cat conftest.err >&5
a848cd7e
SC
33681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682 (exit $ac_status); } &&
2cbbc68d
RD
33683 { ac_try='test -z "$ac_c_werror_flag"
33684 || test ! -s conftest.err'
ac1cb8d3
VS
33685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33686 (eval $ac_try) 2>&5
33687 ac_status=$?
33688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689 (exit $ac_status); }; } &&
33690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33692 (eval $ac_try) 2>&5
33693 ac_status=$?
33694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695 (exit $ac_status); }; }; then
33696 eval "$as_ac_var=yes"
33697else
33698 echo "$as_me: failed program was:" >&5
33699sed 's/^/| /' conftest.$ac_ext >&5
33700
33701eval "$as_ac_var=no"
33702fi
ac1cb8d3
VS
33703rm -f conftest.err conftest.$ac_objext \
33704 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33705fi
33706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33707echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33708if test `eval echo '${'$as_ac_var'}'` = yes; then
33709 cat >>confdefs.h <<_ACEOF
33710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33711_ACEOF
33712
33713 cat >>confdefs.h <<\_ACEOF
33714#define HAVE_SHL_LOAD 1
33715_ACEOF
33716
33717 HAVE_SHL_FUNCS=1
33718
33719else
33720
33721 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33722echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33723if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33724 echo $ECHO_N "(cached) $ECHO_C" >&6
33725else
33726 ac_check_lib_save_LIBS=$LIBS
33727LIBS="-lshl_load $LIBS"
33728cat >conftest.$ac_ext <<_ACEOF
33729/* confdefs.h. */
33730_ACEOF
33731cat confdefs.h >>conftest.$ac_ext
33732cat >>conftest.$ac_ext <<_ACEOF
33733/* end confdefs.h. */
33734
33735/* Override any gcc2 internal prototype to avoid an error. */
33736#ifdef __cplusplus
33737extern "C"
33738#endif
33739/* We use char because int might match the return type of a gcc2
33740 builtin and then its argument prototype would still apply. */
33741char dld ();
33742int
33743main ()
33744{
33745dld ();
33746 ;
33747 return 0;
33748}
33749_ACEOF
33750rm -f conftest.$ac_objext conftest$ac_exeext
33751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33752 (eval $ac_link) 2>conftest.er1
a848cd7e 33753 ac_status=$?
ac1cb8d3
VS
33754 grep -v '^ *+' conftest.er1 >conftest.err
33755 rm -f conftest.er1
33756 cat conftest.err >&5
a848cd7e
SC
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); } &&
2cbbc68d
RD
33759 { ac_try='test -z "$ac_c_werror_flag"
33760 || test ! -s conftest.err'
ac1cb8d3
VS
33761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33762 (eval $ac_try) 2>&5
33763 ac_status=$?
33764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765 (exit $ac_status); }; } &&
33766 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33768 (eval $ac_try) 2>&5
33769 ac_status=$?
33770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771 (exit $ac_status); }; }; then
33772 ac_cv_lib_shl_load_dld=yes
33773else
33774 echo "$as_me: failed program was:" >&5
33775sed 's/^/| /' conftest.$ac_ext >&5
33776
33777ac_cv_lib_shl_load_dld=no
33778fi
ac1cb8d3
VS
33779rm -f conftest.err conftest.$ac_objext \
33780 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33781LIBS=$ac_check_lib_save_LIBS
33782fi
33783echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33784echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33785if test $ac_cv_lib_shl_load_dld = yes; then
33786
33787 HAVE_SHL_FUNCS=1
33788 DL_LINK=" -ldld$DL_LINK"
33789
33790fi
33791
33792
33793fi
33794done
33795
33796
33797fi
33798
33799
33800fi
33801done
33802
33803
33804 if test "$HAVE_DL_FUNCS" = 1; then
33805
33806for ac_func in dlerror
33807do
33808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33809echo "$as_me:$LINENO: checking for $ac_func" >&5
33810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33811if eval "test \"\${$as_ac_var+set}\" = set"; then
33812 echo $ECHO_N "(cached) $ECHO_C" >&6
33813else
33814 cat >conftest.$ac_ext <<_ACEOF
33815/* confdefs.h. */
33816_ACEOF
33817cat confdefs.h >>conftest.$ac_ext
33818cat >>conftest.$ac_ext <<_ACEOF
33819/* end confdefs.h. */
ac1cb8d3
VS
33820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33822#define $ac_func innocuous_$ac_func
33823
a848cd7e
SC
33824/* System header to define __stub macros and hopefully few prototypes,
33825 which can conflict with char $ac_func (); below.
33826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33827 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33828
a848cd7e
SC
33829#ifdef __STDC__
33830# include <limits.h>
33831#else
33832# include <assert.h>
33833#endif
ac1cb8d3
VS
33834
33835#undef $ac_func
33836
a848cd7e
SC
33837/* Override any gcc2 internal prototype to avoid an error. */
33838#ifdef __cplusplus
33839extern "C"
33840{
33841#endif
33842/* We use char because int might match the return type of a gcc2
33843 builtin and then its argument prototype would still apply. */
33844char $ac_func ();
33845/* The GNU C library defines this for functions which it implements
33846 to always fail with ENOSYS. Some functions are actually named
33847 something starting with __ and the normal name is an alias. */
33848#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33849choke me
33850#else
33851char (*f) () = $ac_func;
33852#endif
33853#ifdef __cplusplus
33854}
33855#endif
33856
33857int
33858main ()
33859{
33860return f != $ac_func;
33861 ;
33862 return 0;
33863}
33864_ACEOF
33865rm -f conftest.$ac_objext conftest$ac_exeext
33866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33867 (eval $ac_link) 2>conftest.er1
a848cd7e 33868 ac_status=$?
ac1cb8d3
VS
33869 grep -v '^ *+' conftest.er1 >conftest.err
33870 rm -f conftest.er1
33871 cat conftest.err >&5
a848cd7e
SC
33872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873 (exit $ac_status); } &&
2cbbc68d
RD
33874 { ac_try='test -z "$ac_c_werror_flag"
33875 || test ! -s conftest.err'
ac1cb8d3
VS
33876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33877 (eval $ac_try) 2>&5
33878 ac_status=$?
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); }; } &&
33881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33883 (eval $ac_try) 2>&5
33884 ac_status=$?
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); }; }; then
33887 eval "$as_ac_var=yes"
33888else
33889 echo "$as_me: failed program was:" >&5
33890sed 's/^/| /' conftest.$ac_ext >&5
33891
33892eval "$as_ac_var=no"
33893fi
ac1cb8d3
VS
33894rm -f conftest.err conftest.$ac_objext \
33895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33896fi
33897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33898echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33899if test `eval echo '${'$as_ac_var'}'` = yes; then
33900 cat >>confdefs.h <<_ACEOF
33901#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33902_ACEOF
33903 cat >>confdefs.h <<\_ACEOF
33904#define HAVE_DLERROR 1
33905_ACEOF
33906
33907else
33908
33909 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33910echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33911if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33912 echo $ECHO_N "(cached) $ECHO_C" >&6
33913else
33914 ac_check_lib_save_LIBS=$LIBS
33915LIBS="-ldl $LIBS"
33916cat >conftest.$ac_ext <<_ACEOF
33917/* confdefs.h. */
33918_ACEOF
33919cat confdefs.h >>conftest.$ac_ext
33920cat >>conftest.$ac_ext <<_ACEOF
33921/* end confdefs.h. */
33922
33923/* Override any gcc2 internal prototype to avoid an error. */
33924#ifdef __cplusplus
33925extern "C"
33926#endif
33927/* We use char because int might match the return type of a gcc2
33928 builtin and then its argument prototype would still apply. */
33929char dlerror ();
33930int
33931main ()
33932{
33933dlerror ();
33934 ;
33935 return 0;
33936}
33937_ACEOF
33938rm -f conftest.$ac_objext conftest$ac_exeext
33939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33940 (eval $ac_link) 2>conftest.er1
a848cd7e 33941 ac_status=$?
ac1cb8d3
VS
33942 grep -v '^ *+' conftest.er1 >conftest.err
33943 rm -f conftest.er1
33944 cat conftest.err >&5
a848cd7e
SC
33945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33946 (exit $ac_status); } &&
2cbbc68d
RD
33947 { ac_try='test -z "$ac_c_werror_flag"
33948 || test ! -s conftest.err'
ac1cb8d3
VS
33949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33950 (eval $ac_try) 2>&5
33951 ac_status=$?
33952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33953 (exit $ac_status); }; } &&
33954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33956 (eval $ac_try) 2>&5
33957 ac_status=$?
33958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959 (exit $ac_status); }; }; then
33960 ac_cv_lib_dl_dlerror=yes
33961else
33962 echo "$as_me: failed program was:" >&5
33963sed 's/^/| /' conftest.$ac_ext >&5
33964
33965ac_cv_lib_dl_dlerror=no
33966fi
ac1cb8d3
VS
33967rm -f conftest.err conftest.$ac_objext \
33968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33969LIBS=$ac_check_lib_save_LIBS
33970fi
33971echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33972echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33973if test $ac_cv_lib_dl_dlerror = yes; then
33974 cat >>confdefs.h <<\_ACEOF
33975#define HAVE_DLERROR 1
33976_ACEOF
33977
33978fi
33979
33980
33981
33982fi
33983done
33984
33985 fi
33986 fi
33987
33988 if test "$HAVE_DL_FUNCS" = 0; then
33989 if test "$HAVE_SHL_FUNCS" = 0; then
33990 if test "$USE_UNIX" = 1; then
33991 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33992echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33993 wxUSE_DYNAMIC_LOADER=no
33994 wxUSE_DYNLIB_CLASS=no
33995 else
33996 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33997echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33998 fi
33999 fi
34000 fi
34001 fi
34002fi
34003
34004if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34005 cat >>confdefs.h <<\_ACEOF
34006#define wxUSE_DYNAMIC_LOADER 1
34007_ACEOF
34008
34009fi
34010if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34011 cat >>confdefs.h <<\_ACEOF
34012#define wxUSE_DYNLIB_CLASS 1
34013_ACEOF
34014
34015fi
34016
34017
34018
34019if test "$wxUSE_PLUGINS" = "yes" ; then
34020 if test "$wxUSE_SHARED" = "no" ; then
34021 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34022echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34023 wxUSE_PLUGINS=no
34024 fi
34025 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34026 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34027echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34028 wxUSE_PLUGINS=no
34029 fi
34030 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34031 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34032echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34033 wxUSE_PLUGINS=no
34034 fi
34035 if test "$wxUSE_PLUGINS" = "yes" ; then
34036 cat >>confdefs.h <<\_ACEOF
34037#define wxUSE_PLUGINS 1
34038_ACEOF
34039
34040 fi
34041fi
34042
34043
34044if test "$wxUSE_STL" = "yes"; then
34045 cat >>confdefs.h <<\_ACEOF
34046#define wxUSE_STL 1
34047_ACEOF
34048
34049fi
34050
34051if test "$wxUSE_APPLE_IEEE" = "yes"; then
34052 cat >>confdefs.h <<\_ACEOF
34053#define wxUSE_APPLE_IEEE 1
34054_ACEOF
34055
34056fi
34057
34058if test "$wxUSE_TIMER" = "yes"; then
34059 cat >>confdefs.h <<\_ACEOF
34060#define wxUSE_TIMER 1
34061_ACEOF
34062
34063fi
34064
34065WITH_PLUGIN_SDL=0
34066if test "$wxUSE_SOUND" = "yes"; then
34067 if test "$USE_UNIX" = "1" ; then
34068
34069for ac_header in sys/soundcard.h
34070do
34071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34072if eval "test \"\${$as_ac_Header+set}\" = set"; then
34073 echo "$as_me:$LINENO: checking for $ac_header" >&5
34074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34075if eval "test \"\${$as_ac_Header+set}\" = set"; then
34076 echo $ECHO_N "(cached) $ECHO_C" >&6
34077fi
34078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34080else
34081 # Is the header compilable?
34082echo "$as_me:$LINENO: checking $ac_header usability" >&5
34083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34084cat >conftest.$ac_ext <<_ACEOF
34085/* confdefs.h. */
34086_ACEOF
34087cat confdefs.h >>conftest.$ac_ext
34088cat >>conftest.$ac_ext <<_ACEOF
34089/* end confdefs.h. */
34090$ac_includes_default
34091#include <$ac_header>
34092_ACEOF
34093rm -f conftest.$ac_objext
34094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34095 (eval $ac_compile) 2>conftest.er1
a848cd7e 34096 ac_status=$?
ac1cb8d3
VS
34097 grep -v '^ *+' conftest.er1 >conftest.err
34098 rm -f conftest.er1
34099 cat conftest.err >&5
a848cd7e
SC
34100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101 (exit $ac_status); } &&
2cbbc68d
RD
34102 { ac_try='test -z "$ac_c_werror_flag"
34103 || test ! -s conftest.err'
ac1cb8d3
VS
34104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34105 (eval $ac_try) 2>&5
34106 ac_status=$?
34107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); }; } &&
34109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111 (eval $ac_try) 2>&5
34112 ac_status=$?
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); }; }; then
34115 ac_header_compiler=yes
34116else
34117 echo "$as_me: failed program was:" >&5
34118sed 's/^/| /' conftest.$ac_ext >&5
34119
34120ac_header_compiler=no
34121fi
ac1cb8d3 34122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34124echo "${ECHO_T}$ac_header_compiler" >&6
34125
34126# Is the header present?
34127echo "$as_me:$LINENO: checking $ac_header presence" >&5
34128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34129cat >conftest.$ac_ext <<_ACEOF
34130/* confdefs.h. */
34131_ACEOF
34132cat confdefs.h >>conftest.$ac_ext
34133cat >>conftest.$ac_ext <<_ACEOF
34134/* end confdefs.h. */
34135#include <$ac_header>
34136_ACEOF
34137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34139 ac_status=$?
34140 grep -v '^ *+' conftest.er1 >conftest.err
34141 rm -f conftest.er1
34142 cat conftest.err >&5
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); } >/dev/null; then
34145 if test -s conftest.err; then
34146 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34148 else
34149 ac_cpp_err=
34150 fi
34151else
34152 ac_cpp_err=yes
34153fi
34154if test -z "$ac_cpp_err"; then
34155 ac_header_preproc=yes
34156else
34157 echo "$as_me: failed program was:" >&5
34158sed 's/^/| /' conftest.$ac_ext >&5
34159
34160 ac_header_preproc=no
34161fi
34162rm -f conftest.err conftest.$ac_ext
34163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34164echo "${ECHO_T}$ac_header_preproc" >&6
34165
34166# So? What about this header?
ac1cb8d3
VS
34167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34168 yes:no: )
a848cd7e
SC
34169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34173 ac_header_preproc=yes
a848cd7e 34174 ;;
ac1cb8d3 34175 no:yes:* )
a848cd7e
SC
34176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34188 (
34189 cat <<\_ASBOX
ac1cb8d3
VS
34190## ----------------------------------------- ##
34191## Report this to wx-dev@lists.wxwidgets.org ##
34192## ----------------------------------------- ##
a848cd7e
SC
34193_ASBOX
34194 ) |
34195 sed "s/^/$as_me: WARNING: /" >&2
34196 ;;
34197esac
34198echo "$as_me:$LINENO: checking for $ac_header" >&5
34199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34200if eval "test \"\${$as_ac_Header+set}\" = set"; then
34201 echo $ECHO_N "(cached) $ECHO_C" >&6
34202else
ac1cb8d3 34203 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34204fi
34205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34207
34208fi
34209if test `eval echo '${'$as_ac_Header'}'` = yes; then
34210 cat >>confdefs.h <<_ACEOF
34211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34212_ACEOF
34213
34214fi
34215
34216done
34217
34218
34219 if test "$wxUSE_LIBSDL" != "no"; then
34220
34221# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34222if test "${with_sdl_prefix+set}" = set; then
34223 withval="$with_sdl_prefix"
34224 sdl_prefix="$withval"
34225else
34226 sdl_prefix=""
34227fi;
34228
34229# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34230if test "${with_sdl_exec_prefix+set}" = set; then
34231 withval="$with_sdl_exec_prefix"
34232 sdl_exec_prefix="$withval"
34233else
34234 sdl_exec_prefix=""
34235fi;
34236# Check whether --enable-sdltest or --disable-sdltest was given.
34237if test "${enable_sdltest+set}" = set; then
34238 enableval="$enable_sdltest"
34239
34240else
34241 enable_sdltest=yes
34242fi;
34243
34244 if test x$sdl_exec_prefix != x ; then
34245 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34246 if test x${SDL_CONFIG+set} != xset ; then
34247 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34248 fi
34249 fi
34250 if test x$sdl_prefix != x ; then
34251 sdl_args="$sdl_args --prefix=$sdl_prefix"
34252 if test x${SDL_CONFIG+set} != xset ; then
34253 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34254 fi
34255 fi
34256
34257
34258 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34259 # Extract the first word of "sdl-config", so it can be a program name with args.
34260set dummy sdl-config; ac_word=$2
34261echo "$as_me:$LINENO: checking for $ac_word" >&5
34262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34263if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34264 echo $ECHO_N "(cached) $ECHO_C" >&6
34265else
34266 case $SDL_CONFIG in
34267 [\\/]* | ?:[\\/]*)
34268 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34269 ;;
34270 *)
34271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34272for as_dir in $PATH
34273do
34274 IFS=$as_save_IFS
34275 test -z "$as_dir" && as_dir=.
34276 for ac_exec_ext in '' $ac_executable_extensions; do
34277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34278 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34280 break 2
34281 fi
34282done
34283done
34284
34285 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34286 ;;
34287esac
34288fi
34289SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34290
34291if test -n "$SDL_CONFIG"; then
34292 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34293echo "${ECHO_T}$SDL_CONFIG" >&6
34294else
34295 echo "$as_me:$LINENO: result: no" >&5
34296echo "${ECHO_T}no" >&6
34297fi
34298
34299 min_sdl_version=1.2.0
34300 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34301echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34302 no_sdl=""
34303 if test "$SDL_CONFIG" = "no" ; then
34304 no_sdl=yes
34305 else
34306 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34307 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34308
34309 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34310 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34311 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34312 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34313 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34314 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34315 if test "x$enable_sdltest" = "xyes" ; then
34316 ac_save_CFLAGS="$CFLAGS"
34317 ac_save_LIBS="$LIBS"
34318 CFLAGS="$CFLAGS $SDL_CFLAGS"
34319 LIBS="$LIBS $SDL_LIBS"
34320 rm -f conf.sdltest
34321 if test "$cross_compiling" = yes; then
34322 echo $ac_n "cross compiling; assumed OK... $ac_c"
34323else
34324 cat >conftest.$ac_ext <<_ACEOF
34325/* confdefs.h. */
34326_ACEOF
34327cat confdefs.h >>conftest.$ac_ext
34328cat >>conftest.$ac_ext <<_ACEOF
34329/* end confdefs.h. */
34330
34331#include <stdio.h>
34332#include <stdlib.h>
34333#include <string.h>
34334#include "SDL.h"
34335
34336char*
34337my_strdup (char *str)
34338{
34339 char *new_str;
34340
34341 if (str)
34342 {
34343 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34344 strcpy (new_str, str);
34345 }
34346 else
34347 new_str = NULL;
34348
34349 return new_str;
34350}
34351
34352int main (int argc, char *argv[])
34353{
34354 int major, minor, micro;
34355 char *tmp_version;
34356
34357 /* This hangs on some systems (?)
34358 system ("touch conf.sdltest");
34359 */
34360 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34361
34362 /* HP/UX 9 (%@#!) writes to sscanf strings */
34363 tmp_version = my_strdup("$min_sdl_version");
34364 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34365 printf("%s, bad version string\n", "$min_sdl_version");
34366 exit(1);
34367 }
34368
34369 if (($sdl_major_version > major) ||
34370 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34371 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34372 {
34373 return 0;
34374 }
34375 else
34376 {
34377 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34378 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34379 printf("*** best to upgrade to the required version.\n");
34380 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34381 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34382 printf("*** config.cache before re-running configure\n");
34383 return 1;
34384 }
34385}
34386
34387
34388_ACEOF
34389rm -f conftest$ac_exeext
34390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34391 (eval $ac_link) 2>&5
34392 ac_status=$?
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34396 (eval $ac_try) 2>&5
34397 ac_status=$?
34398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399 (exit $ac_status); }; }; then
34400 :
34401else
34402 echo "$as_me: program exited with status $ac_status" >&5
34403echo "$as_me: failed program was:" >&5
34404sed 's/^/| /' conftest.$ac_ext >&5
34405
34406( exit $ac_status )
34407no_sdl=yes
34408fi
ac1cb8d3 34409rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34410fi
34411 CFLAGS="$ac_save_CFLAGS"
34412 LIBS="$ac_save_LIBS"
34413 fi
34414 fi
34415 if test "x$no_sdl" = x ; then
34416 echo "$as_me:$LINENO: result: yes" >&5
34417echo "${ECHO_T}yes" >&6
34418
34419 EXTRALIBS_SDL="$SDL_LIBS"
34420 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34421 cat >>confdefs.h <<\_ACEOF
34422#define wxUSE_LIBSDL 1
34423_ACEOF
34424
34425
34426 else
34427 echo "$as_me:$LINENO: result: no" >&5
34428echo "${ECHO_T}no" >&6
34429 if test "$SDL_CONFIG" = "no" ; then
34430 echo "*** The sdl-config script installed by SDL could not be found"
34431 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34432 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34433 echo "*** full path to sdl-config."
34434 else
34435 if test -f conf.sdltest ; then
34436 :
34437 else
34438 echo "*** Could not run SDL test program, checking why..."
34439 CFLAGS="$CFLAGS $SDL_CFLAGS"
34440 LIBS="$LIBS $SDL_LIBS"
34441 cat >conftest.$ac_ext <<_ACEOF
34442/* confdefs.h. */
34443_ACEOF
34444cat confdefs.h >>conftest.$ac_ext
34445cat >>conftest.$ac_ext <<_ACEOF
34446/* end confdefs.h. */
34447
34448#include <stdio.h>
34449#include "SDL.h"
34450
34451int main(int argc, char *argv[])
34452{ return 0; }
34453#undef main
34454#define main K_and_R_C_main
34455
34456int
34457main ()
34458{
34459 return 0;
34460 ;
34461 return 0;
34462}
34463_ACEOF
34464rm -f conftest.$ac_objext conftest$ac_exeext
34465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34466 (eval $ac_link) 2>conftest.er1
a848cd7e 34467 ac_status=$?
ac1cb8d3
VS
34468 grep -v '^ *+' conftest.er1 >conftest.err
34469 rm -f conftest.er1
34470 cat conftest.err >&5
a848cd7e
SC
34471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472 (exit $ac_status); } &&
2cbbc68d
RD
34473 { ac_try='test -z "$ac_c_werror_flag"
34474 || test ! -s conftest.err'
ac1cb8d3
VS
34475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34476 (eval $ac_try) 2>&5
34477 ac_status=$?
34478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479 (exit $ac_status); }; } &&
34480 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34482 (eval $ac_try) 2>&5
34483 ac_status=$?
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; }; then
34486 echo "*** The test program compiled, but did not run. This usually means"
34487 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34488 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34489 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34490 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34491 echo "*** is required on your system"
34492 echo "***"
34493 echo "*** If you have an old version installed, it is best to remove it, although"
34494 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34495else
34496 echo "$as_me: failed program was:" >&5
34497sed 's/^/| /' conftest.$ac_ext >&5
34498
34499 echo "*** The test program failed to compile or link. See the file config.log for the"
34500 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34501 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34502 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34503fi
ac1cb8d3
VS
34504rm -f conftest.err conftest.$ac_objext \
34505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34506 CFLAGS="$ac_save_CFLAGS"
34507 LIBS="$ac_save_LIBS"
34508 fi
34509 fi
34510 SDL_CFLAGS=""
34511 SDL_LIBS=""
34512 wxUSE_LIBSDL="no"
34513 fi
34514
34515
34516 rm -f conf.sdltest
34517
34518 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34519 WITH_PLUGIN_SDL=1
34520 fi
34521 fi
34522 fi
34523
34524 cat >>confdefs.h <<\_ACEOF
34525#define wxUSE_SOUND 1
34526_ACEOF
34527
34528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34529fi
34530
d1c38808
VZ
34531if test "$WXGTK20" = 1; then
34532 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
34533 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
34534
34535
34536 succeeded=no
34537
34538 if test -z "$PKG_CONFIG"; then
34539 # Extract the first word of "pkg-config", so it can be a program name with args.
34540set dummy pkg-config; ac_word=$2
34541echo "$as_me:$LINENO: checking for $ac_word" >&5
34542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34543if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34544 echo $ECHO_N "(cached) $ECHO_C" >&6
34545else
34546 case $PKG_CONFIG in
34547 [\\/]* | ?:[\\/]*)
34548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34549 ;;
34550 *)
34551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34552for as_dir in $PATH
34553do
34554 IFS=$as_save_IFS
34555 test -z "$as_dir" && as_dir=.
34556 for ac_exec_ext in '' $ac_executable_extensions; do
34557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34558 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34560 break 2
34561 fi
34562done
34563done
34564
34565 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
34566 ;;
34567esac
34568fi
34569PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34570
34571if test -n "$PKG_CONFIG"; then
34572 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34573echo "${ECHO_T}$PKG_CONFIG" >&6
34574else
34575 echo "$as_me:$LINENO: result: no" >&5
34576echo "${ECHO_T}no" >&6
34577fi
34578
34579 fi
34580
34581 if test "$PKG_CONFIG" = "no" ; then
34582 echo "*** The pkg-config script could not be found. Make sure it is"
34583 echo "*** in your path, or set the PKG_CONFIG environment variable"
34584 echo "*** to the full path to pkg-config."
34585 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
34586 else
34587 PKG_CONFIG_MIN_VERSION=0.9.0
34588 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
34589 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2" >&5
34590echo $ECHO_N "checking for libgnomeprintui-2.2... $ECHO_C" >&6
34591
34592 if $PKG_CONFIG --exists "libgnomeprintui-2.2" ; then
34593 echo "$as_me:$LINENO: result: yes" >&5
34594echo "${ECHO_T}yes" >&6
34595 succeeded=yes
34596
34597 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
34598echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
34599 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2"`
34600 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
34601echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
34602
34603 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
34604echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
34605 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2"`
34606 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
34607echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
34608 else
34609 LIBGNOMEPRINTUI_CFLAGS=""
34610 LIBGNOMEPRINTUI_LIBS=""
34611 ## If we have a custom action on failure, don't print errors, but
34612 ## do set a variable so people can do so.
34613 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2"`
34614
34615 fi
34616
34617
34618
34619 else
34620 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
34621 echo "*** See http://www.freedesktop.org/software/pkgconfig"
34622 fi
34623 fi
34624
34625 if test $succeeded = yes; then
34626
34627 EXTRALIBS_GNOMEPRINT="$LIBGNOMEPRINTUI_LIBS"
34628 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
34629 cat >>confdefs.h <<\_ACEOF
34630#define wxUSE_LIBGNOMEPRINT 1
34631_ACEOF
34632
34633
34634 else
34635
34636 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
34637echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
34638 wxUSE_LIBGNOMEPRINT="no"
34639
34640
34641 fi
34642
34643 fi
34644 fi
34645fi
34646
34647
a848cd7e
SC
34648if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34649 cat >>confdefs.h <<\_ACEOF
34650#define wxUSE_CMDLINE_PARSER 1
34651_ACEOF
34652
34653fi
34654
34655if test "$wxUSE_STOPWATCH" = "yes"; then
34656 cat >>confdefs.h <<\_ACEOF
34657#define wxUSE_STOPWATCH 1
34658_ACEOF
34659
34660fi
34661
34662if test "$wxUSE_DATETIME" = "yes"; then
34663 cat >>confdefs.h <<\_ACEOF
34664#define wxUSE_DATETIME 1
34665_ACEOF
34666
34667fi
34668
34669if test "$wxUSE_FILE" = "yes"; then
34670 cat >>confdefs.h <<\_ACEOF
34671#define wxUSE_FILE 1
34672_ACEOF
34673
34674fi
34675
34676if test "$wxUSE_FFILE" = "yes"; then
34677 cat >>confdefs.h <<\_ACEOF
34678#define wxUSE_FFILE 1
34679_ACEOF
34680
34681fi
34682
34683if test "$wxUSE_FILESYSTEM" = "yes"; then
34684 cat >>confdefs.h <<\_ACEOF
34685#define wxUSE_FILESYSTEM 1
34686_ACEOF
34687
34688fi
34689
34690if test "$wxUSE_FS_ZIP" = "yes"; then
34691 cat >>confdefs.h <<\_ACEOF
34692#define wxUSE_FS_ZIP 1
34693_ACEOF
34694
34695fi
34696
34697if test "$wxUSE_ZIPSTREAM" = "yes"; then
34698 cat >>confdefs.h <<\_ACEOF
34699#define wxUSE_ZIPSTREAM 1
34700_ACEOF
34701
34702fi
34703
a848cd7e
SC
34704if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34705 cat >>confdefs.h <<\_ACEOF
34706#define wxUSE_ON_FATAL_EXCEPTION 1
34707_ACEOF
34708
34709fi
34710
34711if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34712 cat >>confdefs.h <<\_ACEOF
34713#define wxUSE_SNGLINST_CHECKER 1
34714_ACEOF
34715
34716fi
34717
34718if test "$wxUSE_BUSYINFO" = "yes"; then
34719 cat >>confdefs.h <<\_ACEOF
34720#define wxUSE_BUSYINFO 1
34721_ACEOF
34722
34723fi
34724
34725if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34726 cat >>confdefs.h <<\_ACEOF
34727#define wxUSE_STD_IOSTREAM 1
34728_ACEOF
34729
34730fi
34731
34732if test "$wxUSE_TEXTBUFFER" = "yes"; then
34733 cat >>confdefs.h <<\_ACEOF
34734#define wxUSE_TEXTBUFFER 1
34735_ACEOF
34736
34737fi
34738
34739if test "$wxUSE_TEXTFILE" = "yes"; then
34740 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34741 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34742echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34743 else
34744 cat >>confdefs.h <<\_ACEOF
34745#define wxUSE_TEXTFILE 1
34746_ACEOF
34747
34748 fi
34749fi
34750
34751if test "$wxUSE_CONFIG" = "yes" ; then
34752 if test "$wxUSE_TEXTFILE" != "yes"; then
34753 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34754echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34755 else
34756 cat >>confdefs.h <<\_ACEOF
34757#define wxUSE_CONFIG 1
34758_ACEOF
34759
34760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34761 fi
34762fi
34763
34764if test "$wxUSE_INTL" = "yes" ; then
34765 if test "$wxUSE_FILE" != "yes"; then
34766 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34767echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34768 else
34769 cat >>confdefs.h <<\_ACEOF
34770#define wxUSE_INTL 1
34771_ACEOF
34772
34773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34774 GUIDIST="$GUIDIST INTL_DIST"
34775 fi
34776fi
34777
34778if test "$wxUSE_LOG" = "yes"; then
34779 cat >>confdefs.h <<\_ACEOF
34780#define wxUSE_LOG 1
34781_ACEOF
34782
34783
34784 if test "$wxUSE_LOGGUI" = "yes"; then
34785 cat >>confdefs.h <<\_ACEOF
34786#define wxUSE_LOGGUI 1
34787_ACEOF
34788
34789 fi
34790
34791 if test "$wxUSE_LOGWINDOW" = "yes"; then
34792 cat >>confdefs.h <<\_ACEOF
34793#define wxUSE_LOGWINDOW 1
34794_ACEOF
34795
34796 fi
34797
34798 if test "$wxUSE_LOGDIALOG" = "yes"; then
34799 cat >>confdefs.h <<\_ACEOF
34800#define wxUSE_LOG_DIALOG 1
34801_ACEOF
34802
34803 fi
34804fi
34805
34806if test "$wxUSE_LONGLONG" = "yes"; then
34807 cat >>confdefs.h <<\_ACEOF
34808#define wxUSE_LONGLONG 1
34809_ACEOF
34810
34811fi
34812
34813if test "$wxUSE_GEOMETRY" = "yes"; then
34814 cat >>confdefs.h <<\_ACEOF
34815#define wxUSE_GEOMETRY 1
34816_ACEOF
34817
34818fi
34819
34820if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34821 cat >>confdefs.h <<\_ACEOF
34822#define wxUSE_DIALUP_MANAGER 1
34823_ACEOF
34824
34825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34826fi
34827
34828if test "$wxUSE_STREAMS" = "yes" ; then
34829 cat >>confdefs.h <<\_ACEOF
34830#define wxUSE_STREAMS 1
34831_ACEOF
34832
34833fi
34834
34835
34836if test "$wxUSE_DATETIME" = "yes"; then
34837
34838for ac_func in strptime
34839do
34840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34841echo "$as_me:$LINENO: checking for $ac_func" >&5
34842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34843if eval "test \"\${$as_ac_var+set}\" = set"; then
34844 echo $ECHO_N "(cached) $ECHO_C" >&6
34845else
34846 cat >conftest.$ac_ext <<_ACEOF
34847/* confdefs.h. */
34848_ACEOF
34849cat confdefs.h >>conftest.$ac_ext
34850cat >>conftest.$ac_ext <<_ACEOF
34851/* end confdefs.h. */
ac1cb8d3
VS
34852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34854#define $ac_func innocuous_$ac_func
34855
a848cd7e
SC
34856/* System header to define __stub macros and hopefully few prototypes,
34857 which can conflict with char $ac_func (); below.
34858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34859 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34860
a848cd7e
SC
34861#ifdef __STDC__
34862# include <limits.h>
34863#else
34864# include <assert.h>
34865#endif
ac1cb8d3
VS
34866
34867#undef $ac_func
34868
a848cd7e
SC
34869/* Override any gcc2 internal prototype to avoid an error. */
34870#ifdef __cplusplus
34871extern "C"
34872{
34873#endif
34874/* We use char because int might match the return type of a gcc2
34875 builtin and then its argument prototype would still apply. */
34876char $ac_func ();
34877/* The GNU C library defines this for functions which it implements
34878 to always fail with ENOSYS. Some functions are actually named
34879 something starting with __ and the normal name is an alias. */
34880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34881choke me
34882#else
34883char (*f) () = $ac_func;
34884#endif
34885#ifdef __cplusplus
34886}
34887#endif
34888
34889int
34890main ()
34891{
34892return f != $ac_func;
34893 ;
34894 return 0;
34895}
34896_ACEOF
34897rm -f conftest.$ac_objext conftest$ac_exeext
34898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34899 (eval $ac_link) 2>conftest.er1
a848cd7e 34900 ac_status=$?
ac1cb8d3
VS
34901 grep -v '^ *+' conftest.er1 >conftest.err
34902 rm -f conftest.er1
34903 cat conftest.err >&5
a848cd7e
SC
34904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34905 (exit $ac_status); } &&
2cbbc68d
RD
34906 { ac_try='test -z "$ac_c_werror_flag"
34907 || test ! -s conftest.err'
ac1cb8d3
VS
34908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34909 (eval $ac_try) 2>&5
34910 ac_status=$?
34911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912 (exit $ac_status); }; } &&
34913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34915 (eval $ac_try) 2>&5
34916 ac_status=$?
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); }; }; then
34919 eval "$as_ac_var=yes"
34920else
34921 echo "$as_me: failed program was:" >&5
34922sed 's/^/| /' conftest.$ac_ext >&5
34923
34924eval "$as_ac_var=no"
34925fi
ac1cb8d3
VS
34926rm -f conftest.err conftest.$ac_objext \
34927 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34928fi
34929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34930echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34931if test `eval echo '${'$as_ac_var'}'` = yes; then
34932 cat >>confdefs.h <<_ACEOF
34933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34934_ACEOF
34935
34936fi
34937done
34938
34939
34940 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34941echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34942if test "${wx_cv_var_timezone+set}" = set; then
34943 echo $ECHO_N "(cached) $ECHO_C" >&6
34944else
34945
34946 cat >conftest.$ac_ext <<_ACEOF
34947/* confdefs.h. */
34948_ACEOF
34949cat confdefs.h >>conftest.$ac_ext
34950cat >>conftest.$ac_ext <<_ACEOF
34951/* end confdefs.h. */
34952
34953 #include <time.h>
34954
34955int
34956main ()
34957{
34958
34959 int tz;
34960 tz = timezone;
34961
34962 ;
34963 return 0;
34964}
34965_ACEOF
34966rm -f conftest.$ac_objext
34967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34968 (eval $ac_compile) 2>conftest.er1
a848cd7e 34969 ac_status=$?
ac1cb8d3
VS
34970 grep -v '^ *+' conftest.er1 >conftest.err
34971 rm -f conftest.er1
34972 cat conftest.err >&5
a848cd7e
SC
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); } &&
2cbbc68d
RD
34975 { ac_try='test -z "$ac_c_werror_flag"
34976 || test ! -s conftest.err'
ac1cb8d3
VS
34977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34978 (eval $ac_try) 2>&5
34979 ac_status=$?
34980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981 (exit $ac_status); }; } &&
34982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34984 (eval $ac_try) 2>&5
34985 ac_status=$?
34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); }; }; then
34988
34989 wx_cv_var_timezone=timezone
34990
34991else
34992 echo "$as_me: failed program was:" >&5
34993sed 's/^/| /' conftest.$ac_ext >&5
34994
34995
34996 cat >conftest.$ac_ext <<_ACEOF
34997/* confdefs.h. */
34998_ACEOF
34999cat confdefs.h >>conftest.$ac_ext
35000cat >>conftest.$ac_ext <<_ACEOF
35001/* end confdefs.h. */
35002
35003 #include <time.h>
35004
35005int
35006main ()
35007{
35008
35009 int tz;
35010 tz = _timezone;
35011
35012 ;
35013 return 0;
35014}
35015_ACEOF
35016rm -f conftest.$ac_objext
35017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35018 (eval $ac_compile) 2>conftest.er1
a848cd7e 35019 ac_status=$?
ac1cb8d3
VS
35020 grep -v '^ *+' conftest.er1 >conftest.err
35021 rm -f conftest.er1
35022 cat conftest.err >&5
a848cd7e
SC
35023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024 (exit $ac_status); } &&
2cbbc68d
RD
35025 { ac_try='test -z "$ac_c_werror_flag"
35026 || test ! -s conftest.err'
ac1cb8d3
VS
35027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35028 (eval $ac_try) 2>&5
35029 ac_status=$?
35030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031 (exit $ac_status); }; } &&
35032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35034 (eval $ac_try) 2>&5
35035 ac_status=$?
35036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037 (exit $ac_status); }; }; then
35038
35039 wx_cv_var_timezone=_timezone
35040
35041else
35042 echo "$as_me: failed program was:" >&5
35043sed 's/^/| /' conftest.$ac_ext >&5
35044
35045
35046 cat >conftest.$ac_ext <<_ACEOF
35047/* confdefs.h. */
35048_ACEOF
35049cat confdefs.h >>conftest.$ac_ext
35050cat >>conftest.$ac_ext <<_ACEOF
35051/* end confdefs.h. */
35052
35053 #include <time.h>
35054
35055int
35056main ()
35057{
35058
35059 int tz;
35060 tz = __timezone;
35061
35062 ;
35063 return 0;
35064}
35065_ACEOF
35066rm -f conftest.$ac_objext
35067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35068 (eval $ac_compile) 2>conftest.er1
a848cd7e 35069 ac_status=$?
ac1cb8d3
VS
35070 grep -v '^ *+' conftest.er1 >conftest.err
35071 rm -f conftest.er1
35072 cat conftest.err >&5
a848cd7e
SC
35073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074 (exit $ac_status); } &&
2cbbc68d
RD
35075 { ac_try='test -z "$ac_c_werror_flag"
35076 || test ! -s conftest.err'
ac1cb8d3
VS
35077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35078 (eval $ac_try) 2>&5
35079 ac_status=$?
35080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081 (exit $ac_status); }; } &&
35082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35084 (eval $ac_try) 2>&5
35085 ac_status=$?
35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087 (exit $ac_status); }; }; then
35088
35089 wx_cv_var_timezone=__timezone
35090
35091else
35092 echo "$as_me: failed program was:" >&5
35093sed 's/^/| /' conftest.$ac_ext >&5
35094
35095
35096 if test "$USE_DOS" = 0 ; then
35097 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35098echo "$as_me: WARNING: no timezone variable" >&2;}
35099 fi
35100
35101
35102fi
ac1cb8d3 35103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35104
35105
35106fi
ac1cb8d3 35107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35108
35109
35110fi
ac1cb8d3 35111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35112
35113
35114fi
35115echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35116echo "${ECHO_T}$wx_cv_var_timezone" >&6
35117
35118 if test "x$wx_cv_var_timezone" != x ; then
35119 cat >>confdefs.h <<_ACEOF
35120#define WX_TIMEZONE $wx_cv_var_timezone
35121_ACEOF
35122
35123 fi
35124
35125
35126for ac_func in localtime
35127do
35128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35129echo "$as_me:$LINENO: checking for $ac_func" >&5
35130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35131if eval "test \"\${$as_ac_var+set}\" = set"; then
35132 echo $ECHO_N "(cached) $ECHO_C" >&6
35133else
35134 cat >conftest.$ac_ext <<_ACEOF
35135/* confdefs.h. */
35136_ACEOF
35137cat confdefs.h >>conftest.$ac_ext
35138cat >>conftest.$ac_ext <<_ACEOF
35139/* end confdefs.h. */
ac1cb8d3
VS
35140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35142#define $ac_func innocuous_$ac_func
35143
a848cd7e
SC
35144/* System header to define __stub macros and hopefully few prototypes,
35145 which can conflict with char $ac_func (); below.
35146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35147 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35148
a848cd7e
SC
35149#ifdef __STDC__
35150# include <limits.h>
35151#else
35152# include <assert.h>
35153#endif
ac1cb8d3
VS
35154
35155#undef $ac_func
35156
a848cd7e
SC
35157/* Override any gcc2 internal prototype to avoid an error. */
35158#ifdef __cplusplus
35159extern "C"
35160{
35161#endif
35162/* We use char because int might match the return type of a gcc2
35163 builtin and then its argument prototype would still apply. */
35164char $ac_func ();
35165/* The GNU C library defines this for functions which it implements
35166 to always fail with ENOSYS. Some functions are actually named
35167 something starting with __ and the normal name is an alias. */
35168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35169choke me
35170#else
35171char (*f) () = $ac_func;
35172#endif
35173#ifdef __cplusplus
35174}
35175#endif
35176
35177int
35178main ()
35179{
35180return f != $ac_func;
35181 ;
35182 return 0;
35183}
35184_ACEOF
35185rm -f conftest.$ac_objext conftest$ac_exeext
35186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35187 (eval $ac_link) 2>conftest.er1
a848cd7e 35188 ac_status=$?
ac1cb8d3
VS
35189 grep -v '^ *+' conftest.er1 >conftest.err
35190 rm -f conftest.er1
35191 cat conftest.err >&5
a848cd7e
SC
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); } &&
2cbbc68d
RD
35194 { ac_try='test -z "$ac_c_werror_flag"
35195 || test ! -s conftest.err'
ac1cb8d3
VS
35196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35197 (eval $ac_try) 2>&5
35198 ac_status=$?
35199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200 (exit $ac_status); }; } &&
35201 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35203 (eval $ac_try) 2>&5
35204 ac_status=$?
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); }; }; then
35207 eval "$as_ac_var=yes"
35208else
35209 echo "$as_me: failed program was:" >&5
35210sed 's/^/| /' conftest.$ac_ext >&5
35211
35212eval "$as_ac_var=no"
35213fi
ac1cb8d3
VS
35214rm -f conftest.err conftest.$ac_objext \
35215 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35216fi
35217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35219if test `eval echo '${'$as_ac_var'}'` = yes; then
35220 cat >>confdefs.h <<_ACEOF
35221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35222_ACEOF
35223
35224fi
35225done
35226
35227
35228 if test "$ac_cv_func_localtime" = "yes"; then
35229 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35230echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35231if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35232 echo $ECHO_N "(cached) $ECHO_C" >&6
35233else
35234
35235 cat >conftest.$ac_ext <<_ACEOF
35236/* confdefs.h. */
35237_ACEOF
35238cat confdefs.h >>conftest.$ac_ext
35239cat >>conftest.$ac_ext <<_ACEOF
35240/* end confdefs.h. */
35241
35242 #include <time.h>
35243
35244int
35245main ()
35246{
35247
35248 struct tm tm;
35249 tm.tm_gmtoff++;
35250
35251 ;
35252 return 0;
35253}
35254_ACEOF
35255rm -f conftest.$ac_objext
35256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35257 (eval $ac_compile) 2>conftest.er1
a848cd7e 35258 ac_status=$?
ac1cb8d3
VS
35259 grep -v '^ *+' conftest.er1 >conftest.err
35260 rm -f conftest.er1
35261 cat conftest.err >&5
a848cd7e
SC
35262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263 (exit $ac_status); } &&
2cbbc68d
RD
35264 { ac_try='test -z "$ac_c_werror_flag"
35265 || test ! -s conftest.err'
ac1cb8d3
VS
35266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35267 (eval $ac_try) 2>&5
35268 ac_status=$?
35269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270 (exit $ac_status); }; } &&
35271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35273 (eval $ac_try) 2>&5
35274 ac_status=$?
35275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276 (exit $ac_status); }; }; then
35277
35278 wx_cv_struct_tm_has_gmtoff=yes
35279
35280else
35281 echo "$as_me: failed program was:" >&5
35282sed 's/^/| /' conftest.$ac_ext >&5
35283
35284wx_cv_struct_tm_has_gmtoff=no
35285
35286fi
ac1cb8d3 35287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35288
35289fi
35290echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35291echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35292 fi
35293
35294 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35295 cat >>confdefs.h <<\_ACEOF
35296#define WX_GMTOFF_IN_TM 1
35297_ACEOF
35298
35299 fi
35300
35301
35302
35303for ac_func in gettimeofday ftime
35304do
35305as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35306echo "$as_me:$LINENO: checking for $ac_func" >&5
35307echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35308if eval "test \"\${$as_ac_var+set}\" = set"; then
35309 echo $ECHO_N "(cached) $ECHO_C" >&6
35310else
35311 cat >conftest.$ac_ext <<_ACEOF
35312/* confdefs.h. */
35313_ACEOF
35314cat confdefs.h >>conftest.$ac_ext
35315cat >>conftest.$ac_ext <<_ACEOF
35316/* end confdefs.h. */
ac1cb8d3
VS
35317/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35319#define $ac_func innocuous_$ac_func
35320
a848cd7e
SC
35321/* System header to define __stub macros and hopefully few prototypes,
35322 which can conflict with char $ac_func (); below.
35323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35324 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35325
a848cd7e
SC
35326#ifdef __STDC__
35327# include <limits.h>
35328#else
35329# include <assert.h>
35330#endif
ac1cb8d3
VS
35331
35332#undef $ac_func
35333
a848cd7e
SC
35334/* Override any gcc2 internal prototype to avoid an error. */
35335#ifdef __cplusplus
35336extern "C"
35337{
35338#endif
35339/* We use char because int might match the return type of a gcc2
35340 builtin and then its argument prototype would still apply. */
35341char $ac_func ();
35342/* The GNU C library defines this for functions which it implements
35343 to always fail with ENOSYS. Some functions are actually named
35344 something starting with __ and the normal name is an alias. */
35345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35346choke me
35347#else
35348char (*f) () = $ac_func;
35349#endif
35350#ifdef __cplusplus
35351}
35352#endif
35353
35354int
35355main ()
35356{
35357return f != $ac_func;
35358 ;
35359 return 0;
35360}
35361_ACEOF
35362rm -f conftest.$ac_objext conftest$ac_exeext
35363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35364 (eval $ac_link) 2>conftest.er1
a848cd7e 35365 ac_status=$?
ac1cb8d3
VS
35366 grep -v '^ *+' conftest.er1 >conftest.err
35367 rm -f conftest.er1
35368 cat conftest.err >&5
a848cd7e
SC
35369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370 (exit $ac_status); } &&
2cbbc68d
RD
35371 { ac_try='test -z "$ac_c_werror_flag"
35372 || test ! -s conftest.err'
ac1cb8d3
VS
35373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35374 (eval $ac_try) 2>&5
35375 ac_status=$?
35376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377 (exit $ac_status); }; } &&
35378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35380 (eval $ac_try) 2>&5
35381 ac_status=$?
35382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35383 (exit $ac_status); }; }; then
35384 eval "$as_ac_var=yes"
35385else
35386 echo "$as_me: failed program was:" >&5
35387sed 's/^/| /' conftest.$ac_ext >&5
35388
35389eval "$as_ac_var=no"
35390fi
ac1cb8d3
VS
35391rm -f conftest.err conftest.$ac_objext \
35392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35393fi
35394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35395echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35396if test `eval echo '${'$as_ac_var'}'` = yes; then
35397 cat >>confdefs.h <<_ACEOF
35398#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35399_ACEOF
35400 break
35401fi
35402done
35403
35404
35405 if test "$ac_cv_func_gettimeofday" = "yes"; then
35406 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35407echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35408if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35409 echo $ECHO_N "(cached) $ECHO_C" >&6
35410else
35411
35412
35413
35414 ac_ext=cc
35415ac_cpp='$CXXCPP $CPPFLAGS'
35416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35419
35420
35421 cat >conftest.$ac_ext <<_ACEOF
35422/* confdefs.h. */
35423_ACEOF
35424cat confdefs.h >>conftest.$ac_ext
35425cat >>conftest.$ac_ext <<_ACEOF
35426/* end confdefs.h. */
35427
35428 #include <sys/time.h>
35429 #include <unistd.h>
35430
35431int
35432main ()
35433{
35434
35435 struct timeval tv;
35436 gettimeofday(&tv, NULL);
35437
35438 ;
35439 return 0;
35440}
35441_ACEOF
35442rm -f conftest.$ac_objext
35443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35444 (eval $ac_compile) 2>conftest.er1
a848cd7e 35445 ac_status=$?
ac1cb8d3
VS
35446 grep -v '^ *+' conftest.er1 >conftest.err
35447 rm -f conftest.er1
35448 cat conftest.err >&5
a848cd7e
SC
35449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450 (exit $ac_status); } &&
2cbbc68d
RD
35451 { ac_try='test -z "$ac_cxx_werror_flag"
35452 || test ! -s conftest.err'
ac1cb8d3
VS
35453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35454 (eval $ac_try) 2>&5
35455 ac_status=$?
35456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457 (exit $ac_status); }; } &&
35458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35460 (eval $ac_try) 2>&5
35461 ac_status=$?
35462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463 (exit $ac_status); }; }; then
35464 wx_cv_func_gettimeofday_has_2_args=yes
35465else
35466 echo "$as_me: failed program was:" >&5
35467sed 's/^/| /' conftest.$ac_ext >&5
35468
35469cat >conftest.$ac_ext <<_ACEOF
35470/* confdefs.h. */
35471_ACEOF
35472cat confdefs.h >>conftest.$ac_ext
35473cat >>conftest.$ac_ext <<_ACEOF
35474/* end confdefs.h. */
35475
35476 #include <sys/time.h>
35477 #include <unistd.h>
35478
35479int
35480main ()
35481{
35482
35483 struct timeval tv;
35484 gettimeofday(&tv);
35485
35486 ;
35487 return 0;
35488}
35489_ACEOF
35490rm -f conftest.$ac_objext
35491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35492 (eval $ac_compile) 2>conftest.er1
a848cd7e 35493 ac_status=$?
ac1cb8d3
VS
35494 grep -v '^ *+' conftest.er1 >conftest.err
35495 rm -f conftest.er1
35496 cat conftest.err >&5
a848cd7e
SC
35497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498 (exit $ac_status); } &&
2cbbc68d
RD
35499 { ac_try='test -z "$ac_cxx_werror_flag"
35500 || test ! -s conftest.err'
ac1cb8d3
VS
35501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35502 (eval $ac_try) 2>&5
35503 ac_status=$?
35504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505 (exit $ac_status); }; } &&
35506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35508 (eval $ac_try) 2>&5
35509 ac_status=$?
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); }; }; then
35512 wx_cv_func_gettimeofday_has_2_args=no
35513else
35514 echo "$as_me: failed program was:" >&5
35515sed 's/^/| /' conftest.$ac_ext >&5
35516
35517
35518 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35519echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35520 wx_cv_func_gettimeofday_has_2_args=unknown
35521
35522
35523fi
ac1cb8d3 35524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35525
35526fi
ac1cb8d3 35527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35528 ac_ext=c
35529ac_cpp='$CPP $CPPFLAGS'
35530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35532ac_compiler_gnu=$ac_cv_c_compiler_gnu
35533
35534
35535fi
35536echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35537echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35538
35539 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35540 cat >>confdefs.h <<\_ACEOF
35541#define WX_GETTIMEOFDAY_NO_TZ 1
35542_ACEOF
35543
35544 fi
35545 fi
35546
35547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35548fi
35549
35550
35551if test "$wxUSE_SOCKETS" = "yes"; then
35552 if test "$wxUSE_MGL" = "1"; then
35553 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35554echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35555 wxUSE_SOCKETS="no"
35556 fi
35557fi
35558
35559if test "$wxUSE_SOCKETS" = "yes"; then
35560 if test "$TOOLKIT" != "MSW"; then
35561 echo "$as_me:$LINENO: checking for socket" >&5
35562echo $ECHO_N "checking for socket... $ECHO_C" >&6
35563if test "${ac_cv_func_socket+set}" = set; then
35564 echo $ECHO_N "(cached) $ECHO_C" >&6
35565else
35566 cat >conftest.$ac_ext <<_ACEOF
35567/* confdefs.h. */
35568_ACEOF
35569cat confdefs.h >>conftest.$ac_ext
35570cat >>conftest.$ac_ext <<_ACEOF
35571/* end confdefs.h. */
ac1cb8d3
VS
35572/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35574#define socket innocuous_socket
35575
a848cd7e
SC
35576/* System header to define __stub macros and hopefully few prototypes,
35577 which can conflict with char socket (); below.
35578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35579 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35580
a848cd7e
SC
35581#ifdef __STDC__
35582# include <limits.h>
35583#else
35584# include <assert.h>
35585#endif
ac1cb8d3
VS
35586
35587#undef socket
35588
a848cd7e
SC
35589/* Override any gcc2 internal prototype to avoid an error. */
35590#ifdef __cplusplus
35591extern "C"
35592{
35593#endif
35594/* We use char because int might match the return type of a gcc2
35595 builtin and then its argument prototype would still apply. */
35596char socket ();
35597/* The GNU C library defines this for functions which it implements
35598 to always fail with ENOSYS. Some functions are actually named
35599 something starting with __ and the normal name is an alias. */
35600#if defined (__stub_socket) || defined (__stub___socket)
35601choke me
35602#else
35603char (*f) () = socket;
35604#endif
35605#ifdef __cplusplus
35606}
35607#endif
35608
35609int
35610main ()
35611{
35612return f != socket;
35613 ;
35614 return 0;
35615}
35616_ACEOF
35617rm -f conftest.$ac_objext conftest$ac_exeext
35618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35619 (eval $ac_link) 2>conftest.er1
a848cd7e 35620 ac_status=$?
ac1cb8d3
VS
35621 grep -v '^ *+' conftest.er1 >conftest.err
35622 rm -f conftest.er1
35623 cat conftest.err >&5
a848cd7e
SC
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); } &&
2cbbc68d
RD
35626 { ac_try='test -z "$ac_c_werror_flag"
35627 || test ! -s conftest.err'
ac1cb8d3
VS
35628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35629 (eval $ac_try) 2>&5
35630 ac_status=$?
35631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35632 (exit $ac_status); }; } &&
35633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35635 (eval $ac_try) 2>&5
35636 ac_status=$?
35637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638 (exit $ac_status); }; }; then
35639 ac_cv_func_socket=yes
35640else
35641 echo "$as_me: failed program was:" >&5
35642sed 's/^/| /' conftest.$ac_ext >&5
35643
35644ac_cv_func_socket=no
35645fi
ac1cb8d3
VS
35646rm -f conftest.err conftest.$ac_objext \
35647 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35648fi
35649echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35650echo "${ECHO_T}$ac_cv_func_socket" >&6
35651if test $ac_cv_func_socket = yes; then
35652 :
35653else
35654
35655 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35656echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35657if test "${ac_cv_lib_socket_socket+set}" = set; then
35658 echo $ECHO_N "(cached) $ECHO_C" >&6
35659else
35660 ac_check_lib_save_LIBS=$LIBS
35661LIBS="-lsocket $LIBS"
35662cat >conftest.$ac_ext <<_ACEOF
35663/* confdefs.h. */
35664_ACEOF
35665cat confdefs.h >>conftest.$ac_ext
35666cat >>conftest.$ac_ext <<_ACEOF
35667/* end confdefs.h. */
35668
35669/* Override any gcc2 internal prototype to avoid an error. */
35670#ifdef __cplusplus
35671extern "C"
35672#endif
35673/* We use char because int might match the return type of a gcc2
35674 builtin and then its argument prototype would still apply. */
35675char socket ();
35676int
35677main ()
35678{
35679socket ();
35680 ;
35681 return 0;
35682}
35683_ACEOF
35684rm -f conftest.$ac_objext conftest$ac_exeext
35685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35686 (eval $ac_link) 2>conftest.er1
a848cd7e 35687 ac_status=$?
ac1cb8d3
VS
35688 grep -v '^ *+' conftest.er1 >conftest.err
35689 rm -f conftest.er1
35690 cat conftest.err >&5
a848cd7e
SC
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); } &&
2cbbc68d
RD
35693 { ac_try='test -z "$ac_c_werror_flag"
35694 || test ! -s conftest.err'
ac1cb8d3
VS
35695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35696 (eval $ac_try) 2>&5
35697 ac_status=$?
35698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35699 (exit $ac_status); }; } &&
35700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35702 (eval $ac_try) 2>&5
35703 ac_status=$?
35704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705 (exit $ac_status); }; }; then
35706 ac_cv_lib_socket_socket=yes
35707else
35708 echo "$as_me: failed program was:" >&5
35709sed 's/^/| /' conftest.$ac_ext >&5
35710
35711ac_cv_lib_socket_socket=no
35712fi
ac1cb8d3
VS
35713rm -f conftest.err conftest.$ac_objext \
35714 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35715LIBS=$ac_check_lib_save_LIBS
35716fi
35717echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35718echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35719if test $ac_cv_lib_socket_socket = yes; then
35720 if test "$INET_LINK" != " -lsocket"; then
35721 INET_LINK="$INET_LINK -lsocket"
35722 fi
35723else
35724
35725 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35726echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35727 wxUSE_SOCKETS=no
35728
35729
35730fi
35731
35732
35733
35734fi
35735
35736 fi
35737fi
35738
35739if test "$wxUSE_SOCKETS" = "yes" ; then
35740 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35741 ac_ext=cc
35742ac_cpp='$CXXCPP $CPPFLAGS'
35743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35746
35747 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35748echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35749if test "${wx_cv_type_getsockname3+set}" = set; then
35750 echo $ECHO_N "(cached) $ECHO_C" >&6
35751else
35752
35753 cat >conftest.$ac_ext <<_ACEOF
35754/* confdefs.h. */
35755_ACEOF
35756cat confdefs.h >>conftest.$ac_ext
35757cat >>conftest.$ac_ext <<_ACEOF
35758/* end confdefs.h. */
35759
35760 #include <sys/types.h>
35761 #include <sys/socket.h>
35762
35763int
35764main ()
35765{
35766
35767 socklen_t len;
35768 getsockname(0, 0, &len);
35769
35770 ;
35771 return 0;
35772}
35773_ACEOF
35774rm -f conftest.$ac_objext
35775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35776 (eval $ac_compile) 2>conftest.er1
a848cd7e 35777 ac_status=$?
ac1cb8d3
VS
35778 grep -v '^ *+' conftest.er1 >conftest.err
35779 rm -f conftest.er1
35780 cat conftest.err >&5
a848cd7e
SC
35781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782 (exit $ac_status); } &&
2cbbc68d
RD
35783 { ac_try='test -z "$ac_cxx_werror_flag"
35784 || test ! -s conftest.err'
ac1cb8d3
VS
35785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35786 (eval $ac_try) 2>&5
35787 ac_status=$?
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); }; } &&
35790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35792 (eval $ac_try) 2>&5
35793 ac_status=$?
35794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795 (exit $ac_status); }; }; then
35796 wx_cv_type_getsockname3=socklen_t
35797else
35798 echo "$as_me: failed program was:" >&5
35799sed 's/^/| /' conftest.$ac_ext >&5
35800
35801
35802 CFLAGS_OLD="$CFLAGS"
35803 if test "$GCC" = yes ; then
35804 CFLAGS="$CFLAGS -Werror"
35805 fi
35806
35807 cat >conftest.$ac_ext <<_ACEOF
35808/* confdefs.h. */
35809_ACEOF
35810cat confdefs.h >>conftest.$ac_ext
35811cat >>conftest.$ac_ext <<_ACEOF
35812/* end confdefs.h. */
35813
35814 #include <sys/types.h>
35815 #include <sys/socket.h>
35816
35817int
35818main ()
35819{
35820
35821 size_t len;
35822 getsockname(0, 0, &len);
35823
35824 ;
35825 return 0;
35826}
35827_ACEOF
35828rm -f conftest.$ac_objext
35829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35830 (eval $ac_compile) 2>conftest.er1
a848cd7e 35831 ac_status=$?
ac1cb8d3
VS
35832 grep -v '^ *+' conftest.er1 >conftest.err
35833 rm -f conftest.er1
35834 cat conftest.err >&5
a848cd7e
SC
35835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35836 (exit $ac_status); } &&
2cbbc68d
RD
35837 { ac_try='test -z "$ac_cxx_werror_flag"
35838 || test ! -s conftest.err'
ac1cb8d3
VS
35839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840 (eval $ac_try) 2>&5
35841 ac_status=$?
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); }; } &&
35844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35846 (eval $ac_try) 2>&5
35847 ac_status=$?
35848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849 (exit $ac_status); }; }; then
35850 wx_cv_type_getsockname3=size_t
35851else
35852 echo "$as_me: failed program was:" >&5
35853sed 's/^/| /' conftest.$ac_ext >&5
35854
35855cat >conftest.$ac_ext <<_ACEOF
35856/* confdefs.h. */
35857_ACEOF
35858cat confdefs.h >>conftest.$ac_ext
35859cat >>conftest.$ac_ext <<_ACEOF
35860/* end confdefs.h. */
35861
35862 #include <sys/types.h>
35863 #include <sys/socket.h>
35864
35865int
35866main ()
35867{
35868
35869 int len;
35870 getsockname(0, 0, &len);
35871
35872 ;
35873 return 0;
35874}
35875_ACEOF
35876rm -f conftest.$ac_objext
35877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35878 (eval $ac_compile) 2>conftest.er1
a848cd7e 35879 ac_status=$?
ac1cb8d3
VS
35880 grep -v '^ *+' conftest.er1 >conftest.err
35881 rm -f conftest.er1
35882 cat conftest.err >&5
a848cd7e
SC
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); } &&
2cbbc68d
RD
35885 { ac_try='test -z "$ac_cxx_werror_flag"
35886 || test ! -s conftest.err'
ac1cb8d3
VS
35887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35888 (eval $ac_try) 2>&5
35889 ac_status=$?
35890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891 (exit $ac_status); }; } &&
35892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35894 (eval $ac_try) 2>&5
35895 ac_status=$?
35896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897 (exit $ac_status); }; }; then
35898 wx_cv_type_getsockname3=int
35899else
35900 echo "$as_me: failed program was:" >&5
35901sed 's/^/| /' conftest.$ac_ext >&5
35902
35903wx_cv_type_getsockname3=unknown
35904
35905fi
ac1cb8d3 35906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35907
35908fi
ac1cb8d3 35909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35910
35911 CFLAGS="$CFLAGS_OLD"
35912
35913
35914fi
ac1cb8d3 35915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35916
35917fi
35918echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35919echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35920
35921 if test "$wx_cv_type_getsockname3" = "unknown"; then
35922 wxUSE_SOCKETS=no
35923 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35924echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35925 else
35926 cat >>confdefs.h <<_ACEOF
35927#define SOCKLEN_T $wx_cv_type_getsockname3
35928_ACEOF
35929
35930 fi
4d4ff94c
VZ
35931 ac_ext=c
35932ac_cpp='$CPP $CPPFLAGS'
35933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35935ac_compiler_gnu=$ac_cv_c_compiler_gnu
35936
a848cd7e
SC
35937 fi
35938fi
35939
35940if test "$wxUSE_SOCKETS" = "yes" ; then
35941 cat >>confdefs.h <<\_ACEOF
35942#define wxUSE_SOCKETS 1
35943_ACEOF
35944
35945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35946fi
35947
35948if test "$wxUSE_PROTOCOL" = "yes"; then
35949 if test "$wxUSE_SOCKETS" != "yes"; then
35950 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35951echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35952 wxUSE_PROTOCOL=no
35953 fi
35954fi
35955
35956if test "$wxUSE_PROTOCOL" = "yes"; then
35957 cat >>confdefs.h <<\_ACEOF
35958#define wxUSE_PROTOCOL 1
35959_ACEOF
35960
35961
35962 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35963 cat >>confdefs.h <<\_ACEOF
35964#define wxUSE_PROTOCOL_HTTP 1
35965_ACEOF
35966
35967 fi
35968 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35969 cat >>confdefs.h <<\_ACEOF
35970#define wxUSE_PROTOCOL_FTP 1
35971_ACEOF
35972
35973 fi
35974 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35975 cat >>confdefs.h <<\_ACEOF
35976#define wxUSE_PROTOCOL_FILE 1
35977_ACEOF
35978
35979 fi
35980else
35981 if test "$wxUSE_FS_INET" = "yes"; then
35982 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35983echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35984 wxUSE_FS_INET="no"
35985 fi
35986fi
35987
35988if test "$wxUSE_URL" = "yes"; then
35989 if test "$wxUSE_PROTOCOL" != "yes"; then
35990 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35991echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35992 wxUSE_URL=no
35993 fi
35994 if test "$wxUSE_URL" = "yes"; then
35995 cat >>confdefs.h <<\_ACEOF
35996#define wxUSE_URL 1
35997_ACEOF
35998
35999 fi
36000fi
36001
36002if test "$wxUSE_FS_INET" = "yes"; then
36003 cat >>confdefs.h <<\_ACEOF
36004#define wxUSE_FS_INET 1
36005_ACEOF
36006
36007fi
36008
36009
36010if test "$wxUSE_GUI" = "yes"; then
36011
36012 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36013 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36014echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36015 wxUSE_JOYSTICK=no
36016 fi
36017
36018 if test "$TOOLKIT" != "MSW"; then
36019 if test "$wxUSE_JOYSTICK" = "yes"; then
36020
36021for ac_header in linux/joystick.h
36022do
36023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36024if eval "test \"\${$as_ac_Header+set}\" = set"; then
36025 echo "$as_me:$LINENO: checking for $ac_header" >&5
36026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36027if eval "test \"\${$as_ac_Header+set}\" = set"; then
36028 echo $ECHO_N "(cached) $ECHO_C" >&6
36029fi
36030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36032else
36033 # Is the header compilable?
36034echo "$as_me:$LINENO: checking $ac_header usability" >&5
36035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36036cat >conftest.$ac_ext <<_ACEOF
36037/* confdefs.h. */
36038_ACEOF
36039cat confdefs.h >>conftest.$ac_ext
36040cat >>conftest.$ac_ext <<_ACEOF
36041/* end confdefs.h. */
36042$ac_includes_default
36043#include <$ac_header>
36044_ACEOF
36045rm -f conftest.$ac_objext
36046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36047 (eval $ac_compile) 2>conftest.er1
a848cd7e 36048 ac_status=$?
ac1cb8d3
VS
36049 grep -v '^ *+' conftest.er1 >conftest.err
36050 rm -f conftest.er1
36051 cat conftest.err >&5
a848cd7e
SC
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); } &&
2cbbc68d
RD
36054 { ac_try='test -z "$ac_c_werror_flag"
36055 || test ! -s conftest.err'
ac1cb8d3
VS
36056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36057 (eval $ac_try) 2>&5
36058 ac_status=$?
36059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 (exit $ac_status); }; } &&
36061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36063 (eval $ac_try) 2>&5
36064 ac_status=$?
36065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066 (exit $ac_status); }; }; then
36067 ac_header_compiler=yes
36068else
36069 echo "$as_me: failed program was:" >&5
36070sed 's/^/| /' conftest.$ac_ext >&5
36071
36072ac_header_compiler=no
36073fi
ac1cb8d3 36074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36076echo "${ECHO_T}$ac_header_compiler" >&6
36077
36078# Is the header present?
36079echo "$as_me:$LINENO: checking $ac_header presence" >&5
36080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36081cat >conftest.$ac_ext <<_ACEOF
36082/* confdefs.h. */
36083_ACEOF
36084cat confdefs.h >>conftest.$ac_ext
36085cat >>conftest.$ac_ext <<_ACEOF
36086/* end confdefs.h. */
36087#include <$ac_header>
36088_ACEOF
36089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36091 ac_status=$?
36092 grep -v '^ *+' conftest.er1 >conftest.err
36093 rm -f conftest.er1
36094 cat conftest.err >&5
36095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096 (exit $ac_status); } >/dev/null; then
36097 if test -s conftest.err; then
36098 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36100 else
36101 ac_cpp_err=
36102 fi
36103else
36104 ac_cpp_err=yes
36105fi
36106if test -z "$ac_cpp_err"; then
36107 ac_header_preproc=yes
36108else
36109 echo "$as_me: failed program was:" >&5
36110sed 's/^/| /' conftest.$ac_ext >&5
36111
36112 ac_header_preproc=no
36113fi
36114rm -f conftest.err conftest.$ac_ext
36115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36116echo "${ECHO_T}$ac_header_preproc" >&6
36117
36118# So? What about this header?
ac1cb8d3
VS
36119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36120 yes:no: )
a848cd7e
SC
36121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36125 ac_header_preproc=yes
a848cd7e 36126 ;;
ac1cb8d3 36127 no:yes:* )
a848cd7e
SC
36128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36135echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36140 (
36141 cat <<\_ASBOX
ac1cb8d3
VS
36142## ----------------------------------------- ##
36143## Report this to wx-dev@lists.wxwidgets.org ##
36144## ----------------------------------------- ##
a848cd7e
SC
36145_ASBOX
36146 ) |
36147 sed "s/^/$as_me: WARNING: /" >&2
36148 ;;
36149esac
36150echo "$as_me:$LINENO: checking for $ac_header" >&5
36151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36152if eval "test \"\${$as_ac_Header+set}\" = set"; then
36153 echo $ECHO_N "(cached) $ECHO_C" >&6
36154else
ac1cb8d3 36155 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36156fi
36157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36159
36160fi
36161if test `eval echo '${'$as_ac_Header'}'` = yes; then
36162 cat >>confdefs.h <<_ACEOF
36163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36164_ACEOF
36165
36166fi
36167
36168done
36169
36170 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36171 wxUSE_JOYSTICK=no
36172 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36173echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36174 fi
36175 fi
36176 fi
36177
36178 if test "$wxUSE_JOYSTICK" = "yes"; then
36179 cat >>confdefs.h <<\_ACEOF
36180#define wxUSE_JOYSTICK 1
36181_ACEOF
36182
36183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36184 fi
36185fi
36186
36187
36188
36189if test "$wxUSE_FONTMAP" = "yes" ; then
36190 cat >>confdefs.h <<\_ACEOF
36191#define wxUSE_FONTMAP 1
36192_ACEOF
36193
36194fi
36195
36196if test "$wxUSE_UNICODE" = "yes" ; then
36197 cat >>confdefs.h <<\_ACEOF
36198#define wxUSE_UNICODE 1
36199_ACEOF
36200
36201
36202 if test "$USE_WIN32" != 1; then
36203 wxUSE_UNICODE_MSLU=no
36204 fi
36205
36206 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36207 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36208echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36209if test "${ac_cv_lib_unicows_main+set}" = set; then
36210 echo $ECHO_N "(cached) $ECHO_C" >&6
36211else
36212 ac_check_lib_save_LIBS=$LIBS
36213LIBS="-lunicows $LIBS"
36214cat >conftest.$ac_ext <<_ACEOF
36215/* confdefs.h. */
36216_ACEOF
36217cat confdefs.h >>conftest.$ac_ext
36218cat >>conftest.$ac_ext <<_ACEOF
36219/* end confdefs.h. */
36220
36221
36222int
36223main ()
36224{
36225main ();
36226 ;
36227 return 0;
36228}
36229_ACEOF
36230rm -f conftest.$ac_objext conftest$ac_exeext
36231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36232 (eval $ac_link) 2>conftest.er1
a848cd7e 36233 ac_status=$?
ac1cb8d3
VS
36234 grep -v '^ *+' conftest.er1 >conftest.err
36235 rm -f conftest.er1
36236 cat conftest.err >&5
a848cd7e
SC
36237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36238 (exit $ac_status); } &&
2cbbc68d
RD
36239 { ac_try='test -z "$ac_c_werror_flag"
36240 || test ! -s conftest.err'
ac1cb8d3
VS
36241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36242 (eval $ac_try) 2>&5
36243 ac_status=$?
36244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36245 (exit $ac_status); }; } &&
36246 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248 (eval $ac_try) 2>&5
36249 ac_status=$?
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 (exit $ac_status); }; }; then
36252 ac_cv_lib_unicows_main=yes
36253else
36254 echo "$as_me: failed program was:" >&5
36255sed 's/^/| /' conftest.$ac_ext >&5
36256
36257ac_cv_lib_unicows_main=no
36258fi
ac1cb8d3
VS
36259rm -f conftest.err conftest.$ac_objext \
36260 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36261LIBS=$ac_check_lib_save_LIBS
36262fi
36263echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36264echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36265if test $ac_cv_lib_unicows_main = yes; then
36266
36267 cat >>confdefs.h <<\_ACEOF
36268#define wxUSE_UNICODE_MSLU 1
36269_ACEOF
36270
36271
36272else
36273
36274 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36275 Applications will only run on Windows NT/2000/XP!" >&5
36276echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36277 Applications will only run on Windows NT/2000/XP!" >&2;}
36278 wxUSE_UNICODE_MSLU=no
36279
36280fi
36281
36282 fi
36283fi
36284
36285if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36286 cat >>confdefs.h <<\_ACEOF
36287#define wxUSE_EXPERIMENTAL_PRINTF 1
36288_ACEOF
36289
36290fi
36291
36292
36293if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36294 cat >>confdefs.h <<\_ACEOF
36295#define wxUSE_POSTSCRIPT 1
36296_ACEOF
36297
36298fi
36299
36300cat >>confdefs.h <<\_ACEOF
36301#define wxUSE_AFM_FOR_POSTSCRIPT 1
36302_ACEOF
36303
36304
36305cat >>confdefs.h <<\_ACEOF
36306#define wxUSE_NORMALIZED_PS_FONTS 1
36307_ACEOF
36308
36309
36310
36311if test "$wxUSE_CONSTRAINTS" = "yes"; then
36312 cat >>confdefs.h <<\_ACEOF
36313#define wxUSE_CONSTRAINTS 1
36314_ACEOF
36315
36316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36317fi
36318
8a7b1113
VZ
36319if test "$wxUSE_MDI" = "yes"; then
36320 cat >>confdefs.h <<\_ACEOF
36321#define wxUSE_MDI 1
36322_ACEOF
36323
36324
36325 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36326 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36327#define wxUSE_MDI_ARCHITECTURE 1
36328_ACEOF
36329
8a7b1113
VZ
36330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36331 fi
a848cd7e
SC
36332fi
36333
36334if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36335 cat >>confdefs.h <<\_ACEOF
36336#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36337_ACEOF
36338
36339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36340 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36342 fi
36343fi
36344
36345if test "$wxUSE_HELP" = "yes"; then
36346 cat >>confdefs.h <<\_ACEOF
36347#define wxUSE_HELP 1
36348_ACEOF
36349
36350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36351
36352 if test "$wxUSE_MSW" = 1; then
36353 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36354 cat >>confdefs.h <<\_ACEOF
36355#define wxUSE_MS_HTML_HELP 1
36356_ACEOF
36357
36358 fi
36359 fi
36360
36361 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36362 if test "$wxUSE_HTML" = "yes"; then
36363 cat >>confdefs.h <<\_ACEOF
36364#define wxUSE_WXHTML_HELP 1
36365_ACEOF
36366
36367 else
36368 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36369echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36370 wxUSE_WXHTML_HELP=no
36371 fi
36372 fi
36373fi
36374
36375if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36376 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36377 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36378echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36379 else
36380 cat >>confdefs.h <<\_ACEOF
36381#define wxUSE_PRINTING_ARCHITECTURE 1
36382_ACEOF
36383
36384 fi
36385 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36386fi
36387
36388if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36389 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36390echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36391 { (exit 1); exit 1; }; }
36392fi
36393
36394
36395if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36396 -o "$wxUSE_CLIPBOARD" = "yes" \
36397 -o "$wxUSE_OLE" = "yes" \
36398 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36399
36400for ac_header in ole2.h
36401do
36402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36403if eval "test \"\${$as_ac_Header+set}\" = set"; then
36404 echo "$as_me:$LINENO: checking for $ac_header" >&5
36405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36406if eval "test \"\${$as_ac_Header+set}\" = set"; then
36407 echo $ECHO_N "(cached) $ECHO_C" >&6
36408fi
36409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36411else
36412 # Is the header compilable?
36413echo "$as_me:$LINENO: checking $ac_header usability" >&5
36414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36415cat >conftest.$ac_ext <<_ACEOF
36416/* confdefs.h. */
36417_ACEOF
36418cat confdefs.h >>conftest.$ac_ext
36419cat >>conftest.$ac_ext <<_ACEOF
36420/* end confdefs.h. */
36421$ac_includes_default
36422#include <$ac_header>
36423_ACEOF
36424rm -f conftest.$ac_objext
36425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36426 (eval $ac_compile) 2>conftest.er1
a848cd7e 36427 ac_status=$?
ac1cb8d3
VS
36428 grep -v '^ *+' conftest.er1 >conftest.err
36429 rm -f conftest.er1
36430 cat conftest.err >&5
a848cd7e
SC
36431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432 (exit $ac_status); } &&
2cbbc68d
RD
36433 { ac_try='test -z "$ac_c_werror_flag"
36434 || test ! -s conftest.err'
ac1cb8d3
VS
36435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36436 (eval $ac_try) 2>&5
36437 ac_status=$?
36438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439 (exit $ac_status); }; } &&
36440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442 (eval $ac_try) 2>&5
36443 ac_status=$?
36444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445 (exit $ac_status); }; }; then
36446 ac_header_compiler=yes
36447else
36448 echo "$as_me: failed program was:" >&5
36449sed 's/^/| /' conftest.$ac_ext >&5
36450
36451ac_header_compiler=no
36452fi
ac1cb8d3 36453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36455echo "${ECHO_T}$ac_header_compiler" >&6
36456
36457# Is the header present?
36458echo "$as_me:$LINENO: checking $ac_header presence" >&5
36459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36460cat >conftest.$ac_ext <<_ACEOF
36461/* confdefs.h. */
36462_ACEOF
36463cat confdefs.h >>conftest.$ac_ext
36464cat >>conftest.$ac_ext <<_ACEOF
36465/* end confdefs.h. */
36466#include <$ac_header>
36467_ACEOF
36468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36470 ac_status=$?
36471 grep -v '^ *+' conftest.er1 >conftest.err
36472 rm -f conftest.er1
36473 cat conftest.err >&5
36474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36475 (exit $ac_status); } >/dev/null; then
36476 if test -s conftest.err; then
36477 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36479 else
36480 ac_cpp_err=
36481 fi
36482else
36483 ac_cpp_err=yes
36484fi
36485if test -z "$ac_cpp_err"; then
36486 ac_header_preproc=yes
36487else
36488 echo "$as_me: failed program was:" >&5
36489sed 's/^/| /' conftest.$ac_ext >&5
36490
36491 ac_header_preproc=no
36492fi
36493rm -f conftest.err conftest.$ac_ext
36494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36495echo "${ECHO_T}$ac_header_preproc" >&6
36496
36497# So? What about this header?
ac1cb8d3
VS
36498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36499 yes:no: )
a848cd7e
SC
36500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36504 ac_header_preproc=yes
a848cd7e 36505 ;;
ac1cb8d3 36506 no:yes:* )
a848cd7e
SC
36507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36514echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36519 (
36520 cat <<\_ASBOX
ac1cb8d3
VS
36521## ----------------------------------------- ##
36522## Report this to wx-dev@lists.wxwidgets.org ##
36523## ----------------------------------------- ##
a848cd7e
SC
36524_ASBOX
36525 ) |
36526 sed "s/^/$as_me: WARNING: /" >&2
36527 ;;
36528esac
36529echo "$as_me:$LINENO: checking for $ac_header" >&5
36530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36531if eval "test \"\${$as_ac_Header+set}\" = set"; then
36532 echo $ECHO_N "(cached) $ECHO_C" >&6
36533else
ac1cb8d3 36534 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36535fi
36536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36538
36539fi
36540if test `eval echo '${'$as_ac_Header'}'` = yes; then
36541 cat >>confdefs.h <<_ACEOF
36542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36543_ACEOF
36544
36545fi
36546
36547done
36548
36549
36550 if test "$ac_cv_header_ole2_h" = "yes" ; then
36551 if test "$GCC" = yes ; then
36552
36553
36554 ac_ext=cc
36555ac_cpp='$CXXCPP $CPPFLAGS'
36556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36559
36560
36561 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36562echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36563 cat >conftest.$ac_ext <<_ACEOF
36564/* confdefs.h. */
36565_ACEOF
36566cat confdefs.h >>conftest.$ac_ext
36567cat >>conftest.$ac_ext <<_ACEOF
36568/* end confdefs.h. */
36569#include <windows.h>
36570 #include <ole2.h>
36571int
36572main ()
36573{
36574
36575 ;
36576 return 0;
36577}
36578_ACEOF
36579rm -f conftest.$ac_objext
36580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36581 (eval $ac_compile) 2>conftest.er1
a848cd7e 36582 ac_status=$?
ac1cb8d3
VS
36583 grep -v '^ *+' conftest.er1 >conftest.err
36584 rm -f conftest.er1
36585 cat conftest.err >&5
a848cd7e
SC
36586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587 (exit $ac_status); } &&
2cbbc68d
RD
36588 { ac_try='test -z "$ac_cxx_werror_flag"
36589 || test ! -s conftest.err'
ac1cb8d3
VS
36590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591 (eval $ac_try) 2>&5
36592 ac_status=$?
36593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594 (exit $ac_status); }; } &&
36595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36597 (eval $ac_try) 2>&5
36598 ac_status=$?
36599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600 (exit $ac_status); }; }; then
36601 echo "$as_me:$LINENO: result: no" >&5
36602echo "${ECHO_T}no" >&6
36603else
36604 echo "$as_me: failed program was:" >&5
36605sed 's/^/| /' conftest.$ac_ext >&5
36606
36607echo "$as_me:$LINENO: result: yes" >&5
36608echo "${ECHO_T}yes" >&6
36609 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36610fi
ac1cb8d3 36611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36612 ac_ext=c
36613ac_cpp='$CPP $CPPFLAGS'
36614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36616ac_compiler_gnu=$ac_cv_c_compiler_gnu
36617
a848cd7e
SC
36618 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36619 if test "$wxUSE_OLE" = "yes" ; then
36620 cat >>confdefs.h <<\_ACEOF
36621#define wxUSE_OLE 1
36622_ACEOF
36623
36624 fi
36625 fi
36626
36627 if test "$wxUSE_DATAOBJ" = "yes" ; then
36628 cat >>confdefs.h <<\_ACEOF
36629#define wxUSE_DATAOBJ 1
36630_ACEOF
36631
36632 fi
36633 else
36634 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36635echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36636
36637 wxUSE_CLIPBOARD=no
36638 wxUSE_DRAG_AND_DROP=no
36639 wxUSE_DATAOBJ=no
36640 wxUSE_OLE=no
36641 fi
36642
36643 if test "$wxUSE_METAFILE" = "yes"; then
36644 cat >>confdefs.h <<\_ACEOF
36645#define wxUSE_METAFILE 1
36646_ACEOF
36647
36648
36649 cat >>confdefs.h <<\_ACEOF
36650#define wxUSE_ENH_METAFILE 1
36651_ACEOF
36652
36653 fi
36654fi
36655
36656if test "$wxUSE_IPC" = "yes"; then
36657 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36658 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36659echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36660 fi
36661
36662 cat >>confdefs.h <<\_ACEOF
36663#define wxUSE_IPC 1
36664_ACEOF
36665
36666fi
36667
36668if test "$wxUSE_CLIPBOARD" = "yes"; then
36669 if test "$wxUSE_MGL" = 1; then
36670 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36671echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36672 wxUSE_CLIPBOARD=no
36673 fi
36674
36675 if test "$wxUSE_CLIPBOARD" = "yes"; then
36676 cat >>confdefs.h <<\_ACEOF
36677#define wxUSE_CLIPBOARD 1
36678_ACEOF
36679
36680
36681 cat >>confdefs.h <<\_ACEOF
36682#define wxUSE_DATAOBJ 1
36683_ACEOF
36684
36685 fi
36686fi
36687
36688if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36689 if test "$wxUSE_GTK" = 1; then
36690 if test "$WXGTK12" != 1; then
36691 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36692echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36693 wxUSE_DRAG_AND_DROP=no
36694 fi
36695 fi
36696
36697 if test "$wxUSE_MOTIF" = 1; then
36698 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36699echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36700 wxUSE_DRAG_AND_DROP=no
36701 fi
36702
36703 if test "$wxUSE_X11" = 1; then
36704 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36705echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36706 wxUSE_DRAG_AND_DROP=no
36707 fi
36708
36709 if test "$wxUSE_MGL" = 1; then
36710 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36711echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36712 wxUSE_DRAG_AND_DROP=no
36713 fi
36714
36715 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36716 cat >>confdefs.h <<\_ACEOF
36717#define wxUSE_DRAG_AND_DROP 1
36718_ACEOF
36719
36720 fi
36721
36722fi
36723
36724if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36726fi
36727
36728if test "$wxUSE_SPLINES" = "yes" ; then
36729 cat >>confdefs.h <<\_ACEOF
36730#define wxUSE_SPLINES 1
36731_ACEOF
36732
36733fi
36734
36735
36736USES_CONTROLS=0
36737if test "$wxUSE_CONTROLS" = "yes"; then
36738 USES_CONTROLS=1
36739fi
36740
36741if test "$wxUSE_ACCEL" = "yes"; then
36742 cat >>confdefs.h <<\_ACEOF
36743#define wxUSE_ACCEL 1
36744_ACEOF
36745
36746 USES_CONTROLS=1
36747fi
36748
36749if test "$wxUSE_BUTTON" = "yes"; then
36750 cat >>confdefs.h <<\_ACEOF
36751#define wxUSE_BUTTON 1
36752_ACEOF
36753
36754 USES_CONTROLS=1
36755fi
36756
36757if test "$wxUSE_BMPBUTTON" = "yes"; then
36758 cat >>confdefs.h <<\_ACEOF
36759#define wxUSE_BMPBUTTON 1
36760_ACEOF
36761
36762 USES_CONTROLS=1
36763fi
36764
36765if test "$wxUSE_CALCTRL" = "yes"; then
36766 cat >>confdefs.h <<\_ACEOF
36767#define wxUSE_CALENDARCTRL 1
36768_ACEOF
36769
36770 USES_CONTROLS=1
36771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36772fi
36773
36774if test "$wxUSE_CARET" = "yes"; then
36775 cat >>confdefs.h <<\_ACEOF
36776#define wxUSE_CARET 1
36777_ACEOF
36778
36779 USES_CONTROLS=1
36780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36781fi
36782
36783if test "$wxUSE_COMBOBOX" = "yes"; then
36784 cat >>confdefs.h <<\_ACEOF
36785#define wxUSE_COMBOBOX 1
36786_ACEOF
36787
36788 USES_CONTROLS=1
36789fi
36790
36791if test "$wxUSE_CHOICE" = "yes"; then
36792 cat >>confdefs.h <<\_ACEOF
36793#define wxUSE_CHOICE 1
36794_ACEOF
36795
36796 USES_CONTROLS=1
36797fi
36798
92bbdbcd
WS
36799if test "$wxUSE_CHOICEBOOK" = "yes"; then
36800 cat >>confdefs.h <<\_ACEOF
36801#define wxUSE_CHOICEBOOK 1
36802_ACEOF
36803
36804 USES_CONTROLS=1
36805fi
36806
a848cd7e
SC
36807if test "$wxUSE_CHECKBOX" = "yes"; then
36808 cat >>confdefs.h <<\_ACEOF
36809#define wxUSE_CHECKBOX 1
36810_ACEOF
36811
36812 USES_CONTROLS=1
36813fi
36814
36815if test "$wxUSE_CHECKLST" = "yes"; then
36816 cat >>confdefs.h <<\_ACEOF
36817#define wxUSE_CHECKLISTBOX 1
36818_ACEOF
36819
36820 USES_CONTROLS=1
36821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36822fi
36823
36824if test "$wxUSE_DISPLAY" = "yes"; then
36825 cat >>confdefs.h <<\_ACEOF
36826#define wxUSE_DISPLAY 1
36827_ACEOF
36828
36829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36830fi
36831
36832if test "$wxUSE_GAUGE" = "yes"; then
36833 cat >>confdefs.h <<\_ACEOF
36834#define wxUSE_GAUGE 1
36835_ACEOF
36836
36837 USES_CONTROLS=1
36838fi
36839
36840if test "$wxUSE_GRID" = "yes"; then
36841 cat >>confdefs.h <<\_ACEOF
36842#define wxUSE_GRID 1
36843_ACEOF
36844
36845 USES_CONTROLS=1
36846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36847fi
36848
36849if test "$wxUSE_IMAGLIST" = "yes"; then
36850 cat >>confdefs.h <<\_ACEOF
36851#define wxUSE_IMAGLIST 1
36852_ACEOF
36853
36854fi
36855
36856if test "$wxUSE_LISTBOOK" = "yes"; then
36857 cat >>confdefs.h <<\_ACEOF
36858#define wxUSE_LISTBOOK 1
36859_ACEOF
36860
36861 USES_CONTROLS=1
36862fi
36863
36864if test "$wxUSE_LISTBOX" = "yes"; then
36865 cat >>confdefs.h <<\_ACEOF
36866#define wxUSE_LISTBOX 1
36867_ACEOF
36868
36869 USES_CONTROLS=1
36870fi
36871
36872if test "$wxUSE_LISTCTRL" = "yes"; then
36873 if test "$wxUSE_IMAGLIST" = "yes"; then
36874 cat >>confdefs.h <<\_ACEOF
36875#define wxUSE_LISTCTRL 1
36876_ACEOF
36877
36878 USES_CONTROLS=1
36879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36880 else
36881 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36882echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36883 fi
36884fi
36885
36886if test "$wxUSE_NOTEBOOK" = "yes"; then
36887 cat >>confdefs.h <<\_ACEOF
36888#define wxUSE_NOTEBOOK 1
36889_ACEOF
36890
36891 USES_CONTROLS=1
36892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36893fi
36894
36895
36896if test "$wxUSE_RADIOBOX" = "yes"; then
36897 cat >>confdefs.h <<\_ACEOF
36898#define wxUSE_RADIOBOX 1
36899_ACEOF
36900
36901 USES_CONTROLS=1
36902fi
36903
36904if test "$wxUSE_RADIOBTN" = "yes"; then
36905 cat >>confdefs.h <<\_ACEOF
36906#define wxUSE_RADIOBTN 1
36907_ACEOF
36908
36909 USES_CONTROLS=1
36910fi
36911
36912if test "$wxUSE_SASH" = "yes"; then
36913 cat >>confdefs.h <<\_ACEOF
36914#define wxUSE_SASH 1
36915_ACEOF
36916
36917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36918fi
36919
36920if test "$wxUSE_SCROLLBAR" = "yes"; then
36921 cat >>confdefs.h <<\_ACEOF
36922#define wxUSE_SCROLLBAR 1
36923_ACEOF
36924
36925 USES_CONTROLS=1
36926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36927fi
36928
36929if test "$wxUSE_SLIDER" = "yes"; then
36930 cat >>confdefs.h <<\_ACEOF
36931#define wxUSE_SLIDER 1
36932_ACEOF
36933
36934 USES_CONTROLS=1
36935fi
36936
36937if test "$wxUSE_SPINBTN" = "yes"; then
36938 cat >>confdefs.h <<\_ACEOF
36939#define wxUSE_SPINBTN 1
36940_ACEOF
36941
36942 USES_CONTROLS=1
36943fi
36944
36945if test "$wxUSE_SPINCTRL" = "yes"; then
36946 cat >>confdefs.h <<\_ACEOF
36947#define wxUSE_SPINCTRL 1
36948_ACEOF
36949
36950 USES_CONTROLS=1
36951fi
36952
36953if test "$wxUSE_SPLITTER" = "yes"; then
36954 cat >>confdefs.h <<\_ACEOF
36955#define wxUSE_SPLITTER 1
36956_ACEOF
36957
36958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36959fi
36960
36961if test "$wxUSE_STATBMP" = "yes"; then
36962 cat >>confdefs.h <<\_ACEOF
36963#define wxUSE_STATBMP 1
36964_ACEOF
36965
36966 USES_CONTROLS=1
36967fi
36968
36969if test "$wxUSE_STATBOX" = "yes"; then
36970 cat >>confdefs.h <<\_ACEOF
36971#define wxUSE_STATBOX 1
36972_ACEOF
36973
36974 USES_CONTROLS=1
36975fi
36976
36977if test "$wxUSE_STATTEXT" = "yes"; then
36978 cat >>confdefs.h <<\_ACEOF
36979#define wxUSE_STATTEXT 1
36980_ACEOF
36981
36982 USES_CONTROLS=1
36983fi
36984
36985if test "$wxUSE_STATLINE" = "yes"; then
36986 cat >>confdefs.h <<\_ACEOF
36987#define wxUSE_STATLINE 1
36988_ACEOF
36989
36990 USES_CONTROLS=1
36991fi
36992
36993if test "$wxUSE_STATUSBAR" = "yes"; then
36994 cat >>confdefs.h <<\_ACEOF
36995#define wxUSE_STATUSBAR 1
36996_ACEOF
36997
36998 USES_CONTROLS=1
36999
37000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37001fi
37002
37003if test "$wxUSE_TABDIALOG" = "yes"; then
37004 cat >>confdefs.h <<\_ACEOF
37005#define wxUSE_TAB_DIALOG 1
37006_ACEOF
37007
37008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37009fi
37010
37011if test "$wxUSE_TEXTCTRL" = "yes"; then
37012 cat >>confdefs.h <<\_ACEOF
37013#define wxUSE_TEXTCTRL 1
37014_ACEOF
37015
37016 USES_CONTROLS=1
37017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37018fi
37019
37020if test "$wxUSE_TOGGLEBTN" = "yes"; then
37021 if test "$wxUSE_COCOA" = 1 ; then
37022 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37023echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37024 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37025 else
37026 if test "$wxUSE_PM" = 1; then
37027 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37028echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37029 wxUSE_TOGGLEBTN=no
37030 fi
a848cd7e
SC
37031 fi
37032 if test "$wxUSE_UNIVERSAL" = "yes"; then
37033 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37034echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37035 wxUSE_TOGGLEBTN=no
37036 fi
37037
37038 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37039 cat >>confdefs.h <<\_ACEOF
37040#define wxUSE_TOGGLEBTN 1
37041_ACEOF
37042
37043 USES_CONTROLS=1
37044 fi
37045fi
37046
37047if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37048 cat >>confdefs.h <<\_ACEOF
37049#define wxUSE_TOOLBAR_SIMPLE 1
37050_ACEOF
37051
37052 wxUSE_TOOLBAR="yes"
37053 USES_CONTROLS=1
37054fi
37055
37056if test "$wxUSE_TOOLBAR" = "yes"; then
37057 cat >>confdefs.h <<\_ACEOF
37058#define wxUSE_TOOLBAR 1
37059_ACEOF
37060
37061 USES_CONTROLS=1
37062
37063 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37064 wxUSE_TOOLBAR_NATIVE="yes"
37065 fi
37066
37067 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37068 cat >>confdefs.h <<\_ACEOF
37069#define wxUSE_TOOLBAR_NATIVE 1
37070_ACEOF
37071
37072 USES_CONTROLS=1
37073 fi
37074
37075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37076fi
37077
37078if test "$wxUSE_TOOLTIPS" = "yes"; then
37079 if test "$wxUSE_MOTIF" = 1; then
37080 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37081echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37082 else
37083 if test "$wxUSE_UNIVERSAL" = "yes"; then
37084 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37085echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37086 else
37087 cat >>confdefs.h <<\_ACEOF
37088#define wxUSE_TOOLTIPS 1
37089_ACEOF
37090
37091 fi
37092 fi
37093fi
37094
37095if test "$wxUSE_TREECTRL" = "yes"; then
37096 if test "$wxUSE_IMAGLIST" = "yes"; then
37097 cat >>confdefs.h <<\_ACEOF
37098#define wxUSE_TREECTRL 1
37099_ACEOF
37100
37101 USES_CONTROLS=1
37102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37103 else
37104 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37105echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37106 fi
37107fi
37108
37109if test "$wxUSE_POPUPWIN" = "yes"; then
37110 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37111 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37112echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37113 else
37114 if test "$wxUSE_PM" = 1; then
37115 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37116echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37117 else
37118 cat >>confdefs.h <<\_ACEOF
37119#define wxUSE_POPUPWIN 1
37120_ACEOF
37121
37122
37123 USES_CONTROLS=1
37124 fi
37125 fi
37126fi
37127
37128if test "$wxUSE_TIPWINDOW" = "yes"; then
37129 if test "$wxUSE_PM" = 1; then
37130 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37131echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37132 else
37133 cat >>confdefs.h <<\_ACEOF
37134#define wxUSE_TIPWINDOW 1
37135_ACEOF
37136
37137 fi
37138fi
37139
37140if test "$USES_CONTROLS" = 1; then
37141 cat >>confdefs.h <<\_ACEOF
37142#define wxUSE_CONTROLS 1
37143_ACEOF
37144
37145fi
37146
37147
37148if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37149 cat >>confdefs.h <<\_ACEOF
37150#define wxUSE_ACCESSIBILITY 1
37151_ACEOF
37152
37153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37154fi
37155
37156if test "$wxUSE_DRAGIMAGE" = "yes"; then
37157 cat >>confdefs.h <<\_ACEOF
37158#define wxUSE_DRAGIMAGE 1
37159_ACEOF
37160
37161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37162fi
37163
37164if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37165 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37166 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37167echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37168 else
37169 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37170#define wxUSE_EXCEPTIONS 1
37171_ACEOF
37172
07bea8f0
VS
37173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37174 fi
a848cd7e
SC
37175fi
37176
37177USE_HTML=0
37178if test "$wxUSE_HTML" = "yes"; then
37179 cat >>confdefs.h <<\_ACEOF
37180#define wxUSE_HTML 1
37181_ACEOF
37182
37183 USE_HTML=1
37184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37185 if test "$wxUSE_MAC" = 1; then
37186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37187 fi
a848cd7e 37188fi
646b6ec1 37189if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
37190 if test "$wxUSE_MAC" = 1; then
37191 old_CPPFLAGS="$CPPFLAGS"
37192 CPPFLAGS="$CPPFLAGS -x objective-c++"
37193 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37194echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37195if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37196 echo $ECHO_N "(cached) $ECHO_C" >&6
37197else
37198 cat >conftest.$ac_ext <<_ACEOF
37199/* confdefs.h. */
37200_ACEOF
37201cat confdefs.h >>conftest.$ac_ext
37202cat >>conftest.$ac_ext <<_ACEOF
37203/* end confdefs.h. */
37204#include <Carbon/Carbon.h>
37205
37206#include <WebKit/HIWebView.h>
37207_ACEOF
37208rm -f conftest.$ac_objext
37209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37210 (eval $ac_compile) 2>conftest.er1
37211 ac_status=$?
37212 grep -v '^ *+' conftest.er1 >conftest.err
37213 rm -f conftest.er1
37214 cat conftest.err >&5
37215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216 (exit $ac_status); } &&
2cbbc68d
RD
37217 { ac_try='test -z "$ac_c_werror_flag"
37218 || test ! -s conftest.err'
07bea8f0
VS
37219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37220 (eval $ac_try) 2>&5
37221 ac_status=$?
37222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223 (exit $ac_status); }; } &&
37224 { ac_try='test -s conftest.$ac_objext'
37225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37226 (eval $ac_try) 2>&5
37227 ac_status=$?
37228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37229 (exit $ac_status); }; }; then
37230 ac_cv_header_WebKit_HIWebView_h=yes
37231else
37232 echo "$as_me: failed program was:" >&5
37233sed 's/^/| /' conftest.$ac_ext >&5
37234
37235ac_cv_header_WebKit_HIWebView_h=no
37236fi
37237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37238fi
37239echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37240echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37241if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37242
37243 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37244#define wxUSE_WEBKIT 1
37245_ACEOF
37246
07bea8f0
VS
37247 WEBKIT_LINK="-framework WebKit"
37248
37249else
37250
37251 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37252echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37253 wxUSE_WEBKIT=no
37254
646b6ec1
VS
37255fi
37256
07bea8f0
VS
37257
37258 CPPFLAGS="$old_CPPFLAGS"
37259 elif test "$wxUSE_COCOA" = 1; then
37260 cat >>confdefs.h <<\_ACEOF
37261#define wxUSE_WEBKIT 1
37262_ACEOF
37263
37264 else
37265 wxUSE_WEBKIT=no
37266 fi
37267fi
37268
9a8f0513
VS
37269USE_XRC=0
37270if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37271 if test "$wxUSE_XML" != "yes"; then
37272 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37273echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37274 wxUSE_XRC=no
37275 else
37276 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37277#define wxUSE_XRC 1
37278_ACEOF
37279
d2ebf0b7
VS
37280 USE_XRC=1
37281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37282 fi
9a8f0513 37283fi
07bea8f0 37284
a848cd7e
SC
37285if test "$wxUSE_MENUS" = "yes"; then
37286 cat >>confdefs.h <<\_ACEOF
37287#define wxUSE_MENUS 1
37288_ACEOF
37289
37290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37291fi
37292
37293if test "$wxUSE_METAFILE" = "yes"; then
37294 cat >>confdefs.h <<\_ACEOF
37295#define wxUSE_METAFILE 1
37296_ACEOF
37297
37298fi
37299
37300if test "$wxUSE_MIMETYPE" = "yes"; then
37301 cat >>confdefs.h <<\_ACEOF
37302#define wxUSE_MIMETYPE 1
37303_ACEOF
37304
37305fi
37306
37307if test "$wxUSE_MINIFRAME" = "yes"; then
37308 cat >>confdefs.h <<\_ACEOF
37309#define wxUSE_MINIFRAME 1
37310_ACEOF
37311
37312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37313fi
37314
37315if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37316 cat >>confdefs.h <<\_ACEOF
37317#define wxUSE_SYSTEM_OPTIONS 1
37318_ACEOF
37319
37320 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 37321 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
37322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37323 fi
37324fi
37325
37326
37327if test "$wxUSE_VALIDATORS" = "yes"; then
37328 cat >>confdefs.h <<\_ACEOF
37329#define wxUSE_VALIDATORS 1
37330_ACEOF
37331
37332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37333fi
37334
37335if test "$wxUSE_PALETTE" = "yes" ; then
37336 cat >>confdefs.h <<\_ACEOF
37337#define wxUSE_PALETTE 1
37338_ACEOF
37339
37340fi
37341
37342if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37343 LIBS=" -lunicows $LIBS"
37344fi
37345
37346
37347if test "$wxUSE_IMAGE" = "yes" ; then
37348 cat >>confdefs.h <<\_ACEOF
37349#define wxUSE_IMAGE 1
37350_ACEOF
37351
37352
37353 if test "$wxUSE_GIF" = "yes" ; then
37354 cat >>confdefs.h <<\_ACEOF
37355#define wxUSE_GIF 1
37356_ACEOF
37357
37358 fi
37359
37360 if test "$wxUSE_PCX" = "yes" ; then
37361 cat >>confdefs.h <<\_ACEOF
37362#define wxUSE_PCX 1
37363_ACEOF
37364
37365 fi
37366
37367 if test "$wxUSE_IFF" = "yes" ; then
37368 cat >>confdefs.h <<\_ACEOF
37369#define wxUSE_IFF 1
37370_ACEOF
37371
37372 fi
37373
37374 if test "$wxUSE_PNM" = "yes" ; then
37375 cat >>confdefs.h <<\_ACEOF
37376#define wxUSE_PNM 1
37377_ACEOF
37378
37379 fi
37380
37381 if test "$wxUSE_XPM" = "yes" ; then
37382 cat >>confdefs.h <<\_ACEOF
37383#define wxUSE_XPM 1
37384_ACEOF
37385
37386 fi
37387
37388 if test "$wxUSE_ICO_CUR" = "yes" ; then
37389 cat >>confdefs.h <<\_ACEOF
37390#define wxUSE_ICO_CUR 1
37391_ACEOF
37392
37393 fi
37394fi
37395
37396
37397if test "$wxUSE_CHOICEDLG" = "yes"; then
37398 cat >>confdefs.h <<\_ACEOF
37399#define wxUSE_CHOICEDLG 1
37400_ACEOF
37401
37402fi
37403
37404if test "$wxUSE_COLOURDLG" = "yes"; then
37405 cat >>confdefs.h <<\_ACEOF
37406#define wxUSE_COLOURDLG 1
37407_ACEOF
37408
37409fi
37410
37411if test "$wxUSE_FILEDLG" = "yes"; then
37412 cat >>confdefs.h <<\_ACEOF
37413#define wxUSE_FILEDLG 1
37414_ACEOF
37415
37416fi
37417
37418if test "$wxUSE_FINDREPLDLG" = "yes"; then
37419 cat >>confdefs.h <<\_ACEOF
37420#define wxUSE_FINDREPLDLG 1
37421_ACEOF
37422
37423fi
37424
37425if test "$wxUSE_FONTDLG" = "yes"; then
37426 cat >>confdefs.h <<\_ACEOF
37427#define wxUSE_FONTDLG 1
37428_ACEOF
37429
37430fi
37431
37432if test "$wxUSE_DIRDLG" = "yes"; then
37433 if test "$wxUSE_TREECTRL" != "yes"; then
37434 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37435echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37436 else
37437 cat >>confdefs.h <<\_ACEOF
37438#define wxUSE_DIRDLG 1
37439_ACEOF
37440
37441 fi
37442fi
37443
37444if test "$wxUSE_MSGDLG" = "yes"; then
37445 cat >>confdefs.h <<\_ACEOF
37446#define wxUSE_MSGDLG 1
37447_ACEOF
37448
37449fi
37450
37451if test "$wxUSE_NUMBERDLG" = "yes"; then
37452 cat >>confdefs.h <<\_ACEOF
37453#define wxUSE_NUMBERDLG 1
37454_ACEOF
37455
37456fi
37457
37458if test "$wxUSE_PROGRESSDLG" = "yes"; then
37459 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37460 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37461echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37462 else
37463 cat >>confdefs.h <<\_ACEOF
37464#define wxUSE_PROGRESSDLG 1
37465_ACEOF
37466
37467 fi
37468fi
37469
37470if test "$wxUSE_SPLASH" = "yes"; then
37471 cat >>confdefs.h <<\_ACEOF
37472#define wxUSE_SPLASH 1
37473_ACEOF
37474
2057db16 37475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37476fi
37477
37478if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37479 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37480 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37481echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37482 else
37483 cat >>confdefs.h <<\_ACEOF
37484#define wxUSE_STARTUP_TIPS 1
37485_ACEOF
37486
37487 fi
37488fi
37489
37490if test "$wxUSE_TEXTDLG" = "yes"; then
37491 cat >>confdefs.h <<\_ACEOF
37492#define wxUSE_TEXTDLG 1
37493_ACEOF
37494
37495fi
37496
37497if test "$wxUSE_WIZARDDLG" = "yes"; then
37498 cat >>confdefs.h <<\_ACEOF
37499#define wxUSE_WIZARDDLG 1
37500_ACEOF
37501
37502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37503fi
37504
37505
37506if test "$cross_compiling" = "yes"; then
37507 OSINFO="\"$host\""
37508else
37509 OSINFO=`uname -s -r -m`
37510 OSINFO="\"$OSINFO\""
37511fi
37512
37513cat >>confdefs.h <<_ACEOF
37514#define WXWIN_OS_DESCRIPTION $OSINFO
37515_ACEOF
37516
37517
37518
37519if test "x$prefix" != "xNONE"; then
37520 wxPREFIX=$prefix
37521else
37522 wxPREFIX=$ac_default_prefix
37523fi
37524
37525cat >>confdefs.h <<_ACEOF
37526#define wxINSTALL_PREFIX "$wxPREFIX"
37527_ACEOF
37528
37529
a848cd7e
SC
37530
37531
37532CORE_BASE_LIBS="net base"
37533CORE_GUI_LIBS="adv core"
37534
37535if test "$wxUSE_XML" = "yes" ; then
37536 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37537fi
37538if test "$wxUSE_ODBC" != "no" ; then
37539 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37540 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37541fi
37542if test "$wxUSE_HTML" = "yes" ; then
37543 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37544fi
9a8f0513
VS
37545if test "$wxUSE_XRC" = "yes" ; then
37546 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37547fi
a848cd7e
SC
37548
37549if test "$wxUSE_GUI" != "yes"; then
37550 CORE_GUI_LIBS=""
37551fi
37552
37553
37554
37555
37556
37557
37558
37559
37560if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37561 if test "$wxUSE_SOUND" = "yes"; then
37562 LDFLAGS="$LDFLAGS -framework QuickTime"
37563 fi
5dcf30a0
RN
37564 if test "$USE_DARWIN" = 1; then
37565 LDFLAGS="$LDFLAGS -framework IOKit"
37566 fi
07bea8f0 37567 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37568fi
37569if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 37570 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
37571fi
37572
37573
37574LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37575
37576have_cos=0
37577have_floor=0
37578
37579for ac_func in cos
37580do
37581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37582echo "$as_me:$LINENO: checking for $ac_func" >&5
37583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37584if eval "test \"\${$as_ac_var+set}\" = set"; then
37585 echo $ECHO_N "(cached) $ECHO_C" >&6
37586else
37587 cat >conftest.$ac_ext <<_ACEOF
37588/* confdefs.h. */
37589_ACEOF
37590cat confdefs.h >>conftest.$ac_ext
37591cat >>conftest.$ac_ext <<_ACEOF
37592/* end confdefs.h. */
ac1cb8d3
VS
37593/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37595#define $ac_func innocuous_$ac_func
37596
a848cd7e
SC
37597/* System header to define __stub macros and hopefully few prototypes,
37598 which can conflict with char $ac_func (); below.
37599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37600 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37601
a848cd7e
SC
37602#ifdef __STDC__
37603# include <limits.h>
37604#else
37605# include <assert.h>
37606#endif
ac1cb8d3
VS
37607
37608#undef $ac_func
37609
a848cd7e
SC
37610/* Override any gcc2 internal prototype to avoid an error. */
37611#ifdef __cplusplus
37612extern "C"
37613{
37614#endif
37615/* We use char because int might match the return type of a gcc2
37616 builtin and then its argument prototype would still apply. */
37617char $ac_func ();
37618/* The GNU C library defines this for functions which it implements
37619 to always fail with ENOSYS. Some functions are actually named
37620 something starting with __ and the normal name is an alias. */
37621#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37622choke me
37623#else
37624char (*f) () = $ac_func;
37625#endif
37626#ifdef __cplusplus
37627}
37628#endif
37629
37630int
37631main ()
37632{
37633return f != $ac_func;
37634 ;
37635 return 0;
37636}
37637_ACEOF
37638rm -f conftest.$ac_objext conftest$ac_exeext
37639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37640 (eval $ac_link) 2>conftest.er1
a848cd7e 37641 ac_status=$?
ac1cb8d3
VS
37642 grep -v '^ *+' conftest.er1 >conftest.err
37643 rm -f conftest.er1
37644 cat conftest.err >&5
a848cd7e
SC
37645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646 (exit $ac_status); } &&
2cbbc68d
RD
37647 { ac_try='test -z "$ac_c_werror_flag"
37648 || test ! -s conftest.err'
ac1cb8d3
VS
37649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37650 (eval $ac_try) 2>&5
37651 ac_status=$?
37652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653 (exit $ac_status); }; } &&
37654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37656 (eval $ac_try) 2>&5
37657 ac_status=$?
37658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37659 (exit $ac_status); }; }; then
37660 eval "$as_ac_var=yes"
37661else
37662 echo "$as_me: failed program was:" >&5
37663sed 's/^/| /' conftest.$ac_ext >&5
37664
37665eval "$as_ac_var=no"
37666fi
ac1cb8d3
VS
37667rm -f conftest.err conftest.$ac_objext \
37668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37669fi
37670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37671echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37672if test `eval echo '${'$as_ac_var'}'` = yes; then
37673 cat >>confdefs.h <<_ACEOF
37674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37675_ACEOF
37676 have_cos=1
37677fi
37678done
37679
37680
37681for ac_func in floor
37682do
37683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37684echo "$as_me:$LINENO: checking for $ac_func" >&5
37685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37686if eval "test \"\${$as_ac_var+set}\" = set"; then
37687 echo $ECHO_N "(cached) $ECHO_C" >&6
37688else
37689 cat >conftest.$ac_ext <<_ACEOF
37690/* confdefs.h. */
37691_ACEOF
37692cat confdefs.h >>conftest.$ac_ext
37693cat >>conftest.$ac_ext <<_ACEOF
37694/* end confdefs.h. */
ac1cb8d3
VS
37695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37697#define $ac_func innocuous_$ac_func
37698
a848cd7e
SC
37699/* System header to define __stub macros and hopefully few prototypes,
37700 which can conflict with char $ac_func (); below.
37701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37702 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37703
a848cd7e
SC
37704#ifdef __STDC__
37705# include <limits.h>
37706#else
37707# include <assert.h>
37708#endif
ac1cb8d3
VS
37709
37710#undef $ac_func
37711
a848cd7e
SC
37712/* Override any gcc2 internal prototype to avoid an error. */
37713#ifdef __cplusplus
37714extern "C"
37715{
37716#endif
37717/* We use char because int might match the return type of a gcc2
37718 builtin and then its argument prototype would still apply. */
37719char $ac_func ();
37720/* The GNU C library defines this for functions which it implements
37721 to always fail with ENOSYS. Some functions are actually named
37722 something starting with __ and the normal name is an alias. */
37723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37724choke me
37725#else
37726char (*f) () = $ac_func;
37727#endif
37728#ifdef __cplusplus
37729}
37730#endif
37731
37732int
37733main ()
37734{
37735return f != $ac_func;
37736 ;
37737 return 0;
37738}
37739_ACEOF
37740rm -f conftest.$ac_objext conftest$ac_exeext
37741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37742 (eval $ac_link) 2>conftest.er1
a848cd7e 37743 ac_status=$?
ac1cb8d3
VS
37744 grep -v '^ *+' conftest.er1 >conftest.err
37745 rm -f conftest.er1
37746 cat conftest.err >&5
a848cd7e
SC
37747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37748 (exit $ac_status); } &&
2cbbc68d
RD
37749 { ac_try='test -z "$ac_c_werror_flag"
37750 || test ! -s conftest.err'
ac1cb8d3
VS
37751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37752 (eval $ac_try) 2>&5
37753 ac_status=$?
37754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37755 (exit $ac_status); }; } &&
37756 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37758 (eval $ac_try) 2>&5
37759 ac_status=$?
37760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37761 (exit $ac_status); }; }; then
37762 eval "$as_ac_var=yes"
37763else
37764 echo "$as_me: failed program was:" >&5
37765sed 's/^/| /' conftest.$ac_ext >&5
37766
37767eval "$as_ac_var=no"
37768fi
ac1cb8d3
VS
37769rm -f conftest.err conftest.$ac_objext \
37770 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37771fi
37772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37773echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37774if test `eval echo '${'$as_ac_var'}'` = yes; then
37775 cat >>confdefs.h <<_ACEOF
37776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37777_ACEOF
37778 have_floor=1
37779fi
37780done
37781
37782echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37783echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37784if test "$have_cos" = 1 -a "$have_floor" = 1; then
37785 echo "$as_me:$LINENO: result: yes" >&5
37786echo "${ECHO_T}yes" >&6
37787else
37788 echo "$as_me:$LINENO: result: no" >&5
37789echo "${ECHO_T}no" >&6
37790 LIBS="$LIBS -lm"
37791 # use different functions to avoid configure caching
37792 have_sin=0
37793 have_ceil=0
37794
37795for ac_func in sin
37796do
37797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37798echo "$as_me:$LINENO: checking for $ac_func" >&5
37799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37800if eval "test \"\${$as_ac_var+set}\" = set"; then
37801 echo $ECHO_N "(cached) $ECHO_C" >&6
37802else
37803 cat >conftest.$ac_ext <<_ACEOF
37804/* confdefs.h. */
37805_ACEOF
37806cat confdefs.h >>conftest.$ac_ext
37807cat >>conftest.$ac_ext <<_ACEOF
37808/* end confdefs.h. */
ac1cb8d3
VS
37809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37811#define $ac_func innocuous_$ac_func
37812
a848cd7e
SC
37813/* System header to define __stub macros and hopefully few prototypes,
37814 which can conflict with char $ac_func (); below.
37815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37816 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37817
a848cd7e
SC
37818#ifdef __STDC__
37819# include <limits.h>
37820#else
37821# include <assert.h>
37822#endif
ac1cb8d3
VS
37823
37824#undef $ac_func
37825
a848cd7e
SC
37826/* Override any gcc2 internal prototype to avoid an error. */
37827#ifdef __cplusplus
37828extern "C"
37829{
37830#endif
37831/* We use char because int might match the return type of a gcc2
37832 builtin and then its argument prototype would still apply. */
37833char $ac_func ();
37834/* The GNU C library defines this for functions which it implements
37835 to always fail with ENOSYS. Some functions are actually named
37836 something starting with __ and the normal name is an alias. */
37837#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37838choke me
37839#else
37840char (*f) () = $ac_func;
37841#endif
37842#ifdef __cplusplus
37843}
37844#endif
37845
37846int
37847main ()
37848{
37849return f != $ac_func;
37850 ;
37851 return 0;
37852}
37853_ACEOF
37854rm -f conftest.$ac_objext conftest$ac_exeext
37855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37856 (eval $ac_link) 2>conftest.er1
a848cd7e 37857 ac_status=$?
ac1cb8d3
VS
37858 grep -v '^ *+' conftest.er1 >conftest.err
37859 rm -f conftest.er1
37860 cat conftest.err >&5
a848cd7e
SC
37861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37862 (exit $ac_status); } &&
2cbbc68d
RD
37863 { ac_try='test -z "$ac_c_werror_flag"
37864 || test ! -s conftest.err'
ac1cb8d3
VS
37865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37866 (eval $ac_try) 2>&5
37867 ac_status=$?
37868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37869 (exit $ac_status); }; } &&
37870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37872 (eval $ac_try) 2>&5
37873 ac_status=$?
37874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37875 (exit $ac_status); }; }; then
37876 eval "$as_ac_var=yes"
37877else
37878 echo "$as_me: failed program was:" >&5
37879sed 's/^/| /' conftest.$ac_ext >&5
37880
37881eval "$as_ac_var=no"
37882fi
ac1cb8d3
VS
37883rm -f conftest.err conftest.$ac_objext \
37884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37885fi
37886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37888if test `eval echo '${'$as_ac_var'}'` = yes; then
37889 cat >>confdefs.h <<_ACEOF
37890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37891_ACEOF
37892 have_sin=1
37893fi
37894done
37895
37896
37897for ac_func in ceil
37898do
37899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37900echo "$as_me:$LINENO: checking for $ac_func" >&5
37901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37902if eval "test \"\${$as_ac_var+set}\" = set"; then
37903 echo $ECHO_N "(cached) $ECHO_C" >&6
37904else
37905 cat >conftest.$ac_ext <<_ACEOF
37906/* confdefs.h. */
37907_ACEOF
37908cat confdefs.h >>conftest.$ac_ext
37909cat >>conftest.$ac_ext <<_ACEOF
37910/* end confdefs.h. */
ac1cb8d3
VS
37911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37913#define $ac_func innocuous_$ac_func
37914
a848cd7e
SC
37915/* System header to define __stub macros and hopefully few prototypes,
37916 which can conflict with char $ac_func (); below.
37917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37918 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37919
a848cd7e
SC
37920#ifdef __STDC__
37921# include <limits.h>
37922#else
37923# include <assert.h>
37924#endif
ac1cb8d3
VS
37925
37926#undef $ac_func
37927
a848cd7e
SC
37928/* Override any gcc2 internal prototype to avoid an error. */
37929#ifdef __cplusplus
37930extern "C"
37931{
37932#endif
37933/* We use char because int might match the return type of a gcc2
37934 builtin and then its argument prototype would still apply. */
37935char $ac_func ();
37936/* The GNU C library defines this for functions which it implements
37937 to always fail with ENOSYS. Some functions are actually named
37938 something starting with __ and the normal name is an alias. */
37939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37940choke me
37941#else
37942char (*f) () = $ac_func;
37943#endif
37944#ifdef __cplusplus
37945}
37946#endif
37947
37948int
37949main ()
37950{
37951return f != $ac_func;
37952 ;
37953 return 0;
37954}
37955_ACEOF
37956rm -f conftest.$ac_objext conftest$ac_exeext
37957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37958 (eval $ac_link) 2>conftest.er1
a848cd7e 37959 ac_status=$?
ac1cb8d3
VS
37960 grep -v '^ *+' conftest.er1 >conftest.err
37961 rm -f conftest.er1
37962 cat conftest.err >&5
a848cd7e
SC
37963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964 (exit $ac_status); } &&
2cbbc68d
RD
37965 { ac_try='test -z "$ac_c_werror_flag"
37966 || test ! -s conftest.err'
ac1cb8d3
VS
37967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37968 (eval $ac_try) 2>&5
37969 ac_status=$?
37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971 (exit $ac_status); }; } &&
37972 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974 (eval $ac_try) 2>&5
37975 ac_status=$?
37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); }; }; then
37978 eval "$as_ac_var=yes"
37979else
37980 echo "$as_me: failed program was:" >&5
37981sed 's/^/| /' conftest.$ac_ext >&5
37982
37983eval "$as_ac_var=no"
37984fi
ac1cb8d3
VS
37985rm -f conftest.err conftest.$ac_objext \
37986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37987fi
37988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37989echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37990if test `eval echo '${'$as_ac_var'}'` = yes; then
37991 cat >>confdefs.h <<_ACEOF
37992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37993_ACEOF
37994 have_ceil=1
37995fi
37996done
37997
37998 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37999echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38000 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38001 echo "$as_me:$LINENO: result: yes" >&5
38002echo "${ECHO_T}yes" >&6
38003 else
38004 echo "$as_me:$LINENO: result: no" >&5
38005echo "${ECHO_T}no" >&6
38006 # not sure we should warn the user, crash, etc.
38007 fi
38008fi
38009
38010if test "$wxUSE_GUI" = "yes"; then
38011
38012
38013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38014 drawing dynamic erase event exec font image \
38015 minimal propsize rotate shaped widgets render"
38016
38017 if test "$wxUSE_MONOLITHIC" != "yes"; then
38018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38019 fi
38020else
38021 SAMPLES_SUBDIRS="console"
38022fi
38023
38024
ceec2216 38025INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
38026-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38027
38028if test "$GXX" = yes ; then
38029 CXXWARNINGS="-Wall"
38030 fi
38031
38032EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38033
0c3c69fc
VS
38034CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
38035CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
38036CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
38037
38038
0c3c69fc 38039LIBS=`echo $LIBS`
a848cd7e
SC
38040EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38041EXTRALIBS_XML="$EXPAT_LINK"
38042EXTRALIBS_HTML="$MSPACK_LINK"
38043EXTRALIBS_ODBC="$ODBC_LINK"
38044if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 38045 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
38046fi
38047if test "$wxUSE_OPENGL" = "yes"; then
38048 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38049fi
38050
38051LDFLAGS="$LDFLAGS $PROFILE"
38052
38053if test "$wxUSE_GTK" = 1; then
38054 WXCONFIG_INCLUDE=
38055else
38056 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38057fi
38058
38059WXCONFIG_EXTRALIBS="$LIBS"
38060
38061if test "$wxUSE_REGEX" = "builtin" ; then
38062 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38063fi
38064if test "$wxUSE_EXPAT" = "builtin" ; then
38065 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38066fi
38067if test "$wxUSE_ODBC" = "builtin" ; then
38068 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38069fi
38070if test "$wxUSE_LIBTIFF" = "builtin" ; then
38071 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38072fi
38073if test "$wxUSE_LIBJPEG" = "builtin" ; then
38074 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38075fi
38076if test "$wxUSE_LIBPNG" = "builtin" ; then
38077 wxconfig_3rdparty="$wxconfig_3rdparty png"
38078fi
38079if test "$wxUSE_ZLIB" = "builtin" ; then
38080 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38081fi
38082if test "$wxUSE_ODBC" = "builtin" ; then
38083 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38084fi
38085
38086for i in $wxconfig_3rdparty ; do
ceec2216 38087 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38088done
38089
38090
38091if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38092 WXUNIV=1
38093else
38094 WXUNIV=0
38095fi
38096
38097
38098
38099
38100
38101
38102
38103
38104
38105if test $wxUSE_MONOLITHIC = "yes" ; then
38106 MONOLITHIC=1
38107else
38108 MONOLITHIC=0
38109fi
38110
38111if test $wxUSE_PLUGINS = "yes" ; then
38112 USE_PLUGINS=1
38113else
38114 USE_PLUGINS=0
38115fi
38116
38117if test $wxUSE_ODBC != "no" ; then
38118 USE_ODBC=1
38119else
38120 USE_ODBC=0
38121fi
38122
38123if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38124 OFFICIAL_BUILD=1
38125else
38126 OFFICIAL_BUILD=0
38127fi
38128
38129
38130
38131
38132
38133
38134
38135
38136
38137
38138
38139
38140
38141
38142
38143
38144
38145
38146
ceec2216 38147
d1c38808 38148
a848cd7e
SC
38149
38150
38151TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38152
38153
38154
38155
38156
38157
38158
38159
4d4ff94c
VZ
38160case "$TOOLKIT" in
38161 GTK)
38162 TOOLKIT_USER="GTK+"
38163 if test "$WXGTK20" = 1; then
38164 TOOLKIT_USER="$TOOLKIT_USER 2"
38165 fi
9a8f0513 38166 ;;
4d4ff94c
VZ
38167
38168 *)
38169 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38170 ;;
4d4ff94c 38171esac
a848cd7e 38172
9a8f0513 38173
a848cd7e
SC
38174 if test "x$BAKEFILE_HOST" = "x"; then
38175 BAKEFILE_HOST="${host}"
38176 fi
38177
38178 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38179
38180 if test -n "$ac_tool_prefix"; then
38181 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38182set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38183echo "$as_me:$LINENO: checking for $ac_word" >&5
38184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38185if test "${ac_cv_prog_RANLIB+set}" = set; then
38186 echo $ECHO_N "(cached) $ECHO_C" >&6
38187else
38188 if test -n "$RANLIB"; then
38189 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38190else
38191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38192for as_dir in $PATH
38193do
38194 IFS=$as_save_IFS
38195 test -z "$as_dir" && as_dir=.
38196 for ac_exec_ext in '' $ac_executable_extensions; do
38197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38198 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38200 break 2
38201 fi
38202done
38203done
38204
38205fi
38206fi
38207RANLIB=$ac_cv_prog_RANLIB
38208if test -n "$RANLIB"; then
38209 echo "$as_me:$LINENO: result: $RANLIB" >&5
38210echo "${ECHO_T}$RANLIB" >&6
38211else
38212 echo "$as_me:$LINENO: result: no" >&5
38213echo "${ECHO_T}no" >&6
38214fi
38215
38216fi
38217if test -z "$ac_cv_prog_RANLIB"; then
38218 ac_ct_RANLIB=$RANLIB
38219 # Extract the first word of "ranlib", so it can be a program name with args.
38220set dummy ranlib; ac_word=$2
38221echo "$as_me:$LINENO: checking for $ac_word" >&5
38222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38223if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38224 echo $ECHO_N "(cached) $ECHO_C" >&6
38225else
38226 if test -n "$ac_ct_RANLIB"; then
38227 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38228else
38229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38230for as_dir in $PATH
38231do
38232 IFS=$as_save_IFS
38233 test -z "$as_dir" && as_dir=.
38234 for ac_exec_ext in '' $ac_executable_extensions; do
38235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38236 ac_cv_prog_ac_ct_RANLIB="ranlib"
38237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38238 break 2
38239 fi
38240done
38241done
38242
38243 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38244fi
38245fi
38246ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38247if test -n "$ac_ct_RANLIB"; then
38248 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38249echo "${ECHO_T}$ac_ct_RANLIB" >&6
38250else
38251 echo "$as_me:$LINENO: result: no" >&5
38252echo "${ECHO_T}no" >&6
38253fi
38254
38255 RANLIB=$ac_ct_RANLIB
38256else
38257 RANLIB="$ac_cv_prog_RANLIB"
38258fi
38259
38260 # Find a good install program. We prefer a C program (faster),
38261# so one script is as good as another. But avoid the broken or
38262# incompatible versions:
38263# SysV /etc/install, /usr/sbin/install
38264# SunOS /usr/etc/install
38265# IRIX /sbin/install
38266# AIX /bin/install
38267# AmigaOS /C/install, which installs bootblocks on floppy discs
38268# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38269# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38270# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38271# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38272# ./install, which can be erroneously created by make from ./install.sh.
38273echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38274echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38275if test -z "$INSTALL"; then
38276if test "${ac_cv_path_install+set}" = set; then
38277 echo $ECHO_N "(cached) $ECHO_C" >&6
38278else
38279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38280for as_dir in $PATH
38281do
38282 IFS=$as_save_IFS
38283 test -z "$as_dir" && as_dir=.
38284 # Account for people who put trailing slashes in PATH elements.
38285case $as_dir/ in
38286 ./ | .// | /cC/* | \
38287 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38288 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38289 /usr/ucb/* ) ;;
38290 *)
38291 # OSF1 and SCO ODT 3.0 have their own names for install.
38292 # Don't use installbsd from OSF since it installs stuff as root
38293 # by default.
38294 for ac_prog in ginstall scoinst install; do
38295 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38296 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38297 if test $ac_prog = install &&
38298 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38299 # AIX install. It has an incompatible calling convention.
38300 :
38301 elif test $ac_prog = install &&
38302 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38303 # program-specific install script used by HP pwplus--don't use.
38304 :
38305 else
38306 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38307 break 3
38308 fi
38309 fi
a848cd7e
SC
38310 done
38311 done
38312 ;;
38313esac
38314done
38315
38316
38317fi
38318 if test "${ac_cv_path_install+set}" = set; then
38319 INSTALL=$ac_cv_path_install
38320 else
38321 # As a last resort, use the slow shell script. We don't cache a
38322 # path for INSTALL within a source directory, because that will
38323 # break other packages using the cache if that directory is
38324 # removed, or if the path is relative.
38325 INSTALL=$ac_install_sh
38326 fi
38327fi
38328echo "$as_me:$LINENO: result: $INSTALL" >&5
38329echo "${ECHO_T}$INSTALL" >&6
38330
38331# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38332# It thinks the first close brace ends the variable substitution.
38333test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38334
38335test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38336
38337test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38338
38339 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38340echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38341LN_S=$as_ln_s
38342if test "$LN_S" = "ln -s"; then
38343 echo "$as_me:$LINENO: result: yes" >&5
38344echo "${ECHO_T}yes" >&6
38345else
38346 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38347echo "${ECHO_T}no, using $LN_S" >&6
38348fi
38349
38350
38351 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38352echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38353set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38354if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38355 echo $ECHO_N "(cached) $ECHO_C" >&6
38356else
38357 cat >conftest.make <<\_ACEOF
38358all:
38359 @echo 'ac_maketemp="$(MAKE)"'
38360_ACEOF
38361# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38362eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38363if test -n "$ac_maketemp"; then
38364 eval ac_cv_prog_make_${ac_make}_set=yes
38365else
38366 eval ac_cv_prog_make_${ac_make}_set=no
38367fi
38368rm -f conftest.make
38369fi
38370if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38371 echo "$as_me:$LINENO: result: yes" >&5
38372echo "${ECHO_T}yes" >&6
38373 SET_MAKE=
38374else
38375 echo "$as_me:$LINENO: result: no" >&5
38376echo "${ECHO_T}no" >&6
38377 SET_MAKE="MAKE=${MAKE-make}"
38378fi
38379
38380
38381
38382 if test -n "$ac_tool_prefix"; then
38383 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38384set dummy ${ac_tool_prefix}ar; ac_word=$2
38385echo "$as_me:$LINENO: checking for $ac_word" >&5
38386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38387if test "${ac_cv_prog_AR+set}" = set; then
38388 echo $ECHO_N "(cached) $ECHO_C" >&6
38389else
38390 if test -n "$AR"; then
38391 ac_cv_prog_AR="$AR" # Let the user override the test.
38392else
38393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38394for as_dir in $PATH
38395do
38396 IFS=$as_save_IFS
38397 test -z "$as_dir" && as_dir=.
38398 for ac_exec_ext in '' $ac_executable_extensions; do
38399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38400 ac_cv_prog_AR="${ac_tool_prefix}ar"
38401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38402 break 2
38403 fi
38404done
38405done
38406
38407fi
38408fi
38409AR=$ac_cv_prog_AR
38410if test -n "$AR"; then
38411 echo "$as_me:$LINENO: result: $AR" >&5
38412echo "${ECHO_T}$AR" >&6
38413else
38414 echo "$as_me:$LINENO: result: no" >&5
38415echo "${ECHO_T}no" >&6
38416fi
38417
38418fi
38419if test -z "$ac_cv_prog_AR"; then
38420 ac_ct_AR=$AR
38421 # Extract the first word of "ar", so it can be a program name with args.
38422set dummy ar; ac_word=$2
38423echo "$as_me:$LINENO: checking for $ac_word" >&5
38424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38425if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38426 echo $ECHO_N "(cached) $ECHO_C" >&6
38427else
38428 if test -n "$ac_ct_AR"; then
38429 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38430else
38431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38432for as_dir in $PATH
38433do
38434 IFS=$as_save_IFS
38435 test -z "$as_dir" && as_dir=.
38436 for ac_exec_ext in '' $ac_executable_extensions; do
38437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38438 ac_cv_prog_ac_ct_AR="ar"
38439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38440 break 2
38441 fi
38442done
38443done
38444
38445 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38446fi
38447fi
38448ac_ct_AR=$ac_cv_prog_ac_ct_AR
38449if test -n "$ac_ct_AR"; then
38450 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38451echo "${ECHO_T}$ac_ct_AR" >&6
38452else
38453 echo "$as_me:$LINENO: result: no" >&5
38454echo "${ECHO_T}no" >&6
38455fi
38456
38457 AR=$ac_ct_AR
38458else
38459 AR="$ac_cv_prog_AR"
38460fi
38461
38462 if test -n "$ac_tool_prefix"; then
38463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38464set dummy ${ac_tool_prefix}strip; ac_word=$2
38465echo "$as_me:$LINENO: checking for $ac_word" >&5
38466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38467if test "${ac_cv_prog_STRIP+set}" = set; then
38468 echo $ECHO_N "(cached) $ECHO_C" >&6
38469else
38470 if test -n "$STRIP"; then
38471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38472else
38473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38474for as_dir in $PATH
38475do
38476 IFS=$as_save_IFS
38477 test -z "$as_dir" && as_dir=.
38478 for ac_exec_ext in '' $ac_executable_extensions; do
38479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38482 break 2
38483 fi
38484done
38485done
38486
38487fi
38488fi
38489STRIP=$ac_cv_prog_STRIP
38490if test -n "$STRIP"; then
38491 echo "$as_me:$LINENO: result: $STRIP" >&5
38492echo "${ECHO_T}$STRIP" >&6
38493else
38494 echo "$as_me:$LINENO: result: no" >&5
38495echo "${ECHO_T}no" >&6
38496fi
38497
38498fi
38499if test -z "$ac_cv_prog_STRIP"; then
38500 ac_ct_STRIP=$STRIP
38501 # Extract the first word of "strip", so it can be a program name with args.
38502set dummy strip; ac_word=$2
38503echo "$as_me:$LINENO: checking for $ac_word" >&5
38504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38505if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38506 echo $ECHO_N "(cached) $ECHO_C" >&6
38507else
38508 if test -n "$ac_ct_STRIP"; then
38509 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38510else
38511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38512for as_dir in $PATH
38513do
38514 IFS=$as_save_IFS
38515 test -z "$as_dir" && as_dir=.
38516 for ac_exec_ext in '' $ac_executable_extensions; do
38517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38518 ac_cv_prog_ac_ct_STRIP="strip"
38519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38520 break 2
38521 fi
38522done
38523done
38524
38525 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38526fi
38527fi
38528ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38529if test -n "$ac_ct_STRIP"; then
38530 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38531echo "${ECHO_T}$ac_ct_STRIP" >&6
38532else
38533 echo "$as_me:$LINENO: result: no" >&5
38534echo "${ECHO_T}no" >&6
38535fi
38536
38537 STRIP=$ac_ct_STRIP
38538else
38539 STRIP="$ac_cv_prog_STRIP"
38540fi
38541
38542 if test -n "$ac_tool_prefix"; then
38543 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38544set dummy ${ac_tool_prefix}nm; ac_word=$2
38545echo "$as_me:$LINENO: checking for $ac_word" >&5
38546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38547if test "${ac_cv_prog_NM+set}" = set; then
38548 echo $ECHO_N "(cached) $ECHO_C" >&6
38549else
38550 if test -n "$NM"; then
38551 ac_cv_prog_NM="$NM" # Let the user override the test.
38552else
38553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38554for as_dir in $PATH
38555do
38556 IFS=$as_save_IFS
38557 test -z "$as_dir" && as_dir=.
38558 for ac_exec_ext in '' $ac_executable_extensions; do
38559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38560 ac_cv_prog_NM="${ac_tool_prefix}nm"
38561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38562 break 2
38563 fi
38564done
38565done
38566
38567fi
38568fi
38569NM=$ac_cv_prog_NM
38570if test -n "$NM"; then
38571 echo "$as_me:$LINENO: result: $NM" >&5
38572echo "${ECHO_T}$NM" >&6
38573else
38574 echo "$as_me:$LINENO: result: no" >&5
38575echo "${ECHO_T}no" >&6
38576fi
38577
38578fi
38579if test -z "$ac_cv_prog_NM"; then
38580 ac_ct_NM=$NM
38581 # Extract the first word of "nm", so it can be a program name with args.
38582set dummy nm; ac_word=$2
38583echo "$as_me:$LINENO: checking for $ac_word" >&5
38584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38585if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38586 echo $ECHO_N "(cached) $ECHO_C" >&6
38587else
38588 if test -n "$ac_ct_NM"; then
38589 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38590else
38591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38592for as_dir in $PATH
38593do
38594 IFS=$as_save_IFS
38595 test -z "$as_dir" && as_dir=.
38596 for ac_exec_ext in '' $ac_executable_extensions; do
38597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38598 ac_cv_prog_ac_ct_NM="nm"
38599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38600 break 2
38601 fi
38602done
38603done
38604
38605 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38606fi
38607fi
38608ac_ct_NM=$ac_cv_prog_ac_ct_NM
38609if test -n "$ac_ct_NM"; then
38610 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38611echo "${ECHO_T}$ac_ct_NM" >&6
38612else
38613 echo "$as_me:$LINENO: result: no" >&5
38614echo "${ECHO_T}no" >&6
38615fi
38616
38617 NM=$ac_ct_NM
38618else
38619 NM="$ac_cv_prog_NM"
38620fi
38621
38622
38623 case ${BAKEFILE_HOST} in
38624 *-hp-hpux* )
a49baeab 38625 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38626 ;;
38627 *) INSTALL_DIR="$INSTALL -d"
38628 ;;
38629 esac
38630
38631
38632 LDFLAGS_GUI=
38633 case ${BAKEFILE_HOST} in
38634 *-*-cygwin* | *-*-mingw32* )
38635 LDFLAGS_GUI="-mwindows"
38636 esac
38637
38638
38639 fi
38640
38641 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38642echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38643if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38644 echo $ECHO_N "(cached) $ECHO_C" >&6
38645else
38646
38647 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38648 egrep -s GNU > /dev/null); then
38649 bakefile_cv_prog_makeisgnu="yes"
38650 else
38651 bakefile_cv_prog_makeisgnu="no"
38652 fi
38653
38654fi
38655echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38656echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38657
38658 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38659 IF_GNU_MAKE=""
38660 else
38661 IF_GNU_MAKE="#"
38662 fi
38663
38664
38665
38666 PLATFORM_UNIX=0
38667 PLATFORM_WIN32=0
38668 PLATFORM_MSDOS=0
38669 PLATFORM_MAC=0
38670 PLATFORM_MACOSX=0
38671 PLATFORM_OS2=0
38672
38673 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38674 case "${BAKEFILE_HOST}" in
38675 *-*-cygwin* | *-*-mingw32* )
38676 PLATFORM_WIN32=1
38677 ;;
38678 *-pc-msdosdjgpp )
38679 PLATFORM_MSDOS=1
38680 ;;
38681 *-pc-os2_emx | *-pc-os2-emx )
38682 PLATFORM_OS2=1
38683 ;;
38684 powerpc-*-darwin* )
38685 PLATFORM_MAC=1
38686 PLATFORM_MACOSX=1
38687 ;;
38688 * )
38689 PLATFORM_UNIX=1
38690 ;;
38691 esac
38692 else
38693 case "$BAKEFILE_FORCE_PLATFORM" in
38694 win32 )
38695 PLATFORM_WIN32=1
38696 ;;
38697 msdos )
38698 PLATFORM_MSDOS=1
38699 ;;
38700 os2 )
38701 PLATFORM_OS2=1
38702 ;;
38703 darwin )
38704 PLATFORM_MAC=1
38705 PLATFORM_MACOSX=1
38706 ;;
38707 unix )
38708 PLATFORM_UNIX=1
38709 ;;
38710 * )
38711 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38712echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38713 { (exit 1); exit 1; }; }
38714 ;;
38715 esac
38716 fi
38717
38718
38719
38720
38721
38722
38723
38724
38725
38726 # Check whether --enable-omf or --disable-omf was given.
38727if test "${enable_omf+set}" = set; then
38728 enableval="$enable_omf"
38729 bk_os2_use_omf="$enableval"
38730fi;
38731
38732 case "${BAKEFILE_HOST}" in
38733 *-*-darwin* )
38734 CFLAGS="$CFLAGS -fno-common"
38735 CXXFLAGS="$CXXFLAGS -fno-common"
38736 ;;
38737
38738 *-pc-os2_emx | *-pc-os2-emx )
38739 if test "x$bk_os2_use_omf" = "xyes" ; then
38740 AR=emxomfar
38741 RANLIB=:
38742 LDFLAGS="-Zomf $LDFLAGS"
38743 CFLAGS="-Zomf $CFLAGS"
38744 CXXFLAGS="-Zomf $CXXFLAGS"
38745 OS2_LIBEXT="lib"
38746 else
38747 OS2_LIBEXT="a"
38748 fi
38749 ;;
38750 esac
38751
38752
38753 SO_SUFFIX="so"
38754 SO_SUFFIX_MODULE="so"
38755 EXEEXT=""
38756 LIBPREFIX="lib"
38757 LIBEXT=".a"
38758 DLLPREFIX="lib"
38759 DLLPREFIX_MODULE=""
38760 DLLIMP_SUFFIX=""
38761
38762 case "${BAKEFILE_HOST}" in
38763 *-hp-hpux* )
38764 SO_SUFFIX="sl"
38765 SO_SUFFIX_MODULE="sl"
38766 ;;
38767 *-*-aix* )
38768 SO_SUFFIX="a"
38769 SO_SUFFIX_MODULE="a"
38770 ;;
38771 *-*-cygwin* | *-*-mingw32* )
38772 SO_SUFFIX="dll"
38773 SO_SUFFIX_MODULE="dll"
38774 DLLIMP_SUFFIX="dll.a"
38775 EXEEXT=".exe"
38776 DLLPREFIX=""
38777 ;;
38778 *-pc-msdosdjgpp )
38779 EXEEXT=".exe"
38780 DLLPREFIX=""
38781 ;;
38782 *-pc-os2_emx | *-pc-os2-emx )
38783 SO_SUFFIX="dll"
38784 SO_SUFFIX_MODULE="dll"
38785 DLLIMP_SUFFIX=$OS2_LIBEXT
38786 EXEEXT=".exe"
38787 DLLPREFIX=""
38788 LIBPREFIX=""
38789 LIBEXT=".$OS2_LIBEXT"
38790 ;;
38791 powerpc-*-darwin* )
38792 SO_SUFFIX="dylib"
38793 SO_SUFFIX_MODULE="bundle"
38794 ;;
38795 esac
38796
38797 if test "x$DLLIMP_SUFFIX" = "x" ; then
38798 DLLIMP_SUFFIX="$SO_SUFFIX"
38799 fi
38800
38801
38802
38803
38804
38805
38806
38807
38808
38809
38810
38811 SHARED_LD_CC="\$(CC) -shared -o"
38812 SHARED_LD_CXX="\$(CXX) -shared -o"
38813
38814 if test "x$GCC" = "xyes"; then
38815 PIC_FLAG="-fPIC"
38816 fi
38817
38818 case "${BAKEFILE_HOST}" in
38819 *-hp-hpux* )
38820 if test "x$GCC" = "xyes"; then
38821 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38822 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38823 else
38824 LDFLAGS="$LDFLAGS -L/usr/lib"
38825
38826 SHARED_LD_CC="${CC} -b -o"
38827 SHARED_LD_CXX="${CXX} -b -o"
38828 PIC_FLAG="+Z"
38829 fi
38830 ;;
38831
38832 *-*-linux* )
38833 if test "x$GCC" != "xyes"; then
38834 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38835echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38836if test "${bakefile_cv_prog_icc+set}" = set; then
38837 echo $ECHO_N "(cached) $ECHO_C" >&6
38838else
38839
38840 cat >conftest.$ac_ext <<_ACEOF
38841/* confdefs.h. */
38842_ACEOF
38843cat confdefs.h >>conftest.$ac_ext
38844cat >>conftest.$ac_ext <<_ACEOF
38845/* end confdefs.h. */
38846
38847int
38848main ()
38849{
38850
38851 #ifndef __INTEL_COMPILER
38852 #error Not icc
38853 #endif
38854
38855 ;
38856 return 0;
38857}
38858_ACEOF
38859rm -f conftest.$ac_objext
38860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38861 (eval $ac_compile) 2>conftest.er1
a848cd7e 38862 ac_status=$?
ac1cb8d3
VS
38863 grep -v '^ *+' conftest.er1 >conftest.err
38864 rm -f conftest.er1
38865 cat conftest.err >&5
a848cd7e
SC
38866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38867 (exit $ac_status); } &&
2cbbc68d
RD
38868 { ac_try='test -z "$ac_c_werror_flag"
38869 || test ! -s conftest.err'
ac1cb8d3
VS
38870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38871 (eval $ac_try) 2>&5
38872 ac_status=$?
38873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38874 (exit $ac_status); }; } &&
38875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38877 (eval $ac_try) 2>&5
38878 ac_status=$?
38879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38880 (exit $ac_status); }; }; then
38881 bakefile_cv_prog_icc=yes
38882else
38883 echo "$as_me: failed program was:" >&5
38884sed 's/^/| /' conftest.$ac_ext >&5
38885
38886bakefile_cv_prog_icc=no
38887
38888fi
ac1cb8d3 38889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38890
38891fi
38892echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38893echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38894 if test "$bakefile_cv_prog_icc" = "yes"; then
38895 PIC_FLAG="-KPIC"
38896 fi
38897 fi
38898 ;;
38899
38900 *-*-solaris2* )
38901 if test "x$GCC" != xyes ; then
38902 SHARED_LD_CC="${CC} -G -o"
38903 SHARED_LD_CXX="${CXX} -G -o"
38904 PIC_FLAG="-KPIC"
38905 fi
38906 ;;
38907
38908 *-*-darwin* )
38909
38910 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38911echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38912if test "${wx_cv_gcc31+set}" = set; then
38913 echo $ECHO_N "(cached) $ECHO_C" >&6
38914else
38915
38916 cat >conftest.$ac_ext <<_ACEOF
38917/* confdefs.h. */
38918_ACEOF
38919cat confdefs.h >>conftest.$ac_ext
38920cat >>conftest.$ac_ext <<_ACEOF
38921/* end confdefs.h. */
38922
38923int
38924main ()
38925{
38926
38927 #if (__GNUC__ < 3) || \
38928 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38929 #error old gcc
38930 #endif
38931
38932 ;
38933 return 0;
38934}
38935_ACEOF
38936rm -f conftest.$ac_objext
38937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38938 (eval $ac_compile) 2>conftest.er1
a848cd7e 38939 ac_status=$?
ac1cb8d3
VS
38940 grep -v '^ *+' conftest.er1 >conftest.err
38941 rm -f conftest.er1
38942 cat conftest.err >&5
a848cd7e
SC
38943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38944 (exit $ac_status); } &&
2cbbc68d
RD
38945 { ac_try='test -z "$ac_c_werror_flag"
38946 || test ! -s conftest.err'
ac1cb8d3
VS
38947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38948 (eval $ac_try) 2>&5
38949 ac_status=$?
38950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951 (exit $ac_status); }; } &&
38952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38954 (eval $ac_try) 2>&5
38955 ac_status=$?
38956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38957 (exit $ac_status); }; }; then
38958
38959 wx_cv_gcc31=yes
38960
38961else
38962 echo "$as_me: failed program was:" >&5
38963sed 's/^/| /' conftest.$ac_ext >&5
38964
38965
38966 wx_cv_gcc31=no
38967
38968
38969fi
ac1cb8d3 38970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38971
38972fi
38973echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38974echo "${ECHO_T}$wx_cv_gcc31" >&6
38975 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38976
38977D='$'
38978cat <<EOF >shared-ld-sh
a848cd7e
SC
38979#!/bin/sh
38980#-----------------------------------------------------------------------------
38981#-- Name: distrib/mac/shared-ld-sh
38982#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38983#-- Author: Gilles Depeyrot
38984#-- Copyright: (c) 2002 Gilles Depeyrot
38985#-- Licence: any use permitted
38986#-----------------------------------------------------------------------------
38987
38988verbose=0
38989args=""
38990objects=""
38991linking_flag="-dynamiclib"
38992
473276a9
VS
38993while test ${D}# -gt 0; do
38994 case ${D}1 in
a848cd7e
SC
38995
38996 -v)
38997 verbose=1
38998 ;;
38999
39000 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39001 # collect these options and values
473276a9 39002 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39003 shift
39004 ;;
39005
39006 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39007 # collect these options
473276a9 39008 args="${D}{args} ${D}1"
a848cd7e
SC
39009 ;;
39010
39011 -dynamiclib|-bundle)
473276a9 39012 linking_flag="${D}1"
a848cd7e
SC
39013 ;;
39014
39015 -*)
473276a9 39016 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39017 exit 1
39018 ;;
39019
39020 *.o | *.a | *.dylib)
39021 # collect object files
473276a9 39022 objects="${D}{objects} ${D}1"
a848cd7e
SC
39023 ;;
39024
39025 *)
473276a9 39026 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39027 exit 1
39028 ;;
39029
39030 esac
39031 shift
39032done
39033
39034#
39035# Link one module containing all the others
39036#
473276a9
VS
39037if test ${D}{verbose} = 1; then
39038 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39039fi
473276a9
VS
39040c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39041status=${D}?
39042if test ${D}{status} != 0; then
39043 exit ${D}{status}
a848cd7e
SC
39044fi
39045
39046#
39047# Link the shared library from the single module created
39048#
473276a9
VS
39049if test ${D}{verbose} = 1; then
39050 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39051fi
473276a9
VS
39052c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39053status=${D}?
39054if test ${D}{status} != 0; then
39055 exit ${D}{status}
a848cd7e
SC
39056fi
39057
39058#
39059# Remove intermediate module
39060#
473276a9 39061rm -f master.${D}${D}.o
a848cd7e
SC
39062
39063exit 0
39064EOF
473276a9 39065
a848cd7e
SC
39066 chmod +x shared-ld-sh
39067
39068 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39069 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39070 SHARED_LD_CXX="$SHARED_LD_CC"
39071 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39072 else
39073 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39074 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39075 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39076 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39077 fi
39078
39079 PIC_FLAG="-dynamic -fPIC"
39080 ;;
39081
39082 *-*-aix* )
39083 if test "x$GCC" != "xyes"; then
39084 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39085set dummy makeC++SharedLib; ac_word=$2
39086echo "$as_me:$LINENO: checking for $ac_word" >&5
39087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39088if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39089 echo $ECHO_N "(cached) $ECHO_C" >&6
39090else
39091 if test -n "$AIX_CXX_LD"; then
39092 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39093else
39094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39095for as_dir in $PATH
39096do
39097 IFS=$as_save_IFS
39098 test -z "$as_dir" && as_dir=.
39099 for ac_exec_ext in '' $ac_executable_extensions; do
39100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39101 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39103 break 2
39104 fi
39105done
39106done
39107
39108 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39109fi
39110fi
39111AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39112if test -n "$AIX_CXX_LD"; then
39113 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39114echo "${ECHO_T}$AIX_CXX_LD" >&6
39115else
39116 echo "$as_me:$LINENO: result: no" >&5
39117echo "${ECHO_T}no" >&6
39118fi
39119
39120 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39121 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39122 fi
39123 ;;
39124
39125 *-*-beos* )
39126 SHARED_LD_CC="${LD} -shared -o"
39127 SHARED_LD_CXX="${LD} -shared -o"
39128 ;;
39129
39130 *-*-irix* )
39131 if test "x$GCC" != "xyes"; then
39132 PIC_FLAG="-KPIC"
39133 fi
39134 ;;
39135
39136 *-*-cygwin* | *-*-mingw32* )
39137 PIC_FLAG=""
39138 ;;
39139
39140 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39141 SHARED_LD_CC="`pwd`/dllar.sh -o"
39142 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39143 PIC_FLAG=""
473276a9
VS
39144
39145D='$'
39146cat <<EOF >dllar.sh
39147#!/bin/sh
39148#
39149# dllar - a tool to build both a .dll and an .a file
39150# from a set of object (.o) files for EMX/OS2.
39151#
39152# Written by Andrew Zabolotny, bit@freya.etu.ru
39153# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39154#
39155# This script will accept a set of files on the command line.
39156# All the public symbols from the .o files will be exported into
39157# a .DEF file, then linker will be run (through gcc) against them to
39158# build a shared library consisting of all given .o files. All libraries
39159# (.a) will be first decompressed into component .o files then act as
39160# described above. You can optionally give a description (-d "description")
39161# which will be put into .DLL. To see the list of accepted options (as well
39162# as command-line format) simply run this program without options. The .DLL
39163# is built to be imported by name (there is no guarantee that new versions
39164# of the library you build will have same ordinals for same symbols).
39165#
39166# dllar is free software; you can redistribute it and/or modify
39167# it under the terms of the GNU General Public License as published by
39168# the Free Software Foundation; either version 2, or (at your option)
39169# any later version.
39170#
39171# dllar is distributed in the hope that it will be useful,
39172# but WITHOUT ANY WARRANTY; without even the implied warranty of
39173# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39174# GNU General Public License for more details.
39175#
39176# You should have received a copy of the GNU General Public License
39177# along with dllar; see the file COPYING. If not, write to the Free
39178# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39179# 02111-1307, USA.
39180
39181# To successfuly run this program you will need:
39182# - Current drive should have LFN support (HPFS, ext2, network, etc)
39183# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39184# - gcc
39185# (used to build the .dll)
39186# - emxexp
39187# (used to create .def file from .o files)
39188# - emximp
39189# (used to create .a file from .def file)
39190# - GNU text utilites (cat, sort, uniq)
39191# used to process emxexp output
39192# - GNU file utilities (mv, rm)
39193# - GNU sed
39194# - lxlite (optional, see flag below)
39195# (used for general .dll cleanup)
39196#
39197
39198flag_USE_LXLITE=1;
39199
39200#
39201# helper functions
39202# basnam, variant of basename, which does _not_ remove the path, _iff_
39203# second argument (suffix to remove) is given
39204basnam(){
39205 case ${D}# in
39206 1)
39207 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39208 ;;
39209 2)
39210 echo ${D}1 | sed 's/'${D}2'${D}//'
39211 ;;
39212 *)
39213 echo "error in basnam ${D}*"
39214 exit 8
39215 ;;
39216 esac
39217}
39218
39219# Cleanup temporary files and output
39220CleanUp() {
39221 cd ${D}curDir
39222 for i in ${D}inputFiles ; do
39223 case ${D}i in
39224 *!)
39225 rm -rf \`basnam ${D}i !\`
39226 ;;
39227 *)
39228 ;;
39229 esac
39230 done
39231
39232 # Kill result in case of failure as there is just to many stupid make/nmake
39233 # things out there which doesn't do this.
2057db16 39234 if [] ${D}# -eq 0 []; then
473276a9
VS
39235 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39236 fi
39237}
39238
39239# Print usage and exit script with rc=1.
39240PrintHelp() {
2057db16
VS
39241 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
39242 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
39243 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
39244 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
39245 echo ' []*.o[] []*.a[]'
473276a9
VS
39246 echo '*> "output_file" should have no extension.'
39247 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39248 echo ' The import library name is derived from this and is set to "name".a,'
39249 echo ' unless overridden by -import'
39250 echo '*> "importlib_name" should have no extension.'
39251 echo ' If it has the .o, or .a extension, it is automatically removed.'
39252 echo ' This name is used as the import library name and may be longer and'
39253 echo ' more descriptive than the DLL name which has to follow the old '
39254 echo ' 8.3 convention of FAT.'
39255 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39256 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39257 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
39258 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
39259 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
39260 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39261 echo ' If the last character of a symbol is "*", all symbols beginning'
39262 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 39263 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39264 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 39265 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 39266 echo ' C runtime DLLs.'
2057db16 39267 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39268 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39269 echo ' unchanged to GCC at the end of command line.'
39270 echo '*> If you create a DLL from a library and you do not specify -o,'
39271 echo ' the basename for DLL and import library will be set to library name,'
39272 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39273 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39274 echo ' library will be renamed into gcc_s.a.'
39275 echo '--------'
39276 echo 'Example:'
39277 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39278 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39279 CleanUp
39280 exit 1
39281}
39282
39283# Execute a command.
39284# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39285# @Uses Whatever CleanUp() uses.
39286doCommand() {
39287 echo "${D}*"
39288 eval ${D}*
39289 rcCmd=${D}?
39290
2057db16 39291 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
39292 echo "command failed, exit code="${D}rcCmd
39293 CleanUp
39294 exit ${D}rcCmd
39295 fi
39296}
39297
39298# main routine
39299# setup globals
39300cmdLine=${D}*
39301outFile=""
39302outimpFile=""
39303inputFiles=""
39304description=""
39305CC=gcc.exe
39306CFLAGS="-s -Zcrtdll"
39307EXTRA_CFLAGS=""
39308EXPORT_BY_ORDINALS=0
39309exclude_symbols=""
39310library_flags=""
39311curDir=\`pwd\`
39312curDirS=curDir
39313case ${D}curDirS in
39314*/)
39315 ;;
39316*)
39317 curDirS=${D}{curDirS}"/"
39318 ;;
39319esac
39320# Parse commandline
39321libsToLink=0
2057db16 39322while [] ${D}1 []; do
473276a9
VS
39323 case ${D}1 in
39324 -ord*)
39325 EXPORT_BY_ORDINALS=1;
39326 ;;
39327 -o*)
39328 shift
39329 outFile=${D}1
39330 ;;
39331 -i*)
39332 shift
39333 outimpFile=${D}1
39334 ;;
39335 -d*)
39336 shift
39337 description=${D}1
39338 ;;
39339 -f*)
39340 shift
39341 CFLAGS=${D}1
39342 ;;
39343 -c*)
39344 shift
39345 CC=${D}1
39346 ;;
39347 -h*)
39348 PrintHelp
39349 ;;
39350 -ex*)
39351 shift
39352 exclude_symbols=${D}{exclude_symbols}${D}1" "
39353 ;;
39354 -libf*)
39355 shift
39356 library_flags=${D}{library_flags}${D}1" "
39357 ;;
39358 -nocrt*)
39359 CFLAGS="-s"
39360 ;;
39361 -nolxl*)
39362 flag_USE_LXLITE=0
39363 ;;
39364 -* | /*)
39365 case ${D}1 in
39366 -L* | -l*)
39367 libsToLink=1
39368 ;;
39369 *)
39370 ;;
39371 esac
39372 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39373 ;;
39374 *)
39375 found=0;
2057db16 39376 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39377 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39378 else
39379 for file in ${D}1 ; do
2057db16 39380 if [] -f ${D}file []; then
473276a9
VS
39381 inputFiles="${D}{inputFiles} ${D}file"
39382 found=1
39383 fi
39384 done
2057db16 39385 if [] ${D}found -eq 0 []; then
473276a9
VS
39386 echo "ERROR: No file(s) found: "${D}1
39387 exit 8
39388 fi
39389 fi
39390 ;;
39391 esac
39392 shift
39393done # iterate cmdline words
39394
39395#
2057db16 39396if [] -z "${D}inputFiles" []; then
473276a9
VS
39397 echo "dllar: no input files"
39398 PrintHelp
39399fi
39400
39401# Now extract all .o files from .a files
39402newInputFiles=""
39403for file in ${D}inputFiles ; do
39404 case ${D}file in
39405 *.a | *.lib)
39406 case ${D}file in
39407 *.a)
39408 suffix=".a"
39409 AR="ar"
39410 ;;
39411 *.lib)
39412 suffix=".lib"
39413 AR="emxomfar"
39414 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39415 ;;
39416 *)
39417 ;;
39418 esac
39419 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39420 mkdir ${D}dirname
2057db16 39421 if [] ${D}? -ne 0 []; then
473276a9
VS
39422 echo "Failed to create subdirectory ./${D}dirname"
39423 CleanUp
39424 exit 8;
39425 fi
39426 # Append '!' to indicate archive
39427 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39428 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39429 cd ${D}curDir
39430 found=0;
39431 for subfile in ${D}dirname/*.o* ; do
2057db16 39432 if [] -f ${D}subfile []; then
473276a9 39433 found=1
2057db16 39434 if [] -s ${D}subfile []; then
473276a9
VS
39435 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39436 newInputFiles="${D}newInputFiles ${D}subfile"
39437 fi
39438 fi
39439 done
2057db16 39440 if [] ${D}found -eq 0 []; then
473276a9
VS
39441 echo "WARNING: there are no files in archive \'${D}file\'"
39442 fi
39443 ;;
39444 *)
39445 newInputFiles="${D}{newInputFiles} ${D}file"
39446 ;;
39447 esac
39448done
39449inputFiles="${D}newInputFiles"
39450
39451# Output filename(s).
39452do_backup=0;
2057db16 39453if [] -z ${D}outFile []; then
473276a9
VS
39454 do_backup=1;
39455 set outFile ${D}inputFiles; outFile=${D}2
39456fi
39457
39458# If it is an archive, remove the '!' and the '_%' suffixes
39459case ${D}outFile in
39460*_%!)
39461 outFile=\`basnam ${D}outFile _%!\`
39462 ;;
39463*)
39464 ;;
39465esac
39466case ${D}outFile in
39467*.dll)
39468 outFile=\`basnam ${D}outFile .dll\`
39469 ;;
39470*.DLL)
39471 outFile=\`basnam ${D}outFile .DLL\`
39472 ;;
39473*.o)
39474 outFile=\`basnam ${D}outFile .o\`
39475 ;;
39476*.obj)
39477 outFile=\`basnam ${D}outFile .obj\`
39478 ;;
39479*.a)
39480 outFile=\`basnam ${D}outFile .a\`
39481 ;;
39482*.lib)
39483 outFile=\`basnam ${D}outFile .lib\`
39484 ;;
39485*)
39486 ;;
39487esac
39488case ${D}outimpFile in
39489*.a)
39490 outimpFile=\`basnam ${D}outimpFile .a\`
39491 ;;
39492*.lib)
39493 outimpFile=\`basnam ${D}outimpFile .lib\`
39494 ;;
39495*)
39496 ;;
39497esac
2057db16 39498if [] -z ${D}outimpFile []; then
473276a9
VS
39499 outimpFile=${D}outFile
39500fi
39501defFile="${D}{outFile}.def"
39502arcFile="${D}{outimpFile}.a"
39503arcFile2="${D}{outimpFile}.lib"
39504dllFile="${D}outFile"
39505# Add suffix to dllFile later, first we need a version to use as
39506# name in .def file.
39507
2057db16
VS
39508if [] ${D}do_backup -ne 0 [] ; then
39509 if [] -f ${D}arcFile [] ; then
473276a9
VS
39510 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39511 fi
2057db16 39512 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39513 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39514 fi
39515fi
39516
39517# Extract public symbols from all the object files.
39518tmpdefFile=${D}{defFile}_%
39519rm -f ${D}tmpdefFile
39520for file in ${D}inputFiles ; do
39521 case ${D}file in
39522 *!)
39523 ;;
39524 *)
39525 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39526 ;;
39527 esac
39528done
39529
39530# Create the def file.
39531rm -f ${D}defFile
39532echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39533dllFile="${D}dllFile.dll"
2057db16 39534if [] -n ${D}description []; then
473276a9
VS
39535 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39536fi
39537echo "EXPORTS" >> ${D}defFile
39538
39539doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39540grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39541
39542# Checks if the export is ok or not.
39543for word in ${D}exclude_symbols; do
39544 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39545 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39546done
39547
39548
2057db16 39549if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39550 sed "=" < ${D}tmpdefFile | \
39551 sed '
39552 N
39553 : loop
2057db16 39554 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39555 t loop
39556 ' > ${D}{tmpdefFile}%
39557 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39558else
39559 rm -f ${D}{tmpdefFile}%
39560fi
39561cat ${D}tmpdefFile >> ${D}defFile
39562rm -f ${D}tmpdefFile
39563
39564# Do linking, create implib, and apply lxlite.
39565gccCmdl="";
39566for file in ${D}inputFiles ; do
39567 case ${D}file in
39568 *!)
39569 ;;
39570 *)
39571 gccCmdl="${D}gccCmdl ${D}file"
39572 ;;
39573 esac
39574done
39575doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39576touch "${D}{outFile}.dll"
39577
39578doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39579if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39580 add_flags="";
2057db16 39581 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39582 add_flags="-ynd"
39583 fi
39584 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39585fi
39586doCommand "emxomf -s -l ${D}arcFile"
39587
39588# Successful exit.
39589CleanUp 1
39590exit 0
39591EOF
39592
39593 chmod +x dllar.sh
a848cd7e
SC
39594 ;;
39595
39596 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39597 *-*-sunos4* | \
39598 *-*-osf* | \
39599 *-*-dgux5* | \
39600 *-*-sysv5* )
39601 ;;
39602
39603 *)
39604 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39605echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39606 { (exit 1); exit 1; }; }
39607 esac
39608
2057db16
VS
39609 if test "x$PIC_FLAG" != "x" ; then
39610 PIC_FLAG="$PIC_FLAG -DPIC"
39611 fi
39612
a848cd7e
SC
39613 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39614 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39615 fi
39616 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39617 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39618 fi
39619
39620
39621
39622
39623
39624
39625
39626
39627 USE_SOVERSION=0
39628 USE_SOVERLINUX=0
39629 USE_SOVERSOLARIS=0
39630 USE_SOSYMLINKS=0
39631 USE_MACVERSION=0
39632 SONAME_FLAG=
39633
39634 case "${BAKEFILE_HOST}" in
39635 *-*-linux* )
39636 SONAME_FLAG="-Wl,-soname,"
39637 USE_SOVERSION=1
39638 USE_SOVERLINUX=1
39639 USE_SOSYMLINKS=1
39640 ;;
39641
39642 *-*-solaris2* )
39643 SONAME_FLAG="-h "
39644 USE_SOVERSION=1
39645 USE_SOVERSOLARIS=1
39646 USE_SOSYMLINKS=1
39647 ;;
39648
39649 *-*-darwin* )
39650 USE_MACVERSION=1
39651 USE_SOVERSION=1
39652 USE_SOSYMLINKS=1
39653 ;;
39654 esac
39655
39656
39657
39658
39659
39660
39661
39662
39663
39664 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39665echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39666 DEPS_TRACKING=0
39667
39668 if test "x$GCC" = "xyes"; then
39669 DEPSMODE=gcc
39670 DEPS_TRACKING=1
39671 case "${BAKEFILE_HOST}" in
39672 powerpc-*-darwin* )
39673 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39674 ;;
39675 * )
39676 DEPSFLAG_GCC="-MMD"
39677 ;;
39678 esac
39679 echo "$as_me:$LINENO: result: gcc" >&5
39680echo "${ECHO_T}gcc" >&6
39681 else
39682 echo "$as_me:$LINENO: result: none" >&5
39683echo "${ECHO_T}none" >&6
39684 fi
39685
39686 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39687
39688D='$'
39689cat <<EOF >bk-deps
a848cd7e
SC
39690#!/bin/sh
39691
39692# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39693# script. It is used to track C/C++ files dependencies in portable way.
39694#
39695# Permission is given to use this file in any way.
39696
473276a9 39697DEPSMODE=${DEPSMODE}
a848cd7e 39698DEPSDIR=.deps
473276a9 39699DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39700
473276a9 39701mkdir -p ${D}DEPSDIR
a848cd7e 39702
473276a9
VS
39703if test ${D}DEPSMODE = gcc ; then
39704 ${D}* ${D}{DEPSFLAG_GCC}
39705 status=${D}?
39706 if test ${D}{status} != 0 ; then
39707 exit ${D}{status}
a848cd7e
SC
39708 fi
39709 # move created file to the location we want it in:
473276a9
VS
39710 while test ${D}# -gt 0; do
39711 case "${D}1" in
a848cd7e
SC
39712 -o )
39713 shift
473276a9 39714 objfile=${D}1
a848cd7e
SC
39715 ;;
39716 -* )
39717 ;;
39718 * )
473276a9 39719 srcfile=${D}1
a848cd7e
SC
39720 ;;
39721 esac
39722 shift
39723 done
473276a9
VS
39724 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39725 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39726 if test -f ${D}depfile ; then
39727 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39728 rm -f ${D}depfile
a848cd7e 39729 else
473276a9
VS
39730 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39731 if test -f ${D}depfile ; then
39732 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39733 rm -f ${D}depfile
a848cd7e
SC
39734 fi
39735 fi
39736 exit 0
39737else
473276a9
VS
39738 ${D}*
39739 exit ${D}?
a848cd7e
SC
39740fi
39741EOF
473276a9 39742
a848cd7e
SC
39743 chmod +x bk-deps
39744 fi
39745
39746
39747
39748
39749 RESCOMP=
39750 SETFILE=
39751
39752 case ${BAKEFILE_HOST} in
39753 *-*-cygwin* | *-*-mingw32* )
39754 if test "$build" != "$host" ; then
39755 RESCOMP=$host_alias-windres
39756 else
39757 # Extract the first word of "windres", so it can be a program name with args.
39758set dummy windres; ac_word=$2
39759echo "$as_me:$LINENO: checking for $ac_word" >&5
39760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39761if test "${ac_cv_prog_RESCOMP+set}" = set; then
39762 echo $ECHO_N "(cached) $ECHO_C" >&6
39763else
39764 if test -n "$RESCOMP"; then
39765 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39766else
39767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39768for as_dir in $PATH
39769do
39770 IFS=$as_save_IFS
39771 test -z "$as_dir" && as_dir=.
39772 for ac_exec_ext in '' $ac_executable_extensions; do
39773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39774 ac_cv_prog_RESCOMP="windres"
39775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39776 break 2
39777 fi
39778done
39779done
39780
39781 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39782fi
39783fi
39784RESCOMP=$ac_cv_prog_RESCOMP
39785if test -n "$RESCOMP"; then
39786 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39787echo "${ECHO_T}$RESCOMP" >&6
39788else
39789 echo "$as_me:$LINENO: result: no" >&5
39790echo "${ECHO_T}no" >&6
39791fi
39792
39793 fi
39794 ;;
39795
39796 *-*-darwin* )
39797 # Extract the first word of "Rez", so it can be a program name with args.
39798set dummy Rez; ac_word=$2
39799echo "$as_me:$LINENO: checking for $ac_word" >&5
39800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39801if test "${ac_cv_prog_RESCOMP+set}" = set; then
39802 echo $ECHO_N "(cached) $ECHO_C" >&6
39803else
39804 if test -n "$RESCOMP"; then
39805 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39806else
39807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39808for as_dir in $PATH
39809do
39810 IFS=$as_save_IFS
39811 test -z "$as_dir" && as_dir=.
39812 for ac_exec_ext in '' $ac_executable_extensions; do
39813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39814 ac_cv_prog_RESCOMP="Rez"
39815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39816 break 2
39817 fi
39818done
39819done
39820
39821 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39822fi
39823fi
39824RESCOMP=$ac_cv_prog_RESCOMP
39825if test -n "$RESCOMP"; then
39826 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39827echo "${ECHO_T}$RESCOMP" >&6
39828else
39829 echo "$as_me:$LINENO: result: no" >&5
39830echo "${ECHO_T}no" >&6
39831fi
39832
39833 # Extract the first word of "SetFile", so it can be a program name with args.
39834set dummy SetFile; ac_word=$2
39835echo "$as_me:$LINENO: checking for $ac_word" >&5
39836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39837if test "${ac_cv_prog_SETFILE+set}" = set; then
39838 echo $ECHO_N "(cached) $ECHO_C" >&6
39839else
39840 if test -n "$SETFILE"; then
39841 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39842else
39843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39844for as_dir in $PATH
39845do
39846 IFS=$as_save_IFS
39847 test -z "$as_dir" && as_dir=.
39848 for ac_exec_ext in '' $ac_executable_extensions; do
39849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39850 ac_cv_prog_SETFILE="SetFile"
39851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39852 break 2
39853 fi
39854done
39855done
39856
39857 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39858fi
39859fi
39860SETFILE=$ac_cv_prog_SETFILE
39861if test -n "$SETFILE"; then
39862 echo "$as_me:$LINENO: result: $SETFILE" >&5
39863echo "${ECHO_T}$SETFILE" >&6
39864else
39865 echo "$as_me:$LINENO: result: no" >&5
39866echo "${ECHO_T}no" >&6
39867fi
39868
39869 ;;
39870 esac
39871
39872
39873
39874
39875
2057db16 39876 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39877
dcc1b6ad 39878
a49baeab 39879
9f45f08e 39880BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39881
646b6ec1 39882
74b84332 39883
a848cd7e
SC
39884 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39885if test "${enable_precomp_headers+set}" = set; then
39886 enableval="$enable_precomp_headers"
39887 bk_use_pch="$enableval"
39888fi;
39889
39890 GCC_PCH=0
39891
39892 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39893 if test "x$GCC" = "xyes"; then
39894 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39895echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39896 cat >conftest.$ac_ext <<_ACEOF
39897/* confdefs.h. */
39898_ACEOF
39899cat confdefs.h >>conftest.$ac_ext
39900cat >>conftest.$ac_ext <<_ACEOF
39901/* end confdefs.h. */
39902
39903int
39904main ()
39905{
39906
39907 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39908 #error "no pch support"
39909 #endif
39910 #if (__GNUC__ < 3)
39911 #error "no pch support"
39912 #endif
39913 #if (__GNUC__ == 3) && \
39914 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39915 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39916 #error "no pch support"
39917 #endif
39918
39919 ;
39920 return 0;
39921}
39922_ACEOF
39923rm -f conftest.$ac_objext
39924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39925 (eval $ac_compile) 2>conftest.er1
a848cd7e 39926 ac_status=$?
ac1cb8d3
VS
39927 grep -v '^ *+' conftest.er1 >conftest.err
39928 rm -f conftest.er1
39929 cat conftest.err >&5
a848cd7e
SC
39930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931 (exit $ac_status); } &&
2cbbc68d
RD
39932 { ac_try='test -z "$ac_c_werror_flag"
39933 || test ! -s conftest.err'
ac1cb8d3
VS
39934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39935 (eval $ac_try) 2>&5
39936 ac_status=$?
39937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938 (exit $ac_status); }; } &&
39939 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39941 (eval $ac_try) 2>&5
39942 ac_status=$?
39943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944 (exit $ac_status); }; }; then
39945
39946 echo "$as_me:$LINENO: result: yes" >&5
39947echo "${ECHO_T}yes" >&6
a848cd7e
SC
39948 GCC_PCH=1
39949
39950else
39951 echo "$as_me: failed program was:" >&5
39952sed 's/^/| /' conftest.$ac_ext >&5
39953
39954
39955 echo "$as_me:$LINENO: result: no" >&5
39956echo "${ECHO_T}no" >&6
39957
39958fi
ac1cb8d3 39959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39960 if test $GCC_PCH = 1 ; then
39961 cat <<EOF >bk-make-pch
39962#!/bin/sh
39963
39964# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39965# script. It is used to generated precompiled headers.
39966#
39967# Permission is given to use this file in any way.
39968
39969outfile="\${1}"
39970header="\${2}"
39971shift
39972shift
39973
39974compiler=
39975headerfile=
39976while test \${#} -gt 0; do
39977 case "\${1}" in
39978 -I* )
39979 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39980 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39981 headerfile="\${incdir}/\${header}"
39982 fi
39983 ;;
39984 esac
39985 compiler="\${compiler} \${1}"
39986 shift
39987done
39988
39989if test "x\${headerfile}" = "x" ; then
39990 echo "error: can't find header \${header} in include paths" >2
39991else
39992 if test -f \${outfile} ; then
39993 rm -f \${outfile}
39994 else
39995 mkdir -p \`dirname \${outfile}\`
39996 fi
39997 depsfile=".deps/\`basename \${outfile}\`.d"
39998 mkdir -p .deps
39999 # can do this because gcc is >= 3.4:
40000 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40001 exit \${?}
40002fi
40003EOF
40004 chmod +x bk-make-pch
40005 fi
40006 fi
40007 fi
40008
40009
40010
40011
40012
dcc1b6ad
VS
40013
40014
40015 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40016if test "${enable_precomp_headers+set}" = set; then
40017 enableval="$enable_precomp_headers"
40018 bk_use_pch="$enableval"
40019fi;
40020
40021 GCC_PCH=0
40022
40023 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40024 if test "x$GCC" = "xyes"; then
40025 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40026echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40027 cat >conftest.$ac_ext <<_ACEOF
40028/* confdefs.h. */
40029_ACEOF
40030cat confdefs.h >>conftest.$ac_ext
40031cat >>conftest.$ac_ext <<_ACEOF
40032/* end confdefs.h. */
40033
40034int
40035main ()
40036{
40037
40038 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40039 #error "no pch support"
40040 #endif
40041 #if (__GNUC__ < 3)
40042 #error "no pch support"
40043 #endif
40044 #if (__GNUC__ == 3) && \
40045 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40046 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40047 #error "no pch support"
40048 #endif
40049
40050 ;
40051 return 0;
40052}
40053_ACEOF
40054rm -f conftest.$ac_objext
40055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40056 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 40057 ac_status=$?
ac1cb8d3
VS
40058 grep -v '^ *+' conftest.er1 >conftest.err
40059 rm -f conftest.er1
40060 cat conftest.err >&5
dcc1b6ad
VS
40061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40062 (exit $ac_status); } &&
2cbbc68d
RD
40063 { ac_try='test -z "$ac_c_werror_flag"
40064 || test ! -s conftest.err'
ac1cb8d3
VS
40065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40066 (eval $ac_try) 2>&5
40067 ac_status=$?
40068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40069 (exit $ac_status); }; } &&
40070 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
40071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40072 (eval $ac_try) 2>&5
40073 ac_status=$?
40074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40075 (exit $ac_status); }; }; then
40076
40077 echo "$as_me:$LINENO: result: yes" >&5
40078echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
40079 GCC_PCH=1
40080
40081else
40082 echo "$as_me: failed program was:" >&5
40083sed 's/^/| /' conftest.$ac_ext >&5
40084
40085
40086 echo "$as_me:$LINENO: result: no" >&5
40087echo "${ECHO_T}no" >&6
40088
40089fi
ac1cb8d3 40090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
40091 if test $GCC_PCH = 1 ; then
40092 cat <<EOF >bk-make-pch
40093#!/bin/sh
40094
40095# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40096# script. It is used to generated precompiled headers.
40097#
40098# Permission is given to use this file in any way.
40099
40100outfile="\${1}"
40101header="\${2}"
40102shift
40103shift
40104
40105compiler=
40106headerfile=
40107while test \${#} -gt 0; do
40108 case "\${1}" in
40109 -I* )
40110 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40111 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40112 headerfile="\${incdir}/\${header}"
40113 fi
40114 ;;
40115 esac
40116 compiler="\${compiler} \${1}"
40117 shift
40118done
40119
40120if test "x\${headerfile}" = "x" ; then
40121 echo "error: can't find header \${header} in include paths" >2
40122else
40123 if test -f \${outfile} ; then
40124 rm -f \${outfile}
40125 else
40126 mkdir -p \`dirname \${outfile}\`
40127 fi
40128 depsfile=".deps/\`basename \${outfile}\`.d"
40129 mkdir -p .deps
40130 # can do this because gcc is >= 3.4:
40131 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40132 exit \${?}
40133fi
40134EOF
40135 chmod +x bk-make-pch
40136 fi
40137 fi
40138 fi
40139
40140
40141
a848cd7e
SC
40142 COND_BUILD_DEBUG="#"
40143 if test "x$BUILD" = "xdebug" ; then
40144 COND_BUILD_DEBUG=""
40145 fi
40146
40147 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40148 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40149 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40150 fi
40151
40152 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40153 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40154 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40155 fi
40156
40157 COND_BUILD_DEBUG_UNICODE_0="#"
40158 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40159 COND_BUILD_DEBUG_UNICODE_0=""
40160 fi
40161
40162 COND_BUILD_DEBUG_UNICODE_1="#"
40163 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40164 COND_BUILD_DEBUG_UNICODE_1=""
40165 fi
40166
40167 COND_BUILD_RELEASE="#"
40168 if test "x$BUILD" = "xrelease" ; then
40169 COND_BUILD_RELEASE=""
40170 fi
40171
40172 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40173 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40174 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40175 fi
40176
40177 COND_BUILD_RELEASE_UNICODE_0="#"
40178 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40179 COND_BUILD_RELEASE_UNICODE_0=""
40180 fi
40181
40182 COND_BUILD_RELEASE_UNICODE_1="#"
40183 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40184 COND_BUILD_RELEASE_UNICODE_1=""
40185 fi
40186
40187 COND_DEBUG_FLAG_1="#"
40188 if test "x$DEBUG_FLAG" = "x1" ; then
40189 COND_DEBUG_FLAG_1=""
40190 fi
40191
40192 COND_DEBUG_INFO_0="#"
40193 if test "x$DEBUG_INFO" = "x0" ; then
40194 COND_DEBUG_INFO_0=""
40195 fi
40196
40197 COND_DEBUG_INFO_1="#"
40198 if test "x$DEBUG_INFO" = "x1" ; then
40199 COND_DEBUG_INFO_1=""
40200 fi
40201
40202 COND_DEPS_TRACKING_0="#"
40203 if test "x$DEPS_TRACKING" = "x0" ; then
40204 COND_DEPS_TRACKING_0=""
40205 fi
40206
40207 COND_DEPS_TRACKING_1="#"
40208 if test "x$DEPS_TRACKING" = "x1" ; then
40209 COND_DEPS_TRACKING_1=""
40210 fi
40211
40212 COND_GCC_PCH_1="#"
40213 if test "x$GCC_PCH" = "x1" ; then
40214 COND_GCC_PCH_1=""
40215 fi
40216
40217 COND_MONOLITHIC_0="#"
40218 if test "x$MONOLITHIC" = "x0" ; then
40219 COND_MONOLITHIC_0=""
40220 fi
40221
40222 COND_MONOLITHIC_0_SHARED_0="#"
40223 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40224 COND_MONOLITHIC_0_SHARED_0=""
40225 fi
40226
40227 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40228 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40229 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40230 fi
40231
40232 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40233 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40234 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40235 fi
40236
40237 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40238 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40239 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40240 fi
40241
40242 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40243 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40244 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40245 fi
40246
ceec2216
RL
40247 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40248 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40249 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40250 fi
40251
a848cd7e
SC
40252 COND_MONOLITHIC_0_SHARED_1="#"
40253 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40254 COND_MONOLITHIC_0_SHARED_1=""
40255 fi
40256
40257 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40258 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40259 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40260 fi
40261
40262 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40263 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40264 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40265 fi
40266
40267 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40268 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40269 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40270 fi
40271
40272 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40273 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40274 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40275 fi
40276
ceec2216
RL
40277 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40278 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40279 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40280 fi
40281
a848cd7e
SC
40282 COND_MONOLITHIC_0_USE_ODBC_1="#"
40283 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40284 COND_MONOLITHIC_0_USE_ODBC_1=""
40285 fi
40286
40287 COND_MONOLITHIC_1="#"
40288 if test "x$MONOLITHIC" = "x1" ; then
40289 COND_MONOLITHIC_1=""
40290 fi
40291
40292 COND_MONOLITHIC_1_SHARED_0="#"
40293 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40294 COND_MONOLITHIC_1_SHARED_0=""
40295 fi
40296
40297 COND_MONOLITHIC_1_SHARED_1="#"
40298 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40299 COND_MONOLITHIC_1_SHARED_1=""
40300 fi
40301
40302 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40303 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40304 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40305 fi
40306
40307 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40308 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40309 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40310 fi
40311
40312 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40313 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40314 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40315 fi
40316
40317 COND_PLATFORM_MACOSX_1="#"
40318 if test "x$PLATFORM_MACOSX" = "x1" ; then
40319 COND_PLATFORM_MACOSX_1=""
40320 fi
40321
a30f955f
VS
40322 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40323 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40324 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40325 fi
40326
a848cd7e
SC
40327 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40328 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40329 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40330 fi
40331
40332 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40333 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40334 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40335 fi
40336
40337 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40338 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40339 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40340 fi
40341
ebee3cd0
VS
40342 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40343 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40344 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40345 fi
40346
40347 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40348 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40349 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40350 fi
40351
a848cd7e
SC
40352 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40353 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40354 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40355 fi
40356
40357 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40358 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40359 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40360 fi
40361
b48a2016
DE
40362 COND_PLATFORM_MACOS_1="#"
40363 if test "x$PLATFORM_MACOS" = "x1" ; then
40364 COND_PLATFORM_MACOS_1=""
40365 fi
40366
a848cd7e
SC
40367 COND_PLATFORM_MAC_1="#"
40368 if test "x$PLATFORM_MAC" = "x1" ; then
40369 COND_PLATFORM_MAC_1=""
40370 fi
40371
40372 COND_PLATFORM_OS2_1="#"
40373 if test "x$PLATFORM_OS2" = "x1" ; then
40374 COND_PLATFORM_OS2_1=""
40375 fi
40376
40377 COND_PLATFORM_UNIX_0="#"
40378 if test "x$PLATFORM_UNIX" = "x0" ; then
40379 COND_PLATFORM_UNIX_0=""
40380 fi
40381
40382 COND_PLATFORM_UNIX_1="#"
40383 if test "x$PLATFORM_UNIX" = "x1" ; then
40384 COND_PLATFORM_UNIX_1=""
40385 fi
40386
40387 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40388 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40389 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40390 fi
40391
40392 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40393 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40394 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40395 fi
40396
40397 COND_PLATFORM_WIN32_0="#"
40398 if test "x$PLATFORM_WIN32" = "x0" ; then
40399 COND_PLATFORM_WIN32_0=""
40400 fi
40401
40402 COND_PLATFORM_WIN32_1="#"
40403 if test "x$PLATFORM_WIN32" = "x1" ; then
40404 COND_PLATFORM_WIN32_1=""
40405 fi
40406
40407 COND_SHARED_0="#"
40408 if test "x$SHARED" = "x0" ; then
40409 COND_SHARED_0=""
40410 fi
40411
ceec2216
RL
40412 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40413 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40414 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40415 fi
40416
40417 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40418 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40419 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40420 fi
40421
40422 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40423 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40424 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40425 fi
40426
a848cd7e
SC
40427 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40428 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40429 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40430 fi
40431
40432 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40433 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40434 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40435 fi
40436
40437 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40438 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40439 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40440 fi
40441
40442 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40443 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40444 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40445 fi
40446
40447 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40448 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40449 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40450 fi
40451
40452 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40453 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40454 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40455 fi
40456
40457 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40458 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40459 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40460 fi
40461
40462 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40463 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40464 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40465 fi
40466
40467 COND_SHARED_1="#"
40468 if test "x$SHARED" = "x1" ; then
40469 COND_SHARED_1=""
40470 fi
40471
40472 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40473 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40474 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40475 fi
40476
a30f955f
VS
40477 COND_TOOLKIT_="#"
40478 if test "x$TOOLKIT" = "x" ; then
40479 COND_TOOLKIT_=""
40480 fi
40481
a848cd7e
SC
40482 COND_TOOLKIT_COCOA="#"
40483 if test "x$TOOLKIT" = "xCOCOA" ; then
40484 COND_TOOLKIT_COCOA=""
40485 fi
40486
a49baeab
DE
40487 COND_TOOLKIT_COCOA_USE_GUI_1="#"
40488 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
40489 COND_TOOLKIT_COCOA_USE_GUI_1=""
40490 fi
40491
a848cd7e
SC
40492 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40493 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40494 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40495 fi
40496
40497 COND_TOOLKIT_GTK="#"
40498 if test "x$TOOLKIT" = "xGTK" ; then
40499 COND_TOOLKIT_GTK=""
40500 fi
40501
40502 COND_TOOLKIT_GTK_USE_GUI_1="#"
40503 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40504 COND_TOOLKIT_GTK_USE_GUI_1=""
40505 fi
40506
40507 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40508 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40509 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40510 fi
40511
40512 COND_TOOLKIT_MAC="#"
40513 if test "x$TOOLKIT" = "xMAC" ; then
40514 COND_TOOLKIT_MAC=""
40515 fi
40516
40517 COND_TOOLKIT_MAC_USE_GUI_1="#"
40518 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40519 COND_TOOLKIT_MAC_USE_GUI_1=""
40520 fi
40521
40522 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40523 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40524 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40525 fi
40526
40527 COND_TOOLKIT_MGL="#"
40528 if test "x$TOOLKIT" = "xMGL" ; then
40529 COND_TOOLKIT_MGL=""
40530 fi
40531
40532 COND_TOOLKIT_MGL_USE_GUI_1="#"
40533 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40534 COND_TOOLKIT_MGL_USE_GUI_1=""
40535 fi
40536
40537 COND_TOOLKIT_MOTIF="#"
40538 if test "x$TOOLKIT" = "xMOTIF" ; then
40539 COND_TOOLKIT_MOTIF=""
40540 fi
40541
40542 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40543 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40544 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40545 fi
40546
40547 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40548 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40549 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40550 fi
40551
40552 COND_TOOLKIT_MSW="#"
40553 if test "x$TOOLKIT" = "xMSW" ; then
40554 COND_TOOLKIT_MSW=""
40555 fi
40556
40557 COND_TOOLKIT_MSW_USE_GUI_1="#"
40558 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40559 COND_TOOLKIT_MSW_USE_GUI_1=""
40560 fi
40561
40562 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40563 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40564 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40565 fi
40566
40567 COND_TOOLKIT_PM="#"
40568 if test "x$TOOLKIT" = "xPM" ; then
40569 COND_TOOLKIT_PM=""
40570 fi
40571
40572 COND_TOOLKIT_PM_USE_GUI_1="#"
40573 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40574 COND_TOOLKIT_PM_USE_GUI_1=""
40575 fi
40576
40577 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40578 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40579 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40580 fi
40581
3fd9c298
DE
40582 COND_TOOLKIT_WINCE="#"
40583 if test "x$TOOLKIT" = "xWINCE" ; then
40584 COND_TOOLKIT_WINCE=""
40585 fi
40586
40587 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40588 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40589 COND_TOOLKIT_WINCE_USE_GUI_1=""
40590 fi
40591
40592 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40593 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40594 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40595 fi
40596
a848cd7e
SC
40597 COND_TOOLKIT_X11="#"
40598 if test "x$TOOLKIT" = "xX11" ; then
40599 COND_TOOLKIT_X11=""
40600 fi
40601
40602 COND_TOOLKIT_X11_USE_GUI_1="#"
40603 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40604 COND_TOOLKIT_X11_USE_GUI_1=""
40605 fi
40606
40607 COND_UNICODE_1="#"
40608 if test "x$UNICODE" = "x1" ; then
40609 COND_UNICODE_1=""
40610 fi
40611
40612 COND_USE_EXCEPTIONS_0="#"
40613 if test "x$USE_EXCEPTIONS" = "x0" ; then
40614 COND_USE_EXCEPTIONS_0=""
40615 fi
40616
40617 COND_USE_EXCEPTIONS_1="#"
40618 if test "x$USE_EXCEPTIONS" = "x1" ; then
40619 COND_USE_EXCEPTIONS_1=""
40620 fi
40621
40622 COND_USE_GUI_0="#"
40623 if test "x$USE_GUI" = "x0" ; then
40624 COND_USE_GUI_0=""
40625 fi
40626
40627 COND_USE_GUI_1="#"
40628 if test "x$USE_GUI" = "x1" ; then
40629 COND_USE_GUI_1=""
40630 fi
40631
40632 COND_USE_GUI_1_WXUNIV_0="#"
40633 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40634 COND_USE_GUI_1_WXUNIV_0=""
40635 fi
40636
40637 COND_USE_GUI_1_WXUNIV_1="#"
40638 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40639 COND_USE_GUI_1_WXUNIV_1=""
40640 fi
40641
40642 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40643 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40644 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40645 fi
40646
40647 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40648 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40649 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40650 fi
40651
40652 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40653 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40654 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40655 fi
40656
ceec2216
RL
40657 COND_USE_ODBC_1="#"
40658 if test "x$USE_ODBC" = "x1" ; then
40659 COND_USE_ODBC_1=""
40660 fi
40661
ffa0583f
RL
40662 COND_USE_OPENGL_1="#"
40663 if test "x$USE_OPENGL" = "x1" ; then
40664 COND_USE_OPENGL_1=""
40665 fi
40666
a848cd7e
SC
40667 COND_USE_PLUGINS_0="#"
40668 if test "x$USE_PLUGINS" = "x0" ; then
40669 COND_USE_PLUGINS_0=""
40670 fi
40671
40672 COND_USE_SOSYMLINKS_1="#"
40673 if test "x$USE_SOSYMLINKS" = "x1" ; then
40674 COND_USE_SOSYMLINKS_1=""
40675 fi
40676
40677 COND_USE_SOVERLINUX_1="#"
40678 if test "x$USE_SOVERLINUX" = "x1" ; then
40679 COND_USE_SOVERLINUX_1=""
40680 fi
40681
40682 COND_USE_SOVERSION_0="#"
40683 if test "x$USE_SOVERSION" = "x0" ; then
40684 COND_USE_SOVERSION_0=""
40685 fi
40686
40687 COND_USE_SOVERSOLARIS_1="#"
40688 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40689 COND_USE_SOVERSOLARIS_1=""
40690 fi
40691
a13a7f89
RL
40692 COND_USE_XRC_1="#"
40693 if test "x$USE_XRC" = "x1" ; then
40694 COND_USE_XRC_1=""
40695 fi
40696
a848cd7e
SC
40697 COND_WITH_PLUGIN_SDL_1="#"
40698 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40699 COND_WITH_PLUGIN_SDL_1=""
40700 fi
40701
a848cd7e
SC
40702 COND_WXUNIV_1="#"
40703 if test "x$WXUNIV" = "x1" ; then
40704 COND_WXUNIV_1=""
40705 fi
40706
40707 COND_WXUSE_EXPAT_BUILTIN="#"
40708 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40709 COND_WXUSE_EXPAT_BUILTIN=""
40710 fi
40711
40712 COND_WXUSE_LIBJPEG_BUILTIN="#"
40713 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40714 COND_WXUSE_LIBJPEG_BUILTIN=""
40715 fi
40716
40717 COND_WXUSE_LIBPNG_BUILTIN="#"
40718 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40719 COND_WXUSE_LIBPNG_BUILTIN=""
40720 fi
40721
40722 COND_WXUSE_LIBTIFF_BUILTIN="#"
40723 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40724 COND_WXUSE_LIBTIFF_BUILTIN=""
40725 fi
40726
40727 COND_WXUSE_ODBC_BUILTIN="#"
40728 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40729 COND_WXUSE_ODBC_BUILTIN=""
40730 fi
40731
40732 COND_WXUSE_REGEX_BUILTIN="#"
40733 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40734 COND_WXUSE_REGEX_BUILTIN=""
40735 fi
40736
40737 COND_WXUSE_ZLIB_BUILTIN="#"
40738 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40739 COND_WXUSE_ZLIB_BUILTIN=""
40740 fi
40741
dcc1b6ad
VS
40742 COND_BUILD_DEBUG="#"
40743 if test "x$BUILD" = "xdebug" ; then
40744 COND_BUILD_DEBUG=""
40745 fi
40746
40747 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40748 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40749 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40750 fi
40751
40752 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40753 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40754 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40755 fi
40756
40757 COND_BUILD_DEBUG_UNICODE_0="#"
40758 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40759 COND_BUILD_DEBUG_UNICODE_0=""
40760 fi
40761
40762 COND_BUILD_DEBUG_UNICODE_1="#"
40763 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40764 COND_BUILD_DEBUG_UNICODE_1=""
40765 fi
40766
40767 COND_BUILD_RELEASE="#"
40768 if test "x$BUILD" = "xrelease" ; then
40769 COND_BUILD_RELEASE=""
40770 fi
40771
40772 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40773 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40774 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40775 fi
40776
40777 COND_BUILD_RELEASE_UNICODE_0="#"
40778 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40779 COND_BUILD_RELEASE_UNICODE_0=""
40780 fi
40781
40782 COND_BUILD_RELEASE_UNICODE_1="#"
40783 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40784 COND_BUILD_RELEASE_UNICODE_1=""
40785 fi
40786
40787 COND_DEBUG_FLAG_1="#"
40788 if test "x$DEBUG_FLAG" = "x1" ; then
40789 COND_DEBUG_FLAG_1=""
40790 fi
40791
40792 COND_DEBUG_INFO_0="#"
40793 if test "x$DEBUG_INFO" = "x0" ; then
40794 COND_DEBUG_INFO_0=""
40795 fi
40796
40797 COND_DEBUG_INFO_1="#"
40798 if test "x$DEBUG_INFO" = "x1" ; then
40799 COND_DEBUG_INFO_1=""
40800 fi
40801
40802 COND_DEPS_TRACKING_0="#"
40803 if test "x$DEPS_TRACKING" = "x0" ; then
40804 COND_DEPS_TRACKING_0=""
40805 fi
40806
40807 COND_DEPS_TRACKING_1="#"
40808 if test "x$DEPS_TRACKING" = "x1" ; then
40809 COND_DEPS_TRACKING_1=""
40810 fi
40811
40812 COND_GCC_PCH_1="#"
40813 if test "x$GCC_PCH" = "x1" ; then
40814 COND_GCC_PCH_1=""
40815 fi
40816
40817 COND_MONOLITHIC_0="#"
40818 if test "x$MONOLITHIC" = "x0" ; then
40819 COND_MONOLITHIC_0=""
40820 fi
40821
40822 COND_MONOLITHIC_0_SHARED_0="#"
40823 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40824 COND_MONOLITHIC_0_SHARED_0=""
40825 fi
40826
40827 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40828 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40829 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40830 fi
40831
40832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40833 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40835 fi
40836
40837 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40838 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40839 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40840 fi
40841
40842 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40843 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40844 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40845 fi
40846
9a8f0513
VS
40847 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40848 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40849 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40850 fi
40851
dcc1b6ad
VS
40852 COND_MONOLITHIC_0_SHARED_1="#"
40853 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40854 COND_MONOLITHIC_0_SHARED_1=""
40855 fi
40856
40857 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40858 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40859 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40860 fi
40861
40862 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40863 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40864 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40865 fi
40866
40867 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40868 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40869 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40870 fi
40871
40872 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40873 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40874 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40875 fi
40876
9a8f0513
VS
40877 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40878 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40879 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40880 fi
40881
dcc1b6ad
VS
40882 COND_MONOLITHIC_0_USE_ODBC_1="#"
40883 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40884 COND_MONOLITHIC_0_USE_ODBC_1=""
40885 fi
40886
40887 COND_MONOLITHIC_1="#"
40888 if test "x$MONOLITHIC" = "x1" ; then
40889 COND_MONOLITHIC_1=""
40890 fi
40891
40892 COND_MONOLITHIC_1_SHARED_0="#"
40893 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40894 COND_MONOLITHIC_1_SHARED_0=""
40895 fi
40896
40897 COND_MONOLITHIC_1_SHARED_1="#"
40898 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40899 COND_MONOLITHIC_1_SHARED_1=""
40900 fi
40901
40902 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40903 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40904 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40905 fi
40906
40907 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40908 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40909 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40910 fi
40911
40912 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40913 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40914 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40915 fi
40916
40917 COND_PLATFORM_MACOSX_1="#"
40918 if test "x$PLATFORM_MACOSX" = "x1" ; then
40919 COND_PLATFORM_MACOSX_1=""
40920 fi
40921
40922 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40923 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40924 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40925 fi
40926
40927 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40928 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40929 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40930 fi
40931
40932 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40933 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40934 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40935 fi
40936
9a8f0513
VS
40937 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40938 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40939 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40940 fi
40941
40942 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40943 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40944 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40945 fi
40946
dcc1b6ad
VS
40947 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40948 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40949 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40950 fi
40951
40952 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40953 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40954 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40955 fi
40956
40957 COND_PLATFORM_MAC_1="#"
40958 if test "x$PLATFORM_MAC" = "x1" ; then
40959 COND_PLATFORM_MAC_1=""
40960 fi
40961
40962 COND_PLATFORM_OS2_1="#"
40963 if test "x$PLATFORM_OS2" = "x1" ; then
40964 COND_PLATFORM_OS2_1=""
40965 fi
40966
40967 COND_PLATFORM_UNIX_0="#"
40968 if test "x$PLATFORM_UNIX" = "x0" ; then
40969 COND_PLATFORM_UNIX_0=""
40970 fi
40971
40972 COND_PLATFORM_UNIX_1="#"
40973 if test "x$PLATFORM_UNIX" = "x1" ; then
40974 COND_PLATFORM_UNIX_1=""
40975 fi
40976
40977 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40978 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40979 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40980 fi
40981
40982 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40983 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40984 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40985 fi
40986
40987 COND_PLATFORM_WIN32_0="#"
40988 if test "x$PLATFORM_WIN32" = "x0" ; then
40989 COND_PLATFORM_WIN32_0=""
40990 fi
40991
40992 COND_PLATFORM_WIN32_1="#"
40993 if test "x$PLATFORM_WIN32" = "x1" ; then
40994 COND_PLATFORM_WIN32_1=""
40995 fi
40996
40997 COND_SHARED_0="#"
40998 if test "x$SHARED" = "x0" ; then
40999 COND_SHARED_0=""
41000 fi
41001
41002 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41003 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41004 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41005 fi
41006
41007 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41008 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41009 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41010 fi
41011
41012 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41013 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41014 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41015 fi
41016
41017 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41018 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41019 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41020 fi
41021
41022 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41023 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41024 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41025 fi
41026
41027 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41028 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41029 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41030 fi
41031
41032 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41033 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41034 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41035 fi
41036
41037 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41038 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41039 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41040 fi
41041
41042 COND_SHARED_1="#"
41043 if test "x$SHARED" = "x1" ; then
41044 COND_SHARED_1=""
41045 fi
41046
41047 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41048 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41049 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41050 fi
41051
41052 COND_TOOLKIT_COCOA="#"
41053 if test "x$TOOLKIT" = "xCOCOA" ; then
41054 COND_TOOLKIT_COCOA=""
41055 fi
41056
41057 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41058 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41059 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41060 fi
41061
41062 COND_TOOLKIT_GTK="#"
41063 if test "x$TOOLKIT" = "xGTK" ; then
41064 COND_TOOLKIT_GTK=""
41065 fi
41066
41067 COND_TOOLKIT_GTK_USE_GUI_1="#"
41068 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41069 COND_TOOLKIT_GTK_USE_GUI_1=""
41070 fi
41071
41072 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41073 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41074 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41075 fi
41076
41077 COND_TOOLKIT_MAC="#"
41078 if test "x$TOOLKIT" = "xMAC" ; then
41079 COND_TOOLKIT_MAC=""
41080 fi
41081
41082 COND_TOOLKIT_MAC_USE_GUI_1="#"
41083 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41084 COND_TOOLKIT_MAC_USE_GUI_1=""
41085 fi
41086
41087 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41088 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41089 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41090 fi
41091
9a8f0513
VS
41092 COND_TOOLKIT_MAC_WXUNIV_0="#"
41093 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41094 COND_TOOLKIT_MAC_WXUNIV_0=""
41095 fi
41096
dcc1b6ad
VS
41097 COND_TOOLKIT_MGL="#"
41098 if test "x$TOOLKIT" = "xMGL" ; then
41099 COND_TOOLKIT_MGL=""
41100 fi
41101
41102 COND_TOOLKIT_MGL_USE_GUI_1="#"
41103 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41104 COND_TOOLKIT_MGL_USE_GUI_1=""
41105 fi
41106
41107 COND_TOOLKIT_MOTIF="#"
41108 if test "x$TOOLKIT" = "xMOTIF" ; then
41109 COND_TOOLKIT_MOTIF=""
41110 fi
41111
41112 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41113 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41114 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41115 fi
41116
41117 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41118 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41119 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41120 fi
41121
41122 COND_TOOLKIT_MSW="#"
41123 if test "x$TOOLKIT" = "xMSW" ; then
41124 COND_TOOLKIT_MSW=""
41125 fi
41126
41127 COND_TOOLKIT_MSW_USE_GUI_1="#"
41128 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41129 COND_TOOLKIT_MSW_USE_GUI_1=""
41130 fi
41131
41132 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41133 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41134 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41135 fi
41136
9a8f0513
VS
41137 COND_TOOLKIT_MSW_WXUNIV_0="#"
41138 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41139 COND_TOOLKIT_MSW_WXUNIV_0=""
41140 fi
41141
dcc1b6ad
VS
41142 COND_TOOLKIT_PM="#"
41143 if test "x$TOOLKIT" = "xPM" ; then
41144 COND_TOOLKIT_PM=""
41145 fi
41146
41147 COND_TOOLKIT_PM_USE_GUI_1="#"
41148 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41149 COND_TOOLKIT_PM_USE_GUI_1=""
41150 fi
41151
41152 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41153 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41154 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41155 fi
41156
9a8f0513
VS
41157 COND_TOOLKIT_PM_WXUNIV_0="#"
41158 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41159 COND_TOOLKIT_PM_WXUNIV_0=""
41160 fi
41161
dcc1b6ad
VS
41162 COND_TOOLKIT_WINCE="#"
41163 if test "x$TOOLKIT" = "xWINCE" ; then
41164 COND_TOOLKIT_WINCE=""
41165 fi
41166
41167 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41168 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41169 COND_TOOLKIT_WINCE_USE_GUI_1=""
41170 fi
41171
41172 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41173 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41174 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41175 fi
41176
41177 COND_TOOLKIT_X11="#"
41178 if test "x$TOOLKIT" = "xX11" ; then
41179 COND_TOOLKIT_X11=""
41180 fi
41181
41182 COND_TOOLKIT_X11_USE_GUI_1="#"
41183 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41184 COND_TOOLKIT_X11_USE_GUI_1=""
41185 fi
41186
41187 COND_UNICODE_1="#"
41188 if test "x$UNICODE" = "x1" ; then
41189 COND_UNICODE_1=""
41190 fi
41191
41192 COND_USE_EXCEPTIONS_0="#"
41193 if test "x$USE_EXCEPTIONS" = "x0" ; then
41194 COND_USE_EXCEPTIONS_0=""
41195 fi
41196
41197 COND_USE_EXCEPTIONS_1="#"
41198 if test "x$USE_EXCEPTIONS" = "x1" ; then
41199 COND_USE_EXCEPTIONS_1=""
41200 fi
41201
41202 COND_USE_GUI_0="#"
41203 if test "x$USE_GUI" = "x0" ; then
41204 COND_USE_GUI_0=""
41205 fi
41206
41207 COND_USE_GUI_1="#"
41208 if test "x$USE_GUI" = "x1" ; then
41209 COND_USE_GUI_1=""
41210 fi
41211
41212 COND_USE_GUI_1_WXUNIV_0="#"
41213 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41214 COND_USE_GUI_1_WXUNIV_0=""
41215 fi
41216
41217 COND_USE_GUI_1_WXUNIV_1="#"
41218 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41219 COND_USE_GUI_1_WXUNIV_1=""
41220 fi
41221
41222 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41223 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41224 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41225 fi
41226
41227 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41228 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41229 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41230 fi
41231
41232 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41233 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41234 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41235 fi
41236
41237 COND_USE_ODBC_1="#"
41238 if test "x$USE_ODBC" = "x1" ; then
41239 COND_USE_ODBC_1=""
41240 fi
41241
41242 COND_USE_PLUGINS_0="#"
41243 if test "x$USE_PLUGINS" = "x0" ; then
41244 COND_USE_PLUGINS_0=""
41245 fi
41246
41247 COND_USE_SOSYMLINKS_1="#"
41248 if test "x$USE_SOSYMLINKS" = "x1" ; then
41249 COND_USE_SOSYMLINKS_1=""
41250 fi
41251
41252 COND_USE_SOVERLINUX_1="#"
41253 if test "x$USE_SOVERLINUX" = "x1" ; then
41254 COND_USE_SOVERLINUX_1=""
41255 fi
41256
41257 COND_USE_SOVERSION_0="#"
41258 if test "x$USE_SOVERSION" = "x0" ; then
41259 COND_USE_SOVERSION_0=""
41260 fi
41261
41262 COND_USE_SOVERSOLARIS_1="#"
41263 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41264 COND_USE_SOVERSOLARIS_1=""
41265 fi
41266
41267 COND_WITH_PLUGIN_SDL_1="#"
41268 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41269 COND_WITH_PLUGIN_SDL_1=""
41270 fi
41271
41272 COND_WXUNIV_1="#"
41273 if test "x$WXUNIV" = "x1" ; then
41274 COND_WXUNIV_1=""
41275 fi
41276
41277 COND_WXUSE_EXPAT_BUILTIN="#"
41278 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41279 COND_WXUSE_EXPAT_BUILTIN=""
41280 fi
41281
41282 COND_WXUSE_LIBJPEG_BUILTIN="#"
41283 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41284 COND_WXUSE_LIBJPEG_BUILTIN=""
41285 fi
41286
41287 COND_WXUSE_LIBPNG_BUILTIN="#"
41288 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41289 COND_WXUSE_LIBPNG_BUILTIN=""
41290 fi
41291
41292 COND_WXUSE_LIBTIFF_BUILTIN="#"
41293 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41294 COND_WXUSE_LIBTIFF_BUILTIN=""
41295 fi
41296
41297 COND_WXUSE_ODBC_BUILTIN="#"
41298 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41299 COND_WXUSE_ODBC_BUILTIN=""
41300 fi
41301
41302 COND_WXUSE_REGEX_BUILTIN="#"
41303 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41304 COND_WXUSE_REGEX_BUILTIN=""
41305 fi
41306
41307 COND_WXUSE_ZLIB_BUILTIN="#"
41308 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41309 COND_WXUSE_ZLIB_BUILTIN=""
41310 fi
41311
a848cd7e
SC
41312
41313
2057db16
VS
41314 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41315 { { 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
41316echo "$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;}
41317 { (exit 1); exit 1; }; }
41318 fi
41319
a848cd7e 41320
ceec2216
RL
41321if test "$wxUSE_SHARED" = "yes"; then
41322
41323 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41324 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41325
41326else
41327
41328 EXE_LINKER="$CXX -o"
41329
41330fi
a848cd7e 41331
74b84332 41332GCC_PRAGMA_FLAGS=""
a848cd7e 41333if test $GCC_PCH = 1 ; then
74b84332 41334 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41335else
41336 case "${host}" in
41337 powerpc-*-darwin* )
74b84332 41338 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41339 ;;
bea8e651 41340 *-*-mingw32* )
1f344abf
VS
41341 if test "$wxUSE_STL" = "yes" -o \
41342 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41343 "$wxUSE_NO_RTTI" != "yes"; then
41344 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41345echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41346 cat >conftest.$ac_ext <<_ACEOF
41347/* confdefs.h. */
41348_ACEOF
41349cat confdefs.h >>conftest.$ac_ext
41350cat >>conftest.$ac_ext <<_ACEOF
41351/* end confdefs.h. */
41352
41353int
41354main ()
41355{
1f344abf 41356#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41357 #error "Not GCC 3.2 or greater"
41358 #endif
41359
41360 ;
41361 return 0;
41362}
41363_ACEOF
41364rm -f conftest.$ac_objext
41365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41366 (eval $ac_compile) 2>conftest.er1
bea8e651 41367 ac_status=$?
ac1cb8d3
VS
41368 grep -v '^ *+' conftest.er1 >conftest.err
41369 rm -f conftest.er1
41370 cat conftest.err >&5
bea8e651
MB
41371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41372 (exit $ac_status); } &&
2cbbc68d
RD
41373 { ac_try='test -z "$ac_c_werror_flag"
41374 || test ! -s conftest.err'
ac1cb8d3
VS
41375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41376 (eval $ac_try) 2>&5
41377 ac_status=$?
41378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41379 (exit $ac_status); }; } &&
41380 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41382 (eval $ac_try) 2>&5
41383 ac_status=$?
41384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41385 (exit $ac_status); }; }; then
74b84332 41386 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41387 echo "$as_me:$LINENO: result: yes" >&5
41388echo "${ECHO_T}yes" >&6
41389else
41390 echo "$as_me: failed program was:" >&5
41391sed 's/^/| /' conftest.$ac_ext >&5
41392
41393echo "$as_me:$LINENO: result: no" >&5
41394echo "${ECHO_T}no" >&6
41395fi
ac1cb8d3 41396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41397 fi
41398 ;;
a848cd7e
SC
41399 esac
41400fi
74b84332 41401CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41402
41403
41404SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41405
41406
41407
41408
41409
41410
41411
41412
41413
41414
41415
41416
41417
41418
41419
41420
41421
41422
41423
41424
41425
41426
41427
41428
41429
41430
41431
41432
41433
41434
41435
41436
41437
41438
41439
41440
41441
41442
41443
41444
41445
41446
a848cd7e
SC
41447
41448
41449
41450
41451
41452
41453
41454
41455
41456
41457
41458
41459
41460
41461
41462
41463
41464
74b84332 41465
a848cd7e
SC
41466
41467
41468echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41469echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41470set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41471if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41472 echo $ECHO_N "(cached) $ECHO_C" >&6
41473else
41474 cat >conftest.make <<\_ACEOF
41475all:
41476 @echo 'ac_maketemp="$(MAKE)"'
41477_ACEOF
41478# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41479eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41480if test -n "$ac_maketemp"; then
41481 eval ac_cv_prog_make_${ac_make}_set=yes
41482else
41483 eval ac_cv_prog_make_${ac_make}_set=no
41484fi
41485rm -f conftest.make
41486fi
41487if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41488 echo "$as_me:$LINENO: result: yes" >&5
41489echo "${ECHO_T}yes" >&6
41490 SET_MAKE=
41491else
41492 echo "$as_me:$LINENO: result: no" >&5
41493echo "${ECHO_T}no" >&6
41494 SET_MAKE="MAKE=${MAKE-make}"
41495fi
41496
41497
a848cd7e 41498
ceec2216
RL
41499 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41500
a848cd7e 41501
ceec2216 41502 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41503
a848cd7e 41504
ceec2216 41505 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41506
ceec2216
RL
41507
41508 ac_config_files="$ac_config_files version-script Makefile"
41509
41510
41511 ac_config_commands="$ac_config_commands wx-config
41512 "
a848cd7e
SC
41513
41514
9103d280
RL
41515
41516
a848cd7e
SC
41517if test "$wxUSE_GUI" = "yes"; then
41518 SUBDIRS="samples demos utils contrib"
41519else SUBDIRS="samples utils"
41520fi
41521
41522
41523
41524# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41525if test "${with_cppunit_prefix+set}" = set; then
41526 withval="$with_cppunit_prefix"
41527 cppunit_config_prefix="$withval"
41528else
41529 cppunit_config_prefix=""
41530fi;
41531
41532# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41533if test "${with_cppunit_exec_prefix+set}" = set; then
41534 withval="$with_cppunit_exec_prefix"
41535 cppunit_config_exec_prefix="$withval"
41536else
41537 cppunit_config_exec_prefix=""
41538fi;
41539
41540 if test x$cppunit_config_exec_prefix != x ; then
41541 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41542 if test x${CPPUNIT_CONFIG+set} != xset ; then
41543 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41544 fi
41545 fi
41546 if test x$cppunit_config_prefix != x ; then
41547 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41548 if test x${CPPUNIT_CONFIG+set} != xset ; then
41549 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41550 fi
41551 fi
41552
41553 # Extract the first word of "cppunit-config", so it can be a program name with args.
41554set dummy cppunit-config; ac_word=$2
41555echo "$as_me:$LINENO: checking for $ac_word" >&5
41556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41557if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41558 echo $ECHO_N "(cached) $ECHO_C" >&6
41559else
41560 case $CPPUNIT_CONFIG in
41561 [\\/]* | ?:[\\/]*)
41562 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41563 ;;
41564 *)
41565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41566for as_dir in $PATH
41567do
41568 IFS=$as_save_IFS
41569 test -z "$as_dir" && as_dir=.
41570 for ac_exec_ext in '' $ac_executable_extensions; do
41571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41572 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41574 break 2
41575 fi
41576done
41577done
41578
41579 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41580 ;;
41581esac
41582fi
41583CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41584
41585if test -n "$CPPUNIT_CONFIG"; then
41586 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41587echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41588else
41589 echo "$as_me:$LINENO: result: no" >&5
41590echo "${ECHO_T}no" >&6
41591fi
41592
41593 cppunit_version_min=1.8.0
41594
41595 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41596echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41597 no_cppunit=""
41598 if test "$CPPUNIT_CONFIG" = "no" ; then
41599 no_cppunit=yes
41600 else
41601 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41602 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41603 cppunit_version=`$CPPUNIT_CONFIG --version`
41604
41605 cppunit_major_version=`echo $cppunit_version | \
41606 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41607 cppunit_minor_version=`echo $cppunit_version | \
41608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41609 cppunit_micro_version=`echo $cppunit_version | \
41610 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41611
41612 cppunit_major_min=`echo $cppunit_version_min | \
41613 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41614 cppunit_minor_min=`echo $cppunit_version_min | \
41615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41616 cppunit_micro_min=`echo $cppunit_version_min | \
41617 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41618
41619 cppunit_version_proper=`expr \
41620 $cppunit_major_version \> $cppunit_major_min \| \
41621 $cppunit_major_version \= $cppunit_major_min \& \
41622 $cppunit_minor_version \> $cppunit_minor_min \| \
41623 $cppunit_major_version \= $cppunit_major_min \& \
41624 $cppunit_minor_version \= $cppunit_minor_min \& \
41625 $cppunit_micro_version \>= $cppunit_micro_min `
41626
41627 if test "$cppunit_version_proper" = "1" ; then
41628 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41629echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41630 else
41631 echo "$as_me:$LINENO: result: no" >&5
41632echo "${ECHO_T}no" >&6
41633 no_cppunit=yes
41634 fi
41635 fi
41636
41637 if test "x$no_cppunit" = x ; then
c2218763 41638 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41639 else
41640 CPPUNIT_CFLAGS=""
41641 CPPUNIT_LIBS=""
c2218763 41642 :
a848cd7e
SC
41643 fi
41644
41645
41646
41647
41648
41649for subdir in `echo $SUBDIRS`; do
41650 if test -d ${srcdir}/${subdir} ; then
41651 if test "$wxUSE_GUI" = "yes"; then
41652 if test ${subdir} = "samples"; then
41653 makefiles="samples/Makefile.in $makefiles"
41654 for sample in `echo $SAMPLES_SUBDIRS`; do
41655 if test -d $srcdir/samples/$sample; then
41656 makefiles="samples/$sample/Makefile.in $makefiles"
41657 fi
41658 done
41659 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41660 fi
41661 else if test ${subdir} = "samples"; then
41662 makefiles="samples/Makefile.in samples/console/Makefile.in"
41663 elif test ${subdir} = "utils"; then
6537ccf8
VS
41664 makefiles=""
41665 for util in HelpGen tex2rtf ; do
41666 if test -d $srcdir/utils/$util ; then
41667 makefiles="utils/$util/Makefile.in \
41668 utils/$util/src/Makefile.in \
41669 $makefiles"
41670 fi
41671 done
a848cd7e
SC
41672 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41673 fi
41674 fi
41675
41676 for mkin in $makefiles ; do
41677 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41678 ac_config_files="$ac_config_files $mk"
41679
41680 done
41681 fi
41682done
41683
41684
41685cat >confcache <<\_ACEOF
41686# This file is a shell script that caches the results of configure
41687# tests run on this system so they can be shared between configure
41688# scripts and configure runs, see configure's option --config-cache.
41689# It is not useful on other systems. If it contains results you don't
41690# want to keep, you may remove or edit it.
41691#
41692# config.status only pays attention to the cache file if you give it
41693# the --recheck option to rerun configure.
41694#
41695# `ac_cv_env_foo' variables (set or unset) will be overridden when
41696# loading this file, other *unset* `ac_cv_foo' will be assigned the
41697# following values.
41698
41699_ACEOF
41700
41701# The following way of writing the cache mishandles newlines in values,
41702# but we know of no workaround that is simple, portable, and efficient.
41703# So, don't put newlines in cache variables' values.
41704# Ultrix sh set writes to stderr and can't be redirected directly,
41705# and sets the high bit in the cache file unless we assign to the vars.
41706{
41707 (set) 2>&1 |
41708 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41709 *ac_space=\ *)
41710 # `set' does not quote correctly, so add quotes (double-quote
41711 # substitution turns \\\\ into \\, and sed turns \\ into \).
41712 sed -n \
ac1cb8d3
VS
41713 "s/'/'\\\\''/g;
41714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41715 ;;
41716 *)
41717 # `set' quotes correctly as required by POSIX, so do not add quotes.
41718 sed -n \
ac1cb8d3 41719 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41720 ;;
41721 esac;
41722} |
41723 sed '
41724 t clear
41725 : clear
41726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41727 t end
41728 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41729 : end' >>confcache
41730if diff $cache_file confcache >/dev/null 2>&1; then :; else
41731 if test -w $cache_file; then
41732 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41733 cat confcache >$cache_file
41734 else
41735 echo "not updating unwritable cache $cache_file"
41736 fi
41737fi
41738rm -f confcache
41739
41740test "x$prefix" = xNONE && prefix=$ac_default_prefix
41741# Let make expand exec_prefix.
41742test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41743
41744# VPATH may cause trouble with some makes, so we remove $(srcdir),
41745# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41746# trailing colons and then remove the whole line if VPATH becomes empty
41747# (actually we leave an empty line to preserve line numbers).
41748if test "x$srcdir" = x.; then
ac1cb8d3 41749 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41750s/:*\$(srcdir):*/:/;
41751s/:*\${srcdir}:*/:/;
41752s/:*@srcdir@:*/:/;
ac1cb8d3 41753s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41754s/:*$//;
ac1cb8d3 41755s/^[^=]*=[ ]*$//;
a848cd7e
SC
41756}'
41757fi
41758
41759DEFS=-DHAVE_CONFIG_H
41760
41761ac_libobjs=
41762ac_ltlibobjs=
41763for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41764 # 1. Remove the extension, and $U if already installed.
41765 ac_i=`echo "$ac_i" |
ac1cb8d3 41766 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41767 # 2. Add them.
41768 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41769 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41770done
41771LIBOBJS=$ac_libobjs
41772
41773LTLIBOBJS=$ac_ltlibobjs
41774
41775
41776
41777: ${CONFIG_STATUS=./config.status}
41778ac_clean_files_save=$ac_clean_files
41779ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41780{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41781echo "$as_me: creating $CONFIG_STATUS" >&6;}
41782cat >$CONFIG_STATUS <<_ACEOF
41783#! $SHELL
41784# Generated by $as_me.
41785# Run this file to recreate the current configuration.
41786# Compiler output produced by configure, useful for debugging
41787# configure, is in config.log if it exists.
41788
41789debug=false
41790ac_cs_recheck=false
41791ac_cs_silent=false
41792SHELL=\${CONFIG_SHELL-$SHELL}
41793_ACEOF
41794
41795cat >>$CONFIG_STATUS <<\_ACEOF
41796## --------------------- ##
41797## M4sh Initialization. ##
41798## --------------------- ##
41799
41800# Be Bourne compatible
41801if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41802 emulate sh
41803 NULLCMD=:
41804 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41805 # is contrary to our usage. Disable this feature.
41806 alias -g '${1+"$@"}'='"$@"'
41807elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41808 set -o posix
41809fi
ac1cb8d3 41810DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41811
41812# Support unset when possible.
ac1cb8d3 41813if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41814 as_unset=unset
41815else
41816 as_unset=false
41817fi
41818
41819
41820# Work around bugs in pre-3.0 UWIN ksh.
41821$as_unset ENV MAIL MAILPATH
41822PS1='$ '
41823PS2='> '
41824PS4='+ '
41825
41826# NLS nuisances.
41827for as_var in \
41828 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41829 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41830 LC_TELEPHONE LC_TIME
41831do
ac1cb8d3 41832 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41833 eval $as_var=C; export $as_var
41834 else
41835 $as_unset $as_var
41836 fi
41837done
41838
41839# Required to use basename.
41840if expr a : '\(a\)' >/dev/null 2>&1; then
41841 as_expr=expr
41842else
41843 as_expr=false
41844fi
41845
41846if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41847 as_basename=basename
41848else
41849 as_basename=false
41850fi
41851
41852
41853# Name of the executable.
41854as_me=`$as_basename "$0" ||
41855$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41856 X"$0" : 'X\(//\)$' \| \
41857 X"$0" : 'X\(/\)$' \| \
41858 . : '\(.\)' 2>/dev/null ||
41859echo X/"$0" |
41860 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41861 /^X\/\(\/\/\)$/{ s//\1/; q; }
41862 /^X\/\(\/\).*/{ s//\1/; q; }
41863 s/.*/./; q'`
41864
41865
41866# PATH needs CR, and LINENO needs CR and PATH.
41867# Avoid depending upon Character Ranges.
41868as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41869as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41870as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41871as_cr_digits='0123456789'
41872as_cr_alnum=$as_cr_Letters$as_cr_digits
41873
41874# The user is always right.
41875if test "${PATH_SEPARATOR+set}" != set; then
41876 echo "#! /bin/sh" >conf$$.sh
41877 echo "exit 0" >>conf$$.sh
41878 chmod +x conf$$.sh
41879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41880 PATH_SEPARATOR=';'
41881 else
41882 PATH_SEPARATOR=:
41883 fi
41884 rm -f conf$$.sh
41885fi
41886
41887
41888 as_lineno_1=$LINENO
41889 as_lineno_2=$LINENO
41890 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41891 test "x$as_lineno_1" != "x$as_lineno_2" &&
41892 test "x$as_lineno_3" = "x$as_lineno_2" || {
41893 # Find who we are. Look in the path if we contain no path at all
41894 # relative or not.
41895 case $0 in
41896 *[\\/]* ) as_myself=$0 ;;
41897 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41898for as_dir in $PATH
41899do
41900 IFS=$as_save_IFS
41901 test -z "$as_dir" && as_dir=.
41902 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41903done
41904
41905 ;;
41906 esac
41907 # We did not find ourselves, most probably we were run as `sh COMMAND'
41908 # in which case we are not to be found in the path.
41909 if test "x$as_myself" = x; then
41910 as_myself=$0
41911 fi
41912 if test ! -f "$as_myself"; then
41913 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41914echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41915 { (exit 1); exit 1; }; }
41916 fi
41917 case $CONFIG_SHELL in
41918 '')
41919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41920for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41921do
41922 IFS=$as_save_IFS
41923 test -z "$as_dir" && as_dir=.
41924 for as_base in sh bash ksh sh5; do
41925 case $as_dir in
41926 /*)
41927 if ("$as_dir/$as_base" -c '
41928 as_lineno_1=$LINENO
41929 as_lineno_2=$LINENO
41930 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41931 test "x$as_lineno_1" != "x$as_lineno_2" &&
41932 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41933 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41934 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41935 CONFIG_SHELL=$as_dir/$as_base
41936 export CONFIG_SHELL
41937 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41938 fi;;
41939 esac
41940 done
41941done
41942;;
41943 esac
41944
41945 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41946 # uniformly replaced by the line number. The first 'sed' inserts a
41947 # line-number line before each line; the second 'sed' does the real
41948 # work. The second script uses 'N' to pair each line-number line
41949 # with the numbered line, and appends trailing '-' during
41950 # substitution so that $LINENO is not a special case at line end.
41951 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41952 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41953 sed '=' <$as_myself |
41954 sed '
41955 N
41956 s,$,-,
41957 : loop
41958 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41959 t loop
41960 s,-$,,
41961 s,^['$as_cr_digits']*\n,,
41962 ' >$as_me.lineno &&
41963 chmod +x $as_me.lineno ||
41964 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41965echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41966 { (exit 1); exit 1; }; }
41967
41968 # Don't try to exec as it changes $[0], causing all sort of problems
41969 # (the dirname of $[0] is not the place where we might find the
41970 # original and so on. Autoconf is especially sensible to this).
41971 . ./$as_me.lineno
41972 # Exit status is that of the last command.
41973 exit
41974}
41975
41976
41977case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41978 *c*,-n*) ECHO_N= ECHO_C='
41979' ECHO_T=' ' ;;
41980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41982esac
41983
41984if expr a : '\(a\)' >/dev/null 2>&1; then
41985 as_expr=expr
41986else
41987 as_expr=false
41988fi
41989
41990rm -f conf$$ conf$$.exe conf$$.file
41991echo >conf$$.file
41992if ln -s conf$$.file conf$$ 2>/dev/null; then
41993 # We could just check for DJGPP; but this test a) works b) is more generic
41994 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41995 if test -f conf$$.exe; then
41996 # Don't use ln at all; we don't have any links
41997 as_ln_s='cp -p'
41998 else
41999 as_ln_s='ln -s'
42000 fi
42001elif ln conf$$.file conf$$ 2>/dev/null; then
42002 as_ln_s=ln
42003else
42004 as_ln_s='cp -p'
42005fi
42006rm -f conf$$ conf$$.exe conf$$.file
42007
42008if mkdir -p . 2>/dev/null; then
42009 as_mkdir_p=:
42010else
ac1cb8d3 42011 test -d ./-p && rmdir ./-p
a848cd7e
SC
42012 as_mkdir_p=false
42013fi
42014
42015as_executable_p="test -f"
42016
42017# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42018as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42019
42020# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42021as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42022
42023
42024# IFS
42025# We need space, tab and new line, in precisely that order.
42026as_nl='
42027'
42028IFS=" $as_nl"
42029
42030# CDPATH.
42031$as_unset CDPATH
42032
42033exec 6>&1
42034
42035# Open the log real soon, to keep \$[0] and so on meaningful, and to
42036# report actual input values of CONFIG_FILES etc. instead of their
42037# values after options handling. Logging --version etc. is OK.
42038exec 5>>config.log
42039{
42040 echo
42041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42042## Running $as_me. ##
42043_ASBOX
42044} >&5
42045cat >&5 <<_CSEOF
42046
7714864e 42047This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42048generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42049
42050 CONFIG_FILES = $CONFIG_FILES
42051 CONFIG_HEADERS = $CONFIG_HEADERS
42052 CONFIG_LINKS = $CONFIG_LINKS
42053 CONFIG_COMMANDS = $CONFIG_COMMANDS
42054 $ $0 $@
42055
42056_CSEOF
42057echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42058echo >&5
42059_ACEOF
42060
42061# Files that config.status was made for.
42062if test -n "$ac_config_files"; then
42063 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42064fi
42065
42066if test -n "$ac_config_headers"; then
42067 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42068fi
42069
42070if test -n "$ac_config_links"; then
42071 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42072fi
42073
42074if test -n "$ac_config_commands"; then
42075 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42076fi
42077
42078cat >>$CONFIG_STATUS <<\_ACEOF
42079
42080ac_cs_usage="\
42081\`$as_me' instantiates files from templates according to the
42082current configuration.
42083
42084Usage: $0 [OPTIONS] [FILE]...
42085
42086 -h, --help print this help, then exit
42087 -V, --version print version number, then exit
42088 -q, --quiet do not print progress messages
42089 -d, --debug don't remove temporary files
42090 --recheck update $as_me by reconfiguring in the same conditions
42091 --file=FILE[:TEMPLATE]
ac1cb8d3 42092 instantiate the configuration file FILE
a848cd7e 42093 --header=FILE[:TEMPLATE]
ac1cb8d3 42094 instantiate the configuration header FILE
a848cd7e
SC
42095
42096Configuration files:
42097$config_files
42098
42099Configuration headers:
42100$config_headers
42101
42102Configuration commands:
42103$config_commands
42104
42105Report bugs to <bug-autoconf@gnu.org>."
42106_ACEOF
42107
42108cat >>$CONFIG_STATUS <<_ACEOF
42109ac_cs_version="\\
7714864e 42110wxWidgets config.status 2.5.3
ac1cb8d3 42111configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42112 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42113
ac1cb8d3 42114Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42115This config.status script is free software; the Free Software Foundation
42116gives unlimited permission to copy, distribute and modify it."
42117srcdir=$srcdir
42118INSTALL="$INSTALL"
42119_ACEOF
42120
42121cat >>$CONFIG_STATUS <<\_ACEOF
42122# If no file are specified by the user, then we need to provide default
42123# value. By we need to know if files were specified by the user.
42124ac_need_defaults=:
42125while test $# != 0
42126do
42127 case $1 in
42128 --*=*)
42129 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42130 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42131 ac_shift=:
42132 ;;
42133 -*)
42134 ac_option=$1
42135 ac_optarg=$2
42136 ac_shift=shift
42137 ;;
42138 *) # This is not an option, so the user has probably given explicit
42139 # arguments.
42140 ac_option=$1
42141 ac_need_defaults=false;;
42142 esac
42143
42144 case $ac_option in
42145 # Handling of the options.
42146_ACEOF
42147cat >>$CONFIG_STATUS <<\_ACEOF
42148 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42149 ac_cs_recheck=: ;;
42150 --version | --vers* | -V )
42151 echo "$ac_cs_version"; exit 0 ;;
42152 --he | --h)
42153 # Conflict between --help and --header
42154 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42155Try \`$0 --help' for more information." >&5
42156echo "$as_me: error: ambiguous option: $1
42157Try \`$0 --help' for more information." >&2;}
42158 { (exit 1); exit 1; }; };;
42159 --help | --hel | -h )
42160 echo "$ac_cs_usage"; exit 0 ;;
42161 --debug | --d* | -d )
42162 debug=: ;;
42163 --file | --fil | --fi | --f )
42164 $ac_shift
42165 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42166 ac_need_defaults=false;;
42167 --header | --heade | --head | --hea )
42168 $ac_shift
42169 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42170 ac_need_defaults=false;;
42171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42172 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42173 ac_cs_silent=: ;;
42174
42175 # This is an error.
42176 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42177Try \`$0 --help' for more information." >&5
42178echo "$as_me: error: unrecognized option: $1
42179Try \`$0 --help' for more information." >&2;}
42180 { (exit 1); exit 1; }; } ;;
42181
42182 *) ac_config_targets="$ac_config_targets $1" ;;
42183
42184 esac
42185 shift
42186done
42187
42188ac_configure_extra_args=
42189
42190if $ac_cs_silent; then
42191 exec 6>/dev/null
42192 ac_configure_extra_args="$ac_configure_extra_args --silent"
42193fi
42194
42195_ACEOF
42196cat >>$CONFIG_STATUS <<_ACEOF
42197if \$ac_cs_recheck; then
42198 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42199 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42200fi
42201
42202_ACEOF
42203
42204cat >>$CONFIG_STATUS <<_ACEOF
42205#
42206# INIT-COMMANDS section.
42207#
42208
ceec2216
RL
42209 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42210 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42211 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42212 LN_S="${LN_S}"
a848cd7e
SC
42213
42214
42215_ACEOF
42216
42217
42218
42219cat >>$CONFIG_STATUS <<\_ACEOF
42220for ac_config_target in $ac_config_targets
42221do
42222 case "$ac_config_target" in
42223 # Handling of arguments.
ceec2216
RL
42224 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42225 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42226 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42227 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42228 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42229 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42230 "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
42231 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42232echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42233 { (exit 1); exit 1; }; };;
42234 esac
42235done
42236
42237# If the user did not use the arguments to specify the items to instantiate,
42238# then the envvar interface is used. Set only those that are not.
42239# We use the long form for the default assignment because of an extremely
42240# bizarre bug on SunOS 4.1.3.
42241if $ac_need_defaults; then
42242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42243 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42244 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42245fi
42246
42247# Have a temporary directory for convenience. Make it in the build tree
42248# simply because there is no reason to put it here, and in addition,
42249# creating and moving files from /tmp can sometimes cause problems.
42250# Create a temporary directory, and hook for its removal unless debugging.
42251$debug ||
42252{
42253 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42254 trap '{ (exit 1); exit 1; }' 1 2 13 15
42255}
42256
42257# Create a (secure) tmp directory for tmp files.
42258
42259{
42260 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42261 test -n "$tmp" && test -d "$tmp"
42262} ||
42263{
42264 tmp=./confstat$$-$RANDOM
42265 (umask 077 && mkdir $tmp)
42266} ||
42267{
42268 echo "$me: cannot create a temporary directory in ." >&2
42269 { (exit 1); exit 1; }
42270}
42271
42272_ACEOF
42273
42274cat >>$CONFIG_STATUS <<_ACEOF
42275
42276#
42277# CONFIG_FILES section.
42278#
42279
42280# No need to generate the scripts if there are no CONFIG_FILES.
42281# This happens for instance when ./config.status config.h
42282if test -n "\$CONFIG_FILES"; then
42283 # Protect against being on the right side of a sed subst in config.status.
42284 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42285 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42286s,@SHELL@,$SHELL,;t t
42287s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42288s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42289s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42290s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42291s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42292s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42293s,@exec_prefix@,$exec_prefix,;t t
42294s,@prefix@,$prefix,;t t
42295s,@program_transform_name@,$program_transform_name,;t t
42296s,@bindir@,$bindir,;t t
42297s,@sbindir@,$sbindir,;t t
42298s,@libexecdir@,$libexecdir,;t t
42299s,@datadir@,$datadir,;t t
42300s,@sysconfdir@,$sysconfdir,;t t
42301s,@sharedstatedir@,$sharedstatedir,;t t
42302s,@localstatedir@,$localstatedir,;t t
42303s,@libdir@,$libdir,;t t
42304s,@includedir@,$includedir,;t t
42305s,@oldincludedir@,$oldincludedir,;t t
42306s,@infodir@,$infodir,;t t
42307s,@mandir@,$mandir,;t t
42308s,@build_alias@,$build_alias,;t t
42309s,@host_alias@,$host_alias,;t t
42310s,@target_alias@,$target_alias,;t t
42311s,@DEFS@,$DEFS,;t t
42312s,@ECHO_C@,$ECHO_C,;t t
42313s,@ECHO_N@,$ECHO_N,;t t
42314s,@ECHO_T@,$ECHO_T,;t t
42315s,@LIBS@,$LIBS,;t t
42316s,@build@,$build,;t t
42317s,@build_cpu@,$build_cpu,;t t
42318s,@build_vendor@,$build_vendor,;t t
42319s,@build_os@,$build_os,;t t
42320s,@host@,$host,;t t
42321s,@host_cpu@,$host_cpu,;t t
42322s,@host_vendor@,$host_vendor,;t t
42323s,@host_os@,$host_os,;t t
42324s,@target@,$target,;t t
42325s,@target_cpu@,$target_cpu,;t t
42326s,@target_vendor@,$target_vendor,;t t
42327s,@target_os@,$target_os,;t t
42328s,@CC@,$CC,;t t
42329s,@CFLAGS@,$CFLAGS,;t t
42330s,@LDFLAGS@,$LDFLAGS,;t t
42331s,@CPPFLAGS@,$CPPFLAGS,;t t
42332s,@ac_ct_CC@,$ac_ct_CC,;t t
42333s,@EXEEXT@,$EXEEXT,;t t
42334s,@OBJEXT@,$OBJEXT,;t t
42335s,@CPP@,$CPP,;t t
42336s,@EGREP@,$EGREP,;t t
42337s,@CXX@,$CXX,;t t
42338s,@CXXFLAGS@,$CXXFLAGS,;t t
42339s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42340s,@RANLIB@,$RANLIB,;t t
42341s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42342s,@AR@,$AR,;t t
42343s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42344s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42345s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42346s,@STRIP@,$STRIP,;t t
42347s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42348s,@LN_S@,$LN_S,;t t
42349s,@CXXCPP@,$CXXCPP,;t t
42350s,@subdirs@,$subdirs,;t t
42351s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42352s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42353s,@GTK_LIBS@,$GTK_LIBS,;t t
42354s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42355s,@X_CFLAGS@,$X_CFLAGS,;t t
42356s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42357s,@X_LIBS@,$X_LIBS,;t t
42358s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42359s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42360s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42361s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42362s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42363s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42364s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42365s,@RESCOMP@,$RESCOMP,;t t
42366s,@DEREZ@,$DEREZ,;t t
42367s,@SETFILE@,$SETFILE,;t t
42368s,@LIBICONV@,$LIBICONV,;t t
42369s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42370s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42371s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42372s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42373s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42374s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42375s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42376s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42377s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42378s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42379s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42380s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42381s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42382s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42383s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42384s,@VENDOR@,$VENDOR,;t t
42385s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42386s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42387s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42388s,@WXUNIV@,$WXUNIV,;t t
42389s,@MONOLITHIC@,$MONOLITHIC,;t t
42390s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42391s,@EXTRALIBS@,$EXTRALIBS,;t t
42392s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42393s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42394s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42395s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42396s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42397s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42398s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42399s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42400s,@UNICODE@,$UNICODE,;t t
42401s,@BUILD@,$BUILD,;t t
42402s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42403s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42404s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42405s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42406s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42407s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42408s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42409s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42410s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42411s,@SET_MAKE@,$SET_MAKE,;t t
42412s,@MAKE_SET@,$MAKE_SET,;t t
42413s,@ac_ct_AR@,$ac_ct_AR,;t t
42414s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42415s,@NM@,$NM,;t t
42416s,@ac_ct_NM@,$ac_ct_NM,;t t
42417s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42418s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42419s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42420s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42421s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42422s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42423s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42424s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42425s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42426s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42427s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42428s,@LIBPREFIX@,$LIBPREFIX,;t t
42429s,@LIBEXT@,$LIBEXT,;t t
42430s,@DLLPREFIX@,$DLLPREFIX,;t t
42431s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42432s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42433s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42434s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42435s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42436s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42437s,@PIC_FLAG@,$PIC_FLAG,;t t
42438s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42439s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42440s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42441s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42442s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42443s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42444s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42445s,@GCC_PCH@,$GCC_PCH,;t t
42446s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42447s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42448s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42449s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42450s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42451s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42452s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42453s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42454s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42455s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42456s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42457s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42458s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42459s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42460s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42461s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42462s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42463s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42464s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42465s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42466s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42467s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42468s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42469s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42470s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42471s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42472s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42473s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42474s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42475s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42476s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42477s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42478s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42479s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42480s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42481s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42482s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42483s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42484s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42485s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42486s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42487s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42488s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42489s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42490s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42491s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42492s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42493s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42494s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42495s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42496s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42497s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42498s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42499s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42500s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42501s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42502s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42503s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42504s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42505s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42506s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42507s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42508s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42509s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42510s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42511s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42512s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42513s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42514s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42515s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42516s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42517s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42518s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42519s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42520s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42521s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42522s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42523s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42524s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42525s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42526s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42527s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42528s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42529s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42530s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42531s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42532s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42533s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42534s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42535s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42536s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42537s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42538s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42539s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42540s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42541s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42542s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42543s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42544s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42545s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42546s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42547s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42548s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42549s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42550s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42551s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42552s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42553s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42554s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42555s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42556s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42557s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42558s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42559s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42560s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42561s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42562s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42563s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42564s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42565s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
42566s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42567s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42568s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 42569s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42570s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42571s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42572s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42573s,@USE_GUI@,$USE_GUI,;t t
42574s,@AFMINSTALL@,$AFMINSTALL,;t t
42575s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42576s,@TOOLKIT@,$TOOLKIT,;t t
42577s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42578s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42579s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42580s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42581s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42582s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42583s,@WIDGET_SET@,$WIDGET_SET,;t t
42584s,@WX_RELEASE@,$WX_RELEASE,;t t
42585s,@WX_VERSION@,$WX_VERSION,;t t
42586s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42587s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42588s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42589s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42590s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42591s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42592s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42593s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42594s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42595s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42596s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42597s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42598s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42599s,@DISTDIR@,$DISTDIR,;t t
42600s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42601s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42602s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42603s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42604s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42605s,@RESFLAGS@,$RESFLAGS,;t t
42606s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42607s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42608s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42609s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42610s,@MACRESCOMP@,$MACRESCOMP,;t t
42611s,@MACSETFILE@,$MACSETFILE,;t t
42612s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42613s,@GCC@,$GCC,;t t
a848cd7e 42614s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42615s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42616s,@LIBOBJS@,$LIBOBJS,;t t
42617s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42618CEOF
42619
42620_ACEOF
42621
42622 cat >>$CONFIG_STATUS <<\_ACEOF
42623 # Split the substitutions into bite-sized pieces for seds with
42624 # small command number limits, like on Digital OSF/1 and HP-UX.
42625 ac_max_sed_lines=48
42626 ac_sed_frag=1 # Number of current file.
42627 ac_beg=1 # First line for current file.
42628 ac_end=$ac_max_sed_lines # Line after last line for current file.
42629 ac_more_lines=:
42630 ac_sed_cmds=
42631 while $ac_more_lines; do
42632 if test $ac_beg -gt 1; then
42633 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42634 else
42635 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42636 fi
42637 if test ! -s $tmp/subs.frag; then
42638 ac_more_lines=false
42639 else
42640 # The purpose of the label and of the branching condition is to
42641 # speed up the sed processing (if there are no `@' at all, there
42642 # is no need to browse any of the substitutions).
42643 # These are the two extra sed commands mentioned above.
42644 (echo ':t
42645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42646 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42647 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42648 else
ac1cb8d3 42649 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42650 fi
42651 ac_sed_frag=`expr $ac_sed_frag + 1`
42652 ac_beg=$ac_end
42653 ac_end=`expr $ac_end + $ac_max_sed_lines`
42654 fi
42655 done
42656 if test -z "$ac_sed_cmds"; then
42657 ac_sed_cmds=cat
42658 fi
42659fi # test -n "$CONFIG_FILES"
42660
42661_ACEOF
42662cat >>$CONFIG_STATUS <<\_ACEOF
42663for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42664 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42665 case $ac_file in
42666 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42667 cat >$tmp/stdin
42668 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42670 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42671 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42672 * ) ac_file_in=$ac_file.in ;;
42673 esac
42674
42675 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42676 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42677$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42678 X"$ac_file" : 'X\(//\)[^/]' \| \
42679 X"$ac_file" : 'X\(//\)$' \| \
42680 X"$ac_file" : 'X\(/\)' \| \
42681 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42682echo X"$ac_file" |
42683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42685 /^X\(\/\/\)$/{ s//\1/; q; }
42686 /^X\(\/\).*/{ s//\1/; q; }
42687 s/.*/./; q'`
42688 { if $as_mkdir_p; then
42689 mkdir -p "$ac_dir"
42690 else
42691 as_dir="$ac_dir"
42692 as_dirs=
42693 while test ! -d "$as_dir"; do
42694 as_dirs="$as_dir $as_dirs"
42695 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42696$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42697 X"$as_dir" : 'X\(//\)[^/]' \| \
42698 X"$as_dir" : 'X\(//\)$' \| \
42699 X"$as_dir" : 'X\(/\)' \| \
42700 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42701echo X"$as_dir" |
42702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42704 /^X\(\/\/\)$/{ s//\1/; q; }
42705 /^X\(\/\).*/{ s//\1/; q; }
42706 s/.*/./; q'`
42707 done
42708 test ! -n "$as_dirs" || mkdir $as_dirs
42709 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42710echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42711 { (exit 1); exit 1; }; }; }
42712
42713 ac_builddir=.
42714
42715if test "$ac_dir" != .; then
42716 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42717 # A "../" for each directory in $ac_dir_suffix.
42718 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42719else
42720 ac_dir_suffix= ac_top_builddir=
42721fi
42722
42723case $srcdir in
42724 .) # No --srcdir option. We are building in place.
42725 ac_srcdir=.
42726 if test -z "$ac_top_builddir"; then
42727 ac_top_srcdir=.
42728 else
42729 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42730 fi ;;
42731 [\\/]* | ?:[\\/]* ) # Absolute path.
42732 ac_srcdir=$srcdir$ac_dir_suffix;
42733 ac_top_srcdir=$srcdir ;;
42734 *) # Relative path.
42735 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42736 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42737esac
ac1cb8d3
VS
42738
42739# Do not use `cd foo && pwd` to compute absolute paths, because
42740# the directories may not exist.
42741case `pwd` in
42742.) ac_abs_builddir="$ac_dir";;
42743*)
42744 case "$ac_dir" in
42745 .) ac_abs_builddir=`pwd`;;
42746 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42747 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42748 esac;;
42749esac
42750case $ac_abs_builddir in
42751.) ac_abs_top_builddir=${ac_top_builddir}.;;
42752*)
42753 case ${ac_top_builddir}. in
42754 .) ac_abs_top_builddir=$ac_abs_builddir;;
42755 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42756 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42757 esac;;
42758esac
42759case $ac_abs_builddir in
42760.) ac_abs_srcdir=$ac_srcdir;;
42761*)
42762 case $ac_srcdir in
42763 .) ac_abs_srcdir=$ac_abs_builddir;;
42764 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42765 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42766 esac;;
42767esac
42768case $ac_abs_builddir in
42769.) ac_abs_top_srcdir=$ac_top_srcdir;;
42770*)
42771 case $ac_top_srcdir in
42772 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42773 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42774 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42775 esac;;
42776esac
a848cd7e
SC
42777
42778
42779 case $INSTALL in
42780 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42781 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42782 esac
42783
2cbbc68d
RD
42784 if test x"$ac_file" != x-; then
42785 { echo "$as_me:$LINENO: creating $ac_file" >&5
42786echo "$as_me: creating $ac_file" >&6;}
42787 rm -f "$ac_file"
42788 fi
a848cd7e
SC
42789 # Let's still pretend it is `configure' which instantiates (i.e., don't
42790 # use $as_me), people would be surprised to read:
42791 # /* config.h. Generated by config.status. */
42792 if test x"$ac_file" = x-; then
42793 configure_input=
42794 else
42795 configure_input="$ac_file. "
42796 fi
42797 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42798 sed 's,.*/,,'` by configure."
a848cd7e
SC
42799
42800 # First look for the input files in the build tree, otherwise in the
42801 # src tree.
42802 ac_file_inputs=`IFS=:
42803 for f in $ac_file_in; do
42804 case $f in
42805 -) echo $tmp/stdin ;;
42806 [\\/$]*)
ac1cb8d3
VS
42807 # Absolute (can't be DOS-style, as IFS=:)
42808 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42809echo "$as_me: error: cannot find input file: $f" >&2;}
42810 { (exit 1); exit 1; }; }
ac1cb8d3 42811 echo "$f";;
a848cd7e 42812 *) # Relative
ac1cb8d3
VS
42813 if test -f "$f"; then
42814 # Build tree
42815 echo "$f"
42816 elif test -f "$srcdir/$f"; then
42817 # Source tree
42818 echo "$srcdir/$f"
42819 else
42820 # /dev/null tree
42821 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42822echo "$as_me: error: cannot find input file: $f" >&2;}
42823 { (exit 1); exit 1; }; }
ac1cb8d3 42824 fi;;
a848cd7e
SC
42825 esac
42826 done` || { (exit 1); exit 1; }
42827_ACEOF
42828cat >>$CONFIG_STATUS <<_ACEOF
42829 sed "$ac_vpsub
42830$extrasub
42831_ACEOF
42832cat >>$CONFIG_STATUS <<\_ACEOF
42833:t
42834/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42835s,@configure_input@,$configure_input,;t t
42836s,@srcdir@,$ac_srcdir,;t t
42837s,@abs_srcdir@,$ac_abs_srcdir,;t t
42838s,@top_srcdir@,$ac_top_srcdir,;t t
42839s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42840s,@builddir@,$ac_builddir,;t t
42841s,@abs_builddir@,$ac_abs_builddir,;t t
42842s,@top_builddir@,$ac_top_builddir,;t t
42843s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42844s,@INSTALL@,$ac_INSTALL,;t t
42845" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42846 rm -f $tmp/stdin
42847 if test x"$ac_file" != x-; then
42848 mv $tmp/out $ac_file
42849 else
42850 cat $tmp/out
42851 rm -f $tmp/out
42852 fi
42853
ceec2216
RL
42854 # Run the commands associated with the file.
42855 case $ac_file in
42856 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42857 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42858 esac
a848cd7e
SC
42859done
42860_ACEOF
42861cat >>$CONFIG_STATUS <<\_ACEOF
42862
42863#
42864# CONFIG_HEADER section.
42865#
42866
42867# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42868# NAME is the cpp macro being defined and VALUE is the value it is being given.
42869#
42870# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42871ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42872ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42873ac_dC=' '
42874ac_dD=',;t'
42875# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42876ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42877ac_uB='$,\1#\2define\3'
42878ac_uC=' '
42879ac_uD=',;t'
42880
42881for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42882 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42883 case $ac_file in
42884 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42885 cat >$tmp/stdin
42886 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42887 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42888 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42889 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42890 * ) ac_file_in=$ac_file.in ;;
42891 esac
42892
42893 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42894echo "$as_me: creating $ac_file" >&6;}
42895
42896 # First look for the input files in the build tree, otherwise in the
42897 # src tree.
42898 ac_file_inputs=`IFS=:
42899 for f in $ac_file_in; do
42900 case $f in
42901 -) echo $tmp/stdin ;;
42902 [\\/$]*)
ac1cb8d3
VS
42903 # Absolute (can't be DOS-style, as IFS=:)
42904 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42905echo "$as_me: error: cannot find input file: $f" >&2;}
42906 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42907 # Do quote $f, to prevent DOS paths from being IFS'd.
42908 echo "$f";;
a848cd7e 42909 *) # Relative
ac1cb8d3
VS
42910 if test -f "$f"; then
42911 # Build tree
42912 echo "$f"
42913 elif test -f "$srcdir/$f"; then
42914 # Source tree
42915 echo "$srcdir/$f"
42916 else
42917 # /dev/null tree
42918 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42919echo "$as_me: error: cannot find input file: $f" >&2;}
42920 { (exit 1); exit 1; }; }
ac1cb8d3 42921 fi;;
a848cd7e
SC
42922 esac
42923 done` || { (exit 1); exit 1; }
42924 # Remove the trailing spaces.
ac1cb8d3 42925 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42926
42927_ACEOF
42928
42929# Transform confdefs.h into two sed scripts, `conftest.defines' and
42930# `conftest.undefs', that substitutes the proper values into
42931# config.h.in to produce config.h. The first handles `#define'
42932# templates, and the second `#undef' templates.
42933# And first: Protect against being on the right side of a sed subst in
42934# config.status. Protect against being in an unquoted here document
42935# in config.status.
42936rm -f conftest.defines conftest.undefs
42937# Using a here document instead of a string reduces the quoting nightmare.
42938# Putting comments in sed scripts is not portable.
42939#
42940# `end' is used to avoid that the second main sed command (meant for
42941# 0-ary CPP macros) applies to n-ary macro definitions.
42942# See the Autoconf documentation for `clear'.
42943cat >confdef2sed.sed <<\_ACEOF
42944s/[\\&,]/\\&/g
42945s,[\\$`],\\&,g
42946t clear
42947: clear
ac1cb8d3 42948s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42949t end
ac1cb8d3 42950s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42951: end
42952_ACEOF
42953# If some macros were called several times there might be several times
42954# the same #defines, which is useless. Nevertheless, we may not want to
42955# sort them, since we want the *last* AC-DEFINE to be honored.
42956uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42957sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42958rm -f confdef2sed.sed
42959
42960# This sed command replaces #undef with comments. This is necessary, for
42961# example, in the case of _POSIX_SOURCE, which is predefined and required
42962# on some systems where configure will not decide to define it.
42963cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42964s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42965_ACEOF
42966
42967# Break up conftest.defines because some shells have a limit on the size
42968# of here documents, and old seds have small limits too (100 cmds).
42969echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42970echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42971echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42972echo ' :' >>$CONFIG_STATUS
42973rm -f conftest.tail
42974while grep . conftest.defines >/dev/null
42975do
42976 # Write a limited-size here document to $tmp/defines.sed.
42977 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42978 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42979 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42980 # Work around the forget-to-reset-the-flag bug.
42981 echo 't clr' >>$CONFIG_STATUS
42982 echo ': clr' >>$CONFIG_STATUS
42983 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42984 echo 'CEOF
42985 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42986 rm -f $tmp/in
42987 mv $tmp/out $tmp/in
42988' >>$CONFIG_STATUS
42989 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42990 rm -f conftest.defines
42991 mv conftest.tail conftest.defines
42992done
42993rm -f conftest.defines
42994echo ' fi # grep' >>$CONFIG_STATUS
42995echo >>$CONFIG_STATUS
42996
42997# Break up conftest.undefs because some shells have a limit on the size
42998# of here documents, and old seds have small limits too (100 cmds).
42999echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43000rm -f conftest.tail
43001while grep . conftest.undefs >/dev/null
43002do
43003 # Write a limited-size here document to $tmp/undefs.sed.
43004 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43005 # Speed up: don't consider the non `#undef'
ac1cb8d3 43006 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43007 # Work around the forget-to-reset-the-flag bug.
43008 echo 't clr' >>$CONFIG_STATUS
43009 echo ': clr' >>$CONFIG_STATUS
43010 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43011 echo 'CEOF
43012 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43013 rm -f $tmp/in
43014 mv $tmp/out $tmp/in
43015' >>$CONFIG_STATUS
43016 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43017 rm -f conftest.undefs
43018 mv conftest.tail conftest.undefs
43019done
43020rm -f conftest.undefs
43021
43022cat >>$CONFIG_STATUS <<\_ACEOF
43023 # Let's still pretend it is `configure' which instantiates (i.e., don't
43024 # use $as_me), people would be surprised to read:
43025 # /* config.h. Generated by config.status. */
43026 if test x"$ac_file" = x-; then
43027 echo "/* Generated by configure. */" >$tmp/config.h
43028 else
43029 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43030 fi
43031 cat $tmp/in >>$tmp/config.h
43032 rm -f $tmp/in
43033 if test x"$ac_file" != x-; then
43034 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43035 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43036echo "$as_me: $ac_file is unchanged" >&6;}
43037 else
43038 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43039$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43040 X"$ac_file" : 'X\(//\)[^/]' \| \
43041 X"$ac_file" : 'X\(//\)$' \| \
43042 X"$ac_file" : 'X\(/\)' \| \
43043 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43044echo X"$ac_file" |
43045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43047 /^X\(\/\/\)$/{ s//\1/; q; }
43048 /^X\(\/\).*/{ s//\1/; q; }
43049 s/.*/./; q'`
43050 { if $as_mkdir_p; then
43051 mkdir -p "$ac_dir"
43052 else
43053 as_dir="$ac_dir"
43054 as_dirs=
43055 while test ! -d "$as_dir"; do
43056 as_dirs="$as_dir $as_dirs"
43057 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43058$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43059 X"$as_dir" : 'X\(//\)[^/]' \| \
43060 X"$as_dir" : 'X\(//\)$' \| \
43061 X"$as_dir" : 'X\(/\)' \| \
43062 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43063echo X"$as_dir" |
43064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43066 /^X\(\/\/\)$/{ s//\1/; q; }
43067 /^X\(\/\).*/{ s//\1/; q; }
43068 s/.*/./; q'`
43069 done
43070 test ! -n "$as_dirs" || mkdir $as_dirs
43071 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43072echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43073 { (exit 1); exit 1; }; }; }
43074
43075 rm -f $ac_file
43076 mv $tmp/config.h $ac_file
43077 fi
43078 else
43079 cat $tmp/config.h
43080 rm -f $tmp/config.h
43081 fi
43082done
43083_ACEOF
43084cat >>$CONFIG_STATUS <<\_ACEOF
43085
43086#
43087# CONFIG_COMMANDS section.
43088#
43089for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43090 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43091 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43092 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43093$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43094 X"$ac_dest" : 'X\(//\)[^/]' \| \
43095 X"$ac_dest" : 'X\(//\)$' \| \
43096 X"$ac_dest" : 'X\(/\)' \| \
43097 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43098echo X"$ac_dest" |
43099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43101 /^X\(\/\/\)$/{ s//\1/; q; }
43102 /^X\(\/\).*/{ s//\1/; q; }
43103 s/.*/./; q'`
ac1cb8d3
VS
43104 { if $as_mkdir_p; then
43105 mkdir -p "$ac_dir"
43106 else
43107 as_dir="$ac_dir"
43108 as_dirs=
43109 while test ! -d "$as_dir"; do
43110 as_dirs="$as_dir $as_dirs"
43111 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43112$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43113 X"$as_dir" : 'X\(//\)[^/]' \| \
43114 X"$as_dir" : 'X\(//\)$' \| \
43115 X"$as_dir" : 'X\(/\)' \| \
43116 . : '\(.\)' 2>/dev/null ||
43117echo X"$as_dir" |
43118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43120 /^X\(\/\/\)$/{ s//\1/; q; }
43121 /^X\(\/\).*/{ s//\1/; q; }
43122 s/.*/./; q'`
43123 done
43124 test ! -n "$as_dirs" || mkdir $as_dirs
43125 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43126echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43127 { (exit 1); exit 1; }; }; }
43128
a848cd7e
SC
43129 ac_builddir=.
43130
43131if test "$ac_dir" != .; then
43132 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43133 # A "../" for each directory in $ac_dir_suffix.
43134 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43135else
43136 ac_dir_suffix= ac_top_builddir=
43137fi
43138
43139case $srcdir in
43140 .) # No --srcdir option. We are building in place.
43141 ac_srcdir=.
43142 if test -z "$ac_top_builddir"; then
43143 ac_top_srcdir=.
43144 else
43145 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43146 fi ;;
43147 [\\/]* | ?:[\\/]* ) # Absolute path.
43148 ac_srcdir=$srcdir$ac_dir_suffix;
43149 ac_top_srcdir=$srcdir ;;
43150 *) # Relative path.
43151 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43152 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43153esac
ac1cb8d3
VS
43154
43155# Do not use `cd foo && pwd` to compute absolute paths, because
43156# the directories may not exist.
43157case `pwd` in
43158.) ac_abs_builddir="$ac_dir";;
43159*)
43160 case "$ac_dir" in
43161 .) ac_abs_builddir=`pwd`;;
43162 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43163 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43164 esac;;
43165esac
43166case $ac_abs_builddir in
43167.) ac_abs_top_builddir=${ac_top_builddir}.;;
43168*)
43169 case ${ac_top_builddir}. in
43170 .) ac_abs_top_builddir=$ac_abs_builddir;;
43171 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43172 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43173 esac;;
43174esac
43175case $ac_abs_builddir in
43176.) ac_abs_srcdir=$ac_srcdir;;
43177*)
43178 case $ac_srcdir in
43179 .) ac_abs_srcdir=$ac_abs_builddir;;
43180 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43181 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43182 esac;;
43183esac
43184case $ac_abs_builddir in
43185.) ac_abs_top_srcdir=$ac_top_srcdir;;
43186*)
43187 case $ac_top_srcdir in
43188 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43189 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43190 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43191 esac;;
43192esac
a848cd7e
SC
43193
43194
43195 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43196echo "$as_me: executing $ac_dest commands" >&6;}
43197 case $ac_dest in
ceec2216
RL
43198 wx-config ) rm -f wx-config
43199 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43200 ;;
a848cd7e
SC
43201 esac
43202done
43203_ACEOF
43204
43205cat >>$CONFIG_STATUS <<\_ACEOF
43206
43207{ (exit 0); exit 0; }
43208_ACEOF
43209chmod +x $CONFIG_STATUS
43210ac_clean_files=$ac_clean_files_save
43211
43212
43213# configure is writing to config.log, and then calls config.status.
43214# config.status does its own redirection, appending to config.log.
43215# Unfortunately, on DOS this fails, as config.log is still kept open
43216# by configure, so config.status won't be able to write to it; its
43217# output is simply discarded. So we exec the FD to /dev/null,
43218# effectively closing config.log, so it can be properly (re)opened and
43219# appended to by config.status. When coming back to configure, we
43220# need to make the FD available again.
43221if test "$no_create" != yes; then
43222 ac_cs_success=:
43223 ac_config_status_args=
43224 test "$silent" = yes &&
43225 ac_config_status_args="$ac_config_status_args --quiet"
43226 exec 5>/dev/null
43227 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43228 exec 5>>config.log
43229 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43230 # would make configure fail if this is the last instruction.
43231 $ac_cs_success || { (exit 1); exit 1; }
43232fi
43233
43234#
43235# CONFIG_SUBDIRS section.
43236#
43237if test "$no_recursion" != yes; then
43238
43239 # Remove --cache-file and --srcdir arguments so they do not pile up.
43240 ac_sub_configure_args=
43241 ac_prev=
43242 for ac_arg in $ac_configure_args; do
43243 if test -n "$ac_prev"; then
43244 ac_prev=
43245 continue
43246 fi
43247 case $ac_arg in
43248 -cache-file | --cache-file | --cache-fil | --cache-fi \
43249 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43250 ac_prev=cache_file ;;
43251 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43252 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43253 | --c=*)
43254 ;;
43255 --config-cache | -C)
43256 ;;
43257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43258 ac_prev=srcdir ;;
43259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43260 ;;
43261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43262 ac_prev=prefix ;;
43263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43264 ;;
43265 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43266 esac
43267 done
43268
43269 # Always prepend --prefix to ensure using the same prefix
43270 # in subdir configurations.
43271 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43272
43273 ac_popdir=`pwd`
43274 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43275
43276 # Do not complain, so a configure script can configure whichever
43277 # parts of a large source tree are present.
43278 test -d $srcdir/$ac_dir || continue
43279
43280 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43281echo "$as_me: configuring in $ac_dir" >&6;}
43282 { if $as_mkdir_p; then
43283 mkdir -p "$ac_dir"
43284 else
43285 as_dir="$ac_dir"
43286 as_dirs=
43287 while test ! -d "$as_dir"; do
43288 as_dirs="$as_dir $as_dirs"
43289 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43290$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43291 X"$as_dir" : 'X\(//\)[^/]' \| \
43292 X"$as_dir" : 'X\(//\)$' \| \
43293 X"$as_dir" : 'X\(/\)' \| \
43294 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43295echo X"$as_dir" |
43296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43298 /^X\(\/\/\)$/{ s//\1/; q; }
43299 /^X\(\/\).*/{ s//\1/; q; }
43300 s/.*/./; q'`
43301 done
43302 test ! -n "$as_dirs" || mkdir $as_dirs
43303 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43304echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43305 { (exit 1); exit 1; }; }; }
43306
43307 ac_builddir=.
43308
43309if test "$ac_dir" != .; then
43310 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43311 # A "../" for each directory in $ac_dir_suffix.
43312 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43313else
43314 ac_dir_suffix= ac_top_builddir=
43315fi
43316
43317case $srcdir in
43318 .) # No --srcdir option. We are building in place.
43319 ac_srcdir=.
43320 if test -z "$ac_top_builddir"; then
43321 ac_top_srcdir=.
43322 else
43323 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43324 fi ;;
43325 [\\/]* | ?:[\\/]* ) # Absolute path.
43326 ac_srcdir=$srcdir$ac_dir_suffix;
43327 ac_top_srcdir=$srcdir ;;
43328 *) # Relative path.
43329 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43330 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43331esac
ac1cb8d3
VS
43332
43333# Do not use `cd foo && pwd` to compute absolute paths, because
43334# the directories may not exist.
43335case `pwd` in
43336.) ac_abs_builddir="$ac_dir";;
43337*)
43338 case "$ac_dir" in
43339 .) ac_abs_builddir=`pwd`;;
43340 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43341 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43342 esac;;
43343esac
43344case $ac_abs_builddir in
43345.) ac_abs_top_builddir=${ac_top_builddir}.;;
43346*)
43347 case ${ac_top_builddir}. in
43348 .) ac_abs_top_builddir=$ac_abs_builddir;;
43349 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43350 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43351 esac;;
43352esac
43353case $ac_abs_builddir in
43354.) ac_abs_srcdir=$ac_srcdir;;
43355*)
43356 case $ac_srcdir in
43357 .) ac_abs_srcdir=$ac_abs_builddir;;
43358 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43359 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43360 esac;;
43361esac
43362case $ac_abs_builddir in
43363.) ac_abs_top_srcdir=$ac_top_srcdir;;
43364*)
43365 case $ac_top_srcdir in
43366 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43367 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43368 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43369 esac;;
43370esac
a848cd7e
SC
43371
43372
43373 cd $ac_dir
43374
43375 # Check for guested configure; otherwise get Cygnus style configure.
43376 if test -f $ac_srcdir/configure.gnu; then
43377 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43378 elif test -f $ac_srcdir/configure; then
43379 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43380 elif test -f $ac_srcdir/configure.in; then
43381 ac_sub_configure=$ac_configure
43382 else
43383 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43384echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43385 ac_sub_configure=
43386 fi
43387
43388 # The recursion is here.
43389 if test -n "$ac_sub_configure"; then
43390 # Make the cache file name correct relative to the subdirectory.
43391 case $cache_file in
43392 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43393 *) # Relative path.
ac1cb8d3 43394 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43395 esac
43396
43397 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43398echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43399 # The eval makes quoting arguments work.
43400 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43401 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43402 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43403echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43404 { (exit 1); exit 1; }; }
43405 fi
43406
2cbbc68d 43407 cd $ac_popdir
a848cd7e
SC
43408 done
43409fi
43410
43411
43412echo
77ffb593 43413echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43414echo ""
4d4ff94c 43415echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43416echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43417
77ffb593
JS
43418echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43419echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43420echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43421
77ffb593
JS
43422echo " What level of wxWidgets compatibility should be enabled?"
43423echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43424echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43425
77ffb593 43426echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43427echo " jpeg ${wxUSE_LIBJPEG-none}"
43428echo " png ${wxUSE_LIBPNG-none}"
43429echo " regex ${wxUSE_REGEX}"
43430echo " tiff ${wxUSE_LIBTIFF-none}"
43431if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43432echo " xpm ${wxUSE_LIBXPM-none}"
43433fi
43434echo " zlib ${wxUSE_ZLIB}"
43435echo " odbc ${wxUSE_ODBC}"
43436echo " expat ${wxUSE_EXPAT}"
43437echo " libmspack ${wxUSE_LIBMSPACK}"
43438echo " sdl ${wxUSE_LIBSDL}"
d1c38808 43439echo " gnomeprint ${wxUSE_LIBGNOMEPRINT}"
a848cd7e
SC
43440
43441echo ""
43442