]> git.saurik.com Git - wxWidgets.git/blame - configure
added wx-lib template for building static libs (no linking)
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
7714864e 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
7714864e
RL
273PACKAGE_VERSION='2.5.3'
274PACKAGE_STRING='wxWidgets 2.5.3'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
1e6eb025 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
a848cd7e
SC
908 --enable-cmdline use wxCmdLineParser class
909 --enable-datetime use wxDateTime class
910 --enable-dialupman use dialup network classes
911 --enable-dynlib use wxLibrary class for DLL loading
912 --enable-dynamicloader use (new) wxDynamicLibrary class
913 --enable-exceptions build exception-safe library
914 --enable-ffile use wxFFile class
915 --enable-file use wxFile class
916 --enable-filesystem use virtual file systems classes
917 --enable-fontmap use font encodings conversion classes
918 --enable-fs_inet use virtual HTTP/FTP filesystems
919 --enable-fs_zip use virtual ZIP filesystems
920 --enable-geometry use geometry class
921 --enable-log use logging system
922 --enable-longlong use wxLongLong class
923 --enable-mimetype use wxMimeTypesManager
924 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
925 --enable-snglinst use wxSingleInstanceChecker class
926 --enable-streams use wxStream etc classes
927 --enable-std_iostreams use standard C++ stream classes
928 --enable-stopwatch use wxStopWatch class
929 --enable-sysoptions use wxSystemOptions
930 --enable-textbuf use wxTextBuffer class
931 --enable-textfile use wxTextFile class
932 --enable-timer use wxTimer class
933 --enable-unicode compile wxString with Unicode support
934 --enable-sound use wxSound class
3b57de8b 935 --enable-mediactrl use wxMediaCtrl class
77ffb593 936 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 937 --enable-zipstream use wxZipInputStream
a848cd7e
SC
938 --enable-url use wxURL class
939 --enable-protocol use wxProtocol class
940 --enable-protocol-http HTTP support in wxProtocol
941 --enable-protocol-ftp FTP support in wxProtocol
942 --enable-protocol-file FILE support in wxProtocol
943 --enable-threads use threads
944 --enable-docview use document view architecture
945 --enable-help use help subsystem
946 --enable-mshtmlhelp use MS HTML Help (win32)
947 --enable-html use wxHTML sub-library
948 --enable-htmlhelp use wxHTML-based help
9a8f0513 949 --enable-xrc use XRC resources sub-library
a848cd7e
SC
950 --enable-constraints use layout-constraints system
951 --enable-printarch use printing architecture
952 --enable-mdi use multiple document interface architecture
8a7b1113 953 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
954 --enable-loggui use standard GUI logger
955 --enable-logwin use wxLogWindow
956 --enable-logdialog use wxLogDialog
646b6ec1 957 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
958 --enable-postscript use wxPostscriptDC device context (default for gtk+)
959 --enable-prologio not available; see contrib
960 --enable-resources not available; see contrib
961 --enable-clipboard use wxClipboard class
962 --enable-dnd use Drag'n'Drop classes
963 --enable-metafile use win32 metafiles
964 --enable-controls use all usual controls
965 --enable-accel use accelerators
966 --enable-button use wxButton class
967 --enable-bmpbutton use wxBitmapButton class
968 --enable-calendar use wxCalendarCtrl class
969 --enable-caret use wxCaret class
970 --enable-checkbox use wxCheckBox class
971 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
972 --enable-choice use wxChoice class
92bbdbcd 973 --enable-choicebook use wxChoicebook class
a848cd7e 974 --enable-combobox use wxComboBox class
da98e9be 975 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
976 --enable-display use wxDisplay class
977 --enable-gauge use wxGauge class
978 --enable-grid use wxGrid class
979 --enable-imaglist use wxImageList class
980 --enable-listbook use wxListbook class
981 --enable-listbox use wxListBox class
982 --enable-listctrl use wxListCtrl class
983 --enable-notebook use wxNotebook class
984 --enable-radiobox use wxRadioBox class
985 --enable-radiobtn use wxRadioButton class
986 --enable-sash use wxSashWindow class
987 --enable-scrollbar use wxScrollBar class and scrollable windows
988 --enable-slider use wxSlider class
989 --enable-spinbtn use wxSpinButton class
990 --enable-spinctrl use wxSpinCtrl class
991 --enable-splitter use wxSplitterWindow class
992 --enable-statbmp use wxStaticBitmap class
993 --enable-statbox use wxStaticBox class
994 --enable-statline use wxStaticLine class
995 --enable-stattext use wxStaticText class
996 --enable-statusbar use wxStatusBar class
997 --enable-tabdialog use wxTabControl class
998 --enable-textctrl use wxTextCtrl class
999 --enable-togglebtn use wxToggleButton class
1000 --enable-toolbar use wxToolBar class
1001 --enable-tbarnative use native wxToolBar class
1002 --enable-tbarsmpl use wxToolBarSimple class
1003 --enable-treectrl use wxTreeCtrl class
1004 --enable-tipwindow use wxTipWindow class
1005 --enable-popupwin use wxPopUpWindow class
1006 --enable-commondlg use all common dialogs
1007 --enable-choicedlg use wxChoiceDialog
1008 --enable-coldlg use wxColourDialog
1009 --enable-filedlg use wxFileDialog
1010 --enable-finddlg use wxFindReplaceDialog
1011 --enable-fontdlg use wxFontDialog
1012 --enable-dirdlg use wxDirDialog
1013 --enable-msgdlg use wxMessageDialog
1014 --enable-numberdlg use wxNumberEntryDialog
1015 --enable-splash use wxSplashScreen
1016 --enable-textdlg use wxTextDialog
1017 --enable-tipdlg use startup tips
1018 --enable-progressdlg use wxProgressDialog
1019 --enable-wizarddlg use wxWizard
1020 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1021 --enable-miniframe use wxMiniFrame class
1022 --enable-tooltips use wxToolTip class
1023 --enable-splines use spline drawing code
1024 --enable-validators use wxValidator and derived classes
1025 --enable-busyinfo use wxBusyInfo
1026 --enable-joystick use wxJoystick (Linux only)
1027 --enable-metafiles use wxMetaFile (Windows only)
1028 --enable-dragimage use wxDragImage
1029 --enable-accessibility enable accessibility support
1030 --enable-palette use wxPalette class
1031 --enable-image use wxImage class
1032 --enable-gif use gif images (GIF file format)
1033 --enable-pcx use pcx images (PCX file format)
1034 --enable-iff use iff images (IFF file format)
1035 --enable-pnm use pnm images (PNM file format)
1036 --enable-xpm use xpm images (XPM file format)
1037 --enable-icocur use Windows ICO and CUR formats
77ffb593 1038 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1039 --enable-vendor=VENDOR vendor name (win32 DLL only)
1040 --disable-largefile omit support for large files
1041 --disable-gtktest do not try to compile and run a test GTK+ program
1042 --disable-gtktest Do not try to compile and run a test GTK program
1043 --disable-sdltest Do not try to compile and run a test SDL program
1044 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1045 --disable-precomp-headers
1046 don't use precompiled headers even if compiler can
a848cd7e
SC
1047
1048Optional Packages:
1049 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1050 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1051 --with-gtk use GTK+
1052 --with-motif use Motif/Lesstif
1053 --with-mac use Mac OS X
1054 --with-cocoa use Cocoa
1055 --with-wine use Wine
1056 --with-msw use MS-Windows
1057 --with-pm use OS/2 Presentation Manager
1058 --with-mgl use SciTech MGL
1059 --with-microwin use MicroWindows
1060 --with-x11 use X11
1061 --with-libpng use libpng (PNG image format)
1062 --with-libjpeg use libjpeg (JPEG file format)
1063 --with-libtiff use libtiff (TIFF file format)
1064 --with-libxpm use libxpm (XPM file format)
1065 --with-libmspack use libmspack (CHM help files loading)
1066 --with-sdl use SDL for audio on Unix
d51253e8 1067 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1068 --with-opengl use OpenGL (or Mesa)
1069 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1070 --with-regex enable support for wxRegEx class
1071 --with-zlib use zlib for LZW compression
1072 --with-odbc use the IODBC and wxODBC classes
1073 --with-expat enable XML support using expat parser
ceec2216 1074 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1075 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1076 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1077 --with-x use the X Window System
1078 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1079 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1080 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1081 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1082 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1083
1084Some influential environment variables:
dcc1b6ad
VS
1085 CC C compiler command
1086 CFLAGS C compiler flags
1087 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1088 nonstandard directory <lib dir>
1089 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1090 headers in a nonstandard directory <include dir>
1091 CPP C preprocessor
1092 CXX C++ compiler command
1093 CXXFLAGS C++ compiler flags
1094 CXXCPP C++ preprocessor
a848cd7e
SC
1095
1096Use these variables to override the choices made by `configure' or to help
1097it to find libraries and programs with nonstandard names/locations.
1098
77ffb593 1099Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1100_ACEOF
1101fi
1102
1103if test "$ac_init_help" = "recursive"; then
1104 # If there are subdirs, report their specific --help.
1105 ac_popdir=`pwd`
1106 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1107 test -d $ac_dir || continue
1108 ac_builddir=.
1109
1110if test "$ac_dir" != .; then
1111 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1112 # A "../" for each directory in $ac_dir_suffix.
1113 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1114else
1115 ac_dir_suffix= ac_top_builddir=
1116fi
1117
1118case $srcdir in
1119 .) # No --srcdir option. We are building in place.
1120 ac_srcdir=.
1121 if test -z "$ac_top_builddir"; then
1122 ac_top_srcdir=.
1123 else
1124 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1125 fi ;;
1126 [\\/]* | ?:[\\/]* ) # Absolute path.
1127 ac_srcdir=$srcdir$ac_dir_suffix;
1128 ac_top_srcdir=$srcdir ;;
1129 *) # Relative path.
1130 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1131 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1132esac
ac1cb8d3
VS
1133
1134# Do not use `cd foo && pwd` to compute absolute paths, because
1135# the directories may not exist.
1136case `pwd` in
1137.) ac_abs_builddir="$ac_dir";;
1138*)
1139 case "$ac_dir" in
1140 .) ac_abs_builddir=`pwd`;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1142 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1143 esac;;
1144esac
1145case $ac_abs_builddir in
1146.) ac_abs_top_builddir=${ac_top_builddir}.;;
1147*)
1148 case ${ac_top_builddir}. in
1149 .) ac_abs_top_builddir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1151 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1152 esac;;
1153esac
1154case $ac_abs_builddir in
1155.) ac_abs_srcdir=$ac_srcdir;;
1156*)
1157 case $ac_srcdir in
1158 .) ac_abs_srcdir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1160 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1161 esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_top_srcdir=$ac_top_srcdir;;
1165*)
1166 case $ac_top_srcdir in
1167 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1168 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1169 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1170 esac;;
1171esac
a848cd7e
SC
1172
1173 cd $ac_dir
1174 # Check for guested configure; otherwise get Cygnus style configure.
1175 if test -f $ac_srcdir/configure.gnu; then
1176 echo
1177 $SHELL $ac_srcdir/configure.gnu --help=recursive
1178 elif test -f $ac_srcdir/configure; then
1179 echo
1180 $SHELL $ac_srcdir/configure --help=recursive
1181 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1182 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1183 echo
1184 $ac_configure --help
1185 else
1186 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1187 fi
da4486fb 1188 cd "$ac_popdir"
a848cd7e
SC
1189 done
1190fi
1191
1192test -n "$ac_init_help" && exit 0
1193if $ac_init_version; then
1194 cat <<\_ACEOF
7714864e 1195wxWidgets configure 2.5.3
ac1cb8d3 1196generated by GNU Autoconf 2.59
a848cd7e 1197
ac1cb8d3 1198Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1199This configure script is free software; the Free Software Foundation
1200gives unlimited permission to copy, distribute and modify it.
1201_ACEOF
1202 exit 0
1203fi
1204exec 5>config.log
1205cat >&5 <<_ACEOF
1206This file contains any messages produced by compilers while
1207running configure, to aid debugging if configure makes a mistake.
1208
7714864e 1209It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1210generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1211
1212 $ $0 $@
1213
1214_ACEOF
1215{
1216cat <<_ASUNAME
1217## --------- ##
1218## Platform. ##
1219## --------- ##
1220
1221hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1222uname -m = `(uname -m) 2>/dev/null || echo unknown`
1223uname -r = `(uname -r) 2>/dev/null || echo unknown`
1224uname -s = `(uname -s) 2>/dev/null || echo unknown`
1225uname -v = `(uname -v) 2>/dev/null || echo unknown`
1226
1227/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1228/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1229
1230/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1231/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1232/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1233hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1234/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1235/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1236/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1237
1238_ASUNAME
1239
1240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1241for as_dir in $PATH
1242do
1243 IFS=$as_save_IFS
1244 test -z "$as_dir" && as_dir=.
1245 echo "PATH: $as_dir"
1246done
1247
1248} >&5
1249
1250cat >&5 <<_ACEOF
1251
1252
1253## ----------- ##
1254## Core tests. ##
1255## ----------- ##
1256
1257_ACEOF
1258
1259
1260# Keep a trace of the command line.
1261# Strip out --no-create and --no-recursion so they do not pile up.
1262# Strip out --silent because we don't want to record it for future runs.
1263# Also quote any args containing shell meta-characters.
1264# Make two passes to allow for proper duplicate-argument suppression.
1265ac_configure_args=
1266ac_configure_args0=
1267ac_configure_args1=
1268ac_sep=
1269ac_must_keep_next=false
1270for ac_pass in 1 2
1271do
1272 for ac_arg
1273 do
1274 case $ac_arg in
1275 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277 | -silent | --silent | --silen | --sile | --sil)
1278 continue ;;
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 esac
1282 case $ac_pass in
1283 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1284 2)
1285 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1286 if test $ac_must_keep_next = true; then
ac1cb8d3 1287 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1288 else
ac1cb8d3
VS
1289 case $ac_arg in
1290 *=* | --config-cache | -C | -disable-* | --disable-* \
1291 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1292 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1293 | -with-* | --with-* | -without-* | --without-* | --x)
1294 case "$ac_configure_args0 " in
1295 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1296 esac
1297 ;;
1298 -* ) ac_must_keep_next=true ;;
1299 esac
a848cd7e
SC
1300 fi
1301 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1302 # Get rid of the leading space.
1303 ac_sep=" "
1304 ;;
1305 esac
1306 done
1307done
1308$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1309$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1310
1311# When interrupted or exit'd, cleanup temporary files, and complete
1312# config.log. We remove comments because anyway the quotes in there
1313# would cause problems or look ugly.
1314# WARNING: Be sure not to use single quotes in there, as some shells,
1315# such as our DU 5.0 friend, will then `close' the trap.
1316trap 'exit_status=$?
1317 # Save into config.log some information that might help in debugging.
1318 {
1319 echo
1320
1321 cat <<\_ASBOX
1322## ---------------- ##
1323## Cache variables. ##
1324## ---------------- ##
1325_ASBOX
1326 echo
1327 # The following way of writing the cache mishandles newlines in values,
1328{
1329 (set) 2>&1 |
1330 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1331 *ac_space=\ *)
1332 sed -n \
ac1cb8d3
VS
1333 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1335 ;;
1336 *)
1337 sed -n \
ac1cb8d3 1338 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1339 ;;
1340 esac;
1341}
1342 echo
1343
1344 cat <<\_ASBOX
1345## ----------------- ##
1346## Output variables. ##
1347## ----------------- ##
1348_ASBOX
1349 echo
1350 for ac_var in $ac_subst_vars
1351 do
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1354 done | sort
1355 echo
1356
1357 if test -n "$ac_subst_files"; then
1358 cat <<\_ASBOX
1359## ------------- ##
1360## Output files. ##
1361## ------------- ##
1362_ASBOX
1363 echo
1364 for ac_var in $ac_subst_files
1365 do
1366 eval ac_val=$`echo $ac_var`
ac1cb8d3 1367 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1368 done | sort
1369 echo
1370 fi
1371
1372 if test -s confdefs.h; then
1373 cat <<\_ASBOX
1374## ----------- ##
1375## confdefs.h. ##
1376## ----------- ##
1377_ASBOX
1378 echo
1379 sed "/^$/d" confdefs.h | sort
1380 echo
1381 fi
1382 test "$ac_signal" != 0 &&
1383 echo "$as_me: caught signal $ac_signal"
1384 echo "$as_me: exit $exit_status"
1385 } >&5
ac1cb8d3 1386 rm -f core *.core &&
a848cd7e
SC
1387 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1388 exit $exit_status
1389 ' 0
1390for ac_signal in 1 2 13 15; do
1391 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1392done
1393ac_signal=0
1394
1395# confdefs.h avoids OS command line length limits that DEFS can exceed.
1396rm -rf conftest* confdefs.h
1397# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1398echo >confdefs.h
1399
1400# Predefined preprocessor variables.
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_NAME "$PACKAGE_NAME"
1404_ACEOF
1405
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_VERSION "$PACKAGE_VERSION"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_STRING "$PACKAGE_STRING"
1419_ACEOF
1420
1421
1422cat >>confdefs.h <<_ACEOF
1423#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1424_ACEOF
1425
1426
1427# Let the site file select an alternate cache file if it wants to.
1428# Prefer explicitly selected file to automatically selected ones.
1429if test -z "$CONFIG_SITE"; then
1430 if test "x$prefix" != xNONE; then
1431 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1432 else
1433 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1434 fi
1435fi
1436for ac_site_file in $CONFIG_SITE; do
1437 if test -r "$ac_site_file"; then
1438 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1439echo "$as_me: loading site script $ac_site_file" >&6;}
1440 sed 's/^/| /' "$ac_site_file" >&5
1441 . "$ac_site_file"
1442 fi
1443done
1444
1445if test -r "$cache_file"; then
1446 # Some versions of bash will fail to source /dev/null (special
1447 # files actually), so we avoid doing that.
1448 if test -f "$cache_file"; then
1449 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1450echo "$as_me: loading cache $cache_file" >&6;}
1451 case $cache_file in
1452 [\\/]* | ?:[\\/]* ) . $cache_file;;
1453 *) . ./$cache_file;;
1454 esac
1455 fi
1456else
1457 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1458echo "$as_me: creating cache $cache_file" >&6;}
1459 >$cache_file
1460fi
1461
1462# Check that the precious variables saved in the cache have kept the same
1463# value.
1464ac_cache_corrupted=false
1465for ac_var in `(set) 2>&1 |
ac1cb8d3 1466 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1468 eval ac_new_set=\$ac_env_${ac_var}_set
1469 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1470 eval ac_new_val="\$ac_env_${ac_var}_value"
1471 case $ac_old_set,$ac_new_set in
1472 set,)
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1474echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1476 ,set)
1477 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1478echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1479 ac_cache_corrupted=: ;;
1480 ,);;
1481 *)
1482 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1483 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1484echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1485 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1486echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1487 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1488echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1489 ac_cache_corrupted=:
a848cd7e
SC
1490 fi;;
1491 esac
1492 # Pass precious variables to config.status.
1493 if test "$ac_new_set" = set; then
1494 case $ac_new_val in
1495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1496 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1497 *) ac_arg=$ac_var=$ac_new_val ;;
1498 esac
1499 case " $ac_configure_args " in
1500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1501 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 esac
1503 fi
1504done
1505if $ac_cache_corrupted; then
1506 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1507echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1508 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1509echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1510 { (exit 1); exit 1; }; }
1511fi
1512
1513ac_ext=c
1514ac_cpp='$CPP $CPPFLAGS'
1515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1517ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548ac_aux_dir=
1549for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1550 if test -f $ac_dir/install-sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install-sh -c"
1553 break
1554 elif test -f $ac_dir/install.sh; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/install.sh -c"
1557 break
1558 elif test -f $ac_dir/shtool; then
1559 ac_aux_dir=$ac_dir
1560 ac_install_sh="$ac_aux_dir/shtool install -c"
1561 break
1562 fi
1563done
1564if test -z "$ac_aux_dir"; then
1565 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1566echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1567 { (exit 1); exit 1; }; }
1568fi
1569ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1570ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1571ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572
1573# Make sure we can run config.sub.
1574$ac_config_sub sun4 >/dev/null 2>&1 ||
1575 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1576echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1577 { (exit 1); exit 1; }; }
1578
1579echo "$as_me:$LINENO: checking build system type" >&5
1580echo $ECHO_N "checking build system type... $ECHO_C" >&6
1581if test "${ac_cv_build+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
1584 ac_cv_build_alias=$build_alias
1585test -z "$ac_cv_build_alias" &&
1586 ac_cv_build_alias=`$ac_config_guess`
1587test -z "$ac_cv_build_alias" &&
1588 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1589echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1590 { (exit 1); exit 1; }; }
1591ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1592 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1593echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1594 { (exit 1); exit 1; }; }
1595
1596fi
1597echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1598echo "${ECHO_T}$ac_cv_build" >&6
1599build=$ac_cv_build
1600build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1601build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1602build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603
1604
1605echo "$as_me:$LINENO: checking host system type" >&5
1606echo $ECHO_N "checking host system type... $ECHO_C" >&6
1607if test "${ac_cv_host+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 ac_cv_host_alias=$host_alias
1611test -z "$ac_cv_host_alias" &&
1612 ac_cv_host_alias=$ac_cv_build_alias
1613ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1614 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1615echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1616 { (exit 1); exit 1; }; }
1617
1618fi
1619echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1620echo "${ECHO_T}$ac_cv_host" >&6
1621host=$ac_cv_host
1622host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1623host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1624host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625
1626
1627echo "$as_me:$LINENO: checking target system type" >&5
1628echo $ECHO_N "checking target system type... $ECHO_C" >&6
1629if test "${ac_cv_target+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632 ac_cv_target_alias=$target_alias
1633test "x$ac_cv_target_alias" = "x" &&
1634 ac_cv_target_alias=$ac_cv_host_alias
1635ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1639
1640fi
1641echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1642echo "${ECHO_T}$ac_cv_target" >&6
1643target=$ac_cv_target
1644target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649# The aliases save the names the user supplied, while $host etc.
1650# will get canonicalized.
1651test -n "$target_alias" &&
1652 test "$program_prefix$program_suffix$program_transform_name" = \
1653 NONENONEs,x,x, &&
1654 program_prefix=${target_alias}-
1655
1656
1657
ceec2216
RL
1658wx_major_version_number=2
1659wx_minor_version_number=5
7714864e 1660wx_release_number=3
0210f373 1661wx_subrelease_number=3
a848cd7e 1662
ceec2216
RL
1663WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1664WX_VERSION=$WX_RELEASE.$wx_release_number
1665WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1666
ceec2216 1667WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1668
e653e181 1669WX_CURRENT=3
a848cd7e 1670WX_REVISION=0
0210f373 1671WX_AGE=3
a848cd7e
SC
1672
1673
1674
1675USE_UNIX=1
1676USE_OS2=0
1677USE_WIN32=0
1678USE_DOS=0
1679USE_BEOS=0
1680USE_MAC=0
1681
1682USE_AIX=
1683USE_BSD= USE_DARWIN= USE_FREEBSD=
1684USE_GNU= USE_HPUX=
1685USE_LINUX=
1686USE_NETBSD=
1687USE_OPENBSD=
1688USE_OSF= USE_SGI=
1689USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1690USE_ULTRIX=
1691USE_UNIXWARE=
1692
1693USE_ALPHA=
1694
1695NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1696
1697ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1698
1699DEFAULT_wxUSE_COCOA=0
1700DEFAULT_wxUSE_GTK=0
1701DEFAULT_wxUSE_MAC=0
1702DEFAULT_wxUSE_MGL=0
1703DEFAULT_wxUSE_MICROWIN=0
1704DEFAULT_wxUSE_MOTIF=0
1705DEFAULT_wxUSE_MSW=0
1706DEFAULT_wxUSE_PM=0
1707DEFAULT_wxUSE_X11=0
1708
1709DEFAULT_DEFAULT_wxUSE_COCOA=0
1710DEFAULT_DEFAULT_wxUSE_GTK=0
1711DEFAULT_DEFAULT_wxUSE_MAC=0
1712DEFAULT_DEFAULT_wxUSE_MGL=0
1713DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1714DEFAULT_DEFAULT_wxUSE_MOTIF=0
1715DEFAULT_DEFAULT_wxUSE_MSW=0
1716DEFAULT_DEFAULT_wxUSE_PM=0
1717DEFAULT_DEFAULT_wxUSE_X11=0
1718
1719PROGRAM_EXT=
1720SO_SUFFIX=so
1721SAMPLES_RPATH_FLAG=
1722SAMPLES_RPATH_POSTLINK=
1723
1724case "${host}" in
1725 *-hp-hpux* )
1726 USE_HPUX=1
1727 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1728 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1729 SO_SUFFIX=sl
1730 cat >>confdefs.h <<\_ACEOF
1731#define __HPUX__ 1
1732_ACEOF
1733
1734 ;;
1735 *-*-linux* )
1736 USE_LINUX=1
1737 cat >>confdefs.h <<\_ACEOF
1738#define __LINUX__ 1
1739_ACEOF
1740
1741 TMP=`uname -m`
1742 if test "x$TMP" = "xalpha"; then
1743 USE_ALPHA=1
1744 cat >>confdefs.h <<\_ACEOF
1745#define __ALPHA__ 1
1746_ACEOF
1747
1748 fi
1749 DEFAULT_DEFAULT_wxUSE_GTK=1
1750 ;;
1751 *-*-gnu* | *-*-k*bsd*-gnu )
1752 USE_GNU=1
1753 TMP=`uname -m`
1754 if test "x$TMP" = "xalpha"; then
1755 USE_ALPHA=1
1756 cat >>confdefs.h <<\_ACEOF
1757#define __ALPHA__ 1
1758_ACEOF
1759
1760 fi
1761 DEFAULT_DEFAULT_wxUSE_GTK=1
1762 ;;
1763 *-*-irix5* | *-*-irix6* )
1764 USE_SGI=1
1765 USE_SVR4=1
1766 cat >>confdefs.h <<\_ACEOF
1767#define __SGI__ 1
1768_ACEOF
1769
1770 cat >>confdefs.h <<\_ACEOF
1771#define __SVR4__ 1
1772_ACEOF
1773
1774 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1775 ;;
1776 *-*-solaris2* )
1777 USE_SUN=1
1778 USE_SOLARIS=1
1779 USE_SVR4=1
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SUN__ 1
1782_ACEOF
1783
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SOLARIS__ 1
1786_ACEOF
1787
1788 cat >>confdefs.h <<\_ACEOF
1789#define __SVR4__ 1
1790_ACEOF
1791
1792 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1793 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1794 ;;
1795 *-*-sunos4* )
1796 USE_SUN=1
1797 USE_SUNOS=1
1798 USE_BSD=1
1799 cat >>confdefs.h <<\_ACEOF
1800#define __SUN__ 1
1801_ACEOF
1802
1803 cat >>confdefs.h <<\_ACEOF
1804#define __SUNOS__ 1
1805_ACEOF
1806
1807 cat >>confdefs.h <<\_ACEOF
1808#define __BSD__ 1
1809_ACEOF
1810
1811 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1812 ;;
1813 *-*-freebsd*)
1814 USE_BSD=1
1815 USE_FREEBSD=1
1816 cat >>confdefs.h <<\_ACEOF
1817#define __FREEBSD__ 1
1818_ACEOF
1819
1820 cat >>confdefs.h <<\_ACEOF
1821#define __BSD__ 1
1822_ACEOF
1823
1824 DEFAULT_DEFAULT_wxUSE_GTK=1
1825 ;;
1826 *-*-openbsd*)
1827 USE_BSD=1
1828 USE_OPENBSD=1
1829 cat >>confdefs.h <<\_ACEOF
1830#define __OPENBSD__ 1
1831_ACEOF
1832
1833 cat >>confdefs.h <<\_ACEOF
1834#define __BSD__ 1
1835_ACEOF
1836
1837 DEFAULT_DEFAULT_wxUSE_GTK=1
1838 ;;
1839 *-*-netbsd*)
1840 USE_BSD=1
1841 USE_NETBSD=1
1842 cat >>confdefs.h <<\_ACEOF
1843#define __NETBSD__ 1
1844_ACEOF
1845
1846 cat >>confdefs.h <<\_ACEOF
1847#define __BSD__ 1
1848_ACEOF
1849
1850 DEFAULT_DEFAULT_wxUSE_GTK=1
1851 ;;
1852 *-*-osf* )
1853 USE_ALPHA=1
1854 USE_OSF=1
1855 cat >>confdefs.h <<\_ACEOF
1856#define __ALPHA__ 1
1857_ACEOF
1858
1859 cat >>confdefs.h <<\_ACEOF
1860#define __OSF__ 1
1861_ACEOF
1862
1863 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1864 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1865 ;;
1866 *-*-dgux5* )
1867 USE_ALPHA=1
1868 USE_SVR4=1
1869 cat >>confdefs.h <<\_ACEOF
1870#define __ALPHA__ 1
1871_ACEOF
1872
1873 cat >>confdefs.h <<\_ACEOF
1874#define __SVR4__ 1
1875_ACEOF
1876
1877 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1878 ;;
1879 *-*-sysv5* )
1880 USE_SYSV=1
1881 USE_SVR4=1
1882 cat >>confdefs.h <<\_ACEOF
1883#define __SYSV__ 1
1884_ACEOF
1885
1886 cat >>confdefs.h <<\_ACEOF
1887#define __SVR4__ 1
1888_ACEOF
1889
1890 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1891 ;;
1892 *-*-aix* )
1893 USE_AIX=1
1894 USE_SYSV=1
1895 USE_SVR4=1
1896 SO_SUFFIX=a
1897 cat >>confdefs.h <<\_ACEOF
1898#define __AIX__ 1
1899_ACEOF
1900
1901 cat >>confdefs.h <<\_ACEOF
1902#define __SYSV__ 1
1903_ACEOF
1904
1905 cat >>confdefs.h <<\_ACEOF
1906#define __SVR4__ 1
1907_ACEOF
1908
1909 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1910 ;;
1911
1912 *-*-*UnixWare*)
1913 USE_SYSV=1
1914 USE_SVR4=1
1915 USE_UNIXWARE=1
1916 cat >>confdefs.h <<\_ACEOF
1917#define __UNIXWARE__ 1
1918_ACEOF
1919
1920 ;;
1921
1922 *-*-cygwin* | *-*-mingw32* )
1923 SO_SUFFIX=dll
1924 PROGRAM_EXT=".exe"
1925 RESCOMP=windres
1926 DEFAULT_DEFAULT_wxUSE_MSW=1
1927 ;;
1928
1929 *-pc-msdosdjgpp )
1930 USE_UNIX=0
1931 USE_DOS=1
1932 cat >>confdefs.h <<\_ACEOF
1933#define __DOS__ 1
1934_ACEOF
1935
1936 PROGRAM_EXT=".exe"
1937 DEFAULT_DEFAULT_wxUSE_MGL=1
1938 LIBS="$LIBS -lstdc++"
1939 ;;
1940
1941 *-pc-os2_emx | *-pc-os2-emx )
1942 cat >>confdefs.h <<\_ACEOF
1943#define __EMX__ 1
1944_ACEOF
1945
1946 USE_OS2=1
1947 cat >>confdefs.h <<\_ACEOF
1948#define __OS2__ 1
1949_ACEOF
1950
1951 PROGRAM_EXT=".exe"
1952 DEFAULT_DEFAULT_wxUSE_PM=1
1953 CXX=gcc
1954 LDFLAGS="$LDFLAGS -Zcrtdll"
1955 ac_executable_extensions=".exe"
1956 export ac_executable_extensions
1957 ac_save_IFS="$IFS"
1958 IFS='\\'
1959 ac_TEMP_PATH=
1960 for ac_dir in $PATH; do
1961 IFS=$ac_save_IFS
1962 if test -z "$ac_TEMP_PATH"; then
1963 ac_TEMP_PATH="$ac_dir"
1964 else
1965 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1966 fi
1967 done
1968 export PATH="$ac_TEMP_PATH"
1969 unset ac_TEMP_PATH
1970 ;;
1971
1972 powerpc-*-darwin* )
1973 USE_BSD=1
1974 USE_DARWIN=1
1975 SO_SUFFIX=dylib
1976 cat >>confdefs.h <<\_ACEOF
1977#define __BSD__ 1
1978_ACEOF
1979
1980 cat >>confdefs.h <<\_ACEOF
1981#define __DARWIN__ 1
1982_ACEOF
1983
1984 cat >>confdefs.h <<\_ACEOF
1985#define __POWERPC__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define TARGET_CARBON 1
1990_ACEOF
1991
1992 DEFAULT_DEFAULT_wxUSE_MAC=1
1993 ;;
1e9e8aba
DE
1994 powerpc-apple-macos* )
1995 USE_UNIX=0
1996 ac_cv_c_bigendian=yes
1997 SO_SUFFIX=shlib
1998 DEFAULT_DEFAULT_wxUSE_MAC=1
1999 ;;
a848cd7e
SC
2000
2001 *-*-beos* )
2002 USE_BEOS=1
2003 cat >>confdefs.h <<\_ACEOF
2004#define __BEOS__ 1
2005_ACEOF
2006
2007 ;;
2008
2009 *)
2010 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2011echo "$as_me: error: unknown system type ${host}." >&2;}
2012 { (exit 1); exit 1; }; }
2013esac
2014
2015
2016
2017
2018 wx_arg_cache_file="configarg.cache"
2019 echo "loading argument cache $wx_arg_cache_file"
2020 rm -f ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}.tmp
2022 touch ${wx_arg_cache_file}
2023
2024
2025DEBUG_CONFIGURE=0
2026if test $DEBUG_CONFIGURE = 1; then
2027 DEFAULT_wxUSE_UNIVERSAL=no
2028 DEFAULT_wxUSE_STL=no
2029
2030 DEFAULT_wxUSE_NANOX=no
2031
2032 DEFAULT_wxUSE_THREADS=yes
2033
2034 DEFAULT_wxUSE_SHARED=yes
2035 DEFAULT_wxUSE_OPTIMISE=no
2036 DEFAULT_wxUSE_PROFILE=no
2037 DEFAULT_wxUSE_NO_DEPS=no
2038 DEFAULT_wxUSE_NO_RTTI=no
2039 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2040 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2041 DEFAULT_wxUSE_PERMISSIVE=no
2042 DEFAULT_wxUSE_DEBUG_FLAG=yes
2043 DEFAULT_wxUSE_DEBUG_INFO=yes
2044 DEFAULT_wxUSE_DEBUG_GDB=yes
2045 DEFAULT_wxUSE_MEM_TRACING=no
2046 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2047 DEFAULT_wxUSE_DMALLOC=no
2048 DEFAULT_wxUSE_APPLE_IEEE=no
2049
2050 DEFAULT_wxUSE_EXCEPTIONS=no
2051 DEFAULT_wxUSE_LOG=yes
2052 DEFAULT_wxUSE_LOGWINDOW=no
2053 DEFAULT_wxUSE_LOGGUI=no
2054 DEFAULT_wxUSE_LOGDIALOG=no
2055
2056 DEFAULT_wxUSE_GUI=yes
2057 DEFAULT_wxUSE_CONTROLS=no
2058
2059 DEFAULT_wxUSE_REGEX=no
2060 DEFAULT_wxUSE_XML=no
2061 DEFAULT_wxUSE_EXPAT=no
2062 DEFAULT_wxUSE_ZLIB=no
2063 DEFAULT_wxUSE_LIBPNG=no
2064 DEFAULT_wxUSE_LIBJPEG=no
2065 DEFAULT_wxUSE_LIBTIFF=no
2066 DEFAULT_wxUSE_LIBXPM=no
2067 DEFAULT_wxUSE_LIBMSPACK=no
2068 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2069 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2070 DEFAULT_wxUSE_ODBC=no
2071 DEFAULT_wxUSE_OPENGL=no
2072
2073 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2074 DEFAULT_wxUSE_STACKWALKER=no
a848cd7e
SC
2075 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2076 DEFAULT_wxUSE_STD_IOSTREAM=no
2077 DEFAULT_wxUSE_CMDLINE_PARSER=no
2078 DEFAULT_wxUSE_DATETIME=no
2079 DEFAULT_wxUSE_TIMER=no
2080 DEFAULT_wxUSE_STOPWATCH=no
2081 DEFAULT_wxUSE_FILE=no
2082 DEFAULT_wxUSE_FFILE=no
2083 DEFAULT_wxUSE_TEXTBUFFER=no
2084 DEFAULT_wxUSE_TEXTFILE=no
2085 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2086 DEFAULT_wxUSE_MEDIACTRL=no
2087 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2088 DEFAULT_wxUSE_INTL=no
2089 DEFAULT_wxUSE_CONFIG=no
2090 DEFAULT_wxUSE_FONTMAP=no
2091 DEFAULT_wxUSE_STREAMS=no
2092 DEFAULT_wxUSE_SOCKETS=no
2093 DEFAULT_wxUSE_OLE=no
2094 DEFAULT_wxUSE_DATAOBJ=no
2095 DEFAULT_wxUSE_DIALUP_MANAGER=no
2096 DEFAULT_wxUSE_JOYSTICK=no
2097 DEFAULT_wxUSE_DYNLIB_CLASS=no
2098 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2099 DEFAULT_wxUSE_LONGLONG=no
2100 DEFAULT_wxUSE_GEOMETRY=no
2101
2102 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2103 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2104 DEFAULT_wxUSE_POSTSCRIPT=no
2105
2106 DEFAULT_wxUSE_CLIPBOARD=no
2107 DEFAULT_wxUSE_TOOLTIPS=no
2108 DEFAULT_wxUSE_DRAG_AND_DROP=no
2109 DEFAULT_wxUSE_DRAGIMAGE=no
2110 DEFAULT_wxUSE_SPLINES=no
2111
8a7b1113 2112 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2113 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2114 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2115 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2116
2117 DEFAULT_wxUSE_RESOURCES=no
2118 DEFAULT_wxUSE_CONSTRAINTS=no
2119 DEFAULT_wxUSE_IPC=no
2120 DEFAULT_wxUSE_HELP=no
2121 DEFAULT_wxUSE_MS_HTML_HELP=no
2122 DEFAULT_wxUSE_WXHTML_HELP=no
2123 DEFAULT_wxUSE_TREELAYOUT=no
2124 DEFAULT_wxUSE_METAFILE=no
2125 DEFAULT_wxUSE_MIMETYPE=no
2126 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2127 DEFAULT_wxUSE_PROTOCOL=no
2128 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2129 DEFAULT_wxUSE_PROTOCOL_FTP=no
2130 DEFAULT_wxUSE_PROTOCOL_FILE=no
2131 DEFAULT_wxUSE_URL=no
2132
2133 DEFAULT_wxUSE_COMMONDLGS=no
2134 DEFAULT_wxUSE_CHOICEDLG=no
2135 DEFAULT_wxUSE_COLOURDLG=no
2136 DEFAULT_wxUSE_DIRDLG=no
2137 DEFAULT_wxUSE_FILEDLG=no
2138 DEFAULT_wxUSE_FINDREPLDLG=no
2139 DEFAULT_wxUSE_FONTDLG=no
2140 DEFAULT_wxUSE_MSGDLG=no
2141 DEFAULT_wxUSE_NUMBERDLG=no
2142 DEFAULT_wxUSE_TEXTDLG=no
2143 DEFAULT_wxUSE_SPLASH=no
2144 DEFAULT_wxUSE_STARTUP_TIPS=no
2145 DEFAULT_wxUSE_PROGRESSDLG=no
2146 DEFAULT_wxUSE_WIZARDDLG=no
2147
2148 DEFAULT_wxUSE_MENUS=no
2149 DEFAULT_wxUSE_MINIFRAME=no
2150 DEFAULT_wxUSE_HTML=no
9a8f0513 2151 DEFAULT_wxUSE_XRC=no
646b6ec1 2152 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2153 DEFAULT_wxUSE_FILESYSTEM=no
2154 DEFAULT_wxUSE_FS_INET=no
2155 DEFAULT_wxUSE_FS_ZIP=no
2156 DEFAULT_wxUSE_BUSYINFO=no
2157 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2158 DEFAULT_wxUSE_VALIDATORS=no
2159
2160 DEFAULT_wxUSE_ACCEL=no
2161 DEFAULT_wxUSE_BUTTON=no
2162 DEFAULT_wxUSE_BMPBUTTON=no
2163 DEFAULT_wxUSE_CALCTRL=no
2164 DEFAULT_wxUSE_CARET=no
2165 DEFAULT_wxUSE_CHECKBOX=no
2166 DEFAULT_wxUSE_CHECKLST=no
2167 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2168 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2169 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2170 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2171 DEFAULT_wxUSE_DISPLAY=no
2172 DEFAULT_wxUSE_GAUGE=no
2173 DEFAULT_wxUSE_GRID=no
2174 DEFAULT_wxUSE_IMAGLIST=no
2175 DEFAULT_wxUSE_LISTBOOK=no
2176 DEFAULT_wxUSE_LISTBOX=no
2177 DEFAULT_wxUSE_LISTCTRL=no
2178 DEFAULT_wxUSE_NOTEBOOK=no
2179 DEFAULT_wxUSE_RADIOBOX=no
2180 DEFAULT_wxUSE_RADIOBTN=no
2181 DEFAULT_wxUSE_SASH=no
2182 DEFAULT_wxUSE_SCROLLBAR=no
2183 DEFAULT_wxUSE_SLIDER=no
2184 DEFAULT_wxUSE_SPINBTN=no
2185 DEFAULT_wxUSE_SPINCTRL=no
2186 DEFAULT_wxUSE_SPLITTER=no
2187 DEFAULT_wxUSE_STATBMP=no
2188 DEFAULT_wxUSE_STATBOX=no
2189 DEFAULT_wxUSE_STATLINE=no
2190 DEFAULT_wxUSE_STATTEXT=no
2191 DEFAULT_wxUSE_STATUSBAR=yes
2192 DEFAULT_wxUSE_TABDIALOG=no
2193 DEFAULT_wxUSE_TEXTCTRL=no
2194 DEFAULT_wxUSE_TOGGLEBTN=no
2195 DEFAULT_wxUSE_TOOLBAR=no
2196 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2197 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2198 DEFAULT_wxUSE_TREECTRL=no
2199 DEFAULT_wxUSE_POPUPWIN=no
2200 DEFAULT_wxUSE_TIPWINDOW=no
2201
2202 DEFAULT_wxUSE_UNICODE=no
2203 DEFAULT_wxUSE_UNICODE_MSLU=no
2204 DEFAULT_wxUSE_WCSRTOMBS=no
2205
2206 DEFAULT_wxUSE_PALETTE=no
2207 DEFAULT_wxUSE_IMAGE=no
2208 DEFAULT_wxUSE_GIF=no
2209 DEFAULT_wxUSE_PCX=no
2210 DEFAULT_wxUSE_PNM=no
2211 DEFAULT_wxUSE_IFF=no
2212 DEFAULT_wxUSE_XPM=no
2213 DEFAULT_wxUSE_ICO_CUR=no
2214 DEFAULT_wxUSE_ACCESSIBILITY=no
2215
2216 DEFAULT_wxUSE_MONOLITHIC=no
2217 DEFAULT_wxUSE_PLUGINS=no
2218 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2219else
2220 DEFAULT_wxUSE_UNIVERSAL=no
2221 DEFAULT_wxUSE_STL=no
2222
2223 DEFAULT_wxUSE_NANOX=no
2224
2225 DEFAULT_wxUSE_THREADS=yes
2226
2227 DEFAULT_wxUSE_SHARED=yes
2228 DEFAULT_wxUSE_OPTIMISE=yes
2229 DEFAULT_wxUSE_PROFILE=no
2230 DEFAULT_wxUSE_NO_DEPS=no
2231 DEFAULT_wxUSE_NO_RTTI=no
2232 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2233 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2234 DEFAULT_wxUSE_PERMISSIVE=no
2235 DEFAULT_wxUSE_DEBUG_FLAG=no
2236 DEFAULT_wxUSE_DEBUG_INFO=no
2237 DEFAULT_wxUSE_DEBUG_GDB=no
2238 DEFAULT_wxUSE_MEM_TRACING=no
2239 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2240 DEFAULT_wxUSE_DMALLOC=no
2241 DEFAULT_wxUSE_APPLE_IEEE=yes
2242
2243 DEFAULT_wxUSE_EXCEPTIONS=yes
2244 DEFAULT_wxUSE_LOG=yes
2245 DEFAULT_wxUSE_LOGWINDOW=yes
2246 DEFAULT_wxUSE_LOGGUI=yes
2247 DEFAULT_wxUSE_LOGDIALOG=yes
2248
2249 DEFAULT_wxUSE_GUI=yes
2250
2251 DEFAULT_wxUSE_REGEX=yes
2252 DEFAULT_wxUSE_XML=yes
2253 DEFAULT_wxUSE_EXPAT=yes
2254 DEFAULT_wxUSE_ZLIB=yes
2255 DEFAULT_wxUSE_LIBPNG=yes
2256 DEFAULT_wxUSE_LIBJPEG=yes
2257 DEFAULT_wxUSE_LIBTIFF=yes
2258 DEFAULT_wxUSE_LIBXPM=yes
2259 DEFAULT_wxUSE_LIBMSPACK=yes
2260 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2261 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2262 DEFAULT_wxUSE_ODBC=no
2263 DEFAULT_wxUSE_OPENGL=no
2264
2265 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2266 DEFAULT_wxUSE_STACKWALKER=yes
a848cd7e
SC
2267 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2268 DEFAULT_wxUSE_STD_IOSTREAM=no
2269 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2270 DEFAULT_wxUSE_DATETIME=yes
2271 DEFAULT_wxUSE_TIMER=yes
2272 DEFAULT_wxUSE_STOPWATCH=yes
2273 DEFAULT_wxUSE_FILE=yes
2274 DEFAULT_wxUSE_FFILE=yes
2275 DEFAULT_wxUSE_TEXTBUFFER=yes
2276 DEFAULT_wxUSE_TEXTFILE=yes
2277 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2278 DEFAULT_wxUSE_MEDIACTRL=no
2279 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2280 DEFAULT_wxUSE_INTL=yes
2281 DEFAULT_wxUSE_CONFIG=yes
2282 DEFAULT_wxUSE_FONTMAP=yes
2283 DEFAULT_wxUSE_STREAMS=yes
2284 DEFAULT_wxUSE_SOCKETS=yes
2285 DEFAULT_wxUSE_OLE=yes
2286 DEFAULT_wxUSE_DATAOBJ=yes
2287 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2288 DEFAULT_wxUSE_JOYSTICK=yes
2289 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2290 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2291 DEFAULT_wxUSE_LONGLONG=yes
2292 DEFAULT_wxUSE_GEOMETRY=yes
2293
2294 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2295 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2296 DEFAULT_wxUSE_POSTSCRIPT=yes
2297
2298 DEFAULT_wxUSE_CLIPBOARD=yes
2299 DEFAULT_wxUSE_TOOLTIPS=yes
2300 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2301 DEFAULT_wxUSE_DRAGIMAGE=yes
2302 DEFAULT_wxUSE_SPLINES=yes
2303
8a7b1113 2304 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2305 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2306 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2307 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2308
2309 DEFAULT_wxUSE_RESOURCES=no
2310 DEFAULT_wxUSE_CONSTRAINTS=yes
2311 DEFAULT_wxUSE_IPC=yes
2312 DEFAULT_wxUSE_HELP=yes
2313 DEFAULT_wxUSE_MS_HTML_HELP=yes
2314 DEFAULT_wxUSE_WXHTML_HELP=yes
2315 DEFAULT_wxUSE_TREELAYOUT=yes
2316 DEFAULT_wxUSE_METAFILE=yes
2317 DEFAULT_wxUSE_MIMETYPE=yes
2318 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2319 DEFAULT_wxUSE_PROTOCOL=yes
2320 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2321 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2322 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2323 DEFAULT_wxUSE_URL=yes
2324
2325 DEFAULT_wxUSE_COMMONDLGS=yes
2326 DEFAULT_wxUSE_CHOICEDLG=yes
2327 DEFAULT_wxUSE_COLOURDLG=yes
2328 DEFAULT_wxUSE_DIRDLG=yes
2329 DEFAULT_wxUSE_FILEDLG=yes
2330 DEFAULT_wxUSE_FINDREPLDLG=yes
2331 DEFAULT_wxUSE_FONTDLG=yes
2332 DEFAULT_wxUSE_MSGDLG=yes
2333 DEFAULT_wxUSE_NUMBERDLG=yes
2334 DEFAULT_wxUSE_TEXTDLG=yes
2335 DEFAULT_wxUSE_SPLASH=yes
2336 DEFAULT_wxUSE_STARTUP_TIPS=yes
2337 DEFAULT_wxUSE_PROGRESSDLG=yes
2338 DEFAULT_wxUSE_WIZARDDLG=yes
2339
2340 DEFAULT_wxUSE_MENUS=yes
2341 DEFAULT_wxUSE_MINIFRAME=yes
2342 DEFAULT_wxUSE_HTML=yes
9a8f0513 2343 DEFAULT_wxUSE_XRC=yes
646b6ec1 2344 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2345 DEFAULT_wxUSE_FILESYSTEM=yes
2346 DEFAULT_wxUSE_FS_INET=yes
2347 DEFAULT_wxUSE_FS_ZIP=yes
2348 DEFAULT_wxUSE_BUSYINFO=yes
2349 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2350 DEFAULT_wxUSE_VALIDATORS=yes
2351
2352 DEFAULT_wxUSE_ACCEL=yes
2353 DEFAULT_wxUSE_BUTTON=yes
2354 DEFAULT_wxUSE_BMPBUTTON=yes
2355 DEFAULT_wxUSE_CALCTRL=yes
2356 DEFAULT_wxUSE_CARET=yes
2357 DEFAULT_wxUSE_CHECKBOX=yes
2358 DEFAULT_wxUSE_CHECKLST=yes
2359 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2360 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2361 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2362 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2363 DEFAULT_wxUSE_DISPLAY=yes
2364 DEFAULT_wxUSE_GAUGE=yes
2365 DEFAULT_wxUSE_GRID=yes
2366 DEFAULT_wxUSE_IMAGLIST=yes
2367 DEFAULT_wxUSE_LISTBOOK=yes
2368 DEFAULT_wxUSE_LISTBOX=yes
2369 DEFAULT_wxUSE_LISTCTRL=yes
2370 DEFAULT_wxUSE_NOTEBOOK=yes
2371 DEFAULT_wxUSE_RADIOBOX=yes
2372 DEFAULT_wxUSE_RADIOBTN=yes
2373 DEFAULT_wxUSE_SASH=yes
2374 DEFAULT_wxUSE_SCROLLBAR=yes
2375 DEFAULT_wxUSE_SLIDER=yes
2376 DEFAULT_wxUSE_SPINBTN=yes
2377 DEFAULT_wxUSE_SPINCTRL=yes
2378 DEFAULT_wxUSE_SPLITTER=yes
2379 DEFAULT_wxUSE_STATBMP=yes
2380 DEFAULT_wxUSE_STATBOX=yes
2381 DEFAULT_wxUSE_STATLINE=yes
2382 DEFAULT_wxUSE_STATTEXT=yes
2383 DEFAULT_wxUSE_STATUSBAR=yes
2384 DEFAULT_wxUSE_TABDIALOG=no
2385 DEFAULT_wxUSE_TEXTCTRL=yes
2386 DEFAULT_wxUSE_TOGGLEBTN=yes
2387 DEFAULT_wxUSE_TOOLBAR=yes
2388 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2389 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2390 DEFAULT_wxUSE_TREECTRL=yes
2391 DEFAULT_wxUSE_POPUPWIN=yes
2392 DEFAULT_wxUSE_TIPWINDOW=yes
2393
2394 DEFAULT_wxUSE_UNICODE=no
2395 DEFAULT_wxUSE_UNICODE_MSLU=yes
2396 DEFAULT_wxUSE_WCSRTOMBS=no
2397
2398 DEFAULT_wxUSE_PALETTE=yes
2399 DEFAULT_wxUSE_IMAGE=yes
2400 DEFAULT_wxUSE_GIF=yes
2401 DEFAULT_wxUSE_PCX=yes
2402 DEFAULT_wxUSE_IFF=no
2403 DEFAULT_wxUSE_PNM=yes
2404 DEFAULT_wxUSE_XPM=yes
2405 DEFAULT_wxUSE_ICO_CUR=yes
2406 DEFAULT_wxUSE_ACCESSIBILITY=no
2407
2408 DEFAULT_wxUSE_MONOLITHIC=no
2409 DEFAULT_wxUSE_PLUGINS=no
2410 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2411
2412 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2413fi
2414
2415
2416
2417for toolkit in `echo $ALL_TOOLKITS`; do
2418 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2419 if test "x$LINE" != "x" ; then
2420 has_toolkit_in_cache=1
2421 eval "DEFAULT_$LINE"
2422 eval "CACHE_$toolkit=1"
2423 fi
2424done
2425
2426
2427
2428 enablestring=
2429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2430echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2431 no_cache=0
2432 # Check whether --enable-gui or --disable-gui was given.
2433if test "${enable_gui+set}" = set; then
2434 enableval="$enable_gui"
2435
2436 if test "$enableval" = yes; then
2437 ac_cv_use_gui='wxUSE_GUI=yes'
2438 else
2439 ac_cv_use_gui='wxUSE_GUI=no'
2440 fi
2441
2442else
2443
2444 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2445 if test "x$LINE" != x ; then
2446 eval "DEFAULT_$LINE"
2447 else
2448 no_cache=1
2449 fi
2450
2451 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2452
2453fi;
2454
2455 eval "$ac_cv_use_gui"
2456 if test "$no_cache" != 1; then
2457 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2458 fi
2459
2460 if test "$wxUSE_GUI" = yes; then
2461 echo "$as_me:$LINENO: result: yes" >&5
2462echo "${ECHO_T}yes" >&6
2463 else
2464 echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6
2466 fi
2467
2468
2469 enablestring=
2470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2471echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2472 no_cache=0
2473 # Check whether --enable-monolithic or --disable-monolithic was given.
2474if test "${enable_monolithic+set}" = set; then
2475 enableval="$enable_monolithic"
2476
2477 if test "$enableval" = yes; then
2478 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2479 else
2480 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2481 fi
2482
2483else
2484
2485 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2486 if test "x$LINE" != x ; then
2487 eval "DEFAULT_$LINE"
2488 else
2489 no_cache=1
2490 fi
2491
2492 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2493
2494fi;
2495
2496 eval "$ac_cv_use_monolithic"
2497 if test "$no_cache" != 1; then
2498 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2499 fi
2500
2501 if test "$wxUSE_MONOLITHIC" = yes; then
2502 echo "$as_me:$LINENO: result: yes" >&5
2503echo "${ECHO_T}yes" >&6
2504 else
2505 echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6
2507 fi
2508
2509
2510 enablestring=
2511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2512echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2513 no_cache=0
2514 # Check whether --enable-plugins or --disable-plugins was given.
2515if test "${enable_plugins+set}" = set; then
2516 enableval="$enable_plugins"
2517
2518 if test "$enableval" = yes; then
2519 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2520 else
2521 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2522 fi
2523
2524else
2525
2526 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2527 if test "x$LINE" != x ; then
2528 eval "DEFAULT_$LINE"
2529 else
2530 no_cache=1
2531 fi
2532
2533 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2534
2535fi;
2536
2537 eval "$ac_cv_use_plugins"
2538 if test "$no_cache" != 1; then
2539 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2540 fi
2541
2542 if test "$wxUSE_PLUGINS" = yes; then
2543 echo "$as_me:$LINENO: result: yes" >&5
2544echo "${ECHO_T}yes" >&6
2545 else
2546 echo "$as_me:$LINENO: result: no" >&5
2547echo "${ECHO_T}no" >&6
2548 fi
2549
2550
2551if test "$wxUSE_GUI" = "yes"; then
2552
2553
2554 enablestring=
2555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2556echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2557 no_cache=0
2558 # Check whether --enable-universal or --disable-universal was given.
2559if test "${enable_universal+set}" = set; then
2560 enableval="$enable_universal"
2561
2562 if test "$enableval" = yes; then
2563 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2564 else
2565 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2566 fi
2567
2568else
2569
2570 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2571 if test "x$LINE" != x ; then
2572 eval "DEFAULT_$LINE"
2573 else
2574 no_cache=1
2575 fi
2576
2577 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2578
2579fi;
2580
2581 eval "$ac_cv_use_universal"
2582 if test "$no_cache" != 1; then
2583 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2584 fi
2585
2586 if test "$wxUSE_UNIVERSAL" = yes; then
2587 echo "$as_me:$LINENO: result: yes" >&5
2588echo "${ECHO_T}yes" >&6
2589 else
2590 echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6
2592 fi
2593
2594
2595# Check whether --with-gtk or --without-gtk was given.
2596if test "${with_gtk+set}" = set; then
2597 withval="$with_gtk"
2598 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2599fi;
2600
2601# Check whether --with-motif or --without-motif was given.
2602if test "${with_motif+set}" = set; then
2603 withval="$with_motif"
2604 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2605fi;
2606
2607# Check whether --with-mac or --without-mac was given.
2608if test "${with_mac+set}" = set; then
2609 withval="$with_mac"
c228d3a4 2610 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2611fi;
2612
2613# Check whether --with-cocoa or --without-cocoa was given.
2614if test "${with_cocoa+set}" = set; then
2615 withval="$with_cocoa"
c228d3a4 2616 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2617fi;
2618
2619# Check whether --with-wine or --without-wine was given.
2620if test "${with_wine+set}" = set; then
2621 withval="$with_wine"
2622 wxUSE_WINE="$withval" CACHE_WINE=1
2623fi;
2624
2625# Check whether --with-msw or --without-msw was given.
2626if test "${with_msw+set}" = set; then
2627 withval="$with_msw"
2628 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2629fi;
2630
2631# Check whether --with-pm or --without-pm was given.
2632if test "${with_pm+set}" = set; then
2633 withval="$with_pm"
2634 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2635fi;
2636
2637# Check whether --with-mgl or --without-mgl was given.
2638if test "${with_mgl+set}" = set; then
2639 withval="$with_mgl"
2640 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2641fi;
2642
2643# Check whether --with-microwin or --without-microwin was given.
2644if test "${with_microwin+set}" = set; then
2645 withval="$with_microwin"
2646 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2647fi;
2648
2649# Check whether --with-x11 or --without-x11 was given.
2650if test "${with_x11+set}" = set; then
2651 withval="$with_x11"
2652 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2653fi;
2654
2655 enablestring=
2656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2657echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2658 no_cache=0
2659 # Check whether --enable-nanox or --disable-nanox was given.
2660if test "${enable_nanox+set}" = set; then
2661 enableval="$enable_nanox"
2662
2663 if test "$enableval" = yes; then
2664 ac_cv_use_nanox='wxUSE_NANOX=yes'
2665 else
2666 ac_cv_use_nanox='wxUSE_NANOX=no'
2667 fi
2668
2669else
2670
2671 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
2678 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2679
2680fi;
2681
2682 eval "$ac_cv_use_nanox"
2683 if test "$no_cache" != 1; then
2684 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2685 fi
2686
2687 if test "$wxUSE_NANOX" = yes; then
2688 echo "$as_me:$LINENO: result: yes" >&5
2689echo "${ECHO_T}yes" >&6
2690 else
2691 echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6
2693 fi
2694
2695
2696
2697 enablestring=
2698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2699echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2700 no_cache=0
2701 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2702if test "${enable_gtk2+set}" = set; then
2703 enableval="$enable_gtk2"
2704
2705 if test "$enableval" = yes; then
2706 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2707 else
2708 ac_cv_use_gtk2='wxUSE_GTK2=no'
2709 fi
2710
2711else
2712
2713 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2714 if test "x$LINE" != x ; then
2715 eval "DEFAULT_$LINE"
2716 else
2717 no_cache=1
2718 fi
2719
2720 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2721
2722fi;
2723
2724 eval "$ac_cv_use_gtk2"
2725 if test "$no_cache" != 1; then
2726 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2727 fi
2728
2729 if test "$wxUSE_GTK2" = yes; then
2730 echo "$as_me:$LINENO: result: yes" >&5
2731echo "${ECHO_T}yes" >&6
2732 else
2733 echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
2735 fi
2736
2737
2738 enablestring=
2739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2740echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2741 no_cache=0
2742 # Check whether --enable-gpe or --disable-gpe was given.
2743if test "${enable_gpe+set}" = set; then
2744 enableval="$enable_gpe"
2745
2746 if test "$enableval" = yes; then
2747 ac_cv_use_gpe='wxUSE_GPE=yes'
2748 else
2749 ac_cv_use_gpe='wxUSE_GPE=no'
2750 fi
2751
2752else
2753
2754 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2755 if test "x$LINE" != x ; then
2756 eval "DEFAULT_$LINE"
2757 else
2758 no_cache=1
2759 fi
2760
2761 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2762
2763fi;
2764
2765 eval "$ac_cv_use_gpe"
2766 if test "$no_cache" != 1; then
2767 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2768 fi
2769
2770 if test "$wxUSE_GPE" = yes; then
2771 echo "$as_me:$LINENO: result: yes" >&5
2772echo "${ECHO_T}yes" >&6
2773 else
2774 echo "$as_me:$LINENO: result: no" >&5
2775echo "${ECHO_T}no" >&6
2776 fi
2777
2778
2779
2780 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2781echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2782 no_cache=0
2783
2784# Check whether --with-libpng or --without-libpng was given.
2785if test "${with_libpng+set}" = set; then
2786 withval="$with_libpng"
2787
2788 if test "$withval" = yes; then
2789 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2790 elif test "$withval" = no; then
2791 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2792 elif test "$withval" = sys; then
2793 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2794 elif test "$withval" = builtin; then
2795 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2796 else
2797 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2798echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2799 { (exit 1); exit 1; }; }
2800 fi
2801
2802else
2803
2804 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2805 if test "x$LINE" != x ; then
2806 eval "DEFAULT_$LINE"
2807 else
2808 no_cache=1
2809 fi
2810
2811 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2812
2813fi;
2814
2815 eval "$ac_cv_use_libpng"
2816 if test "$no_cache" != 1; then
2817 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2818 fi
2819
2820 if test "$wxUSE_LIBPNG" = yes; then
2821 echo "$as_me:$LINENO: result: yes" >&5
2822echo "${ECHO_T}yes" >&6
2823 elif test "$wxUSE_LIBPNG" = no; then
2824 echo "$as_me:$LINENO: result: no" >&5
2825echo "${ECHO_T}no" >&6
2826 elif test "$wxUSE_LIBPNG" = sys; then
2827 echo "$as_me:$LINENO: result: system version" >&5
2828echo "${ECHO_T}system version" >&6
2829 elif test "$wxUSE_LIBPNG" = builtin; then
2830 echo "$as_me:$LINENO: result: builtin version" >&5
2831echo "${ECHO_T}builtin version" >&6
2832 else
2833 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2834echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2835 { (exit 1); exit 1; }; }
2836 fi
2837
2838
2839 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2840echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2841 no_cache=0
2842
2843# Check whether --with-libjpeg or --without-libjpeg was given.
2844if test "${with_libjpeg+set}" = set; then
2845 withval="$with_libjpeg"
2846
2847 if test "$withval" = yes; then
2848 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2849 elif test "$withval" = no; then
2850 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2851 elif test "$withval" = sys; then
2852 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2853 elif test "$withval" = builtin; then
2854 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2855 else
2856 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2857echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2858 { (exit 1); exit 1; }; }
2859 fi
2860
2861else
2862
2863 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2864 if test "x$LINE" != x ; then
2865 eval "DEFAULT_$LINE"
2866 else
2867 no_cache=1
2868 fi
2869
2870 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2871
2872fi;
2873
2874 eval "$ac_cv_use_libjpeg"
2875 if test "$no_cache" != 1; then
2876 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2877 fi
2878
2879 if test "$wxUSE_LIBJPEG" = yes; then
2880 echo "$as_me:$LINENO: result: yes" >&5
2881echo "${ECHO_T}yes" >&6
2882 elif test "$wxUSE_LIBJPEG" = no; then
2883 echo "$as_me:$LINENO: result: no" >&5
2884echo "${ECHO_T}no" >&6
2885 elif test "$wxUSE_LIBJPEG" = sys; then
2886 echo "$as_me:$LINENO: result: system version" >&5
2887echo "${ECHO_T}system version" >&6
2888 elif test "$wxUSE_LIBJPEG" = builtin; then
2889 echo "$as_me:$LINENO: result: builtin version" >&5
2890echo "${ECHO_T}builtin version" >&6
2891 else
2892 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2893echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2894 { (exit 1); exit 1; }; }
2895 fi
2896
2897
2898 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2899echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2900 no_cache=0
2901
2902# Check whether --with-libtiff or --without-libtiff was given.
2903if test "${with_libtiff+set}" = set; then
2904 withval="$with_libtiff"
2905
2906 if test "$withval" = yes; then
2907 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2908 elif test "$withval" = no; then
2909 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2910 elif test "$withval" = sys; then
2911 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2912 elif test "$withval" = builtin; then
2913 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2914 else
2915 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2916echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2917 { (exit 1); exit 1; }; }
2918 fi
2919
2920else
2921
2922 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2923 if test "x$LINE" != x ; then
2924 eval "DEFAULT_$LINE"
2925 else
2926 no_cache=1
2927 fi
2928
2929 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2930
2931fi;
2932
2933 eval "$ac_cv_use_libtiff"
2934 if test "$no_cache" != 1; then
2935 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2936 fi
2937
2938 if test "$wxUSE_LIBTIFF" = yes; then
2939 echo "$as_me:$LINENO: result: yes" >&5
2940echo "${ECHO_T}yes" >&6
2941 elif test "$wxUSE_LIBTIFF" = no; then
2942 echo "$as_me:$LINENO: result: no" >&5
2943echo "${ECHO_T}no" >&6
2944 elif test "$wxUSE_LIBTIFF" = sys; then
2945 echo "$as_me:$LINENO: result: system version" >&5
2946echo "${ECHO_T}system version" >&6
2947 elif test "$wxUSE_LIBTIFF" = builtin; then
2948 echo "$as_me:$LINENO: result: builtin version" >&5
2949echo "${ECHO_T}builtin version" >&6
2950 else
2951 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2952echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2953 { (exit 1); exit 1; }; }
2954 fi
2955
2956
2957 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2958echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2959 no_cache=0
2960
2961# Check whether --with-libxpm or --without-libxpm was given.
2962if test "${with_libxpm+set}" = set; then
2963 withval="$with_libxpm"
2964
2965 if test "$withval" = yes; then
2966 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2967 elif test "$withval" = no; then
2968 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2969 elif test "$withval" = sys; then
2970 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2971 elif test "$withval" = builtin; then
2972 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2973 else
2974 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2975echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2976 { (exit 1); exit 1; }; }
2977 fi
2978
2979else
2980
2981 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2982 if test "x$LINE" != x ; then
2983 eval "DEFAULT_$LINE"
2984 else
2985 no_cache=1
2986 fi
2987
2988 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2989
2990fi;
2991
2992 eval "$ac_cv_use_libxpm"
2993 if test "$no_cache" != 1; then
2994 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2995 fi
2996
2997 if test "$wxUSE_LIBXPM" = yes; then
2998 echo "$as_me:$LINENO: result: yes" >&5
2999echo "${ECHO_T}yes" >&6
3000 elif test "$wxUSE_LIBXPM" = no; then
3001 echo "$as_me:$LINENO: result: no" >&5
3002echo "${ECHO_T}no" >&6
3003 elif test "$wxUSE_LIBXPM" = sys; then
3004 echo "$as_me:$LINENO: result: system version" >&5
3005echo "${ECHO_T}system version" >&6
3006 elif test "$wxUSE_LIBXPM" = builtin; then
3007 echo "$as_me:$LINENO: result: builtin version" >&5
3008echo "${ECHO_T}builtin version" >&6
3009 else
3010 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3011echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3012 { (exit 1); exit 1; }; }
3013 fi
3014
3015
3016 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3017echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3018 no_cache=0
3019
3020# Check whether --with-libmspack or --without-libmspack was given.
3021if test "${with_libmspack+set}" = set; then
3022 withval="$with_libmspack"
3023
3024 if test "$withval" = yes; then
3025 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3026 else
3027 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3028 fi
3029
3030else
3031
3032 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3033 if test "x$LINE" != x ; then
3034 eval "DEFAULT_$LINE"
3035 else
3036 no_cache=1
3037 fi
3038
3039 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3040
3041fi;
3042
3043 eval "$ac_cv_use_libmspack"
3044 if test "$no_cache" != 1; then
3045 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3046 fi
3047
3048 if test "$wxUSE_LIBMSPACK" = yes; then
3049 echo "$as_me:$LINENO: result: yes" >&5
3050echo "${ECHO_T}yes" >&6
3051 else
3052 echo "$as_me:$LINENO: result: no" >&5
3053echo "${ECHO_T}no" >&6
3054 fi
3055
3056
3057 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3058echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3059 no_cache=0
3060
3061# Check whether --with-sdl or --without-sdl was given.
3062if test "${with_sdl+set}" = set; then
3063 withval="$with_sdl"
3064
3065 if test "$withval" = yes; then
3066 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3067 else
3068 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3069 fi
3070
3071else
3072
3073 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3074 if test "x$LINE" != x ; then
3075 eval "DEFAULT_$LINE"
3076 else
3077 no_cache=1
3078 fi
3079
3080 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3081
3082fi;
3083
3084 eval "$ac_cv_use_sdl"
3085 if test "$no_cache" != 1; then
3086 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3087 fi
3088
3089 if test "$wxUSE_LIBSDL" = yes; then
3090 echo "$as_me:$LINENO: result: yes" >&5
3091echo "${ECHO_T}yes" >&6
3092 else
3093 echo "$as_me:$LINENO: result: no" >&5
3094echo "${ECHO_T}no" >&6
3095 fi
3096
3097
d1c38808
VZ
3098 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3099echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3100 no_cache=0
3101
3102# Check whether --with-gnomeprint or --without-gnomeprint was given.
3103if test "${with_gnomeprint+set}" = set; then
3104 withval="$with_gnomeprint"
3105
3106 if test "$withval" = yes; then
3107 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3108 else
3109 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3110 fi
3111
3112else
3113
3114 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3115 if test "x$LINE" != x ; then
3116 eval "DEFAULT_$LINE"
3117 else
3118 no_cache=1
3119 fi
3120
3121 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3122
3123fi;
3124
3125 eval "$ac_cv_use_gnomeprint"
3126 if test "$no_cache" != 1; then
3127 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3128 fi
3129
3130 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3131 echo "$as_me:$LINENO: result: yes" >&5
3132echo "${ECHO_T}yes" >&6
3133 else
3134 echo "$as_me:$LINENO: result: no" >&5
3135echo "${ECHO_T}no" >&6
3136 fi
3137
3138
a848cd7e
SC
3139 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3140echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3141 no_cache=0
3142
3143# Check whether --with-opengl or --without-opengl was given.
3144if test "${with_opengl+set}" = set; then
3145 withval="$with_opengl"
3146
3147 if test "$withval" = yes; then
3148 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3149 else
3150 ac_cv_use_opengl='wxUSE_OPENGL=no'
3151 fi
3152
3153else
3154
3155 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3156 if test "x$LINE" != x ; then
3157 eval "DEFAULT_$LINE"
3158 else
3159 no_cache=1
3160 fi
3161
3162 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3163
3164fi;
3165
3166 eval "$ac_cv_use_opengl"
3167 if test "$no_cache" != 1; then
3168 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3169 fi
3170
3171 if test "$wxUSE_OPENGL" = yes; then
3172 echo "$as_me:$LINENO: result: yes" >&5
3173echo "${ECHO_T}yes" >&6
3174 else
3175 echo "$as_me:$LINENO: result: no" >&5
3176echo "${ECHO_T}no" >&6
3177 fi
3178
3179
3180fi
3181
3182
3183 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3184echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3185 no_cache=0
3186
3187# Check whether --with-dmalloc or --without-dmalloc was given.
3188if test "${with_dmalloc+set}" = set; then
3189 withval="$with_dmalloc"
3190
3191 if test "$withval" = yes; then
3192 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3193 else
3194 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3195 fi
3196
3197else
3198
3199 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3200 if test "x$LINE" != x ; then
3201 eval "DEFAULT_$LINE"
3202 else
3203 no_cache=1
3204 fi
3205
3206 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3207
3208fi;
3209
3210 eval "$ac_cv_use_dmalloc"
3211 if test "$no_cache" != 1; then
3212 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3213 fi
3214
3215 if test "$wxUSE_DMALLOC" = yes; then
3216 echo "$as_me:$LINENO: result: yes" >&5
3217echo "${ECHO_T}yes" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
3221 fi
3222
3223
3224 echo "$as_me:$LINENO: checking for --with-regex" >&5
3225echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3226 no_cache=0
3227
3228# Check whether --with-regex or --without-regex was given.
3229if test "${with_regex+set}" = set; then
3230 withval="$with_regex"
3231
3232 if test "$withval" = yes; then
3233 ac_cv_use_regex='wxUSE_REGEX=yes'
3234 elif test "$withval" = no; then
3235 ac_cv_use_regex='wxUSE_REGEX=no'
3236 elif test "$withval" = sys; then
3237 ac_cv_use_regex='wxUSE_REGEX=sys'
3238 elif test "$withval" = builtin; then
3239 ac_cv_use_regex='wxUSE_REGEX=builtin'
3240 else
3241 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3242echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3243 { (exit 1); exit 1; }; }
3244 fi
3245
3246else
3247
3248 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3249 if test "x$LINE" != x ; then
3250 eval "DEFAULT_$LINE"
3251 else
3252 no_cache=1
3253 fi
3254
3255 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3256
3257fi;
3258
3259 eval "$ac_cv_use_regex"
3260 if test "$no_cache" != 1; then
3261 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3262 fi
3263
3264 if test "$wxUSE_REGEX" = yes; then
3265 echo "$as_me:$LINENO: result: yes" >&5
3266echo "${ECHO_T}yes" >&6
3267 elif test "$wxUSE_REGEX" = no; then
3268 echo "$as_me:$LINENO: result: no" >&5
3269echo "${ECHO_T}no" >&6
3270 elif test "$wxUSE_REGEX" = sys; then
3271 echo "$as_me:$LINENO: result: system version" >&5
3272echo "${ECHO_T}system version" >&6
3273 elif test "$wxUSE_REGEX" = builtin; then
3274 echo "$as_me:$LINENO: result: builtin version" >&5
3275echo "${ECHO_T}builtin version" >&6
3276 else
3277 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3278echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3279 { (exit 1); exit 1; }; }
3280 fi
3281
3282
3283 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3284echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3285 no_cache=0
3286
3287# Check whether --with-zlib or --without-zlib was given.
3288if test "${with_zlib+set}" = set; then
3289 withval="$with_zlib"
3290
3291 if test "$withval" = yes; then
3292 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3293 elif test "$withval" = no; then
3294 ac_cv_use_zlib='wxUSE_ZLIB=no'
3295 elif test "$withval" = sys; then
3296 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3297 elif test "$withval" = builtin; then
3298 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3299 else
3300 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3301echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3302 { (exit 1); exit 1; }; }
3303 fi
3304
3305else
3306
3307 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3308 if test "x$LINE" != x ; then
3309 eval "DEFAULT_$LINE"
3310 else
3311 no_cache=1
3312 fi
3313
3314 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3315
3316fi;
3317
3318 eval "$ac_cv_use_zlib"
3319 if test "$no_cache" != 1; then
3320 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3321 fi
3322
3323 if test "$wxUSE_ZLIB" = yes; then
3324 echo "$as_me:$LINENO: result: yes" >&5
3325echo "${ECHO_T}yes" >&6
3326 elif test "$wxUSE_ZLIB" = no; then
3327 echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
3329 elif test "$wxUSE_ZLIB" = sys; then
3330 echo "$as_me:$LINENO: result: system version" >&5
3331echo "${ECHO_T}system version" >&6
3332 elif test "$wxUSE_ZLIB" = builtin; then
3333 echo "$as_me:$LINENO: result: builtin version" >&5
3334echo "${ECHO_T}builtin version" >&6
3335 else
3336 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3337echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3338 { (exit 1); exit 1; }; }
3339 fi
3340
3341
3342 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3343echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3344 no_cache=0
3345
3346# Check whether --with-odbc or --without-odbc was given.
3347if test "${with_odbc+set}" = set; then
3348 withval="$with_odbc"
3349
3350 if test "$withval" = yes; then
3351 ac_cv_use_odbc='wxUSE_ODBC=yes'
3352 elif test "$withval" = no; then
3353 ac_cv_use_odbc='wxUSE_ODBC=no'
3354 elif test "$withval" = sys; then
3355 ac_cv_use_odbc='wxUSE_ODBC=sys'
3356 elif test "$withval" = builtin; then
3357 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3358 else
3359 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3360echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3361 { (exit 1); exit 1; }; }
3362 fi
3363
3364else
3365
3366 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3374
3375fi;
3376
3377 eval "$ac_cv_use_odbc"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_ODBC" = yes; then
3383 echo "$as_me:$LINENO: result: yes" >&5
3384echo "${ECHO_T}yes" >&6
3385 elif test "$wxUSE_ODBC" = no; then
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
3388 elif test "$wxUSE_ODBC" = sys; then
3389 echo "$as_me:$LINENO: result: system version" >&5
3390echo "${ECHO_T}system version" >&6
3391 elif test "$wxUSE_ODBC" = builtin; then
3392 echo "$as_me:$LINENO: result: builtin version" >&5
3393echo "${ECHO_T}builtin version" >&6
3394 else
3395 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3396echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3397 { (exit 1); exit 1; }; }
3398 fi
3399
3400
3401 echo "$as_me:$LINENO: checking for --with-expat" >&5
3402echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3403 no_cache=0
3404
3405# Check whether --with-expat or --without-expat was given.
3406if test "${with_expat+set}" = set; then
3407 withval="$with_expat"
3408
3409 if test "$withval" = yes; then
3410 ac_cv_use_expat='wxUSE_EXPAT=yes'
3411 elif test "$withval" = no; then
3412 ac_cv_use_expat='wxUSE_EXPAT=no'
3413 elif test "$withval" = sys; then
3414 ac_cv_use_expat='wxUSE_EXPAT=sys'
3415 elif test "$withval" = builtin; then
3416 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3417 else
3418 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3419echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3420 { (exit 1); exit 1; }; }
3421 fi
3422
3423else
3424
3425 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3426 if test "x$LINE" != x ; then
3427 eval "DEFAULT_$LINE"
3428 else
3429 no_cache=1
3430 fi
3431
3432 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3433
3434fi;
3435
3436 eval "$ac_cv_use_expat"
3437 if test "$no_cache" != 1; then
3438 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3439 fi
3440
3441 if test "$wxUSE_EXPAT" = yes; then
3442 echo "$as_me:$LINENO: result: yes" >&5
3443echo "${ECHO_T}yes" >&6
3444 elif test "$wxUSE_EXPAT" = no; then
3445 echo "$as_me:$LINENO: result: no" >&5
3446echo "${ECHO_T}no" >&6
3447 elif test "$wxUSE_EXPAT" = sys; then
3448 echo "$as_me:$LINENO: result: system version" >&5
3449echo "${ECHO_T}system version" >&6
3450 elif test "$wxUSE_EXPAT" = builtin; then
3451 echo "$as_me:$LINENO: result: builtin version" >&5
3452echo "${ECHO_T}builtin version" >&6
3453 else
3454 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3455echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3456 { (exit 1); exit 1; }; }
3457 fi
3458
3459
3460
3461
3462 enablestring=
3463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3464echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3465 no_cache=0
3466 # Check whether --enable-shared or --disable-shared was given.
3467if test "${enable_shared+set}" = set; then
3468 enableval="$enable_shared"
3469
3470 if test "$enableval" = yes; then
3471 ac_cv_use_shared='wxUSE_SHARED=yes'
3472 else
3473 ac_cv_use_shared='wxUSE_SHARED=no'
3474 fi
3475
3476else
3477
3478 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3486
3487fi;
3488
3489 eval "$ac_cv_use_shared"
3490 if test "$no_cache" != 1; then
3491 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3492 fi
3493
3494 if test "$wxUSE_SHARED" = yes; then
3495 echo "$as_me:$LINENO: result: yes" >&5
3496echo "${ECHO_T}yes" >&6
3497 else
3498 echo "$as_me:$LINENO: result: no" >&5
3499echo "${ECHO_T}no" >&6
3500 fi
3501
3502
3503 enablestring=
3504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3505echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3506 no_cache=0
3507 # Check whether --enable-optimise or --disable-optimise was given.
3508if test "${enable_optimise+set}" = set; then
3509 enableval="$enable_optimise"
3510
3511 if test "$enableval" = yes; then
3512 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3513 else
3514 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3515 fi
3516
3517else
3518
3519 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3520 if test "x$LINE" != x ; then
3521 eval "DEFAULT_$LINE"
3522 else
3523 no_cache=1
3524 fi
3525
3526 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3527
3528fi;
3529
3530 eval "$ac_cv_use_optimise"
3531 if test "$no_cache" != 1; then
3532 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3533 fi
3534
3535 if test "$wxUSE_OPTIMISE" = yes; then
3536 echo "$as_me:$LINENO: result: yes" >&5
3537echo "${ECHO_T}yes" >&6
3538 else
3539 echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6
3541 fi
3542
3543
3544 enablestring=
3545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3546echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3547 no_cache=0
3548 # Check whether --enable-debug or --disable-debug was given.
3549if test "${enable_debug+set}" = set; then
3550 enableval="$enable_debug"
3551
3552 if test "$enableval" = yes; then
3553 ac_cv_use_debug='wxUSE_DEBUG=yes'
3554 else
3555 ac_cv_use_debug='wxUSE_DEBUG=no'
3556 fi
3557
3558else
3559
3560 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3561 if test "x$LINE" != x ; then
3562 eval "DEFAULT_$LINE"
3563 else
3564 no_cache=1
3565 fi
3566
3567 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3568
3569fi;
3570
3571 eval "$ac_cv_use_debug"
3572 if test "$no_cache" != 1; then
3573 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3574 fi
3575
3576 if test "$wxUSE_DEBUG" = yes; then
3577 echo "$as_me:$LINENO: result: yes" >&5
3578echo "${ECHO_T}yes" >&6
3579 else
3580 echo "$as_me:$LINENO: result: no" >&5
3581echo "${ECHO_T}no" >&6
3582 fi
3583
3584
3585 enablestring=
3586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3587echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3588 no_cache=0
3589 # Check whether --enable-stl or --disable-stl was given.
3590if test "${enable_stl+set}" = set; then
3591 enableval="$enable_stl"
3592
3593 if test "$enableval" = yes; then
3594 ac_cv_use_stl='wxUSE_STL=yes'
3595 else
3596 ac_cv_use_stl='wxUSE_STL=no'
3597 fi
3598
3599else
3600
3601 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3602 if test "x$LINE" != x ; then
3603 eval "DEFAULT_$LINE"
3604 else
3605 no_cache=1
3606 fi
3607
3608 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3609
3610fi;
3611
3612 eval "$ac_cv_use_stl"
3613 if test "$no_cache" != 1; then
3614 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3615 fi
3616
3617 if test "$wxUSE_STL" = yes; then
3618 echo "$as_me:$LINENO: result: yes" >&5
3619echo "${ECHO_T}yes" >&6
3620 else
3621 echo "$as_me:$LINENO: result: no" >&5
3622echo "${ECHO_T}no" >&6
3623 fi
3624
3625if test "$USE_OS2" = "1"; then
3626
3627 enablestring=
3628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3629echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3630 no_cache=0
3631 # Check whether --enable-omf or --disable-omf was given.
3632if test "${enable_omf+set}" = set; then
3633 enableval="$enable_omf"
3634
3635 if test "$enableval" = yes; then
3636 ac_cv_use_omf='wxUSE_OMF=yes'
3637 else
3638 ac_cv_use_omf='wxUSE_OMF=no'
3639 fi
3640
3641else
3642
3643 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3651
3652fi;
3653
3654 eval "$ac_cv_use_omf"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_OMF" = yes; then
3660 echo "$as_me:$LINENO: result: yes" >&5
3661echo "${ECHO_T}yes" >&6
3662 else
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
3665 fi
3666
3667fi
3668
3669if test "$wxUSE_DEBUG" = "yes"; then
3670 DEFAULT_wxUSE_DEBUG_FLAG=yes
3671 DEFAULT_wxUSE_DEBUG_INFO=yes
3672 BUILD=debug
3673elif test "$wxUSE_DEBUG" = "no"; then
3674 DEFAULT_wxUSE_DEBUG_FLAG=no
3675 DEFAULT_wxUSE_DEBUG_INFO=no
3676 BUILD=release
3677fi
3678
3679
3680 enablestring=
3681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3682echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3683 no_cache=0
3684 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3685if test "${enable_debug_flag+set}" = set; then
3686 enableval="$enable_debug_flag"
3687
3688 if test "$enableval" = yes; then
3689 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3690 else
3691 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3692 fi
3693
3694else
3695
3696 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3697 if test "x$LINE" != x ; then
3698 eval "DEFAULT_$LINE"
3699 else
3700 no_cache=1
3701 fi
3702
3703 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3704
3705fi;
3706
3707 eval "$ac_cv_use_debug_flag"
3708 if test "$no_cache" != 1; then
3709 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3710 fi
3711
3712 if test "$wxUSE_DEBUG_FLAG" = yes; then
3713 echo "$as_me:$LINENO: result: yes" >&5
3714echo "${ECHO_T}yes" >&6
3715 else
3716 echo "$as_me:$LINENO: result: no" >&5
3717echo "${ECHO_T}no" >&6
3718 fi
3719
3720
3721 enablestring=
3722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3723echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3724 no_cache=0
3725 # Check whether --enable-debug_info or --disable-debug_info was given.
3726if test "${enable_debug_info+set}" = set; then
3727 enableval="$enable_debug_info"
3728
3729 if test "$enableval" = yes; then
3730 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3731 else
3732 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3733 fi
3734
3735else
3736
3737 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3738 if test "x$LINE" != x ; then
3739 eval "DEFAULT_$LINE"
3740 else
3741 no_cache=1
3742 fi
3743
3744 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3745
3746fi;
3747
3748 eval "$ac_cv_use_debug_info"
3749 if test "$no_cache" != 1; then
3750 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3751 fi
3752
3753 if test "$wxUSE_DEBUG_INFO" = yes; then
3754 echo "$as_me:$LINENO: result: yes" >&5
3755echo "${ECHO_T}yes" >&6
3756 else
3757 echo "$as_me:$LINENO: result: no" >&5
3758echo "${ECHO_T}no" >&6
3759 fi
3760
3761
3762 enablestring=
3763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3764echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3765 no_cache=0
3766 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3767if test "${enable_debug_gdb+set}" = set; then
3768 enableval="$enable_debug_gdb"
3769
3770 if test "$enableval" = yes; then
3771 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3772 else
3773 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3774 fi
3775
3776else
3777
3778 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3779 if test "x$LINE" != x ; then
3780 eval "DEFAULT_$LINE"
3781 else
3782 no_cache=1
3783 fi
3784
3785 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3786
3787fi;
3788
3789 eval "$ac_cv_use_debug_gdb"
3790 if test "$no_cache" != 1; then
3791 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3792 fi
3793
3794 if test "$wxUSE_DEBUG_GDB" = yes; then
3795 echo "$as_me:$LINENO: result: yes" >&5
3796echo "${ECHO_T}yes" >&6
3797 else
3798 echo "$as_me:$LINENO: result: no" >&5
3799echo "${ECHO_T}no" >&6
3800 fi
3801
3802
3803 enablestring=
3804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3805echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3806 no_cache=0
3807 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3808if test "${enable_debug_cntxt+set}" = set; then
3809 enableval="$enable_debug_cntxt"
3810
3811 if test "$enableval" = yes; then
3812 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3813 else
3814 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3815 fi
3816
3817else
3818
3819 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3820 if test "x$LINE" != x ; then
3821 eval "DEFAULT_$LINE"
3822 else
3823 no_cache=1
3824 fi
3825
3826 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3827
3828fi;
3829
3830 eval "$ac_cv_use_debug_cntxt"
3831 if test "$no_cache" != 1; then
3832 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3833 fi
3834
3835 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3836 echo "$as_me:$LINENO: result: yes" >&5
3837echo "${ECHO_T}yes" >&6
3838 else
3839 echo "$as_me:$LINENO: result: no" >&5
3840echo "${ECHO_T}no" >&6
3841 fi
3842
3843
3844 enablestring=
3845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3846echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3847 no_cache=0
3848 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3849if test "${enable_mem_tracing+set}" = set; then
3850 enableval="$enable_mem_tracing"
3851
3852 if test "$enableval" = yes; then
3853 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3854 else
3855 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3856 fi
3857
3858else
3859
3860 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3861 if test "x$LINE" != x ; then
3862 eval "DEFAULT_$LINE"
3863 else
3864 no_cache=1
3865 fi
3866
3867 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3868
3869fi;
3870
3871 eval "$ac_cv_use_mem_tracing"
3872 if test "$no_cache" != 1; then
3873 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3874 fi
3875
3876 if test "$wxUSE_MEM_TRACING" = yes; then
3877 echo "$as_me:$LINENO: result: yes" >&5
3878echo "${ECHO_T}yes" >&6
3879 else
3880 echo "$as_me:$LINENO: result: no" >&5
3881echo "${ECHO_T}no" >&6
3882 fi
3883
3884
3885 enablestring=
3886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3887echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3888 no_cache=0
3889 # Check whether --enable-profile or --disable-profile was given.
3890if test "${enable_profile+set}" = set; then
3891 enableval="$enable_profile"
3892
3893 if test "$enableval" = yes; then
3894 ac_cv_use_profile='wxUSE_PROFILE=yes'
3895 else
3896 ac_cv_use_profile='wxUSE_PROFILE=no'
3897 fi
3898
3899else
3900
3901 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3902 if test "x$LINE" != x ; then
3903 eval "DEFAULT_$LINE"
3904 else
3905 no_cache=1
3906 fi
3907
3908 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3909
3910fi;
3911
3912 eval "$ac_cv_use_profile"
3913 if test "$no_cache" != 1; then
3914 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3915 fi
3916
3917 if test "$wxUSE_PROFILE" = yes; then
3918 echo "$as_me:$LINENO: result: yes" >&5
3919echo "${ECHO_T}yes" >&6
3920 else
3921 echo "$as_me:$LINENO: result: no" >&5
3922echo "${ECHO_T}no" >&6
3923 fi
3924
3925
3926 enablestring=
3927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3928echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3929 no_cache=0
3930 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3931if test "${enable_no_rtti+set}" = set; then
3932 enableval="$enable_no_rtti"
3933
3934 if test "$enableval" = yes; then
3935 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3936 else
3937 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3938 fi
3939
3940else
3941
3942 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3943 if test "x$LINE" != x ; then
3944 eval "DEFAULT_$LINE"
3945 else
3946 no_cache=1
3947 fi
3948
3949 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3950
3951fi;
3952
3953 eval "$ac_cv_use_no_rtti"
3954 if test "$no_cache" != 1; then
3955 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3956 fi
3957
3958 if test "$wxUSE_NO_RTTI" = yes; then
3959 echo "$as_me:$LINENO: result: yes" >&5
3960echo "${ECHO_T}yes" >&6
3961 else
3962 echo "$as_me:$LINENO: result: no" >&5
3963echo "${ECHO_T}no" >&6
3964 fi
3965
3966
3967 enablestring=
3968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3969echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3970 no_cache=0
3971 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3972if test "${enable_no_exceptions+set}" = set; then
3973 enableval="$enable_no_exceptions"
3974
3975 if test "$enableval" = yes; then
3976 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3977 else
3978 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3979 fi
3980
3981else
3982
3983 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3984 if test "x$LINE" != x ; then
3985 eval "DEFAULT_$LINE"
3986 else
3987 no_cache=1
3988 fi
3989
3990 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3991
3992fi;
3993
3994 eval "$ac_cv_use_no_exceptions"
3995 if test "$no_cache" != 1; then
3996 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3997 fi
3998
3999 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4000 echo "$as_me:$LINENO: result: yes" >&5
4001echo "${ECHO_T}yes" >&6
4002 else
4003 echo "$as_me:$LINENO: result: no" >&5
4004echo "${ECHO_T}no" >&6
4005 fi
4006
4007
4008 enablestring=
4009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4010echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4011 no_cache=0
4012 # Check whether --enable-permissive or --disable-permissive was given.
4013if test "${enable_permissive+set}" = set; then
4014 enableval="$enable_permissive"
4015
4016 if test "$enableval" = yes; then
4017 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4018 else
4019 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4020 fi
4021
4022else
4023
4024 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4025 if test "x$LINE" != x ; then
4026 eval "DEFAULT_$LINE"
4027 else
4028 no_cache=1
4029 fi
4030
4031 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4032
4033fi;
4034
4035 eval "$ac_cv_use_permissive"
4036 if test "$no_cache" != 1; then
4037 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4038 fi
4039
4040 if test "$wxUSE_PERMISSIVE" = yes; then
4041 echo "$as_me:$LINENO: result: yes" >&5
4042echo "${ECHO_T}yes" >&6
4043 else
4044 echo "$as_me:$LINENO: result: no" >&5
4045echo "${ECHO_T}no" >&6
4046 fi
4047
4048
4049 enablestring=
4050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4051echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4052 no_cache=0
4053 # Check whether --enable-no_deps or --disable-no_deps was given.
4054if test "${enable_no_deps+set}" = set; then
4055 enableval="$enable_no_deps"
4056
4057 if test "$enableval" = yes; then
4058 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4059 else
4060 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4061 fi
4062
4063else
4064
4065 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4066 if test "x$LINE" != x ; then
4067 eval "DEFAULT_$LINE"
4068 else
4069 no_cache=1
4070 fi
4071
4072 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4073
4074fi;
4075
4076 eval "$ac_cv_use_no_deps"
4077 if test "$no_cache" != 1; then
4078 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4079 fi
4080
4081 if test "$wxUSE_NO_DEPS" = yes; then
4082 echo "$as_me:$LINENO: result: yes" >&5
4083echo "${ECHO_T}yes" >&6
4084 else
4085 echo "$as_me:$LINENO: result: no" >&5
4086echo "${ECHO_T}no" >&6
4087 fi
4088
4089
4090
4091 enablestring=
4092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4093echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4094 no_cache=0
4095 # Check whether --enable-compat22 or --disable-compat22 was given.
4096if test "${enable_compat22+set}" = set; then
4097 enableval="$enable_compat22"
4098
4099 if test "$enableval" = yes; then
4100 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4101 else
4102 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4103 fi
4104
4105else
4106
4107 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4108 if test "x$LINE" != x ; then
4109 eval "DEFAULT_$LINE"
4110 else
4111 no_cache=1
4112 fi
4113
4114 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4115
4116fi;
4117
4118 eval "$ac_cv_use_compat22"
4119 if test "$no_cache" != 1; then
4120 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4121 fi
4122
4123 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4124 echo "$as_me:$LINENO: result: yes" >&5
4125echo "${ECHO_T}yes" >&6
4126 else
4127 echo "$as_me:$LINENO: result: no" >&5
4128echo "${ECHO_T}no" >&6
4129 fi
4130
4131
4132 enablestring=disable
4133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4134echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4135 no_cache=0
4136 # Check whether --enable-compat24 or --disable-compat24 was given.
4137if test "${enable_compat24+set}" = set; then
4138 enableval="$enable_compat24"
4139
4140 if test "$enableval" = yes; then
4141 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4142 else
4143 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4144 fi
4145
4146else
4147
4148 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4149 if test "x$LINE" != x ; then
4150 eval "DEFAULT_$LINE"
4151 else
4152 no_cache=1
4153 fi
4154
4155 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4156
4157fi;
4158
4159 eval "$ac_cv_use_compat24"
4160 if test "$no_cache" != 1; then
4161 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4162 fi
4163
4164 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4165 echo "$as_me:$LINENO: result: yes" >&5
4166echo "${ECHO_T}yes" >&6
4167 else
4168 echo "$as_me:$LINENO: result: no" >&5
4169echo "${ECHO_T}no" >&6
4170 fi
4171
4172
ffa0583f
RL
4173
4174 enablestring=
4175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4176echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4177 no_cache=0
4178 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4179if test "${enable_rpath+set}" = set; then
4180 enableval="$enable_rpath"
ffa0583f
RL
4181
4182 if test "$enableval" = yes; then
4183 ac_cv_use_rpath='wxUSE_RPATH=yes'
4184 else
4185 ac_cv_use_rpath='wxUSE_RPATH=no'
4186 fi
4187
4188else
4189
4190 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4191 if test "x$LINE" != x ; then
4192 eval "DEFAULT_$LINE"
4193 else
4194 no_cache=1
4195 fi
4196
4197 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4198
a848cd7e
SC
4199fi;
4200
ffa0583f
RL
4201 eval "$ac_cv_use_rpath"
4202 if test "$no_cache" != 1; then
4203 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4204 fi
4205
4206 if test "$wxUSE_RPATH" = yes; then
4207 echo "$as_me:$LINENO: result: yes" >&5
4208echo "${ECHO_T}yes" >&6
4209 else
4210 echo "$as_me:$LINENO: result: no" >&5
4211echo "${ECHO_T}no" >&6
4212 fi
4213
a848cd7e
SC
4214
4215
4216
4217
4218 enablestring=
4219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4220echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4221 no_cache=0
4222 # Check whether --enable-intl or --disable-intl was given.
4223if test "${enable_intl+set}" = set; then
4224 enableval="$enable_intl"
4225
4226 if test "$enableval" = yes; then
4227 ac_cv_use_intl='wxUSE_INTL=yes'
4228 else
4229 ac_cv_use_intl='wxUSE_INTL=no'
4230 fi
4231
4232else
4233
4234 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4235 if test "x$LINE" != x ; then
4236 eval "DEFAULT_$LINE"
4237 else
4238 no_cache=1
4239 fi
4240
4241 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4242
4243fi;
4244
4245 eval "$ac_cv_use_intl"
4246 if test "$no_cache" != 1; then
4247 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4248 fi
4249
4250 if test "$wxUSE_INTL" = yes; then
4251 echo "$as_me:$LINENO: result: yes" >&5
4252echo "${ECHO_T}yes" >&6
4253 else
4254 echo "$as_me:$LINENO: result: no" >&5
4255echo "${ECHO_T}no" >&6
4256 fi
4257
4258
4259 enablestring=
4260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4261echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4262 no_cache=0
4263 # Check whether --enable-config or --disable-config was given.
4264if test "${enable_config+set}" = set; then
4265 enableval="$enable_config"
4266
4267 if test "$enableval" = yes; then
4268 ac_cv_use_config='wxUSE_CONFIG=yes'
4269 else
4270 ac_cv_use_config='wxUSE_CONFIG=no'
4271 fi
4272
4273else
4274
4275 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4276 if test "x$LINE" != x ; then
4277 eval "DEFAULT_$LINE"
4278 else
4279 no_cache=1
4280 fi
4281
4282 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4283
4284fi;
4285
4286 eval "$ac_cv_use_config"
4287 if test "$no_cache" != 1; then
4288 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4289 fi
4290
4291 if test "$wxUSE_CONFIG" = yes; then
4292 echo "$as_me:$LINENO: result: yes" >&5
4293echo "${ECHO_T}yes" >&6
4294 else
4295 echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297 fi
4298
4299
4300
4301 enablestring=
4302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4303echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4304 no_cache=0
4305 # Check whether --enable-protocols or --disable-protocols was given.
4306if test "${enable_protocols+set}" = set; then
4307 enableval="$enable_protocols"
4308
4309 if test "$enableval" = yes; then
4310 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4311 else
4312 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4313 fi
4314
4315else
4316
4317 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4318 if test "x$LINE" != x ; then
4319 eval "DEFAULT_$LINE"
4320 else
4321 no_cache=1
4322 fi
4323
4324 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4325
4326fi;
4327
4328 eval "$ac_cv_use_protocols"
4329 if test "$no_cache" != 1; then
4330 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4331 fi
4332
4333 if test "$wxUSE_PROTOCOL" = yes; then
4334 echo "$as_me:$LINENO: result: yes" >&5
4335echo "${ECHO_T}yes" >&6
4336 else
4337 echo "$as_me:$LINENO: result: no" >&5
4338echo "${ECHO_T}no" >&6
4339 fi
4340
4341
4342 enablestring=
4343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4344echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4345 no_cache=0
4346 # Check whether --enable-ftp or --disable-ftp was given.
4347if test "${enable_ftp+set}" = set; then
4348 enableval="$enable_ftp"
4349
4350 if test "$enableval" = yes; then
4351 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4352 else
4353 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4354 fi
4355
4356else
4357
4358 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4359 if test "x$LINE" != x ; then
4360 eval "DEFAULT_$LINE"
4361 else
4362 no_cache=1
4363 fi
4364
4365 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4366
4367fi;
4368
4369 eval "$ac_cv_use_ftp"
4370 if test "$no_cache" != 1; then
4371 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4372 fi
4373
4374 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4375 echo "$as_me:$LINENO: result: yes" >&5
4376echo "${ECHO_T}yes" >&6
4377 else
4378 echo "$as_me:$LINENO: result: no" >&5
4379echo "${ECHO_T}no" >&6
4380 fi
4381
4382
4383 enablestring=
4384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4385echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4386 no_cache=0
4387 # Check whether --enable-http or --disable-http was given.
4388if test "${enable_http+set}" = set; then
4389 enableval="$enable_http"
4390
4391 if test "$enableval" = yes; then
4392 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4393 else
4394 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4395 fi
4396
4397else
4398
4399 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4400 if test "x$LINE" != x ; then
4401 eval "DEFAULT_$LINE"
4402 else
4403 no_cache=1
4404 fi
4405
4406 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4407
4408fi;
4409
4410 eval "$ac_cv_use_http"
4411 if test "$no_cache" != 1; then
4412 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4413 fi
4414
4415 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4416 echo "$as_me:$LINENO: result: yes" >&5
4417echo "${ECHO_T}yes" >&6
4418 else
4419 echo "$as_me:$LINENO: result: no" >&5
4420echo "${ECHO_T}no" >&6
4421 fi
4422
4423
4424 enablestring=
4425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4426echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4427 no_cache=0
4428 # Check whether --enable-fileproto or --disable-fileproto was given.
4429if test "${enable_fileproto+set}" = set; then
4430 enableval="$enable_fileproto"
4431
4432 if test "$enableval" = yes; then
4433 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4434 else
4435 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4436 fi
4437
4438else
4439
4440 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4441 if test "x$LINE" != x ; then
4442 eval "DEFAULT_$LINE"
4443 else
4444 no_cache=1
4445 fi
4446
4447 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4448
4449fi;
4450
4451 eval "$ac_cv_use_fileproto"
4452 if test "$no_cache" != 1; then
4453 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4454 fi
4455
4456 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4457 echo "$as_me:$LINENO: result: yes" >&5
4458echo "${ECHO_T}yes" >&6
4459 else
4460 echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6
4462 fi
4463
4464
4465 enablestring=
4466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4467echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4468 no_cache=0
4469 # Check whether --enable-sockets or --disable-sockets was given.
4470if test "${enable_sockets+set}" = set; then
4471 enableval="$enable_sockets"
4472
4473 if test "$enableval" = yes; then
4474 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4475 else
4476 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4477 fi
4478
4479else
4480
4481 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4482 if test "x$LINE" != x ; then
4483 eval "DEFAULT_$LINE"
4484 else
4485 no_cache=1
4486 fi
4487
4488 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4489
4490fi;
4491
4492 eval "$ac_cv_use_sockets"
4493 if test "$no_cache" != 1; then
4494 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4495 fi
4496
4497 if test "$wxUSE_SOCKETS" = yes; then
4498 echo "$as_me:$LINENO: result: yes" >&5
4499echo "${ECHO_T}yes" >&6
4500 else
4501 echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6
4503 fi
4504
4505
4506 enablestring=
4507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4508echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4509 no_cache=0
4510 # Check whether --enable-ole or --disable-ole was given.
4511if test "${enable_ole+set}" = set; then
4512 enableval="$enable_ole"
4513
4514 if test "$enableval" = yes; then
4515 ac_cv_use_ole='wxUSE_OLE=yes'
4516 else
4517 ac_cv_use_ole='wxUSE_OLE=no'
4518 fi
4519
4520else
4521
4522 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4523 if test "x$LINE" != x ; then
4524 eval "DEFAULT_$LINE"
4525 else
4526 no_cache=1
4527 fi
4528
4529 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4530
4531fi;
4532
4533 eval "$ac_cv_use_ole"
4534 if test "$no_cache" != 1; then
4535 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4536 fi
4537
4538 if test "$wxUSE_OLE" = yes; then
4539 echo "$as_me:$LINENO: result: yes" >&5
4540echo "${ECHO_T}yes" >&6
4541 else
4542 echo "$as_me:$LINENO: result: no" >&5
4543echo "${ECHO_T}no" >&6
4544 fi
4545
4546
4547 enablestring=
4548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4549echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4550 no_cache=0
4551 # Check whether --enable-dataobj or --disable-dataobj was given.
4552if test "${enable_dataobj+set}" = set; then
4553 enableval="$enable_dataobj"
4554
4555 if test "$enableval" = yes; then
4556 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4557 else
4558 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4559 fi
4560
4561else
4562
4563 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4571
4572fi;
4573
4574 eval "$ac_cv_use_dataobj"
4575 if test "$no_cache" != 1; then
4576 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4577 fi
4578
4579 if test "$wxUSE_DATAOBJ" = yes; then
4580 echo "$as_me:$LINENO: result: yes" >&5
4581echo "${ECHO_T}yes" >&6
4582 else
4583 echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6
4585 fi
4586
4587
4588
4589 enablestring=
4590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4591echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4592 no_cache=0
4593 # Check whether --enable-ipc or --disable-ipc was given.
4594if test "${enable_ipc+set}" = set; then
4595 enableval="$enable_ipc"
4596
4597 if test "$enableval" = yes; then
4598 ac_cv_use_ipc='wxUSE_IPC=yes'
4599 else
4600 ac_cv_use_ipc='wxUSE_IPC=no'
4601 fi
4602
4603else
4604
4605 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4606 if test "x$LINE" != x ; then
4607 eval "DEFAULT_$LINE"
4608 else
4609 no_cache=1
4610 fi
4611
4612 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4613
4614fi;
4615
4616 eval "$ac_cv_use_ipc"
4617 if test "$no_cache" != 1; then
4618 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4619 fi
4620
4621 if test "$wxUSE_IPC" = yes; then
4622 echo "$as_me:$LINENO: result: yes" >&5
4623echo "${ECHO_T}yes" >&6
4624 else
4625 echo "$as_me:$LINENO: result: no" >&5
4626echo "${ECHO_T}no" >&6
4627 fi
4628
4629
4630
4631 enablestring=
4632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4633echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4634 no_cache=0
4635 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4636if test "${enable_apple_ieee+set}" = set; then
4637 enableval="$enable_apple_ieee"
4638
4639 if test "$enableval" = yes; then
4640 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4641 else
4642 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4643 fi
4644
4645else
4646
4647 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4655
4656fi;
4657
4658 eval "$ac_cv_use_apple_ieee"
4659 if test "$no_cache" != 1; then
4660 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4661 fi
4662
4663 if test "$wxUSE_APPLE_IEEE" = yes; then
4664 echo "$as_me:$LINENO: result: yes" >&5
4665echo "${ECHO_T}yes" >&6
4666 else
4667 echo "$as_me:$LINENO: result: no" >&5
4668echo "${ECHO_T}no" >&6
4669 fi
4670
4671
4672 enablestring=
4673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4674echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4675 no_cache=0
4676 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4677if test "${enable_catch_segvs+set}" = set; then
4678 enableval="$enable_catch_segvs"
4679
4680 if test "$enableval" = yes; then
4681 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4682 else
4683 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4684 fi
4685
4686else
4687
4688 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4689 if test "x$LINE" != x ; then
4690 eval "DEFAULT_$LINE"
4691 else
4692 no_cache=1
4693 fi
4694
4695 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4696
4697fi;
4698
4699 eval "$ac_cv_use_catch_segvs"
4700 if test "$no_cache" != 1; then
4701 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4702 fi
4703
4704 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4705 echo "$as_me:$LINENO: result: yes" >&5
4706echo "${ECHO_T}yes" >&6
4707 else
4708 echo "$as_me:$LINENO: result: no" >&5
4709echo "${ECHO_T}no" >&6
4710 fi
4711
4712
eaff0f0d
VZ
4713 enablestring=
4714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4715echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4716 no_cache=0
4717 # Check whether --enable-backtrace or --disable-backtrace was given.
4718if test "${enable_backtrace+set}" = set; then
4719 enableval="$enable_backtrace"
4720
4721 if test "$enableval" = yes; then
4722 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4723 else
4724 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4725 fi
4726
4727else
4728
4729 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4730 if test "x$LINE" != x ; then
4731 eval "DEFAULT_$LINE"
4732 else
4733 no_cache=1
4734 fi
4735
4736 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4737
4738fi;
4739
4740 eval "$ac_cv_use_backtrace"
4741 if test "$no_cache" != 1; then
4742 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4743 fi
4744
4745 if test "$wxUSE_STACKWALKER" = yes; then
4746 echo "$as_me:$LINENO: result: yes" >&5
4747echo "${ECHO_T}yes" >&6
4748 else
4749 echo "$as_me:$LINENO: result: no" >&5
4750echo "${ECHO_T}no" >&6
4751 fi
4752
4753
a848cd7e
SC
4754 enablestring=
4755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4756echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4757 no_cache=0
4758 # Check whether --enable-cmdline or --disable-cmdline was given.
4759if test "${enable_cmdline+set}" = set; then
4760 enableval="$enable_cmdline"
4761
4762 if test "$enableval" = yes; then
4763 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4764 else
4765 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4766 fi
4767
4768else
4769
4770 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4771 if test "x$LINE" != x ; then
4772 eval "DEFAULT_$LINE"
4773 else
4774 no_cache=1
4775 fi
4776
4777 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4778
4779fi;
4780
4781 eval "$ac_cv_use_cmdline"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4787 echo "$as_me:$LINENO: result: yes" >&5
4788echo "${ECHO_T}yes" >&6
4789 else
4790 echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6
4792 fi
4793
4794
4795 enablestring=
4796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4797echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4798 no_cache=0
4799 # Check whether --enable-datetime or --disable-datetime was given.
4800if test "${enable_datetime+set}" = set; then
4801 enableval="$enable_datetime"
4802
4803 if test "$enableval" = yes; then
4804 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4805 else
4806 ac_cv_use_datetime='wxUSE_DATETIME=no'
4807 fi
4808
4809else
4810
4811 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4812 if test "x$LINE" != x ; then
4813 eval "DEFAULT_$LINE"
4814 else
4815 no_cache=1
4816 fi
4817
4818 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4819
4820fi;
4821
4822 eval "$ac_cv_use_datetime"
4823 if test "$no_cache" != 1; then
4824 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4825 fi
4826
4827 if test "$wxUSE_DATETIME" = yes; then
4828 echo "$as_me:$LINENO: result: yes" >&5
4829echo "${ECHO_T}yes" >&6
4830 else
4831 echo "$as_me:$LINENO: result: no" >&5
4832echo "${ECHO_T}no" >&6
4833 fi
4834
4835
4836 enablestring=
4837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4838echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4839 no_cache=0
4840 # Check whether --enable-dialupman or --disable-dialupman was given.
4841if test "${enable_dialupman+set}" = set; then
4842 enableval="$enable_dialupman"
4843
4844 if test "$enableval" = yes; then
4845 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4846 else
4847 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4848 fi
4849
4850else
4851
4852 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4853 if test "x$LINE" != x ; then
4854 eval "DEFAULT_$LINE"
4855 else
4856 no_cache=1
4857 fi
4858
4859 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4860
4861fi;
4862
4863 eval "$ac_cv_use_dialupman"
4864 if test "$no_cache" != 1; then
4865 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4866 fi
4867
4868 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4869 echo "$as_me:$LINENO: result: yes" >&5
4870echo "${ECHO_T}yes" >&6
4871 else
4872 echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6
4874 fi
4875
4876
4877 enablestring=
4878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4879echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4880 no_cache=0
4881 # Check whether --enable-dynlib or --disable-dynlib was given.
4882if test "${enable_dynlib+set}" = set; then
4883 enableval="$enable_dynlib"
4884
4885 if test "$enableval" = yes; then
4886 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4887 else
4888 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4889 fi
4890
4891else
4892
4893 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4894 if test "x$LINE" != x ; then
4895 eval "DEFAULT_$LINE"
4896 else
4897 no_cache=1
4898 fi
4899
4900 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4901
4902fi;
4903
4904 eval "$ac_cv_use_dynlib"
4905 if test "$no_cache" != 1; then
4906 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4907 fi
4908
4909 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4910 echo "$as_me:$LINENO: result: yes" >&5
4911echo "${ECHO_T}yes" >&6
4912 else
4913 echo "$as_me:$LINENO: result: no" >&5
4914echo "${ECHO_T}no" >&6
4915 fi
4916
4917
4918 enablestring=
4919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4920echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4921 no_cache=0
4922 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4923if test "${enable_dynamicloader+set}" = set; then
4924 enableval="$enable_dynamicloader"
4925
4926 if test "$enableval" = yes; then
4927 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4928 else
4929 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4930 fi
4931
4932else
4933
4934 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4935 if test "x$LINE" != x ; then
4936 eval "DEFAULT_$LINE"
4937 else
4938 no_cache=1
4939 fi
4940
4941 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4942
4943fi;
4944
4945 eval "$ac_cv_use_dynamicloader"
4946 if test "$no_cache" != 1; then
4947 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4948 fi
4949
4950 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4951 echo "$as_me:$LINENO: result: yes" >&5
4952echo "${ECHO_T}yes" >&6
4953 else
4954 echo "$as_me:$LINENO: result: no" >&5
4955echo "${ECHO_T}no" >&6
4956 fi
4957
4958
4959 enablestring=
4960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4961echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4962 no_cache=0
4963 # Check whether --enable-exceptions or --disable-exceptions was given.
4964if test "${enable_exceptions+set}" = set; then
4965 enableval="$enable_exceptions"
4966
4967 if test "$enableval" = yes; then
4968 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4969 else
4970 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4971 fi
4972
4973else
4974
4975 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
4982 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4983
4984fi;
4985
4986 eval "$ac_cv_use_exceptions"
4987 if test "$no_cache" != 1; then
4988 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4989 fi
4990
4991 if test "$wxUSE_EXCEPTIONS" = yes; then
4992 echo "$as_me:$LINENO: result: yes" >&5
4993echo "${ECHO_T}yes" >&6
4994 else
4995 echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6
4997 fi
4998
4999
5000 enablestring=
5001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5002echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5003 no_cache=0
5004 # Check whether --enable-ffile or --disable-ffile was given.
5005if test "${enable_ffile+set}" = set; then
5006 enableval="$enable_ffile"
5007
5008 if test "$enableval" = yes; then
5009 ac_cv_use_ffile='wxUSE_FFILE=yes'
5010 else
5011 ac_cv_use_ffile='wxUSE_FFILE=no'
5012 fi
5013
5014else
5015
5016 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5017 if test "x$LINE" != x ; then
5018 eval "DEFAULT_$LINE"
5019 else
5020 no_cache=1
5021 fi
5022
5023 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5024
5025fi;
5026
5027 eval "$ac_cv_use_ffile"
5028 if test "$no_cache" != 1; then
5029 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5030 fi
5031
5032 if test "$wxUSE_FFILE" = yes; then
5033 echo "$as_me:$LINENO: result: yes" >&5
5034echo "${ECHO_T}yes" >&6
5035 else
5036 echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6
5038 fi
5039
5040
5041 enablestring=
5042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5043echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5044 no_cache=0
5045 # Check whether --enable-file or --disable-file was given.
5046if test "${enable_file+set}" = set; then
5047 enableval="$enable_file"
5048
5049 if test "$enableval" = yes; then
5050 ac_cv_use_file='wxUSE_FILE=yes'
5051 else
5052 ac_cv_use_file='wxUSE_FILE=no'
5053 fi
5054
5055else
5056
5057 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5065
5066fi;
5067
5068 eval "$ac_cv_use_file"
5069 if test "$no_cache" != 1; then
5070 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5071 fi
5072
5073 if test "$wxUSE_FILE" = yes; then
5074 echo "$as_me:$LINENO: result: yes" >&5
5075echo "${ECHO_T}yes" >&6
5076 else
5077 echo "$as_me:$LINENO: result: no" >&5
5078echo "${ECHO_T}no" >&6
5079 fi
5080
5081
5082 enablestring=
5083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5084echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5085 no_cache=0
5086 # Check whether --enable-filesystem or --disable-filesystem was given.
5087if test "${enable_filesystem+set}" = set; then
5088 enableval="$enable_filesystem"
5089
5090 if test "$enableval" = yes; then
5091 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5092 else
5093 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5094 fi
5095
5096else
5097
5098 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5099 if test "x$LINE" != x ; then
5100 eval "DEFAULT_$LINE"
5101 else
5102 no_cache=1
5103 fi
5104
5105 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5106
5107fi;
5108
5109 eval "$ac_cv_use_filesystem"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_FILESYSTEM" = yes; then
5115 echo "$as_me:$LINENO: result: yes" >&5
5116echo "${ECHO_T}yes" >&6
5117 else
5118 echo "$as_me:$LINENO: result: no" >&5
5119echo "${ECHO_T}no" >&6
5120 fi
5121
5122
5123 enablestring=
5124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5125echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5126 no_cache=0
5127 # Check whether --enable-fontmap or --disable-fontmap was given.
5128if test "${enable_fontmap+set}" = set; then
5129 enableval="$enable_fontmap"
5130
5131 if test "$enableval" = yes; then
5132 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5133 else
5134 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5135 fi
5136
5137else
5138
5139 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5140 if test "x$LINE" != x ; then
5141 eval "DEFAULT_$LINE"
5142 else
5143 no_cache=1
5144 fi
5145
5146 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5147
5148fi;
5149
5150 eval "$ac_cv_use_fontmap"
5151 if test "$no_cache" != 1; then
5152 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5153 fi
5154
5155 if test "$wxUSE_FONTMAP" = yes; then
5156 echo "$as_me:$LINENO: result: yes" >&5
5157echo "${ECHO_T}yes" >&6
5158 else
5159 echo "$as_me:$LINENO: result: no" >&5
5160echo "${ECHO_T}no" >&6
5161 fi
5162
5163
5164 enablestring=
5165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5166echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5167 no_cache=0
5168 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5169if test "${enable_fs_inet+set}" = set; then
5170 enableval="$enable_fs_inet"
5171
5172 if test "$enableval" = yes; then
5173 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5174 else
5175 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5176 fi
5177
5178else
5179
5180 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
5187 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5188
5189fi;
5190
5191 eval "$ac_cv_use_fs_inet"
5192 if test "$no_cache" != 1; then
5193 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5194 fi
5195
5196 if test "$wxUSE_FS_INET" = yes; then
5197 echo "$as_me:$LINENO: result: yes" >&5
5198echo "${ECHO_T}yes" >&6
5199 else
5200 echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
5202 fi
5203
5204
5205 enablestring=
5206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5207echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5208 no_cache=0
5209 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5210if test "${enable_fs_zip+set}" = set; then
5211 enableval="$enable_fs_zip"
5212
5213 if test "$enableval" = yes; then
5214 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5215 else
5216 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5217 fi
5218
5219else
5220
5221 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5222 if test "x$LINE" != x ; then
5223 eval "DEFAULT_$LINE"
5224 else
5225 no_cache=1
5226 fi
5227
5228 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5229
5230fi;
5231
5232 eval "$ac_cv_use_fs_zip"
5233 if test "$no_cache" != 1; then
5234 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5235 fi
5236
5237 if test "$wxUSE_FS_ZIP" = yes; then
5238 echo "$as_me:$LINENO: result: yes" >&5
5239echo "${ECHO_T}yes" >&6
5240 else
5241 echo "$as_me:$LINENO: result: no" >&5
5242echo "${ECHO_T}no" >&6
5243 fi
5244
5245
5246 enablestring=
5247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5248echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5249 no_cache=0
5250 # Check whether --enable-geometry or --disable-geometry was given.
5251if test "${enable_geometry+set}" = set; then
5252 enableval="$enable_geometry"
5253
5254 if test "$enableval" = yes; then
5255 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5256 else
5257 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5258 fi
5259
5260else
5261
5262 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
5269 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5270
5271fi;
5272
5273 eval "$ac_cv_use_geometry"
5274 if test "$no_cache" != 1; then
5275 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5276 fi
5277
5278 if test "$wxUSE_GEOMETRY" = yes; then
5279 echo "$as_me:$LINENO: result: yes" >&5
5280echo "${ECHO_T}yes" >&6
5281 else
5282 echo "$as_me:$LINENO: result: no" >&5
5283echo "${ECHO_T}no" >&6
5284 fi
5285
5286
5287 enablestring=
5288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5289echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5290 no_cache=0
5291 # Check whether --enable-log or --disable-log was given.
5292if test "${enable_log+set}" = set; then
5293 enableval="$enable_log"
5294
5295 if test "$enableval" = yes; then
5296 ac_cv_use_log='wxUSE_LOG=yes'
5297 else
5298 ac_cv_use_log='wxUSE_LOG=no'
5299 fi
5300
5301else
5302
5303 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5304 if test "x$LINE" != x ; then
5305 eval "DEFAULT_$LINE"
5306 else
5307 no_cache=1
5308 fi
5309
5310 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5311
5312fi;
5313
5314 eval "$ac_cv_use_log"
5315 if test "$no_cache" != 1; then
5316 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5317 fi
5318
5319 if test "$wxUSE_LOG" = yes; then
5320 echo "$as_me:$LINENO: result: yes" >&5
5321echo "${ECHO_T}yes" >&6
5322 else
5323 echo "$as_me:$LINENO: result: no" >&5
5324echo "${ECHO_T}no" >&6
5325 fi
5326
5327
5328 enablestring=
5329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5330echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5331 no_cache=0
5332 # Check whether --enable-longlong or --disable-longlong was given.
5333if test "${enable_longlong+set}" = set; then
5334 enableval="$enable_longlong"
5335
5336 if test "$enableval" = yes; then
5337 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5338 else
5339 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5340 fi
5341
5342else
5343
5344 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5345 if test "x$LINE" != x ; then
5346 eval "DEFAULT_$LINE"
5347 else
5348 no_cache=1
5349 fi
5350
5351 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5352
5353fi;
5354
5355 eval "$ac_cv_use_longlong"
5356 if test "$no_cache" != 1; then
5357 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5358 fi
5359
5360 if test "$wxUSE_LONGLONG" = yes; then
5361 echo "$as_me:$LINENO: result: yes" >&5
5362echo "${ECHO_T}yes" >&6
5363 else
5364 echo "$as_me:$LINENO: result: no" >&5
5365echo "${ECHO_T}no" >&6
5366 fi
5367
5368
5369 enablestring=
5370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5371echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5372 no_cache=0
5373 # Check whether --enable-mimetype or --disable-mimetype was given.
5374if test "${enable_mimetype+set}" = set; then
5375 enableval="$enable_mimetype"
5376
5377 if test "$enableval" = yes; then
5378 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5379 else
5380 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5381 fi
5382
5383else
5384
5385 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5393
5394fi;
5395
5396 eval "$ac_cv_use_mimetype"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_MIMETYPE" = yes; then
5402 echo "$as_me:$LINENO: result: yes" >&5
5403echo "${ECHO_T}yes" >&6
5404 else
5405 echo "$as_me:$LINENO: result: no" >&5
5406echo "${ECHO_T}no" >&6
5407 fi
5408
5409
5410 enablestring=
5411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5412echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5413 no_cache=0
5414 # Check whether --enable-mslu or --disable-mslu was given.
5415if test "${enable_mslu+set}" = set; then
5416 enableval="$enable_mslu"
5417
5418 if test "$enableval" = yes; then
5419 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5420 else
5421 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5422 fi
5423
5424else
5425
5426 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5434
5435fi;
5436
5437 eval "$ac_cv_use_mslu"
5438 if test "$no_cache" != 1; then
5439 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5440 fi
5441
5442 if test "$wxUSE_UNICODE_MSLU" = yes; then
5443 echo "$as_me:$LINENO: result: yes" >&5
5444echo "${ECHO_T}yes" >&6
5445 else
5446 echo "$as_me:$LINENO: result: no" >&5
5447echo "${ECHO_T}no" >&6
5448 fi
5449
5450
5451 enablestring=
5452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5453echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5454 no_cache=0
5455 # Check whether --enable-snglinst or --disable-snglinst was given.
5456if test "${enable_snglinst+set}" = set; then
5457 enableval="$enable_snglinst"
5458
5459 if test "$enableval" = yes; then
5460 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5461 else
5462 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5463 fi
5464
5465else
5466
5467 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5468 if test "x$LINE" != x ; then
5469 eval "DEFAULT_$LINE"
5470 else
5471 no_cache=1
5472 fi
5473
5474 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5475
5476fi;
5477
5478 eval "$ac_cv_use_snglinst"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5484 echo "$as_me:$LINENO: result: yes" >&5
5485echo "${ECHO_T}yes" >&6
5486 else
5487 echo "$as_me:$LINENO: result: no" >&5
5488echo "${ECHO_T}no" >&6
5489 fi
5490
5491
5492 enablestring=
5493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5494echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5495 no_cache=0
5496 # Check whether --enable-streams or --disable-streams was given.
5497if test "${enable_streams+set}" = set; then
5498 enableval="$enable_streams"
5499
5500 if test "$enableval" = yes; then
5501 ac_cv_use_streams='wxUSE_STREAMS=yes'
5502 else
5503 ac_cv_use_streams='wxUSE_STREAMS=no'
5504 fi
5505
5506else
5507
5508 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5516
5517fi;
5518
5519 eval "$ac_cv_use_streams"
5520 if test "$no_cache" != 1; then
5521 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5522 fi
5523
5524 if test "$wxUSE_STREAMS" = yes; then
5525 echo "$as_me:$LINENO: result: yes" >&5
5526echo "${ECHO_T}yes" >&6
5527 else
5528 echo "$as_me:$LINENO: result: no" >&5
5529echo "${ECHO_T}no" >&6
5530 fi
5531
5532
5533 enablestring=
5534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5535echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5536 no_cache=0
5537 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5538if test "${enable_std_iostreams+set}" = set; then
5539 enableval="$enable_std_iostreams"
5540
5541 if test "$enableval" = yes; then
5542 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5543 else
5544 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5545 fi
5546
5547else
5548
5549 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5550 if test "x$LINE" != x ; then
5551 eval "DEFAULT_$LINE"
5552 else
5553 no_cache=1
5554 fi
5555
5556 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5557
5558fi;
5559
5560 eval "$ac_cv_use_std_iostreams"
5561 if test "$no_cache" != 1; then
5562 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5563 fi
5564
5565 if test "$wxUSE_STD_IOSTREAM" = yes; then
5566 echo "$as_me:$LINENO: result: yes" >&5
5567echo "${ECHO_T}yes" >&6
5568 else
5569 echo "$as_me:$LINENO: result: no" >&5
5570echo "${ECHO_T}no" >&6
5571 fi
5572
5573
5574 enablestring=
5575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5576echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5577 no_cache=0
5578 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5579if test "${enable_stopwatch+set}" = set; then
5580 enableval="$enable_stopwatch"
5581
5582 if test "$enableval" = yes; then
5583 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5584 else
5585 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5586 fi
5587
5588else
5589
5590 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5591 if test "x$LINE" != x ; then
5592 eval "DEFAULT_$LINE"
5593 else
5594 no_cache=1
5595 fi
5596
5597 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5598
5599fi;
5600
5601 eval "$ac_cv_use_stopwatch"
5602 if test "$no_cache" != 1; then
5603 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5604 fi
5605
5606 if test "$wxUSE_STOPWATCH" = yes; then
5607 echo "$as_me:$LINENO: result: yes" >&5
5608echo "${ECHO_T}yes" >&6
5609 else
5610 echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
5612 fi
5613
5614
5615 enablestring=
5616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5617echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5618 no_cache=0
5619 # Check whether --enable-system_options or --disable-system_options was given.
5620if test "${enable_system_options+set}" = set; then
5621 enableval="$enable_system_options"
5622
5623 if test "$enableval" = yes; then
5624 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5625 else
5626 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5627 fi
5628
5629else
5630
5631 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5632 if test "x$LINE" != x ; then
5633 eval "DEFAULT_$LINE"
5634 else
5635 no_cache=1
5636 fi
5637
5638 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5639
5640fi;
5641
5642 eval "$ac_cv_use_system_options"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5648 echo "$as_me:$LINENO: result: yes" >&5
5649echo "${ECHO_T}yes" >&6
5650 else
5651 echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6
5653 fi
5654
5655
5656 enablestring=
5657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5658echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5659 no_cache=0
5660 # Check whether --enable-textbuf or --disable-textbuf was given.
5661if test "${enable_textbuf+set}" = set; then
5662 enableval="$enable_textbuf"
5663
5664 if test "$enableval" = yes; then
5665 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5666 else
5667 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5668 fi
5669
5670else
5671
5672 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5673 if test "x$LINE" != x ; then
5674 eval "DEFAULT_$LINE"
5675 else
5676 no_cache=1
5677 fi
5678
5679 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5680
5681fi;
5682
5683 eval "$ac_cv_use_textbuf"
5684 if test "$no_cache" != 1; then
5685 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5686 fi
5687
5688 if test "$wxUSE_TEXTBUFFER" = yes; then
5689 echo "$as_me:$LINENO: result: yes" >&5
5690echo "${ECHO_T}yes" >&6
5691 else
5692 echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6
5694 fi
5695
5696
5697 enablestring=
5698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5699echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5700 no_cache=0
5701 # Check whether --enable-textfile or --disable-textfile was given.
5702if test "${enable_textfile+set}" = set; then
5703 enableval="$enable_textfile"
5704
5705 if test "$enableval" = yes; then
5706 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5707 else
5708 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5709 fi
5710
5711else
5712
5713 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5714 if test "x$LINE" != x ; then
5715 eval "DEFAULT_$LINE"
5716 else
5717 no_cache=1
5718 fi
5719
5720 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5721
5722fi;
5723
5724 eval "$ac_cv_use_textfile"
5725 if test "$no_cache" != 1; then
5726 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5727 fi
5728
5729 if test "$wxUSE_TEXTFILE" = yes; then
5730 echo "$as_me:$LINENO: result: yes" >&5
5731echo "${ECHO_T}yes" >&6
5732 else
5733 echo "$as_me:$LINENO: result: no" >&5
5734echo "${ECHO_T}no" >&6
5735 fi
5736
5737
5738 enablestring=
5739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5740echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5741 no_cache=0
5742 # Check whether --enable-timer or --disable-timer was given.
5743if test "${enable_timer+set}" = set; then
5744 enableval="$enable_timer"
5745
5746 if test "$enableval" = yes; then
5747 ac_cv_use_timer='wxUSE_TIMER=yes'
5748 else
5749 ac_cv_use_timer='wxUSE_TIMER=no'
5750 fi
5751
5752else
5753
5754 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5755 if test "x$LINE" != x ; then
5756 eval "DEFAULT_$LINE"
5757 else
5758 no_cache=1
5759 fi
5760
5761 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5762
5763fi;
5764
5765 eval "$ac_cv_use_timer"
5766 if test "$no_cache" != 1; then
5767 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5768 fi
5769
5770 if test "$wxUSE_TIMER" = yes; then
5771 echo "$as_me:$LINENO: result: yes" >&5
5772echo "${ECHO_T}yes" >&6
5773 else
5774 echo "$as_me:$LINENO: result: no" >&5
5775echo "${ECHO_T}no" >&6
5776 fi
5777
5778
5779 enablestring=
5780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5781echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5782 no_cache=0
5783 # Check whether --enable-unicode or --disable-unicode was given.
5784if test "${enable_unicode+set}" = set; then
5785 enableval="$enable_unicode"
5786
5787 if test "$enableval" = yes; then
5788 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5789 else
5790 ac_cv_use_unicode='wxUSE_UNICODE=no'
5791 fi
5792
5793else
5794
5795 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5796 if test "x$LINE" != x ; then
5797 eval "DEFAULT_$LINE"
5798 else
5799 no_cache=1
5800 fi
5801
5802 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5803
5804fi;
5805
5806 eval "$ac_cv_use_unicode"
5807 if test "$no_cache" != 1; then
5808 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5809 fi
5810
5811 if test "$wxUSE_UNICODE" = yes; then
5812 echo "$as_me:$LINENO: result: yes" >&5
5813echo "${ECHO_T}yes" >&6
5814 else
5815 echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6
5817 fi
5818
5819
5820 enablestring=
5821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5822echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5823 no_cache=0
5824 # Check whether --enable-sound or --disable-sound was given.
5825if test "${enable_sound+set}" = set; then
5826 enableval="$enable_sound"
5827
5828 if test "$enableval" = yes; then
5829 ac_cv_use_sound='wxUSE_SOUND=yes'
5830 else
5831 ac_cv_use_sound='wxUSE_SOUND=no'
5832 fi
5833
5834else
5835
5836 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5837 if test "x$LINE" != x ; then
5838 eval "DEFAULT_$LINE"
5839 else
5840 no_cache=1
5841 fi
5842
5843 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5844
5845fi;
5846
5847 eval "$ac_cv_use_sound"
5848 if test "$no_cache" != 1; then
5849 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5850 fi
5851
5852 if test "$wxUSE_SOUND" = yes; then
5853 echo "$as_me:$LINENO: result: yes" >&5
5854echo "${ECHO_T}yes" >&6
5855 else
5856 echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6
5858 fi
5859
5860
3b57de8b
RL
5861 enablestring=
5862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5863echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5864 no_cache=0
5865 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5866if test "${enable_mediactrl+set}" = set; then
5867 enableval="$enable_mediactrl"
5868
5869 if test "$enableval" = yes; then
5870 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5871 else
5872 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5873 fi
5874
5875else
5876
5877 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5878 if test "x$LINE" != x ; then
5879 eval "DEFAULT_$LINE"
5880 else
5881 no_cache=1
5882 fi
5883
5884 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5885
5886fi;
5887
5888 eval "$ac_cv_use_mediactrl"
5889 if test "$no_cache" != 1; then
5890 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5891 fi
5892
5893 if test "$wxUSE_MEDIACTRL" = yes; then
5894 echo "$as_me:$LINENO: result: yes" >&5
5895echo "${ECHO_T}yes" >&6
5896 else
5897 echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6
5899 fi
5900
5901
a848cd7e
SC
5902 enablestring=
5903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5904echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5905 no_cache=0
5906 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5907if test "${enable_wxprintfv+set}" = set; then
5908 enableval="$enable_wxprintfv"
5909
5910 if test "$enableval" = yes; then
5911 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5912 else
5913 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5914 fi
5915
5916else
5917
5918 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5919 if test "x$LINE" != x ; then
5920 eval "DEFAULT_$LINE"
5921 else
5922 no_cache=1
5923 fi
5924
5925 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5926
5927fi;
5928
5929 eval "$ac_cv_use_wxprintfv"
5930 if test "$no_cache" != 1; then
5931 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5932 fi
5933
5934 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5935 echo "$as_me:$LINENO: result: yes" >&5
5936echo "${ECHO_T}yes" >&6
5937 else
5938 echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6
5940 fi
5941
5942
5943 enablestring=
5944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5945echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5946 no_cache=0
5947 # Check whether --enable-zipstream or --disable-zipstream was given.
5948if test "${enable_zipstream+set}" = set; then
5949 enableval="$enable_zipstream"
5950
5951 if test "$enableval" = yes; then
5952 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5953 else
5954 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5955 fi
5956
5957else
5958
5959 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5967
5968fi;
5969
5970 eval "$ac_cv_use_zipstream"
5971 if test "$no_cache" != 1; then
5972 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5973 fi
5974
5975 if test "$wxUSE_ZIPSTREAM" = yes; then
5976 echo "$as_me:$LINENO: result: yes" >&5
5977echo "${ECHO_T}yes" >&6
5978 else
5979 echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6
5981 fi
5982
5983
a848cd7e
SC
5984
5985 enablestring=
5986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5987echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5988 no_cache=0
5989 # Check whether --enable-url or --disable-url was given.
5990if test "${enable_url+set}" = set; then
5991 enableval="$enable_url"
5992
5993 if test "$enableval" = yes; then
5994 ac_cv_use_url='wxUSE_URL=yes'
5995 else
5996 ac_cv_use_url='wxUSE_URL=no'
5997 fi
5998
5999else
6000
6001 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6002 if test "x$LINE" != x ; then
6003 eval "DEFAULT_$LINE"
6004 else
6005 no_cache=1
6006 fi
6007
6008 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6009
6010fi;
6011
6012 eval "$ac_cv_use_url"
6013 if test "$no_cache" != 1; then
6014 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6015 fi
6016
6017 if test "$wxUSE_URL" = yes; then
6018 echo "$as_me:$LINENO: result: yes" >&5
6019echo "${ECHO_T}yes" >&6
6020 else
6021 echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6
6023 fi
6024
6025
6026 enablestring=
6027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6028echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6029 no_cache=0
6030 # Check whether --enable-protocol or --disable-protocol was given.
6031if test "${enable_protocol+set}" = set; then
6032 enableval="$enable_protocol"
6033
6034 if test "$enableval" = yes; then
6035 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6036 else
6037 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6038 fi
6039
6040else
6041
6042 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6043 if test "x$LINE" != x ; then
6044 eval "DEFAULT_$LINE"
6045 else
6046 no_cache=1
6047 fi
6048
6049 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6050
6051fi;
6052
6053 eval "$ac_cv_use_protocol"
6054 if test "$no_cache" != 1; then
6055 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6056 fi
6057
6058 if test "$wxUSE_PROTOCOL" = yes; then
6059 echo "$as_me:$LINENO: result: yes" >&5
6060echo "${ECHO_T}yes" >&6
6061 else
6062 echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6
6064 fi
6065
6066
6067 enablestring=
6068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6069echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6070 no_cache=0
6071 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6072if test "${enable_protocol_http+set}" = set; then
6073 enableval="$enable_protocol_http"
6074
6075 if test "$enableval" = yes; then
6076 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6077 else
6078 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6079 fi
6080
6081else
6082
6083 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6084 if test "x$LINE" != x ; then
6085 eval "DEFAULT_$LINE"
6086 else
6087 no_cache=1
6088 fi
6089
6090 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6091
6092fi;
6093
6094 eval "$ac_cv_use_protocol_http"
6095 if test "$no_cache" != 1; then
6096 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6097 fi
6098
6099 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6100 echo "$as_me:$LINENO: result: yes" >&5
6101echo "${ECHO_T}yes" >&6
6102 else
6103 echo "$as_me:$LINENO: result: no" >&5
6104echo "${ECHO_T}no" >&6
6105 fi
6106
6107
6108 enablestring=
6109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6110echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6111 no_cache=0
6112 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6113if test "${enable_protocol_ftp+set}" = set; then
6114 enableval="$enable_protocol_ftp"
6115
6116 if test "$enableval" = yes; then
6117 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6118 else
6119 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6120 fi
6121
6122else
6123
6124 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6125 if test "x$LINE" != x ; then
6126 eval "DEFAULT_$LINE"
6127 else
6128 no_cache=1
6129 fi
6130
6131 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6132
6133fi;
6134
6135 eval "$ac_cv_use_protocol_ftp"
6136 if test "$no_cache" != 1; then
6137 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6138 fi
6139
6140 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6141 echo "$as_me:$LINENO: result: yes" >&5
6142echo "${ECHO_T}yes" >&6
6143 else
6144 echo "$as_me:$LINENO: result: no" >&5
6145echo "${ECHO_T}no" >&6
6146 fi
6147
6148
6149 enablestring=
6150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6151echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6152 no_cache=0
6153 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6154if test "${enable_protocol_file+set}" = set; then
6155 enableval="$enable_protocol_file"
6156
6157 if test "$enableval" = yes; then
6158 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6159 else
6160 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6161 fi
6162
6163else
6164
6165 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6166 if test "x$LINE" != x ; then
6167 eval "DEFAULT_$LINE"
6168 else
6169 no_cache=1
6170 fi
6171
6172 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6173
6174fi;
6175
6176 eval "$ac_cv_use_protocol_file"
6177 if test "$no_cache" != 1; then
6178 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6179 fi
6180
6181 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6182 echo "$as_me:$LINENO: result: yes" >&5
6183echo "${ECHO_T}yes" >&6
6184 else
6185 echo "$as_me:$LINENO: result: no" >&5
6186echo "${ECHO_T}no" >&6
6187 fi
6188
6189
6190
6191
6192
6193 enablestring=
6194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6195echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6196 no_cache=0
6197 # Check whether --enable-threads or --disable-threads was given.
6198if test "${enable_threads+set}" = set; then
6199 enableval="$enable_threads"
6200
6201 if test "$enableval" = yes; then
6202 ac_cv_use_threads='wxUSE_THREADS=yes'
6203 else
6204 ac_cv_use_threads='wxUSE_THREADS=no'
6205 fi
6206
6207else
6208
6209 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6210 if test "x$LINE" != x ; then
6211 eval "DEFAULT_$LINE"
6212 else
6213 no_cache=1
6214 fi
6215
6216 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6217
6218fi;
6219
6220 eval "$ac_cv_use_threads"
6221 if test "$no_cache" != 1; then
6222 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6223 fi
6224
6225 if test "$wxUSE_THREADS" = yes; then
6226 echo "$as_me:$LINENO: result: yes" >&5
6227echo "${ECHO_T}yes" >&6
6228 else
6229 echo "$as_me:$LINENO: result: no" >&5
6230echo "${ECHO_T}no" >&6
6231 fi
6232
6233
6234if test "$wxUSE_GUI" = "yes"; then
6235
6236
6237
6238 enablestring=
6239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6240echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6241 no_cache=0
6242 # Check whether --enable-docview or --disable-docview was given.
6243if test "${enable_docview+set}" = set; then
6244 enableval="$enable_docview"
6245
6246 if test "$enableval" = yes; then
6247 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6248 else
6249 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6250 fi
6251
6252else
6253
6254 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6255 if test "x$LINE" != x ; then
6256 eval "DEFAULT_$LINE"
6257 else
6258 no_cache=1
6259 fi
6260
6261 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6262
6263fi;
6264
6265 eval "$ac_cv_use_docview"
6266 if test "$no_cache" != 1; then
6267 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6268 fi
6269
6270 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6271 echo "$as_me:$LINENO: result: yes" >&5
6272echo "${ECHO_T}yes" >&6
6273 else
6274 echo "$as_me:$LINENO: result: no" >&5
6275echo "${ECHO_T}no" >&6
6276 fi
6277
6278
6279 enablestring=
6280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6281echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6282 no_cache=0
6283 # Check whether --enable-help or --disable-help was given.
6284if test "${enable_help+set}" = set; then
6285 enableval="$enable_help"
6286
6287 if test "$enableval" = yes; then
6288 ac_cv_use_help='wxUSE_HELP=yes'
6289 else
6290 ac_cv_use_help='wxUSE_HELP=no'
6291 fi
6292
6293else
6294
6295 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6296 if test "x$LINE" != x ; then
6297 eval "DEFAULT_$LINE"
6298 else
6299 no_cache=1
6300 fi
6301
6302 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6303
6304fi;
6305
6306 eval "$ac_cv_use_help"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_HELP" = yes; then
6312 echo "$as_me:$LINENO: result: yes" >&5
6313echo "${ECHO_T}yes" >&6
6314 else
6315 echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6
6317 fi
6318
6319
6320 enablestring=
6321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6322echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6323 no_cache=0
6324 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6325if test "${enable_mshtmlhelp+set}" = set; then
6326 enableval="$enable_mshtmlhelp"
6327
6328 if test "$enableval" = yes; then
6329 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6330 else
6331 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6332 fi
6333
6334else
6335
6336 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6337 if test "x$LINE" != x ; then
6338 eval "DEFAULT_$LINE"
6339 else
6340 no_cache=1
6341 fi
6342
6343 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6344
6345fi;
6346
6347 eval "$ac_cv_use_mshtmlhelp"
6348 if test "$no_cache" != 1; then
6349 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6350 fi
6351
6352 if test "$wxUSE_MS_HTML_HELP" = yes; then
6353 echo "$as_me:$LINENO: result: yes" >&5
6354echo "${ECHO_T}yes" >&6
6355 else
6356 echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6
6358 fi
6359
6360
6361 enablestring=
6362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6363echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6364 no_cache=0
6365 # Check whether --enable-html or --disable-html was given.
6366if test "${enable_html+set}" = set; then
6367 enableval="$enable_html"
6368
6369 if test "$enableval" = yes; then
6370 ac_cv_use_html='wxUSE_HTML=yes'
6371 else
6372 ac_cv_use_html='wxUSE_HTML=no'
6373 fi
6374
6375else
6376
6377 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6378 if test "x$LINE" != x ; then
6379 eval "DEFAULT_$LINE"
6380 else
6381 no_cache=1
6382 fi
6383
6384 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6385
6386fi;
6387
6388 eval "$ac_cv_use_html"
6389 if test "$no_cache" != 1; then
6390 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6391 fi
6392
6393 if test "$wxUSE_HTML" = yes; then
6394 echo "$as_me:$LINENO: result: yes" >&5
6395echo "${ECHO_T}yes" >&6
6396 else
6397 echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6
6399 fi
6400
6401
6402 enablestring=
6403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6404echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6405 no_cache=0
6406 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6407if test "${enable_htmlhelp+set}" = set; then
6408 enableval="$enable_htmlhelp"
6409
6410 if test "$enableval" = yes; then
6411 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6412 else
6413 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6414 fi
6415
6416else
6417
6418 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6419 if test "x$LINE" != x ; then
6420 eval "DEFAULT_$LINE"
6421 else
6422 no_cache=1
6423 fi
6424
6425 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6426
6427fi;
6428
6429 eval "$ac_cv_use_htmlhelp"
6430 if test "$no_cache" != 1; then
6431 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6432 fi
6433
6434 if test "$wxUSE_WXHTML_HELP" = yes; then
6435 echo "$as_me:$LINENO: result: yes" >&5
6436echo "${ECHO_T}yes" >&6
6437 else
6438 echo "$as_me:$LINENO: result: no" >&5
6439echo "${ECHO_T}no" >&6
6440 fi
6441
6442
9a8f0513
VS
6443 enablestring=
6444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6445echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6446 no_cache=0
6447 # Check whether --enable-xrc or --disable-xrc was given.
6448if test "${enable_xrc+set}" = set; then
6449 enableval="$enable_xrc"
6450
6451 if test "$enableval" = yes; then
6452 ac_cv_use_xrc='wxUSE_XRC=yes'
6453 else
6454 ac_cv_use_xrc='wxUSE_XRC=no'
6455 fi
6456
6457else
6458
6459 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6460 if test "x$LINE" != x ; then
6461 eval "DEFAULT_$LINE"
6462 else
6463 no_cache=1
6464 fi
6465
6466 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6467
6468fi;
6469
6470 eval "$ac_cv_use_xrc"
6471 if test "$no_cache" != 1; then
6472 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6473 fi
6474
6475 if test "$wxUSE_XRC" = yes; then
6476 echo "$as_me:$LINENO: result: yes" >&5
6477echo "${ECHO_T}yes" >&6
6478 else
6479 echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6
6481 fi
6482
6483
a848cd7e
SC
6484 enablestring=
6485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6486echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6487 no_cache=0
6488 # Check whether --enable-constraints or --disable-constraints was given.
6489if test "${enable_constraints+set}" = set; then
6490 enableval="$enable_constraints"
6491
6492 if test "$enableval" = yes; then
6493 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6494 else
6495 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6496 fi
6497
6498else
6499
6500 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6501 if test "x$LINE" != x ; then
6502 eval "DEFAULT_$LINE"
6503 else
6504 no_cache=1
6505 fi
6506
6507 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6508
6509fi;
6510
6511 eval "$ac_cv_use_constraints"
6512 if test "$no_cache" != 1; then
6513 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6514 fi
6515
6516 if test "$wxUSE_CONSTRAINTS" = yes; then
6517 echo "$as_me:$LINENO: result: yes" >&5
6518echo "${ECHO_T}yes" >&6
6519 else
6520 echo "$as_me:$LINENO: result: no" >&5
6521echo "${ECHO_T}no" >&6
6522 fi
6523
6524
6525 enablestring=
6526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6527echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6528 no_cache=0
6529 # Check whether --enable-printarch or --disable-printarch was given.
6530if test "${enable_printarch+set}" = set; then
6531 enableval="$enable_printarch"
6532
6533 if test "$enableval" = yes; then
6534 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6535 else
6536 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6537 fi
6538
6539else
6540
6541 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6542 if test "x$LINE" != x ; then
6543 eval "DEFAULT_$LINE"
6544 else
6545 no_cache=1
6546 fi
6547
6548 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6549
6550fi;
6551
6552 eval "$ac_cv_use_printarch"
6553 if test "$no_cache" != 1; then
6554 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6555 fi
6556
6557 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6558 echo "$as_me:$LINENO: result: yes" >&5
6559echo "${ECHO_T}yes" >&6
6560 else
6561 echo "$as_me:$LINENO: result: no" >&5
6562echo "${ECHO_T}no" >&6
6563 fi
6564
6565
6566 enablestring=
6567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6568echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6569 no_cache=0
6570 # Check whether --enable-mdi or --disable-mdi was given.
6571if test "${enable_mdi+set}" = set; then
6572 enableval="$enable_mdi"
6573
6574 if test "$enableval" = yes; then
8a7b1113 6575 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6576 else
8a7b1113 6577 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6578 fi
6579
6580else
6581
8a7b1113 6582 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6583 if test "x$LINE" != x ; then
6584 eval "DEFAULT_$LINE"
6585 else
6586 no_cache=1
6587 fi
6588
8a7b1113 6589 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6590
6591fi;
6592
6593 eval "$ac_cv_use_mdi"
6594 if test "$no_cache" != 1; then
6595 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6596 fi
6597
8a7b1113
VZ
6598 if test "$wxUSE_MDI" = yes; then
6599 echo "$as_me:$LINENO: result: yes" >&5
6600echo "${ECHO_T}yes" >&6
6601 else
6602 echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6
6604 fi
6605
6606
6607 enablestring=
6608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6609echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6610 no_cache=0
6611 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6612if test "${enable_mdidoc+set}" = set; then
6613 enableval="$enable_mdidoc"
6614
6615 if test "$enableval" = yes; then
6616 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6617 else
6618 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6619 fi
6620
6621else
6622
6623 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6624 if test "x$LINE" != x ; then
6625 eval "DEFAULT_$LINE"
6626 else
6627 no_cache=1
6628 fi
6629
6630 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6631
6632fi;
6633
6634 eval "$ac_cv_use_mdidoc"
6635 if test "$no_cache" != 1; then
6636 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6637 fi
6638
a848cd7e
SC
6639 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6640 echo "$as_me:$LINENO: result: yes" >&5
6641echo "${ECHO_T}yes" >&6
6642 else
6643 echo "$as_me:$LINENO: result: no" >&5
6644echo "${ECHO_T}no" >&6
6645 fi
6646
6647
6648 enablestring=
6649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6650echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6651 no_cache=0
6652 # Check whether --enable-loggui or --disable-loggui was given.
6653if test "${enable_loggui+set}" = set; then
6654 enableval="$enable_loggui"
6655
6656 if test "$enableval" = yes; then
6657 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6658 else
6659 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6660 fi
6661
6662else
6663
6664 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6672
6673fi;
6674
6675 eval "$ac_cv_use_loggui"
6676 if test "$no_cache" != 1; then
6677 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6678 fi
6679
6680 if test "$wxUSE_LOGGUI" = yes; then
6681 echo "$as_me:$LINENO: result: yes" >&5
6682echo "${ECHO_T}yes" >&6
6683 else
6684 echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6
6686 fi
6687
6688
6689 enablestring=
6690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6691echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6692 no_cache=0
6693 # Check whether --enable-logwin or --disable-logwin was given.
6694if test "${enable_logwin+set}" = set; then
6695 enableval="$enable_logwin"
6696
6697 if test "$enableval" = yes; then
6698 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6699 else
6700 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6701 fi
6702
6703else
6704
6705 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6706 if test "x$LINE" != x ; then
6707 eval "DEFAULT_$LINE"
6708 else
6709 no_cache=1
6710 fi
6711
6712 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6713
6714fi;
6715
6716 eval "$ac_cv_use_logwin"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_LOGWINDOW" = yes; then
6722 echo "$as_me:$LINENO: result: yes" >&5
6723echo "${ECHO_T}yes" >&6
6724 else
6725 echo "$as_me:$LINENO: result: no" >&5
6726echo "${ECHO_T}no" >&6
6727 fi
6728
6729
6730 enablestring=
6731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6732echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6733 no_cache=0
6734 # Check whether --enable-logdialog or --disable-logdialog was given.
6735if test "${enable_logdialog+set}" = set; then
6736 enableval="$enable_logdialog"
6737
6738 if test "$enableval" = yes; then
6739 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6740 else
6741 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6742 fi
6743
6744else
6745
6746 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6747 if test "x$LINE" != x ; then
6748 eval "DEFAULT_$LINE"
6749 else
6750 no_cache=1
6751 fi
6752
6753 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6754
6755fi;
6756
6757 eval "$ac_cv_use_logdialog"
6758 if test "$no_cache" != 1; then
6759 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6760 fi
6761
6762 if test "$wxUSE_LOGDIALOG" = yes; then
6763 echo "$as_me:$LINENO: result: yes" >&5
6764echo "${ECHO_T}yes" >&6
6765 else
6766 echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6
6768 fi
6769
6770
646b6ec1
VS
6771 enablestring=
6772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6773echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6774 no_cache=0
6775 # Check whether --enable-webkit or --disable-webkit was given.
6776if test "${enable_webkit+set}" = set; then
6777 enableval="$enable_webkit"
6778
6779 if test "$enableval" = yes; then
6780 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6781 else
6782 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6783 fi
6784
6785else
6786
6787 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6788 if test "x$LINE" != x ; then
6789 eval "DEFAULT_$LINE"
6790 else
6791 no_cache=1
6792 fi
6793
6794 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6795
6796fi;
6797
6798 eval "$ac_cv_use_webkit"
6799 if test "$no_cache" != 1; then
6800 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6801 fi
6802
6803 if test "$wxUSE_WEBKIT" = yes; then
6804 echo "$as_me:$LINENO: result: yes" >&5
6805echo "${ECHO_T}yes" >&6
6806 else
6807 echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6
6809 fi
6810
6811
a848cd7e
SC
6812
6813 enablestring=
6814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6815echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6816 no_cache=0
6817 # Check whether --enable-postscript or --disable-postscript was given.
6818if test "${enable_postscript+set}" = set; then
6819 enableval="$enable_postscript"
6820
6821 if test "$enableval" = yes; then
6822 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6823 else
6824 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6825 fi
6826
6827else
6828
6829 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6830 if test "x$LINE" != x ; then
6831 eval "DEFAULT_$LINE"
6832 else
6833 no_cache=1
6834 fi
6835
6836 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6837
6838fi;
6839
6840 eval "$ac_cv_use_postscript"
6841 if test "$no_cache" != 1; then
6842 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6843 fi
6844
6845 if test "$wxUSE_POSTSCRIPT" = yes; then
6846 echo "$as_me:$LINENO: result: yes" >&5
6847echo "${ECHO_T}yes" >&6
6848 else
6849 echo "$as_me:$LINENO: result: no" >&5
6850echo "${ECHO_T}no" >&6
6851 fi
6852
6853
6854
6855
6856
6857 enablestring=
6858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6859echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6860 no_cache=0
6861 # Check whether --enable-prologio or --disable-prologio was given.
6862if test "${enable_prologio+set}" = set; then
6863 enableval="$enable_prologio"
6864
6865 if test "$enableval" = yes; then
6866 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6867 else
6868 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6869 fi
6870
6871else
6872
6873 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6874 if test "x$LINE" != x ; then
6875 eval "DEFAULT_$LINE"
6876 else
6877 no_cache=1
6878 fi
6879
6880 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6881
6882fi;
6883
6884 eval "$ac_cv_use_prologio"
6885 if test "$no_cache" != 1; then
6886 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6887 fi
6888
6889 if test "$wxUSE_PROLOGIO" = yes; then
6890 echo "$as_me:$LINENO: result: yes" >&5
6891echo "${ECHO_T}yes" >&6
6892 else
6893 echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6
6895 fi
6896
6897
6898 enablestring=
6899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6900echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6901 no_cache=0
6902 # Check whether --enable-resources or --disable-resources was given.
6903if test "${enable_resources+set}" = set; then
6904 enableval="$enable_resources"
6905
6906 if test "$enableval" = yes; then
6907 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6908 else
6909 ac_cv_use_resources='wxUSE_RESOURCES=no'
6910 fi
6911
6912else
6913
6914 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6915 if test "x$LINE" != x ; then
6916 eval "DEFAULT_$LINE"
6917 else
6918 no_cache=1
6919 fi
6920
6921 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6922
6923fi;
6924
6925 eval "$ac_cv_use_resources"
6926 if test "$no_cache" != 1; then
6927 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6928 fi
6929
6930 if test "$wxUSE_RESOURCES" = yes; then
6931 echo "$as_me:$LINENO: result: yes" >&5
6932echo "${ECHO_T}yes" >&6
6933 else
6934 echo "$as_me:$LINENO: result: no" >&5
6935echo "${ECHO_T}no" >&6
6936 fi
6937
6938
6939
6940
6941 enablestring=
6942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6943echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6944 no_cache=0
6945 # Check whether --enable-clipboard or --disable-clipboard was given.
6946if test "${enable_clipboard+set}" = set; then
6947 enableval="$enable_clipboard"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6951 else
6952 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6965
6966fi;
6967
6968 eval "$ac_cv_use_clipboard"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_CLIPBOARD" = yes; then
6974 echo "$as_me:$LINENO: result: yes" >&5
6975echo "${ECHO_T}yes" >&6
6976 else
6977 echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6
6979 fi
6980
6981
6982 enablestring=
6983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6984echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6985 no_cache=0
6986 # Check whether --enable-dnd or --disable-dnd was given.
6987if test "${enable_dnd+set}" = set; then
6988 enableval="$enable_dnd"
6989
6990 if test "$enableval" = yes; then
6991 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6992 else
6993 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6994 fi
6995
6996else
6997
6998 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6999 if test "x$LINE" != x ; then
7000 eval "DEFAULT_$LINE"
7001 else
7002 no_cache=1
7003 fi
7004
7005 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7006
7007fi;
7008
7009 eval "$ac_cv_use_dnd"
7010 if test "$no_cache" != 1; then
7011 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7012 fi
7013
7014 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7015 echo "$as_me:$LINENO: result: yes" >&5
7016echo "${ECHO_T}yes" >&6
7017 else
7018 echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6
7020 fi
7021
7022
7023 enablestring=
7024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7025echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7026 no_cache=0
7027 # Check whether --enable-metafile or --disable-metafile was given.
7028if test "${enable_metafile+set}" = set; then
7029 enableval="$enable_metafile"
7030
7031 if test "$enableval" = yes; then
7032 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7033 else
7034 ac_cv_use_metafile='wxUSE_METAFILE=no'
7035 fi
7036
7037else
7038
7039 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7040 if test "x$LINE" != x ; then
7041 eval "DEFAULT_$LINE"
7042 else
7043 no_cache=1
7044 fi
7045
7046 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7047
7048fi;
7049
7050 eval "$ac_cv_use_metafile"
7051 if test "$no_cache" != 1; then
7052 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7053 fi
7054
7055 if test "$wxUSE_METAFILE" = yes; then
7056 echo "$as_me:$LINENO: result: yes" >&5
7057echo "${ECHO_T}yes" >&6
7058 else
7059 echo "$as_me:$LINENO: result: no" >&5
7060echo "${ECHO_T}no" >&6
7061 fi
7062
7063
7064
7065
7066
7067 enablestring=
7068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7069echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7070 no_cache=0
7071 # Check whether --enable-controls or --disable-controls was given.
7072if test "${enable_controls+set}" = set; then
7073 enableval="$enable_controls"
7074
7075 if test "$enableval" = yes; then
7076 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7077 else
7078 ac_cv_use_controls='wxUSE_CONTROLS=no'
7079 fi
7080
7081else
7082
7083 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7084 if test "x$LINE" != x ; then
7085 eval "DEFAULT_$LINE"
7086 else
7087 no_cache=1
7088 fi
7089
7090 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7091
7092fi;
7093
7094 eval "$ac_cv_use_controls"
7095 if test "$no_cache" != 1; then
7096 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7097 fi
7098
7099 if test "$wxUSE_CONTROLS" = yes; then
7100 echo "$as_me:$LINENO: result: yes" >&5
7101echo "${ECHO_T}yes" >&6
7102 else
7103 echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6
7105 fi
7106
7107
7108if test "$wxUSE_CONTROLS" = "yes"; then
7109 DEFAULT_wxUSE_ACCEL=yes
7110 DEFAULT_wxUSE_BMPBUTTON=yes
7111 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7112 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7113 DEFAULT_wxUSE_CARET=yes
7114 DEFAULT_wxUSE_COMBOBOX=yes
7115 DEFAULT_wxUSE_CHECKBOX=yes
7116 DEFAULT_wxUSE_CHECKLISTBOX=yes
7117 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7118 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7119 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7120 DEFAULT_wxUSE_GAUGE=yes
7121 DEFAULT_wxUSE_GRID=yes
7122 DEFAULT_wxUSE_IMAGLIST=yes
7123 DEFAULT_wxUSE_LISTBOOK=yes
7124 DEFAULT_wxUSE_LISTBOX=yes
7125 DEFAULT_wxUSE_LISTCTRL=yes
7126 DEFAULT_wxUSE_NOTEBOOK=yes
7127 DEFAULT_wxUSE_RADIOBOX=yes
7128 DEFAULT_wxUSE_RADIOBTN=yes
7129 DEFAULT_wxUSE_SASH=yes
7130 DEFAULT_wxUSE_SCROLLBAR=yes
7131 DEFAULT_wxUSE_SLIDER=yes
7132 DEFAULT_wxUSE_SPINBTN=yes
7133 DEFAULT_wxUSE_SPINCTRL=yes
7134 DEFAULT_wxUSE_SPLITTER=yes
7135 DEFAULT_wxUSE_STATBMP=yes
7136 DEFAULT_wxUSE_STATBOX=yes
7137 DEFAULT_wxUSE_STATLINE=yes
7138 DEFAULT_wxUSE_STATUSBAR=yes
7139 DEFAULT_wxUSE_TAB_DIALOG=yes
7140 DEFAULT_wxUSE_TOGGLEBTN=yes
7141 DEFAULT_wxUSE_TOOLBAR=yes
7142 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7143 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7144 DEFAULT_wxUSE_TOOLTIPS=yes
7145 DEFAULT_wxUSE_TREECTRL=yes
7146 DEFAULT_wxUSE_POPUPWIN=yes
7147 DEFAULT_wxUSE_TIPWINDOW=yes
7148elif test "$wxUSE_CONTROLS" = "no"; then
7149 DEFAULT_wxUSE_ACCEL=no
7150 DEFAULT_wxUSE_BMPBUTTON=no
7151 DEFAULT_wxUSE_BUTTON=no
7152 DEFAULT_wxUSE_CALCTRL=no
7153 DEFAULT_wxUSE_CARET=no
7154 DEFAULT_wxUSE_COMBOBOX=no
7155 DEFAULT_wxUSE_CHECKBOX=no
7156 DEFAULT_wxUSE_CHECKLISTBOX=no
7157 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7158 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7159 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7160 DEFAULT_wxUSE_GAUGE=no
7161 DEFAULT_wxUSE_GRID=no
7162 DEFAULT_wxUSE_IMAGLIST=no
7163 DEFAULT_wxUSE_LISTBOOK=no
7164 DEFAULT_wxUSE_LISTBOX=no
7165 DEFAULT_wxUSE_LISTCTRL=no
7166 DEFAULT_wxUSE_NOTEBOOK=no
7167 DEFAULT_wxUSE_RADIOBOX=no
7168 DEFAULT_wxUSE_RADIOBTN=no
7169 DEFAULT_wxUSE_SASH=no
7170 DEFAULT_wxUSE_SCROLLBAR=no
7171 DEFAULT_wxUSE_SLIDER=no
7172 DEFAULT_wxUSE_SPINBTN=no
7173 DEFAULT_wxUSE_SPINCTRL=no
7174 DEFAULT_wxUSE_SPLITTER=no
7175 DEFAULT_wxUSE_STATBMP=no
7176 DEFAULT_wxUSE_STATBOX=no
7177 DEFAULT_wxUSE_STATLINE=no
7178 DEFAULT_wxUSE_STATUSBAR=no
7179 DEFAULT_wxUSE_TAB_DIALOG=no
7180 DEFAULT_wxUSE_TOGGLEBTN=no
7181 DEFAULT_wxUSE_TOOLBAR=no
7182 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7183 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7184 DEFAULT_wxUSE_TOOLTIPS=no
7185 DEFAULT_wxUSE_TREECTRL=no
7186 DEFAULT_wxUSE_POPUPWIN=no
7187 DEFAULT_wxUSE_TIPWINDOW=no
7188fi
7189
a848cd7e
SC
7190
7191 enablestring=
7192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7193echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7194 no_cache=0
7195 # Check whether --enable-accel or --disable-accel was given.
7196if test "${enable_accel+set}" = set; then
7197 enableval="$enable_accel"
7198
7199 if test "$enableval" = yes; then
7200 ac_cv_use_accel='wxUSE_ACCEL=yes'
7201 else
7202 ac_cv_use_accel='wxUSE_ACCEL=no'
7203 fi
7204
7205else
7206
7207 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7208 if test "x$LINE" != x ; then
7209 eval "DEFAULT_$LINE"
7210 else
7211 no_cache=1
7212 fi
7213
7214 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7215
7216fi;
7217
7218 eval "$ac_cv_use_accel"
7219 if test "$no_cache" != 1; then
7220 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7221 fi
7222
7223 if test "$wxUSE_ACCEL" = yes; then
7224 echo "$as_me:$LINENO: result: yes" >&5
7225echo "${ECHO_T}yes" >&6
7226 else
7227 echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6
7229 fi
7230
7231
7232 enablestring=
7233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7234echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7235 no_cache=0
7236 # Check whether --enable-button or --disable-button was given.
7237if test "${enable_button+set}" = set; then
7238 enableval="$enable_button"
7239
7240 if test "$enableval" = yes; then
7241 ac_cv_use_button='wxUSE_BUTTON=yes'
7242 else
7243 ac_cv_use_button='wxUSE_BUTTON=no'
7244 fi
7245
7246else
7247
7248 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7249 if test "x$LINE" != x ; then
7250 eval "DEFAULT_$LINE"
7251 else
7252 no_cache=1
7253 fi
7254
7255 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7256
7257fi;
7258
7259 eval "$ac_cv_use_button"
7260 if test "$no_cache" != 1; then
7261 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7262 fi
7263
7264 if test "$wxUSE_BUTTON" = yes; then
7265 echo "$as_me:$LINENO: result: yes" >&5
7266echo "${ECHO_T}yes" >&6
7267 else
7268 echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6
7270 fi
7271
7272
7273 enablestring=
7274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7275echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7276 no_cache=0
7277 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7278if test "${enable_bmpbutton+set}" = set; then
7279 enableval="$enable_bmpbutton"
7280
7281 if test "$enableval" = yes; then
7282 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7283 else
7284 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7285 fi
7286
7287else
7288
7289 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7290 if test "x$LINE" != x ; then
7291 eval "DEFAULT_$LINE"
7292 else
7293 no_cache=1
7294 fi
7295
7296 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7297
7298fi;
7299
7300 eval "$ac_cv_use_bmpbutton"
7301 if test "$no_cache" != 1; then
7302 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7303 fi
7304
7305 if test "$wxUSE_BMPBUTTON" = yes; then
7306 echo "$as_me:$LINENO: result: yes" >&5
7307echo "${ECHO_T}yes" >&6
7308 else
7309 echo "$as_me:$LINENO: result: no" >&5
7310echo "${ECHO_T}no" >&6
7311 fi
7312
7313
7314 enablestring=
7315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7316echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7317 no_cache=0
7318 # Check whether --enable-calendar or --disable-calendar was given.
7319if test "${enable_calendar+set}" = set; then
7320 enableval="$enable_calendar"
7321
7322 if test "$enableval" = yes; then
7323 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7324 else
7325 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7326 fi
7327
7328else
7329
7330 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7338
7339fi;
7340
7341 eval "$ac_cv_use_calendar"
7342 if test "$no_cache" != 1; then
7343 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7344 fi
7345
7346 if test "$wxUSE_CALCTRL" = yes; then
7347 echo "$as_me:$LINENO: result: yes" >&5
7348echo "${ECHO_T}yes" >&6
7349 else
7350 echo "$as_me:$LINENO: result: no" >&5
7351echo "${ECHO_T}no" >&6
7352 fi
7353
7354
7355 enablestring=
7356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7357echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7358 no_cache=0
7359 # Check whether --enable-caret or --disable-caret was given.
7360if test "${enable_caret+set}" = set; then
7361 enableval="$enable_caret"
7362
7363 if test "$enableval" = yes; then
7364 ac_cv_use_caret='wxUSE_CARET=yes'
7365 else
7366 ac_cv_use_caret='wxUSE_CARET=no'
7367 fi
7368
7369else
7370
7371 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7372 if test "x$LINE" != x ; then
7373 eval "DEFAULT_$LINE"
7374 else
7375 no_cache=1
7376 fi
7377
7378 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7379
7380fi;
7381
7382 eval "$ac_cv_use_caret"
7383 if test "$no_cache" != 1; then
7384 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7385 fi
7386
7387 if test "$wxUSE_CARET" = yes; then
7388 echo "$as_me:$LINENO: result: yes" >&5
7389echo "${ECHO_T}yes" >&6
7390 else
7391 echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6
7393 fi
7394
7395
7396 enablestring=
7397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7398echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7399 no_cache=0
7400 # Check whether --enable-checkbox or --disable-checkbox was given.
7401if test "${enable_checkbox+set}" = set; then
7402 enableval="$enable_checkbox"
7403
7404 if test "$enableval" = yes; then
7405 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7406 else
7407 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7408 fi
7409
7410else
7411
7412 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7413 if test "x$LINE" != x ; then
7414 eval "DEFAULT_$LINE"
7415 else
7416 no_cache=1
7417 fi
7418
7419 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7420
7421fi;
7422
7423 eval "$ac_cv_use_checkbox"
7424 if test "$no_cache" != 1; then
7425 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7426 fi
7427
7428 if test "$wxUSE_CHECKBOX" = yes; then
7429 echo "$as_me:$LINENO: result: yes" >&5
7430echo "${ECHO_T}yes" >&6
7431 else
7432 echo "$as_me:$LINENO: result: no" >&5
7433echo "${ECHO_T}no" >&6
7434 fi
7435
7436
7437 enablestring=
7438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7439echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7440 no_cache=0
7441 # Check whether --enable-checklst or --disable-checklst was given.
7442if test "${enable_checklst+set}" = set; then
7443 enableval="$enable_checklst"
7444
7445 if test "$enableval" = yes; then
7446 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7447 else
7448 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7449 fi
7450
7451else
7452
7453 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7454 if test "x$LINE" != x ; then
7455 eval "DEFAULT_$LINE"
7456 else
7457 no_cache=1
7458 fi
7459
7460 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7461
7462fi;
7463
7464 eval "$ac_cv_use_checklst"
7465 if test "$no_cache" != 1; then
7466 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7467 fi
7468
7469 if test "$wxUSE_CHECKLST" = yes; then
7470 echo "$as_me:$LINENO: result: yes" >&5
7471echo "${ECHO_T}yes" >&6
7472 else
7473 echo "$as_me:$LINENO: result: no" >&5
7474echo "${ECHO_T}no" >&6
7475 fi
7476
7477
7478 enablestring=
7479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7480echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7481 no_cache=0
7482 # Check whether --enable-choice or --disable-choice was given.
7483if test "${enable_choice+set}" = set; then
7484 enableval="$enable_choice"
7485
7486 if test "$enableval" = yes; then
7487 ac_cv_use_choice='wxUSE_CHOICE=yes'
7488 else
7489 ac_cv_use_choice='wxUSE_CHOICE=no'
7490 fi
7491
7492else
7493
7494 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7495 if test "x$LINE" != x ; then
7496 eval "DEFAULT_$LINE"
7497 else
7498 no_cache=1
7499 fi
7500
7501 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7502
7503fi;
7504
7505 eval "$ac_cv_use_choice"
7506 if test "$no_cache" != 1; then
7507 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7508 fi
7509
7510 if test "$wxUSE_CHOICE" = yes; then
7511 echo "$as_me:$LINENO: result: yes" >&5
7512echo "${ECHO_T}yes" >&6
7513 else
7514 echo "$as_me:$LINENO: result: no" >&5
7515echo "${ECHO_T}no" >&6
7516 fi
7517
7518
92bbdbcd
WS
7519 enablestring=
7520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7521echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7522 no_cache=0
7523 # Check whether --enable-choicebook or --disable-choicebook was given.
7524if test "${enable_choicebook+set}" = set; then
7525 enableval="$enable_choicebook"
7526
7527 if test "$enableval" = yes; then
7528 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7529 else
7530 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7531 fi
7532
7533else
7534
7535 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7536 if test "x$LINE" != x ; then
7537 eval "DEFAULT_$LINE"
7538 else
7539 no_cache=1
7540 fi
7541
7542 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7543
7544fi;
7545
7546 eval "$ac_cv_use_choicebook"
7547 if test "$no_cache" != 1; then
7548 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7549 fi
7550
7551 if test "$wxUSE_CHOICEBOOK" = yes; then
7552 echo "$as_me:$LINENO: result: yes" >&5
7553echo "${ECHO_T}yes" >&6
7554 else
7555 echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6
7557 fi
7558
7559
a848cd7e
SC
7560 enablestring=
7561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7562echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7563 no_cache=0
7564 # Check whether --enable-combobox or --disable-combobox was given.
7565if test "${enable_combobox+set}" = set; then
7566 enableval="$enable_combobox"
7567
7568 if test "$enableval" = yes; then
7569 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7570 else
7571 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7572 fi
7573
7574else
7575
7576 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7577 if test "x$LINE" != x ; then
7578 eval "DEFAULT_$LINE"
7579 else
7580 no_cache=1
7581 fi
7582
7583 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7584
7585fi;
7586
7587 eval "$ac_cv_use_combobox"
7588 if test "$no_cache" != 1; then
7589 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7590 fi
7591
7592 if test "$wxUSE_COMBOBOX" = yes; then
7593 echo "$as_me:$LINENO: result: yes" >&5
7594echo "${ECHO_T}yes" >&6
7595 else
7596 echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6
7598 fi
7599
7600
da98e9be
VZ
7601 enablestring=
7602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7603echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7604 no_cache=0
7605 # Check whether --enable-datepick or --disable-datepick was given.
7606if test "${enable_datepick+set}" = set; then
7607 enableval="$enable_datepick"
7608
7609 if test "$enableval" = yes; then
7610 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7611 else
7612 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7613 fi
7614
7615else
7616
7617 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7618 if test "x$LINE" != x ; then
7619 eval "DEFAULT_$LINE"
7620 else
7621 no_cache=1
7622 fi
7623
7624 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7625
7626fi;
7627
7628 eval "$ac_cv_use_datepick"
7629 if test "$no_cache" != 1; then
7630 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7631 fi
7632
7633 if test "$wxUSE_DATEPICKCTRL" = yes; then
7634 echo "$as_me:$LINENO: result: yes" >&5
7635echo "${ECHO_T}yes" >&6
7636 else
7637 echo "$as_me:$LINENO: result: no" >&5
7638echo "${ECHO_T}no" >&6
7639 fi
7640
7641
a848cd7e
SC
7642 enablestring=
7643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7644echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7645 no_cache=0
7646 # Check whether --enable-display or --disable-display was given.
7647if test "${enable_display+set}" = set; then
7648 enableval="$enable_display"
7649
7650 if test "$enableval" = yes; then
7651 ac_cv_use_display='wxUSE_DISPLAY=yes'
7652 else
7653 ac_cv_use_display='wxUSE_DISPLAY=no'
7654 fi
7655
7656else
7657
7658 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7659 if test "x$LINE" != x ; then
7660 eval "DEFAULT_$LINE"
7661 else
7662 no_cache=1
7663 fi
7664
7665 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7666
7667fi;
7668
7669 eval "$ac_cv_use_display"
7670 if test "$no_cache" != 1; then
7671 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7672 fi
7673
7674 if test "$wxUSE_DISPLAY" = yes; then
7675 echo "$as_me:$LINENO: result: yes" >&5
7676echo "${ECHO_T}yes" >&6
7677 else
7678 echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6
7680 fi
7681
7682
7683 enablestring=
7684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7685echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7686 no_cache=0
7687 # Check whether --enable-gauge or --disable-gauge was given.
7688if test "${enable_gauge+set}" = set; then
7689 enableval="$enable_gauge"
7690
7691 if test "$enableval" = yes; then
7692 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7693 else
7694 ac_cv_use_gauge='wxUSE_GAUGE=no'
7695 fi
7696
7697else
7698
7699 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7700 if test "x$LINE" != x ; then
7701 eval "DEFAULT_$LINE"
7702 else
7703 no_cache=1
7704 fi
7705
7706 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7707
7708fi;
7709
7710 eval "$ac_cv_use_gauge"
7711 if test "$no_cache" != 1; then
7712 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7713 fi
7714
7715 if test "$wxUSE_GAUGE" = yes; then
7716 echo "$as_me:$LINENO: result: yes" >&5
7717echo "${ECHO_T}yes" >&6
7718 else
7719 echo "$as_me:$LINENO: result: no" >&5
7720echo "${ECHO_T}no" >&6
7721 fi
7722
7723
7724 enablestring=
7725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7726echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7727 no_cache=0
7728 # Check whether --enable-grid or --disable-grid was given.
7729if test "${enable_grid+set}" = set; then
7730 enableval="$enable_grid"
7731
7732 if test "$enableval" = yes; then
7733 ac_cv_use_grid='wxUSE_GRID=yes'
7734 else
7735 ac_cv_use_grid='wxUSE_GRID=no'
7736 fi
7737
7738else
7739
7740 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7741 if test "x$LINE" != x ; then
7742 eval "DEFAULT_$LINE"
7743 else
7744 no_cache=1
7745 fi
7746
7747 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7748
7749fi;
7750
7751 eval "$ac_cv_use_grid"
7752 if test "$no_cache" != 1; then
7753 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7754 fi
7755
7756 if test "$wxUSE_GRID" = yes; then
7757 echo "$as_me:$LINENO: result: yes" >&5
7758echo "${ECHO_T}yes" >&6
7759 else
7760 echo "$as_me:$LINENO: result: no" >&5
7761echo "${ECHO_T}no" >&6
7762 fi
7763
7764
7765 enablestring=
7766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7767echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7768 no_cache=0
7769 # Check whether --enable-imaglist or --disable-imaglist was given.
7770if test "${enable_imaglist+set}" = set; then
7771 enableval="$enable_imaglist"
7772
7773 if test "$enableval" = yes; then
7774 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7775 else
7776 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7777 fi
7778
7779else
7780
7781 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7782 if test "x$LINE" != x ; then
7783 eval "DEFAULT_$LINE"
7784 else
7785 no_cache=1
7786 fi
7787
7788 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7789
7790fi;
7791
7792 eval "$ac_cv_use_imaglist"
7793 if test "$no_cache" != 1; then
7794 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7795 fi
7796
7797 if test "$wxUSE_IMAGLIST" = yes; then
7798 echo "$as_me:$LINENO: result: yes" >&5
7799echo "${ECHO_T}yes" >&6
7800 else
7801 echo "$as_me:$LINENO: result: no" >&5
7802echo "${ECHO_T}no" >&6
7803 fi
7804
7805
7806 enablestring=
7807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7808echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7809 no_cache=0
7810 # Check whether --enable-listbook or --disable-listbook was given.
7811if test "${enable_listbook+set}" = set; then
7812 enableval="$enable_listbook"
7813
7814 if test "$enableval" = yes; then
7815 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7816 else
7817 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7818 fi
7819
7820else
7821
7822 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7823 if test "x$LINE" != x ; then
7824 eval "DEFAULT_$LINE"
7825 else
7826 no_cache=1
7827 fi
7828
7829 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7830
7831fi;
7832
7833 eval "$ac_cv_use_listbook"
7834 if test "$no_cache" != 1; then
7835 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7836 fi
7837
7838 if test "$wxUSE_LISTBOOK" = yes; then
7839 echo "$as_me:$LINENO: result: yes" >&5
7840echo "${ECHO_T}yes" >&6
7841 else
7842 echo "$as_me:$LINENO: result: no" >&5
7843echo "${ECHO_T}no" >&6
7844 fi
7845
7846
7847 enablestring=
7848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7849echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7850 no_cache=0
7851 # Check whether --enable-listbox or --disable-listbox was given.
7852if test "${enable_listbox+set}" = set; then
7853 enableval="$enable_listbox"
7854
7855 if test "$enableval" = yes; then
7856 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7857 else
7858 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7859 fi
7860
7861else
7862
7863 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7864 if test "x$LINE" != x ; then
7865 eval "DEFAULT_$LINE"
7866 else
7867 no_cache=1
7868 fi
7869
7870 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7871
7872fi;
7873
7874 eval "$ac_cv_use_listbox"
7875 if test "$no_cache" != 1; then
7876 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7877 fi
7878
7879 if test "$wxUSE_LISTBOX" = yes; then
7880 echo "$as_me:$LINENO: result: yes" >&5
7881echo "${ECHO_T}yes" >&6
7882 else
7883 echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6
7885 fi
7886
7887
7888 enablestring=
7889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7890echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7891 no_cache=0
7892 # Check whether --enable-listctrl or --disable-listctrl was given.
7893if test "${enable_listctrl+set}" = set; then
7894 enableval="$enable_listctrl"
7895
7896 if test "$enableval" = yes; then
7897 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7898 else
7899 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7900 fi
7901
7902else
7903
7904 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7905 if test "x$LINE" != x ; then
7906 eval "DEFAULT_$LINE"
7907 else
7908 no_cache=1
7909 fi
7910
7911 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7912
7913fi;
7914
7915 eval "$ac_cv_use_listctrl"
7916 if test "$no_cache" != 1; then
7917 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7918 fi
7919
7920 if test "$wxUSE_LISTCTRL" = yes; then
7921 echo "$as_me:$LINENO: result: yes" >&5
7922echo "${ECHO_T}yes" >&6
7923 else
7924 echo "$as_me:$LINENO: result: no" >&5
7925echo "${ECHO_T}no" >&6
7926 fi
7927
7928
7929 enablestring=
7930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7931echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7932 no_cache=0
7933 # Check whether --enable-notebook or --disable-notebook was given.
7934if test "${enable_notebook+set}" = set; then
7935 enableval="$enable_notebook"
7936
7937 if test "$enableval" = yes; then
7938 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7939 else
7940 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7941 fi
7942
7943else
7944
7945 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7946 if test "x$LINE" != x ; then
7947 eval "DEFAULT_$LINE"
7948 else
7949 no_cache=1
7950 fi
7951
7952 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7953
7954fi;
7955
7956 eval "$ac_cv_use_notebook"
7957 if test "$no_cache" != 1; then
7958 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7959 fi
7960
7961 if test "$wxUSE_NOTEBOOK" = yes; then
7962 echo "$as_me:$LINENO: result: yes" >&5
7963echo "${ECHO_T}yes" >&6
7964 else
7965 echo "$as_me:$LINENO: result: no" >&5
7966echo "${ECHO_T}no" >&6
7967 fi
7968
7969
7970 enablestring=
7971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7972echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7973 no_cache=0
7974 # Check whether --enable-radiobox or --disable-radiobox was given.
7975if test "${enable_radiobox+set}" = set; then
7976 enableval="$enable_radiobox"
7977
7978 if test "$enableval" = yes; then
7979 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7980 else
7981 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7982 fi
7983
7984else
7985
7986 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7987 if test "x$LINE" != x ; then
7988 eval "DEFAULT_$LINE"
7989 else
7990 no_cache=1
7991 fi
7992
7993 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7994
7995fi;
7996
7997 eval "$ac_cv_use_radiobox"
7998 if test "$no_cache" != 1; then
7999 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8000 fi
8001
8002 if test "$wxUSE_RADIOBOX" = yes; then
8003 echo "$as_me:$LINENO: result: yes" >&5
8004echo "${ECHO_T}yes" >&6
8005 else
8006 echo "$as_me:$LINENO: result: no" >&5
8007echo "${ECHO_T}no" >&6
8008 fi
8009
8010
8011 enablestring=
8012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8013echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8014 no_cache=0
8015 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8016if test "${enable_radiobtn+set}" = set; then
8017 enableval="$enable_radiobtn"
8018
8019 if test "$enableval" = yes; then
8020 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8021 else
8022 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8023 fi
8024
8025else
8026
8027 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8028 if test "x$LINE" != x ; then
8029 eval "DEFAULT_$LINE"
8030 else
8031 no_cache=1
8032 fi
8033
8034 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8035
8036fi;
8037
8038 eval "$ac_cv_use_radiobtn"
8039 if test "$no_cache" != 1; then
8040 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8041 fi
8042
8043 if test "$wxUSE_RADIOBTN" = yes; then
8044 echo "$as_me:$LINENO: result: yes" >&5
8045echo "${ECHO_T}yes" >&6
8046 else
8047 echo "$as_me:$LINENO: result: no" >&5
8048echo "${ECHO_T}no" >&6
8049 fi
8050
8051
8052 enablestring=
8053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8054echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8055 no_cache=0
8056 # Check whether --enable-sash or --disable-sash was given.
8057if test "${enable_sash+set}" = set; then
8058 enableval="$enable_sash"
8059
8060 if test "$enableval" = yes; then
8061 ac_cv_use_sash='wxUSE_SASH=yes'
8062 else
8063 ac_cv_use_sash='wxUSE_SASH=no'
8064 fi
8065
8066else
8067
8068 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8069 if test "x$LINE" != x ; then
8070 eval "DEFAULT_$LINE"
8071 else
8072 no_cache=1
8073 fi
8074
8075 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8076
8077fi;
8078
8079 eval "$ac_cv_use_sash"
8080 if test "$no_cache" != 1; then
8081 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8082 fi
8083
8084 if test "$wxUSE_SASH" = yes; then
8085 echo "$as_me:$LINENO: result: yes" >&5
8086echo "${ECHO_T}yes" >&6
8087 else
8088 echo "$as_me:$LINENO: result: no" >&5
8089echo "${ECHO_T}no" >&6
8090 fi
8091
8092
8093 enablestring=
8094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8095echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8096 no_cache=0
8097 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8098if test "${enable_scrollbar+set}" = set; then
8099 enableval="$enable_scrollbar"
8100
8101 if test "$enableval" = yes; then
8102 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8103 else
8104 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8105 fi
8106
8107else
8108
8109 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8110 if test "x$LINE" != x ; then
8111 eval "DEFAULT_$LINE"
8112 else
8113 no_cache=1
8114 fi
8115
8116 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8117
8118fi;
8119
8120 eval "$ac_cv_use_scrollbar"
8121 if test "$no_cache" != 1; then
8122 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8123 fi
8124
8125 if test "$wxUSE_SCROLLBAR" = yes; then
8126 echo "$as_me:$LINENO: result: yes" >&5
8127echo "${ECHO_T}yes" >&6
8128 else
8129 echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6
8131 fi
8132
8133
8134 enablestring=
8135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8136echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8137 no_cache=0
8138 # Check whether --enable-slider or --disable-slider was given.
8139if test "${enable_slider+set}" = set; then
8140 enableval="$enable_slider"
8141
8142 if test "$enableval" = yes; then
8143 ac_cv_use_slider='wxUSE_SLIDER=yes'
8144 else
8145 ac_cv_use_slider='wxUSE_SLIDER=no'
8146 fi
8147
8148else
8149
8150 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8151 if test "x$LINE" != x ; then
8152 eval "DEFAULT_$LINE"
8153 else
8154 no_cache=1
8155 fi
8156
8157 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8158
8159fi;
8160
8161 eval "$ac_cv_use_slider"
8162 if test "$no_cache" != 1; then
8163 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8164 fi
8165
8166 if test "$wxUSE_SLIDER" = yes; then
8167 echo "$as_me:$LINENO: result: yes" >&5
8168echo "${ECHO_T}yes" >&6
8169 else
8170 echo "$as_me:$LINENO: result: no" >&5
8171echo "${ECHO_T}no" >&6
8172 fi
8173
8174
8175 enablestring=
8176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8177echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8178 no_cache=0
8179 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8180if test "${enable_spinbtn+set}" = set; then
8181 enableval="$enable_spinbtn"
8182
8183 if test "$enableval" = yes; then
8184 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8185 else
8186 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8187 fi
8188
8189else
8190
8191 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8192 if test "x$LINE" != x ; then
8193 eval "DEFAULT_$LINE"
8194 else
8195 no_cache=1
8196 fi
8197
8198 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8199
8200fi;
8201
8202 eval "$ac_cv_use_spinbtn"
8203 if test "$no_cache" != 1; then
8204 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8205 fi
8206
8207 if test "$wxUSE_SPINBTN" = yes; then
8208 echo "$as_me:$LINENO: result: yes" >&5
8209echo "${ECHO_T}yes" >&6
8210 else
8211 echo "$as_me:$LINENO: result: no" >&5
8212echo "${ECHO_T}no" >&6
8213 fi
8214
8215
8216 enablestring=
8217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8218echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8219 no_cache=0
8220 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8221if test "${enable_spinctrl+set}" = set; then
8222 enableval="$enable_spinctrl"
8223
8224 if test "$enableval" = yes; then
8225 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8226 else
8227 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8228 fi
8229
8230else
8231
8232 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8233 if test "x$LINE" != x ; then
8234 eval "DEFAULT_$LINE"
8235 else
8236 no_cache=1
8237 fi
8238
8239 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8240
8241fi;
8242
8243 eval "$ac_cv_use_spinctrl"
8244 if test "$no_cache" != 1; then
8245 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8246 fi
8247
8248 if test "$wxUSE_SPINCTRL" = yes; then
8249 echo "$as_me:$LINENO: result: yes" >&5
8250echo "${ECHO_T}yes" >&6
8251 else
8252 echo "$as_me:$LINENO: result: no" >&5
8253echo "${ECHO_T}no" >&6
8254 fi
8255
8256
8257 enablestring=
8258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8259echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8260 no_cache=0
8261 # Check whether --enable-splitter or --disable-splitter was given.
8262if test "${enable_splitter+set}" = set; then
8263 enableval="$enable_splitter"
8264
8265 if test "$enableval" = yes; then
8266 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8267 else
8268 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8269 fi
8270
8271else
8272
8273 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8274 if test "x$LINE" != x ; then
8275 eval "DEFAULT_$LINE"
8276 else
8277 no_cache=1
8278 fi
8279
8280 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8281
8282fi;
8283
8284 eval "$ac_cv_use_splitter"
8285 if test "$no_cache" != 1; then
8286 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8287 fi
8288
8289 if test "$wxUSE_SPLITTER" = yes; then
8290 echo "$as_me:$LINENO: result: yes" >&5
8291echo "${ECHO_T}yes" >&6
8292 else
8293 echo "$as_me:$LINENO: result: no" >&5
8294echo "${ECHO_T}no" >&6
8295 fi
8296
8297
8298 enablestring=
8299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8300echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8301 no_cache=0
8302 # Check whether --enable-statbmp or --disable-statbmp was given.
8303if test "${enable_statbmp+set}" = set; then
8304 enableval="$enable_statbmp"
8305
8306 if test "$enableval" = yes; then
8307 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8308 else
8309 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8310 fi
8311
8312else
8313
8314 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8315 if test "x$LINE" != x ; then
8316 eval "DEFAULT_$LINE"
8317 else
8318 no_cache=1
8319 fi
8320
8321 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8322
8323fi;
8324
8325 eval "$ac_cv_use_statbmp"
8326 if test "$no_cache" != 1; then
8327 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8328 fi
8329
8330 if test "$wxUSE_STATBMP" = yes; then
8331 echo "$as_me:$LINENO: result: yes" >&5
8332echo "${ECHO_T}yes" >&6
8333 else
8334 echo "$as_me:$LINENO: result: no" >&5
8335echo "${ECHO_T}no" >&6
8336 fi
8337
8338
8339 enablestring=
8340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8341echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8342 no_cache=0
8343 # Check whether --enable-statbox or --disable-statbox was given.
8344if test "${enable_statbox+set}" = set; then
8345 enableval="$enable_statbox"
8346
8347 if test "$enableval" = yes; then
8348 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8349 else
8350 ac_cv_use_statbox='wxUSE_STATBOX=no'
8351 fi
8352
8353else
8354
8355 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8356 if test "x$LINE" != x ; then
8357 eval "DEFAULT_$LINE"
8358 else
8359 no_cache=1
8360 fi
8361
8362 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8363
8364fi;
8365
8366 eval "$ac_cv_use_statbox"
8367 if test "$no_cache" != 1; then
8368 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8369 fi
8370
8371 if test "$wxUSE_STATBOX" = yes; then
8372 echo "$as_me:$LINENO: result: yes" >&5
8373echo "${ECHO_T}yes" >&6
8374 else
8375 echo "$as_me:$LINENO: result: no" >&5
8376echo "${ECHO_T}no" >&6
8377 fi
8378
8379
8380 enablestring=
8381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8382echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8383 no_cache=0
8384 # Check whether --enable-statline or --disable-statline was given.
8385if test "${enable_statline+set}" = set; then
8386 enableval="$enable_statline"
8387
8388 if test "$enableval" = yes; then
8389 ac_cv_use_statline='wxUSE_STATLINE=yes'
8390 else
8391 ac_cv_use_statline='wxUSE_STATLINE=no'
8392 fi
8393
8394else
8395
8396 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8397 if test "x$LINE" != x ; then
8398 eval "DEFAULT_$LINE"
8399 else
8400 no_cache=1
8401 fi
8402
8403 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8404
8405fi;
8406
8407 eval "$ac_cv_use_statline"
8408 if test "$no_cache" != 1; then
8409 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8410 fi
8411
8412 if test "$wxUSE_STATLINE" = yes; then
8413 echo "$as_me:$LINENO: result: yes" >&5
8414echo "${ECHO_T}yes" >&6
8415 else
8416 echo "$as_me:$LINENO: result: no" >&5
8417echo "${ECHO_T}no" >&6
8418 fi
8419
8420
8421 enablestring=
8422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8423echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8424 no_cache=0
8425 # Check whether --enable-stattext or --disable-stattext was given.
8426if test "${enable_stattext+set}" = set; then
8427 enableval="$enable_stattext"
8428
8429 if test "$enableval" = yes; then
8430 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8431 else
8432 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8433 fi
8434
8435else
8436
8437 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8438 if test "x$LINE" != x ; then
8439 eval "DEFAULT_$LINE"
8440 else
8441 no_cache=1
8442 fi
8443
8444 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8445
8446fi;
8447
8448 eval "$ac_cv_use_stattext"
8449 if test "$no_cache" != 1; then
8450 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8451 fi
8452
8453 if test "$wxUSE_STATTEXT" = yes; then
8454 echo "$as_me:$LINENO: result: yes" >&5
8455echo "${ECHO_T}yes" >&6
8456 else
8457 echo "$as_me:$LINENO: result: no" >&5
8458echo "${ECHO_T}no" >&6
8459 fi
8460
8461
8462 enablestring=
8463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8464echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8465 no_cache=0
8466 # Check whether --enable-statusbar or --disable-statusbar was given.
8467if test "${enable_statusbar+set}" = set; then
8468 enableval="$enable_statusbar"
8469
8470 if test "$enableval" = yes; then
8471 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8472 else
8473 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8474 fi
8475
8476else
8477
8478 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8479 if test "x$LINE" != x ; then
8480 eval "DEFAULT_$LINE"
8481 else
8482 no_cache=1
8483 fi
8484
8485 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8486
8487fi;
8488
8489 eval "$ac_cv_use_statusbar"
8490 if test "$no_cache" != 1; then
8491 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8492 fi
8493
8494 if test "$wxUSE_STATUSBAR" = yes; then
8495 echo "$as_me:$LINENO: result: yes" >&5
8496echo "${ECHO_T}yes" >&6
8497 else
8498 echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
8500 fi
8501
8502
8503 enablestring=
8504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8505echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8506 no_cache=0
8507 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8508if test "${enable_tabdialog+set}" = set; then
8509 enableval="$enable_tabdialog"
8510
8511 if test "$enableval" = yes; then
8512 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8513 else
8514 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8515 fi
8516
8517else
8518
8519 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8520 if test "x$LINE" != x ; then
8521 eval "DEFAULT_$LINE"
8522 else
8523 no_cache=1
8524 fi
8525
8526 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8527
8528fi;
8529
8530 eval "$ac_cv_use_tabdialog"
8531 if test "$no_cache" != 1; then
8532 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8533 fi
8534
8535 if test "$wxUSE_TABDIALOG" = yes; then
8536 echo "$as_me:$LINENO: result: yes" >&5
8537echo "${ECHO_T}yes" >&6
8538 else
8539 echo "$as_me:$LINENO: result: no" >&5
8540echo "${ECHO_T}no" >&6
8541 fi
8542
8543
8544 enablestring=
8545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8546echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8547 no_cache=0
8548 # Check whether --enable-textctrl or --disable-textctrl was given.
8549if test "${enable_textctrl+set}" = set; then
8550 enableval="$enable_textctrl"
8551
8552 if test "$enableval" = yes; then
8553 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8554 else
8555 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8556 fi
8557
8558else
8559
8560 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8561 if test "x$LINE" != x ; then
8562 eval "DEFAULT_$LINE"
8563 else
8564 no_cache=1
8565 fi
8566
8567 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8568
8569fi;
8570
8571 eval "$ac_cv_use_textctrl"
8572 if test "$no_cache" != 1; then
8573 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8574 fi
8575
8576 if test "$wxUSE_TEXTCTRL" = yes; then
8577 echo "$as_me:$LINENO: result: yes" >&5
8578echo "${ECHO_T}yes" >&6
8579 else
8580 echo "$as_me:$LINENO: result: no" >&5
8581echo "${ECHO_T}no" >&6
8582 fi
8583
8584
8585 enablestring=
8586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8587echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8588 no_cache=0
8589 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8590if test "${enable_togglebtn+set}" = set; then
8591 enableval="$enable_togglebtn"
8592
8593 if test "$enableval" = yes; then
8594 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8595 else
8596 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8597 fi
8598
8599else
8600
8601 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8602 if test "x$LINE" != x ; then
8603 eval "DEFAULT_$LINE"
8604 else
8605 no_cache=1
8606 fi
8607
8608 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8609
8610fi;
8611
8612 eval "$ac_cv_use_togglebtn"
8613 if test "$no_cache" != 1; then
8614 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8615 fi
8616
8617 if test "$wxUSE_TOGGLEBTN" = yes; then
8618 echo "$as_me:$LINENO: result: yes" >&5
8619echo "${ECHO_T}yes" >&6
8620 else
8621 echo "$as_me:$LINENO: result: no" >&5
8622echo "${ECHO_T}no" >&6
8623 fi
8624
8625
8626 enablestring=
8627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8628echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8629 no_cache=0
8630 # Check whether --enable-toolbar or --disable-toolbar was given.
8631if test "${enable_toolbar+set}" = set; then
8632 enableval="$enable_toolbar"
8633
8634 if test "$enableval" = yes; then
8635 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8636 else
8637 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8638 fi
8639
8640else
8641
8642 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8643 if test "x$LINE" != x ; then
8644 eval "DEFAULT_$LINE"
8645 else
8646 no_cache=1
8647 fi
8648
8649 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8650
8651fi;
8652
8653 eval "$ac_cv_use_toolbar"
8654 if test "$no_cache" != 1; then
8655 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8656 fi
8657
8658 if test "$wxUSE_TOOLBAR" = yes; then
8659 echo "$as_me:$LINENO: result: yes" >&5
8660echo "${ECHO_T}yes" >&6
8661 else
8662 echo "$as_me:$LINENO: result: no" >&5
8663echo "${ECHO_T}no" >&6
8664 fi
8665
8666
8667 enablestring=
8668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8669echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8670 no_cache=0
8671 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8672if test "${enable_tbarnative+set}" = set; then
8673 enableval="$enable_tbarnative"
8674
8675 if test "$enableval" = yes; then
8676 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8677 else
8678 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8679 fi
8680
8681else
8682
8683 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8684 if test "x$LINE" != x ; then
8685 eval "DEFAULT_$LINE"
8686 else
8687 no_cache=1
8688 fi
8689
8690 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8691
8692fi;
8693
8694 eval "$ac_cv_use_tbarnative"
8695 if test "$no_cache" != 1; then
8696 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8697 fi
8698
8699 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8700 echo "$as_me:$LINENO: result: yes" >&5
8701echo "${ECHO_T}yes" >&6
8702 else
8703 echo "$as_me:$LINENO: result: no" >&5
8704echo "${ECHO_T}no" >&6
8705 fi
8706
8707
8708 enablestring=
8709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8710echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8711 no_cache=0
8712 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8713if test "${enable_tbarsmpl+set}" = set; then
8714 enableval="$enable_tbarsmpl"
8715
8716 if test "$enableval" = yes; then
8717 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8718 else
8719 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8720 fi
8721
8722else
8723
8724 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8725 if test "x$LINE" != x ; then
8726 eval "DEFAULT_$LINE"
8727 else
8728 no_cache=1
8729 fi
8730
8731 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8732
8733fi;
8734
8735 eval "$ac_cv_use_tbarsmpl"
8736 if test "$no_cache" != 1; then
8737 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8738 fi
8739
8740 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8741 echo "$as_me:$LINENO: result: yes" >&5
8742echo "${ECHO_T}yes" >&6
8743 else
8744 echo "$as_me:$LINENO: result: no" >&5
8745echo "${ECHO_T}no" >&6
8746 fi
8747
8748
8749 enablestring=
8750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8751echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8752 no_cache=0
8753 # Check whether --enable-treectrl or --disable-treectrl was given.
8754if test "${enable_treectrl+set}" = set; then
8755 enableval="$enable_treectrl"
8756
8757 if test "$enableval" = yes; then
8758 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8759 else
8760 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8761 fi
8762
8763else
8764
8765 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8766 if test "x$LINE" != x ; then
8767 eval "DEFAULT_$LINE"
8768 else
8769 no_cache=1
8770 fi
8771
8772 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8773
8774fi;
8775
8776 eval "$ac_cv_use_treectrl"
8777 if test "$no_cache" != 1; then
8778 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8779 fi
8780
8781 if test "$wxUSE_TREECTRL" = yes; then
8782 echo "$as_me:$LINENO: result: yes" >&5
8783echo "${ECHO_T}yes" >&6
8784 else
8785 echo "$as_me:$LINENO: result: no" >&5
8786echo "${ECHO_T}no" >&6
8787 fi
8788
8789
8790 enablestring=
8791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8792echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8793 no_cache=0
8794 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8795if test "${enable_tipwindow+set}" = set; then
8796 enableval="$enable_tipwindow"
8797
8798 if test "$enableval" = yes; then
8799 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8800 else
8801 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8802 fi
8803
8804else
8805
8806 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8807 if test "x$LINE" != x ; then
8808 eval "DEFAULT_$LINE"
8809 else
8810 no_cache=1
8811 fi
8812
8813 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8814
8815fi;
8816
8817 eval "$ac_cv_use_tipwindow"
8818 if test "$no_cache" != 1; then
8819 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8820 fi
8821
8822 if test "$wxUSE_TIPWINDOW" = yes; then
8823 echo "$as_me:$LINENO: result: yes" >&5
8824echo "${ECHO_T}yes" >&6
8825 else
8826 echo "$as_me:$LINENO: result: no" >&5
8827echo "${ECHO_T}no" >&6
8828 fi
8829
8830
8831 enablestring=
8832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8833echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8834 no_cache=0
8835 # Check whether --enable-popupwin or --disable-popupwin was given.
8836if test "${enable_popupwin+set}" = set; then
8837 enableval="$enable_popupwin"
8838
8839 if test "$enableval" = yes; then
8840 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8841 else
8842 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8843 fi
8844
8845else
8846
8847 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8848 if test "x$LINE" != x ; then
8849 eval "DEFAULT_$LINE"
8850 else
8851 no_cache=1
8852 fi
8853
8854 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8855
8856fi;
8857
8858 eval "$ac_cv_use_popupwin"
8859 if test "$no_cache" != 1; then
8860 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8861 fi
8862
8863 if test "$wxUSE_POPUPWIN" = yes; then
8864 echo "$as_me:$LINENO: result: yes" >&5
8865echo "${ECHO_T}yes" >&6
8866 else
8867 echo "$as_me:$LINENO: result: no" >&5
8868echo "${ECHO_T}no" >&6
8869 fi
8870
8871
8872
8873
8874 enablestring=
8875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8876echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8877 no_cache=0
8878 # Check whether --enable-commondlg or --disable-commondlg was given.
8879if test "${enable_commondlg+set}" = set; then
8880 enableval="$enable_commondlg"
8881
8882 if test "$enableval" = yes; then
8883 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8884 else
8885 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8886 fi
8887
8888else
8889
8890 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8891 if test "x$LINE" != x ; then
8892 eval "DEFAULT_$LINE"
8893 else
8894 no_cache=1
8895 fi
8896
8897 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8898
8899fi;
8900
8901 eval "$ac_cv_use_commondlg"
8902 if test "$no_cache" != 1; then
8903 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8904 fi
8905
8906 if test "$wxUSE_COMMONDLGS" = yes; then
8907 echo "$as_me:$LINENO: result: yes" >&5
8908echo "${ECHO_T}yes" >&6
8909 else
8910 echo "$as_me:$LINENO: result: no" >&5
8911echo "${ECHO_T}no" >&6
8912 fi
8913
8914
8915 enablestring=
8916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8917echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8918 no_cache=0
8919 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8920if test "${enable_choicedlg+set}" = set; then
8921 enableval="$enable_choicedlg"
8922
8923 if test "$enableval" = yes; then
8924 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8925 else
8926 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8927 fi
8928
8929else
8930
8931 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8932 if test "x$LINE" != x ; then
8933 eval "DEFAULT_$LINE"
8934 else
8935 no_cache=1
8936 fi
8937
8938 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8939
8940fi;
8941
8942 eval "$ac_cv_use_choicedlg"
8943 if test "$no_cache" != 1; then
8944 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8945 fi
8946
8947 if test "$wxUSE_CHOICEDLG" = yes; then
8948 echo "$as_me:$LINENO: result: yes" >&5
8949echo "${ECHO_T}yes" >&6
8950 else
8951 echo "$as_me:$LINENO: result: no" >&5
8952echo "${ECHO_T}no" >&6
8953 fi
8954
8955
8956 enablestring=
8957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8958echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8959 no_cache=0
8960 # Check whether --enable-coldlg or --disable-coldlg was given.
8961if test "${enable_coldlg+set}" = set; then
8962 enableval="$enable_coldlg"
8963
8964 if test "$enableval" = yes; then
8965 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8966 else
8967 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8968 fi
8969
8970else
8971
8972 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8973 if test "x$LINE" != x ; then
8974 eval "DEFAULT_$LINE"
8975 else
8976 no_cache=1
8977 fi
8978
8979 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8980
8981fi;
8982
8983 eval "$ac_cv_use_coldlg"
8984 if test "$no_cache" != 1; then
8985 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8986 fi
8987
8988 if test "$wxUSE_COLOURDLG" = yes; then
8989 echo "$as_me:$LINENO: result: yes" >&5
8990echo "${ECHO_T}yes" >&6
8991 else
8992 echo "$as_me:$LINENO: result: no" >&5
8993echo "${ECHO_T}no" >&6
8994 fi
8995
8996
8997 enablestring=
8998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8999echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9000 no_cache=0
9001 # Check whether --enable-filedlg or --disable-filedlg was given.
9002if test "${enable_filedlg+set}" = set; then
9003 enableval="$enable_filedlg"
9004
9005 if test "$enableval" = yes; then
9006 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9007 else
9008 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9009 fi
9010
9011else
9012
9013 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9014 if test "x$LINE" != x ; then
9015 eval "DEFAULT_$LINE"
9016 else
9017 no_cache=1
9018 fi
9019
9020 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9021
9022fi;
9023
9024 eval "$ac_cv_use_filedlg"
9025 if test "$no_cache" != 1; then
9026 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9027 fi
9028
9029 if test "$wxUSE_FILEDLG" = yes; then
9030 echo "$as_me:$LINENO: result: yes" >&5
9031echo "${ECHO_T}yes" >&6
9032 else
9033 echo "$as_me:$LINENO: result: no" >&5
9034echo "${ECHO_T}no" >&6
9035 fi
9036
9037
9038 enablestring=
9039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9040echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9041 no_cache=0
9042 # Check whether --enable-finddlg or --disable-finddlg was given.
9043if test "${enable_finddlg+set}" = set; then
9044 enableval="$enable_finddlg"
9045
9046 if test "$enableval" = yes; then
9047 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9048 else
9049 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9050 fi
9051
9052else
9053
9054 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9055 if test "x$LINE" != x ; then
9056 eval "DEFAULT_$LINE"
9057 else
9058 no_cache=1
9059 fi
9060
9061 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9062
9063fi;
9064
9065 eval "$ac_cv_use_finddlg"
9066 if test "$no_cache" != 1; then
9067 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9068 fi
9069
9070 if test "$wxUSE_FINDREPLDLG" = yes; then
9071 echo "$as_me:$LINENO: result: yes" >&5
9072echo "${ECHO_T}yes" >&6
9073 else
9074 echo "$as_me:$LINENO: result: no" >&5
9075echo "${ECHO_T}no" >&6
9076 fi
9077
9078
9079 enablestring=
9080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9081echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9082 no_cache=0
9083 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9084if test "${enable_fontdlg+set}" = set; then
9085 enableval="$enable_fontdlg"
9086
9087 if test "$enableval" = yes; then
9088 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9089 else
9090 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9091 fi
9092
9093else
9094
9095 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9096 if test "x$LINE" != x ; then
9097 eval "DEFAULT_$LINE"
9098 else
9099 no_cache=1
9100 fi
9101
9102 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9103
9104fi;
9105
9106 eval "$ac_cv_use_fontdlg"
9107 if test "$no_cache" != 1; then
9108 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9109 fi
9110
9111 if test "$wxUSE_FONTDLG" = yes; then
9112 echo "$as_me:$LINENO: result: yes" >&5
9113echo "${ECHO_T}yes" >&6
9114 else
9115 echo "$as_me:$LINENO: result: no" >&5
9116echo "${ECHO_T}no" >&6
9117 fi
9118
9119
9120 enablestring=
9121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9122echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9123 no_cache=0
9124 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9125if test "${enable_dirdlg+set}" = set; then
9126 enableval="$enable_dirdlg"
9127
9128 if test "$enableval" = yes; then
9129 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9130 else
9131 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9132 fi
9133
9134else
9135
9136 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9137 if test "x$LINE" != x ; then
9138 eval "DEFAULT_$LINE"
9139 else
9140 no_cache=1
9141 fi
9142
9143 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9144
9145fi;
9146
9147 eval "$ac_cv_use_dirdlg"
9148 if test "$no_cache" != 1; then
9149 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9150 fi
9151
9152 if test "$wxUSE_DIRDLG" = yes; then
9153 echo "$as_me:$LINENO: result: yes" >&5
9154echo "${ECHO_T}yes" >&6
9155 else
9156 echo "$as_me:$LINENO: result: no" >&5
9157echo "${ECHO_T}no" >&6
9158 fi
9159
9160
9161 enablestring=
9162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9163echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9164 no_cache=0
9165 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9166if test "${enable_msgdlg+set}" = set; then
9167 enableval="$enable_msgdlg"
9168
9169 if test "$enableval" = yes; then
9170 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9171 else
9172 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9173 fi
9174
9175else
9176
9177 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9178 if test "x$LINE" != x ; then
9179 eval "DEFAULT_$LINE"
9180 else
9181 no_cache=1
9182 fi
9183
9184 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9185
9186fi;
9187
9188 eval "$ac_cv_use_msgdlg"
9189 if test "$no_cache" != 1; then
9190 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9191 fi
9192
9193 if test "$wxUSE_MSGDLG" = yes; then
9194 echo "$as_me:$LINENO: result: yes" >&5
9195echo "${ECHO_T}yes" >&6
9196 else
9197 echo "$as_me:$LINENO: result: no" >&5
9198echo "${ECHO_T}no" >&6
9199 fi
9200
9201
9202 enablestring=
9203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9204echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9205 no_cache=0
9206 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9207if test "${enable_numberdlg+set}" = set; then
9208 enableval="$enable_numberdlg"
9209
9210 if test "$enableval" = yes; then
9211 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9212 else
9213 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9214 fi
9215
9216else
9217
9218 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9219 if test "x$LINE" != x ; then
9220 eval "DEFAULT_$LINE"
9221 else
9222 no_cache=1
9223 fi
9224
9225 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9226
9227fi;
9228
9229 eval "$ac_cv_use_numberdlg"
9230 if test "$no_cache" != 1; then
9231 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9232 fi
9233
9234 if test "$wxUSE_NUMBERDLG" = yes; then
9235 echo "$as_me:$LINENO: result: yes" >&5
9236echo "${ECHO_T}yes" >&6
9237 else
9238 echo "$as_me:$LINENO: result: no" >&5
9239echo "${ECHO_T}no" >&6
9240 fi
9241
9242
9243 enablestring=
9244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9245echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9246 no_cache=0
9247 # Check whether --enable-splash or --disable-splash was given.
9248if test "${enable_splash+set}" = set; then
9249 enableval="$enable_splash"
9250
9251 if test "$enableval" = yes; then
9252 ac_cv_use_splash='wxUSE_SPLASH=yes'
9253 else
9254 ac_cv_use_splash='wxUSE_SPLASH=no'
9255 fi
9256
9257else
9258
9259 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9260 if test "x$LINE" != x ; then
9261 eval "DEFAULT_$LINE"
9262 else
9263 no_cache=1
9264 fi
9265
9266 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9267
9268fi;
9269
9270 eval "$ac_cv_use_splash"
9271 if test "$no_cache" != 1; then
9272 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9273 fi
9274
9275 if test "$wxUSE_SPLASH" = yes; then
9276 echo "$as_me:$LINENO: result: yes" >&5
9277echo "${ECHO_T}yes" >&6
9278 else
9279 echo "$as_me:$LINENO: result: no" >&5
9280echo "${ECHO_T}no" >&6
9281 fi
9282
9283
9284 enablestring=
9285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9286echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9287 no_cache=0
9288 # Check whether --enable-textdlg or --disable-textdlg was given.
9289if test "${enable_textdlg+set}" = set; then
9290 enableval="$enable_textdlg"
9291
9292 if test "$enableval" = yes; then
9293 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9294 else
9295 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9296 fi
9297
9298else
9299
9300 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9301 if test "x$LINE" != x ; then
9302 eval "DEFAULT_$LINE"
9303 else
9304 no_cache=1
9305 fi
9306
9307 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9308
9309fi;
9310
9311 eval "$ac_cv_use_textdlg"
9312 if test "$no_cache" != 1; then
9313 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9314 fi
9315
9316 if test "$wxUSE_TEXTDLG" = yes; then
9317 echo "$as_me:$LINENO: result: yes" >&5
9318echo "${ECHO_T}yes" >&6
9319 else
9320 echo "$as_me:$LINENO: result: no" >&5
9321echo "${ECHO_T}no" >&6
9322 fi
9323
9324
9325 enablestring=
9326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9327echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9328 no_cache=0
9329 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9330if test "${enable_tipdlg+set}" = set; then
9331 enableval="$enable_tipdlg"
9332
9333 if test "$enableval" = yes; then
9334 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9335 else
9336 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9337 fi
9338
9339else
9340
9341 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9342 if test "x$LINE" != x ; then
9343 eval "DEFAULT_$LINE"
9344 else
9345 no_cache=1
9346 fi
9347
9348 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9349
9350fi;
9351
9352 eval "$ac_cv_use_tipdlg"
9353 if test "$no_cache" != 1; then
9354 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9355 fi
9356
9357 if test "$wxUSE_STARTUP_TIPS" = yes; then
9358 echo "$as_me:$LINENO: result: yes" >&5
9359echo "${ECHO_T}yes" >&6
9360 else
9361 echo "$as_me:$LINENO: result: no" >&5
9362echo "${ECHO_T}no" >&6
9363 fi
9364
9365
9366 enablestring=
9367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9368echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9369 no_cache=0
9370 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9371if test "${enable_progressdlg+set}" = set; then
9372 enableval="$enable_progressdlg"
9373
9374 if test "$enableval" = yes; then
9375 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9376 else
9377 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9378 fi
9379
9380else
9381
9382 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9383 if test "x$LINE" != x ; then
9384 eval "DEFAULT_$LINE"
9385 else
9386 no_cache=1
9387 fi
9388
9389 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9390
9391fi;
9392
9393 eval "$ac_cv_use_progressdlg"
9394 if test "$no_cache" != 1; then
9395 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9396 fi
9397
9398 if test "$wxUSE_PROGRESSDLG" = yes; then
9399 echo "$as_me:$LINENO: result: yes" >&5
9400echo "${ECHO_T}yes" >&6
9401 else
9402 echo "$as_me:$LINENO: result: no" >&5
9403echo "${ECHO_T}no" >&6
9404 fi
9405
9406
9407 enablestring=
9408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9409echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9410 no_cache=0
9411 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9412if test "${enable_wizarddlg+set}" = set; then
9413 enableval="$enable_wizarddlg"
9414
9415 if test "$enableval" = yes; then
9416 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9417 else
9418 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9419 fi
9420
9421else
9422
9423 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9424 if test "x$LINE" != x ; then
9425 eval "DEFAULT_$LINE"
9426 else
9427 no_cache=1
9428 fi
9429
9430 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9431
9432fi;
9433
9434 eval "$ac_cv_use_wizarddlg"
9435 if test "$no_cache" != 1; then
9436 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9437 fi
9438
9439 if test "$wxUSE_WIZARDDLG" = yes; then
9440 echo "$as_me:$LINENO: result: yes" >&5
9441echo "${ECHO_T}yes" >&6
9442 else
9443 echo "$as_me:$LINENO: result: no" >&5
9444echo "${ECHO_T}no" >&6
9445 fi
9446
9447
9448
9449
9450 enablestring=
9451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9452echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9453 no_cache=0
9454 # Check whether --enable-menus or --disable-menus was given.
9455if test "${enable_menus+set}" = set; then
9456 enableval="$enable_menus"
9457
9458 if test "$enableval" = yes; then
9459 ac_cv_use_menus='wxUSE_MENUS=yes'
9460 else
9461 ac_cv_use_menus='wxUSE_MENUS=no'
9462 fi
9463
9464else
9465
9466 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9467 if test "x$LINE" != x ; then
9468 eval "DEFAULT_$LINE"
9469 else
9470 no_cache=1
9471 fi
9472
9473 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9474
9475fi;
9476
9477 eval "$ac_cv_use_menus"
9478 if test "$no_cache" != 1; then
9479 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9480 fi
9481
9482 if test "$wxUSE_MENUS" = yes; then
9483 echo "$as_me:$LINENO: result: yes" >&5
9484echo "${ECHO_T}yes" >&6
9485 else
9486 echo "$as_me:$LINENO: result: no" >&5
9487echo "${ECHO_T}no" >&6
9488 fi
9489
9490
9491 enablestring=
9492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9493echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9494 no_cache=0
9495 # Check whether --enable-miniframe or --disable-miniframe was given.
9496if test "${enable_miniframe+set}" = set; then
9497 enableval="$enable_miniframe"
9498
9499 if test "$enableval" = yes; then
9500 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9501 else
9502 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9503 fi
9504
9505else
9506
9507 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9508 if test "x$LINE" != x ; then
9509 eval "DEFAULT_$LINE"
9510 else
9511 no_cache=1
9512 fi
9513
9514 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9515
9516fi;
9517
9518 eval "$ac_cv_use_miniframe"
9519 if test "$no_cache" != 1; then
9520 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9521 fi
9522
9523 if test "$wxUSE_MINIFRAME" = yes; then
9524 echo "$as_me:$LINENO: result: yes" >&5
9525echo "${ECHO_T}yes" >&6
9526 else
9527 echo "$as_me:$LINENO: result: no" >&5
9528echo "${ECHO_T}no" >&6
9529 fi
9530
9531
9532 enablestring=
9533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9534echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9535 no_cache=0
9536 # Check whether --enable-tooltips or --disable-tooltips was given.
9537if test "${enable_tooltips+set}" = set; then
9538 enableval="$enable_tooltips"
9539
9540 if test "$enableval" = yes; then
9541 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9542 else
9543 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9544 fi
9545
9546else
9547
9548 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9549 if test "x$LINE" != x ; then
9550 eval "DEFAULT_$LINE"
9551 else
9552 no_cache=1
9553 fi
9554
9555 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9556
9557fi;
9558
9559 eval "$ac_cv_use_tooltips"
9560 if test "$no_cache" != 1; then
9561 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9562 fi
9563
9564 if test "$wxUSE_TOOLTIPS" = yes; then
9565 echo "$as_me:$LINENO: result: yes" >&5
9566echo "${ECHO_T}yes" >&6
9567 else
9568 echo "$as_me:$LINENO: result: no" >&5
9569echo "${ECHO_T}no" >&6
9570 fi
9571
9572
9573 enablestring=
9574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9575echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9576 no_cache=0
9577 # Check whether --enable-splines or --disable-splines was given.
9578if test "${enable_splines+set}" = set; then
9579 enableval="$enable_splines"
9580
9581 if test "$enableval" = yes; then
9582 ac_cv_use_splines='wxUSE_SPLINES=yes'
9583 else
9584 ac_cv_use_splines='wxUSE_SPLINES=no'
9585 fi
9586
9587else
9588
9589 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9590 if test "x$LINE" != x ; then
9591 eval "DEFAULT_$LINE"
9592 else
9593 no_cache=1
9594 fi
9595
9596 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9597
9598fi;
9599
9600 eval "$ac_cv_use_splines"
9601 if test "$no_cache" != 1; then
9602 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9603 fi
9604
9605 if test "$wxUSE_SPLINES" = yes; then
9606 echo "$as_me:$LINENO: result: yes" >&5
9607echo "${ECHO_T}yes" >&6
9608 else
9609 echo "$as_me:$LINENO: result: no" >&5
9610echo "${ECHO_T}no" >&6
9611 fi
9612
9613
9614 enablestring=
9615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9616echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9617 no_cache=0
9618 # Check whether --enable-validators or --disable-validators was given.
9619if test "${enable_validators+set}" = set; then
9620 enableval="$enable_validators"
9621
9622 if test "$enableval" = yes; then
9623 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9624 else
9625 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9626 fi
9627
9628else
9629
9630 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9631 if test "x$LINE" != x ; then
9632 eval "DEFAULT_$LINE"
9633 else
9634 no_cache=1
9635 fi
9636
9637 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9638
9639fi;
9640
9641 eval "$ac_cv_use_validators"
9642 if test "$no_cache" != 1; then
9643 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9644 fi
9645
9646 if test "$wxUSE_VALIDATORS" = yes; then
9647 echo "$as_me:$LINENO: result: yes" >&5
9648echo "${ECHO_T}yes" >&6
9649 else
9650 echo "$as_me:$LINENO: result: no" >&5
9651echo "${ECHO_T}no" >&6
9652 fi
9653
9654
9655 enablestring=
9656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9657echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9658 no_cache=0
9659 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9660if test "${enable_busyinfo+set}" = set; then
9661 enableval="$enable_busyinfo"
9662
9663 if test "$enableval" = yes; then
9664 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9665 else
9666 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9667 fi
9668
9669else
9670
9671 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9672 if test "x$LINE" != x ; then
9673 eval "DEFAULT_$LINE"
9674 else
9675 no_cache=1
9676 fi
9677
9678 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9679
9680fi;
9681
9682 eval "$ac_cv_use_busyinfo"
9683 if test "$no_cache" != 1; then
9684 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9685 fi
9686
9687 if test "$wxUSE_BUSYINFO" = yes; then
9688 echo "$as_me:$LINENO: result: yes" >&5
9689echo "${ECHO_T}yes" >&6
9690 else
9691 echo "$as_me:$LINENO: result: no" >&5
9692echo "${ECHO_T}no" >&6
9693 fi
9694
9695
9696 enablestring=
9697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9698echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9699 no_cache=0
9700 # Check whether --enable-joystick or --disable-joystick was given.
9701if test "${enable_joystick+set}" = set; then
9702 enableval="$enable_joystick"
9703
9704 if test "$enableval" = yes; then
9705 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9706 else
9707 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9708 fi
9709
9710else
9711
9712 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9713 if test "x$LINE" != x ; then
9714 eval "DEFAULT_$LINE"
9715 else
9716 no_cache=1
9717 fi
9718
9719 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9720
9721fi;
9722
9723 eval "$ac_cv_use_joystick"
9724 if test "$no_cache" != 1; then
9725 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9726 fi
9727
9728 if test "$wxUSE_JOYSTICK" = yes; then
9729 echo "$as_me:$LINENO: result: yes" >&5
9730echo "${ECHO_T}yes" >&6
9731 else
9732 echo "$as_me:$LINENO: result: no" >&5
9733echo "${ECHO_T}no" >&6
9734 fi
9735
9736
9737 enablestring=
9738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9739echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9740 no_cache=0
9741 # Check whether --enable-metafile or --disable-metafile was given.
9742if test "${enable_metafile+set}" = set; then
9743 enableval="$enable_metafile"
9744
9745 if test "$enableval" = yes; then
9746 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9747 else
9748 ac_cv_use_metafile='wxUSE_METAFILE=no'
9749 fi
9750
9751else
9752
9753 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9754 if test "x$LINE" != x ; then
9755 eval "DEFAULT_$LINE"
9756 else
9757 no_cache=1
9758 fi
9759
9760 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9761
9762fi;
9763
9764 eval "$ac_cv_use_metafile"
9765 if test "$no_cache" != 1; then
9766 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9767 fi
9768
9769 if test "$wxUSE_METAFILE" = yes; then
9770 echo "$as_me:$LINENO: result: yes" >&5
9771echo "${ECHO_T}yes" >&6
9772 else
9773 echo "$as_me:$LINENO: result: no" >&5
9774echo "${ECHO_T}no" >&6
9775 fi
9776
9777
9778 enablestring=
9779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9780echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9781 no_cache=0
9782 # Check whether --enable-dragimage or --disable-dragimage was given.
9783if test "${enable_dragimage+set}" = set; then
9784 enableval="$enable_dragimage"
9785
9786 if test "$enableval" = yes; then
9787 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9788 else
9789 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9790 fi
9791
9792else
9793
9794 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9795 if test "x$LINE" != x ; then
9796 eval "DEFAULT_$LINE"
9797 else
9798 no_cache=1
9799 fi
9800
9801 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9802
9803fi;
9804
9805 eval "$ac_cv_use_dragimage"
9806 if test "$no_cache" != 1; then
9807 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9808 fi
9809
9810 if test "$wxUSE_DRAGIMAGE" = yes; then
9811 echo "$as_me:$LINENO: result: yes" >&5
9812echo "${ECHO_T}yes" >&6
9813 else
9814 echo "$as_me:$LINENO: result: no" >&5
9815echo "${ECHO_T}no" >&6
9816 fi
9817
9818
9819 enablestring=
9820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9821echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9822 no_cache=0
9823 # Check whether --enable-accessibility or --disable-accessibility was given.
9824if test "${enable_accessibility+set}" = set; then
9825 enableval="$enable_accessibility"
9826
9827 if test "$enableval" = yes; then
9828 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9829 else
9830 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9831 fi
9832
9833else
9834
9835 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9836 if test "x$LINE" != x ; then
9837 eval "DEFAULT_$LINE"
9838 else
9839 no_cache=1
9840 fi
9841
9842 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9843
9844fi;
9845
9846 eval "$ac_cv_use_accessibility"
9847 if test "$no_cache" != 1; then
9848 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9849 fi
9850
9851 if test "$wxUSE_ACCESSIBILITY" = yes; then
9852 echo "$as_me:$LINENO: result: yes" >&5
9853echo "${ECHO_T}yes" >&6
9854 else
9855 echo "$as_me:$LINENO: result: no" >&5
9856echo "${ECHO_T}no" >&6
9857 fi
9858
9859
9860
9861
9862 enablestring=
9863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9864echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9865 no_cache=0
9866 # Check whether --enable-palette or --disable-palette was given.
9867if test "${enable_palette+set}" = set; then
9868 enableval="$enable_palette"
9869
9870 if test "$enableval" = yes; then
9871 ac_cv_use_palette='wxUSE_PALETTE=yes'
9872 else
9873 ac_cv_use_palette='wxUSE_PALETTE=no'
9874 fi
9875
9876else
9877
9878 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9879 if test "x$LINE" != x ; then
9880 eval "DEFAULT_$LINE"
9881 else
9882 no_cache=1
9883 fi
9884
9885 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9886
9887fi;
9888
9889 eval "$ac_cv_use_palette"
9890 if test "$no_cache" != 1; then
9891 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9892 fi
9893
9894 if test "$wxUSE_PALETTE" = yes; then
9895 echo "$as_me:$LINENO: result: yes" >&5
9896echo "${ECHO_T}yes" >&6
9897 else
9898 echo "$as_me:$LINENO: result: no" >&5
9899echo "${ECHO_T}no" >&6
9900 fi
9901
9902
9903 enablestring=
9904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9905echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9906 no_cache=0
9907 # Check whether --enable-image or --disable-image was given.
9908if test "${enable_image+set}" = set; then
9909 enableval="$enable_image"
9910
9911 if test "$enableval" = yes; then
9912 ac_cv_use_image='wxUSE_IMAGE=yes'
9913 else
9914 ac_cv_use_image='wxUSE_IMAGE=no'
9915 fi
9916
9917else
9918
9919 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9920 if test "x$LINE" != x ; then
9921 eval "DEFAULT_$LINE"
9922 else
9923 no_cache=1
9924 fi
9925
9926 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9927
9928fi;
9929
9930 eval "$ac_cv_use_image"
9931 if test "$no_cache" != 1; then
9932 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9933 fi
9934
9935 if test "$wxUSE_IMAGE" = yes; then
9936 echo "$as_me:$LINENO: result: yes" >&5
9937echo "${ECHO_T}yes" >&6
9938 else
9939 echo "$as_me:$LINENO: result: no" >&5
9940echo "${ECHO_T}no" >&6
9941 fi
9942
9943
9944 enablestring=
9945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9946echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9947 no_cache=0
9948 # Check whether --enable-gif or --disable-gif was given.
9949if test "${enable_gif+set}" = set; then
9950 enableval="$enable_gif"
9951
9952 if test "$enableval" = yes; then
9953 ac_cv_use_gif='wxUSE_GIF=yes'
9954 else
9955 ac_cv_use_gif='wxUSE_GIF=no'
9956 fi
9957
9958else
9959
9960 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9961 if test "x$LINE" != x ; then
9962 eval "DEFAULT_$LINE"
9963 else
9964 no_cache=1
9965 fi
9966
9967 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9968
9969fi;
9970
9971 eval "$ac_cv_use_gif"
9972 if test "$no_cache" != 1; then
9973 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9974 fi
9975
9976 if test "$wxUSE_GIF" = yes; then
9977 echo "$as_me:$LINENO: result: yes" >&5
9978echo "${ECHO_T}yes" >&6
9979 else
9980 echo "$as_me:$LINENO: result: no" >&5
9981echo "${ECHO_T}no" >&6
9982 fi
9983
9984
9985 enablestring=
9986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9987echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9988 no_cache=0
9989 # Check whether --enable-pcx or --disable-pcx was given.
9990if test "${enable_pcx+set}" = set; then
9991 enableval="$enable_pcx"
9992
9993 if test "$enableval" = yes; then
9994 ac_cv_use_pcx='wxUSE_PCX=yes'
9995 else
9996 ac_cv_use_pcx='wxUSE_PCX=no'
9997 fi
9998
9999else
10000
10001 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10002 if test "x$LINE" != x ; then
10003 eval "DEFAULT_$LINE"
10004 else
10005 no_cache=1
10006 fi
10007
10008 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10009
10010fi;
10011
10012 eval "$ac_cv_use_pcx"
10013 if test "$no_cache" != 1; then
10014 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10015 fi
10016
10017 if test "$wxUSE_PCX" = yes; then
10018 echo "$as_me:$LINENO: result: yes" >&5
10019echo "${ECHO_T}yes" >&6
10020 else
10021 echo "$as_me:$LINENO: result: no" >&5
10022echo "${ECHO_T}no" >&6
10023 fi
10024
10025
10026 enablestring=
10027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10028echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10029 no_cache=0
10030 # Check whether --enable-iff or --disable-iff was given.
10031if test "${enable_iff+set}" = set; then
10032 enableval="$enable_iff"
10033
10034 if test "$enableval" = yes; then
10035 ac_cv_use_iff='wxUSE_IFF=yes'
10036 else
10037 ac_cv_use_iff='wxUSE_IFF=no'
10038 fi
10039
10040else
10041
10042 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10043 if test "x$LINE" != x ; then
10044 eval "DEFAULT_$LINE"
10045 else
10046 no_cache=1
10047 fi
10048
10049 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10050
10051fi;
10052
10053 eval "$ac_cv_use_iff"
10054 if test "$no_cache" != 1; then
10055 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10056 fi
10057
10058 if test "$wxUSE_IFF" = yes; then
10059 echo "$as_me:$LINENO: result: yes" >&5
10060echo "${ECHO_T}yes" >&6
10061 else
10062 echo "$as_me:$LINENO: result: no" >&5
10063echo "${ECHO_T}no" >&6
10064 fi
10065
10066
10067 enablestring=
10068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10069echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10070 no_cache=0
10071 # Check whether --enable-pnm or --disable-pnm was given.
10072if test "${enable_pnm+set}" = set; then
10073 enableval="$enable_pnm"
10074
10075 if test "$enableval" = yes; then
10076 ac_cv_use_pnm='wxUSE_PNM=yes'
10077 else
10078 ac_cv_use_pnm='wxUSE_PNM=no'
10079 fi
10080
10081else
10082
10083 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10084 if test "x$LINE" != x ; then
10085 eval "DEFAULT_$LINE"
10086 else
10087 no_cache=1
10088 fi
10089
10090 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10091
10092fi;
10093
10094 eval "$ac_cv_use_pnm"
10095 if test "$no_cache" != 1; then
10096 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10097 fi
10098
10099 if test "$wxUSE_PNM" = yes; then
10100 echo "$as_me:$LINENO: result: yes" >&5
10101echo "${ECHO_T}yes" >&6
10102 else
10103 echo "$as_me:$LINENO: result: no" >&5
10104echo "${ECHO_T}no" >&6
10105 fi
10106
10107
10108 enablestring=
10109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10110echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10111 no_cache=0
10112 # Check whether --enable-xpm or --disable-xpm was given.
10113if test "${enable_xpm+set}" = set; then
10114 enableval="$enable_xpm"
10115
10116 if test "$enableval" = yes; then
10117 ac_cv_use_xpm='wxUSE_XPM=yes'
10118 else
10119 ac_cv_use_xpm='wxUSE_XPM=no'
10120 fi
10121
10122else
10123
10124 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10125 if test "x$LINE" != x ; then
10126 eval "DEFAULT_$LINE"
10127 else
10128 no_cache=1
10129 fi
10130
10131 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10132
10133fi;
10134
10135 eval "$ac_cv_use_xpm"
10136 if test "$no_cache" != 1; then
10137 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10138 fi
10139
10140 if test "$wxUSE_XPM" = yes; then
10141 echo "$as_me:$LINENO: result: yes" >&5
10142echo "${ECHO_T}yes" >&6
10143 else
10144 echo "$as_me:$LINENO: result: no" >&5
10145echo "${ECHO_T}no" >&6
10146 fi
10147
10148
10149 enablestring=
10150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10151echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10152 no_cache=0
10153 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10154if test "${enable_ico_cur+set}" = set; then
10155 enableval="$enable_ico_cur"
10156
10157 if test "$enableval" = yes; then
10158 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10159 else
10160 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10161 fi
10162
10163else
10164
10165 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10166 if test "x$LINE" != x ; then
10167 eval "DEFAULT_$LINE"
10168 else
10169 no_cache=1
10170 fi
10171
10172 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10173
10174fi;
10175
10176 eval "$ac_cv_use_ico_cur"
10177 if test "$no_cache" != 1; then
10178 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10179 fi
10180
10181 if test "$wxUSE_ICO_CUR" = yes; then
10182 echo "$as_me:$LINENO: result: yes" >&5
10183echo "${ECHO_T}yes" >&6
10184 else
10185 echo "$as_me:$LINENO: result: no" >&5
10186echo "${ECHO_T}no" >&6
10187 fi
10188
10189
10190fi
10191
10192
10193
ceec2216
RL
10194# Check whether --with-flavour or --without-flavour was given.
10195if test "${with_flavour+set}" = set; then
10196 withval="$with_flavour"
10197 WX_FLAVOUR="$withval"
10198fi;
10199
10200
10201
a848cd7e
SC
10202 enablestring=
10203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10204echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10205 no_cache=0
10206 # Check whether --enable-official_build or --disable-official_build was given.
10207if test "${enable_official_build+set}" = set; then
10208 enableval="$enable_official_build"
10209
10210 if test "$enableval" = yes; then
10211 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10212 else
10213 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10214 fi
10215
10216else
10217
10218 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10219 if test "x$LINE" != x ; then
10220 eval "DEFAULT_$LINE"
10221 else
10222 no_cache=1
10223 fi
10224
10225 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10226
10227fi;
10228
10229 eval "$ac_cv_use_official_build"
10230 if test "$no_cache" != 1; then
10231 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10232 fi
10233
10234 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10235 echo "$as_me:$LINENO: result: yes" >&5
10236echo "${ECHO_T}yes" >&6
10237 else
10238 echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6
10240 fi
10241
10242# Check whether --enable-vendor or --disable-vendor was given.
10243if test "${enable_vendor+set}" = set; then
10244 enableval="$enable_vendor"
10245 VENDOR="$enableval"
10246fi;
10247if test "x$VENDOR" = "x"; then
10248 VENDOR="custom"
10249fi
10250
a848cd7e
SC
10251
10252
10253
10254 echo "saving argument cache $wx_arg_cache_file"
10255 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10256
10257
10258
10259echo "$as_me:$LINENO: checking for toolkit" >&5
10260echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10261
10262# In Wine, we need to default to MSW, not GTK or MOTIF
10263if test "$wxUSE_WINE" = "yes"; then
10264 DEFAULT_DEFAULT_wxUSE_GTK=0
10265 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10266 DEFAULT_DEFAULT_wxUSE_MSW=1
10267 wxUSE_SHARED=no
10268fi
10269
10270if test "$wxUSE_GUI" = "yes"; then
10271
10272 if test "$USE_BEOS" = 1; then
10273 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10274echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10275 { (exit 1); exit 1; }; }
10276 fi
10277
10278 if test "$TOOLKIT_GIVEN" = 1; then
10279 for toolkit in `echo $ALL_TOOLKITS`; do
10280 var=wxUSE_$toolkit
10281 eval "value=\$${var}"
10282 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10283 done
10284 else
10285 for toolkit in `echo $ALL_TOOLKITS`; do
10286 if test "$has_toolkit_in_cache" != 1; then
10287 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10288 else
10289 var=DEFAULT_wxUSE_$toolkit
10290 fi
10291 eval "wxUSE_$toolkit=\$${var}"
10292 done
10293 fi
10294
10295 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10296 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10297 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10298
10299 case "${host}" in
10300 *-pc-os2_emx | *-pc-os2-emx )
10301 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10302 esac
10303
10304 case "$NUM_TOOLKITS" in
10305 1)
10306 ;;
10307 0)
10308 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10309echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10310 { (exit 1); exit 1; }; }
10311 ;;
10312 *)
10313 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10314echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10315 { (exit 1); exit 1; }; }
10316 esac
10317
10318 for toolkit in `echo $ALL_TOOLKITS`; do
10319 var=wxUSE_$toolkit
10320 eval "value=\$${var}"
10321 if test "x$value" != x; then
10322 cache_var=CACHE_$toolkit
10323 eval "cache=\$${cache_var}"
10324 if test "$cache" = 1; then
10325 echo "$var=$value" >> ${wx_arg_cache_file}
10326 fi
10327 if test "$value" = 1; then
10328 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10329 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10330echo "${ECHO_T}$toolkit_echo" >&6
10331 fi
10332 fi
10333 done
10334else
10335 if test "x$host_alias" != "x"; then
10336 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10337echo "${ECHO_T}base ($host_alias hosted) only" >&6
10338 else
10339 echo "$as_me:$LINENO: result: base only" >&5
10340echo "${ECHO_T}base only" >&6
10341 fi
10342fi
10343
10344wants_win32=0
10345doesnt_want_win32=0
10346case "${host}" in
10347 *-*-cygwin*)
10348 if test "$wxUSE_MSW" = 1 ; then
10349 wants_win32=1
10350 else
10351 doesnt_want_win32=1
10352 fi
10353 ;;
10354 *-*-mingw*)
10355 wants_win32=1
10356 ;;
10357esac
10358
10359if test "$wxUSE_WINE" = "yes"; then
10360 wants_win32=1
10361 CC=winegcc
10362 CXX=wineg++
10363 RESCOMP=wrc
10364 LDFLAGS_GUI="-mwindows"
10365fi
10366
10367if test "$wants_win32" = 1 ; then
10368 USE_UNIX=0
10369 USE_WIN32=1
10370 cat >>confdefs.h <<\_ACEOF
10371#define __WIN32__ 1
10372_ACEOF
10373
10374 cat >>confdefs.h <<\_ACEOF
10375#define __WIN95__ 1
10376_ACEOF
10377
10378 cat >>confdefs.h <<\_ACEOF
10379#define __WINDOWS__ 1
10380_ACEOF
10381
10382 cat >>confdefs.h <<\_ACEOF
10383#define __GNUWIN32__ 1
10384_ACEOF
10385
10386 cat >>confdefs.h <<\_ACEOF
10387#define STRICT 1
10388_ACEOF
10389
10390 cat >>confdefs.h <<\_ACEOF
10391#define WINVER 0x0400
10392_ACEOF
10393
10394fi
10395if test "$doesnt_want_win32" = 1 ; then
10396 USE_UNIX=1
10397 USE_WIN32=0
10398fi
10399
10400if test "$USE_UNIX" = 1 ; then
10401 wxUSE_UNIX=yes
10402 cat >>confdefs.h <<\_ACEOF
10403#define __UNIX__ 1
10404_ACEOF
10405
10406fi
10407
10408
10409cat >confcache <<\_ACEOF
10410# This file is a shell script that caches the results of configure
10411# tests run on this system so they can be shared between configure
10412# scripts and configure runs, see configure's option --config-cache.
10413# It is not useful on other systems. If it contains results you don't
10414# want to keep, you may remove or edit it.
10415#
10416# config.status only pays attention to the cache file if you give it
10417# the --recheck option to rerun configure.
10418#
10419# `ac_cv_env_foo' variables (set or unset) will be overridden when
10420# loading this file, other *unset* `ac_cv_foo' will be assigned the
10421# following values.
10422
10423_ACEOF
10424
10425# The following way of writing the cache mishandles newlines in values,
10426# but we know of no workaround that is simple, portable, and efficient.
10427# So, don't put newlines in cache variables' values.
10428# Ultrix sh set writes to stderr and can't be redirected directly,
10429# and sets the high bit in the cache file unless we assign to the vars.
10430{
10431 (set) 2>&1 |
10432 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10433 *ac_space=\ *)
10434 # `set' does not quote correctly, so add quotes (double-quote
10435 # substitution turns \\\\ into \\, and sed turns \\ into \).
10436 sed -n \
ac1cb8d3
VS
10437 "s/'/'\\\\''/g;
10438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10439 ;;
10440 *)
10441 # `set' quotes correctly as required by POSIX, so do not add quotes.
10442 sed -n \
ac1cb8d3 10443 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10444 ;;
10445 esac;
10446} |
10447 sed '
10448 t clear
10449 : clear
10450 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10451 t end
10452 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10453 : end' >>confcache
10454if diff $cache_file confcache >/dev/null 2>&1; then :; else
10455 if test -w $cache_file; then
10456 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10457 cat confcache >$cache_file
10458 else
10459 echo "not updating unwritable cache $cache_file"
10460 fi
10461fi
10462rm -f confcache
10463
10464if test "$build" != "$host" ; then
1e9e8aba 10465 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10466 CC=$host_alias-gcc
10467 CXX=$host_alias-c++
10468 AR=$host_alias-ar
10469 RANLIB=$host_alias-ranlib
10470 DLLTOOL=$host_alias-dlltool
10471 RESCOMP=$host_alias-windres
a848cd7e 10472 STRIP=$host_alias-strip
1e9e8aba
DE
10473 elif test "x$CC" '!=' "x"; then
10474 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10475 else
10476 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10477echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10478 { (exit 1); exit 1; }; }
10479 fi
10480fi
10481
10482CFLAGS=${CFLAGS:=}
10483ac_ext=c
10484ac_cpp='$CPP $CPPFLAGS'
10485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10487ac_compiler_gnu=$ac_cv_c_compiler_gnu
10488if test -n "$ac_tool_prefix"; then
10489 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10490set dummy ${ac_tool_prefix}gcc; ac_word=$2
10491echo "$as_me:$LINENO: checking for $ac_word" >&5
10492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10493if test "${ac_cv_prog_CC+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495else
10496 if test -n "$CC"; then
10497 ac_cv_prog_CC="$CC" # Let the user override the test.
10498else
10499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $PATH
10501do
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10506 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10509 fi
10510done
10511done
10512
10513fi
10514fi
10515CC=$ac_cv_prog_CC
10516if test -n "$CC"; then
10517 echo "$as_me:$LINENO: result: $CC" >&5
10518echo "${ECHO_T}$CC" >&6
10519else
10520 echo "$as_me:$LINENO: result: no" >&5
10521echo "${ECHO_T}no" >&6
10522fi
10523
10524fi
10525if test -z "$ac_cv_prog_CC"; then
10526 ac_ct_CC=$CC
10527 # Extract the first word of "gcc", so it can be a program name with args.
10528set dummy gcc; ac_word=$2
10529echo "$as_me:$LINENO: checking for $ac_word" >&5
10530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10531if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533else
10534 if test -n "$ac_ct_CC"; then
10535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10536else
10537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538for as_dir in $PATH
10539do
10540 IFS=$as_save_IFS
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10544 ac_cv_prog_ac_ct_CC="gcc"
10545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10546 break 2
10547 fi
10548done
10549done
10550
10551fi
10552fi
10553ac_ct_CC=$ac_cv_prog_ac_ct_CC
10554if test -n "$ac_ct_CC"; then
10555 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10556echo "${ECHO_T}$ac_ct_CC" >&6
10557else
10558 echo "$as_me:$LINENO: result: no" >&5
10559echo "${ECHO_T}no" >&6
10560fi
10561
10562 CC=$ac_ct_CC
10563else
10564 CC="$ac_cv_prog_CC"
10565fi
10566
10567if test -z "$CC"; then
10568 if test -n "$ac_tool_prefix"; then
10569 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10570set dummy ${ac_tool_prefix}cc; ac_word=$2
10571echo "$as_me:$LINENO: checking for $ac_word" >&5
10572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10573if test "${ac_cv_prog_CC+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576 if test -n "$CC"; then
10577 ac_cv_prog_CC="$CC" # Let the user override the test.
10578else
10579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580for as_dir in $PATH
10581do
10582 IFS=$as_save_IFS
10583 test -z "$as_dir" && as_dir=.
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10586 ac_cv_prog_CC="${ac_tool_prefix}cc"
10587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10588 break 2
10589 fi
10590done
10591done
10592
10593fi
10594fi
10595CC=$ac_cv_prog_CC
10596if test -n "$CC"; then
10597 echo "$as_me:$LINENO: result: $CC" >&5
10598echo "${ECHO_T}$CC" >&6
10599else
10600 echo "$as_me:$LINENO: result: no" >&5
10601echo "${ECHO_T}no" >&6
10602fi
10603
10604fi
10605if test -z "$ac_cv_prog_CC"; then
10606 ac_ct_CC=$CC
10607 # Extract the first word of "cc", so it can be a program name with args.
10608set dummy cc; ac_word=$2
10609echo "$as_me:$LINENO: checking for $ac_word" >&5
10610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10611if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613else
10614 if test -n "$ac_ct_CC"; then
10615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10616else
10617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618for as_dir in $PATH
10619do
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10624 ac_cv_prog_ac_ct_CC="cc"
10625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 break 2
10627 fi
10628done
10629done
10630
10631fi
10632fi
10633ac_ct_CC=$ac_cv_prog_ac_ct_CC
10634if test -n "$ac_ct_CC"; then
10635 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10636echo "${ECHO_T}$ac_ct_CC" >&6
10637else
10638 echo "$as_me:$LINENO: result: no" >&5
10639echo "${ECHO_T}no" >&6
10640fi
10641
10642 CC=$ac_ct_CC
10643else
10644 CC="$ac_cv_prog_CC"
10645fi
10646
10647fi
10648if test -z "$CC"; then
10649 # Extract the first word of "cc", so it can be a program name with args.
10650set dummy cc; ac_word=$2
10651echo "$as_me:$LINENO: checking for $ac_word" >&5
10652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10653if test "${ac_cv_prog_CC+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10655else
10656 if test -n "$CC"; then
10657 ac_cv_prog_CC="$CC" # Let the user override the test.
10658else
10659 ac_prog_rejected=no
10660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661for as_dir in $PATH
10662do
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10667 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10668 ac_prog_rejected=yes
10669 continue
10670 fi
10671 ac_cv_prog_CC="cc"
10672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 break 2
10674 fi
10675done
10676done
10677
10678if test $ac_prog_rejected = yes; then
10679 # We found a bogon in the path, so make sure we never use it.
10680 set dummy $ac_cv_prog_CC
10681 shift
10682 if test $# != 0; then
10683 # We chose a different compiler from the bogus one.
10684 # However, it has the same basename, so the bogon will be chosen
10685 # first if we set CC to just the basename; use the full file name.
10686 shift
10687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10688 fi
10689fi
10690fi
10691fi
10692CC=$ac_cv_prog_CC
10693if test -n "$CC"; then
10694 echo "$as_me:$LINENO: result: $CC" >&5
10695echo "${ECHO_T}$CC" >&6
10696else
10697 echo "$as_me:$LINENO: result: no" >&5
10698echo "${ECHO_T}no" >&6
10699fi
10700
10701fi
10702if test -z "$CC"; then
10703 if test -n "$ac_tool_prefix"; then
10704 for ac_prog in cl
10705 do
10706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10708echo "$as_me:$LINENO: checking for $ac_word" >&5
10709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10710if test "${ac_cv_prog_CC+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712else
10713 if test -n "$CC"; then
10714 ac_cv_prog_CC="$CC" # Let the user override the test.
10715else
10716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $PATH
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10726 fi
10727done
10728done
10729
10730fi
10731fi
10732CC=$ac_cv_prog_CC
10733if test -n "$CC"; then
10734 echo "$as_me:$LINENO: result: $CC" >&5
10735echo "${ECHO_T}$CC" >&6
10736else
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
10739fi
10740
10741 test -n "$CC" && break
10742 done
10743fi
10744if test -z "$CC"; then
10745 ac_ct_CC=$CC
10746 for ac_prog in cl
10747do
10748 # Extract the first word of "$ac_prog", so it can be a program name with args.
10749set dummy $ac_prog; ac_word=$2
10750echo "$as_me:$LINENO: checking for $ac_word" >&5
10751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10752if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754else
10755 if test -n "$ac_ct_CC"; then
10756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10757else
10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759for as_dir in $PATH
10760do
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10765 ac_cv_prog_ac_ct_CC="$ac_prog"
10766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10768 fi
10769done
10770done
10771
10772fi
10773fi
10774ac_ct_CC=$ac_cv_prog_ac_ct_CC
10775if test -n "$ac_ct_CC"; then
10776 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10777echo "${ECHO_T}$ac_ct_CC" >&6
10778else
10779 echo "$as_me:$LINENO: result: no" >&5
10780echo "${ECHO_T}no" >&6
10781fi
10782
10783 test -n "$ac_ct_CC" && break
10784done
10785
10786 CC=$ac_ct_CC
10787fi
10788
10789fi
10790
10791
10792test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10793See \`config.log' for more details." >&5
10794echo "$as_me: error: no acceptable C compiler found in \$PATH
10795See \`config.log' for more details." >&2;}
10796 { (exit 1); exit 1; }; }
10797
10798# Provide some information about the compiler.
10799echo "$as_me:$LINENO:" \
10800 "checking for C compiler version" >&5
10801ac_compiler=`set X $ac_compile; echo $2`
10802{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10803 (eval $ac_compiler --version </dev/null >&5) 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }
10807{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10808 (eval $ac_compiler -v </dev/null >&5) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }
10812{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10813 (eval $ac_compiler -V </dev/null >&5) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }
10817
10818cat >conftest.$ac_ext <<_ACEOF
10819/* confdefs.h. */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
10823/* end confdefs.h. */
10824
10825int
10826main ()
10827{
10828
10829 ;
10830 return 0;
10831}
10832_ACEOF
10833ac_clean_files_save=$ac_clean_files
10834ac_clean_files="$ac_clean_files a.out a.exe b.out"
10835# Try to create an executable without -o first, disregard a.out.
10836# It will help us diagnose broken compilers, and finding out an intuition
10837# of exeext.
ac1cb8d3
VS
10838echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10839echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10840ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10841if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10842 (eval $ac_link_default) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; then
10846 # Find the output, starting from the most likely. This scheme is
10847# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10848# resort.
10849
10850# Be careful to initialize this variable, since it used to be cached.
10851# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10852ac_cv_exeext=
10853# b.out is created by i960 compilers.
10854for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10855do
10856 test -f "$ac_file" || continue
10857 case $ac_file in
10858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10859 ;;
a848cd7e 10860 conftest.$ac_ext )
ac1cb8d3
VS
10861 # This is the source file.
10862 ;;
a848cd7e 10863 [ab].out )
ac1cb8d3
VS
10864 # We found the default executable, but exeext='' is most
10865 # certainly right.
10866 break;;
a848cd7e 10867 *.* )
ac1cb8d3
VS
10868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10869 # FIXME: I believe we export ac_cv_exeext for Libtool,
10870 # but it would be cool to find out if it's true. Does anybody
10871 # maintain Libtool? --akim.
10872 export ac_cv_exeext
10873 break;;
a848cd7e 10874 * )
ac1cb8d3 10875 break;;
a848cd7e
SC
10876 esac
10877done
10878else
10879 echo "$as_me: failed program was:" >&5
10880sed 's/^/| /' conftest.$ac_ext >&5
10881
10882{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10883See \`config.log' for more details." >&5
10884echo "$as_me: error: C compiler cannot create executables
10885See \`config.log' for more details." >&2;}
10886 { (exit 77); exit 77; }; }
10887fi
10888
10889ac_exeext=$ac_cv_exeext
10890echo "$as_me:$LINENO: result: $ac_file" >&5
10891echo "${ECHO_T}$ac_file" >&6
10892
10893# Check the compiler produces executables we can run. If not, either
10894# the compiler is broken, or we cross compile.
10895echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10896echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10897# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10898# If not cross compiling, check that we can run a simple program.
10899if test "$cross_compiling" != yes; then
10900 if { ac_try='./$ac_file'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 cross_compiling=no
10907 else
10908 if test "$cross_compiling" = maybe; then
10909 cross_compiling=yes
10910 else
10911 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10912If you meant to cross compile, use \`--host'.
10913See \`config.log' for more details." >&5
10914echo "$as_me: error: cannot run C compiled programs.
10915If you meant to cross compile, use \`--host'.
10916See \`config.log' for more details." >&2;}
10917 { (exit 1); exit 1; }; }
10918 fi
10919 fi
10920fi
10921echo "$as_me:$LINENO: result: yes" >&5
10922echo "${ECHO_T}yes" >&6
10923
10924rm -f a.out a.exe conftest$ac_cv_exeext b.out
10925ac_clean_files=$ac_clean_files_save
10926# Check the compiler produces executables we can run. If not, either
10927# the compiler is broken, or we cross compile.
10928echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10929echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10930echo "$as_me:$LINENO: result: $cross_compiling" >&5
10931echo "${ECHO_T}$cross_compiling" >&6
10932
10933echo "$as_me:$LINENO: checking for suffix of executables" >&5
10934echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10936 (eval $ac_link) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; then
10940 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10941# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10942# work properly (i.e., refer to `conftest.exe'), while it won't with
10943# `rm'.
10944for ac_file in conftest.exe conftest conftest.*; do
10945 test -f "$ac_file" || continue
10946 case $ac_file in
10947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10948 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10949 export ac_cv_exeext
10950 break;;
a848cd7e
SC
10951 * ) break;;
10952 esac
10953done
10954else
10955 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10956See \`config.log' for more details." >&5
10957echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10958See \`config.log' for more details." >&2;}
10959 { (exit 1); exit 1; }; }
10960fi
10961
10962rm -f conftest$ac_cv_exeext
10963echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10964echo "${ECHO_T}$ac_cv_exeext" >&6
10965
10966rm -f conftest.$ac_ext
10967EXEEXT=$ac_cv_exeext
10968ac_exeext=$EXEEXT
10969echo "$as_me:$LINENO: checking for suffix of object files" >&5
10970echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10971if test "${ac_cv_objext+set}" = set; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10973else
10974 cat >conftest.$ac_ext <<_ACEOF
10975/* confdefs.h. */
10976_ACEOF
10977cat confdefs.h >>conftest.$ac_ext
10978cat >>conftest.$ac_ext <<_ACEOF
10979/* end confdefs.h. */
10980
10981int
10982main ()
10983{
10984
10985 ;
10986 return 0;
10987}
10988_ACEOF
10989rm -f conftest.o conftest.obj
10990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10991 (eval $ac_compile) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; then
10995 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10996 case $ac_file in
10997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10999 break;;
11000 esac
11001done
11002else
11003 echo "$as_me: failed program was:" >&5
11004sed 's/^/| /' conftest.$ac_ext >&5
11005
11006{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11007See \`config.log' for more details." >&5
11008echo "$as_me: error: cannot compute suffix of object files: cannot compile
11009See \`config.log' for more details." >&2;}
11010 { (exit 1); exit 1; }; }
11011fi
11012
11013rm -f conftest.$ac_cv_objext conftest.$ac_ext
11014fi
11015echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11016echo "${ECHO_T}$ac_cv_objext" >&6
11017OBJEXT=$ac_cv_objext
11018ac_objext=$OBJEXT
11019echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11020echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11021if test "${ac_cv_c_compiler_gnu+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11023else
11024 cat >conftest.$ac_ext <<_ACEOF
11025/* confdefs.h. */
11026_ACEOF
11027cat confdefs.h >>conftest.$ac_ext
11028cat >>conftest.$ac_ext <<_ACEOF
11029/* end confdefs.h. */
11030
11031int
11032main ()
11033{
11034#ifndef __GNUC__
11035 choke me
11036#endif
11037
11038 ;
11039 return 0;
11040}
11041_ACEOF
11042rm -f conftest.$ac_objext
11043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11044 (eval $ac_compile) 2>conftest.er1
a848cd7e 11045 ac_status=$?
ac1cb8d3
VS
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
a848cd7e
SC
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
da4486fb 11051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_compiler_gnu=yes
11064else
11065 echo "$as_me: failed program was:" >&5
11066sed 's/^/| /' conftest.$ac_ext >&5
11067
11068ac_compiler_gnu=no
11069fi
ac1cb8d3 11070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11071ac_cv_c_compiler_gnu=$ac_compiler_gnu
11072
11073fi
11074echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11075echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11076GCC=`test $ac_compiler_gnu = yes && echo yes`
11077ac_test_CFLAGS=${CFLAGS+set}
11078ac_save_CFLAGS=$CFLAGS
11079CFLAGS="-g"
11080echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11081echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11082if test "${ac_cv_prog_cc_g+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084else
11085 cat >conftest.$ac_ext <<_ACEOF
11086/* confdefs.h. */
11087_ACEOF
11088cat confdefs.h >>conftest.$ac_ext
11089cat >>conftest.$ac_ext <<_ACEOF
11090/* end confdefs.h. */
11091
11092int
11093main ()
11094{
11095
11096 ;
11097 return 0;
11098}
11099_ACEOF
11100rm -f conftest.$ac_objext
11101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11102 (eval $ac_compile) 2>conftest.er1
a848cd7e 11103 ac_status=$?
ac1cb8d3
VS
11104 grep -v '^ *+' conftest.er1 >conftest.err
11105 rm -f conftest.er1
11106 cat conftest.err >&5
a848cd7e
SC
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
da4486fb 11109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 ac_cv_prog_cc_g=yes
11122else
11123 echo "$as_me: failed program was:" >&5
11124sed 's/^/| /' conftest.$ac_ext >&5
11125
11126ac_cv_prog_cc_g=no
11127fi
ac1cb8d3 11128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11129fi
11130echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11131echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11132if test "$ac_test_CFLAGS" = set; then
11133 CFLAGS=$ac_save_CFLAGS
11134elif test $ac_cv_prog_cc_g = yes; then
11135 if test "$GCC" = yes; then
11136 CFLAGS="-g -O2"
11137 else
11138 CFLAGS="-g"
11139 fi
11140else
11141 if test "$GCC" = yes; then
11142 CFLAGS="-O2"
11143 else
11144 CFLAGS=
11145 fi
11146fi
11147echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11148echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11149if test "${ac_cv_prog_cc_stdc+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151else
11152 ac_cv_prog_cc_stdc=no
11153ac_save_CC=$CC
11154cat >conftest.$ac_ext <<_ACEOF
11155/* confdefs.h. */
11156_ACEOF
11157cat confdefs.h >>conftest.$ac_ext
11158cat >>conftest.$ac_ext <<_ACEOF
11159/* end confdefs.h. */
11160#include <stdarg.h>
11161#include <stdio.h>
11162#include <sys/types.h>
11163#include <sys/stat.h>
11164/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11165struct buf { int x; };
11166FILE * (*rcsopen) (struct buf *, struct stat *, int);
11167static char *e (p, i)
11168 char **p;
11169 int i;
11170{
11171 return p[i];
11172}
11173static char *f (char * (*g) (char **, int), char **p, ...)
11174{
11175 char *s;
11176 va_list v;
11177 va_start (v,p);
11178 s = g (p, va_arg (v,int));
11179 va_end (v);
11180 return s;
11181}
ac1cb8d3
VS
11182
11183/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11184 function prototypes and stuff, but not '\xHH' hex character constants.
11185 These don't provoke an error unfortunately, instead are silently treated
11186 as 'x'. The following induces an error, until -std1 is added to get
11187 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11188 array size at least. It's necessary to write '\x00'==0 to get something
11189 that's true only with -std1. */
11190int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11191
a848cd7e
SC
11192int test (int i, double x);
11193struct s1 {int (*f) (int a);};
11194struct s2 {int (*f) (double a);};
11195int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11196int argc;
11197char **argv;
11198int
11199main ()
11200{
11201return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11202 ;
11203 return 0;
11204}
11205_ACEOF
11206# Don't try gcc -ansi; that turns off useful extensions and
11207# breaks some systems' header files.
11208# AIX -qlanglvl=ansi
11209# Ultrix and OSF/1 -std1
11210# HP-UX 10.20 and later -Ae
11211# HP-UX older versions -Aa -D_HPUX_SOURCE
11212# SVR4 -Xc -D__EXTENSIONS__
11213for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11214do
11215 CC="$ac_save_CC $ac_arg"
11216 rm -f conftest.$ac_objext
11217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11218 (eval $ac_compile) 2>conftest.er1
a848cd7e 11219 ac_status=$?
ac1cb8d3
VS
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
a848cd7e
SC
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
da4486fb 11225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_cv_prog_cc_stdc=$ac_arg
11238break
11239else
11240 echo "$as_me: failed program was:" >&5
11241sed 's/^/| /' conftest.$ac_ext >&5
11242
11243fi
ac1cb8d3 11244rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11245done
11246rm -f conftest.$ac_ext conftest.$ac_objext
11247CC=$ac_save_CC
11248
11249fi
11250
11251case "x$ac_cv_prog_cc_stdc" in
11252 x|xno)
11253 echo "$as_me:$LINENO: result: none needed" >&5
11254echo "${ECHO_T}none needed" >&6 ;;
11255 *)
11256 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11257echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11258 CC="$CC $ac_cv_prog_cc_stdc" ;;
11259esac
11260
11261# Some people use a C++ compiler to compile C. Since we use `exit',
11262# in C++ we need to declare it. In case someone uses the same compiler
11263# for both compiling C and C++ we need to have the C++ compiler decide
11264# the declaration of exit, since it's the most demanding environment.
11265cat >conftest.$ac_ext <<_ACEOF
11266#ifndef __cplusplus
11267 choke me
11268#endif
11269_ACEOF
11270rm -f conftest.$ac_objext
11271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11272 (eval $ac_compile) 2>conftest.er1
a848cd7e 11273 ac_status=$?
ac1cb8d3
VS
11274 grep -v '^ *+' conftest.er1 >conftest.err
11275 rm -f conftest.er1
11276 cat conftest.err >&5
a848cd7e
SC
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
da4486fb 11279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; } &&
11285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 for ac_declaration in \
ac1cb8d3 11292 '' \
a848cd7e
SC
11293 'extern "C" void std::exit (int) throw (); using std::exit;' \
11294 'extern "C" void std::exit (int); using std::exit;' \
11295 'extern "C" void exit (int) throw ();' \
11296 'extern "C" void exit (int);' \
11297 'void exit (int);'
11298do
11299 cat >conftest.$ac_ext <<_ACEOF
11300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
de59c161 11305$ac_declaration
ac1cb8d3 11306#include <stdlib.h>
a848cd7e
SC
11307int
11308main ()
11309{
11310exit (42);
11311 ;
11312 return 0;
11313}
11314_ACEOF
11315rm -f conftest.$ac_objext
11316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11317 (eval $ac_compile) 2>conftest.er1
a848cd7e 11318 ac_status=$?
ac1cb8d3
VS
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
a848cd7e
SC
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
da4486fb 11324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 :
11337else
11338 echo "$as_me: failed program was:" >&5
11339sed 's/^/| /' conftest.$ac_ext >&5
11340
11341continue
11342fi
ac1cb8d3 11343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11344 cat >conftest.$ac_ext <<_ACEOF
11345/* confdefs.h. */
11346_ACEOF
11347cat confdefs.h >>conftest.$ac_ext
11348cat >>conftest.$ac_ext <<_ACEOF
11349/* end confdefs.h. */
11350$ac_declaration
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); } &&
da4486fb 11368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; } &&
11374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 break
11381else
11382 echo "$as_me: failed program was:" >&5
11383sed 's/^/| /' conftest.$ac_ext >&5
11384
11385fi
ac1cb8d3 11386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11387done
11388rm -f conftest*
11389if test -n "$ac_declaration"; then
11390 echo '#ifdef __cplusplus' >>confdefs.h
11391 echo $ac_declaration >>confdefs.h
11392 echo '#endif' >>confdefs.h
11393fi
11394
11395else
11396 echo "$as_me: failed program was:" >&5
11397sed 's/^/| /' conftest.$ac_ext >&5
11398
11399fi
ac1cb8d3 11400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11401ac_ext=c
11402ac_cpp='$CPP $CPPFLAGS'
11403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11405ac_compiler_gnu=$ac_cv_c_compiler_gnu
11406
11407
95986553
DE
11408ac_ext=c
11409ac_cpp='$CPP $CPPFLAGS'
11410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11412ac_compiler_gnu=$ac_cv_c_compiler_gnu
11413
11414echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11415echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11416if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418else
11419 cat >conftest.$ac_ext <<_ACEOF
11420/* confdefs.h. */
11421_ACEOF
11422cat confdefs.h >>conftest.$ac_ext
11423cat >>conftest.$ac_ext <<_ACEOF
11424/* end confdefs.h. */
11425
11426int
11427main ()
11428{
11429#ifndef __MWERKS__
11430 choke me
11431#endif
11432
11433 ;
11434 return 0;
11435}
11436_ACEOF
11437rm -f conftest.$ac_objext
11438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11439 (eval $ac_compile) 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; } &&
11452 { ac_try='test -s conftest.$ac_objext'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 bakefile_compiler_mwerks=yes
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463bakefile_compiler_mwerks=no
11464fi
11465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11466 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11467
11468fi
11469echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11470echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11471
11472MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11473ac_ext=c
11474ac_cpp='$CPP $CPPFLAGS'
11475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11477ac_compiler_gnu=$ac_cv_c_compiler_gnu
11478
11479
a848cd7e
SC
11480
11481ac_ext=c
11482ac_cpp='$CPP $CPPFLAGS'
11483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11485ac_compiler_gnu=$ac_cv_c_compiler_gnu
11486echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11487echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11488# On Suns, sometimes $CPP names a directory.
11489if test -n "$CPP" && test -d "$CPP"; then
11490 CPP=
11491fi
11492if test -z "$CPP"; then
11493 if test "${ac_cv_prog_CPP+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495else
11496 # Double quotes because CPP needs to be expanded
11497 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11498 do
11499 ac_preproc_ok=false
11500for ac_c_preproc_warn_flag in '' yes
11501do
11502 # Use a header file that comes with gcc, so configuring glibc
11503 # with a fresh cross-compiler works.
11504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11505 # <limits.h> exists even on freestanding compilers.
11506 # On the NeXT, cc -E runs the code through the compiler's parser,
11507 # not just through cpp. "Syntax error" is here to catch this case.
11508 cat >conftest.$ac_ext <<_ACEOF
11509/* confdefs.h. */
11510_ACEOF
11511cat confdefs.h >>conftest.$ac_ext
11512cat >>conftest.$ac_ext <<_ACEOF
11513/* end confdefs.h. */
11514#ifdef __STDC__
11515# include <limits.h>
11516#else
11517# include <assert.h>
11518#endif
ac1cb8d3 11519 Syntax error
a848cd7e
SC
11520_ACEOF
11521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev/null; then
11529 if test -s conftest.err; then
11530 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11532 else
11533 ac_cpp_err=
11534 fi
11535else
11536 ac_cpp_err=yes
11537fi
11538if test -z "$ac_cpp_err"; then
11539 :
11540else
11541 echo "$as_me: failed program was:" >&5
11542sed 's/^/| /' conftest.$ac_ext >&5
11543
11544 # Broken: fails on valid input.
11545continue
11546fi
11547rm -f conftest.err conftest.$ac_ext
11548
11549 # OK, works on sane cases. Now check whether non-existent headers
11550 # can be detected and how.
11551 cat >conftest.$ac_ext <<_ACEOF
11552/* confdefs.h. */
11553_ACEOF
11554cat confdefs.h >>conftest.$ac_ext
11555cat >>conftest.$ac_ext <<_ACEOF
11556/* end confdefs.h. */
11557#include <ac_nonexistent.h>
11558_ACEOF
11559if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } >/dev/null; then
11567 if test -s conftest.err; then
11568 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11570 else
11571 ac_cpp_err=
11572 fi
11573else
11574 ac_cpp_err=yes
11575fi
11576if test -z "$ac_cpp_err"; then
11577 # Broken: success on invalid input.
11578continue
11579else
11580 echo "$as_me: failed program was:" >&5
11581sed 's/^/| /' conftest.$ac_ext >&5
11582
11583 # Passes both tests.
11584ac_preproc_ok=:
11585break
11586fi
11587rm -f conftest.err conftest.$ac_ext
11588
11589done
11590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11591rm -f conftest.err conftest.$ac_ext
11592if $ac_preproc_ok; then
11593 break
11594fi
11595
11596 done
11597 ac_cv_prog_CPP=$CPP
11598
11599fi
11600 CPP=$ac_cv_prog_CPP
11601else
11602 ac_cv_prog_CPP=$CPP
11603fi
11604echo "$as_me:$LINENO: result: $CPP" >&5
11605echo "${ECHO_T}$CPP" >&6
11606ac_preproc_ok=false
11607for ac_c_preproc_warn_flag in '' yes
11608do
11609 # Use a header file that comes with gcc, so configuring glibc
11610 # with a fresh cross-compiler works.
11611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11612 # <limits.h> exists even on freestanding compilers.
11613 # On the NeXT, cc -E runs the code through the compiler's parser,
11614 # not just through cpp. "Syntax error" is here to catch this case.
11615 cat >conftest.$ac_ext <<_ACEOF
11616/* confdefs.h. */
11617_ACEOF
11618cat confdefs.h >>conftest.$ac_ext
11619cat >>conftest.$ac_ext <<_ACEOF
11620/* end confdefs.h. */
11621#ifdef __STDC__
11622# include <limits.h>
11623#else
11624# include <assert.h>
11625#endif
ac1cb8d3 11626 Syntax error
a848cd7e
SC
11627_ACEOF
11628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } >/dev/null; then
11636 if test -s conftest.err; then
11637 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11639 else
11640 ac_cpp_err=
11641 fi
11642else
11643 ac_cpp_err=yes
11644fi
11645if test -z "$ac_cpp_err"; then
11646 :
11647else
11648 echo "$as_me: failed program was:" >&5
11649sed 's/^/| /' conftest.$ac_ext >&5
11650
11651 # Broken: fails on valid input.
11652continue
11653fi
11654rm -f conftest.err conftest.$ac_ext
11655
11656 # OK, works on sane cases. Now check whether non-existent headers
11657 # can be detected and how.
11658 cat >conftest.$ac_ext <<_ACEOF
11659/* confdefs.h. */
11660_ACEOF
11661cat confdefs.h >>conftest.$ac_ext
11662cat >>conftest.$ac_ext <<_ACEOF
11663/* end confdefs.h. */
11664#include <ac_nonexistent.h>
11665_ACEOF
11666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11668 ac_status=$?
11669 grep -v '^ *+' conftest.er1 >conftest.err
11670 rm -f conftest.er1
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } >/dev/null; then
11674 if test -s conftest.err; then
11675 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11677 else
11678 ac_cpp_err=
11679 fi
11680else
11681 ac_cpp_err=yes
11682fi
11683if test -z "$ac_cpp_err"; then
11684 # Broken: success on invalid input.
11685continue
11686else
11687 echo "$as_me: failed program was:" >&5
11688sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 # Passes both tests.
11691ac_preproc_ok=:
11692break
11693fi
11694rm -f conftest.err conftest.$ac_ext
11695
11696done
11697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11698rm -f conftest.err conftest.$ac_ext
11699if $ac_preproc_ok; then
11700 :
11701else
11702 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11703See \`config.log' for more details." >&5
11704echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11705See \`config.log' for more details." >&2;}
11706 { (exit 1); exit 1; }; }
11707fi
11708
11709ac_ext=c
11710ac_cpp='$CPP $CPPFLAGS'
11711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11713ac_compiler_gnu=$ac_cv_c_compiler_gnu
11714
11715
11716echo "$as_me:$LINENO: checking for egrep" >&5
11717echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11718if test "${ac_cv_prog_egrep+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720else
11721 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11722 then ac_cv_prog_egrep='grep -E'
11723 else ac_cv_prog_egrep='egrep'
11724 fi
11725fi
11726echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11727echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11728 EGREP=$ac_cv_prog_egrep
11729
11730
11731if test $ac_cv_c_compiler_gnu = yes; then
11732 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11733echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11734if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736else
11737 ac_pattern="Autoconf.*'x'"
11738 cat >conftest.$ac_ext <<_ACEOF
11739/* confdefs.h. */
11740_ACEOF
11741cat confdefs.h >>conftest.$ac_ext
11742cat >>conftest.$ac_ext <<_ACEOF
11743/* end confdefs.h. */
11744#include <sgtty.h>
11745Autoconf TIOCGETP
11746_ACEOF
11747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11748 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11749 ac_cv_prog_gcc_traditional=yes
11750else
11751 ac_cv_prog_gcc_traditional=no
11752fi
11753rm -f conftest*
11754
11755
11756 if test $ac_cv_prog_gcc_traditional = no; then
11757 cat >conftest.$ac_ext <<_ACEOF
11758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
11763#include <termio.h>
11764Autoconf TCGETA
11765_ACEOF
11766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11767 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11768 ac_cv_prog_gcc_traditional=yes
11769fi
11770rm -f conftest*
11771
11772 fi
11773fi
11774echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11775echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11776 if test $ac_cv_prog_gcc_traditional = yes; then
11777 CC="$CC -traditional"
11778 fi
11779fi
11780
11781
11782
11783
11784ac_ext=cc
11785ac_cpp='$CXXCPP $CPPFLAGS'
11786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11789
11790
11791CXXFLAGS=${CXXFLAGS:=}
11792ac_ext=cc
11793ac_cpp='$CXXCPP $CPPFLAGS'
11794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11797if test -n "$ac_tool_prefix"; then
11798 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11799 do
11800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11802echo "$as_me:$LINENO: checking for $ac_word" >&5
11803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11804if test "${ac_cv_prog_CXX+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11806else
11807 if test -n "$CXX"; then
11808 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11809else
11810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811for as_dir in $PATH
11812do
11813 IFS=$as_save_IFS
11814 test -z "$as_dir" && as_dir=.
11815 for ac_exec_ext in '' $ac_executable_extensions; do
11816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11817 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11819 break 2
11820 fi
11821done
11822done
11823
11824fi
11825fi
11826CXX=$ac_cv_prog_CXX
11827if test -n "$CXX"; then
11828 echo "$as_me:$LINENO: result: $CXX" >&5
11829echo "${ECHO_T}$CXX" >&6
11830else
11831 echo "$as_me:$LINENO: result: no" >&5
11832echo "${ECHO_T}no" >&6
11833fi
11834
11835 test -n "$CXX" && break
11836 done
11837fi
11838if test -z "$CXX"; then
11839 ac_ct_CXX=$CXX
11840 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11841do
11842 # Extract the first word of "$ac_prog", so it can be a program name with args.
11843set dummy $ac_prog; ac_word=$2
11844echo "$as_me:$LINENO: checking for $ac_word" >&5
11845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11846if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848else
11849 if test -n "$ac_ct_CXX"; then
11850 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11851else
11852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11853for as_dir in $PATH
11854do
11855 IFS=$as_save_IFS
11856 test -z "$as_dir" && as_dir=.
11857 for ac_exec_ext in '' $ac_executable_extensions; do
11858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11859 ac_cv_prog_ac_ct_CXX="$ac_prog"
11860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11861 break 2
11862 fi
11863done
11864done
11865
11866fi
11867fi
11868ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11869if test -n "$ac_ct_CXX"; then
11870 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11871echo "${ECHO_T}$ac_ct_CXX" >&6
11872else
11873 echo "$as_me:$LINENO: result: no" >&5
11874echo "${ECHO_T}no" >&6
11875fi
11876
11877 test -n "$ac_ct_CXX" && break
11878done
11879test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11880
11881 CXX=$ac_ct_CXX
11882fi
11883
11884
11885# Provide some information about the compiler.
11886echo "$as_me:$LINENO:" \
11887 "checking for C++ compiler version" >&5
11888ac_compiler=`set X $ac_compile; echo $2`
11889{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11890 (eval $ac_compiler --version </dev/null >&5) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }
11894{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11895 (eval $ac_compiler -v </dev/null >&5) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }
11899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11900 (eval $ac_compiler -V </dev/null >&5) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }
11904
11905echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11906echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11907if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11909else
11910 cat >conftest.$ac_ext <<_ACEOF
11911/* confdefs.h. */
11912_ACEOF
11913cat confdefs.h >>conftest.$ac_ext
11914cat >>conftest.$ac_ext <<_ACEOF
11915/* end confdefs.h. */
11916
11917int
11918main ()
11919{
11920#ifndef __GNUC__
11921 choke me
11922#endif
11923
11924 ;
11925 return 0;
11926}
11927_ACEOF
11928rm -f conftest.$ac_objext
11929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11930 (eval $ac_compile) 2>conftest.er1
a848cd7e 11931 ac_status=$?
ac1cb8d3
VS
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
a848cd7e
SC
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
da4486fb 11937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 ac_compiler_gnu=yes
11950else
11951 echo "$as_me: failed program was:" >&5
11952sed 's/^/| /' conftest.$ac_ext >&5
11953
11954ac_compiler_gnu=no
11955fi
ac1cb8d3 11956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11957ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11958
11959fi
11960echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11961echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11962GXX=`test $ac_compiler_gnu = yes && echo yes`
11963ac_test_CXXFLAGS=${CXXFLAGS+set}
11964ac_save_CXXFLAGS=$CXXFLAGS
11965CXXFLAGS="-g"
11966echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11967echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11968if test "${ac_cv_prog_cxx_g+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11970else
11971 cat >conftest.$ac_ext <<_ACEOF
11972/* confdefs.h. */
11973_ACEOF
11974cat confdefs.h >>conftest.$ac_ext
11975cat >>conftest.$ac_ext <<_ACEOF
11976/* end confdefs.h. */
11977
11978int
11979main ()
11980{
11981
11982 ;
11983 return 0;
11984}
11985_ACEOF
11986rm -f conftest.$ac_objext
11987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11988 (eval $ac_compile) 2>conftest.er1
a848cd7e 11989 ac_status=$?
ac1cb8d3
VS
11990 grep -v '^ *+' conftest.er1 >conftest.err
11991 rm -f conftest.er1
11992 cat conftest.err >&5
a848cd7e
SC
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
da4486fb 11995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; } &&
12001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 ac_cv_prog_cxx_g=yes
12008else
12009 echo "$as_me: failed program was:" >&5
12010sed 's/^/| /' conftest.$ac_ext >&5
12011
12012ac_cv_prog_cxx_g=no
12013fi
ac1cb8d3 12014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12015fi
12016echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12017echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12018if test "$ac_test_CXXFLAGS" = set; then
12019 CXXFLAGS=$ac_save_CXXFLAGS
12020elif test $ac_cv_prog_cxx_g = yes; then
12021 if test "$GXX" = yes; then
12022 CXXFLAGS="-g -O2"
12023 else
12024 CXXFLAGS="-g"
12025 fi
12026else
12027 if test "$GXX" = yes; then
12028 CXXFLAGS="-O2"
12029 else
12030 CXXFLAGS=
12031 fi
12032fi
12033for ac_declaration in \
ac1cb8d3 12034 '' \
a848cd7e
SC
12035 'extern "C" void std::exit (int) throw (); using std::exit;' \
12036 'extern "C" void std::exit (int); using std::exit;' \
12037 'extern "C" void exit (int) throw ();' \
12038 'extern "C" void exit (int);' \
12039 'void exit (int);'
12040do
12041 cat >conftest.$ac_ext <<_ACEOF
12042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
de59c161 12047$ac_declaration
ac1cb8d3 12048#include <stdlib.h>
a848cd7e
SC
12049int
12050main ()
12051{
12052exit (42);
12053 ;
12054 return 0;
12055}
12056_ACEOF
12057rm -f conftest.$ac_objext
12058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12059 (eval $ac_compile) 2>conftest.er1
a848cd7e 12060 ac_status=$?
ac1cb8d3
VS
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
a848cd7e
SC
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
da4486fb 12066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 :
12079else
12080 echo "$as_me: failed program was:" >&5
12081sed 's/^/| /' conftest.$ac_ext >&5
12082
12083continue
12084fi
ac1cb8d3 12085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12086 cat >conftest.$ac_ext <<_ACEOF
12087/* confdefs.h. */
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
12092$ac_declaration
12093int
12094main ()
12095{
12096exit (42);
12097 ;
12098 return 0;
12099}
12100_ACEOF
12101rm -f conftest.$ac_objext
12102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12103 (eval $ac_compile) 2>conftest.er1
a848cd7e 12104 ac_status=$?
ac1cb8d3
VS
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
a848cd7e
SC
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
da4486fb 12110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 break
12123else
12124 echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127fi
ac1cb8d3 12128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12129done
12130rm -f conftest*
12131if test -n "$ac_declaration"; then
12132 echo '#ifdef __cplusplus' >>confdefs.h
12133 echo $ac_declaration >>confdefs.h
12134 echo '#endif' >>confdefs.h
12135fi
12136
12137ac_ext=cc
12138ac_cpp='$CXXCPP $CPPFLAGS'
12139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12142
12143
95986553
DE
12144ac_ext=cc
12145ac_cpp='$CXXCPP $CPPFLAGS'
12146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12149
12150echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12151echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12152if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154else
12155 cat >conftest.$ac_ext <<_ACEOF
12156/* confdefs.h. */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
12160/* end confdefs.h. */
12161
12162int
12163main ()
12164{
12165#ifndef __MWERKS__
12166 choke me
12167#endif
12168
12169 ;
12170 return 0;
12171}
12172_ACEOF
12173rm -f conftest.$ac_objext
12174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12175 (eval $ac_compile) 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
12188 { ac_try='test -s conftest.$ac_objext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 bakefile_compiler_mwerks=yes
12195else
12196 echo "$as_me: failed program was:" >&5
12197sed 's/^/| /' conftest.$ac_ext >&5
12198
12199bakefile_compiler_mwerks=no
12200fi
12201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12202 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12203
12204fi
12205echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12206echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12207
12208MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12209ac_ext=cc
12210ac_cpp='$CXXCPP $CPPFLAGS'
12211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12214
12215
12216
a848cd7e
SC
12217ac_ext=c
12218ac_cpp='$CPP $CPPFLAGS'
12219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221ac_compiler_gnu=$ac_cv_c_compiler_gnu
12222
12223
a848cd7e
SC
12224if test -n "$ac_tool_prefix"; then
12225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12226set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12227echo "$as_me:$LINENO: checking for $ac_word" >&5
12228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12229if test "${ac_cv_prog_RANLIB+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231else
12232 if test -n "$RANLIB"; then
12233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12234else
12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12244 break 2
12245 fi
12246done
12247done
12248
12249fi
12250fi
12251RANLIB=$ac_cv_prog_RANLIB
12252if test -n "$RANLIB"; then
12253 echo "$as_me:$LINENO: result: $RANLIB" >&5
12254echo "${ECHO_T}$RANLIB" >&6
12255else
12256 echo "$as_me:$LINENO: result: no" >&5
12257echo "${ECHO_T}no" >&6
12258fi
12259
12260fi
12261if test -z "$ac_cv_prog_RANLIB"; then
12262 ac_ct_RANLIB=$RANLIB
12263 # Extract the first word of "ranlib", so it can be a program name with args.
12264set dummy ranlib; ac_word=$2
12265echo "$as_me:$LINENO: checking for $ac_word" >&5
12266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12267if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12269else
12270 if test -n "$ac_ct_RANLIB"; then
12271 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12272else
12273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274for as_dir in $PATH
12275do
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
12279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12280 ac_cv_prog_ac_ct_RANLIB="ranlib"
12281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 break 2
12283 fi
12284done
12285done
12286
12287 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12288fi
12289fi
12290ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12291if test -n "$ac_ct_RANLIB"; then
12292 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12293echo "${ECHO_T}$ac_ct_RANLIB" >&6
12294else
12295 echo "$as_me:$LINENO: result: no" >&5
12296echo "${ECHO_T}no" >&6
12297fi
12298
12299 RANLIB=$ac_ct_RANLIB
12300else
12301 RANLIB="$ac_cv_prog_RANLIB"
12302fi
12303
12304
12305# Extract the first word of "ar", so it can be a program name with args.
12306set dummy ar; ac_word=$2
12307echo "$as_me:$LINENO: checking for $ac_word" >&5
12308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12309if test "${ac_cv_prog_AR+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311else
12312 if test -n "$AR"; then
12313 ac_cv_prog_AR="$AR" # Let the user override the test.
12314else
12315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316for as_dir in $PATH
12317do
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12322 ac_cv_prog_AR="ar"
12323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 break 2
12325 fi
12326done
12327done
12328
12329fi
12330fi
12331AR=$ac_cv_prog_AR
12332if test -n "$AR"; then
12333 echo "$as_me:$LINENO: result: $AR" >&5
12334echo "${ECHO_T}$AR" >&6
12335else
12336 echo "$as_me:$LINENO: result: no" >&5
12337echo "${ECHO_T}no" >&6
12338fi
12339
12340if test "x$AR" = "x" ; then
77ffb593
JS
12341 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12342echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12343 { (exit 1); exit 1; }; }
12344fi
12345
12346# Find a good install program. We prefer a C program (faster),
12347# so one script is as good as another. But avoid the broken or
12348# incompatible versions:
12349# SysV /etc/install, /usr/sbin/install
12350# SunOS /usr/etc/install
12351# IRIX /sbin/install
12352# AIX /bin/install
12353# AmigaOS /C/install, which installs bootblocks on floppy discs
12354# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12355# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12356# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12357# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12358# ./install, which can be erroneously created by make from ./install.sh.
12359echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12360echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12361if test -z "$INSTALL"; then
12362if test "${ac_cv_path_install+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12364else
12365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366for as_dir in $PATH
12367do
12368 IFS=$as_save_IFS
12369 test -z "$as_dir" && as_dir=.
12370 # Account for people who put trailing slashes in PATH elements.
12371case $as_dir/ in
12372 ./ | .// | /cC/* | \
12373 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12374 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12375 /usr/ucb/* ) ;;
12376 *)
12377 # OSF1 and SCO ODT 3.0 have their own names for install.
12378 # Don't use installbsd from OSF since it installs stuff as root
12379 # by default.
12380 for ac_prog in ginstall scoinst install; do
12381 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12382 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12383 if test $ac_prog = install &&
12384 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12385 # AIX install. It has an incompatible calling convention.
12386 :
12387 elif test $ac_prog = install &&
12388 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12389 # program-specific install script used by HP pwplus--don't use.
12390 :
12391 else
12392 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12393 break 3
12394 fi
12395 fi
a848cd7e
SC
12396 done
12397 done
12398 ;;
12399esac
12400done
12401
12402
12403fi
12404 if test "${ac_cv_path_install+set}" = set; then
12405 INSTALL=$ac_cv_path_install
12406 else
12407 # As a last resort, use the slow shell script. We don't cache a
12408 # path for INSTALL within a source directory, because that will
12409 # break other packages using the cache if that directory is
12410 # removed, or if the path is relative.
12411 INSTALL=$ac_install_sh
12412 fi
12413fi
12414echo "$as_me:$LINENO: result: $INSTALL" >&5
12415echo "${ECHO_T}$INSTALL" >&6
12416
12417# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12418# It thinks the first close brace ends the variable substitution.
12419test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12420
12421test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12422
12423test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12424
12425
12426case ${INSTALL} in
12427 /* ) # Absolute
12428 ;;
12429 ?:* ) # Drive letter, considered as absolute.
12430 ;;
12431 *)
12432 INSTALL=`pwd`/${INSTALL} ;;
12433esac
12434
a848cd7e
SC
12435
12436case "${host}" in
12437
12438 powerpc-*-darwin* )
12439 INSTALL_PROGRAM="cp -fp"
12440 INSTALL_DATA="cp -fp"
12441 ;;
12442 *)
12443 ;;
12444esac
12445
12446# Extract the first word of "strip", so it can be a program name with args.
12447set dummy strip; ac_word=$2
12448echo "$as_me:$LINENO: checking for $ac_word" >&5
12449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12450if test "${ac_cv_prog_STRIP+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12452else
12453 if test -n "$STRIP"; then
12454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12455else
12456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457for as_dir in $PATH
12458do
12459 IFS=$as_save_IFS
12460 test -z "$as_dir" && as_dir=.
12461 for ac_exec_ext in '' $ac_executable_extensions; do
12462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12463 ac_cv_prog_STRIP="strip"
12464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 break 2
12466 fi
12467done
12468done
12469
12470 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12471fi
12472fi
12473STRIP=$ac_cv_prog_STRIP
12474if test -n "$STRIP"; then
12475 echo "$as_me:$LINENO: result: $STRIP" >&5
12476echo "${ECHO_T}$STRIP" >&6
12477else
12478 echo "$as_me:$LINENO: result: no" >&5
12479echo "${ECHO_T}no" >&6
12480fi
12481
12482
12483echo "$as_me:$LINENO: checking if make is GNU make" >&5
12484echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12485if test "${wx_cv_prog_makeisgnu+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487else
12488
12489 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12490 egrep -s GNU > /dev/null); then
12491 wx_cv_prog_makeisgnu="yes"
12492 else
12493 wx_cv_prog_makeisgnu="no"
12494 fi
12495
12496fi
12497echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12498echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12499
12500if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12501 IF_GNU_MAKE=""
12502else
12503 IF_GNU_MAKE="#"
12504fi
12505
12506
12507
12508if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12509echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12510echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12511if test "${wx_cv_prog_makevpath+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513else
12514
12515cat - << EOF > confMake
12516check : file
12517 cp \$? \$@
12518 cp \$? final_file
12519EOF
12520
12521if test ! -d sub ; then
12522 mkdir sub
12523fi
12524echo dummy > sub/file
12525${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12526RESULT=$?
12527rm -f sub/file check final_file confMake
12528rmdir sub
12529if test "$RESULT" = 0; then
12530 wx_cv_prog_makevpath="yes"
12531else
12532 wx_cv_prog_makevpath="no"
12533fi
12534
12535fi
12536echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12537echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12538
12539if test "x$wx_cv_prog_makevpath" != "xyes"; then
12540{ { echo "$as_me:$LINENO: error:
12541You need a make-utility that is able to use the variable
12542VPATH correctly.
12543If your version of make does not support VPATH correctly,
12544please install GNU-make (possibly as gmake), and start
12545configure with the following command:
12546export MAKE=gmake; ./configure for sh-type shells
12547setenv MAKE gmake; ./configure for csh-type shells
12548Also please do remember to use gmake in this case every time
12549you are trying to compile.
12550" >&5
12551echo "$as_me: error:
12552You need a make-utility that is able to use the variable
12553VPATH correctly.
12554If your version of make does not support VPATH correctly,
12555please install GNU-make (possibly as gmake), and start
12556configure with the following command:
12557export MAKE=gmake; ./configure for sh-type shells
12558setenv MAKE gmake; ./configure for csh-type shells
12559Also please do remember to use gmake in this case every time
12560you are trying to compile.
12561" >&2;}
12562 { (exit 1); exit 1; }; }
12563fi fi
12564echo "$as_me:$LINENO: checking whether ln -s works" >&5
12565echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12566LN_S=$as_ln_s
12567if test "$LN_S" = "ln -s"; then
12568 echo "$as_me:$LINENO: result: yes" >&5
12569echo "${ECHO_T}yes" >&6
12570else
12571 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12572echo "${ECHO_T}no, using $LN_S" >&6
12573fi
12574
12575
12576
12577case "${host}" in
12578 *-pc-os2_emx | *-pc-os2-emx )
12579 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12580 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12581echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12582if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584else
12585 ac_check_lib_save_LIBS=$LIBS
12586LIBS="-lcExt $LIBS"
12587cat >conftest.$ac_ext <<_ACEOF
12588/* confdefs.h. */
12589_ACEOF
12590cat confdefs.h >>conftest.$ac_ext
12591cat >>conftest.$ac_ext <<_ACEOF
12592/* end confdefs.h. */
12593
12594/* Override any gcc2 internal prototype to avoid an error. */
12595#ifdef __cplusplus
12596extern "C"
12597#endif
12598/* We use char because int might match the return type of a gcc2
12599 builtin and then its argument prototype would still apply. */
12600char drand48 ();
12601int
12602main ()
12603{
12604drand48 ();
12605 ;
12606 return 0;
12607}
12608_ACEOF
12609rm -f conftest.$ac_objext conftest$ac_exeext
12610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12611 (eval $ac_link) 2>conftest.er1
a848cd7e 12612 ac_status=$?
ac1cb8d3
VS
12613 grep -v '^ *+' conftest.er1 >conftest.err
12614 rm -f conftest.er1
12615 cat conftest.err >&5
a848cd7e
SC
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } &&
da4486fb 12618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; } &&
12624 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12630 ac_cv_lib_cExt_drand48=yes
12631else
12632 echo "$as_me: failed program was:" >&5
12633sed 's/^/| /' conftest.$ac_ext >&5
12634
12635ac_cv_lib_cExt_drand48=no
12636fi
ac1cb8d3
VS
12637rm -f conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12639LIBS=$ac_check_lib_save_LIBS
12640fi
12641echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12642echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12643if test $ac_cv_lib_cExt_drand48 = yes; then
12644 LIBS="$LIBS -lcExt"
12645fi
12646
12647 else
12648 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12649 fi
12650 echo "$as_me:$LINENO: checking for gcc version" >&5
12651echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12652if test "${wx_cv_gccversion+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12654else
12655
12656 cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h. */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h. */
12662
12663int
12664main ()
12665{
12666
12667 #if (__GNUC__ < 3)
12668 #error old gcc
12669 #endif
12670
12671 ;
12672 return 0;
12673}
12674_ACEOF
12675rm -f conftest.$ac_objext
12676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12677 (eval $ac_compile) 2>conftest.er1
a848cd7e 12678 ac_status=$?
ac1cb8d3
VS
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
a848cd7e
SC
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
da4486fb 12684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; } &&
12690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696
12697 cat >conftest.$ac_ext <<_ACEOF
12698/* confdefs.h. */
12699_ACEOF
12700cat confdefs.h >>conftest.$ac_ext
12701cat >>conftest.$ac_ext <<_ACEOF
12702/* end confdefs.h. */
12703
12704int
12705main ()
12706{
12707
12708 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12709 #error intermediate gcc
12710 #endif
12711
12712 ;
12713 return 0;
12714}
12715_ACEOF
12716rm -f conftest.$ac_objext
12717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12718 (eval $ac_compile) 2>conftest.er1
a848cd7e 12719 ac_status=$?
ac1cb8d3
VS
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
a848cd7e
SC
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
da4486fb 12725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; } &&
12731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737
12738 wx_cv_gccversion=Innotek
12739
12740else
12741 echo "$as_me: failed program was:" >&5
12742sed 's/^/| /' conftest.$ac_ext >&5
12743
12744
12745 wx_cv_gccversion=3
12746
12747
12748fi
ac1cb8d3 12749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12750
12751else
12752 echo "$as_me: failed program was:" >&5
12753sed 's/^/| /' conftest.$ac_ext >&5
12754
12755
12756 wx_cv_gccversion=2
12757
12758
12759fi
ac1cb8d3 12760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12761
12762fi
12763echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12764echo "${ECHO_T}$wx_cv_gccversion" >&6
12765 if test "$wx_cv_gccversion" = "2"; then
12766 LIBS="$LIBS -lstdcpp"
12767 LDFLAGS="$LDFLAGS -Zsysv-signals"
12768 else
12769 if test "$wx_cv_gccversion" = "3"; then
12770 LIBS="$LIBS -lstdcxx"
12771 LDFLAGS="$LDFLAGS -Zsysv-signals"
12772 else
12773 LIBS="$LIBS -lstdc++"
12774 fi
12775 fi
12776 if test "$wxUSE_OMF" = "yes"; then
de59c161 12777 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12778 fi
12779 ;;
12780 *)
12781
12782
12783
12784 ac_ext=cc
12785ac_cpp='$CXXCPP $CPPFLAGS'
12786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12789
12790
95986553 12791 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
12792echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12793if test "${ac_cv_string_strcasecmp+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12795else
12796
12797 cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h. */
12803
12804 #include <string.h>
12805
12806int
12807main ()
12808{
12809
12810 strcasecmp("foo", "bar");
12811
12812 ;
12813 return 0;
12814}
12815_ACEOF
12816rm -f conftest.$ac_objext conftest$ac_exeext
12817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12818 (eval $ac_link) 2>conftest.er1
a848cd7e 12819 ac_status=$?
ac1cb8d3
VS
12820 grep -v '^ *+' conftest.er1 >conftest.err
12821 rm -f conftest.er1
12822 cat conftest.err >&5
a848cd7e
SC
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
da4486fb 12825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; } &&
12831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_cv_string_strcasecmp=yes
12838else
12839 echo "$as_me: failed program was:" >&5
12840sed 's/^/| /' conftest.$ac_ext >&5
12841
12842ac_cv_string_strcasecmp=no
12843
12844fi
ac1cb8d3
VS
12845rm -f conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12847
12848fi
12849echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12850echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12851
12852 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12853 cat >>confdefs.h <<\_ACEOF
12854#define HAVE_STRCASECMP_IN_STRING_H 1
12855_ACEOF
12856
12857 else
12858 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12859echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12860if test "${ac_cv_strings_strcasecmp+set}" = set; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862else
12863
12864 cat >conftest.$ac_ext <<_ACEOF
12865/* confdefs.h. */
12866_ACEOF
12867cat confdefs.h >>conftest.$ac_ext
12868cat >>conftest.$ac_ext <<_ACEOF
12869/* end confdefs.h. */
12870
12871 #include <strings.h>
12872
12873int
12874main ()
12875{
12876
12877 strcasecmp("foo", "bar");
12878
12879 ;
12880 return 0;
12881}
12882_ACEOF
12883rm -f conftest.$ac_objext conftest$ac_exeext
12884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12885 (eval $ac_link) 2>conftest.er1
a848cd7e 12886 ac_status=$?
ac1cb8d3
VS
12887 grep -v '^ *+' conftest.er1 >conftest.err
12888 rm -f conftest.er1
12889 cat conftest.err >&5
a848cd7e
SC
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
da4486fb 12892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; } &&
12898 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 ac_cv_strings_strcasecmp=yes
12905else
12906 echo "$as_me: failed program was:" >&5
12907sed 's/^/| /' conftest.$ac_ext >&5
12908
12909ac_cv_strings_strcasecmp=no
12910
12911fi
ac1cb8d3
VS
12912rm -f conftest.err conftest.$ac_objext \
12913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12914
12915fi
12916echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12917echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12918
0c3c69fc 12919 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12920 cat >>confdefs.h <<\_ACEOF
12921#define HAVE_STRCASECMP_IN_STRINGS_H 1
12922_ACEOF
12923
12924 else
12925 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12926echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12927 { (exit 1); exit 1; }; }
12928 fi
12929 fi
12930
12931 ac_ext=c
12932ac_cpp='$CPP $CPPFLAGS'
12933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936
12937 ;;
12938esac
12939
12940
12941echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12942echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12943if test "${ac_cv_header_stdc+set}" = set; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
12945else
12946 cat >conftest.$ac_ext <<_ACEOF
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952#include <stdlib.h>
12953#include <stdarg.h>
12954#include <string.h>
12955#include <float.h>
12956
12957int
12958main ()
12959{
12960
12961 ;
12962 return 0;
12963}
12964_ACEOF
12965rm -f conftest.$ac_objext
12966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12967 (eval $ac_compile) 2>conftest.er1
a848cd7e 12968 ac_status=$?
ac1cb8d3
VS
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
a848cd7e
SC
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
da4486fb 12974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; } &&
12980 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
12986 ac_cv_header_stdc=yes
12987else
12988 echo "$as_me: failed program was:" >&5
12989sed 's/^/| /' conftest.$ac_ext >&5
12990
12991ac_cv_header_stdc=no
12992fi
ac1cb8d3 12993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12994
12995if test $ac_cv_header_stdc = yes; then
12996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12997 cat >conftest.$ac_ext <<_ACEOF
12998/* confdefs.h. */
12999_ACEOF
13000cat confdefs.h >>conftest.$ac_ext
13001cat >>conftest.$ac_ext <<_ACEOF
13002/* end confdefs.h. */
13003#include <string.h>
13004
13005_ACEOF
13006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13007 $EGREP "memchr" >/dev/null 2>&1; then
13008 :
13009else
13010 ac_cv_header_stdc=no
13011fi
13012rm -f conftest*
13013
13014fi
13015
13016if test $ac_cv_header_stdc = yes; then
13017 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13018 cat >conftest.$ac_ext <<_ACEOF
13019/* confdefs.h. */
13020_ACEOF
13021cat confdefs.h >>conftest.$ac_ext
13022cat >>conftest.$ac_ext <<_ACEOF
13023/* end confdefs.h. */
13024#include <stdlib.h>
13025
13026_ACEOF
13027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13028 $EGREP "free" >/dev/null 2>&1; then
13029 :
13030else
13031 ac_cv_header_stdc=no
13032fi
13033rm -f conftest*
13034
13035fi
13036
13037if test $ac_cv_header_stdc = yes; then
13038 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13039 if test "$cross_compiling" = yes; then
13040 :
13041else
13042 cat >conftest.$ac_ext <<_ACEOF
13043/* confdefs.h. */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h. */
13048#include <ctype.h>
13049#if ((' ' & 0x0FF) == 0x020)
13050# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13051# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13052#else
13053# define ISLOWER(c) \
ac1cb8d3
VS
13054 (('a' <= (c) && (c) <= 'i') \
13055 || ('j' <= (c) && (c) <= 'r') \
13056 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13057# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13058#endif
13059
13060#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13061int
13062main ()
13063{
13064 int i;
13065 for (i = 0; i < 256; i++)
13066 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13067 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13068 exit(2);
13069 exit (0);
13070}
13071_ACEOF
13072rm -f conftest$ac_exeext
13073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13074 (eval $ac_link) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 :
13084else
13085 echo "$as_me: program exited with status $ac_status" >&5
13086echo "$as_me: failed program was:" >&5
13087sed 's/^/| /' conftest.$ac_ext >&5
13088
13089( exit $ac_status )
13090ac_cv_header_stdc=no
13091fi
ac1cb8d3 13092rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13093fi
13094fi
13095fi
13096echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13097echo "${ECHO_T}$ac_cv_header_stdc" >&6
13098if test $ac_cv_header_stdc = yes; then
13099
13100cat >>confdefs.h <<\_ACEOF
13101#define STDC_HEADERS 1
13102_ACEOF
13103
13104fi
13105
13106# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13117 inttypes.h stdint.h unistd.h
a848cd7e
SC
13118do
13119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13120echo "$as_me:$LINENO: checking for $ac_header" >&5
13121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13122if eval "test \"\${$as_ac_Header+set}\" = set"; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13124else
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131$ac_includes_default
13132
13133#include <$ac_header>
13134_ACEOF
13135rm -f conftest.$ac_objext
13136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13137 (eval $ac_compile) 2>conftest.er1
a848cd7e 13138 ac_status=$?
ac1cb8d3
VS
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
a848cd7e
SC
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
da4486fb 13144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 eval "$as_ac_Header=yes"
13157else
13158 echo "$as_me: failed program was:" >&5
13159sed 's/^/| /' conftest.$ac_ext >&5
13160
13161eval "$as_ac_Header=no"
13162fi
ac1cb8d3 13163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13164fi
13165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13167if test `eval echo '${'$as_ac_Header'}'` = yes; then
13168 cat >>confdefs.h <<_ACEOF
13169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13170_ACEOF
13171
13172fi
13173
13174done
13175
13176
13177
13178for ac_header in stdlib.h
13179do
13180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13181if eval "test \"\${$as_ac_Header+set}\" = set"; then
13182 echo "$as_me:$LINENO: checking for $ac_header" >&5
13183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13184if eval "test \"\${$as_ac_Header+set}\" = set"; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186fi
13187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13189else
13190 # Is the header compilable?
13191echo "$as_me:$LINENO: checking $ac_header usability" >&5
13192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13193cat >conftest.$ac_ext <<_ACEOF
13194/* confdefs.h. */
13195_ACEOF
13196cat confdefs.h >>conftest.$ac_ext
13197cat >>conftest.$ac_ext <<_ACEOF
13198/* end confdefs.h. */
13199$ac_includes_default
13200#include <$ac_header>
13201_ACEOF
13202rm -f conftest.$ac_objext
13203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13204 (eval $ac_compile) 2>conftest.er1
a848cd7e 13205 ac_status=$?
ac1cb8d3
VS
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
a848cd7e
SC
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
da4486fb 13211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 ac_header_compiler=yes
13224else
13225 echo "$as_me: failed program was:" >&5
13226sed 's/^/| /' conftest.$ac_ext >&5
13227
13228ac_header_compiler=no
13229fi
ac1cb8d3 13230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13231echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13232echo "${ECHO_T}$ac_header_compiler" >&6
13233
13234# Is the header present?
13235echo "$as_me:$LINENO: checking $ac_header presence" >&5
13236echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13237cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h. */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h. */
13243#include <$ac_header>
13244_ACEOF
13245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13247 ac_status=$?
13248 grep -v '^ *+' conftest.er1 >conftest.err
13249 rm -f conftest.er1
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } >/dev/null; then
13253 if test -s conftest.err; then
13254 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13256 else
13257 ac_cpp_err=
13258 fi
13259else
13260 ac_cpp_err=yes
13261fi
13262if test -z "$ac_cpp_err"; then
13263 ac_header_preproc=yes
13264else
13265 echo "$as_me: failed program was:" >&5
13266sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 ac_header_preproc=no
13269fi
13270rm -f conftest.err conftest.$ac_ext
13271echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13272echo "${ECHO_T}$ac_header_preproc" >&6
13273
13274# So? What about this header?
ac1cb8d3
VS
13275case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13276 yes:no: )
a848cd7e
SC
13277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13278echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13280echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13281 ac_header_preproc=yes
a848cd7e 13282 ;;
ac1cb8d3 13283 no:yes:* )
a848cd7e
SC
13284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13285echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13287echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13289echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13291echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13293echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13295echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13296 (
13297 cat <<\_ASBOX
ac1cb8d3
VS
13298## ----------------------------------------- ##
13299## Report this to wx-dev@lists.wxwidgets.org ##
13300## ----------------------------------------- ##
a848cd7e
SC
13301_ASBOX
13302 ) |
13303 sed "s/^/$as_me: WARNING: /" >&2
13304 ;;
13305esac
13306echo "$as_me:$LINENO: checking for $ac_header" >&5
13307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13308if eval "test \"\${$as_ac_Header+set}\" = set"; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13310else
ac1cb8d3 13311 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13312fi
13313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13315
13316fi
13317if test `eval echo '${'$as_ac_Header'}'` = yes; then
13318 cat >>confdefs.h <<_ACEOF
13319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13320_ACEOF
13321
13322fi
13323
13324done
13325
13326
13327for ac_header in malloc.h
13328do
13329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13330if eval "test \"\${$as_ac_Header+set}\" = set"; then
13331 echo "$as_me:$LINENO: checking for $ac_header" >&5
13332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13333if eval "test \"\${$as_ac_Header+set}\" = set"; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335fi
13336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13338else
13339 # Is the header compilable?
13340echo "$as_me:$LINENO: checking $ac_header usability" >&5
13341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13342cat >conftest.$ac_ext <<_ACEOF
13343/* confdefs.h. */
13344_ACEOF
13345cat confdefs.h >>conftest.$ac_ext
13346cat >>conftest.$ac_ext <<_ACEOF
13347/* end confdefs.h. */
13348$ac_includes_default
13349#include <$ac_header>
13350_ACEOF
13351rm -f conftest.$ac_objext
13352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13353 (eval $ac_compile) 2>conftest.er1
a848cd7e 13354 ac_status=$?
ac1cb8d3
VS
13355 grep -v '^ *+' conftest.er1 >conftest.err
13356 rm -f conftest.er1
13357 cat conftest.err >&5
a848cd7e
SC
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } &&
da4486fb 13360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; } &&
13366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 ac_header_compiler=yes
13373else
13374 echo "$as_me: failed program was:" >&5
13375sed 's/^/| /' conftest.$ac_ext >&5
13376
13377ac_header_compiler=no
13378fi
ac1cb8d3 13379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13380echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13381echo "${ECHO_T}$ac_header_compiler" >&6
13382
13383# Is the header present?
13384echo "$as_me:$LINENO: checking $ac_header presence" >&5
13385echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13386cat >conftest.$ac_ext <<_ACEOF
13387/* confdefs.h. */
13388_ACEOF
13389cat confdefs.h >>conftest.$ac_ext
13390cat >>conftest.$ac_ext <<_ACEOF
13391/* end confdefs.h. */
13392#include <$ac_header>
13393_ACEOF
13394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } >/dev/null; then
13402 if test -s conftest.err; then
13403 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13405 else
13406 ac_cpp_err=
13407 fi
13408else
13409 ac_cpp_err=yes
13410fi
13411if test -z "$ac_cpp_err"; then
13412 ac_header_preproc=yes
13413else
13414 echo "$as_me: failed program was:" >&5
13415sed 's/^/| /' conftest.$ac_ext >&5
13416
13417 ac_header_preproc=no
13418fi
13419rm -f conftest.err conftest.$ac_ext
13420echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13421echo "${ECHO_T}$ac_header_preproc" >&6
13422
13423# So? What about this header?
ac1cb8d3
VS
13424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13425 yes:no: )
a848cd7e
SC
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13427echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13429echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13430 ac_header_preproc=yes
a848cd7e 13431 ;;
ac1cb8d3 13432 no:yes:* )
a848cd7e
SC
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13434echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13436echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13438echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13440echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13442echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13444echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13445 (
13446 cat <<\_ASBOX
ac1cb8d3
VS
13447## ----------------------------------------- ##
13448## Report this to wx-dev@lists.wxwidgets.org ##
13449## ----------------------------------------- ##
a848cd7e
SC
13450_ASBOX
13451 ) |
13452 sed "s/^/$as_me: WARNING: /" >&2
13453 ;;
13454esac
13455echo "$as_me:$LINENO: checking for $ac_header" >&5
13456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13457if eval "test \"\${$as_ac_Header+set}\" = set"; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13459else
ac1cb8d3 13460 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13461fi
13462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13464
13465fi
13466if test `eval echo '${'$as_ac_Header'}'` = yes; then
13467 cat >>confdefs.h <<_ACEOF
13468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13469_ACEOF
13470
13471fi
13472
13473done
13474
13475
13476for ac_header in unistd.h
13477do
13478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13479if eval "test \"\${$as_ac_Header+set}\" = set"; then
13480 echo "$as_me:$LINENO: checking for $ac_header" >&5
13481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13482if eval "test \"\${$as_ac_Header+set}\" = set"; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13484fi
13485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13487else
13488 # Is the header compilable?
13489echo "$as_me:$LINENO: checking $ac_header usability" >&5
13490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13491cat >conftest.$ac_ext <<_ACEOF
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
13496/* end confdefs.h. */
13497$ac_includes_default
13498#include <$ac_header>
13499_ACEOF
13500rm -f conftest.$ac_objext
13501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13502 (eval $ac_compile) 2>conftest.er1
a848cd7e 13503 ac_status=$?
ac1cb8d3
VS
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
a848cd7e
SC
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } &&
da4486fb 13509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511 (eval $ac_try) 2>&5
13512 ac_status=$?
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); }; } &&
13515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }; then
13521 ac_header_compiler=yes
13522else
13523 echo "$as_me: failed program was:" >&5
13524sed 's/^/| /' conftest.$ac_ext >&5
13525
13526ac_header_compiler=no
13527fi
ac1cb8d3 13528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13530echo "${ECHO_T}$ac_header_compiler" >&6
13531
13532# Is the header present?
13533echo "$as_me:$LINENO: checking $ac_header presence" >&5
13534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13535cat >conftest.$ac_ext <<_ACEOF
13536/* confdefs.h. */
13537_ACEOF
13538cat confdefs.h >>conftest.$ac_ext
13539cat >>conftest.$ac_ext <<_ACEOF
13540/* end confdefs.h. */
13541#include <$ac_header>
13542_ACEOF
13543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } >/dev/null; then
13551 if test -s conftest.err; then
13552 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13554 else
13555 ac_cpp_err=
13556 fi
13557else
13558 ac_cpp_err=yes
13559fi
13560if test -z "$ac_cpp_err"; then
13561 ac_header_preproc=yes
13562else
13563 echo "$as_me: failed program was:" >&5
13564sed 's/^/| /' conftest.$ac_ext >&5
13565
13566 ac_header_preproc=no
13567fi
13568rm -f conftest.err conftest.$ac_ext
13569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13570echo "${ECHO_T}$ac_header_preproc" >&6
13571
13572# So? What about this header?
ac1cb8d3
VS
13573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13574 yes:no: )
a848cd7e
SC
13575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13579 ac_header_preproc=yes
a848cd7e 13580 ;;
ac1cb8d3 13581 no:yes:* )
a848cd7e
SC
13582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13585echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13589echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13594 (
13595 cat <<\_ASBOX
ac1cb8d3
VS
13596## ----------------------------------------- ##
13597## Report this to wx-dev@lists.wxwidgets.org ##
13598## ----------------------------------------- ##
a848cd7e
SC
13599_ASBOX
13600 ) |
13601 sed "s/^/$as_me: WARNING: /" >&2
13602 ;;
13603esac
13604echo "$as_me:$LINENO: checking for $ac_header" >&5
13605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13606if eval "test \"\${$as_ac_Header+set}\" = set"; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608else
ac1cb8d3 13609 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13610fi
13611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13613
13614fi
13615if test `eval echo '${'$as_ac_Header'}'` = yes; then
13616 cat >>confdefs.h <<_ACEOF
13617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13618_ACEOF
13619
13620fi
13621
13622done
13623
13624
13625for ac_header in wchar.h
13626do
13627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13628if eval "test \"\${$as_ac_Header+set}\" = set"; then
13629 echo "$as_me:$LINENO: checking for $ac_header" >&5
13630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13631if eval "test \"\${$as_ac_Header+set}\" = set"; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633fi
13634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13636else
13637 # Is the header compilable?
13638echo "$as_me:$LINENO: checking $ac_header usability" >&5
13639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13640cat >conftest.$ac_ext <<_ACEOF
13641/* confdefs.h. */
13642_ACEOF
13643cat confdefs.h >>conftest.$ac_ext
13644cat >>conftest.$ac_ext <<_ACEOF
13645/* end confdefs.h. */
13646$ac_includes_default
13647#include <$ac_header>
13648_ACEOF
13649rm -f conftest.$ac_objext
13650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13651 (eval $ac_compile) 2>conftest.er1
a848cd7e 13652 ac_status=$?
ac1cb8d3
VS
13653 grep -v '^ *+' conftest.er1 >conftest.err
13654 rm -f conftest.er1
13655 cat conftest.err >&5
a848cd7e
SC
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
da4486fb 13658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; } &&
13664 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13670 ac_header_compiler=yes
13671else
13672 echo "$as_me: failed program was:" >&5
13673sed 's/^/| /' conftest.$ac_ext >&5
13674
13675ac_header_compiler=no
13676fi
ac1cb8d3 13677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13678echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13679echo "${ECHO_T}$ac_header_compiler" >&6
13680
13681# Is the header present?
13682echo "$as_me:$LINENO: checking $ac_header presence" >&5
13683echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13684cat >conftest.$ac_ext <<_ACEOF
13685/* confdefs.h. */
13686_ACEOF
13687cat confdefs.h >>conftest.$ac_ext
13688cat >>conftest.$ac_ext <<_ACEOF
13689/* end confdefs.h. */
13690#include <$ac_header>
13691_ACEOF
13692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13694 ac_status=$?
13695 grep -v '^ *+' conftest.er1 >conftest.err
13696 rm -f conftest.er1
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } >/dev/null; then
13700 if test -s conftest.err; then
13701 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13703 else
13704 ac_cpp_err=
13705 fi
13706else
13707 ac_cpp_err=yes
13708fi
13709if test -z "$ac_cpp_err"; then
13710 ac_header_preproc=yes
13711else
13712 echo "$as_me: failed program was:" >&5
13713sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 ac_header_preproc=no
13716fi
13717rm -f conftest.err conftest.$ac_ext
13718echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13719echo "${ECHO_T}$ac_header_preproc" >&6
13720
13721# So? What about this header?
ac1cb8d3
VS
13722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13723 yes:no: )
a848cd7e
SC
13724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13725echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13727echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13728 ac_header_preproc=yes
a848cd7e 13729 ;;
ac1cb8d3 13730 no:yes:* )
a848cd7e
SC
13731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13732echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13734echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13736echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13738echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13740echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13742echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13743 (
13744 cat <<\_ASBOX
ac1cb8d3
VS
13745## ----------------------------------------- ##
13746## Report this to wx-dev@lists.wxwidgets.org ##
13747## ----------------------------------------- ##
a848cd7e
SC
13748_ASBOX
13749 ) |
13750 sed "s/^/$as_me: WARNING: /" >&2
13751 ;;
13752esac
13753echo "$as_me:$LINENO: checking for $ac_header" >&5
13754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13755if eval "test \"\${$as_ac_Header+set}\" = set"; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13757else
ac1cb8d3 13758 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13759fi
13760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13762
13763fi
13764if test `eval echo '${'$as_ac_Header'}'` = yes; then
13765 cat >>confdefs.h <<_ACEOF
13766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13767_ACEOF
13768
13769fi
13770
13771done
13772
13773
13774if test "$ac_cv_header_wchar_h" != "yes"; then
13775
13776for ac_header in wcstr.h
13777do
13778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13779if eval "test \"\${$as_ac_Header+set}\" = set"; then
13780 echo "$as_me:$LINENO: checking for $ac_header" >&5
13781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13782if eval "test \"\${$as_ac_Header+set}\" = set"; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784fi
13785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13787else
13788 # Is the header compilable?
13789echo "$as_me:$LINENO: checking $ac_header usability" >&5
13790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13791cat >conftest.$ac_ext <<_ACEOF
13792/* confdefs.h. */
13793_ACEOF
13794cat confdefs.h >>conftest.$ac_ext
13795cat >>conftest.$ac_ext <<_ACEOF
13796/* end confdefs.h. */
13797$ac_includes_default
13798#include <$ac_header>
13799_ACEOF
13800rm -f conftest.$ac_objext
13801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13802 (eval $ac_compile) 2>conftest.er1
a848cd7e 13803 ac_status=$?
ac1cb8d3
VS
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
a848cd7e
SC
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
da4486fb 13809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_header_compiler=yes
13822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826ac_header_compiler=no
13827fi
ac1cb8d3 13828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13830echo "${ECHO_T}$ac_header_compiler" >&6
13831
13832# Is the header present?
13833echo "$as_me:$LINENO: checking $ac_header presence" >&5
13834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13835cat >conftest.$ac_ext <<_ACEOF
13836/* confdefs.h. */
13837_ACEOF
13838cat confdefs.h >>conftest.$ac_ext
13839cat >>conftest.$ac_ext <<_ACEOF
13840/* end confdefs.h. */
13841#include <$ac_header>
13842_ACEOF
13843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } >/dev/null; then
13851 if test -s conftest.err; then
13852 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13854 else
13855 ac_cpp_err=
13856 fi
13857else
13858 ac_cpp_err=yes
13859fi
13860if test -z "$ac_cpp_err"; then
13861 ac_header_preproc=yes
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 ac_header_preproc=no
13867fi
13868rm -f conftest.err conftest.$ac_ext
13869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13870echo "${ECHO_T}$ac_header_preproc" >&6
13871
13872# So? What about this header?
ac1cb8d3
VS
13873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13874 yes:no: )
a848cd7e
SC
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13879 ac_header_preproc=yes
a848cd7e 13880 ;;
ac1cb8d3 13881 no:yes:* )
a848cd7e
SC
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13894 (
13895 cat <<\_ASBOX
ac1cb8d3
VS
13896## ----------------------------------------- ##
13897## Report this to wx-dev@lists.wxwidgets.org ##
13898## ----------------------------------------- ##
a848cd7e
SC
13899_ASBOX
13900 ) |
13901 sed "s/^/$as_me: WARNING: /" >&2
13902 ;;
13903esac
13904echo "$as_me:$LINENO: checking for $ac_header" >&5
13905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13906if eval "test \"\${$as_ac_Header+set}\" = set"; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13908else
ac1cb8d3 13909 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13910fi
13911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13913
13914fi
13915if test `eval echo '${'$as_ac_Header'}'` = yes; then
13916 cat >>confdefs.h <<_ACEOF
13917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13918_ACEOF
13919
13920fi
13921
13922done
13923
13924fi
13925
13926
13927for ac_header in fnmatch.h
13928do
13929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13930if eval "test \"\${$as_ac_Header+set}\" = set"; then
13931 echo "$as_me:$LINENO: checking for $ac_header" >&5
13932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13933if eval "test \"\${$as_ac_Header+set}\" = set"; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935fi
13936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13938else
13939 # Is the header compilable?
13940echo "$as_me:$LINENO: checking $ac_header usability" >&5
13941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13942cat >conftest.$ac_ext <<_ACEOF
13943/* confdefs.h. */
13944_ACEOF
13945cat confdefs.h >>conftest.$ac_ext
13946cat >>conftest.$ac_ext <<_ACEOF
13947/* end confdefs.h. */
13948$ac_includes_default
13949#include <$ac_header>
13950_ACEOF
13951rm -f conftest.$ac_objext
13952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13953 (eval $ac_compile) 2>conftest.er1
a848cd7e 13954 ac_status=$?
ac1cb8d3
VS
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
a848cd7e
SC
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
da4486fb 13960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; } &&
13966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }; then
13972 ac_header_compiler=yes
13973else
13974 echo "$as_me: failed program was:" >&5
13975sed 's/^/| /' conftest.$ac_ext >&5
13976
13977ac_header_compiler=no
13978fi
ac1cb8d3 13979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13981echo "${ECHO_T}$ac_header_compiler" >&6
13982
13983# Is the header present?
13984echo "$as_me:$LINENO: checking $ac_header presence" >&5
13985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13986cat >conftest.$ac_ext <<_ACEOF
13987/* confdefs.h. */
13988_ACEOF
13989cat confdefs.h >>conftest.$ac_ext
13990cat >>conftest.$ac_ext <<_ACEOF
13991/* end confdefs.h. */
13992#include <$ac_header>
13993_ACEOF
13994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } >/dev/null; then
14002 if test -s conftest.err; then
14003 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14005 else
14006 ac_cpp_err=
14007 fi
14008else
14009 ac_cpp_err=yes
14010fi
14011if test -z "$ac_cpp_err"; then
14012 ac_header_preproc=yes
14013else
14014 echo "$as_me: failed program was:" >&5
14015sed 's/^/| /' conftest.$ac_ext >&5
14016
14017 ac_header_preproc=no
14018fi
14019rm -f conftest.err conftest.$ac_ext
14020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14021echo "${ECHO_T}$ac_header_preproc" >&6
14022
14023# So? What about this header?
ac1cb8d3
VS
14024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14025 yes:no: )
a848cd7e
SC
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14030 ac_header_preproc=yes
a848cd7e 14031 ;;
ac1cb8d3 14032 no:yes:* )
a848cd7e
SC
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14045 (
14046 cat <<\_ASBOX
ac1cb8d3
VS
14047## ----------------------------------------- ##
14048## Report this to wx-dev@lists.wxwidgets.org ##
14049## ----------------------------------------- ##
a848cd7e
SC
14050_ASBOX
14051 ) |
14052 sed "s/^/$as_me: WARNING: /" >&2
14053 ;;
14054esac
14055echo "$as_me:$LINENO: checking for $ac_header" >&5
14056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14057if eval "test \"\${$as_ac_Header+set}\" = set"; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059else
ac1cb8d3 14060 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14061fi
14062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14064
14065fi
14066if test `eval echo '${'$as_ac_Header'}'` = yes; then
14067 cat >>confdefs.h <<_ACEOF
14068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14069_ACEOF
14070
14071fi
14072
14073done
14074
14075
14076if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14077
14078for ac_func in fnmatch
14079do
14080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14081echo "$as_me:$LINENO: checking for $ac_func" >&5
14082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14083if eval "test \"\${$as_ac_var+set}\" = set"; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14085else
14086 cat >conftest.$ac_ext <<_ACEOF
14087/* confdefs.h. */
14088_ACEOF
14089cat confdefs.h >>conftest.$ac_ext
14090cat >>conftest.$ac_ext <<_ACEOF
14091/* end confdefs.h. */
ac1cb8d3
VS
14092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14094#define $ac_func innocuous_$ac_func
14095
a848cd7e
SC
14096/* System header to define __stub macros and hopefully few prototypes,
14097 which can conflict with char $ac_func (); below.
14098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14099 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14100
a848cd7e
SC
14101#ifdef __STDC__
14102# include <limits.h>
14103#else
14104# include <assert.h>
14105#endif
ac1cb8d3
VS
14106
14107#undef $ac_func
14108
a848cd7e
SC
14109/* Override any gcc2 internal prototype to avoid an error. */
14110#ifdef __cplusplus
14111extern "C"
14112{
14113#endif
14114/* We use char because int might match the return type of a gcc2
14115 builtin and then its argument prototype would still apply. */
14116char $ac_func ();
14117/* The GNU C library defines this for functions which it implements
14118 to always fail with ENOSYS. Some functions are actually named
14119 something starting with __ and the normal name is an alias. */
14120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14121choke me
14122#else
14123char (*f) () = $ac_func;
14124#endif
14125#ifdef __cplusplus
14126}
14127#endif
14128
14129int
14130main ()
14131{
14132return f != $ac_func;
14133 ;
14134 return 0;
14135}
14136_ACEOF
14137rm -f conftest.$ac_objext conftest$ac_exeext
14138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14139 (eval $ac_link) 2>conftest.er1
a848cd7e 14140 ac_status=$?
ac1cb8d3
VS
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
a848cd7e
SC
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
da4486fb 14146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; } &&
14152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14158 eval "$as_ac_var=yes"
14159else
14160 echo "$as_me: failed program was:" >&5
14161sed 's/^/| /' conftest.$ac_ext >&5
14162
14163eval "$as_ac_var=no"
14164fi
ac1cb8d3
VS
14165rm -f conftest.err conftest.$ac_objext \
14166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14167fi
14168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14170if test `eval echo '${'$as_ac_var'}'` = yes; then
14171 cat >>confdefs.h <<_ACEOF
14172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14173_ACEOF
14174
14175fi
14176done
14177
14178fi
14179
14180
14181for ac_header in langinfo.h
14182do
14183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14184if eval "test \"\${$as_ac_Header+set}\" = set"; then
14185 echo "$as_me:$LINENO: checking for $ac_header" >&5
14186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14187if eval "test \"\${$as_ac_Header+set}\" = set"; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14189fi
14190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14192else
14193 # Is the header compilable?
14194echo "$as_me:$LINENO: checking $ac_header usability" >&5
14195echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14196cat >conftest.$ac_ext <<_ACEOF
14197/* confdefs.h. */
14198_ACEOF
14199cat confdefs.h >>conftest.$ac_ext
14200cat >>conftest.$ac_ext <<_ACEOF
14201/* end confdefs.h. */
14202$ac_includes_default
14203#include <$ac_header>
14204_ACEOF
14205rm -f conftest.$ac_objext
14206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14207 (eval $ac_compile) 2>conftest.er1
a848cd7e 14208 ac_status=$?
ac1cb8d3
VS
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
a848cd7e
SC
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
da4486fb 14214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216 (eval $ac_try) 2>&5
14217 ac_status=$?
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; } &&
14220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 ac_header_compiler=yes
14227else
14228 echo "$as_me: failed program was:" >&5
14229sed 's/^/| /' conftest.$ac_ext >&5
14230
14231ac_header_compiler=no
14232fi
ac1cb8d3 14233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14234echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14235echo "${ECHO_T}$ac_header_compiler" >&6
14236
14237# Is the header present?
14238echo "$as_me:$LINENO: checking $ac_header presence" >&5
14239echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
14247_ACEOF
14248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14250 ac_status=$?
14251 grep -v '^ *+' conftest.er1 >conftest.err
14252 rm -f conftest.er1
14253 cat conftest.err >&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } >/dev/null; then
14256 if test -s conftest.err; then
14257 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14259 else
14260 ac_cpp_err=
14261 fi
14262else
14263 ac_cpp_err=yes
14264fi
14265if test -z "$ac_cpp_err"; then
14266 ac_header_preproc=yes
14267else
14268 echo "$as_me: failed program was:" >&5
14269sed 's/^/| /' conftest.$ac_ext >&5
14270
14271 ac_header_preproc=no
14272fi
14273rm -f conftest.err conftest.$ac_ext
14274echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14275echo "${ECHO_T}$ac_header_preproc" >&6
14276
14277# So? What about this header?
ac1cb8d3
VS
14278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14279 yes:no: )
a848cd7e
SC
14280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14284 ac_header_preproc=yes
a848cd7e 14285 ;;
ac1cb8d3 14286 no:yes:* )
a848cd7e
SC
14287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14299 (
14300 cat <<\_ASBOX
ac1cb8d3
VS
14301## ----------------------------------------- ##
14302## Report this to wx-dev@lists.wxwidgets.org ##
14303## ----------------------------------------- ##
a848cd7e
SC
14304_ASBOX
14305 ) |
14306 sed "s/^/$as_me: WARNING: /" >&2
14307 ;;
14308esac
14309echo "$as_me:$LINENO: checking for $ac_header" >&5
14310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14311if eval "test \"\${$as_ac_Header+set}\" = set"; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14313else
ac1cb8d3 14314 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14315fi
14316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14318
14319fi
14320if test `eval echo '${'$as_ac_Header'}'` = yes; then
14321 cat >>confdefs.h <<_ACEOF
14322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14323_ACEOF
14324
14325fi
14326
14327done
14328
14329
14330case "${host}" in
14331 *-pc-os2_emx | *-pc-os2-emx )
14332 if test $ac_cv_header_langinfo_h = "yes"; then
14333 LIBS="$LIBS -lintl"
14334 fi
14335 ;;
14336esac
14337
14338if test "$wxUSE_GUI" = "yes"; then
14339 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14340
14341for ac_header in X11/Xlib.h
14342do
14343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14344if eval "test \"\${$as_ac_Header+set}\" = set"; then
14345 echo "$as_me:$LINENO: checking for $ac_header" >&5
14346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14347if eval "test \"\${$as_ac_Header+set}\" = set"; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349fi
14350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14352else
14353 # Is the header compilable?
14354echo "$as_me:$LINENO: checking $ac_header usability" >&5
14355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14356cat >conftest.$ac_ext <<_ACEOF
14357/* confdefs.h. */
14358_ACEOF
14359cat confdefs.h >>conftest.$ac_ext
14360cat >>conftest.$ac_ext <<_ACEOF
14361/* end confdefs.h. */
14362$ac_includes_default
14363#include <$ac_header>
14364_ACEOF
14365rm -f conftest.$ac_objext
14366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14367 (eval $ac_compile) 2>conftest.er1
a848cd7e 14368 ac_status=$?
ac1cb8d3
VS
14369 grep -v '^ *+' conftest.er1 >conftest.err
14370 rm -f conftest.er1
14371 cat conftest.err >&5
a848cd7e
SC
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } &&
da4486fb 14374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 ac_header_compiler=yes
14387else
14388 echo "$as_me: failed program was:" >&5
14389sed 's/^/| /' conftest.$ac_ext >&5
14390
14391ac_header_compiler=no
14392fi
ac1cb8d3 14393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14394echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14395echo "${ECHO_T}$ac_header_compiler" >&6
14396
14397# Is the header present?
14398echo "$as_me:$LINENO: checking $ac_header presence" >&5
14399echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14400cat >conftest.$ac_ext <<_ACEOF
14401/* confdefs.h. */
14402_ACEOF
14403cat confdefs.h >>conftest.$ac_ext
14404cat >>conftest.$ac_ext <<_ACEOF
14405/* end confdefs.h. */
14406#include <$ac_header>
14407_ACEOF
14408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14410 ac_status=$?
14411 grep -v '^ *+' conftest.er1 >conftest.err
14412 rm -f conftest.er1
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } >/dev/null; then
14416 if test -s conftest.err; then
14417 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14419 else
14420 ac_cpp_err=
14421 fi
14422else
14423 ac_cpp_err=yes
14424fi
14425if test -z "$ac_cpp_err"; then
14426 ac_header_preproc=yes
14427else
14428 echo "$as_me: failed program was:" >&5
14429sed 's/^/| /' conftest.$ac_ext >&5
14430
14431 ac_header_preproc=no
14432fi
14433rm -f conftest.err conftest.$ac_ext
14434echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14435echo "${ECHO_T}$ac_header_preproc" >&6
14436
14437# So? What about this header?
ac1cb8d3
VS
14438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14439 yes:no: )
a848cd7e
SC
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14441echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14443echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14444 ac_header_preproc=yes
a848cd7e 14445 ;;
ac1cb8d3 14446 no:yes:* )
a848cd7e
SC
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14450echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14452echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14454echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14458echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14459 (
14460 cat <<\_ASBOX
ac1cb8d3
VS
14461## ----------------------------------------- ##
14462## Report this to wx-dev@lists.wxwidgets.org ##
14463## ----------------------------------------- ##
a848cd7e
SC
14464_ASBOX
14465 ) |
14466 sed "s/^/$as_me: WARNING: /" >&2
14467 ;;
14468esac
14469echo "$as_me:$LINENO: checking for $ac_header" >&5
14470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14471if eval "test \"\${$as_ac_Header+set}\" = set"; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473else
ac1cb8d3 14474 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14475fi
14476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14478
14479fi
14480if test `eval echo '${'$as_ac_Header'}'` = yes; then
14481 cat >>confdefs.h <<_ACEOF
14482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14483_ACEOF
14484
14485fi
14486
14487done
14488
14489
14490for ac_header in X11/XKBlib.h
14491do
14492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14493echo "$as_me:$LINENO: checking for $ac_header" >&5
14494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14495if eval "test \"\${$as_ac_Header+set}\" = set"; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498 cat >conftest.$ac_ext <<_ACEOF
14499/* confdefs.h. */
14500_ACEOF
14501cat confdefs.h >>conftest.$ac_ext
14502cat >>conftest.$ac_ext <<_ACEOF
14503/* end confdefs.h. */
14504
14505 #if HAVE_X11_XLIB_H
14506 #include <X11/Xlib.h>
14507 #endif
14508
14509
14510#include <$ac_header>
14511_ACEOF
14512rm -f conftest.$ac_objext
14513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14514 (eval $ac_compile) 2>conftest.er1
a848cd7e 14515 ac_status=$?
ac1cb8d3
VS
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
a848cd7e
SC
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } &&
da4486fb 14521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; } &&
14527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
14533 eval "$as_ac_Header=yes"
14534else
14535 echo "$as_me: failed program was:" >&5
14536sed 's/^/| /' conftest.$ac_ext >&5
14537
14538eval "$as_ac_Header=no"
14539fi
ac1cb8d3 14540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14541fi
14542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14544if test `eval echo '${'$as_ac_Header'}'` = yes; then
14545 cat >>confdefs.h <<_ACEOF
14546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14547_ACEOF
14548
14549fi
14550
14551done
14552
14553 fi
14554fi
14555
14556
14557echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14558echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14559if test "${ac_cv_c_const+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561else
14562 cat >conftest.$ac_ext <<_ACEOF
14563/* confdefs.h. */
14564_ACEOF
14565cat confdefs.h >>conftest.$ac_ext
14566cat >>conftest.$ac_ext <<_ACEOF
14567/* end confdefs.h. */
14568
14569int
14570main ()
14571{
14572/* FIXME: Include the comments suggested by Paul. */
14573#ifndef __cplusplus
14574 /* Ultrix mips cc rejects this. */
14575 typedef int charset[2];
14576 const charset x;
14577 /* SunOS 4.1.1 cc rejects this. */
14578 char const *const *ccp;
14579 char **p;
14580 /* NEC SVR4.0.2 mips cc rejects this. */
14581 struct point {int x, y;};
14582 static struct point const zero = {0,0};
14583 /* AIX XL C 1.02.0.0 rejects this.
14584 It does not let you subtract one const X* pointer from another in
14585 an arm of an if-expression whose if-part is not a constant
14586 expression */
14587 const char *g = "string";
14588 ccp = &g + (g ? g-g : 0);
14589 /* HPUX 7.0 cc rejects these. */
14590 ++ccp;
14591 p = (char**) ccp;
14592 ccp = (char const *const *) p;
14593 { /* SCO 3.2v4 cc rejects this. */
14594 char *t;
14595 char const *s = 0 ? (char *) 0 : (char const *) 0;
14596
14597 *t++ = 0;
14598 }
14599 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14600 int x[] = {25, 17};
14601 const int *foo = &x[0];
14602 ++foo;
14603 }
14604 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14605 typedef const int *iptr;
14606 iptr p = 0;
14607 ++p;
14608 }
14609 { /* AIX XL C 1.02.0.0 rejects this saying
14610 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14611 struct s { int j; const int *ap[3]; };
14612 struct s *b; b->j = 5;
14613 }
14614 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14615 const int foo = 10;
14616 }
14617#endif
14618
14619 ;
14620 return 0;
14621}
14622_ACEOF
14623rm -f conftest.$ac_objext
14624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14625 (eval $ac_compile) 2>conftest.er1
a848cd7e 14626 ac_status=$?
ac1cb8d3
VS
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
a848cd7e
SC
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
da4486fb 14632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_cv_c_const=yes
14645else
14646 echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
14649ac_cv_c_const=no
14650fi
ac1cb8d3 14651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14652fi
14653echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14654echo "${ECHO_T}$ac_cv_c_const" >&6
14655if test $ac_cv_c_const = no; then
14656
14657cat >>confdefs.h <<\_ACEOF
14658#define const
14659_ACEOF
14660
14661fi
14662
14663echo "$as_me:$LINENO: checking for inline" >&5
14664echo $ECHO_N "checking for inline... $ECHO_C" >&6
14665if test "${ac_cv_c_inline+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14667else
14668 ac_cv_c_inline=no
14669for ac_kw in inline __inline__ __inline; do
14670 cat >conftest.$ac_ext <<_ACEOF
14671/* confdefs.h. */
14672_ACEOF
14673cat confdefs.h >>conftest.$ac_ext
14674cat >>conftest.$ac_ext <<_ACEOF
14675/* end confdefs.h. */
14676#ifndef __cplusplus
14677typedef int foo_t;
14678static $ac_kw foo_t static_foo () {return 0; }
14679$ac_kw foo_t foo () {return 0; }
14680#endif
14681
14682_ACEOF
14683rm -f conftest.$ac_objext
14684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14685 (eval $ac_compile) 2>conftest.er1
a848cd7e 14686 ac_status=$?
ac1cb8d3
VS
14687 grep -v '^ *+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
a848cd7e
SC
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
da4486fb 14692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_cv_c_inline=$ac_kw; break
14705else
14706 echo "$as_me: failed program was:" >&5
14707sed 's/^/| /' conftest.$ac_ext >&5
14708
14709fi
ac1cb8d3 14710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14711done
14712
14713fi
14714echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14715echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14716
14717
a848cd7e
SC
14718case $ac_cv_c_inline in
14719 inline | yes) ;;
ac1cb8d3
VS
14720 *)
14721 case $ac_cv_c_inline in
14722 no) ac_val=;;
14723 *) ac_val=$ac_cv_c_inline;;
14724 esac
14725 cat >>confdefs.h <<_ACEOF
14726#ifndef __cplusplus
14727#define inline $ac_val
14728#endif
de59c161 14729_ACEOF
ac1cb8d3 14730 ;;
a848cd7e
SC
14731esac
14732
14733
14734echo "$as_me:$LINENO: checking for char" >&5
14735echo $ECHO_N "checking for char... $ECHO_C" >&6
14736if test "${ac_cv_type_char+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14738else
14739 cat >conftest.$ac_ext <<_ACEOF
14740/* confdefs.h. */
14741_ACEOF
14742cat confdefs.h >>conftest.$ac_ext
14743cat >>conftest.$ac_ext <<_ACEOF
14744/* end confdefs.h. */
14745$ac_includes_default
14746int
14747main ()
14748{
14749if ((char *) 0)
14750 return 0;
14751if (sizeof (char))
14752 return 0;
14753 ;
14754 return 0;
14755}
14756_ACEOF
14757rm -f conftest.$ac_objext
14758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14759 (eval $ac_compile) 2>conftest.er1
a848cd7e 14760 ac_status=$?
ac1cb8d3
VS
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
a848cd7e
SC
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
da4486fb 14766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 ac_cv_type_char=yes
14779else
14780 echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783ac_cv_type_char=no
14784fi
ac1cb8d3 14785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14786fi
14787echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14788echo "${ECHO_T}$ac_cv_type_char" >&6
14789
14790echo "$as_me:$LINENO: checking size of char" >&5
14791echo $ECHO_N "checking size of char... $ECHO_C" >&6
14792if test "${ac_cv_sizeof_char+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14794else
14795 if test "$ac_cv_type_char" = yes; then
14796 # The cast to unsigned long works around a bug in the HP C Compiler
14797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14799 # This bug is HP SR number 8606223364.
14800 if test "$cross_compiling" = yes; then
14801 # Depending upon the size, compute the lo and hi bounds.
14802cat >conftest.$ac_ext <<_ACEOF
14803/* confdefs.h. */
14804_ACEOF
14805cat confdefs.h >>conftest.$ac_ext
14806cat >>conftest.$ac_ext <<_ACEOF
14807/* end confdefs.h. */
14808$ac_includes_default
14809int
14810main ()
14811{
14812static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14813test_array [0] = 0
14814
14815 ;
14816 return 0;
14817}
14818_ACEOF
14819rm -f conftest.$ac_objext
14820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14821 (eval $ac_compile) 2>conftest.er1
a848cd7e 14822 ac_status=$?
ac1cb8d3
VS
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
a848cd7e
SC
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
da4486fb 14828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; } &&
14834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14840 ac_lo=0 ac_mid=0
14841 while :; do
14842 cat >conftest.$ac_ext <<_ACEOF
14843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848$ac_includes_default
14849int
14850main ()
14851{
14852static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14853test_array [0] = 0
14854
14855 ;
14856 return 0;
14857}
14858_ACEOF
14859rm -f conftest.$ac_objext
14860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14861 (eval $ac_compile) 2>conftest.er1
a848cd7e 14862 ac_status=$?
ac1cb8d3
VS
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
a848cd7e
SC
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
da4486fb 14868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } &&
14874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 ac_hi=$ac_mid; break
14881else
14882 echo "$as_me: failed program was:" >&5
14883sed 's/^/| /' conftest.$ac_ext >&5
14884
14885ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14886 if test $ac_lo -le $ac_mid; then
14887 ac_lo= ac_hi=
14888 break
14889 fi
14890 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14891fi
ac1cb8d3 14892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14893 done
14894else
14895 echo "$as_me: failed program was:" >&5
14896sed 's/^/| /' conftest.$ac_ext >&5
14897
14898cat >conftest.$ac_ext <<_ACEOF
14899/* confdefs.h. */
14900_ACEOF
14901cat confdefs.h >>conftest.$ac_ext
14902cat >>conftest.$ac_ext <<_ACEOF
14903/* end confdefs.h. */
14904$ac_includes_default
14905int
14906main ()
14907{
14908static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14909test_array [0] = 0
14910
14911 ;
14912 return 0;
14913}
14914_ACEOF
14915rm -f conftest.$ac_objext
14916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14917 (eval $ac_compile) 2>conftest.er1
a848cd7e 14918 ac_status=$?
ac1cb8d3
VS
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
a848cd7e
SC
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
da4486fb 14924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; } &&
14930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; }; then
14936 ac_hi=-1 ac_mid=-1
14937 while :; do
14938 cat >conftest.$ac_ext <<_ACEOF
14939/* confdefs.h. */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
14943/* end confdefs.h. */
14944$ac_includes_default
14945int
14946main ()
14947{
14948static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14949test_array [0] = 0
14950
14951 ;
14952 return 0;
14953}
14954_ACEOF
14955rm -f conftest.$ac_objext
14956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14957 (eval $ac_compile) 2>conftest.er1
a848cd7e 14958 ac_status=$?
ac1cb8d3
VS
14959 grep -v '^ *+' conftest.er1 >conftest.err
14960 rm -f conftest.er1
14961 cat conftest.err >&5
a848cd7e
SC
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
da4486fb 14964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; } &&
14970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 ac_lo=$ac_mid; break
14977else
14978 echo "$as_me: failed program was:" >&5
14979sed 's/^/| /' conftest.$ac_ext >&5
14980
14981ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14982 if test $ac_mid -le $ac_hi; then
14983 ac_lo= ac_hi=
14984 break
14985 fi
14986 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14987fi
ac1cb8d3 14988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14989 done
14990else
14991 echo "$as_me: failed program was:" >&5
14992sed 's/^/| /' conftest.$ac_ext >&5
14993
14994ac_lo= ac_hi=
14995fi
ac1cb8d3 14996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14997fi
ac1cb8d3 14998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14999# Binary search between lo and hi bounds.
15000while test "x$ac_lo" != "x$ac_hi"; do
15001 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15002 cat >conftest.$ac_ext <<_ACEOF
15003/* confdefs.h. */
15004_ACEOF
15005cat confdefs.h >>conftest.$ac_ext
15006cat >>conftest.$ac_ext <<_ACEOF
15007/* end confdefs.h. */
15008$ac_includes_default
15009int
15010main ()
15011{
15012static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15013test_array [0] = 0
15014
15015 ;
15016 return 0;
15017}
15018_ACEOF
15019rm -f conftest.$ac_objext
15020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15021 (eval $ac_compile) 2>conftest.er1
a848cd7e 15022 ac_status=$?
ac1cb8d3
VS
15023 grep -v '^ *+' conftest.er1 >conftest.err
15024 rm -f conftest.er1
15025 cat conftest.err >&5
a848cd7e
SC
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
da4486fb 15028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 ac_hi=$ac_mid
15041else
15042 echo "$as_me: failed program was:" >&5
15043sed 's/^/| /' conftest.$ac_ext >&5
15044
15045ac_lo=`expr '(' $ac_mid ')' + 1`
15046fi
ac1cb8d3 15047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15048done
15049case $ac_lo in
15050?*) ac_cv_sizeof_char=$ac_lo;;
15051'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15052See \`config.log' for more details." >&5
15053echo "$as_me: error: cannot compute sizeof (char), 77
15054See \`config.log' for more details." >&2;}
15055 { (exit 1); exit 1; }; } ;;
15056esac
15057else
15058 if test "$cross_compiling" = yes; then
da4486fb
VZ
15059 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15060echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15061 { (exit 1); exit 1; }; }
15062else
15063 cat >conftest.$ac_ext <<_ACEOF
15064/* confdefs.h. */
15065_ACEOF
15066cat confdefs.h >>conftest.$ac_ext
15067cat >>conftest.$ac_ext <<_ACEOF
15068/* end confdefs.h. */
15069$ac_includes_default
15070long longval () { return (long) (sizeof (char)); }
15071unsigned long ulongval () { return (long) (sizeof (char)); }
15072#include <stdio.h>
15073#include <stdlib.h>
15074int
15075main ()
15076{
15077
15078 FILE *f = fopen ("conftest.val", "w");
15079 if (! f)
15080 exit (1);
15081 if (((long) (sizeof (char))) < 0)
15082 {
15083 long i = longval ();
15084 if (i != ((long) (sizeof (char))))
15085 exit (1);
15086 fprintf (f, "%ld\n", i);
15087 }
15088 else
15089 {
15090 unsigned long i = ulongval ();
15091 if (i != ((long) (sizeof (char))))
15092 exit (1);
15093 fprintf (f, "%lu\n", i);
15094 }
15095 exit (ferror (f) || fclose (f) != 0);
15096
15097 ;
15098 return 0;
15099}
15100_ACEOF
15101rm -f conftest$ac_exeext
15102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15103 (eval $ac_link) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_cv_sizeof_char=`cat conftest.val`
15113else
15114 echo "$as_me: program exited with status $ac_status" >&5
15115echo "$as_me: failed program was:" >&5
15116sed 's/^/| /' conftest.$ac_ext >&5
15117
15118( exit $ac_status )
15119{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15120See \`config.log' for more details." >&5
15121echo "$as_me: error: cannot compute sizeof (char), 77
15122See \`config.log' for more details." >&2;}
15123 { (exit 1); exit 1; }; }
15124fi
ac1cb8d3 15125rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15126fi
15127fi
15128rm -f conftest.val
15129else
15130 ac_cv_sizeof_char=0
15131fi
15132fi
15133echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15134echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15135cat >>confdefs.h <<_ACEOF
15136#define SIZEOF_CHAR $ac_cv_sizeof_char
15137_ACEOF
15138
15139
15140echo "$as_me:$LINENO: checking for short" >&5
15141echo $ECHO_N "checking for short... $ECHO_C" >&6
15142if test "${ac_cv_type_short+set}" = set; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15144else
15145 cat >conftest.$ac_ext <<_ACEOF
15146/* confdefs.h. */
15147_ACEOF
15148cat confdefs.h >>conftest.$ac_ext
15149cat >>conftest.$ac_ext <<_ACEOF
15150/* end confdefs.h. */
15151$ac_includes_default
15152int
15153main ()
15154{
15155if ((short *) 0)
15156 return 0;
15157if (sizeof (short))
15158 return 0;
15159 ;
15160 return 0;
15161}
15162_ACEOF
15163rm -f conftest.$ac_objext
15164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15165 (eval $ac_compile) 2>conftest.er1
a848cd7e 15166 ac_status=$?
ac1cb8d3
VS
15167 grep -v '^ *+' conftest.er1 >conftest.err
15168 rm -f conftest.er1
15169 cat conftest.err >&5
a848cd7e
SC
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } &&
da4486fb 15172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 ac_cv_type_short=yes
15185else
15186 echo "$as_me: failed program was:" >&5
15187sed 's/^/| /' conftest.$ac_ext >&5
15188
15189ac_cv_type_short=no
15190fi
ac1cb8d3 15191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15192fi
15193echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15194echo "${ECHO_T}$ac_cv_type_short" >&6
15195
15196echo "$as_me:$LINENO: checking size of short" >&5
15197echo $ECHO_N "checking size of short... $ECHO_C" >&6
15198if test "${ac_cv_sizeof_short+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200else
15201 if test "$ac_cv_type_short" = yes; then
15202 # The cast to unsigned long works around a bug in the HP C Compiler
15203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15205 # This bug is HP SR number 8606223364.
15206 if test "$cross_compiling" = yes; then
15207 # Depending upon the size, compute the lo and hi bounds.
15208cat >conftest.$ac_ext <<_ACEOF
15209/* confdefs.h. */
15210_ACEOF
15211cat confdefs.h >>conftest.$ac_ext
15212cat >>conftest.$ac_ext <<_ACEOF
15213/* end confdefs.h. */
15214$ac_includes_default
15215int
15216main ()
15217{
15218static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15219test_array [0] = 0
15220
15221 ;
15222 return 0;
15223}
15224_ACEOF
15225rm -f conftest.$ac_objext
15226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15227 (eval $ac_compile) 2>conftest.er1
a848cd7e 15228 ac_status=$?
ac1cb8d3
VS
15229 grep -v '^ *+' conftest.er1 >conftest.err
15230 rm -f conftest.er1
15231 cat conftest.err >&5
a848cd7e
SC
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
da4486fb 15234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_lo=0 ac_mid=0
15247 while :; do
15248 cat >conftest.$ac_ext <<_ACEOF
15249/* confdefs.h. */
15250_ACEOF
15251cat confdefs.h >>conftest.$ac_ext
15252cat >>conftest.$ac_ext <<_ACEOF
15253/* end confdefs.h. */
15254$ac_includes_default
15255int
15256main ()
15257{
15258static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15259test_array [0] = 0
15260
15261 ;
15262 return 0;
15263}
15264_ACEOF
15265rm -f conftest.$ac_objext
15266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15267 (eval $ac_compile) 2>conftest.er1
a848cd7e 15268 ac_status=$?
ac1cb8d3
VS
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
a848cd7e
SC
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
da4486fb 15274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; } &&
15280 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; }; then
15286 ac_hi=$ac_mid; break
15287else
15288 echo "$as_me: failed program was:" >&5
15289sed 's/^/| /' conftest.$ac_ext >&5
15290
15291ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15292 if test $ac_lo -le $ac_mid; then
15293 ac_lo= ac_hi=
15294 break
15295 fi
15296 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15297fi
ac1cb8d3 15298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15299 done
15300else
15301 echo "$as_me: failed program was:" >&5
15302sed 's/^/| /' conftest.$ac_ext >&5
15303
15304cat >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 (short))) < 0)];
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); } &&
da4486fb 15330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_hi=-1 ac_mid=-1
15343 while :; do
15344 cat >conftest.$ac_ext <<_ACEOF
15345/* confdefs.h. */
15346_ACEOF
15347cat confdefs.h >>conftest.$ac_ext
15348cat >>conftest.$ac_ext <<_ACEOF
15349/* end confdefs.h. */
15350$ac_includes_default
15351int
15352main ()
15353{
15354static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15355test_array [0] = 0
15356
15357 ;
15358 return 0;
15359}
15360_ACEOF
15361rm -f conftest.$ac_objext
15362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15363 (eval $ac_compile) 2>conftest.er1
a848cd7e 15364 ac_status=$?
ac1cb8d3
VS
15365 grep -v '^ *+' conftest.er1 >conftest.err
15366 rm -f conftest.er1
15367 cat conftest.err >&5
a848cd7e
SC
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
da4486fb 15370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; } &&
15376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_lo=$ac_mid; break
15383else
15384 echo "$as_me: failed program was:" >&5
15385sed 's/^/| /' conftest.$ac_ext >&5
15386
15387ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15388 if test $ac_mid -le $ac_hi; then
15389 ac_lo= ac_hi=
15390 break
15391 fi
15392 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15393fi
ac1cb8d3 15394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15395 done
15396else
15397 echo "$as_me: failed program was:" >&5
15398sed 's/^/| /' conftest.$ac_ext >&5
15399
15400ac_lo= ac_hi=
15401fi
ac1cb8d3 15402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15403fi
ac1cb8d3 15404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15405# Binary search between lo and hi bounds.
15406while test "x$ac_lo" != "x$ac_hi"; do
15407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15408 cat >conftest.$ac_ext <<_ACEOF
15409/* confdefs.h. */
15410_ACEOF
15411cat confdefs.h >>conftest.$ac_ext
15412cat >>conftest.$ac_ext <<_ACEOF
15413/* end confdefs.h. */
15414$ac_includes_default
15415int
15416main ()
15417{
15418static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15419test_array [0] = 0
15420
15421 ;
15422 return 0;
15423}
15424_ACEOF
15425rm -f conftest.$ac_objext
15426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15427 (eval $ac_compile) 2>conftest.er1
a848cd7e 15428 ac_status=$?
ac1cb8d3
VS
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
a848cd7e
SC
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
da4486fb 15434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446 ac_hi=$ac_mid
15447else
15448 echo "$as_me: failed program was:" >&5
15449sed 's/^/| /' conftest.$ac_ext >&5
15450
15451ac_lo=`expr '(' $ac_mid ')' + 1`
15452fi
ac1cb8d3 15453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15454done
15455case $ac_lo in
15456?*) ac_cv_sizeof_short=$ac_lo;;
15457'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15458See \`config.log' for more details." >&5
15459echo "$as_me: error: cannot compute sizeof (short), 77
15460See \`config.log' for more details." >&2;}
15461 { (exit 1); exit 1; }; } ;;
15462esac
15463else
15464 if test "$cross_compiling" = yes; then
da4486fb
VZ
15465 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15466echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15467 { (exit 1); exit 1; }; }
15468else
15469 cat >conftest.$ac_ext <<_ACEOF
15470/* confdefs.h. */
15471_ACEOF
15472cat confdefs.h >>conftest.$ac_ext
15473cat >>conftest.$ac_ext <<_ACEOF
15474/* end confdefs.h. */
15475$ac_includes_default
15476long longval () { return (long) (sizeof (short)); }
15477unsigned long ulongval () { return (long) (sizeof (short)); }
15478#include <stdio.h>
15479#include <stdlib.h>
15480int
15481main ()
15482{
15483
15484 FILE *f = fopen ("conftest.val", "w");
15485 if (! f)
15486 exit (1);
15487 if (((long) (sizeof (short))) < 0)
15488 {
15489 long i = longval ();
15490 if (i != ((long) (sizeof (short))))
15491 exit (1);
15492 fprintf (f, "%ld\n", i);
15493 }
15494 else
15495 {
15496 unsigned long i = ulongval ();
15497 if (i != ((long) (sizeof (short))))
15498 exit (1);
15499 fprintf (f, "%lu\n", i);
15500 }
15501 exit (ferror (f) || fclose (f) != 0);
15502
15503 ;
15504 return 0;
15505}
15506_ACEOF
15507rm -f conftest$ac_exeext
15508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15509 (eval $ac_link) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 ac_cv_sizeof_short=`cat conftest.val`
15519else
15520 echo "$as_me: program exited with status $ac_status" >&5
15521echo "$as_me: failed program was:" >&5
15522sed 's/^/| /' conftest.$ac_ext >&5
15523
15524( exit $ac_status )
15525{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15526See \`config.log' for more details." >&5
15527echo "$as_me: error: cannot compute sizeof (short), 77
15528See \`config.log' for more details." >&2;}
15529 { (exit 1); exit 1; }; }
15530fi
ac1cb8d3 15531rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15532fi
15533fi
15534rm -f conftest.val
15535else
15536 ac_cv_sizeof_short=0
15537fi
15538fi
15539echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15540echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15541cat >>confdefs.h <<_ACEOF
15542#define SIZEOF_SHORT $ac_cv_sizeof_short
15543_ACEOF
15544
15545
15546echo "$as_me:$LINENO: checking for void *" >&5
15547echo $ECHO_N "checking for void *... $ECHO_C" >&6
15548if test "${ac_cv_type_void_p+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550else
15551 cat >conftest.$ac_ext <<_ACEOF
15552/* confdefs.h. */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h. */
15557$ac_includes_default
15558int
15559main ()
15560{
15561if ((void * *) 0)
15562 return 0;
15563if (sizeof (void *))
15564 return 0;
15565 ;
15566 return 0;
15567}
15568_ACEOF
15569rm -f conftest.$ac_objext
15570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15571 (eval $ac_compile) 2>conftest.er1
a848cd7e 15572 ac_status=$?
ac1cb8d3
VS
15573 grep -v '^ *+' conftest.er1 >conftest.err
15574 rm -f conftest.er1
15575 cat conftest.err >&5
a848cd7e
SC
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
da4486fb 15578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_type_void_p=yes
15591else
15592 echo "$as_me: failed program was:" >&5
15593sed 's/^/| /' conftest.$ac_ext >&5
15594
15595ac_cv_type_void_p=no
15596fi
ac1cb8d3 15597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15598fi
15599echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15600echo "${ECHO_T}$ac_cv_type_void_p" >&6
15601
15602echo "$as_me:$LINENO: checking size of void *" >&5
15603echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15604if test "${ac_cv_sizeof_void_p+set}" = set; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15606else
15607 if test "$ac_cv_type_void_p" = yes; then
15608 # The cast to unsigned long works around a bug in the HP C Compiler
15609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15611 # This bug is HP SR number 8606223364.
15612 if test "$cross_compiling" = yes; then
15613 # Depending upon the size, compute the lo and hi bounds.
15614cat >conftest.$ac_ext <<_ACEOF
15615/* confdefs.h. */
15616_ACEOF
15617cat confdefs.h >>conftest.$ac_ext
15618cat >>conftest.$ac_ext <<_ACEOF
15619/* end confdefs.h. */
15620$ac_includes_default
15621int
15622main ()
15623{
15624static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15625test_array [0] = 0
15626
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); } &&
da4486fb 15640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_lo=0 ac_mid=0
15653 while :; do
15654 cat >conftest.$ac_ext <<_ACEOF
15655/* confdefs.h. */
15656_ACEOF
15657cat confdefs.h >>conftest.$ac_ext
15658cat >>conftest.$ac_ext <<_ACEOF
15659/* end confdefs.h. */
15660$ac_includes_default
15661int
15662main ()
15663{
15664static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15665test_array [0] = 0
15666
15667 ;
15668 return 0;
15669}
15670_ACEOF
15671rm -f conftest.$ac_objext
15672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15673 (eval $ac_compile) 2>conftest.er1
a848cd7e 15674 ac_status=$?
ac1cb8d3
VS
15675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
a848cd7e
SC
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
da4486fb 15680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_hi=$ac_mid; break
15693else
15694 echo "$as_me: failed program was:" >&5
15695sed 's/^/| /' conftest.$ac_ext >&5
15696
15697ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15698 if test $ac_lo -le $ac_mid; then
15699 ac_lo= ac_hi=
15700 break
15701 fi
15702 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15703fi
ac1cb8d3 15704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15705 done
15706else
15707 echo "$as_me: failed program was:" >&5
15708sed 's/^/| /' conftest.$ac_ext >&5
15709
15710cat >conftest.$ac_ext <<_ACEOF
15711/* confdefs.h. */
15712_ACEOF
15713cat confdefs.h >>conftest.$ac_ext
15714cat >>conftest.$ac_ext <<_ACEOF
15715/* end confdefs.h. */
15716$ac_includes_default
15717int
15718main ()
15719{
15720static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15721test_array [0] = 0
15722
15723 ;
15724 return 0;
15725}
15726_ACEOF
15727rm -f conftest.$ac_objext
15728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15729 (eval $ac_compile) 2>conftest.er1
a848cd7e 15730 ac_status=$?
ac1cb8d3
VS
15731 grep -v '^ *+' conftest.er1 >conftest.err
15732 rm -f conftest.er1
15733 cat conftest.err >&5
a848cd7e
SC
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
da4486fb 15736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_hi=-1 ac_mid=-1
15749 while :; do
15750 cat >conftest.$ac_ext <<_ACEOF
15751/* confdefs.h. */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h. */
15756$ac_includes_default
15757int
15758main ()
15759{
15760static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15761test_array [0] = 0
15762
15763 ;
15764 return 0;
15765}
15766_ACEOF
15767rm -f conftest.$ac_objext
15768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15769 (eval $ac_compile) 2>conftest.er1
a848cd7e 15770 ac_status=$?
ac1cb8d3
VS
15771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
a848cd7e
SC
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
da4486fb 15776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; } &&
15782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 ac_lo=$ac_mid; break
15789else
15790 echo "$as_me: failed program was:" >&5
15791sed 's/^/| /' conftest.$ac_ext >&5
15792
15793ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15794 if test $ac_mid -le $ac_hi; then
15795 ac_lo= ac_hi=
15796 break
15797 fi
15798 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15799fi
ac1cb8d3 15800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15801 done
15802else
15803 echo "$as_me: failed program was:" >&5
15804sed 's/^/| /' conftest.$ac_ext >&5
15805
15806ac_lo= ac_hi=
15807fi
ac1cb8d3 15808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15809fi
ac1cb8d3 15810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15811# Binary search between lo and hi bounds.
15812while test "x$ac_lo" != "x$ac_hi"; do
15813 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15814 cat >conftest.$ac_ext <<_ACEOF
15815/* confdefs.h. */
15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
15820$ac_includes_default
15821int
15822main ()
15823{
15824static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15825test_array [0] = 0
15826
15827 ;
15828 return 0;
15829}
15830_ACEOF
15831rm -f conftest.$ac_objext
15832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15833 (eval $ac_compile) 2>conftest.er1
a848cd7e 15834 ac_status=$?
ac1cb8d3
VS
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
a848cd7e
SC
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
da4486fb 15840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_hi=$ac_mid
15853else
15854 echo "$as_me: failed program was:" >&5
15855sed 's/^/| /' conftest.$ac_ext >&5
15856
15857ac_lo=`expr '(' $ac_mid ')' + 1`
15858fi
ac1cb8d3 15859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15860done
15861case $ac_lo in
15862?*) ac_cv_sizeof_void_p=$ac_lo;;
15863'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15864See \`config.log' for more details." >&5
15865echo "$as_me: error: cannot compute sizeof (void *), 77
15866See \`config.log' for more details." >&2;}
15867 { (exit 1); exit 1; }; } ;;
15868esac
15869else
15870 if test "$cross_compiling" = yes; then
da4486fb
VZ
15871 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15872echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15873 { (exit 1); exit 1; }; }
15874else
15875 cat >conftest.$ac_ext <<_ACEOF
15876/* confdefs.h. */
15877_ACEOF
15878cat confdefs.h >>conftest.$ac_ext
15879cat >>conftest.$ac_ext <<_ACEOF
15880/* end confdefs.h. */
15881$ac_includes_default
15882long longval () { return (long) (sizeof (void *)); }
15883unsigned long ulongval () { return (long) (sizeof (void *)); }
15884#include <stdio.h>
15885#include <stdlib.h>
15886int
15887main ()
15888{
15889
15890 FILE *f = fopen ("conftest.val", "w");
15891 if (! f)
15892 exit (1);
15893 if (((long) (sizeof (void *))) < 0)
15894 {
15895 long i = longval ();
15896 if (i != ((long) (sizeof (void *))))
15897 exit (1);
15898 fprintf (f, "%ld\n", i);
15899 }
15900 else
15901 {
15902 unsigned long i = ulongval ();
15903 if (i != ((long) (sizeof (void *))))
15904 exit (1);
15905 fprintf (f, "%lu\n", i);
15906 }
15907 exit (ferror (f) || fclose (f) != 0);
15908
15909 ;
15910 return 0;
15911}
15912_ACEOF
15913rm -f conftest$ac_exeext
15914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15915 (eval $ac_link) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 ac_cv_sizeof_void_p=`cat conftest.val`
15925else
15926 echo "$as_me: program exited with status $ac_status" >&5
15927echo "$as_me: failed program was:" >&5
15928sed 's/^/| /' conftest.$ac_ext >&5
15929
15930( exit $ac_status )
15931{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15932See \`config.log' for more details." >&5
15933echo "$as_me: error: cannot compute sizeof (void *), 77
15934See \`config.log' for more details." >&2;}
15935 { (exit 1); exit 1; }; }
15936fi
ac1cb8d3 15937rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15938fi
15939fi
15940rm -f conftest.val
15941else
15942 ac_cv_sizeof_void_p=0
15943fi
15944fi
15945echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15946echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15947cat >>confdefs.h <<_ACEOF
15948#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15949_ACEOF
15950
15951
15952echo "$as_me:$LINENO: checking for int" >&5
15953echo $ECHO_N "checking for int... $ECHO_C" >&6
15954if test "${ac_cv_type_int+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15956else
15957 cat >conftest.$ac_ext <<_ACEOF
15958/* confdefs.h. */
15959_ACEOF
15960cat confdefs.h >>conftest.$ac_ext
15961cat >>conftest.$ac_ext <<_ACEOF
15962/* end confdefs.h. */
15963$ac_includes_default
15964int
15965main ()
15966{
15967if ((int *) 0)
15968 return 0;
15969if (sizeof (int))
15970 return 0;
15971 ;
15972 return 0;
15973}
15974_ACEOF
15975rm -f conftest.$ac_objext
15976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15977 (eval $ac_compile) 2>conftest.er1
a848cd7e 15978 ac_status=$?
ac1cb8d3
VS
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
a848cd7e
SC
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
da4486fb 15984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; } &&
15990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15993 ac_status=$?
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; }; then
15996 ac_cv_type_int=yes
15997else
15998 echo "$as_me: failed program was:" >&5
15999sed 's/^/| /' conftest.$ac_ext >&5
16000
16001ac_cv_type_int=no
16002fi
ac1cb8d3 16003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16004fi
16005echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16006echo "${ECHO_T}$ac_cv_type_int" >&6
16007
16008echo "$as_me:$LINENO: checking size of int" >&5
16009echo $ECHO_N "checking size of int... $ECHO_C" >&6
16010if test "${ac_cv_sizeof_int+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16012else
16013 if test "$ac_cv_type_int" = yes; then
16014 # The cast to unsigned long works around a bug in the HP C Compiler
16015 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16016 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16017 # This bug is HP SR number 8606223364.
16018 if test "$cross_compiling" = yes; then
16019 # Depending upon the size, compute the lo and hi bounds.
16020cat >conftest.$ac_ext <<_ACEOF
16021/* confdefs.h. */
16022_ACEOF
16023cat confdefs.h >>conftest.$ac_ext
16024cat >>conftest.$ac_ext <<_ACEOF
16025/* end confdefs.h. */
16026$ac_includes_default
16027int
16028main ()
16029{
16030static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16031test_array [0] = 0
16032
16033 ;
16034 return 0;
16035}
16036_ACEOF
16037rm -f conftest.$ac_objext
16038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16039 (eval $ac_compile) 2>conftest.er1
a848cd7e 16040 ac_status=$?
ac1cb8d3
VS
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
a848cd7e
SC
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
da4486fb 16046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; } &&
16052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_lo=0 ac_mid=0
16059 while :; do
16060 cat >conftest.$ac_ext <<_ACEOF
16061/* confdefs.h. */
16062_ACEOF
16063cat confdefs.h >>conftest.$ac_ext
16064cat >>conftest.$ac_ext <<_ACEOF
16065/* end confdefs.h. */
16066$ac_includes_default
16067int
16068main ()
16069{
16070static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16071test_array [0] = 0
16072
16073 ;
16074 return 0;
16075}
16076_ACEOF
16077rm -f conftest.$ac_objext
16078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16079 (eval $ac_compile) 2>conftest.er1
a848cd7e 16080 ac_status=$?
ac1cb8d3
VS
16081 grep -v '^ *+' conftest.er1 >conftest.err
16082 rm -f conftest.er1
16083 cat conftest.err >&5
a848cd7e
SC
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
da4486fb 16086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; } &&
16092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_hi=$ac_mid; break
16099else
16100 echo "$as_me: failed program was:" >&5
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
16103ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16104 if test $ac_lo -le $ac_mid; then
16105 ac_lo= ac_hi=
16106 break
16107 fi
16108 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16109fi
ac1cb8d3 16110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16111 done
16112else
16113 echo "$as_me: failed program was:" >&5
16114sed 's/^/| /' conftest.$ac_ext >&5
16115
16116cat >conftest.$ac_ext <<_ACEOF
16117/* confdefs.h. */
16118_ACEOF
16119cat confdefs.h >>conftest.$ac_ext
16120cat >>conftest.$ac_ext <<_ACEOF
16121/* end confdefs.h. */
16122$ac_includes_default
16123int
16124main ()
16125{
16126static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16127test_array [0] = 0
16128
16129 ;
16130 return 0;
16131}
16132_ACEOF
16133rm -f conftest.$ac_objext
16134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16135 (eval $ac_compile) 2>conftest.er1
a848cd7e 16136 ac_status=$?
ac1cb8d3
VS
16137 grep -v '^ *+' conftest.er1 >conftest.err
16138 rm -f conftest.er1
16139 cat conftest.err >&5
a848cd7e
SC
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
da4486fb 16142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_hi=-1 ac_mid=-1
16155 while :; do
16156 cat >conftest.$ac_ext <<_ACEOF
16157/* confdefs.h. */
16158_ACEOF
16159cat confdefs.h >>conftest.$ac_ext
16160cat >>conftest.$ac_ext <<_ACEOF
16161/* end confdefs.h. */
16162$ac_includes_default
16163int
16164main ()
16165{
16166static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16167test_array [0] = 0
16168
16169 ;
16170 return 0;
16171}
16172_ACEOF
16173rm -f conftest.$ac_objext
16174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16175 (eval $ac_compile) 2>conftest.er1
a848cd7e 16176 ac_status=$?
ac1cb8d3
VS
16177 grep -v '^ *+' conftest.er1 >conftest.err
16178 rm -f conftest.er1
16179 cat conftest.err >&5
a848cd7e
SC
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
da4486fb 16182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16185 ac_status=$?
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194 ac_lo=$ac_mid; break
16195else
16196 echo "$as_me: failed program was:" >&5
16197sed 's/^/| /' conftest.$ac_ext >&5
16198
16199ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16200 if test $ac_mid -le $ac_hi; then
16201 ac_lo= ac_hi=
16202 break
16203 fi
16204 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16205fi
ac1cb8d3 16206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16207 done
16208else
16209 echo "$as_me: failed program was:" >&5
16210sed 's/^/| /' conftest.$ac_ext >&5
16211
16212ac_lo= ac_hi=
16213fi
ac1cb8d3 16214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16215fi
ac1cb8d3 16216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16217# Binary search between lo and hi bounds.
16218while test "x$ac_lo" != "x$ac_hi"; do
16219 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16220 cat >conftest.$ac_ext <<_ACEOF
16221/* confdefs.h. */
16222_ACEOF
16223cat confdefs.h >>conftest.$ac_ext
16224cat >>conftest.$ac_ext <<_ACEOF
16225/* end confdefs.h. */
16226$ac_includes_default
16227int
16228main ()
16229{
16230static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16231test_array [0] = 0
16232
16233 ;
16234 return 0;
16235}
16236_ACEOF
16237rm -f conftest.$ac_objext
16238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16239 (eval $ac_compile) 2>conftest.er1
a848cd7e 16240 ac_status=$?
ac1cb8d3
VS
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
a848cd7e
SC
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
da4486fb 16246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_hi=$ac_mid
16259else
16260 echo "$as_me: failed program was:" >&5
16261sed 's/^/| /' conftest.$ac_ext >&5
16262
16263ac_lo=`expr '(' $ac_mid ')' + 1`
16264fi
ac1cb8d3 16265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16266done
16267case $ac_lo in
16268?*) ac_cv_sizeof_int=$ac_lo;;
16269'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16270See \`config.log' for more details." >&5
16271echo "$as_me: error: cannot compute sizeof (int), 77
16272See \`config.log' for more details." >&2;}
16273 { (exit 1); exit 1; }; } ;;
16274esac
16275else
16276 if test "$cross_compiling" = yes; then
da4486fb
VZ
16277 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16278echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16279 { (exit 1); exit 1; }; }
16280else
16281 cat >conftest.$ac_ext <<_ACEOF
16282/* confdefs.h. */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h. */
16287$ac_includes_default
16288long longval () { return (long) (sizeof (int)); }
16289unsigned long ulongval () { return (long) (sizeof (int)); }
16290#include <stdio.h>
16291#include <stdlib.h>
16292int
16293main ()
16294{
16295
16296 FILE *f = fopen ("conftest.val", "w");
16297 if (! f)
16298 exit (1);
16299 if (((long) (sizeof (int))) < 0)
16300 {
16301 long i = longval ();
16302 if (i != ((long) (sizeof (int))))
16303 exit (1);
16304 fprintf (f, "%ld\n", i);
16305 }
16306 else
16307 {
16308 unsigned long i = ulongval ();
16309 if (i != ((long) (sizeof (int))))
16310 exit (1);
16311 fprintf (f, "%lu\n", i);
16312 }
16313 exit (ferror (f) || fclose (f) != 0);
16314
16315 ;
16316 return 0;
16317}
16318_ACEOF
16319rm -f conftest$ac_exeext
16320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16321 (eval $ac_link) 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_cv_sizeof_int=`cat conftest.val`
16331else
16332 echo "$as_me: program exited with status $ac_status" >&5
16333echo "$as_me: failed program was:" >&5
16334sed 's/^/| /' conftest.$ac_ext >&5
16335
16336( exit $ac_status )
16337{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16338See \`config.log' for more details." >&5
16339echo "$as_me: error: cannot compute sizeof (int), 77
16340See \`config.log' for more details." >&2;}
16341 { (exit 1); exit 1; }; }
16342fi
ac1cb8d3 16343rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16344fi
16345fi
16346rm -f conftest.val
16347else
16348 ac_cv_sizeof_int=0
16349fi
16350fi
16351echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16352echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16353cat >>confdefs.h <<_ACEOF
16354#define SIZEOF_INT $ac_cv_sizeof_int
16355_ACEOF
16356
16357
16358echo "$as_me:$LINENO: checking for long" >&5
16359echo $ECHO_N "checking for long... $ECHO_C" >&6
16360if test "${ac_cv_type_long+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16362else
16363 cat >conftest.$ac_ext <<_ACEOF
16364/* confdefs.h. */
16365_ACEOF
16366cat confdefs.h >>conftest.$ac_ext
16367cat >>conftest.$ac_ext <<_ACEOF
16368/* end confdefs.h. */
16369$ac_includes_default
16370int
16371main ()
16372{
16373if ((long *) 0)
16374 return 0;
16375if (sizeof (long))
16376 return 0;
16377 ;
16378 return 0;
16379}
16380_ACEOF
16381rm -f conftest.$ac_objext
16382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16383 (eval $ac_compile) 2>conftest.er1
a848cd7e 16384 ac_status=$?
ac1cb8d3
VS
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
a848cd7e
SC
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
da4486fb 16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_type_long=yes
16403else
16404 echo "$as_me: failed program was:" >&5
16405sed 's/^/| /' conftest.$ac_ext >&5
16406
16407ac_cv_type_long=no
16408fi
ac1cb8d3 16409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16410fi
16411echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16412echo "${ECHO_T}$ac_cv_type_long" >&6
16413
16414echo "$as_me:$LINENO: checking size of long" >&5
16415echo $ECHO_N "checking size of long... $ECHO_C" >&6
16416if test "${ac_cv_sizeof_long+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16418else
16419 if test "$ac_cv_type_long" = yes; then
16420 # The cast to unsigned long works around a bug in the HP C Compiler
16421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16423 # This bug is HP SR number 8606223364.
16424 if test "$cross_compiling" = yes; then
16425 # Depending upon the size, compute the lo and hi bounds.
16426cat >conftest.$ac_ext <<_ACEOF
16427/* confdefs.h. */
16428_ACEOF
16429cat confdefs.h >>conftest.$ac_ext
16430cat >>conftest.$ac_ext <<_ACEOF
16431/* end confdefs.h. */
16432$ac_includes_default
16433int
16434main ()
16435{
16436static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16437test_array [0] = 0
16438
16439 ;
16440 return 0;
16441}
16442_ACEOF
16443rm -f conftest.$ac_objext
16444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16445 (eval $ac_compile) 2>conftest.er1
a848cd7e 16446 ac_status=$?
ac1cb8d3
VS
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
a848cd7e
SC
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
da4486fb 16452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; } &&
16458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 ac_lo=0 ac_mid=0
16465 while :; do
16466 cat >conftest.$ac_ext <<_ACEOF
16467/* confdefs.h. */
16468_ACEOF
16469cat confdefs.h >>conftest.$ac_ext
16470cat >>conftest.$ac_ext <<_ACEOF
16471/* end confdefs.h. */
16472$ac_includes_default
16473int
16474main ()
16475{
16476static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16477test_array [0] = 0
16478
16479 ;
16480 return 0;
16481}
16482_ACEOF
16483rm -f conftest.$ac_objext
16484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16485 (eval $ac_compile) 2>conftest.er1
a848cd7e 16486 ac_status=$?
ac1cb8d3
VS
16487 grep -v '^ *+' conftest.er1 >conftest.err
16488 rm -f conftest.er1
16489 cat conftest.err >&5
a848cd7e
SC
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } &&
da4486fb 16492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; } &&
16498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_hi=$ac_mid; break
16505else
16506 echo "$as_me: failed program was:" >&5
16507sed 's/^/| /' conftest.$ac_ext >&5
16508
16509ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16510 if test $ac_lo -le $ac_mid; then
16511 ac_lo= ac_hi=
16512 break
16513 fi
16514 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16515fi
ac1cb8d3 16516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16517 done
16518else
16519 echo "$as_me: failed program was:" >&5
16520sed 's/^/| /' conftest.$ac_ext >&5
16521
16522cat >conftest.$ac_ext <<_ACEOF
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
16528$ac_includes_default
16529int
16530main ()
16531{
16532static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16533test_array [0] = 0
16534
16535 ;
16536 return 0;
16537}
16538_ACEOF
16539rm -f conftest.$ac_objext
16540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16541 (eval $ac_compile) 2>conftest.er1
a848cd7e 16542 ac_status=$?
ac1cb8d3
VS
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
a848cd7e
SC
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
da4486fb 16548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; } &&
16554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_hi=-1 ac_mid=-1
16561 while :; do
16562 cat >conftest.$ac_ext <<_ACEOF
16563/* confdefs.h. */
16564_ACEOF
16565cat confdefs.h >>conftest.$ac_ext
16566cat >>conftest.$ac_ext <<_ACEOF
16567/* end confdefs.h. */
16568$ac_includes_default
16569int
16570main ()
16571{
16572static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16573test_array [0] = 0
16574
16575 ;
16576 return 0;
16577}
16578_ACEOF
16579rm -f conftest.$ac_objext
16580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16581 (eval $ac_compile) 2>conftest.er1
a848cd7e 16582 ac_status=$?
ac1cb8d3
VS
16583 grep -v '^ *+' conftest.er1 >conftest.err
16584 rm -f conftest.er1
16585 cat conftest.err >&5
a848cd7e
SC
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } &&
da4486fb 16588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; } &&
16594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 ac_lo=$ac_mid; break
16601else
16602 echo "$as_me: failed program was:" >&5
16603sed 's/^/| /' conftest.$ac_ext >&5
16604
16605ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16606 if test $ac_mid -le $ac_hi; then
16607 ac_lo= ac_hi=
16608 break
16609 fi
16610 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16611fi
ac1cb8d3 16612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16613 done
16614else
16615 echo "$as_me: failed program was:" >&5
16616sed 's/^/| /' conftest.$ac_ext >&5
16617
16618ac_lo= ac_hi=
16619fi
ac1cb8d3 16620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16621fi
ac1cb8d3 16622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16623# Binary search between lo and hi bounds.
16624while test "x$ac_lo" != "x$ac_hi"; do
16625 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16626 cat >conftest.$ac_ext <<_ACEOF
16627/* confdefs.h. */
16628_ACEOF
16629cat confdefs.h >>conftest.$ac_ext
16630cat >>conftest.$ac_ext <<_ACEOF
16631/* end confdefs.h. */
16632$ac_includes_default
16633int
16634main ()
16635{
16636static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16637test_array [0] = 0
16638
16639 ;
16640 return 0;
16641}
16642_ACEOF
16643rm -f conftest.$ac_objext
16644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16645 (eval $ac_compile) 2>conftest.er1
a848cd7e 16646 ac_status=$?
ac1cb8d3
VS
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
a848cd7e
SC
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
da4486fb 16652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_hi=$ac_mid
16665else
16666 echo "$as_me: failed program was:" >&5
16667sed 's/^/| /' conftest.$ac_ext >&5
16668
16669ac_lo=`expr '(' $ac_mid ')' + 1`
16670fi
ac1cb8d3 16671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16672done
16673case $ac_lo in
16674?*) ac_cv_sizeof_long=$ac_lo;;
16675'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16676See \`config.log' for more details." >&5
16677echo "$as_me: error: cannot compute sizeof (long), 77
16678See \`config.log' for more details." >&2;}
16679 { (exit 1); exit 1; }; } ;;
16680esac
16681else
16682 if test "$cross_compiling" = yes; then
da4486fb
VZ
16683 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16684echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16685 { (exit 1); exit 1; }; }
16686else
16687 cat >conftest.$ac_ext <<_ACEOF
16688/* confdefs.h. */
16689_ACEOF
16690cat confdefs.h >>conftest.$ac_ext
16691cat >>conftest.$ac_ext <<_ACEOF
16692/* end confdefs.h. */
16693$ac_includes_default
16694long longval () { return (long) (sizeof (long)); }
16695unsigned long ulongval () { return (long) (sizeof (long)); }
16696#include <stdio.h>
16697#include <stdlib.h>
16698int
16699main ()
16700{
16701
16702 FILE *f = fopen ("conftest.val", "w");
16703 if (! f)
16704 exit (1);
16705 if (((long) (sizeof (long))) < 0)
16706 {
16707 long i = longval ();
16708 if (i != ((long) (sizeof (long))))
16709 exit (1);
16710 fprintf (f, "%ld\n", i);
16711 }
16712 else
16713 {
16714 unsigned long i = ulongval ();
16715 if (i != ((long) (sizeof (long))))
16716 exit (1);
16717 fprintf (f, "%lu\n", i);
16718 }
16719 exit (ferror (f) || fclose (f) != 0);
16720
16721 ;
16722 return 0;
16723}
16724_ACEOF
16725rm -f conftest$ac_exeext
16726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16727 (eval $ac_link) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_sizeof_long=`cat conftest.val`
16737else
16738 echo "$as_me: program exited with status $ac_status" >&5
16739echo "$as_me: failed program was:" >&5
16740sed 's/^/| /' conftest.$ac_ext >&5
16741
16742( exit $ac_status )
16743{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16744See \`config.log' for more details." >&5
16745echo "$as_me: error: cannot compute sizeof (long), 77
16746See \`config.log' for more details." >&2;}
16747 { (exit 1); exit 1; }; }
16748fi
ac1cb8d3 16749rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16750fi
16751fi
16752rm -f conftest.val
16753else
16754 ac_cv_sizeof_long=0
16755fi
16756fi
16757echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16758echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16759cat >>confdefs.h <<_ACEOF
16760#define SIZEOF_LONG $ac_cv_sizeof_long
16761_ACEOF
16762
16763
16764echo "$as_me:$LINENO: checking for size_t" >&5
16765echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16766if test "${ac_cv_type_size_t+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16768else
16769 cat >conftest.$ac_ext <<_ACEOF
16770/* confdefs.h. */
16771_ACEOF
16772cat confdefs.h >>conftest.$ac_ext
16773cat >>conftest.$ac_ext <<_ACEOF
16774/* end confdefs.h. */
16775$ac_includes_default
16776int
16777main ()
16778{
16779if ((size_t *) 0)
16780 return 0;
16781if (sizeof (size_t))
16782 return 0;
16783 ;
16784 return 0;
16785}
16786_ACEOF
16787rm -f conftest.$ac_objext
16788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16789 (eval $ac_compile) 2>conftest.er1
a848cd7e 16790 ac_status=$?
ac1cb8d3
VS
16791 grep -v '^ *+' conftest.er1 >conftest.err
16792 rm -f conftest.er1
16793 cat conftest.err >&5
a848cd7e
SC
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
da4486fb 16796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } &&
16802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 ac_cv_type_size_t=yes
16809else
16810 echo "$as_me: failed program was:" >&5
16811sed 's/^/| /' conftest.$ac_ext >&5
16812
16813ac_cv_type_size_t=no
16814fi
ac1cb8d3 16815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16816fi
16817echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16818echo "${ECHO_T}$ac_cv_type_size_t" >&6
16819
16820echo "$as_me:$LINENO: checking size of size_t" >&5
16821echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16822if test "${ac_cv_sizeof_size_t+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824else
16825 if test "$ac_cv_type_size_t" = yes; then
16826 # The cast to unsigned long works around a bug in the HP C Compiler
16827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16829 # This bug is HP SR number 8606223364.
16830 if test "$cross_compiling" = yes; then
16831 # Depending upon the size, compute the lo and hi bounds.
16832cat >conftest.$ac_ext <<_ACEOF
16833/* confdefs.h. */
16834_ACEOF
16835cat confdefs.h >>conftest.$ac_ext
16836cat >>conftest.$ac_ext <<_ACEOF
16837/* end confdefs.h. */
16838$ac_includes_default
16839int
16840main ()
16841{
16842static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16843test_array [0] = 0
16844
16845 ;
16846 return 0;
16847}
16848_ACEOF
16849rm -f conftest.$ac_objext
16850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16851 (eval $ac_compile) 2>conftest.er1
a848cd7e 16852 ac_status=$?
ac1cb8d3
VS
16853 grep -v '^ *+' conftest.er1 >conftest.err
16854 rm -f conftest.er1
16855 cat conftest.err >&5
a848cd7e
SC
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
da4486fb 16858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 ac_lo=0 ac_mid=0
16871 while :; do
16872 cat >conftest.$ac_ext <<_ACEOF
16873/* confdefs.h. */
16874_ACEOF
16875cat confdefs.h >>conftest.$ac_ext
16876cat >>conftest.$ac_ext <<_ACEOF
16877/* end confdefs.h. */
16878$ac_includes_default
16879int
16880main ()
16881{
16882static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16883test_array [0] = 0
16884
16885 ;
16886 return 0;
16887}
16888_ACEOF
16889rm -f conftest.$ac_objext
16890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16891 (eval $ac_compile) 2>conftest.er1
a848cd7e 16892 ac_status=$?
ac1cb8d3
VS
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
a848cd7e
SC
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } &&
da4486fb 16898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; } &&
16904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 ac_hi=$ac_mid; break
16911else
16912 echo "$as_me: failed program was:" >&5
16913sed 's/^/| /' conftest.$ac_ext >&5
16914
16915ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16916 if test $ac_lo -le $ac_mid; then
16917 ac_lo= ac_hi=
16918 break
16919 fi
16920 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16921fi
ac1cb8d3 16922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16923 done
16924else
16925 echo "$as_me: failed program was:" >&5
16926sed 's/^/| /' conftest.$ac_ext >&5
16927
16928cat >conftest.$ac_ext <<_ACEOF
16929/* confdefs.h. */
16930_ACEOF
16931cat confdefs.h >>conftest.$ac_ext
16932cat >>conftest.$ac_ext <<_ACEOF
16933/* end confdefs.h. */
16934$ac_includes_default
16935int
16936main ()
16937{
16938static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16939test_array [0] = 0
16940
16941 ;
16942 return 0;
16943}
16944_ACEOF
16945rm -f conftest.$ac_objext
16946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16947 (eval $ac_compile) 2>conftest.er1
a848cd7e 16948 ac_status=$?
ac1cb8d3
VS
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
a848cd7e
SC
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
da4486fb 16954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_hi=-1 ac_mid=-1
16967 while :; do
16968 cat >conftest.$ac_ext <<_ACEOF
16969/* confdefs.h. */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
16973/* end confdefs.h. */
16974$ac_includes_default
16975int
16976main ()
16977{
16978static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16979test_array [0] = 0
16980
16981 ;
16982 return 0;
16983}
16984_ACEOF
16985rm -f conftest.$ac_objext
16986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16987 (eval $ac_compile) 2>conftest.er1
a848cd7e 16988 ac_status=$?
ac1cb8d3
VS
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
a848cd7e
SC
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
da4486fb 16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17006 ac_lo=$ac_mid; break
17007else
17008 echo "$as_me: failed program was:" >&5
17009sed 's/^/| /' conftest.$ac_ext >&5
17010
17011ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17012 if test $ac_mid -le $ac_hi; then
17013 ac_lo= ac_hi=
17014 break
17015 fi
17016 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17017fi
ac1cb8d3 17018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17019 done
17020else
17021 echo "$as_me: failed program was:" >&5
17022sed 's/^/| /' conftest.$ac_ext >&5
17023
17024ac_lo= ac_hi=
17025fi
ac1cb8d3 17026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17027fi
ac1cb8d3 17028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17029# Binary search between lo and hi bounds.
17030while test "x$ac_lo" != "x$ac_hi"; do
17031 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17032 cat >conftest.$ac_ext <<_ACEOF
17033/* confdefs.h. */
17034_ACEOF
17035cat confdefs.h >>conftest.$ac_ext
17036cat >>conftest.$ac_ext <<_ACEOF
17037/* end confdefs.h. */
17038$ac_includes_default
17039int
17040main ()
17041{
17042static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17043test_array [0] = 0
17044
17045 ;
17046 return 0;
17047}
17048_ACEOF
17049rm -f conftest.$ac_objext
17050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17051 (eval $ac_compile) 2>conftest.er1
a848cd7e 17052 ac_status=$?
ac1cb8d3
VS
17053 grep -v '^ *+' conftest.er1 >conftest.err
17054 rm -f conftest.er1
17055 cat conftest.err >&5
a848cd7e
SC
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
da4486fb 17058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_hi=$ac_mid
17071else
17072 echo "$as_me: failed program was:" >&5
17073sed 's/^/| /' conftest.$ac_ext >&5
17074
17075ac_lo=`expr '(' $ac_mid ')' + 1`
17076fi
ac1cb8d3 17077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17078done
17079case $ac_lo in
17080?*) ac_cv_sizeof_size_t=$ac_lo;;
17081'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17082See \`config.log' for more details." >&5
17083echo "$as_me: error: cannot compute sizeof (size_t), 77
17084See \`config.log' for more details." >&2;}
17085 { (exit 1); exit 1; }; } ;;
17086esac
17087else
17088 if test "$cross_compiling" = yes; then
da4486fb
VZ
17089 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17090echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17091 { (exit 1); exit 1; }; }
17092else
17093 cat >conftest.$ac_ext <<_ACEOF
17094/* confdefs.h. */
17095_ACEOF
17096cat confdefs.h >>conftest.$ac_ext
17097cat >>conftest.$ac_ext <<_ACEOF
17098/* end confdefs.h. */
17099$ac_includes_default
17100long longval () { return (long) (sizeof (size_t)); }
17101unsigned long ulongval () { return (long) (sizeof (size_t)); }
17102#include <stdio.h>
17103#include <stdlib.h>
17104int
17105main ()
17106{
17107
17108 FILE *f = fopen ("conftest.val", "w");
17109 if (! f)
17110 exit (1);
17111 if (((long) (sizeof (size_t))) < 0)
17112 {
17113 long i = longval ();
17114 if (i != ((long) (sizeof (size_t))))
17115 exit (1);
17116 fprintf (f, "%ld\n", i);
17117 }
17118 else
17119 {
17120 unsigned long i = ulongval ();
17121 if (i != ((long) (sizeof (size_t))))
17122 exit (1);
17123 fprintf (f, "%lu\n", i);
17124 }
17125 exit (ferror (f) || fclose (f) != 0);
17126
17127 ;
17128 return 0;
17129}
17130_ACEOF
17131rm -f conftest$ac_exeext
17132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17133 (eval $ac_link) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_cv_sizeof_size_t=`cat conftest.val`
17143else
17144 echo "$as_me: program exited with status $ac_status" >&5
17145echo "$as_me: failed program was:" >&5
17146sed 's/^/| /' conftest.$ac_ext >&5
17147
17148( exit $ac_status )
17149{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17150See \`config.log' for more details." >&5
17151echo "$as_me: error: cannot compute sizeof (size_t), 77
17152See \`config.log' for more details." >&2;}
17153 { (exit 1); exit 1; }; }
17154fi
ac1cb8d3 17155rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17156fi
17157fi
17158rm -f conftest.val
17159else
17160 ac_cv_sizeof_size_t=0
17161fi
17162fi
17163echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17164echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17165cat >>confdefs.h <<_ACEOF
17166#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17167_ACEOF
17168
17169
17170
17171case "${host}" in
17172 arm-*-linux* )
17173 echo "$as_me:$LINENO: checking for long long" >&5
17174echo $ECHO_N "checking for long long... $ECHO_C" >&6
17175if test "${ac_cv_type_long_long+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17177else
17178 cat >conftest.$ac_ext <<_ACEOF
17179/* confdefs.h. */
17180_ACEOF
17181cat confdefs.h >>conftest.$ac_ext
17182cat >>conftest.$ac_ext <<_ACEOF
17183/* end confdefs.h. */
17184$ac_includes_default
17185int
17186main ()
17187{
17188if ((long long *) 0)
17189 return 0;
17190if (sizeof (long long))
17191 return 0;
17192 ;
17193 return 0;
17194}
17195_ACEOF
17196rm -f conftest.$ac_objext
17197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17198 (eval $ac_compile) 2>conftest.er1
a848cd7e 17199 ac_status=$?
ac1cb8d3
VS
17200 grep -v '^ *+' conftest.er1 >conftest.err
17201 rm -f conftest.er1
17202 cat conftest.err >&5
a848cd7e
SC
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
da4486fb 17205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; } &&
17211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; }; then
17217 ac_cv_type_long_long=yes
17218else
17219 echo "$as_me: failed program was:" >&5
17220sed 's/^/| /' conftest.$ac_ext >&5
17221
17222ac_cv_type_long_long=no
17223fi
ac1cb8d3 17224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17225fi
17226echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17227echo "${ECHO_T}$ac_cv_type_long_long" >&6
17228
17229echo "$as_me:$LINENO: checking size of long long" >&5
17230echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17231if test "${ac_cv_sizeof_long_long+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233else
17234 if test "$ac_cv_type_long_long" = yes; then
17235 # The cast to unsigned long works around a bug in the HP C Compiler
17236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17238 # This bug is HP SR number 8606223364.
17239 if test "$cross_compiling" = yes; then
17240 # Depending upon the size, compute the lo and hi bounds.
17241cat >conftest.$ac_ext <<_ACEOF
17242/* confdefs.h. */
17243_ACEOF
17244cat confdefs.h >>conftest.$ac_ext
17245cat >>conftest.$ac_ext <<_ACEOF
17246/* end confdefs.h. */
17247$ac_includes_default
17248int
17249main ()
17250{
17251static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17252test_array [0] = 0
17253
17254 ;
17255 return 0;
17256}
17257_ACEOF
17258rm -f conftest.$ac_objext
17259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17260 (eval $ac_compile) 2>conftest.er1
a848cd7e 17261 ac_status=$?
ac1cb8d3
VS
17262 grep -v '^ *+' conftest.er1 >conftest.err
17263 rm -f conftest.er1
17264 cat conftest.err >&5
a848cd7e
SC
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } &&
da4486fb 17267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17279 ac_lo=0 ac_mid=0
17280 while :; do
17281 cat >conftest.$ac_ext <<_ACEOF
17282/* confdefs.h. */
17283_ACEOF
17284cat confdefs.h >>conftest.$ac_ext
17285cat >>conftest.$ac_ext <<_ACEOF
17286/* end confdefs.h. */
17287$ac_includes_default
17288int
17289main ()
17290{
17291static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17292test_array [0] = 0
17293
17294 ;
17295 return 0;
17296}
17297_ACEOF
17298rm -f conftest.$ac_objext
17299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17300 (eval $ac_compile) 2>conftest.er1
a848cd7e 17301 ac_status=$?
ac1cb8d3
VS
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
a848cd7e
SC
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
da4486fb 17307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; } &&
17313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 ac_hi=$ac_mid; break
17320else
17321 echo "$as_me: failed program was:" >&5
17322sed 's/^/| /' conftest.$ac_ext >&5
17323
17324ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17325 if test $ac_lo -le $ac_mid; then
17326 ac_lo= ac_hi=
17327 break
17328 fi
17329 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17330fi
ac1cb8d3 17331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17332 done
17333else
17334 echo "$as_me: failed program was:" >&5
17335sed 's/^/| /' conftest.$ac_ext >&5
17336
17337cat >conftest.$ac_ext <<_ACEOF
17338/* confdefs.h. */
17339_ACEOF
17340cat confdefs.h >>conftest.$ac_ext
17341cat >>conftest.$ac_ext <<_ACEOF
17342/* end confdefs.h. */
17343$ac_includes_default
17344int
17345main ()
17346{
17347static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17348test_array [0] = 0
17349
17350 ;
17351 return 0;
17352}
17353_ACEOF
17354rm -f conftest.$ac_objext
17355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17356 (eval $ac_compile) 2>conftest.er1
a848cd7e 17357 ac_status=$?
ac1cb8d3
VS
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
a848cd7e
SC
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
da4486fb 17363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; } &&
17369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 ac_hi=-1 ac_mid=-1
17376 while :; do
17377 cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383$ac_includes_default
17384int
17385main ()
17386{
17387static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17388test_array [0] = 0
17389
17390 ;
17391 return 0;
17392}
17393_ACEOF
17394rm -f conftest.$ac_objext
17395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17396 (eval $ac_compile) 2>conftest.er1
a848cd7e 17397 ac_status=$?
ac1cb8d3
VS
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
a848cd7e
SC
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
da4486fb 17403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_lo=$ac_mid; break
17416else
17417 echo "$as_me: failed program was:" >&5
17418sed 's/^/| /' conftest.$ac_ext >&5
17419
17420ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17421 if test $ac_mid -le $ac_hi; then
17422 ac_lo= ac_hi=
17423 break
17424 fi
17425 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17426fi
ac1cb8d3 17427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17428 done
17429else
17430 echo "$as_me: failed program was:" >&5
17431sed 's/^/| /' conftest.$ac_ext >&5
17432
17433ac_lo= ac_hi=
17434fi
ac1cb8d3 17435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17436fi
ac1cb8d3 17437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17438# Binary search between lo and hi bounds.
17439while test "x$ac_lo" != "x$ac_hi"; do
17440 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17441 cat >conftest.$ac_ext <<_ACEOF
17442/* confdefs.h. */
17443_ACEOF
17444cat confdefs.h >>conftest.$ac_ext
17445cat >>conftest.$ac_ext <<_ACEOF
17446/* end confdefs.h. */
17447$ac_includes_default
17448int
17449main ()
17450{
17451static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17452test_array [0] = 0
17453
17454 ;
17455 return 0;
17456}
17457_ACEOF
17458rm -f conftest.$ac_objext
17459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17460 (eval $ac_compile) 2>conftest.er1
a848cd7e 17461 ac_status=$?
ac1cb8d3
VS
17462 grep -v '^ *+' conftest.er1 >conftest.err
17463 rm -f conftest.er1
17464 cat conftest.err >&5
a848cd7e
SC
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
da4486fb 17467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; } &&
17473 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_hi=$ac_mid
17480else
17481 echo "$as_me: failed program was:" >&5
17482sed 's/^/| /' conftest.$ac_ext >&5
17483
17484ac_lo=`expr '(' $ac_mid ')' + 1`
17485fi
ac1cb8d3 17486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17487done
17488case $ac_lo in
17489?*) ac_cv_sizeof_long_long=$ac_lo;;
17490'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17491See \`config.log' for more details." >&5
17492echo "$as_me: error: cannot compute sizeof (long long), 77
17493See \`config.log' for more details." >&2;}
17494 { (exit 1); exit 1; }; } ;;
17495esac
17496else
17497 if test "$cross_compiling" = yes; then
da4486fb
VZ
17498 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17499echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17500 { (exit 1); exit 1; }; }
17501else
17502 cat >conftest.$ac_ext <<_ACEOF
17503/* confdefs.h. */
17504_ACEOF
17505cat confdefs.h >>conftest.$ac_ext
17506cat >>conftest.$ac_ext <<_ACEOF
17507/* end confdefs.h. */
17508$ac_includes_default
17509long longval () { return (long) (sizeof (long long)); }
17510unsigned long ulongval () { return (long) (sizeof (long long)); }
17511#include <stdio.h>
17512#include <stdlib.h>
17513int
17514main ()
17515{
17516
17517 FILE *f = fopen ("conftest.val", "w");
17518 if (! f)
17519 exit (1);
17520 if (((long) (sizeof (long long))) < 0)
17521 {
17522 long i = longval ();
17523 if (i != ((long) (sizeof (long long))))
17524 exit (1);
17525 fprintf (f, "%ld\n", i);
17526 }
17527 else
17528 {
17529 unsigned long i = ulongval ();
17530 if (i != ((long) (sizeof (long long))))
17531 exit (1);
17532 fprintf (f, "%lu\n", i);
17533 }
17534 exit (ferror (f) || fclose (f) != 0);
17535
17536 ;
17537 return 0;
17538}
17539_ACEOF
17540rm -f conftest$ac_exeext
17541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17542 (eval $ac_link) 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17551 ac_cv_sizeof_long_long=`cat conftest.val`
17552else
17553 echo "$as_me: program exited with status $ac_status" >&5
17554echo "$as_me: failed program was:" >&5
17555sed 's/^/| /' conftest.$ac_ext >&5
17556
17557( exit $ac_status )
17558{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17559See \`config.log' for more details." >&5
17560echo "$as_me: error: cannot compute sizeof (long long), 77
17561See \`config.log' for more details." >&2;}
17562 { (exit 1); exit 1; }; }
17563fi
ac1cb8d3 17564rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17565fi
17566fi
17567rm -f conftest.val
17568else
17569 ac_cv_sizeof_long_long=0
17570fi
17571fi
17572echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17573echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17574cat >>confdefs.h <<_ACEOF
17575#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17576_ACEOF
17577
17578
17579 ;;
17580 *-hp-hpux* )
17581 echo "$as_me:$LINENO: checking for long long" >&5
17582echo $ECHO_N "checking for long long... $ECHO_C" >&6
17583if test "${ac_cv_type_long_long+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17585else
17586 cat >conftest.$ac_ext <<_ACEOF
17587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
17592$ac_includes_default
17593int
17594main ()
17595{
17596if ((long long *) 0)
17597 return 0;
17598if (sizeof (long long))
17599 return 0;
17600 ;
17601 return 0;
17602}
17603_ACEOF
17604rm -f conftest.$ac_objext
17605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17606 (eval $ac_compile) 2>conftest.er1
a848cd7e 17607 ac_status=$?
ac1cb8d3
VS
17608 grep -v '^ *+' conftest.er1 >conftest.err
17609 rm -f conftest.er1
17610 cat conftest.err >&5
a848cd7e
SC
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
da4486fb 17613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; } &&
17619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 ac_cv_type_long_long=yes
17626else
17627 echo "$as_me: failed program was:" >&5
17628sed 's/^/| /' conftest.$ac_ext >&5
17629
17630ac_cv_type_long_long=no
17631fi
ac1cb8d3 17632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17633fi
17634echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17635echo "${ECHO_T}$ac_cv_type_long_long" >&6
17636
17637echo "$as_me:$LINENO: checking size of long long" >&5
17638echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17639if test "${ac_cv_sizeof_long_long+set}" = set; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17641else
17642 if test "$ac_cv_type_long_long" = yes; then
17643 # The cast to unsigned long works around a bug in the HP C Compiler
17644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17646 # This bug is HP SR number 8606223364.
17647 if test "$cross_compiling" = yes; then
17648 # Depending upon the size, compute the lo and hi bounds.
17649cat >conftest.$ac_ext <<_ACEOF
17650/* confdefs.h. */
17651_ACEOF
17652cat confdefs.h >>conftest.$ac_ext
17653cat >>conftest.$ac_ext <<_ACEOF
17654/* end confdefs.h. */
17655$ac_includes_default
17656int
17657main ()
17658{
17659static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17660test_array [0] = 0
17661
17662 ;
17663 return 0;
17664}
17665_ACEOF
17666rm -f conftest.$ac_objext
17667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17668 (eval $ac_compile) 2>conftest.er1
a848cd7e 17669 ac_status=$?
ac1cb8d3
VS
17670 grep -v '^ *+' conftest.er1 >conftest.err
17671 rm -f conftest.er1
17672 cat conftest.err >&5
a848cd7e
SC
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } &&
da4486fb 17675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
17687 ac_lo=0 ac_mid=0
17688 while :; do
17689 cat >conftest.$ac_ext <<_ACEOF
17690/* confdefs.h. */
17691_ACEOF
17692cat confdefs.h >>conftest.$ac_ext
17693cat >>conftest.$ac_ext <<_ACEOF
17694/* end confdefs.h. */
17695$ac_includes_default
17696int
17697main ()
17698{
17699static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17700test_array [0] = 0
17701
17702 ;
17703 return 0;
17704}
17705_ACEOF
17706rm -f conftest.$ac_objext
17707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17708 (eval $ac_compile) 2>conftest.er1
a848cd7e 17709 ac_status=$?
ac1cb8d3
VS
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
a848cd7e
SC
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
da4486fb 17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17724 ac_status=$?
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 ac_hi=$ac_mid; break
17728else
17729 echo "$as_me: failed program was:" >&5
17730sed 's/^/| /' conftest.$ac_ext >&5
17731
17732ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17733 if test $ac_lo -le $ac_mid; then
17734 ac_lo= ac_hi=
17735 break
17736 fi
17737 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17738fi
ac1cb8d3 17739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17740 done
17741else
17742 echo "$as_me: failed program was:" >&5
17743sed 's/^/| /' conftest.$ac_ext >&5
17744
17745cat >conftest.$ac_ext <<_ACEOF
17746/* confdefs.h. */
17747_ACEOF
17748cat confdefs.h >>conftest.$ac_ext
17749cat >>conftest.$ac_ext <<_ACEOF
17750/* end confdefs.h. */
17751$ac_includes_default
17752int
17753main ()
17754{
17755static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17756test_array [0] = 0
17757
17758 ;
17759 return 0;
17760}
17761_ACEOF
17762rm -f conftest.$ac_objext
17763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17764 (eval $ac_compile) 2>conftest.er1
a848cd7e 17765 ac_status=$?
ac1cb8d3
VS
17766 grep -v '^ *+' conftest.er1 >conftest.err
17767 rm -f conftest.er1
17768 cat conftest.err >&5
a848cd7e
SC
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
da4486fb 17771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_hi=-1 ac_mid=-1
17784 while :; do
17785 cat >conftest.$ac_ext <<_ACEOF
17786/* confdefs.h. */
17787_ACEOF
17788cat confdefs.h >>conftest.$ac_ext
17789cat >>conftest.$ac_ext <<_ACEOF
17790/* end confdefs.h. */
17791$ac_includes_default
17792int
17793main ()
17794{
17795static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17796test_array [0] = 0
17797
17798 ;
17799 return 0;
17800}
17801_ACEOF
17802rm -f conftest.$ac_objext
17803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17804 (eval $ac_compile) 2>conftest.er1
a848cd7e 17805 ac_status=$?
ac1cb8d3
VS
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
a848cd7e
SC
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
da4486fb 17811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 ac_lo=$ac_mid; break
17824else
17825 echo "$as_me: failed program was:" >&5
17826sed 's/^/| /' conftest.$ac_ext >&5
17827
17828ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17829 if test $ac_mid -le $ac_hi; then
17830 ac_lo= ac_hi=
17831 break
17832 fi
17833 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17834fi
ac1cb8d3 17835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17836 done
17837else
17838 echo "$as_me: failed program was:" >&5
17839sed 's/^/| /' conftest.$ac_ext >&5
17840
17841ac_lo= ac_hi=
17842fi
ac1cb8d3 17843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17844fi
ac1cb8d3 17845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17846# Binary search between lo and hi bounds.
17847while test "x$ac_lo" != "x$ac_hi"; do
17848 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17849 cat >conftest.$ac_ext <<_ACEOF
17850/* confdefs.h. */
17851_ACEOF
17852cat confdefs.h >>conftest.$ac_ext
17853cat >>conftest.$ac_ext <<_ACEOF
17854/* end confdefs.h. */
17855$ac_includes_default
17856int
17857main ()
17858{
17859static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17860test_array [0] = 0
17861
17862 ;
17863 return 0;
17864}
17865_ACEOF
17866rm -f conftest.$ac_objext
17867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17868 (eval $ac_compile) 2>conftest.er1
a848cd7e 17869 ac_status=$?
ac1cb8d3
VS
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
a848cd7e
SC
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
da4486fb 17875 { ac_try='test -z "$ac_c_werror_flag" || 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=$ac_mid
17888else
17889 echo "$as_me: failed program was:" >&5
17890sed 's/^/| /' conftest.$ac_ext >&5
17891
17892ac_lo=`expr '(' $ac_mid ')' + 1`
17893fi
ac1cb8d3 17894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17895done
17896case $ac_lo in
17897?*) ac_cv_sizeof_long_long=$ac_lo;;
17898'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17899See \`config.log' for more details." >&5
17900echo "$as_me: error: cannot compute sizeof (long long), 77
17901See \`config.log' for more details." >&2;}
17902 { (exit 1); exit 1; }; } ;;
17903esac
17904else
17905 if test "$cross_compiling" = yes; then
da4486fb
VZ
17906 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17907echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17908 { (exit 1); exit 1; }; }
17909else
17910 cat >conftest.$ac_ext <<_ACEOF
17911/* confdefs.h. */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h. */
17916$ac_includes_default
17917long longval () { return (long) (sizeof (long long)); }
17918unsigned long ulongval () { return (long) (sizeof (long long)); }
17919#include <stdio.h>
17920#include <stdlib.h>
17921int
17922main ()
17923{
17924
17925 FILE *f = fopen ("conftest.val", "w");
17926 if (! f)
17927 exit (1);
17928 if (((long) (sizeof (long long))) < 0)
17929 {
17930 long i = longval ();
17931 if (i != ((long) (sizeof (long long))))
17932 exit (1);
17933 fprintf (f, "%ld\n", i);
17934 }
17935 else
17936 {
17937 unsigned long i = ulongval ();
17938 if (i != ((long) (sizeof (long long))))
17939 exit (1);
17940 fprintf (f, "%lu\n", i);
17941 }
17942 exit (ferror (f) || fclose (f) != 0);
17943
17944 ;
17945 return 0;
17946}
17947_ACEOF
17948rm -f conftest$ac_exeext
17949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17950 (eval $ac_link) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 ac_cv_sizeof_long_long=`cat conftest.val`
17960else
17961 echo "$as_me: program exited with status $ac_status" >&5
17962echo "$as_me: failed program was:" >&5
17963sed 's/^/| /' conftest.$ac_ext >&5
17964
17965( exit $ac_status )
17966{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17967See \`config.log' for more details." >&5
17968echo "$as_me: error: cannot compute sizeof (long long), 77
17969See \`config.log' for more details." >&2;}
17970 { (exit 1); exit 1; }; }
17971fi
ac1cb8d3 17972rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17973fi
17974fi
17975rm -f conftest.val
17976else
17977 ac_cv_sizeof_long_long=0
17978fi
17979fi
17980echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17981echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17982cat >>confdefs.h <<_ACEOF
17983#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17984_ACEOF
17985
17986
17987 if test "$ac_cv_sizeof_long_long" != "0"; then
17988 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17989 fi
17990 ;;
17991 * )
17992 echo "$as_me:$LINENO: checking for long long" >&5
17993echo $ECHO_N "checking for long long... $ECHO_C" >&6
17994if test "${ac_cv_type_long_long+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17996else
17997 cat >conftest.$ac_ext <<_ACEOF
17998/* confdefs.h. */
17999_ACEOF
18000cat confdefs.h >>conftest.$ac_ext
18001cat >>conftest.$ac_ext <<_ACEOF
18002/* end confdefs.h. */
18003$ac_includes_default
18004int
18005main ()
18006{
18007if ((long long *) 0)
18008 return 0;
18009if (sizeof (long long))
18010 return 0;
18011 ;
18012 return 0;
18013}
18014_ACEOF
18015rm -f conftest.$ac_objext
18016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18017 (eval $ac_compile) 2>conftest.er1
a848cd7e 18018 ac_status=$?
ac1cb8d3
VS
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
a848cd7e
SC
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
da4486fb 18024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_type_long_long=yes
18037else
18038 echo "$as_me: failed program was:" >&5
18039sed 's/^/| /' conftest.$ac_ext >&5
18040
18041ac_cv_type_long_long=no
18042fi
ac1cb8d3 18043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18044fi
18045echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18046echo "${ECHO_T}$ac_cv_type_long_long" >&6
18047
18048echo "$as_me:$LINENO: checking size of long long" >&5
18049echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18050if test "${ac_cv_sizeof_long_long+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18052else
18053 if test "$ac_cv_type_long_long" = yes; then
18054 # The cast to unsigned long works around a bug in the HP C Compiler
18055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18057 # This bug is HP SR number 8606223364.
18058 if test "$cross_compiling" = yes; then
18059 # Depending upon the size, compute the lo and hi bounds.
18060cat >conftest.$ac_ext <<_ACEOF
18061/* confdefs.h. */
18062_ACEOF
18063cat confdefs.h >>conftest.$ac_ext
18064cat >>conftest.$ac_ext <<_ACEOF
18065/* end confdefs.h. */
18066$ac_includes_default
18067int
18068main ()
18069{
18070static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18071test_array [0] = 0
18072
18073 ;
18074 return 0;
18075}
18076_ACEOF
18077rm -f conftest.$ac_objext
18078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18079 (eval $ac_compile) 2>conftest.er1
a848cd7e 18080 ac_status=$?
ac1cb8d3
VS
18081 grep -v '^ *+' conftest.er1 >conftest.err
18082 rm -f conftest.er1
18083 cat conftest.err >&5
a848cd7e
SC
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } &&
da4486fb 18086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; }; then
18098 ac_lo=0 ac_mid=0
18099 while :; do
18100 cat >conftest.$ac_ext <<_ACEOF
18101/* confdefs.h. */
18102_ACEOF
18103cat confdefs.h >>conftest.$ac_ext
18104cat >>conftest.$ac_ext <<_ACEOF
18105/* end confdefs.h. */
18106$ac_includes_default
18107int
18108main ()
18109{
18110static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18111test_array [0] = 0
18112
18113 ;
18114 return 0;
18115}
18116_ACEOF
18117rm -f conftest.$ac_objext
18118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18119 (eval $ac_compile) 2>conftest.er1
a848cd7e 18120 ac_status=$?
ac1cb8d3
VS
18121 grep -v '^ *+' conftest.er1 >conftest.err
18122 rm -f conftest.er1
18123 cat conftest.err >&5
a848cd7e
SC
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); } &&
da4486fb 18126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; } &&
18132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_hi=$ac_mid; break
18139else
18140 echo "$as_me: failed program was:" >&5
18141sed 's/^/| /' conftest.$ac_ext >&5
18142
18143ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18144 if test $ac_lo -le $ac_mid; then
18145 ac_lo= ac_hi=
18146 break
18147 fi
18148 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18149fi
ac1cb8d3 18150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18151 done
18152else
18153 echo "$as_me: failed program was:" >&5
18154sed 's/^/| /' conftest.$ac_ext >&5
18155
18156cat >conftest.$ac_ext <<_ACEOF
18157/* confdefs.h. */
18158_ACEOF
18159cat confdefs.h >>conftest.$ac_ext
18160cat >>conftest.$ac_ext <<_ACEOF
18161/* end confdefs.h. */
18162$ac_includes_default
18163int
18164main ()
18165{
18166static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18167test_array [0] = 0
18168
18169 ;
18170 return 0;
18171}
18172_ACEOF
18173rm -f conftest.$ac_objext
18174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18175 (eval $ac_compile) 2>conftest.er1
a848cd7e 18176 ac_status=$?
ac1cb8d3
VS
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
a848cd7e
SC
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
da4486fb 18182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18185 ac_status=$?
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; } &&
18188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190 (eval $ac_try) 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; }; then
18194 ac_hi=-1 ac_mid=-1
18195 while :; do
18196 cat >conftest.$ac_ext <<_ACEOF
18197/* confdefs.h. */
18198_ACEOF
18199cat confdefs.h >>conftest.$ac_ext
18200cat >>conftest.$ac_ext <<_ACEOF
18201/* end confdefs.h. */
18202$ac_includes_default
18203int
18204main ()
18205{
18206static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18207test_array [0] = 0
18208
18209 ;
18210 return 0;
18211}
18212_ACEOF
18213rm -f conftest.$ac_objext
18214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18215 (eval $ac_compile) 2>conftest.er1
a848cd7e 18216 ac_status=$?
ac1cb8d3
VS
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
a848cd7e
SC
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
da4486fb 18222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234 ac_lo=$ac_mid; break
18235else
18236 echo "$as_me: failed program was:" >&5
18237sed 's/^/| /' conftest.$ac_ext >&5
18238
18239ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18240 if test $ac_mid -le $ac_hi; then
18241 ac_lo= ac_hi=
18242 break
18243 fi
18244 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18245fi
ac1cb8d3 18246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18247 done
18248else
18249 echo "$as_me: failed program was:" >&5
18250sed 's/^/| /' conftest.$ac_ext >&5
18251
18252ac_lo= ac_hi=
18253fi
ac1cb8d3 18254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18255fi
ac1cb8d3 18256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18257# Binary search between lo and hi bounds.
18258while test "x$ac_lo" != "x$ac_hi"; do
18259 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18260 cat >conftest.$ac_ext <<_ACEOF
18261/* confdefs.h. */
18262_ACEOF
18263cat confdefs.h >>conftest.$ac_ext
18264cat >>conftest.$ac_ext <<_ACEOF
18265/* end confdefs.h. */
18266$ac_includes_default
18267int
18268main ()
18269{
18270static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18271test_array [0] = 0
18272
18273 ;
18274 return 0;
18275}
18276_ACEOF
18277rm -f conftest.$ac_objext
18278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18279 (eval $ac_compile) 2>conftest.er1
a848cd7e 18280 ac_status=$?
ac1cb8d3
VS
18281 grep -v '^ *+' conftest.er1 >conftest.err
18282 rm -f conftest.er1
18283 cat conftest.err >&5
a848cd7e
SC
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
da4486fb 18286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18295 ac_status=$?
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; }; then
18298 ac_hi=$ac_mid
18299else
18300 echo "$as_me: failed program was:" >&5
18301sed 's/^/| /' conftest.$ac_ext >&5
18302
18303ac_lo=`expr '(' $ac_mid ')' + 1`
18304fi
ac1cb8d3 18305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18306done
18307case $ac_lo in
18308?*) ac_cv_sizeof_long_long=$ac_lo;;
18309'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18310See \`config.log' for more details." >&5
18311echo "$as_me: error: cannot compute sizeof (long long), 77
18312See \`config.log' for more details." >&2;}
18313 { (exit 1); exit 1; }; } ;;
18314esac
18315else
18316 if test "$cross_compiling" = yes; then
da4486fb
VZ
18317 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18318echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18319 { (exit 1); exit 1; }; }
18320else
18321 cat >conftest.$ac_ext <<_ACEOF
18322/* confdefs.h. */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h. */
18327$ac_includes_default
18328long longval () { return (long) (sizeof (long long)); }
18329unsigned long ulongval () { return (long) (sizeof (long long)); }
18330#include <stdio.h>
18331#include <stdlib.h>
18332int
18333main ()
18334{
18335
18336 FILE *f = fopen ("conftest.val", "w");
18337 if (! f)
18338 exit (1);
18339 if (((long) (sizeof (long long))) < 0)
18340 {
18341 long i = longval ();
18342 if (i != ((long) (sizeof (long long))))
18343 exit (1);
18344 fprintf (f, "%ld\n", i);
18345 }
18346 else
18347 {
18348 unsigned long i = ulongval ();
18349 if (i != ((long) (sizeof (long long))))
18350 exit (1);
18351 fprintf (f, "%lu\n", i);
18352 }
18353 exit (ferror (f) || fclose (f) != 0);
18354
18355 ;
18356 return 0;
18357}
18358_ACEOF
18359rm -f conftest$ac_exeext
18360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18361 (eval $ac_link) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 ac_cv_sizeof_long_long=`cat conftest.val`
18371else
18372 echo "$as_me: program exited with status $ac_status" >&5
18373echo "$as_me: failed program was:" >&5
18374sed 's/^/| /' conftest.$ac_ext >&5
18375
18376( exit $ac_status )
18377{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18378See \`config.log' for more details." >&5
18379echo "$as_me: error: cannot compute sizeof (long long), 77
18380See \`config.log' for more details." >&2;}
18381 { (exit 1); exit 1; }; }
18382fi
ac1cb8d3 18383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18384fi
18385fi
18386rm -f conftest.val
18387else
18388 ac_cv_sizeof_long_long=0
18389fi
18390fi
18391echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18392echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18393cat >>confdefs.h <<_ACEOF
18394#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18395_ACEOF
18396
18397
18398esac
18399
18400echo "$as_me:$LINENO: checking size of wchar_t" >&5
18401echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18402if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18403 echo $ECHO_N "(cached) $ECHO_C" >&6
18404else
18405
18406 if test "$cross_compiling" = yes; then
18407
18408 case "${host}" in
18409 *-pc-msdosdjgpp )
18410 wx_cv_sizeof_wchar_t=0
18411 ;;
18412 * )
18413 wx_cv_sizeof_wchar_t=4
18414 ;;
18415 esac
18416
18417
18418else
18419 cat >conftest.$ac_ext <<_ACEOF
18420/* confdefs.h. */
18421_ACEOF
18422cat confdefs.h >>conftest.$ac_ext
18423cat >>conftest.$ac_ext <<_ACEOF
18424/* end confdefs.h. */
18425
18426 /* DJGPP only has fake wchar_t: */
18427 #ifdef __DJGPP__
18428 # error "fake wchar_t"
18429 #endif
18430 #ifdef HAVE_WCHAR_H
18431 # ifdef __CYGWIN__
18432 # include <stddef.h>
18433 # endif
18434 # include <wchar.h>
18435 #endif
18436 #ifdef HAVE_STDLIB_H
18437 # include <stdlib.h>
18438 #endif
18439 #include <stdio.h>
18440 int main()
18441 {
18442 FILE *f=fopen("conftestval", "w");
18443 if (!f) exit(1);
18444 fprintf(f, "%i", sizeof(wchar_t));
18445 exit(0);
18446 }
18447
18448_ACEOF
18449rm -f conftest$ac_exeext
18450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18451 (eval $ac_link) 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18457 ac_status=$?
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; }; then
18460 wx_cv_sizeof_wchar_t=`cat conftestval`
18461else
18462 echo "$as_me: program exited with status $ac_status" >&5
18463echo "$as_me: failed program was:" >&5
18464sed 's/^/| /' conftest.$ac_ext >&5
18465
18466( exit $ac_status )
18467wx_cv_sizeof_wchar_t=0
18468fi
ac1cb8d3 18469rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18470fi
18471
18472fi
18473echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18474echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18475
18476cat >>confdefs.h <<_ACEOF
18477#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18478_ACEOF
18479
18480
ba3d13e1
VZ
18481echo "$as_me:$LINENO: checking for va_copy" >&5
18482echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18483if test "${wx_cv_func_va_copy+set}" = set; then
18484 echo $ECHO_N "(cached) $ECHO_C" >&6
18485else
18486
18487 cat >conftest.$ac_ext <<_ACEOF
18488
18489 #include <stdarg.h>
18490 void foo(char *f, ...)
18491 {
18492 va_list ap1, ap2;
18493 va_start(ap1, f);
18494 va_copy(ap2, ap1);
18495 va_end(ap2);
18496 va_end(ap1);
18497 }
5886b072
VZ
18498 int main()
18499 {
b902e639
VZ
18500 foo("hi", 17);
18501 return 0;
5886b072 18502 }
ba3d13e1
VZ
18503_ACEOF
18504rm -f conftest.$ac_objext conftest$ac_exeext
18505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18506 (eval $ac_link) 2>conftest.er1
18507 ac_status=$?
18508 grep -v '^ *+' conftest.er1 >conftest.err
18509 rm -f conftest.er1
18510 cat conftest.err >&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
da4486fb 18513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18516 ac_status=$?
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; } &&
18519 { ac_try='test -s conftest$ac_exeext'
18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18522 ac_status=$?
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18525 wx_cv_func_va_copy=yes
18526else
18527 echo "$as_me: failed program was:" >&5
18528sed 's/^/| /' conftest.$ac_ext >&5
18529
18530wx_cv_func_va_copy=no
18531
18532fi
18533rm -f conftest.err conftest.$ac_objext \
18534 conftest$ac_exeext conftest.$ac_ext
18535
18536
18537fi
18538echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18539echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18540
18541if test $wx_cv_func_va_copy = "yes"; then
18542 cat >>confdefs.h <<\_ACEOF
18543#define HAVE_VA_COPY 1
18544_ACEOF
18545
18546else
18547 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18548echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18549if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18551else
18552
18553 if test "$cross_compiling" = yes; then
18554 wx_cv_type_va_list_lvalue=yes
18555
18556else
18557 cat >conftest.$ac_ext <<_ACEOF
18558
18559 #include <stdarg.h>
18560 int foo(char *f, ...)
18561 {
18562 va_list ap1, ap2;
18563 va_start(ap1, f);
18564 ap2 = ap1;
18565 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18566 return 1;
18567 va_end(ap2);
18568 va_end(ap1);
18569 return 0;
18570 }
18571 int main()
18572 {
18573 return foo("hi", 17);
18574 }
18575_ACEOF
18576rm -f conftest$ac_exeext
18577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18578 (eval $ac_link) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 wx_cv_type_va_list_lvalue=yes
18588else
18589 echo "$as_me: program exited with status $ac_status" >&5
18590echo "$as_me: failed program was:" >&5
18591sed 's/^/| /' conftest.$ac_ext >&5
18592
18593( exit $ac_status )
18594wx_cv_type_va_list_lvalue=no
18595fi
18596rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18597fi
18598
18599
18600fi
18601echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18602echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18603
18604 if test $wx_cv_type_va_list_lvalue != "yes"; then
18605 cat >>confdefs.h <<\_ACEOF
18606#define VA_LIST_IS_ARRAY 1
18607_ACEOF
18608
18609 fi
18610fi
18611
a848cd7e
SC
18612# Check whether --enable-largefile or --disable-largefile was given.
18613if test "${enable_largefile+set}" = set; then
18614 enableval="$enable_largefile"
18615
18616fi;
18617if test "$enable_largefile" != no; then
18618 wx_largefile=no
18619
18620 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18621echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18622if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18624else
18625
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#define _FILE_OFFSET_BITS 64
18633 #include <sys/types.h>
18634int
18635main ()
18636{
18637typedef struct {
18638 unsigned int field: sizeof(off_t) == 8;
18639} wxlf;
18640
18641 ;
18642 return 0;
18643}
18644_ACEOF
18645rm -f conftest.$ac_objext
18646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18647 (eval $ac_compile) 2>conftest.er1
a848cd7e 18648 ac_status=$?
ac1cb8d3
VS
18649 grep -v '^ *+' conftest.er1 >conftest.err
18650 rm -f conftest.er1
18651 cat conftest.err >&5
a848cd7e
SC
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
da4486fb 18654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
18666 ac_cv_sys_file_offset_bits=64
18667else
18668 echo "$as_me: failed program was:" >&5
18669sed 's/^/| /' conftest.$ac_ext >&5
18670
18671ac_cv_sys_file_offset_bits=no
18672fi
ac1cb8d3 18673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18674
18675
18676fi
18677echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18678echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18679
18680 if test "$ac_cv_sys_file_offset_bits" != no; then
18681 wx_largefile=yes
18682 cat >>confdefs.h <<_ACEOF
18683#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18684_ACEOF
18685
18686 fi
18687
18688 if test "x$wx_largefile" != "xyes"; then
18689
18690 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18691echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18692if test "${ac_cv_sys_large_files+set}" = set; then
18693 echo $ECHO_N "(cached) $ECHO_C" >&6
18694else
18695
18696 cat >conftest.$ac_ext <<_ACEOF
18697/* confdefs.h. */
18698_ACEOF
18699cat confdefs.h >>conftest.$ac_ext
18700cat >>conftest.$ac_ext <<_ACEOF
18701/* end confdefs.h. */
18702#define _LARGE_FILES 1
18703 #include <sys/types.h>
18704int
18705main ()
18706{
18707typedef struct {
18708 unsigned int field: sizeof(off_t) == 8;
18709} wxlf;
18710
18711 ;
18712 return 0;
18713}
18714_ACEOF
18715rm -f conftest.$ac_objext
18716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18717 (eval $ac_compile) 2>conftest.er1
a848cd7e 18718 ac_status=$?
ac1cb8d3
VS
18719 grep -v '^ *+' conftest.er1 >conftest.err
18720 rm -f conftest.er1
18721 cat conftest.err >&5
a848cd7e
SC
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } &&
da4486fb 18724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; } &&
18730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 ac_cv_sys_large_files=1
18737else
18738 echo "$as_me: failed program was:" >&5
18739sed 's/^/| /' conftest.$ac_ext >&5
18740
18741ac_cv_sys_large_files=no
18742fi
ac1cb8d3 18743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18744
18745
18746fi
18747echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18748echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18749
18750 if test "$ac_cv_sys_large_files" != no; then
18751 wx_largefile=yes
18752 cat >>confdefs.h <<_ACEOF
18753#define _LARGE_FILES $ac_cv_sys_large_files
18754_ACEOF
18755
18756 fi
18757
18758 fi
18759
18760 echo "$as_me:$LINENO: checking if large file support is available" >&5
18761echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18762 if test "x$wx_largefile" = "xyes"; then
18763 cat >>confdefs.h <<\_ACEOF
18764#define HAVE_LARGEFILE_SUPPORT 1
18765_ACEOF
18766
18767 fi
18768 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18769echo "${ECHO_T}$wx_largefile" >&6
18770fi
18771
5b674b9d
DE
18772
18773if test "x$wx_largefile" = "xyes"; then
18774 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18775 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18776 else
18777 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18778 fi
18779 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
18780echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18781if test "${ac_cv_sys_largefile_source+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18783else
18784 while :; do
18785 ac_cv_sys_largefile_source=no
18786 cat >conftest.$ac_ext <<_ACEOF
18787/* confdefs.h. */
18788_ACEOF
18789cat confdefs.h >>conftest.$ac_ext
18790cat >>conftest.$ac_ext <<_ACEOF
18791/* end confdefs.h. */
18792#include <stdio.h>
18793int
18794main ()
18795{
18796return !fseeko;
18797 ;
18798 return 0;
18799}
18800_ACEOF
18801rm -f conftest.$ac_objext
18802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18803 (eval $ac_compile) 2>conftest.er1
18804 ac_status=$?
18805 grep -v '^ *+' conftest.er1 >conftest.err
18806 rm -f conftest.er1
18807 cat conftest.err >&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } &&
da4486fb 18810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
18811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18812 (eval $ac_try) 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; } &&
18816 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18822 break
18823else
18824 echo "$as_me: failed program was:" >&5
18825sed 's/^/| /' conftest.$ac_ext >&5
18826
18827fi
18828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18829 cat >conftest.$ac_ext <<_ACEOF
18830/* confdefs.h. */
18831_ACEOF
18832cat confdefs.h >>conftest.$ac_ext
18833cat >>conftest.$ac_ext <<_ACEOF
18834/* end confdefs.h. */
18835#define _LARGEFILE_SOURCE 1
18836#include <stdio.h>
18837int
18838main ()
18839{
18840return !fseeko;
18841 ;
18842 return 0;
18843}
18844_ACEOF
18845rm -f conftest.$ac_objext
18846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18847 (eval $ac_compile) 2>conftest.er1
18848 ac_status=$?
18849 grep -v '^ *+' conftest.er1 >conftest.err
18850 rm -f conftest.er1
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } &&
da4486fb 18854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; } &&
18860 { ac_try='test -s conftest.$ac_objext'
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; }; then
18866 ac_cv_sys_largefile_source=1; break
18867else
18868 echo "$as_me: failed program was:" >&5
18869sed 's/^/| /' conftest.$ac_ext >&5
18870
18871fi
18872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18873 break
18874done
18875fi
18876echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18877echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
18878if test "$ac_cv_sys_largefile_source" != no; then
18879
18880cat >>confdefs.h <<_ACEOF
18881#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18882_ACEOF
18883
18884fi
18885rm -f conftest*
18886
18887# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18888# in glibc 2.1.3, but that breaks too many other things.
18889# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18890echo "$as_me:$LINENO: checking for fseeko" >&5
18891echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18892if test "${ac_cv_func_fseeko+set}" = set; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18894else
18895 cat >conftest.$ac_ext <<_ACEOF
18896/* confdefs.h. */
18897_ACEOF
18898cat confdefs.h >>conftest.$ac_ext
18899cat >>conftest.$ac_ext <<_ACEOF
18900/* end confdefs.h. */
18901#include <stdio.h>
18902int
18903main ()
18904{
18905return fseeko && fseeko (stdin, 0, 0);
18906 ;
18907 return 0;
18908}
18909_ACEOF
18910rm -f conftest.$ac_objext conftest$ac_exeext
18911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18912 (eval $ac_link) 2>conftest.er1
18913 ac_status=$?
18914 grep -v '^ *+' conftest.er1 >conftest.err
18915 rm -f conftest.er1
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } &&
da4486fb 18919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
18920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921 (eval $ac_try) 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try='test -s conftest$ac_exeext'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 ac_cv_func_fseeko=yes
18932else
18933 echo "$as_me: failed program was:" >&5
18934sed 's/^/| /' conftest.$ac_ext >&5
18935
18936ac_cv_func_fseeko=no
18937fi
18938rm -f conftest.err conftest.$ac_objext \
18939 conftest$ac_exeext conftest.$ac_ext
18940fi
18941echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
18942echo "${ECHO_T}$ac_cv_func_fseeko" >&6
18943if test $ac_cv_func_fseeko = yes; then
18944
18945cat >>confdefs.h <<\_ACEOF
18946#define HAVE_FSEEKO 1
18947_ACEOF
18948
18949fi
18950
5b674b9d
DE
18951 if test "$ac_cv_sys_largefile_source" != no; then
18952 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
18953 fi
18954 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18955fi
18956
18957echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18958echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18959if test "${ac_cv_c_bigendian+set}" = set; then
18960 echo $ECHO_N "(cached) $ECHO_C" >&6
18961else
18962 ac_cv_c_bigendian=unknown
18963# See if sys/param.h defines the BYTE_ORDER macro.
18964cat >conftest.$ac_ext <<_ACEOF
18965/* confdefs.h. */
18966_ACEOF
18967cat confdefs.h >>conftest.$ac_ext
18968cat >>conftest.$ac_ext <<_ACEOF
18969/* end confdefs.h. */
18970#include <sys/types.h>
18971#include <sys/param.h>
18972int
18973main ()
18974{
18975
18976#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18977 bogus endian macros
18978#endif
18979 ;
18980 return 0;
18981}
18982_ACEOF
18983rm -f conftest.$ac_objext
18984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18985 (eval $ac_compile) 2>conftest.er1
a848cd7e 18986 ac_status=$?
ac1cb8d3
VS
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
a848cd7e
SC
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
da4486fb 18992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; } &&
18998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 # It does; now see whether it defined to BIG_ENDIAN or not.
19005cat >conftest.$ac_ext <<_ACEOF
19006/* confdefs.h. */
19007_ACEOF
19008cat confdefs.h >>conftest.$ac_ext
19009cat >>conftest.$ac_ext <<_ACEOF
19010/* end confdefs.h. */
19011#include <sys/types.h>
19012#include <sys/param.h>
19013int
19014main ()
19015{
19016
19017#if BYTE_ORDER != BIG_ENDIAN
19018 not big endian
19019#endif
19020 ;
19021 return 0;
19022}
19023_ACEOF
19024rm -f conftest.$ac_objext
19025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19026 (eval $ac_compile) 2>conftest.er1
a848cd7e 19027 ac_status=$?
ac1cb8d3
VS
19028 grep -v '^ *+' conftest.er1 >conftest.err
19029 rm -f conftest.er1
19030 cat conftest.err >&5
a848cd7e
SC
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } &&
da4486fb 19033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; } &&
19039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 ac_cv_c_bigendian=yes
19046else
19047 echo "$as_me: failed program was:" >&5
19048sed 's/^/| /' conftest.$ac_ext >&5
19049
19050ac_cv_c_bigendian=no
19051fi
ac1cb8d3 19052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19053else
19054 echo "$as_me: failed program was:" >&5
19055sed 's/^/| /' conftest.$ac_ext >&5
19056
19057fi
ac1cb8d3 19058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19059if test $ac_cv_c_bigendian = unknown; then
19060if test "$cross_compiling" = yes; then
19061 ac_cv_c_bigendian=unknown
19062else
19063 cat >conftest.$ac_ext <<_ACEOF
19064/* confdefs.h. */
19065_ACEOF
19066cat confdefs.h >>conftest.$ac_ext
19067cat >>conftest.$ac_ext <<_ACEOF
19068/* end confdefs.h. */
19069main () {
19070 /* Are we little or big endian? From Harbison&Steele. */
19071 union
19072 {
19073 long l;
19074 char c[sizeof (long)];
19075 } u;
19076 u.l = 1;
19077 exit (u.c[sizeof (long) - 1] == 1);
19078}
19079_ACEOF
19080rm -f conftest$ac_exeext
19081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19082 (eval $ac_link) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19088 ac_status=$?
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; }; then
19091 ac_cv_c_bigendian=no
19092else
19093 echo "$as_me: program exited with status $ac_status" >&5
19094echo "$as_me: failed program was:" >&5
19095sed 's/^/| /' conftest.$ac_ext >&5
19096
19097( exit $ac_status )
19098ac_cv_c_bigendian=yes
19099fi
ac1cb8d3 19100rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19101fi
19102fi
19103fi
19104echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19105echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19106if test $ac_cv_c_bigendian = unknown; then
19107 { 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
19108echo "$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;}
19109fi
19110if test $ac_cv_c_bigendian = yes; then
19111 cat >>confdefs.h <<\_ACEOF
19112#define WORDS_BIGENDIAN 1
19113_ACEOF
19114
19115fi
19116
19117
19118ac_ext=cc
19119ac_cpp='$CXXCPP $CPPFLAGS'
19120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19123echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19124echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19125if test -z "$CXXCPP"; then
19126 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19128else
19129 # Double quotes because CXXCPP needs to be expanded
19130 for CXXCPP in "$CXX -E" "/lib/cpp"
19131 do
19132 ac_preproc_ok=false
19133for ac_cxx_preproc_warn_flag in '' yes
19134do
19135 # Use a header file that comes with gcc, so configuring glibc
19136 # with a fresh cross-compiler works.
19137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19138 # <limits.h> exists even on freestanding compilers.
19139 # On the NeXT, cc -E runs the code through the compiler's parser,
19140 # not just through cpp. "Syntax error" is here to catch this case.
19141 cat >conftest.$ac_ext <<_ACEOF
19142/* confdefs.h. */
19143_ACEOF
19144cat confdefs.h >>conftest.$ac_ext
19145cat >>conftest.$ac_ext <<_ACEOF
19146/* end confdefs.h. */
19147#ifdef __STDC__
19148# include <limits.h>
19149#else
19150# include <assert.h>
19151#endif
ac1cb8d3 19152 Syntax error
a848cd7e
SC
19153_ACEOF
19154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19156 ac_status=$?
19157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } >/dev/null; then
19162 if test -s conftest.err; then
19163 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19164 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19165 else
19166 ac_cpp_err=
19167 fi
19168else
19169 ac_cpp_err=yes
19170fi
19171if test -z "$ac_cpp_err"; then
19172 :
19173else
19174 echo "$as_me: failed program was:" >&5
19175sed 's/^/| /' conftest.$ac_ext >&5
19176
19177 # Broken: fails on valid input.
19178continue
19179fi
19180rm -f conftest.err conftest.$ac_ext
19181
19182 # OK, works on sane cases. Now check whether non-existent headers
19183 # can be detected and how.
19184 cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190#include <ac_nonexistent.h>
19191_ACEOF
19192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19194 ac_status=$?
19195 grep -v '^ *+' conftest.er1 >conftest.err
19196 rm -f conftest.er1
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } >/dev/null; then
19200 if test -s conftest.err; then
19201 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19202 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19203 else
19204 ac_cpp_err=
19205 fi
19206else
19207 ac_cpp_err=yes
19208fi
19209if test -z "$ac_cpp_err"; then
19210 # Broken: success on invalid input.
19211continue
19212else
19213 echo "$as_me: failed program was:" >&5
19214sed 's/^/| /' conftest.$ac_ext >&5
19215
19216 # Passes both tests.
19217ac_preproc_ok=:
19218break
19219fi
19220rm -f conftest.err conftest.$ac_ext
19221
19222done
19223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19224rm -f conftest.err conftest.$ac_ext
19225if $ac_preproc_ok; then
19226 break
19227fi
19228
19229 done
19230 ac_cv_prog_CXXCPP=$CXXCPP
19231
19232fi
19233 CXXCPP=$ac_cv_prog_CXXCPP
19234else
19235 ac_cv_prog_CXXCPP=$CXXCPP
19236fi
19237echo "$as_me:$LINENO: result: $CXXCPP" >&5
19238echo "${ECHO_T}$CXXCPP" >&6
19239ac_preproc_ok=false
19240for ac_cxx_preproc_warn_flag in '' yes
19241do
19242 # Use a header file that comes with gcc, so configuring glibc
19243 # with a fresh cross-compiler works.
19244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19245 # <limits.h> exists even on freestanding compilers.
19246 # On the NeXT, cc -E runs the code through the compiler's parser,
19247 # not just through cpp. "Syntax error" is here to catch this case.
19248 cat >conftest.$ac_ext <<_ACEOF
19249/* confdefs.h. */
19250_ACEOF
19251cat confdefs.h >>conftest.$ac_ext
19252cat >>conftest.$ac_ext <<_ACEOF
19253/* end confdefs.h. */
19254#ifdef __STDC__
19255# include <limits.h>
19256#else
19257# include <assert.h>
19258#endif
ac1cb8d3 19259 Syntax error
a848cd7e
SC
19260_ACEOF
19261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } >/dev/null; then
19269 if test -s conftest.err; then
19270 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19271 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19272 else
19273 ac_cpp_err=
19274 fi
19275else
19276 ac_cpp_err=yes
19277fi
19278if test -z "$ac_cpp_err"; then
19279 :
19280else
19281 echo "$as_me: failed program was:" >&5
19282sed 's/^/| /' conftest.$ac_ext >&5
19283
19284 # Broken: fails on valid input.
19285continue
19286fi
19287rm -f conftest.err conftest.$ac_ext
19288
19289 # OK, works on sane cases. Now check whether non-existent headers
19290 # can be detected and how.
19291 cat >conftest.$ac_ext <<_ACEOF
19292/* confdefs.h. */
19293_ACEOF
19294cat confdefs.h >>conftest.$ac_ext
19295cat >>conftest.$ac_ext <<_ACEOF
19296/* end confdefs.h. */
19297#include <ac_nonexistent.h>
19298_ACEOF
19299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19301 ac_status=$?
19302 grep -v '^ *+' conftest.er1 >conftest.err
19303 rm -f conftest.er1
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } >/dev/null; then
19307 if test -s conftest.err; then
19308 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19310 else
19311 ac_cpp_err=
19312 fi
19313else
19314 ac_cpp_err=yes
19315fi
19316if test -z "$ac_cpp_err"; then
19317 # Broken: success on invalid input.
19318continue
19319else
19320 echo "$as_me: failed program was:" >&5
19321sed 's/^/| /' conftest.$ac_ext >&5
19322
19323 # Passes both tests.
19324ac_preproc_ok=:
19325break
19326fi
19327rm -f conftest.err conftest.$ac_ext
19328
19329done
19330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19331rm -f conftest.err conftest.$ac_ext
19332if $ac_preproc_ok; then
19333 :
19334else
19335 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19336See \`config.log' for more details." >&5
19337echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19338See \`config.log' for more details." >&2;}
19339 { (exit 1); exit 1; }; }
19340fi
19341
19342ac_ext=cc
19343ac_cpp='$CXXCPP $CPPFLAGS'
19344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19347
19348
19349
19350
19351
19352 ac_ext=cc
19353ac_cpp='$CXXCPP $CPPFLAGS'
19354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19357
19358
19359
19360for ac_header in iostream
19361do
19362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19363if eval "test \"\${$as_ac_Header+set}\" = set"; then
19364 echo "$as_me:$LINENO: checking for $ac_header" >&5
19365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19366if eval "test \"\${$as_ac_Header+set}\" = set"; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19368fi
19369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19371else
19372 # Is the header compilable?
19373echo "$as_me:$LINENO: checking $ac_header usability" >&5
19374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19375cat >conftest.$ac_ext <<_ACEOF
19376/* confdefs.h. */
19377_ACEOF
19378cat confdefs.h >>conftest.$ac_ext
19379cat >>conftest.$ac_ext <<_ACEOF
19380/* end confdefs.h. */
19381$ac_includes_default
19382#include <$ac_header>
19383_ACEOF
19384rm -f conftest.$ac_objext
19385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19386 (eval $ac_compile) 2>conftest.er1
a848cd7e 19387 ac_status=$?
ac1cb8d3
VS
19388 grep -v '^ *+' conftest.er1 >conftest.err
19389 rm -f conftest.er1
19390 cat conftest.err >&5
a848cd7e
SC
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } &&
da4486fb 19393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; } &&
19399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19405 ac_header_compiler=yes
19406else
19407 echo "$as_me: failed program was:" >&5
19408sed 's/^/| /' conftest.$ac_ext >&5
19409
19410ac_header_compiler=no
19411fi
ac1cb8d3 19412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19414echo "${ECHO_T}$ac_header_compiler" >&6
19415
19416# Is the header present?
19417echo "$as_me:$LINENO: checking $ac_header presence" >&5
19418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19419cat >conftest.$ac_ext <<_ACEOF
19420/* confdefs.h. */
19421_ACEOF
19422cat confdefs.h >>conftest.$ac_ext
19423cat >>conftest.$ac_ext <<_ACEOF
19424/* end confdefs.h. */
19425#include <$ac_header>
19426_ACEOF
19427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19429 ac_status=$?
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } >/dev/null; then
19435 if test -s conftest.err; then
19436 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19437 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19438 else
19439 ac_cpp_err=
19440 fi
19441else
19442 ac_cpp_err=yes
19443fi
19444if test -z "$ac_cpp_err"; then
19445 ac_header_preproc=yes
19446else
19447 echo "$as_me: failed program was:" >&5
19448sed 's/^/| /' conftest.$ac_ext >&5
19449
19450 ac_header_preproc=no
19451fi
19452rm -f conftest.err conftest.$ac_ext
19453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19454echo "${ECHO_T}$ac_header_preproc" >&6
19455
19456# So? What about this header?
ac1cb8d3
VS
19457case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19458 yes:no: )
a848cd7e
SC
19459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19463 ac_header_preproc=yes
a848cd7e 19464 ;;
ac1cb8d3 19465 no:yes:* )
a848cd7e
SC
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19478 (
19479 cat <<\_ASBOX
ac1cb8d3
VS
19480## ----------------------------------------- ##
19481## Report this to wx-dev@lists.wxwidgets.org ##
19482## ----------------------------------------- ##
a848cd7e
SC
19483_ASBOX
19484 ) |
19485 sed "s/^/$as_me: WARNING: /" >&2
19486 ;;
19487esac
19488echo "$as_me:$LINENO: checking for $ac_header" >&5
19489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19490if eval "test \"\${$as_ac_Header+set}\" = set"; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492else
ac1cb8d3 19493 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19494fi
19495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19497
19498fi
19499if test `eval echo '${'$as_ac_Header'}'` = yes; then
19500 cat >>confdefs.h <<_ACEOF
19501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19502_ACEOF
19503
19504fi
19505
19506done
19507
19508
19509 if test "$ac_cv_header_iostream" = "yes" ; then
19510 :
19511 else
19512 cat >>confdefs.h <<\_ACEOF
19513#define wxUSE_IOSTREAMH 1
19514_ACEOF
19515
19516 fi
19517
19518 ac_ext=c
19519ac_cpp='$CPP $CPPFLAGS'
19520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19522ac_compiler_gnu=$ac_cv_c_compiler_gnu
19523
19524
19525
19526
19527 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19528echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19529if test "${wx_cv_cpp_bool+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19531else
19532
19533
19534
19535 ac_ext=cc
19536ac_cpp='$CXXCPP $CPPFLAGS'
19537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19540
19541
19542 cat >conftest.$ac_ext <<_ACEOF
19543/* confdefs.h. */
19544_ACEOF
19545cat confdefs.h >>conftest.$ac_ext
19546cat >>conftest.$ac_ext <<_ACEOF
19547/* end confdefs.h. */
19548
19549
19550int
19551main ()
19552{
19553
19554 bool b = true;
19555
19556 return 0;
19557
19558 ;
19559 return 0;
19560}
19561_ACEOF
19562rm -f conftest.$ac_objext
19563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19564 (eval $ac_compile) 2>conftest.er1
a848cd7e 19565 ac_status=$?
ac1cb8d3
VS
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
a848cd7e
SC
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
da4486fb 19571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19574 ac_status=$?
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; } &&
19577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; }; then
19583
19584 wx_cv_cpp_bool=yes
19585
19586else
19587 echo "$as_me: failed program was:" >&5
19588sed 's/^/| /' conftest.$ac_ext >&5
19589
19590
19591 wx_cv_cpp_bool=no
19592
19593
19594fi
ac1cb8d3 19595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19596
19597 ac_ext=c
19598ac_cpp='$CPP $CPPFLAGS'
19599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19601ac_compiler_gnu=$ac_cv_c_compiler_gnu
19602
19603
19604fi
19605echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19606echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19607
19608 if test "$wx_cv_cpp_bool" = "yes"; then
19609 cat >>confdefs.h <<\_ACEOF
19610#define HAVE_BOOL 1
19611_ACEOF
19612
19613 fi
19614
19615
19616
19617 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19618echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19619if test "${wx_cv_explicit+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621else
19622
19623
19624
19625 ac_ext=cc
19626ac_cpp='$CXXCPP $CPPFLAGS'
19627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19630
19631
19632 cat >conftest.$ac_ext <<_ACEOF
19633/* confdefs.h. */
19634_ACEOF
19635cat confdefs.h >>conftest.$ac_ext
19636cat >>conftest.$ac_ext <<_ACEOF
19637/* end confdefs.h. */
19638
19639 class Foo { public: explicit Foo(int) {} };
19640
19641int
19642main ()
19643{
19644
19645 return 0;
19646
19647 ;
19648 return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext
19652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19653 (eval $ac_compile) 2>conftest.er1
a848cd7e 19654 ac_status=$?
ac1cb8d3
VS
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
a848cd7e
SC
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
da4486fb 19660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672
19673 cat >conftest.$ac_ext <<_ACEOF
19674/* confdefs.h. */
19675_ACEOF
19676cat confdefs.h >>conftest.$ac_ext
19677cat >>conftest.$ac_ext <<_ACEOF
19678/* end confdefs.h. */
19679
19680 class Foo { public: explicit Foo(int) {} };
19681 static void TakeFoo(const Foo& foo) { }
19682
19683int
19684main ()
19685{
19686
19687 TakeFoo(17);
19688 return 0;
19689
19690 ;
19691 return 0;
19692}
19693_ACEOF
19694rm -f conftest.$ac_objext
19695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19696 (eval $ac_compile) 2>conftest.er1
a848cd7e 19697 ac_status=$?
ac1cb8d3
VS
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
a848cd7e
SC
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
da4486fb 19703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; } &&
19709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711 (eval $ac_try) 2>&5
19712 ac_status=$?
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19715 wx_cv_explicit=no
19716else
19717 echo "$as_me: failed program was:" >&5
19718sed 's/^/| /' conftest.$ac_ext >&5
19719
19720wx_cv_explicit=yes
19721
19722fi
ac1cb8d3 19723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19724
19725else
19726 echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
19729wx_cv_explicit=no
19730
19731fi
ac1cb8d3 19732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19733
19734 ac_ext=c
19735ac_cpp='$CPP $CPPFLAGS'
19736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739
19740
19741fi
19742echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19743echo "${ECHO_T}$wx_cv_explicit" >&6
19744
19745 if test "$wx_cv_explicit" = "yes"; then
19746 cat >>confdefs.h <<\_ACEOF
19747#define HAVE_EXPLICIT 1
19748_ACEOF
19749
19750 fi
19751
19752
19753echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19754echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19755if test "${ac_cv_cxx_const_cast+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19757else
19758
19759
19760 ac_ext=cc
19761ac_cpp='$CXXCPP $CPPFLAGS'
19762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19765
19766 cat >conftest.$ac_ext <<_ACEOF
19767/* confdefs.h. */
19768_ACEOF
19769cat confdefs.h >>conftest.$ac_ext
19770cat >>conftest.$ac_ext <<_ACEOF
19771/* end confdefs.h. */
19772
19773int
19774main ()
19775{
19776int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19777 ;
19778 return 0;
19779}
19780_ACEOF
19781rm -f conftest.$ac_objext
19782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19783 (eval $ac_compile) 2>conftest.er1
a848cd7e 19784 ac_status=$?
ac1cb8d3
VS
19785 grep -v '^ *+' conftest.er1 >conftest.err
19786 rm -f conftest.er1
19787 cat conftest.err >&5
a848cd7e
SC
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
da4486fb 19790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; } &&
19796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19799 ac_status=$?
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_cv_cxx_const_cast=yes
19803else
19804 echo "$as_me: failed program was:" >&5
19805sed 's/^/| /' conftest.$ac_ext >&5
19806
19807ac_cv_cxx_const_cast=no
19808fi
ac1cb8d3 19809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19810 ac_ext=c
19811ac_cpp='$CPP $CPPFLAGS'
19812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19814ac_compiler_gnu=$ac_cv_c_compiler_gnu
19815
19816
19817fi
19818echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19819echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19820if test "$ac_cv_cxx_const_cast" = yes; then
19821
19822cat >>confdefs.h <<\_ACEOF
19823#define HAVE_CONST_CAST
19824_ACEOF
19825
19826fi
19827
7714864e
RL
19828echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19829echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19830if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19832else
19833
19834
19835 ac_ext=cc
19836ac_cpp='$CXXCPP $CPPFLAGS'
19837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19840
19841 cat >conftest.$ac_ext <<_ACEOF
19842/* confdefs.h. */
19843_ACEOF
19844cat confdefs.h >>conftest.$ac_ext
19845cat >>conftest.$ac_ext <<_ACEOF
19846/* end confdefs.h. */
19847#include <typeinfo>
19848class Base { public : Base () {} virtual void f () = 0;};
19849class Derived : public Base { public : Derived () {} virtual void f () {} };
19850class Unrelated { public : Unrelated () {} };
19851int g (Unrelated&) { return 0; }
19852int
19853main ()
19854{
19855
19856Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19857 ;
19858 return 0;
19859}
19860_ACEOF
19861rm -f conftest.$ac_objext
19862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19863 (eval $ac_compile) 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
da4486fb 19870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest.$ac_objext'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 ac_cv_cxx_reinterpret_cast=yes
19883else
19884 echo "$as_me: failed program was:" >&5
19885sed 's/^/| /' conftest.$ac_ext >&5
19886
19887ac_cv_cxx_reinterpret_cast=no
19888fi
19889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19890 ac_ext=c
19891ac_cpp='$CPP $CPPFLAGS'
19892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894ac_compiler_gnu=$ac_cv_c_compiler_gnu
19895
19896
19897fi
19898echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19899echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19900if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19901
19902cat >>confdefs.h <<\_ACEOF
19903#define HAVE_REINTERPRET_CAST
19904_ACEOF
19905
19906fi
19907
a848cd7e
SC
19908echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19909echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19910if test "${ac_cv_cxx_static_cast+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19912else
19913
19914
19915 ac_ext=cc
19916ac_cpp='$CXXCPP $CPPFLAGS'
19917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19920
19921 cat >conftest.$ac_ext <<_ACEOF
19922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
19926/* end confdefs.h. */
19927#include <typeinfo>
19928class Base { public : Base () {} virtual void f () = 0; };
19929class Derived : public Base { public : Derived () {} virtual void f () {} };
19930int g (Derived&) { return 0; }
19931int
19932main ()
19933{
19934
19935Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19936 ;
19937 return 0;
19938}
19939_ACEOF
19940rm -f conftest.$ac_objext
19941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19942 (eval $ac_compile) 2>conftest.er1
a848cd7e 19943 ac_status=$?
ac1cb8d3
VS
19944 grep -v '^ *+' conftest.er1 >conftest.err
19945 rm -f conftest.er1
19946 cat conftest.err >&5
a848cd7e
SC
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } &&
da4486fb 19949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19952 ac_status=$?
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; } &&
19955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; }; then
19961 ac_cv_cxx_static_cast=yes
19962else
19963 echo "$as_me: failed program was:" >&5
19964sed 's/^/| /' conftest.$ac_ext >&5
19965
19966ac_cv_cxx_static_cast=no
19967fi
ac1cb8d3 19968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19969 ac_ext=c
19970ac_cpp='$CPP $CPPFLAGS'
19971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19973ac_compiler_gnu=$ac_cv_c_compiler_gnu
19974
19975
19976fi
19977echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19978echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19979if test "$ac_cv_cxx_static_cast" = yes; then
19980
19981cat >>confdefs.h <<\_ACEOF
19982#define HAVE_STATIC_CAST
19983_ACEOF
19984
19985fi
19986
19987
19988if test "$wxUSE_STL" = "yes"; then
19989 ac_ext=cc
19990ac_cpp='$CXXCPP $CPPFLAGS'
19991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19994
19995
19996 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19997echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19998 cat >conftest.$ac_ext <<_ACEOF
19999/* confdefs.h. */
20000_ACEOF
20001cat confdefs.h >>conftest.$ac_ext
20002cat >>conftest.$ac_ext <<_ACEOF
20003/* end confdefs.h. */
20004#include <string>
20005 #include <functional>
20006 #include <algorithm>
20007 #include <vector>
20008 #include <list>
20009int
20010main ()
20011{
20012std::vector<int> moo;
20013 std::list<int> foo;
20014 std::vector<int>::iterator it =
20015 std::find_if(moo.begin(), moo.end(),
20016 std::bind2nd(std::less<int>(), 3));
20017 ;
20018 return 0;
20019}
20020_ACEOF
20021rm -f conftest.$ac_objext
20022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20023 (eval $ac_compile) 2>conftest.er1
a848cd7e 20024 ac_status=$?
ac1cb8d3
VS
20025 grep -v '^ *+' conftest.er1 >conftest.err
20026 rm -f conftest.er1
20027 cat conftest.err >&5
a848cd7e
SC
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
da4486fb 20030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20033 ac_status=$?
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 echo "$as_me:$LINENO: result: yes" >&5
20043echo "${ECHO_T}yes" >&6
20044else
20045 echo "$as_me: failed program was:" >&5
20046sed 's/^/| /' conftest.$ac_ext >&5
20047
20048echo "$as_me:$LINENO: result: no" >&5
20049echo "${ECHO_T}no" >&6
20050 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
20051echo "$as_me: error: Basic STL functionality missing" >&2;}
20052 { (exit 1); exit 1; }; }
20053fi
ac1cb8d3 20054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20055
20056 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
20057echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
20058 cat >conftest.$ac_ext <<_ACEOF
20059/* confdefs.h. */
20060_ACEOF
20061cat confdefs.h >>conftest.$ac_ext
20062cat >>conftest.$ac_ext <<_ACEOF
20063/* end confdefs.h. */
20064#include <string>
20065int
20066main ()
20067{
20068std::wstring foo;
20069 ;
20070 return 0;
20071}
20072_ACEOF
20073rm -f conftest.$ac_objext
20074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20075 (eval $ac_compile) 2>conftest.er1
a848cd7e 20076 ac_status=$?
ac1cb8d3
VS
20077 grep -v '^ *+' conftest.er1 >conftest.err
20078 rm -f conftest.er1
20079 cat conftest.err >&5
a848cd7e
SC
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } &&
da4486fb 20082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20085 ac_status=$?
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; } &&
20088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; }; then
20094 echo "$as_me:$LINENO: result: yes" >&5
20095echo "${ECHO_T}yes" >&6
20096 cat >>confdefs.h <<\_ACEOF
20097#define HAVE_STD_WSTRING 1
20098_ACEOF
20099
20100else
20101 echo "$as_me: failed program was:" >&5
20102sed 's/^/| /' conftest.$ac_ext >&5
20103
20104echo "$as_me:$LINENO: result: no" >&5
20105echo "${ECHO_T}no" >&6
20106fi
ac1cb8d3 20107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20108
20109 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
20110echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
20111 cat >conftest.$ac_ext <<_ACEOF
20112/* confdefs.h. */
20113_ACEOF
20114cat confdefs.h >>conftest.$ac_ext
20115cat >>conftest.$ac_ext <<_ACEOF
20116/* end confdefs.h. */
20117#include <string>
20118int
20119main ()
20120{
20121std::string foo, bar;
20122 foo.compare(bar);
20123 foo.compare(1, 1, bar);
20124 foo.compare(1, 1, bar, 1, 1);
20125 foo.compare("");
20126 foo.compare(1, 1, "");
20127 foo.compare(1, 1, "", 2);
20128 ;
20129 return 0;
20130}
20131_ACEOF
20132rm -f conftest.$ac_objext
20133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20134 (eval $ac_compile) 2>conftest.er1
a848cd7e 20135 ac_status=$?
ac1cb8d3
VS
20136 grep -v '^ *+' conftest.er1 >conftest.err
20137 rm -f conftest.er1
20138 cat conftest.err >&5
a848cd7e
SC
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
da4486fb 20141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; } &&
20147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
20153 echo "$as_me:$LINENO: result: yes" >&5
20154echo "${ECHO_T}yes" >&6
20155 cat >>confdefs.h <<\_ACEOF
20156#define HAVE_STD_STRING_COMPARE 1
20157_ACEOF
20158
20159else
20160 echo "$as_me: failed program was:" >&5
20161sed 's/^/| /' conftest.$ac_ext >&5
20162
20163echo "$as_me:$LINENO: result: no" >&5
20164echo "${ECHO_T}no" >&6
20165fi
ac1cb8d3 20166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20167
20168 if test "${ac_cv_header_hash_map+set}" = set; then
20169 echo "$as_me:$LINENO: checking for hash_map" >&5
20170echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20171if test "${ac_cv_header_hash_map+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20173fi
20174echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20175echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20176else
20177 # Is the header compilable?
20178echo "$as_me:$LINENO: checking hash_map usability" >&5
20179echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
20180cat >conftest.$ac_ext <<_ACEOF
20181/* confdefs.h. */
20182_ACEOF
20183cat confdefs.h >>conftest.$ac_ext
20184cat >>conftest.$ac_ext <<_ACEOF
20185/* end confdefs.h. */
20186$ac_includes_default
20187#include <hash_map>
20188_ACEOF
20189rm -f conftest.$ac_objext
20190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20191 (eval $ac_compile) 2>conftest.er1
bdcade0a 20192 ac_status=$?
ac1cb8d3
VS
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
bdcade0a
MB
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } &&
da4486fb 20198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; } &&
20204 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20207 ac_status=$?
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 ac_header_compiler=yes
20211else
20212 echo "$as_me: failed program was:" >&5
20213sed 's/^/| /' conftest.$ac_ext >&5
20214
20215ac_header_compiler=no
20216fi
ac1cb8d3 20217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20219echo "${ECHO_T}$ac_header_compiler" >&6
20220
20221# Is the header present?
20222echo "$as_me:$LINENO: checking hash_map presence" >&5
20223echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20224cat >conftest.$ac_ext <<_ACEOF
20225/* confdefs.h. */
20226_ACEOF
20227cat confdefs.h >>conftest.$ac_ext
20228cat >>conftest.$ac_ext <<_ACEOF
20229/* end confdefs.h. */
20230#include <hash_map>
20231_ACEOF
20232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } >/dev/null; then
20240 if test -s conftest.err; then
20241 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20242 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20243 else
20244 ac_cpp_err=
20245 fi
20246else
20247 ac_cpp_err=yes
20248fi
20249if test -z "$ac_cpp_err"; then
20250 ac_header_preproc=yes
20251else
20252 echo "$as_me: failed program was:" >&5
20253sed 's/^/| /' conftest.$ac_ext >&5
20254
20255 ac_header_preproc=no
20256fi
20257rm -f conftest.err conftest.$ac_ext
20258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20259echo "${ECHO_T}$ac_header_preproc" >&6
20260
20261# So? What about this header?
ac1cb8d3
VS
20262case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20263 yes:no: )
bdcade0a
MB
20264 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20265echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20266 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20267echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20268 ac_header_preproc=yes
bdcade0a 20269 ;;
ac1cb8d3 20270 no:yes:* )
bdcade0a
MB
20271 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20272echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20273 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20274echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20275 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20276echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20277 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20278echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20279 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20280echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20281 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20282echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20283 (
20284 cat <<\_ASBOX
ac1cb8d3
VS
20285## ----------------------------------------- ##
20286## Report this to wx-dev@lists.wxwidgets.org ##
20287## ----------------------------------------- ##
bdcade0a
MB
20288_ASBOX
20289 ) |
20290 sed "s/^/$as_me: WARNING: /" >&2
20291 ;;
20292esac
20293echo "$as_me:$LINENO: checking for hash_map" >&5
20294echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20295if test "${ac_cv_header_hash_map+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20297else
20298 ac_cv_header_hash_map=$ac_header_preproc
20299fi
20300echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20301echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20302
20303fi
20304if test $ac_cv_header_hash_map = yes; then
20305 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20306echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20307 cat >conftest.$ac_ext <<_ACEOF
20308/* confdefs.h. */
20309_ACEOF
20310cat confdefs.h >>conftest.$ac_ext
20311cat >>conftest.$ac_ext <<_ACEOF
20312/* end confdefs.h. */
20313#include <hash_map>
20314 #include <hash_set>
20315int
20316main ()
20317{
20318std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20319 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20320 ;
20321 return 0;
20322}
20323_ACEOF
20324rm -f conftest.$ac_objext
20325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20326 (eval $ac_compile) 2>conftest.er1
bdcade0a 20327 ac_status=$?
ac1cb8d3
VS
20328 grep -v '^ *+' conftest.er1 >conftest.err
20329 rm -f conftest.er1
20330 cat conftest.err >&5
bdcade0a
MB
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } &&
da4486fb 20333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; } &&
20339 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 echo "$as_me:$LINENO: result: yes" >&5
20346echo "${ECHO_T}yes" >&6
20347 cat >>confdefs.h <<\_ACEOF
20348#define HAVE_HASH_MAP 1
20349_ACEOF
20350
20351 cat >>confdefs.h <<\_ACEOF
20352#define HAVE_STD_HASH_MAP 1
20353_ACEOF
20354
20355else
20356 echo "$as_me: failed program was:" >&5
20357sed 's/^/| /' conftest.$ac_ext >&5
20358
20359echo "$as_me:$LINENO: result: no" >&5
20360echo "${ECHO_T}no" >&6
20361fi
ac1cb8d3 20362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20363
20364fi
20365
20366
20367
20368 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20369 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20370echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20371if test "${ac_cv_header_ext_hash_map+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20373fi
20374echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20375echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20376else
20377 # Is the header compilable?
20378echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20379echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20380cat >conftest.$ac_ext <<_ACEOF
20381/* confdefs.h. */
20382_ACEOF
20383cat confdefs.h >>conftest.$ac_ext
20384cat >>conftest.$ac_ext <<_ACEOF
20385/* end confdefs.h. */
20386$ac_includes_default
20387#include <ext/hash_map>
20388_ACEOF
20389rm -f conftest.$ac_objext
20390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20391 (eval $ac_compile) 2>conftest.er1
bdcade0a 20392 ac_status=$?
ac1cb8d3
VS
20393 grep -v '^ *+' conftest.er1 >conftest.err
20394 rm -f conftest.er1
20395 cat conftest.err >&5
bdcade0a
MB
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } &&
da4486fb 20398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_header_compiler=yes
20411else
20412 echo "$as_me: failed program was:" >&5
20413sed 's/^/| /' conftest.$ac_ext >&5
20414
20415ac_header_compiler=no
20416fi
ac1cb8d3 20417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20418echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20419echo "${ECHO_T}$ac_header_compiler" >&6
20420
20421# Is the header present?
20422echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20423echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20424cat >conftest.$ac_ext <<_ACEOF
20425/* confdefs.h. */
20426_ACEOF
20427cat confdefs.h >>conftest.$ac_ext
20428cat >>conftest.$ac_ext <<_ACEOF
20429/* end confdefs.h. */
20430#include <ext/hash_map>
20431_ACEOF
20432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20434 ac_status=$?
20435 grep -v '^ *+' conftest.er1 >conftest.err
20436 rm -f conftest.er1
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } >/dev/null; then
20440 if test -s conftest.err; then
20441 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20442 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20443 else
20444 ac_cpp_err=
20445 fi
20446else
20447 ac_cpp_err=yes
20448fi
20449if test -z "$ac_cpp_err"; then
20450 ac_header_preproc=yes
20451else
20452 echo "$as_me: failed program was:" >&5
20453sed 's/^/| /' conftest.$ac_ext >&5
20454
20455 ac_header_preproc=no
20456fi
20457rm -f conftest.err conftest.$ac_ext
20458echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20459echo "${ECHO_T}$ac_header_preproc" >&6
20460
20461# So? What about this header?
ac1cb8d3
VS
20462case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20463 yes:no: )
bdcade0a
MB
20464 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20465echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20466 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20467echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20468 ac_header_preproc=yes
bdcade0a 20469 ;;
ac1cb8d3 20470 no:yes:* )
bdcade0a
MB
20471 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20472echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20473 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20474echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20475 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20476echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20477 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20478echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20479 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20480echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20481 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20482echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20483 (
20484 cat <<\_ASBOX
ac1cb8d3
VS
20485## ----------------------------------------- ##
20486## Report this to wx-dev@lists.wxwidgets.org ##
20487## ----------------------------------------- ##
bdcade0a
MB
20488_ASBOX
20489 ) |
20490 sed "s/^/$as_me: WARNING: /" >&2
20491 ;;
20492esac
20493echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20494echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20495if test "${ac_cv_header_ext_hash_map+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20497else
20498 ac_cv_header_ext_hash_map=$ac_header_preproc
20499fi
20500echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20501echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20502
20503fi
20504if test $ac_cv_header_ext_hash_map = yes; then
20505 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20506echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20507 cat >conftest.$ac_ext <<_ACEOF
20508/* confdefs.h. */
20509_ACEOF
20510cat confdefs.h >>conftest.$ac_ext
20511cat >>conftest.$ac_ext <<_ACEOF
20512/* end confdefs.h. */
20513#include <ext/hash_map>
20514 #include <ext/hash_set>
20515int
20516main ()
20517{
20518__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20519 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20520 ;
20521 return 0;
20522}
20523_ACEOF
20524rm -f conftest.$ac_objext
20525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20526 (eval $ac_compile) 2>conftest.er1
bdcade0a 20527 ac_status=$?
ac1cb8d3
VS
20528 grep -v '^ *+' conftest.er1 >conftest.err
20529 rm -f conftest.er1
20530 cat conftest.err >&5
bdcade0a
MB
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
da4486fb 20533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20535 (eval $ac_try) 2>&5
20536 ac_status=$?
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); }; } &&
20539 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; }; then
20545 echo "$as_me:$LINENO: result: yes" >&5
20546echo "${ECHO_T}yes" >&6
20547 cat >>confdefs.h <<\_ACEOF
20548#define HAVE_EXT_HASH_MAP 1
20549_ACEOF
20550
20551 cat >>confdefs.h <<\_ACEOF
20552#define HAVE_GNU_CXX_HASH_MAP 1
20553_ACEOF
20554
20555else
20556 echo "$as_me: failed program was:" >&5
20557sed 's/^/| /' conftest.$ac_ext >&5
20558
20559echo "$as_me:$LINENO: result: no" >&5
20560echo "${ECHO_T}no" >&6
20561fi
ac1cb8d3 20562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20563
20564fi
20565
20566
a848cd7e
SC
20567
20568 ac_ext=c
20569ac_cpp='$CPP $CPPFLAGS'
20570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572ac_compiler_gnu=$ac_cv_c_compiler_gnu
20573
20574fi
20575
20576
20577SEARCH_INCLUDE="\
20578 /usr/local/include \
20579 \
20580 /usr/Motif-2.1/include \
20581 /usr/Motif-1.2/include \
20582 /usr/include/Motif1.2 \
20583 /opt/xpm/include/X11 \
20584 /opt/GBxpm/include/ \
20585 /opt/GBxpm/X11/include/ \
20586 \
20587 /usr/dt/include \
20588 /usr/openwin/include \
20589 \
20590 /usr/include/Xm \
20591 \
20592 /usr/X11R6/include \
20593 /usr/X11R6.4/include \
20594 /usr/X11R5/include \
20595 /usr/X11R4/include \
20596 \
20597 /usr/include/X11R6 \
20598 /usr/include/X11R5 \
20599 /usr/include/X11R4 \
20600 \
20601 /usr/local/X11R6/include \
20602 /usr/local/X11R5/include \
20603 /usr/local/X11R4/include \
20604 \
20605 /usr/local/include/X11R6 \
20606 /usr/local/include/X11R5 \
20607 /usr/local/include/X11R4 \
20608 \
20609 /usr/X11/include \
20610 /usr/include/X11 \
20611 /usr/local/X11/include \
20612 /usr/local/include/X11 \
20613 \
20614 /usr/X386/include \
20615 /usr/x386/include \
20616 /usr/XFree86/include/X11 \
20617 \
20618 X:/XFree86/include \
20619 X:/XFree86/include/X11 \
20620 \
20621 /usr/include/gtk \
20622 /usr/local/include/gtk \
20623 /usr/include/glib \
20624 /usr/local/include/glib \
20625 \
20626 /usr/include/qt \
20627 /usr/local/include/qt \
20628 \
20629 /usr/local/arm/3.3.2/include \
20630 \
20631 /usr/include/windows \
20632 /usr/include/wine \
20633 /usr/local/include/wine \
20634 \
20635 /usr/unsupported/include \
20636 /usr/athena/include \
20637 /usr/local/x11r5/include \
20638 /usr/lpp/Xamples/include \
20639 \
20640 /usr/openwin/share/include"
20641
20642SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20643
20644
20645cat >confcache <<\_ACEOF
20646# This file is a shell script that caches the results of configure
20647# tests run on this system so they can be shared between configure
20648# scripts and configure runs, see configure's option --config-cache.
20649# It is not useful on other systems. If it contains results you don't
20650# want to keep, you may remove or edit it.
20651#
20652# config.status only pays attention to the cache file if you give it
20653# the --recheck option to rerun configure.
20654#
20655# `ac_cv_env_foo' variables (set or unset) will be overridden when
20656# loading this file, other *unset* `ac_cv_foo' will be assigned the
20657# following values.
20658
20659_ACEOF
20660
20661# The following way of writing the cache mishandles newlines in values,
20662# but we know of no workaround that is simple, portable, and efficient.
20663# So, don't put newlines in cache variables' values.
20664# Ultrix sh set writes to stderr and can't be redirected directly,
20665# and sets the high bit in the cache file unless we assign to the vars.
20666{
20667 (set) 2>&1 |
20668 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20669 *ac_space=\ *)
20670 # `set' does not quote correctly, so add quotes (double-quote
20671 # substitution turns \\\\ into \\, and sed turns \\ into \).
20672 sed -n \
ac1cb8d3
VS
20673 "s/'/'\\\\''/g;
20674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20675 ;;
20676 *)
20677 # `set' quotes correctly as required by POSIX, so do not add quotes.
20678 sed -n \
ac1cb8d3 20679 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20680 ;;
20681 esac;
20682} |
20683 sed '
20684 t clear
20685 : clear
20686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20687 t end
20688 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20689 : end' >>confcache
20690if diff $cache_file confcache >/dev/null 2>&1; then :; else
20691 if test -w $cache_file; then
20692 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20693 cat confcache >$cache_file
20694 else
20695 echo "not updating unwritable cache $cache_file"
20696 fi
20697fi
20698rm -f confcache
20699
20700if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20701 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20702echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20703if test "${wx_cv_lib_glibc21+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20705else
20706
20707 cat >conftest.$ac_ext <<_ACEOF
20708/* confdefs.h. */
20709_ACEOF
20710cat confdefs.h >>conftest.$ac_ext
20711cat >>conftest.$ac_ext <<_ACEOF
20712/* end confdefs.h. */
20713#include <features.h>
20714int
20715main ()
20716{
20717
20718 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20719 #error not glibc2.1
20720 #endif
20721
20722 ;
20723 return 0;
20724}
20725_ACEOF
20726rm -f conftest.$ac_objext
20727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20728 (eval $ac_compile) 2>conftest.er1
a848cd7e 20729 ac_status=$?
ac1cb8d3
VS
20730 grep -v '^ *+' conftest.er1 >conftest.err
20731 rm -f conftest.er1
20732 cat conftest.err >&5
a848cd7e
SC
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } &&
da4486fb 20735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743 (eval $ac_try) 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
20747
20748 wx_cv_lib_glibc21=yes
20749
20750else
20751 echo "$as_me: failed program was:" >&5
20752sed 's/^/| /' conftest.$ac_ext >&5
20753
20754
20755 wx_cv_lib_glibc21=no
20756
20757
20758fi
ac1cb8d3 20759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20760
20761fi
20762echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20763echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20764 if test "$wx_cv_lib_glibc21" = "yes"; then
20765 cat >>confdefs.h <<\_ACEOF
20766#define wxHAVE_GLIBC2 1
20767_ACEOF
20768
20769 fi
20770fi
20771
20772if test "x$wx_cv_lib_glibc21" = "xyes"; then
20773 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20774 cat >>confdefs.h <<\_ACEOF
20775#define _GNU_SOURCE 1
20776_ACEOF
20777
20778 fi
20779fi
20780
20781
20782
20783if test "$wxUSE_REGEX" != "no"; then
20784 cat >>confdefs.h <<\_ACEOF
20785#define wxUSE_REGEX 1
20786_ACEOF
20787
20788
20789 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20790 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20791echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20792 wxUSE_REGEX=builtin
20793 fi
20794
20795 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20796 if test "${ac_cv_header_regex_h+set}" = set; then
20797 echo "$as_me:$LINENO: checking for regex.h" >&5
20798echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20799if test "${ac_cv_header_regex_h+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20801fi
20802echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20803echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20804else
20805 # Is the header compilable?
20806echo "$as_me:$LINENO: checking regex.h usability" >&5
20807echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20808cat >conftest.$ac_ext <<_ACEOF
20809/* confdefs.h. */
20810_ACEOF
20811cat confdefs.h >>conftest.$ac_ext
20812cat >>conftest.$ac_ext <<_ACEOF
20813/* end confdefs.h. */
20814$ac_includes_default
20815#include <regex.h>
20816_ACEOF
20817rm -f conftest.$ac_objext
20818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20819 (eval $ac_compile) 2>conftest.er1
a848cd7e 20820 ac_status=$?
ac1cb8d3
VS
20821 grep -v '^ *+' conftest.er1 >conftest.err
20822 rm -f conftest.er1
20823 cat conftest.err >&5
a848cd7e
SC
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } &&
da4486fb 20826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
20838 ac_header_compiler=yes
20839else
20840 echo "$as_me: failed program was:" >&5
20841sed 's/^/| /' conftest.$ac_ext >&5
20842
20843ac_header_compiler=no
20844fi
ac1cb8d3 20845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20846echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20847echo "${ECHO_T}$ac_header_compiler" >&6
20848
20849# Is the header present?
20850echo "$as_me:$LINENO: checking regex.h presence" >&5
20851echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20852cat >conftest.$ac_ext <<_ACEOF
20853/* confdefs.h. */
20854_ACEOF
20855cat confdefs.h >>conftest.$ac_ext
20856cat >>conftest.$ac_ext <<_ACEOF
20857/* end confdefs.h. */
20858#include <regex.h>
20859_ACEOF
20860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20862 ac_status=$?
20863 grep -v '^ *+' conftest.er1 >conftest.err
20864 rm -f conftest.er1
20865 cat conftest.err >&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } >/dev/null; then
20868 if test -s conftest.err; then
20869 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20871 else
20872 ac_cpp_err=
20873 fi
20874else
20875 ac_cpp_err=yes
20876fi
20877if test -z "$ac_cpp_err"; then
20878 ac_header_preproc=yes
20879else
20880 echo "$as_me: failed program was:" >&5
20881sed 's/^/| /' conftest.$ac_ext >&5
20882
20883 ac_header_preproc=no
20884fi
20885rm -f conftest.err conftest.$ac_ext
20886echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20887echo "${ECHO_T}$ac_header_preproc" >&6
20888
20889# So? What about this header?
ac1cb8d3
VS
20890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20891 yes:no: )
a848cd7e
SC
20892 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20893echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20894 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20895echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20896 ac_header_preproc=yes
a848cd7e 20897 ;;
ac1cb8d3 20898 no:yes:* )
a848cd7e
SC
20899 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20900echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20901 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20902echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20903 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20904echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20905 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20906echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20907 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20908echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20909 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20910echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20911 (
20912 cat <<\_ASBOX
ac1cb8d3
VS
20913## ----------------------------------------- ##
20914## Report this to wx-dev@lists.wxwidgets.org ##
20915## ----------------------------------------- ##
a848cd7e
SC
20916_ASBOX
20917 ) |
20918 sed "s/^/$as_me: WARNING: /" >&2
20919 ;;
20920esac
20921echo "$as_me:$LINENO: checking for regex.h" >&5
20922echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20923if test "${ac_cv_header_regex_h+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925else
20926 ac_cv_header_regex_h=$ac_header_preproc
20927fi
20928echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20929echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20930
20931fi
20932if test $ac_cv_header_regex_h = yes; then
20933
20934for ac_func in regcomp
20935do
20936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20937echo "$as_me:$LINENO: checking for $ac_func" >&5
20938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20939if eval "test \"\${$as_ac_var+set}\" = set"; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20941else
20942 cat >conftest.$ac_ext <<_ACEOF
20943/* confdefs.h. */
20944_ACEOF
20945cat confdefs.h >>conftest.$ac_ext
20946cat >>conftest.$ac_ext <<_ACEOF
20947/* end confdefs.h. */
ac1cb8d3
VS
20948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20950#define $ac_func innocuous_$ac_func
20951
a848cd7e
SC
20952/* System header to define __stub macros and hopefully few prototypes,
20953 which can conflict with char $ac_func (); below.
20954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20955 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20956
a848cd7e
SC
20957#ifdef __STDC__
20958# include <limits.h>
20959#else
20960# include <assert.h>
20961#endif
ac1cb8d3
VS
20962
20963#undef $ac_func
20964
a848cd7e
SC
20965/* Override any gcc2 internal prototype to avoid an error. */
20966#ifdef __cplusplus
20967extern "C"
20968{
20969#endif
20970/* We use char because int might match the return type of a gcc2
20971 builtin and then its argument prototype would still apply. */
20972char $ac_func ();
20973/* The GNU C library defines this for functions which it implements
20974 to always fail with ENOSYS. Some functions are actually named
20975 something starting with __ and the normal name is an alias. */
20976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20977choke me
20978#else
20979char (*f) () = $ac_func;
20980#endif
20981#ifdef __cplusplus
20982}
20983#endif
20984
20985int
20986main ()
20987{
20988return f != $ac_func;
20989 ;
20990 return 0;
20991}
20992_ACEOF
20993rm -f conftest.$ac_objext conftest$ac_exeext
20994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20995 (eval $ac_link) 2>conftest.er1
a848cd7e 20996 ac_status=$?
ac1cb8d3
VS
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
a848cd7e
SC
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
da4486fb 21002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 eval "$as_ac_var=yes"
21015else
21016 echo "$as_me: failed program was:" >&5
21017sed 's/^/| /' conftest.$ac_ext >&5
21018
21019eval "$as_ac_var=no"
21020fi
ac1cb8d3
VS
21021rm -f conftest.err conftest.$ac_objext \
21022 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21023fi
21024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21026if test `eval echo '${'$as_ac_var'}'` = yes; then
21027 cat >>confdefs.h <<_ACEOF
21028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029_ACEOF
21030
21031fi
21032done
21033
21034fi
21035
21036
21037
21038 if test "x$ac_cv_func_regcomp" != "xyes"; then
21039 if test "$wxUSE_REGEX" = "sys" ; then
21040 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
21041echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
21042 { (exit 1); exit 1; }; }
21043 else
21044 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
21045echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21046 wxUSE_REGEX=builtin
21047 fi
21048 else
21049 wxUSE_REGEX=sys
21050 cat >>confdefs.h <<\_ACEOF
21051#define WX_NO_REGEX_ADVANCED 1
21052_ACEOF
21053
21054 fi
21055 fi
21056fi
21057
21058
21059ZLIB_LINK=
21060if test "$wxUSE_ZLIB" != "no" ; then
21061 cat >>confdefs.h <<\_ACEOF
21062#define wxUSE_ZLIB 1
21063_ACEOF
21064
21065
21066 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
21067 if test "$USE_DARWIN" = 1; then
21068 system_zlib_h_ok="yes"
21069 else
21070 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
21071echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
21072if test "${ac_cv_header_zlib_h+set}" = set; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21074else
21075 if test "$cross_compiling" = yes; then
21076 unset ac_cv_header_zlib_h
21077
21078else
21079 cat >conftest.$ac_ext <<_ACEOF
21080/* confdefs.h. */
21081_ACEOF
21082cat confdefs.h >>conftest.$ac_ext
21083cat >>conftest.$ac_ext <<_ACEOF
21084/* end confdefs.h. */
21085
21086 #include <zlib.h>
21087 #include <stdio.h>
21088
21089 int main()
21090 {
21091 FILE *f=fopen("conftestval", "w");
21092 if (!f) exit(1);
21093 fprintf(f, "%s",
21094 ZLIB_VERSION[0] == '1' &&
21095 (ZLIB_VERSION[2] > '1' ||
21096 (ZLIB_VERSION[2] == '1' &&
21097 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
21098 exit(0);
21099 }
21100
21101_ACEOF
21102rm -f conftest$ac_exeext
21103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21104 (eval $ac_link) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; }; then
21113 ac_cv_header_zlib_h=`cat conftestval`
21114else
21115 echo "$as_me: program exited with status $ac_status" >&5
21116echo "$as_me: failed program was:" >&5
21117sed 's/^/| /' conftest.$ac_ext >&5
21118
21119( exit $ac_status )
21120ac_cv_header_zlib_h=no
21121fi
ac1cb8d3 21122rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21123fi
21124
21125fi
21126echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21127echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21128 if test "${ac_cv_header_zlib_h+set}" = set; then
21129 echo "$as_me:$LINENO: checking for zlib.h" >&5
21130echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21131if test "${ac_cv_header_zlib_h+set}" = set; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21133fi
21134echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21135echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21136else
21137 # Is the header compilable?
21138echo "$as_me:$LINENO: checking zlib.h usability" >&5
21139echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
21140cat >conftest.$ac_ext <<_ACEOF
21141/* confdefs.h. */
21142_ACEOF
21143cat confdefs.h >>conftest.$ac_ext
21144cat >>conftest.$ac_ext <<_ACEOF
21145/* end confdefs.h. */
21146$ac_includes_default
21147#include <zlib.h>
21148_ACEOF
21149rm -f conftest.$ac_objext
21150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21151 (eval $ac_compile) 2>conftest.er1
a848cd7e 21152 ac_status=$?
ac1cb8d3
VS
21153 grep -v '^ *+' conftest.er1 >conftest.err
21154 rm -f conftest.er1
21155 cat conftest.err >&5
a848cd7e
SC
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } &&
da4486fb 21158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; } &&
21164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21167 ac_status=$?
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; }; then
21170 ac_header_compiler=yes
21171else
21172 echo "$as_me: failed program was:" >&5
21173sed 's/^/| /' conftest.$ac_ext >&5
21174
21175ac_header_compiler=no
21176fi
ac1cb8d3 21177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21178echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21179echo "${ECHO_T}$ac_header_compiler" >&6
21180
21181# Is the header present?
21182echo "$as_me:$LINENO: checking zlib.h presence" >&5
21183echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
21184cat >conftest.$ac_ext <<_ACEOF
21185/* confdefs.h. */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h. */
21190#include <zlib.h>
21191_ACEOF
21192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21194 ac_status=$?
21195 grep -v '^ *+' conftest.er1 >conftest.err
21196 rm -f conftest.er1
21197 cat conftest.err >&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } >/dev/null; then
21200 if test -s conftest.err; then
21201 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21203 else
21204 ac_cpp_err=
21205 fi
21206else
21207 ac_cpp_err=yes
21208fi
21209if test -z "$ac_cpp_err"; then
21210 ac_header_preproc=yes
21211else
21212 echo "$as_me: failed program was:" >&5
21213sed 's/^/| /' conftest.$ac_ext >&5
21214
21215 ac_header_preproc=no
21216fi
21217rm -f conftest.err conftest.$ac_ext
21218echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21219echo "${ECHO_T}$ac_header_preproc" >&6
21220
21221# So? What about this header?
ac1cb8d3
VS
21222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21223 yes:no: )
a848cd7e
SC
21224 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21225echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21226 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21227echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21228 ac_header_preproc=yes
a848cd7e 21229 ;;
ac1cb8d3 21230 no:yes:* )
a848cd7e
SC
21231 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21232echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21233 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21234echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21236echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21238echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21239 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21240echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21241 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21242echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21243 (
21244 cat <<\_ASBOX
ac1cb8d3
VS
21245## ----------------------------------------- ##
21246## Report this to wx-dev@lists.wxwidgets.org ##
21247## ----------------------------------------- ##
a848cd7e
SC
21248_ASBOX
21249 ) |
21250 sed "s/^/$as_me: WARNING: /" >&2
21251 ;;
21252esac
21253echo "$as_me:$LINENO: checking for zlib.h" >&5
21254echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21255if test "${ac_cv_header_zlib_h+set}" = set; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21257else
21258 ac_cv_header_zlib_h=$ac_header_preproc
21259fi
21260echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21261echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21262
21263fi
21264
21265
21266
21267 system_zlib_h_ok=$ac_cv_header_zlib_h
21268 fi
21269
21270 if test "$system_zlib_h_ok" = "yes"; then
21271 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21272echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21273if test "${ac_cv_lib_z_deflate+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275else
21276 ac_check_lib_save_LIBS=$LIBS
21277LIBS="-lz $LIBS"
21278cat >conftest.$ac_ext <<_ACEOF
21279/* confdefs.h. */
21280_ACEOF
21281cat confdefs.h >>conftest.$ac_ext
21282cat >>conftest.$ac_ext <<_ACEOF
21283/* end confdefs.h. */
21284
21285/* Override any gcc2 internal prototype to avoid an error. */
21286#ifdef __cplusplus
21287extern "C"
21288#endif
21289/* We use char because int might match the return type of a gcc2
21290 builtin and then its argument prototype would still apply. */
21291char deflate ();
21292int
21293main ()
21294{
21295deflate ();
21296 ;
21297 return 0;
21298}
21299_ACEOF
21300rm -f conftest.$ac_objext conftest$ac_exeext
21301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21302 (eval $ac_link) 2>conftest.er1
a848cd7e 21303 ac_status=$?
ac1cb8d3
VS
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
a848cd7e
SC
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
da4486fb 21309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; } &&
21315 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 ac_cv_lib_z_deflate=yes
21322else
21323 echo "$as_me: failed program was:" >&5
21324sed 's/^/| /' conftest.$ac_ext >&5
21325
21326ac_cv_lib_z_deflate=no
21327fi
ac1cb8d3
VS
21328rm -f conftest.err conftest.$ac_objext \
21329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21330LIBS=$ac_check_lib_save_LIBS
21331fi
21332echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21333echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21334if test $ac_cv_lib_z_deflate = yes; then
21335 ZLIB_LINK=" -lz"
21336fi
21337
21338 fi
21339
21340 if test "x$ZLIB_LINK" = "x" ; then
21341 if test "$wxUSE_ZLIB" = "sys" ; then
21342 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21343echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21344 { (exit 1); exit 1; }; }
21345 else
21346 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21347echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21348 wxUSE_ZLIB=builtin
21349 fi
21350 else
21351 wxUSE_ZLIB=sys
21352 fi
21353 fi
21354fi
21355
21356
21357PNG_LINK=
21358if test "$wxUSE_LIBPNG" != "no" ; then
21359 cat >>confdefs.h <<\_ACEOF
21360#define wxUSE_LIBPNG 1
21361_ACEOF
21362
21363
21364 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21365 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21366echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21367 wxUSE_LIBPNG=sys
21368 fi
21369
21370 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21371 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21372echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21373 wxUSE_LIBPNG=builtin
21374 fi
21375
21376 if test "$wxUSE_MGL" != 1 ; then
21377 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21378 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21379echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21380if test "${ac_cv_header_png_h+set}" = set; then
21381 echo $ECHO_N "(cached) $ECHO_C" >&6
21382else
21383 if test "$cross_compiling" = yes; then
21384 unset ac_cv_header_png_h
21385
21386else
21387 cat >conftest.$ac_ext <<_ACEOF
21388/* confdefs.h. */
21389_ACEOF
21390cat confdefs.h >>conftest.$ac_ext
21391cat >>conftest.$ac_ext <<_ACEOF
21392/* end confdefs.h. */
21393
21394 #include <png.h>
21395 #include <stdio.h>
21396
21397 int main()
21398 {
21399 FILE *f=fopen("conftestval", "w");
21400 if (!f) exit(1);
21401 fprintf(f, "%s",
21402 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21403 exit(0);
21404 }
21405
21406_ACEOF
21407rm -f conftest$ac_exeext
21408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21409 (eval $ac_link) 2>&5
21410 ac_status=$?
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414 (eval $ac_try) 2>&5
21415 ac_status=$?
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); }; }; then
21418 ac_cv_header_png_h=`cat conftestval`
21419else
21420 echo "$as_me: program exited with status $ac_status" >&5
21421echo "$as_me: failed program was:" >&5
21422sed 's/^/| /' conftest.$ac_ext >&5
21423
21424( exit $ac_status )
21425ac_cv_header_png_h=no
21426fi
ac1cb8d3 21427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21428fi
21429
21430fi
21431echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21432echo "${ECHO_T}$ac_cv_header_png_h" >&6
21433 if test "${ac_cv_header_png_h+set}" = set; then
21434 echo "$as_me:$LINENO: checking for png.h" >&5
21435echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21436if test "${ac_cv_header_png_h+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21438fi
21439echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21440echo "${ECHO_T}$ac_cv_header_png_h" >&6
21441else
21442 # Is the header compilable?
21443echo "$as_me:$LINENO: checking png.h usability" >&5
21444echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21445cat >conftest.$ac_ext <<_ACEOF
21446/* confdefs.h. */
21447_ACEOF
21448cat confdefs.h >>conftest.$ac_ext
21449cat >>conftest.$ac_ext <<_ACEOF
21450/* end confdefs.h. */
21451$ac_includes_default
21452#include <png.h>
21453_ACEOF
21454rm -f conftest.$ac_objext
21455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21456 (eval $ac_compile) 2>conftest.er1
a848cd7e 21457 ac_status=$?
ac1cb8d3
VS
21458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
a848cd7e
SC
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
da4486fb 21463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 ac_header_compiler=yes
21476else
21477 echo "$as_me: failed program was:" >&5
21478sed 's/^/| /' conftest.$ac_ext >&5
21479
21480ac_header_compiler=no
21481fi
ac1cb8d3 21482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21483echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21484echo "${ECHO_T}$ac_header_compiler" >&6
21485
21486# Is the header present?
21487echo "$as_me:$LINENO: checking png.h presence" >&5
21488echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21489cat >conftest.$ac_ext <<_ACEOF
21490/* confdefs.h. */
21491_ACEOF
21492cat confdefs.h >>conftest.$ac_ext
21493cat >>conftest.$ac_ext <<_ACEOF
21494/* end confdefs.h. */
21495#include <png.h>
21496_ACEOF
21497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } >/dev/null; then
21505 if test -s conftest.err; then
21506 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21508 else
21509 ac_cpp_err=
21510 fi
21511else
21512 ac_cpp_err=yes
21513fi
21514if test -z "$ac_cpp_err"; then
21515 ac_header_preproc=yes
21516else
21517 echo "$as_me: failed program was:" >&5
21518sed 's/^/| /' conftest.$ac_ext >&5
21519
21520 ac_header_preproc=no
21521fi
21522rm -f conftest.err conftest.$ac_ext
21523echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21524echo "${ECHO_T}$ac_header_preproc" >&6
21525
21526# So? What about this header?
ac1cb8d3
VS
21527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21528 yes:no: )
a848cd7e
SC
21529 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21530echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21531 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21532echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21533 ac_header_preproc=yes
a848cd7e 21534 ;;
ac1cb8d3 21535 no:yes:* )
a848cd7e
SC
21536 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21537echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21538 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21539echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21540 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21541echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21542 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21543echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21544 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21545echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21546 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21547echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21548 (
21549 cat <<\_ASBOX
ac1cb8d3
VS
21550## ----------------------------------------- ##
21551## Report this to wx-dev@lists.wxwidgets.org ##
21552## ----------------------------------------- ##
a848cd7e
SC
21553_ASBOX
21554 ) |
21555 sed "s/^/$as_me: WARNING: /" >&2
21556 ;;
21557esac
21558echo "$as_me:$LINENO: checking for png.h" >&5
21559echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21560if test "${ac_cv_header_png_h+set}" = set; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21562else
21563 ac_cv_header_png_h=$ac_header_preproc
21564fi
21565echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21566echo "${ECHO_T}$ac_cv_header_png_h" >&6
21567
21568fi
21569
21570
21571
21572 if test "$ac_cv_header_png_h" = "yes"; then
21573 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21574echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21575if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21577else
21578 ac_check_lib_save_LIBS=$LIBS
21579LIBS="-lpng -lz -lm $LIBS"
21580cat >conftest.$ac_ext <<_ACEOF
21581/* confdefs.h. */
21582_ACEOF
21583cat confdefs.h >>conftest.$ac_ext
21584cat >>conftest.$ac_ext <<_ACEOF
21585/* end confdefs.h. */
21586
21587/* Override any gcc2 internal prototype to avoid an error. */
21588#ifdef __cplusplus
21589extern "C"
21590#endif
21591/* We use char because int might match the return type of a gcc2
21592 builtin and then its argument prototype would still apply. */
21593char png_check_sig ();
21594int
21595main ()
21596{
21597png_check_sig ();
21598 ;
21599 return 0;
21600}
21601_ACEOF
21602rm -f conftest.$ac_objext conftest$ac_exeext
21603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21604 (eval $ac_link) 2>conftest.er1
a848cd7e 21605 ac_status=$?
ac1cb8d3
VS
21606 grep -v '^ *+' conftest.er1 >conftest.err
21607 rm -f conftest.er1
21608 cat conftest.err >&5
a848cd7e
SC
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } &&
da4486fb 21611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613 (eval $ac_try) 2>&5
21614 ac_status=$?
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; } &&
21617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21620 ac_status=$?
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; }; then
21623 ac_cv_lib_png_png_check_sig=yes
21624else
21625 echo "$as_me: failed program was:" >&5
21626sed 's/^/| /' conftest.$ac_ext >&5
21627
21628ac_cv_lib_png_png_check_sig=no
21629fi
ac1cb8d3
VS
21630rm -f conftest.err conftest.$ac_objext \
21631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21632LIBS=$ac_check_lib_save_LIBS
21633fi
21634echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21635echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21636if test $ac_cv_lib_png_png_check_sig = yes; then
21637 PNG_LINK=" -lpng -lz"
21638fi
21639
21640 fi
21641
21642 if test "x$PNG_LINK" = "x" ; then
21643 if test "$wxUSE_LIBPNG" = "sys" ; then
21644 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21645echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21646 { (exit 1); exit 1; }; }
21647 else
21648 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21649echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21650 wxUSE_LIBPNG=builtin
21651 fi
21652 else
21653 wxUSE_LIBPNG=sys
21654 fi
21655 fi
21656 fi
21657
21658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21659fi
21660
21661
21662JPEG_LINK=
21663if test "$wxUSE_LIBJPEG" != "no" ; then
21664 cat >>confdefs.h <<\_ACEOF
21665#define wxUSE_LIBJPEG 1
21666_ACEOF
21667
21668
21669 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21670 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21671echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21672 wxUSE_LIBJPEG=sys
21673 fi
21674
21675 if test "$wxUSE_MGL" != 1 ; then
21676 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21677 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21678echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21679 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21681else
21682 cat >conftest.$ac_ext <<_ACEOF
21683/* confdefs.h. */
21684_ACEOF
21685cat confdefs.h >>conftest.$ac_ext
21686cat >>conftest.$ac_ext <<_ACEOF
21687/* end confdefs.h. */
21688
21689 #undef HAVE_STDLIB_H
21690 #include <stdio.h>
21691 #include <jpeglib.h>
21692
21693int
21694main ()
21695{
21696
21697
21698 ;
21699 return 0;
21700}
21701_ACEOF
21702rm -f conftest.$ac_objext
21703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21704 (eval $ac_compile) 2>conftest.er1
a848cd7e 21705 ac_status=$?
ac1cb8d3
VS
21706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
21708 cat conftest.err >&5
a848cd7e
SC
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } &&
da4486fb 21711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; } &&
21717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 ac_cv_header_jpeglib_h=yes
21724else
21725 echo "$as_me: failed program was:" >&5
21726sed 's/^/| /' conftest.$ac_ext >&5
21727
21728ac_cv_header_jpeglib_h=no
21729
21730fi
ac1cb8d3 21731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21732
21733fi
21734
21735 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21736echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21737
21738 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21739 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21740echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21741if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21742 echo $ECHO_N "(cached) $ECHO_C" >&6
21743else
21744 ac_check_lib_save_LIBS=$LIBS
21745LIBS="-ljpeg $LIBS"
21746cat >conftest.$ac_ext <<_ACEOF
21747/* confdefs.h. */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h. */
21752
21753/* Override any gcc2 internal prototype to avoid an error. */
21754#ifdef __cplusplus
21755extern "C"
21756#endif
21757/* We use char because int might match the return type of a gcc2
21758 builtin and then its argument prototype would still apply. */
21759char jpeg_read_header ();
21760int
21761main ()
21762{
21763jpeg_read_header ();
21764 ;
21765 return 0;
21766}
21767_ACEOF
21768rm -f conftest.$ac_objext conftest$ac_exeext
21769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21770 (eval $ac_link) 2>conftest.er1
a848cd7e 21771 ac_status=$?
ac1cb8d3
VS
21772 grep -v '^ *+' conftest.er1 >conftest.err
21773 rm -f conftest.er1
21774 cat conftest.err >&5
a848cd7e
SC
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } &&
da4486fb 21777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; } &&
21783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785 (eval $ac_try) 2>&5
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; }; then
21789 ac_cv_lib_jpeg_jpeg_read_header=yes
21790else
21791 echo "$as_me: failed program was:" >&5
21792sed 's/^/| /' conftest.$ac_ext >&5
21793
21794ac_cv_lib_jpeg_jpeg_read_header=no
21795fi
ac1cb8d3
VS
21796rm -f conftest.err conftest.$ac_objext \
21797 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21798LIBS=$ac_check_lib_save_LIBS
21799fi
21800echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21801echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21802if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21803 JPEG_LINK=" -ljpeg"
21804fi
21805
21806 fi
21807
21808 if test "x$JPEG_LINK" = "x" ; then
21809 if test "$wxUSE_LIBJPEG" = "sys" ; then
21810 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21811echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21812 { (exit 1); exit 1; }; }
21813 else
21814 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21815echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21816 wxUSE_LIBJPEG=builtin
21817 fi
21818 else
21819 wxUSE_LIBJPEG=sys
21820 fi
21821 fi
21822 fi
21823fi
21824
21825
21826TIFF_LINK=
21827TIFF_PREREQ_LINKS=-lm
21828if test "$wxUSE_LIBTIFF" != "no" ; then
21829 cat >>confdefs.h <<\_ACEOF
21830#define wxUSE_LIBTIFF 1
21831_ACEOF
21832
21833
21834 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21835 if test "$wxUSE_LIBJPEG" = "sys"; then
21836 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21837 fi
21838 if test "$wxUSE_ZLIB" = "sys"; then
21839 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21840 fi
21841 if test "${ac_cv_header_tiffio_h+set}" = set; then
21842 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21843echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21844if test "${ac_cv_header_tiffio_h+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21846fi
21847echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21848echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21849else
21850 # Is the header compilable?
21851echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21852echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21853cat >conftest.$ac_ext <<_ACEOF
21854/* confdefs.h. */
21855_ACEOF
21856cat confdefs.h >>conftest.$ac_ext
21857cat >>conftest.$ac_ext <<_ACEOF
21858/* end confdefs.h. */
21859$ac_includes_default
21860#include <tiffio.h>
21861_ACEOF
21862rm -f conftest.$ac_objext
21863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21864 (eval $ac_compile) 2>conftest.er1
a848cd7e 21865 ac_status=$?
ac1cb8d3
VS
21866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
a848cd7e
SC
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } &&
da4486fb 21871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21874 ac_status=$?
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; } &&
21877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 ac_header_compiler=yes
21884else
21885 echo "$as_me: failed program was:" >&5
21886sed 's/^/| /' conftest.$ac_ext >&5
21887
21888ac_header_compiler=no
21889fi
ac1cb8d3 21890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21892echo "${ECHO_T}$ac_header_compiler" >&6
21893
21894# Is the header present?
21895echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21896echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21897cat >conftest.$ac_ext <<_ACEOF
21898/* confdefs.h. */
21899_ACEOF
21900cat confdefs.h >>conftest.$ac_ext
21901cat >>conftest.$ac_ext <<_ACEOF
21902/* end confdefs.h. */
21903#include <tiffio.h>
21904_ACEOF
21905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21907 ac_status=$?
21908 grep -v '^ *+' conftest.er1 >conftest.err
21909 rm -f conftest.er1
21910 cat conftest.err >&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } >/dev/null; then
21913 if test -s conftest.err; then
21914 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21916 else
21917 ac_cpp_err=
21918 fi
21919else
21920 ac_cpp_err=yes
21921fi
21922if test -z "$ac_cpp_err"; then
21923 ac_header_preproc=yes
21924else
21925 echo "$as_me: failed program was:" >&5
21926sed 's/^/| /' conftest.$ac_ext >&5
21927
21928 ac_header_preproc=no
21929fi
21930rm -f conftest.err conftest.$ac_ext
21931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21932echo "${ECHO_T}$ac_header_preproc" >&6
21933
21934# So? What about this header?
ac1cb8d3
VS
21935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21936 yes:no: )
a848cd7e
SC
21937 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21938echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21939 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21940echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21941 ac_header_preproc=yes
a848cd7e 21942 ;;
ac1cb8d3 21943 no:yes:* )
a848cd7e
SC
21944 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21945echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21946 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21947echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21948 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21949echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21951echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21952 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21953echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21954 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21955echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21956 (
21957 cat <<\_ASBOX
ac1cb8d3
VS
21958## ----------------------------------------- ##
21959## Report this to wx-dev@lists.wxwidgets.org ##
21960## ----------------------------------------- ##
a848cd7e
SC
21961_ASBOX
21962 ) |
21963 sed "s/^/$as_me: WARNING: /" >&2
21964 ;;
21965esac
21966echo "$as_me:$LINENO: checking for tiffio.h" >&5
21967echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21968if test "${ac_cv_header_tiffio_h+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21970else
21971 ac_cv_header_tiffio_h=$ac_header_preproc
21972fi
21973echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21974echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21975
21976fi
21977if test $ac_cv_header_tiffio_h = yes; then
21978
21979 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21980echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21981if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21982 echo $ECHO_N "(cached) $ECHO_C" >&6
21983else
21984 ac_check_lib_save_LIBS=$LIBS
21985LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21986cat >conftest.$ac_ext <<_ACEOF
21987/* confdefs.h. */
21988_ACEOF
21989cat confdefs.h >>conftest.$ac_ext
21990cat >>conftest.$ac_ext <<_ACEOF
21991/* end confdefs.h. */
21992
21993/* Override any gcc2 internal prototype to avoid an error. */
21994#ifdef __cplusplus
21995extern "C"
21996#endif
21997/* We use char because int might match the return type of a gcc2
21998 builtin and then its argument prototype would still apply. */
21999char TIFFError ();
22000int
22001main ()
22002{
22003TIFFError ();
22004 ;
22005 return 0;
22006}
22007_ACEOF
22008rm -f conftest.$ac_objext conftest$ac_exeext
22009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22010 (eval $ac_link) 2>conftest.er1
a848cd7e 22011 ac_status=$?
ac1cb8d3
VS
22012 grep -v '^ *+' conftest.er1 >conftest.err
22013 rm -f conftest.er1
22014 cat conftest.err >&5
a848cd7e
SC
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } &&
da4486fb 22017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; } &&
22023 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
22029 ac_cv_lib_tiff_TIFFError=yes
22030else
22031 echo "$as_me: failed program was:" >&5
22032sed 's/^/| /' conftest.$ac_ext >&5
22033
22034ac_cv_lib_tiff_TIFFError=no
22035fi
ac1cb8d3
VS
22036rm -f conftest.err conftest.$ac_objext \
22037 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22038LIBS=$ac_check_lib_save_LIBS
22039fi
22040echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
22041echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
22042if test $ac_cv_lib_tiff_TIFFError = yes; then
22043 TIFF_LINK=" -ltiff"
22044fi
22045
22046
22047
22048fi
22049
22050
22051
22052 if test "x$TIFF_LINK" = "x" ; then
22053 if test "$wxUSE_LIBTIFF" = "sys" ; then
22054 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
22055echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
22056 { (exit 1); exit 1; }; }
22057 else
22058 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
22059echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
22060 wxUSE_LIBTIFF=builtin
22061 fi
22062 else
22063 wxUSE_LIBTIFF=sys
22064 fi
22065 fi
22066fi
22067
22068
22069if test "$wxUSE_EXPAT" != "no"; then
22070 wxUSE_XML=yes
22071 cat >>confdefs.h <<\_ACEOF
22072#define wxUSE_EXPAT 1
22073_ACEOF
22074
22075 cat >>confdefs.h <<\_ACEOF
22076#define wxUSE_XML 1
22077_ACEOF
22078
22079
22080 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
22081 if test "${ac_cv_header_expat_h+set}" = set; then
22082 echo "$as_me:$LINENO: checking for expat.h" >&5
22083echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22084if test "${ac_cv_header_expat_h+set}" = set; then
22085 echo $ECHO_N "(cached) $ECHO_C" >&6
22086fi
22087echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22088echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22089else
22090 # Is the header compilable?
22091echo "$as_me:$LINENO: checking expat.h usability" >&5
22092echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
22093cat >conftest.$ac_ext <<_ACEOF
22094/* confdefs.h. */
22095_ACEOF
22096cat confdefs.h >>conftest.$ac_ext
22097cat >>conftest.$ac_ext <<_ACEOF
22098/* end confdefs.h. */
22099$ac_includes_default
22100#include <expat.h>
22101_ACEOF
22102rm -f conftest.$ac_objext
22103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22104 (eval $ac_compile) 2>conftest.er1
a848cd7e 22105 ac_status=$?
ac1cb8d3
VS
22106 grep -v '^ *+' conftest.er1 >conftest.err
22107 rm -f conftest.er1
22108 cat conftest.err >&5
a848cd7e
SC
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } &&
da4486fb 22111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22114 ac_status=$?
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; } &&
22117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 ac_header_compiler=yes
22124else
22125 echo "$as_me: failed program was:" >&5
22126sed 's/^/| /' conftest.$ac_ext >&5
22127
22128ac_header_compiler=no
22129fi
ac1cb8d3 22130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22132echo "${ECHO_T}$ac_header_compiler" >&6
22133
22134# Is the header present?
22135echo "$as_me:$LINENO: checking expat.h presence" >&5
22136echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
22137cat >conftest.$ac_ext <<_ACEOF
22138/* confdefs.h. */
22139_ACEOF
22140cat confdefs.h >>conftest.$ac_ext
22141cat >>conftest.$ac_ext <<_ACEOF
22142/* end confdefs.h. */
22143#include <expat.h>
22144_ACEOF
22145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22147 ac_status=$?
22148 grep -v '^ *+' conftest.er1 >conftest.err
22149 rm -f conftest.er1
22150 cat conftest.err >&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } >/dev/null; then
22153 if test -s conftest.err; then
22154 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22156 else
22157 ac_cpp_err=
22158 fi
22159else
22160 ac_cpp_err=yes
22161fi
22162if test -z "$ac_cpp_err"; then
22163 ac_header_preproc=yes
22164else
22165 echo "$as_me: failed program was:" >&5
22166sed 's/^/| /' conftest.$ac_ext >&5
22167
22168 ac_header_preproc=no
22169fi
22170rm -f conftest.err conftest.$ac_ext
22171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22172echo "${ECHO_T}$ac_header_preproc" >&6
22173
22174# So? What about this header?
ac1cb8d3
VS
22175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22176 yes:no: )
a848cd7e
SC
22177 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22178echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22179 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22180echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22181 ac_header_preproc=yes
a848cd7e 22182 ;;
ac1cb8d3 22183 no:yes:* )
a848cd7e
SC
22184 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22185echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22186 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
22187echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22189echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22190 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22191echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22192 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22193echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22194 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22195echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22196 (
22197 cat <<\_ASBOX
ac1cb8d3
VS
22198## ----------------------------------------- ##
22199## Report this to wx-dev@lists.wxwidgets.org ##
22200## ----------------------------------------- ##
a848cd7e
SC
22201_ASBOX
22202 ) |
22203 sed "s/^/$as_me: WARNING: /" >&2
22204 ;;
22205esac
22206echo "$as_me:$LINENO: checking for expat.h" >&5
22207echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22208if test "${ac_cv_header_expat_h+set}" = set; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22210else
22211 ac_cv_header_expat_h=$ac_header_preproc
22212fi
22213echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22214echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22215
22216fi
22217if test $ac_cv_header_expat_h = yes; then
22218 found_expat_h=1
22219fi
22220
22221
22222 if test "x$found_expat_h" = "x1"; then
22223 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22224echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22225if test "${wx_cv_expat_is_not_broken+set}" = set; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22227else
22228
22229
22230
22231 ac_ext=cc
22232ac_cpp='$CXXCPP $CPPFLAGS'
22233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22236
22237 cat >conftest.$ac_ext <<_ACEOF
22238/* confdefs.h. */
22239_ACEOF
22240cat confdefs.h >>conftest.$ac_ext
22241cat >>conftest.$ac_ext <<_ACEOF
22242/* end confdefs.h. */
22243#include <expat.h>
22244int
22245main ()
22246{
22247
22248 ;
22249 return 0;
22250}
22251_ACEOF
22252rm -f conftest.$ac_objext
22253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22254 (eval $ac_compile) 2>conftest.er1
a848cd7e 22255 ac_status=$?
ac1cb8d3
VS
22256 grep -v '^ *+' conftest.er1 >conftest.err
22257 rm -f conftest.er1
22258 cat conftest.err >&5
a848cd7e
SC
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } &&
da4486fb 22261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263 (eval $ac_try) 2>&5
22264 ac_status=$?
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; } &&
22267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269 (eval $ac_try) 2>&5
22270 ac_status=$?
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); }; }; then
22273 wx_cv_expat_is_not_broken=yes
22274else
22275 echo "$as_me: failed program was:" >&5
22276sed 's/^/| /' conftest.$ac_ext >&5
22277
22278wx_cv_expat_is_not_broken=no
22279
22280fi
ac1cb8d3 22281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22282 ac_ext=c
22283ac_cpp='$CPP $CPPFLAGS'
22284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22286ac_compiler_gnu=$ac_cv_c_compiler_gnu
22287
22288
22289
22290fi
22291echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22292echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22293 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22294 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22295echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22296if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22298else
22299 ac_check_lib_save_LIBS=$LIBS
22300LIBS="-lexpat $LIBS"
22301cat >conftest.$ac_ext <<_ACEOF
22302/* confdefs.h. */
22303_ACEOF
22304cat confdefs.h >>conftest.$ac_ext
22305cat >>conftest.$ac_ext <<_ACEOF
22306/* end confdefs.h. */
22307
22308/* Override any gcc2 internal prototype to avoid an error. */
22309#ifdef __cplusplus
22310extern "C"
22311#endif
22312/* We use char because int might match the return type of a gcc2
22313 builtin and then its argument prototype would still apply. */
22314char XML_ParserCreate ();
22315int
22316main ()
22317{
22318XML_ParserCreate ();
22319 ;
22320 return 0;
22321}
22322_ACEOF
22323rm -f conftest.$ac_objext conftest$ac_exeext
22324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22325 (eval $ac_link) 2>conftest.er1
a848cd7e 22326 ac_status=$?
ac1cb8d3
VS
22327 grep -v '^ *+' conftest.er1 >conftest.err
22328 rm -f conftest.er1
22329 cat conftest.err >&5
a848cd7e
SC
22330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); } &&
da4486fb 22332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22334 (eval $ac_try) 2>&5
22335 ac_status=$?
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); }; } &&
22338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22340 (eval $ac_try) 2>&5
22341 ac_status=$?
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); }; }; then
22344 ac_cv_lib_expat_XML_ParserCreate=yes
22345else
22346 echo "$as_me: failed program was:" >&5
22347sed 's/^/| /' conftest.$ac_ext >&5
22348
22349ac_cv_lib_expat_XML_ParserCreate=no
22350fi
ac1cb8d3
VS
22351rm -f conftest.err conftest.$ac_objext \
22352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22353LIBS=$ac_check_lib_save_LIBS
22354fi
22355echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22356echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22357if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22358 EXPAT_LINK=" -lexpat"
22359fi
22360
22361 fi
22362 fi
22363 if test "x$EXPAT_LINK" = "x" ; then
22364 if test "$wxUSE_EXPAT" = "sys" ; then
22365 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22366echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22367 { (exit 1); exit 1; }; }
22368 else
22369 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22370echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22371 wxUSE_EXPAT=builtin
22372 fi
22373 else
22374 wxUSE_EXPAT=sys
22375 fi
22376 fi
22377 if test "$wxUSE_EXPAT" = "builtin" ; then
22378
22379
22380subdirs="$subdirs src/expat"
22381
22382 fi
22383fi
22384
22385
22386
22387if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
22388 if test "${ac_cv_header_mspack_h+set}" = set; then
22389 echo "$as_me:$LINENO: checking for mspack.h" >&5
22390echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22391if test "${ac_cv_header_mspack_h+set}" = set; then
22392 echo $ECHO_N "(cached) $ECHO_C" >&6
22393fi
22394echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22395echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22396else
22397 # Is the header compilable?
22398echo "$as_me:$LINENO: checking mspack.h usability" >&5
22399echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22400cat >conftest.$ac_ext <<_ACEOF
22401/* confdefs.h. */
22402_ACEOF
22403cat confdefs.h >>conftest.$ac_ext
22404cat >>conftest.$ac_ext <<_ACEOF
22405/* end confdefs.h. */
22406$ac_includes_default
22407#include <mspack.h>
22408_ACEOF
22409rm -f conftest.$ac_objext
22410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22411 (eval $ac_compile) 2>conftest.er1
a848cd7e 22412 ac_status=$?
ac1cb8d3
VS
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
a848cd7e
SC
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } &&
da4486fb 22418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22421 ac_status=$?
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; } &&
22424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22427 ac_status=$?
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; }; then
22430 ac_header_compiler=yes
22431else
22432 echo "$as_me: failed program was:" >&5
22433sed 's/^/| /' conftest.$ac_ext >&5
22434
22435ac_header_compiler=no
22436fi
ac1cb8d3 22437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22439echo "${ECHO_T}$ac_header_compiler" >&6
22440
22441# Is the header present?
22442echo "$as_me:$LINENO: checking mspack.h presence" >&5
22443echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22444cat >conftest.$ac_ext <<_ACEOF
22445/* confdefs.h. */
22446_ACEOF
22447cat confdefs.h >>conftest.$ac_ext
22448cat >>conftest.$ac_ext <<_ACEOF
22449/* end confdefs.h. */
22450#include <mspack.h>
22451_ACEOF
22452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22454 ac_status=$?
22455 grep -v '^ *+' conftest.er1 >conftest.err
22456 rm -f conftest.er1
22457 cat conftest.err >&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } >/dev/null; then
22460 if test -s conftest.err; then
22461 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22463 else
22464 ac_cpp_err=
22465 fi
22466else
22467 ac_cpp_err=yes
22468fi
22469if test -z "$ac_cpp_err"; then
22470 ac_header_preproc=yes
22471else
22472 echo "$as_me: failed program was:" >&5
22473sed 's/^/| /' conftest.$ac_ext >&5
22474
22475 ac_header_preproc=no
22476fi
22477rm -f conftest.err conftest.$ac_ext
22478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22479echo "${ECHO_T}$ac_header_preproc" >&6
22480
22481# So? What about this header?
ac1cb8d3
VS
22482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22483 yes:no: )
a848cd7e
SC
22484 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22485echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22486 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22487echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22488 ac_header_preproc=yes
a848cd7e 22489 ;;
ac1cb8d3 22490 no:yes:* )
a848cd7e
SC
22491 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22492echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22493 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22494echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22495 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22496echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22497 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22498echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22499 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22500echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22501 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22502echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22503 (
22504 cat <<\_ASBOX
ac1cb8d3
VS
22505## ----------------------------------------- ##
22506## Report this to wx-dev@lists.wxwidgets.org ##
22507## ----------------------------------------- ##
a848cd7e
SC
22508_ASBOX
22509 ) |
22510 sed "s/^/$as_me: WARNING: /" >&2
22511 ;;
22512esac
22513echo "$as_me:$LINENO: checking for mspack.h" >&5
22514echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22515if test "${ac_cv_header_mspack_h+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22517else
22518 ac_cv_header_mspack_h=$ac_header_preproc
22519fi
22520echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22521echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22522
22523fi
22524if test $ac_cv_header_mspack_h = yes; then
22525 found_mspack_h=1
22526fi
22527
22528
22529 if test "x$found_mspack_h" = "x1"; then
22530 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22531echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22532if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22534else
22535 ac_check_lib_save_LIBS=$LIBS
22536LIBS="-lmspack $LIBS"
22537cat >conftest.$ac_ext <<_ACEOF
22538/* confdefs.h. */
22539_ACEOF
22540cat confdefs.h >>conftest.$ac_ext
22541cat >>conftest.$ac_ext <<_ACEOF
22542/* end confdefs.h. */
22543
22544/* Override any gcc2 internal prototype to avoid an error. */
22545#ifdef __cplusplus
22546extern "C"
22547#endif
22548/* We use char because int might match the return type of a gcc2
22549 builtin and then its argument prototype would still apply. */
22550char mspack_create_chm_decompressor ();
22551int
22552main ()
22553{
22554mspack_create_chm_decompressor ();
22555 ;
22556 return 0;
22557}
22558_ACEOF
22559rm -f conftest.$ac_objext conftest$ac_exeext
22560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22561 (eval $ac_link) 2>conftest.er1
a848cd7e 22562 ac_status=$?
ac1cb8d3
VS
22563 grep -v '^ *+' conftest.er1 >conftest.err
22564 rm -f conftest.er1
22565 cat conftest.err >&5
a848cd7e
SC
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } &&
da4486fb 22568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570 (eval $ac_try) 2>&5
22571 ac_status=$?
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; } &&
22574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22577 ac_status=$?
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; }; then
22580 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22581else
22582 echo "$as_me: failed program was:" >&5
22583sed 's/^/| /' conftest.$ac_ext >&5
22584
22585ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22586fi
ac1cb8d3
VS
22587rm -f conftest.err conftest.$ac_objext \
22588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22589LIBS=$ac_check_lib_save_LIBS
22590fi
22591echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22592echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22593if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22594 MSPACK_LINK=" -lmspack"
22595fi
22596
22597 fi
22598 if test "x$MSPACK_LINK" = "x" ; then
22599 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
22600 fi
22601fi
22602
22603if test "$wxUSE_LIBMSPACK" != "no"; then
22604 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
22605#define wxUSE_LIBMSPACK 1
22606_ACEOF
22607
a848cd7e
SC
22608fi
22609
22610
22611
22612AFMINSTALL=
22613WIN32INSTALL=
22614
22615TOOLKIT=
22616TOOLKIT_INCLUDE=
22617WIDGET_SET=
22618
22619if test "$USE_WIN32" = 1 ; then
22620
22621for ac_header in w32api.h
22622do
22623as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22624if eval "test \"\${$as_ac_Header+set}\" = set"; then
22625 echo "$as_me:$LINENO: checking for $ac_header" >&5
22626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22627if eval "test \"\${$as_ac_Header+set}\" = set"; then
22628 echo $ECHO_N "(cached) $ECHO_C" >&6
22629fi
22630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22631echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22632else
22633 # Is the header compilable?
22634echo "$as_me:$LINENO: checking $ac_header usability" >&5
22635echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22636cat >conftest.$ac_ext <<_ACEOF
22637/* confdefs.h. */
22638_ACEOF
22639cat confdefs.h >>conftest.$ac_ext
22640cat >>conftest.$ac_ext <<_ACEOF
22641/* end confdefs.h. */
22642$ac_includes_default
22643#include <$ac_header>
22644_ACEOF
22645rm -f conftest.$ac_objext
22646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22647 (eval $ac_compile) 2>conftest.er1
a848cd7e 22648 ac_status=$?
ac1cb8d3
VS
22649 grep -v '^ *+' conftest.er1 >conftest.err
22650 rm -f conftest.er1
22651 cat conftest.err >&5
a848cd7e
SC
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); } &&
da4486fb 22654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22656 (eval $ac_try) 2>&5
22657 ac_status=$?
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); }; } &&
22660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22662 (eval $ac_try) 2>&5
22663 ac_status=$?
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); }; }; then
22666 ac_header_compiler=yes
22667else
22668 echo "$as_me: failed program was:" >&5
22669sed 's/^/| /' conftest.$ac_ext >&5
22670
22671ac_header_compiler=no
22672fi
ac1cb8d3 22673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22674echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22675echo "${ECHO_T}$ac_header_compiler" >&6
22676
22677# Is the header present?
22678echo "$as_me:$LINENO: checking $ac_header presence" >&5
22679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22680cat >conftest.$ac_ext <<_ACEOF
22681/* confdefs.h. */
22682_ACEOF
22683cat confdefs.h >>conftest.$ac_ext
22684cat >>conftest.$ac_ext <<_ACEOF
22685/* end confdefs.h. */
22686#include <$ac_header>
22687_ACEOF
22688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22690 ac_status=$?
22691 grep -v '^ *+' conftest.er1 >conftest.err
22692 rm -f conftest.er1
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } >/dev/null; then
22696 if test -s conftest.err; then
22697 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22699 else
22700 ac_cpp_err=
22701 fi
22702else
22703 ac_cpp_err=yes
22704fi
22705if test -z "$ac_cpp_err"; then
22706 ac_header_preproc=yes
22707else
22708 echo "$as_me: failed program was:" >&5
22709sed 's/^/| /' conftest.$ac_ext >&5
22710
22711 ac_header_preproc=no
22712fi
22713rm -f conftest.err conftest.$ac_ext
22714echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22715echo "${ECHO_T}$ac_header_preproc" >&6
22716
22717# So? What about this header?
ac1cb8d3
VS
22718case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22719 yes:no: )
a848cd7e
SC
22720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22721echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22723echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22724 ac_header_preproc=yes
a848cd7e 22725 ;;
ac1cb8d3 22726 no:yes:* )
a848cd7e
SC
22727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22728echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22730echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22732echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22734echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22736echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22738echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22739 (
22740 cat <<\_ASBOX
ac1cb8d3
VS
22741## ----------------------------------------- ##
22742## Report this to wx-dev@lists.wxwidgets.org ##
22743## ----------------------------------------- ##
a848cd7e
SC
22744_ASBOX
22745 ) |
22746 sed "s/^/$as_me: WARNING: /" >&2
22747 ;;
22748esac
22749echo "$as_me:$LINENO: checking for $ac_header" >&5
22750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22751if eval "test \"\${$as_ac_Header+set}\" = set"; then
22752 echo $ECHO_N "(cached) $ECHO_C" >&6
22753else
ac1cb8d3 22754 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22755fi
22756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22758
22759fi
22760if test `eval echo '${'$as_ac_Header'}'` = yes; then
22761 cat >>confdefs.h <<_ACEOF
22762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22763_ACEOF
22764
22765fi
22766
22767done
22768
22769 if test "${ac_cv_header_windows_h+set}" = set; then
22770 echo "$as_me:$LINENO: checking for windows.h" >&5
22771echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22772if test "${ac_cv_header_windows_h+set}" = set; then
22773 echo $ECHO_N "(cached) $ECHO_C" >&6
22774fi
22775echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22776echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22777else
22778 # Is the header compilable?
22779echo "$as_me:$LINENO: checking windows.h usability" >&5
22780echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22781cat >conftest.$ac_ext <<_ACEOF
22782/* confdefs.h. */
22783_ACEOF
22784cat confdefs.h >>conftest.$ac_ext
22785cat >>conftest.$ac_ext <<_ACEOF
22786/* end confdefs.h. */
22787$ac_includes_default
22788#include <windows.h>
22789_ACEOF
22790rm -f conftest.$ac_objext
22791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22792 (eval $ac_compile) 2>conftest.er1
a848cd7e 22793 ac_status=$?
ac1cb8d3
VS
22794 grep -v '^ *+' conftest.er1 >conftest.err
22795 rm -f conftest.er1
22796 cat conftest.err >&5
a848cd7e
SC
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } &&
da4486fb 22799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801 (eval $ac_try) 2>&5
22802 ac_status=$?
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); }; } &&
22805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }; then
22811 ac_header_compiler=yes
22812else
22813 echo "$as_me: failed program was:" >&5
22814sed 's/^/| /' conftest.$ac_ext >&5
22815
22816ac_header_compiler=no
22817fi
ac1cb8d3 22818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22819echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22820echo "${ECHO_T}$ac_header_compiler" >&6
22821
22822# Is the header present?
22823echo "$as_me:$LINENO: checking windows.h presence" >&5
22824echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22825cat >conftest.$ac_ext <<_ACEOF
22826/* confdefs.h. */
22827_ACEOF
22828cat confdefs.h >>conftest.$ac_ext
22829cat >>conftest.$ac_ext <<_ACEOF
22830/* end confdefs.h. */
22831#include <windows.h>
22832_ACEOF
22833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22835 ac_status=$?
22836 grep -v '^ *+' conftest.er1 >conftest.err
22837 rm -f conftest.er1
22838 cat conftest.err >&5
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); } >/dev/null; then
22841 if test -s conftest.err; then
22842 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22844 else
22845 ac_cpp_err=
22846 fi
22847else
22848 ac_cpp_err=yes
22849fi
22850if test -z "$ac_cpp_err"; then
22851 ac_header_preproc=yes
22852else
22853 echo "$as_me: failed program was:" >&5
22854sed 's/^/| /' conftest.$ac_ext >&5
22855
22856 ac_header_preproc=no
22857fi
22858rm -f conftest.err conftest.$ac_ext
22859echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22860echo "${ECHO_T}$ac_header_preproc" >&6
22861
22862# So? What about this header?
ac1cb8d3
VS
22863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22864 yes:no: )
a848cd7e
SC
22865 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22866echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22867 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22868echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22869 ac_header_preproc=yes
a848cd7e 22870 ;;
ac1cb8d3 22871 no:yes:* )
a848cd7e
SC
22872 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22873echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22874 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22875echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22876 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22877echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22878 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22879echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22880 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22881echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22882 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22883echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22884 (
22885 cat <<\_ASBOX
ac1cb8d3
VS
22886## ----------------------------------------- ##
22887## Report this to wx-dev@lists.wxwidgets.org ##
22888## ----------------------------------------- ##
a848cd7e
SC
22889_ASBOX
22890 ) |
22891 sed "s/^/$as_me: WARNING: /" >&2
22892 ;;
22893esac
22894echo "$as_me:$LINENO: checking for windows.h" >&5
22895echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22896if test "${ac_cv_header_windows_h+set}" = set; then
22897 echo $ECHO_N "(cached) $ECHO_C" >&6
22898else
22899 ac_cv_header_windows_h=$ac_header_preproc
22900fi
22901echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22902echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22903
22904fi
22905if test $ac_cv_header_windows_h = yes; then
22906 :
22907else
22908
22909 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22910echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22911 { (exit 1); exit 1; }; }
22912
22913fi
22914
22915
22916
22917 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22918
22919 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22920 LIBS="$LIBS -loleacc"
22921 fi
22922
22923 case "${host}" in
22924 *-*-cygwin* )
22925 LIBS="$LIBS -lkernel32 -luser32"
22926 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22927 esac
22928
22929 if test "$wxUSE_ODBC" = "sys" ; then
22930 wxUSE_ODBC = "yes"
22931 fi
22932 if test "$wxUSE_ODBC" = "yes" ; then
22933 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22934 cat >>confdefs.h <<\_ACEOF
22935#define wxUSE_ODBC 1
22936_ACEOF
22937
22938 fi
22939
22940 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22941 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22942
22943 WIN32INSTALL=win32install
22944fi
22945
22946if test "$wxUSE_GUI" = "yes"; then
22947 USE_GUI=1
22948
22949 GUI_TK_LIBRARY=
22950
22951 WXGTK12=
22952 WXGTK127=
22953 WXGTK20=
22954 WXGPE=
22955
207bc66c
RN
22956 if test "$wxUSE_COCOA" = 1 ; then
22957 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22958 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22959echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22960 wxUSE_PRINTING_ARCHITECTURE=no
22961 fi
22962 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22963 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22964echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22965 wxUSE_DRAG_AND_DROP=no
22966 fi
22967 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22968 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22969echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22970 wxUSE_DRAGIMAGE=no
22971 fi
22972 fi
22973
a848cd7e
SC
22974 if test "$wxUSE_MSW" = 1 ; then
22975 TOOLKIT=MSW
22976 GUIDIST=MSW_DIST
22977
ceec2216 22978 case "${host}" in
a848cd7e
SC
22979 *-*-mingw32* )
22980 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22981 esac
22982 fi
22983
22984 if test "$wxUSE_GTK" = 1; then
22985 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22986echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22987
22988 gtk_version_cached=1
22989 if test "${wx_cv_lib_gtk+set}" = set; then
22990 echo $ECHO_N "(cached) $ECHO_C" >&6
22991else
22992
22993 gtk_version_cached=0
22994 echo "$as_me:$LINENO: result: " >&5
22995echo "${ECHO_T}" >&6
22996
22997 GTK_MODULES=
22998 if test "$wxUSE_THREADS" = "yes"; then
22999 GTK_MODULES=gthread
23000 fi
23001
23002 wx_cv_lib_gtk=
23003 if test "x$wxUSE_GTK2" = "xyes"; then
23004 # Check whether --enable-gtktest or --disable-gtktest was given.
23005if test "${enable_gtktest+set}" = set; then
23006 enableval="$enable_gtktest"
23007
23008else
23009 enable_gtktest=yes
23010fi;
23011
23012 pkg_config_args=gtk+-2.0
23013 for module in . $GTK_MODULES
23014 do
23015 case "$module" in
23016 gthread)
23017 pkg_config_args="$pkg_config_args gthread-2.0"
23018 ;;
23019 esac
23020 done
23021
23022 no_gtk=""
23023
23024 # Extract the first word of "pkg-config", so it can be a program name with args.
23025set dummy pkg-config; ac_word=$2
23026echo "$as_me:$LINENO: checking for $ac_word" >&5
23027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23028if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23029 echo $ECHO_N "(cached) $ECHO_C" >&6
23030else
23031 case $PKG_CONFIG in
23032 [\\/]* | ?:[\\/]*)
23033 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23034 ;;
23035 *)
23036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23037for as_dir in $PATH
23038do
23039 IFS=$as_save_IFS
23040 test -z "$as_dir" && as_dir=.
23041 for ac_exec_ext in '' $ac_executable_extensions; do
23042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23043 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23045 break 2
23046 fi
23047done
23048done
23049
23050 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23051 ;;
23052esac
23053fi
23054PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23055
23056if test -n "$PKG_CONFIG"; then
23057 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23058echo "${ECHO_T}$PKG_CONFIG" >&6
23059else
23060 echo "$as_me:$LINENO: result: no" >&5
23061echo "${ECHO_T}no" >&6
23062fi
23063
23064
23065 if test x$PKG_CONFIG != xno ; then
23066 if pkg-config --atleast-pkgconfig-version 0.7 ; then
23067 :
23068 else
c2218763 23069 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
23070 no_gtk=yes
23071 PKG_CONFIG=no
23072 fi
23073 else
23074 no_gtk=yes
23075 fi
23076
23077 min_gtk_version=2.0.0
23078 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
23079echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
23080
23081 if test x$PKG_CONFIG != xno ; then
23082 ## don't try to run the test against uninstalled libtool libs
23083 if $PKG_CONFIG --uninstalled $pkg_config_args; then
23084 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
23085 enable_gtktest=no
23086 fi
23087
23088 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
23089 :
23090 else
23091 no_gtk=yes
23092 fi
23093 fi
23094
23095 if test x"$no_gtk" = x ; then
23096 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
23097 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
23098 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23099 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23100 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23101 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23102 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23103 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23104 if test "x$enable_gtktest" = "xyes" ; then
23105 ac_save_CFLAGS="$CFLAGS"
23106 ac_save_LIBS="$LIBS"
23107 CFLAGS="$CFLAGS $GTK_CFLAGS"
23108 LIBS="$GTK_LIBS $LIBS"
23109 rm -f conf.gtktest
23110 if test "$cross_compiling" = yes; then
23111 echo $ac_n "cross compiling; assumed OK... $ac_c"
23112else
23113 cat >conftest.$ac_ext <<_ACEOF
23114/* confdefs.h. */
23115_ACEOF
23116cat confdefs.h >>conftest.$ac_ext
23117cat >>conftest.$ac_ext <<_ACEOF
23118/* end confdefs.h. */
23119
23120#include <gtk/gtk.h>
23121#include <stdio.h>
23122#include <stdlib.h>
23123
23124int
23125main ()
23126{
23127 int major, minor, micro;
23128 char *tmp_version;
23129
23130 system ("touch conf.gtktest");
23131
23132 /* HP/UX 9 (%@#!) writes to sscanf strings */
23133 tmp_version = g_strdup("$min_gtk_version");
23134 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23135 printf("%s, bad version string\n", "$min_gtk_version");
23136 exit(1);
23137 }
23138
23139 if ((gtk_major_version != $gtk_config_major_version) ||
23140 (gtk_minor_version != $gtk_config_minor_version) ||
23141 (gtk_micro_version != $gtk_config_micro_version))
23142 {
23143 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23144 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23145 gtk_major_version, gtk_minor_version, gtk_micro_version);
23146 printf ("*** was found! If pkg-config was correct, then it is best\n");
23147 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23148 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23149 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23150 printf("*** required on your system.\n");
23151 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
23152 printf("*** to point to the correct configuration files\n");
23153 }
23154 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23155 (gtk_minor_version != GTK_MINOR_VERSION) ||
23156 (gtk_micro_version != GTK_MICRO_VERSION))
23157 {
23158 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23159 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23160 printf("*** library (version %d.%d.%d)\n",
23161 gtk_major_version, gtk_minor_version, gtk_micro_version);
23162 }
23163 else
23164 {
23165 if ((gtk_major_version > major) ||
23166 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23167 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23168 {
23169 return 0;
23170 }
23171 else
23172 {
23173 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23174 gtk_major_version, gtk_minor_version, gtk_micro_version);
23175 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23176 major, minor, micro);
23177 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23178 printf("***\n");
23179 printf("*** If you have already installed a sufficiently new version, this error\n");
23180 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
23181 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23182 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
23183 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
23184 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23185 printf("*** so that the correct libraries are found at run-time))\n");
23186 }
23187 }
23188 return 1;
23189}
23190
23191_ACEOF
23192rm -f conftest$ac_exeext
23193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23194 (eval $ac_link) 2>&5
23195 ac_status=$?
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199 (eval $ac_try) 2>&5
23200 ac_status=$?
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); }; }; then
23203 :
23204else
23205 echo "$as_me: program exited with status $ac_status" >&5
23206echo "$as_me: failed program was:" >&5
23207sed 's/^/| /' conftest.$ac_ext >&5
23208
23209( exit $ac_status )
23210no_gtk=yes
23211fi
ac1cb8d3 23212rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23213fi
23214 CFLAGS="$ac_save_CFLAGS"
23215 LIBS="$ac_save_LIBS"
23216 fi
23217 fi
23218 if test "x$no_gtk" = x ; then
23219 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23220echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23221 wx_cv_lib_gtk=2.0
23222 else
23223 echo "$as_me:$LINENO: result: no" >&5
23224echo "${ECHO_T}no" >&6
23225 if test "$PKG_CONFIG" = "no" ; then
23226 echo "*** A new enough version of pkg-config was not found."
23227 echo "*** See http://pkgconfig.sourceforge.net"
23228 else
23229 if test -f conf.gtktest ; then
23230 :
23231 else
23232 echo "*** Could not run GTK+ test program, checking why..."
23233 ac_save_CFLAGS="$CFLAGS"
23234 ac_save_LIBS="$LIBS"
23235 CFLAGS="$CFLAGS $GTK_CFLAGS"
23236 LIBS="$LIBS $GTK_LIBS"
23237 cat >conftest.$ac_ext <<_ACEOF
23238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
23243
23244#include <gtk/gtk.h>
23245#include <stdio.h>
23246
23247int
23248main ()
23249{
23250 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23251 ;
23252 return 0;
23253}
23254_ACEOF
23255rm -f conftest.$ac_objext conftest$ac_exeext
23256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23257 (eval $ac_link) 2>conftest.er1
a848cd7e 23258 ac_status=$?
ac1cb8d3
VS
23259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
a848cd7e
SC
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } &&
da4486fb 23264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266 (eval $ac_try) 2>&5
23267 ac_status=$?
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); }; } &&
23270 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272 (eval $ac_try) 2>&5
23273 ac_status=$?
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); }; }; then
23276 echo "*** The test program compiled, but did not run. This usually means"
23277 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23278 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23279 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23280 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23281 echo "*** is required on your system"
23282 echo "***"
23283 echo "*** If you have an old version installed, it is best to remove it, although"
23284 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23285else
23286 echo "$as_me: failed program was:" >&5
23287sed 's/^/| /' conftest.$ac_ext >&5
23288
23289 echo "*** The test program failed to compile or link. See the file config.log for the"
23290 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23291fi
ac1cb8d3
VS
23292rm -f conftest.err conftest.$ac_objext \
23293 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23294 CFLAGS="$ac_save_CFLAGS"
23295 LIBS="$ac_save_LIBS"
23296 fi
23297 fi
23298 GTK_CFLAGS=""
23299 GTK_LIBS=""
23300 :
23301 fi
23302
23303
23304 rm -f conf.gtktest
23305
23306 else
23307
23308# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23309if test "${with_gtk_prefix+set}" = set; then
23310 withval="$with_gtk_prefix"
23311 gtk_config_prefix="$withval"
23312else
23313 gtk_config_prefix=""
23314fi;
23315
23316# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23317if test "${with_gtk_exec_prefix+set}" = set; then
23318 withval="$with_gtk_exec_prefix"
23319 gtk_config_exec_prefix="$withval"
23320else
23321 gtk_config_exec_prefix=""
23322fi;
23323# Check whether --enable-gtktest or --disable-gtktest was given.
23324if test "${enable_gtktest+set}" = set; then
23325 enableval="$enable_gtktest"
23326
23327else
23328 enable_gtktest=yes
23329fi;
23330
23331 for module in . $GTK_MODULES
23332 do
23333 case "$module" in
23334 gthread)
23335 gtk_config_args="$gtk_config_args gthread"
23336 ;;
23337 esac
23338 done
23339
23340 if test x$gtk_config_exec_prefix != x ; then
23341 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23342 if test x${GTK_CONFIG+set} != xset ; then
23343 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23344 fi
23345 fi
23346 if test x$gtk_config_prefix != x ; then
23347 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23348 if test x${GTK_CONFIG+set} != xset ; then
23349 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23350 fi
23351 fi
23352
23353 # Extract the first word of "gtk-config", so it can be a program name with args.
23354set dummy gtk-config; ac_word=$2
23355echo "$as_me:$LINENO: checking for $ac_word" >&5
23356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23357if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23358 echo $ECHO_N "(cached) $ECHO_C" >&6
23359else
23360 case $GTK_CONFIG in
23361 [\\/]* | ?:[\\/]*)
23362 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23363 ;;
23364 *)
23365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23366for as_dir in $PATH
23367do
23368 IFS=$as_save_IFS
23369 test -z "$as_dir" && as_dir=.
23370 for ac_exec_ext in '' $ac_executable_extensions; do
23371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23372 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23374 break 2
23375 fi
23376done
23377done
23378
23379 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23380 ;;
23381esac
23382fi
23383GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23384
23385if test -n "$GTK_CONFIG"; then
23386 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23387echo "${ECHO_T}$GTK_CONFIG" >&6
23388else
23389 echo "$as_me:$LINENO: result: no" >&5
23390echo "${ECHO_T}no" >&6
23391fi
23392
23393 min_gtk_version=1.2.7
23394 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23395echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23396 no_gtk=""
23397 if test "$GTK_CONFIG" = "no" ; then
23398 no_gtk=yes
23399 else
23400 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23401 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23402 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23403 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23404 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23405 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23406 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23407 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23408 if test "x$enable_gtktest" = "xyes" ; then
23409 ac_save_CFLAGS="$CFLAGS"
23410 ac_save_LIBS="$LIBS"
23411 CFLAGS="$CFLAGS $GTK_CFLAGS"
23412 LIBS="$GTK_LIBS $LIBS"
23413 rm -f conf.gtktest
23414 if test "$cross_compiling" = yes; then
23415 echo $ac_n "cross compiling; assumed OK... $ac_c"
23416else
23417 cat >conftest.$ac_ext <<_ACEOF
23418/* confdefs.h. */
23419_ACEOF
23420cat confdefs.h >>conftest.$ac_ext
23421cat >>conftest.$ac_ext <<_ACEOF
23422/* end confdefs.h. */
23423
23424#include <gtk/gtk.h>
23425#include <stdio.h>
23426#include <stdlib.h>
23427
23428int
23429main ()
23430{
23431 int major, minor, micro;
23432 char *tmp_version;
23433
23434 system ("touch conf.gtktest");
23435
23436 /* HP/UX 9 (%@#!) writes to sscanf strings */
23437 tmp_version = g_strdup("$min_gtk_version");
23438 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23439 printf("%s, bad version string\n", "$min_gtk_version");
23440 exit(1);
23441 }
23442
23443 if ((gtk_major_version != $gtk_config_major_version) ||
23444 (gtk_minor_version != $gtk_config_minor_version) ||
23445 (gtk_micro_version != $gtk_config_micro_version))
23446 {
23447 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23448 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23449 gtk_major_version, gtk_minor_version, gtk_micro_version);
23450 printf ("*** was found! If gtk-config was correct, then it is best\n");
23451 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23452 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23453 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23454 printf("*** required on your system.\n");
23455 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23456 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23457 printf("*** before re-running configure\n");
23458 }
23459#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23460 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23461 (gtk_minor_version != GTK_MINOR_VERSION) ||
23462 (gtk_micro_version != GTK_MICRO_VERSION))
23463 {
23464 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23465 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23466 printf("*** library (version %d.%d.%d)\n",
23467 gtk_major_version, gtk_minor_version, gtk_micro_version);
23468 }
23469#endif /* defined (GTK_MAJOR_VERSION) ... */
23470 else
23471 {
23472 if ((gtk_major_version > major) ||
23473 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23474 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23475 {
23476 return 0;
23477 }
23478 else
23479 {
23480 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23481 gtk_major_version, gtk_minor_version, gtk_micro_version);
23482 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23483 major, minor, micro);
23484 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23485 printf("***\n");
23486 printf("*** If you have already installed a sufficiently new version, this error\n");
23487 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23488 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23489 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23490 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23491 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23492 printf("*** so that the correct libraries are found at run-time))\n");
23493 }
23494 }
23495 return 1;
23496}
23497
23498_ACEOF
23499rm -f conftest$ac_exeext
23500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23501 (eval $ac_link) 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; }; then
23510 :
23511else
23512 echo "$as_me: program exited with status $ac_status" >&5
23513echo "$as_me: failed program was:" >&5
23514sed 's/^/| /' conftest.$ac_ext >&5
23515
23516( exit $ac_status )
23517no_gtk=yes
23518fi
ac1cb8d3 23519rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23520fi
23521 CFLAGS="$ac_save_CFLAGS"
23522 LIBS="$ac_save_LIBS"
23523 fi
23524 fi
23525 if test "x$no_gtk" = x ; then
23526 echo "$as_me:$LINENO: result: yes" >&5
23527echo "${ECHO_T}yes" >&6
23528 wx_cv_lib_gtk=1.2.7
23529 else
23530 echo "$as_me:$LINENO: result: no" >&5
23531echo "${ECHO_T}no" >&6
23532 if test "$GTK_CONFIG" = "no" ; then
23533 echo "*** The gtk-config script installed by GTK could not be found"
23534 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23535 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23536 echo "*** full path to gtk-config."
23537 else
23538 if test -f conf.gtktest ; then
23539 :
23540 else
23541 echo "*** Could not run GTK test program, checking why..."
23542 CFLAGS="$CFLAGS $GTK_CFLAGS"
23543 LIBS="$LIBS $GTK_LIBS"
23544 cat >conftest.$ac_ext <<_ACEOF
23545/* confdefs.h. */
23546_ACEOF
23547cat confdefs.h >>conftest.$ac_ext
23548cat >>conftest.$ac_ext <<_ACEOF
23549/* end confdefs.h. */
23550
23551#include <gtk/gtk.h>
23552#include <stdio.h>
23553
23554int
23555main ()
23556{
23557 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23558 ;
23559 return 0;
23560}
23561_ACEOF
23562rm -f conftest.$ac_objext conftest$ac_exeext
23563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23564 (eval $ac_link) 2>conftest.er1
a848cd7e 23565 ac_status=$?
ac1cb8d3
VS
23566 grep -v '^ *+' conftest.er1 >conftest.err
23567 rm -f conftest.er1
23568 cat conftest.err >&5
a848cd7e
SC
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } &&
da4486fb 23571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23573 (eval $ac_try) 2>&5
23574 ac_status=$?
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); }; } &&
23577 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23579 (eval $ac_try) 2>&5
23580 ac_status=$?
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); }; }; then
23583 echo "*** The test program compiled, but did not run. This usually means"
23584 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23585 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23586 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23587 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23588 echo "*** is required on your system"
23589 echo "***"
23590 echo "*** If you have an old version installed, it is best to remove it, although"
23591 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23592 echo "***"
23593 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23594 echo "*** came with the system with the command"
23595 echo "***"
23596 echo "*** rpm --erase --nodeps gtk gtk-devel"
23597else
23598 echo "$as_me: failed program was:" >&5
23599sed 's/^/| /' conftest.$ac_ext >&5
23600
23601 echo "*** The test program failed to compile or link. See the file config.log for the"
23602 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23603 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23604 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23605fi
ac1cb8d3
VS
23606rm -f conftest.err conftest.$ac_objext \
23607 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23608 CFLAGS="$ac_save_CFLAGS"
23609 LIBS="$ac_save_LIBS"
23610 fi
23611 fi
23612 GTK_CFLAGS=""
23613 GTK_LIBS=""
23614 :
23615 fi
23616
23617
23618 rm -f conf.gtktest
23619
23620
23621 if test -z "$wx_cv_lib_gtk"; then
23622
23623# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23624if test "${with_gtk_prefix+set}" = set; then
23625 withval="$with_gtk_prefix"
23626 gtk_config_prefix="$withval"
23627else
23628 gtk_config_prefix=""
23629fi;
23630
23631# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23632if test "${with_gtk_exec_prefix+set}" = set; then
23633 withval="$with_gtk_exec_prefix"
23634 gtk_config_exec_prefix="$withval"
23635else
23636 gtk_config_exec_prefix=""
23637fi;
23638# Check whether --enable-gtktest or --disable-gtktest was given.
23639if test "${enable_gtktest+set}" = set; then
23640 enableval="$enable_gtktest"
23641
23642else
23643 enable_gtktest=yes
23644fi;
23645
23646 for module in . $GTK_MODULES
23647 do
23648 case "$module" in
23649 gthread)
23650 gtk_config_args="$gtk_config_args gthread"
23651 ;;
23652 esac
23653 done
23654
23655 if test x$gtk_config_exec_prefix != x ; then
23656 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23657 if test x${GTK_CONFIG+set} != xset ; then
23658 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23659 fi
23660 fi
23661 if test x$gtk_config_prefix != x ; then
23662 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23663 if test x${GTK_CONFIG+set} != xset ; then
23664 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23665 fi
23666 fi
23667
23668 # Extract the first word of "gtk-config", so it can be a program name with args.
23669set dummy gtk-config; ac_word=$2
23670echo "$as_me:$LINENO: checking for $ac_word" >&5
23671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23672if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23673 echo $ECHO_N "(cached) $ECHO_C" >&6
23674else
23675 case $GTK_CONFIG in
23676 [\\/]* | ?:[\\/]*)
23677 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23678 ;;
23679 *)
23680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23681for as_dir in $PATH
23682do
23683 IFS=$as_save_IFS
23684 test -z "$as_dir" && as_dir=.
23685 for ac_exec_ext in '' $ac_executable_extensions; do
23686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23687 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23689 break 2
23690 fi
23691done
23692done
23693
23694 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23695 ;;
23696esac
23697fi
23698GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23699
23700if test -n "$GTK_CONFIG"; then
23701 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23702echo "${ECHO_T}$GTK_CONFIG" >&6
23703else
23704 echo "$as_me:$LINENO: result: no" >&5
23705echo "${ECHO_T}no" >&6
23706fi
23707
23708 min_gtk_version=1.2.3
23709 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23710echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23711 no_gtk=""
23712 if test "$GTK_CONFIG" = "no" ; then
23713 no_gtk=yes
23714 else
23715 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23716 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23717 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23718 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23719 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23720 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23721 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23722 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23723 if test "x$enable_gtktest" = "xyes" ; then
23724 ac_save_CFLAGS="$CFLAGS"
23725 ac_save_LIBS="$LIBS"
23726 CFLAGS="$CFLAGS $GTK_CFLAGS"
23727 LIBS="$GTK_LIBS $LIBS"
23728 rm -f conf.gtktest
23729 if test "$cross_compiling" = yes; then
23730 echo $ac_n "cross compiling; assumed OK... $ac_c"
23731else
23732 cat >conftest.$ac_ext <<_ACEOF
23733/* confdefs.h. */
23734_ACEOF
23735cat confdefs.h >>conftest.$ac_ext
23736cat >>conftest.$ac_ext <<_ACEOF
23737/* end confdefs.h. */
23738
23739#include <gtk/gtk.h>
23740#include <stdio.h>
23741#include <stdlib.h>
23742
23743int
23744main ()
23745{
23746 int major, minor, micro;
23747 char *tmp_version;
23748
23749 system ("touch conf.gtktest");
23750
23751 /* HP/UX 9 (%@#!) writes to sscanf strings */
23752 tmp_version = g_strdup("$min_gtk_version");
23753 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23754 printf("%s, bad version string\n", "$min_gtk_version");
23755 exit(1);
23756 }
23757
23758 if ((gtk_major_version != $gtk_config_major_version) ||
23759 (gtk_minor_version != $gtk_config_minor_version) ||
23760 (gtk_micro_version != $gtk_config_micro_version))
23761 {
23762 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23763 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23764 gtk_major_version, gtk_minor_version, gtk_micro_version);
23765 printf ("*** was found! If gtk-config was correct, then it is best\n");
23766 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23767 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23768 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23769 printf("*** required on your system.\n");
23770 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23771 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23772 printf("*** before re-running configure\n");
23773 }
23774#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23775 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23776 (gtk_minor_version != GTK_MINOR_VERSION) ||
23777 (gtk_micro_version != GTK_MICRO_VERSION))
23778 {
23779 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23780 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23781 printf("*** library (version %d.%d.%d)\n",
23782 gtk_major_version, gtk_minor_version, gtk_micro_version);
23783 }
23784#endif /* defined (GTK_MAJOR_VERSION) ... */
23785 else
23786 {
23787 if ((gtk_major_version > major) ||
23788 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23789 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23790 {
23791 return 0;
23792 }
23793 else
23794 {
23795 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23796 gtk_major_version, gtk_minor_version, gtk_micro_version);
23797 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23798 major, minor, micro);
23799 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23800 printf("***\n");
23801 printf("*** If you have already installed a sufficiently new version, this error\n");
23802 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23803 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23804 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23805 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23806 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23807 printf("*** so that the correct libraries are found at run-time))\n");
23808 }
23809 }
23810 return 1;
23811}
23812
23813_ACEOF
23814rm -f conftest$ac_exeext
23815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23816 (eval $ac_link) 2>&5
23817 ac_status=$?
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821 (eval $ac_try) 2>&5
23822 ac_status=$?
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); }; }; then
23825 :
23826else
23827 echo "$as_me: program exited with status $ac_status" >&5
23828echo "$as_me: failed program was:" >&5
23829sed 's/^/| /' conftest.$ac_ext >&5
23830
23831( exit $ac_status )
23832no_gtk=yes
23833fi
ac1cb8d3 23834rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23835fi
23836 CFLAGS="$ac_save_CFLAGS"
23837 LIBS="$ac_save_LIBS"
23838 fi
23839 fi
23840 if test "x$no_gtk" = x ; then
23841 echo "$as_me:$LINENO: result: yes" >&5
23842echo "${ECHO_T}yes" >&6
23843 wx_cv_lib_gtk=1.2.3
23844 else
23845 echo "$as_me:$LINENO: result: no" >&5
23846echo "${ECHO_T}no" >&6
23847 if test "$GTK_CONFIG" = "no" ; then
23848 echo "*** The gtk-config script installed by GTK could not be found"
23849 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23850 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23851 echo "*** full path to gtk-config."
23852 else
23853 if test -f conf.gtktest ; then
23854 :
23855 else
23856 echo "*** Could not run GTK test program, checking why..."
23857 CFLAGS="$CFLAGS $GTK_CFLAGS"
23858 LIBS="$LIBS $GTK_LIBS"
23859 cat >conftest.$ac_ext <<_ACEOF
23860/* confdefs.h. */
23861_ACEOF
23862cat confdefs.h >>conftest.$ac_ext
23863cat >>conftest.$ac_ext <<_ACEOF
23864/* end confdefs.h. */
23865
23866#include <gtk/gtk.h>
23867#include <stdio.h>
23868
23869int
23870main ()
23871{
23872 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23873 ;
23874 return 0;
23875}
23876_ACEOF
23877rm -f conftest.$ac_objext conftest$ac_exeext
23878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23879 (eval $ac_link) 2>conftest.er1
a848cd7e 23880 ac_status=$?
ac1cb8d3
VS
23881 grep -v '^ *+' conftest.er1 >conftest.err
23882 rm -f conftest.er1
23883 cat conftest.err >&5
a848cd7e
SC
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); } &&
da4486fb 23886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; } &&
23892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23895 ac_status=$?
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; }; then
23898 echo "*** The test program compiled, but did not run. This usually means"
23899 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23900 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23901 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23902 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23903 echo "*** is required on your system"
23904 echo "***"
23905 echo "*** If you have an old version installed, it is best to remove it, although"
23906 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23907 echo "***"
23908 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23909 echo "*** came with the system with the command"
23910 echo "***"
23911 echo "*** rpm --erase --nodeps gtk gtk-devel"
23912else
23913 echo "$as_me: failed program was:" >&5
23914sed 's/^/| /' conftest.$ac_ext >&5
23915
23916 echo "*** The test program failed to compile or link. See the file config.log for the"
23917 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23918 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23919 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23920fi
ac1cb8d3
VS
23921rm -f conftest.err conftest.$ac_objext \
23922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23923 CFLAGS="$ac_save_CFLAGS"
23924 LIBS="$ac_save_LIBS"
23925 fi
23926 fi
23927 GTK_CFLAGS=""
23928 GTK_LIBS=""
23929 :
23930 fi
23931
23932
23933 rm -f conf.gtktest
23934
23935 fi
23936 fi
23937
23938 if test -z "$wx_cv_lib_gtk"; then
23939 wx_cv_lib_gtk=none
23940 else
23941 wx_cv_cflags_gtk=$GTK_CFLAGS
23942 wx_cv_libs_gtk=$GTK_LIBS
23943 fi
23944
23945
23946fi
23947
23948
23949 if test "$gtk_version_cached" = 1; then
23950 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23951echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23952 fi
23953
23954 case "$wx_cv_lib_gtk" in
23955 2.0) WXGTK20=1
23956 TOOLKIT_VERSION=2
23957 ;;
23958 1.2.7) WXGTK127=1
23959 WXGTK12=1
23960 ;;
23961 1.2.3) WXGTK12=1
23962 ;;
23963 *) { { echo "$as_me:$LINENO: error:
23964Please check that gtk-config is in path, the directory
23965where GTK+ libraries are installed (returned by
23966'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23967equivalent variable and GTK+ is version 1.2.3 or above.
23968 " >&5
23969echo "$as_me: error:
23970Please check that gtk-config is in path, the directory
23971where GTK+ libraries are installed (returned by
23972'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23973equivalent variable and GTK+ is version 1.2.3 or above.
23974 " >&2;}
23975 { (exit 1); exit 1; }; }
23976 ;;
23977 esac
23978
23979 if test "$WXGTK20" = 1; then
304205f1
VS
23980 save_CFLAGS="$CFLAGS"
23981 save_LIBS="$LIBS"
23982 CFLAGS="$CFLAGS $GTK_CFLAGS"
23983 LIBS="$LIBS $GTK_LIBS"
23984
9755e73b 23985
304205f1
VS
23986for ac_func in pango_font_family_is_monospace
23987do
23988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23989echo "$as_me:$LINENO: checking for $ac_func" >&5
23990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23991if eval "test \"\${$as_ac_var+set}\" = set"; then
23992 echo $ECHO_N "(cached) $ECHO_C" >&6
23993else
23994 cat >conftest.$ac_ext <<_ACEOF
23995/* confdefs.h. */
23996_ACEOF
23997cat confdefs.h >>conftest.$ac_ext
23998cat >>conftest.$ac_ext <<_ACEOF
23999/* end confdefs.h. */
24000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24002#define $ac_func innocuous_$ac_func
24003
24004/* System header to define __stub macros and hopefully few prototypes,
24005 which can conflict with char $ac_func (); below.
24006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24007 <limits.h> exists even on freestanding compilers. */
24008
24009#ifdef __STDC__
24010# include <limits.h>
24011#else
24012# include <assert.h>
24013#endif
24014
24015#undef $ac_func
24016
24017/* Override any gcc2 internal prototype to avoid an error. */
24018#ifdef __cplusplus
24019extern "C"
24020{
24021#endif
24022/* We use char because int might match the return type of a gcc2
24023 builtin and then its argument prototype would still apply. */
24024char $ac_func ();
24025/* The GNU C library defines this for functions which it implements
24026 to always fail with ENOSYS. Some functions are actually named
24027 something starting with __ and the normal name is an alias. */
24028#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24029choke me
24030#else
24031char (*f) () = $ac_func;
24032#endif
24033#ifdef __cplusplus
24034}
24035#endif
24036
24037int
24038main ()
24039{
24040return f != $ac_func;
24041 ;
24042 return 0;
24043}
24044_ACEOF
24045rm -f conftest.$ac_objext conftest$ac_exeext
24046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24047 (eval $ac_link) 2>conftest.er1
24048 ac_status=$?
24049 grep -v '^ *+' conftest.er1 >conftest.err
24050 rm -f conftest.er1
24051 cat conftest.err >&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } &&
da4486fb 24054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
24055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056 (eval $ac_try) 2>&5
24057 ac_status=$?
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); }; } &&
24060 { ac_try='test -s conftest$ac_exeext'
24061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062 (eval $ac_try) 2>&5
24063 ac_status=$?
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); }; }; then
24066 eval "$as_ac_var=yes"
24067else
24068 echo "$as_me: failed program was:" >&5
24069sed 's/^/| /' conftest.$ac_ext >&5
24070
24071eval "$as_ac_var=no"
24072fi
24073rm -f conftest.err conftest.$ac_objext \
24074 conftest$ac_exeext conftest.$ac_ext
24075fi
24076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24077echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24078if test `eval echo '${'$as_ac_var'}'` = yes; then
24079 cat >>confdefs.h <<_ACEOF
24080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24081_ACEOF
24082
24083fi
24084done
24085
9755e73b
VS
24086
24087 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
24088echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
24089 cat >conftest.$ac_ext <<_ACEOF
24090/* confdefs.h. */
24091_ACEOF
24092cat confdefs.h >>conftest.$ac_ext
24093cat >>conftest.$ac_ext <<_ACEOF
24094/* end confdefs.h. */
24095
24096 #include <gtk/gtk.h>
24097
24098int
24099main ()
24100{
24101
24102 #if !GTK_CHECK_VERSION(2,4,0)
24103 #error "Not GTK+ 2.4"
24104 #endif
24105
24106 ;
24107 return 0;
24108}
24109_ACEOF
24110rm -f conftest.$ac_objext
24111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24112 (eval $ac_compile) 2>conftest.er1
24113 ac_status=$?
24114 grep -v '^ *+' conftest.er1 >conftest.err
24115 rm -f conftest.er1
24116 cat conftest.err >&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } &&
da4486fb 24119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
24120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121 (eval $ac_try) 2>&5
24122 ac_status=$?
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); }; } &&
24125 { ac_try='test -s conftest.$ac_objext'
24126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127 (eval $ac_try) 2>&5
24128 ac_status=$?
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); }; }; then
24131
24132 cat >>confdefs.h <<\_ACEOF
24133#define __WXGTK24__ 1
24134_ACEOF
24135
24136 echo "$as_me:$LINENO: result: yes" >&5
24137echo "${ECHO_T}yes" >&6
24138
24139else
24140 echo "$as_me: failed program was:" >&5
24141sed 's/^/| /' conftest.$ac_ext >&5
24142
24143
24144 echo "$as_me:$LINENO: result: no" >&5
24145echo "${ECHO_T}no" >&6
24146
24147fi
24148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24149
304205f1
VS
24150 CFLAGS="$save_CFLAGS"
24151 LIBS="$save_LIBS"
a848cd7e
SC
24152 else
24153 if test "$wxUSE_UNICODE" = "yes"; then
24154 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
24155echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
24156 wxUSE_UNICODE=no
24157 fi
24158 fi
24159
24160 if test "$USE_DARWIN" != 1; then
24161
24162for ac_func in poll
24163do
24164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24165echo "$as_me:$LINENO: checking for $ac_func" >&5
24166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24167if eval "test \"\${$as_ac_var+set}\" = set"; then
24168 echo $ECHO_N "(cached) $ECHO_C" >&6
24169else
24170 cat >conftest.$ac_ext <<_ACEOF
24171/* confdefs.h. */
24172_ACEOF
24173cat confdefs.h >>conftest.$ac_ext
24174cat >>conftest.$ac_ext <<_ACEOF
24175/* end confdefs.h. */
ac1cb8d3
VS
24176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24178#define $ac_func innocuous_$ac_func
24179
a848cd7e
SC
24180/* System header to define __stub macros and hopefully few prototypes,
24181 which can conflict with char $ac_func (); below.
24182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24183 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24184
a848cd7e
SC
24185#ifdef __STDC__
24186# include <limits.h>
24187#else
24188# include <assert.h>
24189#endif
ac1cb8d3
VS
24190
24191#undef $ac_func
24192
a848cd7e
SC
24193/* Override any gcc2 internal prototype to avoid an error. */
24194#ifdef __cplusplus
24195extern "C"
24196{
24197#endif
24198/* We use char because int might match the return type of a gcc2
24199 builtin and then its argument prototype would still apply. */
24200char $ac_func ();
24201/* The GNU C library defines this for functions which it implements
24202 to always fail with ENOSYS. Some functions are actually named
24203 something starting with __ and the normal name is an alias. */
24204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24205choke me
24206#else
24207char (*f) () = $ac_func;
24208#endif
24209#ifdef __cplusplus
24210}
24211#endif
24212
24213int
24214main ()
24215{
24216return f != $ac_func;
24217 ;
24218 return 0;
24219}
24220_ACEOF
24221rm -f conftest.$ac_objext conftest$ac_exeext
24222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24223 (eval $ac_link) 2>conftest.er1
a848cd7e 24224 ac_status=$?
ac1cb8d3
VS
24225 grep -v '^ *+' conftest.er1 >conftest.err
24226 rm -f conftest.er1
24227 cat conftest.err >&5
a848cd7e
SC
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); } &&
da4486fb 24230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24232 (eval $ac_try) 2>&5
24233 ac_status=$?
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); }; } &&
24236 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238 (eval $ac_try) 2>&5
24239 ac_status=$?
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); }; }; then
24242 eval "$as_ac_var=yes"
24243else
24244 echo "$as_me: failed program was:" >&5
24245sed 's/^/| /' conftest.$ac_ext >&5
24246
24247eval "$as_ac_var=no"
24248fi
ac1cb8d3
VS
24249rm -f conftest.err conftest.$ac_objext \
24250 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24251fi
24252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24253echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24254if test `eval echo '${'$as_ac_var'}'` = yes; then
24255 cat >>confdefs.h <<_ACEOF
24256#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24257_ACEOF
24258
24259fi
24260done
24261
24262 fi
24263
24264 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24265 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24266
24267 AFMINSTALL=afminstall
24268 TOOLKIT=GTK
24269 GUIDIST=GTK_DIST
24270
24271 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24272echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24273if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24275else
24276 ac_check_lib_save_LIBS=$LIBS
24277LIBS="-lgdk $LIBS"
24278cat >conftest.$ac_ext <<_ACEOF
24279/* confdefs.h. */
24280_ACEOF
24281cat confdefs.h >>conftest.$ac_ext
24282cat >>conftest.$ac_ext <<_ACEOF
24283/* end confdefs.h. */
24284
24285/* Override any gcc2 internal prototype to avoid an error. */
24286#ifdef __cplusplus
24287extern "C"
24288#endif
24289/* We use char because int might match the return type of a gcc2
24290 builtin and then its argument prototype would still apply. */
24291char gdk_im_open ();
24292int
24293main ()
24294{
24295gdk_im_open ();
24296 ;
24297 return 0;
24298}
24299_ACEOF
24300rm -f conftest.$ac_objext conftest$ac_exeext
24301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24302 (eval $ac_link) 2>conftest.er1
a848cd7e 24303 ac_status=$?
ac1cb8d3
VS
24304 grep -v '^ *+' conftest.er1 >conftest.err
24305 rm -f conftest.er1
24306 cat conftest.err >&5
a848cd7e
SC
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); } &&
da4486fb 24309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311 (eval $ac_try) 2>&5
24312 ac_status=$?
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); }; } &&
24315 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24317 (eval $ac_try) 2>&5
24318 ac_status=$?
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); }; }; then
24321 ac_cv_lib_gdk_gdk_im_open=yes
24322else
24323 echo "$as_me: failed program was:" >&5
24324sed 's/^/| /' conftest.$ac_ext >&5
24325
24326ac_cv_lib_gdk_gdk_im_open=no
24327fi
ac1cb8d3
VS
24328rm -f conftest.err conftest.$ac_objext \
24329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24330LIBS=$ac_check_lib_save_LIBS
24331fi
24332echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24333echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24334if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24335 cat >>confdefs.h <<\_ACEOF
24336#define HAVE_XIM 1
24337_ACEOF
24338
24339fi
24340
24341
24342
24343 if test "$wxUSE_GPE" = "yes"; then
24344 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24345echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24346
24347ac_find_libraries=
24348for ac_dir in $SEARCH_LIB /usr/lib;
24349 do
24350 for ac_extension in a so sl dylib; do
24351 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24352 ac_find_libraries=$ac_dir
24353 break 2
24354 fi
24355 done
24356 done
24357
24358 if test "$ac_find_libraries" != "" ; then
24359
24360 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24361 result=$?
24362 if test $result = 0; then
24363 ac_path_to_link=""
24364 else
24365 ac_path_to_link=" -L$ac_find_libraries"
24366 fi
24367
24368 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24369 WXGPE=1
24370 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24371echo "${ECHO_T}found at $ac_find_libraries" >&6
24372 else
24373 echo "$as_me:$LINENO: result: not found" >&5
24374echo "${ECHO_T}not found" >&6
24375 fi
24376
24377 fi
24378 fi
24379
24380 if test "$wxUSE_MGL" = 1; then
24381 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24382echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24383 if test "x$MGL_ROOT" = x ; then
24384 echo "$as_me:$LINENO: result: not found" >&5
24385echo "${ECHO_T}not found" >&6
24386 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24387echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24388 { (exit 1); exit 1; }; }
24389 else
24390 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24391echo "${ECHO_T}$MGL_ROOT" >&6
24392 fi
24393
24394 echo "$as_me:$LINENO: checking for libmgl location" >&5
24395echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24396 case "${host}" in
24397 *-*-linux* )
24398 if test "x$wxUSE_SHARED" = xyes ; then
24399 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24400 else
24401 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24402 fi
24403 ;;
24404 *-pc-msdosdjgpp )
24405 mgl_os_candidates="dos32/dj2"
24406 ;;
24407 *)
24408 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24409echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24410 { (exit 1); exit 1; }; }
24411 esac
24412
24413 mgl_lib_type=""
24414 mgl_os=""
24415
24416 for mgl_os_i in $mgl_os_candidates ; do
24417 if test "x$mgl_os" = x ; then
24418 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24419 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24420 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24421 mgl_lib_type=debug
24422 mgl_os=$mgl_os_i
24423 fi
24424 fi
24425 if test "x$mgl_lib_type" = x ; then
24426 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24427 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24428 mgl_lib_type=release
24429 mgl_os=$mgl_os_i
24430 fi
24431 fi
24432 fi
24433 done
24434
24435 if test "x$mgl_os" = x ; then
24436 echo "$as_me:$LINENO: result: not found" >&5
24437echo "${ECHO_T}not found" >&6
24438 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24439echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24440 { (exit 1); exit 1; }; }
24441 fi
24442 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24443echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24444
24445 wxUSE_UNIVERSAL="yes"
24446
24447 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24448 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24449
24450 AFMINSTALL=afminstall
24451 TOOLKIT=MGL
24452 GUIDIST=MGL_DIST
24453 fi
24454
24455 if test "$wxUSE_MICROWIN" = 1; then
24456 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24457echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24458 if test "x$MICROWINDOWS" = x ; then
24459 echo "$as_me:$LINENO: result: not found" >&5
24460echo "${ECHO_T}not found" >&6
24461 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24462echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24463 { (exit 1); exit 1; }; }
24464 else
24465 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24466echo "${ECHO_T}$MICROWINDOWS" >&6
24467 fi
24468
24469 if test -f $MICROWINDOWS/lib/libmwin.a; then
24470 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24471echo "${ECHO_T}MicroWindows' libraries found." >&6
24472 else
24473 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24474echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24475 { (exit 1); exit 1; }; }
24476 fi
24477
24478 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24479 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24480
24481 wxUSE_UNIVERSAL="yes"
24482
24483 AFMINSTALL=afminstall
24484 TOOLKIT=MICROWIN
24485 GUIDIST=MICROWIN_DIST
24486
24487 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24488 fi
24489
74b84332 24490 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
da4486fb
VZ
24491
24492if test "x$ac_path_x_has_been_run" != xyes; then
24493 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24494echo $ECHO_N "checking for X... $ECHO_C" >&6
24495
da4486fb 24496ac_path_x_has_been_run=yes
a848cd7e
SC
24497
24498# Check whether --with-x or --without-x was given.
24499if test "${with_x+set}" = set; then
24500 withval="$with_x"
24501
24502fi;
24503# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24504if test "x$with_x" = xno; then
24505 # The user explicitly disabled X.
24506 have_x=disabled
24507else
24508 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24509 # Both variables are already set.
24510 have_x=yes
24511 else
24512 if test "${ac_cv_have_x+set}" = set; then
24513 echo $ECHO_N "(cached) $ECHO_C" >&6
24514else
24515 # One or both of the vars are not set, and there is no cached value.
24516ac_x_includes=no ac_x_libraries=no
24517rm -fr conftest.dir
24518if mkdir conftest.dir; then
24519 cd conftest.dir
24520 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24521 cat >Imakefile <<'_ACEOF'
24522acfindx:
24523 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24524_ACEOF
24525 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24526 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24527 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24528 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24529 for ac_extension in a so sl; do
24530 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24531 test -f $ac_im_libdir/libX11.$ac_extension; then
24532 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24533 fi
24534 done
24535 # Screen out bogus values from the imake configuration. They are
24536 # bogus both because they are the default anyway, and because
24537 # using them would break gcc on systems where it needs fixed includes.
24538 case $ac_im_incroot in
24539 /usr/include) ;;
24540 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24541 esac
24542 case $ac_im_usrlibdir in
24543 /usr/lib | /lib) ;;
24544 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24545 esac
24546 fi
24547 cd ..
24548 rm -fr conftest.dir
24549fi
24550
24551# Standard set of common directories for X headers.
24552# Check X11 before X11Rn because it is often a symlink to the current release.
24553ac_x_header_dirs='
24554/usr/X11/include
24555/usr/X11R6/include
24556/usr/X11R5/include
24557/usr/X11R4/include
24558
24559/usr/include/X11
24560/usr/include/X11R6
24561/usr/include/X11R5
24562/usr/include/X11R4
24563
24564/usr/local/X11/include
24565/usr/local/X11R6/include
24566/usr/local/X11R5/include
24567/usr/local/X11R4/include
24568
24569/usr/local/include/X11
24570/usr/local/include/X11R6
24571/usr/local/include/X11R5
24572/usr/local/include/X11R4
24573
24574/usr/X386/include
24575/usr/x386/include
24576/usr/XFree86/include/X11
24577
24578/usr/include
24579/usr/local/include
24580/usr/unsupported/include
24581/usr/athena/include
24582/usr/local/x11r5/include
24583/usr/lpp/Xamples/include
24584
24585/usr/openwin/include
24586/usr/openwin/share/include'
24587
24588if test "$ac_x_includes" = no; then
da4486fb 24589 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
24590 # First, try using that file with no special directory specified.
24591 cat >conftest.$ac_ext <<_ACEOF
24592/* confdefs.h. */
24593_ACEOF
24594cat confdefs.h >>conftest.$ac_ext
24595cat >>conftest.$ac_ext <<_ACEOF
24596/* end confdefs.h. */
24597#include <X11/Intrinsic.h>
24598_ACEOF
24599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24601 ac_status=$?
24602 grep -v '^ *+' conftest.er1 >conftest.err
24603 rm -f conftest.er1
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } >/dev/null; then
24607 if test -s conftest.err; then
24608 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24610 else
24611 ac_cpp_err=
24612 fi
24613else
24614 ac_cpp_err=yes
24615fi
24616if test -z "$ac_cpp_err"; then
24617 # We can compile using X headers with no special include directory.
24618ac_x_includes=
24619else
24620 echo "$as_me: failed program was:" >&5
24621sed 's/^/| /' conftest.$ac_ext >&5
24622
24623 for ac_dir in $ac_x_header_dirs; do
24624 if test -r "$ac_dir/X11/Intrinsic.h"; then
24625 ac_x_includes=$ac_dir
24626 break
24627 fi
24628done
24629fi
24630rm -f conftest.err conftest.$ac_ext
24631fi # $ac_x_includes = no
24632
24633if test "$ac_x_libraries" = no; then
24634 # Check for the libraries.
24635 # See if we find them without any special options.
24636 # Don't add to $LIBS permanently.
24637 ac_save_LIBS=$LIBS
24638 LIBS="-lXt $LIBS"
24639 cat >conftest.$ac_ext <<_ACEOF
24640/* confdefs.h. */
24641_ACEOF
24642cat confdefs.h >>conftest.$ac_ext
24643cat >>conftest.$ac_ext <<_ACEOF
24644/* end confdefs.h. */
24645#include <X11/Intrinsic.h>
24646int
24647main ()
24648{
24649XtMalloc (0)
24650 ;
24651 return 0;
24652}
24653_ACEOF
24654rm -f conftest.$ac_objext conftest$ac_exeext
24655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24656 (eval $ac_link) 2>conftest.er1
a848cd7e 24657 ac_status=$?
ac1cb8d3
VS
24658 grep -v '^ *+' conftest.er1 >conftest.err
24659 rm -f conftest.er1
24660 cat conftest.err >&5
a848cd7e
SC
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); } &&
da4486fb 24663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24666 ac_status=$?
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; } &&
24669 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24672 ac_status=$?
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; }; then
24675 LIBS=$ac_save_LIBS
24676# We can link X programs with no special library path.
24677ac_x_libraries=
24678else
24679 echo "$as_me: failed program was:" >&5
24680sed 's/^/| /' conftest.$ac_ext >&5
24681
24682LIBS=$ac_save_LIBS
24683for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24684do
24685 # Don't even attempt the hair of trying to link an X program!
24686 for ac_extension in a so sl; do
24687 if test -r $ac_dir/libXt.$ac_extension; then
24688 ac_x_libraries=$ac_dir
24689 break 2
24690 fi
24691 done
24692done
24693fi
ac1cb8d3
VS
24694rm -f conftest.err conftest.$ac_objext \
24695 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24696fi # $ac_x_libraries = no
24697
24698if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24699 # Didn't find X anywhere. Cache the known absence of X.
24700 ac_cv_have_x="have_x=no"
24701else
24702 # Record where we found X for the cache.
24703 ac_cv_have_x="have_x=yes \
ac1cb8d3 24704 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24705fi
24706fi
24707
24708 fi
24709 eval "$ac_cv_have_x"
24710fi # $with_x != no
24711
24712if test "$have_x" != yes; then
24713 echo "$as_me:$LINENO: result: $have_x" >&5
24714echo "${ECHO_T}$have_x" >&6
24715 no_x=yes
24716else
24717 # If each of the values was on the command line, it overrides each guess.
24718 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24719 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24720 # Update the cache value to reflect the command line values.
24721 ac_cv_have_x="have_x=yes \
24722 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
da4486fb
VZ
24723 # It might be that x_includes is empty (headers are found in the
24724 # standard search path. Then output the corresponding message
24725 ac_out_x_includes=$x_includes
24726 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24727 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24728echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
24729fi
24730
da4486fb 24731fi
a848cd7e
SC
24732if test "$no_x" = yes; then
24733 # Not all programs may use this symbol, but it does not hurt to define it.
24734
24735cat >>confdefs.h <<\_ACEOF
24736#define X_DISPLAY_MISSING 1
24737_ACEOF
24738
24739 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24740else
24741 if test -n "$x_includes"; then
24742 X_CFLAGS="$X_CFLAGS -I$x_includes"
24743 fi
24744
24745 # It would also be nice to do this for all -L options, not just this one.
24746 if test -n "$x_libraries"; then
24747 X_LIBS="$X_LIBS -L$x_libraries"
24748 # For Solaris; some versions of Sun CC require a space after -R and
24749 # others require no space. Words are not sufficient . . . .
24750 case `(uname -sr) 2>/dev/null` in
24751 "SunOS 5"*)
24752 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24753echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24754 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24755 cat >conftest.$ac_ext <<_ACEOF
24756/* confdefs.h. */
24757_ACEOF
24758cat confdefs.h >>conftest.$ac_ext
24759cat >>conftest.$ac_ext <<_ACEOF
24760/* end confdefs.h. */
24761
24762int
24763main ()
24764{
24765
24766 ;
24767 return 0;
24768}
24769_ACEOF
24770rm -f conftest.$ac_objext conftest$ac_exeext
24771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24772 (eval $ac_link) 2>conftest.er1
a848cd7e 24773 ac_status=$?
ac1cb8d3
VS
24774 grep -v '^ *+' conftest.er1 >conftest.err
24775 rm -f conftest.er1
24776 cat conftest.err >&5
a848cd7e
SC
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } &&
da4486fb 24779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; } &&
24785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787 (eval $ac_try) 2>&5
24788 ac_status=$?
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; }; then
24791 ac_R_nospace=yes
24792else
24793 echo "$as_me: failed program was:" >&5
24794sed 's/^/| /' conftest.$ac_ext >&5
24795
24796ac_R_nospace=no
24797fi
ac1cb8d3
VS
24798rm -f conftest.err conftest.$ac_objext \
24799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24800 if test $ac_R_nospace = yes; then
24801 echo "$as_me:$LINENO: result: no" >&5
24802echo "${ECHO_T}no" >&6
24803 X_LIBS="$X_LIBS -R$x_libraries"
24804 else
24805 LIBS="$ac_xsave_LIBS -R $x_libraries"
24806 cat >conftest.$ac_ext <<_ACEOF
24807/* confdefs.h. */
24808_ACEOF
24809cat confdefs.h >>conftest.$ac_ext
24810cat >>conftest.$ac_ext <<_ACEOF
24811/* end confdefs.h. */
24812
24813int
24814main ()
24815{
24816
24817 ;
24818 return 0;
24819}
24820_ACEOF
24821rm -f conftest.$ac_objext conftest$ac_exeext
24822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24823 (eval $ac_link) 2>conftest.er1
a848cd7e 24824 ac_status=$?
ac1cb8d3
VS
24825 grep -v '^ *+' conftest.er1 >conftest.err
24826 rm -f conftest.er1
24827 cat conftest.err >&5
a848cd7e
SC
24828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24829 (exit $ac_status); } &&
da4486fb 24830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24832 (eval $ac_try) 2>&5
24833 ac_status=$?
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); }; } &&
24836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; }; then
24842 ac_R_space=yes
24843else
24844 echo "$as_me: failed program was:" >&5
24845sed 's/^/| /' conftest.$ac_ext >&5
24846
24847ac_R_space=no
24848fi
ac1cb8d3
VS
24849rm -f conftest.err conftest.$ac_objext \
24850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24851 if test $ac_R_space = yes; then
24852 echo "$as_me:$LINENO: result: yes" >&5
24853echo "${ECHO_T}yes" >&6
24854 X_LIBS="$X_LIBS -R $x_libraries"
24855 else
24856 echo "$as_me:$LINENO: result: neither works" >&5
24857echo "${ECHO_T}neither works" >&6
24858 fi
24859 fi
24860 LIBS=$ac_xsave_LIBS
24861 esac
24862 fi
24863
24864 # Check for system-dependent libraries X programs must link with.
24865 # Do this before checking for the system-independent R6 libraries
24866 # (-lICE), since we may need -lsocket or whatever for X linking.
24867
24868 if test "$ISC" = yes; then
24869 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24870 else
24871 # Martyn Johnson says this is needed for Ultrix, if the X
24872 # libraries were built with DECnet support. And Karl Berry says
24873 # the Alpha needs dnet_stub (dnet does not exist).
24874 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24875 cat >conftest.$ac_ext <<_ACEOF
24876/* confdefs.h. */
24877_ACEOF
24878cat confdefs.h >>conftest.$ac_ext
24879cat >>conftest.$ac_ext <<_ACEOF
24880/* end confdefs.h. */
24881
24882/* Override any gcc2 internal prototype to avoid an error. */
24883#ifdef __cplusplus
24884extern "C"
24885#endif
24886/* We use char because int might match the return type of a gcc2
24887 builtin and then its argument prototype would still apply. */
24888char XOpenDisplay ();
24889int
24890main ()
24891{
24892XOpenDisplay ();
24893 ;
24894 return 0;
24895}
24896_ACEOF
24897rm -f conftest.$ac_objext conftest$ac_exeext
24898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24899 (eval $ac_link) 2>conftest.er1
a848cd7e 24900 ac_status=$?
ac1cb8d3
VS
24901 grep -v '^ *+' conftest.er1 >conftest.err
24902 rm -f conftest.er1
24903 cat conftest.err >&5
a848cd7e
SC
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } &&
da4486fb 24906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24908 (eval $ac_try) 2>&5
24909 ac_status=$?
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); }; } &&
24912 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24914 (eval $ac_try) 2>&5
24915 ac_status=$?
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); }; }; then
24918 :
24919else
24920 echo "$as_me: failed program was:" >&5
24921sed 's/^/| /' conftest.$ac_ext >&5
24922
24923echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24924echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24925if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24926 echo $ECHO_N "(cached) $ECHO_C" >&6
24927else
24928 ac_check_lib_save_LIBS=$LIBS
24929LIBS="-ldnet $LIBS"
24930cat >conftest.$ac_ext <<_ACEOF
24931/* confdefs.h. */
24932_ACEOF
24933cat confdefs.h >>conftest.$ac_ext
24934cat >>conftest.$ac_ext <<_ACEOF
24935/* end confdefs.h. */
24936
24937/* Override any gcc2 internal prototype to avoid an error. */
24938#ifdef __cplusplus
24939extern "C"
24940#endif
24941/* We use char because int might match the return type of a gcc2
24942 builtin and then its argument prototype would still apply. */
24943char dnet_ntoa ();
24944int
24945main ()
24946{
24947dnet_ntoa ();
24948 ;
24949 return 0;
24950}
24951_ACEOF
24952rm -f conftest.$ac_objext conftest$ac_exeext
24953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24954 (eval $ac_link) 2>conftest.er1
a848cd7e 24955 ac_status=$?
ac1cb8d3
VS
24956 grep -v '^ *+' conftest.er1 >conftest.err
24957 rm -f conftest.er1
24958 cat conftest.err >&5
a848cd7e
SC
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } &&
da4486fb 24961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24963 (eval $ac_try) 2>&5
24964 ac_status=$?
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; } &&
24967 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24969 (eval $ac_try) 2>&5
24970 ac_status=$?
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); }; }; then
24973 ac_cv_lib_dnet_dnet_ntoa=yes
24974else
24975 echo "$as_me: failed program was:" >&5
24976sed 's/^/| /' conftest.$ac_ext >&5
24977
24978ac_cv_lib_dnet_dnet_ntoa=no
24979fi
ac1cb8d3
VS
24980rm -f conftest.err conftest.$ac_objext \
24981 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24982LIBS=$ac_check_lib_save_LIBS
24983fi
24984echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24985echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24986if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24987 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24988fi
24989
24990 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24991 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24992echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24993if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24995else
24996 ac_check_lib_save_LIBS=$LIBS
24997LIBS="-ldnet_stub $LIBS"
24998cat >conftest.$ac_ext <<_ACEOF
24999/* confdefs.h. */
25000_ACEOF
25001cat confdefs.h >>conftest.$ac_ext
25002cat >>conftest.$ac_ext <<_ACEOF
25003/* end confdefs.h. */
25004
25005/* Override any gcc2 internal prototype to avoid an error. */
25006#ifdef __cplusplus
25007extern "C"
25008#endif
25009/* We use char because int might match the return type of a gcc2
25010 builtin and then its argument prototype would still apply. */
25011char dnet_ntoa ();
25012int
25013main ()
25014{
25015dnet_ntoa ();
25016 ;
25017 return 0;
25018}
25019_ACEOF
25020rm -f conftest.$ac_objext conftest$ac_exeext
25021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25022 (eval $ac_link) 2>conftest.er1
a848cd7e 25023 ac_status=$?
ac1cb8d3
VS
25024 grep -v '^ *+' conftest.er1 >conftest.err
25025 rm -f conftest.er1
25026 cat conftest.err >&5
a848cd7e
SC
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); } &&
da4486fb 25029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25032 ac_status=$?
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; } &&
25035 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25037 (eval $ac_try) 2>&5
25038 ac_status=$?
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); }; }; then
25041 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25042else
25043 echo "$as_me: failed program was:" >&5
25044sed 's/^/| /' conftest.$ac_ext >&5
25045
25046ac_cv_lib_dnet_stub_dnet_ntoa=no
25047fi
ac1cb8d3
VS
25048rm -f conftest.err conftest.$ac_objext \
25049 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25050LIBS=$ac_check_lib_save_LIBS
25051fi
25052echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25053echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25054if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25055 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25056fi
25057
25058 fi
25059fi
ac1cb8d3
VS
25060rm -f conftest.err conftest.$ac_objext \
25061 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25062 LIBS="$ac_xsave_LIBS"
25063
25064 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25065 # to get the SysV transport functions.
25066 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25067 # needs -lnsl.
25068 # The nsl library prevents programs from opening the X display
25069 # on Irix 5.2, according to T.E. Dickey.
25070 # The functions gethostbyname, getservbyname, and inet_addr are
25071 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25072 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25073echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25074if test "${ac_cv_func_gethostbyname+set}" = set; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25076else
25077 cat >conftest.$ac_ext <<_ACEOF
25078/* confdefs.h. */
25079_ACEOF
25080cat confdefs.h >>conftest.$ac_ext
25081cat >>conftest.$ac_ext <<_ACEOF
25082/* end confdefs.h. */
ac1cb8d3
VS
25083/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25085#define gethostbyname innocuous_gethostbyname
25086
a848cd7e
SC
25087/* System header to define __stub macros and hopefully few prototypes,
25088 which can conflict with char gethostbyname (); below.
25089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25090 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25091
a848cd7e
SC
25092#ifdef __STDC__
25093# include <limits.h>
25094#else
25095# include <assert.h>
25096#endif
ac1cb8d3
VS
25097
25098#undef gethostbyname
25099
a848cd7e
SC
25100/* Override any gcc2 internal prototype to avoid an error. */
25101#ifdef __cplusplus
25102extern "C"
25103{
25104#endif
25105/* We use char because int might match the return type of a gcc2
25106 builtin and then its argument prototype would still apply. */
25107char gethostbyname ();
25108/* The GNU C library defines this for functions which it implements
25109 to always fail with ENOSYS. Some functions are actually named
25110 something starting with __ and the normal name is an alias. */
25111#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25112choke me
25113#else
25114char (*f) () = gethostbyname;
25115#endif
25116#ifdef __cplusplus
25117}
25118#endif
25119
25120int
25121main ()
25122{
25123return f != gethostbyname;
25124 ;
25125 return 0;
25126}
25127_ACEOF
25128rm -f conftest.$ac_objext conftest$ac_exeext
25129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25130 (eval $ac_link) 2>conftest.er1
a848cd7e 25131 ac_status=$?
ac1cb8d3
VS
25132 grep -v '^ *+' conftest.er1 >conftest.err
25133 rm -f conftest.er1
25134 cat conftest.err >&5
a848cd7e
SC
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } &&
da4486fb 25137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25139 (eval $ac_try) 2>&5
25140 ac_status=$?
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); }; } &&
25143 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145 (eval $ac_try) 2>&5
25146 ac_status=$?
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); }; }; then
25149 ac_cv_func_gethostbyname=yes
25150else
25151 echo "$as_me: failed program was:" >&5
25152sed 's/^/| /' conftest.$ac_ext >&5
25153
25154ac_cv_func_gethostbyname=no
25155fi
ac1cb8d3
VS
25156rm -f conftest.err conftest.$ac_objext \
25157 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25158fi
25159echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25160echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25161
25162 if test $ac_cv_func_gethostbyname = no; then
25163 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25164echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25165if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25166 echo $ECHO_N "(cached) $ECHO_C" >&6
25167else
25168 ac_check_lib_save_LIBS=$LIBS
25169LIBS="-lnsl $LIBS"
25170cat >conftest.$ac_ext <<_ACEOF
25171/* confdefs.h. */
25172_ACEOF
25173cat confdefs.h >>conftest.$ac_ext
25174cat >>conftest.$ac_ext <<_ACEOF
25175/* end confdefs.h. */
25176
25177/* Override any gcc2 internal prototype to avoid an error. */
25178#ifdef __cplusplus
25179extern "C"
25180#endif
25181/* We use char because int might match the return type of a gcc2
25182 builtin and then its argument prototype would still apply. */
25183char gethostbyname ();
25184int
25185main ()
25186{
25187gethostbyname ();
25188 ;
25189 return 0;
25190}
25191_ACEOF
25192rm -f conftest.$ac_objext conftest$ac_exeext
25193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
25194 (eval $ac_link) 2>conftest.er1
25195 ac_status=$?
25196 grep -v '^ *+' conftest.er1 >conftest.err
25197 rm -f conftest.er1
25198 cat conftest.err >&5
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); } &&
da4486fb 25201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25204 ac_status=$?
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; } &&
25207 { ac_try='test -s conftest$ac_exeext'
25208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; }; then
25213 ac_cv_lib_nsl_gethostbyname=yes
25214else
25215 echo "$as_me: failed program was:" >&5
25216sed 's/^/| /' conftest.$ac_ext >&5
25217
25218ac_cv_lib_nsl_gethostbyname=no
25219fi
25220rm -f conftest.err conftest.$ac_objext \
25221 conftest$ac_exeext conftest.$ac_ext
25222LIBS=$ac_check_lib_save_LIBS
25223fi
25224echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25225echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25226if test $ac_cv_lib_nsl_gethostbyname = yes; then
25227 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25228fi
25229
25230 if test $ac_cv_lib_nsl_gethostbyname = no; then
25231 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25232echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25233if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25235else
25236 ac_check_lib_save_LIBS=$LIBS
25237LIBS="-lbsd $LIBS"
25238cat >conftest.$ac_ext <<_ACEOF
25239/* confdefs.h. */
25240_ACEOF
25241cat confdefs.h >>conftest.$ac_ext
25242cat >>conftest.$ac_ext <<_ACEOF
25243/* end confdefs.h. */
25244
25245/* Override any gcc2 internal prototype to avoid an error. */
25246#ifdef __cplusplus
25247extern "C"
25248#endif
25249/* We use char because int might match the return type of a gcc2
25250 builtin and then its argument prototype would still apply. */
25251char gethostbyname ();
25252int
25253main ()
25254{
25255gethostbyname ();
25256 ;
25257 return 0;
25258}
25259_ACEOF
25260rm -f conftest.$ac_objext conftest$ac_exeext
25261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25262 (eval $ac_link) 2>conftest.er1
a848cd7e 25263 ac_status=$?
ac1cb8d3
VS
25264 grep -v '^ *+' conftest.er1 >conftest.err
25265 rm -f conftest.er1
25266 cat conftest.err >&5
a848cd7e
SC
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); } &&
da4486fb 25269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25271 (eval $ac_try) 2>&5
25272 ac_status=$?
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25274 (exit $ac_status); }; } &&
25275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25277 (eval $ac_try) 2>&5
25278 ac_status=$?
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); }; }; then
25281 ac_cv_lib_bsd_gethostbyname=yes
25282else
25283 echo "$as_me: failed program was:" >&5
25284sed 's/^/| /' conftest.$ac_ext >&5
25285
25286ac_cv_lib_bsd_gethostbyname=no
25287fi
ac1cb8d3
VS
25288rm -f conftest.err conftest.$ac_objext \
25289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25290LIBS=$ac_check_lib_save_LIBS
25291fi
25292echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25293echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25294if test $ac_cv_lib_bsd_gethostbyname = yes; then
25295 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25296fi
25297
25298 fi
25299 fi
25300
25301 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25302 # socket/setsockopt and other routines are undefined under SCO ODT
25303 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25304 # on later versions), says Simon Leinen: it contains gethostby*
25305 # variants that don't use the name server (or something). -lsocket
25306 # must be given before -lnsl if both are needed. We assume that
25307 # if connect needs -lnsl, so does gethostbyname.
25308 echo "$as_me:$LINENO: checking for connect" >&5
25309echo $ECHO_N "checking for connect... $ECHO_C" >&6
25310if test "${ac_cv_func_connect+set}" = set; then
25311 echo $ECHO_N "(cached) $ECHO_C" >&6
25312else
25313 cat >conftest.$ac_ext <<_ACEOF
25314/* confdefs.h. */
25315_ACEOF
25316cat confdefs.h >>conftest.$ac_ext
25317cat >>conftest.$ac_ext <<_ACEOF
25318/* end confdefs.h. */
ac1cb8d3
VS
25319/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25321#define connect innocuous_connect
25322
a848cd7e
SC
25323/* System header to define __stub macros and hopefully few prototypes,
25324 which can conflict with char connect (); below.
25325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25326 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25327
a848cd7e
SC
25328#ifdef __STDC__
25329# include <limits.h>
25330#else
25331# include <assert.h>
25332#endif
ac1cb8d3
VS
25333
25334#undef connect
25335
a848cd7e
SC
25336/* Override any gcc2 internal prototype to avoid an error. */
25337#ifdef __cplusplus
25338extern "C"
25339{
25340#endif
25341/* We use char because int might match the return type of a gcc2
25342 builtin and then its argument prototype would still apply. */
25343char connect ();
25344/* The GNU C library defines this for functions which it implements
25345 to always fail with ENOSYS. Some functions are actually named
25346 something starting with __ and the normal name is an alias. */
25347#if defined (__stub_connect) || defined (__stub___connect)
25348choke me
25349#else
25350char (*f) () = connect;
25351#endif
25352#ifdef __cplusplus
25353}
25354#endif
25355
25356int
25357main ()
25358{
25359return f != connect;
25360 ;
25361 return 0;
25362}
25363_ACEOF
25364rm -f conftest.$ac_objext conftest$ac_exeext
25365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25366 (eval $ac_link) 2>conftest.er1
a848cd7e 25367 ac_status=$?
ac1cb8d3
VS
25368 grep -v '^ *+' conftest.er1 >conftest.err
25369 rm -f conftest.er1
25370 cat conftest.err >&5
a848cd7e
SC
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); } &&
da4486fb 25373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375 (eval $ac_try) 2>&5
25376 ac_status=$?
25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); }; } &&
25379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381 (eval $ac_try) 2>&5
25382 ac_status=$?
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); }; }; then
25385 ac_cv_func_connect=yes
25386else
25387 echo "$as_me: failed program was:" >&5
25388sed 's/^/| /' conftest.$ac_ext >&5
25389
25390ac_cv_func_connect=no
25391fi
ac1cb8d3
VS
25392rm -f conftest.err conftest.$ac_objext \
25393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25394fi
25395echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25396echo "${ECHO_T}$ac_cv_func_connect" >&6
25397
25398 if test $ac_cv_func_connect = no; then
25399 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25400echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25401if test "${ac_cv_lib_socket_connect+set}" = set; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25403else
25404 ac_check_lib_save_LIBS=$LIBS
25405LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25406cat >conftest.$ac_ext <<_ACEOF
25407/* confdefs.h. */
25408_ACEOF
25409cat confdefs.h >>conftest.$ac_ext
25410cat >>conftest.$ac_ext <<_ACEOF
25411/* end confdefs.h. */
25412
25413/* Override any gcc2 internal prototype to avoid an error. */
25414#ifdef __cplusplus
25415extern "C"
25416#endif
25417/* We use char because int might match the return type of a gcc2
25418 builtin and then its argument prototype would still apply. */
25419char connect ();
25420int
25421main ()
25422{
25423connect ();
25424 ;
25425 return 0;
25426}
25427_ACEOF
25428rm -f conftest.$ac_objext conftest$ac_exeext
25429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25430 (eval $ac_link) 2>conftest.er1
a848cd7e 25431 ac_status=$?
ac1cb8d3
VS
25432 grep -v '^ *+' conftest.er1 >conftest.err
25433 rm -f conftest.er1
25434 cat conftest.err >&5
a848cd7e
SC
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } &&
da4486fb 25437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25439 (eval $ac_try) 2>&5
25440 ac_status=$?
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); }; } &&
25443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25445 (eval $ac_try) 2>&5
25446 ac_status=$?
25447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); }; }; then
25449 ac_cv_lib_socket_connect=yes
25450else
25451 echo "$as_me: failed program was:" >&5
25452sed 's/^/| /' conftest.$ac_ext >&5
25453
25454ac_cv_lib_socket_connect=no
25455fi
ac1cb8d3
VS
25456rm -f conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25458LIBS=$ac_check_lib_save_LIBS
25459fi
25460echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25461echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25462if test $ac_cv_lib_socket_connect = yes; then
25463 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25464fi
25465
25466 fi
25467
25468 # Guillermo Gomez says -lposix is necessary on A/UX.
25469 echo "$as_me:$LINENO: checking for remove" >&5
25470echo $ECHO_N "checking for remove... $ECHO_C" >&6
25471if test "${ac_cv_func_remove+set}" = set; then
25472 echo $ECHO_N "(cached) $ECHO_C" >&6
25473else
25474 cat >conftest.$ac_ext <<_ACEOF
25475/* confdefs.h. */
25476_ACEOF
25477cat confdefs.h >>conftest.$ac_ext
25478cat >>conftest.$ac_ext <<_ACEOF
25479/* end confdefs.h. */
ac1cb8d3
VS
25480/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25482#define remove innocuous_remove
25483
a848cd7e
SC
25484/* System header to define __stub macros and hopefully few prototypes,
25485 which can conflict with char remove (); below.
25486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25487 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25488
a848cd7e
SC
25489#ifdef __STDC__
25490# include <limits.h>
25491#else
25492# include <assert.h>
25493#endif
ac1cb8d3
VS
25494
25495#undef remove
25496
a848cd7e
SC
25497/* Override any gcc2 internal prototype to avoid an error. */
25498#ifdef __cplusplus
25499extern "C"
25500{
25501#endif
25502/* We use char because int might match the return type of a gcc2
25503 builtin and then its argument prototype would still apply. */
25504char remove ();
25505/* The GNU C library defines this for functions which it implements
25506 to always fail with ENOSYS. Some functions are actually named
25507 something starting with __ and the normal name is an alias. */
25508#if defined (__stub_remove) || defined (__stub___remove)
25509choke me
25510#else
25511char (*f) () = remove;
25512#endif
25513#ifdef __cplusplus
25514}
25515#endif
25516
25517int
25518main ()
25519{
25520return f != remove;
25521 ;
25522 return 0;
25523}
25524_ACEOF
25525rm -f conftest.$ac_objext conftest$ac_exeext
25526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25527 (eval $ac_link) 2>conftest.er1
a848cd7e 25528 ac_status=$?
ac1cb8d3
VS
25529 grep -v '^ *+' conftest.er1 >conftest.err
25530 rm -f conftest.er1
25531 cat conftest.err >&5
a848cd7e
SC
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } &&
da4486fb 25534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25537 ac_status=$?
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; } &&
25540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542 (eval $ac_try) 2>&5
25543 ac_status=$?
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 ac_cv_func_remove=yes
25547else
25548 echo "$as_me: failed program was:" >&5
25549sed 's/^/| /' conftest.$ac_ext >&5
25550
25551ac_cv_func_remove=no
25552fi
ac1cb8d3
VS
25553rm -f conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25555fi
25556echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25557echo "${ECHO_T}$ac_cv_func_remove" >&6
25558
25559 if test $ac_cv_func_remove = no; then
25560 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25561echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25562if test "${ac_cv_lib_posix_remove+set}" = set; then
25563 echo $ECHO_N "(cached) $ECHO_C" >&6
25564else
25565 ac_check_lib_save_LIBS=$LIBS
25566LIBS="-lposix $LIBS"
25567cat >conftest.$ac_ext <<_ACEOF
25568/* confdefs.h. */
25569_ACEOF
25570cat confdefs.h >>conftest.$ac_ext
25571cat >>conftest.$ac_ext <<_ACEOF
25572/* end confdefs.h. */
25573
25574/* Override any gcc2 internal prototype to avoid an error. */
25575#ifdef __cplusplus
25576extern "C"
25577#endif
25578/* We use char because int might match the return type of a gcc2
25579 builtin and then its argument prototype would still apply. */
25580char remove ();
25581int
25582main ()
25583{
25584remove ();
25585 ;
25586 return 0;
25587}
25588_ACEOF
25589rm -f conftest.$ac_objext conftest$ac_exeext
25590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25591 (eval $ac_link) 2>conftest.er1
a848cd7e 25592 ac_status=$?
ac1cb8d3
VS
25593 grep -v '^ *+' conftest.er1 >conftest.err
25594 rm -f conftest.er1
25595 cat conftest.err >&5
a848cd7e
SC
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } &&
da4486fb 25598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25600 (eval $ac_try) 2>&5
25601 ac_status=$?
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; } &&
25604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; }; then
25610 ac_cv_lib_posix_remove=yes
25611else
25612 echo "$as_me: failed program was:" >&5
25613sed 's/^/| /' conftest.$ac_ext >&5
25614
25615ac_cv_lib_posix_remove=no
25616fi
ac1cb8d3
VS
25617rm -f conftest.err conftest.$ac_objext \
25618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25619LIBS=$ac_check_lib_save_LIBS
25620fi
25621echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25622echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25623if test $ac_cv_lib_posix_remove = yes; then
25624 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25625fi
25626
25627 fi
25628
25629 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25630 echo "$as_me:$LINENO: checking for shmat" >&5
25631echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25632if test "${ac_cv_func_shmat+set}" = set; then
25633 echo $ECHO_N "(cached) $ECHO_C" >&6
25634else
25635 cat >conftest.$ac_ext <<_ACEOF
25636/* confdefs.h. */
25637_ACEOF
25638cat confdefs.h >>conftest.$ac_ext
25639cat >>conftest.$ac_ext <<_ACEOF
25640/* end confdefs.h. */
ac1cb8d3
VS
25641/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25643#define shmat innocuous_shmat
25644
a848cd7e
SC
25645/* System header to define __stub macros and hopefully few prototypes,
25646 which can conflict with char shmat (); below.
25647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25648 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25649
a848cd7e
SC
25650#ifdef __STDC__
25651# include <limits.h>
25652#else
25653# include <assert.h>
25654#endif
ac1cb8d3
VS
25655
25656#undef shmat
25657
a848cd7e
SC
25658/* Override any gcc2 internal prototype to avoid an error. */
25659#ifdef __cplusplus
25660extern "C"
25661{
25662#endif
25663/* We use char because int might match the return type of a gcc2
25664 builtin and then its argument prototype would still apply. */
25665char shmat ();
25666/* The GNU C library defines this for functions which it implements
25667 to always fail with ENOSYS. Some functions are actually named
25668 something starting with __ and the normal name is an alias. */
25669#if defined (__stub_shmat) || defined (__stub___shmat)
25670choke me
25671#else
25672char (*f) () = shmat;
25673#endif
25674#ifdef __cplusplus
25675}
25676#endif
25677
25678int
25679main ()
25680{
25681return f != shmat;
25682 ;
25683 return 0;
25684}
25685_ACEOF
25686rm -f conftest.$ac_objext conftest$ac_exeext
25687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25688 (eval $ac_link) 2>conftest.er1
a848cd7e 25689 ac_status=$?
ac1cb8d3
VS
25690 grep -v '^ *+' conftest.er1 >conftest.err
25691 rm -f conftest.er1
25692 cat conftest.err >&5
a848cd7e
SC
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } &&
da4486fb 25695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; } &&
25701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703 (eval $ac_try) 2>&5
25704 ac_status=$?
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); }; }; then
25707 ac_cv_func_shmat=yes
25708else
25709 echo "$as_me: failed program was:" >&5
25710sed 's/^/| /' conftest.$ac_ext >&5
25711
25712ac_cv_func_shmat=no
25713fi
ac1cb8d3
VS
25714rm -f conftest.err conftest.$ac_objext \
25715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25716fi
25717echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25718echo "${ECHO_T}$ac_cv_func_shmat" >&6
25719
25720 if test $ac_cv_func_shmat = no; then
25721 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25722echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25723if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25724 echo $ECHO_N "(cached) $ECHO_C" >&6
25725else
25726 ac_check_lib_save_LIBS=$LIBS
25727LIBS="-lipc $LIBS"
25728cat >conftest.$ac_ext <<_ACEOF
25729/* confdefs.h. */
25730_ACEOF
25731cat confdefs.h >>conftest.$ac_ext
25732cat >>conftest.$ac_ext <<_ACEOF
25733/* end confdefs.h. */
25734
25735/* Override any gcc2 internal prototype to avoid an error. */
25736#ifdef __cplusplus
25737extern "C"
25738#endif
25739/* We use char because int might match the return type of a gcc2
25740 builtin and then its argument prototype would still apply. */
25741char shmat ();
25742int
25743main ()
25744{
25745shmat ();
25746 ;
25747 return 0;
25748}
25749_ACEOF
25750rm -f conftest.$ac_objext conftest$ac_exeext
25751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25752 (eval $ac_link) 2>conftest.er1
a848cd7e 25753 ac_status=$?
ac1cb8d3
VS
25754 grep -v '^ *+' conftest.er1 >conftest.err
25755 rm -f conftest.er1
25756 cat conftest.err >&5
a848cd7e
SC
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); } &&
da4486fb 25759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25761 (eval $ac_try) 2>&5
25762 ac_status=$?
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); }; } &&
25765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25767 (eval $ac_try) 2>&5
25768 ac_status=$?
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); }; }; then
25771 ac_cv_lib_ipc_shmat=yes
25772else
25773 echo "$as_me: failed program was:" >&5
25774sed 's/^/| /' conftest.$ac_ext >&5
25775
25776ac_cv_lib_ipc_shmat=no
25777fi
ac1cb8d3
VS
25778rm -f conftest.err conftest.$ac_objext \
25779 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25780LIBS=$ac_check_lib_save_LIBS
25781fi
25782echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25783echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25784if test $ac_cv_lib_ipc_shmat = yes; then
25785 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25786fi
25787
25788 fi
25789 fi
25790
25791 # Check for libraries that X11R6 Xt/Xaw programs need.
25792 ac_save_LDFLAGS=$LDFLAGS
25793 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25794 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25795 # check for ICE first), but we must link in the order -lSM -lICE or
25796 # we get undefined symbols. So assume we have SM if we have ICE.
25797 # These have to be linked with before -lX11, unlike the other
25798 # libraries we check for below, so use a different variable.
25799 # John Interrante, Karl Berry
25800 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25801echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25802if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25803 echo $ECHO_N "(cached) $ECHO_C" >&6
25804else
25805 ac_check_lib_save_LIBS=$LIBS
25806LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25807cat >conftest.$ac_ext <<_ACEOF
25808/* confdefs.h. */
25809_ACEOF
25810cat confdefs.h >>conftest.$ac_ext
25811cat >>conftest.$ac_ext <<_ACEOF
25812/* end confdefs.h. */
25813
25814/* Override any gcc2 internal prototype to avoid an error. */
25815#ifdef __cplusplus
25816extern "C"
25817#endif
25818/* We use char because int might match the return type of a gcc2
25819 builtin and then its argument prototype would still apply. */
25820char IceConnectionNumber ();
25821int
25822main ()
25823{
25824IceConnectionNumber ();
25825 ;
25826 return 0;
25827}
25828_ACEOF
25829rm -f conftest.$ac_objext conftest$ac_exeext
25830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25831 (eval $ac_link) 2>conftest.er1
a848cd7e 25832 ac_status=$?
ac1cb8d3
VS
25833 grep -v '^ *+' conftest.er1 >conftest.err
25834 rm -f conftest.er1
25835 cat conftest.err >&5
a848cd7e
SC
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); } &&
da4486fb 25838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; } &&
25844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25847 ac_status=$?
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; }; then
25850 ac_cv_lib_ICE_IceConnectionNumber=yes
25851else
25852 echo "$as_me: failed program was:" >&5
25853sed 's/^/| /' conftest.$ac_ext >&5
25854
25855ac_cv_lib_ICE_IceConnectionNumber=no
25856fi
ac1cb8d3
VS
25857rm -f conftest.err conftest.$ac_objext \
25858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25859LIBS=$ac_check_lib_save_LIBS
25860fi
25861echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25862echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25863if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25864 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25865fi
25866
25867 LDFLAGS=$ac_save_LDFLAGS
25868
25869fi
25870
25871
25872 if test "$no_x" = "yes"; then
25873 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25874echo "$as_me: error: X11 not found" >&2;}
25875 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25876 fi
25877
74b84332
VS
25878 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25879 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25880 AFMINSTALL=afminstall
25881 COMPILED_X_PROGRAM=0
25882
74b84332
VS
25883 fi
25884
25885 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25886 if test "$wxUSE_NANOX" = "yes"; then
25887 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25888echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25889 if test "x$MICROWIN" = x ; then
25890 echo "$as_me:$LINENO: result: not found" >&5
25891echo "${ECHO_T}not found" >&6
25892 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25893echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25894 { (exit 1); exit 1; }; }
25895 else
25896 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25897echo "${ECHO_T}$MICROWIN" >&6
25898 cat >>confdefs.h <<\_ACEOF
25899#define wxUSE_NANOX 1
25900_ACEOF
25901
25902 fi
25903 fi
25904
25905 if test "$wxUSE_UNICODE" = "yes"; then
25906
25907 succeeded=no
25908
25909 if test -z "$PKG_CONFIG"; then
25910 # Extract the first word of "pkg-config", so it can be a program name with args.
25911set dummy pkg-config; ac_word=$2
25912echo "$as_me:$LINENO: checking for $ac_word" >&5
25913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25914if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25915 echo $ECHO_N "(cached) $ECHO_C" >&6
25916else
25917 case $PKG_CONFIG in
25918 [\\/]* | ?:[\\/]*)
25919 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25920 ;;
25921 *)
25922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25923for as_dir in $PATH
25924do
25925 IFS=$as_save_IFS
25926 test -z "$as_dir" && as_dir=.
25927 for ac_exec_ext in '' $ac_executable_extensions; do
25928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25929 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25931 break 2
25932 fi
25933done
25934done
25935
25936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25937 ;;
25938esac
25939fi
25940PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25941
25942if test -n "$PKG_CONFIG"; then
25943 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25944echo "${ECHO_T}$PKG_CONFIG" >&6
25945else
25946 echo "$as_me:$LINENO: result: no" >&5
25947echo "${ECHO_T}no" >&6
25948fi
25949
25950 fi
25951
25952 if test "$PKG_CONFIG" = "no" ; then
25953 echo "*** The pkg-config script could not be found. Make sure it is"
25954 echo "*** in your path, or set the PKG_CONFIG environment variable"
25955 echo "*** to the full path to pkg-config."
25956 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25957 else
25958 PKG_CONFIG_MIN_VERSION=0.9.0
25959 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25960 echo "$as_me:$LINENO: checking for pangox" >&5
25961echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25962
25963 if $PKG_CONFIG --exists "pangox" ; then
25964 echo "$as_me:$LINENO: result: yes" >&5
25965echo "${ECHO_T}yes" >&6
25966 succeeded=yes
25967
25968 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25969echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25970 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25971 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25972echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25973
25974 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25975echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25976 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25977 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25978echo "${ECHO_T}$PANGOX_LIBS" >&6
25979 else
25980 PANGOX_CFLAGS=""
25981 PANGOX_LIBS=""
25982 ## If we have a custom action on failure, don't print errors, but
25983 ## do set a variable so people can do so.
25984 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25985
25986 fi
25987
25988
25989
25990 else
25991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25993 fi
25994 fi
25995
25996 if test $succeeded = yes; then
25997
25998 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25999 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
26000
26001 else
26002
26003 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
26004echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
26005 { (exit 1); exit 1; }; }
26006
26007
26008 fi
26009
26010
26011 succeeded=no
26012
26013 if test -z "$PKG_CONFIG"; then
26014 # Extract the first word of "pkg-config", so it can be a program name with args.
26015set dummy pkg-config; ac_word=$2
26016echo "$as_me:$LINENO: checking for $ac_word" >&5
26017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26018if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26020else
26021 case $PKG_CONFIG in
26022 [\\/]* | ?:[\\/]*)
26023 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26024 ;;
26025 *)
26026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26027for as_dir in $PATH
26028do
26029 IFS=$as_save_IFS
26030 test -z "$as_dir" && as_dir=.
26031 for ac_exec_ext in '' $ac_executable_extensions; do
26032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26033 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26035 break 2
26036 fi
26037done
26038done
26039
26040 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26041 ;;
26042esac
26043fi
26044PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26045
26046if test -n "$PKG_CONFIG"; then
26047 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26048echo "${ECHO_T}$PKG_CONFIG" >&6
26049else
26050 echo "$as_me:$LINENO: result: no" >&5
26051echo "${ECHO_T}no" >&6
26052fi
26053
26054 fi
26055
26056 if test "$PKG_CONFIG" = "no" ; then
26057 echo "*** The pkg-config script could not be found. Make sure it is"
26058 echo "*** in your path, or set the PKG_CONFIG environment variable"
26059 echo "*** to the full path to pkg-config."
26060 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26061 else
26062 PKG_CONFIG_MIN_VERSION=0.9.0
26063 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26064 echo "$as_me:$LINENO: checking for pangoft2" >&5
26065echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
26066
26067 if $PKG_CONFIG --exists "pangoft2" ; then
26068 echo "$as_me:$LINENO: result: yes" >&5
26069echo "${ECHO_T}yes" >&6
26070 succeeded=yes
26071
26072 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
26073echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
26074 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
26075 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
26076echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
26077
26078 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
26079echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
26080 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
26081 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
26082echo "${ECHO_T}$PANGOFT2_LIBS" >&6
26083 else
26084 PANGOFT2_CFLAGS=""
26085 PANGOFT2_LIBS=""
26086 ## If we have a custom action on failure, don't print errors, but
26087 ## do set a variable so people can do so.
26088 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
26089
26090 fi
26091
26092
26093
26094 else
26095 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26096 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26097 fi
26098 fi
26099
26100 if test $succeeded = yes; then
26101
26102 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
26103 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
26104
26105 else
26106
26107 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
26108echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
26109 wxUSE_PRINTING_ARCHITECTURE="no"
26110
26111
26112 fi
26113
26114
26115 succeeded=no
26116
26117 if test -z "$PKG_CONFIG"; then
26118 # Extract the first word of "pkg-config", so it can be a program name with args.
26119set dummy pkg-config; ac_word=$2
26120echo "$as_me:$LINENO: checking for $ac_word" >&5
26121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26122if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26123 echo $ECHO_N "(cached) $ECHO_C" >&6
26124else
26125 case $PKG_CONFIG in
26126 [\\/]* | ?:[\\/]*)
26127 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26128 ;;
26129 *)
26130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26131for as_dir in $PATH
26132do
26133 IFS=$as_save_IFS
26134 test -z "$as_dir" && as_dir=.
26135 for ac_exec_ext in '' $ac_executable_extensions; do
26136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26137 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26139 break 2
26140 fi
26141done
26142done
26143
26144 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26145 ;;
26146esac
26147fi
26148PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26149
26150if test -n "$PKG_CONFIG"; then
26151 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26152echo "${ECHO_T}$PKG_CONFIG" >&6
26153else
26154 echo "$as_me:$LINENO: result: no" >&5
26155echo "${ECHO_T}no" >&6
26156fi
26157
26158 fi
26159
26160 if test "$PKG_CONFIG" = "no" ; then
26161 echo "*** The pkg-config script could not be found. Make sure it is"
26162 echo "*** in your path, or set the PKG_CONFIG environment variable"
26163 echo "*** to the full path to pkg-config."
26164 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26165 else
26166 PKG_CONFIG_MIN_VERSION=0.9.0
26167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26168 echo "$as_me:$LINENO: checking for pangoxft" >&5
26169echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
26170
26171 if $PKG_CONFIG --exists "pangoxft" ; then
26172 echo "$as_me:$LINENO: result: yes" >&5
26173echo "${ECHO_T}yes" >&6
26174 succeeded=yes
26175
26176 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
26177echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
26178 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
26179 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
26180echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
26181
26182 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
26183echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
26184 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
26185 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
26186echo "${ECHO_T}$PANGOXFT_LIBS" >&6
26187 else
26188 PANGOXFT_CFLAGS=""
26189 PANGOXFT_LIBS=""
26190 ## If we have a custom action on failure, don't print errors, but
26191 ## do set a variable so people can do so.
26192 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26193
26194 fi
26195
26196
26197
26198 else
26199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26201 fi
26202 fi
26203
26204 if test $succeeded = yes; then
26205
4ae1af05
MB
26206 cat >>confdefs.h <<\_ACEOF
26207#define HAVE_PANGO_XFT 1
26208_ACEOF
26209
a848cd7e
SC
26210 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26211 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26212
26213 else
26214
26215 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26216echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26217
26218
26219 fi
26220
304205f1
VS
26221 save_CFLAGS="$CFLAGS"
26222 save_LIBS="$LIBS"
26223 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26224 LIBS="$LIBS $PANGOX_LIBS"
26225
26226for ac_func in pango_font_family_is_monospace
26227do
26228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26229echo "$as_me:$LINENO: checking for $ac_func" >&5
26230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26231if eval "test \"\${$as_ac_var+set}\" = set"; then
26232 echo $ECHO_N "(cached) $ECHO_C" >&6
26233else
26234 cat >conftest.$ac_ext <<_ACEOF
26235/* confdefs.h. */
26236_ACEOF
26237cat confdefs.h >>conftest.$ac_ext
26238cat >>conftest.$ac_ext <<_ACEOF
26239/* end confdefs.h. */
26240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26242#define $ac_func innocuous_$ac_func
26243
26244/* System header to define __stub macros and hopefully few prototypes,
26245 which can conflict with char $ac_func (); below.
26246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26247 <limits.h> exists even on freestanding compilers. */
26248
26249#ifdef __STDC__
26250# include <limits.h>
26251#else
26252# include <assert.h>
26253#endif
26254
26255#undef $ac_func
26256
26257/* Override any gcc2 internal prototype to avoid an error. */
26258#ifdef __cplusplus
26259extern "C"
26260{
26261#endif
26262/* We use char because int might match the return type of a gcc2
26263 builtin and then its argument prototype would still apply. */
26264char $ac_func ();
26265/* The GNU C library defines this for functions which it implements
26266 to always fail with ENOSYS. Some functions are actually named
26267 something starting with __ and the normal name is an alias. */
26268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26269choke me
26270#else
26271char (*f) () = $ac_func;
26272#endif
26273#ifdef __cplusplus
26274}
26275#endif
26276
26277int
26278main ()
26279{
26280return f != $ac_func;
26281 ;
26282 return 0;
26283}
26284_ACEOF
26285rm -f conftest.$ac_objext conftest$ac_exeext
26286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26287 (eval $ac_link) 2>conftest.er1
26288 ac_status=$?
26289 grep -v '^ *+' conftest.er1 >conftest.err
26290 rm -f conftest.er1
26291 cat conftest.err >&5
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); } &&
da4486fb 26294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
26295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296 (eval $ac_try) 2>&5
26297 ac_status=$?
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); }; } &&
26300 { ac_try='test -s conftest$ac_exeext'
26301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302 (eval $ac_try) 2>&5
26303 ac_status=$?
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); }; }; then
26306 eval "$as_ac_var=yes"
26307else
26308 echo "$as_me: failed program was:" >&5
26309sed 's/^/| /' conftest.$ac_ext >&5
26310
26311eval "$as_ac_var=no"
26312fi
26313rm -f conftest.err conftest.$ac_objext \
26314 conftest$ac_exeext conftest.$ac_ext
26315fi
26316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26317echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26318if test `eval echo '${'$as_ac_var'}'` = yes; then
26319 cat >>confdefs.h <<_ACEOF
26320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26321_ACEOF
26322
26323fi
26324done
26325
26326 CFLAGS="$save_CFLAGS"
26327 LIBS="$save_LIBS"
a848cd7e
SC
26328 fi
26329
26330 wxUSE_UNIVERSAL="yes"
26331
26332 if test "$wxUSE_NANOX" = "yes"; then
26333 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26334 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"
26335 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26336 else
26337 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26338 fi
26339
a848cd7e
SC
26340 TOOLKIT=X11
26341 GUIDIST=X11_DIST
26342 fi
26343
26344 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26345 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26346echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26347
74b84332
VS
26348ac_find_includes=
26349for ac_dir in $SEARCH_INCLUDE /usr/include;
26350 do
26351 if test -f "$ac_dir/Xm/Xm.h"; then
26352 ac_find_includes=$ac_dir
26353 break
26354 fi
26355 done
a848cd7e 26356
74b84332
VS
26357 if test "$ac_find_includes" != "" ; then
26358 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26359echo "${ECHO_T}found in $ac_find_includes" >&6
26360
26361 if test "x$ac_find_includes" = "x/usr/include"; then
26362 ac_path_to_include=""
26363 else
26364 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26365 result=$?
26366 if test $result = 0; then
26367 ac_path_to_include=""
26368 else
26369 ac_path_to_include=" -I$ac_find_includes"
26370 fi
a848cd7e
SC
26371 fi
26372
74b84332
VS
26373 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26374 else
26375 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26376/* confdefs.h. */
26377_ACEOF
26378cat confdefs.h >>conftest.$ac_ext
26379cat >>conftest.$ac_ext <<_ACEOF
26380/* end confdefs.h. */
26381
74b84332
VS
26382 #include <Xm/Xm.h>
26383
a848cd7e
SC
26384int
26385main ()
26386{
26387
74b84332
VS
26388 int version;
26389 version = xmUseVersion;
26390
a848cd7e
SC
26391 ;
26392 return 0;
26393}
26394_ACEOF
74b84332
VS
26395rm -f conftest.$ac_objext
26396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26397 (eval $ac_compile) 2>conftest.er1
a848cd7e 26398 ac_status=$?
ac1cb8d3
VS
26399 grep -v '^ *+' conftest.er1 >conftest.err
26400 rm -f conftest.er1
26401 cat conftest.err >&5
a848cd7e
SC
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); } &&
da4486fb 26404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26407 ac_status=$?
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; } &&
74b84332 26410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412 (eval $ac_try) 2>&5
26413 ac_status=$?
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); }; }; then
74b84332
VS
26416
26417 echo "$as_me:$LINENO: result: found in default search path" >&5
26418echo "${ECHO_T}found in default search path" >&6
26419 COMPILED_X_PROGRAM=1
26420
a848cd7e
SC
26421else
26422 echo "$as_me: failed program was:" >&5
26423sed 's/^/| /' conftest.$ac_ext >&5
26424
a848cd7e 26425
74b84332
VS
26426 echo "$as_me:$LINENO: result: no" >&5
26427echo "${ECHO_T}no" >&6
26428 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26429echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26430 { (exit 1); exit 1; }; }
a848cd7e 26431
a848cd7e 26432
a848cd7e 26433fi
74b84332
VS
26434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26435 fi
26436
26437 if test "$COMPILED_X_PROGRAM" = 0; then
26438 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26439echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26440
26441ac_find_libraries=
26442for ac_dir in $SEARCH_LIB /usr/lib;
26443 do
26444 for ac_extension in a so sl dylib; do
26445 if test -f "$ac_dir/libXm.$ac_extension"; then
26446 ac_find_libraries=$ac_dir
26447 break 2
a848cd7e 26448 fi
74b84332
VS
26449 done
26450 done
a848cd7e 26451
74b84332
VS
26452 if test "$ac_find_libraries" != "" ; then
26453 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26454echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26455
74b84332
VS
26456
26457 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26458 result=$?
26459 if test $result = 0; then
26460 ac_path_to_link=""
a848cd7e 26461 else
74b84332
VS
26462 ac_path_to_link=" -L$ac_find_libraries"
26463 fi
26464
26465 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26466 else
26467 save_CFLAGS=$CFLAGS
26468 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26469
26470 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26471/* confdefs.h. */
26472_ACEOF
26473cat confdefs.h >>conftest.$ac_ext
26474cat >>conftest.$ac_ext <<_ACEOF
26475/* end confdefs.h. */
26476
74b84332
VS
26477 #include <Xm/Xm.h>
26478
a848cd7e
SC
26479int
26480main ()
26481{
74b84332
VS
26482
26483 int version;
26484 version = xmUseVersion;
26485
a848cd7e
SC
26486 ;
26487 return 0;
26488}
26489_ACEOF
74b84332
VS
26490rm -f conftest.$ac_objext
26491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26492 (eval $ac_compile) 2>conftest.er1
a848cd7e 26493 ac_status=$?
ac1cb8d3
VS
26494 grep -v '^ *+' conftest.er1 >conftest.err
26495 rm -f conftest.er1
26496 cat conftest.err >&5
a848cd7e
SC
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); } &&
da4486fb 26499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501 (eval $ac_try) 2>&5
26502 ac_status=$?
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; } &&
74b84332 26505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26507 (eval $ac_try) 2>&5
26508 ac_status=$?
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); }; }; then
74b84332
VS
26511
26512 echo "$as_me:$LINENO: result: found in default search path" >&5
26513echo "${ECHO_T}found in default search path" >&6
26514 COMPILED_X_PROGRAM=1
26515
a848cd7e
SC
26516else
26517 echo "$as_me: failed program was:" >&5
26518sed 's/^/| /' conftest.$ac_ext >&5
26519
74b84332
VS
26520
26521 echo "$as_me:$LINENO: result: no" >&5
26522echo "${ECHO_T}no" >&6
26523 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26524echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26525 { (exit 1); exit 1; }; }
26526
26527
26528fi
26529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26530
26531 CFLAGS=$save_CFLAGS
26532 fi
26533 fi
26534
26535 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26536echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26537 libp_link=""
26538 libsm_ice_link=""
26539 libs_found=0
26540 for libp in "" " -lXp"; do
26541 if test "$libs_found" = "0"; then
26542 for libsm_ice in "" " -lSM -lICE"; do
26543 if test "$libs_found" = "0"; then
26544 save_LIBS="$LIBS"
26545 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26546 save_CFLAGS=$CFLAGS
26547 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26548
26549 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26550/* confdefs.h. */
26551_ACEOF
26552cat confdefs.h >>conftest.$ac_ext
26553cat >>conftest.$ac_ext <<_ACEOF
26554/* end confdefs.h. */
26555
74b84332
VS
26556 #include <Xm/Xm.h>
26557 #include <Xm/List.h>
26558
a848cd7e
SC
26559int
26560main ()
26561{
74b84332
VS
26562
26563 XmString string = NULL;
26564 Widget w = NULL;
26565 int position = 0;
26566 XmListAddItem(w, string, position);
26567
a848cd7e
SC
26568 ;
26569 return 0;
26570}
26571_ACEOF
26572rm -f conftest.$ac_objext conftest$ac_exeext
26573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26574 (eval $ac_link) 2>conftest.er1
a848cd7e 26575 ac_status=$?
ac1cb8d3
VS
26576 grep -v '^ *+' conftest.er1 >conftest.err
26577 rm -f conftest.er1
26578 cat conftest.err >&5
a848cd7e
SC
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); } &&
da4486fb 26581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583 (eval $ac_try) 2>&5
26584 ac_status=$?
26585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 (exit $ac_status); }; } &&
26587 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26589 (eval $ac_try) 2>&5
26590 ac_status=$?
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); }; }; then
26593
26594 libp_link="$libp"
26595 libsm_ice_link="$libsm_ice"
26596 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26597echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26598 libs_found=1
26599
26600else
26601 echo "$as_me: failed program was:" >&5
26602sed 's/^/| /' conftest.$ac_ext >&5
26603
26604
26605
26606fi
ac1cb8d3
VS
26607rm -f conftest.err conftest.$ac_objext \
26608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26609
26610 LIBS="$save_LIBS"
26611 CFLAGS=$save_CFLAGS
26612 fi
26613 done
26614 fi
26615 done
26616
26617 if test "$libs_found" = "0"; then
26618 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26619echo "${ECHO_T}can't find the right libraries" >&6
26620 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26621echo "$as_me: error: can't link a simple motif program" >&2;}
26622 { (exit 1); exit 1; }; }
26623 fi
26624
26625 save_CFLAGS=$CFLAGS
26626 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26627 echo "$as_me:$LINENO: checking for Motif 2" >&5
26628echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26629 cat >conftest.$ac_ext <<_ACEOF
26630/* confdefs.h. */
26631_ACEOF
26632cat confdefs.h >>conftest.$ac_ext
26633cat >>conftest.$ac_ext <<_ACEOF
26634/* end confdefs.h. */
26635
26636 #include <Xm/Xm.h>
26637
26638int
26639main ()
26640{
26641
26642 #if XmVersion < 2000
26643 #error "Not Motif 2"
26644 #endif
26645
26646 ;
26647 return 0;
26648}
26649_ACEOF
26650rm -f conftest.$ac_objext
26651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26652 (eval $ac_compile) 2>conftest.er1
a848cd7e 26653 ac_status=$?
ac1cb8d3
VS
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
a848cd7e
SC
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
da4486fb 26659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; } &&
26665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); }; }; then
26671
26672 cat >>confdefs.h <<\_ACEOF
26673#define __WXMOTIF20__ 1
26674_ACEOF
26675
26676 echo "$as_me:$LINENO: result: found" >&5
26677echo "${ECHO_T}found" >&6
26678
26679else
26680 echo "$as_me: failed program was:" >&5
26681sed 's/^/| /' conftest.$ac_ext >&5
26682
26683
26684 cat >>confdefs.h <<\_ACEOF
26685#define __WXMOTIF20__ 0
26686_ACEOF
26687
26688 echo "$as_me:$LINENO: result: not found" >&5
26689echo "${ECHO_T}not found" >&6
26690
26691fi
ac1cb8d3 26692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26693 CFLAGS=$save_CFLAGS
26694
26695 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26696 TOOLKIT=MOTIF
26697 GUIDIST=MOTIF_DIST
26698 fi
26699
74b84332 26700 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26701 if test "$wxUSE_LIBXPM" = "sys"; then
26702 echo "$as_me:$LINENO: checking for Xpm library" >&5
26703echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26704
26705ac_find_libraries=
26706for ac_dir in $SEARCH_LIB /usr/lib;
26707 do
26708 for ac_extension in a so sl dylib; do
26709 if test -f "$ac_dir/libXpm.$ac_extension"; then
26710 ac_find_libraries=$ac_dir
26711 break 2
26712 fi
26713 done
26714 done
26715
26716 if test "$ac_find_libraries" != "" ; then
26717
26718 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26719 result=$?
26720 if test $result = 0; then
26721 ac_path_to_link=""
26722 else
26723 ac_path_to_link=" -L$ac_find_libraries"
26724 fi
26725
26726 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26727 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26728echo "${ECHO_T}found at $ac_find_libraries" >&6
26729
26730 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26731echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26732if test "${wx_cv_x11_xpm_h+set}" = set; then
26733 echo $ECHO_N "(cached) $ECHO_C" >&6
26734else
26735
26736 save_CFLAGS=$CFLAGS
26737 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26738
26739 cat >conftest.$ac_ext <<_ACEOF
26740/* confdefs.h. */
26741_ACEOF
26742cat confdefs.h >>conftest.$ac_ext
26743cat >>conftest.$ac_ext <<_ACEOF
26744/* end confdefs.h. */
26745
26746 #include <X11/xpm.h>
26747
26748int
26749main ()
26750{
26751
26752 int version;
26753 version = XpmLibraryVersion();
26754
26755 ;
26756 return 0;
26757}
26758_ACEOF
26759rm -f conftest.$ac_objext
26760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26761 (eval $ac_compile) 2>conftest.er1
a848cd7e 26762 ac_status=$?
ac1cb8d3
VS
26763 grep -v '^ *+' conftest.er1 >conftest.err
26764 rm -f conftest.er1
26765 cat conftest.err >&5
a848cd7e
SC
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } &&
da4486fb 26768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770 (eval $ac_try) 2>&5
26771 ac_status=$?
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); }; } &&
26774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26776 (eval $ac_try) 2>&5
26777 ac_status=$?
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); }; }; then
26780 wx_cv_x11_xpm_h=yes
26781else
26782 echo "$as_me: failed program was:" >&5
26783sed 's/^/| /' conftest.$ac_ext >&5
26784
26785wx_cv_x11_xpm_h=no
26786
26787fi
ac1cb8d3 26788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26789
26790 CFLAGS=$save_CFLAGS
26791
26792
26793fi
26794echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26795echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26796
26797 if test $wx_cv_x11_xpm_h = "yes"; then
26798 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26799 cat >>confdefs.h <<\_ACEOF
26800#define wxHAVE_LIB_XPM 1
26801_ACEOF
26802
26803 else
26804 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26805echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26806 fi
26807 fi
26808
26809 fi
26810
26811 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26812echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26813if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26814 echo $ECHO_N "(cached) $ECHO_C" >&6
26815else
26816 ac_check_lib_save_LIBS=$LIBS
26817LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26818cat >conftest.$ac_ext <<_ACEOF
26819/* confdefs.h. */
26820_ACEOF
26821cat confdefs.h >>conftest.$ac_ext
26822cat >>conftest.$ac_ext <<_ACEOF
26823/* end confdefs.h. */
26824
26825/* Override any gcc2 internal prototype to avoid an error. */
26826#ifdef __cplusplus
26827extern "C"
26828#endif
26829/* We use char because int might match the return type of a gcc2
26830 builtin and then its argument prototype would still apply. */
26831char XShapeQueryExtension ();
26832int
26833main ()
26834{
26835XShapeQueryExtension ();
26836 ;
26837 return 0;
26838}
26839_ACEOF
26840rm -f conftest.$ac_objext conftest$ac_exeext
26841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26842 (eval $ac_link) 2>conftest.er1
a848cd7e 26843 ac_status=$?
ac1cb8d3
VS
26844 grep -v '^ *+' conftest.er1 >conftest.err
26845 rm -f conftest.er1
26846 cat conftest.err >&5
a848cd7e
SC
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); } &&
da4486fb 26849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26852 ac_status=$?
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; } &&
26855 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857 (eval $ac_try) 2>&5
26858 ac_status=$?
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); }; }; then
26861 ac_cv_lib_Xext_XShapeQueryExtension=yes
26862else
26863 echo "$as_me: failed program was:" >&5
26864sed 's/^/| /' conftest.$ac_ext >&5
26865
26866ac_cv_lib_Xext_XShapeQueryExtension=no
26867fi
ac1cb8d3
VS
26868rm -f conftest.err conftest.$ac_objext \
26869 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26870LIBS=$ac_check_lib_save_LIBS
26871fi
26872echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26873echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26874if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26875
26876 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26877 wxHAVE_XEXT_LIB=1
26878
26879fi
26880
26881
26882 if test "$wxHAVE_XEXT_LIB" = 1; then
26883 save_CFLAGS="$CFLAGS"
26884 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26885
26886 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26887echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26888 cat >conftest.$ac_ext <<_ACEOF
26889/* confdefs.h. */
26890_ACEOF
26891cat confdefs.h >>conftest.$ac_ext
26892cat >>conftest.$ac_ext <<_ACEOF
26893/* end confdefs.h. */
26894
26895 #include <X11/Xlib.h>
26896 #include <X11/extensions/shape.h>
26897
26898int
26899main ()
26900{
26901
26902 int dummy1, dummy2;
26903 XShapeQueryExtension((Display*)NULL,
26904 (int*)NULL, (int*)NULL);
26905
26906 ;
26907 return 0;
26908}
26909_ACEOF
26910rm -f conftest.$ac_objext
26911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26912 (eval $ac_compile) 2>conftest.er1
a848cd7e 26913 ac_status=$?
ac1cb8d3
VS
26914 grep -v '^ *+' conftest.er1 >conftest.err
26915 rm -f conftest.er1
26916 cat conftest.err >&5
a848cd7e
SC
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); } &&
da4486fb 26919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; } &&
26925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26927 (eval $ac_try) 2>&5
26928 ac_status=$?
26929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930 (exit $ac_status); }; }; then
26931
26932 cat >>confdefs.h <<\_ACEOF
26933#define HAVE_XSHAPE 1
26934_ACEOF
26935
26936 echo "$as_me:$LINENO: result: found" >&5
26937echo "${ECHO_T}found" >&6
26938
26939else
26940 echo "$as_me: failed program was:" >&5
26941sed 's/^/| /' conftest.$ac_ext >&5
26942
26943
26944 echo "$as_me:$LINENO: result: not found" >&5
26945echo "${ECHO_T}not found" >&6
26946
26947fi
ac1cb8d3 26948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26949 CFLAGS="$save_CFLAGS"
26950
26951 fi
26952 fi
26953
26954 if test "$wxUSE_MAC" = 1; then
26955 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26956echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26957 if test "$GCC" = yes; then
26958 echo "$as_me:$LINENO: result: gcc" >&5
26959echo "${ECHO_T}gcc" >&6
26960 CPPFLAGS_PASCAL="-fpascal-strings"
26961 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26962 echo "$as_me:$LINENO: result: xlc" >&5
26963echo "${ECHO_T}xlc" >&6
26964 CPPFLAGS_PASCAL="-qmacpstr"
26965 else
26966 echo "$as_me:$LINENO: result: none" >&5
26967echo "${ECHO_T}none" >&6
26968 fi
26969
1e9e8aba
DE
26970 if test "x$wxUSE_UNIX" = "xyes"; then
26971 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26972 else
26973 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
26974 fi
a848cd7e 26975
a848cd7e
SC
26976 TOOLKIT=MAC
26977 GUIDIST=MACX_DIST
dd21ced8 26978 WXBASEPORT="_carbon"
a848cd7e
SC
26979 fi
26980
26981 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26982 TOOLKIT=COCOA
26983 GUIDIST=COCOA_DIST
26984 fi
26985
26986 if test "$wxUSE_PM" = 1; then
26987 TOOLKIT=PM
de59c161
RD
26988 GUIDIST=PM_DIST
26989 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26990echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26991if test "${wx_cv_spbcdata+set}" = set; then
26992 echo $ECHO_N "(cached) $ECHO_C" >&6
26993else
26994
26995 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26996/* confdefs.h. */
26997_ACEOF
26998cat confdefs.h >>conftest.$ac_ext
26999cat >>conftest.$ac_ext <<_ACEOF
27000/* end confdefs.h. */
27001
27002 #define INCL_PM
27003 #include <os2.h>
27004
27005int
27006main ()
27007{
27008
27009 SPBCDATA test;
27010
27011 ;
27012 return 0;
27013}
27014_ACEOF
27015rm -f conftest.$ac_objext
27016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27017 (eval $ac_compile) 2>conftest.er1
de59c161 27018 ac_status=$?
ac1cb8d3
VS
27019 grep -v '^ *+' conftest.er1 >conftest.err
27020 rm -f conftest.er1
27021 cat conftest.err >&5
de59c161
RD
27022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023 (exit $ac_status); } &&
da4486fb 27024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27026 (eval $ac_try) 2>&5
27027 ac_status=$?
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); }; } &&
27030 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
27031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032 (eval $ac_try) 2>&5
27033 ac_status=$?
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); }; }; then
27036 wx_cv_spbcdata=yes
27037else
27038 echo "$as_me: failed program was:" >&5
27039sed 's/^/| /' conftest.$ac_ext >&5
27040
27041wx_cv_spbcdata=no
27042
27043fi
ac1cb8d3 27044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
27045
27046
27047fi
27048echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27049echo "${ECHO_T}$wx_cv_spbcdata" >&6
27050
27051 if test $wx_cv_spbcdata = "yes"; then
27052 cat >>confdefs.h <<\_ACEOF
27053#define HAVE_SPBCDATA 1
27054_ACEOF
27055
27056 fi
a848cd7e
SC
27057 fi
27058
27059 if test "$TOOLKIT" = "PM" ; then
27060 TOOLKIT_DIR="os2"
27061 else
27062 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27063 fi
27064
a848cd7e 27065 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
27066 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27067 WIDGET_SET=univ
a848cd7e
SC
27068 fi
27069
27070 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27071 DISTDIR="wx\$(TOOLKIT)"
27072else
27073 USE_GUI=0
27074
27075 TOOLKIT_DIR="base"
27076
27077 if test "$USE_WIN32" = 1 ; then
a848cd7e 27078 TOOLKIT="MSW"
a848cd7e
SC
27079 fi
27080
a848cd7e
SC
27081 GUIDIST="BASE_DIST"
27082 DISTDIR="wxBase"
27083fi
27084
27085
27086
27087
27088IODBC_C_SRC=""
27089
27090
27091if test "$TOOLKIT" != "MSW" ; then
27092
27093 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27094
27095 if test "${ac_cv_header_sql_h+set}" = set; then
27096 echo "$as_me:$LINENO: checking for sql.h" >&5
27097echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27098if test "${ac_cv_header_sql_h+set}" = set; then
27099 echo $ECHO_N "(cached) $ECHO_C" >&6
27100fi
27101echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27102echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27103else
27104 # Is the header compilable?
27105echo "$as_me:$LINENO: checking sql.h usability" >&5
27106echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27107cat >conftest.$ac_ext <<_ACEOF
27108/* confdefs.h. */
27109_ACEOF
27110cat confdefs.h >>conftest.$ac_ext
27111cat >>conftest.$ac_ext <<_ACEOF
27112/* end confdefs.h. */
27113$ac_includes_default
27114#include <sql.h>
27115_ACEOF
27116rm -f conftest.$ac_objext
27117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27118 (eval $ac_compile) 2>conftest.er1
a848cd7e 27119 ac_status=$?
ac1cb8d3
VS
27120 grep -v '^ *+' conftest.er1 >conftest.err
27121 rm -f conftest.er1
27122 cat conftest.err >&5
a848cd7e
SC
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); } &&
da4486fb 27125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27128 ac_status=$?
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; } &&
27131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133 (eval $ac_try) 2>&5
27134 ac_status=$?
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27137 ac_header_compiler=yes
27138else
27139 echo "$as_me: failed program was:" >&5
27140sed 's/^/| /' conftest.$ac_ext >&5
27141
27142ac_header_compiler=no
27143fi
ac1cb8d3 27144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27145echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27146echo "${ECHO_T}$ac_header_compiler" >&6
27147
27148# Is the header present?
27149echo "$as_me:$LINENO: checking sql.h presence" >&5
27150echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27151cat >conftest.$ac_ext <<_ACEOF
27152/* confdefs.h. */
27153_ACEOF
27154cat confdefs.h >>conftest.$ac_ext
27155cat >>conftest.$ac_ext <<_ACEOF
27156/* end confdefs.h. */
27157#include <sql.h>
27158_ACEOF
27159if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27161 ac_status=$?
27162 grep -v '^ *+' conftest.er1 >conftest.err
27163 rm -f conftest.er1
27164 cat conftest.err >&5
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); } >/dev/null; then
27167 if test -s conftest.err; then
27168 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27170 else
27171 ac_cpp_err=
27172 fi
27173else
27174 ac_cpp_err=yes
27175fi
27176if test -z "$ac_cpp_err"; then
27177 ac_header_preproc=yes
27178else
27179 echo "$as_me: failed program was:" >&5
27180sed 's/^/| /' conftest.$ac_ext >&5
27181
27182 ac_header_preproc=no
27183fi
27184rm -f conftest.err conftest.$ac_ext
27185echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27186echo "${ECHO_T}$ac_header_preproc" >&6
27187
27188# So? What about this header?
ac1cb8d3
VS
27189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27190 yes:no: )
a848cd7e
SC
27191 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27192echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27193 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27194echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27195 ac_header_preproc=yes
a848cd7e 27196 ;;
ac1cb8d3 27197 no:yes:* )
a848cd7e
SC
27198 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27199echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27200 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27201echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27202 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27203echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27204 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27205echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27206 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27207echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27208 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27209echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27210 (
27211 cat <<\_ASBOX
ac1cb8d3
VS
27212## ----------------------------------------- ##
27213## Report this to wx-dev@lists.wxwidgets.org ##
27214## ----------------------------------------- ##
a848cd7e
SC
27215_ASBOX
27216 ) |
27217 sed "s/^/$as_me: WARNING: /" >&2
27218 ;;
27219esac
27220echo "$as_me:$LINENO: checking for sql.h" >&5
27221echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27222if test "${ac_cv_header_sql_h+set}" = set; then
27223 echo $ECHO_N "(cached) $ECHO_C" >&6
27224else
27225 ac_cv_header_sql_h=$ac_header_preproc
27226fi
27227echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27228echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27229
27230fi
27231if test $ac_cv_header_sql_h = yes; then
27232 found_sql_h=1
27233fi
27234
27235
27236 if test "x$found_sql_h" = "x1" ; then
27237 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27238echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27239if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27240 echo $ECHO_N "(cached) $ECHO_C" >&6
27241else
27242 ac_check_lib_save_LIBS=$LIBS
27243LIBS="-liodbc $LIBS"
27244cat >conftest.$ac_ext <<_ACEOF
27245/* confdefs.h. */
27246_ACEOF
27247cat confdefs.h >>conftest.$ac_ext
27248cat >>conftest.$ac_ext <<_ACEOF
27249/* end confdefs.h. */
27250
27251/* Override any gcc2 internal prototype to avoid an error. */
27252#ifdef __cplusplus
27253extern "C"
27254#endif
27255/* We use char because int might match the return type of a gcc2
27256 builtin and then its argument prototype would still apply. */
27257char SQLAllocEnv ();
27258int
27259main ()
27260{
27261SQLAllocEnv ();
27262 ;
27263 return 0;
27264}
27265_ACEOF
27266rm -f conftest.$ac_objext conftest$ac_exeext
27267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27268 (eval $ac_link) 2>conftest.er1
a848cd7e 27269 ac_status=$?
ac1cb8d3
VS
27270 grep -v '^ *+' conftest.er1 >conftest.err
27271 rm -f conftest.er1
27272 cat conftest.err >&5
a848cd7e
SC
27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274 (exit $ac_status); } &&
da4486fb 27275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27277 (eval $ac_try) 2>&5
27278 ac_status=$?
27279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); }; } &&
27281 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283 (eval $ac_try) 2>&5
27284 ac_status=$?
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; }; then
27287 ac_cv_lib_iodbc_SQLAllocEnv=yes
27288else
27289 echo "$as_me: failed program was:" >&5
27290sed 's/^/| /' conftest.$ac_ext >&5
27291
27292ac_cv_lib_iodbc_SQLAllocEnv=no
27293fi
ac1cb8d3
VS
27294rm -f conftest.err conftest.$ac_objext \
27295 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27296LIBS=$ac_check_lib_save_LIBS
27297fi
27298echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27299echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27300if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27301 ODBC_LINK=" -liodbc"
27302else
27303
27304 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27305echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27306if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27307 echo $ECHO_N "(cached) $ECHO_C" >&6
27308else
27309 ac_check_lib_save_LIBS=$LIBS
27310LIBS="-lunixodbc $LIBS"
27311cat >conftest.$ac_ext <<_ACEOF
27312/* confdefs.h. */
27313_ACEOF
27314cat confdefs.h >>conftest.$ac_ext
27315cat >>conftest.$ac_ext <<_ACEOF
27316/* end confdefs.h. */
27317
27318/* Override any gcc2 internal prototype to avoid an error. */
27319#ifdef __cplusplus
27320extern "C"
27321#endif
27322/* We use char because int might match the return type of a gcc2
27323 builtin and then its argument prototype would still apply. */
27324char SQLAllocEnv ();
27325int
27326main ()
27327{
27328SQLAllocEnv ();
27329 ;
27330 return 0;
27331}
27332_ACEOF
27333rm -f conftest.$ac_objext conftest$ac_exeext
27334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27335 (eval $ac_link) 2>conftest.er1
a848cd7e 27336 ac_status=$?
ac1cb8d3
VS
27337 grep -v '^ *+' conftest.er1 >conftest.err
27338 rm -f conftest.er1
27339 cat conftest.err >&5
a848cd7e
SC
27340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341 (exit $ac_status); } &&
da4486fb 27342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27344 (eval $ac_try) 2>&5
27345 ac_status=$?
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); }; } &&
27348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350 (eval $ac_try) 2>&5
27351 ac_status=$?
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); }; }; then
27354 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27355else
27356 echo "$as_me: failed program was:" >&5
27357sed 's/^/| /' conftest.$ac_ext >&5
27358
27359ac_cv_lib_unixodbc_SQLAllocEnv=no
27360fi
ac1cb8d3
VS
27361rm -f conftest.err conftest.$ac_objext \
27362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27363LIBS=$ac_check_lib_save_LIBS
27364fi
27365echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27366echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27367if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27368 ODBC_LINK=" -lunixodbc"
27369else
27370
27371 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27372echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27373if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27374 echo $ECHO_N "(cached) $ECHO_C" >&6
27375else
27376 ac_check_lib_save_LIBS=$LIBS
27377LIBS="-lodbc $LIBS"
27378cat >conftest.$ac_ext <<_ACEOF
27379/* confdefs.h. */
27380_ACEOF
27381cat confdefs.h >>conftest.$ac_ext
27382cat >>conftest.$ac_ext <<_ACEOF
27383/* end confdefs.h. */
27384
27385/* Override any gcc2 internal prototype to avoid an error. */
27386#ifdef __cplusplus
27387extern "C"
27388#endif
27389/* We use char because int might match the return type of a gcc2
27390 builtin and then its argument prototype would still apply. */
27391char SQLAllocEnv ();
27392int
27393main ()
27394{
27395SQLAllocEnv ();
27396 ;
27397 return 0;
27398}
27399_ACEOF
27400rm -f conftest.$ac_objext conftest$ac_exeext
27401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27402 (eval $ac_link) 2>conftest.er1
a848cd7e 27403 ac_status=$?
ac1cb8d3
VS
27404 grep -v '^ *+' conftest.er1 >conftest.err
27405 rm -f conftest.er1
27406 cat conftest.err >&5
a848cd7e
SC
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); } &&
da4486fb 27409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; } &&
27415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27417 (eval $ac_try) 2>&5
27418 ac_status=$?
27419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); }; }; then
27421 ac_cv_lib_odbc_SQLAllocEnv=yes
27422else
27423 echo "$as_me: failed program was:" >&5
27424sed 's/^/| /' conftest.$ac_ext >&5
27425
27426ac_cv_lib_odbc_SQLAllocEnv=no
27427fi
ac1cb8d3
VS
27428rm -f conftest.err conftest.$ac_objext \
27429 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27430LIBS=$ac_check_lib_save_LIBS
27431fi
27432echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27433echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27434if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27435 ODBC_LINK=" -lodbc"
27436fi
27437
27438
27439fi
27440
27441
27442fi
27443
27444 fi
27445 if test "x$ODBC_LINK" = "x" ; then
27446 if test "$wxUSE_ODBC" = "sys" ; then
27447 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27448echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27449 { (exit 1); exit 1; }; }
27450 else
27451 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27452echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27453 wxUSE_ODBC=builtin
27454 fi
27455 else
27456 wxUSE_ODBC=sys
27457 fi
27458 fi
27459 if test "$wxUSE_ODBC" != "no" ; then
27460 cat >>confdefs.h <<\_ACEOF
27461#define wxUSE_ODBC 1
27462_ACEOF
27463
27464 if test "$wxUSE_ODBC" = "builtin" ; then
27465 cat >>confdefs.h <<\_ACEOF
27466#define wxUSE_BUILTIN_IODBC 1
27467_ACEOF
27468
27469 fi
27470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27471
27472 WXODBCFLAG="-D_IODBC_"
27473 fi
27474fi
27475
a848cd7e 27476
01cb68df 27477
a848cd7e 27478if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27479 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27480 echo "$as_me:$LINENO: checking for Xinerama" >&5
27481echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27482
27483ac_find_libraries=
27484for ac_dir in $SEARCH_LIB /usr/lib;
27485 do
27486 for ac_extension in a so sl dylib; do
27487 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27488 ac_find_libraries=$ac_dir
27489 break 2
27490 fi
27491 done
27492 done
27493
27494 if test "$ac_find_libraries" != "" ; then
27495
27496 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27497 result=$?
27498 if test $result = 0; then
27499 ac_path_to_link=""
27500 else
27501 ac_path_to_link=" -L$ac_find_libraries"
27502 fi
27503
27504 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27505 LDFLAGS="$LDFLAGS $ac_path_to_link"
27506 fi
27507 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27508 echo "$as_me:$LINENO: result: yes" >&5
27509echo "${ECHO_T}yes" >&6
27510
27511 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27512echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27513
27514ac_find_libraries=
27515for ac_dir in $SEARCH_LIB /usr/lib;
27516 do
27517 for ac_extension in a so sl dylib; do
27518 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27519 ac_find_libraries=$ac_dir
27520 break 2
27521 fi
27522 done
27523 done
27524
27525 if test "$ac_find_libraries" != "" ; then
27526 echo "$as_me:$LINENO: result: yes" >&5
27527echo "${ECHO_T}yes" >&6
27528
27529for ac_header in X11/extensions/xf86vmode.h
27530do
27531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27532echo "$as_me:$LINENO: checking for $ac_header" >&5
27533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27534if eval "test \"\${$as_ac_Header+set}\" = set"; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27536else
27537 cat >conftest.$ac_ext <<_ACEOF
27538/* confdefs.h. */
27539_ACEOF
27540cat confdefs.h >>conftest.$ac_ext
27541cat >>conftest.$ac_ext <<_ACEOF
27542/* end confdefs.h. */
27543
27544 #if HAVE_X11_XLIB_H
27545 #include <X11/Xlib.h>
27546 #endif
27547
27548
27549#include <$ac_header>
27550_ACEOF
27551rm -f conftest.$ac_objext
27552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27553 (eval $ac_compile) 2>conftest.er1
a848cd7e 27554 ac_status=$?
ac1cb8d3
VS
27555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
a848cd7e
SC
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } &&
da4486fb 27560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27562 (eval $ac_try) 2>&5
27563 ac_status=$?
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); }; } &&
27566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27568 (eval $ac_try) 2>&5
27569 ac_status=$?
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); }; }; then
27572 eval "$as_ac_Header=yes"
27573else
27574 echo "$as_me: failed program was:" >&5
27575sed 's/^/| /' conftest.$ac_ext >&5
27576
27577eval "$as_ac_Header=no"
27578fi
ac1cb8d3 27579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27580fi
27581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27583if test `eval echo '${'$as_ac_Header'}'` = yes; then
27584 cat >>confdefs.h <<_ACEOF
27585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27586_ACEOF
27587
27588 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27589
27590fi
27591
27592done
27593
27594 else
27595 echo "$as_me:$LINENO: result: no" >&5
27596echo "${ECHO_T}no" >&6
27597 fi
27598
27599 else
27600 echo "$as_me:$LINENO: result: no" >&5
27601echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27602 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27603echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27604 wxUSE_DISPLAY="no"
27605 fi
01cb68df
RG
27606 elif test "$wxUSE_MSW" = 1; then
27607
27608
27609for ac_header in multimon.h ddraw.h
27610do
27611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27612echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
27613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27614if eval "test \"\${$as_ac_Header+set}\" = set"; then
27615 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 27616else
5294a27e 27617 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
27618/* confdefs.h. */
27619_ACEOF
27620cat confdefs.h >>conftest.$ac_ext
27621cat >>conftest.$ac_ext <<_ACEOF
27622/* end confdefs.h. */
5294a27e
VZ
27623#include <windows.h>
27624
01cb68df
RG
27625#include <$ac_header>
27626_ACEOF
27627rm -f conftest.$ac_objext
27628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27629 (eval $ac_compile) 2>conftest.er1
01cb68df 27630 ac_status=$?
ac1cb8d3
VS
27631 grep -v '^ *+' conftest.er1 >conftest.err
27632 rm -f conftest.er1
27633 cat conftest.err >&5
01cb68df
RG
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); } &&
da4486fb 27636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27638 (eval $ac_try) 2>&5
27639 ac_status=$?
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; } &&
27642 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27644 (eval $ac_try) 2>&5
27645 ac_status=$?
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); }; }; then
5294a27e 27648 eval "$as_ac_Header=yes"
01cb68df
RG
27649else
27650 echo "$as_me: failed program was:" >&5
27651sed 's/^/| /' conftest.$ac_ext >&5
27652
5294a27e 27653eval "$as_ac_Header=no"
01cb68df 27654fi
ac1cb8d3 27655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27656fi
27657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
27659if test `eval echo '${'$as_ac_Header'}'` = yes; then
27660 cat >>confdefs.h <<_ACEOF
27661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27662_ACEOF
27663
27664else
27665
5294a27e
VZ
27666 wxUSE_DISPLAY="no"
27667 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 27668echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27669
27670fi
27671
27672done
27673
a848cd7e
SC
27674 fi
27675fi
27676
27677
3b57de8b
RL
27678if test "$wxUSE_MEDIACTRL" = "yes"; then
27679 if test "$wxUSE_MSW" = 1; then
27680 wxUSE_DIRECTSHOW="yes"
27681
27682for ac_header in dshow.h
27683do
27684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27685echo "$as_me:$LINENO: checking for $ac_header" >&5
3b57de8b
RL
27686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27687if eval "test \"\${$as_ac_Header+set}\" = set"; then
27688 echo $ECHO_N "(cached) $ECHO_C" >&6
3b57de8b 27689else
5294a27e 27690 cat >conftest.$ac_ext <<_ACEOF
3b57de8b
RL
27691/* confdefs.h. */
27692_ACEOF
27693cat confdefs.h >>conftest.$ac_ext
27694cat >>conftest.$ac_ext <<_ACEOF
27695/* end confdefs.h. */
5294a27e
VZ
27696#include <windows.h>
27697
3b57de8b
RL
27698#include <$ac_header>
27699_ACEOF
27700rm -f conftest.$ac_objext
27701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27702 (eval $ac_compile) 2>conftest.er1
27703 ac_status=$?
27704 grep -v '^ *+' conftest.er1 >conftest.err
27705 rm -f conftest.er1
27706 cat conftest.err >&5
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); } &&
da4486fb 27709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3b57de8b
RL
27710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711 (eval $ac_try) 2>&5
27712 ac_status=$?
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); }; } &&
27715 { ac_try='test -s conftest.$ac_objext'
27716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27717 (eval $ac_try) 2>&5
27718 ac_status=$?
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); }; }; then
5294a27e 27721 eval "$as_ac_Header=yes"
3b57de8b
RL
27722else
27723 echo "$as_me: failed program was:" >&5
27724sed 's/^/| /' conftest.$ac_ext >&5
27725
5294a27e 27726eval "$as_ac_Header=no"
3b57de8b
RL
27727fi
27728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3b57de8b
RL
27729fi
27730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3b57de8b
RL
27732if test `eval echo '${'$as_ac_Header'}'` = yes; then
27733 cat >>confdefs.h <<_ACEOF
27734#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27735_ACEOF
27736
27737else
27738
5294a27e
VZ
27739 wxUSE_DIRECTSHOW="no"
27740 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
3b57de8b
RL
27741echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27742
27743fi
27744
27745done
27746
27747
27748 if test "$wxUSE_DIRECTSHOW" = "yes"; then
5294a27e 27749 cat >>confdefs.h <<\_ACEOF
3b57de8b
RL
27750#define wxUSE_DIRECTSHOW 1
27751_ACEOF
27752
5294a27e 27753 LIBS="$LIBS -lstrmiids"
a98bf0c0 27754 fi
3b57de8b 27755 fi
7e4a1c28 27756
fa9ad408 27757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
7e4a1c28
RN
27758 cat >>confdefs.h <<\_ACEOF
27759#define wxUSE_MEDIACTRL 1
27760_ACEOF
27761
3b57de8b
RL
27762fi
27763
27764
a848cd7e
SC
27765USE_OPENGL=0
27766if test "$wxUSE_OPENGL" = "yes"; then
27767 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27768 OPENGL_LIBS="-framework OpenGL -framework AGL"
27769 elif test "$wxUSE_MSW" = 1; then
27770 OPENGL_LIBS="-lopengl32 -lglu32"
27771 else
27772
27773
27774ac_find_includes=
27775for ac_dir in $SEARCH_INCLUDE /usr/include;
27776 do
27777 if test -f "$ac_dir/GL/gl.h"; then
27778 ac_find_includes=$ac_dir
27779 break
27780 fi
27781 done
27782
27783 if test "$ac_find_includes" != "" ; then
27784 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27785echo "${ECHO_T}found in $ac_find_includes" >&6
27786
27787 if test "x$ac_find_includes" = "x/usr/include"; then
27788 ac_path_to_include=""
27789 else
27790 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27791 result=$?
27792 if test $result = 0; then
27793 ac_path_to_include=""
27794 else
27795 ac_path_to_include=" -I$ac_find_includes"
27796 fi
27797 fi
27798
27799 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27800 fi
27801
27802 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27803 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27804echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27805if test "${ac_cv_header_GL_gl_h+set}" = set; then
27806 echo $ECHO_N "(cached) $ECHO_C" >&6
27807fi
27808echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27809echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27810else
27811 # Is the header compilable?
27812echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27813echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27814cat >conftest.$ac_ext <<_ACEOF
27815/* confdefs.h. */
27816_ACEOF
27817cat confdefs.h >>conftest.$ac_ext
27818cat >>conftest.$ac_ext <<_ACEOF
27819/* end confdefs.h. */
27820$ac_includes_default
27821#include <GL/gl.h>
27822_ACEOF
27823rm -f conftest.$ac_objext
27824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27825 (eval $ac_compile) 2>conftest.er1
a848cd7e 27826 ac_status=$?
ac1cb8d3
VS
27827 grep -v '^ *+' conftest.er1 >conftest.err
27828 rm -f conftest.er1
27829 cat conftest.err >&5
a848cd7e
SC
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); } &&
da4486fb 27832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27834 (eval $ac_try) 2>&5
27835 ac_status=$?
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); }; } &&
27838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27841 ac_status=$?
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; }; then
27844 ac_header_compiler=yes
27845else
27846 echo "$as_me: failed program was:" >&5
27847sed 's/^/| /' conftest.$ac_ext >&5
27848
27849ac_header_compiler=no
27850fi
ac1cb8d3 27851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27853echo "${ECHO_T}$ac_header_compiler" >&6
27854
27855# Is the header present?
27856echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27857echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27858cat >conftest.$ac_ext <<_ACEOF
27859/* confdefs.h. */
27860_ACEOF
27861cat confdefs.h >>conftest.$ac_ext
27862cat >>conftest.$ac_ext <<_ACEOF
27863/* end confdefs.h. */
27864#include <GL/gl.h>
27865_ACEOF
27866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27868 ac_status=$?
27869 grep -v '^ *+' conftest.er1 >conftest.err
27870 rm -f conftest.er1
27871 cat conftest.err >&5
27872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873 (exit $ac_status); } >/dev/null; then
27874 if test -s conftest.err; then
27875 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27877 else
27878 ac_cpp_err=
27879 fi
27880else
27881 ac_cpp_err=yes
27882fi
27883if test -z "$ac_cpp_err"; then
27884 ac_header_preproc=yes
27885else
27886 echo "$as_me: failed program was:" >&5
27887sed 's/^/| /' conftest.$ac_ext >&5
27888
27889 ac_header_preproc=no
27890fi
27891rm -f conftest.err conftest.$ac_ext
27892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27893echo "${ECHO_T}$ac_header_preproc" >&6
27894
27895# So? What about this header?
ac1cb8d3
VS
27896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27897 yes:no: )
a848cd7e
SC
27898 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27899echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27900 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27901echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27902 ac_header_preproc=yes
a848cd7e 27903 ;;
ac1cb8d3 27904 no:yes:* )
a848cd7e
SC
27905 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27906echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27907 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27908echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27909 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27910echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27911 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27912echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27913 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27914echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27915 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27916echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27917 (
27918 cat <<\_ASBOX
ac1cb8d3
VS
27919## ----------------------------------------- ##
27920## Report this to wx-dev@lists.wxwidgets.org ##
27921## ----------------------------------------- ##
a848cd7e
SC
27922_ASBOX
27923 ) |
27924 sed "s/^/$as_me: WARNING: /" >&2
27925 ;;
27926esac
27927echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27928echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27929if test "${ac_cv_header_GL_gl_h+set}" = set; then
27930 echo $ECHO_N "(cached) $ECHO_C" >&6
27931else
27932 ac_cv_header_GL_gl_h=$ac_header_preproc
27933fi
27934echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27935echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27936
27937fi
27938if test $ac_cv_header_GL_gl_h = yes; then
27939
27940 found_gl=0
27941
27942 echo "$as_me:$LINENO: checking for -lGL" >&5
27943echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27944
27945ac_find_libraries=
27946for ac_dir in $SEARCH_LIB /usr/lib;
27947 do
27948 for ac_extension in a so sl dylib; do
27949 if test -f "$ac_dir/libGL.$ac_extension"; then
27950 ac_find_libraries=$ac_dir
27951 break 2
27952 fi
27953 done
27954 done
27955
27956 if test "$ac_find_libraries" != "" ; then
27957
27958 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27959 result=$?
27960 if test $result = 0; then
27961 ac_path_to_link=""
27962 else
27963 ac_path_to_link=" -L$ac_find_libraries"
27964 fi
27965
27966 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27967 LDFLAGS_GL="$ac_path_to_link"
27968 fi
27969
27970
27971ac_find_libraries=
27972for ac_dir in $SEARCH_LIB /usr/lib;
27973 do
27974 for ac_extension in a so sl dylib; do
27975 if test -f "$ac_dir/libGLU.$ac_extension"; then
27976 ac_find_libraries=$ac_dir
27977 break 2
27978 fi
27979 done
27980 done
27981
27982 if test "$ac_find_libraries" != "" ; then
27983
27984 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27985 result=$?
27986 if test $result = 0; then
27987 ac_path_to_link=""
27988 else
27989 ac_path_to_link=" -L$ac_find_libraries"
27990 fi
27991
27992 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27993 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27994 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27995 fi
27996
27997 found_gl=1
27998 OPENGL_LIBS="-lGL -lGLU"
27999 echo "$as_me:$LINENO: result: yes" >&5
28000echo "${ECHO_T}yes" >&6
28001 fi
28002 fi
28003
28004 if test "$found_gl" != 1; then
28005 echo "$as_me:$LINENO: result: no" >&5
28006echo "${ECHO_T}no" >&6
28007 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28008echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28009
28010ac_find_libraries=
28011for ac_dir in $SEARCH_LIB /usr/lib;
28012 do
28013 for ac_extension in a so sl dylib; do
28014 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28015 ac_find_libraries=$ac_dir
28016 break 2
28017 fi
28018 done
28019 done
28020
28021 if test "$ac_find_libraries" != "" ; then
28022
28023 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28024 result=$?
28025 if test $result = 0; then
28026 ac_path_to_link=""
28027 else
28028 ac_path_to_link=" -L$ac_find_libraries"
28029 fi
28030
28031 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28032 OPENGL_LIBS="-lMesaGL -lMesaGLU"
28033 echo "$as_me:$LINENO: result: yes" >&5
28034echo "${ECHO_T}yes" >&6
28035 else
28036 echo "$as_me:$LINENO: result: no" >&5
28037echo "${ECHO_T}no" >&6
28038 fi
28039 fi
28040
28041fi
28042
28043
28044
28045 if test "x$OPENGL_LIBS" = "x"; then
28046 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28047echo "$as_me: error: OpenGL libraries not available" >&2;}
28048 { (exit 1); exit 1; }; }
28049 fi
28050 fi
28051
28052 if test "$wxUSE_OPENGL" = "yes"; then
28053 USE_OPENGL=1
28054 cat >>confdefs.h <<\_ACEOF
28055#define wxUSE_OPENGL 1
28056_ACEOF
28057
28058 cat >>confdefs.h <<\_ACEOF
28059#define wxUSE_GLCANVAS 1
28060_ACEOF
28061
28062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28063 fi
28064fi
28065
a848cd7e
SC
28066
28067if test -n "$TOOLKIT" ; then
28068 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28069fi
28070
a848cd7e
SC
28071
28072
28073if test "$wxUSE_SHARED" = "yes"; then
28074 case "${host}" in
28075 *-pc-msdosdjgpp )
28076 wxUSE_SHARED=no
28077 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28078echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28079 ;;
28080 esac
28081fi
28082
a848cd7e 28083if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
28084
28085
28086 found_versioning=no
28087
28088
28089 if test $found_versioning = no ; then
28090 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28091echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28092if test "${wx_cv_version_script+set}" = set; then
28093 echo $ECHO_N "(cached) $ECHO_C" >&6
28094else
28095
28096 echo "VER_1 { *; };" >conftest.sym
28097 echo "int main() { return 0; }" >conftest.cpp
28098
28099 if { ac_try='
28100 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28101 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28103 (eval $ac_try) 2>&5
28104 ac_status=$?
28105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106 (exit $ac_status); }; } ; then
28107 if test -s conftest.stderr ; then
28108 wx_cv_version_script=no
28109 else
28110 wx_cv_version_script=yes
28111 fi
28112 else
28113 wx_cv_version_script=no
28114 fi
28115 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28116
28117fi
28118echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28119echo "${ECHO_T}$wx_cv_version_script" >&6
28120 if test $wx_cv_version_script = yes ; then
28121 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28122 fi
28123 fi
28124
28125
28126 case "${host}" in
28127 *-*-linux* | *-*-gnu* )
28128 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28129 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28130 ;;
28131
28132 *-*-solaris2* )
28133 if test "$GCC" = yes ; then
28134 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28135
28136 saveLdflags="$LDFLAGS"
28137 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28138 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28139echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28140 cat >conftest.$ac_ext <<_ACEOF
28141/* confdefs.h. */
28142_ACEOF
28143cat confdefs.h >>conftest.$ac_ext
28144cat >>conftest.$ac_ext <<_ACEOF
28145/* end confdefs.h. */
28146
28147int
28148main ()
28149{
28150
28151 ;
28152 return 0;
28153}
28154_ACEOF
28155rm -f conftest.$ac_objext conftest$ac_exeext
28156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28157 (eval $ac_link) 2>conftest.er1
a848cd7e 28158 ac_status=$?
ac1cb8d3
VS
28159 grep -v '^ *+' conftest.er1 >conftest.err
28160 rm -f conftest.er1
28161 cat conftest.err >&5
a848cd7e
SC
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); } &&
da4486fb 28164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166 (eval $ac_try) 2>&5
28167 ac_status=$?
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); }; } &&
28170 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28172 (eval $ac_try) 2>&5
28173 ac_status=$?
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); }; }; then
28176
28177 echo "$as_me:$LINENO: result: yes" >&5
28178echo "${ECHO_T}yes" >&6
28179 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28180 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28181
28182else
28183 echo "$as_me: failed program was:" >&5
28184sed 's/^/| /' conftest.$ac_ext >&5
28185
28186
28187 echo "$as_me:$LINENO: result: no" >&5
28188echo "${ECHO_T}no" >&6
28189 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28190echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28191 LDFLAGS="$saveLdflags -Wl,-R,/"
28192 cat >conftest.$ac_ext <<_ACEOF
28193/* confdefs.h. */
28194_ACEOF
28195cat confdefs.h >>conftest.$ac_ext
28196cat >>conftest.$ac_ext <<_ACEOF
28197/* end confdefs.h. */
28198
28199int
28200main ()
28201{
28202
28203 ;
28204 return 0;
28205}
28206_ACEOF
28207rm -f conftest.$ac_objext conftest$ac_exeext
28208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28209 (eval $ac_link) 2>conftest.er1
a848cd7e 28210 ac_status=$?
ac1cb8d3
VS
28211 grep -v '^ *+' conftest.er1 >conftest.err
28212 rm -f conftest.er1
28213 cat conftest.err >&5
a848cd7e
SC
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); } &&
da4486fb 28216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28218 (eval $ac_try) 2>&5
28219 ac_status=$?
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); }; } &&
28222 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224 (eval $ac_try) 2>&5
28225 ac_status=$?
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); }; }; then
28228
ffa0583f 28229 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28230echo "${ECHO_T}yes" >&6
ffa0583f
RL
28231 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28232 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28233
a848cd7e
SC
28234else
28235 echo "$as_me: failed program was:" >&5
28236sed 's/^/| /' conftest.$ac_ext >&5
28237
28238
28239 echo "$as_me:$LINENO: result: no" >&5
28240echo "${ECHO_T}no" >&6
28241
28242fi
ac1cb8d3
VS
28243rm -f conftest.err conftest.$ac_objext \
28244 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28245
28246fi
ac1cb8d3
VS
28247rm -f conftest.err conftest.$ac_objext \
28248 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28249 LDFLAGS="$saveLdflags"
28250 else
a848cd7e 28251 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28252 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28253 fi
28254 ;;
28255
28256 powerpc-*-darwin* )
28257 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28258 cat <<EOF >change-install-names
28259#!/bin/sh
28260libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28261inst_cmd="install_name_tool "
28262for i in \${libnames} ; do
28263 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28264done
28265\${inst_cmd} \${3}
28266EOF
28267 chmod +x change-install-names
28268 ;;
28269
28270 *-*-cygwin* | *-*-mingw32* )
28271 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28272 ;;
28273
28274 esac
ceec2216 28275
ffa0583f
RL
28276 if test $wxUSE_RPATH = "no"; then
28277 SAMPLES_RPATH_FLAG=''
28278 SAMPLES_RPATH_POSTLINK=''
28279 WXCONFIG_RPATH=''
28280 fi
28281
28282 SHARED=1
28283
28284else
28285
ceec2216
RL
28286 config_linkage_component="-static"
28287 SHARED=0
ffa0583f 28288
ceec2216 28289fi
a848cd7e 28290
a848cd7e 28291
ceec2216
RL
28292UNICODE=0
28293lib_unicode_suffix=
28294WX_CHARTYPE="ansi"
28295if test "$wxUSE_UNICODE" = "yes"; then
28296 lib_unicode_suffix=u
28297 WX_CHARTYPE="unicode"
28298 UNICODE=1
a848cd7e
SC
28299fi
28300
ceec2216
RL
28301lib_debug_suffix=
28302WX_DEBUGTYPE="release"
28303DEBUG_FLAG=0
28304if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28305 lib_debug_suffix=d
28306 WX_DEBUGTYPE="debug"
28307 DEBUG_FLAG=1
28308fi
a848cd7e 28309
ceec2216
RL
28310WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28311WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28312
ceec2216
RL
28313DEBUG_INFO=0
28314if test "$wxUSE_DEBUG_INFO" = "yes"; then
28315 DEBUG_INFO=1
28316fi
a848cd7e 28317
ceec2216 28318WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28319
ceec2216 28320TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28321
ceec2216 28322TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28323
ceec2216
RL
28324if test "$cross_compiling" = "yes"; then
28325 HOST_SUFFIX="-$host_alias"
28326 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28327 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28328fi
28329
dd21ced8 28330WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28331WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28332
28333
28334
a848cd7e 28335if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28336 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28337 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28338
a848cd7e 28339 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28340
28341 # Extract the first word of "Rez", so it can be a program name with args.
28342set dummy Rez; ac_word=$2
28343echo "$as_me:$LINENO: checking for $ac_word" >&5
28344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28345if test "${ac_cv_prog_RESCOMP+set}" = set; then
28346 echo $ECHO_N "(cached) $ECHO_C" >&6
28347else
28348 if test -n "$RESCOMP"; then
28349 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28350else
28351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28352for as_dir in $PATH
28353do
28354 IFS=$as_save_IFS
28355 test -z "$as_dir" && as_dir=.
28356 for ac_exec_ext in '' $ac_executable_extensions; do
28357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28358 ac_cv_prog_RESCOMP="Rez"
28359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28360 break 2
28361 fi
28362done
28363done
28364
28365 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28366fi
28367fi
28368RESCOMP=$ac_cv_prog_RESCOMP
28369if test -n "$RESCOMP"; then
28370 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28371echo "${ECHO_T}$RESCOMP" >&6
28372else
28373 echo "$as_me:$LINENO: result: no" >&5
28374echo "${ECHO_T}no" >&6
28375fi
28376
28377 # Extract the first word of "DeRez", so it can be a program name with args.
28378set dummy DeRez; ac_word=$2
28379echo "$as_me:$LINENO: checking for $ac_word" >&5
28380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28381if test "${ac_cv_prog_DEREZ+set}" = set; then
28382 echo $ECHO_N "(cached) $ECHO_C" >&6
28383else
28384 if test -n "$DEREZ"; then
28385 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28386else
28387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28388for as_dir in $PATH
28389do
28390 IFS=$as_save_IFS
28391 test -z "$as_dir" && as_dir=.
28392 for ac_exec_ext in '' $ac_executable_extensions; do
28393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28394 ac_cv_prog_DEREZ="DeRez"
28395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28396 break 2
28397 fi
28398done
28399done
28400
28401 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28402fi
28403fi
28404DEREZ=$ac_cv_prog_DEREZ
28405if test -n "$DEREZ"; then
28406 echo "$as_me:$LINENO: result: $DEREZ" >&5
28407echo "${ECHO_T}$DEREZ" >&6
28408else
28409 echo "$as_me:$LINENO: result: no" >&5
28410echo "${ECHO_T}no" >&6
28411fi
28412
28413 # Extract the first word of "SetFile", so it can be a program name with args.
28414set dummy SetFile; ac_word=$2
28415echo "$as_me:$LINENO: checking for $ac_word" >&5
28416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28417if test "${ac_cv_prog_SETFILE+set}" = set; then
28418 echo $ECHO_N "(cached) $ECHO_C" >&6
28419else
28420 if test -n "$SETFILE"; then
28421 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28422else
28423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28424for as_dir in $PATH
28425do
28426 IFS=$as_save_IFS
28427 test -z "$as_dir" && as_dir=.
28428 for ac_exec_ext in '' $ac_executable_extensions; do
28429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28430 ac_cv_prog_SETFILE="SetFile"
28431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28432 break 2
28433 fi
28434done
28435done
28436
28437 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28438fi
28439fi
28440SETFILE=$ac_cv_prog_SETFILE
28441if test -n "$SETFILE"; then
28442 echo "$as_me:$LINENO: result: $SETFILE" >&5
28443echo "${ECHO_T}$SETFILE" >&6
28444else
28445 echo "$as_me:$LINENO: result: no" >&5
28446echo "${ECHO_T}no" >&6
28447fi
28448
28449
28450 MACSETFILE="\$(SETFILE)"
28451
28452 if test "$wxUSE_MAC" = 1; then
28453 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28454
28455 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28456 else
28457 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28458 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28459 fi
28460else
ffa0583f
RL
28461 MACSETFILE="@true"
28462 MACRESWXCONFIG="@true"
a848cd7e
SC
28463
28464 if test "$wxUSE_PM" = 1; then
28465 MACRESCOMP="emxbind -ep"
28466 else
ffa0583f 28467 MACRESCOMP="@true"
a848cd7e
SC
28468 fi
28469fi
28470
28471
28472
28473echo "$as_me:$LINENO: checking for mode_t" >&5
28474echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28475if test "${ac_cv_type_mode_t+set}" = set; then
28476 echo $ECHO_N "(cached) $ECHO_C" >&6
28477else
28478 cat >conftest.$ac_ext <<_ACEOF
28479/* confdefs.h. */
28480_ACEOF
28481cat confdefs.h >>conftest.$ac_ext
28482cat >>conftest.$ac_ext <<_ACEOF
28483/* end confdefs.h. */
28484$ac_includes_default
28485int
28486main ()
28487{
28488if ((mode_t *) 0)
28489 return 0;
28490if (sizeof (mode_t))
28491 return 0;
28492 ;
28493 return 0;
28494}
28495_ACEOF
28496rm -f conftest.$ac_objext
28497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28498 (eval $ac_compile) 2>conftest.er1
a848cd7e 28499 ac_status=$?
ac1cb8d3
VS
28500 grep -v '^ *+' conftest.er1 >conftest.err
28501 rm -f conftest.er1
28502 cat conftest.err >&5
a848cd7e
SC
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
da4486fb 28505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28507 (eval $ac_try) 2>&5
28508 ac_status=$?
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; } &&
28511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28513 (eval $ac_try) 2>&5
28514 ac_status=$?
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); }; }; then
28517 ac_cv_type_mode_t=yes
28518else
28519 echo "$as_me: failed program was:" >&5
28520sed 's/^/| /' conftest.$ac_ext >&5
28521
28522ac_cv_type_mode_t=no
28523fi
ac1cb8d3 28524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28525fi
28526echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28527echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28528if test $ac_cv_type_mode_t = yes; then
28529 :
28530else
28531
28532cat >>confdefs.h <<_ACEOF
28533#define mode_t int
28534_ACEOF
28535
28536fi
28537
28538echo "$as_me:$LINENO: checking for off_t" >&5
28539echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28540if test "${ac_cv_type_off_t+set}" = set; then
28541 echo $ECHO_N "(cached) $ECHO_C" >&6
28542else
28543 cat >conftest.$ac_ext <<_ACEOF
28544/* confdefs.h. */
28545_ACEOF
28546cat confdefs.h >>conftest.$ac_ext
28547cat >>conftest.$ac_ext <<_ACEOF
28548/* end confdefs.h. */
28549$ac_includes_default
28550int
28551main ()
28552{
28553if ((off_t *) 0)
28554 return 0;
28555if (sizeof (off_t))
28556 return 0;
28557 ;
28558 return 0;
28559}
28560_ACEOF
28561rm -f conftest.$ac_objext
28562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28563 (eval $ac_compile) 2>conftest.er1
a848cd7e 28564 ac_status=$?
ac1cb8d3
VS
28565 grep -v '^ *+' conftest.er1 >conftest.err
28566 rm -f conftest.er1
28567 cat conftest.err >&5
a848cd7e
SC
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); } &&
da4486fb 28570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572 (eval $ac_try) 2>&5
28573 ac_status=$?
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); }; } &&
28576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28578 (eval $ac_try) 2>&5
28579 ac_status=$?
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; }; then
28582 ac_cv_type_off_t=yes
28583else
28584 echo "$as_me: failed program was:" >&5
28585sed 's/^/| /' conftest.$ac_ext >&5
28586
28587ac_cv_type_off_t=no
28588fi
ac1cb8d3 28589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28590fi
28591echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28592echo "${ECHO_T}$ac_cv_type_off_t" >&6
28593if test $ac_cv_type_off_t = yes; then
28594 :
28595else
28596
28597cat >>confdefs.h <<_ACEOF
28598#define off_t long
28599_ACEOF
28600
28601fi
28602
28603echo "$as_me:$LINENO: checking for pid_t" >&5
28604echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28605if test "${ac_cv_type_pid_t+set}" = set; then
28606 echo $ECHO_N "(cached) $ECHO_C" >&6
28607else
28608 cat >conftest.$ac_ext <<_ACEOF
28609/* confdefs.h. */
28610_ACEOF
28611cat confdefs.h >>conftest.$ac_ext
28612cat >>conftest.$ac_ext <<_ACEOF
28613/* end confdefs.h. */
28614$ac_includes_default
28615int
28616main ()
28617{
28618if ((pid_t *) 0)
28619 return 0;
28620if (sizeof (pid_t))
28621 return 0;
28622 ;
28623 return 0;
28624}
28625_ACEOF
28626rm -f conftest.$ac_objext
28627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28628 (eval $ac_compile) 2>conftest.er1
a848cd7e 28629 ac_status=$?
ac1cb8d3
VS
28630 grep -v '^ *+' conftest.er1 >conftest.err
28631 rm -f conftest.er1
28632 cat conftest.err >&5
a848cd7e
SC
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); } &&
da4486fb 28635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637 (eval $ac_try) 2>&5
28638 ac_status=$?
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; } &&
28641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643 (eval $ac_try) 2>&5
28644 ac_status=$?
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; }; then
28647 ac_cv_type_pid_t=yes
28648else
28649 echo "$as_me: failed program was:" >&5
28650sed 's/^/| /' conftest.$ac_ext >&5
28651
28652ac_cv_type_pid_t=no
28653fi
ac1cb8d3 28654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28655fi
28656echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28657echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28658if test $ac_cv_type_pid_t = yes; then
28659 :
28660else
28661
28662cat >>confdefs.h <<_ACEOF
28663#define pid_t int
28664_ACEOF
28665
28666fi
28667
28668echo "$as_me:$LINENO: checking for size_t" >&5
28669echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28670if test "${ac_cv_type_size_t+set}" = set; then
28671 echo $ECHO_N "(cached) $ECHO_C" >&6
28672else
28673 cat >conftest.$ac_ext <<_ACEOF
28674/* confdefs.h. */
28675_ACEOF
28676cat confdefs.h >>conftest.$ac_ext
28677cat >>conftest.$ac_ext <<_ACEOF
28678/* end confdefs.h. */
28679$ac_includes_default
28680int
28681main ()
28682{
28683if ((size_t *) 0)
28684 return 0;
28685if (sizeof (size_t))
28686 return 0;
28687 ;
28688 return 0;
28689}
28690_ACEOF
28691rm -f conftest.$ac_objext
28692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28693 (eval $ac_compile) 2>conftest.er1
a848cd7e 28694 ac_status=$?
ac1cb8d3
VS
28695 grep -v '^ *+' conftest.er1 >conftest.err
28696 rm -f conftest.er1
28697 cat conftest.err >&5
a848cd7e
SC
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); } &&
da4486fb 28700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28702 (eval $ac_try) 2>&5
28703 ac_status=$?
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); }; } &&
28706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28708 (eval $ac_try) 2>&5
28709 ac_status=$?
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); }; }; then
28712 ac_cv_type_size_t=yes
28713else
28714 echo "$as_me: failed program was:" >&5
28715sed 's/^/| /' conftest.$ac_ext >&5
28716
28717ac_cv_type_size_t=no
28718fi
ac1cb8d3 28719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28720fi
28721echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28722echo "${ECHO_T}$ac_cv_type_size_t" >&6
28723if test $ac_cv_type_size_t = yes; then
28724 :
28725else
28726
28727cat >>confdefs.h <<_ACEOF
28728#define size_t unsigned
28729_ACEOF
28730
28731fi
28732
28733echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28734echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28735if test "${ac_cv_type_uid_t+set}" = set; then
28736 echo $ECHO_N "(cached) $ECHO_C" >&6
28737else
28738 cat >conftest.$ac_ext <<_ACEOF
28739/* confdefs.h. */
28740_ACEOF
28741cat confdefs.h >>conftest.$ac_ext
28742cat >>conftest.$ac_ext <<_ACEOF
28743/* end confdefs.h. */
28744#include <sys/types.h>
28745
28746_ACEOF
28747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28748 $EGREP "uid_t" >/dev/null 2>&1; then
28749 ac_cv_type_uid_t=yes
28750else
28751 ac_cv_type_uid_t=no
28752fi
28753rm -f conftest*
28754
28755fi
28756echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28757echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28758if test $ac_cv_type_uid_t = no; then
28759
28760cat >>confdefs.h <<\_ACEOF
28761#define uid_t int
28762_ACEOF
28763
28764
28765cat >>confdefs.h <<\_ACEOF
28766#define gid_t int
28767_ACEOF
28768
28769fi
28770
28771
d51253e8
RL
28772echo "$as_me:$LINENO: checking for ssize_t" >&5
28773echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28774if test "${ac_cv_type_ssize_t+set}" = set; then
28775 echo $ECHO_N "(cached) $ECHO_C" >&6
28776else
28777 cat >conftest.$ac_ext <<_ACEOF
28778/* confdefs.h. */
28779_ACEOF
28780cat confdefs.h >>conftest.$ac_ext
28781cat >>conftest.$ac_ext <<_ACEOF
28782/* end confdefs.h. */
28783$ac_includes_default
28784int
28785main ()
28786{
28787if ((ssize_t *) 0)
28788 return 0;
28789if (sizeof (ssize_t))
28790 return 0;
28791 ;
28792 return 0;
28793}
28794_ACEOF
28795rm -f conftest.$ac_objext
28796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28797 (eval $ac_compile) 2>conftest.er1
28798 ac_status=$?
28799 grep -v '^ *+' conftest.er1 >conftest.err
28800 rm -f conftest.er1
28801 cat conftest.err >&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); } &&
da4486fb 28804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
28805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806 (eval $ac_try) 2>&5
28807 ac_status=$?
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); }; } &&
28810 { ac_try='test -s conftest.$ac_objext'
28811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812 (eval $ac_try) 2>&5
28813 ac_status=$?
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); }; }; then
28816 ac_cv_type_ssize_t=yes
28817else
28818 echo "$as_me: failed program was:" >&5
28819sed 's/^/| /' conftest.$ac_ext >&5
28820
28821ac_cv_type_ssize_t=no
28822fi
28823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28824fi
28825echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28826echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28827if test $ac_cv_type_ssize_t = yes; then
28828
28829cat >>confdefs.h <<_ACEOF
28830#define HAVE_SSIZE_T 1
28831_ACEOF
28832
28833
28834fi
28835
28836
a848cd7e
SC
28837
28838
28839ac_ext=cc
28840ac_cpp='$CXXCPP $CPPFLAGS'
28841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28844
28845echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28846echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28847if test "${wx_cv_size_t_is_uint+set}" = set; then
28848 echo $ECHO_N "(cached) $ECHO_C" >&6
28849else
28850
28851 cat >conftest.$ac_ext <<_ACEOF
28852/* confdefs.h. */
28853_ACEOF
28854cat confdefs.h >>conftest.$ac_ext
28855cat >>conftest.$ac_ext <<_ACEOF
28856/* end confdefs.h. */
28857#include <stddef.h>
28858int
28859main ()
28860{
28861
28862 return 0; }
28863
28864 struct Foo { void foo(size_t); void foo(unsigned int); };
28865
28866 int bar() {
28867
28868 ;
28869 return 0;
28870}
28871_ACEOF
28872rm -f conftest.$ac_objext
28873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28874 (eval $ac_compile) 2>conftest.er1
a848cd7e 28875 ac_status=$?
ac1cb8d3
VS
28876 grep -v '^ *+' conftest.er1 >conftest.err
28877 rm -f conftest.er1
28878 cat conftest.err >&5
a848cd7e
SC
28879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); } &&
da4486fb 28881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28883 (eval $ac_try) 2>&5
28884 ac_status=$?
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; } &&
28887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889 (eval $ac_try) 2>&5
28890 ac_status=$?
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); }; }; then
28893 wx_cv_size_t_is_uint=no
28894else
28895 echo "$as_me: failed program was:" >&5
28896sed 's/^/| /' conftest.$ac_ext >&5
28897
28898wx_cv_size_t_is_uint=yes
28899
28900fi
ac1cb8d3 28901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28902
28903
28904fi
28905echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28906echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28907
28908if test "$wx_cv_size_t_is_uint" = "yes"; then
28909 cat >>confdefs.h <<\_ACEOF
28910#define wxSIZE_T_IS_UINT 1
28911_ACEOF
28912
28913else
28914 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28915echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28916if test "${wx_cv_size_t_is_ulong+set}" = set; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28918else
28919 cat >conftest.$ac_ext <<_ACEOF
28920/* confdefs.h. */
28921_ACEOF
28922cat confdefs.h >>conftest.$ac_ext
28923cat >>conftest.$ac_ext <<_ACEOF
28924/* end confdefs.h. */
28925#include <stddef.h>
28926int
28927main ()
28928{
28929
28930 return 0; }
28931
28932 struct Foo { void foo(size_t); void foo(unsigned long); };
28933
28934 int bar() {
28935
28936 ;
28937 return 0;
28938}
28939_ACEOF
28940rm -f conftest.$ac_objext
28941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28942 (eval $ac_compile) 2>conftest.er1
a848cd7e 28943 ac_status=$?
ac1cb8d3
VS
28944 grep -v '^ *+' conftest.er1 >conftest.err
28945 rm -f conftest.er1
28946 cat conftest.err >&5
a848cd7e
SC
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); } &&
da4486fb 28949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28951 (eval $ac_try) 2>&5
28952 ac_status=$?
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); }; } &&
28955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28957 (eval $ac_try) 2>&5
28958 ac_status=$?
28959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960 (exit $ac_status); }; }; then
28961 wx_cv_size_t_is_ulong=no
28962else
28963 echo "$as_me: failed program was:" >&5
28964sed 's/^/| /' conftest.$ac_ext >&5
28965
28966wx_cv_size_t_is_ulong=yes
28967
28968fi
ac1cb8d3 28969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28970
28971fi
28972echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28973echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28974
28975 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28976 cat >>confdefs.h <<\_ACEOF
28977#define wxSIZE_T_IS_ULONG 1
28978_ACEOF
28979
28980 fi
28981fi
28982
28983ac_ext=c
28984ac_cpp='$CPP $CPPFLAGS'
28985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28987ac_compiler_gnu=$ac_cv_c_compiler_gnu
28988
28989
28990
28991echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28992echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28993if test "${wx_cv_struct_pw_gecos+set}" = set; then
28994 echo $ECHO_N "(cached) $ECHO_C" >&6
28995else
28996
28997 cat >conftest.$ac_ext <<_ACEOF
28998/* confdefs.h. */
28999_ACEOF
29000cat confdefs.h >>conftest.$ac_ext
29001cat >>conftest.$ac_ext <<_ACEOF
29002/* end confdefs.h. */
29003#include <pwd.h>
29004int
29005main ()
29006{
29007
29008 char *p;
29009 struct passwd *pw;
29010 p = pw->pw_gecos;
29011
29012 ;
29013 return 0;
29014}
29015_ACEOF
29016rm -f conftest.$ac_objext
29017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29018 (eval $ac_compile) 2>conftest.er1
a848cd7e 29019 ac_status=$?
ac1cb8d3
VS
29020 grep -v '^ *+' conftest.er1 >conftest.err
29021 rm -f conftest.er1
29022 cat conftest.err >&5
a848cd7e
SC
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); } &&
da4486fb 29025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027 (eval $ac_try) 2>&5
29028 ac_status=$?
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; } &&
29031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29033 (eval $ac_try) 2>&5
29034 ac_status=$?
29035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); }; }; then
29037
29038 wx_cv_struct_pw_gecos=yes
29039
29040else
29041 echo "$as_me: failed program was:" >&5
29042sed 's/^/| /' conftest.$ac_ext >&5
29043
29044
29045 wx_cv_struct_pw_gecos=no
29046
29047
29048fi
ac1cb8d3 29049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29050
29051
29052fi
29053echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29054echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29055
29056if test "$wx_cv_struct_pw_gecos" = "yes"; then
29057 cat >>confdefs.h <<\_ACEOF
29058#define HAVE_PW_GECOS 1
29059_ACEOF
29060
29061fi
29062
29063
29064if test "$wx_cv_sizeof_wchar_t" != "0"; then
29065 cat >>confdefs.h <<\_ACEOF
29066#define wxUSE_WCHAR_T 1
29067_ACEOF
29068
29069
29070 WCSLEN_FOUND=0
29071 WCHAR_LINK=
29072
29073for ac_func in wcslen
29074do
29075as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29076echo "$as_me:$LINENO: checking for $ac_func" >&5
29077echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29078if eval "test \"\${$as_ac_var+set}\" = set"; then
29079 echo $ECHO_N "(cached) $ECHO_C" >&6
29080else
29081 cat >conftest.$ac_ext <<_ACEOF
29082/* confdefs.h. */
29083_ACEOF
29084cat confdefs.h >>conftest.$ac_ext
29085cat >>conftest.$ac_ext <<_ACEOF
29086/* end confdefs.h. */
ac1cb8d3
VS
29087/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29089#define $ac_func innocuous_$ac_func
29090
a848cd7e
SC
29091/* System header to define __stub macros and hopefully few prototypes,
29092 which can conflict with char $ac_func (); below.
29093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29094 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29095
a848cd7e
SC
29096#ifdef __STDC__
29097# include <limits.h>
29098#else
29099# include <assert.h>
29100#endif
ac1cb8d3
VS
29101
29102#undef $ac_func
29103
a848cd7e
SC
29104/* Override any gcc2 internal prototype to avoid an error. */
29105#ifdef __cplusplus
29106extern "C"
29107{
29108#endif
29109/* We use char because int might match the return type of a gcc2
29110 builtin and then its argument prototype would still apply. */
29111char $ac_func ();
29112/* The GNU C library defines this for functions which it implements
29113 to always fail with ENOSYS. Some functions are actually named
29114 something starting with __ and the normal name is an alias. */
29115#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29116choke me
29117#else
29118char (*f) () = $ac_func;
29119#endif
29120#ifdef __cplusplus
29121}
29122#endif
29123
29124int
29125main ()
29126{
29127return f != $ac_func;
29128 ;
29129 return 0;
29130}
29131_ACEOF
29132rm -f conftest.$ac_objext conftest$ac_exeext
29133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29134 (eval $ac_link) 2>conftest.er1
a848cd7e 29135 ac_status=$?
ac1cb8d3
VS
29136 grep -v '^ *+' conftest.er1 >conftest.err
29137 rm -f conftest.er1
29138 cat conftest.err >&5
a848cd7e
SC
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); } &&
da4486fb 29141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29143 (eval $ac_try) 2>&5
29144 ac_status=$?
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); }; } &&
29147 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149 (eval $ac_try) 2>&5
29150 ac_status=$?
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); }; }; then
29153 eval "$as_ac_var=yes"
29154else
29155 echo "$as_me: failed program was:" >&5
29156sed 's/^/| /' conftest.$ac_ext >&5
29157
29158eval "$as_ac_var=no"
29159fi
ac1cb8d3
VS
29160rm -f conftest.err conftest.$ac_objext \
29161 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29162fi
29163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29164echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29165if test `eval echo '${'$as_ac_var'}'` = yes; then
29166 cat >>confdefs.h <<_ACEOF
29167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29168_ACEOF
29169 WCSLEN_FOUND=1
29170fi
29171done
29172
29173
29174 if test "$WCSLEN_FOUND" = 0; then
29175 if test "$TOOLKIT" = "MSW"; then
29176 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29177echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29178if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29179 echo $ECHO_N "(cached) $ECHO_C" >&6
29180else
29181 ac_check_lib_save_LIBS=$LIBS
29182LIBS="-lmsvcrt $LIBS"
29183cat >conftest.$ac_ext <<_ACEOF
29184/* confdefs.h. */
29185_ACEOF
29186cat confdefs.h >>conftest.$ac_ext
29187cat >>conftest.$ac_ext <<_ACEOF
29188/* end confdefs.h. */
29189
29190/* Override any gcc2 internal prototype to avoid an error. */
29191#ifdef __cplusplus
29192extern "C"
29193#endif
29194/* We use char because int might match the return type of a gcc2
29195 builtin and then its argument prototype would still apply. */
29196char wcslen ();
29197int
29198main ()
29199{
29200wcslen ();
29201 ;
29202 return 0;
29203}
29204_ACEOF
29205rm -f conftest.$ac_objext conftest$ac_exeext
29206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29207 (eval $ac_link) 2>conftest.er1
a848cd7e 29208 ac_status=$?
ac1cb8d3
VS
29209 grep -v '^ *+' conftest.er1 >conftest.err
29210 rm -f conftest.er1
29211 cat conftest.err >&5
a848cd7e
SC
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); } &&
da4486fb 29214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29217 ac_status=$?
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; } &&
29220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29222 (eval $ac_try) 2>&5
29223 ac_status=$?
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); }; }; then
29226 ac_cv_lib_msvcrt_wcslen=yes
29227else
29228 echo "$as_me: failed program was:" >&5
29229sed 's/^/| /' conftest.$ac_ext >&5
29230
29231ac_cv_lib_msvcrt_wcslen=no
29232fi
ac1cb8d3
VS
29233rm -f conftest.err conftest.$ac_objext \
29234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29235LIBS=$ac_check_lib_save_LIBS
29236fi
29237echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29238echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29239if test $ac_cv_lib_msvcrt_wcslen = yes; then
29240 WCHAR_OK=1
29241fi
29242
29243 else
29244 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29245echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29246if test "${ac_cv_lib_w_wcslen+set}" = set; then
29247 echo $ECHO_N "(cached) $ECHO_C" >&6
29248else
29249 ac_check_lib_save_LIBS=$LIBS
29250LIBS="-lw $LIBS"
29251cat >conftest.$ac_ext <<_ACEOF
29252/* confdefs.h. */
29253_ACEOF
29254cat confdefs.h >>conftest.$ac_ext
29255cat >>conftest.$ac_ext <<_ACEOF
29256/* end confdefs.h. */
29257
29258/* Override any gcc2 internal prototype to avoid an error. */
29259#ifdef __cplusplus
29260extern "C"
29261#endif
29262/* We use char because int might match the return type of a gcc2
29263 builtin and then its argument prototype would still apply. */
29264char wcslen ();
29265int
29266main ()
29267{
29268wcslen ();
29269 ;
29270 return 0;
29271}
29272_ACEOF
29273rm -f conftest.$ac_objext conftest$ac_exeext
29274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29275 (eval $ac_link) 2>conftest.er1
a848cd7e 29276 ac_status=$?
ac1cb8d3
VS
29277 grep -v '^ *+' conftest.er1 >conftest.err
29278 rm -f conftest.er1
29279 cat conftest.err >&5
a848cd7e
SC
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); } &&
da4486fb 29282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284 (eval $ac_try) 2>&5
29285 ac_status=$?
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); }; } &&
29288 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29290 (eval $ac_try) 2>&5
29291 ac_status=$?
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); }; }; then
29294 ac_cv_lib_w_wcslen=yes
29295else
29296 echo "$as_me: failed program was:" >&5
29297sed 's/^/| /' conftest.$ac_ext >&5
29298
29299ac_cv_lib_w_wcslen=no
29300fi
ac1cb8d3
VS
29301rm -f conftest.err conftest.$ac_objext \
29302 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29303LIBS=$ac_check_lib_save_LIBS
29304fi
29305echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29306echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29307if test $ac_cv_lib_w_wcslen = yes; then
29308
29309 WCHAR_LINK=" -lw"
29310 WCSLEN_FOUND=1
29311
29312fi
29313
29314 fi
29315 fi
29316
29317 if test "$WCSLEN_FOUND" = 1; then
29318 cat >>confdefs.h <<\_ACEOF
29319#define HAVE_WCSLEN 1
29320_ACEOF
29321
29322 fi
29323
473276a9
VS
29324 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29325 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29326 fi
29327
a848cd7e
SC
29328
29329for ac_func in wcsrtombs
29330do
29331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29332echo "$as_me:$LINENO: checking for $ac_func" >&5
29333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29334if eval "test \"\${$as_ac_var+set}\" = set"; then
29335 echo $ECHO_N "(cached) $ECHO_C" >&6
29336else
29337 cat >conftest.$ac_ext <<_ACEOF
29338/* confdefs.h. */
29339_ACEOF
29340cat confdefs.h >>conftest.$ac_ext
29341cat >>conftest.$ac_ext <<_ACEOF
29342/* end confdefs.h. */
ac1cb8d3
VS
29343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29345#define $ac_func innocuous_$ac_func
29346
a848cd7e
SC
29347/* System header to define __stub macros and hopefully few prototypes,
29348 which can conflict with char $ac_func (); below.
29349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29350 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29351
a848cd7e
SC
29352#ifdef __STDC__
29353# include <limits.h>
29354#else
29355# include <assert.h>
29356#endif
ac1cb8d3
VS
29357
29358#undef $ac_func
29359
a848cd7e
SC
29360/* Override any gcc2 internal prototype to avoid an error. */
29361#ifdef __cplusplus
29362extern "C"
29363{
29364#endif
29365/* We use char because int might match the return type of a gcc2
29366 builtin and then its argument prototype would still apply. */
29367char $ac_func ();
29368/* The GNU C library defines this for functions which it implements
29369 to always fail with ENOSYS. Some functions are actually named
29370 something starting with __ and the normal name is an alias. */
29371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29372choke me
29373#else
29374char (*f) () = $ac_func;
29375#endif
29376#ifdef __cplusplus
29377}
29378#endif
29379
29380int
29381main ()
29382{
29383return f != $ac_func;
29384 ;
29385 return 0;
29386}
29387_ACEOF
29388rm -f conftest.$ac_objext conftest$ac_exeext
29389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29390 (eval $ac_link) 2>conftest.er1
a848cd7e 29391 ac_status=$?
ac1cb8d3
VS
29392 grep -v '^ *+' conftest.er1 >conftest.err
29393 rm -f conftest.er1
29394 cat conftest.err >&5
a848cd7e
SC
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); } &&
da4486fb 29397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399 (eval $ac_try) 2>&5
29400 ac_status=$?
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); }; } &&
29403 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29406 ac_status=$?
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; }; then
29409 eval "$as_ac_var=yes"
29410else
29411 echo "$as_me: failed program was:" >&5
29412sed 's/^/| /' conftest.$ac_ext >&5
29413
29414eval "$as_ac_var=no"
29415fi
ac1cb8d3
VS
29416rm -f conftest.err conftest.$ac_objext \
29417 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29418fi
29419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29420echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29421if test `eval echo '${'$as_ac_var'}'` = yes; then
29422 cat >>confdefs.h <<_ACEOF
29423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29424_ACEOF
29425
29426fi
29427done
29428
29429else
29430 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29431echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29432fi
29433
29434
29435
29436ac_ext=cc
29437ac_cpp='$CXXCPP $CPPFLAGS'
29438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29441
29442
29443
29444for ac_func in vsnprintf
29445do
29446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29447echo "$as_me:$LINENO: checking for $ac_func" >&5
29448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29449if eval "test \"\${$as_ac_var+set}\" = set"; then
29450 echo $ECHO_N "(cached) $ECHO_C" >&6
29451else
29452 cat >conftest.$ac_ext <<_ACEOF
29453/* confdefs.h. */
29454_ACEOF
29455cat confdefs.h >>conftest.$ac_ext
29456cat >>conftest.$ac_ext <<_ACEOF
29457/* end confdefs.h. */
ac1cb8d3
VS
29458/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29460#define $ac_func innocuous_$ac_func
29461
a848cd7e
SC
29462/* System header to define __stub macros and hopefully few prototypes,
29463 which can conflict with char $ac_func (); below.
29464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29465 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29466
a848cd7e
SC
29467#ifdef __STDC__
29468# include <limits.h>
29469#else
29470# include <assert.h>
29471#endif
ac1cb8d3
VS
29472
29473#undef $ac_func
29474
a848cd7e
SC
29475/* Override any gcc2 internal prototype to avoid an error. */
29476#ifdef __cplusplus
29477extern "C"
29478{
29479#endif
29480/* We use char because int might match the return type of a gcc2
29481 builtin and then its argument prototype would still apply. */
29482char $ac_func ();
29483/* The GNU C library defines this for functions which it implements
29484 to always fail with ENOSYS. Some functions are actually named
29485 something starting with __ and the normal name is an alias. */
29486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29487choke me
29488#else
29489char (*f) () = $ac_func;
29490#endif
29491#ifdef __cplusplus
29492}
29493#endif
29494
29495int
29496main ()
29497{
29498return f != $ac_func;
29499 ;
29500 return 0;
29501}
29502_ACEOF
29503rm -f conftest.$ac_objext conftest$ac_exeext
29504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29505 (eval $ac_link) 2>conftest.er1
a848cd7e 29506 ac_status=$?
ac1cb8d3
VS
29507 grep -v '^ *+' conftest.er1 >conftest.err
29508 rm -f conftest.er1
29509 cat conftest.err >&5
a848cd7e
SC
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); } &&
da4486fb 29512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514 (eval $ac_try) 2>&5
29515 ac_status=$?
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; } &&
29518 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520 (eval $ac_try) 2>&5
29521 ac_status=$?
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); }; }; then
29524 eval "$as_ac_var=yes"
29525else
29526 echo "$as_me: failed program was:" >&5
29527sed 's/^/| /' conftest.$ac_ext >&5
29528
29529eval "$as_ac_var=no"
29530fi
ac1cb8d3
VS
29531rm -f conftest.err conftest.$ac_objext \
29532 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29533fi
29534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29535echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29536if test `eval echo '${'$as_ac_var'}'` = yes; then
29537 cat >>confdefs.h <<_ACEOF
29538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29539_ACEOF
29540
29541fi
29542done
29543
29544
29545if test "$ac_cv_func_vsnprintf" = "yes"; then
29546 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29547echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29548if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29549 echo $ECHO_N "(cached) $ECHO_C" >&6
29550else
29551
29552 cat >conftest.$ac_ext <<_ACEOF
29553/* confdefs.h. */
29554_ACEOF
29555cat confdefs.h >>conftest.$ac_ext
29556cat >>conftest.$ac_ext <<_ACEOF
29557/* end confdefs.h. */
29558
29559 #include <stdio.h>
29560 #include <stdarg.h>
29561
29562int
29563main ()
29564{
29565
29566 char *buf;
29567 va_list ap;
29568 vsnprintf(buf, 10u, "%s", ap);
29569
29570 ;
29571 return 0;
29572}
29573_ACEOF
29574rm -f conftest.$ac_objext
29575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29576 (eval $ac_compile) 2>conftest.er1
a848cd7e 29577 ac_status=$?
ac1cb8d3
VS
29578 grep -v '^ *+' conftest.er1 >conftest.err
29579 rm -f conftest.er1
29580 cat conftest.err >&5
a848cd7e
SC
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); } &&
da4486fb 29583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29585 (eval $ac_try) 2>&5
29586 ac_status=$?
29587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29588 (exit $ac_status); }; } &&
29589 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29591 (eval $ac_try) 2>&5
29592 ac_status=$?
29593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594 (exit $ac_status); }; }; then
29595 wx_cv_func_vsnprintf_decl=yes
29596else
29597 echo "$as_me: failed program was:" >&5
29598sed 's/^/| /' conftest.$ac_ext >&5
29599
c122b164
DE
29600
29601 cat >conftest.$ac_ext <<_ACEOF
29602/* confdefs.h. */
29603_ACEOF
29604cat confdefs.h >>conftest.$ac_ext
29605cat >>conftest.$ac_ext <<_ACEOF
29606/* end confdefs.h. */
29607
29608 #include <stdio.h>
29609 #include <stdarg.h>
29610 using namespace std;
29611
29612int
29613main ()
29614{
29615
29616 char *buf;
29617 va_list ap;
29618 vsnprintf(buf, 10u, "%s", ap);
29619
29620 ;
29621 return 0;
29622}
29623_ACEOF
29624rm -f conftest.$ac_objext
29625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29626 (eval $ac_compile) 2>conftest.er1
29627 ac_status=$?
29628 grep -v '^ *+' conftest.er1 >conftest.err
29629 rm -f conftest.er1
29630 cat conftest.err >&5
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); } &&
29633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29635 (eval $ac_try) 2>&5
29636 ac_status=$?
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); }; } &&
29639 { ac_try='test -s conftest.$ac_objext'
29640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641 (eval $ac_try) 2>&5
29642 ac_status=$?
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; }; then
29645 wx_cv_func_vsnprintf_decl=yes
29646else
29647 echo "$as_me: failed program was:" >&5
29648sed 's/^/| /' conftest.$ac_ext >&5
29649
a848cd7e
SC
29650wx_cv_func_vsnprintf_decl=no
29651
29652fi
ac1cb8d3 29653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29654
29655
c122b164
DE
29656fi
29657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29658
29659
a848cd7e
SC
29660fi
29661echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29662echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29663
29664 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29665 cat >>confdefs.h <<\_ACEOF
29666#define HAVE_VSNPRINTF_DECL 1
29667_ACEOF
29668
29669 fi
29670fi
29671
29672if test "$wxUSE_UNICODE" = yes; then
29673
29674
29675
fbe47c7b
VS
29676
29677
29678
29679for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29680do
29681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29682echo "$as_me:$LINENO: checking for $ac_func" >&5
29683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29684if eval "test \"\${$as_ac_var+set}\" = set"; then
29685 echo $ECHO_N "(cached) $ECHO_C" >&6
29686else
29687 cat >conftest.$ac_ext <<_ACEOF
29688/* confdefs.h. */
29689_ACEOF
29690cat confdefs.h >>conftest.$ac_ext
29691cat >>conftest.$ac_ext <<_ACEOF
29692/* end confdefs.h. */
ac1cb8d3
VS
29693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29695#define $ac_func innocuous_$ac_func
29696
a848cd7e
SC
29697/* System header to define __stub macros and hopefully few prototypes,
29698 which can conflict with char $ac_func (); below.
29699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29700 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29701
a848cd7e
SC
29702#ifdef __STDC__
29703# include <limits.h>
29704#else
29705# include <assert.h>
29706#endif
ac1cb8d3
VS
29707
29708#undef $ac_func
29709
a848cd7e
SC
29710/* Override any gcc2 internal prototype to avoid an error. */
29711#ifdef __cplusplus
29712extern "C"
29713{
29714#endif
29715/* We use char because int might match the return type of a gcc2
29716 builtin and then its argument prototype would still apply. */
29717char $ac_func ();
29718/* The GNU C library defines this for functions which it implements
29719 to always fail with ENOSYS. Some functions are actually named
29720 something starting with __ and the normal name is an alias. */
29721#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29722choke me
29723#else
29724char (*f) () = $ac_func;
29725#endif
29726#ifdef __cplusplus
29727}
29728#endif
29729
29730int
29731main ()
29732{
29733return f != $ac_func;
29734 ;
29735 return 0;
29736}
29737_ACEOF
29738rm -f conftest.$ac_objext conftest$ac_exeext
29739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29740 (eval $ac_link) 2>conftest.er1
a848cd7e 29741 ac_status=$?
ac1cb8d3
VS
29742 grep -v '^ *+' conftest.er1 >conftest.err
29743 rm -f conftest.er1
29744 cat conftest.err >&5
a848cd7e
SC
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); } &&
da4486fb 29747 { ac_try='test -z "$ac_cxx_werror_flag" || 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 eval "$as_ac_var=yes"
29760else
29761 echo "$as_me: failed program was:" >&5
29762sed 's/^/| /' conftest.$ac_ext >&5
29763
29764eval "$as_ac_var=no"
29765fi
ac1cb8d3
VS
29766rm -f conftest.err conftest.$ac_objext \
29767 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29768fi
29769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29771if test `eval echo '${'$as_ac_var'}'` = yes; then
29772 cat >>confdefs.h <<_ACEOF
29773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29774_ACEOF
29775
29776fi
29777done
29778
29779
29780 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29781echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29782 cat >conftest.$ac_ext <<_ACEOF
29783/* confdefs.h. */
29784_ACEOF
29785cat confdefs.h >>conftest.$ac_ext
29786cat >>conftest.$ac_ext <<_ACEOF
29787/* end confdefs.h. */
29788#include <wchar.h>
29789int
29790main ()
29791{
29792&_vsnwprintf;
29793 ;
29794 return 0;
29795}
29796_ACEOF
29797rm -f conftest.$ac_objext
29798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29799 (eval $ac_compile) 2>conftest.er1
a848cd7e 29800 ac_status=$?
ac1cb8d3
VS
29801 grep -v '^ *+' conftest.er1 >conftest.err
29802 rm -f conftest.er1
29803 cat conftest.err >&5
a848cd7e
SC
29804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805 (exit $ac_status); } &&
da4486fb 29806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29808 (eval $ac_try) 2>&5
29809 ac_status=$?
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; } &&
29812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29814 (eval $ac_try) 2>&5
29815 ac_status=$?
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); }; }; then
29818 echo "$as_me:$LINENO: result: yes" >&5
29819echo "${ECHO_T}yes" >&6
29820 cat >>confdefs.h <<\_ACEOF
29821#define HAVE__VSNWPRINTF 1
29822_ACEOF
29823
29824else
29825 echo "$as_me: failed program was:" >&5
29826sed 's/^/| /' conftest.$ac_ext >&5
29827
29828echo "$as_me:$LINENO: result: no" >&5
29829echo "${ECHO_T}no" >&6
29830fi
ac1cb8d3 29831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29832fi
29833
29834ac_ext=c
29835ac_cpp='$CPP $CPPFLAGS'
29836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29838ac_compiler_gnu=$ac_cv_c_compiler_gnu
29839
29840
29841
29842
29843if test "$TOOLKIT" != "MSW"; then
29844
29845
29846
29847
29848ac_ext=cc
29849ac_cpp='$CXXCPP $CPPFLAGS'
29850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29853
29854
29855
29856
29857# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29858if test "${with_libiconv_prefix+set}" = set; then
29859 withval="$with_libiconv_prefix"
29860
29861 for dir in `echo "$withval" | tr : ' '`; do
29862 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29863 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29864 done
29865
29866fi;
29867
29868 echo "$as_me:$LINENO: checking for iconv" >&5
29869echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29870if test "${am_cv_func_iconv+set}" = set; then
29871 echo $ECHO_N "(cached) $ECHO_C" >&6
29872else
29873
29874 am_cv_func_iconv="no, consider installing GNU libiconv"
29875 am_cv_lib_iconv=no
29876 cat >conftest.$ac_ext <<_ACEOF
29877/* confdefs.h. */
29878_ACEOF
29879cat confdefs.h >>conftest.$ac_ext
29880cat >>conftest.$ac_ext <<_ACEOF
29881/* end confdefs.h. */
29882#include <stdlib.h>
29883#include <iconv.h>
29884int
29885main ()
29886{
29887iconv_t cd = iconv_open("","");
29888 iconv(cd,NULL,NULL,NULL,NULL);
29889 iconv_close(cd);
29890 ;
29891 return 0;
29892}
29893_ACEOF
29894rm -f conftest.$ac_objext conftest$ac_exeext
29895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29896 (eval $ac_link) 2>conftest.er1
a848cd7e 29897 ac_status=$?
ac1cb8d3
VS
29898 grep -v '^ *+' conftest.er1 >conftest.err
29899 rm -f conftest.er1
29900 cat conftest.err >&5
a848cd7e
SC
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); } &&
da4486fb 29903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29905 (eval $ac_try) 2>&5
29906 ac_status=$?
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; } &&
29909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29911 (eval $ac_try) 2>&5
29912 ac_status=$?
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); }; }; then
29915 am_cv_func_iconv=yes
29916else
29917 echo "$as_me: failed program was:" >&5
29918sed 's/^/| /' conftest.$ac_ext >&5
29919
29920fi
ac1cb8d3
VS
29921rm -f conftest.err conftest.$ac_objext \
29922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29923 if test "$am_cv_func_iconv" != yes; then
29924 am_save_LIBS="$LIBS"
29925 LIBS="$LIBS -liconv"
29926 cat >conftest.$ac_ext <<_ACEOF
29927/* confdefs.h. */
29928_ACEOF
29929cat confdefs.h >>conftest.$ac_ext
29930cat >>conftest.$ac_ext <<_ACEOF
29931/* end confdefs.h. */
29932#include <stdlib.h>
29933#include <iconv.h>
29934int
29935main ()
29936{
29937iconv_t cd = iconv_open("","");
29938 iconv(cd,NULL,NULL,NULL,NULL);
29939 iconv_close(cd);
29940 ;
29941 return 0;
29942}
29943_ACEOF
29944rm -f conftest.$ac_objext conftest$ac_exeext
29945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29946 (eval $ac_link) 2>conftest.er1
a848cd7e 29947 ac_status=$?
ac1cb8d3
VS
29948 grep -v '^ *+' conftest.er1 >conftest.err
29949 rm -f conftest.er1
29950 cat conftest.err >&5
a848cd7e
SC
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); } &&
da4486fb 29953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29955 (eval $ac_try) 2>&5
29956 ac_status=$?
29957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958 (exit $ac_status); }; } &&
29959 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961 (eval $ac_try) 2>&5
29962 ac_status=$?
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; }; then
29965 am_cv_lib_iconv=yes
29966 am_cv_func_iconv=yes
29967else
29968 echo "$as_me: failed program was:" >&5
29969sed 's/^/| /' conftest.$ac_ext >&5
29970
29971fi
ac1cb8d3
VS
29972rm -f conftest.err conftest.$ac_objext \
29973 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29974 LIBS="$am_save_LIBS"
29975 fi
29976
29977fi
29978echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29979echo "${ECHO_T}$am_cv_func_iconv" >&6
29980 if test "$am_cv_func_iconv" = yes; then
29981
29982cat >>confdefs.h <<\_ACEOF
29983#define HAVE_ICONV 1
29984_ACEOF
29985
29986 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29987echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29988if test "${wx_cv_func_iconv_const+set}" = set; then
29989 echo $ECHO_N "(cached) $ECHO_C" >&6
29990else
29991 cat >conftest.$ac_ext <<_ACEOF
29992/* confdefs.h. */
29993_ACEOF
29994cat confdefs.h >>conftest.$ac_ext
29995cat >>conftest.$ac_ext <<_ACEOF
29996/* end confdefs.h. */
29997
29998#include <stdlib.h>
29999#include <iconv.h>
30000extern
30001#ifdef __cplusplus
30002"C"
30003#endif
30004#if defined(__STDC__) || defined(__cplusplus)
30005size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30006#else
30007size_t iconv();
30008#endif
30009
30010int
30011main ()
30012{
30013
30014 ;
30015 return 0;
30016}
30017_ACEOF
30018rm -f conftest.$ac_objext
30019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30020 (eval $ac_compile) 2>conftest.er1
a848cd7e 30021 ac_status=$?
ac1cb8d3
VS
30022 grep -v '^ *+' conftest.er1 >conftest.err
30023 rm -f conftest.er1
30024 cat conftest.err >&5
a848cd7e
SC
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); } &&
da4486fb 30027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30029 (eval $ac_try) 2>&5
30030 ac_status=$?
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); }; } &&
30033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30035 (eval $ac_try) 2>&5
30036 ac_status=$?
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038 (exit $ac_status); }; }; then
30039 wx_cv_func_iconv_const="no"
30040else
30041 echo "$as_me: failed program was:" >&5
30042sed 's/^/| /' conftest.$ac_ext >&5
30043
30044wx_cv_func_iconv_const="yes"
30045
30046fi
ac1cb8d3 30047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30048
30049fi
30050echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30051echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30052
30053 iconv_const=
30054 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30055 iconv_const="const"
30056 fi
30057
30058
30059cat >>confdefs.h <<_ACEOF
30060#define ICONV_CONST $iconv_const
30061_ACEOF
30062
30063 fi
30064 LIBICONV=
30065 if test "$am_cv_lib_iconv" = yes; then
30066 LIBICONV="-liconv"
30067 fi
30068
30069
30070LIBS="$LIBICONV $LIBS"
30071ac_ext=c
30072ac_cpp='$CPP $CPPFLAGS'
30073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30075ac_compiler_gnu=$ac_cv_c_compiler_gnu
30076
30077
30078if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30079
30080for ac_func in sigaction
30081do
30082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30083echo "$as_me:$LINENO: checking for $ac_func" >&5
30084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30085if eval "test \"\${$as_ac_var+set}\" = set"; then
30086 echo $ECHO_N "(cached) $ECHO_C" >&6
30087else
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. */
ac1cb8d3
VS
30094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30096#define $ac_func innocuous_$ac_func
30097
a848cd7e
SC
30098/* System header to define __stub macros and hopefully few prototypes,
30099 which can conflict with char $ac_func (); below.
30100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30101 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30102
a848cd7e
SC
30103#ifdef __STDC__
30104# include <limits.h>
30105#else
30106# include <assert.h>
30107#endif
ac1cb8d3
VS
30108
30109#undef $ac_func
30110
a848cd7e
SC
30111/* Override any gcc2 internal prototype to avoid an error. */
30112#ifdef __cplusplus
30113extern "C"
30114{
30115#endif
30116/* We use char because int might match the return type of a gcc2
30117 builtin and then its argument prototype would still apply. */
30118char $ac_func ();
30119/* The GNU C library defines this for functions which it implements
30120 to always fail with ENOSYS. Some functions are actually named
30121 something starting with __ and the normal name is an alias. */
30122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30123choke me
30124#else
30125char (*f) () = $ac_func;
30126#endif
30127#ifdef __cplusplus
30128}
30129#endif
30130
30131int
30132main ()
30133{
30134return f != $ac_func;
30135 ;
30136 return 0;
30137}
30138_ACEOF
30139rm -f conftest.$ac_objext conftest$ac_exeext
30140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30141 (eval $ac_link) 2>conftest.er1
a848cd7e 30142 ac_status=$?
ac1cb8d3
VS
30143 grep -v '^ *+' conftest.er1 >conftest.err
30144 rm -f conftest.er1
30145 cat conftest.err >&5
a848cd7e
SC
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); } &&
da4486fb 30148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150 (eval $ac_try) 2>&5
30151 ac_status=$?
30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); }; } &&
30154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30156 (eval $ac_try) 2>&5
30157 ac_status=$?
30158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159 (exit $ac_status); }; }; then
30160 eval "$as_ac_var=yes"
30161else
30162 echo "$as_me: failed program was:" >&5
30163sed 's/^/| /' conftest.$ac_ext >&5
30164
30165eval "$as_ac_var=no"
30166fi
ac1cb8d3
VS
30167rm -f conftest.err conftest.$ac_objext \
30168 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30169fi
30170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30172if test `eval echo '${'$as_ac_var'}'` = yes; then
30173 cat >>confdefs.h <<_ACEOF
30174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30175_ACEOF
30176
30177fi
30178done
30179
30180
30181 if test "$ac_cv_func_sigaction" = "no"; then
30182 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30183echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30184 wxUSE_ON_FATAL_EXCEPTION=no
30185 fi
30186
30187 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30188
30189
30190 ac_ext=cc
30191ac_cpp='$CXXCPP $CPPFLAGS'
30192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30195
30196
30197 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30198echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30199if test "${wx_cv_type_sa_handler+set}" = set; then
30200 echo $ECHO_N "(cached) $ECHO_C" >&6
30201else
30202
30203 cat >conftest.$ac_ext <<_ACEOF
30204/* confdefs.h. */
30205_ACEOF
30206cat confdefs.h >>conftest.$ac_ext
30207cat >>conftest.$ac_ext <<_ACEOF
30208/* end confdefs.h. */
30209#include <signal.h>
30210int
30211main ()
30212{
30213
30214 extern void testSigHandler(int);
30215
30216 struct sigaction sa;
30217 sa.sa_handler = testSigHandler;
30218
30219 ;
30220 return 0;
30221}
30222_ACEOF
30223rm -f conftest.$ac_objext
30224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30225 (eval $ac_compile) 2>conftest.er1
a848cd7e 30226 ac_status=$?
ac1cb8d3
VS
30227 grep -v '^ *+' conftest.er1 >conftest.err
30228 rm -f conftest.er1
30229 cat conftest.err >&5
a848cd7e
SC
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); } &&
da4486fb 30232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30234 (eval $ac_try) 2>&5
30235 ac_status=$?
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); }; } &&
30238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30240 (eval $ac_try) 2>&5
30241 ac_status=$?
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); }; }; then
30244
30245 wx_cv_type_sa_handler=int
30246
30247else
30248 echo "$as_me: failed program was:" >&5
30249sed 's/^/| /' conftest.$ac_ext >&5
30250
30251
30252 wx_cv_type_sa_handler=void
30253
30254fi
ac1cb8d3 30255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30256
30257fi
30258echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30259echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30260
30261 ac_ext=c
30262ac_cpp='$CPP $CPPFLAGS'
30263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30265ac_compiler_gnu=$ac_cv_c_compiler_gnu
30266
30267
30268 cat >>confdefs.h <<_ACEOF
30269#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30270_ACEOF
30271
30272 fi
30273fi
30274
eaff0f0d
VZ
30275if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30276
30277
30278 ac_ext=cc
30279ac_cpp='$CXXCPP $CPPFLAGS'
30280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30283
30284
30285 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30286echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30287if test "${wx_cv_func_backtrace+set}" = set; then
30288 echo $ECHO_N "(cached) $ECHO_C" >&6
30289else
30290
30291 cat >conftest.$ac_ext <<_ACEOF
30292/* confdefs.h. */
30293_ACEOF
30294cat confdefs.h >>conftest.$ac_ext
30295cat >>conftest.$ac_ext <<_ACEOF
30296/* end confdefs.h. */
30297#include <execinfo.h>
30298int
30299main ()
30300{
30301
30302 void *trace[1];
30303 char **messages;
30304
30305 backtrace(trace, 1);
30306 messages = backtrace_symbols(trace, 1);
30307
30308 ;
30309 return 0;
30310}
30311_ACEOF
30312rm -f conftest.$ac_objext
30313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30314 (eval $ac_compile) 2>conftest.er1
30315 ac_status=$?
30316 grep -v '^ *+' conftest.er1 >conftest.err
30317 rm -f conftest.er1
30318 cat conftest.err >&5
30319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320 (exit $ac_status); } &&
da4486fb 30321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
30322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30323 (eval $ac_try) 2>&5
30324 ac_status=$?
30325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); }; } &&
30327 { ac_try='test -s conftest.$ac_objext'
30328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30329 (eval $ac_try) 2>&5
30330 ac_status=$?
30331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); }; }; then
30333 wx_cv_func_backtrace=yes
30334else
30335 echo "$as_me: failed program was:" >&5
30336sed 's/^/| /' conftest.$ac_ext >&5
30337
30338wx_cv_func_backtrace=no
30339
30340fi
30341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30342
30343
30344fi
30345echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
30346echo "${ECHO_T}$wx_cv_func_backtrace" >&6
30347
30348
30349 if test "$wx_cv_func_backtrace" = "no"; then
30350 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
30351echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
30352 wxUSE_STACKWALKER=no
30353 else
30354 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
30355echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
30356if test "${wx_cv_func_cxa_demangle+set}" = set; then
30357 echo $ECHO_N "(cached) $ECHO_C" >&6
30358else
30359
30360 cat >conftest.$ac_ext <<_ACEOF
30361/* confdefs.h. */
30362_ACEOF
30363cat confdefs.h >>conftest.$ac_ext
30364cat >>conftest.$ac_ext <<_ACEOF
30365/* end confdefs.h. */
30366#include <cxxabi.h>
30367int
30368main ()
30369{
30370
30371 int rc;
30372 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
30373
30374 ;
30375 return 0;
30376}
30377_ACEOF
30378rm -f conftest.$ac_objext
30379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30380 (eval $ac_compile) 2>conftest.er1
30381 ac_status=$?
30382 grep -v '^ *+' conftest.er1 >conftest.err
30383 rm -f conftest.er1
30384 cat conftest.err >&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); } &&
da4486fb 30387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
30388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30389 (eval $ac_try) 2>&5
30390 ac_status=$?
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); }; } &&
30393 { ac_try='test -s conftest.$ac_objext'
30394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30395 (eval $ac_try) 2>&5
30396 ac_status=$?
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); }; }; then
30399 wx_cv_func_cxa_demangle=yes
30400else
30401 echo "$as_me: failed program was:" >&5
30402sed 's/^/| /' conftest.$ac_ext >&5
30403
30404wx_cv_func_cxa_demangle=no
30405
30406fi
30407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30408
30409
30410fi
30411echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
30412echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
30413
30414 if test "$wx_cv_func_cxa_demangle" = "yes"; then
30415 cat >>confdefs.h <<\_ACEOF
30416#define HAVE_CXA_DEMANGLE 1
30417_ACEOF
30418
30419 fi
30420 fi
30421
30422 ac_ext=c
30423ac_cpp='$CPP $CPPFLAGS'
30424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30426ac_compiler_gnu=$ac_cv_c_compiler_gnu
30427
30428fi
30429
a848cd7e
SC
30430
30431
30432for ac_func in mkstemp mktemp
30433do
30434as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30435echo "$as_me:$LINENO: checking for $ac_func" >&5
30436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30437if eval "test \"\${$as_ac_var+set}\" = set"; then
30438 echo $ECHO_N "(cached) $ECHO_C" >&6
30439else
30440 cat >conftest.$ac_ext <<_ACEOF
30441/* confdefs.h. */
30442_ACEOF
30443cat confdefs.h >>conftest.$ac_ext
30444cat >>conftest.$ac_ext <<_ACEOF
30445/* end confdefs.h. */
ac1cb8d3
VS
30446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30448#define $ac_func innocuous_$ac_func
30449
a848cd7e
SC
30450/* System header to define __stub macros and hopefully few prototypes,
30451 which can conflict with char $ac_func (); below.
30452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30453 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30454
a848cd7e
SC
30455#ifdef __STDC__
30456# include <limits.h>
30457#else
30458# include <assert.h>
30459#endif
ac1cb8d3
VS
30460
30461#undef $ac_func
30462
a848cd7e
SC
30463/* Override any gcc2 internal prototype to avoid an error. */
30464#ifdef __cplusplus
30465extern "C"
30466{
30467#endif
30468/* We use char because int might match the return type of a gcc2
30469 builtin and then its argument prototype would still apply. */
30470char $ac_func ();
30471/* The GNU C library defines this for functions which it implements
30472 to always fail with ENOSYS. Some functions are actually named
30473 something starting with __ and the normal name is an alias. */
30474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30475choke me
30476#else
30477char (*f) () = $ac_func;
30478#endif
30479#ifdef __cplusplus
30480}
30481#endif
30482
30483int
30484main ()
30485{
30486return f != $ac_func;
30487 ;
30488 return 0;
30489}
30490_ACEOF
30491rm -f conftest.$ac_objext conftest$ac_exeext
30492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30493 (eval $ac_link) 2>conftest.er1
a848cd7e 30494 ac_status=$?
ac1cb8d3
VS
30495 grep -v '^ *+' conftest.er1 >conftest.err
30496 rm -f conftest.er1
30497 cat conftest.err >&5
a848cd7e
SC
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); } &&
da4486fb 30500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30502 (eval $ac_try) 2>&5
30503 ac_status=$?
30504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505 (exit $ac_status); }; } &&
30506 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30508 (eval $ac_try) 2>&5
30509 ac_status=$?
30510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511 (exit $ac_status); }; }; then
30512 eval "$as_ac_var=yes"
30513else
30514 echo "$as_me: failed program was:" >&5
30515sed 's/^/| /' conftest.$ac_ext >&5
30516
30517eval "$as_ac_var=no"
30518fi
ac1cb8d3
VS
30519rm -f conftest.err conftest.$ac_objext \
30520 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30521fi
30522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30523echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30524if test `eval echo '${'$as_ac_var'}'` = yes; then
30525 cat >>confdefs.h <<_ACEOF
30526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30527_ACEOF
30528 break
30529fi
30530done
30531
30532
30533echo "$as_me:$LINENO: checking for statfs" >&5
30534echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30535if test "${wx_cv_func_statfs+set}" = set; then
30536 echo $ECHO_N "(cached) $ECHO_C" >&6
30537else
30538 cat >conftest.$ac_ext <<_ACEOF
30539/* confdefs.h. */
30540_ACEOF
30541cat confdefs.h >>conftest.$ac_ext
30542cat >>conftest.$ac_ext <<_ACEOF
30543/* end confdefs.h. */
30544
30545 #if defined(__BSD__)
30546 #include <sys/param.h>
30547 #include <sys/mount.h>
30548 #else
30549 #include <sys/vfs.h>
30550 #endif
30551
30552int
30553main ()
30554{
30555
30556 long l;
30557 struct statfs fs;
30558 statfs("/", &fs);
30559 l = fs.f_bsize;
30560 l += fs.f_blocks;
30561 l += fs.f_bavail;
30562
30563 ;
30564 return 0;
30565}
30566_ACEOF
30567rm -f conftest.$ac_objext
30568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30569 (eval $ac_compile) 2>conftest.er1
a848cd7e 30570 ac_status=$?
ac1cb8d3
VS
30571 grep -v '^ *+' conftest.er1 >conftest.err
30572 rm -f conftest.er1
30573 cat conftest.err >&5
a848cd7e
SC
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); } &&
da4486fb 30576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
30582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30585 ac_status=$?
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; }; then
30588
30589 wx_cv_func_statfs=yes
30590
30591else
30592 echo "$as_me: failed program was:" >&5
30593sed 's/^/| /' conftest.$ac_ext >&5
30594
30595
30596 wx_cv_func_statfs=no
30597
30598
30599fi
ac1cb8d3 30600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30601
30602fi
30603echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30604echo "${ECHO_T}$wx_cv_func_statfs" >&6
30605
30606if test "$wx_cv_func_statfs" = "yes"; then
30607 wx_cv_type_statvfs_t="struct statfs"
30608 cat >>confdefs.h <<\_ACEOF
30609#define HAVE_STATFS 1
30610_ACEOF
30611
30612else
30613 echo "$as_me:$LINENO: checking for statvfs" >&5
30614echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30615if test "${wx_cv_func_statvfs+set}" = set; then
30616 echo $ECHO_N "(cached) $ECHO_C" >&6
30617else
30618 cat >conftest.$ac_ext <<_ACEOF
30619/* confdefs.h. */
30620_ACEOF
30621cat confdefs.h >>conftest.$ac_ext
30622cat >>conftest.$ac_ext <<_ACEOF
30623/* end confdefs.h. */
30624
30625 #include <stddef.h>
30626 #include <sys/statvfs.h>
30627
30628int
30629main ()
30630{
30631
30632 statvfs("/", NULL);
30633
30634 ;
30635 return 0;
30636}
30637_ACEOF
30638rm -f conftest.$ac_objext
30639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30640 (eval $ac_compile) 2>conftest.er1
a848cd7e 30641 ac_status=$?
ac1cb8d3
VS
30642 grep -v '^ *+' conftest.er1 >conftest.err
30643 rm -f conftest.er1
30644 cat conftest.err >&5
a848cd7e
SC
30645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); } &&
da4486fb 30647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30649 (eval $ac_try) 2>&5
30650 ac_status=$?
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); }; } &&
30653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655 (eval $ac_try) 2>&5
30656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; }; then
30659 wx_cv_func_statvfs=yes
30660else
30661 echo "$as_me: failed program was:" >&5
30662sed 's/^/| /' conftest.$ac_ext >&5
30663
30664wx_cv_func_statvfs=no
30665
30666fi
ac1cb8d3 30667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30668
30669fi
30670echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30671echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30672
30673 if test "$wx_cv_func_statvfs" = "yes"; then
30674
30675
30676 ac_ext=cc
30677ac_cpp='$CXXCPP $CPPFLAGS'
30678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30681
30682
30683 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30684echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30685if test "${wx_cv_type_statvfs_t+set}" = set; then
30686 echo $ECHO_N "(cached) $ECHO_C" >&6
30687else
30688 cat >conftest.$ac_ext <<_ACEOF
30689/* confdefs.h. */
30690_ACEOF
30691cat confdefs.h >>conftest.$ac_ext
30692cat >>conftest.$ac_ext <<_ACEOF
30693/* end confdefs.h. */
30694
30695 #include <sys/statvfs.h>
30696
30697int
30698main ()
30699{
30700
30701 long l;
30702 statvfs_t fs;
30703 statvfs("/", &fs);
30704 l = fs.f_bsize;
30705 l += fs.f_blocks;
30706 l += fs.f_bavail;
30707
30708 ;
30709 return 0;
30710}
30711_ACEOF
30712rm -f conftest.$ac_objext
30713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30714 (eval $ac_compile) 2>conftest.er1
a848cd7e 30715 ac_status=$?
ac1cb8d3
VS
30716 grep -v '^ *+' conftest.er1 >conftest.err
30717 rm -f conftest.er1
30718 cat conftest.err >&5
a848cd7e
SC
30719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); } &&
da4486fb 30721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30723 (eval $ac_try) 2>&5
30724 ac_status=$?
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); }; } &&
30727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729 (eval $ac_try) 2>&5
30730 ac_status=$?
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; }; then
30733 wx_cv_type_statvfs_t=statvfs_t
30734else
30735 echo "$as_me: failed program was:" >&5
30736sed 's/^/| /' conftest.$ac_ext >&5
30737
30738
30739 cat >conftest.$ac_ext <<_ACEOF
30740/* confdefs.h. */
30741_ACEOF
30742cat confdefs.h >>conftest.$ac_ext
30743cat >>conftest.$ac_ext <<_ACEOF
30744/* end confdefs.h. */
30745
30746 #include <sys/statvfs.h>
30747
30748int
30749main ()
30750{
30751
30752 long l;
30753 struct statvfs fs;
30754 statvfs("/", &fs);
30755 l = fs.f_bsize;
30756 l += fs.f_blocks;
30757 l += fs.f_bavail;
30758
30759 ;
30760 return 0;
30761}
30762_ACEOF
30763rm -f conftest.$ac_objext
30764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30765 (eval $ac_compile) 2>conftest.er1
a848cd7e 30766 ac_status=$?
ac1cb8d3
VS
30767 grep -v '^ *+' conftest.er1 >conftest.err
30768 rm -f conftest.er1
30769 cat conftest.err >&5
a848cd7e
SC
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); } &&
da4486fb 30772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774 (eval $ac_try) 2>&5
30775 ac_status=$?
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); }; } &&
30778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30780 (eval $ac_try) 2>&5
30781 ac_status=$?
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); }; }; then
30784 wx_cv_type_statvfs_t="struct statvfs"
30785else
30786 echo "$as_me: failed program was:" >&5
30787sed 's/^/| /' conftest.$ac_ext >&5
30788
30789wx_cv_type_statvfs_t="unknown"
30790
30791fi
ac1cb8d3 30792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30793
30794
30795fi
ac1cb8d3 30796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30797
30798fi
30799echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30800echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30801
30802 ac_ext=c
30803ac_cpp='$CPP $CPPFLAGS'
30804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30806ac_compiler_gnu=$ac_cv_c_compiler_gnu
30807
30808
30809 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30810 cat >>confdefs.h <<\_ACEOF
30811#define HAVE_STATVFS 1
30812_ACEOF
30813
30814 fi
30815 else
30816 wx_cv_type_statvfs_t="unknown"
30817 fi
30818fi
30819
30820if test "$wx_cv_type_statvfs_t" != "unknown"; then
30821 cat >>confdefs.h <<_ACEOF
30822#define WX_STATFS_T $wx_cv_type_statvfs_t
30823_ACEOF
30824
30825else
30826 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30827echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30828fi
30829
30830if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30831
30832
30833for ac_func in fcntl flock
30834do
30835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30836echo "$as_me:$LINENO: checking for $ac_func" >&5
30837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30838if eval "test \"\${$as_ac_var+set}\" = set"; then
30839 echo $ECHO_N "(cached) $ECHO_C" >&6
30840else
30841 cat >conftest.$ac_ext <<_ACEOF
30842/* confdefs.h. */
30843_ACEOF
30844cat confdefs.h >>conftest.$ac_ext
30845cat >>conftest.$ac_ext <<_ACEOF
30846/* end confdefs.h. */
ac1cb8d3
VS
30847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30849#define $ac_func innocuous_$ac_func
30850
a848cd7e
SC
30851/* System header to define __stub macros and hopefully few prototypes,
30852 which can conflict with char $ac_func (); below.
30853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30854 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30855
a848cd7e
SC
30856#ifdef __STDC__
30857# include <limits.h>
30858#else
30859# include <assert.h>
30860#endif
ac1cb8d3
VS
30861
30862#undef $ac_func
30863
a848cd7e
SC
30864/* Override any gcc2 internal prototype to avoid an error. */
30865#ifdef __cplusplus
30866extern "C"
30867{
30868#endif
30869/* We use char because int might match the return type of a gcc2
30870 builtin and then its argument prototype would still apply. */
30871char $ac_func ();
30872/* The GNU C library defines this for functions which it implements
30873 to always fail with ENOSYS. Some functions are actually named
30874 something starting with __ and the normal name is an alias. */
30875#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30876choke me
30877#else
30878char (*f) () = $ac_func;
30879#endif
30880#ifdef __cplusplus
30881}
30882#endif
30883
30884int
30885main ()
30886{
30887return f != $ac_func;
30888 ;
30889 return 0;
30890}
30891_ACEOF
30892rm -f conftest.$ac_objext conftest$ac_exeext
30893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30894 (eval $ac_link) 2>conftest.er1
a848cd7e 30895 ac_status=$?
ac1cb8d3
VS
30896 grep -v '^ *+' conftest.er1 >conftest.err
30897 rm -f conftest.er1
30898 cat conftest.err >&5
a848cd7e
SC
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); } &&
da4486fb 30901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30903 (eval $ac_try) 2>&5
30904 ac_status=$?
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; } &&
30907 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30909 (eval $ac_try) 2>&5
30910 ac_status=$?
30911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912 (exit $ac_status); }; }; then
30913 eval "$as_ac_var=yes"
30914else
30915 echo "$as_me: failed program was:" >&5
30916sed 's/^/| /' conftest.$ac_ext >&5
30917
30918eval "$as_ac_var=no"
30919fi
ac1cb8d3
VS
30920rm -f conftest.err conftest.$ac_objext \
30921 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30922fi
30923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30924echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30925if test `eval echo '${'$as_ac_var'}'` = yes; then
30926 cat >>confdefs.h <<_ACEOF
30927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30928_ACEOF
30929 break
30930fi
30931done
30932
30933
30934 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30935 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30936echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30937 wxUSE_SNGLINST_CHECKER=no
30938 fi
30939fi
30940
30941
30942for ac_func in timegm
30943do
30944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30945echo "$as_me:$LINENO: checking for $ac_func" >&5
30946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30947if eval "test \"\${$as_ac_var+set}\" = set"; then
30948 echo $ECHO_N "(cached) $ECHO_C" >&6
30949else
30950 cat >conftest.$ac_ext <<_ACEOF
30951/* confdefs.h. */
30952_ACEOF
30953cat confdefs.h >>conftest.$ac_ext
30954cat >>conftest.$ac_ext <<_ACEOF
30955/* end confdefs.h. */
ac1cb8d3
VS
30956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30958#define $ac_func innocuous_$ac_func
30959
a848cd7e
SC
30960/* System header to define __stub macros and hopefully few prototypes,
30961 which can conflict with char $ac_func (); below.
30962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30963 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30964
a848cd7e
SC
30965#ifdef __STDC__
30966# include <limits.h>
30967#else
30968# include <assert.h>
30969#endif
ac1cb8d3
VS
30970
30971#undef $ac_func
30972
a848cd7e
SC
30973/* Override any gcc2 internal prototype to avoid an error. */
30974#ifdef __cplusplus
30975extern "C"
30976{
30977#endif
30978/* We use char because int might match the return type of a gcc2
30979 builtin and then its argument prototype would still apply. */
30980char $ac_func ();
30981/* The GNU C library defines this for functions which it implements
30982 to always fail with ENOSYS. Some functions are actually named
30983 something starting with __ and the normal name is an alias. */
30984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30985choke me
30986#else
30987char (*f) () = $ac_func;
30988#endif
30989#ifdef __cplusplus
30990}
30991#endif
30992
30993int
30994main ()
30995{
30996return f != $ac_func;
30997 ;
30998 return 0;
30999}
31000_ACEOF
31001rm -f conftest.$ac_objext conftest$ac_exeext
31002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31003 (eval $ac_link) 2>conftest.er1
a848cd7e 31004 ac_status=$?
ac1cb8d3
VS
31005 grep -v '^ *+' conftest.er1 >conftest.err
31006 rm -f conftest.er1
31007 cat conftest.err >&5
a848cd7e
SC
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); } &&
da4486fb 31010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31012 (eval $ac_try) 2>&5
31013 ac_status=$?
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); }; } &&
31016 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31018 (eval $ac_try) 2>&5
31019 ac_status=$?
31020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021 (exit $ac_status); }; }; then
31022 eval "$as_ac_var=yes"
31023else
31024 echo "$as_me: failed program was:" >&5
31025sed 's/^/| /' conftest.$ac_ext >&5
31026
31027eval "$as_ac_var=no"
31028fi
ac1cb8d3
VS
31029rm -f conftest.err conftest.$ac_objext \
31030 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31031fi
31032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31033echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31034if test `eval echo '${'$as_ac_var'}'` = yes; then
31035 cat >>confdefs.h <<_ACEOF
31036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31037_ACEOF
31038
31039fi
31040done
31041
31042
31043
31044
31045for ac_func in putenv setenv
31046do
31047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31048echo "$as_me:$LINENO: checking for $ac_func" >&5
31049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31050if eval "test \"\${$as_ac_var+set}\" = set"; then
31051 echo $ECHO_N "(cached) $ECHO_C" >&6
31052else
31053 cat >conftest.$ac_ext <<_ACEOF
31054/* confdefs.h. */
31055_ACEOF
31056cat confdefs.h >>conftest.$ac_ext
31057cat >>conftest.$ac_ext <<_ACEOF
31058/* end confdefs.h. */
ac1cb8d3
VS
31059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31061#define $ac_func innocuous_$ac_func
31062
a848cd7e
SC
31063/* System header to define __stub macros and hopefully few prototypes,
31064 which can conflict with char $ac_func (); below.
31065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31066 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31067
a848cd7e
SC
31068#ifdef __STDC__
31069# include <limits.h>
31070#else
31071# include <assert.h>
31072#endif
ac1cb8d3
VS
31073
31074#undef $ac_func
31075
a848cd7e
SC
31076/* Override any gcc2 internal prototype to avoid an error. */
31077#ifdef __cplusplus
31078extern "C"
31079{
31080#endif
31081/* We use char because int might match the return type of a gcc2
31082 builtin and then its argument prototype would still apply. */
31083char $ac_func ();
31084/* The GNU C library defines this for functions which it implements
31085 to always fail with ENOSYS. Some functions are actually named
31086 something starting with __ and the normal name is an alias. */
31087#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31088choke me
31089#else
31090char (*f) () = $ac_func;
31091#endif
31092#ifdef __cplusplus
31093}
31094#endif
31095
31096int
31097main ()
31098{
31099return f != $ac_func;
31100 ;
31101 return 0;
31102}
31103_ACEOF
31104rm -f conftest.$ac_objext conftest$ac_exeext
31105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31106 (eval $ac_link) 2>conftest.er1
a848cd7e 31107 ac_status=$?
ac1cb8d3
VS
31108 grep -v '^ *+' conftest.er1 >conftest.err
31109 rm -f conftest.er1
31110 cat conftest.err >&5
a848cd7e
SC
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); } &&
da4486fb 31113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31115 (eval $ac_try) 2>&5
31116 ac_status=$?
31117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31118 (exit $ac_status); }; } &&
31119 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31121 (eval $ac_try) 2>&5
31122 ac_status=$?
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); }; }; then
31125 eval "$as_ac_var=yes"
31126else
31127 echo "$as_me: failed program was:" >&5
31128sed 's/^/| /' conftest.$ac_ext >&5
31129
31130eval "$as_ac_var=no"
31131fi
ac1cb8d3
VS
31132rm -f conftest.err conftest.$ac_objext \
31133 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31134fi
31135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31136echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31137if test `eval echo '${'$as_ac_var'}'` = yes; then
31138 cat >>confdefs.h <<_ACEOF
31139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31140_ACEOF
31141 break
31142fi
31143done
31144
31145
31146HAVE_SOME_SLEEP_FUNC=0
31147if test "$USE_BEOS" = 1; then
31148 cat >>confdefs.h <<\_ACEOF
31149#define HAVE_SLEEP 1
31150_ACEOF
31151
31152 HAVE_SOME_SLEEP_FUNC=1
31153fi
31154
31155if test "$USE_DARWIN" = 1; then
31156 cat >>confdefs.h <<\_ACEOF
31157#define HAVE_USLEEP 1
31158_ACEOF
31159
31160 HAVE_SOME_SLEEP_FUNC=1
31161fi
31162
31163if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31164 POSIX4_LINK=
31165
31166for ac_func in nanosleep
31167do
31168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31169echo "$as_me:$LINENO: checking for $ac_func" >&5
31170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31171if eval "test \"\${$as_ac_var+set}\" = set"; then
31172 echo $ECHO_N "(cached) $ECHO_C" >&6
31173else
31174 cat >conftest.$ac_ext <<_ACEOF
31175/* confdefs.h. */
31176_ACEOF
31177cat confdefs.h >>conftest.$ac_ext
31178cat >>conftest.$ac_ext <<_ACEOF
31179/* end confdefs.h. */
ac1cb8d3
VS
31180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31182#define $ac_func innocuous_$ac_func
31183
a848cd7e
SC
31184/* System header to define __stub macros and hopefully few prototypes,
31185 which can conflict with char $ac_func (); below.
31186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31187 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31188
a848cd7e
SC
31189#ifdef __STDC__
31190# include <limits.h>
31191#else
31192# include <assert.h>
31193#endif
ac1cb8d3
VS
31194
31195#undef $ac_func
31196
a848cd7e
SC
31197/* Override any gcc2 internal prototype to avoid an error. */
31198#ifdef __cplusplus
31199extern "C"
31200{
31201#endif
31202/* We use char because int might match the return type of a gcc2
31203 builtin and then its argument prototype would still apply. */
31204char $ac_func ();
31205/* The GNU C library defines this for functions which it implements
31206 to always fail with ENOSYS. Some functions are actually named
31207 something starting with __ and the normal name is an alias. */
31208#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31209choke me
31210#else
31211char (*f) () = $ac_func;
31212#endif
31213#ifdef __cplusplus
31214}
31215#endif
31216
31217int
31218main ()
31219{
31220return f != $ac_func;
31221 ;
31222 return 0;
31223}
31224_ACEOF
31225rm -f conftest.$ac_objext conftest$ac_exeext
31226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31227 (eval $ac_link) 2>conftest.er1
a848cd7e 31228 ac_status=$?
ac1cb8d3
VS
31229 grep -v '^ *+' conftest.er1 >conftest.err
31230 rm -f conftest.er1
31231 cat conftest.err >&5
a848cd7e
SC
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); } &&
da4486fb 31234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31236 (eval $ac_try) 2>&5
31237 ac_status=$?
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); }; } &&
31240 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31242 (eval $ac_try) 2>&5
31243 ac_status=$?
31244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245 (exit $ac_status); }; }; then
31246 eval "$as_ac_var=yes"
31247else
31248 echo "$as_me: failed program was:" >&5
31249sed 's/^/| /' conftest.$ac_ext >&5
31250
31251eval "$as_ac_var=no"
31252fi
ac1cb8d3
VS
31253rm -f conftest.err conftest.$ac_objext \
31254 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31255fi
31256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31257echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31258if test `eval echo '${'$as_ac_var'}'` = yes; then
31259 cat >>confdefs.h <<_ACEOF
31260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31261_ACEOF
31262 cat >>confdefs.h <<\_ACEOF
31263#define HAVE_NANOSLEEP 1
31264_ACEOF
31265
31266else
31267
31268 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31269echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31270if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31271 echo $ECHO_N "(cached) $ECHO_C" >&6
31272else
31273 ac_check_lib_save_LIBS=$LIBS
31274LIBS="-lposix4 $LIBS"
31275cat >conftest.$ac_ext <<_ACEOF
31276/* confdefs.h. */
31277_ACEOF
31278cat confdefs.h >>conftest.$ac_ext
31279cat >>conftest.$ac_ext <<_ACEOF
31280/* end confdefs.h. */
31281
31282/* Override any gcc2 internal prototype to avoid an error. */
31283#ifdef __cplusplus
31284extern "C"
31285#endif
31286/* We use char because int might match the return type of a gcc2
31287 builtin and then its argument prototype would still apply. */
31288char nanosleep ();
31289int
31290main ()
31291{
31292nanosleep ();
31293 ;
31294 return 0;
31295}
31296_ACEOF
31297rm -f conftest.$ac_objext conftest$ac_exeext
31298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31299 (eval $ac_link) 2>conftest.er1
a848cd7e 31300 ac_status=$?
ac1cb8d3
VS
31301 grep -v '^ *+' conftest.er1 >conftest.err
31302 rm -f conftest.er1
31303 cat conftest.err >&5
a848cd7e
SC
31304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305 (exit $ac_status); } &&
da4486fb 31306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308 (eval $ac_try) 2>&5
31309 ac_status=$?
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; } &&
31312 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314 (eval $ac_try) 2>&5
31315 ac_status=$?
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; }; then
31318 ac_cv_lib_posix4_nanosleep=yes
31319else
31320 echo "$as_me: failed program was:" >&5
31321sed 's/^/| /' conftest.$ac_ext >&5
31322
31323ac_cv_lib_posix4_nanosleep=no
31324fi
ac1cb8d3
VS
31325rm -f conftest.err conftest.$ac_objext \
31326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31327LIBS=$ac_check_lib_save_LIBS
31328fi
31329echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31330echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31331if test $ac_cv_lib_posix4_nanosleep = yes; then
31332
31333 cat >>confdefs.h <<\_ACEOF
31334#define HAVE_NANOSLEEP 1
31335_ACEOF
31336
31337 POSIX4_LINK=" -lposix4"
31338
31339else
31340
31341
31342for ac_func in usleep
31343do
31344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31345echo "$as_me:$LINENO: checking for $ac_func" >&5
31346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31347if eval "test \"\${$as_ac_var+set}\" = set"; then
31348 echo $ECHO_N "(cached) $ECHO_C" >&6
31349else
31350 cat >conftest.$ac_ext <<_ACEOF
31351/* confdefs.h. */
31352_ACEOF
31353cat confdefs.h >>conftest.$ac_ext
31354cat >>conftest.$ac_ext <<_ACEOF
31355/* end confdefs.h. */
ac1cb8d3
VS
31356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31358#define $ac_func innocuous_$ac_func
31359
a848cd7e
SC
31360/* System header to define __stub macros and hopefully few prototypes,
31361 which can conflict with char $ac_func (); below.
31362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31363 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31364
a848cd7e
SC
31365#ifdef __STDC__
31366# include <limits.h>
31367#else
31368# include <assert.h>
31369#endif
ac1cb8d3
VS
31370
31371#undef $ac_func
31372
a848cd7e
SC
31373/* Override any gcc2 internal prototype to avoid an error. */
31374#ifdef __cplusplus
31375extern "C"
31376{
31377#endif
31378/* We use char because int might match the return type of a gcc2
31379 builtin and then its argument prototype would still apply. */
31380char $ac_func ();
31381/* The GNU C library defines this for functions which it implements
31382 to always fail with ENOSYS. Some functions are actually named
31383 something starting with __ and the normal name is an alias. */
31384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31385choke me
31386#else
31387char (*f) () = $ac_func;
31388#endif
31389#ifdef __cplusplus
31390}
31391#endif
31392
31393int
31394main ()
31395{
31396return f != $ac_func;
31397 ;
31398 return 0;
31399}
31400_ACEOF
31401rm -f conftest.$ac_objext conftest$ac_exeext
31402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31403 (eval $ac_link) 2>conftest.er1
a848cd7e 31404 ac_status=$?
ac1cb8d3
VS
31405 grep -v '^ *+' conftest.er1 >conftest.err
31406 rm -f conftest.er1
31407 cat conftest.err >&5
a848cd7e
SC
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); } &&
da4486fb 31410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31412 (eval $ac_try) 2>&5
31413 ac_status=$?
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); }; } &&
31416 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31418 (eval $ac_try) 2>&5
31419 ac_status=$?
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; }; then
31422 eval "$as_ac_var=yes"
31423else
31424 echo "$as_me: failed program was:" >&5
31425sed 's/^/| /' conftest.$ac_ext >&5
31426
31427eval "$as_ac_var=no"
31428fi
ac1cb8d3
VS
31429rm -f conftest.err conftest.$ac_objext \
31430 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31431fi
31432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31433echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31434if test `eval echo '${'$as_ac_var'}'` = yes; then
31435 cat >>confdefs.h <<_ACEOF
31436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31437_ACEOF
31438 cat >>confdefs.h <<\_ACEOF
31439#define HAVE_USLEEP 1
31440_ACEOF
31441
31442else
31443 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31444echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31445
31446fi
31447done
31448
31449
31450
31451fi
31452
31453
31454
31455fi
31456done
31457
31458fi
31459
31460
31461
31462for ac_func in uname gethostname
31463do
31464as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31465echo "$as_me:$LINENO: checking for $ac_func" >&5
31466echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31467if eval "test \"\${$as_ac_var+set}\" = set"; then
31468 echo $ECHO_N "(cached) $ECHO_C" >&6
31469else
31470 cat >conftest.$ac_ext <<_ACEOF
31471/* confdefs.h. */
31472_ACEOF
31473cat confdefs.h >>conftest.$ac_ext
31474cat >>conftest.$ac_ext <<_ACEOF
31475/* end confdefs.h. */
ac1cb8d3
VS
31476/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31478#define $ac_func innocuous_$ac_func
31479
a848cd7e
SC
31480/* System header to define __stub macros and hopefully few prototypes,
31481 which can conflict with char $ac_func (); below.
31482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31483 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31484
a848cd7e
SC
31485#ifdef __STDC__
31486# include <limits.h>
31487#else
31488# include <assert.h>
31489#endif
ac1cb8d3
VS
31490
31491#undef $ac_func
31492
a848cd7e
SC
31493/* Override any gcc2 internal prototype to avoid an error. */
31494#ifdef __cplusplus
31495extern "C"
31496{
31497#endif
31498/* We use char because int might match the return type of a gcc2
31499 builtin and then its argument prototype would still apply. */
31500char $ac_func ();
31501/* The GNU C library defines this for functions which it implements
31502 to always fail with ENOSYS. Some functions are actually named
31503 something starting with __ and the normal name is an alias. */
31504#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31505choke me
31506#else
31507char (*f) () = $ac_func;
31508#endif
31509#ifdef __cplusplus
31510}
31511#endif
31512
31513int
31514main ()
31515{
31516return f != $ac_func;
31517 ;
31518 return 0;
31519}
31520_ACEOF
31521rm -f conftest.$ac_objext conftest$ac_exeext
31522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31523 (eval $ac_link) 2>conftest.er1
a848cd7e 31524 ac_status=$?
ac1cb8d3
VS
31525 grep -v '^ *+' conftest.er1 >conftest.err
31526 rm -f conftest.er1
31527 cat conftest.err >&5
a848cd7e
SC
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); } &&
da4486fb 31530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31532 (eval $ac_try) 2>&5
31533 ac_status=$?
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); }; } &&
31536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31538 (eval $ac_try) 2>&5
31539 ac_status=$?
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); }; }; then
31542 eval "$as_ac_var=yes"
31543else
31544 echo "$as_me: failed program was:" >&5
31545sed 's/^/| /' conftest.$ac_ext >&5
31546
31547eval "$as_ac_var=no"
31548fi
ac1cb8d3
VS
31549rm -f conftest.err conftest.$ac_objext \
31550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31551fi
31552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31553echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31554if test `eval echo '${'$as_ac_var'}'` = yes; then
31555 cat >>confdefs.h <<_ACEOF
31556#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31557_ACEOF
31558 break
31559fi
31560done
31561
31562
31563
31564
31565ac_ext=cc
31566ac_cpp='$CXXCPP $CPPFLAGS'
31567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31570
31571
31572
31573for ac_func in strtok_r
31574do
31575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31576echo "$as_me:$LINENO: checking for $ac_func" >&5
31577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31578if eval "test \"\${$as_ac_var+set}\" = set"; then
31579 echo $ECHO_N "(cached) $ECHO_C" >&6
31580else
31581 cat >conftest.$ac_ext <<_ACEOF
31582/* confdefs.h. */
31583_ACEOF
31584cat confdefs.h >>conftest.$ac_ext
31585cat >>conftest.$ac_ext <<_ACEOF
31586/* end confdefs.h. */
ac1cb8d3
VS
31587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31589#define $ac_func innocuous_$ac_func
31590
a848cd7e
SC
31591/* System header to define __stub macros and hopefully few prototypes,
31592 which can conflict with char $ac_func (); below.
31593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31594 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31595
a848cd7e
SC
31596#ifdef __STDC__
31597# include <limits.h>
31598#else
31599# include <assert.h>
31600#endif
ac1cb8d3
VS
31601
31602#undef $ac_func
31603
a848cd7e
SC
31604/* Override any gcc2 internal prototype to avoid an error. */
31605#ifdef __cplusplus
31606extern "C"
31607{
31608#endif
31609/* We use char because int might match the return type of a gcc2
31610 builtin and then its argument prototype would still apply. */
31611char $ac_func ();
31612/* The GNU C library defines this for functions which it implements
31613 to always fail with ENOSYS. Some functions are actually named
31614 something starting with __ and the normal name is an alias. */
31615#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31616choke me
31617#else
31618char (*f) () = $ac_func;
31619#endif
31620#ifdef __cplusplus
31621}
31622#endif
31623
31624int
31625main ()
31626{
31627return f != $ac_func;
31628 ;
31629 return 0;
31630}
31631_ACEOF
31632rm -f conftest.$ac_objext conftest$ac_exeext
31633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31634 (eval $ac_link) 2>conftest.er1
a848cd7e 31635 ac_status=$?
ac1cb8d3
VS
31636 grep -v '^ *+' conftest.er1 >conftest.err
31637 rm -f conftest.er1
31638 cat conftest.err >&5
a848cd7e
SC
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); } &&
da4486fb 31641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31643 (eval $ac_try) 2>&5
31644 ac_status=$?
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); }; } &&
31647 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31649 (eval $ac_try) 2>&5
31650 ac_status=$?
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); }; }; then
31653 eval "$as_ac_var=yes"
31654else
31655 echo "$as_me: failed program was:" >&5
31656sed 's/^/| /' conftest.$ac_ext >&5
31657
31658eval "$as_ac_var=no"
31659fi
ac1cb8d3
VS
31660rm -f conftest.err conftest.$ac_objext \
31661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31662fi
31663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31664echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31665if test `eval echo '${'$as_ac_var'}'` = yes; then
31666 cat >>confdefs.h <<_ACEOF
31667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31668_ACEOF
31669
31670fi
31671done
31672
31673
31674ac_ext=c
31675ac_cpp='$CPP $CPPFLAGS'
31676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31678ac_compiler_gnu=$ac_cv_c_compiler_gnu
31679
31680
31681INET_LINK=
31682
31683for ac_func in inet_addr
31684do
31685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31686echo "$as_me:$LINENO: checking for $ac_func" >&5
31687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31688if eval "test \"\${$as_ac_var+set}\" = set"; then
31689 echo $ECHO_N "(cached) $ECHO_C" >&6
31690else
31691 cat >conftest.$ac_ext <<_ACEOF
31692/* confdefs.h. */
31693_ACEOF
31694cat confdefs.h >>conftest.$ac_ext
31695cat >>conftest.$ac_ext <<_ACEOF
31696/* end confdefs.h. */
ac1cb8d3
VS
31697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31699#define $ac_func innocuous_$ac_func
31700
a848cd7e
SC
31701/* System header to define __stub macros and hopefully few prototypes,
31702 which can conflict with char $ac_func (); below.
31703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31704 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31705
a848cd7e
SC
31706#ifdef __STDC__
31707# include <limits.h>
31708#else
31709# include <assert.h>
31710#endif
ac1cb8d3
VS
31711
31712#undef $ac_func
31713
a848cd7e
SC
31714/* Override any gcc2 internal prototype to avoid an error. */
31715#ifdef __cplusplus
31716extern "C"
31717{
31718#endif
31719/* We use char because int might match the return type of a gcc2
31720 builtin and then its argument prototype would still apply. */
31721char $ac_func ();
31722/* The GNU C library defines this for functions which it implements
31723 to always fail with ENOSYS. Some functions are actually named
31724 something starting with __ and the normal name is an alias. */
31725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31726choke me
31727#else
31728char (*f) () = $ac_func;
31729#endif
31730#ifdef __cplusplus
31731}
31732#endif
31733
31734int
31735main ()
31736{
31737return f != $ac_func;
31738 ;
31739 return 0;
31740}
31741_ACEOF
31742rm -f conftest.$ac_objext conftest$ac_exeext
31743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31744 (eval $ac_link) 2>conftest.er1
a848cd7e 31745 ac_status=$?
ac1cb8d3
VS
31746 grep -v '^ *+' conftest.er1 >conftest.err
31747 rm -f conftest.er1
31748 cat conftest.err >&5
a848cd7e
SC
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); } &&
da4486fb 31751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31753 (eval $ac_try) 2>&5
31754 ac_status=$?
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); }; } &&
31757 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31759 (eval $ac_try) 2>&5
31760 ac_status=$?
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); }; }; then
31763 eval "$as_ac_var=yes"
31764else
31765 echo "$as_me: failed program was:" >&5
31766sed 's/^/| /' conftest.$ac_ext >&5
31767
31768eval "$as_ac_var=no"
31769fi
ac1cb8d3
VS
31770rm -f conftest.err conftest.$ac_objext \
31771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31772fi
31773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31775if test `eval echo '${'$as_ac_var'}'` = yes; then
31776 cat >>confdefs.h <<_ACEOF
31777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31778_ACEOF
31779 cat >>confdefs.h <<\_ACEOF
31780#define HAVE_INET_ADDR 1
31781_ACEOF
31782
31783else
31784
31785 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31786echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31787if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31788 echo $ECHO_N "(cached) $ECHO_C" >&6
31789else
31790 ac_check_lib_save_LIBS=$LIBS
31791LIBS="-lnsl $LIBS"
31792cat >conftest.$ac_ext <<_ACEOF
31793/* confdefs.h. */
31794_ACEOF
31795cat confdefs.h >>conftest.$ac_ext
31796cat >>conftest.$ac_ext <<_ACEOF
31797/* end confdefs.h. */
31798
31799/* Override any gcc2 internal prototype to avoid an error. */
31800#ifdef __cplusplus
31801extern "C"
31802#endif
31803/* We use char because int might match the return type of a gcc2
31804 builtin and then its argument prototype would still apply. */
31805char inet_addr ();
31806int
31807main ()
31808{
31809inet_addr ();
31810 ;
31811 return 0;
31812}
31813_ACEOF
31814rm -f conftest.$ac_objext conftest$ac_exeext
31815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31816 (eval $ac_link) 2>conftest.er1
a848cd7e 31817 ac_status=$?
ac1cb8d3
VS
31818 grep -v '^ *+' conftest.er1 >conftest.err
31819 rm -f conftest.er1
31820 cat conftest.err >&5
a848cd7e
SC
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); } &&
da4486fb 31823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31825 (eval $ac_try) 2>&5
31826 ac_status=$?
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); }; } &&
31829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31831 (eval $ac_try) 2>&5
31832 ac_status=$?
31833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834 (exit $ac_status); }; }; then
31835 ac_cv_lib_nsl_inet_addr=yes
31836else
31837 echo "$as_me: failed program was:" >&5
31838sed 's/^/| /' conftest.$ac_ext >&5
31839
31840ac_cv_lib_nsl_inet_addr=no
31841fi
ac1cb8d3
VS
31842rm -f conftest.err conftest.$ac_objext \
31843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31844LIBS=$ac_check_lib_save_LIBS
31845fi
31846echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31847echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31848if test $ac_cv_lib_nsl_inet_addr = yes; then
31849 INET_LINK="nsl"
31850else
31851
31852 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31853echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31854if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31855 echo $ECHO_N "(cached) $ECHO_C" >&6
31856else
31857 ac_check_lib_save_LIBS=$LIBS
31858LIBS="-lresolv $LIBS"
31859cat >conftest.$ac_ext <<_ACEOF
31860/* confdefs.h. */
31861_ACEOF
31862cat confdefs.h >>conftest.$ac_ext
31863cat >>conftest.$ac_ext <<_ACEOF
31864/* end confdefs.h. */
31865
31866/* Override any gcc2 internal prototype to avoid an error. */
31867#ifdef __cplusplus
31868extern "C"
31869#endif
31870/* We use char because int might match the return type of a gcc2
31871 builtin and then its argument prototype would still apply. */
31872char inet_addr ();
31873int
31874main ()
31875{
31876inet_addr ();
31877 ;
31878 return 0;
31879}
31880_ACEOF
31881rm -f conftest.$ac_objext conftest$ac_exeext
31882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31883 (eval $ac_link) 2>conftest.er1
a848cd7e 31884 ac_status=$?
ac1cb8d3
VS
31885 grep -v '^ *+' conftest.er1 >conftest.err
31886 rm -f conftest.er1
31887 cat conftest.err >&5
a848cd7e
SC
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); } &&
da4486fb 31890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31892 (eval $ac_try) 2>&5
31893 ac_status=$?
31894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895 (exit $ac_status); }; } &&
31896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31898 (eval $ac_try) 2>&5
31899 ac_status=$?
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); }; }; then
31902 ac_cv_lib_resolv_inet_addr=yes
31903else
31904 echo "$as_me: failed program was:" >&5
31905sed 's/^/| /' conftest.$ac_ext >&5
31906
31907ac_cv_lib_resolv_inet_addr=no
31908fi
ac1cb8d3
VS
31909rm -f conftest.err conftest.$ac_objext \
31910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31911LIBS=$ac_check_lib_save_LIBS
31912fi
31913echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31914echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31915if test $ac_cv_lib_resolv_inet_addr = yes; then
31916 INET_LINK="resolv"
31917else
31918
31919 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31920echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31921if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31922 echo $ECHO_N "(cached) $ECHO_C" >&6
31923else
31924 ac_check_lib_save_LIBS=$LIBS
31925LIBS="-lsocket $LIBS"
31926cat >conftest.$ac_ext <<_ACEOF
31927/* confdefs.h. */
31928_ACEOF
31929cat confdefs.h >>conftest.$ac_ext
31930cat >>conftest.$ac_ext <<_ACEOF
31931/* end confdefs.h. */
31932
31933/* Override any gcc2 internal prototype to avoid an error. */
31934#ifdef __cplusplus
31935extern "C"
31936#endif
31937/* We use char because int might match the return type of a gcc2
31938 builtin and then its argument prototype would still apply. */
31939char inet_addr ();
31940int
31941main ()
31942{
31943inet_addr ();
31944 ;
31945 return 0;
31946}
31947_ACEOF
31948rm -f conftest.$ac_objext conftest$ac_exeext
31949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31950 (eval $ac_link) 2>conftest.er1
a848cd7e 31951 ac_status=$?
ac1cb8d3
VS
31952 grep -v '^ *+' conftest.er1 >conftest.err
31953 rm -f conftest.er1
31954 cat conftest.err >&5
a848cd7e
SC
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); } &&
da4486fb 31957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31959 (eval $ac_try) 2>&5
31960 ac_status=$?
31961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962 (exit $ac_status); }; } &&
31963 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31965 (eval $ac_try) 2>&5
31966 ac_status=$?
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); }; }; then
31969 ac_cv_lib_socket_inet_addr=yes
31970else
31971 echo "$as_me: failed program was:" >&5
31972sed 's/^/| /' conftest.$ac_ext >&5
31973
31974ac_cv_lib_socket_inet_addr=no
31975fi
ac1cb8d3
VS
31976rm -f conftest.err conftest.$ac_objext \
31977 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31978LIBS=$ac_check_lib_save_LIBS
31979fi
31980echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31981echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31982if test $ac_cv_lib_socket_inet_addr = yes; then
31983 INET_LINK="socket"
31984
31985fi
31986
31987
31988
31989fi
31990
31991
31992
31993fi
31994
31995
31996
31997fi
31998done
31999
32000
32001
32002for ac_func in inet_aton
32003do
32004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32005echo "$as_me:$LINENO: checking for $ac_func" >&5
32006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32007if eval "test \"\${$as_ac_var+set}\" = set"; then
32008 echo $ECHO_N "(cached) $ECHO_C" >&6
32009else
32010 cat >conftest.$ac_ext <<_ACEOF
32011/* confdefs.h. */
32012_ACEOF
32013cat confdefs.h >>conftest.$ac_ext
32014cat >>conftest.$ac_ext <<_ACEOF
32015/* end confdefs.h. */
ac1cb8d3
VS
32016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32018#define $ac_func innocuous_$ac_func
32019
a848cd7e
SC
32020/* System header to define __stub macros and hopefully few prototypes,
32021 which can conflict with char $ac_func (); below.
32022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32023 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32024
a848cd7e
SC
32025#ifdef __STDC__
32026# include <limits.h>
32027#else
32028# include <assert.h>
32029#endif
ac1cb8d3
VS
32030
32031#undef $ac_func
32032
a848cd7e
SC
32033/* Override any gcc2 internal prototype to avoid an error. */
32034#ifdef __cplusplus
32035extern "C"
32036{
32037#endif
32038/* We use char because int might match the return type of a gcc2
32039 builtin and then its argument prototype would still apply. */
32040char $ac_func ();
32041/* The GNU C library defines this for functions which it implements
32042 to always fail with ENOSYS. Some functions are actually named
32043 something starting with __ and the normal name is an alias. */
32044#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32045choke me
32046#else
32047char (*f) () = $ac_func;
32048#endif
32049#ifdef __cplusplus
32050}
32051#endif
32052
32053int
32054main ()
32055{
32056return f != $ac_func;
32057 ;
32058 return 0;
32059}
32060_ACEOF
32061rm -f conftest.$ac_objext conftest$ac_exeext
32062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32063 (eval $ac_link) 2>conftest.er1
a848cd7e 32064 ac_status=$?
ac1cb8d3
VS
32065 grep -v '^ *+' conftest.er1 >conftest.err
32066 rm -f conftest.er1
32067 cat conftest.err >&5
a848cd7e
SC
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); } &&
da4486fb 32070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32072 (eval $ac_try) 2>&5
32073 ac_status=$?
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); }; } &&
32076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32078 (eval $ac_try) 2>&5
32079 ac_status=$?
32080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081 (exit $ac_status); }; }; then
32082 eval "$as_ac_var=yes"
32083else
32084 echo "$as_me: failed program was:" >&5
32085sed 's/^/| /' conftest.$ac_ext >&5
32086
32087eval "$as_ac_var=no"
32088fi
ac1cb8d3
VS
32089rm -f conftest.err conftest.$ac_objext \
32090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32091fi
32092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32093echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32094if test `eval echo '${'$as_ac_var'}'` = yes; then
32095 cat >>confdefs.h <<_ACEOF
32096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32097_ACEOF
32098 cat >>confdefs.h <<\_ACEOF
32099#define HAVE_INET_ATON 1
32100_ACEOF
32101
32102else
32103
32104 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32105echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32106echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32107if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32108 echo $ECHO_N "(cached) $ECHO_C" >&6
32109else
32110 ac_check_lib_save_LIBS=$LIBS
32111LIBS="-l$INET_LINK $LIBS"
32112cat >conftest.$ac_ext <<_ACEOF
32113/* confdefs.h. */
32114_ACEOF
32115cat confdefs.h >>conftest.$ac_ext
32116cat >>conftest.$ac_ext <<_ACEOF
32117/* end confdefs.h. */
32118
32119/* Override any gcc2 internal prototype to avoid an error. */
32120#ifdef __cplusplus
32121extern "C"
32122#endif
32123/* We use char because int might match the return type of a gcc2
32124 builtin and then its argument prototype would still apply. */
32125char inet_aton ();
32126int
32127main ()
32128{
32129inet_aton ();
32130 ;
32131 return 0;
32132}
32133_ACEOF
32134rm -f conftest.$ac_objext conftest$ac_exeext
32135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32136 (eval $ac_link) 2>conftest.er1
a848cd7e 32137 ac_status=$?
ac1cb8d3
VS
32138 grep -v '^ *+' conftest.er1 >conftest.err
32139 rm -f conftest.er1
32140 cat conftest.err >&5
a848cd7e
SC
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); } &&
da4486fb 32143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32145 (eval $ac_try) 2>&5
32146 ac_status=$?
32147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148 (exit $ac_status); }; } &&
32149 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32151 (eval $ac_try) 2>&5
32152 ac_status=$?
32153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 (exit $ac_status); }; }; then
32155 eval "$as_ac_Lib=yes"
32156else
32157 echo "$as_me: failed program was:" >&5
32158sed 's/^/| /' conftest.$ac_ext >&5
32159
32160eval "$as_ac_Lib=no"
32161fi
ac1cb8d3
VS
32162rm -f conftest.err conftest.$ac_objext \
32163 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32164LIBS=$ac_check_lib_save_LIBS
32165fi
32166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32167echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32168if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32169 cat >>confdefs.h <<\_ACEOF
32170#define HAVE_INET_ATON 1
32171_ACEOF
32172
32173fi
32174
32175
32176fi
32177done
32178
32179
32180if test "x$INET_LINK" != "x"; then
32181 cat >>confdefs.h <<\_ACEOF
32182#define HAVE_INET_ADDR 1
32183_ACEOF
32184
32185 INET_LINK=" -l$INET_LINK"
32186fi
32187
32188fi
32189
32190
32191
32192EXTRALIBS_ESD=
32193echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32194echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32195if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32196 echo $ECHO_N "(cached) $ECHO_C" >&6
32197else
32198 ac_check_lib_save_LIBS=$LIBS
32199LIBS="-lesd $LIBS"
32200cat >conftest.$ac_ext <<_ACEOF
32201/* confdefs.h. */
32202_ACEOF
32203cat confdefs.h >>conftest.$ac_ext
32204cat >>conftest.$ac_ext <<_ACEOF
32205/* end confdefs.h. */
32206
32207/* Override any gcc2 internal prototype to avoid an error. */
32208#ifdef __cplusplus
32209extern "C"
32210#endif
32211/* We use char because int might match the return type of a gcc2
32212 builtin and then its argument prototype would still apply. */
32213char esd_close ();
32214int
32215main ()
32216{
32217esd_close ();
32218 ;
32219 return 0;
32220}
32221_ACEOF
32222rm -f conftest.$ac_objext conftest$ac_exeext
32223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32224 (eval $ac_link) 2>conftest.er1
a848cd7e 32225 ac_status=$?
ac1cb8d3
VS
32226 grep -v '^ *+' conftest.er1 >conftest.err
32227 rm -f conftest.er1
32228 cat conftest.err >&5
a848cd7e
SC
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); } &&
da4486fb 32231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32233 (eval $ac_try) 2>&5
32234 ac_status=$?
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); }; } &&
32237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32239 (eval $ac_try) 2>&5
32240 ac_status=$?
32241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242 (exit $ac_status); }; }; then
32243 ac_cv_lib_esd_esd_close=yes
32244else
32245 echo "$as_me: failed program was:" >&5
32246sed 's/^/| /' conftest.$ac_ext >&5
32247
32248ac_cv_lib_esd_esd_close=no
32249fi
ac1cb8d3
VS
32250rm -f conftest.err conftest.$ac_objext \
32251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32252LIBS=$ac_check_lib_save_LIBS
32253fi
32254echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32255echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32256if test $ac_cv_lib_esd_esd_close = yes; then
32257
32258
32259for ac_header in esd.h
32260do
32261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32262if eval "test \"\${$as_ac_Header+set}\" = set"; then
32263 echo "$as_me:$LINENO: checking for $ac_header" >&5
32264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32265if eval "test \"\${$as_ac_Header+set}\" = set"; then
32266 echo $ECHO_N "(cached) $ECHO_C" >&6
32267fi
32268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32270else
32271 # Is the header compilable?
32272echo "$as_me:$LINENO: checking $ac_header usability" >&5
32273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32274cat >conftest.$ac_ext <<_ACEOF
32275/* confdefs.h. */
32276_ACEOF
32277cat confdefs.h >>conftest.$ac_ext
32278cat >>conftest.$ac_ext <<_ACEOF
32279/* end confdefs.h. */
32280$ac_includes_default
32281#include <$ac_header>
32282_ACEOF
32283rm -f conftest.$ac_objext
32284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32285 (eval $ac_compile) 2>conftest.er1
a848cd7e 32286 ac_status=$?
ac1cb8d3
VS
32287 grep -v '^ *+' conftest.er1 >conftest.err
32288 rm -f conftest.er1
32289 cat conftest.err >&5
a848cd7e
SC
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); } &&
da4486fb 32292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294 (eval $ac_try) 2>&5
32295 ac_status=$?
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); }; } &&
32298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32300 (eval $ac_try) 2>&5
32301 ac_status=$?
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); }; }; then
32304 ac_header_compiler=yes
32305else
32306 echo "$as_me: failed program was:" >&5
32307sed 's/^/| /' conftest.$ac_ext >&5
32308
32309ac_header_compiler=no
32310fi
ac1cb8d3 32311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32313echo "${ECHO_T}$ac_header_compiler" >&6
32314
32315# Is the header present?
32316echo "$as_me:$LINENO: checking $ac_header presence" >&5
32317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32318cat >conftest.$ac_ext <<_ACEOF
32319/* confdefs.h. */
32320_ACEOF
32321cat confdefs.h >>conftest.$ac_ext
32322cat >>conftest.$ac_ext <<_ACEOF
32323/* end confdefs.h. */
32324#include <$ac_header>
32325_ACEOF
32326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32328 ac_status=$?
32329 grep -v '^ *+' conftest.er1 >conftest.err
32330 rm -f conftest.er1
32331 cat conftest.err >&5
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); } >/dev/null; then
32334 if test -s conftest.err; then
32335 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32337 else
32338 ac_cpp_err=
32339 fi
32340else
32341 ac_cpp_err=yes
32342fi
32343if test -z "$ac_cpp_err"; then
32344 ac_header_preproc=yes
32345else
32346 echo "$as_me: failed program was:" >&5
32347sed 's/^/| /' conftest.$ac_ext >&5
32348
32349 ac_header_preproc=no
32350fi
32351rm -f conftest.err conftest.$ac_ext
32352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32353echo "${ECHO_T}$ac_header_preproc" >&6
32354
32355# So? What about this header?
ac1cb8d3
VS
32356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32357 yes:no: )
a848cd7e
SC
32358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32359echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32361echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32362 ac_header_preproc=yes
a848cd7e 32363 ;;
ac1cb8d3 32364 no:yes:* )
a848cd7e
SC
32365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32366echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32368echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32370echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32372echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32374echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32376echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32377 (
32378 cat <<\_ASBOX
ac1cb8d3
VS
32379## ----------------------------------------- ##
32380## Report this to wx-dev@lists.wxwidgets.org ##
32381## ----------------------------------------- ##
a848cd7e
SC
32382_ASBOX
32383 ) |
32384 sed "s/^/$as_me: WARNING: /" >&2
32385 ;;
32386esac
32387echo "$as_me:$LINENO: checking for $ac_header" >&5
32388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32389if eval "test \"\${$as_ac_Header+set}\" = set"; then
32390 echo $ECHO_N "(cached) $ECHO_C" >&6
32391else
ac1cb8d3 32392 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32393fi
32394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32396
32397fi
32398if test `eval echo '${'$as_ac_Header'}'` = yes; then
32399 cat >>confdefs.h <<_ACEOF
32400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32401_ACEOF
32402
32403 EXTRALIBS_ESD="-lesd"
32404
32405fi
32406
32407done
32408
32409
32410fi
32411
32412
32413
32414echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32415echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32416cat >conftest.$ac_ext <<_ACEOF
32417/* confdefs.h. */
32418_ACEOF
32419cat confdefs.h >>conftest.$ac_ext
32420cat >>conftest.$ac_ext <<_ACEOF
32421/* end confdefs.h. */
32422#ifdef __linux__
32423 #include <linux/cdrom.h>
32424 #else
32425 /* For Solaris */
32426 #include <sys/cdio.h>
32427 #endif
32428
32429int
32430main ()
32431{
32432struct cdrom_tocentry entry, old_entry;
32433 ;
32434 return 0;
32435}
32436_ACEOF
32437rm -f conftest.$ac_objext
32438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32439 (eval $ac_compile) 2>conftest.er1
a848cd7e 32440 ac_status=$?
ac1cb8d3
VS
32441 grep -v '^ *+' conftest.er1 >conftest.err
32442 rm -f conftest.er1
32443 cat conftest.err >&5
a848cd7e
SC
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } &&
da4486fb 32446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448 (eval $ac_try) 2>&5
32449 ac_status=$?
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); }; } &&
32452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454 (eval $ac_try) 2>&5
32455 ac_status=$?
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); }; }; then
32458 echo "$as_me:$LINENO: result: yes" >&5
32459echo "${ECHO_T}yes" >&6
32460 cat >>confdefs.h <<\_ACEOF
32461#define HAVE_KNOWN_CDROM_INTERFACE 1
32462_ACEOF
32463
32464else
32465 echo "$as_me: failed program was:" >&5
32466sed 's/^/| /' conftest.$ac_ext >&5
32467
32468echo "$as_me:$LINENO: result: no" >&5
32469echo "${ECHO_T}no" >&6
32470fi
ac1cb8d3 32471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32472
32473
32474cat >confcache <<\_ACEOF
32475# This file is a shell script that caches the results of configure
32476# tests run on this system so they can be shared between configure
32477# scripts and configure runs, see configure's option --config-cache.
32478# It is not useful on other systems. If it contains results you don't
32479# want to keep, you may remove or edit it.
32480#
32481# config.status only pays attention to the cache file if you give it
32482# the --recheck option to rerun configure.
32483#
32484# `ac_cv_env_foo' variables (set or unset) will be overridden when
32485# loading this file, other *unset* `ac_cv_foo' will be assigned the
32486# following values.
32487
32488_ACEOF
32489
32490# The following way of writing the cache mishandles newlines in values,
32491# but we know of no workaround that is simple, portable, and efficient.
32492# So, don't put newlines in cache variables' values.
32493# Ultrix sh set writes to stderr and can't be redirected directly,
32494# and sets the high bit in the cache file unless we assign to the vars.
32495{
32496 (set) 2>&1 |
32497 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32498 *ac_space=\ *)
32499 # `set' does not quote correctly, so add quotes (double-quote
32500 # substitution turns \\\\ into \\, and sed turns \\ into \).
32501 sed -n \
ac1cb8d3
VS
32502 "s/'/'\\\\''/g;
32503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32504 ;;
32505 *)
32506 # `set' quotes correctly as required by POSIX, so do not add quotes.
32507 sed -n \
ac1cb8d3 32508 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32509 ;;
32510 esac;
32511} |
32512 sed '
32513 t clear
32514 : clear
32515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32516 t end
32517 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32518 : end' >>confcache
32519if diff $cache_file confcache >/dev/null 2>&1; then :; else
32520 if test -w $cache_file; then
32521 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32522 cat confcache >$cache_file
32523 else
32524 echo "not updating unwritable cache $cache_file"
32525 fi
32526fi
32527rm -f confcache
32528
32529
32530CPP_MT_FLAG=
32531if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32532
32533
32534 THREADS_LINK=
32535 THREADS_CFLAGS=
32536
32537 if test "$wxUSE_THREADS" = "yes" ; then
32538 if test "$USE_BEOS" = 1; then
32539 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32540echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32541 wxUSE_THREADS="no"
32542 fi
32543 fi
32544
32545 if test "$wxUSE_THREADS" = "yes" ; then
32546
32547
32548 THREAD_OPTS="-pthread"
32549 case "${host}" in
32550 *-*-solaris2* | *-*-sunos4* )
32551 if test "x$GCC" = "xyes"; then
32552 THREAD_OPTS="-pthreads $THREAD_OPTS"
32553 else
32554 THREAD_OPTS="-mt $THREAD_OPTS"
32555 fi
32556 ;;
32557 *-*-freebsd*)
32558 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32559 ;;
32560 *-*-darwin* | *-*-cygwin* )
32561 THREAD_OPTS=""
32562 ;;
32563 *-*-aix*)
32564 THREAD_OPTS="pthreads"
32565 ;;
32566 *-hp-hpux* )
32567 if test "x$GCC" != "xyes"; then
32568 THREAD_OPTS=""
32569 fi
32570 ;;
32571
32572 *-*-irix* )
32573 if test "x$GCC" = "xyes"; then
32574 THREAD_OPTS=""
32575 fi
32576 ;;
32577
32578 *-*-*UnixWare*)
32579 if test "x$GCC" != "xyes"; then
32580 THREAD_OPTS="-Ethread"
32581 fi
32582 ;;
32583 esac
32584
32585 THREAD_OPTS="$THREAD_OPTS pthread none"
32586
32587 THREADS_OK=no
32588 for flag in $THREAD_OPTS; do
32589 case $flag in
32590 none)
32591 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32592echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32593 ;;
32594
32595 -*)
32596 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32597echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32598 THREADS_CFLAGS="$flag"
32599 ;;
32600
32601 *)
32602 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32603echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32604 THREADS_LINK="-l$flag"
32605 ;;
32606 esac
32607
32608 save_LIBS="$LIBS"
32609 save_CFLAGS="$CFLAGS"
32610 LIBS="$THREADS_LINK $LIBS"
32611 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32612
32613 cat >conftest.$ac_ext <<_ACEOF
32614/* confdefs.h. */
32615_ACEOF
32616cat confdefs.h >>conftest.$ac_ext
32617cat >>conftest.$ac_ext <<_ACEOF
32618/* end confdefs.h. */
32619#include <pthread.h>
32620int
32621main ()
32622{
32623pthread_create(0,0,0,0);
32624 ;
32625 return 0;
32626}
32627_ACEOF
32628rm -f conftest.$ac_objext conftest$ac_exeext
32629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32630 (eval $ac_link) 2>conftest.er1
a848cd7e 32631 ac_status=$?
ac1cb8d3
VS
32632 grep -v '^ *+' conftest.er1 >conftest.err
32633 rm -f conftest.er1
32634 cat conftest.err >&5
a848cd7e
SC
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); } &&
da4486fb 32637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32639 (eval $ac_try) 2>&5
32640 ac_status=$?
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); }; } &&
32643 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645 (eval $ac_try) 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; }; then
32649 THREADS_OK=yes
32650else
32651 echo "$as_me: failed program was:" >&5
32652sed 's/^/| /' conftest.$ac_ext >&5
32653
32654fi
ac1cb8d3
VS
32655rm -f conftest.err conftest.$ac_objext \
32656 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32657
32658 LIBS="$save_LIBS"
32659 CFLAGS="$save_CFLAGS"
32660
32661 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32662echo "${ECHO_T}$THREADS_OK" >&6
32663 if test "x$THREADS_OK" = "xyes"; then
32664 break;
32665 fi
32666
32667 THREADS_LINK=""
32668 THREADS_CFLAGS=""
32669 done
32670
32671 if test "x$THREADS_OK" != "xyes"; then
32672 wxUSE_THREADS=no
32673 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32674echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32675 else
32676 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32677 LIBS="$THREADS_LINK $LIBS"
32678
32679 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32680echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32681 flag=no
32682 case "${host}" in
32683 *-aix*)
32684 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32685 flag="-D_THREAD_SAFE"
32686 ;;
32687 *-freebsd*)
32688 flag="-D_THREAD_SAFE"
32689 ;;
32690 *-hp-hpux* )
32691 flag="-D_REENTRANT"
32692 if test "x$GCC" != "xyes"; then
32693 flag="$flag -D_RWSTD_MULTI_THREAD"
32694 fi
32695 ;;
32696 *solaris* | alpha*-osf*)
32697 flag="-D_REENTRANT"
32698 ;;
32699 esac
32700 echo "$as_me:$LINENO: result: ${flag}" >&5
32701echo "${ECHO_T}${flag}" >&6
32702 if test "x$flag" != xno; then
32703 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32704 fi
32705
32706 if test "x$THREADS_CFLAGS" != "x"; then
32707 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32708 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32709 fi
32710 fi
32711 fi
32712
32713 if test "$wxUSE_THREADS" = "yes" ; then
32714
32715for ac_func in thr_setconcurrency
32716do
32717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32718echo "$as_me:$LINENO: checking for $ac_func" >&5
32719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32720if eval "test \"\${$as_ac_var+set}\" = set"; then
32721 echo $ECHO_N "(cached) $ECHO_C" >&6
32722else
32723 cat >conftest.$ac_ext <<_ACEOF
32724/* confdefs.h. */
32725_ACEOF
32726cat confdefs.h >>conftest.$ac_ext
32727cat >>conftest.$ac_ext <<_ACEOF
32728/* end confdefs.h. */
ac1cb8d3
VS
32729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32731#define $ac_func innocuous_$ac_func
32732
a848cd7e
SC
32733/* System header to define __stub macros and hopefully few prototypes,
32734 which can conflict with char $ac_func (); below.
32735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32736 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32737
a848cd7e
SC
32738#ifdef __STDC__
32739# include <limits.h>
32740#else
32741# include <assert.h>
32742#endif
ac1cb8d3
VS
32743
32744#undef $ac_func
32745
a848cd7e
SC
32746/* Override any gcc2 internal prototype to avoid an error. */
32747#ifdef __cplusplus
32748extern "C"
32749{
32750#endif
32751/* We use char because int might match the return type of a gcc2
32752 builtin and then its argument prototype would still apply. */
32753char $ac_func ();
32754/* The GNU C library defines this for functions which it implements
32755 to always fail with ENOSYS. Some functions are actually named
32756 something starting with __ and the normal name is an alias. */
32757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32758choke me
32759#else
32760char (*f) () = $ac_func;
32761#endif
32762#ifdef __cplusplus
32763}
32764#endif
32765
32766int
32767main ()
32768{
32769return f != $ac_func;
32770 ;
32771 return 0;
32772}
32773_ACEOF
32774rm -f conftest.$ac_objext conftest$ac_exeext
32775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32776 (eval $ac_link) 2>conftest.er1
a848cd7e 32777 ac_status=$?
ac1cb8d3
VS
32778 grep -v '^ *+' conftest.er1 >conftest.err
32779 rm -f conftest.er1
32780 cat conftest.err >&5
a848cd7e
SC
32781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32782 (exit $ac_status); } &&
da4486fb 32783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32785 (eval $ac_try) 2>&5
32786 ac_status=$?
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); }; } &&
32789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32791 (eval $ac_try) 2>&5
32792 ac_status=$?
32793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794 (exit $ac_status); }; }; then
32795 eval "$as_ac_var=yes"
32796else
32797 echo "$as_me: failed program was:" >&5
32798sed 's/^/| /' conftest.$ac_ext >&5
32799
32800eval "$as_ac_var=no"
32801fi
ac1cb8d3
VS
32802rm -f conftest.err conftest.$ac_objext \
32803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32804fi
32805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32807if test `eval echo '${'$as_ac_var'}'` = yes; then
32808 cat >>confdefs.h <<_ACEOF
32809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32810_ACEOF
32811
32812fi
32813done
32814
32815
32816
32817for ac_header in sched.h
32818do
32819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32820if eval "test \"\${$as_ac_Header+set}\" = set"; then
32821 echo "$as_me:$LINENO: checking for $ac_header" >&5
32822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32823if eval "test \"\${$as_ac_Header+set}\" = set"; then
32824 echo $ECHO_N "(cached) $ECHO_C" >&6
32825fi
32826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32828else
32829 # Is the header compilable?
32830echo "$as_me:$LINENO: checking $ac_header usability" >&5
32831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32832cat >conftest.$ac_ext <<_ACEOF
32833/* confdefs.h. */
32834_ACEOF
32835cat confdefs.h >>conftest.$ac_ext
32836cat >>conftest.$ac_ext <<_ACEOF
32837/* end confdefs.h. */
32838$ac_includes_default
32839#include <$ac_header>
32840_ACEOF
32841rm -f conftest.$ac_objext
32842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32843 (eval $ac_compile) 2>conftest.er1
a848cd7e 32844 ac_status=$?
ac1cb8d3
VS
32845 grep -v '^ *+' conftest.er1 >conftest.err
32846 rm -f conftest.er1
32847 cat conftest.err >&5
a848cd7e
SC
32848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849 (exit $ac_status); } &&
da4486fb 32850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32852 (eval $ac_try) 2>&5
32853 ac_status=$?
32854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855 (exit $ac_status); }; } &&
32856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32858 (eval $ac_try) 2>&5
32859 ac_status=$?
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); }; }; then
32862 ac_header_compiler=yes
32863else
32864 echo "$as_me: failed program was:" >&5
32865sed 's/^/| /' conftest.$ac_ext >&5
32866
32867ac_header_compiler=no
32868fi
ac1cb8d3 32869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32870echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32871echo "${ECHO_T}$ac_header_compiler" >&6
32872
32873# Is the header present?
32874echo "$as_me:$LINENO: checking $ac_header presence" >&5
32875echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32876cat >conftest.$ac_ext <<_ACEOF
32877/* confdefs.h. */
32878_ACEOF
32879cat confdefs.h >>conftest.$ac_ext
32880cat >>conftest.$ac_ext <<_ACEOF
32881/* end confdefs.h. */
32882#include <$ac_header>
32883_ACEOF
32884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32886 ac_status=$?
32887 grep -v '^ *+' conftest.er1 >conftest.err
32888 rm -f conftest.er1
32889 cat conftest.err >&5
32890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891 (exit $ac_status); } >/dev/null; then
32892 if test -s conftest.err; then
32893 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32895 else
32896 ac_cpp_err=
32897 fi
32898else
32899 ac_cpp_err=yes
32900fi
32901if test -z "$ac_cpp_err"; then
32902 ac_header_preproc=yes
32903else
32904 echo "$as_me: failed program was:" >&5
32905sed 's/^/| /' conftest.$ac_ext >&5
32906
32907 ac_header_preproc=no
32908fi
32909rm -f conftest.err conftest.$ac_ext
32910echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32911echo "${ECHO_T}$ac_header_preproc" >&6
32912
32913# So? What about this header?
ac1cb8d3
VS
32914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32915 yes:no: )
a848cd7e
SC
32916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32919echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32920 ac_header_preproc=yes
a848cd7e 32921 ;;
ac1cb8d3 32922 no:yes:* )
a848cd7e
SC
32923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32926echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32928echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32930echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32934echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32935 (
32936 cat <<\_ASBOX
ac1cb8d3
VS
32937## ----------------------------------------- ##
32938## Report this to wx-dev@lists.wxwidgets.org ##
32939## ----------------------------------------- ##
a848cd7e
SC
32940_ASBOX
32941 ) |
32942 sed "s/^/$as_me: WARNING: /" >&2
32943 ;;
32944esac
32945echo "$as_me:$LINENO: checking for $ac_header" >&5
32946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32947if eval "test \"\${$as_ac_Header+set}\" = set"; then
32948 echo $ECHO_N "(cached) $ECHO_C" >&6
32949else
ac1cb8d3 32950 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32951fi
32952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32954
32955fi
32956if test `eval echo '${'$as_ac_Header'}'` = yes; then
32957 cat >>confdefs.h <<_ACEOF
32958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32959_ACEOF
32960
32961fi
32962
32963done
32964
32965 if test "$ac_cv_header_sched_h" = "yes"; then
32966 echo "$as_me:$LINENO: checking for sched_yield" >&5
32967echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32968if test "${ac_cv_func_sched_yield+set}" = set; then
32969 echo $ECHO_N "(cached) $ECHO_C" >&6
32970else
32971 cat >conftest.$ac_ext <<_ACEOF
32972/* confdefs.h. */
32973_ACEOF
32974cat confdefs.h >>conftest.$ac_ext
32975cat >>conftest.$ac_ext <<_ACEOF
32976/* end confdefs.h. */
ac1cb8d3
VS
32977/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32979#define sched_yield innocuous_sched_yield
32980
a848cd7e
SC
32981/* System header to define __stub macros and hopefully few prototypes,
32982 which can conflict with char sched_yield (); below.
32983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32984 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32985
a848cd7e
SC
32986#ifdef __STDC__
32987# include <limits.h>
32988#else
32989# include <assert.h>
32990#endif
ac1cb8d3
VS
32991
32992#undef sched_yield
32993
a848cd7e
SC
32994/* Override any gcc2 internal prototype to avoid an error. */
32995#ifdef __cplusplus
32996extern "C"
32997{
32998#endif
32999/* We use char because int might match the return type of a gcc2
33000 builtin and then its argument prototype would still apply. */
33001char sched_yield ();
33002/* The GNU C library defines this for functions which it implements
33003 to always fail with ENOSYS. Some functions are actually named
33004 something starting with __ and the normal name is an alias. */
33005#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33006choke me
33007#else
33008char (*f) () = sched_yield;
33009#endif
33010#ifdef __cplusplus
33011}
33012#endif
33013
33014int
33015main ()
33016{
33017return f != sched_yield;
33018 ;
33019 return 0;
33020}
33021_ACEOF
33022rm -f conftest.$ac_objext conftest$ac_exeext
33023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33024 (eval $ac_link) 2>conftest.er1
a848cd7e 33025 ac_status=$?
ac1cb8d3
VS
33026 grep -v '^ *+' conftest.er1 >conftest.err
33027 rm -f conftest.er1
33028 cat conftest.err >&5
a848cd7e
SC
33029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 (exit $ac_status); } &&
da4486fb 33031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33033 (eval $ac_try) 2>&5
33034 ac_status=$?
33035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); }; } &&
33037 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33039 (eval $ac_try) 2>&5
33040 ac_status=$?
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); }; }; then
33043 ac_cv_func_sched_yield=yes
33044else
33045 echo "$as_me: failed program was:" >&5
33046sed 's/^/| /' conftest.$ac_ext >&5
33047
33048ac_cv_func_sched_yield=no
33049fi
ac1cb8d3
VS
33050rm -f conftest.err conftest.$ac_objext \
33051 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33052fi
33053echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33054echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33055if test $ac_cv_func_sched_yield = yes; then
33056 cat >>confdefs.h <<\_ACEOF
33057#define HAVE_SCHED_YIELD 1
33058_ACEOF
33059
33060else
33061
33062 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33063echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33064if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33065 echo $ECHO_N "(cached) $ECHO_C" >&6
33066else
33067 ac_check_lib_save_LIBS=$LIBS
33068LIBS="-lposix4 $LIBS"
33069cat >conftest.$ac_ext <<_ACEOF
33070/* confdefs.h. */
33071_ACEOF
33072cat confdefs.h >>conftest.$ac_ext
33073cat >>conftest.$ac_ext <<_ACEOF
33074/* end confdefs.h. */
33075
33076/* Override any gcc2 internal prototype to avoid an error. */
33077#ifdef __cplusplus
33078extern "C"
33079#endif
33080/* We use char because int might match the return type of a gcc2
33081 builtin and then its argument prototype would still apply. */
33082char sched_yield ();
33083int
33084main ()
33085{
33086sched_yield ();
33087 ;
33088 return 0;
33089}
33090_ACEOF
33091rm -f conftest.$ac_objext conftest$ac_exeext
33092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33093 (eval $ac_link) 2>conftest.er1
a848cd7e 33094 ac_status=$?
ac1cb8d3
VS
33095 grep -v '^ *+' conftest.er1 >conftest.err
33096 rm -f conftest.er1
33097 cat conftest.err >&5
a848cd7e
SC
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); } &&
da4486fb 33100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33102 (eval $ac_try) 2>&5
33103 ac_status=$?
33104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); }; } &&
33106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33108 (eval $ac_try) 2>&5
33109 ac_status=$?
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); }; }; then
33112 ac_cv_lib_posix4_sched_yield=yes
33113else
33114 echo "$as_me: failed program was:" >&5
33115sed 's/^/| /' conftest.$ac_ext >&5
33116
33117ac_cv_lib_posix4_sched_yield=no
33118fi
ac1cb8d3
VS
33119rm -f conftest.err conftest.$ac_objext \
33120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33121LIBS=$ac_check_lib_save_LIBS
33122fi
33123echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33124echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33125if test $ac_cv_lib_posix4_sched_yield = yes; then
33126 cat >>confdefs.h <<\_ACEOF
33127#define HAVE_SCHED_YIELD 1
33128_ACEOF
33129 POSIX4_LINK=" -lposix4"
33130else
33131 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33132echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33133
33134fi
33135
33136
33137
33138fi
33139
33140 fi
33141
33142 HAVE_PRIOR_FUNCS=0
33143 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33144echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33145if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33146 echo $ECHO_N "(cached) $ECHO_C" >&6
33147else
33148 cat >conftest.$ac_ext <<_ACEOF
33149/* confdefs.h. */
33150_ACEOF
33151cat confdefs.h >>conftest.$ac_ext
33152cat >>conftest.$ac_ext <<_ACEOF
33153/* end confdefs.h. */
ac1cb8d3
VS
33154/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33156#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33157
a848cd7e
SC
33158/* System header to define __stub macros and hopefully few prototypes,
33159 which can conflict with char pthread_attr_getschedpolicy (); below.
33160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33161 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33162
a848cd7e
SC
33163#ifdef __STDC__
33164# include <limits.h>
33165#else
33166# include <assert.h>
33167#endif
ac1cb8d3
VS
33168
33169#undef pthread_attr_getschedpolicy
33170
a848cd7e
SC
33171/* Override any gcc2 internal prototype to avoid an error. */
33172#ifdef __cplusplus
33173extern "C"
33174{
33175#endif
33176/* We use char because int might match the return type of a gcc2
33177 builtin and then its argument prototype would still apply. */
33178char pthread_attr_getschedpolicy ();
33179/* The GNU C library defines this for functions which it implements
33180 to always fail with ENOSYS. Some functions are actually named
33181 something starting with __ and the normal name is an alias. */
33182#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33183choke me
33184#else
33185char (*f) () = pthread_attr_getschedpolicy;
33186#endif
33187#ifdef __cplusplus
33188}
33189#endif
33190
33191int
33192main ()
33193{
33194return f != pthread_attr_getschedpolicy;
33195 ;
33196 return 0;
33197}
33198_ACEOF
33199rm -f conftest.$ac_objext conftest$ac_exeext
33200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33201 (eval $ac_link) 2>conftest.er1
a848cd7e 33202 ac_status=$?
ac1cb8d3
VS
33203 grep -v '^ *+' conftest.er1 >conftest.err
33204 rm -f conftest.er1
33205 cat conftest.err >&5
a848cd7e
SC
33206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); } &&
da4486fb 33208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33210 (eval $ac_try) 2>&5
33211 ac_status=$?
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); }; } &&
33214 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33216 (eval $ac_try) 2>&5
33217 ac_status=$?
33218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219 (exit $ac_status); }; }; then
33220 ac_cv_func_pthread_attr_getschedpolicy=yes
33221else
33222 echo "$as_me: failed program was:" >&5
33223sed 's/^/| /' conftest.$ac_ext >&5
33224
33225ac_cv_func_pthread_attr_getschedpolicy=no
33226fi
ac1cb8d3
VS
33227rm -f conftest.err conftest.$ac_objext \
33228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33229fi
33230echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33231echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33232if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33233 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33234echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33235if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33236 echo $ECHO_N "(cached) $ECHO_C" >&6
33237else
33238 cat >conftest.$ac_ext <<_ACEOF
33239/* confdefs.h. */
33240_ACEOF
33241cat confdefs.h >>conftest.$ac_ext
33242cat >>conftest.$ac_ext <<_ACEOF
33243/* end confdefs.h. */
ac1cb8d3
VS
33244/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33246#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33247
a848cd7e
SC
33248/* System header to define __stub macros and hopefully few prototypes,
33249 which can conflict with char pthread_attr_setschedparam (); below.
33250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33251 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33252
a848cd7e
SC
33253#ifdef __STDC__
33254# include <limits.h>
33255#else
33256# include <assert.h>
33257#endif
ac1cb8d3
VS
33258
33259#undef pthread_attr_setschedparam
33260
a848cd7e
SC
33261/* Override any gcc2 internal prototype to avoid an error. */
33262#ifdef __cplusplus
33263extern "C"
33264{
33265#endif
33266/* We use char because int might match the return type of a gcc2
33267 builtin and then its argument prototype would still apply. */
33268char pthread_attr_setschedparam ();
33269/* The GNU C library defines this for functions which it implements
33270 to always fail with ENOSYS. Some functions are actually named
33271 something starting with __ and the normal name is an alias. */
33272#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33273choke me
33274#else
33275char (*f) () = pthread_attr_setschedparam;
33276#endif
33277#ifdef __cplusplus
33278}
33279#endif
33280
33281int
33282main ()
33283{
33284return f != pthread_attr_setschedparam;
33285 ;
33286 return 0;
33287}
33288_ACEOF
33289rm -f conftest.$ac_objext conftest$ac_exeext
33290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33291 (eval $ac_link) 2>conftest.er1
a848cd7e 33292 ac_status=$?
ac1cb8d3
VS
33293 grep -v '^ *+' conftest.er1 >conftest.err
33294 rm -f conftest.er1
33295 cat conftest.err >&5
a848cd7e
SC
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); } &&
da4486fb 33298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33300 (eval $ac_try) 2>&5
33301 ac_status=$?
33302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303 (exit $ac_status); }; } &&
33304 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33306 (eval $ac_try) 2>&5
33307 ac_status=$?
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); }; }; then
33310 ac_cv_func_pthread_attr_setschedparam=yes
33311else
33312 echo "$as_me: failed program was:" >&5
33313sed 's/^/| /' conftest.$ac_ext >&5
33314
33315ac_cv_func_pthread_attr_setschedparam=no
33316fi
ac1cb8d3
VS
33317rm -f conftest.err conftest.$ac_objext \
33318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33319fi
33320echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33321echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33322if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33323 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33324echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33325if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33326 echo $ECHO_N "(cached) $ECHO_C" >&6
33327else
33328 cat >conftest.$ac_ext <<_ACEOF
33329/* confdefs.h. */
33330_ACEOF
33331cat confdefs.h >>conftest.$ac_ext
33332cat >>conftest.$ac_ext <<_ACEOF
33333/* end confdefs.h. */
ac1cb8d3
VS
33334/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33336#define sched_get_priority_max innocuous_sched_get_priority_max
33337
a848cd7e
SC
33338/* System header to define __stub macros and hopefully few prototypes,
33339 which can conflict with char sched_get_priority_max (); below.
33340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33341 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33342
a848cd7e
SC
33343#ifdef __STDC__
33344# include <limits.h>
33345#else
33346# include <assert.h>
33347#endif
ac1cb8d3
VS
33348
33349#undef sched_get_priority_max
33350
a848cd7e
SC
33351/* Override any gcc2 internal prototype to avoid an error. */
33352#ifdef __cplusplus
33353extern "C"
33354{
33355#endif
33356/* We use char because int might match the return type of a gcc2
33357 builtin and then its argument prototype would still apply. */
33358char sched_get_priority_max ();
33359/* The GNU C library defines this for functions which it implements
33360 to always fail with ENOSYS. Some functions are actually named
33361 something starting with __ and the normal name is an alias. */
33362#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33363choke me
33364#else
33365char (*f) () = sched_get_priority_max;
33366#endif
33367#ifdef __cplusplus
33368}
33369#endif
33370
33371int
33372main ()
33373{
33374return f != sched_get_priority_max;
33375 ;
33376 return 0;
33377}
33378_ACEOF
33379rm -f conftest.$ac_objext conftest$ac_exeext
33380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33381 (eval $ac_link) 2>conftest.er1
a848cd7e 33382 ac_status=$?
ac1cb8d3
VS
33383 grep -v '^ *+' conftest.er1 >conftest.err
33384 rm -f conftest.er1
33385 cat conftest.err >&5
a848cd7e
SC
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 (exit $ac_status); } &&
da4486fb 33388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33390 (eval $ac_try) 2>&5
33391 ac_status=$?
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; } &&
33394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33396 (eval $ac_try) 2>&5
33397 ac_status=$?
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); }; }; then
33400 ac_cv_func_sched_get_priority_max=yes
33401else
33402 echo "$as_me: failed program was:" >&5
33403sed 's/^/| /' conftest.$ac_ext >&5
33404
33405ac_cv_func_sched_get_priority_max=no
33406fi
ac1cb8d3
VS
33407rm -f conftest.err conftest.$ac_objext \
33408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33409fi
33410echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33411echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33412if test $ac_cv_func_sched_get_priority_max = yes; then
33413 HAVE_PRIOR_FUNCS=1
33414else
33415 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33416echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33417if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33418 echo $ECHO_N "(cached) $ECHO_C" >&6
33419else
33420 ac_check_lib_save_LIBS=$LIBS
33421LIBS="-lposix4 $LIBS"
33422cat >conftest.$ac_ext <<_ACEOF
33423/* confdefs.h. */
33424_ACEOF
33425cat confdefs.h >>conftest.$ac_ext
33426cat >>conftest.$ac_ext <<_ACEOF
33427/* end confdefs.h. */
33428
33429/* Override any gcc2 internal prototype to avoid an error. */
33430#ifdef __cplusplus
33431extern "C"
33432#endif
33433/* We use char because int might match the return type of a gcc2
33434 builtin and then its argument prototype would still apply. */
33435char sched_get_priority_max ();
33436int
33437main ()
33438{
33439sched_get_priority_max ();
33440 ;
33441 return 0;
33442}
33443_ACEOF
33444rm -f conftest.$ac_objext conftest$ac_exeext
33445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33446 (eval $ac_link) 2>conftest.er1
a848cd7e 33447 ac_status=$?
ac1cb8d3
VS
33448 grep -v '^ *+' conftest.er1 >conftest.err
33449 rm -f conftest.er1
33450 cat conftest.err >&5
a848cd7e
SC
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); } &&
da4486fb 33453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33455 (eval $ac_try) 2>&5
33456 ac_status=$?
33457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33458 (exit $ac_status); }; } &&
33459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33461 (eval $ac_try) 2>&5
33462 ac_status=$?
33463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464 (exit $ac_status); }; }; then
33465 ac_cv_lib_posix4_sched_get_priority_max=yes
33466else
33467 echo "$as_me: failed program was:" >&5
33468sed 's/^/| /' conftest.$ac_ext >&5
33469
33470ac_cv_lib_posix4_sched_get_priority_max=no
33471fi
ac1cb8d3
VS
33472rm -f conftest.err conftest.$ac_objext \
33473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33474LIBS=$ac_check_lib_save_LIBS
33475fi
33476echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33477echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33478if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33479
33480 HAVE_PRIOR_FUNCS=1
33481 POSIX4_LINK=" -lposix4"
33482
33483fi
33484
33485
33486fi
33487
33488
33489fi
33490
33491
33492fi
33493
33494
33495 if test "$HAVE_PRIOR_FUNCS" = 1; then
33496 cat >>confdefs.h <<\_ACEOF
33497#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33498_ACEOF
33499
33500 else
33501 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33502echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33503 fi
33504
33505 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33506echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33507if test "${ac_cv_func_pthread_cancel+set}" = set; then
33508 echo $ECHO_N "(cached) $ECHO_C" >&6
33509else
33510 cat >conftest.$ac_ext <<_ACEOF
33511/* confdefs.h. */
33512_ACEOF
33513cat confdefs.h >>conftest.$ac_ext
33514cat >>conftest.$ac_ext <<_ACEOF
33515/* end confdefs.h. */
ac1cb8d3
VS
33516/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33518#define pthread_cancel innocuous_pthread_cancel
33519
a848cd7e
SC
33520/* System header to define __stub macros and hopefully few prototypes,
33521 which can conflict with char pthread_cancel (); below.
33522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33523 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33524
a848cd7e
SC
33525#ifdef __STDC__
33526# include <limits.h>
33527#else
33528# include <assert.h>
33529#endif
ac1cb8d3
VS
33530
33531#undef pthread_cancel
33532
a848cd7e
SC
33533/* Override any gcc2 internal prototype to avoid an error. */
33534#ifdef __cplusplus
33535extern "C"
33536{
33537#endif
33538/* We use char because int might match the return type of a gcc2
33539 builtin and then its argument prototype would still apply. */
33540char pthread_cancel ();
33541/* The GNU C library defines this for functions which it implements
33542 to always fail with ENOSYS. Some functions are actually named
33543 something starting with __ and the normal name is an alias. */
33544#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33545choke me
33546#else
33547char (*f) () = pthread_cancel;
33548#endif
33549#ifdef __cplusplus
33550}
33551#endif
33552
33553int
33554main ()
33555{
33556return f != pthread_cancel;
33557 ;
33558 return 0;
33559}
33560_ACEOF
33561rm -f conftest.$ac_objext conftest$ac_exeext
33562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33563 (eval $ac_link) 2>conftest.er1
a848cd7e 33564 ac_status=$?
ac1cb8d3
VS
33565 grep -v '^ *+' conftest.er1 >conftest.err
33566 rm -f conftest.er1
33567 cat conftest.err >&5
a848cd7e
SC
33568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569 (exit $ac_status); } &&
da4486fb 33570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33572 (eval $ac_try) 2>&5
33573 ac_status=$?
33574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575 (exit $ac_status); }; } &&
33576 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33578 (eval $ac_try) 2>&5
33579 ac_status=$?
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); }; }; then
33582 ac_cv_func_pthread_cancel=yes
33583else
33584 echo "$as_me: failed program was:" >&5
33585sed 's/^/| /' conftest.$ac_ext >&5
33586
33587ac_cv_func_pthread_cancel=no
33588fi
ac1cb8d3
VS
33589rm -f conftest.err conftest.$ac_objext \
33590 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33591fi
33592echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33593echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33594if test $ac_cv_func_pthread_cancel = yes; then
33595 cat >>confdefs.h <<\_ACEOF
33596#define HAVE_PTHREAD_CANCEL 1
33597_ACEOF
33598
33599else
33600 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33601echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33602fi
33603
33604
33605
33606
33607 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33608echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33609if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33610 echo $ECHO_N "(cached) $ECHO_C" >&6
33611else
33612
33613 cat >conftest.$ac_ext <<_ACEOF
33614/* confdefs.h. */
33615_ACEOF
33616cat confdefs.h >>conftest.$ac_ext
33617cat >>conftest.$ac_ext <<_ACEOF
33618/* end confdefs.h. */
33619#include <pthread.h>
33620int
33621main ()
33622{
33623
33624 pthread_mutexattr_t attr;
33625 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33626
33627 ;
33628 return 0;
33629}
33630_ACEOF
33631rm -f conftest.$ac_objext
33632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33633 (eval $ac_compile) 2>conftest.er1
a848cd7e 33634 ac_status=$?
ac1cb8d3
VS
33635 grep -v '^ *+' conftest.er1 >conftest.err
33636 rm -f conftest.er1
33637 cat conftest.err >&5
a848cd7e
SC
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); } &&
da4486fb 33640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33642 (eval $ac_try) 2>&5
33643 ac_status=$?
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); }; } &&
33646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33648 (eval $ac_try) 2>&5
33649 ac_status=$?
33650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651 (exit $ac_status); }; }; then
33652
33653 wx_cv_type_pthread_mutexattr_t=yes
33654
33655else
33656 echo "$as_me: failed program was:" >&5
33657sed 's/^/| /' conftest.$ac_ext >&5
33658
33659
33660 wx_cv_type_pthread_mutexattr_t=no
33661
33662
33663fi
ac1cb8d3 33664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33665
33666fi
33667echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33668echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33669
33670 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33671 cat >>confdefs.h <<\_ACEOF
33672#define HAVE_PTHREAD_MUTEXATTR_T 1
33673_ACEOF
33674
33675 else
33676 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33677echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33678if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33679 echo $ECHO_N "(cached) $ECHO_C" >&6
33680else
33681
33682 cat >conftest.$ac_ext <<_ACEOF
33683/* confdefs.h. */
33684_ACEOF
33685cat confdefs.h >>conftest.$ac_ext
33686cat >>conftest.$ac_ext <<_ACEOF
33687/* end confdefs.h. */
33688#include <pthread.h>
33689int
33690main ()
33691{
33692
33693 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33694
33695 ;
33696 return 0;
33697}
33698_ACEOF
33699rm -f conftest.$ac_objext
33700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33701 (eval $ac_compile) 2>conftest.er1
a848cd7e 33702 ac_status=$?
ac1cb8d3
VS
33703 grep -v '^ *+' conftest.er1 >conftest.err
33704 rm -f conftest.er1
33705 cat conftest.err >&5
a848cd7e
SC
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); } &&
da4486fb 33708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710 (eval $ac_try) 2>&5
33711 ac_status=$?
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); }; } &&
33714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716 (eval $ac_try) 2>&5
33717 ac_status=$?
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; }; then
33720
33721 wx_cv_type_pthread_rec_mutex_init=yes
33722
33723else
33724 echo "$as_me: failed program was:" >&5
33725sed 's/^/| /' conftest.$ac_ext >&5
33726
33727
33728 wx_cv_type_pthread_rec_mutex_init=no
33729
33730
33731fi
ac1cb8d3 33732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33733
33734fi
33735echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33736echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33737 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33738 cat >>confdefs.h <<\_ACEOF
33739#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33740_ACEOF
33741
33742 else
33743 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33744echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33745 fi
33746 fi
33747 fi
33748
33749else
33750 if test "$wxUSE_THREADS" = "yes" ; then
33751 case "${host}" in
33752 *-*-mingw32* )
33753 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33754echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33755if test "${wx_cv_cflags_mthread+set}" = set; then
33756 echo $ECHO_N "(cached) $ECHO_C" >&6
33757else
33758
33759 CFLAGS_OLD="$CFLAGS"
33760 CFLAGS="$CFLAGS -mthreads"
33761 cat >conftest.$ac_ext <<_ACEOF
33762/* confdefs.h. */
33763_ACEOF
33764cat confdefs.h >>conftest.$ac_ext
33765cat >>conftest.$ac_ext <<_ACEOF
33766/* end confdefs.h. */
33767
33768int
33769main ()
33770{
33771
33772 ;
33773 return 0;
33774}
33775_ACEOF
33776rm -f conftest.$ac_objext
33777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33778 (eval $ac_compile) 2>conftest.er1
a848cd7e 33779 ac_status=$?
ac1cb8d3
VS
33780 grep -v '^ *+' conftest.er1 >conftest.err
33781 rm -f conftest.er1
33782 cat conftest.err >&5
a848cd7e
SC
33783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784 (exit $ac_status); } &&
da4486fb 33785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33787 (eval $ac_try) 2>&5
33788 ac_status=$?
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); }; } &&
33791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33793 (eval $ac_try) 2>&5
33794 ac_status=$?
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); }; }; then
33797 wx_cv_cflags_mthread=yes
33798else
33799 echo "$as_me: failed program was:" >&5
33800sed 's/^/| /' conftest.$ac_ext >&5
33801
33802wx_cv_cflags_mthread=no
33803
33804fi
ac1cb8d3 33805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33806
33807
33808fi
33809echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33810echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33811
33812 if test "$wx_cv_cflags_mthread" = "yes"; then
33813 CXXFLAGS="$CXXFLAGS -mthreads"
33814 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33815 LDFLAGS="$LDFLAGS -mthreads"
33816 else
33817 CFLAGS="$CFLAGS_OLD"
33818 fi
33819 ;;
33820 *-pc-os2*emx )
33821 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33822 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33823 LDFLAGS="$LDFLAGS -Zmt"
33824 ;;
33825 esac
33826 fi
33827fi
33828
33829if test "$wxUSE_THREADS" = "yes"; then
33830 cat >>confdefs.h <<\_ACEOF
33831#define wxUSE_THREADS 1
33832_ACEOF
33833
33834
33835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33836else
33837 if test "$ac_cv_func_strtok_r" = "yes"; then
33838 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33839echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33840 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33841 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33842 echo "$as_me:$LINENO: result: yes" >&5
33843echo "${ECHO_T}yes" >&6
33844 else
33845 echo "$as_me:$LINENO: result: no" >&5
33846echo "${ECHO_T}no" >&6
33847 fi
33848 fi
33849fi
33850
33851if test "$WXGTK20" = 1 ; then
33852 cat >>confdefs.h <<_ACEOF
33853#define __WXGTK20__ $WXGTK20
33854_ACEOF
33855
33856 WXGTK12=1
33857fi
33858
33859if test "$WXGTK12" = 1 ; then
33860 cat >>confdefs.h <<_ACEOF
33861#define __WXGTK12__ $WXGTK12
33862_ACEOF
33863
33864fi
33865
33866if test "$WXGTK127" = 1 ; then
33867 cat >>confdefs.h <<_ACEOF
33868#define __WXGTK127__ $WXGTK127
33869_ACEOF
33870
33871fi
33872
33873if test "$WXGPE" = 1 ; then
33874 cat >>confdefs.h <<_ACEOF
33875#define __WXGPE__ $WXGPE
33876_ACEOF
33877
33878fi
33879
33880WXDEBUG=
33881
33882if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33883 WXDEBUG="-g"
33884 wxUSE_OPTIMISE=no
33885fi
33886
33887if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33888 wxUSE_DEBUG_INFO=yes
33889 WXDEBUG="-ggdb"
33890fi
33891
33892if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33893 cat >>confdefs.h <<\_ACEOF
33894#define WXDEBUG 1
33895_ACEOF
33896
33897 WXDEBUG_DEFINE="-D__WXDEBUG__"
33898else
33899 if test "$wxUSE_GTK" = 1 ; then
33900 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33901 fi
33902fi
33903
33904if test "$wxUSE_MEM_TRACING" = "yes" ; then
33905 cat >>confdefs.h <<\_ACEOF
33906#define wxUSE_MEMORY_TRACING 1
33907_ACEOF
33908
33909 cat >>confdefs.h <<\_ACEOF
33910#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33911_ACEOF
33912
33913 cat >>confdefs.h <<\_ACEOF
33914#define wxUSE_DEBUG_NEW_ALWAYS 1
33915_ACEOF
33916
33917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33918fi
33919
33920if test "$wxUSE_DMALLOC" = "yes" ; then
33921 DMALLOC_LIBS="-ldmalloc"
33922fi
33923
33924PROFILE=
33925if test "$wxUSE_PROFILE" = "yes" ; then
33926 PROFILE=" -pg"
33927fi
33928
33929CODE_GEN_FLAGS=
33930CODE_GEN_FLAGS_CXX=
33931if test "$GCC" = "yes" ; then
33932 if test "$wxUSE_NO_RTTI" = "yes" ; then
33933 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33934 fi
33935 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33936 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33937 fi
33938 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33939 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33940 fi
33941
33942 case "${host}" in
33943 powerpc*-*-aix* )
33944 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33945 ;;
33946 *-hppa* )
33947 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33948 ;;
33949 esac
33950fi
33951
33952OPTIMISE=
33953if test "$wxUSE_OPTIMISE" = "no" ; then
33954 if test "$GCC" = yes ; then
33955 OPTIMISE="-O0"
33956 fi
33957else
33958 if test "$GCC" = yes ; then
33959 OPTIMISE="-O2"
33960
33961 case "${host}" in
33962 i586-*-*|i686-*-* )
33963 OPTIMISE="${OPTIMISE} "
33964 ;;
33965 esac
33966 else
33967 OPTIMISE="-O"
33968 fi
33969fi
33970
33971
33972if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33973 cat >>confdefs.h <<\_ACEOF
33974#define WXWIN_COMPATIBILITY_2_2 1
33975_ACEOF
33976
33977
33978 WXWIN_COMPATIBILITY_2_4="yes"
33979fi
33980
33981if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33982 cat >>confdefs.h <<\_ACEOF
33983#define WXWIN_COMPATIBILITY_2_4 1
33984_ACEOF
33985
33986fi
33987
33988
33989if test "$wxUSE_GUI" = "yes"; then
881bfcd6 33990 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33991#define wxUSE_GUI 1
33992_ACEOF
33993
33994
370fd4c2 33995 fi
a848cd7e
SC
33996
33997
33998if test "$wxUSE_UNIX" = "yes"; then
33999 cat >>confdefs.h <<\_ACEOF
34000#define wxUSE_UNIX 1
34001_ACEOF
34002
34003fi
34004
34005
34006if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34007
34008 HAVE_DL_FUNCS=0
34009 HAVE_SHL_FUNCS=0
34010 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34011 if test "$USE_DARWIN" = 1; then
34012 HAVE_DL_FUNCS=1
34013 else
34014
34015for ac_func in dlopen
34016do
34017as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34018echo "$as_me:$LINENO: checking for $ac_func" >&5
34019echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34020if eval "test \"\${$as_ac_var+set}\" = set"; then
34021 echo $ECHO_N "(cached) $ECHO_C" >&6
34022else
34023 cat >conftest.$ac_ext <<_ACEOF
34024/* confdefs.h. */
34025_ACEOF
34026cat confdefs.h >>conftest.$ac_ext
34027cat >>conftest.$ac_ext <<_ACEOF
34028/* end confdefs.h. */
ac1cb8d3
VS
34029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34031#define $ac_func innocuous_$ac_func
34032
a848cd7e
SC
34033/* System header to define __stub macros and hopefully few prototypes,
34034 which can conflict with char $ac_func (); below.
34035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34036 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34037
a848cd7e
SC
34038#ifdef __STDC__
34039# include <limits.h>
34040#else
34041# include <assert.h>
34042#endif
ac1cb8d3
VS
34043
34044#undef $ac_func
34045
a848cd7e
SC
34046/* Override any gcc2 internal prototype to avoid an error. */
34047#ifdef __cplusplus
34048extern "C"
34049{
34050#endif
34051/* We use char because int might match the return type of a gcc2
34052 builtin and then its argument prototype would still apply. */
34053char $ac_func ();
34054/* The GNU C library defines this for functions which it implements
34055 to always fail with ENOSYS. Some functions are actually named
34056 something starting with __ and the normal name is an alias. */
34057#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34058choke me
34059#else
34060char (*f) () = $ac_func;
34061#endif
34062#ifdef __cplusplus
34063}
34064#endif
34065
34066int
34067main ()
34068{
34069return f != $ac_func;
34070 ;
34071 return 0;
34072}
34073_ACEOF
34074rm -f conftest.$ac_objext conftest$ac_exeext
34075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34076 (eval $ac_link) 2>conftest.er1
a848cd7e 34077 ac_status=$?
ac1cb8d3
VS
34078 grep -v '^ *+' conftest.er1 >conftest.err
34079 rm -f conftest.er1
34080 cat conftest.err >&5
a848cd7e
SC
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); } &&
da4486fb 34083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34085 (eval $ac_try) 2>&5
34086 ac_status=$?
34087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088 (exit $ac_status); }; } &&
34089 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34091 (eval $ac_try) 2>&5
34092 ac_status=$?
34093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094 (exit $ac_status); }; }; then
34095 eval "$as_ac_var=yes"
34096else
34097 echo "$as_me: failed program was:" >&5
34098sed 's/^/| /' conftest.$ac_ext >&5
34099
34100eval "$as_ac_var=no"
34101fi
ac1cb8d3
VS
34102rm -f conftest.err conftest.$ac_objext \
34103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34104fi
34105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34106echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34107if test `eval echo '${'$as_ac_var'}'` = yes; then
34108 cat >>confdefs.h <<_ACEOF
34109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34110_ACEOF
34111
34112 cat >>confdefs.h <<\_ACEOF
34113#define HAVE_DLOPEN 1
34114_ACEOF
34115
34116 HAVE_DL_FUNCS=1
34117
34118else
34119
34120 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34121echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34122if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34123 echo $ECHO_N "(cached) $ECHO_C" >&6
34124else
34125 ac_check_lib_save_LIBS=$LIBS
34126LIBS="-ldl $LIBS"
34127cat >conftest.$ac_ext <<_ACEOF
34128/* confdefs.h. */
34129_ACEOF
34130cat confdefs.h >>conftest.$ac_ext
34131cat >>conftest.$ac_ext <<_ACEOF
34132/* end confdefs.h. */
34133
34134/* Override any gcc2 internal prototype to avoid an error. */
34135#ifdef __cplusplus
34136extern "C"
34137#endif
34138/* We use char because int might match the return type of a gcc2
34139 builtin and then its argument prototype would still apply. */
34140char dlopen ();
34141int
34142main ()
34143{
34144dlopen ();
34145 ;
34146 return 0;
34147}
34148_ACEOF
34149rm -f conftest.$ac_objext conftest$ac_exeext
34150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34151 (eval $ac_link) 2>conftest.er1
a848cd7e 34152 ac_status=$?
ac1cb8d3
VS
34153 grep -v '^ *+' conftest.er1 >conftest.err
34154 rm -f conftest.er1
34155 cat conftest.err >&5
a848cd7e
SC
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); } &&
da4486fb 34158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34160 (eval $ac_try) 2>&5
34161 ac_status=$?
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); }; } &&
34164 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34166 (eval $ac_try) 2>&5
34167 ac_status=$?
34168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169 (exit $ac_status); }; }; then
34170 ac_cv_lib_dl_dlopen=yes
34171else
34172 echo "$as_me: failed program was:" >&5
34173sed 's/^/| /' conftest.$ac_ext >&5
34174
34175ac_cv_lib_dl_dlopen=no
34176fi
ac1cb8d3
VS
34177rm -f conftest.err conftest.$ac_objext \
34178 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34179LIBS=$ac_check_lib_save_LIBS
34180fi
34181echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34182echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34183if test $ac_cv_lib_dl_dlopen = yes; then
34184
34185 cat >>confdefs.h <<\_ACEOF
34186#define HAVE_DLOPEN 1
34187_ACEOF
34188
34189 HAVE_DL_FUNCS=1
34190 DL_LINK=" -ldl$DL_LINK"
34191
34192else
34193
34194
34195for ac_func in shl_load
34196do
34197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34198echo "$as_me:$LINENO: checking for $ac_func" >&5
34199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34200if eval "test \"\${$as_ac_var+set}\" = set"; then
34201 echo $ECHO_N "(cached) $ECHO_C" >&6
34202else
34203 cat >conftest.$ac_ext <<_ACEOF
34204/* confdefs.h. */
34205_ACEOF
34206cat confdefs.h >>conftest.$ac_ext
34207cat >>conftest.$ac_ext <<_ACEOF
34208/* end confdefs.h. */
ac1cb8d3
VS
34209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34211#define $ac_func innocuous_$ac_func
34212
a848cd7e
SC
34213/* System header to define __stub macros and hopefully few prototypes,
34214 which can conflict with char $ac_func (); below.
34215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34216 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34217
a848cd7e
SC
34218#ifdef __STDC__
34219# include <limits.h>
34220#else
34221# include <assert.h>
34222#endif
ac1cb8d3
VS
34223
34224#undef $ac_func
34225
a848cd7e
SC
34226/* Override any gcc2 internal prototype to avoid an error. */
34227#ifdef __cplusplus
34228extern "C"
34229{
34230#endif
34231/* We use char because int might match the return type of a gcc2
34232 builtin and then its argument prototype would still apply. */
34233char $ac_func ();
34234/* The GNU C library defines this for functions which it implements
34235 to always fail with ENOSYS. Some functions are actually named
34236 something starting with __ and the normal name is an alias. */
34237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34238choke me
34239#else
34240char (*f) () = $ac_func;
34241#endif
34242#ifdef __cplusplus
34243}
34244#endif
34245
34246int
34247main ()
34248{
34249return f != $ac_func;
34250 ;
34251 return 0;
34252}
34253_ACEOF
34254rm -f conftest.$ac_objext conftest$ac_exeext
34255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34256 (eval $ac_link) 2>conftest.er1
a848cd7e 34257 ac_status=$?
ac1cb8d3
VS
34258 grep -v '^ *+' conftest.er1 >conftest.err
34259 rm -f conftest.er1
34260 cat conftest.err >&5
a848cd7e
SC
34261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262 (exit $ac_status); } &&
da4486fb 34263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34265 (eval $ac_try) 2>&5
34266 ac_status=$?
34267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34268 (exit $ac_status); }; } &&
34269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34271 (eval $ac_try) 2>&5
34272 ac_status=$?
34273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274 (exit $ac_status); }; }; then
34275 eval "$as_ac_var=yes"
34276else
34277 echo "$as_me: failed program was:" >&5
34278sed 's/^/| /' conftest.$ac_ext >&5
34279
34280eval "$as_ac_var=no"
34281fi
ac1cb8d3
VS
34282rm -f conftest.err conftest.$ac_objext \
34283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34284fi
34285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34287if test `eval echo '${'$as_ac_var'}'` = yes; then
34288 cat >>confdefs.h <<_ACEOF
34289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34290_ACEOF
34291
34292 cat >>confdefs.h <<\_ACEOF
34293#define HAVE_SHL_LOAD 1
34294_ACEOF
34295
34296 HAVE_SHL_FUNCS=1
34297
34298else
34299
34300 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34301echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34302if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34303 echo $ECHO_N "(cached) $ECHO_C" >&6
34304else
34305 ac_check_lib_save_LIBS=$LIBS
34306LIBS="-lshl_load $LIBS"
34307cat >conftest.$ac_ext <<_ACEOF
34308/* confdefs.h. */
34309_ACEOF
34310cat confdefs.h >>conftest.$ac_ext
34311cat >>conftest.$ac_ext <<_ACEOF
34312/* end confdefs.h. */
34313
34314/* Override any gcc2 internal prototype to avoid an error. */
34315#ifdef __cplusplus
34316extern "C"
34317#endif
34318/* We use char because int might match the return type of a gcc2
34319 builtin and then its argument prototype would still apply. */
34320char dld ();
34321int
34322main ()
34323{
34324dld ();
34325 ;
34326 return 0;
34327}
34328_ACEOF
34329rm -f conftest.$ac_objext conftest$ac_exeext
34330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34331 (eval $ac_link) 2>conftest.er1
a848cd7e 34332 ac_status=$?
ac1cb8d3
VS
34333 grep -v '^ *+' conftest.er1 >conftest.err
34334 rm -f conftest.er1
34335 cat conftest.err >&5
a848cd7e
SC
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); } &&
da4486fb 34338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34340 (eval $ac_try) 2>&5
34341 ac_status=$?
34342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343 (exit $ac_status); }; } &&
34344 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34346 (eval $ac_try) 2>&5
34347 ac_status=$?
34348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349 (exit $ac_status); }; }; then
34350 ac_cv_lib_shl_load_dld=yes
34351else
34352 echo "$as_me: failed program was:" >&5
34353sed 's/^/| /' conftest.$ac_ext >&5
34354
34355ac_cv_lib_shl_load_dld=no
34356fi
ac1cb8d3
VS
34357rm -f conftest.err conftest.$ac_objext \
34358 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34359LIBS=$ac_check_lib_save_LIBS
34360fi
34361echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34362echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34363if test $ac_cv_lib_shl_load_dld = yes; then
34364
34365 HAVE_SHL_FUNCS=1
34366 DL_LINK=" -ldld$DL_LINK"
34367
34368fi
34369
34370
34371fi
34372done
34373
34374
34375fi
34376
34377
34378fi
34379done
34380
34381
34382 if test "$HAVE_DL_FUNCS" = 1; then
34383
34384for ac_func in dlerror
34385do
34386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34387echo "$as_me:$LINENO: checking for $ac_func" >&5
34388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34389if eval "test \"\${$as_ac_var+set}\" = set"; then
34390 echo $ECHO_N "(cached) $ECHO_C" >&6
34391else
34392 cat >conftest.$ac_ext <<_ACEOF
34393/* confdefs.h. */
34394_ACEOF
34395cat confdefs.h >>conftest.$ac_ext
34396cat >>conftest.$ac_ext <<_ACEOF
34397/* end confdefs.h. */
ac1cb8d3
VS
34398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34400#define $ac_func innocuous_$ac_func
34401
a848cd7e
SC
34402/* System header to define __stub macros and hopefully few prototypes,
34403 which can conflict with char $ac_func (); below.
34404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34405 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34406
a848cd7e
SC
34407#ifdef __STDC__
34408# include <limits.h>
34409#else
34410# include <assert.h>
34411#endif
ac1cb8d3
VS
34412
34413#undef $ac_func
34414
a848cd7e
SC
34415/* Override any gcc2 internal prototype to avoid an error. */
34416#ifdef __cplusplus
34417extern "C"
34418{
34419#endif
34420/* We use char because int might match the return type of a gcc2
34421 builtin and then its argument prototype would still apply. */
34422char $ac_func ();
34423/* The GNU C library defines this for functions which it implements
34424 to always fail with ENOSYS. Some functions are actually named
34425 something starting with __ and the normal name is an alias. */
34426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34427choke me
34428#else
34429char (*f) () = $ac_func;
34430#endif
34431#ifdef __cplusplus
34432}
34433#endif
34434
34435int
34436main ()
34437{
34438return f != $ac_func;
34439 ;
34440 return 0;
34441}
34442_ACEOF
34443rm -f conftest.$ac_objext conftest$ac_exeext
34444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34445 (eval $ac_link) 2>conftest.er1
a848cd7e 34446 ac_status=$?
ac1cb8d3
VS
34447 grep -v '^ *+' conftest.er1 >conftest.err
34448 rm -f conftest.er1
34449 cat conftest.err >&5
a848cd7e
SC
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); } &&
da4486fb 34452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34454 (eval $ac_try) 2>&5
34455 ac_status=$?
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); }; } &&
34458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34460 (eval $ac_try) 2>&5
34461 ac_status=$?
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); }; }; then
34464 eval "$as_ac_var=yes"
34465else
34466 echo "$as_me: failed program was:" >&5
34467sed 's/^/| /' conftest.$ac_ext >&5
34468
34469eval "$as_ac_var=no"
34470fi
ac1cb8d3
VS
34471rm -f conftest.err conftest.$ac_objext \
34472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34473fi
34474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34475echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34476if test `eval echo '${'$as_ac_var'}'` = yes; then
34477 cat >>confdefs.h <<_ACEOF
34478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34479_ACEOF
34480 cat >>confdefs.h <<\_ACEOF
34481#define HAVE_DLERROR 1
34482_ACEOF
34483
34484else
34485
34486 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34487echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34488if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34489 echo $ECHO_N "(cached) $ECHO_C" >&6
34490else
34491 ac_check_lib_save_LIBS=$LIBS
34492LIBS="-ldl $LIBS"
34493cat >conftest.$ac_ext <<_ACEOF
34494/* confdefs.h. */
34495_ACEOF
34496cat confdefs.h >>conftest.$ac_ext
34497cat >>conftest.$ac_ext <<_ACEOF
34498/* end confdefs.h. */
34499
34500/* Override any gcc2 internal prototype to avoid an error. */
34501#ifdef __cplusplus
34502extern "C"
34503#endif
34504/* We use char because int might match the return type of a gcc2
34505 builtin and then its argument prototype would still apply. */
34506char dlerror ();
34507int
34508main ()
34509{
34510dlerror ();
34511 ;
34512 return 0;
34513}
34514_ACEOF
34515rm -f conftest.$ac_objext conftest$ac_exeext
34516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34517 (eval $ac_link) 2>conftest.er1
a848cd7e 34518 ac_status=$?
ac1cb8d3
VS
34519 grep -v '^ *+' conftest.er1 >conftest.err
34520 rm -f conftest.er1
34521 cat conftest.err >&5
a848cd7e
SC
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); } &&
da4486fb 34524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34526 (eval $ac_try) 2>&5
34527 ac_status=$?
34528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529 (exit $ac_status); }; } &&
34530 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34532 (eval $ac_try) 2>&5
34533 ac_status=$?
34534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535 (exit $ac_status); }; }; then
34536 ac_cv_lib_dl_dlerror=yes
34537else
34538 echo "$as_me: failed program was:" >&5
34539sed 's/^/| /' conftest.$ac_ext >&5
34540
34541ac_cv_lib_dl_dlerror=no
34542fi
ac1cb8d3
VS
34543rm -f conftest.err conftest.$ac_objext \
34544 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34545LIBS=$ac_check_lib_save_LIBS
34546fi
34547echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34548echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34549if test $ac_cv_lib_dl_dlerror = yes; then
34550 cat >>confdefs.h <<\_ACEOF
34551#define HAVE_DLERROR 1
34552_ACEOF
34553
34554fi
34555
34556
34557
34558fi
34559done
34560
34561 fi
34562 fi
34563
34564 if test "$HAVE_DL_FUNCS" = 0; then
34565 if test "$HAVE_SHL_FUNCS" = 0; then
34566 if test "$USE_UNIX" = 1; then
34567 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34568echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34569 wxUSE_DYNAMIC_LOADER=no
34570 wxUSE_DYNLIB_CLASS=no
34571 else
34572 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34573echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34574 fi
34575 fi
34576 fi
34577 fi
34578fi
34579
34580if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34581 cat >>confdefs.h <<\_ACEOF
34582#define wxUSE_DYNAMIC_LOADER 1
34583_ACEOF
34584
34585fi
34586if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34587 cat >>confdefs.h <<\_ACEOF
34588#define wxUSE_DYNLIB_CLASS 1
34589_ACEOF
34590
34591fi
34592
34593
34594
34595if test "$wxUSE_PLUGINS" = "yes" ; then
34596 if test "$wxUSE_SHARED" = "no" ; then
34597 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34598echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34599 wxUSE_PLUGINS=no
34600 fi
34601 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34602 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34603echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34604 wxUSE_PLUGINS=no
34605 fi
34606 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34607 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34608echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34609 wxUSE_PLUGINS=no
34610 fi
34611 if test "$wxUSE_PLUGINS" = "yes" ; then
34612 cat >>confdefs.h <<\_ACEOF
34613#define wxUSE_PLUGINS 1
34614_ACEOF
34615
34616 fi
34617fi
34618
34619
34620if test "$wxUSE_STL" = "yes"; then
34621 cat >>confdefs.h <<\_ACEOF
34622#define wxUSE_STL 1
34623_ACEOF
34624
34625fi
34626
34627if test "$wxUSE_APPLE_IEEE" = "yes"; then
34628 cat >>confdefs.h <<\_ACEOF
34629#define wxUSE_APPLE_IEEE 1
34630_ACEOF
34631
34632fi
34633
34634if test "$wxUSE_TIMER" = "yes"; then
34635 cat >>confdefs.h <<\_ACEOF
34636#define wxUSE_TIMER 1
34637_ACEOF
34638
34639fi
34640
34641WITH_PLUGIN_SDL=0
34642if test "$wxUSE_SOUND" = "yes"; then
34643 if test "$USE_UNIX" = "1" ; then
34644
34645for ac_header in sys/soundcard.h
34646do
34647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34648if eval "test \"\${$as_ac_Header+set}\" = set"; then
34649 echo "$as_me:$LINENO: checking for $ac_header" >&5
34650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34651if eval "test \"\${$as_ac_Header+set}\" = set"; then
34652 echo $ECHO_N "(cached) $ECHO_C" >&6
34653fi
34654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34656else
34657 # Is the header compilable?
34658echo "$as_me:$LINENO: checking $ac_header usability" >&5
34659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34660cat >conftest.$ac_ext <<_ACEOF
34661/* confdefs.h. */
34662_ACEOF
34663cat confdefs.h >>conftest.$ac_ext
34664cat >>conftest.$ac_ext <<_ACEOF
34665/* end confdefs.h. */
34666$ac_includes_default
34667#include <$ac_header>
34668_ACEOF
34669rm -f conftest.$ac_objext
34670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34671 (eval $ac_compile) 2>conftest.er1
a848cd7e 34672 ac_status=$?
ac1cb8d3
VS
34673 grep -v '^ *+' conftest.er1 >conftest.err
34674 rm -f conftest.er1
34675 cat conftest.err >&5
a848cd7e
SC
34676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34677 (exit $ac_status); } &&
da4486fb 34678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34680 (eval $ac_try) 2>&5
34681 ac_status=$?
34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); }; } &&
34684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686 (eval $ac_try) 2>&5
34687 ac_status=$?
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); }; }; then
34690 ac_header_compiler=yes
34691else
34692 echo "$as_me: failed program was:" >&5
34693sed 's/^/| /' conftest.$ac_ext >&5
34694
34695ac_header_compiler=no
34696fi
ac1cb8d3 34697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34698echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34699echo "${ECHO_T}$ac_header_compiler" >&6
34700
34701# Is the header present?
34702echo "$as_me:$LINENO: checking $ac_header presence" >&5
34703echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34704cat >conftest.$ac_ext <<_ACEOF
34705/* confdefs.h. */
34706_ACEOF
34707cat confdefs.h >>conftest.$ac_ext
34708cat >>conftest.$ac_ext <<_ACEOF
34709/* end confdefs.h. */
34710#include <$ac_header>
34711_ACEOF
34712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34714 ac_status=$?
34715 grep -v '^ *+' conftest.er1 >conftest.err
34716 rm -f conftest.er1
34717 cat conftest.err >&5
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); } >/dev/null; then
34720 if test -s conftest.err; then
34721 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34723 else
34724 ac_cpp_err=
34725 fi
34726else
34727 ac_cpp_err=yes
34728fi
34729if test -z "$ac_cpp_err"; then
34730 ac_header_preproc=yes
34731else
34732 echo "$as_me: failed program was:" >&5
34733sed 's/^/| /' conftest.$ac_ext >&5
34734
34735 ac_header_preproc=no
34736fi
34737rm -f conftest.err conftest.$ac_ext
34738echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34739echo "${ECHO_T}$ac_header_preproc" >&6
34740
34741# So? What about this header?
ac1cb8d3
VS
34742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34743 yes:no: )
a848cd7e
SC
34744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34745echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34747echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34748 ac_header_preproc=yes
a848cd7e 34749 ;;
ac1cb8d3 34750 no:yes:* )
a848cd7e
SC
34751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34752echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34754echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34756echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34758echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34760echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34762echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34763 (
34764 cat <<\_ASBOX
ac1cb8d3
VS
34765## ----------------------------------------- ##
34766## Report this to wx-dev@lists.wxwidgets.org ##
34767## ----------------------------------------- ##
a848cd7e
SC
34768_ASBOX
34769 ) |
34770 sed "s/^/$as_me: WARNING: /" >&2
34771 ;;
34772esac
34773echo "$as_me:$LINENO: checking for $ac_header" >&5
34774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34775if eval "test \"\${$as_ac_Header+set}\" = set"; then
34776 echo $ECHO_N "(cached) $ECHO_C" >&6
34777else
ac1cb8d3 34778 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34779fi
34780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34782
34783fi
34784if test `eval echo '${'$as_ac_Header'}'` = yes; then
34785 cat >>confdefs.h <<_ACEOF
34786#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34787_ACEOF
34788
34789fi
34790
34791done
34792
34793
34794 if test "$wxUSE_LIBSDL" != "no"; then
34795
34796# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34797if test "${with_sdl_prefix+set}" = set; then
34798 withval="$with_sdl_prefix"
34799 sdl_prefix="$withval"
34800else
34801 sdl_prefix=""
34802fi;
34803
34804# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34805if test "${with_sdl_exec_prefix+set}" = set; then
34806 withval="$with_sdl_exec_prefix"
34807 sdl_exec_prefix="$withval"
34808else
34809 sdl_exec_prefix=""
34810fi;
34811# Check whether --enable-sdltest or --disable-sdltest was given.
34812if test "${enable_sdltest+set}" = set; then
34813 enableval="$enable_sdltest"
34814
34815else
34816 enable_sdltest=yes
34817fi;
34818
34819 if test x$sdl_exec_prefix != x ; then
34820 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34821 if test x${SDL_CONFIG+set} != xset ; then
34822 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34823 fi
34824 fi
34825 if test x$sdl_prefix != x ; then
34826 sdl_args="$sdl_args --prefix=$sdl_prefix"
34827 if test x${SDL_CONFIG+set} != xset ; then
34828 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34829 fi
34830 fi
34831
34832
34833 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34834 # Extract the first word of "sdl-config", so it can be a program name with args.
34835set dummy sdl-config; ac_word=$2
34836echo "$as_me:$LINENO: checking for $ac_word" >&5
34837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34838if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34839 echo $ECHO_N "(cached) $ECHO_C" >&6
34840else
34841 case $SDL_CONFIG in
34842 [\\/]* | ?:[\\/]*)
34843 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34844 ;;
34845 *)
34846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34847for as_dir in $PATH
34848do
34849 IFS=$as_save_IFS
34850 test -z "$as_dir" && as_dir=.
34851 for ac_exec_ext in '' $ac_executable_extensions; do
34852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34853 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34855 break 2
34856 fi
34857done
34858done
34859
34860 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34861 ;;
34862esac
34863fi
34864SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34865
34866if test -n "$SDL_CONFIG"; then
34867 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34868echo "${ECHO_T}$SDL_CONFIG" >&6
34869else
34870 echo "$as_me:$LINENO: result: no" >&5
34871echo "${ECHO_T}no" >&6
34872fi
34873
34874 min_sdl_version=1.2.0
34875 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34876echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34877 no_sdl=""
34878 if test "$SDL_CONFIG" = "no" ; then
34879 no_sdl=yes
34880 else
34881 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34882 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34883
34884 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34885 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34886 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34887 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34888 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34889 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34890 if test "x$enable_sdltest" = "xyes" ; then
34891 ac_save_CFLAGS="$CFLAGS"
34892 ac_save_LIBS="$LIBS"
34893 CFLAGS="$CFLAGS $SDL_CFLAGS"
34894 LIBS="$LIBS $SDL_LIBS"
34895 rm -f conf.sdltest
34896 if test "$cross_compiling" = yes; then
34897 echo $ac_n "cross compiling; assumed OK... $ac_c"
34898else
34899 cat >conftest.$ac_ext <<_ACEOF
34900/* confdefs.h. */
34901_ACEOF
34902cat confdefs.h >>conftest.$ac_ext
34903cat >>conftest.$ac_ext <<_ACEOF
34904/* end confdefs.h. */
34905
34906#include <stdio.h>
34907#include <stdlib.h>
34908#include <string.h>
34909#include "SDL.h"
34910
34911char*
34912my_strdup (char *str)
34913{
34914 char *new_str;
34915
34916 if (str)
34917 {
34918 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34919 strcpy (new_str, str);
34920 }
34921 else
34922 new_str = NULL;
34923
34924 return new_str;
34925}
34926
34927int main (int argc, char *argv[])
34928{
34929 int major, minor, micro;
34930 char *tmp_version;
34931
34932 /* This hangs on some systems (?)
34933 system ("touch conf.sdltest");
34934 */
34935 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34936
34937 /* HP/UX 9 (%@#!) writes to sscanf strings */
34938 tmp_version = my_strdup("$min_sdl_version");
34939 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34940 printf("%s, bad version string\n", "$min_sdl_version");
34941 exit(1);
34942 }
34943
34944 if (($sdl_major_version > major) ||
34945 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34946 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34947 {
34948 return 0;
34949 }
34950 else
34951 {
34952 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34953 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34954 printf("*** best to upgrade to the required version.\n");
34955 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34956 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34957 printf("*** config.cache before re-running configure\n");
34958 return 1;
34959 }
34960}
34961
34962
34963_ACEOF
34964rm -f conftest$ac_exeext
34965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34966 (eval $ac_link) 2>&5
34967 ac_status=$?
34968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34971 (eval $ac_try) 2>&5
34972 ac_status=$?
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); }; }; then
34975 :
34976else
34977 echo "$as_me: program exited with status $ac_status" >&5
34978echo "$as_me: failed program was:" >&5
34979sed 's/^/| /' conftest.$ac_ext >&5
34980
34981( exit $ac_status )
34982no_sdl=yes
34983fi
ac1cb8d3 34984rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34985fi
34986 CFLAGS="$ac_save_CFLAGS"
34987 LIBS="$ac_save_LIBS"
34988 fi
34989 fi
34990 if test "x$no_sdl" = x ; then
34991 echo "$as_me:$LINENO: result: yes" >&5
34992echo "${ECHO_T}yes" >&6
34993
34994 EXTRALIBS_SDL="$SDL_LIBS"
34995 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34996 cat >>confdefs.h <<\_ACEOF
34997#define wxUSE_LIBSDL 1
34998_ACEOF
34999
35000
35001 else
35002 echo "$as_me:$LINENO: result: no" >&5
35003echo "${ECHO_T}no" >&6
35004 if test "$SDL_CONFIG" = "no" ; then
35005 echo "*** The sdl-config script installed by SDL could not be found"
35006 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35007 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35008 echo "*** full path to sdl-config."
35009 else
35010 if test -f conf.sdltest ; then
35011 :
35012 else
35013 echo "*** Could not run SDL test program, checking why..."
35014 CFLAGS="$CFLAGS $SDL_CFLAGS"
35015 LIBS="$LIBS $SDL_LIBS"
35016 cat >conftest.$ac_ext <<_ACEOF
35017/* confdefs.h. */
35018_ACEOF
35019cat confdefs.h >>conftest.$ac_ext
35020cat >>conftest.$ac_ext <<_ACEOF
35021/* end confdefs.h. */
35022
35023#include <stdio.h>
35024#include "SDL.h"
35025
35026int main(int argc, char *argv[])
35027{ return 0; }
35028#undef main
35029#define main K_and_R_C_main
35030
35031int
35032main ()
35033{
35034 return 0;
35035 ;
35036 return 0;
35037}
35038_ACEOF
35039rm -f conftest.$ac_objext conftest$ac_exeext
35040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35041 (eval $ac_link) 2>conftest.er1
a848cd7e 35042 ac_status=$?
ac1cb8d3
VS
35043 grep -v '^ *+' conftest.er1 >conftest.err
35044 rm -f conftest.er1
35045 cat conftest.err >&5
a848cd7e
SC
35046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35047 (exit $ac_status); } &&
da4486fb 35048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35050 (eval $ac_try) 2>&5
35051 ac_status=$?
35052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053 (exit $ac_status); }; } &&
35054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35056 (eval $ac_try) 2>&5
35057 ac_status=$?
35058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059 (exit $ac_status); }; }; then
35060 echo "*** The test program compiled, but did not run. This usually means"
35061 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35062 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35063 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35064 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35065 echo "*** is required on your system"
35066 echo "***"
35067 echo "*** If you have an old version installed, it is best to remove it, although"
35068 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35069else
35070 echo "$as_me: failed program was:" >&5
35071sed 's/^/| /' conftest.$ac_ext >&5
35072
35073 echo "*** The test program failed to compile or link. See the file config.log for the"
35074 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35075 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35076 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35077fi
ac1cb8d3
VS
35078rm -f conftest.err conftest.$ac_objext \
35079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35080 CFLAGS="$ac_save_CFLAGS"
35081 LIBS="$ac_save_LIBS"
35082 fi
35083 fi
35084 SDL_CFLAGS=""
35085 SDL_LIBS=""
35086 wxUSE_LIBSDL="no"
35087 fi
35088
35089
35090 rm -f conf.sdltest
35091
35092 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35093 WITH_PLUGIN_SDL=1
35094 fi
35095 fi
35096 fi
35097
35098 cat >>confdefs.h <<\_ACEOF
35099#define wxUSE_SOUND 1
35100_ACEOF
35101
35102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35103fi
35104
d1c38808
VZ
35105if test "$WXGTK20" = 1; then
35106 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35107 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
35108
35109
35110 succeeded=no
35111
35112 if test -z "$PKG_CONFIG"; then
35113 # Extract the first word of "pkg-config", so it can be a program name with args.
35114set dummy pkg-config; ac_word=$2
35115echo "$as_me:$LINENO: checking for $ac_word" >&5
35116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35117if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35118 echo $ECHO_N "(cached) $ECHO_C" >&6
35119else
35120 case $PKG_CONFIG in
35121 [\\/]* | ?:[\\/]*)
35122 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35123 ;;
35124 *)
35125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35126for as_dir in $PATH
35127do
35128 IFS=$as_save_IFS
35129 test -z "$as_dir" && as_dir=.
35130 for ac_exec_ext in '' $ac_executable_extensions; do
35131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35132 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35134 break 2
35135 fi
35136done
35137done
35138
35139 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
35140 ;;
35141esac
35142fi
35143PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35144
35145if test -n "$PKG_CONFIG"; then
35146 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35147echo "${ECHO_T}$PKG_CONFIG" >&6
35148else
35149 echo "$as_me:$LINENO: result: no" >&5
35150echo "${ECHO_T}no" >&6
35151fi
35152
35153 fi
35154
35155 if test "$PKG_CONFIG" = "no" ; then
35156 echo "*** The pkg-config script could not be found. Make sure it is"
35157 echo "*** in your path, or set the PKG_CONFIG environment variable"
35158 echo "*** to the full path to pkg-config."
35159 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
35160 else
35161 PKG_CONFIG_MIN_VERSION=0.9.0
35162 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
35163 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
35164echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 35165
ffa762ff 35166 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
35167 echo "$as_me:$LINENO: result: yes" >&5
35168echo "${ECHO_T}yes" >&6
35169 succeeded=yes
35170
35171 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
35172echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 35173 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35174 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
35175echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
35176
35177 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
35178echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 35179 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35180 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
35181echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
35182 else
35183 LIBGNOMEPRINTUI_CFLAGS=""
35184 LIBGNOMEPRINTUI_LIBS=""
35185 ## If we have a custom action on failure, don't print errors, but
35186 ## do set a variable so people can do so.
ffa762ff 35187 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35188
35189 fi
35190
35191
35192
35193 else
35194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
35196 fi
35197 fi
35198
35199 if test $succeeded = yes; then
35200
d1c38808
VZ
35201 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35202 cat >>confdefs.h <<\_ACEOF
35203#define wxUSE_LIBGNOMEPRINT 1
35204_ACEOF
35205
35206
35207 else
35208
35209 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35210echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35211 wxUSE_LIBGNOMEPRINT="no"
35212
35213
35214 fi
35215
35216 fi
35217 fi
35218fi
35219
35220
a848cd7e
SC
35221if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35222 cat >>confdefs.h <<\_ACEOF
35223#define wxUSE_CMDLINE_PARSER 1
35224_ACEOF
35225
35226fi
35227
35228if test "$wxUSE_STOPWATCH" = "yes"; then
35229 cat >>confdefs.h <<\_ACEOF
35230#define wxUSE_STOPWATCH 1
35231_ACEOF
35232
35233fi
35234
35235if test "$wxUSE_DATETIME" = "yes"; then
35236 cat >>confdefs.h <<\_ACEOF
35237#define wxUSE_DATETIME 1
35238_ACEOF
35239
35240fi
35241
35242if test "$wxUSE_FILE" = "yes"; then
35243 cat >>confdefs.h <<\_ACEOF
35244#define wxUSE_FILE 1
35245_ACEOF
35246
35247fi
35248
35249if test "$wxUSE_FFILE" = "yes"; then
35250 cat >>confdefs.h <<\_ACEOF
35251#define wxUSE_FFILE 1
35252_ACEOF
35253
35254fi
35255
35256if test "$wxUSE_FILESYSTEM" = "yes"; then
35257 cat >>confdefs.h <<\_ACEOF
35258#define wxUSE_FILESYSTEM 1
35259_ACEOF
35260
35261fi
35262
35263if test "$wxUSE_FS_ZIP" = "yes"; then
35264 cat >>confdefs.h <<\_ACEOF
35265#define wxUSE_FS_ZIP 1
35266_ACEOF
35267
35268fi
35269
35270if test "$wxUSE_ZIPSTREAM" = "yes"; then
35271 cat >>confdefs.h <<\_ACEOF
35272#define wxUSE_ZIPSTREAM 1
35273_ACEOF
35274
35275fi
35276
a848cd7e
SC
35277if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35278 cat >>confdefs.h <<\_ACEOF
35279#define wxUSE_ON_FATAL_EXCEPTION 1
35280_ACEOF
35281
35282fi
35283
eaff0f0d
VZ
35284if test "$wxUSE_STACKWALKER" = "yes"; then
35285 cat >>confdefs.h <<\_ACEOF
35286#define wxUSE_STACKWALKER 1
35287_ACEOF
35288
35289fi
35290
a848cd7e
SC
35291if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35292 cat >>confdefs.h <<\_ACEOF
35293#define wxUSE_SNGLINST_CHECKER 1
35294_ACEOF
35295
35296fi
35297
35298if test "$wxUSE_BUSYINFO" = "yes"; then
35299 cat >>confdefs.h <<\_ACEOF
35300#define wxUSE_BUSYINFO 1
35301_ACEOF
35302
35303fi
35304
35305if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35306 cat >>confdefs.h <<\_ACEOF
35307#define wxUSE_STD_IOSTREAM 1
35308_ACEOF
35309
35310fi
35311
35312if test "$wxUSE_TEXTBUFFER" = "yes"; then
35313 cat >>confdefs.h <<\_ACEOF
35314#define wxUSE_TEXTBUFFER 1
35315_ACEOF
35316
35317fi
35318
35319if test "$wxUSE_TEXTFILE" = "yes"; then
35320 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35321 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35322echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35323 else
35324 cat >>confdefs.h <<\_ACEOF
35325#define wxUSE_TEXTFILE 1
35326_ACEOF
35327
35328 fi
35329fi
35330
35331if test "$wxUSE_CONFIG" = "yes" ; then
35332 if test "$wxUSE_TEXTFILE" != "yes"; then
35333 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35334echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35335 else
35336 cat >>confdefs.h <<\_ACEOF
35337#define wxUSE_CONFIG 1
35338_ACEOF
35339
35340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35341 fi
35342fi
35343
35344if test "$wxUSE_INTL" = "yes" ; then
35345 if test "$wxUSE_FILE" != "yes"; then
35346 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35347echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35348 else
35349 cat >>confdefs.h <<\_ACEOF
35350#define wxUSE_INTL 1
35351_ACEOF
35352
35353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35354 GUIDIST="$GUIDIST INTL_DIST"
35355 fi
35356fi
35357
35358if test "$wxUSE_LOG" = "yes"; then
35359 cat >>confdefs.h <<\_ACEOF
35360#define wxUSE_LOG 1
35361_ACEOF
35362
35363
35364 if test "$wxUSE_LOGGUI" = "yes"; then
35365 cat >>confdefs.h <<\_ACEOF
35366#define wxUSE_LOGGUI 1
35367_ACEOF
35368
35369 fi
35370
35371 if test "$wxUSE_LOGWINDOW" = "yes"; then
35372 cat >>confdefs.h <<\_ACEOF
35373#define wxUSE_LOGWINDOW 1
35374_ACEOF
35375
35376 fi
35377
35378 if test "$wxUSE_LOGDIALOG" = "yes"; then
35379 cat >>confdefs.h <<\_ACEOF
35380#define wxUSE_LOG_DIALOG 1
35381_ACEOF
35382
35383 fi
35384fi
35385
35386if test "$wxUSE_LONGLONG" = "yes"; then
35387 cat >>confdefs.h <<\_ACEOF
35388#define wxUSE_LONGLONG 1
35389_ACEOF
35390
35391fi
35392
35393if test "$wxUSE_GEOMETRY" = "yes"; then
35394 cat >>confdefs.h <<\_ACEOF
35395#define wxUSE_GEOMETRY 1
35396_ACEOF
35397
35398fi
35399
35400if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
35401 cat >>confdefs.h <<\_ACEOF
35402#define wxUSE_DIALUP_MANAGER 1
35403_ACEOF
35404
35405 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
35406fi
35407
35408if test "$wxUSE_STREAMS" = "yes" ; then
35409 cat >>confdefs.h <<\_ACEOF
35410#define wxUSE_STREAMS 1
35411_ACEOF
35412
35413fi
35414
35415
35416if test "$wxUSE_DATETIME" = "yes"; then
35417
35418for ac_func in strptime
35419do
35420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35421echo "$as_me:$LINENO: checking for $ac_func" >&5
35422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35423if eval "test \"\${$as_ac_var+set}\" = set"; then
35424 echo $ECHO_N "(cached) $ECHO_C" >&6
35425else
35426 cat >conftest.$ac_ext <<_ACEOF
35427/* confdefs.h. */
35428_ACEOF
35429cat confdefs.h >>conftest.$ac_ext
35430cat >>conftest.$ac_ext <<_ACEOF
35431/* end confdefs.h. */
ac1cb8d3
VS
35432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35434#define $ac_func innocuous_$ac_func
35435
a848cd7e
SC
35436/* System header to define __stub macros and hopefully few prototypes,
35437 which can conflict with char $ac_func (); below.
35438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35439 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35440
a848cd7e
SC
35441#ifdef __STDC__
35442# include <limits.h>
35443#else
35444# include <assert.h>
35445#endif
ac1cb8d3
VS
35446
35447#undef $ac_func
35448
a848cd7e
SC
35449/* Override any gcc2 internal prototype to avoid an error. */
35450#ifdef __cplusplus
35451extern "C"
35452{
35453#endif
35454/* We use char because int might match the return type of a gcc2
35455 builtin and then its argument prototype would still apply. */
35456char $ac_func ();
35457/* The GNU C library defines this for functions which it implements
35458 to always fail with ENOSYS. Some functions are actually named
35459 something starting with __ and the normal name is an alias. */
35460#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35461choke me
35462#else
35463char (*f) () = $ac_func;
35464#endif
35465#ifdef __cplusplus
35466}
35467#endif
35468
35469int
35470main ()
35471{
35472return f != $ac_func;
35473 ;
35474 return 0;
35475}
35476_ACEOF
35477rm -f conftest.$ac_objext conftest$ac_exeext
35478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35479 (eval $ac_link) 2>conftest.er1
a848cd7e 35480 ac_status=$?
ac1cb8d3
VS
35481 grep -v '^ *+' conftest.er1 >conftest.err
35482 rm -f conftest.er1
35483 cat conftest.err >&5
a848cd7e
SC
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); } &&
da4486fb 35486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488 (eval $ac_try) 2>&5
35489 ac_status=$?
35490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491 (exit $ac_status); }; } &&
35492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35494 (eval $ac_try) 2>&5
35495 ac_status=$?
35496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497 (exit $ac_status); }; }; then
35498 eval "$as_ac_var=yes"
35499else
35500 echo "$as_me: failed program was:" >&5
35501sed 's/^/| /' conftest.$ac_ext >&5
35502
35503eval "$as_ac_var=no"
35504fi
ac1cb8d3
VS
35505rm -f conftest.err conftest.$ac_objext \
35506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35507fi
35508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35510if test `eval echo '${'$as_ac_var'}'` = yes; then
35511 cat >>confdefs.h <<_ACEOF
35512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35513_ACEOF
35514
35515fi
35516done
35517
35518
35519 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35520echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35521if test "${wx_cv_var_timezone+set}" = set; then
35522 echo $ECHO_N "(cached) $ECHO_C" >&6
35523else
35524
35525 cat >conftest.$ac_ext <<_ACEOF
35526/* confdefs.h. */
35527_ACEOF
35528cat confdefs.h >>conftest.$ac_ext
35529cat >>conftest.$ac_ext <<_ACEOF
35530/* end confdefs.h. */
35531
35532 #include <time.h>
35533
35534int
35535main ()
35536{
35537
35538 int tz;
35539 tz = timezone;
35540
35541 ;
35542 return 0;
35543}
35544_ACEOF
35545rm -f conftest.$ac_objext
35546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35547 (eval $ac_compile) 2>conftest.er1
a848cd7e 35548 ac_status=$?
ac1cb8d3
VS
35549 grep -v '^ *+' conftest.er1 >conftest.err
35550 rm -f conftest.er1
35551 cat conftest.err >&5
a848cd7e
SC
35552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553 (exit $ac_status); } &&
da4486fb 35554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35556 (eval $ac_try) 2>&5
35557 ac_status=$?
35558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559 (exit $ac_status); }; } &&
35560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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
35567 wx_cv_var_timezone=timezone
35568
35569else
35570 echo "$as_me: failed program was:" >&5
35571sed 's/^/| /' conftest.$ac_ext >&5
35572
35573
35574 cat >conftest.$ac_ext <<_ACEOF
35575/* confdefs.h. */
35576_ACEOF
35577cat confdefs.h >>conftest.$ac_ext
35578cat >>conftest.$ac_ext <<_ACEOF
35579/* end confdefs.h. */
35580
35581 #include <time.h>
35582
35583int
35584main ()
35585{
35586
35587 int tz;
35588 tz = _timezone;
35589
35590 ;
35591 return 0;
35592}
35593_ACEOF
35594rm -f conftest.$ac_objext
35595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35596 (eval $ac_compile) 2>conftest.er1
a848cd7e 35597 ac_status=$?
ac1cb8d3
VS
35598 grep -v '^ *+' conftest.er1 >conftest.err
35599 rm -f conftest.er1
35600 cat conftest.err >&5
a848cd7e
SC
35601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602 (exit $ac_status); } &&
da4486fb 35603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35605 (eval $ac_try) 2>&5
35606 ac_status=$?
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); }; } &&
35609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35611 (eval $ac_try) 2>&5
35612 ac_status=$?
35613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614 (exit $ac_status); }; }; then
35615
35616 wx_cv_var_timezone=_timezone
35617
35618else
35619 echo "$as_me: failed program was:" >&5
35620sed 's/^/| /' conftest.$ac_ext >&5
35621
35622
35623 cat >conftest.$ac_ext <<_ACEOF
35624/* confdefs.h. */
35625_ACEOF
35626cat confdefs.h >>conftest.$ac_ext
35627cat >>conftest.$ac_ext <<_ACEOF
35628/* end confdefs.h. */
35629
35630 #include <time.h>
35631
35632int
35633main ()
35634{
35635
35636 int tz;
35637 tz = __timezone;
35638
35639 ;
35640 return 0;
35641}
35642_ACEOF
35643rm -f conftest.$ac_objext
35644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35645 (eval $ac_compile) 2>conftest.er1
a848cd7e 35646 ac_status=$?
ac1cb8d3
VS
35647 grep -v '^ *+' conftest.er1 >conftest.err
35648 rm -f conftest.er1
35649 cat conftest.err >&5
a848cd7e
SC
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); } &&
da4486fb 35652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35654 (eval $ac_try) 2>&5
35655 ac_status=$?
35656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657 (exit $ac_status); }; } &&
35658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35660 (eval $ac_try) 2>&5
35661 ac_status=$?
35662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35663 (exit $ac_status); }; }; then
35664
35665 wx_cv_var_timezone=__timezone
35666
35667else
35668 echo "$as_me: failed program was:" >&5
35669sed 's/^/| /' conftest.$ac_ext >&5
35670
35671
35672 if test "$USE_DOS" = 0 ; then
35673 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35674echo "$as_me: WARNING: no timezone variable" >&2;}
35675 fi
35676
35677
35678fi
ac1cb8d3 35679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35680
35681
35682fi
ac1cb8d3 35683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35684
35685
35686fi
ac1cb8d3 35687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35688
35689
35690fi
35691echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35692echo "${ECHO_T}$wx_cv_var_timezone" >&6
35693
35694 if test "x$wx_cv_var_timezone" != x ; then
35695 cat >>confdefs.h <<_ACEOF
35696#define WX_TIMEZONE $wx_cv_var_timezone
35697_ACEOF
35698
35699 fi
35700
35701
35702for ac_func in localtime
35703do
35704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35705echo "$as_me:$LINENO: checking for $ac_func" >&5
35706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35707if eval "test \"\${$as_ac_var+set}\" = set"; then
35708 echo $ECHO_N "(cached) $ECHO_C" >&6
35709else
35710 cat >conftest.$ac_ext <<_ACEOF
35711/* confdefs.h. */
35712_ACEOF
35713cat confdefs.h >>conftest.$ac_ext
35714cat >>conftest.$ac_ext <<_ACEOF
35715/* end confdefs.h. */
ac1cb8d3
VS
35716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35718#define $ac_func innocuous_$ac_func
35719
a848cd7e
SC
35720/* System header to define __stub macros and hopefully few prototypes,
35721 which can conflict with char $ac_func (); below.
35722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35723 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35724
a848cd7e
SC
35725#ifdef __STDC__
35726# include <limits.h>
35727#else
35728# include <assert.h>
35729#endif
ac1cb8d3
VS
35730
35731#undef $ac_func
35732
a848cd7e
SC
35733/* Override any gcc2 internal prototype to avoid an error. */
35734#ifdef __cplusplus
35735extern "C"
35736{
35737#endif
35738/* We use char because int might match the return type of a gcc2
35739 builtin and then its argument prototype would still apply. */
35740char $ac_func ();
35741/* The GNU C library defines this for functions which it implements
35742 to always fail with ENOSYS. Some functions are actually named
35743 something starting with __ and the normal name is an alias. */
35744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35745choke me
35746#else
35747char (*f) () = $ac_func;
35748#endif
35749#ifdef __cplusplus
35750}
35751#endif
35752
35753int
35754main ()
35755{
35756return f != $ac_func;
35757 ;
35758 return 0;
35759}
35760_ACEOF
35761rm -f conftest.$ac_objext conftest$ac_exeext
35762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35763 (eval $ac_link) 2>conftest.er1
a848cd7e 35764 ac_status=$?
ac1cb8d3
VS
35765 grep -v '^ *+' conftest.er1 >conftest.err
35766 rm -f conftest.er1
35767 cat conftest.err >&5
a848cd7e
SC
35768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769 (exit $ac_status); } &&
da4486fb 35770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35772 (eval $ac_try) 2>&5
35773 ac_status=$?
35774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775 (exit $ac_status); }; } &&
35776 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35778 (eval $ac_try) 2>&5
35779 ac_status=$?
35780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); }; }; then
35782 eval "$as_ac_var=yes"
35783else
35784 echo "$as_me: failed program was:" >&5
35785sed 's/^/| /' conftest.$ac_ext >&5
35786
35787eval "$as_ac_var=no"
35788fi
ac1cb8d3
VS
35789rm -f conftest.err conftest.$ac_objext \
35790 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35791fi
35792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35793echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35794if test `eval echo '${'$as_ac_var'}'` = yes; then
35795 cat >>confdefs.h <<_ACEOF
35796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35797_ACEOF
35798
35799fi
35800done
35801
35802
35803 if test "$ac_cv_func_localtime" = "yes"; then
35804 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35805echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35806if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35807 echo $ECHO_N "(cached) $ECHO_C" >&6
35808else
35809
35810 cat >conftest.$ac_ext <<_ACEOF
35811/* confdefs.h. */
35812_ACEOF
35813cat confdefs.h >>conftest.$ac_ext
35814cat >>conftest.$ac_ext <<_ACEOF
35815/* end confdefs.h. */
35816
35817 #include <time.h>
35818
35819int
35820main ()
35821{
35822
35823 struct tm tm;
35824 tm.tm_gmtoff++;
35825
35826 ;
35827 return 0;
35828}
35829_ACEOF
35830rm -f conftest.$ac_objext
35831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35832 (eval $ac_compile) 2>conftest.er1
a848cd7e 35833 ac_status=$?
ac1cb8d3
VS
35834 grep -v '^ *+' conftest.er1 >conftest.err
35835 rm -f conftest.er1
35836 cat conftest.err >&5
a848cd7e
SC
35837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838 (exit $ac_status); } &&
da4486fb 35839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35841 (eval $ac_try) 2>&5
35842 ac_status=$?
35843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35844 (exit $ac_status); }; } &&
35845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35847 (eval $ac_try) 2>&5
35848 ac_status=$?
35849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35850 (exit $ac_status); }; }; then
35851
35852 wx_cv_struct_tm_has_gmtoff=yes
35853
35854else
35855 echo "$as_me: failed program was:" >&5
35856sed 's/^/| /' conftest.$ac_ext >&5
35857
35858wx_cv_struct_tm_has_gmtoff=no
35859
35860fi
ac1cb8d3 35861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35862
35863fi
35864echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35865echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35866 fi
35867
35868 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35869 cat >>confdefs.h <<\_ACEOF
35870#define WX_GMTOFF_IN_TM 1
35871_ACEOF
35872
35873 fi
35874
35875
35876
35877for ac_func in gettimeofday ftime
35878do
35879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35880echo "$as_me:$LINENO: checking for $ac_func" >&5
35881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35882if eval "test \"\${$as_ac_var+set}\" = set"; then
35883 echo $ECHO_N "(cached) $ECHO_C" >&6
35884else
35885 cat >conftest.$ac_ext <<_ACEOF
35886/* confdefs.h. */
35887_ACEOF
35888cat confdefs.h >>conftest.$ac_ext
35889cat >>conftest.$ac_ext <<_ACEOF
35890/* end confdefs.h. */
ac1cb8d3
VS
35891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35893#define $ac_func innocuous_$ac_func
35894
a848cd7e
SC
35895/* System header to define __stub macros and hopefully few prototypes,
35896 which can conflict with char $ac_func (); below.
35897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35898 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35899
a848cd7e
SC
35900#ifdef __STDC__
35901# include <limits.h>
35902#else
35903# include <assert.h>
35904#endif
ac1cb8d3
VS
35905
35906#undef $ac_func
35907
a848cd7e
SC
35908/* Override any gcc2 internal prototype to avoid an error. */
35909#ifdef __cplusplus
35910extern "C"
35911{
35912#endif
35913/* We use char because int might match the return type of a gcc2
35914 builtin and then its argument prototype would still apply. */
35915char $ac_func ();
35916/* The GNU C library defines this for functions which it implements
35917 to always fail with ENOSYS. Some functions are actually named
35918 something starting with __ and the normal name is an alias. */
35919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35920choke me
35921#else
35922char (*f) () = $ac_func;
35923#endif
35924#ifdef __cplusplus
35925}
35926#endif
35927
35928int
35929main ()
35930{
35931return f != $ac_func;
35932 ;
35933 return 0;
35934}
35935_ACEOF
35936rm -f conftest.$ac_objext conftest$ac_exeext
35937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35938 (eval $ac_link) 2>conftest.er1
a848cd7e 35939 ac_status=$?
ac1cb8d3
VS
35940 grep -v '^ *+' conftest.er1 >conftest.err
35941 rm -f conftest.er1
35942 cat conftest.err >&5
a848cd7e
SC
35943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944 (exit $ac_status); } &&
da4486fb 35945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35947 (eval $ac_try) 2>&5
35948 ac_status=$?
35949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950 (exit $ac_status); }; } &&
35951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35953 (eval $ac_try) 2>&5
35954 ac_status=$?
35955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956 (exit $ac_status); }; }; then
35957 eval "$as_ac_var=yes"
35958else
35959 echo "$as_me: failed program was:" >&5
35960sed 's/^/| /' conftest.$ac_ext >&5
35961
35962eval "$as_ac_var=no"
35963fi
ac1cb8d3
VS
35964rm -f conftest.err conftest.$ac_objext \
35965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35966fi
35967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35969if test `eval echo '${'$as_ac_var'}'` = yes; then
35970 cat >>confdefs.h <<_ACEOF
35971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35972_ACEOF
35973 break
35974fi
35975done
35976
35977
35978 if test "$ac_cv_func_gettimeofday" = "yes"; then
35979 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35980echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35981if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35982 echo $ECHO_N "(cached) $ECHO_C" >&6
35983else
35984
35985
35986
35987 ac_ext=cc
35988ac_cpp='$CXXCPP $CPPFLAGS'
35989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35992
35993
35994 cat >conftest.$ac_ext <<_ACEOF
35995/* confdefs.h. */
35996_ACEOF
35997cat confdefs.h >>conftest.$ac_ext
35998cat >>conftest.$ac_ext <<_ACEOF
35999/* end confdefs.h. */
36000
36001 #include <sys/time.h>
36002 #include <unistd.h>
36003
36004int
36005main ()
36006{
36007
36008 struct timeval tv;
36009 gettimeofday(&tv, NULL);
36010
36011 ;
36012 return 0;
36013}
36014_ACEOF
36015rm -f conftest.$ac_objext
36016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36017 (eval $ac_compile) 2>conftest.er1
a848cd7e 36018 ac_status=$?
ac1cb8d3
VS
36019 grep -v '^ *+' conftest.er1 >conftest.err
36020 rm -f conftest.er1
36021 cat conftest.err >&5
a848cd7e
SC
36022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36023 (exit $ac_status); } &&
da4486fb 36024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36026 (eval $ac_try) 2>&5
36027 ac_status=$?
36028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); }; } &&
36030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36032 (eval $ac_try) 2>&5
36033 ac_status=$?
36034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035 (exit $ac_status); }; }; then
36036 wx_cv_func_gettimeofday_has_2_args=yes
36037else
36038 echo "$as_me: failed program was:" >&5
36039sed 's/^/| /' conftest.$ac_ext >&5
36040
36041cat >conftest.$ac_ext <<_ACEOF
36042/* confdefs.h. */
36043_ACEOF
36044cat confdefs.h >>conftest.$ac_ext
36045cat >>conftest.$ac_ext <<_ACEOF
36046/* end confdefs.h. */
36047
36048 #include <sys/time.h>
36049 #include <unistd.h>
36050
36051int
36052main ()
36053{
36054
36055 struct timeval tv;
36056 gettimeofday(&tv);
36057
36058 ;
36059 return 0;
36060}
36061_ACEOF
36062rm -f conftest.$ac_objext
36063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36064 (eval $ac_compile) 2>conftest.er1
a848cd7e 36065 ac_status=$?
ac1cb8d3
VS
36066 grep -v '^ *+' conftest.er1 >conftest.err
36067 rm -f conftest.er1
36068 cat conftest.err >&5
a848cd7e
SC
36069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070 (exit $ac_status); } &&
da4486fb 36071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36073 (eval $ac_try) 2>&5
36074 ac_status=$?
36075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076 (exit $ac_status); }; } &&
36077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36079 (eval $ac_try) 2>&5
36080 ac_status=$?
36081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082 (exit $ac_status); }; }; then
36083 wx_cv_func_gettimeofday_has_2_args=no
36084else
36085 echo "$as_me: failed program was:" >&5
36086sed 's/^/| /' conftest.$ac_ext >&5
36087
36088
36089 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36090echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36091 wx_cv_func_gettimeofday_has_2_args=unknown
36092
36093
36094fi
ac1cb8d3 36095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36096
36097fi
ac1cb8d3 36098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36099 ac_ext=c
36100ac_cpp='$CPP $CPPFLAGS'
36101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36103ac_compiler_gnu=$ac_cv_c_compiler_gnu
36104
36105
36106fi
36107echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36108echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36109
36110 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36111 cat >>confdefs.h <<\_ACEOF
36112#define WX_GETTIMEOFDAY_NO_TZ 1
36113_ACEOF
36114
36115 fi
36116 fi
36117
36118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36119fi
36120
36121
36122if test "$wxUSE_SOCKETS" = "yes"; then
36123 if test "$wxUSE_MGL" = "1"; then
36124 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36125echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36126 wxUSE_SOCKETS="no"
36127 fi
36128fi
36129
36130if test "$wxUSE_SOCKETS" = "yes"; then
36131 if test "$TOOLKIT" != "MSW"; then
36132 echo "$as_me:$LINENO: checking for socket" >&5
36133echo $ECHO_N "checking for socket... $ECHO_C" >&6
36134if test "${ac_cv_func_socket+set}" = set; then
36135 echo $ECHO_N "(cached) $ECHO_C" >&6
36136else
36137 cat >conftest.$ac_ext <<_ACEOF
36138/* confdefs.h. */
36139_ACEOF
36140cat confdefs.h >>conftest.$ac_ext
36141cat >>conftest.$ac_ext <<_ACEOF
36142/* end confdefs.h. */
ac1cb8d3
VS
36143/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36145#define socket innocuous_socket
36146
a848cd7e
SC
36147/* System header to define __stub macros and hopefully few prototypes,
36148 which can conflict with char socket (); below.
36149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36150 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36151
a848cd7e
SC
36152#ifdef __STDC__
36153# include <limits.h>
36154#else
36155# include <assert.h>
36156#endif
ac1cb8d3
VS
36157
36158#undef socket
36159
a848cd7e
SC
36160/* Override any gcc2 internal prototype to avoid an error. */
36161#ifdef __cplusplus
36162extern "C"
36163{
36164#endif
36165/* We use char because int might match the return type of a gcc2
36166 builtin and then its argument prototype would still apply. */
36167char socket ();
36168/* The GNU C library defines this for functions which it implements
36169 to always fail with ENOSYS. Some functions are actually named
36170 something starting with __ and the normal name is an alias. */
36171#if defined (__stub_socket) || defined (__stub___socket)
36172choke me
36173#else
36174char (*f) () = socket;
36175#endif
36176#ifdef __cplusplus
36177}
36178#endif
36179
36180int
36181main ()
36182{
36183return f != socket;
36184 ;
36185 return 0;
36186}
36187_ACEOF
36188rm -f conftest.$ac_objext conftest$ac_exeext
36189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36190 (eval $ac_link) 2>conftest.er1
a848cd7e 36191 ac_status=$?
ac1cb8d3
VS
36192 grep -v '^ *+' conftest.er1 >conftest.err
36193 rm -f conftest.er1
36194 cat conftest.err >&5
a848cd7e
SC
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); } &&
da4486fb 36197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36199 (eval $ac_try) 2>&5
36200 ac_status=$?
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); }; } &&
36203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36205 (eval $ac_try) 2>&5
36206 ac_status=$?
36207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36208 (exit $ac_status); }; }; then
36209 ac_cv_func_socket=yes
36210else
36211 echo "$as_me: failed program was:" >&5
36212sed 's/^/| /' conftest.$ac_ext >&5
36213
36214ac_cv_func_socket=no
36215fi
ac1cb8d3
VS
36216rm -f conftest.err conftest.$ac_objext \
36217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36218fi
36219echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36220echo "${ECHO_T}$ac_cv_func_socket" >&6
36221if test $ac_cv_func_socket = yes; then
36222 :
36223else
36224
36225 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36226echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36227if test "${ac_cv_lib_socket_socket+set}" = set; then
36228 echo $ECHO_N "(cached) $ECHO_C" >&6
36229else
36230 ac_check_lib_save_LIBS=$LIBS
36231LIBS="-lsocket $LIBS"
36232cat >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/* Override any gcc2 internal prototype to avoid an error. */
36240#ifdef __cplusplus
36241extern "C"
36242#endif
36243/* We use char because int might match the return type of a gcc2
36244 builtin and then its argument prototype would still apply. */
36245char socket ();
36246int
36247main ()
36248{
36249socket ();
36250 ;
36251 return 0;
36252}
36253_ACEOF
36254rm -f conftest.$ac_objext conftest$ac_exeext
36255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36256 (eval $ac_link) 2>conftest.er1
a848cd7e 36257 ac_status=$?
ac1cb8d3
VS
36258 grep -v '^ *+' conftest.er1 >conftest.err
36259 rm -f conftest.er1
36260 cat conftest.err >&5
a848cd7e
SC
36261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262 (exit $ac_status); } &&
da4486fb 36263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36265 (eval $ac_try) 2>&5
36266 ac_status=$?
36267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36268 (exit $ac_status); }; } &&
36269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36271 (eval $ac_try) 2>&5
36272 ac_status=$?
36273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36274 (exit $ac_status); }; }; then
36275 ac_cv_lib_socket_socket=yes
36276else
36277 echo "$as_me: failed program was:" >&5
36278sed 's/^/| /' conftest.$ac_ext >&5
36279
36280ac_cv_lib_socket_socket=no
36281fi
ac1cb8d3
VS
36282rm -f conftest.err conftest.$ac_objext \
36283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36284LIBS=$ac_check_lib_save_LIBS
36285fi
36286echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36287echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36288if test $ac_cv_lib_socket_socket = yes; then
36289 if test "$INET_LINK" != " -lsocket"; then
36290 INET_LINK="$INET_LINK -lsocket"
36291 fi
36292else
36293
36294 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36295echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36296 wxUSE_SOCKETS=no
36297
36298
36299fi
36300
36301
36302
36303fi
36304
36305 fi
36306fi
36307
36308if test "$wxUSE_SOCKETS" = "yes" ; then
36309 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36310 ac_ext=cc
36311ac_cpp='$CXXCPP $CPPFLAGS'
36312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36315
36316 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36317echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36318if test "${wx_cv_type_getsockname3+set}" = set; then
36319 echo $ECHO_N "(cached) $ECHO_C" >&6
36320else
36321
36322 cat >conftest.$ac_ext <<_ACEOF
36323/* confdefs.h. */
36324_ACEOF
36325cat confdefs.h >>conftest.$ac_ext
36326cat >>conftest.$ac_ext <<_ACEOF
36327/* end confdefs.h. */
36328
36329 #include <sys/types.h>
36330 #include <sys/socket.h>
36331
36332int
36333main ()
36334{
36335
36336 socklen_t len;
36337 getsockname(0, 0, &len);
36338
36339 ;
36340 return 0;
36341}
36342_ACEOF
36343rm -f conftest.$ac_objext
36344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36345 (eval $ac_compile) 2>conftest.er1
a848cd7e 36346 ac_status=$?
ac1cb8d3
VS
36347 grep -v '^ *+' conftest.er1 >conftest.err
36348 rm -f conftest.er1
36349 cat conftest.err >&5
a848cd7e
SC
36350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351 (exit $ac_status); } &&
da4486fb 36352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36354 (eval $ac_try) 2>&5
36355 ac_status=$?
36356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36357 (exit $ac_status); }; } &&
36358 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36360 (eval $ac_try) 2>&5
36361 ac_status=$?
36362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363 (exit $ac_status); }; }; then
36364 wx_cv_type_getsockname3=socklen_t
36365else
36366 echo "$as_me: failed program was:" >&5
36367sed 's/^/| /' conftest.$ac_ext >&5
36368
36369
36370 CFLAGS_OLD="$CFLAGS"
36371 if test "$GCC" = yes ; then
36372 CFLAGS="$CFLAGS -Werror"
36373 fi
36374
36375 cat >conftest.$ac_ext <<_ACEOF
36376/* confdefs.h. */
36377_ACEOF
36378cat confdefs.h >>conftest.$ac_ext
36379cat >>conftest.$ac_ext <<_ACEOF
36380/* end confdefs.h. */
36381
36382 #include <sys/types.h>
36383 #include <sys/socket.h>
36384
36385int
36386main ()
36387{
36388
36389 size_t len;
36390 getsockname(0, 0, &len);
36391
36392 ;
36393 return 0;
36394}
36395_ACEOF
36396rm -f conftest.$ac_objext
36397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36398 (eval $ac_compile) 2>conftest.er1
a848cd7e 36399 ac_status=$?
ac1cb8d3
VS
36400 grep -v '^ *+' conftest.er1 >conftest.err
36401 rm -f conftest.er1
36402 cat conftest.err >&5
a848cd7e
SC
36403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404 (exit $ac_status); } &&
da4486fb 36405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36407 (eval $ac_try) 2>&5
36408 ac_status=$?
36409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410 (exit $ac_status); }; } &&
36411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36413 (eval $ac_try) 2>&5
36414 ac_status=$?
36415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416 (exit $ac_status); }; }; then
36417 wx_cv_type_getsockname3=size_t
36418else
36419 echo "$as_me: failed program was:" >&5
36420sed 's/^/| /' conftest.$ac_ext >&5
36421
36422cat >conftest.$ac_ext <<_ACEOF
36423/* confdefs.h. */
36424_ACEOF
36425cat confdefs.h >>conftest.$ac_ext
36426cat >>conftest.$ac_ext <<_ACEOF
36427/* end confdefs.h. */
36428
36429 #include <sys/types.h>
36430 #include <sys/socket.h>
36431
36432int
36433main ()
36434{
36435
36436 int len;
36437 getsockname(0, 0, &len);
36438
36439 ;
36440 return 0;
36441}
36442_ACEOF
36443rm -f conftest.$ac_objext
36444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36445 (eval $ac_compile) 2>conftest.er1
a848cd7e 36446 ac_status=$?
ac1cb8d3
VS
36447 grep -v '^ *+' conftest.er1 >conftest.err
36448 rm -f conftest.er1
36449 cat conftest.err >&5
a848cd7e
SC
36450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); } &&
da4486fb 36452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36454 (eval $ac_try) 2>&5
36455 ac_status=$?
36456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457 (exit $ac_status); }; } &&
36458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36460 (eval $ac_try) 2>&5
36461 ac_status=$?
36462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463 (exit $ac_status); }; }; then
36464 wx_cv_type_getsockname3=int
36465else
36466 echo "$as_me: failed program was:" >&5
36467sed 's/^/| /' conftest.$ac_ext >&5
36468
36469wx_cv_type_getsockname3=unknown
36470
36471fi
ac1cb8d3 36472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36473
36474fi
ac1cb8d3 36475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36476
36477 CFLAGS="$CFLAGS_OLD"
36478
36479
36480fi
ac1cb8d3 36481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36482
36483fi
36484echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36485echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36486
36487 if test "$wx_cv_type_getsockname3" = "unknown"; then
36488 wxUSE_SOCKETS=no
36489 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36490echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36491 else
36492 cat >>confdefs.h <<_ACEOF
36493#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
36494_ACEOF
36495
36496 fi
36497 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
36498echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
36499if test "${wx_cv_type_getsockopt5+set}" = set; then
36500 echo $ECHO_N "(cached) $ECHO_C" >&6
36501else
36502
36503 cat >conftest.$ac_ext <<_ACEOF
36504/* confdefs.h. */
36505_ACEOF
36506cat confdefs.h >>conftest.$ac_ext
36507cat >>conftest.$ac_ext <<_ACEOF
36508/* end confdefs.h. */
36509
36510 #include <sys/types.h>
36511 #include <sys/socket.h>
36512
36513int
36514main ()
36515{
36516
36517 socklen_t len;
36518 getsockopt(0, 0, 0, 0, &len);
36519
36520 ;
36521 return 0;
36522}
36523_ACEOF
36524rm -f conftest.$ac_objext
36525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36526 (eval $ac_compile) 2>conftest.er1
36527 ac_status=$?
36528 grep -v '^ *+' conftest.er1 >conftest.err
36529 rm -f conftest.er1
36530 cat conftest.err >&5
36531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); } &&
da4486fb 36533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
36534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36535 (eval $ac_try) 2>&5
36536 ac_status=$?
36537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538 (exit $ac_status); }; } &&
36539 { ac_try='test -s conftest.$ac_objext'
36540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36541 (eval $ac_try) 2>&5
36542 ac_status=$?
36543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544 (exit $ac_status); }; }; then
36545 wx_cv_type_getsockopt5=socklen_t
36546else
36547 echo "$as_me: failed program was:" >&5
36548sed 's/^/| /' conftest.$ac_ext >&5
36549
36550
36551 CFLAGS_OLD="$CFLAGS"
36552 if test "$GCC" = yes ; then
36553 CFLAGS="$CFLAGS -Werror"
36554 fi
36555
36556 cat >conftest.$ac_ext <<_ACEOF
36557/* confdefs.h. */
36558_ACEOF
36559cat confdefs.h >>conftest.$ac_ext
36560cat >>conftest.$ac_ext <<_ACEOF
36561/* end confdefs.h. */
36562
36563 #include <sys/types.h>
36564 #include <sys/socket.h>
36565
36566int
36567main ()
36568{
36569
36570 size_t len;
36571 getsockopt(0, 0, 0, 0, &len);
36572
36573 ;
36574 return 0;
36575}
36576_ACEOF
36577rm -f conftest.$ac_objext
36578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36579 (eval $ac_compile) 2>conftest.er1
36580 ac_status=$?
36581 grep -v '^ *+' conftest.er1 >conftest.err
36582 rm -f conftest.er1
36583 cat conftest.err >&5
36584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585 (exit $ac_status); } &&
da4486fb 36586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
36587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36588 (eval $ac_try) 2>&5
36589 ac_status=$?
36590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36591 (exit $ac_status); }; } &&
36592 { ac_try='test -s conftest.$ac_objext'
36593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36594 (eval $ac_try) 2>&5
36595 ac_status=$?
36596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36597 (exit $ac_status); }; }; then
36598 wx_cv_type_getsockopt5=size_t
36599else
36600 echo "$as_me: failed program was:" >&5
36601sed 's/^/| /' conftest.$ac_ext >&5
36602
36603cat >conftest.$ac_ext <<_ACEOF
36604/* confdefs.h. */
36605_ACEOF
36606cat confdefs.h >>conftest.$ac_ext
36607cat >>conftest.$ac_ext <<_ACEOF
36608/* end confdefs.h. */
36609
36610 #include <sys/types.h>
36611 #include <sys/socket.h>
36612
36613int
36614main ()
36615{
36616
36617 int len;
36618 getsockopt(0, 0, 0, 0, &len);
36619
36620 ;
36621 return 0;
36622}
36623_ACEOF
36624rm -f conftest.$ac_objext
36625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36626 (eval $ac_compile) 2>conftest.er1
36627 ac_status=$?
36628 grep -v '^ *+' conftest.er1 >conftest.err
36629 rm -f conftest.er1
36630 cat conftest.err >&5
36631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632 (exit $ac_status); } &&
da4486fb 36633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
36634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36635 (eval $ac_try) 2>&5
36636 ac_status=$?
36637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638 (exit $ac_status); }; } &&
36639 { ac_try='test -s conftest.$ac_objext'
36640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36641 (eval $ac_try) 2>&5
36642 ac_status=$?
36643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644 (exit $ac_status); }; }; then
36645 wx_cv_type_getsockopt5=int
36646else
36647 echo "$as_me: failed program was:" >&5
36648sed 's/^/| /' conftest.$ac_ext >&5
36649
36650wx_cv_type_getsockopt5=unknown
36651
36652fi
36653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36654
36655fi
36656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36657
36658 CFLAGS="$CFLAGS_OLD"
36659
36660
36661fi
36662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36663
36664fi
36665echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
36666echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
36667
36668 if test "$wx_cv_type_getsockopt5" = "unknown"; then
36669 wxUSE_SOCKETS=no
36670 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36671echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36672 else
36673 cat >>confdefs.h <<_ACEOF
36674#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
36675_ACEOF
36676
36677 fi
4d4ff94c
VZ
36678 ac_ext=c
36679ac_cpp='$CPP $CPPFLAGS'
36680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36682ac_compiler_gnu=$ac_cv_c_compiler_gnu
36683
a848cd7e
SC
36684 fi
36685fi
36686
36687if test "$wxUSE_SOCKETS" = "yes" ; then
36688 cat >>confdefs.h <<\_ACEOF
36689#define wxUSE_SOCKETS 1
36690_ACEOF
36691
36692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36693fi
36694
36695if test "$wxUSE_PROTOCOL" = "yes"; then
36696 if test "$wxUSE_SOCKETS" != "yes"; then
36697 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36698echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36699 wxUSE_PROTOCOL=no
36700 fi
36701fi
36702
36703if test "$wxUSE_PROTOCOL" = "yes"; then
36704 cat >>confdefs.h <<\_ACEOF
36705#define wxUSE_PROTOCOL 1
36706_ACEOF
36707
36708
36709 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36710 cat >>confdefs.h <<\_ACEOF
36711#define wxUSE_PROTOCOL_HTTP 1
36712_ACEOF
36713
36714 fi
36715 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36716 cat >>confdefs.h <<\_ACEOF
36717#define wxUSE_PROTOCOL_FTP 1
36718_ACEOF
36719
36720 fi
36721 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36722 cat >>confdefs.h <<\_ACEOF
36723#define wxUSE_PROTOCOL_FILE 1
36724_ACEOF
36725
36726 fi
36727else
36728 if test "$wxUSE_FS_INET" = "yes"; then
36729 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36730echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36731 wxUSE_FS_INET="no"
36732 fi
36733fi
36734
36735if test "$wxUSE_URL" = "yes"; then
36736 if test "$wxUSE_PROTOCOL" != "yes"; then
36737 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36738echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36739 wxUSE_URL=no
36740 fi
36741 if test "$wxUSE_URL" = "yes"; then
36742 cat >>confdefs.h <<\_ACEOF
36743#define wxUSE_URL 1
36744_ACEOF
36745
36746 fi
36747fi
36748
36749if test "$wxUSE_FS_INET" = "yes"; then
36750 cat >>confdefs.h <<\_ACEOF
36751#define wxUSE_FS_INET 1
36752_ACEOF
36753
36754fi
36755
36756
36757if test "$wxUSE_GUI" = "yes"; then
36758
36759 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36760 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36761echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36762 wxUSE_JOYSTICK=no
36763 fi
36764
36765 if test "$TOOLKIT" != "MSW"; then
36766 if test "$wxUSE_JOYSTICK" = "yes"; then
36767
36768for ac_header in linux/joystick.h
36769do
36770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36771if eval "test \"\${$as_ac_Header+set}\" = set"; then
36772 echo "$as_me:$LINENO: checking for $ac_header" >&5
36773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36774if eval "test \"\${$as_ac_Header+set}\" = set"; then
36775 echo $ECHO_N "(cached) $ECHO_C" >&6
36776fi
36777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36779else
36780 # Is the header compilable?
36781echo "$as_me:$LINENO: checking $ac_header usability" >&5
36782echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36783cat >conftest.$ac_ext <<_ACEOF
36784/* confdefs.h. */
36785_ACEOF
36786cat confdefs.h >>conftest.$ac_ext
36787cat >>conftest.$ac_ext <<_ACEOF
36788/* end confdefs.h. */
36789$ac_includes_default
36790#include <$ac_header>
36791_ACEOF
36792rm -f conftest.$ac_objext
36793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36794 (eval $ac_compile) 2>conftest.er1
a848cd7e 36795 ac_status=$?
ac1cb8d3
VS
36796 grep -v '^ *+' conftest.er1 >conftest.err
36797 rm -f conftest.er1
36798 cat conftest.err >&5
a848cd7e
SC
36799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36800 (exit $ac_status); } &&
da4486fb 36801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36803 (eval $ac_try) 2>&5
36804 ac_status=$?
36805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806 (exit $ac_status); }; } &&
36807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36809 (eval $ac_try) 2>&5
36810 ac_status=$?
36811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812 (exit $ac_status); }; }; then
36813 ac_header_compiler=yes
36814else
36815 echo "$as_me: failed program was:" >&5
36816sed 's/^/| /' conftest.$ac_ext >&5
36817
36818ac_header_compiler=no
36819fi
ac1cb8d3 36820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36821echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36822echo "${ECHO_T}$ac_header_compiler" >&6
36823
36824# Is the header present?
36825echo "$as_me:$LINENO: checking $ac_header presence" >&5
36826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36827cat >conftest.$ac_ext <<_ACEOF
36828/* confdefs.h. */
36829_ACEOF
36830cat confdefs.h >>conftest.$ac_ext
36831cat >>conftest.$ac_ext <<_ACEOF
36832/* end confdefs.h. */
36833#include <$ac_header>
36834_ACEOF
36835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36837 ac_status=$?
36838 grep -v '^ *+' conftest.er1 >conftest.err
36839 rm -f conftest.er1
36840 cat conftest.err >&5
36841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842 (exit $ac_status); } >/dev/null; then
36843 if test -s conftest.err; then
36844 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36846 else
36847 ac_cpp_err=
36848 fi
36849else
36850 ac_cpp_err=yes
36851fi
36852if test -z "$ac_cpp_err"; then
36853 ac_header_preproc=yes
36854else
36855 echo "$as_me: failed program was:" >&5
36856sed 's/^/| /' conftest.$ac_ext >&5
36857
36858 ac_header_preproc=no
36859fi
36860rm -f conftest.err conftest.$ac_ext
36861echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36862echo "${ECHO_T}$ac_header_preproc" >&6
36863
36864# So? What about this header?
ac1cb8d3
VS
36865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36866 yes:no: )
a848cd7e
SC
36867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36868echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36870echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36871 ac_header_preproc=yes
a848cd7e 36872 ;;
ac1cb8d3 36873 no:yes:* )
a848cd7e
SC
36874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36875echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36877echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36879echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36881echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36885echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36886 (
36887 cat <<\_ASBOX
ac1cb8d3
VS
36888## ----------------------------------------- ##
36889## Report this to wx-dev@lists.wxwidgets.org ##
36890## ----------------------------------------- ##
a848cd7e
SC
36891_ASBOX
36892 ) |
36893 sed "s/^/$as_me: WARNING: /" >&2
36894 ;;
36895esac
36896echo "$as_me:$LINENO: checking for $ac_header" >&5
36897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36898if eval "test \"\${$as_ac_Header+set}\" = set"; then
36899 echo $ECHO_N "(cached) $ECHO_C" >&6
36900else
ac1cb8d3 36901 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36902fi
36903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36905
36906fi
36907if test `eval echo '${'$as_ac_Header'}'` = yes; then
36908 cat >>confdefs.h <<_ACEOF
36909#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36910_ACEOF
36911
36912fi
36913
36914done
36915
36916 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36917 wxUSE_JOYSTICK=no
36918 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36919echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36920 fi
36921 fi
36922 fi
36923
36924 if test "$wxUSE_JOYSTICK" = "yes"; then
36925 cat >>confdefs.h <<\_ACEOF
36926#define wxUSE_JOYSTICK 1
36927_ACEOF
36928
36929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36930 fi
36931fi
36932
36933
36934
36935if test "$wxUSE_FONTMAP" = "yes" ; then
36936 cat >>confdefs.h <<\_ACEOF
36937#define wxUSE_FONTMAP 1
36938_ACEOF
36939
36940fi
36941
36942if test "$wxUSE_UNICODE" = "yes" ; then
36943 cat >>confdefs.h <<\_ACEOF
36944#define wxUSE_UNICODE 1
36945_ACEOF
36946
36947
36948 if test "$USE_WIN32" != 1; then
36949 wxUSE_UNICODE_MSLU=no
36950 fi
36951
36952 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36953 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36954echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36955if test "${ac_cv_lib_unicows_main+set}" = set; then
36956 echo $ECHO_N "(cached) $ECHO_C" >&6
36957else
36958 ac_check_lib_save_LIBS=$LIBS
36959LIBS="-lunicows $LIBS"
36960cat >conftest.$ac_ext <<_ACEOF
36961/* confdefs.h. */
36962_ACEOF
36963cat confdefs.h >>conftest.$ac_ext
36964cat >>conftest.$ac_ext <<_ACEOF
36965/* end confdefs.h. */
36966
36967
36968int
36969main ()
36970{
36971main ();
36972 ;
36973 return 0;
36974}
36975_ACEOF
36976rm -f conftest.$ac_objext conftest$ac_exeext
36977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36978 (eval $ac_link) 2>conftest.er1
a848cd7e 36979 ac_status=$?
ac1cb8d3
VS
36980 grep -v '^ *+' conftest.er1 >conftest.err
36981 rm -f conftest.er1
36982 cat conftest.err >&5
a848cd7e
SC
36983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36984 (exit $ac_status); } &&
da4486fb 36985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36987 (eval $ac_try) 2>&5
36988 ac_status=$?
36989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990 (exit $ac_status); }; } &&
36991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36993 (eval $ac_try) 2>&5
36994 ac_status=$?
36995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996 (exit $ac_status); }; }; then
36997 ac_cv_lib_unicows_main=yes
36998else
36999 echo "$as_me: failed program was:" >&5
37000sed 's/^/| /' conftest.$ac_ext >&5
37001
37002ac_cv_lib_unicows_main=no
37003fi
ac1cb8d3
VS
37004rm -f conftest.err conftest.$ac_objext \
37005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37006LIBS=$ac_check_lib_save_LIBS
37007fi
37008echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37009echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37010if test $ac_cv_lib_unicows_main = yes; then
37011
37012 cat >>confdefs.h <<\_ACEOF
37013#define wxUSE_UNICODE_MSLU 1
37014_ACEOF
37015
37016
37017else
37018
37019 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37020 Applications will only run on Windows NT/2000/XP!" >&5
37021echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37022 Applications will only run on Windows NT/2000/XP!" >&2;}
37023 wxUSE_UNICODE_MSLU=no
37024
37025fi
37026
37027 fi
37028fi
37029
37030if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37031 cat >>confdefs.h <<\_ACEOF
37032#define wxUSE_EXPERIMENTAL_PRINTF 1
37033_ACEOF
37034
37035fi
37036
37037
37038if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37039 cat >>confdefs.h <<\_ACEOF
37040#define wxUSE_POSTSCRIPT 1
37041_ACEOF
37042
37043fi
37044
37045cat >>confdefs.h <<\_ACEOF
37046#define wxUSE_AFM_FOR_POSTSCRIPT 1
37047_ACEOF
37048
37049
37050cat >>confdefs.h <<\_ACEOF
37051#define wxUSE_NORMALIZED_PS_FONTS 1
37052_ACEOF
37053
37054
37055
37056if test "$wxUSE_CONSTRAINTS" = "yes"; then
37057 cat >>confdefs.h <<\_ACEOF
37058#define wxUSE_CONSTRAINTS 1
37059_ACEOF
37060
37061 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37062fi
37063
8a7b1113
VZ
37064if test "$wxUSE_MDI" = "yes"; then
37065 cat >>confdefs.h <<\_ACEOF
37066#define wxUSE_MDI 1
37067_ACEOF
37068
37069
37070 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37071 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37072#define wxUSE_MDI_ARCHITECTURE 1
37073_ACEOF
37074
8a7b1113
VZ
37075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37076 fi
a848cd7e
SC
37077fi
37078
37079if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37080 cat >>confdefs.h <<\_ACEOF
37081#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37082_ACEOF
37083
37084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37085 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37087 fi
37088fi
37089
37090if test "$wxUSE_HELP" = "yes"; then
37091 cat >>confdefs.h <<\_ACEOF
37092#define wxUSE_HELP 1
37093_ACEOF
37094
37095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37096
37097 if test "$wxUSE_MSW" = 1; then
37098 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37099 cat >>confdefs.h <<\_ACEOF
37100#define wxUSE_MS_HTML_HELP 1
37101_ACEOF
37102
37103 fi
37104 fi
37105
37106 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37107 if test "$wxUSE_HTML" = "yes"; then
37108 cat >>confdefs.h <<\_ACEOF
37109#define wxUSE_WXHTML_HELP 1
37110_ACEOF
37111
37112 else
37113 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37114echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37115 wxUSE_WXHTML_HELP=no
37116 fi
37117 fi
37118fi
37119
37120if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37121 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37122 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37123echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37124 else
37125 cat >>confdefs.h <<\_ACEOF
37126#define wxUSE_PRINTING_ARCHITECTURE 1
37127_ACEOF
37128
37129 fi
37130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37131fi
37132
37133if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37134 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37135echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37136 { (exit 1); exit 1; }; }
37137fi
37138
37139
37140if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37141 -o "$wxUSE_CLIPBOARD" = "yes" \
37142 -o "$wxUSE_OLE" = "yes" \
37143 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37144
37145for ac_header in ole2.h
37146do
37147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37148if eval "test \"\${$as_ac_Header+set}\" = set"; then
37149 echo "$as_me:$LINENO: checking for $ac_header" >&5
37150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37151if eval "test \"\${$as_ac_Header+set}\" = set"; then
37152 echo $ECHO_N "(cached) $ECHO_C" >&6
37153fi
37154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37155echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37156else
37157 # Is the header compilable?
37158echo "$as_me:$LINENO: checking $ac_header usability" >&5
37159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37160cat >conftest.$ac_ext <<_ACEOF
37161/* confdefs.h. */
37162_ACEOF
37163cat confdefs.h >>conftest.$ac_ext
37164cat >>conftest.$ac_ext <<_ACEOF
37165/* end confdefs.h. */
37166$ac_includes_default
37167#include <$ac_header>
37168_ACEOF
37169rm -f conftest.$ac_objext
37170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37171 (eval $ac_compile) 2>conftest.er1
a848cd7e 37172 ac_status=$?
ac1cb8d3
VS
37173 grep -v '^ *+' conftest.er1 >conftest.err
37174 rm -f conftest.er1
37175 cat conftest.err >&5
a848cd7e
SC
37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); } &&
da4486fb 37178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37180 (eval $ac_try) 2>&5
37181 ac_status=$?
37182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183 (exit $ac_status); }; } &&
37184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37186 (eval $ac_try) 2>&5
37187 ac_status=$?
37188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37189 (exit $ac_status); }; }; then
37190 ac_header_compiler=yes
37191else
37192 echo "$as_me: failed program was:" >&5
37193sed 's/^/| /' conftest.$ac_ext >&5
37194
37195ac_header_compiler=no
37196fi
ac1cb8d3 37197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37199echo "${ECHO_T}$ac_header_compiler" >&6
37200
37201# Is the header present?
37202echo "$as_me:$LINENO: checking $ac_header presence" >&5
37203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37204cat >conftest.$ac_ext <<_ACEOF
37205/* confdefs.h. */
37206_ACEOF
37207cat confdefs.h >>conftest.$ac_ext
37208cat >>conftest.$ac_ext <<_ACEOF
37209/* end confdefs.h. */
37210#include <$ac_header>
37211_ACEOF
37212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37214 ac_status=$?
37215 grep -v '^ *+' conftest.er1 >conftest.err
37216 rm -f conftest.er1
37217 cat conftest.err >&5
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); } >/dev/null; then
37220 if test -s conftest.err; then
37221 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37223 else
37224 ac_cpp_err=
37225 fi
37226else
37227 ac_cpp_err=yes
37228fi
37229if test -z "$ac_cpp_err"; then
37230 ac_header_preproc=yes
37231else
37232 echo "$as_me: failed program was:" >&5
37233sed 's/^/| /' conftest.$ac_ext >&5
37234
37235 ac_header_preproc=no
37236fi
37237rm -f conftest.err conftest.$ac_ext
37238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37239echo "${ECHO_T}$ac_header_preproc" >&6
37240
37241# So? What about this header?
ac1cb8d3
VS
37242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37243 yes:no: )
a848cd7e
SC
37244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37248 ac_header_preproc=yes
a848cd7e 37249 ;;
ac1cb8d3 37250 no:yes:* )
a848cd7e
SC
37251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37263 (
37264 cat <<\_ASBOX
ac1cb8d3
VS
37265## ----------------------------------------- ##
37266## Report this to wx-dev@lists.wxwidgets.org ##
37267## ----------------------------------------- ##
a848cd7e
SC
37268_ASBOX
37269 ) |
37270 sed "s/^/$as_me: WARNING: /" >&2
37271 ;;
37272esac
37273echo "$as_me:$LINENO: checking for $ac_header" >&5
37274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37275if eval "test \"\${$as_ac_Header+set}\" = set"; then
37276 echo $ECHO_N "(cached) $ECHO_C" >&6
37277else
ac1cb8d3 37278 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37279fi
37280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37282
37283fi
37284if test `eval echo '${'$as_ac_Header'}'` = yes; then
37285 cat >>confdefs.h <<_ACEOF
37286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37287_ACEOF
37288
37289fi
37290
37291done
37292
37293
37294 if test "$ac_cv_header_ole2_h" = "yes" ; then
37295 if test "$GCC" = yes ; then
37296
37297
37298 ac_ext=cc
37299ac_cpp='$CXXCPP $CPPFLAGS'
37300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37303
37304
37305 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37306echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37307 cat >conftest.$ac_ext <<_ACEOF
37308/* confdefs.h. */
37309_ACEOF
37310cat confdefs.h >>conftest.$ac_ext
37311cat >>conftest.$ac_ext <<_ACEOF
37312/* end confdefs.h. */
37313#include <windows.h>
37314 #include <ole2.h>
37315int
37316main ()
37317{
37318
37319 ;
37320 return 0;
37321}
37322_ACEOF
37323rm -f conftest.$ac_objext
37324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37325 (eval $ac_compile) 2>conftest.er1
a848cd7e 37326 ac_status=$?
ac1cb8d3
VS
37327 grep -v '^ *+' conftest.er1 >conftest.err
37328 rm -f conftest.er1
37329 cat conftest.err >&5
a848cd7e
SC
37330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331 (exit $ac_status); } &&
da4486fb 37332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37334 (eval $ac_try) 2>&5
37335 ac_status=$?
37336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37337 (exit $ac_status); }; } &&
37338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37340 (eval $ac_try) 2>&5
37341 ac_status=$?
37342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343 (exit $ac_status); }; }; then
37344 echo "$as_me:$LINENO: result: no" >&5
37345echo "${ECHO_T}no" >&6
37346else
37347 echo "$as_me: failed program was:" >&5
37348sed 's/^/| /' conftest.$ac_ext >&5
37349
37350echo "$as_me:$LINENO: result: yes" >&5
37351echo "${ECHO_T}yes" >&6
37352 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37353fi
ac1cb8d3 37354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37355 ac_ext=c
37356ac_cpp='$CPP $CPPFLAGS'
37357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37359ac_compiler_gnu=$ac_cv_c_compiler_gnu
37360
a848cd7e
SC
37361 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37362 if test "$wxUSE_OLE" = "yes" ; then
37363 cat >>confdefs.h <<\_ACEOF
37364#define wxUSE_OLE 1
37365_ACEOF
37366
37367 fi
37368 fi
37369
37370 if test "$wxUSE_DATAOBJ" = "yes" ; then
37371 cat >>confdefs.h <<\_ACEOF
37372#define wxUSE_DATAOBJ 1
37373_ACEOF
37374
37375 fi
37376 else
37377 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37378echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37379
37380 wxUSE_CLIPBOARD=no
37381 wxUSE_DRAG_AND_DROP=no
37382 wxUSE_DATAOBJ=no
37383 wxUSE_OLE=no
37384 fi
37385
37386 if test "$wxUSE_METAFILE" = "yes"; then
37387 cat >>confdefs.h <<\_ACEOF
37388#define wxUSE_METAFILE 1
37389_ACEOF
37390
37391
37392 cat >>confdefs.h <<\_ACEOF
37393#define wxUSE_ENH_METAFILE 1
37394_ACEOF
37395
37396 fi
37397fi
37398
37399if test "$wxUSE_IPC" = "yes"; then
37400 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37401 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37402echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37403 fi
37404
37405 cat >>confdefs.h <<\_ACEOF
37406#define wxUSE_IPC 1
37407_ACEOF
37408
37409fi
37410
37411if test "$wxUSE_CLIPBOARD" = "yes"; then
37412 if test "$wxUSE_MGL" = 1; then
37413 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37414echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37415 wxUSE_CLIPBOARD=no
37416 fi
37417
37418 if test "$wxUSE_CLIPBOARD" = "yes"; then
37419 cat >>confdefs.h <<\_ACEOF
37420#define wxUSE_CLIPBOARD 1
37421_ACEOF
37422
37423
37424 cat >>confdefs.h <<\_ACEOF
37425#define wxUSE_DATAOBJ 1
37426_ACEOF
37427
37428 fi
37429fi
37430
37431if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37432 if test "$wxUSE_GTK" = 1; then
37433 if test "$WXGTK12" != 1; then
37434 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37435echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37436 wxUSE_DRAG_AND_DROP=no
37437 fi
37438 fi
37439
37440 if test "$wxUSE_MOTIF" = 1; then
37441 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37442echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37443 wxUSE_DRAG_AND_DROP=no
37444 fi
37445
37446 if test "$wxUSE_X11" = 1; then
37447 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37448echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37449 wxUSE_DRAG_AND_DROP=no
37450 fi
37451
37452 if test "$wxUSE_MGL" = 1; then
37453 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37454echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37455 wxUSE_DRAG_AND_DROP=no
37456 fi
37457
37458 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37459 cat >>confdefs.h <<\_ACEOF
37460#define wxUSE_DRAG_AND_DROP 1
37461_ACEOF
37462
37463 fi
37464
37465fi
37466
37467if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37469fi
37470
37471if test "$wxUSE_SPLINES" = "yes" ; then
37472 cat >>confdefs.h <<\_ACEOF
37473#define wxUSE_SPLINES 1
37474_ACEOF
37475
37476fi
37477
37478
37479USES_CONTROLS=0
37480if test "$wxUSE_CONTROLS" = "yes"; then
37481 USES_CONTROLS=1
37482fi
37483
37484if test "$wxUSE_ACCEL" = "yes"; then
37485 cat >>confdefs.h <<\_ACEOF
37486#define wxUSE_ACCEL 1
37487_ACEOF
37488
37489 USES_CONTROLS=1
37490fi
37491
37492if test "$wxUSE_BUTTON" = "yes"; then
37493 cat >>confdefs.h <<\_ACEOF
37494#define wxUSE_BUTTON 1
37495_ACEOF
37496
37497 USES_CONTROLS=1
37498fi
37499
37500if test "$wxUSE_BMPBUTTON" = "yes"; then
37501 cat >>confdefs.h <<\_ACEOF
37502#define wxUSE_BMPBUTTON 1
37503_ACEOF
37504
37505 USES_CONTROLS=1
37506fi
37507
37508if test "$wxUSE_CALCTRL" = "yes"; then
37509 cat >>confdefs.h <<\_ACEOF
37510#define wxUSE_CALENDARCTRL 1
37511_ACEOF
37512
37513 USES_CONTROLS=1
37514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37515fi
37516
37517if test "$wxUSE_CARET" = "yes"; then
37518 cat >>confdefs.h <<\_ACEOF
37519#define wxUSE_CARET 1
37520_ACEOF
37521
37522 USES_CONTROLS=1
37523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37524fi
37525
37526if test "$wxUSE_COMBOBOX" = "yes"; then
37527 cat >>confdefs.h <<\_ACEOF
37528#define wxUSE_COMBOBOX 1
37529_ACEOF
37530
37531 USES_CONTROLS=1
37532fi
37533
37534if test "$wxUSE_CHOICE" = "yes"; then
37535 cat >>confdefs.h <<\_ACEOF
37536#define wxUSE_CHOICE 1
37537_ACEOF
37538
37539 USES_CONTROLS=1
37540fi
37541
92bbdbcd
WS
37542if test "$wxUSE_CHOICEBOOK" = "yes"; then
37543 cat >>confdefs.h <<\_ACEOF
37544#define wxUSE_CHOICEBOOK 1
37545_ACEOF
37546
37547 USES_CONTROLS=1
37548fi
37549
a848cd7e
SC
37550if test "$wxUSE_CHECKBOX" = "yes"; then
37551 cat >>confdefs.h <<\_ACEOF
37552#define wxUSE_CHECKBOX 1
37553_ACEOF
37554
37555 USES_CONTROLS=1
37556fi
37557
37558if test "$wxUSE_CHECKLST" = "yes"; then
37559 cat >>confdefs.h <<\_ACEOF
37560#define wxUSE_CHECKLISTBOX 1
37561_ACEOF
37562
37563 USES_CONTROLS=1
37564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37565fi
37566
da98e9be
VZ
37567if test "$wxUSE_DATEPICKCTRL" = "yes"; then
37568 cat >>confdefs.h <<\_ACEOF
37569#define wxUSE_DATEPICKCTRL 1
37570_ACEOF
37571
37572 USES_CONTROLS=1
37573fi
37574
a848cd7e
SC
37575if test "$wxUSE_DISPLAY" = "yes"; then
37576 cat >>confdefs.h <<\_ACEOF
37577#define wxUSE_DISPLAY 1
37578_ACEOF
37579
37580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37581fi
37582
37583if test "$wxUSE_GAUGE" = "yes"; then
37584 cat >>confdefs.h <<\_ACEOF
37585#define wxUSE_GAUGE 1
37586_ACEOF
37587
37588 USES_CONTROLS=1
37589fi
37590
37591if test "$wxUSE_GRID" = "yes"; then
37592 cat >>confdefs.h <<\_ACEOF
37593#define wxUSE_GRID 1
37594_ACEOF
37595
37596 USES_CONTROLS=1
37597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37598fi
37599
37600if test "$wxUSE_IMAGLIST" = "yes"; then
37601 cat >>confdefs.h <<\_ACEOF
37602#define wxUSE_IMAGLIST 1
37603_ACEOF
37604
37605fi
37606
37607if test "$wxUSE_LISTBOOK" = "yes"; then
37608 cat >>confdefs.h <<\_ACEOF
37609#define wxUSE_LISTBOOK 1
37610_ACEOF
37611
37612 USES_CONTROLS=1
37613fi
37614
37615if test "$wxUSE_LISTBOX" = "yes"; then
37616 cat >>confdefs.h <<\_ACEOF
37617#define wxUSE_LISTBOX 1
37618_ACEOF
37619
37620 USES_CONTROLS=1
37621fi
37622
37623if test "$wxUSE_LISTCTRL" = "yes"; then
37624 if test "$wxUSE_IMAGLIST" = "yes"; then
37625 cat >>confdefs.h <<\_ACEOF
37626#define wxUSE_LISTCTRL 1
37627_ACEOF
37628
37629 USES_CONTROLS=1
37630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37631 else
37632 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37633echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37634 fi
37635fi
37636
37637if test "$wxUSE_NOTEBOOK" = "yes"; then
37638 cat >>confdefs.h <<\_ACEOF
37639#define wxUSE_NOTEBOOK 1
37640_ACEOF
37641
37642 USES_CONTROLS=1
37643 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37644fi
37645
37646
37647if test "$wxUSE_RADIOBOX" = "yes"; then
37648 cat >>confdefs.h <<\_ACEOF
37649#define wxUSE_RADIOBOX 1
37650_ACEOF
37651
37652 USES_CONTROLS=1
37653fi
37654
37655if test "$wxUSE_RADIOBTN" = "yes"; then
37656 cat >>confdefs.h <<\_ACEOF
37657#define wxUSE_RADIOBTN 1
37658_ACEOF
37659
37660 USES_CONTROLS=1
37661fi
37662
37663if test "$wxUSE_SASH" = "yes"; then
37664 cat >>confdefs.h <<\_ACEOF
37665#define wxUSE_SASH 1
37666_ACEOF
37667
37668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37669fi
37670
37671if test "$wxUSE_SCROLLBAR" = "yes"; then
37672 cat >>confdefs.h <<\_ACEOF
37673#define wxUSE_SCROLLBAR 1
37674_ACEOF
37675
37676 USES_CONTROLS=1
37677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37678fi
37679
37680if test "$wxUSE_SLIDER" = "yes"; then
37681 cat >>confdefs.h <<\_ACEOF
37682#define wxUSE_SLIDER 1
37683_ACEOF
37684
37685 USES_CONTROLS=1
37686fi
37687
37688if test "$wxUSE_SPINBTN" = "yes"; then
37689 cat >>confdefs.h <<\_ACEOF
37690#define wxUSE_SPINBTN 1
37691_ACEOF
37692
37693 USES_CONTROLS=1
37694fi
37695
37696if test "$wxUSE_SPINCTRL" = "yes"; then
37697 cat >>confdefs.h <<\_ACEOF
37698#define wxUSE_SPINCTRL 1
37699_ACEOF
37700
37701 USES_CONTROLS=1
37702fi
37703
37704if test "$wxUSE_SPLITTER" = "yes"; then
37705 cat >>confdefs.h <<\_ACEOF
37706#define wxUSE_SPLITTER 1
37707_ACEOF
37708
37709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37710fi
37711
37712if test "$wxUSE_STATBMP" = "yes"; then
37713 cat >>confdefs.h <<\_ACEOF
37714#define wxUSE_STATBMP 1
37715_ACEOF
37716
37717 USES_CONTROLS=1
37718fi
37719
37720if test "$wxUSE_STATBOX" = "yes"; then
37721 cat >>confdefs.h <<\_ACEOF
37722#define wxUSE_STATBOX 1
37723_ACEOF
37724
37725 USES_CONTROLS=1
37726fi
37727
37728if test "$wxUSE_STATTEXT" = "yes"; then
37729 cat >>confdefs.h <<\_ACEOF
37730#define wxUSE_STATTEXT 1
37731_ACEOF
37732
37733 USES_CONTROLS=1
37734fi
37735
37736if test "$wxUSE_STATLINE" = "yes"; then
37737 cat >>confdefs.h <<\_ACEOF
37738#define wxUSE_STATLINE 1
37739_ACEOF
37740
37741 USES_CONTROLS=1
37742fi
37743
37744if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
37745 cat >>confdefs.h <<\_ACEOF
37746#define wxUSE_NATIVE_STATUSBAR 1
37747_ACEOF
37748
a848cd7e
SC
37749 cat >>confdefs.h <<\_ACEOF
37750#define wxUSE_STATUSBAR 1
37751_ACEOF
37752
37753 USES_CONTROLS=1
37754
37755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37756fi
37757
37758if test "$wxUSE_TABDIALOG" = "yes"; then
37759 cat >>confdefs.h <<\_ACEOF
37760#define wxUSE_TAB_DIALOG 1
37761_ACEOF
37762
37763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37764fi
37765
37766if test "$wxUSE_TEXTCTRL" = "yes"; then
37767 cat >>confdefs.h <<\_ACEOF
37768#define wxUSE_TEXTCTRL 1
37769_ACEOF
37770
37771 USES_CONTROLS=1
37772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37773fi
37774
37775if test "$wxUSE_TOGGLEBTN" = "yes"; then
37776 if test "$wxUSE_COCOA" = 1 ; then
37777 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37778echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37779 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37780 else
37781 if test "$wxUSE_PM" = 1; then
37782 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37783echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37784 wxUSE_TOGGLEBTN=no
37785 fi
a848cd7e
SC
37786 fi
37787 if test "$wxUSE_UNIVERSAL" = "yes"; then
37788 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37789echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37790 wxUSE_TOGGLEBTN=no
37791 fi
37792
37793 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37794 cat >>confdefs.h <<\_ACEOF
37795#define wxUSE_TOGGLEBTN 1
37796_ACEOF
37797
37798 USES_CONTROLS=1
37799 fi
37800fi
37801
37802if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37803 cat >>confdefs.h <<\_ACEOF
37804#define wxUSE_TOOLBAR_SIMPLE 1
37805_ACEOF
37806
37807 wxUSE_TOOLBAR="yes"
37808 USES_CONTROLS=1
37809fi
37810
37811if test "$wxUSE_TOOLBAR" = "yes"; then
37812 cat >>confdefs.h <<\_ACEOF
37813#define wxUSE_TOOLBAR 1
37814_ACEOF
37815
37816 USES_CONTROLS=1
37817
37818 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37819 wxUSE_TOOLBAR_NATIVE="yes"
37820 fi
37821
37822 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37823 cat >>confdefs.h <<\_ACEOF
37824#define wxUSE_TOOLBAR_NATIVE 1
37825_ACEOF
37826
37827 USES_CONTROLS=1
37828 fi
37829
37830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37831fi
37832
37833if test "$wxUSE_TOOLTIPS" = "yes"; then
37834 if test "$wxUSE_MOTIF" = 1; then
37835 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37836echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37837 else
37838 if test "$wxUSE_UNIVERSAL" = "yes"; then
37839 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37840echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37841 else
37842 cat >>confdefs.h <<\_ACEOF
37843#define wxUSE_TOOLTIPS 1
37844_ACEOF
37845
37846 fi
37847 fi
37848fi
37849
37850if test "$wxUSE_TREECTRL" = "yes"; then
37851 if test "$wxUSE_IMAGLIST" = "yes"; then
37852 cat >>confdefs.h <<\_ACEOF
37853#define wxUSE_TREECTRL 1
37854_ACEOF
37855
37856 USES_CONTROLS=1
37857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37858 else
37859 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37860echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37861 fi
37862fi
37863
37864if test "$wxUSE_POPUPWIN" = "yes"; then
37865 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37866 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37867echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37868 else
37869 if test "$wxUSE_PM" = 1; then
37870 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37871echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37872 else
37873 cat >>confdefs.h <<\_ACEOF
37874#define wxUSE_POPUPWIN 1
37875_ACEOF
37876
37877
37878 USES_CONTROLS=1
37879 fi
37880 fi
37881fi
37882
37883if test "$wxUSE_TIPWINDOW" = "yes"; then
37884 if test "$wxUSE_PM" = 1; then
37885 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37886echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37887 else
37888 cat >>confdefs.h <<\_ACEOF
37889#define wxUSE_TIPWINDOW 1
37890_ACEOF
37891
37892 fi
37893fi
37894
37895if test "$USES_CONTROLS" = 1; then
37896 cat >>confdefs.h <<\_ACEOF
37897#define wxUSE_CONTROLS 1
37898_ACEOF
37899
37900fi
37901
37902
37903if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37904 cat >>confdefs.h <<\_ACEOF
37905#define wxUSE_ACCESSIBILITY 1
37906_ACEOF
37907
37908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37909fi
37910
37911if test "$wxUSE_DRAGIMAGE" = "yes"; then
37912 cat >>confdefs.h <<\_ACEOF
37913#define wxUSE_DRAGIMAGE 1
37914_ACEOF
37915
37916 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37917fi
37918
37919if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37920 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37921 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37922echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37923 else
37924 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37925#define wxUSE_EXCEPTIONS 1
37926_ACEOF
37927
07bea8f0
VS
37928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37929 fi
a848cd7e
SC
37930fi
37931
37932USE_HTML=0
37933if test "$wxUSE_HTML" = "yes"; then
37934 cat >>confdefs.h <<\_ACEOF
37935#define wxUSE_HTML 1
37936_ACEOF
37937
37938 USE_HTML=1
37939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37940 if test "$wxUSE_MAC" = 1; then
37941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37942 fi
a848cd7e 37943fi
646b6ec1 37944if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 37945 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
37946 old_CPPFLAGS="$CPPFLAGS"
37947 CPPFLAGS="$CPPFLAGS -x objective-c++"
37948 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37949echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37950if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37951 echo $ECHO_N "(cached) $ECHO_C" >&6
37952else
37953 cat >conftest.$ac_ext <<_ACEOF
37954/* confdefs.h. */
37955_ACEOF
37956cat confdefs.h >>conftest.$ac_ext
37957cat >>conftest.$ac_ext <<_ACEOF
37958/* end confdefs.h. */
37959#include <Carbon/Carbon.h>
37960
37961#include <WebKit/HIWebView.h>
37962_ACEOF
37963rm -f conftest.$ac_objext
37964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37965 (eval $ac_compile) 2>conftest.er1
37966 ac_status=$?
37967 grep -v '^ *+' conftest.er1 >conftest.err
37968 rm -f conftest.er1
37969 cat conftest.err >&5
37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971 (exit $ac_status); } &&
da4486fb 37972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
37973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974 (eval $ac_try) 2>&5
37975 ac_status=$?
37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); }; } &&
37978 { ac_try='test -s conftest.$ac_objext'
37979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37980 (eval $ac_try) 2>&5
37981 ac_status=$?
37982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983 (exit $ac_status); }; }; then
37984 ac_cv_header_WebKit_HIWebView_h=yes
37985else
37986 echo "$as_me: failed program was:" >&5
37987sed 's/^/| /' conftest.$ac_ext >&5
37988
37989ac_cv_header_WebKit_HIWebView_h=no
37990fi
37991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37992fi
37993echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37994echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37995if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37996
37997 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37998#define wxUSE_WEBKIT 1
37999_ACEOF
38000
07bea8f0
VS
38001 WEBKIT_LINK="-framework WebKit"
38002
38003else
38004
38005 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
38006echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
38007 wxUSE_WEBKIT=no
38008
646b6ec1
VS
38009fi
38010
07bea8f0
VS
38011
38012 CPPFLAGS="$old_CPPFLAGS"
38013 elif test "$wxUSE_COCOA" = 1; then
38014 cat >>confdefs.h <<\_ACEOF
38015#define wxUSE_WEBKIT 1
38016_ACEOF
38017
38018 else
38019 wxUSE_WEBKIT=no
38020 fi
38021fi
38022
9a8f0513
VS
38023USE_XRC=0
38024if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
38025 if test "$wxUSE_XML" != "yes"; then
38026 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
38027echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
38028 wxUSE_XRC=no
38029 else
38030 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
38031#define wxUSE_XRC 1
38032_ACEOF
38033
d2ebf0b7
VS
38034 USE_XRC=1
38035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
38036 fi
9a8f0513 38037fi
07bea8f0 38038
a848cd7e
SC
38039if test "$wxUSE_MENUS" = "yes"; then
38040 cat >>confdefs.h <<\_ACEOF
38041#define wxUSE_MENUS 1
38042_ACEOF
38043
38044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38045fi
38046
38047if test "$wxUSE_METAFILE" = "yes"; then
38048 cat >>confdefs.h <<\_ACEOF
38049#define wxUSE_METAFILE 1
38050_ACEOF
38051
38052fi
38053
38054if test "$wxUSE_MIMETYPE" = "yes"; then
38055 cat >>confdefs.h <<\_ACEOF
38056#define wxUSE_MIMETYPE 1
38057_ACEOF
38058
38059fi
38060
38061if test "$wxUSE_MINIFRAME" = "yes"; then
38062 cat >>confdefs.h <<\_ACEOF
38063#define wxUSE_MINIFRAME 1
38064_ACEOF
38065
38066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38067fi
38068
38069if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38070 cat >>confdefs.h <<\_ACEOF
38071#define wxUSE_SYSTEM_OPTIONS 1
38072_ACEOF
38073
38074 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 38075 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
38076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38077 fi
38078fi
38079
38080
38081if test "$wxUSE_VALIDATORS" = "yes"; then
38082 cat >>confdefs.h <<\_ACEOF
38083#define wxUSE_VALIDATORS 1
38084_ACEOF
38085
38086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38087fi
38088
38089if test "$wxUSE_PALETTE" = "yes" ; then
38090 cat >>confdefs.h <<\_ACEOF
38091#define wxUSE_PALETTE 1
38092_ACEOF
38093
38094fi
38095
38096if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38097 LIBS=" -lunicows $LIBS"
38098fi
38099
38100
38101if test "$wxUSE_IMAGE" = "yes" ; then
38102 cat >>confdefs.h <<\_ACEOF
38103#define wxUSE_IMAGE 1
38104_ACEOF
38105
38106
38107 if test "$wxUSE_GIF" = "yes" ; then
38108 cat >>confdefs.h <<\_ACEOF
38109#define wxUSE_GIF 1
38110_ACEOF
38111
38112 fi
38113
38114 if test "$wxUSE_PCX" = "yes" ; then
38115 cat >>confdefs.h <<\_ACEOF
38116#define wxUSE_PCX 1
38117_ACEOF
38118
38119 fi
38120
38121 if test "$wxUSE_IFF" = "yes" ; then
38122 cat >>confdefs.h <<\_ACEOF
38123#define wxUSE_IFF 1
38124_ACEOF
38125
38126 fi
38127
38128 if test "$wxUSE_PNM" = "yes" ; then
38129 cat >>confdefs.h <<\_ACEOF
38130#define wxUSE_PNM 1
38131_ACEOF
38132
38133 fi
38134
38135 if test "$wxUSE_XPM" = "yes" ; then
38136 cat >>confdefs.h <<\_ACEOF
38137#define wxUSE_XPM 1
38138_ACEOF
38139
38140 fi
38141
38142 if test "$wxUSE_ICO_CUR" = "yes" ; then
38143 cat >>confdefs.h <<\_ACEOF
38144#define wxUSE_ICO_CUR 1
38145_ACEOF
38146
38147 fi
38148fi
38149
38150
38151if test "$wxUSE_CHOICEDLG" = "yes"; then
38152 cat >>confdefs.h <<\_ACEOF
38153#define wxUSE_CHOICEDLG 1
38154_ACEOF
38155
38156fi
38157
38158if test "$wxUSE_COLOURDLG" = "yes"; then
38159 cat >>confdefs.h <<\_ACEOF
38160#define wxUSE_COLOURDLG 1
38161_ACEOF
38162
38163fi
38164
38165if test "$wxUSE_FILEDLG" = "yes"; then
38166 cat >>confdefs.h <<\_ACEOF
38167#define wxUSE_FILEDLG 1
38168_ACEOF
38169
38170fi
38171
38172if test "$wxUSE_FINDREPLDLG" = "yes"; then
38173 cat >>confdefs.h <<\_ACEOF
38174#define wxUSE_FINDREPLDLG 1
38175_ACEOF
38176
38177fi
38178
38179if test "$wxUSE_FONTDLG" = "yes"; then
38180 cat >>confdefs.h <<\_ACEOF
38181#define wxUSE_FONTDLG 1
38182_ACEOF
38183
38184fi
38185
38186if test "$wxUSE_DIRDLG" = "yes"; then
38187 if test "$wxUSE_TREECTRL" != "yes"; then
38188 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38189echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38190 else
38191 cat >>confdefs.h <<\_ACEOF
38192#define wxUSE_DIRDLG 1
38193_ACEOF
38194
38195 fi
38196fi
38197
38198if test "$wxUSE_MSGDLG" = "yes"; then
38199 cat >>confdefs.h <<\_ACEOF
38200#define wxUSE_MSGDLG 1
38201_ACEOF
38202
38203fi
38204
38205if test "$wxUSE_NUMBERDLG" = "yes"; then
38206 cat >>confdefs.h <<\_ACEOF
38207#define wxUSE_NUMBERDLG 1
38208_ACEOF
38209
38210fi
38211
38212if test "$wxUSE_PROGRESSDLG" = "yes"; then
38213 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38214 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38215echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38216 else
38217 cat >>confdefs.h <<\_ACEOF
38218#define wxUSE_PROGRESSDLG 1
38219_ACEOF
38220
38221 fi
38222fi
38223
38224if test "$wxUSE_SPLASH" = "yes"; then
38225 cat >>confdefs.h <<\_ACEOF
38226#define wxUSE_SPLASH 1
38227_ACEOF
38228
2057db16 38229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
38230fi
38231
38232if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38233 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38234 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38235echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38236 else
38237 cat >>confdefs.h <<\_ACEOF
38238#define wxUSE_STARTUP_TIPS 1
38239_ACEOF
38240
38241 fi
38242fi
38243
38244if test "$wxUSE_TEXTDLG" = "yes"; then
38245 cat >>confdefs.h <<\_ACEOF
38246#define wxUSE_TEXTDLG 1
38247_ACEOF
38248
38249fi
38250
38251if test "$wxUSE_WIZARDDLG" = "yes"; then
38252 cat >>confdefs.h <<\_ACEOF
38253#define wxUSE_WIZARDDLG 1
38254_ACEOF
38255
38256 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38257fi
38258
38259
38260if test "$cross_compiling" = "yes"; then
38261 OSINFO="\"$host\""
38262else
38263 OSINFO=`uname -s -r -m`
38264 OSINFO="\"$OSINFO\""
38265fi
38266
38267cat >>confdefs.h <<_ACEOF
38268#define WXWIN_OS_DESCRIPTION $OSINFO
38269_ACEOF
38270
38271
38272
38273if test "x$prefix" != "xNONE"; then
38274 wxPREFIX=$prefix
38275else
38276 wxPREFIX=$ac_default_prefix
38277fi
38278
38279cat >>confdefs.h <<_ACEOF
38280#define wxINSTALL_PREFIX "$wxPREFIX"
38281_ACEOF
38282
38283
a848cd7e
SC
38284
38285
38286CORE_BASE_LIBS="net base"
38287CORE_GUI_LIBS="adv core"
38288
38289if test "$wxUSE_XML" = "yes" ; then
38290 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
38291fi
38292if test "$wxUSE_ODBC" != "no" ; then
38293 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
38294 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
38295fi
38296if test "$wxUSE_HTML" = "yes" ; then
38297 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
38298fi
9a8f0513
VS
38299if test "$wxUSE_XRC" = "yes" ; then
38300 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
38301fi
a848cd7e
SC
38302
38303if test "$wxUSE_GUI" != "yes"; then
38304 CORE_GUI_LIBS=""
38305fi
38306
38307
38308
38309
38310
38311
38312
38313
38314if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 38315 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
38316 if test "$USE_DARWIN" = 1; then
38317 LDFLAGS="$LDFLAGS -framework QuickTime"
38318 else
38319 LDFLAGS="$LDFLAGS -lQuickTimeLib"
38320 fi
07bea8f0 38321 fi
5dcf30a0 38322 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
38323 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
38324 else
38325 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 38326 fi
a848cd7e
SC
38327fi
38328if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 38329 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
38330fi
38331
38332
38333LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
38334
38335have_cos=0
38336have_floor=0
38337
38338for ac_func in cos
38339do
38340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38341echo "$as_me:$LINENO: checking for $ac_func" >&5
38342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38343if eval "test \"\${$as_ac_var+set}\" = set"; then
38344 echo $ECHO_N "(cached) $ECHO_C" >&6
38345else
38346 cat >conftest.$ac_ext <<_ACEOF
38347/* confdefs.h. */
38348_ACEOF
38349cat confdefs.h >>conftest.$ac_ext
38350cat >>conftest.$ac_ext <<_ACEOF
38351/* end confdefs.h. */
ac1cb8d3
VS
38352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38354#define $ac_func innocuous_$ac_func
38355
a848cd7e
SC
38356/* System header to define __stub macros and hopefully few prototypes,
38357 which can conflict with char $ac_func (); below.
38358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38359 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38360
a848cd7e
SC
38361#ifdef __STDC__
38362# include <limits.h>
38363#else
38364# include <assert.h>
38365#endif
ac1cb8d3
VS
38366
38367#undef $ac_func
38368
a848cd7e
SC
38369/* Override any gcc2 internal prototype to avoid an error. */
38370#ifdef __cplusplus
38371extern "C"
38372{
38373#endif
38374/* We use char because int might match the return type of a gcc2
38375 builtin and then its argument prototype would still apply. */
38376char $ac_func ();
38377/* The GNU C library defines this for functions which it implements
38378 to always fail with ENOSYS. Some functions are actually named
38379 something starting with __ and the normal name is an alias. */
38380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38381choke me
38382#else
38383char (*f) () = $ac_func;
38384#endif
38385#ifdef __cplusplus
38386}
38387#endif
38388
38389int
38390main ()
38391{
38392return f != $ac_func;
38393 ;
38394 return 0;
38395}
38396_ACEOF
38397rm -f conftest.$ac_objext conftest$ac_exeext
38398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38399 (eval $ac_link) 2>conftest.er1
a848cd7e 38400 ac_status=$?
ac1cb8d3
VS
38401 grep -v '^ *+' conftest.er1 >conftest.err
38402 rm -f conftest.er1
38403 cat conftest.err >&5
a848cd7e
SC
38404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38405 (exit $ac_status); } &&
da4486fb 38406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38408 (eval $ac_try) 2>&5
38409 ac_status=$?
38410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38411 (exit $ac_status); }; } &&
38412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38414 (eval $ac_try) 2>&5
38415 ac_status=$?
38416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38417 (exit $ac_status); }; }; then
38418 eval "$as_ac_var=yes"
38419else
38420 echo "$as_me: failed program was:" >&5
38421sed 's/^/| /' conftest.$ac_ext >&5
38422
38423eval "$as_ac_var=no"
38424fi
ac1cb8d3
VS
38425rm -f conftest.err conftest.$ac_objext \
38426 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38427fi
38428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38429echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38430if test `eval echo '${'$as_ac_var'}'` = yes; then
38431 cat >>confdefs.h <<_ACEOF
38432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38433_ACEOF
38434 have_cos=1
38435fi
38436done
38437
38438
38439for ac_func in floor
38440do
38441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38442echo "$as_me:$LINENO: checking for $ac_func" >&5
38443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38444if eval "test \"\${$as_ac_var+set}\" = set"; then
38445 echo $ECHO_N "(cached) $ECHO_C" >&6
38446else
38447 cat >conftest.$ac_ext <<_ACEOF
38448/* confdefs.h. */
38449_ACEOF
38450cat confdefs.h >>conftest.$ac_ext
38451cat >>conftest.$ac_ext <<_ACEOF
38452/* end confdefs.h. */
ac1cb8d3
VS
38453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38455#define $ac_func innocuous_$ac_func
38456
a848cd7e
SC
38457/* System header to define __stub macros and hopefully few prototypes,
38458 which can conflict with char $ac_func (); below.
38459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38460 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38461
a848cd7e
SC
38462#ifdef __STDC__
38463# include <limits.h>
38464#else
38465# include <assert.h>
38466#endif
ac1cb8d3
VS
38467
38468#undef $ac_func
38469
a848cd7e
SC
38470/* Override any gcc2 internal prototype to avoid an error. */
38471#ifdef __cplusplus
38472extern "C"
38473{
38474#endif
38475/* We use char because int might match the return type of a gcc2
38476 builtin and then its argument prototype would still apply. */
38477char $ac_func ();
38478/* The GNU C library defines this for functions which it implements
38479 to always fail with ENOSYS. Some functions are actually named
38480 something starting with __ and the normal name is an alias. */
38481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38482choke me
38483#else
38484char (*f) () = $ac_func;
38485#endif
38486#ifdef __cplusplus
38487}
38488#endif
38489
38490int
38491main ()
38492{
38493return f != $ac_func;
38494 ;
38495 return 0;
38496}
38497_ACEOF
38498rm -f conftest.$ac_objext conftest$ac_exeext
38499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38500 (eval $ac_link) 2>conftest.er1
a848cd7e 38501 ac_status=$?
ac1cb8d3
VS
38502 grep -v '^ *+' conftest.er1 >conftest.err
38503 rm -f conftest.er1
38504 cat conftest.err >&5
a848cd7e
SC
38505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); } &&
da4486fb 38507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38509 (eval $ac_try) 2>&5
38510 ac_status=$?
38511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512 (exit $ac_status); }; } &&
38513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38515 (eval $ac_try) 2>&5
38516 ac_status=$?
38517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518 (exit $ac_status); }; }; then
38519 eval "$as_ac_var=yes"
38520else
38521 echo "$as_me: failed program was:" >&5
38522sed 's/^/| /' conftest.$ac_ext >&5
38523
38524eval "$as_ac_var=no"
38525fi
ac1cb8d3
VS
38526rm -f conftest.err conftest.$ac_objext \
38527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38528fi
38529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38530echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38531if test `eval echo '${'$as_ac_var'}'` = yes; then
38532 cat >>confdefs.h <<_ACEOF
38533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38534_ACEOF
38535 have_floor=1
38536fi
38537done
38538
38539echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
38540echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
38541if test "$have_cos" = 1 -a "$have_floor" = 1; then
38542 echo "$as_me:$LINENO: result: yes" >&5
38543echo "${ECHO_T}yes" >&6
38544else
38545 echo "$as_me:$LINENO: result: no" >&5
38546echo "${ECHO_T}no" >&6
38547 LIBS="$LIBS -lm"
38548 # use different functions to avoid configure caching
38549 have_sin=0
38550 have_ceil=0
38551
38552for ac_func in sin
38553do
38554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38555echo "$as_me:$LINENO: checking for $ac_func" >&5
38556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38557if eval "test \"\${$as_ac_var+set}\" = set"; then
38558 echo $ECHO_N "(cached) $ECHO_C" >&6
38559else
38560 cat >conftest.$ac_ext <<_ACEOF
38561/* confdefs.h. */
38562_ACEOF
38563cat confdefs.h >>conftest.$ac_ext
38564cat >>conftest.$ac_ext <<_ACEOF
38565/* end confdefs.h. */
ac1cb8d3
VS
38566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38568#define $ac_func innocuous_$ac_func
38569
a848cd7e
SC
38570/* System header to define __stub macros and hopefully few prototypes,
38571 which can conflict with char $ac_func (); below.
38572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38573 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38574
a848cd7e
SC
38575#ifdef __STDC__
38576# include <limits.h>
38577#else
38578# include <assert.h>
38579#endif
ac1cb8d3
VS
38580
38581#undef $ac_func
38582
a848cd7e
SC
38583/* Override any gcc2 internal prototype to avoid an error. */
38584#ifdef __cplusplus
38585extern "C"
38586{
38587#endif
38588/* We use char because int might match the return type of a gcc2
38589 builtin and then its argument prototype would still apply. */
38590char $ac_func ();
38591/* The GNU C library defines this for functions which it implements
38592 to always fail with ENOSYS. Some functions are actually named
38593 something starting with __ and the normal name is an alias. */
38594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38595choke me
38596#else
38597char (*f) () = $ac_func;
38598#endif
38599#ifdef __cplusplus
38600}
38601#endif
38602
38603int
38604main ()
38605{
38606return f != $ac_func;
38607 ;
38608 return 0;
38609}
38610_ACEOF
38611rm -f conftest.$ac_objext conftest$ac_exeext
38612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38613 (eval $ac_link) 2>conftest.er1
a848cd7e 38614 ac_status=$?
ac1cb8d3
VS
38615 grep -v '^ *+' conftest.er1 >conftest.err
38616 rm -f conftest.er1
38617 cat conftest.err >&5
a848cd7e
SC
38618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619 (exit $ac_status); } &&
da4486fb 38620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38622 (eval $ac_try) 2>&5
38623 ac_status=$?
38624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625 (exit $ac_status); }; } &&
38626 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38628 (eval $ac_try) 2>&5
38629 ac_status=$?
38630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631 (exit $ac_status); }; }; then
38632 eval "$as_ac_var=yes"
38633else
38634 echo "$as_me: failed program was:" >&5
38635sed 's/^/| /' conftest.$ac_ext >&5
38636
38637eval "$as_ac_var=no"
38638fi
ac1cb8d3
VS
38639rm -f conftest.err conftest.$ac_objext \
38640 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38641fi
38642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38644if test `eval echo '${'$as_ac_var'}'` = yes; then
38645 cat >>confdefs.h <<_ACEOF
38646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38647_ACEOF
38648 have_sin=1
38649fi
38650done
38651
38652
38653for ac_func in ceil
38654do
38655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38656echo "$as_me:$LINENO: checking for $ac_func" >&5
38657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38658if eval "test \"\${$as_ac_var+set}\" = set"; then
38659 echo $ECHO_N "(cached) $ECHO_C" >&6
38660else
38661 cat >conftest.$ac_ext <<_ACEOF
38662/* confdefs.h. */
38663_ACEOF
38664cat confdefs.h >>conftest.$ac_ext
38665cat >>conftest.$ac_ext <<_ACEOF
38666/* end confdefs.h. */
ac1cb8d3
VS
38667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38669#define $ac_func innocuous_$ac_func
38670
a848cd7e
SC
38671/* System header to define __stub macros and hopefully few prototypes,
38672 which can conflict with char $ac_func (); below.
38673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38675
a848cd7e
SC
38676#ifdef __STDC__
38677# include <limits.h>
38678#else
38679# include <assert.h>
38680#endif
ac1cb8d3
VS
38681
38682#undef $ac_func
38683
a848cd7e
SC
38684/* Override any gcc2 internal prototype to avoid an error. */
38685#ifdef __cplusplus
38686extern "C"
38687{
38688#endif
38689/* We use char because int might match the return type of a gcc2
38690 builtin and then its argument prototype would still apply. */
38691char $ac_func ();
38692/* The GNU C library defines this for functions which it implements
38693 to always fail with ENOSYS. Some functions are actually named
38694 something starting with __ and the normal name is an alias. */
38695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38696choke me
38697#else
38698char (*f) () = $ac_func;
38699#endif
38700#ifdef __cplusplus
38701}
38702#endif
38703
38704int
38705main ()
38706{
38707return f != $ac_func;
38708 ;
38709 return 0;
38710}
38711_ACEOF
38712rm -f conftest.$ac_objext conftest$ac_exeext
38713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38714 (eval $ac_link) 2>conftest.er1
a848cd7e 38715 ac_status=$?
ac1cb8d3
VS
38716 grep -v '^ *+' conftest.er1 >conftest.err
38717 rm -f conftest.er1
38718 cat conftest.err >&5
a848cd7e
SC
38719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720 (exit $ac_status); } &&
da4486fb 38721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38723 (eval $ac_try) 2>&5
38724 ac_status=$?
38725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726 (exit $ac_status); }; } &&
38727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38729 (eval $ac_try) 2>&5
38730 ac_status=$?
38731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732 (exit $ac_status); }; }; then
38733 eval "$as_ac_var=yes"
38734else
38735 echo "$as_me: failed program was:" >&5
38736sed 's/^/| /' conftest.$ac_ext >&5
38737
38738eval "$as_ac_var=no"
38739fi
ac1cb8d3
VS
38740rm -f conftest.err conftest.$ac_objext \
38741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38742fi
38743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38744echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38745if test `eval echo '${'$as_ac_var'}'` = yes; then
38746 cat >>confdefs.h <<_ACEOF
38747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38748_ACEOF
38749 have_ceil=1
38750fi
38751done
38752
38753 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38754echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38755 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38756 echo "$as_me:$LINENO: result: yes" >&5
38757echo "${ECHO_T}yes" >&6
38758 else
38759 echo "$as_me:$LINENO: result: no" >&5
38760echo "${ECHO_T}no" >&6
38761 # not sure we should warn the user, crash, etc.
38762 fi
38763fi
38764
38765if test "$wxUSE_GUI" = "yes"; then
38766
38767
38768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38769 drawing dynamic erase event exec font image \
38770 minimal propsize rotate shaped widgets render"
38771
38772 if test "$wxUSE_MONOLITHIC" != "yes"; then
38773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38774 fi
38775else
38776 SAMPLES_SUBDIRS="console"
38777fi
38778
38779
ceec2216 38780INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
38781-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38782
38783if test "$GXX" = yes ; then
5294a27e
VZ
38784 CWARNINGS="-Wall"
38785 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
38786 fi
38787
38788EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38789
0c3c69fc 38790CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 38791CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 38792CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 38793
95986553
DE
38794if test "x$MWCC" = "xyes"; then
38795
38796 CC="$CC -cwd source -I-"
38797 CXX="$CXX -cwd source -I-"
38798fi
38799
a848cd7e 38800
0c3c69fc 38801LIBS=`echo $LIBS`
a848cd7e
SC
38802EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38803EXTRALIBS_XML="$EXPAT_LINK"
38804EXTRALIBS_HTML="$MSPACK_LINK"
38805EXTRALIBS_ODBC="$ODBC_LINK"
38806if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 38807 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
38808fi
38809if test "$wxUSE_OPENGL" = "yes"; then
38810 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38811fi
38812
38813LDFLAGS="$LDFLAGS $PROFILE"
38814
38815if test "$wxUSE_GTK" = 1; then
38816 WXCONFIG_INCLUDE=
38817else
38818 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38819fi
38820
38821WXCONFIG_EXTRALIBS="$LIBS"
38822
38823if test "$wxUSE_REGEX" = "builtin" ; then
38824 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38825fi
38826if test "$wxUSE_EXPAT" = "builtin" ; then
38827 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38828fi
38829if test "$wxUSE_ODBC" = "builtin" ; then
38830 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38831fi
38832if test "$wxUSE_LIBTIFF" = "builtin" ; then
38833 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38834fi
38835if test "$wxUSE_LIBJPEG" = "builtin" ; then
38836 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38837fi
38838if test "$wxUSE_LIBPNG" = "builtin" ; then
38839 wxconfig_3rdparty="$wxconfig_3rdparty png"
38840fi
38841if test "$wxUSE_ZLIB" = "builtin" ; then
38842 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38843fi
38844if test "$wxUSE_ODBC" = "builtin" ; then
38845 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38846fi
38847
38848for i in $wxconfig_3rdparty ; do
ceec2216 38849 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38850done
38851
38852
38853if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38854 WXUNIV=1
38855else
38856 WXUNIV=0
38857fi
38858
38859
38860
38861
38862
38863
38864
38865
38866
38867if test $wxUSE_MONOLITHIC = "yes" ; then
38868 MONOLITHIC=1
38869else
38870 MONOLITHIC=0
38871fi
38872
38873if test $wxUSE_PLUGINS = "yes" ; then
38874 USE_PLUGINS=1
38875else
38876 USE_PLUGINS=0
38877fi
38878
38879if test $wxUSE_ODBC != "no" ; then
38880 USE_ODBC=1
38881else
38882 USE_ODBC=0
38883fi
38884
38885if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38886 OFFICIAL_BUILD=1
38887else
38888 OFFICIAL_BUILD=0
38889fi
38890
38891
38892
38893
38894
38895
38896
38897
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907
38908
ceec2216 38909
d1c38808 38910
a848cd7e
SC
38911
38912
38913TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38914
38915
38916
38917
38918
38919
38920
38921
4d4ff94c
VZ
38922case "$TOOLKIT" in
38923 GTK)
38924 TOOLKIT_USER="GTK+"
38925 if test "$WXGTK20" = 1; then
38926 TOOLKIT_USER="$TOOLKIT_USER 2"
38927 fi
9a8f0513 38928 ;;
4d4ff94c
VZ
38929
38930 *)
38931 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38932 ;;
4d4ff94c 38933esac
a848cd7e 38934
9a8f0513 38935
1e9e8aba
DE
38936
38937
a848cd7e
SC
38938 if test "x$BAKEFILE_HOST" = "x"; then
38939 BAKEFILE_HOST="${host}"
38940 fi
38941
38942 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38943
38944 if test -n "$ac_tool_prefix"; then
38945 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38946set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38947echo "$as_me:$LINENO: checking for $ac_word" >&5
38948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38949if test "${ac_cv_prog_RANLIB+set}" = set; then
38950 echo $ECHO_N "(cached) $ECHO_C" >&6
38951else
38952 if test -n "$RANLIB"; then
38953 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38954else
38955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38956for as_dir in $PATH
38957do
38958 IFS=$as_save_IFS
38959 test -z "$as_dir" && as_dir=.
38960 for ac_exec_ext in '' $ac_executable_extensions; do
38961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38962 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38964 break 2
38965 fi
38966done
38967done
38968
38969fi
38970fi
38971RANLIB=$ac_cv_prog_RANLIB
38972if test -n "$RANLIB"; then
38973 echo "$as_me:$LINENO: result: $RANLIB" >&5
38974echo "${ECHO_T}$RANLIB" >&6
38975else
38976 echo "$as_me:$LINENO: result: no" >&5
38977echo "${ECHO_T}no" >&6
38978fi
38979
38980fi
38981if test -z "$ac_cv_prog_RANLIB"; then
38982 ac_ct_RANLIB=$RANLIB
38983 # Extract the first word of "ranlib", so it can be a program name with args.
38984set dummy ranlib; ac_word=$2
38985echo "$as_me:$LINENO: checking for $ac_word" >&5
38986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38987if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38988 echo $ECHO_N "(cached) $ECHO_C" >&6
38989else
38990 if test -n "$ac_ct_RANLIB"; then
38991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38992else
38993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38994for as_dir in $PATH
38995do
38996 IFS=$as_save_IFS
38997 test -z "$as_dir" && as_dir=.
38998 for ac_exec_ext in '' $ac_executable_extensions; do
38999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39000 ac_cv_prog_ac_ct_RANLIB="ranlib"
39001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39002 break 2
39003 fi
39004done
39005done
39006
39007 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
39008fi
39009fi
39010ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
39011if test -n "$ac_ct_RANLIB"; then
39012 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
39013echo "${ECHO_T}$ac_ct_RANLIB" >&6
39014else
39015 echo "$as_me:$LINENO: result: no" >&5
39016echo "${ECHO_T}no" >&6
39017fi
39018
39019 RANLIB=$ac_ct_RANLIB
39020else
39021 RANLIB="$ac_cv_prog_RANLIB"
39022fi
39023
39024 # Find a good install program. We prefer a C program (faster),
39025# so one script is as good as another. But avoid the broken or
39026# incompatible versions:
39027# SysV /etc/install, /usr/sbin/install
39028# SunOS /usr/etc/install
39029# IRIX /sbin/install
39030# AIX /bin/install
39031# AmigaOS /C/install, which installs bootblocks on floppy discs
39032# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
39033# AFS /usr/afsws/bin/install, which mishandles nonexistent args
39034# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 39035# OS/2's system install, which has a completely different semantic
a848cd7e
SC
39036# ./install, which can be erroneously created by make from ./install.sh.
39037echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
39038echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
39039if test -z "$INSTALL"; then
39040if test "${ac_cv_path_install+set}" = set; then
39041 echo $ECHO_N "(cached) $ECHO_C" >&6
39042else
39043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39044for as_dir in $PATH
39045do
39046 IFS=$as_save_IFS
39047 test -z "$as_dir" && as_dir=.
39048 # Account for people who put trailing slashes in PATH elements.
39049case $as_dir/ in
39050 ./ | .// | /cC/* | \
39051 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 39052 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
39053 /usr/ucb/* ) ;;
39054 *)
39055 # OSF1 and SCO ODT 3.0 have their own names for install.
39056 # Don't use installbsd from OSF since it installs stuff as root
39057 # by default.
39058 for ac_prog in ginstall scoinst install; do
39059 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
39060 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
39061 if test $ac_prog = install &&
39062 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39063 # AIX install. It has an incompatible calling convention.
39064 :
39065 elif test $ac_prog = install &&
39066 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39067 # program-specific install script used by HP pwplus--don't use.
39068 :
39069 else
39070 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
39071 break 3
39072 fi
39073 fi
a848cd7e
SC
39074 done
39075 done
39076 ;;
39077esac
39078done
39079
39080
39081fi
39082 if test "${ac_cv_path_install+set}" = set; then
39083 INSTALL=$ac_cv_path_install
39084 else
39085 # As a last resort, use the slow shell script. We don't cache a
39086 # path for INSTALL within a source directory, because that will
39087 # break other packages using the cache if that directory is
39088 # removed, or if the path is relative.
39089 INSTALL=$ac_install_sh
39090 fi
39091fi
39092echo "$as_me:$LINENO: result: $INSTALL" >&5
39093echo "${ECHO_T}$INSTALL" >&6
39094
39095# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
39096# It thinks the first close brace ends the variable substitution.
39097test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
39098
39099test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
39100
39101test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39102
39103 echo "$as_me:$LINENO: checking whether ln -s works" >&5
39104echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
39105LN_S=$as_ln_s
39106if test "$LN_S" = "ln -s"; then
39107 echo "$as_me:$LINENO: result: yes" >&5
39108echo "${ECHO_T}yes" >&6
39109else
39110 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
39111echo "${ECHO_T}no, using $LN_S" >&6
39112fi
39113
39114
39115 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39116echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 39117set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
39118if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39119 echo $ECHO_N "(cached) $ECHO_C" >&6
39120else
39121 cat >conftest.make <<\_ACEOF
39122all:
39123 @echo 'ac_maketemp="$(MAKE)"'
39124_ACEOF
39125# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39126eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39127if test -n "$ac_maketemp"; then
39128 eval ac_cv_prog_make_${ac_make}_set=yes
39129else
39130 eval ac_cv_prog_make_${ac_make}_set=no
39131fi
39132rm -f conftest.make
39133fi
39134if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39135 echo "$as_me:$LINENO: result: yes" >&5
39136echo "${ECHO_T}yes" >&6
39137 SET_MAKE=
39138else
39139 echo "$as_me:$LINENO: result: no" >&5
39140echo "${ECHO_T}no" >&6
39141 SET_MAKE="MAKE=${MAKE-make}"
39142fi
39143
39144
39145
39146 if test -n "$ac_tool_prefix"; then
39147 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
39148set dummy ${ac_tool_prefix}ar; ac_word=$2
39149echo "$as_me:$LINENO: checking for $ac_word" >&5
39150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39151if test "${ac_cv_prog_AR+set}" = set; then
39152 echo $ECHO_N "(cached) $ECHO_C" >&6
39153else
39154 if test -n "$AR"; then
39155 ac_cv_prog_AR="$AR" # Let the user override the test.
39156else
39157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39158for as_dir in $PATH
39159do
39160 IFS=$as_save_IFS
39161 test -z "$as_dir" && as_dir=.
39162 for ac_exec_ext in '' $ac_executable_extensions; do
39163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39164 ac_cv_prog_AR="${ac_tool_prefix}ar"
39165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39166 break 2
39167 fi
39168done
39169done
39170
39171fi
39172fi
39173AR=$ac_cv_prog_AR
39174if test -n "$AR"; then
39175 echo "$as_me:$LINENO: result: $AR" >&5
39176echo "${ECHO_T}$AR" >&6
39177else
39178 echo "$as_me:$LINENO: result: no" >&5
39179echo "${ECHO_T}no" >&6
39180fi
39181
39182fi
39183if test -z "$ac_cv_prog_AR"; then
39184 ac_ct_AR=$AR
39185 # Extract the first word of "ar", so it can be a program name with args.
39186set dummy ar; ac_word=$2
39187echo "$as_me:$LINENO: checking for $ac_word" >&5
39188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39189if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
39190 echo $ECHO_N "(cached) $ECHO_C" >&6
39191else
39192 if test -n "$ac_ct_AR"; then
39193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
39194else
39195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39196for as_dir in $PATH
39197do
39198 IFS=$as_save_IFS
39199 test -z "$as_dir" && as_dir=.
39200 for ac_exec_ext in '' $ac_executable_extensions; do
39201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39202 ac_cv_prog_ac_ct_AR="ar"
39203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39204 break 2
39205 fi
39206done
39207done
39208
39209 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39210fi
39211fi
39212ac_ct_AR=$ac_cv_prog_ac_ct_AR
39213if test -n "$ac_ct_AR"; then
39214 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39215echo "${ECHO_T}$ac_ct_AR" >&6
39216else
39217 echo "$as_me:$LINENO: result: no" >&5
39218echo "${ECHO_T}no" >&6
39219fi
39220
39221 AR=$ac_ct_AR
39222else
39223 AR="$ac_cv_prog_AR"
39224fi
39225
39226 if test -n "$ac_tool_prefix"; then
39227 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39228set dummy ${ac_tool_prefix}strip; ac_word=$2
39229echo "$as_me:$LINENO: checking for $ac_word" >&5
39230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39231if test "${ac_cv_prog_STRIP+set}" = set; then
39232 echo $ECHO_N "(cached) $ECHO_C" >&6
39233else
39234 if test -n "$STRIP"; then
39235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39236else
39237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39238for as_dir in $PATH
39239do
39240 IFS=$as_save_IFS
39241 test -z "$as_dir" && as_dir=.
39242 for ac_exec_ext in '' $ac_executable_extensions; do
39243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39244 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39246 break 2
39247 fi
39248done
39249done
39250
39251fi
39252fi
39253STRIP=$ac_cv_prog_STRIP
39254if test -n "$STRIP"; then
39255 echo "$as_me:$LINENO: result: $STRIP" >&5
39256echo "${ECHO_T}$STRIP" >&6
39257else
39258 echo "$as_me:$LINENO: result: no" >&5
39259echo "${ECHO_T}no" >&6
39260fi
39261
39262fi
39263if test -z "$ac_cv_prog_STRIP"; then
39264 ac_ct_STRIP=$STRIP
39265 # Extract the first word of "strip", so it can be a program name with args.
39266set dummy strip; ac_word=$2
39267echo "$as_me:$LINENO: checking for $ac_word" >&5
39268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39269if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
39270 echo $ECHO_N "(cached) $ECHO_C" >&6
39271else
39272 if test -n "$ac_ct_STRIP"; then
39273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
39274else
39275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39276for as_dir in $PATH
39277do
39278 IFS=$as_save_IFS
39279 test -z "$as_dir" && as_dir=.
39280 for ac_exec_ext in '' $ac_executable_extensions; do
39281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39282 ac_cv_prog_ac_ct_STRIP="strip"
39283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39284 break 2
39285 fi
39286done
39287done
39288
39289 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
39290fi
39291fi
39292ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
39293if test -n "$ac_ct_STRIP"; then
39294 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
39295echo "${ECHO_T}$ac_ct_STRIP" >&6
39296else
39297 echo "$as_me:$LINENO: result: no" >&5
39298echo "${ECHO_T}no" >&6
39299fi
39300
39301 STRIP=$ac_ct_STRIP
39302else
39303 STRIP="$ac_cv_prog_STRIP"
39304fi
39305
39306 if test -n "$ac_tool_prefix"; then
39307 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
39308set dummy ${ac_tool_prefix}nm; ac_word=$2
39309echo "$as_me:$LINENO: checking for $ac_word" >&5
39310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39311if test "${ac_cv_prog_NM+set}" = set; then
39312 echo $ECHO_N "(cached) $ECHO_C" >&6
39313else
39314 if test -n "$NM"; then
39315 ac_cv_prog_NM="$NM" # Let the user override the test.
39316else
39317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39318for as_dir in $PATH
39319do
39320 IFS=$as_save_IFS
39321 test -z "$as_dir" && as_dir=.
39322 for ac_exec_ext in '' $ac_executable_extensions; do
39323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39324 ac_cv_prog_NM="${ac_tool_prefix}nm"
39325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39326 break 2
39327 fi
39328done
39329done
39330
39331fi
39332fi
39333NM=$ac_cv_prog_NM
39334if test -n "$NM"; then
39335 echo "$as_me:$LINENO: result: $NM" >&5
39336echo "${ECHO_T}$NM" >&6
39337else
39338 echo "$as_me:$LINENO: result: no" >&5
39339echo "${ECHO_T}no" >&6
39340fi
39341
39342fi
39343if test -z "$ac_cv_prog_NM"; then
39344 ac_ct_NM=$NM
39345 # Extract the first word of "nm", so it can be a program name with args.
39346set dummy nm; ac_word=$2
39347echo "$as_me:$LINENO: checking for $ac_word" >&5
39348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39349if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
39350 echo $ECHO_N "(cached) $ECHO_C" >&6
39351else
39352 if test -n "$ac_ct_NM"; then
39353 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
39354else
39355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39356for as_dir in $PATH
39357do
39358 IFS=$as_save_IFS
39359 test -z "$as_dir" && as_dir=.
39360 for ac_exec_ext in '' $ac_executable_extensions; do
39361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39362 ac_cv_prog_ac_ct_NM="nm"
39363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39364 break 2
39365 fi
39366done
39367done
39368
39369 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
39370fi
39371fi
39372ac_ct_NM=$ac_cv_prog_ac_ct_NM
39373if test -n "$ac_ct_NM"; then
39374 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
39375echo "${ECHO_T}$ac_ct_NM" >&6
39376else
39377 echo "$as_me:$LINENO: result: no" >&5
39378echo "${ECHO_T}no" >&6
39379fi
39380
39381 NM=$ac_ct_NM
39382else
39383 NM="$ac_cv_prog_NM"
39384fi
39385
39386
39387 case ${BAKEFILE_HOST} in
39388 *-hp-hpux* )
1e9e8aba 39389 INSTALL_DIR="mkdir -p"
a848cd7e
SC
39390 ;;
39391 *) INSTALL_DIR="$INSTALL -d"
39392 ;;
39393 esac
39394
39395
39396 LDFLAGS_GUI=
39397 case ${BAKEFILE_HOST} in
39398 *-*-cygwin* | *-*-mingw32* )
39399 LDFLAGS_GUI="-mwindows"
39400 esac
39401
39402
39403 fi
39404
39405 echo "$as_me:$LINENO: checking if make is GNU make" >&5
39406echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
39407if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
39408 echo $ECHO_N "(cached) $ECHO_C" >&6
39409else
39410
39411 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
39412 egrep -s GNU > /dev/null); then
39413 bakefile_cv_prog_makeisgnu="yes"
39414 else
39415 bakefile_cv_prog_makeisgnu="no"
39416 fi
39417
39418fi
39419echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39420echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39421
39422 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39423 IF_GNU_MAKE=""
39424 else
39425 IF_GNU_MAKE="#"
39426 fi
39427
39428
39429
39430 PLATFORM_UNIX=0
39431 PLATFORM_WIN32=0
39432 PLATFORM_MSDOS=0
39433 PLATFORM_MAC=0
1e9e8aba 39434 PLATFORM_MACOS=0
a848cd7e
SC
39435 PLATFORM_MACOSX=0
39436 PLATFORM_OS2=0
1e9e8aba 39437 PLATFORM_BEOS=0
a848cd7e
SC
39438
39439 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
39440 case "${BAKEFILE_HOST}" in
39441 *-*-cygwin* | *-*-mingw32* )
39442 PLATFORM_WIN32=1
39443 ;;
39444 *-pc-msdosdjgpp )
39445 PLATFORM_MSDOS=1
39446 ;;
39447 *-pc-os2_emx | *-pc-os2-emx )
39448 PLATFORM_OS2=1
39449 ;;
39450 powerpc-*-darwin* )
39451 PLATFORM_MAC=1
39452 PLATFORM_MACOSX=1
39453 ;;
1e9e8aba
DE
39454 *-*-beos* )
39455 PLATFORM_BEOS=1
39456 ;;
39457 powerpc-apple-macos* )
39458 PLATFORM_MAC=1
39459 PLATFORM_MACOS=1
39460 ;;
a848cd7e
SC
39461 * )
39462 PLATFORM_UNIX=1
39463 ;;
39464 esac
39465 else
39466 case "$BAKEFILE_FORCE_PLATFORM" in
39467 win32 )
39468 PLATFORM_WIN32=1
39469 ;;
39470 msdos )
39471 PLATFORM_MSDOS=1
39472 ;;
39473 os2 )
39474 PLATFORM_OS2=1
39475 ;;
39476 darwin )
39477 PLATFORM_MAC=1
39478 PLATFORM_MACOSX=1
39479 ;;
39480 unix )
39481 PLATFORM_UNIX=1
39482 ;;
1e9e8aba
DE
39483 beos )
39484 PLATFORM_BEOS=1
39485 ;;
a848cd7e
SC
39486 * )
39487 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
39488echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
39489 { (exit 1); exit 1; }; }
39490 ;;
39491 esac
39492 fi
39493
39494
39495
39496
39497
39498
39499
39500
39501
1e9e8aba
DE
39502
39503
a848cd7e
SC
39504 # Check whether --enable-omf or --disable-omf was given.
39505if test "${enable_omf+set}" = set; then
39506 enableval="$enable_omf"
39507 bk_os2_use_omf="$enableval"
39508fi;
39509
39510 case "${BAKEFILE_HOST}" in
39511 *-*-darwin* )
39512 CFLAGS="$CFLAGS -fno-common"
39513 CXXFLAGS="$CXXFLAGS -fno-common"
39514 ;;
39515
39516 *-pc-os2_emx | *-pc-os2-emx )
39517 if test "x$bk_os2_use_omf" = "xyes" ; then
39518 AR=emxomfar
39519 RANLIB=:
39520 LDFLAGS="-Zomf $LDFLAGS"
39521 CFLAGS="-Zomf $CFLAGS"
39522 CXXFLAGS="-Zomf $CXXFLAGS"
39523 OS2_LIBEXT="lib"
39524 else
39525 OS2_LIBEXT="a"
39526 fi
39527 ;;
1e9e8aba
DE
39528
39529 i*86-*-beos* )
39530 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
39531 ;;
a848cd7e
SC
39532 esac
39533
39534
39535 SO_SUFFIX="so"
39536 SO_SUFFIX_MODULE="so"
39537 EXEEXT=""
39538 LIBPREFIX="lib"
39539 LIBEXT=".a"
39540 DLLPREFIX="lib"
39541 DLLPREFIX_MODULE=""
39542 DLLIMP_SUFFIX=""
39543
39544 case "${BAKEFILE_HOST}" in
39545 *-hp-hpux* )
39546 SO_SUFFIX="sl"
39547 SO_SUFFIX_MODULE="sl"
39548 ;;
39549 *-*-aix* )
39550 SO_SUFFIX="a"
39551 SO_SUFFIX_MODULE="a"
39552 ;;
39553 *-*-cygwin* | *-*-mingw32* )
39554 SO_SUFFIX="dll"
39555 SO_SUFFIX_MODULE="dll"
39556 DLLIMP_SUFFIX="dll.a"
39557 EXEEXT=".exe"
39558 DLLPREFIX=""
39559 ;;
39560 *-pc-msdosdjgpp )
39561 EXEEXT=".exe"
39562 DLLPREFIX=""
39563 ;;
39564 *-pc-os2_emx | *-pc-os2-emx )
39565 SO_SUFFIX="dll"
39566 SO_SUFFIX_MODULE="dll"
39567 DLLIMP_SUFFIX=$OS2_LIBEXT
39568 EXEEXT=".exe"
39569 DLLPREFIX=""
39570 LIBPREFIX=""
39571 LIBEXT=".$OS2_LIBEXT"
39572 ;;
39573 powerpc-*-darwin* )
39574 SO_SUFFIX="dylib"
39575 SO_SUFFIX_MODULE="bundle"
39576 ;;
39577 esac
39578
39579 if test "x$DLLIMP_SUFFIX" = "x" ; then
39580 DLLIMP_SUFFIX="$SO_SUFFIX"
39581 fi
39582
39583
39584
39585
39586
39587
39588
39589
39590
39591
39592
1e9e8aba
DE
39593 PIC_FLAG=""
39594 if test "x$GCC" = "xyes"; then
a848cd7e
SC
39595 PIC_FLAG="-fPIC"
39596 fi
39597
1e9e8aba
DE
39598 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
39599 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
39600
a848cd7e
SC
39601 case "${BAKEFILE_HOST}" in
39602 *-hp-hpux* )
1e9e8aba 39603 if test "x$GCC" != "xyes"; then
a848cd7e
SC
39604 LDFLAGS="$LDFLAGS -L/usr/lib"
39605
39606 SHARED_LD_CC="${CC} -b -o"
39607 SHARED_LD_CXX="${CXX} -b -o"
39608 PIC_FLAG="+Z"
39609 fi
39610 ;;
39611
39612 *-*-linux* )
39613 if test "x$GCC" != "xyes"; then
39614 echo "$as_me:$LINENO: checking for Intel compiler" >&5
39615echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
39616if test "${bakefile_cv_prog_icc+set}" = set; then
39617 echo $ECHO_N "(cached) $ECHO_C" >&6
39618else
39619
39620 cat >conftest.$ac_ext <<_ACEOF
39621/* confdefs.h. */
39622_ACEOF
39623cat confdefs.h >>conftest.$ac_ext
39624cat >>conftest.$ac_ext <<_ACEOF
39625/* end confdefs.h. */
39626
39627int
39628main ()
39629{
39630
39631 #ifndef __INTEL_COMPILER
39632 #error Not icc
39633 #endif
39634
39635 ;
39636 return 0;
39637}
39638_ACEOF
39639rm -f conftest.$ac_objext
39640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39641 (eval $ac_compile) 2>conftest.er1
a848cd7e 39642 ac_status=$?
ac1cb8d3
VS
39643 grep -v '^ *+' conftest.er1 >conftest.err
39644 rm -f conftest.er1
39645 cat conftest.err >&5
a848cd7e
SC
39646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647 (exit $ac_status); } &&
da4486fb 39648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39650 (eval $ac_try) 2>&5
39651 ac_status=$?
39652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39653 (exit $ac_status); }; } &&
39654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39656 (eval $ac_try) 2>&5
39657 ac_status=$?
39658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39659 (exit $ac_status); }; }; then
39660 bakefile_cv_prog_icc=yes
39661else
39662 echo "$as_me: failed program was:" >&5
39663sed 's/^/| /' conftest.$ac_ext >&5
39664
39665bakefile_cv_prog_icc=no
39666
39667fi
ac1cb8d3 39668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39669
39670fi
39671echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39672echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39673 if test "$bakefile_cv_prog_icc" = "yes"; then
39674 PIC_FLAG="-KPIC"
39675 fi
39676 fi
39677 ;;
39678
39679 *-*-solaris2* )
39680 if test "x$GCC" != xyes ; then
39681 SHARED_LD_CC="${CC} -G -o"
39682 SHARED_LD_CXX="${CXX} -G -o"
39683 PIC_FLAG="-KPIC"
39684 fi
39685 ;;
39686
39687 *-*-darwin* )
39688
39689 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39690echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39691if test "${wx_cv_gcc31+set}" = set; then
39692 echo $ECHO_N "(cached) $ECHO_C" >&6
39693else
39694
39695 cat >conftest.$ac_ext <<_ACEOF
39696/* confdefs.h. */
39697_ACEOF
39698cat confdefs.h >>conftest.$ac_ext
39699cat >>conftest.$ac_ext <<_ACEOF
39700/* end confdefs.h. */
39701
39702int
39703main ()
39704{
39705
39706 #if (__GNUC__ < 3) || \
39707 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39708 #error old gcc
39709 #endif
39710
39711 ;
39712 return 0;
39713}
39714_ACEOF
39715rm -f conftest.$ac_objext
39716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39717 (eval $ac_compile) 2>conftest.er1
a848cd7e 39718 ac_status=$?
ac1cb8d3
VS
39719 grep -v '^ *+' conftest.er1 >conftest.err
39720 rm -f conftest.er1
39721 cat conftest.err >&5
a848cd7e
SC
39722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39723 (exit $ac_status); } &&
da4486fb 39724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39726 (eval $ac_try) 2>&5
39727 ac_status=$?
39728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39729 (exit $ac_status); }; } &&
39730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39732 (eval $ac_try) 2>&5
39733 ac_status=$?
39734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39735 (exit $ac_status); }; }; then
39736
39737 wx_cv_gcc31=yes
39738
39739else
39740 echo "$as_me: failed program was:" >&5
39741sed 's/^/| /' conftest.$ac_ext >&5
39742
39743
39744 wx_cv_gcc31=no
39745
39746
39747fi
ac1cb8d3 39748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39749
39750fi
39751echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39752echo "${ECHO_T}$wx_cv_gcc31" >&6
39753 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
39754
39755D='$'
39756cat <<EOF >shared-ld-sh
a848cd7e
SC
39757#!/bin/sh
39758#-----------------------------------------------------------------------------
39759#-- Name: distrib/mac/shared-ld-sh
39760#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
39761#-- Author: Gilles Depeyrot
39762#-- Copyright: (c) 2002 Gilles Depeyrot
39763#-- Licence: any use permitted
39764#-----------------------------------------------------------------------------
39765
39766verbose=0
39767args=""
39768objects=""
39769linking_flag="-dynamiclib"
39770
473276a9
VS
39771while test ${D}# -gt 0; do
39772 case ${D}1 in
a848cd7e
SC
39773
39774 -v)
39775 verbose=1
39776 ;;
39777
39778 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39779 # collect these options and values
473276a9 39780 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39781 shift
39782 ;;
39783
39784 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39785 # collect these options
473276a9 39786 args="${D}{args} ${D}1"
a848cd7e
SC
39787 ;;
39788
39789 -dynamiclib|-bundle)
473276a9 39790 linking_flag="${D}1"
a848cd7e
SC
39791 ;;
39792
39793 -*)
473276a9 39794 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39795 exit 1
39796 ;;
39797
39798 *.o | *.a | *.dylib)
39799 # collect object files
473276a9 39800 objects="${D}{objects} ${D}1"
a848cd7e
SC
39801 ;;
39802
39803 *)
473276a9 39804 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39805 exit 1
39806 ;;
39807
39808 esac
39809 shift
39810done
39811
39812#
39813# Link one module containing all the others
39814#
473276a9
VS
39815if test ${D}{verbose} = 1; then
39816 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39817fi
473276a9
VS
39818c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39819status=${D}?
39820if test ${D}{status} != 0; then
39821 exit ${D}{status}
a848cd7e
SC
39822fi
39823
39824#
39825# Link the shared library from the single module created
39826#
473276a9
VS
39827if test ${D}{verbose} = 1; then
39828 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39829fi
473276a9
VS
39830c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39831status=${D}?
39832if test ${D}{status} != 0; then
39833 exit ${D}{status}
a848cd7e
SC
39834fi
39835
39836#
39837# Remove intermediate module
39838#
473276a9 39839rm -f master.${D}${D}.o
a848cd7e
SC
39840
39841exit 0
39842EOF
473276a9 39843
a848cd7e
SC
39844 chmod +x shared-ld-sh
39845
39846 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39847 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39848 SHARED_LD_CXX="$SHARED_LD_CC"
39849 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39850 else
39851 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39852 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39853 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39854 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39855 fi
39856
39857 PIC_FLAG="-dynamic -fPIC"
39858 ;;
39859
39860 *-*-aix* )
39861 if test "x$GCC" != "xyes"; then
39862 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39863set dummy makeC++SharedLib; ac_word=$2
39864echo "$as_me:$LINENO: checking for $ac_word" >&5
39865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39866if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39867 echo $ECHO_N "(cached) $ECHO_C" >&6
39868else
39869 if test -n "$AIX_CXX_LD"; then
39870 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39871else
39872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39873for as_dir in $PATH
39874do
39875 IFS=$as_save_IFS
39876 test -z "$as_dir" && as_dir=.
39877 for ac_exec_ext in '' $ac_executable_extensions; do
39878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39879 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39881 break 2
39882 fi
39883done
39884done
39885
39886 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39887fi
39888fi
39889AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39890if test -n "$AIX_CXX_LD"; then
39891 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39892echo "${ECHO_T}$AIX_CXX_LD" >&6
39893else
39894 echo "$as_me:$LINENO: result: no" >&5
39895echo "${ECHO_T}no" >&6
39896fi
39897
39898 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39899 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39900 fi
39901 ;;
39902
39903 *-*-beos* )
1e9e8aba
DE
39904 SHARED_LD_CC="${LD} -nostart -o"
39905 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
39906 ;;
39907
39908 *-*-irix* )
39909 if test "x$GCC" != "xyes"; then
39910 PIC_FLAG="-KPIC"
39911 fi
39912 ;;
39913
39914 *-*-cygwin* | *-*-mingw32* )
39915 PIC_FLAG=""
1e9e8aba
DE
39916 SHARED_LD_CC="\$(CC) -shared -o"
39917 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
39918 ;;
39919
39920 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
39921 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
39922 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 39923 PIC_FLAG=""
473276a9
VS
39924
39925D='$'
39926cat <<EOF >dllar.sh
39927#!/bin/sh
39928#
39929# dllar - a tool to build both a .dll and an .a file
39930# from a set of object (.o) files for EMX/OS2.
39931#
39932# Written by Andrew Zabolotny, bit@freya.etu.ru
39933# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39934#
39935# This script will accept a set of files on the command line.
39936# All the public symbols from the .o files will be exported into
39937# a .DEF file, then linker will be run (through gcc) against them to
39938# build a shared library consisting of all given .o files. All libraries
39939# (.a) will be first decompressed into component .o files then act as
39940# described above. You can optionally give a description (-d "description")
39941# which will be put into .DLL. To see the list of accepted options (as well
39942# as command-line format) simply run this program without options. The .DLL
39943# is built to be imported by name (there is no guarantee that new versions
39944# of the library you build will have same ordinals for same symbols).
39945#
39946# dllar is free software; you can redistribute it and/or modify
39947# it under the terms of the GNU General Public License as published by
39948# the Free Software Foundation; either version 2, or (at your option)
39949# any later version.
39950#
39951# dllar is distributed in the hope that it will be useful,
39952# but WITHOUT ANY WARRANTY; without even the implied warranty of
39953# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39954# GNU General Public License for more details.
39955#
39956# You should have received a copy of the GNU General Public License
39957# along with dllar; see the file COPYING. If not, write to the Free
39958# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39959# 02111-1307, USA.
39960
39961# To successfuly run this program you will need:
39962# - Current drive should have LFN support (HPFS, ext2, network, etc)
39963# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39964# - gcc
39965# (used to build the .dll)
39966# - emxexp
39967# (used to create .def file from .o files)
39968# - emximp
39969# (used to create .a file from .def file)
39970# - GNU text utilites (cat, sort, uniq)
39971# used to process emxexp output
39972# - GNU file utilities (mv, rm)
39973# - GNU sed
39974# - lxlite (optional, see flag below)
39975# (used for general .dll cleanup)
39976#
39977
39978flag_USE_LXLITE=1;
39979
39980#
39981# helper functions
39982# basnam, variant of basename, which does _not_ remove the path, _iff_
39983# second argument (suffix to remove) is given
39984basnam(){
39985 case ${D}# in
39986 1)
1e9e8aba 39987 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
39988 ;;
39989 2)
39990 echo ${D}1 | sed 's/'${D}2'${D}//'
39991 ;;
39992 *)
39993 echo "error in basnam ${D}*"
39994 exit 8
39995 ;;
39996 esac
39997}
39998
39999# Cleanup temporary files and output
40000CleanUp() {
40001 cd ${D}curDir
40002 for i in ${D}inputFiles ; do
40003 case ${D}i in
40004 *!)
40005 rm -rf \`basnam ${D}i !\`
40006 ;;
40007 *)
40008 ;;
40009 esac
40010 done
40011
40012 # Kill result in case of failure as there is just to many stupid make/nmake
40013 # things out there which doesn't do this.
1e9e8aba 40014 if [ ${D}# -eq 0 ]; then
473276a9
VS
40015 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
40016 fi
40017}
40018
40019# Print usage and exit script with rc=1.
40020PrintHelp() {
b1d22ded
DE
40021 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
40022 echo ' [-name-mangler-script script.sh]'
40023 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
40024 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
40025 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 40026 echo ' [*.o] [*.a]'
473276a9
VS
40027 echo '*> "output_file" should have no extension.'
40028 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
40029 echo ' The import library name is derived from this and is set to "name".a,'
40030 echo ' unless overridden by -import'
40031 echo '*> "importlib_name" should have no extension.'
40032 echo ' If it has the .o, or .a extension, it is automatically removed.'
40033 echo ' This name is used as the import library name and may be longer and'
40034 echo ' more descriptive than the DLL name which has to follow the old '
40035 echo ' 8.3 convention of FAT.'
b1d22ded
DE
40036 echo '*> "script.sh may be given to override the output_file name by a'
40037 echo ' different name. It is mainly useful if the regular make process'
40038 echo ' of some package does not take into account OS/2 restriction of'
40039 echo ' DLL name lengths. It takes the importlib name as input and is'
40040 echo ' supposed to procude a shorter name as output. The script should'
40041 echo ' expect to get importlib_name without extension and should produce'
40042 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
40043 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
40044 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
40045 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
40046 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
40047 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
40048 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
40049 echo ' If the last character of a symbol is "*", all symbols beginning'
40050 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 40051 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 40052 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 40053 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 40054 echo ' C runtime DLLs.'
b1d22ded 40055 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
40056 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
40057 echo ' unchanged to GCC at the end of command line.'
40058 echo '*> If you create a DLL from a library and you do not specify -o,'
40059 echo ' the basename for DLL and import library will be set to library name,'
40060 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
40061 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
40062 echo ' library will be renamed into gcc_s.a.'
40063 echo '--------'
40064 echo 'Example:'
40065 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
40066 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
40067 CleanUp
40068 exit 1
40069}
40070
40071# Execute a command.
40072# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
40073# @Uses Whatever CleanUp() uses.
40074doCommand() {
40075 echo "${D}*"
40076 eval ${D}*
40077 rcCmd=${D}?
40078
1e9e8aba 40079 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
40080 echo "command failed, exit code="${D}rcCmd
40081 CleanUp
40082 exit ${D}rcCmd
40083 fi
40084}
40085
40086# main routine
40087# setup globals
40088cmdLine=${D}*
40089outFile=""
40090outimpFile=""
40091inputFiles=""
b1d22ded 40092renameScript=""
473276a9
VS
40093description=""
40094CC=gcc.exe
40095CFLAGS="-s -Zcrtdll"
40096EXTRA_CFLAGS=""
40097EXPORT_BY_ORDINALS=0
40098exclude_symbols=""
40099library_flags=""
40100curDir=\`pwd\`
40101curDirS=curDir
40102case ${D}curDirS in
40103*/)
40104 ;;
40105*)
40106 curDirS=${D}{curDirS}"/"
40107 ;;
40108esac
40109# Parse commandline
40110libsToLink=0
b1d22ded 40111omfLinking=0
1e9e8aba 40112while [ ${D}1 ]; do
473276a9
VS
40113 case ${D}1 in
40114 -ord*)
40115 EXPORT_BY_ORDINALS=1;
40116 ;;
40117 -o*)
40118 shift
40119 outFile=${D}1
40120 ;;
40121 -i*)
40122 shift
40123 outimpFile=${D}1
40124 ;;
b1d22ded
DE
40125 -name-mangler-script)
40126 shift
40127 renameScript=${D}1
40128 ;;
473276a9
VS
40129 -d*)
40130 shift
40131 description=${D}1
40132 ;;
40133 -f*)
40134 shift
40135 CFLAGS=${D}1
40136 ;;
40137 -c*)
40138 shift
40139 CC=${D}1
40140 ;;
40141 -h*)
40142 PrintHelp
40143 ;;
40144 -ex*)
40145 shift
40146 exclude_symbols=${D}{exclude_symbols}${D}1" "
40147 ;;
40148 -libf*)
40149 shift
40150 library_flags=${D}{library_flags}${D}1" "
40151 ;;
40152 -nocrt*)
40153 CFLAGS="-s"
40154 ;;
40155 -nolxl*)
40156 flag_USE_LXLITE=0
40157 ;;
40158 -* | /*)
40159 case ${D}1 in
40160 -L* | -l*)
40161 libsToLink=1
40162 ;;
b1d22ded
DE
40163 -Zomf)
40164 omfLinking=1
40165 ;;
473276a9
VS
40166 *)
40167 ;;
40168 esac
40169 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40170 ;;
b1d22ded
DE
40171 *.dll)
40172 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
40173 if [ ${D}omfLinking -eq 1 ]; then
40174 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
40175 else
40176 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
40177 fi
40178 ;;
473276a9
VS
40179 *)
40180 found=0;
1e9e8aba 40181 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
40182 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40183 else
40184 for file in ${D}1 ; do
1e9e8aba 40185 if [ -f ${D}file ]; then
473276a9
VS
40186 inputFiles="${D}{inputFiles} ${D}file"
40187 found=1
40188 fi
40189 done
1e9e8aba 40190 if [ ${D}found -eq 0 ]; then
473276a9
VS
40191 echo "ERROR: No file(s) found: "${D}1
40192 exit 8
40193 fi
40194 fi
40195 ;;
40196 esac
40197 shift
40198done # iterate cmdline words
40199
40200#
1e9e8aba 40201if [ -z "${D}inputFiles" ]; then
473276a9
VS
40202 echo "dllar: no input files"
40203 PrintHelp
40204fi
40205
40206# Now extract all .o files from .a files
40207newInputFiles=""
40208for file in ${D}inputFiles ; do
40209 case ${D}file in
40210 *.a | *.lib)
40211 case ${D}file in
40212 *.a)
40213 suffix=".a"
40214 AR="ar"
40215 ;;
40216 *.lib)
40217 suffix=".lib"
40218 AR="emxomfar"
40219 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40220 ;;
40221 *)
40222 ;;
40223 esac
40224 dirname=\`basnam ${D}file ${D}suffix\`"_%"
40225 mkdir ${D}dirname
1e9e8aba 40226 if [ ${D}? -ne 0 ]; then
473276a9
VS
40227 echo "Failed to create subdirectory ./${D}dirname"
40228 CleanUp
40229 exit 8;
40230 fi
40231 # Append '!' to indicate archive
40232 newInputFiles="${D}newInputFiles ${D}{dirname}!"
40233 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40234 cd ${D}curDir
40235 found=0;
40236 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 40237 if [ -f ${D}subfile ]; then
473276a9 40238 found=1
1e9e8aba 40239 if [ -s ${D}subfile ]; then
473276a9
VS
40240 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40241 newInputFiles="${D}newInputFiles ${D}subfile"
40242 fi
40243 fi
40244 done
1e9e8aba
DE
40245 if [ ${D}found -eq 0 ]; then
40246 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
40247 fi
40248 ;;
40249 *)
40250 newInputFiles="${D}{newInputFiles} ${D}file"
40251 ;;
40252 esac
40253done
40254inputFiles="${D}newInputFiles"
40255
40256# Output filename(s).
40257do_backup=0;
1e9e8aba 40258if [ -z ${D}outFile ]; then
473276a9
VS
40259 do_backup=1;
40260 set outFile ${D}inputFiles; outFile=${D}2
40261fi
40262
40263# If it is an archive, remove the '!' and the '_%' suffixes
40264case ${D}outFile in
40265*_%!)
40266 outFile=\`basnam ${D}outFile _%!\`
40267 ;;
40268*)
40269 ;;
40270esac
40271case ${D}outFile in
40272*.dll)
40273 outFile=\`basnam ${D}outFile .dll\`
40274 ;;
40275*.DLL)
40276 outFile=\`basnam ${D}outFile .DLL\`
40277 ;;
40278*.o)
40279 outFile=\`basnam ${D}outFile .o\`
40280 ;;
40281*.obj)
40282 outFile=\`basnam ${D}outFile .obj\`
40283 ;;
40284*.a)
40285 outFile=\`basnam ${D}outFile .a\`
40286 ;;
40287*.lib)
40288 outFile=\`basnam ${D}outFile .lib\`
40289 ;;
40290*)
40291 ;;
40292esac
40293case ${D}outimpFile in
40294*.a)
40295 outimpFile=\`basnam ${D}outimpFile .a\`
40296 ;;
40297*.lib)
40298 outimpFile=\`basnam ${D}outimpFile .lib\`
40299 ;;
40300*)
40301 ;;
40302esac
1e9e8aba 40303if [ -z ${D}outimpFile ]; then
473276a9
VS
40304 outimpFile=${D}outFile
40305fi
40306defFile="${D}{outFile}.def"
40307arcFile="${D}{outimpFile}.a"
40308arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
40309
40310#create ${D}dllFile as something matching 8.3 restrictions,
40311if [ -z ${D}renameScript ] ; then
40312 dllFile="${D}outFile"
40313else
40314 dllFile=\`${D}renameScript ${D}outimpFile\`
40315fi
473276a9 40316
1e9e8aba
DE
40317if [ ${D}do_backup -ne 0 ] ; then
40318 if [ -f ${D}arcFile ] ; then
473276a9
VS
40319 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
40320 fi
1e9e8aba 40321 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
40322 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
40323 fi
40324fi
40325
40326# Extract public symbols from all the object files.
40327tmpdefFile=${D}{defFile}_%
40328rm -f ${D}tmpdefFile
40329for file in ${D}inputFiles ; do
40330 case ${D}file in
40331 *!)
40332 ;;
40333 *)
40334 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
40335 ;;
40336 esac
40337done
40338
40339# Create the def file.
40340rm -f ${D}defFile
40341echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
40342dllFile="${D}{dllFile}.dll"
40343if [ ! -z ${D}description ]; then
1e9e8aba 40344 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
40345fi
40346echo "EXPORTS" >> ${D}defFile
40347
40348doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
40349grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
40350
40351# Checks if the export is ok or not.
40352for word in ${D}exclude_symbols; do
40353 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
40354 mv ${D}{tmpdefFile}% ${D}tmpdefFile
40355done
40356
40357
1e9e8aba
DE
40358if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
40359 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
40360 sed '
40361 N
40362 : loop
1e9e8aba 40363 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
40364 t loop
40365 ' > ${D}{tmpdefFile}%
40366 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
40367else
40368 rm -f ${D}{tmpdefFile}%
40369fi
40370cat ${D}tmpdefFile >> ${D}defFile
40371rm -f ${D}tmpdefFile
40372
40373# Do linking, create implib, and apply lxlite.
40374gccCmdl="";
40375for file in ${D}inputFiles ; do
40376 case ${D}file in
40377 *!)
40378 ;;
40379 *)
40380 gccCmdl="${D}gccCmdl ${D}file"
40381 ;;
40382 esac
40383done
40384doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
40385touch "${D}{outFile}.dll"
40386
40387doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 40388if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 40389 add_flags="";
1e9e8aba 40390 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
40391 add_flags="-ynd"
40392 fi
40393 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
40394fi
40395doCommand "emxomf -s -l ${D}arcFile"
40396
40397# Successful exit.
40398CleanUp 1
40399exit 0
40400EOF
40401
40402 chmod +x dllar.sh
a848cd7e
SC
40403 ;;
40404
1e9e8aba 40405 powerpc-apple-macos* | \
a848cd7e
SC
40406 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
40407 *-*-sunos4* | \
40408 *-*-osf* | \
40409 *-*-dgux5* | \
40410 *-*-sysv5* )
40411 ;;
40412
40413 *)
40414 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
40415echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
40416 { (exit 1); exit 1; }; }
40417 esac
40418
2057db16
VS
40419 if test "x$PIC_FLAG" != "x" ; then
40420 PIC_FLAG="$PIC_FLAG -DPIC"
40421 fi
40422
a848cd7e
SC
40423 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
40424 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
40425 fi
40426 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
40427 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
40428 fi
40429
40430
40431
40432
40433
40434
40435
40436
40437 USE_SOVERSION=0
40438 USE_SOVERLINUX=0
40439 USE_SOVERSOLARIS=0
40440 USE_SOSYMLINKS=0
40441 USE_MACVERSION=0
40442 SONAME_FLAG=
40443
40444 case "${BAKEFILE_HOST}" in
b1d22ded 40445 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
40446 SONAME_FLAG="-Wl,-soname,"
40447 USE_SOVERSION=1
40448 USE_SOVERLINUX=1
40449 USE_SOSYMLINKS=1
40450 ;;
40451
a848cd7e
SC
40452 *-*-solaris2* )
40453 SONAME_FLAG="-h "
40454 USE_SOVERSION=1
40455 USE_SOVERSOLARIS=1
40456 USE_SOSYMLINKS=1
40457 ;;
40458
40459 *-*-darwin* )
40460 USE_MACVERSION=1
40461 USE_SOVERSION=1
40462 USE_SOSYMLINKS=1
40463 ;;
40464 esac
40465
40466
40467
40468
40469
40470
40471
40472
40473
40474 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
40475echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
40476 DEPS_TRACKING=0
40477
40478 if test "x$GCC" = "xyes"; then
40479 DEPSMODE=gcc
40480 DEPS_TRACKING=1
40481 case "${BAKEFILE_HOST}" in
40482 powerpc-*-darwin* )
40483 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
40484 ;;
40485 * )
40486 DEPSFLAG_GCC="-MMD"
40487 ;;
40488 esac
40489 echo "$as_me:$LINENO: result: gcc" >&5
40490echo "${ECHO_T}gcc" >&6
b1d22ded 40491 elif test "x$MWCC" = "xyes"; then
04840eaa 40492 DEPSMODE=gcc
b1d22ded 40493 DEPS_TRACKING=1
04840eaa 40494 DEPSFLAG_GCC="-MMD"
b1d22ded
DE
40495 echo "$as_me:$LINENO: result: mwcc" >&5
40496echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
40497 else
40498 echo "$as_me:$LINENO: result: none" >&5
40499echo "${ECHO_T}none" >&6
40500 fi
40501
40502 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
40503
40504D='$'
40505cat <<EOF >bk-deps
a848cd7e
SC
40506#!/bin/sh
40507
40508# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40509# script. It is used to track C/C++ files dependencies in portable way.
40510#
40511# Permission is given to use this file in any way.
40512
473276a9 40513DEPSMODE=${DEPSMODE}
a848cd7e 40514DEPSDIR=.deps
473276a9 40515DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 40516
473276a9 40517mkdir -p ${D}DEPSDIR
a848cd7e 40518
473276a9
VS
40519if test ${D}DEPSMODE = gcc ; then
40520 ${D}* ${D}{DEPSFLAG_GCC}
40521 status=${D}?
40522 if test ${D}{status} != 0 ; then
40523 exit ${D}{status}
a848cd7e
SC
40524 fi
40525 # move created file to the location we want it in:
473276a9
VS
40526 while test ${D}# -gt 0; do
40527 case "${D}1" in
a848cd7e
SC
40528 -o )
40529 shift
473276a9 40530 objfile=${D}1
a848cd7e
SC
40531 ;;
40532 -* )
40533 ;;
40534 * )
473276a9 40535 srcfile=${D}1
a848cd7e
SC
40536 ;;
40537 esac
40538 shift
40539 done
1e9e8aba
DE
40540 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
40541 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
40542 if test -f ${D}depfile ; then
40543 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40544 rm -f ${D}depfile
a848cd7e 40545 else
1e9e8aba 40546 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
40547 if test -f ${D}depfile ; then
40548 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40549 rm -f ${D}depfile
a848cd7e
SC
40550 fi
40551 fi
40552 exit 0
40553else
473276a9
VS
40554 ${D}*
40555 exit ${D}?
a848cd7e
SC
40556fi
40557EOF
473276a9 40558
a848cd7e
SC
40559 chmod +x bk-deps
40560 fi
40561
40562
40563
40564
40565 RESCOMP=
40566 SETFILE=
40567
40568 case ${BAKEFILE_HOST} in
40569 *-*-cygwin* | *-*-mingw32* )
40570 if test "$build" != "$host" ; then
40571 RESCOMP=$host_alias-windres
40572 else
40573 # Extract the first word of "windres", so it can be a program name with args.
40574set dummy windres; ac_word=$2
40575echo "$as_me:$LINENO: checking for $ac_word" >&5
40576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40577if test "${ac_cv_prog_RESCOMP+set}" = set; then
40578 echo $ECHO_N "(cached) $ECHO_C" >&6
40579else
40580 if test -n "$RESCOMP"; then
40581 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40582else
40583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40584for as_dir in $PATH
40585do
40586 IFS=$as_save_IFS
40587 test -z "$as_dir" && as_dir=.
40588 for ac_exec_ext in '' $ac_executable_extensions; do
40589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40590 ac_cv_prog_RESCOMP="windres"
40591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40592 break 2
40593 fi
40594done
40595done
40596
40597 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
40598fi
40599fi
40600RESCOMP=$ac_cv_prog_RESCOMP
40601if test -n "$RESCOMP"; then
40602 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40603echo "${ECHO_T}$RESCOMP" >&6
40604else
40605 echo "$as_me:$LINENO: result: no" >&5
40606echo "${ECHO_T}no" >&6
40607fi
40608
40609 fi
40610 ;;
40611
1e9e8aba 40612 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
40613 # Extract the first word of "Rez", so it can be a program name with args.
40614set dummy Rez; ac_word=$2
40615echo "$as_me:$LINENO: checking for $ac_word" >&5
40616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40617if test "${ac_cv_prog_RESCOMP+set}" = set; then
40618 echo $ECHO_N "(cached) $ECHO_C" >&6
40619else
40620 if test -n "$RESCOMP"; then
40621 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40622else
40623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40624for as_dir in $PATH
40625do
40626 IFS=$as_save_IFS
40627 test -z "$as_dir" && as_dir=.
40628 for ac_exec_ext in '' $ac_executable_extensions; do
40629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40630 ac_cv_prog_RESCOMP="Rez"
40631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40632 break 2
40633 fi
40634done
40635done
40636
40637 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
40638fi
40639fi
40640RESCOMP=$ac_cv_prog_RESCOMP
40641if test -n "$RESCOMP"; then
40642 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40643echo "${ECHO_T}$RESCOMP" >&6
40644else
40645 echo "$as_me:$LINENO: result: no" >&5
40646echo "${ECHO_T}no" >&6
40647fi
40648
40649 # Extract the first word of "SetFile", so it can be a program name with args.
40650set dummy SetFile; ac_word=$2
40651echo "$as_me:$LINENO: checking for $ac_word" >&5
40652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40653if test "${ac_cv_prog_SETFILE+set}" = set; then
40654 echo $ECHO_N "(cached) $ECHO_C" >&6
40655else
40656 if test -n "$SETFILE"; then
40657 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
40658else
40659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40660for as_dir in $PATH
40661do
40662 IFS=$as_save_IFS
40663 test -z "$as_dir" && as_dir=.
40664 for ac_exec_ext in '' $ac_executable_extensions; do
40665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40666 ac_cv_prog_SETFILE="SetFile"
40667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40668 break 2
40669 fi
40670done
40671done
40672
40673 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40674fi
40675fi
40676SETFILE=$ac_cv_prog_SETFILE
40677if test -n "$SETFILE"; then
40678 echo "$as_me:$LINENO: result: $SETFILE" >&5
40679echo "${ECHO_T}$SETFILE" >&6
40680else
40681 echo "$as_me:$LINENO: result: no" >&5
40682echo "${ECHO_T}no" >&6
40683fi
40684
40685 ;;
40686 esac
40687
40688
40689
40690
40691
04840eaa 40692 BAKEFILE_BAKEFILE_M4_VERSION="0.1.5"
a848cd7e 40693
dcc1b6ad 40694
04840eaa 40695BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.5"
a848cd7e 40696
646b6ec1 40697
74b84332 40698
a848cd7e
SC
40699 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40700if test "${enable_precomp_headers+set}" = set; then
40701 enableval="$enable_precomp_headers"
40702 bk_use_pch="$enableval"
40703fi;
40704
40705 GCC_PCH=0
40706
40707 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40708 if test "x$GCC" = "xyes"; then
40709 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40710echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40711 cat >conftest.$ac_ext <<_ACEOF
40712/* confdefs.h. */
40713_ACEOF
40714cat confdefs.h >>conftest.$ac_ext
40715cat >>conftest.$ac_ext <<_ACEOF
40716/* end confdefs.h. */
40717
40718int
40719main ()
40720{
40721
40722 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40723 #error "no pch support"
40724 #endif
40725 #if (__GNUC__ < 3)
40726 #error "no pch support"
40727 #endif
40728 #if (__GNUC__ == 3) && \
40729 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40730 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40731 #error "no pch support"
40732 #endif
40733
40734 ;
40735 return 0;
40736}
40737_ACEOF
40738rm -f conftest.$ac_objext
40739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40740 (eval $ac_compile) 2>conftest.er1
a848cd7e 40741 ac_status=$?
ac1cb8d3
VS
40742 grep -v '^ *+' conftest.er1 >conftest.err
40743 rm -f conftest.er1
40744 cat conftest.err >&5
a848cd7e
SC
40745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746 (exit $ac_status); } &&
da4486fb 40747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40749 (eval $ac_try) 2>&5
40750 ac_status=$?
40751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40752 (exit $ac_status); }; } &&
40753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40755 (eval $ac_try) 2>&5
40756 ac_status=$?
40757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40758 (exit $ac_status); }; }; then
40759
40760 echo "$as_me:$LINENO: result: yes" >&5
40761echo "${ECHO_T}yes" >&6
a848cd7e
SC
40762 GCC_PCH=1
40763
40764else
40765 echo "$as_me: failed program was:" >&5
40766sed 's/^/| /' conftest.$ac_ext >&5
40767
40768
40769 echo "$as_me:$LINENO: result: no" >&5
40770echo "${ECHO_T}no" >&6
40771
40772fi
ac1cb8d3 40773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40774 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
40775
40776D='$'
40777cat <<EOF >bk-make-pch
a848cd7e
SC
40778#!/bin/sh
40779
40780# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40781# script. It is used to generated precompiled headers.
40782#
40783# Permission is given to use this file in any way.
40784
1e9e8aba
DE
40785outfile="${D}{1}"
40786header="${D}{2}"
a848cd7e
SC
40787shift
40788shift
40789
40790compiler=
40791headerfile=
1e9e8aba
DE
40792while test ${D}{#} -gt 0; do
40793 case "${D}{1}" in
a848cd7e 40794 -I* )
1e9e8aba
DE
40795 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40796 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40797 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
40798 fi
40799 ;;
40800 esac
1e9e8aba 40801 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
40802 shift
40803done
40804
1e9e8aba
DE
40805if test "x${D}{headerfile}" = "x" ; then
40806 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 40807else
1e9e8aba
DE
40808 if test -f ${D}{outfile} ; then
40809 rm -f ${D}{outfile}
a848cd7e 40810 else
1e9e8aba 40811 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 40812 fi
1e9e8aba 40813 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
40814 mkdir -p .deps
40815 # can do this because gcc is >= 3.4:
1e9e8aba
DE
40816 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40817 exit ${D}{?}
a848cd7e
SC
40818fi
40819EOF
1e9e8aba 40820
a848cd7e
SC
40821 chmod +x bk-make-pch
40822 fi
40823 fi
40824 fi
40825
40826
40827
a848cd7e
SC
40828 COND_BUILD_DEBUG="#"
40829 if test "x$BUILD" = "xdebug" ; then
40830 COND_BUILD_DEBUG=""
40831 fi
40832
40833 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40834 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40835 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40836 fi
40837
40838 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40839 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40840 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40841 fi
40842
40843 COND_BUILD_DEBUG_UNICODE_0="#"
40844 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40845 COND_BUILD_DEBUG_UNICODE_0=""
40846 fi
40847
40848 COND_BUILD_DEBUG_UNICODE_1="#"
40849 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40850 COND_BUILD_DEBUG_UNICODE_1=""
40851 fi
40852
40853 COND_BUILD_RELEASE="#"
40854 if test "x$BUILD" = "xrelease" ; then
40855 COND_BUILD_RELEASE=""
40856 fi
40857
40858 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40859 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40860 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40861 fi
40862
40863 COND_BUILD_RELEASE_UNICODE_0="#"
40864 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40865 COND_BUILD_RELEASE_UNICODE_0=""
40866 fi
40867
40868 COND_BUILD_RELEASE_UNICODE_1="#"
40869 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40870 COND_BUILD_RELEASE_UNICODE_1=""
40871 fi
40872
40873 COND_DEBUG_FLAG_1="#"
40874 if test "x$DEBUG_FLAG" = "x1" ; then
40875 COND_DEBUG_FLAG_1=""
40876 fi
40877
40878 COND_DEBUG_INFO_0="#"
40879 if test "x$DEBUG_INFO" = "x0" ; then
40880 COND_DEBUG_INFO_0=""
40881 fi
40882
40883 COND_DEBUG_INFO_1="#"
40884 if test "x$DEBUG_INFO" = "x1" ; then
40885 COND_DEBUG_INFO_1=""
40886 fi
40887
40888 COND_DEPS_TRACKING_0="#"
40889 if test "x$DEPS_TRACKING" = "x0" ; then
40890 COND_DEPS_TRACKING_0=""
40891 fi
40892
40893 COND_DEPS_TRACKING_1="#"
40894 if test "x$DEPS_TRACKING" = "x1" ; then
40895 COND_DEPS_TRACKING_1=""
40896 fi
40897
40898 COND_GCC_PCH_1="#"
40899 if test "x$GCC_PCH" = "x1" ; then
40900 COND_GCC_PCH_1=""
40901 fi
40902
40903 COND_MONOLITHIC_0="#"
40904 if test "x$MONOLITHIC" = "x0" ; then
40905 COND_MONOLITHIC_0=""
40906 fi
40907
40908 COND_MONOLITHIC_0_SHARED_0="#"
40909 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40910 COND_MONOLITHIC_0_SHARED_0=""
40911 fi
40912
40913 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40914 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40915 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40916 fi
40917
90970d69
DE
40918 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
40919 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40920 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
40921 fi
40922
a848cd7e
SC
40923 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40924 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40925 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40926 fi
40927
a848cd7e
SC
40928 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40929 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40930 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40931 fi
40932
ceec2216
RL
40933 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40934 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40935 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40936 fi
40937
a848cd7e
SC
40938 COND_MONOLITHIC_0_SHARED_1="#"
40939 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40940 COND_MONOLITHIC_0_SHARED_1=""
40941 fi
40942
40943 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40944 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40945 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40946 fi
40947
90970d69
DE
40948 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
40949 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40950 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
40951 fi
40952
a848cd7e
SC
40953 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40954 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40955 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40956 fi
40957
a848cd7e
SC
40958 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40959 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40960 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40961 fi
40962
ceec2216
RL
40963 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40964 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40965 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40966 fi
40967
a848cd7e
SC
40968 COND_MONOLITHIC_0_USE_ODBC_1="#"
40969 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40970 COND_MONOLITHIC_0_USE_ODBC_1=""
40971 fi
40972
40973 COND_MONOLITHIC_1="#"
40974 if test "x$MONOLITHIC" = "x1" ; then
40975 COND_MONOLITHIC_1=""
40976 fi
40977
40978 COND_MONOLITHIC_1_SHARED_0="#"
40979 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40980 COND_MONOLITHIC_1_SHARED_0=""
40981 fi
40982
40983 COND_MONOLITHIC_1_SHARED_1="#"
40984 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40985 COND_MONOLITHIC_1_SHARED_1=""
40986 fi
40987
40988 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40989 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40990 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40991 fi
40992
40993 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40994 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40995 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40996 fi
40997
40998 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40999 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41000 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41001 fi
41002
41003 COND_PLATFORM_MACOSX_1="#"
41004 if test "x$PLATFORM_MACOSX" = "x1" ; then
41005 COND_PLATFORM_MACOSX_1=""
41006 fi
41007
a30f955f
VS
41008 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
41009 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
41010 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
41011 fi
41012
a848cd7e
SC
41013 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41014 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41015 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41016 fi
41017
41018 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41019 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41020 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41021 fi
41022
41023 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41024 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41025 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41026 fi
41027
fc480dc1
DE
41028 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
41029 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41030 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
41031 fi
41032
1e9e8aba
DE
41033 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41034 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41035 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41036 fi
41037
ebee3cd0
VS
41038 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
41039 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
41040 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
41041 fi
41042
41043 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
41044 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
41045 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
41046 fi
41047
a848cd7e
SC
41048 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41049 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41050 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41051 fi
41052
41053 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41054 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41055 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41056 fi
41057
b48a2016
DE
41058 COND_PLATFORM_MACOS_1="#"
41059 if test "x$PLATFORM_MACOS" = "x1" ; then
41060 COND_PLATFORM_MACOS_1=""
41061 fi
41062
a848cd7e
SC
41063 COND_PLATFORM_MAC_1="#"
41064 if test "x$PLATFORM_MAC" = "x1" ; then
41065 COND_PLATFORM_MAC_1=""
41066 fi
41067
41068 COND_PLATFORM_OS2_1="#"
41069 if test "x$PLATFORM_OS2" = "x1" ; then
41070 COND_PLATFORM_OS2_1=""
41071 fi
41072
41073 COND_PLATFORM_UNIX_0="#"
41074 if test "x$PLATFORM_UNIX" = "x0" ; then
41075 COND_PLATFORM_UNIX_0=""
41076 fi
41077
41078 COND_PLATFORM_UNIX_1="#"
41079 if test "x$PLATFORM_UNIX" = "x1" ; then
41080 COND_PLATFORM_UNIX_1=""
41081 fi
41082
41083 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41084 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41085 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41086 fi
41087
41088 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41089 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41090 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41091 fi
41092
41093 COND_PLATFORM_WIN32_0="#"
41094 if test "x$PLATFORM_WIN32" = "x0" ; then
41095 COND_PLATFORM_WIN32_0=""
41096 fi
41097
41098 COND_PLATFORM_WIN32_1="#"
41099 if test "x$PLATFORM_WIN32" = "x1" ; then
41100 COND_PLATFORM_WIN32_1=""
41101 fi
41102
41103 COND_SHARED_0="#"
41104 if test "x$SHARED" = "x0" ; then
41105 COND_SHARED_0=""
41106 fi
41107
ceec2216
RL
41108 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
41109 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41110 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
41111 fi
41112
41113 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
41114 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41115 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
41116 fi
41117
41118 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
41119 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41120 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
41121 fi
41122
a848cd7e
SC
41123 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41124 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41125 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41126 fi
41127
41128 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41129 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41130 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41131 fi
41132
41133 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41134 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41135 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41136 fi
41137
41138 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41139 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41140 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41141 fi
41142
41143 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41144 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41145 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41146 fi
41147
41148 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41149 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41150 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41151 fi
41152
41153 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41154 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41155 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41156 fi
41157
41158 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41159 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41160 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41161 fi
41162
41163 COND_SHARED_1="#"
41164 if test "x$SHARED" = "x1" ; then
41165 COND_SHARED_1=""
41166 fi
41167
41168 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41169 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41170 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41171 fi
41172
a30f955f
VS
41173 COND_TOOLKIT_="#"
41174 if test "x$TOOLKIT" = "x" ; then
41175 COND_TOOLKIT_=""
41176 fi
41177
a848cd7e
SC
41178 COND_TOOLKIT_COCOA="#"
41179 if test "x$TOOLKIT" = "xCOCOA" ; then
41180 COND_TOOLKIT_COCOA=""
41181 fi
41182
a49baeab
DE
41183 COND_TOOLKIT_COCOA_USE_GUI_1="#"
41184 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
41185 COND_TOOLKIT_COCOA_USE_GUI_1=""
41186 fi
41187
a848cd7e
SC
41188 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41189 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41190 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41191 fi
41192
41193 COND_TOOLKIT_GTK="#"
41194 if test "x$TOOLKIT" = "xGTK" ; then
41195 COND_TOOLKIT_GTK=""
41196 fi
41197
41198 COND_TOOLKIT_GTK_USE_GUI_1="#"
41199 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41200 COND_TOOLKIT_GTK_USE_GUI_1=""
41201 fi
41202
41203 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41204 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41205 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41206 fi
41207
41208 COND_TOOLKIT_MAC="#"
41209 if test "x$TOOLKIT" = "xMAC" ; then
41210 COND_TOOLKIT_MAC=""
41211 fi
41212
41213 COND_TOOLKIT_MAC_USE_GUI_1="#"
41214 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41215 COND_TOOLKIT_MAC_USE_GUI_1=""
41216 fi
41217
41218 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41219 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41220 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41221 fi
41222
41223 COND_TOOLKIT_MGL="#"
41224 if test "x$TOOLKIT" = "xMGL" ; then
41225 COND_TOOLKIT_MGL=""
41226 fi
41227
41228 COND_TOOLKIT_MGL_USE_GUI_1="#"
41229 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41230 COND_TOOLKIT_MGL_USE_GUI_1=""
41231 fi
41232
41233 COND_TOOLKIT_MOTIF="#"
41234 if test "x$TOOLKIT" = "xMOTIF" ; then
41235 COND_TOOLKIT_MOTIF=""
41236 fi
41237
41238 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41239 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41240 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41241 fi
41242
41243 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41244 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41245 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41246 fi
41247
41248 COND_TOOLKIT_MSW="#"
41249 if test "x$TOOLKIT" = "xMSW" ; then
41250 COND_TOOLKIT_MSW=""
41251 fi
41252
41253 COND_TOOLKIT_MSW_USE_GUI_1="#"
41254 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41255 COND_TOOLKIT_MSW_USE_GUI_1=""
41256 fi
41257
41258 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41259 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41260 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41261 fi
41262
41263 COND_TOOLKIT_PM="#"
41264 if test "x$TOOLKIT" = "xPM" ; then
41265 COND_TOOLKIT_PM=""
41266 fi
41267
41268 COND_TOOLKIT_PM_USE_GUI_1="#"
41269 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41270 COND_TOOLKIT_PM_USE_GUI_1=""
41271 fi
41272
41273 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41274 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41275 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41276 fi
41277
3fd9c298
DE
41278 COND_TOOLKIT_WINCE="#"
41279 if test "x$TOOLKIT" = "xWINCE" ; then
41280 COND_TOOLKIT_WINCE=""
41281 fi
41282
41283 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41284 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41285 COND_TOOLKIT_WINCE_USE_GUI_1=""
41286 fi
41287
41288 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41289 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41290 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41291 fi
41292
a848cd7e
SC
41293 COND_TOOLKIT_X11="#"
41294 if test "x$TOOLKIT" = "xX11" ; then
41295 COND_TOOLKIT_X11=""
41296 fi
41297
41298 COND_TOOLKIT_X11_USE_GUI_1="#"
41299 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41300 COND_TOOLKIT_X11_USE_GUI_1=""
41301 fi
41302
41303 COND_UNICODE_1="#"
41304 if test "x$UNICODE" = "x1" ; then
41305 COND_UNICODE_1=""
41306 fi
41307
41308 COND_USE_EXCEPTIONS_0="#"
41309 if test "x$USE_EXCEPTIONS" = "x0" ; then
41310 COND_USE_EXCEPTIONS_0=""
41311 fi
41312
41313 COND_USE_EXCEPTIONS_1="#"
41314 if test "x$USE_EXCEPTIONS" = "x1" ; then
41315 COND_USE_EXCEPTIONS_1=""
41316 fi
41317
41318 COND_USE_GUI_0="#"
41319 if test "x$USE_GUI" = "x0" ; then
41320 COND_USE_GUI_0=""
41321 fi
41322
41323 COND_USE_GUI_1="#"
41324 if test "x$USE_GUI" = "x1" ; then
41325 COND_USE_GUI_1=""
41326 fi
41327
41328 COND_USE_GUI_1_WXUNIV_0="#"
41329 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41330 COND_USE_GUI_1_WXUNIV_0=""
41331 fi
41332
41333 COND_USE_GUI_1_WXUNIV_1="#"
41334 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41335 COND_USE_GUI_1_WXUNIV_1=""
41336 fi
41337
41338 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41339 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41340 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41341 fi
41342
41343 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41344 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41345 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41346 fi
41347
41348 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41349 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41350 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41351 fi
41352
ceec2216
RL
41353 COND_USE_ODBC_1="#"
41354 if test "x$USE_ODBC" = "x1" ; then
41355 COND_USE_ODBC_1=""
41356 fi
41357
ffa0583f
RL
41358 COND_USE_OPENGL_1="#"
41359 if test "x$USE_OPENGL" = "x1" ; then
41360 COND_USE_OPENGL_1=""
41361 fi
41362
a848cd7e
SC
41363 COND_USE_PLUGINS_0="#"
41364 if test "x$USE_PLUGINS" = "x0" ; then
41365 COND_USE_PLUGINS_0=""
41366 fi
41367
41368 COND_USE_SOSYMLINKS_1="#"
41369 if test "x$USE_SOSYMLINKS" = "x1" ; then
41370 COND_USE_SOSYMLINKS_1=""
41371 fi
41372
41373 COND_USE_SOVERLINUX_1="#"
41374 if test "x$USE_SOVERLINUX" = "x1" ; then
41375 COND_USE_SOVERLINUX_1=""
41376 fi
41377
41378 COND_USE_SOVERSION_0="#"
41379 if test "x$USE_SOVERSION" = "x0" ; then
41380 COND_USE_SOVERSION_0=""
41381 fi
41382
41383 COND_USE_SOVERSOLARIS_1="#"
41384 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41385 COND_USE_SOVERSOLARIS_1=""
41386 fi
41387
a13a7f89
RL
41388 COND_USE_XRC_1="#"
41389 if test "x$USE_XRC" = "x1" ; then
41390 COND_USE_XRC_1=""
41391 fi
41392
a848cd7e
SC
41393 COND_WITH_PLUGIN_SDL_1="#"
41394 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41395 COND_WITH_PLUGIN_SDL_1=""
41396 fi
41397
1e6eb025
VZ
41398 COND_WXUNIV_0="#"
41399 if test "x$WXUNIV" = "x0" ; then
41400 COND_WXUNIV_0=""
41401 fi
41402
a848cd7e
SC
41403 COND_WXUNIV_1="#"
41404 if test "x$WXUNIV" = "x1" ; then
41405 COND_WXUNIV_1=""
41406 fi
41407
41408 COND_WXUSE_EXPAT_BUILTIN="#"
41409 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41410 COND_WXUSE_EXPAT_BUILTIN=""
41411 fi
41412
41413 COND_WXUSE_LIBJPEG_BUILTIN="#"
41414 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41415 COND_WXUSE_LIBJPEG_BUILTIN=""
41416 fi
41417
41418 COND_WXUSE_LIBPNG_BUILTIN="#"
41419 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41420 COND_WXUSE_LIBPNG_BUILTIN=""
41421 fi
41422
41423 COND_WXUSE_LIBTIFF_BUILTIN="#"
41424 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41425 COND_WXUSE_LIBTIFF_BUILTIN=""
41426 fi
41427
41428 COND_WXUSE_ODBC_BUILTIN="#"
41429 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41430 COND_WXUSE_ODBC_BUILTIN=""
41431 fi
41432
41433 COND_WXUSE_REGEX_BUILTIN="#"
41434 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41435 COND_WXUSE_REGEX_BUILTIN=""
41436 fi
41437
41438 COND_WXUSE_ZLIB_BUILTIN="#"
41439 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41440 COND_WXUSE_ZLIB_BUILTIN=""
41441 fi
41442
41443
41444
2057db16
VS
41445 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41446 { { 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
41447echo "$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;}
41448 { (exit 1); exit 1; }; }
41449 fi
41450
a848cd7e 41451
ceec2216
RL
41452if test "$wxUSE_SHARED" = "yes"; then
41453
41454 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41455 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41456
5b674b9d
DE
41457 case "${host}" in
41458 *-pc-os2_emx | *-pc-os2-emx )
41459 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41460 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41461 cp -p ${srcdir}/src/os2/dllnames.sh .
41462 cp -p ${srcdir}/src/os2/dllar.sh .
41463 ;;
41464 esac
ceec2216
RL
41465else
41466
41467 EXE_LINKER="$CXX -o"
41468
41469fi
a848cd7e 41470
74b84332 41471GCC_PRAGMA_FLAGS=""
c08ebc62
DE
41472PCH_FLAGS=""
41473if test $GCC_PCH = 1 ; then
41474 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41475 PCH_FLAGS="-DWX_PRECOMP"
41476else
a848cd7e
SC
41477 case "${host}" in
41478 powerpc-*-darwin* )
74b84332 41479 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41480 ;;
bea8e651 41481 *-*-mingw32* )
1f344abf
VS
41482 if test "$wxUSE_STL" = "yes" -o \
41483 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41484 "$wxUSE_NO_RTTI" != "yes"; then
41485 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41486echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41487 cat >conftest.$ac_ext <<_ACEOF
41488/* confdefs.h. */
41489_ACEOF
41490cat confdefs.h >>conftest.$ac_ext
41491cat >>conftest.$ac_ext <<_ACEOF
41492/* end confdefs.h. */
41493
3314e67b
RR
41494int
41495main ()
41496{
41497#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
41498 #error "Not GCC 3.2 or greater"
41499 #endif
41500
41501 ;
41502 return 0;
41503}
41504_ACEOF
41505rm -f conftest.$ac_objext
41506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41507 (eval $ac_compile) 2>conftest.er1
41508 ac_status=$?
41509 grep -v '^ *+' conftest.er1 >conftest.err
41510 rm -f conftest.er1
41511 cat conftest.err >&5
41512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41513 (exit $ac_status); } &&
da4486fb 41514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
41515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41516 (eval $ac_try) 2>&5
41517 ac_status=$?
41518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519 (exit $ac_status); }; } &&
41520 { ac_try='test -s conftest.$ac_objext'
41521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41522 (eval $ac_try) 2>&5
41523 ac_status=$?
41524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41525 (exit $ac_status); }; }; then
41526 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41527 echo "$as_me:$LINENO: result: yes" >&5
41528echo "${ECHO_T}yes" >&6
41529else
41530 echo "$as_me: failed program was:" >&5
41531sed 's/^/| /' conftest.$ac_ext >&5
41532
41533echo "$as_me:$LINENO: result: no" >&5
41534echo "${ECHO_T}no" >&6
41535fi
41536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41537 fi
41538 ;;
41539 *-pc-os2_emx | *-pc-os2-emx )
41540 if test "$wxUSE_STL" = "yes"; then
41541 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
41542echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41543 cat >conftest.$ac_ext <<_ACEOF
41544/* confdefs.h. */
41545_ACEOF
41546cat confdefs.h >>conftest.$ac_ext
41547cat >>conftest.$ac_ext <<_ACEOF
41548/* end confdefs.h. */
41549
bea8e651
MB
41550int
41551main ()
41552{
1f344abf 41553#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41554 #error "Not GCC 3.2 or greater"
41555 #endif
41556
41557 ;
41558 return 0;
41559}
41560_ACEOF
41561rm -f conftest.$ac_objext
41562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41563 (eval $ac_compile) 2>conftest.er1
bea8e651 41564 ac_status=$?
ac1cb8d3
VS
41565 grep -v '^ *+' conftest.er1 >conftest.err
41566 rm -f conftest.er1
41567 cat conftest.err >&5
bea8e651
MB
41568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41569 (exit $ac_status); } &&
da4486fb 41570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41572 (eval $ac_try) 2>&5
41573 ac_status=$?
41574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41575 (exit $ac_status); }; } &&
41576 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41578 (eval $ac_try) 2>&5
41579 ac_status=$?
41580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581 (exit $ac_status); }; }; then
74b84332 41582 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41583 echo "$as_me:$LINENO: result: yes" >&5
41584echo "${ECHO_T}yes" >&6
41585else
41586 echo "$as_me: failed program was:" >&5
41587sed 's/^/| /' conftest.$ac_ext >&5
41588
41589echo "$as_me:$LINENO: result: no" >&5
41590echo "${ECHO_T}no" >&6
41591fi
ac1cb8d3 41592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41593 fi
41594 ;;
a848cd7e
SC
41595 esac
41596fi
d2083416 41597CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41598
41599
41600SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41601
41602
41603
41604
41605
41606
41607
41608
41609
41610
41611
41612
41613
41614
41615
41616
41617
41618
41619
41620
41621
41622
41623
41624
41625
41626
41627
41628
41629
41630
41631
41632
41633
41634
41635
41636
41637
41638
41639
41640
41641
41642
a848cd7e
SC
41643
41644
41645
41646
41647
41648
41649
41650
41651
41652
41653
41654
41655
41656
41657
41658
41659
41660
74b84332 41661
a848cd7e
SC
41662
41663
41664echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41665echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41666set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41667if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41668 echo $ECHO_N "(cached) $ECHO_C" >&6
41669else
41670 cat >conftest.make <<\_ACEOF
41671all:
41672 @echo 'ac_maketemp="$(MAKE)"'
41673_ACEOF
41674# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41675eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41676if test -n "$ac_maketemp"; then
41677 eval ac_cv_prog_make_${ac_make}_set=yes
41678else
41679 eval ac_cv_prog_make_${ac_make}_set=no
41680fi
41681rm -f conftest.make
41682fi
41683if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41684 echo "$as_me:$LINENO: result: yes" >&5
41685echo "${ECHO_T}yes" >&6
41686 SET_MAKE=
41687else
41688 echo "$as_me:$LINENO: result: no" >&5
41689echo "${ECHO_T}no" >&6
41690 SET_MAKE="MAKE=${MAKE-make}"
41691fi
41692
41693
a848cd7e 41694
ceec2216
RL
41695 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41696
a848cd7e 41697
ceec2216 41698 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41699
a848cd7e 41700
ceec2216 41701 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41702
ceec2216
RL
41703
41704 ac_config_files="$ac_config_files version-script Makefile"
41705
41706
41707 ac_config_commands="$ac_config_commands wx-config
41708 "
a848cd7e
SC
41709
41710
9103d280
RL
41711
41712
a848cd7e
SC
41713if test "$wxUSE_GUI" = "yes"; then
41714 SUBDIRS="samples demos utils contrib"
41715else SUBDIRS="samples utils"
41716fi
41717
41718
41719
41720# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41721if test "${with_cppunit_prefix+set}" = set; then
41722 withval="$with_cppunit_prefix"
41723 cppunit_config_prefix="$withval"
41724else
41725 cppunit_config_prefix=""
41726fi;
41727
41728# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41729if test "${with_cppunit_exec_prefix+set}" = set; then
41730 withval="$with_cppunit_exec_prefix"
41731 cppunit_config_exec_prefix="$withval"
41732else
41733 cppunit_config_exec_prefix=""
41734fi;
41735
41736 if test x$cppunit_config_exec_prefix != x ; then
41737 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41738 if test x${CPPUNIT_CONFIG+set} != xset ; then
41739 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41740 fi
41741 fi
41742 if test x$cppunit_config_prefix != x ; then
41743 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41744 if test x${CPPUNIT_CONFIG+set} != xset ; then
41745 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41746 fi
41747 fi
41748
41749 # Extract the first word of "cppunit-config", so it can be a program name with args.
41750set dummy cppunit-config; ac_word=$2
41751echo "$as_me:$LINENO: checking for $ac_word" >&5
41752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41753if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41754 echo $ECHO_N "(cached) $ECHO_C" >&6
41755else
41756 case $CPPUNIT_CONFIG in
41757 [\\/]* | ?:[\\/]*)
41758 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41759 ;;
41760 *)
41761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41762for as_dir in $PATH
41763do
41764 IFS=$as_save_IFS
41765 test -z "$as_dir" && as_dir=.
41766 for ac_exec_ext in '' $ac_executable_extensions; do
41767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41768 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41770 break 2
41771 fi
41772done
41773done
41774
41775 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41776 ;;
41777esac
41778fi
41779CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41780
41781if test -n "$CPPUNIT_CONFIG"; then
41782 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41783echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41784else
41785 echo "$as_me:$LINENO: result: no" >&5
41786echo "${ECHO_T}no" >&6
41787fi
41788
41789 cppunit_version_min=1.8.0
41790
41791 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41792echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41793 no_cppunit=""
41794 if test "$CPPUNIT_CONFIG" = "no" ; then
41795 no_cppunit=yes
41796 else
41797 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41798 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41799 cppunit_version=`$CPPUNIT_CONFIG --version`
41800
41801 cppunit_major_version=`echo $cppunit_version | \
41802 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41803 cppunit_minor_version=`echo $cppunit_version | \
41804 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41805 cppunit_micro_version=`echo $cppunit_version | \
41806 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41807
41808 cppunit_major_min=`echo $cppunit_version_min | \
41809 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41810 cppunit_minor_min=`echo $cppunit_version_min | \
41811 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41812 cppunit_micro_min=`echo $cppunit_version_min | \
41813 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41814
41815 cppunit_version_proper=`expr \
41816 $cppunit_major_version \> $cppunit_major_min \| \
41817 $cppunit_major_version \= $cppunit_major_min \& \
41818 $cppunit_minor_version \> $cppunit_minor_min \| \
41819 $cppunit_major_version \= $cppunit_major_min \& \
41820 $cppunit_minor_version \= $cppunit_minor_min \& \
41821 $cppunit_micro_version \>= $cppunit_micro_min `
41822
41823 if test "$cppunit_version_proper" = "1" ; then
41824 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41825echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41826 else
41827 echo "$as_me:$LINENO: result: no" >&5
41828echo "${ECHO_T}no" >&6
41829 no_cppunit=yes
41830 fi
41831 fi
41832
41833 if test "x$no_cppunit" = x ; then
c2218763 41834 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41835 else
41836 CPPUNIT_CFLAGS=""
41837 CPPUNIT_LIBS=""
c2218763 41838 :
a848cd7e
SC
41839 fi
41840
41841
41842
41843
41844
41845for subdir in `echo $SUBDIRS`; do
41846 if test -d ${srcdir}/${subdir} ; then
41847 if test "$wxUSE_GUI" = "yes"; then
41848 if test ${subdir} = "samples"; then
41849 makefiles="samples/Makefile.in $makefiles"
41850 for sample in `echo $SAMPLES_SUBDIRS`; do
41851 if test -d $srcdir/samples/$sample; then
41852 makefiles="samples/$sample/Makefile.in $makefiles"
41853 fi
41854 done
41855 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41856 fi
41857 else if test ${subdir} = "samples"; then
41858 makefiles="samples/Makefile.in samples/console/Makefile.in"
41859 elif test ${subdir} = "utils"; then
6537ccf8
VS
41860 makefiles=""
41861 for util in HelpGen tex2rtf ; do
41862 if test -d $srcdir/utils/$util ; then
41863 makefiles="utils/$util/Makefile.in \
41864 utils/$util/src/Makefile.in \
41865 $makefiles"
41866 fi
41867 done
a848cd7e
SC
41868 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41869 fi
41870 fi
41871
41872 for mkin in $makefiles ; do
41873 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41874 ac_config_files="$ac_config_files $mk"
41875
41876 done
41877 fi
41878done
41879
41880
41881cat >confcache <<\_ACEOF
41882# This file is a shell script that caches the results of configure
41883# tests run on this system so they can be shared between configure
41884# scripts and configure runs, see configure's option --config-cache.
41885# It is not useful on other systems. If it contains results you don't
41886# want to keep, you may remove or edit it.
41887#
41888# config.status only pays attention to the cache file if you give it
41889# the --recheck option to rerun configure.
41890#
41891# `ac_cv_env_foo' variables (set or unset) will be overridden when
41892# loading this file, other *unset* `ac_cv_foo' will be assigned the
41893# following values.
41894
41895_ACEOF
41896
41897# The following way of writing the cache mishandles newlines in values,
41898# but we know of no workaround that is simple, portable, and efficient.
41899# So, don't put newlines in cache variables' values.
41900# Ultrix sh set writes to stderr and can't be redirected directly,
41901# and sets the high bit in the cache file unless we assign to the vars.
41902{
41903 (set) 2>&1 |
41904 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41905 *ac_space=\ *)
41906 # `set' does not quote correctly, so add quotes (double-quote
41907 # substitution turns \\\\ into \\, and sed turns \\ into \).
41908 sed -n \
ac1cb8d3
VS
41909 "s/'/'\\\\''/g;
41910 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41911 ;;
41912 *)
41913 # `set' quotes correctly as required by POSIX, so do not add quotes.
41914 sed -n \
ac1cb8d3 41915 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41916 ;;
41917 esac;
41918} |
41919 sed '
41920 t clear
41921 : clear
41922 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41923 t end
41924 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41925 : end' >>confcache
41926if diff $cache_file confcache >/dev/null 2>&1; then :; else
41927 if test -w $cache_file; then
41928 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41929 cat confcache >$cache_file
41930 else
41931 echo "not updating unwritable cache $cache_file"
41932 fi
41933fi
41934rm -f confcache
41935
41936test "x$prefix" = xNONE && prefix=$ac_default_prefix
41937# Let make expand exec_prefix.
41938test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41939
41940# VPATH may cause trouble with some makes, so we remove $(srcdir),
41941# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41942# trailing colons and then remove the whole line if VPATH becomes empty
41943# (actually we leave an empty line to preserve line numbers).
41944if test "x$srcdir" = x.; then
ac1cb8d3 41945 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41946s/:*\$(srcdir):*/:/;
41947s/:*\${srcdir}:*/:/;
41948s/:*@srcdir@:*/:/;
ac1cb8d3 41949s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41950s/:*$//;
ac1cb8d3 41951s/^[^=]*=[ ]*$//;
a848cd7e
SC
41952}'
41953fi
41954
41955DEFS=-DHAVE_CONFIG_H
41956
41957ac_libobjs=
41958ac_ltlibobjs=
41959for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41960 # 1. Remove the extension, and $U if already installed.
41961 ac_i=`echo "$ac_i" |
ac1cb8d3 41962 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41963 # 2. Add them.
41964 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41965 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41966done
41967LIBOBJS=$ac_libobjs
41968
41969LTLIBOBJS=$ac_ltlibobjs
41970
41971
41972
41973: ${CONFIG_STATUS=./config.status}
41974ac_clean_files_save=$ac_clean_files
41975ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41976{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41977echo "$as_me: creating $CONFIG_STATUS" >&6;}
41978cat >$CONFIG_STATUS <<_ACEOF
41979#! $SHELL
41980# Generated by $as_me.
41981# Run this file to recreate the current configuration.
41982# Compiler output produced by configure, useful for debugging
41983# configure, is in config.log if it exists.
41984
41985debug=false
41986ac_cs_recheck=false
41987ac_cs_silent=false
41988SHELL=\${CONFIG_SHELL-$SHELL}
41989_ACEOF
41990
41991cat >>$CONFIG_STATUS <<\_ACEOF
41992## --------------------- ##
41993## M4sh Initialization. ##
41994## --------------------- ##
41995
41996# Be Bourne compatible
41997if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41998 emulate sh
41999 NULLCMD=:
42000 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42001 # is contrary to our usage. Disable this feature.
42002 alias -g '${1+"$@"}'='"$@"'
42003elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42004 set -o posix
42005fi
ac1cb8d3 42006DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42007
42008# Support unset when possible.
ac1cb8d3 42009if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42010 as_unset=unset
42011else
42012 as_unset=false
42013fi
42014
42015
42016# Work around bugs in pre-3.0 UWIN ksh.
42017$as_unset ENV MAIL MAILPATH
42018PS1='$ '
42019PS2='> '
42020PS4='+ '
42021
42022# NLS nuisances.
42023for as_var in \
42024 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42025 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42026 LC_TELEPHONE LC_TIME
42027do
ac1cb8d3 42028 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42029 eval $as_var=C; export $as_var
42030 else
42031 $as_unset $as_var
42032 fi
42033done
42034
42035# Required to use basename.
42036if expr a : '\(a\)' >/dev/null 2>&1; then
42037 as_expr=expr
42038else
42039 as_expr=false
42040fi
42041
42042if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42043 as_basename=basename
42044else
42045 as_basename=false
42046fi
42047
42048
42049# Name of the executable.
42050as_me=`$as_basename "$0" ||
42051$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42052 X"$0" : 'X\(//\)$' \| \
42053 X"$0" : 'X\(/\)$' \| \
42054 . : '\(.\)' 2>/dev/null ||
42055echo X/"$0" |
42056 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42057 /^X\/\(\/\/\)$/{ s//\1/; q; }
42058 /^X\/\(\/\).*/{ s//\1/; q; }
42059 s/.*/./; q'`
42060
42061
42062# PATH needs CR, and LINENO needs CR and PATH.
42063# Avoid depending upon Character Ranges.
42064as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42065as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42066as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42067as_cr_digits='0123456789'
42068as_cr_alnum=$as_cr_Letters$as_cr_digits
42069
42070# The user is always right.
42071if test "${PATH_SEPARATOR+set}" != set; then
42072 echo "#! /bin/sh" >conf$$.sh
42073 echo "exit 0" >>conf$$.sh
42074 chmod +x conf$$.sh
42075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42076 PATH_SEPARATOR=';'
42077 else
42078 PATH_SEPARATOR=:
42079 fi
42080 rm -f conf$$.sh
42081fi
42082
42083
42084 as_lineno_1=$LINENO
42085 as_lineno_2=$LINENO
42086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42087 test "x$as_lineno_1" != "x$as_lineno_2" &&
42088 test "x$as_lineno_3" = "x$as_lineno_2" || {
42089 # Find who we are. Look in the path if we contain no path at all
42090 # relative or not.
42091 case $0 in
42092 *[\\/]* ) as_myself=$0 ;;
42093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42094for as_dir in $PATH
42095do
42096 IFS=$as_save_IFS
42097 test -z "$as_dir" && as_dir=.
42098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42099done
42100
42101 ;;
42102 esac
42103 # We did not find ourselves, most probably we were run as `sh COMMAND'
42104 # in which case we are not to be found in the path.
42105 if test "x$as_myself" = x; then
42106 as_myself=$0
42107 fi
42108 if test ! -f "$as_myself"; then
42109 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42110echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42111 { (exit 1); exit 1; }; }
42112 fi
42113 case $CONFIG_SHELL in
42114 '')
42115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42116for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42117do
42118 IFS=$as_save_IFS
42119 test -z "$as_dir" && as_dir=.
42120 for as_base in sh bash ksh sh5; do
42121 case $as_dir in
42122 /*)
42123 if ("$as_dir/$as_base" -c '
42124 as_lineno_1=$LINENO
42125 as_lineno_2=$LINENO
42126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42127 test "x$as_lineno_1" != "x$as_lineno_2" &&
42128 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42129 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42130 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42131 CONFIG_SHELL=$as_dir/$as_base
42132 export CONFIG_SHELL
42133 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42134 fi;;
42135 esac
42136 done
42137done
42138;;
42139 esac
42140
42141 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42142 # uniformly replaced by the line number. The first 'sed' inserts a
42143 # line-number line before each line; the second 'sed' does the real
42144 # work. The second script uses 'N' to pair each line-number line
42145 # with the numbered line, and appends trailing '-' during
42146 # substitution so that $LINENO is not a special case at line end.
42147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42148 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42149 sed '=' <$as_myself |
42150 sed '
42151 N
42152 s,$,-,
42153 : loop
42154 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42155 t loop
42156 s,-$,,
42157 s,^['$as_cr_digits']*\n,,
42158 ' >$as_me.lineno &&
42159 chmod +x $as_me.lineno ||
42160 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42161echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42162 { (exit 1); exit 1; }; }
42163
42164 # Don't try to exec as it changes $[0], causing all sort of problems
42165 # (the dirname of $[0] is not the place where we might find the
42166 # original and so on. Autoconf is especially sensible to this).
42167 . ./$as_me.lineno
42168 # Exit status is that of the last command.
42169 exit
42170}
42171
42172
42173case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42174 *c*,-n*) ECHO_N= ECHO_C='
42175' ECHO_T=' ' ;;
42176 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42177 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42178esac
42179
42180if expr a : '\(a\)' >/dev/null 2>&1; then
42181 as_expr=expr
42182else
42183 as_expr=false
42184fi
42185
42186rm -f conf$$ conf$$.exe conf$$.file
42187echo >conf$$.file
42188if ln -s conf$$.file conf$$ 2>/dev/null; then
42189 # We could just check for DJGPP; but this test a) works b) is more generic
42190 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42191 if test -f conf$$.exe; then
42192 # Don't use ln at all; we don't have any links
42193 as_ln_s='cp -p'
42194 else
42195 as_ln_s='ln -s'
42196 fi
42197elif ln conf$$.file conf$$ 2>/dev/null; then
42198 as_ln_s=ln
42199else
42200 as_ln_s='cp -p'
42201fi
42202rm -f conf$$ conf$$.exe conf$$.file
42203
42204if mkdir -p . 2>/dev/null; then
42205 as_mkdir_p=:
42206else
ac1cb8d3 42207 test -d ./-p && rmdir ./-p
a848cd7e
SC
42208 as_mkdir_p=false
42209fi
42210
42211as_executable_p="test -f"
42212
42213# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42214as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42215
42216# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42217as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42218
42219
42220# IFS
42221# We need space, tab and new line, in precisely that order.
42222as_nl='
42223'
42224IFS=" $as_nl"
42225
42226# CDPATH.
42227$as_unset CDPATH
42228
42229exec 6>&1
42230
42231# Open the log real soon, to keep \$[0] and so on meaningful, and to
42232# report actual input values of CONFIG_FILES etc. instead of their
42233# values after options handling. Logging --version etc. is OK.
42234exec 5>>config.log
42235{
42236 echo
42237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42238## Running $as_me. ##
42239_ASBOX
42240} >&5
42241cat >&5 <<_CSEOF
42242
7714864e 42243This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42244generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42245
42246 CONFIG_FILES = $CONFIG_FILES
42247 CONFIG_HEADERS = $CONFIG_HEADERS
42248 CONFIG_LINKS = $CONFIG_LINKS
42249 CONFIG_COMMANDS = $CONFIG_COMMANDS
42250 $ $0 $@
42251
42252_CSEOF
42253echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42254echo >&5
42255_ACEOF
42256
42257# Files that config.status was made for.
42258if test -n "$ac_config_files"; then
42259 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42260fi
42261
42262if test -n "$ac_config_headers"; then
42263 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42264fi
42265
42266if test -n "$ac_config_links"; then
42267 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42268fi
42269
42270if test -n "$ac_config_commands"; then
42271 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42272fi
42273
42274cat >>$CONFIG_STATUS <<\_ACEOF
42275
42276ac_cs_usage="\
42277\`$as_me' instantiates files from templates according to the
42278current configuration.
42279
42280Usage: $0 [OPTIONS] [FILE]...
42281
42282 -h, --help print this help, then exit
42283 -V, --version print version number, then exit
42284 -q, --quiet do not print progress messages
42285 -d, --debug don't remove temporary files
42286 --recheck update $as_me by reconfiguring in the same conditions
42287 --file=FILE[:TEMPLATE]
ac1cb8d3 42288 instantiate the configuration file FILE
a848cd7e 42289 --header=FILE[:TEMPLATE]
ac1cb8d3 42290 instantiate the configuration header FILE
a848cd7e
SC
42291
42292Configuration files:
42293$config_files
42294
42295Configuration headers:
42296$config_headers
42297
42298Configuration commands:
42299$config_commands
42300
42301Report bugs to <bug-autoconf@gnu.org>."
42302_ACEOF
42303
42304cat >>$CONFIG_STATUS <<_ACEOF
42305ac_cs_version="\\
7714864e 42306wxWidgets config.status 2.5.3
ac1cb8d3 42307configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42308 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42309
ac1cb8d3 42310Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42311This config.status script is free software; the Free Software Foundation
42312gives unlimited permission to copy, distribute and modify it."
42313srcdir=$srcdir
42314INSTALL="$INSTALL"
42315_ACEOF
42316
42317cat >>$CONFIG_STATUS <<\_ACEOF
42318# If no file are specified by the user, then we need to provide default
42319# value. By we need to know if files were specified by the user.
42320ac_need_defaults=:
42321while test $# != 0
42322do
42323 case $1 in
42324 --*=*)
42325 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42326 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42327 ac_shift=:
42328 ;;
42329 -*)
42330 ac_option=$1
42331 ac_optarg=$2
42332 ac_shift=shift
42333 ;;
42334 *) # This is not an option, so the user has probably given explicit
42335 # arguments.
42336 ac_option=$1
42337 ac_need_defaults=false;;
42338 esac
42339
42340 case $ac_option in
42341 # Handling of the options.
42342_ACEOF
42343cat >>$CONFIG_STATUS <<\_ACEOF
42344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42345 ac_cs_recheck=: ;;
42346 --version | --vers* | -V )
42347 echo "$ac_cs_version"; exit 0 ;;
42348 --he | --h)
42349 # Conflict between --help and --header
42350 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42351Try \`$0 --help' for more information." >&5
42352echo "$as_me: error: ambiguous option: $1
42353Try \`$0 --help' for more information." >&2;}
42354 { (exit 1); exit 1; }; };;
42355 --help | --hel | -h )
42356 echo "$ac_cs_usage"; exit 0 ;;
42357 --debug | --d* | -d )
42358 debug=: ;;
42359 --file | --fil | --fi | --f )
42360 $ac_shift
42361 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42362 ac_need_defaults=false;;
42363 --header | --heade | --head | --hea )
42364 $ac_shift
42365 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42366 ac_need_defaults=false;;
42367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42369 ac_cs_silent=: ;;
42370
42371 # This is an error.
42372 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42373Try \`$0 --help' for more information." >&5
42374echo "$as_me: error: unrecognized option: $1
42375Try \`$0 --help' for more information." >&2;}
42376 { (exit 1); exit 1; }; } ;;
42377
42378 *) ac_config_targets="$ac_config_targets $1" ;;
42379
42380 esac
42381 shift
42382done
42383
42384ac_configure_extra_args=
42385
42386if $ac_cs_silent; then
42387 exec 6>/dev/null
42388 ac_configure_extra_args="$ac_configure_extra_args --silent"
42389fi
42390
42391_ACEOF
42392cat >>$CONFIG_STATUS <<_ACEOF
42393if \$ac_cs_recheck; then
42394 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42395 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42396fi
42397
42398_ACEOF
42399
42400cat >>$CONFIG_STATUS <<_ACEOF
42401#
42402# INIT-COMMANDS section.
42403#
42404
ceec2216
RL
42405 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42406 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42407 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42408 LN_S="${LN_S}"
a848cd7e
SC
42409
42410
42411_ACEOF
42412
42413
42414
42415cat >>$CONFIG_STATUS <<\_ACEOF
42416for ac_config_target in $ac_config_targets
42417do
42418 case "$ac_config_target" in
42419 # Handling of arguments.
ceec2216
RL
42420 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42421 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42422 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42423 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42424 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42425 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42426 "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
42427 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42428echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42429 { (exit 1); exit 1; }; };;
42430 esac
42431done
42432
42433# If the user did not use the arguments to specify the items to instantiate,
42434# then the envvar interface is used. Set only those that are not.
42435# We use the long form for the default assignment because of an extremely
42436# bizarre bug on SunOS 4.1.3.
42437if $ac_need_defaults; then
42438 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42439 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42440 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42441fi
42442
42443# Have a temporary directory for convenience. Make it in the build tree
42444# simply because there is no reason to put it here, and in addition,
42445# creating and moving files from /tmp can sometimes cause problems.
42446# Create a temporary directory, and hook for its removal unless debugging.
42447$debug ||
42448{
42449 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42450 trap '{ (exit 1); exit 1; }' 1 2 13 15
42451}
42452
42453# Create a (secure) tmp directory for tmp files.
42454
42455{
42456 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42457 test -n "$tmp" && test -d "$tmp"
42458} ||
42459{
42460 tmp=./confstat$$-$RANDOM
42461 (umask 077 && mkdir $tmp)
42462} ||
42463{
42464 echo "$me: cannot create a temporary directory in ." >&2
42465 { (exit 1); exit 1; }
42466}
42467
42468_ACEOF
42469
42470cat >>$CONFIG_STATUS <<_ACEOF
42471
42472#
42473# CONFIG_FILES section.
42474#
42475
42476# No need to generate the scripts if there are no CONFIG_FILES.
42477# This happens for instance when ./config.status config.h
42478if test -n "\$CONFIG_FILES"; then
42479 # Protect against being on the right side of a sed subst in config.status.
42480 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42481 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42482s,@SHELL@,$SHELL,;t t
42483s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42484s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42485s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42486s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42487s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42488s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42489s,@exec_prefix@,$exec_prefix,;t t
42490s,@prefix@,$prefix,;t t
42491s,@program_transform_name@,$program_transform_name,;t t
42492s,@bindir@,$bindir,;t t
42493s,@sbindir@,$sbindir,;t t
42494s,@libexecdir@,$libexecdir,;t t
42495s,@datadir@,$datadir,;t t
42496s,@sysconfdir@,$sysconfdir,;t t
42497s,@sharedstatedir@,$sharedstatedir,;t t
42498s,@localstatedir@,$localstatedir,;t t
42499s,@libdir@,$libdir,;t t
42500s,@includedir@,$includedir,;t t
42501s,@oldincludedir@,$oldincludedir,;t t
42502s,@infodir@,$infodir,;t t
42503s,@mandir@,$mandir,;t t
42504s,@build_alias@,$build_alias,;t t
42505s,@host_alias@,$host_alias,;t t
42506s,@target_alias@,$target_alias,;t t
42507s,@DEFS@,$DEFS,;t t
42508s,@ECHO_C@,$ECHO_C,;t t
42509s,@ECHO_N@,$ECHO_N,;t t
42510s,@ECHO_T@,$ECHO_T,;t t
42511s,@LIBS@,$LIBS,;t t
42512s,@build@,$build,;t t
42513s,@build_cpu@,$build_cpu,;t t
42514s,@build_vendor@,$build_vendor,;t t
42515s,@build_os@,$build_os,;t t
42516s,@host@,$host,;t t
42517s,@host_cpu@,$host_cpu,;t t
42518s,@host_vendor@,$host_vendor,;t t
42519s,@host_os@,$host_os,;t t
42520s,@target@,$target,;t t
42521s,@target_cpu@,$target_cpu,;t t
42522s,@target_vendor@,$target_vendor,;t t
42523s,@target_os@,$target_os,;t t
42524s,@CC@,$CC,;t t
42525s,@CFLAGS@,$CFLAGS,;t t
42526s,@LDFLAGS@,$LDFLAGS,;t t
42527s,@CPPFLAGS@,$CPPFLAGS,;t t
42528s,@ac_ct_CC@,$ac_ct_CC,;t t
42529s,@EXEEXT@,$EXEEXT,;t t
42530s,@OBJEXT@,$OBJEXT,;t t
42531s,@CPP@,$CPP,;t t
42532s,@EGREP@,$EGREP,;t t
42533s,@CXX@,$CXX,;t t
42534s,@CXXFLAGS@,$CXXFLAGS,;t t
42535s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42536s,@RANLIB@,$RANLIB,;t t
42537s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42538s,@AR@,$AR,;t t
42539s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42540s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42541s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42542s,@STRIP@,$STRIP,;t t
42543s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42544s,@LN_S@,$LN_S,;t t
42545s,@CXXCPP@,$CXXCPP,;t t
42546s,@subdirs@,$subdirs,;t t
42547s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42548s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42549s,@GTK_LIBS@,$GTK_LIBS,;t t
42550s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42551s,@X_CFLAGS@,$X_CFLAGS,;t t
42552s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42553s,@X_LIBS@,$X_LIBS,;t t
42554s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42555s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42556s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42557s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42558s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42559s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42560s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42561s,@RESCOMP@,$RESCOMP,;t t
42562s,@DEREZ@,$DEREZ,;t t
42563s,@SETFILE@,$SETFILE,;t t
42564s,@LIBICONV@,$LIBICONV,;t t
42565s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42566s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42567s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42568s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42569s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42570s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42571s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42572s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42573s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42574s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42575s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42576s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42577s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42578s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42579s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42580s,@VENDOR@,$VENDOR,;t t
42581s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42582s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42583s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42584s,@WXUNIV@,$WXUNIV,;t t
42585s,@MONOLITHIC@,$MONOLITHIC,;t t
42586s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42587s,@EXTRALIBS@,$EXTRALIBS,;t t
42588s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42589s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42590s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42591s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42592s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42593s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42594s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42595s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42596s,@UNICODE@,$UNICODE,;t t
42597s,@BUILD@,$BUILD,;t t
42598s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42599s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42600s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42601s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42602s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42603s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42604s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42605s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42606s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42607s,@SET_MAKE@,$SET_MAKE,;t t
42608s,@MAKE_SET@,$MAKE_SET,;t t
42609s,@ac_ct_AR@,$ac_ct_AR,;t t
42610s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42611s,@NM@,$NM,;t t
42612s,@ac_ct_NM@,$ac_ct_NM,;t t
42613s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42614s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42615s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42616s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42617s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42618s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 42619s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
42620s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42621s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 42622s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
42623s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42624s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42625s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42626s,@LIBPREFIX@,$LIBPREFIX,;t t
42627s,@LIBEXT@,$LIBEXT,;t t
42628s,@DLLPREFIX@,$DLLPREFIX,;t t
42629s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42630s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42631s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42632s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42633s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42634s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42635s,@PIC_FLAG@,$PIC_FLAG,;t t
42636s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42637s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42638s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42639s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42640s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42641s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42642s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42643s,@GCC_PCH@,$GCC_PCH,;t t
42644s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42645s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42646s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42647s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42648s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42649s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42650s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42651s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42652s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42653s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42654s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42655s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42656s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42657s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42658s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42659s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42660s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42661s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 42662s,@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 42663s,@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 42664s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42665s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42666s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42667s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 42668s,@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 42669s,@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 42670s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42671s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42672s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42673s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42674s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42675s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42676s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42677s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42678s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42679s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42680s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42681s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42682s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42683s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 42684s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 42685s,@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
42686s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42687s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42688s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42689s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42690s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42691s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42692s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42693s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42694s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42695s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42696s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42697s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42698s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42699s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42700s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42701s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42702s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42703s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42704s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42705s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42706s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42707s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42708s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42709s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42710s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42711s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42712s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42713s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42714s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42715s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42716s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42717s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42718s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42719s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42720s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42721s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42722s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42723s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42724s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42725s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42726s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42727s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42728s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42729s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42730s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42731s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42732s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42733s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42734s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42735s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42736s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42737s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42738s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42739s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42740s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42741s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42742s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42743s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42744s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42745s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42746s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42747s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42748s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42749s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42750s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42751s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42752s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42753s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42754s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42755s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42756s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42757s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 42758s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
42759s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42760s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42761s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42762s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42763s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42764s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42765s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42766s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 42767s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42768s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42769s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42770s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42771s,@USE_GUI@,$USE_GUI,;t t
42772s,@AFMINSTALL@,$AFMINSTALL,;t t
42773s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42774s,@TOOLKIT@,$TOOLKIT,;t t
42775s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42776s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42777s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42778s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42779s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42780s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42781s,@WIDGET_SET@,$WIDGET_SET,;t t
42782s,@WX_RELEASE@,$WX_RELEASE,;t t
42783s,@WX_VERSION@,$WX_VERSION,;t t
42784s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42785s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42786s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42787s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42788s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42789s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42790s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42791s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42792s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42793s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42794s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42795s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42796s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42797s,@DISTDIR@,$DISTDIR,;t t
42798s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42799s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42800s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42801s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42802s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42803s,@RESFLAGS@,$RESFLAGS,;t t
42804s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42805s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42806s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42807s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42808s,@MACRESCOMP@,$MACRESCOMP,;t t
42809s,@MACSETFILE@,$MACSETFILE,;t t
42810s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42811s,@GCC@,$GCC,;t t
a848cd7e 42812s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42813s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42814s,@LIBOBJS@,$LIBOBJS,;t t
42815s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42816CEOF
42817
42818_ACEOF
42819
42820 cat >>$CONFIG_STATUS <<\_ACEOF
42821 # Split the substitutions into bite-sized pieces for seds with
42822 # small command number limits, like on Digital OSF/1 and HP-UX.
42823 ac_max_sed_lines=48
42824 ac_sed_frag=1 # Number of current file.
42825 ac_beg=1 # First line for current file.
42826 ac_end=$ac_max_sed_lines # Line after last line for current file.
42827 ac_more_lines=:
42828 ac_sed_cmds=
42829 while $ac_more_lines; do
42830 if test $ac_beg -gt 1; then
42831 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42832 else
42833 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42834 fi
42835 if test ! -s $tmp/subs.frag; then
42836 ac_more_lines=false
42837 else
42838 # The purpose of the label and of the branching condition is to
42839 # speed up the sed processing (if there are no `@' at all, there
42840 # is no need to browse any of the substitutions).
42841 # These are the two extra sed commands mentioned above.
42842 (echo ':t
42843 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42844 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42845 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42846 else
ac1cb8d3 42847 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42848 fi
42849 ac_sed_frag=`expr $ac_sed_frag + 1`
42850 ac_beg=$ac_end
42851 ac_end=`expr $ac_end + $ac_max_sed_lines`
42852 fi
42853 done
42854 if test -z "$ac_sed_cmds"; then
42855 ac_sed_cmds=cat
42856 fi
42857fi # test -n "$CONFIG_FILES"
42858
42859_ACEOF
42860cat >>$CONFIG_STATUS <<\_ACEOF
42861for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42862 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42863 case $ac_file in
42864 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42865 cat >$tmp/stdin
42866 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42867 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42868 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42869 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42870 * ) ac_file_in=$ac_file.in ;;
42871 esac
42872
42873 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42874 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42875$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42876 X"$ac_file" : 'X\(//\)[^/]' \| \
42877 X"$ac_file" : 'X\(//\)$' \| \
42878 X"$ac_file" : 'X\(/\)' \| \
42879 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42880echo X"$ac_file" |
42881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42883 /^X\(\/\/\)$/{ s//\1/; q; }
42884 /^X\(\/\).*/{ s//\1/; q; }
42885 s/.*/./; q'`
42886 { if $as_mkdir_p; then
42887 mkdir -p "$ac_dir"
42888 else
42889 as_dir="$ac_dir"
42890 as_dirs=
42891 while test ! -d "$as_dir"; do
42892 as_dirs="$as_dir $as_dirs"
42893 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42894$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42895 X"$as_dir" : 'X\(//\)[^/]' \| \
42896 X"$as_dir" : 'X\(//\)$' \| \
42897 X"$as_dir" : 'X\(/\)' \| \
42898 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42899echo X"$as_dir" |
42900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42902 /^X\(\/\/\)$/{ s//\1/; q; }
42903 /^X\(\/\).*/{ s//\1/; q; }
42904 s/.*/./; q'`
42905 done
42906 test ! -n "$as_dirs" || mkdir $as_dirs
42907 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42908echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42909 { (exit 1); exit 1; }; }; }
42910
42911 ac_builddir=.
42912
42913if test "$ac_dir" != .; then
42914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42915 # A "../" for each directory in $ac_dir_suffix.
42916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42917else
42918 ac_dir_suffix= ac_top_builddir=
42919fi
42920
42921case $srcdir in
42922 .) # No --srcdir option. We are building in place.
42923 ac_srcdir=.
42924 if test -z "$ac_top_builddir"; then
42925 ac_top_srcdir=.
42926 else
42927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42928 fi ;;
42929 [\\/]* | ?:[\\/]* ) # Absolute path.
42930 ac_srcdir=$srcdir$ac_dir_suffix;
42931 ac_top_srcdir=$srcdir ;;
42932 *) # Relative path.
42933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42935esac
ac1cb8d3
VS
42936
42937# Do not use `cd foo && pwd` to compute absolute paths, because
42938# the directories may not exist.
42939case `pwd` in
42940.) ac_abs_builddir="$ac_dir";;
42941*)
42942 case "$ac_dir" in
42943 .) ac_abs_builddir=`pwd`;;
42944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42946 esac;;
42947esac
42948case $ac_abs_builddir in
42949.) ac_abs_top_builddir=${ac_top_builddir}.;;
42950*)
42951 case ${ac_top_builddir}. in
42952 .) ac_abs_top_builddir=$ac_abs_builddir;;
42953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42955 esac;;
42956esac
42957case $ac_abs_builddir in
42958.) ac_abs_srcdir=$ac_srcdir;;
42959*)
42960 case $ac_srcdir in
42961 .) ac_abs_srcdir=$ac_abs_builddir;;
42962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42964 esac;;
42965esac
42966case $ac_abs_builddir in
42967.) ac_abs_top_srcdir=$ac_top_srcdir;;
42968*)
42969 case $ac_top_srcdir in
42970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42973 esac;;
42974esac
a848cd7e
SC
42975
42976
42977 case $INSTALL in
42978 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42979 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42980 esac
42981
a848cd7e
SC
42982 # Let's still pretend it is `configure' which instantiates (i.e., don't
42983 # use $as_me), people would be surprised to read:
42984 # /* config.h. Generated by config.status. */
42985 if test x"$ac_file" = x-; then
42986 configure_input=
42987 else
42988 configure_input="$ac_file. "
42989 fi
42990 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42991 sed 's,.*/,,'` by configure."
a848cd7e
SC
42992
42993 # First look for the input files in the build tree, otherwise in the
42994 # src tree.
42995 ac_file_inputs=`IFS=:
42996 for f in $ac_file_in; do
42997 case $f in
42998 -) echo $tmp/stdin ;;
42999 [\\/$]*)
ac1cb8d3
VS
43000 # Absolute (can't be DOS-style, as IFS=:)
43001 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43002echo "$as_me: error: cannot find input file: $f" >&2;}
43003 { (exit 1); exit 1; }; }
ac1cb8d3 43004 echo "$f";;
a848cd7e 43005 *) # Relative
ac1cb8d3
VS
43006 if test -f "$f"; then
43007 # Build tree
43008 echo "$f"
43009 elif test -f "$srcdir/$f"; then
43010 # Source tree
43011 echo "$srcdir/$f"
43012 else
43013 # /dev/null tree
43014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43015echo "$as_me: error: cannot find input file: $f" >&2;}
43016 { (exit 1); exit 1; }; }
ac1cb8d3 43017 fi;;
a848cd7e
SC
43018 esac
43019 done` || { (exit 1); exit 1; }
da4486fb
VZ
43020
43021 if test x"$ac_file" != x-; then
43022 { echo "$as_me:$LINENO: creating $ac_file" >&5
43023echo "$as_me: creating $ac_file" >&6;}
43024 rm -f "$ac_file"
43025 fi
a848cd7e
SC
43026_ACEOF
43027cat >>$CONFIG_STATUS <<_ACEOF
43028 sed "$ac_vpsub
43029$extrasub
43030_ACEOF
43031cat >>$CONFIG_STATUS <<\_ACEOF
43032:t
43033/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43034s,@configure_input@,$configure_input,;t t
43035s,@srcdir@,$ac_srcdir,;t t
43036s,@abs_srcdir@,$ac_abs_srcdir,;t t
43037s,@top_srcdir@,$ac_top_srcdir,;t t
43038s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43039s,@builddir@,$ac_builddir,;t t
43040s,@abs_builddir@,$ac_abs_builddir,;t t
43041s,@top_builddir@,$ac_top_builddir,;t t
43042s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43043s,@INSTALL@,$ac_INSTALL,;t t
43044" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43045 rm -f $tmp/stdin
43046 if test x"$ac_file" != x-; then
43047 mv $tmp/out $ac_file
43048 else
43049 cat $tmp/out
43050 rm -f $tmp/out
43051 fi
43052
ceec2216
RL
43053 # Run the commands associated with the file.
43054 case $ac_file in
43055 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
43056 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
43057 esac
a848cd7e
SC
43058done
43059_ACEOF
43060cat >>$CONFIG_STATUS <<\_ACEOF
43061
43062#
43063# CONFIG_HEADER section.
43064#
43065
43066# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43067# NAME is the cpp macro being defined and VALUE is the value it is being given.
43068#
43069# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43070ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43071ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43072ac_dC=' '
43073ac_dD=',;t'
43074# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43075ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43076ac_uB='$,\1#\2define\3'
43077ac_uC=' '
43078ac_uD=',;t'
43079
43080for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43081 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43082 case $ac_file in
43083 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43084 cat >$tmp/stdin
43085 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43086 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43087 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43088 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43089 * ) ac_file_in=$ac_file.in ;;
43090 esac
43091
43092 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43093echo "$as_me: creating $ac_file" >&6;}
43094
43095 # First look for the input files in the build tree, otherwise in the
43096 # src tree.
43097 ac_file_inputs=`IFS=:
43098 for f in $ac_file_in; do
43099 case $f in
43100 -) echo $tmp/stdin ;;
43101 [\\/$]*)
ac1cb8d3
VS
43102 # Absolute (can't be DOS-style, as IFS=:)
43103 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43104echo "$as_me: error: cannot find input file: $f" >&2;}
43105 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43106 # Do quote $f, to prevent DOS paths from being IFS'd.
43107 echo "$f";;
a848cd7e 43108 *) # Relative
ac1cb8d3
VS
43109 if test -f "$f"; then
43110 # Build tree
43111 echo "$f"
43112 elif test -f "$srcdir/$f"; then
43113 # Source tree
43114 echo "$srcdir/$f"
43115 else
43116 # /dev/null tree
43117 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43118echo "$as_me: error: cannot find input file: $f" >&2;}
43119 { (exit 1); exit 1; }; }
ac1cb8d3 43120 fi;;
a848cd7e
SC
43121 esac
43122 done` || { (exit 1); exit 1; }
43123 # Remove the trailing spaces.
ac1cb8d3 43124 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43125
43126_ACEOF
43127
43128# Transform confdefs.h into two sed scripts, `conftest.defines' and
43129# `conftest.undefs', that substitutes the proper values into
43130# config.h.in to produce config.h. The first handles `#define'
43131# templates, and the second `#undef' templates.
43132# And first: Protect against being on the right side of a sed subst in
43133# config.status. Protect against being in an unquoted here document
43134# in config.status.
43135rm -f conftest.defines conftest.undefs
43136# Using a here document instead of a string reduces the quoting nightmare.
43137# Putting comments in sed scripts is not portable.
43138#
43139# `end' is used to avoid that the second main sed command (meant for
43140# 0-ary CPP macros) applies to n-ary macro definitions.
43141# See the Autoconf documentation for `clear'.
43142cat >confdef2sed.sed <<\_ACEOF
43143s/[\\&,]/\\&/g
43144s,[\\$`],\\&,g
43145t clear
43146: clear
ac1cb8d3 43147s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43148t end
ac1cb8d3 43149s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43150: end
43151_ACEOF
43152# If some macros were called several times there might be several times
43153# the same #defines, which is useless. Nevertheless, we may not want to
43154# sort them, since we want the *last* AC-DEFINE to be honored.
43155uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43156sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43157rm -f confdef2sed.sed
43158
43159# This sed command replaces #undef with comments. This is necessary, for
43160# example, in the case of _POSIX_SOURCE, which is predefined and required
43161# on some systems where configure will not decide to define it.
43162cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43163s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43164_ACEOF
43165
43166# Break up conftest.defines because some shells have a limit on the size
43167# of here documents, and old seds have small limits too (100 cmds).
43168echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43169echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43170echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43171echo ' :' >>$CONFIG_STATUS
43172rm -f conftest.tail
43173while grep . conftest.defines >/dev/null
43174do
43175 # Write a limited-size here document to $tmp/defines.sed.
43176 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43177 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43178 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43179 # Work around the forget-to-reset-the-flag bug.
43180 echo 't clr' >>$CONFIG_STATUS
43181 echo ': clr' >>$CONFIG_STATUS
43182 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43183 echo 'CEOF
43184 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43185 rm -f $tmp/in
43186 mv $tmp/out $tmp/in
43187' >>$CONFIG_STATUS
43188 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43189 rm -f conftest.defines
43190 mv conftest.tail conftest.defines
43191done
43192rm -f conftest.defines
43193echo ' fi # grep' >>$CONFIG_STATUS
43194echo >>$CONFIG_STATUS
43195
43196# Break up conftest.undefs because some shells have a limit on the size
43197# of here documents, and old seds have small limits too (100 cmds).
43198echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43199rm -f conftest.tail
43200while grep . conftest.undefs >/dev/null
43201do
43202 # Write a limited-size here document to $tmp/undefs.sed.
43203 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43204 # Speed up: don't consider the non `#undef'
ac1cb8d3 43205 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43206 # Work around the forget-to-reset-the-flag bug.
43207 echo 't clr' >>$CONFIG_STATUS
43208 echo ': clr' >>$CONFIG_STATUS
43209 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43210 echo 'CEOF
43211 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43212 rm -f $tmp/in
43213 mv $tmp/out $tmp/in
43214' >>$CONFIG_STATUS
43215 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43216 rm -f conftest.undefs
43217 mv conftest.tail conftest.undefs
43218done
43219rm -f conftest.undefs
43220
43221cat >>$CONFIG_STATUS <<\_ACEOF
43222 # Let's still pretend it is `configure' which instantiates (i.e., don't
43223 # use $as_me), people would be surprised to read:
43224 # /* config.h. Generated by config.status. */
43225 if test x"$ac_file" = x-; then
43226 echo "/* Generated by configure. */" >$tmp/config.h
43227 else
43228 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43229 fi
43230 cat $tmp/in >>$tmp/config.h
43231 rm -f $tmp/in
43232 if test x"$ac_file" != x-; then
43233 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43234 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43235echo "$as_me: $ac_file is unchanged" >&6;}
43236 else
43237 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43238$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43239 X"$ac_file" : 'X\(//\)[^/]' \| \
43240 X"$ac_file" : 'X\(//\)$' \| \
43241 X"$ac_file" : 'X\(/\)' \| \
43242 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43243echo X"$ac_file" |
43244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43246 /^X\(\/\/\)$/{ s//\1/; q; }
43247 /^X\(\/\).*/{ s//\1/; q; }
43248 s/.*/./; q'`
43249 { if $as_mkdir_p; then
43250 mkdir -p "$ac_dir"
43251 else
43252 as_dir="$ac_dir"
43253 as_dirs=
43254 while test ! -d "$as_dir"; do
43255 as_dirs="$as_dir $as_dirs"
43256 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43257$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43258 X"$as_dir" : 'X\(//\)[^/]' \| \
43259 X"$as_dir" : 'X\(//\)$' \| \
43260 X"$as_dir" : 'X\(/\)' \| \
43261 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43262echo X"$as_dir" |
43263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43265 /^X\(\/\/\)$/{ s//\1/; q; }
43266 /^X\(\/\).*/{ s//\1/; q; }
43267 s/.*/./; q'`
43268 done
43269 test ! -n "$as_dirs" || mkdir $as_dirs
43270 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43271echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43272 { (exit 1); exit 1; }; }; }
43273
43274 rm -f $ac_file
43275 mv $tmp/config.h $ac_file
43276 fi
43277 else
43278 cat $tmp/config.h
43279 rm -f $tmp/config.h
43280 fi
43281done
43282_ACEOF
43283cat >>$CONFIG_STATUS <<\_ACEOF
43284
43285#
43286# CONFIG_COMMANDS section.
43287#
43288for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43289 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43290 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43291 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43292$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43293 X"$ac_dest" : 'X\(//\)[^/]' \| \
43294 X"$ac_dest" : 'X\(//\)$' \| \
43295 X"$ac_dest" : 'X\(/\)' \| \
43296 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43297echo X"$ac_dest" |
43298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43300 /^X\(\/\/\)$/{ s//\1/; q; }
43301 /^X\(\/\).*/{ s//\1/; q; }
43302 s/.*/./; q'`
ac1cb8d3
VS
43303 { if $as_mkdir_p; then
43304 mkdir -p "$ac_dir"
43305 else
43306 as_dir="$ac_dir"
43307 as_dirs=
43308 while test ! -d "$as_dir"; do
43309 as_dirs="$as_dir $as_dirs"
43310 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43312 X"$as_dir" : 'X\(//\)[^/]' \| \
43313 X"$as_dir" : 'X\(//\)$' \| \
43314 X"$as_dir" : 'X\(/\)' \| \
43315 . : '\(.\)' 2>/dev/null ||
43316echo X"$as_dir" |
43317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43319 /^X\(\/\/\)$/{ s//\1/; q; }
43320 /^X\(\/\).*/{ s//\1/; q; }
43321 s/.*/./; q'`
43322 done
43323 test ! -n "$as_dirs" || mkdir $as_dirs
43324 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43325echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43326 { (exit 1); exit 1; }; }; }
43327
a848cd7e
SC
43328 ac_builddir=.
43329
43330if test "$ac_dir" != .; then
43331 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43332 # A "../" for each directory in $ac_dir_suffix.
43333 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43334else
43335 ac_dir_suffix= ac_top_builddir=
43336fi
43337
43338case $srcdir in
43339 .) # No --srcdir option. We are building in place.
43340 ac_srcdir=.
43341 if test -z "$ac_top_builddir"; then
43342 ac_top_srcdir=.
43343 else
43344 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43345 fi ;;
43346 [\\/]* | ?:[\\/]* ) # Absolute path.
43347 ac_srcdir=$srcdir$ac_dir_suffix;
43348 ac_top_srcdir=$srcdir ;;
43349 *) # Relative path.
43350 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43351 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43352esac
ac1cb8d3
VS
43353
43354# Do not use `cd foo && pwd` to compute absolute paths, because
43355# the directories may not exist.
43356case `pwd` in
43357.) ac_abs_builddir="$ac_dir";;
43358*)
43359 case "$ac_dir" in
43360 .) ac_abs_builddir=`pwd`;;
43361 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43362 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43363 esac;;
43364esac
43365case $ac_abs_builddir in
43366.) ac_abs_top_builddir=${ac_top_builddir}.;;
43367*)
43368 case ${ac_top_builddir}. in
43369 .) ac_abs_top_builddir=$ac_abs_builddir;;
43370 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43371 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43372 esac;;
43373esac
43374case $ac_abs_builddir in
43375.) ac_abs_srcdir=$ac_srcdir;;
43376*)
43377 case $ac_srcdir in
43378 .) ac_abs_srcdir=$ac_abs_builddir;;
43379 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43380 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43381 esac;;
43382esac
43383case $ac_abs_builddir in
43384.) ac_abs_top_srcdir=$ac_top_srcdir;;
43385*)
43386 case $ac_top_srcdir in
43387 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43388 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43389 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43390 esac;;
43391esac
a848cd7e
SC
43392
43393
43394 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43395echo "$as_me: executing $ac_dest commands" >&6;}
43396 case $ac_dest in
ceec2216
RL
43397 wx-config ) rm -f wx-config
43398 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43399 ;;
a848cd7e
SC
43400 esac
43401done
43402_ACEOF
43403
43404cat >>$CONFIG_STATUS <<\_ACEOF
43405
43406{ (exit 0); exit 0; }
43407_ACEOF
43408chmod +x $CONFIG_STATUS
43409ac_clean_files=$ac_clean_files_save
43410
43411
43412# configure is writing to config.log, and then calls config.status.
43413# config.status does its own redirection, appending to config.log.
43414# Unfortunately, on DOS this fails, as config.log is still kept open
43415# by configure, so config.status won't be able to write to it; its
43416# output is simply discarded. So we exec the FD to /dev/null,
43417# effectively closing config.log, so it can be properly (re)opened and
43418# appended to by config.status. When coming back to configure, we
43419# need to make the FD available again.
43420if test "$no_create" != yes; then
43421 ac_cs_success=:
43422 ac_config_status_args=
43423 test "$silent" = yes &&
43424 ac_config_status_args="$ac_config_status_args --quiet"
43425 exec 5>/dev/null
43426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43427 exec 5>>config.log
43428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43429 # would make configure fail if this is the last instruction.
43430 $ac_cs_success || { (exit 1); exit 1; }
43431fi
43432
43433#
43434# CONFIG_SUBDIRS section.
43435#
43436if test "$no_recursion" != yes; then
43437
43438 # Remove --cache-file and --srcdir arguments so they do not pile up.
43439 ac_sub_configure_args=
43440 ac_prev=
43441 for ac_arg in $ac_configure_args; do
43442 if test -n "$ac_prev"; then
43443 ac_prev=
43444 continue
43445 fi
43446 case $ac_arg in
43447 -cache-file | --cache-file | --cache-fil | --cache-fi \
43448 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43449 ac_prev=cache_file ;;
43450 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43451 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43452 | --c=*)
43453 ;;
43454 --config-cache | -C)
43455 ;;
43456 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43457 ac_prev=srcdir ;;
43458 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43459 ;;
43460 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43461 ac_prev=prefix ;;
43462 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43463 ;;
43464 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43465 esac
43466 done
43467
43468 # Always prepend --prefix to ensure using the same prefix
43469 # in subdir configurations.
43470 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43471
43472 ac_popdir=`pwd`
43473 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43474
43475 # Do not complain, so a configure script can configure whichever
43476 # parts of a large source tree are present.
43477 test -d $srcdir/$ac_dir || continue
43478
43479 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43480echo "$as_me: configuring in $ac_dir" >&6;}
43481 { if $as_mkdir_p; then
43482 mkdir -p "$ac_dir"
43483 else
43484 as_dir="$ac_dir"
43485 as_dirs=
43486 while test ! -d "$as_dir"; do
43487 as_dirs="$as_dir $as_dirs"
43488 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43489$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43490 X"$as_dir" : 'X\(//\)[^/]' \| \
43491 X"$as_dir" : 'X\(//\)$' \| \
43492 X"$as_dir" : 'X\(/\)' \| \
43493 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43494echo X"$as_dir" |
43495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43497 /^X\(\/\/\)$/{ s//\1/; q; }
43498 /^X\(\/\).*/{ s//\1/; q; }
43499 s/.*/./; q'`
43500 done
43501 test ! -n "$as_dirs" || mkdir $as_dirs
43502 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43503echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43504 { (exit 1); exit 1; }; }; }
43505
43506 ac_builddir=.
43507
43508if test "$ac_dir" != .; then
43509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43510 # A "../" for each directory in $ac_dir_suffix.
43511 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43512else
43513 ac_dir_suffix= ac_top_builddir=
43514fi
43515
43516case $srcdir in
43517 .) # No --srcdir option. We are building in place.
43518 ac_srcdir=.
43519 if test -z "$ac_top_builddir"; then
43520 ac_top_srcdir=.
43521 else
43522 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43523 fi ;;
43524 [\\/]* | ?:[\\/]* ) # Absolute path.
43525 ac_srcdir=$srcdir$ac_dir_suffix;
43526 ac_top_srcdir=$srcdir ;;
43527 *) # Relative path.
43528 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43529 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43530esac
ac1cb8d3
VS
43531
43532# Do not use `cd foo && pwd` to compute absolute paths, because
43533# the directories may not exist.
43534case `pwd` in
43535.) ac_abs_builddir="$ac_dir";;
43536*)
43537 case "$ac_dir" in
43538 .) ac_abs_builddir=`pwd`;;
43539 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43540 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43541 esac;;
43542esac
43543case $ac_abs_builddir in
43544.) ac_abs_top_builddir=${ac_top_builddir}.;;
43545*)
43546 case ${ac_top_builddir}. in
43547 .) ac_abs_top_builddir=$ac_abs_builddir;;
43548 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43549 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43550 esac;;
43551esac
43552case $ac_abs_builddir in
43553.) ac_abs_srcdir=$ac_srcdir;;
43554*)
43555 case $ac_srcdir in
43556 .) ac_abs_srcdir=$ac_abs_builddir;;
43557 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43558 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43559 esac;;
43560esac
43561case $ac_abs_builddir in
43562.) ac_abs_top_srcdir=$ac_top_srcdir;;
43563*)
43564 case $ac_top_srcdir in
43565 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43566 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43567 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43568 esac;;
43569esac
a848cd7e
SC
43570
43571
43572 cd $ac_dir
43573
43574 # Check for guested configure; otherwise get Cygnus style configure.
43575 if test -f $ac_srcdir/configure.gnu; then
43576 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43577 elif test -f $ac_srcdir/configure; then
43578 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43579 elif test -f $ac_srcdir/configure.in; then
43580 ac_sub_configure=$ac_configure
43581 else
43582 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43583echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43584 ac_sub_configure=
43585 fi
43586
43587 # The recursion is here.
43588 if test -n "$ac_sub_configure"; then
43589 # Make the cache file name correct relative to the subdirectory.
43590 case $cache_file in
43591 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43592 *) # Relative path.
ac1cb8d3 43593 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43594 esac
43595
43596 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43597echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43598 # The eval makes quoting arguments work.
43599 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43600 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43601 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43602echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43603 { (exit 1); exit 1; }; }
43604 fi
43605
da4486fb 43606 cd "$ac_popdir"
a848cd7e
SC
43607 done
43608fi
43609
43610
43611echo
77ffb593 43612echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43613echo ""
4d4ff94c 43614echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43615echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43616
77ffb593
JS
43617echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43618echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43619echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43620
77ffb593
JS
43621echo " What level of wxWidgets compatibility should be enabled?"
43622echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43623echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43624
77ffb593 43625echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43626echo " jpeg ${wxUSE_LIBJPEG-none}"
43627echo " png ${wxUSE_LIBPNG-none}"
43628echo " regex ${wxUSE_REGEX}"
43629echo " tiff ${wxUSE_LIBTIFF-none}"
43630if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43631echo " xpm ${wxUSE_LIBXPM-none}"
43632fi
43633echo " zlib ${wxUSE_ZLIB}"
43634echo " odbc ${wxUSE_ODBC}"
43635echo " expat ${wxUSE_EXPAT}"
43636echo " libmspack ${wxUSE_LIBMSPACK}"
43637echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 43638echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
43639
43640echo ""
43641