]> git.saurik.com Git - wxWidgets.git/blame - configure
Check to see if -ext o option is required to get compiler to write
[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.
81f90336 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.4.
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'
81f90336
MW
273PACKAGE_VERSION='2.5.4'
274PACKAGE_STRING='wxWidgets 2.5.4'
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"
dae87f93 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
81f90336 797\`configure' configures wxWidgets 2.5.4 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
81f90336 863 short | recursive ) echo "Configuration of wxWidgets 2.5.4:";;
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
81f90336 906 --enable-arcstream use wxArchive streams
a848cd7e 907 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
911 --enable-dialupman use dialup network classes
912 --enable-dynlib use wxLibrary class for DLL loading
913 --enable-dynamicloader use (new) wxDynamicLibrary class
914 --enable-exceptions build exception-safe library
915 --enable-ffile use wxFFile class
916 --enable-file use wxFile class
917 --enable-filesystem use virtual file systems classes
918 --enable-fontmap use font encodings conversion classes
919 --enable-fs_inet use virtual HTTP/FTP filesystems
920 --enable-fs_zip use virtual ZIP filesystems
921 --enable-geometry use geometry class
922 --enable-log use logging system
923 --enable-longlong use wxLongLong class
924 --enable-mimetype use wxMimeTypesManager
925 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
926 --enable-snglinst use wxSingleInstanceChecker class
927 --enable-streams use wxStream etc classes
928 --enable-std_iostreams use standard C++ stream classes
929 --enable-stopwatch use wxStopWatch class
930 --enable-sysoptions use wxSystemOptions
931 --enable-textbuf use wxTextBuffer class
932 --enable-textfile use wxTextFile class
933 --enable-timer use wxTimer class
934 --enable-unicode compile wxString with Unicode support
935 --enable-sound use wxSound class
3b57de8b 936 --enable-mediactrl use wxMediaCtrl class
77ffb593 937 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 938 --enable-zipstream use wxZip streams
a848cd7e
SC
939 --enable-url use wxURL class
940 --enable-protocol use wxProtocol class
941 --enable-protocol-http HTTP support in wxProtocol
942 --enable-protocol-ftp FTP support in wxProtocol
943 --enable-protocol-file FILE support in wxProtocol
944 --enable-threads use threads
945 --enable-docview use document view architecture
946 --enable-help use help subsystem
947 --enable-mshtmlhelp use MS HTML Help (win32)
948 --enable-html use wxHTML sub-library
949 --enable-htmlhelp use wxHTML-based help
9a8f0513 950 --enable-xrc use XRC resources sub-library
a848cd7e
SC
951 --enable-constraints use layout-constraints system
952 --enable-printarch use printing architecture
953 --enable-mdi use multiple document interface architecture
8a7b1113 954 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
955 --enable-loggui use standard GUI logger
956 --enable-logwin use wxLogWindow
957 --enable-logdialog use wxLogDialog
646b6ec1 958 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
959 --enable-postscript use wxPostscriptDC device context (default for gtk+)
960 --enable-prologio not available; see contrib
961 --enable-resources not available; see contrib
962 --enable-clipboard use wxClipboard class
963 --enable-dnd use Drag'n'Drop classes
964 --enable-metafile use win32 metafiles
965 --enable-controls use all usual controls
966 --enable-accel use accelerators
967 --enable-button use wxButton class
968 --enable-bmpbutton use wxBitmapButton class
969 --enable-calendar use wxCalendarCtrl class
970 --enable-caret use wxCaret class
971 --enable-checkbox use wxCheckBox class
972 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
973 --enable-choice use wxChoice class
92bbdbcd 974 --enable-choicebook use wxChoicebook class
a848cd7e 975 --enable-combobox use wxComboBox class
da98e9be 976 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
977 --enable-display use wxDisplay class
978 --enable-gauge use wxGauge class
979 --enable-grid use wxGrid class
980 --enable-imaglist use wxImageList class
981 --enable-listbook use wxListbook class
982 --enable-listbox use wxListBox class
983 --enable-listctrl use wxListCtrl class
984 --enable-notebook use wxNotebook class
985 --enable-radiobox use wxRadioBox class
986 --enable-radiobtn use wxRadioButton class
987 --enable-sash use wxSashWindow class
988 --enable-scrollbar use wxScrollBar class and scrollable windows
989 --enable-slider use wxSlider class
990 --enable-spinbtn use wxSpinButton class
991 --enable-spinctrl use wxSpinCtrl class
992 --enable-splitter use wxSplitterWindow class
993 --enable-statbmp use wxStaticBitmap class
994 --enable-statbox use wxStaticBox class
995 --enable-statline use wxStaticLine class
996 --enable-stattext use wxStaticText class
997 --enable-statusbar use wxStatusBar class
998 --enable-tabdialog use wxTabControl class
999 --enable-textctrl use wxTextCtrl class
1000 --enable-togglebtn use wxToggleButton class
1001 --enable-toolbar use wxToolBar class
1002 --enable-tbarnative use native wxToolBar class
1003 --enable-tbarsmpl use wxToolBarSimple class
1004 --enable-treectrl use wxTreeCtrl class
1005 --enable-tipwindow use wxTipWindow class
1006 --enable-popupwin use wxPopUpWindow class
1007 --enable-commondlg use all common dialogs
1008 --enable-choicedlg use wxChoiceDialog
1009 --enable-coldlg use wxColourDialog
1010 --enable-filedlg use wxFileDialog
1011 --enable-finddlg use wxFindReplaceDialog
1012 --enable-fontdlg use wxFontDialog
1013 --enable-dirdlg use wxDirDialog
1014 --enable-msgdlg use wxMessageDialog
1015 --enable-numberdlg use wxNumberEntryDialog
1016 --enable-splash use wxSplashScreen
1017 --enable-textdlg use wxTextDialog
1018 --enable-tipdlg use startup tips
1019 --enable-progressdlg use wxProgressDialog
1020 --enable-wizarddlg use wxWizard
1021 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1022 --enable-miniframe use wxMiniFrame class
1023 --enable-tooltips use wxToolTip class
1024 --enable-splines use spline drawing code
1025 --enable-validators use wxValidator and derived classes
1026 --enable-busyinfo use wxBusyInfo
4cb1d3da 1027 --enable-joystick use wxJoystick
a848cd7e
SC
1028 --enable-metafiles use wxMetaFile (Windows only)
1029 --enable-dragimage use wxDragImage
1030 --enable-accessibility enable accessibility support
1031 --enable-palette use wxPalette class
1032 --enable-image use wxImage class
1033 --enable-gif use gif images (GIF file format)
1034 --enable-pcx use pcx images (PCX file format)
1035 --enable-iff use iff images (IFF file format)
1036 --enable-pnm use pnm images (PNM file format)
1037 --enable-xpm use xpm images (XPM file format)
1038 --enable-icocur use Windows ICO and CUR formats
77ffb593 1039 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1040 --enable-vendor=VENDOR vendor name (win32 DLL only)
1041 --disable-largefile omit support for large files
1042 --disable-gtktest do not try to compile and run a test GTK+ program
1043 --disable-gtktest Do not try to compile and run a test GTK program
1044 --disable-sdltest Do not try to compile and run a test SDL program
1045 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1046 --disable-precomp-headers
1047 don't use precompiled headers even if compiler can
a848cd7e
SC
1048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-gtk use GTK+
1053 --with-motif use Motif/Lesstif
1054 --with-mac use Mac OS X
1055 --with-cocoa use Cocoa
1056 --with-wine use Wine
1057 --with-msw use MS-Windows
1058 --with-pm use OS/2 Presentation Manager
1059 --with-mgl use SciTech MGL
1060 --with-microwin use MicroWindows
1061 --with-x11 use X11
1062 --with-libpng use libpng (PNG image format)
1063 --with-libjpeg use libjpeg (JPEG file format)
1064 --with-libtiff use libtiff (TIFF file format)
1065 --with-libxpm use libxpm (XPM file format)
1066 --with-libmspack use libmspack (CHM help files loading)
1067 --with-sdl use SDL for audio on Unix
d51253e8 1068 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1069 --with-opengl use OpenGL (or Mesa)
1070 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1071 --with-regex enable support for wxRegEx class
1072 --with-zlib use zlib for LZW compression
1073 --with-odbc use the IODBC and wxODBC classes
1074 --with-expat enable XML support using expat parser
ceec2216 1075 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1076 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1077 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1078 --with-x use the X Window System
1079 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1080 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1081 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1082 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1083 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1084
1085Some influential environment variables:
dcc1b6ad
VS
1086 CC C compiler command
1087 CFLAGS C compiler flags
1088 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1089 nonstandard directory <lib dir>
1090 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1091 headers in a nonstandard directory <include dir>
1092 CPP C preprocessor
1093 CXX C++ compiler command
1094 CXXFLAGS C++ compiler flags
1095 CXXCPP C++ preprocessor
a848cd7e
SC
1096
1097Use these variables to override the choices made by `configure' or to help
1098it to find libraries and programs with nonstandard names/locations.
1099
77ffb593 1100Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1101_ACEOF
1102fi
1103
1104if test "$ac_init_help" = "recursive"; then
1105 # If there are subdirs, report their specific --help.
1106 ac_popdir=`pwd`
1107 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1108 test -d $ac_dir || continue
1109 ac_builddir=.
1110
1111if test "$ac_dir" != .; then
1112 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1113 # A "../" for each directory in $ac_dir_suffix.
1114 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1115else
1116 ac_dir_suffix= ac_top_builddir=
1117fi
1118
1119case $srcdir in
1120 .) # No --srcdir option. We are building in place.
1121 ac_srcdir=.
1122 if test -z "$ac_top_builddir"; then
1123 ac_top_srcdir=.
1124 else
1125 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1126 fi ;;
1127 [\\/]* | ?:[\\/]* ) # Absolute path.
1128 ac_srcdir=$srcdir$ac_dir_suffix;
1129 ac_top_srcdir=$srcdir ;;
1130 *) # Relative path.
1131 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1132 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1133esac
ac1cb8d3
VS
1134
1135# Do not use `cd foo && pwd` to compute absolute paths, because
1136# the directories may not exist.
1137case `pwd` in
1138.) ac_abs_builddir="$ac_dir";;
1139*)
1140 case "$ac_dir" in
1141 .) ac_abs_builddir=`pwd`;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1143 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_top_builddir=${ac_top_builddir}.;;
1148*)
1149 case ${ac_top_builddir}. in
1150 .) ac_abs_top_builddir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1152 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1153 esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_srcdir=$ac_srcdir;;
1157*)
1158 case $ac_srcdir in
1159 .) ac_abs_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1161 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1162 esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_srcdir=$ac_top_srcdir;;
1166*)
1167 case $ac_top_srcdir in
1168 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1170 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1171 esac;;
1172esac
a848cd7e
SC
1173
1174 cd $ac_dir
1175 # Check for guested configure; otherwise get Cygnus style configure.
1176 if test -f $ac_srcdir/configure.gnu; then
1177 echo
1178 $SHELL $ac_srcdir/configure.gnu --help=recursive
1179 elif test -f $ac_srcdir/configure; then
1180 echo
1181 $SHELL $ac_srcdir/configure --help=recursive
1182 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1183 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1184 echo
1185 $ac_configure --help
1186 else
1187 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1188 fi
89be85c2 1189 cd $ac_popdir
a848cd7e
SC
1190 done
1191fi
1192
1193test -n "$ac_init_help" && exit 0
1194if $ac_init_version; then
1195 cat <<\_ACEOF
81f90336 1196wxWidgets configure 2.5.4
ac1cb8d3 1197generated by GNU Autoconf 2.59
a848cd7e 1198
ac1cb8d3 1199Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1200This configure script is free software; the Free Software Foundation
1201gives unlimited permission to copy, distribute and modify it.
1202_ACEOF
1203 exit 0
1204fi
1205exec 5>config.log
1206cat >&5 <<_ACEOF
1207This file contains any messages produced by compilers while
1208running configure, to aid debugging if configure makes a mistake.
1209
81f90336 1210It was created by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 1211generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1212
1213 $ $0 $@
1214
1215_ACEOF
1216{
1217cat <<_ASUNAME
1218## --------- ##
1219## Platform. ##
1220## --------- ##
1221
1222hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1223uname -m = `(uname -m) 2>/dev/null || echo unknown`
1224uname -r = `(uname -r) 2>/dev/null || echo unknown`
1225uname -s = `(uname -s) 2>/dev/null || echo unknown`
1226uname -v = `(uname -v) 2>/dev/null || echo unknown`
1227
1228/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1229/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1230
1231/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1232/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1233/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1234hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1235/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1236/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1237/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1238
1239_ASUNAME
1240
1241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1242for as_dir in $PATH
1243do
1244 IFS=$as_save_IFS
1245 test -z "$as_dir" && as_dir=.
1246 echo "PATH: $as_dir"
1247done
1248
1249} >&5
1250
1251cat >&5 <<_ACEOF
1252
1253
1254## ----------- ##
1255## Core tests. ##
1256## ----------- ##
1257
1258_ACEOF
1259
1260
1261# Keep a trace of the command line.
1262# Strip out --no-create and --no-recursion so they do not pile up.
1263# Strip out --silent because we don't want to record it for future runs.
1264# Also quote any args containing shell meta-characters.
1265# Make two passes to allow for proper duplicate-argument suppression.
1266ac_configure_args=
1267ac_configure_args0=
1268ac_configure_args1=
1269ac_sep=
1270ac_must_keep_next=false
1271for ac_pass in 1 2
1272do
1273 for ac_arg
1274 do
1275 case $ac_arg in
1276 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 continue ;;
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 esac
1283 case $ac_pass in
1284 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1285 2)
1286 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1287 if test $ac_must_keep_next = true; then
ac1cb8d3 1288 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1289 else
ac1cb8d3
VS
1290 case $ac_arg in
1291 *=* | --config-cache | -C | -disable-* | --disable-* \
1292 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1293 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1294 | -with-* | --with-* | -without-* | --without-* | --x)
1295 case "$ac_configure_args0 " in
1296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1297 esac
1298 ;;
1299 -* ) ac_must_keep_next=true ;;
1300 esac
a848cd7e
SC
1301 fi
1302 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1303 # Get rid of the leading space.
1304 ac_sep=" "
1305 ;;
1306 esac
1307 done
1308done
1309$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1310$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1311
1312# When interrupted or exit'd, cleanup temporary files, and complete
1313# config.log. We remove comments because anyway the quotes in there
1314# would cause problems or look ugly.
1315# WARNING: Be sure not to use single quotes in there, as some shells,
1316# such as our DU 5.0 friend, will then `close' the trap.
1317trap 'exit_status=$?
1318 # Save into config.log some information that might help in debugging.
1319 {
1320 echo
1321
1322 cat <<\_ASBOX
1323## ---------------- ##
1324## Cache variables. ##
1325## ---------------- ##
1326_ASBOX
1327 echo
1328 # The following way of writing the cache mishandles newlines in values,
1329{
1330 (set) 2>&1 |
1331 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1332 *ac_space=\ *)
1333 sed -n \
ac1cb8d3
VS
1334 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1336 ;;
1337 *)
1338 sed -n \
ac1cb8d3 1339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1340 ;;
1341 esac;
1342}
1343 echo
1344
1345 cat <<\_ASBOX
1346## ----------------- ##
1347## Output variables. ##
1348## ----------------- ##
1349_ASBOX
1350 echo
1351 for ac_var in $ac_subst_vars
1352 do
1353 eval ac_val=$`echo $ac_var`
1354 echo "$ac_var='"'"'$ac_val'"'"'"
1355 done | sort
1356 echo
1357
1358 if test -n "$ac_subst_files"; then
1359 cat <<\_ASBOX
1360## ------------- ##
1361## Output files. ##
1362## ------------- ##
1363_ASBOX
1364 echo
1365 for ac_var in $ac_subst_files
1366 do
1367 eval ac_val=$`echo $ac_var`
ac1cb8d3 1368 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1369 done | sort
1370 echo
1371 fi
1372
1373 if test -s confdefs.h; then
1374 cat <<\_ASBOX
1375## ----------- ##
1376## confdefs.h. ##
1377## ----------- ##
1378_ASBOX
1379 echo
1380 sed "/^$/d" confdefs.h | sort
1381 echo
1382 fi
1383 test "$ac_signal" != 0 &&
1384 echo "$as_me: caught signal $ac_signal"
1385 echo "$as_me: exit $exit_status"
1386 } >&5
ac1cb8d3 1387 rm -f core *.core &&
a848cd7e
SC
1388 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1389 exit $exit_status
1390 ' 0
1391for ac_signal in 1 2 13 15; do
1392 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1393done
1394ac_signal=0
1395
1396# confdefs.h avoids OS command line length limits that DEFS can exceed.
1397rm -rf conftest* confdefs.h
1398# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1399echo >confdefs.h
1400
1401# Predefined preprocessor variables.
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_NAME "$PACKAGE_NAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_VERSION "$PACKAGE_VERSION"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_STRING "$PACKAGE_STRING"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1425_ACEOF
1426
1427
1428# Let the site file select an alternate cache file if it wants to.
1429# Prefer explicitly selected file to automatically selected ones.
1430if test -z "$CONFIG_SITE"; then
1431 if test "x$prefix" != xNONE; then
1432 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1433 else
1434 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1435 fi
1436fi
1437for ac_site_file in $CONFIG_SITE; do
1438 if test -r "$ac_site_file"; then
1439 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1440echo "$as_me: loading site script $ac_site_file" >&6;}
1441 sed 's/^/| /' "$ac_site_file" >&5
1442 . "$ac_site_file"
1443 fi
1444done
1445
1446if test -r "$cache_file"; then
1447 # Some versions of bash will fail to source /dev/null (special
1448 # files actually), so we avoid doing that.
1449 if test -f "$cache_file"; then
1450 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1451echo "$as_me: loading cache $cache_file" >&6;}
1452 case $cache_file in
1453 [\\/]* | ?:[\\/]* ) . $cache_file;;
1454 *) . ./$cache_file;;
1455 esac
1456 fi
1457else
1458 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1459echo "$as_me: creating cache $cache_file" >&6;}
1460 >$cache_file
1461fi
1462
1463# Check that the precious variables saved in the cache have kept the same
1464# value.
1465ac_cache_corrupted=false
1466for ac_var in `(set) 2>&1 |
ac1cb8d3 1467 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1468 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1469 eval ac_new_set=\$ac_env_${ac_var}_set
1470 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1471 eval ac_new_val="\$ac_env_${ac_var}_value"
1472 case $ac_old_set,$ac_new_set in
1473 set,)
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1475echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1477 ,set)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,);;
1482 *)
1483 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1484 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1485echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1486 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1487echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1488 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1489echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1490 ac_cache_corrupted=:
a848cd7e
SC
1491 fi;;
1492 esac
1493 # Pass precious variables to config.status.
1494 if test "$ac_new_set" = set; then
1495 case $ac_new_val in
1496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1497 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1498 *) ac_arg=$ac_var=$ac_new_val ;;
1499 esac
1500 case " $ac_configure_args " in
1501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1502 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 esac
1504 fi
1505done
1506if $ac_cache_corrupted; then
1507 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1508echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1509 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1510echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1511 { (exit 1); exit 1; }; }
1512fi
1513
1514ac_ext=c
1515ac_cpp='$CPP $CPPFLAGS'
1516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1518ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549ac_aux_dir=
1550for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1551 if 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/install.sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install.sh -c"
1558 break
1559 elif test -f $ac_dir/shtool; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/shtool install -c"
1562 break
1563 fi
1564done
1565if test -z "$ac_aux_dir"; then
1566 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1567echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1568 { (exit 1); exit 1; }; }
1569fi
1570ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1571ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1572ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1573
1574# Make sure we can run config.sub.
1575$ac_config_sub sun4 >/dev/null 2>&1 ||
1576 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1577echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580echo "$as_me:$LINENO: checking build system type" >&5
1581echo $ECHO_N "checking build system type... $ECHO_C" >&6
1582if test "${ac_cv_build+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_build_alias=$build_alias
1586test -z "$ac_cv_build_alias" &&
1587 ac_cv_build_alias=`$ac_config_guess`
1588test -z "$ac_cv_build_alias" &&
1589 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1590echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1591 { (exit 1); exit 1; }; }
1592ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1594echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1596
1597fi
1598echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1599echo "${ECHO_T}$ac_cv_build" >&6
1600build=$ac_cv_build
1601build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606echo "$as_me:$LINENO: checking host system type" >&5
1607echo $ECHO_N "checking host system type... $ECHO_C" >&6
1608if test "${ac_cv_host+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611 ac_cv_host_alias=$host_alias
1612test -z "$ac_cv_host_alias" &&
1613 ac_cv_host_alias=$ac_cv_build_alias
1614ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1616echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1618
1619fi
1620echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1621echo "${ECHO_T}$ac_cv_host" >&6
1622host=$ac_cv_host
1623host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626
1627
1628echo "$as_me:$LINENO: checking target system type" >&5
1629echo $ECHO_N "checking target system type... $ECHO_C" >&6
1630if test "${ac_cv_target+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 ac_cv_target_alias=$target_alias
1634test "x$ac_cv_target_alias" = "x" &&
1635 ac_cv_target_alias=$ac_cv_host_alias
1636ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1643echo "${ECHO_T}$ac_cv_target" >&6
1644target=$ac_cv_target
1645target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650# The aliases save the names the user supplied, while $host etc.
1651# will get canonicalized.
1652test -n "$target_alias" &&
1653 test "$program_prefix$program_suffix$program_transform_name" = \
1654 NONENONEs,x,x, &&
1655 program_prefix=${target_alias}-
1656
1657
1658
ceec2216
RL
1659wx_major_version_number=2
1660wx_minor_version_number=5
e41c39d6
RD
1661wx_release_number=4
1662wx_subrelease_number=0
a848cd7e 1663
ceec2216
RL
1664WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1665WX_VERSION=$WX_RELEASE.$wx_release_number
1666WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1667
ceec2216 1668WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1669
e41c39d6 1670WX_CURRENT=4
a848cd7e 1671WX_REVISION=0
e41c39d6 1672WX_AGE=4
a848cd7e
SC
1673
1674
1675
1676USE_UNIX=1
1677USE_OS2=0
1678USE_WIN32=0
1679USE_DOS=0
1680USE_BEOS=0
1681USE_MAC=0
1682
1683USE_AIX=
1684USE_BSD= USE_DARWIN= USE_FREEBSD=
1685USE_GNU= USE_HPUX=
1686USE_LINUX=
1687USE_NETBSD=
1688USE_OPENBSD=
1689USE_OSF= USE_SGI=
1690USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1691USE_ULTRIX=
1692USE_UNIXWARE=
1693
1694USE_ALPHA=
1695
1696NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1697
1698ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1699
1700DEFAULT_wxUSE_COCOA=0
1701DEFAULT_wxUSE_GTK=0
1702DEFAULT_wxUSE_MAC=0
1703DEFAULT_wxUSE_MGL=0
1704DEFAULT_wxUSE_MICROWIN=0
1705DEFAULT_wxUSE_MOTIF=0
1706DEFAULT_wxUSE_MSW=0
1707DEFAULT_wxUSE_PM=0
1708DEFAULT_wxUSE_X11=0
1709
1710DEFAULT_DEFAULT_wxUSE_COCOA=0
1711DEFAULT_DEFAULT_wxUSE_GTK=0
1712DEFAULT_DEFAULT_wxUSE_MAC=0
1713DEFAULT_DEFAULT_wxUSE_MGL=0
1714DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1715DEFAULT_DEFAULT_wxUSE_MOTIF=0
1716DEFAULT_DEFAULT_wxUSE_MSW=0
1717DEFAULT_DEFAULT_wxUSE_PM=0
1718DEFAULT_DEFAULT_wxUSE_X11=0
1719
1720PROGRAM_EXT=
1721SO_SUFFIX=so
1722SAMPLES_RPATH_FLAG=
1723SAMPLES_RPATH_POSTLINK=
1724
1725case "${host}" in
1726 *-hp-hpux* )
1727 USE_HPUX=1
1728 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1729 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1730 SO_SUFFIX=sl
1731 cat >>confdefs.h <<\_ACEOF
1732#define __HPUX__ 1
1733_ACEOF
1734
1735 ;;
1736 *-*-linux* )
1737 USE_LINUX=1
1738 cat >>confdefs.h <<\_ACEOF
1739#define __LINUX__ 1
1740_ACEOF
1741
1742 TMP=`uname -m`
1743 if test "x$TMP" = "xalpha"; then
1744 USE_ALPHA=1
1745 cat >>confdefs.h <<\_ACEOF
1746#define __ALPHA__ 1
1747_ACEOF
1748
1749 fi
1750 DEFAULT_DEFAULT_wxUSE_GTK=1
1751 ;;
1752 *-*-gnu* | *-*-k*bsd*-gnu )
1753 USE_GNU=1
1754 TMP=`uname -m`
1755 if test "x$TMP" = "xalpha"; then
1756 USE_ALPHA=1
1757 cat >>confdefs.h <<\_ACEOF
1758#define __ALPHA__ 1
1759_ACEOF
1760
1761 fi
1762 DEFAULT_DEFAULT_wxUSE_GTK=1
1763 ;;
1764 *-*-irix5* | *-*-irix6* )
1765 USE_SGI=1
1766 USE_SVR4=1
1767 cat >>confdefs.h <<\_ACEOF
1768#define __SGI__ 1
1769_ACEOF
1770
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SVR4__ 1
1773_ACEOF
1774
1775 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1776 ;;
1777 *-*-solaris2* )
1778 USE_SUN=1
1779 USE_SOLARIS=1
1780 USE_SVR4=1
1781 cat >>confdefs.h <<\_ACEOF
1782#define __SUN__ 1
1783_ACEOF
1784
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SOLARIS__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SVR4__ 1
1791_ACEOF
1792
1793 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1794 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1795 ;;
1796 *-*-sunos4* )
1797 USE_SUN=1
1798 USE_SUNOS=1
1799 USE_BSD=1
1800 cat >>confdefs.h <<\_ACEOF
1801#define __SUN__ 1
1802_ACEOF
1803
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUNOS__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __BSD__ 1
1810_ACEOF
1811
1812 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1813 ;;
1814 *-*-freebsd*)
1815 USE_BSD=1
1816 USE_FREEBSD=1
1817 cat >>confdefs.h <<\_ACEOF
1818#define __FREEBSD__ 1
1819_ACEOF
1820
1821 cat >>confdefs.h <<\_ACEOF
1822#define __BSD__ 1
1823_ACEOF
1824
1825 DEFAULT_DEFAULT_wxUSE_GTK=1
1826 ;;
1827 *-*-openbsd*)
1828 USE_BSD=1
1829 USE_OPENBSD=1
1830 cat >>confdefs.h <<\_ACEOF
1831#define __OPENBSD__ 1
1832_ACEOF
1833
1834 cat >>confdefs.h <<\_ACEOF
1835#define __BSD__ 1
1836_ACEOF
1837
1838 DEFAULT_DEFAULT_wxUSE_GTK=1
1839 ;;
1840 *-*-netbsd*)
1841 USE_BSD=1
1842 USE_NETBSD=1
1843 cat >>confdefs.h <<\_ACEOF
1844#define __NETBSD__ 1
1845_ACEOF
1846
1847 cat >>confdefs.h <<\_ACEOF
1848#define __BSD__ 1
1849_ACEOF
1850
1851 DEFAULT_DEFAULT_wxUSE_GTK=1
1852 ;;
1853 *-*-osf* )
1854 USE_ALPHA=1
1855 USE_OSF=1
1856 cat >>confdefs.h <<\_ACEOF
1857#define __ALPHA__ 1
1858_ACEOF
1859
1860 cat >>confdefs.h <<\_ACEOF
1861#define __OSF__ 1
1862_ACEOF
1863
1864 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1865 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1866 ;;
1867 *-*-dgux5* )
1868 USE_ALPHA=1
1869 USE_SVR4=1
1870 cat >>confdefs.h <<\_ACEOF
1871#define __ALPHA__ 1
1872_ACEOF
1873
1874 cat >>confdefs.h <<\_ACEOF
1875#define __SVR4__ 1
1876_ACEOF
1877
1878 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1879 ;;
1880 *-*-sysv5* )
1881 USE_SYSV=1
1882 USE_SVR4=1
1883 cat >>confdefs.h <<\_ACEOF
1884#define __SYSV__ 1
1885_ACEOF
1886
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SVR4__ 1
1889_ACEOF
1890
1891 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1892 ;;
1893 *-*-aix* )
1894 USE_AIX=1
1895 USE_SYSV=1
1896 USE_SVR4=1
1897 SO_SUFFIX=a
1898 cat >>confdefs.h <<\_ACEOF
1899#define __AIX__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SYSV__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SVR4__ 1
1908_ACEOF
1909
1910 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1911 ;;
1912
1913 *-*-*UnixWare*)
1914 USE_SYSV=1
1915 USE_SVR4=1
1916 USE_UNIXWARE=1
1917 cat >>confdefs.h <<\_ACEOF
1918#define __UNIXWARE__ 1
1919_ACEOF
1920
1921 ;;
1922
1923 *-*-cygwin* | *-*-mingw32* )
1924 SO_SUFFIX=dll
1925 PROGRAM_EXT=".exe"
1926 RESCOMP=windres
1927 DEFAULT_DEFAULT_wxUSE_MSW=1
1928 ;;
1929
1930 *-pc-msdosdjgpp )
1931 USE_UNIX=0
1932 USE_DOS=1
1933 cat >>confdefs.h <<\_ACEOF
1934#define __DOS__ 1
1935_ACEOF
1936
1937 PROGRAM_EXT=".exe"
1938 DEFAULT_DEFAULT_wxUSE_MGL=1
1939 LIBS="$LIBS -lstdc++"
1940 ;;
1941
1942 *-pc-os2_emx | *-pc-os2-emx )
1943 cat >>confdefs.h <<\_ACEOF
1944#define __EMX__ 1
1945_ACEOF
1946
1947 USE_OS2=1
1948 cat >>confdefs.h <<\_ACEOF
1949#define __OS2__ 1
1950_ACEOF
1951
1952 PROGRAM_EXT=".exe"
1953 DEFAULT_DEFAULT_wxUSE_PM=1
1954 CXX=gcc
1955 LDFLAGS="$LDFLAGS -Zcrtdll"
1956 ac_executable_extensions=".exe"
1957 export ac_executable_extensions
1958 ac_save_IFS="$IFS"
1959 IFS='\\'
1960 ac_TEMP_PATH=
1961 for ac_dir in $PATH; do
1962 IFS=$ac_save_IFS
1963 if test -z "$ac_TEMP_PATH"; then
1964 ac_TEMP_PATH="$ac_dir"
1965 else
1966 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1967 fi
1968 done
1969 export PATH="$ac_TEMP_PATH"
1970 unset ac_TEMP_PATH
1971 ;;
1972
1973 powerpc-*-darwin* )
1974 USE_BSD=1
1975 USE_DARWIN=1
1976 SO_SUFFIX=dylib
1977 cat >>confdefs.h <<\_ACEOF
1978#define __BSD__ 1
1979_ACEOF
1980
1981 cat >>confdefs.h <<\_ACEOF
1982#define __DARWIN__ 1
a848cd7e
SC
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define TARGET_CARBON 1
1987_ACEOF
1988
1989 DEFAULT_DEFAULT_wxUSE_MAC=1
1990 ;;
1e9e8aba
DE
1991 powerpc-apple-macos* )
1992 USE_UNIX=0
1993 ac_cv_c_bigendian=yes
1994 SO_SUFFIX=shlib
1995 DEFAULT_DEFAULT_wxUSE_MAC=1
1996 ;;
a848cd7e
SC
1997
1998 *-*-beos* )
1999 USE_BEOS=1
2000 cat >>confdefs.h <<\_ACEOF
2001#define __BEOS__ 1
2002_ACEOF
2003
2004 ;;
2005
2006 *)
2007 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2008echo "$as_me: error: unknown system type ${host}." >&2;}
2009 { (exit 1); exit 1; }; }
2010esac
2011
2012
2013
2014
2015 wx_arg_cache_file="configarg.cache"
2016 echo "loading argument cache $wx_arg_cache_file"
2017 rm -f ${wx_arg_cache_file}.tmp
2018 touch ${wx_arg_cache_file}.tmp
2019 touch ${wx_arg_cache_file}
2020
2021
2022DEBUG_CONFIGURE=0
2023if test $DEBUG_CONFIGURE = 1; then
2024 DEFAULT_wxUSE_UNIVERSAL=no
2025 DEFAULT_wxUSE_STL=no
2026
2027 DEFAULT_wxUSE_NANOX=no
2028
2029 DEFAULT_wxUSE_THREADS=yes
2030
2031 DEFAULT_wxUSE_SHARED=yes
2032 DEFAULT_wxUSE_OPTIMISE=no
2033 DEFAULT_wxUSE_PROFILE=no
2034 DEFAULT_wxUSE_NO_DEPS=no
2035 DEFAULT_wxUSE_NO_RTTI=no
2036 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2037 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2038 DEFAULT_wxUSE_PERMISSIVE=no
2039 DEFAULT_wxUSE_DEBUG_FLAG=yes
2040 DEFAULT_wxUSE_DEBUG_INFO=yes
2041 DEFAULT_wxUSE_DEBUG_GDB=yes
2042 DEFAULT_wxUSE_MEM_TRACING=no
2043 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2044 DEFAULT_wxUSE_DMALLOC=no
2045 DEFAULT_wxUSE_APPLE_IEEE=no
2046
2047 DEFAULT_wxUSE_EXCEPTIONS=no
2048 DEFAULT_wxUSE_LOG=yes
2049 DEFAULT_wxUSE_LOGWINDOW=no
2050 DEFAULT_wxUSE_LOGGUI=no
2051 DEFAULT_wxUSE_LOGDIALOG=no
2052
2053 DEFAULT_wxUSE_GUI=yes
2054 DEFAULT_wxUSE_CONTROLS=no
2055
2056 DEFAULT_wxUSE_REGEX=no
2057 DEFAULT_wxUSE_XML=no
2058 DEFAULT_wxUSE_EXPAT=no
2059 DEFAULT_wxUSE_ZLIB=no
2060 DEFAULT_wxUSE_LIBPNG=no
2061 DEFAULT_wxUSE_LIBJPEG=no
2062 DEFAULT_wxUSE_LIBTIFF=no
2063 DEFAULT_wxUSE_LIBXPM=no
2064 DEFAULT_wxUSE_LIBMSPACK=no
2065 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2066 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2067 DEFAULT_wxUSE_ODBC=no
2068 DEFAULT_wxUSE_OPENGL=no
2069
2070 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2071 DEFAULT_wxUSE_STACKWALKER=no
a848cd7e
SC
2072 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2073 DEFAULT_wxUSE_STD_IOSTREAM=no
2074 DEFAULT_wxUSE_CMDLINE_PARSER=no
2075 DEFAULT_wxUSE_DATETIME=no
2076 DEFAULT_wxUSE_TIMER=no
2077 DEFAULT_wxUSE_STOPWATCH=no
2078 DEFAULT_wxUSE_FILE=no
2079 DEFAULT_wxUSE_FFILE=no
2080 DEFAULT_wxUSE_TEXTBUFFER=no
2081 DEFAULT_wxUSE_TEXTFILE=no
2082 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2083 DEFAULT_wxUSE_MEDIACTRL=no
2084 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2085 DEFAULT_wxUSE_INTL=no
2086 DEFAULT_wxUSE_CONFIG=no
2087 DEFAULT_wxUSE_FONTMAP=no
2088 DEFAULT_wxUSE_STREAMS=no
2089 DEFAULT_wxUSE_SOCKETS=no
2090 DEFAULT_wxUSE_OLE=no
2091 DEFAULT_wxUSE_DATAOBJ=no
2092 DEFAULT_wxUSE_DIALUP_MANAGER=no
2093 DEFAULT_wxUSE_JOYSTICK=no
2094 DEFAULT_wxUSE_DYNLIB_CLASS=no
2095 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2096 DEFAULT_wxUSE_LONGLONG=no
2097 DEFAULT_wxUSE_GEOMETRY=no
2098
2099 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2100 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2101 DEFAULT_wxUSE_POSTSCRIPT=no
2102
2103 DEFAULT_wxUSE_CLIPBOARD=no
2104 DEFAULT_wxUSE_TOOLTIPS=no
2105 DEFAULT_wxUSE_DRAG_AND_DROP=no
2106 DEFAULT_wxUSE_DRAGIMAGE=no
2107 DEFAULT_wxUSE_SPLINES=no
2108
8a7b1113 2109 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2110 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2111 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2112 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2113
2114 DEFAULT_wxUSE_RESOURCES=no
2115 DEFAULT_wxUSE_CONSTRAINTS=no
2116 DEFAULT_wxUSE_IPC=no
2117 DEFAULT_wxUSE_HELP=no
2118 DEFAULT_wxUSE_MS_HTML_HELP=no
2119 DEFAULT_wxUSE_WXHTML_HELP=no
2120 DEFAULT_wxUSE_TREELAYOUT=no
2121 DEFAULT_wxUSE_METAFILE=no
2122 DEFAULT_wxUSE_MIMETYPE=no
2123 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2124 DEFAULT_wxUSE_PROTOCOL=no
2125 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2126 DEFAULT_wxUSE_PROTOCOL_FTP=no
2127 DEFAULT_wxUSE_PROTOCOL_FILE=no
2128 DEFAULT_wxUSE_URL=no
2129
2130 DEFAULT_wxUSE_COMMONDLGS=no
2131 DEFAULT_wxUSE_CHOICEDLG=no
2132 DEFAULT_wxUSE_COLOURDLG=no
2133 DEFAULT_wxUSE_DIRDLG=no
2134 DEFAULT_wxUSE_FILEDLG=no
2135 DEFAULT_wxUSE_FINDREPLDLG=no
2136 DEFAULT_wxUSE_FONTDLG=no
2137 DEFAULT_wxUSE_MSGDLG=no
2138 DEFAULT_wxUSE_NUMBERDLG=no
2139 DEFAULT_wxUSE_TEXTDLG=no
2140 DEFAULT_wxUSE_SPLASH=no
2141 DEFAULT_wxUSE_STARTUP_TIPS=no
2142 DEFAULT_wxUSE_PROGRESSDLG=no
2143 DEFAULT_wxUSE_WIZARDDLG=no
2144
2145 DEFAULT_wxUSE_MENUS=no
2146 DEFAULT_wxUSE_MINIFRAME=no
2147 DEFAULT_wxUSE_HTML=no
9a8f0513 2148 DEFAULT_wxUSE_XRC=no
646b6ec1 2149 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2150 DEFAULT_wxUSE_FILESYSTEM=no
2151 DEFAULT_wxUSE_FS_INET=no
2152 DEFAULT_wxUSE_FS_ZIP=no
2153 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2154 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2155 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2156 DEFAULT_wxUSE_VALIDATORS=no
2157
2158 DEFAULT_wxUSE_ACCEL=no
2159 DEFAULT_wxUSE_BUTTON=no
2160 DEFAULT_wxUSE_BMPBUTTON=no
2161 DEFAULT_wxUSE_CALCTRL=no
2162 DEFAULT_wxUSE_CARET=no
2163 DEFAULT_wxUSE_CHECKBOX=no
2164 DEFAULT_wxUSE_CHECKLST=no
2165 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2166 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2167 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2168 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2169 DEFAULT_wxUSE_DISPLAY=no
2170 DEFAULT_wxUSE_GAUGE=no
2171 DEFAULT_wxUSE_GRID=no
2172 DEFAULT_wxUSE_IMAGLIST=no
2173 DEFAULT_wxUSE_LISTBOOK=no
2174 DEFAULT_wxUSE_LISTBOX=no
2175 DEFAULT_wxUSE_LISTCTRL=no
2176 DEFAULT_wxUSE_NOTEBOOK=no
2177 DEFAULT_wxUSE_RADIOBOX=no
2178 DEFAULT_wxUSE_RADIOBTN=no
2179 DEFAULT_wxUSE_SASH=no
2180 DEFAULT_wxUSE_SCROLLBAR=no
2181 DEFAULT_wxUSE_SLIDER=no
2182 DEFAULT_wxUSE_SPINBTN=no
2183 DEFAULT_wxUSE_SPINCTRL=no
2184 DEFAULT_wxUSE_SPLITTER=no
2185 DEFAULT_wxUSE_STATBMP=no
2186 DEFAULT_wxUSE_STATBOX=no
2187 DEFAULT_wxUSE_STATLINE=no
2188 DEFAULT_wxUSE_STATTEXT=no
2189 DEFAULT_wxUSE_STATUSBAR=yes
2190 DEFAULT_wxUSE_TABDIALOG=no
2191 DEFAULT_wxUSE_TEXTCTRL=no
2192 DEFAULT_wxUSE_TOGGLEBTN=no
2193 DEFAULT_wxUSE_TOOLBAR=no
2194 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2195 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2196 DEFAULT_wxUSE_TREECTRL=no
2197 DEFAULT_wxUSE_POPUPWIN=no
2198 DEFAULT_wxUSE_TIPWINDOW=no
2199
2200 DEFAULT_wxUSE_UNICODE=no
2201 DEFAULT_wxUSE_UNICODE_MSLU=no
2202 DEFAULT_wxUSE_WCSRTOMBS=no
2203
2204 DEFAULT_wxUSE_PALETTE=no
2205 DEFAULT_wxUSE_IMAGE=no
2206 DEFAULT_wxUSE_GIF=no
2207 DEFAULT_wxUSE_PCX=no
2208 DEFAULT_wxUSE_PNM=no
2209 DEFAULT_wxUSE_IFF=no
2210 DEFAULT_wxUSE_XPM=no
2211 DEFAULT_wxUSE_ICO_CUR=no
2212 DEFAULT_wxUSE_ACCESSIBILITY=no
2213
2214 DEFAULT_wxUSE_MONOLITHIC=no
2215 DEFAULT_wxUSE_PLUGINS=no
2216 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2217else
2218 DEFAULT_wxUSE_UNIVERSAL=no
2219 DEFAULT_wxUSE_STL=no
2220
2221 DEFAULT_wxUSE_NANOX=no
2222
2223 DEFAULT_wxUSE_THREADS=yes
2224
2225 DEFAULT_wxUSE_SHARED=yes
2226 DEFAULT_wxUSE_OPTIMISE=yes
2227 DEFAULT_wxUSE_PROFILE=no
2228 DEFAULT_wxUSE_NO_DEPS=no
2229 DEFAULT_wxUSE_NO_RTTI=no
2230 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2231 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2232 DEFAULT_wxUSE_PERMISSIVE=no
2233 DEFAULT_wxUSE_DEBUG_FLAG=no
2234 DEFAULT_wxUSE_DEBUG_INFO=no
2235 DEFAULT_wxUSE_DEBUG_GDB=no
2236 DEFAULT_wxUSE_MEM_TRACING=no
2237 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2238 DEFAULT_wxUSE_DMALLOC=no
2239 DEFAULT_wxUSE_APPLE_IEEE=yes
2240
2241 DEFAULT_wxUSE_EXCEPTIONS=yes
2242 DEFAULT_wxUSE_LOG=yes
2243 DEFAULT_wxUSE_LOGWINDOW=yes
2244 DEFAULT_wxUSE_LOGGUI=yes
2245 DEFAULT_wxUSE_LOGDIALOG=yes
2246
2247 DEFAULT_wxUSE_GUI=yes
2248
2249 DEFAULT_wxUSE_REGEX=yes
2250 DEFAULT_wxUSE_XML=yes
2251 DEFAULT_wxUSE_EXPAT=yes
2252 DEFAULT_wxUSE_ZLIB=yes
2253 DEFAULT_wxUSE_LIBPNG=yes
2254 DEFAULT_wxUSE_LIBJPEG=yes
2255 DEFAULT_wxUSE_LIBTIFF=yes
2256 DEFAULT_wxUSE_LIBXPM=yes
2257 DEFAULT_wxUSE_LIBMSPACK=yes
2258 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2259 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2260 DEFAULT_wxUSE_ODBC=no
2261 DEFAULT_wxUSE_OPENGL=no
2262
2263 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2264 DEFAULT_wxUSE_STACKWALKER=yes
a848cd7e
SC
2265 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2266 DEFAULT_wxUSE_STD_IOSTREAM=no
2267 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2268 DEFAULT_wxUSE_DATETIME=yes
2269 DEFAULT_wxUSE_TIMER=yes
2270 DEFAULT_wxUSE_STOPWATCH=yes
2271 DEFAULT_wxUSE_FILE=yes
2272 DEFAULT_wxUSE_FFILE=yes
2273 DEFAULT_wxUSE_TEXTBUFFER=yes
2274 DEFAULT_wxUSE_TEXTFILE=yes
2275 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2276 DEFAULT_wxUSE_MEDIACTRL=no
2277 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2278 DEFAULT_wxUSE_INTL=yes
2279 DEFAULT_wxUSE_CONFIG=yes
2280 DEFAULT_wxUSE_FONTMAP=yes
2281 DEFAULT_wxUSE_STREAMS=yes
2282 DEFAULT_wxUSE_SOCKETS=yes
2283 DEFAULT_wxUSE_OLE=yes
2284 DEFAULT_wxUSE_DATAOBJ=yes
2285 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2286 DEFAULT_wxUSE_JOYSTICK=yes
2287 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2288 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2289 DEFAULT_wxUSE_LONGLONG=yes
2290 DEFAULT_wxUSE_GEOMETRY=yes
2291
2292 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2293 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2294 DEFAULT_wxUSE_POSTSCRIPT=yes
2295
2296 DEFAULT_wxUSE_CLIPBOARD=yes
2297 DEFAULT_wxUSE_TOOLTIPS=yes
2298 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2299 DEFAULT_wxUSE_DRAGIMAGE=yes
2300 DEFAULT_wxUSE_SPLINES=yes
2301
8a7b1113 2302 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2303 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2304 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2305 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2306
2307 DEFAULT_wxUSE_RESOURCES=no
2308 DEFAULT_wxUSE_CONSTRAINTS=yes
2309 DEFAULT_wxUSE_IPC=yes
2310 DEFAULT_wxUSE_HELP=yes
2311 DEFAULT_wxUSE_MS_HTML_HELP=yes
2312 DEFAULT_wxUSE_WXHTML_HELP=yes
2313 DEFAULT_wxUSE_TREELAYOUT=yes
2314 DEFAULT_wxUSE_METAFILE=yes
2315 DEFAULT_wxUSE_MIMETYPE=yes
2316 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2317 DEFAULT_wxUSE_PROTOCOL=yes
2318 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2319 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2320 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2321 DEFAULT_wxUSE_URL=yes
2322
2323 DEFAULT_wxUSE_COMMONDLGS=yes
2324 DEFAULT_wxUSE_CHOICEDLG=yes
2325 DEFAULT_wxUSE_COLOURDLG=yes
2326 DEFAULT_wxUSE_DIRDLG=yes
2327 DEFAULT_wxUSE_FILEDLG=yes
2328 DEFAULT_wxUSE_FINDREPLDLG=yes
2329 DEFAULT_wxUSE_FONTDLG=yes
2330 DEFAULT_wxUSE_MSGDLG=yes
2331 DEFAULT_wxUSE_NUMBERDLG=yes
2332 DEFAULT_wxUSE_TEXTDLG=yes
2333 DEFAULT_wxUSE_SPLASH=yes
2334 DEFAULT_wxUSE_STARTUP_TIPS=yes
2335 DEFAULT_wxUSE_PROGRESSDLG=yes
2336 DEFAULT_wxUSE_WIZARDDLG=yes
2337
2338 DEFAULT_wxUSE_MENUS=yes
2339 DEFAULT_wxUSE_MINIFRAME=yes
2340 DEFAULT_wxUSE_HTML=yes
9a8f0513 2341 DEFAULT_wxUSE_XRC=yes
646b6ec1 2342 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2343 DEFAULT_wxUSE_FILESYSTEM=yes
2344 DEFAULT_wxUSE_FS_INET=yes
2345 DEFAULT_wxUSE_FS_ZIP=yes
2346 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2347 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2348 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2349 DEFAULT_wxUSE_VALIDATORS=yes
2350
2351 DEFAULT_wxUSE_ACCEL=yes
2352 DEFAULT_wxUSE_BUTTON=yes
2353 DEFAULT_wxUSE_BMPBUTTON=yes
2354 DEFAULT_wxUSE_CALCTRL=yes
2355 DEFAULT_wxUSE_CARET=yes
2356 DEFAULT_wxUSE_CHECKBOX=yes
2357 DEFAULT_wxUSE_CHECKLST=yes
2358 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2359 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2360 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2361 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2362 DEFAULT_wxUSE_DISPLAY=yes
2363 DEFAULT_wxUSE_GAUGE=yes
2364 DEFAULT_wxUSE_GRID=yes
2365 DEFAULT_wxUSE_IMAGLIST=yes
2366 DEFAULT_wxUSE_LISTBOOK=yes
2367 DEFAULT_wxUSE_LISTBOX=yes
2368 DEFAULT_wxUSE_LISTCTRL=yes
2369 DEFAULT_wxUSE_NOTEBOOK=yes
2370 DEFAULT_wxUSE_RADIOBOX=yes
2371 DEFAULT_wxUSE_RADIOBTN=yes
2372 DEFAULT_wxUSE_SASH=yes
2373 DEFAULT_wxUSE_SCROLLBAR=yes
2374 DEFAULT_wxUSE_SLIDER=yes
2375 DEFAULT_wxUSE_SPINBTN=yes
2376 DEFAULT_wxUSE_SPINCTRL=yes
2377 DEFAULT_wxUSE_SPLITTER=yes
2378 DEFAULT_wxUSE_STATBMP=yes
2379 DEFAULT_wxUSE_STATBOX=yes
2380 DEFAULT_wxUSE_STATLINE=yes
2381 DEFAULT_wxUSE_STATTEXT=yes
2382 DEFAULT_wxUSE_STATUSBAR=yes
2383 DEFAULT_wxUSE_TABDIALOG=no
2384 DEFAULT_wxUSE_TEXTCTRL=yes
2385 DEFAULT_wxUSE_TOGGLEBTN=yes
2386 DEFAULT_wxUSE_TOOLBAR=yes
2387 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2388 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2389 DEFAULT_wxUSE_TREECTRL=yes
2390 DEFAULT_wxUSE_POPUPWIN=yes
2391 DEFAULT_wxUSE_TIPWINDOW=yes
2392
2393 DEFAULT_wxUSE_UNICODE=no
2394 DEFAULT_wxUSE_UNICODE_MSLU=yes
2395 DEFAULT_wxUSE_WCSRTOMBS=no
2396
2397 DEFAULT_wxUSE_PALETTE=yes
2398 DEFAULT_wxUSE_IMAGE=yes
2399 DEFAULT_wxUSE_GIF=yes
2400 DEFAULT_wxUSE_PCX=yes
2401 DEFAULT_wxUSE_IFF=no
2402 DEFAULT_wxUSE_PNM=yes
2403 DEFAULT_wxUSE_XPM=yes
2404 DEFAULT_wxUSE_ICO_CUR=yes
2405 DEFAULT_wxUSE_ACCESSIBILITY=no
2406
2407 DEFAULT_wxUSE_MONOLITHIC=no
2408 DEFAULT_wxUSE_PLUGINS=no
2409 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2410
2411 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2412fi
2413
2414
2415
2416for toolkit in `echo $ALL_TOOLKITS`; do
2417 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2418 if test "x$LINE" != "x" ; then
2419 has_toolkit_in_cache=1
2420 eval "DEFAULT_$LINE"
2421 eval "CACHE_$toolkit=1"
2422 fi
2423done
2424
2425
2426
2427 enablestring=
2428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2429echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2430 no_cache=0
2431 # Check whether --enable-gui or --disable-gui was given.
2432if test "${enable_gui+set}" = set; then
2433 enableval="$enable_gui"
2434
2435 if test "$enableval" = yes; then
2436 ac_cv_use_gui='wxUSE_GUI=yes'
2437 else
2438 ac_cv_use_gui='wxUSE_GUI=no'
2439 fi
2440
2441else
2442
2443 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
2450 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2451
2452fi;
2453
2454 eval "$ac_cv_use_gui"
2455 if test "$no_cache" != 1; then
2456 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2457 fi
2458
2459 if test "$wxUSE_GUI" = yes; then
2460 echo "$as_me:$LINENO: result: yes" >&5
2461echo "${ECHO_T}yes" >&6
2462 else
2463 echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6
2465 fi
2466
2467
2468 enablestring=
2469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2470echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2471 no_cache=0
2472 # Check whether --enable-monolithic or --disable-monolithic was given.
2473if test "${enable_monolithic+set}" = set; then
2474 enableval="$enable_monolithic"
2475
2476 if test "$enableval" = yes; then
2477 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2478 else
2479 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2480 fi
2481
2482else
2483
2484 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2485 if test "x$LINE" != x ; then
2486 eval "DEFAULT_$LINE"
2487 else
2488 no_cache=1
2489 fi
2490
2491 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2492
2493fi;
2494
2495 eval "$ac_cv_use_monolithic"
2496 if test "$no_cache" != 1; then
2497 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2498 fi
2499
2500 if test "$wxUSE_MONOLITHIC" = yes; then
2501 echo "$as_me:$LINENO: result: yes" >&5
2502echo "${ECHO_T}yes" >&6
2503 else
2504 echo "$as_me:$LINENO: result: no" >&5
2505echo "${ECHO_T}no" >&6
2506 fi
2507
2508
2509 enablestring=
2510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2511echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2512 no_cache=0
2513 # Check whether --enable-plugins or --disable-plugins was given.
2514if test "${enable_plugins+set}" = set; then
2515 enableval="$enable_plugins"
2516
2517 if test "$enableval" = yes; then
2518 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2519 else
2520 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2521 fi
2522
2523else
2524
2525 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2526 if test "x$LINE" != x ; then
2527 eval "DEFAULT_$LINE"
2528 else
2529 no_cache=1
2530 fi
2531
2532 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2533
2534fi;
2535
2536 eval "$ac_cv_use_plugins"
2537 if test "$no_cache" != 1; then
2538 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2539 fi
2540
2541 if test "$wxUSE_PLUGINS" = yes; then
2542 echo "$as_me:$LINENO: result: yes" >&5
2543echo "${ECHO_T}yes" >&6
2544 else
2545 echo "$as_me:$LINENO: result: no" >&5
2546echo "${ECHO_T}no" >&6
2547 fi
2548
2549
2550if test "$wxUSE_GUI" = "yes"; then
2551
2552
2553 enablestring=
2554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2555echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2556 no_cache=0
2557 # Check whether --enable-universal or --disable-universal was given.
2558if test "${enable_universal+set}" = set; then
2559 enableval="$enable_universal"
2560
2561 if test "$enableval" = yes; then
2562 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2563 else
2564 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2565 fi
2566
2567else
2568
2569 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2570 if test "x$LINE" != x ; then
2571 eval "DEFAULT_$LINE"
2572 else
2573 no_cache=1
2574 fi
2575
2576 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2577
2578fi;
2579
2580 eval "$ac_cv_use_universal"
2581 if test "$no_cache" != 1; then
2582 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2583 fi
2584
2585 if test "$wxUSE_UNIVERSAL" = yes; then
2586 echo "$as_me:$LINENO: result: yes" >&5
2587echo "${ECHO_T}yes" >&6
2588 else
2589 echo "$as_me:$LINENO: result: no" >&5
2590echo "${ECHO_T}no" >&6
2591 fi
2592
2593
2594# Check whether --with-gtk or --without-gtk was given.
2595if test "${with_gtk+set}" = set; then
2596 withval="$with_gtk"
2597 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2598fi;
2599
2600# Check whether --with-motif or --without-motif was given.
2601if test "${with_motif+set}" = set; then
2602 withval="$with_motif"
2603 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-mac or --without-mac was given.
2607if test "${with_mac+set}" = set; then
2608 withval="$with_mac"
c228d3a4 2609 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2610fi;
2611
2612# Check whether --with-cocoa or --without-cocoa was given.
2613if test "${with_cocoa+set}" = set; then
2614 withval="$with_cocoa"
c228d3a4 2615 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2616fi;
2617
2618# Check whether --with-wine or --without-wine was given.
2619if test "${with_wine+set}" = set; then
2620 withval="$with_wine"
2621 wxUSE_WINE="$withval" CACHE_WINE=1
2622fi;
2623
2624# Check whether --with-msw or --without-msw was given.
2625if test "${with_msw+set}" = set; then
2626 withval="$with_msw"
2627 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2628fi;
2629
2630# Check whether --with-pm or --without-pm was given.
2631if test "${with_pm+set}" = set; then
2632 withval="$with_pm"
2633 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2634fi;
2635
2636# Check whether --with-mgl or --without-mgl was given.
2637if test "${with_mgl+set}" = set; then
2638 withval="$with_mgl"
2639 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2640fi;
2641
2642# Check whether --with-microwin or --without-microwin was given.
2643if test "${with_microwin+set}" = set; then
2644 withval="$with_microwin"
2645 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-x11 or --without-x11 was given.
2649if test "${with_x11+set}" = set; then
2650 withval="$with_x11"
2651 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654 enablestring=
2655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2656echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2657 no_cache=0
2658 # Check whether --enable-nanox or --disable-nanox was given.
2659if test "${enable_nanox+set}" = set; then
2660 enableval="$enable_nanox"
2661
2662 if test "$enableval" = yes; then
2663 ac_cv_use_nanox='wxUSE_NANOX=yes'
2664 else
2665 ac_cv_use_nanox='wxUSE_NANOX=no'
2666 fi
2667
2668else
2669
2670 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2671 if test "x$LINE" != x ; then
2672 eval "DEFAULT_$LINE"
2673 else
2674 no_cache=1
2675 fi
2676
2677 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2678
2679fi;
2680
2681 eval "$ac_cv_use_nanox"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_NANOX" = yes; then
2687 echo "$as_me:$LINENO: result: yes" >&5
2688echo "${ECHO_T}yes" >&6
2689 else
2690 echo "$as_me:$LINENO: result: no" >&5
2691echo "${ECHO_T}no" >&6
2692 fi
2693
2694
2695
2696 enablestring=
2697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2698echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2699 no_cache=0
2700 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2701if test "${enable_gtk2+set}" = set; then
2702 enableval="$enable_gtk2"
2703
2704 if test "$enableval" = yes; then
2705 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2706 else
2707 ac_cv_use_gtk2='wxUSE_GTK2=no'
2708 fi
2709
2710else
2711
2712 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2713 if test "x$LINE" != x ; then
2714 eval "DEFAULT_$LINE"
2715 else
2716 no_cache=1
2717 fi
2718
2719 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2720
2721fi;
2722
2723 eval "$ac_cv_use_gtk2"
2724 if test "$no_cache" != 1; then
2725 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2726 fi
2727
2728 if test "$wxUSE_GTK2" = yes; then
2729 echo "$as_me:$LINENO: result: yes" >&5
2730echo "${ECHO_T}yes" >&6
2731 else
2732 echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6
2734 fi
2735
2736
2737 enablestring=
2738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2739echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2740 no_cache=0
2741 # Check whether --enable-gpe or --disable-gpe was given.
2742if test "${enable_gpe+set}" = set; then
2743 enableval="$enable_gpe"
2744
2745 if test "$enableval" = yes; then
2746 ac_cv_use_gpe='wxUSE_GPE=yes'
2747 else
2748 ac_cv_use_gpe='wxUSE_GPE=no'
2749 fi
2750
2751else
2752
2753 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2754 if test "x$LINE" != x ; then
2755 eval "DEFAULT_$LINE"
2756 else
2757 no_cache=1
2758 fi
2759
2760 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2761
2762fi;
2763
2764 eval "$ac_cv_use_gpe"
2765 if test "$no_cache" != 1; then
2766 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2767 fi
2768
2769 if test "$wxUSE_GPE" = yes; then
2770 echo "$as_me:$LINENO: result: yes" >&5
2771echo "${ECHO_T}yes" >&6
2772 else
2773 echo "$as_me:$LINENO: result: no" >&5
2774echo "${ECHO_T}no" >&6
2775 fi
2776
2777
2778
2779 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2780echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2781 no_cache=0
2782
2783# Check whether --with-libpng or --without-libpng was given.
2784if test "${with_libpng+set}" = set; then
2785 withval="$with_libpng"
2786
2787 if test "$withval" = yes; then
2788 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2789 elif test "$withval" = no; then
2790 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2791 elif test "$withval" = sys; then
2792 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2793 elif test "$withval" = builtin; then
2794 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2795 else
2796 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2797echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2798 { (exit 1); exit 1; }; }
2799 fi
2800
2801else
2802
2803 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2804 if test "x$LINE" != x ; then
2805 eval "DEFAULT_$LINE"
2806 else
2807 no_cache=1
2808 fi
2809
2810 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2811
2812fi;
2813
2814 eval "$ac_cv_use_libpng"
2815 if test "$no_cache" != 1; then
2816 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2817 fi
2818
2819 if test "$wxUSE_LIBPNG" = yes; then
2820 echo "$as_me:$LINENO: result: yes" >&5
2821echo "${ECHO_T}yes" >&6
2822 elif test "$wxUSE_LIBPNG" = no; then
2823 echo "$as_me:$LINENO: result: no" >&5
2824echo "${ECHO_T}no" >&6
2825 elif test "$wxUSE_LIBPNG" = sys; then
2826 echo "$as_me:$LINENO: result: system version" >&5
2827echo "${ECHO_T}system version" >&6
2828 elif test "$wxUSE_LIBPNG" = builtin; then
2829 echo "$as_me:$LINENO: result: builtin version" >&5
2830echo "${ECHO_T}builtin version" >&6
2831 else
2832 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2833echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2834 { (exit 1); exit 1; }; }
2835 fi
2836
2837
2838 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2839echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2840 no_cache=0
2841
2842# Check whether --with-libjpeg or --without-libjpeg was given.
2843if test "${with_libjpeg+set}" = set; then
2844 withval="$with_libjpeg"
2845
2846 if test "$withval" = yes; then
2847 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2848 elif test "$withval" = no; then
2849 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2850 elif test "$withval" = sys; then
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2852 elif test "$withval" = builtin; then
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2854 else
2855 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2856echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2857 { (exit 1); exit 1; }; }
2858 fi
2859
2860else
2861
2862 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2863 if test "x$LINE" != x ; then
2864 eval "DEFAULT_$LINE"
2865 else
2866 no_cache=1
2867 fi
2868
2869 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2870
2871fi;
2872
2873 eval "$ac_cv_use_libjpeg"
2874 if test "$no_cache" != 1; then
2875 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2876 fi
2877
2878 if test "$wxUSE_LIBJPEG" = yes; then
2879 echo "$as_me:$LINENO: result: yes" >&5
2880echo "${ECHO_T}yes" >&6
2881 elif test "$wxUSE_LIBJPEG" = no; then
2882 echo "$as_me:$LINENO: result: no" >&5
2883echo "${ECHO_T}no" >&6
2884 elif test "$wxUSE_LIBJPEG" = sys; then
2885 echo "$as_me:$LINENO: result: system version" >&5
2886echo "${ECHO_T}system version" >&6
2887 elif test "$wxUSE_LIBJPEG" = builtin; then
2888 echo "$as_me:$LINENO: result: builtin version" >&5
2889echo "${ECHO_T}builtin version" >&6
2890 else
2891 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2892echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2893 { (exit 1); exit 1; }; }
2894 fi
2895
2896
2897 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2898echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2899 no_cache=0
2900
2901# Check whether --with-libtiff or --without-libtiff was given.
2902if test "${with_libtiff+set}" = set; then
2903 withval="$with_libtiff"
2904
2905 if test "$withval" = yes; then
2906 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2907 elif test "$withval" = no; then
2908 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2909 elif test "$withval" = sys; then
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2911 elif test "$withval" = builtin; then
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2913 else
2914 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2915echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2916 { (exit 1); exit 1; }; }
2917 fi
2918
2919else
2920
2921 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2922 if test "x$LINE" != x ; then
2923 eval "DEFAULT_$LINE"
2924 else
2925 no_cache=1
2926 fi
2927
2928 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2929
2930fi;
2931
2932 eval "$ac_cv_use_libtiff"
2933 if test "$no_cache" != 1; then
2934 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2935 fi
2936
2937 if test "$wxUSE_LIBTIFF" = yes; then
2938 echo "$as_me:$LINENO: result: yes" >&5
2939echo "${ECHO_T}yes" >&6
2940 elif test "$wxUSE_LIBTIFF" = no; then
2941 echo "$as_me:$LINENO: result: no" >&5
2942echo "${ECHO_T}no" >&6
2943 elif test "$wxUSE_LIBTIFF" = sys; then
2944 echo "$as_me:$LINENO: result: system version" >&5
2945echo "${ECHO_T}system version" >&6
2946 elif test "$wxUSE_LIBTIFF" = builtin; then
2947 echo "$as_me:$LINENO: result: builtin version" >&5
2948echo "${ECHO_T}builtin version" >&6
2949 else
2950 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2951echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2952 { (exit 1); exit 1; }; }
2953 fi
2954
2955
2956 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2957echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2958 no_cache=0
2959
2960# Check whether --with-libxpm or --without-libxpm was given.
2961if test "${with_libxpm+set}" = set; then
2962 withval="$with_libxpm"
2963
2964 if test "$withval" = yes; then
2965 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2966 elif test "$withval" = no; then
2967 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2968 elif test "$withval" = sys; then
2969 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2970 elif test "$withval" = builtin; then
2971 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2972 else
2973 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2974echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2975 { (exit 1); exit 1; }; }
2976 fi
2977
2978else
2979
2980 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2981 if test "x$LINE" != x ; then
2982 eval "DEFAULT_$LINE"
2983 else
2984 no_cache=1
2985 fi
2986
2987 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2988
2989fi;
2990
2991 eval "$ac_cv_use_libxpm"
2992 if test "$no_cache" != 1; then
2993 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2994 fi
2995
2996 if test "$wxUSE_LIBXPM" = yes; then
2997 echo "$as_me:$LINENO: result: yes" >&5
2998echo "${ECHO_T}yes" >&6
2999 elif test "$wxUSE_LIBXPM" = no; then
3000 echo "$as_me:$LINENO: result: no" >&5
3001echo "${ECHO_T}no" >&6
3002 elif test "$wxUSE_LIBXPM" = sys; then
3003 echo "$as_me:$LINENO: result: system version" >&5
3004echo "${ECHO_T}system version" >&6
3005 elif test "$wxUSE_LIBXPM" = builtin; then
3006 echo "$as_me:$LINENO: result: builtin version" >&5
3007echo "${ECHO_T}builtin version" >&6
3008 else
3009 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3010echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3011 { (exit 1); exit 1; }; }
3012 fi
3013
3014
3015 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3016echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3017 no_cache=0
3018
3019# Check whether --with-libmspack or --without-libmspack was given.
3020if test "${with_libmspack+set}" = set; then
3021 withval="$with_libmspack"
3022
3023 if test "$withval" = yes; then
3024 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3025 else
3026 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3027 fi
3028
3029else
3030
3031 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3032 if test "x$LINE" != x ; then
3033 eval "DEFAULT_$LINE"
3034 else
3035 no_cache=1
3036 fi
3037
3038 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3039
3040fi;
3041
3042 eval "$ac_cv_use_libmspack"
3043 if test "$no_cache" != 1; then
3044 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3045 fi
3046
3047 if test "$wxUSE_LIBMSPACK" = yes; then
3048 echo "$as_me:$LINENO: result: yes" >&5
3049echo "${ECHO_T}yes" >&6
3050 else
3051 echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6
3053 fi
3054
3055
3056 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3057echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3058 no_cache=0
3059
3060# Check whether --with-sdl or --without-sdl was given.
3061if test "${with_sdl+set}" = set; then
3062 withval="$with_sdl"
3063
3064 if test "$withval" = yes; then
3065 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3066 else
3067 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3068 fi
3069
3070else
3071
3072 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3073 if test "x$LINE" != x ; then
3074 eval "DEFAULT_$LINE"
3075 else
3076 no_cache=1
3077 fi
3078
3079 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3080
3081fi;
3082
3083 eval "$ac_cv_use_sdl"
3084 if test "$no_cache" != 1; then
3085 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3086 fi
3087
3088 if test "$wxUSE_LIBSDL" = yes; then
3089 echo "$as_me:$LINENO: result: yes" >&5
3090echo "${ECHO_T}yes" >&6
3091 else
3092 echo "$as_me:$LINENO: result: no" >&5
3093echo "${ECHO_T}no" >&6
3094 fi
3095
3096
d1c38808
VZ
3097 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3098echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3099 no_cache=0
3100
3101# Check whether --with-gnomeprint or --without-gnomeprint was given.
3102if test "${with_gnomeprint+set}" = set; then
3103 withval="$with_gnomeprint"
3104
3105 if test "$withval" = yes; then
3106 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3107 else
3108 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3109 fi
3110
3111else
3112
3113 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3114 if test "x$LINE" != x ; then
3115 eval "DEFAULT_$LINE"
3116 else
3117 no_cache=1
3118 fi
3119
3120 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3121
3122fi;
3123
3124 eval "$ac_cv_use_gnomeprint"
3125 if test "$no_cache" != 1; then
3126 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3127 fi
3128
3129 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3130 echo "$as_me:$LINENO: result: yes" >&5
3131echo "${ECHO_T}yes" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134echo "${ECHO_T}no" >&6
3135 fi
3136
3137
a848cd7e
SC
3138 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3139echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3140 no_cache=0
3141
3142# Check whether --with-opengl or --without-opengl was given.
3143if test "${with_opengl+set}" = set; then
3144 withval="$with_opengl"
3145
3146 if test "$withval" = yes; then
3147 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3148 else
3149 ac_cv_use_opengl='wxUSE_OPENGL=no'
3150 fi
3151
3152else
3153
3154 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
3161 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3162
3163fi;
3164
3165 eval "$ac_cv_use_opengl"
3166 if test "$no_cache" != 1; then
3167 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3168 fi
3169
3170 if test "$wxUSE_OPENGL" = yes; then
3171 echo "$as_me:$LINENO: result: yes" >&5
3172echo "${ECHO_T}yes" >&6
3173 else
3174 echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
3176 fi
3177
3178
3179fi
3180
3181
3182 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3183echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3184 no_cache=0
3185
3186# Check whether --with-dmalloc or --without-dmalloc was given.
3187if test "${with_dmalloc+set}" = set; then
3188 withval="$with_dmalloc"
3189
3190 if test "$withval" = yes; then
3191 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3192 else
3193 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3194 fi
3195
3196else
3197
3198 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3199 if test "x$LINE" != x ; then
3200 eval "DEFAULT_$LINE"
3201 else
3202 no_cache=1
3203 fi
3204
3205 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3206
3207fi;
3208
3209 eval "$ac_cv_use_dmalloc"
3210 if test "$no_cache" != 1; then
3211 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3212 fi
3213
3214 if test "$wxUSE_DMALLOC" = yes; then
3215 echo "$as_me:$LINENO: result: yes" >&5
3216echo "${ECHO_T}yes" >&6
3217 else
3218 echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
3220 fi
3221
3222
3223 echo "$as_me:$LINENO: checking for --with-regex" >&5
3224echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3225 no_cache=0
3226
3227# Check whether --with-regex or --without-regex was given.
3228if test "${with_regex+set}" = set; then
3229 withval="$with_regex"
3230
3231 if test "$withval" = yes; then
3232 ac_cv_use_regex='wxUSE_REGEX=yes'
3233 elif test "$withval" = no; then
3234 ac_cv_use_regex='wxUSE_REGEX=no'
3235 elif test "$withval" = sys; then
3236 ac_cv_use_regex='wxUSE_REGEX=sys'
3237 elif test "$withval" = builtin; then
3238 ac_cv_use_regex='wxUSE_REGEX=builtin'
3239 else
3240 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3241echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3242 { (exit 1); exit 1; }; }
3243 fi
3244
3245else
3246
3247 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3248 if test "x$LINE" != x ; then
3249 eval "DEFAULT_$LINE"
3250 else
3251 no_cache=1
3252 fi
3253
3254 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3255
3256fi;
3257
3258 eval "$ac_cv_use_regex"
3259 if test "$no_cache" != 1; then
3260 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3261 fi
3262
3263 if test "$wxUSE_REGEX" = yes; then
3264 echo "$as_me:$LINENO: result: yes" >&5
3265echo "${ECHO_T}yes" >&6
3266 elif test "$wxUSE_REGEX" = no; then
3267 echo "$as_me:$LINENO: result: no" >&5
3268echo "${ECHO_T}no" >&6
3269 elif test "$wxUSE_REGEX" = sys; then
3270 echo "$as_me:$LINENO: result: system version" >&5
3271echo "${ECHO_T}system version" >&6
3272 elif test "$wxUSE_REGEX" = builtin; then
3273 echo "$as_me:$LINENO: result: builtin version" >&5
3274echo "${ECHO_T}builtin version" >&6
3275 else
3276 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3277echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3278 { (exit 1); exit 1; }; }
3279 fi
3280
3281
3282 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3283echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3284 no_cache=0
3285
3286# Check whether --with-zlib or --without-zlib was given.
3287if test "${with_zlib+set}" = set; then
3288 withval="$with_zlib"
3289
3290 if test "$withval" = yes; then
3291 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3292 elif test "$withval" = no; then
3293 ac_cv_use_zlib='wxUSE_ZLIB=no'
3294 elif test "$withval" = sys; then
3295 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3296 elif test "$withval" = builtin; then
3297 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3298 else
3299 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3300echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3301 { (exit 1); exit 1; }; }
3302 fi
3303
3304else
3305
3306 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3307 if test "x$LINE" != x ; then
3308 eval "DEFAULT_$LINE"
3309 else
3310 no_cache=1
3311 fi
3312
3313 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3314
3315fi;
3316
3317 eval "$ac_cv_use_zlib"
3318 if test "$no_cache" != 1; then
3319 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3320 fi
3321
3322 if test "$wxUSE_ZLIB" = yes; then
3323 echo "$as_me:$LINENO: result: yes" >&5
3324echo "${ECHO_T}yes" >&6
3325 elif test "$wxUSE_ZLIB" = no; then
3326 echo "$as_me:$LINENO: result: no" >&5
3327echo "${ECHO_T}no" >&6
3328 elif test "$wxUSE_ZLIB" = sys; then
3329 echo "$as_me:$LINENO: result: system version" >&5
3330echo "${ECHO_T}system version" >&6
3331 elif test "$wxUSE_ZLIB" = builtin; then
3332 echo "$as_me:$LINENO: result: builtin version" >&5
3333echo "${ECHO_T}builtin version" >&6
3334 else
3335 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3336echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3337 { (exit 1); exit 1; }; }
3338 fi
3339
3340
3341 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3342echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3343 no_cache=0
3344
3345# Check whether --with-odbc or --without-odbc was given.
3346if test "${with_odbc+set}" = set; then
3347 withval="$with_odbc"
3348
3349 if test "$withval" = yes; then
3350 ac_cv_use_odbc='wxUSE_ODBC=yes'
3351 elif test "$withval" = no; then
3352 ac_cv_use_odbc='wxUSE_ODBC=no'
3353 elif test "$withval" = sys; then
3354 ac_cv_use_odbc='wxUSE_ODBC=sys'
3355 elif test "$withval" = builtin; then
3356 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3357 else
3358 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3359echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3360 { (exit 1); exit 1; }; }
3361 fi
3362
3363else
3364
3365 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
3372 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3373
3374fi;
3375
3376 eval "$ac_cv_use_odbc"
3377 if test "$no_cache" != 1; then
3378 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3379 fi
3380
3381 if test "$wxUSE_ODBC" = yes; then
3382 echo "$as_me:$LINENO: result: yes" >&5
3383echo "${ECHO_T}yes" >&6
3384 elif test "$wxUSE_ODBC" = no; then
3385 echo "$as_me:$LINENO: result: no" >&5
3386echo "${ECHO_T}no" >&6
3387 elif test "$wxUSE_ODBC" = sys; then
3388 echo "$as_me:$LINENO: result: system version" >&5
3389echo "${ECHO_T}system version" >&6
3390 elif test "$wxUSE_ODBC" = builtin; then
3391 echo "$as_me:$LINENO: result: builtin version" >&5
3392echo "${ECHO_T}builtin version" >&6
3393 else
3394 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3395echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3396 { (exit 1); exit 1; }; }
3397 fi
3398
3399
3400 echo "$as_me:$LINENO: checking for --with-expat" >&5
3401echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3402 no_cache=0
3403
3404# Check whether --with-expat or --without-expat was given.
3405if test "${with_expat+set}" = set; then
3406 withval="$with_expat"
3407
3408 if test "$withval" = yes; then
3409 ac_cv_use_expat='wxUSE_EXPAT=yes'
3410 elif test "$withval" = no; then
3411 ac_cv_use_expat='wxUSE_EXPAT=no'
3412 elif test "$withval" = sys; then
3413 ac_cv_use_expat='wxUSE_EXPAT=sys'
3414 elif test "$withval" = builtin; then
3415 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3416 else
3417 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3418echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3419 { (exit 1); exit 1; }; }
3420 fi
3421
3422else
3423
3424 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3425 if test "x$LINE" != x ; then
3426 eval "DEFAULT_$LINE"
3427 else
3428 no_cache=1
3429 fi
3430
3431 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3432
3433fi;
3434
3435 eval "$ac_cv_use_expat"
3436 if test "$no_cache" != 1; then
3437 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3438 fi
3439
3440 if test "$wxUSE_EXPAT" = yes; then
3441 echo "$as_me:$LINENO: result: yes" >&5
3442echo "${ECHO_T}yes" >&6
3443 elif test "$wxUSE_EXPAT" = no; then
3444 echo "$as_me:$LINENO: result: no" >&5
3445echo "${ECHO_T}no" >&6
3446 elif test "$wxUSE_EXPAT" = sys; then
3447 echo "$as_me:$LINENO: result: system version" >&5
3448echo "${ECHO_T}system version" >&6
3449 elif test "$wxUSE_EXPAT" = builtin; then
3450 echo "$as_me:$LINENO: result: builtin version" >&5
3451echo "${ECHO_T}builtin version" >&6
3452 else
3453 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3454echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3455 { (exit 1); exit 1; }; }
3456 fi
3457
3458
3459
3460
3461 enablestring=
3462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3463echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3464 no_cache=0
3465 # Check whether --enable-shared or --disable-shared was given.
3466if test "${enable_shared+set}" = set; then
3467 enableval="$enable_shared"
3468
3469 if test "$enableval" = yes; then
3470 ac_cv_use_shared='wxUSE_SHARED=yes'
3471 else
3472 ac_cv_use_shared='wxUSE_SHARED=no'
3473 fi
3474
3475else
3476
3477 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3478 if test "x$LINE" != x ; then
3479 eval "DEFAULT_$LINE"
3480 else
3481 no_cache=1
3482 fi
3483
3484 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3485
3486fi;
3487
3488 eval "$ac_cv_use_shared"
3489 if test "$no_cache" != 1; then
3490 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3491 fi
3492
3493 if test "$wxUSE_SHARED" = yes; then
3494 echo "$as_me:$LINENO: result: yes" >&5
3495echo "${ECHO_T}yes" >&6
3496 else
3497 echo "$as_me:$LINENO: result: no" >&5
3498echo "${ECHO_T}no" >&6
3499 fi
3500
3501
3502 enablestring=
3503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3504echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3505 no_cache=0
3506 # Check whether --enable-optimise or --disable-optimise was given.
3507if test "${enable_optimise+set}" = set; then
3508 enableval="$enable_optimise"
3509
3510 if test "$enableval" = yes; then
3511 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3512 else
3513 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3514 fi
3515
3516else
3517
3518 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3519 if test "x$LINE" != x ; then
3520 eval "DEFAULT_$LINE"
3521 else
3522 no_cache=1
3523 fi
3524
3525 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3526
3527fi;
3528
3529 eval "$ac_cv_use_optimise"
3530 if test "$no_cache" != 1; then
3531 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3532 fi
3533
3534 if test "$wxUSE_OPTIMISE" = yes; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536echo "${ECHO_T}yes" >&6
3537 else
3538 echo "$as_me:$LINENO: result: no" >&5
3539echo "${ECHO_T}no" >&6
3540 fi
3541
3542
3543 enablestring=
3544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3545echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3546 no_cache=0
3547 # Check whether --enable-debug or --disable-debug was given.
3548if test "${enable_debug+set}" = set; then
3549 enableval="$enable_debug"
3550
3551 if test "$enableval" = yes; then
3552 ac_cv_use_debug='wxUSE_DEBUG=yes'
3553 else
3554 ac_cv_use_debug='wxUSE_DEBUG=no'
3555 fi
3556
3557else
3558
3559 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3560 if test "x$LINE" != x ; then
3561 eval "DEFAULT_$LINE"
3562 else
3563 no_cache=1
3564 fi
3565
3566 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3567
3568fi;
3569
3570 eval "$ac_cv_use_debug"
3571 if test "$no_cache" != 1; then
3572 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3573 fi
3574
3575 if test "$wxUSE_DEBUG" = yes; then
3576 echo "$as_me:$LINENO: result: yes" >&5
3577echo "${ECHO_T}yes" >&6
3578 else
3579 echo "$as_me:$LINENO: result: no" >&5
3580echo "${ECHO_T}no" >&6
3581 fi
3582
3583
3584 enablestring=
3585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3586echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3587 no_cache=0
3588 # Check whether --enable-stl or --disable-stl was given.
3589if test "${enable_stl+set}" = set; then
3590 enableval="$enable_stl"
3591
3592 if test "$enableval" = yes; then
3593 ac_cv_use_stl='wxUSE_STL=yes'
3594 else
3595 ac_cv_use_stl='wxUSE_STL=no'
3596 fi
3597
3598else
3599
3600 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3601 if test "x$LINE" != x ; then
3602 eval "DEFAULT_$LINE"
3603 else
3604 no_cache=1
3605 fi
3606
3607 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3608
3609fi;
3610
3611 eval "$ac_cv_use_stl"
3612 if test "$no_cache" != 1; then
3613 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3614 fi
3615
3616 if test "$wxUSE_STL" = yes; then
3617 echo "$as_me:$LINENO: result: yes" >&5
3618echo "${ECHO_T}yes" >&6
3619 else
3620 echo "$as_me:$LINENO: result: no" >&5
3621echo "${ECHO_T}no" >&6
3622 fi
3623
3624if test "$USE_OS2" = "1"; then
3625
3626 enablestring=
3627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3628echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3629 no_cache=0
3630 # Check whether --enable-omf or --disable-omf was given.
3631if test "${enable_omf+set}" = set; then
3632 enableval="$enable_omf"
3633
3634 if test "$enableval" = yes; then
3635 ac_cv_use_omf='wxUSE_OMF=yes'
3636 else
3637 ac_cv_use_omf='wxUSE_OMF=no'
3638 fi
3639
3640else
3641
3642 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3650
3651fi;
3652
3653 eval "$ac_cv_use_omf"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_OMF" = yes; then
3659 echo "$as_me:$LINENO: result: yes" >&5
3660echo "${ECHO_T}yes" >&6
3661 else
3662 echo "$as_me:$LINENO: result: no" >&5
3663echo "${ECHO_T}no" >&6
3664 fi
3665
3666fi
3667
3668if test "$wxUSE_DEBUG" = "yes"; then
3669 DEFAULT_wxUSE_DEBUG_FLAG=yes
3670 DEFAULT_wxUSE_DEBUG_INFO=yes
3671 BUILD=debug
3672elif test "$wxUSE_DEBUG" = "no"; then
3673 DEFAULT_wxUSE_DEBUG_FLAG=no
3674 DEFAULT_wxUSE_DEBUG_INFO=no
3675 BUILD=release
3676fi
3677
3678
3679 enablestring=
3680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3681echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3682 no_cache=0
3683 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3684if test "${enable_debug_flag+set}" = set; then
3685 enableval="$enable_debug_flag"
3686
3687 if test "$enableval" = yes; then
3688 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3689 else
3690 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3691 fi
3692
3693else
3694
3695 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3696 if test "x$LINE" != x ; then
3697 eval "DEFAULT_$LINE"
3698 else
3699 no_cache=1
3700 fi
3701
3702 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3703
3704fi;
3705
3706 eval "$ac_cv_use_debug_flag"
3707 if test "$no_cache" != 1; then
3708 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3709 fi
3710
3711 if test "$wxUSE_DEBUG_FLAG" = yes; then
3712 echo "$as_me:$LINENO: result: yes" >&5
3713echo "${ECHO_T}yes" >&6
3714 else
3715 echo "$as_me:$LINENO: result: no" >&5
3716echo "${ECHO_T}no" >&6
3717 fi
3718
3719
3720 enablestring=
3721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3722echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3723 no_cache=0
3724 # Check whether --enable-debug_info or --disable-debug_info was given.
3725if test "${enable_debug_info+set}" = set; then
3726 enableval="$enable_debug_info"
3727
3728 if test "$enableval" = yes; then
3729 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3730 else
3731 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3732 fi
3733
3734else
3735
3736 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3737 if test "x$LINE" != x ; then
3738 eval "DEFAULT_$LINE"
3739 else
3740 no_cache=1
3741 fi
3742
3743 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3744
3745fi;
3746
3747 eval "$ac_cv_use_debug_info"
3748 if test "$no_cache" != 1; then
3749 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3750 fi
3751
3752 if test "$wxUSE_DEBUG_INFO" = yes; then
3753 echo "$as_me:$LINENO: result: yes" >&5
3754echo "${ECHO_T}yes" >&6
3755 else
3756 echo "$as_me:$LINENO: result: no" >&5
3757echo "${ECHO_T}no" >&6
3758 fi
3759
3760
3761 enablestring=
3762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3763echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3764 no_cache=0
3765 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3766if test "${enable_debug_gdb+set}" = set; then
3767 enableval="$enable_debug_gdb"
3768
3769 if test "$enableval" = yes; then
3770 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3771 else
3772 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3773 fi
3774
3775else
3776
3777 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3778 if test "x$LINE" != x ; then
3779 eval "DEFAULT_$LINE"
3780 else
3781 no_cache=1
3782 fi
3783
3784 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3785
3786fi;
3787
3788 eval "$ac_cv_use_debug_gdb"
3789 if test "$no_cache" != 1; then
3790 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3791 fi
3792
3793 if test "$wxUSE_DEBUG_GDB" = yes; then
3794 echo "$as_me:$LINENO: result: yes" >&5
3795echo "${ECHO_T}yes" >&6
3796 else
3797 echo "$as_me:$LINENO: result: no" >&5
3798echo "${ECHO_T}no" >&6
3799 fi
3800
3801
3802 enablestring=
3803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3804echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3805 no_cache=0
3806 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3807if test "${enable_debug_cntxt+set}" = set; then
3808 enableval="$enable_debug_cntxt"
3809
3810 if test "$enableval" = yes; then
3811 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3812 else
3813 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3814 fi
3815
3816else
3817
3818 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3819 if test "x$LINE" != x ; then
3820 eval "DEFAULT_$LINE"
3821 else
3822 no_cache=1
3823 fi
3824
3825 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3826
3827fi;
3828
3829 eval "$ac_cv_use_debug_cntxt"
3830 if test "$no_cache" != 1; then
3831 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3832 fi
3833
3834 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3835 echo "$as_me:$LINENO: result: yes" >&5
3836echo "${ECHO_T}yes" >&6
3837 else
3838 echo "$as_me:$LINENO: result: no" >&5
3839echo "${ECHO_T}no" >&6
3840 fi
3841
3842
3843 enablestring=
3844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3845echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3846 no_cache=0
3847 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3848if test "${enable_mem_tracing+set}" = set; then
3849 enableval="$enable_mem_tracing"
3850
3851 if test "$enableval" = yes; then
3852 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3853 else
3854 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3855 fi
3856
3857else
3858
3859 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3860 if test "x$LINE" != x ; then
3861 eval "DEFAULT_$LINE"
3862 else
3863 no_cache=1
3864 fi
3865
3866 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3867
3868fi;
3869
3870 eval "$ac_cv_use_mem_tracing"
3871 if test "$no_cache" != 1; then
3872 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3873 fi
3874
3875 if test "$wxUSE_MEM_TRACING" = yes; then
3876 echo "$as_me:$LINENO: result: yes" >&5
3877echo "${ECHO_T}yes" >&6
3878 else
3879 echo "$as_me:$LINENO: result: no" >&5
3880echo "${ECHO_T}no" >&6
3881 fi
3882
3883
3884 enablestring=
3885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3886echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3887 no_cache=0
3888 # Check whether --enable-profile or --disable-profile was given.
3889if test "${enable_profile+set}" = set; then
3890 enableval="$enable_profile"
3891
3892 if test "$enableval" = yes; then
3893 ac_cv_use_profile='wxUSE_PROFILE=yes'
3894 else
3895 ac_cv_use_profile='wxUSE_PROFILE=no'
3896 fi
3897
3898else
3899
3900 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3901 if test "x$LINE" != x ; then
3902 eval "DEFAULT_$LINE"
3903 else
3904 no_cache=1
3905 fi
3906
3907 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3908
3909fi;
3910
3911 eval "$ac_cv_use_profile"
3912 if test "$no_cache" != 1; then
3913 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3914 fi
3915
3916 if test "$wxUSE_PROFILE" = yes; then
3917 echo "$as_me:$LINENO: result: yes" >&5
3918echo "${ECHO_T}yes" >&6
3919 else
3920 echo "$as_me:$LINENO: result: no" >&5
3921echo "${ECHO_T}no" >&6
3922 fi
3923
3924
3925 enablestring=
3926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3927echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3928 no_cache=0
3929 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3930if test "${enable_no_rtti+set}" = set; then
3931 enableval="$enable_no_rtti"
3932
3933 if test "$enableval" = yes; then
3934 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3935 else
3936 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3937 fi
3938
3939else
3940
3941 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3942 if test "x$LINE" != x ; then
3943 eval "DEFAULT_$LINE"
3944 else
3945 no_cache=1
3946 fi
3947
3948 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3949
3950fi;
3951
3952 eval "$ac_cv_use_no_rtti"
3953 if test "$no_cache" != 1; then
3954 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3955 fi
3956
3957 if test "$wxUSE_NO_RTTI" = yes; then
3958 echo "$as_me:$LINENO: result: yes" >&5
3959echo "${ECHO_T}yes" >&6
3960 else
3961 echo "$as_me:$LINENO: result: no" >&5
3962echo "${ECHO_T}no" >&6
3963 fi
3964
3965
3966 enablestring=
3967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3968echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3969 no_cache=0
3970 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3971if test "${enable_no_exceptions+set}" = set; then
3972 enableval="$enable_no_exceptions"
3973
3974 if test "$enableval" = yes; then
3975 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3976 else
3977 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3978 fi
3979
3980else
3981
3982 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3983 if test "x$LINE" != x ; then
3984 eval "DEFAULT_$LINE"
3985 else
3986 no_cache=1
3987 fi
3988
3989 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3990
3991fi;
3992
3993 eval "$ac_cv_use_no_exceptions"
3994 if test "$no_cache" != 1; then
3995 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3996 fi
3997
3998 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3999 echo "$as_me:$LINENO: result: yes" >&5
4000echo "${ECHO_T}yes" >&6
4001 else
4002 echo "$as_me:$LINENO: result: no" >&5
4003echo "${ECHO_T}no" >&6
4004 fi
4005
4006
4007 enablestring=
4008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4009echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4010 no_cache=0
4011 # Check whether --enable-permissive or --disable-permissive was given.
4012if test "${enable_permissive+set}" = set; then
4013 enableval="$enable_permissive"
4014
4015 if test "$enableval" = yes; then
4016 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4017 else
4018 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4019 fi
4020
4021else
4022
4023 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4024 if test "x$LINE" != x ; then
4025 eval "DEFAULT_$LINE"
4026 else
4027 no_cache=1
4028 fi
4029
4030 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4031
4032fi;
4033
4034 eval "$ac_cv_use_permissive"
4035 if test "$no_cache" != 1; then
4036 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4037 fi
4038
4039 if test "$wxUSE_PERMISSIVE" = yes; then
4040 echo "$as_me:$LINENO: result: yes" >&5
4041echo "${ECHO_T}yes" >&6
4042 else
4043 echo "$as_me:$LINENO: result: no" >&5
4044echo "${ECHO_T}no" >&6
4045 fi
4046
4047
4048 enablestring=
4049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4050echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4051 no_cache=0
4052 # Check whether --enable-no_deps or --disable-no_deps was given.
4053if test "${enable_no_deps+set}" = set; then
4054 enableval="$enable_no_deps"
4055
4056 if test "$enableval" = yes; then
4057 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4058 else
4059 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4060 fi
4061
4062else
4063
4064 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4065 if test "x$LINE" != x ; then
4066 eval "DEFAULT_$LINE"
4067 else
4068 no_cache=1
4069 fi
4070
4071 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4072
4073fi;
4074
4075 eval "$ac_cv_use_no_deps"
4076 if test "$no_cache" != 1; then
4077 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4078 fi
4079
4080 if test "$wxUSE_NO_DEPS" = yes; then
4081 echo "$as_me:$LINENO: result: yes" >&5
4082echo "${ECHO_T}yes" >&6
4083 else
4084 echo "$as_me:$LINENO: result: no" >&5
4085echo "${ECHO_T}no" >&6
4086 fi
4087
4088
4089
4090 enablestring=
4091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4092echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4093 no_cache=0
4094 # Check whether --enable-compat22 or --disable-compat22 was given.
4095if test "${enable_compat22+set}" = set; then
4096 enableval="$enable_compat22"
4097
4098 if test "$enableval" = yes; then
4099 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4100 else
4101 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4102 fi
4103
4104else
4105
4106 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4107 if test "x$LINE" != x ; then
4108 eval "DEFAULT_$LINE"
4109 else
4110 no_cache=1
4111 fi
4112
4113 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4114
4115fi;
4116
4117 eval "$ac_cv_use_compat22"
4118 if test "$no_cache" != 1; then
4119 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4120 fi
4121
4122 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4123 echo "$as_me:$LINENO: result: yes" >&5
4124echo "${ECHO_T}yes" >&6
4125 else
4126 echo "$as_me:$LINENO: result: no" >&5
4127echo "${ECHO_T}no" >&6
4128 fi
4129
4130
4131 enablestring=disable
4132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4133echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4134 no_cache=0
4135 # Check whether --enable-compat24 or --disable-compat24 was given.
4136if test "${enable_compat24+set}" = set; then
4137 enableval="$enable_compat24"
4138
4139 if test "$enableval" = yes; then
4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4141 else
4142 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4143 fi
4144
4145else
4146
4147 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4148 if test "x$LINE" != x ; then
4149 eval "DEFAULT_$LINE"
4150 else
4151 no_cache=1
4152 fi
4153
4154 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4155
4156fi;
4157
4158 eval "$ac_cv_use_compat24"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4164 echo "$as_me:$LINENO: result: yes" >&5
4165echo "${ECHO_T}yes" >&6
4166 else
4167 echo "$as_me:$LINENO: result: no" >&5
4168echo "${ECHO_T}no" >&6
4169 fi
4170
4171
ffa0583f
RL
4172
4173 enablestring=
4174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4175echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4176 no_cache=0
4177 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4178if test "${enable_rpath+set}" = set; then
4179 enableval="$enable_rpath"
ffa0583f
RL
4180
4181 if test "$enableval" = yes; then
4182 ac_cv_use_rpath='wxUSE_RPATH=yes'
4183 else
4184 ac_cv_use_rpath='wxUSE_RPATH=no'
4185 fi
4186
4187else
4188
4189 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
4196 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4197
a848cd7e
SC
4198fi;
4199
ffa0583f
RL
4200 eval "$ac_cv_use_rpath"
4201 if test "$no_cache" != 1; then
4202 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4203 fi
4204
4205 if test "$wxUSE_RPATH" = yes; then
4206 echo "$as_me:$LINENO: result: yes" >&5
4207echo "${ECHO_T}yes" >&6
4208 else
4209 echo "$as_me:$LINENO: result: no" >&5
4210echo "${ECHO_T}no" >&6
4211 fi
4212
a848cd7e
SC
4213
4214
4215
4216
4217 enablestring=
4218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4219echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4220 no_cache=0
4221 # Check whether --enable-intl or --disable-intl was given.
4222if test "${enable_intl+set}" = set; then
4223 enableval="$enable_intl"
4224
4225 if test "$enableval" = yes; then
4226 ac_cv_use_intl='wxUSE_INTL=yes'
4227 else
4228 ac_cv_use_intl='wxUSE_INTL=no'
4229 fi
4230
4231else
4232
4233 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4234 if test "x$LINE" != x ; then
4235 eval "DEFAULT_$LINE"
4236 else
4237 no_cache=1
4238 fi
4239
4240 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4241
4242fi;
4243
4244 eval "$ac_cv_use_intl"
4245 if test "$no_cache" != 1; then
4246 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4247 fi
4248
4249 if test "$wxUSE_INTL" = yes; then
4250 echo "$as_me:$LINENO: result: yes" >&5
4251echo "${ECHO_T}yes" >&6
4252 else
4253 echo "$as_me:$LINENO: result: no" >&5
4254echo "${ECHO_T}no" >&6
4255 fi
4256
4257
4258 enablestring=
4259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4260echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4261 no_cache=0
4262 # Check whether --enable-config or --disable-config was given.
4263if test "${enable_config+set}" = set; then
4264 enableval="$enable_config"
4265
4266 if test "$enableval" = yes; then
4267 ac_cv_use_config='wxUSE_CONFIG=yes'
4268 else
4269 ac_cv_use_config='wxUSE_CONFIG=no'
4270 fi
4271
4272else
4273
4274 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4275 if test "x$LINE" != x ; then
4276 eval "DEFAULT_$LINE"
4277 else
4278 no_cache=1
4279 fi
4280
4281 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4282
4283fi;
4284
4285 eval "$ac_cv_use_config"
4286 if test "$no_cache" != 1; then
4287 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4288 fi
4289
4290 if test "$wxUSE_CONFIG" = yes; then
4291 echo "$as_me:$LINENO: result: yes" >&5
4292echo "${ECHO_T}yes" >&6
4293 else
4294 echo "$as_me:$LINENO: result: no" >&5
4295echo "${ECHO_T}no" >&6
4296 fi
4297
4298
4299
4300 enablestring=
4301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4302echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4303 no_cache=0
4304 # Check whether --enable-protocols or --disable-protocols was given.
4305if test "${enable_protocols+set}" = set; then
4306 enableval="$enable_protocols"
4307
4308 if test "$enableval" = yes; then
4309 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4310 else
4311 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4312 fi
4313
4314else
4315
4316 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4317 if test "x$LINE" != x ; then
4318 eval "DEFAULT_$LINE"
4319 else
4320 no_cache=1
4321 fi
4322
4323 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4324
4325fi;
4326
4327 eval "$ac_cv_use_protocols"
4328 if test "$no_cache" != 1; then
4329 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4330 fi
4331
4332 if test "$wxUSE_PROTOCOL" = yes; then
4333 echo "$as_me:$LINENO: result: yes" >&5
4334echo "${ECHO_T}yes" >&6
4335 else
4336 echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6
4338 fi
4339
4340
4341 enablestring=
4342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4343echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4344 no_cache=0
4345 # Check whether --enable-ftp or --disable-ftp was given.
4346if test "${enable_ftp+set}" = set; then
4347 enableval="$enable_ftp"
4348
4349 if test "$enableval" = yes; then
4350 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4351 else
4352 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4353 fi
4354
4355else
4356
4357 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4358 if test "x$LINE" != x ; then
4359 eval "DEFAULT_$LINE"
4360 else
4361 no_cache=1
4362 fi
4363
4364 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4365
4366fi;
4367
4368 eval "$ac_cv_use_ftp"
4369 if test "$no_cache" != 1; then
4370 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4371 fi
4372
4373 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4374 echo "$as_me:$LINENO: result: yes" >&5
4375echo "${ECHO_T}yes" >&6
4376 else
4377 echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6
4379 fi
4380
4381
4382 enablestring=
4383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4384echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4385 no_cache=0
4386 # Check whether --enable-http or --disable-http was given.
4387if test "${enable_http+set}" = set; then
4388 enableval="$enable_http"
4389
4390 if test "$enableval" = yes; then
4391 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4392 else
4393 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4394 fi
4395
4396else
4397
4398 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
4405 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4406
4407fi;
4408
4409 eval "$ac_cv_use_http"
4410 if test "$no_cache" != 1; then
4411 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4412 fi
4413
4414 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4415 echo "$as_me:$LINENO: result: yes" >&5
4416echo "${ECHO_T}yes" >&6
4417 else
4418 echo "$as_me:$LINENO: result: no" >&5
4419echo "${ECHO_T}no" >&6
4420 fi
4421
4422
4423 enablestring=
4424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4425echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4426 no_cache=0
4427 # Check whether --enable-fileproto or --disable-fileproto was given.
4428if test "${enable_fileproto+set}" = set; then
4429 enableval="$enable_fileproto"
4430
4431 if test "$enableval" = yes; then
4432 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4433 else
4434 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4435 fi
4436
4437else
4438
4439 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
4446 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4447
4448fi;
4449
4450 eval "$ac_cv_use_fileproto"
4451 if test "$no_cache" != 1; then
4452 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4453 fi
4454
4455 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4456 echo "$as_me:$LINENO: result: yes" >&5
4457echo "${ECHO_T}yes" >&6
4458 else
4459 echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6
4461 fi
4462
4463
4464 enablestring=
4465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4466echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4467 no_cache=0
4468 # Check whether --enable-sockets or --disable-sockets was given.
4469if test "${enable_sockets+set}" = set; then
4470 enableval="$enable_sockets"
4471
4472 if test "$enableval" = yes; then
4473 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4474 else
4475 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4476 fi
4477
4478else
4479
4480 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
4487 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4488
4489fi;
4490
4491 eval "$ac_cv_use_sockets"
4492 if test "$no_cache" != 1; then
4493 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4494 fi
4495
4496 if test "$wxUSE_SOCKETS" = yes; then
4497 echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
4499 else
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
4502 fi
4503
4504
4505 enablestring=
4506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4507echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4508 no_cache=0
4509 # Check whether --enable-ole or --disable-ole was given.
4510if test "${enable_ole+set}" = set; then
4511 enableval="$enable_ole"
4512
4513 if test "$enableval" = yes; then
4514 ac_cv_use_ole='wxUSE_OLE=yes'
4515 else
4516 ac_cv_use_ole='wxUSE_OLE=no'
4517 fi
4518
4519else
4520
4521 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4522 if test "x$LINE" != x ; then
4523 eval "DEFAULT_$LINE"
4524 else
4525 no_cache=1
4526 fi
4527
4528 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4529
4530fi;
4531
4532 eval "$ac_cv_use_ole"
4533 if test "$no_cache" != 1; then
4534 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4535 fi
4536
4537 if test "$wxUSE_OLE" = yes; then
4538 echo "$as_me:$LINENO: result: yes" >&5
4539echo "${ECHO_T}yes" >&6
4540 else
4541 echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
4543 fi
4544
4545
4546 enablestring=
4547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4548echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4549 no_cache=0
4550 # Check whether --enable-dataobj or --disable-dataobj was given.
4551if test "${enable_dataobj+set}" = set; then
4552 enableval="$enable_dataobj"
4553
4554 if test "$enableval" = yes; then
4555 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4556 else
4557 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4558 fi
4559
4560else
4561
4562 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4563 if test "x$LINE" != x ; then
4564 eval "DEFAULT_$LINE"
4565 else
4566 no_cache=1
4567 fi
4568
4569 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4570
4571fi;
4572
4573 eval "$ac_cv_use_dataobj"
4574 if test "$no_cache" != 1; then
4575 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4576 fi
4577
4578 if test "$wxUSE_DATAOBJ" = yes; then
4579 echo "$as_me:$LINENO: result: yes" >&5
4580echo "${ECHO_T}yes" >&6
4581 else
4582 echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6
4584 fi
4585
4586
4587
4588 enablestring=
4589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4590echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4591 no_cache=0
4592 # Check whether --enable-ipc or --disable-ipc was given.
4593if test "${enable_ipc+set}" = set; then
4594 enableval="$enable_ipc"
4595
4596 if test "$enableval" = yes; then
4597 ac_cv_use_ipc='wxUSE_IPC=yes'
4598 else
4599 ac_cv_use_ipc='wxUSE_IPC=no'
4600 fi
4601
4602else
4603
4604 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4605 if test "x$LINE" != x ; then
4606 eval "DEFAULT_$LINE"
4607 else
4608 no_cache=1
4609 fi
4610
4611 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4612
4613fi;
4614
4615 eval "$ac_cv_use_ipc"
4616 if test "$no_cache" != 1; then
4617 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4618 fi
4619
4620 if test "$wxUSE_IPC" = yes; then
4621 echo "$as_me:$LINENO: result: yes" >&5
4622echo "${ECHO_T}yes" >&6
4623 else
4624 echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6
4626 fi
4627
4628
4629
4630 enablestring=
4631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4632echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4633 no_cache=0
4634 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4635if test "${enable_apple_ieee+set}" = set; then
4636 enableval="$enable_apple_ieee"
4637
4638 if test "$enableval" = yes; then
4639 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4640 else
4641 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4642 fi
4643
4644else
4645
4646 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4647 if test "x$LINE" != x ; then
4648 eval "DEFAULT_$LINE"
4649 else
4650 no_cache=1
4651 fi
4652
4653 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4654
4655fi;
4656
4657 eval "$ac_cv_use_apple_ieee"
4658 if test "$no_cache" != 1; then
4659 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4660 fi
4661
4662 if test "$wxUSE_APPLE_IEEE" = yes; then
4663 echo "$as_me:$LINENO: result: yes" >&5
4664echo "${ECHO_T}yes" >&6
4665 else
4666 echo "$as_me:$LINENO: result: no" >&5
4667echo "${ECHO_T}no" >&6
4668 fi
4669
4670
81f90336
MW
4671 enablestring=
4672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4673echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4674 no_cache=0
4675 # Check whether --enable-arcstream or --disable-arcstream was given.
4676if test "${enable_arcstream+set}" = set; then
4677 enableval="$enable_arcstream"
4678
4679 if test "$enableval" = yes; then
9e8e867f 4680 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4681 else
9e8e867f 4682 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4683 fi
4684
4685else
4686
9e8e867f 4687 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4688 if test "x$LINE" != x ; then
4689 eval "DEFAULT_$LINE"
4690 else
4691 no_cache=1
4692 fi
4693
9e8e867f 4694 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4695
4696fi;
4697
4698 eval "$ac_cv_use_arcstream"
4699 if test "$no_cache" != 1; then
4700 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4701 fi
4702
9e8e867f 4703 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4704 echo "$as_me:$LINENO: result: yes" >&5
4705echo "${ECHO_T}yes" >&6
4706 else
4707 echo "$as_me:$LINENO: result: no" >&5
4708echo "${ECHO_T}no" >&6
4709 fi
4710
4711
a848cd7e
SC
4712 enablestring=
4713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4714echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4715 no_cache=0
4716 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4717if test "${enable_catch_segvs+set}" = set; then
4718 enableval="$enable_catch_segvs"
4719
4720 if test "$enableval" = yes; then
4721 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4722 else
4723 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4724 fi
4725
4726else
4727
4728 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4729 if test "x$LINE" != x ; then
4730 eval "DEFAULT_$LINE"
4731 else
4732 no_cache=1
4733 fi
4734
4735 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4736
4737fi;
4738
4739 eval "$ac_cv_use_catch_segvs"
4740 if test "$no_cache" != 1; then
4741 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4742 fi
4743
4744 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4745 echo "$as_me:$LINENO: result: yes" >&5
4746echo "${ECHO_T}yes" >&6
4747 else
4748 echo "$as_me:$LINENO: result: no" >&5
4749echo "${ECHO_T}no" >&6
4750 fi
4751
4752
eaff0f0d
VZ
4753 enablestring=
4754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4755echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4756 no_cache=0
4757 # Check whether --enable-backtrace or --disable-backtrace was given.
4758if test "${enable_backtrace+set}" = set; then
4759 enableval="$enable_backtrace"
4760
4761 if test "$enableval" = yes; then
4762 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4763 else
4764 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4765 fi
4766
4767else
4768
4769 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4770 if test "x$LINE" != x ; then
4771 eval "DEFAULT_$LINE"
4772 else
4773 no_cache=1
4774 fi
4775
4776 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4777
4778fi;
4779
4780 eval "$ac_cv_use_backtrace"
4781 if test "$no_cache" != 1; then
4782 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4783 fi
4784
4785 if test "$wxUSE_STACKWALKER" = yes; then
4786 echo "$as_me:$LINENO: result: yes" >&5
4787echo "${ECHO_T}yes" >&6
4788 else
4789 echo "$as_me:$LINENO: result: no" >&5
4790echo "${ECHO_T}no" >&6
4791 fi
4792
4793
a848cd7e
SC
4794 enablestring=
4795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4796echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4797 no_cache=0
4798 # Check whether --enable-cmdline or --disable-cmdline was given.
4799if test "${enable_cmdline+set}" = set; then
4800 enableval="$enable_cmdline"
4801
4802 if test "$enableval" = yes; then
4803 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4804 else
4805 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4806 fi
4807
4808else
4809
4810 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4811 if test "x$LINE" != x ; then
4812 eval "DEFAULT_$LINE"
4813 else
4814 no_cache=1
4815 fi
4816
4817 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4818
4819fi;
4820
4821 eval "$ac_cv_use_cmdline"
4822 if test "$no_cache" != 1; then
4823 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4824 fi
4825
4826 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4827 echo "$as_me:$LINENO: result: yes" >&5
4828echo "${ECHO_T}yes" >&6
4829 else
4830 echo "$as_me:$LINENO: result: no" >&5
4831echo "${ECHO_T}no" >&6
4832 fi
4833
4834
4835 enablestring=
4836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4837echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4838 no_cache=0
4839 # Check whether --enable-datetime or --disable-datetime was given.
4840if test "${enable_datetime+set}" = set; then
4841 enableval="$enable_datetime"
4842
4843 if test "$enableval" = yes; then
4844 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4845 else
4846 ac_cv_use_datetime='wxUSE_DATETIME=no'
4847 fi
4848
4849else
4850
4851 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4852 if test "x$LINE" != x ; then
4853 eval "DEFAULT_$LINE"
4854 else
4855 no_cache=1
4856 fi
4857
4858 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4859
4860fi;
4861
4862 eval "$ac_cv_use_datetime"
4863 if test "$no_cache" != 1; then
4864 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4865 fi
4866
4867 if test "$wxUSE_DATETIME" = yes; then
4868 echo "$as_me:$LINENO: result: yes" >&5
4869echo "${ECHO_T}yes" >&6
4870 else
4871 echo "$as_me:$LINENO: result: no" >&5
4872echo "${ECHO_T}no" >&6
4873 fi
4874
4875
4876 enablestring=
4877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4878echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4879 no_cache=0
4880 # Check whether --enable-dialupman or --disable-dialupman was given.
4881if test "${enable_dialupman+set}" = set; then
4882 enableval="$enable_dialupman"
4883
4884 if test "$enableval" = yes; then
4885 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4886 else
4887 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4888 fi
4889
4890else
4891
4892 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4893 if test "x$LINE" != x ; then
4894 eval "DEFAULT_$LINE"
4895 else
4896 no_cache=1
4897 fi
4898
4899 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4900
4901fi;
4902
4903 eval "$ac_cv_use_dialupman"
4904 if test "$no_cache" != 1; then
4905 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4906 fi
4907
4908 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4909 echo "$as_me:$LINENO: result: yes" >&5
4910echo "${ECHO_T}yes" >&6
4911 else
4912 echo "$as_me:$LINENO: result: no" >&5
4913echo "${ECHO_T}no" >&6
4914 fi
4915
4916
4917 enablestring=
4918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4919echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4920 no_cache=0
4921 # Check whether --enable-dynlib or --disable-dynlib was given.
4922if test "${enable_dynlib+set}" = set; then
4923 enableval="$enable_dynlib"
4924
4925 if test "$enableval" = yes; then
4926 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4927 else
4928 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4929 fi
4930
4931else
4932
4933 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4934 if test "x$LINE" != x ; then
4935 eval "DEFAULT_$LINE"
4936 else
4937 no_cache=1
4938 fi
4939
4940 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4941
4942fi;
4943
4944 eval "$ac_cv_use_dynlib"
4945 if test "$no_cache" != 1; then
4946 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4947 fi
4948
4949 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4950 echo "$as_me:$LINENO: result: yes" >&5
4951echo "${ECHO_T}yes" >&6
4952 else
4953 echo "$as_me:$LINENO: result: no" >&5
4954echo "${ECHO_T}no" >&6
4955 fi
4956
4957
4958 enablestring=
4959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4960echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4961 no_cache=0
4962 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4963if test "${enable_dynamicloader+set}" = set; then
4964 enableval="$enable_dynamicloader"
4965
4966 if test "$enableval" = yes; then
4967 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4968 else
4969 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4970 fi
4971
4972else
4973
4974 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4975 if test "x$LINE" != x ; then
4976 eval "DEFAULT_$LINE"
4977 else
4978 no_cache=1
4979 fi
4980
4981 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4982
4983fi;
4984
4985 eval "$ac_cv_use_dynamicloader"
4986 if test "$no_cache" != 1; then
4987 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4988 fi
4989
4990 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4991 echo "$as_me:$LINENO: result: yes" >&5
4992echo "${ECHO_T}yes" >&6
4993 else
4994 echo "$as_me:$LINENO: result: no" >&5
4995echo "${ECHO_T}no" >&6
4996 fi
4997
4998
4999 enablestring=
5000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5001echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5002 no_cache=0
5003 # Check whether --enable-exceptions or --disable-exceptions was given.
5004if test "${enable_exceptions+set}" = set; then
5005 enableval="$enable_exceptions"
5006
5007 if test "$enableval" = yes; then
5008 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5009 else
5010 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5011 fi
5012
5013else
5014
5015 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5016 if test "x$LINE" != x ; then
5017 eval "DEFAULT_$LINE"
5018 else
5019 no_cache=1
5020 fi
5021
5022 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5023
5024fi;
5025
5026 eval "$ac_cv_use_exceptions"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5029 fi
5030
5031 if test "$wxUSE_EXCEPTIONS" = yes; then
5032 echo "$as_me:$LINENO: result: yes" >&5
5033echo "${ECHO_T}yes" >&6
5034 else
5035 echo "$as_me:$LINENO: result: no" >&5
5036echo "${ECHO_T}no" >&6
5037 fi
5038
5039
5040 enablestring=
5041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5042echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5043 no_cache=0
5044 # Check whether --enable-ffile or --disable-ffile was given.
5045if test "${enable_ffile+set}" = set; then
5046 enableval="$enable_ffile"
5047
5048 if test "$enableval" = yes; then
5049 ac_cv_use_ffile='wxUSE_FFILE=yes'
5050 else
5051 ac_cv_use_ffile='wxUSE_FFILE=no'
5052 fi
5053
5054else
5055
5056 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5057 if test "x$LINE" != x ; then
5058 eval "DEFAULT_$LINE"
5059 else
5060 no_cache=1
5061 fi
5062
5063 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5064
5065fi;
5066
5067 eval "$ac_cv_use_ffile"
5068 if test "$no_cache" != 1; then
5069 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5070 fi
5071
5072 if test "$wxUSE_FFILE" = yes; then
5073 echo "$as_me:$LINENO: result: yes" >&5
5074echo "${ECHO_T}yes" >&6
5075 else
5076 echo "$as_me:$LINENO: result: no" >&5
5077echo "${ECHO_T}no" >&6
5078 fi
5079
5080
5081 enablestring=
5082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5083echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5084 no_cache=0
5085 # Check whether --enable-file or --disable-file was given.
5086if test "${enable_file+set}" = set; then
5087 enableval="$enable_file"
5088
5089 if test "$enableval" = yes; then
5090 ac_cv_use_file='wxUSE_FILE=yes'
5091 else
5092 ac_cv_use_file='wxUSE_FILE=no'
5093 fi
5094
5095else
5096
5097 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5105
5106fi;
5107
5108 eval "$ac_cv_use_file"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_FILE" = yes; then
5114 echo "$as_me:$LINENO: result: yes" >&5
5115echo "${ECHO_T}yes" >&6
5116 else
5117 echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6
5119 fi
5120
5121
5122 enablestring=
5123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5124echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5125 no_cache=0
5126 # Check whether --enable-filesystem or --disable-filesystem was given.
5127if test "${enable_filesystem+set}" = set; then
5128 enableval="$enable_filesystem"
5129
5130 if test "$enableval" = yes; then
5131 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5132 else
5133 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5134 fi
5135
5136else
5137
5138 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5139 if test "x$LINE" != x ; then
5140 eval "DEFAULT_$LINE"
5141 else
5142 no_cache=1
5143 fi
5144
5145 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5146
5147fi;
5148
5149 eval "$ac_cv_use_filesystem"
5150 if test "$no_cache" != 1; then
5151 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5152 fi
5153
5154 if test "$wxUSE_FILESYSTEM" = yes; then
5155 echo "$as_me:$LINENO: result: yes" >&5
5156echo "${ECHO_T}yes" >&6
5157 else
5158 echo "$as_me:$LINENO: result: no" >&5
5159echo "${ECHO_T}no" >&6
5160 fi
5161
5162
5163 enablestring=
5164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5165echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5166 no_cache=0
5167 # Check whether --enable-fontmap or --disable-fontmap was given.
5168if test "${enable_fontmap+set}" = set; then
5169 enableval="$enable_fontmap"
5170
5171 if test "$enableval" = yes; then
5172 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5173 else
5174 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5175 fi
5176
5177else
5178
5179 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5180 if test "x$LINE" != x ; then
5181 eval "DEFAULT_$LINE"
5182 else
5183 no_cache=1
5184 fi
5185
5186 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5187
5188fi;
5189
5190 eval "$ac_cv_use_fontmap"
5191 if test "$no_cache" != 1; then
5192 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5193 fi
5194
5195 if test "$wxUSE_FONTMAP" = yes; then
5196 echo "$as_me:$LINENO: result: yes" >&5
5197echo "${ECHO_T}yes" >&6
5198 else
5199 echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6
5201 fi
5202
5203
5204 enablestring=
5205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5206echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5207 no_cache=0
5208 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5209if test "${enable_fs_inet+set}" = set; then
5210 enableval="$enable_fs_inet"
5211
5212 if test "$enableval" = yes; then
5213 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5214 else
5215 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5216 fi
5217
5218else
5219
5220 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5221 if test "x$LINE" != x ; then
5222 eval "DEFAULT_$LINE"
5223 else
5224 no_cache=1
5225 fi
5226
5227 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5228
5229fi;
5230
5231 eval "$ac_cv_use_fs_inet"
5232 if test "$no_cache" != 1; then
5233 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5234 fi
5235
5236 if test "$wxUSE_FS_INET" = yes; then
5237 echo "$as_me:$LINENO: result: yes" >&5
5238echo "${ECHO_T}yes" >&6
5239 else
5240 echo "$as_me:$LINENO: result: no" >&5
5241echo "${ECHO_T}no" >&6
5242 fi
5243
5244
5245 enablestring=
5246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5247echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5248 no_cache=0
5249 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5250if test "${enable_fs_zip+set}" = set; then
5251 enableval="$enable_fs_zip"
5252
5253 if test "$enableval" = yes; then
5254 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5255 else
5256 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5257 fi
5258
5259else
5260
5261 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5262 if test "x$LINE" != x ; then
5263 eval "DEFAULT_$LINE"
5264 else
5265 no_cache=1
5266 fi
5267
5268 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5269
5270fi;
5271
5272 eval "$ac_cv_use_fs_zip"
5273 if test "$no_cache" != 1; then
5274 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5275 fi
5276
5277 if test "$wxUSE_FS_ZIP" = yes; then
5278 echo "$as_me:$LINENO: result: yes" >&5
5279echo "${ECHO_T}yes" >&6
5280 else
5281 echo "$as_me:$LINENO: result: no" >&5
5282echo "${ECHO_T}no" >&6
5283 fi
5284
5285
5286 enablestring=
5287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5288echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5289 no_cache=0
5290 # Check whether --enable-geometry or --disable-geometry was given.
5291if test "${enable_geometry+set}" = set; then
5292 enableval="$enable_geometry"
5293
5294 if test "$enableval" = yes; then
5295 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5296 else
5297 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5298 fi
5299
5300else
5301
5302 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5303 if test "x$LINE" != x ; then
5304 eval "DEFAULT_$LINE"
5305 else
5306 no_cache=1
5307 fi
5308
5309 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5310
5311fi;
5312
5313 eval "$ac_cv_use_geometry"
5314 if test "$no_cache" != 1; then
5315 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5316 fi
5317
5318 if test "$wxUSE_GEOMETRY" = yes; then
5319 echo "$as_me:$LINENO: result: yes" >&5
5320echo "${ECHO_T}yes" >&6
5321 else
5322 echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324 fi
5325
5326
5327 enablestring=
5328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5329echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5330 no_cache=0
5331 # Check whether --enable-log or --disable-log was given.
5332if test "${enable_log+set}" = set; then
5333 enableval="$enable_log"
5334
5335 if test "$enableval" = yes; then
5336 ac_cv_use_log='wxUSE_LOG=yes'
5337 else
5338 ac_cv_use_log='wxUSE_LOG=no'
5339 fi
5340
5341else
5342
5343 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5344 if test "x$LINE" != x ; then
5345 eval "DEFAULT_$LINE"
5346 else
5347 no_cache=1
5348 fi
5349
5350 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5351
5352fi;
5353
5354 eval "$ac_cv_use_log"
5355 if test "$no_cache" != 1; then
5356 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5357 fi
5358
5359 if test "$wxUSE_LOG" = yes; then
5360 echo "$as_me:$LINENO: result: yes" >&5
5361echo "${ECHO_T}yes" >&6
5362 else
5363 echo "$as_me:$LINENO: result: no" >&5
5364echo "${ECHO_T}no" >&6
5365 fi
5366
5367
5368 enablestring=
5369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5370echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5371 no_cache=0
5372 # Check whether --enable-longlong or --disable-longlong was given.
5373if test "${enable_longlong+set}" = set; then
5374 enableval="$enable_longlong"
5375
5376 if test "$enableval" = yes; then
5377 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5378 else
5379 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5380 fi
5381
5382else
5383
5384 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5392
5393fi;
5394
5395 eval "$ac_cv_use_longlong"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_LONGLONG" = yes; then
5401 echo "$as_me:$LINENO: result: yes" >&5
5402echo "${ECHO_T}yes" >&6
5403 else
5404 echo "$as_me:$LINENO: result: no" >&5
5405echo "${ECHO_T}no" >&6
5406 fi
5407
5408
5409 enablestring=
5410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5411echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5412 no_cache=0
5413 # Check whether --enable-mimetype or --disable-mimetype was given.
5414if test "${enable_mimetype+set}" = set; then
5415 enableval="$enable_mimetype"
5416
5417 if test "$enableval" = yes; then
5418 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5419 else
5420 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5421 fi
5422
5423else
5424
5425 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5426 if test "x$LINE" != x ; then
5427 eval "DEFAULT_$LINE"
5428 else
5429 no_cache=1
5430 fi
5431
5432 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5433
5434fi;
5435
5436 eval "$ac_cv_use_mimetype"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_MIMETYPE" = yes; then
5442 echo "$as_me:$LINENO: result: yes" >&5
5443echo "${ECHO_T}yes" >&6
5444 else
5445 echo "$as_me:$LINENO: result: no" >&5
5446echo "${ECHO_T}no" >&6
5447 fi
5448
5449
5450 enablestring=
5451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5452echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5453 no_cache=0
5454 # Check whether --enable-mslu or --disable-mslu was given.
5455if test "${enable_mslu+set}" = set; then
5456 enableval="$enable_mslu"
5457
5458 if test "$enableval" = yes; then
5459 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5460 else
5461 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5462 fi
5463
5464else
5465
5466 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5467 if test "x$LINE" != x ; then
5468 eval "DEFAULT_$LINE"
5469 else
5470 no_cache=1
5471 fi
5472
5473 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5474
5475fi;
5476
5477 eval "$ac_cv_use_mslu"
5478 if test "$no_cache" != 1; then
5479 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5480 fi
5481
5482 if test "$wxUSE_UNICODE_MSLU" = yes; then
5483 echo "$as_me:$LINENO: result: yes" >&5
5484echo "${ECHO_T}yes" >&6
5485 else
5486 echo "$as_me:$LINENO: result: no" >&5
5487echo "${ECHO_T}no" >&6
5488 fi
5489
5490
5491 enablestring=
5492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5493echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5494 no_cache=0
5495 # Check whether --enable-snglinst or --disable-snglinst was given.
5496if test "${enable_snglinst+set}" = set; then
5497 enableval="$enable_snglinst"
5498
5499 if test "$enableval" = yes; then
5500 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5501 else
5502 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5503 fi
5504
5505else
5506
5507 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5508 if test "x$LINE" != x ; then
5509 eval "DEFAULT_$LINE"
5510 else
5511 no_cache=1
5512 fi
5513
5514 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5515
5516fi;
5517
5518 eval "$ac_cv_use_snglinst"
5519 if test "$no_cache" != 1; then
5520 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5521 fi
5522
5523 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5524 echo "$as_me:$LINENO: result: yes" >&5
5525echo "${ECHO_T}yes" >&6
5526 else
5527 echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6
5529 fi
5530
5531
5532 enablestring=
5533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5534echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5535 no_cache=0
5536 # Check whether --enable-streams or --disable-streams was given.
5537if test "${enable_streams+set}" = set; then
5538 enableval="$enable_streams"
5539
5540 if test "$enableval" = yes; then
5541 ac_cv_use_streams='wxUSE_STREAMS=yes'
5542 else
5543 ac_cv_use_streams='wxUSE_STREAMS=no'
5544 fi
5545
5546else
5547
5548 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5556
5557fi;
5558
5559 eval "$ac_cv_use_streams"
5560 if test "$no_cache" != 1; then
5561 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5562 fi
5563
5564 if test "$wxUSE_STREAMS" = yes; then
5565 echo "$as_me:$LINENO: result: yes" >&5
5566echo "${ECHO_T}yes" >&6
5567 else
5568 echo "$as_me:$LINENO: result: no" >&5
5569echo "${ECHO_T}no" >&6
5570 fi
5571
5572
5573 enablestring=
5574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5575echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5576 no_cache=0
5577 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5578if test "${enable_std_iostreams+set}" = set; then
5579 enableval="$enable_std_iostreams"
5580
5581 if test "$enableval" = yes; then
5582 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5583 else
5584 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5585 fi
5586
5587else
5588
5589 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5590 if test "x$LINE" != x ; then
5591 eval "DEFAULT_$LINE"
5592 else
5593 no_cache=1
5594 fi
5595
5596 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5597
5598fi;
5599
5600 eval "$ac_cv_use_std_iostreams"
5601 if test "$no_cache" != 1; then
5602 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5603 fi
5604
5605 if test "$wxUSE_STD_IOSTREAM" = yes; then
5606 echo "$as_me:$LINENO: result: yes" >&5
5607echo "${ECHO_T}yes" >&6
5608 else
5609 echo "$as_me:$LINENO: result: no" >&5
5610echo "${ECHO_T}no" >&6
5611 fi
5612
5613
5614 enablestring=
5615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5616echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5617 no_cache=0
5618 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5619if test "${enable_stopwatch+set}" = set; then
5620 enableval="$enable_stopwatch"
5621
5622 if test "$enableval" = yes; then
5623 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5624 else
5625 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5626 fi
5627
5628else
5629
5630 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5638
5639fi;
5640
5641 eval "$ac_cv_use_stopwatch"
5642 if test "$no_cache" != 1; then
5643 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5644 fi
5645
5646 if test "$wxUSE_STOPWATCH" = yes; then
5647 echo "$as_me:$LINENO: result: yes" >&5
5648echo "${ECHO_T}yes" >&6
5649 else
5650 echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6
5652 fi
5653
5654
5655 enablestring=
5656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5657echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5658 no_cache=0
5659 # Check whether --enable-system_options or --disable-system_options was given.
5660if test "${enable_system_options+set}" = set; then
5661 enableval="$enable_system_options"
5662
5663 if test "$enableval" = yes; then
5664 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5665 else
5666 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5667 fi
5668
5669else
5670
5671 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5672 if test "x$LINE" != x ; then
5673 eval "DEFAULT_$LINE"
5674 else
5675 no_cache=1
5676 fi
5677
5678 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5679
5680fi;
5681
5682 eval "$ac_cv_use_system_options"
5683 if test "$no_cache" != 1; then
5684 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5685 fi
5686
5687 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5688 echo "$as_me:$LINENO: result: yes" >&5
5689echo "${ECHO_T}yes" >&6
5690 else
5691 echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6
5693 fi
5694
5695
5696 enablestring=
5697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5698echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5699 no_cache=0
5700 # Check whether --enable-textbuf or --disable-textbuf was given.
5701if test "${enable_textbuf+set}" = set; then
5702 enableval="$enable_textbuf"
5703
5704 if test "$enableval" = yes; then
5705 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5706 else
5707 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5708 fi
5709
5710else
5711
5712 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5713 if test "x$LINE" != x ; then
5714 eval "DEFAULT_$LINE"
5715 else
5716 no_cache=1
5717 fi
5718
5719 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5720
5721fi;
5722
5723 eval "$ac_cv_use_textbuf"
5724 if test "$no_cache" != 1; then
5725 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5726 fi
5727
5728 if test "$wxUSE_TEXTBUFFER" = yes; then
5729 echo "$as_me:$LINENO: result: yes" >&5
5730echo "${ECHO_T}yes" >&6
5731 else
5732 echo "$as_me:$LINENO: result: no" >&5
5733echo "${ECHO_T}no" >&6
5734 fi
5735
5736
5737 enablestring=
5738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5739echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5740 no_cache=0
5741 # Check whether --enable-textfile or --disable-textfile was given.
5742if test "${enable_textfile+set}" = set; then
5743 enableval="$enable_textfile"
5744
5745 if test "$enableval" = yes; then
5746 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5747 else
5748 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5749 fi
5750
5751else
5752
5753 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5754 if test "x$LINE" != x ; then
5755 eval "DEFAULT_$LINE"
5756 else
5757 no_cache=1
5758 fi
5759
5760 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5761
5762fi;
5763
5764 eval "$ac_cv_use_textfile"
5765 if test "$no_cache" != 1; then
5766 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5767 fi
5768
5769 if test "$wxUSE_TEXTFILE" = yes; then
5770 echo "$as_me:$LINENO: result: yes" >&5
5771echo "${ECHO_T}yes" >&6
5772 else
5773 echo "$as_me:$LINENO: result: no" >&5
5774echo "${ECHO_T}no" >&6
5775 fi
5776
5777
5778 enablestring=
5779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5780echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5781 no_cache=0
5782 # Check whether --enable-timer or --disable-timer was given.
5783if test "${enable_timer+set}" = set; then
5784 enableval="$enable_timer"
5785
5786 if test "$enableval" = yes; then
5787 ac_cv_use_timer='wxUSE_TIMER=yes'
5788 else
5789 ac_cv_use_timer='wxUSE_TIMER=no'
5790 fi
5791
5792else
5793
5794 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5795 if test "x$LINE" != x ; then
5796 eval "DEFAULT_$LINE"
5797 else
5798 no_cache=1
5799 fi
5800
5801 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5802
5803fi;
5804
5805 eval "$ac_cv_use_timer"
5806 if test "$no_cache" != 1; then
5807 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5808 fi
5809
5810 if test "$wxUSE_TIMER" = yes; then
5811 echo "$as_me:$LINENO: result: yes" >&5
5812echo "${ECHO_T}yes" >&6
5813 else
5814 echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6
5816 fi
5817
5818
5819 enablestring=
5820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5821echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5822 no_cache=0
5823 # Check whether --enable-unicode or --disable-unicode was given.
5824if test "${enable_unicode+set}" = set; then
5825 enableval="$enable_unicode"
5826
5827 if test "$enableval" = yes; then
5828 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5829 else
5830 ac_cv_use_unicode='wxUSE_UNICODE=no'
5831 fi
5832
5833else
5834
5835 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5836 if test "x$LINE" != x ; then
5837 eval "DEFAULT_$LINE"
5838 else
5839 no_cache=1
5840 fi
5841
5842 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5843
5844fi;
5845
5846 eval "$ac_cv_use_unicode"
5847 if test "$no_cache" != 1; then
5848 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5849 fi
5850
5851 if test "$wxUSE_UNICODE" = yes; then
5852 echo "$as_me:$LINENO: result: yes" >&5
5853echo "${ECHO_T}yes" >&6
5854 else
5855 echo "$as_me:$LINENO: result: no" >&5
5856echo "${ECHO_T}no" >&6
5857 fi
5858
5859
5860 enablestring=
5861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5862echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5863 no_cache=0
5864 # Check whether --enable-sound or --disable-sound was given.
5865if test "${enable_sound+set}" = set; then
5866 enableval="$enable_sound"
5867
5868 if test "$enableval" = yes; then
5869 ac_cv_use_sound='wxUSE_SOUND=yes'
5870 else
5871 ac_cv_use_sound='wxUSE_SOUND=no'
5872 fi
5873
5874else
5875
5876 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5877 if test "x$LINE" != x ; then
5878 eval "DEFAULT_$LINE"
5879 else
5880 no_cache=1
5881 fi
5882
5883 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5884
5885fi;
5886
5887 eval "$ac_cv_use_sound"
5888 if test "$no_cache" != 1; then
5889 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5890 fi
5891
5892 if test "$wxUSE_SOUND" = yes; then
5893 echo "$as_me:$LINENO: result: yes" >&5
5894echo "${ECHO_T}yes" >&6
5895 else
5896 echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6
5898 fi
5899
5900
3b57de8b
RL
5901 enablestring=
5902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5903echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5904 no_cache=0
5905 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5906if test "${enable_mediactrl+set}" = set; then
5907 enableval="$enable_mediactrl"
5908
5909 if test "$enableval" = yes; then
5910 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5911 else
5912 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5913 fi
5914
5915else
5916
5917 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5918 if test "x$LINE" != x ; then
5919 eval "DEFAULT_$LINE"
5920 else
5921 no_cache=1
5922 fi
5923
5924 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5925
5926fi;
5927
5928 eval "$ac_cv_use_mediactrl"
5929 if test "$no_cache" != 1; then
5930 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5931 fi
5932
5933 if test "$wxUSE_MEDIACTRL" = yes; then
5934 echo "$as_me:$LINENO: result: yes" >&5
5935echo "${ECHO_T}yes" >&6
5936 else
5937 echo "$as_me:$LINENO: result: no" >&5
5938echo "${ECHO_T}no" >&6
5939 fi
5940
5941
a848cd7e
SC
5942 enablestring=
5943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5944echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5945 no_cache=0
5946 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5947if test "${enable_wxprintfv+set}" = set; then
5948 enableval="$enable_wxprintfv"
5949
5950 if test "$enableval" = yes; then
5951 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5952 else
5953 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5954 fi
5955
5956else
5957
5958 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5959 if test "x$LINE" != x ; then
5960 eval "DEFAULT_$LINE"
5961 else
5962 no_cache=1
5963 fi
5964
5965 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5966
5967fi;
5968
5969 eval "$ac_cv_use_wxprintfv"
5970 if test "$no_cache" != 1; then
5971 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5972 fi
5973
5974 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5975 echo "$as_me:$LINENO: result: yes" >&5
5976echo "${ECHO_T}yes" >&6
5977 else
5978 echo "$as_me:$LINENO: result: no" >&5
5979echo "${ECHO_T}no" >&6
5980 fi
5981
5982
5983 enablestring=
5984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5985echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5986 no_cache=0
5987 # Check whether --enable-zipstream or --disable-zipstream was given.
5988if test "${enable_zipstream+set}" = set; then
5989 enableval="$enable_zipstream"
5990
5991 if test "$enableval" = yes; then
5992 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5993 else
5994 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5995 fi
5996
5997else
5998
5999 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6000 if test "x$LINE" != x ; then
6001 eval "DEFAULT_$LINE"
6002 else
6003 no_cache=1
6004 fi
6005
6006 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6007
6008fi;
6009
6010 eval "$ac_cv_use_zipstream"
6011 if test "$no_cache" != 1; then
6012 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6013 fi
6014
6015 if test "$wxUSE_ZIPSTREAM" = yes; then
6016 echo "$as_me:$LINENO: result: yes" >&5
6017echo "${ECHO_T}yes" >&6
6018 else
6019 echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6
6021 fi
6022
6023
a848cd7e
SC
6024
6025 enablestring=
6026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6027echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6028 no_cache=0
6029 # Check whether --enable-url or --disable-url was given.
6030if test "${enable_url+set}" = set; then
6031 enableval="$enable_url"
6032
6033 if test "$enableval" = yes; then
6034 ac_cv_use_url='wxUSE_URL=yes'
6035 else
6036 ac_cv_use_url='wxUSE_URL=no'
6037 fi
6038
6039else
6040
6041 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
6048 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6049
6050fi;
6051
6052 eval "$ac_cv_use_url"
6053 if test "$no_cache" != 1; then
6054 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6055 fi
6056
6057 if test "$wxUSE_URL" = yes; then
6058 echo "$as_me:$LINENO: result: yes" >&5
6059echo "${ECHO_T}yes" >&6
6060 else
6061 echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6
6063 fi
6064
6065
6066 enablestring=
6067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6068echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6069 no_cache=0
6070 # Check whether --enable-protocol or --disable-protocol was given.
6071if test "${enable_protocol+set}" = set; then
6072 enableval="$enable_protocol"
6073
6074 if test "$enableval" = yes; then
6075 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6076 else
6077 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6078 fi
6079
6080else
6081
6082 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6083 if test "x$LINE" != x ; then
6084 eval "DEFAULT_$LINE"
6085 else
6086 no_cache=1
6087 fi
6088
6089 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6090
6091fi;
6092
6093 eval "$ac_cv_use_protocol"
6094 if test "$no_cache" != 1; then
6095 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6096 fi
6097
6098 if test "$wxUSE_PROTOCOL" = yes; then
6099 echo "$as_me:$LINENO: result: yes" >&5
6100echo "${ECHO_T}yes" >&6
6101 else
6102 echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6
6104 fi
6105
6106
6107 enablestring=
6108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6109echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6110 no_cache=0
6111 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6112if test "${enable_protocol_http+set}" = set; then
6113 enableval="$enable_protocol_http"
6114
6115 if test "$enableval" = yes; then
6116 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6117 else
6118 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6119 fi
6120
6121else
6122
6123 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6124 if test "x$LINE" != x ; then
6125 eval "DEFAULT_$LINE"
6126 else
6127 no_cache=1
6128 fi
6129
6130 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6131
6132fi;
6133
6134 eval "$ac_cv_use_protocol_http"
6135 if test "$no_cache" != 1; then
6136 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6137 fi
6138
6139 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6140 echo "$as_me:$LINENO: result: yes" >&5
6141echo "${ECHO_T}yes" >&6
6142 else
6143 echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
6145 fi
6146
6147
6148 enablestring=
6149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6150echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6151 no_cache=0
6152 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6153if test "${enable_protocol_ftp+set}" = set; then
6154 enableval="$enable_protocol_ftp"
6155
6156 if test "$enableval" = yes; then
6157 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6158 else
6159 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6160 fi
6161
6162else
6163
6164 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6165 if test "x$LINE" != x ; then
6166 eval "DEFAULT_$LINE"
6167 else
6168 no_cache=1
6169 fi
6170
6171 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6172
6173fi;
6174
6175 eval "$ac_cv_use_protocol_ftp"
6176 if test "$no_cache" != 1; then
6177 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6178 fi
6179
6180 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6181 echo "$as_me:$LINENO: result: yes" >&5
6182echo "${ECHO_T}yes" >&6
6183 else
6184 echo "$as_me:$LINENO: result: no" >&5
6185echo "${ECHO_T}no" >&6
6186 fi
6187
6188
6189 enablestring=
6190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6191echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6192 no_cache=0
6193 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6194if test "${enable_protocol_file+set}" = set; then
6195 enableval="$enable_protocol_file"
6196
6197 if test "$enableval" = yes; then
6198 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6199 else
6200 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6201 fi
6202
6203else
6204
6205 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6206 if test "x$LINE" != x ; then
6207 eval "DEFAULT_$LINE"
6208 else
6209 no_cache=1
6210 fi
6211
6212 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6213
6214fi;
6215
6216 eval "$ac_cv_use_protocol_file"
6217 if test "$no_cache" != 1; then
6218 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6219 fi
6220
6221 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6222 echo "$as_me:$LINENO: result: yes" >&5
6223echo "${ECHO_T}yes" >&6
6224 else
6225 echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6
6227 fi
6228
6229
6230
6231
6232
6233 enablestring=
6234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6235echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6236 no_cache=0
6237 # Check whether --enable-threads or --disable-threads was given.
6238if test "${enable_threads+set}" = set; then
6239 enableval="$enable_threads"
6240
6241 if test "$enableval" = yes; then
6242 ac_cv_use_threads='wxUSE_THREADS=yes'
6243 else
6244 ac_cv_use_threads='wxUSE_THREADS=no'
6245 fi
6246
6247else
6248
6249 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6250 if test "x$LINE" != x ; then
6251 eval "DEFAULT_$LINE"
6252 else
6253 no_cache=1
6254 fi
6255
6256 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6257
6258fi;
6259
6260 eval "$ac_cv_use_threads"
6261 if test "$no_cache" != 1; then
6262 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6263 fi
6264
6265 if test "$wxUSE_THREADS" = yes; then
6266 echo "$as_me:$LINENO: result: yes" >&5
6267echo "${ECHO_T}yes" >&6
6268 else
6269 echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6
6271 fi
6272
6273
6274if test "$wxUSE_GUI" = "yes"; then
6275
6276
6277
6278 enablestring=
6279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6280echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6281 no_cache=0
6282 # Check whether --enable-docview or --disable-docview was given.
6283if test "${enable_docview+set}" = set; then
6284 enableval="$enable_docview"
6285
6286 if test "$enableval" = yes; then
6287 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6288 else
6289 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6290 fi
6291
6292else
6293
6294 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6295 if test "x$LINE" != x ; then
6296 eval "DEFAULT_$LINE"
6297 else
6298 no_cache=1
6299 fi
6300
6301 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6302
6303fi;
6304
6305 eval "$ac_cv_use_docview"
6306 if test "$no_cache" != 1; then
6307 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6308 fi
6309
6310 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6311 echo "$as_me:$LINENO: result: yes" >&5
6312echo "${ECHO_T}yes" >&6
6313 else
6314 echo "$as_me:$LINENO: result: no" >&5
6315echo "${ECHO_T}no" >&6
6316 fi
6317
6318
6319 enablestring=
6320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6321echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6322 no_cache=0
6323 # Check whether --enable-help or --disable-help was given.
6324if test "${enable_help+set}" = set; then
6325 enableval="$enable_help"
6326
6327 if test "$enableval" = yes; then
6328 ac_cv_use_help='wxUSE_HELP=yes'
6329 else
6330 ac_cv_use_help='wxUSE_HELP=no'
6331 fi
6332
6333else
6334
6335 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6336 if test "x$LINE" != x ; then
6337 eval "DEFAULT_$LINE"
6338 else
6339 no_cache=1
6340 fi
6341
6342 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6343
6344fi;
6345
6346 eval "$ac_cv_use_help"
6347 if test "$no_cache" != 1; then
6348 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6349 fi
6350
6351 if test "$wxUSE_HELP" = yes; then
6352 echo "$as_me:$LINENO: result: yes" >&5
6353echo "${ECHO_T}yes" >&6
6354 else
6355 echo "$as_me:$LINENO: result: no" >&5
6356echo "${ECHO_T}no" >&6
6357 fi
6358
6359
6360 enablestring=
6361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6362echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6363 no_cache=0
6364 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6365if test "${enable_mshtmlhelp+set}" = set; then
6366 enableval="$enable_mshtmlhelp"
6367
6368 if test "$enableval" = yes; then
6369 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6370 else
6371 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6372 fi
6373
6374else
6375
6376 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6377 if test "x$LINE" != x ; then
6378 eval "DEFAULT_$LINE"
6379 else
6380 no_cache=1
6381 fi
6382
6383 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6384
6385fi;
6386
6387 eval "$ac_cv_use_mshtmlhelp"
6388 if test "$no_cache" != 1; then
6389 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6390 fi
6391
6392 if test "$wxUSE_MS_HTML_HELP" = yes; then
6393 echo "$as_me:$LINENO: result: yes" >&5
6394echo "${ECHO_T}yes" >&6
6395 else
6396 echo "$as_me:$LINENO: result: no" >&5
6397echo "${ECHO_T}no" >&6
6398 fi
6399
6400
6401 enablestring=
6402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6403echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6404 no_cache=0
6405 # Check whether --enable-html or --disable-html was given.
6406if test "${enable_html+set}" = set; then
6407 enableval="$enable_html"
6408
6409 if test "$enableval" = yes; then
6410 ac_cv_use_html='wxUSE_HTML=yes'
6411 else
6412 ac_cv_use_html='wxUSE_HTML=no'
6413 fi
6414
6415else
6416
6417 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6418 if test "x$LINE" != x ; then
6419 eval "DEFAULT_$LINE"
6420 else
6421 no_cache=1
6422 fi
6423
6424 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6425
6426fi;
6427
6428 eval "$ac_cv_use_html"
6429 if test "$no_cache" != 1; then
6430 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6431 fi
6432
6433 if test "$wxUSE_HTML" = yes; then
6434 echo "$as_me:$LINENO: result: yes" >&5
6435echo "${ECHO_T}yes" >&6
6436 else
6437 echo "$as_me:$LINENO: result: no" >&5
6438echo "${ECHO_T}no" >&6
6439 fi
6440
6441
6442 enablestring=
6443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6444echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6445 no_cache=0
6446 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6447if test "${enable_htmlhelp+set}" = set; then
6448 enableval="$enable_htmlhelp"
6449
6450 if test "$enableval" = yes; then
6451 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6452 else
6453 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6454 fi
6455
6456else
6457
6458 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6459 if test "x$LINE" != x ; then
6460 eval "DEFAULT_$LINE"
6461 else
6462 no_cache=1
6463 fi
6464
6465 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6466
6467fi;
6468
6469 eval "$ac_cv_use_htmlhelp"
6470 if test "$no_cache" != 1; then
6471 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6472 fi
6473
6474 if test "$wxUSE_WXHTML_HELP" = yes; then
6475 echo "$as_me:$LINENO: result: yes" >&5
6476echo "${ECHO_T}yes" >&6
6477 else
6478 echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6
6480 fi
6481
6482
9a8f0513
VS
6483 enablestring=
6484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6485echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6486 no_cache=0
6487 # Check whether --enable-xrc or --disable-xrc was given.
6488if test "${enable_xrc+set}" = set; then
6489 enableval="$enable_xrc"
6490
6491 if test "$enableval" = yes; then
6492 ac_cv_use_xrc='wxUSE_XRC=yes'
6493 else
6494 ac_cv_use_xrc='wxUSE_XRC=no'
6495 fi
6496
6497else
6498
6499 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6500 if test "x$LINE" != x ; then
6501 eval "DEFAULT_$LINE"
6502 else
6503 no_cache=1
6504 fi
6505
6506 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6507
6508fi;
6509
6510 eval "$ac_cv_use_xrc"
6511 if test "$no_cache" != 1; then
6512 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6513 fi
6514
6515 if test "$wxUSE_XRC" = yes; then
6516 echo "$as_me:$LINENO: result: yes" >&5
6517echo "${ECHO_T}yes" >&6
6518 else
6519 echo "$as_me:$LINENO: result: no" >&5
6520echo "${ECHO_T}no" >&6
6521 fi
6522
6523
a848cd7e
SC
6524 enablestring=
6525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6526echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6527 no_cache=0
6528 # Check whether --enable-constraints or --disable-constraints was given.
6529if test "${enable_constraints+set}" = set; then
6530 enableval="$enable_constraints"
6531
6532 if test "$enableval" = yes; then
6533 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6534 else
6535 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6536 fi
6537
6538else
6539
6540 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6541 if test "x$LINE" != x ; then
6542 eval "DEFAULT_$LINE"
6543 else
6544 no_cache=1
6545 fi
6546
6547 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6548
6549fi;
6550
6551 eval "$ac_cv_use_constraints"
6552 if test "$no_cache" != 1; then
6553 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6554 fi
6555
6556 if test "$wxUSE_CONSTRAINTS" = yes; then
6557 echo "$as_me:$LINENO: result: yes" >&5
6558echo "${ECHO_T}yes" >&6
6559 else
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
6562 fi
6563
6564
6565 enablestring=
6566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6567echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6568 no_cache=0
6569 # Check whether --enable-printarch or --disable-printarch was given.
6570if test "${enable_printarch+set}" = set; then
6571 enableval="$enable_printarch"
6572
6573 if test "$enableval" = yes; then
6574 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6575 else
6576 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6577 fi
6578
6579else
6580
6581 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6582 if test "x$LINE" != x ; then
6583 eval "DEFAULT_$LINE"
6584 else
6585 no_cache=1
6586 fi
6587
6588 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6589
6590fi;
6591
6592 eval "$ac_cv_use_printarch"
6593 if test "$no_cache" != 1; then
6594 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6595 fi
6596
6597 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6598 echo "$as_me:$LINENO: result: yes" >&5
6599echo "${ECHO_T}yes" >&6
6600 else
6601 echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6
6603 fi
6604
6605
6606 enablestring=
6607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6608echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6609 no_cache=0
6610 # Check whether --enable-mdi or --disable-mdi was given.
6611if test "${enable_mdi+set}" = set; then
6612 enableval="$enable_mdi"
6613
6614 if test "$enableval" = yes; then
8a7b1113 6615 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6616 else
8a7b1113 6617 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6618 fi
6619
6620else
6621
8a7b1113 6622 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6623 if test "x$LINE" != x ; then
6624 eval "DEFAULT_$LINE"
6625 else
6626 no_cache=1
6627 fi
6628
8a7b1113 6629 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6630
6631fi;
6632
6633 eval "$ac_cv_use_mdi"
6634 if test "$no_cache" != 1; then
6635 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6636 fi
6637
8a7b1113
VZ
6638 if test "$wxUSE_MDI" = yes; then
6639 echo "$as_me:$LINENO: result: yes" >&5
6640echo "${ECHO_T}yes" >&6
6641 else
6642 echo "$as_me:$LINENO: result: no" >&5
6643echo "${ECHO_T}no" >&6
6644 fi
6645
6646
6647 enablestring=
6648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6649echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6650 no_cache=0
6651 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6652if test "${enable_mdidoc+set}" = set; then
6653 enableval="$enable_mdidoc"
6654
6655 if test "$enableval" = yes; then
6656 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6657 else
6658 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6659 fi
6660
6661else
6662
6663 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6664 if test "x$LINE" != x ; then
6665 eval "DEFAULT_$LINE"
6666 else
6667 no_cache=1
6668 fi
6669
6670 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6671
6672fi;
6673
6674 eval "$ac_cv_use_mdidoc"
6675 if test "$no_cache" != 1; then
6676 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6677 fi
6678
a848cd7e
SC
6679 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6680 echo "$as_me:$LINENO: result: yes" >&5
6681echo "${ECHO_T}yes" >&6
6682 else
6683 echo "$as_me:$LINENO: result: no" >&5
6684echo "${ECHO_T}no" >&6
6685 fi
6686
6687
6688 enablestring=
6689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6690echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6691 no_cache=0
6692 # Check whether --enable-loggui or --disable-loggui was given.
6693if test "${enable_loggui+set}" = set; then
6694 enableval="$enable_loggui"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6698 else
6699 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6700 fi
6701
6702else
6703
6704 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6712
6713fi;
6714
6715 eval "$ac_cv_use_loggui"
6716 if test "$no_cache" != 1; then
6717 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6718 fi
6719
6720 if test "$wxUSE_LOGGUI" = yes; then
6721 echo "$as_me:$LINENO: result: yes" >&5
6722echo "${ECHO_T}yes" >&6
6723 else
6724 echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6
6726 fi
6727
6728
6729 enablestring=
6730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6731echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6732 no_cache=0
6733 # Check whether --enable-logwin or --disable-logwin was given.
6734if test "${enable_logwin+set}" = set; then
6735 enableval="$enable_logwin"
6736
6737 if test "$enableval" = yes; then
6738 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6739 else
6740 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6741 fi
6742
6743else
6744
6745 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6746 if test "x$LINE" != x ; then
6747 eval "DEFAULT_$LINE"
6748 else
6749 no_cache=1
6750 fi
6751
6752 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6753
6754fi;
6755
6756 eval "$ac_cv_use_logwin"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_LOGWINDOW" = yes; then
6762 echo "$as_me:$LINENO: result: yes" >&5
6763echo "${ECHO_T}yes" >&6
6764 else
6765 echo "$as_me:$LINENO: result: no" >&5
6766echo "${ECHO_T}no" >&6
6767 fi
6768
6769
6770 enablestring=
6771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6772echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6773 no_cache=0
6774 # Check whether --enable-logdialog or --disable-logdialog was given.
6775if test "${enable_logdialog+set}" = set; then
6776 enableval="$enable_logdialog"
6777
6778 if test "$enableval" = yes; then
6779 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6780 else
6781 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6782 fi
6783
6784else
6785
6786 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6787 if test "x$LINE" != x ; then
6788 eval "DEFAULT_$LINE"
6789 else
6790 no_cache=1
6791 fi
6792
6793 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6794
6795fi;
6796
6797 eval "$ac_cv_use_logdialog"
6798 if test "$no_cache" != 1; then
6799 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6800 fi
6801
6802 if test "$wxUSE_LOGDIALOG" = yes; then
6803 echo "$as_me:$LINENO: result: yes" >&5
6804echo "${ECHO_T}yes" >&6
6805 else
6806 echo "$as_me:$LINENO: result: no" >&5
6807echo "${ECHO_T}no" >&6
6808 fi
6809
6810
646b6ec1
VS
6811 enablestring=
6812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6813echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6814 no_cache=0
6815 # Check whether --enable-webkit or --disable-webkit was given.
6816if test "${enable_webkit+set}" = set; then
6817 enableval="$enable_webkit"
6818
6819 if test "$enableval" = yes; then
6820 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6821 else
6822 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6823 fi
6824
6825else
6826
6827 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6828 if test "x$LINE" != x ; then
6829 eval "DEFAULT_$LINE"
6830 else
6831 no_cache=1
6832 fi
6833
6834 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6835
6836fi;
6837
6838 eval "$ac_cv_use_webkit"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_WEBKIT" = yes; then
6844 echo "$as_me:$LINENO: result: yes" >&5
6845echo "${ECHO_T}yes" >&6
6846 else
6847 echo "$as_me:$LINENO: result: no" >&5
6848echo "${ECHO_T}no" >&6
6849 fi
6850
6851
a848cd7e
SC
6852
6853 enablestring=
6854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6855echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6856 no_cache=0
6857 # Check whether --enable-postscript or --disable-postscript was given.
6858if test "${enable_postscript+set}" = set; then
6859 enableval="$enable_postscript"
6860
6861 if test "$enableval" = yes; then
6862 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6863 else
6864 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6865 fi
6866
6867else
6868
6869 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6870 if test "x$LINE" != x ; then
6871 eval "DEFAULT_$LINE"
6872 else
6873 no_cache=1
6874 fi
6875
6876 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6877
6878fi;
6879
6880 eval "$ac_cv_use_postscript"
6881 if test "$no_cache" != 1; then
6882 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6883 fi
6884
6885 if test "$wxUSE_POSTSCRIPT" = yes; then
6886 echo "$as_me:$LINENO: result: yes" >&5
6887echo "${ECHO_T}yes" >&6
6888 else
6889 echo "$as_me:$LINENO: result: no" >&5
6890echo "${ECHO_T}no" >&6
6891 fi
6892
6893
6894
6895
6896
6897 enablestring=
6898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6899echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6900 no_cache=0
6901 # Check whether --enable-prologio or --disable-prologio was given.
6902if test "${enable_prologio+set}" = set; then
6903 enableval="$enable_prologio"
6904
6905 if test "$enableval" = yes; then
6906 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6907 else
6908 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6909 fi
6910
6911else
6912
6913 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6914 if test "x$LINE" != x ; then
6915 eval "DEFAULT_$LINE"
6916 else
6917 no_cache=1
6918 fi
6919
6920 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6921
6922fi;
6923
6924 eval "$ac_cv_use_prologio"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_PROLOGIO" = yes; then
6930 echo "$as_me:$LINENO: result: yes" >&5
6931echo "${ECHO_T}yes" >&6
6932 else
6933 echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6
6935 fi
6936
6937
6938 enablestring=
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6941 no_cache=0
6942 # Check whether --enable-resources or --disable-resources was given.
6943if test "${enable_resources+set}" = set; then
6944 enableval="$enable_resources"
6945
6946 if test "$enableval" = yes; then
6947 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6948 else
6949 ac_cv_use_resources='wxUSE_RESOURCES=no'
6950 fi
6951
6952else
6953
6954 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6962
6963fi;
6964
6965 eval "$ac_cv_use_resources"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_RESOURCES" = yes; then
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
6973 else
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
6976 fi
6977
6978
6979
6980
6981 enablestring=
6982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6983echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6984 no_cache=0
6985 # Check whether --enable-clipboard or --disable-clipboard was given.
6986if test "${enable_clipboard+set}" = set; then
6987 enableval="$enable_clipboard"
6988
6989 if test "$enableval" = yes; then
6990 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6991 else
6992 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6993 fi
6994
6995else
6996
6997 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6998 if test "x$LINE" != x ; then
6999 eval "DEFAULT_$LINE"
7000 else
7001 no_cache=1
7002 fi
7003
7004 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7005
7006fi;
7007
7008 eval "$ac_cv_use_clipboard"
7009 if test "$no_cache" != 1; then
7010 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7011 fi
7012
7013 if test "$wxUSE_CLIPBOARD" = yes; then
7014 echo "$as_me:$LINENO: result: yes" >&5
7015echo "${ECHO_T}yes" >&6
7016 else
7017 echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6
7019 fi
7020
7021
7022 enablestring=
7023 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7024echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7025 no_cache=0
7026 # Check whether --enable-dnd or --disable-dnd was given.
7027if test "${enable_dnd+set}" = set; then
7028 enableval="$enable_dnd"
7029
7030 if test "$enableval" = yes; then
7031 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7032 else
7033 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7034 fi
7035
7036else
7037
7038 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7039 if test "x$LINE" != x ; then
7040 eval "DEFAULT_$LINE"
7041 else
7042 no_cache=1
7043 fi
7044
7045 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7046
7047fi;
7048
7049 eval "$ac_cv_use_dnd"
7050 if test "$no_cache" != 1; then
7051 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7052 fi
7053
7054 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7055 echo "$as_me:$LINENO: result: yes" >&5
7056echo "${ECHO_T}yes" >&6
7057 else
7058 echo "$as_me:$LINENO: result: no" >&5
7059echo "${ECHO_T}no" >&6
7060 fi
7061
7062
7063 enablestring=
7064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7065echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7066 no_cache=0
7067 # Check whether --enable-metafile or --disable-metafile was given.
7068if test "${enable_metafile+set}" = set; then
7069 enableval="$enable_metafile"
7070
7071 if test "$enableval" = yes; then
7072 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7073 else
7074 ac_cv_use_metafile='wxUSE_METAFILE=no'
7075 fi
7076
7077else
7078
7079 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7080 if test "x$LINE" != x ; then
7081 eval "DEFAULT_$LINE"
7082 else
7083 no_cache=1
7084 fi
7085
7086 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7087
7088fi;
7089
7090 eval "$ac_cv_use_metafile"
7091 if test "$no_cache" != 1; then
7092 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7093 fi
7094
7095 if test "$wxUSE_METAFILE" = yes; then
7096 echo "$as_me:$LINENO: result: yes" >&5
7097echo "${ECHO_T}yes" >&6
7098 else
7099 echo "$as_me:$LINENO: result: no" >&5
7100echo "${ECHO_T}no" >&6
7101 fi
7102
7103
7104
7105
7106
7107 enablestring=
7108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7109echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7110 no_cache=0
7111 # Check whether --enable-controls or --disable-controls was given.
7112if test "${enable_controls+set}" = set; then
7113 enableval="$enable_controls"
7114
7115 if test "$enableval" = yes; then
7116 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7117 else
7118 ac_cv_use_controls='wxUSE_CONTROLS=no'
7119 fi
7120
7121else
7122
7123 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7124 if test "x$LINE" != x ; then
7125 eval "DEFAULT_$LINE"
7126 else
7127 no_cache=1
7128 fi
7129
7130 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7131
7132fi;
7133
7134 eval "$ac_cv_use_controls"
7135 if test "$no_cache" != 1; then
7136 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7137 fi
7138
7139 if test "$wxUSE_CONTROLS" = yes; then
7140 echo "$as_me:$LINENO: result: yes" >&5
7141echo "${ECHO_T}yes" >&6
7142 else
7143 echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
7145 fi
7146
7147
7148if test "$wxUSE_CONTROLS" = "yes"; then
7149 DEFAULT_wxUSE_ACCEL=yes
7150 DEFAULT_wxUSE_BMPBUTTON=yes
7151 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7152 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7153 DEFAULT_wxUSE_CARET=yes
7154 DEFAULT_wxUSE_COMBOBOX=yes
7155 DEFAULT_wxUSE_CHECKBOX=yes
7156 DEFAULT_wxUSE_CHECKLISTBOX=yes
7157 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7158 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7159 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7160 DEFAULT_wxUSE_GAUGE=yes
7161 DEFAULT_wxUSE_GRID=yes
7162 DEFAULT_wxUSE_IMAGLIST=yes
7163 DEFAULT_wxUSE_LISTBOOK=yes
7164 DEFAULT_wxUSE_LISTBOX=yes
7165 DEFAULT_wxUSE_LISTCTRL=yes
7166 DEFAULT_wxUSE_NOTEBOOK=yes
7167 DEFAULT_wxUSE_RADIOBOX=yes
7168 DEFAULT_wxUSE_RADIOBTN=yes
7169 DEFAULT_wxUSE_SASH=yes
7170 DEFAULT_wxUSE_SCROLLBAR=yes
7171 DEFAULT_wxUSE_SLIDER=yes
7172 DEFAULT_wxUSE_SPINBTN=yes
7173 DEFAULT_wxUSE_SPINCTRL=yes
7174 DEFAULT_wxUSE_SPLITTER=yes
7175 DEFAULT_wxUSE_STATBMP=yes
7176 DEFAULT_wxUSE_STATBOX=yes
7177 DEFAULT_wxUSE_STATLINE=yes
7178 DEFAULT_wxUSE_STATUSBAR=yes
7179 DEFAULT_wxUSE_TAB_DIALOG=yes
7180 DEFAULT_wxUSE_TOGGLEBTN=yes
7181 DEFAULT_wxUSE_TOOLBAR=yes
7182 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7183 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7184 DEFAULT_wxUSE_TOOLTIPS=yes
7185 DEFAULT_wxUSE_TREECTRL=yes
7186 DEFAULT_wxUSE_POPUPWIN=yes
7187 DEFAULT_wxUSE_TIPWINDOW=yes
7188elif test "$wxUSE_CONTROLS" = "no"; then
7189 DEFAULT_wxUSE_ACCEL=no
7190 DEFAULT_wxUSE_BMPBUTTON=no
7191 DEFAULT_wxUSE_BUTTON=no
7192 DEFAULT_wxUSE_CALCTRL=no
7193 DEFAULT_wxUSE_CARET=no
7194 DEFAULT_wxUSE_COMBOBOX=no
7195 DEFAULT_wxUSE_CHECKBOX=no
7196 DEFAULT_wxUSE_CHECKLISTBOX=no
7197 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7198 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7199 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7200 DEFAULT_wxUSE_GAUGE=no
7201 DEFAULT_wxUSE_GRID=no
7202 DEFAULT_wxUSE_IMAGLIST=no
7203 DEFAULT_wxUSE_LISTBOOK=no
7204 DEFAULT_wxUSE_LISTBOX=no
7205 DEFAULT_wxUSE_LISTCTRL=no
7206 DEFAULT_wxUSE_NOTEBOOK=no
7207 DEFAULT_wxUSE_RADIOBOX=no
7208 DEFAULT_wxUSE_RADIOBTN=no
7209 DEFAULT_wxUSE_SASH=no
7210 DEFAULT_wxUSE_SCROLLBAR=no
7211 DEFAULT_wxUSE_SLIDER=no
7212 DEFAULT_wxUSE_SPINBTN=no
7213 DEFAULT_wxUSE_SPINCTRL=no
7214 DEFAULT_wxUSE_SPLITTER=no
7215 DEFAULT_wxUSE_STATBMP=no
7216 DEFAULT_wxUSE_STATBOX=no
7217 DEFAULT_wxUSE_STATLINE=no
7218 DEFAULT_wxUSE_STATUSBAR=no
7219 DEFAULT_wxUSE_TAB_DIALOG=no
7220 DEFAULT_wxUSE_TOGGLEBTN=no
7221 DEFAULT_wxUSE_TOOLBAR=no
7222 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7223 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7224 DEFAULT_wxUSE_TOOLTIPS=no
7225 DEFAULT_wxUSE_TREECTRL=no
7226 DEFAULT_wxUSE_POPUPWIN=no
7227 DEFAULT_wxUSE_TIPWINDOW=no
7228fi
7229
a848cd7e
SC
7230
7231 enablestring=
7232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7233echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7234 no_cache=0
7235 # Check whether --enable-accel or --disable-accel was given.
7236if test "${enable_accel+set}" = set; then
7237 enableval="$enable_accel"
7238
7239 if test "$enableval" = yes; then
7240 ac_cv_use_accel='wxUSE_ACCEL=yes'
7241 else
7242 ac_cv_use_accel='wxUSE_ACCEL=no'
7243 fi
7244
7245else
7246
7247 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7248 if test "x$LINE" != x ; then
7249 eval "DEFAULT_$LINE"
7250 else
7251 no_cache=1
7252 fi
7253
7254 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7255
7256fi;
7257
7258 eval "$ac_cv_use_accel"
7259 if test "$no_cache" != 1; then
7260 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7261 fi
7262
7263 if test "$wxUSE_ACCEL" = yes; then
7264 echo "$as_me:$LINENO: result: yes" >&5
7265echo "${ECHO_T}yes" >&6
7266 else
7267 echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6
7269 fi
7270
7271
7272 enablestring=
7273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7274echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7275 no_cache=0
7276 # Check whether --enable-button or --disable-button was given.
7277if test "${enable_button+set}" = set; then
7278 enableval="$enable_button"
7279
7280 if test "$enableval" = yes; then
7281 ac_cv_use_button='wxUSE_BUTTON=yes'
7282 else
7283 ac_cv_use_button='wxUSE_BUTTON=no'
7284 fi
7285
7286else
7287
7288 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7289 if test "x$LINE" != x ; then
7290 eval "DEFAULT_$LINE"
7291 else
7292 no_cache=1
7293 fi
7294
7295 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7296
7297fi;
7298
7299 eval "$ac_cv_use_button"
7300 if test "$no_cache" != 1; then
7301 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7302 fi
7303
7304 if test "$wxUSE_BUTTON" = yes; then
7305 echo "$as_me:$LINENO: result: yes" >&5
7306echo "${ECHO_T}yes" >&6
7307 else
7308 echo "$as_me:$LINENO: result: no" >&5
7309echo "${ECHO_T}no" >&6
7310 fi
7311
7312
7313 enablestring=
7314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7315echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7316 no_cache=0
7317 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7318if test "${enable_bmpbutton+set}" = set; then
7319 enableval="$enable_bmpbutton"
7320
7321 if test "$enableval" = yes; then
7322 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7323 else
7324 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7325 fi
7326
7327else
7328
7329 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7330 if test "x$LINE" != x ; then
7331 eval "DEFAULT_$LINE"
7332 else
7333 no_cache=1
7334 fi
7335
7336 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7337
7338fi;
7339
7340 eval "$ac_cv_use_bmpbutton"
7341 if test "$no_cache" != 1; then
7342 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7343 fi
7344
7345 if test "$wxUSE_BMPBUTTON" = yes; then
7346 echo "$as_me:$LINENO: result: yes" >&5
7347echo "${ECHO_T}yes" >&6
7348 else
7349 echo "$as_me:$LINENO: result: no" >&5
7350echo "${ECHO_T}no" >&6
7351 fi
7352
7353
7354 enablestring=
7355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7356echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7357 no_cache=0
7358 # Check whether --enable-calendar or --disable-calendar was given.
7359if test "${enable_calendar+set}" = set; then
7360 enableval="$enable_calendar"
7361
7362 if test "$enableval" = yes; then
7363 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7364 else
7365 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7366 fi
7367
7368else
7369
7370 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7371 if test "x$LINE" != x ; then
7372 eval "DEFAULT_$LINE"
7373 else
7374 no_cache=1
7375 fi
7376
7377 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7378
7379fi;
7380
7381 eval "$ac_cv_use_calendar"
7382 if test "$no_cache" != 1; then
7383 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7384 fi
7385
7386 if test "$wxUSE_CALCTRL" = yes; then
7387 echo "$as_me:$LINENO: result: yes" >&5
7388echo "${ECHO_T}yes" >&6
7389 else
7390 echo "$as_me:$LINENO: result: no" >&5
7391echo "${ECHO_T}no" >&6
7392 fi
7393
7394
7395 enablestring=
7396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7397echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7398 no_cache=0
7399 # Check whether --enable-caret or --disable-caret was given.
7400if test "${enable_caret+set}" = set; then
7401 enableval="$enable_caret"
7402
7403 if test "$enableval" = yes; then
7404 ac_cv_use_caret='wxUSE_CARET=yes'
7405 else
7406 ac_cv_use_caret='wxUSE_CARET=no'
7407 fi
7408
7409else
7410
7411 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7412 if test "x$LINE" != x ; then
7413 eval "DEFAULT_$LINE"
7414 else
7415 no_cache=1
7416 fi
7417
7418 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7419
7420fi;
7421
7422 eval "$ac_cv_use_caret"
7423 if test "$no_cache" != 1; then
7424 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7425 fi
7426
7427 if test "$wxUSE_CARET" = yes; then
7428 echo "$as_me:$LINENO: result: yes" >&5
7429echo "${ECHO_T}yes" >&6
7430 else
7431 echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6
7433 fi
7434
7435
7436 enablestring=
7437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7438echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7439 no_cache=0
7440 # Check whether --enable-checkbox or --disable-checkbox was given.
7441if test "${enable_checkbox+set}" = set; then
7442 enableval="$enable_checkbox"
7443
7444 if test "$enableval" = yes; then
7445 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7446 else
7447 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7448 fi
7449
7450else
7451
7452 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7453 if test "x$LINE" != x ; then
7454 eval "DEFAULT_$LINE"
7455 else
7456 no_cache=1
7457 fi
7458
7459 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7460
7461fi;
7462
7463 eval "$ac_cv_use_checkbox"
7464 if test "$no_cache" != 1; then
7465 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7466 fi
7467
7468 if test "$wxUSE_CHECKBOX" = yes; then
7469 echo "$as_me:$LINENO: result: yes" >&5
7470echo "${ECHO_T}yes" >&6
7471 else
7472 echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6
7474 fi
7475
7476
7477 enablestring=
7478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7479echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7480 no_cache=0
7481 # Check whether --enable-checklst or --disable-checklst was given.
7482if test "${enable_checklst+set}" = set; then
7483 enableval="$enable_checklst"
7484
7485 if test "$enableval" = yes; then
7486 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7487 else
7488 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7489 fi
7490
7491else
7492
7493 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7494 if test "x$LINE" != x ; then
7495 eval "DEFAULT_$LINE"
7496 else
7497 no_cache=1
7498 fi
7499
7500 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7501
7502fi;
7503
7504 eval "$ac_cv_use_checklst"
7505 if test "$no_cache" != 1; then
7506 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7507 fi
7508
7509 if test "$wxUSE_CHECKLST" = yes; then
7510 echo "$as_me:$LINENO: result: yes" >&5
7511echo "${ECHO_T}yes" >&6
7512 else
7513 echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6
7515 fi
7516
7517
7518 enablestring=
7519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7520echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7521 no_cache=0
7522 # Check whether --enable-choice or --disable-choice was given.
7523if test "${enable_choice+set}" = set; then
7524 enableval="$enable_choice"
7525
7526 if test "$enableval" = yes; then
7527 ac_cv_use_choice='wxUSE_CHOICE=yes'
7528 else
7529 ac_cv_use_choice='wxUSE_CHOICE=no'
7530 fi
7531
7532else
7533
7534 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7535 if test "x$LINE" != x ; then
7536 eval "DEFAULT_$LINE"
7537 else
7538 no_cache=1
7539 fi
7540
7541 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7542
7543fi;
7544
7545 eval "$ac_cv_use_choice"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_CHOICE" = yes; then
7551 echo "$as_me:$LINENO: result: yes" >&5
7552echo "${ECHO_T}yes" >&6
7553 else
7554 echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6
7556 fi
7557
7558
92bbdbcd
WS
7559 enablestring=
7560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7561echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7562 no_cache=0
7563 # Check whether --enable-choicebook or --disable-choicebook was given.
7564if test "${enable_choicebook+set}" = set; then
7565 enableval="$enable_choicebook"
7566
7567 if test "$enableval" = yes; then
7568 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7569 else
7570 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7571 fi
7572
7573else
7574
7575 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7583
7584fi;
7585
7586 eval "$ac_cv_use_choicebook"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_CHOICEBOOK" = yes; then
7592 echo "$as_me:$LINENO: result: yes" >&5
7593echo "${ECHO_T}yes" >&6
7594 else
7595 echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
7597 fi
7598
7599
a848cd7e
SC
7600 enablestring=
7601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7602echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7603 no_cache=0
7604 # Check whether --enable-combobox or --disable-combobox was given.
7605if test "${enable_combobox+set}" = set; then
7606 enableval="$enable_combobox"
7607
7608 if test "$enableval" = yes; then
7609 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7610 else
7611 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7612 fi
7613
7614else
7615
7616 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7617 if test "x$LINE" != x ; then
7618 eval "DEFAULT_$LINE"
7619 else
7620 no_cache=1
7621 fi
7622
7623 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7624
7625fi;
7626
7627 eval "$ac_cv_use_combobox"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_COMBOBOX" = yes; then
7633 echo "$as_me:$LINENO: result: yes" >&5
7634echo "${ECHO_T}yes" >&6
7635 else
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
7638 fi
7639
7640
da98e9be
VZ
7641 enablestring=
7642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7643echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7644 no_cache=0
7645 # Check whether --enable-datepick or --disable-datepick was given.
7646if test "${enable_datepick+set}" = set; then
7647 enableval="$enable_datepick"
7648
7649 if test "$enableval" = yes; then
7650 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7651 else
7652 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7653 fi
7654
7655else
7656
7657 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7665
7666fi;
7667
7668 eval "$ac_cv_use_datepick"
7669 if test "$no_cache" != 1; then
7670 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7671 fi
7672
7673 if test "$wxUSE_DATEPICKCTRL" = yes; then
7674 echo "$as_me:$LINENO: result: yes" >&5
7675echo "${ECHO_T}yes" >&6
7676 else
7677 echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6
7679 fi
7680
7681
a848cd7e
SC
7682 enablestring=
7683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7684echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7685 no_cache=0
7686 # Check whether --enable-display or --disable-display was given.
7687if test "${enable_display+set}" = set; then
7688 enableval="$enable_display"
7689
7690 if test "$enableval" = yes; then
7691 ac_cv_use_display='wxUSE_DISPLAY=yes'
7692 else
7693 ac_cv_use_display='wxUSE_DISPLAY=no'
7694 fi
7695
7696else
7697
7698 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7699 if test "x$LINE" != x ; then
7700 eval "DEFAULT_$LINE"
7701 else
7702 no_cache=1
7703 fi
7704
7705 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7706
7707fi;
7708
7709 eval "$ac_cv_use_display"
7710 if test "$no_cache" != 1; then
7711 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7712 fi
7713
7714 if test "$wxUSE_DISPLAY" = yes; then
7715 echo "$as_me:$LINENO: result: yes" >&5
7716echo "${ECHO_T}yes" >&6
7717 else
7718 echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6
7720 fi
7721
7722
7723 enablestring=
7724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7725echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7726 no_cache=0
7727 # Check whether --enable-gauge or --disable-gauge was given.
7728if test "${enable_gauge+set}" = set; then
7729 enableval="$enable_gauge"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7733 else
7734 ac_cv_use_gauge='wxUSE_GAUGE=no'
7735 fi
7736
7737else
7738
7739 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7740 if test "x$LINE" != x ; then
7741 eval "DEFAULT_$LINE"
7742 else
7743 no_cache=1
7744 fi
7745
7746 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7747
7748fi;
7749
7750 eval "$ac_cv_use_gauge"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_GAUGE" = yes; then
7756 echo "$as_me:$LINENO: result: yes" >&5
7757echo "${ECHO_T}yes" >&6
7758 else
7759 echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
7761 fi
7762
7763
7764 enablestring=
7765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7766echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7767 no_cache=0
7768 # Check whether --enable-grid or --disable-grid was given.
7769if test "${enable_grid+set}" = set; then
7770 enableval="$enable_grid"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_grid='wxUSE_GRID=yes'
7774 else
7775 ac_cv_use_grid='wxUSE_GRID=no'
7776 fi
7777
7778else
7779
7780 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7788
7789fi;
7790
7791 eval "$ac_cv_use_grid"
7792 if test "$no_cache" != 1; then
7793 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7794 fi
7795
7796 if test "$wxUSE_GRID" = yes; then
7797 echo "$as_me:$LINENO: result: yes" >&5
7798echo "${ECHO_T}yes" >&6
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801echo "${ECHO_T}no" >&6
7802 fi
7803
7804
7805 enablestring=
7806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7807echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7808 no_cache=0
7809 # Check whether --enable-imaglist or --disable-imaglist was given.
7810if test "${enable_imaglist+set}" = set; then
7811 enableval="$enable_imaglist"
7812
7813 if test "$enableval" = yes; then
7814 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7815 else
7816 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7817 fi
7818
7819else
7820
7821 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7822 if test "x$LINE" != x ; then
7823 eval "DEFAULT_$LINE"
7824 else
7825 no_cache=1
7826 fi
7827
7828 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7829
7830fi;
7831
7832 eval "$ac_cv_use_imaglist"
7833 if test "$no_cache" != 1; then
7834 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7835 fi
7836
7837 if test "$wxUSE_IMAGLIST" = yes; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839echo "${ECHO_T}yes" >&6
7840 else
7841 echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6
7843 fi
7844
7845
7846 enablestring=
7847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7848echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7849 no_cache=0
7850 # Check whether --enable-listbook or --disable-listbook was given.
7851if test "${enable_listbook+set}" = set; then
7852 enableval="$enable_listbook"
7853
7854 if test "$enableval" = yes; then
7855 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7856 else
7857 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7858 fi
7859
7860else
7861
7862 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7863 if test "x$LINE" != x ; then
7864 eval "DEFAULT_$LINE"
7865 else
7866 no_cache=1
7867 fi
7868
7869 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7870
7871fi;
7872
7873 eval "$ac_cv_use_listbook"
7874 if test "$no_cache" != 1; then
7875 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7876 fi
7877
7878 if test "$wxUSE_LISTBOOK" = yes; then
7879 echo "$as_me:$LINENO: result: yes" >&5
7880echo "${ECHO_T}yes" >&6
7881 else
7882 echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6
7884 fi
7885
7886
7887 enablestring=
7888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7889echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7890 no_cache=0
7891 # Check whether --enable-listbox or --disable-listbox was given.
7892if test "${enable_listbox+set}" = set; then
7893 enableval="$enable_listbox"
7894
7895 if test "$enableval" = yes; then
7896 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7897 else
7898 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7899 fi
7900
7901else
7902
7903 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7904 if test "x$LINE" != x ; then
7905 eval "DEFAULT_$LINE"
7906 else
7907 no_cache=1
7908 fi
7909
7910 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7911
7912fi;
7913
7914 eval "$ac_cv_use_listbox"
7915 if test "$no_cache" != 1; then
7916 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7917 fi
7918
7919 if test "$wxUSE_LISTBOX" = yes; then
7920 echo "$as_me:$LINENO: result: yes" >&5
7921echo "${ECHO_T}yes" >&6
7922 else
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
7925 fi
7926
7927
7928 enablestring=
7929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7930echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7931 no_cache=0
7932 # Check whether --enable-listctrl or --disable-listctrl was given.
7933if test "${enable_listctrl+set}" = set; then
7934 enableval="$enable_listctrl"
7935
7936 if test "$enableval" = yes; then
7937 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7938 else
7939 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7940 fi
7941
7942else
7943
7944 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7945 if test "x$LINE" != x ; then
7946 eval "DEFAULT_$LINE"
7947 else
7948 no_cache=1
7949 fi
7950
7951 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7952
7953fi;
7954
7955 eval "$ac_cv_use_listctrl"
7956 if test "$no_cache" != 1; then
7957 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7958 fi
7959
7960 if test "$wxUSE_LISTCTRL" = yes; then
7961 echo "$as_me:$LINENO: result: yes" >&5
7962echo "${ECHO_T}yes" >&6
7963 else
7964 echo "$as_me:$LINENO: result: no" >&5
7965echo "${ECHO_T}no" >&6
7966 fi
7967
7968
7969 enablestring=
7970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7971echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7972 no_cache=0
7973 # Check whether --enable-notebook or --disable-notebook was given.
7974if test "${enable_notebook+set}" = set; then
7975 enableval="$enable_notebook"
7976
7977 if test "$enableval" = yes; then
7978 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7979 else
7980 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7981 fi
7982
7983else
7984
7985 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7986 if test "x$LINE" != x ; then
7987 eval "DEFAULT_$LINE"
7988 else
7989 no_cache=1
7990 fi
7991
7992 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7993
7994fi;
7995
7996 eval "$ac_cv_use_notebook"
7997 if test "$no_cache" != 1; then
7998 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7999 fi
8000
8001 if test "$wxUSE_NOTEBOOK" = yes; then
8002 echo "$as_me:$LINENO: result: yes" >&5
8003echo "${ECHO_T}yes" >&6
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6
8007 fi
8008
8009
8010 enablestring=
8011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8012echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8013 no_cache=0
8014 # Check whether --enable-radiobox or --disable-radiobox was given.
8015if test "${enable_radiobox+set}" = set; then
8016 enableval="$enable_radiobox"
8017
8018 if test "$enableval" = yes; then
8019 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8020 else
8021 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8022 fi
8023
8024else
8025
8026 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8027 if test "x$LINE" != x ; then
8028 eval "DEFAULT_$LINE"
8029 else
8030 no_cache=1
8031 fi
8032
8033 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8034
8035fi;
8036
8037 eval "$ac_cv_use_radiobox"
8038 if test "$no_cache" != 1; then
8039 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8040 fi
8041
8042 if test "$wxUSE_RADIOBOX" = yes; then
8043 echo "$as_me:$LINENO: result: yes" >&5
8044echo "${ECHO_T}yes" >&6
8045 else
8046 echo "$as_me:$LINENO: result: no" >&5
8047echo "${ECHO_T}no" >&6
8048 fi
8049
8050
8051 enablestring=
8052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8053echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8054 no_cache=0
8055 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8056if test "${enable_radiobtn+set}" = set; then
8057 enableval="$enable_radiobtn"
8058
8059 if test "$enableval" = yes; then
8060 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8061 else
8062 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8063 fi
8064
8065else
8066
8067 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8068 if test "x$LINE" != x ; then
8069 eval "DEFAULT_$LINE"
8070 else
8071 no_cache=1
8072 fi
8073
8074 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8075
8076fi;
8077
8078 eval "$ac_cv_use_radiobtn"
8079 if test "$no_cache" != 1; then
8080 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8081 fi
8082
8083 if test "$wxUSE_RADIOBTN" = yes; then
8084 echo "$as_me:$LINENO: result: yes" >&5
8085echo "${ECHO_T}yes" >&6
8086 else
8087 echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6
8089 fi
8090
8091
8092 enablestring=
8093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8094echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8095 no_cache=0
8096 # Check whether --enable-sash or --disable-sash was given.
8097if test "${enable_sash+set}" = set; then
8098 enableval="$enable_sash"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_sash='wxUSE_SASH=yes'
8102 else
8103 ac_cv_use_sash='wxUSE_SASH=no'
8104 fi
8105
8106else
8107
8108 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8116
8117fi;
8118
8119 eval "$ac_cv_use_sash"
8120 if test "$no_cache" != 1; then
8121 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8122 fi
8123
8124 if test "$wxUSE_SASH" = yes; then
8125 echo "$as_me:$LINENO: result: yes" >&5
8126echo "${ECHO_T}yes" >&6
8127 else
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
8130 fi
8131
8132
8133 enablestring=
8134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8135echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8136 no_cache=0
8137 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8138if test "${enable_scrollbar+set}" = set; then
8139 enableval="$enable_scrollbar"
8140
8141 if test "$enableval" = yes; then
8142 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8143 else
8144 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8145 fi
8146
8147else
8148
8149 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8150 if test "x$LINE" != x ; then
8151 eval "DEFAULT_$LINE"
8152 else
8153 no_cache=1
8154 fi
8155
8156 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8157
8158fi;
8159
8160 eval "$ac_cv_use_scrollbar"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_SCROLLBAR" = yes; then
8166 echo "$as_me:$LINENO: result: yes" >&5
8167echo "${ECHO_T}yes" >&6
8168 else
8169 echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6
8171 fi
8172
8173
8174 enablestring=
8175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8176echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8177 no_cache=0
8178 # Check whether --enable-slider or --disable-slider was given.
8179if test "${enable_slider+set}" = set; then
8180 enableval="$enable_slider"
8181
8182 if test "$enableval" = yes; then
8183 ac_cv_use_slider='wxUSE_SLIDER=yes'
8184 else
8185 ac_cv_use_slider='wxUSE_SLIDER=no'
8186 fi
8187
8188else
8189
8190 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8191 if test "x$LINE" != x ; then
8192 eval "DEFAULT_$LINE"
8193 else
8194 no_cache=1
8195 fi
8196
8197 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8198
8199fi;
8200
8201 eval "$ac_cv_use_slider"
8202 if test "$no_cache" != 1; then
8203 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8204 fi
8205
8206 if test "$wxUSE_SLIDER" = yes; then
8207 echo "$as_me:$LINENO: result: yes" >&5
8208echo "${ECHO_T}yes" >&6
8209 else
8210 echo "$as_me:$LINENO: result: no" >&5
8211echo "${ECHO_T}no" >&6
8212 fi
8213
8214
8215 enablestring=
8216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8217echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8218 no_cache=0
8219 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8220if test "${enable_spinbtn+set}" = set; then
8221 enableval="$enable_spinbtn"
8222
8223 if test "$enableval" = yes; then
8224 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8225 else
8226 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8227 fi
8228
8229else
8230
8231 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8239
8240fi;
8241
8242 eval "$ac_cv_use_spinbtn"
8243 if test "$no_cache" != 1; then
8244 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8245 fi
8246
8247 if test "$wxUSE_SPINBTN" = yes; then
8248 echo "$as_me:$LINENO: result: yes" >&5
8249echo "${ECHO_T}yes" >&6
8250 else
8251 echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6
8253 fi
8254
8255
8256 enablestring=
8257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8258echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8259 no_cache=0
8260 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8261if test "${enable_spinctrl+set}" = set; then
8262 enableval="$enable_spinctrl"
8263
8264 if test "$enableval" = yes; then
8265 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8266 else
8267 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8268 fi
8269
8270else
8271
8272 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8280
8281fi;
8282
8283 eval "$ac_cv_use_spinctrl"
8284 if test "$no_cache" != 1; then
8285 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8286 fi
8287
8288 if test "$wxUSE_SPINCTRL" = yes; then
8289 echo "$as_me:$LINENO: result: yes" >&5
8290echo "${ECHO_T}yes" >&6
8291 else
8292 echo "$as_me:$LINENO: result: no" >&5
8293echo "${ECHO_T}no" >&6
8294 fi
8295
8296
8297 enablestring=
8298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8299echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8300 no_cache=0
8301 # Check whether --enable-splitter or --disable-splitter was given.
8302if test "${enable_splitter+set}" = set; then
8303 enableval="$enable_splitter"
8304
8305 if test "$enableval" = yes; then
8306 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8307 else
8308 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8309 fi
8310
8311else
8312
8313 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8321
8322fi;
8323
8324 eval "$ac_cv_use_splitter"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_SPLITTER" = yes; then
8330 echo "$as_me:$LINENO: result: yes" >&5
8331echo "${ECHO_T}yes" >&6
8332 else
8333 echo "$as_me:$LINENO: result: no" >&5
8334echo "${ECHO_T}no" >&6
8335 fi
8336
8337
8338 enablestring=
8339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8340echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8341 no_cache=0
8342 # Check whether --enable-statbmp or --disable-statbmp was given.
8343if test "${enable_statbmp+set}" = set; then
8344 enableval="$enable_statbmp"
8345
8346 if test "$enableval" = yes; then
8347 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8348 else
8349 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8350 fi
8351
8352else
8353
8354 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8355 if test "x$LINE" != x ; then
8356 eval "DEFAULT_$LINE"
8357 else
8358 no_cache=1
8359 fi
8360
8361 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8362
8363fi;
8364
8365 eval "$ac_cv_use_statbmp"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_STATBMP" = yes; then
8371 echo "$as_me:$LINENO: result: yes" >&5
8372echo "${ECHO_T}yes" >&6
8373 else
8374 echo "$as_me:$LINENO: result: no" >&5
8375echo "${ECHO_T}no" >&6
8376 fi
8377
8378
8379 enablestring=
8380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8381echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8382 no_cache=0
8383 # Check whether --enable-statbox or --disable-statbox was given.
8384if test "${enable_statbox+set}" = set; then
8385 enableval="$enable_statbox"
8386
8387 if test "$enableval" = yes; then
8388 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8389 else
8390 ac_cv_use_statbox='wxUSE_STATBOX=no'
8391 fi
8392
8393else
8394
8395 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8396 if test "x$LINE" != x ; then
8397 eval "DEFAULT_$LINE"
8398 else
8399 no_cache=1
8400 fi
8401
8402 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8403
8404fi;
8405
8406 eval "$ac_cv_use_statbox"
8407 if test "$no_cache" != 1; then
8408 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8409 fi
8410
8411 if test "$wxUSE_STATBOX" = yes; then
8412 echo "$as_me:$LINENO: result: yes" >&5
8413echo "${ECHO_T}yes" >&6
8414 else
8415 echo "$as_me:$LINENO: result: no" >&5
8416echo "${ECHO_T}no" >&6
8417 fi
8418
8419
8420 enablestring=
8421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8422echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8423 no_cache=0
8424 # Check whether --enable-statline or --disable-statline was given.
8425if test "${enable_statline+set}" = set; then
8426 enableval="$enable_statline"
8427
8428 if test "$enableval" = yes; then
8429 ac_cv_use_statline='wxUSE_STATLINE=yes'
8430 else
8431 ac_cv_use_statline='wxUSE_STATLINE=no'
8432 fi
8433
8434else
8435
8436 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8437 if test "x$LINE" != x ; then
8438 eval "DEFAULT_$LINE"
8439 else
8440 no_cache=1
8441 fi
8442
8443 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8444
8445fi;
8446
8447 eval "$ac_cv_use_statline"
8448 if test "$no_cache" != 1; then
8449 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8450 fi
8451
8452 if test "$wxUSE_STATLINE" = yes; then
8453 echo "$as_me:$LINENO: result: yes" >&5
8454echo "${ECHO_T}yes" >&6
8455 else
8456 echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
8458 fi
8459
8460
8461 enablestring=
8462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8463echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8464 no_cache=0
8465 # Check whether --enable-stattext or --disable-stattext was given.
8466if test "${enable_stattext+set}" = set; then
8467 enableval="$enable_stattext"
8468
8469 if test "$enableval" = yes; then
8470 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8471 else
8472 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8473 fi
8474
8475else
8476
8477 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8478 if test "x$LINE" != x ; then
8479 eval "DEFAULT_$LINE"
8480 else
8481 no_cache=1
8482 fi
8483
8484 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8485
8486fi;
8487
8488 eval "$ac_cv_use_stattext"
8489 if test "$no_cache" != 1; then
8490 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8491 fi
8492
8493 if test "$wxUSE_STATTEXT" = yes; then
8494 echo "$as_me:$LINENO: result: yes" >&5
8495echo "${ECHO_T}yes" >&6
8496 else
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
8499 fi
8500
8501
8502 enablestring=
8503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8504echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8505 no_cache=0
8506 # Check whether --enable-statusbar or --disable-statusbar was given.
8507if test "${enable_statusbar+set}" = set; then
8508 enableval="$enable_statusbar"
8509
8510 if test "$enableval" = yes; then
8511 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8512 else
8513 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8514 fi
8515
8516else
8517
8518 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8519 if test "x$LINE" != x ; then
8520 eval "DEFAULT_$LINE"
8521 else
8522 no_cache=1
8523 fi
8524
8525 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8526
8527fi;
8528
8529 eval "$ac_cv_use_statusbar"
8530 if test "$no_cache" != 1; then
8531 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8532 fi
8533
8534 if test "$wxUSE_STATUSBAR" = yes; then
8535 echo "$as_me:$LINENO: result: yes" >&5
8536echo "${ECHO_T}yes" >&6
8537 else
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
8540 fi
8541
8542
8543 enablestring=
8544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8545echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8546 no_cache=0
8547 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8548if test "${enable_tabdialog+set}" = set; then
8549 enableval="$enable_tabdialog"
8550
8551 if test "$enableval" = yes; then
8552 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8553 else
8554 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8555 fi
8556
8557else
8558
8559 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8560 if test "x$LINE" != x ; then
8561 eval "DEFAULT_$LINE"
8562 else
8563 no_cache=1
8564 fi
8565
8566 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8567
8568fi;
8569
8570 eval "$ac_cv_use_tabdialog"
8571 if test "$no_cache" != 1; then
8572 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8573 fi
8574
8575 if test "$wxUSE_TABDIALOG" = yes; then
8576 echo "$as_me:$LINENO: result: yes" >&5
8577echo "${ECHO_T}yes" >&6
8578 else
8579 echo "$as_me:$LINENO: result: no" >&5
8580echo "${ECHO_T}no" >&6
8581 fi
8582
8583
8584 enablestring=
8585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8586echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8587 no_cache=0
8588 # Check whether --enable-textctrl or --disable-textctrl was given.
8589if test "${enable_textctrl+set}" = set; then
8590 enableval="$enable_textctrl"
8591
8592 if test "$enableval" = yes; then
8593 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8594 else
8595 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8596 fi
8597
8598else
8599
8600 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8601 if test "x$LINE" != x ; then
8602 eval "DEFAULT_$LINE"
8603 else
8604 no_cache=1
8605 fi
8606
8607 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8608
8609fi;
8610
8611 eval "$ac_cv_use_textctrl"
8612 if test "$no_cache" != 1; then
8613 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8614 fi
8615
8616 if test "$wxUSE_TEXTCTRL" = yes; then
8617 echo "$as_me:$LINENO: result: yes" >&5
8618echo "${ECHO_T}yes" >&6
8619 else
8620 echo "$as_me:$LINENO: result: no" >&5
8621echo "${ECHO_T}no" >&6
8622 fi
8623
8624
8625 enablestring=
8626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8627echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8628 no_cache=0
8629 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8630if test "${enable_togglebtn+set}" = set; then
8631 enableval="$enable_togglebtn"
8632
8633 if test "$enableval" = yes; then
8634 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8635 else
8636 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8637 fi
8638
8639else
8640
8641 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8642 if test "x$LINE" != x ; then
8643 eval "DEFAULT_$LINE"
8644 else
8645 no_cache=1
8646 fi
8647
8648 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8649
8650fi;
8651
8652 eval "$ac_cv_use_togglebtn"
8653 if test "$no_cache" != 1; then
8654 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8655 fi
8656
8657 if test "$wxUSE_TOGGLEBTN" = yes; then
8658 echo "$as_me:$LINENO: result: yes" >&5
8659echo "${ECHO_T}yes" >&6
8660 else
8661 echo "$as_me:$LINENO: result: no" >&5
8662echo "${ECHO_T}no" >&6
8663 fi
8664
8665
8666 enablestring=
8667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8668echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8669 no_cache=0
8670 # Check whether --enable-toolbar or --disable-toolbar was given.
8671if test "${enable_toolbar+set}" = set; then
8672 enableval="$enable_toolbar"
8673
8674 if test "$enableval" = yes; then
8675 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8676 else
8677 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8678 fi
8679
8680else
8681
8682 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8683 if test "x$LINE" != x ; then
8684 eval "DEFAULT_$LINE"
8685 else
8686 no_cache=1
8687 fi
8688
8689 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8690
8691fi;
8692
8693 eval "$ac_cv_use_toolbar"
8694 if test "$no_cache" != 1; then
8695 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8696 fi
8697
8698 if test "$wxUSE_TOOLBAR" = yes; then
8699 echo "$as_me:$LINENO: result: yes" >&5
8700echo "${ECHO_T}yes" >&6
8701 else
8702 echo "$as_me:$LINENO: result: no" >&5
8703echo "${ECHO_T}no" >&6
8704 fi
8705
8706
8707 enablestring=
8708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8709echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8710 no_cache=0
8711 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8712if test "${enable_tbarnative+set}" = set; then
8713 enableval="$enable_tbarnative"
8714
8715 if test "$enableval" = yes; then
8716 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8717 else
8718 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8719 fi
8720
8721else
8722
8723 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8724 if test "x$LINE" != x ; then
8725 eval "DEFAULT_$LINE"
8726 else
8727 no_cache=1
8728 fi
8729
8730 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8731
8732fi;
8733
8734 eval "$ac_cv_use_tbarnative"
8735 if test "$no_cache" != 1; then
8736 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8737 fi
8738
8739 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8740 echo "$as_me:$LINENO: result: yes" >&5
8741echo "${ECHO_T}yes" >&6
8742 else
8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
8745 fi
8746
8747
8748 enablestring=
8749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8750echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8751 no_cache=0
8752 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8753if test "${enable_tbarsmpl+set}" = set; then
8754 enableval="$enable_tbarsmpl"
8755
8756 if test "$enableval" = yes; then
8757 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8758 else
8759 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8760 fi
8761
8762else
8763
8764 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8765 if test "x$LINE" != x ; then
8766 eval "DEFAULT_$LINE"
8767 else
8768 no_cache=1
8769 fi
8770
8771 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8772
8773fi;
8774
8775 eval "$ac_cv_use_tbarsmpl"
8776 if test "$no_cache" != 1; then
8777 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8778 fi
8779
8780 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8781 echo "$as_me:$LINENO: result: yes" >&5
8782echo "${ECHO_T}yes" >&6
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785echo "${ECHO_T}no" >&6
8786 fi
8787
8788
8789 enablestring=
8790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8791echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8792 no_cache=0
8793 # Check whether --enable-treectrl or --disable-treectrl was given.
8794if test "${enable_treectrl+set}" = set; then
8795 enableval="$enable_treectrl"
8796
8797 if test "$enableval" = yes; then
8798 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8799 else
8800 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8801 fi
8802
8803else
8804
8805 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8806 if test "x$LINE" != x ; then
8807 eval "DEFAULT_$LINE"
8808 else
8809 no_cache=1
8810 fi
8811
8812 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8813
8814fi;
8815
8816 eval "$ac_cv_use_treectrl"
8817 if test "$no_cache" != 1; then
8818 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8819 fi
8820
8821 if test "$wxUSE_TREECTRL" = yes; then
8822 echo "$as_me:$LINENO: result: yes" >&5
8823echo "${ECHO_T}yes" >&6
8824 else
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
8827 fi
8828
8829
8830 enablestring=
8831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8832echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8833 no_cache=0
8834 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8835if test "${enable_tipwindow+set}" = set; then
8836 enableval="$enable_tipwindow"
8837
8838 if test "$enableval" = yes; then
8839 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8840 else
8841 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8842 fi
8843
8844else
8845
8846 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8847 if test "x$LINE" != x ; then
8848 eval "DEFAULT_$LINE"
8849 else
8850 no_cache=1
8851 fi
8852
8853 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8854
8855fi;
8856
8857 eval "$ac_cv_use_tipwindow"
8858 if test "$no_cache" != 1; then
8859 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8860 fi
8861
8862 if test "$wxUSE_TIPWINDOW" = yes; then
8863 echo "$as_me:$LINENO: result: yes" >&5
8864echo "${ECHO_T}yes" >&6
8865 else
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
8868 fi
8869
8870
8871 enablestring=
8872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8873echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8874 no_cache=0
8875 # Check whether --enable-popupwin or --disable-popupwin was given.
8876if test "${enable_popupwin+set}" = set; then
8877 enableval="$enable_popupwin"
8878
8879 if test "$enableval" = yes; then
8880 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8881 else
8882 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8883 fi
8884
8885else
8886
8887 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8888 if test "x$LINE" != x ; then
8889 eval "DEFAULT_$LINE"
8890 else
8891 no_cache=1
8892 fi
8893
8894 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8895
8896fi;
8897
8898 eval "$ac_cv_use_popupwin"
8899 if test "$no_cache" != 1; then
8900 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8901 fi
8902
8903 if test "$wxUSE_POPUPWIN" = yes; then
8904 echo "$as_me:$LINENO: result: yes" >&5
8905echo "${ECHO_T}yes" >&6
8906 else
8907 echo "$as_me:$LINENO: result: no" >&5
8908echo "${ECHO_T}no" >&6
8909 fi
8910
8911
8912
8913
8914 enablestring=
8915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8916echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8917 no_cache=0
8918 # Check whether --enable-commondlg or --disable-commondlg was given.
8919if test "${enable_commondlg+set}" = set; then
8920 enableval="$enable_commondlg"
8921
8922 if test "$enableval" = yes; then
8923 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8924 else
8925 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8926 fi
8927
8928else
8929
8930 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8931 if test "x$LINE" != x ; then
8932 eval "DEFAULT_$LINE"
8933 else
8934 no_cache=1
8935 fi
8936
8937 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8938
8939fi;
8940
8941 eval "$ac_cv_use_commondlg"
8942 if test "$no_cache" != 1; then
8943 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8944 fi
8945
8946 if test "$wxUSE_COMMONDLGS" = yes; then
8947 echo "$as_me:$LINENO: result: yes" >&5
8948echo "${ECHO_T}yes" >&6
8949 else
8950 echo "$as_me:$LINENO: result: no" >&5
8951echo "${ECHO_T}no" >&6
8952 fi
8953
8954
8955 enablestring=
8956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8957echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8958 no_cache=0
8959 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8960if test "${enable_choicedlg+set}" = set; then
8961 enableval="$enable_choicedlg"
8962
8963 if test "$enableval" = yes; then
8964 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8965 else
8966 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8967 fi
8968
8969else
8970
8971 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8972 if test "x$LINE" != x ; then
8973 eval "DEFAULT_$LINE"
8974 else
8975 no_cache=1
8976 fi
8977
8978 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8979
8980fi;
8981
8982 eval "$ac_cv_use_choicedlg"
8983 if test "$no_cache" != 1; then
8984 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8985 fi
8986
8987 if test "$wxUSE_CHOICEDLG" = yes; then
8988 echo "$as_me:$LINENO: result: yes" >&5
8989echo "${ECHO_T}yes" >&6
8990 else
8991 echo "$as_me:$LINENO: result: no" >&5
8992echo "${ECHO_T}no" >&6
8993 fi
8994
8995
8996 enablestring=
8997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8998echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8999 no_cache=0
9000 # Check whether --enable-coldlg or --disable-coldlg was given.
9001if test "${enable_coldlg+set}" = set; then
9002 enableval="$enable_coldlg"
9003
9004 if test "$enableval" = yes; then
9005 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9006 else
9007 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9008 fi
9009
9010else
9011
9012 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9013 if test "x$LINE" != x ; then
9014 eval "DEFAULT_$LINE"
9015 else
9016 no_cache=1
9017 fi
9018
9019 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9020
9021fi;
9022
9023 eval "$ac_cv_use_coldlg"
9024 if test "$no_cache" != 1; then
9025 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9026 fi
9027
9028 if test "$wxUSE_COLOURDLG" = yes; then
9029 echo "$as_me:$LINENO: result: yes" >&5
9030echo "${ECHO_T}yes" >&6
9031 else
9032 echo "$as_me:$LINENO: result: no" >&5
9033echo "${ECHO_T}no" >&6
9034 fi
9035
9036
9037 enablestring=
9038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9039echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9040 no_cache=0
9041 # Check whether --enable-filedlg or --disable-filedlg was given.
9042if test "${enable_filedlg+set}" = set; then
9043 enableval="$enable_filedlg"
9044
9045 if test "$enableval" = yes; then
9046 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9047 else
9048 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9049 fi
9050
9051else
9052
9053 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9054 if test "x$LINE" != x ; then
9055 eval "DEFAULT_$LINE"
9056 else
9057 no_cache=1
9058 fi
9059
9060 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9061
9062fi;
9063
9064 eval "$ac_cv_use_filedlg"
9065 if test "$no_cache" != 1; then
9066 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9067 fi
9068
9069 if test "$wxUSE_FILEDLG" = yes; then
9070 echo "$as_me:$LINENO: result: yes" >&5
9071echo "${ECHO_T}yes" >&6
9072 else
9073 echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6
9075 fi
9076
9077
9078 enablestring=
9079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9080echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9081 no_cache=0
9082 # Check whether --enable-finddlg or --disable-finddlg was given.
9083if test "${enable_finddlg+set}" = set; then
9084 enableval="$enable_finddlg"
9085
9086 if test "$enableval" = yes; then
9087 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9088 else
9089 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9090 fi
9091
9092else
9093
9094 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9095 if test "x$LINE" != x ; then
9096 eval "DEFAULT_$LINE"
9097 else
9098 no_cache=1
9099 fi
9100
9101 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9102
9103fi;
9104
9105 eval "$ac_cv_use_finddlg"
9106 if test "$no_cache" != 1; then
9107 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9108 fi
9109
9110 if test "$wxUSE_FINDREPLDLG" = yes; then
9111 echo "$as_me:$LINENO: result: yes" >&5
9112echo "${ECHO_T}yes" >&6
9113 else
9114 echo "$as_me:$LINENO: result: no" >&5
9115echo "${ECHO_T}no" >&6
9116 fi
9117
9118
9119 enablestring=
9120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9121echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9122 no_cache=0
9123 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9124if test "${enable_fontdlg+set}" = set; then
9125 enableval="$enable_fontdlg"
9126
9127 if test "$enableval" = yes; then
9128 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9129 else
9130 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9131 fi
9132
9133else
9134
9135 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9136 if test "x$LINE" != x ; then
9137 eval "DEFAULT_$LINE"
9138 else
9139 no_cache=1
9140 fi
9141
9142 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9143
9144fi;
9145
9146 eval "$ac_cv_use_fontdlg"
9147 if test "$no_cache" != 1; then
9148 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9149 fi
9150
9151 if test "$wxUSE_FONTDLG" = yes; then
9152 echo "$as_me:$LINENO: result: yes" >&5
9153echo "${ECHO_T}yes" >&6
9154 else
9155 echo "$as_me:$LINENO: result: no" >&5
9156echo "${ECHO_T}no" >&6
9157 fi
9158
9159
9160 enablestring=
9161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9162echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9163 no_cache=0
9164 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9165if test "${enable_dirdlg+set}" = set; then
9166 enableval="$enable_dirdlg"
9167
9168 if test "$enableval" = yes; then
9169 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9170 else
9171 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9172 fi
9173
9174else
9175
9176 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9177 if test "x$LINE" != x ; then
9178 eval "DEFAULT_$LINE"
9179 else
9180 no_cache=1
9181 fi
9182
9183 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9184
9185fi;
9186
9187 eval "$ac_cv_use_dirdlg"
9188 if test "$no_cache" != 1; then
9189 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9190 fi
9191
9192 if test "$wxUSE_DIRDLG" = yes; then
9193 echo "$as_me:$LINENO: result: yes" >&5
9194echo "${ECHO_T}yes" >&6
9195 else
9196 echo "$as_me:$LINENO: result: no" >&5
9197echo "${ECHO_T}no" >&6
9198 fi
9199
9200
9201 enablestring=
9202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9203echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9204 no_cache=0
9205 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9206if test "${enable_msgdlg+set}" = set; then
9207 enableval="$enable_msgdlg"
9208
9209 if test "$enableval" = yes; then
9210 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9211 else
9212 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9213 fi
9214
9215else
9216
9217 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9218 if test "x$LINE" != x ; then
9219 eval "DEFAULT_$LINE"
9220 else
9221 no_cache=1
9222 fi
9223
9224 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9225
9226fi;
9227
9228 eval "$ac_cv_use_msgdlg"
9229 if test "$no_cache" != 1; then
9230 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9231 fi
9232
9233 if test "$wxUSE_MSGDLG" = yes; then
9234 echo "$as_me:$LINENO: result: yes" >&5
9235echo "${ECHO_T}yes" >&6
9236 else
9237 echo "$as_me:$LINENO: result: no" >&5
9238echo "${ECHO_T}no" >&6
9239 fi
9240
9241
9242 enablestring=
9243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9244echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9245 no_cache=0
9246 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9247if test "${enable_numberdlg+set}" = set; then
9248 enableval="$enable_numberdlg"
9249
9250 if test "$enableval" = yes; then
9251 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9252 else
9253 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9254 fi
9255
9256else
9257
9258 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9259 if test "x$LINE" != x ; then
9260 eval "DEFAULT_$LINE"
9261 else
9262 no_cache=1
9263 fi
9264
9265 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9266
9267fi;
9268
9269 eval "$ac_cv_use_numberdlg"
9270 if test "$no_cache" != 1; then
9271 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9272 fi
9273
9274 if test "$wxUSE_NUMBERDLG" = yes; then
9275 echo "$as_me:$LINENO: result: yes" >&5
9276echo "${ECHO_T}yes" >&6
9277 else
9278 echo "$as_me:$LINENO: result: no" >&5
9279echo "${ECHO_T}no" >&6
9280 fi
9281
9282
9283 enablestring=
9284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9285echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9286 no_cache=0
9287 # Check whether --enable-splash or --disable-splash was given.
9288if test "${enable_splash+set}" = set; then
9289 enableval="$enable_splash"
9290
9291 if test "$enableval" = yes; then
9292 ac_cv_use_splash='wxUSE_SPLASH=yes'
9293 else
9294 ac_cv_use_splash='wxUSE_SPLASH=no'
9295 fi
9296
9297else
9298
9299 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9300 if test "x$LINE" != x ; then
9301 eval "DEFAULT_$LINE"
9302 else
9303 no_cache=1
9304 fi
9305
9306 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9307
9308fi;
9309
9310 eval "$ac_cv_use_splash"
9311 if test "$no_cache" != 1; then
9312 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9313 fi
9314
9315 if test "$wxUSE_SPLASH" = yes; then
9316 echo "$as_me:$LINENO: result: yes" >&5
9317echo "${ECHO_T}yes" >&6
9318 else
9319 echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6
9321 fi
9322
9323
9324 enablestring=
9325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9326echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9327 no_cache=0
9328 # Check whether --enable-textdlg or --disable-textdlg was given.
9329if test "${enable_textdlg+set}" = set; then
9330 enableval="$enable_textdlg"
9331
9332 if test "$enableval" = yes; then
9333 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9334 else
9335 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9336 fi
9337
9338else
9339
9340 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9341 if test "x$LINE" != x ; then
9342 eval "DEFAULT_$LINE"
9343 else
9344 no_cache=1
9345 fi
9346
9347 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9348
9349fi;
9350
9351 eval "$ac_cv_use_textdlg"
9352 if test "$no_cache" != 1; then
9353 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9354 fi
9355
9356 if test "$wxUSE_TEXTDLG" = yes; then
9357 echo "$as_me:$LINENO: result: yes" >&5
9358echo "${ECHO_T}yes" >&6
9359 else
9360 echo "$as_me:$LINENO: result: no" >&5
9361echo "${ECHO_T}no" >&6
9362 fi
9363
9364
9365 enablestring=
9366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9367echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9368 no_cache=0
9369 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9370if test "${enable_tipdlg+set}" = set; then
9371 enableval="$enable_tipdlg"
9372
9373 if test "$enableval" = yes; then
9374 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9375 else
9376 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9377 fi
9378
9379else
9380
9381 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9382 if test "x$LINE" != x ; then
9383 eval "DEFAULT_$LINE"
9384 else
9385 no_cache=1
9386 fi
9387
9388 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9389
9390fi;
9391
9392 eval "$ac_cv_use_tipdlg"
9393 if test "$no_cache" != 1; then
9394 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9395 fi
9396
9397 if test "$wxUSE_STARTUP_TIPS" = yes; then
9398 echo "$as_me:$LINENO: result: yes" >&5
9399echo "${ECHO_T}yes" >&6
9400 else
9401 echo "$as_me:$LINENO: result: no" >&5
9402echo "${ECHO_T}no" >&6
9403 fi
9404
9405
9406 enablestring=
9407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9408echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9409 no_cache=0
9410 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9411if test "${enable_progressdlg+set}" = set; then
9412 enableval="$enable_progressdlg"
9413
9414 if test "$enableval" = yes; then
9415 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9416 else
9417 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9418 fi
9419
9420else
9421
9422 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9423 if test "x$LINE" != x ; then
9424 eval "DEFAULT_$LINE"
9425 else
9426 no_cache=1
9427 fi
9428
9429 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9430
9431fi;
9432
9433 eval "$ac_cv_use_progressdlg"
9434 if test "$no_cache" != 1; then
9435 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9436 fi
9437
9438 if test "$wxUSE_PROGRESSDLG" = yes; then
9439 echo "$as_me:$LINENO: result: yes" >&5
9440echo "${ECHO_T}yes" >&6
9441 else
9442 echo "$as_me:$LINENO: result: no" >&5
9443echo "${ECHO_T}no" >&6
9444 fi
9445
9446
9447 enablestring=
9448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9449echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9450 no_cache=0
9451 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9452if test "${enable_wizarddlg+set}" = set; then
9453 enableval="$enable_wizarddlg"
9454
9455 if test "$enableval" = yes; then
9456 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9457 else
9458 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9459 fi
9460
9461else
9462
9463 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9464 if test "x$LINE" != x ; then
9465 eval "DEFAULT_$LINE"
9466 else
9467 no_cache=1
9468 fi
9469
9470 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9471
9472fi;
9473
9474 eval "$ac_cv_use_wizarddlg"
9475 if test "$no_cache" != 1; then
9476 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9477 fi
9478
9479 if test "$wxUSE_WIZARDDLG" = yes; then
9480 echo "$as_me:$LINENO: result: yes" >&5
9481echo "${ECHO_T}yes" >&6
9482 else
9483 echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
9485 fi
9486
9487
9488
9489
9490 enablestring=
9491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9492echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9493 no_cache=0
9494 # Check whether --enable-menus or --disable-menus was given.
9495if test "${enable_menus+set}" = set; then
9496 enableval="$enable_menus"
9497
9498 if test "$enableval" = yes; then
9499 ac_cv_use_menus='wxUSE_MENUS=yes'
9500 else
9501 ac_cv_use_menus='wxUSE_MENUS=no'
9502 fi
9503
9504else
9505
9506 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9507 if test "x$LINE" != x ; then
9508 eval "DEFAULT_$LINE"
9509 else
9510 no_cache=1
9511 fi
9512
9513 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9514
9515fi;
9516
9517 eval "$ac_cv_use_menus"
9518 if test "$no_cache" != 1; then
9519 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9520 fi
9521
9522 if test "$wxUSE_MENUS" = yes; then
9523 echo "$as_me:$LINENO: result: yes" >&5
9524echo "${ECHO_T}yes" >&6
9525 else
9526 echo "$as_me:$LINENO: result: no" >&5
9527echo "${ECHO_T}no" >&6
9528 fi
9529
9530
9531 enablestring=
9532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9533echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9534 no_cache=0
9535 # Check whether --enable-miniframe or --disable-miniframe was given.
9536if test "${enable_miniframe+set}" = set; then
9537 enableval="$enable_miniframe"
9538
9539 if test "$enableval" = yes; then
9540 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9541 else
9542 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9543 fi
9544
9545else
9546
9547 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9548 if test "x$LINE" != x ; then
9549 eval "DEFAULT_$LINE"
9550 else
9551 no_cache=1
9552 fi
9553
9554 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9555
9556fi;
9557
9558 eval "$ac_cv_use_miniframe"
9559 if test "$no_cache" != 1; then
9560 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9561 fi
9562
9563 if test "$wxUSE_MINIFRAME" = yes; then
9564 echo "$as_me:$LINENO: result: yes" >&5
9565echo "${ECHO_T}yes" >&6
9566 else
9567 echo "$as_me:$LINENO: result: no" >&5
9568echo "${ECHO_T}no" >&6
9569 fi
9570
9571
9572 enablestring=
9573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9574echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9575 no_cache=0
9576 # Check whether --enable-tooltips or --disable-tooltips was given.
9577if test "${enable_tooltips+set}" = set; then
9578 enableval="$enable_tooltips"
9579
9580 if test "$enableval" = yes; then
9581 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9582 else
9583 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9584 fi
9585
9586else
9587
9588 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9589 if test "x$LINE" != x ; then
9590 eval "DEFAULT_$LINE"
9591 else
9592 no_cache=1
9593 fi
9594
9595 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9596
9597fi;
9598
9599 eval "$ac_cv_use_tooltips"
9600 if test "$no_cache" != 1; then
9601 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9602 fi
9603
9604 if test "$wxUSE_TOOLTIPS" = yes; then
9605 echo "$as_me:$LINENO: result: yes" >&5
9606echo "${ECHO_T}yes" >&6
9607 else
9608 echo "$as_me:$LINENO: result: no" >&5
9609echo "${ECHO_T}no" >&6
9610 fi
9611
9612
9613 enablestring=
9614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9615echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9616 no_cache=0
9617 # Check whether --enable-splines or --disable-splines was given.
9618if test "${enable_splines+set}" = set; then
9619 enableval="$enable_splines"
9620
9621 if test "$enableval" = yes; then
9622 ac_cv_use_splines='wxUSE_SPLINES=yes'
9623 else
9624 ac_cv_use_splines='wxUSE_SPLINES=no'
9625 fi
9626
9627else
9628
9629 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9630 if test "x$LINE" != x ; then
9631 eval "DEFAULT_$LINE"
9632 else
9633 no_cache=1
9634 fi
9635
9636 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9637
9638fi;
9639
9640 eval "$ac_cv_use_splines"
9641 if test "$no_cache" != 1; then
9642 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9643 fi
9644
9645 if test "$wxUSE_SPLINES" = yes; then
9646 echo "$as_me:$LINENO: result: yes" >&5
9647echo "${ECHO_T}yes" >&6
9648 else
9649 echo "$as_me:$LINENO: result: no" >&5
9650echo "${ECHO_T}no" >&6
9651 fi
9652
9653
9654 enablestring=
9655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9656echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9657 no_cache=0
9658 # Check whether --enable-validators or --disable-validators was given.
9659if test "${enable_validators+set}" = set; then
9660 enableval="$enable_validators"
9661
9662 if test "$enableval" = yes; then
9663 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9664 else
9665 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9666 fi
9667
9668else
9669
9670 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9671 if test "x$LINE" != x ; then
9672 eval "DEFAULT_$LINE"
9673 else
9674 no_cache=1
9675 fi
9676
9677 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9678
9679fi;
9680
9681 eval "$ac_cv_use_validators"
9682 if test "$no_cache" != 1; then
9683 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9684 fi
9685
9686 if test "$wxUSE_VALIDATORS" = yes; then
9687 echo "$as_me:$LINENO: result: yes" >&5
9688echo "${ECHO_T}yes" >&6
9689 else
9690 echo "$as_me:$LINENO: result: no" >&5
9691echo "${ECHO_T}no" >&6
9692 fi
9693
9694
9695 enablestring=
9696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9697echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9698 no_cache=0
9699 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9700if test "${enable_busyinfo+set}" = set; then
9701 enableval="$enable_busyinfo"
9702
9703 if test "$enableval" = yes; then
9704 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9705 else
9706 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9707 fi
9708
9709else
9710
9711 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9712 if test "x$LINE" != x ; then
9713 eval "DEFAULT_$LINE"
9714 else
9715 no_cache=1
9716 fi
9717
9718 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9719
9720fi;
9721
9722 eval "$ac_cv_use_busyinfo"
9723 if test "$no_cache" != 1; then
9724 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9725 fi
9726
9727 if test "$wxUSE_BUSYINFO" = yes; then
9728 echo "$as_me:$LINENO: result: yes" >&5
9729echo "${ECHO_T}yes" >&6
9730 else
9731 echo "$as_me:$LINENO: result: no" >&5
9732echo "${ECHO_T}no" >&6
9733 fi
9734
9735
9736 enablestring=
9737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9738echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9739 no_cache=0
9740 # Check whether --enable-joystick or --disable-joystick was given.
9741if test "${enable_joystick+set}" = set; then
9742 enableval="$enable_joystick"
9743
9744 if test "$enableval" = yes; then
9745 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9746 else
9747 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9748 fi
9749
9750else
9751
9752 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9753 if test "x$LINE" != x ; then
9754 eval "DEFAULT_$LINE"
9755 else
9756 no_cache=1
9757 fi
9758
9759 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9760
9761fi;
9762
9763 eval "$ac_cv_use_joystick"
9764 if test "$no_cache" != 1; then
9765 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9766 fi
9767
9768 if test "$wxUSE_JOYSTICK" = yes; then
9769 echo "$as_me:$LINENO: result: yes" >&5
9770echo "${ECHO_T}yes" >&6
9771 else
9772 echo "$as_me:$LINENO: result: no" >&5
9773echo "${ECHO_T}no" >&6
9774 fi
9775
9776
9777 enablestring=
9778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9779echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9780 no_cache=0
9781 # Check whether --enable-metafile or --disable-metafile was given.
9782if test "${enable_metafile+set}" = set; then
9783 enableval="$enable_metafile"
9784
9785 if test "$enableval" = yes; then
9786 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9787 else
9788 ac_cv_use_metafile='wxUSE_METAFILE=no'
9789 fi
9790
9791else
9792
9793 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9794 if test "x$LINE" != x ; then
9795 eval "DEFAULT_$LINE"
9796 else
9797 no_cache=1
9798 fi
9799
9800 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9801
9802fi;
9803
9804 eval "$ac_cv_use_metafile"
9805 if test "$no_cache" != 1; then
9806 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9807 fi
9808
9809 if test "$wxUSE_METAFILE" = yes; then
9810 echo "$as_me:$LINENO: result: yes" >&5
9811echo "${ECHO_T}yes" >&6
9812 else
9813 echo "$as_me:$LINENO: result: no" >&5
9814echo "${ECHO_T}no" >&6
9815 fi
9816
9817
9818 enablestring=
9819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9820echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9821 no_cache=0
9822 # Check whether --enable-dragimage or --disable-dragimage was given.
9823if test "${enable_dragimage+set}" = set; then
9824 enableval="$enable_dragimage"
9825
9826 if test "$enableval" = yes; then
9827 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9828 else
9829 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9830 fi
9831
9832else
9833
9834 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9835 if test "x$LINE" != x ; then
9836 eval "DEFAULT_$LINE"
9837 else
9838 no_cache=1
9839 fi
9840
9841 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9842
9843fi;
9844
9845 eval "$ac_cv_use_dragimage"
9846 if test "$no_cache" != 1; then
9847 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9848 fi
9849
9850 if test "$wxUSE_DRAGIMAGE" = yes; then
9851 echo "$as_me:$LINENO: result: yes" >&5
9852echo "${ECHO_T}yes" >&6
9853 else
9854 echo "$as_me:$LINENO: result: no" >&5
9855echo "${ECHO_T}no" >&6
9856 fi
9857
9858
9859 enablestring=
9860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9861echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9862 no_cache=0
9863 # Check whether --enable-accessibility or --disable-accessibility was given.
9864if test "${enable_accessibility+set}" = set; then
9865 enableval="$enable_accessibility"
9866
9867 if test "$enableval" = yes; then
9868 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9869 else
9870 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9871 fi
9872
9873else
9874
9875 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9876 if test "x$LINE" != x ; then
9877 eval "DEFAULT_$LINE"
9878 else
9879 no_cache=1
9880 fi
9881
9882 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9883
9884fi;
9885
9886 eval "$ac_cv_use_accessibility"
9887 if test "$no_cache" != 1; then
9888 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9889 fi
9890
9891 if test "$wxUSE_ACCESSIBILITY" = yes; then
9892 echo "$as_me:$LINENO: result: yes" >&5
9893echo "${ECHO_T}yes" >&6
9894 else
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
9897 fi
9898
9899
9900
9901
9902 enablestring=
9903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9904echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9905 no_cache=0
9906 # Check whether --enable-palette or --disable-palette was given.
9907if test "${enable_palette+set}" = set; then
9908 enableval="$enable_palette"
9909
9910 if test "$enableval" = yes; then
9911 ac_cv_use_palette='wxUSE_PALETTE=yes'
9912 else
9913 ac_cv_use_palette='wxUSE_PALETTE=no'
9914 fi
9915
9916else
9917
9918 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9919 if test "x$LINE" != x ; then
9920 eval "DEFAULT_$LINE"
9921 else
9922 no_cache=1
9923 fi
9924
9925 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9926
9927fi;
9928
9929 eval "$ac_cv_use_palette"
9930 if test "$no_cache" != 1; then
9931 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9932 fi
9933
9934 if test "$wxUSE_PALETTE" = yes; then
9935 echo "$as_me:$LINENO: result: yes" >&5
9936echo "${ECHO_T}yes" >&6
9937 else
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
9940 fi
9941
9942
9943 enablestring=
9944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9945echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9946 no_cache=0
9947 # Check whether --enable-image or --disable-image was given.
9948if test "${enable_image+set}" = set; then
9949 enableval="$enable_image"
9950
9951 if test "$enableval" = yes; then
9952 ac_cv_use_image='wxUSE_IMAGE=yes'
9953 else
9954 ac_cv_use_image='wxUSE_IMAGE=no'
9955 fi
9956
9957else
9958
9959 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9960 if test "x$LINE" != x ; then
9961 eval "DEFAULT_$LINE"
9962 else
9963 no_cache=1
9964 fi
9965
9966 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9967
9968fi;
9969
9970 eval "$ac_cv_use_image"
9971 if test "$no_cache" != 1; then
9972 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9973 fi
9974
9975 if test "$wxUSE_IMAGE" = yes; then
9976 echo "$as_me:$LINENO: result: yes" >&5
9977echo "${ECHO_T}yes" >&6
9978 else
9979 echo "$as_me:$LINENO: result: no" >&5
9980echo "${ECHO_T}no" >&6
9981 fi
9982
9983
9984 enablestring=
9985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9986echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9987 no_cache=0
9988 # Check whether --enable-gif or --disable-gif was given.
9989if test "${enable_gif+set}" = set; then
9990 enableval="$enable_gif"
9991
9992 if test "$enableval" = yes; then
9993 ac_cv_use_gif='wxUSE_GIF=yes'
9994 else
9995 ac_cv_use_gif='wxUSE_GIF=no'
9996 fi
9997
9998else
9999
10000 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10001 if test "x$LINE" != x ; then
10002 eval "DEFAULT_$LINE"
10003 else
10004 no_cache=1
10005 fi
10006
10007 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10008
10009fi;
10010
10011 eval "$ac_cv_use_gif"
10012 if test "$no_cache" != 1; then
10013 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10014 fi
10015
10016 if test "$wxUSE_GIF" = yes; then
10017 echo "$as_me:$LINENO: result: yes" >&5
10018echo "${ECHO_T}yes" >&6
10019 else
10020 echo "$as_me:$LINENO: result: no" >&5
10021echo "${ECHO_T}no" >&6
10022 fi
10023
10024
10025 enablestring=
10026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10027echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10028 no_cache=0
10029 # Check whether --enable-pcx or --disable-pcx was given.
10030if test "${enable_pcx+set}" = set; then
10031 enableval="$enable_pcx"
10032
10033 if test "$enableval" = yes; then
10034 ac_cv_use_pcx='wxUSE_PCX=yes'
10035 else
10036 ac_cv_use_pcx='wxUSE_PCX=no'
10037 fi
10038
10039else
10040
10041 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10042 if test "x$LINE" != x ; then
10043 eval "DEFAULT_$LINE"
10044 else
10045 no_cache=1
10046 fi
10047
10048 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10049
10050fi;
10051
10052 eval "$ac_cv_use_pcx"
10053 if test "$no_cache" != 1; then
10054 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10055 fi
10056
10057 if test "$wxUSE_PCX" = yes; then
10058 echo "$as_me:$LINENO: result: yes" >&5
10059echo "${ECHO_T}yes" >&6
10060 else
10061 echo "$as_me:$LINENO: result: no" >&5
10062echo "${ECHO_T}no" >&6
10063 fi
10064
10065
10066 enablestring=
10067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10068echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10069 no_cache=0
10070 # Check whether --enable-iff or --disable-iff was given.
10071if test "${enable_iff+set}" = set; then
10072 enableval="$enable_iff"
10073
10074 if test "$enableval" = yes; then
10075 ac_cv_use_iff='wxUSE_IFF=yes'
10076 else
10077 ac_cv_use_iff='wxUSE_IFF=no'
10078 fi
10079
10080else
10081
10082 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10083 if test "x$LINE" != x ; then
10084 eval "DEFAULT_$LINE"
10085 else
10086 no_cache=1
10087 fi
10088
10089 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10090
10091fi;
10092
10093 eval "$ac_cv_use_iff"
10094 if test "$no_cache" != 1; then
10095 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10096 fi
10097
10098 if test "$wxUSE_IFF" = yes; then
10099 echo "$as_me:$LINENO: result: yes" >&5
10100echo "${ECHO_T}yes" >&6
10101 else
10102 echo "$as_me:$LINENO: result: no" >&5
10103echo "${ECHO_T}no" >&6
10104 fi
10105
10106
10107 enablestring=
10108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10109echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10110 no_cache=0
10111 # Check whether --enable-pnm or --disable-pnm was given.
10112if test "${enable_pnm+set}" = set; then
10113 enableval="$enable_pnm"
10114
10115 if test "$enableval" = yes; then
10116 ac_cv_use_pnm='wxUSE_PNM=yes'
10117 else
10118 ac_cv_use_pnm='wxUSE_PNM=no'
10119 fi
10120
10121else
10122
10123 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10124 if test "x$LINE" != x ; then
10125 eval "DEFAULT_$LINE"
10126 else
10127 no_cache=1
10128 fi
10129
10130 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10131
10132fi;
10133
10134 eval "$ac_cv_use_pnm"
10135 if test "$no_cache" != 1; then
10136 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10137 fi
10138
10139 if test "$wxUSE_PNM" = yes; then
10140 echo "$as_me:$LINENO: result: yes" >&5
10141echo "${ECHO_T}yes" >&6
10142 else
10143 echo "$as_me:$LINENO: result: no" >&5
10144echo "${ECHO_T}no" >&6
10145 fi
10146
10147
10148 enablestring=
10149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10150echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10151 no_cache=0
10152 # Check whether --enable-xpm or --disable-xpm was given.
10153if test "${enable_xpm+set}" = set; then
10154 enableval="$enable_xpm"
10155
10156 if test "$enableval" = yes; then
10157 ac_cv_use_xpm='wxUSE_XPM=yes'
10158 else
10159 ac_cv_use_xpm='wxUSE_XPM=no'
10160 fi
10161
10162else
10163
10164 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10165 if test "x$LINE" != x ; then
10166 eval "DEFAULT_$LINE"
10167 else
10168 no_cache=1
10169 fi
10170
10171 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10172
10173fi;
10174
10175 eval "$ac_cv_use_xpm"
10176 if test "$no_cache" != 1; then
10177 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10178 fi
10179
10180 if test "$wxUSE_XPM" = yes; then
10181 echo "$as_me:$LINENO: result: yes" >&5
10182echo "${ECHO_T}yes" >&6
10183 else
10184 echo "$as_me:$LINENO: result: no" >&5
10185echo "${ECHO_T}no" >&6
10186 fi
10187
10188
10189 enablestring=
10190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10191echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10192 no_cache=0
10193 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10194if test "${enable_ico_cur+set}" = set; then
10195 enableval="$enable_ico_cur"
10196
10197 if test "$enableval" = yes; then
10198 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10199 else
10200 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10201 fi
10202
10203else
10204
10205 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10206 if test "x$LINE" != x ; then
10207 eval "DEFAULT_$LINE"
10208 else
10209 no_cache=1
10210 fi
10211
10212 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10213
10214fi;
10215
10216 eval "$ac_cv_use_ico_cur"
10217 if test "$no_cache" != 1; then
10218 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10219 fi
10220
10221 if test "$wxUSE_ICO_CUR" = yes; then
10222 echo "$as_me:$LINENO: result: yes" >&5
10223echo "${ECHO_T}yes" >&6
10224 else
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
10227 fi
10228
10229
10230fi
10231
10232
10233
ceec2216
RL
10234# Check whether --with-flavour or --without-flavour was given.
10235if test "${with_flavour+set}" = set; then
10236 withval="$with_flavour"
10237 WX_FLAVOUR="$withval"
10238fi;
10239
10240
10241
a848cd7e
SC
10242 enablestring=
10243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10244echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10245 no_cache=0
10246 # Check whether --enable-official_build or --disable-official_build was given.
10247if test "${enable_official_build+set}" = set; then
10248 enableval="$enable_official_build"
10249
10250 if test "$enableval" = yes; then
10251 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10252 else
10253 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10254 fi
10255
10256else
10257
10258 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10259 if test "x$LINE" != x ; then
10260 eval "DEFAULT_$LINE"
10261 else
10262 no_cache=1
10263 fi
10264
10265 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10266
10267fi;
10268
10269 eval "$ac_cv_use_official_build"
10270 if test "$no_cache" != 1; then
10271 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10272 fi
10273
10274 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10275 echo "$as_me:$LINENO: result: yes" >&5
10276echo "${ECHO_T}yes" >&6
10277 else
10278 echo "$as_me:$LINENO: result: no" >&5
10279echo "${ECHO_T}no" >&6
10280 fi
10281
10282# Check whether --enable-vendor or --disable-vendor was given.
10283if test "${enable_vendor+set}" = set; then
10284 enableval="$enable_vendor"
10285 VENDOR="$enableval"
10286fi;
10287if test "x$VENDOR" = "x"; then
10288 VENDOR="custom"
10289fi
10290
a848cd7e
SC
10291
10292
10293
10294 echo "saving argument cache $wx_arg_cache_file"
10295 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10296
10297
10298
10299echo "$as_me:$LINENO: checking for toolkit" >&5
10300echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10301
10302# In Wine, we need to default to MSW, not GTK or MOTIF
10303if test "$wxUSE_WINE" = "yes"; then
10304 DEFAULT_DEFAULT_wxUSE_GTK=0
10305 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10306 DEFAULT_DEFAULT_wxUSE_MSW=1
10307 wxUSE_SHARED=no
10308fi
10309
10310if test "$wxUSE_GUI" = "yes"; then
10311
10312 if test "$USE_BEOS" = 1; then
10313 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10314echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10315 { (exit 1); exit 1; }; }
10316 fi
10317
10318 if test "$TOOLKIT_GIVEN" = 1; then
10319 for toolkit in `echo $ALL_TOOLKITS`; do
10320 var=wxUSE_$toolkit
10321 eval "value=\$${var}"
10322 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10323 done
10324 else
10325 for toolkit in `echo $ALL_TOOLKITS`; do
10326 if test "$has_toolkit_in_cache" != 1; then
10327 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10328 else
10329 var=DEFAULT_wxUSE_$toolkit
10330 fi
10331 eval "wxUSE_$toolkit=\$${var}"
10332 done
10333 fi
10334
10335 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10336 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10337 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10338
10339 case "${host}" in
10340 *-pc-os2_emx | *-pc-os2-emx )
10341 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10342 esac
10343
10344 case "$NUM_TOOLKITS" in
10345 1)
10346 ;;
10347 0)
10348 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10349echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10350 { (exit 1); exit 1; }; }
10351 ;;
10352 *)
10353 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10354echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10355 { (exit 1); exit 1; }; }
10356 esac
10357
10358 for toolkit in `echo $ALL_TOOLKITS`; do
10359 var=wxUSE_$toolkit
10360 eval "value=\$${var}"
10361 if test "x$value" != x; then
10362 cache_var=CACHE_$toolkit
10363 eval "cache=\$${cache_var}"
10364 if test "$cache" = 1; then
10365 echo "$var=$value" >> ${wx_arg_cache_file}
10366 fi
10367 if test "$value" = 1; then
10368 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10369 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10370echo "${ECHO_T}$toolkit_echo" >&6
10371 fi
10372 fi
10373 done
10374else
10375 if test "x$host_alias" != "x"; then
10376 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10377echo "${ECHO_T}base ($host_alias hosted) only" >&6
10378 else
10379 echo "$as_me:$LINENO: result: base only" >&5
10380echo "${ECHO_T}base only" >&6
10381 fi
10382fi
10383
10384wants_win32=0
10385doesnt_want_win32=0
10386case "${host}" in
10387 *-*-cygwin*)
10388 if test "$wxUSE_MSW" = 1 ; then
10389 wants_win32=1
10390 else
10391 doesnt_want_win32=1
10392 fi
10393 ;;
10394 *-*-mingw*)
10395 wants_win32=1
10396 ;;
10397esac
10398
10399if test "$wxUSE_WINE" = "yes"; then
10400 wants_win32=1
10401 CC=winegcc
10402 CXX=wineg++
10403 RESCOMP=wrc
10404 LDFLAGS_GUI="-mwindows"
10405fi
10406
10407if test "$wants_win32" = 1 ; then
10408 USE_UNIX=0
10409 USE_WIN32=1
10410 cat >>confdefs.h <<\_ACEOF
10411#define __WIN32__ 1
10412_ACEOF
10413
10414 cat >>confdefs.h <<\_ACEOF
10415#define __WIN95__ 1
10416_ACEOF
10417
10418 cat >>confdefs.h <<\_ACEOF
10419#define __WINDOWS__ 1
10420_ACEOF
10421
10422 cat >>confdefs.h <<\_ACEOF
10423#define __GNUWIN32__ 1
10424_ACEOF
10425
10426 cat >>confdefs.h <<\_ACEOF
10427#define STRICT 1
10428_ACEOF
10429
10430 cat >>confdefs.h <<\_ACEOF
10431#define WINVER 0x0400
10432_ACEOF
10433
10434fi
10435if test "$doesnt_want_win32" = 1 ; then
10436 USE_UNIX=1
10437 USE_WIN32=0
10438fi
10439
10440if test "$USE_UNIX" = 1 ; then
10441 wxUSE_UNIX=yes
10442 cat >>confdefs.h <<\_ACEOF
10443#define __UNIX__ 1
10444_ACEOF
10445
10446fi
10447
10448
10449cat >confcache <<\_ACEOF
10450# This file is a shell script that caches the results of configure
10451# tests run on this system so they can be shared between configure
10452# scripts and configure runs, see configure's option --config-cache.
10453# It is not useful on other systems. If it contains results you don't
10454# want to keep, you may remove or edit it.
10455#
10456# config.status only pays attention to the cache file if you give it
10457# the --recheck option to rerun configure.
10458#
10459# `ac_cv_env_foo' variables (set or unset) will be overridden when
10460# loading this file, other *unset* `ac_cv_foo' will be assigned the
10461# following values.
10462
10463_ACEOF
10464
10465# The following way of writing the cache mishandles newlines in values,
10466# but we know of no workaround that is simple, portable, and efficient.
10467# So, don't put newlines in cache variables' values.
10468# Ultrix sh set writes to stderr and can't be redirected directly,
10469# and sets the high bit in the cache file unless we assign to the vars.
10470{
10471 (set) 2>&1 |
10472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10473 *ac_space=\ *)
10474 # `set' does not quote correctly, so add quotes (double-quote
10475 # substitution turns \\\\ into \\, and sed turns \\ into \).
10476 sed -n \
ac1cb8d3
VS
10477 "s/'/'\\\\''/g;
10478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10479 ;;
10480 *)
10481 # `set' quotes correctly as required by POSIX, so do not add quotes.
10482 sed -n \
ac1cb8d3 10483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10484 ;;
10485 esac;
10486} |
10487 sed '
10488 t clear
10489 : clear
10490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10491 t end
10492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10493 : end' >>confcache
10494if diff $cache_file confcache >/dev/null 2>&1; then :; else
10495 if test -w $cache_file; then
10496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10497 cat confcache >$cache_file
10498 else
10499 echo "not updating unwritable cache $cache_file"
10500 fi
10501fi
10502rm -f confcache
10503
10504if test "$build" != "$host" ; then
1e9e8aba 10505 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10506 CC=$host_alias-gcc
10507 CXX=$host_alias-c++
10508 AR=$host_alias-ar
10509 RANLIB=$host_alias-ranlib
10510 DLLTOOL=$host_alias-dlltool
10511 RESCOMP=$host_alias-windres
a848cd7e 10512 STRIP=$host_alias-strip
1e9e8aba
DE
10513 elif test "x$CC" '!=' "x"; then
10514 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10515 else
10516 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10517echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10518 { (exit 1); exit 1; }; }
10519 fi
10520fi
10521
10522CFLAGS=${CFLAGS:=}
10523ac_ext=c
10524ac_cpp='$CPP $CPPFLAGS'
10525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527ac_compiler_gnu=$ac_cv_c_compiler_gnu
10528if test -n "$ac_tool_prefix"; then
10529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10530set dummy ${ac_tool_prefix}gcc; ac_word=$2
10531echo "$as_me:$LINENO: checking for $ac_word" >&5
10532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10533if test "${ac_cv_prog_CC+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536 if test -n "$CC"; then
10537 ac_cv_prog_CC="$CC" # Let the user override the test.
10538else
10539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540for as_dir in $PATH
10541do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10549 fi
10550done
10551done
10552
10553fi
10554fi
10555CC=$ac_cv_prog_CC
10556if test -n "$CC"; then
10557 echo "$as_me:$LINENO: result: $CC" >&5
10558echo "${ECHO_T}$CC" >&6
10559else
10560 echo "$as_me:$LINENO: result: no" >&5
10561echo "${ECHO_T}no" >&6
10562fi
10563
10564fi
10565if test -z "$ac_cv_prog_CC"; then
10566 ac_ct_CC=$CC
10567 # Extract the first word of "gcc", so it can be a program name with args.
10568set dummy gcc; ac_word=$2
10569echo "$as_me:$LINENO: checking for $ac_word" >&5
10570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10571if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573else
10574 if test -n "$ac_ct_CC"; then
10575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10576else
10577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578for as_dir in $PATH
10579do
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10584 ac_cv_prog_ac_ct_CC="gcc"
10585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10587 fi
10588done
10589done
10590
10591fi
10592fi
10593ac_ct_CC=$ac_cv_prog_ac_ct_CC
10594if test -n "$ac_ct_CC"; then
10595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10596echo "${ECHO_T}$ac_ct_CC" >&6
10597else
10598 echo "$as_me:$LINENO: result: no" >&5
10599echo "${ECHO_T}no" >&6
10600fi
10601
10602 CC=$ac_ct_CC
10603else
10604 CC="$ac_cv_prog_CC"
10605fi
10606
10607if test -z "$CC"; then
10608 if test -n "$ac_tool_prefix"; then
10609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10610set dummy ${ac_tool_prefix}cc; ac_word=$2
10611echo "$as_me:$LINENO: checking for $ac_word" >&5
10612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10613if test "${ac_cv_prog_CC+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615else
10616 if test -n "$CC"; then
10617 ac_cv_prog_CC="$CC" # Let the user override the test.
10618else
10619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10620for as_dir in $PATH
10621do
10622 IFS=$as_save_IFS
10623 test -z "$as_dir" && as_dir=.
10624 for ac_exec_ext in '' $ac_executable_extensions; do
10625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10626 ac_cv_prog_CC="${ac_tool_prefix}cc"
10627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10628 break 2
10629 fi
10630done
10631done
10632
10633fi
10634fi
10635CC=$ac_cv_prog_CC
10636if test -n "$CC"; then
10637 echo "$as_me:$LINENO: result: $CC" >&5
10638echo "${ECHO_T}$CC" >&6
10639else
10640 echo "$as_me:$LINENO: result: no" >&5
10641echo "${ECHO_T}no" >&6
10642fi
10643
10644fi
10645if test -z "$ac_cv_prog_CC"; then
10646 ac_ct_CC=$CC
10647 # Extract the first word of "cc", so it can be a program name with args.
10648set dummy cc; ac_word=$2
10649echo "$as_me:$LINENO: checking for $ac_word" >&5
10650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10651if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10653else
10654 if test -n "$ac_ct_CC"; then
10655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10656else
10657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658for as_dir in $PATH
10659do
10660 IFS=$as_save_IFS
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10664 ac_cv_prog_ac_ct_CC="cc"
10665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10666 break 2
10667 fi
10668done
10669done
10670
10671fi
10672fi
10673ac_ct_CC=$ac_cv_prog_ac_ct_CC
10674if test -n "$ac_ct_CC"; then
10675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10676echo "${ECHO_T}$ac_ct_CC" >&6
10677else
10678 echo "$as_me:$LINENO: result: no" >&5
10679echo "${ECHO_T}no" >&6
10680fi
10681
10682 CC=$ac_ct_CC
10683else
10684 CC="$ac_cv_prog_CC"
10685fi
10686
10687fi
10688if test -z "$CC"; then
10689 # Extract the first word of "cc", so it can be a program name with args.
10690set dummy cc; ac_word=$2
10691echo "$as_me:$LINENO: checking for $ac_word" >&5
10692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10693if test "${ac_cv_prog_CC+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695else
10696 if test -n "$CC"; then
10697 ac_cv_prog_CC="$CC" # Let the user override the test.
10698else
10699 ac_prog_rejected=no
10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701for as_dir in $PATH
10702do
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10708 ac_prog_rejected=yes
10709 continue
10710 fi
10711 ac_cv_prog_CC="cc"
10712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10714 fi
10715done
10716done
10717
10718if test $ac_prog_rejected = yes; then
10719 # We found a bogon in the path, so make sure we never use it.
10720 set dummy $ac_cv_prog_CC
10721 shift
10722 if test $# != 0; then
10723 # We chose a different compiler from the bogus one.
10724 # However, it has the same basename, so the bogon will be chosen
10725 # first if we set CC to just the basename; use the full file name.
10726 shift
10727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10728 fi
10729fi
10730fi
10731fi
10732CC=$ac_cv_prog_CC
10733if test -n "$CC"; then
10734 echo "$as_me:$LINENO: result: $CC" >&5
10735echo "${ECHO_T}$CC" >&6
10736else
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
10739fi
10740
10741fi
10742if test -z "$CC"; then
10743 if test -n "$ac_tool_prefix"; then
10744 for ac_prog in cl
10745 do
10746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10748echo "$as_me:$LINENO: checking for $ac_word" >&5
10749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10750if test "${ac_cv_prog_CC+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 if test -n "$CC"; then
10754 ac_cv_prog_CC="$CC" # Let the user override the test.
10755else
10756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757for as_dir in $PATH
10758do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767done
10768done
10769
10770fi
10771fi
10772CC=$ac_cv_prog_CC
10773if test -n "$CC"; then
10774 echo "$as_me:$LINENO: result: $CC" >&5
10775echo "${ECHO_T}$CC" >&6
10776else
10777 echo "$as_me:$LINENO: result: no" >&5
10778echo "${ECHO_T}no" >&6
10779fi
10780
10781 test -n "$CC" && break
10782 done
10783fi
10784if test -z "$CC"; then
10785 ac_ct_CC=$CC
10786 for ac_prog in cl
10787do
10788 # Extract the first word of "$ac_prog", so it can be a program name with args.
10789set dummy $ac_prog; ac_word=$2
10790echo "$as_me:$LINENO: checking for $ac_word" >&5
10791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795 if test -n "$ac_ct_CC"; then
10796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10797else
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805 ac_cv_prog_ac_ct_CC="$ac_prog"
10806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10808 fi
10809done
10810done
10811
10812fi
10813fi
10814ac_ct_CC=$ac_cv_prog_ac_ct_CC
10815if test -n "$ac_ct_CC"; then
10816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10817echo "${ECHO_T}$ac_ct_CC" >&6
10818else
10819 echo "$as_me:$LINENO: result: no" >&5
10820echo "${ECHO_T}no" >&6
10821fi
10822
10823 test -n "$ac_ct_CC" && break
10824done
10825
10826 CC=$ac_ct_CC
10827fi
10828
10829fi
10830
10831
10832test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10833See \`config.log' for more details." >&5
10834echo "$as_me: error: no acceptable C compiler found in \$PATH
10835See \`config.log' for more details." >&2;}
10836 { (exit 1); exit 1; }; }
10837
10838# Provide some information about the compiler.
10839echo "$as_me:$LINENO:" \
10840 "checking for C compiler version" >&5
10841ac_compiler=`set X $ac_compile; echo $2`
10842{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10843 (eval $ac_compiler --version </dev/null >&5) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }
10847{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10848 (eval $ac_compiler -v </dev/null >&5) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }
10852{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10853 (eval $ac_compiler -V </dev/null >&5) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }
10857
10858cat >conftest.$ac_ext <<_ACEOF
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864
10865int
10866main ()
10867{
10868
10869 ;
10870 return 0;
10871}
10872_ACEOF
10873ac_clean_files_save=$ac_clean_files
10874ac_clean_files="$ac_clean_files a.out a.exe b.out"
10875# Try to create an executable without -o first, disregard a.out.
10876# It will help us diagnose broken compilers, and finding out an intuition
10877# of exeext.
ac1cb8d3
VS
10878echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10879echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10880ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10881if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10882 (eval $ac_link_default) 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; then
10886 # Find the output, starting from the most likely. This scheme is
10887# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10888# resort.
10889
10890# Be careful to initialize this variable, since it used to be cached.
10891# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10892ac_cv_exeext=
10893# b.out is created by i960 compilers.
10894for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10895do
10896 test -f "$ac_file" || continue
10897 case $ac_file in
10898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10899 ;;
a848cd7e 10900 conftest.$ac_ext )
ac1cb8d3
VS
10901 # This is the source file.
10902 ;;
a848cd7e 10903 [ab].out )
ac1cb8d3
VS
10904 # We found the default executable, but exeext='' is most
10905 # certainly right.
10906 break;;
a848cd7e 10907 *.* )
ac1cb8d3
VS
10908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10909 # FIXME: I believe we export ac_cv_exeext for Libtool,
10910 # but it would be cool to find out if it's true. Does anybody
10911 # maintain Libtool? --akim.
10912 export ac_cv_exeext
10913 break;;
a848cd7e 10914 * )
ac1cb8d3 10915 break;;
a848cd7e
SC
10916 esac
10917done
10918else
10919 echo "$as_me: failed program was:" >&5
10920sed 's/^/| /' conftest.$ac_ext >&5
10921
10922{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10923See \`config.log' for more details." >&5
10924echo "$as_me: error: C compiler cannot create executables
10925See \`config.log' for more details." >&2;}
10926 { (exit 77); exit 77; }; }
10927fi
10928
10929ac_exeext=$ac_cv_exeext
10930echo "$as_me:$LINENO: result: $ac_file" >&5
10931echo "${ECHO_T}$ac_file" >&6
10932
10933# Check the compiler produces executables we can run. If not, either
10934# the compiler is broken, or we cross compile.
10935echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10936echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10937# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10938# If not cross compiling, check that we can run a simple program.
10939if test "$cross_compiling" != yes; then
10940 if { ac_try='./$ac_file'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 cross_compiling=no
10947 else
10948 if test "$cross_compiling" = maybe; then
10949 cross_compiling=yes
10950 else
10951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10952If you meant to cross compile, use \`--host'.
10953See \`config.log' for more details." >&5
10954echo "$as_me: error: cannot run C compiled programs.
10955If you meant to cross compile, use \`--host'.
10956See \`config.log' for more details." >&2;}
10957 { (exit 1); exit 1; }; }
10958 fi
10959 fi
10960fi
10961echo "$as_me:$LINENO: result: yes" >&5
10962echo "${ECHO_T}yes" >&6
10963
10964rm -f a.out a.exe conftest$ac_cv_exeext b.out
10965ac_clean_files=$ac_clean_files_save
10966# Check the compiler produces executables we can run. If not, either
10967# the compiler is broken, or we cross compile.
10968echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10969echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10970echo "$as_me:$LINENO: result: $cross_compiling" >&5
10971echo "${ECHO_T}$cross_compiling" >&6
10972
10973echo "$as_me:$LINENO: checking for suffix of executables" >&5
10974echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976 (eval $ac_link) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; then
10980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10981# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10982# work properly (i.e., refer to `conftest.exe'), while it won't with
10983# `rm'.
10984for ac_file in conftest.exe conftest conftest.*; do
10985 test -f "$ac_file" || continue
10986 case $ac_file in
10987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10989 export ac_cv_exeext
10990 break;;
a848cd7e
SC
10991 * ) break;;
10992 esac
10993done
10994else
10995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10996See \`config.log' for more details." >&5
10997echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10998See \`config.log' for more details." >&2;}
10999 { (exit 1); exit 1; }; }
11000fi
11001
11002rm -f conftest$ac_cv_exeext
11003echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11004echo "${ECHO_T}$ac_cv_exeext" >&6
11005
11006rm -f conftest.$ac_ext
11007EXEEXT=$ac_cv_exeext
11008ac_exeext=$EXEEXT
11009echo "$as_me:$LINENO: checking for suffix of object files" >&5
11010echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11011if test "${ac_cv_objext+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014 cat >conftest.$ac_ext <<_ACEOF
11015/* confdefs.h. */
11016_ACEOF
11017cat confdefs.h >>conftest.$ac_ext
11018cat >>conftest.$ac_ext <<_ACEOF
11019/* end confdefs.h. */
11020
11021int
11022main ()
11023{
11024
11025 ;
11026 return 0;
11027}
11028_ACEOF
11029rm -f conftest.o conftest.obj
11030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11031 (eval $ac_compile) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; then
11035 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11036 case $ac_file in
11037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11039 break;;
11040 esac
11041done
11042else
11043 echo "$as_me: failed program was:" >&5
11044sed 's/^/| /' conftest.$ac_ext >&5
11045
11046{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11047See \`config.log' for more details." >&5
11048echo "$as_me: error: cannot compute suffix of object files: cannot compile
11049See \`config.log' for more details." >&2;}
11050 { (exit 1); exit 1; }; }
11051fi
11052
11053rm -f conftest.$ac_cv_objext conftest.$ac_ext
11054fi
11055echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11056echo "${ECHO_T}$ac_cv_objext" >&6
11057OBJEXT=$ac_cv_objext
11058ac_objext=$OBJEXT
11059echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11060echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11061if test "${ac_cv_c_compiler_gnu+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063else
11064 cat >conftest.$ac_ext <<_ACEOF
11065/* confdefs.h. */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h. */
11070
11071int
11072main ()
11073{
11074#ifndef __GNUC__
11075 choke me
11076#endif
11077
11078 ;
11079 return 0;
11080}
11081_ACEOF
11082rm -f conftest.$ac_objext
11083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11084 (eval $ac_compile) 2>conftest.er1
a848cd7e 11085 ac_status=$?
ac1cb8d3
VS
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
a848cd7e
SC
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
89be85c2
VS
11091 { ac_try='test -z "$ac_c_werror_flag"
11092 || test ! -s conftest.err'
ac1cb8d3
VS
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; } &&
11098 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 ac_compiler_gnu=yes
11105else
11106 echo "$as_me: failed program was:" >&5
11107sed 's/^/| /' conftest.$ac_ext >&5
11108
11109ac_compiler_gnu=no
11110fi
ac1cb8d3 11111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11112ac_cv_c_compiler_gnu=$ac_compiler_gnu
11113
11114fi
11115echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11116echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11117GCC=`test $ac_compiler_gnu = yes && echo yes`
11118ac_test_CFLAGS=${CFLAGS+set}
11119ac_save_CFLAGS=$CFLAGS
11120CFLAGS="-g"
11121echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11122echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11123if test "${ac_cv_prog_cc_g+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125else
11126 cat >conftest.$ac_ext <<_ACEOF
11127/* confdefs.h. */
11128_ACEOF
11129cat confdefs.h >>conftest.$ac_ext
11130cat >>conftest.$ac_ext <<_ACEOF
11131/* end confdefs.h. */
11132
11133int
11134main ()
11135{
11136
11137 ;
11138 return 0;
11139}
11140_ACEOF
11141rm -f conftest.$ac_objext
11142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11143 (eval $ac_compile) 2>conftest.er1
a848cd7e 11144 ac_status=$?
ac1cb8d3
VS
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
a848cd7e
SC
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } &&
89be85c2
VS
11150 { ac_try='test -z "$ac_c_werror_flag"
11151 || test ! -s conftest.err'
ac1cb8d3
VS
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; } &&
11157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_cv_prog_cc_g=yes
11164else
11165 echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168ac_cv_prog_cc_g=no
11169fi
ac1cb8d3 11170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11171fi
11172echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11173echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11174if test "$ac_test_CFLAGS" = set; then
11175 CFLAGS=$ac_save_CFLAGS
11176elif test $ac_cv_prog_cc_g = yes; then
11177 if test "$GCC" = yes; then
11178 CFLAGS="-g -O2"
11179 else
11180 CFLAGS="-g"
11181 fi
11182else
11183 if test "$GCC" = yes; then
11184 CFLAGS="-O2"
11185 else
11186 CFLAGS=
11187 fi
11188fi
11189echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11190echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11191if test "${ac_cv_prog_cc_stdc+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193else
11194 ac_cv_prog_cc_stdc=no
11195ac_save_CC=$CC
11196cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h. */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h. */
11202#include <stdarg.h>
11203#include <stdio.h>
11204#include <sys/types.h>
11205#include <sys/stat.h>
11206/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11207struct buf { int x; };
11208FILE * (*rcsopen) (struct buf *, struct stat *, int);
11209static char *e (p, i)
11210 char **p;
11211 int i;
11212{
11213 return p[i];
11214}
11215static char *f (char * (*g) (char **, int), char **p, ...)
11216{
11217 char *s;
11218 va_list v;
11219 va_start (v,p);
11220 s = g (p, va_arg (v,int));
11221 va_end (v);
11222 return s;
11223}
ac1cb8d3
VS
11224
11225/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11226 function prototypes and stuff, but not '\xHH' hex character constants.
11227 These don't provoke an error unfortunately, instead are silently treated
11228 as 'x'. The following induces an error, until -std1 is added to get
11229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11230 array size at least. It's necessary to write '\x00'==0 to get something
11231 that's true only with -std1. */
11232int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11233
a848cd7e
SC
11234int test (int i, double x);
11235struct s1 {int (*f) (int a);};
11236struct s2 {int (*f) (double a);};
11237int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11238int argc;
11239char **argv;
11240int
11241main ()
11242{
11243return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11244 ;
11245 return 0;
11246}
11247_ACEOF
11248# Don't try gcc -ansi; that turns off useful extensions and
11249# breaks some systems' header files.
11250# AIX -qlanglvl=ansi
11251# Ultrix and OSF/1 -std1
11252# HP-UX 10.20 and later -Ae
11253# HP-UX older versions -Aa -D_HPUX_SOURCE
11254# SVR4 -Xc -D__EXTENSIONS__
11255for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11256do
11257 CC="$ac_save_CC $ac_arg"
11258 rm -f conftest.$ac_objext
11259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11260 (eval $ac_compile) 2>conftest.er1
a848cd7e 11261 ac_status=$?
ac1cb8d3
VS
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
a848cd7e
SC
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
89be85c2
VS
11267 { ac_try='test -z "$ac_c_werror_flag"
11268 || test ! -s conftest.err'
ac1cb8d3
VS
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_prog_cc_stdc=$ac_arg
11281break
11282else
11283 echo "$as_me: failed program was:" >&5
11284sed 's/^/| /' conftest.$ac_ext >&5
11285
11286fi
ac1cb8d3 11287rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11288done
11289rm -f conftest.$ac_ext conftest.$ac_objext
11290CC=$ac_save_CC
11291
11292fi
11293
11294case "x$ac_cv_prog_cc_stdc" in
11295 x|xno)
11296 echo "$as_me:$LINENO: result: none needed" >&5
11297echo "${ECHO_T}none needed" >&6 ;;
11298 *)
11299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11300echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11301 CC="$CC $ac_cv_prog_cc_stdc" ;;
11302esac
11303
11304# Some people use a C++ compiler to compile C. Since we use `exit',
11305# in C++ we need to declare it. In case someone uses the same compiler
11306# for both compiling C and C++ we need to have the C++ compiler decide
11307# the declaration of exit, since it's the most demanding environment.
11308cat >conftest.$ac_ext <<_ACEOF
11309#ifndef __cplusplus
11310 choke me
11311#endif
11312_ACEOF
11313rm -f conftest.$ac_objext
11314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11315 (eval $ac_compile) 2>conftest.er1
a848cd7e 11316 ac_status=$?
ac1cb8d3
VS
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
a848cd7e
SC
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
89be85c2
VS
11322 { ac_try='test -z "$ac_c_werror_flag"
11323 || test ! -s conftest.err'
ac1cb8d3
VS
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 for ac_declaration in \
ac1cb8d3 11336 '' \
a848cd7e
SC
11337 'extern "C" void std::exit (int) throw (); using std::exit;' \
11338 'extern "C" void std::exit (int); using std::exit;' \
11339 'extern "C" void exit (int) throw ();' \
11340 'extern "C" void exit (int);' \
11341 'void exit (int);'
11342do
11343 cat >conftest.$ac_ext <<_ACEOF
11344/* confdefs.h. */
11345_ACEOF
11346cat confdefs.h >>conftest.$ac_ext
11347cat >>conftest.$ac_ext <<_ACEOF
11348/* end confdefs.h. */
de59c161 11349$ac_declaration
ac1cb8d3 11350#include <stdlib.h>
a848cd7e
SC
11351int
11352main ()
11353{
11354exit (42);
11355 ;
11356 return 0;
11357}
11358_ACEOF
11359rm -f conftest.$ac_objext
11360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11361 (eval $ac_compile) 2>conftest.er1
a848cd7e 11362 ac_status=$?
ac1cb8d3
VS
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
a848cd7e
SC
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
89be85c2
VS
11368 { ac_try='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
ac1cb8d3
VS
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 :
11382else
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386continue
11387fi
ac1cb8d3 11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11389 cat >conftest.$ac_ext <<_ACEOF
11390/* confdefs.h. */
11391_ACEOF
11392cat confdefs.h >>conftest.$ac_ext
11393cat >>conftest.$ac_ext <<_ACEOF
11394/* end confdefs.h. */
11395$ac_declaration
11396int
11397main ()
11398{
11399exit (42);
11400 ;
11401 return 0;
11402}
11403_ACEOF
11404rm -f conftest.$ac_objext
11405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11406 (eval $ac_compile) 2>conftest.er1
a848cd7e 11407 ac_status=$?
ac1cb8d3
VS
11408 grep -v '^ *+' conftest.er1 >conftest.err
11409 rm -f conftest.er1
11410 cat conftest.err >&5
a848cd7e
SC
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } &&
89be85c2
VS
11413 { ac_try='test -z "$ac_c_werror_flag"
11414 || test ! -s conftest.err'
ac1cb8d3
VS
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 break
11427else
11428 echo "$as_me: failed program was:" >&5
11429sed 's/^/| /' conftest.$ac_ext >&5
11430
11431fi
ac1cb8d3 11432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11433done
11434rm -f conftest*
11435if test -n "$ac_declaration"; then
11436 echo '#ifdef __cplusplus' >>confdefs.h
11437 echo $ac_declaration >>confdefs.h
11438 echo '#endif' >>confdefs.h
11439fi
11440
11441else
11442 echo "$as_me: failed program was:" >&5
11443sed 's/^/| /' conftest.$ac_ext >&5
11444
11445fi
ac1cb8d3 11446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11447ac_ext=c
11448ac_cpp='$CPP $CPPFLAGS'
11449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11451ac_compiler_gnu=$ac_cv_c_compiler_gnu
11452
480ccd21
DE
11453echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
11454echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11455if test "${wx_cv_c_exto+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458 cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
11464
11465int
11466main ()
11467{
11468
11469 ;
11470 return 0;
11471}
11472_ACEOF
11473rm -f conftest.$ac_objext conftest.$ac_ext.o
11474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; then
11479 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11480 case $ac_file in
11481 conftest.$ac_ext.o)
11482 wx_cv_c_exto="-ext o"
11483 ;;
11484 *)
11485 ;;
11486 esac
11487done
11488else
11489 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11490See \`config.log' for more details." >&5
11491echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11492See \`config.log' for more details." >&2;}
11493 { (exit 1); exit 1; }; }
11494
11495fi
11496
11497rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11498
11499fi
11500echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11501echo "${ECHO_T}$wx_cv_c_exto" >&6
11502if test "x$wx_cv_c_exto" '!=' "x"; then
11503 if test "c" = "c"; then
11504 CFLAGS="$wx_cv_c_exto $CFLAGS"
11505 fi
11506 if test "c" = "cxx"; then
11507 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11508 fi
11509fi
11510
11511if test "x$wx_cv_c_exto" '!=' "x"; then
11512 unset ac_cv_prog_cc_g
11513 ac_test_CFLAGS=${CFLAGS+set}
11514ac_save_CFLAGS=$CFLAGS
11515CFLAGS="-g"
11516echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11517echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11518if test "${ac_cv_prog_cc_g+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520else
11521 cat >conftest.$ac_ext <<_ACEOF
11522/* confdefs.h. */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h. */
11527
11528int
11529main ()
11530{
11531
11532 ;
11533 return 0;
11534}
11535_ACEOF
11536rm -f conftest.$ac_objext
11537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11538 (eval $ac_compile) 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } &&
11545 { ac_try='test -z "$ac_c_werror_flag"
11546 || test ! -s conftest.err'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try='test -s conftest.$ac_objext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_prog_cc_g=yes
11559else
11560 echo "$as_me: failed program was:" >&5
11561sed 's/^/| /' conftest.$ac_ext >&5
11562
11563ac_cv_prog_cc_g=no
11564fi
11565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11566fi
11567echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11568echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11569if test "$ac_test_CFLAGS" = set; then
11570 CFLAGS=$ac_save_CFLAGS
11571elif test $ac_cv_prog_cc_g = yes; then
11572 if test "$GCC" = yes; then
11573 CFLAGS="-g -O2"
11574 else
11575 CFLAGS="-g"
11576 fi
11577else
11578 if test "$GCC" = yes; then
11579 CFLAGS="-O2"
11580 else
11581 CFLAGS=
11582 fi
11583fi
11584fi
a848cd7e 11585
95986553
DE
11586ac_ext=c
11587ac_cpp='$CPP $CPPFLAGS'
11588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11590ac_compiler_gnu=$ac_cv_c_compiler_gnu
11591
11592echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11593echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11594if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597 cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603
11604int
11605main ()
11606{
11607#ifndef __MWERKS__
11608 choke me
11609#endif
11610
11611 ;
11612 return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext
11616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11617 (eval $ac_compile) 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
89be85c2
VS
11624 { ac_try='test -z "$ac_c_werror_flag"
11625 || test ! -s conftest.err'
95986553
DE
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest.$ac_objext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 bakefile_compiler_mwerks=yes
11638else
11639 echo "$as_me: failed program was:" >&5
11640sed 's/^/| /' conftest.$ac_ext >&5
11641
11642bakefile_compiler_mwerks=no
11643fi
11644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11645 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11646
11647fi
11648echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11649echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11650
11651MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11652ac_ext=c
11653ac_cpp='$CPP $CPPFLAGS'
11654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656ac_compiler_gnu=$ac_cv_c_compiler_gnu
11657
11658
a848cd7e
SC
11659
11660ac_ext=c
11661ac_cpp='$CPP $CPPFLAGS'
11662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11664ac_compiler_gnu=$ac_cv_c_compiler_gnu
11665echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11666echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11667# On Suns, sometimes $CPP names a directory.
11668if test -n "$CPP" && test -d "$CPP"; then
11669 CPP=
11670fi
11671if test -z "$CPP"; then
11672 if test "${ac_cv_prog_CPP+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674else
11675 # Double quotes because CPP needs to be expanded
11676 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11677 do
11678 ac_preproc_ok=false
11679for ac_c_preproc_warn_flag in '' yes
11680do
11681 # Use a header file that comes with gcc, so configuring glibc
11682 # with a fresh cross-compiler works.
11683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11684 # <limits.h> exists even on freestanding compilers.
11685 # On the NeXT, cc -E runs the code through the compiler's parser,
11686 # not just through cpp. "Syntax error" is here to catch this case.
11687 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */
11693#ifdef __STDC__
11694# include <limits.h>
11695#else
11696# include <assert.h>
11697#endif
ac1cb8d3 11698 Syntax error
a848cd7e
SC
11699_ACEOF
11700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11702 ac_status=$?
11703 grep -v '^ *+' conftest.er1 >conftest.err
11704 rm -f conftest.er1
11705 cat conftest.err >&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } >/dev/null; then
11708 if test -s conftest.err; then
11709 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11711 else
11712 ac_cpp_err=
11713 fi
11714else
11715 ac_cpp_err=yes
11716fi
11717if test -z "$ac_cpp_err"; then
11718 :
11719else
11720 echo "$as_me: failed program was:" >&5
11721sed 's/^/| /' conftest.$ac_ext >&5
11722
11723 # Broken: fails on valid input.
11724continue
11725fi
11726rm -f conftest.err conftest.$ac_ext
11727
11728 # OK, works on sane cases. Now check whether non-existent headers
11729 # can be detected and how.
11730 cat >conftest.$ac_ext <<_ACEOF
11731/* confdefs.h. */
11732_ACEOF
11733cat confdefs.h >>conftest.$ac_ext
11734cat >>conftest.$ac_ext <<_ACEOF
11735/* end confdefs.h. */
11736#include <ac_nonexistent.h>
11737_ACEOF
11738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } >/dev/null; then
11746 if test -s conftest.err; then
11747 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11749 else
11750 ac_cpp_err=
11751 fi
11752else
11753 ac_cpp_err=yes
11754fi
11755if test -z "$ac_cpp_err"; then
11756 # Broken: success on invalid input.
11757continue
11758else
11759 echo "$as_me: failed program was:" >&5
11760sed 's/^/| /' conftest.$ac_ext >&5
11761
11762 # Passes both tests.
11763ac_preproc_ok=:
11764break
11765fi
11766rm -f conftest.err conftest.$ac_ext
11767
11768done
11769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11770rm -f conftest.err conftest.$ac_ext
11771if $ac_preproc_ok; then
11772 break
11773fi
11774
11775 done
11776 ac_cv_prog_CPP=$CPP
11777
11778fi
11779 CPP=$ac_cv_prog_CPP
11780else
11781 ac_cv_prog_CPP=$CPP
11782fi
11783echo "$as_me:$LINENO: result: $CPP" >&5
11784echo "${ECHO_T}$CPP" >&6
11785ac_preproc_ok=false
11786for ac_c_preproc_warn_flag in '' yes
11787do
11788 # Use a header file that comes with gcc, so configuring glibc
11789 # with a fresh cross-compiler works.
11790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11791 # <limits.h> exists even on freestanding compilers.
11792 # On the NeXT, cc -E runs the code through the compiler's parser,
11793 # not just through cpp. "Syntax error" is here to catch this case.
11794 cat >conftest.$ac_ext <<_ACEOF
11795/* confdefs.h. */
11796_ACEOF
11797cat confdefs.h >>conftest.$ac_ext
11798cat >>conftest.$ac_ext <<_ACEOF
11799/* end confdefs.h. */
11800#ifdef __STDC__
11801# include <limits.h>
11802#else
11803# include <assert.h>
11804#endif
ac1cb8d3 11805 Syntax error
a848cd7e
SC
11806_ACEOF
11807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11809 ac_status=$?
11810 grep -v '^ *+' conftest.er1 >conftest.err
11811 rm -f conftest.er1
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } >/dev/null; then
11815 if test -s conftest.err; then
11816 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11818 else
11819 ac_cpp_err=
11820 fi
11821else
11822 ac_cpp_err=yes
11823fi
11824if test -z "$ac_cpp_err"; then
11825 :
11826else
11827 echo "$as_me: failed program was:" >&5
11828sed 's/^/| /' conftest.$ac_ext >&5
11829
11830 # Broken: fails on valid input.
11831continue
11832fi
11833rm -f conftest.err conftest.$ac_ext
11834
11835 # OK, works on sane cases. Now check whether non-existent headers
11836 # can be detected and how.
11837 cat >conftest.$ac_ext <<_ACEOF
11838/* confdefs.h. */
11839_ACEOF
11840cat confdefs.h >>conftest.$ac_ext
11841cat >>conftest.$ac_ext <<_ACEOF
11842/* end confdefs.h. */
11843#include <ac_nonexistent.h>
11844_ACEOF
11845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } >/dev/null; then
11853 if test -s conftest.err; then
11854 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11856 else
11857 ac_cpp_err=
11858 fi
11859else
11860 ac_cpp_err=yes
11861fi
11862if test -z "$ac_cpp_err"; then
11863 # Broken: success on invalid input.
11864continue
11865else
11866 echo "$as_me: failed program was:" >&5
11867sed 's/^/| /' conftest.$ac_ext >&5
11868
11869 # Passes both tests.
11870ac_preproc_ok=:
11871break
11872fi
11873rm -f conftest.err conftest.$ac_ext
11874
11875done
11876# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11877rm -f conftest.err conftest.$ac_ext
11878if $ac_preproc_ok; then
11879 :
11880else
11881 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11882See \`config.log' for more details." >&5
11883echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11884See \`config.log' for more details." >&2;}
11885 { (exit 1); exit 1; }; }
11886fi
11887
11888ac_ext=c
11889ac_cpp='$CPP $CPPFLAGS'
11890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11892ac_compiler_gnu=$ac_cv_c_compiler_gnu
11893
11894
11895echo "$as_me:$LINENO: checking for egrep" >&5
11896echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11897if test "${ac_cv_prog_egrep+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11901 then ac_cv_prog_egrep='grep -E'
11902 else ac_cv_prog_egrep='egrep'
11903 fi
11904fi
11905echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11906echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11907 EGREP=$ac_cv_prog_egrep
11908
11909
11910if test $ac_cv_c_compiler_gnu = yes; then
11911 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11912echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11913if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915else
11916 ac_pattern="Autoconf.*'x'"
11917 cat >conftest.$ac_ext <<_ACEOF
11918/* confdefs.h. */
11919_ACEOF
11920cat confdefs.h >>conftest.$ac_ext
11921cat >>conftest.$ac_ext <<_ACEOF
11922/* end confdefs.h. */
11923#include <sgtty.h>
11924Autoconf TIOCGETP
11925_ACEOF
11926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11927 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11928 ac_cv_prog_gcc_traditional=yes
11929else
11930 ac_cv_prog_gcc_traditional=no
11931fi
11932rm -f conftest*
11933
11934
11935 if test $ac_cv_prog_gcc_traditional = no; then
11936 cat >conftest.$ac_ext <<_ACEOF
11937/* confdefs.h. */
11938_ACEOF
11939cat confdefs.h >>conftest.$ac_ext
11940cat >>conftest.$ac_ext <<_ACEOF
11941/* end confdefs.h. */
11942#include <termio.h>
11943Autoconf TCGETA
11944_ACEOF
11945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11946 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11947 ac_cv_prog_gcc_traditional=yes
11948fi
11949rm -f conftest*
11950
11951 fi
11952fi
11953echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11954echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11955 if test $ac_cv_prog_gcc_traditional = yes; then
11956 CC="$CC -traditional"
11957 fi
11958fi
11959
11960
11961
11962
11963ac_ext=cc
11964ac_cpp='$CXXCPP $CPPFLAGS'
11965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11968
11969
11970CXXFLAGS=${CXXFLAGS:=}
11971ac_ext=cc
11972ac_cpp='$CXXCPP $CPPFLAGS'
11973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11976if test -n "$ac_tool_prefix"; then
11977 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11978 do
11979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11981echo "$as_me:$LINENO: checking for $ac_word" >&5
11982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11983if test "${ac_cv_prog_CXX+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985else
11986 if test -n "$CXX"; then
11987 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11988else
11989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990for as_dir in $PATH
11991do
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
11999 fi
12000done
12001done
12002
12003fi
12004fi
12005CXX=$ac_cv_prog_CXX
12006if test -n "$CXX"; then
12007 echo "$as_me:$LINENO: result: $CXX" >&5
12008echo "${ECHO_T}$CXX" >&6
12009else
12010 echo "$as_me:$LINENO: result: no" >&5
12011echo "${ECHO_T}no" >&6
12012fi
12013
12014 test -n "$CXX" && break
12015 done
12016fi
12017if test -z "$CXX"; then
12018 ac_ct_CXX=$CXX
12019 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12020do
12021 # Extract the first word of "$ac_prog", so it can be a program name with args.
12022set dummy $ac_prog; ac_word=$2
12023echo "$as_me:$LINENO: checking for $ac_word" >&5
12024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12025if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12027else
12028 if test -n "$ac_ct_CXX"; then
12029 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12030else
12031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032for as_dir in $PATH
12033do
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12038 ac_cv_prog_ac_ct_CXX="$ac_prog"
12039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12040 break 2
12041 fi
12042done
12043done
12044
12045fi
12046fi
12047ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12048if test -n "$ac_ct_CXX"; then
12049 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12050echo "${ECHO_T}$ac_ct_CXX" >&6
12051else
12052 echo "$as_me:$LINENO: result: no" >&5
12053echo "${ECHO_T}no" >&6
12054fi
12055
12056 test -n "$ac_ct_CXX" && break
12057done
12058test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12059
12060 CXX=$ac_ct_CXX
12061fi
12062
12063
12064# Provide some information about the compiler.
12065echo "$as_me:$LINENO:" \
12066 "checking for C++ compiler version" >&5
12067ac_compiler=`set X $ac_compile; echo $2`
12068{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12069 (eval $ac_compiler --version </dev/null >&5) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }
12073{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12074 (eval $ac_compiler -v </dev/null >&5) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }
12078{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12079 (eval $ac_compiler -V </dev/null >&5) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }
12083
12084echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12085echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12086if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088else
12089 cat >conftest.$ac_ext <<_ACEOF
12090/* confdefs.h. */
12091_ACEOF
12092cat confdefs.h >>conftest.$ac_ext
12093cat >>conftest.$ac_ext <<_ACEOF
12094/* end confdefs.h. */
12095
12096int
12097main ()
12098{
12099#ifndef __GNUC__
12100 choke me
12101#endif
12102
12103 ;
12104 return 0;
12105}
12106_ACEOF
12107rm -f conftest.$ac_objext
12108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12109 (eval $ac_compile) 2>conftest.er1
a848cd7e 12110 ac_status=$?
ac1cb8d3
VS
12111 grep -v '^ *+' conftest.er1 >conftest.err
12112 rm -f conftest.er1
12113 cat conftest.err >&5
a848cd7e
SC
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
89be85c2
VS
12116 { ac_try='test -z "$ac_cxx_werror_flag"
12117 || test ! -s conftest.err'
ac1cb8d3
VS
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; } &&
12123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_compiler_gnu=yes
12130else
12131 echo "$as_me: failed program was:" >&5
12132sed 's/^/| /' conftest.$ac_ext >&5
12133
12134ac_compiler_gnu=no
12135fi
ac1cb8d3 12136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12137ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12138
12139fi
12140echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12141echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12142GXX=`test $ac_compiler_gnu = yes && echo yes`
12143ac_test_CXXFLAGS=${CXXFLAGS+set}
12144ac_save_CXXFLAGS=$CXXFLAGS
12145CXXFLAGS="-g"
12146echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12147echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12148if test "${ac_cv_prog_cxx_g+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150else
12151 cat >conftest.$ac_ext <<_ACEOF
12152/* confdefs.h. */
12153_ACEOF
12154cat confdefs.h >>conftest.$ac_ext
12155cat >>conftest.$ac_ext <<_ACEOF
12156/* end confdefs.h. */
12157
12158int
12159main ()
12160{
12161
12162 ;
12163 return 0;
12164}
12165_ACEOF
12166rm -f conftest.$ac_objext
12167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12168 (eval $ac_compile) 2>conftest.er1
a848cd7e 12169 ac_status=$?
ac1cb8d3
VS
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
a848cd7e
SC
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
89be85c2
VS
12175 { ac_try='test -z "$ac_cxx_werror_flag"
12176 || test ! -s conftest.err'
ac1cb8d3
VS
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_prog_cxx_g=yes
12189else
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193ac_cv_prog_cxx_g=no
12194fi
ac1cb8d3 12195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12196fi
12197echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12198echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12199if test "$ac_test_CXXFLAGS" = set; then
12200 CXXFLAGS=$ac_save_CXXFLAGS
12201elif test $ac_cv_prog_cxx_g = yes; then
12202 if test "$GXX" = yes; then
12203 CXXFLAGS="-g -O2"
12204 else
12205 CXXFLAGS="-g"
12206 fi
12207else
12208 if test "$GXX" = yes; then
12209 CXXFLAGS="-O2"
12210 else
12211 CXXFLAGS=
12212 fi
12213fi
12214for ac_declaration in \
ac1cb8d3 12215 '' \
a848cd7e
SC
12216 'extern "C" void std::exit (int) throw (); using std::exit;' \
12217 'extern "C" void std::exit (int); using std::exit;' \
12218 'extern "C" void exit (int) throw ();' \
12219 'extern "C" void exit (int);' \
12220 'void exit (int);'
12221do
12222 cat >conftest.$ac_ext <<_ACEOF
12223/* confdefs.h. */
12224_ACEOF
12225cat confdefs.h >>conftest.$ac_ext
12226cat >>conftest.$ac_ext <<_ACEOF
12227/* end confdefs.h. */
de59c161 12228$ac_declaration
ac1cb8d3 12229#include <stdlib.h>
a848cd7e
SC
12230int
12231main ()
12232{
12233exit (42);
12234 ;
12235 return 0;
12236}
12237_ACEOF
12238rm -f conftest.$ac_objext
12239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12240 (eval $ac_compile) 2>conftest.er1
a848cd7e 12241 ac_status=$?
ac1cb8d3
VS
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
a848cd7e
SC
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
89be85c2
VS
12247 { ac_try='test -z "$ac_cxx_werror_flag"
12248 || test ! -s conftest.err'
ac1cb8d3
VS
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; } &&
12254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 :
12261else
12262 echo "$as_me: failed program was:" >&5
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
12265continue
12266fi
ac1cb8d3 12267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12268 cat >conftest.$ac_ext <<_ACEOF
12269/* confdefs.h. */
12270_ACEOF
12271cat confdefs.h >>conftest.$ac_ext
12272cat >>conftest.$ac_ext <<_ACEOF
12273/* end confdefs.h. */
12274$ac_declaration
12275int
12276main ()
12277{
12278exit (42);
12279 ;
12280 return 0;
12281}
12282_ACEOF
12283rm -f conftest.$ac_objext
12284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12285 (eval $ac_compile) 2>conftest.er1
a848cd7e 12286 ac_status=$?
ac1cb8d3
VS
12287 grep -v '^ *+' conftest.er1 >conftest.err
12288 rm -f conftest.er1
12289 cat conftest.err >&5
a848cd7e
SC
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } &&
89be85c2
VS
12292 { ac_try='test -z "$ac_cxx_werror_flag"
12293 || test ! -s conftest.err'
ac1cb8d3
VS
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12305 break
12306else
12307 echo "$as_me: failed program was:" >&5
12308sed 's/^/| /' conftest.$ac_ext >&5
12309
12310fi
ac1cb8d3 12311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12312done
12313rm -f conftest*
12314if test -n "$ac_declaration"; then
12315 echo '#ifdef __cplusplus' >>confdefs.h
12316 echo $ac_declaration >>confdefs.h
12317 echo '#endif' >>confdefs.h
12318fi
12319
12320ac_ext=cc
12321ac_cpp='$CXXCPP $CPPFLAGS'
12322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12325
480ccd21
DE
12326echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
12327echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12328if test "${wx_cv_cxx_exto+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330else
12331 cat >conftest.$ac_ext <<_ACEOF
12332/* confdefs.h. */
12333_ACEOF
12334cat confdefs.h >>conftest.$ac_ext
12335cat >>conftest.$ac_ext <<_ACEOF
12336/* end confdefs.h. */
12337
12338int
12339main ()
12340{
12341
12342 ;
12343 return 0;
12344}
12345_ACEOF
12346rm -f conftest.$ac_objext conftest.$ac_ext.o
12347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12348 (eval $ac_compile) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; then
12352 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12353 case $ac_file in
12354 conftest.$ac_ext.o)
12355 wx_cv_cxx_exto="-ext o"
12356 ;;
12357 *)
12358 ;;
12359 esac
12360done
12361else
12362 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12363See \`config.log' for more details." >&5
12364echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12365See \`config.log' for more details." >&2;}
12366 { (exit 1); exit 1; }; }
12367
12368fi
12369
12370rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12371
12372fi
12373echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12374echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12375if test "x$wx_cv_cxx_exto" '!=' "x"; then
12376 if test "cxx" = "c"; then
12377 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12378 fi
12379 if test "cxx" = "cxx"; then
12380 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12381 fi
12382fi
12383
12384if test "x$wx_cv_cxx_exto" '!=' "x"; then
12385 unset ac_cv_prog_cxx_g
12386 ac_test_CXXFLAGS=${CXXFLAGS+set}
12387ac_save_CXXFLAGS=$CXXFLAGS
12388CXXFLAGS="-g"
12389echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12390echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12391if test "${ac_cv_prog_cxx_g+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394 cat >conftest.$ac_ext <<_ACEOF
12395/* confdefs.h. */
12396_ACEOF
12397cat confdefs.h >>conftest.$ac_ext
12398cat >>conftest.$ac_ext <<_ACEOF
12399/* end confdefs.h. */
12400
12401int
12402main ()
12403{
12404
12405 ;
12406 return 0;
12407}
12408_ACEOF
12409rm -f conftest.$ac_objext
12410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12411 (eval $ac_compile) 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_cxx_werror_flag"
12419 || test ! -s conftest.err'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try='test -s conftest.$ac_objext'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
12431 ac_cv_prog_cxx_g=yes
12432else
12433 echo "$as_me: failed program was:" >&5
12434sed 's/^/| /' conftest.$ac_ext >&5
12435
12436ac_cv_prog_cxx_g=no
12437fi
12438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12439fi
12440echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12441echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12442if test "$ac_test_CXXFLAGS" = set; then
12443 CXXFLAGS=$ac_save_CXXFLAGS
12444elif test $ac_cv_prog_cxx_g = yes; then
12445 if test "$GXX" = yes; then
12446 CXXFLAGS="-g -O2"
12447 else
12448 CXXFLAGS="-g"
12449 fi
12450else
12451 if test "$GXX" = yes; then
12452 CXXFLAGS="-O2"
12453 else
12454 CXXFLAGS=
12455 fi
12456fi
12457fi
a848cd7e 12458
95986553
DE
12459ac_ext=cc
12460ac_cpp='$CXXCPP $CPPFLAGS'
12461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12464
12465echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12466echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12467if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469else
12470 cat >conftest.$ac_ext <<_ACEOF
12471/* confdefs.h. */
12472_ACEOF
12473cat confdefs.h >>conftest.$ac_ext
12474cat >>conftest.$ac_ext <<_ACEOF
12475/* end confdefs.h. */
12476
12477int
12478main ()
12479{
12480#ifndef __MWERKS__
12481 choke me
12482#endif
12483
12484 ;
12485 return 0;
12486}
12487_ACEOF
12488rm -f conftest.$ac_objext
12489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490 (eval $ac_compile) 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
89be85c2
VS
12497 { ac_try='test -z "$ac_cxx_werror_flag"
12498 || test ! -s conftest.err'
95986553
DE
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try='test -s conftest.$ac_objext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 bakefile_compiler_mwerks=yes
12511else
12512 echo "$as_me: failed program was:" >&5
12513sed 's/^/| /' conftest.$ac_ext >&5
12514
12515bakefile_compiler_mwerks=no
12516fi
12517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12518 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12519
12520fi
12521echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12522echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12523
12524MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12525ac_ext=cc
12526ac_cpp='$CXXCPP $CPPFLAGS'
12527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12530
12531
12532
a848cd7e
SC
12533ac_ext=c
12534ac_cpp='$CPP $CPPFLAGS'
12535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537ac_compiler_gnu=$ac_cv_c_compiler_gnu
12538
12539
a848cd7e
SC
12540if test -n "$ac_tool_prefix"; then
12541 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12542set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12543echo "$as_me:$LINENO: checking for $ac_word" >&5
12544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12545if test "${ac_cv_prog_RANLIB+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12547else
12548 if test -n "$RANLIB"; then
12549 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12550else
12551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552for as_dir in $PATH
12553do
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12558 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12561 fi
12562done
12563done
12564
12565fi
12566fi
12567RANLIB=$ac_cv_prog_RANLIB
12568if test -n "$RANLIB"; then
12569 echo "$as_me:$LINENO: result: $RANLIB" >&5
12570echo "${ECHO_T}$RANLIB" >&6
12571else
12572 echo "$as_me:$LINENO: result: no" >&5
12573echo "${ECHO_T}no" >&6
12574fi
12575
12576fi
12577if test -z "$ac_cv_prog_RANLIB"; then
12578 ac_ct_RANLIB=$RANLIB
12579 # Extract the first word of "ranlib", so it can be a program name with args.
12580set dummy ranlib; ac_word=$2
12581echo "$as_me:$LINENO: checking for $ac_word" >&5
12582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12583if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585else
12586 if test -n "$ac_ct_RANLIB"; then
12587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12588else
12589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590for as_dir in $PATH
12591do
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
12595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12596 ac_cv_prog_ac_ct_RANLIB="ranlib"
12597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 break 2
12599 fi
12600done
12601done
12602
12603 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12604fi
12605fi
12606ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12607if test -n "$ac_ct_RANLIB"; then
12608 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12609echo "${ECHO_T}$ac_ct_RANLIB" >&6
12610else
12611 echo "$as_me:$LINENO: result: no" >&5
12612echo "${ECHO_T}no" >&6
12613fi
12614
12615 RANLIB=$ac_ct_RANLIB
12616else
12617 RANLIB="$ac_cv_prog_RANLIB"
12618fi
12619
12620
12621# Extract the first word of "ar", so it can be a program name with args.
12622set dummy ar; ac_word=$2
12623echo "$as_me:$LINENO: checking for $ac_word" >&5
12624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12625if test "${ac_cv_prog_AR+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12627else
12628 if test -n "$AR"; then
12629 ac_cv_prog_AR="$AR" # Let the user override the test.
12630else
12631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632for as_dir in $PATH
12633do
12634 IFS=$as_save_IFS
12635 test -z "$as_dir" && as_dir=.
12636 for ac_exec_ext in '' $ac_executable_extensions; do
12637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12638 ac_cv_prog_AR="ar"
12639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12640 break 2
12641 fi
12642done
12643done
12644
12645fi
12646fi
12647AR=$ac_cv_prog_AR
12648if test -n "$AR"; then
12649 echo "$as_me:$LINENO: result: $AR" >&5
12650echo "${ECHO_T}$AR" >&6
12651else
12652 echo "$as_me:$LINENO: result: no" >&5
12653echo "${ECHO_T}no" >&6
12654fi
12655
12656if test "x$AR" = "x" ; then
77ffb593
JS
12657 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12658echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12659 { (exit 1); exit 1; }; }
12660fi
12661
12662# Find a good install program. We prefer a C program (faster),
12663# so one script is as good as another. But avoid the broken or
12664# incompatible versions:
12665# SysV /etc/install, /usr/sbin/install
12666# SunOS /usr/etc/install
12667# IRIX /sbin/install
12668# AIX /bin/install
12669# AmigaOS /C/install, which installs bootblocks on floppy discs
12670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12671# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12673# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12674# ./install, which can be erroneously created by make from ./install.sh.
12675echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12676echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12677if test -z "$INSTALL"; then
12678if test "${ac_cv_path_install+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12680else
12681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682for as_dir in $PATH
12683do
12684 IFS=$as_save_IFS
12685 test -z "$as_dir" && as_dir=.
12686 # Account for people who put trailing slashes in PATH elements.
12687case $as_dir/ in
12688 ./ | .// | /cC/* | \
12689 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12690 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12691 /usr/ucb/* ) ;;
12692 *)
12693 # OSF1 and SCO ODT 3.0 have their own names for install.
12694 # Don't use installbsd from OSF since it installs stuff as root
12695 # by default.
12696 for ac_prog in ginstall scoinst install; do
12697 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12698 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12699 if test $ac_prog = install &&
12700 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12701 # AIX install. It has an incompatible calling convention.
12702 :
12703 elif test $ac_prog = install &&
12704 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12705 # program-specific install script used by HP pwplus--don't use.
12706 :
12707 else
12708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12709 break 3
12710 fi
12711 fi
a848cd7e
SC
12712 done
12713 done
12714 ;;
12715esac
12716done
12717
12718
12719fi
12720 if test "${ac_cv_path_install+set}" = set; then
12721 INSTALL=$ac_cv_path_install
12722 else
12723 # As a last resort, use the slow shell script. We don't cache a
12724 # path for INSTALL within a source directory, because that will
12725 # break other packages using the cache if that directory is
12726 # removed, or if the path is relative.
12727 INSTALL=$ac_install_sh
12728 fi
12729fi
12730echo "$as_me:$LINENO: result: $INSTALL" >&5
12731echo "${ECHO_T}$INSTALL" >&6
12732
12733# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12734# It thinks the first close brace ends the variable substitution.
12735test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12736
12737test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12738
12739test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12740
12741
12742case ${INSTALL} in
12743 /* ) # Absolute
12744 ;;
12745 ?:* ) # Drive letter, considered as absolute.
12746 ;;
12747 *)
12748 INSTALL=`pwd`/${INSTALL} ;;
12749esac
12750
a848cd7e
SC
12751
12752case "${host}" in
12753
12754 powerpc-*-darwin* )
12755 INSTALL_PROGRAM="cp -fp"
12756 INSTALL_DATA="cp -fp"
12757 ;;
12758 *)
12759 ;;
12760esac
12761
12762# Extract the first word of "strip", so it can be a program name with args.
12763set dummy strip; ac_word=$2
12764echo "$as_me:$LINENO: checking for $ac_word" >&5
12765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12766if test "${ac_cv_prog_STRIP+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12768else
12769 if test -n "$STRIP"; then
12770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12771else
12772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773for as_dir in $PATH
12774do
12775 IFS=$as_save_IFS
12776 test -z "$as_dir" && as_dir=.
12777 for ac_exec_ext in '' $ac_executable_extensions; do
12778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12779 ac_cv_prog_STRIP="strip"
12780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12781 break 2
12782 fi
12783done
12784done
12785
12786 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12787fi
12788fi
12789STRIP=$ac_cv_prog_STRIP
12790if test -n "$STRIP"; then
12791 echo "$as_me:$LINENO: result: $STRIP" >&5
12792echo "${ECHO_T}$STRIP" >&6
12793else
12794 echo "$as_me:$LINENO: result: no" >&5
12795echo "${ECHO_T}no" >&6
12796fi
12797
12798
12799echo "$as_me:$LINENO: checking if make is GNU make" >&5
12800echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12801if test "${wx_cv_prog_makeisgnu+set}" = set; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12803else
12804
12805 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12806 egrep -s GNU > /dev/null); then
12807 wx_cv_prog_makeisgnu="yes"
12808 else
12809 wx_cv_prog_makeisgnu="no"
12810 fi
12811
12812fi
12813echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12814echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12815
12816if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12817 IF_GNU_MAKE=""
12818else
12819 IF_GNU_MAKE="#"
12820fi
12821
12822
12823
12824if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12825echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12826echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12827if test "${wx_cv_prog_makevpath+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829else
12830
12831cat - << EOF > confMake
12832check : file
12833 cp \$? \$@
12834 cp \$? final_file
12835EOF
12836
12837if test ! -d sub ; then
12838 mkdir sub
12839fi
12840echo dummy > sub/file
12841${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12842RESULT=$?
12843rm -f sub/file check final_file confMake
12844rmdir sub
12845if test "$RESULT" = 0; then
12846 wx_cv_prog_makevpath="yes"
12847else
12848 wx_cv_prog_makevpath="no"
12849fi
12850
12851fi
12852echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12853echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12854
12855if test "x$wx_cv_prog_makevpath" != "xyes"; then
12856{ { echo "$as_me:$LINENO: error:
12857You need a make-utility that is able to use the variable
12858VPATH correctly.
12859If your version of make does not support VPATH correctly,
12860please install GNU-make (possibly as gmake), and start
12861configure with the following command:
12862export MAKE=gmake; ./configure for sh-type shells
12863setenv MAKE gmake; ./configure for csh-type shells
12864Also please do remember to use gmake in this case every time
12865you are trying to compile.
12866" >&5
12867echo "$as_me: error:
12868You need a make-utility that is able to use the variable
12869VPATH correctly.
12870If your version of make does not support VPATH correctly,
12871please install GNU-make (possibly as gmake), and start
12872configure with the following command:
12873export MAKE=gmake; ./configure for sh-type shells
12874setenv MAKE gmake; ./configure for csh-type shells
12875Also please do remember to use gmake in this case every time
12876you are trying to compile.
12877" >&2;}
12878 { (exit 1); exit 1; }; }
12879fi fi
12880echo "$as_me:$LINENO: checking whether ln -s works" >&5
12881echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12882LN_S=$as_ln_s
12883if test "$LN_S" = "ln -s"; then
12884 echo "$as_me:$LINENO: result: yes" >&5
12885echo "${ECHO_T}yes" >&6
12886else
12887 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12888echo "${ECHO_T}no, using $LN_S" >&6
12889fi
12890
12891
12892
4d7ec9f1
DE
12893case "${host}" in
12894 powerpc-*-darwin* )
12895 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
12896echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
12897 cat >conftest.$ac_ext <<_ACEOF
12898/* confdefs.h. */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
12902/* end confdefs.h. */
12903
12904int
12905main ()
12906{
12907#ifndef __POWERPC__
12908 choke me for lack of PowerPC
12909#endif
12910
12911 ;
12912 return 0;
12913}
12914_ACEOF
12915rm -f conftest.$ac_objext
12916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12917 (eval $ac_compile) 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -z "$ac_c_werror_flag"
12925 || test ! -s conftest.err'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; } &&
12931 { ac_try='test -s conftest.$ac_objext'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
12937 echo "$as_me:$LINENO: result: yes" >&5
12938echo "${ECHO_T}yes" >&6
12939else
12940 echo "$as_me: failed program was:" >&5
12941sed 's/^/| /' conftest.$ac_ext >&5
12942
12943echo "$as_me:$LINENO: result: no" >&5
12944echo "${ECHO_T}no" >&6
12945 cat >>confdefs.h <<\_ACEOF
12946#define __POWERPC__ 1
12947_ACEOF
12948
12949
12950fi
12951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12952 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
12953echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
12954 cat >conftest.$ac_ext <<_ACEOF
12955/* confdefs.h. */
12956_ACEOF
12957cat confdefs.h >>conftest.$ac_ext
12958cat >>conftest.$ac_ext <<_ACEOF
12959/* end confdefs.h. */
12960#include <CoreFoundation/CFBase.h>
12961
12962int
12963main ()
12964{
12965
12966 ;
12967 return 0;
12968}
12969_ACEOF
12970rm -f conftest.$ac_objext
12971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12972 (eval $ac_compile) 2>conftest.er1
12973 ac_status=$?
12974 grep -v '^ *+' conftest.er1 >conftest.err
12975 rm -f conftest.er1
12976 cat conftest.err >&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } &&
12979 { ac_try='test -z "$ac_c_werror_flag"
12980 || test ! -s conftest.err'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest.$ac_objext'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 echo "$as_me:$LINENO: result: yes" >&5
12993echo "${ECHO_T}yes" >&6
12994else
12995 echo "$as_me: failed program was:" >&5
12996sed 's/^/| /' conftest.$ac_ext >&5
12997
12998echo "$as_me:$LINENO: result: no" >&5
12999echo "${ECHO_T}no" >&6
13000 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13001echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13002 cat >conftest.$ac_ext <<_ACEOF
13003/* confdefs.h. */
13004_ACEOF
13005cat confdefs.h >>conftest.$ac_ext
13006cat >>conftest.$ac_ext <<_ACEOF
13007/* end confdefs.h. */
13008#define __CF_USE_FRAMEWORK_INCLUDES__
13009#include <CoreFoundation/CFBase.h>
13010
13011int
13012main ()
13013{
13014
13015 ;
13016 return 0;
13017}
13018_ACEOF
13019rm -f conftest.$ac_objext
13020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13021 (eval $ac_compile) 2>conftest.er1
13022 ac_status=$?
13023 grep -v '^ *+' conftest.er1 >conftest.err
13024 rm -f conftest.er1
13025 cat conftest.err >&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } &&
13028 { ac_try='test -z "$ac_c_werror_flag"
13029 || test ! -s conftest.err'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; } &&
13035 { ac_try='test -s conftest.$ac_objext'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
13041 echo "$as_me:$LINENO: result: yes" >&5
13042echo "${ECHO_T}yes" >&6
13043 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13044else
13045 echo "$as_me: failed program was:" >&5
13046sed 's/^/| /' conftest.$ac_ext >&5
13047
13048{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13049See \`config.log' for more details." >&5
13050echo "$as_me: error: no. CoreFoundation not available.
13051See \`config.log' for more details." >&2;}
13052 { (exit 1); exit 1; }; }
13053
13054fi
13055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13056
13057
13058fi
13059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13060 ;;
13061esac
13062
a848cd7e
SC
13063case "${host}" in
13064 *-pc-os2_emx | *-pc-os2-emx )
13065 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13066 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13067echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13068if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070else
13071 ac_check_lib_save_LIBS=$LIBS
13072LIBS="-lcExt $LIBS"
13073cat >conftest.$ac_ext <<_ACEOF
13074/* confdefs.h. */
13075_ACEOF
13076cat confdefs.h >>conftest.$ac_ext
13077cat >>conftest.$ac_ext <<_ACEOF
13078/* end confdefs.h. */
13079
13080/* Override any gcc2 internal prototype to avoid an error. */
13081#ifdef __cplusplus
13082extern "C"
13083#endif
13084/* We use char because int might match the return type of a gcc2
13085 builtin and then its argument prototype would still apply. */
13086char drand48 ();
13087int
13088main ()
13089{
13090drand48 ();
13091 ;
13092 return 0;
13093}
13094_ACEOF
13095rm -f conftest.$ac_objext conftest$ac_exeext
13096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13097 (eval $ac_link) 2>conftest.er1
a848cd7e 13098 ac_status=$?
ac1cb8d3
VS
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
a848cd7e
SC
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
89be85c2
VS
13104 { ac_try='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
ac1cb8d3
VS
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_cv_lib_cExt_drand48=yes
13118else
13119 echo "$as_me: failed program was:" >&5
13120sed 's/^/| /' conftest.$ac_ext >&5
13121
13122ac_cv_lib_cExt_drand48=no
13123fi
ac1cb8d3
VS
13124rm -f conftest.err conftest.$ac_objext \
13125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13126LIBS=$ac_check_lib_save_LIBS
13127fi
13128echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13129echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13130if test $ac_cv_lib_cExt_drand48 = yes; then
13131 LIBS="$LIBS -lcExt"
13132fi
13133
13134 else
13135 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13136 fi
391a765e 13137 echo "$as_me:$LINENO: checking for gcc version" >&5
a848cd7e
SC
13138echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
13139if test "${wx_cv_gccversion+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13141else
13142
391a765e
VS
13143 if test "$cross_compiling" = yes; then
13144 wx_cv_gccversion="EMX2"
13145
13146else
13147 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13148/* confdefs.h. */
13149_ACEOF
13150cat confdefs.h >>conftest.$ac_ext
13151cat >>conftest.$ac_ext <<_ACEOF
13152/* end confdefs.h. */
13153
391a765e 13154 #include <stdio.h>
a848cd7e 13155
391a765e
VS
13156 int main()
13157 {
13158 FILE *f=fopen("conftestval", "w");
13159 if (!f) exit(1);
13160 fprintf(f,
a848cd7e 13161 #if (__GNUC__ < 3)
391a765e
VS
13162 "EMX2"
13163 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13164 "EMX3"
13165 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13166 "Innotek5"
13167 #else
13168 "Innotek6"
a848cd7e 13169 #endif
391a765e
VS
13170 );
13171 exit(0);
13172 }
a848cd7e 13173
a848cd7e 13174_ACEOF
391a765e
VS
13175rm -f conftest$ac_exeext
13176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13177 (eval $ac_link) 2>&5
ac1cb8d3
VS
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
391a765e 13186 wx_cv_gccversion=`cat conftestval`
a848cd7e 13187else
391a765e
VS
13188 echo "$as_me: program exited with status $ac_status" >&5
13189echo "$as_me: failed program was:" >&5
a848cd7e
SC
13190sed 's/^/| /' conftest.$ac_ext >&5
13191
391a765e
VS
13192( exit $ac_status )
13193wx_cv_gccversion="EMX2"
a848cd7e 13194fi
391a765e 13195rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13196fi
a848cd7e
SC
13197
13198fi
13199echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13200echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13201 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13202 LIBS="$LIBS -lstdcpp"
13203 LDFLAGS="$LDFLAGS -Zsysv-signals"
13204 else
391a765e 13205 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13206 LIBS="$LIBS -lstdcxx"
13207 LDFLAGS="$LDFLAGS -Zsysv-signals"
13208 else
13209 LIBS="$LIBS -lstdc++"
13210 fi
13211 fi
94acd38e
DE
13212 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13213 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13214echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13215 wxUSE_OMF=yes
13216 fi
a848cd7e 13217 if test "$wxUSE_OMF" = "yes"; then
de59c161 13218 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
13219 fi
13220 ;;
13221 *)
13222
13223
13224
13225 ac_ext=cc
13226ac_cpp='$CXXCPP $CPPFLAGS'
13227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13230
13231
95986553 13232 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13233echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13234if test "${ac_cv_string_strcasecmp+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13236else
13237
13238 cat >conftest.$ac_ext <<_ACEOF
13239/* confdefs.h. */
13240_ACEOF
13241cat confdefs.h >>conftest.$ac_ext
13242cat >>conftest.$ac_ext <<_ACEOF
13243/* end confdefs.h. */
13244
13245 #include <string.h>
13246
13247int
13248main ()
13249{
13250
13251 strcasecmp("foo", "bar");
13252
13253 ;
13254 return 0;
13255}
13256_ACEOF
13257rm -f conftest.$ac_objext conftest$ac_exeext
13258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13259 (eval $ac_link) 2>conftest.er1
a848cd7e 13260 ac_status=$?
ac1cb8d3
VS
13261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
a848cd7e
SC
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } &&
89be85c2
VS
13266 { ac_try='test -z "$ac_cxx_werror_flag"
13267 || test ! -s conftest.err'
ac1cb8d3
VS
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_cv_string_strcasecmp=yes
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284ac_cv_string_strcasecmp=no
13285
13286fi
ac1cb8d3
VS
13287rm -f conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13289
13290fi
13291echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13292echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13293
13294 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13295 cat >>confdefs.h <<\_ACEOF
13296#define HAVE_STRCASECMP_IN_STRING_H 1
13297_ACEOF
13298
13299 else
13300 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13301echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13302if test "${ac_cv_strings_strcasecmp+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13304else
13305
13306 cat >conftest.$ac_ext <<_ACEOF
13307/* confdefs.h. */
13308_ACEOF
13309cat confdefs.h >>conftest.$ac_ext
13310cat >>conftest.$ac_ext <<_ACEOF
13311/* end confdefs.h. */
13312
13313 #include <strings.h>
13314
13315int
13316main ()
13317{
13318
13319 strcasecmp("foo", "bar");
13320
13321 ;
13322 return 0;
13323}
13324_ACEOF
13325rm -f conftest.$ac_objext conftest$ac_exeext
13326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13327 (eval $ac_link) 2>conftest.er1
a848cd7e 13328 ac_status=$?
ac1cb8d3
VS
13329 grep -v '^ *+' conftest.er1 >conftest.err
13330 rm -f conftest.er1
13331 cat conftest.err >&5
a848cd7e
SC
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } &&
89be85c2
VS
13334 { ac_try='test -z "$ac_cxx_werror_flag"
13335 || test ! -s conftest.err'
ac1cb8d3
VS
13336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337 (eval $ac_try) 2>&5
13338 ac_status=$?
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } &&
13341 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343 (eval $ac_try) 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; }; then
13347 ac_cv_strings_strcasecmp=yes
13348else
13349 echo "$as_me: failed program was:" >&5
13350sed 's/^/| /' conftest.$ac_ext >&5
13351
13352ac_cv_strings_strcasecmp=no
13353
13354fi
ac1cb8d3
VS
13355rm -f conftest.err conftest.$ac_objext \
13356 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13357
13358fi
13359echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13360echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13361
0c3c69fc 13362 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13363 cat >>confdefs.h <<\_ACEOF
13364#define HAVE_STRCASECMP_IN_STRINGS_H 1
13365_ACEOF
13366
13367 else
13368 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13369echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13370 { (exit 1); exit 1; }; }
13371 fi
13372 fi
13373
13374 ac_ext=c
13375ac_cpp='$CPP $CPPFLAGS'
13376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13378ac_compiler_gnu=$ac_cv_c_compiler_gnu
13379
13380 ;;
13381esac
13382
13383
13384echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13385echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13386if test "${ac_cv_header_stdc+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388else
13389 cat >conftest.$ac_ext <<_ACEOF
13390/* confdefs.h. */
13391_ACEOF
13392cat confdefs.h >>conftest.$ac_ext
13393cat >>conftest.$ac_ext <<_ACEOF
13394/* end confdefs.h. */
13395#include <stdlib.h>
13396#include <stdarg.h>
13397#include <string.h>
13398#include <float.h>
13399
13400int
13401main ()
13402{
13403
13404 ;
13405 return 0;
13406}
13407_ACEOF
13408rm -f conftest.$ac_objext
13409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13410 (eval $ac_compile) 2>conftest.er1
a848cd7e 13411 ac_status=$?
ac1cb8d3
VS
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
a848cd7e
SC
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
89be85c2
VS
13417 { ac_try='test -z "$ac_c_werror_flag"
13418 || test ! -s conftest.err'
ac1cb8d3
VS
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 ac_cv_header_stdc=yes
13431else
13432 echo "$as_me: failed program was:" >&5
13433sed 's/^/| /' conftest.$ac_ext >&5
13434
13435ac_cv_header_stdc=no
13436fi
ac1cb8d3 13437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13438
13439if test $ac_cv_header_stdc = yes; then
13440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13441 cat >conftest.$ac_ext <<_ACEOF
13442/* confdefs.h. */
13443_ACEOF
13444cat confdefs.h >>conftest.$ac_ext
13445cat >>conftest.$ac_ext <<_ACEOF
13446/* end confdefs.h. */
13447#include <string.h>
13448
13449_ACEOF
13450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13451 $EGREP "memchr" >/dev/null 2>&1; then
13452 :
13453else
13454 ac_cv_header_stdc=no
13455fi
13456rm -f conftest*
13457
13458fi
13459
13460if test $ac_cv_header_stdc = yes; then
13461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13462 cat >conftest.$ac_ext <<_ACEOF
13463/* confdefs.h. */
13464_ACEOF
13465cat confdefs.h >>conftest.$ac_ext
13466cat >>conftest.$ac_ext <<_ACEOF
13467/* end confdefs.h. */
13468#include <stdlib.h>
13469
13470_ACEOF
13471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13472 $EGREP "free" >/dev/null 2>&1; then
13473 :
13474else
13475 ac_cv_header_stdc=no
13476fi
13477rm -f conftest*
13478
13479fi
13480
13481if test $ac_cv_header_stdc = yes; then
13482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13483 if test "$cross_compiling" = yes; then
13484 :
13485else
13486 cat >conftest.$ac_ext <<_ACEOF
13487/* confdefs.h. */
13488_ACEOF
13489cat confdefs.h >>conftest.$ac_ext
13490cat >>conftest.$ac_ext <<_ACEOF
13491/* end confdefs.h. */
13492#include <ctype.h>
13493#if ((' ' & 0x0FF) == 0x020)
13494# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13495# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13496#else
13497# define ISLOWER(c) \
ac1cb8d3
VS
13498 (('a' <= (c) && (c) <= 'i') \
13499 || ('j' <= (c) && (c) <= 'r') \
13500 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13501# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13502#endif
13503
13504#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13505int
13506main ()
13507{
13508 int i;
13509 for (i = 0; i < 256; i++)
13510 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13511 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13512 exit(2);
13513 exit (0);
13514}
13515_ACEOF
13516rm -f conftest$ac_exeext
13517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13518 (eval $ac_link) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 :
13528else
13529 echo "$as_me: program exited with status $ac_status" >&5
13530echo "$as_me: failed program was:" >&5
13531sed 's/^/| /' conftest.$ac_ext >&5
13532
13533( exit $ac_status )
13534ac_cv_header_stdc=no
13535fi
ac1cb8d3 13536rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13537fi
13538fi
13539fi
13540echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13541echo "${ECHO_T}$ac_cv_header_stdc" >&6
13542if test $ac_cv_header_stdc = yes; then
13543
13544cat >>confdefs.h <<\_ACEOF
13545#define STDC_HEADERS 1
13546_ACEOF
13547
13548fi
13549
13550# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13561 inttypes.h stdint.h unistd.h
a848cd7e
SC
13562do
13563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13564echo "$as_me:$LINENO: checking for $ac_header" >&5
13565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13566if eval "test \"\${$as_ac_Header+set}\" = set"; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13568else
13569 cat >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$ac_includes_default
13576
13577#include <$ac_header>
13578_ACEOF
13579rm -f conftest.$ac_objext
13580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13581 (eval $ac_compile) 2>conftest.er1
a848cd7e 13582 ac_status=$?
ac1cb8d3
VS
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
a848cd7e
SC
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } &&
89be85c2
VS
13588 { ac_try='test -z "$ac_c_werror_flag"
13589 || test ! -s conftest.err'
ac1cb8d3
VS
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; } &&
13595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13601 eval "$as_ac_Header=yes"
13602else
13603 echo "$as_me: failed program was:" >&5
13604sed 's/^/| /' conftest.$ac_ext >&5
13605
13606eval "$as_ac_Header=no"
13607fi
ac1cb8d3 13608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13609fi
13610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13612if test `eval echo '${'$as_ac_Header'}'` = yes; then
13613 cat >>confdefs.h <<_ACEOF
13614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13615_ACEOF
13616
13617fi
13618
13619done
13620
13621
13622
13623for ac_header in stdlib.h
13624do
13625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13626if eval "test \"\${$as_ac_Header+set}\" = set"; then
13627 echo "$as_me:$LINENO: checking for $ac_header" >&5
13628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13629if eval "test \"\${$as_ac_Header+set}\" = set"; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13631fi
13632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13634else
13635 # Is the header compilable?
13636echo "$as_me:$LINENO: checking $ac_header usability" >&5
13637echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13638cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
13644$ac_includes_default
13645#include <$ac_header>
13646_ACEOF
13647rm -f conftest.$ac_objext
13648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13649 (eval $ac_compile) 2>conftest.er1
a848cd7e 13650 ac_status=$?
ac1cb8d3
VS
13651 grep -v '^ *+' conftest.er1 >conftest.err
13652 rm -f conftest.er1
13653 cat conftest.err >&5
a848cd7e
SC
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } &&
89be85c2
VS
13656 { ac_try='test -z "$ac_c_werror_flag"
13657 || test ! -s conftest.err'
ac1cb8d3
VS
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13660 ac_status=$?
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; } &&
13663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13666 ac_status=$?
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }; then
13669 ac_header_compiler=yes
13670else
13671 echo "$as_me: failed program was:" >&5
13672sed 's/^/| /' conftest.$ac_ext >&5
13673
13674ac_header_compiler=no
13675fi
ac1cb8d3 13676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13678echo "${ECHO_T}$ac_header_compiler" >&6
13679
13680# Is the header present?
13681echo "$as_me:$LINENO: checking $ac_header presence" >&5
13682echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13683cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
13689#include <$ac_header>
13690_ACEOF
13691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13693 ac_status=$?
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } >/dev/null; then
13699 if test -s conftest.err; then
13700 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13702 else
13703 ac_cpp_err=
13704 fi
13705else
13706 ac_cpp_err=yes
13707fi
13708if test -z "$ac_cpp_err"; then
13709 ac_header_preproc=yes
13710else
13711 echo "$as_me: failed program was:" >&5
13712sed 's/^/| /' conftest.$ac_ext >&5
13713
13714 ac_header_preproc=no
13715fi
13716rm -f conftest.err conftest.$ac_ext
13717echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13718echo "${ECHO_T}$ac_header_preproc" >&6
13719
13720# So? What about this header?
ac1cb8d3
VS
13721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13722 yes:no: )
a848cd7e
SC
13723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13724echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13726echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13727 ac_header_preproc=yes
a848cd7e 13728 ;;
ac1cb8d3 13729 no:yes:* )
a848cd7e
SC
13730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13735echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13737echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13741echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13742 (
13743 cat <<\_ASBOX
ac1cb8d3
VS
13744## ----------------------------------------- ##
13745## Report this to wx-dev@lists.wxwidgets.org ##
13746## ----------------------------------------- ##
a848cd7e
SC
13747_ASBOX
13748 ) |
13749 sed "s/^/$as_me: WARNING: /" >&2
13750 ;;
13751esac
13752echo "$as_me:$LINENO: checking for $ac_header" >&5
13753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13754if eval "test \"\${$as_ac_Header+set}\" = set"; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756else
ac1cb8d3 13757 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13758fi
13759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13761
13762fi
13763if test `eval echo '${'$as_ac_Header'}'` = yes; then
13764 cat >>confdefs.h <<_ACEOF
13765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13766_ACEOF
13767
13768fi
13769
13770done
13771
13772
13773for ac_header in malloc.h
13774do
13775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13776if eval "test \"\${$as_ac_Header+set}\" = set"; then
13777 echo "$as_me:$LINENO: checking for $ac_header" >&5
13778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13779if eval "test \"\${$as_ac_Header+set}\" = set"; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781fi
13782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13784else
13785 # Is the header compilable?
13786echo "$as_me:$LINENO: checking $ac_header usability" >&5
13787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13788cat >conftest.$ac_ext <<_ACEOF
13789/* confdefs.h. */
13790_ACEOF
13791cat confdefs.h >>conftest.$ac_ext
13792cat >>conftest.$ac_ext <<_ACEOF
13793/* end confdefs.h. */
13794$ac_includes_default
13795#include <$ac_header>
13796_ACEOF
13797rm -f conftest.$ac_objext
13798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13799 (eval $ac_compile) 2>conftest.er1
a848cd7e 13800 ac_status=$?
ac1cb8d3
VS
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
a848cd7e
SC
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
89be85c2
VS
13806 { ac_try='test -z "$ac_c_werror_flag"
13807 || test ! -s conftest.err'
ac1cb8d3
VS
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_header_compiler=yes
13820else
13821 echo "$as_me: failed program was:" >&5
13822sed 's/^/| /' conftest.$ac_ext >&5
13823
13824ac_header_compiler=no
13825fi
ac1cb8d3 13826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13828echo "${ECHO_T}$ac_header_compiler" >&6
13829
13830# Is the header present?
13831echo "$as_me:$LINENO: checking $ac_header presence" >&5
13832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13833cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h. */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
13838/* end confdefs.h. */
13839#include <$ac_header>
13840_ACEOF
13841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } >/dev/null; then
13849 if test -s conftest.err; then
13850 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13852 else
13853 ac_cpp_err=
13854 fi
13855else
13856 ac_cpp_err=yes
13857fi
13858if test -z "$ac_cpp_err"; then
13859 ac_header_preproc=yes
13860else
13861 echo "$as_me: failed program was:" >&5
13862sed 's/^/| /' conftest.$ac_ext >&5
13863
13864 ac_header_preproc=no
13865fi
13866rm -f conftest.err conftest.$ac_ext
13867echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13868echo "${ECHO_T}$ac_header_preproc" >&6
13869
13870# So? What about this header?
ac1cb8d3
VS
13871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13872 yes:no: )
a848cd7e
SC
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13877 ac_header_preproc=yes
a848cd7e 13878 ;;
ac1cb8d3 13879 no:yes:* )
a848cd7e
SC
13880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13892 (
13893 cat <<\_ASBOX
ac1cb8d3
VS
13894## ----------------------------------------- ##
13895## Report this to wx-dev@lists.wxwidgets.org ##
13896## ----------------------------------------- ##
a848cd7e
SC
13897_ASBOX
13898 ) |
13899 sed "s/^/$as_me: WARNING: /" >&2
13900 ;;
13901esac
13902echo "$as_me:$LINENO: checking for $ac_header" >&5
13903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13904if eval "test \"\${$as_ac_Header+set}\" = set"; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13906else
ac1cb8d3 13907 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13908fi
13909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13911
13912fi
13913if test `eval echo '${'$as_ac_Header'}'` = yes; then
13914 cat >>confdefs.h <<_ACEOF
13915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13916_ACEOF
13917
13918fi
13919
13920done
13921
13922
13923for ac_header in unistd.h
13924do
13925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13926if eval "test \"\${$as_ac_Header+set}\" = set"; then
13927 echo "$as_me:$LINENO: checking for $ac_header" >&5
13928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13929if eval "test \"\${$as_ac_Header+set}\" = set"; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13931fi
13932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13934else
13935 # Is the header compilable?
13936echo "$as_me:$LINENO: checking $ac_header usability" >&5
13937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13938cat >conftest.$ac_ext <<_ACEOF
13939/* confdefs.h. */
13940_ACEOF
13941cat confdefs.h >>conftest.$ac_ext
13942cat >>conftest.$ac_ext <<_ACEOF
13943/* end confdefs.h. */
13944$ac_includes_default
13945#include <$ac_header>
13946_ACEOF
13947rm -f conftest.$ac_objext
13948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13949 (eval $ac_compile) 2>conftest.er1
a848cd7e 13950 ac_status=$?
ac1cb8d3
VS
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
a848cd7e
SC
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
89be85c2
VS
13956 { ac_try='test -z "$ac_c_werror_flag"
13957 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
13963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
13969 ac_header_compiler=yes
13970else
13971 echo "$as_me: failed program was:" >&5
13972sed 's/^/| /' conftest.$ac_ext >&5
13973
13974ac_header_compiler=no
13975fi
ac1cb8d3 13976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13977echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13978echo "${ECHO_T}$ac_header_compiler" >&6
13979
13980# Is the header present?
13981echo "$as_me:$LINENO: checking $ac_header presence" >&5
13982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13983cat >conftest.$ac_ext <<_ACEOF
13984/* confdefs.h. */
13985_ACEOF
13986cat confdefs.h >>conftest.$ac_ext
13987cat >>conftest.$ac_ext <<_ACEOF
13988/* end confdefs.h. */
13989#include <$ac_header>
13990_ACEOF
13991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev/null; then
13999 if test -s conftest.err; then
14000 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14002 else
14003 ac_cpp_err=
14004 fi
14005else
14006 ac_cpp_err=yes
14007fi
14008if test -z "$ac_cpp_err"; then
14009 ac_header_preproc=yes
14010else
14011 echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
14013
14014 ac_header_preproc=no
14015fi
14016rm -f conftest.err conftest.$ac_ext
14017echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14018echo "${ECHO_T}$ac_header_preproc" >&6
14019
14020# So? What about this header?
ac1cb8d3
VS
14021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14022 yes:no: )
a848cd7e
SC
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14027 ac_header_preproc=yes
a848cd7e 14028 ;;
ac1cb8d3 14029 no:yes:* )
a848cd7e
SC
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14037echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14042 (
14043 cat <<\_ASBOX
ac1cb8d3
VS
14044## ----------------------------------------- ##
14045## Report this to wx-dev@lists.wxwidgets.org ##
14046## ----------------------------------------- ##
a848cd7e
SC
14047_ASBOX
14048 ) |
14049 sed "s/^/$as_me: WARNING: /" >&2
14050 ;;
14051esac
14052echo "$as_me:$LINENO: checking for $ac_header" >&5
14053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14054if eval "test \"\${$as_ac_Header+set}\" = set"; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14056else
ac1cb8d3 14057 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14058fi
14059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14061
14062fi
14063if test `eval echo '${'$as_ac_Header'}'` = yes; then
14064 cat >>confdefs.h <<_ACEOF
14065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14066_ACEOF
14067
14068fi
14069
14070done
14071
14072
14073for ac_header in wchar.h
14074do
14075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14076if eval "test \"\${$as_ac_Header+set}\" = set"; then
14077 echo "$as_me:$LINENO: checking for $ac_header" >&5
14078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14079if eval "test \"\${$as_ac_Header+set}\" = set"; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081fi
14082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14084else
14085 # Is the header compilable?
14086echo "$as_me:$LINENO: checking $ac_header usability" >&5
14087echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14088cat >conftest.$ac_ext <<_ACEOF
14089/* confdefs.h. */
14090_ACEOF
14091cat confdefs.h >>conftest.$ac_ext
14092cat >>conftest.$ac_ext <<_ACEOF
14093/* end confdefs.h. */
14094$ac_includes_default
14095#include <$ac_header>
14096_ACEOF
14097rm -f conftest.$ac_objext
14098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14099 (eval $ac_compile) 2>conftest.er1
a848cd7e 14100 ac_status=$?
ac1cb8d3
VS
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
a848cd7e
SC
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
89be85c2
VS
14106 { ac_try='test -z "$ac_c_werror_flag"
14107 || test ! -s conftest.err'
ac1cb8d3
VS
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_header_compiler=yes
14120else
14121 echo "$as_me: failed program was:" >&5
14122sed 's/^/| /' conftest.$ac_ext >&5
14123
14124ac_header_compiler=no
14125fi
ac1cb8d3 14126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14128echo "${ECHO_T}$ac_header_compiler" >&6
14129
14130# Is the header present?
14131echo "$as_me:$LINENO: checking $ac_header presence" >&5
14132echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14133cat >conftest.$ac_ext <<_ACEOF
14134/* confdefs.h. */
14135_ACEOF
14136cat confdefs.h >>conftest.$ac_ext
14137cat >>conftest.$ac_ext <<_ACEOF
14138/* end confdefs.h. */
14139#include <$ac_header>
14140_ACEOF
14141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14143 ac_status=$?
14144 grep -v '^ *+' conftest.er1 >conftest.err
14145 rm -f conftest.er1
14146 cat conftest.err >&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } >/dev/null; then
14149 if test -s conftest.err; then
14150 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14152 else
14153 ac_cpp_err=
14154 fi
14155else
14156 ac_cpp_err=yes
14157fi
14158if test -z "$ac_cpp_err"; then
14159 ac_header_preproc=yes
14160else
14161 echo "$as_me: failed program was:" >&5
14162sed 's/^/| /' conftest.$ac_ext >&5
14163
14164 ac_header_preproc=no
14165fi
14166rm -f conftest.err conftest.$ac_ext
14167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14168echo "${ECHO_T}$ac_header_preproc" >&6
14169
14170# So? What about this header?
ac1cb8d3
VS
14171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14172 yes:no: )
a848cd7e
SC
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14174echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14176echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14177 ac_header_preproc=yes
a848cd7e 14178 ;;
ac1cb8d3 14179 no:yes:* )
a848cd7e
SC
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14181echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14183echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14185echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14187echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14189echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14191echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14192 (
14193 cat <<\_ASBOX
ac1cb8d3
VS
14194## ----------------------------------------- ##
14195## Report this to wx-dev@lists.wxwidgets.org ##
14196## ----------------------------------------- ##
a848cd7e
SC
14197_ASBOX
14198 ) |
14199 sed "s/^/$as_me: WARNING: /" >&2
14200 ;;
14201esac
14202echo "$as_me:$LINENO: checking for $ac_header" >&5
14203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14204if eval "test \"\${$as_ac_Header+set}\" = set"; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14206else
ac1cb8d3 14207 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14208fi
14209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14211
14212fi
14213if test `eval echo '${'$as_ac_Header'}'` = yes; then
14214 cat >>confdefs.h <<_ACEOF
14215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14216_ACEOF
14217
14218fi
14219
14220done
14221
14222
14223if test "$ac_cv_header_wchar_h" != "yes"; then
14224
14225for ac_header in wcstr.h
14226do
14227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14228if eval "test \"\${$as_ac_Header+set}\" = set"; then
14229 echo "$as_me:$LINENO: checking for $ac_header" >&5
14230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14231if eval "test \"\${$as_ac_Header+set}\" = set"; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14233fi
14234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14236else
14237 # Is the header compilable?
14238echo "$as_me:$LINENO: checking $ac_header usability" >&5
14239echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14240cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
14245/* end confdefs.h. */
14246$ac_includes_default
14247#include <$ac_header>
14248_ACEOF
14249rm -f conftest.$ac_objext
14250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14251 (eval $ac_compile) 2>conftest.er1
a848cd7e 14252 ac_status=$?
ac1cb8d3
VS
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
a848cd7e
SC
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
89be85c2
VS
14258 { ac_try='test -z "$ac_c_werror_flag"
14259 || test ! -s conftest.err'
ac1cb8d3
VS
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_header_compiler=yes
14272else
14273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276ac_header_compiler=no
14277fi
ac1cb8d3 14278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14280echo "${ECHO_T}$ac_header_compiler" >&6
14281
14282# Is the header present?
14283echo "$as_me:$LINENO: checking $ac_header presence" >&5
14284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14285cat >conftest.$ac_ext <<_ACEOF
14286/* confdefs.h. */
14287_ACEOF
14288cat confdefs.h >>conftest.$ac_ext
14289cat >>conftest.$ac_ext <<_ACEOF
14290/* end confdefs.h. */
14291#include <$ac_header>
14292_ACEOF
14293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } >/dev/null; then
14301 if test -s conftest.err; then
14302 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14304 else
14305 ac_cpp_err=
14306 fi
14307else
14308 ac_cpp_err=yes
14309fi
14310if test -z "$ac_cpp_err"; then
14311 ac_header_preproc=yes
14312else
14313 echo "$as_me: failed program was:" >&5
14314sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 ac_header_preproc=no
14317fi
14318rm -f conftest.err conftest.$ac_ext
14319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14320echo "${ECHO_T}$ac_header_preproc" >&6
14321
14322# So? What about this header?
ac1cb8d3
VS
14323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14324 yes:no: )
a848cd7e
SC
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14329 ac_header_preproc=yes
a848cd7e 14330 ;;
ac1cb8d3 14331 no:yes:* )
a848cd7e
SC
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14344 (
14345 cat <<\_ASBOX
ac1cb8d3
VS
14346## ----------------------------------------- ##
14347## Report this to wx-dev@lists.wxwidgets.org ##
14348## ----------------------------------------- ##
a848cd7e
SC
14349_ASBOX
14350 ) |
14351 sed "s/^/$as_me: WARNING: /" >&2
14352 ;;
14353esac
14354echo "$as_me:$LINENO: checking for $ac_header" >&5
14355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14356if eval "test \"\${$as_ac_Header+set}\" = set"; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358else
ac1cb8d3 14359 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14360fi
14361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14363
14364fi
14365if test `eval echo '${'$as_ac_Header'}'` = yes; then
14366 cat >>confdefs.h <<_ACEOF
14367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14368_ACEOF
14369
14370fi
14371
14372done
14373
14374fi
14375
14376
14377for ac_header in fnmatch.h
14378do
14379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14380if eval "test \"\${$as_ac_Header+set}\" = set"; then
14381 echo "$as_me:$LINENO: checking for $ac_header" >&5
14382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14383if eval "test \"\${$as_ac_Header+set}\" = set"; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385fi
14386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14388else
14389 # Is the header compilable?
14390echo "$as_me:$LINENO: checking $ac_header usability" >&5
14391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14392cat >conftest.$ac_ext <<_ACEOF
14393/* confdefs.h. */
14394_ACEOF
14395cat confdefs.h >>conftest.$ac_ext
14396cat >>conftest.$ac_ext <<_ACEOF
14397/* end confdefs.h. */
14398$ac_includes_default
14399#include <$ac_header>
14400_ACEOF
14401rm -f conftest.$ac_objext
14402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14403 (eval $ac_compile) 2>conftest.er1
a848cd7e 14404 ac_status=$?
ac1cb8d3
VS
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
a848cd7e
SC
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
89be85c2
VS
14410 { ac_try='test -z "$ac_c_werror_flag"
14411 || test ! -s conftest.err'
ac1cb8d3
VS
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; } &&
14417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_header_compiler=yes
14424else
14425 echo "$as_me: failed program was:" >&5
14426sed 's/^/| /' conftest.$ac_ext >&5
14427
14428ac_header_compiler=no
14429fi
ac1cb8d3 14430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14432echo "${ECHO_T}$ac_header_compiler" >&6
14433
14434# Is the header present?
14435echo "$as_me:$LINENO: checking $ac_header presence" >&5
14436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14437cat >conftest.$ac_ext <<_ACEOF
14438/* confdefs.h. */
14439_ACEOF
14440cat confdefs.h >>conftest.$ac_ext
14441cat >>conftest.$ac_ext <<_ACEOF
14442/* end confdefs.h. */
14443#include <$ac_header>
14444_ACEOF
14445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } >/dev/null; then
14453 if test -s conftest.err; then
14454 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14456 else
14457 ac_cpp_err=
14458 fi
14459else
14460 ac_cpp_err=yes
14461fi
14462if test -z "$ac_cpp_err"; then
14463 ac_header_preproc=yes
14464else
14465 echo "$as_me: failed program was:" >&5
14466sed 's/^/| /' conftest.$ac_ext >&5
14467
14468 ac_header_preproc=no
14469fi
14470rm -f conftest.err conftest.$ac_ext
14471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14472echo "${ECHO_T}$ac_header_preproc" >&6
14473
14474# So? What about this header?
ac1cb8d3
VS
14475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14476 yes:no: )
a848cd7e
SC
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14481 ac_header_preproc=yes
a848cd7e 14482 ;;
ac1cb8d3 14483 no:yes:* )
a848cd7e
SC
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14496 (
14497 cat <<\_ASBOX
ac1cb8d3
VS
14498## ----------------------------------------- ##
14499## Report this to wx-dev@lists.wxwidgets.org ##
14500## ----------------------------------------- ##
a848cd7e
SC
14501_ASBOX
14502 ) |
14503 sed "s/^/$as_me: WARNING: /" >&2
14504 ;;
14505esac
14506echo "$as_me:$LINENO: checking for $ac_header" >&5
14507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14508if eval "test \"\${$as_ac_Header+set}\" = set"; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510else
ac1cb8d3 14511 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14512fi
14513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14515
14516fi
14517if test `eval echo '${'$as_ac_Header'}'` = yes; then
14518 cat >>confdefs.h <<_ACEOF
14519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14520_ACEOF
14521
14522fi
14523
14524done
14525
14526
14527if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14528
14529for ac_func in fnmatch
14530do
14531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14532echo "$as_me:$LINENO: checking for $ac_func" >&5
14533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14534if eval "test \"\${$as_ac_var+set}\" = set"; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536else
14537 cat >conftest.$ac_ext <<_ACEOF
14538/* confdefs.h. */
14539_ACEOF
14540cat confdefs.h >>conftest.$ac_ext
14541cat >>conftest.$ac_ext <<_ACEOF
14542/* end confdefs.h. */
ac1cb8d3
VS
14543/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14545#define $ac_func innocuous_$ac_func
14546
a848cd7e
SC
14547/* System header to define __stub macros and hopefully few prototypes,
14548 which can conflict with char $ac_func (); below.
14549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14550 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14551
a848cd7e
SC
14552#ifdef __STDC__
14553# include <limits.h>
14554#else
14555# include <assert.h>
14556#endif
ac1cb8d3
VS
14557
14558#undef $ac_func
14559
a848cd7e
SC
14560/* Override any gcc2 internal prototype to avoid an error. */
14561#ifdef __cplusplus
14562extern "C"
14563{
14564#endif
14565/* We use char because int might match the return type of a gcc2
14566 builtin and then its argument prototype would still apply. */
14567char $ac_func ();
14568/* The GNU C library defines this for functions which it implements
14569 to always fail with ENOSYS. Some functions are actually named
14570 something starting with __ and the normal name is an alias. */
14571#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14572choke me
14573#else
14574char (*f) () = $ac_func;
14575#endif
14576#ifdef __cplusplus
14577}
14578#endif
14579
14580int
14581main ()
14582{
14583return f != $ac_func;
14584 ;
14585 return 0;
14586}
14587_ACEOF
14588rm -f conftest.$ac_objext conftest$ac_exeext
14589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14590 (eval $ac_link) 2>conftest.er1
a848cd7e 14591 ac_status=$?
ac1cb8d3
VS
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
a848cd7e
SC
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
89be85c2
VS
14597 { ac_try='test -z "$ac_c_werror_flag"
14598 || test ! -s conftest.err'
ac1cb8d3
VS
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 eval "$as_ac_var=yes"
14611else
14612 echo "$as_me: failed program was:" >&5
14613sed 's/^/| /' conftest.$ac_ext >&5
14614
14615eval "$as_ac_var=no"
14616fi
ac1cb8d3
VS
14617rm -f conftest.err conftest.$ac_objext \
14618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14619fi
14620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14621echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14622if test `eval echo '${'$as_ac_var'}'` = yes; then
14623 cat >>confdefs.h <<_ACEOF
14624#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14625_ACEOF
14626
14627fi
14628done
14629
14630fi
14631
14632
14633for ac_header in langinfo.h
14634do
14635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14636if eval "test \"\${$as_ac_Header+set}\" = set"; then
14637 echo "$as_me:$LINENO: checking for $ac_header" >&5
14638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14639if eval "test \"\${$as_ac_Header+set}\" = set"; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14641fi
14642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14644else
14645 # Is the header compilable?
14646echo "$as_me:$LINENO: checking $ac_header usability" >&5
14647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14648cat >conftest.$ac_ext <<_ACEOF
14649/* confdefs.h. */
14650_ACEOF
14651cat confdefs.h >>conftest.$ac_ext
14652cat >>conftest.$ac_ext <<_ACEOF
14653/* end confdefs.h. */
14654$ac_includes_default
14655#include <$ac_header>
14656_ACEOF
14657rm -f conftest.$ac_objext
14658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14659 (eval $ac_compile) 2>conftest.er1
a848cd7e 14660 ac_status=$?
ac1cb8d3
VS
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
a848cd7e
SC
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
89be85c2
VS
14666 { ac_try='test -z "$ac_c_werror_flag"
14667 || test ! -s conftest.err'
ac1cb8d3
VS
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; } &&
14673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 ac_header_compiler=yes
14680else
14681 echo "$as_me: failed program was:" >&5
14682sed 's/^/| /' conftest.$ac_ext >&5
14683
14684ac_header_compiler=no
14685fi
ac1cb8d3 14686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14688echo "${ECHO_T}$ac_header_compiler" >&6
14689
14690# Is the header present?
14691echo "$as_me:$LINENO: checking $ac_header presence" >&5
14692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14693cat >conftest.$ac_ext <<_ACEOF
14694/* confdefs.h. */
14695_ACEOF
14696cat confdefs.h >>conftest.$ac_ext
14697cat >>conftest.$ac_ext <<_ACEOF
14698/* end confdefs.h. */
14699#include <$ac_header>
14700_ACEOF
14701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } >/dev/null; then
14709 if test -s conftest.err; then
14710 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14712 else
14713 ac_cpp_err=
14714 fi
14715else
14716 ac_cpp_err=yes
14717fi
14718if test -z "$ac_cpp_err"; then
14719 ac_header_preproc=yes
14720else
14721 echo "$as_me: failed program was:" >&5
14722sed 's/^/| /' conftest.$ac_ext >&5
14723
14724 ac_header_preproc=no
14725fi
14726rm -f conftest.err conftest.$ac_ext
14727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14728echo "${ECHO_T}$ac_header_preproc" >&6
14729
14730# So? What about this header?
ac1cb8d3
VS
14731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14732 yes:no: )
a848cd7e
SC
14733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14737 ac_header_preproc=yes
a848cd7e 14738 ;;
ac1cb8d3 14739 no:yes:* )
a848cd7e
SC
14740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14752 (
14753 cat <<\_ASBOX
ac1cb8d3
VS
14754## ----------------------------------------- ##
14755## Report this to wx-dev@lists.wxwidgets.org ##
14756## ----------------------------------------- ##
a848cd7e
SC
14757_ASBOX
14758 ) |
14759 sed "s/^/$as_me: WARNING: /" >&2
14760 ;;
14761esac
14762echo "$as_me:$LINENO: checking for $ac_header" >&5
14763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14764if eval "test \"\${$as_ac_Header+set}\" = set"; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
ac1cb8d3 14767 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14768fi
14769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14771
14772fi
14773if test `eval echo '${'$as_ac_Header'}'` = yes; then
14774 cat >>confdefs.h <<_ACEOF
14775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14776_ACEOF
14777
14778fi
14779
14780done
14781
14782
14783case "${host}" in
14784 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14785 if test $ac_cv_header_langinfo_h = "yes" \
14786 -a \( "$wx_cv_gccversion" = "EMX2" \
14787 -o "$wx_cv_gccversion" = "EMX3" \
14788 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
14789 LIBS="$LIBS -lintl"
14790 fi
14791 ;;
14792esac
14793
14794if test "$wxUSE_GUI" = "yes"; then
14795 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14796
14797for ac_header in X11/Xlib.h
14798do
14799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14800if eval "test \"\${$as_ac_Header+set}\" = set"; then
14801 echo "$as_me:$LINENO: checking for $ac_header" >&5
14802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14803if eval "test \"\${$as_ac_Header+set}\" = set"; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14805fi
14806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14808else
14809 # Is the header compilable?
14810echo "$as_me:$LINENO: checking $ac_header usability" >&5
14811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14812cat >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
14819#include <$ac_header>
14820_ACEOF
14821rm -f conftest.$ac_objext
14822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14823 (eval $ac_compile) 2>conftest.er1
a848cd7e 14824 ac_status=$?
ac1cb8d3
VS
14825 grep -v '^ *+' conftest.er1 >conftest.err
14826 rm -f conftest.er1
14827 cat conftest.err >&5
a848cd7e
SC
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
89be85c2
VS
14830 { ac_try='test -z "$ac_c_werror_flag"
14831 || test ! -s conftest.err'
ac1cb8d3
VS
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; } &&
14837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_header_compiler=yes
14844else
14845 echo "$as_me: failed program was:" >&5
14846sed 's/^/| /' conftest.$ac_ext >&5
14847
14848ac_header_compiler=no
14849fi
ac1cb8d3 14850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14851echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14852echo "${ECHO_T}$ac_header_compiler" >&6
14853
14854# Is the header present?
14855echo "$as_me:$LINENO: checking $ac_header presence" >&5
14856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14857cat >conftest.$ac_ext <<_ACEOF
14858/* confdefs.h. */
14859_ACEOF
14860cat confdefs.h >>conftest.$ac_ext
14861cat >>conftest.$ac_ext <<_ACEOF
14862/* end confdefs.h. */
14863#include <$ac_header>
14864_ACEOF
14865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14867 ac_status=$?
14868 grep -v '^ *+' conftest.er1 >conftest.err
14869 rm -f conftest.er1
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } >/dev/null; then
14873 if test -s conftest.err; then
14874 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14876 else
14877 ac_cpp_err=
14878 fi
14879else
14880 ac_cpp_err=yes
14881fi
14882if test -z "$ac_cpp_err"; then
14883 ac_header_preproc=yes
14884else
14885 echo "$as_me: failed program was:" >&5
14886sed 's/^/| /' conftest.$ac_ext >&5
14887
14888 ac_header_preproc=no
14889fi
14890rm -f conftest.err conftest.$ac_ext
14891echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14892echo "${ECHO_T}$ac_header_preproc" >&6
14893
14894# So? What about this header?
ac1cb8d3
VS
14895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14896 yes:no: )
a848cd7e
SC
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14898echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14900echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14901 ac_header_preproc=yes
a848cd7e 14902 ;;
ac1cb8d3 14903 no:yes:* )
a848cd7e
SC
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14905echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14907echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14909echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14911echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14915echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14916 (
14917 cat <<\_ASBOX
ac1cb8d3
VS
14918## ----------------------------------------- ##
14919## Report this to wx-dev@lists.wxwidgets.org ##
14920## ----------------------------------------- ##
a848cd7e
SC
14921_ASBOX
14922 ) |
14923 sed "s/^/$as_me: WARNING: /" >&2
14924 ;;
14925esac
14926echo "$as_me:$LINENO: checking for $ac_header" >&5
14927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14928if eval "test \"\${$as_ac_Header+set}\" = set"; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930else
ac1cb8d3 14931 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14932fi
14933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14935
14936fi
14937if test `eval echo '${'$as_ac_Header'}'` = yes; then
14938 cat >>confdefs.h <<_ACEOF
14939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14940_ACEOF
14941
14942fi
14943
14944done
14945
14946
14947for ac_header in X11/XKBlib.h
14948do
14949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14950echo "$as_me:$LINENO: checking for $ac_header" >&5
14951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14952if eval "test \"\${$as_ac_Header+set}\" = set"; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14954else
14955 cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961
14962 #if HAVE_X11_XLIB_H
14963 #include <X11/Xlib.h>
14964 #endif
14965
14966
14967#include <$ac_header>
14968_ACEOF
14969rm -f conftest.$ac_objext
14970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14971 (eval $ac_compile) 2>conftest.er1
a848cd7e 14972 ac_status=$?
ac1cb8d3
VS
14973 grep -v '^ *+' conftest.er1 >conftest.err
14974 rm -f conftest.er1
14975 cat conftest.err >&5
a848cd7e
SC
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
89be85c2
VS
14978 { ac_try='test -z "$ac_c_werror_flag"
14979 || test ! -s conftest.err'
ac1cb8d3
VS
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14982 ac_status=$?
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; } &&
14985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
14991 eval "$as_ac_Header=yes"
14992else
14993 echo "$as_me: failed program was:" >&5
14994sed 's/^/| /' conftest.$ac_ext >&5
14995
14996eval "$as_ac_Header=no"
14997fi
ac1cb8d3 14998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14999fi
15000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15002if test `eval echo '${'$as_ac_Header'}'` = yes; then
15003 cat >>confdefs.h <<_ACEOF
15004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15005_ACEOF
15006
15007fi
15008
15009done
15010
15011 fi
15012fi
15013
15014
15015echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15016echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15017if test "${ac_cv_c_const+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019else
15020 cat >conftest.$ac_ext <<_ACEOF
15021/* confdefs.h. */
15022_ACEOF
15023cat confdefs.h >>conftest.$ac_ext
15024cat >>conftest.$ac_ext <<_ACEOF
15025/* end confdefs.h. */
15026
15027int
15028main ()
15029{
15030/* FIXME: Include the comments suggested by Paul. */
15031#ifndef __cplusplus
15032 /* Ultrix mips cc rejects this. */
15033 typedef int charset[2];
15034 const charset x;
15035 /* SunOS 4.1.1 cc rejects this. */
15036 char const *const *ccp;
15037 char **p;
15038 /* NEC SVR4.0.2 mips cc rejects this. */
15039 struct point {int x, y;};
15040 static struct point const zero = {0,0};
15041 /* AIX XL C 1.02.0.0 rejects this.
15042 It does not let you subtract one const X* pointer from another in
15043 an arm of an if-expression whose if-part is not a constant
15044 expression */
15045 const char *g = "string";
15046 ccp = &g + (g ? g-g : 0);
15047 /* HPUX 7.0 cc rejects these. */
15048 ++ccp;
15049 p = (char**) ccp;
15050 ccp = (char const *const *) p;
15051 { /* SCO 3.2v4 cc rejects this. */
15052 char *t;
15053 char const *s = 0 ? (char *) 0 : (char const *) 0;
15054
15055 *t++ = 0;
15056 }
15057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15058 int x[] = {25, 17};
15059 const int *foo = &x[0];
15060 ++foo;
15061 }
15062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15063 typedef const int *iptr;
15064 iptr p = 0;
15065 ++p;
15066 }
15067 { /* AIX XL C 1.02.0.0 rejects this saying
15068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15069 struct s { int j; const int *ap[3]; };
15070 struct s *b; b->j = 5;
15071 }
15072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15073 const int foo = 10;
15074 }
15075#endif
15076
15077 ;
15078 return 0;
15079}
15080_ACEOF
15081rm -f conftest.$ac_objext
15082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15083 (eval $ac_compile) 2>conftest.er1
a848cd7e 15084 ac_status=$?
ac1cb8d3
VS
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
a848cd7e
SC
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
89be85c2
VS
15090 { ac_try='test -z "$ac_c_werror_flag"
15091 || test ! -s conftest.err'
ac1cb8d3
VS
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15103 ac_cv_c_const=yes
15104else
15105 echo "$as_me: failed program was:" >&5
15106sed 's/^/| /' conftest.$ac_ext >&5
15107
15108ac_cv_c_const=no
15109fi
ac1cb8d3 15110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15111fi
15112echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15113echo "${ECHO_T}$ac_cv_c_const" >&6
15114if test $ac_cv_c_const = no; then
15115
15116cat >>confdefs.h <<\_ACEOF
15117#define const
15118_ACEOF
15119
15120fi
15121
15122echo "$as_me:$LINENO: checking for inline" >&5
15123echo $ECHO_N "checking for inline... $ECHO_C" >&6
15124if test "${ac_cv_c_inline+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15126else
15127 ac_cv_c_inline=no
15128for ac_kw in inline __inline__ __inline; do
15129 cat >conftest.$ac_ext <<_ACEOF
15130/* confdefs.h. */
15131_ACEOF
15132cat confdefs.h >>conftest.$ac_ext
15133cat >>conftest.$ac_ext <<_ACEOF
15134/* end confdefs.h. */
15135#ifndef __cplusplus
15136typedef int foo_t;
15137static $ac_kw foo_t static_foo () {return 0; }
15138$ac_kw foo_t foo () {return 0; }
15139#endif
15140
15141_ACEOF
15142rm -f conftest.$ac_objext
15143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15144 (eval $ac_compile) 2>conftest.er1
a848cd7e 15145 ac_status=$?
ac1cb8d3
VS
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
a848cd7e
SC
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
89be85c2
VS
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
ac1cb8d3
VS
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_c_inline=$ac_kw; break
15165else
15166 echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
15169fi
ac1cb8d3 15170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15171done
15172
15173fi
15174echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15175echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15176
15177
a848cd7e
SC
15178case $ac_cv_c_inline in
15179 inline | yes) ;;
ac1cb8d3
VS
15180 *)
15181 case $ac_cv_c_inline in
15182 no) ac_val=;;
15183 *) ac_val=$ac_cv_c_inline;;
15184 esac
15185 cat >>confdefs.h <<_ACEOF
15186#ifndef __cplusplus
15187#define inline $ac_val
15188#endif
de59c161 15189_ACEOF
ac1cb8d3 15190 ;;
a848cd7e
SC
15191esac
15192
15193
15194echo "$as_me:$LINENO: checking for char" >&5
15195echo $ECHO_N "checking for char... $ECHO_C" >&6
15196if test "${ac_cv_type_char+set}" = set; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15198else
15199 cat >conftest.$ac_ext <<_ACEOF
15200/* confdefs.h. */
15201_ACEOF
15202cat confdefs.h >>conftest.$ac_ext
15203cat >>conftest.$ac_ext <<_ACEOF
15204/* end confdefs.h. */
15205$ac_includes_default
15206int
15207main ()
15208{
15209if ((char *) 0)
15210 return 0;
15211if (sizeof (char))
15212 return 0;
15213 ;
15214 return 0;
15215}
15216_ACEOF
15217rm -f conftest.$ac_objext
15218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15219 (eval $ac_compile) 2>conftest.er1
a848cd7e 15220 ac_status=$?
ac1cb8d3
VS
15221 grep -v '^ *+' conftest.er1 >conftest.err
15222 rm -f conftest.er1
15223 cat conftest.err >&5
a848cd7e
SC
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } &&
89be85c2
VS
15226 { ac_try='test -z "$ac_c_werror_flag"
15227 || test ! -s conftest.err'
ac1cb8d3
VS
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; } &&
15233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }; then
15239 ac_cv_type_char=yes
15240else
15241 echo "$as_me: failed program was:" >&5
15242sed 's/^/| /' conftest.$ac_ext >&5
15243
15244ac_cv_type_char=no
15245fi
ac1cb8d3 15246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15247fi
15248echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15249echo "${ECHO_T}$ac_cv_type_char" >&6
15250
15251echo "$as_me:$LINENO: checking size of char" >&5
15252echo $ECHO_N "checking size of char... $ECHO_C" >&6
15253if test "${ac_cv_sizeof_char+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15255else
15256 if test "$ac_cv_type_char" = yes; then
15257 # The cast to unsigned long works around a bug in the HP C Compiler
15258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15260 # This bug is HP SR number 8606223364.
15261 if test "$cross_compiling" = yes; then
15262 # Depending upon the size, compute the lo and hi bounds.
15263cat >conftest.$ac_ext <<_ACEOF
15264/* confdefs.h. */
15265_ACEOF
15266cat confdefs.h >>conftest.$ac_ext
15267cat >>conftest.$ac_ext <<_ACEOF
15268/* end confdefs.h. */
15269$ac_includes_default
15270int
15271main ()
15272{
15273static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15274test_array [0] = 0
15275
15276 ;
15277 return 0;
15278}
15279_ACEOF
15280rm -f conftest.$ac_objext
15281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15282 (eval $ac_compile) 2>conftest.er1
a848cd7e 15283 ac_status=$?
ac1cb8d3
VS
15284 grep -v '^ *+' conftest.er1 >conftest.err
15285 rm -f conftest.er1
15286 cat conftest.err >&5
a848cd7e
SC
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
89be85c2
VS
15289 { ac_try='test -z "$ac_c_werror_flag"
15290 || test ! -s conftest.err'
ac1cb8d3
VS
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; } &&
15296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_lo=0 ac_mid=0
15303 while :; do
15304 cat >conftest.$ac_ext <<_ACEOF
15305/* confdefs.h. */
15306_ACEOF
15307cat confdefs.h >>conftest.$ac_ext
15308cat >>conftest.$ac_ext <<_ACEOF
15309/* end confdefs.h. */
15310$ac_includes_default
15311int
15312main ()
15313{
15314static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15315test_array [0] = 0
15316
15317 ;
15318 return 0;
15319}
15320_ACEOF
15321rm -f conftest.$ac_objext
15322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15323 (eval $ac_compile) 2>conftest.er1
a848cd7e 15324 ac_status=$?
ac1cb8d3
VS
15325 grep -v '^ *+' conftest.er1 >conftest.err
15326 rm -f conftest.er1
15327 cat conftest.err >&5
a848cd7e
SC
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
89be85c2
VS
15330 { ac_try='test -z "$ac_c_werror_flag"
15331 || test ! -s conftest.err'
ac1cb8d3
VS
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 ac_hi=$ac_mid; break
15344else
15345 echo "$as_me: failed program was:" >&5
15346sed 's/^/| /' conftest.$ac_ext >&5
15347
15348ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15349 if test $ac_lo -le $ac_mid; then
15350 ac_lo= ac_hi=
15351 break
15352 fi
15353 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15354fi
ac1cb8d3 15355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15356 done
15357else
15358 echo "$as_me: failed program was:" >&5
15359sed 's/^/| /' conftest.$ac_ext >&5
15360
15361cat >conftest.$ac_ext <<_ACEOF
15362/* confdefs.h. */
15363_ACEOF
15364cat confdefs.h >>conftest.$ac_ext
15365cat >>conftest.$ac_ext <<_ACEOF
15366/* end confdefs.h. */
15367$ac_includes_default
15368int
15369main ()
15370{
15371static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15372test_array [0] = 0
15373
15374 ;
15375 return 0;
15376}
15377_ACEOF
15378rm -f conftest.$ac_objext
15379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15380 (eval $ac_compile) 2>conftest.er1
a848cd7e 15381 ac_status=$?
ac1cb8d3
VS
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
a848cd7e
SC
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
89be85c2
VS
15387 { ac_try='test -z "$ac_c_werror_flag"
15388 || test ! -s conftest.err'
ac1cb8d3
VS
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; } &&
15394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 ac_hi=-1 ac_mid=-1
15401 while :; do
15402 cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */
15404_ACEOF
15405cat confdefs.h >>conftest.$ac_ext
15406cat >>conftest.$ac_ext <<_ACEOF
15407/* end confdefs.h. */
15408$ac_includes_default
15409int
15410main ()
15411{
15412static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15413test_array [0] = 0
15414
15415 ;
15416 return 0;
15417}
15418_ACEOF
15419rm -f conftest.$ac_objext
15420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15421 (eval $ac_compile) 2>conftest.er1
a848cd7e 15422 ac_status=$?
ac1cb8d3
VS
15423 grep -v '^ *+' conftest.er1 >conftest.err
15424 rm -f conftest.er1
15425 cat conftest.err >&5
a848cd7e
SC
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
89be85c2
VS
15428 { ac_try='test -z "$ac_c_werror_flag"
15429 || test ! -s conftest.err'
ac1cb8d3
VS
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; } &&
15435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15441 ac_lo=$ac_mid; break
15442else
15443 echo "$as_me: failed program was:" >&5
15444sed 's/^/| /' conftest.$ac_ext >&5
15445
15446ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15447 if test $ac_mid -le $ac_hi; then
15448 ac_lo= ac_hi=
15449 break
15450 fi
15451 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15452fi
ac1cb8d3 15453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15454 done
15455else
15456 echo "$as_me: failed program was:" >&5
15457sed 's/^/| /' conftest.$ac_ext >&5
15458
15459ac_lo= ac_hi=
15460fi
ac1cb8d3 15461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15462fi
ac1cb8d3 15463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15464# Binary search between lo and hi bounds.
15465while test "x$ac_lo" != "x$ac_hi"; do
15466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15467 cat >conftest.$ac_ext <<_ACEOF
15468/* confdefs.h. */
15469_ACEOF
15470cat confdefs.h >>conftest.$ac_ext
15471cat >>conftest.$ac_ext <<_ACEOF
15472/* end confdefs.h. */
15473$ac_includes_default
15474int
15475main ()
15476{
15477static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15478test_array [0] = 0
15479
15480 ;
15481 return 0;
15482}
15483_ACEOF
15484rm -f conftest.$ac_objext
15485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15486 (eval $ac_compile) 2>conftest.er1
a848cd7e 15487 ac_status=$?
ac1cb8d3
VS
15488 grep -v '^ *+' conftest.er1 >conftest.err
15489 rm -f conftest.er1
15490 cat conftest.err >&5
a848cd7e
SC
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
89be85c2
VS
15493 { ac_try='test -z "$ac_c_werror_flag"
15494 || test ! -s conftest.err'
ac1cb8d3
VS
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_hi=$ac_mid
15507else
15508 echo "$as_me: failed program was:" >&5
15509sed 's/^/| /' conftest.$ac_ext >&5
15510
15511ac_lo=`expr '(' $ac_mid ')' + 1`
15512fi
ac1cb8d3 15513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15514done
15515case $ac_lo in
15516?*) ac_cv_sizeof_char=$ac_lo;;
15517'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15518See \`config.log' for more details." >&5
15519echo "$as_me: error: cannot compute sizeof (char), 77
15520See \`config.log' for more details." >&2;}
15521 { (exit 1); exit 1; }; } ;;
15522esac
15523else
15524 if test "$cross_compiling" = yes; then
89be85c2
VS
15525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15526See \`config.log' for more details." >&5
15527echo "$as_me: error: cannot run test program while cross compiling
15528See \`config.log' for more details." >&2;}
a848cd7e
SC
15529 { (exit 1); exit 1; }; }
15530else
15531 cat >conftest.$ac_ext <<_ACEOF
15532/* confdefs.h. */
15533_ACEOF
15534cat confdefs.h >>conftest.$ac_ext
15535cat >>conftest.$ac_ext <<_ACEOF
15536/* end confdefs.h. */
15537$ac_includes_default
15538long longval () { return (long) (sizeof (char)); }
15539unsigned long ulongval () { return (long) (sizeof (char)); }
15540#include <stdio.h>
15541#include <stdlib.h>
15542int
15543main ()
15544{
15545
15546 FILE *f = fopen ("conftest.val", "w");
15547 if (! f)
15548 exit (1);
15549 if (((long) (sizeof (char))) < 0)
15550 {
15551 long i = longval ();
15552 if (i != ((long) (sizeof (char))))
15553 exit (1);
15554 fprintf (f, "%ld\n", i);
15555 }
15556 else
15557 {
15558 unsigned long i = ulongval ();
15559 if (i != ((long) (sizeof (char))))
15560 exit (1);
15561 fprintf (f, "%lu\n", i);
15562 }
15563 exit (ferror (f) || fclose (f) != 0);
15564
15565 ;
15566 return 0;
15567}
15568_ACEOF
15569rm -f conftest$ac_exeext
15570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15571 (eval $ac_link) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576 (eval $ac_try) 2>&5
15577 ac_status=$?
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }; then
15580 ac_cv_sizeof_char=`cat conftest.val`
15581else
15582 echo "$as_me: program exited with status $ac_status" >&5
15583echo "$as_me: failed program was:" >&5
15584sed 's/^/| /' conftest.$ac_ext >&5
15585
15586( exit $ac_status )
15587{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15588See \`config.log' for more details." >&5
15589echo "$as_me: error: cannot compute sizeof (char), 77
15590See \`config.log' for more details." >&2;}
15591 { (exit 1); exit 1; }; }
15592fi
ac1cb8d3 15593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15594fi
15595fi
15596rm -f conftest.val
15597else
15598 ac_cv_sizeof_char=0
15599fi
15600fi
15601echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15602echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15603cat >>confdefs.h <<_ACEOF
15604#define SIZEOF_CHAR $ac_cv_sizeof_char
15605_ACEOF
15606
15607
15608echo "$as_me:$LINENO: checking for short" >&5
15609echo $ECHO_N "checking for short... $ECHO_C" >&6
15610if test "${ac_cv_type_short+set}" = set; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15612else
15613 cat >conftest.$ac_ext <<_ACEOF
15614/* confdefs.h. */
15615_ACEOF
15616cat confdefs.h >>conftest.$ac_ext
15617cat >>conftest.$ac_ext <<_ACEOF
15618/* end confdefs.h. */
15619$ac_includes_default
15620int
15621main ()
15622{
15623if ((short *) 0)
15624 return 0;
15625if (sizeof (short))
15626 return 0;
15627 ;
15628 return 0;
15629}
15630_ACEOF
15631rm -f conftest.$ac_objext
15632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15633 (eval $ac_compile) 2>conftest.er1
a848cd7e 15634 ac_status=$?
ac1cb8d3
VS
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
a848cd7e
SC
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
89be85c2
VS
15640 { ac_try='test -z "$ac_c_werror_flag"
15641 || test ! -s conftest.err'
ac1cb8d3
VS
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 ac_cv_type_short=yes
15654else
15655 echo "$as_me: failed program was:" >&5
15656sed 's/^/| /' conftest.$ac_ext >&5
15657
15658ac_cv_type_short=no
15659fi
ac1cb8d3 15660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15661fi
15662echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15663echo "${ECHO_T}$ac_cv_type_short" >&6
15664
15665echo "$as_me:$LINENO: checking size of short" >&5
15666echo $ECHO_N "checking size of short... $ECHO_C" >&6
15667if test "${ac_cv_sizeof_short+set}" = set; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15669else
15670 if test "$ac_cv_type_short" = yes; then
15671 # The cast to unsigned long works around a bug in the HP C Compiler
15672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15674 # This bug is HP SR number 8606223364.
15675 if test "$cross_compiling" = yes; then
15676 # Depending upon the size, compute the lo and hi bounds.
15677cat >conftest.$ac_ext <<_ACEOF
15678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
15683$ac_includes_default
15684int
15685main ()
15686{
15687static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15688test_array [0] = 0
15689
15690 ;
15691 return 0;
15692}
15693_ACEOF
15694rm -f conftest.$ac_objext
15695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15696 (eval $ac_compile) 2>conftest.er1
a848cd7e 15697 ac_status=$?
ac1cb8d3
VS
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
a848cd7e
SC
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
89be85c2
VS
15703 { ac_try='test -z "$ac_c_werror_flag"
15704 || test ! -s conftest.err'
ac1cb8d3
VS
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716 ac_lo=0 ac_mid=0
15717 while :; do
15718 cat >conftest.$ac_ext <<_ACEOF
15719/* confdefs.h. */
15720_ACEOF
15721cat confdefs.h >>conftest.$ac_ext
15722cat >>conftest.$ac_ext <<_ACEOF
15723/* end confdefs.h. */
15724$ac_includes_default
15725int
15726main ()
15727{
15728static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15729test_array [0] = 0
15730
15731 ;
15732 return 0;
15733}
15734_ACEOF
15735rm -f conftest.$ac_objext
15736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15737 (eval $ac_compile) 2>conftest.er1
a848cd7e 15738 ac_status=$?
ac1cb8d3
VS
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
a848cd7e
SC
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } &&
89be85c2
VS
15744 { ac_try='test -z "$ac_c_werror_flag"
15745 || test ! -s conftest.err'
ac1cb8d3
VS
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; } &&
15751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_hi=$ac_mid; break
15758else
15759 echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5
15761
15762ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15763 if test $ac_lo -le $ac_mid; then
15764 ac_lo= ac_hi=
15765 break
15766 fi
15767 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15768fi
ac1cb8d3 15769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15770 done
15771else
15772 echo "$as_me: failed program was:" >&5
15773sed 's/^/| /' conftest.$ac_ext >&5
15774
15775cat >conftest.$ac_ext <<_ACEOF
15776/* confdefs.h. */
15777_ACEOF
15778cat confdefs.h >>conftest.$ac_ext
15779cat >>conftest.$ac_ext <<_ACEOF
15780/* end confdefs.h. */
15781$ac_includes_default
15782int
15783main ()
15784{
15785static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15786test_array [0] = 0
15787
15788 ;
15789 return 0;
15790}
15791_ACEOF
15792rm -f conftest.$ac_objext
15793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15794 (eval $ac_compile) 2>conftest.er1
a848cd7e 15795 ac_status=$?
ac1cb8d3
VS
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
a848cd7e
SC
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
89be85c2
VS
15801 { ac_try='test -z "$ac_c_werror_flag"
15802 || test ! -s conftest.err'
ac1cb8d3
VS
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; } &&
15808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 ac_hi=-1 ac_mid=-1
15815 while :; do
15816 cat >conftest.$ac_ext <<_ACEOF
15817/* confdefs.h. */
15818_ACEOF
15819cat confdefs.h >>conftest.$ac_ext
15820cat >>conftest.$ac_ext <<_ACEOF
15821/* end confdefs.h. */
15822$ac_includes_default
15823int
15824main ()
15825{
15826static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15827test_array [0] = 0
15828
15829 ;
15830 return 0;
15831}
15832_ACEOF
15833rm -f conftest.$ac_objext
15834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15835 (eval $ac_compile) 2>conftest.er1
a848cd7e 15836 ac_status=$?
ac1cb8d3
VS
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
a848cd7e
SC
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
89be85c2
VS
15842 { ac_try='test -z "$ac_c_werror_flag"
15843 || test ! -s conftest.err'
ac1cb8d3
VS
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 ac_lo=$ac_mid; break
15856else
15857 echo "$as_me: failed program was:" >&5
15858sed 's/^/| /' conftest.$ac_ext >&5
15859
15860ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15861 if test $ac_mid -le $ac_hi; then
15862 ac_lo= ac_hi=
15863 break
15864 fi
15865 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15866fi
ac1cb8d3 15867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15868 done
15869else
15870 echo "$as_me: failed program was:" >&5
15871sed 's/^/| /' conftest.$ac_ext >&5
15872
15873ac_lo= ac_hi=
15874fi
ac1cb8d3 15875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15876fi
ac1cb8d3 15877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15878# Binary search between lo and hi bounds.
15879while test "x$ac_lo" != "x$ac_hi"; do
15880 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15881 cat >conftest.$ac_ext <<_ACEOF
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
15887$ac_includes_default
15888int
15889main ()
15890{
15891static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15892test_array [0] = 0
15893
15894 ;
15895 return 0;
15896}
15897_ACEOF
15898rm -f conftest.$ac_objext
15899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15900 (eval $ac_compile) 2>conftest.er1
a848cd7e 15901 ac_status=$?
ac1cb8d3
VS
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
a848cd7e
SC
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
89be85c2
VS
15907 { ac_try='test -z "$ac_c_werror_flag"
15908 || test ! -s conftest.err'
ac1cb8d3
VS
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; } &&
15914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_hi=$ac_mid
15921else
15922 echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925ac_lo=`expr '(' $ac_mid ')' + 1`
15926fi
ac1cb8d3 15927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15928done
15929case $ac_lo in
15930?*) ac_cv_sizeof_short=$ac_lo;;
15931'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15932See \`config.log' for more details." >&5
15933echo "$as_me: error: cannot compute sizeof (short), 77
15934See \`config.log' for more details." >&2;}
15935 { (exit 1); exit 1; }; } ;;
15936esac
15937else
15938 if test "$cross_compiling" = yes; then
89be85c2
VS
15939 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15940See \`config.log' for more details." >&5
15941echo "$as_me: error: cannot run test program while cross compiling
15942See \`config.log' for more details." >&2;}
a848cd7e
SC
15943 { (exit 1); exit 1; }; }
15944else
15945 cat >conftest.$ac_ext <<_ACEOF
15946/* confdefs.h. */
15947_ACEOF
15948cat confdefs.h >>conftest.$ac_ext
15949cat >>conftest.$ac_ext <<_ACEOF
15950/* end confdefs.h. */
15951$ac_includes_default
15952long longval () { return (long) (sizeof (short)); }
15953unsigned long ulongval () { return (long) (sizeof (short)); }
15954#include <stdio.h>
15955#include <stdlib.h>
15956int
15957main ()
15958{
15959
15960 FILE *f = fopen ("conftest.val", "w");
15961 if (! f)
15962 exit (1);
15963 if (((long) (sizeof (short))) < 0)
15964 {
15965 long i = longval ();
15966 if (i != ((long) (sizeof (short))))
15967 exit (1);
15968 fprintf (f, "%ld\n", i);
15969 }
15970 else
15971 {
15972 unsigned long i = ulongval ();
15973 if (i != ((long) (sizeof (short))))
15974 exit (1);
15975 fprintf (f, "%lu\n", i);
15976 }
15977 exit (ferror (f) || fclose (f) != 0);
15978
15979 ;
15980 return 0;
15981}
15982_ACEOF
15983rm -f conftest$ac_exeext
15984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15985 (eval $ac_link) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990 (eval $ac_try) 2>&5
15991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; }; then
15994 ac_cv_sizeof_short=`cat conftest.val`
15995else
15996 echo "$as_me: program exited with status $ac_status" >&5
15997echo "$as_me: failed program was:" >&5
15998sed 's/^/| /' conftest.$ac_ext >&5
15999
16000( exit $ac_status )
16001{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16002See \`config.log' for more details." >&5
16003echo "$as_me: error: cannot compute sizeof (short), 77
16004See \`config.log' for more details." >&2;}
16005 { (exit 1); exit 1; }; }
16006fi
ac1cb8d3 16007rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16008fi
16009fi
16010rm -f conftest.val
16011else
16012 ac_cv_sizeof_short=0
16013fi
16014fi
16015echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16016echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16017cat >>confdefs.h <<_ACEOF
16018#define SIZEOF_SHORT $ac_cv_sizeof_short
16019_ACEOF
16020
16021
16022echo "$as_me:$LINENO: checking for void *" >&5
16023echo $ECHO_N "checking for void *... $ECHO_C" >&6
16024if test "${ac_cv_type_void_p+set}" = set; then
16025 echo $ECHO_N "(cached) $ECHO_C" >&6
16026else
16027 cat >conftest.$ac_ext <<_ACEOF
16028/* confdefs.h. */
16029_ACEOF
16030cat confdefs.h >>conftest.$ac_ext
16031cat >>conftest.$ac_ext <<_ACEOF
16032/* end confdefs.h. */
16033$ac_includes_default
16034int
16035main ()
16036{
16037if ((void * *) 0)
16038 return 0;
16039if (sizeof (void *))
16040 return 0;
16041 ;
16042 return 0;
16043}
16044_ACEOF
16045rm -f conftest.$ac_objext
16046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16047 (eval $ac_compile) 2>conftest.er1
a848cd7e 16048 ac_status=$?
ac1cb8d3
VS
16049 grep -v '^ *+' conftest.er1 >conftest.err
16050 rm -f conftest.er1
16051 cat conftest.err >&5
a848cd7e
SC
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } &&
89be85c2
VS
16054 { ac_try='test -z "$ac_c_werror_flag"
16055 || test ! -s conftest.err'
ac1cb8d3
VS
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; } &&
16061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 ac_cv_type_void_p=yes
16068else
16069 echo "$as_me: failed program was:" >&5
16070sed 's/^/| /' conftest.$ac_ext >&5
16071
16072ac_cv_type_void_p=no
16073fi
ac1cb8d3 16074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16075fi
16076echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16077echo "${ECHO_T}$ac_cv_type_void_p" >&6
16078
16079echo "$as_me:$LINENO: checking size of void *" >&5
16080echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16081if test "${ac_cv_sizeof_void_p+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16083else
16084 if test "$ac_cv_type_void_p" = yes; then
16085 # The cast to unsigned long works around a bug in the HP C Compiler
16086 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16087 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16088 # This bug is HP SR number 8606223364.
16089 if test "$cross_compiling" = yes; then
16090 # Depending upon the size, compute the lo and hi bounds.
16091cat >conftest.$ac_ext <<_ACEOF
16092/* confdefs.h. */
16093_ACEOF
16094cat confdefs.h >>conftest.$ac_ext
16095cat >>conftest.$ac_ext <<_ACEOF
16096/* end confdefs.h. */
16097$ac_includes_default
16098int
16099main ()
16100{
16101static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16102test_array [0] = 0
16103
16104 ;
16105 return 0;
16106}
16107_ACEOF
16108rm -f conftest.$ac_objext
16109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16110 (eval $ac_compile) 2>conftest.er1
a848cd7e 16111 ac_status=$?
ac1cb8d3
VS
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
a848cd7e
SC
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
89be85c2
VS
16117 { ac_try='test -z "$ac_c_werror_flag"
16118 || test ! -s conftest.err'
ac1cb8d3
VS
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; } &&
16124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 ac_lo=0 ac_mid=0
16131 while :; do
16132 cat >conftest.$ac_ext <<_ACEOF
16133/* confdefs.h. */
16134_ACEOF
16135cat confdefs.h >>conftest.$ac_ext
16136cat >>conftest.$ac_ext <<_ACEOF
16137/* end confdefs.h. */
16138$ac_includes_default
16139int
16140main ()
16141{
16142static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16143test_array [0] = 0
16144
16145 ;
16146 return 0;
16147}
16148_ACEOF
16149rm -f conftest.$ac_objext
16150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16151 (eval $ac_compile) 2>conftest.er1
a848cd7e 16152 ac_status=$?
ac1cb8d3
VS
16153 grep -v '^ *+' conftest.er1 >conftest.err
16154 rm -f conftest.er1
16155 cat conftest.err >&5
a848cd7e
SC
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } &&
89be85c2
VS
16158 { ac_try='test -z "$ac_c_werror_flag"
16159 || test ! -s conftest.err'
ac1cb8d3
VS
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; } &&
16165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; }; then
16171 ac_hi=$ac_mid; break
16172else
16173 echo "$as_me: failed program was:" >&5
16174sed 's/^/| /' conftest.$ac_ext >&5
16175
16176ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16177 if test $ac_lo -le $ac_mid; then
16178 ac_lo= ac_hi=
16179 break
16180 fi
16181 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16182fi
ac1cb8d3 16183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16184 done
16185else
16186 echo "$as_me: failed program was:" >&5
16187sed 's/^/| /' conftest.$ac_ext >&5
16188
16189cat >conftest.$ac_ext <<_ACEOF
16190/* confdefs.h. */
16191_ACEOF
16192cat confdefs.h >>conftest.$ac_ext
16193cat >>conftest.$ac_ext <<_ACEOF
16194/* end confdefs.h. */
16195$ac_includes_default
16196int
16197main ()
16198{
16199static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16200test_array [0] = 0
16201
16202 ;
16203 return 0;
16204}
16205_ACEOF
16206rm -f conftest.$ac_objext
16207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16208 (eval $ac_compile) 2>conftest.er1
a848cd7e 16209 ac_status=$?
ac1cb8d3
VS
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
a848cd7e
SC
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
89be85c2
VS
16215 { ac_try='test -z "$ac_c_werror_flag"
16216 || test ! -s conftest.err'
ac1cb8d3
VS
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 ac_hi=-1 ac_mid=-1
16229 while :; do
16230 cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236$ac_includes_default
16237int
16238main ()
16239{
16240static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16241test_array [0] = 0
16242
16243 ;
16244 return 0;
16245}
16246_ACEOF
16247rm -f conftest.$ac_objext
16248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16249 (eval $ac_compile) 2>conftest.er1
a848cd7e 16250 ac_status=$?
ac1cb8d3
VS
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
a848cd7e
SC
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
89be85c2
VS
16256 { ac_try='test -z "$ac_c_werror_flag"
16257 || test ! -s conftest.err'
ac1cb8d3
VS
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; } &&
16263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 ac_lo=$ac_mid; break
16270else
16271 echo "$as_me: failed program was:" >&5
16272sed 's/^/| /' conftest.$ac_ext >&5
16273
16274ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16275 if test $ac_mid -le $ac_hi; then
16276 ac_lo= ac_hi=
16277 break
16278 fi
16279 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16280fi
ac1cb8d3 16281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16282 done
16283else
16284 echo "$as_me: failed program was:" >&5
16285sed 's/^/| /' conftest.$ac_ext >&5
16286
16287ac_lo= ac_hi=
16288fi
ac1cb8d3 16289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16290fi
ac1cb8d3 16291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16292# Binary search between lo and hi bounds.
16293while test "x$ac_lo" != "x$ac_hi"; do
16294 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16295 cat >conftest.$ac_ext <<_ACEOF
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
16301$ac_includes_default
16302int
16303main ()
16304{
16305static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16306test_array [0] = 0
16307
16308 ;
16309 return 0;
16310}
16311_ACEOF
16312rm -f conftest.$ac_objext
16313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16314 (eval $ac_compile) 2>conftest.er1
a848cd7e 16315 ac_status=$?
ac1cb8d3
VS
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
a848cd7e
SC
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
89be85c2
VS
16321 { ac_try='test -z "$ac_c_werror_flag"
16322 || test ! -s conftest.err'
ac1cb8d3
VS
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; } &&
16328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_hi=$ac_mid
16335else
16336 echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339ac_lo=`expr '(' $ac_mid ')' + 1`
16340fi
ac1cb8d3 16341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16342done
16343case $ac_lo in
16344?*) ac_cv_sizeof_void_p=$ac_lo;;
16345'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16346See \`config.log' for more details." >&5
16347echo "$as_me: error: cannot compute sizeof (void *), 77
16348See \`config.log' for more details." >&2;}
16349 { (exit 1); exit 1; }; } ;;
16350esac
16351else
16352 if test "$cross_compiling" = yes; then
89be85c2
VS
16353 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16354See \`config.log' for more details." >&5
16355echo "$as_me: error: cannot run test program while cross compiling
16356See \`config.log' for more details." >&2;}
a848cd7e
SC
16357 { (exit 1); exit 1; }; }
16358else
16359 cat >conftest.$ac_ext <<_ACEOF
16360/* confdefs.h. */
16361_ACEOF
16362cat confdefs.h >>conftest.$ac_ext
16363cat >>conftest.$ac_ext <<_ACEOF
16364/* end confdefs.h. */
16365$ac_includes_default
16366long longval () { return (long) (sizeof (void *)); }
16367unsigned long ulongval () { return (long) (sizeof (void *)); }
16368#include <stdio.h>
16369#include <stdlib.h>
16370int
16371main ()
16372{
16373
16374 FILE *f = fopen ("conftest.val", "w");
16375 if (! f)
16376 exit (1);
16377 if (((long) (sizeof (void *))) < 0)
16378 {
16379 long i = longval ();
16380 if (i != ((long) (sizeof (void *))))
16381 exit (1);
16382 fprintf (f, "%ld\n", i);
16383 }
16384 else
16385 {
16386 unsigned long i = ulongval ();
16387 if (i != ((long) (sizeof (void *))))
16388 exit (1);
16389 fprintf (f, "%lu\n", i);
16390 }
16391 exit (ferror (f) || fclose (f) != 0);
16392
16393 ;
16394 return 0;
16395}
16396_ACEOF
16397rm -f conftest$ac_exeext
16398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16399 (eval $ac_link) 2>&5
16400 ac_status=$?
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; }; then
16408 ac_cv_sizeof_void_p=`cat conftest.val`
16409else
16410 echo "$as_me: program exited with status $ac_status" >&5
16411echo "$as_me: failed program was:" >&5
16412sed 's/^/| /' conftest.$ac_ext >&5
16413
16414( exit $ac_status )
16415{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16416See \`config.log' for more details." >&5
16417echo "$as_me: error: cannot compute sizeof (void *), 77
16418See \`config.log' for more details." >&2;}
16419 { (exit 1); exit 1; }; }
16420fi
ac1cb8d3 16421rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16422fi
16423fi
16424rm -f conftest.val
16425else
16426 ac_cv_sizeof_void_p=0
16427fi
16428fi
16429echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16430echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16431cat >>confdefs.h <<_ACEOF
16432#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16433_ACEOF
16434
16435
16436echo "$as_me:$LINENO: checking for int" >&5
16437echo $ECHO_N "checking for int... $ECHO_C" >&6
16438if test "${ac_cv_type_int+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16440else
16441 cat >conftest.$ac_ext <<_ACEOF
16442/* confdefs.h. */
16443_ACEOF
16444cat confdefs.h >>conftest.$ac_ext
16445cat >>conftest.$ac_ext <<_ACEOF
16446/* end confdefs.h. */
16447$ac_includes_default
16448int
16449main ()
16450{
16451if ((int *) 0)
16452 return 0;
16453if (sizeof (int))
16454 return 0;
16455 ;
16456 return 0;
16457}
16458_ACEOF
16459rm -f conftest.$ac_objext
16460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16461 (eval $ac_compile) 2>conftest.er1
a848cd7e 16462 ac_status=$?
ac1cb8d3
VS
16463 grep -v '^ *+' conftest.er1 >conftest.err
16464 rm -f conftest.er1
16465 cat conftest.err >&5
a848cd7e
SC
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
89be85c2
VS
16468 { ac_try='test -z "$ac_c_werror_flag"
16469 || test ! -s conftest.err'
ac1cb8d3
VS
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; } &&
16475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 ac_cv_type_int=yes
16482else
16483 echo "$as_me: failed program was:" >&5
16484sed 's/^/| /' conftest.$ac_ext >&5
16485
16486ac_cv_type_int=no
16487fi
ac1cb8d3 16488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16489fi
16490echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16491echo "${ECHO_T}$ac_cv_type_int" >&6
16492
16493echo "$as_me:$LINENO: checking size of int" >&5
16494echo $ECHO_N "checking size of int... $ECHO_C" >&6
16495if test "${ac_cv_sizeof_int+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497else
16498 if test "$ac_cv_type_int" = yes; then
16499 # The cast to unsigned long works around a bug in the HP C Compiler
16500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16502 # This bug is HP SR number 8606223364.
16503 if test "$cross_compiling" = yes; then
16504 # Depending upon the size, compute the lo and hi bounds.
16505cat >conftest.$ac_ext <<_ACEOF
16506/* confdefs.h. */
16507_ACEOF
16508cat confdefs.h >>conftest.$ac_ext
16509cat >>conftest.$ac_ext <<_ACEOF
16510/* end confdefs.h. */
16511$ac_includes_default
16512int
16513main ()
16514{
16515static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16516test_array [0] = 0
16517
16518 ;
16519 return 0;
16520}
16521_ACEOF
16522rm -f conftest.$ac_objext
16523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16524 (eval $ac_compile) 2>conftest.er1
a848cd7e 16525 ac_status=$?
ac1cb8d3
VS
16526 grep -v '^ *+' conftest.er1 >conftest.err
16527 rm -f conftest.er1
16528 cat conftest.err >&5
a848cd7e
SC
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
89be85c2
VS
16531 { ac_try='test -z "$ac_c_werror_flag"
16532 || test ! -s conftest.err'
ac1cb8d3
VS
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544 ac_lo=0 ac_mid=0
16545 while :; do
16546 cat >conftest.$ac_ext <<_ACEOF
16547/* confdefs.h. */
16548_ACEOF
16549cat confdefs.h >>conftest.$ac_ext
16550cat >>conftest.$ac_ext <<_ACEOF
16551/* end confdefs.h. */
16552$ac_includes_default
16553int
16554main ()
16555{
16556static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16557test_array [0] = 0
16558
16559 ;
16560 return 0;
16561}
16562_ACEOF
16563rm -f conftest.$ac_objext
16564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16565 (eval $ac_compile) 2>conftest.er1
a848cd7e 16566 ac_status=$?
ac1cb8d3
VS
16567 grep -v '^ *+' conftest.er1 >conftest.err
16568 rm -f conftest.er1
16569 cat conftest.err >&5
a848cd7e
SC
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } &&
89be85c2
VS
16572 { ac_try='test -z "$ac_c_werror_flag"
16573 || test ! -s conftest.err'
ac1cb8d3
VS
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; } &&
16579 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_hi=$ac_mid; break
16586else
16587 echo "$as_me: failed program was:" >&5
16588sed 's/^/| /' conftest.$ac_ext >&5
16589
16590ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16591 if test $ac_lo -le $ac_mid; then
16592 ac_lo= ac_hi=
16593 break
16594 fi
16595 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16596fi
ac1cb8d3 16597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16598 done
16599else
16600 echo "$as_me: failed program was:" >&5
16601sed 's/^/| /' conftest.$ac_ext >&5
16602
16603cat >conftest.$ac_ext <<_ACEOF
16604/* confdefs.h. */
16605_ACEOF
16606cat confdefs.h >>conftest.$ac_ext
16607cat >>conftest.$ac_ext <<_ACEOF
16608/* end confdefs.h. */
16609$ac_includes_default
16610int
16611main ()
16612{
16613static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16614test_array [0] = 0
16615
16616 ;
16617 return 0;
16618}
16619_ACEOF
16620rm -f conftest.$ac_objext
16621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16622 (eval $ac_compile) 2>conftest.er1
a848cd7e 16623 ac_status=$?
ac1cb8d3
VS
16624 grep -v '^ *+' conftest.er1 >conftest.err
16625 rm -f conftest.er1
16626 cat conftest.err >&5
a848cd7e
SC
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } &&
89be85c2
VS
16629 { ac_try='test -z "$ac_c_werror_flag"
16630 || test ! -s conftest.err'
ac1cb8d3
VS
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; } &&
16636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; }; then
16642 ac_hi=-1 ac_mid=-1
16643 while :; do
16644 cat >conftest.$ac_ext <<_ACEOF
16645/* confdefs.h. */
16646_ACEOF
16647cat confdefs.h >>conftest.$ac_ext
16648cat >>conftest.$ac_ext <<_ACEOF
16649/* end confdefs.h. */
16650$ac_includes_default
16651int
16652main ()
16653{
16654static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16655test_array [0] = 0
16656
16657 ;
16658 return 0;
16659}
16660_ACEOF
16661rm -f conftest.$ac_objext
16662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16663 (eval $ac_compile) 2>conftest.er1
a848cd7e 16664 ac_status=$?
ac1cb8d3
VS
16665 grep -v '^ *+' conftest.er1 >conftest.err
16666 rm -f conftest.er1
16667 cat conftest.err >&5
a848cd7e
SC
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
89be85c2
VS
16670 { ac_try='test -z "$ac_c_werror_flag"
16671 || test ! -s conftest.err'
ac1cb8d3
VS
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16674 ac_status=$?
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; } &&
16677 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_lo=$ac_mid; break
16684else
16685 echo "$as_me: failed program was:" >&5
16686sed 's/^/| /' conftest.$ac_ext >&5
16687
16688ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16689 if test $ac_mid -le $ac_hi; then
16690 ac_lo= ac_hi=
16691 break
16692 fi
16693 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16694fi
ac1cb8d3 16695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16696 done
16697else
16698 echo "$as_me: failed program was:" >&5
16699sed 's/^/| /' conftest.$ac_ext >&5
16700
16701ac_lo= ac_hi=
16702fi
ac1cb8d3 16703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16704fi
ac1cb8d3 16705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16706# Binary search between lo and hi bounds.
16707while test "x$ac_lo" != "x$ac_hi"; do
16708 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16709 cat >conftest.$ac_ext <<_ACEOF
16710/* confdefs.h. */
16711_ACEOF
16712cat confdefs.h >>conftest.$ac_ext
16713cat >>conftest.$ac_ext <<_ACEOF
16714/* end confdefs.h. */
16715$ac_includes_default
16716int
16717main ()
16718{
16719static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16720test_array [0] = 0
16721
16722 ;
16723 return 0;
16724}
16725_ACEOF
16726rm -f conftest.$ac_objext
16727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16728 (eval $ac_compile) 2>conftest.er1
a848cd7e 16729 ac_status=$?
ac1cb8d3
VS
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
a848cd7e
SC
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
89be85c2
VS
16735 { ac_try='test -z "$ac_c_werror_flag"
16736 || test ! -s conftest.err'
ac1cb8d3
VS
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_hi=$ac_mid
16749else
16750 echo "$as_me: failed program was:" >&5
16751sed 's/^/| /' conftest.$ac_ext >&5
16752
16753ac_lo=`expr '(' $ac_mid ')' + 1`
16754fi
ac1cb8d3 16755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16756done
16757case $ac_lo in
16758?*) ac_cv_sizeof_int=$ac_lo;;
16759'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16760See \`config.log' for more details." >&5
16761echo "$as_me: error: cannot compute sizeof (int), 77
16762See \`config.log' for more details." >&2;}
16763 { (exit 1); exit 1; }; } ;;
16764esac
16765else
16766 if test "$cross_compiling" = yes; then
89be85c2
VS
16767 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16768See \`config.log' for more details." >&5
16769echo "$as_me: error: cannot run test program while cross compiling
16770See \`config.log' for more details." >&2;}
a848cd7e
SC
16771 { (exit 1); exit 1; }; }
16772else
16773 cat >conftest.$ac_ext <<_ACEOF
16774/* confdefs.h. */
16775_ACEOF
16776cat confdefs.h >>conftest.$ac_ext
16777cat >>conftest.$ac_ext <<_ACEOF
16778/* end confdefs.h. */
16779$ac_includes_default
16780long longval () { return (long) (sizeof (int)); }
16781unsigned long ulongval () { return (long) (sizeof (int)); }
16782#include <stdio.h>
16783#include <stdlib.h>
16784int
16785main ()
16786{
16787
16788 FILE *f = fopen ("conftest.val", "w");
16789 if (! f)
16790 exit (1);
16791 if (((long) (sizeof (int))) < 0)
16792 {
16793 long i = longval ();
16794 if (i != ((long) (sizeof (int))))
16795 exit (1);
16796 fprintf (f, "%ld\n", i);
16797 }
16798 else
16799 {
16800 unsigned long i = ulongval ();
16801 if (i != ((long) (sizeof (int))))
16802 exit (1);
16803 fprintf (f, "%lu\n", i);
16804 }
16805 exit (ferror (f) || fclose (f) != 0);
16806
16807 ;
16808 return 0;
16809}
16810_ACEOF
16811rm -f conftest$ac_exeext
16812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16813 (eval $ac_link) 2>&5
16814 ac_status=$?
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_cv_sizeof_int=`cat conftest.val`
16823else
16824 echo "$as_me: program exited with status $ac_status" >&5
16825echo "$as_me: failed program was:" >&5
16826sed 's/^/| /' conftest.$ac_ext >&5
16827
16828( exit $ac_status )
16829{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16830See \`config.log' for more details." >&5
16831echo "$as_me: error: cannot compute sizeof (int), 77
16832See \`config.log' for more details." >&2;}
16833 { (exit 1); exit 1; }; }
16834fi
ac1cb8d3 16835rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16836fi
16837fi
16838rm -f conftest.val
16839else
16840 ac_cv_sizeof_int=0
16841fi
16842fi
16843echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16844echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16845cat >>confdefs.h <<_ACEOF
16846#define SIZEOF_INT $ac_cv_sizeof_int
16847_ACEOF
16848
16849
16850echo "$as_me:$LINENO: checking for long" >&5
16851echo $ECHO_N "checking for long... $ECHO_C" >&6
16852if test "${ac_cv_type_long+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16854else
16855 cat >conftest.$ac_ext <<_ACEOF
16856/* confdefs.h. */
16857_ACEOF
16858cat confdefs.h >>conftest.$ac_ext
16859cat >>conftest.$ac_ext <<_ACEOF
16860/* end confdefs.h. */
16861$ac_includes_default
16862int
16863main ()
16864{
16865if ((long *) 0)
16866 return 0;
16867if (sizeof (long))
16868 return 0;
16869 ;
16870 return 0;
16871}
16872_ACEOF
16873rm -f conftest.$ac_objext
16874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16875 (eval $ac_compile) 2>conftest.er1
a848cd7e 16876 ac_status=$?
ac1cb8d3
VS
16877 grep -v '^ *+' conftest.er1 >conftest.err
16878 rm -f conftest.er1
16879 cat conftest.err >&5
a848cd7e
SC
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
89be85c2
VS
16882 { ac_try='test -z "$ac_c_werror_flag"
16883 || test ! -s conftest.err'
ac1cb8d3
VS
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; } &&
16889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 ac_cv_type_long=yes
16896else
16897 echo "$as_me: failed program was:" >&5
16898sed 's/^/| /' conftest.$ac_ext >&5
16899
16900ac_cv_type_long=no
16901fi
ac1cb8d3 16902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16903fi
16904echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16905echo "${ECHO_T}$ac_cv_type_long" >&6
16906
16907echo "$as_me:$LINENO: checking size of long" >&5
16908echo $ECHO_N "checking size of long... $ECHO_C" >&6
16909if test "${ac_cv_sizeof_long+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16911else
16912 if test "$ac_cv_type_long" = yes; then
16913 # The cast to unsigned long works around a bug in the HP C Compiler
16914 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16915 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16916 # This bug is HP SR number 8606223364.
16917 if test "$cross_compiling" = yes; then
16918 # Depending upon the size, compute the lo and hi bounds.
16919cat >conftest.$ac_ext <<_ACEOF
16920/* confdefs.h. */
16921_ACEOF
16922cat confdefs.h >>conftest.$ac_ext
16923cat >>conftest.$ac_ext <<_ACEOF
16924/* end confdefs.h. */
16925$ac_includes_default
16926int
16927main ()
16928{
16929static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16930test_array [0] = 0
16931
16932 ;
16933 return 0;
16934}
16935_ACEOF
16936rm -f conftest.$ac_objext
16937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16938 (eval $ac_compile) 2>conftest.er1
a848cd7e 16939 ac_status=$?
ac1cb8d3
VS
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
a848cd7e
SC
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
89be85c2
VS
16945 { ac_try='test -z "$ac_c_werror_flag"
16946 || test ! -s conftest.err'
ac1cb8d3
VS
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16955 ac_status=$?
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 ac_lo=0 ac_mid=0
16959 while :; do
16960 cat >conftest.$ac_ext <<_ACEOF
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h. */
16966$ac_includes_default
16967int
16968main ()
16969{
16970static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16971test_array [0] = 0
16972
16973 ;
16974 return 0;
16975}
16976_ACEOF
16977rm -f conftest.$ac_objext
16978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16979 (eval $ac_compile) 2>conftest.er1
a848cd7e 16980 ac_status=$?
ac1cb8d3
VS
16981 grep -v '^ *+' conftest.er1 >conftest.err
16982 rm -f conftest.er1
16983 cat conftest.err >&5
a848cd7e
SC
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } &&
89be85c2
VS
16986 { ac_try='test -z "$ac_c_werror_flag"
16987 || test ! -s conftest.err'
ac1cb8d3
VS
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_hi=$ac_mid; break
17000else
17001 echo "$as_me: failed program was:" >&5
17002sed 's/^/| /' conftest.$ac_ext >&5
17003
17004ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17005 if test $ac_lo -le $ac_mid; then
17006 ac_lo= ac_hi=
17007 break
17008 fi
17009 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17010fi
ac1cb8d3 17011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17012 done
17013else
17014 echo "$as_me: failed program was:" >&5
17015sed 's/^/| /' conftest.$ac_ext >&5
17016
17017cat >conftest.$ac_ext <<_ACEOF
17018/* confdefs.h. */
17019_ACEOF
17020cat confdefs.h >>conftest.$ac_ext
17021cat >>conftest.$ac_ext <<_ACEOF
17022/* end confdefs.h. */
17023$ac_includes_default
17024int
17025main ()
17026{
17027static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17028test_array [0] = 0
17029
17030 ;
17031 return 0;
17032}
17033_ACEOF
17034rm -f conftest.$ac_objext
17035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17036 (eval $ac_compile) 2>conftest.er1
a848cd7e 17037 ac_status=$?
ac1cb8d3
VS
17038 grep -v '^ *+' conftest.er1 >conftest.err
17039 rm -f conftest.er1
17040 cat conftest.err >&5
a848cd7e
SC
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
89be85c2
VS
17043 { ac_try='test -z "$ac_c_werror_flag"
17044 || test ! -s conftest.err'
ac1cb8d3
VS
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 ac_hi=-1 ac_mid=-1
17057 while :; do
17058 cat >conftest.$ac_ext <<_ACEOF
17059/* confdefs.h. */
17060_ACEOF
17061cat confdefs.h >>conftest.$ac_ext
17062cat >>conftest.$ac_ext <<_ACEOF
17063/* end confdefs.h. */
17064$ac_includes_default
17065int
17066main ()
17067{
17068static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17069test_array [0] = 0
17070
17071 ;
17072 return 0;
17073}
17074_ACEOF
17075rm -f conftest.$ac_objext
17076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17077 (eval $ac_compile) 2>conftest.er1
a848cd7e 17078 ac_status=$?
ac1cb8d3
VS
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
a848cd7e
SC
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
89be85c2
VS
17084 { ac_try='test -z "$ac_c_werror_flag"
17085 || test ! -s conftest.err'
ac1cb8d3
VS
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 ac_lo=$ac_mid; break
17098else
17099 echo "$as_me: failed program was:" >&5
17100sed 's/^/| /' conftest.$ac_ext >&5
17101
17102ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17103 if test $ac_mid -le $ac_hi; then
17104 ac_lo= ac_hi=
17105 break
17106 fi
17107 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17108fi
ac1cb8d3 17109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17110 done
17111else
17112 echo "$as_me: failed program was:" >&5
17113sed 's/^/| /' conftest.$ac_ext >&5
17114
17115ac_lo= ac_hi=
17116fi
ac1cb8d3 17117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17118fi
ac1cb8d3 17119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17120# Binary search between lo and hi bounds.
17121while test "x$ac_lo" != "x$ac_hi"; do
17122 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17123 cat >conftest.$ac_ext <<_ACEOF
17124/* confdefs.h. */
17125_ACEOF
17126cat confdefs.h >>conftest.$ac_ext
17127cat >>conftest.$ac_ext <<_ACEOF
17128/* end confdefs.h. */
17129$ac_includes_default
17130int
17131main ()
17132{
17133static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17134test_array [0] = 0
17135
17136 ;
17137 return 0;
17138}
17139_ACEOF
17140rm -f conftest.$ac_objext
17141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17142 (eval $ac_compile) 2>conftest.er1
a848cd7e 17143 ac_status=$?
ac1cb8d3
VS
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
a848cd7e
SC
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
89be85c2
VS
17149 { ac_try='test -z "$ac_c_werror_flag"
17150 || test ! -s conftest.err'
ac1cb8d3
VS
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; } &&
17156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17162 ac_hi=$ac_mid
17163else
17164 echo "$as_me: failed program was:" >&5
17165sed 's/^/| /' conftest.$ac_ext >&5
17166
17167ac_lo=`expr '(' $ac_mid ')' + 1`
17168fi
ac1cb8d3 17169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17170done
17171case $ac_lo in
17172?*) ac_cv_sizeof_long=$ac_lo;;
17173'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17174See \`config.log' for more details." >&5
17175echo "$as_me: error: cannot compute sizeof (long), 77
17176See \`config.log' for more details." >&2;}
17177 { (exit 1); exit 1; }; } ;;
17178esac
17179else
17180 if test "$cross_compiling" = yes; then
89be85c2
VS
17181 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17182See \`config.log' for more details." >&5
17183echo "$as_me: error: cannot run test program while cross compiling
17184See \`config.log' for more details." >&2;}
a848cd7e
SC
17185 { (exit 1); exit 1; }; }
17186else
17187 cat >conftest.$ac_ext <<_ACEOF
17188/* confdefs.h. */
17189_ACEOF
17190cat confdefs.h >>conftest.$ac_ext
17191cat >>conftest.$ac_ext <<_ACEOF
17192/* end confdefs.h. */
17193$ac_includes_default
17194long longval () { return (long) (sizeof (long)); }
17195unsigned long ulongval () { return (long) (sizeof (long)); }
17196#include <stdio.h>
17197#include <stdlib.h>
17198int
17199main ()
17200{
17201
17202 FILE *f = fopen ("conftest.val", "w");
17203 if (! f)
17204 exit (1);
17205 if (((long) (sizeof (long))) < 0)
17206 {
17207 long i = longval ();
17208 if (i != ((long) (sizeof (long))))
17209 exit (1);
17210 fprintf (f, "%ld\n", i);
17211 }
17212 else
17213 {
17214 unsigned long i = ulongval ();
17215 if (i != ((long) (sizeof (long))))
17216 exit (1);
17217 fprintf (f, "%lu\n", i);
17218 }
17219 exit (ferror (f) || fclose (f) != 0);
17220
17221 ;
17222 return 0;
17223}
17224_ACEOF
17225rm -f conftest$ac_exeext
17226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227 (eval $ac_link) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_cv_sizeof_long=`cat conftest.val`
17237else
17238 echo "$as_me: program exited with status $ac_status" >&5
17239echo "$as_me: failed program was:" >&5
17240sed 's/^/| /' conftest.$ac_ext >&5
17241
17242( exit $ac_status )
17243{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17244See \`config.log' for more details." >&5
17245echo "$as_me: error: cannot compute sizeof (long), 77
17246See \`config.log' for more details." >&2;}
17247 { (exit 1); exit 1; }; }
17248fi
ac1cb8d3 17249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17250fi
17251fi
17252rm -f conftest.val
17253else
17254 ac_cv_sizeof_long=0
17255fi
17256fi
17257echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17258echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17259cat >>confdefs.h <<_ACEOF
17260#define SIZEOF_LONG $ac_cv_sizeof_long
17261_ACEOF
17262
17263
17264echo "$as_me:$LINENO: checking for size_t" >&5
17265echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17266if test "${ac_cv_type_size_t+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268else
17269 cat >conftest.$ac_ext <<_ACEOF
17270/* confdefs.h. */
17271_ACEOF
17272cat confdefs.h >>conftest.$ac_ext
17273cat >>conftest.$ac_ext <<_ACEOF
17274/* end confdefs.h. */
17275$ac_includes_default
17276int
17277main ()
17278{
17279if ((size_t *) 0)
17280 return 0;
17281if (sizeof (size_t))
17282 return 0;
17283 ;
17284 return 0;
17285}
17286_ACEOF
17287rm -f conftest.$ac_objext
17288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17289 (eval $ac_compile) 2>conftest.er1
a848cd7e 17290 ac_status=$?
ac1cb8d3
VS
17291 grep -v '^ *+' conftest.er1 >conftest.err
17292 rm -f conftest.er1
17293 cat conftest.err >&5
a848cd7e
SC
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
89be85c2
VS
17296 { ac_try='test -z "$ac_c_werror_flag"
17297 || test ! -s conftest.err'
ac1cb8d3
VS
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 ac_cv_type_size_t=yes
17310else
17311 echo "$as_me: failed program was:" >&5
17312sed 's/^/| /' conftest.$ac_ext >&5
17313
17314ac_cv_type_size_t=no
17315fi
ac1cb8d3 17316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17317fi
17318echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17319echo "${ECHO_T}$ac_cv_type_size_t" >&6
17320
17321echo "$as_me:$LINENO: checking size of size_t" >&5
17322echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17323if test "${ac_cv_sizeof_size_t+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17325else
17326 if test "$ac_cv_type_size_t" = yes; then
17327 # The cast to unsigned long works around a bug in the HP C Compiler
17328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17330 # This bug is HP SR number 8606223364.
17331 if test "$cross_compiling" = yes; then
17332 # Depending upon the size, compute the lo and hi bounds.
17333cat >conftest.$ac_ext <<_ACEOF
17334/* confdefs.h. */
17335_ACEOF
17336cat confdefs.h >>conftest.$ac_ext
17337cat >>conftest.$ac_ext <<_ACEOF
17338/* end confdefs.h. */
17339$ac_includes_default
17340int
17341main ()
17342{
17343static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17344test_array [0] = 0
17345
17346 ;
17347 return 0;
17348}
17349_ACEOF
17350rm -f conftest.$ac_objext
17351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17352 (eval $ac_compile) 2>conftest.er1
a848cd7e 17353 ac_status=$?
ac1cb8d3
VS
17354 grep -v '^ *+' conftest.er1 >conftest.err
17355 rm -f conftest.er1
17356 cat conftest.err >&5
a848cd7e
SC
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } &&
89be85c2
VS
17359 { ac_try='test -z "$ac_c_werror_flag"
17360 || test ! -s conftest.err'
ac1cb8d3
VS
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 ac_lo=0 ac_mid=0
17373 while :; do
17374 cat >conftest.$ac_ext <<_ACEOF
17375/* confdefs.h. */
17376_ACEOF
17377cat confdefs.h >>conftest.$ac_ext
17378cat >>conftest.$ac_ext <<_ACEOF
17379/* end confdefs.h. */
17380$ac_includes_default
17381int
17382main ()
17383{
17384static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17385test_array [0] = 0
17386
17387 ;
17388 return 0;
17389}
17390_ACEOF
17391rm -f conftest.$ac_objext
17392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17393 (eval $ac_compile) 2>conftest.er1
a848cd7e 17394 ac_status=$?
ac1cb8d3
VS
17395 grep -v '^ *+' conftest.er1 >conftest.err
17396 rm -f conftest.er1
17397 cat conftest.err >&5
a848cd7e
SC
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
89be85c2
VS
17400 { ac_try='test -z "$ac_c_werror_flag"
17401 || test ! -s conftest.err'
ac1cb8d3
VS
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 ac_hi=$ac_mid; break
17414else
17415 echo "$as_me: failed program was:" >&5
17416sed 's/^/| /' conftest.$ac_ext >&5
17417
17418ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17419 if test $ac_lo -le $ac_mid; then
17420 ac_lo= ac_hi=
17421 break
17422 fi
17423 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17424fi
ac1cb8d3 17425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17426 done
17427else
17428 echo "$as_me: failed program was:" >&5
17429sed 's/^/| /' conftest.$ac_ext >&5
17430
17431cat >conftest.$ac_ext <<_ACEOF
17432/* confdefs.h. */
17433_ACEOF
17434cat confdefs.h >>conftest.$ac_ext
17435cat >>conftest.$ac_ext <<_ACEOF
17436/* end confdefs.h. */
17437$ac_includes_default
17438int
17439main ()
17440{
17441static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17442test_array [0] = 0
17443
17444 ;
17445 return 0;
17446}
17447_ACEOF
17448rm -f conftest.$ac_objext
17449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17450 (eval $ac_compile) 2>conftest.er1
a848cd7e 17451 ac_status=$?
ac1cb8d3
VS
17452 grep -v '^ *+' conftest.er1 >conftest.err
17453 rm -f conftest.er1
17454 cat conftest.err >&5
a848cd7e
SC
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
89be85c2
VS
17457 { ac_try='test -z "$ac_c_werror_flag"
17458 || test ! -s conftest.err'
ac1cb8d3
VS
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 ac_hi=-1 ac_mid=-1
17471 while :; do
17472 cat >conftest.$ac_ext <<_ACEOF
17473/* confdefs.h. */
17474_ACEOF
17475cat confdefs.h >>conftest.$ac_ext
17476cat >>conftest.$ac_ext <<_ACEOF
17477/* end confdefs.h. */
17478$ac_includes_default
17479int
17480main ()
17481{
17482static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17483test_array [0] = 0
17484
17485 ;
17486 return 0;
17487}
17488_ACEOF
17489rm -f conftest.$ac_objext
17490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17491 (eval $ac_compile) 2>conftest.er1
a848cd7e 17492 ac_status=$?
ac1cb8d3
VS
17493 grep -v '^ *+' conftest.er1 >conftest.err
17494 rm -f conftest.er1
17495 cat conftest.err >&5
a848cd7e
SC
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } &&
89be85c2
VS
17498 { ac_try='test -z "$ac_c_werror_flag"
17499 || test ! -s conftest.err'
ac1cb8d3
VS
17500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501 (eval $ac_try) 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_lo=$ac_mid; break
17512else
17513 echo "$as_me: failed program was:" >&5
17514sed 's/^/| /' conftest.$ac_ext >&5
17515
17516ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17517 if test $ac_mid -le $ac_hi; then
17518 ac_lo= ac_hi=
17519 break
17520 fi
17521 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17522fi
ac1cb8d3 17523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17524 done
17525else
17526 echo "$as_me: failed program was:" >&5
17527sed 's/^/| /' conftest.$ac_ext >&5
17528
17529ac_lo= ac_hi=
17530fi
ac1cb8d3 17531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17532fi
ac1cb8d3 17533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17534# Binary search between lo and hi bounds.
17535while test "x$ac_lo" != "x$ac_hi"; do
17536 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17537 cat >conftest.$ac_ext <<_ACEOF
17538/* confdefs.h. */
17539_ACEOF
17540cat confdefs.h >>conftest.$ac_ext
17541cat >>conftest.$ac_ext <<_ACEOF
17542/* end confdefs.h. */
17543$ac_includes_default
17544int
17545main ()
17546{
17547static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17548test_array [0] = 0
17549
17550 ;
17551 return 0;
17552}
17553_ACEOF
17554rm -f conftest.$ac_objext
17555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17556 (eval $ac_compile) 2>conftest.er1
a848cd7e 17557 ac_status=$?
ac1cb8d3
VS
17558 grep -v '^ *+' conftest.er1 >conftest.err
17559 rm -f conftest.er1
17560 cat conftest.err >&5
a848cd7e
SC
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
89be85c2
VS
17563 { ac_try='test -z "$ac_c_werror_flag"
17564 || test ! -s conftest.err'
ac1cb8d3
VS
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 ac_hi=$ac_mid
17577else
17578 echo "$as_me: failed program was:" >&5
17579sed 's/^/| /' conftest.$ac_ext >&5
17580
17581ac_lo=`expr '(' $ac_mid ')' + 1`
17582fi
ac1cb8d3 17583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17584done
17585case $ac_lo in
17586?*) ac_cv_sizeof_size_t=$ac_lo;;
17587'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17588See \`config.log' for more details." >&5
17589echo "$as_me: error: cannot compute sizeof (size_t), 77
17590See \`config.log' for more details." >&2;}
17591 { (exit 1); exit 1; }; } ;;
17592esac
17593else
17594 if test "$cross_compiling" = yes; then
89be85c2
VS
17595 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17596See \`config.log' for more details." >&5
17597echo "$as_me: error: cannot run test program while cross compiling
17598See \`config.log' for more details." >&2;}
a848cd7e
SC
17599 { (exit 1); exit 1; }; }
17600else
17601 cat >conftest.$ac_ext <<_ACEOF
17602/* confdefs.h. */
17603_ACEOF
17604cat confdefs.h >>conftest.$ac_ext
17605cat >>conftest.$ac_ext <<_ACEOF
17606/* end confdefs.h. */
17607$ac_includes_default
17608long longval () { return (long) (sizeof (size_t)); }
17609unsigned long ulongval () { return (long) (sizeof (size_t)); }
17610#include <stdio.h>
17611#include <stdlib.h>
17612int
17613main ()
17614{
17615
17616 FILE *f = fopen ("conftest.val", "w");
17617 if (! f)
17618 exit (1);
17619 if (((long) (sizeof (size_t))) < 0)
17620 {
17621 long i = longval ();
17622 if (i != ((long) (sizeof (size_t))))
17623 exit (1);
17624 fprintf (f, "%ld\n", i);
17625 }
17626 else
17627 {
17628 unsigned long i = ulongval ();
17629 if (i != ((long) (sizeof (size_t))))
17630 exit (1);
17631 fprintf (f, "%lu\n", i);
17632 }
17633 exit (ferror (f) || fclose (f) != 0);
17634
17635 ;
17636 return 0;
17637}
17638_ACEOF
17639rm -f conftest$ac_exeext
17640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641 (eval $ac_link) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; }; then
17650 ac_cv_sizeof_size_t=`cat conftest.val`
17651else
17652 echo "$as_me: program exited with status $ac_status" >&5
17653echo "$as_me: failed program was:" >&5
17654sed 's/^/| /' conftest.$ac_ext >&5
17655
17656( exit $ac_status )
17657{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17658See \`config.log' for more details." >&5
17659echo "$as_me: error: cannot compute sizeof (size_t), 77
17660See \`config.log' for more details." >&2;}
17661 { (exit 1); exit 1; }; }
17662fi
ac1cb8d3 17663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17664fi
17665fi
17666rm -f conftest.val
17667else
17668 ac_cv_sizeof_size_t=0
17669fi
17670fi
17671echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17672echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17673cat >>confdefs.h <<_ACEOF
17674#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17675_ACEOF
17676
17677
17678
17679case "${host}" in
17680 arm-*-linux* )
17681 echo "$as_me:$LINENO: checking for long long" >&5
17682echo $ECHO_N "checking for long long... $ECHO_C" >&6
17683if test "${ac_cv_type_long_long+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17685else
17686 cat >conftest.$ac_ext <<_ACEOF
17687/* confdefs.h. */
17688_ACEOF
17689cat confdefs.h >>conftest.$ac_ext
17690cat >>conftest.$ac_ext <<_ACEOF
17691/* end confdefs.h. */
17692$ac_includes_default
17693int
17694main ()
17695{
17696if ((long long *) 0)
17697 return 0;
17698if (sizeof (long long))
17699 return 0;
17700 ;
17701 return 0;
17702}
17703_ACEOF
17704rm -f conftest.$ac_objext
17705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17706 (eval $ac_compile) 2>conftest.er1
a848cd7e 17707 ac_status=$?
ac1cb8d3
VS
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
a848cd7e
SC
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
89be85c2
VS
17713 { ac_try='test -z "$ac_c_werror_flag"
17714 || test ! -s conftest.err'
ac1cb8d3
VS
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_cv_type_long_long=yes
17727else
17728 echo "$as_me: failed program was:" >&5
17729sed 's/^/| /' conftest.$ac_ext >&5
17730
17731ac_cv_type_long_long=no
17732fi
ac1cb8d3 17733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17734fi
17735echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17736echo "${ECHO_T}$ac_cv_type_long_long" >&6
17737
17738echo "$as_me:$LINENO: checking size of long long" >&5
17739echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17740if test "${ac_cv_sizeof_long_long+set}" = set; then
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17742else
17743 if test "$ac_cv_type_long_long" = yes; then
17744 # The cast to unsigned long works around a bug in the HP C Compiler
17745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17747 # This bug is HP SR number 8606223364.
17748 if test "$cross_compiling" = yes; then
17749 # Depending upon the size, compute the lo and hi bounds.
17750cat >conftest.$ac_ext <<_ACEOF
17751/* confdefs.h. */
17752_ACEOF
17753cat confdefs.h >>conftest.$ac_ext
17754cat >>conftest.$ac_ext <<_ACEOF
17755/* end confdefs.h. */
17756$ac_includes_default
17757int
17758main ()
17759{
17760static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17761test_array [0] = 0
17762
17763 ;
17764 return 0;
17765}
17766_ACEOF
17767rm -f conftest.$ac_objext
17768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17769 (eval $ac_compile) 2>conftest.er1
a848cd7e 17770 ac_status=$?
ac1cb8d3
VS
17771 grep -v '^ *+' conftest.er1 >conftest.err
17772 rm -f conftest.er1
17773 cat conftest.err >&5
a848cd7e
SC
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
89be85c2
VS
17776 { ac_try='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
ac1cb8d3
VS
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_lo=0 ac_mid=0
17790 while :; do
17791 cat >conftest.$ac_ext <<_ACEOF
17792/* confdefs.h. */
17793_ACEOF
17794cat confdefs.h >>conftest.$ac_ext
17795cat >>conftest.$ac_ext <<_ACEOF
17796/* end confdefs.h. */
17797$ac_includes_default
17798int
17799main ()
17800{
17801static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17802test_array [0] = 0
17803
17804 ;
17805 return 0;
17806}
17807_ACEOF
17808rm -f conftest.$ac_objext
17809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17810 (eval $ac_compile) 2>conftest.er1
a848cd7e 17811 ac_status=$?
ac1cb8d3
VS
17812 grep -v '^ *+' conftest.er1 >conftest.err
17813 rm -f conftest.er1
17814 cat conftest.err >&5
a848cd7e
SC
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } &&
89be85c2
VS
17817 { ac_try='test -z "$ac_c_werror_flag"
17818 || test ! -s conftest.err'
ac1cb8d3
VS
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; } &&
17824 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; }; then
17830 ac_hi=$ac_mid; break
17831else
17832 echo "$as_me: failed program was:" >&5
17833sed 's/^/| /' conftest.$ac_ext >&5
17834
17835ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17836 if test $ac_lo -le $ac_mid; then
17837 ac_lo= ac_hi=
17838 break
17839 fi
17840 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17841fi
ac1cb8d3 17842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17843 done
17844else
17845 echo "$as_me: failed program was:" >&5
17846sed 's/^/| /' conftest.$ac_ext >&5
17847
17848cat >conftest.$ac_ext <<_ACEOF
17849/* confdefs.h. */
17850_ACEOF
17851cat confdefs.h >>conftest.$ac_ext
17852cat >>conftest.$ac_ext <<_ACEOF
17853/* end confdefs.h. */
17854$ac_includes_default
17855int
17856main ()
17857{
17858static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17859test_array [0] = 0
17860
17861 ;
17862 return 0;
17863}
17864_ACEOF
17865rm -f conftest.$ac_objext
17866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17867 (eval $ac_compile) 2>conftest.er1
a848cd7e 17868 ac_status=$?
ac1cb8d3
VS
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
a848cd7e
SC
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
89be85c2
VS
17874 { ac_try='test -z "$ac_c_werror_flag"
17875 || test ! -s conftest.err'
ac1cb8d3
VS
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 ac_hi=-1 ac_mid=-1
17888 while :; do
17889 cat >conftest.$ac_ext <<_ACEOF
17890/* confdefs.h. */
17891_ACEOF
17892cat confdefs.h >>conftest.$ac_ext
17893cat >>conftest.$ac_ext <<_ACEOF
17894/* end confdefs.h. */
17895$ac_includes_default
17896int
17897main ()
17898{
17899static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17900test_array [0] = 0
17901
17902 ;
17903 return 0;
17904}
17905_ACEOF
17906rm -f conftest.$ac_objext
17907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17908 (eval $ac_compile) 2>conftest.er1
a848cd7e 17909 ac_status=$?
ac1cb8d3
VS
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
a848cd7e
SC
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
89be85c2
VS
17915 { ac_try='test -z "$ac_c_werror_flag"
17916 || test ! -s conftest.err'
ac1cb8d3
VS
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; } &&
17922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 ac_lo=$ac_mid; break
17929else
17930 echo "$as_me: failed program was:" >&5
17931sed 's/^/| /' conftest.$ac_ext >&5
17932
17933ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17934 if test $ac_mid -le $ac_hi; then
17935 ac_lo= ac_hi=
17936 break
17937 fi
17938 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17939fi
ac1cb8d3 17940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17941 done
17942else
17943 echo "$as_me: failed program was:" >&5
17944sed 's/^/| /' conftest.$ac_ext >&5
17945
17946ac_lo= ac_hi=
17947fi
ac1cb8d3 17948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17949fi
ac1cb8d3 17950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17951# Binary search between lo and hi bounds.
17952while test "x$ac_lo" != "x$ac_hi"; do
17953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17954 cat >conftest.$ac_ext <<_ACEOF
17955/* confdefs.h. */
17956_ACEOF
17957cat confdefs.h >>conftest.$ac_ext
17958cat >>conftest.$ac_ext <<_ACEOF
17959/* end confdefs.h. */
17960$ac_includes_default
17961int
17962main ()
17963{
17964static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17965test_array [0] = 0
17966
17967 ;
17968 return 0;
17969}
17970_ACEOF
17971rm -f conftest.$ac_objext
17972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17973 (eval $ac_compile) 2>conftest.er1
a848cd7e 17974 ac_status=$?
ac1cb8d3
VS
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
a848cd7e
SC
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
89be85c2
VS
17980 { ac_try='test -z "$ac_c_werror_flag"
17981 || test ! -s conftest.err'
ac1cb8d3
VS
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; } &&
17987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17990 ac_status=$?
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; }; then
17993 ac_hi=$ac_mid
17994else
17995 echo "$as_me: failed program was:" >&5
17996sed 's/^/| /' conftest.$ac_ext >&5
17997
17998ac_lo=`expr '(' $ac_mid ')' + 1`
17999fi
ac1cb8d3 18000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18001done
18002case $ac_lo in
18003?*) ac_cv_sizeof_long_long=$ac_lo;;
18004'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18005See \`config.log' for more details." >&5
18006echo "$as_me: error: cannot compute sizeof (long long), 77
18007See \`config.log' for more details." >&2;}
18008 { (exit 1); exit 1; }; } ;;
18009esac
18010else
18011 if test "$cross_compiling" = yes; then
89be85c2
VS
18012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18013See \`config.log' for more details." >&5
18014echo "$as_me: error: cannot run test program while cross compiling
18015See \`config.log' for more details." >&2;}
a848cd7e
SC
18016 { (exit 1); exit 1; }; }
18017else
18018 cat >conftest.$ac_ext <<_ACEOF
18019/* confdefs.h. */
18020_ACEOF
18021cat confdefs.h >>conftest.$ac_ext
18022cat >>conftest.$ac_ext <<_ACEOF
18023/* end confdefs.h. */
18024$ac_includes_default
18025long longval () { return (long) (sizeof (long long)); }
18026unsigned long ulongval () { return (long) (sizeof (long long)); }
18027#include <stdio.h>
18028#include <stdlib.h>
18029int
18030main ()
18031{
18032
18033 FILE *f = fopen ("conftest.val", "w");
18034 if (! f)
18035 exit (1);
18036 if (((long) (sizeof (long long))) < 0)
18037 {
18038 long i = longval ();
18039 if (i != ((long) (sizeof (long long))))
18040 exit (1);
18041 fprintf (f, "%ld\n", i);
18042 }
18043 else
18044 {
18045 unsigned long i = ulongval ();
18046 if (i != ((long) (sizeof (long long))))
18047 exit (1);
18048 fprintf (f, "%lu\n", i);
18049 }
18050 exit (ferror (f) || fclose (f) != 0);
18051
18052 ;
18053 return 0;
18054}
18055_ACEOF
18056rm -f conftest$ac_exeext
18057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18058 (eval $ac_link) 2>&5
18059 ac_status=$?
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; }; then
18067 ac_cv_sizeof_long_long=`cat conftest.val`
18068else
18069 echo "$as_me: program exited with status $ac_status" >&5
18070echo "$as_me: failed program was:" >&5
18071sed 's/^/| /' conftest.$ac_ext >&5
18072
18073( exit $ac_status )
18074{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18075See \`config.log' for more details." >&5
18076echo "$as_me: error: cannot compute sizeof (long long), 77
18077See \`config.log' for more details." >&2;}
18078 { (exit 1); exit 1; }; }
18079fi
ac1cb8d3 18080rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18081fi
18082fi
18083rm -f conftest.val
18084else
18085 ac_cv_sizeof_long_long=0
18086fi
18087fi
18088echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18089echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18090cat >>confdefs.h <<_ACEOF
18091#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18092_ACEOF
18093
18094
18095 ;;
18096 *-hp-hpux* )
18097 echo "$as_me:$LINENO: checking for long long" >&5
18098echo $ECHO_N "checking for long long... $ECHO_C" >&6
18099if test "${ac_cv_type_long_long+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18101else
18102 cat >conftest.$ac_ext <<_ACEOF
18103/* confdefs.h. */
18104_ACEOF
18105cat confdefs.h >>conftest.$ac_ext
18106cat >>conftest.$ac_ext <<_ACEOF
18107/* end confdefs.h. */
18108$ac_includes_default
18109int
18110main ()
18111{
18112if ((long long *) 0)
18113 return 0;
18114if (sizeof (long long))
18115 return 0;
18116 ;
18117 return 0;
18118}
18119_ACEOF
18120rm -f conftest.$ac_objext
18121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18122 (eval $ac_compile) 2>conftest.er1
a848cd7e 18123 ac_status=$?
ac1cb8d3
VS
18124 grep -v '^ *+' conftest.er1 >conftest.err
18125 rm -f conftest.er1
18126 cat conftest.err >&5
a848cd7e
SC
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } &&
89be85c2
VS
18129 { ac_try='test -z "$ac_c_werror_flag"
18130 || test ! -s conftest.err'
ac1cb8d3
VS
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; } &&
18136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; }; then
18142 ac_cv_type_long_long=yes
18143else
18144 echo "$as_me: failed program was:" >&5
18145sed 's/^/| /' conftest.$ac_ext >&5
18146
18147ac_cv_type_long_long=no
18148fi
ac1cb8d3 18149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18150fi
18151echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18152echo "${ECHO_T}$ac_cv_type_long_long" >&6
18153
18154echo "$as_me:$LINENO: checking size of long long" >&5
18155echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18156if test "${ac_cv_sizeof_long_long+set}" = set; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18158else
18159 if test "$ac_cv_type_long_long" = yes; then
18160 # The cast to unsigned long works around a bug in the HP C Compiler
18161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18163 # This bug is HP SR number 8606223364.
18164 if test "$cross_compiling" = yes; then
18165 # Depending upon the size, compute the lo and hi bounds.
18166cat >conftest.$ac_ext <<_ACEOF
18167/* confdefs.h. */
18168_ACEOF
18169cat confdefs.h >>conftest.$ac_ext
18170cat >>conftest.$ac_ext <<_ACEOF
18171/* end confdefs.h. */
18172$ac_includes_default
18173int
18174main ()
18175{
18176static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18177test_array [0] = 0
18178
18179 ;
18180 return 0;
18181}
18182_ACEOF
18183rm -f conftest.$ac_objext
18184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18185 (eval $ac_compile) 2>conftest.er1
a848cd7e 18186 ac_status=$?
ac1cb8d3
VS
18187 grep -v '^ *+' conftest.er1 >conftest.err
18188 rm -f conftest.er1
18189 cat conftest.err >&5
a848cd7e
SC
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } &&
89be85c2
VS
18192 { ac_try='test -z "$ac_c_werror_flag"
18193 || test ! -s conftest.err'
ac1cb8d3
VS
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 ac_lo=0 ac_mid=0
18206 while :; do
18207 cat >conftest.$ac_ext <<_ACEOF
18208/* confdefs.h. */
18209_ACEOF
18210cat confdefs.h >>conftest.$ac_ext
18211cat >>conftest.$ac_ext <<_ACEOF
18212/* end confdefs.h. */
18213$ac_includes_default
18214int
18215main ()
18216{
18217static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18218test_array [0] = 0
18219
18220 ;
18221 return 0;
18222}
18223_ACEOF
18224rm -f conftest.$ac_objext
18225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18226 (eval $ac_compile) 2>conftest.er1
a848cd7e 18227 ac_status=$?
ac1cb8d3
VS
18228 grep -v '^ *+' conftest.er1 >conftest.err
18229 rm -f conftest.er1
18230 cat conftest.err >&5
a848cd7e
SC
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } &&
89be85c2
VS
18233 { ac_try='test -z "$ac_c_werror_flag"
18234 || test ! -s conftest.err'
ac1cb8d3
VS
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 ac_hi=$ac_mid; break
18247else
18248 echo "$as_me: failed program was:" >&5
18249sed 's/^/| /' conftest.$ac_ext >&5
18250
18251ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18252 if test $ac_lo -le $ac_mid; then
18253 ac_lo= ac_hi=
18254 break
18255 fi
18256 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18257fi
ac1cb8d3 18258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18259 done
18260else
18261 echo "$as_me: failed program was:" >&5
18262sed 's/^/| /' conftest.$ac_ext >&5
18263
18264cat >conftest.$ac_ext <<_ACEOF
18265/* confdefs.h. */
18266_ACEOF
18267cat confdefs.h >>conftest.$ac_ext
18268cat >>conftest.$ac_ext <<_ACEOF
18269/* end confdefs.h. */
18270$ac_includes_default
18271int
18272main ()
18273{
18274static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18275test_array [0] = 0
18276
18277 ;
18278 return 0;
18279}
18280_ACEOF
18281rm -f conftest.$ac_objext
18282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18283 (eval $ac_compile) 2>conftest.er1
a848cd7e 18284 ac_status=$?
ac1cb8d3
VS
18285 grep -v '^ *+' conftest.er1 >conftest.err
18286 rm -f conftest.er1
18287 cat conftest.err >&5
a848cd7e
SC
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
89be85c2
VS
18290 { ac_try='test -z "$ac_c_werror_flag"
18291 || test ! -s conftest.err'
ac1cb8d3
VS
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18303 ac_hi=-1 ac_mid=-1
18304 while :; do
18305 cat >conftest.$ac_ext <<_ACEOF
18306/* confdefs.h. */
18307_ACEOF
18308cat confdefs.h >>conftest.$ac_ext
18309cat >>conftest.$ac_ext <<_ACEOF
18310/* end confdefs.h. */
18311$ac_includes_default
18312int
18313main ()
18314{
18315static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18316test_array [0] = 0
18317
18318 ;
18319 return 0;
18320}
18321_ACEOF
18322rm -f conftest.$ac_objext
18323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18324 (eval $ac_compile) 2>conftest.er1
a848cd7e 18325 ac_status=$?
ac1cb8d3
VS
18326 grep -v '^ *+' conftest.er1 >conftest.err
18327 rm -f conftest.er1
18328 cat conftest.err >&5
a848cd7e
SC
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } &&
89be85c2
VS
18331 { ac_try='test -z "$ac_c_werror_flag"
18332 || test ! -s conftest.err'
ac1cb8d3
VS
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_lo=$ac_mid; break
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18350 if test $ac_mid -le $ac_hi; then
18351 ac_lo= ac_hi=
18352 break
18353 fi
18354 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18355fi
ac1cb8d3 18356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18357 done
18358else
18359 echo "$as_me: failed program was:" >&5
18360sed 's/^/| /' conftest.$ac_ext >&5
18361
18362ac_lo= ac_hi=
18363fi
ac1cb8d3 18364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18365fi
ac1cb8d3 18366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18367# Binary search between lo and hi bounds.
18368while test "x$ac_lo" != "x$ac_hi"; do
18369 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18370 cat >conftest.$ac_ext <<_ACEOF
18371/* confdefs.h. */
18372_ACEOF
18373cat confdefs.h >>conftest.$ac_ext
18374cat >>conftest.$ac_ext <<_ACEOF
18375/* end confdefs.h. */
18376$ac_includes_default
18377int
18378main ()
18379{
18380static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18381test_array [0] = 0
18382
18383 ;
18384 return 0;
18385}
18386_ACEOF
18387rm -f conftest.$ac_objext
18388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18389 (eval $ac_compile) 2>conftest.er1
a848cd7e 18390 ac_status=$?
ac1cb8d3
VS
18391 grep -v '^ *+' conftest.er1 >conftest.err
18392 rm -f conftest.er1
18393 cat conftest.err >&5
a848cd7e
SC
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
89be85c2
VS
18396 { ac_try='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
ac1cb8d3
VS
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 ac_hi=$ac_mid
18410else
18411 echo "$as_me: failed program was:" >&5
18412sed 's/^/| /' conftest.$ac_ext >&5
18413
18414ac_lo=`expr '(' $ac_mid ')' + 1`
18415fi
ac1cb8d3 18416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18417done
18418case $ac_lo in
18419?*) ac_cv_sizeof_long_long=$ac_lo;;
18420'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18421See \`config.log' for more details." >&5
18422echo "$as_me: error: cannot compute sizeof (long long), 77
18423See \`config.log' for more details." >&2;}
18424 { (exit 1); exit 1; }; } ;;
18425esac
18426else
18427 if test "$cross_compiling" = yes; then
89be85c2
VS
18428 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18429See \`config.log' for more details." >&5
18430echo "$as_me: error: cannot run test program while cross compiling
18431See \`config.log' for more details." >&2;}
a848cd7e
SC
18432 { (exit 1); exit 1; }; }
18433else
18434 cat >conftest.$ac_ext <<_ACEOF
18435/* confdefs.h. */
18436_ACEOF
18437cat confdefs.h >>conftest.$ac_ext
18438cat >>conftest.$ac_ext <<_ACEOF
18439/* end confdefs.h. */
18440$ac_includes_default
18441long longval () { return (long) (sizeof (long long)); }
18442unsigned long ulongval () { return (long) (sizeof (long long)); }
18443#include <stdio.h>
18444#include <stdlib.h>
18445int
18446main ()
18447{
18448
18449 FILE *f = fopen ("conftest.val", "w");
18450 if (! f)
18451 exit (1);
18452 if (((long) (sizeof (long long))) < 0)
18453 {
18454 long i = longval ();
18455 if (i != ((long) (sizeof (long long))))
18456 exit (1);
18457 fprintf (f, "%ld\n", i);
18458 }
18459 else
18460 {
18461 unsigned long i = ulongval ();
18462 if (i != ((long) (sizeof (long long))))
18463 exit (1);
18464 fprintf (f, "%lu\n", i);
18465 }
18466 exit (ferror (f) || fclose (f) != 0);
18467
18468 ;
18469 return 0;
18470}
18471_ACEOF
18472rm -f conftest$ac_exeext
18473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18474 (eval $ac_link) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 ac_cv_sizeof_long_long=`cat conftest.val`
18484else
18485 echo "$as_me: program exited with status $ac_status" >&5
18486echo "$as_me: failed program was:" >&5
18487sed 's/^/| /' conftest.$ac_ext >&5
18488
18489( exit $ac_status )
18490{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18491See \`config.log' for more details." >&5
18492echo "$as_me: error: cannot compute sizeof (long long), 77
18493See \`config.log' for more details." >&2;}
18494 { (exit 1); exit 1; }; }
18495fi
ac1cb8d3 18496rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18497fi
18498fi
18499rm -f conftest.val
18500else
18501 ac_cv_sizeof_long_long=0
18502fi
18503fi
18504echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18505echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18506cat >>confdefs.h <<_ACEOF
18507#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18508_ACEOF
18509
18510
18511 if test "$ac_cv_sizeof_long_long" != "0"; then
18512 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18513 fi
18514 ;;
18515 * )
18516 echo "$as_me:$LINENO: checking for long long" >&5
18517echo $ECHO_N "checking for long long... $ECHO_C" >&6
18518if test "${ac_cv_type_long_long+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18520else
18521 cat >conftest.$ac_ext <<_ACEOF
18522/* confdefs.h. */
18523_ACEOF
18524cat confdefs.h >>conftest.$ac_ext
18525cat >>conftest.$ac_ext <<_ACEOF
18526/* end confdefs.h. */
18527$ac_includes_default
18528int
18529main ()
18530{
18531if ((long long *) 0)
18532 return 0;
18533if (sizeof (long long))
18534 return 0;
18535 ;
18536 return 0;
18537}
18538_ACEOF
18539rm -f conftest.$ac_objext
18540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18541 (eval $ac_compile) 2>conftest.er1
a848cd7e 18542 ac_status=$?
ac1cb8d3
VS
18543 grep -v '^ *+' conftest.er1 >conftest.err
18544 rm -f conftest.er1
18545 cat conftest.err >&5
a848cd7e
SC
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
89be85c2
VS
18548 { ac_try='test -z "$ac_c_werror_flag"
18549 || test ! -s conftest.err'
ac1cb8d3
VS
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_cv_type_long_long=yes
18562else
18563 echo "$as_me: failed program was:" >&5
18564sed 's/^/| /' conftest.$ac_ext >&5
18565
18566ac_cv_type_long_long=no
18567fi
ac1cb8d3 18568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18569fi
18570echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18571echo "${ECHO_T}$ac_cv_type_long_long" >&6
18572
18573echo "$as_me:$LINENO: checking size of long long" >&5
18574echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18575if test "${ac_cv_sizeof_long_long+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577else
18578 if test "$ac_cv_type_long_long" = yes; then
18579 # The cast to unsigned long works around a bug in the HP C Compiler
18580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18582 # This bug is HP SR number 8606223364.
18583 if test "$cross_compiling" = yes; then
18584 # Depending upon the size, compute the lo and hi bounds.
18585cat >conftest.$ac_ext <<_ACEOF
18586/* confdefs.h. */
18587_ACEOF
18588cat confdefs.h >>conftest.$ac_ext
18589cat >>conftest.$ac_ext <<_ACEOF
18590/* end confdefs.h. */
18591$ac_includes_default
18592int
18593main ()
18594{
18595static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18596test_array [0] = 0
18597
18598 ;
18599 return 0;
18600}
18601_ACEOF
18602rm -f conftest.$ac_objext
18603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18604 (eval $ac_compile) 2>conftest.er1
a848cd7e 18605 ac_status=$?
ac1cb8d3
VS
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
a848cd7e
SC
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
89be85c2
VS
18611 { ac_try='test -z "$ac_c_werror_flag"
18612 || test ! -s conftest.err'
ac1cb8d3
VS
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; } &&
18618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_lo=0 ac_mid=0
18625 while :; do
18626 cat >conftest.$ac_ext <<_ACEOF
18627/* confdefs.h. */
18628_ACEOF
18629cat confdefs.h >>conftest.$ac_ext
18630cat >>conftest.$ac_ext <<_ACEOF
18631/* end confdefs.h. */
18632$ac_includes_default
18633int
18634main ()
18635{
18636static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18637test_array [0] = 0
18638
18639 ;
18640 return 0;
18641}
18642_ACEOF
18643rm -f conftest.$ac_objext
18644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18645 (eval $ac_compile) 2>conftest.er1
a848cd7e 18646 ac_status=$?
ac1cb8d3
VS
18647 grep -v '^ *+' conftest.er1 >conftest.err
18648 rm -f conftest.er1
18649 cat conftest.err >&5
a848cd7e
SC
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); } &&
89be85c2
VS
18652 { ac_try='test -z "$ac_c_werror_flag"
18653 || test ! -s conftest.err'
ac1cb8d3
VS
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; } &&
18659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_hi=$ac_mid; break
18666else
18667 echo "$as_me: failed program was:" >&5
18668sed 's/^/| /' conftest.$ac_ext >&5
18669
18670ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18671 if test $ac_lo -le $ac_mid; then
18672 ac_lo= ac_hi=
18673 break
18674 fi
18675 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18676fi
ac1cb8d3 18677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18678 done
18679else
18680 echo "$as_me: failed program was:" >&5
18681sed 's/^/| /' conftest.$ac_ext >&5
18682
18683cat >conftest.$ac_ext <<_ACEOF
18684/* confdefs.h. */
18685_ACEOF
18686cat confdefs.h >>conftest.$ac_ext
18687cat >>conftest.$ac_ext <<_ACEOF
18688/* end confdefs.h. */
18689$ac_includes_default
18690int
18691main ()
18692{
18693static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18694test_array [0] = 0
18695
18696 ;
18697 return 0;
18698}
18699_ACEOF
18700rm -f conftest.$ac_objext
18701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18702 (eval $ac_compile) 2>conftest.er1
a848cd7e 18703 ac_status=$?
ac1cb8d3
VS
18704 grep -v '^ *+' conftest.er1 >conftest.err
18705 rm -f conftest.er1
18706 cat conftest.err >&5
a848cd7e
SC
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
89be85c2
VS
18709 { ac_try='test -z "$ac_c_werror_flag"
18710 || test ! -s conftest.err'
ac1cb8d3
VS
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; } &&
18716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18719 ac_status=$?
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 ac_hi=-1 ac_mid=-1
18723 while :; do
18724 cat >conftest.$ac_ext <<_ACEOF
18725/* confdefs.h. */
18726_ACEOF
18727cat confdefs.h >>conftest.$ac_ext
18728cat >>conftest.$ac_ext <<_ACEOF
18729/* end confdefs.h. */
18730$ac_includes_default
18731int
18732main ()
18733{
18734static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18735test_array [0] = 0
18736
18737 ;
18738 return 0;
18739}
18740_ACEOF
18741rm -f conftest.$ac_objext
18742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18743 (eval $ac_compile) 2>conftest.er1
a848cd7e 18744 ac_status=$?
ac1cb8d3
VS
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
a848cd7e
SC
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
89be85c2
VS
18750 { ac_try='test -z "$ac_c_werror_flag"
18751 || test ! -s conftest.err'
ac1cb8d3
VS
18752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753 (eval $ac_try) 2>&5
18754 ac_status=$?
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; } &&
18757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18760 ac_status=$?
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; }; then
18763 ac_lo=$ac_mid; break
18764else
18765 echo "$as_me: failed program was:" >&5
18766sed 's/^/| /' conftest.$ac_ext >&5
18767
18768ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18769 if test $ac_mid -le $ac_hi; then
18770 ac_lo= ac_hi=
18771 break
18772 fi
18773 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18774fi
ac1cb8d3 18775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18776 done
18777else
18778 echo "$as_me: failed program was:" >&5
18779sed 's/^/| /' conftest.$ac_ext >&5
18780
18781ac_lo= ac_hi=
18782fi
ac1cb8d3 18783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18784fi
ac1cb8d3 18785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18786# Binary search between lo and hi bounds.
18787while test "x$ac_lo" != "x$ac_hi"; do
18788 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18789 cat >conftest.$ac_ext <<_ACEOF
18790/* confdefs.h. */
18791_ACEOF
18792cat confdefs.h >>conftest.$ac_ext
18793cat >>conftest.$ac_ext <<_ACEOF
18794/* end confdefs.h. */
18795$ac_includes_default
18796int
18797main ()
18798{
18799static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18800test_array [0] = 0
18801
18802 ;
18803 return 0;
18804}
18805_ACEOF
18806rm -f conftest.$ac_objext
18807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18808 (eval $ac_compile) 2>conftest.er1
a848cd7e 18809 ac_status=$?
ac1cb8d3
VS
18810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
a848cd7e
SC
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
89be85c2
VS
18815 { ac_try='test -z "$ac_c_werror_flag"
18816 || test ! -s conftest.err'
ac1cb8d3
VS
18817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818 (eval $ac_try) 2>&5
18819 ac_status=$?
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; } &&
18822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18825 ac_status=$?
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; }; then
18828 ac_hi=$ac_mid
18829else
18830 echo "$as_me: failed program was:" >&5
18831sed 's/^/| /' conftest.$ac_ext >&5
18832
18833ac_lo=`expr '(' $ac_mid ')' + 1`
18834fi
ac1cb8d3 18835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18836done
18837case $ac_lo in
18838?*) ac_cv_sizeof_long_long=$ac_lo;;
18839'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18840See \`config.log' for more details." >&5
18841echo "$as_me: error: cannot compute sizeof (long long), 77
18842See \`config.log' for more details." >&2;}
18843 { (exit 1); exit 1; }; } ;;
18844esac
18845else
18846 if test "$cross_compiling" = yes; then
89be85c2
VS
18847 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18848See \`config.log' for more details." >&5
18849echo "$as_me: error: cannot run test program while cross compiling
18850See \`config.log' for more details." >&2;}
a848cd7e
SC
18851 { (exit 1); exit 1; }; }
18852else
18853 cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
18859$ac_includes_default
18860long longval () { return (long) (sizeof (long long)); }
18861unsigned long ulongval () { return (long) (sizeof (long long)); }
18862#include <stdio.h>
18863#include <stdlib.h>
18864int
18865main ()
18866{
18867
18868 FILE *f = fopen ("conftest.val", "w");
18869 if (! f)
18870 exit (1);
18871 if (((long) (sizeof (long long))) < 0)
18872 {
18873 long i = longval ();
18874 if (i != ((long) (sizeof (long long))))
18875 exit (1);
18876 fprintf (f, "%ld\n", i);
18877 }
18878 else
18879 {
18880 unsigned long i = ulongval ();
18881 if (i != ((long) (sizeof (long long))))
18882 exit (1);
18883 fprintf (f, "%lu\n", i);
18884 }
18885 exit (ferror (f) || fclose (f) != 0);
18886
18887 ;
18888 return 0;
18889}
18890_ACEOF
18891rm -f conftest$ac_exeext
18892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18893 (eval $ac_link) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 ac_cv_sizeof_long_long=`cat conftest.val`
18903else
18904 echo "$as_me: program exited with status $ac_status" >&5
18905echo "$as_me: failed program was:" >&5
18906sed 's/^/| /' conftest.$ac_ext >&5
18907
18908( exit $ac_status )
18909{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18910See \`config.log' for more details." >&5
18911echo "$as_me: error: cannot compute sizeof (long long), 77
18912See \`config.log' for more details." >&2;}
18913 { (exit 1); exit 1; }; }
18914fi
ac1cb8d3 18915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18916fi
18917fi
18918rm -f conftest.val
18919else
18920 ac_cv_sizeof_long_long=0
18921fi
18922fi
18923echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18924echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18925cat >>confdefs.h <<_ACEOF
18926#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18927_ACEOF
18928
18929
18930esac
18931
18932echo "$as_me:$LINENO: checking size of wchar_t" >&5
18933echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18934if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18936else
18937
18938 if test "$cross_compiling" = yes; then
18939
18940 case "${host}" in
18941 *-pc-msdosdjgpp )
18942 wx_cv_sizeof_wchar_t=0
18943 ;;
18944 * )
18945 wx_cv_sizeof_wchar_t=4
18946 ;;
18947 esac
18948
18949
18950else
18951 cat >conftest.$ac_ext <<_ACEOF
18952/* confdefs.h. */
18953_ACEOF
18954cat confdefs.h >>conftest.$ac_ext
18955cat >>conftest.$ac_ext <<_ACEOF
18956/* end confdefs.h. */
18957
18958 /* DJGPP only has fake wchar_t: */
18959 #ifdef __DJGPP__
18960 # error "fake wchar_t"
18961 #endif
18962 #ifdef HAVE_WCHAR_H
18963 # ifdef __CYGWIN__
18964 # include <stddef.h>
18965 # endif
18966 # include <wchar.h>
18967 #endif
18968 #ifdef HAVE_STDLIB_H
18969 # include <stdlib.h>
18970 #endif
18971 #include <stdio.h>
18972 int main()
18973 {
18974 FILE *f=fopen("conftestval", "w");
18975 if (!f) exit(1);
18976 fprintf(f, "%i", sizeof(wchar_t));
18977 exit(0);
18978 }
18979
18980_ACEOF
18981rm -f conftest$ac_exeext
18982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18983 (eval $ac_link) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; }; then
18992 wx_cv_sizeof_wchar_t=`cat conftestval`
18993else
18994 echo "$as_me: program exited with status $ac_status" >&5
18995echo "$as_me: failed program was:" >&5
18996sed 's/^/| /' conftest.$ac_ext >&5
18997
18998( exit $ac_status )
18999wx_cv_sizeof_wchar_t=0
19000fi
ac1cb8d3 19001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19002fi
19003
19004fi
19005echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
19006echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
19007
19008cat >>confdefs.h <<_ACEOF
19009#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
19010_ACEOF
19011
19012
ba3d13e1
VZ
19013echo "$as_me:$LINENO: checking for va_copy" >&5
19014echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19015if test "${wx_cv_func_va_copy+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19017else
19018
19019 cat >conftest.$ac_ext <<_ACEOF
19020
19021 #include <stdarg.h>
19022 void foo(char *f, ...)
19023 {
19024 va_list ap1, ap2;
19025 va_start(ap1, f);
19026 va_copy(ap2, ap1);
19027 va_end(ap2);
19028 va_end(ap1);
19029 }
5886b072
VZ
19030 int main()
19031 {
b902e639
VZ
19032 foo("hi", 17);
19033 return 0;
5886b072 19034 }
ba3d13e1
VZ
19035_ACEOF
19036rm -f conftest.$ac_objext conftest$ac_exeext
19037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19038 (eval $ac_link) 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
89be85c2
VS
19045 { ac_try='test -z "$ac_c_werror_flag"
19046 || test ! -s conftest.err'
ba3d13e1
VZ
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest$ac_exeext'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; }; then
19058 wx_cv_func_va_copy=yes
19059else
19060 echo "$as_me: failed program was:" >&5
19061sed 's/^/| /' conftest.$ac_ext >&5
19062
19063wx_cv_func_va_copy=no
19064
19065fi
19066rm -f conftest.err conftest.$ac_objext \
19067 conftest$ac_exeext conftest.$ac_ext
19068
19069
19070fi
19071echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19072echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19073
19074if test $wx_cv_func_va_copy = "yes"; then
19075 cat >>confdefs.h <<\_ACEOF
19076#define HAVE_VA_COPY 1
19077_ACEOF
19078
19079else
19080 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19081echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19082if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19084else
19085
19086 if test "$cross_compiling" = yes; then
19087 wx_cv_type_va_list_lvalue=yes
19088
19089else
19090 cat >conftest.$ac_ext <<_ACEOF
19091
19092 #include <stdarg.h>
19093 int foo(char *f, ...)
19094 {
19095 va_list ap1, ap2;
19096 va_start(ap1, f);
19097 ap2 = ap1;
19098 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19099 return 1;
19100 va_end(ap2);
19101 va_end(ap1);
19102 return 0;
19103 }
19104 int main()
19105 {
19106 return foo("hi", 17);
19107 }
19108_ACEOF
19109rm -f conftest$ac_exeext
19110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111 (eval $ac_link) 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 wx_cv_type_va_list_lvalue=yes
19121else
19122 echo "$as_me: program exited with status $ac_status" >&5
19123echo "$as_me: failed program was:" >&5
19124sed 's/^/| /' conftest.$ac_ext >&5
19125
19126( exit $ac_status )
19127wx_cv_type_va_list_lvalue=no
19128fi
19129rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19130fi
19131
19132
19133fi
19134echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19135echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19136
19137 if test $wx_cv_type_va_list_lvalue != "yes"; then
19138 cat >>confdefs.h <<\_ACEOF
19139#define VA_LIST_IS_ARRAY 1
19140_ACEOF
19141
19142 fi
19143fi
19144
a848cd7e
SC
19145# Check whether --enable-largefile or --disable-largefile was given.
19146if test "${enable_largefile+set}" = set; then
19147 enableval="$enable_largefile"
19148
19149fi;
19150if test "$enable_largefile" != no; then
19151 wx_largefile=no
19152
19153 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19154echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19155if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19157else
19158
19159 cat >conftest.$ac_ext <<_ACEOF
19160/* confdefs.h. */
19161_ACEOF
19162cat confdefs.h >>conftest.$ac_ext
19163cat >>conftest.$ac_ext <<_ACEOF
19164/* end confdefs.h. */
19165#define _FILE_OFFSET_BITS 64
19166 #include <sys/types.h>
19167int
19168main ()
19169{
19170typedef struct {
19171 unsigned int field: sizeof(off_t) == 8;
19172} wxlf;
19173
19174 ;
19175 return 0;
19176}
19177_ACEOF
19178rm -f conftest.$ac_objext
19179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19180 (eval $ac_compile) 2>conftest.er1
a848cd7e 19181 ac_status=$?
ac1cb8d3
VS
19182 grep -v '^ *+' conftest.er1 >conftest.err
19183 rm -f conftest.er1
19184 cat conftest.err >&5
a848cd7e
SC
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } &&
89be85c2
VS
19187 { ac_try='test -z "$ac_c_werror_flag"
19188 || test ! -s conftest.err'
ac1cb8d3
VS
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; } &&
19194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; }; then
19200 ac_cv_sys_file_offset_bits=64
19201else
19202 echo "$as_me: failed program was:" >&5
19203sed 's/^/| /' conftest.$ac_ext >&5
19204
19205ac_cv_sys_file_offset_bits=no
19206fi
ac1cb8d3 19207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19208
19209
19210fi
19211echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19212echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19213
19214 if test "$ac_cv_sys_file_offset_bits" != no; then
19215 wx_largefile=yes
19216 cat >>confdefs.h <<_ACEOF
19217#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19218_ACEOF
19219
19220 fi
19221
19222 if test "x$wx_largefile" != "xyes"; then
19223
19224 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19225echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19226if test "${ac_cv_sys_large_files+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19228else
19229
19230 cat >conftest.$ac_ext <<_ACEOF
19231/* confdefs.h. */
19232_ACEOF
19233cat confdefs.h >>conftest.$ac_ext
19234cat >>conftest.$ac_ext <<_ACEOF
19235/* end confdefs.h. */
19236#define _LARGE_FILES 1
19237 #include <sys/types.h>
19238int
19239main ()
19240{
19241typedef struct {
19242 unsigned int field: sizeof(off_t) == 8;
19243} wxlf;
19244
19245 ;
19246 return 0;
19247}
19248_ACEOF
19249rm -f conftest.$ac_objext
19250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19251 (eval $ac_compile) 2>conftest.er1
a848cd7e 19252 ac_status=$?
ac1cb8d3
VS
19253 grep -v '^ *+' conftest.er1 >conftest.err
19254 rm -f conftest.er1
19255 cat conftest.err >&5
a848cd7e
SC
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } &&
89be85c2
VS
19258 { ac_try='test -z "$ac_c_werror_flag"
19259 || test ! -s conftest.err'
ac1cb8d3
VS
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; } &&
19265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19271 ac_cv_sys_large_files=1
19272else
19273 echo "$as_me: failed program was:" >&5
19274sed 's/^/| /' conftest.$ac_ext >&5
19275
19276ac_cv_sys_large_files=no
19277fi
ac1cb8d3 19278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19279
19280
19281fi
19282echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19283echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19284
19285 if test "$ac_cv_sys_large_files" != no; then
19286 wx_largefile=yes
19287 cat >>confdefs.h <<_ACEOF
19288#define _LARGE_FILES $ac_cv_sys_large_files
19289_ACEOF
19290
19291 fi
19292
19293 fi
19294
19295 echo "$as_me:$LINENO: checking if large file support is available" >&5
19296echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19297 if test "x$wx_largefile" = "xyes"; then
19298 cat >>confdefs.h <<\_ACEOF
19299#define HAVE_LARGEFILE_SUPPORT 1
19300_ACEOF
19301
19302 fi
19303 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19304echo "${ECHO_T}$wx_largefile" >&6
19305fi
19306
5b674b9d
DE
19307
19308if test "x$wx_largefile" = "xyes"; then
19309 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19310 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19311 else
19312 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19313 fi
19314 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19315echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19316if test "${ac_cv_sys_largefile_source+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19318else
19319 while :; do
19320 ac_cv_sys_largefile_source=no
19321 cat >conftest.$ac_ext <<_ACEOF
19322/* confdefs.h. */
19323_ACEOF
19324cat confdefs.h >>conftest.$ac_ext
19325cat >>conftest.$ac_ext <<_ACEOF
19326/* end confdefs.h. */
19327#include <stdio.h>
19328int
19329main ()
19330{
19331return !fseeko;
19332 ;
19333 return 0;
19334}
19335_ACEOF
19336rm -f conftest.$ac_objext
19337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19338 (eval $ac_compile) 2>conftest.er1
19339 ac_status=$?
19340 grep -v '^ *+' conftest.er1 >conftest.err
19341 rm -f conftest.er1
19342 cat conftest.err >&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } &&
89be85c2
VS
19345 { ac_try='test -z "$ac_c_werror_flag"
19346 || test ! -s conftest.err'
5294a27e
VZ
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19349 ac_status=$?
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; } &&
19352 { ac_try='test -s conftest.$ac_objext'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 break
19359else
19360 echo "$as_me: failed program was:" >&5
19361sed 's/^/| /' conftest.$ac_ext >&5
19362
19363fi
19364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19365 cat >conftest.$ac_ext <<_ACEOF
19366/* confdefs.h. */
19367_ACEOF
19368cat confdefs.h >>conftest.$ac_ext
19369cat >>conftest.$ac_ext <<_ACEOF
19370/* end confdefs.h. */
19371#define _LARGEFILE_SOURCE 1
19372#include <stdio.h>
19373int
19374main ()
19375{
19376return !fseeko;
19377 ;
19378 return 0;
19379}
19380_ACEOF
19381rm -f conftest.$ac_objext
19382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19383 (eval $ac_compile) 2>conftest.er1
19384 ac_status=$?
19385 grep -v '^ *+' conftest.er1 >conftest.err
19386 rm -f conftest.er1
19387 cat conftest.err >&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } &&
89be85c2
VS
19390 { ac_try='test -z "$ac_c_werror_flag"
19391 || test ! -s conftest.err'
5294a27e
VZ
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; } &&
19397 { ac_try='test -s conftest.$ac_objext'
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; }; then
19403 ac_cv_sys_largefile_source=1; break
19404else
19405 echo "$as_me: failed program was:" >&5
19406sed 's/^/| /' conftest.$ac_ext >&5
19407
19408fi
19409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410 break
19411done
19412fi
19413echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19414echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
19415if test "$ac_cv_sys_largefile_source" != no; then
19416
19417cat >>confdefs.h <<_ACEOF
19418#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19419_ACEOF
19420
19421fi
19422rm -f conftest*
19423
19424# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19425# in glibc 2.1.3, but that breaks too many other things.
19426# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19427echo "$as_me:$LINENO: checking for fseeko" >&5
19428echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
19429if test "${ac_cv_func_fseeko+set}" = set; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431else
19432 cat >conftest.$ac_ext <<_ACEOF
19433/* confdefs.h. */
19434_ACEOF
19435cat confdefs.h >>conftest.$ac_ext
19436cat >>conftest.$ac_ext <<_ACEOF
19437/* end confdefs.h. */
19438#include <stdio.h>
19439int
19440main ()
19441{
19442return fseeko && fseeko (stdin, 0, 0);
19443 ;
19444 return 0;
19445}
19446_ACEOF
19447rm -f conftest.$ac_objext conftest$ac_exeext
19448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19449 (eval $ac_link) 2>conftest.er1
19450 ac_status=$?
19451 grep -v '^ *+' conftest.er1 >conftest.err
19452 rm -f conftest.er1
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
89be85c2
VS
19456 { ac_try='test -z "$ac_c_werror_flag"
19457 || test ! -s conftest.err'
5294a27e
VZ
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest$ac_exeext'
19464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19466 ac_status=$?
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; }; then
19469 ac_cv_func_fseeko=yes
19470else
19471 echo "$as_me: failed program was:" >&5
19472sed 's/^/| /' conftest.$ac_ext >&5
19473
19474ac_cv_func_fseeko=no
19475fi
19476rm -f conftest.err conftest.$ac_objext \
19477 conftest$ac_exeext conftest.$ac_ext
19478fi
19479echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
19480echo "${ECHO_T}$ac_cv_func_fseeko" >&6
19481if test $ac_cv_func_fseeko = yes; then
19482
19483cat >>confdefs.h <<\_ACEOF
19484#define HAVE_FSEEKO 1
19485_ACEOF
19486
19487fi
19488
5b674b9d
DE
19489 if test "$ac_cv_sys_largefile_source" != no; then
19490 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
19491 fi
19492 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
19493fi
19494
19495echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19496echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19497if test "${ac_cv_c_bigendian+set}" = set; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19499else
19500 ac_cv_c_bigendian=unknown
19501# See if sys/param.h defines the BYTE_ORDER macro.
19502cat >conftest.$ac_ext <<_ACEOF
19503/* confdefs.h. */
19504_ACEOF
19505cat confdefs.h >>conftest.$ac_ext
19506cat >>conftest.$ac_ext <<_ACEOF
19507/* end confdefs.h. */
19508#include <sys/types.h>
19509#include <sys/param.h>
19510int
19511main ()
19512{
19513
19514#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19515 bogus endian macros
19516#endif
19517 ;
19518 return 0;
19519}
19520_ACEOF
19521rm -f conftest.$ac_objext
19522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19523 (eval $ac_compile) 2>conftest.er1
a848cd7e 19524 ac_status=$?
ac1cb8d3
VS
19525 grep -v '^ *+' conftest.er1 >conftest.err
19526 rm -f conftest.er1
19527 cat conftest.err >&5
a848cd7e
SC
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } &&
89be85c2
VS
19530 { ac_try='test -z "$ac_c_werror_flag"
19531 || test ! -s conftest.err'
ac1cb8d3
VS
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; } &&
19537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; }; then
19543 # It does; now see whether it defined to BIG_ENDIAN or not.
19544cat >conftest.$ac_ext <<_ACEOF
19545/* confdefs.h. */
19546_ACEOF
19547cat confdefs.h >>conftest.$ac_ext
19548cat >>conftest.$ac_ext <<_ACEOF
19549/* end confdefs.h. */
19550#include <sys/types.h>
19551#include <sys/param.h>
19552int
19553main ()
19554{
19555
19556#if BYTE_ORDER != BIG_ENDIAN
19557 not big endian
19558#endif
19559 ;
19560 return 0;
19561}
19562_ACEOF
19563rm -f conftest.$ac_objext
19564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19565 (eval $ac_compile) 2>conftest.er1
a848cd7e 19566 ac_status=$?
ac1cb8d3
VS
19567 grep -v '^ *+' conftest.er1 >conftest.err
19568 rm -f conftest.er1
19569 cat conftest.err >&5
a848cd7e
SC
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
89be85c2
VS
19572 { ac_try='test -z "$ac_c_werror_flag"
19573 || test ! -s conftest.err'
ac1cb8d3
VS
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19582 ac_status=$?
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; }; then
19585 ac_cv_c_bigendian=yes
19586else
19587 echo "$as_me: failed program was:" >&5
19588sed 's/^/| /' conftest.$ac_ext >&5
19589
19590ac_cv_c_bigendian=no
19591fi
ac1cb8d3 19592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19593else
19594 echo "$as_me: failed program was:" >&5
19595sed 's/^/| /' conftest.$ac_ext >&5
19596
19597fi
ac1cb8d3 19598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19599if test $ac_cv_c_bigendian = unknown; then
19600if test "$cross_compiling" = yes; then
19601 ac_cv_c_bigendian=unknown
19602else
19603 cat >conftest.$ac_ext <<_ACEOF
19604/* confdefs.h. */
19605_ACEOF
19606cat confdefs.h >>conftest.$ac_ext
19607cat >>conftest.$ac_ext <<_ACEOF
19608/* end confdefs.h. */
19609main () {
19610 /* Are we little or big endian? From Harbison&Steele. */
19611 union
19612 {
19613 long l;
19614 char c[sizeof (long)];
19615 } u;
19616 u.l = 1;
19617 exit (u.c[sizeof (long) - 1] == 1);
19618}
19619_ACEOF
19620rm -f conftest$ac_exeext
19621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19622 (eval $ac_link) 2>&5
19623 ac_status=$?
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; }; then
19631 ac_cv_c_bigendian=no
19632else
19633 echo "$as_me: program exited with status $ac_status" >&5
19634echo "$as_me: failed program was:" >&5
19635sed 's/^/| /' conftest.$ac_ext >&5
19636
19637( exit $ac_status )
19638ac_cv_c_bigendian=yes
19639fi
ac1cb8d3 19640rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19641fi
19642fi
19643fi
19644echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19645echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19646if test $ac_cv_c_bigendian = unknown; then
19647 { 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
19648echo "$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;}
19649fi
19650if test $ac_cv_c_bigendian = yes; then
19651 cat >>confdefs.h <<\_ACEOF
19652#define WORDS_BIGENDIAN 1
19653_ACEOF
19654
19655fi
19656
19657
19658ac_ext=cc
19659ac_cpp='$CXXCPP $CPPFLAGS'
19660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19663echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19664echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19665if test -z "$CXXCPP"; then
19666 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
19668else
19669 # Double quotes because CXXCPP needs to be expanded
19670 for CXXCPP in "$CXX -E" "/lib/cpp"
19671 do
19672 ac_preproc_ok=false
19673for ac_cxx_preproc_warn_flag in '' yes
19674do
19675 # Use a header file that comes with gcc, so configuring glibc
19676 # with a fresh cross-compiler works.
19677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19678 # <limits.h> exists even on freestanding compilers.
19679 # On the NeXT, cc -E runs the code through the compiler's parser,
19680 # not just through cpp. "Syntax error" is here to catch this case.
19681 cat >conftest.$ac_ext <<_ACEOF
19682/* confdefs.h. */
19683_ACEOF
19684cat confdefs.h >>conftest.$ac_ext
19685cat >>conftest.$ac_ext <<_ACEOF
19686/* end confdefs.h. */
19687#ifdef __STDC__
19688# include <limits.h>
19689#else
19690# include <assert.h>
19691#endif
ac1cb8d3 19692 Syntax error
a848cd7e
SC
19693_ACEOF
19694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19696 ac_status=$?
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } >/dev/null; then
19702 if test -s conftest.err; then
19703 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19704 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19705 else
19706 ac_cpp_err=
19707 fi
19708else
19709 ac_cpp_err=yes
19710fi
19711if test -z "$ac_cpp_err"; then
19712 :
19713else
19714 echo "$as_me: failed program was:" >&5
19715sed 's/^/| /' conftest.$ac_ext >&5
19716
19717 # Broken: fails on valid input.
19718continue
19719fi
19720rm -f conftest.err conftest.$ac_ext
19721
19722 # OK, works on sane cases. Now check whether non-existent headers
19723 # can be detected and how.
19724 cat >conftest.$ac_ext <<_ACEOF
19725/* confdefs.h. */
19726_ACEOF
19727cat confdefs.h >>conftest.$ac_ext
19728cat >>conftest.$ac_ext <<_ACEOF
19729/* end confdefs.h. */
19730#include <ac_nonexistent.h>
19731_ACEOF
19732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } >/dev/null; then
19740 if test -s conftest.err; then
19741 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19742 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19743 else
19744 ac_cpp_err=
19745 fi
19746else
19747 ac_cpp_err=yes
19748fi
19749if test -z "$ac_cpp_err"; then
19750 # Broken: success on invalid input.
19751continue
19752else
19753 echo "$as_me: failed program was:" >&5
19754sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 # Passes both tests.
19757ac_preproc_ok=:
19758break
19759fi
19760rm -f conftest.err conftest.$ac_ext
19761
19762done
19763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19764rm -f conftest.err conftest.$ac_ext
19765if $ac_preproc_ok; then
19766 break
19767fi
19768
19769 done
19770 ac_cv_prog_CXXCPP=$CXXCPP
19771
19772fi
19773 CXXCPP=$ac_cv_prog_CXXCPP
19774else
19775 ac_cv_prog_CXXCPP=$CXXCPP
19776fi
19777echo "$as_me:$LINENO: result: $CXXCPP" >&5
19778echo "${ECHO_T}$CXXCPP" >&6
19779ac_preproc_ok=false
19780for ac_cxx_preproc_warn_flag in '' yes
19781do
19782 # Use a header file that comes with gcc, so configuring glibc
19783 # with a fresh cross-compiler works.
19784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19785 # <limits.h> exists even on freestanding compilers.
19786 # On the NeXT, cc -E runs the code through the compiler's parser,
19787 # not just through cpp. "Syntax error" is here to catch this case.
19788 cat >conftest.$ac_ext <<_ACEOF
19789/* confdefs.h. */
19790_ACEOF
19791cat confdefs.h >>conftest.$ac_ext
19792cat >>conftest.$ac_ext <<_ACEOF
19793/* end confdefs.h. */
19794#ifdef __STDC__
19795# include <limits.h>
19796#else
19797# include <assert.h>
19798#endif
ac1cb8d3 19799 Syntax error
a848cd7e
SC
19800_ACEOF
19801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } >/dev/null; then
19809 if test -s conftest.err; then
19810 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19811 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19812 else
19813 ac_cpp_err=
19814 fi
19815else
19816 ac_cpp_err=yes
19817fi
19818if test -z "$ac_cpp_err"; then
19819 :
19820else
19821 echo "$as_me: failed program was:" >&5
19822sed 's/^/| /' conftest.$ac_ext >&5
19823
19824 # Broken: fails on valid input.
19825continue
19826fi
19827rm -f conftest.err conftest.$ac_ext
19828
19829 # OK, works on sane cases. Now check whether non-existent headers
19830 # can be detected and how.
19831 cat >conftest.$ac_ext <<_ACEOF
19832/* confdefs.h. */
19833_ACEOF
19834cat confdefs.h >>conftest.$ac_ext
19835cat >>conftest.$ac_ext <<_ACEOF
19836/* end confdefs.h. */
19837#include <ac_nonexistent.h>
19838_ACEOF
19839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19841 ac_status=$?
19842 grep -v '^ *+' conftest.er1 >conftest.err
19843 rm -f conftest.er1
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } >/dev/null; then
19847 if test -s conftest.err; then
19848 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19850 else
19851 ac_cpp_err=
19852 fi
19853else
19854 ac_cpp_err=yes
19855fi
19856if test -z "$ac_cpp_err"; then
19857 # Broken: success on invalid input.
19858continue
19859else
19860 echo "$as_me: failed program was:" >&5
19861sed 's/^/| /' conftest.$ac_ext >&5
19862
19863 # Passes both tests.
19864ac_preproc_ok=:
19865break
19866fi
19867rm -f conftest.err conftest.$ac_ext
19868
19869done
19870# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19871rm -f conftest.err conftest.$ac_ext
19872if $ac_preproc_ok; then
19873 :
19874else
19875 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19876See \`config.log' for more details." >&5
19877echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19878See \`config.log' for more details." >&2;}
19879 { (exit 1); exit 1; }; }
19880fi
19881
19882ac_ext=cc
19883ac_cpp='$CXXCPP $CPPFLAGS'
19884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19887
19888
19889
19890
19891
19892 ac_ext=cc
19893ac_cpp='$CXXCPP $CPPFLAGS'
19894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19897
19898
19899
19900for ac_header in iostream
19901do
19902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19903if eval "test \"\${$as_ac_Header+set}\" = set"; then
19904 echo "$as_me:$LINENO: checking for $ac_header" >&5
19905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19906if eval "test \"\${$as_ac_Header+set}\" = set"; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19908fi
19909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19911else
19912 # Is the header compilable?
19913echo "$as_me:$LINENO: checking $ac_header usability" >&5
19914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19915cat >conftest.$ac_ext <<_ACEOF
19916/* confdefs.h. */
19917_ACEOF
19918cat confdefs.h >>conftest.$ac_ext
19919cat >>conftest.$ac_ext <<_ACEOF
19920/* end confdefs.h. */
19921$ac_includes_default
19922#include <$ac_header>
19923_ACEOF
19924rm -f conftest.$ac_objext
19925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19926 (eval $ac_compile) 2>conftest.er1
a848cd7e 19927 ac_status=$?
ac1cb8d3
VS
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
a848cd7e
SC
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
89be85c2
VS
19933 { ac_try='test -z "$ac_cxx_werror_flag"
19934 || test ! -s conftest.err'
ac1cb8d3
VS
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; } &&
19940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 ac_header_compiler=yes
19947else
19948 echo "$as_me: failed program was:" >&5
19949sed 's/^/| /' conftest.$ac_ext >&5
19950
19951ac_header_compiler=no
19952fi
ac1cb8d3 19953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19955echo "${ECHO_T}$ac_header_compiler" >&6
19956
19957# Is the header present?
19958echo "$as_me:$LINENO: checking $ac_header presence" >&5
19959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19960cat >conftest.$ac_ext <<_ACEOF
19961/* confdefs.h. */
19962_ACEOF
19963cat confdefs.h >>conftest.$ac_ext
19964cat >>conftest.$ac_ext <<_ACEOF
19965/* end confdefs.h. */
19966#include <$ac_header>
19967_ACEOF
19968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19970 ac_status=$?
19971 grep -v '^ *+' conftest.er1 >conftest.err
19972 rm -f conftest.er1
19973 cat conftest.err >&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } >/dev/null; then
19976 if test -s conftest.err; then
19977 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19978 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19979 else
19980 ac_cpp_err=
19981 fi
19982else
19983 ac_cpp_err=yes
19984fi
19985if test -z "$ac_cpp_err"; then
19986 ac_header_preproc=yes
19987else
19988 echo "$as_me: failed program was:" >&5
19989sed 's/^/| /' conftest.$ac_ext >&5
19990
19991 ac_header_preproc=no
19992fi
19993rm -f conftest.err conftest.$ac_ext
19994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19995echo "${ECHO_T}$ac_header_preproc" >&6
19996
19997# So? What about this header?
ac1cb8d3
VS
19998case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19999 yes:no: )
a848cd7e
SC
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20001echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20003echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20004 ac_header_preproc=yes
a848cd7e 20005 ;;
ac1cb8d3 20006 no:yes:* )
a848cd7e
SC
20007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20012echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20014echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20016echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20018echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20019 (
20020 cat <<\_ASBOX
ac1cb8d3
VS
20021## ----------------------------------------- ##
20022## Report this to wx-dev@lists.wxwidgets.org ##
20023## ----------------------------------------- ##
a848cd7e
SC
20024_ASBOX
20025 ) |
20026 sed "s/^/$as_me: WARNING: /" >&2
20027 ;;
20028esac
20029echo "$as_me:$LINENO: checking for $ac_header" >&5
20030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20031if eval "test \"\${$as_ac_Header+set}\" = set"; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20033else
ac1cb8d3 20034 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20035fi
20036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20038
20039fi
20040if test `eval echo '${'$as_ac_Header'}'` = yes; then
20041 cat >>confdefs.h <<_ACEOF
20042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20043_ACEOF
20044
20045fi
20046
20047done
20048
20049
20050 if test "$ac_cv_header_iostream" = "yes" ; then
20051 :
20052 else
20053 cat >>confdefs.h <<\_ACEOF
20054#define wxUSE_IOSTREAMH 1
20055_ACEOF
20056
20057 fi
20058
20059 ac_ext=c
20060ac_cpp='$CPP $CPPFLAGS'
20061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20063ac_compiler_gnu=$ac_cv_c_compiler_gnu
20064
20065
20066
20067
20068 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20069echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20070if test "${wx_cv_cpp_bool+set}" = set; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20072else
20073
20074
20075
20076 ac_ext=cc
20077ac_cpp='$CXXCPP $CPPFLAGS'
20078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20081
20082
20083 cat >conftest.$ac_ext <<_ACEOF
20084/* confdefs.h. */
20085_ACEOF
20086cat confdefs.h >>conftest.$ac_ext
20087cat >>conftest.$ac_ext <<_ACEOF
20088/* end confdefs.h. */
20089
20090
20091int
20092main ()
20093{
20094
20095 bool b = true;
20096
20097 return 0;
20098
20099 ;
20100 return 0;
20101}
20102_ACEOF
20103rm -f conftest.$ac_objext
20104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20105 (eval $ac_compile) 2>conftest.er1
a848cd7e 20106 ac_status=$?
ac1cb8d3
VS
20107 grep -v '^ *+' conftest.er1 >conftest.err
20108 rm -f conftest.er1
20109 cat conftest.err >&5
a848cd7e
SC
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
89be85c2
VS
20112 { ac_try='test -z "$ac_cxx_werror_flag"
20113 || test ! -s conftest.err'
ac1cb8d3
VS
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; } &&
20119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20122 ac_status=$?
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20125
20126 wx_cv_cpp_bool=yes
20127
20128else
20129 echo "$as_me: failed program was:" >&5
20130sed 's/^/| /' conftest.$ac_ext >&5
20131
20132
20133 wx_cv_cpp_bool=no
20134
20135
20136fi
ac1cb8d3 20137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20138
20139 ac_ext=c
20140ac_cpp='$CPP $CPPFLAGS'
20141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20143ac_compiler_gnu=$ac_cv_c_compiler_gnu
20144
20145
20146fi
20147echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20148echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20149
20150 if test "$wx_cv_cpp_bool" = "yes"; then
20151 cat >>confdefs.h <<\_ACEOF
20152#define HAVE_BOOL 1
20153_ACEOF
20154
20155 fi
20156
20157
20158
20159 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20160echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20161if test "${wx_cv_explicit+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20163else
20164
20165
20166
20167 ac_ext=cc
20168ac_cpp='$CXXCPP $CPPFLAGS'
20169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20172
20173
20174 cat >conftest.$ac_ext <<_ACEOF
20175/* confdefs.h. */
20176_ACEOF
20177cat confdefs.h >>conftest.$ac_ext
20178cat >>conftest.$ac_ext <<_ACEOF
20179/* end confdefs.h. */
20180
20181 class Foo { public: explicit Foo(int) {} };
20182
20183int
20184main ()
20185{
20186
20187 return 0;
20188
20189 ;
20190 return 0;
20191}
20192_ACEOF
20193rm -f conftest.$ac_objext
20194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20195 (eval $ac_compile) 2>conftest.er1
a848cd7e 20196 ac_status=$?
ac1cb8d3
VS
20197 grep -v '^ *+' conftest.er1 >conftest.err
20198 rm -f conftest.er1
20199 cat conftest.err >&5
a848cd7e
SC
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } &&
89be85c2
VS
20202 { ac_try='test -z "$ac_cxx_werror_flag"
20203 || test ! -s conftest.err'
ac1cb8d3
VS
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; } &&
20209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211 (eval $ac_try) 2>&5
20212 ac_status=$?
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); }; }; then
20215
20216 cat >conftest.$ac_ext <<_ACEOF
20217/* confdefs.h. */
20218_ACEOF
20219cat confdefs.h >>conftest.$ac_ext
20220cat >>conftest.$ac_ext <<_ACEOF
20221/* end confdefs.h. */
20222
20223 class Foo { public: explicit Foo(int) {} };
20224 static void TakeFoo(const Foo& foo) { }
20225
20226int
20227main ()
20228{
20229
20230 TakeFoo(17);
20231 return 0;
20232
20233 ;
20234 return 0;
20235}
20236_ACEOF
20237rm -f conftest.$ac_objext
20238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20239 (eval $ac_compile) 2>conftest.er1
a848cd7e 20240 ac_status=$?
ac1cb8d3
VS
20241 grep -v '^ *+' conftest.er1 >conftest.err
20242 rm -f conftest.er1
20243 cat conftest.err >&5
a848cd7e
SC
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } &&
89be85c2
VS
20246 { ac_try='test -z "$ac_cxx_werror_flag"
20247 || test ! -s conftest.err'
ac1cb8d3
VS
20248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249 (eval $ac_try) 2>&5
20250 ac_status=$?
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; } &&
20253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; }; then
20259 wx_cv_explicit=no
20260else
20261 echo "$as_me: failed program was:" >&5
20262sed 's/^/| /' conftest.$ac_ext >&5
20263
20264wx_cv_explicit=yes
20265
20266fi
ac1cb8d3 20267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20268
20269else
20270 echo "$as_me: failed program was:" >&5
20271sed 's/^/| /' conftest.$ac_ext >&5
20272
20273wx_cv_explicit=no
20274
20275fi
ac1cb8d3 20276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20277
20278 ac_ext=c
20279ac_cpp='$CPP $CPPFLAGS'
20280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20282ac_compiler_gnu=$ac_cv_c_compiler_gnu
20283
20284
20285fi
20286echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20287echo "${ECHO_T}$wx_cv_explicit" >&6
20288
20289 if test "$wx_cv_explicit" = "yes"; then
20290 cat >>confdefs.h <<\_ACEOF
20291#define HAVE_EXPLICIT 1
20292_ACEOF
20293
20294 fi
20295
20296
20297echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20298echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20299if test "${ac_cv_cxx_const_cast+set}" = set; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
20301else
20302
20303
20304 ac_ext=cc
20305ac_cpp='$CXXCPP $CPPFLAGS'
20306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20309
20310 cat >conftest.$ac_ext <<_ACEOF
20311/* confdefs.h. */
20312_ACEOF
20313cat confdefs.h >>conftest.$ac_ext
20314cat >>conftest.$ac_ext <<_ACEOF
20315/* end confdefs.h. */
20316
20317int
20318main ()
20319{
20320int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20321 ;
20322 return 0;
20323}
20324_ACEOF
20325rm -f conftest.$ac_objext
20326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20327 (eval $ac_compile) 2>conftest.er1
a848cd7e 20328 ac_status=$?
ac1cb8d3
VS
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
a848cd7e
SC
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } &&
89be85c2
VS
20334 { ac_try='test -z "$ac_cxx_werror_flag"
20335 || test ! -s conftest.err'
ac1cb8d3
VS
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; } &&
20341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; }; then
20347 ac_cv_cxx_const_cast=yes
20348else
20349 echo "$as_me: failed program was:" >&5
20350sed 's/^/| /' conftest.$ac_ext >&5
20351
20352ac_cv_cxx_const_cast=no
20353fi
ac1cb8d3 20354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20355 ac_ext=c
20356ac_cpp='$CPP $CPPFLAGS'
20357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20359ac_compiler_gnu=$ac_cv_c_compiler_gnu
20360
20361
20362fi
20363echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20364echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20365if test "$ac_cv_cxx_const_cast" = yes; then
20366
20367cat >>confdefs.h <<\_ACEOF
20368#define HAVE_CONST_CAST
20369_ACEOF
20370
20371fi
20372
7714864e
RL
20373echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20374echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20375if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377else
20378
20379
20380 ac_ext=cc
20381ac_cpp='$CXXCPP $CPPFLAGS'
20382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20385
20386 cat >conftest.$ac_ext <<_ACEOF
20387/* confdefs.h. */
20388_ACEOF
20389cat confdefs.h >>conftest.$ac_ext
20390cat >>conftest.$ac_ext <<_ACEOF
20391/* end confdefs.h. */
20392#include <typeinfo>
20393class Base { public : Base () {} virtual void f () = 0;};
20394class Derived : public Base { public : Derived () {} virtual void f () {} };
20395class Unrelated { public : Unrelated () {} };
20396int g (Unrelated&) { return 0; }
20397int
20398main ()
20399{
20400
20401Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
20402 ;
20403 return 0;
20404}
20405_ACEOF
20406rm -f conftest.$ac_objext
20407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20408 (eval $ac_compile) 2>conftest.er1
20409 ac_status=$?
20410 grep -v '^ *+' conftest.er1 >conftest.err
20411 rm -f conftest.er1
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } &&
89be85c2
VS
20415 { ac_try='test -z "$ac_cxx_werror_flag"
20416 || test ! -s conftest.err'
7714864e
RL
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; } &&
20422 { ac_try='test -s conftest.$ac_objext'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; }; then
20428 ac_cv_cxx_reinterpret_cast=yes
20429else
20430 echo "$as_me: failed program was:" >&5
20431sed 's/^/| /' conftest.$ac_ext >&5
20432
20433ac_cv_cxx_reinterpret_cast=no
20434fi
20435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20436 ac_ext=c
20437ac_cpp='$CPP $CPPFLAGS'
20438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440ac_compiler_gnu=$ac_cv_c_compiler_gnu
20441
20442
20443fi
20444echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
20445echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
20446if test "$ac_cv_cxx_reinterpret_cast" = yes; then
20447
20448cat >>confdefs.h <<\_ACEOF
20449#define HAVE_REINTERPRET_CAST
20450_ACEOF
20451
20452fi
20453
a848cd7e
SC
20454echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
20455echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
20456if test "${ac_cv_cxx_static_cast+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20458else
20459
20460
20461 ac_ext=cc
20462ac_cpp='$CXXCPP $CPPFLAGS'
20463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20466
20467 cat >conftest.$ac_ext <<_ACEOF
20468/* confdefs.h. */
20469_ACEOF
20470cat confdefs.h >>conftest.$ac_ext
20471cat >>conftest.$ac_ext <<_ACEOF
20472/* end confdefs.h. */
20473#include <typeinfo>
20474class Base { public : Base () {} virtual void f () = 0; };
20475class Derived : public Base { public : Derived () {} virtual void f () {} };
20476int g (Derived&) { return 0; }
20477int
20478main ()
20479{
20480
20481Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
20482 ;
20483 return 0;
20484}
20485_ACEOF
20486rm -f conftest.$ac_objext
20487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20488 (eval $ac_compile) 2>conftest.er1
a848cd7e 20489 ac_status=$?
ac1cb8d3
VS
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
a848cd7e
SC
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
89be85c2
VS
20495 { ac_try='test -z "$ac_cxx_werror_flag"
20496 || test ! -s conftest.err'
ac1cb8d3
VS
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; } &&
20502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_cv_cxx_static_cast=yes
20509else
20510 echo "$as_me: failed program was:" >&5
20511sed 's/^/| /' conftest.$ac_ext >&5
20512
20513ac_cv_cxx_static_cast=no
20514fi
ac1cb8d3 20515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20516 ac_ext=c
20517ac_cpp='$CPP $CPPFLAGS'
20518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20520ac_compiler_gnu=$ac_cv_c_compiler_gnu
20521
20522
20523fi
20524echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
20525echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
20526if test "$ac_cv_cxx_static_cast" = yes; then
20527
20528cat >>confdefs.h <<\_ACEOF
20529#define HAVE_STATIC_CAST
20530_ACEOF
20531
20532fi
20533
20534
20535if test "$wxUSE_STL" = "yes"; then
20536 ac_ext=cc
20537ac_cpp='$CXXCPP $CPPFLAGS'
20538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20541
20542
20543 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
20544echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
20545 cat >conftest.$ac_ext <<_ACEOF
20546/* confdefs.h. */
20547_ACEOF
20548cat confdefs.h >>conftest.$ac_ext
20549cat >>conftest.$ac_ext <<_ACEOF
20550/* end confdefs.h. */
20551#include <string>
20552 #include <functional>
20553 #include <algorithm>
20554 #include <vector>
20555 #include <list>
20556int
20557main ()
20558{
20559std::vector<int> moo;
20560 std::list<int> foo;
20561 std::vector<int>::iterator it =
20562 std::find_if(moo.begin(), moo.end(),
20563 std::bind2nd(std::less<int>(), 3));
20564 ;
20565 return 0;
20566}
20567_ACEOF
20568rm -f conftest.$ac_objext
20569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20570 (eval $ac_compile) 2>conftest.er1
a848cd7e 20571 ac_status=$?
ac1cb8d3
VS
20572 grep -v '^ *+' conftest.er1 >conftest.err
20573 rm -f conftest.er1
20574 cat conftest.err >&5
a848cd7e
SC
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } &&
89be85c2
VS
20577 { ac_try='test -z "$ac_cxx_werror_flag"
20578 || test ! -s conftest.err'
ac1cb8d3
VS
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; } &&
20584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586 (eval $ac_try) 2>&5
20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; }; then
20590 echo "$as_me:$LINENO: result: yes" >&5
20591echo "${ECHO_T}yes" >&6
20592else
20593 echo "$as_me: failed program was:" >&5
20594sed 's/^/| /' conftest.$ac_ext >&5
20595
20596echo "$as_me:$LINENO: result: no" >&5
20597echo "${ECHO_T}no" >&6
20598 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
20599echo "$as_me: error: Basic STL functionality missing" >&2;}
20600 { (exit 1); exit 1; }; }
20601fi
ac1cb8d3 20602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20603
20604 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
20605echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
20606 cat >conftest.$ac_ext <<_ACEOF
20607/* confdefs.h. */
20608_ACEOF
20609cat confdefs.h >>conftest.$ac_ext
20610cat >>conftest.$ac_ext <<_ACEOF
20611/* end confdefs.h. */
20612#include <string>
20613int
20614main ()
20615{
20616std::wstring foo;
20617 ;
20618 return 0;
20619}
20620_ACEOF
20621rm -f conftest.$ac_objext
20622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20623 (eval $ac_compile) 2>conftest.er1
a848cd7e 20624 ac_status=$?
ac1cb8d3
VS
20625 grep -v '^ *+' conftest.er1 >conftest.err
20626 rm -f conftest.er1
20627 cat conftest.err >&5
a848cd7e
SC
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } &&
89be85c2
VS
20630 { ac_try='test -z "$ac_cxx_werror_flag"
20631 || test ! -s conftest.err'
ac1cb8d3
VS
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; } &&
20637 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 echo "$as_me:$LINENO: result: yes" >&5
20644echo "${ECHO_T}yes" >&6
20645 cat >>confdefs.h <<\_ACEOF
20646#define HAVE_STD_WSTRING 1
20647_ACEOF
20648
20649else
20650 echo "$as_me: failed program was:" >&5
20651sed 's/^/| /' conftest.$ac_ext >&5
20652
20653echo "$as_me:$LINENO: result: no" >&5
20654echo "${ECHO_T}no" >&6
20655fi
ac1cb8d3 20656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20657
20658 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
20659echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
20660 cat >conftest.$ac_ext <<_ACEOF
20661/* confdefs.h. */
20662_ACEOF
20663cat confdefs.h >>conftest.$ac_ext
20664cat >>conftest.$ac_ext <<_ACEOF
20665/* end confdefs.h. */
20666#include <string>
20667int
20668main ()
20669{
20670std::string foo, bar;
20671 foo.compare(bar);
20672 foo.compare(1, 1, bar);
20673 foo.compare(1, 1, bar, 1, 1);
20674 foo.compare("");
20675 foo.compare(1, 1, "");
20676 foo.compare(1, 1, "", 2);
20677 ;
20678 return 0;
20679}
20680_ACEOF
20681rm -f conftest.$ac_objext
20682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20683 (eval $ac_compile) 2>conftest.er1
a848cd7e 20684 ac_status=$?
ac1cb8d3
VS
20685 grep -v '^ *+' conftest.er1 >conftest.err
20686 rm -f conftest.er1
20687 cat conftest.err >&5
a848cd7e
SC
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } &&
89be85c2
VS
20690 { ac_try='test -z "$ac_cxx_werror_flag"
20691 || test ! -s conftest.err'
ac1cb8d3
VS
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20694 ac_status=$?
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; } &&
20697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; }; then
20703 echo "$as_me:$LINENO: result: yes" >&5
20704echo "${ECHO_T}yes" >&6
20705 cat >>confdefs.h <<\_ACEOF
20706#define HAVE_STD_STRING_COMPARE 1
20707_ACEOF
20708
20709else
20710 echo "$as_me: failed program was:" >&5
20711sed 's/^/| /' conftest.$ac_ext >&5
20712
20713echo "$as_me:$LINENO: result: no" >&5
20714echo "${ECHO_T}no" >&6
20715fi
ac1cb8d3 20716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20717
20718 if test "${ac_cv_header_hash_map+set}" = set; then
20719 echo "$as_me:$LINENO: checking for hash_map" >&5
20720echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20721if test "${ac_cv_header_hash_map+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20723fi
20724echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20725echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20726else
20727 # Is the header compilable?
20728echo "$as_me:$LINENO: checking hash_map usability" >&5
20729echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
20730cat >conftest.$ac_ext <<_ACEOF
20731/* confdefs.h. */
20732_ACEOF
20733cat confdefs.h >>conftest.$ac_ext
20734cat >>conftest.$ac_ext <<_ACEOF
20735/* end confdefs.h. */
20736$ac_includes_default
20737#include <hash_map>
20738_ACEOF
20739rm -f conftest.$ac_objext
20740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20741 (eval $ac_compile) 2>conftest.er1
bdcade0a 20742 ac_status=$?
ac1cb8d3
VS
20743 grep -v '^ *+' conftest.er1 >conftest.err
20744 rm -f conftest.er1
20745 cat conftest.err >&5
bdcade0a
MB
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } &&
89be85c2
VS
20748 { ac_try='test -z "$ac_cxx_werror_flag"
20749 || test ! -s conftest.err'
ac1cb8d3
VS
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; } &&
20755 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; }; then
20761 ac_header_compiler=yes
20762else
20763 echo "$as_me: failed program was:" >&5
20764sed 's/^/| /' conftest.$ac_ext >&5
20765
20766ac_header_compiler=no
20767fi
ac1cb8d3 20768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20769echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20770echo "${ECHO_T}$ac_header_compiler" >&6
20771
20772# Is the header present?
20773echo "$as_me:$LINENO: checking hash_map presence" >&5
20774echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20775cat >conftest.$ac_ext <<_ACEOF
20776/* confdefs.h. */
20777_ACEOF
20778cat confdefs.h >>conftest.$ac_ext
20779cat >>conftest.$ac_ext <<_ACEOF
20780/* end confdefs.h. */
20781#include <hash_map>
20782_ACEOF
20783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20785 ac_status=$?
20786 grep -v '^ *+' conftest.er1 >conftest.err
20787 rm -f conftest.er1
20788 cat conftest.err >&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } >/dev/null; then
20791 if test -s conftest.err; then
20792 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20793 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20794 else
20795 ac_cpp_err=
20796 fi
20797else
20798 ac_cpp_err=yes
20799fi
20800if test -z "$ac_cpp_err"; then
20801 ac_header_preproc=yes
20802else
20803 echo "$as_me: failed program was:" >&5
20804sed 's/^/| /' conftest.$ac_ext >&5
20805
20806 ac_header_preproc=no
20807fi
20808rm -f conftest.err conftest.$ac_ext
20809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20810echo "${ECHO_T}$ac_header_preproc" >&6
20811
20812# So? What about this header?
ac1cb8d3
VS
20813case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20814 yes:no: )
bdcade0a
MB
20815 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20816echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20817 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20818echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20819 ac_header_preproc=yes
bdcade0a 20820 ;;
ac1cb8d3 20821 no:yes:* )
bdcade0a
MB
20822 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20823echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20824 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20825echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20827echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20829echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20830 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20831echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20832 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20833echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20834 (
20835 cat <<\_ASBOX
ac1cb8d3
VS
20836## ----------------------------------------- ##
20837## Report this to wx-dev@lists.wxwidgets.org ##
20838## ----------------------------------------- ##
bdcade0a
MB
20839_ASBOX
20840 ) |
20841 sed "s/^/$as_me: WARNING: /" >&2
20842 ;;
20843esac
20844echo "$as_me:$LINENO: checking for hash_map" >&5
20845echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20846if test "${ac_cv_header_hash_map+set}" = set; then
20847 echo $ECHO_N "(cached) $ECHO_C" >&6
20848else
20849 ac_cv_header_hash_map=$ac_header_preproc
20850fi
20851echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20852echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20853
20854fi
20855if test $ac_cv_header_hash_map = yes; then
20856 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20857echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20858 cat >conftest.$ac_ext <<_ACEOF
20859/* confdefs.h. */
20860_ACEOF
20861cat confdefs.h >>conftest.$ac_ext
20862cat >>conftest.$ac_ext <<_ACEOF
20863/* end confdefs.h. */
20864#include <hash_map>
20865 #include <hash_set>
20866int
20867main ()
20868{
20869std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20870 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20871 ;
20872 return 0;
20873}
20874_ACEOF
20875rm -f conftest.$ac_objext
20876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20877 (eval $ac_compile) 2>conftest.er1
bdcade0a 20878 ac_status=$?
ac1cb8d3
VS
20879 grep -v '^ *+' conftest.er1 >conftest.err
20880 rm -f conftest.er1
20881 cat conftest.err >&5
bdcade0a
MB
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } &&
89be85c2
VS
20884 { ac_try='test -z "$ac_cxx_werror_flag"
20885 || test ! -s conftest.err'
ac1cb8d3
VS
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; } &&
20891 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20894 ac_status=$?
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; }; then
20897 echo "$as_me:$LINENO: result: yes" >&5
20898echo "${ECHO_T}yes" >&6
20899 cat >>confdefs.h <<\_ACEOF
20900#define HAVE_HASH_MAP 1
20901_ACEOF
20902
20903 cat >>confdefs.h <<\_ACEOF
20904#define HAVE_STD_HASH_MAP 1
20905_ACEOF
20906
20907else
20908 echo "$as_me: failed program was:" >&5
20909sed 's/^/| /' conftest.$ac_ext >&5
20910
20911echo "$as_me:$LINENO: result: no" >&5
20912echo "${ECHO_T}no" >&6
20913fi
ac1cb8d3 20914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20915
20916fi
20917
20918
20919
20920 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20921 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20922echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20923if test "${ac_cv_header_ext_hash_map+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925fi
20926echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20927echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20928else
20929 # Is the header compilable?
20930echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20931echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20932cat >conftest.$ac_ext <<_ACEOF
20933/* confdefs.h. */
20934_ACEOF
20935cat confdefs.h >>conftest.$ac_ext
20936cat >>conftest.$ac_ext <<_ACEOF
20937/* end confdefs.h. */
20938$ac_includes_default
20939#include <ext/hash_map>
20940_ACEOF
20941rm -f conftest.$ac_objext
20942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20943 (eval $ac_compile) 2>conftest.er1
bdcade0a 20944 ac_status=$?
ac1cb8d3
VS
20945 grep -v '^ *+' conftest.er1 >conftest.err
20946 rm -f conftest.er1
20947 cat conftest.err >&5
bdcade0a
MB
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } &&
89be85c2
VS
20950 { ac_try='test -z "$ac_cxx_werror_flag"
20951 || test ! -s conftest.err'
ac1cb8d3
VS
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; } &&
20957 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; }; then
20963 ac_header_compiler=yes
20964else
20965 echo "$as_me: failed program was:" >&5
20966sed 's/^/| /' conftest.$ac_ext >&5
20967
20968ac_header_compiler=no
20969fi
ac1cb8d3 20970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20971echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20972echo "${ECHO_T}$ac_header_compiler" >&6
20973
20974# Is the header present?
20975echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20976echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20977cat >conftest.$ac_ext <<_ACEOF
20978/* confdefs.h. */
20979_ACEOF
20980cat confdefs.h >>conftest.$ac_ext
20981cat >>conftest.$ac_ext <<_ACEOF
20982/* end confdefs.h. */
20983#include <ext/hash_map>
20984_ACEOF
20985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } >/dev/null; then
20993 if test -s conftest.err; then
20994 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20995 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20996 else
20997 ac_cpp_err=
20998 fi
20999else
21000 ac_cpp_err=yes
21001fi
21002if test -z "$ac_cpp_err"; then
21003 ac_header_preproc=yes
21004else
21005 echo "$as_me: failed program was:" >&5
21006sed 's/^/| /' conftest.$ac_ext >&5
21007
21008 ac_header_preproc=no
21009fi
21010rm -f conftest.err conftest.$ac_ext
21011echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21012echo "${ECHO_T}$ac_header_preproc" >&6
21013
21014# So? What about this header?
ac1cb8d3
VS
21015case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21016 yes:no: )
bdcade0a
MB
21017 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21018echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21019 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21020echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21021 ac_header_preproc=yes
bdcade0a 21022 ;;
ac1cb8d3 21023 no:yes:* )
bdcade0a
MB
21024 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21025echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21026 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21027echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21028 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21029echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21030 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21031echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21032 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21033echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21034 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21035echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21036 (
21037 cat <<\_ASBOX
ac1cb8d3
VS
21038## ----------------------------------------- ##
21039## Report this to wx-dev@lists.wxwidgets.org ##
21040## ----------------------------------------- ##
bdcade0a
MB
21041_ASBOX
21042 ) |
21043 sed "s/^/$as_me: WARNING: /" >&2
21044 ;;
21045esac
21046echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21047echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21048if test "${ac_cv_header_ext_hash_map+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21050else
21051 ac_cv_header_ext_hash_map=$ac_header_preproc
21052fi
21053echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21054echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21055
21056fi
21057if test $ac_cv_header_ext_hash_map = yes; then
21058 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21059echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21060 cat >conftest.$ac_ext <<_ACEOF
21061/* confdefs.h. */
21062_ACEOF
21063cat confdefs.h >>conftest.$ac_ext
21064cat >>conftest.$ac_ext <<_ACEOF
21065/* end confdefs.h. */
21066#include <ext/hash_map>
21067 #include <ext/hash_set>
21068int
21069main ()
21070{
21071__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21072 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21073 ;
21074 return 0;
21075}
21076_ACEOF
21077rm -f conftest.$ac_objext
21078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21079 (eval $ac_compile) 2>conftest.er1
bdcade0a 21080 ac_status=$?
ac1cb8d3
VS
21081 grep -v '^ *+' conftest.er1 >conftest.err
21082 rm -f conftest.er1
21083 cat conftest.err >&5
bdcade0a
MB
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } &&
89be85c2
VS
21086 { ac_try='test -z "$ac_cxx_werror_flag"
21087 || test ! -s conftest.err'
ac1cb8d3
VS
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21090 ac_status=$?
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; } &&
21093 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; }; then
21099 echo "$as_me:$LINENO: result: yes" >&5
21100echo "${ECHO_T}yes" >&6
21101 cat >>confdefs.h <<\_ACEOF
21102#define HAVE_EXT_HASH_MAP 1
21103_ACEOF
21104
21105 cat >>confdefs.h <<\_ACEOF
21106#define HAVE_GNU_CXX_HASH_MAP 1
21107_ACEOF
21108
21109else
21110 echo "$as_me: failed program was:" >&5
21111sed 's/^/| /' conftest.$ac_ext >&5
21112
21113echo "$as_me:$LINENO: result: no" >&5
21114echo "${ECHO_T}no" >&6
21115fi
ac1cb8d3 21116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21117
21118fi
21119
21120
a848cd7e
SC
21121
21122 ac_ext=c
21123ac_cpp='$CPP $CPPFLAGS'
21124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21126ac_compiler_gnu=$ac_cv_c_compiler_gnu
21127
21128fi
21129
21130
21131SEARCH_INCLUDE="\
21132 /usr/local/include \
21133 \
21134 /usr/Motif-2.1/include \
21135 /usr/Motif-1.2/include \
21136 /usr/include/Motif1.2 \
21137 /opt/xpm/include/X11 \
21138 /opt/GBxpm/include/ \
21139 /opt/GBxpm/X11/include/ \
21140 \
21141 /usr/dt/include \
21142 /usr/openwin/include \
21143 \
21144 /usr/include/Xm \
21145 \
21146 /usr/X11R6/include \
21147 /usr/X11R6.4/include \
21148 /usr/X11R5/include \
21149 /usr/X11R4/include \
21150 \
21151 /usr/include/X11R6 \
21152 /usr/include/X11R5 \
21153 /usr/include/X11R4 \
21154 \
21155 /usr/local/X11R6/include \
21156 /usr/local/X11R5/include \
21157 /usr/local/X11R4/include \
21158 \
21159 /usr/local/include/X11R6 \
21160 /usr/local/include/X11R5 \
21161 /usr/local/include/X11R4 \
21162 \
21163 /usr/X11/include \
21164 /usr/include/X11 \
21165 /usr/local/X11/include \
21166 /usr/local/include/X11 \
21167 \
21168 /usr/X386/include \
21169 /usr/x386/include \
21170 /usr/XFree86/include/X11 \
21171 \
21172 X:/XFree86/include \
21173 X:/XFree86/include/X11 \
21174 \
21175 /usr/include/gtk \
21176 /usr/local/include/gtk \
21177 /usr/include/glib \
21178 /usr/local/include/glib \
21179 \
21180 /usr/include/qt \
21181 /usr/local/include/qt \
21182 \
21183 /usr/local/arm/3.3.2/include \
21184 \
21185 /usr/include/windows \
21186 /usr/include/wine \
21187 /usr/local/include/wine \
21188 \
21189 /usr/unsupported/include \
21190 /usr/athena/include \
21191 /usr/local/x11r5/include \
21192 /usr/lpp/Xamples/include \
21193 \
21194 /usr/openwin/share/include"
21195
21196SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
21197
21198
21199cat >confcache <<\_ACEOF
21200# This file is a shell script that caches the results of configure
21201# tests run on this system so they can be shared between configure
21202# scripts and configure runs, see configure's option --config-cache.
21203# It is not useful on other systems. If it contains results you don't
21204# want to keep, you may remove or edit it.
21205#
21206# config.status only pays attention to the cache file if you give it
21207# the --recheck option to rerun configure.
21208#
21209# `ac_cv_env_foo' variables (set or unset) will be overridden when
21210# loading this file, other *unset* `ac_cv_foo' will be assigned the
21211# following values.
21212
21213_ACEOF
21214
21215# The following way of writing the cache mishandles newlines in values,
21216# but we know of no workaround that is simple, portable, and efficient.
21217# So, don't put newlines in cache variables' values.
21218# Ultrix sh set writes to stderr and can't be redirected directly,
21219# and sets the high bit in the cache file unless we assign to the vars.
21220{
21221 (set) 2>&1 |
21222 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21223 *ac_space=\ *)
21224 # `set' does not quote correctly, so add quotes (double-quote
21225 # substitution turns \\\\ into \\, and sed turns \\ into \).
21226 sed -n \
ac1cb8d3
VS
21227 "s/'/'\\\\''/g;
21228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21229 ;;
21230 *)
21231 # `set' quotes correctly as required by POSIX, so do not add quotes.
21232 sed -n \
ac1cb8d3 21233 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21234 ;;
21235 esac;
21236} |
21237 sed '
21238 t clear
21239 : clear
21240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21241 t end
21242 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21243 : end' >>confcache
21244if diff $cache_file confcache >/dev/null 2>&1; then :; else
21245 if test -w $cache_file; then
21246 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21247 cat confcache >$cache_file
21248 else
21249 echo "not updating unwritable cache $cache_file"
21250 fi
21251fi
21252rm -f confcache
21253
21254if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21255 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21256echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21257if test "${wx_cv_lib_glibc21+set}" = set; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21259else
21260
21261 cat >conftest.$ac_ext <<_ACEOF
21262/* confdefs.h. */
21263_ACEOF
21264cat confdefs.h >>conftest.$ac_ext
21265cat >>conftest.$ac_ext <<_ACEOF
21266/* end confdefs.h. */
21267#include <features.h>
21268int
21269main ()
21270{
21271
21272 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21273 #error not glibc2.1
21274 #endif
21275
21276 ;
21277 return 0;
21278}
21279_ACEOF
21280rm -f conftest.$ac_objext
21281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21282 (eval $ac_compile) 2>conftest.er1
a848cd7e 21283 ac_status=$?
ac1cb8d3
VS
21284 grep -v '^ *+' conftest.er1 >conftest.err
21285 rm -f conftest.er1
21286 cat conftest.err >&5
a848cd7e
SC
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
89be85c2
VS
21289 { ac_try='test -z "$ac_c_werror_flag"
21290 || test ! -s conftest.err'
ac1cb8d3
VS
21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292 (eval $ac_try) 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; } &&
21296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302
21303 wx_cv_lib_glibc21=yes
21304
21305else
21306 echo "$as_me: failed program was:" >&5
21307sed 's/^/| /' conftest.$ac_ext >&5
21308
21309
21310 wx_cv_lib_glibc21=no
21311
21312
21313fi
ac1cb8d3 21314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21315
21316fi
21317echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21318echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21319 if test "$wx_cv_lib_glibc21" = "yes"; then
21320 cat >>confdefs.h <<\_ACEOF
21321#define wxHAVE_GLIBC2 1
21322_ACEOF
21323
21324 fi
21325fi
21326
21327if test "x$wx_cv_lib_glibc21" = "xyes"; then
21328 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21329 cat >>confdefs.h <<\_ACEOF
21330#define _GNU_SOURCE 1
21331_ACEOF
21332
21333 fi
21334fi
21335
21336
21337
21338if test "$wxUSE_REGEX" != "no"; then
21339 cat >>confdefs.h <<\_ACEOF
21340#define wxUSE_REGEX 1
21341_ACEOF
21342
21343
21344 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21345 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21346echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21347 wxUSE_REGEX=builtin
21348 fi
21349
21350 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21351 if test "${ac_cv_header_regex_h+set}" = set; then
21352 echo "$as_me:$LINENO: checking for regex.h" >&5
21353echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21354if test "${ac_cv_header_regex_h+set}" = set; then
21355 echo $ECHO_N "(cached) $ECHO_C" >&6
21356fi
21357echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21358echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21359else
21360 # Is the header compilable?
21361echo "$as_me:$LINENO: checking regex.h usability" >&5
21362echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21363cat >conftest.$ac_ext <<_ACEOF
21364/* confdefs.h. */
21365_ACEOF
21366cat confdefs.h >>conftest.$ac_ext
21367cat >>conftest.$ac_ext <<_ACEOF
21368/* end confdefs.h. */
21369$ac_includes_default
21370#include <regex.h>
21371_ACEOF
21372rm -f conftest.$ac_objext
21373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21374 (eval $ac_compile) 2>conftest.er1
a848cd7e 21375 ac_status=$?
ac1cb8d3
VS
21376 grep -v '^ *+' conftest.er1 >conftest.err
21377 rm -f conftest.er1
21378 cat conftest.err >&5
a848cd7e
SC
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); } &&
89be85c2
VS
21381 { ac_try='test -z "$ac_c_werror_flag"
21382 || test ! -s conftest.err'
ac1cb8d3
VS
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; } &&
21388 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21391 ac_status=$?
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; }; then
21394 ac_header_compiler=yes
21395else
21396 echo "$as_me: failed program was:" >&5
21397sed 's/^/| /' conftest.$ac_ext >&5
21398
21399ac_header_compiler=no
21400fi
ac1cb8d3 21401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21402echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21403echo "${ECHO_T}$ac_header_compiler" >&6
21404
21405# Is the header present?
21406echo "$as_me:$LINENO: checking regex.h presence" >&5
21407echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21408cat >conftest.$ac_ext <<_ACEOF
21409/* confdefs.h. */
21410_ACEOF
21411cat confdefs.h >>conftest.$ac_ext
21412cat >>conftest.$ac_ext <<_ACEOF
21413/* end confdefs.h. */
21414#include <regex.h>
21415_ACEOF
21416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21418 ac_status=$?
21419 grep -v '^ *+' conftest.er1 >conftest.err
21420 rm -f conftest.er1
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } >/dev/null; then
21424 if test -s conftest.err; then
21425 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21427 else
21428 ac_cpp_err=
21429 fi
21430else
21431 ac_cpp_err=yes
21432fi
21433if test -z "$ac_cpp_err"; then
21434 ac_header_preproc=yes
21435else
21436 echo "$as_me: failed program was:" >&5
21437sed 's/^/| /' conftest.$ac_ext >&5
21438
21439 ac_header_preproc=no
21440fi
21441rm -f conftest.err conftest.$ac_ext
21442echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21443echo "${ECHO_T}$ac_header_preproc" >&6
21444
21445# So? What about this header?
ac1cb8d3
VS
21446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21447 yes:no: )
a848cd7e
SC
21448 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21449echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21450 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21451echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21452 ac_header_preproc=yes
a848cd7e 21453 ;;
ac1cb8d3 21454 no:yes:* )
a848cd7e
SC
21455 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21456echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21457 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21458echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21460echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21462echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21463 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21464echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21465 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21466echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21467 (
21468 cat <<\_ASBOX
ac1cb8d3
VS
21469## ----------------------------------------- ##
21470## Report this to wx-dev@lists.wxwidgets.org ##
21471## ----------------------------------------- ##
a848cd7e
SC
21472_ASBOX
21473 ) |
21474 sed "s/^/$as_me: WARNING: /" >&2
21475 ;;
21476esac
21477echo "$as_me:$LINENO: checking for regex.h" >&5
21478echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21479if test "${ac_cv_header_regex_h+set}" = set; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21481else
21482 ac_cv_header_regex_h=$ac_header_preproc
21483fi
21484echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21485echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21486
21487fi
21488if test $ac_cv_header_regex_h = yes; then
21489
21490for ac_func in regcomp
21491do
21492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21493echo "$as_me:$LINENO: checking for $ac_func" >&5
21494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21495if eval "test \"\${$as_ac_var+set}\" = set"; then
21496 echo $ECHO_N "(cached) $ECHO_C" >&6
21497else
21498 cat >conftest.$ac_ext <<_ACEOF
21499/* confdefs.h. */
21500_ACEOF
21501cat confdefs.h >>conftest.$ac_ext
21502cat >>conftest.$ac_ext <<_ACEOF
21503/* end confdefs.h. */
ac1cb8d3
VS
21504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21506#define $ac_func innocuous_$ac_func
21507
a848cd7e
SC
21508/* System header to define __stub macros and hopefully few prototypes,
21509 which can conflict with char $ac_func (); below.
21510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21511 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 21512
a848cd7e
SC
21513#ifdef __STDC__
21514# include <limits.h>
21515#else
21516# include <assert.h>
21517#endif
ac1cb8d3
VS
21518
21519#undef $ac_func
21520
a848cd7e
SC
21521/* Override any gcc2 internal prototype to avoid an error. */
21522#ifdef __cplusplus
21523extern "C"
21524{
21525#endif
21526/* We use char because int might match the return type of a gcc2
21527 builtin and then its argument prototype would still apply. */
21528char $ac_func ();
21529/* The GNU C library defines this for functions which it implements
21530 to always fail with ENOSYS. Some functions are actually named
21531 something starting with __ and the normal name is an alias. */
21532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21533choke me
21534#else
21535char (*f) () = $ac_func;
21536#endif
21537#ifdef __cplusplus
21538}
21539#endif
21540
21541int
21542main ()
21543{
21544return f != $ac_func;
21545 ;
21546 return 0;
21547}
21548_ACEOF
21549rm -f conftest.$ac_objext conftest$ac_exeext
21550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21551 (eval $ac_link) 2>conftest.er1
a848cd7e 21552 ac_status=$?
ac1cb8d3
VS
21553 grep -v '^ *+' conftest.er1 >conftest.err
21554 rm -f conftest.er1
21555 cat conftest.err >&5
a848cd7e
SC
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
89be85c2
VS
21558 { ac_try='test -z "$ac_c_werror_flag"
21559 || test ! -s conftest.err'
ac1cb8d3
VS
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 eval "$as_ac_var=yes"
21572else
21573 echo "$as_me: failed program was:" >&5
21574sed 's/^/| /' conftest.$ac_ext >&5
21575
21576eval "$as_ac_var=no"
21577fi
ac1cb8d3
VS
21578rm -f conftest.err conftest.$ac_objext \
21579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21580fi
21581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21582echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21583if test `eval echo '${'$as_ac_var'}'` = yes; then
21584 cat >>confdefs.h <<_ACEOF
21585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21586_ACEOF
21587
21588fi
21589done
21590
21591fi
21592
21593
21594
21595 if test "x$ac_cv_func_regcomp" != "xyes"; then
21596 if test "$wxUSE_REGEX" = "sys" ; then
21597 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
21598echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
21599 { (exit 1); exit 1; }; }
21600 else
21601 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
21602echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21603 wxUSE_REGEX=builtin
21604 fi
21605 else
21606 wxUSE_REGEX=sys
21607 cat >>confdefs.h <<\_ACEOF
21608#define WX_NO_REGEX_ADVANCED 1
21609_ACEOF
21610
21611 fi
21612 fi
21613fi
21614
21615
21616ZLIB_LINK=
21617if test "$wxUSE_ZLIB" != "no" ; then
21618 cat >>confdefs.h <<\_ACEOF
21619#define wxUSE_ZLIB 1
21620_ACEOF
21621
21622
21623 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
21624 if test "$USE_DARWIN" = 1; then
21625 system_zlib_h_ok="yes"
21626 else
21627 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
21628echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
21629if test "${ac_cv_header_zlib_h+set}" = set; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21631else
21632 if test "$cross_compiling" = yes; then
21633 unset ac_cv_header_zlib_h
21634
21635else
21636 cat >conftest.$ac_ext <<_ACEOF
21637/* confdefs.h. */
21638_ACEOF
21639cat confdefs.h >>conftest.$ac_ext
21640cat >>conftest.$ac_ext <<_ACEOF
21641/* end confdefs.h. */
21642
21643 #include <zlib.h>
21644 #include <stdio.h>
21645
21646 int main()
21647 {
21648 FILE *f=fopen("conftestval", "w");
21649 if (!f) exit(1);
21650 fprintf(f, "%s",
21651 ZLIB_VERSION[0] == '1' &&
21652 (ZLIB_VERSION[2] > '1' ||
21653 (ZLIB_VERSION[2] == '1' &&
21654 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
21655 exit(0);
21656 }
21657
21658_ACEOF
21659rm -f conftest$ac_exeext
21660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21661 (eval $ac_link) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; }; then
21670 ac_cv_header_zlib_h=`cat conftestval`
21671else
21672 echo "$as_me: program exited with status $ac_status" >&5
21673echo "$as_me: failed program was:" >&5
21674sed 's/^/| /' conftest.$ac_ext >&5
21675
21676( exit $ac_status )
21677ac_cv_header_zlib_h=no
21678fi
ac1cb8d3 21679rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21680fi
21681
21682fi
21683echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21684echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21685 if test "${ac_cv_header_zlib_h+set}" = set; then
21686 echo "$as_me:$LINENO: checking for zlib.h" >&5
21687echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21688if test "${ac_cv_header_zlib_h+set}" = set; then
21689 echo $ECHO_N "(cached) $ECHO_C" >&6
21690fi
21691echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21692echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21693else
21694 # Is the header compilable?
21695echo "$as_me:$LINENO: checking zlib.h usability" >&5
21696echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
21697cat >conftest.$ac_ext <<_ACEOF
21698/* confdefs.h. */
21699_ACEOF
21700cat confdefs.h >>conftest.$ac_ext
21701cat >>conftest.$ac_ext <<_ACEOF
21702/* end confdefs.h. */
21703$ac_includes_default
21704#include <zlib.h>
21705_ACEOF
21706rm -f conftest.$ac_objext
21707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21708 (eval $ac_compile) 2>conftest.er1
a848cd7e 21709 ac_status=$?
ac1cb8d3
VS
21710 grep -v '^ *+' conftest.er1 >conftest.err
21711 rm -f conftest.er1
21712 cat conftest.err >&5
a848cd7e
SC
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } &&
89be85c2
VS
21715 { ac_try='test -z "$ac_c_werror_flag"
21716 || test ! -s conftest.err'
ac1cb8d3
VS
21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21719 ac_status=$?
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; } &&
21722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; }; then
21728 ac_header_compiler=yes
21729else
21730 echo "$as_me: failed program was:" >&5
21731sed 's/^/| /' conftest.$ac_ext >&5
21732
21733ac_header_compiler=no
21734fi
ac1cb8d3 21735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21736echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21737echo "${ECHO_T}$ac_header_compiler" >&6
21738
21739# Is the header present?
21740echo "$as_me:$LINENO: checking zlib.h presence" >&5
21741echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
21742cat >conftest.$ac_ext <<_ACEOF
21743/* confdefs.h. */
21744_ACEOF
21745cat confdefs.h >>conftest.$ac_ext
21746cat >>conftest.$ac_ext <<_ACEOF
21747/* end confdefs.h. */
21748#include <zlib.h>
21749_ACEOF
21750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } >/dev/null; then
21758 if test -s conftest.err; then
21759 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21761 else
21762 ac_cpp_err=
21763 fi
21764else
21765 ac_cpp_err=yes
21766fi
21767if test -z "$ac_cpp_err"; then
21768 ac_header_preproc=yes
21769else
21770 echo "$as_me: failed program was:" >&5
21771sed 's/^/| /' conftest.$ac_ext >&5
21772
21773 ac_header_preproc=no
21774fi
21775rm -f conftest.err conftest.$ac_ext
21776echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21777echo "${ECHO_T}$ac_header_preproc" >&6
21778
21779# So? What about this header?
ac1cb8d3
VS
21780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21781 yes:no: )
a848cd7e
SC
21782 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21783echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21784 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21785echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21786 ac_header_preproc=yes
a848cd7e 21787 ;;
ac1cb8d3 21788 no:yes:* )
a848cd7e
SC
21789 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21790echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21791 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21792echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21793 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21794echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21796echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21797 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21798echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21799 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21800echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21801 (
21802 cat <<\_ASBOX
ac1cb8d3
VS
21803## ----------------------------------------- ##
21804## Report this to wx-dev@lists.wxwidgets.org ##
21805## ----------------------------------------- ##
a848cd7e
SC
21806_ASBOX
21807 ) |
21808 sed "s/^/$as_me: WARNING: /" >&2
21809 ;;
21810esac
21811echo "$as_me:$LINENO: checking for zlib.h" >&5
21812echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21813if test "${ac_cv_header_zlib_h+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21815else
21816 ac_cv_header_zlib_h=$ac_header_preproc
21817fi
21818echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21819echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21820
21821fi
21822
21823
21824
21825 system_zlib_h_ok=$ac_cv_header_zlib_h
21826 fi
21827
21828 if test "$system_zlib_h_ok" = "yes"; then
21829 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21830echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21831if test "${ac_cv_lib_z_deflate+set}" = set; then
21832 echo $ECHO_N "(cached) $ECHO_C" >&6
21833else
21834 ac_check_lib_save_LIBS=$LIBS
21835LIBS="-lz $LIBS"
21836cat >conftest.$ac_ext <<_ACEOF
21837/* confdefs.h. */
21838_ACEOF
21839cat confdefs.h >>conftest.$ac_ext
21840cat >>conftest.$ac_ext <<_ACEOF
21841/* end confdefs.h. */
21842
21843/* Override any gcc2 internal prototype to avoid an error. */
21844#ifdef __cplusplus
21845extern "C"
21846#endif
21847/* We use char because int might match the return type of a gcc2
21848 builtin and then its argument prototype would still apply. */
21849char deflate ();
21850int
21851main ()
21852{
21853deflate ();
21854 ;
21855 return 0;
21856}
21857_ACEOF
21858rm -f conftest.$ac_objext conftest$ac_exeext
21859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21860 (eval $ac_link) 2>conftest.er1
a848cd7e 21861 ac_status=$?
ac1cb8d3
VS
21862 grep -v '^ *+' conftest.er1 >conftest.err
21863 rm -f conftest.er1
21864 cat conftest.err >&5
a848cd7e
SC
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } &&
89be85c2
VS
21867 { ac_try='test -z "$ac_c_werror_flag"
21868 || test ! -s conftest.err'
ac1cb8d3
VS
21869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21870 (eval $ac_try) 2>&5
21871 ac_status=$?
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); }; } &&
21874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876 (eval $ac_try) 2>&5
21877 ac_status=$?
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); }; }; then
21880 ac_cv_lib_z_deflate=yes
21881else
21882 echo "$as_me: failed program was:" >&5
21883sed 's/^/| /' conftest.$ac_ext >&5
21884
21885ac_cv_lib_z_deflate=no
21886fi
ac1cb8d3
VS
21887rm -f conftest.err conftest.$ac_objext \
21888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21889LIBS=$ac_check_lib_save_LIBS
21890fi
21891echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21892echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21893if test $ac_cv_lib_z_deflate = yes; then
21894 ZLIB_LINK=" -lz"
21895fi
21896
21897 fi
21898
21899 if test "x$ZLIB_LINK" = "x" ; then
21900 if test "$wxUSE_ZLIB" = "sys" ; then
21901 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21902echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21903 { (exit 1); exit 1; }; }
21904 else
21905 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21906echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21907 wxUSE_ZLIB=builtin
21908 fi
21909 else
21910 wxUSE_ZLIB=sys
21911 fi
21912 fi
21913fi
21914
21915
21916PNG_LINK=
21917if test "$wxUSE_LIBPNG" != "no" ; then
21918 cat >>confdefs.h <<\_ACEOF
21919#define wxUSE_LIBPNG 1
21920_ACEOF
21921
21922
21923 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21924 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21925echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21926 wxUSE_LIBPNG=sys
21927 fi
21928
21929 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21930 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21931echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21932 wxUSE_LIBPNG=builtin
21933 fi
21934
21935 if test "$wxUSE_MGL" != 1 ; then
21936 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21937 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21938echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21939if test "${ac_cv_header_png_h+set}" = set; then
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21941else
21942 if test "$cross_compiling" = yes; then
21943 unset ac_cv_header_png_h
21944
21945else
21946 cat >conftest.$ac_ext <<_ACEOF
21947/* confdefs.h. */
21948_ACEOF
21949cat confdefs.h >>conftest.$ac_ext
21950cat >>conftest.$ac_ext <<_ACEOF
21951/* end confdefs.h. */
21952
21953 #include <png.h>
21954 #include <stdio.h>
21955
21956 int main()
21957 {
21958 FILE *f=fopen("conftestval", "w");
21959 if (!f) exit(1);
21960 fprintf(f, "%s",
21961 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21962 exit(0);
21963 }
21964
21965_ACEOF
21966rm -f conftest$ac_exeext
21967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21968 (eval $ac_link) 2>&5
21969 ac_status=$?
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21974 ac_status=$?
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; }; then
21977 ac_cv_header_png_h=`cat conftestval`
21978else
21979 echo "$as_me: program exited with status $ac_status" >&5
21980echo "$as_me: failed program was:" >&5
21981sed 's/^/| /' conftest.$ac_ext >&5
21982
21983( exit $ac_status )
21984ac_cv_header_png_h=no
21985fi
ac1cb8d3 21986rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21987fi
21988
21989fi
21990echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21991echo "${ECHO_T}$ac_cv_header_png_h" >&6
21992 if test "${ac_cv_header_png_h+set}" = set; then
21993 echo "$as_me:$LINENO: checking for png.h" >&5
21994echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21995if test "${ac_cv_header_png_h+set}" = set; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21997fi
21998echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21999echo "${ECHO_T}$ac_cv_header_png_h" >&6
22000else
22001 # Is the header compilable?
22002echo "$as_me:$LINENO: checking png.h usability" >&5
22003echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22004cat >conftest.$ac_ext <<_ACEOF
22005/* confdefs.h. */
22006_ACEOF
22007cat confdefs.h >>conftest.$ac_ext
22008cat >>conftest.$ac_ext <<_ACEOF
22009/* end confdefs.h. */
22010$ac_includes_default
22011#include <png.h>
22012_ACEOF
22013rm -f conftest.$ac_objext
22014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22015 (eval $ac_compile) 2>conftest.er1
a848cd7e 22016 ac_status=$?
ac1cb8d3
VS
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
a848cd7e
SC
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } &&
89be85c2
VS
22022 { ac_try='test -z "$ac_c_werror_flag"
22023 || test ! -s conftest.err'
ac1cb8d3
VS
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; } &&
22029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031 (eval $ac_try) 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 ac_header_compiler=yes
22036else
22037 echo "$as_me: failed program was:" >&5
22038sed 's/^/| /' conftest.$ac_ext >&5
22039
22040ac_header_compiler=no
22041fi
ac1cb8d3 22042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22044echo "${ECHO_T}$ac_header_compiler" >&6
22045
22046# Is the header present?
22047echo "$as_me:$LINENO: checking png.h presence" >&5
22048echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22049cat >conftest.$ac_ext <<_ACEOF
22050/* confdefs.h. */
22051_ACEOF
22052cat confdefs.h >>conftest.$ac_ext
22053cat >>conftest.$ac_ext <<_ACEOF
22054/* end confdefs.h. */
22055#include <png.h>
22056_ACEOF
22057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22059 ac_status=$?
22060 grep -v '^ *+' conftest.er1 >conftest.err
22061 rm -f conftest.er1
22062 cat conftest.err >&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } >/dev/null; then
22065 if test -s conftest.err; then
22066 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22068 else
22069 ac_cpp_err=
22070 fi
22071else
22072 ac_cpp_err=yes
22073fi
22074if test -z "$ac_cpp_err"; then
22075 ac_header_preproc=yes
22076else
22077 echo "$as_me: failed program was:" >&5
22078sed 's/^/| /' conftest.$ac_ext >&5
22079
22080 ac_header_preproc=no
22081fi
22082rm -f conftest.err conftest.$ac_ext
22083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22084echo "${ECHO_T}$ac_header_preproc" >&6
22085
22086# So? What about this header?
ac1cb8d3
VS
22087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22088 yes:no: )
a848cd7e
SC
22089 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22090echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22091 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22092echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22093 ac_header_preproc=yes
a848cd7e 22094 ;;
ac1cb8d3 22095 no:yes:* )
a848cd7e
SC
22096 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22097echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22098 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22099echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22101echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22103echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22104 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22105echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22106 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22107echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22108 (
22109 cat <<\_ASBOX
ac1cb8d3
VS
22110## ----------------------------------------- ##
22111## Report this to wx-dev@lists.wxwidgets.org ##
22112## ----------------------------------------- ##
a848cd7e
SC
22113_ASBOX
22114 ) |
22115 sed "s/^/$as_me: WARNING: /" >&2
22116 ;;
22117esac
22118echo "$as_me:$LINENO: checking for png.h" >&5
22119echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22120if test "${ac_cv_header_png_h+set}" = set; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22122else
22123 ac_cv_header_png_h=$ac_header_preproc
22124fi
22125echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22126echo "${ECHO_T}$ac_cv_header_png_h" >&6
22127
22128fi
22129
22130
22131
22132 if test "$ac_cv_header_png_h" = "yes"; then
22133 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22134echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22135if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22137else
22138 ac_check_lib_save_LIBS=$LIBS
22139LIBS="-lpng -lz -lm $LIBS"
22140cat >conftest.$ac_ext <<_ACEOF
22141/* confdefs.h. */
22142_ACEOF
22143cat confdefs.h >>conftest.$ac_ext
22144cat >>conftest.$ac_ext <<_ACEOF
22145/* end confdefs.h. */
22146
22147/* Override any gcc2 internal prototype to avoid an error. */
22148#ifdef __cplusplus
22149extern "C"
22150#endif
22151/* We use char because int might match the return type of a gcc2
22152 builtin and then its argument prototype would still apply. */
22153char png_check_sig ();
22154int
22155main ()
22156{
22157png_check_sig ();
22158 ;
22159 return 0;
22160}
22161_ACEOF
22162rm -f conftest.$ac_objext conftest$ac_exeext
22163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22164 (eval $ac_link) 2>conftest.er1
a848cd7e 22165 ac_status=$?
ac1cb8d3
VS
22166 grep -v '^ *+' conftest.er1 >conftest.err
22167 rm -f conftest.er1
22168 cat conftest.err >&5
a848cd7e
SC
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } &&
89be85c2
VS
22171 { ac_try='test -z "$ac_c_werror_flag"
22172 || test ! -s conftest.err'
ac1cb8d3
VS
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; } &&
22178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22181 ac_status=$?
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; }; then
22184 ac_cv_lib_png_png_check_sig=yes
22185else
22186 echo "$as_me: failed program was:" >&5
22187sed 's/^/| /' conftest.$ac_ext >&5
22188
22189ac_cv_lib_png_png_check_sig=no
22190fi
ac1cb8d3
VS
22191rm -f conftest.err conftest.$ac_objext \
22192 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22193LIBS=$ac_check_lib_save_LIBS
22194fi
22195echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22196echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22197if test $ac_cv_lib_png_png_check_sig = yes; then
22198 PNG_LINK=" -lpng -lz"
22199fi
22200
22201 fi
22202
22203 if test "x$PNG_LINK" = "x" ; then
22204 if test "$wxUSE_LIBPNG" = "sys" ; then
22205 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22206echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22207 { (exit 1); exit 1; }; }
22208 else
22209 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22210echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22211 wxUSE_LIBPNG=builtin
22212 fi
22213 else
22214 wxUSE_LIBPNG=sys
22215 fi
22216 fi
22217 fi
22218
22219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22220fi
22221
22222
22223JPEG_LINK=
22224if test "$wxUSE_LIBJPEG" != "no" ; then
22225 cat >>confdefs.h <<\_ACEOF
22226#define wxUSE_LIBJPEG 1
22227_ACEOF
22228
22229
22230 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22231 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22232echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22233 wxUSE_LIBJPEG=sys
22234 fi
22235
22236 if test "$wxUSE_MGL" != 1 ; then
22237 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22238 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22239echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22240 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22242else
22243 cat >conftest.$ac_ext <<_ACEOF
22244/* confdefs.h. */
22245_ACEOF
22246cat confdefs.h >>conftest.$ac_ext
22247cat >>conftest.$ac_ext <<_ACEOF
22248/* end confdefs.h. */
22249
22250 #undef HAVE_STDLIB_H
22251 #include <stdio.h>
22252 #include <jpeglib.h>
22253
22254int
22255main ()
22256{
22257
22258
22259 ;
22260 return 0;
22261}
22262_ACEOF
22263rm -f conftest.$ac_objext
22264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22265 (eval $ac_compile) 2>conftest.er1
a848cd7e 22266 ac_status=$?
ac1cb8d3
VS
22267 grep -v '^ *+' conftest.er1 >conftest.err
22268 rm -f conftest.er1
22269 cat conftest.err >&5
a848cd7e
SC
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); } &&
89be85c2
VS
22272 { ac_try='test -z "$ac_c_werror_flag"
22273 || test ! -s conftest.err'
ac1cb8d3
VS
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; } &&
22279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; }; then
22285 ac_cv_header_jpeglib_h=yes
22286else
22287 echo "$as_me: failed program was:" >&5
22288sed 's/^/| /' conftest.$ac_ext >&5
22289
22290ac_cv_header_jpeglib_h=no
22291
22292fi
ac1cb8d3 22293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22294
22295fi
22296
22297 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22298echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22299
22300 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22301 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22302echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22303if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22304 echo $ECHO_N "(cached) $ECHO_C" >&6
22305else
22306 ac_check_lib_save_LIBS=$LIBS
22307LIBS="-ljpeg $LIBS"
22308cat >conftest.$ac_ext <<_ACEOF
22309/* confdefs.h. */
22310_ACEOF
22311cat confdefs.h >>conftest.$ac_ext
22312cat >>conftest.$ac_ext <<_ACEOF
22313/* end confdefs.h. */
22314
22315/* Override any gcc2 internal prototype to avoid an error. */
22316#ifdef __cplusplus
22317extern "C"
22318#endif
22319/* We use char because int might match the return type of a gcc2
22320 builtin and then its argument prototype would still apply. */
22321char jpeg_read_header ();
22322int
22323main ()
22324{
22325jpeg_read_header ();
22326 ;
22327 return 0;
22328}
22329_ACEOF
22330rm -f conftest.$ac_objext conftest$ac_exeext
22331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22332 (eval $ac_link) 2>conftest.er1
a848cd7e 22333 ac_status=$?
ac1cb8d3
VS
22334 grep -v '^ *+' conftest.er1 >conftest.err
22335 rm -f conftest.er1
22336 cat conftest.err >&5
a848cd7e
SC
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } &&
89be85c2
VS
22339 { ac_try='test -z "$ac_c_werror_flag"
22340 || test ! -s conftest.err'
ac1cb8d3
VS
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22343 ac_status=$?
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; } &&
22346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
22352 ac_cv_lib_jpeg_jpeg_read_header=yes
22353else
22354 echo "$as_me: failed program was:" >&5
22355sed 's/^/| /' conftest.$ac_ext >&5
22356
22357ac_cv_lib_jpeg_jpeg_read_header=no
22358fi
ac1cb8d3
VS
22359rm -f conftest.err conftest.$ac_objext \
22360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22361LIBS=$ac_check_lib_save_LIBS
22362fi
22363echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22364echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22365if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22366 JPEG_LINK=" -ljpeg"
22367fi
22368
22369 fi
22370
22371 if test "x$JPEG_LINK" = "x" ; then
22372 if test "$wxUSE_LIBJPEG" = "sys" ; then
22373 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22374echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22375 { (exit 1); exit 1; }; }
22376 else
22377 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22378echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22379 wxUSE_LIBJPEG=builtin
22380 fi
22381 else
22382 wxUSE_LIBJPEG=sys
22383 fi
22384 fi
22385 fi
22386fi
22387
22388
22389TIFF_LINK=
22390TIFF_PREREQ_LINKS=-lm
22391if test "$wxUSE_LIBTIFF" != "no" ; then
22392 cat >>confdefs.h <<\_ACEOF
22393#define wxUSE_LIBTIFF 1
22394_ACEOF
22395
22396
22397 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22398 if test "$wxUSE_LIBJPEG" = "sys"; then
22399 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22400 fi
22401 if test "$wxUSE_ZLIB" = "sys"; then
22402 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22403 fi
22404 if test "${ac_cv_header_tiffio_h+set}" = set; then
22405 echo "$as_me:$LINENO: checking for tiffio.h" >&5
22406echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22407if test "${ac_cv_header_tiffio_h+set}" = set; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22409fi
22410echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22411echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22412else
22413 # Is the header compilable?
22414echo "$as_me:$LINENO: checking tiffio.h usability" >&5
22415echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
22416cat >conftest.$ac_ext <<_ACEOF
22417/* confdefs.h. */
22418_ACEOF
22419cat confdefs.h >>conftest.$ac_ext
22420cat >>conftest.$ac_ext <<_ACEOF
22421/* end confdefs.h. */
22422$ac_includes_default
22423#include <tiffio.h>
22424_ACEOF
22425rm -f conftest.$ac_objext
22426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22427 (eval $ac_compile) 2>conftest.er1
a848cd7e 22428 ac_status=$?
ac1cb8d3
VS
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
a848cd7e
SC
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } &&
89be85c2
VS
22434 { ac_try='test -z "$ac_c_werror_flag"
22435 || test ! -s conftest.err'
ac1cb8d3
VS
22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437 (eval $ac_try) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; } &&
22441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }; }; then
22447 ac_header_compiler=yes
22448else
22449 echo "$as_me: failed program was:" >&5
22450sed 's/^/| /' conftest.$ac_ext >&5
22451
22452ac_header_compiler=no
22453fi
ac1cb8d3 22454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22456echo "${ECHO_T}$ac_header_compiler" >&6
22457
22458# Is the header present?
22459echo "$as_me:$LINENO: checking tiffio.h presence" >&5
22460echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
22461cat >conftest.$ac_ext <<_ACEOF
22462/* confdefs.h. */
22463_ACEOF
22464cat confdefs.h >>conftest.$ac_ext
22465cat >>conftest.$ac_ext <<_ACEOF
22466/* end confdefs.h. */
22467#include <tiffio.h>
22468_ACEOF
22469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22471 ac_status=$?
22472 grep -v '^ *+' conftest.er1 >conftest.err
22473 rm -f conftest.er1
22474 cat conftest.err >&5
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); } >/dev/null; then
22477 if test -s conftest.err; then
22478 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22480 else
22481 ac_cpp_err=
22482 fi
22483else
22484 ac_cpp_err=yes
22485fi
22486if test -z "$ac_cpp_err"; then
22487 ac_header_preproc=yes
22488else
22489 echo "$as_me: failed program was:" >&5
22490sed 's/^/| /' conftest.$ac_ext >&5
22491
22492 ac_header_preproc=no
22493fi
22494rm -f conftest.err conftest.$ac_ext
22495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22496echo "${ECHO_T}$ac_header_preproc" >&6
22497
22498# So? What about this header?
ac1cb8d3
VS
22499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22500 yes:no: )
a848cd7e
SC
22501 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
22502echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22503 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
22504echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
22505 ac_header_preproc=yes
a848cd7e 22506 ;;
ac1cb8d3 22507 no:yes:* )
a848cd7e
SC
22508 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
22509echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22510 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
22511echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
22512 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
22513echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
22515echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22516 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
22517echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22518 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
22519echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22520 (
22521 cat <<\_ASBOX
ac1cb8d3
VS
22522## ----------------------------------------- ##
22523## Report this to wx-dev@lists.wxwidgets.org ##
22524## ----------------------------------------- ##
a848cd7e
SC
22525_ASBOX
22526 ) |
22527 sed "s/^/$as_me: WARNING: /" >&2
22528 ;;
22529esac
22530echo "$as_me:$LINENO: checking for tiffio.h" >&5
22531echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22532if test "${ac_cv_header_tiffio_h+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22534else
22535 ac_cv_header_tiffio_h=$ac_header_preproc
22536fi
22537echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22538echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22539
22540fi
22541if test $ac_cv_header_tiffio_h = yes; then
22542
22543 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
22544echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
22545if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
22546 echo $ECHO_N "(cached) $ECHO_C" >&6
22547else
22548 ac_check_lib_save_LIBS=$LIBS
22549LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
22550cat >conftest.$ac_ext <<_ACEOF
22551/* confdefs.h. */
22552_ACEOF
22553cat confdefs.h >>conftest.$ac_ext
22554cat >>conftest.$ac_ext <<_ACEOF
22555/* end confdefs.h. */
22556
22557/* Override any gcc2 internal prototype to avoid an error. */
22558#ifdef __cplusplus
22559extern "C"
22560#endif
22561/* We use char because int might match the return type of a gcc2
22562 builtin and then its argument prototype would still apply. */
22563char TIFFError ();
22564int
22565main ()
22566{
22567TIFFError ();
22568 ;
22569 return 0;
22570}
22571_ACEOF
22572rm -f conftest.$ac_objext conftest$ac_exeext
22573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22574 (eval $ac_link) 2>conftest.er1
a848cd7e 22575 ac_status=$?
ac1cb8d3
VS
22576 grep -v '^ *+' conftest.er1 >conftest.err
22577 rm -f conftest.er1
22578 cat conftest.err >&5
a848cd7e
SC
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } &&
89be85c2
VS
22581 { ac_try='test -z "$ac_c_werror_flag"
22582 || test ! -s conftest.err'
ac1cb8d3
VS
22583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584 (eval $ac_try) 2>&5
22585 ac_status=$?
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; } &&
22588 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22590 (eval $ac_try) 2>&5
22591 ac_status=$?
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); }; }; then
22594 ac_cv_lib_tiff_TIFFError=yes
22595else
22596 echo "$as_me: failed program was:" >&5
22597sed 's/^/| /' conftest.$ac_ext >&5
22598
22599ac_cv_lib_tiff_TIFFError=no
22600fi
ac1cb8d3
VS
22601rm -f conftest.err conftest.$ac_objext \
22602 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22603LIBS=$ac_check_lib_save_LIBS
22604fi
22605echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
22606echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
22607if test $ac_cv_lib_tiff_TIFFError = yes; then
22608 TIFF_LINK=" -ltiff"
22609fi
22610
22611
22612
22613fi
22614
22615
22616
22617 if test "x$TIFF_LINK" = "x" ; then
22618 if test "$wxUSE_LIBTIFF" = "sys" ; then
22619 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
22620echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
22621 { (exit 1); exit 1; }; }
22622 else
22623 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
22624echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
22625 wxUSE_LIBTIFF=builtin
22626 fi
22627 else
22628 wxUSE_LIBTIFF=sys
22629 fi
22630 fi
22631fi
22632
22633
22634if test "$wxUSE_EXPAT" != "no"; then
22635 wxUSE_XML=yes
22636 cat >>confdefs.h <<\_ACEOF
22637#define wxUSE_EXPAT 1
22638_ACEOF
22639
22640 cat >>confdefs.h <<\_ACEOF
22641#define wxUSE_XML 1
22642_ACEOF
22643
22644
22645 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
22646 if test "${ac_cv_header_expat_h+set}" = set; then
22647 echo "$as_me:$LINENO: checking for expat.h" >&5
22648echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22649if test "${ac_cv_header_expat_h+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651fi
22652echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22653echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22654else
22655 # Is the header compilable?
22656echo "$as_me:$LINENO: checking expat.h usability" >&5
22657echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
22658cat >conftest.$ac_ext <<_ACEOF
22659/* confdefs.h. */
22660_ACEOF
22661cat confdefs.h >>conftest.$ac_ext
22662cat >>conftest.$ac_ext <<_ACEOF
22663/* end confdefs.h. */
22664$ac_includes_default
22665#include <expat.h>
22666_ACEOF
22667rm -f conftest.$ac_objext
22668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22669 (eval $ac_compile) 2>conftest.er1
a848cd7e 22670 ac_status=$?
ac1cb8d3
VS
22671 grep -v '^ *+' conftest.er1 >conftest.err
22672 rm -f conftest.er1
22673 cat conftest.err >&5
a848cd7e
SC
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } &&
89be85c2
VS
22676 { ac_try='test -z "$ac_c_werror_flag"
22677 || test ! -s conftest.err'
ac1cb8d3
VS
22678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 (eval $ac_try) 2>&5
22680 ac_status=$?
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; } &&
22683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685 (eval $ac_try) 2>&5
22686 ac_status=$?
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; }; then
22689 ac_header_compiler=yes
22690else
22691 echo "$as_me: failed program was:" >&5
22692sed 's/^/| /' conftest.$ac_ext >&5
22693
22694ac_header_compiler=no
22695fi
ac1cb8d3 22696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22698echo "${ECHO_T}$ac_header_compiler" >&6
22699
22700# Is the header present?
22701echo "$as_me:$LINENO: checking expat.h presence" >&5
22702echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
22703cat >conftest.$ac_ext <<_ACEOF
22704/* confdefs.h. */
22705_ACEOF
22706cat confdefs.h >>conftest.$ac_ext
22707cat >>conftest.$ac_ext <<_ACEOF
22708/* end confdefs.h. */
22709#include <expat.h>
22710_ACEOF
22711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22713 ac_status=$?
22714 grep -v '^ *+' conftest.er1 >conftest.err
22715 rm -f conftest.er1
22716 cat conftest.err >&5
22717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718 (exit $ac_status); } >/dev/null; then
22719 if test -s conftest.err; then
22720 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22722 else
22723 ac_cpp_err=
22724 fi
22725else
22726 ac_cpp_err=yes
22727fi
22728if test -z "$ac_cpp_err"; then
22729 ac_header_preproc=yes
22730else
22731 echo "$as_me: failed program was:" >&5
22732sed 's/^/| /' conftest.$ac_ext >&5
22733
22734 ac_header_preproc=no
22735fi
22736rm -f conftest.err conftest.$ac_ext
22737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22738echo "${ECHO_T}$ac_header_preproc" >&6
22739
22740# So? What about this header?
ac1cb8d3
VS
22741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22742 yes:no: )
a848cd7e
SC
22743 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22744echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22745 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22746echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22747 ac_header_preproc=yes
a848cd7e 22748 ;;
ac1cb8d3 22749 no:yes:* )
a848cd7e
SC
22750 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22751echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22752 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
22753echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
22754 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22755echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22756 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22757echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22758 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22759echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22760 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22761echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22762 (
22763 cat <<\_ASBOX
ac1cb8d3
VS
22764## ----------------------------------------- ##
22765## Report this to wx-dev@lists.wxwidgets.org ##
22766## ----------------------------------------- ##
a848cd7e
SC
22767_ASBOX
22768 ) |
22769 sed "s/^/$as_me: WARNING: /" >&2
22770 ;;
22771esac
22772echo "$as_me:$LINENO: checking for expat.h" >&5
22773echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22774if test "${ac_cv_header_expat_h+set}" = set; then
22775 echo $ECHO_N "(cached) $ECHO_C" >&6
22776else
22777 ac_cv_header_expat_h=$ac_header_preproc
22778fi
22779echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22780echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22781
22782fi
22783if test $ac_cv_header_expat_h = yes; then
22784 found_expat_h=1
22785fi
22786
22787
22788 if test "x$found_expat_h" = "x1"; then
22789 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22790echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22791if test "${wx_cv_expat_is_not_broken+set}" = set; then
22792 echo $ECHO_N "(cached) $ECHO_C" >&6
22793else
22794
22795
22796
22797 ac_ext=cc
22798ac_cpp='$CXXCPP $CPPFLAGS'
22799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22802
22803 cat >conftest.$ac_ext <<_ACEOF
22804/* confdefs.h. */
22805_ACEOF
22806cat confdefs.h >>conftest.$ac_ext
22807cat >>conftest.$ac_ext <<_ACEOF
22808/* end confdefs.h. */
22809#include <expat.h>
22810int
22811main ()
22812{
22813
22814 ;
22815 return 0;
22816}
22817_ACEOF
22818rm -f conftest.$ac_objext
22819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22820 (eval $ac_compile) 2>conftest.er1
a848cd7e 22821 ac_status=$?
ac1cb8d3
VS
22822 grep -v '^ *+' conftest.er1 >conftest.err
22823 rm -f conftest.er1
22824 cat conftest.err >&5
a848cd7e
SC
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } &&
89be85c2
VS
22827 { ac_try='test -z "$ac_cxx_werror_flag"
22828 || test ! -s conftest.err'
ac1cb8d3
VS
22829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22831 ac_status=$?
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }; } &&
22834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22837 ac_status=$?
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }; then
22840 wx_cv_expat_is_not_broken=yes
22841else
22842 echo "$as_me: failed program was:" >&5
22843sed 's/^/| /' conftest.$ac_ext >&5
22844
22845wx_cv_expat_is_not_broken=no
22846
22847fi
ac1cb8d3 22848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22849 ac_ext=c
22850ac_cpp='$CPP $CPPFLAGS'
22851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22853ac_compiler_gnu=$ac_cv_c_compiler_gnu
22854
22855
22856
22857fi
22858echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22859echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22860 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22861 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22862echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22863if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22864 echo $ECHO_N "(cached) $ECHO_C" >&6
22865else
22866 ac_check_lib_save_LIBS=$LIBS
22867LIBS="-lexpat $LIBS"
22868cat >conftest.$ac_ext <<_ACEOF
22869/* confdefs.h. */
22870_ACEOF
22871cat confdefs.h >>conftest.$ac_ext
22872cat >>conftest.$ac_ext <<_ACEOF
22873/* end confdefs.h. */
22874
22875/* Override any gcc2 internal prototype to avoid an error. */
22876#ifdef __cplusplus
22877extern "C"
22878#endif
22879/* We use char because int might match the return type of a gcc2
22880 builtin and then its argument prototype would still apply. */
22881char XML_ParserCreate ();
22882int
22883main ()
22884{
22885XML_ParserCreate ();
22886 ;
22887 return 0;
22888}
22889_ACEOF
22890rm -f conftest.$ac_objext conftest$ac_exeext
22891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22892 (eval $ac_link) 2>conftest.er1
a848cd7e 22893 ac_status=$?
ac1cb8d3
VS
22894 grep -v '^ *+' conftest.er1 >conftest.err
22895 rm -f conftest.er1
22896 cat conftest.err >&5
a848cd7e
SC
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); } &&
89be85c2
VS
22899 { ac_try='test -z "$ac_c_werror_flag"
22900 || test ! -s conftest.err'
ac1cb8d3
VS
22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902 (eval $ac_try) 2>&5
22903 ac_status=$?
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; } &&
22906 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22909 ac_status=$?
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; }; then
22912 ac_cv_lib_expat_XML_ParserCreate=yes
22913else
22914 echo "$as_me: failed program was:" >&5
22915sed 's/^/| /' conftest.$ac_ext >&5
22916
22917ac_cv_lib_expat_XML_ParserCreate=no
22918fi
ac1cb8d3
VS
22919rm -f conftest.err conftest.$ac_objext \
22920 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22921LIBS=$ac_check_lib_save_LIBS
22922fi
22923echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22924echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22925if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22926 EXPAT_LINK=" -lexpat"
22927fi
22928
22929 fi
22930 fi
22931 if test "x$EXPAT_LINK" = "x" ; then
22932 if test "$wxUSE_EXPAT" = "sys" ; then
22933 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22934echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22935 { (exit 1); exit 1; }; }
22936 else
22937 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22938echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22939 wxUSE_EXPAT=builtin
22940 fi
22941 else
22942 wxUSE_EXPAT=sys
22943 fi
22944 fi
22945 if test "$wxUSE_EXPAT" = "builtin" ; then
22946
22947
22948subdirs="$subdirs src/expat"
22949
22950 fi
22951fi
22952
22953
22954
22955if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
22956 if test "${ac_cv_header_mspack_h+set}" = set; then
22957 echo "$as_me:$LINENO: checking for mspack.h" >&5
22958echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22959if test "${ac_cv_header_mspack_h+set}" = set; then
22960 echo $ECHO_N "(cached) $ECHO_C" >&6
22961fi
22962echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22963echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22964else
22965 # Is the header compilable?
22966echo "$as_me:$LINENO: checking mspack.h usability" >&5
22967echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22968cat >conftest.$ac_ext <<_ACEOF
22969/* confdefs.h. */
22970_ACEOF
22971cat confdefs.h >>conftest.$ac_ext
22972cat >>conftest.$ac_ext <<_ACEOF
22973/* end confdefs.h. */
22974$ac_includes_default
22975#include <mspack.h>
22976_ACEOF
22977rm -f conftest.$ac_objext
22978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22979 (eval $ac_compile) 2>conftest.er1
a848cd7e 22980 ac_status=$?
ac1cb8d3
VS
22981 grep -v '^ *+' conftest.er1 >conftest.err
22982 rm -f conftest.er1
22983 cat conftest.err >&5
a848cd7e
SC
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } &&
89be85c2
VS
22986 { ac_try='test -z "$ac_c_werror_flag"
22987 || test ! -s conftest.err'
ac1cb8d3
VS
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22990 ac_status=$?
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; } &&
22993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995 (eval $ac_try) 2>&5
22996 ac_status=$?
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; }; then
22999 ac_header_compiler=yes
23000else
23001 echo "$as_me: failed program was:" >&5
23002sed 's/^/| /' conftest.$ac_ext >&5
23003
23004ac_header_compiler=no
23005fi
ac1cb8d3 23006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23008echo "${ECHO_T}$ac_header_compiler" >&6
23009
23010# Is the header present?
23011echo "$as_me:$LINENO: checking mspack.h presence" >&5
23012echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23013cat >conftest.$ac_ext <<_ACEOF
23014/* confdefs.h. */
23015_ACEOF
23016cat confdefs.h >>conftest.$ac_ext
23017cat >>conftest.$ac_ext <<_ACEOF
23018/* end confdefs.h. */
23019#include <mspack.h>
23020_ACEOF
23021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23023 ac_status=$?
23024 grep -v '^ *+' conftest.er1 >conftest.err
23025 rm -f conftest.er1
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } >/dev/null; then
23029 if test -s conftest.err; then
23030 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23032 else
23033 ac_cpp_err=
23034 fi
23035else
23036 ac_cpp_err=yes
23037fi
23038if test -z "$ac_cpp_err"; then
23039 ac_header_preproc=yes
23040else
23041 echo "$as_me: failed program was:" >&5
23042sed 's/^/| /' conftest.$ac_ext >&5
23043
23044 ac_header_preproc=no
23045fi
23046rm -f conftest.err conftest.$ac_ext
23047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23048echo "${ECHO_T}$ac_header_preproc" >&6
23049
23050# So? What about this header?
ac1cb8d3
VS
23051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23052 yes:no: )
a848cd7e
SC
23053 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23054echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23055 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23056echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23057 ac_header_preproc=yes
a848cd7e 23058 ;;
ac1cb8d3 23059 no:yes:* )
a848cd7e
SC
23060 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23061echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23062 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23063echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23064 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23065echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23066 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23067echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23068 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23069echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23070 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23071echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23072 (
23073 cat <<\_ASBOX
ac1cb8d3
VS
23074## ----------------------------------------- ##
23075## Report this to wx-dev@lists.wxwidgets.org ##
23076## ----------------------------------------- ##
a848cd7e
SC
23077_ASBOX
23078 ) |
23079 sed "s/^/$as_me: WARNING: /" >&2
23080 ;;
23081esac
23082echo "$as_me:$LINENO: checking for mspack.h" >&5
23083echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23084if test "${ac_cv_header_mspack_h+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23086else
23087 ac_cv_header_mspack_h=$ac_header_preproc
23088fi
23089echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23090echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23091
23092fi
23093if test $ac_cv_header_mspack_h = yes; then
23094 found_mspack_h=1
23095fi
23096
23097
23098 if test "x$found_mspack_h" = "x1"; then
23099 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23100echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23101if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23102 echo $ECHO_N "(cached) $ECHO_C" >&6
23103else
23104 ac_check_lib_save_LIBS=$LIBS
23105LIBS="-lmspack $LIBS"
23106cat >conftest.$ac_ext <<_ACEOF
23107/* confdefs.h. */
23108_ACEOF
23109cat confdefs.h >>conftest.$ac_ext
23110cat >>conftest.$ac_ext <<_ACEOF
23111/* end confdefs.h. */
23112
23113/* Override any gcc2 internal prototype to avoid an error. */
23114#ifdef __cplusplus
23115extern "C"
23116#endif
23117/* We use char because int might match the return type of a gcc2
23118 builtin and then its argument prototype would still apply. */
23119char mspack_create_chm_decompressor ();
23120int
23121main ()
23122{
23123mspack_create_chm_decompressor ();
23124 ;
23125 return 0;
23126}
23127_ACEOF
23128rm -f conftest.$ac_objext conftest$ac_exeext
23129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23130 (eval $ac_link) 2>conftest.er1
a848cd7e 23131 ac_status=$?
ac1cb8d3
VS
23132 grep -v '^ *+' conftest.er1 >conftest.err
23133 rm -f conftest.er1
23134 cat conftest.err >&5
a848cd7e
SC
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } &&
89be85c2
VS
23137 { ac_try='test -z "$ac_c_werror_flag"
23138 || test ! -s conftest.err'
ac1cb8d3
VS
23139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140 (eval $ac_try) 2>&5
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; } &&
23144 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23146 (eval $ac_try) 2>&5
23147 ac_status=$?
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); }; }; then
23150 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23151else
23152 echo "$as_me: failed program was:" >&5
23153sed 's/^/| /' conftest.$ac_ext >&5
23154
23155ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23156fi
ac1cb8d3
VS
23157rm -f conftest.err conftest.$ac_objext \
23158 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23159LIBS=$ac_check_lib_save_LIBS
23160fi
23161echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23162echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23163if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23164 MSPACK_LINK=" -lmspack"
23165fi
23166
23167 fi
23168 if test "x$MSPACK_LINK" = "x" ; then
23169 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23170 fi
23171fi
23172
23173if test "$wxUSE_LIBMSPACK" != "no"; then
23174 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23175#define wxUSE_LIBMSPACK 1
23176_ACEOF
23177
a848cd7e
SC
23178fi
23179
23180
23181
23182AFMINSTALL=
23183WIN32INSTALL=
23184
23185TOOLKIT=
23186TOOLKIT_INCLUDE=
23187WIDGET_SET=
23188
23189if test "$USE_WIN32" = 1 ; then
23190
23191for ac_header in w32api.h
23192do
23193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23194if eval "test \"\${$as_ac_Header+set}\" = set"; then
23195 echo "$as_me:$LINENO: checking for $ac_header" >&5
23196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23197if eval "test \"\${$as_ac_Header+set}\" = set"; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23199fi
23200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23202else
23203 # Is the header compilable?
23204echo "$as_me:$LINENO: checking $ac_header usability" >&5
23205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23206cat >conftest.$ac_ext <<_ACEOF
23207/* confdefs.h. */
23208_ACEOF
23209cat confdefs.h >>conftest.$ac_ext
23210cat >>conftest.$ac_ext <<_ACEOF
23211/* end confdefs.h. */
23212$ac_includes_default
23213#include <$ac_header>
23214_ACEOF
23215rm -f conftest.$ac_objext
23216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23217 (eval $ac_compile) 2>conftest.er1
a848cd7e 23218 ac_status=$?
ac1cb8d3
VS
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
a848cd7e
SC
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
89be85c2
VS
23224 { ac_try='test -z "$ac_c_werror_flag"
23225 || test ! -s conftest.err'
ac1cb8d3
VS
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } &&
23231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 ac_header_compiler=yes
23238else
23239 echo "$as_me: failed program was:" >&5
23240sed 's/^/| /' conftest.$ac_ext >&5
23241
23242ac_header_compiler=no
23243fi
ac1cb8d3 23244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23245echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23246echo "${ECHO_T}$ac_header_compiler" >&6
23247
23248# Is the header present?
23249echo "$as_me:$LINENO: checking $ac_header presence" >&5
23250echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23251cat >conftest.$ac_ext <<_ACEOF
23252/* confdefs.h. */
23253_ACEOF
23254cat confdefs.h >>conftest.$ac_ext
23255cat >>conftest.$ac_ext <<_ACEOF
23256/* end confdefs.h. */
23257#include <$ac_header>
23258_ACEOF
23259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23261 ac_status=$?
23262 grep -v '^ *+' conftest.er1 >conftest.err
23263 rm -f conftest.er1
23264 cat conftest.err >&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); } >/dev/null; then
23267 if test -s conftest.err; then
23268 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23270 else
23271 ac_cpp_err=
23272 fi
23273else
23274 ac_cpp_err=yes
23275fi
23276if test -z "$ac_cpp_err"; then
23277 ac_header_preproc=yes
23278else
23279 echo "$as_me: failed program was:" >&5
23280sed 's/^/| /' conftest.$ac_ext >&5
23281
23282 ac_header_preproc=no
23283fi
23284rm -f conftest.err conftest.$ac_ext
23285echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23286echo "${ECHO_T}$ac_header_preproc" >&6
23287
23288# So? What about this header?
ac1cb8d3
VS
23289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23290 yes:no: )
a848cd7e
SC
23291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23292echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23294echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23295 ac_header_preproc=yes
a848cd7e 23296 ;;
ac1cb8d3 23297 no:yes:* )
a848cd7e
SC
23298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23301echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23303echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23305echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23307echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23309echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23310 (
23311 cat <<\_ASBOX
ac1cb8d3
VS
23312## ----------------------------------------- ##
23313## Report this to wx-dev@lists.wxwidgets.org ##
23314## ----------------------------------------- ##
a848cd7e
SC
23315_ASBOX
23316 ) |
23317 sed "s/^/$as_me: WARNING: /" >&2
23318 ;;
23319esac
23320echo "$as_me:$LINENO: checking for $ac_header" >&5
23321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23322if eval "test \"\${$as_ac_Header+set}\" = set"; then
23323 echo $ECHO_N "(cached) $ECHO_C" >&6
23324else
ac1cb8d3 23325 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23326fi
23327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23328echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23329
23330fi
23331if test `eval echo '${'$as_ac_Header'}'` = yes; then
23332 cat >>confdefs.h <<_ACEOF
23333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23334_ACEOF
23335
23336fi
23337
23338done
23339
23340 if test "${ac_cv_header_windows_h+set}" = set; then
23341 echo "$as_me:$LINENO: checking for windows.h" >&5
23342echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23343if test "${ac_cv_header_windows_h+set}" = set; then
23344 echo $ECHO_N "(cached) $ECHO_C" >&6
23345fi
23346echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23347echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23348else
23349 # Is the header compilable?
23350echo "$as_me:$LINENO: checking windows.h usability" >&5
23351echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23352cat >conftest.$ac_ext <<_ACEOF
23353/* confdefs.h. */
23354_ACEOF
23355cat confdefs.h >>conftest.$ac_ext
23356cat >>conftest.$ac_ext <<_ACEOF
23357/* end confdefs.h. */
23358$ac_includes_default
23359#include <windows.h>
23360_ACEOF
23361rm -f conftest.$ac_objext
23362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23363 (eval $ac_compile) 2>conftest.er1
a848cd7e 23364 ac_status=$?
ac1cb8d3
VS
23365 grep -v '^ *+' conftest.er1 >conftest.err
23366 rm -f conftest.er1
23367 cat conftest.err >&5
a848cd7e
SC
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); } &&
89be85c2
VS
23370 { ac_try='test -z "$ac_c_werror_flag"
23371 || test ! -s conftest.err'
ac1cb8d3
VS
23372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23373 (eval $ac_try) 2>&5
23374 ac_status=$?
23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); }; } &&
23377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23379 (eval $ac_try) 2>&5
23380 ac_status=$?
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); }; }; then
23383 ac_header_compiler=yes
23384else
23385 echo "$as_me: failed program was:" >&5
23386sed 's/^/| /' conftest.$ac_ext >&5
23387
23388ac_header_compiler=no
23389fi
ac1cb8d3 23390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23391echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23392echo "${ECHO_T}$ac_header_compiler" >&6
23393
23394# Is the header present?
23395echo "$as_me:$LINENO: checking windows.h presence" >&5
23396echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
23397cat >conftest.$ac_ext <<_ACEOF
23398/* confdefs.h. */
23399_ACEOF
23400cat confdefs.h >>conftest.$ac_ext
23401cat >>conftest.$ac_ext <<_ACEOF
23402/* end confdefs.h. */
23403#include <windows.h>
23404_ACEOF
23405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23407 ac_status=$?
23408 grep -v '^ *+' conftest.er1 >conftest.err
23409 rm -f conftest.er1
23410 cat conftest.err >&5
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); } >/dev/null; then
23413 if test -s conftest.err; then
23414 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23416 else
23417 ac_cpp_err=
23418 fi
23419else
23420 ac_cpp_err=yes
23421fi
23422if test -z "$ac_cpp_err"; then
23423 ac_header_preproc=yes
23424else
23425 echo "$as_me: failed program was:" >&5
23426sed 's/^/| /' conftest.$ac_ext >&5
23427
23428 ac_header_preproc=no
23429fi
23430rm -f conftest.err conftest.$ac_ext
23431echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23432echo "${ECHO_T}$ac_header_preproc" >&6
23433
23434# So? What about this header?
ac1cb8d3
VS
23435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23436 yes:no: )
a848cd7e
SC
23437 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23438echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23439 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23440echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23441 ac_header_preproc=yes
a848cd7e 23442 ;;
ac1cb8d3 23443 no:yes:* )
a848cd7e
SC
23444 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23445echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23446 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23447echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23448 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23449echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23450 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23451echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23452 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23453echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23454 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23455echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23456 (
23457 cat <<\_ASBOX
ac1cb8d3
VS
23458## ----------------------------------------- ##
23459## Report this to wx-dev@lists.wxwidgets.org ##
23460## ----------------------------------------- ##
a848cd7e
SC
23461_ASBOX
23462 ) |
23463 sed "s/^/$as_me: WARNING: /" >&2
23464 ;;
23465esac
23466echo "$as_me:$LINENO: checking for windows.h" >&5
23467echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23468if test "${ac_cv_header_windows_h+set}" = set; then
23469 echo $ECHO_N "(cached) $ECHO_C" >&6
23470else
23471 ac_cv_header_windows_h=$ac_header_preproc
23472fi
23473echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23474echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23475
23476fi
23477if test $ac_cv_header_windows_h = yes; then
23478 :
23479else
23480
23481 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
23482echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
23483 { (exit 1); exit 1; }; }
23484
23485fi
23486
23487
23488
23489 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
23490
23491 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
23492 LIBS="$LIBS -loleacc"
23493 fi
23494
23495 case "${host}" in
23496 *-*-cygwin* )
23497 LIBS="$LIBS -lkernel32 -luser32"
23498 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
23499 esac
23500
23501 if test "$wxUSE_ODBC" = "sys" ; then
23502 wxUSE_ODBC = "yes"
23503 fi
23504 if test "$wxUSE_ODBC" = "yes" ; then
23505 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
23506 cat >>confdefs.h <<\_ACEOF
23507#define wxUSE_ODBC 1
23508_ACEOF
23509
23510 fi
23511
23512 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
23513 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
23514
23515 WIN32INSTALL=win32install
23516fi
23517
23518if test "$wxUSE_GUI" = "yes"; then
23519 USE_GUI=1
23520
23521 GUI_TK_LIBRARY=
23522
23523 WXGTK12=
23524 WXGTK127=
23525 WXGTK20=
23526 WXGPE=
23527
207bc66c
RN
23528 if test "$wxUSE_COCOA" = 1 ; then
23529 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
23530 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
23531echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
23532 wxUSE_PRINTING_ARCHITECTURE=no
23533 fi
23534 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
23535 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
23536echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
23537 wxUSE_DRAG_AND_DROP=no
23538 fi
23539 if test "$wxUSE_DRAGIMAGE" = "yes"; then
23540 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
23541echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
23542 wxUSE_DRAGIMAGE=no
23543 fi
23544 fi
23545
a848cd7e
SC
23546 if test "$wxUSE_MSW" = 1 ; then
23547 TOOLKIT=MSW
23548 GUIDIST=MSW_DIST
23549
ceec2216 23550 case "${host}" in
a848cd7e
SC
23551 *-*-mingw32* )
23552 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
23553 esac
23554 fi
23555
23556 if test "$wxUSE_GTK" = 1; then
23557 echo "$as_me:$LINENO: checking for GTK+ version" >&5
23558echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
23559
23560 gtk_version_cached=1
23561 if test "${wx_cv_lib_gtk+set}" = set; then
23562 echo $ECHO_N "(cached) $ECHO_C" >&6
23563else
23564
23565 gtk_version_cached=0
23566 echo "$as_me:$LINENO: result: " >&5
23567echo "${ECHO_T}" >&6
23568
23569 GTK_MODULES=
23570 if test "$wxUSE_THREADS" = "yes"; then
23571 GTK_MODULES=gthread
23572 fi
23573
23574 wx_cv_lib_gtk=
23575 if test "x$wxUSE_GTK2" = "xyes"; then
23576 # Check whether --enable-gtktest or --disable-gtktest was given.
23577if test "${enable_gtktest+set}" = set; then
23578 enableval="$enable_gtktest"
23579
23580else
23581 enable_gtktest=yes
23582fi;
23583
23584 pkg_config_args=gtk+-2.0
23585 for module in . $GTK_MODULES
23586 do
23587 case "$module" in
23588 gthread)
23589 pkg_config_args="$pkg_config_args gthread-2.0"
23590 ;;
23591 esac
23592 done
23593
23594 no_gtk=""
23595
23596 # Extract the first word of "pkg-config", so it can be a program name with args.
23597set dummy pkg-config; ac_word=$2
23598echo "$as_me:$LINENO: checking for $ac_word" >&5
23599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23600if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
23602else
23603 case $PKG_CONFIG in
23604 [\\/]* | ?:[\\/]*)
23605 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23606 ;;
23607 *)
23608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23609for as_dir in $PATH
23610do
23611 IFS=$as_save_IFS
23612 test -z "$as_dir" && as_dir=.
23613 for ac_exec_ext in '' $ac_executable_extensions; do
23614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23615 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23617 break 2
23618 fi
23619done
23620done
23621
23622 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23623 ;;
23624esac
23625fi
23626PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23627
23628if test -n "$PKG_CONFIG"; then
23629 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23630echo "${ECHO_T}$PKG_CONFIG" >&6
23631else
23632 echo "$as_me:$LINENO: result: no" >&5
23633echo "${ECHO_T}no" >&6
23634fi
23635
23636
23637 if test x$PKG_CONFIG != xno ; then
23638 if pkg-config --atleast-pkgconfig-version 0.7 ; then
23639 :
23640 else
c2218763 23641 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
23642 no_gtk=yes
23643 PKG_CONFIG=no
23644 fi
23645 else
23646 no_gtk=yes
23647 fi
23648
23649 min_gtk_version=2.0.0
23650 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
23651echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
23652
23653 if test x$PKG_CONFIG != xno ; then
23654 ## don't try to run the test against uninstalled libtool libs
23655 if $PKG_CONFIG --uninstalled $pkg_config_args; then
23656 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
23657 enable_gtktest=no
23658 fi
23659
23660 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
23661 :
23662 else
23663 no_gtk=yes
23664 fi
23665 fi
23666
23667 if test x"$no_gtk" = x ; then
23668 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
23669 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
23670 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23671 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23672 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23673 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23674 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23675 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23676 if test "x$enable_gtktest" = "xyes" ; then
23677 ac_save_CFLAGS="$CFLAGS"
23678 ac_save_LIBS="$LIBS"
23679 CFLAGS="$CFLAGS $GTK_CFLAGS"
23680 LIBS="$GTK_LIBS $LIBS"
23681 rm -f conf.gtktest
23682 if test "$cross_compiling" = yes; then
23683 echo $ac_n "cross compiling; assumed OK... $ac_c"
23684else
23685 cat >conftest.$ac_ext <<_ACEOF
23686/* confdefs.h. */
23687_ACEOF
23688cat confdefs.h >>conftest.$ac_ext
23689cat >>conftest.$ac_ext <<_ACEOF
23690/* end confdefs.h. */
23691
23692#include <gtk/gtk.h>
23693#include <stdio.h>
23694#include <stdlib.h>
23695
23696int
23697main ()
23698{
23699 int major, minor, micro;
23700 char *tmp_version;
23701
23702 system ("touch conf.gtktest");
23703
23704 /* HP/UX 9 (%@#!) writes to sscanf strings */
23705 tmp_version = g_strdup("$min_gtk_version");
23706 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23707 printf("%s, bad version string\n", "$min_gtk_version");
23708 exit(1);
23709 }
23710
23711 if ((gtk_major_version != $gtk_config_major_version) ||
23712 (gtk_minor_version != $gtk_config_minor_version) ||
23713 (gtk_micro_version != $gtk_config_micro_version))
23714 {
23715 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23716 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23717 gtk_major_version, gtk_minor_version, gtk_micro_version);
23718 printf ("*** was found! If pkg-config was correct, then it is best\n");
23719 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23720 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23721 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23722 printf("*** required on your system.\n");
23723 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
23724 printf("*** to point to the correct configuration files\n");
23725 }
23726 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23727 (gtk_minor_version != GTK_MINOR_VERSION) ||
23728 (gtk_micro_version != GTK_MICRO_VERSION))
23729 {
23730 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23731 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23732 printf("*** library (version %d.%d.%d)\n",
23733 gtk_major_version, gtk_minor_version, gtk_micro_version);
23734 }
23735 else
23736 {
23737 if ((gtk_major_version > major) ||
23738 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23739 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23740 {
23741 return 0;
23742 }
23743 else
23744 {
23745 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23746 gtk_major_version, gtk_minor_version, gtk_micro_version);
23747 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23748 major, minor, micro);
23749 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23750 printf("***\n");
23751 printf("*** If you have already installed a sufficiently new version, this error\n");
23752 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
23753 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23754 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
23755 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
23756 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23757 printf("*** so that the correct libraries are found at run-time))\n");
23758 }
23759 }
23760 return 1;
23761}
23762
23763_ACEOF
23764rm -f conftest$ac_exeext
23765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23766 (eval $ac_link) 2>&5
23767 ac_status=$?
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23772 ac_status=$?
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; }; then
23775 :
23776else
23777 echo "$as_me: program exited with status $ac_status" >&5
23778echo "$as_me: failed program was:" >&5
23779sed 's/^/| /' conftest.$ac_ext >&5
23780
23781( exit $ac_status )
23782no_gtk=yes
23783fi
ac1cb8d3 23784rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23785fi
23786 CFLAGS="$ac_save_CFLAGS"
23787 LIBS="$ac_save_LIBS"
23788 fi
23789 fi
23790 if test "x$no_gtk" = x ; then
23791 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23792echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23793 wx_cv_lib_gtk=2.0
23794 else
23795 echo "$as_me:$LINENO: result: no" >&5
23796echo "${ECHO_T}no" >&6
23797 if test "$PKG_CONFIG" = "no" ; then
23798 echo "*** A new enough version of pkg-config was not found."
23799 echo "*** See http://pkgconfig.sourceforge.net"
23800 else
23801 if test -f conf.gtktest ; then
23802 :
23803 else
23804 echo "*** Could not run GTK+ test program, checking why..."
23805 ac_save_CFLAGS="$CFLAGS"
23806 ac_save_LIBS="$LIBS"
23807 CFLAGS="$CFLAGS $GTK_CFLAGS"
23808 LIBS="$LIBS $GTK_LIBS"
23809 cat >conftest.$ac_ext <<_ACEOF
23810/* confdefs.h. */
23811_ACEOF
23812cat confdefs.h >>conftest.$ac_ext
23813cat >>conftest.$ac_ext <<_ACEOF
23814/* end confdefs.h. */
23815
23816#include <gtk/gtk.h>
23817#include <stdio.h>
23818
23819int
23820main ()
23821{
23822 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23823 ;
23824 return 0;
23825}
23826_ACEOF
23827rm -f conftest.$ac_objext conftest$ac_exeext
23828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23829 (eval $ac_link) 2>conftest.er1
a848cd7e 23830 ac_status=$?
ac1cb8d3
VS
23831 grep -v '^ *+' conftest.er1 >conftest.err
23832 rm -f conftest.er1
23833 cat conftest.err >&5
a848cd7e
SC
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } &&
89be85c2
VS
23836 { ac_try='test -z "$ac_c_werror_flag"
23837 || test ! -s conftest.err'
ac1cb8d3
VS
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23840 ac_status=$?
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; } &&
23843 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23846 ac_status=$?
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; }; then
23849 echo "*** The test program compiled, but did not run. This usually means"
23850 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23851 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23852 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23853 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23854 echo "*** is required on your system"
23855 echo "***"
23856 echo "*** If you have an old version installed, it is best to remove it, although"
23857 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23858else
23859 echo "$as_me: failed program was:" >&5
23860sed 's/^/| /' conftest.$ac_ext >&5
23861
23862 echo "*** The test program failed to compile or link. See the file config.log for the"
23863 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23864fi
ac1cb8d3
VS
23865rm -f conftest.err conftest.$ac_objext \
23866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23867 CFLAGS="$ac_save_CFLAGS"
23868 LIBS="$ac_save_LIBS"
23869 fi
23870 fi
23871 GTK_CFLAGS=""
23872 GTK_LIBS=""
23873 :
23874 fi
23875
23876
23877 rm -f conf.gtktest
23878
23879 else
23880
23881# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23882if test "${with_gtk_prefix+set}" = set; then
23883 withval="$with_gtk_prefix"
23884 gtk_config_prefix="$withval"
23885else
23886 gtk_config_prefix=""
23887fi;
23888
23889# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23890if test "${with_gtk_exec_prefix+set}" = set; then
23891 withval="$with_gtk_exec_prefix"
23892 gtk_config_exec_prefix="$withval"
23893else
23894 gtk_config_exec_prefix=""
23895fi;
23896# Check whether --enable-gtktest or --disable-gtktest was given.
23897if test "${enable_gtktest+set}" = set; then
23898 enableval="$enable_gtktest"
23899
23900else
23901 enable_gtktest=yes
23902fi;
23903
23904 for module in . $GTK_MODULES
23905 do
23906 case "$module" in
23907 gthread)
23908 gtk_config_args="$gtk_config_args gthread"
23909 ;;
23910 esac
23911 done
23912
23913 if test x$gtk_config_exec_prefix != x ; then
23914 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23915 if test x${GTK_CONFIG+set} != xset ; then
23916 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23917 fi
23918 fi
23919 if test x$gtk_config_prefix != x ; then
23920 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23921 if test x${GTK_CONFIG+set} != xset ; then
23922 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23923 fi
23924 fi
23925
23926 # Extract the first word of "gtk-config", so it can be a program name with args.
23927set dummy gtk-config; ac_word=$2
23928echo "$as_me:$LINENO: checking for $ac_word" >&5
23929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23930if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23931 echo $ECHO_N "(cached) $ECHO_C" >&6
23932else
23933 case $GTK_CONFIG in
23934 [\\/]* | ?:[\\/]*)
23935 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23936 ;;
23937 *)
23938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23939for as_dir in $PATH
23940do
23941 IFS=$as_save_IFS
23942 test -z "$as_dir" && as_dir=.
23943 for ac_exec_ext in '' $ac_executable_extensions; do
23944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23945 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23947 break 2
23948 fi
23949done
23950done
23951
23952 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23953 ;;
23954esac
23955fi
23956GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23957
23958if test -n "$GTK_CONFIG"; then
23959 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23960echo "${ECHO_T}$GTK_CONFIG" >&6
23961else
23962 echo "$as_me:$LINENO: result: no" >&5
23963echo "${ECHO_T}no" >&6
23964fi
23965
23966 min_gtk_version=1.2.7
23967 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23968echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23969 no_gtk=""
23970 if test "$GTK_CONFIG" = "no" ; then
23971 no_gtk=yes
23972 else
23973 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23974 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23975 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23976 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23977 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23978 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23979 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23980 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23981 if test "x$enable_gtktest" = "xyes" ; then
23982 ac_save_CFLAGS="$CFLAGS"
23983 ac_save_LIBS="$LIBS"
23984 CFLAGS="$CFLAGS $GTK_CFLAGS"
23985 LIBS="$GTK_LIBS $LIBS"
23986 rm -f conf.gtktest
23987 if test "$cross_compiling" = yes; then
23988 echo $ac_n "cross compiling; assumed OK... $ac_c"
23989else
23990 cat >conftest.$ac_ext <<_ACEOF
23991/* confdefs.h. */
23992_ACEOF
23993cat confdefs.h >>conftest.$ac_ext
23994cat >>conftest.$ac_ext <<_ACEOF
23995/* end confdefs.h. */
23996
23997#include <gtk/gtk.h>
23998#include <stdio.h>
23999#include <stdlib.h>
24000
24001int
24002main ()
24003{
24004 int major, minor, micro;
24005 char *tmp_version;
24006
24007 system ("touch conf.gtktest");
24008
24009 /* HP/UX 9 (%@#!) writes to sscanf strings */
24010 tmp_version = g_strdup("$min_gtk_version");
24011 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24012 printf("%s, bad version string\n", "$min_gtk_version");
24013 exit(1);
24014 }
24015
24016 if ((gtk_major_version != $gtk_config_major_version) ||
24017 (gtk_minor_version != $gtk_config_minor_version) ||
24018 (gtk_micro_version != $gtk_config_micro_version))
24019 {
24020 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24021 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24022 gtk_major_version, gtk_minor_version, gtk_micro_version);
24023 printf ("*** was found! If gtk-config was correct, then it is best\n");
24024 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24025 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24026 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24027 printf("*** required on your system.\n");
24028 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24029 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24030 printf("*** before re-running configure\n");
24031 }
24032#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24033 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24034 (gtk_minor_version != GTK_MINOR_VERSION) ||
24035 (gtk_micro_version != GTK_MICRO_VERSION))
24036 {
24037 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24038 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24039 printf("*** library (version %d.%d.%d)\n",
24040 gtk_major_version, gtk_minor_version, gtk_micro_version);
24041 }
24042#endif /* defined (GTK_MAJOR_VERSION) ... */
24043 else
24044 {
24045 if ((gtk_major_version > major) ||
24046 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24047 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24048 {
24049 return 0;
24050 }
24051 else
24052 {
24053 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24054 gtk_major_version, gtk_minor_version, gtk_micro_version);
24055 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24056 major, minor, micro);
24057 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24058 printf("***\n");
24059 printf("*** If you have already installed a sufficiently new version, this error\n");
24060 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24061 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24062 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24063 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24064 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24065 printf("*** so that the correct libraries are found at run-time))\n");
24066 }
24067 }
24068 return 1;
24069}
24070
24071_ACEOF
24072rm -f conftest$ac_exeext
24073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24074 (eval $ac_link) 2>&5
24075 ac_status=$?
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24079 (eval $ac_try) 2>&5
24080 ac_status=$?
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); }; }; then
24083 :
24084else
24085 echo "$as_me: program exited with status $ac_status" >&5
24086echo "$as_me: failed program was:" >&5
24087sed 's/^/| /' conftest.$ac_ext >&5
24088
24089( exit $ac_status )
24090no_gtk=yes
24091fi
ac1cb8d3 24092rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24093fi
24094 CFLAGS="$ac_save_CFLAGS"
24095 LIBS="$ac_save_LIBS"
24096 fi
24097 fi
24098 if test "x$no_gtk" = x ; then
24099 echo "$as_me:$LINENO: result: yes" >&5
24100echo "${ECHO_T}yes" >&6
24101 wx_cv_lib_gtk=1.2.7
24102 else
24103 echo "$as_me:$LINENO: result: no" >&5
24104echo "${ECHO_T}no" >&6
24105 if test "$GTK_CONFIG" = "no" ; then
24106 echo "*** The gtk-config script installed by GTK could not be found"
24107 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24108 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24109 echo "*** full path to gtk-config."
24110 else
24111 if test -f conf.gtktest ; then
24112 :
24113 else
24114 echo "*** Could not run GTK test program, checking why..."
24115 CFLAGS="$CFLAGS $GTK_CFLAGS"
24116 LIBS="$LIBS $GTK_LIBS"
24117 cat >conftest.$ac_ext <<_ACEOF
24118/* confdefs.h. */
24119_ACEOF
24120cat confdefs.h >>conftest.$ac_ext
24121cat >>conftest.$ac_ext <<_ACEOF
24122/* end confdefs.h. */
24123
24124#include <gtk/gtk.h>
24125#include <stdio.h>
24126
24127int
24128main ()
24129{
24130 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24131 ;
24132 return 0;
24133}
24134_ACEOF
24135rm -f conftest.$ac_objext conftest$ac_exeext
24136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24137 (eval $ac_link) 2>conftest.er1
a848cd7e 24138 ac_status=$?
ac1cb8d3
VS
24139 grep -v '^ *+' conftest.er1 >conftest.err
24140 rm -f conftest.er1
24141 cat conftest.err >&5
a848cd7e
SC
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); } &&
89be85c2
VS
24144 { ac_try='test -z "$ac_c_werror_flag"
24145 || test ! -s conftest.err'
ac1cb8d3
VS
24146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24147 (eval $ac_try) 2>&5
24148 ac_status=$?
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); }; } &&
24151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24154 ac_status=$?
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; }; then
24157 echo "*** The test program compiled, but did not run. This usually means"
24158 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24159 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24160 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24161 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24162 echo "*** is required on your system"
24163 echo "***"
24164 echo "*** If you have an old version installed, it is best to remove it, although"
24165 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24166 echo "***"
24167 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24168 echo "*** came with the system with the command"
24169 echo "***"
24170 echo "*** rpm --erase --nodeps gtk gtk-devel"
24171else
24172 echo "$as_me: failed program was:" >&5
24173sed 's/^/| /' conftest.$ac_ext >&5
24174
24175 echo "*** The test program failed to compile or link. See the file config.log for the"
24176 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24177 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24178 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24179fi
ac1cb8d3
VS
24180rm -f conftest.err conftest.$ac_objext \
24181 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24182 CFLAGS="$ac_save_CFLAGS"
24183 LIBS="$ac_save_LIBS"
24184 fi
24185 fi
24186 GTK_CFLAGS=""
24187 GTK_LIBS=""
24188 :
24189 fi
24190
24191
24192 rm -f conf.gtktest
24193
24194
24195 if test -z "$wx_cv_lib_gtk"; then
24196
24197# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24198if test "${with_gtk_prefix+set}" = set; then
24199 withval="$with_gtk_prefix"
24200 gtk_config_prefix="$withval"
24201else
24202 gtk_config_prefix=""
24203fi;
24204
24205# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24206if test "${with_gtk_exec_prefix+set}" = set; then
24207 withval="$with_gtk_exec_prefix"
24208 gtk_config_exec_prefix="$withval"
24209else
24210 gtk_config_exec_prefix=""
24211fi;
24212# Check whether --enable-gtktest or --disable-gtktest was given.
24213if test "${enable_gtktest+set}" = set; then
24214 enableval="$enable_gtktest"
24215
24216else
24217 enable_gtktest=yes
24218fi;
24219
24220 for module in . $GTK_MODULES
24221 do
24222 case "$module" in
24223 gthread)
24224 gtk_config_args="$gtk_config_args gthread"
24225 ;;
24226 esac
24227 done
24228
24229 if test x$gtk_config_exec_prefix != x ; then
24230 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24231 if test x${GTK_CONFIG+set} != xset ; then
24232 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24233 fi
24234 fi
24235 if test x$gtk_config_prefix != x ; then
24236 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24237 if test x${GTK_CONFIG+set} != xset ; then
24238 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24239 fi
24240 fi
24241
24242 # Extract the first word of "gtk-config", so it can be a program name with args.
24243set dummy gtk-config; ac_word=$2
24244echo "$as_me:$LINENO: checking for $ac_word" >&5
24245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24246if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24247 echo $ECHO_N "(cached) $ECHO_C" >&6
24248else
24249 case $GTK_CONFIG in
24250 [\\/]* | ?:[\\/]*)
24251 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24252 ;;
24253 *)
24254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24255for as_dir in $PATH
24256do
24257 IFS=$as_save_IFS
24258 test -z "$as_dir" && as_dir=.
24259 for ac_exec_ext in '' $ac_executable_extensions; do
24260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24261 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24263 break 2
24264 fi
24265done
24266done
24267
24268 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24269 ;;
24270esac
24271fi
24272GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24273
24274if test -n "$GTK_CONFIG"; then
24275 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24276echo "${ECHO_T}$GTK_CONFIG" >&6
24277else
24278 echo "$as_me:$LINENO: result: no" >&5
24279echo "${ECHO_T}no" >&6
24280fi
24281
24282 min_gtk_version=1.2.3
24283 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24284echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24285 no_gtk=""
24286 if test "$GTK_CONFIG" = "no" ; then
24287 no_gtk=yes
24288 else
24289 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24290 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24291 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24292 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24293 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24294 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24295 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24296 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24297 if test "x$enable_gtktest" = "xyes" ; then
24298 ac_save_CFLAGS="$CFLAGS"
24299 ac_save_LIBS="$LIBS"
24300 CFLAGS="$CFLAGS $GTK_CFLAGS"
24301 LIBS="$GTK_LIBS $LIBS"
24302 rm -f conf.gtktest
24303 if test "$cross_compiling" = yes; then
24304 echo $ac_n "cross compiling; assumed OK... $ac_c"
24305else
24306 cat >conftest.$ac_ext <<_ACEOF
24307/* confdefs.h. */
24308_ACEOF
24309cat confdefs.h >>conftest.$ac_ext
24310cat >>conftest.$ac_ext <<_ACEOF
24311/* end confdefs.h. */
24312
24313#include <gtk/gtk.h>
24314#include <stdio.h>
24315#include <stdlib.h>
24316
24317int
24318main ()
24319{
24320 int major, minor, micro;
24321 char *tmp_version;
24322
24323 system ("touch conf.gtktest");
24324
24325 /* HP/UX 9 (%@#!) writes to sscanf strings */
24326 tmp_version = g_strdup("$min_gtk_version");
24327 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24328 printf("%s, bad version string\n", "$min_gtk_version");
24329 exit(1);
24330 }
24331
24332 if ((gtk_major_version != $gtk_config_major_version) ||
24333 (gtk_minor_version != $gtk_config_minor_version) ||
24334 (gtk_micro_version != $gtk_config_micro_version))
24335 {
24336 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24337 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24338 gtk_major_version, gtk_minor_version, gtk_micro_version);
24339 printf ("*** was found! If gtk-config was correct, then it is best\n");
24340 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24341 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24342 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24343 printf("*** required on your system.\n");
24344 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24345 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24346 printf("*** before re-running configure\n");
24347 }
24348#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24349 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24350 (gtk_minor_version != GTK_MINOR_VERSION) ||
24351 (gtk_micro_version != GTK_MICRO_VERSION))
24352 {
24353 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24354 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24355 printf("*** library (version %d.%d.%d)\n",
24356 gtk_major_version, gtk_minor_version, gtk_micro_version);
24357 }
24358#endif /* defined (GTK_MAJOR_VERSION) ... */
24359 else
24360 {
24361 if ((gtk_major_version > major) ||
24362 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24363 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24364 {
24365 return 0;
24366 }
24367 else
24368 {
24369 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24370 gtk_major_version, gtk_minor_version, gtk_micro_version);
24371 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24372 major, minor, micro);
24373 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24374 printf("***\n");
24375 printf("*** If you have already installed a sufficiently new version, this error\n");
24376 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24377 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24378 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24379 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24380 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24381 printf("*** so that the correct libraries are found at run-time))\n");
24382 }
24383 }
24384 return 1;
24385}
24386
24387_ACEOF
24388rm -f conftest$ac_exeext
24389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24390 (eval $ac_link) 2>&5
24391 ac_status=$?
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395 (eval $ac_try) 2>&5
24396 ac_status=$?
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; }; then
24399 :
24400else
24401 echo "$as_me: program exited with status $ac_status" >&5
24402echo "$as_me: failed program was:" >&5
24403sed 's/^/| /' conftest.$ac_ext >&5
24404
24405( exit $ac_status )
24406no_gtk=yes
24407fi
ac1cb8d3 24408rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24409fi
24410 CFLAGS="$ac_save_CFLAGS"
24411 LIBS="$ac_save_LIBS"
24412 fi
24413 fi
24414 if test "x$no_gtk" = x ; then
24415 echo "$as_me:$LINENO: result: yes" >&5
24416echo "${ECHO_T}yes" >&6
24417 wx_cv_lib_gtk=1.2.3
24418 else
24419 echo "$as_me:$LINENO: result: no" >&5
24420echo "${ECHO_T}no" >&6
24421 if test "$GTK_CONFIG" = "no" ; then
24422 echo "*** The gtk-config script installed by GTK could not be found"
24423 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24424 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24425 echo "*** full path to gtk-config."
24426 else
24427 if test -f conf.gtktest ; then
24428 :
24429 else
24430 echo "*** Could not run GTK test program, checking why..."
24431 CFLAGS="$CFLAGS $GTK_CFLAGS"
24432 LIBS="$LIBS $GTK_LIBS"
24433 cat >conftest.$ac_ext <<_ACEOF
24434/* confdefs.h. */
24435_ACEOF
24436cat confdefs.h >>conftest.$ac_ext
24437cat >>conftest.$ac_ext <<_ACEOF
24438/* end confdefs.h. */
24439
24440#include <gtk/gtk.h>
24441#include <stdio.h>
24442
24443int
24444main ()
24445{
24446 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24447 ;
24448 return 0;
24449}
24450_ACEOF
24451rm -f conftest.$ac_objext conftest$ac_exeext
24452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24453 (eval $ac_link) 2>conftest.er1
a848cd7e 24454 ac_status=$?
ac1cb8d3
VS
24455 grep -v '^ *+' conftest.er1 >conftest.err
24456 rm -f conftest.er1
24457 cat conftest.err >&5
a848cd7e
SC
24458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); } &&
89be85c2
VS
24460 { ac_try='test -z "$ac_c_werror_flag"
24461 || test ! -s conftest.err'
ac1cb8d3
VS
24462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463 (eval $ac_try) 2>&5
24464 ac_status=$?
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); }; } &&
24467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24469 (eval $ac_try) 2>&5
24470 ac_status=$?
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); }; }; then
24473 echo "*** The test program compiled, but did not run. This usually means"
24474 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24475 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24476 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24477 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24478 echo "*** is required on your system"
24479 echo "***"
24480 echo "*** If you have an old version installed, it is best to remove it, although"
24481 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24482 echo "***"
24483 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24484 echo "*** came with the system with the command"
24485 echo "***"
24486 echo "*** rpm --erase --nodeps gtk gtk-devel"
24487else
24488 echo "$as_me: failed program was:" >&5
24489sed 's/^/| /' conftest.$ac_ext >&5
24490
24491 echo "*** The test program failed to compile or link. See the file config.log for the"
24492 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24493 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24494 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24495fi
ac1cb8d3
VS
24496rm -f conftest.err conftest.$ac_objext \
24497 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24498 CFLAGS="$ac_save_CFLAGS"
24499 LIBS="$ac_save_LIBS"
24500 fi
24501 fi
24502 GTK_CFLAGS=""
24503 GTK_LIBS=""
24504 :
24505 fi
24506
24507
24508 rm -f conf.gtktest
24509
24510 fi
24511 fi
24512
24513 if test -z "$wx_cv_lib_gtk"; then
24514 wx_cv_lib_gtk=none
24515 else
24516 wx_cv_cflags_gtk=$GTK_CFLAGS
24517 wx_cv_libs_gtk=$GTK_LIBS
24518 fi
24519
24520
24521fi
24522
24523
24524 if test "$gtk_version_cached" = 1; then
24525 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
24526echo "${ECHO_T}$wx_cv_lib_gtk" >&6
24527 fi
24528
24529 case "$wx_cv_lib_gtk" in
24530 2.0) WXGTK20=1
24531 TOOLKIT_VERSION=2
24532 ;;
24533 1.2.7) WXGTK127=1
24534 WXGTK12=1
24535 ;;
24536 1.2.3) WXGTK12=1
24537 ;;
24538 *) { { echo "$as_me:$LINENO: error:
24539Please check that gtk-config is in path, the directory
24540where GTK+ libraries are installed (returned by
24541'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24542equivalent variable and GTK+ is version 1.2.3 or above.
24543 " >&5
24544echo "$as_me: error:
24545Please check that gtk-config is in path, the directory
24546where GTK+ libraries are installed (returned by
24547'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24548equivalent variable and GTK+ is version 1.2.3 or above.
24549 " >&2;}
24550 { (exit 1); exit 1; }; }
24551 ;;
24552 esac
24553
24554 if test "$WXGTK20" = 1; then
304205f1
VS
24555 save_CFLAGS="$CFLAGS"
24556 save_LIBS="$LIBS"
24557 CFLAGS="$CFLAGS $GTK_CFLAGS"
24558 LIBS="$LIBS $GTK_LIBS"
24559
9755e73b 24560
304205f1
VS
24561for ac_func in pango_font_family_is_monospace
24562do
24563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24564echo "$as_me:$LINENO: checking for $ac_func" >&5
24565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24566if eval "test \"\${$as_ac_var+set}\" = set"; then
24567 echo $ECHO_N "(cached) $ECHO_C" >&6
24568else
24569 cat >conftest.$ac_ext <<_ACEOF
24570/* confdefs.h. */
24571_ACEOF
24572cat confdefs.h >>conftest.$ac_ext
24573cat >>conftest.$ac_ext <<_ACEOF
24574/* end confdefs.h. */
24575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24577#define $ac_func innocuous_$ac_func
24578
24579/* System header to define __stub macros and hopefully few prototypes,
24580 which can conflict with char $ac_func (); below.
24581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24582 <limits.h> exists even on freestanding compilers. */
24583
24584#ifdef __STDC__
24585# include <limits.h>
24586#else
24587# include <assert.h>
24588#endif
24589
24590#undef $ac_func
24591
24592/* Override any gcc2 internal prototype to avoid an error. */
24593#ifdef __cplusplus
24594extern "C"
24595{
24596#endif
24597/* We use char because int might match the return type of a gcc2
24598 builtin and then its argument prototype would still apply. */
24599char $ac_func ();
24600/* The GNU C library defines this for functions which it implements
24601 to always fail with ENOSYS. Some functions are actually named
24602 something starting with __ and the normal name is an alias. */
24603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24604choke me
24605#else
24606char (*f) () = $ac_func;
24607#endif
24608#ifdef __cplusplus
24609}
24610#endif
24611
24612int
24613main ()
24614{
24615return f != $ac_func;
24616 ;
24617 return 0;
24618}
24619_ACEOF
24620rm -f conftest.$ac_objext conftest$ac_exeext
24621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24622 (eval $ac_link) 2>conftest.er1
24623 ac_status=$?
24624 grep -v '^ *+' conftest.er1 >conftest.err
24625 rm -f conftest.er1
24626 cat conftest.err >&5
24627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628 (exit $ac_status); } &&
89be85c2
VS
24629 { ac_try='test -z "$ac_c_werror_flag"
24630 || test ! -s conftest.err'
304205f1
VS
24631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24632 (eval $ac_try) 2>&5
24633 ac_status=$?
24634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635 (exit $ac_status); }; } &&
24636 { ac_try='test -s conftest$ac_exeext'
24637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24638 (eval $ac_try) 2>&5
24639 ac_status=$?
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); }; }; then
24642 eval "$as_ac_var=yes"
24643else
24644 echo "$as_me: failed program was:" >&5
24645sed 's/^/| /' conftest.$ac_ext >&5
24646
24647eval "$as_ac_var=no"
24648fi
24649rm -f conftest.err conftest.$ac_objext \
24650 conftest$ac_exeext conftest.$ac_ext
24651fi
24652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24654if test `eval echo '${'$as_ac_var'}'` = yes; then
24655 cat >>confdefs.h <<_ACEOF
24656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24657_ACEOF
24658
24659fi
24660done
24661
9755e73b
VS
24662
24663 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
24664echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
24665 cat >conftest.$ac_ext <<_ACEOF
24666/* confdefs.h. */
24667_ACEOF
24668cat confdefs.h >>conftest.$ac_ext
24669cat >>conftest.$ac_ext <<_ACEOF
24670/* end confdefs.h. */
24671
24672 #include <gtk/gtk.h>
24673
24674int
24675main ()
24676{
24677
24678 #if !GTK_CHECK_VERSION(2,4,0)
24679 #error "Not GTK+ 2.4"
24680 #endif
24681
24682 ;
24683 return 0;
24684}
24685_ACEOF
24686rm -f conftest.$ac_objext
24687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24688 (eval $ac_compile) 2>conftest.er1
24689 ac_status=$?
24690 grep -v '^ *+' conftest.er1 >conftest.err
24691 rm -f conftest.er1
24692 cat conftest.err >&5
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); } &&
89be85c2
VS
24695 { ac_try='test -z "$ac_c_werror_flag"
24696 || test ! -s conftest.err'
9755e73b
VS
24697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24698 (eval $ac_try) 2>&5
24699 ac_status=$?
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; } &&
24702 { ac_try='test -s conftest.$ac_objext'
24703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24704 (eval $ac_try) 2>&5
24705 ac_status=$?
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); }; }; then
24708
24709 cat >>confdefs.h <<\_ACEOF
24710#define __WXGTK24__ 1
24711_ACEOF
24712
24713 echo "$as_me:$LINENO: result: yes" >&5
24714echo "${ECHO_T}yes" >&6
24715
24716else
24717 echo "$as_me: failed program was:" >&5
24718sed 's/^/| /' conftest.$ac_ext >&5
24719
24720
24721 echo "$as_me:$LINENO: result: no" >&5
24722echo "${ECHO_T}no" >&6
24723
24724fi
24725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24726
304205f1
VS
24727 CFLAGS="$save_CFLAGS"
24728 LIBS="$save_LIBS"
a848cd7e
SC
24729 else
24730 if test "$wxUSE_UNICODE" = "yes"; then
24731 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
24732echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
24733 wxUSE_UNICODE=no
24734 fi
24735 fi
24736
24737 if test "$USE_DARWIN" != 1; then
24738
24739for ac_func in poll
24740do
24741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24742echo "$as_me:$LINENO: checking for $ac_func" >&5
24743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24744if eval "test \"\${$as_ac_var+set}\" = set"; then
24745 echo $ECHO_N "(cached) $ECHO_C" >&6
24746else
24747 cat >conftest.$ac_ext <<_ACEOF
24748/* confdefs.h. */
24749_ACEOF
24750cat confdefs.h >>conftest.$ac_ext
24751cat >>conftest.$ac_ext <<_ACEOF
24752/* end confdefs.h. */
ac1cb8d3
VS
24753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24755#define $ac_func innocuous_$ac_func
24756
a848cd7e
SC
24757/* System header to define __stub macros and hopefully few prototypes,
24758 which can conflict with char $ac_func (); below.
24759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24760 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24761
a848cd7e
SC
24762#ifdef __STDC__
24763# include <limits.h>
24764#else
24765# include <assert.h>
24766#endif
ac1cb8d3
VS
24767
24768#undef $ac_func
24769
a848cd7e
SC
24770/* Override any gcc2 internal prototype to avoid an error. */
24771#ifdef __cplusplus
24772extern "C"
24773{
24774#endif
24775/* We use char because int might match the return type of a gcc2
24776 builtin and then its argument prototype would still apply. */
24777char $ac_func ();
24778/* The GNU C library defines this for functions which it implements
24779 to always fail with ENOSYS. Some functions are actually named
24780 something starting with __ and the normal name is an alias. */
24781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24782choke me
24783#else
24784char (*f) () = $ac_func;
24785#endif
24786#ifdef __cplusplus
24787}
24788#endif
24789
24790int
24791main ()
24792{
24793return f != $ac_func;
24794 ;
24795 return 0;
24796}
24797_ACEOF
24798rm -f conftest.$ac_objext conftest$ac_exeext
24799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24800 (eval $ac_link) 2>conftest.er1
a848cd7e 24801 ac_status=$?
ac1cb8d3
VS
24802 grep -v '^ *+' conftest.er1 >conftest.err
24803 rm -f conftest.er1
24804 cat conftest.err >&5
a848cd7e
SC
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); } &&
89be85c2
VS
24807 { ac_try='test -z "$ac_c_werror_flag"
24808 || test ! -s conftest.err'
ac1cb8d3
VS
24809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810 (eval $ac_try) 2>&5
24811 ac_status=$?
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); }; } &&
24814 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816 (eval $ac_try) 2>&5
24817 ac_status=$?
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); }; }; then
24820 eval "$as_ac_var=yes"
24821else
24822 echo "$as_me: failed program was:" >&5
24823sed 's/^/| /' conftest.$ac_ext >&5
24824
24825eval "$as_ac_var=no"
24826fi
ac1cb8d3
VS
24827rm -f conftest.err conftest.$ac_objext \
24828 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24829fi
24830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24832if test `eval echo '${'$as_ac_var'}'` = yes; then
24833 cat >>confdefs.h <<_ACEOF
24834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24835_ACEOF
24836
24837fi
24838done
24839
24840 fi
24841
24842 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24843 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24844
24845 AFMINSTALL=afminstall
24846 TOOLKIT=GTK
24847 GUIDIST=GTK_DIST
24848
24849 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24850echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24851if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24852 echo $ECHO_N "(cached) $ECHO_C" >&6
24853else
24854 ac_check_lib_save_LIBS=$LIBS
24855LIBS="-lgdk $LIBS"
24856cat >conftest.$ac_ext <<_ACEOF
24857/* confdefs.h. */
24858_ACEOF
24859cat confdefs.h >>conftest.$ac_ext
24860cat >>conftest.$ac_ext <<_ACEOF
24861/* end confdefs.h. */
24862
24863/* Override any gcc2 internal prototype to avoid an error. */
24864#ifdef __cplusplus
24865extern "C"
24866#endif
24867/* We use char because int might match the return type of a gcc2
24868 builtin and then its argument prototype would still apply. */
24869char gdk_im_open ();
24870int
24871main ()
24872{
24873gdk_im_open ();
24874 ;
24875 return 0;
24876}
24877_ACEOF
24878rm -f conftest.$ac_objext conftest$ac_exeext
24879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24880 (eval $ac_link) 2>conftest.er1
a848cd7e 24881 ac_status=$?
ac1cb8d3
VS
24882 grep -v '^ *+' conftest.er1 >conftest.err
24883 rm -f conftest.er1
24884 cat conftest.err >&5
a848cd7e
SC
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } &&
89be85c2
VS
24887 { ac_try='test -z "$ac_c_werror_flag"
24888 || test ! -s conftest.err'
ac1cb8d3
VS
24889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; } &&
24894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896 (eval $ac_try) 2>&5
24897 ac_status=$?
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); }; }; then
24900 ac_cv_lib_gdk_gdk_im_open=yes
24901else
24902 echo "$as_me: failed program was:" >&5
24903sed 's/^/| /' conftest.$ac_ext >&5
24904
24905ac_cv_lib_gdk_gdk_im_open=no
24906fi
ac1cb8d3
VS
24907rm -f conftest.err conftest.$ac_objext \
24908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24909LIBS=$ac_check_lib_save_LIBS
24910fi
24911echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24912echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24913if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24914 cat >>confdefs.h <<\_ACEOF
24915#define HAVE_XIM 1
24916_ACEOF
24917
24918fi
24919
24920
24921
24922 if test "$wxUSE_GPE" = "yes"; then
24923 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24924echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24925
24926ac_find_libraries=
24927for ac_dir in $SEARCH_LIB /usr/lib;
24928 do
24929 for ac_extension in a so sl dylib; do
24930 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24931 ac_find_libraries=$ac_dir
24932 break 2
24933 fi
24934 done
24935 done
24936
24937 if test "$ac_find_libraries" != "" ; then
24938
24939 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24940 result=$?
24941 if test $result = 0; then
24942 ac_path_to_link=""
24943 else
24944 ac_path_to_link=" -L$ac_find_libraries"
24945 fi
24946
24947 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24948 WXGPE=1
24949 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24950echo "${ECHO_T}found at $ac_find_libraries" >&6
24951 else
24952 echo "$as_me:$LINENO: result: not found" >&5
24953echo "${ECHO_T}not found" >&6
24954 fi
24955
24956 fi
24957 fi
24958
24959 if test "$wxUSE_MGL" = 1; then
24960 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24961echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24962 if test "x$MGL_ROOT" = x ; then
24963 echo "$as_me:$LINENO: result: not found" >&5
24964echo "${ECHO_T}not found" >&6
24965 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24966echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24967 { (exit 1); exit 1; }; }
24968 else
24969 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24970echo "${ECHO_T}$MGL_ROOT" >&6
24971 fi
24972
24973 echo "$as_me:$LINENO: checking for libmgl location" >&5
24974echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24975 case "${host}" in
24976 *-*-linux* )
24977 if test "x$wxUSE_SHARED" = xyes ; then
24978 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24979 else
24980 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24981 fi
24982 ;;
24983 *-pc-msdosdjgpp )
24984 mgl_os_candidates="dos32/dj2"
24985 ;;
24986 *)
24987 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24988echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24989 { (exit 1); exit 1; }; }
24990 esac
24991
24992 mgl_lib_type=""
24993 mgl_os=""
24994
24995 for mgl_os_i in $mgl_os_candidates ; do
24996 if test "x$mgl_os" = x ; then
24997 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24998 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24999 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25000 mgl_lib_type=debug
25001 mgl_os=$mgl_os_i
25002 fi
25003 fi
25004 if test "x$mgl_lib_type" = x ; then
25005 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25006 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25007 mgl_lib_type=release
25008 mgl_os=$mgl_os_i
25009 fi
25010 fi
25011 fi
25012 done
25013
25014 if test "x$mgl_os" = x ; then
25015 echo "$as_me:$LINENO: result: not found" >&5
25016echo "${ECHO_T}not found" >&6
25017 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25018echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25019 { (exit 1); exit 1; }; }
25020 fi
25021 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25022echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25023
25024 wxUSE_UNIVERSAL="yes"
25025
25026 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25027 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25028
25029 AFMINSTALL=afminstall
25030 TOOLKIT=MGL
25031 GUIDIST=MGL_DIST
25032 fi
25033
25034 if test "$wxUSE_MICROWIN" = 1; then
25035 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25036echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25037 if test "x$MICROWINDOWS" = x ; then
25038 echo "$as_me:$LINENO: result: not found" >&5
25039echo "${ECHO_T}not found" >&6
25040 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25041echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25042 { (exit 1); exit 1; }; }
25043 else
25044 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25045echo "${ECHO_T}$MICROWINDOWS" >&6
25046 fi
25047
25048 if test -f $MICROWINDOWS/lib/libmwin.a; then
25049 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25050echo "${ECHO_T}MicroWindows' libraries found." >&6
25051 else
25052 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25053echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25054 { (exit 1); exit 1; }; }
25055 fi
25056
25057 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25058 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25059
25060 wxUSE_UNIVERSAL="yes"
25061
25062 AFMINSTALL=afminstall
25063 TOOLKIT=MICROWIN
25064 GUIDIST=MICROWIN_DIST
25065
25066 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25067 fi
25068
74b84332 25069 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
89be85c2 25070 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25071echo $ECHO_N "checking for X... $ECHO_C" >&6
25072
25073
25074# Check whether --with-x or --without-x was given.
25075if test "${with_x+set}" = set; then
25076 withval="$with_x"
25077
25078fi;
25079# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25080if test "x$with_x" = xno; then
25081 # The user explicitly disabled X.
25082 have_x=disabled
25083else
25084 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25085 # Both variables are already set.
25086 have_x=yes
25087 else
25088 if test "${ac_cv_have_x+set}" = set; then
25089 echo $ECHO_N "(cached) $ECHO_C" >&6
25090else
25091 # One or both of the vars are not set, and there is no cached value.
25092ac_x_includes=no ac_x_libraries=no
25093rm -fr conftest.dir
25094if mkdir conftest.dir; then
25095 cd conftest.dir
25096 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25097 cat >Imakefile <<'_ACEOF'
25098acfindx:
25099 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25100_ACEOF
25101 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25103 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25104 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25105 for ac_extension in a so sl; do
25106 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25107 test -f $ac_im_libdir/libX11.$ac_extension; then
25108 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25109 fi
25110 done
25111 # Screen out bogus values from the imake configuration. They are
25112 # bogus both because they are the default anyway, and because
25113 # using them would break gcc on systems where it needs fixed includes.
25114 case $ac_im_incroot in
25115 /usr/include) ;;
25116 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25117 esac
25118 case $ac_im_usrlibdir in
25119 /usr/lib | /lib) ;;
25120 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25121 esac
25122 fi
25123 cd ..
25124 rm -fr conftest.dir
25125fi
25126
25127# Standard set of common directories for X headers.
25128# Check X11 before X11Rn because it is often a symlink to the current release.
25129ac_x_header_dirs='
25130/usr/X11/include
25131/usr/X11R6/include
25132/usr/X11R5/include
25133/usr/X11R4/include
25134
25135/usr/include/X11
25136/usr/include/X11R6
25137/usr/include/X11R5
25138/usr/include/X11R4
25139
25140/usr/local/X11/include
25141/usr/local/X11R6/include
25142/usr/local/X11R5/include
25143/usr/local/X11R4/include
25144
25145/usr/local/include/X11
25146/usr/local/include/X11R6
25147/usr/local/include/X11R5
25148/usr/local/include/X11R4
25149
25150/usr/X386/include
25151/usr/x386/include
25152/usr/XFree86/include/X11
25153
25154/usr/include
25155/usr/local/include
25156/usr/unsupported/include
25157/usr/athena/include
25158/usr/local/x11r5/include
25159/usr/lpp/Xamples/include
25160
25161/usr/openwin/include
25162/usr/openwin/share/include'
25163
25164if test "$ac_x_includes" = no; then
89be85c2 25165 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
25166 # First, try using that file with no special directory specified.
25167 cat >conftest.$ac_ext <<_ACEOF
25168/* confdefs.h. */
25169_ACEOF
25170cat confdefs.h >>conftest.$ac_ext
25171cat >>conftest.$ac_ext <<_ACEOF
25172/* end confdefs.h. */
25173#include <X11/Intrinsic.h>
25174_ACEOF
25175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25177 ac_status=$?
25178 grep -v '^ *+' conftest.er1 >conftest.err
25179 rm -f conftest.er1
25180 cat conftest.err >&5
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } >/dev/null; then
25183 if test -s conftest.err; then
25184 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25186 else
25187 ac_cpp_err=
25188 fi
25189else
25190 ac_cpp_err=yes
25191fi
25192if test -z "$ac_cpp_err"; then
25193 # We can compile using X headers with no special include directory.
25194ac_x_includes=
25195else
25196 echo "$as_me: failed program was:" >&5
25197sed 's/^/| /' conftest.$ac_ext >&5
25198
25199 for ac_dir in $ac_x_header_dirs; do
25200 if test -r "$ac_dir/X11/Intrinsic.h"; then
25201 ac_x_includes=$ac_dir
25202 break
25203 fi
25204done
25205fi
25206rm -f conftest.err conftest.$ac_ext
25207fi # $ac_x_includes = no
25208
25209if test "$ac_x_libraries" = no; then
25210 # Check for the libraries.
25211 # See if we find them without any special options.
25212 # Don't add to $LIBS permanently.
25213 ac_save_LIBS=$LIBS
25214 LIBS="-lXt $LIBS"
25215 cat >conftest.$ac_ext <<_ACEOF
25216/* confdefs.h. */
25217_ACEOF
25218cat confdefs.h >>conftest.$ac_ext
25219cat >>conftest.$ac_ext <<_ACEOF
25220/* end confdefs.h. */
25221#include <X11/Intrinsic.h>
25222int
25223main ()
25224{
25225XtMalloc (0)
25226 ;
25227 return 0;
25228}
25229_ACEOF
25230rm -f conftest.$ac_objext conftest$ac_exeext
25231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25232 (eval $ac_link) 2>conftest.er1
a848cd7e 25233 ac_status=$?
ac1cb8d3
VS
25234 grep -v '^ *+' conftest.er1 >conftest.err
25235 rm -f conftest.er1
25236 cat conftest.err >&5
a848cd7e
SC
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); } &&
89be85c2
VS
25239 { ac_try='test -z "$ac_c_werror_flag"
25240 || test ! -s conftest.err'
ac1cb8d3
VS
25241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242 (eval $ac_try) 2>&5
25243 ac_status=$?
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); }; } &&
25246 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248 (eval $ac_try) 2>&5
25249 ac_status=$?
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; }; then
25252 LIBS=$ac_save_LIBS
25253# We can link X programs with no special library path.
25254ac_x_libraries=
25255else
25256 echo "$as_me: failed program was:" >&5
25257sed 's/^/| /' conftest.$ac_ext >&5
25258
25259LIBS=$ac_save_LIBS
25260for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25261do
25262 # Don't even attempt the hair of trying to link an X program!
25263 for ac_extension in a so sl; do
25264 if test -r $ac_dir/libXt.$ac_extension; then
25265 ac_x_libraries=$ac_dir
25266 break 2
25267 fi
25268 done
25269done
25270fi
ac1cb8d3
VS
25271rm -f conftest.err conftest.$ac_objext \
25272 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25273fi # $ac_x_libraries = no
25274
25275if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25276 # Didn't find X anywhere. Cache the known absence of X.
25277 ac_cv_have_x="have_x=no"
25278else
25279 # Record where we found X for the cache.
25280 ac_cv_have_x="have_x=yes \
ac1cb8d3 25281 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25282fi
25283fi
25284
25285 fi
25286 eval "$ac_cv_have_x"
25287fi # $with_x != no
25288
25289if test "$have_x" != yes; then
25290 echo "$as_me:$LINENO: result: $have_x" >&5
25291echo "${ECHO_T}$have_x" >&6
25292 no_x=yes
25293else
25294 # If each of the values was on the command line, it overrides each guess.
25295 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25296 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25297 # Update the cache value to reflect the command line values.
25298 ac_cv_have_x="have_x=yes \
25299 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
89be85c2
VS
25300 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25301echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
25302fi
25303
25304if test "$no_x" = yes; then
25305 # Not all programs may use this symbol, but it does not hurt to define it.
25306
25307cat >>confdefs.h <<\_ACEOF
25308#define X_DISPLAY_MISSING 1
25309_ACEOF
25310
25311 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25312else
25313 if test -n "$x_includes"; then
25314 X_CFLAGS="$X_CFLAGS -I$x_includes"
25315 fi
25316
25317 # It would also be nice to do this for all -L options, not just this one.
25318 if test -n "$x_libraries"; then
25319 X_LIBS="$X_LIBS -L$x_libraries"
25320 # For Solaris; some versions of Sun CC require a space after -R and
25321 # others require no space. Words are not sufficient . . . .
25322 case `(uname -sr) 2>/dev/null` in
25323 "SunOS 5"*)
25324 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25325echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25326 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25327 cat >conftest.$ac_ext <<_ACEOF
25328/* confdefs.h. */
25329_ACEOF
25330cat confdefs.h >>conftest.$ac_ext
25331cat >>conftest.$ac_ext <<_ACEOF
25332/* end confdefs.h. */
25333
25334int
25335main ()
25336{
25337
25338 ;
25339 return 0;
25340}
25341_ACEOF
25342rm -f conftest.$ac_objext conftest$ac_exeext
25343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25344 (eval $ac_link) 2>conftest.er1
a848cd7e 25345 ac_status=$?
ac1cb8d3
VS
25346 grep -v '^ *+' conftest.er1 >conftest.err
25347 rm -f conftest.er1
25348 cat conftest.err >&5
a848cd7e
SC
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); } &&
89be85c2
VS
25351 { ac_try='test -z "$ac_c_werror_flag"
25352 || test ! -s conftest.err'
ac1cb8d3
VS
25353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354 (eval $ac_try) 2>&5
25355 ac_status=$?
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); }; } &&
25358 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25361 ac_status=$?
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; }; then
25364 ac_R_nospace=yes
25365else
25366 echo "$as_me: failed program was:" >&5
25367sed 's/^/| /' conftest.$ac_ext >&5
25368
25369ac_R_nospace=no
25370fi
ac1cb8d3
VS
25371rm -f conftest.err conftest.$ac_objext \
25372 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25373 if test $ac_R_nospace = yes; then
25374 echo "$as_me:$LINENO: result: no" >&5
25375echo "${ECHO_T}no" >&6
25376 X_LIBS="$X_LIBS -R$x_libraries"
25377 else
25378 LIBS="$ac_xsave_LIBS -R $x_libraries"
25379 cat >conftest.$ac_ext <<_ACEOF
25380/* confdefs.h. */
25381_ACEOF
25382cat confdefs.h >>conftest.$ac_ext
25383cat >>conftest.$ac_ext <<_ACEOF
25384/* end confdefs.h. */
25385
25386int
25387main ()
25388{
25389
25390 ;
25391 return 0;
25392}
25393_ACEOF
25394rm -f conftest.$ac_objext conftest$ac_exeext
25395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25396 (eval $ac_link) 2>conftest.er1
a848cd7e 25397 ac_status=$?
ac1cb8d3
VS
25398 grep -v '^ *+' conftest.er1 >conftest.err
25399 rm -f conftest.er1
25400 cat conftest.err >&5
a848cd7e
SC
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); } &&
89be85c2
VS
25403 { ac_try='test -z "$ac_c_werror_flag"
25404 || test ! -s conftest.err'
ac1cb8d3
VS
25405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25407 ac_status=$?
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; } &&
25410 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25412 (eval $ac_try) 2>&5
25413 ac_status=$?
25414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415 (exit $ac_status); }; }; then
25416 ac_R_space=yes
25417else
25418 echo "$as_me: failed program was:" >&5
25419sed 's/^/| /' conftest.$ac_ext >&5
25420
25421ac_R_space=no
25422fi
ac1cb8d3
VS
25423rm -f conftest.err conftest.$ac_objext \
25424 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25425 if test $ac_R_space = yes; then
25426 echo "$as_me:$LINENO: result: yes" >&5
25427echo "${ECHO_T}yes" >&6
25428 X_LIBS="$X_LIBS -R $x_libraries"
25429 else
25430 echo "$as_me:$LINENO: result: neither works" >&5
25431echo "${ECHO_T}neither works" >&6
25432 fi
25433 fi
25434 LIBS=$ac_xsave_LIBS
25435 esac
25436 fi
25437
25438 # Check for system-dependent libraries X programs must link with.
25439 # Do this before checking for the system-independent R6 libraries
25440 # (-lICE), since we may need -lsocket or whatever for X linking.
25441
25442 if test "$ISC" = yes; then
25443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25444 else
25445 # Martyn Johnson says this is needed for Ultrix, if the X
25446 # libraries were built with DECnet support. And Karl Berry says
25447 # the Alpha needs dnet_stub (dnet does not exist).
25448 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25449 cat >conftest.$ac_ext <<_ACEOF
25450/* confdefs.h. */
25451_ACEOF
25452cat confdefs.h >>conftest.$ac_ext
25453cat >>conftest.$ac_ext <<_ACEOF
25454/* end confdefs.h. */
25455
25456/* Override any gcc2 internal prototype to avoid an error. */
25457#ifdef __cplusplus
25458extern "C"
25459#endif
25460/* We use char because int might match the return type of a gcc2
25461 builtin and then its argument prototype would still apply. */
25462char XOpenDisplay ();
25463int
25464main ()
25465{
25466XOpenDisplay ();
25467 ;
25468 return 0;
25469}
25470_ACEOF
25471rm -f conftest.$ac_objext conftest$ac_exeext
25472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25473 (eval $ac_link) 2>conftest.er1
a848cd7e 25474 ac_status=$?
ac1cb8d3
VS
25475 grep -v '^ *+' conftest.er1 >conftest.err
25476 rm -f conftest.er1
25477 cat conftest.err >&5
a848cd7e
SC
25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); } &&
89be85c2
VS
25480 { ac_try='test -z "$ac_c_werror_flag"
25481 || test ! -s conftest.err'
ac1cb8d3
VS
25482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25483 (eval $ac_try) 2>&5
25484 ac_status=$?
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); }; } &&
25487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25489 (eval $ac_try) 2>&5
25490 ac_status=$?
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); }; }; then
25493 :
25494else
25495 echo "$as_me: failed program was:" >&5
25496sed 's/^/| /' conftest.$ac_ext >&5
25497
25498echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25499echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25500if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25501 echo $ECHO_N "(cached) $ECHO_C" >&6
25502else
25503 ac_check_lib_save_LIBS=$LIBS
25504LIBS="-ldnet $LIBS"
25505cat >conftest.$ac_ext <<_ACEOF
25506/* confdefs.h. */
25507_ACEOF
25508cat confdefs.h >>conftest.$ac_ext
25509cat >>conftest.$ac_ext <<_ACEOF
25510/* end confdefs.h. */
25511
25512/* Override any gcc2 internal prototype to avoid an error. */
25513#ifdef __cplusplus
25514extern "C"
25515#endif
25516/* We use char because int might match the return type of a gcc2
25517 builtin and then its argument prototype would still apply. */
25518char dnet_ntoa ();
25519int
25520main ()
25521{
25522dnet_ntoa ();
25523 ;
25524 return 0;
25525}
25526_ACEOF
25527rm -f conftest.$ac_objext conftest$ac_exeext
25528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25529 (eval $ac_link) 2>conftest.er1
a848cd7e 25530 ac_status=$?
ac1cb8d3
VS
25531 grep -v '^ *+' conftest.er1 >conftest.err
25532 rm -f conftest.er1
25533 cat conftest.err >&5
a848cd7e
SC
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); } &&
89be85c2
VS
25536 { ac_try='test -z "$ac_c_werror_flag"
25537 || test ! -s conftest.err'
ac1cb8d3
VS
25538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25540 ac_status=$?
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; } &&
25543 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; }; then
25549 ac_cv_lib_dnet_dnet_ntoa=yes
25550else
25551 echo "$as_me: failed program was:" >&5
25552sed 's/^/| /' conftest.$ac_ext >&5
25553
25554ac_cv_lib_dnet_dnet_ntoa=no
25555fi
ac1cb8d3
VS
25556rm -f conftest.err conftest.$ac_objext \
25557 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25558LIBS=$ac_check_lib_save_LIBS
25559fi
25560echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25561echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25562if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25563 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25564fi
25565
25566 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25567 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25568echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25569if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25570 echo $ECHO_N "(cached) $ECHO_C" >&6
25571else
25572 ac_check_lib_save_LIBS=$LIBS
25573LIBS="-ldnet_stub $LIBS"
25574cat >conftest.$ac_ext <<_ACEOF
25575/* confdefs.h. */
25576_ACEOF
25577cat confdefs.h >>conftest.$ac_ext
25578cat >>conftest.$ac_ext <<_ACEOF
25579/* end confdefs.h. */
25580
25581/* Override any gcc2 internal prototype to avoid an error. */
25582#ifdef __cplusplus
25583extern "C"
25584#endif
25585/* We use char because int might match the return type of a gcc2
25586 builtin and then its argument prototype would still apply. */
25587char dnet_ntoa ();
25588int
25589main ()
25590{
25591dnet_ntoa ();
25592 ;
25593 return 0;
25594}
25595_ACEOF
25596rm -f conftest.$ac_objext conftest$ac_exeext
25597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25598 (eval $ac_link) 2>conftest.er1
a848cd7e 25599 ac_status=$?
ac1cb8d3
VS
25600 grep -v '^ *+' conftest.er1 >conftest.err
25601 rm -f conftest.er1
25602 cat conftest.err >&5
a848cd7e
SC
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } &&
89be85c2
VS
25605 { ac_try='test -z "$ac_c_werror_flag"
25606 || test ! -s conftest.err'
ac1cb8d3
VS
25607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25608 (eval $ac_try) 2>&5
25609 ac_status=$?
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); }; } &&
25612 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25614 (eval $ac_try) 2>&5
25615 ac_status=$?
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); }; }; then
25618 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25619else
25620 echo "$as_me: failed program was:" >&5
25621sed 's/^/| /' conftest.$ac_ext >&5
25622
25623ac_cv_lib_dnet_stub_dnet_ntoa=no
25624fi
ac1cb8d3
VS
25625rm -f conftest.err conftest.$ac_objext \
25626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25627LIBS=$ac_check_lib_save_LIBS
25628fi
25629echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25630echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25631if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25632 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25633fi
25634
25635 fi
25636fi
ac1cb8d3
VS
25637rm -f conftest.err conftest.$ac_objext \
25638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25639 LIBS="$ac_xsave_LIBS"
25640
25641 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25642 # to get the SysV transport functions.
25643 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25644 # needs -lnsl.
25645 # The nsl library prevents programs from opening the X display
25646 # on Irix 5.2, according to T.E. Dickey.
25647 # The functions gethostbyname, getservbyname, and inet_addr are
25648 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25649 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25650echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25651if test "${ac_cv_func_gethostbyname+set}" = set; then
25652 echo $ECHO_N "(cached) $ECHO_C" >&6
25653else
25654 cat >conftest.$ac_ext <<_ACEOF
25655/* confdefs.h. */
25656_ACEOF
25657cat confdefs.h >>conftest.$ac_ext
25658cat >>conftest.$ac_ext <<_ACEOF
25659/* end confdefs.h. */
ac1cb8d3
VS
25660/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25662#define gethostbyname innocuous_gethostbyname
25663
a848cd7e
SC
25664/* System header to define __stub macros and hopefully few prototypes,
25665 which can conflict with char gethostbyname (); below.
25666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25667 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25668
a848cd7e
SC
25669#ifdef __STDC__
25670# include <limits.h>
25671#else
25672# include <assert.h>
25673#endif
ac1cb8d3
VS
25674
25675#undef gethostbyname
25676
a848cd7e
SC
25677/* Override any gcc2 internal prototype to avoid an error. */
25678#ifdef __cplusplus
25679extern "C"
25680{
25681#endif
25682/* We use char because int might match the return type of a gcc2
25683 builtin and then its argument prototype would still apply. */
25684char gethostbyname ();
25685/* The GNU C library defines this for functions which it implements
25686 to always fail with ENOSYS. Some functions are actually named
25687 something starting with __ and the normal name is an alias. */
25688#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25689choke me
25690#else
25691char (*f) () = gethostbyname;
25692#endif
25693#ifdef __cplusplus
25694}
25695#endif
25696
25697int
25698main ()
25699{
25700return f != gethostbyname;
25701 ;
25702 return 0;
25703}
25704_ACEOF
25705rm -f conftest.$ac_objext conftest$ac_exeext
25706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25707 (eval $ac_link) 2>conftest.er1
a848cd7e 25708 ac_status=$?
ac1cb8d3
VS
25709 grep -v '^ *+' conftest.er1 >conftest.err
25710 rm -f conftest.er1
25711 cat conftest.err >&5
a848cd7e
SC
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } &&
89be85c2
VS
25714 { ac_try='test -z "$ac_c_werror_flag"
25715 || test ! -s conftest.err'
ac1cb8d3
VS
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25718 ac_status=$?
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; } &&
25721 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723 (eval $ac_try) 2>&5
25724 ac_status=$?
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); }; }; then
25727 ac_cv_func_gethostbyname=yes
25728else
25729 echo "$as_me: failed program was:" >&5
25730sed 's/^/| /' conftest.$ac_ext >&5
25731
25732ac_cv_func_gethostbyname=no
25733fi
ac1cb8d3
VS
25734rm -f conftest.err conftest.$ac_objext \
25735 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25736fi
25737echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25738echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25739
25740 if test $ac_cv_func_gethostbyname = no; then
25741 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25742echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25743if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25744 echo $ECHO_N "(cached) $ECHO_C" >&6
25745else
25746 ac_check_lib_save_LIBS=$LIBS
25747LIBS="-lnsl $LIBS"
25748cat >conftest.$ac_ext <<_ACEOF
25749/* confdefs.h. */
25750_ACEOF
25751cat confdefs.h >>conftest.$ac_ext
25752cat >>conftest.$ac_ext <<_ACEOF
25753/* end confdefs.h. */
25754
25755/* Override any gcc2 internal prototype to avoid an error. */
25756#ifdef __cplusplus
25757extern "C"
25758#endif
25759/* We use char because int might match the return type of a gcc2
25760 builtin and then its argument prototype would still apply. */
25761char gethostbyname ();
25762int
25763main ()
25764{
25765gethostbyname ();
25766 ;
25767 return 0;
25768}
25769_ACEOF
25770rm -f conftest.$ac_objext conftest$ac_exeext
25771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
25772 (eval $ac_link) 2>conftest.er1
25773 ac_status=$?
25774 grep -v '^ *+' conftest.er1 >conftest.err
25775 rm -f conftest.er1
25776 cat conftest.err >&5
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); } &&
89be85c2
VS
25779 { ac_try='test -z "$ac_c_werror_flag"
25780 || test ! -s conftest.err'
ac1cb8d3
VS
25781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782 (eval $ac_try) 2>&5
25783 ac_status=$?
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); }; } &&
25786 { ac_try='test -s conftest$ac_exeext'
25787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788 (eval $ac_try) 2>&5
25789 ac_status=$?
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); }; }; then
25792 ac_cv_lib_nsl_gethostbyname=yes
25793else
25794 echo "$as_me: failed program was:" >&5
25795sed 's/^/| /' conftest.$ac_ext >&5
25796
25797ac_cv_lib_nsl_gethostbyname=no
25798fi
25799rm -f conftest.err conftest.$ac_objext \
25800 conftest$ac_exeext conftest.$ac_ext
25801LIBS=$ac_check_lib_save_LIBS
25802fi
25803echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25804echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25805if test $ac_cv_lib_nsl_gethostbyname = yes; then
25806 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25807fi
25808
25809 if test $ac_cv_lib_nsl_gethostbyname = no; then
25810 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25811echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25812if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25813 echo $ECHO_N "(cached) $ECHO_C" >&6
25814else
25815 ac_check_lib_save_LIBS=$LIBS
25816LIBS="-lbsd $LIBS"
25817cat >conftest.$ac_ext <<_ACEOF
25818/* confdefs.h. */
25819_ACEOF
25820cat confdefs.h >>conftest.$ac_ext
25821cat >>conftest.$ac_ext <<_ACEOF
25822/* end confdefs.h. */
25823
25824/* Override any gcc2 internal prototype to avoid an error. */
25825#ifdef __cplusplus
25826extern "C"
25827#endif
25828/* We use char because int might match the return type of a gcc2
25829 builtin and then its argument prototype would still apply. */
25830char gethostbyname ();
25831int
25832main ()
25833{
25834gethostbyname ();
25835 ;
25836 return 0;
25837}
25838_ACEOF
25839rm -f conftest.$ac_objext conftest$ac_exeext
25840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25841 (eval $ac_link) 2>conftest.er1
a848cd7e 25842 ac_status=$?
ac1cb8d3
VS
25843 grep -v '^ *+' conftest.er1 >conftest.err
25844 rm -f conftest.er1
25845 cat conftest.err >&5
a848cd7e
SC
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); } &&
89be85c2
VS
25848 { ac_try='test -z "$ac_c_werror_flag"
25849 || test ! -s conftest.err'
a848cd7e
SC
25850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25851 (eval $ac_try) 2>&5
25852 ac_status=$?
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25854 (exit $ac_status); }; } &&
25855 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25857 (eval $ac_try) 2>&5
25858 ac_status=$?
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); }; }; then
25861 ac_cv_lib_bsd_gethostbyname=yes
25862else
25863 echo "$as_me: failed program was:" >&5
25864sed 's/^/| /' conftest.$ac_ext >&5
25865
25866ac_cv_lib_bsd_gethostbyname=no
25867fi
ac1cb8d3
VS
25868rm -f conftest.err conftest.$ac_objext \
25869 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25870LIBS=$ac_check_lib_save_LIBS
25871fi
25872echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25873echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25874if test $ac_cv_lib_bsd_gethostbyname = yes; then
25875 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25876fi
25877
25878 fi
25879 fi
25880
25881 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25882 # socket/setsockopt and other routines are undefined under SCO ODT
25883 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25884 # on later versions), says Simon Leinen: it contains gethostby*
25885 # variants that don't use the name server (or something). -lsocket
25886 # must be given before -lnsl if both are needed. We assume that
25887 # if connect needs -lnsl, so does gethostbyname.
25888 echo "$as_me:$LINENO: checking for connect" >&5
25889echo $ECHO_N "checking for connect... $ECHO_C" >&6
25890if test "${ac_cv_func_connect+set}" = set; then
25891 echo $ECHO_N "(cached) $ECHO_C" >&6
25892else
25893 cat >conftest.$ac_ext <<_ACEOF
25894/* confdefs.h. */
25895_ACEOF
25896cat confdefs.h >>conftest.$ac_ext
25897cat >>conftest.$ac_ext <<_ACEOF
25898/* end confdefs.h. */
ac1cb8d3
VS
25899/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25901#define connect innocuous_connect
25902
a848cd7e
SC
25903/* System header to define __stub macros and hopefully few prototypes,
25904 which can conflict with char connect (); below.
25905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25906 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25907
a848cd7e
SC
25908#ifdef __STDC__
25909# include <limits.h>
25910#else
25911# include <assert.h>
25912#endif
ac1cb8d3
VS
25913
25914#undef connect
25915
a848cd7e
SC
25916/* Override any gcc2 internal prototype to avoid an error. */
25917#ifdef __cplusplus
25918extern "C"
25919{
25920#endif
25921/* We use char because int might match the return type of a gcc2
25922 builtin and then its argument prototype would still apply. */
25923char connect ();
25924/* The GNU C library defines this for functions which it implements
25925 to always fail with ENOSYS. Some functions are actually named
25926 something starting with __ and the normal name is an alias. */
25927#if defined (__stub_connect) || defined (__stub___connect)
25928choke me
25929#else
25930char (*f) () = connect;
25931#endif
25932#ifdef __cplusplus
25933}
25934#endif
25935
25936int
25937main ()
25938{
25939return f != connect;
25940 ;
25941 return 0;
25942}
25943_ACEOF
25944rm -f conftest.$ac_objext conftest$ac_exeext
25945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25946 (eval $ac_link) 2>conftest.er1
a848cd7e 25947 ac_status=$?
ac1cb8d3
VS
25948 grep -v '^ *+' conftest.er1 >conftest.err
25949 rm -f conftest.er1
25950 cat conftest.err >&5
a848cd7e
SC
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); } &&
89be85c2
VS
25953 { ac_try='test -z "$ac_c_werror_flag"
25954 || test ! -s conftest.err'
ac1cb8d3
VS
25955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25956 (eval $ac_try) 2>&5
25957 ac_status=$?
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); }; } &&
25960 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962 (eval $ac_try) 2>&5
25963 ac_status=$?
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); }; }; then
25966 ac_cv_func_connect=yes
25967else
25968 echo "$as_me: failed program was:" >&5
25969sed 's/^/| /' conftest.$ac_ext >&5
25970
25971ac_cv_func_connect=no
25972fi
ac1cb8d3
VS
25973rm -f conftest.err conftest.$ac_objext \
25974 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25975fi
25976echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25977echo "${ECHO_T}$ac_cv_func_connect" >&6
25978
25979 if test $ac_cv_func_connect = no; then
25980 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25981echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25982if test "${ac_cv_lib_socket_connect+set}" = set; then
25983 echo $ECHO_N "(cached) $ECHO_C" >&6
25984else
25985 ac_check_lib_save_LIBS=$LIBS
25986LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25987cat >conftest.$ac_ext <<_ACEOF
25988/* confdefs.h. */
25989_ACEOF
25990cat confdefs.h >>conftest.$ac_ext
25991cat >>conftest.$ac_ext <<_ACEOF
25992/* end confdefs.h. */
25993
25994/* Override any gcc2 internal prototype to avoid an error. */
25995#ifdef __cplusplus
25996extern "C"
25997#endif
25998/* We use char because int might match the return type of a gcc2
25999 builtin and then its argument prototype would still apply. */
26000char connect ();
26001int
26002main ()
26003{
26004connect ();
26005 ;
26006 return 0;
26007}
26008_ACEOF
26009rm -f conftest.$ac_objext conftest$ac_exeext
26010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26011 (eval $ac_link) 2>conftest.er1
a848cd7e 26012 ac_status=$?
ac1cb8d3
VS
26013 grep -v '^ *+' conftest.er1 >conftest.err
26014 rm -f conftest.er1
26015 cat conftest.err >&5
a848cd7e
SC
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); } &&
89be85c2
VS
26018 { ac_try='test -z "$ac_c_werror_flag"
26019 || test ! -s conftest.err'
ac1cb8d3
VS
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26022 ac_status=$?
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; } &&
26025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027 (eval $ac_try) 2>&5
26028 ac_status=$?
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; }; then
26031 ac_cv_lib_socket_connect=yes
26032else
26033 echo "$as_me: failed program was:" >&5
26034sed 's/^/| /' conftest.$ac_ext >&5
26035
26036ac_cv_lib_socket_connect=no
26037fi
ac1cb8d3
VS
26038rm -f conftest.err conftest.$ac_objext \
26039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26040LIBS=$ac_check_lib_save_LIBS
26041fi
26042echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26043echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26044if test $ac_cv_lib_socket_connect = yes; then
26045 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26046fi
26047
26048 fi
26049
26050 # Guillermo Gomez says -lposix is necessary on A/UX.
26051 echo "$as_me:$LINENO: checking for remove" >&5
26052echo $ECHO_N "checking for remove... $ECHO_C" >&6
26053if test "${ac_cv_func_remove+set}" = set; then
26054 echo $ECHO_N "(cached) $ECHO_C" >&6
26055else
26056 cat >conftest.$ac_ext <<_ACEOF
26057/* confdefs.h. */
26058_ACEOF
26059cat confdefs.h >>conftest.$ac_ext
26060cat >>conftest.$ac_ext <<_ACEOF
26061/* end confdefs.h. */
ac1cb8d3
VS
26062/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26064#define remove innocuous_remove
26065
a848cd7e
SC
26066/* System header to define __stub macros and hopefully few prototypes,
26067 which can conflict with char remove (); below.
26068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26069 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26070
a848cd7e
SC
26071#ifdef __STDC__
26072# include <limits.h>
26073#else
26074# include <assert.h>
26075#endif
ac1cb8d3
VS
26076
26077#undef remove
26078
a848cd7e
SC
26079/* Override any gcc2 internal prototype to avoid an error. */
26080#ifdef __cplusplus
26081extern "C"
26082{
26083#endif
26084/* We use char because int might match the return type of a gcc2
26085 builtin and then its argument prototype would still apply. */
26086char remove ();
26087/* The GNU C library defines this for functions which it implements
26088 to always fail with ENOSYS. Some functions are actually named
26089 something starting with __ and the normal name is an alias. */
26090#if defined (__stub_remove) || defined (__stub___remove)
26091choke me
26092#else
26093char (*f) () = remove;
26094#endif
26095#ifdef __cplusplus
26096}
26097#endif
26098
26099int
26100main ()
26101{
26102return f != remove;
26103 ;
26104 return 0;
26105}
26106_ACEOF
26107rm -f conftest.$ac_objext conftest$ac_exeext
26108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26109 (eval $ac_link) 2>conftest.er1
a848cd7e 26110 ac_status=$?
ac1cb8d3
VS
26111 grep -v '^ *+' conftest.er1 >conftest.err
26112 rm -f conftest.er1
26113 cat conftest.err >&5
a848cd7e
SC
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); } &&
89be85c2
VS
26116 { ac_try='test -z "$ac_c_werror_flag"
26117 || test ! -s conftest.err'
ac1cb8d3
VS
26118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26119 (eval $ac_try) 2>&5
26120 ac_status=$?
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); }; } &&
26123 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125 (eval $ac_try) 2>&5
26126 ac_status=$?
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); }; }; then
26129 ac_cv_func_remove=yes
26130else
26131 echo "$as_me: failed program was:" >&5
26132sed 's/^/| /' conftest.$ac_ext >&5
26133
26134ac_cv_func_remove=no
26135fi
ac1cb8d3
VS
26136rm -f conftest.err conftest.$ac_objext \
26137 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26138fi
26139echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26140echo "${ECHO_T}$ac_cv_func_remove" >&6
26141
26142 if test $ac_cv_func_remove = no; then
26143 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26144echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26145if test "${ac_cv_lib_posix_remove+set}" = set; then
26146 echo $ECHO_N "(cached) $ECHO_C" >&6
26147else
26148 ac_check_lib_save_LIBS=$LIBS
26149LIBS="-lposix $LIBS"
26150cat >conftest.$ac_ext <<_ACEOF
26151/* confdefs.h. */
26152_ACEOF
26153cat confdefs.h >>conftest.$ac_ext
26154cat >>conftest.$ac_ext <<_ACEOF
26155/* end confdefs.h. */
26156
26157/* Override any gcc2 internal prototype to avoid an error. */
26158#ifdef __cplusplus
26159extern "C"
26160#endif
26161/* We use char because int might match the return type of a gcc2
26162 builtin and then its argument prototype would still apply. */
26163char remove ();
26164int
26165main ()
26166{
26167remove ();
26168 ;
26169 return 0;
26170}
26171_ACEOF
26172rm -f conftest.$ac_objext conftest$ac_exeext
26173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26174 (eval $ac_link) 2>conftest.er1
a848cd7e 26175 ac_status=$?
ac1cb8d3
VS
26176 grep -v '^ *+' conftest.er1 >conftest.err
26177 rm -f conftest.er1
26178 cat conftest.err >&5
a848cd7e
SC
26179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); } &&
89be85c2
VS
26181 { ac_try='test -z "$ac_c_werror_flag"
26182 || test ! -s conftest.err'
ac1cb8d3
VS
26183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184 (eval $ac_try) 2>&5
26185 ac_status=$?
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); }; } &&
26188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190 (eval $ac_try) 2>&5
26191 ac_status=$?
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); }; }; then
26194 ac_cv_lib_posix_remove=yes
26195else
26196 echo "$as_me: failed program was:" >&5
26197sed 's/^/| /' conftest.$ac_ext >&5
26198
26199ac_cv_lib_posix_remove=no
26200fi
ac1cb8d3
VS
26201rm -f conftest.err conftest.$ac_objext \
26202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26203LIBS=$ac_check_lib_save_LIBS
26204fi
26205echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26206echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26207if test $ac_cv_lib_posix_remove = yes; then
26208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26209fi
26210
26211 fi
26212
26213 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26214 echo "$as_me:$LINENO: checking for shmat" >&5
26215echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26216if test "${ac_cv_func_shmat+set}" = set; then
26217 echo $ECHO_N "(cached) $ECHO_C" >&6
26218else
26219 cat >conftest.$ac_ext <<_ACEOF
26220/* confdefs.h. */
26221_ACEOF
26222cat confdefs.h >>conftest.$ac_ext
26223cat >>conftest.$ac_ext <<_ACEOF
26224/* end confdefs.h. */
ac1cb8d3
VS
26225/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26227#define shmat innocuous_shmat
26228
a848cd7e
SC
26229/* System header to define __stub macros and hopefully few prototypes,
26230 which can conflict with char shmat (); below.
26231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26232 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26233
a848cd7e
SC
26234#ifdef __STDC__
26235# include <limits.h>
26236#else
26237# include <assert.h>
26238#endif
ac1cb8d3
VS
26239
26240#undef shmat
26241
a848cd7e
SC
26242/* Override any gcc2 internal prototype to avoid an error. */
26243#ifdef __cplusplus
26244extern "C"
26245{
26246#endif
26247/* We use char because int might match the return type of a gcc2
26248 builtin and then its argument prototype would still apply. */
26249char shmat ();
26250/* The GNU C library defines this for functions which it implements
26251 to always fail with ENOSYS. Some functions are actually named
26252 something starting with __ and the normal name is an alias. */
26253#if defined (__stub_shmat) || defined (__stub___shmat)
26254choke me
26255#else
26256char (*f) () = shmat;
26257#endif
26258#ifdef __cplusplus
26259}
26260#endif
26261
26262int
26263main ()
26264{
26265return f != shmat;
26266 ;
26267 return 0;
26268}
26269_ACEOF
26270rm -f conftest.$ac_objext conftest$ac_exeext
26271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26272 (eval $ac_link) 2>conftest.er1
a848cd7e 26273 ac_status=$?
ac1cb8d3
VS
26274 grep -v '^ *+' conftest.er1 >conftest.err
26275 rm -f conftest.er1
26276 cat conftest.err >&5
a848cd7e
SC
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); } &&
89be85c2
VS
26279 { ac_try='test -z "$ac_c_werror_flag"
26280 || test ! -s conftest.err'
ac1cb8d3
VS
26281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26282 (eval $ac_try) 2>&5
26283 ac_status=$?
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); }; } &&
26286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26288 (eval $ac_try) 2>&5
26289 ac_status=$?
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); }; }; then
26292 ac_cv_func_shmat=yes
26293else
26294 echo "$as_me: failed program was:" >&5
26295sed 's/^/| /' conftest.$ac_ext >&5
26296
26297ac_cv_func_shmat=no
26298fi
ac1cb8d3
VS
26299rm -f conftest.err conftest.$ac_objext \
26300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26301fi
26302echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26303echo "${ECHO_T}$ac_cv_func_shmat" >&6
26304
26305 if test $ac_cv_func_shmat = no; then
26306 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26307echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26308if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26309 echo $ECHO_N "(cached) $ECHO_C" >&6
26310else
26311 ac_check_lib_save_LIBS=$LIBS
26312LIBS="-lipc $LIBS"
26313cat >conftest.$ac_ext <<_ACEOF
26314/* confdefs.h. */
26315_ACEOF
26316cat confdefs.h >>conftest.$ac_ext
26317cat >>conftest.$ac_ext <<_ACEOF
26318/* end confdefs.h. */
26319
26320/* Override any gcc2 internal prototype to avoid an error. */
26321#ifdef __cplusplus
26322extern "C"
26323#endif
26324/* We use char because int might match the return type of a gcc2
26325 builtin and then its argument prototype would still apply. */
26326char shmat ();
26327int
26328main ()
26329{
26330shmat ();
26331 ;
26332 return 0;
26333}
26334_ACEOF
26335rm -f conftest.$ac_objext conftest$ac_exeext
26336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26337 (eval $ac_link) 2>conftest.er1
a848cd7e 26338 ac_status=$?
ac1cb8d3
VS
26339 grep -v '^ *+' conftest.er1 >conftest.err
26340 rm -f conftest.er1
26341 cat conftest.err >&5
a848cd7e
SC
26342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); } &&
89be85c2
VS
26344 { ac_try='test -z "$ac_c_werror_flag"
26345 || test ! -s conftest.err'
ac1cb8d3
VS
26346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); }; } &&
26351 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; }; then
26357 ac_cv_lib_ipc_shmat=yes
26358else
26359 echo "$as_me: failed program was:" >&5
26360sed 's/^/| /' conftest.$ac_ext >&5
26361
26362ac_cv_lib_ipc_shmat=no
26363fi
ac1cb8d3
VS
26364rm -f conftest.err conftest.$ac_objext \
26365 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26366LIBS=$ac_check_lib_save_LIBS
26367fi
26368echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26369echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26370if test $ac_cv_lib_ipc_shmat = yes; then
26371 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26372fi
26373
26374 fi
26375 fi
26376
26377 # Check for libraries that X11R6 Xt/Xaw programs need.
26378 ac_save_LDFLAGS=$LDFLAGS
26379 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26380 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26381 # check for ICE first), but we must link in the order -lSM -lICE or
26382 # we get undefined symbols. So assume we have SM if we have ICE.
26383 # These have to be linked with before -lX11, unlike the other
26384 # libraries we check for below, so use a different variable.
26385 # John Interrante, Karl Berry
26386 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26387echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26388if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26390else
26391 ac_check_lib_save_LIBS=$LIBS
26392LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26393cat >conftest.$ac_ext <<_ACEOF
26394/* confdefs.h. */
26395_ACEOF
26396cat confdefs.h >>conftest.$ac_ext
26397cat >>conftest.$ac_ext <<_ACEOF
26398/* end confdefs.h. */
26399
26400/* Override any gcc2 internal prototype to avoid an error. */
26401#ifdef __cplusplus
26402extern "C"
26403#endif
26404/* We use char because int might match the return type of a gcc2
26405 builtin and then its argument prototype would still apply. */
26406char IceConnectionNumber ();
26407int
26408main ()
26409{
26410IceConnectionNumber ();
26411 ;
26412 return 0;
26413}
26414_ACEOF
26415rm -f conftest.$ac_objext conftest$ac_exeext
26416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26417 (eval $ac_link) 2>conftest.er1
a848cd7e 26418 ac_status=$?
ac1cb8d3
VS
26419 grep -v '^ *+' conftest.er1 >conftest.err
26420 rm -f conftest.er1
26421 cat conftest.err >&5
a848cd7e
SC
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } &&
89be85c2
VS
26424 { ac_try='test -z "$ac_c_werror_flag"
26425 || test ! -s conftest.err'
ac1cb8d3
VS
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26428 ac_status=$?
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; } &&
26431 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26434 ac_status=$?
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); }; }; then
26437 ac_cv_lib_ICE_IceConnectionNumber=yes
26438else
26439 echo "$as_me: failed program was:" >&5
26440sed 's/^/| /' conftest.$ac_ext >&5
26441
26442ac_cv_lib_ICE_IceConnectionNumber=no
26443fi
ac1cb8d3
VS
26444rm -f conftest.err conftest.$ac_objext \
26445 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26446LIBS=$ac_check_lib_save_LIBS
26447fi
26448echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26449echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26450if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26451 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26452fi
26453
26454 LDFLAGS=$ac_save_LDFLAGS
26455
26456fi
26457
26458
26459 if test "$no_x" = "yes"; then
26460 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26461echo "$as_me: error: X11 not found" >&2;}
26462 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26463 fi
26464
74b84332
VS
26465 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26466 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26467 AFMINSTALL=afminstall
26468 COMPILED_X_PROGRAM=0
26469
74b84332
VS
26470 fi
26471
26472 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26473 if test "$wxUSE_NANOX" = "yes"; then
26474 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
26475echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
26476 if test "x$MICROWIN" = x ; then
26477 echo "$as_me:$LINENO: result: not found" >&5
26478echo "${ECHO_T}not found" >&6
26479 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
26480echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
26481 { (exit 1); exit 1; }; }
26482 else
26483 echo "$as_me:$LINENO: result: $MICROWIN" >&5
26484echo "${ECHO_T}$MICROWIN" >&6
26485 cat >>confdefs.h <<\_ACEOF
26486#define wxUSE_NANOX 1
26487_ACEOF
26488
26489 fi
26490 fi
26491
26492 if test "$wxUSE_UNICODE" = "yes"; then
26493
26494 succeeded=no
26495
26496 if test -z "$PKG_CONFIG"; then
26497 # Extract the first word of "pkg-config", so it can be a program name with args.
26498set dummy pkg-config; ac_word=$2
26499echo "$as_me:$LINENO: checking for $ac_word" >&5
26500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26501if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26502 echo $ECHO_N "(cached) $ECHO_C" >&6
26503else
26504 case $PKG_CONFIG in
26505 [\\/]* | ?:[\\/]*)
26506 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26507 ;;
26508 *)
26509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26510for as_dir in $PATH
26511do
26512 IFS=$as_save_IFS
26513 test -z "$as_dir" && as_dir=.
26514 for ac_exec_ext in '' $ac_executable_extensions; do
26515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26516 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26518 break 2
26519 fi
26520done
26521done
26522
26523 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26524 ;;
26525esac
26526fi
26527PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26528
26529if test -n "$PKG_CONFIG"; then
26530 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26531echo "${ECHO_T}$PKG_CONFIG" >&6
26532else
26533 echo "$as_me:$LINENO: result: no" >&5
26534echo "${ECHO_T}no" >&6
26535fi
26536
26537 fi
26538
26539 if test "$PKG_CONFIG" = "no" ; then
26540 echo "*** The pkg-config script could not be found. Make sure it is"
26541 echo "*** in your path, or set the PKG_CONFIG environment variable"
26542 echo "*** to the full path to pkg-config."
26543 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26544 else
26545 PKG_CONFIG_MIN_VERSION=0.9.0
26546 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26547 echo "$as_me:$LINENO: checking for pangox" >&5
26548echo $ECHO_N "checking for pangox... $ECHO_C" >&6
26549
26550 if $PKG_CONFIG --exists "pangox" ; then
26551 echo "$as_me:$LINENO: result: yes" >&5
26552echo "${ECHO_T}yes" >&6
26553 succeeded=yes
26554
26555 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
26556echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
26557 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
26558 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
26559echo "${ECHO_T}$PANGOX_CFLAGS" >&6
26560
26561 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
26562echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
26563 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
26564 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
26565echo "${ECHO_T}$PANGOX_LIBS" >&6
26566 else
26567 PANGOX_CFLAGS=""
26568 PANGOX_LIBS=""
26569 ## If we have a custom action on failure, don't print errors, but
26570 ## do set a variable so people can do so.
26571 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
26572
26573 fi
26574
26575
26576
26577 else
26578 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26579 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26580 fi
26581 fi
26582
26583 if test $succeeded = yes; then
26584
26585 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
26586 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
26587
26588 else
26589
26590 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
26591echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
26592 { (exit 1); exit 1; }; }
26593
26594
26595 fi
26596
26597
26598 succeeded=no
26599
26600 if test -z "$PKG_CONFIG"; then
26601 # Extract the first word of "pkg-config", so it can be a program name with args.
26602set dummy pkg-config; ac_word=$2
26603echo "$as_me:$LINENO: checking for $ac_word" >&5
26604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26605if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26606 echo $ECHO_N "(cached) $ECHO_C" >&6
26607else
26608 case $PKG_CONFIG in
26609 [\\/]* | ?:[\\/]*)
26610 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26611 ;;
26612 *)
26613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26614for as_dir in $PATH
26615do
26616 IFS=$as_save_IFS
26617 test -z "$as_dir" && as_dir=.
26618 for ac_exec_ext in '' $ac_executable_extensions; do
26619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26620 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26622 break 2
26623 fi
26624done
26625done
26626
26627 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26628 ;;
26629esac
26630fi
26631PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26632
26633if test -n "$PKG_CONFIG"; then
26634 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26635echo "${ECHO_T}$PKG_CONFIG" >&6
26636else
26637 echo "$as_me:$LINENO: result: no" >&5
26638echo "${ECHO_T}no" >&6
26639fi
26640
26641 fi
26642
26643 if test "$PKG_CONFIG" = "no" ; then
26644 echo "*** The pkg-config script could not be found. Make sure it is"
26645 echo "*** in your path, or set the PKG_CONFIG environment variable"
26646 echo "*** to the full path to pkg-config."
26647 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26648 else
26649 PKG_CONFIG_MIN_VERSION=0.9.0
26650 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26651 echo "$as_me:$LINENO: checking for pangoft2" >&5
26652echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
26653
26654 if $PKG_CONFIG --exists "pangoft2" ; then
26655 echo "$as_me:$LINENO: result: yes" >&5
26656echo "${ECHO_T}yes" >&6
26657 succeeded=yes
26658
26659 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
26660echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
26661 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
26662 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
26663echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
26664
26665 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
26666echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
26667 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
26668 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
26669echo "${ECHO_T}$PANGOFT2_LIBS" >&6
26670 else
26671 PANGOFT2_CFLAGS=""
26672 PANGOFT2_LIBS=""
26673 ## If we have a custom action on failure, don't print errors, but
26674 ## do set a variable so people can do so.
26675 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
26676
26677 fi
26678
26679
26680
26681 else
26682 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26683 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26684 fi
26685 fi
26686
26687 if test $succeeded = yes; then
26688
26689 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
26690 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
26691
26692 else
26693
26694 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
26695echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
26696 wxUSE_PRINTING_ARCHITECTURE="no"
26697
26698
26699 fi
26700
26701
26702 succeeded=no
26703
26704 if test -z "$PKG_CONFIG"; then
26705 # Extract the first word of "pkg-config", so it can be a program name with args.
26706set dummy pkg-config; ac_word=$2
26707echo "$as_me:$LINENO: checking for $ac_word" >&5
26708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26709if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26710 echo $ECHO_N "(cached) $ECHO_C" >&6
26711else
26712 case $PKG_CONFIG in
26713 [\\/]* | ?:[\\/]*)
26714 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26715 ;;
26716 *)
26717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26718for as_dir in $PATH
26719do
26720 IFS=$as_save_IFS
26721 test -z "$as_dir" && as_dir=.
26722 for ac_exec_ext in '' $ac_executable_extensions; do
26723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26724 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26726 break 2
26727 fi
26728done
26729done
26730
26731 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26732 ;;
26733esac
26734fi
26735PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26736
26737if test -n "$PKG_CONFIG"; then
26738 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26739echo "${ECHO_T}$PKG_CONFIG" >&6
26740else
26741 echo "$as_me:$LINENO: result: no" >&5
26742echo "${ECHO_T}no" >&6
26743fi
26744
26745 fi
26746
26747 if test "$PKG_CONFIG" = "no" ; then
26748 echo "*** The pkg-config script could not be found. Make sure it is"
26749 echo "*** in your path, or set the PKG_CONFIG environment variable"
26750 echo "*** to the full path to pkg-config."
26751 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26752 else
26753 PKG_CONFIG_MIN_VERSION=0.9.0
26754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26755 echo "$as_me:$LINENO: checking for pangoxft" >&5
26756echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
26757
26758 if $PKG_CONFIG --exists "pangoxft" ; then
26759 echo "$as_me:$LINENO: result: yes" >&5
26760echo "${ECHO_T}yes" >&6
26761 succeeded=yes
26762
26763 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
26764echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
26765 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
26766 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
26767echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
26768
26769 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
26770echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
26771 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
26772 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
26773echo "${ECHO_T}$PANGOXFT_LIBS" >&6
26774 else
26775 PANGOXFT_CFLAGS=""
26776 PANGOXFT_LIBS=""
26777 ## If we have a custom action on failure, don't print errors, but
26778 ## do set a variable so people can do so.
26779 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26780
26781 fi
26782
26783
26784
26785 else
26786 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26787 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26788 fi
26789 fi
26790
26791 if test $succeeded = yes; then
26792
4ae1af05
MB
26793 cat >>confdefs.h <<\_ACEOF
26794#define HAVE_PANGO_XFT 1
26795_ACEOF
26796
a848cd7e
SC
26797 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26798 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26799
26800 else
26801
26802 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26803echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26804
26805
26806 fi
26807
304205f1
VS
26808 save_CFLAGS="$CFLAGS"
26809 save_LIBS="$LIBS"
26810 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26811 LIBS="$LIBS $PANGOX_LIBS"
26812
26813for ac_func in pango_font_family_is_monospace
26814do
26815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26816echo "$as_me:$LINENO: checking for $ac_func" >&5
26817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26818if eval "test \"\${$as_ac_var+set}\" = set"; then
26819 echo $ECHO_N "(cached) $ECHO_C" >&6
26820else
26821 cat >conftest.$ac_ext <<_ACEOF
26822/* confdefs.h. */
26823_ACEOF
26824cat confdefs.h >>conftest.$ac_ext
26825cat >>conftest.$ac_ext <<_ACEOF
26826/* end confdefs.h. */
26827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26829#define $ac_func innocuous_$ac_func
26830
26831/* System header to define __stub macros and hopefully few prototypes,
26832 which can conflict with char $ac_func (); below.
26833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26834 <limits.h> exists even on freestanding compilers. */
26835
26836#ifdef __STDC__
26837# include <limits.h>
26838#else
26839# include <assert.h>
26840#endif
26841
26842#undef $ac_func
26843
26844/* Override any gcc2 internal prototype to avoid an error. */
26845#ifdef __cplusplus
26846extern "C"
26847{
26848#endif
26849/* We use char because int might match the return type of a gcc2
26850 builtin and then its argument prototype would still apply. */
26851char $ac_func ();
26852/* The GNU C library defines this for functions which it implements
26853 to always fail with ENOSYS. Some functions are actually named
26854 something starting with __ and the normal name is an alias. */
26855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26856choke me
26857#else
26858char (*f) () = $ac_func;
26859#endif
26860#ifdef __cplusplus
26861}
26862#endif
26863
26864int
26865main ()
26866{
26867return f != $ac_func;
26868 ;
26869 return 0;
26870}
26871_ACEOF
26872rm -f conftest.$ac_objext conftest$ac_exeext
26873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26874 (eval $ac_link) 2>conftest.er1
26875 ac_status=$?
26876 grep -v '^ *+' conftest.er1 >conftest.err
26877 rm -f conftest.er1
26878 cat conftest.err >&5
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); } &&
89be85c2
VS
26881 { ac_try='test -z "$ac_c_werror_flag"
26882 || test ! -s conftest.err'
304205f1
VS
26883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884 (eval $ac_try) 2>&5
26885 ac_status=$?
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); }; } &&
26888 { ac_try='test -s conftest$ac_exeext'
26889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890 (eval $ac_try) 2>&5
26891 ac_status=$?
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); }; }; then
26894 eval "$as_ac_var=yes"
26895else
26896 echo "$as_me: failed program was:" >&5
26897sed 's/^/| /' conftest.$ac_ext >&5
26898
26899eval "$as_ac_var=no"
26900fi
26901rm -f conftest.err conftest.$ac_objext \
26902 conftest$ac_exeext conftest.$ac_ext
26903fi
26904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26906if test `eval echo '${'$as_ac_var'}'` = yes; then
26907 cat >>confdefs.h <<_ACEOF
26908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26909_ACEOF
26910
26911fi
26912done
26913
26914 CFLAGS="$save_CFLAGS"
26915 LIBS="$save_LIBS"
a848cd7e
SC
26916 fi
26917
26918 wxUSE_UNIVERSAL="yes"
26919
26920 if test "$wxUSE_NANOX" = "yes"; then
26921 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26922 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"
26923 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26924 else
26925 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26926 fi
26927
a848cd7e
SC
26928 TOOLKIT=X11
26929 GUIDIST=X11_DIST
26930 fi
26931
26932 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26933 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26934echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26935
74b84332
VS
26936ac_find_includes=
26937for ac_dir in $SEARCH_INCLUDE /usr/include;
26938 do
26939 if test -f "$ac_dir/Xm/Xm.h"; then
26940 ac_find_includes=$ac_dir
26941 break
26942 fi
26943 done
a848cd7e 26944
74b84332
VS
26945 if test "$ac_find_includes" != "" ; then
26946 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26947echo "${ECHO_T}found in $ac_find_includes" >&6
26948
26949 if test "x$ac_find_includes" = "x/usr/include"; then
26950 ac_path_to_include=""
26951 else
26952 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26953 result=$?
26954 if test $result = 0; then
26955 ac_path_to_include=""
26956 else
26957 ac_path_to_include=" -I$ac_find_includes"
26958 fi
a848cd7e
SC
26959 fi
26960
74b84332
VS
26961 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26962 else
26963 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26964/* confdefs.h. */
26965_ACEOF
26966cat confdefs.h >>conftest.$ac_ext
26967cat >>conftest.$ac_ext <<_ACEOF
26968/* end confdefs.h. */
26969
74b84332
VS
26970 #include <Xm/Xm.h>
26971
a848cd7e
SC
26972int
26973main ()
26974{
26975
74b84332
VS
26976 int version;
26977 version = xmUseVersion;
26978
a848cd7e
SC
26979 ;
26980 return 0;
26981}
26982_ACEOF
74b84332
VS
26983rm -f conftest.$ac_objext
26984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26985 (eval $ac_compile) 2>conftest.er1
a848cd7e 26986 ac_status=$?
ac1cb8d3
VS
26987 grep -v '^ *+' conftest.er1 >conftest.err
26988 rm -f conftest.er1
26989 cat conftest.err >&5
a848cd7e
SC
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); } &&
89be85c2
VS
26992 { ac_try='test -z "$ac_c_werror_flag"
26993 || test ! -s conftest.err'
ac1cb8d3
VS
26994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995 (eval $ac_try) 2>&5
26996 ac_status=$?
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); }; } &&
74b84332 26999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); }; }; then
74b84332
VS
27005
27006 echo "$as_me:$LINENO: result: found in default search path" >&5
27007echo "${ECHO_T}found in default search path" >&6
27008 COMPILED_X_PROGRAM=1
27009
a848cd7e
SC
27010else
27011 echo "$as_me: failed program was:" >&5
27012sed 's/^/| /' conftest.$ac_ext >&5
27013
a848cd7e 27014
74b84332
VS
27015 echo "$as_me:$LINENO: result: no" >&5
27016echo "${ECHO_T}no" >&6
27017 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27018echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27019 { (exit 1); exit 1; }; }
a848cd7e 27020
a848cd7e 27021
a848cd7e 27022fi
74b84332
VS
27023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27024 fi
27025
27026 if test "$COMPILED_X_PROGRAM" = 0; then
27027 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27028echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27029
27030ac_find_libraries=
27031for ac_dir in $SEARCH_LIB /usr/lib;
27032 do
27033 for ac_extension in a so sl dylib; do
27034 if test -f "$ac_dir/libXm.$ac_extension"; then
27035 ac_find_libraries=$ac_dir
27036 break 2
a848cd7e 27037 fi
74b84332
VS
27038 done
27039 done
a848cd7e 27040
74b84332
VS
27041 if test "$ac_find_libraries" != "" ; then
27042 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27043echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27044
74b84332
VS
27045
27046 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27047 result=$?
27048 if test $result = 0; then
27049 ac_path_to_link=""
a848cd7e 27050 else
74b84332
VS
27051 ac_path_to_link=" -L$ac_find_libraries"
27052 fi
27053
27054 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27055 else
27056 save_CFLAGS=$CFLAGS
27057 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27058
27059 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27060/* confdefs.h. */
27061_ACEOF
27062cat confdefs.h >>conftest.$ac_ext
27063cat >>conftest.$ac_ext <<_ACEOF
27064/* end confdefs.h. */
27065
74b84332
VS
27066 #include <Xm/Xm.h>
27067
a848cd7e
SC
27068int
27069main ()
27070{
74b84332
VS
27071
27072 int version;
27073 version = xmUseVersion;
27074
a848cd7e
SC
27075 ;
27076 return 0;
27077}
27078_ACEOF
74b84332
VS
27079rm -f conftest.$ac_objext
27080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27081 (eval $ac_compile) 2>conftest.er1
a848cd7e 27082 ac_status=$?
ac1cb8d3
VS
27083 grep -v '^ *+' conftest.er1 >conftest.err
27084 rm -f conftest.er1
27085 cat conftest.err >&5
a848cd7e
SC
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } &&
89be85c2
VS
27088 { ac_try='test -z "$ac_c_werror_flag"
27089 || test ! -s conftest.err'
ac1cb8d3
VS
27090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27091 (eval $ac_try) 2>&5
27092 ac_status=$?
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); }; } &&
74b84332 27095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27097 (eval $ac_try) 2>&5
27098 ac_status=$?
27099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100 (exit $ac_status); }; }; then
74b84332
VS
27101
27102 echo "$as_me:$LINENO: result: found in default search path" >&5
27103echo "${ECHO_T}found in default search path" >&6
27104 COMPILED_X_PROGRAM=1
27105
a848cd7e
SC
27106else
27107 echo "$as_me: failed program was:" >&5
27108sed 's/^/| /' conftest.$ac_ext >&5
27109
74b84332
VS
27110
27111 echo "$as_me:$LINENO: result: no" >&5
27112echo "${ECHO_T}no" >&6
27113 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27114echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27115 { (exit 1); exit 1; }; }
27116
27117
27118fi
27119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27120
27121 CFLAGS=$save_CFLAGS
27122 fi
27123 fi
27124
27125 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27126echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27127 libp_link=""
27128 libsm_ice_link=""
27129 libs_found=0
27130 for libp in "" " -lXp"; do
27131 if test "$libs_found" = "0"; then
27132 for libsm_ice in "" " -lSM -lICE"; do
27133 if test "$libs_found" = "0"; then
27134 save_LIBS="$LIBS"
27135 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27136 save_CFLAGS=$CFLAGS
27137 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27138
27139 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27140/* confdefs.h. */
27141_ACEOF
27142cat confdefs.h >>conftest.$ac_ext
27143cat >>conftest.$ac_ext <<_ACEOF
27144/* end confdefs.h. */
27145
74b84332
VS
27146 #include <Xm/Xm.h>
27147 #include <Xm/List.h>
27148
a848cd7e
SC
27149int
27150main ()
27151{
74b84332
VS
27152
27153 XmString string = NULL;
27154 Widget w = NULL;
27155 int position = 0;
27156 XmListAddItem(w, string, position);
27157
a848cd7e
SC
27158 ;
27159 return 0;
27160}
27161_ACEOF
27162rm -f conftest.$ac_objext conftest$ac_exeext
27163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27164 (eval $ac_link) 2>conftest.er1
a848cd7e 27165 ac_status=$?
ac1cb8d3
VS
27166 grep -v '^ *+' conftest.er1 >conftest.err
27167 rm -f conftest.er1
27168 cat conftest.err >&5
a848cd7e
SC
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } &&
89be85c2
VS
27171 { ac_try='test -z "$ac_c_werror_flag"
27172 || test ! -s conftest.err'
ac1cb8d3
VS
27173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27174 (eval $ac_try) 2>&5
27175 ac_status=$?
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); }; } &&
27178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27181 ac_status=$?
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; }; then
27184
27185 libp_link="$libp"
27186 libsm_ice_link="$libsm_ice"
27187 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27188echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27189 libs_found=1
27190
27191else
27192 echo "$as_me: failed program was:" >&5
27193sed 's/^/| /' conftest.$ac_ext >&5
27194
27195
27196
27197fi
ac1cb8d3
VS
27198rm -f conftest.err conftest.$ac_objext \
27199 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27200
27201 LIBS="$save_LIBS"
27202 CFLAGS=$save_CFLAGS
27203 fi
27204 done
27205 fi
27206 done
27207
27208 if test "$libs_found" = "0"; then
27209 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27210echo "${ECHO_T}can't find the right libraries" >&6
27211 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27212echo "$as_me: error: can't link a simple motif program" >&2;}
27213 { (exit 1); exit 1; }; }
27214 fi
27215
27216 save_CFLAGS=$CFLAGS
27217 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27218 echo "$as_me:$LINENO: checking for Motif 2" >&5
27219echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27220 cat >conftest.$ac_ext <<_ACEOF
27221/* confdefs.h. */
27222_ACEOF
27223cat confdefs.h >>conftest.$ac_ext
27224cat >>conftest.$ac_ext <<_ACEOF
27225/* end confdefs.h. */
27226
27227 #include <Xm/Xm.h>
27228
27229int
27230main ()
27231{
27232
27233 #if XmVersion < 2000
27234 #error "Not Motif 2"
27235 #endif
27236
27237 ;
27238 return 0;
27239}
27240_ACEOF
27241rm -f conftest.$ac_objext
27242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27243 (eval $ac_compile) 2>conftest.er1
a848cd7e 27244 ac_status=$?
ac1cb8d3
VS
27245 grep -v '^ *+' conftest.er1 >conftest.err
27246 rm -f conftest.er1
27247 cat conftest.err >&5
a848cd7e
SC
27248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249 (exit $ac_status); } &&
89be85c2
VS
27250 { ac_try='test -z "$ac_c_werror_flag"
27251 || test ! -s conftest.err'
ac1cb8d3
VS
27252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27253 (eval $ac_try) 2>&5
27254 ac_status=$?
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); }; } &&
27257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27259 (eval $ac_try) 2>&5
27260 ac_status=$?
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); }; }; then
27263
27264 cat >>confdefs.h <<\_ACEOF
27265#define __WXMOTIF20__ 1
27266_ACEOF
27267
27268 echo "$as_me:$LINENO: result: found" >&5
27269echo "${ECHO_T}found" >&6
27270
27271else
27272 echo "$as_me: failed program was:" >&5
27273sed 's/^/| /' conftest.$ac_ext >&5
27274
27275
27276 cat >>confdefs.h <<\_ACEOF
27277#define __WXMOTIF20__ 0
27278_ACEOF
27279
27280 echo "$as_me:$LINENO: result: not found" >&5
27281echo "${ECHO_T}not found" >&6
27282
27283fi
ac1cb8d3 27284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27285 CFLAGS=$save_CFLAGS
27286
27287 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27288 TOOLKIT=MOTIF
27289 GUIDIST=MOTIF_DIST
27290 fi
27291
74b84332 27292 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27293 if test "$wxUSE_LIBXPM" = "sys"; then
27294 echo "$as_me:$LINENO: checking for Xpm library" >&5
27295echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27296
27297ac_find_libraries=
27298for ac_dir in $SEARCH_LIB /usr/lib;
27299 do
27300 for ac_extension in a so sl dylib; do
27301 if test -f "$ac_dir/libXpm.$ac_extension"; then
27302 ac_find_libraries=$ac_dir
27303 break 2
27304 fi
27305 done
27306 done
27307
27308 if test "$ac_find_libraries" != "" ; then
27309
27310 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27311 result=$?
27312 if test $result = 0; then
27313 ac_path_to_link=""
27314 else
27315 ac_path_to_link=" -L$ac_find_libraries"
27316 fi
27317
27318 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27319 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27320echo "${ECHO_T}found at $ac_find_libraries" >&6
27321
27322 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27323echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27324if test "${wx_cv_x11_xpm_h+set}" = set; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
27326else
27327
27328 save_CFLAGS=$CFLAGS
27329 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27330
27331 cat >conftest.$ac_ext <<_ACEOF
27332/* confdefs.h. */
27333_ACEOF
27334cat confdefs.h >>conftest.$ac_ext
27335cat >>conftest.$ac_ext <<_ACEOF
27336/* end confdefs.h. */
27337
27338 #include <X11/xpm.h>
27339
27340int
27341main ()
27342{
27343
27344 int version;
27345 version = XpmLibraryVersion();
27346
27347 ;
27348 return 0;
27349}
27350_ACEOF
27351rm -f conftest.$ac_objext
27352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27353 (eval $ac_compile) 2>conftest.er1
a848cd7e 27354 ac_status=$?
ac1cb8d3
VS
27355 grep -v '^ *+' conftest.er1 >conftest.err
27356 rm -f conftest.er1
27357 cat conftest.err >&5
a848cd7e
SC
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } &&
89be85c2
VS
27360 { ac_try='test -z "$ac_c_werror_flag"
27361 || test ! -s conftest.err'
ac1cb8d3
VS
27362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363 (eval $ac_try) 2>&5
27364 ac_status=$?
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); }; } &&
27367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27369 (eval $ac_try) 2>&5
27370 ac_status=$?
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); }; }; then
27373 wx_cv_x11_xpm_h=yes
27374else
27375 echo "$as_me: failed program was:" >&5
27376sed 's/^/| /' conftest.$ac_ext >&5
27377
27378wx_cv_x11_xpm_h=no
27379
27380fi
ac1cb8d3 27381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27382
27383 CFLAGS=$save_CFLAGS
27384
27385
27386fi
27387echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27388echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27389
27390 if test $wx_cv_x11_xpm_h = "yes"; then
27391 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27392 cat >>confdefs.h <<\_ACEOF
27393#define wxHAVE_LIB_XPM 1
27394_ACEOF
27395
27396 else
27397 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27398echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27399 fi
27400 fi
27401
27402 fi
27403
27404 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27405echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27406if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27407 echo $ECHO_N "(cached) $ECHO_C" >&6
27408else
27409 ac_check_lib_save_LIBS=$LIBS
27410LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27411cat >conftest.$ac_ext <<_ACEOF
27412/* confdefs.h. */
27413_ACEOF
27414cat confdefs.h >>conftest.$ac_ext
27415cat >>conftest.$ac_ext <<_ACEOF
27416/* end confdefs.h. */
27417
27418/* Override any gcc2 internal prototype to avoid an error. */
27419#ifdef __cplusplus
27420extern "C"
27421#endif
27422/* We use char because int might match the return type of a gcc2
27423 builtin and then its argument prototype would still apply. */
27424char XShapeQueryExtension ();
27425int
27426main ()
27427{
27428XShapeQueryExtension ();
27429 ;
27430 return 0;
27431}
27432_ACEOF
27433rm -f conftest.$ac_objext conftest$ac_exeext
27434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27435 (eval $ac_link) 2>conftest.er1
a848cd7e 27436 ac_status=$?
ac1cb8d3
VS
27437 grep -v '^ *+' conftest.er1 >conftest.err
27438 rm -f conftest.er1
27439 cat conftest.err >&5
a848cd7e
SC
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); } &&
89be85c2
VS
27442 { ac_try='test -z "$ac_c_werror_flag"
27443 || test ! -s conftest.err'
ac1cb8d3
VS
27444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27445 (eval $ac_try) 2>&5
27446 ac_status=$?
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); }; } &&
27449 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451 (eval $ac_try) 2>&5
27452 ac_status=$?
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; }; then
27455 ac_cv_lib_Xext_XShapeQueryExtension=yes
27456else
27457 echo "$as_me: failed program was:" >&5
27458sed 's/^/| /' conftest.$ac_ext >&5
27459
27460ac_cv_lib_Xext_XShapeQueryExtension=no
27461fi
ac1cb8d3
VS
27462rm -f conftest.err conftest.$ac_objext \
27463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27464LIBS=$ac_check_lib_save_LIBS
27465fi
27466echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27467echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27468if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27469
27470 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27471 wxHAVE_XEXT_LIB=1
27472
27473fi
27474
27475
27476 if test "$wxHAVE_XEXT_LIB" = 1; then
27477 save_CFLAGS="$CFLAGS"
27478 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27479
27480 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27481echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27482 cat >conftest.$ac_ext <<_ACEOF
27483/* confdefs.h. */
27484_ACEOF
27485cat confdefs.h >>conftest.$ac_ext
27486cat >>conftest.$ac_ext <<_ACEOF
27487/* end confdefs.h. */
27488
27489 #include <X11/Xlib.h>
27490 #include <X11/extensions/shape.h>
27491
27492int
27493main ()
27494{
27495
27496 int dummy1, dummy2;
27497 XShapeQueryExtension((Display*)NULL,
27498 (int*)NULL, (int*)NULL);
27499
27500 ;
27501 return 0;
27502}
27503_ACEOF
27504rm -f conftest.$ac_objext
27505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27506 (eval $ac_compile) 2>conftest.er1
a848cd7e 27507 ac_status=$?
ac1cb8d3
VS
27508 grep -v '^ *+' conftest.er1 >conftest.err
27509 rm -f conftest.er1
27510 cat conftest.err >&5
a848cd7e
SC
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } &&
89be85c2
VS
27513 { ac_try='test -z "$ac_c_werror_flag"
27514 || test ! -s conftest.err'
ac1cb8d3
VS
27515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27516 (eval $ac_try) 2>&5
27517 ac_status=$?
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; } &&
27520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522 (eval $ac_try) 2>&5
27523 ac_status=$?
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); }; }; then
27526
27527 cat >>confdefs.h <<\_ACEOF
27528#define HAVE_XSHAPE 1
27529_ACEOF
27530
27531 echo "$as_me:$LINENO: result: found" >&5
27532echo "${ECHO_T}found" >&6
27533
27534else
27535 echo "$as_me: failed program was:" >&5
27536sed 's/^/| /' conftest.$ac_ext >&5
27537
27538
27539 echo "$as_me:$LINENO: result: not found" >&5
27540echo "${ECHO_T}not found" >&6
27541
27542fi
ac1cb8d3 27543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27544 CFLAGS="$save_CFLAGS"
27545
27546 fi
27547 fi
27548
27549 if test "$wxUSE_MAC" = 1; then
27550 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
27551echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
27552 if test "$GCC" = yes; then
27553 echo "$as_me:$LINENO: result: gcc" >&5
27554echo "${ECHO_T}gcc" >&6
27555 CPPFLAGS_PASCAL="-fpascal-strings"
27556 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
27557 echo "$as_me:$LINENO: result: xlc" >&5
27558echo "${ECHO_T}xlc" >&6
27559 CPPFLAGS_PASCAL="-qmacpstr"
27560 else
27561 echo "$as_me:$LINENO: result: none" >&5
27562echo "${ECHO_T}none" >&6
27563 fi
27564
1e9e8aba
DE
27565 if test "x$wxUSE_UNIX" = "xyes"; then
27566 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
27567 else
27568 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
27569 fi
a848cd7e 27570
a848cd7e
SC
27571 TOOLKIT=MAC
27572 GUIDIST=MACX_DIST
dd21ced8 27573 WXBASEPORT="_carbon"
a848cd7e
SC
27574 fi
27575
27576 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
27577 TOOLKIT=COCOA
27578 GUIDIST=COCOA_DIST
27579 fi
27580
27581 if test "$wxUSE_PM" = 1; then
27582 TOOLKIT=PM
de59c161
RD
27583 GUIDIST=PM_DIST
27584 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
27585echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
27586if test "${wx_cv_spbcdata+set}" = set; then
27587 echo $ECHO_N "(cached) $ECHO_C" >&6
27588else
27589
27590 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
27591/* confdefs.h. */
27592_ACEOF
27593cat confdefs.h >>conftest.$ac_ext
27594cat >>conftest.$ac_ext <<_ACEOF
27595/* end confdefs.h. */
27596
27597 #define INCL_PM
27598 #include <os2.h>
27599
27600int
27601main ()
27602{
27603
27604 SPBCDATA test;
27605
27606 ;
27607 return 0;
27608}
27609_ACEOF
27610rm -f conftest.$ac_objext
27611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27612 (eval $ac_compile) 2>conftest.er1
de59c161 27613 ac_status=$?
ac1cb8d3
VS
27614 grep -v '^ *+' conftest.er1 >conftest.err
27615 rm -f conftest.er1
27616 cat conftest.err >&5
de59c161
RD
27617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); } &&
89be85c2
VS
27619 { ac_try='test -z "$ac_c_werror_flag"
27620 || test ! -s conftest.err'
ac1cb8d3
VS
27621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27622 (eval $ac_try) 2>&5
27623 ac_status=$?
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); }; } &&
27626 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
27627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628 (eval $ac_try) 2>&5
27629 ac_status=$?
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; }; then
27632 wx_cv_spbcdata=yes
27633else
27634 echo "$as_me: failed program was:" >&5
27635sed 's/^/| /' conftest.$ac_ext >&5
27636
27637wx_cv_spbcdata=no
27638
27639fi
ac1cb8d3 27640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
27641
27642
27643fi
27644echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27645echo "${ECHO_T}$wx_cv_spbcdata" >&6
27646
27647 if test $wx_cv_spbcdata = "yes"; then
27648 cat >>confdefs.h <<\_ACEOF
27649#define HAVE_SPBCDATA 1
27650_ACEOF
27651
27652 fi
a848cd7e
SC
27653 fi
27654
27655 if test "$TOOLKIT" = "PM" ; then
27656 TOOLKIT_DIR="os2"
27657 else
27658 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27659 fi
27660
a848cd7e 27661 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
27662 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27663 WIDGET_SET=univ
a848cd7e
SC
27664 fi
27665
27666 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27667 DISTDIR="wx\$(TOOLKIT)"
27668else
27669 USE_GUI=0
27670
27671 TOOLKIT_DIR="base"
27672
27673 if test "$USE_WIN32" = 1 ; then
a848cd7e 27674 TOOLKIT="MSW"
a848cd7e
SC
27675 fi
27676
a848cd7e
SC
27677 GUIDIST="BASE_DIST"
27678 DISTDIR="wxBase"
27679fi
27680
27681
27682
27683
27684IODBC_C_SRC=""
27685
27686
27687if test "$TOOLKIT" != "MSW" ; then
27688
27689 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27690
27691 if test "${ac_cv_header_sql_h+set}" = set; then
27692 echo "$as_me:$LINENO: checking for sql.h" >&5
27693echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27694if test "${ac_cv_header_sql_h+set}" = set; then
27695 echo $ECHO_N "(cached) $ECHO_C" >&6
27696fi
27697echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27698echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27699else
27700 # Is the header compilable?
27701echo "$as_me:$LINENO: checking sql.h usability" >&5
27702echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27703cat >conftest.$ac_ext <<_ACEOF
27704/* confdefs.h. */
27705_ACEOF
27706cat confdefs.h >>conftest.$ac_ext
27707cat >>conftest.$ac_ext <<_ACEOF
27708/* end confdefs.h. */
27709$ac_includes_default
27710#include <sql.h>
27711_ACEOF
27712rm -f conftest.$ac_objext
27713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27714 (eval $ac_compile) 2>conftest.er1
a848cd7e 27715 ac_status=$?
ac1cb8d3
VS
27716 grep -v '^ *+' conftest.er1 >conftest.err
27717 rm -f conftest.er1
27718 cat conftest.err >&5
a848cd7e
SC
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); } &&
89be85c2
VS
27721 { ac_try='test -z "$ac_c_werror_flag"
27722 || test ! -s conftest.err'
ac1cb8d3
VS
27723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724 (eval $ac_try) 2>&5
27725 ac_status=$?
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); }; } &&
27728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27730 (eval $ac_try) 2>&5
27731 ac_status=$?
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); }; }; then
27734 ac_header_compiler=yes
27735else
27736 echo "$as_me: failed program was:" >&5
27737sed 's/^/| /' conftest.$ac_ext >&5
27738
27739ac_header_compiler=no
27740fi
ac1cb8d3 27741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27742echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27743echo "${ECHO_T}$ac_header_compiler" >&6
27744
27745# Is the header present?
27746echo "$as_me:$LINENO: checking sql.h presence" >&5
27747echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27748cat >conftest.$ac_ext <<_ACEOF
27749/* confdefs.h. */
27750_ACEOF
27751cat confdefs.h >>conftest.$ac_ext
27752cat >>conftest.$ac_ext <<_ACEOF
27753/* end confdefs.h. */
27754#include <sql.h>
27755_ACEOF
27756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27758 ac_status=$?
27759 grep -v '^ *+' conftest.er1 >conftest.err
27760 rm -f conftest.er1
27761 cat conftest.err >&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } >/dev/null; then
27764 if test -s conftest.err; then
27765 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27767 else
27768 ac_cpp_err=
27769 fi
27770else
27771 ac_cpp_err=yes
27772fi
27773if test -z "$ac_cpp_err"; then
27774 ac_header_preproc=yes
27775else
27776 echo "$as_me: failed program was:" >&5
27777sed 's/^/| /' conftest.$ac_ext >&5
27778
27779 ac_header_preproc=no
27780fi
27781rm -f conftest.err conftest.$ac_ext
27782echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27783echo "${ECHO_T}$ac_header_preproc" >&6
27784
27785# So? What about this header?
ac1cb8d3
VS
27786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27787 yes:no: )
a848cd7e
SC
27788 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27789echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27790 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27791echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27792 ac_header_preproc=yes
a848cd7e 27793 ;;
ac1cb8d3 27794 no:yes:* )
a848cd7e
SC
27795 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27796echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27797 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27798echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27799 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27800echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27801 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27802echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27803 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27804echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27805 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27806echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27807 (
27808 cat <<\_ASBOX
ac1cb8d3
VS
27809## ----------------------------------------- ##
27810## Report this to wx-dev@lists.wxwidgets.org ##
27811## ----------------------------------------- ##
a848cd7e
SC
27812_ASBOX
27813 ) |
27814 sed "s/^/$as_me: WARNING: /" >&2
27815 ;;
27816esac
27817echo "$as_me:$LINENO: checking for sql.h" >&5
27818echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27819if test "${ac_cv_header_sql_h+set}" = set; then
27820 echo $ECHO_N "(cached) $ECHO_C" >&6
27821else
27822 ac_cv_header_sql_h=$ac_header_preproc
27823fi
27824echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27825echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27826
27827fi
27828if test $ac_cv_header_sql_h = yes; then
27829 found_sql_h=1
27830fi
27831
27832
27833 if test "x$found_sql_h" = "x1" ; then
27834 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27835echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27836if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27837 echo $ECHO_N "(cached) $ECHO_C" >&6
27838else
27839 ac_check_lib_save_LIBS=$LIBS
27840LIBS="-liodbc $LIBS"
27841cat >conftest.$ac_ext <<_ACEOF
27842/* confdefs.h. */
27843_ACEOF
27844cat confdefs.h >>conftest.$ac_ext
27845cat >>conftest.$ac_ext <<_ACEOF
27846/* end confdefs.h. */
27847
27848/* Override any gcc2 internal prototype to avoid an error. */
27849#ifdef __cplusplus
27850extern "C"
27851#endif
27852/* We use char because int might match the return type of a gcc2
27853 builtin and then its argument prototype would still apply. */
27854char SQLAllocEnv ();
27855int
27856main ()
27857{
27858SQLAllocEnv ();
27859 ;
27860 return 0;
27861}
27862_ACEOF
27863rm -f conftest.$ac_objext conftest$ac_exeext
27864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27865 (eval $ac_link) 2>conftest.er1
a848cd7e 27866 ac_status=$?
ac1cb8d3
VS
27867 grep -v '^ *+' conftest.er1 >conftest.err
27868 rm -f conftest.er1
27869 cat conftest.err >&5
a848cd7e
SC
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); } &&
89be85c2
VS
27872 { ac_try='test -z "$ac_c_werror_flag"
27873 || test ! -s conftest.err'
ac1cb8d3
VS
27874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27875 (eval $ac_try) 2>&5
27876 ac_status=$?
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); }; } &&
27879 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27881 (eval $ac_try) 2>&5
27882 ac_status=$?
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); }; }; then
27885 ac_cv_lib_iodbc_SQLAllocEnv=yes
27886else
27887 echo "$as_me: failed program was:" >&5
27888sed 's/^/| /' conftest.$ac_ext >&5
27889
27890ac_cv_lib_iodbc_SQLAllocEnv=no
27891fi
ac1cb8d3
VS
27892rm -f conftest.err conftest.$ac_objext \
27893 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27894LIBS=$ac_check_lib_save_LIBS
27895fi
27896echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27897echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27898if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27899 ODBC_LINK=" -liodbc"
27900else
27901
27902 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27903echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27904if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27905 echo $ECHO_N "(cached) $ECHO_C" >&6
27906else
27907 ac_check_lib_save_LIBS=$LIBS
27908LIBS="-lunixodbc $LIBS"
27909cat >conftest.$ac_ext <<_ACEOF
27910/* confdefs.h. */
27911_ACEOF
27912cat confdefs.h >>conftest.$ac_ext
27913cat >>conftest.$ac_ext <<_ACEOF
27914/* end confdefs.h. */
27915
27916/* Override any gcc2 internal prototype to avoid an error. */
27917#ifdef __cplusplus
27918extern "C"
27919#endif
27920/* We use char because int might match the return type of a gcc2
27921 builtin and then its argument prototype would still apply. */
27922char SQLAllocEnv ();
27923int
27924main ()
27925{
27926SQLAllocEnv ();
27927 ;
27928 return 0;
27929}
27930_ACEOF
27931rm -f conftest.$ac_objext conftest$ac_exeext
27932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27933 (eval $ac_link) 2>conftest.er1
a848cd7e 27934 ac_status=$?
ac1cb8d3
VS
27935 grep -v '^ *+' conftest.er1 >conftest.err
27936 rm -f conftest.er1
27937 cat conftest.err >&5
a848cd7e
SC
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); } &&
89be85c2
VS
27940 { ac_try='test -z "$ac_c_werror_flag"
27941 || test ! -s conftest.err'
ac1cb8d3
VS
27942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27943 (eval $ac_try) 2>&5
27944 ac_status=$?
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); }; } &&
27947 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27949 (eval $ac_try) 2>&5
27950 ac_status=$?
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); }; }; then
27953 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27954else
27955 echo "$as_me: failed program was:" >&5
27956sed 's/^/| /' conftest.$ac_ext >&5
27957
27958ac_cv_lib_unixodbc_SQLAllocEnv=no
27959fi
ac1cb8d3
VS
27960rm -f conftest.err conftest.$ac_objext \
27961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27962LIBS=$ac_check_lib_save_LIBS
27963fi
27964echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27965echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27966if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27967 ODBC_LINK=" -lunixodbc"
27968else
27969
27970 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27971echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27972if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27973 echo $ECHO_N "(cached) $ECHO_C" >&6
27974else
27975 ac_check_lib_save_LIBS=$LIBS
27976LIBS="-lodbc $LIBS"
27977cat >conftest.$ac_ext <<_ACEOF
27978/* confdefs.h. */
27979_ACEOF
27980cat confdefs.h >>conftest.$ac_ext
27981cat >>conftest.$ac_ext <<_ACEOF
27982/* end confdefs.h. */
27983
27984/* Override any gcc2 internal prototype to avoid an error. */
27985#ifdef __cplusplus
27986extern "C"
27987#endif
27988/* We use char because int might match the return type of a gcc2
27989 builtin and then its argument prototype would still apply. */
27990char SQLAllocEnv ();
27991int
27992main ()
27993{
27994SQLAllocEnv ();
27995 ;
27996 return 0;
27997}
27998_ACEOF
27999rm -f conftest.$ac_objext conftest$ac_exeext
28000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28001 (eval $ac_link) 2>conftest.er1
a848cd7e 28002 ac_status=$?
ac1cb8d3
VS
28003 grep -v '^ *+' conftest.er1 >conftest.err
28004 rm -f conftest.er1
28005 cat conftest.err >&5
a848cd7e
SC
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); } &&
89be85c2
VS
28008 { ac_try='test -z "$ac_c_werror_flag"
28009 || test ! -s conftest.err'
ac1cb8d3
VS
28010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28011 (eval $ac_try) 2>&5
28012 ac_status=$?
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014 (exit $ac_status); }; } &&
28015 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28017 (eval $ac_try) 2>&5
28018 ac_status=$?
28019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); }; }; then
28021 ac_cv_lib_odbc_SQLAllocEnv=yes
28022else
28023 echo "$as_me: failed program was:" >&5
28024sed 's/^/| /' conftest.$ac_ext >&5
28025
28026ac_cv_lib_odbc_SQLAllocEnv=no
28027fi
ac1cb8d3
VS
28028rm -f conftest.err conftest.$ac_objext \
28029 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28030LIBS=$ac_check_lib_save_LIBS
28031fi
28032echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28033echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28034if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28035 ODBC_LINK=" -lodbc"
28036fi
28037
28038
28039fi
28040
28041
28042fi
28043
28044 fi
28045 if test "x$ODBC_LINK" = "x" ; then
28046 if test "$wxUSE_ODBC" = "sys" ; then
28047 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28048echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28049 { (exit 1); exit 1; }; }
28050 else
28051 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28052echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28053 wxUSE_ODBC=builtin
28054 fi
28055 else
28056 wxUSE_ODBC=sys
28057 fi
28058 fi
28059 if test "$wxUSE_ODBC" != "no" ; then
28060 cat >>confdefs.h <<\_ACEOF
28061#define wxUSE_ODBC 1
28062_ACEOF
28063
28064 if test "$wxUSE_ODBC" = "builtin" ; then
28065 cat >>confdefs.h <<\_ACEOF
28066#define wxUSE_BUILTIN_IODBC 1
28067_ACEOF
28068
28069 fi
28070 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28071
28072 WXODBCFLAG="-D_IODBC_"
28073 fi
28074fi
28075
a848cd7e 28076
01cb68df 28077
a848cd7e 28078if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28079 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28080 echo "$as_me:$LINENO: checking for Xinerama" >&5
28081echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28082
28083ac_find_libraries=
28084for ac_dir in $SEARCH_LIB /usr/lib;
28085 do
28086 for ac_extension in a so sl dylib; do
28087 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28088 ac_find_libraries=$ac_dir
28089 break 2
28090 fi
28091 done
28092 done
28093
28094 if test "$ac_find_libraries" != "" ; then
28095
28096 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28097 result=$?
28098 if test $result = 0; then
28099 ac_path_to_link=""
28100 else
28101 ac_path_to_link=" -L$ac_find_libraries"
28102 fi
28103
28104 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28105 LDFLAGS="$LDFLAGS $ac_path_to_link"
28106 fi
28107 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28108 echo "$as_me:$LINENO: result: yes" >&5
28109echo "${ECHO_T}yes" >&6
28110
28111 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28112echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28113
28114ac_find_libraries=
28115for ac_dir in $SEARCH_LIB /usr/lib;
28116 do
28117 for ac_extension in a so sl dylib; do
28118 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28119 ac_find_libraries=$ac_dir
28120 break 2
28121 fi
28122 done
28123 done
28124
28125 if test "$ac_find_libraries" != "" ; then
28126 echo "$as_me:$LINENO: result: yes" >&5
28127echo "${ECHO_T}yes" >&6
28128
28129for ac_header in X11/extensions/xf86vmode.h
28130do
28131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28132echo "$as_me:$LINENO: checking for $ac_header" >&5
28133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28134if eval "test \"\${$as_ac_Header+set}\" = set"; then
28135 echo $ECHO_N "(cached) $ECHO_C" >&6
28136else
28137 cat >conftest.$ac_ext <<_ACEOF
28138/* confdefs.h. */
28139_ACEOF
28140cat confdefs.h >>conftest.$ac_ext
28141cat >>conftest.$ac_ext <<_ACEOF
28142/* end confdefs.h. */
28143
28144 #if HAVE_X11_XLIB_H
28145 #include <X11/Xlib.h>
28146 #endif
28147
28148
28149#include <$ac_header>
28150_ACEOF
28151rm -f conftest.$ac_objext
28152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28153 (eval $ac_compile) 2>conftest.er1
a848cd7e 28154 ac_status=$?
ac1cb8d3
VS
28155 grep -v '^ *+' conftest.er1 >conftest.err
28156 rm -f conftest.er1
28157 cat conftest.err >&5
a848cd7e
SC
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); } &&
89be85c2
VS
28160 { ac_try='test -z "$ac_c_werror_flag"
28161 || test ! -s conftest.err'
ac1cb8d3
VS
28162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28163 (eval $ac_try) 2>&5
28164 ac_status=$?
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 (exit $ac_status); }; } &&
28167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28169 (eval $ac_try) 2>&5
28170 ac_status=$?
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); }; }; then
28173 eval "$as_ac_Header=yes"
28174else
28175 echo "$as_me: failed program was:" >&5
28176sed 's/^/| /' conftest.$ac_ext >&5
28177
28178eval "$as_ac_Header=no"
28179fi
ac1cb8d3 28180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28181fi
28182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28184if test `eval echo '${'$as_ac_Header'}'` = yes; then
28185 cat >>confdefs.h <<_ACEOF
28186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28187_ACEOF
28188
28189 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28190
28191fi
28192
28193done
28194
28195 else
28196 echo "$as_me:$LINENO: result: no" >&5
28197echo "${ECHO_T}no" >&6
28198 fi
28199
28200 else
28201 echo "$as_me:$LINENO: result: no" >&5
28202echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28203 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28204echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28205 wxUSE_DISPLAY="no"
28206 fi
01cb68df
RG
28207 elif test "$wxUSE_MSW" = 1; then
28208
28209
28210for ac_header in multimon.h ddraw.h
28211do
28212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28213echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28215if eval "test \"\${$as_ac_Header+set}\" = set"; then
28216 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28217else
5294a27e 28218 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28219/* confdefs.h. */
28220_ACEOF
28221cat confdefs.h >>conftest.$ac_ext
28222cat >>conftest.$ac_ext <<_ACEOF
28223/* end confdefs.h. */
5294a27e
VZ
28224#include <windows.h>
28225
01cb68df
RG
28226#include <$ac_header>
28227_ACEOF
28228rm -f conftest.$ac_objext
28229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28230 (eval $ac_compile) 2>conftest.er1
01cb68df 28231 ac_status=$?
ac1cb8d3
VS
28232 grep -v '^ *+' conftest.er1 >conftest.err
28233 rm -f conftest.er1
28234 cat conftest.err >&5
01cb68df
RG
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); } &&
89be85c2
VS
28237 { ac_try='test -z "$ac_c_werror_flag"
28238 || test ! -s conftest.err'
ac1cb8d3
VS
28239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28240 (eval $ac_try) 2>&5
28241 ac_status=$?
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); }; } &&
28244 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28246 (eval $ac_try) 2>&5
28247 ac_status=$?
28248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249 (exit $ac_status); }; }; then
5294a27e 28250 eval "$as_ac_Header=yes"
01cb68df
RG
28251else
28252 echo "$as_me: failed program was:" >&5
28253sed 's/^/| /' conftest.$ac_ext >&5
28254
5294a27e 28255eval "$as_ac_Header=no"
01cb68df 28256fi
ac1cb8d3 28257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28258fi
28259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28261if test `eval echo '${'$as_ac_Header'}'` = yes; then
28262 cat >>confdefs.h <<_ACEOF
28263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28264_ACEOF
28265
28266else
28267
5294a27e
VZ
28268 wxUSE_DISPLAY="no"
28269 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28270echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28271
28272fi
28273
28274done
28275
a848cd7e
SC
28276 fi
28277fi
28278
28279
28280USE_OPENGL=0
28281if test "$wxUSE_OPENGL" = "yes"; then
28282 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28283 OPENGL_LIBS="-framework OpenGL -framework AGL"
28284 elif test "$wxUSE_MSW" = 1; then
28285 OPENGL_LIBS="-lopengl32 -lglu32"
28286 else
28287
28288
28289ac_find_includes=
28290for ac_dir in $SEARCH_INCLUDE /usr/include;
28291 do
28292 if test -f "$ac_dir/GL/gl.h"; then
28293 ac_find_includes=$ac_dir
28294 break
28295 fi
28296 done
28297
28298 if test "$ac_find_includes" != "" ; then
28299 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28300echo "${ECHO_T}found in $ac_find_includes" >&6
28301
28302 if test "x$ac_find_includes" = "x/usr/include"; then
28303 ac_path_to_include=""
28304 else
28305 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28306 result=$?
28307 if test $result = 0; then
28308 ac_path_to_include=""
28309 else
28310 ac_path_to_include=" -I$ac_find_includes"
28311 fi
28312 fi
28313
28314 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28315 fi
28316
28317 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28318 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28319echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28320if test "${ac_cv_header_GL_gl_h+set}" = set; then
28321 echo $ECHO_N "(cached) $ECHO_C" >&6
28322fi
28323echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28324echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28325else
28326 # Is the header compilable?
28327echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28328echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28329cat >conftest.$ac_ext <<_ACEOF
28330/* confdefs.h. */
28331_ACEOF
28332cat confdefs.h >>conftest.$ac_ext
28333cat >>conftest.$ac_ext <<_ACEOF
28334/* end confdefs.h. */
28335$ac_includes_default
28336#include <GL/gl.h>
28337_ACEOF
28338rm -f conftest.$ac_objext
28339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28340 (eval $ac_compile) 2>conftest.er1
a848cd7e 28341 ac_status=$?
ac1cb8d3
VS
28342 grep -v '^ *+' conftest.er1 >conftest.err
28343 rm -f conftest.er1
28344 cat conftest.err >&5
a848cd7e
SC
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); } &&
89be85c2
VS
28347 { ac_try='test -z "$ac_c_werror_flag"
28348 || test ! -s conftest.err'
ac1cb8d3
VS
28349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350 (eval $ac_try) 2>&5
28351 ac_status=$?
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; } &&
28354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28356 (eval $ac_try) 2>&5
28357 ac_status=$?
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); }; }; then
28360 ac_header_compiler=yes
28361else
28362 echo "$as_me: failed program was:" >&5
28363sed 's/^/| /' conftest.$ac_ext >&5
28364
28365ac_header_compiler=no
28366fi
ac1cb8d3 28367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28368echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28369echo "${ECHO_T}$ac_header_compiler" >&6
28370
28371# Is the header present?
28372echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28373echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28374cat >conftest.$ac_ext <<_ACEOF
28375/* confdefs.h. */
28376_ACEOF
28377cat confdefs.h >>conftest.$ac_ext
28378cat >>conftest.$ac_ext <<_ACEOF
28379/* end confdefs.h. */
28380#include <GL/gl.h>
28381_ACEOF
28382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28384 ac_status=$?
28385 grep -v '^ *+' conftest.er1 >conftest.err
28386 rm -f conftest.er1
28387 cat conftest.err >&5
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); } >/dev/null; then
28390 if test -s conftest.err; then
28391 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28393 else
28394 ac_cpp_err=
28395 fi
28396else
28397 ac_cpp_err=yes
28398fi
28399if test -z "$ac_cpp_err"; then
28400 ac_header_preproc=yes
28401else
28402 echo "$as_me: failed program was:" >&5
28403sed 's/^/| /' conftest.$ac_ext >&5
28404
28405 ac_header_preproc=no
28406fi
28407rm -f conftest.err conftest.$ac_ext
28408echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28409echo "${ECHO_T}$ac_header_preproc" >&6
28410
28411# So? What about this header?
ac1cb8d3
VS
28412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28413 yes:no: )
a848cd7e
SC
28414 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28415echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28416 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28417echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28418 ac_header_preproc=yes
a848cd7e 28419 ;;
ac1cb8d3 28420 no:yes:* )
a848cd7e
SC
28421 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28422echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28423 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28424echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28425 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28426echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28427 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28428echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28429 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28430echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28431 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28432echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28433 (
28434 cat <<\_ASBOX
ac1cb8d3
VS
28435## ----------------------------------------- ##
28436## Report this to wx-dev@lists.wxwidgets.org ##
28437## ----------------------------------------- ##
a848cd7e
SC
28438_ASBOX
28439 ) |
28440 sed "s/^/$as_me: WARNING: /" >&2
28441 ;;
28442esac
28443echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28444echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28445if test "${ac_cv_header_GL_gl_h+set}" = set; then
28446 echo $ECHO_N "(cached) $ECHO_C" >&6
28447else
28448 ac_cv_header_GL_gl_h=$ac_header_preproc
28449fi
28450echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28451echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28452
28453fi
28454if test $ac_cv_header_GL_gl_h = yes; then
28455
28456 found_gl=0
28457
28458 echo "$as_me:$LINENO: checking for -lGL" >&5
28459echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28460
28461ac_find_libraries=
28462for ac_dir in $SEARCH_LIB /usr/lib;
28463 do
28464 for ac_extension in a so sl dylib; do
28465 if test -f "$ac_dir/libGL.$ac_extension"; then
28466 ac_find_libraries=$ac_dir
28467 break 2
28468 fi
28469 done
28470 done
28471
28472 if test "$ac_find_libraries" != "" ; then
28473
28474 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28475 result=$?
28476 if test $result = 0; then
28477 ac_path_to_link=""
28478 else
28479 ac_path_to_link=" -L$ac_find_libraries"
28480 fi
28481
28482 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28483 LDFLAGS_GL="$ac_path_to_link"
28484 fi
28485
28486
28487ac_find_libraries=
28488for ac_dir in $SEARCH_LIB /usr/lib;
28489 do
28490 for ac_extension in a so sl dylib; do
28491 if test -f "$ac_dir/libGLU.$ac_extension"; then
28492 ac_find_libraries=$ac_dir
28493 break 2
28494 fi
28495 done
28496 done
28497
28498 if test "$ac_find_libraries" != "" ; then
28499
28500 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28501 result=$?
28502 if test $result = 0; then
28503 ac_path_to_link=""
28504 else
28505 ac_path_to_link=" -L$ac_find_libraries"
28506 fi
28507
28508 if test "$ac_path_to_link" != " -L/usr/lib" -a \
28509 "$ac_path_to_link" != "$LDFLAGS_GL"; then
28510 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
28511 fi
28512
28513 found_gl=1
28514 OPENGL_LIBS="-lGL -lGLU"
28515 echo "$as_me:$LINENO: result: yes" >&5
28516echo "${ECHO_T}yes" >&6
28517 fi
28518 fi
28519
28520 if test "$found_gl" != 1; then
28521 echo "$as_me:$LINENO: result: no" >&5
28522echo "${ECHO_T}no" >&6
28523 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28524echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28525
28526ac_find_libraries=
28527for ac_dir in $SEARCH_LIB /usr/lib;
28528 do
28529 for ac_extension in a so sl dylib; do
28530 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28531 ac_find_libraries=$ac_dir
28532 break 2
28533 fi
28534 done
28535 done
28536
28537 if test "$ac_find_libraries" != "" ; then
28538
28539 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28540 result=$?
28541 if test $result = 0; then
28542 ac_path_to_link=""
28543 else
28544 ac_path_to_link=" -L$ac_find_libraries"
28545 fi
28546
28547 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28548 OPENGL_LIBS="-lMesaGL -lMesaGLU"
28549 echo "$as_me:$LINENO: result: yes" >&5
28550echo "${ECHO_T}yes" >&6
28551 else
28552 echo "$as_me:$LINENO: result: no" >&5
28553echo "${ECHO_T}no" >&6
28554 fi
28555 fi
28556
28557fi
28558
28559
28560
28561 if test "x$OPENGL_LIBS" = "x"; then
28562 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28563echo "$as_me: error: OpenGL libraries not available" >&2;}
28564 { (exit 1); exit 1; }; }
28565 fi
28566 fi
28567
28568 if test "$wxUSE_OPENGL" = "yes"; then
28569 USE_OPENGL=1
28570 cat >>confdefs.h <<\_ACEOF
28571#define wxUSE_OPENGL 1
28572_ACEOF
28573
28574 cat >>confdefs.h <<\_ACEOF
28575#define wxUSE_GLCANVAS 1
28576_ACEOF
28577
28578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28579 fi
28580fi
28581
a848cd7e
SC
28582
28583if test -n "$TOOLKIT" ; then
28584 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28585fi
28586
a848cd7e
SC
28587
28588
28589if test "$wxUSE_SHARED" = "yes"; then
28590 case "${host}" in
28591 *-pc-msdosdjgpp )
28592 wxUSE_SHARED=no
28593 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28594echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28595 ;;
28596 esac
28597fi
28598
a848cd7e 28599if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
28600
28601
28602 found_versioning=no
28603
28604
28605 if test $found_versioning = no ; then
28606 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28607echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28608if test "${wx_cv_version_script+set}" = set; then
28609 echo $ECHO_N "(cached) $ECHO_C" >&6
28610else
28611
28612 echo "VER_1 { *; };" >conftest.sym
28613 echo "int main() { return 0; }" >conftest.cpp
28614
28615 if { ac_try='
28616 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28617 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28619 (eval $ac_try) 2>&5
28620 ac_status=$?
28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); }; } ; then
28623 if test -s conftest.stderr ; then
28624 wx_cv_version_script=no
28625 else
28626 wx_cv_version_script=yes
28627 fi
28628 else
28629 wx_cv_version_script=no
28630 fi
28631 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28632
28633fi
28634echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28635echo "${ECHO_T}$wx_cv_version_script" >&6
28636 if test $wx_cv_version_script = yes ; then
28637 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28638 fi
28639 fi
28640
28641
28642 case "${host}" in
28643 *-*-linux* | *-*-gnu* )
28644 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28645 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28646 ;;
28647
28648 *-*-solaris2* )
28649 if test "$GCC" = yes ; then
28650 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28651
28652 saveLdflags="$LDFLAGS"
28653 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28654 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28655echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28656 cat >conftest.$ac_ext <<_ACEOF
28657/* confdefs.h. */
28658_ACEOF
28659cat confdefs.h >>conftest.$ac_ext
28660cat >>conftest.$ac_ext <<_ACEOF
28661/* end confdefs.h. */
28662
28663int
28664main ()
28665{
28666
28667 ;
28668 return 0;
28669}
28670_ACEOF
28671rm -f conftest.$ac_objext conftest$ac_exeext
28672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28673 (eval $ac_link) 2>conftest.er1
a848cd7e 28674 ac_status=$?
ac1cb8d3
VS
28675 grep -v '^ *+' conftest.er1 >conftest.err
28676 rm -f conftest.er1
28677 cat conftest.err >&5
a848cd7e
SC
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); } &&
89be85c2
VS
28680 { ac_try='test -z "$ac_c_werror_flag"
28681 || test ! -s conftest.err'
ac1cb8d3
VS
28682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683 (eval $ac_try) 2>&5
28684 ac_status=$?
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; } &&
28687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28689 (eval $ac_try) 2>&5
28690 ac_status=$?
28691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692 (exit $ac_status); }; }; then
28693
28694 echo "$as_me:$LINENO: result: yes" >&5
28695echo "${ECHO_T}yes" >&6
28696 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28697 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28698
28699else
28700 echo "$as_me: failed program was:" >&5
28701sed 's/^/| /' conftest.$ac_ext >&5
28702
28703
28704 echo "$as_me:$LINENO: result: no" >&5
28705echo "${ECHO_T}no" >&6
28706 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28707echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28708 LDFLAGS="$saveLdflags -Wl,-R,/"
28709 cat >conftest.$ac_ext <<_ACEOF
28710/* confdefs.h. */
28711_ACEOF
28712cat confdefs.h >>conftest.$ac_ext
28713cat >>conftest.$ac_ext <<_ACEOF
28714/* end confdefs.h. */
28715
28716int
28717main ()
28718{
28719
28720 ;
28721 return 0;
28722}
28723_ACEOF
28724rm -f conftest.$ac_objext conftest$ac_exeext
28725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28726 (eval $ac_link) 2>conftest.er1
a848cd7e 28727 ac_status=$?
ac1cb8d3
VS
28728 grep -v '^ *+' conftest.er1 >conftest.err
28729 rm -f conftest.er1
28730 cat conftest.err >&5
a848cd7e
SC
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); } &&
89be85c2
VS
28733 { ac_try='test -z "$ac_c_werror_flag"
28734 || test ! -s conftest.err'
ac1cb8d3
VS
28735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736 (eval $ac_try) 2>&5
28737 ac_status=$?
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); }; } &&
28740 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 (eval $ac_try) 2>&5
28743 ac_status=$?
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; }; then
28746
ffa0583f 28747 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28748echo "${ECHO_T}yes" >&6
ffa0583f
RL
28749 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28750 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28751
a848cd7e
SC
28752else
28753 echo "$as_me: failed program was:" >&5
28754sed 's/^/| /' conftest.$ac_ext >&5
28755
28756
28757 echo "$as_me:$LINENO: result: no" >&5
28758echo "${ECHO_T}no" >&6
28759
28760fi
ac1cb8d3
VS
28761rm -f conftest.err conftest.$ac_objext \
28762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28763
28764fi
ac1cb8d3
VS
28765rm -f conftest.err conftest.$ac_objext \
28766 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28767 LDFLAGS="$saveLdflags"
28768 else
a848cd7e 28769 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28770 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28771 fi
28772 ;;
28773
28774 powerpc-*-darwin* )
28775 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28776 cat <<EOF >change-install-names
28777#!/bin/sh
28778libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28779inst_cmd="install_name_tool "
28780for i in \${libnames} ; do
28781 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28782done
28783\${inst_cmd} \${3}
28784EOF
28785 chmod +x change-install-names
28786 ;;
28787
28788 *-*-cygwin* | *-*-mingw32* )
28789 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28790 ;;
28791
81f90336
MW
28792 *-*-hpux* )
28793 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
28794 WXCONFIG_RPATH="-Wl,+b,\$libdir"
28795 ;;
28796
a848cd7e 28797 esac
ceec2216 28798
ffa0583f
RL
28799 if test $wxUSE_RPATH = "no"; then
28800 SAMPLES_RPATH_FLAG=''
28801 SAMPLES_RPATH_POSTLINK=''
28802 WXCONFIG_RPATH=''
28803 fi
28804
28805 SHARED=1
28806
28807else
28808
ceec2216
RL
28809 config_linkage_component="-static"
28810 SHARED=0
ffa0583f 28811
ceec2216 28812fi
a848cd7e 28813
a848cd7e 28814
ceec2216
RL
28815UNICODE=0
28816lib_unicode_suffix=
28817WX_CHARTYPE="ansi"
28818if test "$wxUSE_UNICODE" = "yes"; then
28819 lib_unicode_suffix=u
28820 WX_CHARTYPE="unicode"
28821 UNICODE=1
a848cd7e
SC
28822fi
28823
ceec2216
RL
28824lib_debug_suffix=
28825WX_DEBUGTYPE="release"
28826DEBUG_FLAG=0
28827if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28828 lib_debug_suffix=d
28829 WX_DEBUGTYPE="debug"
28830 DEBUG_FLAG=1
28831fi
a848cd7e 28832
ceec2216
RL
28833WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28834WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28835
ceec2216
RL
28836DEBUG_INFO=0
28837if test "$wxUSE_DEBUG_INFO" = "yes"; then
28838 DEBUG_INFO=1
28839fi
a848cd7e 28840
ceec2216 28841WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28842
ceec2216 28843TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28844
ceec2216 28845TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28846
ceec2216
RL
28847if test "$cross_compiling" = "yes"; then
28848 HOST_SUFFIX="-$host_alias"
28849 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28850 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28851fi
28852
dd21ced8 28853WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28854WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28855
28856
28857
a848cd7e 28858if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28859 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28860 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28861
a848cd7e 28862 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28863
28864 # Extract the first word of "Rez", so it can be a program name with args.
28865set dummy Rez; ac_word=$2
28866echo "$as_me:$LINENO: checking for $ac_word" >&5
28867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28868if test "${ac_cv_prog_RESCOMP+set}" = set; then
28869 echo $ECHO_N "(cached) $ECHO_C" >&6
28870else
28871 if test -n "$RESCOMP"; then
28872 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28873else
28874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28875for as_dir in $PATH
28876do
28877 IFS=$as_save_IFS
28878 test -z "$as_dir" && as_dir=.
28879 for ac_exec_ext in '' $ac_executable_extensions; do
28880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28881 ac_cv_prog_RESCOMP="Rez"
28882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28883 break 2
28884 fi
28885done
28886done
28887
28888 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28889fi
28890fi
28891RESCOMP=$ac_cv_prog_RESCOMP
28892if test -n "$RESCOMP"; then
28893 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28894echo "${ECHO_T}$RESCOMP" >&6
28895else
28896 echo "$as_me:$LINENO: result: no" >&5
28897echo "${ECHO_T}no" >&6
28898fi
28899
28900 # Extract the first word of "DeRez", so it can be a program name with args.
28901set dummy DeRez; ac_word=$2
28902echo "$as_me:$LINENO: checking for $ac_word" >&5
28903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28904if test "${ac_cv_prog_DEREZ+set}" = set; then
28905 echo $ECHO_N "(cached) $ECHO_C" >&6
28906else
28907 if test -n "$DEREZ"; then
28908 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28909else
28910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28911for as_dir in $PATH
28912do
28913 IFS=$as_save_IFS
28914 test -z "$as_dir" && as_dir=.
28915 for ac_exec_ext in '' $ac_executable_extensions; do
28916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28917 ac_cv_prog_DEREZ="DeRez"
28918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28919 break 2
28920 fi
28921done
28922done
28923
28924 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28925fi
28926fi
28927DEREZ=$ac_cv_prog_DEREZ
28928if test -n "$DEREZ"; then
28929 echo "$as_me:$LINENO: result: $DEREZ" >&5
28930echo "${ECHO_T}$DEREZ" >&6
28931else
28932 echo "$as_me:$LINENO: result: no" >&5
28933echo "${ECHO_T}no" >&6
28934fi
28935
28936 # Extract the first word of "SetFile", so it can be a program name with args.
28937set dummy SetFile; ac_word=$2
28938echo "$as_me:$LINENO: checking for $ac_word" >&5
28939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28940if test "${ac_cv_prog_SETFILE+set}" = set; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28942else
28943 if test -n "$SETFILE"; then
28944 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28945else
28946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28947for as_dir in $PATH
28948do
28949 IFS=$as_save_IFS
28950 test -z "$as_dir" && as_dir=.
28951 for ac_exec_ext in '' $ac_executable_extensions; do
28952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28953 ac_cv_prog_SETFILE="SetFile"
28954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28955 break 2
28956 fi
28957done
28958done
28959
28960 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28961fi
28962fi
28963SETFILE=$ac_cv_prog_SETFILE
28964if test -n "$SETFILE"; then
28965 echo "$as_me:$LINENO: result: $SETFILE" >&5
28966echo "${ECHO_T}$SETFILE" >&6
28967else
28968 echo "$as_me:$LINENO: result: no" >&5
28969echo "${ECHO_T}no" >&6
28970fi
28971
28972
28973 MACSETFILE="\$(SETFILE)"
28974
28975 if test "$wxUSE_MAC" = 1; then
28976 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28977
28978 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28979 else
28980 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28981 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28982 fi
28983else
ffa0583f
RL
28984 MACSETFILE="@true"
28985 MACRESWXCONFIG="@true"
a848cd7e
SC
28986
28987 if test "$wxUSE_PM" = 1; then
28988 MACRESCOMP="emxbind -ep"
28989 else
ffa0583f 28990 MACRESCOMP="@true"
a848cd7e
SC
28991 fi
28992fi
28993
28994
28995
28996echo "$as_me:$LINENO: checking for mode_t" >&5
28997echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28998if test "${ac_cv_type_mode_t+set}" = set; then
28999 echo $ECHO_N "(cached) $ECHO_C" >&6
29000else
29001 cat >conftest.$ac_ext <<_ACEOF
29002/* confdefs.h. */
29003_ACEOF
29004cat confdefs.h >>conftest.$ac_ext
29005cat >>conftest.$ac_ext <<_ACEOF
29006/* end confdefs.h. */
29007$ac_includes_default
29008int
29009main ()
29010{
29011if ((mode_t *) 0)
29012 return 0;
29013if (sizeof (mode_t))
29014 return 0;
29015 ;
29016 return 0;
29017}
29018_ACEOF
29019rm -f conftest.$ac_objext
29020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29021 (eval $ac_compile) 2>conftest.er1
a848cd7e 29022 ac_status=$?
ac1cb8d3
VS
29023 grep -v '^ *+' conftest.er1 >conftest.err
29024 rm -f conftest.er1
29025 cat conftest.err >&5
a848cd7e
SC
29026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29027 (exit $ac_status); } &&
89be85c2
VS
29028 { ac_try='test -z "$ac_c_werror_flag"
29029 || test ! -s conftest.err'
ac1cb8d3
VS
29030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29031 (eval $ac_try) 2>&5
29032 ac_status=$?
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); }; } &&
29035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29037 (eval $ac_try) 2>&5
29038 ac_status=$?
29039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040 (exit $ac_status); }; }; then
29041 ac_cv_type_mode_t=yes
29042else
29043 echo "$as_me: failed program was:" >&5
29044sed 's/^/| /' conftest.$ac_ext >&5
29045
29046ac_cv_type_mode_t=no
29047fi
ac1cb8d3 29048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29049fi
29050echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29051echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29052if test $ac_cv_type_mode_t = yes; then
29053 :
29054else
29055
29056cat >>confdefs.h <<_ACEOF
29057#define mode_t int
29058_ACEOF
29059
29060fi
29061
29062echo "$as_me:$LINENO: checking for off_t" >&5
29063echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29064if test "${ac_cv_type_off_t+set}" = set; then
29065 echo $ECHO_N "(cached) $ECHO_C" >&6
29066else
29067 cat >conftest.$ac_ext <<_ACEOF
29068/* confdefs.h. */
29069_ACEOF
29070cat confdefs.h >>conftest.$ac_ext
29071cat >>conftest.$ac_ext <<_ACEOF
29072/* end confdefs.h. */
29073$ac_includes_default
29074int
29075main ()
29076{
29077if ((off_t *) 0)
29078 return 0;
29079if (sizeof (off_t))
29080 return 0;
29081 ;
29082 return 0;
29083}
29084_ACEOF
29085rm -f conftest.$ac_objext
29086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29087 (eval $ac_compile) 2>conftest.er1
a848cd7e 29088 ac_status=$?
ac1cb8d3
VS
29089 grep -v '^ *+' conftest.er1 >conftest.err
29090 rm -f conftest.er1
29091 cat conftest.err >&5
a848cd7e
SC
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } &&
89be85c2
VS
29094 { ac_try='test -z "$ac_c_werror_flag"
29095 || test ! -s conftest.err'
ac1cb8d3
VS
29096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097 (eval $ac_try) 2>&5
29098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; } &&
29101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29104 ac_status=$?
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; }; then
29107 ac_cv_type_off_t=yes
29108else
29109 echo "$as_me: failed program was:" >&5
29110sed 's/^/| /' conftest.$ac_ext >&5
29111
29112ac_cv_type_off_t=no
29113fi
ac1cb8d3 29114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29115fi
29116echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29117echo "${ECHO_T}$ac_cv_type_off_t" >&6
29118if test $ac_cv_type_off_t = yes; then
29119 :
29120else
29121
29122cat >>confdefs.h <<_ACEOF
29123#define off_t long
29124_ACEOF
29125
29126fi
29127
29128echo "$as_me:$LINENO: checking for pid_t" >&5
29129echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29130if test "${ac_cv_type_pid_t+set}" = set; then
29131 echo $ECHO_N "(cached) $ECHO_C" >&6
29132else
29133 cat >conftest.$ac_ext <<_ACEOF
29134/* confdefs.h. */
29135_ACEOF
29136cat confdefs.h >>conftest.$ac_ext
29137cat >>conftest.$ac_ext <<_ACEOF
29138/* end confdefs.h. */
29139$ac_includes_default
29140int
29141main ()
29142{
29143if ((pid_t *) 0)
29144 return 0;
29145if (sizeof (pid_t))
29146 return 0;
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); } &&
89be85c2
VS
29160 { ac_try='test -z "$ac_c_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 ac_cv_type_pid_t=yes
29174else
29175 echo "$as_me: failed program was:" >&5
29176sed 's/^/| /' conftest.$ac_ext >&5
29177
29178ac_cv_type_pid_t=no
29179fi
ac1cb8d3 29180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29181fi
29182echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29183echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29184if test $ac_cv_type_pid_t = yes; then
29185 :
29186else
29187
29188cat >>confdefs.h <<_ACEOF
29189#define pid_t int
29190_ACEOF
29191
29192fi
29193
29194echo "$as_me:$LINENO: checking for size_t" >&5
29195echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29196if test "${ac_cv_type_size_t+set}" = set; then
29197 echo $ECHO_N "(cached) $ECHO_C" >&6
29198else
29199 cat >conftest.$ac_ext <<_ACEOF
29200/* confdefs.h. */
29201_ACEOF
29202cat confdefs.h >>conftest.$ac_ext
29203cat >>conftest.$ac_ext <<_ACEOF
29204/* end confdefs.h. */
29205$ac_includes_default
29206int
29207main ()
29208{
29209if ((size_t *) 0)
29210 return 0;
29211if (sizeof (size_t))
29212 return 0;
29213 ;
29214 return 0;
29215}
29216_ACEOF
29217rm -f conftest.$ac_objext
29218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29219 (eval $ac_compile) 2>conftest.er1
a848cd7e 29220 ac_status=$?
ac1cb8d3
VS
29221 grep -v '^ *+' conftest.er1 >conftest.err
29222 rm -f conftest.er1
29223 cat conftest.err >&5
a848cd7e
SC
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); } &&
89be85c2
VS
29226 { ac_try='test -z "$ac_c_werror_flag"
29227 || test ! -s conftest.err'
ac1cb8d3
VS
29228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229 (eval $ac_try) 2>&5
29230 ac_status=$?
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); }; } &&
29233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29235 (eval $ac_try) 2>&5
29236 ac_status=$?
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); }; }; then
29239 ac_cv_type_size_t=yes
29240else
29241 echo "$as_me: failed program was:" >&5
29242sed 's/^/| /' conftest.$ac_ext >&5
29243
29244ac_cv_type_size_t=no
29245fi
ac1cb8d3 29246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29247fi
29248echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29249echo "${ECHO_T}$ac_cv_type_size_t" >&6
29250if test $ac_cv_type_size_t = yes; then
29251 :
29252else
29253
29254cat >>confdefs.h <<_ACEOF
29255#define size_t unsigned
29256_ACEOF
29257
29258fi
29259
29260echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29261echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29262if test "${ac_cv_type_uid_t+set}" = set; then
29263 echo $ECHO_N "(cached) $ECHO_C" >&6
29264else
29265 cat >conftest.$ac_ext <<_ACEOF
29266/* confdefs.h. */
29267_ACEOF
29268cat confdefs.h >>conftest.$ac_ext
29269cat >>conftest.$ac_ext <<_ACEOF
29270/* end confdefs.h. */
29271#include <sys/types.h>
29272
29273_ACEOF
29274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29275 $EGREP "uid_t" >/dev/null 2>&1; then
29276 ac_cv_type_uid_t=yes
29277else
29278 ac_cv_type_uid_t=no
29279fi
29280rm -f conftest*
29281
29282fi
29283echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29284echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29285if test $ac_cv_type_uid_t = no; then
29286
29287cat >>confdefs.h <<\_ACEOF
29288#define uid_t int
29289_ACEOF
29290
29291
29292cat >>confdefs.h <<\_ACEOF
29293#define gid_t int
29294_ACEOF
29295
29296fi
29297
29298
d51253e8
RL
29299echo "$as_me:$LINENO: checking for ssize_t" >&5
29300echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29301if test "${ac_cv_type_ssize_t+set}" = set; then
29302 echo $ECHO_N "(cached) $ECHO_C" >&6
29303else
29304 cat >conftest.$ac_ext <<_ACEOF
29305/* confdefs.h. */
29306_ACEOF
29307cat confdefs.h >>conftest.$ac_ext
29308cat >>conftest.$ac_ext <<_ACEOF
29309/* end confdefs.h. */
29310$ac_includes_default
29311int
29312main ()
29313{
29314if ((ssize_t *) 0)
29315 return 0;
29316if (sizeof (ssize_t))
29317 return 0;
29318 ;
29319 return 0;
29320}
29321_ACEOF
29322rm -f conftest.$ac_objext
29323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29324 (eval $ac_compile) 2>conftest.er1
29325 ac_status=$?
29326 grep -v '^ *+' conftest.er1 >conftest.err
29327 rm -f conftest.er1
29328 cat conftest.err >&5
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); } &&
89be85c2
VS
29331 { ac_try='test -z "$ac_c_werror_flag"
29332 || test ! -s conftest.err'
d51253e8
RL
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'
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 ac_cv_type_ssize_t=yes
29345else
29346 echo "$as_me: failed program was:" >&5
29347sed 's/^/| /' conftest.$ac_ext >&5
29348
29349ac_cv_type_ssize_t=no
29350fi
29351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29352fi
29353echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29354echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29355if test $ac_cv_type_ssize_t = yes; then
29356
29357cat >>confdefs.h <<_ACEOF
29358#define HAVE_SSIZE_T 1
29359_ACEOF
29360
29361
29362fi
29363
29364
a848cd7e
SC
29365
29366
29367ac_ext=cc
29368ac_cpp='$CXXCPP $CPPFLAGS'
29369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29372
29373echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
29374echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
29375if test "${wx_cv_size_t_is_uint+set}" = set; then
29376 echo $ECHO_N "(cached) $ECHO_C" >&6
29377else
29378
29379 cat >conftest.$ac_ext <<_ACEOF
29380/* confdefs.h. */
29381_ACEOF
29382cat confdefs.h >>conftest.$ac_ext
29383cat >>conftest.$ac_ext <<_ACEOF
29384/* end confdefs.h. */
29385#include <stddef.h>
29386int
29387main ()
29388{
29389
29390 return 0; }
29391
29392 struct Foo { void foo(size_t); void foo(unsigned int); };
29393
29394 int bar() {
29395
29396 ;
29397 return 0;
29398}
29399_ACEOF
29400rm -f conftest.$ac_objext
29401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29402 (eval $ac_compile) 2>conftest.er1
a848cd7e 29403 ac_status=$?
ac1cb8d3
VS
29404 grep -v '^ *+' conftest.er1 >conftest.err
29405 rm -f conftest.er1
29406 cat conftest.err >&5
a848cd7e
SC
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); } &&
89be85c2
VS
29409 { ac_try='test -z "$ac_cxx_werror_flag"
29410 || test ! -s conftest.err'
ac1cb8d3
VS
29411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29412 (eval $ac_try) 2>&5
29413 ac_status=$?
29414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415 (exit $ac_status); }; } &&
29416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29418 (eval $ac_try) 2>&5
29419 ac_status=$?
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); }; }; then
29422 wx_cv_size_t_is_uint=no
29423else
29424 echo "$as_me: failed program was:" >&5
29425sed 's/^/| /' conftest.$ac_ext >&5
29426
29427wx_cv_size_t_is_uint=yes
29428
29429fi
ac1cb8d3 29430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29431
29432
29433fi
29434echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
29435echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
29436
29437if test "$wx_cv_size_t_is_uint" = "yes"; then
29438 cat >>confdefs.h <<\_ACEOF
29439#define wxSIZE_T_IS_UINT 1
29440_ACEOF
29441
29442else
29443 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
29444echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
29445if test "${wx_cv_size_t_is_ulong+set}" = set; then
29446 echo $ECHO_N "(cached) $ECHO_C" >&6
29447else
29448 cat >conftest.$ac_ext <<_ACEOF
29449/* confdefs.h. */
29450_ACEOF
29451cat confdefs.h >>conftest.$ac_ext
29452cat >>conftest.$ac_ext <<_ACEOF
29453/* end confdefs.h. */
29454#include <stddef.h>
29455int
29456main ()
29457{
29458
29459 return 0; }
29460
29461 struct Foo { void foo(size_t); void foo(unsigned long); };
29462
29463 int bar() {
29464
29465 ;
29466 return 0;
29467}
29468_ACEOF
29469rm -f conftest.$ac_objext
29470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29471 (eval $ac_compile) 2>conftest.er1
a848cd7e 29472 ac_status=$?
ac1cb8d3
VS
29473 grep -v '^ *+' conftest.er1 >conftest.err
29474 rm -f conftest.er1
29475 cat conftest.err >&5
a848cd7e
SC
29476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); } &&
89be85c2
VS
29478 { ac_try='test -z "$ac_cxx_werror_flag"
29479 || test ! -s conftest.err'
ac1cb8d3
VS
29480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29481 (eval $ac_try) 2>&5
29482 ac_status=$?
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); }; } &&
29485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29487 (eval $ac_try) 2>&5
29488 ac_status=$?
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); }; }; then
29491 wx_cv_size_t_is_ulong=no
29492else
29493 echo "$as_me: failed program was:" >&5
29494sed 's/^/| /' conftest.$ac_ext >&5
29495
29496wx_cv_size_t_is_ulong=yes
29497
29498fi
ac1cb8d3 29499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29500
29501fi
29502echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
29503echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
29504
29505 if test "$wx_cv_size_t_is_ulong" = "yes"; then
29506 cat >>confdefs.h <<\_ACEOF
29507#define wxSIZE_T_IS_ULONG 1
29508_ACEOF
29509
29510 fi
29511fi
29512
29513ac_ext=c
29514ac_cpp='$CPP $CPPFLAGS'
29515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29517ac_compiler_gnu=$ac_cv_c_compiler_gnu
29518
29519
29520
29521echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
29522echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
29523if test "${wx_cv_struct_pw_gecos+set}" = set; then
29524 echo $ECHO_N "(cached) $ECHO_C" >&6
29525else
29526
29527 cat >conftest.$ac_ext <<_ACEOF
29528/* confdefs.h. */
29529_ACEOF
29530cat confdefs.h >>conftest.$ac_ext
29531cat >>conftest.$ac_ext <<_ACEOF
29532/* end confdefs.h. */
29533#include <pwd.h>
29534int
29535main ()
29536{
29537
29538 char *p;
29539 struct passwd *pw;
29540 p = pw->pw_gecos;
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); } &&
89be85c2
VS
29555 { ac_try='test -z "$ac_c_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
29569 wx_cv_struct_pw_gecos=yes
29570
29571else
29572 echo "$as_me: failed program was:" >&5
29573sed 's/^/| /' conftest.$ac_ext >&5
29574
29575
29576 wx_cv_struct_pw_gecos=no
29577
29578
29579fi
ac1cb8d3 29580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29581
29582
29583fi
29584echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29585echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29586
29587if test "$wx_cv_struct_pw_gecos" = "yes"; then
29588 cat >>confdefs.h <<\_ACEOF
29589#define HAVE_PW_GECOS 1
29590_ACEOF
29591
29592fi
29593
29594
29595if test "$wx_cv_sizeof_wchar_t" != "0"; then
29596 cat >>confdefs.h <<\_ACEOF
29597#define wxUSE_WCHAR_T 1
29598_ACEOF
29599
29600
29601 WCSLEN_FOUND=0
29602 WCHAR_LINK=
29603
29604for ac_func in wcslen
29605do
29606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29607echo "$as_me:$LINENO: checking for $ac_func" >&5
29608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29609if eval "test \"\${$as_ac_var+set}\" = set"; then
29610 echo $ECHO_N "(cached) $ECHO_C" >&6
29611else
29612 cat >conftest.$ac_ext <<_ACEOF
29613/* confdefs.h. */
29614_ACEOF
29615cat confdefs.h >>conftest.$ac_ext
29616cat >>conftest.$ac_ext <<_ACEOF
29617/* end confdefs.h. */
ac1cb8d3
VS
29618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29620#define $ac_func innocuous_$ac_func
29621
a848cd7e
SC
29622/* System header to define __stub macros and hopefully few prototypes,
29623 which can conflict with char $ac_func (); below.
29624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29625 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29626
a848cd7e
SC
29627#ifdef __STDC__
29628# include <limits.h>
29629#else
29630# include <assert.h>
29631#endif
ac1cb8d3
VS
29632
29633#undef $ac_func
29634
a848cd7e
SC
29635/* Override any gcc2 internal prototype to avoid an error. */
29636#ifdef __cplusplus
29637extern "C"
29638{
29639#endif
29640/* We use char because int might match the return type of a gcc2
29641 builtin and then its argument prototype would still apply. */
29642char $ac_func ();
29643/* The GNU C library defines this for functions which it implements
29644 to always fail with ENOSYS. Some functions are actually named
29645 something starting with __ and the normal name is an alias. */
29646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29647choke me
29648#else
29649char (*f) () = $ac_func;
29650#endif
29651#ifdef __cplusplus
29652}
29653#endif
29654
29655int
29656main ()
29657{
29658return f != $ac_func;
29659 ;
29660 return 0;
29661}
29662_ACEOF
29663rm -f conftest.$ac_objext conftest$ac_exeext
29664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29665 (eval $ac_link) 2>conftest.er1
a848cd7e 29666 ac_status=$?
ac1cb8d3
VS
29667 grep -v '^ *+' conftest.er1 >conftest.err
29668 rm -f conftest.er1
29669 cat conftest.err >&5
a848cd7e
SC
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); } &&
89be85c2
VS
29672 { ac_try='test -z "$ac_c_werror_flag"
29673 || test ! -s conftest.err'
ac1cb8d3
VS
29674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29675 (eval $ac_try) 2>&5
29676 ac_status=$?
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; } &&
29679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29681 (eval $ac_try) 2>&5
29682 ac_status=$?
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); }; }; then
29685 eval "$as_ac_var=yes"
29686else
29687 echo "$as_me: failed program was:" >&5
29688sed 's/^/| /' conftest.$ac_ext >&5
29689
29690eval "$as_ac_var=no"
29691fi
ac1cb8d3
VS
29692rm -f conftest.err conftest.$ac_objext \
29693 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29694fi
29695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29696echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29697if test `eval echo '${'$as_ac_var'}'` = yes; then
29698 cat >>confdefs.h <<_ACEOF
29699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29700_ACEOF
29701 WCSLEN_FOUND=1
29702fi
29703done
29704
29705
29706 if test "$WCSLEN_FOUND" = 0; then
29707 if test "$TOOLKIT" = "MSW"; then
29708 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29709echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29710if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29711 echo $ECHO_N "(cached) $ECHO_C" >&6
29712else
29713 ac_check_lib_save_LIBS=$LIBS
29714LIBS="-lmsvcrt $LIBS"
29715cat >conftest.$ac_ext <<_ACEOF
29716/* confdefs.h. */
29717_ACEOF
29718cat confdefs.h >>conftest.$ac_ext
29719cat >>conftest.$ac_ext <<_ACEOF
29720/* end confdefs.h. */
29721
29722/* Override any gcc2 internal prototype to avoid an error. */
29723#ifdef __cplusplus
29724extern "C"
29725#endif
29726/* We use char because int might match the return type of a gcc2
29727 builtin and then its argument prototype would still apply. */
29728char wcslen ();
29729int
29730main ()
29731{
29732wcslen ();
29733 ;
29734 return 0;
29735}
29736_ACEOF
29737rm -f conftest.$ac_objext conftest$ac_exeext
29738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29739 (eval $ac_link) 2>conftest.er1
a848cd7e 29740 ac_status=$?
ac1cb8d3
VS
29741 grep -v '^ *+' conftest.er1 >conftest.err
29742 rm -f conftest.er1
29743 cat conftest.err >&5
a848cd7e
SC
29744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745 (exit $ac_status); } &&
89be85c2
VS
29746 { ac_try='test -z "$ac_c_werror_flag"
29747 || test ! -s conftest.err'
ac1cb8d3
VS
29748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29749 (eval $ac_try) 2>&5
29750 ac_status=$?
29751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); }; } &&
29753 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29755 (eval $ac_try) 2>&5
29756 ac_status=$?
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758 (exit $ac_status); }; }; then
29759 ac_cv_lib_msvcrt_wcslen=yes
29760else
29761 echo "$as_me: failed program was:" >&5
29762sed 's/^/| /' conftest.$ac_ext >&5
29763
29764ac_cv_lib_msvcrt_wcslen=no
29765fi
ac1cb8d3
VS
29766rm -f conftest.err conftest.$ac_objext \
29767 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29768LIBS=$ac_check_lib_save_LIBS
29769fi
29770echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29771echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29772if test $ac_cv_lib_msvcrt_wcslen = yes; then
29773 WCHAR_OK=1
29774fi
29775
29776 else
29777 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29778echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29779if test "${ac_cv_lib_w_wcslen+set}" = set; then
29780 echo $ECHO_N "(cached) $ECHO_C" >&6
29781else
29782 ac_check_lib_save_LIBS=$LIBS
29783LIBS="-lw $LIBS"
29784cat >conftest.$ac_ext <<_ACEOF
29785/* confdefs.h. */
29786_ACEOF
29787cat confdefs.h >>conftest.$ac_ext
29788cat >>conftest.$ac_ext <<_ACEOF
29789/* end confdefs.h. */
29790
29791/* Override any gcc2 internal prototype to avoid an error. */
29792#ifdef __cplusplus
29793extern "C"
29794#endif
29795/* We use char because int might match the return type of a gcc2
29796 builtin and then its argument prototype would still apply. */
29797char wcslen ();
29798int
29799main ()
29800{
29801wcslen ();
29802 ;
29803 return 0;
29804}
29805_ACEOF
29806rm -f conftest.$ac_objext conftest$ac_exeext
29807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29808 (eval $ac_link) 2>conftest.er1
a848cd7e 29809 ac_status=$?
ac1cb8d3
VS
29810 grep -v '^ *+' conftest.er1 >conftest.err
29811 rm -f conftest.er1
29812 cat conftest.err >&5
a848cd7e
SC
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); } &&
89be85c2
VS
29815 { ac_try='test -z "$ac_c_werror_flag"
29816 || test ! -s conftest.err'
ac1cb8d3
VS
29817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818 (eval $ac_try) 2>&5
29819 ac_status=$?
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; } &&
29822 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824 (eval $ac_try) 2>&5
29825 ac_status=$?
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; }; then
29828 ac_cv_lib_w_wcslen=yes
29829else
29830 echo "$as_me: failed program was:" >&5
29831sed 's/^/| /' conftest.$ac_ext >&5
29832
29833ac_cv_lib_w_wcslen=no
29834fi
ac1cb8d3
VS
29835rm -f conftest.err conftest.$ac_objext \
29836 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29837LIBS=$ac_check_lib_save_LIBS
29838fi
29839echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29840echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29841if test $ac_cv_lib_w_wcslen = yes; then
29842
29843 WCHAR_LINK=" -lw"
29844 WCSLEN_FOUND=1
29845
29846fi
29847
29848 fi
29849 fi
29850
29851 if test "$WCSLEN_FOUND" = 1; then
29852 cat >>confdefs.h <<\_ACEOF
29853#define HAVE_WCSLEN 1
29854_ACEOF
29855
29856 fi
29857
81f90336 29858 if test "$USE_HPUX" = 1; then
473276a9
VS
29859 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29860 fi
29861
a848cd7e
SC
29862
29863for ac_func in wcsrtombs
29864do
29865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29866echo "$as_me:$LINENO: checking for $ac_func" >&5
29867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29868if eval "test \"\${$as_ac_var+set}\" = set"; then
29869 echo $ECHO_N "(cached) $ECHO_C" >&6
29870else
29871 cat >conftest.$ac_ext <<_ACEOF
29872/* confdefs.h. */
29873_ACEOF
29874cat confdefs.h >>conftest.$ac_ext
29875cat >>conftest.$ac_ext <<_ACEOF
29876/* end confdefs.h. */
ac1cb8d3
VS
29877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29879#define $ac_func innocuous_$ac_func
29880
a848cd7e
SC
29881/* System header to define __stub macros and hopefully few prototypes,
29882 which can conflict with char $ac_func (); below.
29883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29884 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29885
a848cd7e
SC
29886#ifdef __STDC__
29887# include <limits.h>
29888#else
29889# include <assert.h>
29890#endif
ac1cb8d3
VS
29891
29892#undef $ac_func
29893
a848cd7e
SC
29894/* Override any gcc2 internal prototype to avoid an error. */
29895#ifdef __cplusplus
29896extern "C"
29897{
29898#endif
29899/* We use char because int might match the return type of a gcc2
29900 builtin and then its argument prototype would still apply. */
29901char $ac_func ();
29902/* The GNU C library defines this for functions which it implements
29903 to always fail with ENOSYS. Some functions are actually named
29904 something starting with __ and the normal name is an alias. */
29905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29906choke me
29907#else
29908char (*f) () = $ac_func;
29909#endif
29910#ifdef __cplusplus
29911}
29912#endif
29913
29914int
29915main ()
29916{
29917return f != $ac_func;
29918 ;
29919 return 0;
29920}
29921_ACEOF
29922rm -f conftest.$ac_objext conftest$ac_exeext
29923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29924 (eval $ac_link) 2>conftest.er1
a848cd7e 29925 ac_status=$?
ac1cb8d3
VS
29926 grep -v '^ *+' conftest.er1 >conftest.err
29927 rm -f conftest.er1
29928 cat conftest.err >&5
a848cd7e
SC
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
89be85c2
VS
29931 { ac_try='test -z "$ac_c_werror_flag"
29932 || test ! -s conftest.err'
ac1cb8d3
VS
29933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29934 (eval $ac_try) 2>&5
29935 ac_status=$?
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; } &&
29938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940 (eval $ac_try) 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; }; then
29944 eval "$as_ac_var=yes"
29945else
29946 echo "$as_me: failed program was:" >&5
29947sed 's/^/| /' conftest.$ac_ext >&5
29948
29949eval "$as_ac_var=no"
29950fi
ac1cb8d3
VS
29951rm -f conftest.err conftest.$ac_objext \
29952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29953fi
29954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29956if test `eval echo '${'$as_ac_var'}'` = yes; then
29957 cat >>confdefs.h <<_ACEOF
29958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29959_ACEOF
29960
29961fi
29962done
29963
29964else
29965 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29966echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29967fi
29968
29969
29970
29971ac_ext=cc
29972ac_cpp='$CXXCPP $CPPFLAGS'
29973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29976
29977
29978
29979for ac_func in vsnprintf
29980do
29981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29982echo "$as_me:$LINENO: checking for $ac_func" >&5
29983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29984if eval "test \"\${$as_ac_var+set}\" = set"; then
29985 echo $ECHO_N "(cached) $ECHO_C" >&6
29986else
29987 cat >conftest.$ac_ext <<_ACEOF
29988/* confdefs.h. */
29989_ACEOF
29990cat confdefs.h >>conftest.$ac_ext
29991cat >>conftest.$ac_ext <<_ACEOF
29992/* end confdefs.h. */
ac1cb8d3
VS
29993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29995#define $ac_func innocuous_$ac_func
29996
a848cd7e
SC
29997/* System header to define __stub macros and hopefully few prototypes,
29998 which can conflict with char $ac_func (); below.
29999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30000 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30001
a848cd7e
SC
30002#ifdef __STDC__
30003# include <limits.h>
30004#else
30005# include <assert.h>
30006#endif
ac1cb8d3
VS
30007
30008#undef $ac_func
30009
a848cd7e
SC
30010/* Override any gcc2 internal prototype to avoid an error. */
30011#ifdef __cplusplus
30012extern "C"
30013{
30014#endif
30015/* We use char because int might match the return type of a gcc2
30016 builtin and then its argument prototype would still apply. */
30017char $ac_func ();
30018/* The GNU C library defines this for functions which it implements
30019 to always fail with ENOSYS. Some functions are actually named
30020 something starting with __ and the normal name is an alias. */
30021#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30022choke me
30023#else
30024char (*f) () = $ac_func;
30025#endif
30026#ifdef __cplusplus
30027}
30028#endif
30029
30030int
30031main ()
30032{
30033return f != $ac_func;
30034 ;
30035 return 0;
30036}
30037_ACEOF
30038rm -f conftest.$ac_objext conftest$ac_exeext
30039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30040 (eval $ac_link) 2>conftest.er1
a848cd7e 30041 ac_status=$?
ac1cb8d3
VS
30042 grep -v '^ *+' conftest.er1 >conftest.err
30043 rm -f conftest.er1
30044 cat conftest.err >&5
a848cd7e
SC
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); } &&
89be85c2
VS
30047 { ac_try='test -z "$ac_cxx_werror_flag"
30048 || test ! -s conftest.err'
ac1cb8d3
VS
30049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050 (eval $ac_try) 2>&5
30051 ac_status=$?
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; } &&
30054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056 (eval $ac_try) 2>&5
30057 ac_status=$?
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; }; then
30060 eval "$as_ac_var=yes"
30061else
30062 echo "$as_me: failed program was:" >&5
30063sed 's/^/| /' conftest.$ac_ext >&5
30064
30065eval "$as_ac_var=no"
30066fi
ac1cb8d3
VS
30067rm -f conftest.err conftest.$ac_objext \
30068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30069fi
30070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30071echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30072if test `eval echo '${'$as_ac_var'}'` = yes; then
30073 cat >>confdefs.h <<_ACEOF
30074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30075_ACEOF
30076
30077fi
30078done
30079
30080
30081if test "$ac_cv_func_vsnprintf" = "yes"; then
30082 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30083echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30084if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30085 echo $ECHO_N "(cached) $ECHO_C" >&6
30086else
30087
30088 cat >conftest.$ac_ext <<_ACEOF
30089/* confdefs.h. */
30090_ACEOF
30091cat confdefs.h >>conftest.$ac_ext
30092cat >>conftest.$ac_ext <<_ACEOF
30093/* end confdefs.h. */
30094
30095 #include <stdio.h>
30096 #include <stdarg.h>
30097
30098int
30099main ()
30100{
30101
30102 char *buf;
30103 va_list ap;
30104 vsnprintf(buf, 10u, "%s", ap);
30105
30106 ;
30107 return 0;
30108}
30109_ACEOF
30110rm -f conftest.$ac_objext
30111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30112 (eval $ac_compile) 2>conftest.er1
a848cd7e 30113 ac_status=$?
ac1cb8d3
VS
30114 grep -v '^ *+' conftest.er1 >conftest.err
30115 rm -f conftest.er1
30116 cat conftest.err >&5
a848cd7e
SC
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); } &&
89be85c2
VS
30119 { ac_try='test -z "$ac_cxx_werror_flag"
30120 || test ! -s conftest.err'
ac1cb8d3
VS
30121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30122 (eval $ac_try) 2>&5
30123 ac_status=$?
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; } &&
30126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30128 (eval $ac_try) 2>&5
30129 ac_status=$?
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); }; }; then
30132 wx_cv_func_vsnprintf_decl=yes
30133else
30134 echo "$as_me: failed program was:" >&5
30135sed 's/^/| /' conftest.$ac_ext >&5
30136
c122b164
DE
30137
30138 cat >conftest.$ac_ext <<_ACEOF
30139/* confdefs.h. */
30140_ACEOF
30141cat confdefs.h >>conftest.$ac_ext
30142cat >>conftest.$ac_ext <<_ACEOF
30143/* end confdefs.h. */
30144
30145 #include <stdio.h>
30146 #include <stdarg.h>
30147 using namespace std;
30148
30149int
30150main ()
30151{
30152
30153 char *buf;
30154 va_list ap;
30155 vsnprintf(buf, 10u, "%s", ap);
30156
30157 ;
30158 return 0;
30159}
30160_ACEOF
30161rm -f conftest.$ac_objext
30162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30163 (eval $ac_compile) 2>conftest.er1
30164 ac_status=$?
30165 grep -v '^ *+' conftest.er1 >conftest.err
30166 rm -f conftest.er1
30167 cat conftest.err >&5
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); } &&
89be85c2
VS
30170 { ac_try='test -z "$ac_cxx_werror_flag"
30171 || test ! -s conftest.err'
c122b164
DE
30172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30173 (eval $ac_try) 2>&5
30174 ac_status=$?
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; } &&
30177 { ac_try='test -s conftest.$ac_objext'
30178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30179 (eval $ac_try) 2>&5
30180 ac_status=$?
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; }; then
30183 wx_cv_func_vsnprintf_decl=yes
30184else
30185 echo "$as_me: failed program was:" >&5
30186sed 's/^/| /' conftest.$ac_ext >&5
30187
a848cd7e
SC
30188wx_cv_func_vsnprintf_decl=no
30189
30190fi
ac1cb8d3 30191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30192
30193
c122b164
DE
30194fi
30195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30196
30197
a848cd7e
SC
30198fi
30199echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30200echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30201
30202 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30203 cat >>confdefs.h <<\_ACEOF
30204#define HAVE_VSNPRINTF_DECL 1
30205_ACEOF
30206
30207 fi
30208fi
30209
30210if test "$wxUSE_UNICODE" = yes; then
30211
30212
30213
fbe47c7b
VS
30214
30215
30216
30217for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
30218do
30219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30220echo "$as_me:$LINENO: checking for $ac_func" >&5
30221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30222if eval "test \"\${$as_ac_var+set}\" = set"; then
30223 echo $ECHO_N "(cached) $ECHO_C" >&6
30224else
30225 cat >conftest.$ac_ext <<_ACEOF
30226/* confdefs.h. */
30227_ACEOF
30228cat confdefs.h >>conftest.$ac_ext
30229cat >>conftest.$ac_ext <<_ACEOF
30230/* end confdefs.h. */
ac1cb8d3
VS
30231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30233#define $ac_func innocuous_$ac_func
30234
a848cd7e
SC
30235/* System header to define __stub macros and hopefully few prototypes,
30236 which can conflict with char $ac_func (); below.
30237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30238 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30239
a848cd7e
SC
30240#ifdef __STDC__
30241# include <limits.h>
30242#else
30243# include <assert.h>
30244#endif
ac1cb8d3
VS
30245
30246#undef $ac_func
30247
a848cd7e
SC
30248/* Override any gcc2 internal prototype to avoid an error. */
30249#ifdef __cplusplus
30250extern "C"
30251{
30252#endif
30253/* We use char because int might match the return type of a gcc2
30254 builtin and then its argument prototype would still apply. */
30255char $ac_func ();
30256/* The GNU C library defines this for functions which it implements
30257 to always fail with ENOSYS. Some functions are actually named
30258 something starting with __ and the normal name is an alias. */
30259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30260choke me
30261#else
30262char (*f) () = $ac_func;
30263#endif
30264#ifdef __cplusplus
30265}
30266#endif
30267
30268int
30269main ()
30270{
30271return f != $ac_func;
30272 ;
30273 return 0;
30274}
30275_ACEOF
30276rm -f conftest.$ac_objext conftest$ac_exeext
30277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30278 (eval $ac_link) 2>conftest.er1
a848cd7e 30279 ac_status=$?
ac1cb8d3
VS
30280 grep -v '^ *+' conftest.er1 >conftest.err
30281 rm -f conftest.er1
30282 cat conftest.err >&5
a848cd7e
SC
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } &&
89be85c2
VS
30285 { ac_try='test -z "$ac_cxx_werror_flag"
30286 || test ! -s conftest.err'
ac1cb8d3
VS
30287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30288 (eval $ac_try) 2>&5
30289 ac_status=$?
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); }; } &&
30292 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30294 (eval $ac_try) 2>&5
30295 ac_status=$?
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); }; }; then
30298 eval "$as_ac_var=yes"
30299else
30300 echo "$as_me: failed program was:" >&5
30301sed 's/^/| /' conftest.$ac_ext >&5
30302
30303eval "$as_ac_var=no"
30304fi
ac1cb8d3
VS
30305rm -f conftest.err conftest.$ac_objext \
30306 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30307fi
30308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30309echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30310if test `eval echo '${'$as_ac_var'}'` = yes; then
30311 cat >>confdefs.h <<_ACEOF
30312#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30313_ACEOF
30314
30315fi
30316done
30317
30318
30319 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30320echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30321 cat >conftest.$ac_ext <<_ACEOF
30322/* confdefs.h. */
30323_ACEOF
30324cat confdefs.h >>conftest.$ac_ext
30325cat >>conftest.$ac_ext <<_ACEOF
30326/* end confdefs.h. */
30327#include <wchar.h>
30328int
30329main ()
30330{
30331&_vsnwprintf;
30332 ;
30333 return 0;
30334}
30335_ACEOF
30336rm -f conftest.$ac_objext
30337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30338 (eval $ac_compile) 2>conftest.er1
a848cd7e 30339 ac_status=$?
ac1cb8d3
VS
30340 grep -v '^ *+' conftest.er1 >conftest.err
30341 rm -f conftest.er1
30342 cat conftest.err >&5
a848cd7e
SC
30343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344 (exit $ac_status); } &&
89be85c2
VS
30345 { ac_try='test -z "$ac_cxx_werror_flag"
30346 || test ! -s conftest.err'
ac1cb8d3
VS
30347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30348 (eval $ac_try) 2>&5
30349 ac_status=$?
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); }; } &&
30352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30354 (eval $ac_try) 2>&5
30355 ac_status=$?
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; }; then
30358 echo "$as_me:$LINENO: result: yes" >&5
30359echo "${ECHO_T}yes" >&6
30360 cat >>confdefs.h <<\_ACEOF
30361#define HAVE__VSNWPRINTF 1
30362_ACEOF
30363
30364else
30365 echo "$as_me: failed program was:" >&5
30366sed 's/^/| /' conftest.$ac_ext >&5
30367
30368echo "$as_me:$LINENO: result: no" >&5
30369echo "${ECHO_T}no" >&6
30370fi
ac1cb8d3 30371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30372fi
30373
30374ac_ext=c
30375ac_cpp='$CPP $CPPFLAGS'
30376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30378ac_compiler_gnu=$ac_cv_c_compiler_gnu
30379
30380
30381
30382
30383if test "$TOOLKIT" != "MSW"; then
30384
30385
30386
30387
30388ac_ext=cc
30389ac_cpp='$CXXCPP $CPPFLAGS'
30390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30393
30394
30395
30396
30397# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
30398if test "${with_libiconv_prefix+set}" = set; then
30399 withval="$with_libiconv_prefix"
30400
30401 for dir in `echo "$withval" | tr : ' '`; do
30402 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
30403 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
30404 done
30405
30406fi;
30407
30408 echo "$as_me:$LINENO: checking for iconv" >&5
30409echo $ECHO_N "checking for iconv... $ECHO_C" >&6
30410if test "${am_cv_func_iconv+set}" = set; then
30411 echo $ECHO_N "(cached) $ECHO_C" >&6
30412else
30413
30414 am_cv_func_iconv="no, consider installing GNU libiconv"
30415 am_cv_lib_iconv=no
30416 cat >conftest.$ac_ext <<_ACEOF
30417/* confdefs.h. */
30418_ACEOF
30419cat confdefs.h >>conftest.$ac_ext
30420cat >>conftest.$ac_ext <<_ACEOF
30421/* end confdefs.h. */
30422#include <stdlib.h>
30423#include <iconv.h>
30424int
30425main ()
30426{
30427iconv_t cd = iconv_open("","");
30428 iconv(cd,NULL,NULL,NULL,NULL);
30429 iconv_close(cd);
30430 ;
30431 return 0;
30432}
30433_ACEOF
30434rm -f conftest.$ac_objext conftest$ac_exeext
30435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30436 (eval $ac_link) 2>conftest.er1
a848cd7e 30437 ac_status=$?
ac1cb8d3
VS
30438 grep -v '^ *+' conftest.er1 >conftest.err
30439 rm -f conftest.er1
30440 cat conftest.err >&5
a848cd7e
SC
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); } &&
89be85c2
VS
30443 { ac_try='test -z "$ac_cxx_werror_flag"
30444 || test ! -s conftest.err'
ac1cb8d3
VS
30445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446 (eval $ac_try) 2>&5
30447 ac_status=$?
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); }; } &&
30450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30452 (eval $ac_try) 2>&5
30453 ac_status=$?
30454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455 (exit $ac_status); }; }; then
30456 am_cv_func_iconv=yes
30457else
30458 echo "$as_me: failed program was:" >&5
30459sed 's/^/| /' conftest.$ac_ext >&5
30460
30461fi
ac1cb8d3
VS
30462rm -f conftest.err conftest.$ac_objext \
30463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30464 if test "$am_cv_func_iconv" != yes; then
30465 am_save_LIBS="$LIBS"
30466 LIBS="$LIBS -liconv"
30467 cat >conftest.$ac_ext <<_ACEOF
30468/* confdefs.h. */
30469_ACEOF
30470cat confdefs.h >>conftest.$ac_ext
30471cat >>conftest.$ac_ext <<_ACEOF
30472/* end confdefs.h. */
30473#include <stdlib.h>
30474#include <iconv.h>
30475int
30476main ()
30477{
30478iconv_t cd = iconv_open("","");
30479 iconv(cd,NULL,NULL,NULL,NULL);
30480 iconv_close(cd);
30481 ;
30482 return 0;
30483}
30484_ACEOF
30485rm -f conftest.$ac_objext conftest$ac_exeext
30486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30487 (eval $ac_link) 2>conftest.er1
a848cd7e 30488 ac_status=$?
ac1cb8d3
VS
30489 grep -v '^ *+' conftest.er1 >conftest.err
30490 rm -f conftest.er1
30491 cat conftest.err >&5
a848cd7e
SC
30492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493 (exit $ac_status); } &&
89be85c2
VS
30494 { ac_try='test -z "$ac_cxx_werror_flag"
30495 || test ! -s conftest.err'
ac1cb8d3
VS
30496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30497 (eval $ac_try) 2>&5
30498 ac_status=$?
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500 (exit $ac_status); }; } &&
30501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30503 (eval $ac_try) 2>&5
30504 ac_status=$?
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; }; then
30507 am_cv_lib_iconv=yes
30508 am_cv_func_iconv=yes
30509else
30510 echo "$as_me: failed program was:" >&5
30511sed 's/^/| /' conftest.$ac_ext >&5
30512
30513fi
ac1cb8d3
VS
30514rm -f conftest.err conftest.$ac_objext \
30515 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30516 LIBS="$am_save_LIBS"
30517 fi
30518
30519fi
30520echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30521echo "${ECHO_T}$am_cv_func_iconv" >&6
30522 if test "$am_cv_func_iconv" = yes; then
30523
30524cat >>confdefs.h <<\_ACEOF
30525#define HAVE_ICONV 1
30526_ACEOF
30527
30528 echo "$as_me:$LINENO: checking if iconv needs const" >&5
30529echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
30530if test "${wx_cv_func_iconv_const+set}" = set; then
30531 echo $ECHO_N "(cached) $ECHO_C" >&6
30532else
30533 cat >conftest.$ac_ext <<_ACEOF
30534/* confdefs.h. */
30535_ACEOF
30536cat confdefs.h >>conftest.$ac_ext
30537cat >>conftest.$ac_ext <<_ACEOF
30538/* end confdefs.h. */
30539
30540#include <stdlib.h>
30541#include <iconv.h>
30542extern
30543#ifdef __cplusplus
30544"C"
30545#endif
30546#if defined(__STDC__) || defined(__cplusplus)
30547size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30548#else
30549size_t iconv();
30550#endif
30551
30552int
30553main ()
30554{
30555
30556 ;
30557 return 0;
30558}
30559_ACEOF
30560rm -f conftest.$ac_objext
30561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30562 (eval $ac_compile) 2>conftest.er1
a848cd7e 30563 ac_status=$?
ac1cb8d3
VS
30564 grep -v '^ *+' conftest.er1 >conftest.err
30565 rm -f conftest.er1
30566 cat conftest.err >&5
a848cd7e
SC
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); } &&
89be85c2
VS
30569 { ac_try='test -z "$ac_cxx_werror_flag"
30570 || test ! -s conftest.err'
ac1cb8d3
VS
30571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572 (eval $ac_try) 2>&5
30573 ac_status=$?
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); }; } &&
30576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578 (eval $ac_try) 2>&5
30579 ac_status=$?
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); }; }; then
30582 wx_cv_func_iconv_const="no"
30583else
30584 echo "$as_me: failed program was:" >&5
30585sed 's/^/| /' conftest.$ac_ext >&5
30586
30587wx_cv_func_iconv_const="yes"
30588
30589fi
ac1cb8d3 30590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30591
30592fi
30593echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30594echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30595
30596 iconv_const=
30597 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30598 iconv_const="const"
30599 fi
30600
30601
30602cat >>confdefs.h <<_ACEOF
30603#define ICONV_CONST $iconv_const
30604_ACEOF
30605
30606 fi
30607 LIBICONV=
30608 if test "$am_cv_lib_iconv" = yes; then
30609 LIBICONV="-liconv"
30610 fi
30611
30612
30613LIBS="$LIBICONV $LIBS"
30614ac_ext=c
30615ac_cpp='$CPP $CPPFLAGS'
30616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30618ac_compiler_gnu=$ac_cv_c_compiler_gnu
30619
30620
30621if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30622
30623for ac_func in sigaction
30624do
30625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30626echo "$as_me:$LINENO: checking for $ac_func" >&5
30627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30628if eval "test \"\${$as_ac_var+set}\" = set"; then
30629 echo $ECHO_N "(cached) $ECHO_C" >&6
30630else
30631 cat >conftest.$ac_ext <<_ACEOF
30632/* confdefs.h. */
30633_ACEOF
30634cat confdefs.h >>conftest.$ac_ext
30635cat >>conftest.$ac_ext <<_ACEOF
30636/* end confdefs.h. */
ac1cb8d3
VS
30637/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30639#define $ac_func innocuous_$ac_func
30640
a848cd7e
SC
30641/* System header to define __stub macros and hopefully few prototypes,
30642 which can conflict with char $ac_func (); below.
30643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30644 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30645
a848cd7e
SC
30646#ifdef __STDC__
30647# include <limits.h>
30648#else
30649# include <assert.h>
30650#endif
ac1cb8d3
VS
30651
30652#undef $ac_func
30653
a848cd7e
SC
30654/* Override any gcc2 internal prototype to avoid an error. */
30655#ifdef __cplusplus
30656extern "C"
30657{
30658#endif
30659/* We use char because int might match the return type of a gcc2
30660 builtin and then its argument prototype would still apply. */
30661char $ac_func ();
30662/* The GNU C library defines this for functions which it implements
30663 to always fail with ENOSYS. Some functions are actually named
30664 something starting with __ and the normal name is an alias. */
30665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30666choke me
30667#else
30668char (*f) () = $ac_func;
30669#endif
30670#ifdef __cplusplus
30671}
30672#endif
30673
30674int
30675main ()
30676{
30677return f != $ac_func;
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); } &&
89be85c2
VS
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 eval "$as_ac_var=yes"
30705else
30706 echo "$as_me: failed program was:" >&5
30707sed 's/^/| /' conftest.$ac_ext >&5
30708
30709eval "$as_ac_var=no"
30710fi
ac1cb8d3
VS
30711rm -f conftest.err conftest.$ac_objext \
30712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30713fi
30714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30715echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30716if test `eval echo '${'$as_ac_var'}'` = yes; then
30717 cat >>confdefs.h <<_ACEOF
30718#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30719_ACEOF
30720
30721fi
30722done
30723
30724
30725 if test "$ac_cv_func_sigaction" = "no"; then
30726 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30727echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30728 wxUSE_ON_FATAL_EXCEPTION=no
30729 fi
30730
30731 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30732
30733
30734 ac_ext=cc
30735ac_cpp='$CXXCPP $CPPFLAGS'
30736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30739
30740
30741 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30742echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30743if test "${wx_cv_type_sa_handler+set}" = set; then
30744 echo $ECHO_N "(cached) $ECHO_C" >&6
30745else
30746
30747 cat >conftest.$ac_ext <<_ACEOF
30748/* confdefs.h. */
30749_ACEOF
30750cat confdefs.h >>conftest.$ac_ext
30751cat >>conftest.$ac_ext <<_ACEOF
30752/* end confdefs.h. */
30753#include <signal.h>
30754int
30755main ()
30756{
30757
30758 extern void testSigHandler(int);
30759
30760 struct sigaction sa;
30761 sa.sa_handler = testSigHandler;
30762
30763 ;
30764 return 0;
30765}
30766_ACEOF
30767rm -f conftest.$ac_objext
30768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30769 (eval $ac_compile) 2>conftest.er1
a848cd7e 30770 ac_status=$?
ac1cb8d3
VS
30771 grep -v '^ *+' conftest.er1 >conftest.err
30772 rm -f conftest.er1
30773 cat conftest.err >&5
a848cd7e
SC
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); } &&
89be85c2
VS
30776 { ac_try='test -z "$ac_cxx_werror_flag"
30777 || test ! -s conftest.err'
ac1cb8d3
VS
30778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30779 (eval $ac_try) 2>&5
30780 ac_status=$?
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); }; } &&
30783 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30785 (eval $ac_try) 2>&5
30786 ac_status=$?
30787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788 (exit $ac_status); }; }; then
30789
30790 wx_cv_type_sa_handler=int
30791
30792else
30793 echo "$as_me: failed program was:" >&5
30794sed 's/^/| /' conftest.$ac_ext >&5
30795
30796
30797 wx_cv_type_sa_handler=void
30798
30799fi
ac1cb8d3 30800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30801
30802fi
30803echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30804echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30805
30806 ac_ext=c
30807ac_cpp='$CPP $CPPFLAGS'
30808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30810ac_compiler_gnu=$ac_cv_c_compiler_gnu
30811
30812
30813 cat >>confdefs.h <<_ACEOF
30814#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30815_ACEOF
30816
30817 fi
30818fi
30819
eaff0f0d
VZ
30820if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30821
30822
30823 ac_ext=cc
30824ac_cpp='$CXXCPP $CPPFLAGS'
30825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30828
30829
30830 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30831echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30832if test "${wx_cv_func_backtrace+set}" = set; then
30833 echo $ECHO_N "(cached) $ECHO_C" >&6
30834else
30835
30836 cat >conftest.$ac_ext <<_ACEOF
30837/* confdefs.h. */
30838_ACEOF
30839cat confdefs.h >>conftest.$ac_ext
30840cat >>conftest.$ac_ext <<_ACEOF
30841/* end confdefs.h. */
30842#include <execinfo.h>
30843int
30844main ()
30845{
30846
30847 void *trace[1];
30848 char **messages;
30849
30850 backtrace(trace, 1);
30851 messages = backtrace_symbols(trace, 1);
30852
30853 ;
30854 return 0;
30855}
30856_ACEOF
30857rm -f conftest.$ac_objext
30858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30859 (eval $ac_compile) 2>conftest.er1
30860 ac_status=$?
30861 grep -v '^ *+' conftest.er1 >conftest.err
30862 rm -f conftest.er1
30863 cat conftest.err >&5
30864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865 (exit $ac_status); } &&
89be85c2
VS
30866 { ac_try='test -z "$ac_cxx_werror_flag"
30867 || test ! -s conftest.err'
eaff0f0d
VZ
30868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30869 (eval $ac_try) 2>&5
30870 ac_status=$?
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); }; } &&
30873 { ac_try='test -s conftest.$ac_objext'
30874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30875 (eval $ac_try) 2>&5
30876 ac_status=$?
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; }; then
30879 wx_cv_func_backtrace=yes
30880else
30881 echo "$as_me: failed program was:" >&5
30882sed 's/^/| /' conftest.$ac_ext >&5
30883
30884wx_cv_func_backtrace=no
30885
30886fi
30887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30888
30889
30890fi
30891echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
30892echo "${ECHO_T}$wx_cv_func_backtrace" >&6
30893
30894
30895 if test "$wx_cv_func_backtrace" = "no"; then
30896 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
30897echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
30898 wxUSE_STACKWALKER=no
30899 else
30900 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
30901echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
30902if test "${wx_cv_func_cxa_demangle+set}" = set; then
30903 echo $ECHO_N "(cached) $ECHO_C" >&6
30904else
30905
30906 cat >conftest.$ac_ext <<_ACEOF
30907/* confdefs.h. */
30908_ACEOF
30909cat confdefs.h >>conftest.$ac_ext
30910cat >>conftest.$ac_ext <<_ACEOF
30911/* end confdefs.h. */
30912#include <cxxabi.h>
30913int
30914main ()
30915{
30916
30917 int rc;
30918 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
30919
30920 ;
30921 return 0;
30922}
30923_ACEOF
30924rm -f conftest.$ac_objext
30925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30926 (eval $ac_compile) 2>conftest.er1
30927 ac_status=$?
30928 grep -v '^ *+' conftest.er1 >conftest.err
30929 rm -f conftest.er1
30930 cat conftest.err >&5
30931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932 (exit $ac_status); } &&
89be85c2
VS
30933 { ac_try='test -z "$ac_cxx_werror_flag"
30934 || test ! -s conftest.err'
eaff0f0d
VZ
30935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30936 (eval $ac_try) 2>&5
30937 ac_status=$?
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); }; } &&
30940 { ac_try='test -s conftest.$ac_objext'
30941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30942 (eval $ac_try) 2>&5
30943 ac_status=$?
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; }; then
30946 wx_cv_func_cxa_demangle=yes
30947else
30948 echo "$as_me: failed program was:" >&5
30949sed 's/^/| /' conftest.$ac_ext >&5
30950
30951wx_cv_func_cxa_demangle=no
30952
30953fi
30954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30955
30956
30957fi
30958echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
30959echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
30960
30961 if test "$wx_cv_func_cxa_demangle" = "yes"; then
30962 cat >>confdefs.h <<\_ACEOF
30963#define HAVE_CXA_DEMANGLE 1
30964_ACEOF
30965
30966 fi
30967 fi
30968
30969 ac_ext=c
30970ac_cpp='$CPP $CPPFLAGS'
30971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30973ac_compiler_gnu=$ac_cv_c_compiler_gnu
30974
30975fi
30976
a848cd7e
SC
30977
30978
30979for ac_func in mkstemp mktemp
30980do
30981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30982echo "$as_me:$LINENO: checking for $ac_func" >&5
30983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30984if eval "test \"\${$as_ac_var+set}\" = set"; then
30985 echo $ECHO_N "(cached) $ECHO_C" >&6
30986else
30987 cat >conftest.$ac_ext <<_ACEOF
30988/* confdefs.h. */
30989_ACEOF
30990cat confdefs.h >>conftest.$ac_ext
30991cat >>conftest.$ac_ext <<_ACEOF
30992/* end confdefs.h. */
ac1cb8d3
VS
30993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30995#define $ac_func innocuous_$ac_func
30996
a848cd7e
SC
30997/* System header to define __stub macros and hopefully few prototypes,
30998 which can conflict with char $ac_func (); below.
30999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31000 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31001
a848cd7e
SC
31002#ifdef __STDC__
31003# include <limits.h>
31004#else
31005# include <assert.h>
31006#endif
ac1cb8d3
VS
31007
31008#undef $ac_func
31009
a848cd7e
SC
31010/* Override any gcc2 internal prototype to avoid an error. */
31011#ifdef __cplusplus
31012extern "C"
31013{
31014#endif
31015/* We use char because int might match the return type of a gcc2
31016 builtin and then its argument prototype would still apply. */
31017char $ac_func ();
31018/* The GNU C library defines this for functions which it implements
31019 to always fail with ENOSYS. Some functions are actually named
31020 something starting with __ and the normal name is an alias. */
31021#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31022choke me
31023#else
31024char (*f) () = $ac_func;
31025#endif
31026#ifdef __cplusplus
31027}
31028#endif
31029
31030int
31031main ()
31032{
31033return f != $ac_func;
31034 ;
31035 return 0;
31036}
31037_ACEOF
31038rm -f conftest.$ac_objext conftest$ac_exeext
31039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31040 (eval $ac_link) 2>conftest.er1
a848cd7e 31041 ac_status=$?
ac1cb8d3
VS
31042 grep -v '^ *+' conftest.er1 >conftest.err
31043 rm -f conftest.er1
31044 cat conftest.err >&5
a848cd7e
SC
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); } &&
89be85c2
VS
31047 { ac_try='test -z "$ac_c_werror_flag"
31048 || test ! -s conftest.err'
ac1cb8d3
VS
31049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31050 (eval $ac_try) 2>&5
31051 ac_status=$?
31052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053 (exit $ac_status); }; } &&
31054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31056 (eval $ac_try) 2>&5
31057 ac_status=$?
31058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059 (exit $ac_status); }; }; then
31060 eval "$as_ac_var=yes"
31061else
31062 echo "$as_me: failed program was:" >&5
31063sed 's/^/| /' conftest.$ac_ext >&5
31064
31065eval "$as_ac_var=no"
31066fi
ac1cb8d3
VS
31067rm -f conftest.err conftest.$ac_objext \
31068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31069fi
31070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31071echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31072if test `eval echo '${'$as_ac_var'}'` = yes; then
31073 cat >>confdefs.h <<_ACEOF
31074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31075_ACEOF
31076 break
31077fi
31078done
31079
31080
31081echo "$as_me:$LINENO: checking for statfs" >&5
31082echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31083if test "${wx_cv_func_statfs+set}" = set; then
31084 echo $ECHO_N "(cached) $ECHO_C" >&6
31085else
31086 cat >conftest.$ac_ext <<_ACEOF
31087/* confdefs.h. */
31088_ACEOF
31089cat confdefs.h >>conftest.$ac_ext
31090cat >>conftest.$ac_ext <<_ACEOF
31091/* end confdefs.h. */
31092
31093 #if defined(__BSD__)
31094 #include <sys/param.h>
31095 #include <sys/mount.h>
31096 #else
31097 #include <sys/vfs.h>
31098 #endif
31099
31100int
31101main ()
31102{
31103
31104 long l;
31105 struct statfs fs;
31106 statfs("/", &fs);
31107 l = fs.f_bsize;
31108 l += fs.f_blocks;
31109 l += fs.f_bavail;
31110
31111 ;
31112 return 0;
31113}
31114_ACEOF
31115rm -f conftest.$ac_objext
31116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31117 (eval $ac_compile) 2>conftest.er1
a848cd7e 31118 ac_status=$?
ac1cb8d3
VS
31119 grep -v '^ *+' conftest.er1 >conftest.err
31120 rm -f conftest.er1
31121 cat conftest.err >&5
a848cd7e
SC
31122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31123 (exit $ac_status); } &&
89be85c2
VS
31124 { ac_try='test -z "$ac_c_werror_flag"
31125 || test ! -s conftest.err'
ac1cb8d3
VS
31126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31127 (eval $ac_try) 2>&5
31128 ac_status=$?
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); }; } &&
31131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31133 (eval $ac_try) 2>&5
31134 ac_status=$?
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); }; }; then
31137
31138 wx_cv_func_statfs=yes
31139
31140else
31141 echo "$as_me: failed program was:" >&5
31142sed 's/^/| /' conftest.$ac_ext >&5
31143
31144
31145 wx_cv_func_statfs=no
31146
31147
31148fi
ac1cb8d3 31149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31150
31151fi
31152echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31153echo "${ECHO_T}$wx_cv_func_statfs" >&6
31154
31155if test "$wx_cv_func_statfs" = "yes"; then
31156 wx_cv_type_statvfs_t="struct statfs"
31157 cat >>confdefs.h <<\_ACEOF
31158#define HAVE_STATFS 1
31159_ACEOF
31160
31161else
31162 echo "$as_me:$LINENO: checking for statvfs" >&5
31163echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31164if test "${wx_cv_func_statvfs+set}" = set; then
31165 echo $ECHO_N "(cached) $ECHO_C" >&6
31166else
31167 cat >conftest.$ac_ext <<_ACEOF
31168/* confdefs.h. */
31169_ACEOF
31170cat confdefs.h >>conftest.$ac_ext
31171cat >>conftest.$ac_ext <<_ACEOF
31172/* end confdefs.h. */
31173
31174 #include <stddef.h>
31175 #include <sys/statvfs.h>
31176
31177int
31178main ()
31179{
31180
31181 statvfs("/", NULL);
31182
31183 ;
31184 return 0;
31185}
31186_ACEOF
31187rm -f conftest.$ac_objext
31188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31189 (eval $ac_compile) 2>conftest.er1
a848cd7e 31190 ac_status=$?
ac1cb8d3
VS
31191 grep -v '^ *+' conftest.er1 >conftest.err
31192 rm -f conftest.er1
31193 cat conftest.err >&5
a848cd7e
SC
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); } &&
89be85c2
VS
31196 { ac_try='test -z "$ac_c_werror_flag"
31197 || test ! -s conftest.err'
ac1cb8d3
VS
31198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31199 (eval $ac_try) 2>&5
31200 ac_status=$?
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); }; } &&
31203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31205 (eval $ac_try) 2>&5
31206 ac_status=$?
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); }; }; then
31209 wx_cv_func_statvfs=yes
31210else
31211 echo "$as_me: failed program was:" >&5
31212sed 's/^/| /' conftest.$ac_ext >&5
31213
31214wx_cv_func_statvfs=no
31215
31216fi
ac1cb8d3 31217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31218
31219fi
31220echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31221echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31222
31223 if test "$wx_cv_func_statvfs" = "yes"; then
31224
31225
31226 ac_ext=cc
31227ac_cpp='$CXXCPP $CPPFLAGS'
31228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31231
31232
31233 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31234echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31235if test "${wx_cv_type_statvfs_t+set}" = set; then
31236 echo $ECHO_N "(cached) $ECHO_C" >&6
31237else
31238 cat >conftest.$ac_ext <<_ACEOF
31239/* confdefs.h. */
31240_ACEOF
31241cat confdefs.h >>conftest.$ac_ext
31242cat >>conftest.$ac_ext <<_ACEOF
31243/* end confdefs.h. */
31244
31245 #include <sys/statvfs.h>
31246
31247int
31248main ()
31249{
31250
31251 long l;
31252 statvfs_t fs;
31253 statvfs("/", &fs);
31254 l = fs.f_bsize;
31255 l += fs.f_blocks;
31256 l += fs.f_bavail;
31257
31258 ;
31259 return 0;
31260}
31261_ACEOF
31262rm -f conftest.$ac_objext
31263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31264 (eval $ac_compile) 2>conftest.er1
a848cd7e 31265 ac_status=$?
ac1cb8d3
VS
31266 grep -v '^ *+' conftest.er1 >conftest.err
31267 rm -f conftest.er1
31268 cat conftest.err >&5
a848cd7e
SC
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); } &&
89be85c2
VS
31271 { ac_try='test -z "$ac_cxx_werror_flag"
31272 || test ! -s conftest.err'
ac1cb8d3
VS
31273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31274 (eval $ac_try) 2>&5
31275 ac_status=$?
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); }; } &&
31278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31280 (eval $ac_try) 2>&5
31281 ac_status=$?
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; }; then
31284 wx_cv_type_statvfs_t=statvfs_t
31285else
31286 echo "$as_me: failed program was:" >&5
31287sed 's/^/| /' conftest.$ac_ext >&5
31288
31289
31290 cat >conftest.$ac_ext <<_ACEOF
31291/* confdefs.h. */
31292_ACEOF
31293cat confdefs.h >>conftest.$ac_ext
31294cat >>conftest.$ac_ext <<_ACEOF
31295/* end confdefs.h. */
31296
31297 #include <sys/statvfs.h>
31298
31299int
31300main ()
31301{
31302
31303 long l;
31304 struct statvfs fs;
31305 statvfs("/", &fs);
31306 l = fs.f_bsize;
31307 l += fs.f_blocks;
31308 l += fs.f_bavail;
31309
31310 ;
31311 return 0;
31312}
31313_ACEOF
31314rm -f conftest.$ac_objext
31315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31316 (eval $ac_compile) 2>conftest.er1
a848cd7e 31317 ac_status=$?
ac1cb8d3
VS
31318 grep -v '^ *+' conftest.er1 >conftest.err
31319 rm -f conftest.er1
31320 cat conftest.err >&5
a848cd7e
SC
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); } &&
89be85c2
VS
31323 { ac_try='test -z "$ac_cxx_werror_flag"
31324 || test ! -s conftest.err'
ac1cb8d3
VS
31325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31326 (eval $ac_try) 2>&5
31327 ac_status=$?
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); }; } &&
31330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31332 (eval $ac_try) 2>&5
31333 ac_status=$?
31334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335 (exit $ac_status); }; }; then
31336 wx_cv_type_statvfs_t="struct statvfs"
31337else
31338 echo "$as_me: failed program was:" >&5
31339sed 's/^/| /' conftest.$ac_ext >&5
31340
31341wx_cv_type_statvfs_t="unknown"
31342
31343fi
ac1cb8d3 31344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31345
31346
31347fi
ac1cb8d3 31348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31349
31350fi
31351echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31352echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31353
31354 ac_ext=c
31355ac_cpp='$CPP $CPPFLAGS'
31356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31358ac_compiler_gnu=$ac_cv_c_compiler_gnu
31359
31360
31361 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31362 cat >>confdefs.h <<\_ACEOF
31363#define HAVE_STATVFS 1
31364_ACEOF
31365
31366 fi
31367 else
31368 wx_cv_type_statvfs_t="unknown"
31369 fi
31370fi
31371
31372if test "$wx_cv_type_statvfs_t" != "unknown"; then
31373 cat >>confdefs.h <<_ACEOF
31374#define WX_STATFS_T $wx_cv_type_statvfs_t
31375_ACEOF
31376
31377else
31378 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31379echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31380fi
31381
31382if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31383
31384
31385for ac_func in fcntl flock
31386do
31387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31388echo "$as_me:$LINENO: checking for $ac_func" >&5
31389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31390if eval "test \"\${$as_ac_var+set}\" = set"; then
31391 echo $ECHO_N "(cached) $ECHO_C" >&6
31392else
31393 cat >conftest.$ac_ext <<_ACEOF
31394/* confdefs.h. */
31395_ACEOF
31396cat confdefs.h >>conftest.$ac_ext
31397cat >>conftest.$ac_ext <<_ACEOF
31398/* end confdefs.h. */
ac1cb8d3
VS
31399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31401#define $ac_func innocuous_$ac_func
31402
a848cd7e
SC
31403/* System header to define __stub macros and hopefully few prototypes,
31404 which can conflict with char $ac_func (); below.
31405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31406 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31407
a848cd7e
SC
31408#ifdef __STDC__
31409# include <limits.h>
31410#else
31411# include <assert.h>
31412#endif
ac1cb8d3
VS
31413
31414#undef $ac_func
31415
a848cd7e
SC
31416/* Override any gcc2 internal prototype to avoid an error. */
31417#ifdef __cplusplus
31418extern "C"
31419{
31420#endif
31421/* We use char because int might match the return type of a gcc2
31422 builtin and then its argument prototype would still apply. */
31423char $ac_func ();
31424/* The GNU C library defines this for functions which it implements
31425 to always fail with ENOSYS. Some functions are actually named
31426 something starting with __ and the normal name is an alias. */
31427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31428choke me
31429#else
31430char (*f) () = $ac_func;
31431#endif
31432#ifdef __cplusplus
31433}
31434#endif
31435
31436int
31437main ()
31438{
31439return f != $ac_func;
31440 ;
31441 return 0;
31442}
31443_ACEOF
31444rm -f conftest.$ac_objext conftest$ac_exeext
31445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31446 (eval $ac_link) 2>conftest.er1
a848cd7e 31447 ac_status=$?
ac1cb8d3
VS
31448 grep -v '^ *+' conftest.er1 >conftest.err
31449 rm -f conftest.er1
31450 cat conftest.err >&5
a848cd7e
SC
31451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452 (exit $ac_status); } &&
89be85c2
VS
31453 { ac_try='test -z "$ac_c_werror_flag"
31454 || test ! -s conftest.err'
ac1cb8d3
VS
31455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31456 (eval $ac_try) 2>&5
31457 ac_status=$?
31458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31459 (exit $ac_status); }; } &&
31460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31462 (eval $ac_try) 2>&5
31463 ac_status=$?
31464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465 (exit $ac_status); }; }; then
31466 eval "$as_ac_var=yes"
31467else
31468 echo "$as_me: failed program was:" >&5
31469sed 's/^/| /' conftest.$ac_ext >&5
31470
31471eval "$as_ac_var=no"
31472fi
ac1cb8d3
VS
31473rm -f conftest.err conftest.$ac_objext \
31474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31475fi
31476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31478if test `eval echo '${'$as_ac_var'}'` = yes; then
31479 cat >>confdefs.h <<_ACEOF
31480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31481_ACEOF
31482 break
31483fi
31484done
31485
31486
31487 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
31488 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
31489echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
31490 wxUSE_SNGLINST_CHECKER=no
31491 fi
31492fi
31493
31494
31495for ac_func in timegm
31496do
31497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31498echo "$as_me:$LINENO: checking for $ac_func" >&5
31499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31500if eval "test \"\${$as_ac_var+set}\" = set"; then
31501 echo $ECHO_N "(cached) $ECHO_C" >&6
31502else
31503 cat >conftest.$ac_ext <<_ACEOF
31504/* confdefs.h. */
31505_ACEOF
31506cat confdefs.h >>conftest.$ac_ext
31507cat >>conftest.$ac_ext <<_ACEOF
31508/* end confdefs.h. */
ac1cb8d3
VS
31509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31511#define $ac_func innocuous_$ac_func
31512
a848cd7e
SC
31513/* System header to define __stub macros and hopefully few prototypes,
31514 which can conflict with char $ac_func (); below.
31515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31516 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31517
a848cd7e
SC
31518#ifdef __STDC__
31519# include <limits.h>
31520#else
31521# include <assert.h>
31522#endif
ac1cb8d3
VS
31523
31524#undef $ac_func
31525
a848cd7e
SC
31526/* Override any gcc2 internal prototype to avoid an error. */
31527#ifdef __cplusplus
31528extern "C"
31529{
31530#endif
31531/* We use char because int might match the return type of a gcc2
31532 builtin and then its argument prototype would still apply. */
31533char $ac_func ();
31534/* The GNU C library defines this for functions which it implements
31535 to always fail with ENOSYS. Some functions are actually named
31536 something starting with __ and the normal name is an alias. */
31537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31538choke me
31539#else
31540char (*f) () = $ac_func;
31541#endif
31542#ifdef __cplusplus
31543}
31544#endif
31545
31546int
31547main ()
31548{
31549return f != $ac_func;
31550 ;
31551 return 0;
31552}
31553_ACEOF
31554rm -f conftest.$ac_objext conftest$ac_exeext
31555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31556 (eval $ac_link) 2>conftest.er1
a848cd7e 31557 ac_status=$?
ac1cb8d3
VS
31558 grep -v '^ *+' conftest.er1 >conftest.err
31559 rm -f conftest.er1
31560 cat conftest.err >&5
a848cd7e
SC
31561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562 (exit $ac_status); } &&
89be85c2
VS
31563 { ac_try='test -z "$ac_c_werror_flag"
31564 || test ! -s conftest.err'
ac1cb8d3
VS
31565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31566 (eval $ac_try) 2>&5
31567 ac_status=$?
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); }; } &&
31570 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572 (eval $ac_try) 2>&5
31573 ac_status=$?
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; }; then
31576 eval "$as_ac_var=yes"
31577else
31578 echo "$as_me: failed program was:" >&5
31579sed 's/^/| /' conftest.$ac_ext >&5
31580
31581eval "$as_ac_var=no"
31582fi
ac1cb8d3
VS
31583rm -f conftest.err conftest.$ac_objext \
31584 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31585fi
31586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31588if test `eval echo '${'$as_ac_var'}'` = yes; then
31589 cat >>confdefs.h <<_ACEOF
31590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31591_ACEOF
31592
31593fi
31594done
31595
31596
31597
31598
31599for ac_func in putenv setenv
31600do
31601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31602echo "$as_me:$LINENO: checking for $ac_func" >&5
31603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31604if eval "test \"\${$as_ac_var+set}\" = set"; then
31605 echo $ECHO_N "(cached) $ECHO_C" >&6
31606else
31607 cat >conftest.$ac_ext <<_ACEOF
31608/* confdefs.h. */
31609_ACEOF
31610cat confdefs.h >>conftest.$ac_ext
31611cat >>conftest.$ac_ext <<_ACEOF
31612/* end confdefs.h. */
ac1cb8d3
VS
31613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31615#define $ac_func innocuous_$ac_func
31616
a848cd7e
SC
31617/* System header to define __stub macros and hopefully few prototypes,
31618 which can conflict with char $ac_func (); below.
31619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31620 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31621
a848cd7e
SC
31622#ifdef __STDC__
31623# include <limits.h>
31624#else
31625# include <assert.h>
31626#endif
ac1cb8d3
VS
31627
31628#undef $ac_func
31629
a848cd7e
SC
31630/* Override any gcc2 internal prototype to avoid an error. */
31631#ifdef __cplusplus
31632extern "C"
31633{
31634#endif
31635/* We use char because int might match the return type of a gcc2
31636 builtin and then its argument prototype would still apply. */
31637char $ac_func ();
31638/* The GNU C library defines this for functions which it implements
31639 to always fail with ENOSYS. Some functions are actually named
31640 something starting with __ and the normal name is an alias. */
31641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31642choke me
31643#else
31644char (*f) () = $ac_func;
31645#endif
31646#ifdef __cplusplus
31647}
31648#endif
31649
31650int
31651main ()
31652{
31653return f != $ac_func;
31654 ;
31655 return 0;
31656}
31657_ACEOF
31658rm -f conftest.$ac_objext conftest$ac_exeext
31659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31660 (eval $ac_link) 2>conftest.er1
a848cd7e 31661 ac_status=$?
ac1cb8d3
VS
31662 grep -v '^ *+' conftest.er1 >conftest.err
31663 rm -f conftest.er1
31664 cat conftest.err >&5
a848cd7e
SC
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); } &&
89be85c2
VS
31667 { ac_try='test -z "$ac_c_werror_flag"
31668 || test ! -s conftest.err'
ac1cb8d3
VS
31669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31670 (eval $ac_try) 2>&5
31671 ac_status=$?
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; } &&
31674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31676 (eval $ac_try) 2>&5
31677 ac_status=$?
31678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679 (exit $ac_status); }; }; then
31680 eval "$as_ac_var=yes"
31681else
31682 echo "$as_me: failed program was:" >&5
31683sed 's/^/| /' conftest.$ac_ext >&5
31684
31685eval "$as_ac_var=no"
31686fi
ac1cb8d3
VS
31687rm -f conftest.err conftest.$ac_objext \
31688 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31689fi
31690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31691echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31692if test `eval echo '${'$as_ac_var'}'` = yes; then
31693 cat >>confdefs.h <<_ACEOF
31694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31695_ACEOF
31696 break
31697fi
31698done
31699
31700
31701HAVE_SOME_SLEEP_FUNC=0
31702if test "$USE_BEOS" = 1; then
31703 cat >>confdefs.h <<\_ACEOF
31704#define HAVE_SLEEP 1
31705_ACEOF
31706
31707 HAVE_SOME_SLEEP_FUNC=1
31708fi
31709
31710if test "$USE_DARWIN" = 1; then
31711 cat >>confdefs.h <<\_ACEOF
31712#define HAVE_USLEEP 1
31713_ACEOF
31714
31715 HAVE_SOME_SLEEP_FUNC=1
31716fi
31717
31718if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31719 POSIX4_LINK=
31720
31721for ac_func in nanosleep
31722do
31723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31724echo "$as_me:$LINENO: checking for $ac_func" >&5
31725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31726if eval "test \"\${$as_ac_var+set}\" = set"; then
31727 echo $ECHO_N "(cached) $ECHO_C" >&6
31728else
31729 cat >conftest.$ac_ext <<_ACEOF
31730/* confdefs.h. */
31731_ACEOF
31732cat confdefs.h >>conftest.$ac_ext
31733cat >>conftest.$ac_ext <<_ACEOF
31734/* end confdefs.h. */
ac1cb8d3
VS
31735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31737#define $ac_func innocuous_$ac_func
31738
a848cd7e
SC
31739/* System header to define __stub macros and hopefully few prototypes,
31740 which can conflict with char $ac_func (); below.
31741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31742 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31743
a848cd7e
SC
31744#ifdef __STDC__
31745# include <limits.h>
31746#else
31747# include <assert.h>
31748#endif
ac1cb8d3
VS
31749
31750#undef $ac_func
31751
a848cd7e
SC
31752/* Override any gcc2 internal prototype to avoid an error. */
31753#ifdef __cplusplus
31754extern "C"
31755{
31756#endif
31757/* We use char because int might match the return type of a gcc2
31758 builtin and then its argument prototype would still apply. */
31759char $ac_func ();
31760/* The GNU C library defines this for functions which it implements
31761 to always fail with ENOSYS. Some functions are actually named
31762 something starting with __ and the normal name is an alias. */
31763#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31764choke me
31765#else
31766char (*f) () = $ac_func;
31767#endif
31768#ifdef __cplusplus
31769}
31770#endif
31771
31772int
31773main ()
31774{
31775return f != $ac_func;
31776 ;
31777 return 0;
31778}
31779_ACEOF
31780rm -f conftest.$ac_objext conftest$ac_exeext
31781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31782 (eval $ac_link) 2>conftest.er1
a848cd7e 31783 ac_status=$?
ac1cb8d3
VS
31784 grep -v '^ *+' conftest.er1 >conftest.err
31785 rm -f conftest.er1
31786 cat conftest.err >&5
a848cd7e
SC
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); } &&
89be85c2
VS
31789 { ac_try='test -z "$ac_c_werror_flag"
31790 || test ! -s conftest.err'
ac1cb8d3
VS
31791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31792 (eval $ac_try) 2>&5
31793 ac_status=$?
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); }; } &&
31796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31798 (eval $ac_try) 2>&5
31799 ac_status=$?
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); }; }; then
31802 eval "$as_ac_var=yes"
31803else
31804 echo "$as_me: failed program was:" >&5
31805sed 's/^/| /' conftest.$ac_ext >&5
31806
31807eval "$as_ac_var=no"
31808fi
ac1cb8d3
VS
31809rm -f conftest.err conftest.$ac_objext \
31810 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31811fi
31812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31813echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31814if test `eval echo '${'$as_ac_var'}'` = yes; then
31815 cat >>confdefs.h <<_ACEOF
31816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31817_ACEOF
31818 cat >>confdefs.h <<\_ACEOF
31819#define HAVE_NANOSLEEP 1
31820_ACEOF
31821
31822else
31823
31824 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31825echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31826if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31827 echo $ECHO_N "(cached) $ECHO_C" >&6
31828else
31829 ac_check_lib_save_LIBS=$LIBS
31830LIBS="-lposix4 $LIBS"
31831cat >conftest.$ac_ext <<_ACEOF
31832/* confdefs.h. */
31833_ACEOF
31834cat confdefs.h >>conftest.$ac_ext
31835cat >>conftest.$ac_ext <<_ACEOF
31836/* end confdefs.h. */
31837
31838/* Override any gcc2 internal prototype to avoid an error. */
31839#ifdef __cplusplus
31840extern "C"
31841#endif
31842/* We use char because int might match the return type of a gcc2
31843 builtin and then its argument prototype would still apply. */
31844char nanosleep ();
31845int
31846main ()
31847{
31848nanosleep ();
31849 ;
31850 return 0;
31851}
31852_ACEOF
31853rm -f conftest.$ac_objext conftest$ac_exeext
31854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31855 (eval $ac_link) 2>conftest.er1
a848cd7e 31856 ac_status=$?
ac1cb8d3
VS
31857 grep -v '^ *+' conftest.er1 >conftest.err
31858 rm -f conftest.er1
31859 cat conftest.err >&5
a848cd7e
SC
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); } &&
89be85c2
VS
31862 { ac_try='test -z "$ac_c_werror_flag"
31863 || test ! -s conftest.err'
ac1cb8d3
VS
31864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31865 (eval $ac_try) 2>&5
31866 ac_status=$?
31867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868 (exit $ac_status); }; } &&
31869 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31871 (eval $ac_try) 2>&5
31872 ac_status=$?
31873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874 (exit $ac_status); }; }; then
31875 ac_cv_lib_posix4_nanosleep=yes
31876else
31877 echo "$as_me: failed program was:" >&5
31878sed 's/^/| /' conftest.$ac_ext >&5
31879
31880ac_cv_lib_posix4_nanosleep=no
31881fi
ac1cb8d3
VS
31882rm -f conftest.err conftest.$ac_objext \
31883 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31884LIBS=$ac_check_lib_save_LIBS
31885fi
31886echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31887echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31888if test $ac_cv_lib_posix4_nanosleep = yes; then
31889
31890 cat >>confdefs.h <<\_ACEOF
31891#define HAVE_NANOSLEEP 1
31892_ACEOF
31893
31894 POSIX4_LINK=" -lposix4"
31895
31896else
31897
31898
31899for ac_func in usleep
31900do
31901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31902echo "$as_me:$LINENO: checking for $ac_func" >&5
31903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31904if eval "test \"\${$as_ac_var+set}\" = set"; then
31905 echo $ECHO_N "(cached) $ECHO_C" >&6
31906else
31907 cat >conftest.$ac_ext <<_ACEOF
31908/* confdefs.h. */
31909_ACEOF
31910cat confdefs.h >>conftest.$ac_ext
31911cat >>conftest.$ac_ext <<_ACEOF
31912/* end confdefs.h. */
ac1cb8d3
VS
31913/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31915#define $ac_func innocuous_$ac_func
31916
a848cd7e
SC
31917/* System header to define __stub macros and hopefully few prototypes,
31918 which can conflict with char $ac_func (); below.
31919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31920 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31921
a848cd7e
SC
31922#ifdef __STDC__
31923# include <limits.h>
31924#else
31925# include <assert.h>
31926#endif
ac1cb8d3
VS
31927
31928#undef $ac_func
31929
a848cd7e
SC
31930/* Override any gcc2 internal prototype to avoid an error. */
31931#ifdef __cplusplus
31932extern "C"
31933{
31934#endif
31935/* We use char because int might match the return type of a gcc2
31936 builtin and then its argument prototype would still apply. */
31937char $ac_func ();
31938/* The GNU C library defines this for functions which it implements
31939 to always fail with ENOSYS. Some functions are actually named
31940 something starting with __ and the normal name is an alias. */
31941#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31942choke me
31943#else
31944char (*f) () = $ac_func;
31945#endif
31946#ifdef __cplusplus
31947}
31948#endif
31949
31950int
31951main ()
31952{
31953return f != $ac_func;
31954 ;
31955 return 0;
31956}
31957_ACEOF
31958rm -f conftest.$ac_objext conftest$ac_exeext
31959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31960 (eval $ac_link) 2>conftest.er1
a848cd7e 31961 ac_status=$?
ac1cb8d3
VS
31962 grep -v '^ *+' conftest.er1 >conftest.err
31963 rm -f conftest.er1
31964 cat conftest.err >&5
a848cd7e
SC
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); } &&
89be85c2
VS
31967 { ac_try='test -z "$ac_c_werror_flag"
31968 || test ! -s conftest.err'
ac1cb8d3
VS
31969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31970 (eval $ac_try) 2>&5
31971 ac_status=$?
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); }; } &&
31974 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31976 (eval $ac_try) 2>&5
31977 ac_status=$?
31978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979 (exit $ac_status); }; }; then
31980 eval "$as_ac_var=yes"
31981else
31982 echo "$as_me: failed program was:" >&5
31983sed 's/^/| /' conftest.$ac_ext >&5
31984
31985eval "$as_ac_var=no"
31986fi
ac1cb8d3
VS
31987rm -f conftest.err conftest.$ac_objext \
31988 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31989fi
31990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31992if test `eval echo '${'$as_ac_var'}'` = yes; then
31993 cat >>confdefs.h <<_ACEOF
31994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31995_ACEOF
31996 cat >>confdefs.h <<\_ACEOF
31997#define HAVE_USLEEP 1
31998_ACEOF
31999
32000else
32001 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32002echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32003
32004fi
32005done
32006
32007
32008
32009fi
32010
32011
32012
32013fi
32014done
32015
32016fi
32017
32018
32019
32020for ac_func in uname gethostname
32021do
32022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32023echo "$as_me:$LINENO: checking for $ac_func" >&5
32024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32025if eval "test \"\${$as_ac_var+set}\" = set"; then
32026 echo $ECHO_N "(cached) $ECHO_C" >&6
32027else
32028 cat >conftest.$ac_ext <<_ACEOF
32029/* confdefs.h. */
32030_ACEOF
32031cat confdefs.h >>conftest.$ac_ext
32032cat >>conftest.$ac_ext <<_ACEOF
32033/* end confdefs.h. */
ac1cb8d3
VS
32034/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32036#define $ac_func innocuous_$ac_func
32037
a848cd7e
SC
32038/* System header to define __stub macros and hopefully few prototypes,
32039 which can conflict with char $ac_func (); below.
32040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32041 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32042
a848cd7e
SC
32043#ifdef __STDC__
32044# include <limits.h>
32045#else
32046# include <assert.h>
32047#endif
ac1cb8d3
VS
32048
32049#undef $ac_func
32050
a848cd7e
SC
32051/* Override any gcc2 internal prototype to avoid an error. */
32052#ifdef __cplusplus
32053extern "C"
32054{
32055#endif
32056/* We use char because int might match the return type of a gcc2
32057 builtin and then its argument prototype would still apply. */
32058char $ac_func ();
32059/* The GNU C library defines this for functions which it implements
32060 to always fail with ENOSYS. Some functions are actually named
32061 something starting with __ and the normal name is an alias. */
32062#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32063choke me
32064#else
32065char (*f) () = $ac_func;
32066#endif
32067#ifdef __cplusplus
32068}
32069#endif
32070
32071int
32072main ()
32073{
32074return f != $ac_func;
32075 ;
32076 return 0;
32077}
32078_ACEOF
32079rm -f conftest.$ac_objext conftest$ac_exeext
32080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32081 (eval $ac_link) 2>conftest.er1
a848cd7e 32082 ac_status=$?
ac1cb8d3
VS
32083 grep -v '^ *+' conftest.er1 >conftest.err
32084 rm -f conftest.er1
32085 cat conftest.err >&5
a848cd7e
SC
32086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087 (exit $ac_status); } &&
89be85c2
VS
32088 { ac_try='test -z "$ac_c_werror_flag"
32089 || test ! -s conftest.err'
ac1cb8d3
VS
32090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32091 (eval $ac_try) 2>&5
32092 ac_status=$?
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); }; } &&
32095 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32097 (eval $ac_try) 2>&5
32098 ac_status=$?
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); }; }; then
32101 eval "$as_ac_var=yes"
32102else
32103 echo "$as_me: failed program was:" >&5
32104sed 's/^/| /' conftest.$ac_ext >&5
32105
32106eval "$as_ac_var=no"
32107fi
ac1cb8d3
VS
32108rm -f conftest.err conftest.$ac_objext \
32109 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32110fi
32111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32112echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32113if test `eval echo '${'$as_ac_var'}'` = yes; then
32114 cat >>confdefs.h <<_ACEOF
32115#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32116_ACEOF
32117 break
32118fi
32119done
32120
32121
32122
32123
32124ac_ext=cc
32125ac_cpp='$CXXCPP $CPPFLAGS'
32126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32129
32130
32131
32132for ac_func in strtok_r
32133do
32134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32135echo "$as_me:$LINENO: checking for $ac_func" >&5
32136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32137if eval "test \"\${$as_ac_var+set}\" = set"; then
32138 echo $ECHO_N "(cached) $ECHO_C" >&6
32139else
32140 cat >conftest.$ac_ext <<_ACEOF
32141/* confdefs.h. */
32142_ACEOF
32143cat confdefs.h >>conftest.$ac_ext
32144cat >>conftest.$ac_ext <<_ACEOF
32145/* end confdefs.h. */
ac1cb8d3
VS
32146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32148#define $ac_func innocuous_$ac_func
32149
a848cd7e
SC
32150/* System header to define __stub macros and hopefully few prototypes,
32151 which can conflict with char $ac_func (); below.
32152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32153 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32154
a848cd7e
SC
32155#ifdef __STDC__
32156# include <limits.h>
32157#else
32158# include <assert.h>
32159#endif
ac1cb8d3
VS
32160
32161#undef $ac_func
32162
a848cd7e
SC
32163/* Override any gcc2 internal prototype to avoid an error. */
32164#ifdef __cplusplus
32165extern "C"
32166{
32167#endif
32168/* We use char because int might match the return type of a gcc2
32169 builtin and then its argument prototype would still apply. */
32170char $ac_func ();
32171/* The GNU C library defines this for functions which it implements
32172 to always fail with ENOSYS. Some functions are actually named
32173 something starting with __ and the normal name is an alias. */
32174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32175choke me
32176#else
32177char (*f) () = $ac_func;
32178#endif
32179#ifdef __cplusplus
32180}
32181#endif
32182
32183int
32184main ()
32185{
32186return f != $ac_func;
32187 ;
32188 return 0;
32189}
32190_ACEOF
32191rm -f conftest.$ac_objext conftest$ac_exeext
32192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32193 (eval $ac_link) 2>conftest.er1
a848cd7e 32194 ac_status=$?
ac1cb8d3
VS
32195 grep -v '^ *+' conftest.er1 >conftest.err
32196 rm -f conftest.er1
32197 cat conftest.err >&5
a848cd7e
SC
32198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199 (exit $ac_status); } &&
89be85c2
VS
32200 { ac_try='test -z "$ac_cxx_werror_flag"
32201 || test ! -s conftest.err'
ac1cb8d3
VS
32202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32203 (eval $ac_try) 2>&5
32204 ac_status=$?
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); }; } &&
32207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32209 (eval $ac_try) 2>&5
32210 ac_status=$?
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); }; }; then
32213 eval "$as_ac_var=yes"
32214else
32215 echo "$as_me: failed program was:" >&5
32216sed 's/^/| /' conftest.$ac_ext >&5
32217
32218eval "$as_ac_var=no"
32219fi
ac1cb8d3
VS
32220rm -f conftest.err conftest.$ac_objext \
32221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32222fi
32223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32225if test `eval echo '${'$as_ac_var'}'` = yes; then
32226 cat >>confdefs.h <<_ACEOF
32227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32228_ACEOF
32229
32230fi
32231done
32232
32233
32234ac_ext=c
32235ac_cpp='$CPP $CPPFLAGS'
32236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32238ac_compiler_gnu=$ac_cv_c_compiler_gnu
32239
32240
32241INET_LINK=
32242
32243for ac_func in inet_addr
32244do
32245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32246echo "$as_me:$LINENO: checking for $ac_func" >&5
32247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32248if eval "test \"\${$as_ac_var+set}\" = set"; then
32249 echo $ECHO_N "(cached) $ECHO_C" >&6
32250else
32251 cat >conftest.$ac_ext <<_ACEOF
32252/* confdefs.h. */
32253_ACEOF
32254cat confdefs.h >>conftest.$ac_ext
32255cat >>conftest.$ac_ext <<_ACEOF
32256/* end confdefs.h. */
ac1cb8d3
VS
32257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32259#define $ac_func innocuous_$ac_func
32260
a848cd7e
SC
32261/* System header to define __stub macros and hopefully few prototypes,
32262 which can conflict with char $ac_func (); below.
32263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32264 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32265
a848cd7e
SC
32266#ifdef __STDC__
32267# include <limits.h>
32268#else
32269# include <assert.h>
32270#endif
ac1cb8d3
VS
32271
32272#undef $ac_func
32273
a848cd7e
SC
32274/* Override any gcc2 internal prototype to avoid an error. */
32275#ifdef __cplusplus
32276extern "C"
32277{
32278#endif
32279/* We use char because int might match the return type of a gcc2
32280 builtin and then its argument prototype would still apply. */
32281char $ac_func ();
32282/* The GNU C library defines this for functions which it implements
32283 to always fail with ENOSYS. Some functions are actually named
32284 something starting with __ and the normal name is an alias. */
32285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32286choke me
32287#else
32288char (*f) () = $ac_func;
32289#endif
32290#ifdef __cplusplus
32291}
32292#endif
32293
32294int
32295main ()
32296{
32297return f != $ac_func;
32298 ;
32299 return 0;
32300}
32301_ACEOF
32302rm -f conftest.$ac_objext conftest$ac_exeext
32303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32304 (eval $ac_link) 2>conftest.er1
a848cd7e 32305 ac_status=$?
ac1cb8d3
VS
32306 grep -v '^ *+' conftest.er1 >conftest.err
32307 rm -f conftest.er1
32308 cat conftest.err >&5
a848cd7e
SC
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); } &&
89be85c2
VS
32311 { ac_try='test -z "$ac_c_werror_flag"
32312 || test ! -s conftest.err'
ac1cb8d3
VS
32313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32314 (eval $ac_try) 2>&5
32315 ac_status=$?
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); }; } &&
32318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32320 (eval $ac_try) 2>&5
32321 ac_status=$?
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); }; }; then
32324 eval "$as_ac_var=yes"
32325else
32326 echo "$as_me: failed program was:" >&5
32327sed 's/^/| /' conftest.$ac_ext >&5
32328
32329eval "$as_ac_var=no"
32330fi
ac1cb8d3
VS
32331rm -f conftest.err conftest.$ac_objext \
32332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32333fi
32334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32336if test `eval echo '${'$as_ac_var'}'` = yes; then
32337 cat >>confdefs.h <<_ACEOF
32338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32339_ACEOF
32340 cat >>confdefs.h <<\_ACEOF
32341#define HAVE_INET_ADDR 1
32342_ACEOF
32343
32344else
32345
32346 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32347echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32348if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32349 echo $ECHO_N "(cached) $ECHO_C" >&6
32350else
32351 ac_check_lib_save_LIBS=$LIBS
32352LIBS="-lnsl $LIBS"
32353cat >conftest.$ac_ext <<_ACEOF
32354/* confdefs.h. */
32355_ACEOF
32356cat confdefs.h >>conftest.$ac_ext
32357cat >>conftest.$ac_ext <<_ACEOF
32358/* end confdefs.h. */
32359
32360/* Override any gcc2 internal prototype to avoid an error. */
32361#ifdef __cplusplus
32362extern "C"
32363#endif
32364/* We use char because int might match the return type of a gcc2
32365 builtin and then its argument prototype would still apply. */
32366char inet_addr ();
32367int
32368main ()
32369{
32370inet_addr ();
32371 ;
32372 return 0;
32373}
32374_ACEOF
32375rm -f conftest.$ac_objext conftest$ac_exeext
32376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32377 (eval $ac_link) 2>conftest.er1
a848cd7e 32378 ac_status=$?
ac1cb8d3
VS
32379 grep -v '^ *+' conftest.er1 >conftest.err
32380 rm -f conftest.er1
32381 cat conftest.err >&5
a848cd7e
SC
32382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32383 (exit $ac_status); } &&
89be85c2
VS
32384 { ac_try='test -z "$ac_c_werror_flag"
32385 || test ! -s conftest.err'
ac1cb8d3
VS
32386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32387 (eval $ac_try) 2>&5
32388 ac_status=$?
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); }; } &&
32391 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393 (eval $ac_try) 2>&5
32394 ac_status=$?
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; }; then
32397 ac_cv_lib_nsl_inet_addr=yes
32398else
32399 echo "$as_me: failed program was:" >&5
32400sed 's/^/| /' conftest.$ac_ext >&5
32401
32402ac_cv_lib_nsl_inet_addr=no
32403fi
ac1cb8d3
VS
32404rm -f conftest.err conftest.$ac_objext \
32405 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32406LIBS=$ac_check_lib_save_LIBS
32407fi
32408echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
32409echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
32410if test $ac_cv_lib_nsl_inet_addr = yes; then
32411 INET_LINK="nsl"
32412else
32413
32414 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
32415echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
32416if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
32417 echo $ECHO_N "(cached) $ECHO_C" >&6
32418else
32419 ac_check_lib_save_LIBS=$LIBS
32420LIBS="-lresolv $LIBS"
32421cat >conftest.$ac_ext <<_ACEOF
32422/* confdefs.h. */
32423_ACEOF
32424cat confdefs.h >>conftest.$ac_ext
32425cat >>conftest.$ac_ext <<_ACEOF
32426/* end confdefs.h. */
32427
32428/* Override any gcc2 internal prototype to avoid an error. */
32429#ifdef __cplusplus
32430extern "C"
32431#endif
32432/* We use char because int might match the return type of a gcc2
32433 builtin and then its argument prototype would still apply. */
32434char inet_addr ();
32435int
32436main ()
32437{
32438inet_addr ();
32439 ;
32440 return 0;
32441}
32442_ACEOF
32443rm -f conftest.$ac_objext conftest$ac_exeext
32444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32445 (eval $ac_link) 2>conftest.er1
a848cd7e 32446 ac_status=$?
ac1cb8d3
VS
32447 grep -v '^ *+' conftest.er1 >conftest.err
32448 rm -f conftest.er1
32449 cat conftest.err >&5
a848cd7e
SC
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); } &&
89be85c2
VS
32452 { ac_try='test -z "$ac_c_werror_flag"
32453 || test ! -s conftest.err'
ac1cb8d3
VS
32454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32455 (eval $ac_try) 2>&5
32456 ac_status=$?
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; } &&
32459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32461 (eval $ac_try) 2>&5
32462 ac_status=$?
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); }; }; then
32465 ac_cv_lib_resolv_inet_addr=yes
32466else
32467 echo "$as_me: failed program was:" >&5
32468sed 's/^/| /' conftest.$ac_ext >&5
32469
32470ac_cv_lib_resolv_inet_addr=no
32471fi
ac1cb8d3
VS
32472rm -f conftest.err conftest.$ac_objext \
32473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32474LIBS=$ac_check_lib_save_LIBS
32475fi
32476echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
32477echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
32478if test $ac_cv_lib_resolv_inet_addr = yes; then
32479 INET_LINK="resolv"
32480else
32481
32482 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
32483echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
32484if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
32485 echo $ECHO_N "(cached) $ECHO_C" >&6
32486else
32487 ac_check_lib_save_LIBS=$LIBS
32488LIBS="-lsocket $LIBS"
32489cat >conftest.$ac_ext <<_ACEOF
32490/* confdefs.h. */
32491_ACEOF
32492cat confdefs.h >>conftest.$ac_ext
32493cat >>conftest.$ac_ext <<_ACEOF
32494/* end confdefs.h. */
32495
32496/* Override any gcc2 internal prototype to avoid an error. */
32497#ifdef __cplusplus
32498extern "C"
32499#endif
32500/* We use char because int might match the return type of a gcc2
32501 builtin and then its argument prototype would still apply. */
32502char inet_addr ();
32503int
32504main ()
32505{
32506inet_addr ();
32507 ;
32508 return 0;
32509}
32510_ACEOF
32511rm -f conftest.$ac_objext conftest$ac_exeext
32512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32513 (eval $ac_link) 2>conftest.er1
a848cd7e 32514 ac_status=$?
ac1cb8d3
VS
32515 grep -v '^ *+' conftest.er1 >conftest.err
32516 rm -f conftest.er1
32517 cat conftest.err >&5
a848cd7e
SC
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); } &&
89be85c2
VS
32520 { ac_try='test -z "$ac_c_werror_flag"
32521 || test ! -s conftest.err'
ac1cb8d3
VS
32522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32523 (eval $ac_try) 2>&5
32524 ac_status=$?
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); }; } &&
32527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32529 (eval $ac_try) 2>&5
32530 ac_status=$?
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); }; }; then
32533 ac_cv_lib_socket_inet_addr=yes
32534else
32535 echo "$as_me: failed program was:" >&5
32536sed 's/^/| /' conftest.$ac_ext >&5
32537
32538ac_cv_lib_socket_inet_addr=no
32539fi
ac1cb8d3
VS
32540rm -f conftest.err conftest.$ac_objext \
32541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32542LIBS=$ac_check_lib_save_LIBS
32543fi
32544echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
32545echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
32546if test $ac_cv_lib_socket_inet_addr = yes; then
32547 INET_LINK="socket"
32548
32549fi
32550
32551
32552
32553fi
32554
32555
32556
32557fi
32558
32559
32560
32561fi
32562done
32563
32564
32565
32566for ac_func in inet_aton
32567do
32568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32569echo "$as_me:$LINENO: checking for $ac_func" >&5
32570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32571if eval "test \"\${$as_ac_var+set}\" = set"; then
32572 echo $ECHO_N "(cached) $ECHO_C" >&6
32573else
32574 cat >conftest.$ac_ext <<_ACEOF
32575/* confdefs.h. */
32576_ACEOF
32577cat confdefs.h >>conftest.$ac_ext
32578cat >>conftest.$ac_ext <<_ACEOF
32579/* end confdefs.h. */
ac1cb8d3
VS
32580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32582#define $ac_func innocuous_$ac_func
32583
a848cd7e
SC
32584/* System header to define __stub macros and hopefully few prototypes,
32585 which can conflict with char $ac_func (); below.
32586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32587 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32588
a848cd7e
SC
32589#ifdef __STDC__
32590# include <limits.h>
32591#else
32592# include <assert.h>
32593#endif
ac1cb8d3
VS
32594
32595#undef $ac_func
32596
a848cd7e
SC
32597/* Override any gcc2 internal prototype to avoid an error. */
32598#ifdef __cplusplus
32599extern "C"
32600{
32601#endif
32602/* We use char because int might match the return type of a gcc2
32603 builtin and then its argument prototype would still apply. */
32604char $ac_func ();
32605/* The GNU C library defines this for functions which it implements
32606 to always fail with ENOSYS. Some functions are actually named
32607 something starting with __ and the normal name is an alias. */
32608#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32609choke me
32610#else
32611char (*f) () = $ac_func;
32612#endif
32613#ifdef __cplusplus
32614}
32615#endif
32616
32617int
32618main ()
32619{
32620return f != $ac_func;
32621 ;
32622 return 0;
32623}
32624_ACEOF
32625rm -f conftest.$ac_objext conftest$ac_exeext
32626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32627 (eval $ac_link) 2>conftest.er1
a848cd7e 32628 ac_status=$?
ac1cb8d3
VS
32629 grep -v '^ *+' conftest.er1 >conftest.err
32630 rm -f conftest.er1
32631 cat conftest.err >&5
a848cd7e
SC
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); } &&
89be85c2
VS
32634 { ac_try='test -z "$ac_c_werror_flag"
32635 || test ! -s conftest.err'
ac1cb8d3
VS
32636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32637 (eval $ac_try) 2>&5
32638 ac_status=$?
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); }; } &&
32641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32643 (eval $ac_try) 2>&5
32644 ac_status=$?
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); }; }; then
32647 eval "$as_ac_var=yes"
32648else
32649 echo "$as_me: failed program was:" >&5
32650sed 's/^/| /' conftest.$ac_ext >&5
32651
32652eval "$as_ac_var=no"
32653fi
ac1cb8d3
VS
32654rm -f conftest.err conftest.$ac_objext \
32655 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32656fi
32657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32658echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32659if test `eval echo '${'$as_ac_var'}'` = yes; then
32660 cat >>confdefs.h <<_ACEOF
32661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32662_ACEOF
32663 cat >>confdefs.h <<\_ACEOF
32664#define HAVE_INET_ATON 1
32665_ACEOF
32666
32667else
32668
32669 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32670echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32671echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32672if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32673 echo $ECHO_N "(cached) $ECHO_C" >&6
32674else
32675 ac_check_lib_save_LIBS=$LIBS
32676LIBS="-l$INET_LINK $LIBS"
32677cat >conftest.$ac_ext <<_ACEOF
32678/* confdefs.h. */
32679_ACEOF
32680cat confdefs.h >>conftest.$ac_ext
32681cat >>conftest.$ac_ext <<_ACEOF
32682/* end confdefs.h. */
32683
32684/* Override any gcc2 internal prototype to avoid an error. */
32685#ifdef __cplusplus
32686extern "C"
32687#endif
32688/* We use char because int might match the return type of a gcc2
32689 builtin and then its argument prototype would still apply. */
32690char inet_aton ();
32691int
32692main ()
32693{
32694inet_aton ();
32695 ;
32696 return 0;
32697}
32698_ACEOF
32699rm -f conftest.$ac_objext conftest$ac_exeext
32700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32701 (eval $ac_link) 2>conftest.er1
a848cd7e 32702 ac_status=$?
ac1cb8d3
VS
32703 grep -v '^ *+' conftest.er1 >conftest.err
32704 rm -f conftest.er1
32705 cat conftest.err >&5
a848cd7e
SC
32706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32707 (exit $ac_status); } &&
89be85c2
VS
32708 { ac_try='test -z "$ac_c_werror_flag"
32709 || test ! -s conftest.err'
ac1cb8d3
VS
32710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32711 (eval $ac_try) 2>&5
32712 ac_status=$?
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); }; } &&
32715 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32717 (eval $ac_try) 2>&5
32718 ac_status=$?
32719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); }; }; then
32721 eval "$as_ac_Lib=yes"
32722else
32723 echo "$as_me: failed program was:" >&5
32724sed 's/^/| /' conftest.$ac_ext >&5
32725
32726eval "$as_ac_Lib=no"
32727fi
ac1cb8d3
VS
32728rm -f conftest.err conftest.$ac_objext \
32729 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32730LIBS=$ac_check_lib_save_LIBS
32731fi
32732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32733echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32734if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32735 cat >>confdefs.h <<\_ACEOF
32736#define HAVE_INET_ATON 1
32737_ACEOF
32738
32739fi
32740
32741
32742fi
32743done
32744
32745
32746if test "x$INET_LINK" != "x"; then
32747 cat >>confdefs.h <<\_ACEOF
32748#define HAVE_INET_ADDR 1
32749_ACEOF
32750
32751 INET_LINK=" -l$INET_LINK"
32752fi
32753
32754fi
32755
32756
32757
32758EXTRALIBS_ESD=
32759echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32760echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32761if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32762 echo $ECHO_N "(cached) $ECHO_C" >&6
32763else
32764 ac_check_lib_save_LIBS=$LIBS
32765LIBS="-lesd $LIBS"
32766cat >conftest.$ac_ext <<_ACEOF
32767/* confdefs.h. */
32768_ACEOF
32769cat confdefs.h >>conftest.$ac_ext
32770cat >>conftest.$ac_ext <<_ACEOF
32771/* end confdefs.h. */
32772
32773/* Override any gcc2 internal prototype to avoid an error. */
32774#ifdef __cplusplus
32775extern "C"
32776#endif
32777/* We use char because int might match the return type of a gcc2
32778 builtin and then its argument prototype would still apply. */
32779char esd_close ();
32780int
32781main ()
32782{
32783esd_close ();
32784 ;
32785 return 0;
32786}
32787_ACEOF
32788rm -f conftest.$ac_objext conftest$ac_exeext
32789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32790 (eval $ac_link) 2>conftest.er1
a848cd7e 32791 ac_status=$?
ac1cb8d3
VS
32792 grep -v '^ *+' conftest.er1 >conftest.err
32793 rm -f conftest.er1
32794 cat conftest.err >&5
a848cd7e
SC
32795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796 (exit $ac_status); } &&
89be85c2
VS
32797 { ac_try='test -z "$ac_c_werror_flag"
32798 || test ! -s conftest.err'
ac1cb8d3
VS
32799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32800 (eval $ac_try) 2>&5
32801 ac_status=$?
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); }; } &&
32804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32806 (eval $ac_try) 2>&5
32807 ac_status=$?
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); }; }; then
32810 ac_cv_lib_esd_esd_close=yes
32811else
32812 echo "$as_me: failed program was:" >&5
32813sed 's/^/| /' conftest.$ac_ext >&5
32814
32815ac_cv_lib_esd_esd_close=no
32816fi
ac1cb8d3
VS
32817rm -f conftest.err conftest.$ac_objext \
32818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32819LIBS=$ac_check_lib_save_LIBS
32820fi
32821echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32822echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32823if test $ac_cv_lib_esd_esd_close = yes; then
32824
32825
32826for ac_header in esd.h
32827do
32828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32829if eval "test \"\${$as_ac_Header+set}\" = set"; then
32830 echo "$as_me:$LINENO: checking for $ac_header" >&5
32831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32832if eval "test \"\${$as_ac_Header+set}\" = set"; then
32833 echo $ECHO_N "(cached) $ECHO_C" >&6
32834fi
32835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32837else
32838 # Is the header compilable?
32839echo "$as_me:$LINENO: checking $ac_header usability" >&5
32840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32841cat >conftest.$ac_ext <<_ACEOF
32842/* confdefs.h. */
32843_ACEOF
32844cat confdefs.h >>conftest.$ac_ext
32845cat >>conftest.$ac_ext <<_ACEOF
32846/* end confdefs.h. */
32847$ac_includes_default
32848#include <$ac_header>
32849_ACEOF
32850rm -f conftest.$ac_objext
32851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32852 (eval $ac_compile) 2>conftest.er1
a848cd7e 32853 ac_status=$?
ac1cb8d3
VS
32854 grep -v '^ *+' conftest.er1 >conftest.err
32855 rm -f conftest.er1
32856 cat conftest.err >&5
a848cd7e
SC
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); } &&
89be85c2
VS
32859 { ac_try='test -z "$ac_c_werror_flag"
32860 || test ! -s conftest.err'
ac1cb8d3
VS
32861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32862 (eval $ac_try) 2>&5
32863 ac_status=$?
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); }; } &&
32866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32868 (eval $ac_try) 2>&5
32869 ac_status=$?
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); }; }; then
32872 ac_header_compiler=yes
32873else
32874 echo "$as_me: failed program was:" >&5
32875sed 's/^/| /' conftest.$ac_ext >&5
32876
32877ac_header_compiler=no
32878fi
ac1cb8d3 32879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32880echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32881echo "${ECHO_T}$ac_header_compiler" >&6
32882
32883# Is the header present?
32884echo "$as_me:$LINENO: checking $ac_header presence" >&5
32885echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32886cat >conftest.$ac_ext <<_ACEOF
32887/* confdefs.h. */
32888_ACEOF
32889cat confdefs.h >>conftest.$ac_ext
32890cat >>conftest.$ac_ext <<_ACEOF
32891/* end confdefs.h. */
32892#include <$ac_header>
32893_ACEOF
32894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32896 ac_status=$?
32897 grep -v '^ *+' conftest.er1 >conftest.err
32898 rm -f conftest.er1
32899 cat conftest.err >&5
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); } >/dev/null; then
32902 if test -s conftest.err; then
32903 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32905 else
32906 ac_cpp_err=
32907 fi
32908else
32909 ac_cpp_err=yes
32910fi
32911if test -z "$ac_cpp_err"; then
32912 ac_header_preproc=yes
32913else
32914 echo "$as_me: failed program was:" >&5
32915sed 's/^/| /' conftest.$ac_ext >&5
32916
32917 ac_header_preproc=no
32918fi
32919rm -f conftest.err conftest.$ac_ext
32920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32921echo "${ECHO_T}$ac_header_preproc" >&6
32922
32923# So? What about this header?
ac1cb8d3
VS
32924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32925 yes:no: )
a848cd7e
SC
32926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32930 ac_header_preproc=yes
a848cd7e 32931 ;;
ac1cb8d3 32932 no:yes:* )
a848cd7e
SC
32933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32936echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32940echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32945 (
32946 cat <<\_ASBOX
ac1cb8d3
VS
32947## ----------------------------------------- ##
32948## Report this to wx-dev@lists.wxwidgets.org ##
32949## ----------------------------------------- ##
a848cd7e
SC
32950_ASBOX
32951 ) |
32952 sed "s/^/$as_me: WARNING: /" >&2
32953 ;;
32954esac
32955echo "$as_me:$LINENO: checking for $ac_header" >&5
32956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32957if eval "test \"\${$as_ac_Header+set}\" = set"; then
32958 echo $ECHO_N "(cached) $ECHO_C" >&6
32959else
ac1cb8d3 32960 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32961fi
32962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32964
32965fi
32966if test `eval echo '${'$as_ac_Header'}'` = yes; then
32967 cat >>confdefs.h <<_ACEOF
32968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32969_ACEOF
32970
32971 EXTRALIBS_ESD="-lesd"
32972
32973fi
32974
32975done
32976
32977
32978fi
32979
32980
32981
32982echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32983echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32984cat >conftest.$ac_ext <<_ACEOF
32985/* confdefs.h. */
32986_ACEOF
32987cat confdefs.h >>conftest.$ac_ext
32988cat >>conftest.$ac_ext <<_ACEOF
32989/* end confdefs.h. */
32990#ifdef __linux__
32991 #include <linux/cdrom.h>
32992 #else
32993 /* For Solaris */
32994 #include <sys/cdio.h>
32995 #endif
32996
32997int
32998main ()
32999{
33000struct cdrom_tocentry entry, old_entry;
33001 ;
33002 return 0;
33003}
33004_ACEOF
33005rm -f conftest.$ac_objext
33006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33007 (eval $ac_compile) 2>conftest.er1
a848cd7e 33008 ac_status=$?
ac1cb8d3
VS
33009 grep -v '^ *+' conftest.er1 >conftest.err
33010 rm -f conftest.er1
33011 cat conftest.err >&5
a848cd7e
SC
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); } &&
89be85c2
VS
33014 { ac_try='test -z "$ac_c_werror_flag"
33015 || test ! -s conftest.err'
ac1cb8d3
VS
33016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33017 (eval $ac_try) 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; } &&
33021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33023 (eval $ac_try) 2>&5
33024 ac_status=$?
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); }; }; then
33027 echo "$as_me:$LINENO: result: yes" >&5
33028echo "${ECHO_T}yes" >&6
33029 cat >>confdefs.h <<\_ACEOF
33030#define HAVE_KNOWN_CDROM_INTERFACE 1
33031_ACEOF
33032
33033else
33034 echo "$as_me: failed program was:" >&5
33035sed 's/^/| /' conftest.$ac_ext >&5
33036
33037echo "$as_me:$LINENO: result: no" >&5
33038echo "${ECHO_T}no" >&6
33039fi
ac1cb8d3 33040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33041
33042
33043cat >confcache <<\_ACEOF
33044# This file is a shell script that caches the results of configure
33045# tests run on this system so they can be shared between configure
33046# scripts and configure runs, see configure's option --config-cache.
33047# It is not useful on other systems. If it contains results you don't
33048# want to keep, you may remove or edit it.
33049#
33050# config.status only pays attention to the cache file if you give it
33051# the --recheck option to rerun configure.
33052#
33053# `ac_cv_env_foo' variables (set or unset) will be overridden when
33054# loading this file, other *unset* `ac_cv_foo' will be assigned the
33055# following values.
33056
33057_ACEOF
33058
33059# The following way of writing the cache mishandles newlines in values,
33060# but we know of no workaround that is simple, portable, and efficient.
33061# So, don't put newlines in cache variables' values.
33062# Ultrix sh set writes to stderr and can't be redirected directly,
33063# and sets the high bit in the cache file unless we assign to the vars.
33064{
33065 (set) 2>&1 |
33066 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33067 *ac_space=\ *)
33068 # `set' does not quote correctly, so add quotes (double-quote
33069 # substitution turns \\\\ into \\, and sed turns \\ into \).
33070 sed -n \
ac1cb8d3
VS
33071 "s/'/'\\\\''/g;
33072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33073 ;;
33074 *)
33075 # `set' quotes correctly as required by POSIX, so do not add quotes.
33076 sed -n \
ac1cb8d3 33077 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33078 ;;
33079 esac;
33080} |
33081 sed '
33082 t clear
33083 : clear
33084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33085 t end
33086 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33087 : end' >>confcache
33088if diff $cache_file confcache >/dev/null 2>&1; then :; else
33089 if test -w $cache_file; then
33090 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33091 cat confcache >$cache_file
33092 else
33093 echo "not updating unwritable cache $cache_file"
33094 fi
33095fi
33096rm -f confcache
33097
33098
33099CPP_MT_FLAG=
33100if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33101
33102
33103 THREADS_LINK=
33104 THREADS_CFLAGS=
33105
33106 if test "$wxUSE_THREADS" = "yes" ; then
33107 if test "$USE_BEOS" = 1; then
33108 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33109echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33110 wxUSE_THREADS="no"
33111 fi
33112 fi
33113
33114 if test "$wxUSE_THREADS" = "yes" ; then
33115
33116
33117 THREAD_OPTS="-pthread"
33118 case "${host}" in
33119 *-*-solaris2* | *-*-sunos4* )
33120 if test "x$GCC" = "xyes"; then
33121 THREAD_OPTS="-pthreads $THREAD_OPTS"
33122 else
33123 THREAD_OPTS="-mt $THREAD_OPTS"
33124 fi
33125 ;;
33126 *-*-freebsd*)
33127 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33128 ;;
33129 *-*-darwin* | *-*-cygwin* )
33130 THREAD_OPTS=""
33131 ;;
33132 *-*-aix*)
33133 THREAD_OPTS="pthreads"
33134 ;;
33135 *-hp-hpux* )
33136 if test "x$GCC" != "xyes"; then
33137 THREAD_OPTS=""
33138 fi
33139 ;;
33140
33141 *-*-irix* )
33142 if test "x$GCC" = "xyes"; then
33143 THREAD_OPTS=""
33144 fi
33145 ;;
33146
33147 *-*-*UnixWare*)
33148 if test "x$GCC" != "xyes"; then
33149 THREAD_OPTS="-Ethread"
33150 fi
33151 ;;
33152 esac
33153
33154 THREAD_OPTS="$THREAD_OPTS pthread none"
33155
33156 THREADS_OK=no
33157 for flag in $THREAD_OPTS; do
33158 case $flag in
33159 none)
33160 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33161echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33162 ;;
33163
33164 -*)
33165 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33166echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33167 THREADS_CFLAGS="$flag"
33168 ;;
33169
33170 *)
33171 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33172echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33173 THREADS_LINK="-l$flag"
33174 ;;
33175 esac
33176
33177 save_LIBS="$LIBS"
33178 save_CFLAGS="$CFLAGS"
33179 LIBS="$THREADS_LINK $LIBS"
33180 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33181
33182 cat >conftest.$ac_ext <<_ACEOF
33183/* confdefs.h. */
33184_ACEOF
33185cat confdefs.h >>conftest.$ac_ext
33186cat >>conftest.$ac_ext <<_ACEOF
33187/* end confdefs.h. */
33188#include <pthread.h>
33189int
33190main ()
33191{
33192pthread_create(0,0,0,0);
33193 ;
33194 return 0;
33195}
33196_ACEOF
33197rm -f conftest.$ac_objext conftest$ac_exeext
33198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33199 (eval $ac_link) 2>conftest.er1
a848cd7e 33200 ac_status=$?
ac1cb8d3
VS
33201 grep -v '^ *+' conftest.er1 >conftest.err
33202 rm -f conftest.er1
33203 cat conftest.err >&5
a848cd7e
SC
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); } &&
89be85c2
VS
33206 { ac_try='test -z "$ac_c_werror_flag"
33207 || test ! -s conftest.err'
ac1cb8d3
VS
33208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33209 (eval $ac_try) 2>&5
33210 ac_status=$?
33211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33212 (exit $ac_status); }; } &&
33213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33215 (eval $ac_try) 2>&5
33216 ac_status=$?
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); }; }; then
33219 THREADS_OK=yes
33220else
33221 echo "$as_me: failed program was:" >&5
33222sed 's/^/| /' conftest.$ac_ext >&5
33223
33224fi
ac1cb8d3
VS
33225rm -f conftest.err conftest.$ac_objext \
33226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33227
33228 LIBS="$save_LIBS"
33229 CFLAGS="$save_CFLAGS"
33230
33231 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33232echo "${ECHO_T}$THREADS_OK" >&6
33233 if test "x$THREADS_OK" = "xyes"; then
33234 break;
33235 fi
33236
33237 THREADS_LINK=""
33238 THREADS_CFLAGS=""
33239 done
33240
33241 if test "x$THREADS_OK" != "xyes"; then
33242 wxUSE_THREADS=no
33243 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33244echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33245 else
33246 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33247 LIBS="$THREADS_LINK $LIBS"
33248
33249 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33250echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33251 flag=no
33252 case "${host}" in
33253 *-aix*)
33254 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33255 flag="-D_THREAD_SAFE"
33256 ;;
33257 *-freebsd*)
33258 flag="-D_THREAD_SAFE"
33259 ;;
33260 *-hp-hpux* )
33261 flag="-D_REENTRANT"
33262 if test "x$GCC" != "xyes"; then
33263 flag="$flag -D_RWSTD_MULTI_THREAD"
33264 fi
33265 ;;
33266 *solaris* | alpha*-osf*)
33267 flag="-D_REENTRANT"
33268 ;;
33269 esac
33270 echo "$as_me:$LINENO: result: ${flag}" >&5
33271echo "${ECHO_T}${flag}" >&6
33272 if test "x$flag" != xno; then
33273 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33274 fi
33275
33276 if test "x$THREADS_CFLAGS" != "x"; then
33277 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33278 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33279 fi
33280 fi
33281 fi
33282
33283 if test "$wxUSE_THREADS" = "yes" ; then
33284
33285for ac_func in thr_setconcurrency
33286do
33287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33288echo "$as_me:$LINENO: checking for $ac_func" >&5
33289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33290if eval "test \"\${$as_ac_var+set}\" = set"; then
33291 echo $ECHO_N "(cached) $ECHO_C" >&6
33292else
33293 cat >conftest.$ac_ext <<_ACEOF
33294/* confdefs.h. */
33295_ACEOF
33296cat confdefs.h >>conftest.$ac_ext
33297cat >>conftest.$ac_ext <<_ACEOF
33298/* end confdefs.h. */
ac1cb8d3
VS
33299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33301#define $ac_func innocuous_$ac_func
33302
a848cd7e
SC
33303/* System header to define __stub macros and hopefully few prototypes,
33304 which can conflict with char $ac_func (); below.
33305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33306 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33307
a848cd7e
SC
33308#ifdef __STDC__
33309# include <limits.h>
33310#else
33311# include <assert.h>
33312#endif
ac1cb8d3
VS
33313
33314#undef $ac_func
33315
a848cd7e
SC
33316/* Override any gcc2 internal prototype to avoid an error. */
33317#ifdef __cplusplus
33318extern "C"
33319{
33320#endif
33321/* We use char because int might match the return type of a gcc2
33322 builtin and then its argument prototype would still apply. */
33323char $ac_func ();
33324/* The GNU C library defines this for functions which it implements
33325 to always fail with ENOSYS. Some functions are actually named
33326 something starting with __ and the normal name is an alias. */
33327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33328choke me
33329#else
33330char (*f) () = $ac_func;
33331#endif
33332#ifdef __cplusplus
33333}
33334#endif
33335
33336int
33337main ()
33338{
33339return f != $ac_func;
33340 ;
33341 return 0;
33342}
33343_ACEOF
33344rm -f conftest.$ac_objext conftest$ac_exeext
33345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33346 (eval $ac_link) 2>conftest.er1
a848cd7e 33347 ac_status=$?
ac1cb8d3
VS
33348 grep -v '^ *+' conftest.er1 >conftest.err
33349 rm -f conftest.er1
33350 cat conftest.err >&5
a848cd7e
SC
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); } &&
89be85c2
VS
33353 { ac_try='test -z "$ac_c_werror_flag"
33354 || test ! -s conftest.err'
ac1cb8d3
VS
33355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356 (eval $ac_try) 2>&5
33357 ac_status=$?
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; } &&
33360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33362 (eval $ac_try) 2>&5
33363 ac_status=$?
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); }; }; then
33366 eval "$as_ac_var=yes"
33367else
33368 echo "$as_me: failed program was:" >&5
33369sed 's/^/| /' conftest.$ac_ext >&5
33370
33371eval "$as_ac_var=no"
33372fi
ac1cb8d3
VS
33373rm -f conftest.err conftest.$ac_objext \
33374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33375fi
33376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33378if test `eval echo '${'$as_ac_var'}'` = yes; then
33379 cat >>confdefs.h <<_ACEOF
33380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33381_ACEOF
33382
33383fi
33384done
33385
33386
33387
33388for ac_header in sched.h
33389do
33390as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33391if eval "test \"\${$as_ac_Header+set}\" = set"; then
33392 echo "$as_me:$LINENO: checking for $ac_header" >&5
33393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33394if eval "test \"\${$as_ac_Header+set}\" = set"; then
33395 echo $ECHO_N "(cached) $ECHO_C" >&6
33396fi
33397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33399else
33400 # Is the header compilable?
33401echo "$as_me:$LINENO: checking $ac_header usability" >&5
33402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33403cat >conftest.$ac_ext <<_ACEOF
33404/* confdefs.h. */
33405_ACEOF
33406cat confdefs.h >>conftest.$ac_ext
33407cat >>conftest.$ac_ext <<_ACEOF
33408/* end confdefs.h. */
33409$ac_includes_default
33410#include <$ac_header>
33411_ACEOF
33412rm -f conftest.$ac_objext
33413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33414 (eval $ac_compile) 2>conftest.er1
a848cd7e 33415 ac_status=$?
ac1cb8d3
VS
33416 grep -v '^ *+' conftest.er1 >conftest.err
33417 rm -f conftest.er1
33418 cat conftest.err >&5
a848cd7e
SC
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); } &&
89be85c2
VS
33421 { ac_try='test -z "$ac_c_werror_flag"
33422 || test ! -s conftest.err'
ac1cb8d3
VS
33423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33424 (eval $ac_try) 2>&5
33425 ac_status=$?
33426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427 (exit $ac_status); }; } &&
33428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430 (eval $ac_try) 2>&5
33431 ac_status=$?
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); }; }; then
33434 ac_header_compiler=yes
33435else
33436 echo "$as_me: failed program was:" >&5
33437sed 's/^/| /' conftest.$ac_ext >&5
33438
33439ac_header_compiler=no
33440fi
ac1cb8d3 33441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33442echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33443echo "${ECHO_T}$ac_header_compiler" >&6
33444
33445# Is the header present?
33446echo "$as_me:$LINENO: checking $ac_header presence" >&5
33447echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33448cat >conftest.$ac_ext <<_ACEOF
33449/* confdefs.h. */
33450_ACEOF
33451cat confdefs.h >>conftest.$ac_ext
33452cat >>conftest.$ac_ext <<_ACEOF
33453/* end confdefs.h. */
33454#include <$ac_header>
33455_ACEOF
33456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33458 ac_status=$?
33459 grep -v '^ *+' conftest.er1 >conftest.err
33460 rm -f conftest.er1
33461 cat conftest.err >&5
33462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463 (exit $ac_status); } >/dev/null; then
33464 if test -s conftest.err; then
33465 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33467 else
33468 ac_cpp_err=
33469 fi
33470else
33471 ac_cpp_err=yes
33472fi
33473if test -z "$ac_cpp_err"; then
33474 ac_header_preproc=yes
33475else
33476 echo "$as_me: failed program was:" >&5
33477sed 's/^/| /' conftest.$ac_ext >&5
33478
33479 ac_header_preproc=no
33480fi
33481rm -f conftest.err conftest.$ac_ext
33482echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33483echo "${ECHO_T}$ac_header_preproc" >&6
33484
33485# So? What about this header?
ac1cb8d3
VS
33486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33487 yes:no: )
a848cd7e
SC
33488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33489echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33491echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33492 ac_header_preproc=yes
a848cd7e 33493 ;;
ac1cb8d3 33494 no:yes:* )
a848cd7e
SC
33495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33500echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33502echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33504echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33506echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33507 (
33508 cat <<\_ASBOX
ac1cb8d3
VS
33509## ----------------------------------------- ##
33510## Report this to wx-dev@lists.wxwidgets.org ##
33511## ----------------------------------------- ##
a848cd7e
SC
33512_ASBOX
33513 ) |
33514 sed "s/^/$as_me: WARNING: /" >&2
33515 ;;
33516esac
33517echo "$as_me:$LINENO: checking for $ac_header" >&5
33518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33519if eval "test \"\${$as_ac_Header+set}\" = set"; then
33520 echo $ECHO_N "(cached) $ECHO_C" >&6
33521else
ac1cb8d3 33522 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33523fi
33524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33525echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33526
33527fi
33528if test `eval echo '${'$as_ac_Header'}'` = yes; then
33529 cat >>confdefs.h <<_ACEOF
33530#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33531_ACEOF
33532
33533fi
33534
33535done
33536
33537 if test "$ac_cv_header_sched_h" = "yes"; then
33538 echo "$as_me:$LINENO: checking for sched_yield" >&5
33539echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
33540if test "${ac_cv_func_sched_yield+set}" = set; then
33541 echo $ECHO_N "(cached) $ECHO_C" >&6
33542else
33543 cat >conftest.$ac_ext <<_ACEOF
33544/* confdefs.h. */
33545_ACEOF
33546cat confdefs.h >>conftest.$ac_ext
33547cat >>conftest.$ac_ext <<_ACEOF
33548/* end confdefs.h. */
ac1cb8d3
VS
33549/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
33550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33551#define sched_yield innocuous_sched_yield
33552
a848cd7e
SC
33553/* System header to define __stub macros and hopefully few prototypes,
33554 which can conflict with char sched_yield (); below.
33555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33556 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33557
a848cd7e
SC
33558#ifdef __STDC__
33559# include <limits.h>
33560#else
33561# include <assert.h>
33562#endif
ac1cb8d3
VS
33563
33564#undef sched_yield
33565
a848cd7e
SC
33566/* Override any gcc2 internal prototype to avoid an error. */
33567#ifdef __cplusplus
33568extern "C"
33569{
33570#endif
33571/* We use char because int might match the return type of a gcc2
33572 builtin and then its argument prototype would still apply. */
33573char sched_yield ();
33574/* The GNU C library defines this for functions which it implements
33575 to always fail with ENOSYS. Some functions are actually named
33576 something starting with __ and the normal name is an alias. */
33577#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33578choke me
33579#else
33580char (*f) () = sched_yield;
33581#endif
33582#ifdef __cplusplus
33583}
33584#endif
33585
33586int
33587main ()
33588{
33589return f != sched_yield;
33590 ;
33591 return 0;
33592}
33593_ACEOF
33594rm -f conftest.$ac_objext conftest$ac_exeext
33595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33596 (eval $ac_link) 2>conftest.er1
a848cd7e 33597 ac_status=$?
ac1cb8d3
VS
33598 grep -v '^ *+' conftest.er1 >conftest.err
33599 rm -f conftest.er1
33600 cat conftest.err >&5
a848cd7e
SC
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); } &&
89be85c2
VS
33603 { ac_try='test -z "$ac_c_werror_flag"
33604 || test ! -s conftest.err'
ac1cb8d3
VS
33605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33606 (eval $ac_try) 2>&5
33607 ac_status=$?
33608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609 (exit $ac_status); }; } &&
33610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612 (eval $ac_try) 2>&5
33613 ac_status=$?
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; }; then
33616 ac_cv_func_sched_yield=yes
33617else
33618 echo "$as_me: failed program was:" >&5
33619sed 's/^/| /' conftest.$ac_ext >&5
33620
33621ac_cv_func_sched_yield=no
33622fi
ac1cb8d3
VS
33623rm -f conftest.err conftest.$ac_objext \
33624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33625fi
33626echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33627echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33628if test $ac_cv_func_sched_yield = yes; then
33629 cat >>confdefs.h <<\_ACEOF
33630#define HAVE_SCHED_YIELD 1
33631_ACEOF
33632
33633else
33634
33635 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33636echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33637if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33638 echo $ECHO_N "(cached) $ECHO_C" >&6
33639else
33640 ac_check_lib_save_LIBS=$LIBS
33641LIBS="-lposix4 $LIBS"
33642cat >conftest.$ac_ext <<_ACEOF
33643/* confdefs.h. */
33644_ACEOF
33645cat confdefs.h >>conftest.$ac_ext
33646cat >>conftest.$ac_ext <<_ACEOF
33647/* end confdefs.h. */
33648
33649/* Override any gcc2 internal prototype to avoid an error. */
33650#ifdef __cplusplus
33651extern "C"
33652#endif
33653/* We use char because int might match the return type of a gcc2
33654 builtin and then its argument prototype would still apply. */
33655char sched_yield ();
33656int
33657main ()
33658{
33659sched_yield ();
33660 ;
33661 return 0;
33662}
33663_ACEOF
33664rm -f conftest.$ac_objext conftest$ac_exeext
33665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33666 (eval $ac_link) 2>conftest.er1
a848cd7e 33667 ac_status=$?
ac1cb8d3
VS
33668 grep -v '^ *+' conftest.er1 >conftest.err
33669 rm -f conftest.er1
33670 cat conftest.err >&5
a848cd7e
SC
33671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672 (exit $ac_status); } &&
89be85c2
VS
33673 { ac_try='test -z "$ac_c_werror_flag"
33674 || test ! -s conftest.err'
ac1cb8d3
VS
33675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33676 (eval $ac_try) 2>&5
33677 ac_status=$?
33678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 (exit $ac_status); }; } &&
33680 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33682 (eval $ac_try) 2>&5
33683 ac_status=$?
33684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 (exit $ac_status); }; }; then
33686 ac_cv_lib_posix4_sched_yield=yes
33687else
33688 echo "$as_me: failed program was:" >&5
33689sed 's/^/| /' conftest.$ac_ext >&5
33690
33691ac_cv_lib_posix4_sched_yield=no
33692fi
ac1cb8d3
VS
33693rm -f conftest.err conftest.$ac_objext \
33694 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33695LIBS=$ac_check_lib_save_LIBS
33696fi
33697echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33698echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33699if test $ac_cv_lib_posix4_sched_yield = yes; then
33700 cat >>confdefs.h <<\_ACEOF
33701#define HAVE_SCHED_YIELD 1
33702_ACEOF
33703 POSIX4_LINK=" -lposix4"
33704else
33705 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33706echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33707
33708fi
33709
33710
33711
33712fi
33713
33714 fi
33715
33716 HAVE_PRIOR_FUNCS=0
33717 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33718echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33719if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33720 echo $ECHO_N "(cached) $ECHO_C" >&6
33721else
33722 cat >conftest.$ac_ext <<_ACEOF
33723/* confdefs.h. */
33724_ACEOF
33725cat confdefs.h >>conftest.$ac_ext
33726cat >>conftest.$ac_ext <<_ACEOF
33727/* end confdefs.h. */
ac1cb8d3
VS
33728/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33730#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33731
a848cd7e
SC
33732/* System header to define __stub macros and hopefully few prototypes,
33733 which can conflict with char pthread_attr_getschedpolicy (); below.
33734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33735 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33736
a848cd7e
SC
33737#ifdef __STDC__
33738# include <limits.h>
33739#else
33740# include <assert.h>
33741#endif
ac1cb8d3
VS
33742
33743#undef pthread_attr_getschedpolicy
33744
a848cd7e
SC
33745/* Override any gcc2 internal prototype to avoid an error. */
33746#ifdef __cplusplus
33747extern "C"
33748{
33749#endif
33750/* We use char because int might match the return type of a gcc2
33751 builtin and then its argument prototype would still apply. */
33752char pthread_attr_getschedpolicy ();
33753/* The GNU C library defines this for functions which it implements
33754 to always fail with ENOSYS. Some functions are actually named
33755 something starting with __ and the normal name is an alias. */
33756#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33757choke me
33758#else
33759char (*f) () = pthread_attr_getschedpolicy;
33760#endif
33761#ifdef __cplusplus
33762}
33763#endif
33764
33765int
33766main ()
33767{
33768return f != pthread_attr_getschedpolicy;
33769 ;
33770 return 0;
33771}
33772_ACEOF
33773rm -f conftest.$ac_objext conftest$ac_exeext
33774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33775 (eval $ac_link) 2>conftest.er1
a848cd7e 33776 ac_status=$?
ac1cb8d3
VS
33777 grep -v '^ *+' conftest.er1 >conftest.err
33778 rm -f conftest.er1
33779 cat conftest.err >&5
a848cd7e
SC
33780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33781 (exit $ac_status); } &&
89be85c2
VS
33782 { ac_try='test -z "$ac_c_werror_flag"
33783 || test ! -s conftest.err'
ac1cb8d3
VS
33784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33785 (eval $ac_try) 2>&5
33786 ac_status=$?
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); }; } &&
33789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33791 (eval $ac_try) 2>&5
33792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; }; then
33795 ac_cv_func_pthread_attr_getschedpolicy=yes
33796else
33797 echo "$as_me: failed program was:" >&5
33798sed 's/^/| /' conftest.$ac_ext >&5
33799
33800ac_cv_func_pthread_attr_getschedpolicy=no
33801fi
ac1cb8d3
VS
33802rm -f conftest.err conftest.$ac_objext \
33803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33804fi
33805echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33806echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33807if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33808 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33809echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33810if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33811 echo $ECHO_N "(cached) $ECHO_C" >&6
33812else
33813 cat >conftest.$ac_ext <<_ACEOF
33814/* confdefs.h. */
33815_ACEOF
33816cat confdefs.h >>conftest.$ac_ext
33817cat >>conftest.$ac_ext <<_ACEOF
33818/* end confdefs.h. */
ac1cb8d3
VS
33819/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33821#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33822
a848cd7e
SC
33823/* System header to define __stub macros and hopefully few prototypes,
33824 which can conflict with char pthread_attr_setschedparam (); below.
33825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33826 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33827
a848cd7e
SC
33828#ifdef __STDC__
33829# include <limits.h>
33830#else
33831# include <assert.h>
33832#endif
ac1cb8d3
VS
33833
33834#undef pthread_attr_setschedparam
33835
a848cd7e
SC
33836/* Override any gcc2 internal prototype to avoid an error. */
33837#ifdef __cplusplus
33838extern "C"
33839{
33840#endif
33841/* We use char because int might match the return type of a gcc2
33842 builtin and then its argument prototype would still apply. */
33843char pthread_attr_setschedparam ();
33844/* The GNU C library defines this for functions which it implements
33845 to always fail with ENOSYS. Some functions are actually named
33846 something starting with __ and the normal name is an alias. */
33847#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33848choke me
33849#else
33850char (*f) () = pthread_attr_setschedparam;
33851#endif
33852#ifdef __cplusplus
33853}
33854#endif
33855
33856int
33857main ()
33858{
33859return f != pthread_attr_setschedparam;
33860 ;
33861 return 0;
33862}
33863_ACEOF
33864rm -f conftest.$ac_objext conftest$ac_exeext
33865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33866 (eval $ac_link) 2>conftest.er1
a848cd7e 33867 ac_status=$?
ac1cb8d3
VS
33868 grep -v '^ *+' conftest.er1 >conftest.err
33869 rm -f conftest.er1
33870 cat conftest.err >&5
a848cd7e
SC
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); } &&
89be85c2
VS
33873 { ac_try='test -z "$ac_c_werror_flag"
33874 || test ! -s conftest.err'
ac1cb8d3
VS
33875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876 (eval $ac_try) 2>&5
33877 ac_status=$?
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; } &&
33880 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33882 (eval $ac_try) 2>&5
33883 ac_status=$?
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); }; }; then
33886 ac_cv_func_pthread_attr_setschedparam=yes
33887else
33888 echo "$as_me: failed program was:" >&5
33889sed 's/^/| /' conftest.$ac_ext >&5
33890
33891ac_cv_func_pthread_attr_setschedparam=no
33892fi
ac1cb8d3
VS
33893rm -f conftest.err conftest.$ac_objext \
33894 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33895fi
33896echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33897echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33898if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33899 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33900echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33901if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33902 echo $ECHO_N "(cached) $ECHO_C" >&6
33903else
33904 cat >conftest.$ac_ext <<_ACEOF
33905/* confdefs.h. */
33906_ACEOF
33907cat confdefs.h >>conftest.$ac_ext
33908cat >>conftest.$ac_ext <<_ACEOF
33909/* end confdefs.h. */
ac1cb8d3
VS
33910/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33912#define sched_get_priority_max innocuous_sched_get_priority_max
33913
a848cd7e
SC
33914/* System header to define __stub macros and hopefully few prototypes,
33915 which can conflict with char sched_get_priority_max (); below.
33916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33917 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33918
a848cd7e
SC
33919#ifdef __STDC__
33920# include <limits.h>
33921#else
33922# include <assert.h>
33923#endif
ac1cb8d3
VS
33924
33925#undef sched_get_priority_max
33926
a848cd7e
SC
33927/* Override any gcc2 internal prototype to avoid an error. */
33928#ifdef __cplusplus
33929extern "C"
33930{
33931#endif
33932/* We use char because int might match the return type of a gcc2
33933 builtin and then its argument prototype would still apply. */
33934char sched_get_priority_max ();
33935/* The GNU C library defines this for functions which it implements
33936 to always fail with ENOSYS. Some functions are actually named
33937 something starting with __ and the normal name is an alias. */
33938#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33939choke me
33940#else
33941char (*f) () = sched_get_priority_max;
33942#endif
33943#ifdef __cplusplus
33944}
33945#endif
33946
33947int
33948main ()
33949{
33950return f != sched_get_priority_max;
33951 ;
33952 return 0;
33953}
33954_ACEOF
33955rm -f conftest.$ac_objext conftest$ac_exeext
33956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33957 (eval $ac_link) 2>conftest.er1
a848cd7e 33958 ac_status=$?
ac1cb8d3
VS
33959 grep -v '^ *+' conftest.er1 >conftest.err
33960 rm -f conftest.er1
33961 cat conftest.err >&5
a848cd7e
SC
33962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963 (exit $ac_status); } &&
89be85c2
VS
33964 { ac_try='test -z "$ac_c_werror_flag"
33965 || test ! -s conftest.err'
ac1cb8d3
VS
33966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33967 (eval $ac_try) 2>&5
33968 ac_status=$?
33969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970 (exit $ac_status); }; } &&
33971 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33973 (eval $ac_try) 2>&5
33974 ac_status=$?
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); }; }; then
33977 ac_cv_func_sched_get_priority_max=yes
33978else
33979 echo "$as_me: failed program was:" >&5
33980sed 's/^/| /' conftest.$ac_ext >&5
33981
33982ac_cv_func_sched_get_priority_max=no
33983fi
ac1cb8d3
VS
33984rm -f conftest.err conftest.$ac_objext \
33985 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33986fi
33987echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33988echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33989if test $ac_cv_func_sched_get_priority_max = yes; then
33990 HAVE_PRIOR_FUNCS=1
33991else
33992 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33993echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33994if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33995 echo $ECHO_N "(cached) $ECHO_C" >&6
33996else
33997 ac_check_lib_save_LIBS=$LIBS
33998LIBS="-lposix4 $LIBS"
33999cat >conftest.$ac_ext <<_ACEOF
34000/* confdefs.h. */
34001_ACEOF
34002cat confdefs.h >>conftest.$ac_ext
34003cat >>conftest.$ac_ext <<_ACEOF
34004/* end confdefs.h. */
34005
34006/* Override any gcc2 internal prototype to avoid an error. */
34007#ifdef __cplusplus
34008extern "C"
34009#endif
34010/* We use char because int might match the return type of a gcc2
34011 builtin and then its argument prototype would still apply. */
34012char sched_get_priority_max ();
34013int
34014main ()
34015{
34016sched_get_priority_max ();
34017 ;
34018 return 0;
34019}
34020_ACEOF
34021rm -f conftest.$ac_objext conftest$ac_exeext
34022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34023 (eval $ac_link) 2>conftest.er1
a848cd7e 34024 ac_status=$?
ac1cb8d3
VS
34025 grep -v '^ *+' conftest.er1 >conftest.err
34026 rm -f conftest.er1
34027 cat conftest.err >&5
a848cd7e
SC
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); } &&
89be85c2
VS
34030 { ac_try='test -z "$ac_c_werror_flag"
34031 || test ! -s conftest.err'
ac1cb8d3
VS
34032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34033 (eval $ac_try) 2>&5
34034 ac_status=$?
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); }; } &&
34037 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34039 (eval $ac_try) 2>&5
34040 ac_status=$?
34041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042 (exit $ac_status); }; }; then
34043 ac_cv_lib_posix4_sched_get_priority_max=yes
34044else
34045 echo "$as_me: failed program was:" >&5
34046sed 's/^/| /' conftest.$ac_ext >&5
34047
34048ac_cv_lib_posix4_sched_get_priority_max=no
34049fi
ac1cb8d3
VS
34050rm -f conftest.err conftest.$ac_objext \
34051 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34052LIBS=$ac_check_lib_save_LIBS
34053fi
34054echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34055echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34056if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34057
34058 HAVE_PRIOR_FUNCS=1
34059 POSIX4_LINK=" -lposix4"
34060
34061fi
34062
34063
34064fi
34065
34066
34067fi
34068
34069
34070fi
34071
34072
34073 if test "$HAVE_PRIOR_FUNCS" = 1; then
34074 cat >>confdefs.h <<\_ACEOF
34075#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34076_ACEOF
34077
34078 else
34079 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34080echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34081 fi
34082
34083 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34084echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34085if test "${ac_cv_func_pthread_cancel+set}" = set; then
34086 echo $ECHO_N "(cached) $ECHO_C" >&6
34087else
34088 cat >conftest.$ac_ext <<_ACEOF
34089/* confdefs.h. */
34090_ACEOF
34091cat confdefs.h >>conftest.$ac_ext
34092cat >>conftest.$ac_ext <<_ACEOF
34093/* end confdefs.h. */
ac1cb8d3
VS
34094/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34096#define pthread_cancel innocuous_pthread_cancel
34097
a848cd7e
SC
34098/* System header to define __stub macros and hopefully few prototypes,
34099 which can conflict with char pthread_cancel (); below.
34100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34101 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34102
a848cd7e
SC
34103#ifdef __STDC__
34104# include <limits.h>
34105#else
34106# include <assert.h>
34107#endif
ac1cb8d3
VS
34108
34109#undef pthread_cancel
34110
a848cd7e
SC
34111/* Override any gcc2 internal prototype to avoid an error. */
34112#ifdef __cplusplus
34113extern "C"
34114{
34115#endif
34116/* We use char because int might match the return type of a gcc2
34117 builtin and then its argument prototype would still apply. */
34118char pthread_cancel ();
34119/* The GNU C library defines this for functions which it implements
34120 to always fail with ENOSYS. Some functions are actually named
34121 something starting with __ and the normal name is an alias. */
34122#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34123choke me
34124#else
34125char (*f) () = pthread_cancel;
34126#endif
34127#ifdef __cplusplus
34128}
34129#endif
34130
34131int
34132main ()
34133{
34134return f != pthread_cancel;
34135 ;
34136 return 0;
34137}
34138_ACEOF
34139rm -f conftest.$ac_objext conftest$ac_exeext
34140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34141 (eval $ac_link) 2>conftest.er1
a848cd7e 34142 ac_status=$?
ac1cb8d3
VS
34143 grep -v '^ *+' conftest.er1 >conftest.err
34144 rm -f conftest.er1
34145 cat conftest.err >&5
a848cd7e
SC
34146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147 (exit $ac_status); } &&
89be85c2
VS
34148 { ac_try='test -z "$ac_c_werror_flag"
34149 || test ! -s conftest.err'
ac1cb8d3
VS
34150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34151 (eval $ac_try) 2>&5
34152 ac_status=$?
34153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34154 (exit $ac_status); }; } &&
34155 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34157 (eval $ac_try) 2>&5
34158 ac_status=$?
34159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160 (exit $ac_status); }; }; then
34161 ac_cv_func_pthread_cancel=yes
34162else
34163 echo "$as_me: failed program was:" >&5
34164sed 's/^/| /' conftest.$ac_ext >&5
34165
34166ac_cv_func_pthread_cancel=no
34167fi
ac1cb8d3
VS
34168rm -f conftest.err conftest.$ac_objext \
34169 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34170fi
34171echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34172echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34173if test $ac_cv_func_pthread_cancel = yes; then
34174 cat >>confdefs.h <<\_ACEOF
34175#define HAVE_PTHREAD_CANCEL 1
34176_ACEOF
34177
34178else
34179 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34180echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34181fi
34182
34183
34184
34185
34186 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34187echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34188if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34189 echo $ECHO_N "(cached) $ECHO_C" >&6
34190else
34191
34192 cat >conftest.$ac_ext <<_ACEOF
34193/* confdefs.h. */
34194_ACEOF
34195cat confdefs.h >>conftest.$ac_ext
34196cat >>conftest.$ac_ext <<_ACEOF
34197/* end confdefs.h. */
34198#include <pthread.h>
34199int
34200main ()
34201{
34202
34203 pthread_mutexattr_t attr;
34204 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34205
34206 ;
34207 return 0;
34208}
34209_ACEOF
34210rm -f conftest.$ac_objext
34211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34212 (eval $ac_compile) 2>conftest.er1
a848cd7e 34213 ac_status=$?
ac1cb8d3
VS
34214 grep -v '^ *+' conftest.er1 >conftest.err
34215 rm -f conftest.er1
34216 cat conftest.err >&5
a848cd7e
SC
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); } &&
89be85c2
VS
34219 { ac_try='test -z "$ac_c_werror_flag"
34220 || test ! -s conftest.err'
ac1cb8d3
VS
34221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222 (eval $ac_try) 2>&5
34223 ac_status=$?
34224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 (exit $ac_status); }; } &&
34226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34228 (eval $ac_try) 2>&5
34229 ac_status=$?
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); }; }; then
34232
34233 wx_cv_type_pthread_mutexattr_t=yes
34234
34235else
34236 echo "$as_me: failed program was:" >&5
34237sed 's/^/| /' conftest.$ac_ext >&5
34238
34239
34240 wx_cv_type_pthread_mutexattr_t=no
34241
34242
34243fi
ac1cb8d3 34244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34245
34246fi
34247echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34248echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34249
34250 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34251 cat >>confdefs.h <<\_ACEOF
34252#define HAVE_PTHREAD_MUTEXATTR_T 1
34253_ACEOF
34254
34255 else
34256 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34257echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34258if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34259 echo $ECHO_N "(cached) $ECHO_C" >&6
34260else
34261
34262 cat >conftest.$ac_ext <<_ACEOF
34263/* confdefs.h. */
34264_ACEOF
34265cat confdefs.h >>conftest.$ac_ext
34266cat >>conftest.$ac_ext <<_ACEOF
34267/* end confdefs.h. */
34268#include <pthread.h>
34269int
34270main ()
34271{
34272
34273 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34274
34275 ;
34276 return 0;
34277}
34278_ACEOF
34279rm -f conftest.$ac_objext
34280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34281 (eval $ac_compile) 2>conftest.er1
a848cd7e 34282 ac_status=$?
ac1cb8d3
VS
34283 grep -v '^ *+' conftest.er1 >conftest.err
34284 rm -f conftest.er1
34285 cat conftest.err >&5
a848cd7e
SC
34286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287 (exit $ac_status); } &&
89be85c2
VS
34288 { ac_try='test -z "$ac_c_werror_flag"
34289 || test ! -s conftest.err'
ac1cb8d3
VS
34290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34291 (eval $ac_try) 2>&5
34292 ac_status=$?
34293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34294 (exit $ac_status); }; } &&
34295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34297 (eval $ac_try) 2>&5
34298 ac_status=$?
34299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300 (exit $ac_status); }; }; then
34301
34302 wx_cv_type_pthread_rec_mutex_init=yes
34303
34304else
34305 echo "$as_me: failed program was:" >&5
34306sed 's/^/| /' conftest.$ac_ext >&5
34307
34308
34309 wx_cv_type_pthread_rec_mutex_init=no
34310
34311
34312fi
ac1cb8d3 34313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34314
34315fi
34316echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34317echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34318 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34319 cat >>confdefs.h <<\_ACEOF
34320#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34321_ACEOF
34322
34323 else
34324 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34325echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34326 fi
34327 fi
34328 fi
34329
34330else
34331 if test "$wxUSE_THREADS" = "yes" ; then
34332 case "${host}" in
34333 *-*-mingw32* )
34334 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34335echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34336if test "${wx_cv_cflags_mthread+set}" = set; then
34337 echo $ECHO_N "(cached) $ECHO_C" >&6
34338else
34339
34340 CFLAGS_OLD="$CFLAGS"
34341 CFLAGS="$CFLAGS -mthreads"
34342 cat >conftest.$ac_ext <<_ACEOF
34343/* confdefs.h. */
34344_ACEOF
34345cat confdefs.h >>conftest.$ac_ext
34346cat >>conftest.$ac_ext <<_ACEOF
34347/* end confdefs.h. */
34348
34349int
34350main ()
34351{
34352
34353 ;
34354 return 0;
34355}
34356_ACEOF
34357rm -f conftest.$ac_objext
34358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34359 (eval $ac_compile) 2>conftest.er1
a848cd7e 34360 ac_status=$?
ac1cb8d3
VS
34361 grep -v '^ *+' conftest.er1 >conftest.err
34362 rm -f conftest.er1
34363 cat conftest.err >&5
a848cd7e
SC
34364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365 (exit $ac_status); } &&
89be85c2
VS
34366 { ac_try='test -z "$ac_c_werror_flag"
34367 || test ! -s conftest.err'
ac1cb8d3
VS
34368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34369 (eval $ac_try) 2>&5
34370 ac_status=$?
34371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372 (exit $ac_status); }; } &&
34373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34375 (eval $ac_try) 2>&5
34376 ac_status=$?
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); }; }; then
34379 wx_cv_cflags_mthread=yes
34380else
34381 echo "$as_me: failed program was:" >&5
34382sed 's/^/| /' conftest.$ac_ext >&5
34383
34384wx_cv_cflags_mthread=no
34385
34386fi
ac1cb8d3 34387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34388
34389
34390fi
34391echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34392echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34393
34394 if test "$wx_cv_cflags_mthread" = "yes"; then
34395 CXXFLAGS="$CXXFLAGS -mthreads"
34396 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34397 LDFLAGS="$LDFLAGS -mthreads"
34398 else
34399 CFLAGS="$CFLAGS_OLD"
34400 fi
34401 ;;
34402 *-pc-os2*emx )
34403 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34404 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34405 LDFLAGS="$LDFLAGS -Zmt"
34406 ;;
34407 esac
34408 fi
34409fi
34410
34411if test "$wxUSE_THREADS" = "yes"; then
34412 cat >>confdefs.h <<\_ACEOF
34413#define wxUSE_THREADS 1
34414_ACEOF
34415
34416
34417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
34418else
34419 if test "$ac_cv_func_strtok_r" = "yes"; then
34420 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
34421echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
34422 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
34423 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
34424 echo "$as_me:$LINENO: result: yes" >&5
34425echo "${ECHO_T}yes" >&6
34426 else
34427 echo "$as_me:$LINENO: result: no" >&5
34428echo "${ECHO_T}no" >&6
34429 fi
34430 fi
34431fi
34432
34433if test "$WXGTK20" = 1 ; then
34434 cat >>confdefs.h <<_ACEOF
34435#define __WXGTK20__ $WXGTK20
34436_ACEOF
34437
34438 WXGTK12=1
34439fi
34440
34441if test "$WXGTK12" = 1 ; then
34442 cat >>confdefs.h <<_ACEOF
34443#define __WXGTK12__ $WXGTK12
34444_ACEOF
34445
34446fi
34447
34448if test "$WXGTK127" = 1 ; then
34449 cat >>confdefs.h <<_ACEOF
34450#define __WXGTK127__ $WXGTK127
34451_ACEOF
34452
34453fi
34454
34455if test "$WXGPE" = 1 ; then
34456 cat >>confdefs.h <<_ACEOF
34457#define __WXGPE__ $WXGPE
34458_ACEOF
34459
34460fi
34461
34462WXDEBUG=
34463
34464if test "$wxUSE_DEBUG_INFO" = "yes" ; then
34465 WXDEBUG="-g"
34466 wxUSE_OPTIMISE=no
34467fi
34468
34469if test "$wxUSE_DEBUG_GDB" = "yes" ; then
34470 wxUSE_DEBUG_INFO=yes
34471 WXDEBUG="-ggdb"
34472fi
34473
34474if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
34475 cat >>confdefs.h <<\_ACEOF
34476#define WXDEBUG 1
34477_ACEOF
34478
34479 WXDEBUG_DEFINE="-D__WXDEBUG__"
34480else
34481 if test "$wxUSE_GTK" = 1 ; then
34482 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
34483 fi
34484fi
34485
34486if test "$wxUSE_MEM_TRACING" = "yes" ; then
34487 cat >>confdefs.h <<\_ACEOF
34488#define wxUSE_MEMORY_TRACING 1
34489_ACEOF
34490
34491 cat >>confdefs.h <<\_ACEOF
34492#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
34493_ACEOF
34494
34495 cat >>confdefs.h <<\_ACEOF
34496#define wxUSE_DEBUG_NEW_ALWAYS 1
34497_ACEOF
34498
34499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
34500fi
34501
34502if test "$wxUSE_DMALLOC" = "yes" ; then
34503 DMALLOC_LIBS="-ldmalloc"
34504fi
34505
34506PROFILE=
34507if test "$wxUSE_PROFILE" = "yes" ; then
34508 PROFILE=" -pg"
34509fi
34510
34511CODE_GEN_FLAGS=
34512CODE_GEN_FLAGS_CXX=
34513if test "$GCC" = "yes" ; then
34514 if test "$wxUSE_NO_RTTI" = "yes" ; then
34515 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
34516 fi
34517 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
34518 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
34519 fi
34520 if test "$wxUSE_PERMISSIVE" = "yes" ; then
34521 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
34522 fi
34523
34524 case "${host}" in
34525 powerpc*-*-aix* )
34526 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
34527 ;;
34528 *-hppa* )
34529 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
34530 ;;
34531 esac
34532fi
34533
34534OPTIMISE=
34535if test "$wxUSE_OPTIMISE" = "no" ; then
34536 if test "$GCC" = yes ; then
34537 OPTIMISE="-O0"
34538 fi
34539else
34540 if test "$GCC" = yes ; then
34541 OPTIMISE="-O2"
34542
34543 case "${host}" in
34544 i586-*-*|i686-*-* )
34545 OPTIMISE="${OPTIMISE} "
34546 ;;
34547 esac
34548 else
34549 OPTIMISE="-O"
34550 fi
34551fi
34552
34553
34554if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
34555 cat >>confdefs.h <<\_ACEOF
34556#define WXWIN_COMPATIBILITY_2_2 1
34557_ACEOF
34558
34559
34560 WXWIN_COMPATIBILITY_2_4="yes"
34561fi
34562
34563if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
34564 cat >>confdefs.h <<\_ACEOF
34565#define WXWIN_COMPATIBILITY_2_4 1
34566_ACEOF
34567
34568fi
34569
34570
34571if test "$wxUSE_GUI" = "yes"; then
881bfcd6 34572 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
34573#define wxUSE_GUI 1
34574_ACEOF
34575
34576
370fd4c2 34577 fi
a848cd7e
SC
34578
34579
34580if test "$wxUSE_UNIX" = "yes"; then
34581 cat >>confdefs.h <<\_ACEOF
34582#define wxUSE_UNIX 1
34583_ACEOF
34584
34585fi
34586
34587
34588if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34589
34590 HAVE_DL_FUNCS=0
34591 HAVE_SHL_FUNCS=0
34592 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34593 if test "$USE_DARWIN" = 1; then
34594 HAVE_DL_FUNCS=1
34595 else
34596
34597for ac_func in dlopen
34598do
34599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34600echo "$as_me:$LINENO: checking for $ac_func" >&5
34601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34602if eval "test \"\${$as_ac_var+set}\" = set"; then
34603 echo $ECHO_N "(cached) $ECHO_C" >&6
34604else
34605 cat >conftest.$ac_ext <<_ACEOF
34606/* confdefs.h. */
34607_ACEOF
34608cat confdefs.h >>conftest.$ac_ext
34609cat >>conftest.$ac_ext <<_ACEOF
34610/* end confdefs.h. */
ac1cb8d3
VS
34611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34613#define $ac_func innocuous_$ac_func
34614
a848cd7e
SC
34615/* System header to define __stub macros and hopefully few prototypes,
34616 which can conflict with char $ac_func (); below.
34617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34618 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34619
a848cd7e
SC
34620#ifdef __STDC__
34621# include <limits.h>
34622#else
34623# include <assert.h>
34624#endif
ac1cb8d3
VS
34625
34626#undef $ac_func
34627
a848cd7e
SC
34628/* Override any gcc2 internal prototype to avoid an error. */
34629#ifdef __cplusplus
34630extern "C"
34631{
34632#endif
34633/* We use char because int might match the return type of a gcc2
34634 builtin and then its argument prototype would still apply. */
34635char $ac_func ();
34636/* The GNU C library defines this for functions which it implements
34637 to always fail with ENOSYS. Some functions are actually named
34638 something starting with __ and the normal name is an alias. */
34639#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34640choke me
34641#else
34642char (*f) () = $ac_func;
34643#endif
34644#ifdef __cplusplus
34645}
34646#endif
34647
34648int
34649main ()
34650{
34651return f != $ac_func;
34652 ;
34653 return 0;
34654}
34655_ACEOF
34656rm -f conftest.$ac_objext conftest$ac_exeext
34657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34658 (eval $ac_link) 2>conftest.er1
a848cd7e 34659 ac_status=$?
ac1cb8d3
VS
34660 grep -v '^ *+' conftest.er1 >conftest.err
34661 rm -f conftest.er1
34662 cat conftest.err >&5
a848cd7e
SC
34663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34664 (exit $ac_status); } &&
89be85c2
VS
34665 { ac_try='test -z "$ac_c_werror_flag"
34666 || test ! -s conftest.err'
ac1cb8d3
VS
34667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34668 (eval $ac_try) 2>&5
34669 ac_status=$?
34670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671 (exit $ac_status); }; } &&
34672 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34674 (eval $ac_try) 2>&5
34675 ac_status=$?
34676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34677 (exit $ac_status); }; }; then
34678 eval "$as_ac_var=yes"
34679else
34680 echo "$as_me: failed program was:" >&5
34681sed 's/^/| /' conftest.$ac_ext >&5
34682
34683eval "$as_ac_var=no"
34684fi
ac1cb8d3
VS
34685rm -f conftest.err conftest.$ac_objext \
34686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34687fi
34688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34689echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34690if test `eval echo '${'$as_ac_var'}'` = yes; then
34691 cat >>confdefs.h <<_ACEOF
34692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34693_ACEOF
34694
34695 cat >>confdefs.h <<\_ACEOF
34696#define HAVE_DLOPEN 1
34697_ACEOF
34698
34699 HAVE_DL_FUNCS=1
34700
34701else
34702
34703 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34704echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34705if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34706 echo $ECHO_N "(cached) $ECHO_C" >&6
34707else
34708 ac_check_lib_save_LIBS=$LIBS
34709LIBS="-ldl $LIBS"
34710cat >conftest.$ac_ext <<_ACEOF
34711/* confdefs.h. */
34712_ACEOF
34713cat confdefs.h >>conftest.$ac_ext
34714cat >>conftest.$ac_ext <<_ACEOF
34715/* end confdefs.h. */
34716
34717/* Override any gcc2 internal prototype to avoid an error. */
34718#ifdef __cplusplus
34719extern "C"
34720#endif
34721/* We use char because int might match the return type of a gcc2
34722 builtin and then its argument prototype would still apply. */
34723char dlopen ();
34724int
34725main ()
34726{
34727dlopen ();
34728 ;
34729 return 0;
34730}
34731_ACEOF
34732rm -f conftest.$ac_objext conftest$ac_exeext
34733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34734 (eval $ac_link) 2>conftest.er1
a848cd7e 34735 ac_status=$?
ac1cb8d3
VS
34736 grep -v '^ *+' conftest.er1 >conftest.err
34737 rm -f conftest.er1
34738 cat conftest.err >&5
a848cd7e
SC
34739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34740 (exit $ac_status); } &&
89be85c2
VS
34741 { ac_try='test -z "$ac_c_werror_flag"
34742 || test ! -s conftest.err'
ac1cb8d3
VS
34743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34744 (eval $ac_try) 2>&5
34745 ac_status=$?
34746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747 (exit $ac_status); }; } &&
34748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34750 (eval $ac_try) 2>&5
34751 ac_status=$?
34752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753 (exit $ac_status); }; }; then
34754 ac_cv_lib_dl_dlopen=yes
34755else
34756 echo "$as_me: failed program was:" >&5
34757sed 's/^/| /' conftest.$ac_ext >&5
34758
34759ac_cv_lib_dl_dlopen=no
34760fi
ac1cb8d3
VS
34761rm -f conftest.err conftest.$ac_objext \
34762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34763LIBS=$ac_check_lib_save_LIBS
34764fi
34765echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34766echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34767if test $ac_cv_lib_dl_dlopen = yes; then
34768
34769 cat >>confdefs.h <<\_ACEOF
34770#define HAVE_DLOPEN 1
34771_ACEOF
34772
34773 HAVE_DL_FUNCS=1
34774 DL_LINK=" -ldl$DL_LINK"
34775
34776else
34777
34778
34779for ac_func in shl_load
34780do
34781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34782echo "$as_me:$LINENO: checking for $ac_func" >&5
34783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34784if eval "test \"\${$as_ac_var+set}\" = set"; then
34785 echo $ECHO_N "(cached) $ECHO_C" >&6
34786else
34787 cat >conftest.$ac_ext <<_ACEOF
34788/* confdefs.h. */
34789_ACEOF
34790cat confdefs.h >>conftest.$ac_ext
34791cat >>conftest.$ac_ext <<_ACEOF
34792/* end confdefs.h. */
ac1cb8d3
VS
34793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34795#define $ac_func innocuous_$ac_func
34796
a848cd7e
SC
34797/* System header to define __stub macros and hopefully few prototypes,
34798 which can conflict with char $ac_func (); below.
34799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34800 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34801
a848cd7e
SC
34802#ifdef __STDC__
34803# include <limits.h>
34804#else
34805# include <assert.h>
34806#endif
ac1cb8d3
VS
34807
34808#undef $ac_func
34809
a848cd7e
SC
34810/* Override any gcc2 internal prototype to avoid an error. */
34811#ifdef __cplusplus
34812extern "C"
34813{
34814#endif
34815/* We use char because int might match the return type of a gcc2
34816 builtin and then its argument prototype would still apply. */
34817char $ac_func ();
34818/* The GNU C library defines this for functions which it implements
34819 to always fail with ENOSYS. Some functions are actually named
34820 something starting with __ and the normal name is an alias. */
34821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34822choke me
34823#else
34824char (*f) () = $ac_func;
34825#endif
34826#ifdef __cplusplus
34827}
34828#endif
34829
34830int
34831main ()
34832{
34833return f != $ac_func;
34834 ;
34835 return 0;
34836}
34837_ACEOF
34838rm -f conftest.$ac_objext conftest$ac_exeext
34839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34840 (eval $ac_link) 2>conftest.er1
a848cd7e 34841 ac_status=$?
ac1cb8d3
VS
34842 grep -v '^ *+' conftest.er1 >conftest.err
34843 rm -f conftest.er1
34844 cat conftest.err >&5
a848cd7e
SC
34845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846 (exit $ac_status); } &&
89be85c2
VS
34847 { ac_try='test -z "$ac_c_werror_flag"
34848 || test ! -s conftest.err'
ac1cb8d3
VS
34849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34850 (eval $ac_try) 2>&5
34851 ac_status=$?
34852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853 (exit $ac_status); }; } &&
34854 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34856 (eval $ac_try) 2>&5
34857 ac_status=$?
34858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859 (exit $ac_status); }; }; then
34860 eval "$as_ac_var=yes"
34861else
34862 echo "$as_me: failed program was:" >&5
34863sed 's/^/| /' conftest.$ac_ext >&5
34864
34865eval "$as_ac_var=no"
34866fi
ac1cb8d3
VS
34867rm -f conftest.err conftest.$ac_objext \
34868 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34869fi
34870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34871echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34872if test `eval echo '${'$as_ac_var'}'` = yes; then
34873 cat >>confdefs.h <<_ACEOF
34874#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34875_ACEOF
34876
34877 cat >>confdefs.h <<\_ACEOF
34878#define HAVE_SHL_LOAD 1
34879_ACEOF
34880
34881 HAVE_SHL_FUNCS=1
34882
34883else
34884
34885 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34886echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34887if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34888 echo $ECHO_N "(cached) $ECHO_C" >&6
34889else
34890 ac_check_lib_save_LIBS=$LIBS
34891LIBS="-lshl_load $LIBS"
34892cat >conftest.$ac_ext <<_ACEOF
34893/* confdefs.h. */
34894_ACEOF
34895cat confdefs.h >>conftest.$ac_ext
34896cat >>conftest.$ac_ext <<_ACEOF
34897/* end confdefs.h. */
34898
34899/* Override any gcc2 internal prototype to avoid an error. */
34900#ifdef __cplusplus
34901extern "C"
34902#endif
34903/* We use char because int might match the return type of a gcc2
34904 builtin and then its argument prototype would still apply. */
34905char dld ();
34906int
34907main ()
34908{
34909dld ();
34910 ;
34911 return 0;
34912}
34913_ACEOF
34914rm -f conftest.$ac_objext conftest$ac_exeext
34915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34916 (eval $ac_link) 2>conftest.er1
a848cd7e 34917 ac_status=$?
ac1cb8d3
VS
34918 grep -v '^ *+' conftest.er1 >conftest.err
34919 rm -f conftest.er1
34920 cat conftest.err >&5
a848cd7e
SC
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); } &&
89be85c2
VS
34923 { ac_try='test -z "$ac_c_werror_flag"
34924 || test ! -s conftest.err'
ac1cb8d3
VS
34925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34926 (eval $ac_try) 2>&5
34927 ac_status=$?
34928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929 (exit $ac_status); }; } &&
34930 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34932 (eval $ac_try) 2>&5
34933 ac_status=$?
34934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935 (exit $ac_status); }; }; then
34936 ac_cv_lib_shl_load_dld=yes
34937else
34938 echo "$as_me: failed program was:" >&5
34939sed 's/^/| /' conftest.$ac_ext >&5
34940
34941ac_cv_lib_shl_load_dld=no
34942fi
ac1cb8d3
VS
34943rm -f conftest.err conftest.$ac_objext \
34944 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34945LIBS=$ac_check_lib_save_LIBS
34946fi
34947echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34948echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34949if test $ac_cv_lib_shl_load_dld = yes; then
34950
34951 HAVE_SHL_FUNCS=1
34952 DL_LINK=" -ldld$DL_LINK"
34953
34954fi
34955
34956
34957fi
34958done
34959
34960
34961fi
34962
34963
34964fi
34965done
34966
34967
34968 if test "$HAVE_DL_FUNCS" = 1; then
34969
34970for ac_func in dlerror
34971do
34972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34973echo "$as_me:$LINENO: checking for $ac_func" >&5
34974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34975if eval "test \"\${$as_ac_var+set}\" = set"; then
34976 echo $ECHO_N "(cached) $ECHO_C" >&6
34977else
34978 cat >conftest.$ac_ext <<_ACEOF
34979/* confdefs.h. */
34980_ACEOF
34981cat confdefs.h >>conftest.$ac_ext
34982cat >>conftest.$ac_ext <<_ACEOF
34983/* end confdefs.h. */
ac1cb8d3
VS
34984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34986#define $ac_func innocuous_$ac_func
34987
a848cd7e
SC
34988/* System header to define __stub macros and hopefully few prototypes,
34989 which can conflict with char $ac_func (); below.
34990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34991 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34992
a848cd7e
SC
34993#ifdef __STDC__
34994# include <limits.h>
34995#else
34996# include <assert.h>
34997#endif
ac1cb8d3
VS
34998
34999#undef $ac_func
35000
a848cd7e
SC
35001/* Override any gcc2 internal prototype to avoid an error. */
35002#ifdef __cplusplus
35003extern "C"
35004{
35005#endif
35006/* We use char because int might match the return type of a gcc2
35007 builtin and then its argument prototype would still apply. */
35008char $ac_func ();
35009/* The GNU C library defines this for functions which it implements
35010 to always fail with ENOSYS. Some functions are actually named
35011 something starting with __ and the normal name is an alias. */
35012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35013choke me
35014#else
35015char (*f) () = $ac_func;
35016#endif
35017#ifdef __cplusplus
35018}
35019#endif
35020
35021int
35022main ()
35023{
35024return f != $ac_func;
35025 ;
35026 return 0;
35027}
35028_ACEOF
35029rm -f conftest.$ac_objext conftest$ac_exeext
35030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35031 (eval $ac_link) 2>conftest.er1
a848cd7e 35032 ac_status=$?
ac1cb8d3
VS
35033 grep -v '^ *+' conftest.er1 >conftest.err
35034 rm -f conftest.er1
35035 cat conftest.err >&5
a848cd7e
SC
35036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037 (exit $ac_status); } &&
89be85c2
VS
35038 { ac_try='test -z "$ac_c_werror_flag"
35039 || test ! -s conftest.err'
ac1cb8d3
VS
35040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35041 (eval $ac_try) 2>&5
35042 ac_status=$?
35043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044 (exit $ac_status); }; } &&
35045 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35047 (eval $ac_try) 2>&5
35048 ac_status=$?
35049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050 (exit $ac_status); }; }; then
35051 eval "$as_ac_var=yes"
35052else
35053 echo "$as_me: failed program was:" >&5
35054sed 's/^/| /' conftest.$ac_ext >&5
35055
35056eval "$as_ac_var=no"
35057fi
ac1cb8d3
VS
35058rm -f conftest.err conftest.$ac_objext \
35059 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35060fi
35061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35063if test `eval echo '${'$as_ac_var'}'` = yes; then
35064 cat >>confdefs.h <<_ACEOF
35065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35066_ACEOF
35067 cat >>confdefs.h <<\_ACEOF
35068#define HAVE_DLERROR 1
35069_ACEOF
35070
35071else
35072
35073 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35074echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35075if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35076 echo $ECHO_N "(cached) $ECHO_C" >&6
35077else
35078 ac_check_lib_save_LIBS=$LIBS
35079LIBS="-ldl $LIBS"
35080cat >conftest.$ac_ext <<_ACEOF
35081/* confdefs.h. */
35082_ACEOF
35083cat confdefs.h >>conftest.$ac_ext
35084cat >>conftest.$ac_ext <<_ACEOF
35085/* end confdefs.h. */
35086
35087/* Override any gcc2 internal prototype to avoid an error. */
35088#ifdef __cplusplus
35089extern "C"
35090#endif
35091/* We use char because int might match the return type of a gcc2
35092 builtin and then its argument prototype would still apply. */
35093char dlerror ();
35094int
35095main ()
35096{
35097dlerror ();
35098 ;
35099 return 0;
35100}
35101_ACEOF
35102rm -f conftest.$ac_objext conftest$ac_exeext
35103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35104 (eval $ac_link) 2>conftest.er1
a848cd7e 35105 ac_status=$?
ac1cb8d3
VS
35106 grep -v '^ *+' conftest.er1 >conftest.err
35107 rm -f conftest.er1
35108 cat conftest.err >&5
a848cd7e
SC
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); } &&
89be85c2
VS
35111 { ac_try='test -z "$ac_c_werror_flag"
35112 || test ! -s conftest.err'
ac1cb8d3
VS
35113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35114 (eval $ac_try) 2>&5
35115 ac_status=$?
35116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); }; } &&
35118 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35120 (eval $ac_try) 2>&5
35121 ac_status=$?
35122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35123 (exit $ac_status); }; }; then
35124 ac_cv_lib_dl_dlerror=yes
35125else
35126 echo "$as_me: failed program was:" >&5
35127sed 's/^/| /' conftest.$ac_ext >&5
35128
35129ac_cv_lib_dl_dlerror=no
35130fi
ac1cb8d3
VS
35131rm -f conftest.err conftest.$ac_objext \
35132 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35133LIBS=$ac_check_lib_save_LIBS
35134fi
35135echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35136echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35137if test $ac_cv_lib_dl_dlerror = yes; then
35138 cat >>confdefs.h <<\_ACEOF
35139#define HAVE_DLERROR 1
35140_ACEOF
35141
35142fi
35143
35144
35145
35146fi
35147done
35148
35149 fi
35150 fi
35151
35152 if test "$HAVE_DL_FUNCS" = 0; then
35153 if test "$HAVE_SHL_FUNCS" = 0; then
35154 if test "$USE_UNIX" = 1; then
35155 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35156echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35157 wxUSE_DYNAMIC_LOADER=no
35158 wxUSE_DYNLIB_CLASS=no
35159 else
35160 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35161echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35162 fi
35163 fi
35164 fi
35165 fi
35166fi
35167
35168if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35169 cat >>confdefs.h <<\_ACEOF
35170#define wxUSE_DYNAMIC_LOADER 1
35171_ACEOF
35172
35173fi
35174if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35175 cat >>confdefs.h <<\_ACEOF
35176#define wxUSE_DYNLIB_CLASS 1
35177_ACEOF
35178
35179fi
35180
35181
35182
35183if test "$wxUSE_PLUGINS" = "yes" ; then
35184 if test "$wxUSE_SHARED" = "no" ; then
35185 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35186echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35187 wxUSE_PLUGINS=no
35188 fi
35189 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35190 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35191echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35192 wxUSE_PLUGINS=no
35193 fi
35194 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35195 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35196echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35197 wxUSE_PLUGINS=no
35198 fi
35199 if test "$wxUSE_PLUGINS" = "yes" ; then
35200 cat >>confdefs.h <<\_ACEOF
35201#define wxUSE_PLUGINS 1
35202_ACEOF
35203
35204 fi
35205fi
35206
35207
35208if test "$wxUSE_STL" = "yes"; then
35209 cat >>confdefs.h <<\_ACEOF
35210#define wxUSE_STL 1
35211_ACEOF
35212
35213fi
35214
35215if test "$wxUSE_APPLE_IEEE" = "yes"; then
35216 cat >>confdefs.h <<\_ACEOF
35217#define wxUSE_APPLE_IEEE 1
35218_ACEOF
35219
35220fi
35221
35222if test "$wxUSE_TIMER" = "yes"; then
35223 cat >>confdefs.h <<\_ACEOF
35224#define wxUSE_TIMER 1
35225_ACEOF
35226
35227fi
35228
35229WITH_PLUGIN_SDL=0
35230if test "$wxUSE_SOUND" = "yes"; then
35231 if test "$USE_UNIX" = "1" ; then
35232
35233for ac_header in sys/soundcard.h
35234do
35235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35236if eval "test \"\${$as_ac_Header+set}\" = set"; then
35237 echo "$as_me:$LINENO: checking for $ac_header" >&5
35238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35239if eval "test \"\${$as_ac_Header+set}\" = set"; then
35240 echo $ECHO_N "(cached) $ECHO_C" >&6
35241fi
35242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35244else
35245 # Is the header compilable?
35246echo "$as_me:$LINENO: checking $ac_header usability" >&5
35247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35248cat >conftest.$ac_ext <<_ACEOF
35249/* confdefs.h. */
35250_ACEOF
35251cat confdefs.h >>conftest.$ac_ext
35252cat >>conftest.$ac_ext <<_ACEOF
35253/* end confdefs.h. */
35254$ac_includes_default
35255#include <$ac_header>
35256_ACEOF
35257rm -f conftest.$ac_objext
35258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35259 (eval $ac_compile) 2>conftest.er1
a848cd7e 35260 ac_status=$?
ac1cb8d3
VS
35261 grep -v '^ *+' conftest.er1 >conftest.err
35262 rm -f conftest.er1
35263 cat conftest.err >&5
a848cd7e
SC
35264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265 (exit $ac_status); } &&
89be85c2
VS
35266 { ac_try='test -z "$ac_c_werror_flag"
35267 || test ! -s conftest.err'
ac1cb8d3
VS
35268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35269 (eval $ac_try) 2>&5
35270 ac_status=$?
35271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); }; } &&
35273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35275 (eval $ac_try) 2>&5
35276 ac_status=$?
35277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278 (exit $ac_status); }; }; then
35279 ac_header_compiler=yes
35280else
35281 echo "$as_me: failed program was:" >&5
35282sed 's/^/| /' conftest.$ac_ext >&5
35283
35284ac_header_compiler=no
35285fi
ac1cb8d3 35286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35288echo "${ECHO_T}$ac_header_compiler" >&6
35289
35290# Is the header present?
35291echo "$as_me:$LINENO: checking $ac_header presence" >&5
35292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35293cat >conftest.$ac_ext <<_ACEOF
35294/* confdefs.h. */
35295_ACEOF
35296cat confdefs.h >>conftest.$ac_ext
35297cat >>conftest.$ac_ext <<_ACEOF
35298/* end confdefs.h. */
35299#include <$ac_header>
35300_ACEOF
35301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35303 ac_status=$?
35304 grep -v '^ *+' conftest.er1 >conftest.err
35305 rm -f conftest.er1
35306 cat conftest.err >&5
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); } >/dev/null; then
35309 if test -s conftest.err; then
35310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35312 else
35313 ac_cpp_err=
35314 fi
35315else
35316 ac_cpp_err=yes
35317fi
35318if test -z "$ac_cpp_err"; then
35319 ac_header_preproc=yes
35320else
35321 echo "$as_me: failed program was:" >&5
35322sed 's/^/| /' conftest.$ac_ext >&5
35323
35324 ac_header_preproc=no
35325fi
35326rm -f conftest.err conftest.$ac_ext
35327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35328echo "${ECHO_T}$ac_header_preproc" >&6
35329
35330# So? What about this header?
ac1cb8d3
VS
35331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35332 yes:no: )
a848cd7e
SC
35333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35337 ac_header_preproc=yes
a848cd7e 35338 ;;
ac1cb8d3 35339 no:yes:* )
a848cd7e
SC
35340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35352 (
35353 cat <<\_ASBOX
ac1cb8d3
VS
35354## ----------------------------------------- ##
35355## Report this to wx-dev@lists.wxwidgets.org ##
35356## ----------------------------------------- ##
a848cd7e
SC
35357_ASBOX
35358 ) |
35359 sed "s/^/$as_me: WARNING: /" >&2
35360 ;;
35361esac
35362echo "$as_me:$LINENO: checking for $ac_header" >&5
35363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35364if eval "test \"\${$as_ac_Header+set}\" = set"; then
35365 echo $ECHO_N "(cached) $ECHO_C" >&6
35366else
ac1cb8d3 35367 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35368fi
35369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35371
35372fi
35373if test `eval echo '${'$as_ac_Header'}'` = yes; then
35374 cat >>confdefs.h <<_ACEOF
35375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35376_ACEOF
35377
35378fi
35379
35380done
35381
35382
35383 if test "$wxUSE_LIBSDL" != "no"; then
35384
35385# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35386if test "${with_sdl_prefix+set}" = set; then
35387 withval="$with_sdl_prefix"
35388 sdl_prefix="$withval"
35389else
35390 sdl_prefix=""
35391fi;
35392
35393# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35394if test "${with_sdl_exec_prefix+set}" = set; then
35395 withval="$with_sdl_exec_prefix"
35396 sdl_exec_prefix="$withval"
35397else
35398 sdl_exec_prefix=""
35399fi;
35400# Check whether --enable-sdltest or --disable-sdltest was given.
35401if test "${enable_sdltest+set}" = set; then
35402 enableval="$enable_sdltest"
35403
35404else
35405 enable_sdltest=yes
35406fi;
35407
35408 if test x$sdl_exec_prefix != x ; then
35409 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35410 if test x${SDL_CONFIG+set} != xset ; then
35411 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35412 fi
35413 fi
35414 if test x$sdl_prefix != x ; then
35415 sdl_args="$sdl_args --prefix=$sdl_prefix"
35416 if test x${SDL_CONFIG+set} != xset ; then
35417 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35418 fi
35419 fi
35420
35421
35422 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
35423 # Extract the first word of "sdl-config", so it can be a program name with args.
35424set dummy sdl-config; ac_word=$2
35425echo "$as_me:$LINENO: checking for $ac_word" >&5
35426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35427if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
35428 echo $ECHO_N "(cached) $ECHO_C" >&6
35429else
35430 case $SDL_CONFIG in
35431 [\\/]* | ?:[\\/]*)
35432 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
35433 ;;
35434 *)
35435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35436for as_dir in $PATH
35437do
35438 IFS=$as_save_IFS
35439 test -z "$as_dir" && as_dir=.
35440 for ac_exec_ext in '' $ac_executable_extensions; do
35441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35442 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35444 break 2
35445 fi
35446done
35447done
35448
35449 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
35450 ;;
35451esac
35452fi
35453SDL_CONFIG=$ac_cv_path_SDL_CONFIG
35454
35455if test -n "$SDL_CONFIG"; then
35456 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
35457echo "${ECHO_T}$SDL_CONFIG" >&6
35458else
35459 echo "$as_me:$LINENO: result: no" >&5
35460echo "${ECHO_T}no" >&6
35461fi
35462
35463 min_sdl_version=1.2.0
35464 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
35465echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
35466 no_sdl=""
35467 if test "$SDL_CONFIG" = "no" ; then
35468 no_sdl=yes
35469 else
35470 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
35471 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
35472
35473 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
35474 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
35475 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
35476 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
35477 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
35478 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
35479 if test "x$enable_sdltest" = "xyes" ; then
35480 ac_save_CFLAGS="$CFLAGS"
94acd38e 35481 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
35482 ac_save_LIBS="$LIBS"
35483 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 35484 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
35485 LIBS="$LIBS $SDL_LIBS"
35486 rm -f conf.sdltest
35487 if test "$cross_compiling" = yes; then
35488 echo $ac_n "cross compiling; assumed OK... $ac_c"
35489else
35490 cat >conftest.$ac_ext <<_ACEOF
35491/* confdefs.h. */
35492_ACEOF
35493cat confdefs.h >>conftest.$ac_ext
35494cat >>conftest.$ac_ext <<_ACEOF
35495/* end confdefs.h. */
35496
35497#include <stdio.h>
35498#include <stdlib.h>
35499#include <string.h>
35500#include "SDL.h"
35501
35502char*
35503my_strdup (char *str)
35504{
35505 char *new_str;
35506
35507 if (str)
35508 {
35509 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
35510 strcpy (new_str, str);
35511 }
35512 else
35513 new_str = NULL;
35514
35515 return new_str;
35516}
35517
35518int main (int argc, char *argv[])
35519{
35520 int major, minor, micro;
35521 char *tmp_version;
35522
35523 /* This hangs on some systems (?)
35524 system ("touch conf.sdltest");
35525 */
35526 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
35527
35528 /* HP/UX 9 (%@#!) writes to sscanf strings */
35529 tmp_version = my_strdup("$min_sdl_version");
35530 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
35531 printf("%s, bad version string\n", "$min_sdl_version");
35532 exit(1);
35533 }
35534
35535 if (($sdl_major_version > major) ||
35536 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
35537 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
35538 {
35539 return 0;
35540 }
35541 else
35542 {
35543 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
35544 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
35545 printf("*** best to upgrade to the required version.\n");
35546 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
35547 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
35548 printf("*** config.cache before re-running configure\n");
35549 return 1;
35550 }
35551}
35552
35553
35554_ACEOF
35555rm -f conftest$ac_exeext
35556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35557 (eval $ac_link) 2>&5
35558 ac_status=$?
35559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35562 (eval $ac_try) 2>&5
35563 ac_status=$?
35564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35565 (exit $ac_status); }; }; then
35566 :
35567else
35568 echo "$as_me: program exited with status $ac_status" >&5
35569echo "$as_me: failed program was:" >&5
35570sed 's/^/| /' conftest.$ac_ext >&5
35571
35572( exit $ac_status )
35573no_sdl=yes
35574fi
ac1cb8d3 35575rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35576fi
35577 CFLAGS="$ac_save_CFLAGS"
94acd38e 35578 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
35579 LIBS="$ac_save_LIBS"
35580 fi
35581 fi
35582 if test "x$no_sdl" = x ; then
35583 echo "$as_me:$LINENO: result: yes" >&5
35584echo "${ECHO_T}yes" >&6
35585
35586 EXTRALIBS_SDL="$SDL_LIBS"
35587 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
35588 cat >>confdefs.h <<\_ACEOF
35589#define wxUSE_LIBSDL 1
35590_ACEOF
35591
35592
35593 else
35594 echo "$as_me:$LINENO: result: no" >&5
35595echo "${ECHO_T}no" >&6
35596 if test "$SDL_CONFIG" = "no" ; then
35597 echo "*** The sdl-config script installed by SDL could not be found"
35598 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35599 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35600 echo "*** full path to sdl-config."
35601 else
35602 if test -f conf.sdltest ; then
35603 :
35604 else
35605 echo "*** Could not run SDL test program, checking why..."
35606 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 35607 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
35608 LIBS="$LIBS $SDL_LIBS"
35609 cat >conftest.$ac_ext <<_ACEOF
35610/* confdefs.h. */
35611_ACEOF
35612cat confdefs.h >>conftest.$ac_ext
35613cat >>conftest.$ac_ext <<_ACEOF
35614/* end confdefs.h. */
35615
35616#include <stdio.h>
35617#include "SDL.h"
35618
35619int main(int argc, char *argv[])
35620{ return 0; }
35621#undef main
35622#define main K_and_R_C_main
35623
35624int
35625main ()
35626{
35627 return 0;
35628 ;
35629 return 0;
35630}
35631_ACEOF
35632rm -f conftest.$ac_objext conftest$ac_exeext
35633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35634 (eval $ac_link) 2>conftest.er1
a848cd7e 35635 ac_status=$?
ac1cb8d3
VS
35636 grep -v '^ *+' conftest.er1 >conftest.err
35637 rm -f conftest.er1
35638 cat conftest.err >&5
a848cd7e
SC
35639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640 (exit $ac_status); } &&
89be85c2
VS
35641 { ac_try='test -z "$ac_c_werror_flag"
35642 || test ! -s conftest.err'
ac1cb8d3
VS
35643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35644 (eval $ac_try) 2>&5
35645 ac_status=$?
35646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35647 (exit $ac_status); }; } &&
35648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35650 (eval $ac_try) 2>&5
35651 ac_status=$?
35652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653 (exit $ac_status); }; }; then
35654 echo "*** The test program compiled, but did not run. This usually means"
35655 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35656 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35657 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35658 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35659 echo "*** is required on your system"
35660 echo "***"
35661 echo "*** If you have an old version installed, it is best to remove it, although"
35662 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35663else
35664 echo "$as_me: failed program was:" >&5
35665sed 's/^/| /' conftest.$ac_ext >&5
35666
35667 echo "*** The test program failed to compile or link. See the file config.log for the"
35668 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35669 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35670 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35671fi
ac1cb8d3
VS
35672rm -f conftest.err conftest.$ac_objext \
35673 conftest$ac_exeext conftest.$ac_ext
a848cd7e 35674 CFLAGS="$ac_save_CFLAGS"
94acd38e 35675 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
35676 LIBS="$ac_save_LIBS"
35677 fi
35678 fi
35679 SDL_CFLAGS=""
35680 SDL_LIBS=""
35681 wxUSE_LIBSDL="no"
35682 fi
35683
35684
35685 rm -f conf.sdltest
35686
35687 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35688 WITH_PLUGIN_SDL=1
35689 fi
35690 fi
35691 fi
35692
35693 cat >>confdefs.h <<\_ACEOF
35694#define wxUSE_SOUND 1
35695_ACEOF
35696
35697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35698fi
35699
d1c38808
VZ
35700if test "$WXGTK20" = 1; then
35701 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35702 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
35703
35704
35705 succeeded=no
35706
35707 if test -z "$PKG_CONFIG"; then
35708 # Extract the first word of "pkg-config", so it can be a program name with args.
35709set dummy pkg-config; ac_word=$2
35710echo "$as_me:$LINENO: checking for $ac_word" >&5
35711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35712if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35713 echo $ECHO_N "(cached) $ECHO_C" >&6
35714else
35715 case $PKG_CONFIG in
35716 [\\/]* | ?:[\\/]*)
35717 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35718 ;;
35719 *)
35720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35721for as_dir in $PATH
35722do
35723 IFS=$as_save_IFS
35724 test -z "$as_dir" && as_dir=.
35725 for ac_exec_ext in '' $ac_executable_extensions; do
35726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35727 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35729 break 2
35730 fi
35731done
35732done
35733
35734 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
35735 ;;
35736esac
35737fi
35738PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35739
35740if test -n "$PKG_CONFIG"; then
35741 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35742echo "${ECHO_T}$PKG_CONFIG" >&6
35743else
35744 echo "$as_me:$LINENO: result: no" >&5
35745echo "${ECHO_T}no" >&6
35746fi
35747
35748 fi
35749
35750 if test "$PKG_CONFIG" = "no" ; then
35751 echo "*** The pkg-config script could not be found. Make sure it is"
35752 echo "*** in your path, or set the PKG_CONFIG environment variable"
35753 echo "*** to the full path to pkg-config."
35754 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
35755 else
35756 PKG_CONFIG_MIN_VERSION=0.9.0
35757 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
35758 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
35759echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 35760
ffa762ff 35761 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
35762 echo "$as_me:$LINENO: result: yes" >&5
35763echo "${ECHO_T}yes" >&6
35764 succeeded=yes
35765
35766 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
35767echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 35768 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35769 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
35770echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
35771
35772 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
35773echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 35774 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35775 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
35776echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
35777 else
35778 LIBGNOMEPRINTUI_CFLAGS=""
35779 LIBGNOMEPRINTUI_LIBS=""
35780 ## If we have a custom action on failure, don't print errors, but
35781 ## do set a variable so people can do so.
ffa762ff 35782 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35783
35784 fi
35785
35786
35787
35788 else
35789 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35790 echo "*** See http://www.freedesktop.org/software/pkgconfig"
35791 fi
35792 fi
35793
35794 if test $succeeded = yes; then
35795
d1c38808
VZ
35796 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35797 cat >>confdefs.h <<\_ACEOF
35798#define wxUSE_LIBGNOMEPRINT 1
35799_ACEOF
35800
35801
35802 else
35803
35804 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35805echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35806 wxUSE_LIBGNOMEPRINT="no"
35807
35808
35809 fi
35810
35811 fi
35812 fi
35813fi
35814
35815
a848cd7e
SC
35816if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35817 cat >>confdefs.h <<\_ACEOF
35818#define wxUSE_CMDLINE_PARSER 1
35819_ACEOF
35820
35821fi
35822
35823if test "$wxUSE_STOPWATCH" = "yes"; then
35824 cat >>confdefs.h <<\_ACEOF
35825#define wxUSE_STOPWATCH 1
35826_ACEOF
35827
35828fi
35829
35830if test "$wxUSE_DATETIME" = "yes"; then
35831 cat >>confdefs.h <<\_ACEOF
35832#define wxUSE_DATETIME 1
35833_ACEOF
35834
35835fi
35836
35837if test "$wxUSE_FILE" = "yes"; then
35838 cat >>confdefs.h <<\_ACEOF
35839#define wxUSE_FILE 1
35840_ACEOF
35841
35842fi
35843
35844if test "$wxUSE_FFILE" = "yes"; then
35845 cat >>confdefs.h <<\_ACEOF
35846#define wxUSE_FFILE 1
35847_ACEOF
35848
35849fi
35850
35851if test "$wxUSE_FILESYSTEM" = "yes"; then
35852 cat >>confdefs.h <<\_ACEOF
35853#define wxUSE_FILESYSTEM 1
35854_ACEOF
35855
35856fi
35857
35858if test "$wxUSE_FS_ZIP" = "yes"; then
35859 cat >>confdefs.h <<\_ACEOF
35860#define wxUSE_FS_ZIP 1
35861_ACEOF
35862
35863fi
35864
9e8e867f 35865if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 35866 cat >>confdefs.h <<\_ACEOF
9e8e867f 35867#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
35868_ACEOF
35869
35870fi
35871
35872if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 35873 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
35874 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
35875echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
35876 elif test "$wxUSE_ZLIB" = "no"; then
35877 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
35878echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
35879 else
35880 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35881#define wxUSE_ZIPSTREAM 1
35882_ACEOF
35883
81f90336 35884 fi
a848cd7e
SC
35885fi
35886
a848cd7e
SC
35887if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35888 cat >>confdefs.h <<\_ACEOF
35889#define wxUSE_ON_FATAL_EXCEPTION 1
35890_ACEOF
35891
35892fi
35893
eaff0f0d
VZ
35894if test "$wxUSE_STACKWALKER" = "yes"; then
35895 cat >>confdefs.h <<\_ACEOF
35896#define wxUSE_STACKWALKER 1
35897_ACEOF
35898
35899fi
35900
a848cd7e
SC
35901if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35902 cat >>confdefs.h <<\_ACEOF
35903#define wxUSE_SNGLINST_CHECKER 1
35904_ACEOF
35905
35906fi
35907
35908if test "$wxUSE_BUSYINFO" = "yes"; then
35909 cat >>confdefs.h <<\_ACEOF
35910#define wxUSE_BUSYINFO 1
35911_ACEOF
35912
35913fi
35914
35915if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35916 cat >>confdefs.h <<\_ACEOF
35917#define wxUSE_STD_IOSTREAM 1
35918_ACEOF
35919
35920fi
35921
35922if test "$wxUSE_TEXTBUFFER" = "yes"; then
35923 cat >>confdefs.h <<\_ACEOF
35924#define wxUSE_TEXTBUFFER 1
35925_ACEOF
35926
35927fi
35928
35929if test "$wxUSE_TEXTFILE" = "yes"; then
35930 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35931 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35932echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35933 else
35934 cat >>confdefs.h <<\_ACEOF
35935#define wxUSE_TEXTFILE 1
35936_ACEOF
35937
35938 fi
35939fi
35940
35941if test "$wxUSE_CONFIG" = "yes" ; then
35942 if test "$wxUSE_TEXTFILE" != "yes"; then
35943 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35944echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35945 else
35946 cat >>confdefs.h <<\_ACEOF
35947#define wxUSE_CONFIG 1
89be85c2
VS
35948_ACEOF
35949
35950 cat >>confdefs.h <<\_ACEOF
35951#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
35952_ACEOF
35953
35954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35955 fi
35956fi
35957
35958if test "$wxUSE_INTL" = "yes" ; then
35959 if test "$wxUSE_FILE" != "yes"; then
35960 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35961echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35962 else
35963 cat >>confdefs.h <<\_ACEOF
35964#define wxUSE_INTL 1
35965_ACEOF
35966
35967 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35968 GUIDIST="$GUIDIST INTL_DIST"
35969 fi
35970fi
35971
35972if test "$wxUSE_LOG" = "yes"; then
35973 cat >>confdefs.h <<\_ACEOF
35974#define wxUSE_LOG 1
35975_ACEOF
35976
35977
35978 if test "$wxUSE_LOGGUI" = "yes"; then
35979 cat >>confdefs.h <<\_ACEOF
35980#define wxUSE_LOGGUI 1
35981_ACEOF
35982
35983 fi
35984
35985 if test "$wxUSE_LOGWINDOW" = "yes"; then
35986 cat >>confdefs.h <<\_ACEOF
35987#define wxUSE_LOGWINDOW 1
35988_ACEOF
35989
35990 fi
35991
35992 if test "$wxUSE_LOGDIALOG" = "yes"; then
35993 cat >>confdefs.h <<\_ACEOF
35994#define wxUSE_LOG_DIALOG 1
35995_ACEOF
35996
35997 fi
35998fi
35999
36000if test "$wxUSE_LONGLONG" = "yes"; then
36001 cat >>confdefs.h <<\_ACEOF
36002#define wxUSE_LONGLONG 1
36003_ACEOF
36004
36005fi
36006
36007if test "$wxUSE_GEOMETRY" = "yes"; then
36008 cat >>confdefs.h <<\_ACEOF
36009#define wxUSE_GEOMETRY 1
36010_ACEOF
36011
36012fi
36013
a848cd7e
SC
36014if test "$wxUSE_STREAMS" = "yes" ; then
36015 cat >>confdefs.h <<\_ACEOF
36016#define wxUSE_STREAMS 1
36017_ACEOF
36018
36019fi
36020
36021
36022if test "$wxUSE_DATETIME" = "yes"; then
36023
36024for ac_func in strptime
36025do
36026as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36027echo "$as_me:$LINENO: checking for $ac_func" >&5
36028echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36029if eval "test \"\${$as_ac_var+set}\" = set"; then
36030 echo $ECHO_N "(cached) $ECHO_C" >&6
36031else
36032 cat >conftest.$ac_ext <<_ACEOF
36033/* confdefs.h. */
36034_ACEOF
36035cat confdefs.h >>conftest.$ac_ext
36036cat >>conftest.$ac_ext <<_ACEOF
36037/* end confdefs.h. */
ac1cb8d3
VS
36038/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36040#define $ac_func innocuous_$ac_func
36041
a848cd7e
SC
36042/* System header to define __stub macros and hopefully few prototypes,
36043 which can conflict with char $ac_func (); below.
36044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36045 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36046
a848cd7e
SC
36047#ifdef __STDC__
36048# include <limits.h>
36049#else
36050# include <assert.h>
36051#endif
ac1cb8d3
VS
36052
36053#undef $ac_func
36054
a848cd7e
SC
36055/* Override any gcc2 internal prototype to avoid an error. */
36056#ifdef __cplusplus
36057extern "C"
36058{
36059#endif
36060/* We use char because int might match the return type of a gcc2
36061 builtin and then its argument prototype would still apply. */
36062char $ac_func ();
36063/* The GNU C library defines this for functions which it implements
36064 to always fail with ENOSYS. Some functions are actually named
36065 something starting with __ and the normal name is an alias. */
36066#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36067choke me
36068#else
36069char (*f) () = $ac_func;
36070#endif
36071#ifdef __cplusplus
36072}
36073#endif
36074
36075int
36076main ()
36077{
36078return f != $ac_func;
36079 ;
36080 return 0;
36081}
36082_ACEOF
36083rm -f conftest.$ac_objext conftest$ac_exeext
36084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36085 (eval $ac_link) 2>conftest.er1
a848cd7e 36086 ac_status=$?
ac1cb8d3
VS
36087 grep -v '^ *+' conftest.er1 >conftest.err
36088 rm -f conftest.er1
36089 cat conftest.err >&5
a848cd7e
SC
36090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36091 (exit $ac_status); } &&
89be85c2
VS
36092 { ac_try='test -z "$ac_c_werror_flag"
36093 || test ! -s conftest.err'
ac1cb8d3
VS
36094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36095 (eval $ac_try) 2>&5
36096 ac_status=$?
36097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); }; } &&
36099 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36101 (eval $ac_try) 2>&5
36102 ac_status=$?
36103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104 (exit $ac_status); }; }; then
36105 eval "$as_ac_var=yes"
36106else
36107 echo "$as_me: failed program was:" >&5
36108sed 's/^/| /' conftest.$ac_ext >&5
36109
36110eval "$as_ac_var=no"
36111fi
ac1cb8d3
VS
36112rm -f conftest.err conftest.$ac_objext \
36113 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36114fi
36115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36116echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36117if test `eval echo '${'$as_ac_var'}'` = yes; then
36118 cat >>confdefs.h <<_ACEOF
36119#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36120_ACEOF
36121
36122fi
36123done
36124
36125
36126 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36127echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36128if test "${wx_cv_var_timezone+set}" = set; then
36129 echo $ECHO_N "(cached) $ECHO_C" >&6
36130else
36131
36132 cat >conftest.$ac_ext <<_ACEOF
36133/* confdefs.h. */
36134_ACEOF
36135cat confdefs.h >>conftest.$ac_ext
36136cat >>conftest.$ac_ext <<_ACEOF
36137/* end confdefs.h. */
36138
36139 #include <time.h>
36140
36141int
36142main ()
36143{
36144
36145 int tz;
36146 tz = timezone;
36147
36148 ;
36149 return 0;
36150}
36151_ACEOF
36152rm -f conftest.$ac_objext
36153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36154 (eval $ac_compile) 2>conftest.er1
a848cd7e 36155 ac_status=$?
ac1cb8d3
VS
36156 grep -v '^ *+' conftest.er1 >conftest.err
36157 rm -f conftest.er1
36158 cat conftest.err >&5
a848cd7e
SC
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); } &&
89be85c2
VS
36161 { ac_try='test -z "$ac_c_werror_flag"
36162 || test ! -s conftest.err'
ac1cb8d3
VS
36163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36164 (eval $ac_try) 2>&5
36165 ac_status=$?
36166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167 (exit $ac_status); }; } &&
36168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36170 (eval $ac_try) 2>&5
36171 ac_status=$?
36172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); }; }; then
36174
36175 wx_cv_var_timezone=timezone
36176
36177else
36178 echo "$as_me: failed program was:" >&5
36179sed 's/^/| /' conftest.$ac_ext >&5
36180
36181
36182 cat >conftest.$ac_ext <<_ACEOF
36183/* confdefs.h. */
36184_ACEOF
36185cat confdefs.h >>conftest.$ac_ext
36186cat >>conftest.$ac_ext <<_ACEOF
36187/* end confdefs.h. */
36188
36189 #include <time.h>
36190
36191int
36192main ()
36193{
36194
36195 int tz;
36196 tz = _timezone;
36197
36198 ;
36199 return 0;
36200}
36201_ACEOF
36202rm -f conftest.$ac_objext
36203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36204 (eval $ac_compile) 2>conftest.er1
a848cd7e 36205 ac_status=$?
ac1cb8d3
VS
36206 grep -v '^ *+' conftest.er1 >conftest.err
36207 rm -f conftest.er1
36208 cat conftest.err >&5
a848cd7e
SC
36209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210 (exit $ac_status); } &&
89be85c2
VS
36211 { ac_try='test -z "$ac_c_werror_flag"
36212 || test ! -s conftest.err'
ac1cb8d3
VS
36213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36214 (eval $ac_try) 2>&5
36215 ac_status=$?
36216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36217 (exit $ac_status); }; } &&
36218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36220 (eval $ac_try) 2>&5
36221 ac_status=$?
36222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36223 (exit $ac_status); }; }; then
36224
36225 wx_cv_var_timezone=_timezone
36226
36227else
36228 echo "$as_me: failed program was:" >&5
36229sed 's/^/| /' conftest.$ac_ext >&5
36230
36231
36232 cat >conftest.$ac_ext <<_ACEOF
36233/* confdefs.h. */
36234_ACEOF
36235cat confdefs.h >>conftest.$ac_ext
36236cat >>conftest.$ac_ext <<_ACEOF
36237/* end confdefs.h. */
36238
36239 #include <time.h>
36240
36241int
36242main ()
36243{
36244
36245 int tz;
36246 tz = __timezone;
36247
36248 ;
36249 return 0;
36250}
36251_ACEOF
36252rm -f conftest.$ac_objext
36253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36254 (eval $ac_compile) 2>conftest.er1
a848cd7e 36255 ac_status=$?
ac1cb8d3
VS
36256 grep -v '^ *+' conftest.er1 >conftest.err
36257 rm -f conftest.er1
36258 cat conftest.err >&5
a848cd7e
SC
36259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260 (exit $ac_status); } &&
89be85c2
VS
36261 { ac_try='test -z "$ac_c_werror_flag"
36262 || test ! -s conftest.err'
ac1cb8d3
VS
36263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36264 (eval $ac_try) 2>&5
36265 ac_status=$?
36266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36267 (exit $ac_status); }; } &&
36268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36270 (eval $ac_try) 2>&5
36271 ac_status=$?
36272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273 (exit $ac_status); }; }; then
36274
36275 wx_cv_var_timezone=__timezone
36276
36277else
36278 echo "$as_me: failed program was:" >&5
36279sed 's/^/| /' conftest.$ac_ext >&5
36280
36281
36282 if test "$USE_DOS" = 0 ; then
36283 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36284echo "$as_me: WARNING: no timezone variable" >&2;}
36285 fi
36286
36287
36288fi
ac1cb8d3 36289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36290
36291
36292fi
ac1cb8d3 36293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36294
36295
36296fi
ac1cb8d3 36297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36298
36299
36300fi
36301echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36302echo "${ECHO_T}$wx_cv_var_timezone" >&6
36303
36304 if test "x$wx_cv_var_timezone" != x ; then
36305 cat >>confdefs.h <<_ACEOF
36306#define WX_TIMEZONE $wx_cv_var_timezone
36307_ACEOF
36308
36309 fi
36310
36311
36312for ac_func in localtime
36313do
36314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36315echo "$as_me:$LINENO: checking for $ac_func" >&5
36316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36317if eval "test \"\${$as_ac_var+set}\" = set"; then
36318 echo $ECHO_N "(cached) $ECHO_C" >&6
36319else
36320 cat >conftest.$ac_ext <<_ACEOF
36321/* confdefs.h. */
36322_ACEOF
36323cat confdefs.h >>conftest.$ac_ext
36324cat >>conftest.$ac_ext <<_ACEOF
36325/* end confdefs.h. */
ac1cb8d3
VS
36326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36328#define $ac_func innocuous_$ac_func
36329
a848cd7e
SC
36330/* System header to define __stub macros and hopefully few prototypes,
36331 which can conflict with char $ac_func (); below.
36332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36333 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36334
a848cd7e
SC
36335#ifdef __STDC__
36336# include <limits.h>
36337#else
36338# include <assert.h>
36339#endif
ac1cb8d3
VS
36340
36341#undef $ac_func
36342
a848cd7e
SC
36343/* Override any gcc2 internal prototype to avoid an error. */
36344#ifdef __cplusplus
36345extern "C"
36346{
36347#endif
36348/* We use char because int might match the return type of a gcc2
36349 builtin and then its argument prototype would still apply. */
36350char $ac_func ();
36351/* The GNU C library defines this for functions which it implements
36352 to always fail with ENOSYS. Some functions are actually named
36353 something starting with __ and the normal name is an alias. */
36354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36355choke me
36356#else
36357char (*f) () = $ac_func;
36358#endif
36359#ifdef __cplusplus
36360}
36361#endif
36362
36363int
36364main ()
36365{
36366return f != $ac_func;
36367 ;
36368 return 0;
36369}
36370_ACEOF
36371rm -f conftest.$ac_objext conftest$ac_exeext
36372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36373 (eval $ac_link) 2>conftest.er1
a848cd7e 36374 ac_status=$?
ac1cb8d3
VS
36375 grep -v '^ *+' conftest.er1 >conftest.err
36376 rm -f conftest.er1
36377 cat conftest.err >&5
a848cd7e
SC
36378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36379 (exit $ac_status); } &&
89be85c2
VS
36380 { ac_try='test -z "$ac_c_werror_flag"
36381 || test ! -s conftest.err'
ac1cb8d3
VS
36382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36383 (eval $ac_try) 2>&5
36384 ac_status=$?
36385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386 (exit $ac_status); }; } &&
36387 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36389 (eval $ac_try) 2>&5
36390 ac_status=$?
36391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392 (exit $ac_status); }; }; then
36393 eval "$as_ac_var=yes"
36394else
36395 echo "$as_me: failed program was:" >&5
36396sed 's/^/| /' conftest.$ac_ext >&5
36397
36398eval "$as_ac_var=no"
36399fi
ac1cb8d3
VS
36400rm -f conftest.err conftest.$ac_objext \
36401 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36402fi
36403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36404echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36405if test `eval echo '${'$as_ac_var'}'` = yes; then
36406 cat >>confdefs.h <<_ACEOF
36407#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36408_ACEOF
36409
36410fi
36411done
36412
36413
36414 if test "$ac_cv_func_localtime" = "yes"; then
36415 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
36416echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
36417if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
36418 echo $ECHO_N "(cached) $ECHO_C" >&6
36419else
36420
36421 cat >conftest.$ac_ext <<_ACEOF
36422/* confdefs.h. */
36423_ACEOF
36424cat confdefs.h >>conftest.$ac_ext
36425cat >>conftest.$ac_ext <<_ACEOF
36426/* end confdefs.h. */
36427
36428 #include <time.h>
36429
36430int
36431main ()
36432{
36433
36434 struct tm tm;
36435 tm.tm_gmtoff++;
36436
36437 ;
36438 return 0;
36439}
36440_ACEOF
36441rm -f conftest.$ac_objext
36442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36443 (eval $ac_compile) 2>conftest.er1
a848cd7e 36444 ac_status=$?
ac1cb8d3
VS
36445 grep -v '^ *+' conftest.er1 >conftest.err
36446 rm -f conftest.er1
36447 cat conftest.err >&5
a848cd7e
SC
36448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36449 (exit $ac_status); } &&
89be85c2
VS
36450 { ac_try='test -z "$ac_c_werror_flag"
36451 || test ! -s conftest.err'
ac1cb8d3
VS
36452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36453 (eval $ac_try) 2>&5
36454 ac_status=$?
36455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456 (exit $ac_status); }; } &&
36457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36459 (eval $ac_try) 2>&5
36460 ac_status=$?
36461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462 (exit $ac_status); }; }; then
36463
36464 wx_cv_struct_tm_has_gmtoff=yes
36465
36466else
36467 echo "$as_me: failed program was:" >&5
36468sed 's/^/| /' conftest.$ac_ext >&5
36469
36470wx_cv_struct_tm_has_gmtoff=no
36471
36472fi
ac1cb8d3 36473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36474
36475fi
36476echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
36477echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
36478 fi
36479
36480 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
36481 cat >>confdefs.h <<\_ACEOF
36482#define WX_GMTOFF_IN_TM 1
36483_ACEOF
36484
36485 fi
36486
36487
36488
36489for ac_func in gettimeofday ftime
36490do
36491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36492echo "$as_me:$LINENO: checking for $ac_func" >&5
36493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36494if eval "test \"\${$as_ac_var+set}\" = set"; then
36495 echo $ECHO_N "(cached) $ECHO_C" >&6
36496else
36497 cat >conftest.$ac_ext <<_ACEOF
36498/* confdefs.h. */
36499_ACEOF
36500cat confdefs.h >>conftest.$ac_ext
36501cat >>conftest.$ac_ext <<_ACEOF
36502/* end confdefs.h. */
ac1cb8d3
VS
36503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36505#define $ac_func innocuous_$ac_func
36506
a848cd7e
SC
36507/* System header to define __stub macros and hopefully few prototypes,
36508 which can conflict with char $ac_func (); below.
36509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36510 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36511
a848cd7e
SC
36512#ifdef __STDC__
36513# include <limits.h>
36514#else
36515# include <assert.h>
36516#endif
ac1cb8d3
VS
36517
36518#undef $ac_func
36519
a848cd7e
SC
36520/* Override any gcc2 internal prototype to avoid an error. */
36521#ifdef __cplusplus
36522extern "C"
36523{
36524#endif
36525/* We use char because int might match the return type of a gcc2
36526 builtin and then its argument prototype would still apply. */
36527char $ac_func ();
36528/* The GNU C library defines this for functions which it implements
36529 to always fail with ENOSYS. Some functions are actually named
36530 something starting with __ and the normal name is an alias. */
36531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36532choke me
36533#else
36534char (*f) () = $ac_func;
36535#endif
36536#ifdef __cplusplus
36537}
36538#endif
36539
36540int
36541main ()
36542{
36543return f != $ac_func;
36544 ;
36545 return 0;
36546}
36547_ACEOF
36548rm -f conftest.$ac_objext conftest$ac_exeext
36549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36550 (eval $ac_link) 2>conftest.er1
a848cd7e 36551 ac_status=$?
ac1cb8d3
VS
36552 grep -v '^ *+' conftest.er1 >conftest.err
36553 rm -f conftest.er1
36554 cat conftest.err >&5
a848cd7e
SC
36555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556 (exit $ac_status); } &&
89be85c2
VS
36557 { ac_try='test -z "$ac_c_werror_flag"
36558 || test ! -s conftest.err'
ac1cb8d3
VS
36559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36560 (eval $ac_try) 2>&5
36561 ac_status=$?
36562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36563 (exit $ac_status); }; } &&
36564 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36566 (eval $ac_try) 2>&5
36567 ac_status=$?
36568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36569 (exit $ac_status); }; }; then
36570 eval "$as_ac_var=yes"
36571else
36572 echo "$as_me: failed program was:" >&5
36573sed 's/^/| /' conftest.$ac_ext >&5
36574
36575eval "$as_ac_var=no"
36576fi
ac1cb8d3
VS
36577rm -f conftest.err conftest.$ac_objext \
36578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36579fi
36580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36581echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36582if test `eval echo '${'$as_ac_var'}'` = yes; then
36583 cat >>confdefs.h <<_ACEOF
36584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36585_ACEOF
36586 break
36587fi
36588done
36589
36590
36591 if test "$ac_cv_func_gettimeofday" = "yes"; then
36592 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
36593echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
36594if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
36595 echo $ECHO_N "(cached) $ECHO_C" >&6
36596else
36597
36598
36599
36600 ac_ext=cc
36601ac_cpp='$CXXCPP $CPPFLAGS'
36602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36605
36606
36607 cat >conftest.$ac_ext <<_ACEOF
36608/* confdefs.h. */
36609_ACEOF
36610cat confdefs.h >>conftest.$ac_ext
36611cat >>conftest.$ac_ext <<_ACEOF
36612/* end confdefs.h. */
36613
36614 #include <sys/time.h>
36615 #include <unistd.h>
36616
36617int
36618main ()
36619{
36620
36621 struct timeval tv;
36622 gettimeofday(&tv, NULL);
36623
36624 ;
36625 return 0;
36626}
36627_ACEOF
36628rm -f conftest.$ac_objext
36629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36630 (eval $ac_compile) 2>conftest.er1
a848cd7e 36631 ac_status=$?
ac1cb8d3
VS
36632 grep -v '^ *+' conftest.er1 >conftest.err
36633 rm -f conftest.er1
36634 cat conftest.err >&5
a848cd7e
SC
36635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36636 (exit $ac_status); } &&
89be85c2
VS
36637 { ac_try='test -z "$ac_cxx_werror_flag"
36638 || test ! -s conftest.err'
ac1cb8d3
VS
36639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36640 (eval $ac_try) 2>&5
36641 ac_status=$?
36642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); }; } &&
36644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36646 (eval $ac_try) 2>&5
36647 ac_status=$?
36648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36649 (exit $ac_status); }; }; then
36650 wx_cv_func_gettimeofday_has_2_args=yes
36651else
36652 echo "$as_me: failed program was:" >&5
36653sed 's/^/| /' conftest.$ac_ext >&5
36654
36655cat >conftest.$ac_ext <<_ACEOF
36656/* confdefs.h. */
36657_ACEOF
36658cat confdefs.h >>conftest.$ac_ext
36659cat >>conftest.$ac_ext <<_ACEOF
36660/* end confdefs.h. */
36661
36662 #include <sys/time.h>
36663 #include <unistd.h>
36664
36665int
36666main ()
36667{
36668
36669 struct timeval tv;
36670 gettimeofday(&tv);
36671
36672 ;
36673 return 0;
36674}
36675_ACEOF
36676rm -f conftest.$ac_objext
36677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36678 (eval $ac_compile) 2>conftest.er1
a848cd7e 36679 ac_status=$?
ac1cb8d3
VS
36680 grep -v '^ *+' conftest.er1 >conftest.err
36681 rm -f conftest.er1
36682 cat conftest.err >&5
a848cd7e
SC
36683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36684 (exit $ac_status); } &&
89be85c2
VS
36685 { ac_try='test -z "$ac_cxx_werror_flag"
36686 || test ! -s conftest.err'
ac1cb8d3
VS
36687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36688 (eval $ac_try) 2>&5
36689 ac_status=$?
36690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691 (exit $ac_status); }; } &&
36692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36694 (eval $ac_try) 2>&5
36695 ac_status=$?
36696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697 (exit $ac_status); }; }; then
36698 wx_cv_func_gettimeofday_has_2_args=no
36699else
36700 echo "$as_me: failed program was:" >&5
36701sed 's/^/| /' conftest.$ac_ext >&5
36702
36703
36704 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36705echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36706 wx_cv_func_gettimeofday_has_2_args=unknown
36707
36708
36709fi
ac1cb8d3 36710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36711
36712fi
ac1cb8d3 36713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36714 ac_ext=c
36715ac_cpp='$CPP $CPPFLAGS'
36716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36718ac_compiler_gnu=$ac_cv_c_compiler_gnu
36719
36720
36721fi
36722echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36723echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36724
36725 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36726 cat >>confdefs.h <<\_ACEOF
36727#define WX_GETTIMEOFDAY_NO_TZ 1
36728_ACEOF
36729
36730 fi
36731 fi
36732
36733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36734fi
36735
36736
36737if test "$wxUSE_SOCKETS" = "yes"; then
36738 if test "$wxUSE_MGL" = "1"; then
36739 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36740echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36741 wxUSE_SOCKETS="no"
36742 fi
36743fi
36744
36745if test "$wxUSE_SOCKETS" = "yes"; then
36746 if test "$TOOLKIT" != "MSW"; then
36747 echo "$as_me:$LINENO: checking for socket" >&5
36748echo $ECHO_N "checking for socket... $ECHO_C" >&6
36749if test "${ac_cv_func_socket+set}" = set; then
36750 echo $ECHO_N "(cached) $ECHO_C" >&6
36751else
36752 cat >conftest.$ac_ext <<_ACEOF
36753/* confdefs.h. */
36754_ACEOF
36755cat confdefs.h >>conftest.$ac_ext
36756cat >>conftest.$ac_ext <<_ACEOF
36757/* end confdefs.h. */
ac1cb8d3
VS
36758/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36760#define socket innocuous_socket
36761
a848cd7e
SC
36762/* System header to define __stub macros and hopefully few prototypes,
36763 which can conflict with char socket (); below.
36764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36765 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36766
a848cd7e
SC
36767#ifdef __STDC__
36768# include <limits.h>
36769#else
36770# include <assert.h>
36771#endif
ac1cb8d3
VS
36772
36773#undef socket
36774
a848cd7e
SC
36775/* Override any gcc2 internal prototype to avoid an error. */
36776#ifdef __cplusplus
36777extern "C"
36778{
36779#endif
36780/* We use char because int might match the return type of a gcc2
36781 builtin and then its argument prototype would still apply. */
36782char socket ();
36783/* The GNU C library defines this for functions which it implements
36784 to always fail with ENOSYS. Some functions are actually named
36785 something starting with __ and the normal name is an alias. */
36786#if defined (__stub_socket) || defined (__stub___socket)
36787choke me
36788#else
36789char (*f) () = socket;
36790#endif
36791#ifdef __cplusplus
36792}
36793#endif
36794
36795int
36796main ()
36797{
36798return f != socket;
36799 ;
36800 return 0;
36801}
36802_ACEOF
36803rm -f conftest.$ac_objext conftest$ac_exeext
36804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36805 (eval $ac_link) 2>conftest.er1
a848cd7e 36806 ac_status=$?
ac1cb8d3
VS
36807 grep -v '^ *+' conftest.er1 >conftest.err
36808 rm -f conftest.er1
36809 cat conftest.err >&5
a848cd7e
SC
36810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36811 (exit $ac_status); } &&
89be85c2
VS
36812 { ac_try='test -z "$ac_c_werror_flag"
36813 || test ! -s conftest.err'
ac1cb8d3
VS
36814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36815 (eval $ac_try) 2>&5
36816 ac_status=$?
36817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818 (exit $ac_status); }; } &&
36819 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36821 (eval $ac_try) 2>&5
36822 ac_status=$?
36823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824 (exit $ac_status); }; }; then
36825 ac_cv_func_socket=yes
36826else
36827 echo "$as_me: failed program was:" >&5
36828sed 's/^/| /' conftest.$ac_ext >&5
36829
36830ac_cv_func_socket=no
36831fi
ac1cb8d3
VS
36832rm -f conftest.err conftest.$ac_objext \
36833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36834fi
36835echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36836echo "${ECHO_T}$ac_cv_func_socket" >&6
36837if test $ac_cv_func_socket = yes; then
36838 :
36839else
36840
36841 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36842echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36843if test "${ac_cv_lib_socket_socket+set}" = set; then
36844 echo $ECHO_N "(cached) $ECHO_C" >&6
36845else
36846 ac_check_lib_save_LIBS=$LIBS
36847LIBS="-lsocket $LIBS"
36848cat >conftest.$ac_ext <<_ACEOF
36849/* confdefs.h. */
36850_ACEOF
36851cat confdefs.h >>conftest.$ac_ext
36852cat >>conftest.$ac_ext <<_ACEOF
36853/* end confdefs.h. */
36854
36855/* Override any gcc2 internal prototype to avoid an error. */
36856#ifdef __cplusplus
36857extern "C"
36858#endif
36859/* We use char because int might match the return type of a gcc2
36860 builtin and then its argument prototype would still apply. */
36861char socket ();
36862int
36863main ()
36864{
36865socket ();
36866 ;
36867 return 0;
36868}
36869_ACEOF
36870rm -f conftest.$ac_objext conftest$ac_exeext
36871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36872 (eval $ac_link) 2>conftest.er1
a848cd7e 36873 ac_status=$?
ac1cb8d3
VS
36874 grep -v '^ *+' conftest.er1 >conftest.err
36875 rm -f conftest.er1
36876 cat conftest.err >&5
a848cd7e
SC
36877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36878 (exit $ac_status); } &&
89be85c2
VS
36879 { ac_try='test -z "$ac_c_werror_flag"
36880 || test ! -s conftest.err'
ac1cb8d3
VS
36881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36882 (eval $ac_try) 2>&5
36883 ac_status=$?
36884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885 (exit $ac_status); }; } &&
36886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36888 (eval $ac_try) 2>&5
36889 ac_status=$?
36890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891 (exit $ac_status); }; }; then
36892 ac_cv_lib_socket_socket=yes
36893else
36894 echo "$as_me: failed program was:" >&5
36895sed 's/^/| /' conftest.$ac_ext >&5
36896
36897ac_cv_lib_socket_socket=no
36898fi
ac1cb8d3
VS
36899rm -f conftest.err conftest.$ac_objext \
36900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36901LIBS=$ac_check_lib_save_LIBS
36902fi
36903echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36904echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36905if test $ac_cv_lib_socket_socket = yes; then
36906 if test "$INET_LINK" != " -lsocket"; then
36907 INET_LINK="$INET_LINK -lsocket"
36908 fi
36909else
36910
36911 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36912echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36913 wxUSE_SOCKETS=no
36914
36915
36916fi
36917
36918
36919
36920fi
36921
36922 fi
36923fi
36924
36925if test "$wxUSE_SOCKETS" = "yes" ; then
36926 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36927 ac_ext=cc
36928ac_cpp='$CXXCPP $CPPFLAGS'
36929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36932
36933 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36934echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36935if test "${wx_cv_type_getsockname3+set}" = set; then
36936 echo $ECHO_N "(cached) $ECHO_C" >&6
36937else
36938
36939 cat >conftest.$ac_ext <<_ACEOF
36940/* confdefs.h. */
36941_ACEOF
36942cat confdefs.h >>conftest.$ac_ext
36943cat >>conftest.$ac_ext <<_ACEOF
36944/* end confdefs.h. */
36945
36946 #include <sys/types.h>
36947 #include <sys/socket.h>
36948
36949int
36950main ()
36951{
36952
36953 socklen_t len;
36954 getsockname(0, 0, &len);
36955
36956 ;
36957 return 0;
36958}
36959_ACEOF
36960rm -f conftest.$ac_objext
36961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36962 (eval $ac_compile) 2>conftest.er1
a848cd7e 36963 ac_status=$?
ac1cb8d3
VS
36964 grep -v '^ *+' conftest.er1 >conftest.err
36965 rm -f conftest.er1
36966 cat conftest.err >&5
a848cd7e
SC
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); } &&
89be85c2
VS
36969 { ac_try='test -z "$ac_cxx_werror_flag"
36970 || test ! -s conftest.err'
ac1cb8d3
VS
36971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36972 (eval $ac_try) 2>&5
36973 ac_status=$?
36974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975 (exit $ac_status); }; } &&
36976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978 (eval $ac_try) 2>&5
36979 ac_status=$?
36980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981 (exit $ac_status); }; }; then
36982 wx_cv_type_getsockname3=socklen_t
36983else
36984 echo "$as_me: failed program was:" >&5
36985sed 's/^/| /' conftest.$ac_ext >&5
36986
36987
36988 CFLAGS_OLD="$CFLAGS"
36989 if test "$GCC" = yes ; then
36990 CFLAGS="$CFLAGS -Werror"
36991 fi
36992
36993 cat >conftest.$ac_ext <<_ACEOF
36994/* confdefs.h. */
36995_ACEOF
36996cat confdefs.h >>conftest.$ac_ext
36997cat >>conftest.$ac_ext <<_ACEOF
36998/* end confdefs.h. */
36999
37000 #include <sys/types.h>
37001 #include <sys/socket.h>
37002
37003int
37004main ()
37005{
37006
37007 size_t len;
37008 getsockname(0, 0, &len);
37009
37010 ;
37011 return 0;
37012}
37013_ACEOF
37014rm -f conftest.$ac_objext
37015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37016 (eval $ac_compile) 2>conftest.er1
a848cd7e 37017 ac_status=$?
ac1cb8d3
VS
37018 grep -v '^ *+' conftest.er1 >conftest.err
37019 rm -f conftest.er1
37020 cat conftest.err >&5
a848cd7e
SC
37021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022 (exit $ac_status); } &&
89be85c2
VS
37023 { ac_try='test -z "$ac_cxx_werror_flag"
37024 || test ! -s conftest.err'
ac1cb8d3
VS
37025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37026 (eval $ac_try) 2>&5
37027 ac_status=$?
37028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37029 (exit $ac_status); }; } &&
37030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37032 (eval $ac_try) 2>&5
37033 ac_status=$?
37034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37035 (exit $ac_status); }; }; then
37036 wx_cv_type_getsockname3=size_t
37037else
37038 echo "$as_me: failed program was:" >&5
37039sed 's/^/| /' conftest.$ac_ext >&5
37040
37041cat >conftest.$ac_ext <<_ACEOF
37042/* confdefs.h. */
37043_ACEOF
37044cat confdefs.h >>conftest.$ac_ext
37045cat >>conftest.$ac_ext <<_ACEOF
37046/* end confdefs.h. */
37047
37048 #include <sys/types.h>
37049 #include <sys/socket.h>
37050
37051int
37052main ()
37053{
37054
37055 int len;
37056 getsockname(0, 0, &len);
37057
37058 ;
37059 return 0;
37060}
37061_ACEOF
37062rm -f conftest.$ac_objext
37063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37064 (eval $ac_compile) 2>conftest.er1
a848cd7e 37065 ac_status=$?
ac1cb8d3
VS
37066 grep -v '^ *+' conftest.er1 >conftest.err
37067 rm -f conftest.er1
37068 cat conftest.err >&5
a848cd7e
SC
37069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37070 (exit $ac_status); } &&
89be85c2
VS
37071 { ac_try='test -z "$ac_cxx_werror_flag"
37072 || test ! -s conftest.err'
ac1cb8d3
VS
37073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37074 (eval $ac_try) 2>&5
37075 ac_status=$?
37076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37077 (exit $ac_status); }; } &&
37078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37080 (eval $ac_try) 2>&5
37081 ac_status=$?
37082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083 (exit $ac_status); }; }; then
37084 wx_cv_type_getsockname3=int
37085else
37086 echo "$as_me: failed program was:" >&5
37087sed 's/^/| /' conftest.$ac_ext >&5
37088
37089wx_cv_type_getsockname3=unknown
37090
37091fi
ac1cb8d3 37092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37093
37094fi
ac1cb8d3 37095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37096
37097 CFLAGS="$CFLAGS_OLD"
37098
37099
37100fi
ac1cb8d3 37101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37102
37103fi
37104echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37105echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37106
37107 if test "$wx_cv_type_getsockname3" = "unknown"; then
37108 wxUSE_SOCKETS=no
37109 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37110echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37111 else
37112 cat >>confdefs.h <<_ACEOF
37113#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37114_ACEOF
37115
37116 fi
37117 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37118echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37119if test "${wx_cv_type_getsockopt5+set}" = set; then
37120 echo $ECHO_N "(cached) $ECHO_C" >&6
37121else
37122
37123 cat >conftest.$ac_ext <<_ACEOF
37124/* confdefs.h. */
37125_ACEOF
37126cat confdefs.h >>conftest.$ac_ext
37127cat >>conftest.$ac_ext <<_ACEOF
37128/* end confdefs.h. */
37129
37130 #include <sys/types.h>
37131 #include <sys/socket.h>
37132
37133int
37134main ()
37135{
37136
37137 socklen_t len;
37138 getsockopt(0, 0, 0, 0, &len);
37139
37140 ;
37141 return 0;
37142}
37143_ACEOF
37144rm -f conftest.$ac_objext
37145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37146 (eval $ac_compile) 2>conftest.er1
37147 ac_status=$?
37148 grep -v '^ *+' conftest.er1 >conftest.err
37149 rm -f conftest.er1
37150 cat conftest.err >&5
37151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37152 (exit $ac_status); } &&
89be85c2
VS
37153 { ac_try='test -z "$ac_cxx_werror_flag"
37154 || test ! -s conftest.err'
5b674b9d
DE
37155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37156 (eval $ac_try) 2>&5
37157 ac_status=$?
37158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37159 (exit $ac_status); }; } &&
37160 { ac_try='test -s conftest.$ac_objext'
37161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37162 (eval $ac_try) 2>&5
37163 ac_status=$?
37164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37165 (exit $ac_status); }; }; then
37166 wx_cv_type_getsockopt5=socklen_t
37167else
37168 echo "$as_me: failed program was:" >&5
37169sed 's/^/| /' conftest.$ac_ext >&5
37170
37171
37172 CFLAGS_OLD="$CFLAGS"
37173 if test "$GCC" = yes ; then
37174 CFLAGS="$CFLAGS -Werror"
37175 fi
37176
37177 cat >conftest.$ac_ext <<_ACEOF
37178/* confdefs.h. */
37179_ACEOF
37180cat confdefs.h >>conftest.$ac_ext
37181cat >>conftest.$ac_ext <<_ACEOF
37182/* end confdefs.h. */
37183
37184 #include <sys/types.h>
37185 #include <sys/socket.h>
37186
37187int
37188main ()
37189{
37190
37191 size_t len;
37192 getsockopt(0, 0, 0, 0, &len);
37193
37194 ;
37195 return 0;
37196}
37197_ACEOF
37198rm -f conftest.$ac_objext
37199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37200 (eval $ac_compile) 2>conftest.er1
37201 ac_status=$?
37202 grep -v '^ *+' conftest.er1 >conftest.err
37203 rm -f conftest.er1
37204 cat conftest.err >&5
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); } &&
89be85c2
VS
37207 { ac_try='test -z "$ac_cxx_werror_flag"
37208 || test ! -s conftest.err'
5b674b9d
DE
37209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210 (eval $ac_try) 2>&5
37211 ac_status=$?
37212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213 (exit $ac_status); }; } &&
37214 { ac_try='test -s conftest.$ac_objext'
37215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37216 (eval $ac_try) 2>&5
37217 ac_status=$?
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); }; }; then
37220 wx_cv_type_getsockopt5=size_t
37221else
37222 echo "$as_me: failed program was:" >&5
37223sed 's/^/| /' conftest.$ac_ext >&5
37224
37225cat >conftest.$ac_ext <<_ACEOF
37226/* confdefs.h. */
37227_ACEOF
37228cat confdefs.h >>conftest.$ac_ext
37229cat >>conftest.$ac_ext <<_ACEOF
37230/* end confdefs.h. */
37231
37232 #include <sys/types.h>
37233 #include <sys/socket.h>
37234
37235int
37236main ()
37237{
37238
37239 int len;
37240 getsockopt(0, 0, 0, 0, &len);
37241
37242 ;
37243 return 0;
37244}
37245_ACEOF
37246rm -f conftest.$ac_objext
37247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37248 (eval $ac_compile) 2>conftest.er1
37249 ac_status=$?
37250 grep -v '^ *+' conftest.er1 >conftest.err
37251 rm -f conftest.er1
37252 cat conftest.err >&5
37253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37254 (exit $ac_status); } &&
89be85c2
VS
37255 { ac_try='test -z "$ac_cxx_werror_flag"
37256 || test ! -s conftest.err'
5b674b9d
DE
37257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37258 (eval $ac_try) 2>&5
37259 ac_status=$?
37260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261 (exit $ac_status); }; } &&
37262 { ac_try='test -s conftest.$ac_objext'
37263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37264 (eval $ac_try) 2>&5
37265 ac_status=$?
37266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37267 (exit $ac_status); }; }; then
37268 wx_cv_type_getsockopt5=int
37269else
37270 echo "$as_me: failed program was:" >&5
37271sed 's/^/| /' conftest.$ac_ext >&5
37272
37273wx_cv_type_getsockopt5=unknown
37274
37275fi
37276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37277
37278fi
37279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37280
37281 CFLAGS="$CFLAGS_OLD"
37282
37283
37284fi
37285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37286
37287fi
37288echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37289echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37290
37291 if test "$wx_cv_type_getsockopt5" = "unknown"; then
37292 wxUSE_SOCKETS=no
37293 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37294echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37295 else
37296 cat >>confdefs.h <<_ACEOF
37297#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
37298_ACEOF
37299
37300 fi
4d4ff94c
VZ
37301 ac_ext=c
37302ac_cpp='$CPP $CPPFLAGS'
37303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37305ac_compiler_gnu=$ac_cv_c_compiler_gnu
37306
a848cd7e
SC
37307 fi
37308fi
37309
37310if test "$wxUSE_SOCKETS" = "yes" ; then
37311 cat >>confdefs.h <<\_ACEOF
37312#define wxUSE_SOCKETS 1
37313_ACEOF
37314
37315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37316fi
37317
37318if test "$wxUSE_PROTOCOL" = "yes"; then
37319 if test "$wxUSE_SOCKETS" != "yes"; then
37320 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37321echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37322 wxUSE_PROTOCOL=no
37323 fi
37324fi
37325
37326if test "$wxUSE_PROTOCOL" = "yes"; then
37327 cat >>confdefs.h <<\_ACEOF
37328#define wxUSE_PROTOCOL 1
37329_ACEOF
37330
37331
37332 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37333 cat >>confdefs.h <<\_ACEOF
37334#define wxUSE_PROTOCOL_HTTP 1
37335_ACEOF
37336
37337 fi
37338 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37339 cat >>confdefs.h <<\_ACEOF
37340#define wxUSE_PROTOCOL_FTP 1
37341_ACEOF
37342
37343 fi
37344 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37345 cat >>confdefs.h <<\_ACEOF
37346#define wxUSE_PROTOCOL_FILE 1
37347_ACEOF
37348
37349 fi
37350else
37351 if test "$wxUSE_FS_INET" = "yes"; then
37352 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37353echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37354 wxUSE_FS_INET="no"
37355 fi
37356fi
37357
37358if test "$wxUSE_URL" = "yes"; then
37359 if test "$wxUSE_PROTOCOL" != "yes"; then
37360 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
37361echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
37362 wxUSE_URL=no
37363 fi
37364 if test "$wxUSE_URL" = "yes"; then
37365 cat >>confdefs.h <<\_ACEOF
37366#define wxUSE_URL 1
37367_ACEOF
37368
37369 fi
37370fi
37371
37372if test "$wxUSE_FS_INET" = "yes"; then
37373 cat >>confdefs.h <<\_ACEOF
37374#define wxUSE_FS_INET 1
37375_ACEOF
37376
37377fi
37378
37379
37380if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 37381 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 37382
4cb1d3da 37383 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
37384
37385for ac_header in linux/joystick.h
37386do
37387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37388if eval "test \"\${$as_ac_Header+set}\" = set"; then
37389 echo "$as_me:$LINENO: checking for $ac_header" >&5
37390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37391if eval "test \"\${$as_ac_Header+set}\" = set"; then
37392 echo $ECHO_N "(cached) $ECHO_C" >&6
37393fi
37394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37396else
37397 # Is the header compilable?
37398echo "$as_me:$LINENO: checking $ac_header usability" >&5
37399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37400cat >conftest.$ac_ext <<_ACEOF
37401/* confdefs.h. */
37402_ACEOF
37403cat confdefs.h >>conftest.$ac_ext
37404cat >>conftest.$ac_ext <<_ACEOF
37405/* end confdefs.h. */
37406$ac_includes_default
37407#include <$ac_header>
37408_ACEOF
37409rm -f conftest.$ac_objext
37410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37411 (eval $ac_compile) 2>conftest.er1
a848cd7e 37412 ac_status=$?
ac1cb8d3
VS
37413 grep -v '^ *+' conftest.er1 >conftest.err
37414 rm -f conftest.er1
37415 cat conftest.err >&5
a848cd7e
SC
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); } &&
89be85c2
VS
37418 { ac_try='test -z "$ac_c_werror_flag"
37419 || test ! -s conftest.err'
ac1cb8d3
VS
37420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37421 (eval $ac_try) 2>&5
37422 ac_status=$?
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); }; } &&
37425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37427 (eval $ac_try) 2>&5
37428 ac_status=$?
37429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430 (exit $ac_status); }; }; then
37431 ac_header_compiler=yes
37432else
37433 echo "$as_me: failed program was:" >&5
37434sed 's/^/| /' conftest.$ac_ext >&5
37435
37436ac_header_compiler=no
37437fi
ac1cb8d3 37438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37440echo "${ECHO_T}$ac_header_compiler" >&6
37441
37442# Is the header present?
37443echo "$as_me:$LINENO: checking $ac_header presence" >&5
37444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37445cat >conftest.$ac_ext <<_ACEOF
37446/* confdefs.h. */
37447_ACEOF
37448cat confdefs.h >>conftest.$ac_ext
37449cat >>conftest.$ac_ext <<_ACEOF
37450/* end confdefs.h. */
37451#include <$ac_header>
37452_ACEOF
37453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37455 ac_status=$?
37456 grep -v '^ *+' conftest.er1 >conftest.err
37457 rm -f conftest.er1
37458 cat conftest.err >&5
37459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460 (exit $ac_status); } >/dev/null; then
37461 if test -s conftest.err; then
37462 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37464 else
37465 ac_cpp_err=
37466 fi
37467else
37468 ac_cpp_err=yes
37469fi
37470if test -z "$ac_cpp_err"; then
37471 ac_header_preproc=yes
37472else
37473 echo "$as_me: failed program was:" >&5
37474sed 's/^/| /' conftest.$ac_ext >&5
37475
37476 ac_header_preproc=no
37477fi
37478rm -f conftest.err conftest.$ac_ext
37479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37480echo "${ECHO_T}$ac_header_preproc" >&6
37481
37482# So? What about this header?
ac1cb8d3
VS
37483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37484 yes:no: )
a848cd7e
SC
37485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37489 ac_header_preproc=yes
a848cd7e 37490 ;;
ac1cb8d3 37491 no:yes:* )
a848cd7e
SC
37492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37504 (
37505 cat <<\_ASBOX
ac1cb8d3
VS
37506## ----------------------------------------- ##
37507## Report this to wx-dev@lists.wxwidgets.org ##
37508## ----------------------------------------- ##
a848cd7e
SC
37509_ASBOX
37510 ) |
37511 sed "s/^/$as_me: WARNING: /" >&2
37512 ;;
37513esac
37514echo "$as_me:$LINENO: checking for $ac_header" >&5
37515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37516if eval "test \"\${$as_ac_Header+set}\" = set"; then
37517 echo $ECHO_N "(cached) $ECHO_C" >&6
37518else
ac1cb8d3 37519 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37520fi
37521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37523
37524fi
37525if test `eval echo '${'$as_ac_Header'}'` = yes; then
37526 cat >>confdefs.h <<_ACEOF
37527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37528_ACEOF
37529
37530fi
37531
37532done
37533
37534 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
37535 wxUSE_JOYSTICK=no
37536 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37537echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37538 fi
4cb1d3da
RN
37539 else
37540 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
37541 wxUSE_JOYSTICK=no
37542 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37543echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37544 fi
a848cd7e 37545 fi
a848cd7e 37546
4cb1d3da
RN
37547
37548 if test "$wxUSE_JOYSTICK" = "yes"; then
37549 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37550#define wxUSE_JOYSTICK 1
37551_ACEOF
37552
4cb1d3da
RN
37553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
37554 fi
a848cd7e
SC
37555 fi
37556fi
37557
37558
37559
37560if test "$wxUSE_FONTMAP" = "yes" ; then
37561 cat >>confdefs.h <<\_ACEOF
37562#define wxUSE_FONTMAP 1
37563_ACEOF
37564
37565fi
37566
37567if test "$wxUSE_UNICODE" = "yes" ; then
37568 cat >>confdefs.h <<\_ACEOF
37569#define wxUSE_UNICODE 1
37570_ACEOF
37571
37572
37573 if test "$USE_WIN32" != 1; then
37574 wxUSE_UNICODE_MSLU=no
37575 fi
37576
37577 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
37578 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
37579echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
37580if test "${ac_cv_lib_unicows_main+set}" = set; then
37581 echo $ECHO_N "(cached) $ECHO_C" >&6
37582else
37583 ac_check_lib_save_LIBS=$LIBS
37584LIBS="-lunicows $LIBS"
37585cat >conftest.$ac_ext <<_ACEOF
37586/* confdefs.h. */
37587_ACEOF
37588cat confdefs.h >>conftest.$ac_ext
37589cat >>conftest.$ac_ext <<_ACEOF
37590/* end confdefs.h. */
37591
37592
37593int
37594main ()
37595{
37596main ();
37597 ;
37598 return 0;
37599}
37600_ACEOF
37601rm -f conftest.$ac_objext conftest$ac_exeext
37602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37603 (eval $ac_link) 2>conftest.er1
a848cd7e 37604 ac_status=$?
ac1cb8d3
VS
37605 grep -v '^ *+' conftest.er1 >conftest.err
37606 rm -f conftest.er1
37607 cat conftest.err >&5
a848cd7e
SC
37608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609 (exit $ac_status); } &&
89be85c2
VS
37610 { ac_try='test -z "$ac_c_werror_flag"
37611 || test ! -s conftest.err'
ac1cb8d3
VS
37612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37613 (eval $ac_try) 2>&5
37614 ac_status=$?
37615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616 (exit $ac_status); }; } &&
37617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37619 (eval $ac_try) 2>&5
37620 ac_status=$?
37621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622 (exit $ac_status); }; }; then
37623 ac_cv_lib_unicows_main=yes
37624else
37625 echo "$as_me: failed program was:" >&5
37626sed 's/^/| /' conftest.$ac_ext >&5
37627
37628ac_cv_lib_unicows_main=no
37629fi
ac1cb8d3
VS
37630rm -f conftest.err conftest.$ac_objext \
37631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37632LIBS=$ac_check_lib_save_LIBS
37633fi
37634echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37635echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37636if test $ac_cv_lib_unicows_main = yes; then
37637
37638 cat >>confdefs.h <<\_ACEOF
37639#define wxUSE_UNICODE_MSLU 1
37640_ACEOF
37641
37642
37643else
37644
37645 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37646 Applications will only run on Windows NT/2000/XP!" >&5
37647echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37648 Applications will only run on Windows NT/2000/XP!" >&2;}
37649 wxUSE_UNICODE_MSLU=no
37650
37651fi
37652
37653 fi
37654fi
37655
37656if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37657 cat >>confdefs.h <<\_ACEOF
37658#define wxUSE_EXPERIMENTAL_PRINTF 1
37659_ACEOF
37660
37661fi
37662
37663
37664if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37665 cat >>confdefs.h <<\_ACEOF
37666#define wxUSE_POSTSCRIPT 1
37667_ACEOF
37668
37669fi
37670
37671cat >>confdefs.h <<\_ACEOF
37672#define wxUSE_AFM_FOR_POSTSCRIPT 1
37673_ACEOF
37674
37675
37676cat >>confdefs.h <<\_ACEOF
37677#define wxUSE_NORMALIZED_PS_FONTS 1
37678_ACEOF
37679
37680
37681
37682if test "$wxUSE_CONSTRAINTS" = "yes"; then
37683 cat >>confdefs.h <<\_ACEOF
37684#define wxUSE_CONSTRAINTS 1
37685_ACEOF
37686
37687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37688fi
37689
8a7b1113
VZ
37690if test "$wxUSE_MDI" = "yes"; then
37691 cat >>confdefs.h <<\_ACEOF
37692#define wxUSE_MDI 1
37693_ACEOF
37694
37695
37696 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37697 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37698#define wxUSE_MDI_ARCHITECTURE 1
37699_ACEOF
37700
8a7b1113
VZ
37701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37702 fi
a848cd7e
SC
37703fi
37704
37705if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37706 cat >>confdefs.h <<\_ACEOF
37707#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37708_ACEOF
37709
37710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37711 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37713 fi
37714fi
37715
37716if test "$wxUSE_HELP" = "yes"; then
37717 cat >>confdefs.h <<\_ACEOF
37718#define wxUSE_HELP 1
37719_ACEOF
37720
37721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37722
37723 if test "$wxUSE_MSW" = 1; then
37724 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37725 cat >>confdefs.h <<\_ACEOF
37726#define wxUSE_MS_HTML_HELP 1
37727_ACEOF
37728
37729 fi
37730 fi
37731
37732 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37733 if test "$wxUSE_HTML" = "yes"; then
37734 cat >>confdefs.h <<\_ACEOF
37735#define wxUSE_WXHTML_HELP 1
37736_ACEOF
37737
37738 else
37739 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37740echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37741 wxUSE_WXHTML_HELP=no
37742 fi
37743 fi
37744fi
37745
37746if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37747 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37748 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37749echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37750 else
37751 cat >>confdefs.h <<\_ACEOF
37752#define wxUSE_PRINTING_ARCHITECTURE 1
37753_ACEOF
37754
37755 fi
37756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37757fi
37758
37759if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37760 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37761echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37762 { (exit 1); exit 1; }; }
37763fi
37764
37765
37766if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37767 -o "$wxUSE_CLIPBOARD" = "yes" \
37768 -o "$wxUSE_OLE" = "yes" \
37769 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37770
37771for ac_header in ole2.h
37772do
37773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37774if eval "test \"\${$as_ac_Header+set}\" = set"; then
37775 echo "$as_me:$LINENO: checking for $ac_header" >&5
37776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37777if eval "test \"\${$as_ac_Header+set}\" = set"; then
37778 echo $ECHO_N "(cached) $ECHO_C" >&6
37779fi
37780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37782else
37783 # Is the header compilable?
37784echo "$as_me:$LINENO: checking $ac_header usability" >&5
37785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37786cat >conftest.$ac_ext <<_ACEOF
37787/* confdefs.h. */
37788_ACEOF
37789cat confdefs.h >>conftest.$ac_ext
37790cat >>conftest.$ac_ext <<_ACEOF
37791/* end confdefs.h. */
37792$ac_includes_default
37793#include <$ac_header>
37794_ACEOF
37795rm -f conftest.$ac_objext
37796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37797 (eval $ac_compile) 2>conftest.er1
a848cd7e 37798 ac_status=$?
ac1cb8d3
VS
37799 grep -v '^ *+' conftest.er1 >conftest.err
37800 rm -f conftest.er1
37801 cat conftest.err >&5
a848cd7e
SC
37802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37803 (exit $ac_status); } &&
89be85c2
VS
37804 { ac_try='test -z "$ac_c_werror_flag"
37805 || test ! -s conftest.err'
ac1cb8d3
VS
37806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37807 (eval $ac_try) 2>&5
37808 ac_status=$?
37809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37810 (exit $ac_status); }; } &&
37811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37813 (eval $ac_try) 2>&5
37814 ac_status=$?
37815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37816 (exit $ac_status); }; }; then
37817 ac_header_compiler=yes
37818else
37819 echo "$as_me: failed program was:" >&5
37820sed 's/^/| /' conftest.$ac_ext >&5
37821
37822ac_header_compiler=no
37823fi
ac1cb8d3 37824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37826echo "${ECHO_T}$ac_header_compiler" >&6
37827
37828# Is the header present?
37829echo "$as_me:$LINENO: checking $ac_header presence" >&5
37830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37831cat >conftest.$ac_ext <<_ACEOF
37832/* confdefs.h. */
37833_ACEOF
37834cat confdefs.h >>conftest.$ac_ext
37835cat >>conftest.$ac_ext <<_ACEOF
37836/* end confdefs.h. */
37837#include <$ac_header>
37838_ACEOF
37839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37841 ac_status=$?
37842 grep -v '^ *+' conftest.er1 >conftest.err
37843 rm -f conftest.er1
37844 cat conftest.err >&5
37845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37846 (exit $ac_status); } >/dev/null; then
37847 if test -s conftest.err; then
37848 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37850 else
37851 ac_cpp_err=
37852 fi
37853else
37854 ac_cpp_err=yes
37855fi
37856if test -z "$ac_cpp_err"; then
37857 ac_header_preproc=yes
37858else
37859 echo "$as_me: failed program was:" >&5
37860sed 's/^/| /' conftest.$ac_ext >&5
37861
37862 ac_header_preproc=no
37863fi
37864rm -f conftest.err conftest.$ac_ext
37865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37866echo "${ECHO_T}$ac_header_preproc" >&6
37867
37868# So? What about this header?
ac1cb8d3
VS
37869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37870 yes:no: )
a848cd7e
SC
37871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37875 ac_header_preproc=yes
a848cd7e 37876 ;;
ac1cb8d3 37877 no:yes:* )
a848cd7e
SC
37878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37890 (
37891 cat <<\_ASBOX
ac1cb8d3
VS
37892## ----------------------------------------- ##
37893## Report this to wx-dev@lists.wxwidgets.org ##
37894## ----------------------------------------- ##
a848cd7e
SC
37895_ASBOX
37896 ) |
37897 sed "s/^/$as_me: WARNING: /" >&2
37898 ;;
37899esac
37900echo "$as_me:$LINENO: checking for $ac_header" >&5
37901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37902if eval "test \"\${$as_ac_Header+set}\" = set"; then
37903 echo $ECHO_N "(cached) $ECHO_C" >&6
37904else
ac1cb8d3 37905 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37906fi
37907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37909
37910fi
37911if test `eval echo '${'$as_ac_Header'}'` = yes; then
37912 cat >>confdefs.h <<_ACEOF
37913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37914_ACEOF
37915
37916fi
37917
37918done
37919
37920
37921 if test "$ac_cv_header_ole2_h" = "yes" ; then
37922 if test "$GCC" = yes ; then
37923
37924
37925 ac_ext=cc
37926ac_cpp='$CXXCPP $CPPFLAGS'
37927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37930
37931
37932 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37933echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37934 cat >conftest.$ac_ext <<_ACEOF
37935/* confdefs.h. */
37936_ACEOF
37937cat confdefs.h >>conftest.$ac_ext
37938cat >>conftest.$ac_ext <<_ACEOF
37939/* end confdefs.h. */
37940#include <windows.h>
37941 #include <ole2.h>
37942int
37943main ()
37944{
37945
37946 ;
37947 return 0;
37948}
37949_ACEOF
37950rm -f conftest.$ac_objext
37951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37952 (eval $ac_compile) 2>conftest.er1
a848cd7e 37953 ac_status=$?
ac1cb8d3
VS
37954 grep -v '^ *+' conftest.er1 >conftest.err
37955 rm -f conftest.er1
37956 cat conftest.err >&5
a848cd7e
SC
37957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37958 (exit $ac_status); } &&
89be85c2
VS
37959 { ac_try='test -z "$ac_cxx_werror_flag"
37960 || test ! -s conftest.err'
ac1cb8d3
VS
37961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37962 (eval $ac_try) 2>&5
37963 ac_status=$?
37964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37965 (exit $ac_status); }; } &&
37966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
37972 echo "$as_me:$LINENO: result: no" >&5
37973echo "${ECHO_T}no" >&6
37974else
37975 echo "$as_me: failed program was:" >&5
37976sed 's/^/| /' conftest.$ac_ext >&5
37977
37978echo "$as_me:$LINENO: result: yes" >&5
37979echo "${ECHO_T}yes" >&6
37980 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37981fi
ac1cb8d3 37982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37983 ac_ext=c
37984ac_cpp='$CPP $CPPFLAGS'
37985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37987ac_compiler_gnu=$ac_cv_c_compiler_gnu
37988
a848cd7e
SC
37989 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37990 if test "$wxUSE_OLE" = "yes" ; then
37991 cat >>confdefs.h <<\_ACEOF
37992#define wxUSE_OLE 1
37993_ACEOF
37994
37995 fi
37996 fi
37997
37998 if test "$wxUSE_DATAOBJ" = "yes" ; then
37999 cat >>confdefs.h <<\_ACEOF
38000#define wxUSE_DATAOBJ 1
38001_ACEOF
38002
38003 fi
38004 else
38005 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38006echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38007
38008 wxUSE_CLIPBOARD=no
38009 wxUSE_DRAG_AND_DROP=no
38010 wxUSE_DATAOBJ=no
38011 wxUSE_OLE=no
38012 fi
38013
38014 if test "$wxUSE_METAFILE" = "yes"; then
38015 cat >>confdefs.h <<\_ACEOF
38016#define wxUSE_METAFILE 1
38017_ACEOF
38018
38019
38020 cat >>confdefs.h <<\_ACEOF
38021#define wxUSE_ENH_METAFILE 1
38022_ACEOF
38023
38024 fi
38025fi
38026
38027if test "$wxUSE_IPC" = "yes"; then
38028 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
38029 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38030echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
38031 fi
38032
38033 cat >>confdefs.h <<\_ACEOF
38034#define wxUSE_IPC 1
38035_ACEOF
38036
38037fi
38038
38039if test "$wxUSE_CLIPBOARD" = "yes"; then
38040 if test "$wxUSE_MGL" = 1; then
38041 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38042echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38043 wxUSE_CLIPBOARD=no
38044 fi
38045
38046 if test "$wxUSE_CLIPBOARD" = "yes"; then
38047 cat >>confdefs.h <<\_ACEOF
38048#define wxUSE_CLIPBOARD 1
38049_ACEOF
38050
38051
38052 cat >>confdefs.h <<\_ACEOF
38053#define wxUSE_DATAOBJ 1
38054_ACEOF
38055
38056 fi
38057fi
38058
38059if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38060 if test "$wxUSE_GTK" = 1; then
38061 if test "$WXGTK12" != 1; then
38062 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38063echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38064 wxUSE_DRAG_AND_DROP=no
38065 fi
38066 fi
38067
38068 if test "$wxUSE_MOTIF" = 1; then
38069 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38070echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38071 wxUSE_DRAG_AND_DROP=no
38072 fi
38073
38074 if test "$wxUSE_X11" = 1; then
38075 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38076echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38077 wxUSE_DRAG_AND_DROP=no
38078 fi
38079
38080 if test "$wxUSE_MGL" = 1; then
38081 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38082echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38083 wxUSE_DRAG_AND_DROP=no
38084 fi
38085
38086 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38087 cat >>confdefs.h <<\_ACEOF
38088#define wxUSE_DRAG_AND_DROP 1
38089_ACEOF
38090
38091 fi
38092
38093fi
38094
38095if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38097fi
38098
38099if test "$wxUSE_SPLINES" = "yes" ; then
38100 cat >>confdefs.h <<\_ACEOF
38101#define wxUSE_SPLINES 1
38102_ACEOF
38103
38104fi
38105
38106
38107USES_CONTROLS=0
38108if test "$wxUSE_CONTROLS" = "yes"; then
38109 USES_CONTROLS=1
38110fi
38111
38112if test "$wxUSE_ACCEL" = "yes"; then
38113 cat >>confdefs.h <<\_ACEOF
38114#define wxUSE_ACCEL 1
38115_ACEOF
38116
38117 USES_CONTROLS=1
38118fi
38119
38120if test "$wxUSE_BUTTON" = "yes"; then
38121 cat >>confdefs.h <<\_ACEOF
38122#define wxUSE_BUTTON 1
38123_ACEOF
38124
38125 USES_CONTROLS=1
38126fi
38127
38128if test "$wxUSE_BMPBUTTON" = "yes"; then
38129 cat >>confdefs.h <<\_ACEOF
38130#define wxUSE_BMPBUTTON 1
38131_ACEOF
38132
38133 USES_CONTROLS=1
38134fi
38135
38136if test "$wxUSE_CALCTRL" = "yes"; then
38137 cat >>confdefs.h <<\_ACEOF
38138#define wxUSE_CALENDARCTRL 1
38139_ACEOF
38140
38141 USES_CONTROLS=1
38142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38143fi
38144
38145if test "$wxUSE_CARET" = "yes"; then
38146 cat >>confdefs.h <<\_ACEOF
38147#define wxUSE_CARET 1
38148_ACEOF
38149
38150 USES_CONTROLS=1
38151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38152fi
38153
38154if test "$wxUSE_COMBOBOX" = "yes"; then
38155 cat >>confdefs.h <<\_ACEOF
38156#define wxUSE_COMBOBOX 1
38157_ACEOF
38158
38159 USES_CONTROLS=1
38160fi
38161
38162if test "$wxUSE_CHOICE" = "yes"; then
38163 cat >>confdefs.h <<\_ACEOF
38164#define wxUSE_CHOICE 1
38165_ACEOF
38166
38167 USES_CONTROLS=1
38168fi
38169
92bbdbcd
WS
38170if test "$wxUSE_CHOICEBOOK" = "yes"; then
38171 cat >>confdefs.h <<\_ACEOF
38172#define wxUSE_CHOICEBOOK 1
38173_ACEOF
38174
38175 USES_CONTROLS=1
38176fi
38177
a848cd7e
SC
38178if test "$wxUSE_CHECKBOX" = "yes"; then
38179 cat >>confdefs.h <<\_ACEOF
38180#define wxUSE_CHECKBOX 1
38181_ACEOF
38182
38183 USES_CONTROLS=1
38184fi
38185
38186if test "$wxUSE_CHECKLST" = "yes"; then
38187 cat >>confdefs.h <<\_ACEOF
38188#define wxUSE_CHECKLISTBOX 1
38189_ACEOF
38190
38191 USES_CONTROLS=1
38192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38193fi
38194
da98e9be
VZ
38195if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38196 cat >>confdefs.h <<\_ACEOF
38197#define wxUSE_DATEPICKCTRL 1
38198_ACEOF
38199
38200 USES_CONTROLS=1
38201fi
38202
a848cd7e
SC
38203if test "$wxUSE_DISPLAY" = "yes"; then
38204 cat >>confdefs.h <<\_ACEOF
38205#define wxUSE_DISPLAY 1
38206_ACEOF
38207
38208 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
38209fi
38210
38211if test "$wxUSE_GAUGE" = "yes"; then
38212 cat >>confdefs.h <<\_ACEOF
38213#define wxUSE_GAUGE 1
38214_ACEOF
38215
38216 USES_CONTROLS=1
38217fi
38218
38219if test "$wxUSE_GRID" = "yes"; then
38220 cat >>confdefs.h <<\_ACEOF
38221#define wxUSE_GRID 1
38222_ACEOF
38223
38224 USES_CONTROLS=1
38225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38226fi
38227
38228if test "$wxUSE_IMAGLIST" = "yes"; then
38229 cat >>confdefs.h <<\_ACEOF
38230#define wxUSE_IMAGLIST 1
38231_ACEOF
38232
38233fi
38234
38235if test "$wxUSE_LISTBOOK" = "yes"; then
38236 cat >>confdefs.h <<\_ACEOF
38237#define wxUSE_LISTBOOK 1
38238_ACEOF
38239
38240 USES_CONTROLS=1
38241fi
38242
38243if test "$wxUSE_LISTBOX" = "yes"; then
38244 cat >>confdefs.h <<\_ACEOF
38245#define wxUSE_LISTBOX 1
38246_ACEOF
38247
38248 USES_CONTROLS=1
38249fi
38250
38251if test "$wxUSE_LISTCTRL" = "yes"; then
38252 if test "$wxUSE_IMAGLIST" = "yes"; then
38253 cat >>confdefs.h <<\_ACEOF
38254#define wxUSE_LISTCTRL 1
38255_ACEOF
38256
38257 USES_CONTROLS=1
38258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38259 else
38260 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38261echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38262 fi
38263fi
38264
38265if test "$wxUSE_NOTEBOOK" = "yes"; then
38266 cat >>confdefs.h <<\_ACEOF
38267#define wxUSE_NOTEBOOK 1
38268_ACEOF
38269
38270 USES_CONTROLS=1
38271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38272fi
38273
38274
38275if test "$wxUSE_RADIOBOX" = "yes"; then
38276 cat >>confdefs.h <<\_ACEOF
38277#define wxUSE_RADIOBOX 1
38278_ACEOF
38279
38280 USES_CONTROLS=1
38281fi
38282
38283if test "$wxUSE_RADIOBTN" = "yes"; then
38284 cat >>confdefs.h <<\_ACEOF
38285#define wxUSE_RADIOBTN 1
38286_ACEOF
38287
38288 USES_CONTROLS=1
38289fi
38290
38291if test "$wxUSE_SASH" = "yes"; then
38292 cat >>confdefs.h <<\_ACEOF
38293#define wxUSE_SASH 1
38294_ACEOF
38295
38296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38297fi
38298
38299if test "$wxUSE_SCROLLBAR" = "yes"; then
38300 cat >>confdefs.h <<\_ACEOF
38301#define wxUSE_SCROLLBAR 1
38302_ACEOF
38303
38304 USES_CONTROLS=1
38305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38306fi
38307
38308if test "$wxUSE_SLIDER" = "yes"; then
38309 cat >>confdefs.h <<\_ACEOF
38310#define wxUSE_SLIDER 1
38311_ACEOF
38312
38313 USES_CONTROLS=1
38314fi
38315
38316if test "$wxUSE_SPINBTN" = "yes"; then
38317 cat >>confdefs.h <<\_ACEOF
38318#define wxUSE_SPINBTN 1
38319_ACEOF
38320
38321 USES_CONTROLS=1
38322fi
38323
38324if test "$wxUSE_SPINCTRL" = "yes"; then
38325 cat >>confdefs.h <<\_ACEOF
38326#define wxUSE_SPINCTRL 1
38327_ACEOF
38328
38329 USES_CONTROLS=1
38330fi
38331
38332if test "$wxUSE_SPLITTER" = "yes"; then
38333 cat >>confdefs.h <<\_ACEOF
38334#define wxUSE_SPLITTER 1
38335_ACEOF
38336
38337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38338fi
38339
38340if test "$wxUSE_STATBMP" = "yes"; then
38341 cat >>confdefs.h <<\_ACEOF
38342#define wxUSE_STATBMP 1
38343_ACEOF
38344
38345 USES_CONTROLS=1
38346fi
38347
38348if test "$wxUSE_STATBOX" = "yes"; then
38349 cat >>confdefs.h <<\_ACEOF
38350#define wxUSE_STATBOX 1
38351_ACEOF
38352
38353 USES_CONTROLS=1
38354fi
38355
38356if test "$wxUSE_STATTEXT" = "yes"; then
38357 cat >>confdefs.h <<\_ACEOF
38358#define wxUSE_STATTEXT 1
38359_ACEOF
38360
38361 USES_CONTROLS=1
38362fi
38363
38364if test "$wxUSE_STATLINE" = "yes"; then
38365 cat >>confdefs.h <<\_ACEOF
38366#define wxUSE_STATLINE 1
38367_ACEOF
38368
38369 USES_CONTROLS=1
38370fi
38371
38372if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
38373 cat >>confdefs.h <<\_ACEOF
38374#define wxUSE_NATIVE_STATUSBAR 1
38375_ACEOF
38376
a848cd7e
SC
38377 cat >>confdefs.h <<\_ACEOF
38378#define wxUSE_STATUSBAR 1
38379_ACEOF
38380
38381 USES_CONTROLS=1
38382
38383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
38384fi
38385
38386if test "$wxUSE_TABDIALOG" = "yes"; then
38387 cat >>confdefs.h <<\_ACEOF
38388#define wxUSE_TAB_DIALOG 1
38389_ACEOF
38390
a848cd7e
SC
38391fi
38392
38393if test "$wxUSE_TEXTCTRL" = "yes"; then
38394 cat >>confdefs.h <<\_ACEOF
38395#define wxUSE_TEXTCTRL 1
38396_ACEOF
38397
38398 USES_CONTROLS=1
38399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
38400fi
38401
38402if test "$wxUSE_TOGGLEBTN" = "yes"; then
38403 if test "$wxUSE_COCOA" = 1 ; then
38404 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
38405echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
38406 wxUSE_TOGGLEBTN=no
bdcade0a
MB
38407 else
38408 if test "$wxUSE_PM" = 1; then
38409 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
38410echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
38411 wxUSE_TOGGLEBTN=no
38412 fi
a848cd7e
SC
38413 fi
38414 if test "$wxUSE_UNIVERSAL" = "yes"; then
38415 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
38416echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
38417 wxUSE_TOGGLEBTN=no
38418 fi
38419
38420 if test "$wxUSE_TOGGLEBTN" = "yes"; then
38421 cat >>confdefs.h <<\_ACEOF
38422#define wxUSE_TOGGLEBTN 1
38423_ACEOF
38424
38425 USES_CONTROLS=1
38426 fi
38427fi
38428
38429if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
38430 cat >>confdefs.h <<\_ACEOF
38431#define wxUSE_TOOLBAR_SIMPLE 1
38432_ACEOF
38433
38434 wxUSE_TOOLBAR="yes"
38435 USES_CONTROLS=1
38436fi
38437
38438if test "$wxUSE_TOOLBAR" = "yes"; then
38439 cat >>confdefs.h <<\_ACEOF
38440#define wxUSE_TOOLBAR 1
38441_ACEOF
38442
38443 USES_CONTROLS=1
38444
38445 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
38446 wxUSE_TOOLBAR_NATIVE="yes"
38447 fi
38448
38449 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
38450 cat >>confdefs.h <<\_ACEOF
38451#define wxUSE_TOOLBAR_NATIVE 1
38452_ACEOF
38453
38454 USES_CONTROLS=1
38455 fi
38456
38457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
38458fi
38459
38460if test "$wxUSE_TOOLTIPS" = "yes"; then
38461 if test "$wxUSE_MOTIF" = 1; then
38462 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
38463echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
38464 else
38465 if test "$wxUSE_UNIVERSAL" = "yes"; then
38466 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
38467echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
38468 else
38469 cat >>confdefs.h <<\_ACEOF
38470#define wxUSE_TOOLTIPS 1
38471_ACEOF
38472
38473 fi
38474 fi
38475fi
38476
38477if test "$wxUSE_TREECTRL" = "yes"; then
38478 if test "$wxUSE_IMAGLIST" = "yes"; then
38479 cat >>confdefs.h <<\_ACEOF
38480#define wxUSE_TREECTRL 1
38481_ACEOF
38482
38483 USES_CONTROLS=1
38484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
38485 else
38486 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
38487echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
38488 fi
38489fi
38490
38491if test "$wxUSE_POPUPWIN" = "yes"; then
38492 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38493 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
38494echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
38495 else
38496 if test "$wxUSE_PM" = 1; then
38497 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
38498echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
38499 else
38500 cat >>confdefs.h <<\_ACEOF
38501#define wxUSE_POPUPWIN 1
38502_ACEOF
38503
38504
38505 USES_CONTROLS=1
38506 fi
38507 fi
38508fi
38509
0dcd06dd 38510if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
38511 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38512 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
38513echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
38514 else
38515 cat >>confdefs.h <<\_ACEOF
38516#define wxUSE_DIALUP_MANAGER 1
38517_ACEOF
38518
38519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
38520 fi
38521fi
38522
a848cd7e
SC
38523if test "$wxUSE_TIPWINDOW" = "yes"; then
38524 if test "$wxUSE_PM" = 1; then
38525 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
38526echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
38527 else
38528 cat >>confdefs.h <<\_ACEOF
38529#define wxUSE_TIPWINDOW 1
38530_ACEOF
38531
38532 fi
38533fi
38534
38535if test "$USES_CONTROLS" = 1; then
38536 cat >>confdefs.h <<\_ACEOF
38537#define wxUSE_CONTROLS 1
38538_ACEOF
38539
38540fi
38541
38542
38543if test "$wxUSE_ACCESSIBILITY" = "yes"; then
38544 cat >>confdefs.h <<\_ACEOF
38545#define wxUSE_ACCESSIBILITY 1
38546_ACEOF
38547
38548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
38549fi
38550
38551if test "$wxUSE_DRAGIMAGE" = "yes"; then
38552 cat >>confdefs.h <<\_ACEOF
38553#define wxUSE_DRAGIMAGE 1
38554_ACEOF
38555
38556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
38557fi
38558
38559if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
38560 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38561 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
38562echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
38563 else
38564 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38565#define wxUSE_EXCEPTIONS 1
38566_ACEOF
38567
07bea8f0
VS
38568 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
38569 fi
a848cd7e
SC
38570fi
38571
38572USE_HTML=0
38573if test "$wxUSE_HTML" = "yes"; then
38574 cat >>confdefs.h <<\_ACEOF
38575#define wxUSE_HTML 1
38576_ACEOF
38577
38578 USE_HTML=1
38579 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
38580 if test "$wxUSE_MAC" = 1; then
38581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
38582 fi
a848cd7e 38583fi
646b6ec1 38584if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 38585 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
38586 old_CPPFLAGS="$CPPFLAGS"
38587 CPPFLAGS="$CPPFLAGS -x objective-c++"
38588 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
38589echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
38590if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
38591 echo $ECHO_N "(cached) $ECHO_C" >&6
38592else
38593 cat >conftest.$ac_ext <<_ACEOF
38594/* confdefs.h. */
38595_ACEOF
38596cat confdefs.h >>conftest.$ac_ext
38597cat >>conftest.$ac_ext <<_ACEOF
38598/* end confdefs.h. */
38599#include <Carbon/Carbon.h>
38600
38601#include <WebKit/HIWebView.h>
38602_ACEOF
38603rm -f conftest.$ac_objext
38604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38605 (eval $ac_compile) 2>conftest.er1
38606 ac_status=$?
38607 grep -v '^ *+' conftest.er1 >conftest.err
38608 rm -f conftest.er1
38609 cat conftest.err >&5
38610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611 (exit $ac_status); } &&
89be85c2
VS
38612 { ac_try='test -z "$ac_c_werror_flag"
38613 || test ! -s conftest.err'
07bea8f0
VS
38614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38615 (eval $ac_try) 2>&5
38616 ac_status=$?
38617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38618 (exit $ac_status); }; } &&
38619 { ac_try='test -s conftest.$ac_objext'
38620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38621 (eval $ac_try) 2>&5
38622 ac_status=$?
38623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624 (exit $ac_status); }; }; then
38625 ac_cv_header_WebKit_HIWebView_h=yes
38626else
38627 echo "$as_me: failed program was:" >&5
38628sed 's/^/| /' conftest.$ac_ext >&5
38629
38630ac_cv_header_WebKit_HIWebView_h=no
38631fi
38632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38633fi
38634echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
38635echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
38636if test $ac_cv_header_WebKit_HIWebView_h = yes; then
38637
38638 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
38639#define wxUSE_WEBKIT 1
38640_ACEOF
38641
07bea8f0
VS
38642 WEBKIT_LINK="-framework WebKit"
38643
38644else
38645
38646 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
38647echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
38648 wxUSE_WEBKIT=no
38649
646b6ec1
VS
38650fi
38651
07bea8f0
VS
38652
38653 CPPFLAGS="$old_CPPFLAGS"
38654 elif test "$wxUSE_COCOA" = 1; then
38655 cat >>confdefs.h <<\_ACEOF
38656#define wxUSE_WEBKIT 1
38657_ACEOF
38658
38659 else
38660 wxUSE_WEBKIT=no
38661 fi
38662fi
38663
9a8f0513
VS
38664USE_XRC=0
38665if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
38666 if test "$wxUSE_XML" != "yes"; then
38667 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
38668echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
38669 wxUSE_XRC=no
38670 else
38671 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
38672#define wxUSE_XRC 1
38673_ACEOF
38674
d2ebf0b7
VS
38675 USE_XRC=1
38676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
38677 fi
9a8f0513 38678fi
07bea8f0 38679
a848cd7e
SC
38680if test "$wxUSE_MENUS" = "yes"; then
38681 cat >>confdefs.h <<\_ACEOF
38682#define wxUSE_MENUS 1
38683_ACEOF
38684
38685 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38686fi
38687
38688if test "$wxUSE_METAFILE" = "yes"; then
38689 cat >>confdefs.h <<\_ACEOF
38690#define wxUSE_METAFILE 1
38691_ACEOF
38692
38693fi
38694
38695if test "$wxUSE_MIMETYPE" = "yes"; then
38696 cat >>confdefs.h <<\_ACEOF
38697#define wxUSE_MIMETYPE 1
38698_ACEOF
38699
38700fi
38701
38702if test "$wxUSE_MINIFRAME" = "yes"; then
38703 cat >>confdefs.h <<\_ACEOF
38704#define wxUSE_MINIFRAME 1
38705_ACEOF
38706
38707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38708fi
38709
38710if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38711 cat >>confdefs.h <<\_ACEOF
38712#define wxUSE_SYSTEM_OPTIONS 1
38713_ACEOF
38714
38715 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 38716 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
38717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38718 fi
38719fi
38720
38721
38722if test "$wxUSE_VALIDATORS" = "yes"; then
38723 cat >>confdefs.h <<\_ACEOF
38724#define wxUSE_VALIDATORS 1
38725_ACEOF
38726
38727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38728fi
38729
38730if test "$wxUSE_PALETTE" = "yes" ; then
38731 cat >>confdefs.h <<\_ACEOF
38732#define wxUSE_PALETTE 1
38733_ACEOF
38734
38735fi
38736
38737if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38738 LIBS=" -lunicows $LIBS"
38739fi
38740
38741
38742if test "$wxUSE_IMAGE" = "yes" ; then
38743 cat >>confdefs.h <<\_ACEOF
38744#define wxUSE_IMAGE 1
38745_ACEOF
38746
38747
38748 if test "$wxUSE_GIF" = "yes" ; then
38749 cat >>confdefs.h <<\_ACEOF
38750#define wxUSE_GIF 1
38751_ACEOF
38752
38753 fi
38754
38755 if test "$wxUSE_PCX" = "yes" ; then
38756 cat >>confdefs.h <<\_ACEOF
38757#define wxUSE_PCX 1
38758_ACEOF
38759
38760 fi
38761
38762 if test "$wxUSE_IFF" = "yes" ; then
38763 cat >>confdefs.h <<\_ACEOF
38764#define wxUSE_IFF 1
38765_ACEOF
38766
38767 fi
38768
38769 if test "$wxUSE_PNM" = "yes" ; then
38770 cat >>confdefs.h <<\_ACEOF
38771#define wxUSE_PNM 1
38772_ACEOF
38773
38774 fi
38775
38776 if test "$wxUSE_XPM" = "yes" ; then
38777 cat >>confdefs.h <<\_ACEOF
38778#define wxUSE_XPM 1
38779_ACEOF
38780
38781 fi
38782
38783 if test "$wxUSE_ICO_CUR" = "yes" ; then
38784 cat >>confdefs.h <<\_ACEOF
38785#define wxUSE_ICO_CUR 1
38786_ACEOF
38787
38788 fi
38789fi
38790
38791
38792if test "$wxUSE_CHOICEDLG" = "yes"; then
38793 cat >>confdefs.h <<\_ACEOF
38794#define wxUSE_CHOICEDLG 1
38795_ACEOF
38796
38797fi
38798
38799if test "$wxUSE_COLOURDLG" = "yes"; then
38800 cat >>confdefs.h <<\_ACEOF
38801#define wxUSE_COLOURDLG 1
38802_ACEOF
38803
38804fi
38805
38806if test "$wxUSE_FILEDLG" = "yes"; then
38807 cat >>confdefs.h <<\_ACEOF
38808#define wxUSE_FILEDLG 1
38809_ACEOF
38810
38811fi
38812
38813if test "$wxUSE_FINDREPLDLG" = "yes"; then
38814 cat >>confdefs.h <<\_ACEOF
38815#define wxUSE_FINDREPLDLG 1
38816_ACEOF
38817
38818fi
38819
38820if test "$wxUSE_FONTDLG" = "yes"; then
38821 cat >>confdefs.h <<\_ACEOF
38822#define wxUSE_FONTDLG 1
38823_ACEOF
38824
38825fi
38826
38827if test "$wxUSE_DIRDLG" = "yes"; then
38828 if test "$wxUSE_TREECTRL" != "yes"; then
38829 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38830echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38831 else
38832 cat >>confdefs.h <<\_ACEOF
38833#define wxUSE_DIRDLG 1
38834_ACEOF
38835
38836 fi
38837fi
38838
38839if test "$wxUSE_MSGDLG" = "yes"; then
38840 cat >>confdefs.h <<\_ACEOF
38841#define wxUSE_MSGDLG 1
38842_ACEOF
38843
38844fi
38845
38846if test "$wxUSE_NUMBERDLG" = "yes"; then
38847 cat >>confdefs.h <<\_ACEOF
38848#define wxUSE_NUMBERDLG 1
38849_ACEOF
38850
38851fi
38852
38853if test "$wxUSE_PROGRESSDLG" = "yes"; then
38854 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38855 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38856echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38857 else
38858 cat >>confdefs.h <<\_ACEOF
38859#define wxUSE_PROGRESSDLG 1
38860_ACEOF
38861
38862 fi
38863fi
38864
38865if test "$wxUSE_SPLASH" = "yes"; then
38866 cat >>confdefs.h <<\_ACEOF
38867#define wxUSE_SPLASH 1
38868_ACEOF
38869
2057db16 38870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
38871fi
38872
38873if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38874 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38875 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38876echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38877 else
38878 cat >>confdefs.h <<\_ACEOF
38879#define wxUSE_STARTUP_TIPS 1
38880_ACEOF
38881
38882 fi
38883fi
38884
38885if test "$wxUSE_TEXTDLG" = "yes"; then
38886 cat >>confdefs.h <<\_ACEOF
38887#define wxUSE_TEXTDLG 1
38888_ACEOF
38889
38890fi
38891
38892if test "$wxUSE_WIZARDDLG" = "yes"; then
38893 cat >>confdefs.h <<\_ACEOF
38894#define wxUSE_WIZARDDLG 1
38895_ACEOF
38896
38897 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38898fi
38899
38900
ce756cb0
RN
38901if test "$wxUSE_MEDIACTRL" = "yes"; then
38902 if test "$wxUSE_MSW" = 1; then
38903 wxUSE_DIRECTSHOW="yes"
38904
38905for ac_header in dshow.h
38906do
38907as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38908echo "$as_me:$LINENO: checking for $ac_header" >&5
38909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38910if eval "test \"\${$as_ac_Header+set}\" = set"; then
38911 echo $ECHO_N "(cached) $ECHO_C" >&6
38912else
38913 cat >conftest.$ac_ext <<_ACEOF
38914/* confdefs.h. */
38915_ACEOF
38916cat confdefs.h >>conftest.$ac_ext
38917cat >>conftest.$ac_ext <<_ACEOF
38918/* end confdefs.h. */
38919#include <windows.h>
38920
38921#include <$ac_header>
38922_ACEOF
38923rm -f conftest.$ac_objext
38924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38925 (eval $ac_compile) 2>conftest.er1
38926 ac_status=$?
38927 grep -v '^ *+' conftest.er1 >conftest.err
38928 rm -f conftest.er1
38929 cat conftest.err >&5
38930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38931 (exit $ac_status); } &&
38932 { ac_try='test -z "$ac_c_werror_flag"
38933 || test ! -s conftest.err'
38934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38935 (eval $ac_try) 2>&5
38936 ac_status=$?
38937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938 (exit $ac_status); }; } &&
38939 { ac_try='test -s conftest.$ac_objext'
38940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38941 (eval $ac_try) 2>&5
38942 ac_status=$?
38943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38944 (exit $ac_status); }; }; then
38945 eval "$as_ac_Header=yes"
38946else
38947 echo "$as_me: failed program was:" >&5
38948sed 's/^/| /' conftest.$ac_ext >&5
38949
38950eval "$as_ac_Header=no"
38951fi
38952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38953fi
38954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38956if test `eval echo '${'$as_ac_Header'}'` = yes; then
38957 cat >>confdefs.h <<_ACEOF
38958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38959_ACEOF
38960
38961else
38962
38963 wxUSE_DIRECTSHOW="no"
38964 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
38965echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
38966
38967fi
38968
38969done
38970
38971
38972 if test "$wxUSE_DIRECTSHOW" = "yes"; then
38973 cat >>confdefs.h <<\_ACEOF
38974#define wxUSE_DIRECTSHOW 1
38975_ACEOF
38976
38977 LIBS="$LIBS -lstrmiids"
38978 fi
38979 fi
38980
38981 if test "$wxUSE_GTK" = 1; then
38982 wxUSE_GSTREAMER="yes"
38983
ce756cb0 38984
dae87f93 38985 succeeded=no
ce756cb0 38986
dae87f93
RN
38987 if test -z "$PKG_CONFIG"; then
38988 # Extract the first word of "pkg-config", so it can be a program name with args.
38989set dummy pkg-config; ac_word=$2
38990echo "$as_me:$LINENO: checking for $ac_word" >&5
38991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38992if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
38993 echo $ECHO_N "(cached) $ECHO_C" >&6
38994else
38995 case $PKG_CONFIG in
38996 [\\/]* | ?:[\\/]*)
38997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38998 ;;
38999 *)
39000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39001for as_dir in $PATH
39002do
39003 IFS=$as_save_IFS
39004 test -z "$as_dir" && as_dir=.
39005 for ac_exec_ext in '' $ac_executable_extensions; do
39006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39009 break 2
39010 fi
39011done
39012done
39013
39014 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39015 ;;
39016esac
39017fi
39018PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39019
39020if test -n "$PKG_CONFIG"; then
39021 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39022echo "${ECHO_T}$PKG_CONFIG" >&6
39023else
39024 echo "$as_me:$LINENO: result: no" >&5
39025echo "${ECHO_T}no" >&6
39026fi
39027
39028 fi
39029
39030 if test "$PKG_CONFIG" = "no" ; then
39031 echo "*** The pkg-config script could not be found. Make sure it is"
39032 echo "*** in your path, or set the PKG_CONFIG environment variable"
39033 echo "*** to the full path to pkg-config."
39034 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39035 else
39036 PKG_CONFIG_MIN_VERSION=0.9.0
39037 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39038 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39039echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39040
39041 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39042 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39043echo "${ECHO_T}yes" >&6
dae87f93 39044 succeeded=yes
ce756cb0 39045
dae87f93
RN
39046 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39047echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39048 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39049 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39050echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39051
39052 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39053echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39054 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39055 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39056echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39057 else
39058 GSTREAMER_CFLAGS=""
39059 GSTREAMER_LIBS=""
39060 ## If we have a custom action on failure, don't print errors, but
39061 ## do set a variable so people can do so.
39062 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39063
dae87f93
RN
39064 fi
39065
39066
39067
39068 else
39069 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39070 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39071 fi
39072 fi
39073
39074 if test $succeeded = yes; then
39075
39076 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39077 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39078
ce756cb0 39079 else
dae87f93
RN
39080
39081 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39082echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39083 wxUSE_GSTREAMER="no"
39084
39085 fi
39086
39087
39088
39089
39090
39091 if test "x$GST_INSPECT" == "x"; then
39092 # Extract the first word of "gst-inspect", so it can be a program name with args.
39093set dummy gst-inspect; ac_word=$2
39094echo "$as_me:$LINENO: checking for $ac_word" >&5
39095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39096if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39097 echo $ECHO_N "(cached) $ECHO_C" >&6
39098else
39099 if test -n "$GST_INSPECT"; then
39100 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39101else
39102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39103for as_dir in $PATH
39104do
39105 IFS=$as_save_IFS
39106 test -z "$as_dir" && as_dir=.
39107 for ac_exec_ext in '' $ac_executable_extensions; do
39108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39109 ac_cv_prog_GST_INSPECT="gst-inspect"
39110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39111 break 2
ce756cb0 39112 fi
dae87f93
RN
39113done
39114done
39115
39116fi
39117fi
39118GST_INSPECT=$ac_cv_prog_GST_INSPECT
39119if test -n "$GST_INSPECT"; then
39120 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39121echo "${ECHO_T}$GST_INSPECT" >&6
39122else
39123 echo "$as_me:$LINENO: result: no" >&5
39124echo "${ECHO_T}no" >&6
39125fi
39126
39127 fi
39128
39129 if test "x$GST_INSPECT" != "x"; then
39130 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39131echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39132 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39133 echo "$as_me:$LINENO: result: found." >&5
39134echo "${ECHO_T}found." >&6
ce756cb0 39135
ce756cb0 39136 else
dae87f93
RN
39137 echo "$as_me:$LINENO: result: not found." >&5
39138echo "${ECHO_T}not found." >&6
39139
39140 wxUSE_GSTREAMER="no"
39141 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39142echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39143
39144 fi
39145 fi
39146
39147
39148 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39149echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39150if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39151 echo $ECHO_N "(cached) $ECHO_C" >&6
39152else
39153 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39154/* confdefs.h. */
39155_ACEOF
39156cat confdefs.h >>conftest.$ac_ext
39157cat >>conftest.$ac_ext <<_ACEOF
39158/* end confdefs.h. */
dae87f93 39159#include <gst/gst.h>
ce756cb0 39160
dae87f93 39161#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39162_ACEOF
39163rm -f conftest.$ac_objext
39164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39165 (eval $ac_compile) 2>conftest.er1
39166 ac_status=$?
39167 grep -v '^ *+' conftest.er1 >conftest.err
39168 rm -f conftest.er1
39169 cat conftest.err >&5
39170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39171 (exit $ac_status); } &&
39172 { ac_try='test -z "$ac_c_werror_flag"
39173 || test ! -s conftest.err'
39174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39175 (eval $ac_try) 2>&5
39176 ac_status=$?
39177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178 (exit $ac_status); }; } &&
39179 { ac_try='test -s conftest.$ac_objext'
39180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39181 (eval $ac_try) 2>&5
39182 ac_status=$?
39183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39184 (exit $ac_status); }; }; then
dae87f93 39185 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39186else
39187 echo "$as_me: failed program was:" >&5
39188sed 's/^/| /' conftest.$ac_ext >&5
39189
dae87f93 39190ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39191fi
39192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39193fi
39194echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39195echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39196if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39197 :
39198else
ce756cb0 39199
dae87f93
RN
39200 wxUSE_GSTREAMER="no"
39201 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39202echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39203
dae87f93 39204fi
ce756cb0 39205
dae87f93
RN
39206
39207
39208 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39209echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39210
39211ac_find_libraries=
39212for ac_dir in $SEARCH_LIB /usr/lib;
39213 do
39214 for ac_extension in a so sl dylib; do
39215 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39216 ac_find_libraries=$ac_dir
39217 break 2
39218 fi
39219 done
39220 done
39221
ce756cb0 39222
dae87f93
RN
39223 if test "$ac_find_libraries" = "" ; then
39224 echo "$as_me:$LINENO: result: no" >&5
39225echo "${ECHO_T}no" >&6
39226 wxUSE_GSTREAMER="no"
39227 else
39228 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39229echo "${ECHO_T}yes" >&6
dae87f93 39230 fi
ce756cb0 39231
dae87f93
RN
39232 if test "$wxUSE_GSTREAMER" = "yes"; then
39233 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
39234#define wxUSE_GSTREAMER 1
39235_ACEOF
39236
dae87f93
RN
39237 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39238echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
39239 fi
39240 fi
39241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39242 cat >>confdefs.h <<\_ACEOF
39243#define wxUSE_MEDIACTRL 1
39244_ACEOF
39245
39246fi
39247
39248
a848cd7e
SC
39249if test "$cross_compiling" = "yes"; then
39250 OSINFO="\"$host\""
39251else
39252 OSINFO=`uname -s -r -m`
39253 OSINFO="\"$OSINFO\""
39254fi
39255
39256cat >>confdefs.h <<_ACEOF
39257#define WXWIN_OS_DESCRIPTION $OSINFO
39258_ACEOF
39259
39260
39261
39262if test "x$prefix" != "xNONE"; then
39263 wxPREFIX=$prefix
39264else
39265 wxPREFIX=$ac_default_prefix
39266fi
39267
39268cat >>confdefs.h <<_ACEOF
39269#define wxINSTALL_PREFIX "$wxPREFIX"
39270_ACEOF
39271
39272
a848cd7e
SC
39273
39274
39275CORE_BASE_LIBS="net base"
39276CORE_GUI_LIBS="adv core"
39277
39278if test "$wxUSE_XML" = "yes" ; then
39279 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39280fi
39281if test "$wxUSE_ODBC" != "no" ; then
39282 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39283 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39284fi
39285if test "$wxUSE_HTML" = "yes" ; then
39286 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39287fi
9a8f0513
VS
39288if test "$wxUSE_XRC" = "yes" ; then
39289 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39290fi
a848cd7e
SC
39291
39292if test "$wxUSE_GUI" != "yes"; then
39293 CORE_GUI_LIBS=""
39294fi
39295
39296
39297
39298
39299
39300
39301
39302
39303if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 39304 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
39305 if test "$USE_DARWIN" = 1; then
39306 LDFLAGS="$LDFLAGS -framework QuickTime"
39307 else
39308 LDFLAGS="$LDFLAGS -lQuickTimeLib"
39309 fi
07bea8f0 39310 fi
5dcf30a0 39311 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
39312 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39313 else
39314 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 39315 fi
a848cd7e
SC
39316fi
39317if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 39318 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
39319 if test "$wxUSE_MEDIACTRL" = "yes"; then
39320 LDFLAGS="$LDFLAGS -framework QuickTime"
39321 fi
a848cd7e
SC
39322fi
39323
39324
39325LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39326
39327have_cos=0
39328have_floor=0
39329
39330for ac_func in cos
39331do
39332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39333echo "$as_me:$LINENO: checking for $ac_func" >&5
39334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39335if eval "test \"\${$as_ac_var+set}\" = set"; then
39336 echo $ECHO_N "(cached) $ECHO_C" >&6
39337else
39338 cat >conftest.$ac_ext <<_ACEOF
39339/* confdefs.h. */
39340_ACEOF
39341cat confdefs.h >>conftest.$ac_ext
39342cat >>conftest.$ac_ext <<_ACEOF
39343/* end confdefs.h. */
ac1cb8d3
VS
39344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39346#define $ac_func innocuous_$ac_func
39347
a848cd7e
SC
39348/* System header to define __stub macros and hopefully few prototypes,
39349 which can conflict with char $ac_func (); below.
39350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39351 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39352
a848cd7e
SC
39353#ifdef __STDC__
39354# include <limits.h>
39355#else
39356# include <assert.h>
39357#endif
ac1cb8d3
VS
39358
39359#undef $ac_func
39360
a848cd7e
SC
39361/* Override any gcc2 internal prototype to avoid an error. */
39362#ifdef __cplusplus
39363extern "C"
39364{
39365#endif
39366/* We use char because int might match the return type of a gcc2
39367 builtin and then its argument prototype would still apply. */
39368char $ac_func ();
39369/* The GNU C library defines this for functions which it implements
39370 to always fail with ENOSYS. Some functions are actually named
39371 something starting with __ and the normal name is an alias. */
39372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39373choke me
39374#else
39375char (*f) () = $ac_func;
39376#endif
39377#ifdef __cplusplus
39378}
39379#endif
39380
39381int
39382main ()
39383{
39384return f != $ac_func;
39385 ;
39386 return 0;
39387}
39388_ACEOF
39389rm -f conftest.$ac_objext conftest$ac_exeext
39390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39391 (eval $ac_link) 2>conftest.er1
a848cd7e 39392 ac_status=$?
ac1cb8d3
VS
39393 grep -v '^ *+' conftest.er1 >conftest.err
39394 rm -f conftest.er1
39395 cat conftest.err >&5
a848cd7e
SC
39396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39397 (exit $ac_status); } &&
89be85c2
VS
39398 { ac_try='test -z "$ac_c_werror_flag"
39399 || test ! -s conftest.err'
ac1cb8d3
VS
39400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39401 (eval $ac_try) 2>&5
39402 ac_status=$?
39403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39404 (exit $ac_status); }; } &&
39405 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39407 (eval $ac_try) 2>&5
39408 ac_status=$?
39409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39410 (exit $ac_status); }; }; then
39411 eval "$as_ac_var=yes"
39412else
39413 echo "$as_me: failed program was:" >&5
39414sed 's/^/| /' conftest.$ac_ext >&5
39415
39416eval "$as_ac_var=no"
39417fi
ac1cb8d3
VS
39418rm -f conftest.err conftest.$ac_objext \
39419 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39420fi
39421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39423if test `eval echo '${'$as_ac_var'}'` = yes; then
39424 cat >>confdefs.h <<_ACEOF
39425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39426_ACEOF
39427 have_cos=1
39428fi
39429done
39430
39431
39432for ac_func in floor
39433do
39434as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39435echo "$as_me:$LINENO: checking for $ac_func" >&5
39436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39437if eval "test \"\${$as_ac_var+set}\" = set"; then
39438 echo $ECHO_N "(cached) $ECHO_C" >&6
39439else
39440 cat >conftest.$ac_ext <<_ACEOF
39441/* confdefs.h. */
39442_ACEOF
39443cat confdefs.h >>conftest.$ac_ext
39444cat >>conftest.$ac_ext <<_ACEOF
39445/* end confdefs.h. */
ac1cb8d3
VS
39446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39448#define $ac_func innocuous_$ac_func
39449
a848cd7e
SC
39450/* System header to define __stub macros and hopefully few prototypes,
39451 which can conflict with char $ac_func (); below.
39452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39453 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39454
a848cd7e
SC
39455#ifdef __STDC__
39456# include <limits.h>
39457#else
39458# include <assert.h>
39459#endif
ac1cb8d3
VS
39460
39461#undef $ac_func
39462
a848cd7e
SC
39463/* Override any gcc2 internal prototype to avoid an error. */
39464#ifdef __cplusplus
39465extern "C"
39466{
39467#endif
39468/* We use char because int might match the return type of a gcc2
39469 builtin and then its argument prototype would still apply. */
39470char $ac_func ();
39471/* The GNU C library defines this for functions which it implements
39472 to always fail with ENOSYS. Some functions are actually named
39473 something starting with __ and the normal name is an alias. */
39474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39475choke me
39476#else
39477char (*f) () = $ac_func;
39478#endif
39479#ifdef __cplusplus
39480}
39481#endif
39482
39483int
39484main ()
39485{
39486return f != $ac_func;
39487 ;
39488 return 0;
39489}
39490_ACEOF
39491rm -f conftest.$ac_objext conftest$ac_exeext
39492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39493 (eval $ac_link) 2>conftest.er1
a848cd7e 39494 ac_status=$?
ac1cb8d3
VS
39495 grep -v '^ *+' conftest.er1 >conftest.err
39496 rm -f conftest.er1
39497 cat conftest.err >&5
a848cd7e
SC
39498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39499 (exit $ac_status); } &&
89be85c2
VS
39500 { ac_try='test -z "$ac_c_werror_flag"
39501 || test ! -s conftest.err'
ac1cb8d3
VS
39502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39503 (eval $ac_try) 2>&5
39504 ac_status=$?
39505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506 (exit $ac_status); }; } &&
39507 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39509 (eval $ac_try) 2>&5
39510 ac_status=$?
39511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39512 (exit $ac_status); }; }; then
39513 eval "$as_ac_var=yes"
39514else
39515 echo "$as_me: failed program was:" >&5
39516sed 's/^/| /' conftest.$ac_ext >&5
39517
39518eval "$as_ac_var=no"
39519fi
ac1cb8d3
VS
39520rm -f conftest.err conftest.$ac_objext \
39521 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39522fi
39523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39524echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39525if test `eval echo '${'$as_ac_var'}'` = yes; then
39526 cat >>confdefs.h <<_ACEOF
39527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39528_ACEOF
39529 have_floor=1
39530fi
39531done
39532
39533echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
39534echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
39535if test "$have_cos" = 1 -a "$have_floor" = 1; then
39536 echo "$as_me:$LINENO: result: yes" >&5
39537echo "${ECHO_T}yes" >&6
39538else
39539 echo "$as_me:$LINENO: result: no" >&5
39540echo "${ECHO_T}no" >&6
39541 LIBS="$LIBS -lm"
39542 # use different functions to avoid configure caching
39543 have_sin=0
39544 have_ceil=0
39545
39546for ac_func in sin
39547do
39548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39549echo "$as_me:$LINENO: checking for $ac_func" >&5
39550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39551if eval "test \"\${$as_ac_var+set}\" = set"; then
39552 echo $ECHO_N "(cached) $ECHO_C" >&6
39553else
39554 cat >conftest.$ac_ext <<_ACEOF
39555/* confdefs.h. */
39556_ACEOF
39557cat confdefs.h >>conftest.$ac_ext
39558cat >>conftest.$ac_ext <<_ACEOF
39559/* end confdefs.h. */
ac1cb8d3
VS
39560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39562#define $ac_func innocuous_$ac_func
39563
a848cd7e
SC
39564/* System header to define __stub macros and hopefully few prototypes,
39565 which can conflict with char $ac_func (); below.
39566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39567 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39568
a848cd7e
SC
39569#ifdef __STDC__
39570# include <limits.h>
39571#else
39572# include <assert.h>
39573#endif
ac1cb8d3
VS
39574
39575#undef $ac_func
39576
a848cd7e
SC
39577/* Override any gcc2 internal prototype to avoid an error. */
39578#ifdef __cplusplus
39579extern "C"
39580{
39581#endif
39582/* We use char because int might match the return type of a gcc2
39583 builtin and then its argument prototype would still apply. */
39584char $ac_func ();
39585/* The GNU C library defines this for functions which it implements
39586 to always fail with ENOSYS. Some functions are actually named
39587 something starting with __ and the normal name is an alias. */
39588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39589choke me
39590#else
39591char (*f) () = $ac_func;
39592#endif
39593#ifdef __cplusplus
39594}
39595#endif
39596
39597int
39598main ()
39599{
39600return f != $ac_func;
39601 ;
39602 return 0;
39603}
39604_ACEOF
39605rm -f conftest.$ac_objext conftest$ac_exeext
39606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39607 (eval $ac_link) 2>conftest.er1
a848cd7e 39608 ac_status=$?
ac1cb8d3
VS
39609 grep -v '^ *+' conftest.er1 >conftest.err
39610 rm -f conftest.er1
39611 cat conftest.err >&5
a848cd7e
SC
39612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613 (exit $ac_status); } &&
89be85c2
VS
39614 { ac_try='test -z "$ac_c_werror_flag"
39615 || test ! -s conftest.err'
ac1cb8d3
VS
39616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39617 (eval $ac_try) 2>&5
39618 ac_status=$?
39619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39620 (exit $ac_status); }; } &&
39621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39623 (eval $ac_try) 2>&5
39624 ac_status=$?
39625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39626 (exit $ac_status); }; }; then
39627 eval "$as_ac_var=yes"
39628else
39629 echo "$as_me: failed program was:" >&5
39630sed 's/^/| /' conftest.$ac_ext >&5
39631
39632eval "$as_ac_var=no"
39633fi
ac1cb8d3
VS
39634rm -f conftest.err conftest.$ac_objext \
39635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39636fi
39637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39638echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39639if test `eval echo '${'$as_ac_var'}'` = yes; then
39640 cat >>confdefs.h <<_ACEOF
39641#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39642_ACEOF
39643 have_sin=1
39644fi
39645done
39646
39647
39648for ac_func in ceil
39649do
39650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39651echo "$as_me:$LINENO: checking for $ac_func" >&5
39652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39653if eval "test \"\${$as_ac_var+set}\" = set"; then
39654 echo $ECHO_N "(cached) $ECHO_C" >&6
39655else
39656 cat >conftest.$ac_ext <<_ACEOF
39657/* confdefs.h. */
39658_ACEOF
39659cat confdefs.h >>conftest.$ac_ext
39660cat >>conftest.$ac_ext <<_ACEOF
39661/* end confdefs.h. */
ac1cb8d3
VS
39662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39664#define $ac_func innocuous_$ac_func
39665
a848cd7e
SC
39666/* System header to define __stub macros and hopefully few prototypes,
39667 which can conflict with char $ac_func (); below.
39668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39669 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39670
a848cd7e
SC
39671#ifdef __STDC__
39672# include <limits.h>
39673#else
39674# include <assert.h>
39675#endif
ac1cb8d3
VS
39676
39677#undef $ac_func
39678
a848cd7e
SC
39679/* Override any gcc2 internal prototype to avoid an error. */
39680#ifdef __cplusplus
39681extern "C"
39682{
39683#endif
39684/* We use char because int might match the return type of a gcc2
39685 builtin and then its argument prototype would still apply. */
39686char $ac_func ();
39687/* The GNU C library defines this for functions which it implements
39688 to always fail with ENOSYS. Some functions are actually named
39689 something starting with __ and the normal name is an alias. */
39690#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39691choke me
39692#else
39693char (*f) () = $ac_func;
39694#endif
39695#ifdef __cplusplus
39696}
39697#endif
39698
39699int
39700main ()
39701{
39702return f != $ac_func;
39703 ;
39704 return 0;
39705}
39706_ACEOF
39707rm -f conftest.$ac_objext conftest$ac_exeext
39708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39709 (eval $ac_link) 2>conftest.er1
a848cd7e 39710 ac_status=$?
ac1cb8d3
VS
39711 grep -v '^ *+' conftest.er1 >conftest.err
39712 rm -f conftest.er1
39713 cat conftest.err >&5
a848cd7e
SC
39714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39715 (exit $ac_status); } &&
89be85c2
VS
39716 { ac_try='test -z "$ac_c_werror_flag"
39717 || test ! -s conftest.err'
ac1cb8d3
VS
39718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39719 (eval $ac_try) 2>&5
39720 ac_status=$?
39721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39722 (exit $ac_status); }; } &&
39723 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39725 (eval $ac_try) 2>&5
39726 ac_status=$?
39727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39728 (exit $ac_status); }; }; then
39729 eval "$as_ac_var=yes"
39730else
39731 echo "$as_me: failed program was:" >&5
39732sed 's/^/| /' conftest.$ac_ext >&5
39733
39734eval "$as_ac_var=no"
39735fi
ac1cb8d3
VS
39736rm -f conftest.err conftest.$ac_objext \
39737 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39738fi
39739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39740echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39741if test `eval echo '${'$as_ac_var'}'` = yes; then
39742 cat >>confdefs.h <<_ACEOF
39743#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39744_ACEOF
39745 have_ceil=1
39746fi
39747done
39748
39749 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
39750echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
39751 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
39752 echo "$as_me:$LINENO: result: yes" >&5
39753echo "${ECHO_T}yes" >&6
39754 else
39755 echo "$as_me:$LINENO: result: no" >&5
39756echo "${ECHO_T}no" >&6
39757 # not sure we should warn the user, crash, etc.
39758 fi
39759fi
39760
39761if test "$wxUSE_GUI" = "yes"; then
39762
39763
39764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
39765 drawing dynamic erase event exec font image \
39766 minimal propsize rotate shaped widgets render"
39767
39768 if test "$wxUSE_MONOLITHIC" != "yes"; then
39769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
39770 fi
39771else
39772 SAMPLES_SUBDIRS="console"
39773fi
39774
39775
ceec2216 39776INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
39777-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
39778
39779if test "$GXX" = yes ; then
5294a27e
VZ
39780 CWARNINGS="-Wall"
39781 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
39782 fi
39783
39784EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
39785
0c3c69fc 39786CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 39787CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 39788CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 39789
95986553
DE
39790if test "x$MWCC" = "xyes"; then
39791
39792 CC="$CC -cwd source -I-"
39793 CXX="$CXX -cwd source -I-"
39794fi
39795
a848cd7e 39796
0c3c69fc 39797LIBS=`echo $LIBS`
a848cd7e
SC
39798EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
39799EXTRALIBS_XML="$EXPAT_LINK"
39800EXTRALIBS_HTML="$MSPACK_LINK"
39801EXTRALIBS_ODBC="$ODBC_LINK"
39802if test "$wxUSE_GUI" = "yes"; then
2e350179 39803 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
39804fi
39805if test "$wxUSE_OPENGL" = "yes"; then
39806 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
39807fi
39808
39809LDFLAGS="$LDFLAGS $PROFILE"
39810
39811if test "$wxUSE_GTK" = 1; then
39812 WXCONFIG_INCLUDE=
39813else
39814 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
39815fi
39816
39817WXCONFIG_EXTRALIBS="$LIBS"
39818
39819if test "$wxUSE_REGEX" = "builtin" ; then
39820 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
39821fi
39822if test "$wxUSE_EXPAT" = "builtin" ; then
39823 wxconfig_3rdparty="$wxconfig_3rdparty expat"
39824fi
39825if test "$wxUSE_ODBC" = "builtin" ; then
39826 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39827fi
39828if test "$wxUSE_LIBTIFF" = "builtin" ; then
39829 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
39830fi
39831if test "$wxUSE_LIBJPEG" = "builtin" ; then
39832 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
39833fi
39834if test "$wxUSE_LIBPNG" = "builtin" ; then
39835 wxconfig_3rdparty="$wxconfig_3rdparty png"
39836fi
39837if test "$wxUSE_ZLIB" = "builtin" ; then
39838 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
39839fi
39840if test "$wxUSE_ODBC" = "builtin" ; then
39841 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39842fi
39843
39844for i in $wxconfig_3rdparty ; do
ceec2216 39845 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
39846done
39847
39848
39849if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
39850 WXUNIV=1
39851else
39852 WXUNIV=0
39853fi
39854
39855
39856
39857
39858
39859
39860
39861
39862
39863if test $wxUSE_MONOLITHIC = "yes" ; then
39864 MONOLITHIC=1
39865else
39866 MONOLITHIC=0
39867fi
39868
39869if test $wxUSE_PLUGINS = "yes" ; then
39870 USE_PLUGINS=1
39871else
39872 USE_PLUGINS=0
39873fi
39874
39875if test $wxUSE_ODBC != "no" ; then
39876 USE_ODBC=1
39877else
39878 USE_ODBC=0
39879fi
39880
39881if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
39882 OFFICIAL_BUILD=1
39883else
39884 OFFICIAL_BUILD=0
39885fi
39886
39887
39888
39889
39890
39891
39892
39893
39894
39895
39896
39897
39898
39899
39900
39901
39902
39903
39904
ceec2216 39905
d1c38808 39906
a848cd7e
SC
39907
39908
39909TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
39910
39911
39912
39913
39914
39915
39916
39917
4d4ff94c
VZ
39918case "$TOOLKIT" in
39919 GTK)
39920 TOOLKIT_USER="GTK+"
39921 if test "$WXGTK20" = 1; then
39922 TOOLKIT_USER="$TOOLKIT_USER 2"
39923 fi
9a8f0513 39924 ;;
4d4ff94c
VZ
39925
39926 *)
39927 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 39928 ;;
4d4ff94c 39929esac
a848cd7e 39930
9a8f0513 39931
1e9e8aba
DE
39932
39933
a848cd7e
SC
39934 if test "x$BAKEFILE_HOST" = "x"; then
39935 BAKEFILE_HOST="${host}"
39936 fi
39937
39938 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
39939
39940 if test -n "$ac_tool_prefix"; then
39941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
39942set dummy ${ac_tool_prefix}ranlib; ac_word=$2
39943echo "$as_me:$LINENO: checking for $ac_word" >&5
39944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39945if test "${ac_cv_prog_RANLIB+set}" = set; then
39946 echo $ECHO_N "(cached) $ECHO_C" >&6
39947else
39948 if test -n "$RANLIB"; then
39949 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
39950else
39951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39952for as_dir in $PATH
39953do
39954 IFS=$as_save_IFS
39955 test -z "$as_dir" && as_dir=.
39956 for ac_exec_ext in '' $ac_executable_extensions; do
39957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
39959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39960 break 2
39961 fi
39962done
39963done
39964
39965fi
39966fi
39967RANLIB=$ac_cv_prog_RANLIB
39968if test -n "$RANLIB"; then
39969 echo "$as_me:$LINENO: result: $RANLIB" >&5
39970echo "${ECHO_T}$RANLIB" >&6
39971else
39972 echo "$as_me:$LINENO: result: no" >&5
39973echo "${ECHO_T}no" >&6
39974fi
39975
39976fi
39977if test -z "$ac_cv_prog_RANLIB"; then
39978 ac_ct_RANLIB=$RANLIB
39979 # Extract the first word of "ranlib", so it can be a program name with args.
39980set dummy ranlib; ac_word=$2
39981echo "$as_me:$LINENO: checking for $ac_word" >&5
39982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39983if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
39984 echo $ECHO_N "(cached) $ECHO_C" >&6
39985else
39986 if test -n "$ac_ct_RANLIB"; then
39987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
39988else
39989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39990for as_dir in $PATH
39991do
39992 IFS=$as_save_IFS
39993 test -z "$as_dir" && as_dir=.
39994 for ac_exec_ext in '' $ac_executable_extensions; do
39995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39996 ac_cv_prog_ac_ct_RANLIB="ranlib"
39997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39998 break 2
39999 fi
40000done
40001done
40002
40003 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40004fi
40005fi
40006ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40007if test -n "$ac_ct_RANLIB"; then
40008 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40009echo "${ECHO_T}$ac_ct_RANLIB" >&6
40010else
40011 echo "$as_me:$LINENO: result: no" >&5
40012echo "${ECHO_T}no" >&6
40013fi
40014
40015 RANLIB=$ac_ct_RANLIB
40016else
40017 RANLIB="$ac_cv_prog_RANLIB"
40018fi
40019
40020 # Find a good install program. We prefer a C program (faster),
40021# so one script is as good as another. But avoid the broken or
40022# incompatible versions:
40023# SysV /etc/install, /usr/sbin/install
40024# SunOS /usr/etc/install
40025# IRIX /sbin/install
40026# AIX /bin/install
40027# AmigaOS /C/install, which installs bootblocks on floppy discs
40028# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40029# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40030# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40031# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40032# ./install, which can be erroneously created by make from ./install.sh.
40033echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40034echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40035if test -z "$INSTALL"; then
40036if test "${ac_cv_path_install+set}" = set; then
40037 echo $ECHO_N "(cached) $ECHO_C" >&6
40038else
40039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40040for as_dir in $PATH
40041do
40042 IFS=$as_save_IFS
40043 test -z "$as_dir" && as_dir=.
40044 # Account for people who put trailing slashes in PATH elements.
40045case $as_dir/ in
40046 ./ | .// | /cC/* | \
40047 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40048 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40049 /usr/ucb/* ) ;;
40050 *)
40051 # OSF1 and SCO ODT 3.0 have their own names for install.
40052 # Don't use installbsd from OSF since it installs stuff as root
40053 # by default.
40054 for ac_prog in ginstall scoinst install; do
40055 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40056 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40057 if test $ac_prog = install &&
40058 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40059 # AIX install. It has an incompatible calling convention.
40060 :
40061 elif test $ac_prog = install &&
40062 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40063 # program-specific install script used by HP pwplus--don't use.
40064 :
40065 else
40066 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40067 break 3
40068 fi
40069 fi
a848cd7e
SC
40070 done
40071 done
40072 ;;
40073esac
40074done
40075
40076
40077fi
40078 if test "${ac_cv_path_install+set}" = set; then
40079 INSTALL=$ac_cv_path_install
40080 else
40081 # As a last resort, use the slow shell script. We don't cache a
40082 # path for INSTALL within a source directory, because that will
40083 # break other packages using the cache if that directory is
40084 # removed, or if the path is relative.
40085 INSTALL=$ac_install_sh
40086 fi
40087fi
40088echo "$as_me:$LINENO: result: $INSTALL" >&5
40089echo "${ECHO_T}$INSTALL" >&6
40090
40091# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40092# It thinks the first close brace ends the variable substitution.
40093test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40094
40095test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40096
40097test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40098
40099 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40100echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40101LN_S=$as_ln_s
40102if test "$LN_S" = "ln -s"; then
40103 echo "$as_me:$LINENO: result: yes" >&5
40104echo "${ECHO_T}yes" >&6
40105else
40106 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40107echo "${ECHO_T}no, using $LN_S" >&6
40108fi
40109
40110
40111 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40112echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40113set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40114if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40115 echo $ECHO_N "(cached) $ECHO_C" >&6
40116else
40117 cat >conftest.make <<\_ACEOF
40118all:
40119 @echo 'ac_maketemp="$(MAKE)"'
40120_ACEOF
40121# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40122eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40123if test -n "$ac_maketemp"; then
40124 eval ac_cv_prog_make_${ac_make}_set=yes
40125else
40126 eval ac_cv_prog_make_${ac_make}_set=no
40127fi
40128rm -f conftest.make
40129fi
40130if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40131 echo "$as_me:$LINENO: result: yes" >&5
40132echo "${ECHO_T}yes" >&6
40133 SET_MAKE=
40134else
40135 echo "$as_me:$LINENO: result: no" >&5
40136echo "${ECHO_T}no" >&6
40137 SET_MAKE="MAKE=${MAKE-make}"
40138fi
40139
40140
40141
40142 if test -n "$ac_tool_prefix"; then
40143 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40144set dummy ${ac_tool_prefix}ar; ac_word=$2
40145echo "$as_me:$LINENO: checking for $ac_word" >&5
40146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40147if test "${ac_cv_prog_AR+set}" = set; then
40148 echo $ECHO_N "(cached) $ECHO_C" >&6
40149else
40150 if test -n "$AR"; then
40151 ac_cv_prog_AR="$AR" # Let the user override the test.
40152else
40153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40154for as_dir in $PATH
40155do
40156 IFS=$as_save_IFS
40157 test -z "$as_dir" && as_dir=.
40158 for ac_exec_ext in '' $ac_executable_extensions; do
40159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40160 ac_cv_prog_AR="${ac_tool_prefix}ar"
40161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40162 break 2
40163 fi
40164done
40165done
40166
40167fi
40168fi
40169AR=$ac_cv_prog_AR
40170if test -n "$AR"; then
40171 echo "$as_me:$LINENO: result: $AR" >&5
40172echo "${ECHO_T}$AR" >&6
40173else
40174 echo "$as_me:$LINENO: result: no" >&5
40175echo "${ECHO_T}no" >&6
40176fi
40177
40178fi
40179if test -z "$ac_cv_prog_AR"; then
40180 ac_ct_AR=$AR
40181 # Extract the first word of "ar", so it can be a program name with args.
40182set dummy ar; ac_word=$2
40183echo "$as_me:$LINENO: checking for $ac_word" >&5
40184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40185if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40186 echo $ECHO_N "(cached) $ECHO_C" >&6
40187else
40188 if test -n "$ac_ct_AR"; then
40189 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40190else
40191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40192for as_dir in $PATH
40193do
40194 IFS=$as_save_IFS
40195 test -z "$as_dir" && as_dir=.
40196 for ac_exec_ext in '' $ac_executable_extensions; do
40197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40198 ac_cv_prog_ac_ct_AR="ar"
40199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40200 break 2
40201 fi
40202done
40203done
40204
40205 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40206fi
40207fi
40208ac_ct_AR=$ac_cv_prog_ac_ct_AR
40209if test -n "$ac_ct_AR"; then
40210 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40211echo "${ECHO_T}$ac_ct_AR" >&6
40212else
40213 echo "$as_me:$LINENO: result: no" >&5
40214echo "${ECHO_T}no" >&6
40215fi
40216
40217 AR=$ac_ct_AR
40218else
40219 AR="$ac_cv_prog_AR"
40220fi
40221
40222 if test -n "$ac_tool_prefix"; then
40223 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40224set dummy ${ac_tool_prefix}strip; ac_word=$2
40225echo "$as_me:$LINENO: checking for $ac_word" >&5
40226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40227if test "${ac_cv_prog_STRIP+set}" = set; then
40228 echo $ECHO_N "(cached) $ECHO_C" >&6
40229else
40230 if test -n "$STRIP"; then
40231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40232else
40233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40234for as_dir in $PATH
40235do
40236 IFS=$as_save_IFS
40237 test -z "$as_dir" && as_dir=.
40238 for ac_exec_ext in '' $ac_executable_extensions; do
40239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40240 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40242 break 2
40243 fi
40244done
40245done
40246
40247fi
40248fi
40249STRIP=$ac_cv_prog_STRIP
40250if test -n "$STRIP"; then
40251 echo "$as_me:$LINENO: result: $STRIP" >&5
40252echo "${ECHO_T}$STRIP" >&6
40253else
40254 echo "$as_me:$LINENO: result: no" >&5
40255echo "${ECHO_T}no" >&6
40256fi
40257
40258fi
40259if test -z "$ac_cv_prog_STRIP"; then
40260 ac_ct_STRIP=$STRIP
40261 # Extract the first word of "strip", so it can be a program name with args.
40262set dummy strip; ac_word=$2
40263echo "$as_me:$LINENO: checking for $ac_word" >&5
40264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40265if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40266 echo $ECHO_N "(cached) $ECHO_C" >&6
40267else
40268 if test -n "$ac_ct_STRIP"; then
40269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40270else
40271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40272for as_dir in $PATH
40273do
40274 IFS=$as_save_IFS
40275 test -z "$as_dir" && as_dir=.
40276 for ac_exec_ext in '' $ac_executable_extensions; do
40277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40278 ac_cv_prog_ac_ct_STRIP="strip"
40279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40280 break 2
40281 fi
40282done
40283done
40284
40285 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40286fi
40287fi
40288ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40289if test -n "$ac_ct_STRIP"; then
40290 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40291echo "${ECHO_T}$ac_ct_STRIP" >&6
40292else
40293 echo "$as_me:$LINENO: result: no" >&5
40294echo "${ECHO_T}no" >&6
40295fi
40296
40297 STRIP=$ac_ct_STRIP
40298else
40299 STRIP="$ac_cv_prog_STRIP"
40300fi
40301
40302 if test -n "$ac_tool_prefix"; then
40303 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40304set dummy ${ac_tool_prefix}nm; ac_word=$2
40305echo "$as_me:$LINENO: checking for $ac_word" >&5
40306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40307if test "${ac_cv_prog_NM+set}" = set; then
40308 echo $ECHO_N "(cached) $ECHO_C" >&6
40309else
40310 if test -n "$NM"; then
40311 ac_cv_prog_NM="$NM" # Let the user override the test.
40312else
40313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40314for as_dir in $PATH
40315do
40316 IFS=$as_save_IFS
40317 test -z "$as_dir" && as_dir=.
40318 for ac_exec_ext in '' $ac_executable_extensions; do
40319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40320 ac_cv_prog_NM="${ac_tool_prefix}nm"
40321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40322 break 2
40323 fi
40324done
40325done
40326
40327fi
40328fi
40329NM=$ac_cv_prog_NM
40330if test -n "$NM"; then
40331 echo "$as_me:$LINENO: result: $NM" >&5
40332echo "${ECHO_T}$NM" >&6
40333else
40334 echo "$as_me:$LINENO: result: no" >&5
40335echo "${ECHO_T}no" >&6
40336fi
40337
40338fi
40339if test -z "$ac_cv_prog_NM"; then
40340 ac_ct_NM=$NM
40341 # Extract the first word of "nm", so it can be a program name with args.
40342set dummy nm; ac_word=$2
40343echo "$as_me:$LINENO: checking for $ac_word" >&5
40344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40345if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
40346 echo $ECHO_N "(cached) $ECHO_C" >&6
40347else
40348 if test -n "$ac_ct_NM"; then
40349 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
40350else
40351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40352for as_dir in $PATH
40353do
40354 IFS=$as_save_IFS
40355 test -z "$as_dir" && as_dir=.
40356 for ac_exec_ext in '' $ac_executable_extensions; do
40357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40358 ac_cv_prog_ac_ct_NM="nm"
40359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40360 break 2
40361 fi
40362done
40363done
40364
40365 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
40366fi
40367fi
40368ac_ct_NM=$ac_cv_prog_ac_ct_NM
40369if test -n "$ac_ct_NM"; then
40370 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
40371echo "${ECHO_T}$ac_ct_NM" >&6
40372else
40373 echo "$as_me:$LINENO: result: no" >&5
40374echo "${ECHO_T}no" >&6
40375fi
40376
40377 NM=$ac_ct_NM
40378else
40379 NM="$ac_cv_prog_NM"
40380fi
40381
40382
40383 case ${BAKEFILE_HOST} in
40384 *-hp-hpux* )
1e9e8aba 40385 INSTALL_DIR="mkdir -p"
a848cd7e
SC
40386 ;;
40387 *) INSTALL_DIR="$INSTALL -d"
40388 ;;
40389 esac
40390
40391
40392 LDFLAGS_GUI=
40393 case ${BAKEFILE_HOST} in
40394 *-*-cygwin* | *-*-mingw32* )
40395 LDFLAGS_GUI="-mwindows"
40396 esac
40397
40398
40399 fi
40400
40401 echo "$as_me:$LINENO: checking if make is GNU make" >&5
40402echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
40403if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
40404 echo $ECHO_N "(cached) $ECHO_C" >&6
40405else
40406
40407 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
40408 egrep -s GNU > /dev/null); then
40409 bakefile_cv_prog_makeisgnu="yes"
40410 else
40411 bakefile_cv_prog_makeisgnu="no"
40412 fi
40413
40414fi
40415echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
40416echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
40417
40418 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
40419 IF_GNU_MAKE=""
40420 else
40421 IF_GNU_MAKE="#"
40422 fi
40423
40424
40425
40426 PLATFORM_UNIX=0
40427 PLATFORM_WIN32=0
40428 PLATFORM_MSDOS=0
40429 PLATFORM_MAC=0
1e9e8aba 40430 PLATFORM_MACOS=0
a848cd7e
SC
40431 PLATFORM_MACOSX=0
40432 PLATFORM_OS2=0
1e9e8aba 40433 PLATFORM_BEOS=0
a848cd7e
SC
40434
40435 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
40436 case "${BAKEFILE_HOST}" in
40437 *-*-cygwin* | *-*-mingw32* )
40438 PLATFORM_WIN32=1
40439 ;;
40440 *-pc-msdosdjgpp )
40441 PLATFORM_MSDOS=1
40442 ;;
40443 *-pc-os2_emx | *-pc-os2-emx )
40444 PLATFORM_OS2=1
40445 ;;
40446 powerpc-*-darwin* )
40447 PLATFORM_MAC=1
40448 PLATFORM_MACOSX=1
40449 ;;
1e9e8aba
DE
40450 *-*-beos* )
40451 PLATFORM_BEOS=1
40452 ;;
40453 powerpc-apple-macos* )
40454 PLATFORM_MAC=1
40455 PLATFORM_MACOS=1
40456 ;;
a848cd7e
SC
40457 * )
40458 PLATFORM_UNIX=1
40459 ;;
40460 esac
40461 else
40462 case "$BAKEFILE_FORCE_PLATFORM" in
40463 win32 )
40464 PLATFORM_WIN32=1
40465 ;;
40466 msdos )
40467 PLATFORM_MSDOS=1
40468 ;;
40469 os2 )
40470 PLATFORM_OS2=1
40471 ;;
40472 darwin )
40473 PLATFORM_MAC=1
40474 PLATFORM_MACOSX=1
40475 ;;
40476 unix )
40477 PLATFORM_UNIX=1
40478 ;;
1e9e8aba
DE
40479 beos )
40480 PLATFORM_BEOS=1
40481 ;;
a848cd7e
SC
40482 * )
40483 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
40484echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
40485 { (exit 1); exit 1; }; }
40486 ;;
40487 esac
40488 fi
40489
40490
40491
40492
40493
40494
40495
40496
40497
1e9e8aba
DE
40498
40499
a848cd7e
SC
40500 # Check whether --enable-omf or --disable-omf was given.
40501if test "${enable_omf+set}" = set; then
40502 enableval="$enable_omf"
40503 bk_os2_use_omf="$enableval"
40504fi;
40505
40506 case "${BAKEFILE_HOST}" in
40507 *-*-darwin* )
40508 CFLAGS="$CFLAGS -fno-common"
40509 CXXFLAGS="$CXXFLAGS -fno-common"
40510 ;;
40511
40512 *-pc-os2_emx | *-pc-os2-emx )
40513 if test "x$bk_os2_use_omf" = "xyes" ; then
40514 AR=emxomfar
40515 RANLIB=:
40516 LDFLAGS="-Zomf $LDFLAGS"
40517 CFLAGS="-Zomf $CFLAGS"
40518 CXXFLAGS="-Zomf $CXXFLAGS"
40519 OS2_LIBEXT="lib"
40520 else
40521 OS2_LIBEXT="a"
40522 fi
40523 ;;
1e9e8aba
DE
40524
40525 i*86-*-beos* )
40526 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
40527 ;;
a848cd7e
SC
40528 esac
40529
40530
40531 SO_SUFFIX="so"
40532 SO_SUFFIX_MODULE="so"
40533 EXEEXT=""
40534 LIBPREFIX="lib"
40535 LIBEXT=".a"
40536 DLLPREFIX="lib"
40537 DLLPREFIX_MODULE=""
40538 DLLIMP_SUFFIX=""
40539
40540 case "${BAKEFILE_HOST}" in
40541 *-hp-hpux* )
40542 SO_SUFFIX="sl"
40543 SO_SUFFIX_MODULE="sl"
40544 ;;
40545 *-*-aix* )
40546 SO_SUFFIX="a"
40547 SO_SUFFIX_MODULE="a"
40548 ;;
40549 *-*-cygwin* | *-*-mingw32* )
40550 SO_SUFFIX="dll"
40551 SO_SUFFIX_MODULE="dll"
40552 DLLIMP_SUFFIX="dll.a"
40553 EXEEXT=".exe"
40554 DLLPREFIX=""
40555 ;;
40556 *-pc-msdosdjgpp )
40557 EXEEXT=".exe"
40558 DLLPREFIX=""
40559 ;;
40560 *-pc-os2_emx | *-pc-os2-emx )
40561 SO_SUFFIX="dll"
40562 SO_SUFFIX_MODULE="dll"
40563 DLLIMP_SUFFIX=$OS2_LIBEXT
40564 EXEEXT=".exe"
40565 DLLPREFIX=""
40566 LIBPREFIX=""
40567 LIBEXT=".$OS2_LIBEXT"
40568 ;;
40569 powerpc-*-darwin* )
40570 SO_SUFFIX="dylib"
40571 SO_SUFFIX_MODULE="bundle"
40572 ;;
40573 esac
40574
40575 if test "x$DLLIMP_SUFFIX" = "x" ; then
40576 DLLIMP_SUFFIX="$SO_SUFFIX"
40577 fi
40578
40579
40580
40581
40582
40583
40584
40585
40586
40587
40588
1e9e8aba
DE
40589 PIC_FLAG=""
40590 if test "x$GCC" = "xyes"; then
a848cd7e
SC
40591 PIC_FLAG="-fPIC"
40592 fi
40593
1e9e8aba
DE
40594 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
40595 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
40596
a848cd7e
SC
40597 case "${BAKEFILE_HOST}" in
40598 *-hp-hpux* )
1e9e8aba 40599 if test "x$GCC" != "xyes"; then
a848cd7e
SC
40600 LDFLAGS="$LDFLAGS -L/usr/lib"
40601
40602 SHARED_LD_CC="${CC} -b -o"
40603 SHARED_LD_CXX="${CXX} -b -o"
40604 PIC_FLAG="+Z"
40605 fi
40606 ;;
40607
40608 *-*-linux* )
40609 if test "x$GCC" != "xyes"; then
40610 echo "$as_me:$LINENO: checking for Intel compiler" >&5
40611echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
40612if test "${bakefile_cv_prog_icc+set}" = set; then
40613 echo $ECHO_N "(cached) $ECHO_C" >&6
40614else
40615
40616 cat >conftest.$ac_ext <<_ACEOF
40617/* confdefs.h. */
40618_ACEOF
40619cat confdefs.h >>conftest.$ac_ext
40620cat >>conftest.$ac_ext <<_ACEOF
40621/* end confdefs.h. */
40622
40623int
40624main ()
40625{
40626
40627 #ifndef __INTEL_COMPILER
40628 #error Not icc
40629 #endif
40630
40631 ;
40632 return 0;
40633}
40634_ACEOF
40635rm -f conftest.$ac_objext
40636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40637 (eval $ac_compile) 2>conftest.er1
a848cd7e 40638 ac_status=$?
ac1cb8d3
VS
40639 grep -v '^ *+' conftest.er1 >conftest.err
40640 rm -f conftest.er1
40641 cat conftest.err >&5
a848cd7e
SC
40642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40643 (exit $ac_status); } &&
89be85c2
VS
40644 { ac_try='test -z "$ac_c_werror_flag"
40645 || test ! -s conftest.err'
ac1cb8d3
VS
40646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40647 (eval $ac_try) 2>&5
40648 ac_status=$?
40649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40650 (exit $ac_status); }; } &&
40651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40653 (eval $ac_try) 2>&5
40654 ac_status=$?
40655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40656 (exit $ac_status); }; }; then
40657 bakefile_cv_prog_icc=yes
40658else
40659 echo "$as_me: failed program was:" >&5
40660sed 's/^/| /' conftest.$ac_ext >&5
40661
40662bakefile_cv_prog_icc=no
40663
40664fi
ac1cb8d3 40665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40666
40667fi
40668echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
40669echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
40670 if test "$bakefile_cv_prog_icc" = "yes"; then
40671 PIC_FLAG="-KPIC"
40672 fi
40673 fi
40674 ;;
40675
40676 *-*-solaris2* )
40677 if test "x$GCC" != xyes ; then
40678 SHARED_LD_CC="${CC} -G -o"
40679 SHARED_LD_CXX="${CXX} -G -o"
40680 PIC_FLAG="-KPIC"
40681 fi
40682 ;;
40683
40684 *-*-darwin* )
40685
40686 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
40687echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
40688if test "${wx_cv_gcc31+set}" = set; then
40689 echo $ECHO_N "(cached) $ECHO_C" >&6
40690else
40691
40692 cat >conftest.$ac_ext <<_ACEOF
40693/* confdefs.h. */
40694_ACEOF
40695cat confdefs.h >>conftest.$ac_ext
40696cat >>conftest.$ac_ext <<_ACEOF
40697/* end confdefs.h. */
40698
40699int
40700main ()
40701{
40702
40703 #if (__GNUC__ < 3) || \
40704 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
40705 #error old gcc
40706 #endif
40707
40708 ;
40709 return 0;
40710}
40711_ACEOF
40712rm -f conftest.$ac_objext
40713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40714 (eval $ac_compile) 2>conftest.er1
a848cd7e 40715 ac_status=$?
ac1cb8d3
VS
40716 grep -v '^ *+' conftest.er1 >conftest.err
40717 rm -f conftest.er1
40718 cat conftest.err >&5
a848cd7e
SC
40719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40720 (exit $ac_status); } &&
89be85c2
VS
40721 { ac_try='test -z "$ac_c_werror_flag"
40722 || test ! -s conftest.err'
ac1cb8d3
VS
40723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40724 (eval $ac_try) 2>&5
40725 ac_status=$?
40726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40727 (exit $ac_status); }; } &&
40728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40730 (eval $ac_try) 2>&5
40731 ac_status=$?
40732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40733 (exit $ac_status); }; }; then
40734
40735 wx_cv_gcc31=yes
40736
40737else
40738 echo "$as_me: failed program was:" >&5
40739sed 's/^/| /' conftest.$ac_ext >&5
40740
40741
40742 wx_cv_gcc31=no
40743
40744
40745fi
ac1cb8d3 40746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40747
40748fi
40749echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
40750echo "${ECHO_T}$wx_cv_gcc31" >&6
40751 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
40752
40753D='$'
40754cat <<EOF >shared-ld-sh
a848cd7e
SC
40755#!/bin/sh
40756#-----------------------------------------------------------------------------
40757#-- Name: distrib/mac/shared-ld-sh
40758#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
40759#-- Author: Gilles Depeyrot
40760#-- Copyright: (c) 2002 Gilles Depeyrot
40761#-- Licence: any use permitted
40762#-----------------------------------------------------------------------------
40763
40764verbose=0
40765args=""
40766objects=""
40767linking_flag="-dynamiclib"
40768
473276a9
VS
40769while test ${D}# -gt 0; do
40770 case ${D}1 in
a848cd7e
SC
40771
40772 -v)
40773 verbose=1
40774 ;;
40775
40776 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
40777 # collect these options and values
473276a9 40778 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
40779 shift
40780 ;;
40781
40782 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
40783 # collect these options
473276a9 40784 args="${D}{args} ${D}1"
a848cd7e
SC
40785 ;;
40786
40787 -dynamiclib|-bundle)
473276a9 40788 linking_flag="${D}1"
a848cd7e
SC
40789 ;;
40790
40791 -*)
473276a9 40792 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
40793 exit 1
40794 ;;
40795
40796 *.o | *.a | *.dylib)
40797 # collect object files
473276a9 40798 objects="${D}{objects} ${D}1"
a848cd7e
SC
40799 ;;
40800
40801 *)
473276a9 40802 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
40803 exit 1
40804 ;;
40805
40806 esac
40807 shift
40808done
40809
40810#
40811# Link one module containing all the others
40812#
473276a9
VS
40813if test ${D}{verbose} = 1; then
40814 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 40815fi
473276a9
VS
40816c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
40817status=${D}?
40818if test ${D}{status} != 0; then
40819 exit ${D}{status}
a848cd7e
SC
40820fi
40821
40822#
40823# Link the shared library from the single module created
40824#
473276a9
VS
40825if test ${D}{verbose} = 1; then
40826 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 40827fi
473276a9
VS
40828c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
40829status=${D}?
40830if test ${D}{status} != 0; then
40831 exit ${D}{status}
a848cd7e
SC
40832fi
40833
40834#
40835# Remove intermediate module
40836#
473276a9 40837rm -f master.${D}${D}.o
a848cd7e
SC
40838
40839exit 0
40840EOF
473276a9 40841
a848cd7e
SC
40842 chmod +x shared-ld-sh
40843
40844 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
40845 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
40846 SHARED_LD_CXX="$SHARED_LD_CC"
40847 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
40848 else
40849 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
40850 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
40851 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
40852 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
40853 fi
40854
40855 PIC_FLAG="-dynamic -fPIC"
40856 ;;
40857
40858 *-*-aix* )
40859 if test "x$GCC" != "xyes"; then
40860 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
40861set dummy makeC++SharedLib; ac_word=$2
40862echo "$as_me:$LINENO: checking for $ac_word" >&5
40863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40864if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
40865 echo $ECHO_N "(cached) $ECHO_C" >&6
40866else
40867 if test -n "$AIX_CXX_LD"; then
40868 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
40869else
40870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40871for as_dir in $PATH
40872do
40873 IFS=$as_save_IFS
40874 test -z "$as_dir" && as_dir=.
40875 for ac_exec_ext in '' $ac_executable_extensions; do
40876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40877 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
40878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40879 break 2
40880 fi
40881done
40882done
40883
40884 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
40885fi
40886fi
40887AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
40888if test -n "$AIX_CXX_LD"; then
40889 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
40890echo "${ECHO_T}$AIX_CXX_LD" >&6
40891else
40892 echo "$as_me:$LINENO: result: no" >&5
40893echo "${ECHO_T}no" >&6
40894fi
40895
40896 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
40897 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
40898 fi
40899 ;;
40900
40901 *-*-beos* )
1e9e8aba
DE
40902 SHARED_LD_CC="${LD} -nostart -o"
40903 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
40904 ;;
40905
40906 *-*-irix* )
40907 if test "x$GCC" != "xyes"; then
40908 PIC_FLAG="-KPIC"
40909 fi
40910 ;;
40911
40912 *-*-cygwin* | *-*-mingw32* )
40913 PIC_FLAG=""
1e9e8aba
DE
40914 SHARED_LD_CC="\$(CC) -shared -o"
40915 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
40916 ;;
40917
40918 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
40919 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
40920 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 40921 PIC_FLAG=""
473276a9
VS
40922
40923D='$'
40924cat <<EOF >dllar.sh
40925#!/bin/sh
40926#
40927# dllar - a tool to build both a .dll and an .a file
40928# from a set of object (.o) files for EMX/OS2.
40929#
40930# Written by Andrew Zabolotny, bit@freya.etu.ru
40931# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
40932#
40933# This script will accept a set of files on the command line.
40934# All the public symbols from the .o files will be exported into
40935# a .DEF file, then linker will be run (through gcc) against them to
40936# build a shared library consisting of all given .o files. All libraries
40937# (.a) will be first decompressed into component .o files then act as
40938# described above. You can optionally give a description (-d "description")
40939# which will be put into .DLL. To see the list of accepted options (as well
40940# as command-line format) simply run this program without options. The .DLL
40941# is built to be imported by name (there is no guarantee that new versions
40942# of the library you build will have same ordinals for same symbols).
40943#
40944# dllar is free software; you can redistribute it and/or modify
40945# it under the terms of the GNU General Public License as published by
40946# the Free Software Foundation; either version 2, or (at your option)
40947# any later version.
40948#
40949# dllar is distributed in the hope that it will be useful,
40950# but WITHOUT ANY WARRANTY; without even the implied warranty of
40951# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40952# GNU General Public License for more details.
40953#
40954# You should have received a copy of the GNU General Public License
40955# along with dllar; see the file COPYING. If not, write to the Free
40956# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
40957# 02111-1307, USA.
40958
40959# To successfuly run this program you will need:
40960# - Current drive should have LFN support (HPFS, ext2, network, etc)
40961# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
40962# - gcc
40963# (used to build the .dll)
40964# - emxexp
40965# (used to create .def file from .o files)
40966# - emximp
40967# (used to create .a file from .def file)
40968# - GNU text utilites (cat, sort, uniq)
40969# used to process emxexp output
40970# - GNU file utilities (mv, rm)
40971# - GNU sed
40972# - lxlite (optional, see flag below)
40973# (used for general .dll cleanup)
40974#
40975
40976flag_USE_LXLITE=1;
40977
40978#
40979# helper functions
40980# basnam, variant of basename, which does _not_ remove the path, _iff_
40981# second argument (suffix to remove) is given
40982basnam(){
40983 case ${D}# in
40984 1)
1e9e8aba 40985 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
40986 ;;
40987 2)
40988 echo ${D}1 | sed 's/'${D}2'${D}//'
40989 ;;
40990 *)
40991 echo "error in basnam ${D}*"
40992 exit 8
40993 ;;
40994 esac
40995}
40996
40997# Cleanup temporary files and output
40998CleanUp() {
40999 cd ${D}curDir
41000 for i in ${D}inputFiles ; do
41001 case ${D}i in
41002 *!)
41003 rm -rf \`basnam ${D}i !\`
41004 ;;
41005 *)
41006 ;;
41007 esac
41008 done
41009
41010 # Kill result in case of failure as there is just to many stupid make/nmake
41011 # things out there which doesn't do this.
1e9e8aba 41012 if [ ${D}# -eq 0 ]; then
473276a9
VS
41013 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41014 fi
41015}
41016
41017# Print usage and exit script with rc=1.
41018PrintHelp() {
b1d22ded
DE
41019 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41020 echo ' [-name-mangler-script script.sh]'
41021 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41022 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41023 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41024 echo ' [*.o] [*.a]'
473276a9
VS
41025 echo '*> "output_file" should have no extension.'
41026 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41027 echo ' The import library name is derived from this and is set to "name".a,'
41028 echo ' unless overridden by -import'
41029 echo '*> "importlib_name" should have no extension.'
41030 echo ' If it has the .o, or .a extension, it is automatically removed.'
41031 echo ' This name is used as the import library name and may be longer and'
41032 echo ' more descriptive than the DLL name which has to follow the old '
41033 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41034 echo '*> "script.sh may be given to override the output_file name by a'
41035 echo ' different name. It is mainly useful if the regular make process'
41036 echo ' of some package does not take into account OS/2 restriction of'
41037 echo ' DLL name lengths. It takes the importlib name as input and is'
41038 echo ' supposed to procude a shorter name as output. The script should'
41039 echo ' expect to get importlib_name without extension and should produce'
41040 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41041 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41042 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41043 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41044 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41045 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41046 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41047 echo ' If the last character of a symbol is "*", all symbols beginning'
41048 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41049 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41050 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41051 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41052 echo ' C runtime DLLs.'
b1d22ded 41053 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41054 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41055 echo ' unchanged to GCC at the end of command line.'
41056 echo '*> If you create a DLL from a library and you do not specify -o,'
41057 echo ' the basename for DLL and import library will be set to library name,'
41058 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41059 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41060 echo ' library will be renamed into gcc_s.a.'
41061 echo '--------'
41062 echo 'Example:'
41063 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41064 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41065 CleanUp
41066 exit 1
41067}
41068
41069# Execute a command.
41070# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41071# @Uses Whatever CleanUp() uses.
41072doCommand() {
41073 echo "${D}*"
41074 eval ${D}*
41075 rcCmd=${D}?
41076
1e9e8aba 41077 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41078 echo "command failed, exit code="${D}rcCmd
41079 CleanUp
41080 exit ${D}rcCmd
41081 fi
41082}
41083
41084# main routine
41085# setup globals
41086cmdLine=${D}*
41087outFile=""
41088outimpFile=""
41089inputFiles=""
b1d22ded 41090renameScript=""
473276a9
VS
41091description=""
41092CC=gcc.exe
41093CFLAGS="-s -Zcrtdll"
41094EXTRA_CFLAGS=""
41095EXPORT_BY_ORDINALS=0
41096exclude_symbols=""
41097library_flags=""
41098curDir=\`pwd\`
41099curDirS=curDir
41100case ${D}curDirS in
41101*/)
41102 ;;
41103*)
41104 curDirS=${D}{curDirS}"/"
41105 ;;
41106esac
41107# Parse commandline
41108libsToLink=0
b1d22ded 41109omfLinking=0
1e9e8aba 41110while [ ${D}1 ]; do
473276a9
VS
41111 case ${D}1 in
41112 -ord*)
41113 EXPORT_BY_ORDINALS=1;
41114 ;;
41115 -o*)
41116 shift
41117 outFile=${D}1
41118 ;;
41119 -i*)
41120 shift
41121 outimpFile=${D}1
41122 ;;
b1d22ded
DE
41123 -name-mangler-script)
41124 shift
41125 renameScript=${D}1
41126 ;;
473276a9
VS
41127 -d*)
41128 shift
41129 description=${D}1
41130 ;;
41131 -f*)
41132 shift
41133 CFLAGS=${D}1
41134 ;;
41135 -c*)
41136 shift
41137 CC=${D}1
41138 ;;
41139 -h*)
41140 PrintHelp
41141 ;;
41142 -ex*)
41143 shift
41144 exclude_symbols=${D}{exclude_symbols}${D}1" "
41145 ;;
41146 -libf*)
41147 shift
41148 library_flags=${D}{library_flags}${D}1" "
41149 ;;
41150 -nocrt*)
41151 CFLAGS="-s"
41152 ;;
41153 -nolxl*)
41154 flag_USE_LXLITE=0
41155 ;;
41156 -* | /*)
41157 case ${D}1 in
41158 -L* | -l*)
41159 libsToLink=1
41160 ;;
b1d22ded
DE
41161 -Zomf)
41162 omfLinking=1
41163 ;;
473276a9
VS
41164 *)
41165 ;;
41166 esac
41167 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41168 ;;
b1d22ded
DE
41169 *.dll)
41170 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41171 if [ ${D}omfLinking -eq 1 ]; then
41172 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41173 else
41174 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41175 fi
41176 ;;
473276a9
VS
41177 *)
41178 found=0;
1e9e8aba 41179 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41180 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41181 else
41182 for file in ${D}1 ; do
1e9e8aba 41183 if [ -f ${D}file ]; then
473276a9
VS
41184 inputFiles="${D}{inputFiles} ${D}file"
41185 found=1
41186 fi
41187 done
1e9e8aba 41188 if [ ${D}found -eq 0 ]; then
473276a9
VS
41189 echo "ERROR: No file(s) found: "${D}1
41190 exit 8
41191 fi
41192 fi
41193 ;;
41194 esac
41195 shift
41196done # iterate cmdline words
41197
41198#
1e9e8aba 41199if [ -z "${D}inputFiles" ]; then
473276a9
VS
41200 echo "dllar: no input files"
41201 PrintHelp
41202fi
41203
41204# Now extract all .o files from .a files
41205newInputFiles=""
41206for file in ${D}inputFiles ; do
41207 case ${D}file in
41208 *.a | *.lib)
41209 case ${D}file in
41210 *.a)
41211 suffix=".a"
41212 AR="ar"
41213 ;;
41214 *.lib)
41215 suffix=".lib"
41216 AR="emxomfar"
41217 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41218 ;;
41219 *)
41220 ;;
41221 esac
41222 dirname=\`basnam ${D}file ${D}suffix\`"_%"
41223 mkdir ${D}dirname
1e9e8aba 41224 if [ ${D}? -ne 0 ]; then
473276a9
VS
41225 echo "Failed to create subdirectory ./${D}dirname"
41226 CleanUp
41227 exit 8;
41228 fi
41229 # Append '!' to indicate archive
41230 newInputFiles="${D}newInputFiles ${D}{dirname}!"
41231 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41232 cd ${D}curDir
41233 found=0;
41234 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 41235 if [ -f ${D}subfile ]; then
473276a9 41236 found=1
1e9e8aba 41237 if [ -s ${D}subfile ]; then
473276a9
VS
41238 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41239 newInputFiles="${D}newInputFiles ${D}subfile"
41240 fi
41241 fi
41242 done
1e9e8aba
DE
41243 if [ ${D}found -eq 0 ]; then
41244 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
41245 fi
41246 ;;
41247 *)
41248 newInputFiles="${D}{newInputFiles} ${D}file"
41249 ;;
41250 esac
41251done
41252inputFiles="${D}newInputFiles"
41253
41254# Output filename(s).
41255do_backup=0;
1e9e8aba 41256if [ -z ${D}outFile ]; then
473276a9
VS
41257 do_backup=1;
41258 set outFile ${D}inputFiles; outFile=${D}2
41259fi
41260
41261# If it is an archive, remove the '!' and the '_%' suffixes
41262case ${D}outFile in
41263*_%!)
41264 outFile=\`basnam ${D}outFile _%!\`
41265 ;;
41266*)
41267 ;;
41268esac
41269case ${D}outFile in
41270*.dll)
41271 outFile=\`basnam ${D}outFile .dll\`
41272 ;;
41273*.DLL)
41274 outFile=\`basnam ${D}outFile .DLL\`
41275 ;;
41276*.o)
41277 outFile=\`basnam ${D}outFile .o\`
41278 ;;
41279*.obj)
41280 outFile=\`basnam ${D}outFile .obj\`
41281 ;;
41282*.a)
41283 outFile=\`basnam ${D}outFile .a\`
41284 ;;
41285*.lib)
41286 outFile=\`basnam ${D}outFile .lib\`
41287 ;;
41288*)
41289 ;;
41290esac
41291case ${D}outimpFile in
41292*.a)
41293 outimpFile=\`basnam ${D}outimpFile .a\`
41294 ;;
41295*.lib)
41296 outimpFile=\`basnam ${D}outimpFile .lib\`
41297 ;;
41298*)
41299 ;;
41300esac
1e9e8aba 41301if [ -z ${D}outimpFile ]; then
473276a9
VS
41302 outimpFile=${D}outFile
41303fi
41304defFile="${D}{outFile}.def"
41305arcFile="${D}{outimpFile}.a"
41306arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
41307
41308#create ${D}dllFile as something matching 8.3 restrictions,
41309if [ -z ${D}renameScript ] ; then
41310 dllFile="${D}outFile"
41311else
41312 dllFile=\`${D}renameScript ${D}outimpFile\`
41313fi
473276a9 41314
1e9e8aba
DE
41315if [ ${D}do_backup -ne 0 ] ; then
41316 if [ -f ${D}arcFile ] ; then
473276a9
VS
41317 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41318 fi
1e9e8aba 41319 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
41320 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41321 fi
41322fi
41323
41324# Extract public symbols from all the object files.
41325tmpdefFile=${D}{defFile}_%
41326rm -f ${D}tmpdefFile
41327for file in ${D}inputFiles ; do
41328 case ${D}file in
41329 *!)
41330 ;;
41331 *)
41332 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41333 ;;
41334 esac
41335done
41336
41337# Create the def file.
41338rm -f ${D}defFile
41339echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
41340dllFile="${D}{dllFile}.dll"
41341if [ ! -z ${D}description ]; then
1e9e8aba 41342 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
41343fi
41344echo "EXPORTS" >> ${D}defFile
41345
41346doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
41347grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
41348
41349# Checks if the export is ok or not.
41350for word in ${D}exclude_symbols; do
41351 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
41352 mv ${D}{tmpdefFile}% ${D}tmpdefFile
41353done
41354
41355
1e9e8aba
DE
41356if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
41357 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
41358 sed '
41359 N
41360 : loop
1e9e8aba 41361 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
41362 t loop
41363 ' > ${D}{tmpdefFile}%
41364 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
41365else
41366 rm -f ${D}{tmpdefFile}%
41367fi
41368cat ${D}tmpdefFile >> ${D}defFile
41369rm -f ${D}tmpdefFile
41370
41371# Do linking, create implib, and apply lxlite.
41372gccCmdl="";
41373for file in ${D}inputFiles ; do
41374 case ${D}file in
41375 *!)
41376 ;;
41377 *)
41378 gccCmdl="${D}gccCmdl ${D}file"
41379 ;;
41380 esac
41381done
41382doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
41383touch "${D}{outFile}.dll"
41384
41385doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 41386if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 41387 add_flags="";
1e9e8aba 41388 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
41389 add_flags="-ynd"
41390 fi
41391 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
41392fi
41393doCommand "emxomf -s -l ${D}arcFile"
41394
41395# Successful exit.
41396CleanUp 1
41397exit 0
41398EOF
41399
41400 chmod +x dllar.sh
a848cd7e
SC
41401 ;;
41402
1e9e8aba 41403 powerpc-apple-macos* | \
a848cd7e
SC
41404 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
41405 *-*-sunos4* | \
41406 *-*-osf* | \
41407 *-*-dgux5* | \
41408 *-*-sysv5* )
41409 ;;
41410
41411 *)
41412 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
41413echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
41414 { (exit 1); exit 1; }; }
41415 esac
41416
2057db16
VS
41417 if test "x$PIC_FLAG" != "x" ; then
41418 PIC_FLAG="$PIC_FLAG -DPIC"
41419 fi
41420
a848cd7e
SC
41421 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
41422 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
41423 fi
41424 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
41425 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
41426 fi
41427
41428
41429
41430
41431
41432
41433
41434
41435 USE_SOVERSION=0
41436 USE_SOVERLINUX=0
41437 USE_SOVERSOLARIS=0
41438 USE_SOSYMLINKS=0
41439 USE_MACVERSION=0
41440 SONAME_FLAG=
41441
41442 case "${BAKEFILE_HOST}" in
b1d22ded 41443 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
41444 SONAME_FLAG="-Wl,-soname,"
41445 USE_SOVERSION=1
41446 USE_SOVERLINUX=1
41447 USE_SOSYMLINKS=1
41448 ;;
41449
a848cd7e
SC
41450 *-*-solaris2* )
41451 SONAME_FLAG="-h "
41452 USE_SOVERSION=1
41453 USE_SOVERSOLARIS=1
41454 USE_SOSYMLINKS=1
41455 ;;
41456
41457 *-*-darwin* )
41458 USE_MACVERSION=1
41459 USE_SOVERSION=1
41460 USE_SOSYMLINKS=1
41461 ;;
41462 esac
41463
41464
41465
41466
41467
41468
41469
41470
41471
41472 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
41473echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
41474 DEPS_TRACKING=0
41475
41476 if test "x$GCC" = "xyes"; then
41477 DEPSMODE=gcc
41478 DEPS_TRACKING=1
41479 case "${BAKEFILE_HOST}" in
41480 powerpc-*-darwin* )
41481 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
41482 ;;
41483 * )
41484 DEPSFLAG_GCC="-MMD"
41485 ;;
41486 esac
41487 echo "$as_me:$LINENO: result: gcc" >&5
41488echo "${ECHO_T}gcc" >&6
b1d22ded 41489 elif test "x$MWCC" = "xyes"; then
81f90336 41490 DEPSMODE=mwcc
b1d22ded 41491 DEPS_TRACKING=1
81f90336 41492 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
41493 echo "$as_me:$LINENO: result: mwcc" >&5
41494echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
41495 else
41496 echo "$as_me:$LINENO: result: none" >&5
41497echo "${ECHO_T}none" >&6
41498 fi
41499
41500 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
41501
41502D='$'
41503cat <<EOF >bk-deps
a848cd7e
SC
41504#!/bin/sh
41505
41506# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41507# script. It is used to track C/C++ files dependencies in portable way.
41508#
41509# Permission is given to use this file in any way.
41510
473276a9 41511DEPSMODE=${DEPSMODE}
a848cd7e 41512DEPSDIR=.deps
473276a9 41513DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 41514DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 41515
473276a9 41516mkdir -p ${D}DEPSDIR
a848cd7e 41517
473276a9
VS
41518if test ${D}DEPSMODE = gcc ; then
41519 ${D}* ${D}{DEPSFLAG_GCC}
41520 status=${D}?
41521 if test ${D}{status} != 0 ; then
41522 exit ${D}{status}
a848cd7e
SC
41523 fi
41524 # move created file to the location we want it in:
473276a9
VS
41525 while test ${D}# -gt 0; do
41526 case "${D}1" in
a848cd7e
SC
41527 -o )
41528 shift
473276a9 41529 objfile=${D}1
a848cd7e
SC
41530 ;;
41531 -* )
41532 ;;
41533 * )
473276a9 41534 srcfile=${D}1
a848cd7e
SC
41535 ;;
41536 esac
41537 shift
41538 done
1e9e8aba
DE
41539 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
41540 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
41541 if test -f ${D}depfile ; then
41542 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41543 rm -f ${D}depfile
a848cd7e 41544 else
1e9e8aba 41545 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
41546 if test -f ${D}depfile ; then
41547 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41548 rm -f ${D}depfile
a848cd7e
SC
41549 fi
41550 fi
41551 exit 0
81f90336
MW
41552elif test ${D}DEPSMODE = mwcc ; then
41553 ${D}*
41554 status=${D}?
41555 if test ${D}{status} != 0 ; then
41556 exit ${D}{status}
41557 fi
41558 # Run mwcc again with -MM and redirect into the dep file we want
41559 # NOTE: We can't use shift here because we need ${D}* to be valid
41560 prevarg=
41561 for arg in ${D}* ; do
41562 if test "${D}prevarg" = "-o"; then
41563 objfile=${D}arg
41564 else
41565 case "${D}arg" in
41566 -* )
41567 ;;
41568 * )
41569 srcfile=${D}arg
41570 ;;
41571 esac
41572 fi
41573 prevarg="${D}arg"
41574 done
41575 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
41576 exit 0
a848cd7e 41577else
473276a9
VS
41578 ${D}*
41579 exit ${D}?
a848cd7e
SC
41580fi
41581EOF
473276a9 41582
a848cd7e
SC
41583 chmod +x bk-deps
41584 fi
41585
41586
41587
41588
41589 RESCOMP=
41590 SETFILE=
41591
41592 case ${BAKEFILE_HOST} in
41593 *-*-cygwin* | *-*-mingw32* )
41594 if test "$build" != "$host" ; then
41595 RESCOMP=$host_alias-windres
41596 else
41597 # Extract the first word of "windres", so it can be a program name with args.
41598set dummy windres; ac_word=$2
41599echo "$as_me:$LINENO: checking for $ac_word" >&5
41600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41601if test "${ac_cv_prog_RESCOMP+set}" = set; then
41602 echo $ECHO_N "(cached) $ECHO_C" >&6
41603else
41604 if test -n "$RESCOMP"; then
41605 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41606else
41607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41608for as_dir in $PATH
41609do
41610 IFS=$as_save_IFS
41611 test -z "$as_dir" && as_dir=.
41612 for ac_exec_ext in '' $ac_executable_extensions; do
41613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41614 ac_cv_prog_RESCOMP="windres"
41615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41616 break 2
41617 fi
41618done
41619done
41620
41621 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
41622fi
41623fi
41624RESCOMP=$ac_cv_prog_RESCOMP
41625if test -n "$RESCOMP"; then
41626 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41627echo "${ECHO_T}$RESCOMP" >&6
41628else
41629 echo "$as_me:$LINENO: result: no" >&5
41630echo "${ECHO_T}no" >&6
41631fi
41632
41633 fi
41634 ;;
41635
1e9e8aba 41636 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
41637 # Extract the first word of "Rez", so it can be a program name with args.
41638set dummy Rez; ac_word=$2
41639echo "$as_me:$LINENO: checking for $ac_word" >&5
41640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41641if test "${ac_cv_prog_RESCOMP+set}" = set; then
41642 echo $ECHO_N "(cached) $ECHO_C" >&6
41643else
41644 if test -n "$RESCOMP"; then
41645 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41646else
41647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41648for as_dir in $PATH
41649do
41650 IFS=$as_save_IFS
41651 test -z "$as_dir" && as_dir=.
41652 for ac_exec_ext in '' $ac_executable_extensions; do
41653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41654 ac_cv_prog_RESCOMP="Rez"
41655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41656 break 2
41657 fi
41658done
41659done
41660
41661 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
41662fi
41663fi
41664RESCOMP=$ac_cv_prog_RESCOMP
41665if test -n "$RESCOMP"; then
41666 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41667echo "${ECHO_T}$RESCOMP" >&6
41668else
41669 echo "$as_me:$LINENO: result: no" >&5
41670echo "${ECHO_T}no" >&6
41671fi
41672
41673 # Extract the first word of "SetFile", so it can be a program name with args.
41674set dummy SetFile; ac_word=$2
41675echo "$as_me:$LINENO: checking for $ac_word" >&5
41676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41677if test "${ac_cv_prog_SETFILE+set}" = set; then
41678 echo $ECHO_N "(cached) $ECHO_C" >&6
41679else
41680 if test -n "$SETFILE"; then
41681 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
41682else
41683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41684for as_dir in $PATH
41685do
41686 IFS=$as_save_IFS
41687 test -z "$as_dir" && as_dir=.
41688 for ac_exec_ext in '' $ac_executable_extensions; do
41689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41690 ac_cv_prog_SETFILE="SetFile"
41691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41692 break 2
41693 fi
41694done
41695done
41696
41697 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
41698fi
41699fi
41700SETFILE=$ac_cv_prog_SETFILE
41701if test -n "$SETFILE"; then
41702 echo "$as_me:$LINENO: result: $SETFILE" >&5
41703echo "${ECHO_T}$SETFILE" >&6
41704else
41705 echo "$as_me:$LINENO: result: no" >&5
41706echo "${ECHO_T}no" >&6
41707fi
41708
41709 ;;
41710 esac
41711
41712
41713
41714
41715
94acd38e 41716 BAKEFILE_BAKEFILE_M4_VERSION="0.1.7"
a848cd7e 41717
dcc1b6ad 41718
94acd38e 41719BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7"
a848cd7e 41720
646b6ec1 41721
74b84332 41722
a848cd7e
SC
41723 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
41724if test "${enable_precomp_headers+set}" = set; then
41725 enableval="$enable_precomp_headers"
41726 bk_use_pch="$enableval"
41727fi;
41728
41729 GCC_PCH=0
41730
41731 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
41732 if test "x$GCC" = "xyes"; then
41733 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
41734echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
41735 cat >conftest.$ac_ext <<_ACEOF
41736/* confdefs.h. */
41737_ACEOF
41738cat confdefs.h >>conftest.$ac_ext
41739cat >>conftest.$ac_ext <<_ACEOF
41740/* end confdefs.h. */
41741
41742int
41743main ()
41744{
41745
41746 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
41747 #error "no pch support"
41748 #endif
41749 #if (__GNUC__ < 3)
41750 #error "no pch support"
41751 #endif
41752 #if (__GNUC__ == 3) && \
41753 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
41754 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
41755 #error "no pch support"
41756 #endif
41757
41758 ;
41759 return 0;
41760}
41761_ACEOF
41762rm -f conftest.$ac_objext
41763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41764 (eval $ac_compile) 2>conftest.er1
a848cd7e 41765 ac_status=$?
ac1cb8d3
VS
41766 grep -v '^ *+' conftest.er1 >conftest.err
41767 rm -f conftest.er1
41768 cat conftest.err >&5
a848cd7e
SC
41769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41770 (exit $ac_status); } &&
89be85c2
VS
41771 { ac_try='test -z "$ac_c_werror_flag"
41772 || test ! -s conftest.err'
ac1cb8d3
VS
41773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41774 (eval $ac_try) 2>&5
41775 ac_status=$?
41776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41777 (exit $ac_status); }; } &&
41778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41780 (eval $ac_try) 2>&5
41781 ac_status=$?
41782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41783 (exit $ac_status); }; }; then
41784
41785 echo "$as_me:$LINENO: result: yes" >&5
41786echo "${ECHO_T}yes" >&6
a848cd7e
SC
41787 GCC_PCH=1
41788
41789else
41790 echo "$as_me: failed program was:" >&5
41791sed 's/^/| /' conftest.$ac_ext >&5
41792
41793
41794 echo "$as_me:$LINENO: result: no" >&5
41795echo "${ECHO_T}no" >&6
41796
41797fi
ac1cb8d3 41798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 41799 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
41800
41801D='$'
41802cat <<EOF >bk-make-pch
a848cd7e
SC
41803#!/bin/sh
41804
41805# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41806# script. It is used to generated precompiled headers.
41807#
41808# Permission is given to use this file in any way.
41809
1e9e8aba
DE
41810outfile="${D}{1}"
41811header="${D}{2}"
a848cd7e
SC
41812shift
41813shift
41814
41815compiler=
41816headerfile=
1e9e8aba
DE
41817while test ${D}{#} -gt 0; do
41818 case "${D}{1}" in
a848cd7e 41819 -I* )
1e9e8aba
DE
41820 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
41821 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
41822 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
41823 fi
41824 ;;
41825 esac
1e9e8aba 41826 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
41827 shift
41828done
41829
1e9e8aba
DE
41830if test "x${D}{headerfile}" = "x" ; then
41831 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 41832else
1e9e8aba
DE
41833 if test -f ${D}{outfile} ; then
41834 rm -f ${D}{outfile}
a848cd7e 41835 else
1e9e8aba 41836 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 41837 fi
1e9e8aba 41838 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
41839 mkdir -p .deps
41840 # can do this because gcc is >= 3.4:
1e9e8aba
DE
41841 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
41842 exit ${D}{?}
a848cd7e
SC
41843fi
41844EOF
1e9e8aba 41845
a848cd7e
SC
41846 chmod +x bk-make-pch
41847 fi
41848 fi
41849 fi
41850
41851
41852
a848cd7e
SC
41853 COND_BUILD_DEBUG="#"
41854 if test "x$BUILD" = "xdebug" ; then
41855 COND_BUILD_DEBUG=""
41856 fi
41857
41858 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
41859 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
41860 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
41861 fi
41862
41863 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
41864 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
41865 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
41866 fi
41867
41868 COND_BUILD_DEBUG_UNICODE_0="#"
41869 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
41870 COND_BUILD_DEBUG_UNICODE_0=""
41871 fi
41872
41873 COND_BUILD_DEBUG_UNICODE_1="#"
41874 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
41875 COND_BUILD_DEBUG_UNICODE_1=""
41876 fi
41877
41878 COND_BUILD_RELEASE="#"
41879 if test "x$BUILD" = "xrelease" ; then
41880 COND_BUILD_RELEASE=""
41881 fi
41882
41883 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
41884 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
41885 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
41886 fi
41887
41888 COND_BUILD_RELEASE_UNICODE_0="#"
41889 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
41890 COND_BUILD_RELEASE_UNICODE_0=""
41891 fi
41892
41893 COND_BUILD_RELEASE_UNICODE_1="#"
41894 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
41895 COND_BUILD_RELEASE_UNICODE_1=""
41896 fi
41897
41898 COND_DEBUG_FLAG_1="#"
41899 if test "x$DEBUG_FLAG" = "x1" ; then
41900 COND_DEBUG_FLAG_1=""
41901 fi
41902
41903 COND_DEBUG_INFO_0="#"
41904 if test "x$DEBUG_INFO" = "x0" ; then
41905 COND_DEBUG_INFO_0=""
41906 fi
41907
41908 COND_DEBUG_INFO_1="#"
41909 if test "x$DEBUG_INFO" = "x1" ; then
41910 COND_DEBUG_INFO_1=""
41911 fi
41912
41913 COND_DEPS_TRACKING_0="#"
41914 if test "x$DEPS_TRACKING" = "x0" ; then
41915 COND_DEPS_TRACKING_0=""
41916 fi
41917
41918 COND_DEPS_TRACKING_1="#"
41919 if test "x$DEPS_TRACKING" = "x1" ; then
41920 COND_DEPS_TRACKING_1=""
41921 fi
41922
41923 COND_GCC_PCH_1="#"
41924 if test "x$GCC_PCH" = "x1" ; then
41925 COND_GCC_PCH_1=""
41926 fi
41927
41928 COND_MONOLITHIC_0="#"
41929 if test "x$MONOLITHIC" = "x0" ; then
41930 COND_MONOLITHIC_0=""
41931 fi
41932
41933 COND_MONOLITHIC_0_SHARED_0="#"
41934 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
41935 COND_MONOLITHIC_0_SHARED_0=""
41936 fi
41937
41938 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
41939 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
41940 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
41941 fi
41942
90970d69
DE
41943 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
41944 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41945 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
41946 fi
41947
a848cd7e
SC
41948 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
41949 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41950 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
41951 fi
41952
a848cd7e
SC
41953 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41954 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41955 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41956 fi
41957
ceec2216
RL
41958 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
41959 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
41960 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
41961 fi
41962
a848cd7e
SC
41963 COND_MONOLITHIC_0_SHARED_1="#"
41964 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41965 COND_MONOLITHIC_0_SHARED_1=""
41966 fi
41967
41968 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41969 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41970 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41971 fi
41972
90970d69
DE
41973 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
41974 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41975 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
41976 fi
41977
a848cd7e
SC
41978 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41979 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41980 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41981 fi
41982
a848cd7e
SC
41983 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41984 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41985 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41986 fi
41987
ceec2216
RL
41988 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
41989 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
41990 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
41991 fi
41992
a848cd7e
SC
41993 COND_MONOLITHIC_0_USE_ODBC_1="#"
41994 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41995 COND_MONOLITHIC_0_USE_ODBC_1=""
41996 fi
41997
41998 COND_MONOLITHIC_1="#"
41999 if test "x$MONOLITHIC" = "x1" ; then
42000 COND_MONOLITHIC_1=""
42001 fi
42002
42003 COND_MONOLITHIC_1_SHARED_0="#"
42004 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42005 COND_MONOLITHIC_1_SHARED_0=""
42006 fi
42007
42008 COND_MONOLITHIC_1_SHARED_1="#"
42009 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42010 COND_MONOLITHIC_1_SHARED_1=""
42011 fi
42012
42013 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42014 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42015 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42016 fi
42017
42018 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42019 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42020 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42021 fi
42022
42023 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42024 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42025 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42026 fi
42027
42028 COND_PLATFORM_MACOSX_1="#"
42029 if test "x$PLATFORM_MACOSX" = "x1" ; then
42030 COND_PLATFORM_MACOSX_1=""
42031 fi
42032
a30f955f
VS
42033 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42034 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42035 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42036 fi
42037
a848cd7e
SC
42038 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42039 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42040 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42041 fi
42042
42043 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42044 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42045 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42046 fi
42047
42048 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42049 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42050 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42051 fi
42052
fc480dc1
DE
42053 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42054 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42055 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42056 fi
42057
1e9e8aba
DE
42058 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42059 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42060 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42061 fi
42062
ebee3cd0
VS
42063 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42064 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42065 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42066 fi
42067
42068 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42069 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42070 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42071 fi
42072
a848cd7e
SC
42073 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42074 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42075 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42076 fi
42077
42078 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42079 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42080 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42081 fi
42082
b48a2016
DE
42083 COND_PLATFORM_MACOS_1="#"
42084 if test "x$PLATFORM_MACOS" = "x1" ; then
42085 COND_PLATFORM_MACOS_1=""
42086 fi
42087
a848cd7e
SC
42088 COND_PLATFORM_MAC_1="#"
42089 if test "x$PLATFORM_MAC" = "x1" ; then
42090 COND_PLATFORM_MAC_1=""
42091 fi
42092
42093 COND_PLATFORM_OS2_1="#"
42094 if test "x$PLATFORM_OS2" = "x1" ; then
42095 COND_PLATFORM_OS2_1=""
42096 fi
42097
42098 COND_PLATFORM_UNIX_0="#"
42099 if test "x$PLATFORM_UNIX" = "x0" ; then
42100 COND_PLATFORM_UNIX_0=""
42101 fi
42102
42103 COND_PLATFORM_UNIX_1="#"
42104 if test "x$PLATFORM_UNIX" = "x1" ; then
42105 COND_PLATFORM_UNIX_1=""
42106 fi
42107
42108 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42109 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42110 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42111 fi
42112
42113 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42114 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42115 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42116 fi
42117
42118 COND_PLATFORM_WIN32_0="#"
42119 if test "x$PLATFORM_WIN32" = "x0" ; then
42120 COND_PLATFORM_WIN32_0=""
42121 fi
42122
42123 COND_PLATFORM_WIN32_1="#"
42124 if test "x$PLATFORM_WIN32" = "x1" ; then
42125 COND_PLATFORM_WIN32_1=""
42126 fi
42127
42128 COND_SHARED_0="#"
42129 if test "x$SHARED" = "x0" ; then
42130 COND_SHARED_0=""
42131 fi
42132
ceec2216
RL
42133 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42134 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42135 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42136 fi
42137
42138 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42139 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42140 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42141 fi
42142
42143 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42144 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42145 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42146 fi
42147
a848cd7e
SC
42148 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42149 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42150 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42151 fi
42152
42153 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42154 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42155 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42156 fi
42157
42158 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42159 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42160 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42161 fi
42162
42163 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42164 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42165 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42166 fi
42167
42168 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42169 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42170 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42171 fi
42172
42173 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42174 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42175 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42176 fi
42177
42178 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42179 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42180 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42181 fi
42182
42183 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42184 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42185 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42186 fi
42187
42188 COND_SHARED_1="#"
42189 if test "x$SHARED" = "x1" ; then
42190 COND_SHARED_1=""
42191 fi
42192
42193 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42194 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42195 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42196 fi
42197
a30f955f
VS
42198 COND_TOOLKIT_="#"
42199 if test "x$TOOLKIT" = "x" ; then
42200 COND_TOOLKIT_=""
42201 fi
42202
a848cd7e
SC
42203 COND_TOOLKIT_COCOA="#"
42204 if test "x$TOOLKIT" = "xCOCOA" ; then
42205 COND_TOOLKIT_COCOA=""
42206 fi
42207
a49baeab
DE
42208 COND_TOOLKIT_COCOA_USE_GUI_1="#"
42209 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42210 COND_TOOLKIT_COCOA_USE_GUI_1=""
42211 fi
42212
a848cd7e
SC
42213 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42214 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42215 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42216 fi
42217
42218 COND_TOOLKIT_GTK="#"
42219 if test "x$TOOLKIT" = "xGTK" ; then
42220 COND_TOOLKIT_GTK=""
42221 fi
42222
42223 COND_TOOLKIT_GTK_USE_GUI_1="#"
42224 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42225 COND_TOOLKIT_GTK_USE_GUI_1=""
42226 fi
42227
42228 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42229 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42230 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42231 fi
42232
42233 COND_TOOLKIT_MAC="#"
42234 if test "x$TOOLKIT" = "xMAC" ; then
42235 COND_TOOLKIT_MAC=""
42236 fi
42237
42238 COND_TOOLKIT_MAC_USE_GUI_1="#"
42239 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42240 COND_TOOLKIT_MAC_USE_GUI_1=""
42241 fi
42242
42243 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42244 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42245 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42246 fi
42247
42248 COND_TOOLKIT_MGL="#"
42249 if test "x$TOOLKIT" = "xMGL" ; then
42250 COND_TOOLKIT_MGL=""
42251 fi
42252
42253 COND_TOOLKIT_MGL_USE_GUI_1="#"
42254 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42255 COND_TOOLKIT_MGL_USE_GUI_1=""
42256 fi
42257
42258 COND_TOOLKIT_MOTIF="#"
42259 if test "x$TOOLKIT" = "xMOTIF" ; then
42260 COND_TOOLKIT_MOTIF=""
42261 fi
42262
42263 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42264 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42265 COND_TOOLKIT_MOTIF_USE_GUI_1=""
42266 fi
42267
42268 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42269 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42270 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42271 fi
42272
42273 COND_TOOLKIT_MSW="#"
42274 if test "x$TOOLKIT" = "xMSW" ; then
42275 COND_TOOLKIT_MSW=""
42276 fi
42277
42278 COND_TOOLKIT_MSW_USE_GUI_1="#"
42279 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42280 COND_TOOLKIT_MSW_USE_GUI_1=""
42281 fi
42282
42283 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42284 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42285 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42286 fi
42287
42288 COND_TOOLKIT_PM="#"
42289 if test "x$TOOLKIT" = "xPM" ; then
42290 COND_TOOLKIT_PM=""
42291 fi
42292
42293 COND_TOOLKIT_PM_USE_GUI_1="#"
42294 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42295 COND_TOOLKIT_PM_USE_GUI_1=""
42296 fi
42297
42298 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42299 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42300 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42301 fi
42302
3fd9c298
DE
42303 COND_TOOLKIT_WINCE="#"
42304 if test "x$TOOLKIT" = "xWINCE" ; then
42305 COND_TOOLKIT_WINCE=""
42306 fi
42307
42308 COND_TOOLKIT_WINCE_USE_GUI_1="#"
42309 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42310 COND_TOOLKIT_WINCE_USE_GUI_1=""
42311 fi
42312
42313 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42314 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42315 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42316 fi
42317
a848cd7e
SC
42318 COND_TOOLKIT_X11="#"
42319 if test "x$TOOLKIT" = "xX11" ; then
42320 COND_TOOLKIT_X11=""
42321 fi
42322
42323 COND_TOOLKIT_X11_USE_GUI_1="#"
42324 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42325 COND_TOOLKIT_X11_USE_GUI_1=""
42326 fi
42327
42328 COND_UNICODE_1="#"
42329 if test "x$UNICODE" = "x1" ; then
42330 COND_UNICODE_1=""
42331 fi
42332
42333 COND_USE_EXCEPTIONS_0="#"
42334 if test "x$USE_EXCEPTIONS" = "x0" ; then
42335 COND_USE_EXCEPTIONS_0=""
42336 fi
42337
42338 COND_USE_EXCEPTIONS_1="#"
42339 if test "x$USE_EXCEPTIONS" = "x1" ; then
42340 COND_USE_EXCEPTIONS_1=""
42341 fi
42342
42343 COND_USE_GUI_0="#"
42344 if test "x$USE_GUI" = "x0" ; then
42345 COND_USE_GUI_0=""
42346 fi
42347
42348 COND_USE_GUI_1="#"
42349 if test "x$USE_GUI" = "x1" ; then
42350 COND_USE_GUI_1=""
42351 fi
42352
42353 COND_USE_GUI_1_WXUNIV_0="#"
42354 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42355 COND_USE_GUI_1_WXUNIV_0=""
42356 fi
42357
42358 COND_USE_GUI_1_WXUNIV_1="#"
42359 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
42360 COND_USE_GUI_1_WXUNIV_1=""
42361 fi
42362
42363 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42364 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42365 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42366 fi
42367
42368 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42369 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42370 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42371 fi
42372
42373 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42374 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42375 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42376 fi
42377
ceec2216
RL
42378 COND_USE_ODBC_1="#"
42379 if test "x$USE_ODBC" = "x1" ; then
42380 COND_USE_ODBC_1=""
42381 fi
42382
ffa0583f
RL
42383 COND_USE_OPENGL_1="#"
42384 if test "x$USE_OPENGL" = "x1" ; then
42385 COND_USE_OPENGL_1=""
42386 fi
42387
a848cd7e
SC
42388 COND_USE_PLUGINS_0="#"
42389 if test "x$USE_PLUGINS" = "x0" ; then
42390 COND_USE_PLUGINS_0=""
42391 fi
42392
42393 COND_USE_SOSYMLINKS_1="#"
42394 if test "x$USE_SOSYMLINKS" = "x1" ; then
42395 COND_USE_SOSYMLINKS_1=""
42396 fi
42397
42398 COND_USE_SOVERLINUX_1="#"
42399 if test "x$USE_SOVERLINUX" = "x1" ; then
42400 COND_USE_SOVERLINUX_1=""
42401 fi
42402
42403 COND_USE_SOVERSION_0="#"
42404 if test "x$USE_SOVERSION" = "x0" ; then
42405 COND_USE_SOVERSION_0=""
42406 fi
42407
42408 COND_USE_SOVERSOLARIS_1="#"
42409 if test "x$USE_SOVERSOLARIS" = "x1" ; then
42410 COND_USE_SOVERSOLARIS_1=""
42411 fi
42412
a13a7f89
RL
42413 COND_USE_XRC_1="#"
42414 if test "x$USE_XRC" = "x1" ; then
42415 COND_USE_XRC_1=""
42416 fi
42417
a848cd7e
SC
42418 COND_WITH_PLUGIN_SDL_1="#"
42419 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
42420 COND_WITH_PLUGIN_SDL_1=""
42421 fi
42422
1e6eb025
VZ
42423 COND_WXUNIV_0="#"
42424 if test "x$WXUNIV" = "x0" ; then
42425 COND_WXUNIV_0=""
42426 fi
42427
a848cd7e
SC
42428 COND_WXUNIV_1="#"
42429 if test "x$WXUNIV" = "x1" ; then
42430 COND_WXUNIV_1=""
42431 fi
42432
42433 COND_WXUSE_EXPAT_BUILTIN="#"
42434 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
42435 COND_WXUSE_EXPAT_BUILTIN=""
42436 fi
42437
42438 COND_WXUSE_LIBJPEG_BUILTIN="#"
42439 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42440 COND_WXUSE_LIBJPEG_BUILTIN=""
42441 fi
42442
42443 COND_WXUSE_LIBPNG_BUILTIN="#"
42444 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42445 COND_WXUSE_LIBPNG_BUILTIN=""
42446 fi
42447
42448 COND_WXUSE_LIBTIFF_BUILTIN="#"
42449 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42450 COND_WXUSE_LIBTIFF_BUILTIN=""
42451 fi
42452
42453 COND_WXUSE_ODBC_BUILTIN="#"
42454 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
42455 COND_WXUSE_ODBC_BUILTIN=""
42456 fi
42457
42458 COND_WXUSE_REGEX_BUILTIN="#"
42459 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
42460 COND_WXUSE_REGEX_BUILTIN=""
42461 fi
42462
42463 COND_WXUSE_ZLIB_BUILTIN="#"
42464 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
42465 COND_WXUSE_ZLIB_BUILTIN=""
42466 fi
42467
42468
42469
2057db16
VS
42470 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
42471 { { 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
42472echo "$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;}
42473 { (exit 1); exit 1; }; }
42474 fi
42475
a848cd7e 42476
ceec2216
RL
42477if test "$wxUSE_SHARED" = "yes"; then
42478
42479 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
42480 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
42481
5b674b9d
DE
42482 case "${host}" in
42483 *-pc-os2_emx | *-pc-os2-emx )
42484 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42485 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42486 cp -p ${srcdir}/src/os2/dllnames.sh .
42487 cp -p ${srcdir}/src/os2/dllar.sh .
42488 ;;
42489 esac
ceec2216
RL
42490else
42491
42492 EXE_LINKER="$CXX -o"
42493
42494fi
a848cd7e 42495
74b84332 42496GCC_PRAGMA_FLAGS=""
c08ebc62
DE
42497PCH_FLAGS=""
42498if test $GCC_PCH = 1 ; then
42499 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42500 PCH_FLAGS="-DWX_PRECOMP"
42501else
a848cd7e
SC
42502 case "${host}" in
42503 powerpc-*-darwin* )
74b84332 42504 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 42505 ;;
bea8e651 42506 *-*-mingw32* )
1f344abf
VS
42507 if test "$wxUSE_STL" = "yes" -o \
42508 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
42509 "$wxUSE_NO_RTTI" != "yes"; then
42510 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
42511echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
42512 cat >conftest.$ac_ext <<_ACEOF
42513/* confdefs.h. */
42514_ACEOF
42515cat confdefs.h >>conftest.$ac_ext
42516cat >>conftest.$ac_ext <<_ACEOF
42517/* end confdefs.h. */
42518
3314e67b
RR
42519int
42520main ()
42521{
42522#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
42523 #error "Not GCC 3.2 or greater"
42524 #endif
42525
42526 ;
42527 return 0;
42528}
42529_ACEOF
42530rm -f conftest.$ac_objext
42531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42532 (eval $ac_compile) 2>conftest.er1
42533 ac_status=$?
42534 grep -v '^ *+' conftest.er1 >conftest.err
42535 rm -f conftest.er1
42536 cat conftest.err >&5
42537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42538 (exit $ac_status); } &&
89be85c2
VS
42539 { ac_try='test -z "$ac_c_werror_flag"
42540 || test ! -s conftest.err'
3314e67b
RR
42541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42542 (eval $ac_try) 2>&5
42543 ac_status=$?
42544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42545 (exit $ac_status); }; } &&
42546 { ac_try='test -s conftest.$ac_objext'
42547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42548 (eval $ac_try) 2>&5
42549 ac_status=$?
42550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42551 (exit $ac_status); }; }; then
42552 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42553 echo "$as_me:$LINENO: result: yes" >&5
42554echo "${ECHO_T}yes" >&6
42555else
42556 echo "$as_me: failed program was:" >&5
42557sed 's/^/| /' conftest.$ac_ext >&5
42558
42559echo "$as_me:$LINENO: result: no" >&5
42560echo "${ECHO_T}no" >&6
42561fi
42562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42563 fi
42564 ;;
42565 *-pc-os2_emx | *-pc-os2-emx )
42566 if test "$wxUSE_STL" = "yes"; then
42567 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
42568echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
42569 cat >conftest.$ac_ext <<_ACEOF
42570/* confdefs.h. */
42571_ACEOF
42572cat confdefs.h >>conftest.$ac_ext
42573cat >>conftest.$ac_ext <<_ACEOF
42574/* end confdefs.h. */
42575
bea8e651
MB
42576int
42577main ()
42578{
1f344abf 42579#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
42580 #error "Not GCC 3.2 or greater"
42581 #endif
42582
42583 ;
42584 return 0;
42585}
42586_ACEOF
42587rm -f conftest.$ac_objext
42588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42589 (eval $ac_compile) 2>conftest.er1
bea8e651 42590 ac_status=$?
ac1cb8d3
VS
42591 grep -v '^ *+' conftest.er1 >conftest.err
42592 rm -f conftest.er1
42593 cat conftest.err >&5
bea8e651
MB
42594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42595 (exit $ac_status); } &&
89be85c2
VS
42596 { ac_try='test -z "$ac_c_werror_flag"
42597 || test ! -s conftest.err'
ac1cb8d3
VS
42598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42599 (eval $ac_try) 2>&5
42600 ac_status=$?
42601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42602 (exit $ac_status); }; } &&
42603 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
42604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42605 (eval $ac_try) 2>&5
42606 ac_status=$?
42607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42608 (exit $ac_status); }; }; then
74b84332 42609 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
42610 echo "$as_me:$LINENO: result: yes" >&5
42611echo "${ECHO_T}yes" >&6
42612else
42613 echo "$as_me: failed program was:" >&5
42614sed 's/^/| /' conftest.$ac_ext >&5
42615
42616echo "$as_me:$LINENO: result: no" >&5
42617echo "${ECHO_T}no" >&6
42618fi
ac1cb8d3 42619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
42620 fi
42621 ;;
a848cd7e
SC
42622 esac
42623fi
d2083416 42624CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
42625
42626
42627SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
42628
42629
42630
42631
42632
42633
42634
42635
42636
42637
42638
42639
42640
42641
42642
42643
42644
42645
42646
42647
42648
42649
42650
42651
42652
42653
42654
42655
42656
42657
42658
42659
42660
42661
42662
42663
42664
42665
42666
42667
42668
42669
a848cd7e
SC
42670
42671
42672
42673
42674
42675
42676
42677
42678
42679
42680
42681
42682
42683
42684
42685
42686
42687
74b84332 42688
a848cd7e
SC
42689
42690
42691echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42692echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42693set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42694if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42695 echo $ECHO_N "(cached) $ECHO_C" >&6
42696else
42697 cat >conftest.make <<\_ACEOF
42698all:
42699 @echo 'ac_maketemp="$(MAKE)"'
42700_ACEOF
42701# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42702eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42703if test -n "$ac_maketemp"; then
42704 eval ac_cv_prog_make_${ac_make}_set=yes
42705else
42706 eval ac_cv_prog_make_${ac_make}_set=no
42707fi
42708rm -f conftest.make
42709fi
42710if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42711 echo "$as_me:$LINENO: result: yes" >&5
42712echo "${ECHO_T}yes" >&6
42713 SET_MAKE=
42714else
42715 echo "$as_me:$LINENO: result: no" >&5
42716echo "${ECHO_T}no" >&6
42717 SET_MAKE="MAKE=${MAKE-make}"
42718fi
42719
42720
a848cd7e 42721
ceec2216
RL
42722 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
42723
a848cd7e 42724
ceec2216 42725 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 42726
a848cd7e 42727
ceec2216 42728 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 42729
ceec2216
RL
42730
42731 ac_config_files="$ac_config_files version-script Makefile"
42732
42733
42734 ac_config_commands="$ac_config_commands wx-config
42735 "
a848cd7e
SC
42736
42737
9103d280
RL
42738
42739
a848cd7e
SC
42740if test "$wxUSE_GUI" = "yes"; then
42741 SUBDIRS="samples demos utils contrib"
42742else SUBDIRS="samples utils"
42743fi
42744
42745
42746
42747# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
42748if test "${with_cppunit_prefix+set}" = set; then
42749 withval="$with_cppunit_prefix"
42750 cppunit_config_prefix="$withval"
42751else
42752 cppunit_config_prefix=""
42753fi;
42754
42755# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
42756if test "${with_cppunit_exec_prefix+set}" = set; then
42757 withval="$with_cppunit_exec_prefix"
42758 cppunit_config_exec_prefix="$withval"
42759else
42760 cppunit_config_exec_prefix=""
42761fi;
42762
42763 if test x$cppunit_config_exec_prefix != x ; then
42764 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
42765 if test x${CPPUNIT_CONFIG+set} != xset ; then
42766 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
42767 fi
42768 fi
42769 if test x$cppunit_config_prefix != x ; then
42770 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
42771 if test x${CPPUNIT_CONFIG+set} != xset ; then
42772 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
42773 fi
42774 fi
42775
42776 # Extract the first word of "cppunit-config", so it can be a program name with args.
42777set dummy cppunit-config; ac_word=$2
42778echo "$as_me:$LINENO: checking for $ac_word" >&5
42779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42780if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
42781 echo $ECHO_N "(cached) $ECHO_C" >&6
42782else
42783 case $CPPUNIT_CONFIG in
42784 [\\/]* | ?:[\\/]*)
42785 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
42786 ;;
42787 *)
42788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42789for as_dir in $PATH
42790do
42791 IFS=$as_save_IFS
42792 test -z "$as_dir" && as_dir=.
42793 for ac_exec_ext in '' $ac_executable_extensions; do
42794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42795 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42797 break 2
42798 fi
42799done
42800done
42801
42802 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
42803 ;;
42804esac
42805fi
42806CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
42807
42808if test -n "$CPPUNIT_CONFIG"; then
42809 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
42810echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
42811else
42812 echo "$as_me:$LINENO: result: no" >&5
42813echo "${ECHO_T}no" >&6
42814fi
42815
42816 cppunit_version_min=1.8.0
42817
42818 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
42819echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
42820 no_cppunit=""
42821 if test "$CPPUNIT_CONFIG" = "no" ; then
42822 no_cppunit=yes
42823 else
42824 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
42825 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
42826 cppunit_version=`$CPPUNIT_CONFIG --version`
42827
42828 cppunit_major_version=`echo $cppunit_version | \
42829 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42830 cppunit_minor_version=`echo $cppunit_version | \
42831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42832 cppunit_micro_version=`echo $cppunit_version | \
42833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42834
42835 cppunit_major_min=`echo $cppunit_version_min | \
42836 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42837 cppunit_minor_min=`echo $cppunit_version_min | \
42838 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42839 cppunit_micro_min=`echo $cppunit_version_min | \
42840 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42841
42842 cppunit_version_proper=`expr \
42843 $cppunit_major_version \> $cppunit_major_min \| \
42844 $cppunit_major_version \= $cppunit_major_min \& \
42845 $cppunit_minor_version \> $cppunit_minor_min \| \
42846 $cppunit_major_version \= $cppunit_major_min \& \
42847 $cppunit_minor_version \= $cppunit_minor_min \& \
42848 $cppunit_micro_version \>= $cppunit_micro_min `
42849
42850 if test "$cppunit_version_proper" = "1" ; then
42851 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
42852echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
42853 else
42854 echo "$as_me:$LINENO: result: no" >&5
42855echo "${ECHO_T}no" >&6
42856 no_cppunit=yes
42857 fi
42858 fi
42859
42860 if test "x$no_cppunit" = x ; then
c2218763 42861 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
42862 else
42863 CPPUNIT_CFLAGS=""
42864 CPPUNIT_LIBS=""
c2218763 42865 :
a848cd7e
SC
42866 fi
42867
42868
42869
42870
42871
42872for subdir in `echo $SUBDIRS`; do
42873 if test -d ${srcdir}/${subdir} ; then
42874 if test "$wxUSE_GUI" = "yes"; then
42875 if test ${subdir} = "samples"; then
42876 makefiles="samples/Makefile.in $makefiles"
42877 for sample in `echo $SAMPLES_SUBDIRS`; do
42878 if test -d $srcdir/samples/$sample; then
42879 makefiles="samples/$sample/Makefile.in $makefiles"
42880 fi
42881 done
42882 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42883 fi
42884 else if test ${subdir} = "samples"; then
42885 makefiles="samples/Makefile.in samples/console/Makefile.in"
42886 elif test ${subdir} = "utils"; then
6537ccf8
VS
42887 makefiles=""
42888 for util in HelpGen tex2rtf ; do
42889 if test -d $srcdir/utils/$util ; then
42890 makefiles="utils/$util/Makefile.in \
42891 utils/$util/src/Makefile.in \
42892 $makefiles"
42893 fi
42894 done
a848cd7e
SC
42895 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42896 fi
42897 fi
42898
42899 for mkin in $makefiles ; do
42900 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
42901 ac_config_files="$ac_config_files $mk"
42902
42903 done
42904 fi
42905done
42906
42907
42908cat >confcache <<\_ACEOF
42909# This file is a shell script that caches the results of configure
42910# tests run on this system so they can be shared between configure
42911# scripts and configure runs, see configure's option --config-cache.
42912# It is not useful on other systems. If it contains results you don't
42913# want to keep, you may remove or edit it.
42914#
42915# config.status only pays attention to the cache file if you give it
42916# the --recheck option to rerun configure.
42917#
42918# `ac_cv_env_foo' variables (set or unset) will be overridden when
42919# loading this file, other *unset* `ac_cv_foo' will be assigned the
42920# following values.
42921
42922_ACEOF
42923
42924# The following way of writing the cache mishandles newlines in values,
42925# but we know of no workaround that is simple, portable, and efficient.
42926# So, don't put newlines in cache variables' values.
42927# Ultrix sh set writes to stderr and can't be redirected directly,
42928# and sets the high bit in the cache file unless we assign to the vars.
42929{
42930 (set) 2>&1 |
42931 case `(ac_space=' '; set | grep ac_space) 2>&1` in
42932 *ac_space=\ *)
42933 # `set' does not quote correctly, so add quotes (double-quote
42934 # substitution turns \\\\ into \\, and sed turns \\ into \).
42935 sed -n \
ac1cb8d3
VS
42936 "s/'/'\\\\''/g;
42937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
42938 ;;
42939 *)
42940 # `set' quotes correctly as required by POSIX, so do not add quotes.
42941 sed -n \
ac1cb8d3 42942 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
42943 ;;
42944 esac;
42945} |
42946 sed '
42947 t clear
42948 : clear
42949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42950 t end
42951 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42952 : end' >>confcache
42953if diff $cache_file confcache >/dev/null 2>&1; then :; else
42954 if test -w $cache_file; then
42955 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
42956 cat confcache >$cache_file
42957 else
42958 echo "not updating unwritable cache $cache_file"
42959 fi
42960fi
42961rm -f confcache
42962
42963test "x$prefix" = xNONE && prefix=$ac_default_prefix
42964# Let make expand exec_prefix.
42965test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42966
42967# VPATH may cause trouble with some makes, so we remove $(srcdir),
42968# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42969# trailing colons and then remove the whole line if VPATH becomes empty
42970# (actually we leave an empty line to preserve line numbers).
42971if test "x$srcdir" = x.; then
ac1cb8d3 42972 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
42973s/:*\$(srcdir):*/:/;
42974s/:*\${srcdir}:*/:/;
42975s/:*@srcdir@:*/:/;
ac1cb8d3 42976s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 42977s/:*$//;
ac1cb8d3 42978s/^[^=]*=[ ]*$//;
a848cd7e
SC
42979}'
42980fi
42981
42982DEFS=-DHAVE_CONFIG_H
42983
42984ac_libobjs=
42985ac_ltlibobjs=
42986for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42987 # 1. Remove the extension, and $U if already installed.
42988 ac_i=`echo "$ac_i" |
ac1cb8d3 42989 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
42990 # 2. Add them.
42991 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42992 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42993done
42994LIBOBJS=$ac_libobjs
42995
42996LTLIBOBJS=$ac_ltlibobjs
42997
42998
42999
43000: ${CONFIG_STATUS=./config.status}
43001ac_clean_files_save=$ac_clean_files
43002ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43003{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43004echo "$as_me: creating $CONFIG_STATUS" >&6;}
43005cat >$CONFIG_STATUS <<_ACEOF
43006#! $SHELL
43007# Generated by $as_me.
43008# Run this file to recreate the current configuration.
43009# Compiler output produced by configure, useful for debugging
43010# configure, is in config.log if it exists.
43011
43012debug=false
43013ac_cs_recheck=false
43014ac_cs_silent=false
43015SHELL=\${CONFIG_SHELL-$SHELL}
43016_ACEOF
43017
43018cat >>$CONFIG_STATUS <<\_ACEOF
43019## --------------------- ##
43020## M4sh Initialization. ##
43021## --------------------- ##
43022
43023# Be Bourne compatible
43024if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43025 emulate sh
43026 NULLCMD=:
43027 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43028 # is contrary to our usage. Disable this feature.
43029 alias -g '${1+"$@"}'='"$@"'
43030elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43031 set -o posix
43032fi
ac1cb8d3 43033DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43034
43035# Support unset when possible.
ac1cb8d3 43036if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43037 as_unset=unset
43038else
43039 as_unset=false
43040fi
43041
43042
43043# Work around bugs in pre-3.0 UWIN ksh.
43044$as_unset ENV MAIL MAILPATH
43045PS1='$ '
43046PS2='> '
43047PS4='+ '
43048
43049# NLS nuisances.
43050for as_var in \
43051 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43052 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43053 LC_TELEPHONE LC_TIME
43054do
ac1cb8d3 43055 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43056 eval $as_var=C; export $as_var
43057 else
43058 $as_unset $as_var
43059 fi
43060done
43061
43062# Required to use basename.
43063if expr a : '\(a\)' >/dev/null 2>&1; then
43064 as_expr=expr
43065else
43066 as_expr=false
43067fi
43068
43069if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43070 as_basename=basename
43071else
43072 as_basename=false
43073fi
43074
43075
43076# Name of the executable.
43077as_me=`$as_basename "$0" ||
43078$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43079 X"$0" : 'X\(//\)$' \| \
43080 X"$0" : 'X\(/\)$' \| \
43081 . : '\(.\)' 2>/dev/null ||
43082echo X/"$0" |
43083 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43084 /^X\/\(\/\/\)$/{ s//\1/; q; }
43085 /^X\/\(\/\).*/{ s//\1/; q; }
43086 s/.*/./; q'`
43087
43088
43089# PATH needs CR, and LINENO needs CR and PATH.
43090# Avoid depending upon Character Ranges.
43091as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43092as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43093as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43094as_cr_digits='0123456789'
43095as_cr_alnum=$as_cr_Letters$as_cr_digits
43096
43097# The user is always right.
43098if test "${PATH_SEPARATOR+set}" != set; then
43099 echo "#! /bin/sh" >conf$$.sh
43100 echo "exit 0" >>conf$$.sh
43101 chmod +x conf$$.sh
43102 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43103 PATH_SEPARATOR=';'
43104 else
43105 PATH_SEPARATOR=:
43106 fi
43107 rm -f conf$$.sh
43108fi
43109
43110
43111 as_lineno_1=$LINENO
43112 as_lineno_2=$LINENO
43113 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43114 test "x$as_lineno_1" != "x$as_lineno_2" &&
43115 test "x$as_lineno_3" = "x$as_lineno_2" || {
43116 # Find who we are. Look in the path if we contain no path at all
43117 # relative or not.
43118 case $0 in
43119 *[\\/]* ) as_myself=$0 ;;
43120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43121for as_dir in $PATH
43122do
43123 IFS=$as_save_IFS
43124 test -z "$as_dir" && as_dir=.
43125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43126done
43127
43128 ;;
43129 esac
43130 # We did not find ourselves, most probably we were run as `sh COMMAND'
43131 # in which case we are not to be found in the path.
43132 if test "x$as_myself" = x; then
43133 as_myself=$0
43134 fi
43135 if test ! -f "$as_myself"; then
43136 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43137echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43138 { (exit 1); exit 1; }; }
43139 fi
43140 case $CONFIG_SHELL in
43141 '')
43142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43143for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43144do
43145 IFS=$as_save_IFS
43146 test -z "$as_dir" && as_dir=.
43147 for as_base in sh bash ksh sh5; do
43148 case $as_dir in
43149 /*)
43150 if ("$as_dir/$as_base" -c '
43151 as_lineno_1=$LINENO
43152 as_lineno_2=$LINENO
43153 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43154 test "x$as_lineno_1" != "x$as_lineno_2" &&
43155 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43156 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43157 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43158 CONFIG_SHELL=$as_dir/$as_base
43159 export CONFIG_SHELL
43160 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43161 fi;;
43162 esac
43163 done
43164done
43165;;
43166 esac
43167
43168 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43169 # uniformly replaced by the line number. The first 'sed' inserts a
43170 # line-number line before each line; the second 'sed' does the real
43171 # work. The second script uses 'N' to pair each line-number line
43172 # with the numbered line, and appends trailing '-' during
43173 # substitution so that $LINENO is not a special case at line end.
43174 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43175 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43176 sed '=' <$as_myself |
43177 sed '
43178 N
43179 s,$,-,
43180 : loop
43181 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43182 t loop
43183 s,-$,,
43184 s,^['$as_cr_digits']*\n,,
43185 ' >$as_me.lineno &&
43186 chmod +x $as_me.lineno ||
43187 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43188echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43189 { (exit 1); exit 1; }; }
43190
43191 # Don't try to exec as it changes $[0], causing all sort of problems
43192 # (the dirname of $[0] is not the place where we might find the
43193 # original and so on. Autoconf is especially sensible to this).
43194 . ./$as_me.lineno
43195 # Exit status is that of the last command.
43196 exit
43197}
43198
43199
43200case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43201 *c*,-n*) ECHO_N= ECHO_C='
43202' ECHO_T=' ' ;;
43203 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43204 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43205esac
43206
43207if expr a : '\(a\)' >/dev/null 2>&1; then
43208 as_expr=expr
43209else
43210 as_expr=false
43211fi
43212
43213rm -f conf$$ conf$$.exe conf$$.file
43214echo >conf$$.file
43215if ln -s conf$$.file conf$$ 2>/dev/null; then
43216 # We could just check for DJGPP; but this test a) works b) is more generic
43217 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43218 if test -f conf$$.exe; then
43219 # Don't use ln at all; we don't have any links
43220 as_ln_s='cp -p'
43221 else
43222 as_ln_s='ln -s'
43223 fi
43224elif ln conf$$.file conf$$ 2>/dev/null; then
43225 as_ln_s=ln
43226else
43227 as_ln_s='cp -p'
43228fi
43229rm -f conf$$ conf$$.exe conf$$.file
43230
43231if mkdir -p . 2>/dev/null; then
43232 as_mkdir_p=:
43233else
ac1cb8d3 43234 test -d ./-p && rmdir ./-p
a848cd7e
SC
43235 as_mkdir_p=false
43236fi
43237
43238as_executable_p="test -f"
43239
43240# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 43241as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43242
43243# Sed expression to map a string onto a valid variable name.
ac1cb8d3 43244as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43245
43246
43247# IFS
43248# We need space, tab and new line, in precisely that order.
43249as_nl='
43250'
43251IFS=" $as_nl"
43252
43253# CDPATH.
43254$as_unset CDPATH
43255
43256exec 6>&1
43257
43258# Open the log real soon, to keep \$[0] and so on meaningful, and to
43259# report actual input values of CONFIG_FILES etc. instead of their
43260# values after options handling. Logging --version etc. is OK.
43261exec 5>>config.log
43262{
43263 echo
43264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43265## Running $as_me. ##
43266_ASBOX
43267} >&5
43268cat >&5 <<_CSEOF
43269
81f90336 43270This file was extended by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 43271generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
43272
43273 CONFIG_FILES = $CONFIG_FILES
43274 CONFIG_HEADERS = $CONFIG_HEADERS
43275 CONFIG_LINKS = $CONFIG_LINKS
43276 CONFIG_COMMANDS = $CONFIG_COMMANDS
43277 $ $0 $@
43278
43279_CSEOF
43280echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43281echo >&5
43282_ACEOF
43283
43284# Files that config.status was made for.
43285if test -n "$ac_config_files"; then
43286 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43287fi
43288
43289if test -n "$ac_config_headers"; then
43290 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43291fi
43292
43293if test -n "$ac_config_links"; then
43294 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43295fi
43296
43297if test -n "$ac_config_commands"; then
43298 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43299fi
43300
43301cat >>$CONFIG_STATUS <<\_ACEOF
43302
43303ac_cs_usage="\
43304\`$as_me' instantiates files from templates according to the
43305current configuration.
43306
43307Usage: $0 [OPTIONS] [FILE]...
43308
43309 -h, --help print this help, then exit
43310 -V, --version print version number, then exit
43311 -q, --quiet do not print progress messages
43312 -d, --debug don't remove temporary files
43313 --recheck update $as_me by reconfiguring in the same conditions
43314 --file=FILE[:TEMPLATE]
ac1cb8d3 43315 instantiate the configuration file FILE
a848cd7e 43316 --header=FILE[:TEMPLATE]
ac1cb8d3 43317 instantiate the configuration header FILE
a848cd7e
SC
43318
43319Configuration files:
43320$config_files
43321
43322Configuration headers:
43323$config_headers
43324
43325Configuration commands:
43326$config_commands
43327
43328Report bugs to <bug-autoconf@gnu.org>."
43329_ACEOF
43330
43331cat >>$CONFIG_STATUS <<_ACEOF
43332ac_cs_version="\\
81f90336 43333wxWidgets config.status 2.5.4
ac1cb8d3 43334configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
43335 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43336
ac1cb8d3 43337Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
43338This config.status script is free software; the Free Software Foundation
43339gives unlimited permission to copy, distribute and modify it."
43340srcdir=$srcdir
43341INSTALL="$INSTALL"
43342_ACEOF
43343
43344cat >>$CONFIG_STATUS <<\_ACEOF
43345# If no file are specified by the user, then we need to provide default
43346# value. By we need to know if files were specified by the user.
43347ac_need_defaults=:
43348while test $# != 0
43349do
43350 case $1 in
43351 --*=*)
43352 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43353 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43354 ac_shift=:
43355 ;;
43356 -*)
43357 ac_option=$1
43358 ac_optarg=$2
43359 ac_shift=shift
43360 ;;
43361 *) # This is not an option, so the user has probably given explicit
43362 # arguments.
43363 ac_option=$1
43364 ac_need_defaults=false;;
43365 esac
43366
43367 case $ac_option in
43368 # Handling of the options.
43369_ACEOF
43370cat >>$CONFIG_STATUS <<\_ACEOF
43371 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43372 ac_cs_recheck=: ;;
43373 --version | --vers* | -V )
43374 echo "$ac_cs_version"; exit 0 ;;
43375 --he | --h)
43376 # Conflict between --help and --header
43377 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43378Try \`$0 --help' for more information." >&5
43379echo "$as_me: error: ambiguous option: $1
43380Try \`$0 --help' for more information." >&2;}
43381 { (exit 1); exit 1; }; };;
43382 --help | --hel | -h )
43383 echo "$ac_cs_usage"; exit 0 ;;
43384 --debug | --d* | -d )
43385 debug=: ;;
43386 --file | --fil | --fi | --f )
43387 $ac_shift
43388 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43389 ac_need_defaults=false;;
43390 --header | --heade | --head | --hea )
43391 $ac_shift
43392 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43393 ac_need_defaults=false;;
43394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43395 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43396 ac_cs_silent=: ;;
43397
43398 # This is an error.
43399 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43400Try \`$0 --help' for more information." >&5
43401echo "$as_me: error: unrecognized option: $1
43402Try \`$0 --help' for more information." >&2;}
43403 { (exit 1); exit 1; }; } ;;
43404
43405 *) ac_config_targets="$ac_config_targets $1" ;;
43406
43407 esac
43408 shift
43409done
43410
43411ac_configure_extra_args=
43412
43413if $ac_cs_silent; then
43414 exec 6>/dev/null
43415 ac_configure_extra_args="$ac_configure_extra_args --silent"
43416fi
43417
43418_ACEOF
43419cat >>$CONFIG_STATUS <<_ACEOF
43420if \$ac_cs_recheck; then
43421 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43422 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43423fi
43424
43425_ACEOF
43426
43427cat >>$CONFIG_STATUS <<_ACEOF
43428#
43429# INIT-COMMANDS section.
43430#
43431
ceec2216
RL
43432 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43433 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43434 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43435 LN_S="${LN_S}"
a848cd7e
SC
43436
43437
43438_ACEOF
43439
43440
43441
43442cat >>$CONFIG_STATUS <<\_ACEOF
43443for ac_config_target in $ac_config_targets
43444do
43445 case "$ac_config_target" in
43446 # Handling of arguments.
ceec2216
RL
43447 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
43448 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
43449 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
43450 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43451 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
43452 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
43453 "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
43454 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43455echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43456 { (exit 1); exit 1; }; };;
43457 esac
43458done
43459
43460# If the user did not use the arguments to specify the items to instantiate,
43461# then the envvar interface is used. Set only those that are not.
43462# We use the long form for the default assignment because of an extremely
43463# bizarre bug on SunOS 4.1.3.
43464if $ac_need_defaults; then
43465 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43466 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43467 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43468fi
43469
43470# Have a temporary directory for convenience. Make it in the build tree
43471# simply because there is no reason to put it here, and in addition,
43472# creating and moving files from /tmp can sometimes cause problems.
43473# Create a temporary directory, and hook for its removal unless debugging.
43474$debug ||
43475{
43476 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43477 trap '{ (exit 1); exit 1; }' 1 2 13 15
43478}
43479
43480# Create a (secure) tmp directory for tmp files.
43481
43482{
43483 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43484 test -n "$tmp" && test -d "$tmp"
43485} ||
43486{
43487 tmp=./confstat$$-$RANDOM
43488 (umask 077 && mkdir $tmp)
43489} ||
43490{
43491 echo "$me: cannot create a temporary directory in ." >&2
43492 { (exit 1); exit 1; }
43493}
43494
43495_ACEOF
43496
43497cat >>$CONFIG_STATUS <<_ACEOF
43498
43499#
43500# CONFIG_FILES section.
43501#
43502
43503# No need to generate the scripts if there are no CONFIG_FILES.
43504# This happens for instance when ./config.status config.h
43505if test -n "\$CONFIG_FILES"; then
43506 # Protect against being on the right side of a sed subst in config.status.
43507 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43508 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43509s,@SHELL@,$SHELL,;t t
43510s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43511s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43512s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43513s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43514s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43515s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43516s,@exec_prefix@,$exec_prefix,;t t
43517s,@prefix@,$prefix,;t t
43518s,@program_transform_name@,$program_transform_name,;t t
43519s,@bindir@,$bindir,;t t
43520s,@sbindir@,$sbindir,;t t
43521s,@libexecdir@,$libexecdir,;t t
43522s,@datadir@,$datadir,;t t
43523s,@sysconfdir@,$sysconfdir,;t t
43524s,@sharedstatedir@,$sharedstatedir,;t t
43525s,@localstatedir@,$localstatedir,;t t
43526s,@libdir@,$libdir,;t t
43527s,@includedir@,$includedir,;t t
43528s,@oldincludedir@,$oldincludedir,;t t
43529s,@infodir@,$infodir,;t t
43530s,@mandir@,$mandir,;t t
43531s,@build_alias@,$build_alias,;t t
43532s,@host_alias@,$host_alias,;t t
43533s,@target_alias@,$target_alias,;t t
43534s,@DEFS@,$DEFS,;t t
43535s,@ECHO_C@,$ECHO_C,;t t
43536s,@ECHO_N@,$ECHO_N,;t t
43537s,@ECHO_T@,$ECHO_T,;t t
43538s,@LIBS@,$LIBS,;t t
43539s,@build@,$build,;t t
43540s,@build_cpu@,$build_cpu,;t t
43541s,@build_vendor@,$build_vendor,;t t
43542s,@build_os@,$build_os,;t t
43543s,@host@,$host,;t t
43544s,@host_cpu@,$host_cpu,;t t
43545s,@host_vendor@,$host_vendor,;t t
43546s,@host_os@,$host_os,;t t
43547s,@target@,$target,;t t
43548s,@target_cpu@,$target_cpu,;t t
43549s,@target_vendor@,$target_vendor,;t t
43550s,@target_os@,$target_os,;t t
43551s,@CC@,$CC,;t t
43552s,@CFLAGS@,$CFLAGS,;t t
43553s,@LDFLAGS@,$LDFLAGS,;t t
43554s,@CPPFLAGS@,$CPPFLAGS,;t t
43555s,@ac_ct_CC@,$ac_ct_CC,;t t
43556s,@EXEEXT@,$EXEEXT,;t t
43557s,@OBJEXT@,$OBJEXT,;t t
43558s,@CPP@,$CPP,;t t
43559s,@EGREP@,$EGREP,;t t
43560s,@CXX@,$CXX,;t t
43561s,@CXXFLAGS@,$CXXFLAGS,;t t
43562s,@ac_ct_CXX@,$ac_ct_CXX,;t t
43563s,@RANLIB@,$RANLIB,;t t
43564s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43565s,@AR@,$AR,;t t
43566s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43567s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43568s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43569s,@STRIP@,$STRIP,;t t
43570s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
43571s,@LN_S@,$LN_S,;t t
43572s,@CXXCPP@,$CXXCPP,;t t
43573s,@subdirs@,$subdirs,;t t
43574s,@PKG_CONFIG@,$PKG_CONFIG,;t t
43575s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
43576s,@GTK_LIBS@,$GTK_LIBS,;t t
43577s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
43578s,@X_CFLAGS@,$X_CFLAGS,;t t
43579s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
43580s,@X_LIBS@,$X_LIBS,;t t
43581s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
43582s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
43583s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
43584s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
43585s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
43586s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
43587s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
43588s,@RESCOMP@,$RESCOMP,;t t
43589s,@DEREZ@,$DEREZ,;t t
43590s,@SETFILE@,$SETFILE,;t t
43591s,@LIBICONV@,$LIBICONV,;t t
43592s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
43593s,@SDL_CONFIG@,$SDL_CONFIG,;t t
43594s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
43595s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
43596s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
43597s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
43598s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
43599s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
43600s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
43601s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
43602s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
43603s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
43604s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
43605s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
43606s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
43607s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
43608s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
43609s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
43610s,@VENDOR@,$VENDOR,;t t
43611s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
43612s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
43613s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
43614s,@WXUNIV@,$WXUNIV,;t t
43615s,@MONOLITHIC@,$MONOLITHIC,;t t
43616s,@USE_PLUGINS@,$USE_PLUGINS,;t t
43617s,@EXTRALIBS@,$EXTRALIBS,;t t
43618s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
43619s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
43620s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
43621s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
43622s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
43623s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
43624s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 43625s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
43626s,@UNICODE@,$UNICODE,;t t
43627s,@BUILD@,$BUILD,;t t
43628s,@DEBUG_INFO@,$DEBUG_INFO,;t t
43629s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
43630s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
43631s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
43632s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
43633s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
43634s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
43635s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
43636s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
43637s,@SET_MAKE@,$SET_MAKE,;t t
43638s,@MAKE_SET@,$MAKE_SET,;t t
43639s,@ac_ct_AR@,$ac_ct_AR,;t t
43640s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43641s,@NM@,$NM,;t t
43642s,@ac_ct_NM@,$ac_ct_NM,;t t
43643s,@INSTALL_DIR@,$INSTALL_DIR,;t t
43644s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
43645s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
43646s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
43647s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
43648s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 43649s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
43650s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
43651s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 43652s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
43653s,@SO_SUFFIX@,$SO_SUFFIX,;t t
43654s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
43655s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
43656s,@LIBPREFIX@,$LIBPREFIX,;t t
43657s,@LIBEXT@,$LIBEXT,;t t
43658s,@DLLPREFIX@,$DLLPREFIX,;t t
43659s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
43660s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
43661s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
43662s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
43663s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
43664s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
43665s,@PIC_FLAG@,$PIC_FLAG,;t t
43666s,@USE_SOVERSION@,$USE_SOVERSION,;t t
43667s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
43668s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
43669s,@USE_MACVERSION@,$USE_MACVERSION,;t t
43670s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
43671s,@SONAME_FLAG@,$SONAME_FLAG,;t t
43672s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
43673s,@GCC_PCH@,$GCC_PCH,;t t
43674s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
43675s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
43676s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
43677s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
43678s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
43679s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
43680s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
43681s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
43682s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
43683s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
43684s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
43685s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
43686s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
43687s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
43688s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
43689s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
43690s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
43691s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 43692s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 43693s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 43694s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 43695s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
43696s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
43697s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 43698s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 43699s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 43700s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 43701s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
43702s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
43703s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
43704s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
43705s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
43706s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
43707s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
43708s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
43709s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 43710s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
43711s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
43712s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
43713s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 43714s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 43715s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
43716s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
43717s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
43718s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
43719s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 43720s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
43721s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
43722s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
43723s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
43724s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
43725s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
43726s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
43727s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
43728s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
43729s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
43730s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
43731s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
43732s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
43733s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
43734s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43735s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43736s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
43737s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
43738s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
43739s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
43740s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
43741s,@COND_SHARED_1@,$COND_SHARED_1,;t t
43742s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 43743s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 43744s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 43745s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
43746s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
43747s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
43748s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
43749s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
43750s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
43751s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
43752s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
43753s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
43754s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
43755s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
43756s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
43757s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
43758s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
43759s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
43760s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
43761s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
43762s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
43763s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
43764s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
43765s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
43766s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
43767s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
43768s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
43769s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
43770s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
43771s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
43772s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
43773s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
43774s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
43775s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
43776s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43777s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43778s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 43779s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 43780s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
43781s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
43782s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
43783s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
43784s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
43785s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 43786s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 43787s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 43788s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
43789s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
43790s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
43791s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
43792s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
43793s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
43794s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
43795s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
43796s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 43797s,@SHARED@,$SHARED,;t t
a848cd7e
SC
43798s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
43799s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
43800s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
43801s,@USE_GUI@,$USE_GUI,;t t
43802s,@AFMINSTALL@,$AFMINSTALL,;t t
43803s,@WIN32INSTALL@,$WIN32INSTALL,;t t
43804s,@TOOLKIT@,$TOOLKIT,;t t
43805s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 43806s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 43807s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
43808s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
43809s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 43810s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
43811s,@WIDGET_SET@,$WIDGET_SET,;t t
43812s,@WX_RELEASE@,$WX_RELEASE,;t t
43813s,@WX_VERSION@,$WX_VERSION,;t t
43814s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
43815s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
43816s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 43817s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
43818s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
43819s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
43820s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
43821s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 43822s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
43823s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
43824s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 43825s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 43826s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
43827s,@DISTDIR@,$DISTDIR,;t t
43828s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
43829s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
43830s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
43831s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
43832s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
43833s,@RESFLAGS@,$RESFLAGS,;t t
43834s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
43835s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
43836s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
43837s,@LIBWXMACRES@,$LIBWXMACRES,;t t
43838s,@MACRESCOMP@,$MACRESCOMP,;t t
43839s,@MACSETFILE@,$MACSETFILE,;t t
43840s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
43841s,@GCC@,$GCC,;t t
a848cd7e 43842s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
43843s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
43844s,@LIBOBJS@,$LIBOBJS,;t t
43845s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43846CEOF
43847
43848_ACEOF
43849
43850 cat >>$CONFIG_STATUS <<\_ACEOF
43851 # Split the substitutions into bite-sized pieces for seds with
43852 # small command number limits, like on Digital OSF/1 and HP-UX.
43853 ac_max_sed_lines=48
43854 ac_sed_frag=1 # Number of current file.
43855 ac_beg=1 # First line for current file.
43856 ac_end=$ac_max_sed_lines # Line after last line for current file.
43857 ac_more_lines=:
43858 ac_sed_cmds=
43859 while $ac_more_lines; do
43860 if test $ac_beg -gt 1; then
43861 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43862 else
43863 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43864 fi
43865 if test ! -s $tmp/subs.frag; then
43866 ac_more_lines=false
43867 else
43868 # The purpose of the label and of the branching condition is to
43869 # speed up the sed processing (if there are no `@' at all, there
43870 # is no need to browse any of the substitutions).
43871 # These are the two extra sed commands mentioned above.
43872 (echo ':t
43873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43874 if test -z "$ac_sed_cmds"; then
ac1cb8d3 43875 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 43876 else
ac1cb8d3 43877 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
43878 fi
43879 ac_sed_frag=`expr $ac_sed_frag + 1`
43880 ac_beg=$ac_end
43881 ac_end=`expr $ac_end + $ac_max_sed_lines`
43882 fi
43883 done
43884 if test -z "$ac_sed_cmds"; then
43885 ac_sed_cmds=cat
43886 fi
43887fi # test -n "$CONFIG_FILES"
43888
43889_ACEOF
43890cat >>$CONFIG_STATUS <<\_ACEOF
43891for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43893 case $ac_file in
43894 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43895 cat >$tmp/stdin
43896 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43898 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43899 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43900 * ) ac_file_in=$ac_file.in ;;
43901 esac
43902
43903 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43904 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43905$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43906 X"$ac_file" : 'X\(//\)[^/]' \| \
43907 X"$ac_file" : 'X\(//\)$' \| \
43908 X"$ac_file" : 'X\(/\)' \| \
43909 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43910echo X"$ac_file" |
43911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43913 /^X\(\/\/\)$/{ s//\1/; q; }
43914 /^X\(\/\).*/{ s//\1/; q; }
43915 s/.*/./; q'`
43916 { if $as_mkdir_p; then
43917 mkdir -p "$ac_dir"
43918 else
43919 as_dir="$ac_dir"
43920 as_dirs=
43921 while test ! -d "$as_dir"; do
43922 as_dirs="$as_dir $as_dirs"
43923 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43924$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43925 X"$as_dir" : 'X\(//\)[^/]' \| \
43926 X"$as_dir" : 'X\(//\)$' \| \
43927 X"$as_dir" : 'X\(/\)' \| \
43928 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43929echo X"$as_dir" |
43930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43932 /^X\(\/\/\)$/{ s//\1/; q; }
43933 /^X\(\/\).*/{ s//\1/; q; }
43934 s/.*/./; q'`
43935 done
43936 test ! -n "$as_dirs" || mkdir $as_dirs
43937 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43938echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43939 { (exit 1); exit 1; }; }; }
43940
43941 ac_builddir=.
43942
43943if test "$ac_dir" != .; then
43944 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43945 # A "../" for each directory in $ac_dir_suffix.
43946 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43947else
43948 ac_dir_suffix= ac_top_builddir=
43949fi
43950
43951case $srcdir in
43952 .) # No --srcdir option. We are building in place.
43953 ac_srcdir=.
43954 if test -z "$ac_top_builddir"; then
43955 ac_top_srcdir=.
43956 else
43957 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43958 fi ;;
43959 [\\/]* | ?:[\\/]* ) # Absolute path.
43960 ac_srcdir=$srcdir$ac_dir_suffix;
43961 ac_top_srcdir=$srcdir ;;
43962 *) # Relative path.
43963 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43964 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43965esac
ac1cb8d3
VS
43966
43967# Do not use `cd foo && pwd` to compute absolute paths, because
43968# the directories may not exist.
43969case `pwd` in
43970.) ac_abs_builddir="$ac_dir";;
43971*)
43972 case "$ac_dir" in
43973 .) ac_abs_builddir=`pwd`;;
43974 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43975 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43976 esac;;
43977esac
43978case $ac_abs_builddir in
43979.) ac_abs_top_builddir=${ac_top_builddir}.;;
43980*)
43981 case ${ac_top_builddir}. in
43982 .) ac_abs_top_builddir=$ac_abs_builddir;;
43983 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43984 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43985 esac;;
43986esac
43987case $ac_abs_builddir in
43988.) ac_abs_srcdir=$ac_srcdir;;
43989*)
43990 case $ac_srcdir in
43991 .) ac_abs_srcdir=$ac_abs_builddir;;
43992 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43993 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43994 esac;;
43995esac
43996case $ac_abs_builddir in
43997.) ac_abs_top_srcdir=$ac_top_srcdir;;
43998*)
43999 case $ac_top_srcdir in
44000 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44001 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44002 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44003 esac;;
44004esac
a848cd7e
SC
44005
44006
44007 case $INSTALL in
44008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44009 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44010 esac
44011
89be85c2
VS
44012 if test x"$ac_file" != x-; then
44013 { echo "$as_me:$LINENO: creating $ac_file" >&5
44014echo "$as_me: creating $ac_file" >&6;}
44015 rm -f "$ac_file"
44016 fi
a848cd7e
SC
44017 # Let's still pretend it is `configure' which instantiates (i.e., don't
44018 # use $as_me), people would be surprised to read:
44019 # /* config.h. Generated by config.status. */
44020 if test x"$ac_file" = x-; then
44021 configure_input=
44022 else
44023 configure_input="$ac_file. "
44024 fi
44025 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44026 sed 's,.*/,,'` by configure."
a848cd7e
SC
44027
44028 # First look for the input files in the build tree, otherwise in the
44029 # src tree.
44030 ac_file_inputs=`IFS=:
44031 for f in $ac_file_in; do
44032 case $f in
44033 -) echo $tmp/stdin ;;
44034 [\\/$]*)
ac1cb8d3
VS
44035 # Absolute (can't be DOS-style, as IFS=:)
44036 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44037echo "$as_me: error: cannot find input file: $f" >&2;}
44038 { (exit 1); exit 1; }; }
ac1cb8d3 44039 echo "$f";;
a848cd7e 44040 *) # Relative
ac1cb8d3
VS
44041 if test -f "$f"; then
44042 # Build tree
44043 echo "$f"
44044 elif test -f "$srcdir/$f"; then
44045 # Source tree
44046 echo "$srcdir/$f"
44047 else
44048 # /dev/null tree
44049 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44050echo "$as_me: error: cannot find input file: $f" >&2;}
44051 { (exit 1); exit 1; }; }
ac1cb8d3 44052 fi;;
a848cd7e
SC
44053 esac
44054 done` || { (exit 1); exit 1; }
44055_ACEOF
44056cat >>$CONFIG_STATUS <<_ACEOF
44057 sed "$ac_vpsub
44058$extrasub
44059_ACEOF
44060cat >>$CONFIG_STATUS <<\_ACEOF
44061:t
44062/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44063s,@configure_input@,$configure_input,;t t
44064s,@srcdir@,$ac_srcdir,;t t
44065s,@abs_srcdir@,$ac_abs_srcdir,;t t
44066s,@top_srcdir@,$ac_top_srcdir,;t t
44067s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44068s,@builddir@,$ac_builddir,;t t
44069s,@abs_builddir@,$ac_abs_builddir,;t t
44070s,@top_builddir@,$ac_top_builddir,;t t
44071s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44072s,@INSTALL@,$ac_INSTALL,;t t
44073" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44074 rm -f $tmp/stdin
44075 if test x"$ac_file" != x-; then
44076 mv $tmp/out $ac_file
44077 else
44078 cat $tmp/out
44079 rm -f $tmp/out
44080 fi
44081
ceec2216
RL
44082 # Run the commands associated with the file.
44083 case $ac_file in
44084 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44085 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44086 esac
a848cd7e
SC
44087done
44088_ACEOF
44089cat >>$CONFIG_STATUS <<\_ACEOF
44090
44091#
44092# CONFIG_HEADER section.
44093#
44094
44095# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44096# NAME is the cpp macro being defined and VALUE is the value it is being given.
44097#
44098# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44099ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44100ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44101ac_dC=' '
44102ac_dD=',;t'
44103# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44104ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44105ac_uB='$,\1#\2define\3'
44106ac_uC=' '
44107ac_uD=',;t'
44108
44109for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44110 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44111 case $ac_file in
44112 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44113 cat >$tmp/stdin
44114 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44115 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44116 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44117 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44118 * ) ac_file_in=$ac_file.in ;;
44119 esac
44120
44121 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44122echo "$as_me: creating $ac_file" >&6;}
44123
44124 # First look for the input files in the build tree, otherwise in the
44125 # src tree.
44126 ac_file_inputs=`IFS=:
44127 for f in $ac_file_in; do
44128 case $f in
44129 -) echo $tmp/stdin ;;
44130 [\\/$]*)
ac1cb8d3
VS
44131 # Absolute (can't be DOS-style, as IFS=:)
44132 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44133echo "$as_me: error: cannot find input file: $f" >&2;}
44134 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44135 # Do quote $f, to prevent DOS paths from being IFS'd.
44136 echo "$f";;
a848cd7e 44137 *) # Relative
ac1cb8d3
VS
44138 if test -f "$f"; then
44139 # Build tree
44140 echo "$f"
44141 elif test -f "$srcdir/$f"; then
44142 # Source tree
44143 echo "$srcdir/$f"
44144 else
44145 # /dev/null tree
44146 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44147echo "$as_me: error: cannot find input file: $f" >&2;}
44148 { (exit 1); exit 1; }; }
ac1cb8d3 44149 fi;;
a848cd7e
SC
44150 esac
44151 done` || { (exit 1); exit 1; }
44152 # Remove the trailing spaces.
ac1cb8d3 44153 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
44154
44155_ACEOF
44156
44157# Transform confdefs.h into two sed scripts, `conftest.defines' and
44158# `conftest.undefs', that substitutes the proper values into
44159# config.h.in to produce config.h. The first handles `#define'
44160# templates, and the second `#undef' templates.
44161# And first: Protect against being on the right side of a sed subst in
44162# config.status. Protect against being in an unquoted here document
44163# in config.status.
44164rm -f conftest.defines conftest.undefs
44165# Using a here document instead of a string reduces the quoting nightmare.
44166# Putting comments in sed scripts is not portable.
44167#
44168# `end' is used to avoid that the second main sed command (meant for
44169# 0-ary CPP macros) applies to n-ary macro definitions.
44170# See the Autoconf documentation for `clear'.
44171cat >confdef2sed.sed <<\_ACEOF
44172s/[\\&,]/\\&/g
44173s,[\\$`],\\&,g
44174t clear
44175: clear
ac1cb8d3 44176s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 44177t end
ac1cb8d3 44178s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
44179: end
44180_ACEOF
44181# If some macros were called several times there might be several times
44182# the same #defines, which is useless. Nevertheless, we may not want to
44183# sort them, since we want the *last* AC-DEFINE to be honored.
44184uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44185sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44186rm -f confdef2sed.sed
44187
44188# This sed command replaces #undef with comments. This is necessary, for
44189# example, in the case of _POSIX_SOURCE, which is predefined and required
44190# on some systems where configure will not decide to define it.
44191cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 44192s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
44193_ACEOF
44194
44195# Break up conftest.defines because some shells have a limit on the size
44196# of here documents, and old seds have small limits too (100 cmds).
44197echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 44198echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
44199echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44200echo ' :' >>$CONFIG_STATUS
44201rm -f conftest.tail
44202while grep . conftest.defines >/dev/null
44203do
44204 # Write a limited-size here document to $tmp/defines.sed.
44205 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44206 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 44207 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
44208 # Work around the forget-to-reset-the-flag bug.
44209 echo 't clr' >>$CONFIG_STATUS
44210 echo ': clr' >>$CONFIG_STATUS
44211 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44212 echo 'CEOF
44213 sed -f $tmp/defines.sed $tmp/in >$tmp/out
44214 rm -f $tmp/in
44215 mv $tmp/out $tmp/in
44216' >>$CONFIG_STATUS
44217 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44218 rm -f conftest.defines
44219 mv conftest.tail conftest.defines
44220done
44221rm -f conftest.defines
44222echo ' fi # grep' >>$CONFIG_STATUS
44223echo >>$CONFIG_STATUS
44224
44225# Break up conftest.undefs because some shells have a limit on the size
44226# of here documents, and old seds have small limits too (100 cmds).
44227echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
44228rm -f conftest.tail
44229while grep . conftest.undefs >/dev/null
44230do
44231 # Write a limited-size here document to $tmp/undefs.sed.
44232 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44233 # Speed up: don't consider the non `#undef'
ac1cb8d3 44234 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
44235 # Work around the forget-to-reset-the-flag bug.
44236 echo 't clr' >>$CONFIG_STATUS
44237 echo ': clr' >>$CONFIG_STATUS
44238 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44239 echo 'CEOF
44240 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44241 rm -f $tmp/in
44242 mv $tmp/out $tmp/in
44243' >>$CONFIG_STATUS
44244 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44245 rm -f conftest.undefs
44246 mv conftest.tail conftest.undefs
44247done
44248rm -f conftest.undefs
44249
44250cat >>$CONFIG_STATUS <<\_ACEOF
44251 # Let's still pretend it is `configure' which instantiates (i.e., don't
44252 # use $as_me), people would be surprised to read:
44253 # /* config.h. Generated by config.status. */
44254 if test x"$ac_file" = x-; then
44255 echo "/* Generated by configure. */" >$tmp/config.h
44256 else
44257 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44258 fi
44259 cat $tmp/in >>$tmp/config.h
44260 rm -f $tmp/in
44261 if test x"$ac_file" != x-; then
44262 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44263 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44264echo "$as_me: $ac_file is unchanged" >&6;}
44265 else
44266 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44267$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44268 X"$ac_file" : 'X\(//\)[^/]' \| \
44269 X"$ac_file" : 'X\(//\)$' \| \
44270 X"$ac_file" : 'X\(/\)' \| \
44271 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44272echo X"$ac_file" |
44273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44274 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44275 /^X\(\/\/\)$/{ s//\1/; q; }
44276 /^X\(\/\).*/{ s//\1/; q; }
44277 s/.*/./; q'`
44278 { if $as_mkdir_p; then
44279 mkdir -p "$ac_dir"
44280 else
44281 as_dir="$ac_dir"
44282 as_dirs=
44283 while test ! -d "$as_dir"; do
44284 as_dirs="$as_dir $as_dirs"
44285 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44286$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44287 X"$as_dir" : 'X\(//\)[^/]' \| \
44288 X"$as_dir" : 'X\(//\)$' \| \
44289 X"$as_dir" : 'X\(/\)' \| \
44290 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44291echo X"$as_dir" |
44292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44294 /^X\(\/\/\)$/{ s//\1/; q; }
44295 /^X\(\/\).*/{ s//\1/; q; }
44296 s/.*/./; q'`
44297 done
44298 test ! -n "$as_dirs" || mkdir $as_dirs
44299 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44300echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44301 { (exit 1); exit 1; }; }; }
44302
44303 rm -f $ac_file
44304 mv $tmp/config.h $ac_file
44305 fi
44306 else
44307 cat $tmp/config.h
44308 rm -f $tmp/config.h
44309 fi
44310done
44311_ACEOF
44312cat >>$CONFIG_STATUS <<\_ACEOF
44313
44314#
44315# CONFIG_COMMANDS section.
44316#
44317for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44318 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44319 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44320 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44321$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44322 X"$ac_dest" : 'X\(//\)[^/]' \| \
44323 X"$ac_dest" : 'X\(//\)$' \| \
44324 X"$ac_dest" : 'X\(/\)' \| \
44325 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44326echo X"$ac_dest" |
44327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44329 /^X\(\/\/\)$/{ s//\1/; q; }
44330 /^X\(\/\).*/{ s//\1/; q; }
44331 s/.*/./; q'`
ac1cb8d3
VS
44332 { if $as_mkdir_p; then
44333 mkdir -p "$ac_dir"
44334 else
44335 as_dir="$ac_dir"
44336 as_dirs=
44337 while test ! -d "$as_dir"; do
44338 as_dirs="$as_dir $as_dirs"
44339 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44341 X"$as_dir" : 'X\(//\)[^/]' \| \
44342 X"$as_dir" : 'X\(//\)$' \| \
44343 X"$as_dir" : 'X\(/\)' \| \
44344 . : '\(.\)' 2>/dev/null ||
44345echo X"$as_dir" |
44346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44348 /^X\(\/\/\)$/{ s//\1/; q; }
44349 /^X\(\/\).*/{ s//\1/; q; }
44350 s/.*/./; q'`
44351 done
44352 test ! -n "$as_dirs" || mkdir $as_dirs
44353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44354echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44355 { (exit 1); exit 1; }; }; }
44356
a848cd7e
SC
44357 ac_builddir=.
44358
44359if test "$ac_dir" != .; then
44360 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44361 # A "../" for each directory in $ac_dir_suffix.
44362 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44363else
44364 ac_dir_suffix= ac_top_builddir=
44365fi
44366
44367case $srcdir in
44368 .) # No --srcdir option. We are building in place.
44369 ac_srcdir=.
44370 if test -z "$ac_top_builddir"; then
44371 ac_top_srcdir=.
44372 else
44373 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44374 fi ;;
44375 [\\/]* | ?:[\\/]* ) # Absolute path.
44376 ac_srcdir=$srcdir$ac_dir_suffix;
44377 ac_top_srcdir=$srcdir ;;
44378 *) # Relative path.
44379 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44380 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44381esac
ac1cb8d3
VS
44382
44383# Do not use `cd foo && pwd` to compute absolute paths, because
44384# the directories may not exist.
44385case `pwd` in
44386.) ac_abs_builddir="$ac_dir";;
44387*)
44388 case "$ac_dir" in
44389 .) ac_abs_builddir=`pwd`;;
44390 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44391 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44392 esac;;
44393esac
44394case $ac_abs_builddir in
44395.) ac_abs_top_builddir=${ac_top_builddir}.;;
44396*)
44397 case ${ac_top_builddir}. in
44398 .) ac_abs_top_builddir=$ac_abs_builddir;;
44399 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44400 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44401 esac;;
44402esac
44403case $ac_abs_builddir in
44404.) ac_abs_srcdir=$ac_srcdir;;
44405*)
44406 case $ac_srcdir in
44407 .) ac_abs_srcdir=$ac_abs_builddir;;
44408 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44409 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44410 esac;;
44411esac
44412case $ac_abs_builddir in
44413.) ac_abs_top_srcdir=$ac_top_srcdir;;
44414*)
44415 case $ac_top_srcdir in
44416 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44417 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44418 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44419 esac;;
44420esac
a848cd7e
SC
44421
44422
44423 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44424echo "$as_me: executing $ac_dest commands" >&6;}
44425 case $ac_dest in
ceec2216
RL
44426 wx-config ) rm -f wx-config
44427 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
44428 ;;
a848cd7e
SC
44429 esac
44430done
44431_ACEOF
44432
44433cat >>$CONFIG_STATUS <<\_ACEOF
44434
44435{ (exit 0); exit 0; }
44436_ACEOF
44437chmod +x $CONFIG_STATUS
44438ac_clean_files=$ac_clean_files_save
44439
44440
44441# configure is writing to config.log, and then calls config.status.
44442# config.status does its own redirection, appending to config.log.
44443# Unfortunately, on DOS this fails, as config.log is still kept open
44444# by configure, so config.status won't be able to write to it; its
44445# output is simply discarded. So we exec the FD to /dev/null,
44446# effectively closing config.log, so it can be properly (re)opened and
44447# appended to by config.status. When coming back to configure, we
44448# need to make the FD available again.
44449if test "$no_create" != yes; then
44450 ac_cs_success=:
44451 ac_config_status_args=
44452 test "$silent" = yes &&
44453 ac_config_status_args="$ac_config_status_args --quiet"
44454 exec 5>/dev/null
44455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44456 exec 5>>config.log
44457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44458 # would make configure fail if this is the last instruction.
44459 $ac_cs_success || { (exit 1); exit 1; }
44460fi
44461
44462#
44463# CONFIG_SUBDIRS section.
44464#
44465if test "$no_recursion" != yes; then
44466
44467 # Remove --cache-file and --srcdir arguments so they do not pile up.
44468 ac_sub_configure_args=
44469 ac_prev=
44470 for ac_arg in $ac_configure_args; do
44471 if test -n "$ac_prev"; then
44472 ac_prev=
44473 continue
44474 fi
44475 case $ac_arg in
44476 -cache-file | --cache-file | --cache-fil | --cache-fi \
44477 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44478 ac_prev=cache_file ;;
44479 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44480 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44481 | --c=*)
44482 ;;
44483 --config-cache | -C)
44484 ;;
44485 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44486 ac_prev=srcdir ;;
44487 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44488 ;;
44489 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44490 ac_prev=prefix ;;
44491 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44492 ;;
44493 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
44494 esac
44495 done
44496
44497 # Always prepend --prefix to ensure using the same prefix
44498 # in subdir configurations.
44499 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
44500
44501 ac_popdir=`pwd`
44502 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44503
44504 # Do not complain, so a configure script can configure whichever
44505 # parts of a large source tree are present.
44506 test -d $srcdir/$ac_dir || continue
44507
44508 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
44509echo "$as_me: configuring in $ac_dir" >&6;}
44510 { if $as_mkdir_p; then
44511 mkdir -p "$ac_dir"
44512 else
44513 as_dir="$ac_dir"
44514 as_dirs=
44515 while test ! -d "$as_dir"; do
44516 as_dirs="$as_dir $as_dirs"
44517 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44518$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44519 X"$as_dir" : 'X\(//\)[^/]' \| \
44520 X"$as_dir" : 'X\(//\)$' \| \
44521 X"$as_dir" : 'X\(/\)' \| \
44522 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44523echo X"$as_dir" |
44524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44526 /^X\(\/\/\)$/{ s//\1/; q; }
44527 /^X\(\/\).*/{ s//\1/; q; }
44528 s/.*/./; q'`
44529 done
44530 test ! -n "$as_dirs" || mkdir $as_dirs
44531 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44532echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44533 { (exit 1); exit 1; }; }; }
44534
44535 ac_builddir=.
44536
44537if test "$ac_dir" != .; then
44538 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44539 # A "../" for each directory in $ac_dir_suffix.
44540 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44541else
44542 ac_dir_suffix= ac_top_builddir=
44543fi
44544
44545case $srcdir in
44546 .) # No --srcdir option. We are building in place.
44547 ac_srcdir=.
44548 if test -z "$ac_top_builddir"; then
44549 ac_top_srcdir=.
44550 else
44551 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44552 fi ;;
44553 [\\/]* | ?:[\\/]* ) # Absolute path.
44554 ac_srcdir=$srcdir$ac_dir_suffix;
44555 ac_top_srcdir=$srcdir ;;
44556 *) # Relative path.
44557 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44558 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44559esac
ac1cb8d3
VS
44560
44561# Do not use `cd foo && pwd` to compute absolute paths, because
44562# the directories may not exist.
44563case `pwd` in
44564.) ac_abs_builddir="$ac_dir";;
44565*)
44566 case "$ac_dir" in
44567 .) ac_abs_builddir=`pwd`;;
44568 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44569 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44570 esac;;
44571esac
44572case $ac_abs_builddir in
44573.) ac_abs_top_builddir=${ac_top_builddir}.;;
44574*)
44575 case ${ac_top_builddir}. in
44576 .) ac_abs_top_builddir=$ac_abs_builddir;;
44577 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44578 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44579 esac;;
44580esac
44581case $ac_abs_builddir in
44582.) ac_abs_srcdir=$ac_srcdir;;
44583*)
44584 case $ac_srcdir in
44585 .) ac_abs_srcdir=$ac_abs_builddir;;
44586 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44587 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44588 esac;;
44589esac
44590case $ac_abs_builddir in
44591.) ac_abs_top_srcdir=$ac_top_srcdir;;
44592*)
44593 case $ac_top_srcdir in
44594 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44595 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44596 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44597 esac;;
44598esac
a848cd7e
SC
44599
44600
44601 cd $ac_dir
44602
44603 # Check for guested configure; otherwise get Cygnus style configure.
44604 if test -f $ac_srcdir/configure.gnu; then
44605 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
44606 elif test -f $ac_srcdir/configure; then
44607 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
44608 elif test -f $ac_srcdir/configure.in; then
44609 ac_sub_configure=$ac_configure
44610 else
44611 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
44612echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44613 ac_sub_configure=
44614 fi
44615
44616 # The recursion is here.
44617 if test -n "$ac_sub_configure"; then
44618 # Make the cache file name correct relative to the subdirectory.
44619 case $cache_file in
44620 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44621 *) # Relative path.
ac1cb8d3 44622 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
44623 esac
44624
44625 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44626echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44627 # The eval makes quoting arguments work.
44628 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
44629 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
44630 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
44631echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
44632 { (exit 1); exit 1; }; }
44633 fi
44634
89be85c2 44635 cd $ac_popdir
a848cd7e
SC
44636 done
44637fi
44638
44639
44640echo
77ffb593 44641echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 44642echo ""
4d4ff94c 44643echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 44644echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 44645
77ffb593
JS
44646echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
44647echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
44648echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 44649
77ffb593
JS
44650echo " What level of wxWidgets compatibility should be enabled?"
44651echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
44652echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 44653
77ffb593 44654echo " Which libraries should wxWidgets use?"
a848cd7e
SC
44655echo " jpeg ${wxUSE_LIBJPEG-none}"
44656echo " png ${wxUSE_LIBPNG-none}"
44657echo " regex ${wxUSE_REGEX}"
44658echo " tiff ${wxUSE_LIBTIFF-none}"
44659if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
44660echo " xpm ${wxUSE_LIBXPM-none}"
44661fi
44662echo " zlib ${wxUSE_ZLIB}"
44663echo " odbc ${wxUSE_ODBC}"
44664echo " expat ${wxUSE_EXPAT}"
44665echo " libmspack ${wxUSE_LIBMSPACK}"
44666echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 44667echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
44668
44669echo ""
44670