]> git.saurik.com Git - wxWidgets.git/blame - configure
Simplify wxRect construction at the wxPoint(0,0) with given size.
[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"
b48a2016 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 PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_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 UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
77ffb593 934 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 935 --enable-zipstream use wxZipInputStream
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
9a8f0513 947 --enable-xrc use XRC resources sub-library
a848cd7e
SC
948 --enable-constraints use layout-constraints system
949 --enable-printarch use printing architecture
950 --enable-mdi use multiple document interface architecture
8a7b1113 951 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
952 --enable-loggui use standard GUI logger
953 --enable-logwin use wxLogWindow
954 --enable-logdialog use wxLogDialog
646b6ec1 955 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
956 --enable-postscript use wxPostscriptDC device context (default for gtk+)
957 --enable-prologio not available; see contrib
958 --enable-resources not available; see contrib
959 --enable-clipboard use wxClipboard class
960 --enable-dnd use Drag'n'Drop classes
961 --enable-metafile use win32 metafiles
962 --enable-controls use all usual controls
963 --enable-accel use accelerators
964 --enable-button use wxButton class
965 --enable-bmpbutton use wxBitmapButton class
966 --enable-calendar use wxCalendarCtrl class
967 --enable-caret use wxCaret class
968 --enable-checkbox use wxCheckBox class
969 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
970 --enable-choice use wxChoice class
92bbdbcd 971 --enable-choicebook use wxChoicebook class
a848cd7e
SC
972 --enable-combobox use wxComboBox class
973 --enable-display use wxDisplay class
974 --enable-gauge use wxGauge class
975 --enable-grid use wxGrid class
976 --enable-imaglist use wxImageList class
977 --enable-listbook use wxListbook class
978 --enable-listbox use wxListBox class
979 --enable-listctrl use wxListCtrl class
980 --enable-notebook use wxNotebook class
981 --enable-radiobox use wxRadioBox class
982 --enable-radiobtn use wxRadioButton class
983 --enable-sash use wxSashWindow class
984 --enable-scrollbar use wxScrollBar class and scrollable windows
985 --enable-slider use wxSlider class
986 --enable-spinbtn use wxSpinButton class
987 --enable-spinctrl use wxSpinCtrl class
988 --enable-splitter use wxSplitterWindow class
989 --enable-statbmp use wxStaticBitmap class
990 --enable-statbox use wxStaticBox class
991 --enable-statline use wxStaticLine class
992 --enable-stattext use wxStaticText class
993 --enable-statusbar use wxStatusBar class
994 --enable-tabdialog use wxTabControl class
995 --enable-textctrl use wxTextCtrl class
996 --enable-togglebtn use wxToggleButton class
997 --enable-toolbar use wxToolBar class
998 --enable-tbarnative use native wxToolBar class
999 --enable-tbarsmpl use wxToolBarSimple class
1000 --enable-treectrl use wxTreeCtrl class
1001 --enable-tipwindow use wxTipWindow class
1002 --enable-popupwin use wxPopUpWindow class
1003 --enable-commondlg use all common dialogs
1004 --enable-choicedlg use wxChoiceDialog
1005 --enable-coldlg use wxColourDialog
1006 --enable-filedlg use wxFileDialog
1007 --enable-finddlg use wxFindReplaceDialog
1008 --enable-fontdlg use wxFontDialog
1009 --enable-dirdlg use wxDirDialog
1010 --enable-msgdlg use wxMessageDialog
1011 --enable-numberdlg use wxNumberEntryDialog
1012 --enable-splash use wxSplashScreen
1013 --enable-textdlg use wxTextDialog
1014 --enable-tipdlg use startup tips
1015 --enable-progressdlg use wxProgressDialog
1016 --enable-wizarddlg use wxWizard
1017 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1018 --enable-miniframe use wxMiniFrame class
1019 --enable-tooltips use wxToolTip class
1020 --enable-splines use spline drawing code
1021 --enable-validators use wxValidator and derived classes
1022 --enable-busyinfo use wxBusyInfo
1023 --enable-joystick use wxJoystick (Linux only)
1024 --enable-metafiles use wxMetaFile (Windows only)
1025 --enable-dragimage use wxDragImage
1026 --enable-accessibility enable accessibility support
1027 --enable-palette use wxPalette class
1028 --enable-image use wxImage class
1029 --enable-gif use gif images (GIF file format)
1030 --enable-pcx use pcx images (PCX file format)
1031 --enable-iff use iff images (IFF file format)
1032 --enable-pnm use pnm images (PNM file format)
1033 --enable-xpm use xpm images (XPM file format)
1034 --enable-icocur use Windows ICO and CUR formats
77ffb593 1035 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1036 --enable-vendor=VENDOR vendor name (win32 DLL only)
1037 --disable-largefile omit support for large files
1038 --disable-gtktest do not try to compile and run a test GTK+ program
1039 --disable-gtktest Do not try to compile and run a test GTK program
1040 --disable-sdltest Do not try to compile and run a test SDL program
1041 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1042 --disable-precomp-headers
1043 don't use precompiled headers even if compiler can
a848cd7e
SC
1044
1045Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gtk use GTK+
1049 --with-motif use Motif/Lesstif
1050 --with-mac use Mac OS X
1051 --with-cocoa use Cocoa
1052 --with-wine use Wine
1053 --with-msw use MS-Windows
1054 --with-pm use OS/2 Presentation Manager
1055 --with-mgl use SciTech MGL
1056 --with-microwin use MicroWindows
1057 --with-x11 use X11
1058 --with-libpng use libpng (PNG image format)
1059 --with-libjpeg use libjpeg (JPEG file format)
1060 --with-libtiff use libtiff (TIFF file format)
1061 --with-libxpm use libxpm (XPM file format)
1062 --with-libmspack use libmspack (CHM help files loading)
1063 --with-sdl use SDL for audio on Unix
1064 --with-opengl use OpenGL (or Mesa)
1065 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1066 --with-regex enable support for wxRegEx class
1067 --with-zlib use zlib for LZW compression
1068 --with-odbc use the IODBC and wxODBC classes
1069 --with-expat enable XML support using expat parser
ceec2216 1070 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1071 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1072 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1073 --with-x use the X Window System
1074 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1075 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1076 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1077 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1078 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1079
1080Some influential environment variables:
dcc1b6ad
VS
1081 CC C compiler command
1082 CFLAGS C compiler flags
1083 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1084 nonstandard directory <lib dir>
1085 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1086 headers in a nonstandard directory <include dir>
1087 CPP C preprocessor
1088 CXX C++ compiler command
1089 CXXFLAGS C++ compiler flags
1090 CXXCPP C++ preprocessor
a848cd7e
SC
1091
1092Use these variables to override the choices made by `configure' or to help
1093it to find libraries and programs with nonstandard names/locations.
1094
77ffb593 1095Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1096_ACEOF
1097fi
1098
1099if test "$ac_init_help" = "recursive"; then
1100 # If there are subdirs, report their specific --help.
1101 ac_popdir=`pwd`
1102 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1103 test -d $ac_dir || continue
1104 ac_builddir=.
1105
1106if test "$ac_dir" != .; then
1107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1108 # A "../" for each directory in $ac_dir_suffix.
1109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1110else
1111 ac_dir_suffix= ac_top_builddir=
1112fi
1113
1114case $srcdir in
1115 .) # No --srcdir option. We are building in place.
1116 ac_srcdir=.
1117 if test -z "$ac_top_builddir"; then
1118 ac_top_srcdir=.
1119 else
1120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1121 fi ;;
1122 [\\/]* | ?:[\\/]* ) # Absolute path.
1123 ac_srcdir=$srcdir$ac_dir_suffix;
1124 ac_top_srcdir=$srcdir ;;
1125 *) # Relative path.
1126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1128esac
ac1cb8d3
VS
1129
1130# Do not use `cd foo && pwd` to compute absolute paths, because
1131# the directories may not exist.
1132case `pwd` in
1133.) ac_abs_builddir="$ac_dir";;
1134*)
1135 case "$ac_dir" in
1136 .) ac_abs_builddir=`pwd`;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_builddir=${ac_top_builddir}.;;
1143*)
1144 case ${ac_top_builddir}. in
1145 .) ac_abs_top_builddir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_srcdir=$ac_srcdir;;
1152*)
1153 case $ac_srcdir in
1154 .) ac_abs_srcdir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_top_srcdir=$ac_top_srcdir;;
1161*)
1162 case $ac_top_srcdir in
1163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1166 esac;;
1167esac
a848cd7e
SC
1168
1169 cd $ac_dir
1170 # Check for guested configure; otherwise get Cygnus style configure.
1171 if test -f $ac_srcdir/configure.gnu; then
1172 echo
1173 $SHELL $ac_srcdir/configure.gnu --help=recursive
1174 elif test -f $ac_srcdir/configure; then
1175 echo
1176 $SHELL $ac_srcdir/configure --help=recursive
1177 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1178 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1179 echo
1180 $ac_configure --help
1181 else
1182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1183 fi
b48a2016 1184 cd $ac_popdir
a848cd7e
SC
1185 done
1186fi
1187
1188test -n "$ac_init_help" && exit 0
1189if $ac_init_version; then
1190 cat <<\_ACEOF
7714864e 1191wxWidgets configure 2.5.3
ac1cb8d3 1192generated by GNU Autoconf 2.59
a848cd7e 1193
ac1cb8d3 1194Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1195This configure script is free software; the Free Software Foundation
1196gives unlimited permission to copy, distribute and modify it.
1197_ACEOF
1198 exit 0
1199fi
1200exec 5>config.log
1201cat >&5 <<_ACEOF
1202This file contains any messages produced by compilers while
1203running configure, to aid debugging if configure makes a mistake.
1204
7714864e 1205It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1206generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1207
1208 $ $0 $@
1209
1210_ACEOF
1211{
1212cat <<_ASUNAME
1213## --------- ##
1214## Platform. ##
1215## --------- ##
1216
1217hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1218uname -m = `(uname -m) 2>/dev/null || echo unknown`
1219uname -r = `(uname -r) 2>/dev/null || echo unknown`
1220uname -s = `(uname -s) 2>/dev/null || echo unknown`
1221uname -v = `(uname -v) 2>/dev/null || echo unknown`
1222
1223/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1224/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1225
1226/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1227/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1228/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1229hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1230/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1231/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1232/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1233
1234_ASUNAME
1235
1236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1237for as_dir in $PATH
1238do
1239 IFS=$as_save_IFS
1240 test -z "$as_dir" && as_dir=.
1241 echo "PATH: $as_dir"
1242done
1243
1244} >&5
1245
1246cat >&5 <<_ACEOF
1247
1248
1249## ----------- ##
1250## Core tests. ##
1251## ----------- ##
1252
1253_ACEOF
1254
1255
1256# Keep a trace of the command line.
1257# Strip out --no-create and --no-recursion so they do not pile up.
1258# Strip out --silent because we don't want to record it for future runs.
1259# Also quote any args containing shell meta-characters.
1260# Make two passes to allow for proper duplicate-argument suppression.
1261ac_configure_args=
1262ac_configure_args0=
1263ac_configure_args1=
1264ac_sep=
1265ac_must_keep_next=false
1266for ac_pass in 1 2
1267do
1268 for ac_arg
1269 do
1270 case $ac_arg in
1271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273 | -silent | --silent | --silen | --sile | --sil)
1274 continue ;;
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 esac
1278 case $ac_pass in
1279 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1280 2)
1281 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1282 if test $ac_must_keep_next = true; then
ac1cb8d3 1283 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1284 else
ac1cb8d3
VS
1285 case $ac_arg in
1286 *=* | --config-cache | -C | -disable-* | --disable-* \
1287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1289 | -with-* | --with-* | -without-* | --without-* | --x)
1290 case "$ac_configure_args0 " in
1291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1292 esac
1293 ;;
1294 -* ) ac_must_keep_next=true ;;
1295 esac
a848cd7e
SC
1296 fi
1297 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1298 # Get rid of the leading space.
1299 ac_sep=" "
1300 ;;
1301 esac
1302 done
1303done
1304$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1305$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1306
1307# When interrupted or exit'd, cleanup temporary files, and complete
1308# config.log. We remove comments because anyway the quotes in there
1309# would cause problems or look ugly.
1310# WARNING: Be sure not to use single quotes in there, as some shells,
1311# such as our DU 5.0 friend, will then `close' the trap.
1312trap 'exit_status=$?
1313 # Save into config.log some information that might help in debugging.
1314 {
1315 echo
1316
1317 cat <<\_ASBOX
1318## ---------------- ##
1319## Cache variables. ##
1320## ---------------- ##
1321_ASBOX
1322 echo
1323 # The following way of writing the cache mishandles newlines in values,
1324{
1325 (set) 2>&1 |
1326 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1327 *ac_space=\ *)
1328 sed -n \
ac1cb8d3
VS
1329 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1331 ;;
1332 *)
1333 sed -n \
ac1cb8d3 1334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1335 ;;
1336 esac;
1337}
1338 echo
1339
1340 cat <<\_ASBOX
1341## ----------------- ##
1342## Output variables. ##
1343## ----------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_vars
1347 do
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1350 done | sort
1351 echo
1352
1353 if test -n "$ac_subst_files"; then
1354 cat <<\_ASBOX
1355## ------------- ##
1356## Output files. ##
1357## ------------- ##
1358_ASBOX
1359 echo
1360 for ac_var in $ac_subst_files
1361 do
1362 eval ac_val=$`echo $ac_var`
ac1cb8d3 1363 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1364 done | sort
1365 echo
1366 fi
1367
1368 if test -s confdefs.h; then
1369 cat <<\_ASBOX
1370## ----------- ##
1371## confdefs.h. ##
1372## ----------- ##
1373_ASBOX
1374 echo
1375 sed "/^$/d" confdefs.h | sort
1376 echo
1377 fi
1378 test "$ac_signal" != 0 &&
1379 echo "$as_me: caught signal $ac_signal"
1380 echo "$as_me: exit $exit_status"
1381 } >&5
ac1cb8d3 1382 rm -f core *.core &&
a848cd7e
SC
1383 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1384 exit $exit_status
1385 ' 0
1386for ac_signal in 1 2 13 15; do
1387 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1388done
1389ac_signal=0
1390
1391# confdefs.h avoids OS command line length limits that DEFS can exceed.
1392rm -rf conftest* confdefs.h
1393# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1394echo >confdefs.h
1395
1396# Predefined preprocessor variables.
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_NAME "$PACKAGE_NAME"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_VERSION "$PACKAGE_VERSION"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_STRING "$PACKAGE_STRING"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1420_ACEOF
1421
1422
1423# Let the site file select an alternate cache file if it wants to.
1424# Prefer explicitly selected file to automatically selected ones.
1425if test -z "$CONFIG_SITE"; then
1426 if test "x$prefix" != xNONE; then
1427 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1428 else
1429 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1430 fi
1431fi
1432for ac_site_file in $CONFIG_SITE; do
1433 if test -r "$ac_site_file"; then
1434 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1435echo "$as_me: loading site script $ac_site_file" >&6;}
1436 sed 's/^/| /' "$ac_site_file" >&5
1437 . "$ac_site_file"
1438 fi
1439done
1440
1441if test -r "$cache_file"; then
1442 # Some versions of bash will fail to source /dev/null (special
1443 # files actually), so we avoid doing that.
1444 if test -f "$cache_file"; then
1445 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1446echo "$as_me: loading cache $cache_file" >&6;}
1447 case $cache_file in
1448 [\\/]* | ?:[\\/]* ) . $cache_file;;
1449 *) . ./$cache_file;;
1450 esac
1451 fi
1452else
1453 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1454echo "$as_me: creating cache $cache_file" >&6;}
1455 >$cache_file
1456fi
1457
1458# Check that the precious variables saved in the cache have kept the same
1459# value.
1460ac_cache_corrupted=false
1461for ac_var in `(set) 2>&1 |
ac1cb8d3 1462 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464 eval ac_new_set=\$ac_env_${ac_var}_set
1465 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466 eval ac_new_val="\$ac_env_${ac_var}_value"
1467 case $ac_old_set,$ac_new_set in
1468 set,)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,set)
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1476 ,);;
1477 *)
1478 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1479 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1480echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1481 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1482echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1484echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1485 ac_cache_corrupted=:
a848cd7e
SC
1486 fi;;
1487 esac
1488 # Pass precious variables to config.status.
1489 if test "$ac_new_set" = set; then
1490 case $ac_new_val in
1491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493 *) ac_arg=$ac_var=$ac_new_val ;;
1494 esac
1495 case " $ac_configure_args " in
1496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1497 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498 esac
1499 fi
1500done
1501if $ac_cache_corrupted; then
1502 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506 { (exit 1); exit 1; }; }
1507fi
1508
1509ac_ext=c
1510ac_cpp='$CPP $CPPFLAGS'
1511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544ac_aux_dir=
1545for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 break
1550 elif 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/shtool; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
1558 fi
1559done
1560if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1564fi
1565ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569# Make sure we can run config.sub.
1570$ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1574
1575echo "$as_me:$LINENO: checking build system type" >&5
1576echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 ac_cv_build_alias=$build_alias
1581test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1591
1592fi
1593echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594echo "${ECHO_T}$ac_cv_build" >&6
1595build=$ac_cv_build
1596build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601echo "$as_me:$LINENO: checking host system type" >&5
1602echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 ac_cv_host_alias=$host_alias
1607test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614fi
1615echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616echo "${ECHO_T}$ac_cv_host" >&6
1617host=$ac_cv_host
1618host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623echo "$as_me:$LINENO: checking target system type" >&5
1624echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625if test "${ac_cv_target+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_target_alias=$target_alias
1629test "x$ac_cv_target_alias" = "x" &&
1630 ac_cv_target_alias=$ac_cv_host_alias
1631ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636fi
1637echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638echo "${ECHO_T}$ac_cv_target" >&6
1639target=$ac_cv_target
1640target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645# The aliases save the names the user supplied, while $host etc.
1646# will get canonicalized.
1647test -n "$target_alias" &&
1648 test "$program_prefix$program_suffix$program_transform_name" = \
1649 NONENONEs,x,x, &&
1650 program_prefix=${target_alias}-
1651
1652
1653
ceec2216
RL
1654wx_major_version_number=2
1655wx_minor_version_number=5
7714864e 1656wx_release_number=3
78a9e10d 1657wx_subrelease_number=1
a848cd7e 1658
ceec2216
RL
1659WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1660WX_VERSION=$WX_RELEASE.$wx_release_number
1661WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1662
ceec2216 1663WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1664
78a9e10d 1665WX_CURRENT=4
a848cd7e 1666WX_REVISION=0
78a9e10d 1667WX_AGE=1
a848cd7e
SC
1668
1669
1670
1671USE_UNIX=1
1672USE_OS2=0
1673USE_WIN32=0
1674USE_DOS=0
1675USE_BEOS=0
1676USE_MAC=0
1677
1678USE_AIX=
1679USE_BSD= USE_DARWIN= USE_FREEBSD=
1680USE_GNU= USE_HPUX=
1681USE_LINUX=
1682USE_NETBSD=
1683USE_OPENBSD=
1684USE_OSF= USE_SGI=
1685USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1686USE_ULTRIX=
1687USE_UNIXWARE=
1688
1689USE_ALPHA=
1690
1691NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1692
1693ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1694
1695DEFAULT_wxUSE_COCOA=0
1696DEFAULT_wxUSE_GTK=0
1697DEFAULT_wxUSE_MAC=0
1698DEFAULT_wxUSE_MGL=0
1699DEFAULT_wxUSE_MICROWIN=0
1700DEFAULT_wxUSE_MOTIF=0
1701DEFAULT_wxUSE_MSW=0
1702DEFAULT_wxUSE_PM=0
1703DEFAULT_wxUSE_X11=0
1704
1705DEFAULT_DEFAULT_wxUSE_COCOA=0
1706DEFAULT_DEFAULT_wxUSE_GTK=0
1707DEFAULT_DEFAULT_wxUSE_MAC=0
1708DEFAULT_DEFAULT_wxUSE_MGL=0
1709DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1710DEFAULT_DEFAULT_wxUSE_MOTIF=0
1711DEFAULT_DEFAULT_wxUSE_MSW=0
1712DEFAULT_DEFAULT_wxUSE_PM=0
1713DEFAULT_DEFAULT_wxUSE_X11=0
1714
1715PROGRAM_EXT=
1716SO_SUFFIX=so
1717SAMPLES_RPATH_FLAG=
1718SAMPLES_RPATH_POSTLINK=
1719
1720case "${host}" in
1721 *-hp-hpux* )
1722 USE_HPUX=1
1723 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1724 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1725 SO_SUFFIX=sl
1726 cat >>confdefs.h <<\_ACEOF
1727#define __HPUX__ 1
1728_ACEOF
1729
1730 ;;
1731 *-*-linux* )
1732 USE_LINUX=1
1733 cat >>confdefs.h <<\_ACEOF
1734#define __LINUX__ 1
1735_ACEOF
1736
1737 TMP=`uname -m`
1738 if test "x$TMP" = "xalpha"; then
1739 USE_ALPHA=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __ALPHA__ 1
1742_ACEOF
1743
1744 fi
1745 DEFAULT_DEFAULT_wxUSE_GTK=1
1746 ;;
1747 *-*-gnu* | *-*-k*bsd*-gnu )
1748 USE_GNU=1
1749 TMP=`uname -m`
1750 if test "x$TMP" = "xalpha"; then
1751 USE_ALPHA=1
1752 cat >>confdefs.h <<\_ACEOF
1753#define __ALPHA__ 1
1754_ACEOF
1755
1756 fi
1757 DEFAULT_DEFAULT_wxUSE_GTK=1
1758 ;;
1759 *-*-irix5* | *-*-irix6* )
1760 USE_SGI=1
1761 USE_SVR4=1
1762 cat >>confdefs.h <<\_ACEOF
1763#define __SGI__ 1
1764_ACEOF
1765
1766 cat >>confdefs.h <<\_ACEOF
1767#define __SVR4__ 1
1768_ACEOF
1769
1770 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1771 ;;
1772 *-*-solaris2* )
1773 USE_SUN=1
1774 USE_SOLARIS=1
1775 USE_SVR4=1
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SUN__ 1
1778_ACEOF
1779
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SOLARIS__ 1
1782_ACEOF
1783
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SVR4__ 1
1786_ACEOF
1787
1788 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1789 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1790 ;;
1791 *-*-sunos4* )
1792 USE_SUN=1
1793 USE_SUNOS=1
1794 USE_BSD=1
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SUN__ 1
1797_ACEOF
1798
1799 cat >>confdefs.h <<\_ACEOF
1800#define __SUNOS__ 1
1801_ACEOF
1802
1803 cat >>confdefs.h <<\_ACEOF
1804#define __BSD__ 1
1805_ACEOF
1806
1807 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1808 ;;
1809 *-*-freebsd*)
1810 USE_BSD=1
1811 USE_FREEBSD=1
1812 cat >>confdefs.h <<\_ACEOF
1813#define __FREEBSD__ 1
1814_ACEOF
1815
1816 cat >>confdefs.h <<\_ACEOF
1817#define __BSD__ 1
1818_ACEOF
1819
1820 DEFAULT_DEFAULT_wxUSE_GTK=1
1821 ;;
1822 *-*-openbsd*)
1823 USE_BSD=1
1824 USE_OPENBSD=1
1825 cat >>confdefs.h <<\_ACEOF
1826#define __OPENBSD__ 1
1827_ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830#define __BSD__ 1
1831_ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_GTK=1
1834 ;;
1835 *-*-netbsd*)
1836 USE_BSD=1
1837 USE_NETBSD=1
1838 cat >>confdefs.h <<\_ACEOF
1839#define __NETBSD__ 1
1840_ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843#define __BSD__ 1
1844_ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_GTK=1
1847 ;;
1848 *-*-osf* )
1849 USE_ALPHA=1
1850 USE_OSF=1
1851 cat >>confdefs.h <<\_ACEOF
1852#define __ALPHA__ 1
1853_ACEOF
1854
1855 cat >>confdefs.h <<\_ACEOF
1856#define __OSF__ 1
1857_ACEOF
1858
1859 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1860 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1861 ;;
1862 *-*-dgux5* )
1863 USE_ALPHA=1
1864 USE_SVR4=1
1865 cat >>confdefs.h <<\_ACEOF
1866#define __ALPHA__ 1
1867_ACEOF
1868
1869 cat >>confdefs.h <<\_ACEOF
1870#define __SVR4__ 1
1871_ACEOF
1872
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 ;;
1875 *-*-sysv5* )
1876 USE_SYSV=1
1877 USE_SVR4=1
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SYSV__ 1
1880_ACEOF
1881
1882 cat >>confdefs.h <<\_ACEOF
1883#define __SVR4__ 1
1884_ACEOF
1885
1886 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887 ;;
1888 *-*-aix* )
1889 USE_AIX=1
1890 USE_SYSV=1
1891 USE_SVR4=1
1892 SO_SUFFIX=a
1893 cat >>confdefs.h <<\_ACEOF
1894#define __AIX__ 1
1895_ACEOF
1896
1897 cat >>confdefs.h <<\_ACEOF
1898#define __SYSV__ 1
1899_ACEOF
1900
1901 cat >>confdefs.h <<\_ACEOF
1902#define __SVR4__ 1
1903_ACEOF
1904
1905 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1906 ;;
1907
1908 *-*-*UnixWare*)
1909 USE_SYSV=1
1910 USE_SVR4=1
1911 USE_UNIXWARE=1
1912 cat >>confdefs.h <<\_ACEOF
1913#define __UNIXWARE__ 1
1914_ACEOF
1915
1916 ;;
1917
1918 *-*-cygwin* | *-*-mingw32* )
1919 SO_SUFFIX=dll
1920 PROGRAM_EXT=".exe"
1921 RESCOMP=windres
1922 DEFAULT_DEFAULT_wxUSE_MSW=1
1923 ;;
1924
1925 *-pc-msdosdjgpp )
1926 USE_UNIX=0
1927 USE_DOS=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __DOS__ 1
1930_ACEOF
1931
1932 PROGRAM_EXT=".exe"
1933 DEFAULT_DEFAULT_wxUSE_MGL=1
1934 LIBS="$LIBS -lstdc++"
1935 ;;
1936
1937 *-pc-os2_emx | *-pc-os2-emx )
1938 cat >>confdefs.h <<\_ACEOF
1939#define __EMX__ 1
1940_ACEOF
1941
1942 USE_OS2=1
1943 cat >>confdefs.h <<\_ACEOF
1944#define __OS2__ 1
1945_ACEOF
1946
1947 PROGRAM_EXT=".exe"
1948 DEFAULT_DEFAULT_wxUSE_PM=1
1949 CXX=gcc
1950 LDFLAGS="$LDFLAGS -Zcrtdll"
1951 ac_executable_extensions=".exe"
1952 export ac_executable_extensions
1953 ac_save_IFS="$IFS"
1954 IFS='\\'
1955 ac_TEMP_PATH=
1956 for ac_dir in $PATH; do
1957 IFS=$ac_save_IFS
1958 if test -z "$ac_TEMP_PATH"; then
1959 ac_TEMP_PATH="$ac_dir"
1960 else
1961 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1962 fi
1963 done
1964 export PATH="$ac_TEMP_PATH"
1965 unset ac_TEMP_PATH
1966 ;;
1967
1968 powerpc-*-darwin* )
1969 USE_BSD=1
1970 USE_DARWIN=1
1971 SO_SUFFIX=dylib
1972 cat >>confdefs.h <<\_ACEOF
1973#define __BSD__ 1
1974_ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977#define __DARWIN__ 1
1978_ACEOF
1979
1980 cat >>confdefs.h <<\_ACEOF
1981#define __POWERPC__ 1
1982_ACEOF
1983
1984 cat >>confdefs.h <<\_ACEOF
1985#define TARGET_CARBON 1
1986_ACEOF
1987
1988 DEFAULT_DEFAULT_wxUSE_MAC=1
1989 ;;
1990
1991 *-*-beos* )
1992 USE_BEOS=1
1993 cat >>confdefs.h <<\_ACEOF
1994#define __BEOS__ 1
1995_ACEOF
1996
1997 ;;
1998
1999 *)
2000 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2001echo "$as_me: error: unknown system type ${host}." >&2;}
2002 { (exit 1); exit 1; }; }
2003esac
2004
2005
2006
2007
2008 wx_arg_cache_file="configarg.cache"
2009 echo "loading argument cache $wx_arg_cache_file"
2010 rm -f ${wx_arg_cache_file}.tmp
2011 touch ${wx_arg_cache_file}.tmp
2012 touch ${wx_arg_cache_file}
2013
2014
2015DEBUG_CONFIGURE=0
2016if test $DEBUG_CONFIGURE = 1; then
2017 DEFAULT_wxUSE_UNIVERSAL=no
2018 DEFAULT_wxUSE_STL=no
2019
2020 DEFAULT_wxUSE_NANOX=no
2021
2022 DEFAULT_wxUSE_THREADS=yes
2023
2024 DEFAULT_wxUSE_SHARED=yes
2025 DEFAULT_wxUSE_OPTIMISE=no
2026 DEFAULT_wxUSE_PROFILE=no
2027 DEFAULT_wxUSE_NO_DEPS=no
2028 DEFAULT_wxUSE_NO_RTTI=no
2029 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2030 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2031 DEFAULT_wxUSE_PERMISSIVE=no
2032 DEFAULT_wxUSE_DEBUG_FLAG=yes
2033 DEFAULT_wxUSE_DEBUG_INFO=yes
2034 DEFAULT_wxUSE_DEBUG_GDB=yes
2035 DEFAULT_wxUSE_MEM_TRACING=no
2036 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2037 DEFAULT_wxUSE_DMALLOC=no
2038 DEFAULT_wxUSE_APPLE_IEEE=no
2039
2040 DEFAULT_wxUSE_EXCEPTIONS=no
2041 DEFAULT_wxUSE_LOG=yes
2042 DEFAULT_wxUSE_LOGWINDOW=no
2043 DEFAULT_wxUSE_LOGGUI=no
2044 DEFAULT_wxUSE_LOGDIALOG=no
2045
2046 DEFAULT_wxUSE_GUI=yes
2047 DEFAULT_wxUSE_CONTROLS=no
2048
2049 DEFAULT_wxUSE_REGEX=no
2050 DEFAULT_wxUSE_XML=no
2051 DEFAULT_wxUSE_EXPAT=no
2052 DEFAULT_wxUSE_ZLIB=no
2053 DEFAULT_wxUSE_LIBPNG=no
2054 DEFAULT_wxUSE_LIBJPEG=no
2055 DEFAULT_wxUSE_LIBTIFF=no
2056 DEFAULT_wxUSE_LIBXPM=no
2057 DEFAULT_wxUSE_LIBMSPACK=no
2058 DEFAULT_wxUSE_LIBSDL=no
2059 DEFAULT_wxUSE_ODBC=no
2060 DEFAULT_wxUSE_OPENGL=no
2061
2062 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2063 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2064 DEFAULT_wxUSE_STD_IOSTREAM=no
2065 DEFAULT_wxUSE_CMDLINE_PARSER=no
2066 DEFAULT_wxUSE_DATETIME=no
2067 DEFAULT_wxUSE_TIMER=no
2068 DEFAULT_wxUSE_STOPWATCH=no
2069 DEFAULT_wxUSE_FILE=no
2070 DEFAULT_wxUSE_FFILE=no
2071 DEFAULT_wxUSE_TEXTBUFFER=no
2072 DEFAULT_wxUSE_TEXTFILE=no
2073 DEFAULT_wxUSE_SOUND=no
2074 DEFAULT_wxUSE_INTL=no
2075 DEFAULT_wxUSE_CONFIG=no
2076 DEFAULT_wxUSE_FONTMAP=no
2077 DEFAULT_wxUSE_STREAMS=no
2078 DEFAULT_wxUSE_SOCKETS=no
2079 DEFAULT_wxUSE_OLE=no
2080 DEFAULT_wxUSE_DATAOBJ=no
2081 DEFAULT_wxUSE_DIALUP_MANAGER=no
2082 DEFAULT_wxUSE_JOYSTICK=no
2083 DEFAULT_wxUSE_DYNLIB_CLASS=no
2084 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2085 DEFAULT_wxUSE_LONGLONG=no
2086 DEFAULT_wxUSE_GEOMETRY=no
2087
2088 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2089 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2090 DEFAULT_wxUSE_POSTSCRIPT=no
2091
2092 DEFAULT_wxUSE_CLIPBOARD=no
2093 DEFAULT_wxUSE_TOOLTIPS=no
2094 DEFAULT_wxUSE_DRAG_AND_DROP=no
2095 DEFAULT_wxUSE_DRAGIMAGE=no
2096 DEFAULT_wxUSE_SPLINES=no
2097
8a7b1113 2098 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2099 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2100 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2101 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2102
2103 DEFAULT_wxUSE_RESOURCES=no
2104 DEFAULT_wxUSE_CONSTRAINTS=no
2105 DEFAULT_wxUSE_IPC=no
2106 DEFAULT_wxUSE_HELP=no
2107 DEFAULT_wxUSE_MS_HTML_HELP=no
2108 DEFAULT_wxUSE_WXHTML_HELP=no
2109 DEFAULT_wxUSE_TREELAYOUT=no
2110 DEFAULT_wxUSE_METAFILE=no
2111 DEFAULT_wxUSE_MIMETYPE=no
2112 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2113 DEFAULT_wxUSE_PROTOCOL=no
2114 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2115 DEFAULT_wxUSE_PROTOCOL_FTP=no
2116 DEFAULT_wxUSE_PROTOCOL_FILE=no
2117 DEFAULT_wxUSE_URL=no
2118
2119 DEFAULT_wxUSE_COMMONDLGS=no
2120 DEFAULT_wxUSE_CHOICEDLG=no
2121 DEFAULT_wxUSE_COLOURDLG=no
2122 DEFAULT_wxUSE_DIRDLG=no
2123 DEFAULT_wxUSE_FILEDLG=no
2124 DEFAULT_wxUSE_FINDREPLDLG=no
2125 DEFAULT_wxUSE_FONTDLG=no
2126 DEFAULT_wxUSE_MSGDLG=no
2127 DEFAULT_wxUSE_NUMBERDLG=no
2128 DEFAULT_wxUSE_TEXTDLG=no
2129 DEFAULT_wxUSE_SPLASH=no
2130 DEFAULT_wxUSE_STARTUP_TIPS=no
2131 DEFAULT_wxUSE_PROGRESSDLG=no
2132 DEFAULT_wxUSE_WIZARDDLG=no
2133
2134 DEFAULT_wxUSE_MENUS=no
2135 DEFAULT_wxUSE_MINIFRAME=no
2136 DEFAULT_wxUSE_HTML=no
9a8f0513 2137 DEFAULT_wxUSE_XRC=no
646b6ec1 2138 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2139 DEFAULT_wxUSE_FILESYSTEM=no
2140 DEFAULT_wxUSE_FS_INET=no
2141 DEFAULT_wxUSE_FS_ZIP=no
2142 DEFAULT_wxUSE_BUSYINFO=no
2143 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2144 DEFAULT_wxUSE_VALIDATORS=no
2145
2146 DEFAULT_wxUSE_ACCEL=no
2147 DEFAULT_wxUSE_BUTTON=no
2148 DEFAULT_wxUSE_BMPBUTTON=no
2149 DEFAULT_wxUSE_CALCTRL=no
2150 DEFAULT_wxUSE_CARET=no
2151 DEFAULT_wxUSE_CHECKBOX=no
2152 DEFAULT_wxUSE_CHECKLST=no
2153 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2154 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2155 DEFAULT_wxUSE_COMBOBOX=no
2156 DEFAULT_wxUSE_DISPLAY=no
2157 DEFAULT_wxUSE_GAUGE=no
2158 DEFAULT_wxUSE_GRID=no
2159 DEFAULT_wxUSE_IMAGLIST=no
2160 DEFAULT_wxUSE_LISTBOOK=no
2161 DEFAULT_wxUSE_LISTBOX=no
2162 DEFAULT_wxUSE_LISTCTRL=no
2163 DEFAULT_wxUSE_NOTEBOOK=no
2164 DEFAULT_wxUSE_RADIOBOX=no
2165 DEFAULT_wxUSE_RADIOBTN=no
2166 DEFAULT_wxUSE_SASH=no
2167 DEFAULT_wxUSE_SCROLLBAR=no
2168 DEFAULT_wxUSE_SLIDER=no
2169 DEFAULT_wxUSE_SPINBTN=no
2170 DEFAULT_wxUSE_SPINCTRL=no
2171 DEFAULT_wxUSE_SPLITTER=no
2172 DEFAULT_wxUSE_STATBMP=no
2173 DEFAULT_wxUSE_STATBOX=no
2174 DEFAULT_wxUSE_STATLINE=no
2175 DEFAULT_wxUSE_STATTEXT=no
2176 DEFAULT_wxUSE_STATUSBAR=yes
2177 DEFAULT_wxUSE_TABDIALOG=no
2178 DEFAULT_wxUSE_TEXTCTRL=no
2179 DEFAULT_wxUSE_TOGGLEBTN=no
2180 DEFAULT_wxUSE_TOOLBAR=no
2181 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2182 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2183 DEFAULT_wxUSE_TREECTRL=no
2184 DEFAULT_wxUSE_POPUPWIN=no
2185 DEFAULT_wxUSE_TIPWINDOW=no
2186
2187 DEFAULT_wxUSE_UNICODE=no
2188 DEFAULT_wxUSE_UNICODE_MSLU=no
2189 DEFAULT_wxUSE_WCSRTOMBS=no
2190
2191 DEFAULT_wxUSE_PALETTE=no
2192 DEFAULT_wxUSE_IMAGE=no
2193 DEFAULT_wxUSE_GIF=no
2194 DEFAULT_wxUSE_PCX=no
2195 DEFAULT_wxUSE_PNM=no
2196 DEFAULT_wxUSE_IFF=no
2197 DEFAULT_wxUSE_XPM=no
2198 DEFAULT_wxUSE_ICO_CUR=no
2199 DEFAULT_wxUSE_ACCESSIBILITY=no
2200
2201 DEFAULT_wxUSE_MONOLITHIC=no
2202 DEFAULT_wxUSE_PLUGINS=no
2203 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2204else
2205 DEFAULT_wxUSE_UNIVERSAL=no
2206 DEFAULT_wxUSE_STL=no
2207
2208 DEFAULT_wxUSE_NANOX=no
2209
2210 DEFAULT_wxUSE_THREADS=yes
2211
2212 DEFAULT_wxUSE_SHARED=yes
2213 DEFAULT_wxUSE_OPTIMISE=yes
2214 DEFAULT_wxUSE_PROFILE=no
2215 DEFAULT_wxUSE_NO_DEPS=no
2216 DEFAULT_wxUSE_NO_RTTI=no
2217 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2218 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2219 DEFAULT_wxUSE_PERMISSIVE=no
2220 DEFAULT_wxUSE_DEBUG_FLAG=no
2221 DEFAULT_wxUSE_DEBUG_INFO=no
2222 DEFAULT_wxUSE_DEBUG_GDB=no
2223 DEFAULT_wxUSE_MEM_TRACING=no
2224 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2225 DEFAULT_wxUSE_DMALLOC=no
2226 DEFAULT_wxUSE_APPLE_IEEE=yes
2227
2228 DEFAULT_wxUSE_EXCEPTIONS=yes
2229 DEFAULT_wxUSE_LOG=yes
2230 DEFAULT_wxUSE_LOGWINDOW=yes
2231 DEFAULT_wxUSE_LOGGUI=yes
2232 DEFAULT_wxUSE_LOGDIALOG=yes
2233
2234 DEFAULT_wxUSE_GUI=yes
2235
2236 DEFAULT_wxUSE_REGEX=yes
2237 DEFAULT_wxUSE_XML=yes
2238 DEFAULT_wxUSE_EXPAT=yes
2239 DEFAULT_wxUSE_ZLIB=yes
2240 DEFAULT_wxUSE_LIBPNG=yes
2241 DEFAULT_wxUSE_LIBJPEG=yes
2242 DEFAULT_wxUSE_LIBTIFF=yes
2243 DEFAULT_wxUSE_LIBXPM=yes
2244 DEFAULT_wxUSE_LIBMSPACK=yes
2245 DEFAULT_wxUSE_LIBSDL=no
2246 DEFAULT_wxUSE_ODBC=no
2247 DEFAULT_wxUSE_OPENGL=no
2248
2249 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2250 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2251 DEFAULT_wxUSE_STD_IOSTREAM=no
2252 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2253 DEFAULT_wxUSE_DATETIME=yes
2254 DEFAULT_wxUSE_TIMER=yes
2255 DEFAULT_wxUSE_STOPWATCH=yes
2256 DEFAULT_wxUSE_FILE=yes
2257 DEFAULT_wxUSE_FFILE=yes
2258 DEFAULT_wxUSE_TEXTBUFFER=yes
2259 DEFAULT_wxUSE_TEXTFILE=yes
2260 DEFAULT_wxUSE_SOUND=yes
2261 DEFAULT_wxUSE_INTL=yes
2262 DEFAULT_wxUSE_CONFIG=yes
2263 DEFAULT_wxUSE_FONTMAP=yes
2264 DEFAULT_wxUSE_STREAMS=yes
2265 DEFAULT_wxUSE_SOCKETS=yes
2266 DEFAULT_wxUSE_OLE=yes
2267 DEFAULT_wxUSE_DATAOBJ=yes
2268 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2269 DEFAULT_wxUSE_JOYSTICK=yes
2270 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2271 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2272 DEFAULT_wxUSE_LONGLONG=yes
2273 DEFAULT_wxUSE_GEOMETRY=yes
2274
2275 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2276 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2277 DEFAULT_wxUSE_POSTSCRIPT=yes
2278
2279 DEFAULT_wxUSE_CLIPBOARD=yes
2280 DEFAULT_wxUSE_TOOLTIPS=yes
2281 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2282 DEFAULT_wxUSE_DRAGIMAGE=yes
2283 DEFAULT_wxUSE_SPLINES=yes
2284
8a7b1113 2285 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2286 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2287 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2288 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2289
2290 DEFAULT_wxUSE_RESOURCES=no
2291 DEFAULT_wxUSE_CONSTRAINTS=yes
2292 DEFAULT_wxUSE_IPC=yes
2293 DEFAULT_wxUSE_HELP=yes
2294 DEFAULT_wxUSE_MS_HTML_HELP=yes
2295 DEFAULT_wxUSE_WXHTML_HELP=yes
2296 DEFAULT_wxUSE_TREELAYOUT=yes
2297 DEFAULT_wxUSE_METAFILE=yes
2298 DEFAULT_wxUSE_MIMETYPE=yes
2299 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2300 DEFAULT_wxUSE_PROTOCOL=yes
2301 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2302 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2303 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2304 DEFAULT_wxUSE_URL=yes
2305
2306 DEFAULT_wxUSE_COMMONDLGS=yes
2307 DEFAULT_wxUSE_CHOICEDLG=yes
2308 DEFAULT_wxUSE_COLOURDLG=yes
2309 DEFAULT_wxUSE_DIRDLG=yes
2310 DEFAULT_wxUSE_FILEDLG=yes
2311 DEFAULT_wxUSE_FINDREPLDLG=yes
2312 DEFAULT_wxUSE_FONTDLG=yes
2313 DEFAULT_wxUSE_MSGDLG=yes
2314 DEFAULT_wxUSE_NUMBERDLG=yes
2315 DEFAULT_wxUSE_TEXTDLG=yes
2316 DEFAULT_wxUSE_SPLASH=yes
2317 DEFAULT_wxUSE_STARTUP_TIPS=yes
2318 DEFAULT_wxUSE_PROGRESSDLG=yes
2319 DEFAULT_wxUSE_WIZARDDLG=yes
2320
2321 DEFAULT_wxUSE_MENUS=yes
2322 DEFAULT_wxUSE_MINIFRAME=yes
2323 DEFAULT_wxUSE_HTML=yes
9a8f0513 2324 DEFAULT_wxUSE_XRC=yes
646b6ec1 2325 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2326 DEFAULT_wxUSE_FILESYSTEM=yes
2327 DEFAULT_wxUSE_FS_INET=yes
2328 DEFAULT_wxUSE_FS_ZIP=yes
2329 DEFAULT_wxUSE_BUSYINFO=yes
2330 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2331 DEFAULT_wxUSE_VALIDATORS=yes
2332
2333 DEFAULT_wxUSE_ACCEL=yes
2334 DEFAULT_wxUSE_BUTTON=yes
2335 DEFAULT_wxUSE_BMPBUTTON=yes
2336 DEFAULT_wxUSE_CALCTRL=yes
2337 DEFAULT_wxUSE_CARET=yes
2338 DEFAULT_wxUSE_CHECKBOX=yes
2339 DEFAULT_wxUSE_CHECKLST=yes
2340 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2341 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2342 DEFAULT_wxUSE_COMBOBOX=yes
2343 DEFAULT_wxUSE_DISPLAY=yes
2344 DEFAULT_wxUSE_GAUGE=yes
2345 DEFAULT_wxUSE_GRID=yes
2346 DEFAULT_wxUSE_IMAGLIST=yes
2347 DEFAULT_wxUSE_LISTBOOK=yes
2348 DEFAULT_wxUSE_LISTBOX=yes
2349 DEFAULT_wxUSE_LISTCTRL=yes
2350 DEFAULT_wxUSE_NOTEBOOK=yes
2351 DEFAULT_wxUSE_RADIOBOX=yes
2352 DEFAULT_wxUSE_RADIOBTN=yes
2353 DEFAULT_wxUSE_SASH=yes
2354 DEFAULT_wxUSE_SCROLLBAR=yes
2355 DEFAULT_wxUSE_SLIDER=yes
2356 DEFAULT_wxUSE_SPINBTN=yes
2357 DEFAULT_wxUSE_SPINCTRL=yes
2358 DEFAULT_wxUSE_SPLITTER=yes
2359 DEFAULT_wxUSE_STATBMP=yes
2360 DEFAULT_wxUSE_STATBOX=yes
2361 DEFAULT_wxUSE_STATLINE=yes
2362 DEFAULT_wxUSE_STATTEXT=yes
2363 DEFAULT_wxUSE_STATUSBAR=yes
2364 DEFAULT_wxUSE_TABDIALOG=no
2365 DEFAULT_wxUSE_TEXTCTRL=yes
2366 DEFAULT_wxUSE_TOGGLEBTN=yes
2367 DEFAULT_wxUSE_TOOLBAR=yes
2368 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2369 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2370 DEFAULT_wxUSE_TREECTRL=yes
2371 DEFAULT_wxUSE_POPUPWIN=yes
2372 DEFAULT_wxUSE_TIPWINDOW=yes
2373
2374 DEFAULT_wxUSE_UNICODE=no
2375 DEFAULT_wxUSE_UNICODE_MSLU=yes
2376 DEFAULT_wxUSE_WCSRTOMBS=no
2377
2378 DEFAULT_wxUSE_PALETTE=yes
2379 DEFAULT_wxUSE_IMAGE=yes
2380 DEFAULT_wxUSE_GIF=yes
2381 DEFAULT_wxUSE_PCX=yes
2382 DEFAULT_wxUSE_IFF=no
2383 DEFAULT_wxUSE_PNM=yes
2384 DEFAULT_wxUSE_XPM=yes
2385 DEFAULT_wxUSE_ICO_CUR=yes
2386 DEFAULT_wxUSE_ACCESSIBILITY=no
2387
2388 DEFAULT_wxUSE_MONOLITHIC=no
2389 DEFAULT_wxUSE_PLUGINS=no
2390 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2391
2392 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2393fi
2394
2395
2396
2397for toolkit in `echo $ALL_TOOLKITS`; do
2398 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2399 if test "x$LINE" != "x" ; then
2400 has_toolkit_in_cache=1
2401 eval "DEFAULT_$LINE"
2402 eval "CACHE_$toolkit=1"
2403 fi
2404done
2405
2406
2407
2408 enablestring=
2409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2410echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2411 no_cache=0
2412 # Check whether --enable-gui or --disable-gui was given.
2413if test "${enable_gui+set}" = set; then
2414 enableval="$enable_gui"
2415
2416 if test "$enableval" = yes; then
2417 ac_cv_use_gui='wxUSE_GUI=yes'
2418 else
2419 ac_cv_use_gui='wxUSE_GUI=no'
2420 fi
2421
2422else
2423
2424 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2425 if test "x$LINE" != x ; then
2426 eval "DEFAULT_$LINE"
2427 else
2428 no_cache=1
2429 fi
2430
2431 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2432
2433fi;
2434
2435 eval "$ac_cv_use_gui"
2436 if test "$no_cache" != 1; then
2437 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2438 fi
2439
2440 if test "$wxUSE_GUI" = yes; then
2441 echo "$as_me:$LINENO: result: yes" >&5
2442echo "${ECHO_T}yes" >&6
2443 else
2444 echo "$as_me:$LINENO: result: no" >&5
2445echo "${ECHO_T}no" >&6
2446 fi
2447
2448
2449 enablestring=
2450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2451echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2452 no_cache=0
2453 # Check whether --enable-monolithic or --disable-monolithic was given.
2454if test "${enable_monolithic+set}" = set; then
2455 enableval="$enable_monolithic"
2456
2457 if test "$enableval" = yes; then
2458 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2459 else
2460 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2461 fi
2462
2463else
2464
2465 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2473
2474fi;
2475
2476 eval "$ac_cv_use_monolithic"
2477 if test "$no_cache" != 1; then
2478 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2479 fi
2480
2481 if test "$wxUSE_MONOLITHIC" = yes; then
2482 echo "$as_me:$LINENO: result: yes" >&5
2483echo "${ECHO_T}yes" >&6
2484 else
2485 echo "$as_me:$LINENO: result: no" >&5
2486echo "${ECHO_T}no" >&6
2487 fi
2488
2489
2490 enablestring=
2491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2492echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2493 no_cache=0
2494 # Check whether --enable-plugins or --disable-plugins was given.
2495if test "${enable_plugins+set}" = set; then
2496 enableval="$enable_plugins"
2497
2498 if test "$enableval" = yes; then
2499 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2500 else
2501 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2502 fi
2503
2504else
2505
2506 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2507 if test "x$LINE" != x ; then
2508 eval "DEFAULT_$LINE"
2509 else
2510 no_cache=1
2511 fi
2512
2513 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2514
2515fi;
2516
2517 eval "$ac_cv_use_plugins"
2518 if test "$no_cache" != 1; then
2519 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2520 fi
2521
2522 if test "$wxUSE_PLUGINS" = yes; then
2523 echo "$as_me:$LINENO: result: yes" >&5
2524echo "${ECHO_T}yes" >&6
2525 else
2526 echo "$as_me:$LINENO: result: no" >&5
2527echo "${ECHO_T}no" >&6
2528 fi
2529
2530
2531if test "$wxUSE_GUI" = "yes"; then
2532
2533
2534 enablestring=
2535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2536echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2537 no_cache=0
2538 # Check whether --enable-universal or --disable-universal was given.
2539if test "${enable_universal+set}" = set; then
2540 enableval="$enable_universal"
2541
2542 if test "$enableval" = yes; then
2543 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2544 else
2545 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2546 fi
2547
2548else
2549
2550 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2551 if test "x$LINE" != x ; then
2552 eval "DEFAULT_$LINE"
2553 else
2554 no_cache=1
2555 fi
2556
2557 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2558
2559fi;
2560
2561 eval "$ac_cv_use_universal"
2562 if test "$no_cache" != 1; then
2563 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2564 fi
2565
2566 if test "$wxUSE_UNIVERSAL" = yes; then
2567 echo "$as_me:$LINENO: result: yes" >&5
2568echo "${ECHO_T}yes" >&6
2569 else
2570 echo "$as_me:$LINENO: result: no" >&5
2571echo "${ECHO_T}no" >&6
2572 fi
2573
2574
2575# Check whether --with-gtk or --without-gtk was given.
2576if test "${with_gtk+set}" = set; then
2577 withval="$with_gtk"
2578 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2579fi;
2580
2581# Check whether --with-motif or --without-motif was given.
2582if test "${with_motif+set}" = set; then
2583 withval="$with_motif"
2584 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2585fi;
2586
2587# Check whether --with-mac or --without-mac was given.
2588if test "${with_mac+set}" = set; then
2589 withval="$with_mac"
c228d3a4 2590 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2591fi;
2592
2593# Check whether --with-cocoa or --without-cocoa was given.
2594if test "${with_cocoa+set}" = set; then
2595 withval="$with_cocoa"
c228d3a4 2596 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2597fi;
2598
2599# Check whether --with-wine or --without-wine was given.
2600if test "${with_wine+set}" = set; then
2601 withval="$with_wine"
2602 wxUSE_WINE="$withval" CACHE_WINE=1
2603fi;
2604
2605# Check whether --with-msw or --without-msw was given.
2606if test "${with_msw+set}" = set; then
2607 withval="$with_msw"
2608 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2609fi;
2610
2611# Check whether --with-pm or --without-pm was given.
2612if test "${with_pm+set}" = set; then
2613 withval="$with_pm"
2614 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2615fi;
2616
2617# Check whether --with-mgl or --without-mgl was given.
2618if test "${with_mgl+set}" = set; then
2619 withval="$with_mgl"
2620 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2621fi;
2622
2623# Check whether --with-microwin or --without-microwin was given.
2624if test "${with_microwin+set}" = set; then
2625 withval="$with_microwin"
2626 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2627fi;
2628
2629# Check whether --with-x11 or --without-x11 was given.
2630if test "${with_x11+set}" = set; then
2631 withval="$with_x11"
2632 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2633fi;
2634
2635 enablestring=
2636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2637echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2638 no_cache=0
2639 # Check whether --enable-nanox or --disable-nanox was given.
2640if test "${enable_nanox+set}" = set; then
2641 enableval="$enable_nanox"
2642
2643 if test "$enableval" = yes; then
2644 ac_cv_use_nanox='wxUSE_NANOX=yes'
2645 else
2646 ac_cv_use_nanox='wxUSE_NANOX=no'
2647 fi
2648
2649else
2650
2651 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2652 if test "x$LINE" != x ; then
2653 eval "DEFAULT_$LINE"
2654 else
2655 no_cache=1
2656 fi
2657
2658 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2659
2660fi;
2661
2662 eval "$ac_cv_use_nanox"
2663 if test "$no_cache" != 1; then
2664 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2665 fi
2666
2667 if test "$wxUSE_NANOX" = yes; then
2668 echo "$as_me:$LINENO: result: yes" >&5
2669echo "${ECHO_T}yes" >&6
2670 else
2671 echo "$as_me:$LINENO: result: no" >&5
2672echo "${ECHO_T}no" >&6
2673 fi
2674
2675
2676
2677 enablestring=
2678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2679echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2680 no_cache=0
2681 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2682if test "${enable_gtk2+set}" = set; then
2683 enableval="$enable_gtk2"
2684
2685 if test "$enableval" = yes; then
2686 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2687 else
2688 ac_cv_use_gtk2='wxUSE_GTK2=no'
2689 fi
2690
2691else
2692
2693 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2701
2702fi;
2703
2704 eval "$ac_cv_use_gtk2"
2705 if test "$no_cache" != 1; then
2706 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2707 fi
2708
2709 if test "$wxUSE_GTK2" = yes; then
2710 echo "$as_me:$LINENO: result: yes" >&5
2711echo "${ECHO_T}yes" >&6
2712 else
2713 echo "$as_me:$LINENO: result: no" >&5
2714echo "${ECHO_T}no" >&6
2715 fi
2716
2717
2718 enablestring=
2719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2720echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2721 no_cache=0
2722 # Check whether --enable-gpe or --disable-gpe was given.
2723if test "${enable_gpe+set}" = set; then
2724 enableval="$enable_gpe"
2725
2726 if test "$enableval" = yes; then
2727 ac_cv_use_gpe='wxUSE_GPE=yes'
2728 else
2729 ac_cv_use_gpe='wxUSE_GPE=no'
2730 fi
2731
2732else
2733
2734 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2735 if test "x$LINE" != x ; then
2736 eval "DEFAULT_$LINE"
2737 else
2738 no_cache=1
2739 fi
2740
2741 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2742
2743fi;
2744
2745 eval "$ac_cv_use_gpe"
2746 if test "$no_cache" != 1; then
2747 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2748 fi
2749
2750 if test "$wxUSE_GPE" = yes; then
2751 echo "$as_me:$LINENO: result: yes" >&5
2752echo "${ECHO_T}yes" >&6
2753 else
2754 echo "$as_me:$LINENO: result: no" >&5
2755echo "${ECHO_T}no" >&6
2756 fi
2757
2758
2759
2760 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2761echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2762 no_cache=0
2763
2764# Check whether --with-libpng or --without-libpng was given.
2765if test "${with_libpng+set}" = set; then
2766 withval="$with_libpng"
2767
2768 if test "$withval" = yes; then
2769 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2770 elif test "$withval" = no; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2772 elif test "$withval" = sys; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2774 elif test "$withval" = builtin; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2776 else
2777 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2778echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2779 { (exit 1); exit 1; }; }
2780 fi
2781
2782else
2783
2784 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2785 if test "x$LINE" != x ; then
2786 eval "DEFAULT_$LINE"
2787 else
2788 no_cache=1
2789 fi
2790
2791 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2792
2793fi;
2794
2795 eval "$ac_cv_use_libpng"
2796 if test "$no_cache" != 1; then
2797 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2798 fi
2799
2800 if test "$wxUSE_LIBPNG" = yes; then
2801 echo "$as_me:$LINENO: result: yes" >&5
2802echo "${ECHO_T}yes" >&6
2803 elif test "$wxUSE_LIBPNG" = no; then
2804 echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6
2806 elif test "$wxUSE_LIBPNG" = sys; then
2807 echo "$as_me:$LINENO: result: system version" >&5
2808echo "${ECHO_T}system version" >&6
2809 elif test "$wxUSE_LIBPNG" = builtin; then
2810 echo "$as_me:$LINENO: result: builtin version" >&5
2811echo "${ECHO_T}builtin version" >&6
2812 else
2813 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2814echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2815 { (exit 1); exit 1; }; }
2816 fi
2817
2818
2819 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2820echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2821 no_cache=0
2822
2823# Check whether --with-libjpeg or --without-libjpeg was given.
2824if test "${with_libjpeg+set}" = set; then
2825 withval="$with_libjpeg"
2826
2827 if test "$withval" = yes; then
2828 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2829 elif test "$withval" = no; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2831 elif test "$withval" = sys; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2833 elif test "$withval" = builtin; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2835 else
2836 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2837echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2838 { (exit 1); exit 1; }; }
2839 fi
2840
2841else
2842
2843 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2844 if test "x$LINE" != x ; then
2845 eval "DEFAULT_$LINE"
2846 else
2847 no_cache=1
2848 fi
2849
2850 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2851
2852fi;
2853
2854 eval "$ac_cv_use_libjpeg"
2855 if test "$no_cache" != 1; then
2856 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2857 fi
2858
2859 if test "$wxUSE_LIBJPEG" = yes; then
2860 echo "$as_me:$LINENO: result: yes" >&5
2861echo "${ECHO_T}yes" >&6
2862 elif test "$wxUSE_LIBJPEG" = no; then
2863 echo "$as_me:$LINENO: result: no" >&5
2864echo "${ECHO_T}no" >&6
2865 elif test "$wxUSE_LIBJPEG" = sys; then
2866 echo "$as_me:$LINENO: result: system version" >&5
2867echo "${ECHO_T}system version" >&6
2868 elif test "$wxUSE_LIBJPEG" = builtin; then
2869 echo "$as_me:$LINENO: result: builtin version" >&5
2870echo "${ECHO_T}builtin version" >&6
2871 else
2872 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2873echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2874 { (exit 1); exit 1; }; }
2875 fi
2876
2877
2878 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2879echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2880 no_cache=0
2881
2882# Check whether --with-libtiff or --without-libtiff was given.
2883if test "${with_libtiff+set}" = set; then
2884 withval="$with_libtiff"
2885
2886 if test "$withval" = yes; then
2887 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2888 elif test "$withval" = no; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2890 elif test "$withval" = sys; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2892 elif test "$withval" = builtin; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2894 else
2895 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2896echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2897 { (exit 1); exit 1; }; }
2898 fi
2899
2900else
2901
2902 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2910
2911fi;
2912
2913 eval "$ac_cv_use_libtiff"
2914 if test "$no_cache" != 1; then
2915 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2916 fi
2917
2918 if test "$wxUSE_LIBTIFF" = yes; then
2919 echo "$as_me:$LINENO: result: yes" >&5
2920echo "${ECHO_T}yes" >&6
2921 elif test "$wxUSE_LIBTIFF" = no; then
2922 echo "$as_me:$LINENO: result: no" >&5
2923echo "${ECHO_T}no" >&6
2924 elif test "$wxUSE_LIBTIFF" = sys; then
2925 echo "$as_me:$LINENO: result: system version" >&5
2926echo "${ECHO_T}system version" >&6
2927 elif test "$wxUSE_LIBTIFF" = builtin; then
2928 echo "$as_me:$LINENO: result: builtin version" >&5
2929echo "${ECHO_T}builtin version" >&6
2930 else
2931 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2932echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2933 { (exit 1); exit 1; }; }
2934 fi
2935
2936
2937 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2938echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2939 no_cache=0
2940
2941# Check whether --with-libxpm or --without-libxpm was given.
2942if test "${with_libxpm+set}" = set; then
2943 withval="$with_libxpm"
2944
2945 if test "$withval" = yes; then
2946 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2947 elif test "$withval" = no; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2949 elif test "$withval" = sys; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2951 elif test "$withval" = builtin; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2953 else
2954 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2955echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2956 { (exit 1); exit 1; }; }
2957 fi
2958
2959else
2960
2961 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
2968 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2969
2970fi;
2971
2972 eval "$ac_cv_use_libxpm"
2973 if test "$no_cache" != 1; then
2974 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2975 fi
2976
2977 if test "$wxUSE_LIBXPM" = yes; then
2978 echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6
2980 elif test "$wxUSE_LIBXPM" = no; then
2981 echo "$as_me:$LINENO: result: no" >&5
2982echo "${ECHO_T}no" >&6
2983 elif test "$wxUSE_LIBXPM" = sys; then
2984 echo "$as_me:$LINENO: result: system version" >&5
2985echo "${ECHO_T}system version" >&6
2986 elif test "$wxUSE_LIBXPM" = builtin; then
2987 echo "$as_me:$LINENO: result: builtin version" >&5
2988echo "${ECHO_T}builtin version" >&6
2989 else
2990 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2991echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2992 { (exit 1); exit 1; }; }
2993 fi
2994
2995
2996 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2997echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2998 no_cache=0
2999
3000# Check whether --with-libmspack or --without-libmspack was given.
3001if test "${with_libmspack+set}" = set; then
3002 withval="$with_libmspack"
3003
3004 if test "$withval" = yes; then
3005 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3006 else
3007 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3008 fi
3009
3010else
3011
3012 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3013 if test "x$LINE" != x ; then
3014 eval "DEFAULT_$LINE"
3015 else
3016 no_cache=1
3017 fi
3018
3019 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3020
3021fi;
3022
3023 eval "$ac_cv_use_libmspack"
3024 if test "$no_cache" != 1; then
3025 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3026 fi
3027
3028 if test "$wxUSE_LIBMSPACK" = yes; then
3029 echo "$as_me:$LINENO: result: yes" >&5
3030echo "${ECHO_T}yes" >&6
3031 else
3032 echo "$as_me:$LINENO: result: no" >&5
3033echo "${ECHO_T}no" >&6
3034 fi
3035
3036
3037 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3038echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3039 no_cache=0
3040
3041# Check whether --with-sdl or --without-sdl was given.
3042if test "${with_sdl+set}" = set; then
3043 withval="$with_sdl"
3044
3045 if test "$withval" = yes; then
3046 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3047 else
3048 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3049 fi
3050
3051else
3052
3053 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3054 if test "x$LINE" != x ; then
3055 eval "DEFAULT_$LINE"
3056 else
3057 no_cache=1
3058 fi
3059
3060 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3061
3062fi;
3063
3064 eval "$ac_cv_use_sdl"
3065 if test "$no_cache" != 1; then
3066 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3067 fi
3068
3069 if test "$wxUSE_LIBSDL" = yes; then
3070 echo "$as_me:$LINENO: result: yes" >&5
3071echo "${ECHO_T}yes" >&6
3072 else
3073 echo "$as_me:$LINENO: result: no" >&5
3074echo "${ECHO_T}no" >&6
3075 fi
3076
3077
3078 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3079echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3080 no_cache=0
3081
3082# Check whether --with-opengl or --without-opengl was given.
3083if test "${with_opengl+set}" = set; then
3084 withval="$with_opengl"
3085
3086 if test "$withval" = yes; then
3087 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3088 else
3089 ac_cv_use_opengl='wxUSE_OPENGL=no'
3090 fi
3091
3092else
3093
3094 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3102
3103fi;
3104
3105 eval "$ac_cv_use_opengl"
3106 if test "$no_cache" != 1; then
3107 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3108 fi
3109
3110 if test "$wxUSE_OPENGL" = yes; then
3111 echo "$as_me:$LINENO: result: yes" >&5
3112echo "${ECHO_T}yes" >&6
3113 else
3114 echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6
3116 fi
3117
3118
3119fi
3120
3121
3122 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3123echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3124 no_cache=0
3125
3126# Check whether --with-dmalloc or --without-dmalloc was given.
3127if test "${with_dmalloc+set}" = set; then
3128 withval="$with_dmalloc"
3129
3130 if test "$withval" = yes; then
3131 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3132 else
3133 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3134 fi
3135
3136else
3137
3138 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3139 if test "x$LINE" != x ; then
3140 eval "DEFAULT_$LINE"
3141 else
3142 no_cache=1
3143 fi
3144
3145 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3146
3147fi;
3148
3149 eval "$ac_cv_use_dmalloc"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_DMALLOC" = yes; then
3155 echo "$as_me:$LINENO: result: yes" >&5
3156echo "${ECHO_T}yes" >&6
3157 else
3158 echo "$as_me:$LINENO: result: no" >&5
3159echo "${ECHO_T}no" >&6
3160 fi
3161
3162
3163 echo "$as_me:$LINENO: checking for --with-regex" >&5
3164echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3165 no_cache=0
3166
3167# Check whether --with-regex or --without-regex was given.
3168if test "${with_regex+set}" = set; then
3169 withval="$with_regex"
3170
3171 if test "$withval" = yes; then
3172 ac_cv_use_regex='wxUSE_REGEX=yes'
3173 elif test "$withval" = no; then
3174 ac_cv_use_regex='wxUSE_REGEX=no'
3175 elif test "$withval" = sys; then
3176 ac_cv_use_regex='wxUSE_REGEX=sys'
3177 elif test "$withval" = builtin; then
3178 ac_cv_use_regex='wxUSE_REGEX=builtin'
3179 else
3180 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3181echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3182 { (exit 1); exit 1; }; }
3183 fi
3184
3185else
3186
3187 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3188 if test "x$LINE" != x ; then
3189 eval "DEFAULT_$LINE"
3190 else
3191 no_cache=1
3192 fi
3193
3194 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3195
3196fi;
3197
3198 eval "$ac_cv_use_regex"
3199 if test "$no_cache" != 1; then
3200 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3201 fi
3202
3203 if test "$wxUSE_REGEX" = yes; then
3204 echo "$as_me:$LINENO: result: yes" >&5
3205echo "${ECHO_T}yes" >&6
3206 elif test "$wxUSE_REGEX" = no; then
3207 echo "$as_me:$LINENO: result: no" >&5
3208echo "${ECHO_T}no" >&6
3209 elif test "$wxUSE_REGEX" = sys; then
3210 echo "$as_me:$LINENO: result: system version" >&5
3211echo "${ECHO_T}system version" >&6
3212 elif test "$wxUSE_REGEX" = builtin; then
3213 echo "$as_me:$LINENO: result: builtin version" >&5
3214echo "${ECHO_T}builtin version" >&6
3215 else
3216 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3217echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3218 { (exit 1); exit 1; }; }
3219 fi
3220
3221
3222 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3223echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3224 no_cache=0
3225
3226# Check whether --with-zlib or --without-zlib was given.
3227if test "${with_zlib+set}" = set; then
3228 withval="$with_zlib"
3229
3230 if test "$withval" = yes; then
3231 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3232 elif test "$withval" = no; then
3233 ac_cv_use_zlib='wxUSE_ZLIB=no'
3234 elif test "$withval" = sys; then
3235 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3236 elif test "$withval" = builtin; then
3237 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3238 else
3239 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3240echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3241 { (exit 1); exit 1; }; }
3242 fi
3243
3244else
3245
3246 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3247 if test "x$LINE" != x ; then
3248 eval "DEFAULT_$LINE"
3249 else
3250 no_cache=1
3251 fi
3252
3253 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3254
3255fi;
3256
3257 eval "$ac_cv_use_zlib"
3258 if test "$no_cache" != 1; then
3259 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3260 fi
3261
3262 if test "$wxUSE_ZLIB" = yes; then
3263 echo "$as_me:$LINENO: result: yes" >&5
3264echo "${ECHO_T}yes" >&6
3265 elif test "$wxUSE_ZLIB" = no; then
3266 echo "$as_me:$LINENO: result: no" >&5
3267echo "${ECHO_T}no" >&6
3268 elif test "$wxUSE_ZLIB" = sys; then
3269 echo "$as_me:$LINENO: result: system version" >&5
3270echo "${ECHO_T}system version" >&6
3271 elif test "$wxUSE_ZLIB" = builtin; then
3272 echo "$as_me:$LINENO: result: builtin version" >&5
3273echo "${ECHO_T}builtin version" >&6
3274 else
3275 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3276echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3277 { (exit 1); exit 1; }; }
3278 fi
3279
3280
3281 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3282echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3283 no_cache=0
3284
3285# Check whether --with-odbc or --without-odbc was given.
3286if test "${with_odbc+set}" = set; then
3287 withval="$with_odbc"
3288
3289 if test "$withval" = yes; then
3290 ac_cv_use_odbc='wxUSE_ODBC=yes'
3291 elif test "$withval" = no; then
3292 ac_cv_use_odbc='wxUSE_ODBC=no'
3293 elif test "$withval" = sys; then
3294 ac_cv_use_odbc='wxUSE_ODBC=sys'
3295 elif test "$withval" = builtin; then
3296 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3297 else
3298 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3299echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3300 { (exit 1); exit 1; }; }
3301 fi
3302
3303else
3304
3305 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3306 if test "x$LINE" != x ; then
3307 eval "DEFAULT_$LINE"
3308 else
3309 no_cache=1
3310 fi
3311
3312 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3313
3314fi;
3315
3316 eval "$ac_cv_use_odbc"
3317 if test "$no_cache" != 1; then
3318 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3319 fi
3320
3321 if test "$wxUSE_ODBC" = yes; then
3322 echo "$as_me:$LINENO: result: yes" >&5
3323echo "${ECHO_T}yes" >&6
3324 elif test "$wxUSE_ODBC" = no; then
3325 echo "$as_me:$LINENO: result: no" >&5
3326echo "${ECHO_T}no" >&6
3327 elif test "$wxUSE_ODBC" = sys; then
3328 echo "$as_me:$LINENO: result: system version" >&5
3329echo "${ECHO_T}system version" >&6
3330 elif test "$wxUSE_ODBC" = builtin; then
3331 echo "$as_me:$LINENO: result: builtin version" >&5
3332echo "${ECHO_T}builtin version" >&6
3333 else
3334 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3335echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3336 { (exit 1); exit 1; }; }
3337 fi
3338
3339
3340 echo "$as_me:$LINENO: checking for --with-expat" >&5
3341echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3342 no_cache=0
3343
3344# Check whether --with-expat or --without-expat was given.
3345if test "${with_expat+set}" = set; then
3346 withval="$with_expat"
3347
3348 if test "$withval" = yes; then
3349 ac_cv_use_expat='wxUSE_EXPAT=yes'
3350 elif test "$withval" = no; then
3351 ac_cv_use_expat='wxUSE_EXPAT=no'
3352 elif test "$withval" = sys; then
3353 ac_cv_use_expat='wxUSE_EXPAT=sys'
3354 elif test "$withval" = builtin; then
3355 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3356 else
3357 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3358echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3359 { (exit 1); exit 1; }; }
3360 fi
3361
3362else
3363
3364 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3365 if test "x$LINE" != x ; then
3366 eval "DEFAULT_$LINE"
3367 else
3368 no_cache=1
3369 fi
3370
3371 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3372
3373fi;
3374
3375 eval "$ac_cv_use_expat"
3376 if test "$no_cache" != 1; then
3377 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3378 fi
3379
3380 if test "$wxUSE_EXPAT" = yes; then
3381 echo "$as_me:$LINENO: result: yes" >&5
3382echo "${ECHO_T}yes" >&6
3383 elif test "$wxUSE_EXPAT" = no; then
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
3386 elif test "$wxUSE_EXPAT" = sys; then
3387 echo "$as_me:$LINENO: result: system version" >&5
3388echo "${ECHO_T}system version" >&6
3389 elif test "$wxUSE_EXPAT" = builtin; then
3390 echo "$as_me:$LINENO: result: builtin version" >&5
3391echo "${ECHO_T}builtin version" >&6
3392 else
3393 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3394echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3395 { (exit 1); exit 1; }; }
3396 fi
3397
3398
3399
3400
3401 enablestring=
3402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3403echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3404 no_cache=0
3405 # Check whether --enable-shared or --disable-shared was given.
3406if test "${enable_shared+set}" = set; then
3407 enableval="$enable_shared"
3408
3409 if test "$enableval" = yes; then
3410 ac_cv_use_shared='wxUSE_SHARED=yes'
3411 else
3412 ac_cv_use_shared='wxUSE_SHARED=no'
3413 fi
3414
3415else
3416
3417 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3418 if test "x$LINE" != x ; then
3419 eval "DEFAULT_$LINE"
3420 else
3421 no_cache=1
3422 fi
3423
3424 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3425
3426fi;
3427
3428 eval "$ac_cv_use_shared"
3429 if test "$no_cache" != 1; then
3430 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3431 fi
3432
3433 if test "$wxUSE_SHARED" = yes; then
3434 echo "$as_me:$LINENO: result: yes" >&5
3435echo "${ECHO_T}yes" >&6
3436 else
3437 echo "$as_me:$LINENO: result: no" >&5
3438echo "${ECHO_T}no" >&6
3439 fi
3440
3441
3442 enablestring=
3443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3444echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3445 no_cache=0
3446 # Check whether --enable-optimise or --disable-optimise was given.
3447if test "${enable_optimise+set}" = set; then
3448 enableval="$enable_optimise"
3449
3450 if test "$enableval" = yes; then
3451 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3452 else
3453 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3454 fi
3455
3456else
3457
3458 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3459 if test "x$LINE" != x ; then
3460 eval "DEFAULT_$LINE"
3461 else
3462 no_cache=1
3463 fi
3464
3465 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3466
3467fi;
3468
3469 eval "$ac_cv_use_optimise"
3470 if test "$no_cache" != 1; then
3471 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3472 fi
3473
3474 if test "$wxUSE_OPTIMISE" = yes; then
3475 echo "$as_me:$LINENO: result: yes" >&5
3476echo "${ECHO_T}yes" >&6
3477 else
3478 echo "$as_me:$LINENO: result: no" >&5
3479echo "${ECHO_T}no" >&6
3480 fi
3481
3482
3483 enablestring=
3484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3485echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3486 no_cache=0
3487 # Check whether --enable-debug or --disable-debug was given.
3488if test "${enable_debug+set}" = set; then
3489 enableval="$enable_debug"
3490
3491 if test "$enableval" = yes; then
3492 ac_cv_use_debug='wxUSE_DEBUG=yes'
3493 else
3494 ac_cv_use_debug='wxUSE_DEBUG=no'
3495 fi
3496
3497else
3498
3499 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3500 if test "x$LINE" != x ; then
3501 eval "DEFAULT_$LINE"
3502 else
3503 no_cache=1
3504 fi
3505
3506 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3507
3508fi;
3509
3510 eval "$ac_cv_use_debug"
3511 if test "$no_cache" != 1; then
3512 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3513 fi
3514
3515 if test "$wxUSE_DEBUG" = yes; then
3516 echo "$as_me:$LINENO: result: yes" >&5
3517echo "${ECHO_T}yes" >&6
3518 else
3519 echo "$as_me:$LINENO: result: no" >&5
3520echo "${ECHO_T}no" >&6
3521 fi
3522
3523
3524 enablestring=
3525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3526echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3527 no_cache=0
3528 # Check whether --enable-stl or --disable-stl was given.
3529if test "${enable_stl+set}" = set; then
3530 enableval="$enable_stl"
3531
3532 if test "$enableval" = yes; then
3533 ac_cv_use_stl='wxUSE_STL=yes'
3534 else
3535 ac_cv_use_stl='wxUSE_STL=no'
3536 fi
3537
3538else
3539
3540 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3541 if test "x$LINE" != x ; then
3542 eval "DEFAULT_$LINE"
3543 else
3544 no_cache=1
3545 fi
3546
3547 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3548
3549fi;
3550
3551 eval "$ac_cv_use_stl"
3552 if test "$no_cache" != 1; then
3553 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3554 fi
3555
3556 if test "$wxUSE_STL" = yes; then
3557 echo "$as_me:$LINENO: result: yes" >&5
3558echo "${ECHO_T}yes" >&6
3559 else
3560 echo "$as_me:$LINENO: result: no" >&5
3561echo "${ECHO_T}no" >&6
3562 fi
3563
3564if test "$USE_OS2" = "1"; then
3565
3566 enablestring=
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3568echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3569 no_cache=0
3570 # Check whether --enable-omf or --disable-omf was given.
3571if test "${enable_omf+set}" = set; then
3572 enableval="$enable_omf"
3573
3574 if test "$enableval" = yes; then
3575 ac_cv_use_omf='wxUSE_OMF=yes'
3576 else
3577 ac_cv_use_omf='wxUSE_OMF=no'
3578 fi
3579
3580else
3581
3582 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3590
3591fi;
3592
3593 eval "$ac_cv_use_omf"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_OMF" = yes; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600echo "${ECHO_T}yes" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
3604 fi
3605
3606fi
3607
3608if test "$wxUSE_DEBUG" = "yes"; then
3609 DEFAULT_wxUSE_DEBUG_FLAG=yes
3610 DEFAULT_wxUSE_DEBUG_INFO=yes
3611 BUILD=debug
3612elif test "$wxUSE_DEBUG" = "no"; then
3613 DEFAULT_wxUSE_DEBUG_FLAG=no
3614 DEFAULT_wxUSE_DEBUG_INFO=no
3615 BUILD=release
3616fi
3617
3618
3619 enablestring=
3620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3621echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3622 no_cache=0
3623 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3624if test "${enable_debug_flag+set}" = set; then
3625 enableval="$enable_debug_flag"
3626
3627 if test "$enableval" = yes; then
3628 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3629 else
3630 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3631 fi
3632
3633else
3634
3635 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3636 if test "x$LINE" != x ; then
3637 eval "DEFAULT_$LINE"
3638 else
3639 no_cache=1
3640 fi
3641
3642 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3643
3644fi;
3645
3646 eval "$ac_cv_use_debug_flag"
3647 if test "$no_cache" != 1; then
3648 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3649 fi
3650
3651 if test "$wxUSE_DEBUG_FLAG" = yes; then
3652 echo "$as_me:$LINENO: result: yes" >&5
3653echo "${ECHO_T}yes" >&6
3654 else
3655 echo "$as_me:$LINENO: result: no" >&5
3656echo "${ECHO_T}no" >&6
3657 fi
3658
3659
3660 enablestring=
3661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3662echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3663 no_cache=0
3664 # Check whether --enable-debug_info or --disable-debug_info was given.
3665if test "${enable_debug_info+set}" = set; then
3666 enableval="$enable_debug_info"
3667
3668 if test "$enableval" = yes; then
3669 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3670 else
3671 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3672 fi
3673
3674else
3675
3676 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3677 if test "x$LINE" != x ; then
3678 eval "DEFAULT_$LINE"
3679 else
3680 no_cache=1
3681 fi
3682
3683 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3684
3685fi;
3686
3687 eval "$ac_cv_use_debug_info"
3688 if test "$no_cache" != 1; then
3689 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3690 fi
3691
3692 if test "$wxUSE_DEBUG_INFO" = yes; then
3693 echo "$as_me:$LINENO: result: yes" >&5
3694echo "${ECHO_T}yes" >&6
3695 else
3696 echo "$as_me:$LINENO: result: no" >&5
3697echo "${ECHO_T}no" >&6
3698 fi
3699
3700
3701 enablestring=
3702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3703echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3704 no_cache=0
3705 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3706if test "${enable_debug_gdb+set}" = set; then
3707 enableval="$enable_debug_gdb"
3708
3709 if test "$enableval" = yes; then
3710 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3711 else
3712 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3713 fi
3714
3715else
3716
3717 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
3724 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3725
3726fi;
3727
3728 eval "$ac_cv_use_debug_gdb"
3729 if test "$no_cache" != 1; then
3730 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3731 fi
3732
3733 if test "$wxUSE_DEBUG_GDB" = yes; then
3734 echo "$as_me:$LINENO: result: yes" >&5
3735echo "${ECHO_T}yes" >&6
3736 else
3737 echo "$as_me:$LINENO: result: no" >&5
3738echo "${ECHO_T}no" >&6
3739 fi
3740
3741
3742 enablestring=
3743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3744echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3745 no_cache=0
3746 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3747if test "${enable_debug_cntxt+set}" = set; then
3748 enableval="$enable_debug_cntxt"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3752 else
3753 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3754 fi
3755
3756else
3757
3758 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3766
3767fi;
3768
3769 eval "$ac_cv_use_debug_cntxt"
3770 if test "$no_cache" != 1; then
3771 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3772 fi
3773
3774 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3775 echo "$as_me:$LINENO: result: yes" >&5
3776echo "${ECHO_T}yes" >&6
3777 else
3778 echo "$as_me:$LINENO: result: no" >&5
3779echo "${ECHO_T}no" >&6
3780 fi
3781
3782
3783 enablestring=
3784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3785echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3786 no_cache=0
3787 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3788if test "${enable_mem_tracing+set}" = set; then
3789 enableval="$enable_mem_tracing"
3790
3791 if test "$enableval" = yes; then
3792 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3793 else
3794 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3795 fi
3796
3797else
3798
3799 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3800 if test "x$LINE" != x ; then
3801 eval "DEFAULT_$LINE"
3802 else
3803 no_cache=1
3804 fi
3805
3806 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3807
3808fi;
3809
3810 eval "$ac_cv_use_mem_tracing"
3811 if test "$no_cache" != 1; then
3812 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3813 fi
3814
3815 if test "$wxUSE_MEM_TRACING" = yes; then
3816 echo "$as_me:$LINENO: result: yes" >&5
3817echo "${ECHO_T}yes" >&6
3818 else
3819 echo "$as_me:$LINENO: result: no" >&5
3820echo "${ECHO_T}no" >&6
3821 fi
3822
3823
3824 enablestring=
3825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3826echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3827 no_cache=0
3828 # Check whether --enable-profile or --disable-profile was given.
3829if test "${enable_profile+set}" = set; then
3830 enableval="$enable_profile"
3831
3832 if test "$enableval" = yes; then
3833 ac_cv_use_profile='wxUSE_PROFILE=yes'
3834 else
3835 ac_cv_use_profile='wxUSE_PROFILE=no'
3836 fi
3837
3838else
3839
3840 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3841 if test "x$LINE" != x ; then
3842 eval "DEFAULT_$LINE"
3843 else
3844 no_cache=1
3845 fi
3846
3847 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3848
3849fi;
3850
3851 eval "$ac_cv_use_profile"
3852 if test "$no_cache" != 1; then
3853 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3854 fi
3855
3856 if test "$wxUSE_PROFILE" = yes; then
3857 echo "$as_me:$LINENO: result: yes" >&5
3858echo "${ECHO_T}yes" >&6
3859 else
3860 echo "$as_me:$LINENO: result: no" >&5
3861echo "${ECHO_T}no" >&6
3862 fi
3863
3864
3865 enablestring=
3866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3867echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3868 no_cache=0
3869 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3870if test "${enable_no_rtti+set}" = set; then
3871 enableval="$enable_no_rtti"
3872
3873 if test "$enableval" = yes; then
3874 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3875 else
3876 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3877 fi
3878
3879else
3880
3881 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3882 if test "x$LINE" != x ; then
3883 eval "DEFAULT_$LINE"
3884 else
3885 no_cache=1
3886 fi
3887
3888 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3889
3890fi;
3891
3892 eval "$ac_cv_use_no_rtti"
3893 if test "$no_cache" != 1; then
3894 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3895 fi
3896
3897 if test "$wxUSE_NO_RTTI" = yes; then
3898 echo "$as_me:$LINENO: result: yes" >&5
3899echo "${ECHO_T}yes" >&6
3900 else
3901 echo "$as_me:$LINENO: result: no" >&5
3902echo "${ECHO_T}no" >&6
3903 fi
3904
3905
3906 enablestring=
3907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3908echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3909 no_cache=0
3910 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3911if test "${enable_no_exceptions+set}" = set; then
3912 enableval="$enable_no_exceptions"
3913
3914 if test "$enableval" = yes; then
3915 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3916 else
3917 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3918 fi
3919
3920else
3921
3922 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3923 if test "x$LINE" != x ; then
3924 eval "DEFAULT_$LINE"
3925 else
3926 no_cache=1
3927 fi
3928
3929 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3930
3931fi;
3932
3933 eval "$ac_cv_use_no_exceptions"
3934 if test "$no_cache" != 1; then
3935 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3936 fi
3937
3938 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3939 echo "$as_me:$LINENO: result: yes" >&5
3940echo "${ECHO_T}yes" >&6
3941 else
3942 echo "$as_me:$LINENO: result: no" >&5
3943echo "${ECHO_T}no" >&6
3944 fi
3945
3946
3947 enablestring=
3948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3949echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3950 no_cache=0
3951 # Check whether --enable-permissive or --disable-permissive was given.
3952if test "${enable_permissive+set}" = set; then
3953 enableval="$enable_permissive"
3954
3955 if test "$enableval" = yes; then
3956 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3957 else
3958 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3959 fi
3960
3961else
3962
3963 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3971
3972fi;
3973
3974 eval "$ac_cv_use_permissive"
3975 if test "$no_cache" != 1; then
3976 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3977 fi
3978
3979 if test "$wxUSE_PERMISSIVE" = yes; then
3980 echo "$as_me:$LINENO: result: yes" >&5
3981echo "${ECHO_T}yes" >&6
3982 else
3983 echo "$as_me:$LINENO: result: no" >&5
3984echo "${ECHO_T}no" >&6
3985 fi
3986
3987
3988 enablestring=
3989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3990echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3991 no_cache=0
3992 # Check whether --enable-no_deps or --disable-no_deps was given.
3993if test "${enable_no_deps+set}" = set; then
3994 enableval="$enable_no_deps"
3995
3996 if test "$enableval" = yes; then
3997 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3998 else
3999 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4000 fi
4001
4002else
4003
4004 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4005 if test "x$LINE" != x ; then
4006 eval "DEFAULT_$LINE"
4007 else
4008 no_cache=1
4009 fi
4010
4011 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4012
4013fi;
4014
4015 eval "$ac_cv_use_no_deps"
4016 if test "$no_cache" != 1; then
4017 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4018 fi
4019
4020 if test "$wxUSE_NO_DEPS" = yes; then
4021 echo "$as_me:$LINENO: result: yes" >&5
4022echo "${ECHO_T}yes" >&6
4023 else
4024 echo "$as_me:$LINENO: result: no" >&5
4025echo "${ECHO_T}no" >&6
4026 fi
4027
4028
4029
4030 enablestring=
4031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4032echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4033 no_cache=0
4034 # Check whether --enable-compat22 or --disable-compat22 was given.
4035if test "${enable_compat22+set}" = set; then
4036 enableval="$enable_compat22"
4037
4038 if test "$enableval" = yes; then
4039 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4040 else
4041 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4042 fi
4043
4044else
4045
4046 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4047 if test "x$LINE" != x ; then
4048 eval "DEFAULT_$LINE"
4049 else
4050 no_cache=1
4051 fi
4052
4053 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4054
4055fi;
4056
4057 eval "$ac_cv_use_compat22"
4058 if test "$no_cache" != 1; then
4059 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4060 fi
4061
4062 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4063 echo "$as_me:$LINENO: result: yes" >&5
4064echo "${ECHO_T}yes" >&6
4065 else
4066 echo "$as_me:$LINENO: result: no" >&5
4067echo "${ECHO_T}no" >&6
4068 fi
4069
4070
4071 enablestring=disable
4072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4073echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4074 no_cache=0
4075 # Check whether --enable-compat24 or --disable-compat24 was given.
4076if test "${enable_compat24+set}" = set; then
4077 enableval="$enable_compat24"
4078
4079 if test "$enableval" = yes; then
4080 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4081 else
4082 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4083 fi
4084
4085else
4086
4087 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4088 if test "x$LINE" != x ; then
4089 eval "DEFAULT_$LINE"
4090 else
4091 no_cache=1
4092 fi
4093
4094 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4095
4096fi;
4097
4098 eval "$ac_cv_use_compat24"
4099 if test "$no_cache" != 1; then
4100 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4101 fi
4102
4103 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4104 echo "$as_me:$LINENO: result: yes" >&5
4105echo "${ECHO_T}yes" >&6
4106 else
4107 echo "$as_me:$LINENO: result: no" >&5
4108echo "${ECHO_T}no" >&6
4109 fi
4110
4111
ffa0583f
RL
4112
4113 enablestring=
4114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4115echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4116 no_cache=0
4117 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4118if test "${enable_rpath+set}" = set; then
4119 enableval="$enable_rpath"
ffa0583f
RL
4120
4121 if test "$enableval" = yes; then
4122 ac_cv_use_rpath='wxUSE_RPATH=yes'
4123 else
4124 ac_cv_use_rpath='wxUSE_RPATH=no'
4125 fi
4126
4127else
4128
4129 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4130 if test "x$LINE" != x ; then
4131 eval "DEFAULT_$LINE"
4132 else
4133 no_cache=1
4134 fi
4135
4136 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4137
a848cd7e
SC
4138fi;
4139
ffa0583f
RL
4140 eval "$ac_cv_use_rpath"
4141 if test "$no_cache" != 1; then
4142 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4143 fi
4144
4145 if test "$wxUSE_RPATH" = yes; then
4146 echo "$as_me:$LINENO: result: yes" >&5
4147echo "${ECHO_T}yes" >&6
4148 else
4149 echo "$as_me:$LINENO: result: no" >&5
4150echo "${ECHO_T}no" >&6
4151 fi
4152
a848cd7e
SC
4153
4154
4155
4156
4157 enablestring=
4158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4159echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4160 no_cache=0
4161 # Check whether --enable-intl or --disable-intl was given.
4162if test "${enable_intl+set}" = set; then
4163 enableval="$enable_intl"
4164
4165 if test "$enableval" = yes; then
4166 ac_cv_use_intl='wxUSE_INTL=yes'
4167 else
4168 ac_cv_use_intl='wxUSE_INTL=no'
4169 fi
4170
4171else
4172
4173 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
4180 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4181
4182fi;
4183
4184 eval "$ac_cv_use_intl"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_INTL" = yes; then
4190 echo "$as_me:$LINENO: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
4192 else
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195 fi
4196
4197
4198 enablestring=
4199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4200echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4201 no_cache=0
4202 # Check whether --enable-config or --disable-config was given.
4203if test "${enable_config+set}" = set; then
4204 enableval="$enable_config"
4205
4206 if test "$enableval" = yes; then
4207 ac_cv_use_config='wxUSE_CONFIG=yes'
4208 else
4209 ac_cv_use_config='wxUSE_CONFIG=no'
4210 fi
4211
4212else
4213
4214 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4215 if test "x$LINE" != x ; then
4216 eval "DEFAULT_$LINE"
4217 else
4218 no_cache=1
4219 fi
4220
4221 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4222
4223fi;
4224
4225 eval "$ac_cv_use_config"
4226 if test "$no_cache" != 1; then
4227 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4228 fi
4229
4230 if test "$wxUSE_CONFIG" = yes; then
4231 echo "$as_me:$LINENO: result: yes" >&5
4232echo "${ECHO_T}yes" >&6
4233 else
4234 echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
4236 fi
4237
4238
4239
4240 enablestring=
4241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4242echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4243 no_cache=0
4244 # Check whether --enable-protocols or --disable-protocols was given.
4245if test "${enable_protocols+set}" = set; then
4246 enableval="$enable_protocols"
4247
4248 if test "$enableval" = yes; then
4249 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4250 else
4251 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4252 fi
4253
4254else
4255
4256 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4257 if test "x$LINE" != x ; then
4258 eval "DEFAULT_$LINE"
4259 else
4260 no_cache=1
4261 fi
4262
4263 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4264
4265fi;
4266
4267 eval "$ac_cv_use_protocols"
4268 if test "$no_cache" != 1; then
4269 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4270 fi
4271
4272 if test "$wxUSE_PROTOCOL" = yes; then
4273 echo "$as_me:$LINENO: result: yes" >&5
4274echo "${ECHO_T}yes" >&6
4275 else
4276 echo "$as_me:$LINENO: result: no" >&5
4277echo "${ECHO_T}no" >&6
4278 fi
4279
4280
4281 enablestring=
4282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4283echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4284 no_cache=0
4285 # Check whether --enable-ftp or --disable-ftp was given.
4286if test "${enable_ftp+set}" = set; then
4287 enableval="$enable_ftp"
4288
4289 if test "$enableval" = yes; then
4290 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4291 else
4292 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4293 fi
4294
4295else
4296
4297 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4298 if test "x$LINE" != x ; then
4299 eval "DEFAULT_$LINE"
4300 else
4301 no_cache=1
4302 fi
4303
4304 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4305
4306fi;
4307
4308 eval "$ac_cv_use_ftp"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4314 echo "$as_me:$LINENO: result: yes" >&5
4315echo "${ECHO_T}yes" >&6
4316 else
4317 echo "$as_me:$LINENO: result: no" >&5
4318echo "${ECHO_T}no" >&6
4319 fi
4320
4321
4322 enablestring=
4323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4324echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4325 no_cache=0
4326 # Check whether --enable-http or --disable-http was given.
4327if test "${enable_http+set}" = set; then
4328 enableval="$enable_http"
4329
4330 if test "$enableval" = yes; then
4331 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4332 else
4333 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4334 fi
4335
4336else
4337
4338 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4339 if test "x$LINE" != x ; then
4340 eval "DEFAULT_$LINE"
4341 else
4342 no_cache=1
4343 fi
4344
4345 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4346
4347fi;
4348
4349 eval "$ac_cv_use_http"
4350 if test "$no_cache" != 1; then
4351 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4352 fi
4353
4354 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4355 echo "$as_me:$LINENO: result: yes" >&5
4356echo "${ECHO_T}yes" >&6
4357 else
4358 echo "$as_me:$LINENO: result: no" >&5
4359echo "${ECHO_T}no" >&6
4360 fi
4361
4362
4363 enablestring=
4364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4365echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4366 no_cache=0
4367 # Check whether --enable-fileproto or --disable-fileproto was given.
4368if test "${enable_fileproto+set}" = set; then
4369 enableval="$enable_fileproto"
4370
4371 if test "$enableval" = yes; then
4372 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4373 else
4374 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4375 fi
4376
4377else
4378
4379 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4380 if test "x$LINE" != x ; then
4381 eval "DEFAULT_$LINE"
4382 else
4383 no_cache=1
4384 fi
4385
4386 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4387
4388fi;
4389
4390 eval "$ac_cv_use_fileproto"
4391 if test "$no_cache" != 1; then
4392 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4393 fi
4394
4395 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4396 echo "$as_me:$LINENO: result: yes" >&5
4397echo "${ECHO_T}yes" >&6
4398 else
4399 echo "$as_me:$LINENO: result: no" >&5
4400echo "${ECHO_T}no" >&6
4401 fi
4402
4403
4404 enablestring=
4405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4406echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4407 no_cache=0
4408 # Check whether --enable-sockets or --disable-sockets was given.
4409if test "${enable_sockets+set}" = set; then
4410 enableval="$enable_sockets"
4411
4412 if test "$enableval" = yes; then
4413 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4414 else
4415 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4416 fi
4417
4418else
4419
4420 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4421 if test "x$LINE" != x ; then
4422 eval "DEFAULT_$LINE"
4423 else
4424 no_cache=1
4425 fi
4426
4427 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4428
4429fi;
4430
4431 eval "$ac_cv_use_sockets"
4432 if test "$no_cache" != 1; then
4433 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4434 fi
4435
4436 if test "$wxUSE_SOCKETS" = yes; then
4437 echo "$as_me:$LINENO: result: yes" >&5
4438echo "${ECHO_T}yes" >&6
4439 else
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
4442 fi
4443
4444
4445 enablestring=
4446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4447echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4448 no_cache=0
4449 # Check whether --enable-ole or --disable-ole was given.
4450if test "${enable_ole+set}" = set; then
4451 enableval="$enable_ole"
4452
4453 if test "$enableval" = yes; then
4454 ac_cv_use_ole='wxUSE_OLE=yes'
4455 else
4456 ac_cv_use_ole='wxUSE_OLE=no'
4457 fi
4458
4459else
4460
4461 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4462 if test "x$LINE" != x ; then
4463 eval "DEFAULT_$LINE"
4464 else
4465 no_cache=1
4466 fi
4467
4468 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4469
4470fi;
4471
4472 eval "$ac_cv_use_ole"
4473 if test "$no_cache" != 1; then
4474 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4475 fi
4476
4477 if test "$wxUSE_OLE" = yes; then
4478 echo "$as_me:$LINENO: result: yes" >&5
4479echo "${ECHO_T}yes" >&6
4480 else
4481 echo "$as_me:$LINENO: result: no" >&5
4482echo "${ECHO_T}no" >&6
4483 fi
4484
4485
4486 enablestring=
4487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4488echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4489 no_cache=0
4490 # Check whether --enable-dataobj or --disable-dataobj was given.
4491if test "${enable_dataobj+set}" = set; then
4492 enableval="$enable_dataobj"
4493
4494 if test "$enableval" = yes; then
4495 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4496 else
4497 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4498 fi
4499
4500else
4501
4502 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4503 if test "x$LINE" != x ; then
4504 eval "DEFAULT_$LINE"
4505 else
4506 no_cache=1
4507 fi
4508
4509 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4510
4511fi;
4512
4513 eval "$ac_cv_use_dataobj"
4514 if test "$no_cache" != 1; then
4515 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4516 fi
4517
4518 if test "$wxUSE_DATAOBJ" = yes; then
4519 echo "$as_me:$LINENO: result: yes" >&5
4520echo "${ECHO_T}yes" >&6
4521 else
4522 echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6
4524 fi
4525
4526
4527
4528 enablestring=
4529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4530echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4531 no_cache=0
4532 # Check whether --enable-ipc or --disable-ipc was given.
4533if test "${enable_ipc+set}" = set; then
4534 enableval="$enable_ipc"
4535
4536 if test "$enableval" = yes; then
4537 ac_cv_use_ipc='wxUSE_IPC=yes'
4538 else
4539 ac_cv_use_ipc='wxUSE_IPC=no'
4540 fi
4541
4542else
4543
4544 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4545 if test "x$LINE" != x ; then
4546 eval "DEFAULT_$LINE"
4547 else
4548 no_cache=1
4549 fi
4550
4551 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4552
4553fi;
4554
4555 eval "$ac_cv_use_ipc"
4556 if test "$no_cache" != 1; then
4557 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4558 fi
4559
4560 if test "$wxUSE_IPC" = yes; then
4561 echo "$as_me:$LINENO: result: yes" >&5
4562echo "${ECHO_T}yes" >&6
4563 else
4564 echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6
4566 fi
4567
4568
4569
4570 enablestring=
4571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4572echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4573 no_cache=0
4574 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4575if test "${enable_apple_ieee+set}" = set; then
4576 enableval="$enable_apple_ieee"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4580 else
4581 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4594
4595fi;
4596
4597 eval "$ac_cv_use_apple_ieee"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_APPLE_IEEE" = yes; then
4603 echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608 fi
4609
4610
4611 enablestring=
4612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4613echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4614 no_cache=0
4615 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4616if test "${enable_catch_segvs+set}" = set; then
4617 enableval="$enable_catch_segvs"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4621 else
4622 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4623 fi
4624
4625else
4626
4627 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4635
4636fi;
4637
4638 eval "$ac_cv_use_catch_segvs"
4639 if test "$no_cache" != 1; then
4640 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4641 fi
4642
4643 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645echo "${ECHO_T}yes" >&6
4646 else
4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
4649 fi
4650
4651
4652 enablestring=
4653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4654echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4655 no_cache=0
4656 # Check whether --enable-cmdline or --disable-cmdline was given.
4657if test "${enable_cmdline+set}" = set; then
4658 enableval="$enable_cmdline"
4659
4660 if test "$enableval" = yes; then
4661 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4662 else
4663 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4664 fi
4665
4666else
4667
4668 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4676
4677fi;
4678
4679 eval "$ac_cv_use_cmdline"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4685 echo "$as_me:$LINENO: result: yes" >&5
4686echo "${ECHO_T}yes" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6
4690 fi
4691
4692
4693 enablestring=
4694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4695echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4696 no_cache=0
4697 # Check whether --enable-datetime or --disable-datetime was given.
4698if test "${enable_datetime+set}" = set; then
4699 enableval="$enable_datetime"
4700
4701 if test "$enableval" = yes; then
4702 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4703 else
4704 ac_cv_use_datetime='wxUSE_DATETIME=no'
4705 fi
4706
4707else
4708
4709 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 else
4713 no_cache=1
4714 fi
4715
4716 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4717
4718fi;
4719
4720 eval "$ac_cv_use_datetime"
4721 if test "$no_cache" != 1; then
4722 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4723 fi
4724
4725 if test "$wxUSE_DATETIME" = yes; then
4726 echo "$as_me:$LINENO: result: yes" >&5
4727echo "${ECHO_T}yes" >&6
4728 else
4729 echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6
4731 fi
4732
4733
4734 enablestring=
4735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4736echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4737 no_cache=0
4738 # Check whether --enable-dialupman or --disable-dialupman was given.
4739if test "${enable_dialupman+set}" = set; then
4740 enableval="$enable_dialupman"
4741
4742 if test "$enableval" = yes; then
4743 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4744 else
4745 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4746 fi
4747
4748else
4749
4750 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4751 if test "x$LINE" != x ; then
4752 eval "DEFAULT_$LINE"
4753 else
4754 no_cache=1
4755 fi
4756
4757 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4758
4759fi;
4760
4761 eval "$ac_cv_use_dialupman"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4767 echo "$as_me:$LINENO: result: yes" >&5
4768echo "${ECHO_T}yes" >&6
4769 else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772 fi
4773
4774
4775 enablestring=
4776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4777echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4778 no_cache=0
4779 # Check whether --enable-dynlib or --disable-dynlib was given.
4780if test "${enable_dynlib+set}" = set; then
4781 enableval="$enable_dynlib"
4782
4783 if test "$enableval" = yes; then
4784 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4785 else
4786 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4787 fi
4788
4789else
4790
4791 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4799
4800fi;
4801
4802 eval "$ac_cv_use_dynlib"
4803 if test "$no_cache" != 1; then
4804 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4805 fi
4806
4807 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4808 echo "$as_me:$LINENO: result: yes" >&5
4809echo "${ECHO_T}yes" >&6
4810 else
4811 echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813 fi
4814
4815
4816 enablestring=
4817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4818echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4819 no_cache=0
4820 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4821if test "${enable_dynamicloader+set}" = set; then
4822 enableval="$enable_dynamicloader"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4826 else
4827 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4828 fi
4829
4830else
4831
4832 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4840
4841fi;
4842
4843 eval "$ac_cv_use_dynamicloader"
4844 if test "$no_cache" != 1; then
4845 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4846 fi
4847
4848 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4849 echo "$as_me:$LINENO: result: yes" >&5
4850echo "${ECHO_T}yes" >&6
4851 else
4852 echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6
4854 fi
4855
4856
4857 enablestring=
4858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4859echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4860 no_cache=0
4861 # Check whether --enable-exceptions or --disable-exceptions was given.
4862if test "${enable_exceptions+set}" = set; then
4863 enableval="$enable_exceptions"
4864
4865 if test "$enableval" = yes; then
4866 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4867 else
4868 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4869 fi
4870
4871else
4872
4873 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4874 if test "x$LINE" != x ; then
4875 eval "DEFAULT_$LINE"
4876 else
4877 no_cache=1
4878 fi
4879
4880 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4881
4882fi;
4883
4884 eval "$ac_cv_use_exceptions"
4885 if test "$no_cache" != 1; then
4886 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4887 fi
4888
4889 if test "$wxUSE_EXCEPTIONS" = yes; then
4890 echo "$as_me:$LINENO: result: yes" >&5
4891echo "${ECHO_T}yes" >&6
4892 else
4893 echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6
4895 fi
4896
4897
4898 enablestring=
4899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4900echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4901 no_cache=0
4902 # Check whether --enable-ffile or --disable-ffile was given.
4903if test "${enable_ffile+set}" = set; then
4904 enableval="$enable_ffile"
4905
4906 if test "$enableval" = yes; then
4907 ac_cv_use_ffile='wxUSE_FFILE=yes'
4908 else
4909 ac_cv_use_ffile='wxUSE_FFILE=no'
4910 fi
4911
4912else
4913
4914 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4922
4923fi;
4924
4925 eval "$ac_cv_use_ffile"
4926 if test "$no_cache" != 1; then
4927 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4928 fi
4929
4930 if test "$wxUSE_FFILE" = yes; then
4931 echo "$as_me:$LINENO: result: yes" >&5
4932echo "${ECHO_T}yes" >&6
4933 else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936 fi
4937
4938
4939 enablestring=
4940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4941echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4942 no_cache=0
4943 # Check whether --enable-file or --disable-file was given.
4944if test "${enable_file+set}" = set; then
4945 enableval="$enable_file"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_file='wxUSE_FILE=yes'
4949 else
4950 ac_cv_use_file='wxUSE_FILE=no'
4951 fi
4952
4953else
4954
4955 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4963
4964fi;
4965
4966 eval "$ac_cv_use_file"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_FILE" = yes; then
4972 echo "$as_me:$LINENO: result: yes" >&5
4973echo "${ECHO_T}yes" >&6
4974 else
4975 echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
4977 fi
4978
4979
4980 enablestring=
4981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4982echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4983 no_cache=0
4984 # Check whether --enable-filesystem or --disable-filesystem was given.
4985if test "${enable_filesystem+set}" = set; then
4986 enableval="$enable_filesystem"
4987
4988 if test "$enableval" = yes; then
4989 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4990 else
4991 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4992 fi
4993
4994else
4995
4996 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4997 if test "x$LINE" != x ; then
4998 eval "DEFAULT_$LINE"
4999 else
5000 no_cache=1
5001 fi
5002
5003 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5004
5005fi;
5006
5007 eval "$ac_cv_use_filesystem"
5008 if test "$no_cache" != 1; then
5009 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5010 fi
5011
5012 if test "$wxUSE_FILESYSTEM" = yes; then
5013 echo "$as_me:$LINENO: result: yes" >&5
5014echo "${ECHO_T}yes" >&6
5015 else
5016 echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
5018 fi
5019
5020
5021 enablestring=
5022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5023echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5024 no_cache=0
5025 # Check whether --enable-fontmap or --disable-fontmap was given.
5026if test "${enable_fontmap+set}" = set; then
5027 enableval="$enable_fontmap"
5028
5029 if test "$enableval" = yes; then
5030 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5031 else
5032 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5033 fi
5034
5035else
5036
5037 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5038 if test "x$LINE" != x ; then
5039 eval "DEFAULT_$LINE"
5040 else
5041 no_cache=1
5042 fi
5043
5044 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5045
5046fi;
5047
5048 eval "$ac_cv_use_fontmap"
5049 if test "$no_cache" != 1; then
5050 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5051 fi
5052
5053 if test "$wxUSE_FONTMAP" = yes; then
5054 echo "$as_me:$LINENO: result: yes" >&5
5055echo "${ECHO_T}yes" >&6
5056 else
5057 echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6
5059 fi
5060
5061
5062 enablestring=
5063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5064echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5065 no_cache=0
5066 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5067if test "${enable_fs_inet+set}" = set; then
5068 enableval="$enable_fs_inet"
5069
5070 if test "$enableval" = yes; then
5071 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5072 else
5073 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5074 fi
5075
5076else
5077
5078 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5079 if test "x$LINE" != x ; then
5080 eval "DEFAULT_$LINE"
5081 else
5082 no_cache=1
5083 fi
5084
5085 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5086
5087fi;
5088
5089 eval "$ac_cv_use_fs_inet"
5090 if test "$no_cache" != 1; then
5091 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5092 fi
5093
5094 if test "$wxUSE_FS_INET" = yes; then
5095 echo "$as_me:$LINENO: result: yes" >&5
5096echo "${ECHO_T}yes" >&6
5097 else
5098 echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6
5100 fi
5101
5102
5103 enablestring=
5104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5105echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5106 no_cache=0
5107 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5108if test "${enable_fs_zip+set}" = set; then
5109 enableval="$enable_fs_zip"
5110
5111 if test "$enableval" = yes; then
5112 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5113 else
5114 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5115 fi
5116
5117else
5118
5119 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5120 if test "x$LINE" != x ; then
5121 eval "DEFAULT_$LINE"
5122 else
5123 no_cache=1
5124 fi
5125
5126 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5127
5128fi;
5129
5130 eval "$ac_cv_use_fs_zip"
5131 if test "$no_cache" != 1; then
5132 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5133 fi
5134
5135 if test "$wxUSE_FS_ZIP" = yes; then
5136 echo "$as_me:$LINENO: result: yes" >&5
5137echo "${ECHO_T}yes" >&6
5138 else
5139 echo "$as_me:$LINENO: result: no" >&5
5140echo "${ECHO_T}no" >&6
5141 fi
5142
5143
5144 enablestring=
5145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5146echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5147 no_cache=0
5148 # Check whether --enable-geometry or --disable-geometry was given.
5149if test "${enable_geometry+set}" = set; then
5150 enableval="$enable_geometry"
5151
5152 if test "$enableval" = yes; then
5153 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5154 else
5155 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5156 fi
5157
5158else
5159
5160 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5161 if test "x$LINE" != x ; then
5162 eval "DEFAULT_$LINE"
5163 else
5164 no_cache=1
5165 fi
5166
5167 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5168
5169fi;
5170
5171 eval "$ac_cv_use_geometry"
5172 if test "$no_cache" != 1; then
5173 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5174 fi
5175
5176 if test "$wxUSE_GEOMETRY" = yes; then
5177 echo "$as_me:$LINENO: result: yes" >&5
5178echo "${ECHO_T}yes" >&6
5179 else
5180 echo "$as_me:$LINENO: result: no" >&5
5181echo "${ECHO_T}no" >&6
5182 fi
5183
5184
5185 enablestring=
5186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5187echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5188 no_cache=0
5189 # Check whether --enable-log or --disable-log was given.
5190if test "${enable_log+set}" = set; then
5191 enableval="$enable_log"
5192
5193 if test "$enableval" = yes; then
5194 ac_cv_use_log='wxUSE_LOG=yes'
5195 else
5196 ac_cv_use_log='wxUSE_LOG=no'
5197 fi
5198
5199else
5200
5201 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5209
5210fi;
5211
5212 eval "$ac_cv_use_log"
5213 if test "$no_cache" != 1; then
5214 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5215 fi
5216
5217 if test "$wxUSE_LOG" = yes; then
5218 echo "$as_me:$LINENO: result: yes" >&5
5219echo "${ECHO_T}yes" >&6
5220 else
5221 echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
5223 fi
5224
5225
5226 enablestring=
5227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5228echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5229 no_cache=0
5230 # Check whether --enable-longlong or --disable-longlong was given.
5231if test "${enable_longlong+set}" = set; then
5232 enableval="$enable_longlong"
5233
5234 if test "$enableval" = yes; then
5235 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5236 else
5237 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5238 fi
5239
5240else
5241
5242 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5243 if test "x$LINE" != x ; then
5244 eval "DEFAULT_$LINE"
5245 else
5246 no_cache=1
5247 fi
5248
5249 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5250
5251fi;
5252
5253 eval "$ac_cv_use_longlong"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_LONGLONG" = yes; then
5259 echo "$as_me:$LINENO: result: yes" >&5
5260echo "${ECHO_T}yes" >&6
5261 else
5262 echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264 fi
5265
5266
5267 enablestring=
5268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5269echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5270 no_cache=0
5271 # Check whether --enable-mimetype or --disable-mimetype was given.
5272if test "${enable_mimetype+set}" = set; then
5273 enableval="$enable_mimetype"
5274
5275 if test "$enableval" = yes; then
5276 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5277 else
5278 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5279 fi
5280
5281else
5282
5283 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5284 if test "x$LINE" != x ; then
5285 eval "DEFAULT_$LINE"
5286 else
5287 no_cache=1
5288 fi
5289
5290 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5291
5292fi;
5293
5294 eval "$ac_cv_use_mimetype"
5295 if test "$no_cache" != 1; then
5296 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5297 fi
5298
5299 if test "$wxUSE_MIMETYPE" = yes; then
5300 echo "$as_me:$LINENO: result: yes" >&5
5301echo "${ECHO_T}yes" >&6
5302 else
5303 echo "$as_me:$LINENO: result: no" >&5
5304echo "${ECHO_T}no" >&6
5305 fi
5306
5307
5308 enablestring=
5309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5310echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5311 no_cache=0
5312 # Check whether --enable-mslu or --disable-mslu was given.
5313if test "${enable_mslu+set}" = set; then
5314 enableval="$enable_mslu"
5315
5316 if test "$enableval" = yes; then
5317 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5318 else
5319 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5320 fi
5321
5322else
5323
5324 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5325 if test "x$LINE" != x ; then
5326 eval "DEFAULT_$LINE"
5327 else
5328 no_cache=1
5329 fi
5330
5331 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5332
5333fi;
5334
5335 eval "$ac_cv_use_mslu"
5336 if test "$no_cache" != 1; then
5337 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5338 fi
5339
5340 if test "$wxUSE_UNICODE_MSLU" = yes; then
5341 echo "$as_me:$LINENO: result: yes" >&5
5342echo "${ECHO_T}yes" >&6
5343 else
5344 echo "$as_me:$LINENO: result: no" >&5
5345echo "${ECHO_T}no" >&6
5346 fi
5347
5348
5349 enablestring=
5350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5351echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5352 no_cache=0
5353 # Check whether --enable-snglinst or --disable-snglinst was given.
5354if test "${enable_snglinst+set}" = set; then
5355 enableval="$enable_snglinst"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5359 else
5360 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5361 fi
5362
5363else
5364
5365 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5373
5374fi;
5375
5376 eval "$ac_cv_use_snglinst"
5377 if test "$no_cache" != 1; then
5378 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5379 fi
5380
5381 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5382 echo "$as_me:$LINENO: result: yes" >&5
5383echo "${ECHO_T}yes" >&6
5384 else
5385 echo "$as_me:$LINENO: result: no" >&5
5386echo "${ECHO_T}no" >&6
5387 fi
5388
5389
5390 enablestring=
5391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5392echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5393 no_cache=0
5394 # Check whether --enable-streams or --disable-streams was given.
5395if test "${enable_streams+set}" = set; then
5396 enableval="$enable_streams"
5397
5398 if test "$enableval" = yes; then
5399 ac_cv_use_streams='wxUSE_STREAMS=yes'
5400 else
5401 ac_cv_use_streams='wxUSE_STREAMS=no'
5402 fi
5403
5404else
5405
5406 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5407 if test "x$LINE" != x ; then
5408 eval "DEFAULT_$LINE"
5409 else
5410 no_cache=1
5411 fi
5412
5413 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5414
5415fi;
5416
5417 eval "$ac_cv_use_streams"
5418 if test "$no_cache" != 1; then
5419 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5420 fi
5421
5422 if test "$wxUSE_STREAMS" = yes; then
5423 echo "$as_me:$LINENO: result: yes" >&5
5424echo "${ECHO_T}yes" >&6
5425 else
5426 echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6
5428 fi
5429
5430
5431 enablestring=
5432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5433echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5434 no_cache=0
5435 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5436if test "${enable_std_iostreams+set}" = set; then
5437 enableval="$enable_std_iostreams"
5438
5439 if test "$enableval" = yes; then
5440 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5441 else
5442 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5443 fi
5444
5445else
5446
5447 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5448 if test "x$LINE" != x ; then
5449 eval "DEFAULT_$LINE"
5450 else
5451 no_cache=1
5452 fi
5453
5454 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5455
5456fi;
5457
5458 eval "$ac_cv_use_std_iostreams"
5459 if test "$no_cache" != 1; then
5460 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5461 fi
5462
5463 if test "$wxUSE_STD_IOSTREAM" = yes; then
5464 echo "$as_me:$LINENO: result: yes" >&5
5465echo "${ECHO_T}yes" >&6
5466 else
5467 echo "$as_me:$LINENO: result: no" >&5
5468echo "${ECHO_T}no" >&6
5469 fi
5470
5471
5472 enablestring=
5473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5474echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5475 no_cache=0
5476 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5477if test "${enable_stopwatch+set}" = set; then
5478 enableval="$enable_stopwatch"
5479
5480 if test "$enableval" = yes; then
5481 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5482 else
5483 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5484 fi
5485
5486else
5487
5488 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5489 if test "x$LINE" != x ; then
5490 eval "DEFAULT_$LINE"
5491 else
5492 no_cache=1
5493 fi
5494
5495 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5496
5497fi;
5498
5499 eval "$ac_cv_use_stopwatch"
5500 if test "$no_cache" != 1; then
5501 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5502 fi
5503
5504 if test "$wxUSE_STOPWATCH" = yes; then
5505 echo "$as_me:$LINENO: result: yes" >&5
5506echo "${ECHO_T}yes" >&6
5507 else
5508 echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510 fi
5511
5512
5513 enablestring=
5514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5515echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5516 no_cache=0
5517 # Check whether --enable-system_options or --disable-system_options was given.
5518if test "${enable_system_options+set}" = set; then
5519 enableval="$enable_system_options"
5520
5521 if test "$enableval" = yes; then
5522 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5523 else
5524 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5525 fi
5526
5527else
5528
5529 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5530 if test "x$LINE" != x ; then
5531 eval "DEFAULT_$LINE"
5532 else
5533 no_cache=1
5534 fi
5535
5536 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5537
5538fi;
5539
5540 eval "$ac_cv_use_system_options"
5541 if test "$no_cache" != 1; then
5542 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5543 fi
5544
5545 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5546 echo "$as_me:$LINENO: result: yes" >&5
5547echo "${ECHO_T}yes" >&6
5548 else
5549 echo "$as_me:$LINENO: result: no" >&5
5550echo "${ECHO_T}no" >&6
5551 fi
5552
5553
5554 enablestring=
5555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5556echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5557 no_cache=0
5558 # Check whether --enable-textbuf or --disable-textbuf was given.
5559if test "${enable_textbuf+set}" = set; then
5560 enableval="$enable_textbuf"
5561
5562 if test "$enableval" = yes; then
5563 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5564 else
5565 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5566 fi
5567
5568else
5569
5570 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5571 if test "x$LINE" != x ; then
5572 eval "DEFAULT_$LINE"
5573 else
5574 no_cache=1
5575 fi
5576
5577 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5578
5579fi;
5580
5581 eval "$ac_cv_use_textbuf"
5582 if test "$no_cache" != 1; then
5583 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5584 fi
5585
5586 if test "$wxUSE_TEXTBUFFER" = yes; then
5587 echo "$as_me:$LINENO: result: yes" >&5
5588echo "${ECHO_T}yes" >&6
5589 else
5590 echo "$as_me:$LINENO: result: no" >&5
5591echo "${ECHO_T}no" >&6
5592 fi
5593
5594
5595 enablestring=
5596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5597echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5598 no_cache=0
5599 # Check whether --enable-textfile or --disable-textfile was given.
5600if test "${enable_textfile+set}" = set; then
5601 enableval="$enable_textfile"
5602
5603 if test "$enableval" = yes; then
5604 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5605 else
5606 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5607 fi
5608
5609else
5610
5611 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5612 if test "x$LINE" != x ; then
5613 eval "DEFAULT_$LINE"
5614 else
5615 no_cache=1
5616 fi
5617
5618 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5619
5620fi;
5621
5622 eval "$ac_cv_use_textfile"
5623 if test "$no_cache" != 1; then
5624 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5625 fi
5626
5627 if test "$wxUSE_TEXTFILE" = yes; then
5628 echo "$as_me:$LINENO: result: yes" >&5
5629echo "${ECHO_T}yes" >&6
5630 else
5631 echo "$as_me:$LINENO: result: no" >&5
5632echo "${ECHO_T}no" >&6
5633 fi
5634
5635
5636 enablestring=
5637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5638echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5639 no_cache=0
5640 # Check whether --enable-timer or --disable-timer was given.
5641if test "${enable_timer+set}" = set; then
5642 enableval="$enable_timer"
5643
5644 if test "$enableval" = yes; then
5645 ac_cv_use_timer='wxUSE_TIMER=yes'
5646 else
5647 ac_cv_use_timer='wxUSE_TIMER=no'
5648 fi
5649
5650else
5651
5652 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5653 if test "x$LINE" != x ; then
5654 eval "DEFAULT_$LINE"
5655 else
5656 no_cache=1
5657 fi
5658
5659 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5660
5661fi;
5662
5663 eval "$ac_cv_use_timer"
5664 if test "$no_cache" != 1; then
5665 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5666 fi
5667
5668 if test "$wxUSE_TIMER" = yes; then
5669 echo "$as_me:$LINENO: result: yes" >&5
5670echo "${ECHO_T}yes" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673echo "${ECHO_T}no" >&6
5674 fi
5675
5676
5677 enablestring=
5678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5679echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5680 no_cache=0
5681 # Check whether --enable-unicode or --disable-unicode was given.
5682if test "${enable_unicode+set}" = set; then
5683 enableval="$enable_unicode"
5684
5685 if test "$enableval" = yes; then
5686 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5687 else
5688 ac_cv_use_unicode='wxUSE_UNICODE=no'
5689 fi
5690
5691else
5692
5693 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5694 if test "x$LINE" != x ; then
5695 eval "DEFAULT_$LINE"
5696 else
5697 no_cache=1
5698 fi
5699
5700 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5701
5702fi;
5703
5704 eval "$ac_cv_use_unicode"
5705 if test "$no_cache" != 1; then
5706 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5707 fi
5708
5709 if test "$wxUSE_UNICODE" = yes; then
5710 echo "$as_me:$LINENO: result: yes" >&5
5711echo "${ECHO_T}yes" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6
5715 fi
5716
5717
5718 enablestring=
5719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5720echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5721 no_cache=0
5722 # Check whether --enable-sound or --disable-sound was given.
5723if test "${enable_sound+set}" = set; then
5724 enableval="$enable_sound"
5725
5726 if test "$enableval" = yes; then
5727 ac_cv_use_sound='wxUSE_SOUND=yes'
5728 else
5729 ac_cv_use_sound='wxUSE_SOUND=no'
5730 fi
5731
5732else
5733
5734 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5735 if test "x$LINE" != x ; then
5736 eval "DEFAULT_$LINE"
5737 else
5738 no_cache=1
5739 fi
5740
5741 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5742
5743fi;
5744
5745 eval "$ac_cv_use_sound"
5746 if test "$no_cache" != 1; then
5747 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5748 fi
5749
5750 if test "$wxUSE_SOUND" = yes; then
5751 echo "$as_me:$LINENO: result: yes" >&5
5752echo "${ECHO_T}yes" >&6
5753 else
5754 echo "$as_me:$LINENO: result: no" >&5
5755echo "${ECHO_T}no" >&6
5756 fi
5757
5758
5759 enablestring=
5760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5761echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5762 no_cache=0
5763 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5764if test "${enable_wxprintfv+set}" = set; then
5765 enableval="$enable_wxprintfv"
5766
5767 if test "$enableval" = yes; then
5768 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5769 else
5770 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5771 fi
5772
5773else
5774
5775 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5776 if test "x$LINE" != x ; then
5777 eval "DEFAULT_$LINE"
5778 else
5779 no_cache=1
5780 fi
5781
5782 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5783
5784fi;
5785
5786 eval "$ac_cv_use_wxprintfv"
5787 if test "$no_cache" != 1; then
5788 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5789 fi
5790
5791 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5792 echo "$as_me:$LINENO: result: yes" >&5
5793echo "${ECHO_T}yes" >&6
5794 else
5795 echo "$as_me:$LINENO: result: no" >&5
5796echo "${ECHO_T}no" >&6
5797 fi
5798
5799
5800 enablestring=
5801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5802echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5803 no_cache=0
5804 # Check whether --enable-zipstream or --disable-zipstream was given.
5805if test "${enable_zipstream+set}" = set; then
5806 enableval="$enable_zipstream"
5807
5808 if test "$enableval" = yes; then
5809 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5810 else
5811 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5812 fi
5813
5814else
5815
5816 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5817 if test "x$LINE" != x ; then
5818 eval "DEFAULT_$LINE"
5819 else
5820 no_cache=1
5821 fi
5822
5823 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5824
5825fi;
5826
5827 eval "$ac_cv_use_zipstream"
5828 if test "$no_cache" != 1; then
5829 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5830 fi
5831
5832 if test "$wxUSE_ZIPSTREAM" = yes; then
5833 echo "$as_me:$LINENO: result: yes" >&5
5834echo "${ECHO_T}yes" >&6
5835 else
5836 echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6
5838 fi
5839
5840
a848cd7e
SC
5841
5842 enablestring=
5843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5844echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5845 no_cache=0
5846 # Check whether --enable-url or --disable-url was given.
5847if test "${enable_url+set}" = set; then
5848 enableval="$enable_url"
5849
5850 if test "$enableval" = yes; then
5851 ac_cv_use_url='wxUSE_URL=yes'
5852 else
5853 ac_cv_use_url='wxUSE_URL=no'
5854 fi
5855
5856else
5857
5858 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5866
5867fi;
5868
5869 eval "$ac_cv_use_url"
5870 if test "$no_cache" != 1; then
5871 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5872 fi
5873
5874 if test "$wxUSE_URL" = yes; then
5875 echo "$as_me:$LINENO: result: yes" >&5
5876echo "${ECHO_T}yes" >&6
5877 else
5878 echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
5880 fi
5881
5882
5883 enablestring=
5884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5885echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5886 no_cache=0
5887 # Check whether --enable-protocol or --disable-protocol was given.
5888if test "${enable_protocol+set}" = set; then
5889 enableval="$enable_protocol"
5890
5891 if test "$enableval" = yes; then
5892 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5893 else
5894 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5895 fi
5896
5897else
5898
5899 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5900 if test "x$LINE" != x ; then
5901 eval "DEFAULT_$LINE"
5902 else
5903 no_cache=1
5904 fi
5905
5906 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5907
5908fi;
5909
5910 eval "$ac_cv_use_protocol"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_PROTOCOL" = yes; then
5916 echo "$as_me:$LINENO: result: yes" >&5
5917echo "${ECHO_T}yes" >&6
5918 else
5919 echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
5921 fi
5922
5923
5924 enablestring=
5925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5926echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5927 no_cache=0
5928 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5929if test "${enable_protocol_http+set}" = set; then
5930 enableval="$enable_protocol_http"
5931
5932 if test "$enableval" = yes; then
5933 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5934 else
5935 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5936 fi
5937
5938else
5939
5940 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
5947 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5948
5949fi;
5950
5951 eval "$ac_cv_use_protocol_http"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5957 echo "$as_me:$LINENO: result: yes" >&5
5958echo "${ECHO_T}yes" >&6
5959 else
5960 echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6
5962 fi
5963
5964
5965 enablestring=
5966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5967echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5968 no_cache=0
5969 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5970if test "${enable_protocol_ftp+set}" = set; then
5971 enableval="$enable_protocol_ftp"
5972
5973 if test "$enableval" = yes; then
5974 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5975 else
5976 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5977 fi
5978
5979else
5980
5981 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5982 if test "x$LINE" != x ; then
5983 eval "DEFAULT_$LINE"
5984 else
5985 no_cache=1
5986 fi
5987
5988 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5989
5990fi;
5991
5992 eval "$ac_cv_use_protocol_ftp"
5993 if test "$no_cache" != 1; then
5994 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5995 fi
5996
5997 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5998 echo "$as_me:$LINENO: result: yes" >&5
5999echo "${ECHO_T}yes" >&6
6000 else
6001 echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6
6003 fi
6004
6005
6006 enablestring=
6007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6008echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6009 no_cache=0
6010 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6011if test "${enable_protocol_file+set}" = set; then
6012 enableval="$enable_protocol_file"
6013
6014 if test "$enableval" = yes; then
6015 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6016 else
6017 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6018 fi
6019
6020else
6021
6022 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6023 if test "x$LINE" != x ; then
6024 eval "DEFAULT_$LINE"
6025 else
6026 no_cache=1
6027 fi
6028
6029 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6030
6031fi;
6032
6033 eval "$ac_cv_use_protocol_file"
6034 if test "$no_cache" != 1; then
6035 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6036 fi
6037
6038 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6039 echo "$as_me:$LINENO: result: yes" >&5
6040echo "${ECHO_T}yes" >&6
6041 else
6042 echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6
6044 fi
6045
6046
6047
6048
6049
6050 enablestring=
6051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6052echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6053 no_cache=0
6054 # Check whether --enable-threads or --disable-threads was given.
6055if test "${enable_threads+set}" = set; then
6056 enableval="$enable_threads"
6057
6058 if test "$enableval" = yes; then
6059 ac_cv_use_threads='wxUSE_THREADS=yes'
6060 else
6061 ac_cv_use_threads='wxUSE_THREADS=no'
6062 fi
6063
6064else
6065
6066 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6067 if test "x$LINE" != x ; then
6068 eval "DEFAULT_$LINE"
6069 else
6070 no_cache=1
6071 fi
6072
6073 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6074
6075fi;
6076
6077 eval "$ac_cv_use_threads"
6078 if test "$no_cache" != 1; then
6079 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6080 fi
6081
6082 if test "$wxUSE_THREADS" = yes; then
6083 echo "$as_me:$LINENO: result: yes" >&5
6084echo "${ECHO_T}yes" >&6
6085 else
6086 echo "$as_me:$LINENO: result: no" >&5
6087echo "${ECHO_T}no" >&6
6088 fi
6089
6090
6091if test "$wxUSE_GUI" = "yes"; then
6092
6093
6094
6095 enablestring=
6096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6097echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6098 no_cache=0
6099 # Check whether --enable-docview or --disable-docview was given.
6100if test "${enable_docview+set}" = set; then
6101 enableval="$enable_docview"
6102
6103 if test "$enableval" = yes; then
6104 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6105 else
6106 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6107 fi
6108
6109else
6110
6111 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6112 if test "x$LINE" != x ; then
6113 eval "DEFAULT_$LINE"
6114 else
6115 no_cache=1
6116 fi
6117
6118 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6119
6120fi;
6121
6122 eval "$ac_cv_use_docview"
6123 if test "$no_cache" != 1; then
6124 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6125 fi
6126
6127 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6128 echo "$as_me:$LINENO: result: yes" >&5
6129echo "${ECHO_T}yes" >&6
6130 else
6131 echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6
6133 fi
6134
6135
6136 enablestring=
6137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6138echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6139 no_cache=0
6140 # Check whether --enable-help or --disable-help was given.
6141if test "${enable_help+set}" = set; then
6142 enableval="$enable_help"
6143
6144 if test "$enableval" = yes; then
6145 ac_cv_use_help='wxUSE_HELP=yes'
6146 else
6147 ac_cv_use_help='wxUSE_HELP=no'
6148 fi
6149
6150else
6151
6152 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6153 if test "x$LINE" != x ; then
6154 eval "DEFAULT_$LINE"
6155 else
6156 no_cache=1
6157 fi
6158
6159 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6160
6161fi;
6162
6163 eval "$ac_cv_use_help"
6164 if test "$no_cache" != 1; then
6165 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6166 fi
6167
6168 if test "$wxUSE_HELP" = yes; then
6169 echo "$as_me:$LINENO: result: yes" >&5
6170echo "${ECHO_T}yes" >&6
6171 else
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
6174 fi
6175
6176
6177 enablestring=
6178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6179echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6180 no_cache=0
6181 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6182if test "${enable_mshtmlhelp+set}" = set; then
6183 enableval="$enable_mshtmlhelp"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6187 else
6188 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6189 fi
6190
6191else
6192
6193 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6201
6202fi;
6203
6204 eval "$ac_cv_use_mshtmlhelp"
6205 if test "$no_cache" != 1; then
6206 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6207 fi
6208
6209 if test "$wxUSE_MS_HTML_HELP" = yes; then
6210 echo "$as_me:$LINENO: result: yes" >&5
6211echo "${ECHO_T}yes" >&6
6212 else
6213 echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6
6215 fi
6216
6217
6218 enablestring=
6219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6220echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6221 no_cache=0
6222 # Check whether --enable-html or --disable-html was given.
6223if test "${enable_html+set}" = set; then
6224 enableval="$enable_html"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_html='wxUSE_HTML=yes'
6228 else
6229 ac_cv_use_html='wxUSE_HTML=no'
6230 fi
6231
6232else
6233
6234 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6242
6243fi;
6244
6245 eval "$ac_cv_use_html"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_HTML" = yes; then
6251 echo "$as_me:$LINENO: result: yes" >&5
6252echo "${ECHO_T}yes" >&6
6253 else
6254 echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6
6256 fi
6257
6258
6259 enablestring=
6260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6261echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6262 no_cache=0
6263 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6264if test "${enable_htmlhelp+set}" = set; then
6265 enableval="$enable_htmlhelp"
6266
6267 if test "$enableval" = yes; then
6268 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6269 else
6270 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6271 fi
6272
6273else
6274
6275 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6283
6284fi;
6285
6286 eval "$ac_cv_use_htmlhelp"
6287 if test "$no_cache" != 1; then
6288 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6289 fi
6290
6291 if test "$wxUSE_WXHTML_HELP" = yes; then
6292 echo "$as_me:$LINENO: result: yes" >&5
6293echo "${ECHO_T}yes" >&6
6294 else
6295 echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
6297 fi
6298
6299
9a8f0513
VS
6300 enablestring=
6301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6302echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6303 no_cache=0
6304 # Check whether --enable-xrc or --disable-xrc was given.
6305if test "${enable_xrc+set}" = set; then
6306 enableval="$enable_xrc"
6307
6308 if test "$enableval" = yes; then
6309 ac_cv_use_xrc='wxUSE_XRC=yes'
6310 else
6311 ac_cv_use_xrc='wxUSE_XRC=no'
6312 fi
6313
6314else
6315
6316 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6317 if test "x$LINE" != x ; then
6318 eval "DEFAULT_$LINE"
6319 else
6320 no_cache=1
6321 fi
6322
6323 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6324
6325fi;
6326
6327 eval "$ac_cv_use_xrc"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6330 fi
6331
6332 if test "$wxUSE_XRC" = yes; then
6333 echo "$as_me:$LINENO: result: yes" >&5
6334echo "${ECHO_T}yes" >&6
6335 else
6336 echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6
6338 fi
6339
6340
a848cd7e
SC
6341 enablestring=
6342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6343echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6344 no_cache=0
6345 # Check whether --enable-constraints or --disable-constraints was given.
6346if test "${enable_constraints+set}" = set; then
6347 enableval="$enable_constraints"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6351 else
6352 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6353 fi
6354
6355else
6356
6357 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6365
6366fi;
6367
6368 eval "$ac_cv_use_constraints"
6369 if test "$no_cache" != 1; then
6370 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6371 fi
6372
6373 if test "$wxUSE_CONSTRAINTS" = yes; then
6374 echo "$as_me:$LINENO: result: yes" >&5
6375echo "${ECHO_T}yes" >&6
6376 else
6377 echo "$as_me:$LINENO: result: no" >&5
6378echo "${ECHO_T}no" >&6
6379 fi
6380
6381
6382 enablestring=
6383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6384echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6385 no_cache=0
6386 # Check whether --enable-printarch or --disable-printarch was given.
6387if test "${enable_printarch+set}" = set; then
6388 enableval="$enable_printarch"
6389
6390 if test "$enableval" = yes; then
6391 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6392 else
6393 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6394 fi
6395
6396else
6397
6398 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6399 if test "x$LINE" != x ; then
6400 eval "DEFAULT_$LINE"
6401 else
6402 no_cache=1
6403 fi
6404
6405 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6406
6407fi;
6408
6409 eval "$ac_cv_use_printarch"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6415 echo "$as_me:$LINENO: result: yes" >&5
6416echo "${ECHO_T}yes" >&6
6417 else
6418 echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6
6420 fi
6421
6422
6423 enablestring=
6424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6425echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6426 no_cache=0
6427 # Check whether --enable-mdi or --disable-mdi was given.
6428if test "${enable_mdi+set}" = set; then
6429 enableval="$enable_mdi"
6430
6431 if test "$enableval" = yes; then
8a7b1113 6432 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6433 else
8a7b1113 6434 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6435 fi
6436
6437else
6438
8a7b1113 6439 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6440 if test "x$LINE" != x ; then
6441 eval "DEFAULT_$LINE"
6442 else
6443 no_cache=1
6444 fi
6445
8a7b1113 6446 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6447
6448fi;
6449
6450 eval "$ac_cv_use_mdi"
6451 if test "$no_cache" != 1; then
6452 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6453 fi
6454
8a7b1113
VZ
6455 if test "$wxUSE_MDI" = yes; then
6456 echo "$as_me:$LINENO: result: yes" >&5
6457echo "${ECHO_T}yes" >&6
6458 else
6459 echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6
6461 fi
6462
6463
6464 enablestring=
6465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6466echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6467 no_cache=0
6468 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6469if test "${enable_mdidoc+set}" = set; then
6470 enableval="$enable_mdidoc"
6471
6472 if test "$enableval" = yes; then
6473 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6474 else
6475 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6476 fi
6477
6478else
6479
6480 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6481 if test "x$LINE" != x ; then
6482 eval "DEFAULT_$LINE"
6483 else
6484 no_cache=1
6485 fi
6486
6487 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6488
6489fi;
6490
6491 eval "$ac_cv_use_mdidoc"
6492 if test "$no_cache" != 1; then
6493 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6494 fi
6495
a848cd7e
SC
6496 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6497 echo "$as_me:$LINENO: result: yes" >&5
6498echo "${ECHO_T}yes" >&6
6499 else
6500 echo "$as_me:$LINENO: result: no" >&5
6501echo "${ECHO_T}no" >&6
6502 fi
6503
6504
6505 enablestring=
6506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6507echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6508 no_cache=0
6509 # Check whether --enable-loggui or --disable-loggui was given.
6510if test "${enable_loggui+set}" = set; then
6511 enableval="$enable_loggui"
6512
6513 if test "$enableval" = yes; then
6514 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6515 else
6516 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6517 fi
6518
6519else
6520
6521 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6522 if test "x$LINE" != x ; then
6523 eval "DEFAULT_$LINE"
6524 else
6525 no_cache=1
6526 fi
6527
6528 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6529
6530fi;
6531
6532 eval "$ac_cv_use_loggui"
6533 if test "$no_cache" != 1; then
6534 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6535 fi
6536
6537 if test "$wxUSE_LOGGUI" = yes; then
6538 echo "$as_me:$LINENO: result: yes" >&5
6539echo "${ECHO_T}yes" >&6
6540 else
6541 echo "$as_me:$LINENO: result: no" >&5
6542echo "${ECHO_T}no" >&6
6543 fi
6544
6545
6546 enablestring=
6547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6548echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6549 no_cache=0
6550 # Check whether --enable-logwin or --disable-logwin was given.
6551if test "${enable_logwin+set}" = set; then
6552 enableval="$enable_logwin"
6553
6554 if test "$enableval" = yes; then
6555 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6556 else
6557 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6558 fi
6559
6560else
6561
6562 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6563 if test "x$LINE" != x ; then
6564 eval "DEFAULT_$LINE"
6565 else
6566 no_cache=1
6567 fi
6568
6569 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6570
6571fi;
6572
6573 eval "$ac_cv_use_logwin"
6574 if test "$no_cache" != 1; then
6575 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6576 fi
6577
6578 if test "$wxUSE_LOGWINDOW" = yes; then
6579 echo "$as_me:$LINENO: result: yes" >&5
6580echo "${ECHO_T}yes" >&6
6581 else
6582 echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6
6584 fi
6585
6586
6587 enablestring=
6588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6589echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6590 no_cache=0
6591 # Check whether --enable-logdialog or --disable-logdialog was given.
6592if test "${enable_logdialog+set}" = set; then
6593 enableval="$enable_logdialog"
6594
6595 if test "$enableval" = yes; then
6596 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6597 else
6598 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6599 fi
6600
6601else
6602
6603 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6604 if test "x$LINE" != x ; then
6605 eval "DEFAULT_$LINE"
6606 else
6607 no_cache=1
6608 fi
6609
6610 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6611
6612fi;
6613
6614 eval "$ac_cv_use_logdialog"
6615 if test "$no_cache" != 1; then
6616 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6617 fi
6618
6619 if test "$wxUSE_LOGDIALOG" = yes; then
6620 echo "$as_me:$LINENO: result: yes" >&5
6621echo "${ECHO_T}yes" >&6
6622 else
6623 echo "$as_me:$LINENO: result: no" >&5
6624echo "${ECHO_T}no" >&6
6625 fi
6626
6627
646b6ec1
VS
6628 enablestring=
6629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6630echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6631 no_cache=0
6632 # Check whether --enable-webkit or --disable-webkit was given.
6633if test "${enable_webkit+set}" = set; then
6634 enableval="$enable_webkit"
6635
6636 if test "$enableval" = yes; then
6637 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6638 else
6639 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6640 fi
6641
6642else
6643
6644 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6645 if test "x$LINE" != x ; then
6646 eval "DEFAULT_$LINE"
6647 else
6648 no_cache=1
6649 fi
6650
6651 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6652
6653fi;
6654
6655 eval "$ac_cv_use_webkit"
6656 if test "$no_cache" != 1; then
6657 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6658 fi
6659
6660 if test "$wxUSE_WEBKIT" = yes; then
6661 echo "$as_me:$LINENO: result: yes" >&5
6662echo "${ECHO_T}yes" >&6
6663 else
6664 echo "$as_me:$LINENO: result: no" >&5
6665echo "${ECHO_T}no" >&6
6666 fi
6667
6668
a848cd7e
SC
6669
6670 enablestring=
6671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6672echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6673 no_cache=0
6674 # Check whether --enable-postscript or --disable-postscript was given.
6675if test "${enable_postscript+set}" = set; then
6676 enableval="$enable_postscript"
6677
6678 if test "$enableval" = yes; then
6679 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6680 else
6681 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6682 fi
6683
6684else
6685
6686 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6687 if test "x$LINE" != x ; then
6688 eval "DEFAULT_$LINE"
6689 else
6690 no_cache=1
6691 fi
6692
6693 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6694
6695fi;
6696
6697 eval "$ac_cv_use_postscript"
6698 if test "$no_cache" != 1; then
6699 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6700 fi
6701
6702 if test "$wxUSE_POSTSCRIPT" = yes; then
6703 echo "$as_me:$LINENO: result: yes" >&5
6704echo "${ECHO_T}yes" >&6
6705 else
6706 echo "$as_me:$LINENO: result: no" >&5
6707echo "${ECHO_T}no" >&6
6708 fi
6709
6710
6711
6712
6713
6714 enablestring=
6715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6716echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6717 no_cache=0
6718 # Check whether --enable-prologio or --disable-prologio was given.
6719if test "${enable_prologio+set}" = set; then
6720 enableval="$enable_prologio"
6721
6722 if test "$enableval" = yes; then
6723 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6724 else
6725 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6726 fi
6727
6728else
6729
6730 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6731 if test "x$LINE" != x ; then
6732 eval "DEFAULT_$LINE"
6733 else
6734 no_cache=1
6735 fi
6736
6737 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6738
6739fi;
6740
6741 eval "$ac_cv_use_prologio"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_PROLOGIO" = yes; then
6747 echo "$as_me:$LINENO: result: yes" >&5
6748echo "${ECHO_T}yes" >&6
6749 else
6750 echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6
6752 fi
6753
6754
6755 enablestring=
6756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6757echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6758 no_cache=0
6759 # Check whether --enable-resources or --disable-resources was given.
6760if test "${enable_resources+set}" = set; then
6761 enableval="$enable_resources"
6762
6763 if test "$enableval" = yes; then
6764 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6765 else
6766 ac_cv_use_resources='wxUSE_RESOURCES=no'
6767 fi
6768
6769else
6770
6771 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
6778 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6779
6780fi;
6781
6782 eval "$ac_cv_use_resources"
6783 if test "$no_cache" != 1; then
6784 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6785 fi
6786
6787 if test "$wxUSE_RESOURCES" = yes; then
6788 echo "$as_me:$LINENO: result: yes" >&5
6789echo "${ECHO_T}yes" >&6
6790 else
6791 echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6
6793 fi
6794
6795
6796
6797
6798 enablestring=
6799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6800echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6801 no_cache=0
6802 # Check whether --enable-clipboard or --disable-clipboard was given.
6803if test "${enable_clipboard+set}" = set; then
6804 enableval="$enable_clipboard"
6805
6806 if test "$enableval" = yes; then
6807 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6808 else
6809 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6810 fi
6811
6812else
6813
6814 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6815 if test "x$LINE" != x ; then
6816 eval "DEFAULT_$LINE"
6817 else
6818 no_cache=1
6819 fi
6820
6821 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6822
6823fi;
6824
6825 eval "$ac_cv_use_clipboard"
6826 if test "$no_cache" != 1; then
6827 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6828 fi
6829
6830 if test "$wxUSE_CLIPBOARD" = yes; then
6831 echo "$as_me:$LINENO: result: yes" >&5
6832echo "${ECHO_T}yes" >&6
6833 else
6834 echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6
6836 fi
6837
6838
6839 enablestring=
6840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6841echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6842 no_cache=0
6843 # Check whether --enable-dnd or --disable-dnd was given.
6844if test "${enable_dnd+set}" = set; then
6845 enableval="$enable_dnd"
6846
6847 if test "$enableval" = yes; then
6848 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6849 else
6850 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6851 fi
6852
6853else
6854
6855 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6856 if test "x$LINE" != x ; then
6857 eval "DEFAULT_$LINE"
6858 else
6859 no_cache=1
6860 fi
6861
6862 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6863
6864fi;
6865
6866 eval "$ac_cv_use_dnd"
6867 if test "$no_cache" != 1; then
6868 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6869 fi
6870
6871 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6872 echo "$as_me:$LINENO: result: yes" >&5
6873echo "${ECHO_T}yes" >&6
6874 else
6875 echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6
6877 fi
6878
6879
6880 enablestring=
6881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6882echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6883 no_cache=0
6884 # Check whether --enable-metafile or --disable-metafile was given.
6885if test "${enable_metafile+set}" = set; then
6886 enableval="$enable_metafile"
6887
6888 if test "$enableval" = yes; then
6889 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6890 else
6891 ac_cv_use_metafile='wxUSE_METAFILE=no'
6892 fi
6893
6894else
6895
6896 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6897 if test "x$LINE" != x ; then
6898 eval "DEFAULT_$LINE"
6899 else
6900 no_cache=1
6901 fi
6902
6903 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6904
6905fi;
6906
6907 eval "$ac_cv_use_metafile"
6908 if test "$no_cache" != 1; then
6909 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6910 fi
6911
6912 if test "$wxUSE_METAFILE" = yes; then
6913 echo "$as_me:$LINENO: result: yes" >&5
6914echo "${ECHO_T}yes" >&6
6915 else
6916 echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6
6918 fi
6919
6920
6921
6922
6923
6924 enablestring=
6925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6926echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6927 no_cache=0
6928 # Check whether --enable-controls or --disable-controls was given.
6929if test "${enable_controls+set}" = set; then
6930 enableval="$enable_controls"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6934 else
6935 ac_cv_use_controls='wxUSE_CONTROLS=no'
6936 fi
6937
6938else
6939
6940 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6948
6949fi;
6950
6951 eval "$ac_cv_use_controls"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_CONTROLS" = yes; then
6957 echo "$as_me:$LINENO: result: yes" >&5
6958echo "${ECHO_T}yes" >&6
6959 else
6960 echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6
6962 fi
6963
6964
6965if test "$wxUSE_CONTROLS" = "yes"; then
6966 DEFAULT_wxUSE_ACCEL=yes
6967 DEFAULT_wxUSE_BMPBUTTON=yes
6968 DEFAULT_wxUSE_BUTTON=yes
6969 DEFAULT_wxUSE_CALCTRL=no
6970 DEFAULT_wxUSE_CARET=yes
6971 DEFAULT_wxUSE_COMBOBOX=yes
6972 DEFAULT_wxUSE_CHECKBOX=yes
6973 DEFAULT_wxUSE_CHECKLISTBOX=yes
6974 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 6975 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
6976 DEFAULT_wxUSE_GAUGE=yes
6977 DEFAULT_wxUSE_GRID=yes
6978 DEFAULT_wxUSE_IMAGLIST=yes
6979 DEFAULT_wxUSE_LISTBOOK=yes
6980 DEFAULT_wxUSE_LISTBOX=yes
6981 DEFAULT_wxUSE_LISTCTRL=yes
6982 DEFAULT_wxUSE_NOTEBOOK=yes
6983 DEFAULT_wxUSE_RADIOBOX=yes
6984 DEFAULT_wxUSE_RADIOBTN=yes
6985 DEFAULT_wxUSE_SASH=yes
6986 DEFAULT_wxUSE_SCROLLBAR=yes
6987 DEFAULT_wxUSE_SLIDER=yes
6988 DEFAULT_wxUSE_SPINBTN=yes
6989 DEFAULT_wxUSE_SPINCTRL=yes
6990 DEFAULT_wxUSE_SPLITTER=yes
6991 DEFAULT_wxUSE_STATBMP=yes
6992 DEFAULT_wxUSE_STATBOX=yes
6993 DEFAULT_wxUSE_STATLINE=yes
6994 DEFAULT_wxUSE_STATUSBAR=yes
6995 DEFAULT_wxUSE_TAB_DIALOG=yes
6996 DEFAULT_wxUSE_TOGGLEBTN=yes
6997 DEFAULT_wxUSE_TOOLBAR=yes
6998 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6999 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7000 DEFAULT_wxUSE_TOOLTIPS=yes
7001 DEFAULT_wxUSE_TREECTRL=yes
7002 DEFAULT_wxUSE_POPUPWIN=yes
7003 DEFAULT_wxUSE_TIPWINDOW=yes
7004elif test "$wxUSE_CONTROLS" = "no"; then
7005 DEFAULT_wxUSE_ACCEL=no
7006 DEFAULT_wxUSE_BMPBUTTON=no
7007 DEFAULT_wxUSE_BUTTON=no
7008 DEFAULT_wxUSE_CALCTRL=no
7009 DEFAULT_wxUSE_CARET=no
7010 DEFAULT_wxUSE_COMBOBOX=no
7011 DEFAULT_wxUSE_CHECKBOX=no
7012 DEFAULT_wxUSE_CHECKLISTBOX=no
7013 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7014 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7015 DEFAULT_wxUSE_GAUGE=no
7016 DEFAULT_wxUSE_GRID=no
7017 DEFAULT_wxUSE_IMAGLIST=no
7018 DEFAULT_wxUSE_LISTBOOK=no
7019 DEFAULT_wxUSE_LISTBOX=no
7020 DEFAULT_wxUSE_LISTCTRL=no
7021 DEFAULT_wxUSE_NOTEBOOK=no
7022 DEFAULT_wxUSE_RADIOBOX=no
7023 DEFAULT_wxUSE_RADIOBTN=no
7024 DEFAULT_wxUSE_SASH=no
7025 DEFAULT_wxUSE_SCROLLBAR=no
7026 DEFAULT_wxUSE_SLIDER=no
7027 DEFAULT_wxUSE_SPINBTN=no
7028 DEFAULT_wxUSE_SPINCTRL=no
7029 DEFAULT_wxUSE_SPLITTER=no
7030 DEFAULT_wxUSE_STATBMP=no
7031 DEFAULT_wxUSE_STATBOX=no
7032 DEFAULT_wxUSE_STATLINE=no
7033 DEFAULT_wxUSE_STATUSBAR=no
7034 DEFAULT_wxUSE_TAB_DIALOG=no
7035 DEFAULT_wxUSE_TOGGLEBTN=no
7036 DEFAULT_wxUSE_TOOLBAR=no
7037 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7038 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7039 DEFAULT_wxUSE_TOOLTIPS=no
7040 DEFAULT_wxUSE_TREECTRL=no
7041 DEFAULT_wxUSE_POPUPWIN=no
7042 DEFAULT_wxUSE_TIPWINDOW=no
7043fi
7044
a848cd7e
SC
7045
7046 enablestring=
7047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7048echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7049 no_cache=0
7050 # Check whether --enable-accel or --disable-accel was given.
7051if test "${enable_accel+set}" = set; then
7052 enableval="$enable_accel"
7053
7054 if test "$enableval" = yes; then
7055 ac_cv_use_accel='wxUSE_ACCEL=yes'
7056 else
7057 ac_cv_use_accel='wxUSE_ACCEL=no'
7058 fi
7059
7060else
7061
7062 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7063 if test "x$LINE" != x ; then
7064 eval "DEFAULT_$LINE"
7065 else
7066 no_cache=1
7067 fi
7068
7069 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7070
7071fi;
7072
7073 eval "$ac_cv_use_accel"
7074 if test "$no_cache" != 1; then
7075 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7076 fi
7077
7078 if test "$wxUSE_ACCEL" = yes; then
7079 echo "$as_me:$LINENO: result: yes" >&5
7080echo "${ECHO_T}yes" >&6
7081 else
7082 echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6
7084 fi
7085
7086
7087 enablestring=
7088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7089echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7090 no_cache=0
7091 # Check whether --enable-button or --disable-button was given.
7092if test "${enable_button+set}" = set; then
7093 enableval="$enable_button"
7094
7095 if test "$enableval" = yes; then
7096 ac_cv_use_button='wxUSE_BUTTON=yes'
7097 else
7098 ac_cv_use_button='wxUSE_BUTTON=no'
7099 fi
7100
7101else
7102
7103 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7104 if test "x$LINE" != x ; then
7105 eval "DEFAULT_$LINE"
7106 else
7107 no_cache=1
7108 fi
7109
7110 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7111
7112fi;
7113
7114 eval "$ac_cv_use_button"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_BUTTON" = yes; then
7120 echo "$as_me:$LINENO: result: yes" >&5
7121echo "${ECHO_T}yes" >&6
7122 else
7123 echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6
7125 fi
7126
7127
7128 enablestring=
7129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7130echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7131 no_cache=0
7132 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7133if test "${enable_bmpbutton+set}" = set; then
7134 enableval="$enable_bmpbutton"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7138 else
7139 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7152
7153fi;
7154
7155 eval "$ac_cv_use_bmpbutton"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_BMPBUTTON" = yes; then
7161 echo "$as_me:$LINENO: result: yes" >&5
7162echo "${ECHO_T}yes" >&6
7163 else
7164 echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166 fi
7167
7168
7169 enablestring=
7170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7171echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7172 no_cache=0
7173 # Check whether --enable-calendar or --disable-calendar was given.
7174if test "${enable_calendar+set}" = set; then
7175 enableval="$enable_calendar"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7179 else
7180 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7181 fi
7182
7183else
7184
7185 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7193
7194fi;
7195
7196 eval "$ac_cv_use_calendar"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_CALCTRL" = yes; then
7202 echo "$as_me:$LINENO: result: yes" >&5
7203echo "${ECHO_T}yes" >&6
7204 else
7205 echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6
7207 fi
7208
7209
7210 enablestring=
7211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7212echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7213 no_cache=0
7214 # Check whether --enable-caret or --disable-caret was given.
7215if test "${enable_caret+set}" = set; then
7216 enableval="$enable_caret"
7217
7218 if test "$enableval" = yes; then
7219 ac_cv_use_caret='wxUSE_CARET=yes'
7220 else
7221 ac_cv_use_caret='wxUSE_CARET=no'
7222 fi
7223
7224else
7225
7226 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7227 if test "x$LINE" != x ; then
7228 eval "DEFAULT_$LINE"
7229 else
7230 no_cache=1
7231 fi
7232
7233 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7234
7235fi;
7236
7237 eval "$ac_cv_use_caret"
7238 if test "$no_cache" != 1; then
7239 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7240 fi
7241
7242 if test "$wxUSE_CARET" = yes; then
7243 echo "$as_me:$LINENO: result: yes" >&5
7244echo "${ECHO_T}yes" >&6
7245 else
7246 echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6
7248 fi
7249
7250
7251 enablestring=
7252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7253echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7254 no_cache=0
7255 # Check whether --enable-checkbox or --disable-checkbox was given.
7256if test "${enable_checkbox+set}" = set; then
7257 enableval="$enable_checkbox"
7258
7259 if test "$enableval" = yes; then
7260 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7261 else
7262 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7263 fi
7264
7265else
7266
7267 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7268 if test "x$LINE" != x ; then
7269 eval "DEFAULT_$LINE"
7270 else
7271 no_cache=1
7272 fi
7273
7274 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7275
7276fi;
7277
7278 eval "$ac_cv_use_checkbox"
7279 if test "$no_cache" != 1; then
7280 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7281 fi
7282
7283 if test "$wxUSE_CHECKBOX" = yes; then
7284 echo "$as_me:$LINENO: result: yes" >&5
7285echo "${ECHO_T}yes" >&6
7286 else
7287 echo "$as_me:$LINENO: result: no" >&5
7288echo "${ECHO_T}no" >&6
7289 fi
7290
7291
7292 enablestring=
7293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7294echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7295 no_cache=0
7296 # Check whether --enable-checklst or --disable-checklst was given.
7297if test "${enable_checklst+set}" = set; then
7298 enableval="$enable_checklst"
7299
7300 if test "$enableval" = yes; then
7301 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7302 else
7303 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7304 fi
7305
7306else
7307
7308 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7309 if test "x$LINE" != x ; then
7310 eval "DEFAULT_$LINE"
7311 else
7312 no_cache=1
7313 fi
7314
7315 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7316
7317fi;
7318
7319 eval "$ac_cv_use_checklst"
7320 if test "$no_cache" != 1; then
7321 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7322 fi
7323
7324 if test "$wxUSE_CHECKLST" = yes; then
7325 echo "$as_me:$LINENO: result: yes" >&5
7326echo "${ECHO_T}yes" >&6
7327 else
7328 echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6
7330 fi
7331
7332
7333 enablestring=
7334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7335echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7336 no_cache=0
7337 # Check whether --enable-choice or --disable-choice was given.
7338if test "${enable_choice+set}" = set; then
7339 enableval="$enable_choice"
7340
7341 if test "$enableval" = yes; then
7342 ac_cv_use_choice='wxUSE_CHOICE=yes'
7343 else
7344 ac_cv_use_choice='wxUSE_CHOICE=no'
7345 fi
7346
7347else
7348
7349 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7350 if test "x$LINE" != x ; then
7351 eval "DEFAULT_$LINE"
7352 else
7353 no_cache=1
7354 fi
7355
7356 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7357
7358fi;
7359
7360 eval "$ac_cv_use_choice"
7361 if test "$no_cache" != 1; then
7362 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7363 fi
7364
7365 if test "$wxUSE_CHOICE" = yes; then
7366 echo "$as_me:$LINENO: result: yes" >&5
7367echo "${ECHO_T}yes" >&6
7368 else
7369 echo "$as_me:$LINENO: result: no" >&5
7370echo "${ECHO_T}no" >&6
7371 fi
7372
7373
92bbdbcd
WS
7374 enablestring=
7375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7376echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7377 no_cache=0
7378 # Check whether --enable-choicebook or --disable-choicebook was given.
7379if test "${enable_choicebook+set}" = set; then
7380 enableval="$enable_choicebook"
7381
7382 if test "$enableval" = yes; then
7383 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7384 else
7385 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7386 fi
7387
7388else
7389
7390 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7391 if test "x$LINE" != x ; then
7392 eval "DEFAULT_$LINE"
7393 else
7394 no_cache=1
7395 fi
7396
7397 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7398
7399fi;
7400
7401 eval "$ac_cv_use_choicebook"
7402 if test "$no_cache" != 1; then
7403 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7404 fi
7405
7406 if test "$wxUSE_CHOICEBOOK" = yes; then
7407 echo "$as_me:$LINENO: result: yes" >&5
7408echo "${ECHO_T}yes" >&6
7409 else
7410 echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6
7412 fi
7413
7414
a848cd7e
SC
7415 enablestring=
7416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7417echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7418 no_cache=0
7419 # Check whether --enable-combobox or --disable-combobox was given.
7420if test "${enable_combobox+set}" = set; then
7421 enableval="$enable_combobox"
7422
7423 if test "$enableval" = yes; then
7424 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7425 else
7426 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7427 fi
7428
7429else
7430
7431 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7432 if test "x$LINE" != x ; then
7433 eval "DEFAULT_$LINE"
7434 else
7435 no_cache=1
7436 fi
7437
7438 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7439
7440fi;
7441
7442 eval "$ac_cv_use_combobox"
7443 if test "$no_cache" != 1; then
7444 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7445 fi
7446
7447 if test "$wxUSE_COMBOBOX" = yes; then
7448 echo "$as_me:$LINENO: result: yes" >&5
7449echo "${ECHO_T}yes" >&6
7450 else
7451 echo "$as_me:$LINENO: result: no" >&5
7452echo "${ECHO_T}no" >&6
7453 fi
7454
7455
7456 enablestring=
7457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7458echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7459 no_cache=0
7460 # Check whether --enable-display or --disable-display was given.
7461if test "${enable_display+set}" = set; then
7462 enableval="$enable_display"
7463
7464 if test "$enableval" = yes; then
7465 ac_cv_use_display='wxUSE_DISPLAY=yes'
7466 else
7467 ac_cv_use_display='wxUSE_DISPLAY=no'
7468 fi
7469
7470else
7471
7472 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7473 if test "x$LINE" != x ; then
7474 eval "DEFAULT_$LINE"
7475 else
7476 no_cache=1
7477 fi
7478
7479 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7480
7481fi;
7482
7483 eval "$ac_cv_use_display"
7484 if test "$no_cache" != 1; then
7485 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7486 fi
7487
7488 if test "$wxUSE_DISPLAY" = yes; then
7489 echo "$as_me:$LINENO: result: yes" >&5
7490echo "${ECHO_T}yes" >&6
7491 else
7492 echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6
7494 fi
7495
7496
7497 enablestring=
7498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7499echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7500 no_cache=0
7501 # Check whether --enable-gauge or --disable-gauge was given.
7502if test "${enable_gauge+set}" = set; then
7503 enableval="$enable_gauge"
7504
7505 if test "$enableval" = yes; then
7506 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7507 else
7508 ac_cv_use_gauge='wxUSE_GAUGE=no'
7509 fi
7510
7511else
7512
7513 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7514 if test "x$LINE" != x ; then
7515 eval "DEFAULT_$LINE"
7516 else
7517 no_cache=1
7518 fi
7519
7520 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7521
7522fi;
7523
7524 eval "$ac_cv_use_gauge"
7525 if test "$no_cache" != 1; then
7526 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7527 fi
7528
7529 if test "$wxUSE_GAUGE" = yes; then
7530 echo "$as_me:$LINENO: result: yes" >&5
7531echo "${ECHO_T}yes" >&6
7532 else
7533 echo "$as_me:$LINENO: result: no" >&5
7534echo "${ECHO_T}no" >&6
7535 fi
7536
7537
7538 enablestring=
7539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7540echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7541 no_cache=0
7542 # Check whether --enable-grid or --disable-grid was given.
7543if test "${enable_grid+set}" = set; then
7544 enableval="$enable_grid"
7545
7546 if test "$enableval" = yes; then
7547 ac_cv_use_grid='wxUSE_GRID=yes'
7548 else
7549 ac_cv_use_grid='wxUSE_GRID=no'
7550 fi
7551
7552else
7553
7554 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7555 if test "x$LINE" != x ; then
7556 eval "DEFAULT_$LINE"
7557 else
7558 no_cache=1
7559 fi
7560
7561 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7562
7563fi;
7564
7565 eval "$ac_cv_use_grid"
7566 if test "$no_cache" != 1; then
7567 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7568 fi
7569
7570 if test "$wxUSE_GRID" = yes; then
7571 echo "$as_me:$LINENO: result: yes" >&5
7572echo "${ECHO_T}yes" >&6
7573 else
7574 echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6
7576 fi
7577
7578
7579 enablestring=
7580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7581echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7582 no_cache=0
7583 # Check whether --enable-imaglist or --disable-imaglist was given.
7584if test "${enable_imaglist+set}" = set; then
7585 enableval="$enable_imaglist"
7586
7587 if test "$enableval" = yes; then
7588 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7589 else
7590 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7591 fi
7592
7593else
7594
7595 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7596 if test "x$LINE" != x ; then
7597 eval "DEFAULT_$LINE"
7598 else
7599 no_cache=1
7600 fi
7601
7602 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7603
7604fi;
7605
7606 eval "$ac_cv_use_imaglist"
7607 if test "$no_cache" != 1; then
7608 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7609 fi
7610
7611 if test "$wxUSE_IMAGLIST" = yes; then
7612 echo "$as_me:$LINENO: result: yes" >&5
7613echo "${ECHO_T}yes" >&6
7614 else
7615 echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6
7617 fi
7618
7619
7620 enablestring=
7621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7622echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7623 no_cache=0
7624 # Check whether --enable-listbook or --disable-listbook was given.
7625if test "${enable_listbook+set}" = set; then
7626 enableval="$enable_listbook"
7627
7628 if test "$enableval" = yes; then
7629 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7630 else
7631 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7632 fi
7633
7634else
7635
7636 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7637 if test "x$LINE" != x ; then
7638 eval "DEFAULT_$LINE"
7639 else
7640 no_cache=1
7641 fi
7642
7643 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7644
7645fi;
7646
7647 eval "$ac_cv_use_listbook"
7648 if test "$no_cache" != 1; then
7649 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7650 fi
7651
7652 if test "$wxUSE_LISTBOOK" = yes; then
7653 echo "$as_me:$LINENO: result: yes" >&5
7654echo "${ECHO_T}yes" >&6
7655 else
7656 echo "$as_me:$LINENO: result: no" >&5
7657echo "${ECHO_T}no" >&6
7658 fi
7659
7660
7661 enablestring=
7662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7663echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7664 no_cache=0
7665 # Check whether --enable-listbox or --disable-listbox was given.
7666if test "${enable_listbox+set}" = set; then
7667 enableval="$enable_listbox"
7668
7669 if test "$enableval" = yes; then
7670 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7671 else
7672 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7673 fi
7674
7675else
7676
7677 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7678 if test "x$LINE" != x ; then
7679 eval "DEFAULT_$LINE"
7680 else
7681 no_cache=1
7682 fi
7683
7684 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7685
7686fi;
7687
7688 eval "$ac_cv_use_listbox"
7689 if test "$no_cache" != 1; then
7690 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7691 fi
7692
7693 if test "$wxUSE_LISTBOX" = yes; then
7694 echo "$as_me:$LINENO: result: yes" >&5
7695echo "${ECHO_T}yes" >&6
7696 else
7697 echo "$as_me:$LINENO: result: no" >&5
7698echo "${ECHO_T}no" >&6
7699 fi
7700
7701
7702 enablestring=
7703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7704echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7705 no_cache=0
7706 # Check whether --enable-listctrl or --disable-listctrl was given.
7707if test "${enable_listctrl+set}" = set; then
7708 enableval="$enable_listctrl"
7709
7710 if test "$enableval" = yes; then
7711 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7712 else
7713 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7714 fi
7715
7716else
7717
7718 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7719 if test "x$LINE" != x ; then
7720 eval "DEFAULT_$LINE"
7721 else
7722 no_cache=1
7723 fi
7724
7725 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7726
7727fi;
7728
7729 eval "$ac_cv_use_listctrl"
7730 if test "$no_cache" != 1; then
7731 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7732 fi
7733
7734 if test "$wxUSE_LISTCTRL" = yes; then
7735 echo "$as_me:$LINENO: result: yes" >&5
7736echo "${ECHO_T}yes" >&6
7737 else
7738 echo "$as_me:$LINENO: result: no" >&5
7739echo "${ECHO_T}no" >&6
7740 fi
7741
7742
7743 enablestring=
7744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7745echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7746 no_cache=0
7747 # Check whether --enable-notebook or --disable-notebook was given.
7748if test "${enable_notebook+set}" = set; then
7749 enableval="$enable_notebook"
7750
7751 if test "$enableval" = yes; then
7752 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7753 else
7754 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7755 fi
7756
7757else
7758
7759 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7760 if test "x$LINE" != x ; then
7761 eval "DEFAULT_$LINE"
7762 else
7763 no_cache=1
7764 fi
7765
7766 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7767
7768fi;
7769
7770 eval "$ac_cv_use_notebook"
7771 if test "$no_cache" != 1; then
7772 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7773 fi
7774
7775 if test "$wxUSE_NOTEBOOK" = yes; then
7776 echo "$as_me:$LINENO: result: yes" >&5
7777echo "${ECHO_T}yes" >&6
7778 else
7779 echo "$as_me:$LINENO: result: no" >&5
7780echo "${ECHO_T}no" >&6
7781 fi
7782
7783
7784 enablestring=
7785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7786echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7787 no_cache=0
7788 # Check whether --enable-radiobox or --disable-radiobox was given.
7789if test "${enable_radiobox+set}" = set; then
7790 enableval="$enable_radiobox"
7791
7792 if test "$enableval" = yes; then
7793 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7794 else
7795 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7796 fi
7797
7798else
7799
7800 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7801 if test "x$LINE" != x ; then
7802 eval "DEFAULT_$LINE"
7803 else
7804 no_cache=1
7805 fi
7806
7807 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7808
7809fi;
7810
7811 eval "$ac_cv_use_radiobox"
7812 if test "$no_cache" != 1; then
7813 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7814 fi
7815
7816 if test "$wxUSE_RADIOBOX" = yes; then
7817 echo "$as_me:$LINENO: result: yes" >&5
7818echo "${ECHO_T}yes" >&6
7819 else
7820 echo "$as_me:$LINENO: result: no" >&5
7821echo "${ECHO_T}no" >&6
7822 fi
7823
7824
7825 enablestring=
7826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7827echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7828 no_cache=0
7829 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7830if test "${enable_radiobtn+set}" = set; then
7831 enableval="$enable_radiobtn"
7832
7833 if test "$enableval" = yes; then
7834 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7835 else
7836 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7837 fi
7838
7839else
7840
7841 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7842 if test "x$LINE" != x ; then
7843 eval "DEFAULT_$LINE"
7844 else
7845 no_cache=1
7846 fi
7847
7848 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7849
7850fi;
7851
7852 eval "$ac_cv_use_radiobtn"
7853 if test "$no_cache" != 1; then
7854 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7855 fi
7856
7857 if test "$wxUSE_RADIOBTN" = yes; then
7858 echo "$as_me:$LINENO: result: yes" >&5
7859echo "${ECHO_T}yes" >&6
7860 else
7861 echo "$as_me:$LINENO: result: no" >&5
7862echo "${ECHO_T}no" >&6
7863 fi
7864
7865
7866 enablestring=
7867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7868echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7869 no_cache=0
7870 # Check whether --enable-sash or --disable-sash was given.
7871if test "${enable_sash+set}" = set; then
7872 enableval="$enable_sash"
7873
7874 if test "$enableval" = yes; then
7875 ac_cv_use_sash='wxUSE_SASH=yes'
7876 else
7877 ac_cv_use_sash='wxUSE_SASH=no'
7878 fi
7879
7880else
7881
7882 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7883 if test "x$LINE" != x ; then
7884 eval "DEFAULT_$LINE"
7885 else
7886 no_cache=1
7887 fi
7888
7889 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7890
7891fi;
7892
7893 eval "$ac_cv_use_sash"
7894 if test "$no_cache" != 1; then
7895 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7896 fi
7897
7898 if test "$wxUSE_SASH" = yes; then
7899 echo "$as_me:$LINENO: result: yes" >&5
7900echo "${ECHO_T}yes" >&6
7901 else
7902 echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904 fi
7905
7906
7907 enablestring=
7908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7909echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7910 no_cache=0
7911 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7912if test "${enable_scrollbar+set}" = set; then
7913 enableval="$enable_scrollbar"
7914
7915 if test "$enableval" = yes; then
7916 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7917 else
7918 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7919 fi
7920
7921else
7922
7923 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7924 if test "x$LINE" != x ; then
7925 eval "DEFAULT_$LINE"
7926 else
7927 no_cache=1
7928 fi
7929
7930 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7931
7932fi;
7933
7934 eval "$ac_cv_use_scrollbar"
7935 if test "$no_cache" != 1; then
7936 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7937 fi
7938
7939 if test "$wxUSE_SCROLLBAR" = yes; then
7940 echo "$as_me:$LINENO: result: yes" >&5
7941echo "${ECHO_T}yes" >&6
7942 else
7943 echo "$as_me:$LINENO: result: no" >&5
7944echo "${ECHO_T}no" >&6
7945 fi
7946
7947
7948 enablestring=
7949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7950echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7951 no_cache=0
7952 # Check whether --enable-slider or --disable-slider was given.
7953if test "${enable_slider+set}" = set; then
7954 enableval="$enable_slider"
7955
7956 if test "$enableval" = yes; then
7957 ac_cv_use_slider='wxUSE_SLIDER=yes'
7958 else
7959 ac_cv_use_slider='wxUSE_SLIDER=no'
7960 fi
7961
7962else
7963
7964 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7965 if test "x$LINE" != x ; then
7966 eval "DEFAULT_$LINE"
7967 else
7968 no_cache=1
7969 fi
7970
7971 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7972
7973fi;
7974
7975 eval "$ac_cv_use_slider"
7976 if test "$no_cache" != 1; then
7977 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7978 fi
7979
7980 if test "$wxUSE_SLIDER" = yes; then
7981 echo "$as_me:$LINENO: result: yes" >&5
7982echo "${ECHO_T}yes" >&6
7983 else
7984 echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6
7986 fi
7987
7988
7989 enablestring=
7990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7991echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7992 no_cache=0
7993 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7994if test "${enable_spinbtn+set}" = set; then
7995 enableval="$enable_spinbtn"
7996
7997 if test "$enableval" = yes; then
7998 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7999 else
8000 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8001 fi
8002
8003else
8004
8005 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8006 if test "x$LINE" != x ; then
8007 eval "DEFAULT_$LINE"
8008 else
8009 no_cache=1
8010 fi
8011
8012 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8013
8014fi;
8015
8016 eval "$ac_cv_use_spinbtn"
8017 if test "$no_cache" != 1; then
8018 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8019 fi
8020
8021 if test "$wxUSE_SPINBTN" = yes; then
8022 echo "$as_me:$LINENO: result: yes" >&5
8023echo "${ECHO_T}yes" >&6
8024 else
8025 echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6
8027 fi
8028
8029
8030 enablestring=
8031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8032echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8033 no_cache=0
8034 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8035if test "${enable_spinctrl+set}" = set; then
8036 enableval="$enable_spinctrl"
8037
8038 if test "$enableval" = yes; then
8039 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8040 else
8041 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8042 fi
8043
8044else
8045
8046 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8047 if test "x$LINE" != x ; then
8048 eval "DEFAULT_$LINE"
8049 else
8050 no_cache=1
8051 fi
8052
8053 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8054
8055fi;
8056
8057 eval "$ac_cv_use_spinctrl"
8058 if test "$no_cache" != 1; then
8059 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8060 fi
8061
8062 if test "$wxUSE_SPINCTRL" = yes; then
8063 echo "$as_me:$LINENO: result: yes" >&5
8064echo "${ECHO_T}yes" >&6
8065 else
8066 echo "$as_me:$LINENO: result: no" >&5
8067echo "${ECHO_T}no" >&6
8068 fi
8069
8070
8071 enablestring=
8072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8073echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8074 no_cache=0
8075 # Check whether --enable-splitter or --disable-splitter was given.
8076if test "${enable_splitter+set}" = set; then
8077 enableval="$enable_splitter"
8078
8079 if test "$enableval" = yes; then
8080 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8081 else
8082 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8083 fi
8084
8085else
8086
8087 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8088 if test "x$LINE" != x ; then
8089 eval "DEFAULT_$LINE"
8090 else
8091 no_cache=1
8092 fi
8093
8094 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8095
8096fi;
8097
8098 eval "$ac_cv_use_splitter"
8099 if test "$no_cache" != 1; then
8100 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8101 fi
8102
8103 if test "$wxUSE_SPLITTER" = yes; then
8104 echo "$as_me:$LINENO: result: yes" >&5
8105echo "${ECHO_T}yes" >&6
8106 else
8107 echo "$as_me:$LINENO: result: no" >&5
8108echo "${ECHO_T}no" >&6
8109 fi
8110
8111
8112 enablestring=
8113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8114echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8115 no_cache=0
8116 # Check whether --enable-statbmp or --disable-statbmp was given.
8117if test "${enable_statbmp+set}" = set; then
8118 enableval="$enable_statbmp"
8119
8120 if test "$enableval" = yes; then
8121 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8122 else
8123 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8124 fi
8125
8126else
8127
8128 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8129 if test "x$LINE" != x ; then
8130 eval "DEFAULT_$LINE"
8131 else
8132 no_cache=1
8133 fi
8134
8135 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8136
8137fi;
8138
8139 eval "$ac_cv_use_statbmp"
8140 if test "$no_cache" != 1; then
8141 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8142 fi
8143
8144 if test "$wxUSE_STATBMP" = yes; then
8145 echo "$as_me:$LINENO: result: yes" >&5
8146echo "${ECHO_T}yes" >&6
8147 else
8148 echo "$as_me:$LINENO: result: no" >&5
8149echo "${ECHO_T}no" >&6
8150 fi
8151
8152
8153 enablestring=
8154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8155echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8156 no_cache=0
8157 # Check whether --enable-statbox or --disable-statbox was given.
8158if test "${enable_statbox+set}" = set; then
8159 enableval="$enable_statbox"
8160
8161 if test "$enableval" = yes; then
8162 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8163 else
8164 ac_cv_use_statbox='wxUSE_STATBOX=no'
8165 fi
8166
8167else
8168
8169 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8170 if test "x$LINE" != x ; then
8171 eval "DEFAULT_$LINE"
8172 else
8173 no_cache=1
8174 fi
8175
8176 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8177
8178fi;
8179
8180 eval "$ac_cv_use_statbox"
8181 if test "$no_cache" != 1; then
8182 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8183 fi
8184
8185 if test "$wxUSE_STATBOX" = yes; then
8186 echo "$as_me:$LINENO: result: yes" >&5
8187echo "${ECHO_T}yes" >&6
8188 else
8189 echo "$as_me:$LINENO: result: no" >&5
8190echo "${ECHO_T}no" >&6
8191 fi
8192
8193
8194 enablestring=
8195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8196echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8197 no_cache=0
8198 # Check whether --enable-statline or --disable-statline was given.
8199if test "${enable_statline+set}" = set; then
8200 enableval="$enable_statline"
8201
8202 if test "$enableval" = yes; then
8203 ac_cv_use_statline='wxUSE_STATLINE=yes'
8204 else
8205 ac_cv_use_statline='wxUSE_STATLINE=no'
8206 fi
8207
8208else
8209
8210 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8211 if test "x$LINE" != x ; then
8212 eval "DEFAULT_$LINE"
8213 else
8214 no_cache=1
8215 fi
8216
8217 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8218
8219fi;
8220
8221 eval "$ac_cv_use_statline"
8222 if test "$no_cache" != 1; then
8223 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8224 fi
8225
8226 if test "$wxUSE_STATLINE" = yes; then
8227 echo "$as_me:$LINENO: result: yes" >&5
8228echo "${ECHO_T}yes" >&6
8229 else
8230 echo "$as_me:$LINENO: result: no" >&5
8231echo "${ECHO_T}no" >&6
8232 fi
8233
8234
8235 enablestring=
8236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8237echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8238 no_cache=0
8239 # Check whether --enable-stattext or --disable-stattext was given.
8240if test "${enable_stattext+set}" = set; then
8241 enableval="$enable_stattext"
8242
8243 if test "$enableval" = yes; then
8244 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8245 else
8246 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8247 fi
8248
8249else
8250
8251 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8252 if test "x$LINE" != x ; then
8253 eval "DEFAULT_$LINE"
8254 else
8255 no_cache=1
8256 fi
8257
8258 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8259
8260fi;
8261
8262 eval "$ac_cv_use_stattext"
8263 if test "$no_cache" != 1; then
8264 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8265 fi
8266
8267 if test "$wxUSE_STATTEXT" = yes; then
8268 echo "$as_me:$LINENO: result: yes" >&5
8269echo "${ECHO_T}yes" >&6
8270 else
8271 echo "$as_me:$LINENO: result: no" >&5
8272echo "${ECHO_T}no" >&6
8273 fi
8274
8275
8276 enablestring=
8277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8278echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8279 no_cache=0
8280 # Check whether --enable-statusbar or --disable-statusbar was given.
8281if test "${enable_statusbar+set}" = set; then
8282 enableval="$enable_statusbar"
8283
8284 if test "$enableval" = yes; then
8285 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8286 else
8287 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8288 fi
8289
8290else
8291
8292 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8293 if test "x$LINE" != x ; then
8294 eval "DEFAULT_$LINE"
8295 else
8296 no_cache=1
8297 fi
8298
8299 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8300
8301fi;
8302
8303 eval "$ac_cv_use_statusbar"
8304 if test "$no_cache" != 1; then
8305 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8306 fi
8307
8308 if test "$wxUSE_STATUSBAR" = yes; then
8309 echo "$as_me:$LINENO: result: yes" >&5
8310echo "${ECHO_T}yes" >&6
8311 else
8312 echo "$as_me:$LINENO: result: no" >&5
8313echo "${ECHO_T}no" >&6
8314 fi
8315
8316
8317 enablestring=
8318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8319echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8320 no_cache=0
8321 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8322if test "${enable_tabdialog+set}" = set; then
8323 enableval="$enable_tabdialog"
8324
8325 if test "$enableval" = yes; then
8326 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8327 else
8328 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8329 fi
8330
8331else
8332
8333 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8334 if test "x$LINE" != x ; then
8335 eval "DEFAULT_$LINE"
8336 else
8337 no_cache=1
8338 fi
8339
8340 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8341
8342fi;
8343
8344 eval "$ac_cv_use_tabdialog"
8345 if test "$no_cache" != 1; then
8346 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8347 fi
8348
8349 if test "$wxUSE_TABDIALOG" = yes; then
8350 echo "$as_me:$LINENO: result: yes" >&5
8351echo "${ECHO_T}yes" >&6
8352 else
8353 echo "$as_me:$LINENO: result: no" >&5
8354echo "${ECHO_T}no" >&6
8355 fi
8356
8357
8358 enablestring=
8359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8360echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8361 no_cache=0
8362 # Check whether --enable-textctrl or --disable-textctrl was given.
8363if test "${enable_textctrl+set}" = set; then
8364 enableval="$enable_textctrl"
8365
8366 if test "$enableval" = yes; then
8367 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8368 else
8369 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8370 fi
8371
8372else
8373
8374 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8375 if test "x$LINE" != x ; then
8376 eval "DEFAULT_$LINE"
8377 else
8378 no_cache=1
8379 fi
8380
8381 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8382
8383fi;
8384
8385 eval "$ac_cv_use_textctrl"
8386 if test "$no_cache" != 1; then
8387 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8388 fi
8389
8390 if test "$wxUSE_TEXTCTRL" = yes; then
8391 echo "$as_me:$LINENO: result: yes" >&5
8392echo "${ECHO_T}yes" >&6
8393 else
8394 echo "$as_me:$LINENO: result: no" >&5
8395echo "${ECHO_T}no" >&6
8396 fi
8397
8398
8399 enablestring=
8400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8401echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8402 no_cache=0
8403 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8404if test "${enable_togglebtn+set}" = set; then
8405 enableval="$enable_togglebtn"
8406
8407 if test "$enableval" = yes; then
8408 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8409 else
8410 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8411 fi
8412
8413else
8414
8415 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8416 if test "x$LINE" != x ; then
8417 eval "DEFAULT_$LINE"
8418 else
8419 no_cache=1
8420 fi
8421
8422 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8423
8424fi;
8425
8426 eval "$ac_cv_use_togglebtn"
8427 if test "$no_cache" != 1; then
8428 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8429 fi
8430
8431 if test "$wxUSE_TOGGLEBTN" = yes; then
8432 echo "$as_me:$LINENO: result: yes" >&5
8433echo "${ECHO_T}yes" >&6
8434 else
8435 echo "$as_me:$LINENO: result: no" >&5
8436echo "${ECHO_T}no" >&6
8437 fi
8438
8439
8440 enablestring=
8441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8442echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8443 no_cache=0
8444 # Check whether --enable-toolbar or --disable-toolbar was given.
8445if test "${enable_toolbar+set}" = set; then
8446 enableval="$enable_toolbar"
8447
8448 if test "$enableval" = yes; then
8449 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8450 else
8451 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8452 fi
8453
8454else
8455
8456 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8457 if test "x$LINE" != x ; then
8458 eval "DEFAULT_$LINE"
8459 else
8460 no_cache=1
8461 fi
8462
8463 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8464
8465fi;
8466
8467 eval "$ac_cv_use_toolbar"
8468 if test "$no_cache" != 1; then
8469 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8470 fi
8471
8472 if test "$wxUSE_TOOLBAR" = yes; then
8473 echo "$as_me:$LINENO: result: yes" >&5
8474echo "${ECHO_T}yes" >&6
8475 else
8476 echo "$as_me:$LINENO: result: no" >&5
8477echo "${ECHO_T}no" >&6
8478 fi
8479
8480
8481 enablestring=
8482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8483echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8484 no_cache=0
8485 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8486if test "${enable_tbarnative+set}" = set; then
8487 enableval="$enable_tbarnative"
8488
8489 if test "$enableval" = yes; then
8490 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8491 else
8492 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8493 fi
8494
8495else
8496
8497 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8498 if test "x$LINE" != x ; then
8499 eval "DEFAULT_$LINE"
8500 else
8501 no_cache=1
8502 fi
8503
8504 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8505
8506fi;
8507
8508 eval "$ac_cv_use_tbarnative"
8509 if test "$no_cache" != 1; then
8510 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8511 fi
8512
8513 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8514 echo "$as_me:$LINENO: result: yes" >&5
8515echo "${ECHO_T}yes" >&6
8516 else
8517 echo "$as_me:$LINENO: result: no" >&5
8518echo "${ECHO_T}no" >&6
8519 fi
8520
8521
8522 enablestring=
8523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8524echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8525 no_cache=0
8526 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8527if test "${enable_tbarsmpl+set}" = set; then
8528 enableval="$enable_tbarsmpl"
8529
8530 if test "$enableval" = yes; then
8531 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8532 else
8533 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8534 fi
8535
8536else
8537
8538 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8539 if test "x$LINE" != x ; then
8540 eval "DEFAULT_$LINE"
8541 else
8542 no_cache=1
8543 fi
8544
8545 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8546
8547fi;
8548
8549 eval "$ac_cv_use_tbarsmpl"
8550 if test "$no_cache" != 1; then
8551 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8552 fi
8553
8554 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8555 echo "$as_me:$LINENO: result: yes" >&5
8556echo "${ECHO_T}yes" >&6
8557 else
8558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
8560 fi
8561
8562
8563 enablestring=
8564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8565echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8566 no_cache=0
8567 # Check whether --enable-treectrl or --disable-treectrl was given.
8568if test "${enable_treectrl+set}" = set; then
8569 enableval="$enable_treectrl"
8570
8571 if test "$enableval" = yes; then
8572 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8573 else
8574 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8575 fi
8576
8577else
8578
8579 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8580 if test "x$LINE" != x ; then
8581 eval "DEFAULT_$LINE"
8582 else
8583 no_cache=1
8584 fi
8585
8586 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8587
8588fi;
8589
8590 eval "$ac_cv_use_treectrl"
8591 if test "$no_cache" != 1; then
8592 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8593 fi
8594
8595 if test "$wxUSE_TREECTRL" = yes; then
8596 echo "$as_me:$LINENO: result: yes" >&5
8597echo "${ECHO_T}yes" >&6
8598 else
8599 echo "$as_me:$LINENO: result: no" >&5
8600echo "${ECHO_T}no" >&6
8601 fi
8602
8603
8604 enablestring=
8605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8606echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8607 no_cache=0
8608 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8609if test "${enable_tipwindow+set}" = set; then
8610 enableval="$enable_tipwindow"
8611
8612 if test "$enableval" = yes; then
8613 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8614 else
8615 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8616 fi
8617
8618else
8619
8620 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8621 if test "x$LINE" != x ; then
8622 eval "DEFAULT_$LINE"
8623 else
8624 no_cache=1
8625 fi
8626
8627 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8628
8629fi;
8630
8631 eval "$ac_cv_use_tipwindow"
8632 if test "$no_cache" != 1; then
8633 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8634 fi
8635
8636 if test "$wxUSE_TIPWINDOW" = yes; then
8637 echo "$as_me:$LINENO: result: yes" >&5
8638echo "${ECHO_T}yes" >&6
8639 else
8640 echo "$as_me:$LINENO: result: no" >&5
8641echo "${ECHO_T}no" >&6
8642 fi
8643
8644
8645 enablestring=
8646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8647echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8648 no_cache=0
8649 # Check whether --enable-popupwin or --disable-popupwin was given.
8650if test "${enable_popupwin+set}" = set; then
8651 enableval="$enable_popupwin"
8652
8653 if test "$enableval" = yes; then
8654 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8655 else
8656 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8657 fi
8658
8659else
8660
8661 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8662 if test "x$LINE" != x ; then
8663 eval "DEFAULT_$LINE"
8664 else
8665 no_cache=1
8666 fi
8667
8668 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8669
8670fi;
8671
8672 eval "$ac_cv_use_popupwin"
8673 if test "$no_cache" != 1; then
8674 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8675 fi
8676
8677 if test "$wxUSE_POPUPWIN" = yes; then
8678 echo "$as_me:$LINENO: result: yes" >&5
8679echo "${ECHO_T}yes" >&6
8680 else
8681 echo "$as_me:$LINENO: result: no" >&5
8682echo "${ECHO_T}no" >&6
8683 fi
8684
8685
8686
8687
8688 enablestring=
8689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8690echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8691 no_cache=0
8692 # Check whether --enable-commondlg or --disable-commondlg was given.
8693if test "${enable_commondlg+set}" = set; then
8694 enableval="$enable_commondlg"
8695
8696 if test "$enableval" = yes; then
8697 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8698 else
8699 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8700 fi
8701
8702else
8703
8704 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8705 if test "x$LINE" != x ; then
8706 eval "DEFAULT_$LINE"
8707 else
8708 no_cache=1
8709 fi
8710
8711 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8712
8713fi;
8714
8715 eval "$ac_cv_use_commondlg"
8716 if test "$no_cache" != 1; then
8717 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8718 fi
8719
8720 if test "$wxUSE_COMMONDLGS" = yes; then
8721 echo "$as_me:$LINENO: result: yes" >&5
8722echo "${ECHO_T}yes" >&6
8723 else
8724 echo "$as_me:$LINENO: result: no" >&5
8725echo "${ECHO_T}no" >&6
8726 fi
8727
8728
8729 enablestring=
8730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8731echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8732 no_cache=0
8733 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8734if test "${enable_choicedlg+set}" = set; then
8735 enableval="$enable_choicedlg"
8736
8737 if test "$enableval" = yes; then
8738 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8739 else
8740 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8741 fi
8742
8743else
8744
8745 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8746 if test "x$LINE" != x ; then
8747 eval "DEFAULT_$LINE"
8748 else
8749 no_cache=1
8750 fi
8751
8752 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8753
8754fi;
8755
8756 eval "$ac_cv_use_choicedlg"
8757 if test "$no_cache" != 1; then
8758 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8759 fi
8760
8761 if test "$wxUSE_CHOICEDLG" = yes; then
8762 echo "$as_me:$LINENO: result: yes" >&5
8763echo "${ECHO_T}yes" >&6
8764 else
8765 echo "$as_me:$LINENO: result: no" >&5
8766echo "${ECHO_T}no" >&6
8767 fi
8768
8769
8770 enablestring=
8771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8772echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8773 no_cache=0
8774 # Check whether --enable-coldlg or --disable-coldlg was given.
8775if test "${enable_coldlg+set}" = set; then
8776 enableval="$enable_coldlg"
8777
8778 if test "$enableval" = yes; then
8779 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8780 else
8781 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8782 fi
8783
8784else
8785
8786 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8787 if test "x$LINE" != x ; then
8788 eval "DEFAULT_$LINE"
8789 else
8790 no_cache=1
8791 fi
8792
8793 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8794
8795fi;
8796
8797 eval "$ac_cv_use_coldlg"
8798 if test "$no_cache" != 1; then
8799 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8800 fi
8801
8802 if test "$wxUSE_COLOURDLG" = yes; then
8803 echo "$as_me:$LINENO: result: yes" >&5
8804echo "${ECHO_T}yes" >&6
8805 else
8806 echo "$as_me:$LINENO: result: no" >&5
8807echo "${ECHO_T}no" >&6
8808 fi
8809
8810
8811 enablestring=
8812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8813echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8814 no_cache=0
8815 # Check whether --enable-filedlg or --disable-filedlg was given.
8816if test "${enable_filedlg+set}" = set; then
8817 enableval="$enable_filedlg"
8818
8819 if test "$enableval" = yes; then
8820 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8821 else
8822 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8823 fi
8824
8825else
8826
8827 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8828 if test "x$LINE" != x ; then
8829 eval "DEFAULT_$LINE"
8830 else
8831 no_cache=1
8832 fi
8833
8834 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8835
8836fi;
8837
8838 eval "$ac_cv_use_filedlg"
8839 if test "$no_cache" != 1; then
8840 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8841 fi
8842
8843 if test "$wxUSE_FILEDLG" = yes; then
8844 echo "$as_me:$LINENO: result: yes" >&5
8845echo "${ECHO_T}yes" >&6
8846 else
8847 echo "$as_me:$LINENO: result: no" >&5
8848echo "${ECHO_T}no" >&6
8849 fi
8850
8851
8852 enablestring=
8853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8854echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8855 no_cache=0
8856 # Check whether --enable-finddlg or --disable-finddlg was given.
8857if test "${enable_finddlg+set}" = set; then
8858 enableval="$enable_finddlg"
8859
8860 if test "$enableval" = yes; then
8861 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8862 else
8863 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8864 fi
8865
8866else
8867
8868 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8869 if test "x$LINE" != x ; then
8870 eval "DEFAULT_$LINE"
8871 else
8872 no_cache=1
8873 fi
8874
8875 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8876
8877fi;
8878
8879 eval "$ac_cv_use_finddlg"
8880 if test "$no_cache" != 1; then
8881 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8882 fi
8883
8884 if test "$wxUSE_FINDREPLDLG" = yes; then
8885 echo "$as_me:$LINENO: result: yes" >&5
8886echo "${ECHO_T}yes" >&6
8887 else
8888 echo "$as_me:$LINENO: result: no" >&5
8889echo "${ECHO_T}no" >&6
8890 fi
8891
8892
8893 enablestring=
8894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8895echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8896 no_cache=0
8897 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8898if test "${enable_fontdlg+set}" = set; then
8899 enableval="$enable_fontdlg"
8900
8901 if test "$enableval" = yes; then
8902 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8903 else
8904 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8905 fi
8906
8907else
8908
8909 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8910 if test "x$LINE" != x ; then
8911 eval "DEFAULT_$LINE"
8912 else
8913 no_cache=1
8914 fi
8915
8916 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8917
8918fi;
8919
8920 eval "$ac_cv_use_fontdlg"
8921 if test "$no_cache" != 1; then
8922 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8923 fi
8924
8925 if test "$wxUSE_FONTDLG" = yes; then
8926 echo "$as_me:$LINENO: result: yes" >&5
8927echo "${ECHO_T}yes" >&6
8928 else
8929 echo "$as_me:$LINENO: result: no" >&5
8930echo "${ECHO_T}no" >&6
8931 fi
8932
8933
8934 enablestring=
8935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8936echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8937 no_cache=0
8938 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8939if test "${enable_dirdlg+set}" = set; then
8940 enableval="$enable_dirdlg"
8941
8942 if test "$enableval" = yes; then
8943 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8944 else
8945 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8946 fi
8947
8948else
8949
8950 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8951 if test "x$LINE" != x ; then
8952 eval "DEFAULT_$LINE"
8953 else
8954 no_cache=1
8955 fi
8956
8957 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8958
8959fi;
8960
8961 eval "$ac_cv_use_dirdlg"
8962 if test "$no_cache" != 1; then
8963 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8964 fi
8965
8966 if test "$wxUSE_DIRDLG" = yes; then
8967 echo "$as_me:$LINENO: result: yes" >&5
8968echo "${ECHO_T}yes" >&6
8969 else
8970 echo "$as_me:$LINENO: result: no" >&5
8971echo "${ECHO_T}no" >&6
8972 fi
8973
8974
8975 enablestring=
8976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8977echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8978 no_cache=0
8979 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8980if test "${enable_msgdlg+set}" = set; then
8981 enableval="$enable_msgdlg"
8982
8983 if test "$enableval" = yes; then
8984 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8985 else
8986 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8987 fi
8988
8989else
8990
8991 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8992 if test "x$LINE" != x ; then
8993 eval "DEFAULT_$LINE"
8994 else
8995 no_cache=1
8996 fi
8997
8998 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8999
9000fi;
9001
9002 eval "$ac_cv_use_msgdlg"
9003 if test "$no_cache" != 1; then
9004 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9005 fi
9006
9007 if test "$wxUSE_MSGDLG" = yes; then
9008 echo "$as_me:$LINENO: result: yes" >&5
9009echo "${ECHO_T}yes" >&6
9010 else
9011 echo "$as_me:$LINENO: result: no" >&5
9012echo "${ECHO_T}no" >&6
9013 fi
9014
9015
9016 enablestring=
9017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9018echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9019 no_cache=0
9020 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9021if test "${enable_numberdlg+set}" = set; then
9022 enableval="$enable_numberdlg"
9023
9024 if test "$enableval" = yes; then
9025 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9026 else
9027 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9028 fi
9029
9030else
9031
9032 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9033 if test "x$LINE" != x ; then
9034 eval "DEFAULT_$LINE"
9035 else
9036 no_cache=1
9037 fi
9038
9039 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9040
9041fi;
9042
9043 eval "$ac_cv_use_numberdlg"
9044 if test "$no_cache" != 1; then
9045 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9046 fi
9047
9048 if test "$wxUSE_NUMBERDLG" = yes; then
9049 echo "$as_me:$LINENO: result: yes" >&5
9050echo "${ECHO_T}yes" >&6
9051 else
9052 echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6
9054 fi
9055
9056
9057 enablestring=
9058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9059echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9060 no_cache=0
9061 # Check whether --enable-splash or --disable-splash was given.
9062if test "${enable_splash+set}" = set; then
9063 enableval="$enable_splash"
9064
9065 if test "$enableval" = yes; then
9066 ac_cv_use_splash='wxUSE_SPLASH=yes'
9067 else
9068 ac_cv_use_splash='wxUSE_SPLASH=no'
9069 fi
9070
9071else
9072
9073 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9074 if test "x$LINE" != x ; then
9075 eval "DEFAULT_$LINE"
9076 else
9077 no_cache=1
9078 fi
9079
9080 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9081
9082fi;
9083
9084 eval "$ac_cv_use_splash"
9085 if test "$no_cache" != 1; then
9086 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9087 fi
9088
9089 if test "$wxUSE_SPLASH" = yes; then
9090 echo "$as_me:$LINENO: result: yes" >&5
9091echo "${ECHO_T}yes" >&6
9092 else
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
9095 fi
9096
9097
9098 enablestring=
9099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9100echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9101 no_cache=0
9102 # Check whether --enable-textdlg or --disable-textdlg was given.
9103if test "${enable_textdlg+set}" = set; then
9104 enableval="$enable_textdlg"
9105
9106 if test "$enableval" = yes; then
9107 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9108 else
9109 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9110 fi
9111
9112else
9113
9114 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9115 if test "x$LINE" != x ; then
9116 eval "DEFAULT_$LINE"
9117 else
9118 no_cache=1
9119 fi
9120
9121 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9122
9123fi;
9124
9125 eval "$ac_cv_use_textdlg"
9126 if test "$no_cache" != 1; then
9127 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9128 fi
9129
9130 if test "$wxUSE_TEXTDLG" = yes; then
9131 echo "$as_me:$LINENO: result: yes" >&5
9132echo "${ECHO_T}yes" >&6
9133 else
9134 echo "$as_me:$LINENO: result: no" >&5
9135echo "${ECHO_T}no" >&6
9136 fi
9137
9138
9139 enablestring=
9140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9141echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9142 no_cache=0
9143 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9144if test "${enable_tipdlg+set}" = set; then
9145 enableval="$enable_tipdlg"
9146
9147 if test "$enableval" = yes; then
9148 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9149 else
9150 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9151 fi
9152
9153else
9154
9155 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9156 if test "x$LINE" != x ; then
9157 eval "DEFAULT_$LINE"
9158 else
9159 no_cache=1
9160 fi
9161
9162 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9163
9164fi;
9165
9166 eval "$ac_cv_use_tipdlg"
9167 if test "$no_cache" != 1; then
9168 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9169 fi
9170
9171 if test "$wxUSE_STARTUP_TIPS" = yes; then
9172 echo "$as_me:$LINENO: result: yes" >&5
9173echo "${ECHO_T}yes" >&6
9174 else
9175 echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
9177 fi
9178
9179
9180 enablestring=
9181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9182echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9183 no_cache=0
9184 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9185if test "${enable_progressdlg+set}" = set; then
9186 enableval="$enable_progressdlg"
9187
9188 if test "$enableval" = yes; then
9189 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9190 else
9191 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9192 fi
9193
9194else
9195
9196 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9197 if test "x$LINE" != x ; then
9198 eval "DEFAULT_$LINE"
9199 else
9200 no_cache=1
9201 fi
9202
9203 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9204
9205fi;
9206
9207 eval "$ac_cv_use_progressdlg"
9208 if test "$no_cache" != 1; then
9209 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9210 fi
9211
9212 if test "$wxUSE_PROGRESSDLG" = yes; then
9213 echo "$as_me:$LINENO: result: yes" >&5
9214echo "${ECHO_T}yes" >&6
9215 else
9216 echo "$as_me:$LINENO: result: no" >&5
9217echo "${ECHO_T}no" >&6
9218 fi
9219
9220
9221 enablestring=
9222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9223echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9224 no_cache=0
9225 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9226if test "${enable_wizarddlg+set}" = set; then
9227 enableval="$enable_wizarddlg"
9228
9229 if test "$enableval" = yes; then
9230 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9231 else
9232 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9233 fi
9234
9235else
9236
9237 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9238 if test "x$LINE" != x ; then
9239 eval "DEFAULT_$LINE"
9240 else
9241 no_cache=1
9242 fi
9243
9244 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9245
9246fi;
9247
9248 eval "$ac_cv_use_wizarddlg"
9249 if test "$no_cache" != 1; then
9250 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9251 fi
9252
9253 if test "$wxUSE_WIZARDDLG" = yes; then
9254 echo "$as_me:$LINENO: result: yes" >&5
9255echo "${ECHO_T}yes" >&6
9256 else
9257 echo "$as_me:$LINENO: result: no" >&5
9258echo "${ECHO_T}no" >&6
9259 fi
9260
9261
9262
9263
9264 enablestring=
9265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9266echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9267 no_cache=0
9268 # Check whether --enable-menus or --disable-menus was given.
9269if test "${enable_menus+set}" = set; then
9270 enableval="$enable_menus"
9271
9272 if test "$enableval" = yes; then
9273 ac_cv_use_menus='wxUSE_MENUS=yes'
9274 else
9275 ac_cv_use_menus='wxUSE_MENUS=no'
9276 fi
9277
9278else
9279
9280 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9281 if test "x$LINE" != x ; then
9282 eval "DEFAULT_$LINE"
9283 else
9284 no_cache=1
9285 fi
9286
9287 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9288
9289fi;
9290
9291 eval "$ac_cv_use_menus"
9292 if test "$no_cache" != 1; then
9293 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9294 fi
9295
9296 if test "$wxUSE_MENUS" = yes; then
9297 echo "$as_me:$LINENO: result: yes" >&5
9298echo "${ECHO_T}yes" >&6
9299 else
9300 echo "$as_me:$LINENO: result: no" >&5
9301echo "${ECHO_T}no" >&6
9302 fi
9303
9304
9305 enablestring=
9306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9307echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9308 no_cache=0
9309 # Check whether --enable-miniframe or --disable-miniframe was given.
9310if test "${enable_miniframe+set}" = set; then
9311 enableval="$enable_miniframe"
9312
9313 if test "$enableval" = yes; then
9314 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9315 else
9316 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9317 fi
9318
9319else
9320
9321 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9322 if test "x$LINE" != x ; then
9323 eval "DEFAULT_$LINE"
9324 else
9325 no_cache=1
9326 fi
9327
9328 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9329
9330fi;
9331
9332 eval "$ac_cv_use_miniframe"
9333 if test "$no_cache" != 1; then
9334 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9335 fi
9336
9337 if test "$wxUSE_MINIFRAME" = yes; then
9338 echo "$as_me:$LINENO: result: yes" >&5
9339echo "${ECHO_T}yes" >&6
9340 else
9341 echo "$as_me:$LINENO: result: no" >&5
9342echo "${ECHO_T}no" >&6
9343 fi
9344
9345
9346 enablestring=
9347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9348echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9349 no_cache=0
9350 # Check whether --enable-tooltips or --disable-tooltips was given.
9351if test "${enable_tooltips+set}" = set; then
9352 enableval="$enable_tooltips"
9353
9354 if test "$enableval" = yes; then
9355 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9356 else
9357 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9358 fi
9359
9360else
9361
9362 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9363 if test "x$LINE" != x ; then
9364 eval "DEFAULT_$LINE"
9365 else
9366 no_cache=1
9367 fi
9368
9369 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9370
9371fi;
9372
9373 eval "$ac_cv_use_tooltips"
9374 if test "$no_cache" != 1; then
9375 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9376 fi
9377
9378 if test "$wxUSE_TOOLTIPS" = yes; then
9379 echo "$as_me:$LINENO: result: yes" >&5
9380echo "${ECHO_T}yes" >&6
9381 else
9382 echo "$as_me:$LINENO: result: no" >&5
9383echo "${ECHO_T}no" >&6
9384 fi
9385
9386
9387 enablestring=
9388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9389echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9390 no_cache=0
9391 # Check whether --enable-splines or --disable-splines was given.
9392if test "${enable_splines+set}" = set; then
9393 enableval="$enable_splines"
9394
9395 if test "$enableval" = yes; then
9396 ac_cv_use_splines='wxUSE_SPLINES=yes'
9397 else
9398 ac_cv_use_splines='wxUSE_SPLINES=no'
9399 fi
9400
9401else
9402
9403 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9404 if test "x$LINE" != x ; then
9405 eval "DEFAULT_$LINE"
9406 else
9407 no_cache=1
9408 fi
9409
9410 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9411
9412fi;
9413
9414 eval "$ac_cv_use_splines"
9415 if test "$no_cache" != 1; then
9416 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9417 fi
9418
9419 if test "$wxUSE_SPLINES" = yes; then
9420 echo "$as_me:$LINENO: result: yes" >&5
9421echo "${ECHO_T}yes" >&6
9422 else
9423 echo "$as_me:$LINENO: result: no" >&5
9424echo "${ECHO_T}no" >&6
9425 fi
9426
9427
9428 enablestring=
9429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9430echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9431 no_cache=0
9432 # Check whether --enable-validators or --disable-validators was given.
9433if test "${enable_validators+set}" = set; then
9434 enableval="$enable_validators"
9435
9436 if test "$enableval" = yes; then
9437 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9438 else
9439 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9440 fi
9441
9442else
9443
9444 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9445 if test "x$LINE" != x ; then
9446 eval "DEFAULT_$LINE"
9447 else
9448 no_cache=1
9449 fi
9450
9451 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9452
9453fi;
9454
9455 eval "$ac_cv_use_validators"
9456 if test "$no_cache" != 1; then
9457 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9458 fi
9459
9460 if test "$wxUSE_VALIDATORS" = yes; then
9461 echo "$as_me:$LINENO: result: yes" >&5
9462echo "${ECHO_T}yes" >&6
9463 else
9464 echo "$as_me:$LINENO: result: no" >&5
9465echo "${ECHO_T}no" >&6
9466 fi
9467
9468
9469 enablestring=
9470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9471echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9472 no_cache=0
9473 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9474if test "${enable_busyinfo+set}" = set; then
9475 enableval="$enable_busyinfo"
9476
9477 if test "$enableval" = yes; then
9478 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9479 else
9480 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9481 fi
9482
9483else
9484
9485 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9486 if test "x$LINE" != x ; then
9487 eval "DEFAULT_$LINE"
9488 else
9489 no_cache=1
9490 fi
9491
9492 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9493
9494fi;
9495
9496 eval "$ac_cv_use_busyinfo"
9497 if test "$no_cache" != 1; then
9498 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9499 fi
9500
9501 if test "$wxUSE_BUSYINFO" = yes; then
9502 echo "$as_me:$LINENO: result: yes" >&5
9503echo "${ECHO_T}yes" >&6
9504 else
9505 echo "$as_me:$LINENO: result: no" >&5
9506echo "${ECHO_T}no" >&6
9507 fi
9508
9509
9510 enablestring=
9511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9512echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9513 no_cache=0
9514 # Check whether --enable-joystick or --disable-joystick was given.
9515if test "${enable_joystick+set}" = set; then
9516 enableval="$enable_joystick"
9517
9518 if test "$enableval" = yes; then
9519 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9520 else
9521 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9522 fi
9523
9524else
9525
9526 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9527 if test "x$LINE" != x ; then
9528 eval "DEFAULT_$LINE"
9529 else
9530 no_cache=1
9531 fi
9532
9533 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9534
9535fi;
9536
9537 eval "$ac_cv_use_joystick"
9538 if test "$no_cache" != 1; then
9539 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9540 fi
9541
9542 if test "$wxUSE_JOYSTICK" = yes; then
9543 echo "$as_me:$LINENO: result: yes" >&5
9544echo "${ECHO_T}yes" >&6
9545 else
9546 echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
9548 fi
9549
9550
9551 enablestring=
9552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9553echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9554 no_cache=0
9555 # Check whether --enable-metafile or --disable-metafile was given.
9556if test "${enable_metafile+set}" = set; then
9557 enableval="$enable_metafile"
9558
9559 if test "$enableval" = yes; then
9560 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9561 else
9562 ac_cv_use_metafile='wxUSE_METAFILE=no'
9563 fi
9564
9565else
9566
9567 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9568 if test "x$LINE" != x ; then
9569 eval "DEFAULT_$LINE"
9570 else
9571 no_cache=1
9572 fi
9573
9574 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9575
9576fi;
9577
9578 eval "$ac_cv_use_metafile"
9579 if test "$no_cache" != 1; then
9580 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9581 fi
9582
9583 if test "$wxUSE_METAFILE" = yes; then
9584 echo "$as_me:$LINENO: result: yes" >&5
9585echo "${ECHO_T}yes" >&6
9586 else
9587 echo "$as_me:$LINENO: result: no" >&5
9588echo "${ECHO_T}no" >&6
9589 fi
9590
9591
9592 enablestring=
9593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9594echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9595 no_cache=0
9596 # Check whether --enable-dragimage or --disable-dragimage was given.
9597if test "${enable_dragimage+set}" = set; then
9598 enableval="$enable_dragimage"
9599
9600 if test "$enableval" = yes; then
9601 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9602 else
9603 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9604 fi
9605
9606else
9607
9608 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9609 if test "x$LINE" != x ; then
9610 eval "DEFAULT_$LINE"
9611 else
9612 no_cache=1
9613 fi
9614
9615 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9616
9617fi;
9618
9619 eval "$ac_cv_use_dragimage"
9620 if test "$no_cache" != 1; then
9621 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9622 fi
9623
9624 if test "$wxUSE_DRAGIMAGE" = yes; then
9625 echo "$as_me:$LINENO: result: yes" >&5
9626echo "${ECHO_T}yes" >&6
9627 else
9628 echo "$as_me:$LINENO: result: no" >&5
9629echo "${ECHO_T}no" >&6
9630 fi
9631
9632
9633 enablestring=
9634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9635echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9636 no_cache=0
9637 # Check whether --enable-accessibility or --disable-accessibility was given.
9638if test "${enable_accessibility+set}" = set; then
9639 enableval="$enable_accessibility"
9640
9641 if test "$enableval" = yes; then
9642 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9643 else
9644 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9645 fi
9646
9647else
9648
9649 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9650 if test "x$LINE" != x ; then
9651 eval "DEFAULT_$LINE"
9652 else
9653 no_cache=1
9654 fi
9655
9656 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9657
9658fi;
9659
9660 eval "$ac_cv_use_accessibility"
9661 if test "$no_cache" != 1; then
9662 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9663 fi
9664
9665 if test "$wxUSE_ACCESSIBILITY" = yes; then
9666 echo "$as_me:$LINENO: result: yes" >&5
9667echo "${ECHO_T}yes" >&6
9668 else
9669 echo "$as_me:$LINENO: result: no" >&5
9670echo "${ECHO_T}no" >&6
9671 fi
9672
9673
9674
9675
9676 enablestring=
9677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9678echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9679 no_cache=0
9680 # Check whether --enable-palette or --disable-palette was given.
9681if test "${enable_palette+set}" = set; then
9682 enableval="$enable_palette"
9683
9684 if test "$enableval" = yes; then
9685 ac_cv_use_palette='wxUSE_PALETTE=yes'
9686 else
9687 ac_cv_use_palette='wxUSE_PALETTE=no'
9688 fi
9689
9690else
9691
9692 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9693 if test "x$LINE" != x ; then
9694 eval "DEFAULT_$LINE"
9695 else
9696 no_cache=1
9697 fi
9698
9699 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9700
9701fi;
9702
9703 eval "$ac_cv_use_palette"
9704 if test "$no_cache" != 1; then
9705 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9706 fi
9707
9708 if test "$wxUSE_PALETTE" = yes; then
9709 echo "$as_me:$LINENO: result: yes" >&5
9710echo "${ECHO_T}yes" >&6
9711 else
9712 echo "$as_me:$LINENO: result: no" >&5
9713echo "${ECHO_T}no" >&6
9714 fi
9715
9716
9717 enablestring=
9718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9719echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9720 no_cache=0
9721 # Check whether --enable-image or --disable-image was given.
9722if test "${enable_image+set}" = set; then
9723 enableval="$enable_image"
9724
9725 if test "$enableval" = yes; then
9726 ac_cv_use_image='wxUSE_IMAGE=yes'
9727 else
9728 ac_cv_use_image='wxUSE_IMAGE=no'
9729 fi
9730
9731else
9732
9733 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9734 if test "x$LINE" != x ; then
9735 eval "DEFAULT_$LINE"
9736 else
9737 no_cache=1
9738 fi
9739
9740 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9741
9742fi;
9743
9744 eval "$ac_cv_use_image"
9745 if test "$no_cache" != 1; then
9746 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9747 fi
9748
9749 if test "$wxUSE_IMAGE" = yes; then
9750 echo "$as_me:$LINENO: result: yes" >&5
9751echo "${ECHO_T}yes" >&6
9752 else
9753 echo "$as_me:$LINENO: result: no" >&5
9754echo "${ECHO_T}no" >&6
9755 fi
9756
9757
9758 enablestring=
9759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9760echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9761 no_cache=0
9762 # Check whether --enable-gif or --disable-gif was given.
9763if test "${enable_gif+set}" = set; then
9764 enableval="$enable_gif"
9765
9766 if test "$enableval" = yes; then
9767 ac_cv_use_gif='wxUSE_GIF=yes'
9768 else
9769 ac_cv_use_gif='wxUSE_GIF=no'
9770 fi
9771
9772else
9773
9774 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9775 if test "x$LINE" != x ; then
9776 eval "DEFAULT_$LINE"
9777 else
9778 no_cache=1
9779 fi
9780
9781 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9782
9783fi;
9784
9785 eval "$ac_cv_use_gif"
9786 if test "$no_cache" != 1; then
9787 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9788 fi
9789
9790 if test "$wxUSE_GIF" = yes; then
9791 echo "$as_me:$LINENO: result: yes" >&5
9792echo "${ECHO_T}yes" >&6
9793 else
9794 echo "$as_me:$LINENO: result: no" >&5
9795echo "${ECHO_T}no" >&6
9796 fi
9797
9798
9799 enablestring=
9800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9801echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9802 no_cache=0
9803 # Check whether --enable-pcx or --disable-pcx was given.
9804if test "${enable_pcx+set}" = set; then
9805 enableval="$enable_pcx"
9806
9807 if test "$enableval" = yes; then
9808 ac_cv_use_pcx='wxUSE_PCX=yes'
9809 else
9810 ac_cv_use_pcx='wxUSE_PCX=no'
9811 fi
9812
9813else
9814
9815 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9816 if test "x$LINE" != x ; then
9817 eval "DEFAULT_$LINE"
9818 else
9819 no_cache=1
9820 fi
9821
9822 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9823
9824fi;
9825
9826 eval "$ac_cv_use_pcx"
9827 if test "$no_cache" != 1; then
9828 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9829 fi
9830
9831 if test "$wxUSE_PCX" = yes; then
9832 echo "$as_me:$LINENO: result: yes" >&5
9833echo "${ECHO_T}yes" >&6
9834 else
9835 echo "$as_me:$LINENO: result: no" >&5
9836echo "${ECHO_T}no" >&6
9837 fi
9838
9839
9840 enablestring=
9841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9842echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9843 no_cache=0
9844 # Check whether --enable-iff or --disable-iff was given.
9845if test "${enable_iff+set}" = set; then
9846 enableval="$enable_iff"
9847
9848 if test "$enableval" = yes; then
9849 ac_cv_use_iff='wxUSE_IFF=yes'
9850 else
9851 ac_cv_use_iff='wxUSE_IFF=no'
9852 fi
9853
9854else
9855
9856 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9857 if test "x$LINE" != x ; then
9858 eval "DEFAULT_$LINE"
9859 else
9860 no_cache=1
9861 fi
9862
9863 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9864
9865fi;
9866
9867 eval "$ac_cv_use_iff"
9868 if test "$no_cache" != 1; then
9869 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9870 fi
9871
9872 if test "$wxUSE_IFF" = yes; then
9873 echo "$as_me:$LINENO: result: yes" >&5
9874echo "${ECHO_T}yes" >&6
9875 else
9876 echo "$as_me:$LINENO: result: no" >&5
9877echo "${ECHO_T}no" >&6
9878 fi
9879
9880
9881 enablestring=
9882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9883echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9884 no_cache=0
9885 # Check whether --enable-pnm or --disable-pnm was given.
9886if test "${enable_pnm+set}" = set; then
9887 enableval="$enable_pnm"
9888
9889 if test "$enableval" = yes; then
9890 ac_cv_use_pnm='wxUSE_PNM=yes'
9891 else
9892 ac_cv_use_pnm='wxUSE_PNM=no'
9893 fi
9894
9895else
9896
9897 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9898 if test "x$LINE" != x ; then
9899 eval "DEFAULT_$LINE"
9900 else
9901 no_cache=1
9902 fi
9903
9904 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9905
9906fi;
9907
9908 eval "$ac_cv_use_pnm"
9909 if test "$no_cache" != 1; then
9910 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9911 fi
9912
9913 if test "$wxUSE_PNM" = yes; then
9914 echo "$as_me:$LINENO: result: yes" >&5
9915echo "${ECHO_T}yes" >&6
9916 else
9917 echo "$as_me:$LINENO: result: no" >&5
9918echo "${ECHO_T}no" >&6
9919 fi
9920
9921
9922 enablestring=
9923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9924echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9925 no_cache=0
9926 # Check whether --enable-xpm or --disable-xpm was given.
9927if test "${enable_xpm+set}" = set; then
9928 enableval="$enable_xpm"
9929
9930 if test "$enableval" = yes; then
9931 ac_cv_use_xpm='wxUSE_XPM=yes'
9932 else
9933 ac_cv_use_xpm='wxUSE_XPM=no'
9934 fi
9935
9936else
9937
9938 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9939 if test "x$LINE" != x ; then
9940 eval "DEFAULT_$LINE"
9941 else
9942 no_cache=1
9943 fi
9944
9945 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9946
9947fi;
9948
9949 eval "$ac_cv_use_xpm"
9950 if test "$no_cache" != 1; then
9951 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9952 fi
9953
9954 if test "$wxUSE_XPM" = yes; then
9955 echo "$as_me:$LINENO: result: yes" >&5
9956echo "${ECHO_T}yes" >&6
9957 else
9958 echo "$as_me:$LINENO: result: no" >&5
9959echo "${ECHO_T}no" >&6
9960 fi
9961
9962
9963 enablestring=
9964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9965echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9966 no_cache=0
9967 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9968if test "${enable_ico_cur+set}" = set; then
9969 enableval="$enable_ico_cur"
9970
9971 if test "$enableval" = yes; then
9972 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9973 else
9974 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9975 fi
9976
9977else
9978
9979 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9980 if test "x$LINE" != x ; then
9981 eval "DEFAULT_$LINE"
9982 else
9983 no_cache=1
9984 fi
9985
9986 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9987
9988fi;
9989
9990 eval "$ac_cv_use_ico_cur"
9991 if test "$no_cache" != 1; then
9992 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9993 fi
9994
9995 if test "$wxUSE_ICO_CUR" = yes; then
9996 echo "$as_me:$LINENO: result: yes" >&5
9997echo "${ECHO_T}yes" >&6
9998 else
9999 echo "$as_me:$LINENO: result: no" >&5
10000echo "${ECHO_T}no" >&6
10001 fi
10002
10003
10004fi
10005
10006
10007
ceec2216
RL
10008# Check whether --with-flavour or --without-flavour was given.
10009if test "${with_flavour+set}" = set; then
10010 withval="$with_flavour"
10011 WX_FLAVOUR="$withval"
10012fi;
10013
10014
10015
a848cd7e
SC
10016 enablestring=
10017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10018echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10019 no_cache=0
10020 # Check whether --enable-official_build or --disable-official_build was given.
10021if test "${enable_official_build+set}" = set; then
10022 enableval="$enable_official_build"
10023
10024 if test "$enableval" = yes; then
10025 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10026 else
10027 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10028 fi
10029
10030else
10031
10032 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10033 if test "x$LINE" != x ; then
10034 eval "DEFAULT_$LINE"
10035 else
10036 no_cache=1
10037 fi
10038
10039 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10040
10041fi;
10042
10043 eval "$ac_cv_use_official_build"
10044 if test "$no_cache" != 1; then
10045 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10046 fi
10047
10048 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10049 echo "$as_me:$LINENO: result: yes" >&5
10050echo "${ECHO_T}yes" >&6
10051 else
10052 echo "$as_me:$LINENO: result: no" >&5
10053echo "${ECHO_T}no" >&6
10054 fi
10055
10056# Check whether --enable-vendor or --disable-vendor was given.
10057if test "${enable_vendor+set}" = set; then
10058 enableval="$enable_vendor"
10059 VENDOR="$enableval"
10060fi;
10061if test "x$VENDOR" = "x"; then
10062 VENDOR="custom"
10063fi
10064
a848cd7e
SC
10065
10066
10067
10068 echo "saving argument cache $wx_arg_cache_file"
10069 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10070
10071
10072
10073echo "$as_me:$LINENO: checking for toolkit" >&5
10074echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10075
10076# In Wine, we need to default to MSW, not GTK or MOTIF
10077if test "$wxUSE_WINE" = "yes"; then
10078 DEFAULT_DEFAULT_wxUSE_GTK=0
10079 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10080 DEFAULT_DEFAULT_wxUSE_MSW=1
10081 wxUSE_SHARED=no
10082fi
10083
10084if test "$wxUSE_GUI" = "yes"; then
10085
10086 if test "$USE_BEOS" = 1; then
10087 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10088echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10089 { (exit 1); exit 1; }; }
10090 fi
10091
10092 if test "$TOOLKIT_GIVEN" = 1; then
10093 for toolkit in `echo $ALL_TOOLKITS`; do
10094 var=wxUSE_$toolkit
10095 eval "value=\$${var}"
10096 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10097 done
10098 else
10099 for toolkit in `echo $ALL_TOOLKITS`; do
10100 if test "$has_toolkit_in_cache" != 1; then
10101 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10102 else
10103 var=DEFAULT_wxUSE_$toolkit
10104 fi
10105 eval "wxUSE_$toolkit=\$${var}"
10106 done
10107 fi
10108
10109 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10110 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10111 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10112
10113 case "${host}" in
10114 *-pc-os2_emx | *-pc-os2-emx )
10115 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10116 esac
10117
10118 case "$NUM_TOOLKITS" in
10119 1)
10120 ;;
10121 0)
10122 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10123echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10124 { (exit 1); exit 1; }; }
10125 ;;
10126 *)
10127 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10128echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10129 { (exit 1); exit 1; }; }
10130 esac
10131
10132 for toolkit in `echo $ALL_TOOLKITS`; do
10133 var=wxUSE_$toolkit
10134 eval "value=\$${var}"
10135 if test "x$value" != x; then
10136 cache_var=CACHE_$toolkit
10137 eval "cache=\$${cache_var}"
10138 if test "$cache" = 1; then
10139 echo "$var=$value" >> ${wx_arg_cache_file}
10140 fi
10141 if test "$value" = 1; then
10142 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10143 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10144echo "${ECHO_T}$toolkit_echo" >&6
10145 fi
10146 fi
10147 done
10148else
10149 if test "x$host_alias" != "x"; then
10150 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10151echo "${ECHO_T}base ($host_alias hosted) only" >&6
10152 else
10153 echo "$as_me:$LINENO: result: base only" >&5
10154echo "${ECHO_T}base only" >&6
10155 fi
10156fi
10157
10158wants_win32=0
10159doesnt_want_win32=0
10160case "${host}" in
10161 *-*-cygwin*)
10162 if test "$wxUSE_MSW" = 1 ; then
10163 wants_win32=1
10164 else
10165 doesnt_want_win32=1
10166 fi
10167 ;;
10168 *-*-mingw*)
10169 wants_win32=1
10170 ;;
10171esac
10172
10173if test "$wxUSE_WINE" = "yes"; then
10174 wants_win32=1
10175 CC=winegcc
10176 CXX=wineg++
10177 RESCOMP=wrc
10178 LDFLAGS_GUI="-mwindows"
10179fi
10180
10181if test "$wants_win32" = 1 ; then
10182 USE_UNIX=0
10183 USE_WIN32=1
10184 cat >>confdefs.h <<\_ACEOF
10185#define __WIN32__ 1
10186_ACEOF
10187
10188 cat >>confdefs.h <<\_ACEOF
10189#define __WIN95__ 1
10190_ACEOF
10191
10192 cat >>confdefs.h <<\_ACEOF
10193#define __WINDOWS__ 1
10194_ACEOF
10195
10196 cat >>confdefs.h <<\_ACEOF
10197#define __GNUWIN32__ 1
10198_ACEOF
10199
10200 cat >>confdefs.h <<\_ACEOF
10201#define STRICT 1
10202_ACEOF
10203
10204 cat >>confdefs.h <<\_ACEOF
10205#define WINVER 0x0400
10206_ACEOF
10207
10208fi
10209if test "$doesnt_want_win32" = 1 ; then
10210 USE_UNIX=1
10211 USE_WIN32=0
10212fi
10213
10214if test "$USE_UNIX" = 1 ; then
10215 wxUSE_UNIX=yes
10216 cat >>confdefs.h <<\_ACEOF
10217#define __UNIX__ 1
10218_ACEOF
10219
10220fi
10221
10222
10223cat >confcache <<\_ACEOF
10224# This file is a shell script that caches the results of configure
10225# tests run on this system so they can be shared between configure
10226# scripts and configure runs, see configure's option --config-cache.
10227# It is not useful on other systems. If it contains results you don't
10228# want to keep, you may remove or edit it.
10229#
10230# config.status only pays attention to the cache file if you give it
10231# the --recheck option to rerun configure.
10232#
10233# `ac_cv_env_foo' variables (set or unset) will be overridden when
10234# loading this file, other *unset* `ac_cv_foo' will be assigned the
10235# following values.
10236
10237_ACEOF
10238
10239# The following way of writing the cache mishandles newlines in values,
10240# but we know of no workaround that is simple, portable, and efficient.
10241# So, don't put newlines in cache variables' values.
10242# Ultrix sh set writes to stderr and can't be redirected directly,
10243# and sets the high bit in the cache file unless we assign to the vars.
10244{
10245 (set) 2>&1 |
10246 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10247 *ac_space=\ *)
10248 # `set' does not quote correctly, so add quotes (double-quote
10249 # substitution turns \\\\ into \\, and sed turns \\ into \).
10250 sed -n \
ac1cb8d3
VS
10251 "s/'/'\\\\''/g;
10252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10253 ;;
10254 *)
10255 # `set' quotes correctly as required by POSIX, so do not add quotes.
10256 sed -n \
ac1cb8d3 10257 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10258 ;;
10259 esac;
10260} |
10261 sed '
10262 t clear
10263 : clear
10264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10265 t end
10266 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10267 : end' >>confcache
10268if diff $cache_file confcache >/dev/null 2>&1; then :; else
10269 if test -w $cache_file; then
10270 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10271 cat confcache >$cache_file
10272 else
10273 echo "not updating unwritable cache $cache_file"
10274 fi
10275fi
10276rm -f confcache
10277
10278if test "$build" != "$host" ; then
10279 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10280 CC=$host_alias-gcc
10281 CXX=$host_alias-c++
10282 AR=$host_alias-ar
10283 RANLIB=$host_alias-ranlib
10284 DLLTOOL=$host_alias-dlltool
10285 RESCOMP=$host_alias-windres
a848cd7e
SC
10286 STRIP=$host_alias-strip
10287 else
10288 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10289echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10290 { (exit 1); exit 1; }; }
10291 fi
10292fi
10293
10294CFLAGS=${CFLAGS:=}
10295ac_ext=c
10296ac_cpp='$CPP $CPPFLAGS'
10297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10299ac_compiler_gnu=$ac_cv_c_compiler_gnu
10300if test -n "$ac_tool_prefix"; then
10301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10302set dummy ${ac_tool_prefix}gcc; ac_word=$2
10303echo "$as_me:$LINENO: checking for $ac_word" >&5
10304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10305if test "${ac_cv_prog_CC+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307else
10308 if test -n "$CC"; then
10309 ac_cv_prog_CC="$CC" # Let the user override the test.
10310else
10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10321 fi
10322done
10323done
10324
10325fi
10326fi
10327CC=$ac_cv_prog_CC
10328if test -n "$CC"; then
10329 echo "$as_me:$LINENO: result: $CC" >&5
10330echo "${ECHO_T}$CC" >&6
10331else
10332 echo "$as_me:$LINENO: result: no" >&5
10333echo "${ECHO_T}no" >&6
10334fi
10335
10336fi
10337if test -z "$ac_cv_prog_CC"; then
10338 ac_ct_CC=$CC
10339 # Extract the first word of "gcc", so it can be a program name with args.
10340set dummy gcc; ac_word=$2
10341echo "$as_me:$LINENO: checking for $ac_word" >&5
10342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10343if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345else
10346 if test -n "$ac_ct_CC"; then
10347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10348else
10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10356 ac_cv_prog_ac_ct_CC="gcc"
10357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10358 break 2
10359 fi
10360done
10361done
10362
10363fi
10364fi
10365ac_ct_CC=$ac_cv_prog_ac_ct_CC
10366if test -n "$ac_ct_CC"; then
10367 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10368echo "${ECHO_T}$ac_ct_CC" >&6
10369else
10370 echo "$as_me:$LINENO: result: no" >&5
10371echo "${ECHO_T}no" >&6
10372fi
10373
10374 CC=$ac_ct_CC
10375else
10376 CC="$ac_cv_prog_CC"
10377fi
10378
10379if test -z "$CC"; then
10380 if test -n "$ac_tool_prefix"; then
10381 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10382set dummy ${ac_tool_prefix}cc; ac_word=$2
10383echo "$as_me:$LINENO: checking for $ac_word" >&5
10384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10385if test "${ac_cv_prog_CC+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387else
10388 if test -n "$CC"; then
10389 ac_cv_prog_CC="$CC" # Let the user override the test.
10390else
10391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392for as_dir in $PATH
10393do
10394 IFS=$as_save_IFS
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10398 ac_cv_prog_CC="${ac_tool_prefix}cc"
10399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10400 break 2
10401 fi
10402done
10403done
10404
10405fi
10406fi
10407CC=$ac_cv_prog_CC
10408if test -n "$CC"; then
10409 echo "$as_me:$LINENO: result: $CC" >&5
10410echo "${ECHO_T}$CC" >&6
10411else
10412 echo "$as_me:$LINENO: result: no" >&5
10413echo "${ECHO_T}no" >&6
10414fi
10415
10416fi
10417if test -z "$ac_cv_prog_CC"; then
10418 ac_ct_CC=$CC
10419 # Extract the first word of "cc", so it can be a program name with args.
10420set dummy cc; ac_word=$2
10421echo "$as_me:$LINENO: checking for $ac_word" >&5
10422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10423if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425else
10426 if test -n "$ac_ct_CC"; then
10427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10428else
10429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10436 ac_cv_prog_ac_ct_CC="cc"
10437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10439 fi
10440done
10441done
10442
10443fi
10444fi
10445ac_ct_CC=$ac_cv_prog_ac_ct_CC
10446if test -n "$ac_ct_CC"; then
10447 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10448echo "${ECHO_T}$ac_ct_CC" >&6
10449else
10450 echo "$as_me:$LINENO: result: no" >&5
10451echo "${ECHO_T}no" >&6
10452fi
10453
10454 CC=$ac_ct_CC
10455else
10456 CC="$ac_cv_prog_CC"
10457fi
10458
10459fi
10460if test -z "$CC"; then
10461 # Extract the first word of "cc", so it can be a program name with args.
10462set dummy cc; ac_word=$2
10463echo "$as_me:$LINENO: checking for $ac_word" >&5
10464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10465if test "${ac_cv_prog_CC+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468 if test -n "$CC"; then
10469 ac_cv_prog_CC="$CC" # Let the user override the test.
10470else
10471 ac_prog_rejected=no
10472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473for as_dir in $PATH
10474do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10480 ac_prog_rejected=yes
10481 continue
10482 fi
10483 ac_cv_prog_CC="cc"
10484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10486 fi
10487done
10488done
10489
10490if test $ac_prog_rejected = yes; then
10491 # We found a bogon in the path, so make sure we never use it.
10492 set dummy $ac_cv_prog_CC
10493 shift
10494 if test $# != 0; then
10495 # We chose a different compiler from the bogus one.
10496 # However, it has the same basename, so the bogon will be chosen
10497 # first if we set CC to just the basename; use the full file name.
10498 shift
10499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10500 fi
10501fi
10502fi
10503fi
10504CC=$ac_cv_prog_CC
10505if test -n "$CC"; then
10506 echo "$as_me:$LINENO: result: $CC" >&5
10507echo "${ECHO_T}$CC" >&6
10508else
10509 echo "$as_me:$LINENO: result: no" >&5
10510echo "${ECHO_T}no" >&6
10511fi
10512
10513fi
10514if test -z "$CC"; then
10515 if test -n "$ac_tool_prefix"; then
10516 for ac_prog in cl
10517 do
10518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10520echo "$as_me:$LINENO: checking for $ac_word" >&5
10521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10522if test "${ac_cv_prog_CC+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10524else
10525 if test -n "$CC"; then
10526 ac_cv_prog_CC="$CC" # Let the user override the test.
10527else
10528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529for as_dir in $PATH
10530do
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10538 fi
10539done
10540done
10541
10542fi
10543fi
10544CC=$ac_cv_prog_CC
10545if test -n "$CC"; then
10546 echo "$as_me:$LINENO: result: $CC" >&5
10547echo "${ECHO_T}$CC" >&6
10548else
10549 echo "$as_me:$LINENO: result: no" >&5
10550echo "${ECHO_T}no" >&6
10551fi
10552
10553 test -n "$CC" && break
10554 done
10555fi
10556if test -z "$CC"; then
10557 ac_ct_CC=$CC
10558 for ac_prog in cl
10559do
10560 # Extract the first word of "$ac_prog", so it can be a program name with args.
10561set dummy $ac_prog; ac_word=$2
10562echo "$as_me:$LINENO: checking for $ac_word" >&5
10563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10564if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10566else
10567 if test -n "$ac_ct_CC"; then
10568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10569else
10570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571for as_dir in $PATH
10572do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577 ac_cv_prog_ac_ct_CC="$ac_prog"
10578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10580 fi
10581done
10582done
10583
10584fi
10585fi
10586ac_ct_CC=$ac_cv_prog_ac_ct_CC
10587if test -n "$ac_ct_CC"; then
10588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10589echo "${ECHO_T}$ac_ct_CC" >&6
10590else
10591 echo "$as_me:$LINENO: result: no" >&5
10592echo "${ECHO_T}no" >&6
10593fi
10594
10595 test -n "$ac_ct_CC" && break
10596done
10597
10598 CC=$ac_ct_CC
10599fi
10600
10601fi
10602
10603
10604test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10605See \`config.log' for more details." >&5
10606echo "$as_me: error: no acceptable C compiler found in \$PATH
10607See \`config.log' for more details." >&2;}
10608 { (exit 1); exit 1; }; }
10609
10610# Provide some information about the compiler.
10611echo "$as_me:$LINENO:" \
10612 "checking for C compiler version" >&5
10613ac_compiler=`set X $ac_compile; echo $2`
10614{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10615 (eval $ac_compiler --version </dev/null >&5) 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }
10619{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10620 (eval $ac_compiler -v </dev/null >&5) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }
10624{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10625 (eval $ac_compiler -V </dev/null >&5) 2>&5
10626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }
10629
10630cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
10636
10637int
10638main ()
10639{
10640
10641 ;
10642 return 0;
10643}
10644_ACEOF
10645ac_clean_files_save=$ac_clean_files
10646ac_clean_files="$ac_clean_files a.out a.exe b.out"
10647# Try to create an executable without -o first, disregard a.out.
10648# It will help us diagnose broken compilers, and finding out an intuition
10649# of exeext.
ac1cb8d3
VS
10650echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10651echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10652ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10653if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10654 (eval $ac_link_default) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; then
10658 # Find the output, starting from the most likely. This scheme is
10659# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10660# resort.
10661
10662# Be careful to initialize this variable, since it used to be cached.
10663# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10664ac_cv_exeext=
10665# b.out is created by i960 compilers.
10666for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10667do
10668 test -f "$ac_file" || continue
10669 case $ac_file in
10670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10671 ;;
a848cd7e 10672 conftest.$ac_ext )
ac1cb8d3
VS
10673 # This is the source file.
10674 ;;
a848cd7e 10675 [ab].out )
ac1cb8d3
VS
10676 # We found the default executable, but exeext='' is most
10677 # certainly right.
10678 break;;
a848cd7e 10679 *.* )
ac1cb8d3
VS
10680 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10681 # FIXME: I believe we export ac_cv_exeext for Libtool,
10682 # but it would be cool to find out if it's true. Does anybody
10683 # maintain Libtool? --akim.
10684 export ac_cv_exeext
10685 break;;
a848cd7e 10686 * )
ac1cb8d3 10687 break;;
a848cd7e
SC
10688 esac
10689done
10690else
10691 echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
10694{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10695See \`config.log' for more details." >&5
10696echo "$as_me: error: C compiler cannot create executables
10697See \`config.log' for more details." >&2;}
10698 { (exit 77); exit 77; }; }
10699fi
10700
10701ac_exeext=$ac_cv_exeext
10702echo "$as_me:$LINENO: result: $ac_file" >&5
10703echo "${ECHO_T}$ac_file" >&6
10704
10705# Check the compiler produces executables we can run. If not, either
10706# the compiler is broken, or we cross compile.
10707echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10708echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10709# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10710# If not cross compiling, check that we can run a simple program.
10711if test "$cross_compiling" != yes; then
10712 if { ac_try='./$ac_file'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
10718 cross_compiling=no
10719 else
10720 if test "$cross_compiling" = maybe; then
10721 cross_compiling=yes
10722 else
10723 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10724If you meant to cross compile, use \`--host'.
10725See \`config.log' for more details." >&5
10726echo "$as_me: error: cannot run C compiled programs.
10727If you meant to cross compile, use \`--host'.
10728See \`config.log' for more details." >&2;}
10729 { (exit 1); exit 1; }; }
10730 fi
10731 fi
10732fi
10733echo "$as_me:$LINENO: result: yes" >&5
10734echo "${ECHO_T}yes" >&6
10735
10736rm -f a.out a.exe conftest$ac_cv_exeext b.out
10737ac_clean_files=$ac_clean_files_save
10738# Check the compiler produces executables we can run. If not, either
10739# the compiler is broken, or we cross compile.
10740echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10741echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10742echo "$as_me:$LINENO: result: $cross_compiling" >&5
10743echo "${ECHO_T}$cross_compiling" >&6
10744
10745echo "$as_me:$LINENO: checking for suffix of executables" >&5
10746echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10748 (eval $ac_link) 2>&5
10749 ac_status=$?
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; then
10752 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10753# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10754# work properly (i.e., refer to `conftest.exe'), while it won't with
10755# `rm'.
10756for ac_file in conftest.exe conftest conftest.*; do
10757 test -f "$ac_file" || continue
10758 case $ac_file in
10759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10760 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10761 export ac_cv_exeext
10762 break;;
a848cd7e
SC
10763 * ) break;;
10764 esac
10765done
10766else
10767 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10768See \`config.log' for more details." >&5
10769echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10770See \`config.log' for more details." >&2;}
10771 { (exit 1); exit 1; }; }
10772fi
10773
10774rm -f conftest$ac_cv_exeext
10775echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10776echo "${ECHO_T}$ac_cv_exeext" >&6
10777
10778rm -f conftest.$ac_ext
10779EXEEXT=$ac_cv_exeext
10780ac_exeext=$EXEEXT
10781echo "$as_me:$LINENO: checking for suffix of object files" >&5
10782echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10783if test "${ac_cv_objext+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786 cat >conftest.$ac_ext <<_ACEOF
10787/* confdefs.h. */
10788_ACEOF
10789cat confdefs.h >>conftest.$ac_ext
10790cat >>conftest.$ac_ext <<_ACEOF
10791/* end confdefs.h. */
10792
10793int
10794main ()
10795{
10796
10797 ;
10798 return 0;
10799}
10800_ACEOF
10801rm -f conftest.o conftest.obj
10802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803 (eval $ac_compile) 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; then
10807 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10808 case $ac_file in
10809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10810 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10811 break;;
10812 esac
10813done
10814else
10815 echo "$as_me: failed program was:" >&5
10816sed 's/^/| /' conftest.$ac_ext >&5
10817
10818{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10819See \`config.log' for more details." >&5
10820echo "$as_me: error: cannot compute suffix of object files: cannot compile
10821See \`config.log' for more details." >&2;}
10822 { (exit 1); exit 1; }; }
10823fi
10824
10825rm -f conftest.$ac_cv_objext conftest.$ac_ext
10826fi
10827echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10828echo "${ECHO_T}$ac_cv_objext" >&6
10829OBJEXT=$ac_cv_objext
10830ac_objext=$OBJEXT
10831echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10832echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10833if test "${ac_cv_c_compiler_gnu+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835else
10836 cat >conftest.$ac_ext <<_ACEOF
10837/* confdefs.h. */
10838_ACEOF
10839cat confdefs.h >>conftest.$ac_ext
10840cat >>conftest.$ac_ext <<_ACEOF
10841/* end confdefs.h. */
10842
10843int
10844main ()
10845{
10846#ifndef __GNUC__
10847 choke me
10848#endif
10849
10850 ;
10851 return 0;
10852}
10853_ACEOF
10854rm -f conftest.$ac_objext
10855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10856 (eval $ac_compile) 2>conftest.er1
a848cd7e 10857 ac_status=$?
ac1cb8d3
VS
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
a848cd7e
SC
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
b48a2016
DE
10863 { ac_try='test -z "$ac_c_werror_flag"
10864 || test ! -s conftest.err'
ac1cb8d3
VS
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
10876 ac_compiler_gnu=yes
10877else
10878 echo "$as_me: failed program was:" >&5
10879sed 's/^/| /' conftest.$ac_ext >&5
10880
10881ac_compiler_gnu=no
10882fi
ac1cb8d3 10883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10884ac_cv_c_compiler_gnu=$ac_compiler_gnu
10885
10886fi
10887echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10888echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10889GCC=`test $ac_compiler_gnu = yes && echo yes`
10890ac_test_CFLAGS=${CFLAGS+set}
10891ac_save_CFLAGS=$CFLAGS
10892CFLAGS="-g"
10893echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10894echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10895if test "${ac_cv_prog_cc_g+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10897else
10898 cat >conftest.$ac_ext <<_ACEOF
10899/* confdefs.h. */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h. */
10904
10905int
10906main ()
10907{
10908
10909 ;
10910 return 0;
10911}
10912_ACEOF
10913rm -f conftest.$ac_objext
10914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10915 (eval $ac_compile) 2>conftest.er1
a848cd7e 10916 ac_status=$?
ac1cb8d3
VS
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
a848cd7e
SC
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
b48a2016
DE
10922 { ac_try='test -z "$ac_c_werror_flag"
10923 || test ! -s conftest.err'
ac1cb8d3
VS
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; } &&
10929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 ac_cv_prog_cc_g=yes
10936else
10937 echo "$as_me: failed program was:" >&5
10938sed 's/^/| /' conftest.$ac_ext >&5
10939
10940ac_cv_prog_cc_g=no
10941fi
ac1cb8d3 10942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10943fi
10944echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10945echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10946if test "$ac_test_CFLAGS" = set; then
10947 CFLAGS=$ac_save_CFLAGS
10948elif test $ac_cv_prog_cc_g = yes; then
10949 if test "$GCC" = yes; then
10950 CFLAGS="-g -O2"
10951 else
10952 CFLAGS="-g"
10953 fi
10954else
10955 if test "$GCC" = yes; then
10956 CFLAGS="-O2"
10957 else
10958 CFLAGS=
10959 fi
10960fi
10961echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10962echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10963if test "${ac_cv_prog_cc_stdc+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965else
10966 ac_cv_prog_cc_stdc=no
10967ac_save_CC=$CC
10968cat >conftest.$ac_ext <<_ACEOF
10969/* confdefs.h. */
10970_ACEOF
10971cat confdefs.h >>conftest.$ac_ext
10972cat >>conftest.$ac_ext <<_ACEOF
10973/* end confdefs.h. */
10974#include <stdarg.h>
10975#include <stdio.h>
10976#include <sys/types.h>
10977#include <sys/stat.h>
10978/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10979struct buf { int x; };
10980FILE * (*rcsopen) (struct buf *, struct stat *, int);
10981static char *e (p, i)
10982 char **p;
10983 int i;
10984{
10985 return p[i];
10986}
10987static char *f (char * (*g) (char **, int), char **p, ...)
10988{
10989 char *s;
10990 va_list v;
10991 va_start (v,p);
10992 s = g (p, va_arg (v,int));
10993 va_end (v);
10994 return s;
10995}
ac1cb8d3
VS
10996
10997/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10998 function prototypes and stuff, but not '\xHH' hex character constants.
10999 These don't provoke an error unfortunately, instead are silently treated
11000 as 'x'. The following induces an error, until -std1 is added to get
11001 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11002 array size at least. It's necessary to write '\x00'==0 to get something
11003 that's true only with -std1. */
11004int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11005
a848cd7e
SC
11006int test (int i, double x);
11007struct s1 {int (*f) (int a);};
11008struct s2 {int (*f) (double a);};
11009int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11010int argc;
11011char **argv;
11012int
11013main ()
11014{
11015return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11016 ;
11017 return 0;
11018}
11019_ACEOF
11020# Don't try gcc -ansi; that turns off useful extensions and
11021# breaks some systems' header files.
11022# AIX -qlanglvl=ansi
11023# Ultrix and OSF/1 -std1
11024# HP-UX 10.20 and later -Ae
11025# HP-UX older versions -Aa -D_HPUX_SOURCE
11026# SVR4 -Xc -D__EXTENSIONS__
11027for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11028do
11029 CC="$ac_save_CC $ac_arg"
11030 rm -f conftest.$ac_objext
11031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11032 (eval $ac_compile) 2>conftest.er1
a848cd7e 11033 ac_status=$?
ac1cb8d3
VS
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
a848cd7e
SC
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
b48a2016
DE
11039 { ac_try='test -z "$ac_c_werror_flag"
11040 || test ! -s conftest.err'
ac1cb8d3
VS
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11052 ac_cv_prog_cc_stdc=$ac_arg
11053break
11054else
11055 echo "$as_me: failed program was:" >&5
11056sed 's/^/| /' conftest.$ac_ext >&5
11057
11058fi
ac1cb8d3 11059rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11060done
11061rm -f conftest.$ac_ext conftest.$ac_objext
11062CC=$ac_save_CC
11063
11064fi
11065
11066case "x$ac_cv_prog_cc_stdc" in
11067 x|xno)
11068 echo "$as_me:$LINENO: result: none needed" >&5
11069echo "${ECHO_T}none needed" >&6 ;;
11070 *)
11071 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11072echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11073 CC="$CC $ac_cv_prog_cc_stdc" ;;
11074esac
11075
11076# Some people use a C++ compiler to compile C. Since we use `exit',
11077# in C++ we need to declare it. In case someone uses the same compiler
11078# for both compiling C and C++ we need to have the C++ compiler decide
11079# the declaration of exit, since it's the most demanding environment.
11080cat >conftest.$ac_ext <<_ACEOF
11081#ifndef __cplusplus
11082 choke me
11083#endif
11084_ACEOF
11085rm -f conftest.$ac_objext
11086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11087 (eval $ac_compile) 2>conftest.er1
a848cd7e 11088 ac_status=$?
ac1cb8d3
VS
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
a848cd7e
SC
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
b48a2016
DE
11094 { ac_try='test -z "$ac_c_werror_flag"
11095 || test ! -s conftest.err'
ac1cb8d3
VS
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 for ac_declaration in \
ac1cb8d3 11108 '' \
a848cd7e
SC
11109 'extern "C" void std::exit (int) throw (); using std::exit;' \
11110 'extern "C" void std::exit (int); using std::exit;' \
11111 'extern "C" void exit (int) throw ();' \
11112 'extern "C" void exit (int);' \
11113 'void exit (int);'
11114do
11115 cat >conftest.$ac_ext <<_ACEOF
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
11120/* end confdefs.h. */
de59c161 11121$ac_declaration
ac1cb8d3 11122#include <stdlib.h>
a848cd7e
SC
11123int
11124main ()
11125{
11126exit (42);
11127 ;
11128 return 0;
11129}
11130_ACEOF
11131rm -f conftest.$ac_objext
11132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11133 (eval $ac_compile) 2>conftest.er1
a848cd7e 11134 ac_status=$?
ac1cb8d3
VS
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
a848cd7e
SC
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } &&
b48a2016
DE
11140 { ac_try='test -z "$ac_c_werror_flag"
11141 || test ! -s conftest.err'
ac1cb8d3
VS
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; } &&
11147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 :
11154else
11155 echo "$as_me: failed program was:" >&5
11156sed 's/^/| /' conftest.$ac_ext >&5
11157
11158continue
11159fi
ac1cb8d3 11160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11161 cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
11167$ac_declaration
11168int
11169main ()
11170{
11171exit (42);
11172 ;
11173 return 0;
11174}
11175_ACEOF
11176rm -f conftest.$ac_objext
11177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11178 (eval $ac_compile) 2>conftest.er1
a848cd7e 11179 ac_status=$?
ac1cb8d3
VS
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
a848cd7e
SC
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
b48a2016
DE
11185 { ac_try='test -z "$ac_c_werror_flag"
11186 || test ! -s conftest.err'
ac1cb8d3
VS
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; } &&
11192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 break
11199else
11200 echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
11202
11203fi
ac1cb8d3 11204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11205done
11206rm -f conftest*
11207if test -n "$ac_declaration"; then
11208 echo '#ifdef __cplusplus' >>confdefs.h
11209 echo $ac_declaration >>confdefs.h
11210 echo '#endif' >>confdefs.h
11211fi
11212
11213else
11214 echo "$as_me: failed program was:" >&5
11215sed 's/^/| /' conftest.$ac_ext >&5
11216
11217fi
ac1cb8d3 11218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11219ac_ext=c
11220ac_cpp='$CPP $CPPFLAGS'
11221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11223ac_compiler_gnu=$ac_cv_c_compiler_gnu
11224
11225
11226
11227ac_ext=c
11228ac_cpp='$CPP $CPPFLAGS'
11229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11231ac_compiler_gnu=$ac_cv_c_compiler_gnu
11232echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11233echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11234# On Suns, sometimes $CPP names a directory.
11235if test -n "$CPP" && test -d "$CPP"; then
11236 CPP=
11237fi
11238if test -z "$CPP"; then
11239 if test "${ac_cv_prog_CPP+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241else
11242 # Double quotes because CPP needs to be expanded
11243 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11244 do
11245 ac_preproc_ok=false
11246for ac_c_preproc_warn_flag in '' yes
11247do
11248 # Use a header file that comes with gcc, so configuring glibc
11249 # with a fresh cross-compiler works.
11250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11251 # <limits.h> exists even on freestanding compilers.
11252 # On the NeXT, cc -E runs the code through the compiler's parser,
11253 # not just through cpp. "Syntax error" is here to catch this case.
11254 cat >conftest.$ac_ext <<_ACEOF
11255/* confdefs.h. */
11256_ACEOF
11257cat confdefs.h >>conftest.$ac_ext
11258cat >>conftest.$ac_ext <<_ACEOF
11259/* end confdefs.h. */
11260#ifdef __STDC__
11261# include <limits.h>
11262#else
11263# include <assert.h>
11264#endif
ac1cb8d3 11265 Syntax error
a848cd7e
SC
11266_ACEOF
11267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } >/dev/null; then
11275 if test -s conftest.err; then
11276 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11278 else
11279 ac_cpp_err=
11280 fi
11281else
11282 ac_cpp_err=yes
11283fi
11284if test -z "$ac_cpp_err"; then
11285 :
11286else
11287 echo "$as_me: failed program was:" >&5
11288sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 # Broken: fails on valid input.
11291continue
11292fi
11293rm -f conftest.err conftest.$ac_ext
11294
11295 # OK, works on sane cases. Now check whether non-existent headers
11296 # can be detected and how.
11297 cat >conftest.$ac_ext <<_ACEOF
11298/* confdefs.h. */
11299_ACEOF
11300cat confdefs.h >>conftest.$ac_ext
11301cat >>conftest.$ac_ext <<_ACEOF
11302/* end confdefs.h. */
11303#include <ac_nonexistent.h>
11304_ACEOF
11305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11307 ac_status=$?
11308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } >/dev/null; then
11313 if test -s conftest.err; then
11314 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11316 else
11317 ac_cpp_err=
11318 fi
11319else
11320 ac_cpp_err=yes
11321fi
11322if test -z "$ac_cpp_err"; then
11323 # Broken: success on invalid input.
11324continue
11325else
11326 echo "$as_me: failed program was:" >&5
11327sed 's/^/| /' conftest.$ac_ext >&5
11328
11329 # Passes both tests.
11330ac_preproc_ok=:
11331break
11332fi
11333rm -f conftest.err conftest.$ac_ext
11334
11335done
11336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11337rm -f conftest.err conftest.$ac_ext
11338if $ac_preproc_ok; then
11339 break
11340fi
11341
11342 done
11343 ac_cv_prog_CPP=$CPP
11344
11345fi
11346 CPP=$ac_cv_prog_CPP
11347else
11348 ac_cv_prog_CPP=$CPP
11349fi
11350echo "$as_me:$LINENO: result: $CPP" >&5
11351echo "${ECHO_T}$CPP" >&6
11352ac_preproc_ok=false
11353for ac_c_preproc_warn_flag in '' yes
11354do
11355 # Use a header file that comes with gcc, so configuring glibc
11356 # with a fresh cross-compiler works.
11357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11358 # <limits.h> exists even on freestanding compilers.
11359 # On the NeXT, cc -E runs the code through the compiler's parser,
11360 # not just through cpp. "Syntax error" is here to catch this case.
11361 cat >conftest.$ac_ext <<_ACEOF
11362/* confdefs.h. */
11363_ACEOF
11364cat confdefs.h >>conftest.$ac_ext
11365cat >>conftest.$ac_ext <<_ACEOF
11366/* end confdefs.h. */
11367#ifdef __STDC__
11368# include <limits.h>
11369#else
11370# include <assert.h>
11371#endif
ac1cb8d3 11372 Syntax error
a848cd7e
SC
11373_ACEOF
11374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } >/dev/null; then
11382 if test -s conftest.err; then
11383 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11385 else
11386 ac_cpp_err=
11387 fi
11388else
11389 ac_cpp_err=yes
11390fi
11391if test -z "$ac_cpp_err"; then
11392 :
11393else
11394 echo "$as_me: failed program was:" >&5
11395sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 # Broken: fails on valid input.
11398continue
11399fi
11400rm -f conftest.err conftest.$ac_ext
11401
11402 # OK, works on sane cases. Now check whether non-existent headers
11403 # can be detected and how.
11404 cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
11410#include <ac_nonexistent.h>
11411_ACEOF
11412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11414 ac_status=$?
11415 grep -v '^ *+' conftest.er1 >conftest.err
11416 rm -f conftest.er1
11417 cat conftest.err >&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); } >/dev/null; then
11420 if test -s conftest.err; then
11421 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11423 else
11424 ac_cpp_err=
11425 fi
11426else
11427 ac_cpp_err=yes
11428fi
11429if test -z "$ac_cpp_err"; then
11430 # Broken: success on invalid input.
11431continue
11432else
11433 echo "$as_me: failed program was:" >&5
11434sed 's/^/| /' conftest.$ac_ext >&5
11435
11436 # Passes both tests.
11437ac_preproc_ok=:
11438break
11439fi
11440rm -f conftest.err conftest.$ac_ext
11441
11442done
11443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11444rm -f conftest.err conftest.$ac_ext
11445if $ac_preproc_ok; then
11446 :
11447else
11448 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11449See \`config.log' for more details." >&5
11450echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11451See \`config.log' for more details." >&2;}
11452 { (exit 1); exit 1; }; }
11453fi
11454
11455ac_ext=c
11456ac_cpp='$CPP $CPPFLAGS'
11457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11459ac_compiler_gnu=$ac_cv_c_compiler_gnu
11460
11461
11462echo "$as_me:$LINENO: checking for egrep" >&5
11463echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11464if test "${ac_cv_prog_egrep+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466else
11467 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11468 then ac_cv_prog_egrep='grep -E'
11469 else ac_cv_prog_egrep='egrep'
11470 fi
11471fi
11472echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11473echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11474 EGREP=$ac_cv_prog_egrep
11475
11476
11477if test $ac_cv_c_compiler_gnu = yes; then
11478 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11479echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11480if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11482else
11483 ac_pattern="Autoconf.*'x'"
11484 cat >conftest.$ac_ext <<_ACEOF
11485/* confdefs.h. */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h. */
11490#include <sgtty.h>
11491Autoconf TIOCGETP
11492_ACEOF
11493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11494 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11495 ac_cv_prog_gcc_traditional=yes
11496else
11497 ac_cv_prog_gcc_traditional=no
11498fi
11499rm -f conftest*
11500
11501
11502 if test $ac_cv_prog_gcc_traditional = no; then
11503 cat >conftest.$ac_ext <<_ACEOF
11504/* confdefs.h. */
11505_ACEOF
11506cat confdefs.h >>conftest.$ac_ext
11507cat >>conftest.$ac_ext <<_ACEOF
11508/* end confdefs.h. */
11509#include <termio.h>
11510Autoconf TCGETA
11511_ACEOF
11512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11513 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11514 ac_cv_prog_gcc_traditional=yes
11515fi
11516rm -f conftest*
11517
11518 fi
11519fi
11520echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11521echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11522 if test $ac_cv_prog_gcc_traditional = yes; then
11523 CC="$CC -traditional"
11524 fi
11525fi
11526
11527
11528
11529
11530ac_ext=cc
11531ac_cpp='$CXXCPP $CPPFLAGS'
11532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11535
11536
11537CXXFLAGS=${CXXFLAGS:=}
11538ac_ext=cc
11539ac_cpp='$CXXCPP $CPPFLAGS'
11540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11543if test -n "$ac_tool_prefix"; then
11544 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11545 do
11546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11548echo "$as_me:$LINENO: checking for $ac_word" >&5
11549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11550if test "${ac_cv_prog_CXX+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11552else
11553 if test -n "$CXX"; then
11554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11555else
11556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557for as_dir in $PATH
11558do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 break 2
11566 fi
11567done
11568done
11569
11570fi
11571fi
11572CXX=$ac_cv_prog_CXX
11573if test -n "$CXX"; then
11574 echo "$as_me:$LINENO: result: $CXX" >&5
11575echo "${ECHO_T}$CXX" >&6
11576else
11577 echo "$as_me:$LINENO: result: no" >&5
11578echo "${ECHO_T}no" >&6
11579fi
11580
11581 test -n "$CXX" && break
11582 done
11583fi
11584if test -z "$CXX"; then
11585 ac_ct_CXX=$CXX
11586 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11587do
11588 # Extract the first word of "$ac_prog", so it can be a program name with args.
11589set dummy $ac_prog; ac_word=$2
11590echo "$as_me:$LINENO: checking for $ac_word" >&5
11591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11592if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594else
11595 if test -n "$ac_ct_CXX"; then
11596 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11597else
11598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599for as_dir in $PATH
11600do
11601 IFS=$as_save_IFS
11602 test -z "$as_dir" && as_dir=.
11603 for ac_exec_ext in '' $ac_executable_extensions; do
11604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11605 ac_cv_prog_ac_ct_CXX="$ac_prog"
11606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11607 break 2
11608 fi
11609done
11610done
11611
11612fi
11613fi
11614ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11615if test -n "$ac_ct_CXX"; then
11616 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11617echo "${ECHO_T}$ac_ct_CXX" >&6
11618else
11619 echo "$as_me:$LINENO: result: no" >&5
11620echo "${ECHO_T}no" >&6
11621fi
11622
11623 test -n "$ac_ct_CXX" && break
11624done
11625test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11626
11627 CXX=$ac_ct_CXX
11628fi
11629
11630
11631# Provide some information about the compiler.
11632echo "$as_me:$LINENO:" \
11633 "checking for C++ compiler version" >&5
11634ac_compiler=`set X $ac_compile; echo $2`
11635{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11636 (eval $ac_compiler --version </dev/null >&5) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }
11640{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11641 (eval $ac_compiler -v </dev/null >&5) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }
11645{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11646 (eval $ac_compiler -V </dev/null >&5) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }
11650
11651echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11652echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11653if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655else
11656 cat >conftest.$ac_ext <<_ACEOF
11657/* confdefs.h. */
11658_ACEOF
11659cat confdefs.h >>conftest.$ac_ext
11660cat >>conftest.$ac_ext <<_ACEOF
11661/* end confdefs.h. */
11662
11663int
11664main ()
11665{
11666#ifndef __GNUC__
11667 choke me
11668#endif
11669
11670 ;
11671 return 0;
11672}
11673_ACEOF
11674rm -f conftest.$ac_objext
11675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11676 (eval $ac_compile) 2>conftest.er1
a848cd7e 11677 ac_status=$?
ac1cb8d3
VS
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
a848cd7e
SC
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
b48a2016
DE
11683 { ac_try='test -z "$ac_cxx_werror_flag"
11684 || test ! -s conftest.err'
ac1cb8d3
VS
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11693 ac_status=$?
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 ac_compiler_gnu=yes
11697else
11698 echo "$as_me: failed program was:" >&5
11699sed 's/^/| /' conftest.$ac_ext >&5
11700
11701ac_compiler_gnu=no
11702fi
ac1cb8d3 11703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11704ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11705
11706fi
11707echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11708echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11709GXX=`test $ac_compiler_gnu = yes && echo yes`
11710ac_test_CXXFLAGS=${CXXFLAGS+set}
11711ac_save_CXXFLAGS=$CXXFLAGS
11712CXXFLAGS="-g"
11713echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11714echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11715if test "${ac_cv_prog_cxx_g+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717else
11718 cat >conftest.$ac_ext <<_ACEOF
11719/* confdefs.h. */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h. */
11724
11725int
11726main ()
11727{
11728
11729 ;
11730 return 0;
11731}
11732_ACEOF
11733rm -f conftest.$ac_objext
11734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11735 (eval $ac_compile) 2>conftest.er1
a848cd7e 11736 ac_status=$?
ac1cb8d3
VS
11737 grep -v '^ *+' conftest.er1 >conftest.err
11738 rm -f conftest.er1
11739 cat conftest.err >&5
a848cd7e
SC
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } &&
b48a2016
DE
11742 { ac_try='test -z "$ac_cxx_werror_flag"
11743 || test ! -s conftest.err'
ac1cb8d3
VS
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 ac_cv_prog_cxx_g=yes
11756else
11757 echo "$as_me: failed program was:" >&5
11758sed 's/^/| /' conftest.$ac_ext >&5
11759
11760ac_cv_prog_cxx_g=no
11761fi
ac1cb8d3 11762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11763fi
11764echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11765echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11766if test "$ac_test_CXXFLAGS" = set; then
11767 CXXFLAGS=$ac_save_CXXFLAGS
11768elif test $ac_cv_prog_cxx_g = yes; then
11769 if test "$GXX" = yes; then
11770 CXXFLAGS="-g -O2"
11771 else
11772 CXXFLAGS="-g"
11773 fi
11774else
11775 if test "$GXX" = yes; then
11776 CXXFLAGS="-O2"
11777 else
11778 CXXFLAGS=
11779 fi
11780fi
11781for ac_declaration in \
ac1cb8d3 11782 '' \
a848cd7e
SC
11783 'extern "C" void std::exit (int) throw (); using std::exit;' \
11784 'extern "C" void std::exit (int); using std::exit;' \
11785 'extern "C" void exit (int) throw ();' \
11786 'extern "C" void exit (int);' \
11787 'void exit (int);'
11788do
11789 cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
de59c161 11795$ac_declaration
ac1cb8d3 11796#include <stdlib.h>
a848cd7e
SC
11797int
11798main ()
11799{
11800exit (42);
11801 ;
11802 return 0;
11803}
11804_ACEOF
11805rm -f conftest.$ac_objext
11806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11807 (eval $ac_compile) 2>conftest.er1
a848cd7e 11808 ac_status=$?
ac1cb8d3
VS
11809 grep -v '^ *+' conftest.er1 >conftest.err
11810 rm -f conftest.er1
11811 cat conftest.err >&5
a848cd7e
SC
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
b48a2016
DE
11814 { ac_try='test -z "$ac_cxx_werror_flag"
11815 || test ! -s conftest.err'
ac1cb8d3
VS
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 :
11828else
11829 echo "$as_me: failed program was:" >&5
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
11832continue
11833fi
ac1cb8d3 11834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11835 cat >conftest.$ac_ext <<_ACEOF
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
11841$ac_declaration
11842int
11843main ()
11844{
11845exit (42);
11846 ;
11847 return 0;
11848}
11849_ACEOF
11850rm -f conftest.$ac_objext
11851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11852 (eval $ac_compile) 2>conftest.er1
a848cd7e 11853 ac_status=$?
ac1cb8d3
VS
11854 grep -v '^ *+' conftest.er1 >conftest.err
11855 rm -f conftest.er1
11856 cat conftest.err >&5
a848cd7e
SC
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
b48a2016
DE
11859 { ac_try='test -z "$ac_cxx_werror_flag"
11860 || test ! -s conftest.err'
ac1cb8d3
VS
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; } &&
11866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; }; then
11872 break
11873else
11874 echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
11876
11877fi
ac1cb8d3 11878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11879done
11880rm -f conftest*
11881if test -n "$ac_declaration"; then
11882 echo '#ifdef __cplusplus' >>confdefs.h
11883 echo $ac_declaration >>confdefs.h
11884 echo '#endif' >>confdefs.h
11885fi
11886
11887ac_ext=cc
11888ac_cpp='$CXXCPP $CPPFLAGS'
11889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11892
11893
11894ac_ext=c
11895ac_cpp='$CPP $CPPFLAGS'
11896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11898ac_compiler_gnu=$ac_cv_c_compiler_gnu
11899
11900
a848cd7e
SC
11901if test -n "$ac_tool_prefix"; then
11902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11903set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11904echo "$as_me:$LINENO: checking for $ac_word" >&5
11905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11906if test "${ac_cv_prog_RANLIB+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 if test -n "$RANLIB"; then
11910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11911else
11912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913for as_dir in $PATH
11914do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923done
11924done
11925
11926fi
11927fi
11928RANLIB=$ac_cv_prog_RANLIB
11929if test -n "$RANLIB"; then
11930 echo "$as_me:$LINENO: result: $RANLIB" >&5
11931echo "${ECHO_T}$RANLIB" >&6
11932else
11933 echo "$as_me:$LINENO: result: no" >&5
11934echo "${ECHO_T}no" >&6
11935fi
11936
11937fi
11938if test -z "$ac_cv_prog_RANLIB"; then
11939 ac_ct_RANLIB=$RANLIB
11940 # Extract the first word of "ranlib", so it can be a program name with args.
11941set dummy ranlib; ac_word=$2
11942echo "$as_me:$LINENO: checking for $ac_word" >&5
11943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11944if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946else
11947 if test -n "$ac_ct_RANLIB"; then
11948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11949else
11950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951for as_dir in $PATH
11952do
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11957 ac_cv_prog_ac_ct_RANLIB="ranlib"
11958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11959 break 2
11960 fi
11961done
11962done
11963
11964 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11965fi
11966fi
11967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11968if test -n "$ac_ct_RANLIB"; then
11969 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11970echo "${ECHO_T}$ac_ct_RANLIB" >&6
11971else
11972 echo "$as_me:$LINENO: result: no" >&5
11973echo "${ECHO_T}no" >&6
11974fi
11975
11976 RANLIB=$ac_ct_RANLIB
11977else
11978 RANLIB="$ac_cv_prog_RANLIB"
11979fi
11980
11981
11982# Extract the first word of "ar", so it can be a program name with args.
11983set dummy ar; ac_word=$2
11984echo "$as_me:$LINENO: checking for $ac_word" >&5
11985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11986if test "${ac_cv_prog_AR+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11988else
11989 if test -n "$AR"; then
11990 ac_cv_prog_AR="$AR" # Let the user override the test.
11991else
11992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993for as_dir in $PATH
11994do
11995 IFS=$as_save_IFS
11996 test -z "$as_dir" && as_dir=.
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11999 ac_cv_prog_AR="ar"
12000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12001 break 2
12002 fi
12003done
12004done
12005
12006fi
12007fi
12008AR=$ac_cv_prog_AR
12009if test -n "$AR"; then
12010 echo "$as_me:$LINENO: result: $AR" >&5
12011echo "${ECHO_T}$AR" >&6
12012else
12013 echo "$as_me:$LINENO: result: no" >&5
12014echo "${ECHO_T}no" >&6
12015fi
12016
12017if test "x$AR" = "x" ; then
77ffb593
JS
12018 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12019echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12020 { (exit 1); exit 1; }; }
12021fi
12022
12023# Find a good install program. We prefer a C program (faster),
12024# so one script is as good as another. But avoid the broken or
12025# incompatible versions:
12026# SysV /etc/install, /usr/sbin/install
12027# SunOS /usr/etc/install
12028# IRIX /sbin/install
12029# AIX /bin/install
12030# AmigaOS /C/install, which installs bootblocks on floppy discs
12031# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12032# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12033# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12034# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12035# ./install, which can be erroneously created by make from ./install.sh.
12036echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12037echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12038if test -z "$INSTALL"; then
12039if test "${ac_cv_path_install+set}" = set; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12041else
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043for as_dir in $PATH
12044do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
12047 # Account for people who put trailing slashes in PATH elements.
12048case $as_dir/ in
12049 ./ | .// | /cC/* | \
12050 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12051 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12052 /usr/ucb/* ) ;;
12053 *)
12054 # OSF1 and SCO ODT 3.0 have their own names for install.
12055 # Don't use installbsd from OSF since it installs stuff as root
12056 # by default.
12057 for ac_prog in ginstall scoinst install; do
12058 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12059 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12060 if test $ac_prog = install &&
12061 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12062 # AIX install. It has an incompatible calling convention.
12063 :
12064 elif test $ac_prog = install &&
12065 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12066 # program-specific install script used by HP pwplus--don't use.
12067 :
12068 else
12069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12070 break 3
12071 fi
12072 fi
a848cd7e
SC
12073 done
12074 done
12075 ;;
12076esac
12077done
12078
12079
12080fi
12081 if test "${ac_cv_path_install+set}" = set; then
12082 INSTALL=$ac_cv_path_install
12083 else
12084 # As a last resort, use the slow shell script. We don't cache a
12085 # path for INSTALL within a source directory, because that will
12086 # break other packages using the cache if that directory is
12087 # removed, or if the path is relative.
12088 INSTALL=$ac_install_sh
12089 fi
12090fi
12091echo "$as_me:$LINENO: result: $INSTALL" >&5
12092echo "${ECHO_T}$INSTALL" >&6
12093
12094# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12095# It thinks the first close brace ends the variable substitution.
12096test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12097
12098test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12099
12100test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12101
12102
12103case ${INSTALL} in
12104 /* ) # Absolute
12105 ;;
12106 ?:* ) # Drive letter, considered as absolute.
12107 ;;
12108 *)
12109 INSTALL=`pwd`/${INSTALL} ;;
12110esac
12111
a848cd7e
SC
12112
12113case "${host}" in
12114
12115 powerpc-*-darwin* )
12116 INSTALL_PROGRAM="cp -fp"
12117 INSTALL_DATA="cp -fp"
12118 ;;
12119 *)
12120 ;;
12121esac
12122
12123# Extract the first word of "strip", so it can be a program name with args.
12124set dummy strip; ac_word=$2
12125echo "$as_me:$LINENO: checking for $ac_word" >&5
12126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12127if test "${ac_cv_prog_STRIP+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12129else
12130 if test -n "$STRIP"; then
12131 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12132else
12133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134for as_dir in $PATH
12135do
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12140 ac_cv_prog_STRIP="strip"
12141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 break 2
12143 fi
12144done
12145done
12146
12147 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12148fi
12149fi
12150STRIP=$ac_cv_prog_STRIP
12151if test -n "$STRIP"; then
12152 echo "$as_me:$LINENO: result: $STRIP" >&5
12153echo "${ECHO_T}$STRIP" >&6
12154else
12155 echo "$as_me:$LINENO: result: no" >&5
12156echo "${ECHO_T}no" >&6
12157fi
12158
12159
12160echo "$as_me:$LINENO: checking if make is GNU make" >&5
12161echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12162if test "${wx_cv_prog_makeisgnu+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12164else
12165
12166 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12167 egrep -s GNU > /dev/null); then
12168 wx_cv_prog_makeisgnu="yes"
12169 else
12170 wx_cv_prog_makeisgnu="no"
12171 fi
12172
12173fi
12174echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12175echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12176
12177if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12178 IF_GNU_MAKE=""
12179else
12180 IF_GNU_MAKE="#"
12181fi
12182
12183
12184
12185if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12186echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12187echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12188if test "${wx_cv_prog_makevpath+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190else
12191
12192cat - << EOF > confMake
12193check : file
12194 cp \$? \$@
12195 cp \$? final_file
12196EOF
12197
12198if test ! -d sub ; then
12199 mkdir sub
12200fi
12201echo dummy > sub/file
12202${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12203RESULT=$?
12204rm -f sub/file check final_file confMake
12205rmdir sub
12206if test "$RESULT" = 0; then
12207 wx_cv_prog_makevpath="yes"
12208else
12209 wx_cv_prog_makevpath="no"
12210fi
12211
12212fi
12213echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12214echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12215
12216if test "x$wx_cv_prog_makevpath" != "xyes"; then
12217{ { echo "$as_me:$LINENO: error:
12218You need a make-utility that is able to use the variable
12219VPATH correctly.
12220If your version of make does not support VPATH correctly,
12221please install GNU-make (possibly as gmake), and start
12222configure with the following command:
12223export MAKE=gmake; ./configure for sh-type shells
12224setenv MAKE gmake; ./configure for csh-type shells
12225Also please do remember to use gmake in this case every time
12226you are trying to compile.
12227" >&5
12228echo "$as_me: error:
12229You need a make-utility that is able to use the variable
12230VPATH correctly.
12231If your version of make does not support VPATH correctly,
12232please install GNU-make (possibly as gmake), and start
12233configure with the following command:
12234export MAKE=gmake; ./configure for sh-type shells
12235setenv MAKE gmake; ./configure for csh-type shells
12236Also please do remember to use gmake in this case every time
12237you are trying to compile.
12238" >&2;}
12239 { (exit 1); exit 1; }; }
12240fi fi
12241echo "$as_me:$LINENO: checking whether ln -s works" >&5
12242echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12243LN_S=$as_ln_s
12244if test "$LN_S" = "ln -s"; then
12245 echo "$as_me:$LINENO: result: yes" >&5
12246echo "${ECHO_T}yes" >&6
12247else
12248 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12249echo "${ECHO_T}no, using $LN_S" >&6
12250fi
12251
12252
12253
12254case "${host}" in
12255 *-pc-os2_emx | *-pc-os2-emx )
12256 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12257 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12258echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12259if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12261else
12262 ac_check_lib_save_LIBS=$LIBS
12263LIBS="-lcExt $LIBS"
12264cat >conftest.$ac_ext <<_ACEOF
12265/* confdefs.h. */
12266_ACEOF
12267cat confdefs.h >>conftest.$ac_ext
12268cat >>conftest.$ac_ext <<_ACEOF
12269/* end confdefs.h. */
12270
12271/* Override any gcc2 internal prototype to avoid an error. */
12272#ifdef __cplusplus
12273extern "C"
12274#endif
12275/* We use char because int might match the return type of a gcc2
12276 builtin and then its argument prototype would still apply. */
12277char drand48 ();
12278int
12279main ()
12280{
12281drand48 ();
12282 ;
12283 return 0;
12284}
12285_ACEOF
12286rm -f conftest.$ac_objext conftest$ac_exeext
12287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12288 (eval $ac_link) 2>conftest.er1
a848cd7e 12289 ac_status=$?
ac1cb8d3
VS
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
a848cd7e
SC
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
b48a2016
DE
12295 { ac_try='test -z "$ac_c_werror_flag"
12296 || test ! -s conftest.err'
ac1cb8d3
VS
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_lib_cExt_drand48=yes
12309else
12310 echo "$as_me: failed program was:" >&5
12311sed 's/^/| /' conftest.$ac_ext >&5
12312
12313ac_cv_lib_cExt_drand48=no
12314fi
ac1cb8d3
VS
12315rm -f conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12317LIBS=$ac_check_lib_save_LIBS
12318fi
12319echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12320echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12321if test $ac_cv_lib_cExt_drand48 = yes; then
12322 LIBS="$LIBS -lcExt"
12323fi
12324
12325 else
12326 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12327 fi
12328 echo "$as_me:$LINENO: checking for gcc version" >&5
12329echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12330if test "${wx_cv_gccversion+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12332else
12333
12334 cat >conftest.$ac_ext <<_ACEOF
12335/* confdefs.h. */
12336_ACEOF
12337cat confdefs.h >>conftest.$ac_ext
12338cat >>conftest.$ac_ext <<_ACEOF
12339/* end confdefs.h. */
12340
12341int
12342main ()
12343{
12344
12345 #if (__GNUC__ < 3)
12346 #error old gcc
12347 #endif
12348
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext
12354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12355 (eval $ac_compile) 2>conftest.er1
a848cd7e 12356 ac_status=$?
ac1cb8d3
VS
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
a848cd7e
SC
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
b48a2016
DE
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
ac1cb8d3
VS
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375
12376 cat >conftest.$ac_ext <<_ACEOF
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
12382
12383int
12384main ()
12385{
12386
12387 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12388 #error intermediate gcc
12389 #endif
12390
12391 ;
12392 return 0;
12393}
12394_ACEOF
12395rm -f conftest.$ac_objext
12396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12397 (eval $ac_compile) 2>conftest.er1
a848cd7e 12398 ac_status=$?
ac1cb8d3
VS
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
a848cd7e
SC
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
b48a2016
DE
12404 { ac_try='test -z "$ac_c_werror_flag"
12405 || test ! -s conftest.err'
ac1cb8d3
VS
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417
12418 wx_cv_gccversion=Innotek
12419
12420else
12421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
12424
12425 wx_cv_gccversion=3
12426
12427
12428fi
ac1cb8d3 12429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12430
12431else
12432 echo "$as_me: failed program was:" >&5
12433sed 's/^/| /' conftest.$ac_ext >&5
12434
12435
12436 wx_cv_gccversion=2
12437
12438
12439fi
ac1cb8d3 12440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12441
12442fi
12443echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12444echo "${ECHO_T}$wx_cv_gccversion" >&6
12445 if test "$wx_cv_gccversion" = "2"; then
12446 LIBS="$LIBS -lstdcpp"
12447 LDFLAGS="$LDFLAGS -Zsysv-signals"
12448 else
12449 if test "$wx_cv_gccversion" = "3"; then
12450 LIBS="$LIBS -lstdcxx"
12451 LDFLAGS="$LDFLAGS -Zsysv-signals"
12452 else
12453 LIBS="$LIBS -lstdc++"
12454 fi
12455 fi
12456 if test "$wxUSE_OMF" = "yes"; then
de59c161 12457 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12458 fi
12459 ;;
12460 *)
12461
12462
12463
12464 ac_ext=cc
12465ac_cpp='$CXXCPP $CPPFLAGS'
12466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12469
12470
12471
12472echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12473echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12474if test "${ac_cv_string_strcasecmp+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476else
12477
12478 cat >conftest.$ac_ext <<_ACEOF
12479/* confdefs.h. */
12480_ACEOF
12481cat confdefs.h >>conftest.$ac_ext
12482cat >>conftest.$ac_ext <<_ACEOF
12483/* end confdefs.h. */
12484
12485 #include <string.h>
12486
12487int
12488main ()
12489{
12490
12491 strcasecmp("foo", "bar");
12492
12493 ;
12494 return 0;
12495}
12496_ACEOF
12497rm -f conftest.$ac_objext conftest$ac_exeext
12498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12499 (eval $ac_link) 2>conftest.er1
a848cd7e 12500 ac_status=$?
ac1cb8d3
VS
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
a848cd7e
SC
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
b48a2016
DE
12506 { ac_try='test -z "$ac_cxx_werror_flag"
12507 || test ! -s conftest.err'
ac1cb8d3
VS
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
12519 ac_cv_string_strcasecmp=yes
12520else
12521 echo "$as_me: failed program was:" >&5
12522sed 's/^/| /' conftest.$ac_ext >&5
12523
12524ac_cv_string_strcasecmp=no
12525
12526fi
ac1cb8d3
VS
12527rm -f conftest.err conftest.$ac_objext \
12528 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12529
12530fi
12531echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12532echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12533
12534 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12535 cat >>confdefs.h <<\_ACEOF
12536#define HAVE_STRCASECMP_IN_STRING_H 1
12537_ACEOF
12538
12539 else
12540 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12541echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12542if test "${ac_cv_strings_strcasecmp+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12544else
12545
12546 cat >conftest.$ac_ext <<_ACEOF
12547/* confdefs.h. */
12548_ACEOF
12549cat confdefs.h >>conftest.$ac_ext
12550cat >>conftest.$ac_ext <<_ACEOF
12551/* end confdefs.h. */
12552
12553 #include <strings.h>
12554
12555int
12556main ()
12557{
12558
12559 strcasecmp("foo", "bar");
12560
12561 ;
12562 return 0;
12563}
12564_ACEOF
12565rm -f conftest.$ac_objext conftest$ac_exeext
12566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12567 (eval $ac_link) 2>conftest.er1
a848cd7e 12568 ac_status=$?
ac1cb8d3
VS
12569 grep -v '^ *+' conftest.er1 >conftest.err
12570 rm -f conftest.er1
12571 cat conftest.err >&5
a848cd7e
SC
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
b48a2016
DE
12574 { ac_try='test -z "$ac_cxx_werror_flag"
12575 || test ! -s conftest.err'
ac1cb8d3
VS
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 ac_cv_strings_strcasecmp=yes
12588else
12589 echo "$as_me: failed program was:" >&5
12590sed 's/^/| /' conftest.$ac_ext >&5
12591
12592ac_cv_strings_strcasecmp=no
12593
12594fi
ac1cb8d3
VS
12595rm -f conftest.err conftest.$ac_objext \
12596 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12597
12598fi
12599echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12600echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12601
0c3c69fc 12602 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12603 cat >>confdefs.h <<\_ACEOF
12604#define HAVE_STRCASECMP_IN_STRINGS_H 1
12605_ACEOF
12606
12607 else
12608 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12609echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12610 { (exit 1); exit 1; }; }
12611 fi
12612 fi
12613
12614 ac_ext=c
12615ac_cpp='$CPP $CPPFLAGS'
12616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12618ac_compiler_gnu=$ac_cv_c_compiler_gnu
12619
12620 ;;
12621esac
12622
12623
12624echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12625echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12626if test "${ac_cv_header_stdc+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12628else
12629 cat >conftest.$ac_ext <<_ACEOF
12630/* confdefs.h. */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
12634/* end confdefs.h. */
12635#include <stdlib.h>
12636#include <stdarg.h>
12637#include <string.h>
12638#include <float.h>
12639
12640int
12641main ()
12642{
12643
12644 ;
12645 return 0;
12646}
12647_ACEOF
12648rm -f conftest.$ac_objext
12649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12650 (eval $ac_compile) 2>conftest.er1
a848cd7e 12651 ac_status=$?
ac1cb8d3
VS
12652 grep -v '^ *+' conftest.er1 >conftest.err
12653 rm -f conftest.er1
12654 cat conftest.err >&5
a848cd7e
SC
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } &&
b48a2016
DE
12657 { ac_try='test -z "$ac_c_werror_flag"
12658 || test ! -s conftest.err'
ac1cb8d3
VS
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; } &&
12664 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12670 ac_cv_header_stdc=yes
12671else
12672 echo "$as_me: failed program was:" >&5
12673sed 's/^/| /' conftest.$ac_ext >&5
12674
12675ac_cv_header_stdc=no
12676fi
ac1cb8d3 12677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12678
12679if test $ac_cv_header_stdc = yes; then
12680 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12681 cat >conftest.$ac_ext <<_ACEOF
12682/* confdefs.h. */
12683_ACEOF
12684cat confdefs.h >>conftest.$ac_ext
12685cat >>conftest.$ac_ext <<_ACEOF
12686/* end confdefs.h. */
12687#include <string.h>
12688
12689_ACEOF
12690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12691 $EGREP "memchr" >/dev/null 2>&1; then
12692 :
12693else
12694 ac_cv_header_stdc=no
12695fi
12696rm -f conftest*
12697
12698fi
12699
12700if test $ac_cv_header_stdc = yes; then
12701 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12702 cat >conftest.$ac_ext <<_ACEOF
12703/* confdefs.h. */
12704_ACEOF
12705cat confdefs.h >>conftest.$ac_ext
12706cat >>conftest.$ac_ext <<_ACEOF
12707/* end confdefs.h. */
12708#include <stdlib.h>
12709
12710_ACEOF
12711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12712 $EGREP "free" >/dev/null 2>&1; then
12713 :
12714else
12715 ac_cv_header_stdc=no
12716fi
12717rm -f conftest*
12718
12719fi
12720
12721if test $ac_cv_header_stdc = yes; then
12722 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12723 if test "$cross_compiling" = yes; then
12724 :
12725else
12726 cat >conftest.$ac_ext <<_ACEOF
12727/* confdefs.h. */
12728_ACEOF
12729cat confdefs.h >>conftest.$ac_ext
12730cat >>conftest.$ac_ext <<_ACEOF
12731/* end confdefs.h. */
12732#include <ctype.h>
12733#if ((' ' & 0x0FF) == 0x020)
12734# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12735# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12736#else
12737# define ISLOWER(c) \
ac1cb8d3
VS
12738 (('a' <= (c) && (c) <= 'i') \
12739 || ('j' <= (c) && (c) <= 'r') \
12740 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12741# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12742#endif
12743
12744#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12745int
12746main ()
12747{
12748 int i;
12749 for (i = 0; i < 256; i++)
12750 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12751 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12752 exit(2);
12753 exit (0);
12754}
12755_ACEOF
12756rm -f conftest$ac_exeext
12757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12758 (eval $ac_link) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 :
12768else
12769 echo "$as_me: program exited with status $ac_status" >&5
12770echo "$as_me: failed program was:" >&5
12771sed 's/^/| /' conftest.$ac_ext >&5
12772
12773( exit $ac_status )
12774ac_cv_header_stdc=no
12775fi
ac1cb8d3 12776rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12777fi
12778fi
12779fi
12780echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12781echo "${ECHO_T}$ac_cv_header_stdc" >&6
12782if test $ac_cv_header_stdc = yes; then
12783
12784cat >>confdefs.h <<\_ACEOF
12785#define STDC_HEADERS 1
12786_ACEOF
12787
12788fi
12789
12790# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12801 inttypes.h stdint.h unistd.h
a848cd7e
SC
12802do
12803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12804echo "$as_me:$LINENO: checking for $ac_header" >&5
12805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12806if eval "test \"\${$as_ac_Header+set}\" = set"; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808else
12809 cat >conftest.$ac_ext <<_ACEOF
12810/* confdefs.h. */
12811_ACEOF
12812cat confdefs.h >>conftest.$ac_ext
12813cat >>conftest.$ac_ext <<_ACEOF
12814/* end confdefs.h. */
12815$ac_includes_default
12816
12817#include <$ac_header>
12818_ACEOF
12819rm -f conftest.$ac_objext
12820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12821 (eval $ac_compile) 2>conftest.er1
a848cd7e 12822 ac_status=$?
ac1cb8d3
VS
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
a848cd7e
SC
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
b48a2016
DE
12828 { ac_try='test -z "$ac_c_werror_flag"
12829 || test ! -s conftest.err'
ac1cb8d3
VS
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; } &&
12835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 eval "$as_ac_Header=yes"
12842else
12843 echo "$as_me: failed program was:" >&5
12844sed 's/^/| /' conftest.$ac_ext >&5
12845
12846eval "$as_ac_Header=no"
12847fi
ac1cb8d3 12848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12849fi
12850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12852if test `eval echo '${'$as_ac_Header'}'` = yes; then
12853 cat >>confdefs.h <<_ACEOF
12854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12855_ACEOF
12856
12857fi
12858
12859done
12860
12861
12862
12863for ac_header in stdlib.h
12864do
12865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12866if eval "test \"\${$as_ac_Header+set}\" = set"; then
12867 echo "$as_me:$LINENO: checking for $ac_header" >&5
12868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12869if eval "test \"\${$as_ac_Header+set}\" = set"; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871fi
12872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12874else
12875 # Is the header compilable?
12876echo "$as_me:$LINENO: checking $ac_header usability" >&5
12877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12878cat >conftest.$ac_ext <<_ACEOF
12879/* confdefs.h. */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h. */
12884$ac_includes_default
12885#include <$ac_header>
12886_ACEOF
12887rm -f conftest.$ac_objext
12888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12889 (eval $ac_compile) 2>conftest.er1
a848cd7e 12890 ac_status=$?
ac1cb8d3
VS
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
a848cd7e
SC
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
b48a2016
DE
12896 { ac_try='test -z "$ac_c_werror_flag"
12897 || test ! -s conftest.err'
ac1cb8d3
VS
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_header_compiler=yes
12910else
12911 echo "$as_me: failed program was:" >&5
12912sed 's/^/| /' conftest.$ac_ext >&5
12913
12914ac_header_compiler=no
12915fi
ac1cb8d3 12916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12917echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12918echo "${ECHO_T}$ac_header_compiler" >&6
12919
12920# Is the header present?
12921echo "$as_me:$LINENO: checking $ac_header presence" >&5
12922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12923cat >conftest.$ac_ext <<_ACEOF
12924/* confdefs.h. */
12925_ACEOF
12926cat confdefs.h >>conftest.$ac_ext
12927cat >>conftest.$ac_ext <<_ACEOF
12928/* end confdefs.h. */
12929#include <$ac_header>
12930_ACEOF
12931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } >/dev/null; then
12939 if test -s conftest.err; then
12940 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12942 else
12943 ac_cpp_err=
12944 fi
12945else
12946 ac_cpp_err=yes
12947fi
12948if test -z "$ac_cpp_err"; then
12949 ac_header_preproc=yes
12950else
12951 echo "$as_me: failed program was:" >&5
12952sed 's/^/| /' conftest.$ac_ext >&5
12953
12954 ac_header_preproc=no
12955fi
12956rm -f conftest.err conftest.$ac_ext
12957echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12958echo "${ECHO_T}$ac_header_preproc" >&6
12959
12960# So? What about this header?
ac1cb8d3
VS
12961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12962 yes:no: )
a848cd7e
SC
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12964echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12966echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12967 ac_header_preproc=yes
a848cd7e 12968 ;;
ac1cb8d3 12969 no:yes:* )
a848cd7e
SC
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12973echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12975echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12977echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12979echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12981echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12982 (
12983 cat <<\_ASBOX
ac1cb8d3
VS
12984## ----------------------------------------- ##
12985## Report this to wx-dev@lists.wxwidgets.org ##
12986## ----------------------------------------- ##
a848cd7e
SC
12987_ASBOX
12988 ) |
12989 sed "s/^/$as_me: WARNING: /" >&2
12990 ;;
12991esac
12992echo "$as_me:$LINENO: checking for $ac_header" >&5
12993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12994if eval "test \"\${$as_ac_Header+set}\" = set"; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
ac1cb8d3 12997 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12998fi
12999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13001
13002fi
13003if test `eval echo '${'$as_ac_Header'}'` = yes; then
13004 cat >>confdefs.h <<_ACEOF
13005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13006_ACEOF
13007
13008fi
13009
13010done
13011
13012
13013for ac_header in malloc.h
13014do
13015as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13016if eval "test \"\${$as_ac_Header+set}\" = set"; then
13017 echo "$as_me:$LINENO: checking for $ac_header" >&5
13018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13019if eval "test \"\${$as_ac_Header+set}\" = set"; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021fi
13022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13023echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13024else
13025 # Is the header compilable?
13026echo "$as_me:$LINENO: checking $ac_header usability" >&5
13027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13028cat >conftest.$ac_ext <<_ACEOF
13029/* confdefs.h. */
13030_ACEOF
13031cat confdefs.h >>conftest.$ac_ext
13032cat >>conftest.$ac_ext <<_ACEOF
13033/* end confdefs.h. */
13034$ac_includes_default
13035#include <$ac_header>
13036_ACEOF
13037rm -f conftest.$ac_objext
13038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13039 (eval $ac_compile) 2>conftest.er1
a848cd7e 13040 ac_status=$?
ac1cb8d3
VS
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
a848cd7e
SC
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
b48a2016
DE
13046 { ac_try='test -z "$ac_c_werror_flag"
13047 || test ! -s conftest.err'
ac1cb8d3
VS
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } &&
13053 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_header_compiler=yes
13060else
13061 echo "$as_me: failed program was:" >&5
13062sed 's/^/| /' conftest.$ac_ext >&5
13063
13064ac_header_compiler=no
13065fi
ac1cb8d3 13066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13067echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13068echo "${ECHO_T}$ac_header_compiler" >&6
13069
13070# Is the header present?
13071echo "$as_me:$LINENO: checking $ac_header presence" >&5
13072echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13073cat >conftest.$ac_ext <<_ACEOF
13074/* confdefs.h. */
13075_ACEOF
13076cat confdefs.h >>conftest.$ac_ext
13077cat >>conftest.$ac_ext <<_ACEOF
13078/* end confdefs.h. */
13079#include <$ac_header>
13080_ACEOF
13081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } >/dev/null; then
13089 if test -s conftest.err; then
13090 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13092 else
13093 ac_cpp_err=
13094 fi
13095else
13096 ac_cpp_err=yes
13097fi
13098if test -z "$ac_cpp_err"; then
13099 ac_header_preproc=yes
13100else
13101 echo "$as_me: failed program was:" >&5
13102sed 's/^/| /' conftest.$ac_ext >&5
13103
13104 ac_header_preproc=no
13105fi
13106rm -f conftest.err conftest.$ac_ext
13107echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13108echo "${ECHO_T}$ac_header_preproc" >&6
13109
13110# So? What about this header?
ac1cb8d3
VS
13111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13112 yes:no: )
a848cd7e
SC
13113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13114echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13116echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13117 ac_header_preproc=yes
a848cd7e 13118 ;;
ac1cb8d3 13119 no:yes:* )
a848cd7e
SC
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13121echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13123echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13125echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13127echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13129echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13131echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13132 (
13133 cat <<\_ASBOX
ac1cb8d3
VS
13134## ----------------------------------------- ##
13135## Report this to wx-dev@lists.wxwidgets.org ##
13136## ----------------------------------------- ##
a848cd7e
SC
13137_ASBOX
13138 ) |
13139 sed "s/^/$as_me: WARNING: /" >&2
13140 ;;
13141esac
13142echo "$as_me:$LINENO: checking for $ac_header" >&5
13143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13144if eval "test \"\${$as_ac_Header+set}\" = set"; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13146else
ac1cb8d3 13147 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13148fi
13149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13150echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13151
13152fi
13153if test `eval echo '${'$as_ac_Header'}'` = yes; then
13154 cat >>confdefs.h <<_ACEOF
13155#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13156_ACEOF
13157
13158fi
13159
13160done
13161
13162
13163for ac_header in unistd.h
13164do
13165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13166if eval "test \"\${$as_ac_Header+set}\" = set"; then
13167 echo "$as_me:$LINENO: checking for $ac_header" >&5
13168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13169if eval "test \"\${$as_ac_Header+set}\" = set"; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13171fi
13172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13174else
13175 # Is the header compilable?
13176echo "$as_me:$LINENO: checking $ac_header usability" >&5
13177echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13178cat >conftest.$ac_ext <<_ACEOF
13179/* confdefs.h. */
13180_ACEOF
13181cat confdefs.h >>conftest.$ac_ext
13182cat >>conftest.$ac_ext <<_ACEOF
13183/* end confdefs.h. */
13184$ac_includes_default
13185#include <$ac_header>
13186_ACEOF
13187rm -f conftest.$ac_objext
13188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13189 (eval $ac_compile) 2>conftest.er1
a848cd7e 13190 ac_status=$?
ac1cb8d3
VS
13191 grep -v '^ *+' conftest.er1 >conftest.err
13192 rm -f conftest.er1
13193 cat conftest.err >&5
a848cd7e
SC
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
b48a2016
DE
13196 { ac_try='test -z "$ac_c_werror_flag"
13197 || test ! -s conftest.err'
ac1cb8d3
VS
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; } &&
13203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; }; then
13209 ac_header_compiler=yes
13210else
13211 echo "$as_me: failed program was:" >&5
13212sed 's/^/| /' conftest.$ac_ext >&5
13213
13214ac_header_compiler=no
13215fi
ac1cb8d3 13216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13218echo "${ECHO_T}$ac_header_compiler" >&6
13219
13220# Is the header present?
13221echo "$as_me:$LINENO: checking $ac_header presence" >&5
13222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13223cat >conftest.$ac_ext <<_ACEOF
13224/* confdefs.h. */
13225_ACEOF
13226cat confdefs.h >>conftest.$ac_ext
13227cat >>conftest.$ac_ext <<_ACEOF
13228/* end confdefs.h. */
13229#include <$ac_header>
13230_ACEOF
13231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13233 ac_status=$?
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } >/dev/null; then
13239 if test -s conftest.err; then
13240 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13242 else
13243 ac_cpp_err=
13244 fi
13245else
13246 ac_cpp_err=yes
13247fi
13248if test -z "$ac_cpp_err"; then
13249 ac_header_preproc=yes
13250else
13251 echo "$as_me: failed program was:" >&5
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 ac_header_preproc=no
13255fi
13256rm -f conftest.err conftest.$ac_ext
13257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13258echo "${ECHO_T}$ac_header_preproc" >&6
13259
13260# So? What about this header?
ac1cb8d3
VS
13261case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13262 yes:no: )
a848cd7e
SC
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13266echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13267 ac_header_preproc=yes
a848cd7e 13268 ;;
ac1cb8d3 13269 no:yes:* )
a848cd7e
SC
13270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13273echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13275echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13277echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13281echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13282 (
13283 cat <<\_ASBOX
ac1cb8d3
VS
13284## ----------------------------------------- ##
13285## Report this to wx-dev@lists.wxwidgets.org ##
13286## ----------------------------------------- ##
a848cd7e
SC
13287_ASBOX
13288 ) |
13289 sed "s/^/$as_me: WARNING: /" >&2
13290 ;;
13291esac
13292echo "$as_me:$LINENO: checking for $ac_header" >&5
13293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13294if eval "test \"\${$as_ac_Header+set}\" = set"; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13296else
ac1cb8d3 13297 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13298fi
13299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13301
13302fi
13303if test `eval echo '${'$as_ac_Header'}'` = yes; then
13304 cat >>confdefs.h <<_ACEOF
13305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13306_ACEOF
13307
13308fi
13309
13310done
13311
13312
13313for ac_header in wchar.h
13314do
13315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13316if eval "test \"\${$as_ac_Header+set}\" = set"; then
13317 echo "$as_me:$LINENO: checking for $ac_header" >&5
13318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13319if eval "test \"\${$as_ac_Header+set}\" = set"; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321fi
13322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13324else
13325 # Is the header compilable?
13326echo "$as_me:$LINENO: checking $ac_header usability" >&5
13327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13328cat >conftest.$ac_ext <<_ACEOF
13329/* confdefs.h. */
13330_ACEOF
13331cat confdefs.h >>conftest.$ac_ext
13332cat >>conftest.$ac_ext <<_ACEOF
13333/* end confdefs.h. */
13334$ac_includes_default
13335#include <$ac_header>
13336_ACEOF
13337rm -f conftest.$ac_objext
13338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13339 (eval $ac_compile) 2>conftest.er1
a848cd7e 13340 ac_status=$?
ac1cb8d3
VS
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
a848cd7e
SC
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
b48a2016
DE
13346 { ac_try='test -z "$ac_c_werror_flag"
13347 || test ! -s conftest.err'
ac1cb8d3
VS
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; } &&
13353 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355 (eval $ac_try) 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 ac_header_compiler=yes
13360else
13361 echo "$as_me: failed program was:" >&5
13362sed 's/^/| /' conftest.$ac_ext >&5
13363
13364ac_header_compiler=no
13365fi
ac1cb8d3 13366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13367echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13368echo "${ECHO_T}$ac_header_compiler" >&6
13369
13370# Is the header present?
13371echo "$as_me:$LINENO: checking $ac_header presence" >&5
13372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13373cat >conftest.$ac_ext <<_ACEOF
13374/* confdefs.h. */
13375_ACEOF
13376cat confdefs.h >>conftest.$ac_ext
13377cat >>conftest.$ac_ext <<_ACEOF
13378/* end confdefs.h. */
13379#include <$ac_header>
13380_ACEOF
13381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13383 ac_status=$?
13384 grep -v '^ *+' conftest.er1 >conftest.err
13385 rm -f conftest.er1
13386 cat conftest.err >&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } >/dev/null; then
13389 if test -s conftest.err; then
13390 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13392 else
13393 ac_cpp_err=
13394 fi
13395else
13396 ac_cpp_err=yes
13397fi
13398if test -z "$ac_cpp_err"; then
13399 ac_header_preproc=yes
13400else
13401 echo "$as_me: failed program was:" >&5
13402sed 's/^/| /' conftest.$ac_ext >&5
13403
13404 ac_header_preproc=no
13405fi
13406rm -f conftest.err conftest.$ac_ext
13407echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13408echo "${ECHO_T}$ac_header_preproc" >&6
13409
13410# So? What about this header?
ac1cb8d3
VS
13411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13412 yes:no: )
a848cd7e
SC
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13414echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13416echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13417 ac_header_preproc=yes
a848cd7e 13418 ;;
ac1cb8d3 13419 no:yes:* )
a848cd7e
SC
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13425echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13427echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13431echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13432 (
13433 cat <<\_ASBOX
ac1cb8d3
VS
13434## ----------------------------------------- ##
13435## Report this to wx-dev@lists.wxwidgets.org ##
13436## ----------------------------------------- ##
a848cd7e
SC
13437_ASBOX
13438 ) |
13439 sed "s/^/$as_me: WARNING: /" >&2
13440 ;;
13441esac
13442echo "$as_me:$LINENO: checking for $ac_header" >&5
13443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13444if eval "test \"\${$as_ac_Header+set}\" = set"; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13446else
ac1cb8d3 13447 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13448fi
13449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13451
13452fi
13453if test `eval echo '${'$as_ac_Header'}'` = yes; then
13454 cat >>confdefs.h <<_ACEOF
13455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13456_ACEOF
13457
13458fi
13459
13460done
13461
13462
13463if test "$ac_cv_header_wchar_h" != "yes"; then
13464
13465for ac_header in wcstr.h
13466do
13467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13468if eval "test \"\${$as_ac_Header+set}\" = set"; then
13469 echo "$as_me:$LINENO: checking for $ac_header" >&5
13470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13471if eval "test \"\${$as_ac_Header+set}\" = set"; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13473fi
13474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13476else
13477 # Is the header compilable?
13478echo "$as_me:$LINENO: checking $ac_header usability" >&5
13479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13480cat >conftest.$ac_ext <<_ACEOF
13481/* confdefs.h. */
13482_ACEOF
13483cat confdefs.h >>conftest.$ac_ext
13484cat >>conftest.$ac_ext <<_ACEOF
13485/* end confdefs.h. */
13486$ac_includes_default
13487#include <$ac_header>
13488_ACEOF
13489rm -f conftest.$ac_objext
13490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13491 (eval $ac_compile) 2>conftest.er1
a848cd7e 13492 ac_status=$?
ac1cb8d3
VS
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
a848cd7e
SC
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } &&
b48a2016
DE
13498 { ac_try='test -z "$ac_c_werror_flag"
13499 || test ! -s conftest.err'
ac1cb8d3
VS
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; } &&
13505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511 ac_header_compiler=yes
13512else
13513 echo "$as_me: failed program was:" >&5
13514sed 's/^/| /' conftest.$ac_ext >&5
13515
13516ac_header_compiler=no
13517fi
ac1cb8d3 13518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13520echo "${ECHO_T}$ac_header_compiler" >&6
13521
13522# Is the header present?
13523echo "$as_me:$LINENO: checking $ac_header presence" >&5
13524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13525cat >conftest.$ac_ext <<_ACEOF
13526/* confdefs.h. */
13527_ACEOF
13528cat confdefs.h >>conftest.$ac_ext
13529cat >>conftest.$ac_ext <<_ACEOF
13530/* end confdefs.h. */
13531#include <$ac_header>
13532_ACEOF
13533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } >/dev/null; then
13541 if test -s conftest.err; then
13542 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13544 else
13545 ac_cpp_err=
13546 fi
13547else
13548 ac_cpp_err=yes
13549fi
13550if test -z "$ac_cpp_err"; then
13551 ac_header_preproc=yes
13552else
13553 echo "$as_me: failed program was:" >&5
13554sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 ac_header_preproc=no
13557fi
13558rm -f conftest.err conftest.$ac_ext
13559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13560echo "${ECHO_T}$ac_header_preproc" >&6
13561
13562# So? What about this header?
ac1cb8d3
VS
13563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13564 yes:no: )
a848cd7e
SC
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13569 ac_header_preproc=yes
a848cd7e 13570 ;;
ac1cb8d3 13571 no:yes:* )
a848cd7e
SC
13572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13584 (
13585 cat <<\_ASBOX
ac1cb8d3
VS
13586## ----------------------------------------- ##
13587## Report this to wx-dev@lists.wxwidgets.org ##
13588## ----------------------------------------- ##
a848cd7e
SC
13589_ASBOX
13590 ) |
13591 sed "s/^/$as_me: WARNING: /" >&2
13592 ;;
13593esac
13594echo "$as_me:$LINENO: checking for $ac_header" >&5
13595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13596if eval "test \"\${$as_ac_Header+set}\" = set"; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13598else
ac1cb8d3 13599 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13600fi
13601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13603
13604fi
13605if test `eval echo '${'$as_ac_Header'}'` = yes; then
13606 cat >>confdefs.h <<_ACEOF
13607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13608_ACEOF
13609
13610fi
13611
13612done
13613
13614fi
13615
13616
13617for ac_header in fnmatch.h
13618do
13619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13620if eval "test \"\${$as_ac_Header+set}\" = set"; then
13621 echo "$as_me:$LINENO: checking for $ac_header" >&5
13622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13623if eval "test \"\${$as_ac_Header+set}\" = set"; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13625fi
13626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13628else
13629 # Is the header compilable?
13630echo "$as_me:$LINENO: checking $ac_header usability" >&5
13631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13632cat >conftest.$ac_ext <<_ACEOF
13633/* confdefs.h. */
13634_ACEOF
13635cat confdefs.h >>conftest.$ac_ext
13636cat >>conftest.$ac_ext <<_ACEOF
13637/* end confdefs.h. */
13638$ac_includes_default
13639#include <$ac_header>
13640_ACEOF
13641rm -f conftest.$ac_objext
13642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13643 (eval $ac_compile) 2>conftest.er1
a848cd7e 13644 ac_status=$?
ac1cb8d3
VS
13645 grep -v '^ *+' conftest.er1 >conftest.err
13646 rm -f conftest.er1
13647 cat conftest.err >&5
a848cd7e
SC
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
b48a2016
DE
13650 { ac_try='test -z "$ac_c_werror_flag"
13651 || test ! -s conftest.err'
ac1cb8d3
VS
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; } &&
13657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13660 ac_status=$?
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663 ac_header_compiler=yes
13664else
13665 echo "$as_me: failed program was:" >&5
13666sed 's/^/| /' conftest.$ac_ext >&5
13667
13668ac_header_compiler=no
13669fi
ac1cb8d3 13670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13672echo "${ECHO_T}$ac_header_compiler" >&6
13673
13674# Is the header present?
13675echo "$as_me:$LINENO: checking $ac_header presence" >&5
13676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13677cat >conftest.$ac_ext <<_ACEOF
13678/* confdefs.h. */
13679_ACEOF
13680cat confdefs.h >>conftest.$ac_ext
13681cat >>conftest.$ac_ext <<_ACEOF
13682/* end confdefs.h. */
13683#include <$ac_header>
13684_ACEOF
13685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } >/dev/null; then
13693 if test -s conftest.err; then
13694 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13696 else
13697 ac_cpp_err=
13698 fi
13699else
13700 ac_cpp_err=yes
13701fi
13702if test -z "$ac_cpp_err"; then
13703 ac_header_preproc=yes
13704else
13705 echo "$as_me: failed program was:" >&5
13706sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 ac_header_preproc=no
13709fi
13710rm -f conftest.err conftest.$ac_ext
13711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13712echo "${ECHO_T}$ac_header_preproc" >&6
13713
13714# So? What about this header?
ac1cb8d3
VS
13715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13716 yes:no: )
a848cd7e
SC
13717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13721 ac_header_preproc=yes
a848cd7e 13722 ;;
ac1cb8d3 13723 no:yes:* )
a848cd7e
SC
13724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13727echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13731echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13736 (
13737 cat <<\_ASBOX
ac1cb8d3
VS
13738## ----------------------------------------- ##
13739## Report this to wx-dev@lists.wxwidgets.org ##
13740## ----------------------------------------- ##
a848cd7e
SC
13741_ASBOX
13742 ) |
13743 sed "s/^/$as_me: WARNING: /" >&2
13744 ;;
13745esac
13746echo "$as_me:$LINENO: checking for $ac_header" >&5
13747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13748if eval "test \"\${$as_ac_Header+set}\" = set"; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750else
ac1cb8d3 13751 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13752fi
13753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13755
13756fi
13757if test `eval echo '${'$as_ac_Header'}'` = yes; then
13758 cat >>confdefs.h <<_ACEOF
13759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13760_ACEOF
13761
13762fi
13763
13764done
13765
13766
13767if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13768
13769for ac_func in fnmatch
13770do
13771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13772echo "$as_me:$LINENO: checking for $ac_func" >&5
13773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13774if eval "test \"\${$as_ac_var+set}\" = set"; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776else
13777 cat >conftest.$ac_ext <<_ACEOF
13778/* confdefs.h. */
13779_ACEOF
13780cat confdefs.h >>conftest.$ac_ext
13781cat >>conftest.$ac_ext <<_ACEOF
13782/* end confdefs.h. */
ac1cb8d3
VS
13783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13785#define $ac_func innocuous_$ac_func
13786
a848cd7e
SC
13787/* System header to define __stub macros and hopefully few prototypes,
13788 which can conflict with char $ac_func (); below.
13789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13790 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13791
a848cd7e
SC
13792#ifdef __STDC__
13793# include <limits.h>
13794#else
13795# include <assert.h>
13796#endif
ac1cb8d3
VS
13797
13798#undef $ac_func
13799
a848cd7e
SC
13800/* Override any gcc2 internal prototype to avoid an error. */
13801#ifdef __cplusplus
13802extern "C"
13803{
13804#endif
13805/* We use char because int might match the return type of a gcc2
13806 builtin and then its argument prototype would still apply. */
13807char $ac_func ();
13808/* The GNU C library defines this for functions which it implements
13809 to always fail with ENOSYS. Some functions are actually named
13810 something starting with __ and the normal name is an alias. */
13811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13812choke me
13813#else
13814char (*f) () = $ac_func;
13815#endif
13816#ifdef __cplusplus
13817}
13818#endif
13819
13820int
13821main ()
13822{
13823return f != $ac_func;
13824 ;
13825 return 0;
13826}
13827_ACEOF
13828rm -f conftest.$ac_objext conftest$ac_exeext
13829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13830 (eval $ac_link) 2>conftest.er1
a848cd7e 13831 ac_status=$?
ac1cb8d3
VS
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
a848cd7e
SC
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
b48a2016
DE
13837 { ac_try='test -z "$ac_c_werror_flag"
13838 || test ! -s conftest.err'
ac1cb8d3
VS
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; } &&
13844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13850 eval "$as_ac_var=yes"
13851else
13852 echo "$as_me: failed program was:" >&5
13853sed 's/^/| /' conftest.$ac_ext >&5
13854
13855eval "$as_ac_var=no"
13856fi
ac1cb8d3
VS
13857rm -f conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13859fi
13860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13862if test `eval echo '${'$as_ac_var'}'` = yes; then
13863 cat >>confdefs.h <<_ACEOF
13864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13865_ACEOF
13866
13867fi
13868done
13869
13870fi
13871
13872
13873for ac_header in langinfo.h
13874do
13875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13876if eval "test \"\${$as_ac_Header+set}\" = set"; then
13877 echo "$as_me:$LINENO: checking for $ac_header" >&5
13878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13879if eval "test \"\${$as_ac_Header+set}\" = set"; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13881fi
13882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13884else
13885 # Is the header compilable?
13886echo "$as_me:$LINENO: checking $ac_header usability" >&5
13887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13888cat >conftest.$ac_ext <<_ACEOF
13889/* confdefs.h. */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h. */
13894$ac_includes_default
13895#include <$ac_header>
13896_ACEOF
13897rm -f conftest.$ac_objext
13898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13899 (eval $ac_compile) 2>conftest.er1
a848cd7e 13900 ac_status=$?
ac1cb8d3
VS
13901 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1
13903 cat conftest.err >&5
a848cd7e
SC
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } &&
b48a2016
DE
13906 { ac_try='test -z "$ac_c_werror_flag"
13907 || test ! -s conftest.err'
ac1cb8d3
VS
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_header_compiler=yes
13920else
13921 echo "$as_me: failed program was:" >&5
13922sed 's/^/| /' conftest.$ac_ext >&5
13923
13924ac_header_compiler=no
13925fi
ac1cb8d3 13926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13928echo "${ECHO_T}$ac_header_compiler" >&6
13929
13930# Is the header present?
13931echo "$as_me:$LINENO: checking $ac_header presence" >&5
13932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13933cat >conftest.$ac_ext <<_ACEOF
13934/* confdefs.h. */
13935_ACEOF
13936cat confdefs.h >>conftest.$ac_ext
13937cat >>conftest.$ac_ext <<_ACEOF
13938/* end confdefs.h. */
13939#include <$ac_header>
13940_ACEOF
13941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13943 ac_status=$?
13944 grep -v '^ *+' conftest.er1 >conftest.err
13945 rm -f conftest.er1
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } >/dev/null; then
13949 if test -s conftest.err; then
13950 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13952 else
13953 ac_cpp_err=
13954 fi
13955else
13956 ac_cpp_err=yes
13957fi
13958if test -z "$ac_cpp_err"; then
13959 ac_header_preproc=yes
13960else
13961 echo "$as_me: failed program was:" >&5
13962sed 's/^/| /' conftest.$ac_ext >&5
13963
13964 ac_header_preproc=no
13965fi
13966rm -f conftest.err conftest.$ac_ext
13967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13968echo "${ECHO_T}$ac_header_preproc" >&6
13969
13970# So? What about this header?
ac1cb8d3
VS
13971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13972 yes:no: )
a848cd7e
SC
13973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13977 ac_header_preproc=yes
a848cd7e 13978 ;;
ac1cb8d3 13979 no:yes:* )
a848cd7e
SC
13980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13987echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13992 (
13993 cat <<\_ASBOX
ac1cb8d3
VS
13994## ----------------------------------------- ##
13995## Report this to wx-dev@lists.wxwidgets.org ##
13996## ----------------------------------------- ##
a848cd7e
SC
13997_ASBOX
13998 ) |
13999 sed "s/^/$as_me: WARNING: /" >&2
14000 ;;
14001esac
14002echo "$as_me:$LINENO: checking for $ac_header" >&5
14003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14004if eval "test \"\${$as_ac_Header+set}\" = set"; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006else
ac1cb8d3 14007 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14008fi
14009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14011
14012fi
14013if test `eval echo '${'$as_ac_Header'}'` = yes; then
14014 cat >>confdefs.h <<_ACEOF
14015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14016_ACEOF
14017
14018fi
14019
14020done
14021
14022
14023case "${host}" in
14024 *-pc-os2_emx | *-pc-os2-emx )
14025 if test $ac_cv_header_langinfo_h = "yes"; then
14026 LIBS="$LIBS -lintl"
14027 fi
14028 ;;
14029esac
14030
14031if test "$wxUSE_GUI" = "yes"; then
14032 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14033
14034for ac_header in X11/Xlib.h
14035do
14036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14037if eval "test \"\${$as_ac_Header+set}\" = set"; then
14038 echo "$as_me:$LINENO: checking for $ac_header" >&5
14039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14040if eval "test \"\${$as_ac_Header+set}\" = set"; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042fi
14043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14045else
14046 # Is the header compilable?
14047echo "$as_me:$LINENO: checking $ac_header usability" >&5
14048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14049cat >conftest.$ac_ext <<_ACEOF
14050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h. */
14055$ac_includes_default
14056#include <$ac_header>
14057_ACEOF
14058rm -f conftest.$ac_objext
14059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14060 (eval $ac_compile) 2>conftest.er1
a848cd7e 14061 ac_status=$?
ac1cb8d3
VS
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
a848cd7e
SC
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
b48a2016
DE
14067 { ac_try='test -z "$ac_c_werror_flag"
14068 || test ! -s conftest.err'
ac1cb8d3
VS
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; } &&
14074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076 (eval $ac_try) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; }; then
14080 ac_header_compiler=yes
14081else
14082 echo "$as_me: failed program was:" >&5
14083sed 's/^/| /' conftest.$ac_ext >&5
14084
14085ac_header_compiler=no
14086fi
ac1cb8d3 14087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14088echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14089echo "${ECHO_T}$ac_header_compiler" >&6
14090
14091# Is the header present?
14092echo "$as_me:$LINENO: checking $ac_header presence" >&5
14093echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14094cat >conftest.$ac_ext <<_ACEOF
14095/* confdefs.h. */
14096_ACEOF
14097cat confdefs.h >>conftest.$ac_ext
14098cat >>conftest.$ac_ext <<_ACEOF
14099/* end confdefs.h. */
14100#include <$ac_header>
14101_ACEOF
14102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14104 ac_status=$?
14105 grep -v '^ *+' conftest.er1 >conftest.err
14106 rm -f conftest.er1
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } >/dev/null; then
14110 if test -s conftest.err; then
14111 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14113 else
14114 ac_cpp_err=
14115 fi
14116else
14117 ac_cpp_err=yes
14118fi
14119if test -z "$ac_cpp_err"; then
14120 ac_header_preproc=yes
14121else
14122 echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125 ac_header_preproc=no
14126fi
14127rm -f conftest.err conftest.$ac_ext
14128echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14129echo "${ECHO_T}$ac_header_preproc" >&6
14130
14131# So? What about this header?
ac1cb8d3
VS
14132case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14133 yes:no: )
a848cd7e
SC
14134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14135echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14137echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14138 ac_header_preproc=yes
a848cd7e 14139 ;;
ac1cb8d3 14140 no:yes:* )
a848cd7e
SC
14141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14142echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14144echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14146echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14148echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14150echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14152echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14153 (
14154 cat <<\_ASBOX
ac1cb8d3
VS
14155## ----------------------------------------- ##
14156## Report this to wx-dev@lists.wxwidgets.org ##
14157## ----------------------------------------- ##
a848cd7e
SC
14158_ASBOX
14159 ) |
14160 sed "s/^/$as_me: WARNING: /" >&2
14161 ;;
14162esac
14163echo "$as_me:$LINENO: checking for $ac_header" >&5
14164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14165if eval "test \"\${$as_ac_Header+set}\" = set"; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167else
ac1cb8d3 14168 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14169fi
14170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14171echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14172
14173fi
14174if test `eval echo '${'$as_ac_Header'}'` = yes; then
14175 cat >>confdefs.h <<_ACEOF
14176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14177_ACEOF
14178
14179fi
14180
14181done
14182
14183
14184for ac_header in X11/XKBlib.h
14185do
14186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14187echo "$as_me:$LINENO: checking for $ac_header" >&5
14188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14189if eval "test \"\${$as_ac_Header+set}\" = set"; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191else
14192 cat >conftest.$ac_ext <<_ACEOF
14193/* confdefs.h. */
14194_ACEOF
14195cat confdefs.h >>conftest.$ac_ext
14196cat >>conftest.$ac_ext <<_ACEOF
14197/* end confdefs.h. */
14198
14199 #if HAVE_X11_XLIB_H
14200 #include <X11/Xlib.h>
14201 #endif
14202
14203
14204#include <$ac_header>
14205_ACEOF
14206rm -f conftest.$ac_objext
14207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14208 (eval $ac_compile) 2>conftest.er1
a848cd7e 14209 ac_status=$?
ac1cb8d3
VS
14210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
a848cd7e
SC
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
b48a2016
DE
14215 { ac_try='test -z "$ac_c_werror_flag"
14216 || test ! -s conftest.err'
ac1cb8d3
VS
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; } &&
14222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 eval "$as_ac_Header=yes"
14229else
14230 echo "$as_me: failed program was:" >&5
14231sed 's/^/| /' conftest.$ac_ext >&5
14232
14233eval "$as_ac_Header=no"
14234fi
ac1cb8d3 14235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14236fi
14237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14239if test `eval echo '${'$as_ac_Header'}'` = yes; then
14240 cat >>confdefs.h <<_ACEOF
14241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14242_ACEOF
14243
14244fi
14245
14246done
14247
14248 fi
14249fi
14250
14251
14252echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14253echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14254if test "${ac_cv_c_const+set}" = set; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14256else
14257 cat >conftest.$ac_ext <<_ACEOF
14258/* confdefs.h. */
14259_ACEOF
14260cat confdefs.h >>conftest.$ac_ext
14261cat >>conftest.$ac_ext <<_ACEOF
14262/* end confdefs.h. */
14263
14264int
14265main ()
14266{
14267/* FIXME: Include the comments suggested by Paul. */
14268#ifndef __cplusplus
14269 /* Ultrix mips cc rejects this. */
14270 typedef int charset[2];
14271 const charset x;
14272 /* SunOS 4.1.1 cc rejects this. */
14273 char const *const *ccp;
14274 char **p;
14275 /* NEC SVR4.0.2 mips cc rejects this. */
14276 struct point {int x, y;};
14277 static struct point const zero = {0,0};
14278 /* AIX XL C 1.02.0.0 rejects this.
14279 It does not let you subtract one const X* pointer from another in
14280 an arm of an if-expression whose if-part is not a constant
14281 expression */
14282 const char *g = "string";
14283 ccp = &g + (g ? g-g : 0);
14284 /* HPUX 7.0 cc rejects these. */
14285 ++ccp;
14286 p = (char**) ccp;
14287 ccp = (char const *const *) p;
14288 { /* SCO 3.2v4 cc rejects this. */
14289 char *t;
14290 char const *s = 0 ? (char *) 0 : (char const *) 0;
14291
14292 *t++ = 0;
14293 }
14294 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14295 int x[] = {25, 17};
14296 const int *foo = &x[0];
14297 ++foo;
14298 }
14299 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14300 typedef const int *iptr;
14301 iptr p = 0;
14302 ++p;
14303 }
14304 { /* AIX XL C 1.02.0.0 rejects this saying
14305 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14306 struct s { int j; const int *ap[3]; };
14307 struct s *b; b->j = 5;
14308 }
14309 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14310 const int foo = 10;
14311 }
14312#endif
14313
14314 ;
14315 return 0;
14316}
14317_ACEOF
14318rm -f conftest.$ac_objext
14319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14320 (eval $ac_compile) 2>conftest.er1
a848cd7e 14321 ac_status=$?
ac1cb8d3
VS
14322 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1
14324 cat conftest.err >&5
a848cd7e
SC
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } &&
b48a2016
DE
14327 { ac_try='test -z "$ac_c_werror_flag"
14328 || test ! -s conftest.err'
ac1cb8d3
VS
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; } &&
14334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_c_const=yes
14341else
14342 echo "$as_me: failed program was:" >&5
14343sed 's/^/| /' conftest.$ac_ext >&5
14344
14345ac_cv_c_const=no
14346fi
ac1cb8d3 14347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14348fi
14349echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14350echo "${ECHO_T}$ac_cv_c_const" >&6
14351if test $ac_cv_c_const = no; then
14352
14353cat >>confdefs.h <<\_ACEOF
14354#define const
14355_ACEOF
14356
14357fi
14358
14359echo "$as_me:$LINENO: checking for inline" >&5
14360echo $ECHO_N "checking for inline... $ECHO_C" >&6
14361if test "${ac_cv_c_inline+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
14364 ac_cv_c_inline=no
14365for ac_kw in inline __inline__ __inline; do
14366 cat >conftest.$ac_ext <<_ACEOF
14367/* confdefs.h. */
14368_ACEOF
14369cat confdefs.h >>conftest.$ac_ext
14370cat >>conftest.$ac_ext <<_ACEOF
14371/* end confdefs.h. */
14372#ifndef __cplusplus
14373typedef int foo_t;
14374static $ac_kw foo_t static_foo () {return 0; }
14375$ac_kw foo_t foo () {return 0; }
14376#endif
14377
14378_ACEOF
14379rm -f conftest.$ac_objext
14380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14381 (eval $ac_compile) 2>conftest.er1
a848cd7e 14382 ac_status=$?
ac1cb8d3
VS
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
a848cd7e
SC
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
b48a2016
DE
14388 { ac_try='test -z "$ac_c_werror_flag"
14389 || test ! -s conftest.err'
ac1cb8d3
VS
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14392 ac_status=$?
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; } &&
14395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14398 ac_status=$?
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; }; then
14401 ac_cv_c_inline=$ac_kw; break
14402else
14403 echo "$as_me: failed program was:" >&5
14404sed 's/^/| /' conftest.$ac_ext >&5
14405
14406fi
ac1cb8d3 14407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14408done
14409
14410fi
14411echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14412echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14413
14414
a848cd7e
SC
14415case $ac_cv_c_inline in
14416 inline | yes) ;;
ac1cb8d3
VS
14417 *)
14418 case $ac_cv_c_inline in
14419 no) ac_val=;;
14420 *) ac_val=$ac_cv_c_inline;;
14421 esac
14422 cat >>confdefs.h <<_ACEOF
14423#ifndef __cplusplus
14424#define inline $ac_val
14425#endif
de59c161 14426_ACEOF
ac1cb8d3 14427 ;;
a848cd7e
SC
14428esac
14429
14430
14431echo "$as_me:$LINENO: checking for char" >&5
14432echo $ECHO_N "checking for char... $ECHO_C" >&6
14433if test "${ac_cv_type_char+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14435else
14436 cat >conftest.$ac_ext <<_ACEOF
14437/* confdefs.h. */
14438_ACEOF
14439cat confdefs.h >>conftest.$ac_ext
14440cat >>conftest.$ac_ext <<_ACEOF
14441/* end confdefs.h. */
14442$ac_includes_default
14443int
14444main ()
14445{
14446if ((char *) 0)
14447 return 0;
14448if (sizeof (char))
14449 return 0;
14450 ;
14451 return 0;
14452}
14453_ACEOF
14454rm -f conftest.$ac_objext
14455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14456 (eval $ac_compile) 2>conftest.er1
a848cd7e 14457 ac_status=$?
ac1cb8d3
VS
14458 grep -v '^ *+' conftest.er1 >conftest.err
14459 rm -f conftest.er1
14460 cat conftest.err >&5
a848cd7e
SC
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } &&
b48a2016
DE
14463 { ac_try='test -z "$ac_c_werror_flag"
14464 || test ! -s conftest.err'
ac1cb8d3
VS
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; } &&
14470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_cv_type_char=yes
14477else
14478 echo "$as_me: failed program was:" >&5
14479sed 's/^/| /' conftest.$ac_ext >&5
14480
14481ac_cv_type_char=no
14482fi
ac1cb8d3 14483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14484fi
14485echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14486echo "${ECHO_T}$ac_cv_type_char" >&6
14487
14488echo "$as_me:$LINENO: checking size of char" >&5
14489echo $ECHO_N "checking size of char... $ECHO_C" >&6
14490if test "${ac_cv_sizeof_char+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492else
14493 if test "$ac_cv_type_char" = yes; then
14494 # The cast to unsigned long works around a bug in the HP C Compiler
14495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14497 # This bug is HP SR number 8606223364.
14498 if test "$cross_compiling" = yes; then
14499 # Depending upon the size, compute the lo and hi bounds.
14500cat >conftest.$ac_ext <<_ACEOF
14501/* confdefs.h. */
14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
14505/* end confdefs.h. */
14506$ac_includes_default
14507int
14508main ()
14509{
14510static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14511test_array [0] = 0
14512
14513 ;
14514 return 0;
14515}
14516_ACEOF
14517rm -f conftest.$ac_objext
14518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14519 (eval $ac_compile) 2>conftest.er1
a848cd7e 14520 ac_status=$?
ac1cb8d3
VS
14521 grep -v '^ *+' conftest.er1 >conftest.err
14522 rm -f conftest.er1
14523 cat conftest.err >&5
a848cd7e
SC
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
b48a2016
DE
14526 { ac_try='test -z "$ac_c_werror_flag"
14527 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
14533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 ac_lo=0 ac_mid=0
14540 while :; do
14541 cat >conftest.$ac_ext <<_ACEOF
14542/* confdefs.h. */
14543_ACEOF
14544cat confdefs.h >>conftest.$ac_ext
14545cat >>conftest.$ac_ext <<_ACEOF
14546/* end confdefs.h. */
14547$ac_includes_default
14548int
14549main ()
14550{
14551static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14552test_array [0] = 0
14553
14554 ;
14555 return 0;
14556}
14557_ACEOF
14558rm -f conftest.$ac_objext
14559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14560 (eval $ac_compile) 2>conftest.er1
a848cd7e 14561 ac_status=$?
ac1cb8d3
VS
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
a848cd7e
SC
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
b48a2016
DE
14567 { ac_try='test -z "$ac_c_werror_flag"
14568 || test ! -s conftest.err'
ac1cb8d3
VS
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_hi=$ac_mid; break
14581else
14582 echo "$as_me: failed program was:" >&5
14583sed 's/^/| /' conftest.$ac_ext >&5
14584
14585ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14586 if test $ac_lo -le $ac_mid; then
14587 ac_lo= ac_hi=
14588 break
14589 fi
14590 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14591fi
ac1cb8d3 14592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14593 done
14594else
14595 echo "$as_me: failed program was:" >&5
14596sed 's/^/| /' conftest.$ac_ext >&5
14597
14598cat >conftest.$ac_ext <<_ACEOF
14599/* confdefs.h. */
14600_ACEOF
14601cat confdefs.h >>conftest.$ac_ext
14602cat >>conftest.$ac_ext <<_ACEOF
14603/* end confdefs.h. */
14604$ac_includes_default
14605int
14606main ()
14607{
14608static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14609test_array [0] = 0
14610
14611 ;
14612 return 0;
14613}
14614_ACEOF
14615rm -f conftest.$ac_objext
14616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14617 (eval $ac_compile) 2>conftest.er1
a848cd7e 14618 ac_status=$?
ac1cb8d3
VS
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
a848cd7e
SC
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
b48a2016
DE
14624 { ac_try='test -z "$ac_c_werror_flag"
14625 || test ! -s conftest.err'
ac1cb8d3
VS
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 ac_hi=-1 ac_mid=-1
14638 while :; do
14639 cat >conftest.$ac_ext <<_ACEOF
14640/* confdefs.h. */
14641_ACEOF
14642cat confdefs.h >>conftest.$ac_ext
14643cat >>conftest.$ac_ext <<_ACEOF
14644/* end confdefs.h. */
14645$ac_includes_default
14646int
14647main ()
14648{
14649static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14650test_array [0] = 0
14651
14652 ;
14653 return 0;
14654}
14655_ACEOF
14656rm -f conftest.$ac_objext
14657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14658 (eval $ac_compile) 2>conftest.er1
a848cd7e 14659 ac_status=$?
ac1cb8d3
VS
14660 grep -v '^ *+' conftest.er1 >conftest.err
14661 rm -f conftest.er1
14662 cat conftest.err >&5
a848cd7e
SC
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } &&
b48a2016
DE
14665 { ac_try='test -z "$ac_c_werror_flag"
14666 || test ! -s conftest.err'
ac1cb8d3
VS
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; } &&
14672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_lo=$ac_mid; break
14679else
14680 echo "$as_me: failed program was:" >&5
14681sed 's/^/| /' conftest.$ac_ext >&5
14682
14683ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14684 if test $ac_mid -le $ac_hi; then
14685 ac_lo= ac_hi=
14686 break
14687 fi
14688 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14689fi
ac1cb8d3 14690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14691 done
14692else
14693 echo "$as_me: failed program was:" >&5
14694sed 's/^/| /' conftest.$ac_ext >&5
14695
14696ac_lo= ac_hi=
14697fi
ac1cb8d3 14698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14699fi
ac1cb8d3 14700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14701# Binary search between lo and hi bounds.
14702while test "x$ac_lo" != "x$ac_hi"; do
14703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14704 cat >conftest.$ac_ext <<_ACEOF
14705/* confdefs.h. */
14706_ACEOF
14707cat confdefs.h >>conftest.$ac_ext
14708cat >>conftest.$ac_ext <<_ACEOF
14709/* end confdefs.h. */
14710$ac_includes_default
14711int
14712main ()
14713{
14714static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14715test_array [0] = 0
14716
14717 ;
14718 return 0;
14719}
14720_ACEOF
14721rm -f conftest.$ac_objext
14722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14723 (eval $ac_compile) 2>conftest.er1
a848cd7e 14724 ac_status=$?
ac1cb8d3
VS
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
a848cd7e
SC
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
b48a2016
DE
14730 { ac_try='test -z "$ac_c_werror_flag"
14731 || test ! -s conftest.err'
ac1cb8d3
VS
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_hi=$ac_mid
14744else
14745 echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5
14747
14748ac_lo=`expr '(' $ac_mid ')' + 1`
14749fi
ac1cb8d3 14750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14751done
14752case $ac_lo in
14753?*) ac_cv_sizeof_char=$ac_lo;;
14754'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14755See \`config.log' for more details." >&5
14756echo "$as_me: error: cannot compute sizeof (char), 77
14757See \`config.log' for more details." >&2;}
14758 { (exit 1); exit 1; }; } ;;
14759esac
14760else
14761 if test "$cross_compiling" = yes; then
b48a2016
DE
14762 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14763See \`config.log' for more details." >&5
14764echo "$as_me: error: cannot run test program while cross compiling
14765See \`config.log' for more details." >&2;}
a848cd7e
SC
14766 { (exit 1); exit 1; }; }
14767else
14768 cat >conftest.$ac_ext <<_ACEOF
14769/* confdefs.h. */
14770_ACEOF
14771cat confdefs.h >>conftest.$ac_ext
14772cat >>conftest.$ac_ext <<_ACEOF
14773/* end confdefs.h. */
14774$ac_includes_default
14775long longval () { return (long) (sizeof (char)); }
14776unsigned long ulongval () { return (long) (sizeof (char)); }
14777#include <stdio.h>
14778#include <stdlib.h>
14779int
14780main ()
14781{
14782
14783 FILE *f = fopen ("conftest.val", "w");
14784 if (! f)
14785 exit (1);
14786 if (((long) (sizeof (char))) < 0)
14787 {
14788 long i = longval ();
14789 if (i != ((long) (sizeof (char))))
14790 exit (1);
14791 fprintf (f, "%ld\n", i);
14792 }
14793 else
14794 {
14795 unsigned long i = ulongval ();
14796 if (i != ((long) (sizeof (char))))
14797 exit (1);
14798 fprintf (f, "%lu\n", i);
14799 }
14800 exit (ferror (f) || fclose (f) != 0);
14801
14802 ;
14803 return 0;
14804}
14805_ACEOF
14806rm -f conftest$ac_exeext
14807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14808 (eval $ac_link) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 ac_cv_sizeof_char=`cat conftest.val`
14818else
14819 echo "$as_me: program exited with status $ac_status" >&5
14820echo "$as_me: failed program was:" >&5
14821sed 's/^/| /' conftest.$ac_ext >&5
14822
14823( exit $ac_status )
14824{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14825See \`config.log' for more details." >&5
14826echo "$as_me: error: cannot compute sizeof (char), 77
14827See \`config.log' for more details." >&2;}
14828 { (exit 1); exit 1; }; }
14829fi
ac1cb8d3 14830rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14831fi
14832fi
14833rm -f conftest.val
14834else
14835 ac_cv_sizeof_char=0
14836fi
14837fi
14838echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14839echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14840cat >>confdefs.h <<_ACEOF
14841#define SIZEOF_CHAR $ac_cv_sizeof_char
14842_ACEOF
14843
14844
14845echo "$as_me:$LINENO: checking for short" >&5
14846echo $ECHO_N "checking for short... $ECHO_C" >&6
14847if test "${ac_cv_type_short+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14849else
14850 cat >conftest.$ac_ext <<_ACEOF
14851/* confdefs.h. */
14852_ACEOF
14853cat confdefs.h >>conftest.$ac_ext
14854cat >>conftest.$ac_ext <<_ACEOF
14855/* end confdefs.h. */
14856$ac_includes_default
14857int
14858main ()
14859{
14860if ((short *) 0)
14861 return 0;
14862if (sizeof (short))
14863 return 0;
14864 ;
14865 return 0;
14866}
14867_ACEOF
14868rm -f conftest.$ac_objext
14869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14870 (eval $ac_compile) 2>conftest.er1
a848cd7e 14871 ac_status=$?
ac1cb8d3
VS
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
a848cd7e
SC
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
b48a2016
DE
14877 { ac_try='test -z "$ac_c_werror_flag"
14878 || test ! -s conftest.err'
ac1cb8d3
VS
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 ac_cv_type_short=yes
14891else
14892 echo "$as_me: failed program was:" >&5
14893sed 's/^/| /' conftest.$ac_ext >&5
14894
14895ac_cv_type_short=no
14896fi
ac1cb8d3 14897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14898fi
14899echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14900echo "${ECHO_T}$ac_cv_type_short" >&6
14901
14902echo "$as_me:$LINENO: checking size of short" >&5
14903echo $ECHO_N "checking size of short... $ECHO_C" >&6
14904if test "${ac_cv_sizeof_short+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14906else
14907 if test "$ac_cv_type_short" = yes; then
14908 # The cast to unsigned long works around a bug in the HP C Compiler
14909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14911 # This bug is HP SR number 8606223364.
14912 if test "$cross_compiling" = yes; then
14913 # Depending upon the size, compute the lo and hi bounds.
14914cat >conftest.$ac_ext <<_ACEOF
14915/* confdefs.h. */
14916_ACEOF
14917cat confdefs.h >>conftest.$ac_ext
14918cat >>conftest.$ac_ext <<_ACEOF
14919/* end confdefs.h. */
14920$ac_includes_default
14921int
14922main ()
14923{
14924static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14925test_array [0] = 0
14926
14927 ;
14928 return 0;
14929}
14930_ACEOF
14931rm -f conftest.$ac_objext
14932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14933 (eval $ac_compile) 2>conftest.er1
a848cd7e 14934 ac_status=$?
ac1cb8d3
VS
14935 grep -v '^ *+' conftest.er1 >conftest.err
14936 rm -f conftest.er1
14937 cat conftest.err >&5
a848cd7e
SC
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } &&
b48a2016
DE
14940 { ac_try='test -z "$ac_c_werror_flag"
14941 || test ! -s conftest.err'
ac1cb8d3
VS
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; } &&
14947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }; then
14953 ac_lo=0 ac_mid=0
14954 while :; do
14955 cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961$ac_includes_default
14962int
14963main ()
14964{
14965static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14966test_array [0] = 0
14967
14968 ;
14969 return 0;
14970}
14971_ACEOF
14972rm -f conftest.$ac_objext
14973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14974 (eval $ac_compile) 2>conftest.er1
a848cd7e 14975 ac_status=$?
ac1cb8d3
VS
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
a848cd7e
SC
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
b48a2016
DE
14981 { ac_try='test -z "$ac_c_werror_flag"
14982 || test ! -s conftest.err'
ac1cb8d3
VS
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; } &&
14988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14991 ac_status=$?
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_hi=$ac_mid; break
14995else
14996 echo "$as_me: failed program was:" >&5
14997sed 's/^/| /' conftest.$ac_ext >&5
14998
14999ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15000 if test $ac_lo -le $ac_mid; then
15001 ac_lo= ac_hi=
15002 break
15003 fi
15004 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15005fi
ac1cb8d3 15006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15007 done
15008else
15009 echo "$as_me: failed program was:" >&5
15010sed 's/^/| /' conftest.$ac_ext >&5
15011
15012cat >conftest.$ac_ext <<_ACEOF
15013/* confdefs.h. */
15014_ACEOF
15015cat confdefs.h >>conftest.$ac_ext
15016cat >>conftest.$ac_ext <<_ACEOF
15017/* end confdefs.h. */
15018$ac_includes_default
15019int
15020main ()
15021{
15022static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15023test_array [0] = 0
15024
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15031 (eval $ac_compile) 2>conftest.er1
a848cd7e 15032 ac_status=$?
ac1cb8d3
VS
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
a848cd7e
SC
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
b48a2016
DE
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
ac1cb8d3
VS
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_hi=-1 ac_mid=-1
15052 while :; do
15053 cat >conftest.$ac_ext <<_ACEOF
15054/* confdefs.h. */
15055_ACEOF
15056cat confdefs.h >>conftest.$ac_ext
15057cat >>conftest.$ac_ext <<_ACEOF
15058/* end confdefs.h. */
15059$ac_includes_default
15060int
15061main ()
15062{
15063static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15064test_array [0] = 0
15065
15066 ;
15067 return 0;
15068}
15069_ACEOF
15070rm -f conftest.$ac_objext
15071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15072 (eval $ac_compile) 2>conftest.er1
a848cd7e 15073 ac_status=$?
ac1cb8d3
VS
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
a848cd7e
SC
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
b48a2016
DE
15079 { ac_try='test -z "$ac_c_werror_flag"
15080 || test ! -s conftest.err'
ac1cb8d3
VS
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; } &&
15086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092 ac_lo=$ac_mid; break
15093else
15094 echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
15096
15097ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15098 if test $ac_mid -le $ac_hi; then
15099 ac_lo= ac_hi=
15100 break
15101 fi
15102 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15103fi
ac1cb8d3 15104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15105 done
15106else
15107 echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110ac_lo= ac_hi=
15111fi
ac1cb8d3 15112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15113fi
ac1cb8d3 15114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15115# Binary search between lo and hi bounds.
15116while test "x$ac_lo" != "x$ac_hi"; do
15117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15118 cat >conftest.$ac_ext <<_ACEOF
15119/* confdefs.h. */
15120_ACEOF
15121cat confdefs.h >>conftest.$ac_ext
15122cat >>conftest.$ac_ext <<_ACEOF
15123/* end confdefs.h. */
15124$ac_includes_default
15125int
15126main ()
15127{
15128static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15129test_array [0] = 0
15130
15131 ;
15132 return 0;
15133}
15134_ACEOF
15135rm -f conftest.$ac_objext
15136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15137 (eval $ac_compile) 2>conftest.er1
a848cd7e 15138 ac_status=$?
ac1cb8d3
VS
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
a848cd7e
SC
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
b48a2016
DE
15144 { ac_try='test -z "$ac_c_werror_flag"
15145 || test ! -s conftest.err'
ac1cb8d3
VS
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; } &&
15151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15157 ac_hi=$ac_mid
15158else
15159 echo "$as_me: failed program was:" >&5
15160sed 's/^/| /' conftest.$ac_ext >&5
15161
15162ac_lo=`expr '(' $ac_mid ')' + 1`
15163fi
ac1cb8d3 15164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15165done
15166case $ac_lo in
15167?*) ac_cv_sizeof_short=$ac_lo;;
15168'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15169See \`config.log' for more details." >&5
15170echo "$as_me: error: cannot compute sizeof (short), 77
15171See \`config.log' for more details." >&2;}
15172 { (exit 1); exit 1; }; } ;;
15173esac
15174else
15175 if test "$cross_compiling" = yes; then
b48a2016
DE
15176 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15177See \`config.log' for more details." >&5
15178echo "$as_me: error: cannot run test program while cross compiling
15179See \`config.log' for more details." >&2;}
a848cd7e
SC
15180 { (exit 1); exit 1; }; }
15181else
15182 cat >conftest.$ac_ext <<_ACEOF
15183/* confdefs.h. */
15184_ACEOF
15185cat confdefs.h >>conftest.$ac_ext
15186cat >>conftest.$ac_ext <<_ACEOF
15187/* end confdefs.h. */
15188$ac_includes_default
15189long longval () { return (long) (sizeof (short)); }
15190unsigned long ulongval () { return (long) (sizeof (short)); }
15191#include <stdio.h>
15192#include <stdlib.h>
15193int
15194main ()
15195{
15196
15197 FILE *f = fopen ("conftest.val", "w");
15198 if (! f)
15199 exit (1);
15200 if (((long) (sizeof (short))) < 0)
15201 {
15202 long i = longval ();
15203 if (i != ((long) (sizeof (short))))
15204 exit (1);
15205 fprintf (f, "%ld\n", i);
15206 }
15207 else
15208 {
15209 unsigned long i = ulongval ();
15210 if (i != ((long) (sizeof (short))))
15211 exit (1);
15212 fprintf (f, "%lu\n", i);
15213 }
15214 exit (ferror (f) || fclose (f) != 0);
15215
15216 ;
15217 return 0;
15218}
15219_ACEOF
15220rm -f conftest$ac_exeext
15221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15222 (eval $ac_link) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; }; then
15231 ac_cv_sizeof_short=`cat conftest.val`
15232else
15233 echo "$as_me: program exited with status $ac_status" >&5
15234echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237( exit $ac_status )
15238{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15239See \`config.log' for more details." >&5
15240echo "$as_me: error: cannot compute sizeof (short), 77
15241See \`config.log' for more details." >&2;}
15242 { (exit 1); exit 1; }; }
15243fi
ac1cb8d3 15244rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15245fi
15246fi
15247rm -f conftest.val
15248else
15249 ac_cv_sizeof_short=0
15250fi
15251fi
15252echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15253echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15254cat >>confdefs.h <<_ACEOF
15255#define SIZEOF_SHORT $ac_cv_sizeof_short
15256_ACEOF
15257
15258
15259echo "$as_me:$LINENO: checking for void *" >&5
15260echo $ECHO_N "checking for void *... $ECHO_C" >&6
15261if test "${ac_cv_type_void_p+set}" = set; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15263else
15264 cat >conftest.$ac_ext <<_ACEOF
15265/* confdefs.h. */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
15269/* end confdefs.h. */
15270$ac_includes_default
15271int
15272main ()
15273{
15274if ((void * *) 0)
15275 return 0;
15276if (sizeof (void *))
15277 return 0;
15278 ;
15279 return 0;
15280}
15281_ACEOF
15282rm -f conftest.$ac_objext
15283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15284 (eval $ac_compile) 2>conftest.er1
a848cd7e 15285 ac_status=$?
ac1cb8d3
VS
15286 grep -v '^ *+' conftest.er1 >conftest.err
15287 rm -f conftest.er1
15288 cat conftest.err >&5
a848cd7e
SC
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
b48a2016
DE
15291 { ac_try='test -z "$ac_c_werror_flag"
15292 || test ! -s conftest.err'
ac1cb8d3
VS
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
15304 ac_cv_type_void_p=yes
15305else
15306 echo "$as_me: failed program was:" >&5
15307sed 's/^/| /' conftest.$ac_ext >&5
15308
15309ac_cv_type_void_p=no
15310fi
ac1cb8d3 15311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15312fi
15313echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15314echo "${ECHO_T}$ac_cv_type_void_p" >&6
15315
15316echo "$as_me:$LINENO: checking size of void *" >&5
15317echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15318if test "${ac_cv_sizeof_void_p+set}" = set; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15320else
15321 if test "$ac_cv_type_void_p" = yes; then
15322 # The cast to unsigned long works around a bug in the HP C Compiler
15323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15325 # This bug is HP SR number 8606223364.
15326 if test "$cross_compiling" = yes; then
15327 # Depending upon the size, compute the lo and hi bounds.
15328cat >conftest.$ac_ext <<_ACEOF
15329/* confdefs.h. */
15330_ACEOF
15331cat confdefs.h >>conftest.$ac_ext
15332cat >>conftest.$ac_ext <<_ACEOF
15333/* end confdefs.h. */
15334$ac_includes_default
15335int
15336main ()
15337{
15338static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15339test_array [0] = 0
15340
15341 ;
15342 return 0;
15343}
15344_ACEOF
15345rm -f conftest.$ac_objext
15346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15347 (eval $ac_compile) 2>conftest.er1
a848cd7e 15348 ac_status=$?
ac1cb8d3
VS
15349 grep -v '^ *+' conftest.er1 >conftest.err
15350 rm -f conftest.er1
15351 cat conftest.err >&5
a848cd7e
SC
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } &&
b48a2016
DE
15354 { ac_try='test -z "$ac_c_werror_flag"
15355 || test ! -s conftest.err'
ac1cb8d3
VS
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; } &&
15361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15364 ac_status=$?
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 ac_lo=0 ac_mid=0
15368 while :; do
15369 cat >conftest.$ac_ext <<_ACEOF
15370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
15375$ac_includes_default
15376int
15377main ()
15378{
15379static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15380test_array [0] = 0
15381
15382 ;
15383 return 0;
15384}
15385_ACEOF
15386rm -f conftest.$ac_objext
15387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15388 (eval $ac_compile) 2>conftest.er1
a848cd7e 15389 ac_status=$?
ac1cb8d3
VS
15390 grep -v '^ *+' conftest.er1 >conftest.err
15391 rm -f conftest.er1
15392 cat conftest.err >&5
a848cd7e
SC
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
b48a2016
DE
15395 { ac_try='test -z "$ac_c_werror_flag"
15396 || test ! -s conftest.err'
ac1cb8d3
VS
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } &&
15402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_hi=$ac_mid; break
15409else
15410 echo "$as_me: failed program was:" >&5
15411sed 's/^/| /' conftest.$ac_ext >&5
15412
15413ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15414 if test $ac_lo -le $ac_mid; then
15415 ac_lo= ac_hi=
15416 break
15417 fi
15418 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15419fi
ac1cb8d3 15420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15421 done
15422else
15423 echo "$as_me: failed program was:" >&5
15424sed 's/^/| /' conftest.$ac_ext >&5
15425
15426cat >conftest.$ac_ext <<_ACEOF
15427/* confdefs.h. */
15428_ACEOF
15429cat confdefs.h >>conftest.$ac_ext
15430cat >>conftest.$ac_ext <<_ACEOF
15431/* end confdefs.h. */
15432$ac_includes_default
15433int
15434main ()
15435{
15436static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15437test_array [0] = 0
15438
15439 ;
15440 return 0;
15441}
15442_ACEOF
15443rm -f conftest.$ac_objext
15444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15445 (eval $ac_compile) 2>conftest.er1
a848cd7e 15446 ac_status=$?
ac1cb8d3
VS
15447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
a848cd7e
SC
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
b48a2016
DE
15452 { ac_try='test -z "$ac_c_werror_flag"
15453 || test ! -s conftest.err'
ac1cb8d3
VS
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; } &&
15459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_hi=-1 ac_mid=-1
15466 while :; do
15467 cat >conftest.$ac_ext <<_ACEOF
15468/* confdefs.h. */
15469_ACEOF
15470cat confdefs.h >>conftest.$ac_ext
15471cat >>conftest.$ac_ext <<_ACEOF
15472/* end confdefs.h. */
15473$ac_includes_default
15474int
15475main ()
15476{
15477static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15478test_array [0] = 0
15479
15480 ;
15481 return 0;
15482}
15483_ACEOF
15484rm -f conftest.$ac_objext
15485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15486 (eval $ac_compile) 2>conftest.er1
a848cd7e 15487 ac_status=$?
ac1cb8d3
VS
15488 grep -v '^ *+' conftest.er1 >conftest.err
15489 rm -f conftest.er1
15490 cat conftest.err >&5
a848cd7e
SC
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
b48a2016
DE
15493 { ac_try='test -z "$ac_c_werror_flag"
15494 || test ! -s conftest.err'
ac1cb8d3
VS
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_lo=$ac_mid; break
15507else
15508 echo "$as_me: failed program was:" >&5
15509sed 's/^/| /' conftest.$ac_ext >&5
15510
15511ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15512 if test $ac_mid -le $ac_hi; then
15513 ac_lo= ac_hi=
15514 break
15515 fi
15516 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15517fi
ac1cb8d3 15518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15519 done
15520else
15521 echo "$as_me: failed program was:" >&5
15522sed 's/^/| /' conftest.$ac_ext >&5
15523
15524ac_lo= ac_hi=
15525fi
ac1cb8d3 15526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15527fi
ac1cb8d3 15528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15529# Binary search between lo and hi bounds.
15530while test "x$ac_lo" != "x$ac_hi"; do
15531 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15532 cat >conftest.$ac_ext <<_ACEOF
15533/* confdefs.h. */
15534_ACEOF
15535cat confdefs.h >>conftest.$ac_ext
15536cat >>conftest.$ac_ext <<_ACEOF
15537/* end confdefs.h. */
15538$ac_includes_default
15539int
15540main ()
15541{
15542static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15543test_array [0] = 0
15544
15545 ;
15546 return 0;
15547}
15548_ACEOF
15549rm -f conftest.$ac_objext
15550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15551 (eval $ac_compile) 2>conftest.er1
a848cd7e 15552 ac_status=$?
ac1cb8d3
VS
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
a848cd7e
SC
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } &&
b48a2016
DE
15558 { ac_try='test -z "$ac_c_werror_flag"
15559 || test ! -s conftest.err'
ac1cb8d3
VS
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; } &&
15565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; }; then
15571 ac_hi=$ac_mid
15572else
15573 echo "$as_me: failed program was:" >&5
15574sed 's/^/| /' conftest.$ac_ext >&5
15575
15576ac_lo=`expr '(' $ac_mid ')' + 1`
15577fi
ac1cb8d3 15578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15579done
15580case $ac_lo in
15581?*) ac_cv_sizeof_void_p=$ac_lo;;
15582'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15583See \`config.log' for more details." >&5
15584echo "$as_me: error: cannot compute sizeof (void *), 77
15585See \`config.log' for more details." >&2;}
15586 { (exit 1); exit 1; }; } ;;
15587esac
15588else
15589 if test "$cross_compiling" = yes; then
b48a2016
DE
15590 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15591See \`config.log' for more details." >&5
15592echo "$as_me: error: cannot run test program while cross compiling
15593See \`config.log' for more details." >&2;}
a848cd7e
SC
15594 { (exit 1); exit 1; }; }
15595else
15596 cat >conftest.$ac_ext <<_ACEOF
15597/* confdefs.h. */
15598_ACEOF
15599cat confdefs.h >>conftest.$ac_ext
15600cat >>conftest.$ac_ext <<_ACEOF
15601/* end confdefs.h. */
15602$ac_includes_default
15603long longval () { return (long) (sizeof (void *)); }
15604unsigned long ulongval () { return (long) (sizeof (void *)); }
15605#include <stdio.h>
15606#include <stdlib.h>
15607int
15608main ()
15609{
15610
15611 FILE *f = fopen ("conftest.val", "w");
15612 if (! f)
15613 exit (1);
15614 if (((long) (sizeof (void *))) < 0)
15615 {
15616 long i = longval ();
15617 if (i != ((long) (sizeof (void *))))
15618 exit (1);
15619 fprintf (f, "%ld\n", i);
15620 }
15621 else
15622 {
15623 unsigned long i = ulongval ();
15624 if (i != ((long) (sizeof (void *))))
15625 exit (1);
15626 fprintf (f, "%lu\n", i);
15627 }
15628 exit (ferror (f) || fclose (f) != 0);
15629
15630 ;
15631 return 0;
15632}
15633_ACEOF
15634rm -f conftest$ac_exeext
15635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15636 (eval $ac_link) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15645 ac_cv_sizeof_void_p=`cat conftest.val`
15646else
15647 echo "$as_me: program exited with status $ac_status" >&5
15648echo "$as_me: failed program was:" >&5
15649sed 's/^/| /' conftest.$ac_ext >&5
15650
15651( exit $ac_status )
15652{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15653See \`config.log' for more details." >&5
15654echo "$as_me: error: cannot compute sizeof (void *), 77
15655See \`config.log' for more details." >&2;}
15656 { (exit 1); exit 1; }; }
15657fi
ac1cb8d3 15658rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15659fi
15660fi
15661rm -f conftest.val
15662else
15663 ac_cv_sizeof_void_p=0
15664fi
15665fi
15666echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15667echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15668cat >>confdefs.h <<_ACEOF
15669#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15670_ACEOF
15671
15672
15673echo "$as_me:$LINENO: checking for int" >&5
15674echo $ECHO_N "checking for int... $ECHO_C" >&6
15675if test "${ac_cv_type_int+set}" = set; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15677else
15678 cat >conftest.$ac_ext <<_ACEOF
15679/* confdefs.h. */
15680_ACEOF
15681cat confdefs.h >>conftest.$ac_ext
15682cat >>conftest.$ac_ext <<_ACEOF
15683/* end confdefs.h. */
15684$ac_includes_default
15685int
15686main ()
15687{
15688if ((int *) 0)
15689 return 0;
15690if (sizeof (int))
15691 return 0;
15692 ;
15693 return 0;
15694}
15695_ACEOF
15696rm -f conftest.$ac_objext
15697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15698 (eval $ac_compile) 2>conftest.er1
a848cd7e 15699 ac_status=$?
ac1cb8d3
VS
15700 grep -v '^ *+' conftest.er1 >conftest.err
15701 rm -f conftest.er1
15702 cat conftest.err >&5
a848cd7e
SC
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } &&
b48a2016
DE
15705 { ac_try='test -z "$ac_c_werror_flag"
15706 || test ! -s conftest.err'
ac1cb8d3
VS
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; }; then
15718 ac_cv_type_int=yes
15719else
15720 echo "$as_me: failed program was:" >&5
15721sed 's/^/| /' conftest.$ac_ext >&5
15722
15723ac_cv_type_int=no
15724fi
ac1cb8d3 15725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15726fi
15727echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15728echo "${ECHO_T}$ac_cv_type_int" >&6
15729
15730echo "$as_me:$LINENO: checking size of int" >&5
15731echo $ECHO_N "checking size of int... $ECHO_C" >&6
15732if test "${ac_cv_sizeof_int+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15734else
15735 if test "$ac_cv_type_int" = yes; then
15736 # The cast to unsigned long works around a bug in the HP C Compiler
15737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15739 # This bug is HP SR number 8606223364.
15740 if test "$cross_compiling" = yes; then
15741 # Depending upon the size, compute the lo and hi bounds.
15742cat >conftest.$ac_ext <<_ACEOF
15743/* confdefs.h. */
15744_ACEOF
15745cat confdefs.h >>conftest.$ac_ext
15746cat >>conftest.$ac_ext <<_ACEOF
15747/* end confdefs.h. */
15748$ac_includes_default
15749int
15750main ()
15751{
15752static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15753test_array [0] = 0
15754
15755 ;
15756 return 0;
15757}
15758_ACEOF
15759rm -f conftest.$ac_objext
15760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15761 (eval $ac_compile) 2>conftest.er1
a848cd7e 15762 ac_status=$?
ac1cb8d3
VS
15763 grep -v '^ *+' conftest.er1 >conftest.err
15764 rm -f conftest.er1
15765 cat conftest.err >&5
a848cd7e
SC
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
b48a2016
DE
15768 { ac_try='test -z "$ac_c_werror_flag"
15769 || test ! -s conftest.err'
ac1cb8d3
VS
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; } &&
15775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; }; then
15781 ac_lo=0 ac_mid=0
15782 while :; do
15783 cat >conftest.$ac_ext <<_ACEOF
15784/* confdefs.h. */
15785_ACEOF
15786cat confdefs.h >>conftest.$ac_ext
15787cat >>conftest.$ac_ext <<_ACEOF
15788/* end confdefs.h. */
15789$ac_includes_default
15790int
15791main ()
15792{
15793static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15794test_array [0] = 0
15795
15796 ;
15797 return 0;
15798}
15799_ACEOF
15800rm -f conftest.$ac_objext
15801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15802 (eval $ac_compile) 2>conftest.er1
a848cd7e 15803 ac_status=$?
ac1cb8d3
VS
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
a848cd7e
SC
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
b48a2016
DE
15809 { ac_try='test -z "$ac_c_werror_flag"
15810 || test ! -s conftest.err'
ac1cb8d3
VS
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_hi=$ac_mid; break
15823else
15824 echo "$as_me: failed program was:" >&5
15825sed 's/^/| /' conftest.$ac_ext >&5
15826
15827ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15828 if test $ac_lo -le $ac_mid; then
15829 ac_lo= ac_hi=
15830 break
15831 fi
15832 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15833fi
ac1cb8d3 15834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15835 done
15836else
15837 echo "$as_me: failed program was:" >&5
15838sed 's/^/| /' conftest.$ac_ext >&5
15839
15840cat >conftest.$ac_ext <<_ACEOF
15841/* confdefs.h. */
15842_ACEOF
15843cat confdefs.h >>conftest.$ac_ext
15844cat >>conftest.$ac_ext <<_ACEOF
15845/* end confdefs.h. */
15846$ac_includes_default
15847int
15848main ()
15849{
15850static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15851test_array [0] = 0
15852
15853 ;
15854 return 0;
15855}
15856_ACEOF
15857rm -f conftest.$ac_objext
15858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15859 (eval $ac_compile) 2>conftest.er1
a848cd7e 15860 ac_status=$?
ac1cb8d3
VS
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
a848cd7e
SC
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } &&
b48a2016
DE
15866 { ac_try='test -z "$ac_c_werror_flag"
15867 || test ! -s conftest.err'
ac1cb8d3
VS
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; } &&
15873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_hi=-1 ac_mid=-1
15880 while :; do
15881 cat >conftest.$ac_ext <<_ACEOF
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
15887$ac_includes_default
15888int
15889main ()
15890{
15891static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15892test_array [0] = 0
15893
15894 ;
15895 return 0;
15896}
15897_ACEOF
15898rm -f conftest.$ac_objext
15899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15900 (eval $ac_compile) 2>conftest.er1
a848cd7e 15901 ac_status=$?
ac1cb8d3
VS
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
a848cd7e
SC
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
b48a2016
DE
15907 { ac_try='test -z "$ac_c_werror_flag"
15908 || test ! -s conftest.err'
ac1cb8d3
VS
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; } &&
15914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_lo=$ac_mid; break
15921else
15922 echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15926 if test $ac_mid -le $ac_hi; then
15927 ac_lo= ac_hi=
15928 break
15929 fi
15930 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15931fi
ac1cb8d3 15932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15933 done
15934else
15935 echo "$as_me: failed program was:" >&5
15936sed 's/^/| /' conftest.$ac_ext >&5
15937
15938ac_lo= ac_hi=
15939fi
ac1cb8d3 15940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15941fi
ac1cb8d3 15942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15943# Binary search between lo and hi bounds.
15944while test "x$ac_lo" != "x$ac_hi"; do
15945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15946 cat >conftest.$ac_ext <<_ACEOF
15947/* confdefs.h. */
15948_ACEOF
15949cat confdefs.h >>conftest.$ac_ext
15950cat >>conftest.$ac_ext <<_ACEOF
15951/* end confdefs.h. */
15952$ac_includes_default
15953int
15954main ()
15955{
15956static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15957test_array [0] = 0
15958
15959 ;
15960 return 0;
15961}
15962_ACEOF
15963rm -f conftest.$ac_objext
15964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15965 (eval $ac_compile) 2>conftest.er1
a848cd7e 15966 ac_status=$?
ac1cb8d3
VS
15967 grep -v '^ *+' conftest.er1 >conftest.err
15968 rm -f conftest.er1
15969 cat conftest.err >&5
a848cd7e
SC
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
b48a2016
DE
15972 { ac_try='test -z "$ac_c_werror_flag"
15973 || test ! -s conftest.err'
ac1cb8d3
VS
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; } &&
15979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 ac_hi=$ac_mid
15986else
15987 echo "$as_me: failed program was:" >&5
15988sed 's/^/| /' conftest.$ac_ext >&5
15989
15990ac_lo=`expr '(' $ac_mid ')' + 1`
15991fi
ac1cb8d3 15992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15993done
15994case $ac_lo in
15995?*) ac_cv_sizeof_int=$ac_lo;;
15996'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15997See \`config.log' for more details." >&5
15998echo "$as_me: error: cannot compute sizeof (int), 77
15999See \`config.log' for more details." >&2;}
16000 { (exit 1); exit 1; }; } ;;
16001esac
16002else
16003 if test "$cross_compiling" = yes; then
b48a2016
DE
16004 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16005See \`config.log' for more details." >&5
16006echo "$as_me: error: cannot run test program while cross compiling
16007See \`config.log' for more details." >&2;}
a848cd7e
SC
16008 { (exit 1); exit 1; }; }
16009else
16010 cat >conftest.$ac_ext <<_ACEOF
16011/* confdefs.h. */
16012_ACEOF
16013cat confdefs.h >>conftest.$ac_ext
16014cat >>conftest.$ac_ext <<_ACEOF
16015/* end confdefs.h. */
16016$ac_includes_default
16017long longval () { return (long) (sizeof (int)); }
16018unsigned long ulongval () { return (long) (sizeof (int)); }
16019#include <stdio.h>
16020#include <stdlib.h>
16021int
16022main ()
16023{
16024
16025 FILE *f = fopen ("conftest.val", "w");
16026 if (! f)
16027 exit (1);
16028 if (((long) (sizeof (int))) < 0)
16029 {
16030 long i = longval ();
16031 if (i != ((long) (sizeof (int))))
16032 exit (1);
16033 fprintf (f, "%ld\n", i);
16034 }
16035 else
16036 {
16037 unsigned long i = ulongval ();
16038 if (i != ((long) (sizeof (int))))
16039 exit (1);
16040 fprintf (f, "%lu\n", i);
16041 }
16042 exit (ferror (f) || fclose (f) != 0);
16043
16044 ;
16045 return 0;
16046}
16047_ACEOF
16048rm -f conftest$ac_exeext
16049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16050 (eval $ac_link) 2>&5
16051 ac_status=$?
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 ac_cv_sizeof_int=`cat conftest.val`
16060else
16061 echo "$as_me: program exited with status $ac_status" >&5
16062echo "$as_me: failed program was:" >&5
16063sed 's/^/| /' conftest.$ac_ext >&5
16064
16065( exit $ac_status )
16066{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16067See \`config.log' for more details." >&5
16068echo "$as_me: error: cannot compute sizeof (int), 77
16069See \`config.log' for more details." >&2;}
16070 { (exit 1); exit 1; }; }
16071fi
ac1cb8d3 16072rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16073fi
16074fi
16075rm -f conftest.val
16076else
16077 ac_cv_sizeof_int=0
16078fi
16079fi
16080echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16081echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16082cat >>confdefs.h <<_ACEOF
16083#define SIZEOF_INT $ac_cv_sizeof_int
16084_ACEOF
16085
16086
16087echo "$as_me:$LINENO: checking for long" >&5
16088echo $ECHO_N "checking for long... $ECHO_C" >&6
16089if test "${ac_cv_type_long+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16091else
16092 cat >conftest.$ac_ext <<_ACEOF
16093/* confdefs.h. */
16094_ACEOF
16095cat confdefs.h >>conftest.$ac_ext
16096cat >>conftest.$ac_ext <<_ACEOF
16097/* end confdefs.h. */
16098$ac_includes_default
16099int
16100main ()
16101{
16102if ((long *) 0)
16103 return 0;
16104if (sizeof (long))
16105 return 0;
16106 ;
16107 return 0;
16108}
16109_ACEOF
16110rm -f conftest.$ac_objext
16111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16112 (eval $ac_compile) 2>conftest.er1
a848cd7e 16113 ac_status=$?
ac1cb8d3
VS
16114 grep -v '^ *+' conftest.er1 >conftest.err
16115 rm -f conftest.er1
16116 cat conftest.err >&5
a848cd7e
SC
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
b48a2016
DE
16119 { ac_try='test -z "$ac_c_werror_flag"
16120 || test ! -s conftest.err'
ac1cb8d3
VS
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 ac_cv_type_long=yes
16133else
16134 echo "$as_me: failed program was:" >&5
16135sed 's/^/| /' conftest.$ac_ext >&5
16136
16137ac_cv_type_long=no
16138fi
ac1cb8d3 16139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16140fi
16141echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16142echo "${ECHO_T}$ac_cv_type_long" >&6
16143
16144echo "$as_me:$LINENO: checking size of long" >&5
16145echo $ECHO_N "checking size of long... $ECHO_C" >&6
16146if test "${ac_cv_sizeof_long+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16148else
16149 if test "$ac_cv_type_long" = yes; then
16150 # The cast to unsigned long works around a bug in the HP C Compiler
16151 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16152 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16153 # This bug is HP SR number 8606223364.
16154 if test "$cross_compiling" = yes; then
16155 # Depending upon the size, compute the lo and hi bounds.
16156cat >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 (long))) >= 0)];
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); } &&
b48a2016
DE
16182 { ac_try='test -z "$ac_c_werror_flag"
16183 || test ! -s conftest.err'
ac1cb8d3
VS
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; } &&
16189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 ac_lo=0 ac_mid=0
16196 while :; do
16197 cat >conftest.$ac_ext <<_ACEOF
16198/* confdefs.h. */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */
16203$ac_includes_default
16204int
16205main ()
16206{
16207static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16208test_array [0] = 0
16209
16210 ;
16211 return 0;
16212}
16213_ACEOF
16214rm -f conftest.$ac_objext
16215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16216 (eval $ac_compile) 2>conftest.er1
a848cd7e 16217 ac_status=$?
ac1cb8d3
VS
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -f conftest.er1
16220 cat conftest.err >&5
a848cd7e
SC
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } &&
b48a2016
DE
16223 { ac_try='test -z "$ac_c_werror_flag"
16224 || test ! -s conftest.err'
ac1cb8d3
VS
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; } &&
16230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16233 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; }; then
16236 ac_hi=$ac_mid; break
16237else
16238 echo "$as_me: failed program was:" >&5
16239sed 's/^/| /' conftest.$ac_ext >&5
16240
16241ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16242 if test $ac_lo -le $ac_mid; then
16243 ac_lo= ac_hi=
16244 break
16245 fi
16246 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16247fi
ac1cb8d3 16248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16249 done
16250else
16251 echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
16253
16254cat >conftest.$ac_ext <<_ACEOF
16255/* confdefs.h. */
16256_ACEOF
16257cat confdefs.h >>conftest.$ac_ext
16258cat >>conftest.$ac_ext <<_ACEOF
16259/* end confdefs.h. */
16260$ac_includes_default
16261int
16262main ()
16263{
16264static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16265test_array [0] = 0
16266
16267 ;
16268 return 0;
16269}
16270_ACEOF
16271rm -f conftest.$ac_objext
16272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16273 (eval $ac_compile) 2>conftest.er1
a848cd7e 16274 ac_status=$?
ac1cb8d3
VS
16275 grep -v '^ *+' conftest.er1 >conftest.err
16276 rm -f conftest.er1
16277 cat conftest.err >&5
a848cd7e
SC
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
b48a2016
DE
16280 { ac_try='test -z "$ac_c_werror_flag"
16281 || test ! -s conftest.err'
ac1cb8d3
VS
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; } &&
16287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 ac_hi=-1 ac_mid=-1
16294 while :; do
16295 cat >conftest.$ac_ext <<_ACEOF
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
16301$ac_includes_default
16302int
16303main ()
16304{
16305static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16306test_array [0] = 0
16307
16308 ;
16309 return 0;
16310}
16311_ACEOF
16312rm -f conftest.$ac_objext
16313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16314 (eval $ac_compile) 2>conftest.er1
a848cd7e 16315 ac_status=$?
ac1cb8d3
VS
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
a848cd7e
SC
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
b48a2016
DE
16321 { ac_try='test -z "$ac_c_werror_flag"
16322 || test ! -s conftest.err'
ac1cb8d3
VS
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; } &&
16328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_lo=$ac_mid; break
16335else
16336 echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16340 if test $ac_mid -le $ac_hi; then
16341 ac_lo= ac_hi=
16342 break
16343 fi
16344 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16345fi
ac1cb8d3 16346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16347 done
16348else
16349 echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352ac_lo= ac_hi=
16353fi
ac1cb8d3 16354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16355fi
ac1cb8d3 16356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16357# Binary search between lo and hi bounds.
16358while test "x$ac_lo" != "x$ac_hi"; do
16359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16360 cat >conftest.$ac_ext <<_ACEOF
16361/* confdefs.h. */
16362_ACEOF
16363cat confdefs.h >>conftest.$ac_ext
16364cat >>conftest.$ac_ext <<_ACEOF
16365/* end confdefs.h. */
16366$ac_includes_default
16367int
16368main ()
16369{
16370static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16371test_array [0] = 0
16372
16373 ;
16374 return 0;
16375}
16376_ACEOF
16377rm -f conftest.$ac_objext
16378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16379 (eval $ac_compile) 2>conftest.er1
a848cd7e 16380 ac_status=$?
ac1cb8d3
VS
16381 grep -v '^ *+' conftest.er1 >conftest.err
16382 rm -f conftest.er1
16383 cat conftest.err >&5
a848cd7e
SC
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } &&
b48a2016
DE
16386 { ac_try='test -z "$ac_c_werror_flag"
16387 || test ! -s conftest.err'
ac1cb8d3
VS
16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 (eval $ac_try) 2>&5
16390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; } &&
16393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; }; then
16399 ac_hi=$ac_mid
16400else
16401 echo "$as_me: failed program was:" >&5
16402sed 's/^/| /' conftest.$ac_ext >&5
16403
16404ac_lo=`expr '(' $ac_mid ')' + 1`
16405fi
ac1cb8d3 16406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16407done
16408case $ac_lo in
16409?*) ac_cv_sizeof_long=$ac_lo;;
16410'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16411See \`config.log' for more details." >&5
16412echo "$as_me: error: cannot compute sizeof (long), 77
16413See \`config.log' for more details." >&2;}
16414 { (exit 1); exit 1; }; } ;;
16415esac
16416else
16417 if test "$cross_compiling" = yes; then
b48a2016
DE
16418 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16419See \`config.log' for more details." >&5
16420echo "$as_me: error: cannot run test program while cross compiling
16421See \`config.log' for more details." >&2;}
a848cd7e
SC
16422 { (exit 1); exit 1; }; }
16423else
16424 cat >conftest.$ac_ext <<_ACEOF
16425/* confdefs.h. */
16426_ACEOF
16427cat confdefs.h >>conftest.$ac_ext
16428cat >>conftest.$ac_ext <<_ACEOF
16429/* end confdefs.h. */
16430$ac_includes_default
16431long longval () { return (long) (sizeof (long)); }
16432unsigned long ulongval () { return (long) (sizeof (long)); }
16433#include <stdio.h>
16434#include <stdlib.h>
16435int
16436main ()
16437{
16438
16439 FILE *f = fopen ("conftest.val", "w");
16440 if (! f)
16441 exit (1);
16442 if (((long) (sizeof (long))) < 0)
16443 {
16444 long i = longval ();
16445 if (i != ((long) (sizeof (long))))
16446 exit (1);
16447 fprintf (f, "%ld\n", i);
16448 }
16449 else
16450 {
16451 unsigned long i = ulongval ();
16452 if (i != ((long) (sizeof (long))))
16453 exit (1);
16454 fprintf (f, "%lu\n", i);
16455 }
16456 exit (ferror (f) || fclose (f) != 0);
16457
16458 ;
16459 return 0;
16460}
16461_ACEOF
16462rm -f conftest$ac_exeext
16463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16464 (eval $ac_link) 2>&5
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 ac_cv_sizeof_long=`cat conftest.val`
16474else
16475 echo "$as_me: program exited with status $ac_status" >&5
16476echo "$as_me: failed program was:" >&5
16477sed 's/^/| /' conftest.$ac_ext >&5
16478
16479( exit $ac_status )
16480{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16481See \`config.log' for more details." >&5
16482echo "$as_me: error: cannot compute sizeof (long), 77
16483See \`config.log' for more details." >&2;}
16484 { (exit 1); exit 1; }; }
16485fi
ac1cb8d3 16486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16487fi
16488fi
16489rm -f conftest.val
16490else
16491 ac_cv_sizeof_long=0
16492fi
16493fi
16494echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16495echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16496cat >>confdefs.h <<_ACEOF
16497#define SIZEOF_LONG $ac_cv_sizeof_long
16498_ACEOF
16499
16500
16501echo "$as_me:$LINENO: checking for size_t" >&5
16502echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16503if test "${ac_cv_type_size_t+set}" = set; then
16504 echo $ECHO_N "(cached) $ECHO_C" >&6
16505else
16506 cat >conftest.$ac_ext <<_ACEOF
16507/* confdefs.h. */
16508_ACEOF
16509cat confdefs.h >>conftest.$ac_ext
16510cat >>conftest.$ac_ext <<_ACEOF
16511/* end confdefs.h. */
16512$ac_includes_default
16513int
16514main ()
16515{
16516if ((size_t *) 0)
16517 return 0;
16518if (sizeof (size_t))
16519 return 0;
16520 ;
16521 return 0;
16522}
16523_ACEOF
16524rm -f conftest.$ac_objext
16525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16526 (eval $ac_compile) 2>conftest.er1
a848cd7e 16527 ac_status=$?
ac1cb8d3
VS
16528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
a848cd7e
SC
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
b48a2016
DE
16533 { ac_try='test -z "$ac_c_werror_flag"
16534 || test ! -s conftest.err'
ac1cb8d3
VS
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; } &&
16540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_cv_type_size_t=yes
16547else
16548 echo "$as_me: failed program was:" >&5
16549sed 's/^/| /' conftest.$ac_ext >&5
16550
16551ac_cv_type_size_t=no
16552fi
ac1cb8d3 16553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16554fi
16555echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16556echo "${ECHO_T}$ac_cv_type_size_t" >&6
16557
16558echo "$as_me:$LINENO: checking size of size_t" >&5
16559echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16560if test "${ac_cv_sizeof_size_t+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16562else
16563 if test "$ac_cv_type_size_t" = yes; then
16564 # The cast to unsigned long works around a bug in the HP C Compiler
16565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16567 # This bug is HP SR number 8606223364.
16568 if test "$cross_compiling" = yes; then
16569 # Depending upon the size, compute the lo and hi bounds.
16570cat >conftest.$ac_ext <<_ACEOF
16571/* confdefs.h. */
16572_ACEOF
16573cat confdefs.h >>conftest.$ac_ext
16574cat >>conftest.$ac_ext <<_ACEOF
16575/* end confdefs.h. */
16576$ac_includes_default
16577int
16578main ()
16579{
16580static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16581test_array [0] = 0
16582
16583 ;
16584 return 0;
16585}
16586_ACEOF
16587rm -f conftest.$ac_objext
16588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16589 (eval $ac_compile) 2>conftest.er1
a848cd7e 16590 ac_status=$?
ac1cb8d3
VS
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
a848cd7e
SC
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
b48a2016
DE
16596 { ac_try='test -z "$ac_c_werror_flag"
16597 || test ! -s conftest.err'
ac1cb8d3
VS
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; } &&
16603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 ac_lo=0 ac_mid=0
16610 while :; do
16611 cat >conftest.$ac_ext <<_ACEOF
16612/* confdefs.h. */
16613_ACEOF
16614cat confdefs.h >>conftest.$ac_ext
16615cat >>conftest.$ac_ext <<_ACEOF
16616/* end confdefs.h. */
16617$ac_includes_default
16618int
16619main ()
16620{
16621static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16622test_array [0] = 0
16623
16624 ;
16625 return 0;
16626}
16627_ACEOF
16628rm -f conftest.$ac_objext
16629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16630 (eval $ac_compile) 2>conftest.er1
a848cd7e 16631 ac_status=$?
ac1cb8d3
VS
16632 grep -v '^ *+' conftest.er1 >conftest.err
16633 rm -f conftest.er1
16634 cat conftest.err >&5
a848cd7e
SC
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); } &&
b48a2016
DE
16637 { ac_try='test -z "$ac_c_werror_flag"
16638 || test ! -s conftest.err'
ac1cb8d3
VS
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; } &&
16644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16646 (eval $ac_try) 2>&5
16647 ac_status=$?
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; }; then
16650 ac_hi=$ac_mid; break
16651else
16652 echo "$as_me: failed program was:" >&5
16653sed 's/^/| /' conftest.$ac_ext >&5
16654
16655ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16656 if test $ac_lo -le $ac_mid; then
16657 ac_lo= ac_hi=
16658 break
16659 fi
16660 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16661fi
ac1cb8d3 16662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16663 done
16664else
16665 echo "$as_me: failed program was:" >&5
16666sed 's/^/| /' conftest.$ac_ext >&5
16667
16668cat >conftest.$ac_ext <<_ACEOF
16669/* confdefs.h. */
16670_ACEOF
16671cat confdefs.h >>conftest.$ac_ext
16672cat >>conftest.$ac_ext <<_ACEOF
16673/* end confdefs.h. */
16674$ac_includes_default
16675int
16676main ()
16677{
16678static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16679test_array [0] = 0
16680
16681 ;
16682 return 0;
16683}
16684_ACEOF
16685rm -f conftest.$ac_objext
16686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16687 (eval $ac_compile) 2>conftest.er1
a848cd7e 16688 ac_status=$?
ac1cb8d3
VS
16689 grep -v '^ *+' conftest.er1 >conftest.err
16690 rm -f conftest.er1
16691 cat conftest.err >&5
a848cd7e
SC
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
b48a2016
DE
16694 { ac_try='test -z "$ac_c_werror_flag"
16695 || test ! -s conftest.err'
ac1cb8d3
VS
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; } &&
16701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; }; then
16707 ac_hi=-1 ac_mid=-1
16708 while :; do
16709 cat >conftest.$ac_ext <<_ACEOF
16710/* confdefs.h. */
16711_ACEOF
16712cat confdefs.h >>conftest.$ac_ext
16713cat >>conftest.$ac_ext <<_ACEOF
16714/* end confdefs.h. */
16715$ac_includes_default
16716int
16717main ()
16718{
16719static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16720test_array [0] = 0
16721
16722 ;
16723 return 0;
16724}
16725_ACEOF
16726rm -f conftest.$ac_objext
16727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16728 (eval $ac_compile) 2>conftest.er1
a848cd7e 16729 ac_status=$?
ac1cb8d3
VS
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
a848cd7e
SC
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
b48a2016
DE
16735 { ac_try='test -z "$ac_c_werror_flag"
16736 || test ! -s conftest.err'
ac1cb8d3
VS
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_lo=$ac_mid; break
16749else
16750 echo "$as_me: failed program was:" >&5
16751sed 's/^/| /' conftest.$ac_ext >&5
16752
16753ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16754 if test $ac_mid -le $ac_hi; then
16755 ac_lo= ac_hi=
16756 break
16757 fi
16758 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16759fi
ac1cb8d3 16760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16761 done
16762else
16763 echo "$as_me: failed program was:" >&5
16764sed 's/^/| /' conftest.$ac_ext >&5
16765
16766ac_lo= ac_hi=
16767fi
ac1cb8d3 16768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16769fi
ac1cb8d3 16770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16771# Binary search between lo and hi bounds.
16772while test "x$ac_lo" != "x$ac_hi"; do
16773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16774 cat >conftest.$ac_ext <<_ACEOF
16775/* confdefs.h. */
16776_ACEOF
16777cat confdefs.h >>conftest.$ac_ext
16778cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */
16780$ac_includes_default
16781int
16782main ()
16783{
16784static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16785test_array [0] = 0
16786
16787 ;
16788 return 0;
16789}
16790_ACEOF
16791rm -f conftest.$ac_objext
16792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16793 (eval $ac_compile) 2>conftest.er1
a848cd7e 16794 ac_status=$?
ac1cb8d3
VS
16795 grep -v '^ *+' conftest.er1 >conftest.err
16796 rm -f conftest.er1
16797 cat conftest.err >&5
a848cd7e
SC
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } &&
b48a2016
DE
16800 { ac_try='test -z "$ac_c_werror_flag"
16801 || test ! -s conftest.err'
ac1cb8d3
VS
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; } &&
16807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_hi=$ac_mid
16814else
16815 echo "$as_me: failed program was:" >&5
16816sed 's/^/| /' conftest.$ac_ext >&5
16817
16818ac_lo=`expr '(' $ac_mid ')' + 1`
16819fi
ac1cb8d3 16820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16821done
16822case $ac_lo in
16823?*) ac_cv_sizeof_size_t=$ac_lo;;
16824'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16825See \`config.log' for more details." >&5
16826echo "$as_me: error: cannot compute sizeof (size_t), 77
16827See \`config.log' for more details." >&2;}
16828 { (exit 1); exit 1; }; } ;;
16829esac
16830else
16831 if test "$cross_compiling" = yes; then
b48a2016
DE
16832 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16833See \`config.log' for more details." >&5
16834echo "$as_me: error: cannot run test program while cross compiling
16835See \`config.log' for more details." >&2;}
a848cd7e
SC
16836 { (exit 1); exit 1; }; }
16837else
16838 cat >conftest.$ac_ext <<_ACEOF
16839/* confdefs.h. */
16840_ACEOF
16841cat confdefs.h >>conftest.$ac_ext
16842cat >>conftest.$ac_ext <<_ACEOF
16843/* end confdefs.h. */
16844$ac_includes_default
16845long longval () { return (long) (sizeof (size_t)); }
16846unsigned long ulongval () { return (long) (sizeof (size_t)); }
16847#include <stdio.h>
16848#include <stdlib.h>
16849int
16850main ()
16851{
16852
16853 FILE *f = fopen ("conftest.val", "w");
16854 if (! f)
16855 exit (1);
16856 if (((long) (sizeof (size_t))) < 0)
16857 {
16858 long i = longval ();
16859 if (i != ((long) (sizeof (size_t))))
16860 exit (1);
16861 fprintf (f, "%ld\n", i);
16862 }
16863 else
16864 {
16865 unsigned long i = ulongval ();
16866 if (i != ((long) (sizeof (size_t))))
16867 exit (1);
16868 fprintf (f, "%lu\n", i);
16869 }
16870 exit (ferror (f) || fclose (f) != 0);
16871
16872 ;
16873 return 0;
16874}
16875_ACEOF
16876rm -f conftest$ac_exeext
16877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 ac_cv_sizeof_size_t=`cat conftest.val`
16888else
16889 echo "$as_me: program exited with status $ac_status" >&5
16890echo "$as_me: failed program was:" >&5
16891sed 's/^/| /' conftest.$ac_ext >&5
16892
16893( exit $ac_status )
16894{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16895See \`config.log' for more details." >&5
16896echo "$as_me: error: cannot compute sizeof (size_t), 77
16897See \`config.log' for more details." >&2;}
16898 { (exit 1); exit 1; }; }
16899fi
ac1cb8d3 16900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16901fi
16902fi
16903rm -f conftest.val
16904else
16905 ac_cv_sizeof_size_t=0
16906fi
16907fi
16908echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16909echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16910cat >>confdefs.h <<_ACEOF
16911#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16912_ACEOF
16913
16914
16915
16916case "${host}" in
16917 arm-*-linux* )
16918 echo "$as_me:$LINENO: checking for long long" >&5
16919echo $ECHO_N "checking for long long... $ECHO_C" >&6
16920if test "${ac_cv_type_long_long+set}" = set; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
16922else
16923 cat >conftest.$ac_ext <<_ACEOF
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
16929$ac_includes_default
16930int
16931main ()
16932{
16933if ((long long *) 0)
16934 return 0;
16935if (sizeof (long long))
16936 return 0;
16937 ;
16938 return 0;
16939}
16940_ACEOF
16941rm -f conftest.$ac_objext
16942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16943 (eval $ac_compile) 2>conftest.er1
a848cd7e 16944 ac_status=$?
ac1cb8d3
VS
16945 grep -v '^ *+' conftest.er1 >conftest.err
16946 rm -f conftest.er1
16947 cat conftest.err >&5
a848cd7e
SC
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
b48a2016
DE
16950 { ac_try='test -z "$ac_c_werror_flag"
16951 || test ! -s conftest.err'
ac1cb8d3
VS
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } &&
16957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_cv_type_long_long=yes
16964else
16965 echo "$as_me: failed program was:" >&5
16966sed 's/^/| /' conftest.$ac_ext >&5
16967
16968ac_cv_type_long_long=no
16969fi
ac1cb8d3 16970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16971fi
16972echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16973echo "${ECHO_T}$ac_cv_type_long_long" >&6
16974
16975echo "$as_me:$LINENO: checking size of long long" >&5
16976echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16977if test "${ac_cv_sizeof_long_long+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16979else
16980 if test "$ac_cv_type_long_long" = yes; then
16981 # The cast to unsigned long works around a bug in the HP C Compiler
16982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16984 # This bug is HP SR number 8606223364.
16985 if test "$cross_compiling" = yes; then
16986 # Depending upon the size, compute the lo and hi bounds.
16987cat >conftest.$ac_ext <<_ACEOF
16988/* confdefs.h. */
16989_ACEOF
16990cat confdefs.h >>conftest.$ac_ext
16991cat >>conftest.$ac_ext <<_ACEOF
16992/* end confdefs.h. */
16993$ac_includes_default
16994int
16995main ()
16996{
16997static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16998test_array [0] = 0
16999
17000 ;
17001 return 0;
17002}
17003_ACEOF
17004rm -f conftest.$ac_objext
17005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17006 (eval $ac_compile) 2>conftest.er1
a848cd7e 17007 ac_status=$?
ac1cb8d3
VS
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
a848cd7e
SC
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
b48a2016
DE
17013 { ac_try='test -z "$ac_c_werror_flag"
17014 || test ! -s conftest.err'
ac1cb8d3
VS
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; } &&
17020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_lo=0 ac_mid=0
17027 while :; do
17028 cat >conftest.$ac_ext <<_ACEOF
17029/* confdefs.h. */
17030_ACEOF
17031cat confdefs.h >>conftest.$ac_ext
17032cat >>conftest.$ac_ext <<_ACEOF
17033/* end confdefs.h. */
17034$ac_includes_default
17035int
17036main ()
17037{
17038static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17039test_array [0] = 0
17040
17041 ;
17042 return 0;
17043}
17044_ACEOF
17045rm -f conftest.$ac_objext
17046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17047 (eval $ac_compile) 2>conftest.er1
a848cd7e 17048 ac_status=$?
ac1cb8d3
VS
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
a848cd7e
SC
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
b48a2016
DE
17054 { ac_try='test -z "$ac_c_werror_flag"
17055 || test ! -s conftest.err'
ac1cb8d3
VS
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_hi=$ac_mid; break
17068else
17069 echo "$as_me: failed program was:" >&5
17070sed 's/^/| /' conftest.$ac_ext >&5
17071
17072ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17073 if test $ac_lo -le $ac_mid; then
17074 ac_lo= ac_hi=
17075 break
17076 fi
17077 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17078fi
ac1cb8d3 17079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17080 done
17081else
17082 echo "$as_me: failed program was:" >&5
17083sed 's/^/| /' conftest.$ac_ext >&5
17084
17085cat >conftest.$ac_ext <<_ACEOF
17086/* confdefs.h. */
17087_ACEOF
17088cat confdefs.h >>conftest.$ac_ext
17089cat >>conftest.$ac_ext <<_ACEOF
17090/* end confdefs.h. */
17091$ac_includes_default
17092int
17093main ()
17094{
17095static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17096test_array [0] = 0
17097
17098 ;
17099 return 0;
17100}
17101_ACEOF
17102rm -f conftest.$ac_objext
17103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17104 (eval $ac_compile) 2>conftest.er1
a848cd7e 17105 ac_status=$?
ac1cb8d3
VS
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
a848cd7e
SC
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
b48a2016
DE
17111 { ac_try='test -z "$ac_c_werror_flag"
17112 || test ! -s conftest.err'
ac1cb8d3
VS
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_hi=-1 ac_mid=-1
17125 while :; do
17126 cat >conftest.$ac_ext <<_ACEOF
17127/* confdefs.h. */
17128_ACEOF
17129cat confdefs.h >>conftest.$ac_ext
17130cat >>conftest.$ac_ext <<_ACEOF
17131/* end confdefs.h. */
17132$ac_includes_default
17133int
17134main ()
17135{
17136static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17137test_array [0] = 0
17138
17139 ;
17140 return 0;
17141}
17142_ACEOF
17143rm -f conftest.$ac_objext
17144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17145 (eval $ac_compile) 2>conftest.er1
a848cd7e 17146 ac_status=$?
ac1cb8d3
VS
17147 grep -v '^ *+' conftest.er1 >conftest.err
17148 rm -f conftest.er1
17149 cat conftest.err >&5
a848cd7e
SC
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } &&
b48a2016
DE
17152 { ac_try='test -z "$ac_c_werror_flag"
17153 || test ! -s conftest.err'
ac1cb8d3
VS
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165 ac_lo=$ac_mid; break
17166else
17167 echo "$as_me: failed program was:" >&5
17168sed 's/^/| /' conftest.$ac_ext >&5
17169
17170ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17171 if test $ac_mid -le $ac_hi; then
17172 ac_lo= ac_hi=
17173 break
17174 fi
17175 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17176fi
ac1cb8d3 17177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17178 done
17179else
17180 echo "$as_me: failed program was:" >&5
17181sed 's/^/| /' conftest.$ac_ext >&5
17182
17183ac_lo= ac_hi=
17184fi
ac1cb8d3 17185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17186fi
ac1cb8d3 17187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17188# Binary search between lo and hi bounds.
17189while test "x$ac_lo" != "x$ac_hi"; do
17190 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17191 cat >conftest.$ac_ext <<_ACEOF
17192/* confdefs.h. */
17193_ACEOF
17194cat confdefs.h >>conftest.$ac_ext
17195cat >>conftest.$ac_ext <<_ACEOF
17196/* end confdefs.h. */
17197$ac_includes_default
17198int
17199main ()
17200{
17201static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17202test_array [0] = 0
17203
17204 ;
17205 return 0;
17206}
17207_ACEOF
17208rm -f conftest.$ac_objext
17209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17210 (eval $ac_compile) 2>conftest.er1
a848cd7e 17211 ac_status=$?
ac1cb8d3
VS
17212 grep -v '^ *+' conftest.er1 >conftest.err
17213 rm -f conftest.er1
17214 cat conftest.err >&5
a848cd7e
SC
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
b48a2016
DE
17217 { ac_try='test -z "$ac_c_werror_flag"
17218 || test ! -s conftest.err'
ac1cb8d3
VS
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; } &&
17224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17227 ac_status=$?
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 ac_hi=$ac_mid
17231else
17232 echo "$as_me: failed program was:" >&5
17233sed 's/^/| /' conftest.$ac_ext >&5
17234
17235ac_lo=`expr '(' $ac_mid ')' + 1`
17236fi
ac1cb8d3 17237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17238done
17239case $ac_lo in
17240?*) ac_cv_sizeof_long_long=$ac_lo;;
17241'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17242See \`config.log' for more details." >&5
17243echo "$as_me: error: cannot compute sizeof (long long), 77
17244See \`config.log' for more details." >&2;}
17245 { (exit 1); exit 1; }; } ;;
17246esac
17247else
17248 if test "$cross_compiling" = yes; then
b48a2016
DE
17249 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17250See \`config.log' for more details." >&5
17251echo "$as_me: error: cannot run test program while cross compiling
17252See \`config.log' for more details." >&2;}
a848cd7e
SC
17253 { (exit 1); exit 1; }; }
17254else
17255 cat >conftest.$ac_ext <<_ACEOF
17256/* confdefs.h. */
17257_ACEOF
17258cat confdefs.h >>conftest.$ac_ext
17259cat >>conftest.$ac_ext <<_ACEOF
17260/* end confdefs.h. */
17261$ac_includes_default
17262long longval () { return (long) (sizeof (long long)); }
17263unsigned long ulongval () { return (long) (sizeof (long long)); }
17264#include <stdio.h>
17265#include <stdlib.h>
17266int
17267main ()
17268{
17269
17270 FILE *f = fopen ("conftest.val", "w");
17271 if (! f)
17272 exit (1);
17273 if (((long) (sizeof (long long))) < 0)
17274 {
17275 long i = longval ();
17276 if (i != ((long) (sizeof (long long))))
17277 exit (1);
17278 fprintf (f, "%ld\n", i);
17279 }
17280 else
17281 {
17282 unsigned long i = ulongval ();
17283 if (i != ((long) (sizeof (long long))))
17284 exit (1);
17285 fprintf (f, "%lu\n", i);
17286 }
17287 exit (ferror (f) || fclose (f) != 0);
17288
17289 ;
17290 return 0;
17291}
17292_ACEOF
17293rm -f conftest$ac_exeext
17294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17295 (eval $ac_link) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_cv_sizeof_long_long=`cat conftest.val`
17305else
17306 echo "$as_me: program exited with status $ac_status" >&5
17307echo "$as_me: failed program was:" >&5
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
17310( exit $ac_status )
17311{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17312See \`config.log' for more details." >&5
17313echo "$as_me: error: cannot compute sizeof (long long), 77
17314See \`config.log' for more details." >&2;}
17315 { (exit 1); exit 1; }; }
17316fi
ac1cb8d3 17317rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17318fi
17319fi
17320rm -f conftest.val
17321else
17322 ac_cv_sizeof_long_long=0
17323fi
17324fi
17325echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17326echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17327cat >>confdefs.h <<_ACEOF
17328#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17329_ACEOF
17330
17331
17332 ;;
17333 *-hp-hpux* )
17334 echo "$as_me:$LINENO: checking for long long" >&5
17335echo $ECHO_N "checking for long long... $ECHO_C" >&6
17336if test "${ac_cv_type_long_long+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17338else
17339 cat >conftest.$ac_ext <<_ACEOF
17340/* confdefs.h. */
17341_ACEOF
17342cat confdefs.h >>conftest.$ac_ext
17343cat >>conftest.$ac_ext <<_ACEOF
17344/* end confdefs.h. */
17345$ac_includes_default
17346int
17347main ()
17348{
17349if ((long long *) 0)
17350 return 0;
17351if (sizeof (long long))
17352 return 0;
17353 ;
17354 return 0;
17355}
17356_ACEOF
17357rm -f conftest.$ac_objext
17358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17359 (eval $ac_compile) 2>conftest.er1
a848cd7e 17360 ac_status=$?
ac1cb8d3
VS
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
a848cd7e
SC
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
b48a2016
DE
17366 { ac_try='test -z "$ac_c_werror_flag"
17367 || test ! -s conftest.err'
ac1cb8d3
VS
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; }; then
17379 ac_cv_type_long_long=yes
17380else
17381 echo "$as_me: failed program was:" >&5
17382sed 's/^/| /' conftest.$ac_ext >&5
17383
17384ac_cv_type_long_long=no
17385fi
ac1cb8d3 17386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17387fi
17388echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17389echo "${ECHO_T}$ac_cv_type_long_long" >&6
17390
17391echo "$as_me:$LINENO: checking size of long long" >&5
17392echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17393if test "${ac_cv_sizeof_long_long+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17395else
17396 if test "$ac_cv_type_long_long" = yes; then
17397 # The cast to unsigned long works around a bug in the HP C Compiler
17398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17400 # This bug is HP SR number 8606223364.
17401 if test "$cross_compiling" = yes; then
17402 # Depending upon the size, compute the lo and hi bounds.
17403cat >conftest.$ac_ext <<_ACEOF
17404/* confdefs.h. */
17405_ACEOF
17406cat confdefs.h >>conftest.$ac_ext
17407cat >>conftest.$ac_ext <<_ACEOF
17408/* end confdefs.h. */
17409$ac_includes_default
17410int
17411main ()
17412{
17413static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17414test_array [0] = 0
17415
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420rm -f conftest.$ac_objext
17421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17422 (eval $ac_compile) 2>conftest.er1
a848cd7e 17423 ac_status=$?
ac1cb8d3
VS
17424 grep -v '^ *+' conftest.er1 >conftest.err
17425 rm -f conftest.er1
17426 cat conftest.err >&5
a848cd7e
SC
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } &&
b48a2016
DE
17429 { ac_try='test -z "$ac_c_werror_flag"
17430 || test ! -s conftest.err'
ac1cb8d3
VS
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; } &&
17436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; }; then
17442 ac_lo=0 ac_mid=0
17443 while :; do
17444 cat >conftest.$ac_ext <<_ACEOF
17445/* confdefs.h. */
17446_ACEOF
17447cat confdefs.h >>conftest.$ac_ext
17448cat >>conftest.$ac_ext <<_ACEOF
17449/* end confdefs.h. */
17450$ac_includes_default
17451int
17452main ()
17453{
17454static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17455test_array [0] = 0
17456
17457 ;
17458 return 0;
17459}
17460_ACEOF
17461rm -f conftest.$ac_objext
17462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17463 (eval $ac_compile) 2>conftest.er1
a848cd7e 17464 ac_status=$?
ac1cb8d3
VS
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
a848cd7e
SC
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
b48a2016
DE
17470 { ac_try='test -z "$ac_c_werror_flag"
17471 || test ! -s conftest.err'
ac1cb8d3
VS
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; }; then
17483 ac_hi=$ac_mid; break
17484else
17485 echo "$as_me: failed program was:" >&5
17486sed 's/^/| /' conftest.$ac_ext >&5
17487
17488ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17489 if test $ac_lo -le $ac_mid; then
17490 ac_lo= ac_hi=
17491 break
17492 fi
17493 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17494fi
ac1cb8d3 17495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17496 done
17497else
17498 echo "$as_me: failed program was:" >&5
17499sed 's/^/| /' conftest.$ac_ext >&5
17500
17501cat >conftest.$ac_ext <<_ACEOF
17502/* confdefs.h. */
17503_ACEOF
17504cat confdefs.h >>conftest.$ac_ext
17505cat >>conftest.$ac_ext <<_ACEOF
17506/* end confdefs.h. */
17507$ac_includes_default
17508int
17509main ()
17510{
17511static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17512test_array [0] = 0
17513
17514 ;
17515 return 0;
17516}
17517_ACEOF
17518rm -f conftest.$ac_objext
17519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17520 (eval $ac_compile) 2>conftest.er1
a848cd7e 17521 ac_status=$?
ac1cb8d3
VS
17522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
a848cd7e
SC
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
b48a2016
DE
17527 { ac_try='test -z "$ac_c_werror_flag"
17528 || test ! -s conftest.err'
ac1cb8d3
VS
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 ac_hi=-1 ac_mid=-1
17541 while :; do
17542 cat >conftest.$ac_ext <<_ACEOF
17543/* confdefs.h. */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h. */
17548$ac_includes_default
17549int
17550main ()
17551{
17552static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17553test_array [0] = 0
17554
17555 ;
17556 return 0;
17557}
17558_ACEOF
17559rm -f conftest.$ac_objext
17560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17561 (eval $ac_compile) 2>conftest.er1
a848cd7e 17562 ac_status=$?
ac1cb8d3
VS
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
a848cd7e
SC
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
b48a2016
DE
17568 { ac_try='test -z "$ac_c_werror_flag"
17569 || test ! -s conftest.err'
ac1cb8d3
VS
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 ac_lo=$ac_mid; break
17582else
17583 echo "$as_me: failed program was:" >&5
17584sed 's/^/| /' conftest.$ac_ext >&5
17585
17586ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17587 if test $ac_mid -le $ac_hi; then
17588 ac_lo= ac_hi=
17589 break
17590 fi
17591 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17592fi
ac1cb8d3 17593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17594 done
17595else
17596 echo "$as_me: failed program was:" >&5
17597sed 's/^/| /' conftest.$ac_ext >&5
17598
17599ac_lo= ac_hi=
17600fi
ac1cb8d3 17601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17602fi
ac1cb8d3 17603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17604# Binary search between lo and hi bounds.
17605while test "x$ac_lo" != "x$ac_hi"; do
17606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17607 cat >conftest.$ac_ext <<_ACEOF
17608/* confdefs.h. */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h. */
17613$ac_includes_default
17614int
17615main ()
17616{
17617static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17618test_array [0] = 0
17619
17620 ;
17621 return 0;
17622}
17623_ACEOF
17624rm -f conftest.$ac_objext
17625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17626 (eval $ac_compile) 2>conftest.er1
a848cd7e 17627 ac_status=$?
ac1cb8d3
VS
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
a848cd7e
SC
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
b48a2016
DE
17633 { ac_try='test -z "$ac_c_werror_flag"
17634 || test ! -s conftest.err'
ac1cb8d3
VS
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_hi=$ac_mid
17647else
17648 echo "$as_me: failed program was:" >&5
17649sed 's/^/| /' conftest.$ac_ext >&5
17650
17651ac_lo=`expr '(' $ac_mid ')' + 1`
17652fi
ac1cb8d3 17653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17654done
17655case $ac_lo in
17656?*) ac_cv_sizeof_long_long=$ac_lo;;
17657'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17658See \`config.log' for more details." >&5
17659echo "$as_me: error: cannot compute sizeof (long long), 77
17660See \`config.log' for more details." >&2;}
17661 { (exit 1); exit 1; }; } ;;
17662esac
17663else
17664 if test "$cross_compiling" = yes; then
b48a2016
DE
17665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17666See \`config.log' for more details." >&5
17667echo "$as_me: error: cannot run test program while cross compiling
17668See \`config.log' for more details." >&2;}
a848cd7e
SC
17669 { (exit 1); exit 1; }; }
17670else
17671 cat >conftest.$ac_ext <<_ACEOF
17672/* confdefs.h. */
17673_ACEOF
17674cat confdefs.h >>conftest.$ac_ext
17675cat >>conftest.$ac_ext <<_ACEOF
17676/* end confdefs.h. */
17677$ac_includes_default
17678long longval () { return (long) (sizeof (long long)); }
17679unsigned long ulongval () { return (long) (sizeof (long long)); }
17680#include <stdio.h>
17681#include <stdlib.h>
17682int
17683main ()
17684{
17685
17686 FILE *f = fopen ("conftest.val", "w");
17687 if (! f)
17688 exit (1);
17689 if (((long) (sizeof (long long))) < 0)
17690 {
17691 long i = longval ();
17692 if (i != ((long) (sizeof (long long))))
17693 exit (1);
17694 fprintf (f, "%ld\n", i);
17695 }
17696 else
17697 {
17698 unsigned long i = ulongval ();
17699 if (i != ((long) (sizeof (long long))))
17700 exit (1);
17701 fprintf (f, "%lu\n", i);
17702 }
17703 exit (ferror (f) || fclose (f) != 0);
17704
17705 ;
17706 return 0;
17707}
17708_ACEOF
17709rm -f conftest$ac_exeext
17710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17711 (eval $ac_link) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_cv_sizeof_long_long=`cat conftest.val`
17721else
17722 echo "$as_me: program exited with status $ac_status" >&5
17723echo "$as_me: failed program was:" >&5
17724sed 's/^/| /' conftest.$ac_ext >&5
17725
17726( exit $ac_status )
17727{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17728See \`config.log' for more details." >&5
17729echo "$as_me: error: cannot compute sizeof (long long), 77
17730See \`config.log' for more details." >&2;}
17731 { (exit 1); exit 1; }; }
17732fi
ac1cb8d3 17733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17734fi
17735fi
17736rm -f conftest.val
17737else
17738 ac_cv_sizeof_long_long=0
17739fi
17740fi
17741echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17742echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17743cat >>confdefs.h <<_ACEOF
17744#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17745_ACEOF
17746
17747
17748 if test "$ac_cv_sizeof_long_long" != "0"; then
17749 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17750 fi
17751 ;;
17752 * )
17753 echo "$as_me:$LINENO: checking for long long" >&5
17754echo $ECHO_N "checking for long long... $ECHO_C" >&6
17755if test "${ac_cv_type_long_long+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757else
17758 cat >conftest.$ac_ext <<_ACEOF
17759/* confdefs.h. */
17760_ACEOF
17761cat confdefs.h >>conftest.$ac_ext
17762cat >>conftest.$ac_ext <<_ACEOF
17763/* end confdefs.h. */
17764$ac_includes_default
17765int
17766main ()
17767{
17768if ((long long *) 0)
17769 return 0;
17770if (sizeof (long long))
17771 return 0;
17772 ;
17773 return 0;
17774}
17775_ACEOF
17776rm -f conftest.$ac_objext
17777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17778 (eval $ac_compile) 2>conftest.er1
a848cd7e 17779 ac_status=$?
ac1cb8d3
VS
17780 grep -v '^ *+' conftest.er1 >conftest.err
17781 rm -f conftest.er1
17782 cat conftest.err >&5
a848cd7e
SC
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
b48a2016
DE
17785 { ac_try='test -z "$ac_c_werror_flag"
17786 || test ! -s conftest.err'
ac1cb8d3
VS
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; } &&
17792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
17798 ac_cv_type_long_long=yes
17799else
17800 echo "$as_me: failed program was:" >&5
17801sed 's/^/| /' conftest.$ac_ext >&5
17802
17803ac_cv_type_long_long=no
17804fi
ac1cb8d3 17805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17806fi
17807echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17808echo "${ECHO_T}$ac_cv_type_long_long" >&6
17809
17810echo "$as_me:$LINENO: checking size of long long" >&5
17811echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17812if test "${ac_cv_sizeof_long_long+set}" = set; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17814else
17815 if test "$ac_cv_type_long_long" = yes; then
17816 # The cast to unsigned long works around a bug in the HP C Compiler
17817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17819 # This bug is HP SR number 8606223364.
17820 if test "$cross_compiling" = yes; then
17821 # Depending upon the size, compute the lo and hi bounds.
17822cat >conftest.$ac_ext <<_ACEOF
17823/* confdefs.h. */
17824_ACEOF
17825cat confdefs.h >>conftest.$ac_ext
17826cat >>conftest.$ac_ext <<_ACEOF
17827/* end confdefs.h. */
17828$ac_includes_default
17829int
17830main ()
17831{
17832static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17833test_array [0] = 0
17834
17835 ;
17836 return 0;
17837}
17838_ACEOF
17839rm -f conftest.$ac_objext
17840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17841 (eval $ac_compile) 2>conftest.er1
a848cd7e 17842 ac_status=$?
ac1cb8d3
VS
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
a848cd7e
SC
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
b48a2016
DE
17848 { ac_try='test -z "$ac_c_werror_flag"
17849 || test ! -s conftest.err'
ac1cb8d3
VS
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17861 ac_lo=0 ac_mid=0
17862 while :; do
17863 cat >conftest.$ac_ext <<_ACEOF
17864/* confdefs.h. */
17865_ACEOF
17866cat confdefs.h >>conftest.$ac_ext
17867cat >>conftest.$ac_ext <<_ACEOF
17868/* end confdefs.h. */
17869$ac_includes_default
17870int
17871main ()
17872{
17873static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17874test_array [0] = 0
17875
17876 ;
17877 return 0;
17878}
17879_ACEOF
17880rm -f conftest.$ac_objext
17881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17882 (eval $ac_compile) 2>conftest.er1
a848cd7e 17883 ac_status=$?
ac1cb8d3
VS
17884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
a848cd7e
SC
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
b48a2016
DE
17889 { ac_try='test -z "$ac_c_werror_flag"
17890 || test ! -s conftest.err'
ac1cb8d3
VS
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; } &&
17896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_hi=$ac_mid; break
17903else
17904 echo "$as_me: failed program was:" >&5
17905sed 's/^/| /' conftest.$ac_ext >&5
17906
17907ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17908 if test $ac_lo -le $ac_mid; then
17909 ac_lo= ac_hi=
17910 break
17911 fi
17912 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17913fi
ac1cb8d3 17914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17915 done
17916else
17917 echo "$as_me: failed program was:" >&5
17918sed 's/^/| /' conftest.$ac_ext >&5
17919
17920cat >conftest.$ac_ext <<_ACEOF
17921/* confdefs.h. */
17922_ACEOF
17923cat confdefs.h >>conftest.$ac_ext
17924cat >>conftest.$ac_ext <<_ACEOF
17925/* end confdefs.h. */
17926$ac_includes_default
17927int
17928main ()
17929{
17930static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17931test_array [0] = 0
17932
17933 ;
17934 return 0;
17935}
17936_ACEOF
17937rm -f conftest.$ac_objext
17938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17939 (eval $ac_compile) 2>conftest.er1
a848cd7e 17940 ac_status=$?
ac1cb8d3
VS
17941 grep -v '^ *+' conftest.er1 >conftest.err
17942 rm -f conftest.er1
17943 cat conftest.err >&5
a848cd7e
SC
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
b48a2016
DE
17946 { ac_try='test -z "$ac_c_werror_flag"
17947 || test ! -s conftest.err'
ac1cb8d3
VS
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_hi=-1 ac_mid=-1
17960 while :; do
17961 cat >conftest.$ac_ext <<_ACEOF
17962/* confdefs.h. */
17963_ACEOF
17964cat confdefs.h >>conftest.$ac_ext
17965cat >>conftest.$ac_ext <<_ACEOF
17966/* end confdefs.h. */
17967$ac_includes_default
17968int
17969main ()
17970{
17971static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17972test_array [0] = 0
17973
17974 ;
17975 return 0;
17976}
17977_ACEOF
17978rm -f conftest.$ac_objext
17979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17980 (eval $ac_compile) 2>conftest.er1
a848cd7e 17981 ac_status=$?
ac1cb8d3
VS
17982 grep -v '^ *+' conftest.er1 >conftest.err
17983 rm -f conftest.er1
17984 cat conftest.err >&5
a848cd7e
SC
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
b48a2016
DE
17987 { ac_try='test -z "$ac_c_werror_flag"
17988 || test ! -s conftest.err'
ac1cb8d3
VS
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_lo=$ac_mid; break
18001else
18002 echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18006 if test $ac_mid -le $ac_hi; then
18007 ac_lo= ac_hi=
18008 break
18009 fi
18010 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18011fi
ac1cb8d3 18012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18013 done
18014else
18015 echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018ac_lo= ac_hi=
18019fi
ac1cb8d3 18020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18021fi
ac1cb8d3 18022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18023# Binary search between lo and hi bounds.
18024while test "x$ac_lo" != "x$ac_hi"; do
18025 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18026 cat >conftest.$ac_ext <<_ACEOF
18027/* confdefs.h. */
18028_ACEOF
18029cat confdefs.h >>conftest.$ac_ext
18030cat >>conftest.$ac_ext <<_ACEOF
18031/* end confdefs.h. */
18032$ac_includes_default
18033int
18034main ()
18035{
18036static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18037test_array [0] = 0
18038
18039 ;
18040 return 0;
18041}
18042_ACEOF
18043rm -f conftest.$ac_objext
18044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18045 (eval $ac_compile) 2>conftest.er1
a848cd7e 18046 ac_status=$?
ac1cb8d3
VS
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
a848cd7e
SC
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
b48a2016
DE
18052 { ac_try='test -z "$ac_c_werror_flag"
18053 || test ! -s conftest.err'
ac1cb8d3
VS
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; } &&
18059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; }; then
18065 ac_hi=$ac_mid
18066else
18067 echo "$as_me: failed program was:" >&5
18068sed 's/^/| /' conftest.$ac_ext >&5
18069
18070ac_lo=`expr '(' $ac_mid ')' + 1`
18071fi
ac1cb8d3 18072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18073done
18074case $ac_lo in
18075?*) ac_cv_sizeof_long_long=$ac_lo;;
18076'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18077See \`config.log' for more details." >&5
18078echo "$as_me: error: cannot compute sizeof (long long), 77
18079See \`config.log' for more details." >&2;}
18080 { (exit 1); exit 1; }; } ;;
18081esac
18082else
18083 if test "$cross_compiling" = yes; then
b48a2016
DE
18084 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18085See \`config.log' for more details." >&5
18086echo "$as_me: error: cannot run test program while cross compiling
18087See \`config.log' for more details." >&2;}
a848cd7e
SC
18088 { (exit 1); exit 1; }; }
18089else
18090 cat >conftest.$ac_ext <<_ACEOF
18091/* confdefs.h. */
18092_ACEOF
18093cat confdefs.h >>conftest.$ac_ext
18094cat >>conftest.$ac_ext <<_ACEOF
18095/* end confdefs.h. */
18096$ac_includes_default
18097long longval () { return (long) (sizeof (long long)); }
18098unsigned long ulongval () { return (long) (sizeof (long long)); }
18099#include <stdio.h>
18100#include <stdlib.h>
18101int
18102main ()
18103{
18104
18105 FILE *f = fopen ("conftest.val", "w");
18106 if (! f)
18107 exit (1);
18108 if (((long) (sizeof (long long))) < 0)
18109 {
18110 long i = longval ();
18111 if (i != ((long) (sizeof (long long))))
18112 exit (1);
18113 fprintf (f, "%ld\n", i);
18114 }
18115 else
18116 {
18117 unsigned long i = ulongval ();
18118 if (i != ((long) (sizeof (long long))))
18119 exit (1);
18120 fprintf (f, "%lu\n", i);
18121 }
18122 exit (ferror (f) || fclose (f) != 0);
18123
18124 ;
18125 return 0;
18126}
18127_ACEOF
18128rm -f conftest$ac_exeext
18129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18130 (eval $ac_link) 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; }; then
18139 ac_cv_sizeof_long_long=`cat conftest.val`
18140else
18141 echo "$as_me: program exited with status $ac_status" >&5
18142echo "$as_me: failed program was:" >&5
18143sed 's/^/| /' conftest.$ac_ext >&5
18144
18145( exit $ac_status )
18146{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18147See \`config.log' for more details." >&5
18148echo "$as_me: error: cannot compute sizeof (long long), 77
18149See \`config.log' for more details." >&2;}
18150 { (exit 1); exit 1; }; }
18151fi
ac1cb8d3 18152rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18153fi
18154fi
18155rm -f conftest.val
18156else
18157 ac_cv_sizeof_long_long=0
18158fi
18159fi
18160echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18161echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18162cat >>confdefs.h <<_ACEOF
18163#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18164_ACEOF
18165
18166
18167esac
18168
18169echo "$as_me:$LINENO: checking size of wchar_t" >&5
18170echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18171if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18173else
18174
18175 if test "$cross_compiling" = yes; then
18176
18177 case "${host}" in
18178 *-pc-msdosdjgpp )
18179 wx_cv_sizeof_wchar_t=0
18180 ;;
18181 * )
18182 wx_cv_sizeof_wchar_t=4
18183 ;;
18184 esac
18185
18186
18187else
18188 cat >conftest.$ac_ext <<_ACEOF
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
18194
18195 /* DJGPP only has fake wchar_t: */
18196 #ifdef __DJGPP__
18197 # error "fake wchar_t"
18198 #endif
18199 #ifdef HAVE_WCHAR_H
18200 # ifdef __CYGWIN__
18201 # include <stddef.h>
18202 # endif
18203 # include <wchar.h>
18204 #endif
18205 #ifdef HAVE_STDLIB_H
18206 # include <stdlib.h>
18207 #endif
18208 #include <stdio.h>
18209 int main()
18210 {
18211 FILE *f=fopen("conftestval", "w");
18212 if (!f) exit(1);
18213 fprintf(f, "%i", sizeof(wchar_t));
18214 exit(0);
18215 }
18216
18217_ACEOF
18218rm -f conftest$ac_exeext
18219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18220 (eval $ac_link) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 wx_cv_sizeof_wchar_t=`cat conftestval`
18230else
18231 echo "$as_me: program exited with status $ac_status" >&5
18232echo "$as_me: failed program was:" >&5
18233sed 's/^/| /' conftest.$ac_ext >&5
18234
18235( exit $ac_status )
18236wx_cv_sizeof_wchar_t=0
18237fi
ac1cb8d3 18238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18239fi
18240
18241fi
18242echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18243echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18244
18245cat >>confdefs.h <<_ACEOF
18246#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18247_ACEOF
18248
18249
ba3d13e1
VZ
18250echo "$as_me:$LINENO: checking for va_copy" >&5
18251echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18252if test "${wx_cv_func_va_copy+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254else
18255
18256 cat >conftest.$ac_ext <<_ACEOF
18257
18258 #include <stdarg.h>
18259 void foo(char *f, ...)
18260 {
18261 va_list ap1, ap2;
18262 va_start(ap1, f);
18263 va_copy(ap2, ap1);
18264 va_end(ap2);
18265 va_end(ap1);
18266 }
18267_ACEOF
18268rm -f conftest.$ac_objext conftest$ac_exeext
18269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18270 (eval $ac_link) 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
b48a2016
DE
18277 { ac_try='test -z "$ac_c_werror_flag"
18278 || test ! -s conftest.err'
ba3d13e1
VZ
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest$ac_exeext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 wx_cv_func_va_copy=yes
18291else
18292 echo "$as_me: failed program was:" >&5
18293sed 's/^/| /' conftest.$ac_ext >&5
18294
18295wx_cv_func_va_copy=no
18296
18297fi
18298rm -f conftest.err conftest.$ac_objext \
18299 conftest$ac_exeext conftest.$ac_ext
18300
18301
18302fi
18303echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18304echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18305
18306if test $wx_cv_func_va_copy = "yes"; then
18307 cat >>confdefs.h <<\_ACEOF
18308#define HAVE_VA_COPY 1
18309_ACEOF
18310
18311else
18312 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18313echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18314if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18316else
18317
18318 if test "$cross_compiling" = yes; then
18319 wx_cv_type_va_list_lvalue=yes
18320
18321else
18322 cat >conftest.$ac_ext <<_ACEOF
18323
18324 #include <stdarg.h>
18325 int foo(char *f, ...)
18326 {
18327 va_list ap1, ap2;
18328 va_start(ap1, f);
18329 ap2 = ap1;
18330 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18331 return 1;
18332 va_end(ap2);
18333 va_end(ap1);
18334 return 0;
18335 }
18336 int main()
18337 {
18338 return foo("hi", 17);
18339 }
18340_ACEOF
18341rm -f conftest$ac_exeext
18342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18343 (eval $ac_link) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352 wx_cv_type_va_list_lvalue=yes
18353else
18354 echo "$as_me: program exited with status $ac_status" >&5
18355echo "$as_me: failed program was:" >&5
18356sed 's/^/| /' conftest.$ac_ext >&5
18357
18358( exit $ac_status )
18359wx_cv_type_va_list_lvalue=no
18360fi
18361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18362fi
18363
18364
18365fi
18366echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18367echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18368
18369 if test $wx_cv_type_va_list_lvalue != "yes"; then
18370 cat >>confdefs.h <<\_ACEOF
18371#define VA_LIST_IS_ARRAY 1
18372_ACEOF
18373
18374 fi
18375fi
18376
a848cd7e
SC
18377# Check whether --enable-largefile or --disable-largefile was given.
18378if test "${enable_largefile+set}" = set; then
18379 enableval="$enable_largefile"
18380
18381fi;
18382if test "$enable_largefile" != no; then
18383 wx_largefile=no
18384
18385 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18386echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18387if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18389else
18390
18391 cat >conftest.$ac_ext <<_ACEOF
18392/* confdefs.h. */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h. */
18397#define _FILE_OFFSET_BITS 64
18398 #include <sys/types.h>
18399int
18400main ()
18401{
18402typedef struct {
18403 unsigned int field: sizeof(off_t) == 8;
18404} wxlf;
18405
18406 ;
18407 return 0;
18408}
18409_ACEOF
18410rm -f conftest.$ac_objext
18411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18412 (eval $ac_compile) 2>conftest.er1
a848cd7e 18413 ac_status=$?
ac1cb8d3
VS
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
a848cd7e
SC
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
b48a2016
DE
18419 { ac_try='test -z "$ac_c_werror_flag"
18420 || test ! -s conftest.err'
ac1cb8d3
VS
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_cv_sys_file_offset_bits=64
18433else
18434 echo "$as_me: failed program was:" >&5
18435sed 's/^/| /' conftest.$ac_ext >&5
18436
18437ac_cv_sys_file_offset_bits=no
18438fi
ac1cb8d3 18439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18440
18441
18442fi
18443echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18444echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18445
18446 if test "$ac_cv_sys_file_offset_bits" != no; then
18447 wx_largefile=yes
18448 cat >>confdefs.h <<_ACEOF
18449#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18450_ACEOF
18451
18452 fi
18453
18454 if test "x$wx_largefile" != "xyes"; then
18455
18456 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18457echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18458if test "${ac_cv_sys_large_files+set}" = set; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18460else
18461
18462 cat >conftest.$ac_ext <<_ACEOF
18463/* confdefs.h. */
18464_ACEOF
18465cat confdefs.h >>conftest.$ac_ext
18466cat >>conftest.$ac_ext <<_ACEOF
18467/* end confdefs.h. */
18468#define _LARGE_FILES 1
18469 #include <sys/types.h>
18470int
18471main ()
18472{
18473typedef struct {
18474 unsigned int field: sizeof(off_t) == 8;
18475} wxlf;
18476
18477 ;
18478 return 0;
18479}
18480_ACEOF
18481rm -f conftest.$ac_objext
18482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18483 (eval $ac_compile) 2>conftest.er1
a848cd7e 18484 ac_status=$?
ac1cb8d3
VS
18485 grep -v '^ *+' conftest.er1 >conftest.err
18486 rm -f conftest.er1
18487 cat conftest.err >&5
a848cd7e
SC
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } &&
b48a2016
DE
18490 { ac_try='test -z "$ac_c_werror_flag"
18491 || test ! -s conftest.err'
ac1cb8d3
VS
18492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493 (eval $ac_try) 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; } &&
18497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
18503 ac_cv_sys_large_files=1
18504else
18505 echo "$as_me: failed program was:" >&5
18506sed 's/^/| /' conftest.$ac_ext >&5
18507
18508ac_cv_sys_large_files=no
18509fi
ac1cb8d3 18510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18511
18512
18513fi
18514echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18515echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18516
18517 if test "$ac_cv_sys_large_files" != no; then
18518 wx_largefile=yes
18519 cat >>confdefs.h <<_ACEOF
18520#define _LARGE_FILES $ac_cv_sys_large_files
18521_ACEOF
18522
18523 fi
18524
18525 fi
18526
18527 echo "$as_me:$LINENO: checking if large file support is available" >&5
18528echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18529 if test "x$wx_largefile" = "xyes"; then
18530 cat >>confdefs.h <<\_ACEOF
18531#define HAVE_LARGEFILE_SUPPORT 1
18532_ACEOF
18533
18534 fi
18535 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18536echo "${ECHO_T}$wx_largefile" >&6
18537fi
18538
18539
18540if test "x$wx_largefile" = "xyes"; then
18541 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18542 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18543 else
18544 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18545 fi
18546 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18547fi
18548
18549echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18550echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18551if test "${ac_cv_c_bigendian+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553else
18554 ac_cv_c_bigendian=unknown
18555# See if sys/param.h defines the BYTE_ORDER macro.
18556cat >conftest.$ac_ext <<_ACEOF
18557/* confdefs.h. */
18558_ACEOF
18559cat confdefs.h >>conftest.$ac_ext
18560cat >>conftest.$ac_ext <<_ACEOF
18561/* end confdefs.h. */
18562#include <sys/types.h>
18563#include <sys/param.h>
18564int
18565main ()
18566{
18567
18568#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18569 bogus endian macros
18570#endif
18571 ;
18572 return 0;
18573}
18574_ACEOF
18575rm -f conftest.$ac_objext
18576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18577 (eval $ac_compile) 2>conftest.er1
a848cd7e 18578 ac_status=$?
ac1cb8d3
VS
18579 grep -v '^ *+' conftest.er1 >conftest.err
18580 rm -f conftest.er1
18581 cat conftest.err >&5
a848cd7e
SC
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } &&
b48a2016
DE
18584 { ac_try='test -z "$ac_c_werror_flag"
18585 || test ! -s conftest.err'
ac1cb8d3
VS
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18594 ac_status=$?
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; }; then
18597 # It does; now see whether it defined to BIG_ENDIAN or not.
18598cat >conftest.$ac_ext <<_ACEOF
18599/* confdefs.h. */
18600_ACEOF
18601cat confdefs.h >>conftest.$ac_ext
18602cat >>conftest.$ac_ext <<_ACEOF
18603/* end confdefs.h. */
18604#include <sys/types.h>
18605#include <sys/param.h>
18606int
18607main ()
18608{
18609
18610#if BYTE_ORDER != BIG_ENDIAN
18611 not big endian
18612#endif
18613 ;
18614 return 0;
18615}
18616_ACEOF
18617rm -f conftest.$ac_objext
18618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18619 (eval $ac_compile) 2>conftest.er1
a848cd7e 18620 ac_status=$?
ac1cb8d3
VS
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
a848cd7e
SC
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
b48a2016
DE
18626 { ac_try='test -z "$ac_c_werror_flag"
18627 || test ! -s conftest.err'
ac1cb8d3
VS
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_cv_c_bigendian=yes
18640else
18641 echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
18644ac_cv_c_bigendian=no
18645fi
ac1cb8d3 18646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18647else
18648 echo "$as_me: failed program was:" >&5
18649sed 's/^/| /' conftest.$ac_ext >&5
18650
18651fi
ac1cb8d3 18652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18653if test $ac_cv_c_bigendian = unknown; then
18654if test "$cross_compiling" = yes; then
18655 ac_cv_c_bigendian=unknown
18656else
18657 cat >conftest.$ac_ext <<_ACEOF
18658/* confdefs.h. */
18659_ACEOF
18660cat confdefs.h >>conftest.$ac_ext
18661cat >>conftest.$ac_ext <<_ACEOF
18662/* end confdefs.h. */
18663main () {
18664 /* Are we little or big endian? From Harbison&Steele. */
18665 union
18666 {
18667 long l;
18668 char c[sizeof (long)];
18669 } u;
18670 u.l = 1;
18671 exit (u.c[sizeof (long) - 1] == 1);
18672}
18673_ACEOF
18674rm -f conftest$ac_exeext
18675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18676 (eval $ac_link) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18682 ac_status=$?
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; }; then
18685 ac_cv_c_bigendian=no
18686else
18687 echo "$as_me: program exited with status $ac_status" >&5
18688echo "$as_me: failed program was:" >&5
18689sed 's/^/| /' conftest.$ac_ext >&5
18690
18691( exit $ac_status )
18692ac_cv_c_bigendian=yes
18693fi
ac1cb8d3 18694rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18695fi
18696fi
18697fi
18698echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18699echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18700if test $ac_cv_c_bigendian = unknown; then
18701 { 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
18702echo "$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;}
18703fi
18704if test $ac_cv_c_bigendian = yes; then
18705 cat >>confdefs.h <<\_ACEOF
18706#define WORDS_BIGENDIAN 1
18707_ACEOF
18708
18709fi
18710
18711
18712ac_ext=cc
18713ac_cpp='$CXXCPP $CPPFLAGS'
18714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18717echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18718echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18719if test -z "$CXXCPP"; then
18720 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18722else
18723 # Double quotes because CXXCPP needs to be expanded
18724 for CXXCPP in "$CXX -E" "/lib/cpp"
18725 do
18726 ac_preproc_ok=false
18727for ac_cxx_preproc_warn_flag in '' yes
18728do
18729 # Use a header file that comes with gcc, so configuring glibc
18730 # with a fresh cross-compiler works.
18731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18732 # <limits.h> exists even on freestanding compilers.
18733 # On the NeXT, cc -E runs the code through the compiler's parser,
18734 # not just through cpp. "Syntax error" is here to catch this case.
18735 cat >conftest.$ac_ext <<_ACEOF
18736/* confdefs.h. */
18737_ACEOF
18738cat confdefs.h >>conftest.$ac_ext
18739cat >>conftest.$ac_ext <<_ACEOF
18740/* end confdefs.h. */
18741#ifdef __STDC__
18742# include <limits.h>
18743#else
18744# include <assert.h>
18745#endif
ac1cb8d3 18746 Syntax error
a848cd7e
SC
18747_ACEOF
18748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18750 ac_status=$?
18751 grep -v '^ *+' conftest.er1 >conftest.err
18752 rm -f conftest.er1
18753 cat conftest.err >&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } >/dev/null; then
18756 if test -s conftest.err; then
18757 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18758 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18759 else
18760 ac_cpp_err=
18761 fi
18762else
18763 ac_cpp_err=yes
18764fi
18765if test -z "$ac_cpp_err"; then
18766 :
18767else
18768 echo "$as_me: failed program was:" >&5
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
18771 # Broken: fails on valid input.
18772continue
18773fi
18774rm -f conftest.err conftest.$ac_ext
18775
18776 # OK, works on sane cases. Now check whether non-existent headers
18777 # can be detected and how.
18778 cat >conftest.$ac_ext <<_ACEOF
18779/* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
18783/* end confdefs.h. */
18784#include <ac_nonexistent.h>
18785_ACEOF
18786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18788 ac_status=$?
18789 grep -v '^ *+' conftest.er1 >conftest.err
18790 rm -f conftest.er1
18791 cat conftest.err >&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } >/dev/null; then
18794 if test -s conftest.err; then
18795 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18796 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18797 else
18798 ac_cpp_err=
18799 fi
18800else
18801 ac_cpp_err=yes
18802fi
18803if test -z "$ac_cpp_err"; then
18804 # Broken: success on invalid input.
18805continue
18806else
18807 echo "$as_me: failed program was:" >&5
18808sed 's/^/| /' conftest.$ac_ext >&5
18809
18810 # Passes both tests.
18811ac_preproc_ok=:
18812break
18813fi
18814rm -f conftest.err conftest.$ac_ext
18815
18816done
18817# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18818rm -f conftest.err conftest.$ac_ext
18819if $ac_preproc_ok; then
18820 break
18821fi
18822
18823 done
18824 ac_cv_prog_CXXCPP=$CXXCPP
18825
18826fi
18827 CXXCPP=$ac_cv_prog_CXXCPP
18828else
18829 ac_cv_prog_CXXCPP=$CXXCPP
18830fi
18831echo "$as_me:$LINENO: result: $CXXCPP" >&5
18832echo "${ECHO_T}$CXXCPP" >&6
18833ac_preproc_ok=false
18834for ac_cxx_preproc_warn_flag in '' yes
18835do
18836 # Use a header file that comes with gcc, so configuring glibc
18837 # with a fresh cross-compiler works.
18838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18839 # <limits.h> exists even on freestanding compilers.
18840 # On the NeXT, cc -E runs the code through the compiler's parser,
18841 # not just through cpp. "Syntax error" is here to catch this case.
18842 cat >conftest.$ac_ext <<_ACEOF
18843/* confdefs.h. */
18844_ACEOF
18845cat confdefs.h >>conftest.$ac_ext
18846cat >>conftest.$ac_ext <<_ACEOF
18847/* end confdefs.h. */
18848#ifdef __STDC__
18849# include <limits.h>
18850#else
18851# include <assert.h>
18852#endif
ac1cb8d3 18853 Syntax error
a848cd7e
SC
18854_ACEOF
18855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18857 ac_status=$?
18858 grep -v '^ *+' conftest.er1 >conftest.err
18859 rm -f conftest.er1
18860 cat conftest.err >&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } >/dev/null; then
18863 if test -s conftest.err; then
18864 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18865 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18866 else
18867 ac_cpp_err=
18868 fi
18869else
18870 ac_cpp_err=yes
18871fi
18872if test -z "$ac_cpp_err"; then
18873 :
18874else
18875 echo "$as_me: failed program was:" >&5
18876sed 's/^/| /' conftest.$ac_ext >&5
18877
18878 # Broken: fails on valid input.
18879continue
18880fi
18881rm -f conftest.err conftest.$ac_ext
18882
18883 # OK, works on sane cases. Now check whether non-existent headers
18884 # can be detected and how.
18885 cat >conftest.$ac_ext <<_ACEOF
18886/* confdefs.h. */
18887_ACEOF
18888cat confdefs.h >>conftest.$ac_ext
18889cat >>conftest.$ac_ext <<_ACEOF
18890/* end confdefs.h. */
18891#include <ac_nonexistent.h>
18892_ACEOF
18893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18895 ac_status=$?
18896 grep -v '^ *+' conftest.er1 >conftest.err
18897 rm -f conftest.er1
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } >/dev/null; then
18901 if test -s conftest.err; then
18902 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18903 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18904 else
18905 ac_cpp_err=
18906 fi
18907else
18908 ac_cpp_err=yes
18909fi
18910if test -z "$ac_cpp_err"; then
18911 # Broken: success on invalid input.
18912continue
18913else
18914 echo "$as_me: failed program was:" >&5
18915sed 's/^/| /' conftest.$ac_ext >&5
18916
18917 # Passes both tests.
18918ac_preproc_ok=:
18919break
18920fi
18921rm -f conftest.err conftest.$ac_ext
18922
18923done
18924# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18925rm -f conftest.err conftest.$ac_ext
18926if $ac_preproc_ok; then
18927 :
18928else
18929 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18930See \`config.log' for more details." >&5
18931echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18932See \`config.log' for more details." >&2;}
18933 { (exit 1); exit 1; }; }
18934fi
18935
18936ac_ext=cc
18937ac_cpp='$CXXCPP $CPPFLAGS'
18938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18941
18942
18943
18944
18945
18946 ac_ext=cc
18947ac_cpp='$CXXCPP $CPPFLAGS'
18948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18951
18952
18953
18954for ac_header in iostream
18955do
18956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18957if eval "test \"\${$as_ac_Header+set}\" = set"; then
18958 echo "$as_me:$LINENO: checking for $ac_header" >&5
18959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18960if eval "test \"\${$as_ac_Header+set}\" = set"; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962fi
18963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18965else
18966 # Is the header compilable?
18967echo "$as_me:$LINENO: checking $ac_header usability" >&5
18968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18969cat >conftest.$ac_ext <<_ACEOF
18970/* confdefs.h. */
18971_ACEOF
18972cat confdefs.h >>conftest.$ac_ext
18973cat >>conftest.$ac_ext <<_ACEOF
18974/* end confdefs.h. */
18975$ac_includes_default
18976#include <$ac_header>
18977_ACEOF
18978rm -f conftest.$ac_objext
18979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18980 (eval $ac_compile) 2>conftest.er1
a848cd7e 18981 ac_status=$?
ac1cb8d3
VS
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
a848cd7e
SC
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
b48a2016
DE
18987 { ac_try='test -z "$ac_cxx_werror_flag"
18988 || test ! -s conftest.err'
ac1cb8d3
VS
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; } &&
18994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996 (eval $ac_try) 2>&5
18997 ac_status=$?
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; }; then
19000 ac_header_compiler=yes
19001else
19002 echo "$as_me: failed program was:" >&5
19003sed 's/^/| /' conftest.$ac_ext >&5
19004
19005ac_header_compiler=no
19006fi
ac1cb8d3 19007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19008echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19009echo "${ECHO_T}$ac_header_compiler" >&6
19010
19011# Is the header present?
19012echo "$as_me:$LINENO: checking $ac_header presence" >&5
19013echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19014cat >conftest.$ac_ext <<_ACEOF
19015/* confdefs.h. */
19016_ACEOF
19017cat confdefs.h >>conftest.$ac_ext
19018cat >>conftest.$ac_ext <<_ACEOF
19019/* end confdefs.h. */
19020#include <$ac_header>
19021_ACEOF
19022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19024 ac_status=$?
19025 grep -v '^ *+' conftest.er1 >conftest.err
19026 rm -f conftest.er1
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } >/dev/null; then
19030 if test -s conftest.err; then
19031 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19032 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19033 else
19034 ac_cpp_err=
19035 fi
19036else
19037 ac_cpp_err=yes
19038fi
19039if test -z "$ac_cpp_err"; then
19040 ac_header_preproc=yes
19041else
19042 echo "$as_me: failed program was:" >&5
19043sed 's/^/| /' conftest.$ac_ext >&5
19044
19045 ac_header_preproc=no
19046fi
19047rm -f conftest.err conftest.$ac_ext
19048echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19049echo "${ECHO_T}$ac_header_preproc" >&6
19050
19051# So? What about this header?
ac1cb8d3
VS
19052case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19053 yes:no: )
a848cd7e
SC
19054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19055echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19057echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19058 ac_header_preproc=yes
a848cd7e 19059 ;;
ac1cb8d3 19060 no:yes:* )
a848cd7e
SC
19061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19066echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19068echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19070echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19073 (
19074 cat <<\_ASBOX
ac1cb8d3
VS
19075## ----------------------------------------- ##
19076## Report this to wx-dev@lists.wxwidgets.org ##
19077## ----------------------------------------- ##
a848cd7e
SC
19078_ASBOX
19079 ) |
19080 sed "s/^/$as_me: WARNING: /" >&2
19081 ;;
19082esac
19083echo "$as_me:$LINENO: checking for $ac_header" >&5
19084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19085if eval "test \"\${$as_ac_Header+set}\" = set"; then
19086 echo $ECHO_N "(cached) $ECHO_C" >&6
19087else
ac1cb8d3 19088 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19089fi
19090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19092
19093fi
19094if test `eval echo '${'$as_ac_Header'}'` = yes; then
19095 cat >>confdefs.h <<_ACEOF
19096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19097_ACEOF
19098
19099fi
19100
19101done
19102
19103
19104 if test "$ac_cv_header_iostream" = "yes" ; then
19105 :
19106 else
19107 cat >>confdefs.h <<\_ACEOF
19108#define wxUSE_IOSTREAMH 1
19109_ACEOF
19110
19111 fi
19112
19113 ac_ext=c
19114ac_cpp='$CPP $CPPFLAGS'
19115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19117ac_compiler_gnu=$ac_cv_c_compiler_gnu
19118
19119
19120
19121
19122 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19123echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19124if test "${wx_cv_cpp_bool+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
19126else
19127
19128
19129
19130 ac_ext=cc
19131ac_cpp='$CXXCPP $CPPFLAGS'
19132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19135
19136
19137 cat >conftest.$ac_ext <<_ACEOF
19138/* confdefs.h. */
19139_ACEOF
19140cat confdefs.h >>conftest.$ac_ext
19141cat >>conftest.$ac_ext <<_ACEOF
19142/* end confdefs.h. */
19143
19144
19145int
19146main ()
19147{
19148
19149 bool b = true;
19150
19151 return 0;
19152
19153 ;
19154 return 0;
19155}
19156_ACEOF
19157rm -f conftest.$ac_objext
19158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19159 (eval $ac_compile) 2>conftest.er1
a848cd7e 19160 ac_status=$?
ac1cb8d3
VS
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
a848cd7e
SC
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
b48a2016
DE
19166 { ac_try='test -z "$ac_cxx_werror_flag"
19167 || test ! -s conftest.err'
ac1cb8d3
VS
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179
19180 wx_cv_cpp_bool=yes
19181
19182else
19183 echo "$as_me: failed program was:" >&5
19184sed 's/^/| /' conftest.$ac_ext >&5
19185
19186
19187 wx_cv_cpp_bool=no
19188
19189
19190fi
ac1cb8d3 19191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19192
19193 ac_ext=c
19194ac_cpp='$CPP $CPPFLAGS'
19195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19197ac_compiler_gnu=$ac_cv_c_compiler_gnu
19198
19199
19200fi
19201echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19202echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19203
19204 if test "$wx_cv_cpp_bool" = "yes"; then
19205 cat >>confdefs.h <<\_ACEOF
19206#define HAVE_BOOL 1
19207_ACEOF
19208
19209 fi
19210
19211
19212
19213 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19214echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19215if test "${wx_cv_explicit+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19217else
19218
19219
19220
19221 ac_ext=cc
19222ac_cpp='$CXXCPP $CPPFLAGS'
19223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19226
19227
19228 cat >conftest.$ac_ext <<_ACEOF
19229/* confdefs.h. */
19230_ACEOF
19231cat confdefs.h >>conftest.$ac_ext
19232cat >>conftest.$ac_ext <<_ACEOF
19233/* end confdefs.h. */
19234
19235 class Foo { public: explicit Foo(int) {} };
19236
19237int
19238main ()
19239{
19240
19241 return 0;
19242
19243 ;
19244 return 0;
19245}
19246_ACEOF
19247rm -f conftest.$ac_objext
19248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19249 (eval $ac_compile) 2>conftest.er1
a848cd7e 19250 ac_status=$?
ac1cb8d3
VS
19251 grep -v '^ *+' conftest.er1 >conftest.err
19252 rm -f conftest.er1
19253 cat conftest.err >&5
a848cd7e
SC
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
b48a2016
DE
19256 { ac_try='test -z "$ac_cxx_werror_flag"
19257 || test ! -s conftest.err'
ac1cb8d3
VS
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; } &&
19263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269
19270 cat >conftest.$ac_ext <<_ACEOF
19271/* confdefs.h. */
19272_ACEOF
19273cat confdefs.h >>conftest.$ac_ext
19274cat >>conftest.$ac_ext <<_ACEOF
19275/* end confdefs.h. */
19276
19277 class Foo { public: explicit Foo(int) {} };
19278 static void TakeFoo(const Foo& foo) { }
19279
19280int
19281main ()
19282{
19283
19284 TakeFoo(17);
19285 return 0;
19286
19287 ;
19288 return 0;
19289}
19290_ACEOF
19291rm -f conftest.$ac_objext
19292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19293 (eval $ac_compile) 2>conftest.er1
a848cd7e 19294 ac_status=$?
ac1cb8d3
VS
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
a848cd7e
SC
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
b48a2016
DE
19300 { ac_try='test -z "$ac_cxx_werror_flag"
19301 || test ! -s conftest.err'
ac1cb8d3
VS
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; } &&
19307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19313 wx_cv_explicit=no
19314else
19315 echo "$as_me: failed program was:" >&5
19316sed 's/^/| /' conftest.$ac_ext >&5
19317
19318wx_cv_explicit=yes
19319
19320fi
ac1cb8d3 19321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19322
19323else
19324 echo "$as_me: failed program was:" >&5
19325sed 's/^/| /' conftest.$ac_ext >&5
19326
19327wx_cv_explicit=no
19328
19329fi
ac1cb8d3 19330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19331
19332 ac_ext=c
19333ac_cpp='$CPP $CPPFLAGS'
19334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19336ac_compiler_gnu=$ac_cv_c_compiler_gnu
19337
19338
19339fi
19340echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19341echo "${ECHO_T}$wx_cv_explicit" >&6
19342
19343 if test "$wx_cv_explicit" = "yes"; then
19344 cat >>confdefs.h <<\_ACEOF
19345#define HAVE_EXPLICIT 1
19346_ACEOF
19347
19348 fi
19349
19350
19351echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19352echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19353if test "${ac_cv_cxx_const_cast+set}" = set; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19355else
19356
19357
19358 ac_ext=cc
19359ac_cpp='$CXXCPP $CPPFLAGS'
19360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19363
19364 cat >conftest.$ac_ext <<_ACEOF
19365/* confdefs.h. */
19366_ACEOF
19367cat confdefs.h >>conftest.$ac_ext
19368cat >>conftest.$ac_ext <<_ACEOF
19369/* end confdefs.h. */
19370
19371int
19372main ()
19373{
19374int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19375 ;
19376 return 0;
19377}
19378_ACEOF
19379rm -f conftest.$ac_objext
19380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19381 (eval $ac_compile) 2>conftest.er1
a848cd7e 19382 ac_status=$?
ac1cb8d3
VS
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
a848cd7e
SC
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
b48a2016
DE
19388 { ac_try='test -z "$ac_cxx_werror_flag"
19389 || test ! -s conftest.err'
ac1cb8d3
VS
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 ac_cv_cxx_const_cast=yes
19402else
19403 echo "$as_me: failed program was:" >&5
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
19406ac_cv_cxx_const_cast=no
19407fi
ac1cb8d3 19408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19409 ac_ext=c
19410ac_cpp='$CPP $CPPFLAGS'
19411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413ac_compiler_gnu=$ac_cv_c_compiler_gnu
19414
19415
19416fi
19417echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19418echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19419if test "$ac_cv_cxx_const_cast" = yes; then
19420
19421cat >>confdefs.h <<\_ACEOF
19422#define HAVE_CONST_CAST
19423_ACEOF
19424
19425fi
19426
7714864e
RL
19427echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19428echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19429if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431else
19432
19433
19434 ac_ext=cc
19435ac_cpp='$CXXCPP $CPPFLAGS'
19436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19439
19440 cat >conftest.$ac_ext <<_ACEOF
19441/* confdefs.h. */
19442_ACEOF
19443cat confdefs.h >>conftest.$ac_ext
19444cat >>conftest.$ac_ext <<_ACEOF
19445/* end confdefs.h. */
19446#include <typeinfo>
19447class Base { public : Base () {} virtual void f () = 0;};
19448class Derived : public Base { public : Derived () {} virtual void f () {} };
19449class Unrelated { public : Unrelated () {} };
19450int g (Unrelated&) { return 0; }
19451int
19452main ()
19453{
19454
19455Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest.$ac_objext
19461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462 (eval $ac_compile) 2>conftest.er1
19463 ac_status=$?
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
b48a2016
DE
19469 { ac_try='test -z "$ac_cxx_werror_flag"
19470 || test ! -s conftest.err'
7714864e
RL
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_cxx_reinterpret_cast=yes
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487ac_cv_cxx_reinterpret_cast=no
19488fi
19489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19490 ac_ext=c
19491ac_cpp='$CPP $CPPFLAGS'
19492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19494ac_compiler_gnu=$ac_cv_c_compiler_gnu
19495
19496
19497fi
19498echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19499echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19500if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19501
19502cat >>confdefs.h <<\_ACEOF
19503#define HAVE_REINTERPRET_CAST
19504_ACEOF
19505
19506fi
19507
a848cd7e
SC
19508echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19509echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19510if test "${ac_cv_cxx_static_cast+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512else
19513
19514
19515 ac_ext=cc
19516ac_cpp='$CXXCPP $CPPFLAGS'
19517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19520
19521 cat >conftest.$ac_ext <<_ACEOF
19522/* confdefs.h. */
19523_ACEOF
19524cat confdefs.h >>conftest.$ac_ext
19525cat >>conftest.$ac_ext <<_ACEOF
19526/* end confdefs.h. */
19527#include <typeinfo>
19528class Base { public : Base () {} virtual void f () = 0; };
19529class Derived : public Base { public : Derived () {} virtual void f () {} };
19530int g (Derived&) { return 0; }
19531int
19532main ()
19533{
19534
19535Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19536 ;
19537 return 0;
19538}
19539_ACEOF
19540rm -f conftest.$ac_objext
19541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19542 (eval $ac_compile) 2>conftest.er1
a848cd7e 19543 ac_status=$?
ac1cb8d3
VS
19544 grep -v '^ *+' conftest.er1 >conftest.err
19545 rm -f conftest.er1
19546 cat conftest.err >&5
a848cd7e
SC
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } &&
b48a2016
DE
19549 { ac_try='test -z "$ac_cxx_werror_flag"
19550 || test ! -s conftest.err'
ac1cb8d3
VS
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } &&
19556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
19562 ac_cv_cxx_static_cast=yes
19563else
19564 echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567ac_cv_cxx_static_cast=no
19568fi
ac1cb8d3 19569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19570 ac_ext=c
19571ac_cpp='$CPP $CPPFLAGS'
19572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574ac_compiler_gnu=$ac_cv_c_compiler_gnu
19575
19576
19577fi
19578echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19579echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19580if test "$ac_cv_cxx_static_cast" = yes; then
19581
19582cat >>confdefs.h <<\_ACEOF
19583#define HAVE_STATIC_CAST
19584_ACEOF
19585
19586fi
19587
19588
19589if test "$wxUSE_STL" = "yes"; then
19590 ac_ext=cc
19591ac_cpp='$CXXCPP $CPPFLAGS'
19592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19595
19596
19597 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19598echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19599 cat >conftest.$ac_ext <<_ACEOF
19600/* confdefs.h. */
19601_ACEOF
19602cat confdefs.h >>conftest.$ac_ext
19603cat >>conftest.$ac_ext <<_ACEOF
19604/* end confdefs.h. */
19605#include <string>
19606 #include <functional>
19607 #include <algorithm>
19608 #include <vector>
19609 #include <list>
19610int
19611main ()
19612{
19613std::vector<int> moo;
19614 std::list<int> foo;
19615 std::vector<int>::iterator it =
19616 std::find_if(moo.begin(), moo.end(),
19617 std::bind2nd(std::less<int>(), 3));
19618 ;
19619 return 0;
19620}
19621_ACEOF
19622rm -f conftest.$ac_objext
19623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19624 (eval $ac_compile) 2>conftest.er1
a848cd7e 19625 ac_status=$?
ac1cb8d3
VS
19626 grep -v '^ *+' conftest.er1 >conftest.err
19627 rm -f conftest.er1
19628 cat conftest.err >&5
a848cd7e
SC
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
b48a2016
DE
19631 { ac_try='test -z "$ac_cxx_werror_flag"
19632 || test ! -s conftest.err'
ac1cb8d3
VS
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 echo "$as_me:$LINENO: result: yes" >&5
19645echo "${ECHO_T}yes" >&6
19646else
19647 echo "$as_me: failed program was:" >&5
19648sed 's/^/| /' conftest.$ac_ext >&5
19649
19650echo "$as_me:$LINENO: result: no" >&5
19651echo "${ECHO_T}no" >&6
19652 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19653echo "$as_me: error: Basic STL functionality missing" >&2;}
19654 { (exit 1); exit 1; }; }
19655fi
ac1cb8d3 19656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19657
19658 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19659echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19660 cat >conftest.$ac_ext <<_ACEOF
19661/* confdefs.h. */
19662_ACEOF
19663cat confdefs.h >>conftest.$ac_ext
19664cat >>conftest.$ac_ext <<_ACEOF
19665/* end confdefs.h. */
19666#include <string>
19667int
19668main ()
19669{
19670std::wstring foo;
19671 ;
19672 return 0;
19673}
19674_ACEOF
19675rm -f conftest.$ac_objext
19676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19677 (eval $ac_compile) 2>conftest.er1
a848cd7e 19678 ac_status=$?
ac1cb8d3
VS
19679 grep -v '^ *+' conftest.er1 >conftest.err
19680 rm -f conftest.er1
19681 cat conftest.err >&5
a848cd7e
SC
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } &&
b48a2016
DE
19684 { ac_try='test -z "$ac_cxx_werror_flag"
19685 || test ! -s conftest.err'
ac1cb8d3
VS
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; } &&
19691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
19697 echo "$as_me:$LINENO: result: yes" >&5
19698echo "${ECHO_T}yes" >&6
19699 cat >>confdefs.h <<\_ACEOF
19700#define HAVE_STD_WSTRING 1
19701_ACEOF
19702
19703else
19704 echo "$as_me: failed program was:" >&5
19705sed 's/^/| /' conftest.$ac_ext >&5
19706
19707echo "$as_me:$LINENO: result: no" >&5
19708echo "${ECHO_T}no" >&6
19709fi
ac1cb8d3 19710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19711
19712 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19713echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19714 cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720#include <string>
19721int
19722main ()
19723{
19724std::string foo, bar;
19725 foo.compare(bar);
19726 foo.compare(1, 1, bar);
19727 foo.compare(1, 1, bar, 1, 1);
19728 foo.compare("");
19729 foo.compare(1, 1, "");
19730 foo.compare(1, 1, "", 2);
19731 ;
19732 return 0;
19733}
19734_ACEOF
19735rm -f conftest.$ac_objext
19736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19737 (eval $ac_compile) 2>conftest.er1
a848cd7e 19738 ac_status=$?
ac1cb8d3
VS
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
a848cd7e
SC
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
b48a2016
DE
19744 { ac_try='test -z "$ac_cxx_werror_flag"
19745 || test ! -s conftest.err'
ac1cb8d3
VS
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 echo "$as_me:$LINENO: result: yes" >&5
19758echo "${ECHO_T}yes" >&6
19759 cat >>confdefs.h <<\_ACEOF
19760#define HAVE_STD_STRING_COMPARE 1
19761_ACEOF
19762
19763else
19764 echo "$as_me: failed program was:" >&5
19765sed 's/^/| /' conftest.$ac_ext >&5
19766
19767echo "$as_me:$LINENO: result: no" >&5
19768echo "${ECHO_T}no" >&6
19769fi
ac1cb8d3 19770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19771
19772 if test "${ac_cv_header_hash_map+set}" = set; then
19773 echo "$as_me:$LINENO: checking for hash_map" >&5
19774echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19775if test "${ac_cv_header_hash_map+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19777fi
19778echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19779echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19780else
19781 # Is the header compilable?
19782echo "$as_me:$LINENO: checking hash_map usability" >&5
19783echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19784cat >conftest.$ac_ext <<_ACEOF
19785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
19790$ac_includes_default
19791#include <hash_map>
19792_ACEOF
19793rm -f conftest.$ac_objext
19794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19795 (eval $ac_compile) 2>conftest.er1
bdcade0a 19796 ac_status=$?
ac1cb8d3
VS
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
bdcade0a
MB
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
b48a2016
DE
19802 { ac_try='test -z "$ac_cxx_werror_flag"
19803 || test ! -s conftest.err'
ac1cb8d3
VS
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815 ac_header_compiler=yes
19816else
19817 echo "$as_me: failed program was:" >&5
19818sed 's/^/| /' conftest.$ac_ext >&5
19819
19820ac_header_compiler=no
19821fi
ac1cb8d3 19822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19823echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19824echo "${ECHO_T}$ac_header_compiler" >&6
19825
19826# Is the header present?
19827echo "$as_me:$LINENO: checking hash_map presence" >&5
19828echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19829cat >conftest.$ac_ext <<_ACEOF
19830/* confdefs.h. */
19831_ACEOF
19832cat confdefs.h >>conftest.$ac_ext
19833cat >>conftest.$ac_ext <<_ACEOF
19834/* end confdefs.h. */
19835#include <hash_map>
19836_ACEOF
19837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19839 ac_status=$?
19840 grep -v '^ *+' conftest.er1 >conftest.err
19841 rm -f conftest.er1
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } >/dev/null; then
19845 if test -s conftest.err; then
19846 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19847 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19848 else
19849 ac_cpp_err=
19850 fi
19851else
19852 ac_cpp_err=yes
19853fi
19854if test -z "$ac_cpp_err"; then
19855 ac_header_preproc=yes
19856else
19857 echo "$as_me: failed program was:" >&5
19858sed 's/^/| /' conftest.$ac_ext >&5
19859
19860 ac_header_preproc=no
19861fi
19862rm -f conftest.err conftest.$ac_ext
19863echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19864echo "${ECHO_T}$ac_header_preproc" >&6
19865
19866# So? What about this header?
ac1cb8d3
VS
19867case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19868 yes:no: )
bdcade0a
MB
19869 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19870echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19871 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19872echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19873 ac_header_preproc=yes
bdcade0a 19874 ;;
ac1cb8d3 19875 no:yes:* )
bdcade0a
MB
19876 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19877echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19878 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19879echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19880 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19881echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19883echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19884 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19885echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19886 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19887echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19888 (
19889 cat <<\_ASBOX
ac1cb8d3
VS
19890## ----------------------------------------- ##
19891## Report this to wx-dev@lists.wxwidgets.org ##
19892## ----------------------------------------- ##
bdcade0a
MB
19893_ASBOX
19894 ) |
19895 sed "s/^/$as_me: WARNING: /" >&2
19896 ;;
19897esac
19898echo "$as_me:$LINENO: checking for hash_map" >&5
19899echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19900if test "${ac_cv_header_hash_map+set}" = set; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19902else
19903 ac_cv_header_hash_map=$ac_header_preproc
19904fi
19905echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19906echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19907
19908fi
19909if test $ac_cv_header_hash_map = yes; then
19910 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19911echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19912 cat >conftest.$ac_ext <<_ACEOF
19913/* confdefs.h. */
19914_ACEOF
19915cat confdefs.h >>conftest.$ac_ext
19916cat >>conftest.$ac_ext <<_ACEOF
19917/* end confdefs.h. */
19918#include <hash_map>
19919 #include <hash_set>
19920int
19921main ()
19922{
19923std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19924 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19925 ;
19926 return 0;
19927}
19928_ACEOF
19929rm -f conftest.$ac_objext
19930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19931 (eval $ac_compile) 2>conftest.er1
bdcade0a 19932 ac_status=$?
ac1cb8d3
VS
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
bdcade0a
MB
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
b48a2016
DE
19938 { ac_try='test -z "$ac_cxx_werror_flag"
19939 || test ! -s conftest.err'
ac1cb8d3
VS
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; } &&
19945 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 echo "$as_me:$LINENO: result: yes" >&5
19952echo "${ECHO_T}yes" >&6
19953 cat >>confdefs.h <<\_ACEOF
19954#define HAVE_HASH_MAP 1
19955_ACEOF
19956
19957 cat >>confdefs.h <<\_ACEOF
19958#define HAVE_STD_HASH_MAP 1
19959_ACEOF
19960
19961else
19962 echo "$as_me: failed program was:" >&5
19963sed 's/^/| /' conftest.$ac_ext >&5
19964
19965echo "$as_me:$LINENO: result: no" >&5
19966echo "${ECHO_T}no" >&6
19967fi
ac1cb8d3 19968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19969
19970fi
19971
19972
19973
19974 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19975 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19976echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19977if test "${ac_cv_header_ext_hash_map+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19979fi
19980echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19981echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19982else
19983 # Is the header compilable?
19984echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19985echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19986cat >conftest.$ac_ext <<_ACEOF
19987/* confdefs.h. */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h. */
19992$ac_includes_default
19993#include <ext/hash_map>
19994_ACEOF
19995rm -f conftest.$ac_objext
19996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19997 (eval $ac_compile) 2>conftest.er1
bdcade0a 19998 ac_status=$?
ac1cb8d3
VS
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
bdcade0a
MB
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
b48a2016
DE
20004 { ac_try='test -z "$ac_cxx_werror_flag"
20005 || test ! -s conftest.err'
ac1cb8d3
VS
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; } &&
20011 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 ac_header_compiler=yes
20018else
20019 echo "$as_me: failed program was:" >&5
20020sed 's/^/| /' conftest.$ac_ext >&5
20021
20022ac_header_compiler=no
20023fi
ac1cb8d3 20024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20026echo "${ECHO_T}$ac_header_compiler" >&6
20027
20028# Is the header present?
20029echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20030echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20031cat >conftest.$ac_ext <<_ACEOF
20032/* confdefs.h. */
20033_ACEOF
20034cat confdefs.h >>conftest.$ac_ext
20035cat >>conftest.$ac_ext <<_ACEOF
20036/* end confdefs.h. */
20037#include <ext/hash_map>
20038_ACEOF
20039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20041 ac_status=$?
20042 grep -v '^ *+' conftest.er1 >conftest.err
20043 rm -f conftest.er1
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } >/dev/null; then
20047 if test -s conftest.err; then
20048 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20049 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20050 else
20051 ac_cpp_err=
20052 fi
20053else
20054 ac_cpp_err=yes
20055fi
20056if test -z "$ac_cpp_err"; then
20057 ac_header_preproc=yes
20058else
20059 echo "$as_me: failed program was:" >&5
20060sed 's/^/| /' conftest.$ac_ext >&5
20061
20062 ac_header_preproc=no
20063fi
20064rm -f conftest.err conftest.$ac_ext
20065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20066echo "${ECHO_T}$ac_header_preproc" >&6
20067
20068# So? What about this header?
ac1cb8d3
VS
20069case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20070 yes:no: )
bdcade0a
MB
20071 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20072echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20073 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20074echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20075 ac_header_preproc=yes
bdcade0a 20076 ;;
ac1cb8d3 20077 no:yes:* )
bdcade0a
MB
20078 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20079echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20080 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20081echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20083echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20085echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20086 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20087echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20088 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20089echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20090 (
20091 cat <<\_ASBOX
ac1cb8d3
VS
20092## ----------------------------------------- ##
20093## Report this to wx-dev@lists.wxwidgets.org ##
20094## ----------------------------------------- ##
bdcade0a
MB
20095_ASBOX
20096 ) |
20097 sed "s/^/$as_me: WARNING: /" >&2
20098 ;;
20099esac
20100echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20101echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20102if test "${ac_cv_header_ext_hash_map+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104else
20105 ac_cv_header_ext_hash_map=$ac_header_preproc
20106fi
20107echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20108echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20109
20110fi
20111if test $ac_cv_header_ext_hash_map = yes; then
20112 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20113echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20114 cat >conftest.$ac_ext <<_ACEOF
20115/* confdefs.h. */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h. */
20120#include <ext/hash_map>
20121 #include <ext/hash_set>
20122int
20123main ()
20124{
20125__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20126 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20127 ;
20128 return 0;
20129}
20130_ACEOF
20131rm -f conftest.$ac_objext
20132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20133 (eval $ac_compile) 2>conftest.er1
bdcade0a 20134 ac_status=$?
ac1cb8d3
VS
20135 grep -v '^ *+' conftest.er1 >conftest.err
20136 rm -f conftest.er1
20137 cat conftest.err >&5
bdcade0a
MB
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } &&
b48a2016
DE
20140 { ac_try='test -z "$ac_cxx_werror_flag"
20141 || 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'
bdcade0a
MB
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_EXT_HASH_MAP 1
20157_ACEOF
20158
20159 cat >>confdefs.h <<\_ACEOF
20160#define HAVE_GNU_CXX_HASH_MAP 1
20161_ACEOF
20162
20163else
20164 echo "$as_me: failed program was:" >&5
20165sed 's/^/| /' conftest.$ac_ext >&5
20166
20167echo "$as_me:$LINENO: result: no" >&5
20168echo "${ECHO_T}no" >&6
20169fi
ac1cb8d3 20170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20171
20172fi
20173
20174
a848cd7e
SC
20175
20176 ac_ext=c
20177ac_cpp='$CPP $CPPFLAGS'
20178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20180ac_compiler_gnu=$ac_cv_c_compiler_gnu
20181
20182fi
20183
20184
20185SEARCH_INCLUDE="\
20186 /usr/local/include \
20187 \
20188 /usr/Motif-2.1/include \
20189 /usr/Motif-1.2/include \
20190 /usr/include/Motif1.2 \
20191 /opt/xpm/include/X11 \
20192 /opt/GBxpm/include/ \
20193 /opt/GBxpm/X11/include/ \
20194 \
20195 /usr/dt/include \
20196 /usr/openwin/include \
20197 \
20198 /usr/include/Xm \
20199 \
20200 /usr/X11R6/include \
20201 /usr/X11R6.4/include \
20202 /usr/X11R5/include \
20203 /usr/X11R4/include \
20204 \
20205 /usr/include/X11R6 \
20206 /usr/include/X11R5 \
20207 /usr/include/X11R4 \
20208 \
20209 /usr/local/X11R6/include \
20210 /usr/local/X11R5/include \
20211 /usr/local/X11R4/include \
20212 \
20213 /usr/local/include/X11R6 \
20214 /usr/local/include/X11R5 \
20215 /usr/local/include/X11R4 \
20216 \
20217 /usr/X11/include \
20218 /usr/include/X11 \
20219 /usr/local/X11/include \
20220 /usr/local/include/X11 \
20221 \
20222 /usr/X386/include \
20223 /usr/x386/include \
20224 /usr/XFree86/include/X11 \
20225 \
20226 X:/XFree86/include \
20227 X:/XFree86/include/X11 \
20228 \
20229 /usr/include/gtk \
20230 /usr/local/include/gtk \
20231 /usr/include/glib \
20232 /usr/local/include/glib \
20233 \
20234 /usr/include/qt \
20235 /usr/local/include/qt \
20236 \
20237 /usr/local/arm/3.3.2/include \
20238 \
20239 /usr/include/windows \
20240 /usr/include/wine \
20241 /usr/local/include/wine \
20242 \
20243 /usr/unsupported/include \
20244 /usr/athena/include \
20245 /usr/local/x11r5/include \
20246 /usr/lpp/Xamples/include \
20247 \
20248 /usr/openwin/share/include"
20249
20250SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20251
20252
20253cat >confcache <<\_ACEOF
20254# This file is a shell script that caches the results of configure
20255# tests run on this system so they can be shared between configure
20256# scripts and configure runs, see configure's option --config-cache.
20257# It is not useful on other systems. If it contains results you don't
20258# want to keep, you may remove or edit it.
20259#
20260# config.status only pays attention to the cache file if you give it
20261# the --recheck option to rerun configure.
20262#
20263# `ac_cv_env_foo' variables (set or unset) will be overridden when
20264# loading this file, other *unset* `ac_cv_foo' will be assigned the
20265# following values.
20266
20267_ACEOF
20268
20269# The following way of writing the cache mishandles newlines in values,
20270# but we know of no workaround that is simple, portable, and efficient.
20271# So, don't put newlines in cache variables' values.
20272# Ultrix sh set writes to stderr and can't be redirected directly,
20273# and sets the high bit in the cache file unless we assign to the vars.
20274{
20275 (set) 2>&1 |
20276 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20277 *ac_space=\ *)
20278 # `set' does not quote correctly, so add quotes (double-quote
20279 # substitution turns \\\\ into \\, and sed turns \\ into \).
20280 sed -n \
ac1cb8d3
VS
20281 "s/'/'\\\\''/g;
20282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20283 ;;
20284 *)
20285 # `set' quotes correctly as required by POSIX, so do not add quotes.
20286 sed -n \
ac1cb8d3 20287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20288 ;;
20289 esac;
20290} |
20291 sed '
20292 t clear
20293 : clear
20294 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20295 t end
20296 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20297 : end' >>confcache
20298if diff $cache_file confcache >/dev/null 2>&1; then :; else
20299 if test -w $cache_file; then
20300 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20301 cat confcache >$cache_file
20302 else
20303 echo "not updating unwritable cache $cache_file"
20304 fi
20305fi
20306rm -f confcache
20307
20308if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20309 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20310echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20311if test "${wx_cv_lib_glibc21+set}" = set; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20313else
20314
20315 cat >conftest.$ac_ext <<_ACEOF
20316/* confdefs.h. */
20317_ACEOF
20318cat confdefs.h >>conftest.$ac_ext
20319cat >>conftest.$ac_ext <<_ACEOF
20320/* end confdefs.h. */
20321#include <features.h>
20322int
20323main ()
20324{
20325
20326 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20327 #error not glibc2.1
20328 #endif
20329
20330 ;
20331 return 0;
20332}
20333_ACEOF
20334rm -f conftest.$ac_objext
20335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20336 (eval $ac_compile) 2>conftest.er1
a848cd7e 20337 ac_status=$?
ac1cb8d3
VS
20338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
a848cd7e
SC
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
b48a2016
DE
20343 { ac_try='test -z "$ac_c_werror_flag"
20344 || test ! -s conftest.err'
ac1cb8d3
VS
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; } &&
20350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356
20357 wx_cv_lib_glibc21=yes
20358
20359else
20360 echo "$as_me: failed program was:" >&5
20361sed 's/^/| /' conftest.$ac_ext >&5
20362
20363
20364 wx_cv_lib_glibc21=no
20365
20366
20367fi
ac1cb8d3 20368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20369
20370fi
20371echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20372echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20373 if test "$wx_cv_lib_glibc21" = "yes"; then
20374 cat >>confdefs.h <<\_ACEOF
20375#define wxHAVE_GLIBC2 1
20376_ACEOF
20377
20378 fi
20379fi
20380
20381if test "x$wx_cv_lib_glibc21" = "xyes"; then
20382 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20383 cat >>confdefs.h <<\_ACEOF
20384#define _GNU_SOURCE 1
20385_ACEOF
20386
20387 fi
20388fi
20389
20390
20391
20392if test "$wxUSE_REGEX" != "no"; then
20393 cat >>confdefs.h <<\_ACEOF
20394#define wxUSE_REGEX 1
20395_ACEOF
20396
20397
20398 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20399 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20400echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20401 wxUSE_REGEX=builtin
20402 fi
20403
20404 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20405 if test "${ac_cv_header_regex_h+set}" = set; then
20406 echo "$as_me:$LINENO: checking for regex.h" >&5
20407echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20408if test "${ac_cv_header_regex_h+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410fi
20411echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20412echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20413else
20414 # Is the header compilable?
20415echo "$as_me:$LINENO: checking regex.h usability" >&5
20416echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20417cat >conftest.$ac_ext <<_ACEOF
20418/* confdefs.h. */
20419_ACEOF
20420cat confdefs.h >>conftest.$ac_ext
20421cat >>conftest.$ac_ext <<_ACEOF
20422/* end confdefs.h. */
20423$ac_includes_default
20424#include <regex.h>
20425_ACEOF
20426rm -f conftest.$ac_objext
20427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20428 (eval $ac_compile) 2>conftest.er1
a848cd7e 20429 ac_status=$?
ac1cb8d3
VS
20430 grep -v '^ *+' conftest.er1 >conftest.err
20431 rm -f conftest.er1
20432 cat conftest.err >&5
a848cd7e
SC
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } &&
b48a2016
DE
20435 { ac_try='test -z "$ac_c_werror_flag"
20436 || test ! -s conftest.err'
ac1cb8d3
VS
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; } &&
20442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; }; then
20448 ac_header_compiler=yes
20449else
20450 echo "$as_me: failed program was:" >&5
20451sed 's/^/| /' conftest.$ac_ext >&5
20452
20453ac_header_compiler=no
20454fi
ac1cb8d3 20455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20456echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20457echo "${ECHO_T}$ac_header_compiler" >&6
20458
20459# Is the header present?
20460echo "$as_me:$LINENO: checking regex.h presence" >&5
20461echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20462cat >conftest.$ac_ext <<_ACEOF
20463/* confdefs.h. */
20464_ACEOF
20465cat confdefs.h >>conftest.$ac_ext
20466cat >>conftest.$ac_ext <<_ACEOF
20467/* end confdefs.h. */
20468#include <regex.h>
20469_ACEOF
20470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } >/dev/null; then
20478 if test -s conftest.err; then
20479 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20481 else
20482 ac_cpp_err=
20483 fi
20484else
20485 ac_cpp_err=yes
20486fi
20487if test -z "$ac_cpp_err"; then
20488 ac_header_preproc=yes
20489else
20490 echo "$as_me: failed program was:" >&5
20491sed 's/^/| /' conftest.$ac_ext >&5
20492
20493 ac_header_preproc=no
20494fi
20495rm -f conftest.err conftest.$ac_ext
20496echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20497echo "${ECHO_T}$ac_header_preproc" >&6
20498
20499# So? What about this header?
ac1cb8d3
VS
20500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20501 yes:no: )
a848cd7e
SC
20502 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20503echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20504 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20505echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20506 ac_header_preproc=yes
a848cd7e 20507 ;;
ac1cb8d3 20508 no:yes:* )
a848cd7e
SC
20509 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20510echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20511 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20512echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20513 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20514echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20515 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20516echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20517 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20518echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20519 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20520echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20521 (
20522 cat <<\_ASBOX
ac1cb8d3
VS
20523## ----------------------------------------- ##
20524## Report this to wx-dev@lists.wxwidgets.org ##
20525## ----------------------------------------- ##
a848cd7e
SC
20526_ASBOX
20527 ) |
20528 sed "s/^/$as_me: WARNING: /" >&2
20529 ;;
20530esac
20531echo "$as_me:$LINENO: checking for regex.h" >&5
20532echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20533if test "${ac_cv_header_regex_h+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535else
20536 ac_cv_header_regex_h=$ac_header_preproc
20537fi
20538echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20539echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20540
20541fi
20542if test $ac_cv_header_regex_h = yes; then
20543
20544for ac_func in regcomp
20545do
20546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20547echo "$as_me:$LINENO: checking for $ac_func" >&5
20548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20549if eval "test \"\${$as_ac_var+set}\" = set"; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20551else
20552 cat >conftest.$ac_ext <<_ACEOF
20553/* confdefs.h. */
20554_ACEOF
20555cat confdefs.h >>conftest.$ac_ext
20556cat >>conftest.$ac_ext <<_ACEOF
20557/* end confdefs.h. */
ac1cb8d3
VS
20558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20560#define $ac_func innocuous_$ac_func
20561
a848cd7e
SC
20562/* System header to define __stub macros and hopefully few prototypes,
20563 which can conflict with char $ac_func (); below.
20564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20565 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20566
a848cd7e
SC
20567#ifdef __STDC__
20568# include <limits.h>
20569#else
20570# include <assert.h>
20571#endif
ac1cb8d3
VS
20572
20573#undef $ac_func
20574
a848cd7e
SC
20575/* Override any gcc2 internal prototype to avoid an error. */
20576#ifdef __cplusplus
20577extern "C"
20578{
20579#endif
20580/* We use char because int might match the return type of a gcc2
20581 builtin and then its argument prototype would still apply. */
20582char $ac_func ();
20583/* The GNU C library defines this for functions which it implements
20584 to always fail with ENOSYS. Some functions are actually named
20585 something starting with __ and the normal name is an alias. */
20586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20587choke me
20588#else
20589char (*f) () = $ac_func;
20590#endif
20591#ifdef __cplusplus
20592}
20593#endif
20594
20595int
20596main ()
20597{
20598return f != $ac_func;
20599 ;
20600 return 0;
20601}
20602_ACEOF
20603rm -f conftest.$ac_objext conftest$ac_exeext
20604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20605 (eval $ac_link) 2>conftest.er1
a848cd7e 20606 ac_status=$?
ac1cb8d3
VS
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
a848cd7e
SC
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } &&
b48a2016
DE
20612 { ac_try='test -z "$ac_c_werror_flag"
20613 || test ! -s conftest.err'
ac1cb8d3
VS
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; } &&
20619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621 (eval $ac_try) 2>&5
20622 ac_status=$?
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; }; then
20625 eval "$as_ac_var=yes"
20626else
20627 echo "$as_me: failed program was:" >&5
20628sed 's/^/| /' conftest.$ac_ext >&5
20629
20630eval "$as_ac_var=no"
20631fi
ac1cb8d3
VS
20632rm -f conftest.err conftest.$ac_objext \
20633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20634fi
20635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20636echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20637if test `eval echo '${'$as_ac_var'}'` = yes; then
20638 cat >>confdefs.h <<_ACEOF
20639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20640_ACEOF
20641
20642fi
20643done
20644
20645fi
20646
20647
20648
20649 if test "x$ac_cv_func_regcomp" != "xyes"; then
20650 if test "$wxUSE_REGEX" = "sys" ; then
20651 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20652echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20653 { (exit 1); exit 1; }; }
20654 else
20655 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20656echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20657 wxUSE_REGEX=builtin
20658 fi
20659 else
20660 wxUSE_REGEX=sys
20661 cat >>confdefs.h <<\_ACEOF
20662#define WX_NO_REGEX_ADVANCED 1
20663_ACEOF
20664
20665 fi
20666 fi
20667fi
20668
20669
20670ZLIB_LINK=
20671if test "$wxUSE_ZLIB" != "no" ; then
20672 cat >>confdefs.h <<\_ACEOF
20673#define wxUSE_ZLIB 1
20674_ACEOF
20675
20676
20677 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20678 if test "$USE_DARWIN" = 1; then
20679 system_zlib_h_ok="yes"
20680 else
20681 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20682echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20683if test "${ac_cv_header_zlib_h+set}" = set; then
20684 echo $ECHO_N "(cached) $ECHO_C" >&6
20685else
20686 if test "$cross_compiling" = yes; then
20687 unset ac_cv_header_zlib_h
20688
20689else
20690 cat >conftest.$ac_ext <<_ACEOF
20691/* confdefs.h. */
20692_ACEOF
20693cat confdefs.h >>conftest.$ac_ext
20694cat >>conftest.$ac_ext <<_ACEOF
20695/* end confdefs.h. */
20696
20697 #include <zlib.h>
20698 #include <stdio.h>
20699
20700 int main()
20701 {
20702 FILE *f=fopen("conftestval", "w");
20703 if (!f) exit(1);
20704 fprintf(f, "%s",
20705 ZLIB_VERSION[0] == '1' &&
20706 (ZLIB_VERSION[2] > '1' ||
20707 (ZLIB_VERSION[2] == '1' &&
20708 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20709 exit(0);
20710 }
20711
20712_ACEOF
20713rm -f conftest$ac_exeext
20714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20715 (eval $ac_link) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 ac_cv_header_zlib_h=`cat conftestval`
20725else
20726 echo "$as_me: program exited with status $ac_status" >&5
20727echo "$as_me: failed program was:" >&5
20728sed 's/^/| /' conftest.$ac_ext >&5
20729
20730( exit $ac_status )
20731ac_cv_header_zlib_h=no
20732fi
ac1cb8d3 20733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20734fi
20735
20736fi
20737echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20738echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20739 if test "${ac_cv_header_zlib_h+set}" = set; then
20740 echo "$as_me:$LINENO: checking for zlib.h" >&5
20741echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20742if test "${ac_cv_header_zlib_h+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744fi
20745echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20746echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20747else
20748 # Is the header compilable?
20749echo "$as_me:$LINENO: checking zlib.h usability" >&5
20750echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20751cat >conftest.$ac_ext <<_ACEOF
20752/* confdefs.h. */
20753_ACEOF
20754cat confdefs.h >>conftest.$ac_ext
20755cat >>conftest.$ac_ext <<_ACEOF
20756/* end confdefs.h. */
20757$ac_includes_default
20758#include <zlib.h>
20759_ACEOF
20760rm -f conftest.$ac_objext
20761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20762 (eval $ac_compile) 2>conftest.er1
a848cd7e 20763 ac_status=$?
ac1cb8d3
VS
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
a848cd7e
SC
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
b48a2016
DE
20769 { ac_try='test -z "$ac_c_werror_flag"
20770 || test ! -s conftest.err'
ac1cb8d3
VS
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_header_compiler=yes
20783else
20784 echo "$as_me: failed program was:" >&5
20785sed 's/^/| /' conftest.$ac_ext >&5
20786
20787ac_header_compiler=no
20788fi
ac1cb8d3 20789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20790echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20791echo "${ECHO_T}$ac_header_compiler" >&6
20792
20793# Is the header present?
20794echo "$as_me:$LINENO: checking zlib.h presence" >&5
20795echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20796cat >conftest.$ac_ext <<_ACEOF
20797/* confdefs.h. */
20798_ACEOF
20799cat confdefs.h >>conftest.$ac_ext
20800cat >>conftest.$ac_ext <<_ACEOF
20801/* end confdefs.h. */
20802#include <zlib.h>
20803_ACEOF
20804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20806 ac_status=$?
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } >/dev/null; then
20812 if test -s conftest.err; then
20813 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20815 else
20816 ac_cpp_err=
20817 fi
20818else
20819 ac_cpp_err=yes
20820fi
20821if test -z "$ac_cpp_err"; then
20822 ac_header_preproc=yes
20823else
20824 echo "$as_me: failed program was:" >&5
20825sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 ac_header_preproc=no
20828fi
20829rm -f conftest.err conftest.$ac_ext
20830echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20831echo "${ECHO_T}$ac_header_preproc" >&6
20832
20833# So? What about this header?
ac1cb8d3
VS
20834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20835 yes:no: )
a848cd7e
SC
20836 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20837echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20838 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20839echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20840 ac_header_preproc=yes
a848cd7e 20841 ;;
ac1cb8d3 20842 no:yes:* )
a848cd7e
SC
20843 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20844echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20845 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20846echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20847 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20848echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20849 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20850echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20851 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20852echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20853 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20854echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20855 (
20856 cat <<\_ASBOX
ac1cb8d3
VS
20857## ----------------------------------------- ##
20858## Report this to wx-dev@lists.wxwidgets.org ##
20859## ----------------------------------------- ##
a848cd7e
SC
20860_ASBOX
20861 ) |
20862 sed "s/^/$as_me: WARNING: /" >&2
20863 ;;
20864esac
20865echo "$as_me:$LINENO: checking for zlib.h" >&5
20866echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20867if test "${ac_cv_header_zlib_h+set}" = set; then
20868 echo $ECHO_N "(cached) $ECHO_C" >&6
20869else
20870 ac_cv_header_zlib_h=$ac_header_preproc
20871fi
20872echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20873echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20874
20875fi
20876
20877
20878
20879 system_zlib_h_ok=$ac_cv_header_zlib_h
20880 fi
20881
20882 if test "$system_zlib_h_ok" = "yes"; then
20883 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20884echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20885if test "${ac_cv_lib_z_deflate+set}" = set; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
20887else
20888 ac_check_lib_save_LIBS=$LIBS
20889LIBS="-lz $LIBS"
20890cat >conftest.$ac_ext <<_ACEOF
20891/* confdefs.h. */
20892_ACEOF
20893cat confdefs.h >>conftest.$ac_ext
20894cat >>conftest.$ac_ext <<_ACEOF
20895/* end confdefs.h. */
20896
20897/* Override any gcc2 internal prototype to avoid an error. */
20898#ifdef __cplusplus
20899extern "C"
20900#endif
20901/* We use char because int might match the return type of a gcc2
20902 builtin and then its argument prototype would still apply. */
20903char deflate ();
20904int
20905main ()
20906{
20907deflate ();
20908 ;
20909 return 0;
20910}
20911_ACEOF
20912rm -f conftest.$ac_objext conftest$ac_exeext
20913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20914 (eval $ac_link) 2>conftest.er1
a848cd7e 20915 ac_status=$?
ac1cb8d3
VS
20916 grep -v '^ *+' conftest.er1 >conftest.err
20917 rm -f conftest.er1
20918 cat conftest.err >&5
a848cd7e
SC
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } &&
b48a2016
DE
20921 { ac_try='test -z "$ac_c_werror_flag"
20922 || test ! -s conftest.err'
ac1cb8d3
VS
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; } &&
20928 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; }; then
20934 ac_cv_lib_z_deflate=yes
20935else
20936 echo "$as_me: failed program was:" >&5
20937sed 's/^/| /' conftest.$ac_ext >&5
20938
20939ac_cv_lib_z_deflate=no
20940fi
ac1cb8d3
VS
20941rm -f conftest.err conftest.$ac_objext \
20942 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20943LIBS=$ac_check_lib_save_LIBS
20944fi
20945echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20946echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20947if test $ac_cv_lib_z_deflate = yes; then
20948 ZLIB_LINK=" -lz"
20949fi
20950
20951 fi
20952
20953 if test "x$ZLIB_LINK" = "x" ; then
20954 if test "$wxUSE_ZLIB" = "sys" ; then
20955 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20956echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20957 { (exit 1); exit 1; }; }
20958 else
20959 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20960echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20961 wxUSE_ZLIB=builtin
20962 fi
20963 else
20964 wxUSE_ZLIB=sys
20965 fi
20966 fi
20967fi
20968
20969
20970PNG_LINK=
20971if test "$wxUSE_LIBPNG" != "no" ; then
20972 cat >>confdefs.h <<\_ACEOF
20973#define wxUSE_LIBPNG 1
20974_ACEOF
20975
20976
20977 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20978 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20979echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20980 wxUSE_LIBPNG=sys
20981 fi
20982
20983 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20984 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20985echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20986 wxUSE_LIBPNG=builtin
20987 fi
20988
20989 if test "$wxUSE_MGL" != 1 ; then
20990 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20991 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20992echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20993if test "${ac_cv_header_png_h+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20995else
20996 if test "$cross_compiling" = yes; then
20997 unset ac_cv_header_png_h
20998
20999else
21000 cat >conftest.$ac_ext <<_ACEOF
21001/* confdefs.h. */
21002_ACEOF
21003cat confdefs.h >>conftest.$ac_ext
21004cat >>conftest.$ac_ext <<_ACEOF
21005/* end confdefs.h. */
21006
21007 #include <png.h>
21008 #include <stdio.h>
21009
21010 int main()
21011 {
21012 FILE *f=fopen("conftestval", "w");
21013 if (!f) exit(1);
21014 fprintf(f, "%s",
21015 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21016 exit(0);
21017 }
21018
21019_ACEOF
21020rm -f conftest$ac_exeext
21021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21022 (eval $ac_link) 2>&5
21023 ac_status=$?
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21028 ac_status=$?
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; }; then
21031 ac_cv_header_png_h=`cat conftestval`
21032else
21033 echo "$as_me: program exited with status $ac_status" >&5
21034echo "$as_me: failed program was:" >&5
21035sed 's/^/| /' conftest.$ac_ext >&5
21036
21037( exit $ac_status )
21038ac_cv_header_png_h=no
21039fi
ac1cb8d3 21040rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21041fi
21042
21043fi
21044echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21045echo "${ECHO_T}$ac_cv_header_png_h" >&6
21046 if test "${ac_cv_header_png_h+set}" = set; then
21047 echo "$as_me:$LINENO: checking for png.h" >&5
21048echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21049if test "${ac_cv_header_png_h+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21051fi
21052echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21053echo "${ECHO_T}$ac_cv_header_png_h" >&6
21054else
21055 # Is the header compilable?
21056echo "$as_me:$LINENO: checking png.h usability" >&5
21057echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21058cat >conftest.$ac_ext <<_ACEOF
21059/* confdefs.h. */
21060_ACEOF
21061cat confdefs.h >>conftest.$ac_ext
21062cat >>conftest.$ac_ext <<_ACEOF
21063/* end confdefs.h. */
21064$ac_includes_default
21065#include <png.h>
21066_ACEOF
21067rm -f conftest.$ac_objext
21068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21069 (eval $ac_compile) 2>conftest.er1
a848cd7e 21070 ac_status=$?
ac1cb8d3
VS
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
a848cd7e
SC
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } &&
b48a2016
DE
21076 { ac_try='test -z "$ac_c_werror_flag"
21077 || test ! -s conftest.err'
ac1cb8d3
VS
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; } &&
21083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 ac_header_compiler=yes
21090else
21091 echo "$as_me: failed program was:" >&5
21092sed 's/^/| /' conftest.$ac_ext >&5
21093
21094ac_header_compiler=no
21095fi
ac1cb8d3 21096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21097echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21098echo "${ECHO_T}$ac_header_compiler" >&6
21099
21100# Is the header present?
21101echo "$as_me:$LINENO: checking png.h presence" >&5
21102echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21103cat >conftest.$ac_ext <<_ACEOF
21104/* confdefs.h. */
21105_ACEOF
21106cat confdefs.h >>conftest.$ac_ext
21107cat >>conftest.$ac_ext <<_ACEOF
21108/* end confdefs.h. */
21109#include <png.h>
21110_ACEOF
21111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } >/dev/null; then
21119 if test -s conftest.err; then
21120 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21122 else
21123 ac_cpp_err=
21124 fi
21125else
21126 ac_cpp_err=yes
21127fi
21128if test -z "$ac_cpp_err"; then
21129 ac_header_preproc=yes
21130else
21131 echo "$as_me: failed program was:" >&5
21132sed 's/^/| /' conftest.$ac_ext >&5
21133
21134 ac_header_preproc=no
21135fi
21136rm -f conftest.err conftest.$ac_ext
21137echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21138echo "${ECHO_T}$ac_header_preproc" >&6
21139
21140# So? What about this header?
ac1cb8d3
VS
21141case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21142 yes:no: )
a848cd7e
SC
21143 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21144echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21145 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21146echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21147 ac_header_preproc=yes
a848cd7e 21148 ;;
ac1cb8d3 21149 no:yes:* )
a848cd7e
SC
21150 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21151echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21152 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21153echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21155echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21156 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21157echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21158 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21159echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21160 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21161echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21162 (
21163 cat <<\_ASBOX
ac1cb8d3
VS
21164## ----------------------------------------- ##
21165## Report this to wx-dev@lists.wxwidgets.org ##
21166## ----------------------------------------- ##
a848cd7e
SC
21167_ASBOX
21168 ) |
21169 sed "s/^/$as_me: WARNING: /" >&2
21170 ;;
21171esac
21172echo "$as_me:$LINENO: checking for png.h" >&5
21173echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21174if test "${ac_cv_header_png_h+set}" = set; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21176else
21177 ac_cv_header_png_h=$ac_header_preproc
21178fi
21179echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21180echo "${ECHO_T}$ac_cv_header_png_h" >&6
21181
21182fi
21183
21184
21185
21186 if test "$ac_cv_header_png_h" = "yes"; then
21187 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21188echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21189if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21191else
21192 ac_check_lib_save_LIBS=$LIBS
21193LIBS="-lpng -lz -lm $LIBS"
21194cat >conftest.$ac_ext <<_ACEOF
21195/* confdefs.h. */
21196_ACEOF
21197cat confdefs.h >>conftest.$ac_ext
21198cat >>conftest.$ac_ext <<_ACEOF
21199/* end confdefs.h. */
21200
21201/* Override any gcc2 internal prototype to avoid an error. */
21202#ifdef __cplusplus
21203extern "C"
21204#endif
21205/* We use char because int might match the return type of a gcc2
21206 builtin and then its argument prototype would still apply. */
21207char png_check_sig ();
21208int
21209main ()
21210{
21211png_check_sig ();
21212 ;
21213 return 0;
21214}
21215_ACEOF
21216rm -f conftest.$ac_objext conftest$ac_exeext
21217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21218 (eval $ac_link) 2>conftest.er1
a848cd7e 21219 ac_status=$?
ac1cb8d3
VS
21220 grep -v '^ *+' conftest.er1 >conftest.err
21221 rm -f conftest.er1
21222 cat conftest.err >&5
a848cd7e
SC
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } &&
b48a2016
DE
21225 { ac_try='test -z "$ac_c_werror_flag"
21226 || test ! -s conftest.err'
ac1cb8d3
VS
21227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21228 (eval $ac_try) 2>&5
21229 ac_status=$?
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); }; } &&
21232 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21234 (eval $ac_try) 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; }; then
21238 ac_cv_lib_png_png_check_sig=yes
21239else
21240 echo "$as_me: failed program was:" >&5
21241sed 's/^/| /' conftest.$ac_ext >&5
21242
21243ac_cv_lib_png_png_check_sig=no
21244fi
ac1cb8d3
VS
21245rm -f conftest.err conftest.$ac_objext \
21246 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21247LIBS=$ac_check_lib_save_LIBS
21248fi
21249echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21250echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21251if test $ac_cv_lib_png_png_check_sig = yes; then
21252 PNG_LINK=" -lpng -lz"
21253fi
21254
21255 fi
21256
21257 if test "x$PNG_LINK" = "x" ; then
21258 if test "$wxUSE_LIBPNG" = "sys" ; then
21259 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21260echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21261 { (exit 1); exit 1; }; }
21262 else
21263 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21264echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21265 wxUSE_LIBPNG=builtin
21266 fi
21267 else
21268 wxUSE_LIBPNG=sys
21269 fi
21270 fi
21271 fi
21272
21273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21274fi
21275
21276
21277JPEG_LINK=
21278if test "$wxUSE_LIBJPEG" != "no" ; then
21279 cat >>confdefs.h <<\_ACEOF
21280#define wxUSE_LIBJPEG 1
21281_ACEOF
21282
21283
21284 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21285 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21286echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21287 wxUSE_LIBJPEG=sys
21288 fi
21289
21290 if test "$wxUSE_MGL" != 1 ; then
21291 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21292 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21293echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21294 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21296else
21297 cat >conftest.$ac_ext <<_ACEOF
21298/* confdefs.h. */
21299_ACEOF
21300cat confdefs.h >>conftest.$ac_ext
21301cat >>conftest.$ac_ext <<_ACEOF
21302/* end confdefs.h. */
21303
21304 #undef HAVE_STDLIB_H
21305 #include <stdio.h>
21306 #include <jpeglib.h>
21307
21308int
21309main ()
21310{
21311
21312
21313 ;
21314 return 0;
21315}
21316_ACEOF
21317rm -f conftest.$ac_objext
21318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21319 (eval $ac_compile) 2>conftest.er1
a848cd7e 21320 ac_status=$?
ac1cb8d3
VS
21321 grep -v '^ *+' conftest.er1 >conftest.err
21322 rm -f conftest.er1
21323 cat conftest.err >&5
a848cd7e
SC
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } &&
b48a2016
DE
21326 { ac_try='test -z "$ac_c_werror_flag"
21327 || test ! -s conftest.err'
ac1cb8d3
VS
21328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21329 (eval $ac_try) 2>&5
21330 ac_status=$?
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); }; } &&
21333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21335 (eval $ac_try) 2>&5
21336 ac_status=$?
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); }; }; then
21339 ac_cv_header_jpeglib_h=yes
21340else
21341 echo "$as_me: failed program was:" >&5
21342sed 's/^/| /' conftest.$ac_ext >&5
21343
21344ac_cv_header_jpeglib_h=no
21345
21346fi
ac1cb8d3 21347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21348
21349fi
21350
21351 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21352echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21353
21354 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21355 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21356echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21357if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21358 echo $ECHO_N "(cached) $ECHO_C" >&6
21359else
21360 ac_check_lib_save_LIBS=$LIBS
21361LIBS="-ljpeg $LIBS"
21362cat >conftest.$ac_ext <<_ACEOF
21363/* confdefs.h. */
21364_ACEOF
21365cat confdefs.h >>conftest.$ac_ext
21366cat >>conftest.$ac_ext <<_ACEOF
21367/* end confdefs.h. */
21368
21369/* Override any gcc2 internal prototype to avoid an error. */
21370#ifdef __cplusplus
21371extern "C"
21372#endif
21373/* We use char because int might match the return type of a gcc2
21374 builtin and then its argument prototype would still apply. */
21375char jpeg_read_header ();
21376int
21377main ()
21378{
21379jpeg_read_header ();
21380 ;
21381 return 0;
21382}
21383_ACEOF
21384rm -f conftest.$ac_objext conftest$ac_exeext
21385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21386 (eval $ac_link) 2>conftest.er1
a848cd7e 21387 ac_status=$?
ac1cb8d3
VS
21388 grep -v '^ *+' conftest.er1 >conftest.err
21389 rm -f conftest.er1
21390 cat conftest.err >&5
a848cd7e
SC
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } &&
b48a2016
DE
21393 { ac_try='test -z "$ac_c_werror_flag"
21394 || test ! -s conftest.err'
ac1cb8d3
VS
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; } &&
21400 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ac_cv_lib_jpeg_jpeg_read_header=yes
21407else
21408 echo "$as_me: failed program was:" >&5
21409sed 's/^/| /' conftest.$ac_ext >&5
21410
21411ac_cv_lib_jpeg_jpeg_read_header=no
21412fi
ac1cb8d3
VS
21413rm -f conftest.err conftest.$ac_objext \
21414 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21415LIBS=$ac_check_lib_save_LIBS
21416fi
21417echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21418echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21419if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21420 JPEG_LINK=" -ljpeg"
21421fi
21422
21423 fi
21424
21425 if test "x$JPEG_LINK" = "x" ; then
21426 if test "$wxUSE_LIBJPEG" = "sys" ; then
21427 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21428echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21429 { (exit 1); exit 1; }; }
21430 else
21431 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21432echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21433 wxUSE_LIBJPEG=builtin
21434 fi
21435 else
21436 wxUSE_LIBJPEG=sys
21437 fi
21438 fi
21439 fi
21440fi
21441
21442
21443TIFF_LINK=
21444TIFF_PREREQ_LINKS=-lm
21445if test "$wxUSE_LIBTIFF" != "no" ; then
21446 cat >>confdefs.h <<\_ACEOF
21447#define wxUSE_LIBTIFF 1
21448_ACEOF
21449
21450
21451 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21452 if test "$wxUSE_LIBJPEG" = "sys"; then
21453 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21454 fi
21455 if test "$wxUSE_ZLIB" = "sys"; then
21456 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21457 fi
21458 if test "${ac_cv_header_tiffio_h+set}" = set; then
21459 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21460echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21461if test "${ac_cv_header_tiffio_h+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21463fi
21464echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21465echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21466else
21467 # Is the header compilable?
21468echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21469echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21470cat >conftest.$ac_ext <<_ACEOF
21471/* confdefs.h. */
21472_ACEOF
21473cat confdefs.h >>conftest.$ac_ext
21474cat >>conftest.$ac_ext <<_ACEOF
21475/* end confdefs.h. */
21476$ac_includes_default
21477#include <tiffio.h>
21478_ACEOF
21479rm -f conftest.$ac_objext
21480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21481 (eval $ac_compile) 2>conftest.er1
a848cd7e 21482 ac_status=$?
ac1cb8d3
VS
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
a848cd7e
SC
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
b48a2016
DE
21488 { ac_try='test -z "$ac_c_werror_flag"
21489 || test ! -s conftest.err'
ac1cb8d3
VS
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21492 ac_status=$?
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; } &&
21495 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21498 ac_status=$?
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 ac_header_compiler=yes
21502else
21503 echo "$as_me: failed program was:" >&5
21504sed 's/^/| /' conftest.$ac_ext >&5
21505
21506ac_header_compiler=no
21507fi
ac1cb8d3 21508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21509echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21510echo "${ECHO_T}$ac_header_compiler" >&6
21511
21512# Is the header present?
21513echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21514echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21515cat >conftest.$ac_ext <<_ACEOF
21516/* confdefs.h. */
21517_ACEOF
21518cat confdefs.h >>conftest.$ac_ext
21519cat >>conftest.$ac_ext <<_ACEOF
21520/* end confdefs.h. */
21521#include <tiffio.h>
21522_ACEOF
21523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21525 ac_status=$?
21526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } >/dev/null; then
21531 if test -s conftest.err; then
21532 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21534 else
21535 ac_cpp_err=
21536 fi
21537else
21538 ac_cpp_err=yes
21539fi
21540if test -z "$ac_cpp_err"; then
21541 ac_header_preproc=yes
21542else
21543 echo "$as_me: failed program was:" >&5
21544sed 's/^/| /' conftest.$ac_ext >&5
21545
21546 ac_header_preproc=no
21547fi
21548rm -f conftest.err conftest.$ac_ext
21549echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21550echo "${ECHO_T}$ac_header_preproc" >&6
21551
21552# So? What about this header?
ac1cb8d3
VS
21553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21554 yes:no: )
a848cd7e
SC
21555 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21556echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21557 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21558echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21559 ac_header_preproc=yes
a848cd7e 21560 ;;
ac1cb8d3 21561 no:yes:* )
a848cd7e
SC
21562 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21563echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21564 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21565echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21566 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21567echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21568 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21569echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21570 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21571echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21572 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21573echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21574 (
21575 cat <<\_ASBOX
ac1cb8d3
VS
21576## ----------------------------------------- ##
21577## Report this to wx-dev@lists.wxwidgets.org ##
21578## ----------------------------------------- ##
a848cd7e
SC
21579_ASBOX
21580 ) |
21581 sed "s/^/$as_me: WARNING: /" >&2
21582 ;;
21583esac
21584echo "$as_me:$LINENO: checking for tiffio.h" >&5
21585echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21586if test "${ac_cv_header_tiffio_h+set}" = set; then
21587 echo $ECHO_N "(cached) $ECHO_C" >&6
21588else
21589 ac_cv_header_tiffio_h=$ac_header_preproc
21590fi
21591echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21592echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21593
21594fi
21595if test $ac_cv_header_tiffio_h = yes; then
21596
21597 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21598echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21599if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21600 echo $ECHO_N "(cached) $ECHO_C" >&6
21601else
21602 ac_check_lib_save_LIBS=$LIBS
21603LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21604cat >conftest.$ac_ext <<_ACEOF
21605/* confdefs.h. */
21606_ACEOF
21607cat confdefs.h >>conftest.$ac_ext
21608cat >>conftest.$ac_ext <<_ACEOF
21609/* end confdefs.h. */
21610
21611/* Override any gcc2 internal prototype to avoid an error. */
21612#ifdef __cplusplus
21613extern "C"
21614#endif
21615/* We use char because int might match the return type of a gcc2
21616 builtin and then its argument prototype would still apply. */
21617char TIFFError ();
21618int
21619main ()
21620{
21621TIFFError ();
21622 ;
21623 return 0;
21624}
21625_ACEOF
21626rm -f conftest.$ac_objext conftest$ac_exeext
21627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21628 (eval $ac_link) 2>conftest.er1
a848cd7e 21629 ac_status=$?
ac1cb8d3
VS
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
a848cd7e
SC
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
b48a2016
DE
21635 { ac_try='test -z "$ac_c_werror_flag"
21636 || test ! -s conftest.err'
ac1cb8d3
VS
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; } &&
21642 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 ac_cv_lib_tiff_TIFFError=yes
21649else
21650 echo "$as_me: failed program was:" >&5
21651sed 's/^/| /' conftest.$ac_ext >&5
21652
21653ac_cv_lib_tiff_TIFFError=no
21654fi
ac1cb8d3
VS
21655rm -f conftest.err conftest.$ac_objext \
21656 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21657LIBS=$ac_check_lib_save_LIBS
21658fi
21659echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21660echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21661if test $ac_cv_lib_tiff_TIFFError = yes; then
21662 TIFF_LINK=" -ltiff"
21663fi
21664
21665
21666
21667fi
21668
21669
21670
21671 if test "x$TIFF_LINK" = "x" ; then
21672 if test "$wxUSE_LIBTIFF" = "sys" ; then
21673 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21674echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21675 { (exit 1); exit 1; }; }
21676 else
21677 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21678echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21679 wxUSE_LIBTIFF=builtin
21680 fi
21681 else
21682 wxUSE_LIBTIFF=sys
21683 fi
21684 fi
21685fi
21686
21687
21688if test "$wxUSE_EXPAT" != "no"; then
21689 wxUSE_XML=yes
21690 cat >>confdefs.h <<\_ACEOF
21691#define wxUSE_EXPAT 1
21692_ACEOF
21693
21694 cat >>confdefs.h <<\_ACEOF
21695#define wxUSE_XML 1
21696_ACEOF
21697
21698
21699 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21700 if test "${ac_cv_header_expat_h+set}" = set; then
21701 echo "$as_me:$LINENO: checking for expat.h" >&5
21702echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21703if test "${ac_cv_header_expat_h+set}" = set; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21705fi
21706echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21707echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21708else
21709 # Is the header compilable?
21710echo "$as_me:$LINENO: checking expat.h usability" >&5
21711echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21712cat >conftest.$ac_ext <<_ACEOF
21713/* confdefs.h. */
21714_ACEOF
21715cat confdefs.h >>conftest.$ac_ext
21716cat >>conftest.$ac_ext <<_ACEOF
21717/* end confdefs.h. */
21718$ac_includes_default
21719#include <expat.h>
21720_ACEOF
21721rm -f conftest.$ac_objext
21722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21723 (eval $ac_compile) 2>conftest.er1
a848cd7e 21724 ac_status=$?
ac1cb8d3
VS
21725 grep -v '^ *+' conftest.er1 >conftest.err
21726 rm -f conftest.er1
21727 cat conftest.err >&5
a848cd7e
SC
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); } &&
b48a2016
DE
21730 { ac_try='test -z "$ac_c_werror_flag"
21731 || test ! -s conftest.err'
ac1cb8d3
VS
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21734 ac_status=$?
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; } &&
21737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; }; then
21743 ac_header_compiler=yes
21744else
21745 echo "$as_me: failed program was:" >&5
21746sed 's/^/| /' conftest.$ac_ext >&5
21747
21748ac_header_compiler=no
21749fi
ac1cb8d3 21750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21752echo "${ECHO_T}$ac_header_compiler" >&6
21753
21754# Is the header present?
21755echo "$as_me:$LINENO: checking expat.h presence" >&5
21756echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21757cat >conftest.$ac_ext <<_ACEOF
21758/* confdefs.h. */
21759_ACEOF
21760cat confdefs.h >>conftest.$ac_ext
21761cat >>conftest.$ac_ext <<_ACEOF
21762/* end confdefs.h. */
21763#include <expat.h>
21764_ACEOF
21765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21767 ac_status=$?
21768 grep -v '^ *+' conftest.er1 >conftest.err
21769 rm -f conftest.er1
21770 cat conftest.err >&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } >/dev/null; then
21773 if test -s conftest.err; then
21774 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21776 else
21777 ac_cpp_err=
21778 fi
21779else
21780 ac_cpp_err=yes
21781fi
21782if test -z "$ac_cpp_err"; then
21783 ac_header_preproc=yes
21784else
21785 echo "$as_me: failed program was:" >&5
21786sed 's/^/| /' conftest.$ac_ext >&5
21787
21788 ac_header_preproc=no
21789fi
21790rm -f conftest.err conftest.$ac_ext
21791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21792echo "${ECHO_T}$ac_header_preproc" >&6
21793
21794# So? What about this header?
ac1cb8d3
VS
21795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21796 yes:no: )
a848cd7e
SC
21797 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21798echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21799 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21800echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21801 ac_header_preproc=yes
a848cd7e 21802 ;;
ac1cb8d3 21803 no:yes:* )
a848cd7e
SC
21804 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21805echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21806 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21807echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21808 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21809echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21810 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21811echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21812 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21813echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21814 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21815echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21816 (
21817 cat <<\_ASBOX
ac1cb8d3
VS
21818## ----------------------------------------- ##
21819## Report this to wx-dev@lists.wxwidgets.org ##
21820## ----------------------------------------- ##
a848cd7e
SC
21821_ASBOX
21822 ) |
21823 sed "s/^/$as_me: WARNING: /" >&2
21824 ;;
21825esac
21826echo "$as_me:$LINENO: checking for expat.h" >&5
21827echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21828if test "${ac_cv_header_expat_h+set}" = set; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21830else
21831 ac_cv_header_expat_h=$ac_header_preproc
21832fi
21833echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21834echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21835
21836fi
21837if test $ac_cv_header_expat_h = yes; then
21838 found_expat_h=1
21839fi
21840
21841
21842 if test "x$found_expat_h" = "x1"; then
21843 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21844echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21845if test "${wx_cv_expat_is_not_broken+set}" = set; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
21847else
21848
21849
21850
21851 ac_ext=cc
21852ac_cpp='$CXXCPP $CPPFLAGS'
21853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21856
21857 cat >conftest.$ac_ext <<_ACEOF
21858/* confdefs.h. */
21859_ACEOF
21860cat confdefs.h >>conftest.$ac_ext
21861cat >>conftest.$ac_ext <<_ACEOF
21862/* end confdefs.h. */
21863#include <expat.h>
21864int
21865main ()
21866{
21867
21868 ;
21869 return 0;
21870}
21871_ACEOF
21872rm -f conftest.$ac_objext
21873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21874 (eval $ac_compile) 2>conftest.er1
a848cd7e 21875 ac_status=$?
ac1cb8d3
VS
21876 grep -v '^ *+' conftest.er1 >conftest.err
21877 rm -f conftest.er1
21878 cat conftest.err >&5
a848cd7e
SC
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } &&
b48a2016
DE
21881 { ac_try='test -z "$ac_cxx_werror_flag"
21882 || test ! -s conftest.err'
ac1cb8d3
VS
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21885 ac_status=$?
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; } &&
21888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890 (eval $ac_try) 2>&5
21891 ac_status=$?
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; }; then
21894 wx_cv_expat_is_not_broken=yes
21895else
21896 echo "$as_me: failed program was:" >&5
21897sed 's/^/| /' conftest.$ac_ext >&5
21898
21899wx_cv_expat_is_not_broken=no
21900
21901fi
ac1cb8d3 21902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21903 ac_ext=c
21904ac_cpp='$CPP $CPPFLAGS'
21905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907ac_compiler_gnu=$ac_cv_c_compiler_gnu
21908
21909
21910
21911fi
21912echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21913echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21914 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21915 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21916echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21917if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
21919else
21920 ac_check_lib_save_LIBS=$LIBS
21921LIBS="-lexpat $LIBS"
21922cat >conftest.$ac_ext <<_ACEOF
21923/* confdefs.h. */
21924_ACEOF
21925cat confdefs.h >>conftest.$ac_ext
21926cat >>conftest.$ac_ext <<_ACEOF
21927/* end confdefs.h. */
21928
21929/* Override any gcc2 internal prototype to avoid an error. */
21930#ifdef __cplusplus
21931extern "C"
21932#endif
21933/* We use char because int might match the return type of a gcc2
21934 builtin and then its argument prototype would still apply. */
21935char XML_ParserCreate ();
21936int
21937main ()
21938{
21939XML_ParserCreate ();
21940 ;
21941 return 0;
21942}
21943_ACEOF
21944rm -f conftest.$ac_objext conftest$ac_exeext
21945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21946 (eval $ac_link) 2>conftest.er1
a848cd7e 21947 ac_status=$?
ac1cb8d3
VS
21948 grep -v '^ *+' conftest.er1 >conftest.err
21949 rm -f conftest.er1
21950 cat conftest.err >&5
a848cd7e
SC
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); } &&
b48a2016
DE
21953 { ac_try='test -z "$ac_c_werror_flag"
21954 || test ! -s conftest.err'
ac1cb8d3
VS
21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956 (eval $ac_try) 2>&5
21957 ac_status=$?
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; } &&
21960 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; }; then
21966 ac_cv_lib_expat_XML_ParserCreate=yes
21967else
21968 echo "$as_me: failed program was:" >&5
21969sed 's/^/| /' conftest.$ac_ext >&5
21970
21971ac_cv_lib_expat_XML_ParserCreate=no
21972fi
ac1cb8d3
VS
21973rm -f conftest.err conftest.$ac_objext \
21974 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21975LIBS=$ac_check_lib_save_LIBS
21976fi
21977echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21978echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21979if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21980 EXPAT_LINK=" -lexpat"
21981fi
21982
21983 fi
21984 fi
21985 if test "x$EXPAT_LINK" = "x" ; then
21986 if test "$wxUSE_EXPAT" = "sys" ; then
21987 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21988echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21989 { (exit 1); exit 1; }; }
21990 else
21991 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21992echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21993 wxUSE_EXPAT=builtin
21994 fi
21995 else
21996 wxUSE_EXPAT=sys
21997 fi
21998 fi
21999 if test "$wxUSE_EXPAT" = "builtin" ; then
22000
22001
22002subdirs="$subdirs src/expat"
22003
22004 fi
22005fi
22006
22007
22008
22009if test "$wxUSE_LIBMSPACK" != "no"; then
22010
22011 if test "${ac_cv_header_mspack_h+set}" = set; then
22012 echo "$as_me:$LINENO: checking for mspack.h" >&5
22013echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22014if test "${ac_cv_header_mspack_h+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22016fi
22017echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22018echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22019else
22020 # Is the header compilable?
22021echo "$as_me:$LINENO: checking mspack.h usability" >&5
22022echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22023cat >conftest.$ac_ext <<_ACEOF
22024/* confdefs.h. */
22025_ACEOF
22026cat confdefs.h >>conftest.$ac_ext
22027cat >>conftest.$ac_ext <<_ACEOF
22028/* end confdefs.h. */
22029$ac_includes_default
22030#include <mspack.h>
22031_ACEOF
22032rm -f conftest.$ac_objext
22033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22034 (eval $ac_compile) 2>conftest.er1
a848cd7e 22035 ac_status=$?
ac1cb8d3
VS
22036 grep -v '^ *+' conftest.er1 >conftest.err
22037 rm -f conftest.er1
22038 cat conftest.err >&5
a848cd7e
SC
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
b48a2016
DE
22041 { ac_try='test -z "$ac_c_werror_flag"
22042 || test ! -s conftest.err'
ac1cb8d3
VS
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22045 ac_status=$?
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; } &&
22048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22051 ac_status=$?
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; }; then
22054 ac_header_compiler=yes
22055else
22056 echo "$as_me: failed program was:" >&5
22057sed 's/^/| /' conftest.$ac_ext >&5
22058
22059ac_header_compiler=no
22060fi
ac1cb8d3 22061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22063echo "${ECHO_T}$ac_header_compiler" >&6
22064
22065# Is the header present?
22066echo "$as_me:$LINENO: checking mspack.h presence" >&5
22067echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22068cat >conftest.$ac_ext <<_ACEOF
22069/* confdefs.h. */
22070_ACEOF
22071cat confdefs.h >>conftest.$ac_ext
22072cat >>conftest.$ac_ext <<_ACEOF
22073/* end confdefs.h. */
22074#include <mspack.h>
22075_ACEOF
22076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22078 ac_status=$?
22079 grep -v '^ *+' conftest.er1 >conftest.err
22080 rm -f conftest.er1
22081 cat conftest.err >&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } >/dev/null; then
22084 if test -s conftest.err; then
22085 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22087 else
22088 ac_cpp_err=
22089 fi
22090else
22091 ac_cpp_err=yes
22092fi
22093if test -z "$ac_cpp_err"; then
22094 ac_header_preproc=yes
22095else
22096 echo "$as_me: failed program was:" >&5
22097sed 's/^/| /' conftest.$ac_ext >&5
22098
22099 ac_header_preproc=no
22100fi
22101rm -f conftest.err conftest.$ac_ext
22102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22103echo "${ECHO_T}$ac_header_preproc" >&6
22104
22105# So? What about this header?
ac1cb8d3
VS
22106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22107 yes:no: )
a848cd7e
SC
22108 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22109echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22110 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22111echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22112 ac_header_preproc=yes
a848cd7e 22113 ;;
ac1cb8d3 22114 no:yes:* )
a848cd7e
SC
22115 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22116echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22117 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22118echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22119 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22120echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22121 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22122echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22123 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22124echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22125 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22126echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22127 (
22128 cat <<\_ASBOX
ac1cb8d3
VS
22129## ----------------------------------------- ##
22130## Report this to wx-dev@lists.wxwidgets.org ##
22131## ----------------------------------------- ##
a848cd7e
SC
22132_ASBOX
22133 ) |
22134 sed "s/^/$as_me: WARNING: /" >&2
22135 ;;
22136esac
22137echo "$as_me:$LINENO: checking for mspack.h" >&5
22138echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22139if test "${ac_cv_header_mspack_h+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22141else
22142 ac_cv_header_mspack_h=$ac_header_preproc
22143fi
22144echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22145echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22146
22147fi
22148if test $ac_cv_header_mspack_h = yes; then
22149 found_mspack_h=1
22150fi
22151
22152
22153 if test "x$found_mspack_h" = "x1"; then
22154 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22155echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22156if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22157 echo $ECHO_N "(cached) $ECHO_C" >&6
22158else
22159 ac_check_lib_save_LIBS=$LIBS
22160LIBS="-lmspack $LIBS"
22161cat >conftest.$ac_ext <<_ACEOF
22162/* confdefs.h. */
22163_ACEOF
22164cat confdefs.h >>conftest.$ac_ext
22165cat >>conftest.$ac_ext <<_ACEOF
22166/* end confdefs.h. */
22167
22168/* Override any gcc2 internal prototype to avoid an error. */
22169#ifdef __cplusplus
22170extern "C"
22171#endif
22172/* We use char because int might match the return type of a gcc2
22173 builtin and then its argument prototype would still apply. */
22174char mspack_create_chm_decompressor ();
22175int
22176main ()
22177{
22178mspack_create_chm_decompressor ();
22179 ;
22180 return 0;
22181}
22182_ACEOF
22183rm -f conftest.$ac_objext conftest$ac_exeext
22184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22185 (eval $ac_link) 2>conftest.er1
a848cd7e 22186 ac_status=$?
ac1cb8d3
VS
22187 grep -v '^ *+' conftest.er1 >conftest.err
22188 rm -f conftest.er1
22189 cat conftest.err >&5
a848cd7e
SC
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } &&
b48a2016
DE
22192 { ac_try='test -z "$ac_c_werror_flag"
22193 || test ! -s conftest.err'
ac1cb8d3
VS
22194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22195 (eval $ac_try) 2>&5
22196 ac_status=$?
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); }; } &&
22199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22206else
22207 echo "$as_me: failed program was:" >&5
22208sed 's/^/| /' conftest.$ac_ext >&5
22209
22210ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22211fi
ac1cb8d3
VS
22212rm -f conftest.err conftest.$ac_objext \
22213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22214LIBS=$ac_check_lib_save_LIBS
22215fi
22216echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22217echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22218if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22219 MSPACK_LINK=" -lmspack"
22220fi
22221
22222 fi
22223 if test "x$MSPACK_LINK" = "x" ; then
22224 wxUSE_LIBMSPACK=no
22225 else
22226 cat >>confdefs.h <<\_ACEOF
22227#define wxUSE_LIBMSPACK 1
22228_ACEOF
22229
22230 fi
22231fi
22232
22233
22234
22235AFMINSTALL=
22236WIN32INSTALL=
22237
22238TOOLKIT=
22239TOOLKIT_INCLUDE=
22240WIDGET_SET=
22241
22242if test "$USE_WIN32" = 1 ; then
22243
22244for ac_header in w32api.h
22245do
22246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22247if eval "test \"\${$as_ac_Header+set}\" = set"; then
22248 echo "$as_me:$LINENO: checking for $ac_header" >&5
22249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22250if eval "test \"\${$as_ac_Header+set}\" = set"; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252fi
22253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22255else
22256 # Is the header compilable?
22257echo "$as_me:$LINENO: checking $ac_header usability" >&5
22258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22259cat >conftest.$ac_ext <<_ACEOF
22260/* confdefs.h. */
22261_ACEOF
22262cat confdefs.h >>conftest.$ac_ext
22263cat >>conftest.$ac_ext <<_ACEOF
22264/* end confdefs.h. */
22265$ac_includes_default
22266#include <$ac_header>
22267_ACEOF
22268rm -f conftest.$ac_objext
22269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22270 (eval $ac_compile) 2>conftest.er1
a848cd7e 22271 ac_status=$?
ac1cb8d3
VS
22272 grep -v '^ *+' conftest.er1 >conftest.err
22273 rm -f conftest.er1
22274 cat conftest.err >&5
a848cd7e
SC
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); } &&
b48a2016
DE
22277 { ac_try='test -z "$ac_c_werror_flag"
22278 || test ! -s conftest.err'
ac1cb8d3
VS
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22281 ac_status=$?
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; } &&
22284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; }; then
22290 ac_header_compiler=yes
22291else
22292 echo "$as_me: failed program was:" >&5
22293sed 's/^/| /' conftest.$ac_ext >&5
22294
22295ac_header_compiler=no
22296fi
ac1cb8d3 22297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22299echo "${ECHO_T}$ac_header_compiler" >&6
22300
22301# Is the header present?
22302echo "$as_me:$LINENO: checking $ac_header presence" >&5
22303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22304cat >conftest.$ac_ext <<_ACEOF
22305/* confdefs.h. */
22306_ACEOF
22307cat confdefs.h >>conftest.$ac_ext
22308cat >>conftest.$ac_ext <<_ACEOF
22309/* end confdefs.h. */
22310#include <$ac_header>
22311_ACEOF
22312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22314 ac_status=$?
22315 grep -v '^ *+' conftest.er1 >conftest.err
22316 rm -f conftest.er1
22317 cat conftest.err >&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } >/dev/null; then
22320 if test -s conftest.err; then
22321 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22323 else
22324 ac_cpp_err=
22325 fi
22326else
22327 ac_cpp_err=yes
22328fi
22329if test -z "$ac_cpp_err"; then
22330 ac_header_preproc=yes
22331else
22332 echo "$as_me: failed program was:" >&5
22333sed 's/^/| /' conftest.$ac_ext >&5
22334
22335 ac_header_preproc=no
22336fi
22337rm -f conftest.err conftest.$ac_ext
22338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22339echo "${ECHO_T}$ac_header_preproc" >&6
22340
22341# So? What about this header?
ac1cb8d3
VS
22342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22343 yes:no: )
a848cd7e
SC
22344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22348 ac_header_preproc=yes
a848cd7e 22349 ;;
ac1cb8d3 22350 no:yes:* )
a848cd7e
SC
22351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22358echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22363 (
22364 cat <<\_ASBOX
ac1cb8d3
VS
22365## ----------------------------------------- ##
22366## Report this to wx-dev@lists.wxwidgets.org ##
22367## ----------------------------------------- ##
a848cd7e
SC
22368_ASBOX
22369 ) |
22370 sed "s/^/$as_me: WARNING: /" >&2
22371 ;;
22372esac
22373echo "$as_me:$LINENO: checking for $ac_header" >&5
22374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22375if eval "test \"\${$as_ac_Header+set}\" = set"; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
22377else
ac1cb8d3 22378 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22379fi
22380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22382
22383fi
22384if test `eval echo '${'$as_ac_Header'}'` = yes; then
22385 cat >>confdefs.h <<_ACEOF
22386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22387_ACEOF
22388
22389fi
22390
22391done
22392
22393 if test "${ac_cv_header_windows_h+set}" = set; then
22394 echo "$as_me:$LINENO: checking for windows.h" >&5
22395echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22396if test "${ac_cv_header_windows_h+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22398fi
22399echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22400echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22401else
22402 # Is the header compilable?
22403echo "$as_me:$LINENO: checking windows.h usability" >&5
22404echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22405cat >conftest.$ac_ext <<_ACEOF
22406/* confdefs.h. */
22407_ACEOF
22408cat confdefs.h >>conftest.$ac_ext
22409cat >>conftest.$ac_ext <<_ACEOF
22410/* end confdefs.h. */
22411$ac_includes_default
22412#include <windows.h>
22413_ACEOF
22414rm -f conftest.$ac_objext
22415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22416 (eval $ac_compile) 2>conftest.er1
a848cd7e 22417 ac_status=$?
ac1cb8d3
VS
22418 grep -v '^ *+' conftest.er1 >conftest.err
22419 rm -f conftest.er1
22420 cat conftest.err >&5
a848cd7e
SC
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } &&
b48a2016
DE
22423 { ac_try='test -z "$ac_c_werror_flag"
22424 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
22430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22432 (eval $ac_try) 2>&5
22433 ac_status=$?
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }; }; then
22436 ac_header_compiler=yes
22437else
22438 echo "$as_me: failed program was:" >&5
22439sed 's/^/| /' conftest.$ac_ext >&5
22440
22441ac_header_compiler=no
22442fi
ac1cb8d3 22443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22445echo "${ECHO_T}$ac_header_compiler" >&6
22446
22447# Is the header present?
22448echo "$as_me:$LINENO: checking windows.h presence" >&5
22449echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22450cat >conftest.$ac_ext <<_ACEOF
22451/* confdefs.h. */
22452_ACEOF
22453cat confdefs.h >>conftest.$ac_ext
22454cat >>conftest.$ac_ext <<_ACEOF
22455/* end confdefs.h. */
22456#include <windows.h>
22457_ACEOF
22458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22460 ac_status=$?
22461 grep -v '^ *+' conftest.er1 >conftest.err
22462 rm -f conftest.er1
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } >/dev/null; then
22466 if test -s conftest.err; then
22467 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22469 else
22470 ac_cpp_err=
22471 fi
22472else
22473 ac_cpp_err=yes
22474fi
22475if test -z "$ac_cpp_err"; then
22476 ac_header_preproc=yes
22477else
22478 echo "$as_me: failed program was:" >&5
22479sed 's/^/| /' conftest.$ac_ext >&5
22480
22481 ac_header_preproc=no
22482fi
22483rm -f conftest.err conftest.$ac_ext
22484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22485echo "${ECHO_T}$ac_header_preproc" >&6
22486
22487# So? What about this header?
ac1cb8d3
VS
22488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22489 yes:no: )
a848cd7e
SC
22490 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22491echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22492 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22493echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22494 ac_header_preproc=yes
a848cd7e 22495 ;;
ac1cb8d3 22496 no:yes:* )
a848cd7e
SC
22497 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22498echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22499 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22500echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22501 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22502echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22503 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22504echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22505 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22506echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22507 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22508echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22509 (
22510 cat <<\_ASBOX
ac1cb8d3
VS
22511## ----------------------------------------- ##
22512## Report this to wx-dev@lists.wxwidgets.org ##
22513## ----------------------------------------- ##
a848cd7e
SC
22514_ASBOX
22515 ) |
22516 sed "s/^/$as_me: WARNING: /" >&2
22517 ;;
22518esac
22519echo "$as_me:$LINENO: checking for windows.h" >&5
22520echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22521if test "${ac_cv_header_windows_h+set}" = set; then
22522 echo $ECHO_N "(cached) $ECHO_C" >&6
22523else
22524 ac_cv_header_windows_h=$ac_header_preproc
22525fi
22526echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22527echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22528
22529fi
22530if test $ac_cv_header_windows_h = yes; then
22531 :
22532else
22533
22534 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22535echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22536 { (exit 1); exit 1; }; }
22537
22538fi
22539
22540
22541
22542 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22543
22544 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22545 LIBS="$LIBS -loleacc"
22546 fi
22547
22548 case "${host}" in
22549 *-*-cygwin* )
22550 LIBS="$LIBS -lkernel32 -luser32"
22551 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22552 esac
22553
22554 if test "$wxUSE_ODBC" = "sys" ; then
22555 wxUSE_ODBC = "yes"
22556 fi
22557 if test "$wxUSE_ODBC" = "yes" ; then
22558 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22559 cat >>confdefs.h <<\_ACEOF
22560#define wxUSE_ODBC 1
22561_ACEOF
22562
22563 fi
22564
22565 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22566 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22567
22568 WIN32INSTALL=win32install
22569fi
22570
22571if test "$wxUSE_GUI" = "yes"; then
22572 USE_GUI=1
22573
22574 GUI_TK_LIBRARY=
22575
22576 WXGTK12=
22577 WXGTK127=
22578 WXGTK20=
22579 WXGPE=
22580
207bc66c
RN
22581 if test "$wxUSE_COCOA" = 1 ; then
22582 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22583 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22584echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22585 wxUSE_PRINTING_ARCHITECTURE=no
22586 fi
22587 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22588 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22589echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22590 wxUSE_DRAG_AND_DROP=no
22591 fi
22592 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22593 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22594echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22595 wxUSE_DRAGIMAGE=no
22596 fi
22597 fi
22598
a848cd7e
SC
22599 if test "$wxUSE_MSW" = 1 ; then
22600 TOOLKIT=MSW
22601 GUIDIST=MSW_DIST
22602
ceec2216 22603 case "${host}" in
a848cd7e
SC
22604 *-*-mingw32* )
22605 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22606 esac
22607 fi
22608
22609 if test "$wxUSE_GTK" = 1; then
22610 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22611echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22612
22613 gtk_version_cached=1
22614 if test "${wx_cv_lib_gtk+set}" = set; then
22615 echo $ECHO_N "(cached) $ECHO_C" >&6
22616else
22617
22618 gtk_version_cached=0
22619 echo "$as_me:$LINENO: result: " >&5
22620echo "${ECHO_T}" >&6
22621
22622 GTK_MODULES=
22623 if test "$wxUSE_THREADS" = "yes"; then
22624 GTK_MODULES=gthread
22625 fi
22626
22627 wx_cv_lib_gtk=
22628 if test "x$wxUSE_GTK2" = "xyes"; then
22629 # Check whether --enable-gtktest or --disable-gtktest was given.
22630if test "${enable_gtktest+set}" = set; then
22631 enableval="$enable_gtktest"
22632
22633else
22634 enable_gtktest=yes
22635fi;
22636
22637 pkg_config_args=gtk+-2.0
22638 for module in . $GTK_MODULES
22639 do
22640 case "$module" in
22641 gthread)
22642 pkg_config_args="$pkg_config_args gthread-2.0"
22643 ;;
22644 esac
22645 done
22646
22647 no_gtk=""
22648
22649 # Extract the first word of "pkg-config", so it can be a program name with args.
22650set dummy pkg-config; ac_word=$2
22651echo "$as_me:$LINENO: checking for $ac_word" >&5
22652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22653if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22654 echo $ECHO_N "(cached) $ECHO_C" >&6
22655else
22656 case $PKG_CONFIG in
22657 [\\/]* | ?:[\\/]*)
22658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22659 ;;
22660 *)
22661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22662for as_dir in $PATH
22663do
22664 IFS=$as_save_IFS
22665 test -z "$as_dir" && as_dir=.
22666 for ac_exec_ext in '' $ac_executable_extensions; do
22667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22670 break 2
22671 fi
22672done
22673done
22674
22675 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22676 ;;
22677esac
22678fi
22679PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22680
22681if test -n "$PKG_CONFIG"; then
22682 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22683echo "${ECHO_T}$PKG_CONFIG" >&6
22684else
22685 echo "$as_me:$LINENO: result: no" >&5
22686echo "${ECHO_T}no" >&6
22687fi
22688
22689
22690 if test x$PKG_CONFIG != xno ; then
22691 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22692 :
22693 else
c2218763 22694 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22695 no_gtk=yes
22696 PKG_CONFIG=no
22697 fi
22698 else
22699 no_gtk=yes
22700 fi
22701
22702 min_gtk_version=2.0.0
22703 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22704echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22705
22706 if test x$PKG_CONFIG != xno ; then
22707 ## don't try to run the test against uninstalled libtool libs
22708 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22709 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22710 enable_gtktest=no
22711 fi
22712
22713 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22714 :
22715 else
22716 no_gtk=yes
22717 fi
22718 fi
22719
22720 if test x"$no_gtk" = x ; then
22721 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22722 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22723 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22724 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22725 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22726 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22727 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22729 if test "x$enable_gtktest" = "xyes" ; then
22730 ac_save_CFLAGS="$CFLAGS"
22731 ac_save_LIBS="$LIBS"
22732 CFLAGS="$CFLAGS $GTK_CFLAGS"
22733 LIBS="$GTK_LIBS $LIBS"
22734 rm -f conf.gtktest
22735 if test "$cross_compiling" = yes; then
22736 echo $ac_n "cross compiling; assumed OK... $ac_c"
22737else
22738 cat >conftest.$ac_ext <<_ACEOF
22739/* confdefs.h. */
22740_ACEOF
22741cat confdefs.h >>conftest.$ac_ext
22742cat >>conftest.$ac_ext <<_ACEOF
22743/* end confdefs.h. */
22744
22745#include <gtk/gtk.h>
22746#include <stdio.h>
22747#include <stdlib.h>
22748
22749int
22750main ()
22751{
22752 int major, minor, micro;
22753 char *tmp_version;
22754
22755 system ("touch conf.gtktest");
22756
22757 /* HP/UX 9 (%@#!) writes to sscanf strings */
22758 tmp_version = g_strdup("$min_gtk_version");
22759 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22760 printf("%s, bad version string\n", "$min_gtk_version");
22761 exit(1);
22762 }
22763
22764 if ((gtk_major_version != $gtk_config_major_version) ||
22765 (gtk_minor_version != $gtk_config_minor_version) ||
22766 (gtk_micro_version != $gtk_config_micro_version))
22767 {
22768 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22769 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22770 gtk_major_version, gtk_minor_version, gtk_micro_version);
22771 printf ("*** was found! If pkg-config was correct, then it is best\n");
22772 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22773 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22774 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22775 printf("*** required on your system.\n");
22776 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22777 printf("*** to point to the correct configuration files\n");
22778 }
22779 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22780 (gtk_minor_version != GTK_MINOR_VERSION) ||
22781 (gtk_micro_version != GTK_MICRO_VERSION))
22782 {
22783 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22784 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22785 printf("*** library (version %d.%d.%d)\n",
22786 gtk_major_version, gtk_minor_version, gtk_micro_version);
22787 }
22788 else
22789 {
22790 if ((gtk_major_version > major) ||
22791 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22792 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22793 {
22794 return 0;
22795 }
22796 else
22797 {
22798 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22799 gtk_major_version, gtk_minor_version, gtk_micro_version);
22800 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22801 major, minor, micro);
22802 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22803 printf("***\n");
22804 printf("*** If you have already installed a sufficiently new version, this error\n");
22805 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22806 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22807 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22808 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22809 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22810 printf("*** so that the correct libraries are found at run-time))\n");
22811 }
22812 }
22813 return 1;
22814}
22815
22816_ACEOF
22817rm -f conftest$ac_exeext
22818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22819 (eval $ac_link) 2>&5
22820 ac_status=$?
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22825 ac_status=$?
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; }; then
22828 :
22829else
22830 echo "$as_me: program exited with status $ac_status" >&5
22831echo "$as_me: failed program was:" >&5
22832sed 's/^/| /' conftest.$ac_ext >&5
22833
22834( exit $ac_status )
22835no_gtk=yes
22836fi
ac1cb8d3 22837rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22838fi
22839 CFLAGS="$ac_save_CFLAGS"
22840 LIBS="$ac_save_LIBS"
22841 fi
22842 fi
22843 if test "x$no_gtk" = x ; then
22844 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22845echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22846 wx_cv_lib_gtk=2.0
22847 else
22848 echo "$as_me:$LINENO: result: no" >&5
22849echo "${ECHO_T}no" >&6
22850 if test "$PKG_CONFIG" = "no" ; then
22851 echo "*** A new enough version of pkg-config was not found."
22852 echo "*** See http://pkgconfig.sourceforge.net"
22853 else
22854 if test -f conf.gtktest ; then
22855 :
22856 else
22857 echo "*** Could not run GTK+ test program, checking why..."
22858 ac_save_CFLAGS="$CFLAGS"
22859 ac_save_LIBS="$LIBS"
22860 CFLAGS="$CFLAGS $GTK_CFLAGS"
22861 LIBS="$LIBS $GTK_LIBS"
22862 cat >conftest.$ac_ext <<_ACEOF
22863/* confdefs.h. */
22864_ACEOF
22865cat confdefs.h >>conftest.$ac_ext
22866cat >>conftest.$ac_ext <<_ACEOF
22867/* end confdefs.h. */
22868
22869#include <gtk/gtk.h>
22870#include <stdio.h>
22871
22872int
22873main ()
22874{
22875 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22876 ;
22877 return 0;
22878}
22879_ACEOF
22880rm -f conftest.$ac_objext conftest$ac_exeext
22881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22882 (eval $ac_link) 2>conftest.er1
a848cd7e 22883 ac_status=$?
ac1cb8d3
VS
22884 grep -v '^ *+' conftest.er1 >conftest.err
22885 rm -f conftest.er1
22886 cat conftest.err >&5
a848cd7e
SC
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); } &&
b48a2016
DE
22889 { ac_try='test -z "$ac_c_werror_flag"
22890 || test ! -s conftest.err'
ac1cb8d3
VS
22891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892 (eval $ac_try) 2>&5
22893 ac_status=$?
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); }; } &&
22896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22898 (eval $ac_try) 2>&5
22899 ac_status=$?
22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); }; }; then
22902 echo "*** The test program compiled, but did not run. This usually means"
22903 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22904 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22905 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22906 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22907 echo "*** is required on your system"
22908 echo "***"
22909 echo "*** If you have an old version installed, it is best to remove it, although"
22910 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22911else
22912 echo "$as_me: failed program was:" >&5
22913sed 's/^/| /' conftest.$ac_ext >&5
22914
22915 echo "*** The test program failed to compile or link. See the file config.log for the"
22916 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22917fi
ac1cb8d3
VS
22918rm -f conftest.err conftest.$ac_objext \
22919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22920 CFLAGS="$ac_save_CFLAGS"
22921 LIBS="$ac_save_LIBS"
22922 fi
22923 fi
22924 GTK_CFLAGS=""
22925 GTK_LIBS=""
22926 :
22927 fi
22928
22929
22930 rm -f conf.gtktest
22931
22932 else
22933
22934# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22935if test "${with_gtk_prefix+set}" = set; then
22936 withval="$with_gtk_prefix"
22937 gtk_config_prefix="$withval"
22938else
22939 gtk_config_prefix=""
22940fi;
22941
22942# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22943if test "${with_gtk_exec_prefix+set}" = set; then
22944 withval="$with_gtk_exec_prefix"
22945 gtk_config_exec_prefix="$withval"
22946else
22947 gtk_config_exec_prefix=""
22948fi;
22949# Check whether --enable-gtktest or --disable-gtktest was given.
22950if test "${enable_gtktest+set}" = set; then
22951 enableval="$enable_gtktest"
22952
22953else
22954 enable_gtktest=yes
22955fi;
22956
22957 for module in . $GTK_MODULES
22958 do
22959 case "$module" in
22960 gthread)
22961 gtk_config_args="$gtk_config_args gthread"
22962 ;;
22963 esac
22964 done
22965
22966 if test x$gtk_config_exec_prefix != x ; then
22967 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22968 if test x${GTK_CONFIG+set} != xset ; then
22969 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22970 fi
22971 fi
22972 if test x$gtk_config_prefix != x ; then
22973 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22974 if test x${GTK_CONFIG+set} != xset ; then
22975 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22976 fi
22977 fi
22978
22979 # Extract the first word of "gtk-config", so it can be a program name with args.
22980set dummy gtk-config; ac_word=$2
22981echo "$as_me:$LINENO: checking for $ac_word" >&5
22982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22983if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22984 echo $ECHO_N "(cached) $ECHO_C" >&6
22985else
22986 case $GTK_CONFIG in
22987 [\\/]* | ?:[\\/]*)
22988 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22989 ;;
22990 *)
22991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22992for as_dir in $PATH
22993do
22994 IFS=$as_save_IFS
22995 test -z "$as_dir" && as_dir=.
22996 for ac_exec_ext in '' $ac_executable_extensions; do
22997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22998 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23000 break 2
23001 fi
23002done
23003done
23004
23005 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23006 ;;
23007esac
23008fi
23009GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23010
23011if test -n "$GTK_CONFIG"; then
23012 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23013echo "${ECHO_T}$GTK_CONFIG" >&6
23014else
23015 echo "$as_me:$LINENO: result: no" >&5
23016echo "${ECHO_T}no" >&6
23017fi
23018
23019 min_gtk_version=1.2.7
23020 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23021echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23022 no_gtk=""
23023 if test "$GTK_CONFIG" = "no" ; then
23024 no_gtk=yes
23025 else
23026 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23027 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23028 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23029 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23030 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23031 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23032 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23034 if test "x$enable_gtktest" = "xyes" ; then
23035 ac_save_CFLAGS="$CFLAGS"
23036 ac_save_LIBS="$LIBS"
23037 CFLAGS="$CFLAGS $GTK_CFLAGS"
23038 LIBS="$GTK_LIBS $LIBS"
23039 rm -f conf.gtktest
23040 if test "$cross_compiling" = yes; then
23041 echo $ac_n "cross compiling; assumed OK... $ac_c"
23042else
23043 cat >conftest.$ac_ext <<_ACEOF
23044/* confdefs.h. */
23045_ACEOF
23046cat confdefs.h >>conftest.$ac_ext
23047cat >>conftest.$ac_ext <<_ACEOF
23048/* end confdefs.h. */
23049
23050#include <gtk/gtk.h>
23051#include <stdio.h>
23052#include <stdlib.h>
23053
23054int
23055main ()
23056{
23057 int major, minor, micro;
23058 char *tmp_version;
23059
23060 system ("touch conf.gtktest");
23061
23062 /* HP/UX 9 (%@#!) writes to sscanf strings */
23063 tmp_version = g_strdup("$min_gtk_version");
23064 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23065 printf("%s, bad version string\n", "$min_gtk_version");
23066 exit(1);
23067 }
23068
23069 if ((gtk_major_version != $gtk_config_major_version) ||
23070 (gtk_minor_version != $gtk_config_minor_version) ||
23071 (gtk_micro_version != $gtk_config_micro_version))
23072 {
23073 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23074 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23075 gtk_major_version, gtk_minor_version, gtk_micro_version);
23076 printf ("*** was found! If gtk-config was correct, then it is best\n");
23077 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23078 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23079 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23080 printf("*** required on your system.\n");
23081 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23082 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23083 printf("*** before re-running configure\n");
23084 }
23085#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23086 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23087 (gtk_minor_version != GTK_MINOR_VERSION) ||
23088 (gtk_micro_version != GTK_MICRO_VERSION))
23089 {
23090 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23091 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23092 printf("*** library (version %d.%d.%d)\n",
23093 gtk_major_version, gtk_minor_version, gtk_micro_version);
23094 }
23095#endif /* defined (GTK_MAJOR_VERSION) ... */
23096 else
23097 {
23098 if ((gtk_major_version > major) ||
23099 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23100 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23101 {
23102 return 0;
23103 }
23104 else
23105 {
23106 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23107 gtk_major_version, gtk_minor_version, gtk_micro_version);
23108 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23109 major, minor, micro);
23110 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23111 printf("***\n");
23112 printf("*** If you have already installed a sufficiently new version, this error\n");
23113 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23114 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23115 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23116 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23117 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23118 printf("*** so that the correct libraries are found at run-time))\n");
23119 }
23120 }
23121 return 1;
23122}
23123
23124_ACEOF
23125rm -f conftest$ac_exeext
23126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23127 (eval $ac_link) 2>&5
23128 ac_status=$?
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; }; then
23136 :
23137else
23138 echo "$as_me: program exited with status $ac_status" >&5
23139echo "$as_me: failed program was:" >&5
23140sed 's/^/| /' conftest.$ac_ext >&5
23141
23142( exit $ac_status )
23143no_gtk=yes
23144fi
ac1cb8d3 23145rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23146fi
23147 CFLAGS="$ac_save_CFLAGS"
23148 LIBS="$ac_save_LIBS"
23149 fi
23150 fi
23151 if test "x$no_gtk" = x ; then
23152 echo "$as_me:$LINENO: result: yes" >&5
23153echo "${ECHO_T}yes" >&6
23154 wx_cv_lib_gtk=1.2.7
23155 else
23156 echo "$as_me:$LINENO: result: no" >&5
23157echo "${ECHO_T}no" >&6
23158 if test "$GTK_CONFIG" = "no" ; then
23159 echo "*** The gtk-config script installed by GTK could not be found"
23160 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23161 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23162 echo "*** full path to gtk-config."
23163 else
23164 if test -f conf.gtktest ; then
23165 :
23166 else
23167 echo "*** Could not run GTK test program, checking why..."
23168 CFLAGS="$CFLAGS $GTK_CFLAGS"
23169 LIBS="$LIBS $GTK_LIBS"
23170 cat >conftest.$ac_ext <<_ACEOF
23171/* confdefs.h. */
23172_ACEOF
23173cat confdefs.h >>conftest.$ac_ext
23174cat >>conftest.$ac_ext <<_ACEOF
23175/* end confdefs.h. */
23176
23177#include <gtk/gtk.h>
23178#include <stdio.h>
23179
23180int
23181main ()
23182{
23183 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23184 ;
23185 return 0;
23186}
23187_ACEOF
23188rm -f conftest.$ac_objext conftest$ac_exeext
23189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23190 (eval $ac_link) 2>conftest.er1
a848cd7e 23191 ac_status=$?
ac1cb8d3
VS
23192 grep -v '^ *+' conftest.er1 >conftest.err
23193 rm -f conftest.er1
23194 cat conftest.err >&5
a848cd7e
SC
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); } &&
b48a2016
DE
23197 { ac_try='test -z "$ac_c_werror_flag"
23198 || test ! -s conftest.err'
ac1cb8d3
VS
23199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23200 (eval $ac_try) 2>&5
23201 ac_status=$?
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); }; } &&
23204 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206 (eval $ac_try) 2>&5
23207 ac_status=$?
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); }; }; then
23210 echo "*** The test program compiled, but did not run. This usually means"
23211 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23212 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23213 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23214 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23215 echo "*** is required on your system"
23216 echo "***"
23217 echo "*** If you have an old version installed, it is best to remove it, although"
23218 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23219 echo "***"
23220 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23221 echo "*** came with the system with the command"
23222 echo "***"
23223 echo "*** rpm --erase --nodeps gtk gtk-devel"
23224else
23225 echo "$as_me: failed program was:" >&5
23226sed 's/^/| /' conftest.$ac_ext >&5
23227
23228 echo "*** The test program failed to compile or link. See the file config.log for the"
23229 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23230 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23231 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23232fi
ac1cb8d3
VS
23233rm -f conftest.err conftest.$ac_objext \
23234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23235 CFLAGS="$ac_save_CFLAGS"
23236 LIBS="$ac_save_LIBS"
23237 fi
23238 fi
23239 GTK_CFLAGS=""
23240 GTK_LIBS=""
23241 :
23242 fi
23243
23244
23245 rm -f conf.gtktest
23246
23247
23248 if test -z "$wx_cv_lib_gtk"; then
23249
23250# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23251if test "${with_gtk_prefix+set}" = set; then
23252 withval="$with_gtk_prefix"
23253 gtk_config_prefix="$withval"
23254else
23255 gtk_config_prefix=""
23256fi;
23257
23258# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23259if test "${with_gtk_exec_prefix+set}" = set; then
23260 withval="$with_gtk_exec_prefix"
23261 gtk_config_exec_prefix="$withval"
23262else
23263 gtk_config_exec_prefix=""
23264fi;
23265# Check whether --enable-gtktest or --disable-gtktest was given.
23266if test "${enable_gtktest+set}" = set; then
23267 enableval="$enable_gtktest"
23268
23269else
23270 enable_gtktest=yes
23271fi;
23272
23273 for module in . $GTK_MODULES
23274 do
23275 case "$module" in
23276 gthread)
23277 gtk_config_args="$gtk_config_args gthread"
23278 ;;
23279 esac
23280 done
23281
23282 if test x$gtk_config_exec_prefix != x ; then
23283 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23284 if test x${GTK_CONFIG+set} != xset ; then
23285 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23286 fi
23287 fi
23288 if test x$gtk_config_prefix != x ; then
23289 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23290 if test x${GTK_CONFIG+set} != xset ; then
23291 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23292 fi
23293 fi
23294
23295 # Extract the first word of "gtk-config", so it can be a program name with args.
23296set dummy gtk-config; ac_word=$2
23297echo "$as_me:$LINENO: checking for $ac_word" >&5
23298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23299if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23301else
23302 case $GTK_CONFIG in
23303 [\\/]* | ?:[\\/]*)
23304 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23305 ;;
23306 *)
23307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23308for as_dir in $PATH
23309do
23310 IFS=$as_save_IFS
23311 test -z "$as_dir" && as_dir=.
23312 for ac_exec_ext in '' $ac_executable_extensions; do
23313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23314 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23316 break 2
23317 fi
23318done
23319done
23320
23321 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23322 ;;
23323esac
23324fi
23325GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23326
23327if test -n "$GTK_CONFIG"; then
23328 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23329echo "${ECHO_T}$GTK_CONFIG" >&6
23330else
23331 echo "$as_me:$LINENO: result: no" >&5
23332echo "${ECHO_T}no" >&6
23333fi
23334
23335 min_gtk_version=1.2.3
23336 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23337echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23338 no_gtk=""
23339 if test "$GTK_CONFIG" = "no" ; then
23340 no_gtk=yes
23341 else
23342 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23343 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23344 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23345 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23346 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23347 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23348 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23349 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23350 if test "x$enable_gtktest" = "xyes" ; then
23351 ac_save_CFLAGS="$CFLAGS"
23352 ac_save_LIBS="$LIBS"
23353 CFLAGS="$CFLAGS $GTK_CFLAGS"
23354 LIBS="$GTK_LIBS $LIBS"
23355 rm -f conf.gtktest
23356 if test "$cross_compiling" = yes; then
23357 echo $ac_n "cross compiling; assumed OK... $ac_c"
23358else
23359 cat >conftest.$ac_ext <<_ACEOF
23360/* confdefs.h. */
23361_ACEOF
23362cat confdefs.h >>conftest.$ac_ext
23363cat >>conftest.$ac_ext <<_ACEOF
23364/* end confdefs.h. */
23365
23366#include <gtk/gtk.h>
23367#include <stdio.h>
23368#include <stdlib.h>
23369
23370int
23371main ()
23372{
23373 int major, minor, micro;
23374 char *tmp_version;
23375
23376 system ("touch conf.gtktest");
23377
23378 /* HP/UX 9 (%@#!) writes to sscanf strings */
23379 tmp_version = g_strdup("$min_gtk_version");
23380 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23381 printf("%s, bad version string\n", "$min_gtk_version");
23382 exit(1);
23383 }
23384
23385 if ((gtk_major_version != $gtk_config_major_version) ||
23386 (gtk_minor_version != $gtk_config_minor_version) ||
23387 (gtk_micro_version != $gtk_config_micro_version))
23388 {
23389 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23390 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23391 gtk_major_version, gtk_minor_version, gtk_micro_version);
23392 printf ("*** was found! If gtk-config was correct, then it is best\n");
23393 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23394 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23395 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23396 printf("*** required on your system.\n");
23397 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23398 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23399 printf("*** before re-running configure\n");
23400 }
23401#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23402 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23403 (gtk_minor_version != GTK_MINOR_VERSION) ||
23404 (gtk_micro_version != GTK_MICRO_VERSION))
23405 {
23406 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23407 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23408 printf("*** library (version %d.%d.%d)\n",
23409 gtk_major_version, gtk_minor_version, gtk_micro_version);
23410 }
23411#endif /* defined (GTK_MAJOR_VERSION) ... */
23412 else
23413 {
23414 if ((gtk_major_version > major) ||
23415 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23416 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23417 {
23418 return 0;
23419 }
23420 else
23421 {
23422 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23423 gtk_major_version, gtk_minor_version, gtk_micro_version);
23424 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23425 major, minor, micro);
23426 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23427 printf("***\n");
23428 printf("*** If you have already installed a sufficiently new version, this error\n");
23429 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23430 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23431 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23432 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23433 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23434 printf("*** so that the correct libraries are found at run-time))\n");
23435 }
23436 }
23437 return 1;
23438}
23439
23440_ACEOF
23441rm -f conftest$ac_exeext
23442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23443 (eval $ac_link) 2>&5
23444 ac_status=$?
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23448 (eval $ac_try) 2>&5
23449 ac_status=$?
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); }; }; then
23452 :
23453else
23454 echo "$as_me: program exited with status $ac_status" >&5
23455echo "$as_me: failed program was:" >&5
23456sed 's/^/| /' conftest.$ac_ext >&5
23457
23458( exit $ac_status )
23459no_gtk=yes
23460fi
ac1cb8d3 23461rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23462fi
23463 CFLAGS="$ac_save_CFLAGS"
23464 LIBS="$ac_save_LIBS"
23465 fi
23466 fi
23467 if test "x$no_gtk" = x ; then
23468 echo "$as_me:$LINENO: result: yes" >&5
23469echo "${ECHO_T}yes" >&6
23470 wx_cv_lib_gtk=1.2.3
23471 else
23472 echo "$as_me:$LINENO: result: no" >&5
23473echo "${ECHO_T}no" >&6
23474 if test "$GTK_CONFIG" = "no" ; then
23475 echo "*** The gtk-config script installed by GTK could not be found"
23476 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23477 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23478 echo "*** full path to gtk-config."
23479 else
23480 if test -f conf.gtktest ; then
23481 :
23482 else
23483 echo "*** Could not run GTK test program, checking why..."
23484 CFLAGS="$CFLAGS $GTK_CFLAGS"
23485 LIBS="$LIBS $GTK_LIBS"
23486 cat >conftest.$ac_ext <<_ACEOF
23487/* confdefs.h. */
23488_ACEOF
23489cat confdefs.h >>conftest.$ac_ext
23490cat >>conftest.$ac_ext <<_ACEOF
23491/* end confdefs.h. */
23492
23493#include <gtk/gtk.h>
23494#include <stdio.h>
23495
23496int
23497main ()
23498{
23499 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23500 ;
23501 return 0;
23502}
23503_ACEOF
23504rm -f conftest.$ac_objext conftest$ac_exeext
23505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23506 (eval $ac_link) 2>conftest.er1
a848cd7e 23507 ac_status=$?
ac1cb8d3
VS
23508 grep -v '^ *+' conftest.er1 >conftest.err
23509 rm -f conftest.er1
23510 cat conftest.err >&5
a848cd7e
SC
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } &&
b48a2016
DE
23513 { ac_try='test -z "$ac_c_werror_flag"
23514 || test ! -s conftest.err'
ac1cb8d3
VS
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23517 ac_status=$?
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; } &&
23520 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23523 ac_status=$?
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; }; then
23526 echo "*** The test program compiled, but did not run. This usually means"
23527 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23528 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23529 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23530 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23531 echo "*** is required on your system"
23532 echo "***"
23533 echo "*** If you have an old version installed, it is best to remove it, although"
23534 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23535 echo "***"
23536 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23537 echo "*** came with the system with the command"
23538 echo "***"
23539 echo "*** rpm --erase --nodeps gtk gtk-devel"
23540else
23541 echo "$as_me: failed program was:" >&5
23542sed 's/^/| /' conftest.$ac_ext >&5
23543
23544 echo "*** The test program failed to compile or link. See the file config.log for the"
23545 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23546 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23547 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23548fi
ac1cb8d3
VS
23549rm -f conftest.err conftest.$ac_objext \
23550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23551 CFLAGS="$ac_save_CFLAGS"
23552 LIBS="$ac_save_LIBS"
23553 fi
23554 fi
23555 GTK_CFLAGS=""
23556 GTK_LIBS=""
23557 :
23558 fi
23559
23560
23561 rm -f conf.gtktest
23562
23563 fi
23564 fi
23565
23566 if test -z "$wx_cv_lib_gtk"; then
23567 wx_cv_lib_gtk=none
23568 else
23569 wx_cv_cflags_gtk=$GTK_CFLAGS
23570 wx_cv_libs_gtk=$GTK_LIBS
23571 fi
23572
23573
23574fi
23575
23576
23577 if test "$gtk_version_cached" = 1; then
23578 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23579echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23580 fi
23581
23582 case "$wx_cv_lib_gtk" in
23583 2.0) WXGTK20=1
23584 TOOLKIT_VERSION=2
23585 ;;
23586 1.2.7) WXGTK127=1
23587 WXGTK12=1
23588 ;;
23589 1.2.3) WXGTK12=1
23590 ;;
23591 *) { { echo "$as_me:$LINENO: error:
23592Please check that gtk-config is in path, the directory
23593where GTK+ libraries are installed (returned by
23594'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23595equivalent variable and GTK+ is version 1.2.3 or above.
23596 " >&5
23597echo "$as_me: error:
23598Please check that gtk-config is in path, the directory
23599where GTK+ libraries are installed (returned by
23600'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23601equivalent variable and GTK+ is version 1.2.3 or above.
23602 " >&2;}
23603 { (exit 1); exit 1; }; }
23604 ;;
23605 esac
23606
23607 if test "$WXGTK20" = 1; then
23608 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23609
23610 succeeded=no
23611
23612 if test -z "$PKG_CONFIG"; then
23613 # Extract the first word of "pkg-config", so it can be a program name with args.
23614set dummy pkg-config; ac_word=$2
23615echo "$as_me:$LINENO: checking for $ac_word" >&5
23616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23617if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23618 echo $ECHO_N "(cached) $ECHO_C" >&6
23619else
23620 case $PKG_CONFIG in
23621 [\\/]* | ?:[\\/]*)
23622 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23623 ;;
23624 *)
23625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23626for as_dir in $PATH
23627do
23628 IFS=$as_save_IFS
23629 test -z "$as_dir" && as_dir=.
23630 for ac_exec_ext in '' $ac_executable_extensions; do
23631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23632 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23634 break 2
23635 fi
23636done
23637done
23638
23639 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23640 ;;
23641esac
23642fi
23643PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23644
23645if test -n "$PKG_CONFIG"; then
23646 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23647echo "${ECHO_T}$PKG_CONFIG" >&6
23648else
23649 echo "$as_me:$LINENO: result: no" >&5
23650echo "${ECHO_T}no" >&6
23651fi
23652
23653 fi
23654
23655 if test "$PKG_CONFIG" = "no" ; then
23656 echo "*** The pkg-config script could not be found. Make sure it is"
23657 echo "*** in your path, or set the PKG_CONFIG environment variable"
23658 echo "*** to the full path to pkg-config."
23659 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23660 else
23661 PKG_CONFIG_MIN_VERSION=0.9.0
23662 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23663 echo "$as_me:$LINENO: checking for pangoft2" >&5
23664echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23665
23666 if $PKG_CONFIG --exists "pangoft2" ; then
23667 echo "$as_me:$LINENO: result: yes" >&5
23668echo "${ECHO_T}yes" >&6
23669 succeeded=yes
23670
23671 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23672echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23673 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23674 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23675echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23676
23677 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23678echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23679 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23680 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23681echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23682 else
23683 PANGOFT2_CFLAGS=""
23684 PANGOFT2_LIBS=""
23685 ## If we have a custom action on failure, don't print errors, but
23686 ## do set a variable so people can do so.
23687 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23688
23689 fi
23690
23691
23692
23693 else
23694 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23695 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23696 fi
23697 fi
23698
23699 if test $succeeded = yes; then
23700
23701 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
ceec2216
RL
23702 # FIXME: GTK_LIBS already has a lot of what this is
23703 # about to add, but we go ahead and just add
23704 # it all again anyway.
23705 # This is not a good way to manage things. And simply
23706 # uniq'ing the list later is hardly better.
a848cd7e
SC
23707 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23708
23709 else
23710
23711 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23712echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23713 wxUSE_PRINTING_ARCHITECTURE="no"
23714
23715
23716 fi
23717
23718 fi
304205f1
VS
23719
23720 save_CFLAGS="$CFLAGS"
23721 save_LIBS="$LIBS"
23722 CFLAGS="$CFLAGS $GTK_CFLAGS"
23723 LIBS="$LIBS $GTK_LIBS"
23724
23725for ac_func in pango_font_family_is_monospace
23726do
23727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23728echo "$as_me:$LINENO: checking for $ac_func" >&5
23729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23730if eval "test \"\${$as_ac_var+set}\" = set"; then
23731 echo $ECHO_N "(cached) $ECHO_C" >&6
23732else
23733 cat >conftest.$ac_ext <<_ACEOF
23734/* confdefs.h. */
23735_ACEOF
23736cat confdefs.h >>conftest.$ac_ext
23737cat >>conftest.$ac_ext <<_ACEOF
23738/* end confdefs.h. */
23739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23741#define $ac_func innocuous_$ac_func
23742
23743/* System header to define __stub macros and hopefully few prototypes,
23744 which can conflict with char $ac_func (); below.
23745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23746 <limits.h> exists even on freestanding compilers. */
23747
23748#ifdef __STDC__
23749# include <limits.h>
23750#else
23751# include <assert.h>
23752#endif
23753
23754#undef $ac_func
23755
23756/* Override any gcc2 internal prototype to avoid an error. */
23757#ifdef __cplusplus
23758extern "C"
23759{
23760#endif
23761/* We use char because int might match the return type of a gcc2
23762 builtin and then its argument prototype would still apply. */
23763char $ac_func ();
23764/* The GNU C library defines this for functions which it implements
23765 to always fail with ENOSYS. Some functions are actually named
23766 something starting with __ and the normal name is an alias. */
23767#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23768choke me
23769#else
23770char (*f) () = $ac_func;
23771#endif
23772#ifdef __cplusplus
23773}
23774#endif
23775
23776int
23777main ()
23778{
23779return f != $ac_func;
23780 ;
23781 return 0;
23782}
23783_ACEOF
23784rm -f conftest.$ac_objext conftest$ac_exeext
23785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23786 (eval $ac_link) 2>conftest.er1
23787 ac_status=$?
23788 grep -v '^ *+' conftest.er1 >conftest.err
23789 rm -f conftest.er1
23790 cat conftest.err >&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } &&
b48a2016
DE
23793 { ac_try='test -z "$ac_c_werror_flag"
23794 || test ! -s conftest.err'
304205f1
VS
23795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796 (eval $ac_try) 2>&5
23797 ac_status=$?
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); }; } &&
23800 { ac_try='test -s conftest$ac_exeext'
23801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802 (eval $ac_try) 2>&5
23803 ac_status=$?
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); }; }; then
23806 eval "$as_ac_var=yes"
23807else
23808 echo "$as_me: failed program was:" >&5
23809sed 's/^/| /' conftest.$ac_ext >&5
23810
23811eval "$as_ac_var=no"
23812fi
23813rm -f conftest.err conftest.$ac_objext \
23814 conftest$ac_exeext conftest.$ac_ext
23815fi
23816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23817echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23818if test `eval echo '${'$as_ac_var'}'` = yes; then
23819 cat >>confdefs.h <<_ACEOF
23820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23821_ACEOF
23822
23823fi
23824done
23825
23826 CFLAGS="$save_CFLAGS"
23827 LIBS="$save_LIBS"
a848cd7e
SC
23828 else
23829 if test "$wxUSE_UNICODE" = "yes"; then
23830 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23831echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23832 wxUSE_UNICODE=no
23833 fi
23834 fi
23835
23836 if test "$USE_DARWIN" != 1; then
23837
23838for ac_func in poll
23839do
23840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23841echo "$as_me:$LINENO: checking for $ac_func" >&5
23842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23843if eval "test \"\${$as_ac_var+set}\" = set"; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
23845else
23846 cat >conftest.$ac_ext <<_ACEOF
23847/* confdefs.h. */
23848_ACEOF
23849cat confdefs.h >>conftest.$ac_ext
23850cat >>conftest.$ac_ext <<_ACEOF
23851/* end confdefs.h. */
ac1cb8d3
VS
23852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23854#define $ac_func innocuous_$ac_func
23855
a848cd7e
SC
23856/* System header to define __stub macros and hopefully few prototypes,
23857 which can conflict with char $ac_func (); below.
23858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23859 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23860
a848cd7e
SC
23861#ifdef __STDC__
23862# include <limits.h>
23863#else
23864# include <assert.h>
23865#endif
ac1cb8d3
VS
23866
23867#undef $ac_func
23868
a848cd7e
SC
23869/* Override any gcc2 internal prototype to avoid an error. */
23870#ifdef __cplusplus
23871extern "C"
23872{
23873#endif
23874/* We use char because int might match the return type of a gcc2
23875 builtin and then its argument prototype would still apply. */
23876char $ac_func ();
23877/* The GNU C library defines this for functions which it implements
23878 to always fail with ENOSYS. Some functions are actually named
23879 something starting with __ and the normal name is an alias. */
23880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23881choke me
23882#else
23883char (*f) () = $ac_func;
23884#endif
23885#ifdef __cplusplus
23886}
23887#endif
23888
23889int
23890main ()
23891{
23892return f != $ac_func;
23893 ;
23894 return 0;
23895}
23896_ACEOF
23897rm -f conftest.$ac_objext conftest$ac_exeext
23898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23899 (eval $ac_link) 2>conftest.er1
a848cd7e 23900 ac_status=$?
ac1cb8d3
VS
23901 grep -v '^ *+' conftest.er1 >conftest.err
23902 rm -f conftest.er1
23903 cat conftest.err >&5
a848cd7e
SC
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } &&
b48a2016
DE
23906 { ac_try='test -z "$ac_c_werror_flag"
23907 || test ! -s conftest.err'
ac1cb8d3
VS
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; } &&
23913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
23919 eval "$as_ac_var=yes"
23920else
23921 echo "$as_me: failed program was:" >&5
23922sed 's/^/| /' conftest.$ac_ext >&5
23923
23924eval "$as_ac_var=no"
23925fi
ac1cb8d3
VS
23926rm -f conftest.err conftest.$ac_objext \
23927 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23928fi
23929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23930echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23931if test `eval echo '${'$as_ac_var'}'` = yes; then
23932 cat >>confdefs.h <<_ACEOF
23933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23934_ACEOF
23935
23936fi
23937done
23938
23939 fi
23940
23941 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23942 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23943
23944 AFMINSTALL=afminstall
23945 TOOLKIT=GTK
23946 GUIDIST=GTK_DIST
23947
23948 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23949echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23950if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23951 echo $ECHO_N "(cached) $ECHO_C" >&6
23952else
23953 ac_check_lib_save_LIBS=$LIBS
23954LIBS="-lgdk $LIBS"
23955cat >conftest.$ac_ext <<_ACEOF
23956/* confdefs.h. */
23957_ACEOF
23958cat confdefs.h >>conftest.$ac_ext
23959cat >>conftest.$ac_ext <<_ACEOF
23960/* end confdefs.h. */
23961
23962/* Override any gcc2 internal prototype to avoid an error. */
23963#ifdef __cplusplus
23964extern "C"
23965#endif
23966/* We use char because int might match the return type of a gcc2
23967 builtin and then its argument prototype would still apply. */
23968char gdk_im_open ();
23969int
23970main ()
23971{
23972gdk_im_open ();
23973 ;
23974 return 0;
23975}
23976_ACEOF
23977rm -f conftest.$ac_objext conftest$ac_exeext
23978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23979 (eval $ac_link) 2>conftest.er1
a848cd7e 23980 ac_status=$?
ac1cb8d3
VS
23981 grep -v '^ *+' conftest.er1 >conftest.err
23982 rm -f conftest.er1
23983 cat conftest.err >&5
a848cd7e
SC
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); } &&
b48a2016
DE
23986 { ac_try='test -z "$ac_c_werror_flag"
23987 || test ! -s conftest.err'
ac1cb8d3
VS
23988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989 (eval $ac_try) 2>&5
23990 ac_status=$?
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); }; } &&
23993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23995 (eval $ac_try) 2>&5
23996 ac_status=$?
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); }; }; then
23999 ac_cv_lib_gdk_gdk_im_open=yes
24000else
24001 echo "$as_me: failed program was:" >&5
24002sed 's/^/| /' conftest.$ac_ext >&5
24003
24004ac_cv_lib_gdk_gdk_im_open=no
24005fi
ac1cb8d3
VS
24006rm -f conftest.err conftest.$ac_objext \
24007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24008LIBS=$ac_check_lib_save_LIBS
24009fi
24010echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24011echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24012if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24013 cat >>confdefs.h <<\_ACEOF
24014#define HAVE_XIM 1
24015_ACEOF
24016
24017fi
24018
24019
24020
24021 if test "$wxUSE_GPE" = "yes"; then
24022 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24023echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24024
24025ac_find_libraries=
24026for ac_dir in $SEARCH_LIB /usr/lib;
24027 do
24028 for ac_extension in a so sl dylib; do
24029 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24030 ac_find_libraries=$ac_dir
24031 break 2
24032 fi
24033 done
24034 done
24035
24036 if test "$ac_find_libraries" != "" ; then
24037
24038 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24039 result=$?
24040 if test $result = 0; then
24041 ac_path_to_link=""
24042 else
24043 ac_path_to_link=" -L$ac_find_libraries"
24044 fi
24045
24046 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24047 WXGPE=1
24048 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24049echo "${ECHO_T}found at $ac_find_libraries" >&6
24050 else
24051 echo "$as_me:$LINENO: result: not found" >&5
24052echo "${ECHO_T}not found" >&6
24053 fi
24054
24055 fi
24056 fi
24057
24058 if test "$wxUSE_MGL" = 1; then
24059 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24060echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24061 if test "x$MGL_ROOT" = x ; then
24062 echo "$as_me:$LINENO: result: not found" >&5
24063echo "${ECHO_T}not found" >&6
24064 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24065echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24066 { (exit 1); exit 1; }; }
24067 else
24068 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24069echo "${ECHO_T}$MGL_ROOT" >&6
24070 fi
24071
24072 echo "$as_me:$LINENO: checking for libmgl location" >&5
24073echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24074 case "${host}" in
24075 *-*-linux* )
24076 if test "x$wxUSE_SHARED" = xyes ; then
24077 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24078 else
24079 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24080 fi
24081 ;;
24082 *-pc-msdosdjgpp )
24083 mgl_os_candidates="dos32/dj2"
24084 ;;
24085 *)
24086 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24087echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24088 { (exit 1); exit 1; }; }
24089 esac
24090
24091 mgl_lib_type=""
24092 mgl_os=""
24093
24094 for mgl_os_i in $mgl_os_candidates ; do
24095 if test "x$mgl_os" = x ; then
24096 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24097 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24098 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24099 mgl_lib_type=debug
24100 mgl_os=$mgl_os_i
24101 fi
24102 fi
24103 if test "x$mgl_lib_type" = x ; then
24104 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24105 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24106 mgl_lib_type=release
24107 mgl_os=$mgl_os_i
24108 fi
24109 fi
24110 fi
24111 done
24112
24113 if test "x$mgl_os" = x ; then
24114 echo "$as_me:$LINENO: result: not found" >&5
24115echo "${ECHO_T}not found" >&6
24116 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24117echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24118 { (exit 1); exit 1; }; }
24119 fi
24120 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24121echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24122
24123 wxUSE_UNIVERSAL="yes"
24124
24125 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24126 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24127
24128 AFMINSTALL=afminstall
24129 TOOLKIT=MGL
24130 GUIDIST=MGL_DIST
24131 fi
24132
24133 if test "$wxUSE_MICROWIN" = 1; then
24134 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24135echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24136 if test "x$MICROWINDOWS" = x ; then
24137 echo "$as_me:$LINENO: result: not found" >&5
24138echo "${ECHO_T}not found" >&6
24139 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24140echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24141 { (exit 1); exit 1; }; }
24142 else
24143 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24144echo "${ECHO_T}$MICROWINDOWS" >&6
24145 fi
24146
24147 if test -f $MICROWINDOWS/lib/libmwin.a; then
24148 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24149echo "${ECHO_T}MicroWindows' libraries found." >&6
24150 else
24151 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24152echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24153 { (exit 1); exit 1; }; }
24154 fi
24155
24156 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24157 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24158
24159 wxUSE_UNIVERSAL="yes"
24160
24161 AFMINSTALL=afminstall
24162 TOOLKIT=MICROWIN
24163 GUIDIST=MICROWIN_DIST
24164
24165 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24166 fi
24167
74b84332 24168 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
b48a2016 24169 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24170echo $ECHO_N "checking for X... $ECHO_C" >&6
24171
24172
24173# Check whether --with-x or --without-x was given.
24174if test "${with_x+set}" = set; then
24175 withval="$with_x"
24176
24177fi;
24178# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24179if test "x$with_x" = xno; then
24180 # The user explicitly disabled X.
24181 have_x=disabled
24182else
24183 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24184 # Both variables are already set.
24185 have_x=yes
24186 else
24187 if test "${ac_cv_have_x+set}" = set; then
24188 echo $ECHO_N "(cached) $ECHO_C" >&6
24189else
24190 # One or both of the vars are not set, and there is no cached value.
24191ac_x_includes=no ac_x_libraries=no
24192rm -fr conftest.dir
24193if mkdir conftest.dir; then
24194 cd conftest.dir
24195 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24196 cat >Imakefile <<'_ACEOF'
24197acfindx:
24198 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24199_ACEOF
24200 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24201 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24202 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24203 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24204 for ac_extension in a so sl; do
24205 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24206 test -f $ac_im_libdir/libX11.$ac_extension; then
24207 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24208 fi
24209 done
24210 # Screen out bogus values from the imake configuration. They are
24211 # bogus both because they are the default anyway, and because
24212 # using them would break gcc on systems where it needs fixed includes.
24213 case $ac_im_incroot in
24214 /usr/include) ;;
24215 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24216 esac
24217 case $ac_im_usrlibdir in
24218 /usr/lib | /lib) ;;
24219 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24220 esac
24221 fi
24222 cd ..
24223 rm -fr conftest.dir
24224fi
24225
24226# Standard set of common directories for X headers.
24227# Check X11 before X11Rn because it is often a symlink to the current release.
24228ac_x_header_dirs='
24229/usr/X11/include
24230/usr/X11R6/include
24231/usr/X11R5/include
24232/usr/X11R4/include
24233
24234/usr/include/X11
24235/usr/include/X11R6
24236/usr/include/X11R5
24237/usr/include/X11R4
24238
24239/usr/local/X11/include
24240/usr/local/X11R6/include
24241/usr/local/X11R5/include
24242/usr/local/X11R4/include
24243
24244/usr/local/include/X11
24245/usr/local/include/X11R6
24246/usr/local/include/X11R5
24247/usr/local/include/X11R4
24248
24249/usr/X386/include
24250/usr/x386/include
24251/usr/XFree86/include/X11
24252
24253/usr/include
24254/usr/local/include
24255/usr/unsupported/include
24256/usr/athena/include
24257/usr/local/x11r5/include
24258/usr/lpp/Xamples/include
24259
24260/usr/openwin/include
24261/usr/openwin/share/include'
24262
24263if test "$ac_x_includes" = no; then
b48a2016 24264 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24265 # First, try using that file with no special directory specified.
24266 cat >conftest.$ac_ext <<_ACEOF
24267/* confdefs.h. */
24268_ACEOF
24269cat confdefs.h >>conftest.$ac_ext
24270cat >>conftest.$ac_ext <<_ACEOF
24271/* end confdefs.h. */
24272#include <X11/Intrinsic.h>
24273_ACEOF
24274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24276 ac_status=$?
24277 grep -v '^ *+' conftest.er1 >conftest.err
24278 rm -f conftest.er1
24279 cat conftest.err >&5
24280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281 (exit $ac_status); } >/dev/null; then
24282 if test -s conftest.err; then
24283 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24285 else
24286 ac_cpp_err=
24287 fi
24288else
24289 ac_cpp_err=yes
24290fi
24291if test -z "$ac_cpp_err"; then
24292 # We can compile using X headers with no special include directory.
24293ac_x_includes=
24294else
24295 echo "$as_me: failed program was:" >&5
24296sed 's/^/| /' conftest.$ac_ext >&5
24297
24298 for ac_dir in $ac_x_header_dirs; do
24299 if test -r "$ac_dir/X11/Intrinsic.h"; then
24300 ac_x_includes=$ac_dir
24301 break
24302 fi
24303done
24304fi
24305rm -f conftest.err conftest.$ac_ext
24306fi # $ac_x_includes = no
24307
24308if test "$ac_x_libraries" = no; then
24309 # Check for the libraries.
24310 # See if we find them without any special options.
24311 # Don't add to $LIBS permanently.
24312 ac_save_LIBS=$LIBS
24313 LIBS="-lXt $LIBS"
24314 cat >conftest.$ac_ext <<_ACEOF
24315/* confdefs.h. */
24316_ACEOF
24317cat confdefs.h >>conftest.$ac_ext
24318cat >>conftest.$ac_ext <<_ACEOF
24319/* end confdefs.h. */
24320#include <X11/Intrinsic.h>
24321int
24322main ()
24323{
24324XtMalloc (0)
24325 ;
24326 return 0;
24327}
24328_ACEOF
24329rm -f conftest.$ac_objext conftest$ac_exeext
24330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24331 (eval $ac_link) 2>conftest.er1
a848cd7e 24332 ac_status=$?
ac1cb8d3
VS
24333 grep -v '^ *+' conftest.er1 >conftest.err
24334 rm -f conftest.er1
24335 cat conftest.err >&5
a848cd7e
SC
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } &&
b48a2016
DE
24338 { ac_try='test -z "$ac_c_werror_flag"
24339 || test ! -s conftest.err'
ac1cb8d3
VS
24340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341 (eval $ac_try) 2>&5
24342 ac_status=$?
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); }; } &&
24345 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347 (eval $ac_try) 2>&5
24348 ac_status=$?
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); }; }; then
24351 LIBS=$ac_save_LIBS
24352# We can link X programs with no special library path.
24353ac_x_libraries=
24354else
24355 echo "$as_me: failed program was:" >&5
24356sed 's/^/| /' conftest.$ac_ext >&5
24357
24358LIBS=$ac_save_LIBS
24359for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24360do
24361 # Don't even attempt the hair of trying to link an X program!
24362 for ac_extension in a so sl; do
24363 if test -r $ac_dir/libXt.$ac_extension; then
24364 ac_x_libraries=$ac_dir
24365 break 2
24366 fi
24367 done
24368done
24369fi
ac1cb8d3
VS
24370rm -f conftest.err conftest.$ac_objext \
24371 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24372fi # $ac_x_libraries = no
24373
24374if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24375 # Didn't find X anywhere. Cache the known absence of X.
24376 ac_cv_have_x="have_x=no"
24377else
24378 # Record where we found X for the cache.
24379 ac_cv_have_x="have_x=yes \
ac1cb8d3 24380 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24381fi
24382fi
24383
24384 fi
24385 eval "$ac_cv_have_x"
24386fi # $with_x != no
24387
24388if test "$have_x" != yes; then
24389 echo "$as_me:$LINENO: result: $have_x" >&5
24390echo "${ECHO_T}$have_x" >&6
24391 no_x=yes
24392else
24393 # If each of the values was on the command line, it overrides each guess.
24394 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24395 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24396 # Update the cache value to reflect the command line values.
24397 ac_cv_have_x="have_x=yes \
24398 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b48a2016
DE
24399 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24400echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24401fi
24402
24403if test "$no_x" = yes; then
24404 # Not all programs may use this symbol, but it does not hurt to define it.
24405
24406cat >>confdefs.h <<\_ACEOF
24407#define X_DISPLAY_MISSING 1
24408_ACEOF
24409
24410 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24411else
24412 if test -n "$x_includes"; then
24413 X_CFLAGS="$X_CFLAGS -I$x_includes"
24414 fi
24415
24416 # It would also be nice to do this for all -L options, not just this one.
24417 if test -n "$x_libraries"; then
24418 X_LIBS="$X_LIBS -L$x_libraries"
24419 # For Solaris; some versions of Sun CC require a space after -R and
24420 # others require no space. Words are not sufficient . . . .
24421 case `(uname -sr) 2>/dev/null` in
24422 "SunOS 5"*)
24423 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24424echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24425 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24426 cat >conftest.$ac_ext <<_ACEOF
24427/* confdefs.h. */
24428_ACEOF
24429cat confdefs.h >>conftest.$ac_ext
24430cat >>conftest.$ac_ext <<_ACEOF
24431/* end confdefs.h. */
24432
24433int
24434main ()
24435{
24436
24437 ;
24438 return 0;
24439}
24440_ACEOF
24441rm -f conftest.$ac_objext conftest$ac_exeext
24442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24443 (eval $ac_link) 2>conftest.er1
a848cd7e 24444 ac_status=$?
ac1cb8d3
VS
24445 grep -v '^ *+' conftest.er1 >conftest.err
24446 rm -f conftest.er1
24447 cat conftest.err >&5
a848cd7e
SC
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } &&
b48a2016
DE
24450 { ac_try='test -z "$ac_c_werror_flag"
24451 || test ! -s conftest.err'
ac1cb8d3
VS
24452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453 (eval $ac_try) 2>&5
24454 ac_status=$?
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); }; } &&
24457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24459 (eval $ac_try) 2>&5
24460 ac_status=$?
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); }; }; then
24463 ac_R_nospace=yes
24464else
24465 echo "$as_me: failed program was:" >&5
24466sed 's/^/| /' conftest.$ac_ext >&5
24467
24468ac_R_nospace=no
24469fi
ac1cb8d3
VS
24470rm -f conftest.err conftest.$ac_objext \
24471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24472 if test $ac_R_nospace = yes; then
24473 echo "$as_me:$LINENO: result: no" >&5
24474echo "${ECHO_T}no" >&6
24475 X_LIBS="$X_LIBS -R$x_libraries"
24476 else
24477 LIBS="$ac_xsave_LIBS -R $x_libraries"
24478 cat >conftest.$ac_ext <<_ACEOF
24479/* confdefs.h. */
24480_ACEOF
24481cat confdefs.h >>conftest.$ac_ext
24482cat >>conftest.$ac_ext <<_ACEOF
24483/* end confdefs.h. */
24484
24485int
24486main ()
24487{
24488
24489 ;
24490 return 0;
24491}
24492_ACEOF
24493rm -f conftest.$ac_objext conftest$ac_exeext
24494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24495 (eval $ac_link) 2>conftest.er1
a848cd7e 24496 ac_status=$?
ac1cb8d3
VS
24497 grep -v '^ *+' conftest.er1 >conftest.err
24498 rm -f conftest.er1
24499 cat conftest.err >&5
a848cd7e
SC
24500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501 (exit $ac_status); } &&
b48a2016
DE
24502 { ac_try='test -z "$ac_c_werror_flag"
24503 || test ! -s conftest.err'
ac1cb8d3
VS
24504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24505 (eval $ac_try) 2>&5
24506 ac_status=$?
24507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508 (exit $ac_status); }; } &&
24509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24511 (eval $ac_try) 2>&5
24512 ac_status=$?
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); }; }; then
24515 ac_R_space=yes
24516else
24517 echo "$as_me: failed program was:" >&5
24518sed 's/^/| /' conftest.$ac_ext >&5
24519
24520ac_R_space=no
24521fi
ac1cb8d3
VS
24522rm -f conftest.err conftest.$ac_objext \
24523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24524 if test $ac_R_space = yes; then
24525 echo "$as_me:$LINENO: result: yes" >&5
24526echo "${ECHO_T}yes" >&6
24527 X_LIBS="$X_LIBS -R $x_libraries"
24528 else
24529 echo "$as_me:$LINENO: result: neither works" >&5
24530echo "${ECHO_T}neither works" >&6
24531 fi
24532 fi
24533 LIBS=$ac_xsave_LIBS
24534 esac
24535 fi
24536
24537 # Check for system-dependent libraries X programs must link with.
24538 # Do this before checking for the system-independent R6 libraries
24539 # (-lICE), since we may need -lsocket or whatever for X linking.
24540
24541 if test "$ISC" = yes; then
24542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24543 else
24544 # Martyn Johnson says this is needed for Ultrix, if the X
24545 # libraries were built with DECnet support. And Karl Berry says
24546 # the Alpha needs dnet_stub (dnet does not exist).
24547 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24548 cat >conftest.$ac_ext <<_ACEOF
24549/* confdefs.h. */
24550_ACEOF
24551cat confdefs.h >>conftest.$ac_ext
24552cat >>conftest.$ac_ext <<_ACEOF
24553/* end confdefs.h. */
24554
24555/* Override any gcc2 internal prototype to avoid an error. */
24556#ifdef __cplusplus
24557extern "C"
24558#endif
24559/* We use char because int might match the return type of a gcc2
24560 builtin and then its argument prototype would still apply. */
24561char XOpenDisplay ();
24562int
24563main ()
24564{
24565XOpenDisplay ();
24566 ;
24567 return 0;
24568}
24569_ACEOF
24570rm -f conftest.$ac_objext conftest$ac_exeext
24571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24572 (eval $ac_link) 2>conftest.er1
a848cd7e 24573 ac_status=$?
ac1cb8d3
VS
24574 grep -v '^ *+' conftest.er1 >conftest.err
24575 rm -f conftest.er1
24576 cat conftest.err >&5
a848cd7e
SC
24577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578 (exit $ac_status); } &&
b48a2016
DE
24579 { ac_try='test -z "$ac_c_werror_flag"
24580 || test ! -s conftest.err'
ac1cb8d3
VS
24581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24582 (eval $ac_try) 2>&5
24583 ac_status=$?
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); }; } &&
24586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24588 (eval $ac_try) 2>&5
24589 ac_status=$?
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); }; }; then
24592 :
24593else
24594 echo "$as_me: failed program was:" >&5
24595sed 's/^/| /' conftest.$ac_ext >&5
24596
24597echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24598echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24599if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24600 echo $ECHO_N "(cached) $ECHO_C" >&6
24601else
24602 ac_check_lib_save_LIBS=$LIBS
24603LIBS="-ldnet $LIBS"
24604cat >conftest.$ac_ext <<_ACEOF
24605/* confdefs.h. */
24606_ACEOF
24607cat confdefs.h >>conftest.$ac_ext
24608cat >>conftest.$ac_ext <<_ACEOF
24609/* end confdefs.h. */
24610
24611/* Override any gcc2 internal prototype to avoid an error. */
24612#ifdef __cplusplus
24613extern "C"
24614#endif
24615/* We use char because int might match the return type of a gcc2
24616 builtin and then its argument prototype would still apply. */
24617char dnet_ntoa ();
24618int
24619main ()
24620{
24621dnet_ntoa ();
24622 ;
24623 return 0;
24624}
24625_ACEOF
24626rm -f conftest.$ac_objext conftest$ac_exeext
24627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24628 (eval $ac_link) 2>conftest.er1
a848cd7e 24629 ac_status=$?
ac1cb8d3
VS
24630 grep -v '^ *+' conftest.er1 >conftest.err
24631 rm -f conftest.er1
24632 cat conftest.err >&5
a848cd7e
SC
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } &&
b48a2016
DE
24635 { ac_try='test -z "$ac_c_werror_flag"
24636 || test ! -s conftest.err'
ac1cb8d3
VS
24637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24638 (eval $ac_try) 2>&5
24639 ac_status=$?
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); }; } &&
24642 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24644 (eval $ac_try) 2>&5
24645 ac_status=$?
24646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); }; }; then
24648 ac_cv_lib_dnet_dnet_ntoa=yes
24649else
24650 echo "$as_me: failed program was:" >&5
24651sed 's/^/| /' conftest.$ac_ext >&5
24652
24653ac_cv_lib_dnet_dnet_ntoa=no
24654fi
ac1cb8d3
VS
24655rm -f conftest.err conftest.$ac_objext \
24656 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24657LIBS=$ac_check_lib_save_LIBS
24658fi
24659echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24660echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24661if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24662 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24663fi
24664
24665 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24666 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24667echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24668if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24669 echo $ECHO_N "(cached) $ECHO_C" >&6
24670else
24671 ac_check_lib_save_LIBS=$LIBS
24672LIBS="-ldnet_stub $LIBS"
24673cat >conftest.$ac_ext <<_ACEOF
24674/* confdefs.h. */
24675_ACEOF
24676cat confdefs.h >>conftest.$ac_ext
24677cat >>conftest.$ac_ext <<_ACEOF
24678/* end confdefs.h. */
24679
24680/* Override any gcc2 internal prototype to avoid an error. */
24681#ifdef __cplusplus
24682extern "C"
24683#endif
24684/* We use char because int might match the return type of a gcc2
24685 builtin and then its argument prototype would still apply. */
24686char dnet_ntoa ();
24687int
24688main ()
24689{
24690dnet_ntoa ();
24691 ;
24692 return 0;
24693}
24694_ACEOF
24695rm -f conftest.$ac_objext conftest$ac_exeext
24696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24697 (eval $ac_link) 2>conftest.er1
a848cd7e 24698 ac_status=$?
ac1cb8d3
VS
24699 grep -v '^ *+' conftest.er1 >conftest.err
24700 rm -f conftest.er1
24701 cat conftest.err >&5
a848cd7e
SC
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); } &&
b48a2016
DE
24704 { ac_try='test -z "$ac_c_werror_flag"
24705 || test ! -s conftest.err'
ac1cb8d3
VS
24706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24707 (eval $ac_try) 2>&5
24708 ac_status=$?
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); }; } &&
24711 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24713 (eval $ac_try) 2>&5
24714 ac_status=$?
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); }; }; then
24717 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24718else
24719 echo "$as_me: failed program was:" >&5
24720sed 's/^/| /' conftest.$ac_ext >&5
24721
24722ac_cv_lib_dnet_stub_dnet_ntoa=no
24723fi
ac1cb8d3
VS
24724rm -f conftest.err conftest.$ac_objext \
24725 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24726LIBS=$ac_check_lib_save_LIBS
24727fi
24728echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24729echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24730if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24731 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24732fi
24733
24734 fi
24735fi
ac1cb8d3
VS
24736rm -f conftest.err conftest.$ac_objext \
24737 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24738 LIBS="$ac_xsave_LIBS"
24739
24740 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24741 # to get the SysV transport functions.
24742 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24743 # needs -lnsl.
24744 # The nsl library prevents programs from opening the X display
24745 # on Irix 5.2, according to T.E. Dickey.
24746 # The functions gethostbyname, getservbyname, and inet_addr are
24747 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24748 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24749echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24750if test "${ac_cv_func_gethostbyname+set}" = set; then
24751 echo $ECHO_N "(cached) $ECHO_C" >&6
24752else
24753 cat >conftest.$ac_ext <<_ACEOF
24754/* confdefs.h. */
24755_ACEOF
24756cat confdefs.h >>conftest.$ac_ext
24757cat >>conftest.$ac_ext <<_ACEOF
24758/* end confdefs.h. */
ac1cb8d3
VS
24759/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24761#define gethostbyname innocuous_gethostbyname
24762
a848cd7e
SC
24763/* System header to define __stub macros and hopefully few prototypes,
24764 which can conflict with char gethostbyname (); below.
24765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24766 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24767
a848cd7e
SC
24768#ifdef __STDC__
24769# include <limits.h>
24770#else
24771# include <assert.h>
24772#endif
ac1cb8d3
VS
24773
24774#undef gethostbyname
24775
a848cd7e
SC
24776/* Override any gcc2 internal prototype to avoid an error. */
24777#ifdef __cplusplus
24778extern "C"
24779{
24780#endif
24781/* We use char because int might match the return type of a gcc2
24782 builtin and then its argument prototype would still apply. */
24783char gethostbyname ();
24784/* The GNU C library defines this for functions which it implements
24785 to always fail with ENOSYS. Some functions are actually named
24786 something starting with __ and the normal name is an alias. */
24787#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24788choke me
24789#else
24790char (*f) () = gethostbyname;
24791#endif
24792#ifdef __cplusplus
24793}
24794#endif
24795
24796int
24797main ()
24798{
24799return f != gethostbyname;
24800 ;
24801 return 0;
24802}
24803_ACEOF
24804rm -f conftest.$ac_objext conftest$ac_exeext
24805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24806 (eval $ac_link) 2>conftest.er1
a848cd7e 24807 ac_status=$?
ac1cb8d3
VS
24808 grep -v '^ *+' conftest.er1 >conftest.err
24809 rm -f conftest.er1
24810 cat conftest.err >&5
a848cd7e
SC
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); } &&
b48a2016
DE
24813 { ac_try='test -z "$ac_c_werror_flag"
24814 || test ! -s conftest.err'
ac1cb8d3
VS
24815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816 (eval $ac_try) 2>&5
24817 ac_status=$?
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); }; } &&
24820 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24822 (eval $ac_try) 2>&5
24823 ac_status=$?
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); }; }; then
24826 ac_cv_func_gethostbyname=yes
24827else
24828 echo "$as_me: failed program was:" >&5
24829sed 's/^/| /' conftest.$ac_ext >&5
24830
24831ac_cv_func_gethostbyname=no
24832fi
ac1cb8d3
VS
24833rm -f conftest.err conftest.$ac_objext \
24834 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24835fi
24836echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24837echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24838
24839 if test $ac_cv_func_gethostbyname = no; then
24840 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24841echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24842if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24843 echo $ECHO_N "(cached) $ECHO_C" >&6
24844else
24845 ac_check_lib_save_LIBS=$LIBS
24846LIBS="-lnsl $LIBS"
24847cat >conftest.$ac_ext <<_ACEOF
24848/* confdefs.h. */
24849_ACEOF
24850cat confdefs.h >>conftest.$ac_ext
24851cat >>conftest.$ac_ext <<_ACEOF
24852/* end confdefs.h. */
24853
24854/* Override any gcc2 internal prototype to avoid an error. */
24855#ifdef __cplusplus
24856extern "C"
24857#endif
24858/* We use char because int might match the return type of a gcc2
24859 builtin and then its argument prototype would still apply. */
24860char gethostbyname ();
24861int
24862main ()
24863{
24864gethostbyname ();
24865 ;
24866 return 0;
24867}
24868_ACEOF
24869rm -f conftest.$ac_objext conftest$ac_exeext
24870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24871 (eval $ac_link) 2>conftest.er1
24872 ac_status=$?
24873 grep -v '^ *+' conftest.er1 >conftest.err
24874 rm -f conftest.er1
24875 cat conftest.err >&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } &&
b48a2016
DE
24878 { ac_try='test -z "$ac_c_werror_flag"
24879 || test ! -s conftest.err'
ac1cb8d3
VS
24880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881 (eval $ac_try) 2>&5
24882 ac_status=$?
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; } &&
24885 { ac_try='test -s conftest$ac_exeext'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; }; then
24891 ac_cv_lib_nsl_gethostbyname=yes
24892else
24893 echo "$as_me: failed program was:" >&5
24894sed 's/^/| /' conftest.$ac_ext >&5
24895
24896ac_cv_lib_nsl_gethostbyname=no
24897fi
24898rm -f conftest.err conftest.$ac_objext \
24899 conftest$ac_exeext conftest.$ac_ext
24900LIBS=$ac_check_lib_save_LIBS
24901fi
24902echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24903echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24904if test $ac_cv_lib_nsl_gethostbyname = yes; then
24905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24906fi
24907
24908 if test $ac_cv_lib_nsl_gethostbyname = no; then
24909 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24910echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24911if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24912 echo $ECHO_N "(cached) $ECHO_C" >&6
24913else
24914 ac_check_lib_save_LIBS=$LIBS
24915LIBS="-lbsd $LIBS"
24916cat >conftest.$ac_ext <<_ACEOF
24917/* confdefs.h. */
24918_ACEOF
24919cat confdefs.h >>conftest.$ac_ext
24920cat >>conftest.$ac_ext <<_ACEOF
24921/* end confdefs.h. */
24922
24923/* Override any gcc2 internal prototype to avoid an error. */
24924#ifdef __cplusplus
24925extern "C"
24926#endif
24927/* We use char because int might match the return type of a gcc2
24928 builtin and then its argument prototype would still apply. */
24929char gethostbyname ();
24930int
24931main ()
24932{
24933gethostbyname ();
24934 ;
24935 return 0;
24936}
24937_ACEOF
24938rm -f conftest.$ac_objext conftest$ac_exeext
24939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24940 (eval $ac_link) 2>conftest.er1
a848cd7e 24941 ac_status=$?
ac1cb8d3
VS
24942 grep -v '^ *+' conftest.er1 >conftest.err
24943 rm -f conftest.er1
24944 cat conftest.err >&5
a848cd7e
SC
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); } &&
b48a2016
DE
24947 { ac_try='test -z "$ac_c_werror_flag"
24948 || test ! -s conftest.err'
a848cd7e
SC
24949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24953 (exit $ac_status); }; } &&
24954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24956 (eval $ac_try) 2>&5
24957 ac_status=$?
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); }; }; then
24960 ac_cv_lib_bsd_gethostbyname=yes
24961else
24962 echo "$as_me: failed program was:" >&5
24963sed 's/^/| /' conftest.$ac_ext >&5
24964
24965ac_cv_lib_bsd_gethostbyname=no
24966fi
ac1cb8d3
VS
24967rm -f conftest.err conftest.$ac_objext \
24968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24969LIBS=$ac_check_lib_save_LIBS
24970fi
24971echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24972echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24973if test $ac_cv_lib_bsd_gethostbyname = yes; then
24974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24975fi
24976
24977 fi
24978 fi
24979
24980 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24981 # socket/setsockopt and other routines are undefined under SCO ODT
24982 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24983 # on later versions), says Simon Leinen: it contains gethostby*
24984 # variants that don't use the name server (or something). -lsocket
24985 # must be given before -lnsl if both are needed. We assume that
24986 # if connect needs -lnsl, so does gethostbyname.
24987 echo "$as_me:$LINENO: checking for connect" >&5
24988echo $ECHO_N "checking for connect... $ECHO_C" >&6
24989if test "${ac_cv_func_connect+set}" = set; then
24990 echo $ECHO_N "(cached) $ECHO_C" >&6
24991else
24992 cat >conftest.$ac_ext <<_ACEOF
24993/* confdefs.h. */
24994_ACEOF
24995cat confdefs.h >>conftest.$ac_ext
24996cat >>conftest.$ac_ext <<_ACEOF
24997/* end confdefs.h. */
ac1cb8d3
VS
24998/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25000#define connect innocuous_connect
25001
a848cd7e
SC
25002/* System header to define __stub macros and hopefully few prototypes,
25003 which can conflict with char connect (); below.
25004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25005 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25006
a848cd7e
SC
25007#ifdef __STDC__
25008# include <limits.h>
25009#else
25010# include <assert.h>
25011#endif
ac1cb8d3
VS
25012
25013#undef connect
25014
a848cd7e
SC
25015/* Override any gcc2 internal prototype to avoid an error. */
25016#ifdef __cplusplus
25017extern "C"
25018{
25019#endif
25020/* We use char because int might match the return type of a gcc2
25021 builtin and then its argument prototype would still apply. */
25022char connect ();
25023/* The GNU C library defines this for functions which it implements
25024 to always fail with ENOSYS. Some functions are actually named
25025 something starting with __ and the normal name is an alias. */
25026#if defined (__stub_connect) || defined (__stub___connect)
25027choke me
25028#else
25029char (*f) () = connect;
25030#endif
25031#ifdef __cplusplus
25032}
25033#endif
25034
25035int
25036main ()
25037{
25038return f != connect;
25039 ;
25040 return 0;
25041}
25042_ACEOF
25043rm -f conftest.$ac_objext conftest$ac_exeext
25044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25045 (eval $ac_link) 2>conftest.er1
a848cd7e 25046 ac_status=$?
ac1cb8d3
VS
25047 grep -v '^ *+' conftest.er1 >conftest.err
25048 rm -f conftest.er1
25049 cat conftest.err >&5
a848cd7e
SC
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); } &&
b48a2016
DE
25052 { ac_try='test -z "$ac_c_werror_flag"
25053 || test ! -s conftest.err'
ac1cb8d3
VS
25054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25055 (eval $ac_try) 2>&5
25056 ac_status=$?
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); }; } &&
25059 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); }; }; then
25065 ac_cv_func_connect=yes
25066else
25067 echo "$as_me: failed program was:" >&5
25068sed 's/^/| /' conftest.$ac_ext >&5
25069
25070ac_cv_func_connect=no
25071fi
ac1cb8d3
VS
25072rm -f conftest.err conftest.$ac_objext \
25073 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25074fi
25075echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25076echo "${ECHO_T}$ac_cv_func_connect" >&6
25077
25078 if test $ac_cv_func_connect = no; then
25079 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25080echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25081if test "${ac_cv_lib_socket_connect+set}" = set; then
25082 echo $ECHO_N "(cached) $ECHO_C" >&6
25083else
25084 ac_check_lib_save_LIBS=$LIBS
25085LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25086cat >conftest.$ac_ext <<_ACEOF
25087/* confdefs.h. */
25088_ACEOF
25089cat confdefs.h >>conftest.$ac_ext
25090cat >>conftest.$ac_ext <<_ACEOF
25091/* end confdefs.h. */
25092
25093/* Override any gcc2 internal prototype to avoid an error. */
25094#ifdef __cplusplus
25095extern "C"
25096#endif
25097/* We use char because int might match the return type of a gcc2
25098 builtin and then its argument prototype would still apply. */
25099char connect ();
25100int
25101main ()
25102{
25103connect ();
25104 ;
25105 return 0;
25106}
25107_ACEOF
25108rm -f conftest.$ac_objext conftest$ac_exeext
25109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25110 (eval $ac_link) 2>conftest.er1
a848cd7e 25111 ac_status=$?
ac1cb8d3
VS
25112 grep -v '^ *+' conftest.er1 >conftest.err
25113 rm -f conftest.er1
25114 cat conftest.err >&5
a848cd7e
SC
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); } &&
b48a2016
DE
25117 { ac_try='test -z "$ac_c_werror_flag"
25118 || test ! -s conftest.err'
ac1cb8d3
VS
25119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120 (eval $ac_try) 2>&5
25121 ac_status=$?
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); }; } &&
25124 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126 (eval $ac_try) 2>&5
25127 ac_status=$?
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; }; then
25130 ac_cv_lib_socket_connect=yes
25131else
25132 echo "$as_me: failed program was:" >&5
25133sed 's/^/| /' conftest.$ac_ext >&5
25134
25135ac_cv_lib_socket_connect=no
25136fi
ac1cb8d3
VS
25137rm -f conftest.err conftest.$ac_objext \
25138 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25139LIBS=$ac_check_lib_save_LIBS
25140fi
25141echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25142echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25143if test $ac_cv_lib_socket_connect = yes; then
25144 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25145fi
25146
25147 fi
25148
25149 # Guillermo Gomez says -lposix is necessary on A/UX.
25150 echo "$as_me:$LINENO: checking for remove" >&5
25151echo $ECHO_N "checking for remove... $ECHO_C" >&6
25152if test "${ac_cv_func_remove+set}" = set; then
25153 echo $ECHO_N "(cached) $ECHO_C" >&6
25154else
25155 cat >conftest.$ac_ext <<_ACEOF
25156/* confdefs.h. */
25157_ACEOF
25158cat confdefs.h >>conftest.$ac_ext
25159cat >>conftest.$ac_ext <<_ACEOF
25160/* end confdefs.h. */
ac1cb8d3
VS
25161/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25163#define remove innocuous_remove
25164
a848cd7e
SC
25165/* System header to define __stub macros and hopefully few prototypes,
25166 which can conflict with char remove (); below.
25167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25168 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25169
a848cd7e
SC
25170#ifdef __STDC__
25171# include <limits.h>
25172#else
25173# include <assert.h>
25174#endif
ac1cb8d3
VS
25175
25176#undef remove
25177
a848cd7e
SC
25178/* Override any gcc2 internal prototype to avoid an error. */
25179#ifdef __cplusplus
25180extern "C"
25181{
25182#endif
25183/* We use char because int might match the return type of a gcc2
25184 builtin and then its argument prototype would still apply. */
25185char remove ();
25186/* The GNU C library defines this for functions which it implements
25187 to always fail with ENOSYS. Some functions are actually named
25188 something starting with __ and the normal name is an alias. */
25189#if defined (__stub_remove) || defined (__stub___remove)
25190choke me
25191#else
25192char (*f) () = remove;
25193#endif
25194#ifdef __cplusplus
25195}
25196#endif
25197
25198int
25199main ()
25200{
25201return f != remove;
25202 ;
25203 return 0;
25204}
25205_ACEOF
25206rm -f conftest.$ac_objext conftest$ac_exeext
25207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25208 (eval $ac_link) 2>conftest.er1
a848cd7e 25209 ac_status=$?
ac1cb8d3
VS
25210 grep -v '^ *+' conftest.er1 >conftest.err
25211 rm -f conftest.er1
25212 cat conftest.err >&5
a848cd7e
SC
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); } &&
b48a2016
DE
25215 { ac_try='test -z "$ac_c_werror_flag"
25216 || test ! -s conftest.err'
ac1cb8d3
VS
25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25219 ac_status=$?
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; } &&
25222 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25224 (eval $ac_try) 2>&5
25225 ac_status=$?
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); }; }; then
25228 ac_cv_func_remove=yes
25229else
25230 echo "$as_me: failed program was:" >&5
25231sed 's/^/| /' conftest.$ac_ext >&5
25232
25233ac_cv_func_remove=no
25234fi
ac1cb8d3
VS
25235rm -f conftest.err conftest.$ac_objext \
25236 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25237fi
25238echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25239echo "${ECHO_T}$ac_cv_func_remove" >&6
25240
25241 if test $ac_cv_func_remove = no; then
25242 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25243echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25244if test "${ac_cv_lib_posix_remove+set}" = set; then
25245 echo $ECHO_N "(cached) $ECHO_C" >&6
25246else
25247 ac_check_lib_save_LIBS=$LIBS
25248LIBS="-lposix $LIBS"
25249cat >conftest.$ac_ext <<_ACEOF
25250/* confdefs.h. */
25251_ACEOF
25252cat confdefs.h >>conftest.$ac_ext
25253cat >>conftest.$ac_ext <<_ACEOF
25254/* end confdefs.h. */
25255
25256/* Override any gcc2 internal prototype to avoid an error. */
25257#ifdef __cplusplus
25258extern "C"
25259#endif
25260/* We use char because int might match the return type of a gcc2
25261 builtin and then its argument prototype would still apply. */
25262char remove ();
25263int
25264main ()
25265{
25266remove ();
25267 ;
25268 return 0;
25269}
25270_ACEOF
25271rm -f conftest.$ac_objext conftest$ac_exeext
25272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25273 (eval $ac_link) 2>conftest.er1
a848cd7e 25274 ac_status=$?
ac1cb8d3
VS
25275 grep -v '^ *+' conftest.er1 >conftest.err
25276 rm -f conftest.er1
25277 cat conftest.err >&5
a848cd7e
SC
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); } &&
b48a2016
DE
25280 { ac_try='test -z "$ac_c_werror_flag"
25281 || test ! -s conftest.err'
ac1cb8d3
VS
25282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283 (eval $ac_try) 2>&5
25284 ac_status=$?
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); }; } &&
25287 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289 (eval $ac_try) 2>&5
25290 ac_status=$?
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; }; then
25293 ac_cv_lib_posix_remove=yes
25294else
25295 echo "$as_me: failed program was:" >&5
25296sed 's/^/| /' conftest.$ac_ext >&5
25297
25298ac_cv_lib_posix_remove=no
25299fi
ac1cb8d3
VS
25300rm -f conftest.err conftest.$ac_objext \
25301 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25302LIBS=$ac_check_lib_save_LIBS
25303fi
25304echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25305echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25306if test $ac_cv_lib_posix_remove = yes; then
25307 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25308fi
25309
25310 fi
25311
25312 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25313 echo "$as_me:$LINENO: checking for shmat" >&5
25314echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25315if test "${ac_cv_func_shmat+set}" = set; then
25316 echo $ECHO_N "(cached) $ECHO_C" >&6
25317else
25318 cat >conftest.$ac_ext <<_ACEOF
25319/* confdefs.h. */
25320_ACEOF
25321cat confdefs.h >>conftest.$ac_ext
25322cat >>conftest.$ac_ext <<_ACEOF
25323/* end confdefs.h. */
ac1cb8d3
VS
25324/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25326#define shmat innocuous_shmat
25327
a848cd7e
SC
25328/* System header to define __stub macros and hopefully few prototypes,
25329 which can conflict with char shmat (); below.
25330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25331 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25332
a848cd7e
SC
25333#ifdef __STDC__
25334# include <limits.h>
25335#else
25336# include <assert.h>
25337#endif
ac1cb8d3
VS
25338
25339#undef shmat
25340
a848cd7e
SC
25341/* Override any gcc2 internal prototype to avoid an error. */
25342#ifdef __cplusplus
25343extern "C"
25344{
25345#endif
25346/* We use char because int might match the return type of a gcc2
25347 builtin and then its argument prototype would still apply. */
25348char shmat ();
25349/* The GNU C library defines this for functions which it implements
25350 to always fail with ENOSYS. Some functions are actually named
25351 something starting with __ and the normal name is an alias. */
25352#if defined (__stub_shmat) || defined (__stub___shmat)
25353choke me
25354#else
25355char (*f) () = shmat;
25356#endif
25357#ifdef __cplusplus
25358}
25359#endif
25360
25361int
25362main ()
25363{
25364return f != shmat;
25365 ;
25366 return 0;
25367}
25368_ACEOF
25369rm -f conftest.$ac_objext conftest$ac_exeext
25370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25371 (eval $ac_link) 2>conftest.er1
a848cd7e 25372 ac_status=$?
ac1cb8d3
VS
25373 grep -v '^ *+' conftest.er1 >conftest.err
25374 rm -f conftest.er1
25375 cat conftest.err >&5
a848cd7e
SC
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); } &&
b48a2016
DE
25378 { ac_try='test -z "$ac_c_werror_flag"
25379 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
25385 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25388 ac_status=$?
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; }; then
25391 ac_cv_func_shmat=yes
25392else
25393 echo "$as_me: failed program was:" >&5
25394sed 's/^/| /' conftest.$ac_ext >&5
25395
25396ac_cv_func_shmat=no
25397fi
ac1cb8d3
VS
25398rm -f conftest.err conftest.$ac_objext \
25399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25400fi
25401echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25402echo "${ECHO_T}$ac_cv_func_shmat" >&6
25403
25404 if test $ac_cv_func_shmat = no; then
25405 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25406echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25407if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25408 echo $ECHO_N "(cached) $ECHO_C" >&6
25409else
25410 ac_check_lib_save_LIBS=$LIBS
25411LIBS="-lipc $LIBS"
25412cat >conftest.$ac_ext <<_ACEOF
25413/* confdefs.h. */
25414_ACEOF
25415cat confdefs.h >>conftest.$ac_ext
25416cat >>conftest.$ac_ext <<_ACEOF
25417/* end confdefs.h. */
25418
25419/* Override any gcc2 internal prototype to avoid an error. */
25420#ifdef __cplusplus
25421extern "C"
25422#endif
25423/* We use char because int might match the return type of a gcc2
25424 builtin and then its argument prototype would still apply. */
25425char shmat ();
25426int
25427main ()
25428{
25429shmat ();
25430 ;
25431 return 0;
25432}
25433_ACEOF
25434rm -f conftest.$ac_objext conftest$ac_exeext
25435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25436 (eval $ac_link) 2>conftest.er1
a848cd7e 25437 ac_status=$?
ac1cb8d3
VS
25438 grep -v '^ *+' conftest.er1 >conftest.err
25439 rm -f conftest.er1
25440 cat conftest.err >&5
a848cd7e
SC
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } &&
b48a2016
DE
25443 { ac_try='test -z "$ac_c_werror_flag"
25444 || test ! -s conftest.err'
ac1cb8d3
VS
25445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25446 (eval $ac_try) 2>&5
25447 ac_status=$?
25448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449 (exit $ac_status); }; } &&
25450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25452 (eval $ac_try) 2>&5
25453 ac_status=$?
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); }; }; then
25456 ac_cv_lib_ipc_shmat=yes
25457else
25458 echo "$as_me: failed program was:" >&5
25459sed 's/^/| /' conftest.$ac_ext >&5
25460
25461ac_cv_lib_ipc_shmat=no
25462fi
ac1cb8d3
VS
25463rm -f conftest.err conftest.$ac_objext \
25464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25465LIBS=$ac_check_lib_save_LIBS
25466fi
25467echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25468echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25469if test $ac_cv_lib_ipc_shmat = yes; then
25470 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25471fi
25472
25473 fi
25474 fi
25475
25476 # Check for libraries that X11R6 Xt/Xaw programs need.
25477 ac_save_LDFLAGS=$LDFLAGS
25478 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25479 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25480 # check for ICE first), but we must link in the order -lSM -lICE or
25481 # we get undefined symbols. So assume we have SM if we have ICE.
25482 # These have to be linked with before -lX11, unlike the other
25483 # libraries we check for below, so use a different variable.
25484 # John Interrante, Karl Berry
25485 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25486echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25487if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25488 echo $ECHO_N "(cached) $ECHO_C" >&6
25489else
25490 ac_check_lib_save_LIBS=$LIBS
25491LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25492cat >conftest.$ac_ext <<_ACEOF
25493/* confdefs.h. */
25494_ACEOF
25495cat confdefs.h >>conftest.$ac_ext
25496cat >>conftest.$ac_ext <<_ACEOF
25497/* end confdefs.h. */
25498
25499/* Override any gcc2 internal prototype to avoid an error. */
25500#ifdef __cplusplus
25501extern "C"
25502#endif
25503/* We use char because int might match the return type of a gcc2
25504 builtin and then its argument prototype would still apply. */
25505char IceConnectionNumber ();
25506int
25507main ()
25508{
25509IceConnectionNumber ();
25510 ;
25511 return 0;
25512}
25513_ACEOF
25514rm -f conftest.$ac_objext conftest$ac_exeext
25515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25516 (eval $ac_link) 2>conftest.er1
a848cd7e 25517 ac_status=$?
ac1cb8d3
VS
25518 grep -v '^ *+' conftest.er1 >conftest.err
25519 rm -f conftest.er1
25520 cat conftest.err >&5
a848cd7e
SC
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); } &&
b48a2016
DE
25523 { ac_try='test -z "$ac_c_werror_flag"
25524 || test ! -s conftest.err'
ac1cb8d3
VS
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; } &&
25530 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532 (eval $ac_try) 2>&5
25533 ac_status=$?
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; }; then
25536 ac_cv_lib_ICE_IceConnectionNumber=yes
25537else
25538 echo "$as_me: failed program was:" >&5
25539sed 's/^/| /' conftest.$ac_ext >&5
25540
25541ac_cv_lib_ICE_IceConnectionNumber=no
25542fi
ac1cb8d3
VS
25543rm -f conftest.err conftest.$ac_objext \
25544 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25545LIBS=$ac_check_lib_save_LIBS
25546fi
25547echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25548echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25549if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25550 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25551fi
25552
25553 LDFLAGS=$ac_save_LDFLAGS
25554
25555fi
25556
25557
25558 if test "$no_x" = "yes"; then
25559 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25560echo "$as_me: error: X11 not found" >&2;}
25561 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25562 fi
25563
74b84332
VS
25564 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25565 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25566 AFMINSTALL=afminstall
25567 COMPILED_X_PROGRAM=0
25568
74b84332
VS
25569 fi
25570
25571 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25572 if test "$wxUSE_NANOX" = "yes"; then
25573 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25574echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25575 if test "x$MICROWIN" = x ; then
25576 echo "$as_me:$LINENO: result: not found" >&5
25577echo "${ECHO_T}not found" >&6
25578 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25579echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25580 { (exit 1); exit 1; }; }
25581 else
25582 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25583echo "${ECHO_T}$MICROWIN" >&6
25584 cat >>confdefs.h <<\_ACEOF
25585#define wxUSE_NANOX 1
25586_ACEOF
25587
25588 fi
25589 fi
25590
25591 if test "$wxUSE_UNICODE" = "yes"; then
25592
25593 succeeded=no
25594
25595 if test -z "$PKG_CONFIG"; then
25596 # Extract the first word of "pkg-config", so it can be a program name with args.
25597set dummy pkg-config; ac_word=$2
25598echo "$as_me:$LINENO: checking for $ac_word" >&5
25599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25600if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25601 echo $ECHO_N "(cached) $ECHO_C" >&6
25602else
25603 case $PKG_CONFIG in
25604 [\\/]* | ?:[\\/]*)
25605 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25606 ;;
25607 *)
25608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25609for as_dir in $PATH
25610do
25611 IFS=$as_save_IFS
25612 test -z "$as_dir" && as_dir=.
25613 for ac_exec_ext in '' $ac_executable_extensions; do
25614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25615 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25617 break 2
25618 fi
25619done
25620done
25621
25622 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25623 ;;
25624esac
25625fi
25626PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25627
25628if test -n "$PKG_CONFIG"; then
25629 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25630echo "${ECHO_T}$PKG_CONFIG" >&6
25631else
25632 echo "$as_me:$LINENO: result: no" >&5
25633echo "${ECHO_T}no" >&6
25634fi
25635
25636 fi
25637
25638 if test "$PKG_CONFIG" = "no" ; then
25639 echo "*** The pkg-config script could not be found. Make sure it is"
25640 echo "*** in your path, or set the PKG_CONFIG environment variable"
25641 echo "*** to the full path to pkg-config."
25642 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25643 else
25644 PKG_CONFIG_MIN_VERSION=0.9.0
25645 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25646 echo "$as_me:$LINENO: checking for pangox" >&5
25647echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25648
25649 if $PKG_CONFIG --exists "pangox" ; then
25650 echo "$as_me:$LINENO: result: yes" >&5
25651echo "${ECHO_T}yes" >&6
25652 succeeded=yes
25653
25654 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25655echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25656 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25657 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25658echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25659
25660 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25661echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25662 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25663 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25664echo "${ECHO_T}$PANGOX_LIBS" >&6
25665 else
25666 PANGOX_CFLAGS=""
25667 PANGOX_LIBS=""
25668 ## If we have a custom action on failure, don't print errors, but
25669 ## do set a variable so people can do so.
25670 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25671
25672 fi
25673
25674
25675
25676 else
25677 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25678 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25679 fi
25680 fi
25681
25682 if test $succeeded = yes; then
25683
25684 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25685 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25686
25687 else
25688
25689 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25690echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25691 { (exit 1); exit 1; }; }
25692
25693
25694 fi
25695
25696
25697 succeeded=no
25698
25699 if test -z "$PKG_CONFIG"; then
25700 # Extract the first word of "pkg-config", so it can be a program name with args.
25701set dummy pkg-config; ac_word=$2
25702echo "$as_me:$LINENO: checking for $ac_word" >&5
25703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25704if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25705 echo $ECHO_N "(cached) $ECHO_C" >&6
25706else
25707 case $PKG_CONFIG in
25708 [\\/]* | ?:[\\/]*)
25709 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25710 ;;
25711 *)
25712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25713for as_dir in $PATH
25714do
25715 IFS=$as_save_IFS
25716 test -z "$as_dir" && as_dir=.
25717 for ac_exec_ext in '' $ac_executable_extensions; do
25718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25719 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25721 break 2
25722 fi
25723done
25724done
25725
25726 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25727 ;;
25728esac
25729fi
25730PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25731
25732if test -n "$PKG_CONFIG"; then
25733 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25734echo "${ECHO_T}$PKG_CONFIG" >&6
25735else
25736 echo "$as_me:$LINENO: result: no" >&5
25737echo "${ECHO_T}no" >&6
25738fi
25739
25740 fi
25741
25742 if test "$PKG_CONFIG" = "no" ; then
25743 echo "*** The pkg-config script could not be found. Make sure it is"
25744 echo "*** in your path, or set the PKG_CONFIG environment variable"
25745 echo "*** to the full path to pkg-config."
25746 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25747 else
25748 PKG_CONFIG_MIN_VERSION=0.9.0
25749 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25750 echo "$as_me:$LINENO: checking for pangoft2" >&5
25751echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25752
25753 if $PKG_CONFIG --exists "pangoft2" ; then
25754 echo "$as_me:$LINENO: result: yes" >&5
25755echo "${ECHO_T}yes" >&6
25756 succeeded=yes
25757
25758 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25759echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25760 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25761 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25762echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25763
25764 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25765echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25766 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25767 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25768echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25769 else
25770 PANGOFT2_CFLAGS=""
25771 PANGOFT2_LIBS=""
25772 ## If we have a custom action on failure, don't print errors, but
25773 ## do set a variable so people can do so.
25774 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25775
25776 fi
25777
25778
25779
25780 else
25781 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25782 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25783 fi
25784 fi
25785
25786 if test $succeeded = yes; then
25787
25788 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25789 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25790
25791 else
25792
25793 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25794echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25795 wxUSE_PRINTING_ARCHITECTURE="no"
25796
25797
25798 fi
25799
25800
25801 succeeded=no
25802
25803 if test -z "$PKG_CONFIG"; then
25804 # Extract the first word of "pkg-config", so it can be a program name with args.
25805set dummy pkg-config; ac_word=$2
25806echo "$as_me:$LINENO: checking for $ac_word" >&5
25807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25808if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25810else
25811 case $PKG_CONFIG in
25812 [\\/]* | ?:[\\/]*)
25813 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25814 ;;
25815 *)
25816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25817for as_dir in $PATH
25818do
25819 IFS=$as_save_IFS
25820 test -z "$as_dir" && as_dir=.
25821 for ac_exec_ext in '' $ac_executable_extensions; do
25822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25823 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25825 break 2
25826 fi
25827done
25828done
25829
25830 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25831 ;;
25832esac
25833fi
25834PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25835
25836if test -n "$PKG_CONFIG"; then
25837 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25838echo "${ECHO_T}$PKG_CONFIG" >&6
25839else
25840 echo "$as_me:$LINENO: result: no" >&5
25841echo "${ECHO_T}no" >&6
25842fi
25843
25844 fi
25845
25846 if test "$PKG_CONFIG" = "no" ; then
25847 echo "*** The pkg-config script could not be found. Make sure it is"
25848 echo "*** in your path, or set the PKG_CONFIG environment variable"
25849 echo "*** to the full path to pkg-config."
25850 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25851 else
25852 PKG_CONFIG_MIN_VERSION=0.9.0
25853 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25854 echo "$as_me:$LINENO: checking for pangoxft" >&5
25855echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25856
25857 if $PKG_CONFIG --exists "pangoxft" ; then
25858 echo "$as_me:$LINENO: result: yes" >&5
25859echo "${ECHO_T}yes" >&6
25860 succeeded=yes
25861
25862 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25863echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25864 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25865 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25866echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25867
25868 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25869echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25870 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25871 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25872echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25873 else
25874 PANGOXFT_CFLAGS=""
25875 PANGOXFT_LIBS=""
25876 ## If we have a custom action on failure, don't print errors, but
25877 ## do set a variable so people can do so.
25878 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25879
25880 fi
25881
25882
25883
25884 else
25885 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25886 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25887 fi
25888 fi
25889
25890 if test $succeeded = yes; then
25891
25892 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25893 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25894
25895 else
25896
25897 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25898echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25899
25900
25901 fi
25902
304205f1
VS
25903 save_CFLAGS="$CFLAGS"
25904 save_LIBS="$LIBS"
25905 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25906 LIBS="$LIBS $PANGOX_LIBS"
25907
25908for ac_func in pango_font_family_is_monospace
25909do
25910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25911echo "$as_me:$LINENO: checking for $ac_func" >&5
25912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25913if eval "test \"\${$as_ac_var+set}\" = set"; then
25914 echo $ECHO_N "(cached) $ECHO_C" >&6
25915else
25916 cat >conftest.$ac_ext <<_ACEOF
25917/* confdefs.h. */
25918_ACEOF
25919cat confdefs.h >>conftest.$ac_ext
25920cat >>conftest.$ac_ext <<_ACEOF
25921/* end confdefs.h. */
25922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25924#define $ac_func innocuous_$ac_func
25925
25926/* System header to define __stub macros and hopefully few prototypes,
25927 which can conflict with char $ac_func (); below.
25928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25929 <limits.h> exists even on freestanding compilers. */
25930
25931#ifdef __STDC__
25932# include <limits.h>
25933#else
25934# include <assert.h>
25935#endif
25936
25937#undef $ac_func
25938
25939/* Override any gcc2 internal prototype to avoid an error. */
25940#ifdef __cplusplus
25941extern "C"
25942{
25943#endif
25944/* We use char because int might match the return type of a gcc2
25945 builtin and then its argument prototype would still apply. */
25946char $ac_func ();
25947/* The GNU C library defines this for functions which it implements
25948 to always fail with ENOSYS. Some functions are actually named
25949 something starting with __ and the normal name is an alias. */
25950#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25951choke me
25952#else
25953char (*f) () = $ac_func;
25954#endif
25955#ifdef __cplusplus
25956}
25957#endif
25958
25959int
25960main ()
25961{
25962return f != $ac_func;
25963 ;
25964 return 0;
25965}
25966_ACEOF
25967rm -f conftest.$ac_objext conftest$ac_exeext
25968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25969 (eval $ac_link) 2>conftest.er1
25970 ac_status=$?
25971 grep -v '^ *+' conftest.er1 >conftest.err
25972 rm -f conftest.er1
25973 cat conftest.err >&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); } &&
b48a2016
DE
25976 { ac_try='test -z "$ac_c_werror_flag"
25977 || test ! -s conftest.err'
304205f1
VS
25978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25979 (eval $ac_try) 2>&5
25980 ac_status=$?
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); }; } &&
25983 { ac_try='test -s conftest$ac_exeext'
25984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25985 (eval $ac_try) 2>&5
25986 ac_status=$?
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); }; }; then
25989 eval "$as_ac_var=yes"
25990else
25991 echo "$as_me: failed program was:" >&5
25992sed 's/^/| /' conftest.$ac_ext >&5
25993
25994eval "$as_ac_var=no"
25995fi
25996rm -f conftest.err conftest.$ac_objext \
25997 conftest$ac_exeext conftest.$ac_ext
25998fi
25999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26001if test `eval echo '${'$as_ac_var'}'` = yes; then
26002 cat >>confdefs.h <<_ACEOF
26003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26004_ACEOF
26005
26006fi
26007done
26008
26009 CFLAGS="$save_CFLAGS"
26010 LIBS="$save_LIBS"
a848cd7e
SC
26011 fi
26012
26013 wxUSE_UNIVERSAL="yes"
26014
26015 if test "$wxUSE_NANOX" = "yes"; then
26016 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26017 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"
26018 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26019 else
26020 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26021 fi
26022
a848cd7e
SC
26023 TOOLKIT=X11
26024 GUIDIST=X11_DIST
26025 fi
26026
26027 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26028 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26029echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26030
74b84332
VS
26031ac_find_includes=
26032for ac_dir in $SEARCH_INCLUDE /usr/include;
26033 do
26034 if test -f "$ac_dir/Xm/Xm.h"; then
26035 ac_find_includes=$ac_dir
26036 break
26037 fi
26038 done
a848cd7e 26039
74b84332
VS
26040 if test "$ac_find_includes" != "" ; then
26041 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26042echo "${ECHO_T}found in $ac_find_includes" >&6
26043
26044 if test "x$ac_find_includes" = "x/usr/include"; then
26045 ac_path_to_include=""
26046 else
26047 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26048 result=$?
26049 if test $result = 0; then
26050 ac_path_to_include=""
26051 else
26052 ac_path_to_include=" -I$ac_find_includes"
26053 fi
a848cd7e
SC
26054 fi
26055
74b84332
VS
26056 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26057 else
26058 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26059/* confdefs.h. */
26060_ACEOF
26061cat confdefs.h >>conftest.$ac_ext
26062cat >>conftest.$ac_ext <<_ACEOF
26063/* end confdefs.h. */
26064
74b84332
VS
26065 #include <Xm/Xm.h>
26066
a848cd7e
SC
26067int
26068main ()
26069{
26070
74b84332
VS
26071 int version;
26072 version = xmUseVersion;
26073
a848cd7e
SC
26074 ;
26075 return 0;
26076}
26077_ACEOF
74b84332
VS
26078rm -f conftest.$ac_objext
26079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26080 (eval $ac_compile) 2>conftest.er1
a848cd7e 26081 ac_status=$?
ac1cb8d3
VS
26082 grep -v '^ *+' conftest.er1 >conftest.err
26083 rm -f conftest.er1
26084 cat conftest.err >&5
a848cd7e
SC
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); } &&
b48a2016
DE
26087 { ac_try='test -z "$ac_c_werror_flag"
26088 || test ! -s conftest.err'
ac1cb8d3
VS
26089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26090 (eval $ac_try) 2>&5
26091 ac_status=$?
26092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093 (exit $ac_status); }; } &&
74b84332 26094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26096 (eval $ac_try) 2>&5
26097 ac_status=$?
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); }; }; then
74b84332
VS
26100
26101 echo "$as_me:$LINENO: result: found in default search path" >&5
26102echo "${ECHO_T}found in default search path" >&6
26103 COMPILED_X_PROGRAM=1
26104
a848cd7e
SC
26105else
26106 echo "$as_me: failed program was:" >&5
26107sed 's/^/| /' conftest.$ac_ext >&5
26108
a848cd7e 26109
74b84332
VS
26110 echo "$as_me:$LINENO: result: no" >&5
26111echo "${ECHO_T}no" >&6
26112 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26113echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26114 { (exit 1); exit 1; }; }
a848cd7e 26115
a848cd7e 26116
a848cd7e 26117fi
74b84332
VS
26118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26119 fi
26120
26121 if test "$COMPILED_X_PROGRAM" = 0; then
26122 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26123echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26124
26125ac_find_libraries=
26126for ac_dir in $SEARCH_LIB /usr/lib;
26127 do
26128 for ac_extension in a so sl dylib; do
26129 if test -f "$ac_dir/libXm.$ac_extension"; then
26130 ac_find_libraries=$ac_dir
26131 break 2
a848cd7e 26132 fi
74b84332
VS
26133 done
26134 done
a848cd7e 26135
74b84332
VS
26136 if test "$ac_find_libraries" != "" ; then
26137 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26138echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26139
74b84332
VS
26140
26141 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26142 result=$?
26143 if test $result = 0; then
26144 ac_path_to_link=""
a848cd7e 26145 else
74b84332
VS
26146 ac_path_to_link=" -L$ac_find_libraries"
26147 fi
26148
26149 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26150 else
26151 save_CFLAGS=$CFLAGS
26152 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26153
26154 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26155/* confdefs.h. */
26156_ACEOF
26157cat confdefs.h >>conftest.$ac_ext
26158cat >>conftest.$ac_ext <<_ACEOF
26159/* end confdefs.h. */
26160
74b84332
VS
26161 #include <Xm/Xm.h>
26162
a848cd7e
SC
26163int
26164main ()
26165{
74b84332
VS
26166
26167 int version;
26168 version = xmUseVersion;
26169
a848cd7e
SC
26170 ;
26171 return 0;
26172}
26173_ACEOF
74b84332
VS
26174rm -f conftest.$ac_objext
26175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26176 (eval $ac_compile) 2>conftest.er1
a848cd7e 26177 ac_status=$?
ac1cb8d3
VS
26178 grep -v '^ *+' conftest.er1 >conftest.err
26179 rm -f conftest.er1
26180 cat conftest.err >&5
a848cd7e
SC
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } &&
b48a2016
DE
26183 { ac_try='test -z "$ac_c_werror_flag"
26184 || test ! -s conftest.err'
ac1cb8d3
VS
26185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186 (eval $ac_try) 2>&5
26187 ac_status=$?
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); }; } &&
74b84332 26190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; }; then
74b84332
VS
26196
26197 echo "$as_me:$LINENO: result: found in default search path" >&5
26198echo "${ECHO_T}found in default search path" >&6
26199 COMPILED_X_PROGRAM=1
26200
a848cd7e
SC
26201else
26202 echo "$as_me: failed program was:" >&5
26203sed 's/^/| /' conftest.$ac_ext >&5
26204
74b84332
VS
26205
26206 echo "$as_me:$LINENO: result: no" >&5
26207echo "${ECHO_T}no" >&6
26208 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26209echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26210 { (exit 1); exit 1; }; }
26211
26212
26213fi
26214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26215
26216 CFLAGS=$save_CFLAGS
26217 fi
26218 fi
26219
26220 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26221echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26222 libp_link=""
26223 libsm_ice_link=""
26224 libs_found=0
26225 for libp in "" " -lXp"; do
26226 if test "$libs_found" = "0"; then
26227 for libsm_ice in "" " -lSM -lICE"; do
26228 if test "$libs_found" = "0"; then
26229 save_LIBS="$LIBS"
26230 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26231 save_CFLAGS=$CFLAGS
26232 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26233
26234 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26235/* confdefs.h. */
26236_ACEOF
26237cat confdefs.h >>conftest.$ac_ext
26238cat >>conftest.$ac_ext <<_ACEOF
26239/* end confdefs.h. */
26240
74b84332
VS
26241 #include <Xm/Xm.h>
26242 #include <Xm/List.h>
26243
a848cd7e
SC
26244int
26245main ()
26246{
74b84332
VS
26247
26248 XmString string = NULL;
26249 Widget w = NULL;
26250 int position = 0;
26251 XmListAddItem(w, string, position);
26252
a848cd7e
SC
26253 ;
26254 return 0;
26255}
26256_ACEOF
26257rm -f conftest.$ac_objext conftest$ac_exeext
26258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26259 (eval $ac_link) 2>conftest.er1
a848cd7e 26260 ac_status=$?
ac1cb8d3
VS
26261 grep -v '^ *+' conftest.er1 >conftest.err
26262 rm -f conftest.er1
26263 cat conftest.err >&5
a848cd7e
SC
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); } &&
b48a2016
DE
26266 { ac_try='test -z "$ac_c_werror_flag"
26267 || test ! -s conftest.err'
ac1cb8d3
VS
26268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26269 (eval $ac_try) 2>&5
26270 ac_status=$?
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); }; } &&
26273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26275 (eval $ac_try) 2>&5
26276 ac_status=$?
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); }; }; then
26279
26280 libp_link="$libp"
26281 libsm_ice_link="$libsm_ice"
26282 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26283echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26284 libs_found=1
26285
26286else
26287 echo "$as_me: failed program was:" >&5
26288sed 's/^/| /' conftest.$ac_ext >&5
26289
26290
26291
26292fi
ac1cb8d3
VS
26293rm -f conftest.err conftest.$ac_objext \
26294 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26295
26296 LIBS="$save_LIBS"
26297 CFLAGS=$save_CFLAGS
26298 fi
26299 done
26300 fi
26301 done
26302
26303 if test "$libs_found" = "0"; then
26304 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26305echo "${ECHO_T}can't find the right libraries" >&6
26306 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26307echo "$as_me: error: can't link a simple motif program" >&2;}
26308 { (exit 1); exit 1; }; }
26309 fi
26310
26311 save_CFLAGS=$CFLAGS
26312 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26313 echo "$as_me:$LINENO: checking for Motif 2" >&5
26314echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26315 cat >conftest.$ac_ext <<_ACEOF
26316/* confdefs.h. */
26317_ACEOF
26318cat confdefs.h >>conftest.$ac_ext
26319cat >>conftest.$ac_ext <<_ACEOF
26320/* end confdefs.h. */
26321
26322 #include <Xm/Xm.h>
26323
26324int
26325main ()
26326{
26327
26328 #if XmVersion < 2000
26329 #error "Not Motif 2"
26330 #endif
26331
26332 ;
26333 return 0;
26334}
26335_ACEOF
26336rm -f conftest.$ac_objext
26337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26338 (eval $ac_compile) 2>conftest.er1
a848cd7e 26339 ac_status=$?
ac1cb8d3
VS
26340 grep -v '^ *+' conftest.er1 >conftest.err
26341 rm -f conftest.er1
26342 cat conftest.err >&5
a848cd7e
SC
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } &&
b48a2016
DE
26345 { ac_try='test -z "$ac_c_werror_flag"
26346 || test ! -s conftest.err'
ac1cb8d3
VS
26347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26349 ac_status=$?
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); }; } &&
26352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354 (eval $ac_try) 2>&5
26355 ac_status=$?
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); }; }; then
26358
26359 cat >>confdefs.h <<\_ACEOF
26360#define __WXMOTIF20__ 1
26361_ACEOF
26362
26363 echo "$as_me:$LINENO: result: found" >&5
26364echo "${ECHO_T}found" >&6
26365
26366else
26367 echo "$as_me: failed program was:" >&5
26368sed 's/^/| /' conftest.$ac_ext >&5
26369
26370
26371 cat >>confdefs.h <<\_ACEOF
26372#define __WXMOTIF20__ 0
26373_ACEOF
26374
26375 echo "$as_me:$LINENO: result: not found" >&5
26376echo "${ECHO_T}not found" >&6
26377
26378fi
ac1cb8d3 26379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26380 CFLAGS=$save_CFLAGS
26381
26382 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26383 TOOLKIT=MOTIF
26384 GUIDIST=MOTIF_DIST
26385 fi
26386
74b84332 26387 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26388 if test "$wxUSE_LIBXPM" = "sys"; then
26389 echo "$as_me:$LINENO: checking for Xpm library" >&5
26390echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26391
26392ac_find_libraries=
26393for ac_dir in $SEARCH_LIB /usr/lib;
26394 do
26395 for ac_extension in a so sl dylib; do
26396 if test -f "$ac_dir/libXpm.$ac_extension"; then
26397 ac_find_libraries=$ac_dir
26398 break 2
26399 fi
26400 done
26401 done
26402
26403 if test "$ac_find_libraries" != "" ; then
26404
26405 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26406 result=$?
26407 if test $result = 0; then
26408 ac_path_to_link=""
26409 else
26410 ac_path_to_link=" -L$ac_find_libraries"
26411 fi
26412
26413 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26414 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26415echo "${ECHO_T}found at $ac_find_libraries" >&6
26416
26417 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26418echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26419if test "${wx_cv_x11_xpm_h+set}" = set; then
26420 echo $ECHO_N "(cached) $ECHO_C" >&6
26421else
26422
26423 save_CFLAGS=$CFLAGS
26424 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26425
26426 cat >conftest.$ac_ext <<_ACEOF
26427/* confdefs.h. */
26428_ACEOF
26429cat confdefs.h >>conftest.$ac_ext
26430cat >>conftest.$ac_ext <<_ACEOF
26431/* end confdefs.h. */
26432
26433 #include <X11/xpm.h>
26434
26435int
26436main ()
26437{
26438
26439 int version;
26440 version = XpmLibraryVersion();
26441
26442 ;
26443 return 0;
26444}
26445_ACEOF
26446rm -f conftest.$ac_objext
26447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26448 (eval $ac_compile) 2>conftest.er1
a848cd7e 26449 ac_status=$?
ac1cb8d3
VS
26450 grep -v '^ *+' conftest.er1 >conftest.err
26451 rm -f conftest.er1
26452 cat conftest.err >&5
a848cd7e
SC
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); } &&
b48a2016
DE
26455 { ac_try='test -z "$ac_c_werror_flag"
26456 || test ! -s conftest.err'
ac1cb8d3
VS
26457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26458 (eval $ac_try) 2>&5
26459 ac_status=$?
26460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461 (exit $ac_status); }; } &&
26462 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26464 (eval $ac_try) 2>&5
26465 ac_status=$?
26466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467 (exit $ac_status); }; }; then
26468 wx_cv_x11_xpm_h=yes
26469else
26470 echo "$as_me: failed program was:" >&5
26471sed 's/^/| /' conftest.$ac_ext >&5
26472
26473wx_cv_x11_xpm_h=no
26474
26475fi
ac1cb8d3 26476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26477
26478 CFLAGS=$save_CFLAGS
26479
26480
26481fi
26482echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26483echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26484
26485 if test $wx_cv_x11_xpm_h = "yes"; then
26486 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26487 cat >>confdefs.h <<\_ACEOF
26488#define wxHAVE_LIB_XPM 1
26489_ACEOF
26490
26491 else
26492 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26493echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26494 fi
26495 fi
26496
26497 fi
26498
26499 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26500echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26501if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26502 echo $ECHO_N "(cached) $ECHO_C" >&6
26503else
26504 ac_check_lib_save_LIBS=$LIBS
26505LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26506cat >conftest.$ac_ext <<_ACEOF
26507/* confdefs.h. */
26508_ACEOF
26509cat confdefs.h >>conftest.$ac_ext
26510cat >>conftest.$ac_ext <<_ACEOF
26511/* end confdefs.h. */
26512
26513/* Override any gcc2 internal prototype to avoid an error. */
26514#ifdef __cplusplus
26515extern "C"
26516#endif
26517/* We use char because int might match the return type of a gcc2
26518 builtin and then its argument prototype would still apply. */
26519char XShapeQueryExtension ();
26520int
26521main ()
26522{
26523XShapeQueryExtension ();
26524 ;
26525 return 0;
26526}
26527_ACEOF
26528rm -f conftest.$ac_objext conftest$ac_exeext
26529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26530 (eval $ac_link) 2>conftest.er1
a848cd7e 26531 ac_status=$?
ac1cb8d3
VS
26532 grep -v '^ *+' conftest.er1 >conftest.err
26533 rm -f conftest.er1
26534 cat conftest.err >&5
a848cd7e
SC
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } &&
b48a2016
DE
26537 { ac_try='test -z "$ac_c_werror_flag"
26538 || test ! -s conftest.err'
ac1cb8d3
VS
26539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26540 (eval $ac_try) 2>&5
26541 ac_status=$?
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); }; } &&
26544 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546 (eval $ac_try) 2>&5
26547 ac_status=$?
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); }; }; then
26550 ac_cv_lib_Xext_XShapeQueryExtension=yes
26551else
26552 echo "$as_me: failed program was:" >&5
26553sed 's/^/| /' conftest.$ac_ext >&5
26554
26555ac_cv_lib_Xext_XShapeQueryExtension=no
26556fi
ac1cb8d3
VS
26557rm -f conftest.err conftest.$ac_objext \
26558 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26559LIBS=$ac_check_lib_save_LIBS
26560fi
26561echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26562echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26563if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26564
26565 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26566 wxHAVE_XEXT_LIB=1
26567
26568fi
26569
26570
26571 if test "$wxHAVE_XEXT_LIB" = 1; then
26572 save_CFLAGS="$CFLAGS"
26573 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26574
26575 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26576echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26577 cat >conftest.$ac_ext <<_ACEOF
26578/* confdefs.h. */
26579_ACEOF
26580cat confdefs.h >>conftest.$ac_ext
26581cat >>conftest.$ac_ext <<_ACEOF
26582/* end confdefs.h. */
26583
26584 #include <X11/Xlib.h>
26585 #include <X11/extensions/shape.h>
26586
26587int
26588main ()
26589{
26590
26591 int dummy1, dummy2;
26592 XShapeQueryExtension((Display*)NULL,
26593 (int*)NULL, (int*)NULL);
26594
26595 ;
26596 return 0;
26597}
26598_ACEOF
26599rm -f conftest.$ac_objext
26600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26601 (eval $ac_compile) 2>conftest.er1
a848cd7e 26602 ac_status=$?
ac1cb8d3
VS
26603 grep -v '^ *+' conftest.er1 >conftest.err
26604 rm -f conftest.er1
26605 cat conftest.err >&5
a848cd7e
SC
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); } &&
b48a2016
DE
26608 { ac_try='test -z "$ac_c_werror_flag"
26609 || test ! -s conftest.err'
ac1cb8d3
VS
26610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611 (eval $ac_try) 2>&5
26612 ac_status=$?
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); }; } &&
26615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617 (eval $ac_try) 2>&5
26618 ac_status=$?
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); }; }; then
26621
26622 cat >>confdefs.h <<\_ACEOF
26623#define HAVE_XSHAPE 1
26624_ACEOF
26625
26626 echo "$as_me:$LINENO: result: found" >&5
26627echo "${ECHO_T}found" >&6
26628
26629else
26630 echo "$as_me: failed program was:" >&5
26631sed 's/^/| /' conftest.$ac_ext >&5
26632
26633
26634 echo "$as_me:$LINENO: result: not found" >&5
26635echo "${ECHO_T}not found" >&6
26636
26637fi
ac1cb8d3 26638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26639 CFLAGS="$save_CFLAGS"
26640
26641 fi
26642 fi
26643
26644 if test "$wxUSE_MAC" = 1; then
26645 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26646echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26647 if test "$GCC" = yes; then
26648 echo "$as_me:$LINENO: result: gcc" >&5
26649echo "${ECHO_T}gcc" >&6
26650 CPPFLAGS_PASCAL="-fpascal-strings"
26651 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26652 echo "$as_me:$LINENO: result: xlc" >&5
26653echo "${ECHO_T}xlc" >&6
26654 CPPFLAGS_PASCAL="-qmacpstr"
26655 else
26656 echo "$as_me:$LINENO: result: none" >&5
26657echo "${ECHO_T}none" >&6
26658 fi
26659
26660 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26661
a848cd7e
SC
26662 TOOLKIT=MAC
26663 GUIDIST=MACX_DIST
dd21ced8 26664 WXBASEPORT="_carbon"
a848cd7e
SC
26665 fi
26666
26667 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26668 TOOLKIT=COCOA
26669 GUIDIST=COCOA_DIST
26670 fi
26671
26672 if test "$wxUSE_PM" = 1; then
26673 TOOLKIT=PM
de59c161
RD
26674 GUIDIST=PM_DIST
26675 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26676echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26677if test "${wx_cv_spbcdata+set}" = set; then
26678 echo $ECHO_N "(cached) $ECHO_C" >&6
26679else
26680
26681 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26682/* confdefs.h. */
26683_ACEOF
26684cat confdefs.h >>conftest.$ac_ext
26685cat >>conftest.$ac_ext <<_ACEOF
26686/* end confdefs.h. */
26687
26688 #define INCL_PM
26689 #include <os2.h>
26690
26691int
26692main ()
26693{
26694
26695 SPBCDATA test;
26696
26697 ;
26698 return 0;
26699}
26700_ACEOF
26701rm -f conftest.$ac_objext
26702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26703 (eval $ac_compile) 2>conftest.er1
de59c161 26704 ac_status=$?
ac1cb8d3
VS
26705 grep -v '^ *+' conftest.er1 >conftest.err
26706 rm -f conftest.er1
26707 cat conftest.err >&5
de59c161
RD
26708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709 (exit $ac_status); } &&
b48a2016
DE
26710 { ac_try='test -z "$ac_c_werror_flag"
26711 || test ! -s conftest.err'
ac1cb8d3
VS
26712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); }; } &&
26717 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26720 ac_status=$?
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; }; then
26723 wx_cv_spbcdata=yes
26724else
26725 echo "$as_me: failed program was:" >&5
26726sed 's/^/| /' conftest.$ac_ext >&5
26727
26728wx_cv_spbcdata=no
26729
26730fi
ac1cb8d3 26731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26732
26733
26734fi
26735echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26736echo "${ECHO_T}$wx_cv_spbcdata" >&6
26737
26738 if test $wx_cv_spbcdata = "yes"; then
26739 cat >>confdefs.h <<\_ACEOF
26740#define HAVE_SPBCDATA 1
26741_ACEOF
26742
26743 fi
a848cd7e
SC
26744 fi
26745
26746 if test "$TOOLKIT" = "PM" ; then
26747 TOOLKIT_DIR="os2"
26748 else
26749 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26750 fi
26751
a848cd7e 26752 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26753 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26754 WIDGET_SET=univ
a848cd7e
SC
26755 fi
26756
26757 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26758 DISTDIR="wx\$(TOOLKIT)"
26759else
26760 USE_GUI=0
26761
26762 TOOLKIT_DIR="base"
26763
26764 if test "$USE_WIN32" = 1 ; then
a848cd7e 26765 TOOLKIT="MSW"
a848cd7e
SC
26766 fi
26767
a848cd7e
SC
26768 GUIDIST="BASE_DIST"
26769 DISTDIR="wxBase"
26770fi
26771
26772
26773
26774
26775IODBC_C_SRC=""
26776
26777
26778if test "$TOOLKIT" != "MSW" ; then
26779
26780 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26781
26782 if test "${ac_cv_header_sql_h+set}" = set; then
26783 echo "$as_me:$LINENO: checking for sql.h" >&5
26784echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26785if test "${ac_cv_header_sql_h+set}" = set; then
26786 echo $ECHO_N "(cached) $ECHO_C" >&6
26787fi
26788echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26789echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26790else
26791 # Is the header compilable?
26792echo "$as_me:$LINENO: checking sql.h usability" >&5
26793echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26794cat >conftest.$ac_ext <<_ACEOF
26795/* confdefs.h. */
26796_ACEOF
26797cat confdefs.h >>conftest.$ac_ext
26798cat >>conftest.$ac_ext <<_ACEOF
26799/* end confdefs.h. */
26800$ac_includes_default
26801#include <sql.h>
26802_ACEOF
26803rm -f conftest.$ac_objext
26804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26805 (eval $ac_compile) 2>conftest.er1
a848cd7e 26806 ac_status=$?
ac1cb8d3
VS
26807 grep -v '^ *+' conftest.er1 >conftest.err
26808 rm -f conftest.er1
26809 cat conftest.err >&5
a848cd7e
SC
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); } &&
b48a2016
DE
26812 { ac_try='test -z "$ac_c_werror_flag"
26813 || test ! -s conftest.err'
ac1cb8d3
VS
26814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26815 (eval $ac_try) 2>&5
26816 ac_status=$?
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); }; } &&
26819 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26821 (eval $ac_try) 2>&5
26822 ac_status=$?
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); }; }; then
26825 ac_header_compiler=yes
26826else
26827 echo "$as_me: failed program was:" >&5
26828sed 's/^/| /' conftest.$ac_ext >&5
26829
26830ac_header_compiler=no
26831fi
ac1cb8d3 26832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26833echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26834echo "${ECHO_T}$ac_header_compiler" >&6
26835
26836# Is the header present?
26837echo "$as_me:$LINENO: checking sql.h presence" >&5
26838echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26839cat >conftest.$ac_ext <<_ACEOF
26840/* confdefs.h. */
26841_ACEOF
26842cat confdefs.h >>conftest.$ac_ext
26843cat >>conftest.$ac_ext <<_ACEOF
26844/* end confdefs.h. */
26845#include <sql.h>
26846_ACEOF
26847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26849 ac_status=$?
26850 grep -v '^ *+' conftest.er1 >conftest.err
26851 rm -f conftest.er1
26852 cat conftest.err >&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); } >/dev/null; then
26855 if test -s conftest.err; then
26856 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26858 else
26859 ac_cpp_err=
26860 fi
26861else
26862 ac_cpp_err=yes
26863fi
26864if test -z "$ac_cpp_err"; then
26865 ac_header_preproc=yes
26866else
26867 echo "$as_me: failed program was:" >&5
26868sed 's/^/| /' conftest.$ac_ext >&5
26869
26870 ac_header_preproc=no
26871fi
26872rm -f conftest.err conftest.$ac_ext
26873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26874echo "${ECHO_T}$ac_header_preproc" >&6
26875
26876# So? What about this header?
ac1cb8d3
VS
26877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26878 yes:no: )
a848cd7e
SC
26879 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26880echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26881 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26882echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26883 ac_header_preproc=yes
a848cd7e 26884 ;;
ac1cb8d3 26885 no:yes:* )
a848cd7e
SC
26886 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26887echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26888 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26889echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26890 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26891echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26892 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26893echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26894 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26895echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26896 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26897echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26898 (
26899 cat <<\_ASBOX
ac1cb8d3
VS
26900## ----------------------------------------- ##
26901## Report this to wx-dev@lists.wxwidgets.org ##
26902## ----------------------------------------- ##
a848cd7e
SC
26903_ASBOX
26904 ) |
26905 sed "s/^/$as_me: WARNING: /" >&2
26906 ;;
26907esac
26908echo "$as_me:$LINENO: checking for sql.h" >&5
26909echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26910if test "${ac_cv_header_sql_h+set}" = set; then
26911 echo $ECHO_N "(cached) $ECHO_C" >&6
26912else
26913 ac_cv_header_sql_h=$ac_header_preproc
26914fi
26915echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26916echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26917
26918fi
26919if test $ac_cv_header_sql_h = yes; then
26920 found_sql_h=1
26921fi
26922
26923
26924 if test "x$found_sql_h" = "x1" ; then
26925 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26926echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26927if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26928 echo $ECHO_N "(cached) $ECHO_C" >&6
26929else
26930 ac_check_lib_save_LIBS=$LIBS
26931LIBS="-liodbc $LIBS"
26932cat >conftest.$ac_ext <<_ACEOF
26933/* confdefs.h. */
26934_ACEOF
26935cat confdefs.h >>conftest.$ac_ext
26936cat >>conftest.$ac_ext <<_ACEOF
26937/* end confdefs.h. */
26938
26939/* Override any gcc2 internal prototype to avoid an error. */
26940#ifdef __cplusplus
26941extern "C"
26942#endif
26943/* We use char because int might match the return type of a gcc2
26944 builtin and then its argument prototype would still apply. */
26945char SQLAllocEnv ();
26946int
26947main ()
26948{
26949SQLAllocEnv ();
26950 ;
26951 return 0;
26952}
26953_ACEOF
26954rm -f conftest.$ac_objext conftest$ac_exeext
26955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26956 (eval $ac_link) 2>conftest.er1
a848cd7e 26957 ac_status=$?
ac1cb8d3
VS
26958 grep -v '^ *+' conftest.er1 >conftest.err
26959 rm -f conftest.er1
26960 cat conftest.err >&5
a848cd7e
SC
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); } &&
b48a2016
DE
26963 { ac_try='test -z "$ac_c_werror_flag"
26964 || test ! -s conftest.err'
ac1cb8d3
VS
26965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26966 (eval $ac_try) 2>&5
26967 ac_status=$?
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); }; } &&
26970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26972 (eval $ac_try) 2>&5
26973 ac_status=$?
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); }; }; then
26976 ac_cv_lib_iodbc_SQLAllocEnv=yes
26977else
26978 echo "$as_me: failed program was:" >&5
26979sed 's/^/| /' conftest.$ac_ext >&5
26980
26981ac_cv_lib_iodbc_SQLAllocEnv=no
26982fi
ac1cb8d3
VS
26983rm -f conftest.err conftest.$ac_objext \
26984 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26985LIBS=$ac_check_lib_save_LIBS
26986fi
26987echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26988echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26989if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26990 ODBC_LINK=" -liodbc"
26991else
26992
26993 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26994echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26995if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26997else
26998 ac_check_lib_save_LIBS=$LIBS
26999LIBS="-lunixodbc $LIBS"
27000cat >conftest.$ac_ext <<_ACEOF
27001/* confdefs.h. */
27002_ACEOF
27003cat confdefs.h >>conftest.$ac_ext
27004cat >>conftest.$ac_ext <<_ACEOF
27005/* end confdefs.h. */
27006
27007/* Override any gcc2 internal prototype to avoid an error. */
27008#ifdef __cplusplus
27009extern "C"
27010#endif
27011/* We use char because int might match the return type of a gcc2
27012 builtin and then its argument prototype would still apply. */
27013char SQLAllocEnv ();
27014int
27015main ()
27016{
27017SQLAllocEnv ();
27018 ;
27019 return 0;
27020}
27021_ACEOF
27022rm -f conftest.$ac_objext conftest$ac_exeext
27023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27024 (eval $ac_link) 2>conftest.er1
a848cd7e 27025 ac_status=$?
ac1cb8d3
VS
27026 grep -v '^ *+' conftest.er1 >conftest.err
27027 rm -f conftest.er1
27028 cat conftest.err >&5
a848cd7e
SC
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } &&
b48a2016
DE
27031 { ac_try='test -z "$ac_c_werror_flag"
27032 || test ! -s conftest.err'
ac1cb8d3
VS
27033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034 (eval $ac_try) 2>&5
27035 ac_status=$?
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; } &&
27038 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040 (eval $ac_try) 2>&5
27041 ac_status=$?
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; }; then
27044 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27045else
27046 echo "$as_me: failed program was:" >&5
27047sed 's/^/| /' conftest.$ac_ext >&5
27048
27049ac_cv_lib_unixodbc_SQLAllocEnv=no
27050fi
ac1cb8d3
VS
27051rm -f conftest.err conftest.$ac_objext \
27052 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27053LIBS=$ac_check_lib_save_LIBS
27054fi
27055echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27056echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27057if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27058 ODBC_LINK=" -lunixodbc"
27059else
27060
27061 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27062echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27063if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27064 echo $ECHO_N "(cached) $ECHO_C" >&6
27065else
27066 ac_check_lib_save_LIBS=$LIBS
27067LIBS="-lodbc $LIBS"
27068cat >conftest.$ac_ext <<_ACEOF
27069/* confdefs.h. */
27070_ACEOF
27071cat confdefs.h >>conftest.$ac_ext
27072cat >>conftest.$ac_ext <<_ACEOF
27073/* end confdefs.h. */
27074
27075/* Override any gcc2 internal prototype to avoid an error. */
27076#ifdef __cplusplus
27077extern "C"
27078#endif
27079/* We use char because int might match the return type of a gcc2
27080 builtin and then its argument prototype would still apply. */
27081char SQLAllocEnv ();
27082int
27083main ()
27084{
27085SQLAllocEnv ();
27086 ;
27087 return 0;
27088}
27089_ACEOF
27090rm -f conftest.$ac_objext conftest$ac_exeext
27091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27092 (eval $ac_link) 2>conftest.er1
a848cd7e 27093 ac_status=$?
ac1cb8d3
VS
27094 grep -v '^ *+' conftest.er1 >conftest.err
27095 rm -f conftest.er1
27096 cat conftest.err >&5
a848cd7e
SC
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); } &&
b48a2016
DE
27099 { ac_try='test -z "$ac_c_werror_flag"
27100 || test ! -s conftest.err'
ac1cb8d3
VS
27101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102 (eval $ac_try) 2>&5
27103 ac_status=$?
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); }; } &&
27106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27108 (eval $ac_try) 2>&5
27109 ac_status=$?
27110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); }; }; then
27112 ac_cv_lib_odbc_SQLAllocEnv=yes
27113else
27114 echo "$as_me: failed program was:" >&5
27115sed 's/^/| /' conftest.$ac_ext >&5
27116
27117ac_cv_lib_odbc_SQLAllocEnv=no
27118fi
ac1cb8d3
VS
27119rm -f conftest.err conftest.$ac_objext \
27120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27121LIBS=$ac_check_lib_save_LIBS
27122fi
27123echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27124echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27125if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27126 ODBC_LINK=" -lodbc"
27127fi
27128
27129
27130fi
27131
27132
27133fi
27134
27135 fi
27136 if test "x$ODBC_LINK" = "x" ; then
27137 if test "$wxUSE_ODBC" = "sys" ; then
27138 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27139echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27140 { (exit 1); exit 1; }; }
27141 else
27142 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27143echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27144 wxUSE_ODBC=builtin
27145 fi
27146 else
27147 wxUSE_ODBC=sys
27148 fi
27149 fi
27150 if test "$wxUSE_ODBC" != "no" ; then
27151 cat >>confdefs.h <<\_ACEOF
27152#define wxUSE_ODBC 1
27153_ACEOF
27154
27155 if test "$wxUSE_ODBC" = "builtin" ; then
27156 cat >>confdefs.h <<\_ACEOF
27157#define wxUSE_BUILTIN_IODBC 1
27158_ACEOF
27159
27160 fi
27161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27162
27163 WXODBCFLAG="-D_IODBC_"
27164 fi
27165fi
27166
a848cd7e 27167
01cb68df 27168
a848cd7e 27169if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27170 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27171 echo "$as_me:$LINENO: checking for Xinerama" >&5
27172echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27173
27174ac_find_libraries=
27175for ac_dir in $SEARCH_LIB /usr/lib;
27176 do
27177 for ac_extension in a so sl dylib; do
27178 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27179 ac_find_libraries=$ac_dir
27180 break 2
27181 fi
27182 done
27183 done
27184
27185 if test "$ac_find_libraries" != "" ; then
27186
27187 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27188 result=$?
27189 if test $result = 0; then
27190 ac_path_to_link=""
27191 else
27192 ac_path_to_link=" -L$ac_find_libraries"
27193 fi
27194
27195 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27196 LDFLAGS="$LDFLAGS $ac_path_to_link"
27197 fi
27198 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27199 echo "$as_me:$LINENO: result: yes" >&5
27200echo "${ECHO_T}yes" >&6
27201
27202 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27203echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27204
27205ac_find_libraries=
27206for ac_dir in $SEARCH_LIB /usr/lib;
27207 do
27208 for ac_extension in a so sl dylib; do
27209 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27210 ac_find_libraries=$ac_dir
27211 break 2
27212 fi
27213 done
27214 done
27215
27216 if test "$ac_find_libraries" != "" ; then
27217 echo "$as_me:$LINENO: result: yes" >&5
27218echo "${ECHO_T}yes" >&6
27219
27220for ac_header in X11/extensions/xf86vmode.h
27221do
27222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27223echo "$as_me:$LINENO: checking for $ac_header" >&5
27224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27225if eval "test \"\${$as_ac_Header+set}\" = set"; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27227else
27228 cat >conftest.$ac_ext <<_ACEOF
27229/* confdefs.h. */
27230_ACEOF
27231cat confdefs.h >>conftest.$ac_ext
27232cat >>conftest.$ac_ext <<_ACEOF
27233/* end confdefs.h. */
27234
27235 #if HAVE_X11_XLIB_H
27236 #include <X11/Xlib.h>
27237 #endif
27238
27239
27240#include <$ac_header>
27241_ACEOF
27242rm -f conftest.$ac_objext
27243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27244 (eval $ac_compile) 2>conftest.er1
a848cd7e 27245 ac_status=$?
ac1cb8d3
VS
27246 grep -v '^ *+' conftest.er1 >conftest.err
27247 rm -f conftest.er1
27248 cat conftest.err >&5
a848cd7e
SC
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); } &&
b48a2016
DE
27251 { ac_try='test -z "$ac_c_werror_flag"
27252 || test ! -s conftest.err'
ac1cb8d3
VS
27253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254 (eval $ac_try) 2>&5
27255 ac_status=$?
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; } &&
27258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27261 ac_status=$?
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; }; then
27264 eval "$as_ac_Header=yes"
27265else
27266 echo "$as_me: failed program was:" >&5
27267sed 's/^/| /' conftest.$ac_ext >&5
27268
27269eval "$as_ac_Header=no"
27270fi
ac1cb8d3 27271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27272fi
27273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27275if test `eval echo '${'$as_ac_Header'}'` = yes; then
27276 cat >>confdefs.h <<_ACEOF
27277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27278_ACEOF
27279
27280 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27281
27282fi
27283
27284done
27285
27286 else
27287 echo "$as_me:$LINENO: result: no" >&5
27288echo "${ECHO_T}no" >&6
27289 fi
27290
27291 else
27292 echo "$as_me:$LINENO: result: no" >&5
27293echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27294 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27295echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27296 wxUSE_DISPLAY="no"
27297 fi
01cb68df
RG
27298 elif test "$wxUSE_MSW" = 1; then
27299
27300
27301for ac_header in multimon.h ddraw.h
27302do
27303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27304if eval "test \"\${$as_ac_Header+set}\" = set"; then
27305 echo "$as_me:$LINENO: checking for $ac_header" >&5
27306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27307if eval "test \"\${$as_ac_Header+set}\" = set"; then
27308 echo $ECHO_N "(cached) $ECHO_C" >&6
27309fi
27310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27312else
27313 # Is the header compilable?
27314echo "$as_me:$LINENO: checking $ac_header usability" >&5
27315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27316cat >conftest.$ac_ext <<_ACEOF
27317/* confdefs.h. */
27318_ACEOF
27319cat confdefs.h >>conftest.$ac_ext
27320cat >>conftest.$ac_ext <<_ACEOF
27321/* end confdefs.h. */
27322$ac_includes_default
27323#include <$ac_header>
27324_ACEOF
27325rm -f conftest.$ac_objext
27326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27327 (eval $ac_compile) 2>conftest.er1
01cb68df 27328 ac_status=$?
ac1cb8d3
VS
27329 grep -v '^ *+' conftest.er1 >conftest.err
27330 rm -f conftest.er1
27331 cat conftest.err >&5
01cb68df
RG
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); } &&
b48a2016
DE
27334 { ac_try='test -z "$ac_c_werror_flag"
27335 || test ! -s conftest.err'
ac1cb8d3
VS
27336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27337 (eval $ac_try) 2>&5
27338 ac_status=$?
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); }; } &&
27341 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343 (eval $ac_try) 2>&5
27344 ac_status=$?
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); }; }; then
27347 ac_header_compiler=yes
27348else
27349 echo "$as_me: failed program was:" >&5
27350sed 's/^/| /' conftest.$ac_ext >&5
27351
27352ac_header_compiler=no
27353fi
ac1cb8d3 27354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27356echo "${ECHO_T}$ac_header_compiler" >&6
27357
27358# Is the header present?
27359echo "$as_me:$LINENO: checking $ac_header presence" >&5
27360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27361cat >conftest.$ac_ext <<_ACEOF
27362/* confdefs.h. */
27363_ACEOF
27364cat confdefs.h >>conftest.$ac_ext
27365cat >>conftest.$ac_ext <<_ACEOF
27366/* end confdefs.h. */
27367#include <$ac_header>
27368_ACEOF
27369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27371 ac_status=$?
27372 grep -v '^ *+' conftest.er1 >conftest.err
27373 rm -f conftest.er1
27374 cat conftest.err >&5
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); } >/dev/null; then
27377 if test -s conftest.err; then
27378 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27380 else
27381 ac_cpp_err=
27382 fi
27383else
27384 ac_cpp_err=yes
27385fi
27386if test -z "$ac_cpp_err"; then
27387 ac_header_preproc=yes
27388else
27389 echo "$as_me: failed program was:" >&5
27390sed 's/^/| /' conftest.$ac_ext >&5
27391
27392 ac_header_preproc=no
27393fi
27394rm -f conftest.err conftest.$ac_ext
27395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27396echo "${ECHO_T}$ac_header_preproc" >&6
27397
27398# So? What about this header?
ac1cb8d3
VS
27399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27400 yes:no: )
01cb68df
RG
27401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27405 ac_header_preproc=yes
01cb68df 27406 ;;
ac1cb8d3 27407 no:yes:* )
01cb68df
RG
27408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27411echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27415echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27420 (
27421 cat <<\_ASBOX
ac1cb8d3
VS
27422## ----------------------------------------- ##
27423## Report this to wx-dev@lists.wxwidgets.org ##
27424## ----------------------------------------- ##
01cb68df
RG
27425_ASBOX
27426 ) |
27427 sed "s/^/$as_me: WARNING: /" >&2
27428 ;;
27429esac
27430echo "$as_me:$LINENO: checking for $ac_header" >&5
27431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27432if eval "test \"\${$as_ac_Header+set}\" = set"; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27434else
ac1cb8d3 27435 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27436fi
27437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27439
27440fi
27441if test `eval echo '${'$as_ac_Header'}'` = yes; then
27442 cat >>confdefs.h <<_ACEOF
27443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27444_ACEOF
27445
27446else
27447
27448 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27449 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27450echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27451
27452fi
27453
27454done
27455
a848cd7e
SC
27456 fi
27457fi
27458
27459
27460USE_OPENGL=0
27461if test "$wxUSE_OPENGL" = "yes"; then
27462 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27463 OPENGL_LIBS="-framework OpenGL -framework AGL"
27464 elif test "$wxUSE_MSW" = 1; then
27465 OPENGL_LIBS="-lopengl32 -lglu32"
27466 else
27467
27468
27469ac_find_includes=
27470for ac_dir in $SEARCH_INCLUDE /usr/include;
27471 do
27472 if test -f "$ac_dir/GL/gl.h"; then
27473 ac_find_includes=$ac_dir
27474 break
27475 fi
27476 done
27477
27478 if test "$ac_find_includes" != "" ; then
27479 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27480echo "${ECHO_T}found in $ac_find_includes" >&6
27481
27482 if test "x$ac_find_includes" = "x/usr/include"; then
27483 ac_path_to_include=""
27484 else
27485 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27486 result=$?
27487 if test $result = 0; then
27488 ac_path_to_include=""
27489 else
27490 ac_path_to_include=" -I$ac_find_includes"
27491 fi
27492 fi
27493
27494 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27495 fi
27496
27497 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27498 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27499echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27500if test "${ac_cv_header_GL_gl_h+set}" = set; then
27501 echo $ECHO_N "(cached) $ECHO_C" >&6
27502fi
27503echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27504echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27505else
27506 # Is the header compilable?
27507echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27508echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27509cat >conftest.$ac_ext <<_ACEOF
27510/* confdefs.h. */
27511_ACEOF
27512cat confdefs.h >>conftest.$ac_ext
27513cat >>conftest.$ac_ext <<_ACEOF
27514/* end confdefs.h. */
27515$ac_includes_default
27516#include <GL/gl.h>
27517_ACEOF
27518rm -f conftest.$ac_objext
27519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27520 (eval $ac_compile) 2>conftest.er1
a848cd7e 27521 ac_status=$?
ac1cb8d3
VS
27522 grep -v '^ *+' conftest.er1 >conftest.err
27523 rm -f conftest.er1
27524 cat conftest.err >&5
a848cd7e
SC
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); } &&
b48a2016
DE
27527 { ac_try='test -z "$ac_c_werror_flag"
27528 || test ! -s conftest.err'
ac1cb8d3
VS
27529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530 (eval $ac_try) 2>&5
27531 ac_status=$?
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; } &&
27534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27536 (eval $ac_try) 2>&5
27537 ac_status=$?
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); }; }; then
27540 ac_header_compiler=yes
27541else
27542 echo "$as_me: failed program was:" >&5
27543sed 's/^/| /' conftest.$ac_ext >&5
27544
27545ac_header_compiler=no
27546fi
ac1cb8d3 27547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27548echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27549echo "${ECHO_T}$ac_header_compiler" >&6
27550
27551# Is the header present?
27552echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27553echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27554cat >conftest.$ac_ext <<_ACEOF
27555/* confdefs.h. */
27556_ACEOF
27557cat confdefs.h >>conftest.$ac_ext
27558cat >>conftest.$ac_ext <<_ACEOF
27559/* end confdefs.h. */
27560#include <GL/gl.h>
27561_ACEOF
27562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27564 ac_status=$?
27565 grep -v '^ *+' conftest.er1 >conftest.err
27566 rm -f conftest.er1
27567 cat conftest.err >&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); } >/dev/null; then
27570 if test -s conftest.err; then
27571 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27573 else
27574 ac_cpp_err=
27575 fi
27576else
27577 ac_cpp_err=yes
27578fi
27579if test -z "$ac_cpp_err"; then
27580 ac_header_preproc=yes
27581else
27582 echo "$as_me: failed program was:" >&5
27583sed 's/^/| /' conftest.$ac_ext >&5
27584
27585 ac_header_preproc=no
27586fi
27587rm -f conftest.err conftest.$ac_ext
27588echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27589echo "${ECHO_T}$ac_header_preproc" >&6
27590
27591# So? What about this header?
ac1cb8d3
VS
27592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27593 yes:no: )
a848cd7e
SC
27594 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27595echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27596 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27597echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27598 ac_header_preproc=yes
a848cd7e 27599 ;;
ac1cb8d3 27600 no:yes:* )
a848cd7e
SC
27601 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27602echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27603 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27604echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27605 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27606echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27607 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27608echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27609 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27610echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27611 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27612echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27613 (
27614 cat <<\_ASBOX
ac1cb8d3
VS
27615## ----------------------------------------- ##
27616## Report this to wx-dev@lists.wxwidgets.org ##
27617## ----------------------------------------- ##
a848cd7e
SC
27618_ASBOX
27619 ) |
27620 sed "s/^/$as_me: WARNING: /" >&2
27621 ;;
27622esac
27623echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27624echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27625if test "${ac_cv_header_GL_gl_h+set}" = set; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27627else
27628 ac_cv_header_GL_gl_h=$ac_header_preproc
27629fi
27630echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27631echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27632
27633fi
27634if test $ac_cv_header_GL_gl_h = yes; then
27635
27636 found_gl=0
27637
27638 echo "$as_me:$LINENO: checking for -lGL" >&5
27639echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27640
27641ac_find_libraries=
27642for ac_dir in $SEARCH_LIB /usr/lib;
27643 do
27644 for ac_extension in a so sl dylib; do
27645 if test -f "$ac_dir/libGL.$ac_extension"; then
27646 ac_find_libraries=$ac_dir
27647 break 2
27648 fi
27649 done
27650 done
27651
27652 if test "$ac_find_libraries" != "" ; then
27653
27654 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27655 result=$?
27656 if test $result = 0; then
27657 ac_path_to_link=""
27658 else
27659 ac_path_to_link=" -L$ac_find_libraries"
27660 fi
27661
27662 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27663 LDFLAGS_GL="$ac_path_to_link"
27664 fi
27665
27666
27667ac_find_libraries=
27668for ac_dir in $SEARCH_LIB /usr/lib;
27669 do
27670 for ac_extension in a so sl dylib; do
27671 if test -f "$ac_dir/libGLU.$ac_extension"; then
27672 ac_find_libraries=$ac_dir
27673 break 2
27674 fi
27675 done
27676 done
27677
27678 if test "$ac_find_libraries" != "" ; then
27679
27680 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27681 result=$?
27682 if test $result = 0; then
27683 ac_path_to_link=""
27684 else
27685 ac_path_to_link=" -L$ac_find_libraries"
27686 fi
27687
27688 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27689 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27690 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27691 fi
27692
27693 found_gl=1
27694 OPENGL_LIBS="-lGL -lGLU"
27695 echo "$as_me:$LINENO: result: yes" >&5
27696echo "${ECHO_T}yes" >&6
27697 fi
27698 fi
27699
27700 if test "$found_gl" != 1; then
27701 echo "$as_me:$LINENO: result: no" >&5
27702echo "${ECHO_T}no" >&6
27703 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27704echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27705
27706ac_find_libraries=
27707for ac_dir in $SEARCH_LIB /usr/lib;
27708 do
27709 for ac_extension in a so sl dylib; do
27710 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27711 ac_find_libraries=$ac_dir
27712 break 2
27713 fi
27714 done
27715 done
27716
27717 if test "$ac_find_libraries" != "" ; then
27718
27719 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27720 result=$?
27721 if test $result = 0; then
27722 ac_path_to_link=""
27723 else
27724 ac_path_to_link=" -L$ac_find_libraries"
27725 fi
27726
27727 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27728 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27729 echo "$as_me:$LINENO: result: yes" >&5
27730echo "${ECHO_T}yes" >&6
27731 else
27732 echo "$as_me:$LINENO: result: no" >&5
27733echo "${ECHO_T}no" >&6
27734 fi
27735 fi
27736
27737fi
27738
27739
27740
27741 if test "x$OPENGL_LIBS" = "x"; then
27742 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27743echo "$as_me: error: OpenGL libraries not available" >&2;}
27744 { (exit 1); exit 1; }; }
27745 fi
27746 fi
27747
27748 if test "$wxUSE_OPENGL" = "yes"; then
27749 USE_OPENGL=1
27750 cat >>confdefs.h <<\_ACEOF
27751#define wxUSE_OPENGL 1
27752_ACEOF
27753
27754 cat >>confdefs.h <<\_ACEOF
27755#define wxUSE_GLCANVAS 1
27756_ACEOF
27757
27758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27759 fi
27760fi
27761
a848cd7e
SC
27762
27763if test -n "$TOOLKIT" ; then
27764 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27765fi
27766
a848cd7e
SC
27767
27768
27769if test "$wxUSE_SHARED" = "yes"; then
27770 case "${host}" in
27771 *-pc-msdosdjgpp )
27772 wxUSE_SHARED=no
27773 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27774echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27775 ;;
27776 esac
27777fi
27778
a848cd7e 27779if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27780
27781
27782 found_versioning=no
27783
27784
27785 if test $found_versioning = no ; then
27786 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27787echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27788if test "${wx_cv_version_script+set}" = set; then
27789 echo $ECHO_N "(cached) $ECHO_C" >&6
27790else
27791
27792 echo "VER_1 { *; };" >conftest.sym
27793 echo "int main() { return 0; }" >conftest.cpp
27794
27795 if { ac_try='
27796 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27797 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27799 (eval $ac_try) 2>&5
27800 ac_status=$?
27801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); }; } ; then
27803 if test -s conftest.stderr ; then
27804 wx_cv_version_script=no
27805 else
27806 wx_cv_version_script=yes
27807 fi
27808 else
27809 wx_cv_version_script=no
27810 fi
27811 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27812
27813fi
27814echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27815echo "${ECHO_T}$wx_cv_version_script" >&6
27816 if test $wx_cv_version_script = yes ; then
27817 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27818 fi
27819 fi
27820
27821
27822 case "${host}" in
27823 *-*-linux* | *-*-gnu* )
27824 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27825 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27826 ;;
27827
27828 *-*-solaris2* )
27829 if test "$GCC" = yes ; then
27830 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27831
27832 saveLdflags="$LDFLAGS"
27833 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27834 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27835echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27836 cat >conftest.$ac_ext <<_ACEOF
27837/* confdefs.h. */
27838_ACEOF
27839cat confdefs.h >>conftest.$ac_ext
27840cat >>conftest.$ac_ext <<_ACEOF
27841/* end confdefs.h. */
27842
27843int
27844main ()
27845{
27846
27847 ;
27848 return 0;
27849}
27850_ACEOF
27851rm -f conftest.$ac_objext conftest$ac_exeext
27852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27853 (eval $ac_link) 2>conftest.er1
a848cd7e 27854 ac_status=$?
ac1cb8d3
VS
27855 grep -v '^ *+' conftest.er1 >conftest.err
27856 rm -f conftest.er1
27857 cat conftest.err >&5
a848cd7e
SC
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } &&
b48a2016
DE
27860 { ac_try='test -z "$ac_c_werror_flag"
27861 || test ! -s conftest.err'
ac1cb8d3
VS
27862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863 (eval $ac_try) 2>&5
27864 ac_status=$?
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; } &&
27867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869 (eval $ac_try) 2>&5
27870 ac_status=$?
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; }; then
27873
27874 echo "$as_me:$LINENO: result: yes" >&5
27875echo "${ECHO_T}yes" >&6
27876 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27877 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27878
27879else
27880 echo "$as_me: failed program was:" >&5
27881sed 's/^/| /' conftest.$ac_ext >&5
27882
27883
27884 echo "$as_me:$LINENO: result: no" >&5
27885echo "${ECHO_T}no" >&6
27886 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27887echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27888 LDFLAGS="$saveLdflags -Wl,-R,/"
27889 cat >conftest.$ac_ext <<_ACEOF
27890/* confdefs.h. */
27891_ACEOF
27892cat confdefs.h >>conftest.$ac_ext
27893cat >>conftest.$ac_ext <<_ACEOF
27894/* end confdefs.h. */
27895
27896int
27897main ()
27898{
27899
27900 ;
27901 return 0;
27902}
27903_ACEOF
27904rm -f conftest.$ac_objext conftest$ac_exeext
27905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27906 (eval $ac_link) 2>conftest.er1
a848cd7e 27907 ac_status=$?
ac1cb8d3
VS
27908 grep -v '^ *+' conftest.er1 >conftest.err
27909 rm -f conftest.er1
27910 cat conftest.err >&5
a848cd7e
SC
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); } &&
b48a2016
DE
27913 { ac_try='test -z "$ac_c_werror_flag"
27914 || test ! -s conftest.err'
ac1cb8d3
VS
27915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27916 (eval $ac_try) 2>&5
27917 ac_status=$?
27918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919 (exit $ac_status); }; } &&
27920 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27922 (eval $ac_try) 2>&5
27923 ac_status=$?
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); }; }; then
27926
ffa0583f 27927 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 27928echo "${ECHO_T}yes" >&6
ffa0583f
RL
27929 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27930 WXCONFIG_RPATH="-Wl,-R,\$libdir"
27931
a848cd7e
SC
27932else
27933 echo "$as_me: failed program was:" >&5
27934sed 's/^/| /' conftest.$ac_ext >&5
27935
27936
27937 echo "$as_me:$LINENO: result: no" >&5
27938echo "${ECHO_T}no" >&6
27939
27940fi
ac1cb8d3
VS
27941rm -f conftest.err conftest.$ac_objext \
27942 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27943
27944fi
ac1cb8d3
VS
27945rm -f conftest.err conftest.$ac_objext \
27946 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27947 LDFLAGS="$saveLdflags"
27948 else
a848cd7e 27949 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 27950 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
27951 fi
27952 ;;
27953
27954 powerpc-*-darwin* )
27955 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27956 cat <<EOF >change-install-names
27957#!/bin/sh
27958libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27959inst_cmd="install_name_tool "
27960for i in \${libnames} ; do
27961 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27962done
27963\${inst_cmd} \${3}
27964EOF
27965 chmod +x change-install-names
27966 ;;
27967
27968 *-*-cygwin* | *-*-mingw32* )
27969 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27970 ;;
27971
27972 esac
ceec2216 27973
ffa0583f
RL
27974 if test $wxUSE_RPATH = "no"; then
27975 SAMPLES_RPATH_FLAG=''
27976 SAMPLES_RPATH_POSTLINK=''
27977 WXCONFIG_RPATH=''
27978 fi
27979
27980 SHARED=1
27981
27982else
27983
ceec2216
RL
27984 config_linkage_component="-static"
27985 SHARED=0
ffa0583f 27986
ceec2216 27987fi
a848cd7e 27988
a848cd7e 27989
ceec2216
RL
27990UNICODE=0
27991lib_unicode_suffix=
27992WX_CHARTYPE="ansi"
27993if test "$wxUSE_UNICODE" = "yes"; then
27994 lib_unicode_suffix=u
27995 WX_CHARTYPE="unicode"
27996 UNICODE=1
a848cd7e
SC
27997fi
27998
ceec2216
RL
27999lib_debug_suffix=
28000WX_DEBUGTYPE="release"
28001DEBUG_FLAG=0
28002if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28003 lib_debug_suffix=d
28004 WX_DEBUGTYPE="debug"
28005 DEBUG_FLAG=1
28006fi
a848cd7e 28007
ceec2216
RL
28008WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28009WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28010
ceec2216
RL
28011DEBUG_INFO=0
28012if test "$wxUSE_DEBUG_INFO" = "yes"; then
28013 DEBUG_INFO=1
28014fi
a848cd7e 28015
ceec2216 28016WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28017
ceec2216 28018TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28019
ceec2216 28020TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28021
ceec2216
RL
28022if test "$cross_compiling" = "yes"; then
28023 HOST_SUFFIX="-$host_alias"
28024 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28025 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28026fi
28027
dd21ced8 28028WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28029WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28030
28031
28032
a848cd7e 28033if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
ceec2216
RL
28034 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.r"
28035 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.rsrc"
28036
a848cd7e 28037 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28038
28039 # Extract the first word of "Rez", so it can be a program name with args.
28040set dummy Rez; ac_word=$2
28041echo "$as_me:$LINENO: checking for $ac_word" >&5
28042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28043if test "${ac_cv_prog_RESCOMP+set}" = set; then
28044 echo $ECHO_N "(cached) $ECHO_C" >&6
28045else
28046 if test -n "$RESCOMP"; then
28047 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28048else
28049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28050for as_dir in $PATH
28051do
28052 IFS=$as_save_IFS
28053 test -z "$as_dir" && as_dir=.
28054 for ac_exec_ext in '' $ac_executable_extensions; do
28055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28056 ac_cv_prog_RESCOMP="Rez"
28057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28058 break 2
28059 fi
28060done
28061done
28062
28063 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28064fi
28065fi
28066RESCOMP=$ac_cv_prog_RESCOMP
28067if test -n "$RESCOMP"; then
28068 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28069echo "${ECHO_T}$RESCOMP" >&6
28070else
28071 echo "$as_me:$LINENO: result: no" >&5
28072echo "${ECHO_T}no" >&6
28073fi
28074
28075 # Extract the first word of "DeRez", so it can be a program name with args.
28076set dummy DeRez; ac_word=$2
28077echo "$as_me:$LINENO: checking for $ac_word" >&5
28078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28079if test "${ac_cv_prog_DEREZ+set}" = set; then
28080 echo $ECHO_N "(cached) $ECHO_C" >&6
28081else
28082 if test -n "$DEREZ"; then
28083 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28084else
28085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28086for as_dir in $PATH
28087do
28088 IFS=$as_save_IFS
28089 test -z "$as_dir" && as_dir=.
28090 for ac_exec_ext in '' $ac_executable_extensions; do
28091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28092 ac_cv_prog_DEREZ="DeRez"
28093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28094 break 2
28095 fi
28096done
28097done
28098
28099 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28100fi
28101fi
28102DEREZ=$ac_cv_prog_DEREZ
28103if test -n "$DEREZ"; then
28104 echo "$as_me:$LINENO: result: $DEREZ" >&5
28105echo "${ECHO_T}$DEREZ" >&6
28106else
28107 echo "$as_me:$LINENO: result: no" >&5
28108echo "${ECHO_T}no" >&6
28109fi
28110
28111 # Extract the first word of "SetFile", so it can be a program name with args.
28112set dummy SetFile; ac_word=$2
28113echo "$as_me:$LINENO: checking for $ac_word" >&5
28114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28115if test "${ac_cv_prog_SETFILE+set}" = set; then
28116 echo $ECHO_N "(cached) $ECHO_C" >&6
28117else
28118 if test -n "$SETFILE"; then
28119 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28120else
28121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28122for as_dir in $PATH
28123do
28124 IFS=$as_save_IFS
28125 test -z "$as_dir" && as_dir=.
28126 for ac_exec_ext in '' $ac_executable_extensions; do
28127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28128 ac_cv_prog_SETFILE="SetFile"
28129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28130 break 2
28131 fi
28132done
28133done
28134
28135 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28136fi
28137fi
28138SETFILE=$ac_cv_prog_SETFILE
28139if test -n "$SETFILE"; then
28140 echo "$as_me:$LINENO: result: $SETFILE" >&5
28141echo "${ECHO_T}$SETFILE" >&6
28142else
28143 echo "$as_me:$LINENO: result: no" >&5
28144echo "${ECHO_T}no" >&6
28145fi
28146
28147
28148 MACSETFILE="\$(SETFILE)"
28149
28150 if test "$wxUSE_MAC" = 1; then
28151 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28152
28153 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28154 else
28155 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28156 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28157 fi
28158else
ffa0583f
RL
28159 MACSETFILE="@true"
28160 MACRESWXCONFIG="@true"
a848cd7e
SC
28161
28162 if test "$wxUSE_PM" = 1; then
28163 MACRESCOMP="emxbind -ep"
28164 else
ffa0583f 28165 MACRESCOMP="@true"
a848cd7e
SC
28166 fi
28167fi
28168
28169
28170
28171echo "$as_me:$LINENO: checking for mode_t" >&5
28172echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28173if test "${ac_cv_type_mode_t+set}" = set; then
28174 echo $ECHO_N "(cached) $ECHO_C" >&6
28175else
28176 cat >conftest.$ac_ext <<_ACEOF
28177/* confdefs.h. */
28178_ACEOF
28179cat confdefs.h >>conftest.$ac_ext
28180cat >>conftest.$ac_ext <<_ACEOF
28181/* end confdefs.h. */
28182$ac_includes_default
28183int
28184main ()
28185{
28186if ((mode_t *) 0)
28187 return 0;
28188if (sizeof (mode_t))
28189 return 0;
28190 ;
28191 return 0;
28192}
28193_ACEOF
28194rm -f conftest.$ac_objext
28195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28196 (eval $ac_compile) 2>conftest.er1
a848cd7e 28197 ac_status=$?
ac1cb8d3
VS
28198 grep -v '^ *+' conftest.er1 >conftest.err
28199 rm -f conftest.er1
28200 cat conftest.err >&5
a848cd7e
SC
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); } &&
b48a2016
DE
28203 { ac_try='test -z "$ac_c_werror_flag"
28204 || test ! -s conftest.err'
ac1cb8d3
VS
28205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206 (eval $ac_try) 2>&5
28207 ac_status=$?
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; } &&
28210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28212 (eval $ac_try) 2>&5
28213 ac_status=$?
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; }; then
28216 ac_cv_type_mode_t=yes
28217else
28218 echo "$as_me: failed program was:" >&5
28219sed 's/^/| /' conftest.$ac_ext >&5
28220
28221ac_cv_type_mode_t=no
28222fi
ac1cb8d3 28223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28224fi
28225echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28226echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28227if test $ac_cv_type_mode_t = yes; then
28228 :
28229else
28230
28231cat >>confdefs.h <<_ACEOF
28232#define mode_t int
28233_ACEOF
28234
28235fi
28236
28237echo "$as_me:$LINENO: checking for off_t" >&5
28238echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28239if test "${ac_cv_type_off_t+set}" = set; then
28240 echo $ECHO_N "(cached) $ECHO_C" >&6
28241else
28242 cat >conftest.$ac_ext <<_ACEOF
28243/* confdefs.h. */
28244_ACEOF
28245cat confdefs.h >>conftest.$ac_ext
28246cat >>conftest.$ac_ext <<_ACEOF
28247/* end confdefs.h. */
28248$ac_includes_default
28249int
28250main ()
28251{
28252if ((off_t *) 0)
28253 return 0;
28254if (sizeof (off_t))
28255 return 0;
28256 ;
28257 return 0;
28258}
28259_ACEOF
28260rm -f conftest.$ac_objext
28261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28262 (eval $ac_compile) 2>conftest.er1
a848cd7e 28263 ac_status=$?
ac1cb8d3
VS
28264 grep -v '^ *+' conftest.er1 >conftest.err
28265 rm -f conftest.er1
28266 cat conftest.err >&5
a848cd7e
SC
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); } &&
b48a2016
DE
28269 { ac_try='test -z "$ac_c_werror_flag"
28270 || test ! -s conftest.err'
ac1cb8d3
VS
28271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28272 (eval $ac_try) 2>&5
28273 ac_status=$?
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); }; } &&
28276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28278 (eval $ac_try) 2>&5
28279 ac_status=$?
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; }; then
28282 ac_cv_type_off_t=yes
28283else
28284 echo "$as_me: failed program was:" >&5
28285sed 's/^/| /' conftest.$ac_ext >&5
28286
28287ac_cv_type_off_t=no
28288fi
ac1cb8d3 28289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28290fi
28291echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28292echo "${ECHO_T}$ac_cv_type_off_t" >&6
28293if test $ac_cv_type_off_t = yes; then
28294 :
28295else
28296
28297cat >>confdefs.h <<_ACEOF
28298#define off_t long
28299_ACEOF
28300
28301fi
28302
28303echo "$as_me:$LINENO: checking for pid_t" >&5
28304echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28305if test "${ac_cv_type_pid_t+set}" = set; then
28306 echo $ECHO_N "(cached) $ECHO_C" >&6
28307else
28308 cat >conftest.$ac_ext <<_ACEOF
28309/* confdefs.h. */
28310_ACEOF
28311cat confdefs.h >>conftest.$ac_ext
28312cat >>conftest.$ac_ext <<_ACEOF
28313/* end confdefs.h. */
28314$ac_includes_default
28315int
28316main ()
28317{
28318if ((pid_t *) 0)
28319 return 0;
28320if (sizeof (pid_t))
28321 return 0;
28322 ;
28323 return 0;
28324}
28325_ACEOF
28326rm -f conftest.$ac_objext
28327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28328 (eval $ac_compile) 2>conftest.er1
a848cd7e 28329 ac_status=$?
ac1cb8d3
VS
28330 grep -v '^ *+' conftest.er1 >conftest.err
28331 rm -f conftest.er1
28332 cat conftest.err >&5
a848cd7e
SC
28333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334 (exit $ac_status); } &&
b48a2016
DE
28335 { ac_try='test -z "$ac_c_werror_flag"
28336 || test ! -s conftest.err'
ac1cb8d3
VS
28337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338 (eval $ac_try) 2>&5
28339 ac_status=$?
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; } &&
28342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344 (eval $ac_try) 2>&5
28345 ac_status=$?
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); }; }; then
28348 ac_cv_type_pid_t=yes
28349else
28350 echo "$as_me: failed program was:" >&5
28351sed 's/^/| /' conftest.$ac_ext >&5
28352
28353ac_cv_type_pid_t=no
28354fi
ac1cb8d3 28355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28356fi
28357echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28358echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28359if test $ac_cv_type_pid_t = yes; then
28360 :
28361else
28362
28363cat >>confdefs.h <<_ACEOF
28364#define pid_t int
28365_ACEOF
28366
28367fi
28368
28369echo "$as_me:$LINENO: checking for size_t" >&5
28370echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28371if test "${ac_cv_type_size_t+set}" = set; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28373else
28374 cat >conftest.$ac_ext <<_ACEOF
28375/* confdefs.h. */
28376_ACEOF
28377cat confdefs.h >>conftest.$ac_ext
28378cat >>conftest.$ac_ext <<_ACEOF
28379/* end confdefs.h. */
28380$ac_includes_default
28381int
28382main ()
28383{
28384if ((size_t *) 0)
28385 return 0;
28386if (sizeof (size_t))
28387 return 0;
28388 ;
28389 return 0;
28390}
28391_ACEOF
28392rm -f conftest.$ac_objext
28393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28394 (eval $ac_compile) 2>conftest.er1
a848cd7e 28395 ac_status=$?
ac1cb8d3
VS
28396 grep -v '^ *+' conftest.er1 >conftest.err
28397 rm -f conftest.er1
28398 cat conftest.err >&5
a848cd7e
SC
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); } &&
b48a2016
DE
28401 { ac_try='test -z "$ac_c_werror_flag"
28402 || test ! -s conftest.err'
ac1cb8d3
VS
28403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28404 (eval $ac_try) 2>&5
28405 ac_status=$?
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; } &&
28408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28410 (eval $ac_try) 2>&5
28411 ac_status=$?
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); }; }; then
28414 ac_cv_type_size_t=yes
28415else
28416 echo "$as_me: failed program was:" >&5
28417sed 's/^/| /' conftest.$ac_ext >&5
28418
28419ac_cv_type_size_t=no
28420fi
ac1cb8d3 28421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28422fi
28423echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28424echo "${ECHO_T}$ac_cv_type_size_t" >&6
28425if test $ac_cv_type_size_t = yes; then
28426 :
28427else
28428
28429cat >>confdefs.h <<_ACEOF
28430#define size_t unsigned
28431_ACEOF
28432
28433fi
28434
28435echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28436echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28437if test "${ac_cv_type_uid_t+set}" = set; then
28438 echo $ECHO_N "(cached) $ECHO_C" >&6
28439else
28440 cat >conftest.$ac_ext <<_ACEOF
28441/* confdefs.h. */
28442_ACEOF
28443cat confdefs.h >>conftest.$ac_ext
28444cat >>conftest.$ac_ext <<_ACEOF
28445/* end confdefs.h. */
28446#include <sys/types.h>
28447
28448_ACEOF
28449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28450 $EGREP "uid_t" >/dev/null 2>&1; then
28451 ac_cv_type_uid_t=yes
28452else
28453 ac_cv_type_uid_t=no
28454fi
28455rm -f conftest*
28456
28457fi
28458echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28459echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28460if test $ac_cv_type_uid_t = no; then
28461
28462cat >>confdefs.h <<\_ACEOF
28463#define uid_t int
28464_ACEOF
28465
28466
28467cat >>confdefs.h <<\_ACEOF
28468#define gid_t int
28469_ACEOF
28470
28471fi
28472
28473
28474
28475
28476ac_ext=cc
28477ac_cpp='$CXXCPP $CPPFLAGS'
28478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28481
28482echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28483echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28484if test "${wx_cv_size_t_is_uint+set}" = set; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28486else
28487
28488 cat >conftest.$ac_ext <<_ACEOF
28489/* confdefs.h. */
28490_ACEOF
28491cat confdefs.h >>conftest.$ac_ext
28492cat >>conftest.$ac_ext <<_ACEOF
28493/* end confdefs.h. */
28494#include <stddef.h>
28495int
28496main ()
28497{
28498
28499 return 0; }
28500
28501 struct Foo { void foo(size_t); void foo(unsigned int); };
28502
28503 int bar() {
28504
28505 ;
28506 return 0;
28507}
28508_ACEOF
28509rm -f conftest.$ac_objext
28510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28511 (eval $ac_compile) 2>conftest.er1
a848cd7e 28512 ac_status=$?
ac1cb8d3
VS
28513 grep -v '^ *+' conftest.er1 >conftest.err
28514 rm -f conftest.er1
28515 cat conftest.err >&5
a848cd7e
SC
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); } &&
b48a2016
DE
28518 { ac_try='test -z "$ac_cxx_werror_flag"
28519 || test ! -s conftest.err'
ac1cb8d3
VS
28520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28521 (eval $ac_try) 2>&5
28522 ac_status=$?
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); }; } &&
28525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28527 (eval $ac_try) 2>&5
28528 ac_status=$?
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); }; }; then
28531 wx_cv_size_t_is_uint=no
28532else
28533 echo "$as_me: failed program was:" >&5
28534sed 's/^/| /' conftest.$ac_ext >&5
28535
28536wx_cv_size_t_is_uint=yes
28537
28538fi
ac1cb8d3 28539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28540
28541
28542fi
28543echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28544echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28545
28546if test "$wx_cv_size_t_is_uint" = "yes"; then
28547 cat >>confdefs.h <<\_ACEOF
28548#define wxSIZE_T_IS_UINT 1
28549_ACEOF
28550
28551else
28552 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28553echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28554if test "${wx_cv_size_t_is_ulong+set}" = set; then
28555 echo $ECHO_N "(cached) $ECHO_C" >&6
28556else
28557 cat >conftest.$ac_ext <<_ACEOF
28558/* confdefs.h. */
28559_ACEOF
28560cat confdefs.h >>conftest.$ac_ext
28561cat >>conftest.$ac_ext <<_ACEOF
28562/* end confdefs.h. */
28563#include <stddef.h>
28564int
28565main ()
28566{
28567
28568 return 0; }
28569
28570 struct Foo { void foo(size_t); void foo(unsigned long); };
28571
28572 int bar() {
28573
28574 ;
28575 return 0;
28576}
28577_ACEOF
28578rm -f conftest.$ac_objext
28579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28580 (eval $ac_compile) 2>conftest.er1
a848cd7e 28581 ac_status=$?
ac1cb8d3
VS
28582 grep -v '^ *+' conftest.er1 >conftest.err
28583 rm -f conftest.er1
28584 cat conftest.err >&5
a848cd7e
SC
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); } &&
b48a2016
DE
28587 { ac_try='test -z "$ac_cxx_werror_flag"
28588 || test ! -s conftest.err'
ac1cb8d3
VS
28589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28590 (eval $ac_try) 2>&5
28591 ac_status=$?
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); }; } &&
28594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28596 (eval $ac_try) 2>&5
28597 ac_status=$?
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; }; then
28600 wx_cv_size_t_is_ulong=no
28601else
28602 echo "$as_me: failed program was:" >&5
28603sed 's/^/| /' conftest.$ac_ext >&5
28604
28605wx_cv_size_t_is_ulong=yes
28606
28607fi
ac1cb8d3 28608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28609
28610fi
28611echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28612echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28613
28614 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28615 cat >>confdefs.h <<\_ACEOF
28616#define wxSIZE_T_IS_ULONG 1
28617_ACEOF
28618
28619 fi
28620fi
28621
28622ac_ext=c
28623ac_cpp='$CPP $CPPFLAGS'
28624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28626ac_compiler_gnu=$ac_cv_c_compiler_gnu
28627
28628
28629
28630echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28631echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28632if test "${wx_cv_struct_pw_gecos+set}" = set; then
28633 echo $ECHO_N "(cached) $ECHO_C" >&6
28634else
28635
28636 cat >conftest.$ac_ext <<_ACEOF
28637/* confdefs.h. */
28638_ACEOF
28639cat confdefs.h >>conftest.$ac_ext
28640cat >>conftest.$ac_ext <<_ACEOF
28641/* end confdefs.h. */
28642#include <pwd.h>
28643int
28644main ()
28645{
28646
28647 char *p;
28648 struct passwd *pw;
28649 p = pw->pw_gecos;
28650
28651 ;
28652 return 0;
28653}
28654_ACEOF
28655rm -f conftest.$ac_objext
28656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28657 (eval $ac_compile) 2>conftest.er1
a848cd7e 28658 ac_status=$?
ac1cb8d3
VS
28659 grep -v '^ *+' conftest.er1 >conftest.err
28660 rm -f conftest.er1
28661 cat conftest.err >&5
a848cd7e
SC
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); } &&
b48a2016
DE
28664 { ac_try='test -z "$ac_c_werror_flag"
28665 || test ! -s conftest.err'
ac1cb8d3
VS
28666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667 (eval $ac_try) 2>&5
28668 ac_status=$?
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; } &&
28671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28673 (eval $ac_try) 2>&5
28674 ac_status=$?
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); }; }; then
28677
28678 wx_cv_struct_pw_gecos=yes
28679
28680else
28681 echo "$as_me: failed program was:" >&5
28682sed 's/^/| /' conftest.$ac_ext >&5
28683
28684
28685 wx_cv_struct_pw_gecos=no
28686
28687
28688fi
ac1cb8d3 28689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28690
28691
28692fi
28693echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28694echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28695
28696if test "$wx_cv_struct_pw_gecos" = "yes"; then
28697 cat >>confdefs.h <<\_ACEOF
28698#define HAVE_PW_GECOS 1
28699_ACEOF
28700
28701fi
28702
28703
28704if test "$wx_cv_sizeof_wchar_t" != "0"; then
28705 cat >>confdefs.h <<\_ACEOF
28706#define wxUSE_WCHAR_T 1
28707_ACEOF
28708
28709
28710 WCSLEN_FOUND=0
28711 WCHAR_LINK=
28712
28713for ac_func in wcslen
28714do
28715as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28716echo "$as_me:$LINENO: checking for $ac_func" >&5
28717echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28718if eval "test \"\${$as_ac_var+set}\" = set"; then
28719 echo $ECHO_N "(cached) $ECHO_C" >&6
28720else
28721 cat >conftest.$ac_ext <<_ACEOF
28722/* confdefs.h. */
28723_ACEOF
28724cat confdefs.h >>conftest.$ac_ext
28725cat >>conftest.$ac_ext <<_ACEOF
28726/* end confdefs.h. */
ac1cb8d3
VS
28727/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28729#define $ac_func innocuous_$ac_func
28730
a848cd7e
SC
28731/* System header to define __stub macros and hopefully few prototypes,
28732 which can conflict with char $ac_func (); below.
28733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28734 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28735
a848cd7e
SC
28736#ifdef __STDC__
28737# include <limits.h>
28738#else
28739# include <assert.h>
28740#endif
ac1cb8d3
VS
28741
28742#undef $ac_func
28743
a848cd7e
SC
28744/* Override any gcc2 internal prototype to avoid an error. */
28745#ifdef __cplusplus
28746extern "C"
28747{
28748#endif
28749/* We use char because int might match the return type of a gcc2
28750 builtin and then its argument prototype would still apply. */
28751char $ac_func ();
28752/* The GNU C library defines this for functions which it implements
28753 to always fail with ENOSYS. Some functions are actually named
28754 something starting with __ and the normal name is an alias. */
28755#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28756choke me
28757#else
28758char (*f) () = $ac_func;
28759#endif
28760#ifdef __cplusplus
28761}
28762#endif
28763
28764int
28765main ()
28766{
28767return f != $ac_func;
28768 ;
28769 return 0;
28770}
28771_ACEOF
28772rm -f conftest.$ac_objext conftest$ac_exeext
28773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28774 (eval $ac_link) 2>conftest.er1
a848cd7e 28775 ac_status=$?
ac1cb8d3
VS
28776 grep -v '^ *+' conftest.er1 >conftest.err
28777 rm -f conftest.er1
28778 cat conftest.err >&5
a848cd7e
SC
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); } &&
b48a2016
DE
28781 { ac_try='test -z "$ac_c_werror_flag"
28782 || test ! -s conftest.err'
ac1cb8d3
VS
28783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28785 ac_status=$?
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; } &&
28788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790 (eval $ac_try) 2>&5
28791 ac_status=$?
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; }; then
28794 eval "$as_ac_var=yes"
28795else
28796 echo "$as_me: failed program was:" >&5
28797sed 's/^/| /' conftest.$ac_ext >&5
28798
28799eval "$as_ac_var=no"
28800fi
ac1cb8d3
VS
28801rm -f conftest.err conftest.$ac_objext \
28802 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28803fi
28804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28805echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28806if test `eval echo '${'$as_ac_var'}'` = yes; then
28807 cat >>confdefs.h <<_ACEOF
28808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28809_ACEOF
28810 WCSLEN_FOUND=1
28811fi
28812done
28813
28814
28815 if test "$WCSLEN_FOUND" = 0; then
28816 if test "$TOOLKIT" = "MSW"; then
28817 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28818echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28819if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28820 echo $ECHO_N "(cached) $ECHO_C" >&6
28821else
28822 ac_check_lib_save_LIBS=$LIBS
28823LIBS="-lmsvcrt $LIBS"
28824cat >conftest.$ac_ext <<_ACEOF
28825/* confdefs.h. */
28826_ACEOF
28827cat confdefs.h >>conftest.$ac_ext
28828cat >>conftest.$ac_ext <<_ACEOF
28829/* end confdefs.h. */
28830
28831/* Override any gcc2 internal prototype to avoid an error. */
28832#ifdef __cplusplus
28833extern "C"
28834#endif
28835/* We use char because int might match the return type of a gcc2
28836 builtin and then its argument prototype would still apply. */
28837char wcslen ();
28838int
28839main ()
28840{
28841wcslen ();
28842 ;
28843 return 0;
28844}
28845_ACEOF
28846rm -f conftest.$ac_objext conftest$ac_exeext
28847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28848 (eval $ac_link) 2>conftest.er1
a848cd7e 28849 ac_status=$?
ac1cb8d3
VS
28850 grep -v '^ *+' conftest.er1 >conftest.err
28851 rm -f conftest.er1
28852 cat conftest.err >&5
a848cd7e
SC
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } &&
b48a2016
DE
28855 { ac_try='test -z "$ac_c_werror_flag"
28856 || test ! -s conftest.err'
ac1cb8d3
VS
28857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858 (eval $ac_try) 2>&5
28859 ac_status=$?
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; } &&
28862 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864 (eval $ac_try) 2>&5
28865 ac_status=$?
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); }; }; then
28868 ac_cv_lib_msvcrt_wcslen=yes
28869else
28870 echo "$as_me: failed program was:" >&5
28871sed 's/^/| /' conftest.$ac_ext >&5
28872
28873ac_cv_lib_msvcrt_wcslen=no
28874fi
ac1cb8d3
VS
28875rm -f conftest.err conftest.$ac_objext \
28876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28877LIBS=$ac_check_lib_save_LIBS
28878fi
28879echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28880echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28881if test $ac_cv_lib_msvcrt_wcslen = yes; then
28882 WCHAR_OK=1
28883fi
28884
28885 else
28886 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28887echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28888if test "${ac_cv_lib_w_wcslen+set}" = set; then
28889 echo $ECHO_N "(cached) $ECHO_C" >&6
28890else
28891 ac_check_lib_save_LIBS=$LIBS
28892LIBS="-lw $LIBS"
28893cat >conftest.$ac_ext <<_ACEOF
28894/* confdefs.h. */
28895_ACEOF
28896cat confdefs.h >>conftest.$ac_ext
28897cat >>conftest.$ac_ext <<_ACEOF
28898/* end confdefs.h. */
28899
28900/* Override any gcc2 internal prototype to avoid an error. */
28901#ifdef __cplusplus
28902extern "C"
28903#endif
28904/* We use char because int might match the return type of a gcc2
28905 builtin and then its argument prototype would still apply. */
28906char wcslen ();
28907int
28908main ()
28909{
28910wcslen ();
28911 ;
28912 return 0;
28913}
28914_ACEOF
28915rm -f conftest.$ac_objext conftest$ac_exeext
28916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28917 (eval $ac_link) 2>conftest.er1
a848cd7e 28918 ac_status=$?
ac1cb8d3
VS
28919 grep -v '^ *+' conftest.er1 >conftest.err
28920 rm -f conftest.er1
28921 cat conftest.err >&5
a848cd7e
SC
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); } &&
b48a2016
DE
28924 { ac_try='test -z "$ac_c_werror_flag"
28925 || test ! -s conftest.err'
ac1cb8d3
VS
28926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28927 (eval $ac_try) 2>&5
28928 ac_status=$?
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); }; } &&
28931 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28933 (eval $ac_try) 2>&5
28934 ac_status=$?
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); }; }; then
28937 ac_cv_lib_w_wcslen=yes
28938else
28939 echo "$as_me: failed program was:" >&5
28940sed 's/^/| /' conftest.$ac_ext >&5
28941
28942ac_cv_lib_w_wcslen=no
28943fi
ac1cb8d3
VS
28944rm -f conftest.err conftest.$ac_objext \
28945 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28946LIBS=$ac_check_lib_save_LIBS
28947fi
28948echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28949echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28950if test $ac_cv_lib_w_wcslen = yes; then
28951
28952 WCHAR_LINK=" -lw"
28953 WCSLEN_FOUND=1
28954
28955fi
28956
28957 fi
28958 fi
28959
28960 if test "$WCSLEN_FOUND" = 1; then
28961 cat >>confdefs.h <<\_ACEOF
28962#define HAVE_WCSLEN 1
28963_ACEOF
28964
28965 fi
28966
473276a9
VS
28967 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28968 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28969 fi
28970
a848cd7e
SC
28971
28972for ac_func in wcsrtombs
28973do
28974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28975echo "$as_me:$LINENO: checking for $ac_func" >&5
28976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28977if eval "test \"\${$as_ac_var+set}\" = set"; then
28978 echo $ECHO_N "(cached) $ECHO_C" >&6
28979else
28980 cat >conftest.$ac_ext <<_ACEOF
28981/* confdefs.h. */
28982_ACEOF
28983cat confdefs.h >>conftest.$ac_ext
28984cat >>conftest.$ac_ext <<_ACEOF
28985/* end confdefs.h. */
ac1cb8d3
VS
28986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28988#define $ac_func innocuous_$ac_func
28989
a848cd7e
SC
28990/* System header to define __stub macros and hopefully few prototypes,
28991 which can conflict with char $ac_func (); below.
28992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28993 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28994
a848cd7e
SC
28995#ifdef __STDC__
28996# include <limits.h>
28997#else
28998# include <assert.h>
28999#endif
ac1cb8d3
VS
29000
29001#undef $ac_func
29002
a848cd7e
SC
29003/* Override any gcc2 internal prototype to avoid an error. */
29004#ifdef __cplusplus
29005extern "C"
29006{
29007#endif
29008/* We use char because int might match the return type of a gcc2
29009 builtin and then its argument prototype would still apply. */
29010char $ac_func ();
29011/* The GNU C library defines this for functions which it implements
29012 to always fail with ENOSYS. Some functions are actually named
29013 something starting with __ and the normal name is an alias. */
29014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29015choke me
29016#else
29017char (*f) () = $ac_func;
29018#endif
29019#ifdef __cplusplus
29020}
29021#endif
29022
29023int
29024main ()
29025{
29026return f != $ac_func;
29027 ;
29028 return 0;
29029}
29030_ACEOF
29031rm -f conftest.$ac_objext conftest$ac_exeext
29032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29033 (eval $ac_link) 2>conftest.er1
a848cd7e 29034 ac_status=$?
ac1cb8d3
VS
29035 grep -v '^ *+' conftest.er1 >conftest.err
29036 rm -f conftest.er1
29037 cat conftest.err >&5
a848cd7e
SC
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); } &&
b48a2016
DE
29040 { ac_try='test -z "$ac_c_werror_flag"
29041 || test ! -s conftest.err'
ac1cb8d3
VS
29042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29043 (eval $ac_try) 2>&5
29044 ac_status=$?
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); }; } &&
29047 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29049 (eval $ac_try) 2>&5
29050 ac_status=$?
29051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052 (exit $ac_status); }; }; then
29053 eval "$as_ac_var=yes"
29054else
29055 echo "$as_me: failed program was:" >&5
29056sed 's/^/| /' conftest.$ac_ext >&5
29057
29058eval "$as_ac_var=no"
29059fi
ac1cb8d3
VS
29060rm -f conftest.err conftest.$ac_objext \
29061 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29062fi
29063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29064echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29065if test `eval echo '${'$as_ac_var'}'` = yes; then
29066 cat >>confdefs.h <<_ACEOF
29067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29068_ACEOF
29069
29070fi
29071done
29072
29073else
29074 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29075echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29076fi
29077
29078
29079
29080ac_ext=cc
29081ac_cpp='$CXXCPP $CPPFLAGS'
29082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29085
29086
29087
29088for ac_func in vsnprintf
29089do
29090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29091echo "$as_me:$LINENO: checking for $ac_func" >&5
29092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29093if eval "test \"\${$as_ac_var+set}\" = set"; then
29094 echo $ECHO_N "(cached) $ECHO_C" >&6
29095else
29096 cat >conftest.$ac_ext <<_ACEOF
29097/* confdefs.h. */
29098_ACEOF
29099cat confdefs.h >>conftest.$ac_ext
29100cat >>conftest.$ac_ext <<_ACEOF
29101/* end confdefs.h. */
ac1cb8d3
VS
29102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29104#define $ac_func innocuous_$ac_func
29105
a848cd7e
SC
29106/* System header to define __stub macros and hopefully few prototypes,
29107 which can conflict with char $ac_func (); below.
29108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29109 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29110
a848cd7e
SC
29111#ifdef __STDC__
29112# include <limits.h>
29113#else
29114# include <assert.h>
29115#endif
ac1cb8d3
VS
29116
29117#undef $ac_func
29118
a848cd7e
SC
29119/* Override any gcc2 internal prototype to avoid an error. */
29120#ifdef __cplusplus
29121extern "C"
29122{
29123#endif
29124/* We use char because int might match the return type of a gcc2
29125 builtin and then its argument prototype would still apply. */
29126char $ac_func ();
29127/* The GNU C library defines this for functions which it implements
29128 to always fail with ENOSYS. Some functions are actually named
29129 something starting with __ and the normal name is an alias. */
29130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29131choke me
29132#else
29133char (*f) () = $ac_func;
29134#endif
29135#ifdef __cplusplus
29136}
29137#endif
29138
29139int
29140main ()
29141{
29142return f != $ac_func;
29143 ;
29144 return 0;
29145}
29146_ACEOF
29147rm -f conftest.$ac_objext conftest$ac_exeext
29148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29149 (eval $ac_link) 2>conftest.er1
a848cd7e 29150 ac_status=$?
ac1cb8d3
VS
29151 grep -v '^ *+' conftest.er1 >conftest.err
29152 rm -f conftest.er1
29153 cat conftest.err >&5
a848cd7e
SC
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); } &&
b48a2016
DE
29156 { ac_try='test -z "$ac_cxx_werror_flag"
29157 || test ! -s conftest.err'
ac1cb8d3
VS
29158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29159 (eval $ac_try) 2>&5
29160 ac_status=$?
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); }; } &&
29163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29165 (eval $ac_try) 2>&5
29166 ac_status=$?
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); }; }; then
29169 eval "$as_ac_var=yes"
29170else
29171 echo "$as_me: failed program was:" >&5
29172sed 's/^/| /' conftest.$ac_ext >&5
29173
29174eval "$as_ac_var=no"
29175fi
ac1cb8d3
VS
29176rm -f conftest.err conftest.$ac_objext \
29177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29178fi
29179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29181if test `eval echo '${'$as_ac_var'}'` = yes; then
29182 cat >>confdefs.h <<_ACEOF
29183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29184_ACEOF
29185
29186fi
29187done
29188
29189
29190if test "$ac_cv_func_vsnprintf" = "yes"; then
29191 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29192echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29193if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29194 echo $ECHO_N "(cached) $ECHO_C" >&6
29195else
29196
29197 cat >conftest.$ac_ext <<_ACEOF
29198/* confdefs.h. */
29199_ACEOF
29200cat confdefs.h >>conftest.$ac_ext
29201cat >>conftest.$ac_ext <<_ACEOF
29202/* end confdefs.h. */
29203
29204 #include <stdio.h>
29205 #include <stdarg.h>
29206
29207int
29208main ()
29209{
29210
29211 char *buf;
29212 va_list ap;
29213 vsnprintf(buf, 10u, "%s", ap);
29214
29215 ;
29216 return 0;
29217}
29218_ACEOF
29219rm -f conftest.$ac_objext
29220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29221 (eval $ac_compile) 2>conftest.er1
a848cd7e 29222 ac_status=$?
ac1cb8d3
VS
29223 grep -v '^ *+' conftest.er1 >conftest.err
29224 rm -f conftest.er1
29225 cat conftest.err >&5
a848cd7e
SC
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); } &&
b48a2016
DE
29228 { ac_try='test -z "$ac_cxx_werror_flag"
29229 || test ! -s conftest.err'
ac1cb8d3
VS
29230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231 (eval $ac_try) 2>&5
29232 ac_status=$?
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; } &&
29235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237 (eval $ac_try) 2>&5
29238 ac_status=$?
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; }; then
29241 wx_cv_func_vsnprintf_decl=yes
29242else
29243 echo "$as_me: failed program was:" >&5
29244sed 's/^/| /' conftest.$ac_ext >&5
29245
29246wx_cv_func_vsnprintf_decl=no
29247
29248fi
ac1cb8d3 29249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29250
29251
29252fi
29253echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29254echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29255
29256 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29257 cat >>confdefs.h <<\_ACEOF
29258#define HAVE_VSNPRINTF_DECL 1
29259_ACEOF
29260
29261 fi
29262fi
29263
29264if test "$wxUSE_UNICODE" = yes; then
29265
29266
29267
fbe47c7b
VS
29268
29269
29270
29271for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29272do
29273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29274echo "$as_me:$LINENO: checking for $ac_func" >&5
29275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29276if eval "test \"\${$as_ac_var+set}\" = set"; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29278else
29279 cat >conftest.$ac_ext <<_ACEOF
29280/* confdefs.h. */
29281_ACEOF
29282cat confdefs.h >>conftest.$ac_ext
29283cat >>conftest.$ac_ext <<_ACEOF
29284/* end confdefs.h. */
ac1cb8d3
VS
29285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29287#define $ac_func innocuous_$ac_func
29288
a848cd7e
SC
29289/* System header to define __stub macros and hopefully few prototypes,
29290 which can conflict with char $ac_func (); below.
29291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29292 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29293
a848cd7e
SC
29294#ifdef __STDC__
29295# include <limits.h>
29296#else
29297# include <assert.h>
29298#endif
ac1cb8d3
VS
29299
29300#undef $ac_func
29301
a848cd7e
SC
29302/* Override any gcc2 internal prototype to avoid an error. */
29303#ifdef __cplusplus
29304extern "C"
29305{
29306#endif
29307/* We use char because int might match the return type of a gcc2
29308 builtin and then its argument prototype would still apply. */
29309char $ac_func ();
29310/* The GNU C library defines this for functions which it implements
29311 to always fail with ENOSYS. Some functions are actually named
29312 something starting with __ and the normal name is an alias. */
29313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29314choke me
29315#else
29316char (*f) () = $ac_func;
29317#endif
29318#ifdef __cplusplus
29319}
29320#endif
29321
29322int
29323main ()
29324{
29325return f != $ac_func;
29326 ;
29327 return 0;
29328}
29329_ACEOF
29330rm -f conftest.$ac_objext conftest$ac_exeext
29331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29332 (eval $ac_link) 2>conftest.er1
a848cd7e 29333 ac_status=$?
ac1cb8d3
VS
29334 grep -v '^ *+' conftest.er1 >conftest.err
29335 rm -f conftest.er1
29336 cat conftest.err >&5
a848cd7e
SC
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); } &&
b48a2016
DE
29339 { ac_try='test -z "$ac_cxx_werror_flag"
29340 || test ! -s conftest.err'
ac1cb8d3
VS
29341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29342 (eval $ac_try) 2>&5
29343 ac_status=$?
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; } &&
29346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29348 (eval $ac_try) 2>&5
29349 ac_status=$?
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); }; }; then
29352 eval "$as_ac_var=yes"
29353else
29354 echo "$as_me: failed program was:" >&5
29355sed 's/^/| /' conftest.$ac_ext >&5
29356
29357eval "$as_ac_var=no"
29358fi
ac1cb8d3
VS
29359rm -f conftest.err conftest.$ac_objext \
29360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29361fi
29362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29363echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29364if test `eval echo '${'$as_ac_var'}'` = yes; then
29365 cat >>confdefs.h <<_ACEOF
29366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29367_ACEOF
29368
29369fi
29370done
29371
29372
29373 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29374echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29375 cat >conftest.$ac_ext <<_ACEOF
29376/* confdefs.h. */
29377_ACEOF
29378cat confdefs.h >>conftest.$ac_ext
29379cat >>conftest.$ac_ext <<_ACEOF
29380/* end confdefs.h. */
29381#include <wchar.h>
29382int
29383main ()
29384{
29385&_vsnwprintf;
29386 ;
29387 return 0;
29388}
29389_ACEOF
29390rm -f conftest.$ac_objext
29391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29392 (eval $ac_compile) 2>conftest.er1
a848cd7e 29393 ac_status=$?
ac1cb8d3
VS
29394 grep -v '^ *+' conftest.er1 >conftest.err
29395 rm -f conftest.er1
29396 cat conftest.err >&5
a848cd7e
SC
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); } &&
b48a2016
DE
29399 { ac_try='test -z "$ac_cxx_werror_flag"
29400 || test ! -s conftest.err'
ac1cb8d3
VS
29401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402 (eval $ac_try) 2>&5
29403 ac_status=$?
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); }; } &&
29406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408 (eval $ac_try) 2>&5
29409 ac_status=$?
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; }; then
29412 echo "$as_me:$LINENO: result: yes" >&5
29413echo "${ECHO_T}yes" >&6
29414 cat >>confdefs.h <<\_ACEOF
29415#define HAVE__VSNWPRINTF 1
29416_ACEOF
29417
29418else
29419 echo "$as_me: failed program was:" >&5
29420sed 's/^/| /' conftest.$ac_ext >&5
29421
29422echo "$as_me:$LINENO: result: no" >&5
29423echo "${ECHO_T}no" >&6
29424fi
ac1cb8d3 29425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29426fi
29427
29428ac_ext=c
29429ac_cpp='$CPP $CPPFLAGS'
29430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29432ac_compiler_gnu=$ac_cv_c_compiler_gnu
29433
29434
29435
29436
29437if test "$TOOLKIT" != "MSW"; then
29438
29439
29440
29441
29442ac_ext=cc
29443ac_cpp='$CXXCPP $CPPFLAGS'
29444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29447
29448
29449
29450
29451# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29452if test "${with_libiconv_prefix+set}" = set; then
29453 withval="$with_libiconv_prefix"
29454
29455 for dir in `echo "$withval" | tr : ' '`; do
29456 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29457 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29458 done
29459
29460fi;
29461
29462 echo "$as_me:$LINENO: checking for iconv" >&5
29463echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29464if test "${am_cv_func_iconv+set}" = set; then
29465 echo $ECHO_N "(cached) $ECHO_C" >&6
29466else
29467
29468 am_cv_func_iconv="no, consider installing GNU libiconv"
29469 am_cv_lib_iconv=no
29470 cat >conftest.$ac_ext <<_ACEOF
29471/* confdefs.h. */
29472_ACEOF
29473cat confdefs.h >>conftest.$ac_ext
29474cat >>conftest.$ac_ext <<_ACEOF
29475/* end confdefs.h. */
29476#include <stdlib.h>
29477#include <iconv.h>
29478int
29479main ()
29480{
29481iconv_t cd = iconv_open("","");
29482 iconv(cd,NULL,NULL,NULL,NULL);
29483 iconv_close(cd);
29484 ;
29485 return 0;
29486}
29487_ACEOF
29488rm -f conftest.$ac_objext conftest$ac_exeext
29489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29490 (eval $ac_link) 2>conftest.er1
a848cd7e 29491 ac_status=$?
ac1cb8d3
VS
29492 grep -v '^ *+' conftest.er1 >conftest.err
29493 rm -f conftest.er1
29494 cat conftest.err >&5
a848cd7e
SC
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); } &&
b48a2016
DE
29497 { ac_try='test -z "$ac_cxx_werror_flag"
29498 || test ! -s conftest.err'
ac1cb8d3
VS
29499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29500 (eval $ac_try) 2>&5
29501 ac_status=$?
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; } &&
29504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29506 (eval $ac_try) 2>&5
29507 ac_status=$?
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); }; }; then
29510 am_cv_func_iconv=yes
29511else
29512 echo "$as_me: failed program was:" >&5
29513sed 's/^/| /' conftest.$ac_ext >&5
29514
29515fi
ac1cb8d3
VS
29516rm -f conftest.err conftest.$ac_objext \
29517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29518 if test "$am_cv_func_iconv" != yes; then
29519 am_save_LIBS="$LIBS"
29520 LIBS="$LIBS -liconv"
29521 cat >conftest.$ac_ext <<_ACEOF
29522/* confdefs.h. */
29523_ACEOF
29524cat confdefs.h >>conftest.$ac_ext
29525cat >>conftest.$ac_ext <<_ACEOF
29526/* end confdefs.h. */
29527#include <stdlib.h>
29528#include <iconv.h>
29529int
29530main ()
29531{
29532iconv_t cd = iconv_open("","");
29533 iconv(cd,NULL,NULL,NULL,NULL);
29534 iconv_close(cd);
29535 ;
29536 return 0;
29537}
29538_ACEOF
29539rm -f conftest.$ac_objext conftest$ac_exeext
29540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29541 (eval $ac_link) 2>conftest.er1
a848cd7e 29542 ac_status=$?
ac1cb8d3
VS
29543 grep -v '^ *+' conftest.er1 >conftest.err
29544 rm -f conftest.er1
29545 cat conftest.err >&5
a848cd7e
SC
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); } &&
b48a2016
DE
29548 { ac_try='test -z "$ac_cxx_werror_flag"
29549 || test ! -s conftest.err'
ac1cb8d3
VS
29550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29551 (eval $ac_try) 2>&5
29552 ac_status=$?
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); }; } &&
29555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29557 (eval $ac_try) 2>&5
29558 ac_status=$?
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; }; then
29561 am_cv_lib_iconv=yes
29562 am_cv_func_iconv=yes
29563else
29564 echo "$as_me: failed program was:" >&5
29565sed 's/^/| /' conftest.$ac_ext >&5
29566
29567fi
ac1cb8d3
VS
29568rm -f conftest.err conftest.$ac_objext \
29569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29570 LIBS="$am_save_LIBS"
29571 fi
29572
29573fi
29574echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29575echo "${ECHO_T}$am_cv_func_iconv" >&6
29576 if test "$am_cv_func_iconv" = yes; then
29577
29578cat >>confdefs.h <<\_ACEOF
29579#define HAVE_ICONV 1
29580_ACEOF
29581
29582 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29583echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29584if test "${wx_cv_func_iconv_const+set}" = set; then
29585 echo $ECHO_N "(cached) $ECHO_C" >&6
29586else
29587 cat >conftest.$ac_ext <<_ACEOF
29588/* confdefs.h. */
29589_ACEOF
29590cat confdefs.h >>conftest.$ac_ext
29591cat >>conftest.$ac_ext <<_ACEOF
29592/* end confdefs.h. */
29593
29594#include <stdlib.h>
29595#include <iconv.h>
29596extern
29597#ifdef __cplusplus
29598"C"
29599#endif
29600#if defined(__STDC__) || defined(__cplusplus)
29601size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29602#else
29603size_t iconv();
29604#endif
29605
29606int
29607main ()
29608{
29609
29610 ;
29611 return 0;
29612}
29613_ACEOF
29614rm -f conftest.$ac_objext
29615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29616 (eval $ac_compile) 2>conftest.er1
a848cd7e 29617 ac_status=$?
ac1cb8d3
VS
29618 grep -v '^ *+' conftest.er1 >conftest.err
29619 rm -f conftest.er1
29620 cat conftest.err >&5
a848cd7e
SC
29621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622 (exit $ac_status); } &&
b48a2016
DE
29623 { ac_try='test -z "$ac_cxx_werror_flag"
29624 || test ! -s conftest.err'
ac1cb8d3
VS
29625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29626 (eval $ac_try) 2>&5
29627 ac_status=$?
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); }; } &&
29630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29632 (eval $ac_try) 2>&5
29633 ac_status=$?
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; }; then
29636 wx_cv_func_iconv_const="no"
29637else
29638 echo "$as_me: failed program was:" >&5
29639sed 's/^/| /' conftest.$ac_ext >&5
29640
29641wx_cv_func_iconv_const="yes"
29642
29643fi
ac1cb8d3 29644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29645
29646fi
29647echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29648echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29649
29650 iconv_const=
29651 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29652 iconv_const="const"
29653 fi
29654
29655
29656cat >>confdefs.h <<_ACEOF
29657#define ICONV_CONST $iconv_const
29658_ACEOF
29659
29660 fi
29661 LIBICONV=
29662 if test "$am_cv_lib_iconv" = yes; then
29663 LIBICONV="-liconv"
29664 fi
29665
29666
29667LIBS="$LIBICONV $LIBS"
29668ac_ext=c
29669ac_cpp='$CPP $CPPFLAGS'
29670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29672ac_compiler_gnu=$ac_cv_c_compiler_gnu
29673
29674
29675if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29676
29677for ac_func in sigaction
29678do
29679as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29680echo "$as_me:$LINENO: checking for $ac_func" >&5
29681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29682if eval "test \"\${$as_ac_var+set}\" = set"; then
29683 echo $ECHO_N "(cached) $ECHO_C" >&6
29684else
29685 cat >conftest.$ac_ext <<_ACEOF
29686/* confdefs.h. */
29687_ACEOF
29688cat confdefs.h >>conftest.$ac_ext
29689cat >>conftest.$ac_ext <<_ACEOF
29690/* end confdefs.h. */
ac1cb8d3
VS
29691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29693#define $ac_func innocuous_$ac_func
29694
a848cd7e
SC
29695/* System header to define __stub macros and hopefully few prototypes,
29696 which can conflict with char $ac_func (); below.
29697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29698 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29699
a848cd7e
SC
29700#ifdef __STDC__
29701# include <limits.h>
29702#else
29703# include <assert.h>
29704#endif
ac1cb8d3
VS
29705
29706#undef $ac_func
29707
a848cd7e
SC
29708/* Override any gcc2 internal prototype to avoid an error. */
29709#ifdef __cplusplus
29710extern "C"
29711{
29712#endif
29713/* We use char because int might match the return type of a gcc2
29714 builtin and then its argument prototype would still apply. */
29715char $ac_func ();
29716/* The GNU C library defines this for functions which it implements
29717 to always fail with ENOSYS. Some functions are actually named
29718 something starting with __ and the normal name is an alias. */
29719#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29720choke me
29721#else
29722char (*f) () = $ac_func;
29723#endif
29724#ifdef __cplusplus
29725}
29726#endif
29727
29728int
29729main ()
29730{
29731return f != $ac_func;
29732 ;
29733 return 0;
29734}
29735_ACEOF
29736rm -f conftest.$ac_objext conftest$ac_exeext
29737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29738 (eval $ac_link) 2>conftest.er1
a848cd7e 29739 ac_status=$?
ac1cb8d3
VS
29740 grep -v '^ *+' conftest.er1 >conftest.err
29741 rm -f conftest.er1
29742 cat conftest.err >&5
a848cd7e
SC
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); } &&
b48a2016
DE
29745 { ac_try='test -z "$ac_c_werror_flag"
29746 || test ! -s conftest.err'
ac1cb8d3
VS
29747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29748 (eval $ac_try) 2>&5
29749 ac_status=$?
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); }; } &&
29752 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29754 (eval $ac_try) 2>&5
29755 ac_status=$?
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); }; }; then
29758 eval "$as_ac_var=yes"
29759else
29760 echo "$as_me: failed program was:" >&5
29761sed 's/^/| /' conftest.$ac_ext >&5
29762
29763eval "$as_ac_var=no"
29764fi
ac1cb8d3
VS
29765rm -f conftest.err conftest.$ac_objext \
29766 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29767fi
29768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29769echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29770if test `eval echo '${'$as_ac_var'}'` = yes; then
29771 cat >>confdefs.h <<_ACEOF
29772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29773_ACEOF
29774
29775fi
29776done
29777
29778
29779 if test "$ac_cv_func_sigaction" = "no"; then
29780 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29781echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29782 wxUSE_ON_FATAL_EXCEPTION=no
29783 fi
29784
29785 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29786
29787
29788 ac_ext=cc
29789ac_cpp='$CXXCPP $CPPFLAGS'
29790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29793
29794
29795 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29796echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29797if test "${wx_cv_type_sa_handler+set}" = set; then
29798 echo $ECHO_N "(cached) $ECHO_C" >&6
29799else
29800
29801 cat >conftest.$ac_ext <<_ACEOF
29802/* confdefs.h. */
29803_ACEOF
29804cat confdefs.h >>conftest.$ac_ext
29805cat >>conftest.$ac_ext <<_ACEOF
29806/* end confdefs.h. */
29807#include <signal.h>
29808int
29809main ()
29810{
29811
29812 extern void testSigHandler(int);
29813
29814 struct sigaction sa;
29815 sa.sa_handler = testSigHandler;
29816
29817 ;
29818 return 0;
29819}
29820_ACEOF
29821rm -f conftest.$ac_objext
29822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29823 (eval $ac_compile) 2>conftest.er1
a848cd7e 29824 ac_status=$?
ac1cb8d3
VS
29825 grep -v '^ *+' conftest.er1 >conftest.err
29826 rm -f conftest.er1
29827 cat conftest.err >&5
a848cd7e
SC
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); } &&
b48a2016
DE
29830 { ac_try='test -z "$ac_cxx_werror_flag"
29831 || test ! -s conftest.err'
ac1cb8d3
VS
29832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833 (eval $ac_try) 2>&5
29834 ac_status=$?
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; } &&
29837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29839 (eval $ac_try) 2>&5
29840 ac_status=$?
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; }; then
29843
29844 wx_cv_type_sa_handler=int
29845
29846else
29847 echo "$as_me: failed program was:" >&5
29848sed 's/^/| /' conftest.$ac_ext >&5
29849
29850
29851 wx_cv_type_sa_handler=void
29852
29853fi
ac1cb8d3 29854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29855
29856fi
29857echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29858echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29859
29860 ac_ext=c
29861ac_cpp='$CPP $CPPFLAGS'
29862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29864ac_compiler_gnu=$ac_cv_c_compiler_gnu
29865
29866
29867 cat >>confdefs.h <<_ACEOF
29868#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29869_ACEOF
29870
29871 fi
29872fi
29873
29874
29875
29876for ac_func in mkstemp mktemp
29877do
29878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29879echo "$as_me:$LINENO: checking for $ac_func" >&5
29880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29881if eval "test \"\${$as_ac_var+set}\" = set"; then
29882 echo $ECHO_N "(cached) $ECHO_C" >&6
29883else
29884 cat >conftest.$ac_ext <<_ACEOF
29885/* confdefs.h. */
29886_ACEOF
29887cat confdefs.h >>conftest.$ac_ext
29888cat >>conftest.$ac_ext <<_ACEOF
29889/* end confdefs.h. */
ac1cb8d3
VS
29890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29892#define $ac_func innocuous_$ac_func
29893
a848cd7e
SC
29894/* System header to define __stub macros and hopefully few prototypes,
29895 which can conflict with char $ac_func (); below.
29896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29897 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29898
a848cd7e
SC
29899#ifdef __STDC__
29900# include <limits.h>
29901#else
29902# include <assert.h>
29903#endif
ac1cb8d3
VS
29904
29905#undef $ac_func
29906
a848cd7e
SC
29907/* Override any gcc2 internal prototype to avoid an error. */
29908#ifdef __cplusplus
29909extern "C"
29910{
29911#endif
29912/* We use char because int might match the return type of a gcc2
29913 builtin and then its argument prototype would still apply. */
29914char $ac_func ();
29915/* The GNU C library defines this for functions which it implements
29916 to always fail with ENOSYS. Some functions are actually named
29917 something starting with __ and the normal name is an alias. */
29918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29919choke me
29920#else
29921char (*f) () = $ac_func;
29922#endif
29923#ifdef __cplusplus
29924}
29925#endif
29926
29927int
29928main ()
29929{
29930return f != $ac_func;
29931 ;
29932 return 0;
29933}
29934_ACEOF
29935rm -f conftest.$ac_objext conftest$ac_exeext
29936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29937 (eval $ac_link) 2>conftest.er1
a848cd7e 29938 ac_status=$?
ac1cb8d3
VS
29939 grep -v '^ *+' conftest.er1 >conftest.err
29940 rm -f conftest.er1
29941 cat conftest.err >&5
a848cd7e
SC
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } &&
b48a2016
DE
29944 { ac_try='test -z "$ac_c_werror_flag"
29945 || test ! -s conftest.err'
ac1cb8d3
VS
29946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947 (eval $ac_try) 2>&5
29948 ac_status=$?
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; } &&
29951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29953 (eval $ac_try) 2>&5
29954 ac_status=$?
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; }; then
29957 eval "$as_ac_var=yes"
29958else
29959 echo "$as_me: failed program was:" >&5
29960sed 's/^/| /' conftest.$ac_ext >&5
29961
29962eval "$as_ac_var=no"
29963fi
ac1cb8d3
VS
29964rm -f conftest.err conftest.$ac_objext \
29965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29966fi
29967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29969if test `eval echo '${'$as_ac_var'}'` = yes; then
29970 cat >>confdefs.h <<_ACEOF
29971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29972_ACEOF
29973 break
29974fi
29975done
29976
29977
29978echo "$as_me:$LINENO: checking for statfs" >&5
29979echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29980if test "${wx_cv_func_statfs+set}" = set; then
29981 echo $ECHO_N "(cached) $ECHO_C" >&6
29982else
29983 cat >conftest.$ac_ext <<_ACEOF
29984/* confdefs.h. */
29985_ACEOF
29986cat confdefs.h >>conftest.$ac_ext
29987cat >>conftest.$ac_ext <<_ACEOF
29988/* end confdefs.h. */
29989
29990 #if defined(__BSD__)
29991 #include <sys/param.h>
29992 #include <sys/mount.h>
29993 #else
29994 #include <sys/vfs.h>
29995 #endif
29996
29997int
29998main ()
29999{
30000
30001 long l;
30002 struct statfs fs;
30003 statfs("/", &fs);
30004 l = fs.f_bsize;
30005 l += fs.f_blocks;
30006 l += fs.f_bavail;
30007
30008 ;
30009 return 0;
30010}
30011_ACEOF
30012rm -f conftest.$ac_objext
30013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30014 (eval $ac_compile) 2>conftest.er1
a848cd7e 30015 ac_status=$?
ac1cb8d3
VS
30016 grep -v '^ *+' conftest.er1 >conftest.err
30017 rm -f conftest.er1
30018 cat conftest.err >&5
a848cd7e
SC
30019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020 (exit $ac_status); } &&
b48a2016
DE
30021 { ac_try='test -z "$ac_c_werror_flag"
30022 || test ! -s conftest.err'
ac1cb8d3
VS
30023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30024 (eval $ac_try) 2>&5
30025 ac_status=$?
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); }; } &&
30028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30030 (eval $ac_try) 2>&5
30031 ac_status=$?
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033 (exit $ac_status); }; }; then
30034
30035 wx_cv_func_statfs=yes
30036
30037else
30038 echo "$as_me: failed program was:" >&5
30039sed 's/^/| /' conftest.$ac_ext >&5
30040
30041
30042 wx_cv_func_statfs=no
30043
30044
30045fi
ac1cb8d3 30046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30047
30048fi
30049echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30050echo "${ECHO_T}$wx_cv_func_statfs" >&6
30051
30052if test "$wx_cv_func_statfs" = "yes"; then
30053 wx_cv_type_statvfs_t="struct statfs"
30054 cat >>confdefs.h <<\_ACEOF
30055#define HAVE_STATFS 1
30056_ACEOF
30057
30058else
30059 echo "$as_me:$LINENO: checking for statvfs" >&5
30060echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30061if test "${wx_cv_func_statvfs+set}" = set; then
30062 echo $ECHO_N "(cached) $ECHO_C" >&6
30063else
30064 cat >conftest.$ac_ext <<_ACEOF
30065/* confdefs.h. */
30066_ACEOF
30067cat confdefs.h >>conftest.$ac_ext
30068cat >>conftest.$ac_ext <<_ACEOF
30069/* end confdefs.h. */
30070
30071 #include <stddef.h>
30072 #include <sys/statvfs.h>
30073
30074int
30075main ()
30076{
30077
30078 statvfs("/", NULL);
30079
30080 ;
30081 return 0;
30082}
30083_ACEOF
30084rm -f conftest.$ac_objext
30085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30086 (eval $ac_compile) 2>conftest.er1
a848cd7e 30087 ac_status=$?
ac1cb8d3
VS
30088 grep -v '^ *+' conftest.er1 >conftest.err
30089 rm -f conftest.er1
30090 cat conftest.err >&5
a848cd7e
SC
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); } &&
b48a2016
DE
30093 { ac_try='test -z "$ac_c_werror_flag"
30094 || test ! -s conftest.err'
ac1cb8d3
VS
30095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096 (eval $ac_try) 2>&5
30097 ac_status=$?
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); }; } &&
30100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30102 (eval $ac_try) 2>&5
30103 ac_status=$?
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); }; }; then
30106 wx_cv_func_statvfs=yes
30107else
30108 echo "$as_me: failed program was:" >&5
30109sed 's/^/| /' conftest.$ac_ext >&5
30110
30111wx_cv_func_statvfs=no
30112
30113fi
ac1cb8d3 30114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30115
30116fi
30117echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30118echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30119
30120 if test "$wx_cv_func_statvfs" = "yes"; then
30121
30122
30123 ac_ext=cc
30124ac_cpp='$CXXCPP $CPPFLAGS'
30125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30128
30129
30130 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30131echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30132if test "${wx_cv_type_statvfs_t+set}" = set; then
30133 echo $ECHO_N "(cached) $ECHO_C" >&6
30134else
30135 cat >conftest.$ac_ext <<_ACEOF
30136/* confdefs.h. */
30137_ACEOF
30138cat confdefs.h >>conftest.$ac_ext
30139cat >>conftest.$ac_ext <<_ACEOF
30140/* end confdefs.h. */
30141
30142 #include <sys/statvfs.h>
30143
30144int
30145main ()
30146{
30147
30148 long l;
30149 statvfs_t fs;
30150 statvfs("/", &fs);
30151 l = fs.f_bsize;
30152 l += fs.f_blocks;
30153 l += fs.f_bavail;
30154
30155 ;
30156 return 0;
30157}
30158_ACEOF
30159rm -f conftest.$ac_objext
30160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30161 (eval $ac_compile) 2>conftest.er1
a848cd7e 30162 ac_status=$?
ac1cb8d3
VS
30163 grep -v '^ *+' conftest.er1 >conftest.err
30164 rm -f conftest.er1
30165 cat conftest.err >&5
a848cd7e
SC
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); } &&
b48a2016
DE
30168 { ac_try='test -z "$ac_cxx_werror_flag"
30169 || test ! -s conftest.err'
ac1cb8d3
VS
30170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30171 (eval $ac_try) 2>&5
30172 ac_status=$?
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); }; } &&
30175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30177 (eval $ac_try) 2>&5
30178 ac_status=$?
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); }; }; then
30181 wx_cv_type_statvfs_t=statvfs_t
30182else
30183 echo "$as_me: failed program was:" >&5
30184sed 's/^/| /' conftest.$ac_ext >&5
30185
30186
30187 cat >conftest.$ac_ext <<_ACEOF
30188/* confdefs.h. */
30189_ACEOF
30190cat confdefs.h >>conftest.$ac_ext
30191cat >>conftest.$ac_ext <<_ACEOF
30192/* end confdefs.h. */
30193
30194 #include <sys/statvfs.h>
30195
30196int
30197main ()
30198{
30199
30200 long l;
30201 struct statvfs fs;
30202 statvfs("/", &fs);
30203 l = fs.f_bsize;
30204 l += fs.f_blocks;
30205 l += fs.f_bavail;
30206
30207 ;
30208 return 0;
30209}
30210_ACEOF
30211rm -f conftest.$ac_objext
30212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30213 (eval $ac_compile) 2>conftest.er1
a848cd7e 30214 ac_status=$?
ac1cb8d3
VS
30215 grep -v '^ *+' conftest.er1 >conftest.err
30216 rm -f conftest.er1
30217 cat conftest.err >&5
a848cd7e
SC
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); } &&
b48a2016
DE
30220 { ac_try='test -z "$ac_cxx_werror_flag"
30221 || test ! -s conftest.err'
ac1cb8d3
VS
30222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30223 (eval $ac_try) 2>&5
30224 ac_status=$?
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; } &&
30227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30229 (eval $ac_try) 2>&5
30230 ac_status=$?
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); }; }; then
30233 wx_cv_type_statvfs_t="struct statvfs"
30234else
30235 echo "$as_me: failed program was:" >&5
30236sed 's/^/| /' conftest.$ac_ext >&5
30237
30238wx_cv_type_statvfs_t="unknown"
30239
30240fi
ac1cb8d3 30241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30242
30243
30244fi
ac1cb8d3 30245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30246
30247fi
30248echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30249echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30250
30251 ac_ext=c
30252ac_cpp='$CPP $CPPFLAGS'
30253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30255ac_compiler_gnu=$ac_cv_c_compiler_gnu
30256
30257
30258 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30259 cat >>confdefs.h <<\_ACEOF
30260#define HAVE_STATVFS 1
30261_ACEOF
30262
30263 fi
30264 else
30265 wx_cv_type_statvfs_t="unknown"
30266 fi
30267fi
30268
30269if test "$wx_cv_type_statvfs_t" != "unknown"; then
30270 cat >>confdefs.h <<_ACEOF
30271#define WX_STATFS_T $wx_cv_type_statvfs_t
30272_ACEOF
30273
30274else
30275 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30276echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30277fi
30278
30279if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30280
30281
30282for ac_func in fcntl flock
30283do
30284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30285echo "$as_me:$LINENO: checking for $ac_func" >&5
30286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30287if eval "test \"\${$as_ac_var+set}\" = set"; then
30288 echo $ECHO_N "(cached) $ECHO_C" >&6
30289else
30290 cat >conftest.$ac_ext <<_ACEOF
30291/* confdefs.h. */
30292_ACEOF
30293cat confdefs.h >>conftest.$ac_ext
30294cat >>conftest.$ac_ext <<_ACEOF
30295/* end confdefs.h. */
ac1cb8d3
VS
30296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30298#define $ac_func innocuous_$ac_func
30299
a848cd7e
SC
30300/* System header to define __stub macros and hopefully few prototypes,
30301 which can conflict with char $ac_func (); below.
30302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30303 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30304
a848cd7e
SC
30305#ifdef __STDC__
30306# include <limits.h>
30307#else
30308# include <assert.h>
30309#endif
ac1cb8d3
VS
30310
30311#undef $ac_func
30312
a848cd7e
SC
30313/* Override any gcc2 internal prototype to avoid an error. */
30314#ifdef __cplusplus
30315extern "C"
30316{
30317#endif
30318/* We use char because int might match the return type of a gcc2
30319 builtin and then its argument prototype would still apply. */
30320char $ac_func ();
30321/* The GNU C library defines this for functions which it implements
30322 to always fail with ENOSYS. Some functions are actually named
30323 something starting with __ and the normal name is an alias. */
30324#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30325choke me
30326#else
30327char (*f) () = $ac_func;
30328#endif
30329#ifdef __cplusplus
30330}
30331#endif
30332
30333int
30334main ()
30335{
30336return f != $ac_func;
30337 ;
30338 return 0;
30339}
30340_ACEOF
30341rm -f conftest.$ac_objext conftest$ac_exeext
30342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30343 (eval $ac_link) 2>conftest.er1
a848cd7e 30344 ac_status=$?
ac1cb8d3
VS
30345 grep -v '^ *+' conftest.er1 >conftest.err
30346 rm -f conftest.er1
30347 cat conftest.err >&5
a848cd7e
SC
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); } &&
b48a2016
DE
30350 { ac_try='test -z "$ac_c_werror_flag"
30351 || test ! -s conftest.err'
ac1cb8d3
VS
30352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30353 (eval $ac_try) 2>&5
30354 ac_status=$?
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; } &&
30357 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30359 (eval $ac_try) 2>&5
30360 ac_status=$?
30361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362 (exit $ac_status); }; }; then
30363 eval "$as_ac_var=yes"
30364else
30365 echo "$as_me: failed program was:" >&5
30366sed 's/^/| /' conftest.$ac_ext >&5
30367
30368eval "$as_ac_var=no"
30369fi
ac1cb8d3
VS
30370rm -f conftest.err conftest.$ac_objext \
30371 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30372fi
30373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30374echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30375if test `eval echo '${'$as_ac_var'}'` = yes; then
30376 cat >>confdefs.h <<_ACEOF
30377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30378_ACEOF
30379 break
30380fi
30381done
30382
30383
30384 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30385 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30386echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30387 wxUSE_SNGLINST_CHECKER=no
30388 fi
30389fi
30390
30391
30392for ac_func in timegm
30393do
30394as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30395echo "$as_me:$LINENO: checking for $ac_func" >&5
30396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30397if eval "test \"\${$as_ac_var+set}\" = set"; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30399else
30400 cat >conftest.$ac_ext <<_ACEOF
30401/* confdefs.h. */
30402_ACEOF
30403cat confdefs.h >>conftest.$ac_ext
30404cat >>conftest.$ac_ext <<_ACEOF
30405/* end confdefs.h. */
ac1cb8d3
VS
30406/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30408#define $ac_func innocuous_$ac_func
30409
a848cd7e
SC
30410/* System header to define __stub macros and hopefully few prototypes,
30411 which can conflict with char $ac_func (); below.
30412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30413 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30414
a848cd7e
SC
30415#ifdef __STDC__
30416# include <limits.h>
30417#else
30418# include <assert.h>
30419#endif
ac1cb8d3
VS
30420
30421#undef $ac_func
30422
a848cd7e
SC
30423/* Override any gcc2 internal prototype to avoid an error. */
30424#ifdef __cplusplus
30425extern "C"
30426{
30427#endif
30428/* We use char because int might match the return type of a gcc2
30429 builtin and then its argument prototype would still apply. */
30430char $ac_func ();
30431/* The GNU C library defines this for functions which it implements
30432 to always fail with ENOSYS. Some functions are actually named
30433 something starting with __ and the normal name is an alias. */
30434#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30435choke me
30436#else
30437char (*f) () = $ac_func;
30438#endif
30439#ifdef __cplusplus
30440}
30441#endif
30442
30443int
30444main ()
30445{
30446return f != $ac_func;
30447 ;
30448 return 0;
30449}
30450_ACEOF
30451rm -f conftest.$ac_objext conftest$ac_exeext
30452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30453 (eval $ac_link) 2>conftest.er1
a848cd7e 30454 ac_status=$?
ac1cb8d3
VS
30455 grep -v '^ *+' conftest.er1 >conftest.err
30456 rm -f conftest.er1
30457 cat conftest.err >&5
a848cd7e
SC
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); } &&
b48a2016
DE
30460 { ac_try='test -z "$ac_c_werror_flag"
30461 || test ! -s conftest.err'
ac1cb8d3
VS
30462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30463 (eval $ac_try) 2>&5
30464 ac_status=$?
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; } &&
30467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30469 (eval $ac_try) 2>&5
30470 ac_status=$?
30471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472 (exit $ac_status); }; }; then
30473 eval "$as_ac_var=yes"
30474else
30475 echo "$as_me: failed program was:" >&5
30476sed 's/^/| /' conftest.$ac_ext >&5
30477
30478eval "$as_ac_var=no"
30479fi
ac1cb8d3
VS
30480rm -f conftest.err conftest.$ac_objext \
30481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30482fi
30483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30484echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30485if test `eval echo '${'$as_ac_var'}'` = yes; then
30486 cat >>confdefs.h <<_ACEOF
30487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30488_ACEOF
30489
30490fi
30491done
30492
30493
30494
30495
30496for ac_func in putenv setenv
30497do
30498as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30499echo "$as_me:$LINENO: checking for $ac_func" >&5
30500echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30501if eval "test \"\${$as_ac_var+set}\" = set"; then
30502 echo $ECHO_N "(cached) $ECHO_C" >&6
30503else
30504 cat >conftest.$ac_ext <<_ACEOF
30505/* confdefs.h. */
30506_ACEOF
30507cat confdefs.h >>conftest.$ac_ext
30508cat >>conftest.$ac_ext <<_ACEOF
30509/* end confdefs.h. */
ac1cb8d3
VS
30510/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30512#define $ac_func innocuous_$ac_func
30513
a848cd7e
SC
30514/* System header to define __stub macros and hopefully few prototypes,
30515 which can conflict with char $ac_func (); below.
30516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30517 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30518
a848cd7e
SC
30519#ifdef __STDC__
30520# include <limits.h>
30521#else
30522# include <assert.h>
30523#endif
ac1cb8d3
VS
30524
30525#undef $ac_func
30526
a848cd7e
SC
30527/* Override any gcc2 internal prototype to avoid an error. */
30528#ifdef __cplusplus
30529extern "C"
30530{
30531#endif
30532/* We use char because int might match the return type of a gcc2
30533 builtin and then its argument prototype would still apply. */
30534char $ac_func ();
30535/* The GNU C library defines this for functions which it implements
30536 to always fail with ENOSYS. Some functions are actually named
30537 something starting with __ and the normal name is an alias. */
30538#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30539choke me
30540#else
30541char (*f) () = $ac_func;
30542#endif
30543#ifdef __cplusplus
30544}
30545#endif
30546
30547int
30548main ()
30549{
30550return f != $ac_func;
30551 ;
30552 return 0;
30553}
30554_ACEOF
30555rm -f conftest.$ac_objext conftest$ac_exeext
30556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30557 (eval $ac_link) 2>conftest.er1
a848cd7e 30558 ac_status=$?
ac1cb8d3
VS
30559 grep -v '^ *+' conftest.er1 >conftest.err
30560 rm -f conftest.er1
30561 cat conftest.err >&5
a848cd7e
SC
30562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30563 (exit $ac_status); } &&
b48a2016
DE
30564 { ac_try='test -z "$ac_c_werror_flag"
30565 || test ! -s conftest.err'
ac1cb8d3
VS
30566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567 (eval $ac_try) 2>&5
30568 ac_status=$?
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; } &&
30571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30573 (eval $ac_try) 2>&5
30574 ac_status=$?
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); }; }; then
30577 eval "$as_ac_var=yes"
30578else
30579 echo "$as_me: failed program was:" >&5
30580sed 's/^/| /' conftest.$ac_ext >&5
30581
30582eval "$as_ac_var=no"
30583fi
ac1cb8d3
VS
30584rm -f conftest.err conftest.$ac_objext \
30585 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30586fi
30587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30588echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30589if test `eval echo '${'$as_ac_var'}'` = yes; then
30590 cat >>confdefs.h <<_ACEOF
30591#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30592_ACEOF
30593 break
30594fi
30595done
30596
30597
30598HAVE_SOME_SLEEP_FUNC=0
30599if test "$USE_BEOS" = 1; then
30600 cat >>confdefs.h <<\_ACEOF
30601#define HAVE_SLEEP 1
30602_ACEOF
30603
30604 HAVE_SOME_SLEEP_FUNC=1
30605fi
30606
30607if test "$USE_DARWIN" = 1; then
30608 cat >>confdefs.h <<\_ACEOF
30609#define HAVE_USLEEP 1
30610_ACEOF
30611
30612 HAVE_SOME_SLEEP_FUNC=1
30613fi
30614
30615if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30616 POSIX4_LINK=
30617
30618for ac_func in nanosleep
30619do
30620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30621echo "$as_me:$LINENO: checking for $ac_func" >&5
30622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30623if eval "test \"\${$as_ac_var+set}\" = set"; then
30624 echo $ECHO_N "(cached) $ECHO_C" >&6
30625else
30626 cat >conftest.$ac_ext <<_ACEOF
30627/* confdefs.h. */
30628_ACEOF
30629cat confdefs.h >>conftest.$ac_ext
30630cat >>conftest.$ac_ext <<_ACEOF
30631/* end confdefs.h. */
ac1cb8d3
VS
30632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30634#define $ac_func innocuous_$ac_func
30635
a848cd7e
SC
30636/* System header to define __stub macros and hopefully few prototypes,
30637 which can conflict with char $ac_func (); below.
30638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30639 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30640
a848cd7e
SC
30641#ifdef __STDC__
30642# include <limits.h>
30643#else
30644# include <assert.h>
30645#endif
ac1cb8d3
VS
30646
30647#undef $ac_func
30648
a848cd7e
SC
30649/* Override any gcc2 internal prototype to avoid an error. */
30650#ifdef __cplusplus
30651extern "C"
30652{
30653#endif
30654/* We use char because int might match the return type of a gcc2
30655 builtin and then its argument prototype would still apply. */
30656char $ac_func ();
30657/* The GNU C library defines this for functions which it implements
30658 to always fail with ENOSYS. Some functions are actually named
30659 something starting with __ and the normal name is an alias. */
30660#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30661choke me
30662#else
30663char (*f) () = $ac_func;
30664#endif
30665#ifdef __cplusplus
30666}
30667#endif
30668
30669int
30670main ()
30671{
30672return f != $ac_func;
30673 ;
30674 return 0;
30675}
30676_ACEOF
30677rm -f conftest.$ac_objext conftest$ac_exeext
30678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30679 (eval $ac_link) 2>conftest.er1
a848cd7e 30680 ac_status=$?
ac1cb8d3
VS
30681 grep -v '^ *+' conftest.er1 >conftest.err
30682 rm -f conftest.er1
30683 cat conftest.err >&5
a848cd7e
SC
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); } &&
b48a2016
DE
30686 { ac_try='test -z "$ac_c_werror_flag"
30687 || test ! -s conftest.err'
ac1cb8d3
VS
30688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30689 (eval $ac_try) 2>&5
30690 ac_status=$?
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); }; } &&
30693 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30695 (eval $ac_try) 2>&5
30696 ac_status=$?
30697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30698 (exit $ac_status); }; }; then
30699 eval "$as_ac_var=yes"
30700else
30701 echo "$as_me: failed program was:" >&5
30702sed 's/^/| /' conftest.$ac_ext >&5
30703
30704eval "$as_ac_var=no"
30705fi
ac1cb8d3
VS
30706rm -f conftest.err conftest.$ac_objext \
30707 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30708fi
30709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30710echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30711if test `eval echo '${'$as_ac_var'}'` = yes; then
30712 cat >>confdefs.h <<_ACEOF
30713#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30714_ACEOF
30715 cat >>confdefs.h <<\_ACEOF
30716#define HAVE_NANOSLEEP 1
30717_ACEOF
30718
30719else
30720
30721 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30722echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30723if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30724 echo $ECHO_N "(cached) $ECHO_C" >&6
30725else
30726 ac_check_lib_save_LIBS=$LIBS
30727LIBS="-lposix4 $LIBS"
30728cat >conftest.$ac_ext <<_ACEOF
30729/* confdefs.h. */
30730_ACEOF
30731cat confdefs.h >>conftest.$ac_ext
30732cat >>conftest.$ac_ext <<_ACEOF
30733/* end confdefs.h. */
30734
30735/* Override any gcc2 internal prototype to avoid an error. */
30736#ifdef __cplusplus
30737extern "C"
30738#endif
30739/* We use char because int might match the return type of a gcc2
30740 builtin and then its argument prototype would still apply. */
30741char nanosleep ();
30742int
30743main ()
30744{
30745nanosleep ();
30746 ;
30747 return 0;
30748}
30749_ACEOF
30750rm -f conftest.$ac_objext conftest$ac_exeext
30751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30752 (eval $ac_link) 2>conftest.er1
a848cd7e 30753 ac_status=$?
ac1cb8d3
VS
30754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
a848cd7e
SC
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } &&
b48a2016
DE
30759 { ac_try='test -z "$ac_c_werror_flag"
30760 || test ! -s conftest.err'
ac1cb8d3
VS
30761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30762 (eval $ac_try) 2>&5
30763 ac_status=$?
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); }; } &&
30766 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768 (eval $ac_try) 2>&5
30769 ac_status=$?
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; }; then
30772 ac_cv_lib_posix4_nanosleep=yes
30773else
30774 echo "$as_me: failed program was:" >&5
30775sed 's/^/| /' conftest.$ac_ext >&5
30776
30777ac_cv_lib_posix4_nanosleep=no
30778fi
ac1cb8d3
VS
30779rm -f conftest.err conftest.$ac_objext \
30780 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30781LIBS=$ac_check_lib_save_LIBS
30782fi
30783echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30784echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30785if test $ac_cv_lib_posix4_nanosleep = yes; then
30786
30787 cat >>confdefs.h <<\_ACEOF
30788#define HAVE_NANOSLEEP 1
30789_ACEOF
30790
30791 POSIX4_LINK=" -lposix4"
30792
30793else
30794
30795
30796for ac_func in usleep
30797do
30798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30799echo "$as_me:$LINENO: checking for $ac_func" >&5
30800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30801if eval "test \"\${$as_ac_var+set}\" = set"; then
30802 echo $ECHO_N "(cached) $ECHO_C" >&6
30803else
30804 cat >conftest.$ac_ext <<_ACEOF
30805/* confdefs.h. */
30806_ACEOF
30807cat confdefs.h >>conftest.$ac_ext
30808cat >>conftest.$ac_ext <<_ACEOF
30809/* end confdefs.h. */
ac1cb8d3
VS
30810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30812#define $ac_func innocuous_$ac_func
30813
a848cd7e
SC
30814/* System header to define __stub macros and hopefully few prototypes,
30815 which can conflict with char $ac_func (); below.
30816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30817 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30818
a848cd7e
SC
30819#ifdef __STDC__
30820# include <limits.h>
30821#else
30822# include <assert.h>
30823#endif
ac1cb8d3
VS
30824
30825#undef $ac_func
30826
a848cd7e
SC
30827/* Override any gcc2 internal prototype to avoid an error. */
30828#ifdef __cplusplus
30829extern "C"
30830{
30831#endif
30832/* We use char because int might match the return type of a gcc2
30833 builtin and then its argument prototype would still apply. */
30834char $ac_func ();
30835/* The GNU C library defines this for functions which it implements
30836 to always fail with ENOSYS. Some functions are actually named
30837 something starting with __ and the normal name is an alias. */
30838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30839choke me
30840#else
30841char (*f) () = $ac_func;
30842#endif
30843#ifdef __cplusplus
30844}
30845#endif
30846
30847int
30848main ()
30849{
30850return f != $ac_func;
30851 ;
30852 return 0;
30853}
30854_ACEOF
30855rm -f conftest.$ac_objext conftest$ac_exeext
30856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30857 (eval $ac_link) 2>conftest.er1
a848cd7e 30858 ac_status=$?
ac1cb8d3
VS
30859 grep -v '^ *+' conftest.er1 >conftest.err
30860 rm -f conftest.er1
30861 cat conftest.err >&5
a848cd7e
SC
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); } &&
b48a2016
DE
30864 { ac_try='test -z "$ac_c_werror_flag"
30865 || test ! -s conftest.err'
ac1cb8d3
VS
30866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30867 (eval $ac_try) 2>&5
30868 ac_status=$?
30869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870 (exit $ac_status); }; } &&
30871 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30873 (eval $ac_try) 2>&5
30874 ac_status=$?
30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876 (exit $ac_status); }; }; then
30877 eval "$as_ac_var=yes"
30878else
30879 echo "$as_me: failed program was:" >&5
30880sed 's/^/| /' conftest.$ac_ext >&5
30881
30882eval "$as_ac_var=no"
30883fi
ac1cb8d3
VS
30884rm -f conftest.err conftest.$ac_objext \
30885 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30886fi
30887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30888echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30889if test `eval echo '${'$as_ac_var'}'` = yes; then
30890 cat >>confdefs.h <<_ACEOF
30891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30892_ACEOF
30893 cat >>confdefs.h <<\_ACEOF
30894#define HAVE_USLEEP 1
30895_ACEOF
30896
30897else
30898 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30899echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30900
30901fi
30902done
30903
30904
30905
30906fi
30907
30908
30909
30910fi
30911done
30912
30913fi
30914
30915
30916
30917for ac_func in uname gethostname
30918do
30919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30920echo "$as_me:$LINENO: checking for $ac_func" >&5
30921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30922if eval "test \"\${$as_ac_var+set}\" = set"; then
30923 echo $ECHO_N "(cached) $ECHO_C" >&6
30924else
30925 cat >conftest.$ac_ext <<_ACEOF
30926/* confdefs.h. */
30927_ACEOF
30928cat confdefs.h >>conftest.$ac_ext
30929cat >>conftest.$ac_ext <<_ACEOF
30930/* end confdefs.h. */
ac1cb8d3
VS
30931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30933#define $ac_func innocuous_$ac_func
30934
a848cd7e
SC
30935/* System header to define __stub macros and hopefully few prototypes,
30936 which can conflict with char $ac_func (); below.
30937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30938 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30939
a848cd7e
SC
30940#ifdef __STDC__
30941# include <limits.h>
30942#else
30943# include <assert.h>
30944#endif
ac1cb8d3
VS
30945
30946#undef $ac_func
30947
a848cd7e
SC
30948/* Override any gcc2 internal prototype to avoid an error. */
30949#ifdef __cplusplus
30950extern "C"
30951{
30952#endif
30953/* We use char because int might match the return type of a gcc2
30954 builtin and then its argument prototype would still apply. */
30955char $ac_func ();
30956/* The GNU C library defines this for functions which it implements
30957 to always fail with ENOSYS. Some functions are actually named
30958 something starting with __ and the normal name is an alias. */
30959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30960choke me
30961#else
30962char (*f) () = $ac_func;
30963#endif
30964#ifdef __cplusplus
30965}
30966#endif
30967
30968int
30969main ()
30970{
30971return f != $ac_func;
30972 ;
30973 return 0;
30974}
30975_ACEOF
30976rm -f conftest.$ac_objext conftest$ac_exeext
30977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30978 (eval $ac_link) 2>conftest.er1
a848cd7e 30979 ac_status=$?
ac1cb8d3
VS
30980 grep -v '^ *+' conftest.er1 >conftest.err
30981 rm -f conftest.er1
30982 cat conftest.err >&5
a848cd7e
SC
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); } &&
b48a2016
DE
30985 { ac_try='test -z "$ac_c_werror_flag"
30986 || test ! -s conftest.err'
ac1cb8d3
VS
30987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30988 (eval $ac_try) 2>&5
30989 ac_status=$?
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); }; } &&
30992 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30994 (eval $ac_try) 2>&5
30995 ac_status=$?
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); }; }; then
30998 eval "$as_ac_var=yes"
30999else
31000 echo "$as_me: failed program was:" >&5
31001sed 's/^/| /' conftest.$ac_ext >&5
31002
31003eval "$as_ac_var=no"
31004fi
ac1cb8d3
VS
31005rm -f conftest.err conftest.$ac_objext \
31006 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31007fi
31008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31009echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31010if test `eval echo '${'$as_ac_var'}'` = yes; then
31011 cat >>confdefs.h <<_ACEOF
31012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31013_ACEOF
31014 break
31015fi
31016done
31017
31018
31019
31020
31021ac_ext=cc
31022ac_cpp='$CXXCPP $CPPFLAGS'
31023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31026
31027
31028
31029for ac_func in strtok_r
31030do
31031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31032echo "$as_me:$LINENO: checking for $ac_func" >&5
31033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31034if eval "test \"\${$as_ac_var+set}\" = set"; then
31035 echo $ECHO_N "(cached) $ECHO_C" >&6
31036else
31037 cat >conftest.$ac_ext <<_ACEOF
31038/* confdefs.h. */
31039_ACEOF
31040cat confdefs.h >>conftest.$ac_ext
31041cat >>conftest.$ac_ext <<_ACEOF
31042/* end confdefs.h. */
ac1cb8d3
VS
31043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31045#define $ac_func innocuous_$ac_func
31046
a848cd7e
SC
31047/* System header to define __stub macros and hopefully few prototypes,
31048 which can conflict with char $ac_func (); below.
31049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31050 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31051
a848cd7e
SC
31052#ifdef __STDC__
31053# include <limits.h>
31054#else
31055# include <assert.h>
31056#endif
ac1cb8d3
VS
31057
31058#undef $ac_func
31059
a848cd7e
SC
31060/* Override any gcc2 internal prototype to avoid an error. */
31061#ifdef __cplusplus
31062extern "C"
31063{
31064#endif
31065/* We use char because int might match the return type of a gcc2
31066 builtin and then its argument prototype would still apply. */
31067char $ac_func ();
31068/* The GNU C library defines this for functions which it implements
31069 to always fail with ENOSYS. Some functions are actually named
31070 something starting with __ and the normal name is an alias. */
31071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31072choke me
31073#else
31074char (*f) () = $ac_func;
31075#endif
31076#ifdef __cplusplus
31077}
31078#endif
31079
31080int
31081main ()
31082{
31083return f != $ac_func;
31084 ;
31085 return 0;
31086}
31087_ACEOF
31088rm -f conftest.$ac_objext conftest$ac_exeext
31089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31090 (eval $ac_link) 2>conftest.er1
a848cd7e 31091 ac_status=$?
ac1cb8d3
VS
31092 grep -v '^ *+' conftest.er1 >conftest.err
31093 rm -f conftest.er1
31094 cat conftest.err >&5
a848cd7e
SC
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); } &&
b48a2016
DE
31097 { ac_try='test -z "$ac_cxx_werror_flag"
31098 || test ! -s conftest.err'
ac1cb8d3
VS
31099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31100 (eval $ac_try) 2>&5
31101 ac_status=$?
31102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103 (exit $ac_status); }; } &&
31104 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31106 (eval $ac_try) 2>&5
31107 ac_status=$?
31108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109 (exit $ac_status); }; }; then
31110 eval "$as_ac_var=yes"
31111else
31112 echo "$as_me: failed program was:" >&5
31113sed 's/^/| /' conftest.$ac_ext >&5
31114
31115eval "$as_ac_var=no"
31116fi
ac1cb8d3
VS
31117rm -f conftest.err conftest.$ac_objext \
31118 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31119fi
31120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31122if test `eval echo '${'$as_ac_var'}'` = yes; then
31123 cat >>confdefs.h <<_ACEOF
31124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31125_ACEOF
31126
31127fi
31128done
31129
31130
31131ac_ext=c
31132ac_cpp='$CPP $CPPFLAGS'
31133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31135ac_compiler_gnu=$ac_cv_c_compiler_gnu
31136
31137
31138INET_LINK=
31139
31140for ac_func in inet_addr
31141do
31142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31143echo "$as_me:$LINENO: checking for $ac_func" >&5
31144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31145if eval "test \"\${$as_ac_var+set}\" = set"; then
31146 echo $ECHO_N "(cached) $ECHO_C" >&6
31147else
31148 cat >conftest.$ac_ext <<_ACEOF
31149/* confdefs.h. */
31150_ACEOF
31151cat confdefs.h >>conftest.$ac_ext
31152cat >>conftest.$ac_ext <<_ACEOF
31153/* end confdefs.h. */
ac1cb8d3
VS
31154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31156#define $ac_func innocuous_$ac_func
31157
a848cd7e
SC
31158/* System header to define __stub macros and hopefully few prototypes,
31159 which can conflict with char $ac_func (); below.
31160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31161 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31162
a848cd7e
SC
31163#ifdef __STDC__
31164# include <limits.h>
31165#else
31166# include <assert.h>
31167#endif
ac1cb8d3
VS
31168
31169#undef $ac_func
31170
a848cd7e
SC
31171/* Override any gcc2 internal prototype to avoid an error. */
31172#ifdef __cplusplus
31173extern "C"
31174{
31175#endif
31176/* We use char because int might match the return type of a gcc2
31177 builtin and then its argument prototype would still apply. */
31178char $ac_func ();
31179/* The GNU C library defines this for functions which it implements
31180 to always fail with ENOSYS. Some functions are actually named
31181 something starting with __ and the normal name is an alias. */
31182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31183choke me
31184#else
31185char (*f) () = $ac_func;
31186#endif
31187#ifdef __cplusplus
31188}
31189#endif
31190
31191int
31192main ()
31193{
31194return f != $ac_func;
31195 ;
31196 return 0;
31197}
31198_ACEOF
31199rm -f conftest.$ac_objext conftest$ac_exeext
31200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31201 (eval $ac_link) 2>conftest.er1
a848cd7e 31202 ac_status=$?
ac1cb8d3
VS
31203 grep -v '^ *+' conftest.er1 >conftest.err
31204 rm -f conftest.er1
31205 cat conftest.err >&5
a848cd7e
SC
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); } &&
b48a2016
DE
31208 { ac_try='test -z "$ac_c_werror_flag"
31209 || test ! -s conftest.err'
ac1cb8d3
VS
31210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31211 (eval $ac_try) 2>&5
31212 ac_status=$?
31213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214 (exit $ac_status); }; } &&
31215 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31217 (eval $ac_try) 2>&5
31218 ac_status=$?
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); }; }; then
31221 eval "$as_ac_var=yes"
31222else
31223 echo "$as_me: failed program was:" >&5
31224sed 's/^/| /' conftest.$ac_ext >&5
31225
31226eval "$as_ac_var=no"
31227fi
ac1cb8d3
VS
31228rm -f conftest.err conftest.$ac_objext \
31229 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31230fi
31231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31232echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31233if test `eval echo '${'$as_ac_var'}'` = yes; then
31234 cat >>confdefs.h <<_ACEOF
31235#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31236_ACEOF
31237 cat >>confdefs.h <<\_ACEOF
31238#define HAVE_INET_ADDR 1
31239_ACEOF
31240
31241else
31242
31243 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31244echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31245if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31246 echo $ECHO_N "(cached) $ECHO_C" >&6
31247else
31248 ac_check_lib_save_LIBS=$LIBS
31249LIBS="-lnsl $LIBS"
31250cat >conftest.$ac_ext <<_ACEOF
31251/* confdefs.h. */
31252_ACEOF
31253cat confdefs.h >>conftest.$ac_ext
31254cat >>conftest.$ac_ext <<_ACEOF
31255/* end confdefs.h. */
31256
31257/* Override any gcc2 internal prototype to avoid an error. */
31258#ifdef __cplusplus
31259extern "C"
31260#endif
31261/* We use char because int might match the return type of a gcc2
31262 builtin and then its argument prototype would still apply. */
31263char inet_addr ();
31264int
31265main ()
31266{
31267inet_addr ();
31268 ;
31269 return 0;
31270}
31271_ACEOF
31272rm -f conftest.$ac_objext conftest$ac_exeext
31273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31274 (eval $ac_link) 2>conftest.er1
a848cd7e 31275 ac_status=$?
ac1cb8d3
VS
31276 grep -v '^ *+' conftest.er1 >conftest.err
31277 rm -f conftest.er1
31278 cat conftest.err >&5
a848cd7e
SC
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); } &&
b48a2016
DE
31281 { ac_try='test -z "$ac_c_werror_flag"
31282 || test ! -s conftest.err'
ac1cb8d3
VS
31283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31284 (eval $ac_try) 2>&5
31285 ac_status=$?
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); }; } &&
31288 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31290 (eval $ac_try) 2>&5
31291 ac_status=$?
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); }; }; then
31294 ac_cv_lib_nsl_inet_addr=yes
31295else
31296 echo "$as_me: failed program was:" >&5
31297sed 's/^/| /' conftest.$ac_ext >&5
31298
31299ac_cv_lib_nsl_inet_addr=no
31300fi
ac1cb8d3
VS
31301rm -f conftest.err conftest.$ac_objext \
31302 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31303LIBS=$ac_check_lib_save_LIBS
31304fi
31305echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31306echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31307if test $ac_cv_lib_nsl_inet_addr = yes; then
31308 INET_LINK="nsl"
31309else
31310
31311 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31312echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31313if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31314 echo $ECHO_N "(cached) $ECHO_C" >&6
31315else
31316 ac_check_lib_save_LIBS=$LIBS
31317LIBS="-lresolv $LIBS"
31318cat >conftest.$ac_ext <<_ACEOF
31319/* confdefs.h. */
31320_ACEOF
31321cat confdefs.h >>conftest.$ac_ext
31322cat >>conftest.$ac_ext <<_ACEOF
31323/* end confdefs.h. */
31324
31325/* Override any gcc2 internal prototype to avoid an error. */
31326#ifdef __cplusplus
31327extern "C"
31328#endif
31329/* We use char because int might match the return type of a gcc2
31330 builtin and then its argument prototype would still apply. */
31331char inet_addr ();
31332int
31333main ()
31334{
31335inet_addr ();
31336 ;
31337 return 0;
31338}
31339_ACEOF
31340rm -f conftest.$ac_objext conftest$ac_exeext
31341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31342 (eval $ac_link) 2>conftest.er1
a848cd7e 31343 ac_status=$?
ac1cb8d3
VS
31344 grep -v '^ *+' conftest.er1 >conftest.err
31345 rm -f conftest.er1
31346 cat conftest.err >&5
a848cd7e
SC
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); } &&
b48a2016
DE
31349 { ac_try='test -z "$ac_c_werror_flag"
31350 || test ! -s conftest.err'
ac1cb8d3
VS
31351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352 (eval $ac_try) 2>&5
31353 ac_status=$?
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); }; } &&
31356 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31358 (eval $ac_try) 2>&5
31359 ac_status=$?
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; }; then
31362 ac_cv_lib_resolv_inet_addr=yes
31363else
31364 echo "$as_me: failed program was:" >&5
31365sed 's/^/| /' conftest.$ac_ext >&5
31366
31367ac_cv_lib_resolv_inet_addr=no
31368fi
ac1cb8d3
VS
31369rm -f conftest.err conftest.$ac_objext \
31370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31371LIBS=$ac_check_lib_save_LIBS
31372fi
31373echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31374echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31375if test $ac_cv_lib_resolv_inet_addr = yes; then
31376 INET_LINK="resolv"
31377else
31378
31379 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31380echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31381if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31382 echo $ECHO_N "(cached) $ECHO_C" >&6
31383else
31384 ac_check_lib_save_LIBS=$LIBS
31385LIBS="-lsocket $LIBS"
31386cat >conftest.$ac_ext <<_ACEOF
31387/* confdefs.h. */
31388_ACEOF
31389cat confdefs.h >>conftest.$ac_ext
31390cat >>conftest.$ac_ext <<_ACEOF
31391/* end confdefs.h. */
31392
31393/* Override any gcc2 internal prototype to avoid an error. */
31394#ifdef __cplusplus
31395extern "C"
31396#endif
31397/* We use char because int might match the return type of a gcc2
31398 builtin and then its argument prototype would still apply. */
31399char inet_addr ();
31400int
31401main ()
31402{
31403inet_addr ();
31404 ;
31405 return 0;
31406}
31407_ACEOF
31408rm -f conftest.$ac_objext conftest$ac_exeext
31409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31410 (eval $ac_link) 2>conftest.er1
a848cd7e 31411 ac_status=$?
ac1cb8d3
VS
31412 grep -v '^ *+' conftest.er1 >conftest.err
31413 rm -f conftest.er1
31414 cat conftest.err >&5
a848cd7e
SC
31415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416 (exit $ac_status); } &&
b48a2016
DE
31417 { ac_try='test -z "$ac_c_werror_flag"
31418 || test ! -s conftest.err'
ac1cb8d3
VS
31419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31420 (eval $ac_try) 2>&5
31421 ac_status=$?
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); }; } &&
31424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31426 (eval $ac_try) 2>&5
31427 ac_status=$?
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); }; }; then
31430 ac_cv_lib_socket_inet_addr=yes
31431else
31432 echo "$as_me: failed program was:" >&5
31433sed 's/^/| /' conftest.$ac_ext >&5
31434
31435ac_cv_lib_socket_inet_addr=no
31436fi
ac1cb8d3
VS
31437rm -f conftest.err conftest.$ac_objext \
31438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31439LIBS=$ac_check_lib_save_LIBS
31440fi
31441echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31442echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31443if test $ac_cv_lib_socket_inet_addr = yes; then
31444 INET_LINK="socket"
31445
31446fi
31447
31448
31449
31450fi
31451
31452
31453
31454fi
31455
31456
31457
31458fi
31459done
31460
31461
31462
31463for ac_func in inet_aton
31464do
31465as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31466echo "$as_me:$LINENO: checking for $ac_func" >&5
31467echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31468if eval "test \"\${$as_ac_var+set}\" = set"; then
31469 echo $ECHO_N "(cached) $ECHO_C" >&6
31470else
31471 cat >conftest.$ac_ext <<_ACEOF
31472/* confdefs.h. */
31473_ACEOF
31474cat confdefs.h >>conftest.$ac_ext
31475cat >>conftest.$ac_ext <<_ACEOF
31476/* end confdefs.h. */
ac1cb8d3
VS
31477/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31479#define $ac_func innocuous_$ac_func
31480
a848cd7e
SC
31481/* System header to define __stub macros and hopefully few prototypes,
31482 which can conflict with char $ac_func (); below.
31483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31484 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31485
a848cd7e
SC
31486#ifdef __STDC__
31487# include <limits.h>
31488#else
31489# include <assert.h>
31490#endif
ac1cb8d3
VS
31491
31492#undef $ac_func
31493
a848cd7e
SC
31494/* Override any gcc2 internal prototype to avoid an error. */
31495#ifdef __cplusplus
31496extern "C"
31497{
31498#endif
31499/* We use char because int might match the return type of a gcc2
31500 builtin and then its argument prototype would still apply. */
31501char $ac_func ();
31502/* The GNU C library defines this for functions which it implements
31503 to always fail with ENOSYS. Some functions are actually named
31504 something starting with __ and the normal name is an alias. */
31505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31506choke me
31507#else
31508char (*f) () = $ac_func;
31509#endif
31510#ifdef __cplusplus
31511}
31512#endif
31513
31514int
31515main ()
31516{
31517return f != $ac_func;
31518 ;
31519 return 0;
31520}
31521_ACEOF
31522rm -f conftest.$ac_objext conftest$ac_exeext
31523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31524 (eval $ac_link) 2>conftest.er1
a848cd7e 31525 ac_status=$?
ac1cb8d3
VS
31526 grep -v '^ *+' conftest.er1 >conftest.err
31527 rm -f conftest.er1
31528 cat conftest.err >&5
a848cd7e
SC
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); } &&
b48a2016
DE
31531 { ac_try='test -z "$ac_c_werror_flag"
31532 || test ! -s conftest.err'
ac1cb8d3
VS
31533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31534 (eval $ac_try) 2>&5
31535 ac_status=$?
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); }; } &&
31538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31540 (eval $ac_try) 2>&5
31541 ac_status=$?
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; }; then
31544 eval "$as_ac_var=yes"
31545else
31546 echo "$as_me: failed program was:" >&5
31547sed 's/^/| /' conftest.$ac_ext >&5
31548
31549eval "$as_ac_var=no"
31550fi
ac1cb8d3
VS
31551rm -f conftest.err conftest.$ac_objext \
31552 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31553fi
31554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31555echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31556if test `eval echo '${'$as_ac_var'}'` = yes; then
31557 cat >>confdefs.h <<_ACEOF
31558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31559_ACEOF
31560 cat >>confdefs.h <<\_ACEOF
31561#define HAVE_INET_ATON 1
31562_ACEOF
31563
31564else
31565
31566 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31567echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31568echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31569if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31570 echo $ECHO_N "(cached) $ECHO_C" >&6
31571else
31572 ac_check_lib_save_LIBS=$LIBS
31573LIBS="-l$INET_LINK $LIBS"
31574cat >conftest.$ac_ext <<_ACEOF
31575/* confdefs.h. */
31576_ACEOF
31577cat confdefs.h >>conftest.$ac_ext
31578cat >>conftest.$ac_ext <<_ACEOF
31579/* end confdefs.h. */
31580
31581/* Override any gcc2 internal prototype to avoid an error. */
31582#ifdef __cplusplus
31583extern "C"
31584#endif
31585/* We use char because int might match the return type of a gcc2
31586 builtin and then its argument prototype would still apply. */
31587char inet_aton ();
31588int
31589main ()
31590{
31591inet_aton ();
31592 ;
31593 return 0;
31594}
31595_ACEOF
31596rm -f conftest.$ac_objext conftest$ac_exeext
31597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31598 (eval $ac_link) 2>conftest.er1
a848cd7e 31599 ac_status=$?
ac1cb8d3
VS
31600 grep -v '^ *+' conftest.er1 >conftest.err
31601 rm -f conftest.er1
31602 cat conftest.err >&5
a848cd7e
SC
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); } &&
b48a2016
DE
31605 { ac_try='test -z "$ac_c_werror_flag"
31606 || test ! -s conftest.err'
ac1cb8d3
VS
31607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31608 (eval $ac_try) 2>&5
31609 ac_status=$?
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; } &&
31612 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31614 (eval $ac_try) 2>&5
31615 ac_status=$?
31616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617 (exit $ac_status); }; }; then
31618 eval "$as_ac_Lib=yes"
31619else
31620 echo "$as_me: failed program was:" >&5
31621sed 's/^/| /' conftest.$ac_ext >&5
31622
31623eval "$as_ac_Lib=no"
31624fi
ac1cb8d3
VS
31625rm -f conftest.err conftest.$ac_objext \
31626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31627LIBS=$ac_check_lib_save_LIBS
31628fi
31629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31630echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31631if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31632 cat >>confdefs.h <<\_ACEOF
31633#define HAVE_INET_ATON 1
31634_ACEOF
31635
31636fi
31637
31638
31639fi
31640done
31641
31642
31643if test "x$INET_LINK" != "x"; then
31644 cat >>confdefs.h <<\_ACEOF
31645#define HAVE_INET_ADDR 1
31646_ACEOF
31647
31648 INET_LINK=" -l$INET_LINK"
31649fi
31650
31651fi
31652
31653
31654
31655EXTRALIBS_ESD=
31656echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31657echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31658if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31659 echo $ECHO_N "(cached) $ECHO_C" >&6
31660else
31661 ac_check_lib_save_LIBS=$LIBS
31662LIBS="-lesd $LIBS"
31663cat >conftest.$ac_ext <<_ACEOF
31664/* confdefs.h. */
31665_ACEOF
31666cat confdefs.h >>conftest.$ac_ext
31667cat >>conftest.$ac_ext <<_ACEOF
31668/* end confdefs.h. */
31669
31670/* Override any gcc2 internal prototype to avoid an error. */
31671#ifdef __cplusplus
31672extern "C"
31673#endif
31674/* We use char because int might match the return type of a gcc2
31675 builtin and then its argument prototype would still apply. */
31676char esd_close ();
31677int
31678main ()
31679{
31680esd_close ();
31681 ;
31682 return 0;
31683}
31684_ACEOF
31685rm -f conftest.$ac_objext conftest$ac_exeext
31686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31687 (eval $ac_link) 2>conftest.er1
a848cd7e 31688 ac_status=$?
ac1cb8d3
VS
31689 grep -v '^ *+' conftest.er1 >conftest.err
31690 rm -f conftest.er1
31691 cat conftest.err >&5
a848cd7e
SC
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); } &&
b48a2016
DE
31694 { ac_try='test -z "$ac_c_werror_flag"
31695 || test ! -s conftest.err'
ac1cb8d3
VS
31696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31697 (eval $ac_try) 2>&5
31698 ac_status=$?
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; } &&
31701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31703 (eval $ac_try) 2>&5
31704 ac_status=$?
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); }; }; then
31707 ac_cv_lib_esd_esd_close=yes
31708else
31709 echo "$as_me: failed program was:" >&5
31710sed 's/^/| /' conftest.$ac_ext >&5
31711
31712ac_cv_lib_esd_esd_close=no
31713fi
ac1cb8d3
VS
31714rm -f conftest.err conftest.$ac_objext \
31715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31716LIBS=$ac_check_lib_save_LIBS
31717fi
31718echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31719echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31720if test $ac_cv_lib_esd_esd_close = yes; then
31721
31722
31723for ac_header in esd.h
31724do
31725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31726if eval "test \"\${$as_ac_Header+set}\" = set"; then
31727 echo "$as_me:$LINENO: checking for $ac_header" >&5
31728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31729if eval "test \"\${$as_ac_Header+set}\" = set"; then
31730 echo $ECHO_N "(cached) $ECHO_C" >&6
31731fi
31732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31734else
31735 # Is the header compilable?
31736echo "$as_me:$LINENO: checking $ac_header usability" >&5
31737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31738cat >conftest.$ac_ext <<_ACEOF
31739/* confdefs.h. */
31740_ACEOF
31741cat confdefs.h >>conftest.$ac_ext
31742cat >>conftest.$ac_ext <<_ACEOF
31743/* end confdefs.h. */
31744$ac_includes_default
31745#include <$ac_header>
31746_ACEOF
31747rm -f conftest.$ac_objext
31748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31749 (eval $ac_compile) 2>conftest.er1
a848cd7e 31750 ac_status=$?
ac1cb8d3
VS
31751 grep -v '^ *+' conftest.er1 >conftest.err
31752 rm -f conftest.er1
31753 cat conftest.err >&5
a848cd7e
SC
31754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31755 (exit $ac_status); } &&
b48a2016
DE
31756 { ac_try='test -z "$ac_c_werror_flag"
31757 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
31763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31765 (eval $ac_try) 2>&5
31766 ac_status=$?
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); }; }; then
31769 ac_header_compiler=yes
31770else
31771 echo "$as_me: failed program was:" >&5
31772sed 's/^/| /' conftest.$ac_ext >&5
31773
31774ac_header_compiler=no
31775fi
ac1cb8d3 31776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31777echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31778echo "${ECHO_T}$ac_header_compiler" >&6
31779
31780# Is the header present?
31781echo "$as_me:$LINENO: checking $ac_header presence" >&5
31782echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31783cat >conftest.$ac_ext <<_ACEOF
31784/* confdefs.h. */
31785_ACEOF
31786cat confdefs.h >>conftest.$ac_ext
31787cat >>conftest.$ac_ext <<_ACEOF
31788/* end confdefs.h. */
31789#include <$ac_header>
31790_ACEOF
31791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31793 ac_status=$?
31794 grep -v '^ *+' conftest.er1 >conftest.err
31795 rm -f conftest.er1
31796 cat conftest.err >&5
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798 (exit $ac_status); } >/dev/null; then
31799 if test -s conftest.err; then
31800 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31802 else
31803 ac_cpp_err=
31804 fi
31805else
31806 ac_cpp_err=yes
31807fi
31808if test -z "$ac_cpp_err"; then
31809 ac_header_preproc=yes
31810else
31811 echo "$as_me: failed program was:" >&5
31812sed 's/^/| /' conftest.$ac_ext >&5
31813
31814 ac_header_preproc=no
31815fi
31816rm -f conftest.err conftest.$ac_ext
31817echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31818echo "${ECHO_T}$ac_header_preproc" >&6
31819
31820# So? What about this header?
ac1cb8d3
VS
31821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31822 yes:no: )
a848cd7e
SC
31823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31824echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31826echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31827 ac_header_preproc=yes
a848cd7e 31828 ;;
ac1cb8d3 31829 no:yes:* )
a848cd7e
SC
31830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31831echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31833echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31835echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31837echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31839echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31841echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31842 (
31843 cat <<\_ASBOX
ac1cb8d3
VS
31844## ----------------------------------------- ##
31845## Report this to wx-dev@lists.wxwidgets.org ##
31846## ----------------------------------------- ##
a848cd7e
SC
31847_ASBOX
31848 ) |
31849 sed "s/^/$as_me: WARNING: /" >&2
31850 ;;
31851esac
31852echo "$as_me:$LINENO: checking for $ac_header" >&5
31853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31854if eval "test \"\${$as_ac_Header+set}\" = set"; then
31855 echo $ECHO_N "(cached) $ECHO_C" >&6
31856else
ac1cb8d3 31857 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31858fi
31859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31861
31862fi
31863if test `eval echo '${'$as_ac_Header'}'` = yes; then
31864 cat >>confdefs.h <<_ACEOF
31865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31866_ACEOF
31867
31868 EXTRALIBS_ESD="-lesd"
31869
31870fi
31871
31872done
31873
31874
31875fi
31876
31877
31878
31879echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31880echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31881cat >conftest.$ac_ext <<_ACEOF
31882/* confdefs.h. */
31883_ACEOF
31884cat confdefs.h >>conftest.$ac_ext
31885cat >>conftest.$ac_ext <<_ACEOF
31886/* end confdefs.h. */
31887#ifdef __linux__
31888 #include <linux/cdrom.h>
31889 #else
31890 /* For Solaris */
31891 #include <sys/cdio.h>
31892 #endif
31893
31894int
31895main ()
31896{
31897struct cdrom_tocentry entry, old_entry;
31898 ;
31899 return 0;
31900}
31901_ACEOF
31902rm -f conftest.$ac_objext
31903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31904 (eval $ac_compile) 2>conftest.er1
a848cd7e 31905 ac_status=$?
ac1cb8d3
VS
31906 grep -v '^ *+' conftest.er1 >conftest.err
31907 rm -f conftest.er1
31908 cat conftest.err >&5
a848cd7e
SC
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); } &&
b48a2016
DE
31911 { ac_try='test -z "$ac_c_werror_flag"
31912 || test ! -s conftest.err'
ac1cb8d3
VS
31913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31914 (eval $ac_try) 2>&5
31915 ac_status=$?
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); }; } &&
31918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31920 (eval $ac_try) 2>&5
31921 ac_status=$?
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923 (exit $ac_status); }; }; then
31924 echo "$as_me:$LINENO: result: yes" >&5
31925echo "${ECHO_T}yes" >&6
31926 cat >>confdefs.h <<\_ACEOF
31927#define HAVE_KNOWN_CDROM_INTERFACE 1
31928_ACEOF
31929
31930else
31931 echo "$as_me: failed program was:" >&5
31932sed 's/^/| /' conftest.$ac_ext >&5
31933
31934echo "$as_me:$LINENO: result: no" >&5
31935echo "${ECHO_T}no" >&6
31936fi
ac1cb8d3 31937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31938
31939
31940cat >confcache <<\_ACEOF
31941# This file is a shell script that caches the results of configure
31942# tests run on this system so they can be shared between configure
31943# scripts and configure runs, see configure's option --config-cache.
31944# It is not useful on other systems. If it contains results you don't
31945# want to keep, you may remove or edit it.
31946#
31947# config.status only pays attention to the cache file if you give it
31948# the --recheck option to rerun configure.
31949#
31950# `ac_cv_env_foo' variables (set or unset) will be overridden when
31951# loading this file, other *unset* `ac_cv_foo' will be assigned the
31952# following values.
31953
31954_ACEOF
31955
31956# The following way of writing the cache mishandles newlines in values,
31957# but we know of no workaround that is simple, portable, and efficient.
31958# So, don't put newlines in cache variables' values.
31959# Ultrix sh set writes to stderr and can't be redirected directly,
31960# and sets the high bit in the cache file unless we assign to the vars.
31961{
31962 (set) 2>&1 |
31963 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31964 *ac_space=\ *)
31965 # `set' does not quote correctly, so add quotes (double-quote
31966 # substitution turns \\\\ into \\, and sed turns \\ into \).
31967 sed -n \
ac1cb8d3
VS
31968 "s/'/'\\\\''/g;
31969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31970 ;;
31971 *)
31972 # `set' quotes correctly as required by POSIX, so do not add quotes.
31973 sed -n \
ac1cb8d3 31974 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31975 ;;
31976 esac;
31977} |
31978 sed '
31979 t clear
31980 : clear
31981 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31982 t end
31983 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31984 : end' >>confcache
31985if diff $cache_file confcache >/dev/null 2>&1; then :; else
31986 if test -w $cache_file; then
31987 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31988 cat confcache >$cache_file
31989 else
31990 echo "not updating unwritable cache $cache_file"
31991 fi
31992fi
31993rm -f confcache
31994
31995
31996CPP_MT_FLAG=
31997if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31998
31999
32000 THREADS_LINK=
32001 THREADS_CFLAGS=
32002
32003 if test "$wxUSE_THREADS" = "yes" ; then
32004 if test "$USE_BEOS" = 1; then
32005 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32006echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32007 wxUSE_THREADS="no"
32008 fi
32009 fi
32010
32011 if test "$wxUSE_THREADS" = "yes" ; then
32012
32013
32014 THREAD_OPTS="-pthread"
32015 case "${host}" in
32016 *-*-solaris2* | *-*-sunos4* )
32017 if test "x$GCC" = "xyes"; then
32018 THREAD_OPTS="-pthreads $THREAD_OPTS"
32019 else
32020 THREAD_OPTS="-mt $THREAD_OPTS"
32021 fi
32022 ;;
32023 *-*-freebsd*)
32024 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32025 ;;
32026 *-*-darwin* | *-*-cygwin* )
32027 THREAD_OPTS=""
32028 ;;
32029 *-*-aix*)
32030 THREAD_OPTS="pthreads"
32031 ;;
32032 *-hp-hpux* )
32033 if test "x$GCC" != "xyes"; then
32034 THREAD_OPTS=""
32035 fi
32036 ;;
32037
32038 *-*-irix* )
32039 if test "x$GCC" = "xyes"; then
32040 THREAD_OPTS=""
32041 fi
32042 ;;
32043
32044 *-*-*UnixWare*)
32045 if test "x$GCC" != "xyes"; then
32046 THREAD_OPTS="-Ethread"
32047 fi
32048 ;;
32049 esac
32050
32051 THREAD_OPTS="$THREAD_OPTS pthread none"
32052
32053 THREADS_OK=no
32054 for flag in $THREAD_OPTS; do
32055 case $flag in
32056 none)
32057 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32058echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32059 ;;
32060
32061 -*)
32062 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32063echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32064 THREADS_CFLAGS="$flag"
32065 ;;
32066
32067 *)
32068 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32069echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32070 THREADS_LINK="-l$flag"
32071 ;;
32072 esac
32073
32074 save_LIBS="$LIBS"
32075 save_CFLAGS="$CFLAGS"
32076 LIBS="$THREADS_LINK $LIBS"
32077 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32078
32079 cat >conftest.$ac_ext <<_ACEOF
32080/* confdefs.h. */
32081_ACEOF
32082cat confdefs.h >>conftest.$ac_ext
32083cat >>conftest.$ac_ext <<_ACEOF
32084/* end confdefs.h. */
32085#include <pthread.h>
32086int
32087main ()
32088{
32089pthread_create(0,0,0,0);
32090 ;
32091 return 0;
32092}
32093_ACEOF
32094rm -f conftest.$ac_objext conftest$ac_exeext
32095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32096 (eval $ac_link) 2>conftest.er1
a848cd7e 32097 ac_status=$?
ac1cb8d3
VS
32098 grep -v '^ *+' conftest.er1 >conftest.err
32099 rm -f conftest.er1
32100 cat conftest.err >&5
a848cd7e
SC
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); } &&
b48a2016
DE
32103 { ac_try='test -z "$ac_c_werror_flag"
32104 || test ! -s conftest.err'
ac1cb8d3
VS
32105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32106 (eval $ac_try) 2>&5
32107 ac_status=$?
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; } &&
32110 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32112 (eval $ac_try) 2>&5
32113 ac_status=$?
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); }; }; then
32116 THREADS_OK=yes
32117else
32118 echo "$as_me: failed program was:" >&5
32119sed 's/^/| /' conftest.$ac_ext >&5
32120
32121fi
ac1cb8d3
VS
32122rm -f conftest.err conftest.$ac_objext \
32123 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32124
32125 LIBS="$save_LIBS"
32126 CFLAGS="$save_CFLAGS"
32127
32128 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32129echo "${ECHO_T}$THREADS_OK" >&6
32130 if test "x$THREADS_OK" = "xyes"; then
32131 break;
32132 fi
32133
32134 THREADS_LINK=""
32135 THREADS_CFLAGS=""
32136 done
32137
32138 if test "x$THREADS_OK" != "xyes"; then
32139 wxUSE_THREADS=no
32140 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32141echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32142 else
32143 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32144 LIBS="$THREADS_LINK $LIBS"
32145
32146 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32147echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32148 flag=no
32149 case "${host}" in
32150 *-aix*)
32151 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32152 flag="-D_THREAD_SAFE"
32153 ;;
32154 *-freebsd*)
32155 flag="-D_THREAD_SAFE"
32156 ;;
32157 *-hp-hpux* )
32158 flag="-D_REENTRANT"
32159 if test "x$GCC" != "xyes"; then
32160 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32161
32162 LIBS="$LIBS -lcma"
a848cd7e
SC
32163 fi
32164 ;;
32165 *solaris* | alpha*-osf*)
32166 flag="-D_REENTRANT"
32167 ;;
32168 esac
32169 echo "$as_me:$LINENO: result: ${flag}" >&5
32170echo "${ECHO_T}${flag}" >&6
32171 if test "x$flag" != xno; then
32172 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32173 fi
32174
32175 if test "x$THREADS_CFLAGS" != "x"; then
32176 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32177 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32178 fi
32179 fi
32180 fi
32181
32182 if test "$wxUSE_THREADS" = "yes" ; then
32183
32184for ac_func in thr_setconcurrency
32185do
32186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32187echo "$as_me:$LINENO: checking for $ac_func" >&5
32188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32189if eval "test \"\${$as_ac_var+set}\" = set"; then
32190 echo $ECHO_N "(cached) $ECHO_C" >&6
32191else
32192 cat >conftest.$ac_ext <<_ACEOF
32193/* confdefs.h. */
32194_ACEOF
32195cat confdefs.h >>conftest.$ac_ext
32196cat >>conftest.$ac_ext <<_ACEOF
32197/* end confdefs.h. */
ac1cb8d3
VS
32198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32200#define $ac_func innocuous_$ac_func
32201
a848cd7e
SC
32202/* System header to define __stub macros and hopefully few prototypes,
32203 which can conflict with char $ac_func (); below.
32204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32205 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32206
a848cd7e
SC
32207#ifdef __STDC__
32208# include <limits.h>
32209#else
32210# include <assert.h>
32211#endif
ac1cb8d3
VS
32212
32213#undef $ac_func
32214
a848cd7e
SC
32215/* Override any gcc2 internal prototype to avoid an error. */
32216#ifdef __cplusplus
32217extern "C"
32218{
32219#endif
32220/* We use char because int might match the return type of a gcc2
32221 builtin and then its argument prototype would still apply. */
32222char $ac_func ();
32223/* The GNU C library defines this for functions which it implements
32224 to always fail with ENOSYS. Some functions are actually named
32225 something starting with __ and the normal name is an alias. */
32226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32227choke me
32228#else
32229char (*f) () = $ac_func;
32230#endif
32231#ifdef __cplusplus
32232}
32233#endif
32234
32235int
32236main ()
32237{
32238return f != $ac_func;
32239 ;
32240 return 0;
32241}
32242_ACEOF
32243rm -f conftest.$ac_objext conftest$ac_exeext
32244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32245 (eval $ac_link) 2>conftest.er1
a848cd7e 32246 ac_status=$?
ac1cb8d3
VS
32247 grep -v '^ *+' conftest.er1 >conftest.err
32248 rm -f conftest.er1
32249 cat conftest.err >&5
a848cd7e
SC
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); } &&
b48a2016
DE
32252 { ac_try='test -z "$ac_c_werror_flag"
32253 || test ! -s conftest.err'
ac1cb8d3
VS
32254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32255 (eval $ac_try) 2>&5
32256 ac_status=$?
32257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258 (exit $ac_status); }; } &&
32259 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32261 (eval $ac_try) 2>&5
32262 ac_status=$?
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; }; then
32265 eval "$as_ac_var=yes"
32266else
32267 echo "$as_me: failed program was:" >&5
32268sed 's/^/| /' conftest.$ac_ext >&5
32269
32270eval "$as_ac_var=no"
32271fi
ac1cb8d3
VS
32272rm -f conftest.err conftest.$ac_objext \
32273 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32274fi
32275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32276echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32277if test `eval echo '${'$as_ac_var'}'` = yes; then
32278 cat >>confdefs.h <<_ACEOF
32279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32280_ACEOF
32281
32282fi
32283done
32284
32285
32286
32287for ac_header in sched.h
32288do
32289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32290if eval "test \"\${$as_ac_Header+set}\" = set"; then
32291 echo "$as_me:$LINENO: checking for $ac_header" >&5
32292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32293if eval "test \"\${$as_ac_Header+set}\" = set"; then
32294 echo $ECHO_N "(cached) $ECHO_C" >&6
32295fi
32296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32298else
32299 # Is the header compilable?
32300echo "$as_me:$LINENO: checking $ac_header usability" >&5
32301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32302cat >conftest.$ac_ext <<_ACEOF
32303/* confdefs.h. */
32304_ACEOF
32305cat confdefs.h >>conftest.$ac_ext
32306cat >>conftest.$ac_ext <<_ACEOF
32307/* end confdefs.h. */
32308$ac_includes_default
32309#include <$ac_header>
32310_ACEOF
32311rm -f conftest.$ac_objext
32312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32313 (eval $ac_compile) 2>conftest.er1
a848cd7e 32314 ac_status=$?
ac1cb8d3
VS
32315 grep -v '^ *+' conftest.er1 >conftest.err
32316 rm -f conftest.er1
32317 cat conftest.err >&5
a848cd7e
SC
32318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); } &&
b48a2016
DE
32320 { ac_try='test -z "$ac_c_werror_flag"
32321 || test ! -s conftest.err'
ac1cb8d3
VS
32322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32323 (eval $ac_try) 2>&5
32324 ac_status=$?
32325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); }; } &&
32327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32329 (eval $ac_try) 2>&5
32330 ac_status=$?
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); }; }; then
32333 ac_header_compiler=yes
32334else
32335 echo "$as_me: failed program was:" >&5
32336sed 's/^/| /' conftest.$ac_ext >&5
32337
32338ac_header_compiler=no
32339fi
ac1cb8d3 32340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32342echo "${ECHO_T}$ac_header_compiler" >&6
32343
32344# Is the header present?
32345echo "$as_me:$LINENO: checking $ac_header presence" >&5
32346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32347cat >conftest.$ac_ext <<_ACEOF
32348/* confdefs.h. */
32349_ACEOF
32350cat confdefs.h >>conftest.$ac_ext
32351cat >>conftest.$ac_ext <<_ACEOF
32352/* end confdefs.h. */
32353#include <$ac_header>
32354_ACEOF
32355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32357 ac_status=$?
32358 grep -v '^ *+' conftest.er1 >conftest.err
32359 rm -f conftest.er1
32360 cat conftest.err >&5
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); } >/dev/null; then
32363 if test -s conftest.err; then
32364 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32366 else
32367 ac_cpp_err=
32368 fi
32369else
32370 ac_cpp_err=yes
32371fi
32372if test -z "$ac_cpp_err"; then
32373 ac_header_preproc=yes
32374else
32375 echo "$as_me: failed program was:" >&5
32376sed 's/^/| /' conftest.$ac_ext >&5
32377
32378 ac_header_preproc=no
32379fi
32380rm -f conftest.err conftest.$ac_ext
32381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32382echo "${ECHO_T}$ac_header_preproc" >&6
32383
32384# So? What about this header?
ac1cb8d3
VS
32385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32386 yes:no: )
a848cd7e
SC
32387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32391 ac_header_preproc=yes
a848cd7e 32392 ;;
ac1cb8d3 32393 no:yes:* )
a848cd7e
SC
32394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32401echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32406 (
32407 cat <<\_ASBOX
ac1cb8d3
VS
32408## ----------------------------------------- ##
32409## Report this to wx-dev@lists.wxwidgets.org ##
32410## ----------------------------------------- ##
a848cd7e
SC
32411_ASBOX
32412 ) |
32413 sed "s/^/$as_me: WARNING: /" >&2
32414 ;;
32415esac
32416echo "$as_me:$LINENO: checking for $ac_header" >&5
32417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32418if eval "test \"\${$as_ac_Header+set}\" = set"; then
32419 echo $ECHO_N "(cached) $ECHO_C" >&6
32420else
ac1cb8d3 32421 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32422fi
32423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32425
32426fi
32427if test `eval echo '${'$as_ac_Header'}'` = yes; then
32428 cat >>confdefs.h <<_ACEOF
32429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32430_ACEOF
32431
32432fi
32433
32434done
32435
32436 if test "$ac_cv_header_sched_h" = "yes"; then
32437 echo "$as_me:$LINENO: checking for sched_yield" >&5
32438echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32439if test "${ac_cv_func_sched_yield+set}" = set; then
32440 echo $ECHO_N "(cached) $ECHO_C" >&6
32441else
32442 cat >conftest.$ac_ext <<_ACEOF
32443/* confdefs.h. */
32444_ACEOF
32445cat confdefs.h >>conftest.$ac_ext
32446cat >>conftest.$ac_ext <<_ACEOF
32447/* end confdefs.h. */
ac1cb8d3
VS
32448/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32450#define sched_yield innocuous_sched_yield
32451
a848cd7e
SC
32452/* System header to define __stub macros and hopefully few prototypes,
32453 which can conflict with char sched_yield (); below.
32454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32455 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32456
a848cd7e
SC
32457#ifdef __STDC__
32458# include <limits.h>
32459#else
32460# include <assert.h>
32461#endif
ac1cb8d3
VS
32462
32463#undef sched_yield
32464
a848cd7e
SC
32465/* Override any gcc2 internal prototype to avoid an error. */
32466#ifdef __cplusplus
32467extern "C"
32468{
32469#endif
32470/* We use char because int might match the return type of a gcc2
32471 builtin and then its argument prototype would still apply. */
32472char sched_yield ();
32473/* The GNU C library defines this for functions which it implements
32474 to always fail with ENOSYS. Some functions are actually named
32475 something starting with __ and the normal name is an alias. */
32476#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32477choke me
32478#else
32479char (*f) () = sched_yield;
32480#endif
32481#ifdef __cplusplus
32482}
32483#endif
32484
32485int
32486main ()
32487{
32488return f != sched_yield;
32489 ;
32490 return 0;
32491}
32492_ACEOF
32493rm -f conftest.$ac_objext conftest$ac_exeext
32494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32495 (eval $ac_link) 2>conftest.er1
a848cd7e 32496 ac_status=$?
ac1cb8d3
VS
32497 grep -v '^ *+' conftest.er1 >conftest.err
32498 rm -f conftest.er1
32499 cat conftest.err >&5
a848cd7e
SC
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); } &&
b48a2016
DE
32502 { ac_try='test -z "$ac_c_werror_flag"
32503 || test ! -s conftest.err'
ac1cb8d3
VS
32504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32505 (eval $ac_try) 2>&5
32506 ac_status=$?
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; } &&
32509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511 (eval $ac_try) 2>&5
32512 ac_status=$?
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; }; then
32515 ac_cv_func_sched_yield=yes
32516else
32517 echo "$as_me: failed program was:" >&5
32518sed 's/^/| /' conftest.$ac_ext >&5
32519
32520ac_cv_func_sched_yield=no
32521fi
ac1cb8d3
VS
32522rm -f conftest.err conftest.$ac_objext \
32523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32524fi
32525echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32526echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32527if test $ac_cv_func_sched_yield = yes; then
32528 cat >>confdefs.h <<\_ACEOF
32529#define HAVE_SCHED_YIELD 1
32530_ACEOF
32531
32532else
32533
32534 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32535echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32536if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32537 echo $ECHO_N "(cached) $ECHO_C" >&6
32538else
32539 ac_check_lib_save_LIBS=$LIBS
32540LIBS="-lposix4 $LIBS"
32541cat >conftest.$ac_ext <<_ACEOF
32542/* confdefs.h. */
32543_ACEOF
32544cat confdefs.h >>conftest.$ac_ext
32545cat >>conftest.$ac_ext <<_ACEOF
32546/* end confdefs.h. */
32547
32548/* Override any gcc2 internal prototype to avoid an error. */
32549#ifdef __cplusplus
32550extern "C"
32551#endif
32552/* We use char because int might match the return type of a gcc2
32553 builtin and then its argument prototype would still apply. */
32554char sched_yield ();
32555int
32556main ()
32557{
32558sched_yield ();
32559 ;
32560 return 0;
32561}
32562_ACEOF
32563rm -f conftest.$ac_objext conftest$ac_exeext
32564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32565 (eval $ac_link) 2>conftest.er1
a848cd7e 32566 ac_status=$?
ac1cb8d3
VS
32567 grep -v '^ *+' conftest.er1 >conftest.err
32568 rm -f conftest.er1
32569 cat conftest.err >&5
a848cd7e
SC
32570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571 (exit $ac_status); } &&
b48a2016
DE
32572 { ac_try='test -z "$ac_c_werror_flag"
32573 || test ! -s conftest.err'
ac1cb8d3
VS
32574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32575 (eval $ac_try) 2>&5
32576 ac_status=$?
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); }; } &&
32579 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32581 (eval $ac_try) 2>&5
32582 ac_status=$?
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); }; }; then
32585 ac_cv_lib_posix4_sched_yield=yes
32586else
32587 echo "$as_me: failed program was:" >&5
32588sed 's/^/| /' conftest.$ac_ext >&5
32589
32590ac_cv_lib_posix4_sched_yield=no
32591fi
ac1cb8d3
VS
32592rm -f conftest.err conftest.$ac_objext \
32593 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32594LIBS=$ac_check_lib_save_LIBS
32595fi
32596echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32597echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32598if test $ac_cv_lib_posix4_sched_yield = yes; then
32599 cat >>confdefs.h <<\_ACEOF
32600#define HAVE_SCHED_YIELD 1
32601_ACEOF
32602 POSIX4_LINK=" -lposix4"
32603else
32604 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32605echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32606
32607fi
32608
32609
32610
32611fi
32612
32613 fi
32614
32615 HAVE_PRIOR_FUNCS=0
32616 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32617echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32618if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32619 echo $ECHO_N "(cached) $ECHO_C" >&6
32620else
32621 cat >conftest.$ac_ext <<_ACEOF
32622/* confdefs.h. */
32623_ACEOF
32624cat confdefs.h >>conftest.$ac_ext
32625cat >>conftest.$ac_ext <<_ACEOF
32626/* end confdefs.h. */
ac1cb8d3
VS
32627/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32629#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32630
a848cd7e
SC
32631/* System header to define __stub macros and hopefully few prototypes,
32632 which can conflict with char pthread_attr_getschedpolicy (); below.
32633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32634 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32635
a848cd7e
SC
32636#ifdef __STDC__
32637# include <limits.h>
32638#else
32639# include <assert.h>
32640#endif
ac1cb8d3
VS
32641
32642#undef pthread_attr_getschedpolicy
32643
a848cd7e
SC
32644/* Override any gcc2 internal prototype to avoid an error. */
32645#ifdef __cplusplus
32646extern "C"
32647{
32648#endif
32649/* We use char because int might match the return type of a gcc2
32650 builtin and then its argument prototype would still apply. */
32651char pthread_attr_getschedpolicy ();
32652/* The GNU C library defines this for functions which it implements
32653 to always fail with ENOSYS. Some functions are actually named
32654 something starting with __ and the normal name is an alias. */
32655#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32656choke me
32657#else
32658char (*f) () = pthread_attr_getschedpolicy;
32659#endif
32660#ifdef __cplusplus
32661}
32662#endif
32663
32664int
32665main ()
32666{
32667return f != pthread_attr_getschedpolicy;
32668 ;
32669 return 0;
32670}
32671_ACEOF
32672rm -f conftest.$ac_objext conftest$ac_exeext
32673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32674 (eval $ac_link) 2>conftest.er1
a848cd7e 32675 ac_status=$?
ac1cb8d3
VS
32676 grep -v '^ *+' conftest.er1 >conftest.err
32677 rm -f conftest.er1
32678 cat conftest.err >&5
a848cd7e
SC
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); } &&
b48a2016
DE
32681 { ac_try='test -z "$ac_c_werror_flag"
32682 || test ! -s conftest.err'
ac1cb8d3
VS
32683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32684 (eval $ac_try) 2>&5
32685 ac_status=$?
32686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687 (exit $ac_status); }; } &&
32688 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32690 (eval $ac_try) 2>&5
32691 ac_status=$?
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); }; }; then
32694 ac_cv_func_pthread_attr_getschedpolicy=yes
32695else
32696 echo "$as_me: failed program was:" >&5
32697sed 's/^/| /' conftest.$ac_ext >&5
32698
32699ac_cv_func_pthread_attr_getschedpolicy=no
32700fi
ac1cb8d3
VS
32701rm -f conftest.err conftest.$ac_objext \
32702 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32703fi
32704echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32705echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32706if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32707 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32708echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32709if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32710 echo $ECHO_N "(cached) $ECHO_C" >&6
32711else
32712 cat >conftest.$ac_ext <<_ACEOF
32713/* confdefs.h. */
32714_ACEOF
32715cat confdefs.h >>conftest.$ac_ext
32716cat >>conftest.$ac_ext <<_ACEOF
32717/* end confdefs.h. */
ac1cb8d3
VS
32718/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32720#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32721
a848cd7e
SC
32722/* System header to define __stub macros and hopefully few prototypes,
32723 which can conflict with char pthread_attr_setschedparam (); below.
32724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32725 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32726
a848cd7e
SC
32727#ifdef __STDC__
32728# include <limits.h>
32729#else
32730# include <assert.h>
32731#endif
ac1cb8d3
VS
32732
32733#undef pthread_attr_setschedparam
32734
a848cd7e
SC
32735/* Override any gcc2 internal prototype to avoid an error. */
32736#ifdef __cplusplus
32737extern "C"
32738{
32739#endif
32740/* We use char because int might match the return type of a gcc2
32741 builtin and then its argument prototype would still apply. */
32742char pthread_attr_setschedparam ();
32743/* The GNU C library defines this for functions which it implements
32744 to always fail with ENOSYS. Some functions are actually named
32745 something starting with __ and the normal name is an alias. */
32746#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32747choke me
32748#else
32749char (*f) () = pthread_attr_setschedparam;
32750#endif
32751#ifdef __cplusplus
32752}
32753#endif
32754
32755int
32756main ()
32757{
32758return f != pthread_attr_setschedparam;
32759 ;
32760 return 0;
32761}
32762_ACEOF
32763rm -f conftest.$ac_objext conftest$ac_exeext
32764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32765 (eval $ac_link) 2>conftest.er1
a848cd7e 32766 ac_status=$?
ac1cb8d3
VS
32767 grep -v '^ *+' conftest.er1 >conftest.err
32768 rm -f conftest.er1
32769 cat conftest.err >&5
a848cd7e
SC
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); } &&
b48a2016
DE
32772 { ac_try='test -z "$ac_c_werror_flag"
32773 || test ! -s conftest.err'
ac1cb8d3
VS
32774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32775 (eval $ac_try) 2>&5
32776 ac_status=$?
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); }; } &&
32779 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32781 (eval $ac_try) 2>&5
32782 ac_status=$?
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; }; then
32785 ac_cv_func_pthread_attr_setschedparam=yes
32786else
32787 echo "$as_me: failed program was:" >&5
32788sed 's/^/| /' conftest.$ac_ext >&5
32789
32790ac_cv_func_pthread_attr_setschedparam=no
32791fi
ac1cb8d3
VS
32792rm -f conftest.err conftest.$ac_objext \
32793 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32794fi
32795echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32796echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32797if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32798 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32799echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32800if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32801 echo $ECHO_N "(cached) $ECHO_C" >&6
32802else
32803 cat >conftest.$ac_ext <<_ACEOF
32804/* confdefs.h. */
32805_ACEOF
32806cat confdefs.h >>conftest.$ac_ext
32807cat >>conftest.$ac_ext <<_ACEOF
32808/* end confdefs.h. */
ac1cb8d3
VS
32809/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32811#define sched_get_priority_max innocuous_sched_get_priority_max
32812
a848cd7e
SC
32813/* System header to define __stub macros and hopefully few prototypes,
32814 which can conflict with char sched_get_priority_max (); below.
32815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32816 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32817
a848cd7e
SC
32818#ifdef __STDC__
32819# include <limits.h>
32820#else
32821# include <assert.h>
32822#endif
ac1cb8d3
VS
32823
32824#undef sched_get_priority_max
32825
a848cd7e
SC
32826/* Override any gcc2 internal prototype to avoid an error. */
32827#ifdef __cplusplus
32828extern "C"
32829{
32830#endif
32831/* We use char because int might match the return type of a gcc2
32832 builtin and then its argument prototype would still apply. */
32833char sched_get_priority_max ();
32834/* The GNU C library defines this for functions which it implements
32835 to always fail with ENOSYS. Some functions are actually named
32836 something starting with __ and the normal name is an alias. */
32837#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32838choke me
32839#else
32840char (*f) () = sched_get_priority_max;
32841#endif
32842#ifdef __cplusplus
32843}
32844#endif
32845
32846int
32847main ()
32848{
32849return f != sched_get_priority_max;
32850 ;
32851 return 0;
32852}
32853_ACEOF
32854rm -f conftest.$ac_objext conftest$ac_exeext
32855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32856 (eval $ac_link) 2>conftest.er1
a848cd7e 32857 ac_status=$?
ac1cb8d3
VS
32858 grep -v '^ *+' conftest.er1 >conftest.err
32859 rm -f conftest.er1
32860 cat conftest.err >&5
a848cd7e
SC
32861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 (exit $ac_status); } &&
b48a2016
DE
32863 { ac_try='test -z "$ac_c_werror_flag"
32864 || test ! -s conftest.err'
ac1cb8d3
VS
32865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32866 (eval $ac_try) 2>&5
32867 ac_status=$?
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); }; } &&
32870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32872 (eval $ac_try) 2>&5
32873 ac_status=$?
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); }; }; then
32876 ac_cv_func_sched_get_priority_max=yes
32877else
32878 echo "$as_me: failed program was:" >&5
32879sed 's/^/| /' conftest.$ac_ext >&5
32880
32881ac_cv_func_sched_get_priority_max=no
32882fi
ac1cb8d3
VS
32883rm -f conftest.err conftest.$ac_objext \
32884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32885fi
32886echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32887echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32888if test $ac_cv_func_sched_get_priority_max = yes; then
32889 HAVE_PRIOR_FUNCS=1
32890else
32891 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32892echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32893if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32894 echo $ECHO_N "(cached) $ECHO_C" >&6
32895else
32896 ac_check_lib_save_LIBS=$LIBS
32897LIBS="-lposix4 $LIBS"
32898cat >conftest.$ac_ext <<_ACEOF
32899/* confdefs.h. */
32900_ACEOF
32901cat confdefs.h >>conftest.$ac_ext
32902cat >>conftest.$ac_ext <<_ACEOF
32903/* end confdefs.h. */
32904
32905/* Override any gcc2 internal prototype to avoid an error. */
32906#ifdef __cplusplus
32907extern "C"
32908#endif
32909/* We use char because int might match the return type of a gcc2
32910 builtin and then its argument prototype would still apply. */
32911char sched_get_priority_max ();
32912int
32913main ()
32914{
32915sched_get_priority_max ();
32916 ;
32917 return 0;
32918}
32919_ACEOF
32920rm -f conftest.$ac_objext conftest$ac_exeext
32921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32922 (eval $ac_link) 2>conftest.er1
a848cd7e 32923 ac_status=$?
ac1cb8d3
VS
32924 grep -v '^ *+' conftest.er1 >conftest.err
32925 rm -f conftest.er1
32926 cat conftest.err >&5
a848cd7e
SC
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); } &&
b48a2016
DE
32929 { ac_try='test -z "$ac_c_werror_flag"
32930 || test ! -s conftest.err'
ac1cb8d3
VS
32931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32932 (eval $ac_try) 2>&5
32933 ac_status=$?
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); }; } &&
32936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32938 (eval $ac_try) 2>&5
32939 ac_status=$?
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); }; }; then
32942 ac_cv_lib_posix4_sched_get_priority_max=yes
32943else
32944 echo "$as_me: failed program was:" >&5
32945sed 's/^/| /' conftest.$ac_ext >&5
32946
32947ac_cv_lib_posix4_sched_get_priority_max=no
32948fi
ac1cb8d3
VS
32949rm -f conftest.err conftest.$ac_objext \
32950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32951LIBS=$ac_check_lib_save_LIBS
32952fi
32953echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32954echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32955if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32956
32957 HAVE_PRIOR_FUNCS=1
32958 POSIX4_LINK=" -lposix4"
32959
32960fi
32961
32962
32963fi
32964
32965
32966fi
32967
32968
32969fi
32970
32971
32972 if test "$HAVE_PRIOR_FUNCS" = 1; then
32973 cat >>confdefs.h <<\_ACEOF
32974#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32975_ACEOF
32976
32977 else
32978 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32979echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32980 fi
32981
32982 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32983echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32984if test "${ac_cv_func_pthread_cancel+set}" = set; then
32985 echo $ECHO_N "(cached) $ECHO_C" >&6
32986else
32987 cat >conftest.$ac_ext <<_ACEOF
32988/* confdefs.h. */
32989_ACEOF
32990cat confdefs.h >>conftest.$ac_ext
32991cat >>conftest.$ac_ext <<_ACEOF
32992/* end confdefs.h. */
ac1cb8d3
VS
32993/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32995#define pthread_cancel innocuous_pthread_cancel
32996
a848cd7e
SC
32997/* System header to define __stub macros and hopefully few prototypes,
32998 which can conflict with char pthread_cancel (); below.
32999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33000 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33001
a848cd7e
SC
33002#ifdef __STDC__
33003# include <limits.h>
33004#else
33005# include <assert.h>
33006#endif
ac1cb8d3
VS
33007
33008#undef pthread_cancel
33009
a848cd7e
SC
33010/* Override any gcc2 internal prototype to avoid an error. */
33011#ifdef __cplusplus
33012extern "C"
33013{
33014#endif
33015/* We use char because int might match the return type of a gcc2
33016 builtin and then its argument prototype would still apply. */
33017char pthread_cancel ();
33018/* The GNU C library defines this for functions which it implements
33019 to always fail with ENOSYS. Some functions are actually named
33020 something starting with __ and the normal name is an alias. */
33021#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33022choke me
33023#else
33024char (*f) () = pthread_cancel;
33025#endif
33026#ifdef __cplusplus
33027}
33028#endif
33029
33030int
33031main ()
33032{
33033return f != pthread_cancel;
33034 ;
33035 return 0;
33036}
33037_ACEOF
33038rm -f conftest.$ac_objext conftest$ac_exeext
33039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33040 (eval $ac_link) 2>conftest.er1
a848cd7e 33041 ac_status=$?
ac1cb8d3
VS
33042 grep -v '^ *+' conftest.er1 >conftest.err
33043 rm -f conftest.er1
33044 cat conftest.err >&5
a848cd7e
SC
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); } &&
b48a2016
DE
33047 { ac_try='test -z "$ac_c_werror_flag"
33048 || test ! -s conftest.err'
ac1cb8d3
VS
33049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33050 (eval $ac_try) 2>&5
33051 ac_status=$?
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; } &&
33054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056 (eval $ac_try) 2>&5
33057 ac_status=$?
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); }; }; then
33060 ac_cv_func_pthread_cancel=yes
33061else
33062 echo "$as_me: failed program was:" >&5
33063sed 's/^/| /' conftest.$ac_ext >&5
33064
33065ac_cv_func_pthread_cancel=no
33066fi
ac1cb8d3
VS
33067rm -f conftest.err conftest.$ac_objext \
33068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33069fi
33070echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33071echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33072if test $ac_cv_func_pthread_cancel = yes; then
33073 cat >>confdefs.h <<\_ACEOF
33074#define HAVE_PTHREAD_CANCEL 1
33075_ACEOF
33076
33077else
33078 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33079echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33080fi
33081
33082
33083
33084
33085 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33086echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33087if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33088 echo $ECHO_N "(cached) $ECHO_C" >&6
33089else
33090
33091 cat >conftest.$ac_ext <<_ACEOF
33092/* confdefs.h. */
33093_ACEOF
33094cat confdefs.h >>conftest.$ac_ext
33095cat >>conftest.$ac_ext <<_ACEOF
33096/* end confdefs.h. */
33097#include <pthread.h>
33098int
33099main ()
33100{
33101
33102 pthread_mutexattr_t attr;
33103 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33104
33105 ;
33106 return 0;
33107}
33108_ACEOF
33109rm -f conftest.$ac_objext
33110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33111 (eval $ac_compile) 2>conftest.er1
a848cd7e 33112 ac_status=$?
ac1cb8d3
VS
33113 grep -v '^ *+' conftest.er1 >conftest.err
33114 rm -f conftest.er1
33115 cat conftest.err >&5
a848cd7e
SC
33116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); } &&
b48a2016
DE
33118 { ac_try='test -z "$ac_c_werror_flag"
33119 || test ! -s conftest.err'
ac1cb8d3
VS
33120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33121 (eval $ac_try) 2>&5
33122 ac_status=$?
33123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124 (exit $ac_status); }; } &&
33125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33127 (eval $ac_try) 2>&5
33128 ac_status=$?
33129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33130 (exit $ac_status); }; }; then
33131
33132 wx_cv_type_pthread_mutexattr_t=yes
33133
33134else
33135 echo "$as_me: failed program was:" >&5
33136sed 's/^/| /' conftest.$ac_ext >&5
33137
33138
33139 wx_cv_type_pthread_mutexattr_t=no
33140
33141
33142fi
ac1cb8d3 33143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33144
33145fi
33146echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33147echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33148
33149 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33150 cat >>confdefs.h <<\_ACEOF
33151#define HAVE_PTHREAD_MUTEXATTR_T 1
33152_ACEOF
33153
33154 else
33155 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33156echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33157if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33158 echo $ECHO_N "(cached) $ECHO_C" >&6
33159else
33160
33161 cat >conftest.$ac_ext <<_ACEOF
33162/* confdefs.h. */
33163_ACEOF
33164cat confdefs.h >>conftest.$ac_ext
33165cat >>conftest.$ac_ext <<_ACEOF
33166/* end confdefs.h. */
33167#include <pthread.h>
33168int
33169main ()
33170{
33171
33172 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33173
33174 ;
33175 return 0;
33176}
33177_ACEOF
33178rm -f conftest.$ac_objext
33179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33180 (eval $ac_compile) 2>conftest.er1
a848cd7e 33181 ac_status=$?
ac1cb8d3
VS
33182 grep -v '^ *+' conftest.er1 >conftest.err
33183 rm -f conftest.er1
33184 cat conftest.err >&5
a848cd7e
SC
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); } &&
b48a2016
DE
33187 { ac_try='test -z "$ac_c_werror_flag"
33188 || test ! -s conftest.err'
ac1cb8d3
VS
33189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33190 (eval $ac_try) 2>&5
33191 ac_status=$?
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; } &&
33194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33196 (eval $ac_try) 2>&5
33197 ac_status=$?
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; }; then
33200
33201 wx_cv_type_pthread_rec_mutex_init=yes
33202
33203else
33204 echo "$as_me: failed program was:" >&5
33205sed 's/^/| /' conftest.$ac_ext >&5
33206
33207
33208 wx_cv_type_pthread_rec_mutex_init=no
33209
33210
33211fi
ac1cb8d3 33212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33213
33214fi
33215echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33216echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33217 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33218 cat >>confdefs.h <<\_ACEOF
33219#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33220_ACEOF
33221
33222 else
33223 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33224echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33225 fi
33226 fi
33227 fi
33228
33229else
33230 if test "$wxUSE_THREADS" = "yes" ; then
33231 case "${host}" in
33232 *-*-mingw32* )
33233 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33234echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33235if test "${wx_cv_cflags_mthread+set}" = set; then
33236 echo $ECHO_N "(cached) $ECHO_C" >&6
33237else
33238
33239 CFLAGS_OLD="$CFLAGS"
33240 CFLAGS="$CFLAGS -mthreads"
33241 cat >conftest.$ac_ext <<_ACEOF
33242/* confdefs.h. */
33243_ACEOF
33244cat confdefs.h >>conftest.$ac_ext
33245cat >>conftest.$ac_ext <<_ACEOF
33246/* end confdefs.h. */
33247
33248int
33249main ()
33250{
33251
33252 ;
33253 return 0;
33254}
33255_ACEOF
33256rm -f conftest.$ac_objext
33257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33258 (eval $ac_compile) 2>conftest.er1
a848cd7e 33259 ac_status=$?
ac1cb8d3
VS
33260 grep -v '^ *+' conftest.er1 >conftest.err
33261 rm -f conftest.er1
33262 cat conftest.err >&5
a848cd7e
SC
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); } &&
b48a2016
DE
33265 { ac_try='test -z "$ac_c_werror_flag"
33266 || test ! -s conftest.err'
ac1cb8d3
VS
33267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33268 (eval $ac_try) 2>&5
33269 ac_status=$?
33270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33271 (exit $ac_status); }; } &&
33272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33274 (eval $ac_try) 2>&5
33275 ac_status=$?
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277 (exit $ac_status); }; }; then
33278 wx_cv_cflags_mthread=yes
33279else
33280 echo "$as_me: failed program was:" >&5
33281sed 's/^/| /' conftest.$ac_ext >&5
33282
33283wx_cv_cflags_mthread=no
33284
33285fi
ac1cb8d3 33286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33287
33288
33289fi
33290echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33291echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33292
33293 if test "$wx_cv_cflags_mthread" = "yes"; then
33294 CXXFLAGS="$CXXFLAGS -mthreads"
33295 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33296 LDFLAGS="$LDFLAGS -mthreads"
33297 else
33298 CFLAGS="$CFLAGS_OLD"
33299 fi
33300 ;;
33301 *-pc-os2*emx )
33302 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33303 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33304 LDFLAGS="$LDFLAGS -Zmt"
33305 ;;
33306 esac
33307 fi
33308fi
33309
33310if test "$wxUSE_THREADS" = "yes"; then
33311 cat >>confdefs.h <<\_ACEOF
33312#define wxUSE_THREADS 1
33313_ACEOF
33314
33315
33316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33317else
33318 if test "$ac_cv_func_strtok_r" = "yes"; then
33319 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33320echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33321 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33322 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33323 echo "$as_me:$LINENO: result: yes" >&5
33324echo "${ECHO_T}yes" >&6
33325 else
33326 echo "$as_me:$LINENO: result: no" >&5
33327echo "${ECHO_T}no" >&6
33328 fi
33329 fi
33330fi
33331
33332if test "$WXGTK20" = 1 ; then
33333 cat >>confdefs.h <<_ACEOF
33334#define __WXGTK20__ $WXGTK20
33335_ACEOF
33336
33337 WXGTK12=1
33338fi
33339
33340if test "$WXGTK12" = 1 ; then
33341 cat >>confdefs.h <<_ACEOF
33342#define __WXGTK12__ $WXGTK12
33343_ACEOF
33344
33345fi
33346
33347if test "$WXGTK127" = 1 ; then
33348 cat >>confdefs.h <<_ACEOF
33349#define __WXGTK127__ $WXGTK127
33350_ACEOF
33351
33352fi
33353
33354if test "$WXGPE" = 1 ; then
33355 cat >>confdefs.h <<_ACEOF
33356#define __WXGPE__ $WXGPE
33357_ACEOF
33358
33359fi
33360
33361WXDEBUG=
33362
33363if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33364 WXDEBUG="-g"
33365 wxUSE_OPTIMISE=no
33366fi
33367
33368if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33369 wxUSE_DEBUG_INFO=yes
33370 WXDEBUG="-ggdb"
33371fi
33372
33373if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33374 cat >>confdefs.h <<\_ACEOF
33375#define WXDEBUG 1
33376_ACEOF
33377
33378 WXDEBUG_DEFINE="-D__WXDEBUG__"
33379else
33380 if test "$wxUSE_GTK" = 1 ; then
33381 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33382 fi
33383fi
33384
33385if test "$wxUSE_MEM_TRACING" = "yes" ; then
33386 cat >>confdefs.h <<\_ACEOF
33387#define wxUSE_MEMORY_TRACING 1
33388_ACEOF
33389
33390 cat >>confdefs.h <<\_ACEOF
33391#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33392_ACEOF
33393
33394 cat >>confdefs.h <<\_ACEOF
33395#define wxUSE_DEBUG_NEW_ALWAYS 1
33396_ACEOF
33397
33398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33399fi
33400
33401if test "$wxUSE_DMALLOC" = "yes" ; then
33402 DMALLOC_LIBS="-ldmalloc"
33403fi
33404
33405PROFILE=
33406if test "$wxUSE_PROFILE" = "yes" ; then
33407 PROFILE=" -pg"
33408fi
33409
33410CODE_GEN_FLAGS=
33411CODE_GEN_FLAGS_CXX=
33412if test "$GCC" = "yes" ; then
33413 if test "$wxUSE_NO_RTTI" = "yes" ; then
33414 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33415 fi
33416 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33417 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33418 fi
33419 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33420 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33421 fi
33422
33423 case "${host}" in
33424 powerpc*-*-aix* )
33425 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33426 ;;
33427 *-hppa* )
33428 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33429 ;;
33430 esac
33431fi
33432
33433OPTIMISE=
33434if test "$wxUSE_OPTIMISE" = "no" ; then
33435 if test "$GCC" = yes ; then
33436 OPTIMISE="-O0"
33437 fi
33438else
33439 if test "$GCC" = yes ; then
33440 OPTIMISE="-O2"
33441
33442 case "${host}" in
33443 i586-*-*|i686-*-* )
33444 OPTIMISE="${OPTIMISE} "
33445 ;;
33446 esac
33447 else
33448 OPTIMISE="-O"
33449 fi
33450fi
33451
33452
33453if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33454 cat >>confdefs.h <<\_ACEOF
33455#define WXWIN_COMPATIBILITY_2_2 1
33456_ACEOF
33457
33458
33459 WXWIN_COMPATIBILITY_2_4="yes"
33460fi
33461
33462if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33463 cat >>confdefs.h <<\_ACEOF
33464#define WXWIN_COMPATIBILITY_2_4 1
33465_ACEOF
33466
33467fi
33468
33469
33470if test "$wxUSE_GUI" = "yes"; then
33471 cat >>confdefs.h <<\_ACEOF
33472#define wxUSE_GUI 1
33473_ACEOF
33474
33475
33476 else
33477 cat >>confdefs.h <<\_ACEOF
33478#define wxUSE_NOGUI 1
33479_ACEOF
33480
33481fi
33482
33483
33484if test "$wxUSE_UNIX" = "yes"; then
33485 cat >>confdefs.h <<\_ACEOF
33486#define wxUSE_UNIX 1
33487_ACEOF
33488
33489fi
33490
33491
33492if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33493
33494 HAVE_DL_FUNCS=0
33495 HAVE_SHL_FUNCS=0
33496 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33497 if test "$USE_DARWIN" = 1; then
33498 HAVE_DL_FUNCS=1
33499 else
33500
33501for ac_func in dlopen
33502do
33503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33504echo "$as_me:$LINENO: checking for $ac_func" >&5
33505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33506if eval "test \"\${$as_ac_var+set}\" = set"; then
33507 echo $ECHO_N "(cached) $ECHO_C" >&6
33508else
33509 cat >conftest.$ac_ext <<_ACEOF
33510/* confdefs.h. */
33511_ACEOF
33512cat confdefs.h >>conftest.$ac_ext
33513cat >>conftest.$ac_ext <<_ACEOF
33514/* end confdefs.h. */
ac1cb8d3
VS
33515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33517#define $ac_func innocuous_$ac_func
33518
a848cd7e
SC
33519/* System header to define __stub macros and hopefully few prototypes,
33520 which can conflict with char $ac_func (); below.
33521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33522 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33523
a848cd7e
SC
33524#ifdef __STDC__
33525# include <limits.h>
33526#else
33527# include <assert.h>
33528#endif
ac1cb8d3
VS
33529
33530#undef $ac_func
33531
a848cd7e
SC
33532/* Override any gcc2 internal prototype to avoid an error. */
33533#ifdef __cplusplus
33534extern "C"
33535{
33536#endif
33537/* We use char because int might match the return type of a gcc2
33538 builtin and then its argument prototype would still apply. */
33539char $ac_func ();
33540/* The GNU C library defines this for functions which it implements
33541 to always fail with ENOSYS. Some functions are actually named
33542 something starting with __ and the normal name is an alias. */
33543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33544choke me
33545#else
33546char (*f) () = $ac_func;
33547#endif
33548#ifdef __cplusplus
33549}
33550#endif
33551
33552int
33553main ()
33554{
33555return f != $ac_func;
33556 ;
33557 return 0;
33558}
33559_ACEOF
33560rm -f conftest.$ac_objext conftest$ac_exeext
33561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33562 (eval $ac_link) 2>conftest.er1
a848cd7e 33563 ac_status=$?
ac1cb8d3
VS
33564 grep -v '^ *+' conftest.er1 >conftest.err
33565 rm -f conftest.er1
33566 cat conftest.err >&5
a848cd7e
SC
33567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33568 (exit $ac_status); } &&
b48a2016
DE
33569 { ac_try='test -z "$ac_c_werror_flag"
33570 || 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 eval "$as_ac_var=yes"
33583else
33584 echo "$as_me: failed program was:" >&5
33585sed 's/^/| /' conftest.$ac_ext >&5
33586
33587eval "$as_ac_var=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: `eval echo '${'$as_ac_var'}'`" >&5
33593echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33594if test `eval echo '${'$as_ac_var'}'` = yes; then
33595 cat >>confdefs.h <<_ACEOF
33596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33597_ACEOF
33598
33599 cat >>confdefs.h <<\_ACEOF
33600#define HAVE_DLOPEN 1
33601_ACEOF
33602
33603 HAVE_DL_FUNCS=1
33604
33605else
33606
33607 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33608echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33609if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33610 echo $ECHO_N "(cached) $ECHO_C" >&6
33611else
33612 ac_check_lib_save_LIBS=$LIBS
33613LIBS="-ldl $LIBS"
33614cat >conftest.$ac_ext <<_ACEOF
33615/* confdefs.h. */
33616_ACEOF
33617cat confdefs.h >>conftest.$ac_ext
33618cat >>conftest.$ac_ext <<_ACEOF
33619/* end confdefs.h. */
33620
33621/* Override any gcc2 internal prototype to avoid an error. */
33622#ifdef __cplusplus
33623extern "C"
33624#endif
33625/* We use char because int might match the return type of a gcc2
33626 builtin and then its argument prototype would still apply. */
33627char dlopen ();
33628int
33629main ()
33630{
33631dlopen ();
33632 ;
33633 return 0;
33634}
33635_ACEOF
33636rm -f conftest.$ac_objext conftest$ac_exeext
33637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33638 (eval $ac_link) 2>conftest.er1
a848cd7e 33639 ac_status=$?
ac1cb8d3
VS
33640 grep -v '^ *+' conftest.er1 >conftest.err
33641 rm -f conftest.er1
33642 cat conftest.err >&5
a848cd7e
SC
33643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33644 (exit $ac_status); } &&
b48a2016
DE
33645 { ac_try='test -z "$ac_c_werror_flag"
33646 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
33652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33654 (eval $ac_try) 2>&5
33655 ac_status=$?
33656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657 (exit $ac_status); }; }; then
33658 ac_cv_lib_dl_dlopen=yes
33659else
33660 echo "$as_me: failed program was:" >&5
33661sed 's/^/| /' conftest.$ac_ext >&5
33662
33663ac_cv_lib_dl_dlopen=no
33664fi
ac1cb8d3
VS
33665rm -f conftest.err conftest.$ac_objext \
33666 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33667LIBS=$ac_check_lib_save_LIBS
33668fi
33669echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33670echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33671if test $ac_cv_lib_dl_dlopen = yes; then
33672
33673 cat >>confdefs.h <<\_ACEOF
33674#define HAVE_DLOPEN 1
33675_ACEOF
33676
33677 HAVE_DL_FUNCS=1
33678 DL_LINK=" -ldl$DL_LINK"
33679
33680else
33681
33682
33683for ac_func in shl_load
33684do
33685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33686echo "$as_me:$LINENO: checking for $ac_func" >&5
33687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33688if eval "test \"\${$as_ac_var+set}\" = set"; then
33689 echo $ECHO_N "(cached) $ECHO_C" >&6
33690else
33691 cat >conftest.$ac_ext <<_ACEOF
33692/* confdefs.h. */
33693_ACEOF
33694cat confdefs.h >>conftest.$ac_ext
33695cat >>conftest.$ac_ext <<_ACEOF
33696/* end confdefs.h. */
ac1cb8d3
VS
33697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33699#define $ac_func innocuous_$ac_func
33700
a848cd7e
SC
33701/* System header to define __stub macros and hopefully few prototypes,
33702 which can conflict with char $ac_func (); below.
33703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33704 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33705
a848cd7e
SC
33706#ifdef __STDC__
33707# include <limits.h>
33708#else
33709# include <assert.h>
33710#endif
ac1cb8d3
VS
33711
33712#undef $ac_func
33713
a848cd7e
SC
33714/* Override any gcc2 internal prototype to avoid an error. */
33715#ifdef __cplusplus
33716extern "C"
33717{
33718#endif
33719/* We use char because int might match the return type of a gcc2
33720 builtin and then its argument prototype would still apply. */
33721char $ac_func ();
33722/* The GNU C library defines this for functions which it implements
33723 to always fail with ENOSYS. Some functions are actually named
33724 something starting with __ and the normal name is an alias. */
33725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33726choke me
33727#else
33728char (*f) () = $ac_func;
33729#endif
33730#ifdef __cplusplus
33731}
33732#endif
33733
33734int
33735main ()
33736{
33737return f != $ac_func;
33738 ;
33739 return 0;
33740}
33741_ACEOF
33742rm -f conftest.$ac_objext conftest$ac_exeext
33743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33744 (eval $ac_link) 2>conftest.er1
a848cd7e 33745 ac_status=$?
ac1cb8d3
VS
33746 grep -v '^ *+' conftest.er1 >conftest.err
33747 rm -f conftest.er1
33748 cat conftest.err >&5
a848cd7e
SC
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); } &&
b48a2016
DE
33751 { ac_try='test -z "$ac_c_werror_flag"
33752 || test ! -s conftest.err'
ac1cb8d3
VS
33753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33754 (eval $ac_try) 2>&5
33755 ac_status=$?
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); }; } &&
33758 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33760 (eval $ac_try) 2>&5
33761 ac_status=$?
33762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763 (exit $ac_status); }; }; then
33764 eval "$as_ac_var=yes"
33765else
33766 echo "$as_me: failed program was:" >&5
33767sed 's/^/| /' conftest.$ac_ext >&5
33768
33769eval "$as_ac_var=no"
33770fi
ac1cb8d3
VS
33771rm -f conftest.err conftest.$ac_objext \
33772 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33773fi
33774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33775echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33776if test `eval echo '${'$as_ac_var'}'` = yes; then
33777 cat >>confdefs.h <<_ACEOF
33778#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33779_ACEOF
33780
33781 cat >>confdefs.h <<\_ACEOF
33782#define HAVE_SHL_LOAD 1
33783_ACEOF
33784
33785 HAVE_SHL_FUNCS=1
33786
33787else
33788
33789 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33790echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33791if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33792 echo $ECHO_N "(cached) $ECHO_C" >&6
33793else
33794 ac_check_lib_save_LIBS=$LIBS
33795LIBS="-lshl_load $LIBS"
33796cat >conftest.$ac_ext <<_ACEOF
33797/* confdefs.h. */
33798_ACEOF
33799cat confdefs.h >>conftest.$ac_ext
33800cat >>conftest.$ac_ext <<_ACEOF
33801/* end confdefs.h. */
33802
33803/* Override any gcc2 internal prototype to avoid an error. */
33804#ifdef __cplusplus
33805extern "C"
33806#endif
33807/* We use char because int might match the return type of a gcc2
33808 builtin and then its argument prototype would still apply. */
33809char dld ();
33810int
33811main ()
33812{
33813dld ();
33814 ;
33815 return 0;
33816}
33817_ACEOF
33818rm -f conftest.$ac_objext conftest$ac_exeext
33819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33820 (eval $ac_link) 2>conftest.er1
a848cd7e 33821 ac_status=$?
ac1cb8d3
VS
33822 grep -v '^ *+' conftest.er1 >conftest.err
33823 rm -f conftest.er1
33824 cat conftest.err >&5
a848cd7e
SC
33825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826 (exit $ac_status); } &&
b48a2016
DE
33827 { ac_try='test -z "$ac_c_werror_flag"
33828 || test ! -s conftest.err'
ac1cb8d3
VS
33829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33830 (eval $ac_try) 2>&5
33831 ac_status=$?
33832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833 (exit $ac_status); }; } &&
33834 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33836 (eval $ac_try) 2>&5
33837 ac_status=$?
33838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33839 (exit $ac_status); }; }; then
33840 ac_cv_lib_shl_load_dld=yes
33841else
33842 echo "$as_me: failed program was:" >&5
33843sed 's/^/| /' conftest.$ac_ext >&5
33844
33845ac_cv_lib_shl_load_dld=no
33846fi
ac1cb8d3
VS
33847rm -f conftest.err conftest.$ac_objext \
33848 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33849LIBS=$ac_check_lib_save_LIBS
33850fi
33851echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33852echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33853if test $ac_cv_lib_shl_load_dld = yes; then
33854
33855 HAVE_SHL_FUNCS=1
33856 DL_LINK=" -ldld$DL_LINK"
33857
33858fi
33859
33860
33861fi
33862done
33863
33864
33865fi
33866
33867
33868fi
33869done
33870
33871
33872 if test "$HAVE_DL_FUNCS" = 1; then
33873
33874for ac_func in dlerror
33875do
33876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33877echo "$as_me:$LINENO: checking for $ac_func" >&5
33878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33879if eval "test \"\${$as_ac_var+set}\" = set"; then
33880 echo $ECHO_N "(cached) $ECHO_C" >&6
33881else
33882 cat >conftest.$ac_ext <<_ACEOF
33883/* confdefs.h. */
33884_ACEOF
33885cat confdefs.h >>conftest.$ac_ext
33886cat >>conftest.$ac_ext <<_ACEOF
33887/* end confdefs.h. */
ac1cb8d3
VS
33888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33890#define $ac_func innocuous_$ac_func
33891
a848cd7e
SC
33892/* System header to define __stub macros and hopefully few prototypes,
33893 which can conflict with char $ac_func (); below.
33894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33895 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33896
a848cd7e
SC
33897#ifdef __STDC__
33898# include <limits.h>
33899#else
33900# include <assert.h>
33901#endif
ac1cb8d3
VS
33902
33903#undef $ac_func
33904
a848cd7e
SC
33905/* Override any gcc2 internal prototype to avoid an error. */
33906#ifdef __cplusplus
33907extern "C"
33908{
33909#endif
33910/* We use char because int might match the return type of a gcc2
33911 builtin and then its argument prototype would still apply. */
33912char $ac_func ();
33913/* The GNU C library defines this for functions which it implements
33914 to always fail with ENOSYS. Some functions are actually named
33915 something starting with __ and the normal name is an alias. */
33916#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33917choke me
33918#else
33919char (*f) () = $ac_func;
33920#endif
33921#ifdef __cplusplus
33922}
33923#endif
33924
33925int
33926main ()
33927{
33928return f != $ac_func;
33929 ;
33930 return 0;
33931}
33932_ACEOF
33933rm -f conftest.$ac_objext conftest$ac_exeext
33934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33935 (eval $ac_link) 2>conftest.er1
a848cd7e 33936 ac_status=$?
ac1cb8d3
VS
33937 grep -v '^ *+' conftest.er1 >conftest.err
33938 rm -f conftest.er1
33939 cat conftest.err >&5
a848cd7e
SC
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); } &&
b48a2016
DE
33942 { ac_try='test -z "$ac_c_werror_flag"
33943 || test ! -s conftest.err'
ac1cb8d3
VS
33944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945 (eval $ac_try) 2>&5
33946 ac_status=$?
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); }; } &&
33949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33951 (eval $ac_try) 2>&5
33952 ac_status=$?
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); }; }; then
33955 eval "$as_ac_var=yes"
33956else
33957 echo "$as_me: failed program was:" >&5
33958sed 's/^/| /' conftest.$ac_ext >&5
33959
33960eval "$as_ac_var=no"
33961fi
ac1cb8d3
VS
33962rm -f conftest.err conftest.$ac_objext \
33963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33964fi
33965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33966echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33967if test `eval echo '${'$as_ac_var'}'` = yes; then
33968 cat >>confdefs.h <<_ACEOF
33969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33970_ACEOF
33971 cat >>confdefs.h <<\_ACEOF
33972#define HAVE_DLERROR 1
33973_ACEOF
33974
33975else
33976
33977 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33978echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33979if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33980 echo $ECHO_N "(cached) $ECHO_C" >&6
33981else
33982 ac_check_lib_save_LIBS=$LIBS
33983LIBS="-ldl $LIBS"
33984cat >conftest.$ac_ext <<_ACEOF
33985/* confdefs.h. */
33986_ACEOF
33987cat confdefs.h >>conftest.$ac_ext
33988cat >>conftest.$ac_ext <<_ACEOF
33989/* end confdefs.h. */
33990
33991/* Override any gcc2 internal prototype to avoid an error. */
33992#ifdef __cplusplus
33993extern "C"
33994#endif
33995/* We use char because int might match the return type of a gcc2
33996 builtin and then its argument prototype would still apply. */
33997char dlerror ();
33998int
33999main ()
34000{
34001dlerror ();
34002 ;
34003 return 0;
34004}
34005_ACEOF
34006rm -f conftest.$ac_objext conftest$ac_exeext
34007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34008 (eval $ac_link) 2>conftest.er1
a848cd7e 34009 ac_status=$?
ac1cb8d3
VS
34010 grep -v '^ *+' conftest.er1 >conftest.err
34011 rm -f conftest.er1
34012 cat conftest.err >&5
a848cd7e
SC
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); } &&
b48a2016
DE
34015 { ac_try='test -z "$ac_c_werror_flag"
34016 || test ! -s conftest.err'
ac1cb8d3
VS
34017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34018 (eval $ac_try) 2>&5
34019 ac_status=$?
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); }; } &&
34022 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34024 (eval $ac_try) 2>&5
34025 ac_status=$?
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); }; }; then
34028 ac_cv_lib_dl_dlerror=yes
34029else
34030 echo "$as_me: failed program was:" >&5
34031sed 's/^/| /' conftest.$ac_ext >&5
34032
34033ac_cv_lib_dl_dlerror=no
34034fi
ac1cb8d3
VS
34035rm -f conftest.err conftest.$ac_objext \
34036 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34037LIBS=$ac_check_lib_save_LIBS
34038fi
34039echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34040echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34041if test $ac_cv_lib_dl_dlerror = yes; then
34042 cat >>confdefs.h <<\_ACEOF
34043#define HAVE_DLERROR 1
34044_ACEOF
34045
34046fi
34047
34048
34049
34050fi
34051done
34052
34053 fi
34054 fi
34055
34056 if test "$HAVE_DL_FUNCS" = 0; then
34057 if test "$HAVE_SHL_FUNCS" = 0; then
34058 if test "$USE_UNIX" = 1; then
34059 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34060echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34061 wxUSE_DYNAMIC_LOADER=no
34062 wxUSE_DYNLIB_CLASS=no
34063 else
34064 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34065echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34066 fi
34067 fi
34068 fi
34069 fi
34070fi
34071
34072if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34073 cat >>confdefs.h <<\_ACEOF
34074#define wxUSE_DYNAMIC_LOADER 1
34075_ACEOF
34076
34077fi
34078if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34079 cat >>confdefs.h <<\_ACEOF
34080#define wxUSE_DYNLIB_CLASS 1
34081_ACEOF
34082
34083fi
34084
34085
34086
34087if test "$wxUSE_PLUGINS" = "yes" ; then
34088 if test "$wxUSE_SHARED" = "no" ; then
34089 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34090echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34091 wxUSE_PLUGINS=no
34092 fi
34093 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34094 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34095echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34096 wxUSE_PLUGINS=no
34097 fi
34098 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34099 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34100echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34101 wxUSE_PLUGINS=no
34102 fi
34103 if test "$wxUSE_PLUGINS" = "yes" ; then
34104 cat >>confdefs.h <<\_ACEOF
34105#define wxUSE_PLUGINS 1
34106_ACEOF
34107
34108 fi
34109fi
34110
34111
34112if test "$wxUSE_STL" = "yes"; then
34113 cat >>confdefs.h <<\_ACEOF
34114#define wxUSE_STL 1
34115_ACEOF
34116
34117fi
34118
34119if test "$wxUSE_APPLE_IEEE" = "yes"; then
34120 cat >>confdefs.h <<\_ACEOF
34121#define wxUSE_APPLE_IEEE 1
34122_ACEOF
34123
34124fi
34125
34126if test "$wxUSE_TIMER" = "yes"; then
34127 cat >>confdefs.h <<\_ACEOF
34128#define wxUSE_TIMER 1
34129_ACEOF
34130
34131fi
34132
34133WITH_PLUGIN_SDL=0
34134if test "$wxUSE_SOUND" = "yes"; then
34135 if test "$USE_UNIX" = "1" ; then
34136
34137for ac_header in sys/soundcard.h
34138do
34139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34140if eval "test \"\${$as_ac_Header+set}\" = set"; then
34141 echo "$as_me:$LINENO: checking for $ac_header" >&5
34142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34143if eval "test \"\${$as_ac_Header+set}\" = set"; then
34144 echo $ECHO_N "(cached) $ECHO_C" >&6
34145fi
34146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34148else
34149 # Is the header compilable?
34150echo "$as_me:$LINENO: checking $ac_header usability" >&5
34151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34152cat >conftest.$ac_ext <<_ACEOF
34153/* confdefs.h. */
34154_ACEOF
34155cat confdefs.h >>conftest.$ac_ext
34156cat >>conftest.$ac_ext <<_ACEOF
34157/* end confdefs.h. */
34158$ac_includes_default
34159#include <$ac_header>
34160_ACEOF
34161rm -f conftest.$ac_objext
34162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34163 (eval $ac_compile) 2>conftest.er1
a848cd7e 34164 ac_status=$?
ac1cb8d3
VS
34165 grep -v '^ *+' conftest.er1 >conftest.err
34166 rm -f conftest.er1
34167 cat conftest.err >&5
a848cd7e
SC
34168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169 (exit $ac_status); } &&
b48a2016
DE
34170 { ac_try='test -z "$ac_c_werror_flag"
34171 || test ! -s conftest.err'
ac1cb8d3
VS
34172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34173 (eval $ac_try) 2>&5
34174 ac_status=$?
34175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176 (exit $ac_status); }; } &&
34177 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34179 (eval $ac_try) 2>&5
34180 ac_status=$?
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); }; }; then
34183 ac_header_compiler=yes
34184else
34185 echo "$as_me: failed program was:" >&5
34186sed 's/^/| /' conftest.$ac_ext >&5
34187
34188ac_header_compiler=no
34189fi
ac1cb8d3 34190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34192echo "${ECHO_T}$ac_header_compiler" >&6
34193
34194# Is the header present?
34195echo "$as_me:$LINENO: checking $ac_header presence" >&5
34196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34197cat >conftest.$ac_ext <<_ACEOF
34198/* confdefs.h. */
34199_ACEOF
34200cat confdefs.h >>conftest.$ac_ext
34201cat >>conftest.$ac_ext <<_ACEOF
34202/* end confdefs.h. */
34203#include <$ac_header>
34204_ACEOF
34205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34207 ac_status=$?
34208 grep -v '^ *+' conftest.er1 >conftest.err
34209 rm -f conftest.er1
34210 cat conftest.err >&5
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); } >/dev/null; then
34213 if test -s conftest.err; then
34214 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34216 else
34217 ac_cpp_err=
34218 fi
34219else
34220 ac_cpp_err=yes
34221fi
34222if test -z "$ac_cpp_err"; then
34223 ac_header_preproc=yes
34224else
34225 echo "$as_me: failed program was:" >&5
34226sed 's/^/| /' conftest.$ac_ext >&5
34227
34228 ac_header_preproc=no
34229fi
34230rm -f conftest.err conftest.$ac_ext
34231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34232echo "${ECHO_T}$ac_header_preproc" >&6
34233
34234# So? What about this header?
ac1cb8d3
VS
34235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34236 yes:no: )
a848cd7e
SC
34237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34238echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34240echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34241 ac_header_preproc=yes
a848cd7e 34242 ;;
ac1cb8d3 34243 no:yes:* )
a848cd7e
SC
34244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34245echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34247echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34249echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34251echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34253echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34255echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34256 (
34257 cat <<\_ASBOX
ac1cb8d3
VS
34258## ----------------------------------------- ##
34259## Report this to wx-dev@lists.wxwidgets.org ##
34260## ----------------------------------------- ##
a848cd7e
SC
34261_ASBOX
34262 ) |
34263 sed "s/^/$as_me: WARNING: /" >&2
34264 ;;
34265esac
34266echo "$as_me:$LINENO: checking for $ac_header" >&5
34267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34268if eval "test \"\${$as_ac_Header+set}\" = set"; then
34269 echo $ECHO_N "(cached) $ECHO_C" >&6
34270else
ac1cb8d3 34271 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34272fi
34273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34275
34276fi
34277if test `eval echo '${'$as_ac_Header'}'` = yes; then
34278 cat >>confdefs.h <<_ACEOF
34279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34280_ACEOF
34281
34282fi
34283
34284done
34285
34286
34287 if test "$wxUSE_LIBSDL" != "no"; then
34288
34289# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34290if test "${with_sdl_prefix+set}" = set; then
34291 withval="$with_sdl_prefix"
34292 sdl_prefix="$withval"
34293else
34294 sdl_prefix=""
34295fi;
34296
34297# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34298if test "${with_sdl_exec_prefix+set}" = set; then
34299 withval="$with_sdl_exec_prefix"
34300 sdl_exec_prefix="$withval"
34301else
34302 sdl_exec_prefix=""
34303fi;
34304# Check whether --enable-sdltest or --disable-sdltest was given.
34305if test "${enable_sdltest+set}" = set; then
34306 enableval="$enable_sdltest"
34307
34308else
34309 enable_sdltest=yes
34310fi;
34311
34312 if test x$sdl_exec_prefix != x ; then
34313 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34314 if test x${SDL_CONFIG+set} != xset ; then
34315 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34316 fi
34317 fi
34318 if test x$sdl_prefix != x ; then
34319 sdl_args="$sdl_args --prefix=$sdl_prefix"
34320 if test x${SDL_CONFIG+set} != xset ; then
34321 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34322 fi
34323 fi
34324
34325
34326 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34327 # Extract the first word of "sdl-config", so it can be a program name with args.
34328set dummy sdl-config; ac_word=$2
34329echo "$as_me:$LINENO: checking for $ac_word" >&5
34330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34331if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34332 echo $ECHO_N "(cached) $ECHO_C" >&6
34333else
34334 case $SDL_CONFIG in
34335 [\\/]* | ?:[\\/]*)
34336 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34337 ;;
34338 *)
34339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34340for as_dir in $PATH
34341do
34342 IFS=$as_save_IFS
34343 test -z "$as_dir" && as_dir=.
34344 for ac_exec_ext in '' $ac_executable_extensions; do
34345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34346 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34348 break 2
34349 fi
34350done
34351done
34352
34353 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34354 ;;
34355esac
34356fi
34357SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34358
34359if test -n "$SDL_CONFIG"; then
34360 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34361echo "${ECHO_T}$SDL_CONFIG" >&6
34362else
34363 echo "$as_me:$LINENO: result: no" >&5
34364echo "${ECHO_T}no" >&6
34365fi
34366
34367 min_sdl_version=1.2.0
34368 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34369echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34370 no_sdl=""
34371 if test "$SDL_CONFIG" = "no" ; then
34372 no_sdl=yes
34373 else
34374 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34375 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34376
34377 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34378 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34379 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34380 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34381 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34382 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34383 if test "x$enable_sdltest" = "xyes" ; then
34384 ac_save_CFLAGS="$CFLAGS"
34385 ac_save_LIBS="$LIBS"
34386 CFLAGS="$CFLAGS $SDL_CFLAGS"
34387 LIBS="$LIBS $SDL_LIBS"
34388 rm -f conf.sdltest
34389 if test "$cross_compiling" = yes; then
34390 echo $ac_n "cross compiling; assumed OK... $ac_c"
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. */
34398
34399#include <stdio.h>
34400#include <stdlib.h>
34401#include <string.h>
34402#include "SDL.h"
34403
34404char*
34405my_strdup (char *str)
34406{
34407 char *new_str;
34408
34409 if (str)
34410 {
34411 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34412 strcpy (new_str, str);
34413 }
34414 else
34415 new_str = NULL;
34416
34417 return new_str;
34418}
34419
34420int main (int argc, char *argv[])
34421{
34422 int major, minor, micro;
34423 char *tmp_version;
34424
34425 /* This hangs on some systems (?)
34426 system ("touch conf.sdltest");
34427 */
34428 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34429
34430 /* HP/UX 9 (%@#!) writes to sscanf strings */
34431 tmp_version = my_strdup("$min_sdl_version");
34432 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34433 printf("%s, bad version string\n", "$min_sdl_version");
34434 exit(1);
34435 }
34436
34437 if (($sdl_major_version > major) ||
34438 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34439 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34440 {
34441 return 0;
34442 }
34443 else
34444 {
34445 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34446 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34447 printf("*** best to upgrade to the required version.\n");
34448 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34449 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34450 printf("*** config.cache before re-running configure\n");
34451 return 1;
34452 }
34453}
34454
34455
34456_ACEOF
34457rm -f conftest$ac_exeext
34458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34459 (eval $ac_link) 2>&5
34460 ac_status=$?
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34464 (eval $ac_try) 2>&5
34465 ac_status=$?
34466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467 (exit $ac_status); }; }; then
34468 :
34469else
34470 echo "$as_me: program exited with status $ac_status" >&5
34471echo "$as_me: failed program was:" >&5
34472sed 's/^/| /' conftest.$ac_ext >&5
34473
34474( exit $ac_status )
34475no_sdl=yes
34476fi
ac1cb8d3 34477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34478fi
34479 CFLAGS="$ac_save_CFLAGS"
34480 LIBS="$ac_save_LIBS"
34481 fi
34482 fi
34483 if test "x$no_sdl" = x ; then
34484 echo "$as_me:$LINENO: result: yes" >&5
34485echo "${ECHO_T}yes" >&6
34486
34487 EXTRALIBS_SDL="$SDL_LIBS"
34488 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34489 cat >>confdefs.h <<\_ACEOF
34490#define wxUSE_LIBSDL 1
34491_ACEOF
34492
34493
34494 else
34495 echo "$as_me:$LINENO: result: no" >&5
34496echo "${ECHO_T}no" >&6
34497 if test "$SDL_CONFIG" = "no" ; then
34498 echo "*** The sdl-config script installed by SDL could not be found"
34499 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34500 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34501 echo "*** full path to sdl-config."
34502 else
34503 if test -f conf.sdltest ; then
34504 :
34505 else
34506 echo "*** Could not run SDL test program, checking why..."
34507 CFLAGS="$CFLAGS $SDL_CFLAGS"
34508 LIBS="$LIBS $SDL_LIBS"
34509 cat >conftest.$ac_ext <<_ACEOF
34510/* confdefs.h. */
34511_ACEOF
34512cat confdefs.h >>conftest.$ac_ext
34513cat >>conftest.$ac_ext <<_ACEOF
34514/* end confdefs.h. */
34515
34516#include <stdio.h>
34517#include "SDL.h"
34518
34519int main(int argc, char *argv[])
34520{ return 0; }
34521#undef main
34522#define main K_and_R_C_main
34523
34524int
34525main ()
34526{
34527 return 0;
34528 ;
34529 return 0;
34530}
34531_ACEOF
34532rm -f conftest.$ac_objext conftest$ac_exeext
34533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34534 (eval $ac_link) 2>conftest.er1
a848cd7e 34535 ac_status=$?
ac1cb8d3
VS
34536 grep -v '^ *+' conftest.er1 >conftest.err
34537 rm -f conftest.er1
34538 cat conftest.err >&5
a848cd7e
SC
34539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540 (exit $ac_status); } &&
b48a2016
DE
34541 { ac_try='test -z "$ac_c_werror_flag"
34542 || test ! -s conftest.err'
ac1cb8d3
VS
34543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34544 (eval $ac_try) 2>&5
34545 ac_status=$?
34546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34547 (exit $ac_status); }; } &&
34548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34550 (eval $ac_try) 2>&5
34551 ac_status=$?
34552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553 (exit $ac_status); }; }; then
34554 echo "*** The test program compiled, but did not run. This usually means"
34555 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34556 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34557 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34558 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34559 echo "*** is required on your system"
34560 echo "***"
34561 echo "*** If you have an old version installed, it is best to remove it, although"
34562 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34563else
34564 echo "$as_me: failed program was:" >&5
34565sed 's/^/| /' conftest.$ac_ext >&5
34566
34567 echo "*** The test program failed to compile or link. See the file config.log for the"
34568 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34569 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34570 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34571fi
ac1cb8d3
VS
34572rm -f conftest.err conftest.$ac_objext \
34573 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34574 CFLAGS="$ac_save_CFLAGS"
34575 LIBS="$ac_save_LIBS"
34576 fi
34577 fi
34578 SDL_CFLAGS=""
34579 SDL_LIBS=""
34580 wxUSE_LIBSDL="no"
34581 fi
34582
34583
34584 rm -f conf.sdltest
34585
34586 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34587 WITH_PLUGIN_SDL=1
34588 fi
34589 fi
34590 fi
34591
34592 cat >>confdefs.h <<\_ACEOF
34593#define wxUSE_SOUND 1
34594_ACEOF
34595
34596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34597fi
34598
34599if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34600 cat >>confdefs.h <<\_ACEOF
34601#define wxUSE_CMDLINE_PARSER 1
34602_ACEOF
34603
34604fi
34605
34606if test "$wxUSE_STOPWATCH" = "yes"; then
34607 cat >>confdefs.h <<\_ACEOF
34608#define wxUSE_STOPWATCH 1
34609_ACEOF
34610
34611fi
34612
34613if test "$wxUSE_DATETIME" = "yes"; then
34614 cat >>confdefs.h <<\_ACEOF
34615#define wxUSE_DATETIME 1
34616_ACEOF
34617
34618fi
34619
34620if test "$wxUSE_FILE" = "yes"; then
34621 cat >>confdefs.h <<\_ACEOF
34622#define wxUSE_FILE 1
34623_ACEOF
34624
34625fi
34626
34627if test "$wxUSE_FFILE" = "yes"; then
34628 cat >>confdefs.h <<\_ACEOF
34629#define wxUSE_FFILE 1
34630_ACEOF
34631
34632fi
34633
34634if test "$wxUSE_FILESYSTEM" = "yes"; then
34635 cat >>confdefs.h <<\_ACEOF
34636#define wxUSE_FILESYSTEM 1
34637_ACEOF
34638
34639fi
34640
34641if test "$wxUSE_FS_ZIP" = "yes"; then
34642 cat >>confdefs.h <<\_ACEOF
34643#define wxUSE_FS_ZIP 1
34644_ACEOF
34645
34646fi
34647
34648if test "$wxUSE_ZIPSTREAM" = "yes"; then
34649 cat >>confdefs.h <<\_ACEOF
34650#define wxUSE_ZIPSTREAM 1
34651_ACEOF
34652
34653fi
34654
a848cd7e
SC
34655if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34656 cat >>confdefs.h <<\_ACEOF
34657#define wxUSE_ON_FATAL_EXCEPTION 1
34658_ACEOF
34659
34660fi
34661
34662if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34663 cat >>confdefs.h <<\_ACEOF
34664#define wxUSE_SNGLINST_CHECKER 1
34665_ACEOF
34666
34667fi
34668
34669if test "$wxUSE_BUSYINFO" = "yes"; then
34670 cat >>confdefs.h <<\_ACEOF
34671#define wxUSE_BUSYINFO 1
34672_ACEOF
34673
34674fi
34675
34676if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34677 cat >>confdefs.h <<\_ACEOF
34678#define wxUSE_STD_IOSTREAM 1
34679_ACEOF
34680
34681fi
34682
34683if test "$wxUSE_TEXTBUFFER" = "yes"; then
34684 cat >>confdefs.h <<\_ACEOF
34685#define wxUSE_TEXTBUFFER 1
34686_ACEOF
34687
34688fi
34689
34690if test "$wxUSE_TEXTFILE" = "yes"; then
34691 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34692 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34693echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34694 else
34695 cat >>confdefs.h <<\_ACEOF
34696#define wxUSE_TEXTFILE 1
34697_ACEOF
34698
34699 fi
34700fi
34701
34702if test "$wxUSE_CONFIG" = "yes" ; then
34703 if test "$wxUSE_TEXTFILE" != "yes"; then
34704 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34705echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34706 else
34707 cat >>confdefs.h <<\_ACEOF
34708#define wxUSE_CONFIG 1
34709_ACEOF
34710
34711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34712 fi
34713fi
34714
34715if test "$wxUSE_INTL" = "yes" ; then
34716 if test "$wxUSE_FILE" != "yes"; then
34717 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34718echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34719 else
34720 cat >>confdefs.h <<\_ACEOF
34721#define wxUSE_INTL 1
34722_ACEOF
34723
34724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34725 GUIDIST="$GUIDIST INTL_DIST"
34726 fi
34727fi
34728
34729if test "$wxUSE_LOG" = "yes"; then
34730 cat >>confdefs.h <<\_ACEOF
34731#define wxUSE_LOG 1
34732_ACEOF
34733
34734
34735 if test "$wxUSE_LOGGUI" = "yes"; then
34736 cat >>confdefs.h <<\_ACEOF
34737#define wxUSE_LOGGUI 1
34738_ACEOF
34739
34740 fi
34741
34742 if test "$wxUSE_LOGWINDOW" = "yes"; then
34743 cat >>confdefs.h <<\_ACEOF
34744#define wxUSE_LOGWINDOW 1
34745_ACEOF
34746
34747 fi
34748
34749 if test "$wxUSE_LOGDIALOG" = "yes"; then
34750 cat >>confdefs.h <<\_ACEOF
34751#define wxUSE_LOG_DIALOG 1
34752_ACEOF
34753
34754 fi
34755fi
34756
34757if test "$wxUSE_LONGLONG" = "yes"; then
34758 cat >>confdefs.h <<\_ACEOF
34759#define wxUSE_LONGLONG 1
34760_ACEOF
34761
34762fi
34763
34764if test "$wxUSE_GEOMETRY" = "yes"; then
34765 cat >>confdefs.h <<\_ACEOF
34766#define wxUSE_GEOMETRY 1
34767_ACEOF
34768
34769fi
34770
34771if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34772 cat >>confdefs.h <<\_ACEOF
34773#define wxUSE_DIALUP_MANAGER 1
34774_ACEOF
34775
34776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34777fi
34778
34779if test "$wxUSE_STREAMS" = "yes" ; then
34780 cat >>confdefs.h <<\_ACEOF
34781#define wxUSE_STREAMS 1
34782_ACEOF
34783
34784fi
34785
34786
34787if test "$wxUSE_DATETIME" = "yes"; then
34788
34789for ac_func in strptime
34790do
34791as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34792echo "$as_me:$LINENO: checking for $ac_func" >&5
34793echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34794if eval "test \"\${$as_ac_var+set}\" = set"; then
34795 echo $ECHO_N "(cached) $ECHO_C" >&6
34796else
34797 cat >conftest.$ac_ext <<_ACEOF
34798/* confdefs.h. */
34799_ACEOF
34800cat confdefs.h >>conftest.$ac_ext
34801cat >>conftest.$ac_ext <<_ACEOF
34802/* end confdefs.h. */
ac1cb8d3
VS
34803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34805#define $ac_func innocuous_$ac_func
34806
a848cd7e
SC
34807/* System header to define __stub macros and hopefully few prototypes,
34808 which can conflict with char $ac_func (); below.
34809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34810 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34811
a848cd7e
SC
34812#ifdef __STDC__
34813# include <limits.h>
34814#else
34815# include <assert.h>
34816#endif
ac1cb8d3
VS
34817
34818#undef $ac_func
34819
a848cd7e
SC
34820/* Override any gcc2 internal prototype to avoid an error. */
34821#ifdef __cplusplus
34822extern "C"
34823{
34824#endif
34825/* We use char because int might match the return type of a gcc2
34826 builtin and then its argument prototype would still apply. */
34827char $ac_func ();
34828/* The GNU C library defines this for functions which it implements
34829 to always fail with ENOSYS. Some functions are actually named
34830 something starting with __ and the normal name is an alias. */
34831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34832choke me
34833#else
34834char (*f) () = $ac_func;
34835#endif
34836#ifdef __cplusplus
34837}
34838#endif
34839
34840int
34841main ()
34842{
34843return f != $ac_func;
34844 ;
34845 return 0;
34846}
34847_ACEOF
34848rm -f conftest.$ac_objext conftest$ac_exeext
34849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34850 (eval $ac_link) 2>conftest.er1
a848cd7e 34851 ac_status=$?
ac1cb8d3
VS
34852 grep -v '^ *+' conftest.er1 >conftest.err
34853 rm -f conftest.er1
34854 cat conftest.err >&5
a848cd7e
SC
34855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34856 (exit $ac_status); } &&
b48a2016
DE
34857 { ac_try='test -z "$ac_c_werror_flag"
34858 || test ! -s conftest.err'
ac1cb8d3
VS
34859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34860 (eval $ac_try) 2>&5
34861 ac_status=$?
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); }; } &&
34864 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34866 (eval $ac_try) 2>&5
34867 ac_status=$?
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); }; }; then
34870 eval "$as_ac_var=yes"
34871else
34872 echo "$as_me: failed program was:" >&5
34873sed 's/^/| /' conftest.$ac_ext >&5
34874
34875eval "$as_ac_var=no"
34876fi
ac1cb8d3
VS
34877rm -f conftest.err conftest.$ac_objext \
34878 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34879fi
34880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34881echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34882if test `eval echo '${'$as_ac_var'}'` = yes; then
34883 cat >>confdefs.h <<_ACEOF
34884#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34885_ACEOF
34886
34887fi
34888done
34889
34890
34891 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34892echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34893if test "${wx_cv_var_timezone+set}" = set; then
34894 echo $ECHO_N "(cached) $ECHO_C" >&6
34895else
34896
34897 cat >conftest.$ac_ext <<_ACEOF
34898/* confdefs.h. */
34899_ACEOF
34900cat confdefs.h >>conftest.$ac_ext
34901cat >>conftest.$ac_ext <<_ACEOF
34902/* end confdefs.h. */
34903
34904 #include <time.h>
34905
34906int
34907main ()
34908{
34909
34910 int tz;
34911 tz = timezone;
34912
34913 ;
34914 return 0;
34915}
34916_ACEOF
34917rm -f conftest.$ac_objext
34918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34919 (eval $ac_compile) 2>conftest.er1
a848cd7e 34920 ac_status=$?
ac1cb8d3
VS
34921 grep -v '^ *+' conftest.er1 >conftest.err
34922 rm -f conftest.er1
34923 cat conftest.err >&5
a848cd7e
SC
34924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925 (exit $ac_status); } &&
b48a2016
DE
34926 { ac_try='test -z "$ac_c_werror_flag"
34927 || test ! -s conftest.err'
ac1cb8d3
VS
34928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929 (eval $ac_try) 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; } &&
34933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935 (eval $ac_try) 2>&5
34936 ac_status=$?
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; }; then
34939
34940 wx_cv_var_timezone=timezone
34941
34942else
34943 echo "$as_me: failed program was:" >&5
34944sed 's/^/| /' conftest.$ac_ext >&5
34945
34946
34947 cat >conftest.$ac_ext <<_ACEOF
34948/* confdefs.h. */
34949_ACEOF
34950cat confdefs.h >>conftest.$ac_ext
34951cat >>conftest.$ac_ext <<_ACEOF
34952/* end confdefs.h. */
34953
34954 #include <time.h>
34955
34956int
34957main ()
34958{
34959
34960 int tz;
34961 tz = _timezone;
34962
34963 ;
34964 return 0;
34965}
34966_ACEOF
34967rm -f conftest.$ac_objext
34968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34969 (eval $ac_compile) 2>conftest.er1
a848cd7e 34970 ac_status=$?
ac1cb8d3
VS
34971 grep -v '^ *+' conftest.er1 >conftest.err
34972 rm -f conftest.er1
34973 cat conftest.err >&5
a848cd7e
SC
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); } &&
b48a2016
DE
34976 { ac_try='test -z "$ac_c_werror_flag"
34977 || test ! -s conftest.err'
ac1cb8d3
VS
34978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979 (eval $ac_try) 2>&5
34980 ac_status=$?
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); }; } &&
34983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34985 (eval $ac_try) 2>&5
34986 ac_status=$?
34987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34988 (exit $ac_status); }; }; then
34989
34990 wx_cv_var_timezone=_timezone
34991
34992else
34993 echo "$as_me: failed program was:" >&5
34994sed 's/^/| /' conftest.$ac_ext >&5
34995
34996
34997 cat >conftest.$ac_ext <<_ACEOF
34998/* confdefs.h. */
34999_ACEOF
35000cat confdefs.h >>conftest.$ac_ext
35001cat >>conftest.$ac_ext <<_ACEOF
35002/* end confdefs.h. */
35003
35004 #include <time.h>
35005
35006int
35007main ()
35008{
35009
35010 int tz;
35011 tz = __timezone;
35012
35013 ;
35014 return 0;
35015}
35016_ACEOF
35017rm -f conftest.$ac_objext
35018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35019 (eval $ac_compile) 2>conftest.er1
a848cd7e 35020 ac_status=$?
ac1cb8d3
VS
35021 grep -v '^ *+' conftest.er1 >conftest.err
35022 rm -f conftest.er1
35023 cat conftest.err >&5
a848cd7e
SC
35024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35025 (exit $ac_status); } &&
b48a2016
DE
35026 { ac_try='test -z "$ac_c_werror_flag"
35027 || test ! -s conftest.err'
ac1cb8d3
VS
35028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35029 (eval $ac_try) 2>&5
35030 ac_status=$?
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); }; } &&
35033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35035 (eval $ac_try) 2>&5
35036 ac_status=$?
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); }; }; then
35039
35040 wx_cv_var_timezone=__timezone
35041
35042else
35043 echo "$as_me: failed program was:" >&5
35044sed 's/^/| /' conftest.$ac_ext >&5
35045
35046
35047 if test "$USE_DOS" = 0 ; then
35048 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35049echo "$as_me: WARNING: no timezone variable" >&2;}
35050 fi
35051
35052
35053fi
ac1cb8d3 35054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35055
35056
35057fi
ac1cb8d3 35058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35059
35060
35061fi
ac1cb8d3 35062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35063
35064
35065fi
35066echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35067echo "${ECHO_T}$wx_cv_var_timezone" >&6
35068
35069 if test "x$wx_cv_var_timezone" != x ; then
35070 cat >>confdefs.h <<_ACEOF
35071#define WX_TIMEZONE $wx_cv_var_timezone
35072_ACEOF
35073
35074 fi
35075
35076
35077for ac_func in localtime
35078do
35079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35080echo "$as_me:$LINENO: checking for $ac_func" >&5
35081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35082if eval "test \"\${$as_ac_var+set}\" = set"; then
35083 echo $ECHO_N "(cached) $ECHO_C" >&6
35084else
35085 cat >conftest.$ac_ext <<_ACEOF
35086/* confdefs.h. */
35087_ACEOF
35088cat confdefs.h >>conftest.$ac_ext
35089cat >>conftest.$ac_ext <<_ACEOF
35090/* end confdefs.h. */
ac1cb8d3
VS
35091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35093#define $ac_func innocuous_$ac_func
35094
a848cd7e
SC
35095/* System header to define __stub macros and hopefully few prototypes,
35096 which can conflict with char $ac_func (); below.
35097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35098 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35099
a848cd7e
SC
35100#ifdef __STDC__
35101# include <limits.h>
35102#else
35103# include <assert.h>
35104#endif
ac1cb8d3
VS
35105
35106#undef $ac_func
35107
a848cd7e
SC
35108/* Override any gcc2 internal prototype to avoid an error. */
35109#ifdef __cplusplus
35110extern "C"
35111{
35112#endif
35113/* We use char because int might match the return type of a gcc2
35114 builtin and then its argument prototype would still apply. */
35115char $ac_func ();
35116/* The GNU C library defines this for functions which it implements
35117 to always fail with ENOSYS. Some functions are actually named
35118 something starting with __ and the normal name is an alias. */
35119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35120choke me
35121#else
35122char (*f) () = $ac_func;
35123#endif
35124#ifdef __cplusplus
35125}
35126#endif
35127
35128int
35129main ()
35130{
35131return f != $ac_func;
35132 ;
35133 return 0;
35134}
35135_ACEOF
35136rm -f conftest.$ac_objext conftest$ac_exeext
35137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35138 (eval $ac_link) 2>conftest.er1
a848cd7e 35139 ac_status=$?
ac1cb8d3
VS
35140 grep -v '^ *+' conftest.er1 >conftest.err
35141 rm -f conftest.er1
35142 cat conftest.err >&5
a848cd7e
SC
35143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35144 (exit $ac_status); } &&
b48a2016
DE
35145 { ac_try='test -z "$ac_c_werror_flag"
35146 || test ! -s conftest.err'
ac1cb8d3
VS
35147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35148 (eval $ac_try) 2>&5
35149 ac_status=$?
35150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151 (exit $ac_status); }; } &&
35152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154 (eval $ac_try) 2>&5
35155 ac_status=$?
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); }; }; then
35158 eval "$as_ac_var=yes"
35159else
35160 echo "$as_me: failed program was:" >&5
35161sed 's/^/| /' conftest.$ac_ext >&5
35162
35163eval "$as_ac_var=no"
35164fi
ac1cb8d3
VS
35165rm -f conftest.err conftest.$ac_objext \
35166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35167fi
35168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35170if test `eval echo '${'$as_ac_var'}'` = yes; then
35171 cat >>confdefs.h <<_ACEOF
35172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35173_ACEOF
35174
35175fi
35176done
35177
35178
35179 if test "$ac_cv_func_localtime" = "yes"; then
35180 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35181echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35182if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35183 echo $ECHO_N "(cached) $ECHO_C" >&6
35184else
35185
35186 cat >conftest.$ac_ext <<_ACEOF
35187/* confdefs.h. */
35188_ACEOF
35189cat confdefs.h >>conftest.$ac_ext
35190cat >>conftest.$ac_ext <<_ACEOF
35191/* end confdefs.h. */
35192
35193 #include <time.h>
35194
35195int
35196main ()
35197{
35198
35199 struct tm tm;
35200 tm.tm_gmtoff++;
35201
35202 ;
35203 return 0;
35204}
35205_ACEOF
35206rm -f conftest.$ac_objext
35207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35208 (eval $ac_compile) 2>conftest.er1
a848cd7e 35209 ac_status=$?
ac1cb8d3
VS
35210 grep -v '^ *+' conftest.er1 >conftest.err
35211 rm -f conftest.er1
35212 cat conftest.err >&5
a848cd7e
SC
35213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35214 (exit $ac_status); } &&
b48a2016
DE
35215 { ac_try='test -z "$ac_c_werror_flag"
35216 || test ! -s conftest.err'
ac1cb8d3
VS
35217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35218 (eval $ac_try) 2>&5
35219 ac_status=$?
35220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221 (exit $ac_status); }; } &&
35222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35224 (eval $ac_try) 2>&5
35225 ac_status=$?
35226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227 (exit $ac_status); }; }; then
35228
35229 wx_cv_struct_tm_has_gmtoff=yes
35230
35231else
35232 echo "$as_me: failed program was:" >&5
35233sed 's/^/| /' conftest.$ac_ext >&5
35234
35235wx_cv_struct_tm_has_gmtoff=no
35236
35237fi
ac1cb8d3 35238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35239
35240fi
35241echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35242echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35243 fi
35244
35245 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35246 cat >>confdefs.h <<\_ACEOF
35247#define WX_GMTOFF_IN_TM 1
35248_ACEOF
35249
35250 fi
35251
35252
35253
35254for ac_func in gettimeofday ftime
35255do
35256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35257echo "$as_me:$LINENO: checking for $ac_func" >&5
35258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35259if eval "test \"\${$as_ac_var+set}\" = set"; then
35260 echo $ECHO_N "(cached) $ECHO_C" >&6
35261else
35262 cat >conftest.$ac_ext <<_ACEOF
35263/* confdefs.h. */
35264_ACEOF
35265cat confdefs.h >>conftest.$ac_ext
35266cat >>conftest.$ac_ext <<_ACEOF
35267/* end confdefs.h. */
ac1cb8d3
VS
35268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35270#define $ac_func innocuous_$ac_func
35271
a848cd7e
SC
35272/* System header to define __stub macros and hopefully few prototypes,
35273 which can conflict with char $ac_func (); below.
35274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35275 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35276
a848cd7e
SC
35277#ifdef __STDC__
35278# include <limits.h>
35279#else
35280# include <assert.h>
35281#endif
ac1cb8d3
VS
35282
35283#undef $ac_func
35284
a848cd7e
SC
35285/* Override any gcc2 internal prototype to avoid an error. */
35286#ifdef __cplusplus
35287extern "C"
35288{
35289#endif
35290/* We use char because int might match the return type of a gcc2
35291 builtin and then its argument prototype would still apply. */
35292char $ac_func ();
35293/* The GNU C library defines this for functions which it implements
35294 to always fail with ENOSYS. Some functions are actually named
35295 something starting with __ and the normal name is an alias. */
35296#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35297choke me
35298#else
35299char (*f) () = $ac_func;
35300#endif
35301#ifdef __cplusplus
35302}
35303#endif
35304
35305int
35306main ()
35307{
35308return f != $ac_func;
35309 ;
35310 return 0;
35311}
35312_ACEOF
35313rm -f conftest.$ac_objext conftest$ac_exeext
35314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35315 (eval $ac_link) 2>conftest.er1
a848cd7e 35316 ac_status=$?
ac1cb8d3
VS
35317 grep -v '^ *+' conftest.er1 >conftest.err
35318 rm -f conftest.er1
35319 cat conftest.err >&5
a848cd7e
SC
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); } &&
b48a2016
DE
35322 { ac_try='test -z "$ac_c_werror_flag"
35323 || test ! -s conftest.err'
ac1cb8d3
VS
35324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35325 (eval $ac_try) 2>&5
35326 ac_status=$?
35327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35328 (exit $ac_status); }; } &&
35329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35331 (eval $ac_try) 2>&5
35332 ac_status=$?
35333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334 (exit $ac_status); }; }; then
35335 eval "$as_ac_var=yes"
35336else
35337 echo "$as_me: failed program was:" >&5
35338sed 's/^/| /' conftest.$ac_ext >&5
35339
35340eval "$as_ac_var=no"
35341fi
ac1cb8d3
VS
35342rm -f conftest.err conftest.$ac_objext \
35343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35344fi
35345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35346echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35347if test `eval echo '${'$as_ac_var'}'` = yes; then
35348 cat >>confdefs.h <<_ACEOF
35349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35350_ACEOF
35351 break
35352fi
35353done
35354
35355
35356 if test "$ac_cv_func_gettimeofday" = "yes"; then
35357 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35358echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35359if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35360 echo $ECHO_N "(cached) $ECHO_C" >&6
35361else
35362
35363
35364
35365 ac_ext=cc
35366ac_cpp='$CXXCPP $CPPFLAGS'
35367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35370
35371
35372 cat >conftest.$ac_ext <<_ACEOF
35373/* confdefs.h. */
35374_ACEOF
35375cat confdefs.h >>conftest.$ac_ext
35376cat >>conftest.$ac_ext <<_ACEOF
35377/* end confdefs.h. */
35378
35379 #include <sys/time.h>
35380 #include <unistd.h>
35381
35382int
35383main ()
35384{
35385
35386 struct timeval tv;
35387 gettimeofday(&tv, NULL);
35388
35389 ;
35390 return 0;
35391}
35392_ACEOF
35393rm -f conftest.$ac_objext
35394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35395 (eval $ac_compile) 2>conftest.er1
a848cd7e 35396 ac_status=$?
ac1cb8d3
VS
35397 grep -v '^ *+' conftest.er1 >conftest.err
35398 rm -f conftest.er1
35399 cat conftest.err >&5
a848cd7e
SC
35400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401 (exit $ac_status); } &&
b48a2016
DE
35402 { ac_try='test -z "$ac_cxx_werror_flag"
35403 || test ! -s conftest.err'
ac1cb8d3
VS
35404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405 (eval $ac_try) 2>&5
35406 ac_status=$?
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); }; } &&
35409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35411 (eval $ac_try) 2>&5
35412 ac_status=$?
35413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414 (exit $ac_status); }; }; then
35415 wx_cv_func_gettimeofday_has_2_args=yes
35416else
35417 echo "$as_me: failed program was:" >&5
35418sed 's/^/| /' conftest.$ac_ext >&5
35419
35420cat >conftest.$ac_ext <<_ACEOF
35421/* confdefs.h. */
35422_ACEOF
35423cat confdefs.h >>conftest.$ac_ext
35424cat >>conftest.$ac_ext <<_ACEOF
35425/* end confdefs.h. */
35426
35427 #include <sys/time.h>
35428 #include <unistd.h>
35429
35430int
35431main ()
35432{
35433
35434 struct timeval tv;
35435 gettimeofday(&tv);
35436
35437 ;
35438 return 0;
35439}
35440_ACEOF
35441rm -f conftest.$ac_objext
35442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35443 (eval $ac_compile) 2>conftest.er1
a848cd7e 35444 ac_status=$?
ac1cb8d3
VS
35445 grep -v '^ *+' conftest.er1 >conftest.err
35446 rm -f conftest.er1
35447 cat conftest.err >&5
a848cd7e
SC
35448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449 (exit $ac_status); } &&
b48a2016
DE
35450 { ac_try='test -z "$ac_cxx_werror_flag"
35451 || test ! -s conftest.err'
ac1cb8d3
VS
35452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35453 (eval $ac_try) 2>&5
35454 ac_status=$?
35455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456 (exit $ac_status); }; } &&
35457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35459 (eval $ac_try) 2>&5
35460 ac_status=$?
35461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462 (exit $ac_status); }; }; then
35463 wx_cv_func_gettimeofday_has_2_args=no
35464else
35465 echo "$as_me: failed program was:" >&5
35466sed 's/^/| /' conftest.$ac_ext >&5
35467
35468
35469 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35470echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35471 wx_cv_func_gettimeofday_has_2_args=unknown
35472
35473
35474fi
ac1cb8d3 35475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35476
35477fi
ac1cb8d3 35478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35479 ac_ext=c
35480ac_cpp='$CPP $CPPFLAGS'
35481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35483ac_compiler_gnu=$ac_cv_c_compiler_gnu
35484
35485
35486fi
35487echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35488echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35489
35490 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35491 cat >>confdefs.h <<\_ACEOF
35492#define WX_GETTIMEOFDAY_NO_TZ 1
35493_ACEOF
35494
35495 fi
35496 fi
35497
35498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35499fi
35500
35501
35502if test "$wxUSE_SOCKETS" = "yes"; then
35503 if test "$wxUSE_MGL" = "1"; then
35504 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35505echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35506 wxUSE_SOCKETS="no"
35507 fi
35508fi
35509
35510if test "$wxUSE_SOCKETS" = "yes"; then
35511 if test "$TOOLKIT" != "MSW"; then
35512 echo "$as_me:$LINENO: checking for socket" >&5
35513echo $ECHO_N "checking for socket... $ECHO_C" >&6
35514if test "${ac_cv_func_socket+set}" = set; then
35515 echo $ECHO_N "(cached) $ECHO_C" >&6
35516else
35517 cat >conftest.$ac_ext <<_ACEOF
35518/* confdefs.h. */
35519_ACEOF
35520cat confdefs.h >>conftest.$ac_ext
35521cat >>conftest.$ac_ext <<_ACEOF
35522/* end confdefs.h. */
ac1cb8d3
VS
35523/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35525#define socket innocuous_socket
35526
a848cd7e
SC
35527/* System header to define __stub macros and hopefully few prototypes,
35528 which can conflict with char socket (); below.
35529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35530 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35531
a848cd7e
SC
35532#ifdef __STDC__
35533# include <limits.h>
35534#else
35535# include <assert.h>
35536#endif
ac1cb8d3
VS
35537
35538#undef socket
35539
a848cd7e
SC
35540/* Override any gcc2 internal prototype to avoid an error. */
35541#ifdef __cplusplus
35542extern "C"
35543{
35544#endif
35545/* We use char because int might match the return type of a gcc2
35546 builtin and then its argument prototype would still apply. */
35547char socket ();
35548/* The GNU C library defines this for functions which it implements
35549 to always fail with ENOSYS. Some functions are actually named
35550 something starting with __ and the normal name is an alias. */
35551#if defined (__stub_socket) || defined (__stub___socket)
35552choke me
35553#else
35554char (*f) () = socket;
35555#endif
35556#ifdef __cplusplus
35557}
35558#endif
35559
35560int
35561main ()
35562{
35563return f != socket;
35564 ;
35565 return 0;
35566}
35567_ACEOF
35568rm -f conftest.$ac_objext conftest$ac_exeext
35569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35570 (eval $ac_link) 2>conftest.er1
a848cd7e 35571 ac_status=$?
ac1cb8d3
VS
35572 grep -v '^ *+' conftest.er1 >conftest.err
35573 rm -f conftest.er1
35574 cat conftest.err >&5
a848cd7e
SC
35575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576 (exit $ac_status); } &&
b48a2016
DE
35577 { ac_try='test -z "$ac_c_werror_flag"
35578 || test ! -s conftest.err'
ac1cb8d3
VS
35579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35580 (eval $ac_try) 2>&5
35581 ac_status=$?
35582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583 (exit $ac_status); }; } &&
35584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35586 (eval $ac_try) 2>&5
35587 ac_status=$?
35588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589 (exit $ac_status); }; }; then
35590 ac_cv_func_socket=yes
35591else
35592 echo "$as_me: failed program was:" >&5
35593sed 's/^/| /' conftest.$ac_ext >&5
35594
35595ac_cv_func_socket=no
35596fi
ac1cb8d3
VS
35597rm -f conftest.err conftest.$ac_objext \
35598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35599fi
35600echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35601echo "${ECHO_T}$ac_cv_func_socket" >&6
35602if test $ac_cv_func_socket = yes; then
35603 :
35604else
35605
35606 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35607echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35608if test "${ac_cv_lib_socket_socket+set}" = set; then
35609 echo $ECHO_N "(cached) $ECHO_C" >&6
35610else
35611 ac_check_lib_save_LIBS=$LIBS
35612LIBS="-lsocket $LIBS"
35613cat >conftest.$ac_ext <<_ACEOF
35614/* confdefs.h. */
35615_ACEOF
35616cat confdefs.h >>conftest.$ac_ext
35617cat >>conftest.$ac_ext <<_ACEOF
35618/* end confdefs.h. */
35619
35620/* Override any gcc2 internal prototype to avoid an error. */
35621#ifdef __cplusplus
35622extern "C"
35623#endif
35624/* We use char because int might match the return type of a gcc2
35625 builtin and then its argument prototype would still apply. */
35626char socket ();
35627int
35628main ()
35629{
35630socket ();
35631 ;
35632 return 0;
35633}
35634_ACEOF
35635rm -f conftest.$ac_objext conftest$ac_exeext
35636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35637 (eval $ac_link) 2>conftest.er1
a848cd7e 35638 ac_status=$?
ac1cb8d3
VS
35639 grep -v '^ *+' conftest.er1 >conftest.err
35640 rm -f conftest.er1
35641 cat conftest.err >&5
a848cd7e
SC
35642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643 (exit $ac_status); } &&
b48a2016
DE
35644 { ac_try='test -z "$ac_c_werror_flag"
35645 || test ! -s conftest.err'
ac1cb8d3
VS
35646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35647 (eval $ac_try) 2>&5
35648 ac_status=$?
35649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650 (exit $ac_status); }; } &&
35651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35653 (eval $ac_try) 2>&5
35654 ac_status=$?
35655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656 (exit $ac_status); }; }; then
35657 ac_cv_lib_socket_socket=yes
35658else
35659 echo "$as_me: failed program was:" >&5
35660sed 's/^/| /' conftest.$ac_ext >&5
35661
35662ac_cv_lib_socket_socket=no
35663fi
ac1cb8d3
VS
35664rm -f conftest.err conftest.$ac_objext \
35665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35666LIBS=$ac_check_lib_save_LIBS
35667fi
35668echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35669echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35670if test $ac_cv_lib_socket_socket = yes; then
35671 if test "$INET_LINK" != " -lsocket"; then
35672 INET_LINK="$INET_LINK -lsocket"
35673 fi
35674else
35675
35676 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35677echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35678 wxUSE_SOCKETS=no
35679
35680
35681fi
35682
35683
35684
35685fi
35686
35687 fi
35688fi
35689
35690if test "$wxUSE_SOCKETS" = "yes" ; then
35691 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35692 ac_ext=cc
35693ac_cpp='$CXXCPP $CPPFLAGS'
35694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35697
35698 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35699echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35700if test "${wx_cv_type_getsockname3+set}" = set; then
35701 echo $ECHO_N "(cached) $ECHO_C" >&6
35702else
35703
35704 cat >conftest.$ac_ext <<_ACEOF
35705/* confdefs.h. */
35706_ACEOF
35707cat confdefs.h >>conftest.$ac_ext
35708cat >>conftest.$ac_ext <<_ACEOF
35709/* end confdefs.h. */
35710
35711 #include <sys/types.h>
35712 #include <sys/socket.h>
35713
35714int
35715main ()
35716{
35717
35718 socklen_t len;
35719 getsockname(0, 0, &len);
35720
35721 ;
35722 return 0;
35723}
35724_ACEOF
35725rm -f conftest.$ac_objext
35726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35727 (eval $ac_compile) 2>conftest.er1
a848cd7e 35728 ac_status=$?
ac1cb8d3
VS
35729 grep -v '^ *+' conftest.er1 >conftest.err
35730 rm -f conftest.er1
35731 cat conftest.err >&5
a848cd7e
SC
35732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35733 (exit $ac_status); } &&
b48a2016
DE
35734 { ac_try='test -z "$ac_cxx_werror_flag"
35735 || test ! -s conftest.err'
ac1cb8d3
VS
35736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35737 (eval $ac_try) 2>&5
35738 ac_status=$?
35739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740 (exit $ac_status); }; } &&
35741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35743 (eval $ac_try) 2>&5
35744 ac_status=$?
35745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746 (exit $ac_status); }; }; then
35747 wx_cv_type_getsockname3=socklen_t
35748else
35749 echo "$as_me: failed program was:" >&5
35750sed 's/^/| /' conftest.$ac_ext >&5
35751
35752
35753 CFLAGS_OLD="$CFLAGS"
35754 if test "$GCC" = yes ; then
35755 CFLAGS="$CFLAGS -Werror"
35756 fi
35757
35758 cat >conftest.$ac_ext <<_ACEOF
35759/* confdefs.h. */
35760_ACEOF
35761cat confdefs.h >>conftest.$ac_ext
35762cat >>conftest.$ac_ext <<_ACEOF
35763/* end confdefs.h. */
35764
35765 #include <sys/types.h>
35766 #include <sys/socket.h>
35767
35768int
35769main ()
35770{
35771
35772 size_t len;
35773 getsockname(0, 0, &len);
35774
35775 ;
35776 return 0;
35777}
35778_ACEOF
35779rm -f conftest.$ac_objext
35780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35781 (eval $ac_compile) 2>conftest.er1
a848cd7e 35782 ac_status=$?
ac1cb8d3
VS
35783 grep -v '^ *+' conftest.er1 >conftest.err
35784 rm -f conftest.er1
35785 cat conftest.err >&5
a848cd7e
SC
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); } &&
b48a2016
DE
35788 { ac_try='test -z "$ac_cxx_werror_flag"
35789 || test ! -s conftest.err'
ac1cb8d3
VS
35790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35791 (eval $ac_try) 2>&5
35792 ac_status=$?
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); }; } &&
35795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35797 (eval $ac_try) 2>&5
35798 ac_status=$?
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); }; }; then
35801 wx_cv_type_getsockname3=size_t
35802else
35803 echo "$as_me: failed program was:" >&5
35804sed 's/^/| /' conftest.$ac_ext >&5
35805
35806cat >conftest.$ac_ext <<_ACEOF
35807/* confdefs.h. */
35808_ACEOF
35809cat confdefs.h >>conftest.$ac_ext
35810cat >>conftest.$ac_ext <<_ACEOF
35811/* end confdefs.h. */
35812
35813 #include <sys/types.h>
35814 #include <sys/socket.h>
35815
35816int
35817main ()
35818{
35819
35820 int len;
35821 getsockname(0, 0, &len);
35822
35823 ;
35824 return 0;
35825}
35826_ACEOF
35827rm -f conftest.$ac_objext
35828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35829 (eval $ac_compile) 2>conftest.er1
a848cd7e 35830 ac_status=$?
ac1cb8d3
VS
35831 grep -v '^ *+' conftest.er1 >conftest.err
35832 rm -f conftest.er1
35833 cat conftest.err >&5
a848cd7e
SC
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); } &&
b48a2016
DE
35836 { ac_try='test -z "$ac_cxx_werror_flag"
35837 || test ! -s conftest.err'
ac1cb8d3
VS
35838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35839 (eval $ac_try) 2>&5
35840 ac_status=$?
35841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842 (exit $ac_status); }; } &&
35843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35845 (eval $ac_try) 2>&5
35846 ac_status=$?
35847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35848 (exit $ac_status); }; }; then
35849 wx_cv_type_getsockname3=int
35850else
35851 echo "$as_me: failed program was:" >&5
35852sed 's/^/| /' conftest.$ac_ext >&5
35853
35854wx_cv_type_getsockname3=unknown
35855
35856fi
ac1cb8d3 35857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35858
35859fi
ac1cb8d3 35860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35861
35862 CFLAGS="$CFLAGS_OLD"
35863
35864
35865fi
ac1cb8d3 35866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35867
35868fi
35869echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35870echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35871
35872 if test "$wx_cv_type_getsockname3" = "unknown"; then
35873 wxUSE_SOCKETS=no
35874 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35875echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35876 else
35877 cat >>confdefs.h <<_ACEOF
35878#define SOCKLEN_T $wx_cv_type_getsockname3
35879_ACEOF
35880
35881 fi
4d4ff94c
VZ
35882 ac_ext=c
35883ac_cpp='$CPP $CPPFLAGS'
35884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35886ac_compiler_gnu=$ac_cv_c_compiler_gnu
35887
a848cd7e
SC
35888 fi
35889fi
35890
35891if test "$wxUSE_SOCKETS" = "yes" ; then
35892 cat >>confdefs.h <<\_ACEOF
35893#define wxUSE_SOCKETS 1
35894_ACEOF
35895
35896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35897fi
35898
35899if test "$wxUSE_PROTOCOL" = "yes"; then
35900 if test "$wxUSE_SOCKETS" != "yes"; then
35901 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35902echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35903 wxUSE_PROTOCOL=no
35904 fi
35905fi
35906
35907if test "$wxUSE_PROTOCOL" = "yes"; then
35908 cat >>confdefs.h <<\_ACEOF
35909#define wxUSE_PROTOCOL 1
35910_ACEOF
35911
35912
35913 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35914 cat >>confdefs.h <<\_ACEOF
35915#define wxUSE_PROTOCOL_HTTP 1
35916_ACEOF
35917
35918 fi
35919 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35920 cat >>confdefs.h <<\_ACEOF
35921#define wxUSE_PROTOCOL_FTP 1
35922_ACEOF
35923
35924 fi
35925 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35926 cat >>confdefs.h <<\_ACEOF
35927#define wxUSE_PROTOCOL_FILE 1
35928_ACEOF
35929
35930 fi
35931else
35932 if test "$wxUSE_FS_INET" = "yes"; then
35933 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35934echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35935 wxUSE_FS_INET="no"
35936 fi
35937fi
35938
35939if test "$wxUSE_URL" = "yes"; then
35940 if test "$wxUSE_PROTOCOL" != "yes"; then
35941 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35942echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35943 wxUSE_URL=no
35944 fi
35945 if test "$wxUSE_URL" = "yes"; then
35946 cat >>confdefs.h <<\_ACEOF
35947#define wxUSE_URL 1
35948_ACEOF
35949
35950 fi
35951fi
35952
35953if test "$wxUSE_FS_INET" = "yes"; then
35954 cat >>confdefs.h <<\_ACEOF
35955#define wxUSE_FS_INET 1
35956_ACEOF
35957
35958fi
35959
35960
35961if test "$wxUSE_GUI" = "yes"; then
35962
35963 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35964 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35965echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35966 wxUSE_JOYSTICK=no
35967 fi
35968
35969 if test "$TOOLKIT" != "MSW"; then
35970 if test "$wxUSE_JOYSTICK" = "yes"; then
35971
35972for ac_header in linux/joystick.h
35973do
35974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35975if eval "test \"\${$as_ac_Header+set}\" = set"; then
35976 echo "$as_me:$LINENO: checking for $ac_header" >&5
35977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35978if eval "test \"\${$as_ac_Header+set}\" = set"; then
35979 echo $ECHO_N "(cached) $ECHO_C" >&6
35980fi
35981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35983else
35984 # Is the header compilable?
35985echo "$as_me:$LINENO: checking $ac_header usability" >&5
35986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35987cat >conftest.$ac_ext <<_ACEOF
35988/* confdefs.h. */
35989_ACEOF
35990cat confdefs.h >>conftest.$ac_ext
35991cat >>conftest.$ac_ext <<_ACEOF
35992/* end confdefs.h. */
35993$ac_includes_default
35994#include <$ac_header>
35995_ACEOF
35996rm -f conftest.$ac_objext
35997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35998 (eval $ac_compile) 2>conftest.er1
a848cd7e 35999 ac_status=$?
ac1cb8d3
VS
36000 grep -v '^ *+' conftest.er1 >conftest.err
36001 rm -f conftest.er1
36002 cat conftest.err >&5
a848cd7e
SC
36003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36004 (exit $ac_status); } &&
b48a2016
DE
36005 { ac_try='test -z "$ac_c_werror_flag"
36006 || test ! -s conftest.err'
ac1cb8d3
VS
36007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36008 (eval $ac_try) 2>&5
36009 ac_status=$?
36010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011 (exit $ac_status); }; } &&
36012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36014 (eval $ac_try) 2>&5
36015 ac_status=$?
36016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017 (exit $ac_status); }; }; then
36018 ac_header_compiler=yes
36019else
36020 echo "$as_me: failed program was:" >&5
36021sed 's/^/| /' conftest.$ac_ext >&5
36022
36023ac_header_compiler=no
36024fi
ac1cb8d3 36025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36027echo "${ECHO_T}$ac_header_compiler" >&6
36028
36029# Is the header present?
36030echo "$as_me:$LINENO: checking $ac_header presence" >&5
36031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36032cat >conftest.$ac_ext <<_ACEOF
36033/* confdefs.h. */
36034_ACEOF
36035cat confdefs.h >>conftest.$ac_ext
36036cat >>conftest.$ac_ext <<_ACEOF
36037/* end confdefs.h. */
36038#include <$ac_header>
36039_ACEOF
36040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36042 ac_status=$?
36043 grep -v '^ *+' conftest.er1 >conftest.err
36044 rm -f conftest.er1
36045 cat conftest.err >&5
36046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047 (exit $ac_status); } >/dev/null; then
36048 if test -s conftest.err; then
36049 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36051 else
36052 ac_cpp_err=
36053 fi
36054else
36055 ac_cpp_err=yes
36056fi
36057if test -z "$ac_cpp_err"; then
36058 ac_header_preproc=yes
36059else
36060 echo "$as_me: failed program was:" >&5
36061sed 's/^/| /' conftest.$ac_ext >&5
36062
36063 ac_header_preproc=no
36064fi
36065rm -f conftest.err conftest.$ac_ext
36066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36067echo "${ECHO_T}$ac_header_preproc" >&6
36068
36069# So? What about this header?
ac1cb8d3
VS
36070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36071 yes:no: )
a848cd7e
SC
36072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36076 ac_header_preproc=yes
a848cd7e 36077 ;;
ac1cb8d3 36078 no:yes:* )
a848cd7e
SC
36079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36086echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36091 (
36092 cat <<\_ASBOX
ac1cb8d3
VS
36093## ----------------------------------------- ##
36094## Report this to wx-dev@lists.wxwidgets.org ##
36095## ----------------------------------------- ##
a848cd7e
SC
36096_ASBOX
36097 ) |
36098 sed "s/^/$as_me: WARNING: /" >&2
36099 ;;
36100esac
36101echo "$as_me:$LINENO: checking for $ac_header" >&5
36102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36103if eval "test \"\${$as_ac_Header+set}\" = set"; then
36104 echo $ECHO_N "(cached) $ECHO_C" >&6
36105else
ac1cb8d3 36106 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36107fi
36108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36110
36111fi
36112if test `eval echo '${'$as_ac_Header'}'` = yes; then
36113 cat >>confdefs.h <<_ACEOF
36114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36115_ACEOF
36116
36117fi
36118
36119done
36120
36121 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36122 wxUSE_JOYSTICK=no
36123 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36124echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36125 fi
36126 fi
36127 fi
36128
36129 if test "$wxUSE_JOYSTICK" = "yes"; then
36130 cat >>confdefs.h <<\_ACEOF
36131#define wxUSE_JOYSTICK 1
36132_ACEOF
36133
36134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36135 fi
36136fi
36137
36138
36139
36140if test "$wxUSE_FONTMAP" = "yes" ; then
36141 cat >>confdefs.h <<\_ACEOF
36142#define wxUSE_FONTMAP 1
36143_ACEOF
36144
36145fi
36146
36147if test "$wxUSE_UNICODE" = "yes" ; then
36148 cat >>confdefs.h <<\_ACEOF
36149#define wxUSE_UNICODE 1
36150_ACEOF
36151
36152
36153 if test "$USE_WIN32" != 1; then
36154 wxUSE_UNICODE_MSLU=no
36155 fi
36156
36157 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36158 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36159echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36160if test "${ac_cv_lib_unicows_main+set}" = set; then
36161 echo $ECHO_N "(cached) $ECHO_C" >&6
36162else
36163 ac_check_lib_save_LIBS=$LIBS
36164LIBS="-lunicows $LIBS"
36165cat >conftest.$ac_ext <<_ACEOF
36166/* confdefs.h. */
36167_ACEOF
36168cat confdefs.h >>conftest.$ac_ext
36169cat >>conftest.$ac_ext <<_ACEOF
36170/* end confdefs.h. */
36171
36172
36173int
36174main ()
36175{
36176main ();
36177 ;
36178 return 0;
36179}
36180_ACEOF
36181rm -f conftest.$ac_objext conftest$ac_exeext
36182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36183 (eval $ac_link) 2>conftest.er1
a848cd7e 36184 ac_status=$?
ac1cb8d3
VS
36185 grep -v '^ *+' conftest.er1 >conftest.err
36186 rm -f conftest.er1
36187 cat conftest.err >&5
a848cd7e
SC
36188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189 (exit $ac_status); } &&
b48a2016
DE
36190 { ac_try='test -z "$ac_c_werror_flag"
36191 || test ! -s conftest.err'
ac1cb8d3
VS
36192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36193 (eval $ac_try) 2>&5
36194 ac_status=$?
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); }; } &&
36197 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
36203 ac_cv_lib_unicows_main=yes
36204else
36205 echo "$as_me: failed program was:" >&5
36206sed 's/^/| /' conftest.$ac_ext >&5
36207
36208ac_cv_lib_unicows_main=no
36209fi
ac1cb8d3
VS
36210rm -f conftest.err conftest.$ac_objext \
36211 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36212LIBS=$ac_check_lib_save_LIBS
36213fi
36214echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36215echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36216if test $ac_cv_lib_unicows_main = yes; then
36217
36218 cat >>confdefs.h <<\_ACEOF
36219#define wxUSE_UNICODE_MSLU 1
36220_ACEOF
36221
36222
36223else
36224
36225 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36226 Applications will only run on Windows NT/2000/XP!" >&5
36227echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36228 Applications will only run on Windows NT/2000/XP!" >&2;}
36229 wxUSE_UNICODE_MSLU=no
36230
36231fi
36232
36233 fi
36234fi
36235
36236if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36237 cat >>confdefs.h <<\_ACEOF
36238#define wxUSE_EXPERIMENTAL_PRINTF 1
36239_ACEOF
36240
36241fi
36242
36243
36244if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36245 cat >>confdefs.h <<\_ACEOF
36246#define wxUSE_POSTSCRIPT 1
36247_ACEOF
36248
36249fi
36250
36251cat >>confdefs.h <<\_ACEOF
36252#define wxUSE_AFM_FOR_POSTSCRIPT 1
36253_ACEOF
36254
36255
36256cat >>confdefs.h <<\_ACEOF
36257#define wxUSE_NORMALIZED_PS_FONTS 1
36258_ACEOF
36259
36260
36261
36262if test "$wxUSE_CONSTRAINTS" = "yes"; then
36263 cat >>confdefs.h <<\_ACEOF
36264#define wxUSE_CONSTRAINTS 1
36265_ACEOF
36266
36267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36268fi
36269
8a7b1113
VZ
36270if test "$wxUSE_MDI" = "yes"; then
36271 cat >>confdefs.h <<\_ACEOF
36272#define wxUSE_MDI 1
36273_ACEOF
36274
36275
36276 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36277 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36278#define wxUSE_MDI_ARCHITECTURE 1
36279_ACEOF
36280
8a7b1113
VZ
36281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36282 fi
a848cd7e
SC
36283fi
36284
36285if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36286 cat >>confdefs.h <<\_ACEOF
36287#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36288_ACEOF
36289
36290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36291 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36293 fi
36294fi
36295
36296if test "$wxUSE_HELP" = "yes"; then
36297 cat >>confdefs.h <<\_ACEOF
36298#define wxUSE_HELP 1
36299_ACEOF
36300
36301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36302
36303 if test "$wxUSE_MSW" = 1; then
36304 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36305 cat >>confdefs.h <<\_ACEOF
36306#define wxUSE_MS_HTML_HELP 1
36307_ACEOF
36308
36309 fi
36310 fi
36311
36312 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36313 if test "$wxUSE_HTML" = "yes"; then
36314 cat >>confdefs.h <<\_ACEOF
36315#define wxUSE_WXHTML_HELP 1
36316_ACEOF
36317
36318 else
36319 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36320echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36321 wxUSE_WXHTML_HELP=no
36322 fi
36323 fi
36324fi
36325
36326if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36327 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36328 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36329echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36330 else
36331 cat >>confdefs.h <<\_ACEOF
36332#define wxUSE_PRINTING_ARCHITECTURE 1
36333_ACEOF
36334
36335 fi
36336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36337fi
36338
36339if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36340 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36341echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36342 { (exit 1); exit 1; }; }
36343fi
36344
36345
36346if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36347 -o "$wxUSE_CLIPBOARD" = "yes" \
36348 -o "$wxUSE_OLE" = "yes" \
36349 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36350
36351for ac_header in ole2.h
36352do
36353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36354if eval "test \"\${$as_ac_Header+set}\" = set"; then
36355 echo "$as_me:$LINENO: checking for $ac_header" >&5
36356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36357if eval "test \"\${$as_ac_Header+set}\" = set"; then
36358 echo $ECHO_N "(cached) $ECHO_C" >&6
36359fi
36360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36362else
36363 # Is the header compilable?
36364echo "$as_me:$LINENO: checking $ac_header usability" >&5
36365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36366cat >conftest.$ac_ext <<_ACEOF
36367/* confdefs.h. */
36368_ACEOF
36369cat confdefs.h >>conftest.$ac_ext
36370cat >>conftest.$ac_ext <<_ACEOF
36371/* end confdefs.h. */
36372$ac_includes_default
36373#include <$ac_header>
36374_ACEOF
36375rm -f conftest.$ac_objext
36376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36377 (eval $ac_compile) 2>conftest.er1
a848cd7e 36378 ac_status=$?
ac1cb8d3
VS
36379 grep -v '^ *+' conftest.er1 >conftest.err
36380 rm -f conftest.er1
36381 cat conftest.err >&5
a848cd7e
SC
36382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383 (exit $ac_status); } &&
b48a2016
DE
36384 { ac_try='test -z "$ac_c_werror_flag"
36385 || test ! -s conftest.err'
ac1cb8d3
VS
36386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36387 (eval $ac_try) 2>&5
36388 ac_status=$?
36389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36390 (exit $ac_status); }; } &&
36391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36393 (eval $ac_try) 2>&5
36394 ac_status=$?
36395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); }; }; then
36397 ac_header_compiler=yes
36398else
36399 echo "$as_me: failed program was:" >&5
36400sed 's/^/| /' conftest.$ac_ext >&5
36401
36402ac_header_compiler=no
36403fi
ac1cb8d3 36404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36406echo "${ECHO_T}$ac_header_compiler" >&6
36407
36408# Is the header present?
36409echo "$as_me:$LINENO: checking $ac_header presence" >&5
36410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36411cat >conftest.$ac_ext <<_ACEOF
36412/* confdefs.h. */
36413_ACEOF
36414cat confdefs.h >>conftest.$ac_ext
36415cat >>conftest.$ac_ext <<_ACEOF
36416/* end confdefs.h. */
36417#include <$ac_header>
36418_ACEOF
36419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36421 ac_status=$?
36422 grep -v '^ *+' conftest.er1 >conftest.err
36423 rm -f conftest.er1
36424 cat conftest.err >&5
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); } >/dev/null; then
36427 if test -s conftest.err; then
36428 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36430 else
36431 ac_cpp_err=
36432 fi
36433else
36434 ac_cpp_err=yes
36435fi
36436if test -z "$ac_cpp_err"; then
36437 ac_header_preproc=yes
36438else
36439 echo "$as_me: failed program was:" >&5
36440sed 's/^/| /' conftest.$ac_ext >&5
36441
36442 ac_header_preproc=no
36443fi
36444rm -f conftest.err conftest.$ac_ext
36445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36446echo "${ECHO_T}$ac_header_preproc" >&6
36447
36448# So? What about this header?
ac1cb8d3
VS
36449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36450 yes:no: )
a848cd7e
SC
36451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36455 ac_header_preproc=yes
a848cd7e 36456 ;;
ac1cb8d3 36457 no:yes:* )
a848cd7e
SC
36458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36470 (
36471 cat <<\_ASBOX
ac1cb8d3
VS
36472## ----------------------------------------- ##
36473## Report this to wx-dev@lists.wxwidgets.org ##
36474## ----------------------------------------- ##
a848cd7e
SC
36475_ASBOX
36476 ) |
36477 sed "s/^/$as_me: WARNING: /" >&2
36478 ;;
36479esac
36480echo "$as_me:$LINENO: checking for $ac_header" >&5
36481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36482if eval "test \"\${$as_ac_Header+set}\" = set"; then
36483 echo $ECHO_N "(cached) $ECHO_C" >&6
36484else
ac1cb8d3 36485 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36486fi
36487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36489
36490fi
36491if test `eval echo '${'$as_ac_Header'}'` = yes; then
36492 cat >>confdefs.h <<_ACEOF
36493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36494_ACEOF
36495
36496fi
36497
36498done
36499
36500
36501 if test "$ac_cv_header_ole2_h" = "yes" ; then
36502 if test "$GCC" = yes ; then
36503
36504
36505 ac_ext=cc
36506ac_cpp='$CXXCPP $CPPFLAGS'
36507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36510
36511
36512 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36513echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36514 cat >conftest.$ac_ext <<_ACEOF
36515/* confdefs.h. */
36516_ACEOF
36517cat confdefs.h >>conftest.$ac_ext
36518cat >>conftest.$ac_ext <<_ACEOF
36519/* end confdefs.h. */
36520#include <windows.h>
36521 #include <ole2.h>
36522int
36523main ()
36524{
36525
36526 ;
36527 return 0;
36528}
36529_ACEOF
36530rm -f conftest.$ac_objext
36531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36532 (eval $ac_compile) 2>conftest.er1
a848cd7e 36533 ac_status=$?
ac1cb8d3
VS
36534 grep -v '^ *+' conftest.er1 >conftest.err
36535 rm -f conftest.er1
36536 cat conftest.err >&5
a848cd7e
SC
36537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538 (exit $ac_status); } &&
b48a2016
DE
36539 { ac_try='test -z "$ac_cxx_werror_flag"
36540 || test ! -s conftest.err'
ac1cb8d3
VS
36541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36542 (eval $ac_try) 2>&5
36543 ac_status=$?
36544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); }; } &&
36546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548 (eval $ac_try) 2>&5
36549 ac_status=$?
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); }; }; then
36552 echo "$as_me:$LINENO: result: no" >&5
36553echo "${ECHO_T}no" >&6
36554else
36555 echo "$as_me: failed program was:" >&5
36556sed 's/^/| /' conftest.$ac_ext >&5
36557
36558echo "$as_me:$LINENO: result: yes" >&5
36559echo "${ECHO_T}yes" >&6
36560 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36561fi
ac1cb8d3 36562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36563 ac_ext=c
36564ac_cpp='$CPP $CPPFLAGS'
36565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36567ac_compiler_gnu=$ac_cv_c_compiler_gnu
36568
a848cd7e
SC
36569 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36570 if test "$wxUSE_OLE" = "yes" ; then
36571 cat >>confdefs.h <<\_ACEOF
36572#define wxUSE_OLE 1
36573_ACEOF
36574
36575 fi
36576 fi
36577
36578 if test "$wxUSE_DATAOBJ" = "yes" ; then
36579 cat >>confdefs.h <<\_ACEOF
36580#define wxUSE_DATAOBJ 1
36581_ACEOF
36582
36583 fi
36584 else
36585 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36586echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36587
36588 wxUSE_CLIPBOARD=no
36589 wxUSE_DRAG_AND_DROP=no
36590 wxUSE_DATAOBJ=no
36591 wxUSE_OLE=no
36592 fi
36593
36594 if test "$wxUSE_METAFILE" = "yes"; then
36595 cat >>confdefs.h <<\_ACEOF
36596#define wxUSE_METAFILE 1
36597_ACEOF
36598
36599
36600 cat >>confdefs.h <<\_ACEOF
36601#define wxUSE_ENH_METAFILE 1
36602_ACEOF
36603
36604 fi
36605fi
36606
36607if test "$wxUSE_IPC" = "yes"; then
36608 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36609 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36610echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36611 fi
36612
36613 cat >>confdefs.h <<\_ACEOF
36614#define wxUSE_IPC 1
36615_ACEOF
36616
36617fi
36618
36619if test "$wxUSE_CLIPBOARD" = "yes"; then
36620 if test "$wxUSE_MGL" = 1; then
36621 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36622echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36623 wxUSE_CLIPBOARD=no
36624 fi
36625
36626 if test "$wxUSE_CLIPBOARD" = "yes"; then
36627 cat >>confdefs.h <<\_ACEOF
36628#define wxUSE_CLIPBOARD 1
36629_ACEOF
36630
36631
36632 cat >>confdefs.h <<\_ACEOF
36633#define wxUSE_DATAOBJ 1
36634_ACEOF
36635
36636 fi
36637fi
36638
36639if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36640 if test "$wxUSE_GTK" = 1; then
36641 if test "$WXGTK12" != 1; then
36642 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36643echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36644 wxUSE_DRAG_AND_DROP=no
36645 fi
36646 fi
36647
36648 if test "$wxUSE_MOTIF" = 1; then
36649 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36650echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36651 wxUSE_DRAG_AND_DROP=no
36652 fi
36653
36654 if test "$wxUSE_X11" = 1; then
36655 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36656echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36657 wxUSE_DRAG_AND_DROP=no
36658 fi
36659
36660 if test "$wxUSE_MGL" = 1; then
36661 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36662echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36663 wxUSE_DRAG_AND_DROP=no
36664 fi
36665
36666 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36667 cat >>confdefs.h <<\_ACEOF
36668#define wxUSE_DRAG_AND_DROP 1
36669_ACEOF
36670
36671 fi
36672
36673fi
36674
36675if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36677fi
36678
36679if test "$wxUSE_SPLINES" = "yes" ; then
36680 cat >>confdefs.h <<\_ACEOF
36681#define wxUSE_SPLINES 1
36682_ACEOF
36683
36684fi
36685
36686
36687USES_CONTROLS=0
36688if test "$wxUSE_CONTROLS" = "yes"; then
36689 USES_CONTROLS=1
36690fi
36691
36692if test "$wxUSE_ACCEL" = "yes"; then
36693 cat >>confdefs.h <<\_ACEOF
36694#define wxUSE_ACCEL 1
36695_ACEOF
36696
36697 USES_CONTROLS=1
36698fi
36699
36700if test "$wxUSE_BUTTON" = "yes"; then
36701 cat >>confdefs.h <<\_ACEOF
36702#define wxUSE_BUTTON 1
36703_ACEOF
36704
36705 USES_CONTROLS=1
36706fi
36707
36708if test "$wxUSE_BMPBUTTON" = "yes"; then
36709 cat >>confdefs.h <<\_ACEOF
36710#define wxUSE_BMPBUTTON 1
36711_ACEOF
36712
36713 USES_CONTROLS=1
36714fi
36715
36716if test "$wxUSE_CALCTRL" = "yes"; then
36717 cat >>confdefs.h <<\_ACEOF
36718#define wxUSE_CALENDARCTRL 1
36719_ACEOF
36720
36721 USES_CONTROLS=1
36722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36723fi
36724
36725if test "$wxUSE_CARET" = "yes"; then
36726 cat >>confdefs.h <<\_ACEOF
36727#define wxUSE_CARET 1
36728_ACEOF
36729
36730 USES_CONTROLS=1
36731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36732fi
36733
36734if test "$wxUSE_COMBOBOX" = "yes"; then
36735 cat >>confdefs.h <<\_ACEOF
36736#define wxUSE_COMBOBOX 1
36737_ACEOF
36738
36739 USES_CONTROLS=1
36740fi
36741
36742if test "$wxUSE_CHOICE" = "yes"; then
36743 cat >>confdefs.h <<\_ACEOF
36744#define wxUSE_CHOICE 1
36745_ACEOF
36746
36747 USES_CONTROLS=1
36748fi
36749
92bbdbcd
WS
36750if test "$wxUSE_CHOICEBOOK" = "yes"; then
36751 cat >>confdefs.h <<\_ACEOF
36752#define wxUSE_CHOICEBOOK 1
36753_ACEOF
36754
36755 USES_CONTROLS=1
36756fi
36757
a848cd7e
SC
36758if test "$wxUSE_CHECKBOX" = "yes"; then
36759 cat >>confdefs.h <<\_ACEOF
36760#define wxUSE_CHECKBOX 1
36761_ACEOF
36762
36763 USES_CONTROLS=1
36764fi
36765
36766if test "$wxUSE_CHECKLST" = "yes"; then
36767 cat >>confdefs.h <<\_ACEOF
36768#define wxUSE_CHECKLISTBOX 1
36769_ACEOF
36770
36771 USES_CONTROLS=1
36772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36773fi
36774
36775if test "$wxUSE_DISPLAY" = "yes"; then
36776 cat >>confdefs.h <<\_ACEOF
36777#define wxUSE_DISPLAY 1
36778_ACEOF
36779
36780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36781fi
36782
36783if test "$wxUSE_GAUGE" = "yes"; then
36784 cat >>confdefs.h <<\_ACEOF
36785#define wxUSE_GAUGE 1
36786_ACEOF
36787
36788 USES_CONTROLS=1
36789fi
36790
36791if test "$wxUSE_GRID" = "yes"; then
36792 cat >>confdefs.h <<\_ACEOF
36793#define wxUSE_GRID 1
36794_ACEOF
36795
36796 USES_CONTROLS=1
36797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36798fi
36799
36800if test "$wxUSE_IMAGLIST" = "yes"; then
36801 cat >>confdefs.h <<\_ACEOF
36802#define wxUSE_IMAGLIST 1
36803_ACEOF
36804
36805fi
36806
36807if test "$wxUSE_LISTBOOK" = "yes"; then
36808 cat >>confdefs.h <<\_ACEOF
36809#define wxUSE_LISTBOOK 1
36810_ACEOF
36811
36812 USES_CONTROLS=1
36813fi
36814
36815if test "$wxUSE_LISTBOX" = "yes"; then
36816 cat >>confdefs.h <<\_ACEOF
36817#define wxUSE_LISTBOX 1
36818_ACEOF
36819
36820 USES_CONTROLS=1
36821fi
36822
36823if test "$wxUSE_LISTCTRL" = "yes"; then
36824 if test "$wxUSE_IMAGLIST" = "yes"; then
36825 cat >>confdefs.h <<\_ACEOF
36826#define wxUSE_LISTCTRL 1
36827_ACEOF
36828
36829 USES_CONTROLS=1
36830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36831 else
36832 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36833echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36834 fi
36835fi
36836
36837if test "$wxUSE_NOTEBOOK" = "yes"; then
36838 cat >>confdefs.h <<\_ACEOF
36839#define wxUSE_NOTEBOOK 1
36840_ACEOF
36841
36842 USES_CONTROLS=1
36843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36844fi
36845
36846
36847if test "$wxUSE_RADIOBOX" = "yes"; then
36848 cat >>confdefs.h <<\_ACEOF
36849#define wxUSE_RADIOBOX 1
36850_ACEOF
36851
36852 USES_CONTROLS=1
36853fi
36854
36855if test "$wxUSE_RADIOBTN" = "yes"; then
36856 cat >>confdefs.h <<\_ACEOF
36857#define wxUSE_RADIOBTN 1
36858_ACEOF
36859
36860 USES_CONTROLS=1
36861fi
36862
36863if test "$wxUSE_SASH" = "yes"; then
36864 cat >>confdefs.h <<\_ACEOF
36865#define wxUSE_SASH 1
36866_ACEOF
36867
36868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36869fi
36870
36871if test "$wxUSE_SCROLLBAR" = "yes"; then
36872 cat >>confdefs.h <<\_ACEOF
36873#define wxUSE_SCROLLBAR 1
36874_ACEOF
36875
36876 USES_CONTROLS=1
36877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36878fi
36879
36880if test "$wxUSE_SLIDER" = "yes"; then
36881 cat >>confdefs.h <<\_ACEOF
36882#define wxUSE_SLIDER 1
36883_ACEOF
36884
36885 USES_CONTROLS=1
36886fi
36887
36888if test "$wxUSE_SPINBTN" = "yes"; then
36889 cat >>confdefs.h <<\_ACEOF
36890#define wxUSE_SPINBTN 1
36891_ACEOF
36892
36893 USES_CONTROLS=1
36894fi
36895
36896if test "$wxUSE_SPINCTRL" = "yes"; then
36897 cat >>confdefs.h <<\_ACEOF
36898#define wxUSE_SPINCTRL 1
36899_ACEOF
36900
36901 USES_CONTROLS=1
36902fi
36903
36904if test "$wxUSE_SPLITTER" = "yes"; then
36905 cat >>confdefs.h <<\_ACEOF
36906#define wxUSE_SPLITTER 1
36907_ACEOF
36908
36909 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36910fi
36911
36912if test "$wxUSE_STATBMP" = "yes"; then
36913 cat >>confdefs.h <<\_ACEOF
36914#define wxUSE_STATBMP 1
36915_ACEOF
36916
36917 USES_CONTROLS=1
36918fi
36919
36920if test "$wxUSE_STATBOX" = "yes"; then
36921 cat >>confdefs.h <<\_ACEOF
36922#define wxUSE_STATBOX 1
36923_ACEOF
36924
36925 USES_CONTROLS=1
36926fi
36927
36928if test "$wxUSE_STATTEXT" = "yes"; then
36929 cat >>confdefs.h <<\_ACEOF
36930#define wxUSE_STATTEXT 1
36931_ACEOF
36932
36933 USES_CONTROLS=1
36934fi
36935
36936if test "$wxUSE_STATLINE" = "yes"; then
36937 cat >>confdefs.h <<\_ACEOF
36938#define wxUSE_STATLINE 1
36939_ACEOF
36940
36941 USES_CONTROLS=1
36942fi
36943
36944if test "$wxUSE_STATUSBAR" = "yes"; then
36945 cat >>confdefs.h <<\_ACEOF
36946#define wxUSE_STATUSBAR 1
36947_ACEOF
36948
36949 USES_CONTROLS=1
36950
36951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36952fi
36953
36954if test "$wxUSE_TABDIALOG" = "yes"; then
36955 cat >>confdefs.h <<\_ACEOF
36956#define wxUSE_TAB_DIALOG 1
36957_ACEOF
36958
36959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36960fi
36961
36962if test "$wxUSE_TEXTCTRL" = "yes"; then
36963 cat >>confdefs.h <<\_ACEOF
36964#define wxUSE_TEXTCTRL 1
36965_ACEOF
36966
36967 USES_CONTROLS=1
36968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36969fi
36970
36971if test "$wxUSE_TOGGLEBTN" = "yes"; then
36972 if test "$wxUSE_COCOA" = 1 ; then
36973 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36974echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36975 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36976 else
36977 if test "$wxUSE_PM" = 1; then
36978 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36979echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36980 wxUSE_TOGGLEBTN=no
36981 fi
a848cd7e
SC
36982 fi
36983 if test "$wxUSE_UNIVERSAL" = "yes"; then
36984 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36985echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36986 wxUSE_TOGGLEBTN=no
36987 fi
36988
36989 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36990 cat >>confdefs.h <<\_ACEOF
36991#define wxUSE_TOGGLEBTN 1
36992_ACEOF
36993
36994 USES_CONTROLS=1
36995 fi
36996fi
36997
36998if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36999 cat >>confdefs.h <<\_ACEOF
37000#define wxUSE_TOOLBAR_SIMPLE 1
37001_ACEOF
37002
37003 wxUSE_TOOLBAR="yes"
37004 USES_CONTROLS=1
37005fi
37006
37007if test "$wxUSE_TOOLBAR" = "yes"; then
37008 cat >>confdefs.h <<\_ACEOF
37009#define wxUSE_TOOLBAR 1
37010_ACEOF
37011
37012 USES_CONTROLS=1
37013
37014 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37015 wxUSE_TOOLBAR_NATIVE="yes"
37016 fi
37017
37018 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37019 cat >>confdefs.h <<\_ACEOF
37020#define wxUSE_TOOLBAR_NATIVE 1
37021_ACEOF
37022
37023 USES_CONTROLS=1
37024 fi
37025
37026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37027fi
37028
37029if test "$wxUSE_TOOLTIPS" = "yes"; then
37030 if test "$wxUSE_MOTIF" = 1; then
37031 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37032echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37033 else
37034 if test "$wxUSE_UNIVERSAL" = "yes"; then
37035 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37036echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37037 else
37038 cat >>confdefs.h <<\_ACEOF
37039#define wxUSE_TOOLTIPS 1
37040_ACEOF
37041
37042 fi
37043 fi
37044fi
37045
37046if test "$wxUSE_TREECTRL" = "yes"; then
37047 if test "$wxUSE_IMAGLIST" = "yes"; then
37048 cat >>confdefs.h <<\_ACEOF
37049#define wxUSE_TREECTRL 1
37050_ACEOF
37051
37052 USES_CONTROLS=1
37053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37054 else
37055 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37056echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37057 fi
37058fi
37059
37060if test "$wxUSE_POPUPWIN" = "yes"; then
37061 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37062 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37063echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37064 else
37065 if test "$wxUSE_PM" = 1; then
37066 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37067echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37068 else
37069 cat >>confdefs.h <<\_ACEOF
37070#define wxUSE_POPUPWIN 1
37071_ACEOF
37072
37073
37074 USES_CONTROLS=1
37075 fi
37076 fi
37077fi
37078
37079if test "$wxUSE_TIPWINDOW" = "yes"; then
37080 if test "$wxUSE_PM" = 1; then
37081 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37082echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37083 else
37084 cat >>confdefs.h <<\_ACEOF
37085#define wxUSE_TIPWINDOW 1
37086_ACEOF
37087
37088 fi
37089fi
37090
37091if test "$USES_CONTROLS" = 1; then
37092 cat >>confdefs.h <<\_ACEOF
37093#define wxUSE_CONTROLS 1
37094_ACEOF
37095
37096fi
37097
37098
37099if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37100 cat >>confdefs.h <<\_ACEOF
37101#define wxUSE_ACCESSIBILITY 1
37102_ACEOF
37103
37104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37105fi
37106
37107if test "$wxUSE_DRAGIMAGE" = "yes"; then
37108 cat >>confdefs.h <<\_ACEOF
37109#define wxUSE_DRAGIMAGE 1
37110_ACEOF
37111
37112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37113fi
37114
37115if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37116 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37117 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37118echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37119 else
37120 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37121#define wxUSE_EXCEPTIONS 1
37122_ACEOF
37123
07bea8f0
VS
37124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37125 fi
a848cd7e
SC
37126fi
37127
37128USE_HTML=0
37129if test "$wxUSE_HTML" = "yes"; then
37130 cat >>confdefs.h <<\_ACEOF
37131#define wxUSE_HTML 1
37132_ACEOF
37133
37134 USE_HTML=1
37135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37136 if test "$wxUSE_MAC" = 1; then
37137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37138 fi
a848cd7e 37139fi
646b6ec1 37140if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
37141 if test "$wxUSE_MAC" = 1; then
37142 old_CPPFLAGS="$CPPFLAGS"
37143 CPPFLAGS="$CPPFLAGS -x objective-c++"
37144 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37145echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37146if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37147 echo $ECHO_N "(cached) $ECHO_C" >&6
37148else
37149 cat >conftest.$ac_ext <<_ACEOF
37150/* confdefs.h. */
37151_ACEOF
37152cat confdefs.h >>conftest.$ac_ext
37153cat >>conftest.$ac_ext <<_ACEOF
37154/* end confdefs.h. */
37155#include <Carbon/Carbon.h>
37156
37157#include <WebKit/HIWebView.h>
37158_ACEOF
37159rm -f conftest.$ac_objext
37160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37161 (eval $ac_compile) 2>conftest.er1
37162 ac_status=$?
37163 grep -v '^ *+' conftest.er1 >conftest.err
37164 rm -f conftest.er1
37165 cat conftest.err >&5
37166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 (exit $ac_status); } &&
b48a2016
DE
37168 { ac_try='test -z "$ac_c_werror_flag"
37169 || test ! -s conftest.err'
07bea8f0
VS
37170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37171 (eval $ac_try) 2>&5
37172 ac_status=$?
37173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37174 (exit $ac_status); }; } &&
37175 { ac_try='test -s conftest.$ac_objext'
37176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37177 (eval $ac_try) 2>&5
37178 ac_status=$?
37179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180 (exit $ac_status); }; }; then
37181 ac_cv_header_WebKit_HIWebView_h=yes
37182else
37183 echo "$as_me: failed program was:" >&5
37184sed 's/^/| /' conftest.$ac_ext >&5
37185
37186ac_cv_header_WebKit_HIWebView_h=no
37187fi
37188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37189fi
37190echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37191echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37192if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37193
37194 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37195#define wxUSE_WEBKIT 1
37196_ACEOF
37197
07bea8f0
VS
37198 WEBKIT_LINK="-framework WebKit"
37199
37200else
37201
37202 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37203echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37204 wxUSE_WEBKIT=no
37205
646b6ec1
VS
37206fi
37207
07bea8f0
VS
37208
37209 CPPFLAGS="$old_CPPFLAGS"
37210 elif test "$wxUSE_COCOA" = 1; then
37211 cat >>confdefs.h <<\_ACEOF
37212#define wxUSE_WEBKIT 1
37213_ACEOF
37214
37215 else
37216 wxUSE_WEBKIT=no
37217 fi
37218fi
37219
9a8f0513
VS
37220USE_XRC=0
37221if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37222 if test "$wxUSE_XML" != "yes"; then
37223 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37224echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37225 wxUSE_XRC=no
37226 else
37227 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37228#define wxUSE_XRC 1
37229_ACEOF
37230
d2ebf0b7
VS
37231 USE_XRC=1
37232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37233 fi
9a8f0513 37234fi
07bea8f0 37235
a848cd7e
SC
37236if test "$wxUSE_MENUS" = "yes"; then
37237 cat >>confdefs.h <<\_ACEOF
37238#define wxUSE_MENUS 1
37239_ACEOF
37240
37241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37242fi
37243
37244if test "$wxUSE_METAFILE" = "yes"; then
37245 cat >>confdefs.h <<\_ACEOF
37246#define wxUSE_METAFILE 1
37247_ACEOF
37248
37249fi
37250
37251if test "$wxUSE_MIMETYPE" = "yes"; then
37252 cat >>confdefs.h <<\_ACEOF
37253#define wxUSE_MIMETYPE 1
37254_ACEOF
37255
37256fi
37257
37258if test "$wxUSE_MINIFRAME" = "yes"; then
37259 cat >>confdefs.h <<\_ACEOF
37260#define wxUSE_MINIFRAME 1
37261_ACEOF
37262
37263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37264fi
37265
37266if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37267 cat >>confdefs.h <<\_ACEOF
37268#define wxUSE_SYSTEM_OPTIONS 1
37269_ACEOF
37270
37271 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 37272 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
37273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37274 fi
37275fi
37276
37277
37278if test "$wxUSE_VALIDATORS" = "yes"; then
37279 cat >>confdefs.h <<\_ACEOF
37280#define wxUSE_VALIDATORS 1
37281_ACEOF
37282
37283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37284fi
37285
37286if test "$wxUSE_PALETTE" = "yes" ; then
37287 cat >>confdefs.h <<\_ACEOF
37288#define wxUSE_PALETTE 1
37289_ACEOF
37290
37291fi
37292
37293if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37294 LIBS=" -lunicows $LIBS"
37295fi
37296
37297
37298if test "$wxUSE_IMAGE" = "yes" ; then
37299 cat >>confdefs.h <<\_ACEOF
37300#define wxUSE_IMAGE 1
37301_ACEOF
37302
37303
37304 if test "$wxUSE_GIF" = "yes" ; then
37305 cat >>confdefs.h <<\_ACEOF
37306#define wxUSE_GIF 1
37307_ACEOF
37308
37309 fi
37310
37311 if test "$wxUSE_PCX" = "yes" ; then
37312 cat >>confdefs.h <<\_ACEOF
37313#define wxUSE_PCX 1
37314_ACEOF
37315
37316 fi
37317
37318 if test "$wxUSE_IFF" = "yes" ; then
37319 cat >>confdefs.h <<\_ACEOF
37320#define wxUSE_IFF 1
37321_ACEOF
37322
37323 fi
37324
37325 if test "$wxUSE_PNM" = "yes" ; then
37326 cat >>confdefs.h <<\_ACEOF
37327#define wxUSE_PNM 1
37328_ACEOF
37329
37330 fi
37331
37332 if test "$wxUSE_XPM" = "yes" ; then
37333 cat >>confdefs.h <<\_ACEOF
37334#define wxUSE_XPM 1
37335_ACEOF
37336
37337 fi
37338
37339 if test "$wxUSE_ICO_CUR" = "yes" ; then
37340 cat >>confdefs.h <<\_ACEOF
37341#define wxUSE_ICO_CUR 1
37342_ACEOF
37343
37344 fi
37345fi
37346
37347
37348if test "$wxUSE_CHOICEDLG" = "yes"; then
37349 cat >>confdefs.h <<\_ACEOF
37350#define wxUSE_CHOICEDLG 1
37351_ACEOF
37352
37353fi
37354
37355if test "$wxUSE_COLOURDLG" = "yes"; then
37356 cat >>confdefs.h <<\_ACEOF
37357#define wxUSE_COLOURDLG 1
37358_ACEOF
37359
37360fi
37361
37362if test "$wxUSE_FILEDLG" = "yes"; then
37363 cat >>confdefs.h <<\_ACEOF
37364#define wxUSE_FILEDLG 1
37365_ACEOF
37366
37367fi
37368
37369if test "$wxUSE_FINDREPLDLG" = "yes"; then
37370 cat >>confdefs.h <<\_ACEOF
37371#define wxUSE_FINDREPLDLG 1
37372_ACEOF
37373
37374fi
37375
37376if test "$wxUSE_FONTDLG" = "yes"; then
37377 cat >>confdefs.h <<\_ACEOF
37378#define wxUSE_FONTDLG 1
37379_ACEOF
37380
37381fi
37382
37383if test "$wxUSE_DIRDLG" = "yes"; then
37384 if test "$wxUSE_TREECTRL" != "yes"; then
37385 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37386echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37387 else
37388 cat >>confdefs.h <<\_ACEOF
37389#define wxUSE_DIRDLG 1
37390_ACEOF
37391
37392 fi
37393fi
37394
37395if test "$wxUSE_MSGDLG" = "yes"; then
37396 cat >>confdefs.h <<\_ACEOF
37397#define wxUSE_MSGDLG 1
37398_ACEOF
37399
37400fi
37401
37402if test "$wxUSE_NUMBERDLG" = "yes"; then
37403 cat >>confdefs.h <<\_ACEOF
37404#define wxUSE_NUMBERDLG 1
37405_ACEOF
37406
37407fi
37408
37409if test "$wxUSE_PROGRESSDLG" = "yes"; then
37410 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37411 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37412echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37413 else
37414 cat >>confdefs.h <<\_ACEOF
37415#define wxUSE_PROGRESSDLG 1
37416_ACEOF
37417
37418 fi
37419fi
37420
37421if test "$wxUSE_SPLASH" = "yes"; then
37422 cat >>confdefs.h <<\_ACEOF
37423#define wxUSE_SPLASH 1
37424_ACEOF
37425
2057db16 37426 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37427fi
37428
37429if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37430 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37431 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37432echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37433 else
37434 cat >>confdefs.h <<\_ACEOF
37435#define wxUSE_STARTUP_TIPS 1
37436_ACEOF
37437
37438 fi
37439fi
37440
37441if test "$wxUSE_TEXTDLG" = "yes"; then
37442 cat >>confdefs.h <<\_ACEOF
37443#define wxUSE_TEXTDLG 1
37444_ACEOF
37445
37446fi
37447
37448if test "$wxUSE_WIZARDDLG" = "yes"; then
37449 cat >>confdefs.h <<\_ACEOF
37450#define wxUSE_WIZARDDLG 1
37451_ACEOF
37452
37453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37454fi
37455
37456
37457if test "$cross_compiling" = "yes"; then
37458 OSINFO="\"$host\""
37459else
37460 OSINFO=`uname -s -r -m`
37461 OSINFO="\"$OSINFO\""
37462fi
37463
37464cat >>confdefs.h <<_ACEOF
37465#define WXWIN_OS_DESCRIPTION $OSINFO
37466_ACEOF
37467
37468
37469
37470if test "x$prefix" != "xNONE"; then
37471 wxPREFIX=$prefix
37472else
37473 wxPREFIX=$ac_default_prefix
37474fi
37475
37476cat >>confdefs.h <<_ACEOF
37477#define wxINSTALL_PREFIX "$wxPREFIX"
37478_ACEOF
37479
37480
a848cd7e
SC
37481
37482
37483CORE_BASE_LIBS="net base"
37484CORE_GUI_LIBS="adv core"
37485
37486if test "$wxUSE_XML" = "yes" ; then
37487 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37488fi
37489if test "$wxUSE_ODBC" != "no" ; then
37490 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37491 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37492fi
37493if test "$wxUSE_HTML" = "yes" ; then
37494 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37495fi
9a8f0513
VS
37496if test "$wxUSE_XRC" = "yes" ; then
37497 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37498fi
a848cd7e
SC
37499
37500if test "$wxUSE_GUI" != "yes"; then
37501 CORE_GUI_LIBS=""
37502fi
37503
37504
37505
37506
37507
37508
37509
37510
37511if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37512 if test "$wxUSE_SOUND" = "yes"; then
37513 LDFLAGS="$LDFLAGS -framework QuickTime"
37514 fi
5dcf30a0
RN
37515 if test "$USE_DARWIN" = 1; then
37516 LDFLAGS="$LDFLAGS -framework IOKit"
37517 fi
07bea8f0 37518 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37519fi
37520if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 37521 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
37522fi
37523
37524
37525LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37526
37527have_cos=0
37528have_floor=0
37529
37530for ac_func in cos
37531do
37532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37533echo "$as_me:$LINENO: checking for $ac_func" >&5
37534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37535if eval "test \"\${$as_ac_var+set}\" = set"; then
37536 echo $ECHO_N "(cached) $ECHO_C" >&6
37537else
37538 cat >conftest.$ac_ext <<_ACEOF
37539/* confdefs.h. */
37540_ACEOF
37541cat confdefs.h >>conftest.$ac_ext
37542cat >>conftest.$ac_ext <<_ACEOF
37543/* end confdefs.h. */
ac1cb8d3
VS
37544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37546#define $ac_func innocuous_$ac_func
37547
a848cd7e
SC
37548/* System header to define __stub macros and hopefully few prototypes,
37549 which can conflict with char $ac_func (); below.
37550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37551 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37552
a848cd7e
SC
37553#ifdef __STDC__
37554# include <limits.h>
37555#else
37556# include <assert.h>
37557#endif
ac1cb8d3
VS
37558
37559#undef $ac_func
37560
a848cd7e
SC
37561/* Override any gcc2 internal prototype to avoid an error. */
37562#ifdef __cplusplus
37563extern "C"
37564{
37565#endif
37566/* We use char because int might match the return type of a gcc2
37567 builtin and then its argument prototype would still apply. */
37568char $ac_func ();
37569/* The GNU C library defines this for functions which it implements
37570 to always fail with ENOSYS. Some functions are actually named
37571 something starting with __ and the normal name is an alias. */
37572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37573choke me
37574#else
37575char (*f) () = $ac_func;
37576#endif
37577#ifdef __cplusplus
37578}
37579#endif
37580
37581int
37582main ()
37583{
37584return f != $ac_func;
37585 ;
37586 return 0;
37587}
37588_ACEOF
37589rm -f conftest.$ac_objext conftest$ac_exeext
37590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37591 (eval $ac_link) 2>conftest.er1
a848cd7e 37592 ac_status=$?
ac1cb8d3
VS
37593 grep -v '^ *+' conftest.er1 >conftest.err
37594 rm -f conftest.er1
37595 cat conftest.err >&5
a848cd7e
SC
37596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597 (exit $ac_status); } &&
b48a2016
DE
37598 { ac_try='test -z "$ac_c_werror_flag"
37599 || test ! -s conftest.err'
ac1cb8d3
VS
37600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601 (eval $ac_try) 2>&5
37602 ac_status=$?
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); }; } &&
37605 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37607 (eval $ac_try) 2>&5
37608 ac_status=$?
37609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37610 (exit $ac_status); }; }; then
37611 eval "$as_ac_var=yes"
37612else
37613 echo "$as_me: failed program was:" >&5
37614sed 's/^/| /' conftest.$ac_ext >&5
37615
37616eval "$as_ac_var=no"
37617fi
ac1cb8d3
VS
37618rm -f conftest.err conftest.$ac_objext \
37619 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37620fi
37621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37622echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37623if test `eval echo '${'$as_ac_var'}'` = yes; then
37624 cat >>confdefs.h <<_ACEOF
37625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37626_ACEOF
37627 have_cos=1
37628fi
37629done
37630
37631
37632for ac_func in floor
37633do
37634as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37635echo "$as_me:$LINENO: checking for $ac_func" >&5
37636echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37637if eval "test \"\${$as_ac_var+set}\" = set"; then
37638 echo $ECHO_N "(cached) $ECHO_C" >&6
37639else
37640 cat >conftest.$ac_ext <<_ACEOF
37641/* confdefs.h. */
37642_ACEOF
37643cat confdefs.h >>conftest.$ac_ext
37644cat >>conftest.$ac_ext <<_ACEOF
37645/* end confdefs.h. */
ac1cb8d3
VS
37646/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37648#define $ac_func innocuous_$ac_func
37649
a848cd7e
SC
37650/* System header to define __stub macros and hopefully few prototypes,
37651 which can conflict with char $ac_func (); below.
37652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37653 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37654
a848cd7e
SC
37655#ifdef __STDC__
37656# include <limits.h>
37657#else
37658# include <assert.h>
37659#endif
ac1cb8d3
VS
37660
37661#undef $ac_func
37662
a848cd7e
SC
37663/* Override any gcc2 internal prototype to avoid an error. */
37664#ifdef __cplusplus
37665extern "C"
37666{
37667#endif
37668/* We use char because int might match the return type of a gcc2
37669 builtin and then its argument prototype would still apply. */
37670char $ac_func ();
37671/* The GNU C library defines this for functions which it implements
37672 to always fail with ENOSYS. Some functions are actually named
37673 something starting with __ and the normal name is an alias. */
37674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37675choke me
37676#else
37677char (*f) () = $ac_func;
37678#endif
37679#ifdef __cplusplus
37680}
37681#endif
37682
37683int
37684main ()
37685{
37686return f != $ac_func;
37687 ;
37688 return 0;
37689}
37690_ACEOF
37691rm -f conftest.$ac_objext conftest$ac_exeext
37692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37693 (eval $ac_link) 2>conftest.er1
a848cd7e 37694 ac_status=$?
ac1cb8d3
VS
37695 grep -v '^ *+' conftest.er1 >conftest.err
37696 rm -f conftest.er1
37697 cat conftest.err >&5
a848cd7e
SC
37698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37699 (exit $ac_status); } &&
b48a2016
DE
37700 { ac_try='test -z "$ac_c_werror_flag"
37701 || test ! -s conftest.err'
ac1cb8d3
VS
37702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37703 (eval $ac_try) 2>&5
37704 ac_status=$?
37705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706 (exit $ac_status); }; } &&
37707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37709 (eval $ac_try) 2>&5
37710 ac_status=$?
37711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712 (exit $ac_status); }; }; then
37713 eval "$as_ac_var=yes"
37714else
37715 echo "$as_me: failed program was:" >&5
37716sed 's/^/| /' conftest.$ac_ext >&5
37717
37718eval "$as_ac_var=no"
37719fi
ac1cb8d3
VS
37720rm -f conftest.err conftest.$ac_objext \
37721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37722fi
37723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37724echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37725if test `eval echo '${'$as_ac_var'}'` = yes; then
37726 cat >>confdefs.h <<_ACEOF
37727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37728_ACEOF
37729 have_floor=1
37730fi
37731done
37732
37733echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37734echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37735if test "$have_cos" = 1 -a "$have_floor" = 1; then
37736 echo "$as_me:$LINENO: result: yes" >&5
37737echo "${ECHO_T}yes" >&6
37738else
37739 echo "$as_me:$LINENO: result: no" >&5
37740echo "${ECHO_T}no" >&6
37741 LIBS="$LIBS -lm"
37742 # use different functions to avoid configure caching
37743 have_sin=0
37744 have_ceil=0
37745
37746for ac_func in sin
37747do
37748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37749echo "$as_me:$LINENO: checking for $ac_func" >&5
37750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37751if eval "test \"\${$as_ac_var+set}\" = set"; then
37752 echo $ECHO_N "(cached) $ECHO_C" >&6
37753else
37754 cat >conftest.$ac_ext <<_ACEOF
37755/* confdefs.h. */
37756_ACEOF
37757cat confdefs.h >>conftest.$ac_ext
37758cat >>conftest.$ac_ext <<_ACEOF
37759/* end confdefs.h. */
ac1cb8d3
VS
37760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37762#define $ac_func innocuous_$ac_func
37763
a848cd7e
SC
37764/* System header to define __stub macros and hopefully few prototypes,
37765 which can conflict with char $ac_func (); below.
37766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37767 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37768
a848cd7e
SC
37769#ifdef __STDC__
37770# include <limits.h>
37771#else
37772# include <assert.h>
37773#endif
ac1cb8d3
VS
37774
37775#undef $ac_func
37776
a848cd7e
SC
37777/* Override any gcc2 internal prototype to avoid an error. */
37778#ifdef __cplusplus
37779extern "C"
37780{
37781#endif
37782/* We use char because int might match the return type of a gcc2
37783 builtin and then its argument prototype would still apply. */
37784char $ac_func ();
37785/* The GNU C library defines this for functions which it implements
37786 to always fail with ENOSYS. Some functions are actually named
37787 something starting with __ and the normal name is an alias. */
37788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37789choke me
37790#else
37791char (*f) () = $ac_func;
37792#endif
37793#ifdef __cplusplus
37794}
37795#endif
37796
37797int
37798main ()
37799{
37800return f != $ac_func;
37801 ;
37802 return 0;
37803}
37804_ACEOF
37805rm -f conftest.$ac_objext conftest$ac_exeext
37806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37807 (eval $ac_link) 2>conftest.er1
a848cd7e 37808 ac_status=$?
ac1cb8d3
VS
37809 grep -v '^ *+' conftest.er1 >conftest.err
37810 rm -f conftest.er1
37811 cat conftest.err >&5
a848cd7e
SC
37812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813 (exit $ac_status); } &&
b48a2016
DE
37814 { ac_try='test -z "$ac_c_werror_flag"
37815 || test ! -s conftest.err'
ac1cb8d3
VS
37816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37817 (eval $ac_try) 2>&5
37818 ac_status=$?
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); }; } &&
37821 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37823 (eval $ac_try) 2>&5
37824 ac_status=$?
37825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37826 (exit $ac_status); }; }; then
37827 eval "$as_ac_var=yes"
37828else
37829 echo "$as_me: failed program was:" >&5
37830sed 's/^/| /' conftest.$ac_ext >&5
37831
37832eval "$as_ac_var=no"
37833fi
ac1cb8d3
VS
37834rm -f conftest.err conftest.$ac_objext \
37835 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37836fi
37837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37838echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37839if test `eval echo '${'$as_ac_var'}'` = yes; then
37840 cat >>confdefs.h <<_ACEOF
37841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37842_ACEOF
37843 have_sin=1
37844fi
37845done
37846
37847
37848for ac_func in ceil
37849do
37850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37851echo "$as_me:$LINENO: checking for $ac_func" >&5
37852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37853if eval "test \"\${$as_ac_var+set}\" = set"; then
37854 echo $ECHO_N "(cached) $ECHO_C" >&6
37855else
37856 cat >conftest.$ac_ext <<_ACEOF
37857/* confdefs.h. */
37858_ACEOF
37859cat confdefs.h >>conftest.$ac_ext
37860cat >>conftest.$ac_ext <<_ACEOF
37861/* end confdefs.h. */
ac1cb8d3
VS
37862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37864#define $ac_func innocuous_$ac_func
37865
a848cd7e
SC
37866/* System header to define __stub macros and hopefully few prototypes,
37867 which can conflict with char $ac_func (); below.
37868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37869 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37870
a848cd7e
SC
37871#ifdef __STDC__
37872# include <limits.h>
37873#else
37874# include <assert.h>
37875#endif
ac1cb8d3
VS
37876
37877#undef $ac_func
37878
a848cd7e
SC
37879/* Override any gcc2 internal prototype to avoid an error. */
37880#ifdef __cplusplus
37881extern "C"
37882{
37883#endif
37884/* We use char because int might match the return type of a gcc2
37885 builtin and then its argument prototype would still apply. */
37886char $ac_func ();
37887/* The GNU C library defines this for functions which it implements
37888 to always fail with ENOSYS. Some functions are actually named
37889 something starting with __ and the normal name is an alias. */
37890#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37891choke me
37892#else
37893char (*f) () = $ac_func;
37894#endif
37895#ifdef __cplusplus
37896}
37897#endif
37898
37899int
37900main ()
37901{
37902return f != $ac_func;
37903 ;
37904 return 0;
37905}
37906_ACEOF
37907rm -f conftest.$ac_objext conftest$ac_exeext
37908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37909 (eval $ac_link) 2>conftest.er1
a848cd7e 37910 ac_status=$?
ac1cb8d3
VS
37911 grep -v '^ *+' conftest.er1 >conftest.err
37912 rm -f conftest.er1
37913 cat conftest.err >&5
a848cd7e
SC
37914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37915 (exit $ac_status); } &&
b48a2016
DE
37916 { ac_try='test -z "$ac_c_werror_flag"
37917 || test ! -s conftest.err'
ac1cb8d3
VS
37918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37919 (eval $ac_try) 2>&5
37920 ac_status=$?
37921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922 (exit $ac_status); }; } &&
37923 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37925 (eval $ac_try) 2>&5
37926 ac_status=$?
37927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37928 (exit $ac_status); }; }; then
37929 eval "$as_ac_var=yes"
37930else
37931 echo "$as_me: failed program was:" >&5
37932sed 's/^/| /' conftest.$ac_ext >&5
37933
37934eval "$as_ac_var=no"
37935fi
ac1cb8d3
VS
37936rm -f conftest.err conftest.$ac_objext \
37937 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37938fi
37939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37940echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37941if test `eval echo '${'$as_ac_var'}'` = yes; then
37942 cat >>confdefs.h <<_ACEOF
37943#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37944_ACEOF
37945 have_ceil=1
37946fi
37947done
37948
37949 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37950echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37951 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37952 echo "$as_me:$LINENO: result: yes" >&5
37953echo "${ECHO_T}yes" >&6
37954 else
37955 echo "$as_me:$LINENO: result: no" >&5
37956echo "${ECHO_T}no" >&6
37957 # not sure we should warn the user, crash, etc.
37958 fi
37959fi
37960
37961if test "$wxUSE_GUI" = "yes"; then
37962
37963
37964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37965 drawing dynamic erase event exec font image \
37966 minimal propsize rotate shaped widgets render"
37967
37968 if test "$wxUSE_MONOLITHIC" != "yes"; then
37969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37970 fi
37971else
37972 SAMPLES_SUBDIRS="console"
37973fi
37974
37975
ceec2216 37976INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
37977-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37978
37979if test "$GXX" = yes ; then
37980 CXXWARNINGS="-Wall"
37981 fi
37982
37983EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37984
0c3c69fc
VS
37985CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37986CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37987CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37988
37989
0c3c69fc 37990LIBS=`echo $LIBS`
a848cd7e
SC
37991EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37992EXTRALIBS_XML="$EXPAT_LINK"
37993EXTRALIBS_HTML="$MSPACK_LINK"
37994EXTRALIBS_ODBC="$ODBC_LINK"
37995if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 37996 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
37997fi
37998if test "$wxUSE_OPENGL" = "yes"; then
37999 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38000fi
38001
38002LDFLAGS="$LDFLAGS $PROFILE"
38003
38004if test "$wxUSE_GTK" = 1; then
38005 WXCONFIG_INCLUDE=
38006else
38007 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38008fi
38009
38010WXCONFIG_EXTRALIBS="$LIBS"
38011
38012if test "$wxUSE_REGEX" = "builtin" ; then
38013 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38014fi
38015if test "$wxUSE_EXPAT" = "builtin" ; then
38016 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38017fi
38018if test "$wxUSE_ODBC" = "builtin" ; then
38019 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38020fi
38021if test "$wxUSE_LIBTIFF" = "builtin" ; then
38022 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38023fi
38024if test "$wxUSE_LIBJPEG" = "builtin" ; then
38025 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38026fi
38027if test "$wxUSE_LIBPNG" = "builtin" ; then
38028 wxconfig_3rdparty="$wxconfig_3rdparty png"
38029fi
38030if test "$wxUSE_ZLIB" = "builtin" ; then
38031 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38032fi
38033if test "$wxUSE_ODBC" = "builtin" ; then
38034 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38035fi
38036
38037for i in $wxconfig_3rdparty ; do
ceec2216 38038 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38039done
38040
38041
38042if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38043 WXUNIV=1
38044else
38045 WXUNIV=0
38046fi
38047
38048
38049
38050
38051
38052
38053
38054
38055
38056if test $wxUSE_MONOLITHIC = "yes" ; then
38057 MONOLITHIC=1
38058else
38059 MONOLITHIC=0
38060fi
38061
38062if test $wxUSE_PLUGINS = "yes" ; then
38063 USE_PLUGINS=1
38064else
38065 USE_PLUGINS=0
38066fi
38067
38068if test $wxUSE_ODBC != "no" ; then
38069 USE_ODBC=1
38070else
38071 USE_ODBC=0
38072fi
38073
38074if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38075 OFFICIAL_BUILD=1
38076else
38077 OFFICIAL_BUILD=0
38078fi
38079
38080
38081
38082
38083
38084
38085
38086
38087
38088
38089
38090
38091
38092
38093
38094
38095
38096
38097
ceec2216 38098
a848cd7e
SC
38099
38100
38101TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38102
38103
38104
38105
38106
38107
38108
38109
4d4ff94c
VZ
38110case "$TOOLKIT" in
38111 GTK)
38112 TOOLKIT_USER="GTK+"
38113 if test "$WXGTK20" = 1; then
38114 TOOLKIT_USER="$TOOLKIT_USER 2"
38115 fi
9a8f0513 38116 ;;
4d4ff94c
VZ
38117
38118 *)
38119 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38120 ;;
4d4ff94c 38121esac
a848cd7e 38122
9a8f0513 38123
a848cd7e
SC
38124 if test "x$BAKEFILE_HOST" = "x"; then
38125 BAKEFILE_HOST="${host}"
38126 fi
38127
38128 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38129
38130 if test -n "$ac_tool_prefix"; then
38131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38132set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38133echo "$as_me:$LINENO: checking for $ac_word" >&5
38134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38135if test "${ac_cv_prog_RANLIB+set}" = set; then
38136 echo $ECHO_N "(cached) $ECHO_C" >&6
38137else
38138 if test -n "$RANLIB"; then
38139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38140else
38141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38142for as_dir in $PATH
38143do
38144 IFS=$as_save_IFS
38145 test -z "$as_dir" && as_dir=.
38146 for ac_exec_ext in '' $ac_executable_extensions; do
38147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38150 break 2
38151 fi
38152done
38153done
38154
38155fi
38156fi
38157RANLIB=$ac_cv_prog_RANLIB
38158if test -n "$RANLIB"; then
38159 echo "$as_me:$LINENO: result: $RANLIB" >&5
38160echo "${ECHO_T}$RANLIB" >&6
38161else
38162 echo "$as_me:$LINENO: result: no" >&5
38163echo "${ECHO_T}no" >&6
38164fi
38165
38166fi
38167if test -z "$ac_cv_prog_RANLIB"; then
38168 ac_ct_RANLIB=$RANLIB
38169 # Extract the first word of "ranlib", so it can be a program name with args.
38170set dummy ranlib; ac_word=$2
38171echo "$as_me:$LINENO: checking for $ac_word" >&5
38172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38173if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38174 echo $ECHO_N "(cached) $ECHO_C" >&6
38175else
38176 if test -n "$ac_ct_RANLIB"; then
38177 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38178else
38179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38180for as_dir in $PATH
38181do
38182 IFS=$as_save_IFS
38183 test -z "$as_dir" && as_dir=.
38184 for ac_exec_ext in '' $ac_executable_extensions; do
38185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38186 ac_cv_prog_ac_ct_RANLIB="ranlib"
38187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38188 break 2
38189 fi
38190done
38191done
38192
38193 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38194fi
38195fi
38196ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38197if test -n "$ac_ct_RANLIB"; then
38198 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38199echo "${ECHO_T}$ac_ct_RANLIB" >&6
38200else
38201 echo "$as_me:$LINENO: result: no" >&5
38202echo "${ECHO_T}no" >&6
38203fi
38204
38205 RANLIB=$ac_ct_RANLIB
38206else
38207 RANLIB="$ac_cv_prog_RANLIB"
38208fi
38209
38210 # Find a good install program. We prefer a C program (faster),
38211# so one script is as good as another. But avoid the broken or
38212# incompatible versions:
38213# SysV /etc/install, /usr/sbin/install
38214# SunOS /usr/etc/install
38215# IRIX /sbin/install
38216# AIX /bin/install
38217# AmigaOS /C/install, which installs bootblocks on floppy discs
38218# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38219# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38220# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38221# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38222# ./install, which can be erroneously created by make from ./install.sh.
38223echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38224echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38225if test -z "$INSTALL"; then
38226if test "${ac_cv_path_install+set}" = set; then
38227 echo $ECHO_N "(cached) $ECHO_C" >&6
38228else
38229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38230for as_dir in $PATH
38231do
38232 IFS=$as_save_IFS
38233 test -z "$as_dir" && as_dir=.
38234 # Account for people who put trailing slashes in PATH elements.
38235case $as_dir/ in
38236 ./ | .// | /cC/* | \
38237 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38238 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38239 /usr/ucb/* ) ;;
38240 *)
38241 # OSF1 and SCO ODT 3.0 have their own names for install.
38242 # Don't use installbsd from OSF since it installs stuff as root
38243 # by default.
38244 for ac_prog in ginstall scoinst install; do
38245 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38246 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38247 if test $ac_prog = install &&
38248 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38249 # AIX install. It has an incompatible calling convention.
38250 :
38251 elif test $ac_prog = install &&
38252 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38253 # program-specific install script used by HP pwplus--don't use.
38254 :
38255 else
38256 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38257 break 3
38258 fi
38259 fi
a848cd7e
SC
38260 done
38261 done
38262 ;;
38263esac
38264done
38265
38266
38267fi
38268 if test "${ac_cv_path_install+set}" = set; then
38269 INSTALL=$ac_cv_path_install
38270 else
38271 # As a last resort, use the slow shell script. We don't cache a
38272 # path for INSTALL within a source directory, because that will
38273 # break other packages using the cache if that directory is
38274 # removed, or if the path is relative.
38275 INSTALL=$ac_install_sh
38276 fi
38277fi
38278echo "$as_me:$LINENO: result: $INSTALL" >&5
38279echo "${ECHO_T}$INSTALL" >&6
38280
38281# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38282# It thinks the first close brace ends the variable substitution.
38283test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38284
38285test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38286
38287test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38288
38289 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38290echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38291LN_S=$as_ln_s
38292if test "$LN_S" = "ln -s"; then
38293 echo "$as_me:$LINENO: result: yes" >&5
38294echo "${ECHO_T}yes" >&6
38295else
38296 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38297echo "${ECHO_T}no, using $LN_S" >&6
38298fi
38299
38300
38301 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38302echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38303set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38304if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38305 echo $ECHO_N "(cached) $ECHO_C" >&6
38306else
38307 cat >conftest.make <<\_ACEOF
38308all:
38309 @echo 'ac_maketemp="$(MAKE)"'
38310_ACEOF
38311# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38312eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38313if test -n "$ac_maketemp"; then
38314 eval ac_cv_prog_make_${ac_make}_set=yes
38315else
38316 eval ac_cv_prog_make_${ac_make}_set=no
38317fi
38318rm -f conftest.make
38319fi
38320if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38321 echo "$as_me:$LINENO: result: yes" >&5
38322echo "${ECHO_T}yes" >&6
38323 SET_MAKE=
38324else
38325 echo "$as_me:$LINENO: result: no" >&5
38326echo "${ECHO_T}no" >&6
38327 SET_MAKE="MAKE=${MAKE-make}"
38328fi
38329
38330
38331
38332 if test -n "$ac_tool_prefix"; then
38333 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38334set dummy ${ac_tool_prefix}ar; ac_word=$2
38335echo "$as_me:$LINENO: checking for $ac_word" >&5
38336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38337if test "${ac_cv_prog_AR+set}" = set; then
38338 echo $ECHO_N "(cached) $ECHO_C" >&6
38339else
38340 if test -n "$AR"; then
38341 ac_cv_prog_AR="$AR" # Let the user override the test.
38342else
38343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38344for as_dir in $PATH
38345do
38346 IFS=$as_save_IFS
38347 test -z "$as_dir" && as_dir=.
38348 for ac_exec_ext in '' $ac_executable_extensions; do
38349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38350 ac_cv_prog_AR="${ac_tool_prefix}ar"
38351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38352 break 2
38353 fi
38354done
38355done
38356
38357fi
38358fi
38359AR=$ac_cv_prog_AR
38360if test -n "$AR"; then
38361 echo "$as_me:$LINENO: result: $AR" >&5
38362echo "${ECHO_T}$AR" >&6
38363else
38364 echo "$as_me:$LINENO: result: no" >&5
38365echo "${ECHO_T}no" >&6
38366fi
38367
38368fi
38369if test -z "$ac_cv_prog_AR"; then
38370 ac_ct_AR=$AR
38371 # Extract the first word of "ar", so it can be a program name with args.
38372set dummy ar; ac_word=$2
38373echo "$as_me:$LINENO: checking for $ac_word" >&5
38374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38375if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38376 echo $ECHO_N "(cached) $ECHO_C" >&6
38377else
38378 if test -n "$ac_ct_AR"; then
38379 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38380else
38381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38382for as_dir in $PATH
38383do
38384 IFS=$as_save_IFS
38385 test -z "$as_dir" && as_dir=.
38386 for ac_exec_ext in '' $ac_executable_extensions; do
38387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38388 ac_cv_prog_ac_ct_AR="ar"
38389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38390 break 2
38391 fi
38392done
38393done
38394
38395 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38396fi
38397fi
38398ac_ct_AR=$ac_cv_prog_ac_ct_AR
38399if test -n "$ac_ct_AR"; then
38400 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38401echo "${ECHO_T}$ac_ct_AR" >&6
38402else
38403 echo "$as_me:$LINENO: result: no" >&5
38404echo "${ECHO_T}no" >&6
38405fi
38406
38407 AR=$ac_ct_AR
38408else
38409 AR="$ac_cv_prog_AR"
38410fi
38411
38412 if test -n "$ac_tool_prefix"; then
38413 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38414set dummy ${ac_tool_prefix}strip; ac_word=$2
38415echo "$as_me:$LINENO: checking for $ac_word" >&5
38416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38417if test "${ac_cv_prog_STRIP+set}" = set; then
38418 echo $ECHO_N "(cached) $ECHO_C" >&6
38419else
38420 if test -n "$STRIP"; then
38421 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38422else
38423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38424for as_dir in $PATH
38425do
38426 IFS=$as_save_IFS
38427 test -z "$as_dir" && as_dir=.
38428 for ac_exec_ext in '' $ac_executable_extensions; do
38429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38430 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38432 break 2
38433 fi
38434done
38435done
38436
38437fi
38438fi
38439STRIP=$ac_cv_prog_STRIP
38440if test -n "$STRIP"; then
38441 echo "$as_me:$LINENO: result: $STRIP" >&5
38442echo "${ECHO_T}$STRIP" >&6
38443else
38444 echo "$as_me:$LINENO: result: no" >&5
38445echo "${ECHO_T}no" >&6
38446fi
38447
38448fi
38449if test -z "$ac_cv_prog_STRIP"; then
38450 ac_ct_STRIP=$STRIP
38451 # Extract the first word of "strip", so it can be a program name with args.
38452set dummy strip; ac_word=$2
38453echo "$as_me:$LINENO: checking for $ac_word" >&5
38454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38455if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38456 echo $ECHO_N "(cached) $ECHO_C" >&6
38457else
38458 if test -n "$ac_ct_STRIP"; then
38459 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38460else
38461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38462for as_dir in $PATH
38463do
38464 IFS=$as_save_IFS
38465 test -z "$as_dir" && as_dir=.
38466 for ac_exec_ext in '' $ac_executable_extensions; do
38467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38468 ac_cv_prog_ac_ct_STRIP="strip"
38469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38470 break 2
38471 fi
38472done
38473done
38474
38475 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38476fi
38477fi
38478ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38479if test -n "$ac_ct_STRIP"; then
38480 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38481echo "${ECHO_T}$ac_ct_STRIP" >&6
38482else
38483 echo "$as_me:$LINENO: result: no" >&5
38484echo "${ECHO_T}no" >&6
38485fi
38486
38487 STRIP=$ac_ct_STRIP
38488else
38489 STRIP="$ac_cv_prog_STRIP"
38490fi
38491
38492 if test -n "$ac_tool_prefix"; then
38493 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38494set dummy ${ac_tool_prefix}nm; ac_word=$2
38495echo "$as_me:$LINENO: checking for $ac_word" >&5
38496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38497if test "${ac_cv_prog_NM+set}" = set; then
38498 echo $ECHO_N "(cached) $ECHO_C" >&6
38499else
38500 if test -n "$NM"; then
38501 ac_cv_prog_NM="$NM" # Let the user override the test.
38502else
38503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38504for as_dir in $PATH
38505do
38506 IFS=$as_save_IFS
38507 test -z "$as_dir" && as_dir=.
38508 for ac_exec_ext in '' $ac_executable_extensions; do
38509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38510 ac_cv_prog_NM="${ac_tool_prefix}nm"
38511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38512 break 2
38513 fi
38514done
38515done
38516
38517fi
38518fi
38519NM=$ac_cv_prog_NM
38520if test -n "$NM"; then
38521 echo "$as_me:$LINENO: result: $NM" >&5
38522echo "${ECHO_T}$NM" >&6
38523else
38524 echo "$as_me:$LINENO: result: no" >&5
38525echo "${ECHO_T}no" >&6
38526fi
38527
38528fi
38529if test -z "$ac_cv_prog_NM"; then
38530 ac_ct_NM=$NM
38531 # Extract the first word of "nm", so it can be a program name with args.
38532set dummy nm; ac_word=$2
38533echo "$as_me:$LINENO: checking for $ac_word" >&5
38534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38535if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38536 echo $ECHO_N "(cached) $ECHO_C" >&6
38537else
38538 if test -n "$ac_ct_NM"; then
38539 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38540else
38541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38542for as_dir in $PATH
38543do
38544 IFS=$as_save_IFS
38545 test -z "$as_dir" && as_dir=.
38546 for ac_exec_ext in '' $ac_executable_extensions; do
38547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38548 ac_cv_prog_ac_ct_NM="nm"
38549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38550 break 2
38551 fi
38552done
38553done
38554
38555 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38556fi
38557fi
38558ac_ct_NM=$ac_cv_prog_ac_ct_NM
38559if test -n "$ac_ct_NM"; then
38560 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38561echo "${ECHO_T}$ac_ct_NM" >&6
38562else
38563 echo "$as_me:$LINENO: result: no" >&5
38564echo "${ECHO_T}no" >&6
38565fi
38566
38567 NM=$ac_ct_NM
38568else
38569 NM="$ac_cv_prog_NM"
38570fi
38571
38572
38573 case ${BAKEFILE_HOST} in
38574 *-hp-hpux* )
a49baeab 38575 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38576 ;;
38577 *) INSTALL_DIR="$INSTALL -d"
38578 ;;
38579 esac
38580
38581
38582 LDFLAGS_GUI=
38583 case ${BAKEFILE_HOST} in
38584 *-*-cygwin* | *-*-mingw32* )
38585 LDFLAGS_GUI="-mwindows"
38586 esac
38587
38588
38589 fi
38590
38591 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38592echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38593if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38594 echo $ECHO_N "(cached) $ECHO_C" >&6
38595else
38596
38597 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38598 egrep -s GNU > /dev/null); then
38599 bakefile_cv_prog_makeisgnu="yes"
38600 else
38601 bakefile_cv_prog_makeisgnu="no"
38602 fi
38603
38604fi
38605echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38606echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38607
38608 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38609 IF_GNU_MAKE=""
38610 else
38611 IF_GNU_MAKE="#"
38612 fi
38613
38614
38615
38616 PLATFORM_UNIX=0
38617 PLATFORM_WIN32=0
38618 PLATFORM_MSDOS=0
38619 PLATFORM_MAC=0
38620 PLATFORM_MACOSX=0
38621 PLATFORM_OS2=0
38622
38623 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38624 case "${BAKEFILE_HOST}" in
38625 *-*-cygwin* | *-*-mingw32* )
38626 PLATFORM_WIN32=1
38627 ;;
38628 *-pc-msdosdjgpp )
38629 PLATFORM_MSDOS=1
38630 ;;
38631 *-pc-os2_emx | *-pc-os2-emx )
38632 PLATFORM_OS2=1
38633 ;;
38634 powerpc-*-darwin* )
38635 PLATFORM_MAC=1
38636 PLATFORM_MACOSX=1
38637 ;;
38638 * )
38639 PLATFORM_UNIX=1
38640 ;;
38641 esac
38642 else
38643 case "$BAKEFILE_FORCE_PLATFORM" in
38644 win32 )
38645 PLATFORM_WIN32=1
38646 ;;
38647 msdos )
38648 PLATFORM_MSDOS=1
38649 ;;
38650 os2 )
38651 PLATFORM_OS2=1
38652 ;;
38653 darwin )
38654 PLATFORM_MAC=1
38655 PLATFORM_MACOSX=1
38656 ;;
38657 unix )
38658 PLATFORM_UNIX=1
38659 ;;
38660 * )
38661 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38662echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38663 { (exit 1); exit 1; }; }
38664 ;;
38665 esac
38666 fi
38667
38668
38669
38670
38671
38672
38673
38674
38675
38676 # Check whether --enable-omf or --disable-omf was given.
38677if test "${enable_omf+set}" = set; then
38678 enableval="$enable_omf"
38679 bk_os2_use_omf="$enableval"
38680fi;
38681
38682 case "${BAKEFILE_HOST}" in
38683 *-*-darwin* )
38684 CFLAGS="$CFLAGS -fno-common"
38685 CXXFLAGS="$CXXFLAGS -fno-common"
38686 ;;
38687
38688 *-pc-os2_emx | *-pc-os2-emx )
38689 if test "x$bk_os2_use_omf" = "xyes" ; then
38690 AR=emxomfar
38691 RANLIB=:
38692 LDFLAGS="-Zomf $LDFLAGS"
38693 CFLAGS="-Zomf $CFLAGS"
38694 CXXFLAGS="-Zomf $CXXFLAGS"
38695 OS2_LIBEXT="lib"
38696 else
38697 OS2_LIBEXT="a"
38698 fi
38699 ;;
38700 esac
38701
38702
38703 SO_SUFFIX="so"
38704 SO_SUFFIX_MODULE="so"
38705 EXEEXT=""
38706 LIBPREFIX="lib"
38707 LIBEXT=".a"
38708 DLLPREFIX="lib"
38709 DLLPREFIX_MODULE=""
38710 DLLIMP_SUFFIX=""
38711
38712 case "${BAKEFILE_HOST}" in
38713 *-hp-hpux* )
38714 SO_SUFFIX="sl"
38715 SO_SUFFIX_MODULE="sl"
38716 ;;
38717 *-*-aix* )
38718 SO_SUFFIX="a"
38719 SO_SUFFIX_MODULE="a"
38720 ;;
38721 *-*-cygwin* | *-*-mingw32* )
38722 SO_SUFFIX="dll"
38723 SO_SUFFIX_MODULE="dll"
38724 DLLIMP_SUFFIX="dll.a"
38725 EXEEXT=".exe"
38726 DLLPREFIX=""
38727 ;;
38728 *-pc-msdosdjgpp )
38729 EXEEXT=".exe"
38730 DLLPREFIX=""
38731 ;;
38732 *-pc-os2_emx | *-pc-os2-emx )
38733 SO_SUFFIX="dll"
38734 SO_SUFFIX_MODULE="dll"
38735 DLLIMP_SUFFIX=$OS2_LIBEXT
38736 EXEEXT=".exe"
38737 DLLPREFIX=""
38738 LIBPREFIX=""
38739 LIBEXT=".$OS2_LIBEXT"
38740 ;;
38741 powerpc-*-darwin* )
38742 SO_SUFFIX="dylib"
38743 SO_SUFFIX_MODULE="bundle"
38744 ;;
38745 esac
38746
38747 if test "x$DLLIMP_SUFFIX" = "x" ; then
38748 DLLIMP_SUFFIX="$SO_SUFFIX"
38749 fi
38750
38751
38752
38753
38754
38755
38756
38757
38758
38759
38760
38761 SHARED_LD_CC="\$(CC) -shared -o"
38762 SHARED_LD_CXX="\$(CXX) -shared -o"
38763
38764 if test "x$GCC" = "xyes"; then
38765 PIC_FLAG="-fPIC"
38766 fi
38767
38768 case "${BAKEFILE_HOST}" in
38769 *-hp-hpux* )
38770 if test "x$GCC" = "xyes"; then
38771 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38772 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38773 else
38774 LDFLAGS="$LDFLAGS -L/usr/lib"
38775
38776 SHARED_LD_CC="${CC} -b -o"
38777 SHARED_LD_CXX="${CXX} -b -o"
38778 PIC_FLAG="+Z"
38779 fi
38780 ;;
38781
38782 *-*-linux* )
38783 if test "x$GCC" != "xyes"; then
38784 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38785echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38786if test "${bakefile_cv_prog_icc+set}" = set; then
38787 echo $ECHO_N "(cached) $ECHO_C" >&6
38788else
38789
38790 cat >conftest.$ac_ext <<_ACEOF
38791/* confdefs.h. */
38792_ACEOF
38793cat confdefs.h >>conftest.$ac_ext
38794cat >>conftest.$ac_ext <<_ACEOF
38795/* end confdefs.h. */
38796
38797int
38798main ()
38799{
38800
38801 #ifndef __INTEL_COMPILER
38802 #error Not icc
38803 #endif
38804
38805 ;
38806 return 0;
38807}
38808_ACEOF
38809rm -f conftest.$ac_objext
38810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38811 (eval $ac_compile) 2>conftest.er1
a848cd7e 38812 ac_status=$?
ac1cb8d3
VS
38813 grep -v '^ *+' conftest.er1 >conftest.err
38814 rm -f conftest.er1
38815 cat conftest.err >&5
a848cd7e
SC
38816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817 (exit $ac_status); } &&
b48a2016
DE
38818 { ac_try='test -z "$ac_c_werror_flag"
38819 || test ! -s conftest.err'
ac1cb8d3
VS
38820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38821 (eval $ac_try) 2>&5
38822 ac_status=$?
38823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38824 (exit $ac_status); }; } &&
38825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38827 (eval $ac_try) 2>&5
38828 ac_status=$?
38829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830 (exit $ac_status); }; }; then
38831 bakefile_cv_prog_icc=yes
38832else
38833 echo "$as_me: failed program was:" >&5
38834sed 's/^/| /' conftest.$ac_ext >&5
38835
38836bakefile_cv_prog_icc=no
38837
38838fi
ac1cb8d3 38839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38840
38841fi
38842echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38843echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38844 if test "$bakefile_cv_prog_icc" = "yes"; then
38845 PIC_FLAG="-KPIC"
38846 fi
38847 fi
38848 ;;
38849
38850 *-*-solaris2* )
38851 if test "x$GCC" != xyes ; then
38852 SHARED_LD_CC="${CC} -G -o"
38853 SHARED_LD_CXX="${CXX} -G -o"
38854 PIC_FLAG="-KPIC"
38855 fi
38856 ;;
38857
38858 *-*-darwin* )
38859
38860 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38861echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38862if test "${wx_cv_gcc31+set}" = set; then
38863 echo $ECHO_N "(cached) $ECHO_C" >&6
38864else
38865
38866 cat >conftest.$ac_ext <<_ACEOF
38867/* confdefs.h. */
38868_ACEOF
38869cat confdefs.h >>conftest.$ac_ext
38870cat >>conftest.$ac_ext <<_ACEOF
38871/* end confdefs.h. */
38872
38873int
38874main ()
38875{
38876
38877 #if (__GNUC__ < 3) || \
38878 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38879 #error old gcc
38880 #endif
38881
38882 ;
38883 return 0;
38884}
38885_ACEOF
38886rm -f conftest.$ac_objext
38887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38888 (eval $ac_compile) 2>conftest.er1
a848cd7e 38889 ac_status=$?
ac1cb8d3
VS
38890 grep -v '^ *+' conftest.er1 >conftest.err
38891 rm -f conftest.er1
38892 cat conftest.err >&5
a848cd7e
SC
38893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38894 (exit $ac_status); } &&
b48a2016
DE
38895 { ac_try='test -z "$ac_c_werror_flag"
38896 || test ! -s conftest.err'
ac1cb8d3
VS
38897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38898 (eval $ac_try) 2>&5
38899 ac_status=$?
38900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901 (exit $ac_status); }; } &&
38902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38904 (eval $ac_try) 2>&5
38905 ac_status=$?
38906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907 (exit $ac_status); }; }; then
38908
38909 wx_cv_gcc31=yes
38910
38911else
38912 echo "$as_me: failed program was:" >&5
38913sed 's/^/| /' conftest.$ac_ext >&5
38914
38915
38916 wx_cv_gcc31=no
38917
38918
38919fi
ac1cb8d3 38920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38921
38922fi
38923echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38924echo "${ECHO_T}$wx_cv_gcc31" >&6
38925 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38926
38927D='$'
38928cat <<EOF >shared-ld-sh
a848cd7e
SC
38929#!/bin/sh
38930#-----------------------------------------------------------------------------
38931#-- Name: distrib/mac/shared-ld-sh
38932#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38933#-- Author: Gilles Depeyrot
38934#-- Copyright: (c) 2002 Gilles Depeyrot
38935#-- Licence: any use permitted
38936#-----------------------------------------------------------------------------
38937
38938verbose=0
38939args=""
38940objects=""
38941linking_flag="-dynamiclib"
38942
473276a9
VS
38943while test ${D}# -gt 0; do
38944 case ${D}1 in
a848cd7e
SC
38945
38946 -v)
38947 verbose=1
38948 ;;
38949
38950 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38951 # collect these options and values
473276a9 38952 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38953 shift
38954 ;;
38955
38956 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38957 # collect these options
473276a9 38958 args="${D}{args} ${D}1"
a848cd7e
SC
38959 ;;
38960
38961 -dynamiclib|-bundle)
473276a9 38962 linking_flag="${D}1"
a848cd7e
SC
38963 ;;
38964
38965 -*)
473276a9 38966 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38967 exit 1
38968 ;;
38969
38970 *.o | *.a | *.dylib)
38971 # collect object files
473276a9 38972 objects="${D}{objects} ${D}1"
a848cd7e
SC
38973 ;;
38974
38975 *)
473276a9 38976 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38977 exit 1
38978 ;;
38979
38980 esac
38981 shift
38982done
38983
38984#
38985# Link one module containing all the others
38986#
473276a9
VS
38987if test ${D}{verbose} = 1; then
38988 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38989fi
473276a9
VS
38990c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38991status=${D}?
38992if test ${D}{status} != 0; then
38993 exit ${D}{status}
a848cd7e
SC
38994fi
38995
38996#
38997# Link the shared library from the single module created
38998#
473276a9
VS
38999if test ${D}{verbose} = 1; then
39000 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39001fi
473276a9
VS
39002c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39003status=${D}?
39004if test ${D}{status} != 0; then
39005 exit ${D}{status}
a848cd7e
SC
39006fi
39007
39008#
39009# Remove intermediate module
39010#
473276a9 39011rm -f master.${D}${D}.o
a848cd7e
SC
39012
39013exit 0
39014EOF
473276a9 39015
a848cd7e
SC
39016 chmod +x shared-ld-sh
39017
39018 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39019 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39020 SHARED_LD_CXX="$SHARED_LD_CC"
39021 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39022 else
39023 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39024 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39025 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39026 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39027 fi
39028
39029 PIC_FLAG="-dynamic -fPIC"
39030 ;;
39031
39032 *-*-aix* )
39033 if test "x$GCC" != "xyes"; then
39034 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39035set dummy makeC++SharedLib; ac_word=$2
39036echo "$as_me:$LINENO: checking for $ac_word" >&5
39037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39038if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39039 echo $ECHO_N "(cached) $ECHO_C" >&6
39040else
39041 if test -n "$AIX_CXX_LD"; then
39042 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39043else
39044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39045for as_dir in $PATH
39046do
39047 IFS=$as_save_IFS
39048 test -z "$as_dir" && as_dir=.
39049 for ac_exec_ext in '' $ac_executable_extensions; do
39050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39051 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39053 break 2
39054 fi
39055done
39056done
39057
39058 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39059fi
39060fi
39061AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39062if test -n "$AIX_CXX_LD"; then
39063 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39064echo "${ECHO_T}$AIX_CXX_LD" >&6
39065else
39066 echo "$as_me:$LINENO: result: no" >&5
39067echo "${ECHO_T}no" >&6
39068fi
39069
39070 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39071 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39072 fi
39073 ;;
39074
39075 *-*-beos* )
39076 SHARED_LD_CC="${LD} -shared -o"
39077 SHARED_LD_CXX="${LD} -shared -o"
39078 ;;
39079
39080 *-*-irix* )
39081 if test "x$GCC" != "xyes"; then
39082 PIC_FLAG="-KPIC"
39083 fi
39084 ;;
39085
39086 *-*-cygwin* | *-*-mingw32* )
39087 PIC_FLAG=""
39088 ;;
39089
39090 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39091 SHARED_LD_CC="`pwd`/dllar.sh -o"
39092 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39093 PIC_FLAG=""
473276a9
VS
39094
39095D='$'
39096cat <<EOF >dllar.sh
39097#!/bin/sh
39098#
39099# dllar - a tool to build both a .dll and an .a file
39100# from a set of object (.o) files for EMX/OS2.
39101#
39102# Written by Andrew Zabolotny, bit@freya.etu.ru
39103# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39104#
39105# This script will accept a set of files on the command line.
39106# All the public symbols from the .o files will be exported into
39107# a .DEF file, then linker will be run (through gcc) against them to
39108# build a shared library consisting of all given .o files. All libraries
39109# (.a) will be first decompressed into component .o files then act as
39110# described above. You can optionally give a description (-d "description")
39111# which will be put into .DLL. To see the list of accepted options (as well
39112# as command-line format) simply run this program without options. The .DLL
39113# is built to be imported by name (there is no guarantee that new versions
39114# of the library you build will have same ordinals for same symbols).
39115#
39116# dllar is free software; you can redistribute it and/or modify
39117# it under the terms of the GNU General Public License as published by
39118# the Free Software Foundation; either version 2, or (at your option)
39119# any later version.
39120#
39121# dllar is distributed in the hope that it will be useful,
39122# but WITHOUT ANY WARRANTY; without even the implied warranty of
39123# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39124# GNU General Public License for more details.
39125#
39126# You should have received a copy of the GNU General Public License
39127# along with dllar; see the file COPYING. If not, write to the Free
39128# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39129# 02111-1307, USA.
39130
39131# To successfuly run this program you will need:
39132# - Current drive should have LFN support (HPFS, ext2, network, etc)
39133# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39134# - gcc
39135# (used to build the .dll)
39136# - emxexp
39137# (used to create .def file from .o files)
39138# - emximp
39139# (used to create .a file from .def file)
39140# - GNU text utilites (cat, sort, uniq)
39141# used to process emxexp output
39142# - GNU file utilities (mv, rm)
39143# - GNU sed
39144# - lxlite (optional, see flag below)
39145# (used for general .dll cleanup)
39146#
39147
39148flag_USE_LXLITE=1;
39149
39150#
39151# helper functions
39152# basnam, variant of basename, which does _not_ remove the path, _iff_
39153# second argument (suffix to remove) is given
39154basnam(){
39155 case ${D}# in
39156 1)
39157 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39158 ;;
39159 2)
39160 echo ${D}1 | sed 's/'${D}2'${D}//'
39161 ;;
39162 *)
39163 echo "error in basnam ${D}*"
39164 exit 8
39165 ;;
39166 esac
39167}
39168
39169# Cleanup temporary files and output
39170CleanUp() {
39171 cd ${D}curDir
39172 for i in ${D}inputFiles ; do
39173 case ${D}i in
39174 *!)
39175 rm -rf \`basnam ${D}i !\`
39176 ;;
39177 *)
39178 ;;
39179 esac
39180 done
39181
39182 # Kill result in case of failure as there is just to many stupid make/nmake
39183 # things out there which doesn't do this.
2057db16 39184 if [] ${D}# -eq 0 []; then
473276a9
VS
39185 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39186 fi
39187}
39188
39189# Print usage and exit script with rc=1.
39190PrintHelp() {
2057db16
VS
39191 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
39192 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
39193 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
39194 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
39195 echo ' []*.o[] []*.a[]'
473276a9
VS
39196 echo '*> "output_file" should have no extension.'
39197 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39198 echo ' The import library name is derived from this and is set to "name".a,'
39199 echo ' unless overridden by -import'
39200 echo '*> "importlib_name" should have no extension.'
39201 echo ' If it has the .o, or .a extension, it is automatically removed.'
39202 echo ' This name is used as the import library name and may be longer and'
39203 echo ' more descriptive than the DLL name which has to follow the old '
39204 echo ' 8.3 convention of FAT.'
39205 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39206 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39207 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
39208 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
39209 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
39210 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39211 echo ' If the last character of a symbol is "*", all symbols beginning'
39212 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 39213 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39214 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 39215 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 39216 echo ' C runtime DLLs.'
2057db16 39217 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39218 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39219 echo ' unchanged to GCC at the end of command line.'
39220 echo '*> If you create a DLL from a library and you do not specify -o,'
39221 echo ' the basename for DLL and import library will be set to library name,'
39222 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39223 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39224 echo ' library will be renamed into gcc_s.a.'
39225 echo '--------'
39226 echo 'Example:'
39227 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39228 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39229 CleanUp
39230 exit 1
39231}
39232
39233# Execute a command.
39234# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39235# @Uses Whatever CleanUp() uses.
39236doCommand() {
39237 echo "${D}*"
39238 eval ${D}*
39239 rcCmd=${D}?
39240
2057db16 39241 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
39242 echo "command failed, exit code="${D}rcCmd
39243 CleanUp
39244 exit ${D}rcCmd
39245 fi
39246}
39247
39248# main routine
39249# setup globals
39250cmdLine=${D}*
39251outFile=""
39252outimpFile=""
39253inputFiles=""
39254description=""
39255CC=gcc.exe
39256CFLAGS="-s -Zcrtdll"
39257EXTRA_CFLAGS=""
39258EXPORT_BY_ORDINALS=0
39259exclude_symbols=""
39260library_flags=""
39261curDir=\`pwd\`
39262curDirS=curDir
39263case ${D}curDirS in
39264*/)
39265 ;;
39266*)
39267 curDirS=${D}{curDirS}"/"
39268 ;;
39269esac
39270# Parse commandline
39271libsToLink=0
2057db16 39272while [] ${D}1 []; do
473276a9
VS
39273 case ${D}1 in
39274 -ord*)
39275 EXPORT_BY_ORDINALS=1;
39276 ;;
39277 -o*)
39278 shift
39279 outFile=${D}1
39280 ;;
39281 -i*)
39282 shift
39283 outimpFile=${D}1
39284 ;;
39285 -d*)
39286 shift
39287 description=${D}1
39288 ;;
39289 -f*)
39290 shift
39291 CFLAGS=${D}1
39292 ;;
39293 -c*)
39294 shift
39295 CC=${D}1
39296 ;;
39297 -h*)
39298 PrintHelp
39299 ;;
39300 -ex*)
39301 shift
39302 exclude_symbols=${D}{exclude_symbols}${D}1" "
39303 ;;
39304 -libf*)
39305 shift
39306 library_flags=${D}{library_flags}${D}1" "
39307 ;;
39308 -nocrt*)
39309 CFLAGS="-s"
39310 ;;
39311 -nolxl*)
39312 flag_USE_LXLITE=0
39313 ;;
39314 -* | /*)
39315 case ${D}1 in
39316 -L* | -l*)
39317 libsToLink=1
39318 ;;
39319 *)
39320 ;;
39321 esac
39322 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39323 ;;
39324 *)
39325 found=0;
2057db16 39326 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39327 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39328 else
39329 for file in ${D}1 ; do
2057db16 39330 if [] -f ${D}file []; then
473276a9
VS
39331 inputFiles="${D}{inputFiles} ${D}file"
39332 found=1
39333 fi
39334 done
2057db16 39335 if [] ${D}found -eq 0 []; then
473276a9
VS
39336 echo "ERROR: No file(s) found: "${D}1
39337 exit 8
39338 fi
39339 fi
39340 ;;
39341 esac
39342 shift
39343done # iterate cmdline words
39344
39345#
2057db16 39346if [] -z "${D}inputFiles" []; then
473276a9
VS
39347 echo "dllar: no input files"
39348 PrintHelp
39349fi
39350
39351# Now extract all .o files from .a files
39352newInputFiles=""
39353for file in ${D}inputFiles ; do
39354 case ${D}file in
39355 *.a | *.lib)
39356 case ${D}file in
39357 *.a)
39358 suffix=".a"
39359 AR="ar"
39360 ;;
39361 *.lib)
39362 suffix=".lib"
39363 AR="emxomfar"
39364 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39365 ;;
39366 *)
39367 ;;
39368 esac
39369 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39370 mkdir ${D}dirname
2057db16 39371 if [] ${D}? -ne 0 []; then
473276a9
VS
39372 echo "Failed to create subdirectory ./${D}dirname"
39373 CleanUp
39374 exit 8;
39375 fi
39376 # Append '!' to indicate archive
39377 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39378 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39379 cd ${D}curDir
39380 found=0;
39381 for subfile in ${D}dirname/*.o* ; do
2057db16 39382 if [] -f ${D}subfile []; then
473276a9 39383 found=1
2057db16 39384 if [] -s ${D}subfile []; then
473276a9
VS
39385 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39386 newInputFiles="${D}newInputFiles ${D}subfile"
39387 fi
39388 fi
39389 done
2057db16 39390 if [] ${D}found -eq 0 []; then
473276a9
VS
39391 echo "WARNING: there are no files in archive \'${D}file\'"
39392 fi
39393 ;;
39394 *)
39395 newInputFiles="${D}{newInputFiles} ${D}file"
39396 ;;
39397 esac
39398done
39399inputFiles="${D}newInputFiles"
39400
39401# Output filename(s).
39402do_backup=0;
2057db16 39403if [] -z ${D}outFile []; then
473276a9
VS
39404 do_backup=1;
39405 set outFile ${D}inputFiles; outFile=${D}2
39406fi
39407
39408# If it is an archive, remove the '!' and the '_%' suffixes
39409case ${D}outFile in
39410*_%!)
39411 outFile=\`basnam ${D}outFile _%!\`
39412 ;;
39413*)
39414 ;;
39415esac
39416case ${D}outFile in
39417*.dll)
39418 outFile=\`basnam ${D}outFile .dll\`
39419 ;;
39420*.DLL)
39421 outFile=\`basnam ${D}outFile .DLL\`
39422 ;;
39423*.o)
39424 outFile=\`basnam ${D}outFile .o\`
39425 ;;
39426*.obj)
39427 outFile=\`basnam ${D}outFile .obj\`
39428 ;;
39429*.a)
39430 outFile=\`basnam ${D}outFile .a\`
39431 ;;
39432*.lib)
39433 outFile=\`basnam ${D}outFile .lib\`
39434 ;;
39435*)
39436 ;;
39437esac
39438case ${D}outimpFile in
39439*.a)
39440 outimpFile=\`basnam ${D}outimpFile .a\`
39441 ;;
39442*.lib)
39443 outimpFile=\`basnam ${D}outimpFile .lib\`
39444 ;;
39445*)
39446 ;;
39447esac
2057db16 39448if [] -z ${D}outimpFile []; then
473276a9
VS
39449 outimpFile=${D}outFile
39450fi
39451defFile="${D}{outFile}.def"
39452arcFile="${D}{outimpFile}.a"
39453arcFile2="${D}{outimpFile}.lib"
39454dllFile="${D}outFile"
39455# Add suffix to dllFile later, first we need a version to use as
39456# name in .def file.
39457
2057db16
VS
39458if [] ${D}do_backup -ne 0 [] ; then
39459 if [] -f ${D}arcFile [] ; then
473276a9
VS
39460 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39461 fi
2057db16 39462 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39463 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39464 fi
39465fi
39466
39467# Extract public symbols from all the object files.
39468tmpdefFile=${D}{defFile}_%
39469rm -f ${D}tmpdefFile
39470for file in ${D}inputFiles ; do
39471 case ${D}file in
39472 *!)
39473 ;;
39474 *)
39475 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39476 ;;
39477 esac
39478done
39479
39480# Create the def file.
39481rm -f ${D}defFile
39482echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39483dllFile="${D}dllFile.dll"
2057db16 39484if [] -n ${D}description []; then
473276a9
VS
39485 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39486fi
39487echo "EXPORTS" >> ${D}defFile
39488
39489doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39490grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39491
39492# Checks if the export is ok or not.
39493for word in ${D}exclude_symbols; do
39494 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39495 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39496done
39497
39498
2057db16 39499if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39500 sed "=" < ${D}tmpdefFile | \
39501 sed '
39502 N
39503 : loop
2057db16 39504 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39505 t loop
39506 ' > ${D}{tmpdefFile}%
39507 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39508else
39509 rm -f ${D}{tmpdefFile}%
39510fi
39511cat ${D}tmpdefFile >> ${D}defFile
39512rm -f ${D}tmpdefFile
39513
39514# Do linking, create implib, and apply lxlite.
39515gccCmdl="";
39516for file in ${D}inputFiles ; do
39517 case ${D}file in
39518 *!)
39519 ;;
39520 *)
39521 gccCmdl="${D}gccCmdl ${D}file"
39522 ;;
39523 esac
39524done
39525doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39526touch "${D}{outFile}.dll"
39527
39528doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39529if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39530 add_flags="";
2057db16 39531 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39532 add_flags="-ynd"
39533 fi
39534 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39535fi
39536doCommand "emxomf -s -l ${D}arcFile"
39537
39538# Successful exit.
39539CleanUp 1
39540exit 0
39541EOF
39542
39543 chmod +x dllar.sh
a848cd7e
SC
39544 ;;
39545
39546 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39547 *-*-sunos4* | \
39548 *-*-osf* | \
39549 *-*-dgux5* | \
39550 *-*-sysv5* )
39551 ;;
39552
39553 *)
39554 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39555echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39556 { (exit 1); exit 1; }; }
39557 esac
39558
2057db16
VS
39559 if test "x$PIC_FLAG" != "x" ; then
39560 PIC_FLAG="$PIC_FLAG -DPIC"
39561 fi
39562
a848cd7e
SC
39563 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39564 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39565 fi
39566 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39567 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39568 fi
39569
39570
39571
39572
39573
39574
39575
39576
39577 USE_SOVERSION=0
39578 USE_SOVERLINUX=0
39579 USE_SOVERSOLARIS=0
39580 USE_SOSYMLINKS=0
39581 USE_MACVERSION=0
39582 SONAME_FLAG=
39583
39584 case "${BAKEFILE_HOST}" in
39585 *-*-linux* )
39586 SONAME_FLAG="-Wl,-soname,"
39587 USE_SOVERSION=1
39588 USE_SOVERLINUX=1
39589 USE_SOSYMLINKS=1
39590 ;;
39591
39592 *-*-solaris2* )
39593 SONAME_FLAG="-h "
39594 USE_SOVERSION=1
39595 USE_SOVERSOLARIS=1
39596 USE_SOSYMLINKS=1
39597 ;;
39598
39599 *-*-darwin* )
39600 USE_MACVERSION=1
39601 USE_SOVERSION=1
39602 USE_SOSYMLINKS=1
39603 ;;
39604 esac
39605
39606
39607
39608
39609
39610
39611
39612
39613
39614 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39615echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39616 DEPS_TRACKING=0
39617
39618 if test "x$GCC" = "xyes"; then
39619 DEPSMODE=gcc
39620 DEPS_TRACKING=1
39621 case "${BAKEFILE_HOST}" in
39622 powerpc-*-darwin* )
39623 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39624 ;;
39625 * )
39626 DEPSFLAG_GCC="-MMD"
39627 ;;
39628 esac
39629 echo "$as_me:$LINENO: result: gcc" >&5
39630echo "${ECHO_T}gcc" >&6
39631 else
39632 echo "$as_me:$LINENO: result: none" >&5
39633echo "${ECHO_T}none" >&6
39634 fi
39635
39636 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39637
39638D='$'
39639cat <<EOF >bk-deps
a848cd7e
SC
39640#!/bin/sh
39641
39642# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39643# script. It is used to track C/C++ files dependencies in portable way.
39644#
39645# Permission is given to use this file in any way.
39646
473276a9 39647DEPSMODE=${DEPSMODE}
a848cd7e 39648DEPSDIR=.deps
473276a9 39649DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39650
473276a9 39651mkdir -p ${D}DEPSDIR
a848cd7e 39652
473276a9
VS
39653if test ${D}DEPSMODE = gcc ; then
39654 ${D}* ${D}{DEPSFLAG_GCC}
39655 status=${D}?
39656 if test ${D}{status} != 0 ; then
39657 exit ${D}{status}
a848cd7e
SC
39658 fi
39659 # move created file to the location we want it in:
473276a9
VS
39660 while test ${D}# -gt 0; do
39661 case "${D}1" in
a848cd7e
SC
39662 -o )
39663 shift
473276a9 39664 objfile=${D}1
a848cd7e
SC
39665 ;;
39666 -* )
39667 ;;
39668 * )
473276a9 39669 srcfile=${D}1
a848cd7e
SC
39670 ;;
39671 esac
39672 shift
39673 done
473276a9
VS
39674 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39675 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39676 if test -f ${D}depfile ; then
39677 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39678 rm -f ${D}depfile
a848cd7e 39679 else
473276a9
VS
39680 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39681 if test -f ${D}depfile ; then
39682 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39683 rm -f ${D}depfile
a848cd7e
SC
39684 fi
39685 fi
39686 exit 0
39687else
473276a9
VS
39688 ${D}*
39689 exit ${D}?
a848cd7e
SC
39690fi
39691EOF
473276a9 39692
a848cd7e
SC
39693 chmod +x bk-deps
39694 fi
39695
39696
39697
39698
39699 RESCOMP=
39700 SETFILE=
39701
39702 case ${BAKEFILE_HOST} in
39703 *-*-cygwin* | *-*-mingw32* )
39704 if test "$build" != "$host" ; then
39705 RESCOMP=$host_alias-windres
39706 else
39707 # Extract the first word of "windres", so it can be a program name with args.
39708set dummy windres; ac_word=$2
39709echo "$as_me:$LINENO: checking for $ac_word" >&5
39710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39711if test "${ac_cv_prog_RESCOMP+set}" = set; then
39712 echo $ECHO_N "(cached) $ECHO_C" >&6
39713else
39714 if test -n "$RESCOMP"; then
39715 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39716else
39717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39718for as_dir in $PATH
39719do
39720 IFS=$as_save_IFS
39721 test -z "$as_dir" && as_dir=.
39722 for ac_exec_ext in '' $ac_executable_extensions; do
39723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39724 ac_cv_prog_RESCOMP="windres"
39725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39726 break 2
39727 fi
39728done
39729done
39730
39731 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39732fi
39733fi
39734RESCOMP=$ac_cv_prog_RESCOMP
39735if test -n "$RESCOMP"; then
39736 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39737echo "${ECHO_T}$RESCOMP" >&6
39738else
39739 echo "$as_me:$LINENO: result: no" >&5
39740echo "${ECHO_T}no" >&6
39741fi
39742
39743 fi
39744 ;;
39745
39746 *-*-darwin* )
39747 # Extract the first word of "Rez", so it can be a program name with args.
39748set dummy Rez; ac_word=$2
39749echo "$as_me:$LINENO: checking for $ac_word" >&5
39750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39751if test "${ac_cv_prog_RESCOMP+set}" = set; then
39752 echo $ECHO_N "(cached) $ECHO_C" >&6
39753else
39754 if test -n "$RESCOMP"; then
39755 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39756else
39757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39758for as_dir in $PATH
39759do
39760 IFS=$as_save_IFS
39761 test -z "$as_dir" && as_dir=.
39762 for ac_exec_ext in '' $ac_executable_extensions; do
39763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39764 ac_cv_prog_RESCOMP="Rez"
39765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39766 break 2
39767 fi
39768done
39769done
39770
39771 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39772fi
39773fi
39774RESCOMP=$ac_cv_prog_RESCOMP
39775if test -n "$RESCOMP"; then
39776 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39777echo "${ECHO_T}$RESCOMP" >&6
39778else
39779 echo "$as_me:$LINENO: result: no" >&5
39780echo "${ECHO_T}no" >&6
39781fi
39782
39783 # Extract the first word of "SetFile", so it can be a program name with args.
39784set dummy SetFile; ac_word=$2
39785echo "$as_me:$LINENO: checking for $ac_word" >&5
39786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39787if test "${ac_cv_prog_SETFILE+set}" = set; then
39788 echo $ECHO_N "(cached) $ECHO_C" >&6
39789else
39790 if test -n "$SETFILE"; then
39791 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39792else
39793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39794for as_dir in $PATH
39795do
39796 IFS=$as_save_IFS
39797 test -z "$as_dir" && as_dir=.
39798 for ac_exec_ext in '' $ac_executable_extensions; do
39799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39800 ac_cv_prog_SETFILE="SetFile"
39801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39802 break 2
39803 fi
39804done
39805done
39806
39807 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39808fi
39809fi
39810SETFILE=$ac_cv_prog_SETFILE
39811if test -n "$SETFILE"; then
39812 echo "$as_me:$LINENO: result: $SETFILE" >&5
39813echo "${ECHO_T}$SETFILE" >&6
39814else
39815 echo "$as_me:$LINENO: result: no" >&5
39816echo "${ECHO_T}no" >&6
39817fi
39818
39819 ;;
39820 esac
39821
39822
39823
39824
39825
2057db16 39826 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39827
dcc1b6ad 39828
a49baeab
DE
39829
39830
39831
9f45f08e 39832BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39833
646b6ec1 39834
74b84332 39835
a848cd7e
SC
39836 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39837if test "${enable_precomp_headers+set}" = set; then
39838 enableval="$enable_precomp_headers"
39839 bk_use_pch="$enableval"
39840fi;
39841
39842 GCC_PCH=0
39843
39844 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39845 if test "x$GCC" = "xyes"; then
39846 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39847echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39848 cat >conftest.$ac_ext <<_ACEOF
39849/* confdefs.h. */
39850_ACEOF
39851cat confdefs.h >>conftest.$ac_ext
39852cat >>conftest.$ac_ext <<_ACEOF
39853/* end confdefs.h. */
39854
39855int
39856main ()
39857{
39858
39859 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39860 #error "no pch support"
39861 #endif
39862 #if (__GNUC__ < 3)
39863 #error "no pch support"
39864 #endif
39865 #if (__GNUC__ == 3) && \
39866 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39867 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39868 #error "no pch support"
39869 #endif
39870
39871 ;
39872 return 0;
39873}
39874_ACEOF
39875rm -f conftest.$ac_objext
39876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39877 (eval $ac_compile) 2>conftest.er1
a848cd7e 39878 ac_status=$?
ac1cb8d3
VS
39879 grep -v '^ *+' conftest.er1 >conftest.err
39880 rm -f conftest.er1
39881 cat conftest.err >&5
a848cd7e
SC
39882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39883 (exit $ac_status); } &&
b48a2016
DE
39884 { ac_try='test -z "$ac_c_werror_flag"
39885 || test ! -s conftest.err'
ac1cb8d3
VS
39886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39887 (eval $ac_try) 2>&5
39888 ac_status=$?
39889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39890 (exit $ac_status); }; } &&
39891 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39893 (eval $ac_try) 2>&5
39894 ac_status=$?
39895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896 (exit $ac_status); }; }; then
39897
39898 echo "$as_me:$LINENO: result: yes" >&5
39899echo "${ECHO_T}yes" >&6
a848cd7e
SC
39900 GCC_PCH=1
39901
39902else
39903 echo "$as_me: failed program was:" >&5
39904sed 's/^/| /' conftest.$ac_ext >&5
39905
39906
39907 echo "$as_me:$LINENO: result: no" >&5
39908echo "${ECHO_T}no" >&6
39909
39910fi
ac1cb8d3 39911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39912 if test $GCC_PCH = 1 ; then
39913 cat <<EOF >bk-make-pch
39914#!/bin/sh
39915
39916# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39917# script. It is used to generated precompiled headers.
39918#
39919# Permission is given to use this file in any way.
39920
39921outfile="\${1}"
39922header="\${2}"
39923shift
39924shift
39925
39926compiler=
39927headerfile=
39928while test \${#} -gt 0; do
39929 case "\${1}" in
39930 -I* )
39931 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39932 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39933 headerfile="\${incdir}/\${header}"
39934 fi
39935 ;;
39936 esac
39937 compiler="\${compiler} \${1}"
39938 shift
39939done
39940
39941if test "x\${headerfile}" = "x" ; then
39942 echo "error: can't find header \${header} in include paths" >2
39943else
39944 if test -f \${outfile} ; then
39945 rm -f \${outfile}
39946 else
39947 mkdir -p \`dirname \${outfile}\`
39948 fi
39949 depsfile=".deps/\`basename \${outfile}\`.d"
39950 mkdir -p .deps
39951 # can do this because gcc is >= 3.4:
39952 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39953 exit \${?}
39954fi
39955EOF
39956 chmod +x bk-make-pch
39957 fi
39958 fi
39959 fi
39960
39961
39962
39963
39964
dcc1b6ad
VS
39965
39966
39967 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39968if test "${enable_precomp_headers+set}" = set; then
39969 enableval="$enable_precomp_headers"
39970 bk_use_pch="$enableval"
39971fi;
39972
39973 GCC_PCH=0
39974
39975 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39976 if test "x$GCC" = "xyes"; then
39977 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39978echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39979 cat >conftest.$ac_ext <<_ACEOF
39980/* confdefs.h. */
39981_ACEOF
39982cat confdefs.h >>conftest.$ac_ext
39983cat >>conftest.$ac_ext <<_ACEOF
39984/* end confdefs.h. */
39985
39986int
39987main ()
39988{
39989
39990 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39991 #error "no pch support"
39992 #endif
39993 #if (__GNUC__ < 3)
39994 #error "no pch support"
39995 #endif
39996 #if (__GNUC__ == 3) && \
39997 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39998 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39999 #error "no pch support"
40000 #endif
40001
40002 ;
40003 return 0;
40004}
40005_ACEOF
40006rm -f conftest.$ac_objext
40007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40008 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 40009 ac_status=$?
ac1cb8d3
VS
40010 grep -v '^ *+' conftest.er1 >conftest.err
40011 rm -f conftest.er1
40012 cat conftest.err >&5
dcc1b6ad
VS
40013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014 (exit $ac_status); } &&
b48a2016
DE
40015 { ac_try='test -z "$ac_c_werror_flag"
40016 || test ! -s conftest.err'
ac1cb8d3
VS
40017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40018 (eval $ac_try) 2>&5
40019 ac_status=$?
40020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40021 (exit $ac_status); }; } &&
40022 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
40023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40024 (eval $ac_try) 2>&5
40025 ac_status=$?
40026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40027 (exit $ac_status); }; }; then
40028
40029 echo "$as_me:$LINENO: result: yes" >&5
40030echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
40031 GCC_PCH=1
40032
40033else
40034 echo "$as_me: failed program was:" >&5
40035sed 's/^/| /' conftest.$ac_ext >&5
40036
40037
40038 echo "$as_me:$LINENO: result: no" >&5
40039echo "${ECHO_T}no" >&6
40040
40041fi
ac1cb8d3 40042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
40043 if test $GCC_PCH = 1 ; then
40044 cat <<EOF >bk-make-pch
40045#!/bin/sh
40046
40047# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40048# script. It is used to generated precompiled headers.
40049#
40050# Permission is given to use this file in any way.
40051
40052outfile="\${1}"
40053header="\${2}"
40054shift
40055shift
40056
40057compiler=
40058headerfile=
40059while test \${#} -gt 0; do
40060 case "\${1}" in
40061 -I* )
40062 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40063 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40064 headerfile="\${incdir}/\${header}"
40065 fi
40066 ;;
40067 esac
40068 compiler="\${compiler} \${1}"
40069 shift
40070done
40071
40072if test "x\${headerfile}" = "x" ; then
40073 echo "error: can't find header \${header} in include paths" >2
40074else
40075 if test -f \${outfile} ; then
40076 rm -f \${outfile}
40077 else
40078 mkdir -p \`dirname \${outfile}\`
40079 fi
40080 depsfile=".deps/\`basename \${outfile}\`.d"
40081 mkdir -p .deps
40082 # can do this because gcc is >= 3.4:
40083 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40084 exit \${?}
40085fi
40086EOF
40087 chmod +x bk-make-pch
40088 fi
40089 fi
40090 fi
40091
40092
40093
a848cd7e
SC
40094 COND_BUILD_DEBUG="#"
40095 if test "x$BUILD" = "xdebug" ; then
40096 COND_BUILD_DEBUG=""
40097 fi
40098
40099 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40100 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40101 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40102 fi
40103
40104 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40105 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40106 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40107 fi
40108
40109 COND_BUILD_DEBUG_UNICODE_0="#"
40110 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40111 COND_BUILD_DEBUG_UNICODE_0=""
40112 fi
40113
40114 COND_BUILD_DEBUG_UNICODE_1="#"
40115 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40116 COND_BUILD_DEBUG_UNICODE_1=""
40117 fi
40118
40119 COND_BUILD_RELEASE="#"
40120 if test "x$BUILD" = "xrelease" ; then
40121 COND_BUILD_RELEASE=""
40122 fi
40123
40124 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40125 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40126 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40127 fi
40128
40129 COND_BUILD_RELEASE_UNICODE_0="#"
40130 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40131 COND_BUILD_RELEASE_UNICODE_0=""
40132 fi
40133
40134 COND_BUILD_RELEASE_UNICODE_1="#"
40135 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40136 COND_BUILD_RELEASE_UNICODE_1=""
40137 fi
40138
40139 COND_DEBUG_FLAG_1="#"
40140 if test "x$DEBUG_FLAG" = "x1" ; then
40141 COND_DEBUG_FLAG_1=""
40142 fi
40143
40144 COND_DEBUG_INFO_0="#"
40145 if test "x$DEBUG_INFO" = "x0" ; then
40146 COND_DEBUG_INFO_0=""
40147 fi
40148
40149 COND_DEBUG_INFO_1="#"
40150 if test "x$DEBUG_INFO" = "x1" ; then
40151 COND_DEBUG_INFO_1=""
40152 fi
40153
40154 COND_DEPS_TRACKING_0="#"
40155 if test "x$DEPS_TRACKING" = "x0" ; then
40156 COND_DEPS_TRACKING_0=""
40157 fi
40158
40159 COND_DEPS_TRACKING_1="#"
40160 if test "x$DEPS_TRACKING" = "x1" ; then
40161 COND_DEPS_TRACKING_1=""
40162 fi
40163
40164 COND_GCC_PCH_1="#"
40165 if test "x$GCC_PCH" = "x1" ; then
40166 COND_GCC_PCH_1=""
40167 fi
40168
40169 COND_MONOLITHIC_0="#"
40170 if test "x$MONOLITHIC" = "x0" ; then
40171 COND_MONOLITHIC_0=""
40172 fi
40173
40174 COND_MONOLITHIC_0_SHARED_0="#"
40175 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40176 COND_MONOLITHIC_0_SHARED_0=""
40177 fi
40178
40179 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40180 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40181 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40182 fi
40183
40184 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40185 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40186 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40187 fi
40188
40189 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40190 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40191 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40192 fi
40193
40194 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40195 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40196 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40197 fi
40198
ceec2216
RL
40199 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40200 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40201 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40202 fi
40203
a848cd7e
SC
40204 COND_MONOLITHIC_0_SHARED_1="#"
40205 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40206 COND_MONOLITHIC_0_SHARED_1=""
40207 fi
40208
40209 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40210 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40211 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40212 fi
40213
40214 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40215 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40216 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40217 fi
40218
40219 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40220 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40221 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40222 fi
40223
40224 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40225 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40226 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40227 fi
40228
ceec2216
RL
40229 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40230 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40231 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40232 fi
40233
a848cd7e
SC
40234 COND_MONOLITHIC_0_USE_ODBC_1="#"
40235 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40236 COND_MONOLITHIC_0_USE_ODBC_1=""
40237 fi
40238
40239 COND_MONOLITHIC_1="#"
40240 if test "x$MONOLITHIC" = "x1" ; then
40241 COND_MONOLITHIC_1=""
40242 fi
40243
40244 COND_MONOLITHIC_1_SHARED_0="#"
40245 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40246 COND_MONOLITHIC_1_SHARED_0=""
40247 fi
40248
40249 COND_MONOLITHIC_1_SHARED_1="#"
40250 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40251 COND_MONOLITHIC_1_SHARED_1=""
40252 fi
40253
40254 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40255 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40256 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40257 fi
40258
40259 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40260 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40261 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40262 fi
40263
40264 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40265 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40266 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40267 fi
40268
40269 COND_PLATFORM_MACOSX_1="#"
40270 if test "x$PLATFORM_MACOSX" = "x1" ; then
40271 COND_PLATFORM_MACOSX_1=""
40272 fi
40273
a30f955f
VS
40274 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40275 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40276 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40277 fi
40278
a848cd7e
SC
40279 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40280 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40281 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40282 fi
40283
40284 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40285 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40286 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40287 fi
40288
40289 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40290 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40291 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40292 fi
40293
ebee3cd0
VS
40294 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40295 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40296 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40297 fi
40298
40299 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40300 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40301 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40302 fi
40303
a848cd7e
SC
40304 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40305 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40306 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40307 fi
40308
40309 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40310 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40311 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40312 fi
40313
b48a2016
DE
40314 COND_PLATFORM_MACOS_1="#"
40315 if test "x$PLATFORM_MACOS" = "x1" ; then
40316 COND_PLATFORM_MACOS_1=""
40317 fi
40318
a848cd7e
SC
40319 COND_PLATFORM_MAC_1="#"
40320 if test "x$PLATFORM_MAC" = "x1" ; then
40321 COND_PLATFORM_MAC_1=""
40322 fi
40323
40324 COND_PLATFORM_OS2_1="#"
40325 if test "x$PLATFORM_OS2" = "x1" ; then
40326 COND_PLATFORM_OS2_1=""
40327 fi
40328
40329 COND_PLATFORM_UNIX_0="#"
40330 if test "x$PLATFORM_UNIX" = "x0" ; then
40331 COND_PLATFORM_UNIX_0=""
40332 fi
40333
40334 COND_PLATFORM_UNIX_1="#"
40335 if test "x$PLATFORM_UNIX" = "x1" ; then
40336 COND_PLATFORM_UNIX_1=""
40337 fi
40338
40339 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40340 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40341 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40342 fi
40343
40344 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40345 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40346 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40347 fi
40348
40349 COND_PLATFORM_WIN32_0="#"
40350 if test "x$PLATFORM_WIN32" = "x0" ; then
40351 COND_PLATFORM_WIN32_0=""
40352 fi
40353
40354 COND_PLATFORM_WIN32_1="#"
40355 if test "x$PLATFORM_WIN32" = "x1" ; then
40356 COND_PLATFORM_WIN32_1=""
40357 fi
40358
40359 COND_SHARED_0="#"
40360 if test "x$SHARED" = "x0" ; then
40361 COND_SHARED_0=""
40362 fi
40363
ceec2216
RL
40364 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40365 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40366 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40367 fi
40368
40369 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40370 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40371 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40372 fi
40373
40374 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40375 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40376 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40377 fi
40378
a848cd7e
SC
40379 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40380 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40381 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40382 fi
40383
40384 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40385 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40386 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40387 fi
40388
40389 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40390 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40391 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40392 fi
40393
40394 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40395 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40396 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40397 fi
40398
40399 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40400 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40401 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40402 fi
40403
40404 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40405 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40406 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40407 fi
40408
40409 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40410 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40411 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40412 fi
40413
40414 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40415 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40416 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40417 fi
40418
40419 COND_SHARED_1="#"
40420 if test "x$SHARED" = "x1" ; then
40421 COND_SHARED_1=""
40422 fi
40423
40424 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40425 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40426 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40427 fi
40428
a30f955f
VS
40429 COND_TOOLKIT_="#"
40430 if test "x$TOOLKIT" = "x" ; then
40431 COND_TOOLKIT_=""
40432 fi
40433
a848cd7e
SC
40434 COND_TOOLKIT_COCOA="#"
40435 if test "x$TOOLKIT" = "xCOCOA" ; then
40436 COND_TOOLKIT_COCOA=""
40437 fi
40438
a49baeab
DE
40439 COND_TOOLKIT_COCOA_USE_GUI_1="#"
40440 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
40441 COND_TOOLKIT_COCOA_USE_GUI_1=""
40442 fi
40443
a848cd7e
SC
40444 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40445 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40446 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40447 fi
40448
40449 COND_TOOLKIT_GTK="#"
40450 if test "x$TOOLKIT" = "xGTK" ; then
40451 COND_TOOLKIT_GTK=""
40452 fi
40453
40454 COND_TOOLKIT_GTK_USE_GUI_1="#"
40455 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40456 COND_TOOLKIT_GTK_USE_GUI_1=""
40457 fi
40458
40459 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40460 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40461 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40462 fi
40463
40464 COND_TOOLKIT_MAC="#"
40465 if test "x$TOOLKIT" = "xMAC" ; then
40466 COND_TOOLKIT_MAC=""
40467 fi
40468
40469 COND_TOOLKIT_MAC_USE_GUI_1="#"
40470 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40471 COND_TOOLKIT_MAC_USE_GUI_1=""
40472 fi
40473
40474 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40475 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40476 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40477 fi
40478
40479 COND_TOOLKIT_MGL="#"
40480 if test "x$TOOLKIT" = "xMGL" ; then
40481 COND_TOOLKIT_MGL=""
40482 fi
40483
40484 COND_TOOLKIT_MGL_USE_GUI_1="#"
40485 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40486 COND_TOOLKIT_MGL_USE_GUI_1=""
40487 fi
40488
40489 COND_TOOLKIT_MOTIF="#"
40490 if test "x$TOOLKIT" = "xMOTIF" ; then
40491 COND_TOOLKIT_MOTIF=""
40492 fi
40493
40494 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40495 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40496 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40497 fi
40498
40499 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40500 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40501 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40502 fi
40503
40504 COND_TOOLKIT_MSW="#"
40505 if test "x$TOOLKIT" = "xMSW" ; then
40506 COND_TOOLKIT_MSW=""
40507 fi
40508
40509 COND_TOOLKIT_MSW_USE_GUI_1="#"
40510 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40511 COND_TOOLKIT_MSW_USE_GUI_1=""
40512 fi
40513
40514 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40515 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40516 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40517 fi
40518
40519 COND_TOOLKIT_PM="#"
40520 if test "x$TOOLKIT" = "xPM" ; then
40521 COND_TOOLKIT_PM=""
40522 fi
40523
40524 COND_TOOLKIT_PM_USE_GUI_1="#"
40525 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40526 COND_TOOLKIT_PM_USE_GUI_1=""
40527 fi
40528
40529 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40530 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40531 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40532 fi
40533
3fd9c298
DE
40534 COND_TOOLKIT_WINCE="#"
40535 if test "x$TOOLKIT" = "xWINCE" ; then
40536 COND_TOOLKIT_WINCE=""
40537 fi
40538
40539 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40540 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40541 COND_TOOLKIT_WINCE_USE_GUI_1=""
40542 fi
40543
40544 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40545 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40546 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40547 fi
40548
a848cd7e
SC
40549 COND_TOOLKIT_X11="#"
40550 if test "x$TOOLKIT" = "xX11" ; then
40551 COND_TOOLKIT_X11=""
40552 fi
40553
40554 COND_TOOLKIT_X11_USE_GUI_1="#"
40555 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40556 COND_TOOLKIT_X11_USE_GUI_1=""
40557 fi
40558
40559 COND_UNICODE_1="#"
40560 if test "x$UNICODE" = "x1" ; then
40561 COND_UNICODE_1=""
40562 fi
40563
40564 COND_USE_EXCEPTIONS_0="#"
40565 if test "x$USE_EXCEPTIONS" = "x0" ; then
40566 COND_USE_EXCEPTIONS_0=""
40567 fi
40568
40569 COND_USE_EXCEPTIONS_1="#"
40570 if test "x$USE_EXCEPTIONS" = "x1" ; then
40571 COND_USE_EXCEPTIONS_1=""
40572 fi
40573
40574 COND_USE_GUI_0="#"
40575 if test "x$USE_GUI" = "x0" ; then
40576 COND_USE_GUI_0=""
40577 fi
40578
40579 COND_USE_GUI_1="#"
40580 if test "x$USE_GUI" = "x1" ; then
40581 COND_USE_GUI_1=""
40582 fi
40583
40584 COND_USE_GUI_1_WXUNIV_0="#"
40585 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40586 COND_USE_GUI_1_WXUNIV_0=""
40587 fi
40588
40589 COND_USE_GUI_1_WXUNIV_1="#"
40590 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40591 COND_USE_GUI_1_WXUNIV_1=""
40592 fi
40593
40594 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40595 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40596 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40597 fi
40598
40599 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40600 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40601 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40602 fi
40603
40604 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40605 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40606 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40607 fi
40608
ceec2216
RL
40609 COND_USE_ODBC_1="#"
40610 if test "x$USE_ODBC" = "x1" ; then
40611 COND_USE_ODBC_1=""
40612 fi
40613
ffa0583f
RL
40614 COND_USE_OPENGL_1="#"
40615 if test "x$USE_OPENGL" = "x1" ; then
40616 COND_USE_OPENGL_1=""
40617 fi
40618
a848cd7e
SC
40619 COND_USE_PLUGINS_0="#"
40620 if test "x$USE_PLUGINS" = "x0" ; then
40621 COND_USE_PLUGINS_0=""
40622 fi
40623
40624 COND_USE_SOSYMLINKS_1="#"
40625 if test "x$USE_SOSYMLINKS" = "x1" ; then
40626 COND_USE_SOSYMLINKS_1=""
40627 fi
40628
40629 COND_USE_SOVERLINUX_1="#"
40630 if test "x$USE_SOVERLINUX" = "x1" ; then
40631 COND_USE_SOVERLINUX_1=""
40632 fi
40633
40634 COND_USE_SOVERSION_0="#"
40635 if test "x$USE_SOVERSION" = "x0" ; then
40636 COND_USE_SOVERSION_0=""
40637 fi
40638
40639 COND_USE_SOVERSOLARIS_1="#"
40640 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40641 COND_USE_SOVERSOLARIS_1=""
40642 fi
40643
a13a7f89
RL
40644 COND_USE_XRC_1="#"
40645 if test "x$USE_XRC" = "x1" ; then
40646 COND_USE_XRC_1=""
40647 fi
40648
a848cd7e
SC
40649 COND_WITH_PLUGIN_SDL_1="#"
40650 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40651 COND_WITH_PLUGIN_SDL_1=""
40652 fi
40653
a848cd7e
SC
40654 COND_WXUNIV_1="#"
40655 if test "x$WXUNIV" = "x1" ; then
40656 COND_WXUNIV_1=""
40657 fi
40658
40659 COND_WXUSE_EXPAT_BUILTIN="#"
40660 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40661 COND_WXUSE_EXPAT_BUILTIN=""
40662 fi
40663
40664 COND_WXUSE_LIBJPEG_BUILTIN="#"
40665 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40666 COND_WXUSE_LIBJPEG_BUILTIN=""
40667 fi
40668
40669 COND_WXUSE_LIBPNG_BUILTIN="#"
40670 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40671 COND_WXUSE_LIBPNG_BUILTIN=""
40672 fi
40673
40674 COND_WXUSE_LIBTIFF_BUILTIN="#"
40675 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40676 COND_WXUSE_LIBTIFF_BUILTIN=""
40677 fi
40678
40679 COND_WXUSE_ODBC_BUILTIN="#"
40680 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40681 COND_WXUSE_ODBC_BUILTIN=""
40682 fi
40683
40684 COND_WXUSE_REGEX_BUILTIN="#"
40685 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40686 COND_WXUSE_REGEX_BUILTIN=""
40687 fi
40688
40689 COND_WXUSE_ZLIB_BUILTIN="#"
40690 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40691 COND_WXUSE_ZLIB_BUILTIN=""
40692 fi
40693
dcc1b6ad
VS
40694 COND_BUILD_DEBUG="#"
40695 if test "x$BUILD" = "xdebug" ; then
40696 COND_BUILD_DEBUG=""
40697 fi
40698
40699 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40700 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40701 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40702 fi
40703
40704 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40705 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40706 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40707 fi
40708
40709 COND_BUILD_DEBUG_UNICODE_0="#"
40710 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40711 COND_BUILD_DEBUG_UNICODE_0=""
40712 fi
40713
40714 COND_BUILD_DEBUG_UNICODE_1="#"
40715 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40716 COND_BUILD_DEBUG_UNICODE_1=""
40717 fi
40718
40719 COND_BUILD_RELEASE="#"
40720 if test "x$BUILD" = "xrelease" ; then
40721 COND_BUILD_RELEASE=""
40722 fi
40723
40724 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40725 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40726 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40727 fi
40728
40729 COND_BUILD_RELEASE_UNICODE_0="#"
40730 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40731 COND_BUILD_RELEASE_UNICODE_0=""
40732 fi
40733
40734 COND_BUILD_RELEASE_UNICODE_1="#"
40735 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40736 COND_BUILD_RELEASE_UNICODE_1=""
40737 fi
40738
40739 COND_DEBUG_FLAG_1="#"
40740 if test "x$DEBUG_FLAG" = "x1" ; then
40741 COND_DEBUG_FLAG_1=""
40742 fi
40743
40744 COND_DEBUG_INFO_0="#"
40745 if test "x$DEBUG_INFO" = "x0" ; then
40746 COND_DEBUG_INFO_0=""
40747 fi
40748
40749 COND_DEBUG_INFO_1="#"
40750 if test "x$DEBUG_INFO" = "x1" ; then
40751 COND_DEBUG_INFO_1=""
40752 fi
40753
40754 COND_DEPS_TRACKING_0="#"
40755 if test "x$DEPS_TRACKING" = "x0" ; then
40756 COND_DEPS_TRACKING_0=""
40757 fi
40758
40759 COND_DEPS_TRACKING_1="#"
40760 if test "x$DEPS_TRACKING" = "x1" ; then
40761 COND_DEPS_TRACKING_1=""
40762 fi
40763
40764 COND_GCC_PCH_1="#"
40765 if test "x$GCC_PCH" = "x1" ; then
40766 COND_GCC_PCH_1=""
40767 fi
40768
40769 COND_MONOLITHIC_0="#"
40770 if test "x$MONOLITHIC" = "x0" ; then
40771 COND_MONOLITHIC_0=""
40772 fi
40773
40774 COND_MONOLITHIC_0_SHARED_0="#"
40775 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40776 COND_MONOLITHIC_0_SHARED_0=""
40777 fi
40778
40779 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40780 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40781 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40782 fi
40783
40784 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40785 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40786 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40787 fi
40788
40789 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40790 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40791 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40792 fi
40793
40794 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40795 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40796 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40797 fi
40798
9a8f0513
VS
40799 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40800 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40801 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40802 fi
40803
dcc1b6ad
VS
40804 COND_MONOLITHIC_0_SHARED_1="#"
40805 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40806 COND_MONOLITHIC_0_SHARED_1=""
40807 fi
40808
40809 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40810 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40811 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40812 fi
40813
40814 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40815 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40816 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40817 fi
40818
40819 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40820 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40821 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40822 fi
40823
40824 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40825 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40826 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40827 fi
40828
9a8f0513
VS
40829 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40830 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40831 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40832 fi
40833
dcc1b6ad
VS
40834 COND_MONOLITHIC_0_USE_ODBC_1="#"
40835 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40836 COND_MONOLITHIC_0_USE_ODBC_1=""
40837 fi
40838
40839 COND_MONOLITHIC_1="#"
40840 if test "x$MONOLITHIC" = "x1" ; then
40841 COND_MONOLITHIC_1=""
40842 fi
40843
40844 COND_MONOLITHIC_1_SHARED_0="#"
40845 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40846 COND_MONOLITHIC_1_SHARED_0=""
40847 fi
40848
40849 COND_MONOLITHIC_1_SHARED_1="#"
40850 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40851 COND_MONOLITHIC_1_SHARED_1=""
40852 fi
40853
40854 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40855 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40856 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40857 fi
40858
40859 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40860 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40861 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40862 fi
40863
40864 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40865 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40866 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40867 fi
40868
40869 COND_PLATFORM_MACOSX_1="#"
40870 if test "x$PLATFORM_MACOSX" = "x1" ; then
40871 COND_PLATFORM_MACOSX_1=""
40872 fi
40873
40874 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40875 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40876 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40877 fi
40878
40879 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40880 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40881 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40882 fi
40883
40884 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40885 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40886 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40887 fi
40888
9a8f0513
VS
40889 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40890 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40891 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40892 fi
40893
40894 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40895 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40896 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40897 fi
40898
dcc1b6ad
VS
40899 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40900 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40901 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40902 fi
40903
40904 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40905 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40906 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40907 fi
40908
40909 COND_PLATFORM_MAC_1="#"
40910 if test "x$PLATFORM_MAC" = "x1" ; then
40911 COND_PLATFORM_MAC_1=""
40912 fi
40913
40914 COND_PLATFORM_OS2_1="#"
40915 if test "x$PLATFORM_OS2" = "x1" ; then
40916 COND_PLATFORM_OS2_1=""
40917 fi
40918
40919 COND_PLATFORM_UNIX_0="#"
40920 if test "x$PLATFORM_UNIX" = "x0" ; then
40921 COND_PLATFORM_UNIX_0=""
40922 fi
40923
40924 COND_PLATFORM_UNIX_1="#"
40925 if test "x$PLATFORM_UNIX" = "x1" ; then
40926 COND_PLATFORM_UNIX_1=""
40927 fi
40928
40929 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40930 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40931 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40932 fi
40933
40934 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40935 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40936 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40937 fi
40938
40939 COND_PLATFORM_WIN32_0="#"
40940 if test "x$PLATFORM_WIN32" = "x0" ; then
40941 COND_PLATFORM_WIN32_0=""
40942 fi
40943
40944 COND_PLATFORM_WIN32_1="#"
40945 if test "x$PLATFORM_WIN32" = "x1" ; then
40946 COND_PLATFORM_WIN32_1=""
40947 fi
40948
40949 COND_SHARED_0="#"
40950 if test "x$SHARED" = "x0" ; then
40951 COND_SHARED_0=""
40952 fi
40953
40954 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40955 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40956 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40957 fi
40958
40959 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40960 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40961 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40962 fi
40963
40964 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40965 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40966 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40967 fi
40968
40969 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40970 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40971 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40972 fi
40973
40974 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40975 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40976 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40977 fi
40978
40979 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40980 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40981 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40982 fi
40983
40984 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40985 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40986 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40987 fi
40988
40989 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40990 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40991 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40992 fi
40993
40994 COND_SHARED_1="#"
40995 if test "x$SHARED" = "x1" ; then
40996 COND_SHARED_1=""
40997 fi
40998
40999 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41000 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41001 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41002 fi
41003
41004 COND_TOOLKIT_COCOA="#"
41005 if test "x$TOOLKIT" = "xCOCOA" ; then
41006 COND_TOOLKIT_COCOA=""
41007 fi
41008
41009 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41010 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41011 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41012 fi
41013
41014 COND_TOOLKIT_GTK="#"
41015 if test "x$TOOLKIT" = "xGTK" ; then
41016 COND_TOOLKIT_GTK=""
41017 fi
41018
41019 COND_TOOLKIT_GTK_USE_GUI_1="#"
41020 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41021 COND_TOOLKIT_GTK_USE_GUI_1=""
41022 fi
41023
41024 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41025 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41026 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41027 fi
41028
41029 COND_TOOLKIT_MAC="#"
41030 if test "x$TOOLKIT" = "xMAC" ; then
41031 COND_TOOLKIT_MAC=""
41032 fi
41033
41034 COND_TOOLKIT_MAC_USE_GUI_1="#"
41035 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41036 COND_TOOLKIT_MAC_USE_GUI_1=""
41037 fi
41038
41039 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41040 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41041 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41042 fi
41043
9a8f0513
VS
41044 COND_TOOLKIT_MAC_WXUNIV_0="#"
41045 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41046 COND_TOOLKIT_MAC_WXUNIV_0=""
41047 fi
41048
dcc1b6ad
VS
41049 COND_TOOLKIT_MGL="#"
41050 if test "x$TOOLKIT" = "xMGL" ; then
41051 COND_TOOLKIT_MGL=""
41052 fi
41053
41054 COND_TOOLKIT_MGL_USE_GUI_1="#"
41055 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41056 COND_TOOLKIT_MGL_USE_GUI_1=""
41057 fi
41058
41059 COND_TOOLKIT_MOTIF="#"
41060 if test "x$TOOLKIT" = "xMOTIF" ; then
41061 COND_TOOLKIT_MOTIF=""
41062 fi
41063
41064 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41065 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41066 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41067 fi
41068
41069 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41070 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41071 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41072 fi
41073
41074 COND_TOOLKIT_MSW="#"
41075 if test "x$TOOLKIT" = "xMSW" ; then
41076 COND_TOOLKIT_MSW=""
41077 fi
41078
41079 COND_TOOLKIT_MSW_USE_GUI_1="#"
41080 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41081 COND_TOOLKIT_MSW_USE_GUI_1=""
41082 fi
41083
41084 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41085 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41086 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41087 fi
41088
9a8f0513
VS
41089 COND_TOOLKIT_MSW_WXUNIV_0="#"
41090 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41091 COND_TOOLKIT_MSW_WXUNIV_0=""
41092 fi
41093
dcc1b6ad
VS
41094 COND_TOOLKIT_PM="#"
41095 if test "x$TOOLKIT" = "xPM" ; then
41096 COND_TOOLKIT_PM=""
41097 fi
41098
41099 COND_TOOLKIT_PM_USE_GUI_1="#"
41100 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41101 COND_TOOLKIT_PM_USE_GUI_1=""
41102 fi
41103
41104 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41105 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41106 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41107 fi
41108
9a8f0513
VS
41109 COND_TOOLKIT_PM_WXUNIV_0="#"
41110 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41111 COND_TOOLKIT_PM_WXUNIV_0=""
41112 fi
41113
dcc1b6ad
VS
41114 COND_TOOLKIT_WINCE="#"
41115 if test "x$TOOLKIT" = "xWINCE" ; then
41116 COND_TOOLKIT_WINCE=""
41117 fi
41118
41119 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41120 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41121 COND_TOOLKIT_WINCE_USE_GUI_1=""
41122 fi
41123
41124 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41125 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41126 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41127 fi
41128
41129 COND_TOOLKIT_X11="#"
41130 if test "x$TOOLKIT" = "xX11" ; then
41131 COND_TOOLKIT_X11=""
41132 fi
41133
41134 COND_TOOLKIT_X11_USE_GUI_1="#"
41135 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41136 COND_TOOLKIT_X11_USE_GUI_1=""
41137 fi
41138
41139 COND_UNICODE_1="#"
41140 if test "x$UNICODE" = "x1" ; then
41141 COND_UNICODE_1=""
41142 fi
41143
41144 COND_USE_EXCEPTIONS_0="#"
41145 if test "x$USE_EXCEPTIONS" = "x0" ; then
41146 COND_USE_EXCEPTIONS_0=""
41147 fi
41148
41149 COND_USE_EXCEPTIONS_1="#"
41150 if test "x$USE_EXCEPTIONS" = "x1" ; then
41151 COND_USE_EXCEPTIONS_1=""
41152 fi
41153
41154 COND_USE_GUI_0="#"
41155 if test "x$USE_GUI" = "x0" ; then
41156 COND_USE_GUI_0=""
41157 fi
41158
41159 COND_USE_GUI_1="#"
41160 if test "x$USE_GUI" = "x1" ; then
41161 COND_USE_GUI_1=""
41162 fi
41163
41164 COND_USE_GUI_1_WXUNIV_0="#"
41165 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41166 COND_USE_GUI_1_WXUNIV_0=""
41167 fi
41168
41169 COND_USE_GUI_1_WXUNIV_1="#"
41170 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41171 COND_USE_GUI_1_WXUNIV_1=""
41172 fi
41173
41174 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41175 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41176 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41177 fi
41178
41179 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41180 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41181 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41182 fi
41183
41184 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41185 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41186 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41187 fi
41188
41189 COND_USE_ODBC_1="#"
41190 if test "x$USE_ODBC" = "x1" ; then
41191 COND_USE_ODBC_1=""
41192 fi
41193
41194 COND_USE_PLUGINS_0="#"
41195 if test "x$USE_PLUGINS" = "x0" ; then
41196 COND_USE_PLUGINS_0=""
41197 fi
41198
41199 COND_USE_SOSYMLINKS_1="#"
41200 if test "x$USE_SOSYMLINKS" = "x1" ; then
41201 COND_USE_SOSYMLINKS_1=""
41202 fi
41203
41204 COND_USE_SOVERLINUX_1="#"
41205 if test "x$USE_SOVERLINUX" = "x1" ; then
41206 COND_USE_SOVERLINUX_1=""
41207 fi
41208
41209 COND_USE_SOVERSION_0="#"
41210 if test "x$USE_SOVERSION" = "x0" ; then
41211 COND_USE_SOVERSION_0=""
41212 fi
41213
41214 COND_USE_SOVERSOLARIS_1="#"
41215 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41216 COND_USE_SOVERSOLARIS_1=""
41217 fi
41218
41219 COND_WITH_PLUGIN_SDL_1="#"
41220 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41221 COND_WITH_PLUGIN_SDL_1=""
41222 fi
41223
41224 COND_WXUNIV_1="#"
41225 if test "x$WXUNIV" = "x1" ; then
41226 COND_WXUNIV_1=""
41227 fi
41228
41229 COND_WXUSE_EXPAT_BUILTIN="#"
41230 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41231 COND_WXUSE_EXPAT_BUILTIN=""
41232 fi
41233
41234 COND_WXUSE_LIBJPEG_BUILTIN="#"
41235 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41236 COND_WXUSE_LIBJPEG_BUILTIN=""
41237 fi
41238
41239 COND_WXUSE_LIBPNG_BUILTIN="#"
41240 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41241 COND_WXUSE_LIBPNG_BUILTIN=""
41242 fi
41243
41244 COND_WXUSE_LIBTIFF_BUILTIN="#"
41245 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41246 COND_WXUSE_LIBTIFF_BUILTIN=""
41247 fi
41248
41249 COND_WXUSE_ODBC_BUILTIN="#"
41250 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41251 COND_WXUSE_ODBC_BUILTIN=""
41252 fi
41253
41254 COND_WXUSE_REGEX_BUILTIN="#"
41255 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41256 COND_WXUSE_REGEX_BUILTIN=""
41257 fi
41258
41259 COND_WXUSE_ZLIB_BUILTIN="#"
41260 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41261 COND_WXUSE_ZLIB_BUILTIN=""
41262 fi
41263
a848cd7e
SC
41264
41265
2057db16
VS
41266 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41267 { { 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
41268echo "$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;}
41269 { (exit 1); exit 1; }; }
41270 fi
41271
a848cd7e 41272
ceec2216
RL
41273if test "$wxUSE_SHARED" = "yes"; then
41274
41275 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41276 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41277
41278else
41279
41280 EXE_LINKER="$CXX -o"
41281
41282fi
a848cd7e 41283
74b84332 41284GCC_PRAGMA_FLAGS=""
a848cd7e 41285if test $GCC_PCH = 1 ; then
74b84332 41286 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41287else
41288 case "${host}" in
41289 powerpc-*-darwin* )
74b84332 41290 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41291 ;;
bea8e651 41292 *-*-mingw32* )
1f344abf
VS
41293 if test "$wxUSE_STL" = "yes" -o \
41294 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41295 "$wxUSE_NO_RTTI" != "yes"; then
41296 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41297echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41298 cat >conftest.$ac_ext <<_ACEOF
41299/* confdefs.h. */
41300_ACEOF
41301cat confdefs.h >>conftest.$ac_ext
41302cat >>conftest.$ac_ext <<_ACEOF
41303/* end confdefs.h. */
41304
41305int
41306main ()
41307{
1f344abf 41308#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41309 #error "Not GCC 3.2 or greater"
41310 #endif
41311
41312 ;
41313 return 0;
41314}
41315_ACEOF
41316rm -f conftest.$ac_objext
41317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41318 (eval $ac_compile) 2>conftest.er1
bea8e651 41319 ac_status=$?
ac1cb8d3
VS
41320 grep -v '^ *+' conftest.er1 >conftest.err
41321 rm -f conftest.er1
41322 cat conftest.err >&5
bea8e651
MB
41323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41324 (exit $ac_status); } &&
b48a2016
DE
41325 { ac_try='test -z "$ac_c_werror_flag"
41326 || test ! -s conftest.err'
ac1cb8d3
VS
41327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41328 (eval $ac_try) 2>&5
41329 ac_status=$?
41330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41331 (exit $ac_status); }; } &&
41332 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41334 (eval $ac_try) 2>&5
41335 ac_status=$?
41336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41337 (exit $ac_status); }; }; then
74b84332 41338 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41339 echo "$as_me:$LINENO: result: yes" >&5
41340echo "${ECHO_T}yes" >&6
41341else
41342 echo "$as_me: failed program was:" >&5
41343sed 's/^/| /' conftest.$ac_ext >&5
41344
41345echo "$as_me:$LINENO: result: no" >&5
41346echo "${ECHO_T}no" >&6
41347fi
ac1cb8d3 41348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41349 fi
41350 ;;
a848cd7e
SC
41351 esac
41352fi
74b84332 41353CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41354
41355
41356SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41357
41358
41359
41360
41361
41362
41363
41364
41365
41366
41367
41368
41369
41370
41371
41372
41373
41374
41375
41376
41377
41378
41379
41380
41381
41382
41383
41384
41385
41386
41387
41388
41389
41390
41391
41392
41393
41394
41395
41396
41397
41398
a848cd7e
SC
41399
41400
41401
41402
41403
41404
41405
41406
41407
41408
41409
41410
41411
41412
41413
41414
41415
41416
74b84332 41417
a848cd7e
SC
41418
41419
41420echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41421echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41422set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41423if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41424 echo $ECHO_N "(cached) $ECHO_C" >&6
41425else
41426 cat >conftest.make <<\_ACEOF
41427all:
41428 @echo 'ac_maketemp="$(MAKE)"'
41429_ACEOF
41430# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41431eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41432if test -n "$ac_maketemp"; then
41433 eval ac_cv_prog_make_${ac_make}_set=yes
41434else
41435 eval ac_cv_prog_make_${ac_make}_set=no
41436fi
41437rm -f conftest.make
41438fi
41439if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41440 echo "$as_me:$LINENO: result: yes" >&5
41441echo "${ECHO_T}yes" >&6
41442 SET_MAKE=
41443else
41444 echo "$as_me:$LINENO: result: no" >&5
41445echo "${ECHO_T}no" >&6
41446 SET_MAKE="MAKE=${MAKE-make}"
41447fi
41448
41449
a848cd7e 41450
ceec2216
RL
41451 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41452
a848cd7e 41453
ceec2216 41454 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41455
a848cd7e 41456
ceec2216 41457 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41458
ceec2216
RL
41459
41460 ac_config_files="$ac_config_files version-script Makefile"
41461
41462
41463 ac_config_commands="$ac_config_commands wx-config
41464 "
a848cd7e
SC
41465
41466
9103d280
RL
41467
41468
a848cd7e
SC
41469if test "$wxUSE_GUI" = "yes"; then
41470 SUBDIRS="samples demos utils contrib"
41471else SUBDIRS="samples utils"
41472fi
41473
41474
41475
41476# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41477if test "${with_cppunit_prefix+set}" = set; then
41478 withval="$with_cppunit_prefix"
41479 cppunit_config_prefix="$withval"
41480else
41481 cppunit_config_prefix=""
41482fi;
41483
41484# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41485if test "${with_cppunit_exec_prefix+set}" = set; then
41486 withval="$with_cppunit_exec_prefix"
41487 cppunit_config_exec_prefix="$withval"
41488else
41489 cppunit_config_exec_prefix=""
41490fi;
41491
41492 if test x$cppunit_config_exec_prefix != x ; then
41493 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41494 if test x${CPPUNIT_CONFIG+set} != xset ; then
41495 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41496 fi
41497 fi
41498 if test x$cppunit_config_prefix != x ; then
41499 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41500 if test x${CPPUNIT_CONFIG+set} != xset ; then
41501 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41502 fi
41503 fi
41504
41505 # Extract the first word of "cppunit-config", so it can be a program name with args.
41506set dummy cppunit-config; ac_word=$2
41507echo "$as_me:$LINENO: checking for $ac_word" >&5
41508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41509if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41510 echo $ECHO_N "(cached) $ECHO_C" >&6
41511else
41512 case $CPPUNIT_CONFIG in
41513 [\\/]* | ?:[\\/]*)
41514 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41515 ;;
41516 *)
41517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41518for as_dir in $PATH
41519do
41520 IFS=$as_save_IFS
41521 test -z "$as_dir" && as_dir=.
41522 for ac_exec_ext in '' $ac_executable_extensions; do
41523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41524 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41526 break 2
41527 fi
41528done
41529done
41530
41531 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41532 ;;
41533esac
41534fi
41535CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41536
41537if test -n "$CPPUNIT_CONFIG"; then
41538 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41539echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41540else
41541 echo "$as_me:$LINENO: result: no" >&5
41542echo "${ECHO_T}no" >&6
41543fi
41544
41545 cppunit_version_min=1.8.0
41546
41547 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41548echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41549 no_cppunit=""
41550 if test "$CPPUNIT_CONFIG" = "no" ; then
41551 no_cppunit=yes
41552 else
41553 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41554 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41555 cppunit_version=`$CPPUNIT_CONFIG --version`
41556
41557 cppunit_major_version=`echo $cppunit_version | \
41558 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41559 cppunit_minor_version=`echo $cppunit_version | \
41560 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41561 cppunit_micro_version=`echo $cppunit_version | \
41562 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41563
41564 cppunit_major_min=`echo $cppunit_version_min | \
41565 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41566 cppunit_minor_min=`echo $cppunit_version_min | \
41567 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41568 cppunit_micro_min=`echo $cppunit_version_min | \
41569 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41570
41571 cppunit_version_proper=`expr \
41572 $cppunit_major_version \> $cppunit_major_min \| \
41573 $cppunit_major_version \= $cppunit_major_min \& \
41574 $cppunit_minor_version \> $cppunit_minor_min \| \
41575 $cppunit_major_version \= $cppunit_major_min \& \
41576 $cppunit_minor_version \= $cppunit_minor_min \& \
41577 $cppunit_micro_version \>= $cppunit_micro_min `
41578
41579 if test "$cppunit_version_proper" = "1" ; then
41580 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41581echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41582 else
41583 echo "$as_me:$LINENO: result: no" >&5
41584echo "${ECHO_T}no" >&6
41585 no_cppunit=yes
41586 fi
41587 fi
41588
41589 if test "x$no_cppunit" = x ; then
c2218763 41590 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41591 else
41592 CPPUNIT_CFLAGS=""
41593 CPPUNIT_LIBS=""
c2218763 41594 :
a848cd7e
SC
41595 fi
41596
41597
41598
41599
41600
41601for subdir in `echo $SUBDIRS`; do
41602 if test -d ${srcdir}/${subdir} ; then
41603 if test "$wxUSE_GUI" = "yes"; then
41604 if test ${subdir} = "samples"; then
41605 makefiles="samples/Makefile.in $makefiles"
41606 for sample in `echo $SAMPLES_SUBDIRS`; do
41607 if test -d $srcdir/samples/$sample; then
41608 makefiles="samples/$sample/Makefile.in $makefiles"
41609 fi
41610 done
41611 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41612 fi
41613 else if test ${subdir} = "samples"; then
41614 makefiles="samples/Makefile.in samples/console/Makefile.in"
41615 elif test ${subdir} = "utils"; then
6537ccf8
VS
41616 makefiles=""
41617 for util in HelpGen tex2rtf ; do
41618 if test -d $srcdir/utils/$util ; then
41619 makefiles="utils/$util/Makefile.in \
41620 utils/$util/src/Makefile.in \
41621 $makefiles"
41622 fi
41623 done
a848cd7e
SC
41624 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41625 fi
41626 fi
41627
41628 for mkin in $makefiles ; do
41629 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41630 ac_config_files="$ac_config_files $mk"
41631
41632 done
41633 fi
41634done
41635
41636
41637cat >confcache <<\_ACEOF
41638# This file is a shell script that caches the results of configure
41639# tests run on this system so they can be shared between configure
41640# scripts and configure runs, see configure's option --config-cache.
41641# It is not useful on other systems. If it contains results you don't
41642# want to keep, you may remove or edit it.
41643#
41644# config.status only pays attention to the cache file if you give it
41645# the --recheck option to rerun configure.
41646#
41647# `ac_cv_env_foo' variables (set or unset) will be overridden when
41648# loading this file, other *unset* `ac_cv_foo' will be assigned the
41649# following values.
41650
41651_ACEOF
41652
41653# The following way of writing the cache mishandles newlines in values,
41654# but we know of no workaround that is simple, portable, and efficient.
41655# So, don't put newlines in cache variables' values.
41656# Ultrix sh set writes to stderr and can't be redirected directly,
41657# and sets the high bit in the cache file unless we assign to the vars.
41658{
41659 (set) 2>&1 |
41660 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41661 *ac_space=\ *)
41662 # `set' does not quote correctly, so add quotes (double-quote
41663 # substitution turns \\\\ into \\, and sed turns \\ into \).
41664 sed -n \
ac1cb8d3
VS
41665 "s/'/'\\\\''/g;
41666 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41667 ;;
41668 *)
41669 # `set' quotes correctly as required by POSIX, so do not add quotes.
41670 sed -n \
ac1cb8d3 41671 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41672 ;;
41673 esac;
41674} |
41675 sed '
41676 t clear
41677 : clear
41678 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41679 t end
41680 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41681 : end' >>confcache
41682if diff $cache_file confcache >/dev/null 2>&1; then :; else
41683 if test -w $cache_file; then
41684 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41685 cat confcache >$cache_file
41686 else
41687 echo "not updating unwritable cache $cache_file"
41688 fi
41689fi
41690rm -f confcache
41691
41692test "x$prefix" = xNONE && prefix=$ac_default_prefix
41693# Let make expand exec_prefix.
41694test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41695
41696# VPATH may cause trouble with some makes, so we remove $(srcdir),
41697# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41698# trailing colons and then remove the whole line if VPATH becomes empty
41699# (actually we leave an empty line to preserve line numbers).
41700if test "x$srcdir" = x.; then
ac1cb8d3 41701 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41702s/:*\$(srcdir):*/:/;
41703s/:*\${srcdir}:*/:/;
41704s/:*@srcdir@:*/:/;
ac1cb8d3 41705s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41706s/:*$//;
ac1cb8d3 41707s/^[^=]*=[ ]*$//;
a848cd7e
SC
41708}'
41709fi
41710
41711DEFS=-DHAVE_CONFIG_H
41712
41713ac_libobjs=
41714ac_ltlibobjs=
41715for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41716 # 1. Remove the extension, and $U if already installed.
41717 ac_i=`echo "$ac_i" |
ac1cb8d3 41718 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41719 # 2. Add them.
41720 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41721 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41722done
41723LIBOBJS=$ac_libobjs
41724
41725LTLIBOBJS=$ac_ltlibobjs
41726
41727
41728
41729: ${CONFIG_STATUS=./config.status}
41730ac_clean_files_save=$ac_clean_files
41731ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41732{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41733echo "$as_me: creating $CONFIG_STATUS" >&6;}
41734cat >$CONFIG_STATUS <<_ACEOF
41735#! $SHELL
41736# Generated by $as_me.
41737# Run this file to recreate the current configuration.
41738# Compiler output produced by configure, useful for debugging
41739# configure, is in config.log if it exists.
41740
41741debug=false
41742ac_cs_recheck=false
41743ac_cs_silent=false
41744SHELL=\${CONFIG_SHELL-$SHELL}
41745_ACEOF
41746
41747cat >>$CONFIG_STATUS <<\_ACEOF
41748## --------------------- ##
41749## M4sh Initialization. ##
41750## --------------------- ##
41751
41752# Be Bourne compatible
41753if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41754 emulate sh
41755 NULLCMD=:
41756 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41757 # is contrary to our usage. Disable this feature.
41758 alias -g '${1+"$@"}'='"$@"'
41759elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41760 set -o posix
41761fi
ac1cb8d3 41762DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41763
41764# Support unset when possible.
ac1cb8d3 41765if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41766 as_unset=unset
41767else
41768 as_unset=false
41769fi
41770
41771
41772# Work around bugs in pre-3.0 UWIN ksh.
41773$as_unset ENV MAIL MAILPATH
41774PS1='$ '
41775PS2='> '
41776PS4='+ '
41777
41778# NLS nuisances.
41779for as_var in \
41780 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41781 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41782 LC_TELEPHONE LC_TIME
41783do
ac1cb8d3 41784 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41785 eval $as_var=C; export $as_var
41786 else
41787 $as_unset $as_var
41788 fi
41789done
41790
41791# Required to use basename.
41792if expr a : '\(a\)' >/dev/null 2>&1; then
41793 as_expr=expr
41794else
41795 as_expr=false
41796fi
41797
41798if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41799 as_basename=basename
41800else
41801 as_basename=false
41802fi
41803
41804
41805# Name of the executable.
41806as_me=`$as_basename "$0" ||
41807$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41808 X"$0" : 'X\(//\)$' \| \
41809 X"$0" : 'X\(/\)$' \| \
41810 . : '\(.\)' 2>/dev/null ||
41811echo X/"$0" |
41812 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41813 /^X\/\(\/\/\)$/{ s//\1/; q; }
41814 /^X\/\(\/\).*/{ s//\1/; q; }
41815 s/.*/./; q'`
41816
41817
41818# PATH needs CR, and LINENO needs CR and PATH.
41819# Avoid depending upon Character Ranges.
41820as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41821as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41822as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41823as_cr_digits='0123456789'
41824as_cr_alnum=$as_cr_Letters$as_cr_digits
41825
41826# The user is always right.
41827if test "${PATH_SEPARATOR+set}" != set; then
41828 echo "#! /bin/sh" >conf$$.sh
41829 echo "exit 0" >>conf$$.sh
41830 chmod +x conf$$.sh
41831 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41832 PATH_SEPARATOR=';'
41833 else
41834 PATH_SEPARATOR=:
41835 fi
41836 rm -f conf$$.sh
41837fi
41838
41839
41840 as_lineno_1=$LINENO
41841 as_lineno_2=$LINENO
41842 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41843 test "x$as_lineno_1" != "x$as_lineno_2" &&
41844 test "x$as_lineno_3" = "x$as_lineno_2" || {
41845 # Find who we are. Look in the path if we contain no path at all
41846 # relative or not.
41847 case $0 in
41848 *[\\/]* ) as_myself=$0 ;;
41849 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41850for as_dir in $PATH
41851do
41852 IFS=$as_save_IFS
41853 test -z "$as_dir" && as_dir=.
41854 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41855done
41856
41857 ;;
41858 esac
41859 # We did not find ourselves, most probably we were run as `sh COMMAND'
41860 # in which case we are not to be found in the path.
41861 if test "x$as_myself" = x; then
41862 as_myself=$0
41863 fi
41864 if test ! -f "$as_myself"; then
41865 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41866echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41867 { (exit 1); exit 1; }; }
41868 fi
41869 case $CONFIG_SHELL in
41870 '')
41871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41872for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41873do
41874 IFS=$as_save_IFS
41875 test -z "$as_dir" && as_dir=.
41876 for as_base in sh bash ksh sh5; do
41877 case $as_dir in
41878 /*)
41879 if ("$as_dir/$as_base" -c '
41880 as_lineno_1=$LINENO
41881 as_lineno_2=$LINENO
41882 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41883 test "x$as_lineno_1" != "x$as_lineno_2" &&
41884 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41885 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41886 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41887 CONFIG_SHELL=$as_dir/$as_base
41888 export CONFIG_SHELL
41889 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41890 fi;;
41891 esac
41892 done
41893done
41894;;
41895 esac
41896
41897 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41898 # uniformly replaced by the line number. The first 'sed' inserts a
41899 # line-number line before each line; the second 'sed' does the real
41900 # work. The second script uses 'N' to pair each line-number line
41901 # with the numbered line, and appends trailing '-' during
41902 # substitution so that $LINENO is not a special case at line end.
41903 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41904 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41905 sed '=' <$as_myself |
41906 sed '
41907 N
41908 s,$,-,
41909 : loop
41910 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41911 t loop
41912 s,-$,,
41913 s,^['$as_cr_digits']*\n,,
41914 ' >$as_me.lineno &&
41915 chmod +x $as_me.lineno ||
41916 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41917echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41918 { (exit 1); exit 1; }; }
41919
41920 # Don't try to exec as it changes $[0], causing all sort of problems
41921 # (the dirname of $[0] is not the place where we might find the
41922 # original and so on. Autoconf is especially sensible to this).
41923 . ./$as_me.lineno
41924 # Exit status is that of the last command.
41925 exit
41926}
41927
41928
41929case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41930 *c*,-n*) ECHO_N= ECHO_C='
41931' ECHO_T=' ' ;;
41932 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41933 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41934esac
41935
41936if expr a : '\(a\)' >/dev/null 2>&1; then
41937 as_expr=expr
41938else
41939 as_expr=false
41940fi
41941
41942rm -f conf$$ conf$$.exe conf$$.file
41943echo >conf$$.file
41944if ln -s conf$$.file conf$$ 2>/dev/null; then
41945 # We could just check for DJGPP; but this test a) works b) is more generic
41946 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41947 if test -f conf$$.exe; then
41948 # Don't use ln at all; we don't have any links
41949 as_ln_s='cp -p'
41950 else
41951 as_ln_s='ln -s'
41952 fi
41953elif ln conf$$.file conf$$ 2>/dev/null; then
41954 as_ln_s=ln
41955else
41956 as_ln_s='cp -p'
41957fi
41958rm -f conf$$ conf$$.exe conf$$.file
41959
41960if mkdir -p . 2>/dev/null; then
41961 as_mkdir_p=:
41962else
ac1cb8d3 41963 test -d ./-p && rmdir ./-p
a848cd7e
SC
41964 as_mkdir_p=false
41965fi
41966
41967as_executable_p="test -f"
41968
41969# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41970as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41971
41972# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41973as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41974
41975
41976# IFS
41977# We need space, tab and new line, in precisely that order.
41978as_nl='
41979'
41980IFS=" $as_nl"
41981
41982# CDPATH.
41983$as_unset CDPATH
41984
41985exec 6>&1
41986
41987# Open the log real soon, to keep \$[0] and so on meaningful, and to
41988# report actual input values of CONFIG_FILES etc. instead of their
41989# values after options handling. Logging --version etc. is OK.
41990exec 5>>config.log
41991{
41992 echo
41993 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41994## Running $as_me. ##
41995_ASBOX
41996} >&5
41997cat >&5 <<_CSEOF
41998
7714864e 41999This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42000generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42001
42002 CONFIG_FILES = $CONFIG_FILES
42003 CONFIG_HEADERS = $CONFIG_HEADERS
42004 CONFIG_LINKS = $CONFIG_LINKS
42005 CONFIG_COMMANDS = $CONFIG_COMMANDS
42006 $ $0 $@
42007
42008_CSEOF
42009echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42010echo >&5
42011_ACEOF
42012
42013# Files that config.status was made for.
42014if test -n "$ac_config_files"; then
42015 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42016fi
42017
42018if test -n "$ac_config_headers"; then
42019 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42020fi
42021
42022if test -n "$ac_config_links"; then
42023 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42024fi
42025
42026if test -n "$ac_config_commands"; then
42027 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42028fi
42029
42030cat >>$CONFIG_STATUS <<\_ACEOF
42031
42032ac_cs_usage="\
42033\`$as_me' instantiates files from templates according to the
42034current configuration.
42035
42036Usage: $0 [OPTIONS] [FILE]...
42037
42038 -h, --help print this help, then exit
42039 -V, --version print version number, then exit
42040 -q, --quiet do not print progress messages
42041 -d, --debug don't remove temporary files
42042 --recheck update $as_me by reconfiguring in the same conditions
42043 --file=FILE[:TEMPLATE]
ac1cb8d3 42044 instantiate the configuration file FILE
a848cd7e 42045 --header=FILE[:TEMPLATE]
ac1cb8d3 42046 instantiate the configuration header FILE
a848cd7e
SC
42047
42048Configuration files:
42049$config_files
42050
42051Configuration headers:
42052$config_headers
42053
42054Configuration commands:
42055$config_commands
42056
42057Report bugs to <bug-autoconf@gnu.org>."
42058_ACEOF
42059
42060cat >>$CONFIG_STATUS <<_ACEOF
42061ac_cs_version="\\
7714864e 42062wxWidgets config.status 2.5.3
ac1cb8d3 42063configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42064 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42065
ac1cb8d3 42066Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42067This config.status script is free software; the Free Software Foundation
42068gives unlimited permission to copy, distribute and modify it."
42069srcdir=$srcdir
42070INSTALL="$INSTALL"
42071_ACEOF
42072
42073cat >>$CONFIG_STATUS <<\_ACEOF
42074# If no file are specified by the user, then we need to provide default
42075# value. By we need to know if files were specified by the user.
42076ac_need_defaults=:
42077while test $# != 0
42078do
42079 case $1 in
42080 --*=*)
42081 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42082 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42083 ac_shift=:
42084 ;;
42085 -*)
42086 ac_option=$1
42087 ac_optarg=$2
42088 ac_shift=shift
42089 ;;
42090 *) # This is not an option, so the user has probably given explicit
42091 # arguments.
42092 ac_option=$1
42093 ac_need_defaults=false;;
42094 esac
42095
42096 case $ac_option in
42097 # Handling of the options.
42098_ACEOF
42099cat >>$CONFIG_STATUS <<\_ACEOF
42100 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42101 ac_cs_recheck=: ;;
42102 --version | --vers* | -V )
42103 echo "$ac_cs_version"; exit 0 ;;
42104 --he | --h)
42105 # Conflict between --help and --header
42106 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42107Try \`$0 --help' for more information." >&5
42108echo "$as_me: error: ambiguous option: $1
42109Try \`$0 --help' for more information." >&2;}
42110 { (exit 1); exit 1; }; };;
42111 --help | --hel | -h )
42112 echo "$ac_cs_usage"; exit 0 ;;
42113 --debug | --d* | -d )
42114 debug=: ;;
42115 --file | --fil | --fi | --f )
42116 $ac_shift
42117 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42118 ac_need_defaults=false;;
42119 --header | --heade | --head | --hea )
42120 $ac_shift
42121 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42122 ac_need_defaults=false;;
42123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42124 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42125 ac_cs_silent=: ;;
42126
42127 # This is an error.
42128 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42129Try \`$0 --help' for more information." >&5
42130echo "$as_me: error: unrecognized option: $1
42131Try \`$0 --help' for more information." >&2;}
42132 { (exit 1); exit 1; }; } ;;
42133
42134 *) ac_config_targets="$ac_config_targets $1" ;;
42135
42136 esac
42137 shift
42138done
42139
42140ac_configure_extra_args=
42141
42142if $ac_cs_silent; then
42143 exec 6>/dev/null
42144 ac_configure_extra_args="$ac_configure_extra_args --silent"
42145fi
42146
42147_ACEOF
42148cat >>$CONFIG_STATUS <<_ACEOF
42149if \$ac_cs_recheck; then
42150 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42151 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42152fi
42153
42154_ACEOF
42155
42156cat >>$CONFIG_STATUS <<_ACEOF
42157#
42158# INIT-COMMANDS section.
42159#
42160
ceec2216
RL
42161 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42162 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42163 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42164 LN_S="${LN_S}"
a848cd7e
SC
42165
42166
42167_ACEOF
42168
42169
42170
42171cat >>$CONFIG_STATUS <<\_ACEOF
42172for ac_config_target in $ac_config_targets
42173do
42174 case "$ac_config_target" in
42175 # Handling of arguments.
ceec2216
RL
42176 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42177 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42178 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42179 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42180 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42181 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42182 "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
42183 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42184echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42185 { (exit 1); exit 1; }; };;
42186 esac
42187done
42188
42189# If the user did not use the arguments to specify the items to instantiate,
42190# then the envvar interface is used. Set only those that are not.
42191# We use the long form for the default assignment because of an extremely
42192# bizarre bug on SunOS 4.1.3.
42193if $ac_need_defaults; then
42194 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42195 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42196 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42197fi
42198
42199# Have a temporary directory for convenience. Make it in the build tree
42200# simply because there is no reason to put it here, and in addition,
42201# creating and moving files from /tmp can sometimes cause problems.
42202# Create a temporary directory, and hook for its removal unless debugging.
42203$debug ||
42204{
42205 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42206 trap '{ (exit 1); exit 1; }' 1 2 13 15
42207}
42208
42209# Create a (secure) tmp directory for tmp files.
42210
42211{
42212 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42213 test -n "$tmp" && test -d "$tmp"
42214} ||
42215{
42216 tmp=./confstat$$-$RANDOM
42217 (umask 077 && mkdir $tmp)
42218} ||
42219{
42220 echo "$me: cannot create a temporary directory in ." >&2
42221 { (exit 1); exit 1; }
42222}
42223
42224_ACEOF
42225
42226cat >>$CONFIG_STATUS <<_ACEOF
42227
42228#
42229# CONFIG_FILES section.
42230#
42231
42232# No need to generate the scripts if there are no CONFIG_FILES.
42233# This happens for instance when ./config.status config.h
42234if test -n "\$CONFIG_FILES"; then
42235 # Protect against being on the right side of a sed subst in config.status.
42236 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42237 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42238s,@SHELL@,$SHELL,;t t
42239s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42240s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42241s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42242s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42243s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42244s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42245s,@exec_prefix@,$exec_prefix,;t t
42246s,@prefix@,$prefix,;t t
42247s,@program_transform_name@,$program_transform_name,;t t
42248s,@bindir@,$bindir,;t t
42249s,@sbindir@,$sbindir,;t t
42250s,@libexecdir@,$libexecdir,;t t
42251s,@datadir@,$datadir,;t t
42252s,@sysconfdir@,$sysconfdir,;t t
42253s,@sharedstatedir@,$sharedstatedir,;t t
42254s,@localstatedir@,$localstatedir,;t t
42255s,@libdir@,$libdir,;t t
42256s,@includedir@,$includedir,;t t
42257s,@oldincludedir@,$oldincludedir,;t t
42258s,@infodir@,$infodir,;t t
42259s,@mandir@,$mandir,;t t
42260s,@build_alias@,$build_alias,;t t
42261s,@host_alias@,$host_alias,;t t
42262s,@target_alias@,$target_alias,;t t
42263s,@DEFS@,$DEFS,;t t
42264s,@ECHO_C@,$ECHO_C,;t t
42265s,@ECHO_N@,$ECHO_N,;t t
42266s,@ECHO_T@,$ECHO_T,;t t
42267s,@LIBS@,$LIBS,;t t
42268s,@build@,$build,;t t
42269s,@build_cpu@,$build_cpu,;t t
42270s,@build_vendor@,$build_vendor,;t t
42271s,@build_os@,$build_os,;t t
42272s,@host@,$host,;t t
42273s,@host_cpu@,$host_cpu,;t t
42274s,@host_vendor@,$host_vendor,;t t
42275s,@host_os@,$host_os,;t t
42276s,@target@,$target,;t t
42277s,@target_cpu@,$target_cpu,;t t
42278s,@target_vendor@,$target_vendor,;t t
42279s,@target_os@,$target_os,;t t
42280s,@CC@,$CC,;t t
42281s,@CFLAGS@,$CFLAGS,;t t
42282s,@LDFLAGS@,$LDFLAGS,;t t
42283s,@CPPFLAGS@,$CPPFLAGS,;t t
42284s,@ac_ct_CC@,$ac_ct_CC,;t t
42285s,@EXEEXT@,$EXEEXT,;t t
42286s,@OBJEXT@,$OBJEXT,;t t
42287s,@CPP@,$CPP,;t t
42288s,@EGREP@,$EGREP,;t t
42289s,@CXX@,$CXX,;t t
42290s,@CXXFLAGS@,$CXXFLAGS,;t t
42291s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42292s,@RANLIB@,$RANLIB,;t t
42293s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42294s,@AR@,$AR,;t t
42295s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42296s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42297s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42298s,@STRIP@,$STRIP,;t t
42299s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42300s,@LN_S@,$LN_S,;t t
42301s,@CXXCPP@,$CXXCPP,;t t
42302s,@subdirs@,$subdirs,;t t
42303s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42304s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42305s,@GTK_LIBS@,$GTK_LIBS,;t t
42306s,@GTK_CONFIG@,$GTK_CONFIG,;t t
42307s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42308s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
42309s,@X_CFLAGS@,$X_CFLAGS,;t t
42310s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42311s,@X_LIBS@,$X_LIBS,;t t
42312s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42313s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42314s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
42315s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42316s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42317s,@RESCOMP@,$RESCOMP,;t t
42318s,@DEREZ@,$DEREZ,;t t
42319s,@SETFILE@,$SETFILE,;t t
42320s,@LIBICONV@,$LIBICONV,;t t
42321s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42322s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42323s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42324s,@SDL_LIBS@,$SDL_LIBS,;t t
42325s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42326s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42327s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42328s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42329s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42330s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42331s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42332s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42333s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42334s,@VENDOR@,$VENDOR,;t t
42335s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42336s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42337s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42338s,@WXUNIV@,$WXUNIV,;t t
42339s,@MONOLITHIC@,$MONOLITHIC,;t t
42340s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42341s,@EXTRALIBS@,$EXTRALIBS,;t t
42342s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42343s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42344s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42345s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42346s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42347s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42348s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42349s,@UNICODE@,$UNICODE,;t t
42350s,@BUILD@,$BUILD,;t t
42351s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42352s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42353s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42354s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42355s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42356s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42357s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42358s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42359s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42360s,@SET_MAKE@,$SET_MAKE,;t t
42361s,@MAKE_SET@,$MAKE_SET,;t t
42362s,@ac_ct_AR@,$ac_ct_AR,;t t
42363s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42364s,@NM@,$NM,;t t
42365s,@ac_ct_NM@,$ac_ct_NM,;t t
42366s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42367s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42368s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42369s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42370s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42371s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42372s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42373s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42374s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42375s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42376s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42377s,@LIBPREFIX@,$LIBPREFIX,;t t
42378s,@LIBEXT@,$LIBEXT,;t t
42379s,@DLLPREFIX@,$DLLPREFIX,;t t
42380s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42381s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42382s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42383s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42384s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42385s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42386s,@PIC_FLAG@,$PIC_FLAG,;t t
42387s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42388s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42389s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42390s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42391s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42392s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42393s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42394s,@GCC_PCH@,$GCC_PCH,;t t
42395s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42396s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42397s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42398s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42399s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42400s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42401s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42402s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42403s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42404s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42405s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42406s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42407s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42408s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42409s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42410s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42411s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42412s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42413s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42414s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42415s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42416s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42417s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42418s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42419s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42420s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42421s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42422s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42423s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42424s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42425s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42426s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42427s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42428s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42429s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42430s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42431s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42432s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42433s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42434s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42435s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42436s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42437s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42438s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42439s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42440s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42441s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42442s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42443s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42444s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42445s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42446s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42447s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42448s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42449s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42450s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42451s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42452s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42453s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42454s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42455s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42456s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42457s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42458s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42459s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42460s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42461s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42462s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42463s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42464s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42465s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42466s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42467s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42468s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42469s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42470s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42471s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42472s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42473s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42474s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42475s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42476s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42477s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42478s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42479s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42480s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42481s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42482s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42483s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42484s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42485s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42486s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42487s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42488s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42489s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42490s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42491s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42492s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42493s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42494s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42495s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42496s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42497s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42498s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42499s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42500s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42501s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42502s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42503s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42504s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42505s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42506s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42507s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42508s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42509s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42510s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42511s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42512s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42513s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42514s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
42515s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42516s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42517s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 42518s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42519s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42520s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42521s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42522s,@USE_GUI@,$USE_GUI,;t t
42523s,@AFMINSTALL@,$AFMINSTALL,;t t
42524s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42525s,@TOOLKIT@,$TOOLKIT,;t t
42526s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42527s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42528s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42529s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42530s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42531s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42532s,@WIDGET_SET@,$WIDGET_SET,;t t
42533s,@WX_RELEASE@,$WX_RELEASE,;t t
42534s,@WX_VERSION@,$WX_VERSION,;t t
42535s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42536s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42537s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42538s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42539s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42540s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42541s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42542s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42543s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42544s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42545s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42546s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42547s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42548s,@DISTDIR@,$DISTDIR,;t t
42549s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42550s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42551s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42552s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42553s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42554s,@RESFLAGS@,$RESFLAGS,;t t
42555s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42556s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42557s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42558s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42559s,@MACRESCOMP@,$MACRESCOMP,;t t
42560s,@MACSETFILE@,$MACSETFILE,;t t
42561s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42562s,@GCC@,$GCC,;t t
a848cd7e 42563s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42564s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42565s,@LIBOBJS@,$LIBOBJS,;t t
42566s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42567CEOF
42568
42569_ACEOF
42570
42571 cat >>$CONFIG_STATUS <<\_ACEOF
42572 # Split the substitutions into bite-sized pieces for seds with
42573 # small command number limits, like on Digital OSF/1 and HP-UX.
42574 ac_max_sed_lines=48
42575 ac_sed_frag=1 # Number of current file.
42576 ac_beg=1 # First line for current file.
42577 ac_end=$ac_max_sed_lines # Line after last line for current file.
42578 ac_more_lines=:
42579 ac_sed_cmds=
42580 while $ac_more_lines; do
42581 if test $ac_beg -gt 1; then
42582 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42583 else
42584 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42585 fi
42586 if test ! -s $tmp/subs.frag; then
42587 ac_more_lines=false
42588 else
42589 # The purpose of the label and of the branching condition is to
42590 # speed up the sed processing (if there are no `@' at all, there
42591 # is no need to browse any of the substitutions).
42592 # These are the two extra sed commands mentioned above.
42593 (echo ':t
42594 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42595 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42596 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42597 else
ac1cb8d3 42598 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42599 fi
42600 ac_sed_frag=`expr $ac_sed_frag + 1`
42601 ac_beg=$ac_end
42602 ac_end=`expr $ac_end + $ac_max_sed_lines`
42603 fi
42604 done
42605 if test -z "$ac_sed_cmds"; then
42606 ac_sed_cmds=cat
42607 fi
42608fi # test -n "$CONFIG_FILES"
42609
42610_ACEOF
42611cat >>$CONFIG_STATUS <<\_ACEOF
42612for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42613 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42614 case $ac_file in
42615 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42616 cat >$tmp/stdin
42617 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42618 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42619 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42620 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42621 * ) ac_file_in=$ac_file.in ;;
42622 esac
42623
42624 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42625 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42626$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42627 X"$ac_file" : 'X\(//\)[^/]' \| \
42628 X"$ac_file" : 'X\(//\)$' \| \
42629 X"$ac_file" : 'X\(/\)' \| \
42630 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42631echo X"$ac_file" |
42632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42634 /^X\(\/\/\)$/{ s//\1/; q; }
42635 /^X\(\/\).*/{ s//\1/; q; }
42636 s/.*/./; q'`
42637 { if $as_mkdir_p; then
42638 mkdir -p "$ac_dir"
42639 else
42640 as_dir="$ac_dir"
42641 as_dirs=
42642 while test ! -d "$as_dir"; do
42643 as_dirs="$as_dir $as_dirs"
42644 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42645$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42646 X"$as_dir" : 'X\(//\)[^/]' \| \
42647 X"$as_dir" : 'X\(//\)$' \| \
42648 X"$as_dir" : 'X\(/\)' \| \
42649 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42650echo X"$as_dir" |
42651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42653 /^X\(\/\/\)$/{ s//\1/; q; }
42654 /^X\(\/\).*/{ s//\1/; q; }
42655 s/.*/./; q'`
42656 done
42657 test ! -n "$as_dirs" || mkdir $as_dirs
42658 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42659echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42660 { (exit 1); exit 1; }; }; }
42661
42662 ac_builddir=.
42663
42664if test "$ac_dir" != .; then
42665 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42666 # A "../" for each directory in $ac_dir_suffix.
42667 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42668else
42669 ac_dir_suffix= ac_top_builddir=
42670fi
42671
42672case $srcdir in
42673 .) # No --srcdir option. We are building in place.
42674 ac_srcdir=.
42675 if test -z "$ac_top_builddir"; then
42676 ac_top_srcdir=.
42677 else
42678 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42679 fi ;;
42680 [\\/]* | ?:[\\/]* ) # Absolute path.
42681 ac_srcdir=$srcdir$ac_dir_suffix;
42682 ac_top_srcdir=$srcdir ;;
42683 *) # Relative path.
42684 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42685 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42686esac
ac1cb8d3
VS
42687
42688# Do not use `cd foo && pwd` to compute absolute paths, because
42689# the directories may not exist.
42690case `pwd` in
42691.) ac_abs_builddir="$ac_dir";;
42692*)
42693 case "$ac_dir" in
42694 .) ac_abs_builddir=`pwd`;;
42695 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42696 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42697 esac;;
42698esac
42699case $ac_abs_builddir in
42700.) ac_abs_top_builddir=${ac_top_builddir}.;;
42701*)
42702 case ${ac_top_builddir}. in
42703 .) ac_abs_top_builddir=$ac_abs_builddir;;
42704 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42705 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42706 esac;;
42707esac
42708case $ac_abs_builddir in
42709.) ac_abs_srcdir=$ac_srcdir;;
42710*)
42711 case $ac_srcdir in
42712 .) ac_abs_srcdir=$ac_abs_builddir;;
42713 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42714 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42715 esac;;
42716esac
42717case $ac_abs_builddir in
42718.) ac_abs_top_srcdir=$ac_top_srcdir;;
42719*)
42720 case $ac_top_srcdir in
42721 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42722 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42723 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42724 esac;;
42725esac
a848cd7e
SC
42726
42727
42728 case $INSTALL in
42729 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42730 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42731 esac
42732
b48a2016
DE
42733 if test x"$ac_file" != x-; then
42734 { echo "$as_me:$LINENO: creating $ac_file" >&5
42735echo "$as_me: creating $ac_file" >&6;}
42736 rm -f "$ac_file"
42737 fi
a848cd7e
SC
42738 # Let's still pretend it is `configure' which instantiates (i.e., don't
42739 # use $as_me), people would be surprised to read:
42740 # /* config.h. Generated by config.status. */
42741 if test x"$ac_file" = x-; then
42742 configure_input=
42743 else
42744 configure_input="$ac_file. "
42745 fi
42746 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42747 sed 's,.*/,,'` by configure."
a848cd7e
SC
42748
42749 # First look for the input files in the build tree, otherwise in the
42750 # src tree.
42751 ac_file_inputs=`IFS=:
42752 for f in $ac_file_in; do
42753 case $f in
42754 -) echo $tmp/stdin ;;
42755 [\\/$]*)
ac1cb8d3
VS
42756 # Absolute (can't be DOS-style, as IFS=:)
42757 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42758echo "$as_me: error: cannot find input file: $f" >&2;}
42759 { (exit 1); exit 1; }; }
ac1cb8d3 42760 echo "$f";;
a848cd7e 42761 *) # Relative
ac1cb8d3
VS
42762 if test -f "$f"; then
42763 # Build tree
42764 echo "$f"
42765 elif test -f "$srcdir/$f"; then
42766 # Source tree
42767 echo "$srcdir/$f"
42768 else
42769 # /dev/null tree
42770 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42771echo "$as_me: error: cannot find input file: $f" >&2;}
42772 { (exit 1); exit 1; }; }
ac1cb8d3 42773 fi;;
a848cd7e
SC
42774 esac
42775 done` || { (exit 1); exit 1; }
42776_ACEOF
42777cat >>$CONFIG_STATUS <<_ACEOF
42778 sed "$ac_vpsub
42779$extrasub
42780_ACEOF
42781cat >>$CONFIG_STATUS <<\_ACEOF
42782:t
42783/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42784s,@configure_input@,$configure_input,;t t
42785s,@srcdir@,$ac_srcdir,;t t
42786s,@abs_srcdir@,$ac_abs_srcdir,;t t
42787s,@top_srcdir@,$ac_top_srcdir,;t t
42788s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42789s,@builddir@,$ac_builddir,;t t
42790s,@abs_builddir@,$ac_abs_builddir,;t t
42791s,@top_builddir@,$ac_top_builddir,;t t
42792s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42793s,@INSTALL@,$ac_INSTALL,;t t
42794" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42795 rm -f $tmp/stdin
42796 if test x"$ac_file" != x-; then
42797 mv $tmp/out $ac_file
42798 else
42799 cat $tmp/out
42800 rm -f $tmp/out
42801 fi
42802
ceec2216
RL
42803 # Run the commands associated with the file.
42804 case $ac_file in
42805 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42806 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42807 esac
a848cd7e
SC
42808done
42809_ACEOF
42810cat >>$CONFIG_STATUS <<\_ACEOF
42811
42812#
42813# CONFIG_HEADER section.
42814#
42815
42816# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42817# NAME is the cpp macro being defined and VALUE is the value it is being given.
42818#
42819# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42820ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42821ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42822ac_dC=' '
42823ac_dD=',;t'
42824# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42825ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42826ac_uB='$,\1#\2define\3'
42827ac_uC=' '
42828ac_uD=',;t'
42829
42830for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42831 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42832 case $ac_file in
42833 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42834 cat >$tmp/stdin
42835 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42836 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42837 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42838 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42839 * ) ac_file_in=$ac_file.in ;;
42840 esac
42841
42842 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42843echo "$as_me: creating $ac_file" >&6;}
42844
42845 # First look for the input files in the build tree, otherwise in the
42846 # src tree.
42847 ac_file_inputs=`IFS=:
42848 for f in $ac_file_in; do
42849 case $f in
42850 -) echo $tmp/stdin ;;
42851 [\\/$]*)
ac1cb8d3
VS
42852 # Absolute (can't be DOS-style, as IFS=:)
42853 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42854echo "$as_me: error: cannot find input file: $f" >&2;}
42855 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42856 # Do quote $f, to prevent DOS paths from being IFS'd.
42857 echo "$f";;
a848cd7e 42858 *) # Relative
ac1cb8d3
VS
42859 if test -f "$f"; then
42860 # Build tree
42861 echo "$f"
42862 elif test -f "$srcdir/$f"; then
42863 # Source tree
42864 echo "$srcdir/$f"
42865 else
42866 # /dev/null tree
42867 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42868echo "$as_me: error: cannot find input file: $f" >&2;}
42869 { (exit 1); exit 1; }; }
ac1cb8d3 42870 fi;;
a848cd7e
SC
42871 esac
42872 done` || { (exit 1); exit 1; }
42873 # Remove the trailing spaces.
ac1cb8d3 42874 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42875
42876_ACEOF
42877
42878# Transform confdefs.h into two sed scripts, `conftest.defines' and
42879# `conftest.undefs', that substitutes the proper values into
42880# config.h.in to produce config.h. The first handles `#define'
42881# templates, and the second `#undef' templates.
42882# And first: Protect against being on the right side of a sed subst in
42883# config.status. Protect against being in an unquoted here document
42884# in config.status.
42885rm -f conftest.defines conftest.undefs
42886# Using a here document instead of a string reduces the quoting nightmare.
42887# Putting comments in sed scripts is not portable.
42888#
42889# `end' is used to avoid that the second main sed command (meant for
42890# 0-ary CPP macros) applies to n-ary macro definitions.
42891# See the Autoconf documentation for `clear'.
42892cat >confdef2sed.sed <<\_ACEOF
42893s/[\\&,]/\\&/g
42894s,[\\$`],\\&,g
42895t clear
42896: clear
ac1cb8d3 42897s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42898t end
ac1cb8d3 42899s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42900: end
42901_ACEOF
42902# If some macros were called several times there might be several times
42903# the same #defines, which is useless. Nevertheless, we may not want to
42904# sort them, since we want the *last* AC-DEFINE to be honored.
42905uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42906sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42907rm -f confdef2sed.sed
42908
42909# This sed command replaces #undef with comments. This is necessary, for
42910# example, in the case of _POSIX_SOURCE, which is predefined and required
42911# on some systems where configure will not decide to define it.
42912cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42913s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42914_ACEOF
42915
42916# Break up conftest.defines because some shells have a limit on the size
42917# of here documents, and old seds have small limits too (100 cmds).
42918echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42919echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42920echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42921echo ' :' >>$CONFIG_STATUS
42922rm -f conftest.tail
42923while grep . conftest.defines >/dev/null
42924do
42925 # Write a limited-size here document to $tmp/defines.sed.
42926 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42927 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42928 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42929 # Work around the forget-to-reset-the-flag bug.
42930 echo 't clr' >>$CONFIG_STATUS
42931 echo ': clr' >>$CONFIG_STATUS
42932 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42933 echo 'CEOF
42934 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42935 rm -f $tmp/in
42936 mv $tmp/out $tmp/in
42937' >>$CONFIG_STATUS
42938 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42939 rm -f conftest.defines
42940 mv conftest.tail conftest.defines
42941done
42942rm -f conftest.defines
42943echo ' fi # grep' >>$CONFIG_STATUS
42944echo >>$CONFIG_STATUS
42945
42946# Break up conftest.undefs because some shells have a limit on the size
42947# of here documents, and old seds have small limits too (100 cmds).
42948echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42949rm -f conftest.tail
42950while grep . conftest.undefs >/dev/null
42951do
42952 # Write a limited-size here document to $tmp/undefs.sed.
42953 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42954 # Speed up: don't consider the non `#undef'
ac1cb8d3 42955 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42956 # Work around the forget-to-reset-the-flag bug.
42957 echo 't clr' >>$CONFIG_STATUS
42958 echo ': clr' >>$CONFIG_STATUS
42959 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42960 echo 'CEOF
42961 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42962 rm -f $tmp/in
42963 mv $tmp/out $tmp/in
42964' >>$CONFIG_STATUS
42965 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42966 rm -f conftest.undefs
42967 mv conftest.tail conftest.undefs
42968done
42969rm -f conftest.undefs
42970
42971cat >>$CONFIG_STATUS <<\_ACEOF
42972 # Let's still pretend it is `configure' which instantiates (i.e., don't
42973 # use $as_me), people would be surprised to read:
42974 # /* config.h. Generated by config.status. */
42975 if test x"$ac_file" = x-; then
42976 echo "/* Generated by configure. */" >$tmp/config.h
42977 else
42978 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42979 fi
42980 cat $tmp/in >>$tmp/config.h
42981 rm -f $tmp/in
42982 if test x"$ac_file" != x-; then
42983 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42984 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42985echo "$as_me: $ac_file is unchanged" >&6;}
42986 else
42987 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42988$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42989 X"$ac_file" : 'X\(//\)[^/]' \| \
42990 X"$ac_file" : 'X\(//\)$' \| \
42991 X"$ac_file" : 'X\(/\)' \| \
42992 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42993echo X"$ac_file" |
42994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42996 /^X\(\/\/\)$/{ s//\1/; q; }
42997 /^X\(\/\).*/{ s//\1/; q; }
42998 s/.*/./; q'`
42999 { if $as_mkdir_p; then
43000 mkdir -p "$ac_dir"
43001 else
43002 as_dir="$ac_dir"
43003 as_dirs=
43004 while test ! -d "$as_dir"; do
43005 as_dirs="$as_dir $as_dirs"
43006 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43007$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43008 X"$as_dir" : 'X\(//\)[^/]' \| \
43009 X"$as_dir" : 'X\(//\)$' \| \
43010 X"$as_dir" : 'X\(/\)' \| \
43011 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43012echo X"$as_dir" |
43013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43014 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43015 /^X\(\/\/\)$/{ s//\1/; q; }
43016 /^X\(\/\).*/{ s//\1/; q; }
43017 s/.*/./; q'`
43018 done
43019 test ! -n "$as_dirs" || mkdir $as_dirs
43020 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43021echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43022 { (exit 1); exit 1; }; }; }
43023
43024 rm -f $ac_file
43025 mv $tmp/config.h $ac_file
43026 fi
43027 else
43028 cat $tmp/config.h
43029 rm -f $tmp/config.h
43030 fi
43031done
43032_ACEOF
43033cat >>$CONFIG_STATUS <<\_ACEOF
43034
43035#
43036# CONFIG_COMMANDS section.
43037#
43038for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43039 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43040 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43041 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43042$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43043 X"$ac_dest" : 'X\(//\)[^/]' \| \
43044 X"$ac_dest" : 'X\(//\)$' \| \
43045 X"$ac_dest" : 'X\(/\)' \| \
43046 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43047echo X"$ac_dest" |
43048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43049 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43050 /^X\(\/\/\)$/{ s//\1/; q; }
43051 /^X\(\/\).*/{ s//\1/; q; }
43052 s/.*/./; q'`
ac1cb8d3
VS
43053 { if $as_mkdir_p; then
43054 mkdir -p "$ac_dir"
43055 else
43056 as_dir="$ac_dir"
43057 as_dirs=
43058 while test ! -d "$as_dir"; do
43059 as_dirs="$as_dir $as_dirs"
43060 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43062 X"$as_dir" : 'X\(//\)[^/]' \| \
43063 X"$as_dir" : 'X\(//\)$' \| \
43064 X"$as_dir" : 'X\(/\)' \| \
43065 . : '\(.\)' 2>/dev/null ||
43066echo X"$as_dir" |
43067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43069 /^X\(\/\/\)$/{ s//\1/; q; }
43070 /^X\(\/\).*/{ s//\1/; q; }
43071 s/.*/./; q'`
43072 done
43073 test ! -n "$as_dirs" || mkdir $as_dirs
43074 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43075echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43076 { (exit 1); exit 1; }; }; }
43077
a848cd7e
SC
43078 ac_builddir=.
43079
43080if test "$ac_dir" != .; then
43081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43082 # A "../" for each directory in $ac_dir_suffix.
43083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43084else
43085 ac_dir_suffix= ac_top_builddir=
43086fi
43087
43088case $srcdir in
43089 .) # No --srcdir option. We are building in place.
43090 ac_srcdir=.
43091 if test -z "$ac_top_builddir"; then
43092 ac_top_srcdir=.
43093 else
43094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43095 fi ;;
43096 [\\/]* | ?:[\\/]* ) # Absolute path.
43097 ac_srcdir=$srcdir$ac_dir_suffix;
43098 ac_top_srcdir=$srcdir ;;
43099 *) # Relative path.
43100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43102esac
ac1cb8d3
VS
43103
43104# Do not use `cd foo && pwd` to compute absolute paths, because
43105# the directories may not exist.
43106case `pwd` in
43107.) ac_abs_builddir="$ac_dir";;
43108*)
43109 case "$ac_dir" in
43110 .) ac_abs_builddir=`pwd`;;
43111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43113 esac;;
43114esac
43115case $ac_abs_builddir in
43116.) ac_abs_top_builddir=${ac_top_builddir}.;;
43117*)
43118 case ${ac_top_builddir}. in
43119 .) ac_abs_top_builddir=$ac_abs_builddir;;
43120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43122 esac;;
43123esac
43124case $ac_abs_builddir in
43125.) ac_abs_srcdir=$ac_srcdir;;
43126*)
43127 case $ac_srcdir in
43128 .) ac_abs_srcdir=$ac_abs_builddir;;
43129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43131 esac;;
43132esac
43133case $ac_abs_builddir in
43134.) ac_abs_top_srcdir=$ac_top_srcdir;;
43135*)
43136 case $ac_top_srcdir in
43137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43140 esac;;
43141esac
a848cd7e
SC
43142
43143
43144 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43145echo "$as_me: executing $ac_dest commands" >&6;}
43146 case $ac_dest in
ceec2216
RL
43147 wx-config ) rm -f wx-config
43148 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43149 ;;
a848cd7e
SC
43150 esac
43151done
43152_ACEOF
43153
43154cat >>$CONFIG_STATUS <<\_ACEOF
43155
43156{ (exit 0); exit 0; }
43157_ACEOF
43158chmod +x $CONFIG_STATUS
43159ac_clean_files=$ac_clean_files_save
43160
43161
43162# configure is writing to config.log, and then calls config.status.
43163# config.status does its own redirection, appending to config.log.
43164# Unfortunately, on DOS this fails, as config.log is still kept open
43165# by configure, so config.status won't be able to write to it; its
43166# output is simply discarded. So we exec the FD to /dev/null,
43167# effectively closing config.log, so it can be properly (re)opened and
43168# appended to by config.status. When coming back to configure, we
43169# need to make the FD available again.
43170if test "$no_create" != yes; then
43171 ac_cs_success=:
43172 ac_config_status_args=
43173 test "$silent" = yes &&
43174 ac_config_status_args="$ac_config_status_args --quiet"
43175 exec 5>/dev/null
43176 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43177 exec 5>>config.log
43178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43179 # would make configure fail if this is the last instruction.
43180 $ac_cs_success || { (exit 1); exit 1; }
43181fi
43182
43183#
43184# CONFIG_SUBDIRS section.
43185#
43186if test "$no_recursion" != yes; then
43187
43188 # Remove --cache-file and --srcdir arguments so they do not pile up.
43189 ac_sub_configure_args=
43190 ac_prev=
43191 for ac_arg in $ac_configure_args; do
43192 if test -n "$ac_prev"; then
43193 ac_prev=
43194 continue
43195 fi
43196 case $ac_arg in
43197 -cache-file | --cache-file | --cache-fil | --cache-fi \
43198 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43199 ac_prev=cache_file ;;
43200 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43201 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43202 | --c=*)
43203 ;;
43204 --config-cache | -C)
43205 ;;
43206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43207 ac_prev=srcdir ;;
43208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43209 ;;
43210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43211 ac_prev=prefix ;;
43212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43213 ;;
43214 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43215 esac
43216 done
43217
43218 # Always prepend --prefix to ensure using the same prefix
43219 # in subdir configurations.
43220 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43221
43222 ac_popdir=`pwd`
43223 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43224
43225 # Do not complain, so a configure script can configure whichever
43226 # parts of a large source tree are present.
43227 test -d $srcdir/$ac_dir || continue
43228
43229 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43230echo "$as_me: configuring in $ac_dir" >&6;}
43231 { if $as_mkdir_p; then
43232 mkdir -p "$ac_dir"
43233 else
43234 as_dir="$ac_dir"
43235 as_dirs=
43236 while test ! -d "$as_dir"; do
43237 as_dirs="$as_dir $as_dirs"
43238 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43239$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43240 X"$as_dir" : 'X\(//\)[^/]' \| \
43241 X"$as_dir" : 'X\(//\)$' \| \
43242 X"$as_dir" : 'X\(/\)' \| \
43243 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43244echo X"$as_dir" |
43245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43247 /^X\(\/\/\)$/{ s//\1/; q; }
43248 /^X\(\/\).*/{ s//\1/; q; }
43249 s/.*/./; q'`
43250 done
43251 test ! -n "$as_dirs" || mkdir $as_dirs
43252 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43253echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43254 { (exit 1); exit 1; }; }; }
43255
43256 ac_builddir=.
43257
43258if test "$ac_dir" != .; then
43259 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43260 # A "../" for each directory in $ac_dir_suffix.
43261 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43262else
43263 ac_dir_suffix= ac_top_builddir=
43264fi
43265
43266case $srcdir in
43267 .) # No --srcdir option. We are building in place.
43268 ac_srcdir=.
43269 if test -z "$ac_top_builddir"; then
43270 ac_top_srcdir=.
43271 else
43272 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43273 fi ;;
43274 [\\/]* | ?:[\\/]* ) # Absolute path.
43275 ac_srcdir=$srcdir$ac_dir_suffix;
43276 ac_top_srcdir=$srcdir ;;
43277 *) # Relative path.
43278 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43279 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43280esac
ac1cb8d3
VS
43281
43282# Do not use `cd foo && pwd` to compute absolute paths, because
43283# the directories may not exist.
43284case `pwd` in
43285.) ac_abs_builddir="$ac_dir";;
43286*)
43287 case "$ac_dir" in
43288 .) ac_abs_builddir=`pwd`;;
43289 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43290 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43291 esac;;
43292esac
43293case $ac_abs_builddir in
43294.) ac_abs_top_builddir=${ac_top_builddir}.;;
43295*)
43296 case ${ac_top_builddir}. in
43297 .) ac_abs_top_builddir=$ac_abs_builddir;;
43298 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43299 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43300 esac;;
43301esac
43302case $ac_abs_builddir in
43303.) ac_abs_srcdir=$ac_srcdir;;
43304*)
43305 case $ac_srcdir in
43306 .) ac_abs_srcdir=$ac_abs_builddir;;
43307 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43308 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43309 esac;;
43310esac
43311case $ac_abs_builddir in
43312.) ac_abs_top_srcdir=$ac_top_srcdir;;
43313*)
43314 case $ac_top_srcdir in
43315 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43316 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43317 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43318 esac;;
43319esac
a848cd7e
SC
43320
43321
43322 cd $ac_dir
43323
43324 # Check for guested configure; otherwise get Cygnus style configure.
43325 if test -f $ac_srcdir/configure.gnu; then
43326 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43327 elif test -f $ac_srcdir/configure; then
43328 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43329 elif test -f $ac_srcdir/configure.in; then
43330 ac_sub_configure=$ac_configure
43331 else
43332 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43333echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43334 ac_sub_configure=
43335 fi
43336
43337 # The recursion is here.
43338 if test -n "$ac_sub_configure"; then
43339 # Make the cache file name correct relative to the subdirectory.
43340 case $cache_file in
43341 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43342 *) # Relative path.
ac1cb8d3 43343 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43344 esac
43345
43346 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43347echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43348 # The eval makes quoting arguments work.
43349 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43350 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43351 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43352echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43353 { (exit 1); exit 1; }; }
43354 fi
43355
b48a2016 43356 cd $ac_popdir
a848cd7e
SC
43357 done
43358fi
43359
43360
43361echo
77ffb593 43362echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43363echo ""
4d4ff94c 43364echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43365echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43366
77ffb593
JS
43367echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43368echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43369echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43370
77ffb593
JS
43371echo " What level of wxWidgets compatibility should be enabled?"
43372echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43373echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43374
77ffb593 43375echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43376echo " jpeg ${wxUSE_LIBJPEG-none}"
43377echo " png ${wxUSE_LIBPNG-none}"
43378echo " regex ${wxUSE_REGEX}"
43379echo " tiff ${wxUSE_LIBTIFF-none}"
43380if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43381echo " xpm ${wxUSE_LIBXPM-none}"
43382fi
43383echo " zlib ${wxUSE_ZLIB}"
43384echo " odbc ${wxUSE_ODBC}"
43385echo " expat ${wxUSE_EXPAT}"
43386echo " libmspack ${wxUSE_LIBMSPACK}"
43387echo " sdl ${wxUSE_LIBSDL}"
43388
43389echo ""
43390