]> git.saurik.com Git - wxWidgets.git/blame - configure
added Basque translation
[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.
ac1cb8d3 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.2.
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'
273PACKAGE_VERSION='2.5.2'
274PACKAGE_STRING='wxWidgets 2.5.2'
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"
ea7db9ff 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 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 SHARED 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_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_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_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_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_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_COCOA 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_MAC_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_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM_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_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_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 PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_SUBRELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_DATA_FILE WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY 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
77ffb593 797\`configure' configures wxWidgets 2.5.2 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
77ffb593 863 short | recursive ) echo "Configuration of wxWidgets 2.5.2:";;
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
a848cd7e
SC
894 --enable-rpath=DIR output the rpath flag from wx-config
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
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
8a7b1113 950 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
951 --enable-loggui use standard GUI logger
952 --enable-logwin use wxLogWindow
953 --enable-logdialog use wxLogDialog
646b6ec1 954 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
955 --enable-postscript use wxPostscriptDC device context (default for gtk+)
956 --enable-prologio not available; see contrib
957 --enable-resources not available; see contrib
958 --enable-clipboard use wxClipboard class
959 --enable-dnd use Drag'n'Drop classes
960 --enable-metafile use win32 metafiles
961 --enable-controls use all usual controls
962 --enable-accel use accelerators
963 --enable-button use wxButton class
964 --enable-bmpbutton use wxBitmapButton class
965 --enable-calendar use wxCalendarCtrl class
966 --enable-caret use wxCaret class
967 --enable-checkbox use wxCheckBox class
968 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
969 --enable-choice use wxChoice class
970 --enable-combobox use wxComboBox class
971 --enable-display use wxDisplay class
972 --enable-gauge use wxGauge class
973 --enable-grid use wxGrid class
974 --enable-imaglist use wxImageList class
975 --enable-listbook use wxListbook class
976 --enable-listbox use wxListBox class
977 --enable-listctrl use wxListCtrl class
978 --enable-notebook use wxNotebook class
979 --enable-radiobox use wxRadioBox class
980 --enable-radiobtn use wxRadioButton class
981 --enable-sash use wxSashWindow class
982 --enable-scrollbar use wxScrollBar class and scrollable windows
983 --enable-slider use wxSlider class
984 --enable-spinbtn use wxSpinButton class
985 --enable-spinctrl use wxSpinCtrl class
986 --enable-splitter use wxSplitterWindow class
987 --enable-statbmp use wxStaticBitmap class
988 --enable-statbox use wxStaticBox class
989 --enable-statline use wxStaticLine class
990 --enable-stattext use wxStaticText class
991 --enable-statusbar use wxStatusBar class
992 --enable-tabdialog use wxTabControl class
993 --enable-textctrl use wxTextCtrl class
994 --enable-togglebtn use wxToggleButton class
995 --enable-toolbar use wxToolBar class
996 --enable-tbarnative use native wxToolBar class
997 --enable-tbarsmpl use wxToolBarSimple class
998 --enable-treectrl use wxTreeCtrl class
999 --enable-tipwindow use wxTipWindow class
1000 --enable-popupwin use wxPopUpWindow class
1001 --enable-commondlg use all common dialogs
1002 --enable-choicedlg use wxChoiceDialog
1003 --enable-coldlg use wxColourDialog
1004 --enable-filedlg use wxFileDialog
1005 --enable-finddlg use wxFindReplaceDialog
1006 --enable-fontdlg use wxFontDialog
1007 --enable-dirdlg use wxDirDialog
1008 --enable-msgdlg use wxMessageDialog
1009 --enable-numberdlg use wxNumberEntryDialog
1010 --enable-splash use wxSplashScreen
1011 --enable-textdlg use wxTextDialog
1012 --enable-tipdlg use startup tips
1013 --enable-progressdlg use wxProgressDialog
1014 --enable-wizarddlg use wxWizard
1015 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1016 --enable-miniframe use wxMiniFrame class
1017 --enable-tooltips use wxToolTip class
1018 --enable-splines use spline drawing code
1019 --enable-validators use wxValidator and derived classes
1020 --enable-busyinfo use wxBusyInfo
1021 --enable-joystick use wxJoystick (Linux only)
1022 --enable-metafiles use wxMetaFile (Windows only)
1023 --enable-dragimage use wxDragImage
1024 --enable-accessibility enable accessibility support
1025 --enable-palette use wxPalette class
1026 --enable-image use wxImage class
1027 --enable-gif use gif images (GIF file format)
1028 --enable-pcx use pcx images (PCX file format)
1029 --enable-iff use iff images (IFF file format)
1030 --enable-pnm use pnm images (PNM file format)
1031 --enable-xpm use xpm images (XPM file format)
1032 --enable-icocur use Windows ICO and CUR formats
77ffb593 1033 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1034 --enable-vendor=VENDOR vendor name (win32 DLL only)
1035 --disable-largefile omit support for large files
1036 --disable-gtktest do not try to compile and run a test GTK+ program
1037 --disable-gtktest Do not try to compile and run a test GTK program
1038 --disable-sdltest Do not try to compile and run a test SDL program
1039 --enable-omf use OMF object format (OS/2)
1040 --disable-precomp-headers don't use precompiled headers even if compiler can
1041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gtk use GTK+
1046 --with-motif use Motif/Lesstif
1047 --with-mac use Mac OS X
1048 --with-cocoa use Cocoa
1049 --with-wine use Wine
1050 --with-msw use MS-Windows
1051 --with-pm use OS/2 Presentation Manager
1052 --with-mgl use SciTech MGL
1053 --with-microwin use MicroWindows
1054 --with-x11 use X11
1055 --with-libpng use libpng (PNG image format)
1056 --with-libjpeg use libjpeg (JPEG file format)
1057 --with-libtiff use libtiff (TIFF file format)
1058 --with-libxpm use libxpm (XPM file format)
1059 --with-libmspack use libmspack (CHM help files loading)
1060 --with-sdl use SDL for audio on Unix
1061 --with-opengl use OpenGL (or Mesa)
1062 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1063 --with-regex enable support for wxRegEx class
1064 --with-zlib use zlib for LZW compression
1065 --with-odbc use the IODBC and wxODBC classes
1066 --with-expat enable XML support using expat parser
1067 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1068 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1069 --with-x use the X Window System
1070 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1071 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1072 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1073 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1074 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1075
1076Some influential environment variables:
dcc1b6ad
VS
1077 CC C compiler command
1078 CFLAGS C compiler flags
1079 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1080 nonstandard directory <lib dir>
1081 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082 headers in a nonstandard directory <include dir>
1083 CPP C preprocessor
1084 CXX C++ compiler command
1085 CXXFLAGS C++ compiler flags
1086 CXXCPP C++ preprocessor
a848cd7e
SC
1087
1088Use these variables to override the choices made by `configure' or to help
1089it to find libraries and programs with nonstandard names/locations.
1090
77ffb593 1091Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1092_ACEOF
1093fi
1094
1095if test "$ac_init_help" = "recursive"; then
1096 # If there are subdirs, report their specific --help.
1097 ac_popdir=`pwd`
1098 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1099 test -d $ac_dir || continue
1100 ac_builddir=.
1101
1102if test "$ac_dir" != .; then
1103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1104 # A "../" for each directory in $ac_dir_suffix.
1105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1106else
1107 ac_dir_suffix= ac_top_builddir=
1108fi
1109
1110case $srcdir in
1111 .) # No --srcdir option. We are building in place.
1112 ac_srcdir=.
1113 if test -z "$ac_top_builddir"; then
1114 ac_top_srcdir=.
1115 else
1116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1117 fi ;;
1118 [\\/]* | ?:[\\/]* ) # Absolute path.
1119 ac_srcdir=$srcdir$ac_dir_suffix;
1120 ac_top_srcdir=$srcdir ;;
1121 *) # Relative path.
1122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1124esac
ac1cb8d3
VS
1125
1126# Do not use `cd foo && pwd` to compute absolute paths, because
1127# the directories may not exist.
1128case `pwd` in
1129.) ac_abs_builddir="$ac_dir";;
1130*)
1131 case "$ac_dir" in
1132 .) ac_abs_builddir=`pwd`;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1134 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1135 esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_top_builddir=${ac_top_builddir}.;;
1139*)
1140 case ${ac_top_builddir}. in
1141 .) ac_abs_top_builddir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1143 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_srcdir=$ac_srcdir;;
1148*)
1149 case $ac_srcdir in
1150 .) ac_abs_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1152 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1153 esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_top_srcdir=$ac_top_srcdir;;
1157*)
1158 case $ac_top_srcdir in
1159 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1161 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1162 esac;;
1163esac
a848cd7e
SC
1164
1165 cd $ac_dir
1166 # Check for guested configure; otherwise get Cygnus style configure.
1167 if test -f $ac_srcdir/configure.gnu; then
1168 echo
1169 $SHELL $ac_srcdir/configure.gnu --help=recursive
1170 elif test -f $ac_srcdir/configure; then
1171 echo
1172 $SHELL $ac_srcdir/configure --help=recursive
1173 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1174 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1175 echo
1176 $ac_configure --help
1177 else
1178 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1179 fi
ea7db9ff 1180 cd $ac_popdir
a848cd7e
SC
1181 done
1182fi
1183
1184test -n "$ac_init_help" && exit 0
1185if $ac_init_version; then
1186 cat <<\_ACEOF
77ffb593 1187wxWidgets configure 2.5.2
ac1cb8d3 1188generated by GNU Autoconf 2.59
a848cd7e 1189
ac1cb8d3 1190Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1191This configure script is free software; the Free Software Foundation
1192gives unlimited permission to copy, distribute and modify it.
1193_ACEOF
1194 exit 0
1195fi
1196exec 5>config.log
1197cat >&5 <<_ACEOF
1198This file contains any messages produced by compilers while
1199running configure, to aid debugging if configure makes a mistake.
1200
77ffb593 1201It was created by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 1202generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1203
1204 $ $0 $@
1205
1206_ACEOF
1207{
1208cat <<_ASUNAME
1209## --------- ##
1210## Platform. ##
1211## --------- ##
1212
1213hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1214uname -m = `(uname -m) 2>/dev/null || echo unknown`
1215uname -r = `(uname -r) 2>/dev/null || echo unknown`
1216uname -s = `(uname -s) 2>/dev/null || echo unknown`
1217uname -v = `(uname -v) 2>/dev/null || echo unknown`
1218
1219/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1220/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1221
1222/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1223/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1224/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1225hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1226/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1227/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1228/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1229
1230_ASUNAME
1231
1232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1233for as_dir in $PATH
1234do
1235 IFS=$as_save_IFS
1236 test -z "$as_dir" && as_dir=.
1237 echo "PATH: $as_dir"
1238done
1239
1240} >&5
1241
1242cat >&5 <<_ACEOF
1243
1244
1245## ----------- ##
1246## Core tests. ##
1247## ----------- ##
1248
1249_ACEOF
1250
1251
1252# Keep a trace of the command line.
1253# Strip out --no-create and --no-recursion so they do not pile up.
1254# Strip out --silent because we don't want to record it for future runs.
1255# Also quote any args containing shell meta-characters.
1256# Make two passes to allow for proper duplicate-argument suppression.
1257ac_configure_args=
1258ac_configure_args0=
1259ac_configure_args1=
1260ac_sep=
1261ac_must_keep_next=false
1262for ac_pass in 1 2
1263do
1264 for ac_arg
1265 do
1266 case $ac_arg in
1267 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269 | -silent | --silent | --silen | --sile | --sil)
1270 continue ;;
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 esac
1274 case $ac_pass in
1275 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1276 2)
1277 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1278 if test $ac_must_keep_next = true; then
ac1cb8d3 1279 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1280 else
ac1cb8d3
VS
1281 case $ac_arg in
1282 *=* | --config-cache | -C | -disable-* | --disable-* \
1283 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1284 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1285 | -with-* | --with-* | -without-* | --without-* | --x)
1286 case "$ac_configure_args0 " in
1287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1288 esac
1289 ;;
1290 -* ) ac_must_keep_next=true ;;
1291 esac
a848cd7e
SC
1292 fi
1293 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1294 # Get rid of the leading space.
1295 ac_sep=" "
1296 ;;
1297 esac
1298 done
1299done
1300$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1301$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1302
1303# When interrupted or exit'd, cleanup temporary files, and complete
1304# config.log. We remove comments because anyway the quotes in there
1305# would cause problems or look ugly.
1306# WARNING: Be sure not to use single quotes in there, as some shells,
1307# such as our DU 5.0 friend, will then `close' the trap.
1308trap 'exit_status=$?
1309 # Save into config.log some information that might help in debugging.
1310 {
1311 echo
1312
1313 cat <<\_ASBOX
1314## ---------------- ##
1315## Cache variables. ##
1316## ---------------- ##
1317_ASBOX
1318 echo
1319 # The following way of writing the cache mishandles newlines in values,
1320{
1321 (set) 2>&1 |
1322 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1323 *ac_space=\ *)
1324 sed -n \
ac1cb8d3
VS
1325 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1327 ;;
1328 *)
1329 sed -n \
ac1cb8d3 1330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1331 ;;
1332 esac;
1333}
1334 echo
1335
1336 cat <<\_ASBOX
1337## ----------------- ##
1338## Output variables. ##
1339## ----------------- ##
1340_ASBOX
1341 echo
1342 for ac_var in $ac_subst_vars
1343 do
1344 eval ac_val=$`echo $ac_var`
1345 echo "$ac_var='"'"'$ac_val'"'"'"
1346 done | sort
1347 echo
1348
1349 if test -n "$ac_subst_files"; then
1350 cat <<\_ASBOX
1351## ------------- ##
1352## Output files. ##
1353## ------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_files
1357 do
1358 eval ac_val=$`echo $ac_var`
ac1cb8d3 1359 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1360 done | sort
1361 echo
1362 fi
1363
1364 if test -s confdefs.h; then
1365 cat <<\_ASBOX
1366## ----------- ##
1367## confdefs.h. ##
1368## ----------- ##
1369_ASBOX
1370 echo
1371 sed "/^$/d" confdefs.h | sort
1372 echo
1373 fi
1374 test "$ac_signal" != 0 &&
1375 echo "$as_me: caught signal $ac_signal"
1376 echo "$as_me: exit $exit_status"
1377 } >&5
ac1cb8d3 1378 rm -f core *.core &&
a848cd7e
SC
1379 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1380 exit $exit_status
1381 ' 0
1382for ac_signal in 1 2 13 15; do
1383 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1384done
1385ac_signal=0
1386
1387# confdefs.h avoids OS command line length limits that DEFS can exceed.
1388rm -rf conftest* confdefs.h
1389# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1390echo >confdefs.h
1391
1392# Predefined preprocessor variables.
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_NAME "$PACKAGE_NAME"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_VERSION "$PACKAGE_VERSION"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_STRING "$PACKAGE_STRING"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1416_ACEOF
1417
1418
1419# Let the site file select an alternate cache file if it wants to.
1420# Prefer explicitly selected file to automatically selected ones.
1421if test -z "$CONFIG_SITE"; then
1422 if test "x$prefix" != xNONE; then
1423 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1424 else
1425 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426 fi
1427fi
1428for ac_site_file in $CONFIG_SITE; do
1429 if test -r "$ac_site_file"; then
1430 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1431echo "$as_me: loading site script $ac_site_file" >&6;}
1432 sed 's/^/| /' "$ac_site_file" >&5
1433 . "$ac_site_file"
1434 fi
1435done
1436
1437if test -r "$cache_file"; then
1438 # Some versions of bash will fail to source /dev/null (special
1439 # files actually), so we avoid doing that.
1440 if test -f "$cache_file"; then
1441 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1442echo "$as_me: loading cache $cache_file" >&6;}
1443 case $cache_file in
1444 [\\/]* | ?:[\\/]* ) . $cache_file;;
1445 *) . ./$cache_file;;
1446 esac
1447 fi
1448else
1449 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1450echo "$as_me: creating cache $cache_file" >&6;}
1451 >$cache_file
1452fi
1453
1454# Check that the precious variables saved in the cache have kept the same
1455# value.
1456ac_cache_corrupted=false
1457for ac_var in `(set) 2>&1 |
ac1cb8d3 1458 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460 eval ac_new_set=\$ac_env_${ac_var}_set
1461 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462 eval ac_new_val="\$ac_env_${ac_var}_value"
1463 case $ac_old_set,$ac_new_set in
1464 set,)
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1468 ,set)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,);;
1473 *)
1474 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1475 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1476echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1477 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1478echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1479 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1480echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1481 ac_cache_corrupted=:
a848cd7e
SC
1482 fi;;
1483 esac
1484 # Pass precious variables to config.status.
1485 if test "$ac_new_set" = set; then
1486 case $ac_new_val in
1487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489 *) ac_arg=$ac_var=$ac_new_val ;;
1490 esac
1491 case " $ac_configure_args " in
1492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1493 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494 esac
1495 fi
1496done
1497if $ac_cache_corrupted; then
1498 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502 { (exit 1); exit 1; }; }
1503fi
1504
1505ac_ext=c
1506ac_cpp='$CPP $CPPFLAGS'
1507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
1511
1512
1513
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
1540ac_aux_dir=
1541for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break
1546 elif 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/shtool; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break
1554 fi
1555done
1556if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559 { (exit 1); exit 1; }; }
1560fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565# Make sure we can run config.sub.
1566$ac_config_sub sun4 >/dev/null 2>&1 ||
1567 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1568echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571echo "$as_me:$LINENO: checking build system type" >&5
1572echo $ECHO_N "checking build system type... $ECHO_C" >&6
1573if test "${ac_cv_build+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576 ac_cv_build_alias=$build_alias
1577test -z "$ac_cv_build_alias" &&
1578 ac_cv_build_alias=`$ac_config_guess`
1579test -z "$ac_cv_build_alias" &&
1580 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1581echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1582 { (exit 1); exit 1; }; }
1583ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1585echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588fi
1589echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1590echo "${ECHO_T}$ac_cv_build" >&6
1591build=$ac_cv_build
1592build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597echo "$as_me:$LINENO: checking host system type" >&5
1598echo $ECHO_N "checking host system type... $ECHO_C" >&6
1599if test "${ac_cv_host+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 ac_cv_host_alias=$host_alias
1603test -z "$ac_cv_host_alias" &&
1604 ac_cv_host_alias=$ac_cv_build_alias
1605ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1607echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
1609
1610fi
1611echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1612echo "${ECHO_T}$ac_cv_host" >&6
1613host=$ac_cv_host
1614host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1617
1618
1619echo "$as_me:$LINENO: checking target system type" >&5
1620echo $ECHO_N "checking target system type... $ECHO_C" >&6
1621if test "${ac_cv_target+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623else
1624 ac_cv_target_alias=$target_alias
1625test "x$ac_cv_target_alias" = "x" &&
1626 ac_cv_target_alias=$ac_cv_host_alias
1627ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1629echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1631
1632fi
1633echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1634echo "${ECHO_T}$ac_cv_target" >&6
1635target=$ac_cv_target
1636target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641# The aliases save the names the user supplied, while $host etc.
1642# will get canonicalized.
1643test -n "$target_alias" &&
1644 test "$program_prefix$program_suffix$program_transform_name" = \
1645 NONENONEs,x,x, &&
1646 program_prefix=${target_alias}-
1647
1648
1649
1650WX_MAJOR_VERSION_NUMBER=2
1651WX_MINOR_VERSION_NUMBER=5
de59c161 1652WX_RELEASE_NUMBER=2
224bf05c 1653WX_SUBRELEASE_NUMBER=3
a848cd7e
SC
1654
1655WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1656WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1657
1658WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1659
de59c161 1660WX_CURRENT=2
a848cd7e
SC
1661WX_REVISION=0
1662WX_AGE=0
1663
1664
1665
1666USE_UNIX=1
1667USE_OS2=0
1668USE_WIN32=0
1669USE_DOS=0
1670USE_BEOS=0
1671USE_MAC=0
1672
1673USE_AIX=
1674USE_BSD= USE_DARWIN= USE_FREEBSD=
1675USE_GNU= USE_HPUX=
1676USE_LINUX=
1677USE_NETBSD=
1678USE_OPENBSD=
1679USE_OSF= USE_SGI=
1680USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1681USE_ULTRIX=
1682USE_UNIXWARE=
1683
1684USE_ALPHA=
1685
1686NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1687
1688ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1689
1690DEFAULT_wxUSE_COCOA=0
1691DEFAULT_wxUSE_GTK=0
1692DEFAULT_wxUSE_MAC=0
1693DEFAULT_wxUSE_MGL=0
1694DEFAULT_wxUSE_MICROWIN=0
1695DEFAULT_wxUSE_MOTIF=0
1696DEFAULT_wxUSE_MSW=0
1697DEFAULT_wxUSE_PM=0
1698DEFAULT_wxUSE_X11=0
1699
1700DEFAULT_DEFAULT_wxUSE_COCOA=0
1701DEFAULT_DEFAULT_wxUSE_GTK=0
1702DEFAULT_DEFAULT_wxUSE_MAC=0
1703DEFAULT_DEFAULT_wxUSE_MGL=0
1704DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1705DEFAULT_DEFAULT_wxUSE_MOTIF=0
1706DEFAULT_DEFAULT_wxUSE_MSW=0
1707DEFAULT_DEFAULT_wxUSE_PM=0
1708DEFAULT_DEFAULT_wxUSE_X11=0
1709
1710PROGRAM_EXT=
1711SO_SUFFIX=so
1712SAMPLES_RPATH_FLAG=
1713SAMPLES_RPATH_POSTLINK=
1714
1715case "${host}" in
1716 *-hp-hpux* )
1717 USE_HPUX=1
1718 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1719 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1720 SO_SUFFIX=sl
1721 cat >>confdefs.h <<\_ACEOF
1722#define __HPUX__ 1
1723_ACEOF
1724
1725 ;;
1726 *-*-linux* )
1727 USE_LINUX=1
1728 cat >>confdefs.h <<\_ACEOF
1729#define __LINUX__ 1
1730_ACEOF
1731
1732 TMP=`uname -m`
1733 if test "x$TMP" = "xalpha"; then
1734 USE_ALPHA=1
1735 cat >>confdefs.h <<\_ACEOF
1736#define __ALPHA__ 1
1737_ACEOF
1738
1739 fi
1740 DEFAULT_DEFAULT_wxUSE_GTK=1
1741 ;;
1742 *-*-gnu* | *-*-k*bsd*-gnu )
1743 USE_GNU=1
1744 TMP=`uname -m`
1745 if test "x$TMP" = "xalpha"; then
1746 USE_ALPHA=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __ALPHA__ 1
1749_ACEOF
1750
1751 fi
1752 DEFAULT_DEFAULT_wxUSE_GTK=1
1753 ;;
1754 *-*-irix5* | *-*-irix6* )
1755 USE_SGI=1
1756 USE_SVR4=1
1757 cat >>confdefs.h <<\_ACEOF
1758#define __SGI__ 1
1759_ACEOF
1760
1761 cat >>confdefs.h <<\_ACEOF
1762#define __SVR4__ 1
1763_ACEOF
1764
1765 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1766 ;;
1767 *-*-solaris2* )
1768 USE_SUN=1
1769 USE_SOLARIS=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SUN__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SOLARIS__ 1
1777_ACEOF
1778
1779 cat >>confdefs.h <<\_ACEOF
1780#define __SVR4__ 1
1781_ACEOF
1782
1783 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1784 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1785 ;;
1786 *-*-sunos4* )
1787 USE_SUN=1
1788 USE_SUNOS=1
1789 USE_BSD=1
1790 cat >>confdefs.h <<\_ACEOF
1791#define __SUN__ 1
1792_ACEOF
1793
1794 cat >>confdefs.h <<\_ACEOF
1795#define __SUNOS__ 1
1796_ACEOF
1797
1798 cat >>confdefs.h <<\_ACEOF
1799#define __BSD__ 1
1800_ACEOF
1801
1802 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1803 ;;
1804 *-*-freebsd*)
1805 USE_BSD=1
1806 USE_FREEBSD=1
1807 cat >>confdefs.h <<\_ACEOF
1808#define __FREEBSD__ 1
1809_ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812#define __BSD__ 1
1813_ACEOF
1814
1815 DEFAULT_DEFAULT_wxUSE_GTK=1
1816 ;;
1817 *-*-openbsd*)
1818 USE_BSD=1
1819 USE_OPENBSD=1
1820 cat >>confdefs.h <<\_ACEOF
1821#define __OPENBSD__ 1
1822_ACEOF
1823
1824 cat >>confdefs.h <<\_ACEOF
1825#define __BSD__ 1
1826_ACEOF
1827
1828 DEFAULT_DEFAULT_wxUSE_GTK=1
1829 ;;
1830 *-*-netbsd*)
1831 USE_BSD=1
1832 USE_NETBSD=1
1833 cat >>confdefs.h <<\_ACEOF
1834#define __NETBSD__ 1
1835_ACEOF
1836
1837 cat >>confdefs.h <<\_ACEOF
1838#define __BSD__ 1
1839_ACEOF
1840
1841 DEFAULT_DEFAULT_wxUSE_GTK=1
1842 ;;
1843 *-*-osf* )
1844 USE_ALPHA=1
1845 USE_OSF=1
1846 cat >>confdefs.h <<\_ACEOF
1847#define __ALPHA__ 1
1848_ACEOF
1849
1850 cat >>confdefs.h <<\_ACEOF
1851#define __OSF__ 1
1852_ACEOF
1853
1854 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1855 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1856 ;;
1857 *-*-dgux5* )
1858 USE_ALPHA=1
1859 USE_SVR4=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __SVR4__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 ;;
1870 *-*-sysv5* )
1871 USE_SYSV=1
1872 USE_SVR4=1
1873 cat >>confdefs.h <<\_ACEOF
1874#define __SYSV__ 1
1875_ACEOF
1876
1877 cat >>confdefs.h <<\_ACEOF
1878#define __SVR4__ 1
1879_ACEOF
1880
1881 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1882 ;;
1883 *-*-aix* )
1884 USE_AIX=1
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 SO_SUFFIX=a
1888 cat >>confdefs.h <<\_ACEOF
1889#define __AIX__ 1
1890_ACEOF
1891
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SYSV__ 1
1894_ACEOF
1895
1896 cat >>confdefs.h <<\_ACEOF
1897#define __SVR4__ 1
1898_ACEOF
1899
1900 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1901 ;;
1902
1903 *-*-*UnixWare*)
1904 USE_SYSV=1
1905 USE_SVR4=1
1906 USE_UNIXWARE=1
1907 cat >>confdefs.h <<\_ACEOF
1908#define __UNIXWARE__ 1
1909_ACEOF
1910
1911 ;;
1912
1913 *-*-cygwin* | *-*-mingw32* )
1914 SO_SUFFIX=dll
1915 PROGRAM_EXT=".exe"
1916 RESCOMP=windres
1917 DEFAULT_DEFAULT_wxUSE_MSW=1
1918 ;;
1919
1920 *-pc-msdosdjgpp )
1921 USE_UNIX=0
1922 USE_DOS=1
1923 cat >>confdefs.h <<\_ACEOF
1924#define __DOS__ 1
1925_ACEOF
1926
1927 PROGRAM_EXT=".exe"
1928 DEFAULT_DEFAULT_wxUSE_MGL=1
1929 LIBS="$LIBS -lstdc++"
1930 ;;
1931
1932 *-pc-os2_emx | *-pc-os2-emx )
1933 cat >>confdefs.h <<\_ACEOF
1934#define __EMX__ 1
1935_ACEOF
1936
1937 USE_OS2=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __OS2__ 1
1940_ACEOF
1941
1942 PROGRAM_EXT=".exe"
1943 DEFAULT_DEFAULT_wxUSE_PM=1
1944 CXX=gcc
1945 LDFLAGS="$LDFLAGS -Zcrtdll"
1946 ac_executable_extensions=".exe"
1947 export ac_executable_extensions
1948 ac_save_IFS="$IFS"
1949 IFS='\\'
1950 ac_TEMP_PATH=
1951 for ac_dir in $PATH; do
1952 IFS=$ac_save_IFS
1953 if test -z "$ac_TEMP_PATH"; then
1954 ac_TEMP_PATH="$ac_dir"
1955 else
1956 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1957 fi
1958 done
1959 export PATH="$ac_TEMP_PATH"
1960 unset ac_TEMP_PATH
1961 ;;
1962
1963 powerpc-*-darwin* )
1964 USE_BSD=1
1965 USE_DARWIN=1
1966 SO_SUFFIX=dylib
1967 cat >>confdefs.h <<\_ACEOF
1968#define __BSD__ 1
1969_ACEOF
1970
1971 cat >>confdefs.h <<\_ACEOF
1972#define __DARWIN__ 1
1973_ACEOF
1974
1975 cat >>confdefs.h <<\_ACEOF
1976#define __POWERPC__ 1
1977_ACEOF
1978
1979 cat >>confdefs.h <<\_ACEOF
1980#define TARGET_CARBON 1
1981_ACEOF
1982
1983 DEFAULT_DEFAULT_wxUSE_MAC=1
1984 ;;
1985
1986 *-*-beos* )
1987 USE_BEOS=1
1988 cat >>confdefs.h <<\_ACEOF
1989#define __BEOS__ 1
1990_ACEOF
1991
1992 ;;
1993
1994 *)
1995 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1996echo "$as_me: error: unknown system type ${host}." >&2;}
1997 { (exit 1); exit 1; }; }
1998esac
1999
2000
2001
2002
2003 wx_arg_cache_file="configarg.cache"
2004 echo "loading argument cache $wx_arg_cache_file"
2005 rm -f ${wx_arg_cache_file}.tmp
2006 touch ${wx_arg_cache_file}.tmp
2007 touch ${wx_arg_cache_file}
2008
2009
2010DEBUG_CONFIGURE=0
2011if test $DEBUG_CONFIGURE = 1; then
2012 DEFAULT_wxUSE_UNIVERSAL=no
2013 DEFAULT_wxUSE_STL=no
2014
2015 DEFAULT_wxUSE_NANOX=no
2016
2017 DEFAULT_wxUSE_THREADS=yes
2018
2019 DEFAULT_wxUSE_SHARED=yes
2020 DEFAULT_wxUSE_OPTIMISE=no
2021 DEFAULT_wxUSE_PROFILE=no
2022 DEFAULT_wxUSE_NO_DEPS=no
2023 DEFAULT_wxUSE_NO_RTTI=no
2024 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2025 DEFAULT_wxUSE_PERMISSIVE=no
2026 DEFAULT_wxUSE_DEBUG_FLAG=yes
2027 DEFAULT_wxUSE_DEBUG_INFO=yes
2028 DEFAULT_wxUSE_DEBUG_GDB=yes
2029 DEFAULT_wxUSE_MEM_TRACING=no
2030 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2031 DEFAULT_wxUSE_DMALLOC=no
2032 DEFAULT_wxUSE_APPLE_IEEE=no
2033
2034 DEFAULT_wxUSE_EXCEPTIONS=no
2035 DEFAULT_wxUSE_LOG=yes
2036 DEFAULT_wxUSE_LOGWINDOW=no
2037 DEFAULT_wxUSE_LOGGUI=no
2038 DEFAULT_wxUSE_LOGDIALOG=no
2039
2040 DEFAULT_wxUSE_GUI=yes
2041 DEFAULT_wxUSE_CONTROLS=no
2042
2043 DEFAULT_wxUSE_REGEX=no
2044 DEFAULT_wxUSE_XML=no
2045 DEFAULT_wxUSE_EXPAT=no
2046 DEFAULT_wxUSE_ZLIB=no
2047 DEFAULT_wxUSE_LIBPNG=no
2048 DEFAULT_wxUSE_LIBJPEG=no
2049 DEFAULT_wxUSE_LIBTIFF=no
2050 DEFAULT_wxUSE_LIBXPM=no
2051 DEFAULT_wxUSE_LIBMSPACK=no
2052 DEFAULT_wxUSE_LIBSDL=no
2053 DEFAULT_wxUSE_ODBC=no
2054 DEFAULT_wxUSE_OPENGL=no
2055
2056 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2057 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2058 DEFAULT_wxUSE_STD_IOSTREAM=no
2059 DEFAULT_wxUSE_CMDLINE_PARSER=no
2060 DEFAULT_wxUSE_DATETIME=no
2061 DEFAULT_wxUSE_TIMER=no
2062 DEFAULT_wxUSE_STOPWATCH=no
2063 DEFAULT_wxUSE_FILE=no
2064 DEFAULT_wxUSE_FFILE=no
2065 DEFAULT_wxUSE_TEXTBUFFER=no
2066 DEFAULT_wxUSE_TEXTFILE=no
2067 DEFAULT_wxUSE_SOUND=no
2068 DEFAULT_wxUSE_INTL=no
2069 DEFAULT_wxUSE_CONFIG=no
2070 DEFAULT_wxUSE_FONTMAP=no
2071 DEFAULT_wxUSE_STREAMS=no
2072 DEFAULT_wxUSE_SOCKETS=no
2073 DEFAULT_wxUSE_OLE=no
2074 DEFAULT_wxUSE_DATAOBJ=no
2075 DEFAULT_wxUSE_DIALUP_MANAGER=no
2076 DEFAULT_wxUSE_JOYSTICK=no
2077 DEFAULT_wxUSE_DYNLIB_CLASS=no
2078 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2079 DEFAULT_wxUSE_LONGLONG=no
2080 DEFAULT_wxUSE_GEOMETRY=no
2081
2082 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2083 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2084 DEFAULT_wxUSE_POSTSCRIPT=no
2085
2086 DEFAULT_wxUSE_CLIPBOARD=no
2087 DEFAULT_wxUSE_TOOLTIPS=no
2088 DEFAULT_wxUSE_DRAG_AND_DROP=no
2089 DEFAULT_wxUSE_DRAGIMAGE=no
2090 DEFAULT_wxUSE_SPLINES=no
2091
8a7b1113 2092 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2093 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2094 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2095 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2096
2097 DEFAULT_wxUSE_RESOURCES=no
2098 DEFAULT_wxUSE_CONSTRAINTS=no
2099 DEFAULT_wxUSE_IPC=no
2100 DEFAULT_wxUSE_HELP=no
2101 DEFAULT_wxUSE_MS_HTML_HELP=no
2102 DEFAULT_wxUSE_WXHTML_HELP=no
2103 DEFAULT_wxUSE_TREELAYOUT=no
2104 DEFAULT_wxUSE_METAFILE=no
2105 DEFAULT_wxUSE_MIMETYPE=no
2106 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2107 DEFAULT_wxUSE_PROTOCOL=no
2108 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2109 DEFAULT_wxUSE_PROTOCOL_FTP=no
2110 DEFAULT_wxUSE_PROTOCOL_FILE=no
2111 DEFAULT_wxUSE_URL=no
2112
2113 DEFAULT_wxUSE_COMMONDLGS=no
2114 DEFAULT_wxUSE_CHOICEDLG=no
2115 DEFAULT_wxUSE_COLOURDLG=no
2116 DEFAULT_wxUSE_DIRDLG=no
2117 DEFAULT_wxUSE_FILEDLG=no
2118 DEFAULT_wxUSE_FINDREPLDLG=no
2119 DEFAULT_wxUSE_FONTDLG=no
2120 DEFAULT_wxUSE_MSGDLG=no
2121 DEFAULT_wxUSE_NUMBERDLG=no
2122 DEFAULT_wxUSE_TEXTDLG=no
2123 DEFAULT_wxUSE_SPLASH=no
2124 DEFAULT_wxUSE_STARTUP_TIPS=no
2125 DEFAULT_wxUSE_PROGRESSDLG=no
2126 DEFAULT_wxUSE_WIZARDDLG=no
2127
2128 DEFAULT_wxUSE_MENUS=no
2129 DEFAULT_wxUSE_MINIFRAME=no
2130 DEFAULT_wxUSE_HTML=no
646b6ec1 2131 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2132 DEFAULT_wxUSE_FILESYSTEM=no
2133 DEFAULT_wxUSE_FS_INET=no
2134 DEFAULT_wxUSE_FS_ZIP=no
2135 DEFAULT_wxUSE_BUSYINFO=no
2136 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2137 DEFAULT_wxUSE_VALIDATORS=no
2138
2139 DEFAULT_wxUSE_ACCEL=no
2140 DEFAULT_wxUSE_BUTTON=no
2141 DEFAULT_wxUSE_BMPBUTTON=no
2142 DEFAULT_wxUSE_CALCTRL=no
2143 DEFAULT_wxUSE_CARET=no
2144 DEFAULT_wxUSE_CHECKBOX=no
2145 DEFAULT_wxUSE_CHECKLST=no
2146 DEFAULT_wxUSE_CHOICE=no
2147 DEFAULT_wxUSE_COMBOBOX=no
2148 DEFAULT_wxUSE_DISPLAY=no
2149 DEFAULT_wxUSE_GAUGE=no
2150 DEFAULT_wxUSE_GRID=no
2151 DEFAULT_wxUSE_IMAGLIST=no
2152 DEFAULT_wxUSE_LISTBOOK=no
2153 DEFAULT_wxUSE_LISTBOX=no
2154 DEFAULT_wxUSE_LISTCTRL=no
2155 DEFAULT_wxUSE_NOTEBOOK=no
2156 DEFAULT_wxUSE_RADIOBOX=no
2157 DEFAULT_wxUSE_RADIOBTN=no
2158 DEFAULT_wxUSE_SASH=no
2159 DEFAULT_wxUSE_SCROLLBAR=no
2160 DEFAULT_wxUSE_SLIDER=no
2161 DEFAULT_wxUSE_SPINBTN=no
2162 DEFAULT_wxUSE_SPINCTRL=no
2163 DEFAULT_wxUSE_SPLITTER=no
2164 DEFAULT_wxUSE_STATBMP=no
2165 DEFAULT_wxUSE_STATBOX=no
2166 DEFAULT_wxUSE_STATLINE=no
2167 DEFAULT_wxUSE_STATTEXT=no
2168 DEFAULT_wxUSE_STATUSBAR=yes
2169 DEFAULT_wxUSE_TABDIALOG=no
2170 DEFAULT_wxUSE_TEXTCTRL=no
2171 DEFAULT_wxUSE_TOGGLEBTN=no
2172 DEFAULT_wxUSE_TOOLBAR=no
2173 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2174 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2175 DEFAULT_wxUSE_TREECTRL=no
2176 DEFAULT_wxUSE_POPUPWIN=no
2177 DEFAULT_wxUSE_TIPWINDOW=no
2178
2179 DEFAULT_wxUSE_UNICODE=no
2180 DEFAULT_wxUSE_UNICODE_MSLU=no
2181 DEFAULT_wxUSE_WCSRTOMBS=no
2182
2183 DEFAULT_wxUSE_PALETTE=no
2184 DEFAULT_wxUSE_IMAGE=no
2185 DEFAULT_wxUSE_GIF=no
2186 DEFAULT_wxUSE_PCX=no
2187 DEFAULT_wxUSE_PNM=no
2188 DEFAULT_wxUSE_IFF=no
2189 DEFAULT_wxUSE_XPM=no
2190 DEFAULT_wxUSE_ICO_CUR=no
2191 DEFAULT_wxUSE_ACCESSIBILITY=no
2192
2193 DEFAULT_wxUSE_MONOLITHIC=no
2194 DEFAULT_wxUSE_PLUGINS=no
2195 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2196else
2197 DEFAULT_wxUSE_UNIVERSAL=no
2198 DEFAULT_wxUSE_STL=no
2199
2200 DEFAULT_wxUSE_NANOX=no
2201
2202 DEFAULT_wxUSE_THREADS=yes
2203
2204 DEFAULT_wxUSE_SHARED=yes
2205 DEFAULT_wxUSE_OPTIMISE=yes
2206 DEFAULT_wxUSE_PROFILE=no
2207 DEFAULT_wxUSE_NO_DEPS=no
2208 DEFAULT_wxUSE_NO_RTTI=no
2209 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2210 DEFAULT_wxUSE_PERMISSIVE=no
2211 DEFAULT_wxUSE_DEBUG_FLAG=no
2212 DEFAULT_wxUSE_DEBUG_INFO=no
2213 DEFAULT_wxUSE_DEBUG_GDB=no
2214 DEFAULT_wxUSE_MEM_TRACING=no
2215 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2216 DEFAULT_wxUSE_DMALLOC=no
2217 DEFAULT_wxUSE_APPLE_IEEE=yes
2218
2219 DEFAULT_wxUSE_EXCEPTIONS=yes
2220 DEFAULT_wxUSE_LOG=yes
2221 DEFAULT_wxUSE_LOGWINDOW=yes
2222 DEFAULT_wxUSE_LOGGUI=yes
2223 DEFAULT_wxUSE_LOGDIALOG=yes
2224
2225 DEFAULT_wxUSE_GUI=yes
2226
2227 DEFAULT_wxUSE_REGEX=yes
2228 DEFAULT_wxUSE_XML=yes
2229 DEFAULT_wxUSE_EXPAT=yes
2230 DEFAULT_wxUSE_ZLIB=yes
2231 DEFAULT_wxUSE_LIBPNG=yes
2232 DEFAULT_wxUSE_LIBJPEG=yes
2233 DEFAULT_wxUSE_LIBTIFF=yes
2234 DEFAULT_wxUSE_LIBXPM=yes
2235 DEFAULT_wxUSE_LIBMSPACK=yes
2236 DEFAULT_wxUSE_LIBSDL=no
2237 DEFAULT_wxUSE_ODBC=no
2238 DEFAULT_wxUSE_OPENGL=no
2239
2240 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2241 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2242 DEFAULT_wxUSE_STD_IOSTREAM=no
2243 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2244 DEFAULT_wxUSE_DATETIME=yes
2245 DEFAULT_wxUSE_TIMER=yes
2246 DEFAULT_wxUSE_STOPWATCH=yes
2247 DEFAULT_wxUSE_FILE=yes
2248 DEFAULT_wxUSE_FFILE=yes
2249 DEFAULT_wxUSE_TEXTBUFFER=yes
2250 DEFAULT_wxUSE_TEXTFILE=yes
2251 DEFAULT_wxUSE_SOUND=yes
2252 DEFAULT_wxUSE_INTL=yes
2253 DEFAULT_wxUSE_CONFIG=yes
2254 DEFAULT_wxUSE_FONTMAP=yes
2255 DEFAULT_wxUSE_STREAMS=yes
2256 DEFAULT_wxUSE_SOCKETS=yes
2257 DEFAULT_wxUSE_OLE=yes
2258 DEFAULT_wxUSE_DATAOBJ=yes
2259 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2260 DEFAULT_wxUSE_JOYSTICK=yes
2261 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2262 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2263 DEFAULT_wxUSE_LONGLONG=yes
2264 DEFAULT_wxUSE_GEOMETRY=yes
2265
2266 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2267 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2268 DEFAULT_wxUSE_POSTSCRIPT=yes
2269
2270 DEFAULT_wxUSE_CLIPBOARD=yes
2271 DEFAULT_wxUSE_TOOLTIPS=yes
2272 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2273 DEFAULT_wxUSE_DRAGIMAGE=yes
2274 DEFAULT_wxUSE_SPLINES=yes
2275
8a7b1113 2276 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2277 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2278 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2279 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2280
2281 DEFAULT_wxUSE_RESOURCES=no
2282 DEFAULT_wxUSE_CONSTRAINTS=yes
2283 DEFAULT_wxUSE_IPC=yes
2284 DEFAULT_wxUSE_HELP=yes
2285 DEFAULT_wxUSE_MS_HTML_HELP=yes
2286 DEFAULT_wxUSE_WXHTML_HELP=yes
2287 DEFAULT_wxUSE_TREELAYOUT=yes
2288 DEFAULT_wxUSE_METAFILE=yes
2289 DEFAULT_wxUSE_MIMETYPE=yes
2290 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2291 DEFAULT_wxUSE_PROTOCOL=yes
2292 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2293 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2294 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2295 DEFAULT_wxUSE_URL=yes
2296
2297 DEFAULT_wxUSE_COMMONDLGS=yes
2298 DEFAULT_wxUSE_CHOICEDLG=yes
2299 DEFAULT_wxUSE_COLOURDLG=yes
2300 DEFAULT_wxUSE_DIRDLG=yes
2301 DEFAULT_wxUSE_FILEDLG=yes
2302 DEFAULT_wxUSE_FINDREPLDLG=yes
2303 DEFAULT_wxUSE_FONTDLG=yes
2304 DEFAULT_wxUSE_MSGDLG=yes
2305 DEFAULT_wxUSE_NUMBERDLG=yes
2306 DEFAULT_wxUSE_TEXTDLG=yes
2307 DEFAULT_wxUSE_SPLASH=yes
2308 DEFAULT_wxUSE_STARTUP_TIPS=yes
2309 DEFAULT_wxUSE_PROGRESSDLG=yes
2310 DEFAULT_wxUSE_WIZARDDLG=yes
2311
2312 DEFAULT_wxUSE_MENUS=yes
2313 DEFAULT_wxUSE_MINIFRAME=yes
2314 DEFAULT_wxUSE_HTML=yes
646b6ec1 2315 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2316 DEFAULT_wxUSE_FILESYSTEM=yes
2317 DEFAULT_wxUSE_FS_INET=yes
2318 DEFAULT_wxUSE_FS_ZIP=yes
2319 DEFAULT_wxUSE_BUSYINFO=yes
2320 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2321 DEFAULT_wxUSE_VALIDATORS=yes
2322
2323 DEFAULT_wxUSE_ACCEL=yes
2324 DEFAULT_wxUSE_BUTTON=yes
2325 DEFAULT_wxUSE_BMPBUTTON=yes
2326 DEFAULT_wxUSE_CALCTRL=yes
2327 DEFAULT_wxUSE_CARET=yes
2328 DEFAULT_wxUSE_CHECKBOX=yes
2329 DEFAULT_wxUSE_CHECKLST=yes
2330 DEFAULT_wxUSE_CHOICE=yes
2331 DEFAULT_wxUSE_COMBOBOX=yes
2332 DEFAULT_wxUSE_DISPLAY=yes
2333 DEFAULT_wxUSE_GAUGE=yes
2334 DEFAULT_wxUSE_GRID=yes
2335 DEFAULT_wxUSE_IMAGLIST=yes
2336 DEFAULT_wxUSE_LISTBOOK=yes
2337 DEFAULT_wxUSE_LISTBOX=yes
2338 DEFAULT_wxUSE_LISTCTRL=yes
2339 DEFAULT_wxUSE_NOTEBOOK=yes
2340 DEFAULT_wxUSE_RADIOBOX=yes
2341 DEFAULT_wxUSE_RADIOBTN=yes
2342 DEFAULT_wxUSE_SASH=yes
2343 DEFAULT_wxUSE_SCROLLBAR=yes
2344 DEFAULT_wxUSE_SLIDER=yes
2345 DEFAULT_wxUSE_SPINBTN=yes
2346 DEFAULT_wxUSE_SPINCTRL=yes
2347 DEFAULT_wxUSE_SPLITTER=yes
2348 DEFAULT_wxUSE_STATBMP=yes
2349 DEFAULT_wxUSE_STATBOX=yes
2350 DEFAULT_wxUSE_STATLINE=yes
2351 DEFAULT_wxUSE_STATTEXT=yes
2352 DEFAULT_wxUSE_STATUSBAR=yes
2353 DEFAULT_wxUSE_TABDIALOG=no
2354 DEFAULT_wxUSE_TEXTCTRL=yes
2355 DEFAULT_wxUSE_TOGGLEBTN=yes
2356 DEFAULT_wxUSE_TOOLBAR=yes
2357 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2358 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2359 DEFAULT_wxUSE_TREECTRL=yes
2360 DEFAULT_wxUSE_POPUPWIN=yes
2361 DEFAULT_wxUSE_TIPWINDOW=yes
2362
2363 DEFAULT_wxUSE_UNICODE=no
2364 DEFAULT_wxUSE_UNICODE_MSLU=yes
2365 DEFAULT_wxUSE_WCSRTOMBS=no
2366
2367 DEFAULT_wxUSE_PALETTE=yes
2368 DEFAULT_wxUSE_IMAGE=yes
2369 DEFAULT_wxUSE_GIF=yes
2370 DEFAULT_wxUSE_PCX=yes
2371 DEFAULT_wxUSE_IFF=no
2372 DEFAULT_wxUSE_PNM=yes
2373 DEFAULT_wxUSE_XPM=yes
2374 DEFAULT_wxUSE_ICO_CUR=yes
2375 DEFAULT_wxUSE_ACCESSIBILITY=no
2376
2377 DEFAULT_wxUSE_MONOLITHIC=no
2378 DEFAULT_wxUSE_PLUGINS=no
2379 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2380
2381 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2382fi
2383
2384
2385
2386for toolkit in `echo $ALL_TOOLKITS`; do
2387 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2388 if test "x$LINE" != "x" ; then
2389 has_toolkit_in_cache=1
2390 eval "DEFAULT_$LINE"
2391 eval "CACHE_$toolkit=1"
2392 fi
2393done
2394
2395
2396
2397 enablestring=
2398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2399echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2400 no_cache=0
2401 # Check whether --enable-gui or --disable-gui was given.
2402if test "${enable_gui+set}" = set; then
2403 enableval="$enable_gui"
2404
2405 if test "$enableval" = yes; then
2406 ac_cv_use_gui='wxUSE_GUI=yes'
2407 else
2408 ac_cv_use_gui='wxUSE_GUI=no'
2409 fi
2410
2411else
2412
2413 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2414 if test "x$LINE" != x ; then
2415 eval "DEFAULT_$LINE"
2416 else
2417 no_cache=1
2418 fi
2419
2420 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2421
2422fi;
2423
2424 eval "$ac_cv_use_gui"
2425 if test "$no_cache" != 1; then
2426 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2427 fi
2428
2429 if test "$wxUSE_GUI" = yes; then
2430 echo "$as_me:$LINENO: result: yes" >&5
2431echo "${ECHO_T}yes" >&6
2432 else
2433 echo "$as_me:$LINENO: result: no" >&5
2434echo "${ECHO_T}no" >&6
2435 fi
2436
2437
2438 enablestring=
2439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2440echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2441 no_cache=0
2442 # Check whether --enable-monolithic or --disable-monolithic was given.
2443if test "${enable_monolithic+set}" = set; then
2444 enableval="$enable_monolithic"
2445
2446 if test "$enableval" = yes; then
2447 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2448 else
2449 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2450 fi
2451
2452else
2453
2454 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2455 if test "x$LINE" != x ; then
2456 eval "DEFAULT_$LINE"
2457 else
2458 no_cache=1
2459 fi
2460
2461 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2462
2463fi;
2464
2465 eval "$ac_cv_use_monolithic"
2466 if test "$no_cache" != 1; then
2467 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2468 fi
2469
2470 if test "$wxUSE_MONOLITHIC" = yes; then
2471 echo "$as_me:$LINENO: result: yes" >&5
2472echo "${ECHO_T}yes" >&6
2473 else
2474 echo "$as_me:$LINENO: result: no" >&5
2475echo "${ECHO_T}no" >&6
2476 fi
2477
2478
2479 enablestring=
2480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2481echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2482 no_cache=0
2483 # Check whether --enable-plugins or --disable-plugins was given.
2484if test "${enable_plugins+set}" = set; then
2485 enableval="$enable_plugins"
2486
2487 if test "$enableval" = yes; then
2488 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2489 else
2490 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2491 fi
2492
2493else
2494
2495 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2496 if test "x$LINE" != x ; then
2497 eval "DEFAULT_$LINE"
2498 else
2499 no_cache=1
2500 fi
2501
2502 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2503
2504fi;
2505
2506 eval "$ac_cv_use_plugins"
2507 if test "$no_cache" != 1; then
2508 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2509 fi
2510
2511 if test "$wxUSE_PLUGINS" = yes; then
2512 echo "$as_me:$LINENO: result: yes" >&5
2513echo "${ECHO_T}yes" >&6
2514 else
2515 echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6
2517 fi
2518
2519
2520if test "$wxUSE_GUI" = "yes"; then
2521
2522
2523 enablestring=
2524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2525echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2526 no_cache=0
2527 # Check whether --enable-universal or --disable-universal was given.
2528if test "${enable_universal+set}" = set; then
2529 enableval="$enable_universal"
2530
2531 if test "$enableval" = yes; then
2532 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2533 else
2534 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2535 fi
2536
2537else
2538
2539 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2540 if test "x$LINE" != x ; then
2541 eval "DEFAULT_$LINE"
2542 else
2543 no_cache=1
2544 fi
2545
2546 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2547
2548fi;
2549
2550 eval "$ac_cv_use_universal"
2551 if test "$no_cache" != 1; then
2552 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2553 fi
2554
2555 if test "$wxUSE_UNIVERSAL" = yes; then
2556 echo "$as_me:$LINENO: result: yes" >&5
2557echo "${ECHO_T}yes" >&6
2558 else
2559 echo "$as_me:$LINENO: result: no" >&5
2560echo "${ECHO_T}no" >&6
2561 fi
2562
2563
2564# Check whether --with-gtk or --without-gtk was given.
2565if test "${with_gtk+set}" = set; then
2566 withval="$with_gtk"
2567 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2568fi;
2569
2570# Check whether --with-motif or --without-motif was given.
2571if test "${with_motif+set}" = set; then
2572 withval="$with_motif"
2573 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2574fi;
2575
2576# Check whether --with-mac or --without-mac was given.
2577if test "${with_mac+set}" = set; then
2578 withval="$with_mac"
2579 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2580fi;
2581
2582# Check whether --with-cocoa or --without-cocoa was given.
2583if test "${with_cocoa+set}" = set; then
2584 withval="$with_cocoa"
2585 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2586fi;
2587
2588# Check whether --with-wine or --without-wine was given.
2589if test "${with_wine+set}" = set; then
2590 withval="$with_wine"
2591 wxUSE_WINE="$withval" CACHE_WINE=1
2592fi;
2593
2594# Check whether --with-msw or --without-msw was given.
2595if test "${with_msw+set}" = set; then
2596 withval="$with_msw"
2597 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2598fi;
2599
2600# Check whether --with-pm or --without-pm was given.
2601if test "${with_pm+set}" = set; then
2602 withval="$with_pm"
2603 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-mgl or --without-mgl was given.
2607if test "${with_mgl+set}" = set; then
2608 withval="$with_mgl"
2609 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-microwin or --without-microwin was given.
2613if test "${with_microwin+set}" = set; then
2614 withval="$with_microwin"
2615 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618# Check whether --with-x11 or --without-x11 was given.
2619if test "${with_x11+set}" = set; then
2620 withval="$with_x11"
2621 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2622fi;
2623
2624 enablestring=
2625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2626echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2627 no_cache=0
2628 # Check whether --enable-nanox or --disable-nanox was given.
2629if test "${enable_nanox+set}" = set; then
2630 enableval="$enable_nanox"
2631
2632 if test "$enableval" = yes; then
2633 ac_cv_use_nanox='wxUSE_NANOX=yes'
2634 else
2635 ac_cv_use_nanox='wxUSE_NANOX=no'
2636 fi
2637
2638else
2639
2640 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2641 if test "x$LINE" != x ; then
2642 eval "DEFAULT_$LINE"
2643 else
2644 no_cache=1
2645 fi
2646
2647 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2648
2649fi;
2650
2651 eval "$ac_cv_use_nanox"
2652 if test "$no_cache" != 1; then
2653 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2654 fi
2655
2656 if test "$wxUSE_NANOX" = yes; then
2657 echo "$as_me:$LINENO: result: yes" >&5
2658echo "${ECHO_T}yes" >&6
2659 else
2660 echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6
2662 fi
2663
2664
2665
2666 enablestring=
2667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2668echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2669 no_cache=0
2670 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2671if test "${enable_gtk2+set}" = set; then
2672 enableval="$enable_gtk2"
2673
2674 if test "$enableval" = yes; then
2675 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2676 else
2677 ac_cv_use_gtk2='wxUSE_GTK2=no'
2678 fi
2679
2680else
2681
2682 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2683 if test "x$LINE" != x ; then
2684 eval "DEFAULT_$LINE"
2685 else
2686 no_cache=1
2687 fi
2688
2689 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2690
2691fi;
2692
2693 eval "$ac_cv_use_gtk2"
2694 if test "$no_cache" != 1; then
2695 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2696 fi
2697
2698 if test "$wxUSE_GTK2" = yes; then
2699 echo "$as_me:$LINENO: result: yes" >&5
2700echo "${ECHO_T}yes" >&6
2701 else
2702 echo "$as_me:$LINENO: result: no" >&5
2703echo "${ECHO_T}no" >&6
2704 fi
2705
2706
2707 enablestring=
2708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2709echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2710 no_cache=0
2711 # Check whether --enable-gpe or --disable-gpe was given.
2712if test "${enable_gpe+set}" = set; then
2713 enableval="$enable_gpe"
2714
2715 if test "$enableval" = yes; then
2716 ac_cv_use_gpe='wxUSE_GPE=yes'
2717 else
2718 ac_cv_use_gpe='wxUSE_GPE=no'
2719 fi
2720
2721else
2722
2723 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2724 if test "x$LINE" != x ; then
2725 eval "DEFAULT_$LINE"
2726 else
2727 no_cache=1
2728 fi
2729
2730 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2731
2732fi;
2733
2734 eval "$ac_cv_use_gpe"
2735 if test "$no_cache" != 1; then
2736 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2737 fi
2738
2739 if test "$wxUSE_GPE" = yes; then
2740 echo "$as_me:$LINENO: result: yes" >&5
2741echo "${ECHO_T}yes" >&6
2742 else
2743 echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6
2745 fi
2746
2747
2748
2749 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2750echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2751 no_cache=0
2752
2753# Check whether --with-libpng or --without-libpng was given.
2754if test "${with_libpng+set}" = set; then
2755 withval="$with_libpng"
2756
2757 if test "$withval" = yes; then
2758 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2759 elif test "$withval" = no; then
2760 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2761 elif test "$withval" = sys; then
2762 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2763 elif test "$withval" = builtin; then
2764 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2765 else
2766 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2767echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2768 { (exit 1); exit 1; }; }
2769 fi
2770
2771else
2772
2773 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2781
2782fi;
2783
2784 eval "$ac_cv_use_libpng"
2785 if test "$no_cache" != 1; then
2786 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2787 fi
2788
2789 if test "$wxUSE_LIBPNG" = yes; then
2790 echo "$as_me:$LINENO: result: yes" >&5
2791echo "${ECHO_T}yes" >&6
2792 elif test "$wxUSE_LIBPNG" = no; then
2793 echo "$as_me:$LINENO: result: no" >&5
2794echo "${ECHO_T}no" >&6
2795 elif test "$wxUSE_LIBPNG" = sys; then
2796 echo "$as_me:$LINENO: result: system version" >&5
2797echo "${ECHO_T}system version" >&6
2798 elif test "$wxUSE_LIBPNG" = builtin; then
2799 echo "$as_me:$LINENO: result: builtin version" >&5
2800echo "${ECHO_T}builtin version" >&6
2801 else
2802 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2803echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806
2807
2808 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2809echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2810 no_cache=0
2811
2812# Check whether --with-libjpeg or --without-libjpeg was given.
2813if test "${with_libjpeg+set}" = set; then
2814 withval="$with_libjpeg"
2815
2816 if test "$withval" = yes; then
2817 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2818 elif test "$withval" = no; then
2819 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2820 elif test "$withval" = sys; then
2821 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2822 elif test "$withval" = builtin; then
2823 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2824 else
2825 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2826echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2827 { (exit 1); exit 1; }; }
2828 fi
2829
2830else
2831
2832 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2833 if test "x$LINE" != x ; then
2834 eval "DEFAULT_$LINE"
2835 else
2836 no_cache=1
2837 fi
2838
2839 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2840
2841fi;
2842
2843 eval "$ac_cv_use_libjpeg"
2844 if test "$no_cache" != 1; then
2845 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2846 fi
2847
2848 if test "$wxUSE_LIBJPEG" = yes; then
2849 echo "$as_me:$LINENO: result: yes" >&5
2850echo "${ECHO_T}yes" >&6
2851 elif test "$wxUSE_LIBJPEG" = no; then
2852 echo "$as_me:$LINENO: result: no" >&5
2853echo "${ECHO_T}no" >&6
2854 elif test "$wxUSE_LIBJPEG" = sys; then
2855 echo "$as_me:$LINENO: result: system version" >&5
2856echo "${ECHO_T}system version" >&6
2857 elif test "$wxUSE_LIBJPEG" = builtin; then
2858 echo "$as_me:$LINENO: result: builtin version" >&5
2859echo "${ECHO_T}builtin version" >&6
2860 else
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2862echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
2864 fi
2865
2866
2867 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2868echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2869 no_cache=0
2870
2871# Check whether --with-libtiff or --without-libtiff was given.
2872if test "${with_libtiff+set}" = set; then
2873 withval="$with_libtiff"
2874
2875 if test "$withval" = yes; then
2876 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2877 elif test "$withval" = no; then
2878 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2879 elif test "$withval" = sys; then
2880 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2881 elif test "$withval" = builtin; then
2882 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2883 else
2884 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2885echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2886 { (exit 1); exit 1; }; }
2887 fi
2888
2889else
2890
2891 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2892 if test "x$LINE" != x ; then
2893 eval "DEFAULT_$LINE"
2894 else
2895 no_cache=1
2896 fi
2897
2898 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2899
2900fi;
2901
2902 eval "$ac_cv_use_libtiff"
2903 if test "$no_cache" != 1; then
2904 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2905 fi
2906
2907 if test "$wxUSE_LIBTIFF" = yes; then
2908 echo "$as_me:$LINENO: result: yes" >&5
2909echo "${ECHO_T}yes" >&6
2910 elif test "$wxUSE_LIBTIFF" = no; then
2911 echo "$as_me:$LINENO: result: no" >&5
2912echo "${ECHO_T}no" >&6
2913 elif test "$wxUSE_LIBTIFF" = sys; then
2914 echo "$as_me:$LINENO: result: system version" >&5
2915echo "${ECHO_T}system version" >&6
2916 elif test "$wxUSE_LIBTIFF" = builtin; then
2917 echo "$as_me:$LINENO: result: builtin version" >&5
2918echo "${ECHO_T}builtin version" >&6
2919 else
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
2923 fi
2924
2925
2926 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2927echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2928 no_cache=0
2929
2930# Check whether --with-libxpm or --without-libxpm was given.
2931if test "${with_libxpm+set}" = set; then
2932 withval="$with_libxpm"
2933
2934 if test "$withval" = yes; then
2935 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2936 elif test "$withval" = no; then
2937 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2938 elif test "$withval" = sys; then
2939 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2940 elif test "$withval" = builtin; then
2941 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2942 else
2943 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2944echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2945 { (exit 1); exit 1; }; }
2946 fi
2947
2948else
2949
2950 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2951 if test "x$LINE" != x ; then
2952 eval "DEFAULT_$LINE"
2953 else
2954 no_cache=1
2955 fi
2956
2957 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2958
2959fi;
2960
2961 eval "$ac_cv_use_libxpm"
2962 if test "$no_cache" != 1; then
2963 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2964 fi
2965
2966 if test "$wxUSE_LIBXPM" = yes; then
2967 echo "$as_me:$LINENO: result: yes" >&5
2968echo "${ECHO_T}yes" >&6
2969 elif test "$wxUSE_LIBXPM" = no; then
2970 echo "$as_me:$LINENO: result: no" >&5
2971echo "${ECHO_T}no" >&6
2972 elif test "$wxUSE_LIBXPM" = sys; then
2973 echo "$as_me:$LINENO: result: system version" >&5
2974echo "${ECHO_T}system version" >&6
2975 elif test "$wxUSE_LIBXPM" = builtin; then
2976 echo "$as_me:$LINENO: result: builtin version" >&5
2977echo "${ECHO_T}builtin version" >&6
2978 else
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984
2985 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2986echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2987 no_cache=0
2988
2989# Check whether --with-libmspack or --without-libmspack was given.
2990if test "${with_libmspack+set}" = set; then
2991 withval="$with_libmspack"
2992
2993 if test "$withval" = yes; then
2994 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2995 else
2996 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2997 fi
2998
2999else
3000
3001 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3002 if test "x$LINE" != x ; then
3003 eval "DEFAULT_$LINE"
3004 else
3005 no_cache=1
3006 fi
3007
3008 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3009
3010fi;
3011
3012 eval "$ac_cv_use_libmspack"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$wxUSE_LIBMSPACK" = yes; then
3018 echo "$as_me:$LINENO: result: yes" >&5
3019echo "${ECHO_T}yes" >&6
3020 else
3021 echo "$as_me:$LINENO: result: no" >&5
3022echo "${ECHO_T}no" >&6
3023 fi
3024
3025
3026 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3027echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3028 no_cache=0
3029
3030# Check whether --with-sdl or --without-sdl was given.
3031if test "${with_sdl+set}" = set; then
3032 withval="$with_sdl"
3033
3034 if test "$withval" = yes; then
3035 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3036 else
3037 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3038 fi
3039
3040else
3041
3042 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3043 if test "x$LINE" != x ; then
3044 eval "DEFAULT_$LINE"
3045 else
3046 no_cache=1
3047 fi
3048
3049 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3050
3051fi;
3052
3053 eval "$ac_cv_use_sdl"
3054 if test "$no_cache" != 1; then
3055 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3056 fi
3057
3058 if test "$wxUSE_LIBSDL" = yes; then
3059 echo "$as_me:$LINENO: result: yes" >&5
3060echo "${ECHO_T}yes" >&6
3061 else
3062 echo "$as_me:$LINENO: result: no" >&5
3063echo "${ECHO_T}no" >&6
3064 fi
3065
3066
3067 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3068echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3069 no_cache=0
3070
3071# Check whether --with-opengl or --without-opengl was given.
3072if test "${with_opengl+set}" = set; then
3073 withval="$with_opengl"
3074
3075 if test "$withval" = yes; then
3076 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3077 else
3078 ac_cv_use_opengl='wxUSE_OPENGL=no'
3079 fi
3080
3081else
3082
3083 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3084 if test "x$LINE" != x ; then
3085 eval "DEFAULT_$LINE"
3086 else
3087 no_cache=1
3088 fi
3089
3090 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3091
3092fi;
3093
3094 eval "$ac_cv_use_opengl"
3095 if test "$no_cache" != 1; then
3096 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3097 fi
3098
3099 if test "$wxUSE_OPENGL" = yes; then
3100 echo "$as_me:$LINENO: result: yes" >&5
3101echo "${ECHO_T}yes" >&6
3102 else
3103 echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
3105 fi
3106
3107
3108fi
3109
3110
3111 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3112echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3113 no_cache=0
3114
3115# Check whether --with-dmalloc or --without-dmalloc was given.
3116if test "${with_dmalloc+set}" = set; then
3117 withval="$with_dmalloc"
3118
3119 if test "$withval" = yes; then
3120 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3121 else
3122 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3123 fi
3124
3125else
3126
3127 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
3134 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3135
3136fi;
3137
3138 eval "$ac_cv_use_dmalloc"
3139 if test "$no_cache" != 1; then
3140 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3141 fi
3142
3143 if test "$wxUSE_DMALLOC" = yes; then
3144 echo "$as_me:$LINENO: result: yes" >&5
3145echo "${ECHO_T}yes" >&6
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148echo "${ECHO_T}no" >&6
3149 fi
3150
3151
3152 echo "$as_me:$LINENO: checking for --with-regex" >&5
3153echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3154 no_cache=0
3155
3156# Check whether --with-regex or --without-regex was given.
3157if test "${with_regex+set}" = set; then
3158 withval="$with_regex"
3159
3160 if test "$withval" = yes; then
3161 ac_cv_use_regex='wxUSE_REGEX=yes'
3162 elif test "$withval" = no; then
3163 ac_cv_use_regex='wxUSE_REGEX=no'
3164 elif test "$withval" = sys; then
3165 ac_cv_use_regex='wxUSE_REGEX=sys'
3166 elif test "$withval" = builtin; then
3167 ac_cv_use_regex='wxUSE_REGEX=builtin'
3168 else
3169 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3170echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3171 { (exit 1); exit 1; }; }
3172 fi
3173
3174else
3175
3176 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3184
3185fi;
3186
3187 eval "$ac_cv_use_regex"
3188 if test "$no_cache" != 1; then
3189 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3190 fi
3191
3192 if test "$wxUSE_REGEX" = yes; then
3193 echo "$as_me:$LINENO: result: yes" >&5
3194echo "${ECHO_T}yes" >&6
3195 elif test "$wxUSE_REGEX" = no; then
3196 echo "$as_me:$LINENO: result: no" >&5
3197echo "${ECHO_T}no" >&6
3198 elif test "$wxUSE_REGEX" = sys; then
3199 echo "$as_me:$LINENO: result: system version" >&5
3200echo "${ECHO_T}system version" >&6
3201 elif test "$wxUSE_REGEX" = builtin; then
3202 echo "$as_me:$LINENO: result: builtin version" >&5
3203echo "${ECHO_T}builtin version" >&6
3204 else
3205 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3206echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3207 { (exit 1); exit 1; }; }
3208 fi
3209
3210
3211 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3212echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3213 no_cache=0
3214
3215# Check whether --with-zlib or --without-zlib was given.
3216if test "${with_zlib+set}" = set; then
3217 withval="$with_zlib"
3218
3219 if test "$withval" = yes; then
3220 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3221 elif test "$withval" = no; then
3222 ac_cv_use_zlib='wxUSE_ZLIB=no'
3223 elif test "$withval" = sys; then
3224 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3225 elif test "$withval" = builtin; then
3226 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3227 else
3228 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3229echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3230 { (exit 1); exit 1; }; }
3231 fi
3232
3233else
3234
3235 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3236 if test "x$LINE" != x ; then
3237 eval "DEFAULT_$LINE"
3238 else
3239 no_cache=1
3240 fi
3241
3242 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3243
3244fi;
3245
3246 eval "$ac_cv_use_zlib"
3247 if test "$no_cache" != 1; then
3248 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3249 fi
3250
3251 if test "$wxUSE_ZLIB" = yes; then
3252 echo "$as_me:$LINENO: result: yes" >&5
3253echo "${ECHO_T}yes" >&6
3254 elif test "$wxUSE_ZLIB" = no; then
3255 echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257 elif test "$wxUSE_ZLIB" = sys; then
3258 echo "$as_me:$LINENO: result: system version" >&5
3259echo "${ECHO_T}system version" >&6
3260 elif test "$wxUSE_ZLIB" = builtin; then
3261 echo "$as_me:$LINENO: result: builtin version" >&5
3262echo "${ECHO_T}builtin version" >&6
3263 else
3264 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3265echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3266 { (exit 1); exit 1; }; }
3267 fi
3268
3269
3270 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3271echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3272 no_cache=0
3273
3274# Check whether --with-odbc or --without-odbc was given.
3275if test "${with_odbc+set}" = set; then
3276 withval="$with_odbc"
3277
3278 if test "$withval" = yes; then
3279 ac_cv_use_odbc='wxUSE_ODBC=yes'
3280 elif test "$withval" = no; then
3281 ac_cv_use_odbc='wxUSE_ODBC=no'
3282 elif test "$withval" = sys; then
3283 ac_cv_use_odbc='wxUSE_ODBC=sys'
3284 elif test "$withval" = builtin; then
3285 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3286 else
3287 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3288echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3289 { (exit 1); exit 1; }; }
3290 fi
3291
3292else
3293
3294 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3302
3303fi;
3304
3305 eval "$ac_cv_use_odbc"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_ODBC" = yes; then
3311 echo "$as_me:$LINENO: result: yes" >&5
3312echo "${ECHO_T}yes" >&6
3313 elif test "$wxUSE_ODBC" = no; then
3314 echo "$as_me:$LINENO: result: no" >&5
3315echo "${ECHO_T}no" >&6
3316 elif test "$wxUSE_ODBC" = sys; then
3317 echo "$as_me:$LINENO: result: system version" >&5
3318echo "${ECHO_T}system version" >&6
3319 elif test "$wxUSE_ODBC" = builtin; then
3320 echo "$as_me:$LINENO: result: builtin version" >&5
3321echo "${ECHO_T}builtin version" >&6
3322 else
3323 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3324echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3325 { (exit 1); exit 1; }; }
3326 fi
3327
3328
3329 echo "$as_me:$LINENO: checking for --with-expat" >&5
3330echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3331 no_cache=0
3332
3333# Check whether --with-expat or --without-expat was given.
3334if test "${with_expat+set}" = set; then
3335 withval="$with_expat"
3336
3337 if test "$withval" = yes; then
3338 ac_cv_use_expat='wxUSE_EXPAT=yes'
3339 elif test "$withval" = no; then
3340 ac_cv_use_expat='wxUSE_EXPAT=no'
3341 elif test "$withval" = sys; then
3342 ac_cv_use_expat='wxUSE_EXPAT=sys'
3343 elif test "$withval" = builtin; then
3344 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3345 else
3346 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3347echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3350
3351else
3352
3353 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3354 if test "x$LINE" != x ; then
3355 eval "DEFAULT_$LINE"
3356 else
3357 no_cache=1
3358 fi
3359
3360 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3361
3362fi;
3363
3364 eval "$ac_cv_use_expat"
3365 if test "$no_cache" != 1; then
3366 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3367 fi
3368
3369 if test "$wxUSE_EXPAT" = yes; then
3370 echo "$as_me:$LINENO: result: yes" >&5
3371echo "${ECHO_T}yes" >&6
3372 elif test "$wxUSE_EXPAT" = no; then
3373 echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6
3375 elif test "$wxUSE_EXPAT" = sys; then
3376 echo "$as_me:$LINENO: result: system version" >&5
3377echo "${ECHO_T}system version" >&6
3378 elif test "$wxUSE_EXPAT" = builtin; then
3379 echo "$as_me:$LINENO: result: builtin version" >&5
3380echo "${ECHO_T}builtin version" >&6
3381 else
3382 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3383echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3384 { (exit 1); exit 1; }; }
3385 fi
3386
3387
3388
3389
3390 enablestring=
3391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3392echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3393 no_cache=0
3394 # Check whether --enable-shared or --disable-shared was given.
3395if test "${enable_shared+set}" = set; then
3396 enableval="$enable_shared"
3397
3398 if test "$enableval" = yes; then
3399 ac_cv_use_shared='wxUSE_SHARED=yes'
3400 else
3401 ac_cv_use_shared='wxUSE_SHARED=no'
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3414
3415fi;
3416
3417 eval "$ac_cv_use_shared"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_SHARED" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425 else
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428 fi
3429
3430
3431 enablestring=
3432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3433echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3434 no_cache=0
3435 # Check whether --enable-optimise or --disable-optimise was given.
3436if test "${enable_optimise+set}" = set; then
3437 enableval="$enable_optimise"
3438
3439 if test "$enableval" = yes; then
3440 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3441 else
3442 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3443 fi
3444
3445else
3446
3447 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3448 if test "x$LINE" != x ; then
3449 eval "DEFAULT_$LINE"
3450 else
3451 no_cache=1
3452 fi
3453
3454 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3455
3456fi;
3457
3458 eval "$ac_cv_use_optimise"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_OPTIMISE" = yes; then
3464 echo "$as_me:$LINENO: result: yes" >&5
3465echo "${ECHO_T}yes" >&6
3466 else
3467 echo "$as_me:$LINENO: result: no" >&5
3468echo "${ECHO_T}no" >&6
3469 fi
3470
3471
3472 enablestring=
3473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3474echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3475 no_cache=0
3476 # Check whether --enable-debug or --disable-debug was given.
3477if test "${enable_debug+set}" = set; then
3478 enableval="$enable_debug"
3479
3480 if test "$enableval" = yes; then
3481 ac_cv_use_debug='wxUSE_DEBUG=yes'
3482 else
3483 ac_cv_use_debug='wxUSE_DEBUG=no'
3484 fi
3485
3486else
3487
3488 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3496
3497fi;
3498
3499 eval "$ac_cv_use_debug"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_DEBUG" = yes; then
3505 echo "$as_me:$LINENO: result: yes" >&5
3506echo "${ECHO_T}yes" >&6
3507 else
3508 echo "$as_me:$LINENO: result: no" >&5
3509echo "${ECHO_T}no" >&6
3510 fi
3511
3512
3513 enablestring=
3514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3515echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3516 no_cache=0
3517 # Check whether --enable-stl or --disable-stl was given.
3518if test "${enable_stl+set}" = set; then
3519 enableval="$enable_stl"
3520
3521 if test "$enableval" = yes; then
3522 ac_cv_use_stl='wxUSE_STL=yes'
3523 else
3524 ac_cv_use_stl='wxUSE_STL=no'
3525 fi
3526
3527else
3528
3529 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3537
3538fi;
3539
3540 eval "$ac_cv_use_stl"
3541 if test "$no_cache" != 1; then
3542 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3543 fi
3544
3545 if test "$wxUSE_STL" = yes; then
3546 echo "$as_me:$LINENO: result: yes" >&5
3547echo "${ECHO_T}yes" >&6
3548 else
3549 echo "$as_me:$LINENO: result: no" >&5
3550echo "${ECHO_T}no" >&6
3551 fi
3552
3553if test "$USE_OS2" = "1"; then
3554
3555 enablestring=
3556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3557echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3558 no_cache=0
3559 # Check whether --enable-omf or --disable-omf was given.
3560if test "${enable_omf+set}" = set; then
3561 enableval="$enable_omf"
3562
3563 if test "$enableval" = yes; then
3564 ac_cv_use_omf='wxUSE_OMF=yes'
3565 else
3566 ac_cv_use_omf='wxUSE_OMF=no'
3567 fi
3568
3569else
3570
3571 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3579
3580fi;
3581
3582 eval "$ac_cv_use_omf"
3583 if test "$no_cache" != 1; then
3584 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3585 fi
3586
3587 if test "$wxUSE_OMF" = yes; then
3588 echo "$as_me:$LINENO: result: yes" >&5
3589echo "${ECHO_T}yes" >&6
3590 else
3591 echo "$as_me:$LINENO: result: no" >&5
3592echo "${ECHO_T}no" >&6
3593 fi
3594
3595fi
3596
3597if test "$wxUSE_DEBUG" = "yes"; then
3598 DEFAULT_wxUSE_DEBUG_FLAG=yes
3599 DEFAULT_wxUSE_DEBUG_INFO=yes
3600 BUILD=debug
3601elif test "$wxUSE_DEBUG" = "no"; then
3602 DEFAULT_wxUSE_DEBUG_FLAG=no
3603 DEFAULT_wxUSE_DEBUG_INFO=no
3604 BUILD=release
3605fi
3606
3607
3608 enablestring=
3609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3610echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3611 no_cache=0
3612 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3613if test "${enable_debug_flag+set}" = set; then
3614 enableval="$enable_debug_flag"
3615
3616 if test "$enableval" = yes; then
3617 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3618 else
3619 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3620 fi
3621
3622else
3623
3624 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3632
3633fi;
3634
3635 eval "$ac_cv_use_debug_flag"
3636 if test "$no_cache" != 1; then
3637 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3638 fi
3639
3640 if test "$wxUSE_DEBUG_FLAG" = yes; then
3641 echo "$as_me:$LINENO: result: yes" >&5
3642echo "${ECHO_T}yes" >&6
3643 else
3644 echo "$as_me:$LINENO: result: no" >&5
3645echo "${ECHO_T}no" >&6
3646 fi
3647
3648
3649 enablestring=
3650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3651echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3652 no_cache=0
3653 # Check whether --enable-debug_info or --disable-debug_info was given.
3654if test "${enable_debug_info+set}" = set; then
3655 enableval="$enable_debug_info"
3656
3657 if test "$enableval" = yes; then
3658 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3659 else
3660 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3661 fi
3662
3663else
3664
3665 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3666 if test "x$LINE" != x ; then
3667 eval "DEFAULT_$LINE"
3668 else
3669 no_cache=1
3670 fi
3671
3672 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3673
3674fi;
3675
3676 eval "$ac_cv_use_debug_info"
3677 if test "$no_cache" != 1; then
3678 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3679 fi
3680
3681 if test "$wxUSE_DEBUG_INFO" = yes; then
3682 echo "$as_me:$LINENO: result: yes" >&5
3683echo "${ECHO_T}yes" >&6
3684 else
3685 echo "$as_me:$LINENO: result: no" >&5
3686echo "${ECHO_T}no" >&6
3687 fi
3688
3689
3690 enablestring=
3691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3692echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3693 no_cache=0
3694 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3695if test "${enable_debug_gdb+set}" = set; then
3696 enableval="$enable_debug_gdb"
3697
3698 if test "$enableval" = yes; then
3699 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3700 else
3701 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3702 fi
3703
3704else
3705
3706 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3707 if test "x$LINE" != x ; then
3708 eval "DEFAULT_$LINE"
3709 else
3710 no_cache=1
3711 fi
3712
3713 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3714
3715fi;
3716
3717 eval "$ac_cv_use_debug_gdb"
3718 if test "$no_cache" != 1; then
3719 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3720 fi
3721
3722 if test "$wxUSE_DEBUG_GDB" = yes; then
3723 echo "$as_me:$LINENO: result: yes" >&5
3724echo "${ECHO_T}yes" >&6
3725 else
3726 echo "$as_me:$LINENO: result: no" >&5
3727echo "${ECHO_T}no" >&6
3728 fi
3729
3730
3731 enablestring=
3732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3733echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3734 no_cache=0
3735 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3736if test "${enable_debug_cntxt+set}" = set; then
3737 enableval="$enable_debug_cntxt"
3738
3739 if test "$enableval" = yes; then
3740 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3741 else
3742 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3743 fi
3744
3745else
3746
3747 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3748 if test "x$LINE" != x ; then
3749 eval "DEFAULT_$LINE"
3750 else
3751 no_cache=1
3752 fi
3753
3754 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3755
3756fi;
3757
3758 eval "$ac_cv_use_debug_cntxt"
3759 if test "$no_cache" != 1; then
3760 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3761 fi
3762
3763 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3764 echo "$as_me:$LINENO: result: yes" >&5
3765echo "${ECHO_T}yes" >&6
3766 else
3767 echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6
3769 fi
3770
3771
3772 enablestring=
3773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3774echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3775 no_cache=0
3776 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3777if test "${enable_mem_tracing+set}" = set; then
3778 enableval="$enable_mem_tracing"
3779
3780 if test "$enableval" = yes; then
3781 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3782 else
3783 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3784 fi
3785
3786else
3787
3788 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3789 if test "x$LINE" != x ; then
3790 eval "DEFAULT_$LINE"
3791 else
3792 no_cache=1
3793 fi
3794
3795 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3796
3797fi;
3798
3799 eval "$ac_cv_use_mem_tracing"
3800 if test "$no_cache" != 1; then
3801 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3802 fi
3803
3804 if test "$wxUSE_MEM_TRACING" = yes; then
3805 echo "$as_me:$LINENO: result: yes" >&5
3806echo "${ECHO_T}yes" >&6
3807 else
3808 echo "$as_me:$LINENO: result: no" >&5
3809echo "${ECHO_T}no" >&6
3810 fi
3811
3812
3813 enablestring=
3814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3815echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3816 no_cache=0
3817 # Check whether --enable-profile or --disable-profile was given.
3818if test "${enable_profile+set}" = set; then
3819 enableval="$enable_profile"
3820
3821 if test "$enableval" = yes; then
3822 ac_cv_use_profile='wxUSE_PROFILE=yes'
3823 else
3824 ac_cv_use_profile='wxUSE_PROFILE=no'
3825 fi
3826
3827else
3828
3829 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3830 if test "x$LINE" != x ; then
3831 eval "DEFAULT_$LINE"
3832 else
3833 no_cache=1
3834 fi
3835
3836 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3837
3838fi;
3839
3840 eval "$ac_cv_use_profile"
3841 if test "$no_cache" != 1; then
3842 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3843 fi
3844
3845 if test "$wxUSE_PROFILE" = yes; then
3846 echo "$as_me:$LINENO: result: yes" >&5
3847echo "${ECHO_T}yes" >&6
3848 else
3849 echo "$as_me:$LINENO: result: no" >&5
3850echo "${ECHO_T}no" >&6
3851 fi
3852
3853
3854 enablestring=
3855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3856echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3857 no_cache=0
3858 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3859if test "${enable_no_rtti+set}" = set; then
3860 enableval="$enable_no_rtti"
3861
3862 if test "$enableval" = yes; then
3863 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3864 else
3865 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3866 fi
3867
3868else
3869
3870 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3871 if test "x$LINE" != x ; then
3872 eval "DEFAULT_$LINE"
3873 else
3874 no_cache=1
3875 fi
3876
3877 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3878
3879fi;
3880
3881 eval "$ac_cv_use_no_rtti"
3882 if test "$no_cache" != 1; then
3883 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3884 fi
3885
3886 if test "$wxUSE_NO_RTTI" = yes; then
3887 echo "$as_me:$LINENO: result: yes" >&5
3888echo "${ECHO_T}yes" >&6
3889 else
3890 echo "$as_me:$LINENO: result: no" >&5
3891echo "${ECHO_T}no" >&6
3892 fi
3893
3894
3895 enablestring=
3896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3897echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3898 no_cache=0
3899 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3900if test "${enable_no_exceptions+set}" = set; then
3901 enableval="$enable_no_exceptions"
3902
3903 if test "$enableval" = yes; then
3904 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3905 else
3906 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3907 fi
3908
3909else
3910
3911 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3919
3920fi;
3921
3922 eval "$ac_cv_use_no_exceptions"
3923 if test "$no_cache" != 1; then
3924 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3925 fi
3926
3927 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3928 echo "$as_me:$LINENO: result: yes" >&5
3929echo "${ECHO_T}yes" >&6
3930 else
3931 echo "$as_me:$LINENO: result: no" >&5
3932echo "${ECHO_T}no" >&6
3933 fi
3934
3935
3936 enablestring=
3937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3938echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3939 no_cache=0
3940 # Check whether --enable-permissive or --disable-permissive was given.
3941if test "${enable_permissive+set}" = set; then
3942 enableval="$enable_permissive"
3943
3944 if test "$enableval" = yes; then
3945 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3946 else
3947 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3948 fi
3949
3950else
3951
3952 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3953 if test "x$LINE" != x ; then
3954 eval "DEFAULT_$LINE"
3955 else
3956 no_cache=1
3957 fi
3958
3959 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3960
3961fi;
3962
3963 eval "$ac_cv_use_permissive"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_PERMISSIVE" = yes; then
3969 echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
3971 else
3972 echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6
3974 fi
3975
3976
3977 enablestring=
3978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3979echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3980 no_cache=0
3981 # Check whether --enable-no_deps or --disable-no_deps was given.
3982if test "${enable_no_deps+set}" = set; then
3983 enableval="$enable_no_deps"
3984
3985 if test "$enableval" = yes; then
3986 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3987 else
3988 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3989 fi
3990
3991else
3992
3993 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4001
4002fi;
4003
4004 eval "$ac_cv_use_no_deps"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_NO_DEPS" = yes; then
4010 echo "$as_me:$LINENO: result: yes" >&5
4011echo "${ECHO_T}yes" >&6
4012 else
4013 echo "$as_me:$LINENO: result: no" >&5
4014echo "${ECHO_T}no" >&6
4015 fi
4016
4017
4018
4019 enablestring=
4020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4021echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4022 no_cache=0
4023 # Check whether --enable-compat22 or --disable-compat22 was given.
4024if test "${enable_compat22+set}" = set; then
4025 enableval="$enable_compat22"
4026
4027 if test "$enableval" = yes; then
4028 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4029 else
4030 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4031 fi
4032
4033else
4034
4035 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4036 if test "x$LINE" != x ; then
4037 eval "DEFAULT_$LINE"
4038 else
4039 no_cache=1
4040 fi
4041
4042 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4043
4044fi;
4045
4046 eval "$ac_cv_use_compat22"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4052 echo "$as_me:$LINENO: result: yes" >&5
4053echo "${ECHO_T}yes" >&6
4054 else
4055 echo "$as_me:$LINENO: result: no" >&5
4056echo "${ECHO_T}no" >&6
4057 fi
4058
4059
4060 enablestring=disable
4061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4062echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4063 no_cache=0
4064 # Check whether --enable-compat24 or --disable-compat24 was given.
4065if test "${enable_compat24+set}" = set; then
4066 enableval="$enable_compat24"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4070 else
4071 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4072 fi
4073
4074else
4075
4076 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4084
4085fi;
4086
4087 eval "$ac_cv_use_compat24"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4093 echo "$as_me:$LINENO: result: yes" >&5
4094echo "${ECHO_T}yes" >&6
4095 else
4096 echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6
4098 fi
4099
4100
4101# Check whether --enable-rpath or --disable-rpath was given.
4102if test "${enable_rpath+set}" = set; then
4103 enableval="$enable_rpath"
4104 wxRPATH_DIR="$enableval"
4105fi;
4106
ac1cb8d3 4107if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4108 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4109fi
4110
4111
4112
4113
4114 enablestring=
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4117 no_cache=0
4118 # Check whether --enable-intl or --disable-intl was given.
4119if test "${enable_intl+set}" = set; then
4120 enableval="$enable_intl"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_intl='wxUSE_INTL=yes'
4124 else
4125 ac_cv_use_intl='wxUSE_INTL=no'
4126 fi
4127
4128else
4129
4130 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4138
4139fi;
4140
4141 eval "$ac_cv_use_intl"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$wxUSE_INTL" = yes; then
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152 fi
4153
4154
4155 enablestring=
4156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4157echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4158 no_cache=0
4159 # Check whether --enable-config or --disable-config was given.
4160if test "${enable_config+set}" = set; then
4161 enableval="$enable_config"
4162
4163 if test "$enableval" = yes; then
4164 ac_cv_use_config='wxUSE_CONFIG=yes'
4165 else
4166 ac_cv_use_config='wxUSE_CONFIG=no'
4167 fi
4168
4169else
4170
4171 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4172 if test "x$LINE" != x ; then
4173 eval "DEFAULT_$LINE"
4174 else
4175 no_cache=1
4176 fi
4177
4178 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4179
4180fi;
4181
4182 eval "$ac_cv_use_config"
4183 if test "$no_cache" != 1; then
4184 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4185 fi
4186
4187 if test "$wxUSE_CONFIG" = yes; then
4188 echo "$as_me:$LINENO: result: yes" >&5
4189echo "${ECHO_T}yes" >&6
4190 else
4191 echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
4193 fi
4194
4195
4196
4197 enablestring=
4198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4199echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4200 no_cache=0
4201 # Check whether --enable-protocols or --disable-protocols was given.
4202if test "${enable_protocols+set}" = set; then
4203 enableval="$enable_protocols"
4204
4205 if test "$enableval" = yes; then
4206 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4207 else
4208 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4209 fi
4210
4211else
4212
4213 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4214 if test "x$LINE" != x ; then
4215 eval "DEFAULT_$LINE"
4216 else
4217 no_cache=1
4218 fi
4219
4220 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4221
4222fi;
4223
4224 eval "$ac_cv_use_protocols"
4225 if test "$no_cache" != 1; then
4226 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4227 fi
4228
4229 if test "$wxUSE_PROTOCOL" = yes; then
4230 echo "$as_me:$LINENO: result: yes" >&5
4231echo "${ECHO_T}yes" >&6
4232 else
4233 echo "$as_me:$LINENO: result: no" >&5
4234echo "${ECHO_T}no" >&6
4235 fi
4236
4237
4238 enablestring=
4239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4240echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4241 no_cache=0
4242 # Check whether --enable-ftp or --disable-ftp was given.
4243if test "${enable_ftp+set}" = set; then
4244 enableval="$enable_ftp"
4245
4246 if test "$enableval" = yes; then
4247 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4248 else
4249 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4250 fi
4251
4252else
4253
4254 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4255 if test "x$LINE" != x ; then
4256 eval "DEFAULT_$LINE"
4257 else
4258 no_cache=1
4259 fi
4260
4261 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4262
4263fi;
4264
4265 eval "$ac_cv_use_ftp"
4266 if test "$no_cache" != 1; then
4267 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4268 fi
4269
4270 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4271 echo "$as_me:$LINENO: result: yes" >&5
4272echo "${ECHO_T}yes" >&6
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275echo "${ECHO_T}no" >&6
4276 fi
4277
4278
4279 enablestring=
4280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4281echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4282 no_cache=0
4283 # Check whether --enable-http or --disable-http was given.
4284if test "${enable_http+set}" = set; then
4285 enableval="$enable_http"
4286
4287 if test "$enableval" = yes; then
4288 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4289 else
4290 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4291 fi
4292
4293else
4294
4295 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4296 if test "x$LINE" != x ; then
4297 eval "DEFAULT_$LINE"
4298 else
4299 no_cache=1
4300 fi
4301
4302 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4303
4304fi;
4305
4306 eval "$ac_cv_use_http"
4307 if test "$no_cache" != 1; then
4308 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4309 fi
4310
4311 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4312 echo "$as_me:$LINENO: result: yes" >&5
4313echo "${ECHO_T}yes" >&6
4314 else
4315 echo "$as_me:$LINENO: result: no" >&5
4316echo "${ECHO_T}no" >&6
4317 fi
4318
4319
4320 enablestring=
4321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4322echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4323 no_cache=0
4324 # Check whether --enable-fileproto or --disable-fileproto was given.
4325if test "${enable_fileproto+set}" = set; then
4326 enableval="$enable_fileproto"
4327
4328 if test "$enableval" = yes; then
4329 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4330 else
4331 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4332 fi
4333
4334else
4335
4336 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4337 if test "x$LINE" != x ; then
4338 eval "DEFAULT_$LINE"
4339 else
4340 no_cache=1
4341 fi
4342
4343 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4344
4345fi;
4346
4347 eval "$ac_cv_use_fileproto"
4348 if test "$no_cache" != 1; then
4349 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4350 fi
4351
4352 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4353 echo "$as_me:$LINENO: result: yes" >&5
4354echo "${ECHO_T}yes" >&6
4355 else
4356 echo "$as_me:$LINENO: result: no" >&5
4357echo "${ECHO_T}no" >&6
4358 fi
4359
4360
4361 enablestring=
4362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4363echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4364 no_cache=0
4365 # Check whether --enable-sockets or --disable-sockets was given.
4366if test "${enable_sockets+set}" = set; then
4367 enableval="$enable_sockets"
4368
4369 if test "$enableval" = yes; then
4370 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4371 else
4372 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4373 fi
4374
4375else
4376
4377 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
4384 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4385
4386fi;
4387
4388 eval "$ac_cv_use_sockets"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_SOCKETS" = yes; then
4394 echo "$as_me:$LINENO: result: yes" >&5
4395echo "${ECHO_T}yes" >&6
4396 else
4397 echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
4399 fi
4400
4401
4402 enablestring=
4403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4404echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4405 no_cache=0
4406 # Check whether --enable-ole or --disable-ole was given.
4407if test "${enable_ole+set}" = set; then
4408 enableval="$enable_ole"
4409
4410 if test "$enableval" = yes; then
4411 ac_cv_use_ole='wxUSE_OLE=yes'
4412 else
4413 ac_cv_use_ole='wxUSE_OLE=no'
4414 fi
4415
4416else
4417
4418 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4419 if test "x$LINE" != x ; then
4420 eval "DEFAULT_$LINE"
4421 else
4422 no_cache=1
4423 fi
4424
4425 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4426
4427fi;
4428
4429 eval "$ac_cv_use_ole"
4430 if test "$no_cache" != 1; then
4431 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4432 fi
4433
4434 if test "$wxUSE_OLE" = yes; then
4435 echo "$as_me:$LINENO: result: yes" >&5
4436echo "${ECHO_T}yes" >&6
4437 else
4438 echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6
4440 fi
4441
4442
4443 enablestring=
4444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4445echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4446 no_cache=0
4447 # Check whether --enable-dataobj or --disable-dataobj was given.
4448if test "${enable_dataobj+set}" = set; then
4449 enableval="$enable_dataobj"
4450
4451 if test "$enableval" = yes; then
4452 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4453 else
4454 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4455 fi
4456
4457else
4458
4459 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
4466 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4467
4468fi;
4469
4470 eval "$ac_cv_use_dataobj"
4471 if test "$no_cache" != 1; then
4472 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4473 fi
4474
4475 if test "$wxUSE_DATAOBJ" = yes; then
4476 echo "$as_me:$LINENO: result: yes" >&5
4477echo "${ECHO_T}yes" >&6
4478 else
4479 echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6
4481 fi
4482
4483
4484
4485 enablestring=
4486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4487echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4488 no_cache=0
4489 # Check whether --enable-ipc or --disable-ipc was given.
4490if test "${enable_ipc+set}" = set; then
4491 enableval="$enable_ipc"
4492
4493 if test "$enableval" = yes; then
4494 ac_cv_use_ipc='wxUSE_IPC=yes'
4495 else
4496 ac_cv_use_ipc='wxUSE_IPC=no'
4497 fi
4498
4499else
4500
4501 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4509
4510fi;
4511
4512 eval "$ac_cv_use_ipc"
4513 if test "$no_cache" != 1; then
4514 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4515 fi
4516
4517 if test "$wxUSE_IPC" = yes; then
4518 echo "$as_me:$LINENO: result: yes" >&5
4519echo "${ECHO_T}yes" >&6
4520 else
4521 echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6
4523 fi
4524
4525
4526
4527 enablestring=
4528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4529echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4530 no_cache=0
4531 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4532if test "${enable_apple_ieee+set}" = set; then
4533 enableval="$enable_apple_ieee"
4534
4535 if test "$enableval" = yes; then
4536 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4537 else
4538 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4539 fi
4540
4541else
4542
4543 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
4550 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4551
4552fi;
4553
4554 eval "$ac_cv_use_apple_ieee"
4555 if test "$no_cache" != 1; then
4556 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4557 fi
4558
4559 if test "$wxUSE_APPLE_IEEE" = yes; then
4560 echo "$as_me:$LINENO: result: yes" >&5
4561echo "${ECHO_T}yes" >&6
4562 else
4563 echo "$as_me:$LINENO: result: no" >&5
4564echo "${ECHO_T}no" >&6
4565 fi
4566
4567
4568 enablestring=
4569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4570echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4571 no_cache=0
4572 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4573if test "${enable_catch_segvs+set}" = set; then
4574 enableval="$enable_catch_segvs"
4575
4576 if test "$enableval" = yes; then
4577 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4578 else
4579 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4580 fi
4581
4582else
4583
4584 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4585 if test "x$LINE" != x ; then
4586 eval "DEFAULT_$LINE"
4587 else
4588 no_cache=1
4589 fi
4590
4591 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4592
4593fi;
4594
4595 eval "$ac_cv_use_catch_segvs"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4601 echo "$as_me:$LINENO: result: yes" >&5
4602echo "${ECHO_T}yes" >&6
4603 else
4604 echo "$as_me:$LINENO: result: no" >&5
4605echo "${ECHO_T}no" >&6
4606 fi
4607
4608
4609 enablestring=
4610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4611echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4612 no_cache=0
4613 # Check whether --enable-cmdline or --disable-cmdline was given.
4614if test "${enable_cmdline+set}" = set; then
4615 enableval="$enable_cmdline"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4619 else
4620 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4621 fi
4622
4623else
4624
4625 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
4632 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4633
4634fi;
4635
4636 eval "$ac_cv_use_cmdline"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643echo "${ECHO_T}yes" >&6
4644 else
4645 echo "$as_me:$LINENO: result: no" >&5
4646echo "${ECHO_T}no" >&6
4647 fi
4648
4649
4650 enablestring=
4651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4652echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4653 no_cache=0
4654 # Check whether --enable-datetime or --disable-datetime was given.
4655if test "${enable_datetime+set}" = set; then
4656 enableval="$enable_datetime"
4657
4658 if test "$enableval" = yes; then
4659 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4660 else
4661 ac_cv_use_datetime='wxUSE_DATETIME=no'
4662 fi
4663
4664else
4665
4666 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4667 if test "x$LINE" != x ; then
4668 eval "DEFAULT_$LINE"
4669 else
4670 no_cache=1
4671 fi
4672
4673 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4674
4675fi;
4676
4677 eval "$ac_cv_use_datetime"
4678 if test "$no_cache" != 1; then
4679 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4680 fi
4681
4682 if test "$wxUSE_DATETIME" = yes; then
4683 echo "$as_me:$LINENO: result: yes" >&5
4684echo "${ECHO_T}yes" >&6
4685 else
4686 echo "$as_me:$LINENO: result: no" >&5
4687echo "${ECHO_T}no" >&6
4688 fi
4689
4690
4691 enablestring=
4692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4693echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4694 no_cache=0
4695 # Check whether --enable-dialupman or --disable-dialupman was given.
4696if test "${enable_dialupman+set}" = set; then
4697 enableval="$enable_dialupman"
4698
4699 if test "$enableval" = yes; then
4700 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4701 else
4702 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4703 fi
4704
4705else
4706
4707 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4715
4716fi;
4717
4718 eval "$ac_cv_use_dialupman"
4719 if test "$no_cache" != 1; then
4720 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4721 fi
4722
4723 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4724 echo "$as_me:$LINENO: result: yes" >&5
4725echo "${ECHO_T}yes" >&6
4726 else
4727 echo "$as_me:$LINENO: result: no" >&5
4728echo "${ECHO_T}no" >&6
4729 fi
4730
4731
4732 enablestring=
4733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4734echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4735 no_cache=0
4736 # Check whether --enable-dynlib or --disable-dynlib was given.
4737if test "${enable_dynlib+set}" = set; then
4738 enableval="$enable_dynlib"
4739
4740 if test "$enableval" = yes; then
4741 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4742 else
4743 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4744 fi
4745
4746else
4747
4748 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4749 if test "x$LINE" != x ; then
4750 eval "DEFAULT_$LINE"
4751 else
4752 no_cache=1
4753 fi
4754
4755 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4756
4757fi;
4758
4759 eval "$ac_cv_use_dynlib"
4760 if test "$no_cache" != 1; then
4761 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4762 fi
4763
4764 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4765 echo "$as_me:$LINENO: result: yes" >&5
4766echo "${ECHO_T}yes" >&6
4767 else
4768 echo "$as_me:$LINENO: result: no" >&5
4769echo "${ECHO_T}no" >&6
4770 fi
4771
4772
4773 enablestring=
4774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4775echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4776 no_cache=0
4777 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4778if test "${enable_dynamicloader+set}" = set; then
4779 enableval="$enable_dynamicloader"
4780
4781 if test "$enableval" = yes; then
4782 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4783 else
4784 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4785 fi
4786
4787else
4788
4789 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4790 if test "x$LINE" != x ; then
4791 eval "DEFAULT_$LINE"
4792 else
4793 no_cache=1
4794 fi
4795
4796 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4797
4798fi;
4799
4800 eval "$ac_cv_use_dynamicloader"
4801 if test "$no_cache" != 1; then
4802 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4803 fi
4804
4805 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4806 echo "$as_me:$LINENO: result: yes" >&5
4807echo "${ECHO_T}yes" >&6
4808 else
4809 echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
4811 fi
4812
4813
4814 enablestring=
4815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4816echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4817 no_cache=0
4818 # Check whether --enable-exceptions or --disable-exceptions was given.
4819if test "${enable_exceptions+set}" = set; then
4820 enableval="$enable_exceptions"
4821
4822 if test "$enableval" = yes; then
4823 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4824 else
4825 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4826 fi
4827
4828else
4829
4830 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4831 if test "x$LINE" != x ; then
4832 eval "DEFAULT_$LINE"
4833 else
4834 no_cache=1
4835 fi
4836
4837 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4838
4839fi;
4840
4841 eval "$ac_cv_use_exceptions"
4842 if test "$no_cache" != 1; then
4843 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4844 fi
4845
4846 if test "$wxUSE_EXCEPTIONS" = yes; then
4847 echo "$as_me:$LINENO: result: yes" >&5
4848echo "${ECHO_T}yes" >&6
4849 else
4850 echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
4852 fi
4853
4854
4855 enablestring=
4856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4857echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4858 no_cache=0
4859 # Check whether --enable-ffile or --disable-ffile was given.
4860if test "${enable_ffile+set}" = set; then
4861 enableval="$enable_ffile"
4862
4863 if test "$enableval" = yes; then
4864 ac_cv_use_ffile='wxUSE_FFILE=yes'
4865 else
4866 ac_cv_use_ffile='wxUSE_FFILE=no'
4867 fi
4868
4869else
4870
4871 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4879
4880fi;
4881
4882 eval "$ac_cv_use_ffile"
4883 if test "$no_cache" != 1; then
4884 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4885 fi
4886
4887 if test "$wxUSE_FFILE" = yes; then
4888 echo "$as_me:$LINENO: result: yes" >&5
4889echo "${ECHO_T}yes" >&6
4890 else
4891 echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6
4893 fi
4894
4895
4896 enablestring=
4897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4898echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4899 no_cache=0
4900 # Check whether --enable-file or --disable-file was given.
4901if test "${enable_file+set}" = set; then
4902 enableval="$enable_file"
4903
4904 if test "$enableval" = yes; then
4905 ac_cv_use_file='wxUSE_FILE=yes'
4906 else
4907 ac_cv_use_file='wxUSE_FILE=no'
4908 fi
4909
4910else
4911
4912 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4920
4921fi;
4922
4923 eval "$ac_cv_use_file"
4924 if test "$no_cache" != 1; then
4925 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4926 fi
4927
4928 if test "$wxUSE_FILE" = yes; then
4929 echo "$as_me:$LINENO: result: yes" >&5
4930echo "${ECHO_T}yes" >&6
4931 else
4932 echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6
4934 fi
4935
4936
4937 enablestring=
4938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4939echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4940 no_cache=0
4941 # Check whether --enable-filesystem or --disable-filesystem was given.
4942if test "${enable_filesystem+set}" = set; then
4943 enableval="$enable_filesystem"
4944
4945 if test "$enableval" = yes; then
4946 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4947 else
4948 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4949 fi
4950
4951else
4952
4953 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4954 if test "x$LINE" != x ; then
4955 eval "DEFAULT_$LINE"
4956 else
4957 no_cache=1
4958 fi
4959
4960 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4961
4962fi;
4963
4964 eval "$ac_cv_use_filesystem"
4965 if test "$no_cache" != 1; then
4966 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4967 fi
4968
4969 if test "$wxUSE_FILESYSTEM" = yes; then
4970 echo "$as_me:$LINENO: result: yes" >&5
4971echo "${ECHO_T}yes" >&6
4972 else
4973 echo "$as_me:$LINENO: result: no" >&5
4974echo "${ECHO_T}no" >&6
4975 fi
4976
4977
4978 enablestring=
4979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4980echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4981 no_cache=0
4982 # Check whether --enable-fontmap or --disable-fontmap was given.
4983if test "${enable_fontmap+set}" = set; then
4984 enableval="$enable_fontmap"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4988 else
4989 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4990 fi
4991
4992else
4993
4994 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5002
5003fi;
5004
5005 eval "$ac_cv_use_fontmap"
5006 if test "$no_cache" != 1; then
5007 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5008 fi
5009
5010 if test "$wxUSE_FONTMAP" = yes; then
5011 echo "$as_me:$LINENO: result: yes" >&5
5012echo "${ECHO_T}yes" >&6
5013 else
5014 echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016 fi
5017
5018
5019 enablestring=
5020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5021echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5022 no_cache=0
5023 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5024if test "${enable_fs_inet+set}" = set; then
5025 enableval="$enable_fs_inet"
5026
5027 if test "$enableval" = yes; then
5028 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5029 else
5030 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5031 fi
5032
5033else
5034
5035 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5036 if test "x$LINE" != x ; then
5037 eval "DEFAULT_$LINE"
5038 else
5039 no_cache=1
5040 fi
5041
5042 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5043
5044fi;
5045
5046 eval "$ac_cv_use_fs_inet"
5047 if test "$no_cache" != 1; then
5048 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5049 fi
5050
5051 if test "$wxUSE_FS_INET" = yes; then
5052 echo "$as_me:$LINENO: result: yes" >&5
5053echo "${ECHO_T}yes" >&6
5054 else
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057 fi
5058
5059
5060 enablestring=
5061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5062echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5063 no_cache=0
5064 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5065if test "${enable_fs_zip+set}" = set; then
5066 enableval="$enable_fs_zip"
5067
5068 if test "$enableval" = yes; then
5069 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5070 else
5071 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5072 fi
5073
5074else
5075
5076 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5077 if test "x$LINE" != x ; then
5078 eval "DEFAULT_$LINE"
5079 else
5080 no_cache=1
5081 fi
5082
5083 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5084
5085fi;
5086
5087 eval "$ac_cv_use_fs_zip"
5088 if test "$no_cache" != 1; then
5089 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5090 fi
5091
5092 if test "$wxUSE_FS_ZIP" = yes; then
5093 echo "$as_me:$LINENO: result: yes" >&5
5094echo "${ECHO_T}yes" >&6
5095 else
5096 echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098 fi
5099
5100
5101 enablestring=
5102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5103echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5104 no_cache=0
5105 # Check whether --enable-geometry or --disable-geometry was given.
5106if test "${enable_geometry+set}" = set; then
5107 enableval="$enable_geometry"
5108
5109 if test "$enableval" = yes; then
5110 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5111 else
5112 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5113 fi
5114
5115else
5116
5117 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5118 if test "x$LINE" != x ; then
5119 eval "DEFAULT_$LINE"
5120 else
5121 no_cache=1
5122 fi
5123
5124 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5125
5126fi;
5127
5128 eval "$ac_cv_use_geometry"
5129 if test "$no_cache" != 1; then
5130 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5131 fi
5132
5133 if test "$wxUSE_GEOMETRY" = yes; then
5134 echo "$as_me:$LINENO: result: yes" >&5
5135echo "${ECHO_T}yes" >&6
5136 else
5137 echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
5139 fi
5140
5141
5142 enablestring=
5143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5144echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5145 no_cache=0
5146 # Check whether --enable-log or --disable-log was given.
5147if test "${enable_log+set}" = set; then
5148 enableval="$enable_log"
5149
5150 if test "$enableval" = yes; then
5151 ac_cv_use_log='wxUSE_LOG=yes'
5152 else
5153 ac_cv_use_log='wxUSE_LOG=no'
5154 fi
5155
5156else
5157
5158 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5159 if test "x$LINE" != x ; then
5160 eval "DEFAULT_$LINE"
5161 else
5162 no_cache=1
5163 fi
5164
5165 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5166
5167fi;
5168
5169 eval "$ac_cv_use_log"
5170 if test "$no_cache" != 1; then
5171 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5172 fi
5173
5174 if test "$wxUSE_LOG" = yes; then
5175 echo "$as_me:$LINENO: result: yes" >&5
5176echo "${ECHO_T}yes" >&6
5177 else
5178 echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
5180 fi
5181
5182
5183 enablestring=
5184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5185echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5186 no_cache=0
5187 # Check whether --enable-longlong or --disable-longlong was given.
5188if test "${enable_longlong+set}" = set; then
5189 enableval="$enable_longlong"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5193 else
5194 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5195 fi
5196
5197else
5198
5199 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5207
5208fi;
5209
5210 eval "$ac_cv_use_longlong"
5211 if test "$no_cache" != 1; then
5212 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5213 fi
5214
5215 if test "$wxUSE_LONGLONG" = yes; then
5216 echo "$as_me:$LINENO: result: yes" >&5
5217echo "${ECHO_T}yes" >&6
5218 else
5219 echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221 fi
5222
5223
5224 enablestring=
5225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5226echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5227 no_cache=0
5228 # Check whether --enable-mimetype or --disable-mimetype was given.
5229if test "${enable_mimetype+set}" = set; then
5230 enableval="$enable_mimetype"
5231
5232 if test "$enableval" = yes; then
5233 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5234 else
5235 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5236 fi
5237
5238else
5239
5240 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5241 if test "x$LINE" != x ; then
5242 eval "DEFAULT_$LINE"
5243 else
5244 no_cache=1
5245 fi
5246
5247 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5248
5249fi;
5250
5251 eval "$ac_cv_use_mimetype"
5252 if test "$no_cache" != 1; then
5253 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5254 fi
5255
5256 if test "$wxUSE_MIMETYPE" = yes; then
5257 echo "$as_me:$LINENO: result: yes" >&5
5258echo "${ECHO_T}yes" >&6
5259 else
5260 echo "$as_me:$LINENO: result: no" >&5
5261echo "${ECHO_T}no" >&6
5262 fi
5263
5264
5265 enablestring=
5266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5267echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5268 no_cache=0
5269 # Check whether --enable-mslu or --disable-mslu was given.
5270if test "${enable_mslu+set}" = set; then
5271 enableval="$enable_mslu"
5272
5273 if test "$enableval" = yes; then
5274 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5275 else
5276 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5277 fi
5278
5279else
5280
5281 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
5288 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5289
5290fi;
5291
5292 eval "$ac_cv_use_mslu"
5293 if test "$no_cache" != 1; then
5294 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5295 fi
5296
5297 if test "$wxUSE_UNICODE_MSLU" = yes; then
5298 echo "$as_me:$LINENO: result: yes" >&5
5299echo "${ECHO_T}yes" >&6
5300 else
5301 echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303 fi
5304
5305
5306 enablestring=
5307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5308echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5309 no_cache=0
5310 # Check whether --enable-snglinst or --disable-snglinst was given.
5311if test "${enable_snglinst+set}" = set; then
5312 enableval="$enable_snglinst"
5313
5314 if test "$enableval" = yes; then
5315 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5316 else
5317 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5318 fi
5319
5320else
5321
5322 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5323 if test "x$LINE" != x ; then
5324 eval "DEFAULT_$LINE"
5325 else
5326 no_cache=1
5327 fi
5328
5329 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5330
5331fi;
5332
5333 eval "$ac_cv_use_snglinst"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5339 echo "$as_me:$LINENO: result: yes" >&5
5340echo "${ECHO_T}yes" >&6
5341 else
5342 echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6
5344 fi
5345
5346
5347 enablestring=
5348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5349echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5350 no_cache=0
5351 # Check whether --enable-streams or --disable-streams was given.
5352if test "${enable_streams+set}" = set; then
5353 enableval="$enable_streams"
5354
5355 if test "$enableval" = yes; then
5356 ac_cv_use_streams='wxUSE_STREAMS=yes'
5357 else
5358 ac_cv_use_streams='wxUSE_STREAMS=no'
5359 fi
5360
5361else
5362
5363 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5364 if test "x$LINE" != x ; then
5365 eval "DEFAULT_$LINE"
5366 else
5367 no_cache=1
5368 fi
5369
5370 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5371
5372fi;
5373
5374 eval "$ac_cv_use_streams"
5375 if test "$no_cache" != 1; then
5376 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5377 fi
5378
5379 if test "$wxUSE_STREAMS" = yes; then
5380 echo "$as_me:$LINENO: result: yes" >&5
5381echo "${ECHO_T}yes" >&6
5382 else
5383 echo "$as_me:$LINENO: result: no" >&5
5384echo "${ECHO_T}no" >&6
5385 fi
5386
5387
5388 enablestring=
5389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5390echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5391 no_cache=0
5392 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5393if test "${enable_std_iostreams+set}" = set; then
5394 enableval="$enable_std_iostreams"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5398 else
5399 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5400 fi
5401
5402else
5403
5404 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5412
5413fi;
5414
5415 eval "$ac_cv_use_std_iostreams"
5416 if test "$no_cache" != 1; then
5417 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5418 fi
5419
5420 if test "$wxUSE_STD_IOSTREAM" = yes; then
5421 echo "$as_me:$LINENO: result: yes" >&5
5422echo "${ECHO_T}yes" >&6
5423 else
5424 echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6
5426 fi
5427
5428
5429 enablestring=
5430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5431echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5432 no_cache=0
5433 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5434if test "${enable_stopwatch+set}" = set; then
5435 enableval="$enable_stopwatch"
5436
5437 if test "$enableval" = yes; then
5438 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5439 else
5440 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5441 fi
5442
5443else
5444
5445 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5446 if test "x$LINE" != x ; then
5447 eval "DEFAULT_$LINE"
5448 else
5449 no_cache=1
5450 fi
5451
5452 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5453
5454fi;
5455
5456 eval "$ac_cv_use_stopwatch"
5457 if test "$no_cache" != 1; then
5458 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5459 fi
5460
5461 if test "$wxUSE_STOPWATCH" = yes; then
5462 echo "$as_me:$LINENO: result: yes" >&5
5463echo "${ECHO_T}yes" >&6
5464 else
5465 echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467 fi
5468
5469
5470 enablestring=
5471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5472echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5473 no_cache=0
5474 # Check whether --enable-system_options or --disable-system_options was given.
5475if test "${enable_system_options+set}" = set; then
5476 enableval="$enable_system_options"
5477
5478 if test "$enableval" = yes; then
5479 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5480 else
5481 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5482 fi
5483
5484else
5485
5486 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5487 if test "x$LINE" != x ; then
5488 eval "DEFAULT_$LINE"
5489 else
5490 no_cache=1
5491 fi
5492
5493 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5494
5495fi;
5496
5497 eval "$ac_cv_use_system_options"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5503 echo "$as_me:$LINENO: result: yes" >&5
5504echo "${ECHO_T}yes" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508 fi
5509
5510
5511 enablestring=
5512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5513echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5514 no_cache=0
5515 # Check whether --enable-textbuf or --disable-textbuf was given.
5516if test "${enable_textbuf+set}" = set; then
5517 enableval="$enable_textbuf"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5521 else
5522 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5523 fi
5524
5525else
5526
5527 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5535
5536fi;
5537
5538 eval "$ac_cv_use_textbuf"
5539 if test "$no_cache" != 1; then
5540 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5541 fi
5542
5543 if test "$wxUSE_TEXTBUFFER" = yes; then
5544 echo "$as_me:$LINENO: result: yes" >&5
5545echo "${ECHO_T}yes" >&6
5546 else
5547 echo "$as_me:$LINENO: result: no" >&5
5548echo "${ECHO_T}no" >&6
5549 fi
5550
5551
5552 enablestring=
5553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5554echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5555 no_cache=0
5556 # Check whether --enable-textfile or --disable-textfile was given.
5557if test "${enable_textfile+set}" = set; then
5558 enableval="$enable_textfile"
5559
5560 if test "$enableval" = yes; then
5561 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5562 else
5563 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5564 fi
5565
5566else
5567
5568 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
5575 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5576
5577fi;
5578
5579 eval "$ac_cv_use_textfile"
5580 if test "$no_cache" != 1; then
5581 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5582 fi
5583
5584 if test "$wxUSE_TEXTFILE" = yes; then
5585 echo "$as_me:$LINENO: result: yes" >&5
5586echo "${ECHO_T}yes" >&6
5587 else
5588 echo "$as_me:$LINENO: result: no" >&5
5589echo "${ECHO_T}no" >&6
5590 fi
5591
5592
5593 enablestring=
5594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5595echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5596 no_cache=0
5597 # Check whether --enable-timer or --disable-timer was given.
5598if test "${enable_timer+set}" = set; then
5599 enableval="$enable_timer"
5600
5601 if test "$enableval" = yes; then
5602 ac_cv_use_timer='wxUSE_TIMER=yes'
5603 else
5604 ac_cv_use_timer='wxUSE_TIMER=no'
5605 fi
5606
5607else
5608
5609 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5617
5618fi;
5619
5620 eval "$ac_cv_use_timer"
5621 if test "$no_cache" != 1; then
5622 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5623 fi
5624
5625 if test "$wxUSE_TIMER" = yes; then
5626 echo "$as_me:$LINENO: result: yes" >&5
5627echo "${ECHO_T}yes" >&6
5628 else
5629 echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6
5631 fi
5632
5633
5634 enablestring=
5635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5636echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5637 no_cache=0
5638 # Check whether --enable-unicode or --disable-unicode was given.
5639if test "${enable_unicode+set}" = set; then
5640 enableval="$enable_unicode"
5641
5642 if test "$enableval" = yes; then
5643 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5644 else
5645 ac_cv_use_unicode='wxUSE_UNICODE=no'
5646 fi
5647
5648else
5649
5650 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
5657 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5658
5659fi;
5660
5661 eval "$ac_cv_use_unicode"
5662 if test "$no_cache" != 1; then
5663 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5664 fi
5665
5666 if test "$wxUSE_UNICODE" = yes; then
5667 echo "$as_me:$LINENO: result: yes" >&5
5668echo "${ECHO_T}yes" >&6
5669 else
5670 echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
5672 fi
5673
5674
5675 enablestring=
5676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5677echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5678 no_cache=0
5679 # Check whether --enable-sound or --disable-sound was given.
5680if test "${enable_sound+set}" = set; then
5681 enableval="$enable_sound"
5682
5683 if test "$enableval" = yes; then
5684 ac_cv_use_sound='wxUSE_SOUND=yes'
5685 else
5686 ac_cv_use_sound='wxUSE_SOUND=no'
5687 fi
5688
5689else
5690
5691 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5692 if test "x$LINE" != x ; then
5693 eval "DEFAULT_$LINE"
5694 else
5695 no_cache=1
5696 fi
5697
5698 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5699
5700fi;
5701
5702 eval "$ac_cv_use_sound"
5703 if test "$no_cache" != 1; then
5704 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5705 fi
5706
5707 if test "$wxUSE_SOUND" = yes; then
5708 echo "$as_me:$LINENO: result: yes" >&5
5709echo "${ECHO_T}yes" >&6
5710 else
5711 echo "$as_me:$LINENO: result: no" >&5
5712echo "${ECHO_T}no" >&6
5713 fi
5714
5715
5716 enablestring=
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5718echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5719 no_cache=0
5720 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5721if test "${enable_wxprintfv+set}" = set; then
5722 enableval="$enable_wxprintfv"
5723
5724 if test "$enableval" = yes; then
5725 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5726 else
5727 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5728 fi
5729
5730else
5731
5732 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5740
5741fi;
5742
5743 eval "$ac_cv_use_wxprintfv"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5749 echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
5751 else
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754 fi
5755
5756
5757 enablestring=
5758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5759echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5760 no_cache=0
5761 # Check whether --enable-zipstream or --disable-zipstream was given.
5762if test "${enable_zipstream+set}" = set; then
5763 enableval="$enable_zipstream"
5764
5765 if test "$enableval" = yes; then
5766 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5767 else
5768 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5769 fi
5770
5771else
5772
5773 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5781
5782fi;
5783
5784 eval "$ac_cv_use_zipstream"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_ZIPSTREAM" = yes; then
5790 echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6
5792 else
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
5795 fi
5796
5797
a848cd7e
SC
5798
5799 enablestring=
5800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5801echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5802 no_cache=0
5803 # Check whether --enable-url or --disable-url was given.
5804if test "${enable_url+set}" = set; then
5805 enableval="$enable_url"
5806
5807 if test "$enableval" = yes; then
5808 ac_cv_use_url='wxUSE_URL=yes'
5809 else
5810 ac_cv_use_url='wxUSE_URL=no'
5811 fi
5812
5813else
5814
5815 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5816 if test "x$LINE" != x ; then
5817 eval "DEFAULT_$LINE"
5818 else
5819 no_cache=1
5820 fi
5821
5822 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5823
5824fi;
5825
5826 eval "$ac_cv_use_url"
5827 if test "$no_cache" != 1; then
5828 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5829 fi
5830
5831 if test "$wxUSE_URL" = yes; then
5832 echo "$as_me:$LINENO: result: yes" >&5
5833echo "${ECHO_T}yes" >&6
5834 else
5835 echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6
5837 fi
5838
5839
5840 enablestring=
5841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5842echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5843 no_cache=0
5844 # Check whether --enable-protocol or --disable-protocol was given.
5845if test "${enable_protocol+set}" = set; then
5846 enableval="$enable_protocol"
5847
5848 if test "$enableval" = yes; then
5849 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5850 else
5851 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5852 fi
5853
5854else
5855
5856 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5857 if test "x$LINE" != x ; then
5858 eval "DEFAULT_$LINE"
5859 else
5860 no_cache=1
5861 fi
5862
5863 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5864
5865fi;
5866
5867 eval "$ac_cv_use_protocol"
5868 if test "$no_cache" != 1; then
5869 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5870 fi
5871
5872 if test "$wxUSE_PROTOCOL" = yes; then
5873 echo "$as_me:$LINENO: result: yes" >&5
5874echo "${ECHO_T}yes" >&6
5875 else
5876 echo "$as_me:$LINENO: result: no" >&5
5877echo "${ECHO_T}no" >&6
5878 fi
5879
5880
5881 enablestring=
5882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5883echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5884 no_cache=0
5885 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5886if test "${enable_protocol_http+set}" = set; then
5887 enableval="$enable_protocol_http"
5888
5889 if test "$enableval" = yes; then
5890 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5891 else
5892 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5893 fi
5894
5895else
5896
5897 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5898 if test "x$LINE" != x ; then
5899 eval "DEFAULT_$LINE"
5900 else
5901 no_cache=1
5902 fi
5903
5904 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5905
5906fi;
5907
5908 eval "$ac_cv_use_protocol_http"
5909 if test "$no_cache" != 1; then
5910 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5911 fi
5912
5913 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5914 echo "$as_me:$LINENO: result: yes" >&5
5915echo "${ECHO_T}yes" >&6
5916 else
5917 echo "$as_me:$LINENO: result: no" >&5
5918echo "${ECHO_T}no" >&6
5919 fi
5920
5921
5922 enablestring=
5923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5924echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5925 no_cache=0
5926 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5927if test "${enable_protocol_ftp+set}" = set; then
5928 enableval="$enable_protocol_ftp"
5929
5930 if test "$enableval" = yes; then
5931 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5932 else
5933 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5934 fi
5935
5936else
5937
5938 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5939 if test "x$LINE" != x ; then
5940 eval "DEFAULT_$LINE"
5941 else
5942 no_cache=1
5943 fi
5944
5945 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5946
5947fi;
5948
5949 eval "$ac_cv_use_protocol_ftp"
5950 if test "$no_cache" != 1; then
5951 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5952 fi
5953
5954 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5955 echo "$as_me:$LINENO: result: yes" >&5
5956echo "${ECHO_T}yes" >&6
5957 else
5958 echo "$as_me:$LINENO: result: no" >&5
5959echo "${ECHO_T}no" >&6
5960 fi
5961
5962
5963 enablestring=
5964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5965echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5966 no_cache=0
5967 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5968if test "${enable_protocol_file+set}" = set; then
5969 enableval="$enable_protocol_file"
5970
5971 if test "$enableval" = yes; then
5972 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5973 else
5974 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5975 fi
5976
5977else
5978
5979 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5980 if test "x$LINE" != x ; then
5981 eval "DEFAULT_$LINE"
5982 else
5983 no_cache=1
5984 fi
5985
5986 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5987
5988fi;
5989
5990 eval "$ac_cv_use_protocol_file"
5991 if test "$no_cache" != 1; then
5992 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5993 fi
5994
5995 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5996 echo "$as_me:$LINENO: result: yes" >&5
5997echo "${ECHO_T}yes" >&6
5998 else
5999 echo "$as_me:$LINENO: result: no" >&5
6000echo "${ECHO_T}no" >&6
6001 fi
6002
6003
6004
6005
6006
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6009echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-threads or --disable-threads was given.
6012if test "${enable_threads+set}" = set; then
6013 enableval="$enable_threads"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_threads='wxUSE_THREADS=yes'
6017 else
6018 ac_cv_use_threads='wxUSE_THREADS=no'
6019 fi
6020
6021else
6022
6023 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6031
6032fi;
6033
6034 eval "$ac_cv_use_threads"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_THREADS" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045 fi
6046
6047
6048if test "$wxUSE_GUI" = "yes"; then
6049
6050
6051
6052 enablestring=
6053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6054echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6055 no_cache=0
6056 # Check whether --enable-docview or --disable-docview was given.
6057if test "${enable_docview+set}" = set; then
6058 enableval="$enable_docview"
6059
6060 if test "$enableval" = yes; then
6061 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6062 else
6063 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6064 fi
6065
6066else
6067
6068 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6069 if test "x$LINE" != x ; then
6070 eval "DEFAULT_$LINE"
6071 else
6072 no_cache=1
6073 fi
6074
6075 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6076
6077fi;
6078
6079 eval "$ac_cv_use_docview"
6080 if test "$no_cache" != 1; then
6081 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6082 fi
6083
6084 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6085 echo "$as_me:$LINENO: result: yes" >&5
6086echo "${ECHO_T}yes" >&6
6087 else
6088 echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6
6090 fi
6091
6092
6093 enablestring=
6094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6095echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6096 no_cache=0
6097 # Check whether --enable-help or --disable-help was given.
6098if test "${enable_help+set}" = set; then
6099 enableval="$enable_help"
6100
6101 if test "$enableval" = yes; then
6102 ac_cv_use_help='wxUSE_HELP=yes'
6103 else
6104 ac_cv_use_help='wxUSE_HELP=no'
6105 fi
6106
6107else
6108
6109 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6110 if test "x$LINE" != x ; then
6111 eval "DEFAULT_$LINE"
6112 else
6113 no_cache=1
6114 fi
6115
6116 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6117
6118fi;
6119
6120 eval "$ac_cv_use_help"
6121 if test "$no_cache" != 1; then
6122 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6123 fi
6124
6125 if test "$wxUSE_HELP" = yes; then
6126 echo "$as_me:$LINENO: result: yes" >&5
6127echo "${ECHO_T}yes" >&6
6128 else
6129 echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6
6131 fi
6132
6133
6134 enablestring=
6135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6136echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6137 no_cache=0
6138 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6139if test "${enable_mshtmlhelp+set}" = set; then
6140 enableval="$enable_mshtmlhelp"
6141
6142 if test "$enableval" = yes; then
6143 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6144 else
6145 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6146 fi
6147
6148else
6149
6150 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6151 if test "x$LINE" != x ; then
6152 eval "DEFAULT_$LINE"
6153 else
6154 no_cache=1
6155 fi
6156
6157 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6158
6159fi;
6160
6161 eval "$ac_cv_use_mshtmlhelp"
6162 if test "$no_cache" != 1; then
6163 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6164 fi
6165
6166 if test "$wxUSE_MS_HTML_HELP" = yes; then
6167 echo "$as_me:$LINENO: result: yes" >&5
6168echo "${ECHO_T}yes" >&6
6169 else
6170 echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6
6172 fi
6173
6174
6175 enablestring=
6176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6177echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6178 no_cache=0
6179 # Check whether --enable-html or --disable-html was given.
6180if test "${enable_html+set}" = set; then
6181 enableval="$enable_html"
6182
6183 if test "$enableval" = yes; then
6184 ac_cv_use_html='wxUSE_HTML=yes'
6185 else
6186 ac_cv_use_html='wxUSE_HTML=no'
6187 fi
6188
6189else
6190
6191 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6192 if test "x$LINE" != x ; then
6193 eval "DEFAULT_$LINE"
6194 else
6195 no_cache=1
6196 fi
6197
6198 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6199
6200fi;
6201
6202 eval "$ac_cv_use_html"
6203 if test "$no_cache" != 1; then
6204 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6205 fi
6206
6207 if test "$wxUSE_HTML" = yes; then
6208 echo "$as_me:$LINENO: result: yes" >&5
6209echo "${ECHO_T}yes" >&6
6210 else
6211 echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6
6213 fi
6214
6215
6216 enablestring=
6217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6218echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6219 no_cache=0
6220 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6221if test "${enable_htmlhelp+set}" = set; then
6222 enableval="$enable_htmlhelp"
6223
6224 if test "$enableval" = yes; then
6225 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6226 else
6227 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6228 fi
6229
6230else
6231
6232 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6240
6241fi;
6242
6243 eval "$ac_cv_use_htmlhelp"
6244 if test "$no_cache" != 1; then
6245 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6246 fi
6247
6248 if test "$wxUSE_WXHTML_HELP" = yes; then
6249 echo "$as_me:$LINENO: result: yes" >&5
6250echo "${ECHO_T}yes" >&6
6251 else
6252 echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6
6254 fi
6255
6256
6257 enablestring=
6258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6259echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6260 no_cache=0
6261 # Check whether --enable-constraints or --disable-constraints was given.
6262if test "${enable_constraints+set}" = set; then
6263 enableval="$enable_constraints"
6264
6265 if test "$enableval" = yes; then
6266 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6267 else
6268 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6269 fi
6270
6271else
6272
6273 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6281
6282fi;
6283
6284 eval "$ac_cv_use_constraints"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_CONSTRAINTS" = yes; then
6290 echo "$as_me:$LINENO: result: yes" >&5
6291echo "${ECHO_T}yes" >&6
6292 else
6293 echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6
6295 fi
6296
6297
6298 enablestring=
6299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6300echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6301 no_cache=0
6302 # Check whether --enable-printarch or --disable-printarch was given.
6303if test "${enable_printarch+set}" = set; then
6304 enableval="$enable_printarch"
6305
6306 if test "$enableval" = yes; then
6307 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6308 else
6309 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6310 fi
6311
6312else
6313
6314 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6322
6323fi;
6324
6325 eval "$ac_cv_use_printarch"
6326 if test "$no_cache" != 1; then
6327 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6328 fi
6329
6330 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6331 echo "$as_me:$LINENO: result: yes" >&5
6332echo "${ECHO_T}yes" >&6
6333 else
6334 echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6
6336 fi
6337
6338
6339 enablestring=
6340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6341echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6342 no_cache=0
6343 # Check whether --enable-mdi or --disable-mdi was given.
6344if test "${enable_mdi+set}" = set; then
6345 enableval="$enable_mdi"
6346
6347 if test "$enableval" = yes; then
8a7b1113 6348 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6349 else
8a7b1113 6350 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6351 fi
6352
6353else
6354
8a7b1113 6355 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
8a7b1113 6362 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6363
6364fi;
6365
6366 eval "$ac_cv_use_mdi"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6369 fi
6370
8a7b1113
VZ
6371 if test "$wxUSE_MDI" = yes; then
6372 echo "$as_me:$LINENO: result: yes" >&5
6373echo "${ECHO_T}yes" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377 fi
6378
6379
6380 enablestring=
6381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6382echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6383 no_cache=0
6384 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6385if test "${enable_mdidoc+set}" = set; then
6386 enableval="$enable_mdidoc"
6387
6388 if test "$enableval" = yes; then
6389 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6390 else
6391 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6392 fi
6393
6394else
6395
6396 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6397 if test "x$LINE" != x ; then
6398 eval "DEFAULT_$LINE"
6399 else
6400 no_cache=1
6401 fi
6402
6403 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6404
6405fi;
6406
6407 eval "$ac_cv_use_mdidoc"
6408 if test "$no_cache" != 1; then
6409 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6410 fi
6411
a848cd7e
SC
6412 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6413 echo "$as_me:$LINENO: result: yes" >&5
6414echo "${ECHO_T}yes" >&6
6415 else
6416 echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6
6418 fi
6419
6420
6421 enablestring=
6422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6423echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6424 no_cache=0
6425 # Check whether --enable-loggui or --disable-loggui was given.
6426if test "${enable_loggui+set}" = set; then
6427 enableval="$enable_loggui"
6428
6429 if test "$enableval" = yes; then
6430 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6431 else
6432 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6433 fi
6434
6435else
6436
6437 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6445
6446fi;
6447
6448 eval "$ac_cv_use_loggui"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_LOGGUI" = yes; then
6454 echo "$as_me:$LINENO: result: yes" >&5
6455echo "${ECHO_T}yes" >&6
6456 else
6457 echo "$as_me:$LINENO: result: no" >&5
6458echo "${ECHO_T}no" >&6
6459 fi
6460
6461
6462 enablestring=
6463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6464echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6465 no_cache=0
6466 # Check whether --enable-logwin or --disable-logwin was given.
6467if test "${enable_logwin+set}" = set; then
6468 enableval="$enable_logwin"
6469
6470 if test "$enableval" = yes; then
6471 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6472 else
6473 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6474 fi
6475
6476else
6477
6478 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6479 if test "x$LINE" != x ; then
6480 eval "DEFAULT_$LINE"
6481 else
6482 no_cache=1
6483 fi
6484
6485 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6486
6487fi;
6488
6489 eval "$ac_cv_use_logwin"
6490 if test "$no_cache" != 1; then
6491 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6492 fi
6493
6494 if test "$wxUSE_LOGWINDOW" = yes; then
6495 echo "$as_me:$LINENO: result: yes" >&5
6496echo "${ECHO_T}yes" >&6
6497 else
6498 echo "$as_me:$LINENO: result: no" >&5
6499echo "${ECHO_T}no" >&6
6500 fi
6501
6502
6503 enablestring=
6504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6505echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6506 no_cache=0
6507 # Check whether --enable-logdialog or --disable-logdialog was given.
6508if test "${enable_logdialog+set}" = set; then
6509 enableval="$enable_logdialog"
6510
6511 if test "$enableval" = yes; then
6512 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6513 else
6514 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6515 fi
6516
6517else
6518
6519 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6520 if test "x$LINE" != x ; then
6521 eval "DEFAULT_$LINE"
6522 else
6523 no_cache=1
6524 fi
6525
6526 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6527
6528fi;
6529
6530 eval "$ac_cv_use_logdialog"
6531 if test "$no_cache" != 1; then
6532 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6533 fi
6534
6535 if test "$wxUSE_LOGDIALOG" = yes; then
6536 echo "$as_me:$LINENO: result: yes" >&5
6537echo "${ECHO_T}yes" >&6
6538 else
6539 echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6
6541 fi
6542
6543
646b6ec1
VS
6544 enablestring=
6545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6546echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6547 no_cache=0
6548 # Check whether --enable-webkit or --disable-webkit was given.
6549if test "${enable_webkit+set}" = set; then
6550 enableval="$enable_webkit"
6551
6552 if test "$enableval" = yes; then
6553 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6554 else
6555 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6556 fi
6557
6558else
6559
6560 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6561 if test "x$LINE" != x ; then
6562 eval "DEFAULT_$LINE"
6563 else
6564 no_cache=1
6565 fi
6566
6567 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6568
6569fi;
6570
6571 eval "$ac_cv_use_webkit"
6572 if test "$no_cache" != 1; then
6573 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6574 fi
6575
6576 if test "$wxUSE_WEBKIT" = yes; then
6577 echo "$as_me:$LINENO: result: yes" >&5
6578echo "${ECHO_T}yes" >&6
6579 else
6580 echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6
6582 fi
6583
6584
a848cd7e
SC
6585
6586 enablestring=
6587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6588echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6589 no_cache=0
6590 # Check whether --enable-postscript or --disable-postscript was given.
6591if test "${enable_postscript+set}" = set; then
6592 enableval="$enable_postscript"
6593
6594 if test "$enableval" = yes; then
6595 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6596 else
6597 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6598 fi
6599
6600else
6601
6602 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6603 if test "x$LINE" != x ; then
6604 eval "DEFAULT_$LINE"
6605 else
6606 no_cache=1
6607 fi
6608
6609 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6610
6611fi;
6612
6613 eval "$ac_cv_use_postscript"
6614 if test "$no_cache" != 1; then
6615 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6616 fi
6617
6618 if test "$wxUSE_POSTSCRIPT" = yes; then
6619 echo "$as_me:$LINENO: result: yes" >&5
6620echo "${ECHO_T}yes" >&6
6621 else
6622 echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6
6624 fi
6625
6626
6627
6628
6629
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-prologio or --disable-prologio was given.
6635if test "${enable_prologio+set}" = set; then
6636 enableval="$enable_prologio"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6640 else
6641 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6654
6655fi;
6656
6657 eval "$ac_cv_use_prologio"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_PROLOGIO" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-resources or --disable-resources was given.
6676if test "${enable_resources+set}" = set; then
6677 enableval="$enable_resources"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6681 else
6682 ac_cv_use_resources='wxUSE_RESOURCES=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6695
6696fi;
6697
6698 eval "$ac_cv_use_resources"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_RESOURCES" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712
6713
6714 enablestring=
6715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6716echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6717 no_cache=0
6718 # Check whether --enable-clipboard or --disable-clipboard was given.
6719if test "${enable_clipboard+set}" = set; then
6720 enableval="$enable_clipboard"
6721
6722 if test "$enableval" = yes; then
6723 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6724 else
6725 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6726 fi
6727
6728else
6729
6730 LINE=`grep "wxUSE_CLIPBOARD" ${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_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6738
6739fi;
6740
6741 eval "$ac_cv_use_clipboard"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_CLIPBOARD" = 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}-dnd" >&5
6757echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6758 no_cache=0
6759 # Check whether --enable-dnd or --disable-dnd was given.
6760if test "${enable_dnd+set}" = set; then
6761 enableval="$enable_dnd"
6762
6763 if test "$enableval" = yes; then
6764 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6765 else
6766 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6767 fi
6768
6769else
6770
6771 LINE=`grep "wxUSE_DRAG_AND_DROP" ${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_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6779
6780fi;
6781
6782 eval "$ac_cv_use_dnd"
6783 if test "$no_cache" != 1; then
6784 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6785 fi
6786
6787 if test "$wxUSE_DRAG_AND_DROP" = 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 enablestring=
6797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6798echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6799 no_cache=0
6800 # Check whether --enable-metafile or --disable-metafile was given.
6801if test "${enable_metafile+set}" = set; then
6802 enableval="$enable_metafile"
6803
6804 if test "$enableval" = yes; then
6805 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6806 else
6807 ac_cv_use_metafile='wxUSE_METAFILE=no'
6808 fi
6809
6810else
6811
6812 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6813 if test "x$LINE" != x ; then
6814 eval "DEFAULT_$LINE"
6815 else
6816 no_cache=1
6817 fi
6818
6819 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6820
6821fi;
6822
6823 eval "$ac_cv_use_metafile"
6824 if test "$no_cache" != 1; then
6825 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6826 fi
6827
6828 if test "$wxUSE_METAFILE" = yes; then
6829 echo "$as_me:$LINENO: result: yes" >&5
6830echo "${ECHO_T}yes" >&6
6831 else
6832 echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
6834 fi
6835
6836
6837
6838
6839
6840 enablestring=
6841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6842echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6843 no_cache=0
6844 # Check whether --enable-controls or --disable-controls was given.
6845if test "${enable_controls+set}" = set; then
6846 enableval="$enable_controls"
6847
6848 if test "$enableval" = yes; then
6849 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6850 else
6851 ac_cv_use_controls='wxUSE_CONTROLS=no'
6852 fi
6853
6854else
6855
6856 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6864
6865fi;
6866
6867 eval "$ac_cv_use_controls"
6868 if test "$no_cache" != 1; then
6869 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6870 fi
6871
6872 if test "$wxUSE_CONTROLS" = yes; then
6873 echo "$as_me:$LINENO: result: yes" >&5
6874echo "${ECHO_T}yes" >&6
6875 else
6876 echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6
6878 fi
6879
6880
6881if test "$wxUSE_CONTROLS" = "yes"; then
6882 DEFAULT_wxUSE_ACCEL=yes
6883 DEFAULT_wxUSE_BMPBUTTON=yes
6884 DEFAULT_wxUSE_BUTTON=yes
6885 DEFAULT_wxUSE_CALCTRL=no
6886 DEFAULT_wxUSE_CARET=yes
6887 DEFAULT_wxUSE_COMBOBOX=yes
6888 DEFAULT_wxUSE_CHECKBOX=yes
6889 DEFAULT_wxUSE_CHECKLISTBOX=yes
6890 DEFAULT_wxUSE_CHOICE=yes
6891 DEFAULT_wxUSE_GAUGE=yes
6892 DEFAULT_wxUSE_GRID=yes
6893 DEFAULT_wxUSE_IMAGLIST=yes
6894 DEFAULT_wxUSE_LISTBOOK=yes
6895 DEFAULT_wxUSE_LISTBOX=yes
6896 DEFAULT_wxUSE_LISTCTRL=yes
6897 DEFAULT_wxUSE_NOTEBOOK=yes
6898 DEFAULT_wxUSE_RADIOBOX=yes
6899 DEFAULT_wxUSE_RADIOBTN=yes
6900 DEFAULT_wxUSE_SASH=yes
6901 DEFAULT_wxUSE_SCROLLBAR=yes
6902 DEFAULT_wxUSE_SLIDER=yes
6903 DEFAULT_wxUSE_SPINBTN=yes
6904 DEFAULT_wxUSE_SPINCTRL=yes
6905 DEFAULT_wxUSE_SPLITTER=yes
6906 DEFAULT_wxUSE_STATBMP=yes
6907 DEFAULT_wxUSE_STATBOX=yes
6908 DEFAULT_wxUSE_STATLINE=yes
6909 DEFAULT_wxUSE_STATUSBAR=yes
6910 DEFAULT_wxUSE_TAB_DIALOG=yes
6911 DEFAULT_wxUSE_TOGGLEBTN=yes
6912 DEFAULT_wxUSE_TOOLBAR=yes
6913 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6914 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6915 DEFAULT_wxUSE_TOOLTIPS=yes
6916 DEFAULT_wxUSE_TREECTRL=yes
6917 DEFAULT_wxUSE_POPUPWIN=yes
6918 DEFAULT_wxUSE_TIPWINDOW=yes
6919elif test "$wxUSE_CONTROLS" = "no"; then
6920 DEFAULT_wxUSE_ACCEL=no
6921 DEFAULT_wxUSE_BMPBUTTON=no
6922 DEFAULT_wxUSE_BUTTON=no
6923 DEFAULT_wxUSE_CALCTRL=no
6924 DEFAULT_wxUSE_CARET=no
6925 DEFAULT_wxUSE_COMBOBOX=no
6926 DEFAULT_wxUSE_CHECKBOX=no
6927 DEFAULT_wxUSE_CHECKLISTBOX=no
6928 DEFAULT_wxUSE_CHOICE=no
6929 DEFAULT_wxUSE_GAUGE=no
6930 DEFAULT_wxUSE_GRID=no
6931 DEFAULT_wxUSE_IMAGLIST=no
6932 DEFAULT_wxUSE_LISTBOOK=no
6933 DEFAULT_wxUSE_LISTBOX=no
6934 DEFAULT_wxUSE_LISTCTRL=no
6935 DEFAULT_wxUSE_NOTEBOOK=no
6936 DEFAULT_wxUSE_RADIOBOX=no
6937 DEFAULT_wxUSE_RADIOBTN=no
6938 DEFAULT_wxUSE_SASH=no
6939 DEFAULT_wxUSE_SCROLLBAR=no
6940 DEFAULT_wxUSE_SLIDER=no
6941 DEFAULT_wxUSE_SPINBTN=no
6942 DEFAULT_wxUSE_SPINCTRL=no
6943 DEFAULT_wxUSE_SPLITTER=no
6944 DEFAULT_wxUSE_STATBMP=no
6945 DEFAULT_wxUSE_STATBOX=no
6946 DEFAULT_wxUSE_STATLINE=no
6947 DEFAULT_wxUSE_STATUSBAR=no
6948 DEFAULT_wxUSE_TAB_DIALOG=no
6949 DEFAULT_wxUSE_TOGGLEBTN=no
6950 DEFAULT_wxUSE_TOOLBAR=no
6951 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6952 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6953 DEFAULT_wxUSE_TOOLTIPS=no
6954 DEFAULT_wxUSE_TREECTRL=no
6955 DEFAULT_wxUSE_POPUPWIN=no
6956 DEFAULT_wxUSE_TIPWINDOW=no
6957fi
6958
6959## FIXME: This is a blatant hack
6960if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6961 wxUSE_PRINTING_ARCHITECTURE=no
6962 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
6963 DEFAULT_wxUSE_TOOLTIPS=no
6964 DEFAULT_wxUSE_DRAGIMAGE=no
6965fi
6966
6967
6968 enablestring=
6969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6970echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6971 no_cache=0
6972 # Check whether --enable-accel or --disable-accel was given.
6973if test "${enable_accel+set}" = set; then
6974 enableval="$enable_accel"
6975
6976 if test "$enableval" = yes; then
6977 ac_cv_use_accel='wxUSE_ACCEL=yes'
6978 else
6979 ac_cv_use_accel='wxUSE_ACCEL=no'
6980 fi
6981
6982else
6983
6984 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6992
6993fi;
6994
6995 eval "$ac_cv_use_accel"
6996 if test "$no_cache" != 1; then
6997 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6998 fi
6999
7000 if test "$wxUSE_ACCEL" = yes; then
7001 echo "$as_me:$LINENO: result: yes" >&5
7002echo "${ECHO_T}yes" >&6
7003 else
7004 echo "$as_me:$LINENO: result: no" >&5
7005echo "${ECHO_T}no" >&6
7006 fi
7007
7008
7009 enablestring=
7010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7011echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7012 no_cache=0
7013 # Check whether --enable-button or --disable-button was given.
7014if test "${enable_button+set}" = set; then
7015 enableval="$enable_button"
7016
7017 if test "$enableval" = yes; then
7018 ac_cv_use_button='wxUSE_BUTTON=yes'
7019 else
7020 ac_cv_use_button='wxUSE_BUTTON=no'
7021 fi
7022
7023else
7024
7025 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7033
7034fi;
7035
7036 eval "$ac_cv_use_button"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_BUTTON" = yes; then
7042 echo "$as_me:$LINENO: result: yes" >&5
7043echo "${ECHO_T}yes" >&6
7044 else
7045 echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6
7047 fi
7048
7049
7050 enablestring=
7051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7052echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7053 no_cache=0
7054 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7055if test "${enable_bmpbutton+set}" = set; then
7056 enableval="$enable_bmpbutton"
7057
7058 if test "$enableval" = yes; then
7059 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7060 else
7061 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7062 fi
7063
7064else
7065
7066 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7067 if test "x$LINE" != x ; then
7068 eval "DEFAULT_$LINE"
7069 else
7070 no_cache=1
7071 fi
7072
7073 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7074
7075fi;
7076
7077 eval "$ac_cv_use_bmpbutton"
7078 if test "$no_cache" != 1; then
7079 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7080 fi
7081
7082 if test "$wxUSE_BMPBUTTON" = yes; then
7083 echo "$as_me:$LINENO: result: yes" >&5
7084echo "${ECHO_T}yes" >&6
7085 else
7086 echo "$as_me:$LINENO: result: no" >&5
7087echo "${ECHO_T}no" >&6
7088 fi
7089
7090
7091 enablestring=
7092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7093echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7094 no_cache=0
7095 # Check whether --enable-calendar or --disable-calendar was given.
7096if test "${enable_calendar+set}" = set; then
7097 enableval="$enable_calendar"
7098
7099 if test "$enableval" = yes; then
7100 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7101 else
7102 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7103 fi
7104
7105else
7106
7107 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7108 if test "x$LINE" != x ; then
7109 eval "DEFAULT_$LINE"
7110 else
7111 no_cache=1
7112 fi
7113
7114 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7115
7116fi;
7117
7118 eval "$ac_cv_use_calendar"
7119 if test "$no_cache" != 1; then
7120 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7121 fi
7122
7123 if test "$wxUSE_CALCTRL" = yes; then
7124 echo "$as_me:$LINENO: result: yes" >&5
7125echo "${ECHO_T}yes" >&6
7126 else
7127 echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6
7129 fi
7130
7131
7132 enablestring=
7133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7134echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7135 no_cache=0
7136 # Check whether --enable-caret or --disable-caret was given.
7137if test "${enable_caret+set}" = set; then
7138 enableval="$enable_caret"
7139
7140 if test "$enableval" = yes; then
7141 ac_cv_use_caret='wxUSE_CARET=yes'
7142 else
7143 ac_cv_use_caret='wxUSE_CARET=no'
7144 fi
7145
7146else
7147
7148 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7156
7157fi;
7158
7159 eval "$ac_cv_use_caret"
7160 if test "$no_cache" != 1; then
7161 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7162 fi
7163
7164 if test "$wxUSE_CARET" = yes; then
7165 echo "$as_me:$LINENO: result: yes" >&5
7166echo "${ECHO_T}yes" >&6
7167 else
7168 echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6
7170 fi
7171
7172
7173 enablestring=
7174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7175echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7176 no_cache=0
7177 # Check whether --enable-checkbox or --disable-checkbox was given.
7178if test "${enable_checkbox+set}" = set; then
7179 enableval="$enable_checkbox"
7180
7181 if test "$enableval" = yes; then
7182 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7183 else
7184 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7185 fi
7186
7187else
7188
7189 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7190 if test "x$LINE" != x ; then
7191 eval "DEFAULT_$LINE"
7192 else
7193 no_cache=1
7194 fi
7195
7196 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7197
7198fi;
7199
7200 eval "$ac_cv_use_checkbox"
7201 if test "$no_cache" != 1; then
7202 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7203 fi
7204
7205 if test "$wxUSE_CHECKBOX" = yes; then
7206 echo "$as_me:$LINENO: result: yes" >&5
7207echo "${ECHO_T}yes" >&6
7208 else
7209 echo "$as_me:$LINENO: result: no" >&5
7210echo "${ECHO_T}no" >&6
7211 fi
7212
7213
7214 enablestring=
7215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7216echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7217 no_cache=0
7218 # Check whether --enable-checklst or --disable-checklst was given.
7219if test "${enable_checklst+set}" = set; then
7220 enableval="$enable_checklst"
7221
7222 if test "$enableval" = yes; then
7223 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7224 else
7225 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7226 fi
7227
7228else
7229
7230 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7231 if test "x$LINE" != x ; then
7232 eval "DEFAULT_$LINE"
7233 else
7234 no_cache=1
7235 fi
7236
7237 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7238
7239fi;
7240
7241 eval "$ac_cv_use_checklst"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_CHECKLST" = yes; then
7247 echo "$as_me:$LINENO: result: yes" >&5
7248echo "${ECHO_T}yes" >&6
7249 else
7250 echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
7252 fi
7253
7254
7255 enablestring=
7256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7257echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7258 no_cache=0
7259 # Check whether --enable-choice or --disable-choice was given.
7260if test "${enable_choice+set}" = set; then
7261 enableval="$enable_choice"
7262
7263 if test "$enableval" = yes; then
7264 ac_cv_use_choice='wxUSE_CHOICE=yes'
7265 else
7266 ac_cv_use_choice='wxUSE_CHOICE=no'
7267 fi
7268
7269else
7270
7271 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7272 if test "x$LINE" != x ; then
7273 eval "DEFAULT_$LINE"
7274 else
7275 no_cache=1
7276 fi
7277
7278 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7279
7280fi;
7281
7282 eval "$ac_cv_use_choice"
7283 if test "$no_cache" != 1; then
7284 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7285 fi
7286
7287 if test "$wxUSE_CHOICE" = yes; then
7288 echo "$as_me:$LINENO: result: yes" >&5
7289echo "${ECHO_T}yes" >&6
7290 else
7291 echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6
7293 fi
7294
7295
7296 enablestring=
7297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7298echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7299 no_cache=0
7300 # Check whether --enable-combobox or --disable-combobox was given.
7301if test "${enable_combobox+set}" = set; then
7302 enableval="$enable_combobox"
7303
7304 if test "$enableval" = yes; then
7305 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7306 else
7307 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7308 fi
7309
7310else
7311
7312 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7313 if test "x$LINE" != x ; then
7314 eval "DEFAULT_$LINE"
7315 else
7316 no_cache=1
7317 fi
7318
7319 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7320
7321fi;
7322
7323 eval "$ac_cv_use_combobox"
7324 if test "$no_cache" != 1; then
7325 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7326 fi
7327
7328 if test "$wxUSE_COMBOBOX" = yes; then
7329 echo "$as_me:$LINENO: result: yes" >&5
7330echo "${ECHO_T}yes" >&6
7331 else
7332 echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6
7334 fi
7335
7336
7337 enablestring=
7338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7339echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7340 no_cache=0
7341 # Check whether --enable-display or --disable-display was given.
7342if test "${enable_display+set}" = set; then
7343 enableval="$enable_display"
7344
7345 if test "$enableval" = yes; then
7346 ac_cv_use_display='wxUSE_DISPLAY=yes'
7347 else
7348 ac_cv_use_display='wxUSE_DISPLAY=no'
7349 fi
7350
7351else
7352
7353 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7354 if test "x$LINE" != x ; then
7355 eval "DEFAULT_$LINE"
7356 else
7357 no_cache=1
7358 fi
7359
7360 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7361
7362fi;
7363
7364 eval "$ac_cv_use_display"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_DISPLAY" = yes; then
7370 echo "$as_me:$LINENO: result: yes" >&5
7371echo "${ECHO_T}yes" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378 enablestring=
7379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7380echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7381 no_cache=0
7382 # Check whether --enable-gauge or --disable-gauge was given.
7383if test "${enable_gauge+set}" = set; then
7384 enableval="$enable_gauge"
7385
7386 if test "$enableval" = yes; then
7387 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7388 else
7389 ac_cv_use_gauge='wxUSE_GAUGE=no'
7390 fi
7391
7392else
7393
7394 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7395 if test "x$LINE" != x ; then
7396 eval "DEFAULT_$LINE"
7397 else
7398 no_cache=1
7399 fi
7400
7401 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7402
7403fi;
7404
7405 eval "$ac_cv_use_gauge"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_GAUGE" = yes; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412echo "${ECHO_T}yes" >&6
7413 else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416 fi
7417
7418
7419 enablestring=
7420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7421echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7422 no_cache=0
7423 # Check whether --enable-grid or --disable-grid was given.
7424if test "${enable_grid+set}" = set; then
7425 enableval="$enable_grid"
7426
7427 if test "$enableval" = yes; then
7428 ac_cv_use_grid='wxUSE_GRID=yes'
7429 else
7430 ac_cv_use_grid='wxUSE_GRID=no'
7431 fi
7432
7433else
7434
7435 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7436 if test "x$LINE" != x ; then
7437 eval "DEFAULT_$LINE"
7438 else
7439 no_cache=1
7440 fi
7441
7442 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7443
7444fi;
7445
7446 eval "$ac_cv_use_grid"
7447 if test "$no_cache" != 1; then
7448 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7449 fi
7450
7451 if test "$wxUSE_GRID" = yes; then
7452 echo "$as_me:$LINENO: result: yes" >&5
7453echo "${ECHO_T}yes" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457 fi
7458
7459
7460 enablestring=
7461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7462echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7463 no_cache=0
7464 # Check whether --enable-imaglist or --disable-imaglist was given.
7465if test "${enable_imaglist+set}" = set; then
7466 enableval="$enable_imaglist"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7470 else
7471 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7472 fi
7473
7474else
7475
7476 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7484
7485fi;
7486
7487 eval "$ac_cv_use_imaglist"
7488 if test "$no_cache" != 1; then
7489 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7490 fi
7491
7492 if test "$wxUSE_IMAGLIST" = yes; then
7493 echo "$as_me:$LINENO: result: yes" >&5
7494echo "${ECHO_T}yes" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498 fi
7499
7500
7501 enablestring=
7502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7503echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7504 no_cache=0
7505 # Check whether --enable-listbook or --disable-listbook was given.
7506if test "${enable_listbook+set}" = set; then
7507 enableval="$enable_listbook"
7508
7509 if test "$enableval" = yes; then
7510 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7511 else
7512 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7513 fi
7514
7515else
7516
7517 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7518 if test "x$LINE" != x ; then
7519 eval "DEFAULT_$LINE"
7520 else
7521 no_cache=1
7522 fi
7523
7524 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7525
7526fi;
7527
7528 eval "$ac_cv_use_listbook"
7529 if test "$no_cache" != 1; then
7530 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7531 fi
7532
7533 if test "$wxUSE_LISTBOOK" = yes; then
7534 echo "$as_me:$LINENO: result: yes" >&5
7535echo "${ECHO_T}yes" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
7539 fi
7540
7541
7542 enablestring=
7543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7544echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7545 no_cache=0
7546 # Check whether --enable-listbox or --disable-listbox was given.
7547if test "${enable_listbox+set}" = set; then
7548 enableval="$enable_listbox"
7549
7550 if test "$enableval" = yes; then
7551 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7552 else
7553 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7554 fi
7555
7556else
7557
7558 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7559 if test "x$LINE" != x ; then
7560 eval "DEFAULT_$LINE"
7561 else
7562 no_cache=1
7563 fi
7564
7565 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7566
7567fi;
7568
7569 eval "$ac_cv_use_listbox"
7570 if test "$no_cache" != 1; then
7571 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7572 fi
7573
7574 if test "$wxUSE_LISTBOX" = yes; then
7575 echo "$as_me:$LINENO: result: yes" >&5
7576echo "${ECHO_T}yes" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6
7580 fi
7581
7582
7583 enablestring=
7584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7585echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7586 no_cache=0
7587 # Check whether --enable-listctrl or --disable-listctrl was given.
7588if test "${enable_listctrl+set}" = set; then
7589 enableval="$enable_listctrl"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7593 else
7594 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7595 fi
7596
7597else
7598
7599 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7607
7608fi;
7609
7610 eval "$ac_cv_use_listctrl"
7611 if test "$no_cache" != 1; then
7612 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7613 fi
7614
7615 if test "$wxUSE_LISTCTRL" = yes; then
7616 echo "$as_me:$LINENO: result: yes" >&5
7617echo "${ECHO_T}yes" >&6
7618 else
7619 echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6
7621 fi
7622
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7626echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-notebook or --disable-notebook was given.
7629if test "${enable_notebook+set}" = set; then
7630 enableval="$enable_notebook"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7634 else
7635 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7636 fi
7637
7638else
7639
7640 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7641 if test "x$LINE" != x ; then
7642 eval "DEFAULT_$LINE"
7643 else
7644 no_cache=1
7645 fi
7646
7647 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7648
7649fi;
7650
7651 eval "$ac_cv_use_notebook"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_NOTEBOOK" = yes; then
7657 echo "$as_me:$LINENO: result: yes" >&5
7658echo "${ECHO_T}yes" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6
7662 fi
7663
7664
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-radiobox or --disable-radiobox was given.
7670if test "${enable_radiobox+set}" = set; then
7671 enableval="$enable_radiobox"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7675 else
7676 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7689
7690fi;
7691
7692 eval "$ac_cv_use_radiobox"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_RADIOBOX" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703 fi
7704
7705
7706 enablestring=
7707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7708echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7709 no_cache=0
7710 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7711if test "${enable_radiobtn+set}" = set; then
7712 enableval="$enable_radiobtn"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7716 else
7717 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7718 fi
7719
7720else
7721
7722 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7730
7731fi;
7732
7733 eval "$ac_cv_use_radiobtn"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_RADIOBTN" = yes; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740echo "${ECHO_T}yes" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744 fi
7745
7746
7747 enablestring=
7748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7749echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7750 no_cache=0
7751 # Check whether --enable-sash or --disable-sash was given.
7752if test "${enable_sash+set}" = set; then
7753 enableval="$enable_sash"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_sash='wxUSE_SASH=yes'
7757 else
7758 ac_cv_use_sash='wxUSE_SASH=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7771
7772fi;
7773
7774 eval "$ac_cv_use_sash"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_SASH" = yes; then
7780 echo "$as_me:$LINENO: result: yes" >&5
7781echo "${ECHO_T}yes" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785 fi
7786
7787
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7793if test "${enable_scrollbar+set}" = set; then
7794 enableval="$enable_scrollbar"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7798 else
7799 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7812
7813fi;
7814
7815 eval "$ac_cv_use_scrollbar"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_SCROLLBAR" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-slider or --disable-slider was given.
7834if test "${enable_slider+set}" = set; then
7835 enableval="$enable_slider"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_slider='wxUSE_SLIDER=yes'
7839 else
7840 ac_cv_use_slider='wxUSE_SLIDER=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7853
7854fi;
7855
7856 eval "$ac_cv_use_slider"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_SLIDER" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7875if test "${enable_spinbtn+set}" = set; then
7876 enableval="$enable_spinbtn"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7880 else
7881 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7894
7895fi;
7896
7897 eval "$ac_cv_use_spinbtn"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_SPINBTN" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7916if test "${enable_spinctrl+set}" = set; then
7917 enableval="$enable_spinctrl"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7921 else
7922 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7935
7936fi;
7937
7938 eval "$ac_cv_use_spinctrl"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_SPINCTRL" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-splitter or --disable-splitter was given.
7957if test "${enable_splitter+set}" = set; then
7958 enableval="$enable_splitter"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7962 else
7963 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7976
7977fi;
7978
7979 eval "$ac_cv_use_splitter"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_SPLITTER" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-statbmp or --disable-statbmp was given.
7998if test "${enable_statbmp+set}" = set; then
7999 enableval="$enable_statbmp"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8003 else
8004 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8017
8018fi;
8019
8020 eval "$ac_cv_use_statbmp"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_STATBMP" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-statbox or --disable-statbox was given.
8039if test "${enable_statbox+set}" = set; then
8040 enableval="$enable_statbox"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8044 else
8045 ac_cv_use_statbox='wxUSE_STATBOX=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8058
8059fi;
8060
8061 eval "$ac_cv_use_statbox"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_STATBOX" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-statline or --disable-statline was given.
8080if test "${enable_statline+set}" = set; then
8081 enableval="$enable_statline"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_statline='wxUSE_STATLINE=yes'
8085 else
8086 ac_cv_use_statline='wxUSE_STATLINE=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8099
8100fi;
8101
8102 eval "$ac_cv_use_statline"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_STATLINE" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-stattext or --disable-stattext was given.
8121if test "${enable_stattext+set}" = set; then
8122 enableval="$enable_stattext"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8126 else
8127 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8128 fi
8129
8130else
8131
8132 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8140
8141fi;
8142
8143 eval "$ac_cv_use_stattext"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_STATTEXT" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-statusbar or --disable-statusbar was given.
8162if test "${enable_statusbar+set}" = set; then
8163 enableval="$enable_statusbar"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8167 else
8168 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8181
8182fi;
8183
8184 eval "$ac_cv_use_statusbar"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_STATUSBAR" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8203if test "${enable_tabdialog+set}" = set; then
8204 enableval="$enable_tabdialog"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8208 else
8209 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8222
8223fi;
8224
8225 eval "$ac_cv_use_tabdialog"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_TABDIALOG" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
8239 enablestring=
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8242 no_cache=0
8243 # Check whether --enable-textctrl or --disable-textctrl was given.
8244if test "${enable_textctrl+set}" = set; then
8245 enableval="$enable_textctrl"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8249 else
8250 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8263
8264fi;
8265
8266 eval "$ac_cv_use_textctrl"
8267 if test "$no_cache" != 1; then
8268 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8269 fi
8270
8271 if test "$wxUSE_TEXTCTRL" = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8285if test "${enable_togglebtn+set}" = set; then
8286 enableval="$enable_togglebtn"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8290 else
8291 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8304
8305fi;
8306
8307 eval "$ac_cv_use_togglebtn"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_TOGGLEBTN" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-toolbar or --disable-toolbar was given.
8326if test "${enable_toolbar+set}" = set; then
8327 enableval="$enable_toolbar"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8331 else
8332 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8345
8346fi;
8347
8348 eval "$ac_cv_use_toolbar"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_TOOLBAR" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8367if test "${enable_tbarnative+set}" = set; then
8368 enableval="$enable_tbarnative"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8372 else
8373 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8386
8387fi;
8388
8389 eval "$ac_cv_use_tbarnative"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8408if test "${enable_tbarsmpl+set}" = set; then
8409 enableval="$enable_tbarsmpl"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8413 else
8414 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8427
8428fi;
8429
8430 eval "$ac_cv_use_tbarsmpl"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-treectrl or --disable-treectrl was given.
8449if test "${enable_treectrl+set}" = set; then
8450 enableval="$enable_treectrl"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8454 else
8455 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8468
8469fi;
8470
8471 eval "$ac_cv_use_treectrl"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_TREECTRL" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8490if test "${enable_tipwindow+set}" = set; then
8491 enableval="$enable_tipwindow"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8495 else
8496 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8509
8510fi;
8511
8512 eval "$ac_cv_use_tipwindow"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_TIPWINDOW" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-popupwin or --disable-popupwin was given.
8531if test "${enable_popupwin+set}" = set; then
8532 enableval="$enable_popupwin"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8536 else
8537 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8550
8551fi;
8552
8553 eval "$ac_cv_use_popupwin"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_POPUPWIN" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
8567
8568
8569 enablestring=
8570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8571echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8572 no_cache=0
8573 # Check whether --enable-commondlg or --disable-commondlg was given.
8574if test "${enable_commondlg+set}" = set; then
8575 enableval="$enable_commondlg"
8576
8577 if test "$enableval" = yes; then
8578 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8579 else
8580 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8581 fi
8582
8583else
8584
8585 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8586 if test "x$LINE" != x ; then
8587 eval "DEFAULT_$LINE"
8588 else
8589 no_cache=1
8590 fi
8591
8592 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8593
8594fi;
8595
8596 eval "$ac_cv_use_commondlg"
8597 if test "$no_cache" != 1; then
8598 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8599 fi
8600
8601 if test "$wxUSE_COMMONDLGS" = yes; then
8602 echo "$as_me:$LINENO: result: yes" >&5
8603echo "${ECHO_T}yes" >&6
8604 else
8605 echo "$as_me:$LINENO: result: no" >&5
8606echo "${ECHO_T}no" >&6
8607 fi
8608
8609
8610 enablestring=
8611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8612echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8613 no_cache=0
8614 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8615if test "${enable_choicedlg+set}" = set; then
8616 enableval="$enable_choicedlg"
8617
8618 if test "$enableval" = yes; then
8619 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8620 else
8621 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8622 fi
8623
8624else
8625
8626 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8627 if test "x$LINE" != x ; then
8628 eval "DEFAULT_$LINE"
8629 else
8630 no_cache=1
8631 fi
8632
8633 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8634
8635fi;
8636
8637 eval "$ac_cv_use_choicedlg"
8638 if test "$no_cache" != 1; then
8639 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8640 fi
8641
8642 if test "$wxUSE_CHOICEDLG" = yes; then
8643 echo "$as_me:$LINENO: result: yes" >&5
8644echo "${ECHO_T}yes" >&6
8645 else
8646 echo "$as_me:$LINENO: result: no" >&5
8647echo "${ECHO_T}no" >&6
8648 fi
8649
8650
8651 enablestring=
8652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8653echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8654 no_cache=0
8655 # Check whether --enable-coldlg or --disable-coldlg was given.
8656if test "${enable_coldlg+set}" = set; then
8657 enableval="$enable_coldlg"
8658
8659 if test "$enableval" = yes; then
8660 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8661 else
8662 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8663 fi
8664
8665else
8666
8667 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8668 if test "x$LINE" != x ; then
8669 eval "DEFAULT_$LINE"
8670 else
8671 no_cache=1
8672 fi
8673
8674 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8675
8676fi;
8677
8678 eval "$ac_cv_use_coldlg"
8679 if test "$no_cache" != 1; then
8680 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8681 fi
8682
8683 if test "$wxUSE_COLOURDLG" = yes; then
8684 echo "$as_me:$LINENO: result: yes" >&5
8685echo "${ECHO_T}yes" >&6
8686 else
8687 echo "$as_me:$LINENO: result: no" >&5
8688echo "${ECHO_T}no" >&6
8689 fi
8690
8691
8692 enablestring=
8693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8694echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8695 no_cache=0
8696 # Check whether --enable-filedlg or --disable-filedlg was given.
8697if test "${enable_filedlg+set}" = set; then
8698 enableval="$enable_filedlg"
8699
8700 if test "$enableval" = yes; then
8701 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8702 else
8703 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8704 fi
8705
8706else
8707
8708 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8709 if test "x$LINE" != x ; then
8710 eval "DEFAULT_$LINE"
8711 else
8712 no_cache=1
8713 fi
8714
8715 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8716
8717fi;
8718
8719 eval "$ac_cv_use_filedlg"
8720 if test "$no_cache" != 1; then
8721 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8722 fi
8723
8724 if test "$wxUSE_FILEDLG" = yes; then
8725 echo "$as_me:$LINENO: result: yes" >&5
8726echo "${ECHO_T}yes" >&6
8727 else
8728 echo "$as_me:$LINENO: result: no" >&5
8729echo "${ECHO_T}no" >&6
8730 fi
8731
8732
8733 enablestring=
8734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8735echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8736 no_cache=0
8737 # Check whether --enable-finddlg or --disable-finddlg was given.
8738if test "${enable_finddlg+set}" = set; then
8739 enableval="$enable_finddlg"
8740
8741 if test "$enableval" = yes; then
8742 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8743 else
8744 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8745 fi
8746
8747else
8748
8749 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8750 if test "x$LINE" != x ; then
8751 eval "DEFAULT_$LINE"
8752 else
8753 no_cache=1
8754 fi
8755
8756 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8757
8758fi;
8759
8760 eval "$ac_cv_use_finddlg"
8761 if test "$no_cache" != 1; then
8762 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8763 fi
8764
8765 if test "$wxUSE_FINDREPLDLG" = yes; then
8766 echo "$as_me:$LINENO: result: yes" >&5
8767echo "${ECHO_T}yes" >&6
8768 else
8769 echo "$as_me:$LINENO: result: no" >&5
8770echo "${ECHO_T}no" >&6
8771 fi
8772
8773
8774 enablestring=
8775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8776echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8777 no_cache=0
8778 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8779if test "${enable_fontdlg+set}" = set; then
8780 enableval="$enable_fontdlg"
8781
8782 if test "$enableval" = yes; then
8783 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8784 else
8785 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8786 fi
8787
8788else
8789
8790 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8791 if test "x$LINE" != x ; then
8792 eval "DEFAULT_$LINE"
8793 else
8794 no_cache=1
8795 fi
8796
8797 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8798
8799fi;
8800
8801 eval "$ac_cv_use_fontdlg"
8802 if test "$no_cache" != 1; then
8803 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8804 fi
8805
8806 if test "$wxUSE_FONTDLG" = yes; then
8807 echo "$as_me:$LINENO: result: yes" >&5
8808echo "${ECHO_T}yes" >&6
8809 else
8810 echo "$as_me:$LINENO: result: no" >&5
8811echo "${ECHO_T}no" >&6
8812 fi
8813
8814
8815 enablestring=
8816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8817echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8818 no_cache=0
8819 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8820if test "${enable_dirdlg+set}" = set; then
8821 enableval="$enable_dirdlg"
8822
8823 if test "$enableval" = yes; then
8824 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8825 else
8826 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8827 fi
8828
8829else
8830
8831 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8832 if test "x$LINE" != x ; then
8833 eval "DEFAULT_$LINE"
8834 else
8835 no_cache=1
8836 fi
8837
8838 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8839
8840fi;
8841
8842 eval "$ac_cv_use_dirdlg"
8843 if test "$no_cache" != 1; then
8844 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8845 fi
8846
8847 if test "$wxUSE_DIRDLG" = yes; then
8848 echo "$as_me:$LINENO: result: yes" >&5
8849echo "${ECHO_T}yes" >&6
8850 else
8851 echo "$as_me:$LINENO: result: no" >&5
8852echo "${ECHO_T}no" >&6
8853 fi
8854
8855
8856 enablestring=
8857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8858echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8859 no_cache=0
8860 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8861if test "${enable_msgdlg+set}" = set; then
8862 enableval="$enable_msgdlg"
8863
8864 if test "$enableval" = yes; then
8865 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8866 else
8867 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8868 fi
8869
8870else
8871
8872 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8873 if test "x$LINE" != x ; then
8874 eval "DEFAULT_$LINE"
8875 else
8876 no_cache=1
8877 fi
8878
8879 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8880
8881fi;
8882
8883 eval "$ac_cv_use_msgdlg"
8884 if test "$no_cache" != 1; then
8885 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8886 fi
8887
8888 if test "$wxUSE_MSGDLG" = yes; then
8889 echo "$as_me:$LINENO: result: yes" >&5
8890echo "${ECHO_T}yes" >&6
8891 else
8892 echo "$as_me:$LINENO: result: no" >&5
8893echo "${ECHO_T}no" >&6
8894 fi
8895
8896
8897 enablestring=
8898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8899echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8900 no_cache=0
8901 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8902if test "${enable_numberdlg+set}" = set; then
8903 enableval="$enable_numberdlg"
8904
8905 if test "$enableval" = yes; then
8906 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8907 else
8908 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8909 fi
8910
8911else
8912
8913 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8914 if test "x$LINE" != x ; then
8915 eval "DEFAULT_$LINE"
8916 else
8917 no_cache=1
8918 fi
8919
8920 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8921
8922fi;
8923
8924 eval "$ac_cv_use_numberdlg"
8925 if test "$no_cache" != 1; then
8926 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8927 fi
8928
8929 if test "$wxUSE_NUMBERDLG" = yes; then
8930 echo "$as_me:$LINENO: result: yes" >&5
8931echo "${ECHO_T}yes" >&6
8932 else
8933 echo "$as_me:$LINENO: result: no" >&5
8934echo "${ECHO_T}no" >&6
8935 fi
8936
8937
8938 enablestring=
8939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8940echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8941 no_cache=0
8942 # Check whether --enable-splash or --disable-splash was given.
8943if test "${enable_splash+set}" = set; then
8944 enableval="$enable_splash"
8945
8946 if test "$enableval" = yes; then
8947 ac_cv_use_splash='wxUSE_SPLASH=yes'
8948 else
8949 ac_cv_use_splash='wxUSE_SPLASH=no'
8950 fi
8951
8952else
8953
8954 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8955 if test "x$LINE" != x ; then
8956 eval "DEFAULT_$LINE"
8957 else
8958 no_cache=1
8959 fi
8960
8961 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8962
8963fi;
8964
8965 eval "$ac_cv_use_splash"
8966 if test "$no_cache" != 1; then
8967 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8968 fi
8969
8970 if test "$wxUSE_SPLASH" = yes; then
8971 echo "$as_me:$LINENO: result: yes" >&5
8972echo "${ECHO_T}yes" >&6
8973 else
8974 echo "$as_me:$LINENO: result: no" >&5
8975echo "${ECHO_T}no" >&6
8976 fi
8977
8978
8979 enablestring=
8980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8981echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8982 no_cache=0
8983 # Check whether --enable-textdlg or --disable-textdlg was given.
8984if test "${enable_textdlg+set}" = set; then
8985 enableval="$enable_textdlg"
8986
8987 if test "$enableval" = yes; then
8988 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8989 else
8990 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8991 fi
8992
8993else
8994
8995 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8996 if test "x$LINE" != x ; then
8997 eval "DEFAULT_$LINE"
8998 else
8999 no_cache=1
9000 fi
9001
9002 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9003
9004fi;
9005
9006 eval "$ac_cv_use_textdlg"
9007 if test "$no_cache" != 1; then
9008 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9009 fi
9010
9011 if test "$wxUSE_TEXTDLG" = yes; then
9012 echo "$as_me:$LINENO: result: yes" >&5
9013echo "${ECHO_T}yes" >&6
9014 else
9015 echo "$as_me:$LINENO: result: no" >&5
9016echo "${ECHO_T}no" >&6
9017 fi
9018
9019
9020 enablestring=
9021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9022echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9023 no_cache=0
9024 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9025if test "${enable_tipdlg+set}" = set; then
9026 enableval="$enable_tipdlg"
9027
9028 if test "$enableval" = yes; then
9029 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9030 else
9031 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9032 fi
9033
9034else
9035
9036 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9037 if test "x$LINE" != x ; then
9038 eval "DEFAULT_$LINE"
9039 else
9040 no_cache=1
9041 fi
9042
9043 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9044
9045fi;
9046
9047 eval "$ac_cv_use_tipdlg"
9048 if test "$no_cache" != 1; then
9049 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9050 fi
9051
9052 if test "$wxUSE_STARTUP_TIPS" = yes; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
9058 fi
9059
9060
9061 enablestring=
9062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9063echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9064 no_cache=0
9065 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9066if test "${enable_progressdlg+set}" = set; then
9067 enableval="$enable_progressdlg"
9068
9069 if test "$enableval" = yes; then
9070 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9071 else
9072 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9073 fi
9074
9075else
9076
9077 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9078 if test "x$LINE" != x ; then
9079 eval "DEFAULT_$LINE"
9080 else
9081 no_cache=1
9082 fi
9083
9084 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9085
9086fi;
9087
9088 eval "$ac_cv_use_progressdlg"
9089 if test "$no_cache" != 1; then
9090 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9091 fi
9092
9093 if test "$wxUSE_PROGRESSDLG" = yes; then
9094 echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
9096 else
9097 echo "$as_me:$LINENO: result: no" >&5
9098echo "${ECHO_T}no" >&6
9099 fi
9100
9101
9102 enablestring=
9103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9104echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9105 no_cache=0
9106 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9107if test "${enable_wizarddlg+set}" = set; then
9108 enableval="$enable_wizarddlg"
9109
9110 if test "$enableval" = yes; then
9111 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9112 else
9113 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9114 fi
9115
9116else
9117
9118 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9119 if test "x$LINE" != x ; then
9120 eval "DEFAULT_$LINE"
9121 else
9122 no_cache=1
9123 fi
9124
9125 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9126
9127fi;
9128
9129 eval "$ac_cv_use_wizarddlg"
9130 if test "$no_cache" != 1; then
9131 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9132 fi
9133
9134 if test "$wxUSE_WIZARDDLG" = yes; then
9135 echo "$as_me:$LINENO: result: yes" >&5
9136echo "${ECHO_T}yes" >&6
9137 else
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
9140 fi
9141
9142
9143
9144
9145 enablestring=
9146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9147echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9148 no_cache=0
9149 # Check whether --enable-menus or --disable-menus was given.
9150if test "${enable_menus+set}" = set; then
9151 enableval="$enable_menus"
9152
9153 if test "$enableval" = yes; then
9154 ac_cv_use_menus='wxUSE_MENUS=yes'
9155 else
9156 ac_cv_use_menus='wxUSE_MENUS=no'
9157 fi
9158
9159else
9160
9161 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9162 if test "x$LINE" != x ; then
9163 eval "DEFAULT_$LINE"
9164 else
9165 no_cache=1
9166 fi
9167
9168 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9169
9170fi;
9171
9172 eval "$ac_cv_use_menus"
9173 if test "$no_cache" != 1; then
9174 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9175 fi
9176
9177 if test "$wxUSE_MENUS" = yes; then
9178 echo "$as_me:$LINENO: result: yes" >&5
9179echo "${ECHO_T}yes" >&6
9180 else
9181 echo "$as_me:$LINENO: result: no" >&5
9182echo "${ECHO_T}no" >&6
9183 fi
9184
9185
9186 enablestring=
9187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9188echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9189 no_cache=0
9190 # Check whether --enable-miniframe or --disable-miniframe was given.
9191if test "${enable_miniframe+set}" = set; then
9192 enableval="$enable_miniframe"
9193
9194 if test "$enableval" = yes; then
9195 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9196 else
9197 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9198 fi
9199
9200else
9201
9202 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9203 if test "x$LINE" != x ; then
9204 eval "DEFAULT_$LINE"
9205 else
9206 no_cache=1
9207 fi
9208
9209 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9210
9211fi;
9212
9213 eval "$ac_cv_use_miniframe"
9214 if test "$no_cache" != 1; then
9215 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9216 fi
9217
9218 if test "$wxUSE_MINIFRAME" = yes; then
9219 echo "$as_me:$LINENO: result: yes" >&5
9220echo "${ECHO_T}yes" >&6
9221 else
9222 echo "$as_me:$LINENO: result: no" >&5
9223echo "${ECHO_T}no" >&6
9224 fi
9225
9226
9227 enablestring=
9228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9229echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9230 no_cache=0
9231 # Check whether --enable-tooltips or --disable-tooltips was given.
9232if test "${enable_tooltips+set}" = set; then
9233 enableval="$enable_tooltips"
9234
9235 if test "$enableval" = yes; then
9236 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9237 else
9238 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9239 fi
9240
9241else
9242
9243 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9244 if test "x$LINE" != x ; then
9245 eval "DEFAULT_$LINE"
9246 else
9247 no_cache=1
9248 fi
9249
9250 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9251
9252fi;
9253
9254 eval "$ac_cv_use_tooltips"
9255 if test "$no_cache" != 1; then
9256 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9257 fi
9258
9259 if test "$wxUSE_TOOLTIPS" = yes; then
9260 echo "$as_me:$LINENO: result: yes" >&5
9261echo "${ECHO_T}yes" >&6
9262 else
9263 echo "$as_me:$LINENO: result: no" >&5
9264echo "${ECHO_T}no" >&6
9265 fi
9266
9267
9268 enablestring=
9269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9270echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9271 no_cache=0
9272 # Check whether --enable-splines or --disable-splines was given.
9273if test "${enable_splines+set}" = set; then
9274 enableval="$enable_splines"
9275
9276 if test "$enableval" = yes; then
9277 ac_cv_use_splines='wxUSE_SPLINES=yes'
9278 else
9279 ac_cv_use_splines='wxUSE_SPLINES=no'
9280 fi
9281
9282else
9283
9284 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9285 if test "x$LINE" != x ; then
9286 eval "DEFAULT_$LINE"
9287 else
9288 no_cache=1
9289 fi
9290
9291 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9292
9293fi;
9294
9295 eval "$ac_cv_use_splines"
9296 if test "$no_cache" != 1; then
9297 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9298 fi
9299
9300 if test "$wxUSE_SPLINES" = yes; then
9301 echo "$as_me:$LINENO: result: yes" >&5
9302echo "${ECHO_T}yes" >&6
9303 else
9304 echo "$as_me:$LINENO: result: no" >&5
9305echo "${ECHO_T}no" >&6
9306 fi
9307
9308
9309 enablestring=
9310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9311echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9312 no_cache=0
9313 # Check whether --enable-validators or --disable-validators was given.
9314if test "${enable_validators+set}" = set; then
9315 enableval="$enable_validators"
9316
9317 if test "$enableval" = yes; then
9318 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9319 else
9320 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9321 fi
9322
9323else
9324
9325 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9326 if test "x$LINE" != x ; then
9327 eval "DEFAULT_$LINE"
9328 else
9329 no_cache=1
9330 fi
9331
9332 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9333
9334fi;
9335
9336 eval "$ac_cv_use_validators"
9337 if test "$no_cache" != 1; then
9338 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9339 fi
9340
9341 if test "$wxUSE_VALIDATORS" = yes; then
9342 echo "$as_me:$LINENO: result: yes" >&5
9343echo "${ECHO_T}yes" >&6
9344 else
9345 echo "$as_me:$LINENO: result: no" >&5
9346echo "${ECHO_T}no" >&6
9347 fi
9348
9349
9350 enablestring=
9351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9352echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9353 no_cache=0
9354 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9355if test "${enable_busyinfo+set}" = set; then
9356 enableval="$enable_busyinfo"
9357
9358 if test "$enableval" = yes; then
9359 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9360 else
9361 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9362 fi
9363
9364else
9365
9366 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9367 if test "x$LINE" != x ; then
9368 eval "DEFAULT_$LINE"
9369 else
9370 no_cache=1
9371 fi
9372
9373 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9374
9375fi;
9376
9377 eval "$ac_cv_use_busyinfo"
9378 if test "$no_cache" != 1; then
9379 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9380 fi
9381
9382 if test "$wxUSE_BUSYINFO" = yes; then
9383 echo "$as_me:$LINENO: result: yes" >&5
9384echo "${ECHO_T}yes" >&6
9385 else
9386 echo "$as_me:$LINENO: result: no" >&5
9387echo "${ECHO_T}no" >&6
9388 fi
9389
9390
9391 enablestring=
9392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9393echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9394 no_cache=0
9395 # Check whether --enable-joystick or --disable-joystick was given.
9396if test "${enable_joystick+set}" = set; then
9397 enableval="$enable_joystick"
9398
9399 if test "$enableval" = yes; then
9400 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9401 else
9402 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9403 fi
9404
9405else
9406
9407 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9408 if test "x$LINE" != x ; then
9409 eval "DEFAULT_$LINE"
9410 else
9411 no_cache=1
9412 fi
9413
9414 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9415
9416fi;
9417
9418 eval "$ac_cv_use_joystick"
9419 if test "$no_cache" != 1; then
9420 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9421 fi
9422
9423 if test "$wxUSE_JOYSTICK" = yes; then
9424 echo "$as_me:$LINENO: result: yes" >&5
9425echo "${ECHO_T}yes" >&6
9426 else
9427 echo "$as_me:$LINENO: result: no" >&5
9428echo "${ECHO_T}no" >&6
9429 fi
9430
9431
9432 enablestring=
9433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9434echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9435 no_cache=0
9436 # Check whether --enable-metafile or --disable-metafile was given.
9437if test "${enable_metafile+set}" = set; then
9438 enableval="$enable_metafile"
9439
9440 if test "$enableval" = yes; then
9441 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9442 else
9443 ac_cv_use_metafile='wxUSE_METAFILE=no'
9444 fi
9445
9446else
9447
9448 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9449 if test "x$LINE" != x ; then
9450 eval "DEFAULT_$LINE"
9451 else
9452 no_cache=1
9453 fi
9454
9455 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9456
9457fi;
9458
9459 eval "$ac_cv_use_metafile"
9460 if test "$no_cache" != 1; then
9461 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9462 fi
9463
9464 if test "$wxUSE_METAFILE" = yes; then
9465 echo "$as_me:$LINENO: result: yes" >&5
9466echo "${ECHO_T}yes" >&6
9467 else
9468 echo "$as_me:$LINENO: result: no" >&5
9469echo "${ECHO_T}no" >&6
9470 fi
9471
9472
9473 enablestring=
9474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9475echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9476 no_cache=0
9477 # Check whether --enable-dragimage or --disable-dragimage was given.
9478if test "${enable_dragimage+set}" = set; then
9479 enableval="$enable_dragimage"
9480
9481 if test "$enableval" = yes; then
9482 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9483 else
9484 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9485 fi
9486
9487else
9488
9489 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9490 if test "x$LINE" != x ; then
9491 eval "DEFAULT_$LINE"
9492 else
9493 no_cache=1
9494 fi
9495
9496 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9497
9498fi;
9499
9500 eval "$ac_cv_use_dragimage"
9501 if test "$no_cache" != 1; then
9502 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9503 fi
9504
9505 if test "$wxUSE_DRAGIMAGE" = yes; then
9506 echo "$as_me:$LINENO: result: yes" >&5
9507echo "${ECHO_T}yes" >&6
9508 else
9509 echo "$as_me:$LINENO: result: no" >&5
9510echo "${ECHO_T}no" >&6
9511 fi
9512
9513
9514 enablestring=
9515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9516echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9517 no_cache=0
9518 # Check whether --enable-accessibility or --disable-accessibility was given.
9519if test "${enable_accessibility+set}" = set; then
9520 enableval="$enable_accessibility"
9521
9522 if test "$enableval" = yes; then
9523 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9524 else
9525 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9526 fi
9527
9528else
9529
9530 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9531 if test "x$LINE" != x ; then
9532 eval "DEFAULT_$LINE"
9533 else
9534 no_cache=1
9535 fi
9536
9537 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9538
9539fi;
9540
9541 eval "$ac_cv_use_accessibility"
9542 if test "$no_cache" != 1; then
9543 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9544 fi
9545
9546 if test "$wxUSE_ACCESSIBILITY" = yes; then
9547 echo "$as_me:$LINENO: result: yes" >&5
9548echo "${ECHO_T}yes" >&6
9549 else
9550 echo "$as_me:$LINENO: result: no" >&5
9551echo "${ECHO_T}no" >&6
9552 fi
9553
9554
9555
9556
9557 enablestring=
9558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9559echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9560 no_cache=0
9561 # Check whether --enable-palette or --disable-palette was given.
9562if test "${enable_palette+set}" = set; then
9563 enableval="$enable_palette"
9564
9565 if test "$enableval" = yes; then
9566 ac_cv_use_palette='wxUSE_PALETTE=yes'
9567 else
9568 ac_cv_use_palette='wxUSE_PALETTE=no'
9569 fi
9570
9571else
9572
9573 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9574 if test "x$LINE" != x ; then
9575 eval "DEFAULT_$LINE"
9576 else
9577 no_cache=1
9578 fi
9579
9580 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9581
9582fi;
9583
9584 eval "$ac_cv_use_palette"
9585 if test "$no_cache" != 1; then
9586 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9587 fi
9588
9589 if test "$wxUSE_PALETTE" = yes; then
9590 echo "$as_me:$LINENO: result: yes" >&5
9591echo "${ECHO_T}yes" >&6
9592 else
9593 echo "$as_me:$LINENO: result: no" >&5
9594echo "${ECHO_T}no" >&6
9595 fi
9596
9597
9598 enablestring=
9599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9600echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9601 no_cache=0
9602 # Check whether --enable-image or --disable-image was given.
9603if test "${enable_image+set}" = set; then
9604 enableval="$enable_image"
9605
9606 if test "$enableval" = yes; then
9607 ac_cv_use_image='wxUSE_IMAGE=yes'
9608 else
9609 ac_cv_use_image='wxUSE_IMAGE=no'
9610 fi
9611
9612else
9613
9614 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9615 if test "x$LINE" != x ; then
9616 eval "DEFAULT_$LINE"
9617 else
9618 no_cache=1
9619 fi
9620
9621 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9622
9623fi;
9624
9625 eval "$ac_cv_use_image"
9626 if test "$no_cache" != 1; then
9627 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9628 fi
9629
9630 if test "$wxUSE_IMAGE" = yes; then
9631 echo "$as_me:$LINENO: result: yes" >&5
9632echo "${ECHO_T}yes" >&6
9633 else
9634 echo "$as_me:$LINENO: result: no" >&5
9635echo "${ECHO_T}no" >&6
9636 fi
9637
9638
9639 enablestring=
9640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9641echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9642 no_cache=0
9643 # Check whether --enable-gif or --disable-gif was given.
9644if test "${enable_gif+set}" = set; then
9645 enableval="$enable_gif"
9646
9647 if test "$enableval" = yes; then
9648 ac_cv_use_gif='wxUSE_GIF=yes'
9649 else
9650 ac_cv_use_gif='wxUSE_GIF=no'
9651 fi
9652
9653else
9654
9655 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9656 if test "x$LINE" != x ; then
9657 eval "DEFAULT_$LINE"
9658 else
9659 no_cache=1
9660 fi
9661
9662 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9663
9664fi;
9665
9666 eval "$ac_cv_use_gif"
9667 if test "$no_cache" != 1; then
9668 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9669 fi
9670
9671 if test "$wxUSE_GIF" = yes; then
9672 echo "$as_me:$LINENO: result: yes" >&5
9673echo "${ECHO_T}yes" >&6
9674 else
9675 echo "$as_me:$LINENO: result: no" >&5
9676echo "${ECHO_T}no" >&6
9677 fi
9678
9679
9680 enablestring=
9681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9682echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9683 no_cache=0
9684 # Check whether --enable-pcx or --disable-pcx was given.
9685if test "${enable_pcx+set}" = set; then
9686 enableval="$enable_pcx"
9687
9688 if test "$enableval" = yes; then
9689 ac_cv_use_pcx='wxUSE_PCX=yes'
9690 else
9691 ac_cv_use_pcx='wxUSE_PCX=no'
9692 fi
9693
9694else
9695
9696 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9697 if test "x$LINE" != x ; then
9698 eval "DEFAULT_$LINE"
9699 else
9700 no_cache=1
9701 fi
9702
9703 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9704
9705fi;
9706
9707 eval "$ac_cv_use_pcx"
9708 if test "$no_cache" != 1; then
9709 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9710 fi
9711
9712 if test "$wxUSE_PCX" = yes; then
9713 echo "$as_me:$LINENO: result: yes" >&5
9714echo "${ECHO_T}yes" >&6
9715 else
9716 echo "$as_me:$LINENO: result: no" >&5
9717echo "${ECHO_T}no" >&6
9718 fi
9719
9720
9721 enablestring=
9722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9723echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9724 no_cache=0
9725 # Check whether --enable-iff or --disable-iff was given.
9726if test "${enable_iff+set}" = set; then
9727 enableval="$enable_iff"
9728
9729 if test "$enableval" = yes; then
9730 ac_cv_use_iff='wxUSE_IFF=yes'
9731 else
9732 ac_cv_use_iff='wxUSE_IFF=no'
9733 fi
9734
9735else
9736
9737 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9738 if test "x$LINE" != x ; then
9739 eval "DEFAULT_$LINE"
9740 else
9741 no_cache=1
9742 fi
9743
9744 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9745
9746fi;
9747
9748 eval "$ac_cv_use_iff"
9749 if test "$no_cache" != 1; then
9750 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9751 fi
9752
9753 if test "$wxUSE_IFF" = yes; then
9754 echo "$as_me:$LINENO: result: yes" >&5
9755echo "${ECHO_T}yes" >&6
9756 else
9757 echo "$as_me:$LINENO: result: no" >&5
9758echo "${ECHO_T}no" >&6
9759 fi
9760
9761
9762 enablestring=
9763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9764echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9765 no_cache=0
9766 # Check whether --enable-pnm or --disable-pnm was given.
9767if test "${enable_pnm+set}" = set; then
9768 enableval="$enable_pnm"
9769
9770 if test "$enableval" = yes; then
9771 ac_cv_use_pnm='wxUSE_PNM=yes'
9772 else
9773 ac_cv_use_pnm='wxUSE_PNM=no'
9774 fi
9775
9776else
9777
9778 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9779 if test "x$LINE" != x ; then
9780 eval "DEFAULT_$LINE"
9781 else
9782 no_cache=1
9783 fi
9784
9785 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9786
9787fi;
9788
9789 eval "$ac_cv_use_pnm"
9790 if test "$no_cache" != 1; then
9791 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9792 fi
9793
9794 if test "$wxUSE_PNM" = yes; then
9795 echo "$as_me:$LINENO: result: yes" >&5
9796echo "${ECHO_T}yes" >&6
9797 else
9798 echo "$as_me:$LINENO: result: no" >&5
9799echo "${ECHO_T}no" >&6
9800 fi
9801
9802
9803 enablestring=
9804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9805echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9806 no_cache=0
9807 # Check whether --enable-xpm or --disable-xpm was given.
9808if test "${enable_xpm+set}" = set; then
9809 enableval="$enable_xpm"
9810
9811 if test "$enableval" = yes; then
9812 ac_cv_use_xpm='wxUSE_XPM=yes'
9813 else
9814 ac_cv_use_xpm='wxUSE_XPM=no'
9815 fi
9816
9817else
9818
9819 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9820 if test "x$LINE" != x ; then
9821 eval "DEFAULT_$LINE"
9822 else
9823 no_cache=1
9824 fi
9825
9826 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9827
9828fi;
9829
9830 eval "$ac_cv_use_xpm"
9831 if test "$no_cache" != 1; then
9832 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9833 fi
9834
9835 if test "$wxUSE_XPM" = yes; then
9836 echo "$as_me:$LINENO: result: yes" >&5
9837echo "${ECHO_T}yes" >&6
9838 else
9839 echo "$as_me:$LINENO: result: no" >&5
9840echo "${ECHO_T}no" >&6
9841 fi
9842
9843
9844 enablestring=
9845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9846echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9847 no_cache=0
9848 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9849if test "${enable_ico_cur+set}" = set; then
9850 enableval="$enable_ico_cur"
9851
9852 if test "$enableval" = yes; then
9853 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9854 else
9855 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9856 fi
9857
9858else
9859
9860 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9861 if test "x$LINE" != x ; then
9862 eval "DEFAULT_$LINE"
9863 else
9864 no_cache=1
9865 fi
9866
9867 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9868
9869fi;
9870
9871 eval "$ac_cv_use_ico_cur"
9872 if test "$no_cache" != 1; then
9873 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9874 fi
9875
9876 if test "$wxUSE_ICO_CUR" = yes; then
9877 echo "$as_me:$LINENO: result: yes" >&5
9878echo "${ECHO_T}yes" >&6
9879 else
9880 echo "$as_me:$LINENO: result: no" >&5
9881echo "${ECHO_T}no" >&6
9882 fi
9883
9884
9885fi
9886
9887
9888
9889 enablestring=
9890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9891echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9892 no_cache=0
9893 # Check whether --enable-official_build or --disable-official_build was given.
9894if test "${enable_official_build+set}" = set; then
9895 enableval="$enable_official_build"
9896
9897 if test "$enableval" = yes; then
9898 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9899 else
9900 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9901 fi
9902
9903else
9904
9905 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9906 if test "x$LINE" != x ; then
9907 eval "DEFAULT_$LINE"
9908 else
9909 no_cache=1
9910 fi
9911
9912 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9913
9914fi;
9915
9916 eval "$ac_cv_use_official_build"
9917 if test "$no_cache" != 1; then
9918 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9919 fi
9920
9921 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9922 echo "$as_me:$LINENO: result: yes" >&5
9923echo "${ECHO_T}yes" >&6
9924 else
9925 echo "$as_me:$LINENO: result: no" >&5
9926echo "${ECHO_T}no" >&6
9927 fi
9928
9929# Check whether --enable-vendor or --disable-vendor was given.
9930if test "${enable_vendor+set}" = set; then
9931 enableval="$enable_vendor"
9932 VENDOR="$enableval"
9933fi;
9934if test "x$VENDOR" = "x"; then
9935 VENDOR="custom"
9936fi
9937
9938case "${host}" in
9939 *-pc-os2_emx | *-pc-os2-emx )
9940 PATH_IFS=';'
a848cd7e
SC
9941 ;;
9942 *)
9943 PATH_IFS=':'
9944 ;;
9945esac
9946
9947
9948
9949 echo "saving argument cache $wx_arg_cache_file"
9950 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9951
9952
9953
9954echo "$as_me:$LINENO: checking for toolkit" >&5
9955echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9956
9957# In Wine, we need to default to MSW, not GTK or MOTIF
9958if test "$wxUSE_WINE" = "yes"; then
9959 DEFAULT_DEFAULT_wxUSE_GTK=0
9960 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9961 DEFAULT_DEFAULT_wxUSE_MSW=1
9962 wxUSE_SHARED=no
9963fi
9964
9965if test "$wxUSE_GUI" = "yes"; then
9966
9967 if test "$USE_BEOS" = 1; then
9968 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9969echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9970 { (exit 1); exit 1; }; }
9971 fi
9972
9973 if test "$TOOLKIT_GIVEN" = 1; then
9974 for toolkit in `echo $ALL_TOOLKITS`; do
9975 var=wxUSE_$toolkit
9976 eval "value=\$${var}"
9977 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9978 done
9979 else
9980 for toolkit in `echo $ALL_TOOLKITS`; do
9981 if test "$has_toolkit_in_cache" != 1; then
9982 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9983 else
9984 var=DEFAULT_wxUSE_$toolkit
9985 fi
9986 eval "wxUSE_$toolkit=\$${var}"
9987 done
9988 fi
9989
9990 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9991 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9992 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9993
9994 case "${host}" in
9995 *-pc-os2_emx | *-pc-os2-emx )
9996 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9997 esac
9998
9999 case "$NUM_TOOLKITS" in
10000 1)
10001 ;;
10002 0)
10003 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10004echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10005 { (exit 1); exit 1; }; }
10006 ;;
10007 *)
10008 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10009echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10010 { (exit 1); exit 1; }; }
10011 esac
10012
10013 for toolkit in `echo $ALL_TOOLKITS`; do
10014 var=wxUSE_$toolkit
10015 eval "value=\$${var}"
10016 if test "x$value" != x; then
10017 cache_var=CACHE_$toolkit
10018 eval "cache=\$${cache_var}"
10019 if test "$cache" = 1; then
10020 echo "$var=$value" >> ${wx_arg_cache_file}
10021 fi
10022 if test "$value" = 1; then
10023 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10024 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10025echo "${ECHO_T}$toolkit_echo" >&6
10026 fi
10027 fi
10028 done
10029else
10030 if test "x$host_alias" != "x"; then
10031 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10032echo "${ECHO_T}base ($host_alias hosted) only" >&6
10033 else
10034 echo "$as_me:$LINENO: result: base only" >&5
10035echo "${ECHO_T}base only" >&6
10036 fi
10037fi
10038
10039wants_win32=0
10040doesnt_want_win32=0
10041case "${host}" in
10042 *-*-cygwin*)
10043 if test "$wxUSE_MSW" = 1 ; then
10044 wants_win32=1
10045 else
10046 doesnt_want_win32=1
10047 fi
10048 ;;
10049 *-*-mingw*)
10050 wants_win32=1
10051 ;;
10052esac
10053
10054if test "$wxUSE_WINE" = "yes"; then
10055 wants_win32=1
10056 CC=winegcc
10057 CXX=wineg++
10058 RESCOMP=wrc
10059 LDFLAGS_GUI="-mwindows"
10060fi
10061
10062if test "$wants_win32" = 1 ; then
10063 USE_UNIX=0
10064 USE_WIN32=1
10065 cat >>confdefs.h <<\_ACEOF
10066#define __WIN32__ 1
10067_ACEOF
10068
10069 cat >>confdefs.h <<\_ACEOF
10070#define __WIN95__ 1
10071_ACEOF
10072
10073 cat >>confdefs.h <<\_ACEOF
10074#define __WINDOWS__ 1
10075_ACEOF
10076
10077 cat >>confdefs.h <<\_ACEOF
10078#define __GNUWIN32__ 1
10079_ACEOF
10080
10081 cat >>confdefs.h <<\_ACEOF
10082#define STRICT 1
10083_ACEOF
10084
10085 cat >>confdefs.h <<\_ACEOF
10086#define WINVER 0x0400
10087_ACEOF
10088
10089fi
10090if test "$doesnt_want_win32" = 1 ; then
10091 USE_UNIX=1
10092 USE_WIN32=0
10093fi
10094
10095if test "$USE_UNIX" = 1 ; then
10096 wxUSE_UNIX=yes
10097 cat >>confdefs.h <<\_ACEOF
10098#define __UNIX__ 1
10099_ACEOF
10100
10101fi
10102
10103
10104cat >confcache <<\_ACEOF
10105# This file is a shell script that caches the results of configure
10106# tests run on this system so they can be shared between configure
10107# scripts and configure runs, see configure's option --config-cache.
10108# It is not useful on other systems. If it contains results you don't
10109# want to keep, you may remove or edit it.
10110#
10111# config.status only pays attention to the cache file if you give it
10112# the --recheck option to rerun configure.
10113#
10114# `ac_cv_env_foo' variables (set or unset) will be overridden when
10115# loading this file, other *unset* `ac_cv_foo' will be assigned the
10116# following values.
10117
10118_ACEOF
10119
10120# The following way of writing the cache mishandles newlines in values,
10121# but we know of no workaround that is simple, portable, and efficient.
10122# So, don't put newlines in cache variables' values.
10123# Ultrix sh set writes to stderr and can't be redirected directly,
10124# and sets the high bit in the cache file unless we assign to the vars.
10125{
10126 (set) 2>&1 |
10127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10128 *ac_space=\ *)
10129 # `set' does not quote correctly, so add quotes (double-quote
10130 # substitution turns \\\\ into \\, and sed turns \\ into \).
10131 sed -n \
ac1cb8d3
VS
10132 "s/'/'\\\\''/g;
10133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10134 ;;
10135 *)
10136 # `set' quotes correctly as required by POSIX, so do not add quotes.
10137 sed -n \
ac1cb8d3 10138 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10139 ;;
10140 esac;
10141} |
10142 sed '
10143 t clear
10144 : clear
10145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10146 t end
10147 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10148 : end' >>confcache
10149if diff $cache_file confcache >/dev/null 2>&1; then :; else
10150 if test -w $cache_file; then
10151 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10152 cat confcache >$cache_file
10153 else
10154 echo "not updating unwritable cache $cache_file"
10155 fi
10156fi
10157rm -f confcache
10158
10159if test "$build" != "$host" ; then
10160 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10161 CC=$host_alias-gcc
10162 CXX=$host_alias-c++
10163 AR=$host_alias-ar
10164 RANLIB=$host_alias-ranlib
10165 DLLTOOL=$host_alias-dlltool
10166 RESCOMP=$host_alias-windres
10167 LD=$host_alias-ld
10168 NM=$host_alias-nm
10169 STRIP=$host_alias-strip
10170 else
10171 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10172echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10173 { (exit 1); exit 1; }; }
10174 fi
10175fi
10176
10177CFLAGS=${CFLAGS:=}
10178ac_ext=c
10179ac_cpp='$CPP $CPPFLAGS'
10180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183if test -n "$ac_tool_prefix"; then
10184 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10185set dummy ${ac_tool_prefix}gcc; ac_word=$2
10186echo "$as_me:$LINENO: checking for $ac_word" >&5
10187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10188if test "${ac_cv_prog_CC+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190else
10191 if test -n "$CC"; then
10192 ac_cv_prog_CC="$CC" # Let the user override the test.
10193else
10194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195for as_dir in $PATH
10196do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10201 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10204 fi
10205done
10206done
10207
10208fi
10209fi
10210CC=$ac_cv_prog_CC
10211if test -n "$CC"; then
10212 echo "$as_me:$LINENO: result: $CC" >&5
10213echo "${ECHO_T}$CC" >&6
10214else
10215 echo "$as_me:$LINENO: result: no" >&5
10216echo "${ECHO_T}no" >&6
10217fi
10218
10219fi
10220if test -z "$ac_cv_prog_CC"; then
10221 ac_ct_CC=$CC
10222 # Extract the first word of "gcc", so it can be a program name with args.
10223set dummy gcc; ac_word=$2
10224echo "$as_me:$LINENO: checking for $ac_word" >&5
10225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10226if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228else
10229 if test -n "$ac_ct_CC"; then
10230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10231else
10232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233for as_dir in $PATH
10234do
10235 IFS=$as_save_IFS
10236 test -z "$as_dir" && as_dir=.
10237 for ac_exec_ext in '' $ac_executable_extensions; do
10238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10239 ac_cv_prog_ac_ct_CC="gcc"
10240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10241 break 2
10242 fi
10243done
10244done
10245
10246fi
10247fi
10248ac_ct_CC=$ac_cv_prog_ac_ct_CC
10249if test -n "$ac_ct_CC"; then
10250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10251echo "${ECHO_T}$ac_ct_CC" >&6
10252else
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
10255fi
10256
10257 CC=$ac_ct_CC
10258else
10259 CC="$ac_cv_prog_CC"
10260fi
10261
10262if test -z "$CC"; then
10263 if test -n "$ac_tool_prefix"; then
10264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10265set dummy ${ac_tool_prefix}cc; ac_word=$2
10266echo "$as_me:$LINENO: checking for $ac_word" >&5
10267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10268if test "${ac_cv_prog_CC+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271 if test -n "$CC"; then
10272 ac_cv_prog_CC="$CC" # Let the user override the test.
10273else
10274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275for as_dir in $PATH
10276do
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10281 ac_cv_prog_CC="${ac_tool_prefix}cc"
10282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 break 2
10284 fi
10285done
10286done
10287
10288fi
10289fi
10290CC=$ac_cv_prog_CC
10291if test -n "$CC"; then
10292 echo "$as_me:$LINENO: result: $CC" >&5
10293echo "${ECHO_T}$CC" >&6
10294else
10295 echo "$as_me:$LINENO: result: no" >&5
10296echo "${ECHO_T}no" >&6
10297fi
10298
10299fi
10300if test -z "$ac_cv_prog_CC"; then
10301 ac_ct_CC=$CC
10302 # Extract the first word of "cc", so it can be a program name with args.
10303set dummy cc; ac_word=$2
10304echo "$as_me:$LINENO: checking for $ac_word" >&5
10305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10306if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309 if test -n "$ac_ct_CC"; then
10310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10311else
10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in $PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10319 ac_cv_prog_ac_ct_CC="cc"
10320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323done
10324done
10325
10326fi
10327fi
10328ac_ct_CC=$ac_cv_prog_ac_ct_CC
10329if test -n "$ac_ct_CC"; then
10330 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10331echo "${ECHO_T}$ac_ct_CC" >&6
10332else
10333 echo "$as_me:$LINENO: result: no" >&5
10334echo "${ECHO_T}no" >&6
10335fi
10336
10337 CC=$ac_ct_CC
10338else
10339 CC="$ac_cv_prog_CC"
10340fi
10341
10342fi
10343if test -z "$CC"; then
10344 # Extract the first word of "cc", so it can be a program name with args.
10345set dummy cc; ac_word=$2
10346echo "$as_me:$LINENO: checking for $ac_word" >&5
10347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10348if test "${ac_cv_prog_CC+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
10351 if test -n "$CC"; then
10352 ac_cv_prog_CC="$CC" # Let the user override the test.
10353else
10354 ac_prog_rejected=no
10355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356for as_dir in $PATH
10357do
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10363 ac_prog_rejected=yes
10364 continue
10365 fi
10366 ac_cv_prog_CC="cc"
10367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 break 2
10369 fi
10370done
10371done
10372
10373if test $ac_prog_rejected = yes; then
10374 # We found a bogon in the path, so make sure we never use it.
10375 set dummy $ac_cv_prog_CC
10376 shift
10377 if test $# != 0; then
10378 # We chose a different compiler from the bogus one.
10379 # However, it has the same basename, so the bogon will be chosen
10380 # first if we set CC to just the basename; use the full file name.
10381 shift
10382 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10383 fi
10384fi
10385fi
10386fi
10387CC=$ac_cv_prog_CC
10388if test -n "$CC"; then
10389 echo "$as_me:$LINENO: result: $CC" >&5
10390echo "${ECHO_T}$CC" >&6
10391else
10392 echo "$as_me:$LINENO: result: no" >&5
10393echo "${ECHO_T}no" >&6
10394fi
10395
10396fi
10397if test -z "$CC"; then
10398 if test -n "$ac_tool_prefix"; then
10399 for ac_prog in cl
10400 do
10401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10402set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10403echo "$as_me:$LINENO: checking for $ac_word" >&5
10404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10405if test "${ac_cv_prog_CC+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10407else
10408 if test -n "$CC"; then
10409 ac_cv_prog_CC="$CC" # Let the user override the test.
10410else
10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412for as_dir in $PATH
10413do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10420 break 2
10421 fi
10422done
10423done
10424
10425fi
10426fi
10427CC=$ac_cv_prog_CC
10428if test -n "$CC"; then
10429 echo "$as_me:$LINENO: result: $CC" >&5
10430echo "${ECHO_T}$CC" >&6
10431else
10432 echo "$as_me:$LINENO: result: no" >&5
10433echo "${ECHO_T}no" >&6
10434fi
10435
10436 test -n "$CC" && break
10437 done
10438fi
10439if test -z "$CC"; then
10440 ac_ct_CC=$CC
10441 for ac_prog in cl
10442do
10443 # Extract the first word of "$ac_prog", so it can be a program name with args.
10444set dummy $ac_prog; ac_word=$2
10445echo "$as_me:$LINENO: checking for $ac_word" >&5
10446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449else
10450 if test -n "$ac_ct_CC"; then
10451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10452else
10453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454for as_dir in $PATH
10455do
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10460 ac_cv_prog_ac_ct_CC="$ac_prog"
10461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 break 2
10463 fi
10464done
10465done
10466
10467fi
10468fi
10469ac_ct_CC=$ac_cv_prog_ac_ct_CC
10470if test -n "$ac_ct_CC"; then
10471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10472echo "${ECHO_T}$ac_ct_CC" >&6
10473else
10474 echo "$as_me:$LINENO: result: no" >&5
10475echo "${ECHO_T}no" >&6
10476fi
10477
10478 test -n "$ac_ct_CC" && break
10479done
10480
10481 CC=$ac_ct_CC
10482fi
10483
10484fi
10485
10486
10487test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10488See \`config.log' for more details." >&5
10489echo "$as_me: error: no acceptable C compiler found in \$PATH
10490See \`config.log' for more details." >&2;}
10491 { (exit 1); exit 1; }; }
10492
10493# Provide some information about the compiler.
10494echo "$as_me:$LINENO:" \
10495 "checking for C compiler version" >&5
10496ac_compiler=`set X $ac_compile; echo $2`
10497{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10498 (eval $ac_compiler --version </dev/null >&5) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }
10502{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10503 (eval $ac_compiler -v </dev/null >&5) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }
10507{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10508 (eval $ac_compiler -V </dev/null >&5) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }
10512
10513cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h. */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h. */
10519
10520int
10521main ()
10522{
10523
10524 ;
10525 return 0;
10526}
10527_ACEOF
10528ac_clean_files_save=$ac_clean_files
10529ac_clean_files="$ac_clean_files a.out a.exe b.out"
10530# Try to create an executable without -o first, disregard a.out.
10531# It will help us diagnose broken compilers, and finding out an intuition
10532# of exeext.
ac1cb8d3
VS
10533echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10534echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10535ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10536if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10537 (eval $ac_link_default) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; then
10541 # Find the output, starting from the most likely. This scheme is
10542# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10543# resort.
10544
10545# Be careful to initialize this variable, since it used to be cached.
10546# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10547ac_cv_exeext=
10548# b.out is created by i960 compilers.
10549for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10550do
10551 test -f "$ac_file" || continue
10552 case $ac_file in
10553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10554 ;;
a848cd7e 10555 conftest.$ac_ext )
ac1cb8d3
VS
10556 # This is the source file.
10557 ;;
a848cd7e 10558 [ab].out )
ac1cb8d3
VS
10559 # We found the default executable, but exeext='' is most
10560 # certainly right.
10561 break;;
a848cd7e 10562 *.* )
ac1cb8d3
VS
10563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10564 # FIXME: I believe we export ac_cv_exeext for Libtool,
10565 # but it would be cool to find out if it's true. Does anybody
10566 # maintain Libtool? --akim.
10567 export ac_cv_exeext
10568 break;;
a848cd7e 10569 * )
ac1cb8d3 10570 break;;
a848cd7e
SC
10571 esac
10572done
10573else
10574 echo "$as_me: failed program was:" >&5
10575sed 's/^/| /' conftest.$ac_ext >&5
10576
10577{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10578See \`config.log' for more details." >&5
10579echo "$as_me: error: C compiler cannot create executables
10580See \`config.log' for more details." >&2;}
10581 { (exit 77); exit 77; }; }
10582fi
10583
10584ac_exeext=$ac_cv_exeext
10585echo "$as_me:$LINENO: result: $ac_file" >&5
10586echo "${ECHO_T}$ac_file" >&6
10587
10588# Check the compiler produces executables we can run. If not, either
10589# the compiler is broken, or we cross compile.
10590echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10591echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10592# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10593# If not cross compiling, check that we can run a simple program.
10594if test "$cross_compiling" != yes; then
10595 if { ac_try='./$ac_file'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 cross_compiling=no
10602 else
10603 if test "$cross_compiling" = maybe; then
10604 cross_compiling=yes
10605 else
10606 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10607If you meant to cross compile, use \`--host'.
10608See \`config.log' for more details." >&5
10609echo "$as_me: error: cannot run C compiled programs.
10610If you meant to cross compile, use \`--host'.
10611See \`config.log' for more details." >&2;}
10612 { (exit 1); exit 1; }; }
10613 fi
10614 fi
10615fi
10616echo "$as_me:$LINENO: result: yes" >&5
10617echo "${ECHO_T}yes" >&6
10618
10619rm -f a.out a.exe conftest$ac_cv_exeext b.out
10620ac_clean_files=$ac_clean_files_save
10621# Check the compiler produces executables we can run. If not, either
10622# the compiler is broken, or we cross compile.
10623echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10624echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10625echo "$as_me:$LINENO: result: $cross_compiling" >&5
10626echo "${ECHO_T}$cross_compiling" >&6
10627
10628echo "$as_me:$LINENO: checking for suffix of executables" >&5
10629echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; then
10635 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10636# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10637# work properly (i.e., refer to `conftest.exe'), while it won't with
10638# `rm'.
10639for ac_file in conftest.exe conftest conftest.*; do
10640 test -f "$ac_file" || continue
10641 case $ac_file in
10642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10644 export ac_cv_exeext
10645 break;;
a848cd7e
SC
10646 * ) break;;
10647 esac
10648done
10649else
10650 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10651See \`config.log' for more details." >&5
10652echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10653See \`config.log' for more details." >&2;}
10654 { (exit 1); exit 1; }; }
10655fi
10656
10657rm -f conftest$ac_cv_exeext
10658echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10659echo "${ECHO_T}$ac_cv_exeext" >&6
10660
10661rm -f conftest.$ac_ext
10662EXEEXT=$ac_cv_exeext
10663ac_exeext=$EXEEXT
10664echo "$as_me:$LINENO: checking for suffix of object files" >&5
10665echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10666if test "${ac_cv_objext+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668else
10669 cat >conftest.$ac_ext <<_ACEOF
10670/* confdefs.h. */
10671_ACEOF
10672cat confdefs.h >>conftest.$ac_ext
10673cat >>conftest.$ac_ext <<_ACEOF
10674/* end confdefs.h. */
10675
10676int
10677main ()
10678{
10679
10680 ;
10681 return 0;
10682}
10683_ACEOF
10684rm -f conftest.o conftest.obj
10685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10686 (eval $ac_compile) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; then
10690 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10691 case $ac_file in
10692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10694 break;;
10695 esac
10696done
10697else
10698 echo "$as_me: failed program was:" >&5
10699sed 's/^/| /' conftest.$ac_ext >&5
10700
10701{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10702See \`config.log' for more details." >&5
10703echo "$as_me: error: cannot compute suffix of object files: cannot compile
10704See \`config.log' for more details." >&2;}
10705 { (exit 1); exit 1; }; }
10706fi
10707
10708rm -f conftest.$ac_cv_objext conftest.$ac_ext
10709fi
10710echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10711echo "${ECHO_T}$ac_cv_objext" >&6
10712OBJEXT=$ac_cv_objext
10713ac_objext=$OBJEXT
10714echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10715echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10716if test "${ac_cv_c_compiler_gnu+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10718else
10719 cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h. */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h. */
10725
10726int
10727main ()
10728{
10729#ifndef __GNUC__
10730 choke me
10731#endif
10732
10733 ;
10734 return 0;
10735}
10736_ACEOF
10737rm -f conftest.$ac_objext
10738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10739 (eval $ac_compile) 2>conftest.er1
a848cd7e 10740 ac_status=$?
ac1cb8d3
VS
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
a848cd7e
SC
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
ea7db9ff
DE
10746 { ac_try='test -z "$ac_c_werror_flag"
10747 || test ! -s conftest.err'
ac1cb8d3
VS
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 ac_compiler_gnu=yes
10760else
10761 echo "$as_me: failed program was:" >&5
10762sed 's/^/| /' conftest.$ac_ext >&5
10763
10764ac_compiler_gnu=no
10765fi
ac1cb8d3 10766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10767ac_cv_c_compiler_gnu=$ac_compiler_gnu
10768
10769fi
10770echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10771echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10772GCC=`test $ac_compiler_gnu = yes && echo yes`
10773ac_test_CFLAGS=${CFLAGS+set}
10774ac_save_CFLAGS=$CFLAGS
10775CFLAGS="-g"
10776echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10777echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10778if test "${ac_cv_prog_cc_g+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780else
10781 cat >conftest.$ac_ext <<_ACEOF
10782/* confdefs.h. */
10783_ACEOF
10784cat confdefs.h >>conftest.$ac_ext
10785cat >>conftest.$ac_ext <<_ACEOF
10786/* end confdefs.h. */
10787
10788int
10789main ()
10790{
10791
10792 ;
10793 return 0;
10794}
10795_ACEOF
10796rm -f conftest.$ac_objext
10797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10798 (eval $ac_compile) 2>conftest.er1
a848cd7e 10799 ac_status=$?
ac1cb8d3
VS
10800 grep -v '^ *+' conftest.er1 >conftest.err
10801 rm -f conftest.er1
10802 cat conftest.err >&5
a848cd7e
SC
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
ea7db9ff
DE
10805 { ac_try='test -z "$ac_c_werror_flag"
10806 || test ! -s conftest.err'
ac1cb8d3
VS
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; } &&
10812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 ac_cv_prog_cc_g=yes
10819else
10820 echo "$as_me: failed program was:" >&5
10821sed 's/^/| /' conftest.$ac_ext >&5
10822
10823ac_cv_prog_cc_g=no
10824fi
ac1cb8d3 10825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10826fi
10827echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10828echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10829if test "$ac_test_CFLAGS" = set; then
10830 CFLAGS=$ac_save_CFLAGS
10831elif test $ac_cv_prog_cc_g = yes; then
10832 if test "$GCC" = yes; then
10833 CFLAGS="-g -O2"
10834 else
10835 CFLAGS="-g"
10836 fi
10837else
10838 if test "$GCC" = yes; then
10839 CFLAGS="-O2"
10840 else
10841 CFLAGS=
10842 fi
10843fi
10844echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10845echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10846if test "${ac_cv_prog_cc_stdc+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848else
10849 ac_cv_prog_cc_stdc=no
10850ac_save_CC=$CC
10851cat >conftest.$ac_ext <<_ACEOF
10852/* confdefs.h. */
10853_ACEOF
10854cat confdefs.h >>conftest.$ac_ext
10855cat >>conftest.$ac_ext <<_ACEOF
10856/* end confdefs.h. */
10857#include <stdarg.h>
10858#include <stdio.h>
10859#include <sys/types.h>
10860#include <sys/stat.h>
10861/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10862struct buf { int x; };
10863FILE * (*rcsopen) (struct buf *, struct stat *, int);
10864static char *e (p, i)
10865 char **p;
10866 int i;
10867{
10868 return p[i];
10869}
10870static char *f (char * (*g) (char **, int), char **p, ...)
10871{
10872 char *s;
10873 va_list v;
10874 va_start (v,p);
10875 s = g (p, va_arg (v,int));
10876 va_end (v);
10877 return s;
10878}
ac1cb8d3
VS
10879
10880/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10881 function prototypes and stuff, but not '\xHH' hex character constants.
10882 These don't provoke an error unfortunately, instead are silently treated
10883 as 'x'. The following induces an error, until -std1 is added to get
10884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10885 array size at least. It's necessary to write '\x00'==0 to get something
10886 that's true only with -std1. */
10887int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10888
a848cd7e
SC
10889int test (int i, double x);
10890struct s1 {int (*f) (int a);};
10891struct s2 {int (*f) (double a);};
10892int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10893int argc;
10894char **argv;
10895int
10896main ()
10897{
10898return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10899 ;
10900 return 0;
10901}
10902_ACEOF
10903# Don't try gcc -ansi; that turns off useful extensions and
10904# breaks some systems' header files.
10905# AIX -qlanglvl=ansi
10906# Ultrix and OSF/1 -std1
10907# HP-UX 10.20 and later -Ae
10908# HP-UX older versions -Aa -D_HPUX_SOURCE
10909# SVR4 -Xc -D__EXTENSIONS__
10910for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10911do
10912 CC="$ac_save_CC $ac_arg"
10913 rm -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); } &&
ea7db9ff
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_stdc=$ac_arg
10936break
10937else
10938 echo "$as_me: failed program was:" >&5
10939sed 's/^/| /' conftest.$ac_ext >&5
10940
10941fi
ac1cb8d3 10942rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
10943done
10944rm -f conftest.$ac_ext conftest.$ac_objext
10945CC=$ac_save_CC
10946
10947fi
10948
10949case "x$ac_cv_prog_cc_stdc" in
10950 x|xno)
10951 echo "$as_me:$LINENO: result: none needed" >&5
10952echo "${ECHO_T}none needed" >&6 ;;
10953 *)
10954 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10955echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10956 CC="$CC $ac_cv_prog_cc_stdc" ;;
10957esac
10958
10959# Some people use a C++ compiler to compile C. Since we use `exit',
10960# in C++ we need to declare it. In case someone uses the same compiler
10961# for both compiling C and C++ we need to have the C++ compiler decide
10962# the declaration of exit, since it's the most demanding environment.
10963cat >conftest.$ac_ext <<_ACEOF
10964#ifndef __cplusplus
10965 choke me
10966#endif
10967_ACEOF
10968rm -f conftest.$ac_objext
10969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10970 (eval $ac_compile) 2>conftest.er1
a848cd7e 10971 ac_status=$?
ac1cb8d3
VS
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
a848cd7e
SC
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
ea7db9ff
DE
10977 { ac_try='test -z "$ac_c_werror_flag"
10978 || test ! -s conftest.err'
ac1cb8d3
VS
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 for ac_declaration in \
ac1cb8d3 10991 '' \
a848cd7e
SC
10992 'extern "C" void std::exit (int) throw (); using std::exit;' \
10993 'extern "C" void std::exit (int); using std::exit;' \
10994 'extern "C" void exit (int) throw ();' \
10995 'extern "C" void exit (int);' \
10996 'void exit (int);'
10997do
10998 cat >conftest.$ac_ext <<_ACEOF
10999/* confdefs.h. */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
11003/* end confdefs.h. */
de59c161 11004$ac_declaration
ac1cb8d3 11005#include <stdlib.h>
a848cd7e
SC
11006int
11007main ()
11008{
11009exit (42);
11010 ;
11011 return 0;
11012}
11013_ACEOF
11014rm -f conftest.$ac_objext
11015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11016 (eval $ac_compile) 2>conftest.er1
a848cd7e 11017 ac_status=$?
ac1cb8d3
VS
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
a848cd7e
SC
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
ea7db9ff
DE
11023 { ac_try='test -z "$ac_c_werror_flag"
11024 || test ! -s conftest.err'
ac1cb8d3
VS
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; } &&
11030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 :
11037else
11038 echo "$as_me: failed program was:" >&5
11039sed 's/^/| /' conftest.$ac_ext >&5
11040
11041continue
11042fi
ac1cb8d3 11043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11044 cat >conftest.$ac_ext <<_ACEOF
11045/* confdefs.h. */
11046_ACEOF
11047cat confdefs.h >>conftest.$ac_ext
11048cat >>conftest.$ac_ext <<_ACEOF
11049/* end confdefs.h. */
11050$ac_declaration
11051int
11052main ()
11053{
11054exit (42);
11055 ;
11056 return 0;
11057}
11058_ACEOF
11059rm -f conftest.$ac_objext
11060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11061 (eval $ac_compile) 2>conftest.er1
a848cd7e 11062 ac_status=$?
ac1cb8d3
VS
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
a848cd7e
SC
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
ea7db9ff
DE
11068 { ac_try='test -z "$ac_c_werror_flag"
11069 || test ! -s conftest.err'
ac1cb8d3
VS
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 break
11082else
11083 echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
11085
11086fi
ac1cb8d3 11087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11088done
11089rm -f conftest*
11090if test -n "$ac_declaration"; then
11091 echo '#ifdef __cplusplus' >>confdefs.h
11092 echo $ac_declaration >>confdefs.h
11093 echo '#endif' >>confdefs.h
11094fi
11095
11096else
11097 echo "$as_me: failed program was:" >&5
11098sed 's/^/| /' conftest.$ac_ext >&5
11099
11100fi
ac1cb8d3 11101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11102ac_ext=c
11103ac_cpp='$CPP $CPPFLAGS'
11104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106ac_compiler_gnu=$ac_cv_c_compiler_gnu
11107
11108
11109
11110ac_ext=c
11111ac_cpp='$CPP $CPPFLAGS'
11112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11114ac_compiler_gnu=$ac_cv_c_compiler_gnu
11115echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11116echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11117# On Suns, sometimes $CPP names a directory.
11118if test -n "$CPP" && test -d "$CPP"; then
11119 CPP=
11120fi
11121if test -z "$CPP"; then
11122 if test "${ac_cv_prog_CPP+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124else
11125 # Double quotes because CPP needs to be expanded
11126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11127 do
11128 ac_preproc_ok=false
11129for ac_c_preproc_warn_flag in '' yes
11130do
11131 # Use a header file that comes with gcc, so configuring glibc
11132 # with a fresh cross-compiler works.
11133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11134 # <limits.h> exists even on freestanding compilers.
11135 # On the NeXT, cc -E runs the code through the compiler's parser,
11136 # not just through cpp. "Syntax error" is here to catch this case.
11137 cat >conftest.$ac_ext <<_ACEOF
11138/* confdefs.h. */
11139_ACEOF
11140cat confdefs.h >>conftest.$ac_ext
11141cat >>conftest.$ac_ext <<_ACEOF
11142/* end confdefs.h. */
11143#ifdef __STDC__
11144# include <limits.h>
11145#else
11146# include <assert.h>
11147#endif
ac1cb8d3 11148 Syntax error
a848cd7e
SC
11149_ACEOF
11150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } >/dev/null; then
11158 if test -s conftest.err; then
11159 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11161 else
11162 ac_cpp_err=
11163 fi
11164else
11165 ac_cpp_err=yes
11166fi
11167if test -z "$ac_cpp_err"; then
11168 :
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 # Broken: fails on valid input.
11174continue
11175fi
11176rm -f conftest.err conftest.$ac_ext
11177
11178 # OK, works on sane cases. Now check whether non-existent headers
11179 # can be detected and how.
11180 cat >conftest.$ac_ext <<_ACEOF
11181/* confdefs.h. */
11182_ACEOF
11183cat confdefs.h >>conftest.$ac_ext
11184cat >>conftest.$ac_ext <<_ACEOF
11185/* end confdefs.h. */
11186#include <ac_nonexistent.h>
11187_ACEOF
11188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } >/dev/null; then
11196 if test -s conftest.err; then
11197 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11199 else
11200 ac_cpp_err=
11201 fi
11202else
11203 ac_cpp_err=yes
11204fi
11205if test -z "$ac_cpp_err"; then
11206 # Broken: success on invalid input.
11207continue
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 # Passes both tests.
11213ac_preproc_ok=:
11214break
11215fi
11216rm -f conftest.err conftest.$ac_ext
11217
11218done
11219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11220rm -f conftest.err conftest.$ac_ext
11221if $ac_preproc_ok; then
11222 break
11223fi
11224
11225 done
11226 ac_cv_prog_CPP=$CPP
11227
11228fi
11229 CPP=$ac_cv_prog_CPP
11230else
11231 ac_cv_prog_CPP=$CPP
11232fi
11233echo "$as_me:$LINENO: result: $CPP" >&5
11234echo "${ECHO_T}$CPP" >&6
11235ac_preproc_ok=false
11236for ac_c_preproc_warn_flag in '' yes
11237do
11238 # Use a header file that comes with gcc, so configuring glibc
11239 # with a fresh cross-compiler works.
11240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11241 # <limits.h> exists even on freestanding compilers.
11242 # On the NeXT, cc -E runs the code through the compiler's parser,
11243 # not just through cpp. "Syntax error" is here to catch this case.
11244 cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250#ifdef __STDC__
11251# include <limits.h>
11252#else
11253# include <assert.h>
11254#endif
ac1cb8d3 11255 Syntax error
a848cd7e
SC
11256_ACEOF
11257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev/null; then
11265 if test -s conftest.err; then
11266 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11268 else
11269 ac_cpp_err=
11270 fi
11271else
11272 ac_cpp_err=yes
11273fi
11274if test -z "$ac_cpp_err"; then
11275 :
11276else
11277 echo "$as_me: failed program was:" >&5
11278sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 # Broken: fails on valid input.
11281continue
11282fi
11283rm -f conftest.err conftest.$ac_ext
11284
11285 # OK, works on sane cases. Now check whether non-existent headers
11286 # can be detected and how.
11287 cat >conftest.$ac_ext <<_ACEOF
11288/* confdefs.h. */
11289_ACEOF
11290cat confdefs.h >>conftest.$ac_ext
11291cat >>conftest.$ac_ext <<_ACEOF
11292/* end confdefs.h. */
11293#include <ac_nonexistent.h>
11294_ACEOF
11295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } >/dev/null; then
11303 if test -s conftest.err; then
11304 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11306 else
11307 ac_cpp_err=
11308 fi
11309else
11310 ac_cpp_err=yes
11311fi
11312if test -z "$ac_cpp_err"; then
11313 # Broken: success on invalid input.
11314continue
11315else
11316 echo "$as_me: failed program was:" >&5
11317sed 's/^/| /' conftest.$ac_ext >&5
11318
11319 # Passes both tests.
11320ac_preproc_ok=:
11321break
11322fi
11323rm -f conftest.err conftest.$ac_ext
11324
11325done
11326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11327rm -f conftest.err conftest.$ac_ext
11328if $ac_preproc_ok; then
11329 :
11330else
11331 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11332See \`config.log' for more details." >&5
11333echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11334See \`config.log' for more details." >&2;}
11335 { (exit 1); exit 1; }; }
11336fi
11337
11338ac_ext=c
11339ac_cpp='$CPP $CPPFLAGS'
11340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11342ac_compiler_gnu=$ac_cv_c_compiler_gnu
11343
11344
11345echo "$as_me:$LINENO: checking for egrep" >&5
11346echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11347if test "${ac_cv_prog_egrep+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349else
11350 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11351 then ac_cv_prog_egrep='grep -E'
11352 else ac_cv_prog_egrep='egrep'
11353 fi
11354fi
11355echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11356echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11357 EGREP=$ac_cv_prog_egrep
11358
11359
11360if test $ac_cv_c_compiler_gnu = yes; then
11361 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11362echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11363if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365else
11366 ac_pattern="Autoconf.*'x'"
11367 cat >conftest.$ac_ext <<_ACEOF
11368/* confdefs.h. */
11369_ACEOF
11370cat confdefs.h >>conftest.$ac_ext
11371cat >>conftest.$ac_ext <<_ACEOF
11372/* end confdefs.h. */
11373#include <sgtty.h>
11374Autoconf TIOCGETP
11375_ACEOF
11376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11377 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11378 ac_cv_prog_gcc_traditional=yes
11379else
11380 ac_cv_prog_gcc_traditional=no
11381fi
11382rm -f conftest*
11383
11384
11385 if test $ac_cv_prog_gcc_traditional = no; then
11386 cat >conftest.$ac_ext <<_ACEOF
11387/* confdefs.h. */
11388_ACEOF
11389cat confdefs.h >>conftest.$ac_ext
11390cat >>conftest.$ac_ext <<_ACEOF
11391/* end confdefs.h. */
11392#include <termio.h>
11393Autoconf TCGETA
11394_ACEOF
11395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11396 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11397 ac_cv_prog_gcc_traditional=yes
11398fi
11399rm -f conftest*
11400
11401 fi
11402fi
11403echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11404echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11405 if test $ac_cv_prog_gcc_traditional = yes; then
11406 CC="$CC -traditional"
11407 fi
11408fi
11409
11410
11411
11412
11413ac_ext=cc
11414ac_cpp='$CXXCPP $CPPFLAGS'
11415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11418
11419
11420CXXFLAGS=${CXXFLAGS:=}
11421ac_ext=cc
11422ac_cpp='$CXXCPP $CPPFLAGS'
11423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11426if test -n "$ac_tool_prefix"; then
11427 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11428 do
11429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11430set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11431echo "$as_me:$LINENO: checking for $ac_word" >&5
11432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11433if test "${ac_cv_prog_CXX+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435else
11436 if test -n "$CXX"; then
11437 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450done
11451done
11452
11453fi
11454fi
11455CXX=$ac_cv_prog_CXX
11456if test -n "$CXX"; then
11457 echo "$as_me:$LINENO: result: $CXX" >&5
11458echo "${ECHO_T}$CXX" >&6
11459else
11460 echo "$as_me:$LINENO: result: no" >&5
11461echo "${ECHO_T}no" >&6
11462fi
11463
11464 test -n "$CXX" && break
11465 done
11466fi
11467if test -z "$CXX"; then
11468 ac_ct_CXX=$CXX
11469 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11470do
11471 # Extract the first word of "$ac_prog", so it can be a program name with args.
11472set dummy $ac_prog; ac_word=$2
11473echo "$as_me:$LINENO: checking for $ac_word" >&5
11474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11475if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477else
11478 if test -n "$ac_ct_CXX"; then
11479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11480else
11481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482for as_dir in $PATH
11483do
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11488 ac_cv_prog_ac_ct_CXX="$ac_prog"
11489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 break 2
11491 fi
11492done
11493done
11494
11495fi
11496fi
11497ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11498if test -n "$ac_ct_CXX"; then
11499 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11500echo "${ECHO_T}$ac_ct_CXX" >&6
11501else
11502 echo "$as_me:$LINENO: result: no" >&5
11503echo "${ECHO_T}no" >&6
11504fi
11505
11506 test -n "$ac_ct_CXX" && break
11507done
11508test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11509
11510 CXX=$ac_ct_CXX
11511fi
11512
11513
11514# Provide some information about the compiler.
11515echo "$as_me:$LINENO:" \
11516 "checking for C++ compiler version" >&5
11517ac_compiler=`set X $ac_compile; echo $2`
11518{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11519 (eval $ac_compiler --version </dev/null >&5) 2>&5
11520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }
11523{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11524 (eval $ac_compiler -v </dev/null >&5) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }
11528{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11529 (eval $ac_compiler -V </dev/null >&5) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }
11533
11534echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11535echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11536if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538else
11539 cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
11545
11546int
11547main ()
11548{
11549#ifndef __GNUC__
11550 choke me
11551#endif
11552
11553 ;
11554 return 0;
11555}
11556_ACEOF
11557rm -f conftest.$ac_objext
11558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11559 (eval $ac_compile) 2>conftest.er1
a848cd7e 11560 ac_status=$?
ac1cb8d3
VS
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
a848cd7e
SC
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
ea7db9ff
DE
11566 { ac_try='test -z "$ac_cxx_werror_flag"
11567 || test ! -s conftest.err'
ac1cb8d3
VS
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 ac_compiler_gnu=yes
11580else
11581 echo "$as_me: failed program was:" >&5
11582sed 's/^/| /' conftest.$ac_ext >&5
11583
11584ac_compiler_gnu=no
11585fi
ac1cb8d3 11586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11587ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11588
11589fi
11590echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11591echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11592GXX=`test $ac_compiler_gnu = yes && echo yes`
11593ac_test_CXXFLAGS=${CXXFLAGS+set}
11594ac_save_CXXFLAGS=$CXXFLAGS
11595CXXFLAGS="-g"
11596echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11597echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11598if test "${ac_cv_prog_cxx_g+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600else
11601 cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
11607
11608int
11609main ()
11610{
11611
11612 ;
11613 return 0;
11614}
11615_ACEOF
11616rm -f conftest.$ac_objext
11617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11618 (eval $ac_compile) 2>conftest.er1
a848cd7e 11619 ac_status=$?
ac1cb8d3
VS
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
a848cd7e
SC
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
ea7db9ff
DE
11625 { ac_try='test -z "$ac_cxx_werror_flag"
11626 || test ! -s conftest.err'
ac1cb8d3
VS
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 ac_cv_prog_cxx_g=yes
11639else
11640 echo "$as_me: failed program was:" >&5
11641sed 's/^/| /' conftest.$ac_ext >&5
11642
11643ac_cv_prog_cxx_g=no
11644fi
ac1cb8d3 11645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11646fi
11647echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11648echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11649if test "$ac_test_CXXFLAGS" = set; then
11650 CXXFLAGS=$ac_save_CXXFLAGS
11651elif test $ac_cv_prog_cxx_g = yes; then
11652 if test "$GXX" = yes; then
11653 CXXFLAGS="-g -O2"
11654 else
11655 CXXFLAGS="-g"
11656 fi
11657else
11658 if test "$GXX" = yes; then
11659 CXXFLAGS="-O2"
11660 else
11661 CXXFLAGS=
11662 fi
11663fi
11664for ac_declaration in \
ac1cb8d3 11665 '' \
a848cd7e
SC
11666 'extern "C" void std::exit (int) throw (); using std::exit;' \
11667 'extern "C" void std::exit (int); using std::exit;' \
11668 'extern "C" void exit (int) throw ();' \
11669 'extern "C" void exit (int);' \
11670 'void exit (int);'
11671do
11672 cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
de59c161 11678$ac_declaration
ac1cb8d3 11679#include <stdlib.h>
a848cd7e
SC
11680int
11681main ()
11682{
11683exit (42);
11684 ;
11685 return 0;
11686}
11687_ACEOF
11688rm -f conftest.$ac_objext
11689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11690 (eval $ac_compile) 2>conftest.er1
a848cd7e 11691 ac_status=$?
ac1cb8d3
VS
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
a848cd7e
SC
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
ea7db9ff
DE
11697 { ac_try='test -z "$ac_cxx_werror_flag"
11698 || test ! -s conftest.err'
ac1cb8d3
VS
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 :
11711else
11712 echo "$as_me: failed program was:" >&5
11713sed 's/^/| /' conftest.$ac_ext >&5
11714
11715continue
11716fi
ac1cb8d3 11717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
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$ac_declaration
11725int
11726main ()
11727{
11728exit (42);
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); } &&
ea7db9ff
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 break
11756else
11757 echo "$as_me: failed program was:" >&5
11758sed 's/^/| /' conftest.$ac_ext >&5
11759
11760fi
ac1cb8d3 11761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11762done
11763rm -f conftest*
11764if test -n "$ac_declaration"; then
11765 echo '#ifdef __cplusplus' >>confdefs.h
11766 echo $ac_declaration >>confdefs.h
11767 echo '#endif' >>confdefs.h
11768fi
11769
11770ac_ext=cc
11771ac_cpp='$CXXCPP $CPPFLAGS'
11772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11775
11776
11777ac_ext=c
11778ac_cpp='$CPP $CPPFLAGS'
11779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11781ac_compiler_gnu=$ac_cv_c_compiler_gnu
11782
11783
a848cd7e
SC
11784if test -n "$ac_tool_prefix"; then
11785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11787echo "$as_me:$LINENO: checking for $ac_word" >&5
11788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11789if test "${ac_cv_prog_RANLIB+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792 if test -n "$RANLIB"; then
11793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11794else
11795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796for as_dir in $PATH
11797do
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 break 2
11805 fi
11806done
11807done
11808
11809fi
11810fi
11811RANLIB=$ac_cv_prog_RANLIB
11812if test -n "$RANLIB"; then
11813 echo "$as_me:$LINENO: result: $RANLIB" >&5
11814echo "${ECHO_T}$RANLIB" >&6
11815else
11816 echo "$as_me:$LINENO: result: no" >&5
11817echo "${ECHO_T}no" >&6
11818fi
11819
11820fi
11821if test -z "$ac_cv_prog_RANLIB"; then
11822 ac_ct_RANLIB=$RANLIB
11823 # Extract the first word of "ranlib", so it can be a program name with args.
11824set dummy ranlib; ac_word=$2
11825echo "$as_me:$LINENO: checking for $ac_word" >&5
11826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11827if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829else
11830 if test -n "$ac_ct_RANLIB"; then
11831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11832else
11833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834for as_dir in $PATH
11835do
11836 IFS=$as_save_IFS
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11840 ac_cv_prog_ac_ct_RANLIB="ranlib"
11841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 break 2
11843 fi
11844done
11845done
11846
11847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11848fi
11849fi
11850ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11851if test -n "$ac_ct_RANLIB"; then
11852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11853echo "${ECHO_T}$ac_ct_RANLIB" >&6
11854else
11855 echo "$as_me:$LINENO: result: no" >&5
11856echo "${ECHO_T}no" >&6
11857fi
11858
11859 RANLIB=$ac_ct_RANLIB
11860else
11861 RANLIB="$ac_cv_prog_RANLIB"
11862fi
11863
11864
11865# Extract the first word of "ar", so it can be a program name with args.
11866set dummy ar; ac_word=$2
11867echo "$as_me:$LINENO: checking for $ac_word" >&5
11868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11869if test "${ac_cv_prog_AR+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871else
11872 if test -n "$AR"; then
11873 ac_cv_prog_AR="$AR" # Let the user override the test.
11874else
11875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876for as_dir in $PATH
11877do
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11882 ac_cv_prog_AR="ar"
11883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 break 2
11885 fi
11886done
11887done
11888
11889fi
11890fi
11891AR=$ac_cv_prog_AR
11892if test -n "$AR"; then
11893 echo "$as_me:$LINENO: result: $AR" >&5
11894echo "${ECHO_T}$AR" >&6
11895else
11896 echo "$as_me:$LINENO: result: no" >&5
11897echo "${ECHO_T}no" >&6
11898fi
11899
11900if test "x$AR" = "x" ; then
77ffb593
JS
11901 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11902echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11903 { (exit 1); exit 1; }; }
11904fi
11905
11906# Find a good install program. We prefer a C program (faster),
11907# so one script is as good as another. But avoid the broken or
11908# incompatible versions:
11909# SysV /etc/install, /usr/sbin/install
11910# SunOS /usr/etc/install
11911# IRIX /sbin/install
11912# AIX /bin/install
11913# AmigaOS /C/install, which installs bootblocks on floppy discs
11914# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11915# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11916# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11917# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11918# ./install, which can be erroneously created by make from ./install.sh.
11919echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11920echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11921if test -z "$INSTALL"; then
11922if test "${ac_cv_path_install+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926for as_dir in $PATH
11927do
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 # Account for people who put trailing slashes in PATH elements.
11931case $as_dir/ in
11932 ./ | .// | /cC/* | \
11933 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 11934 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
11935 /usr/ucb/* ) ;;
11936 *)
11937 # OSF1 and SCO ODT 3.0 have their own names for install.
11938 # Don't use installbsd from OSF since it installs stuff as root
11939 # by default.
11940 for ac_prog in ginstall scoinst install; do
11941 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
11942 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11943 if test $ac_prog = install &&
11944 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11945 # AIX install. It has an incompatible calling convention.
11946 :
11947 elif test $ac_prog = install &&
11948 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11949 # program-specific install script used by HP pwplus--don't use.
11950 :
11951 else
11952 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11953 break 3
11954 fi
11955 fi
a848cd7e
SC
11956 done
11957 done
11958 ;;
11959esac
11960done
11961
11962
11963fi
11964 if test "${ac_cv_path_install+set}" = set; then
11965 INSTALL=$ac_cv_path_install
11966 else
11967 # As a last resort, use the slow shell script. We don't cache a
11968 # path for INSTALL within a source directory, because that will
11969 # break other packages using the cache if that directory is
11970 # removed, or if the path is relative.
11971 INSTALL=$ac_install_sh
11972 fi
11973fi
11974echo "$as_me:$LINENO: result: $INSTALL" >&5
11975echo "${ECHO_T}$INSTALL" >&6
11976
11977# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11978# It thinks the first close brace ends the variable substitution.
11979test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11980
11981test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11982
11983test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11984
11985
11986case ${INSTALL} in
11987 /* ) # Absolute
11988 ;;
11989 ?:* ) # Drive letter, considered as absolute.
11990 ;;
11991 *)
11992 INSTALL=`pwd`/${INSTALL} ;;
11993esac
11994
11995case ${host} in
11996 *-hp-hpux* )
11997 INSTALL_DIR="mkdir"
11998 ;;
11999
12000 *) INSTALL_DIR="$INSTALL -d"
12001 ;;
12002esac
12003
12004
12005case "${host}" in
12006
12007 powerpc-*-darwin* )
12008 INSTALL_PROGRAM="cp -fp"
12009 INSTALL_DATA="cp -fp"
12010 ;;
12011 *)
12012 ;;
12013esac
12014
12015# Extract the first word of "strip", so it can be a program name with args.
12016set dummy strip; ac_word=$2
12017echo "$as_me:$LINENO: checking for $ac_word" >&5
12018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12019if test "${ac_cv_prog_STRIP+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021else
12022 if test -n "$STRIP"; then
12023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12024else
12025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026for as_dir in $PATH
12027do
12028 IFS=$as_save_IFS
12029 test -z "$as_dir" && as_dir=.
12030 for ac_exec_ext in '' $ac_executable_extensions; do
12031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032 ac_cv_prog_STRIP="strip"
12033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12034 break 2
12035 fi
12036done
12037done
12038
12039 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12040fi
12041fi
12042STRIP=$ac_cv_prog_STRIP
12043if test -n "$STRIP"; then
12044 echo "$as_me:$LINENO: result: $STRIP" >&5
12045echo "${ECHO_T}$STRIP" >&6
12046else
12047 echo "$as_me:$LINENO: result: no" >&5
12048echo "${ECHO_T}no" >&6
12049fi
12050
12051
12052echo "$as_me:$LINENO: checking if make is GNU make" >&5
12053echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12054if test "${wx_cv_prog_makeisgnu+set}" = set; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12056else
12057
12058 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12059 egrep -s GNU > /dev/null); then
12060 wx_cv_prog_makeisgnu="yes"
12061 else
12062 wx_cv_prog_makeisgnu="no"
12063 fi
12064
12065fi
12066echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12067echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12068
12069if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12070 IF_GNU_MAKE=""
12071else
12072 IF_GNU_MAKE="#"
12073fi
12074
12075
12076
12077if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12078echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12079echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12080if test "${wx_cv_prog_makevpath+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082else
12083
12084cat - << EOF > confMake
12085check : file
12086 cp \$? \$@
12087 cp \$? final_file
12088EOF
12089
12090if test ! -d sub ; then
12091 mkdir sub
12092fi
12093echo dummy > sub/file
12094${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12095RESULT=$?
12096rm -f sub/file check final_file confMake
12097rmdir sub
12098if test "$RESULT" = 0; then
12099 wx_cv_prog_makevpath="yes"
12100else
12101 wx_cv_prog_makevpath="no"
12102fi
12103
12104fi
12105echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12106echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12107
12108if test "x$wx_cv_prog_makevpath" != "xyes"; then
12109{ { echo "$as_me:$LINENO: error:
12110You need a make-utility that is able to use the variable
12111VPATH correctly.
12112If your version of make does not support VPATH correctly,
12113please install GNU-make (possibly as gmake), and start
12114configure with the following command:
12115export MAKE=gmake; ./configure for sh-type shells
12116setenv MAKE gmake; ./configure for csh-type shells
12117Also please do remember to use gmake in this case every time
12118you are trying to compile.
12119" >&5
12120echo "$as_me: error:
12121You need a make-utility that is able to use the variable
12122VPATH correctly.
12123If your version of make does not support VPATH correctly,
12124please install GNU-make (possibly as gmake), and start
12125configure with the following command:
12126export MAKE=gmake; ./configure for sh-type shells
12127setenv MAKE gmake; ./configure for csh-type shells
12128Also please do remember to use gmake in this case every time
12129you are trying to compile.
12130" >&2;}
12131 { (exit 1); exit 1; }; }
12132fi fi
12133echo "$as_me:$LINENO: checking whether ln -s works" >&5
12134echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12135LN_S=$as_ln_s
12136if test "$LN_S" = "ln -s"; then
12137 echo "$as_me:$LINENO: result: yes" >&5
12138echo "${ECHO_T}yes" >&6
12139else
12140 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12141echo "${ECHO_T}no, using $LN_S" >&6
12142fi
12143
12144
12145
12146case "${host}" in
12147 *-pc-os2_emx | *-pc-os2-emx )
12148 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12149 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12150echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12151if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153else
12154 ac_check_lib_save_LIBS=$LIBS
12155LIBS="-lcExt $LIBS"
12156cat >conftest.$ac_ext <<_ACEOF
12157/* confdefs.h. */
12158_ACEOF
12159cat confdefs.h >>conftest.$ac_ext
12160cat >>conftest.$ac_ext <<_ACEOF
12161/* end confdefs.h. */
12162
12163/* Override any gcc2 internal prototype to avoid an error. */
12164#ifdef __cplusplus
12165extern "C"
12166#endif
12167/* We use char because int might match the return type of a gcc2
12168 builtin and then its argument prototype would still apply. */
12169char drand48 ();
12170int
12171main ()
12172{
12173drand48 ();
12174 ;
12175 return 0;
12176}
12177_ACEOF
12178rm -f conftest.$ac_objext conftest$ac_exeext
12179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12180 (eval $ac_link) 2>conftest.er1
a848cd7e 12181 ac_status=$?
ac1cb8d3
VS
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
a848cd7e
SC
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
ea7db9ff
DE
12187 { ac_try='test -z "$ac_c_werror_flag"
12188 || test ! -s conftest.err'
ac1cb8d3
VS
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_cv_lib_cExt_drand48=yes
12201else
12202 echo "$as_me: failed program was:" >&5
12203sed 's/^/| /' conftest.$ac_ext >&5
12204
12205ac_cv_lib_cExt_drand48=no
12206fi
ac1cb8d3
VS
12207rm -f conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12209LIBS=$ac_check_lib_save_LIBS
12210fi
12211echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12212echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12213if test $ac_cv_lib_cExt_drand48 = yes; then
12214 LIBS="$LIBS -lcExt"
12215fi
12216
12217 else
12218 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12219 fi
12220 echo "$as_me:$LINENO: checking for gcc version" >&5
12221echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12222if test "${wx_cv_gccversion+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224else
12225
12226 cat >conftest.$ac_ext <<_ACEOF
12227/* confdefs.h. */
12228_ACEOF
12229cat confdefs.h >>conftest.$ac_ext
12230cat >>conftest.$ac_ext <<_ACEOF
12231/* end confdefs.h. */
12232
12233int
12234main ()
12235{
12236
12237 #if (__GNUC__ < 3)
12238 #error old gcc
12239 #endif
12240
12241 ;
12242 return 0;
12243}
12244_ACEOF
12245rm -f conftest.$ac_objext
12246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12247 (eval $ac_compile) 2>conftest.er1
a848cd7e 12248 ac_status=$?
ac1cb8d3
VS
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
a848cd7e
SC
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
ea7db9ff
DE
12254 { ac_try='test -z "$ac_c_werror_flag"
12255 || test ! -s conftest.err'
ac1cb8d3
VS
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; } &&
12261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267
12268 cat >conftest.$ac_ext <<_ACEOF
12269/* confdefs.h. */
12270_ACEOF
12271cat confdefs.h >>conftest.$ac_ext
12272cat >>conftest.$ac_ext <<_ACEOF
12273/* end confdefs.h. */
12274
12275int
12276main ()
12277{
12278
12279 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12280 #error intermediate gcc
12281 #endif
12282
12283 ;
12284 return 0;
12285}
12286_ACEOF
12287rm -f conftest.$ac_objext
12288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12289 (eval $ac_compile) 2>conftest.er1
a848cd7e 12290 ac_status=$?
ac1cb8d3
VS
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
a848cd7e
SC
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
ea7db9ff
DE
12296 { ac_try='test -z "$ac_c_werror_flag"
12297 || test ! -s conftest.err'
ac1cb8d3
VS
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309
12310 wx_cv_gccversion=Innotek
12311
12312else
12313 echo "$as_me: failed program was:" >&5
12314sed 's/^/| /' conftest.$ac_ext >&5
12315
12316
12317 wx_cv_gccversion=3
12318
12319
12320fi
ac1cb8d3 12321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12322
12323else
12324 echo "$as_me: failed program was:" >&5
12325sed 's/^/| /' conftest.$ac_ext >&5
12326
12327
12328 wx_cv_gccversion=2
12329
12330
12331fi
ac1cb8d3 12332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12333
12334fi
12335echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12336echo "${ECHO_T}$wx_cv_gccversion" >&6
12337 if test "$wx_cv_gccversion" = "2"; then
12338 LIBS="$LIBS -lstdcpp"
12339 LDFLAGS="$LDFLAGS -Zsysv-signals"
12340 else
12341 if test "$wx_cv_gccversion" = "3"; then
12342 LIBS="$LIBS -lstdcxx"
12343 LDFLAGS="$LDFLAGS -Zsysv-signals"
12344 else
12345 LIBS="$LIBS -lstdc++"
12346 fi
12347 fi
12348 if test "$wxUSE_OMF" = "yes"; then
de59c161 12349 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12350 fi
12351 ;;
12352 *)
12353
12354
12355
12356 ac_ext=cc
12357ac_cpp='$CXXCPP $CPPFLAGS'
12358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12361
12362
12363
12364echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12365echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12366if test "${ac_cv_string_strcasecmp+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368else
12369
12370 cat >conftest.$ac_ext <<_ACEOF
12371/* confdefs.h. */
12372_ACEOF
12373cat confdefs.h >>conftest.$ac_ext
12374cat >>conftest.$ac_ext <<_ACEOF
12375/* end confdefs.h. */
12376
12377 #include <string.h>
12378
12379int
12380main ()
12381{
12382
12383 strcasecmp("foo", "bar");
12384
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389rm -f conftest.$ac_objext conftest$ac_exeext
12390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12391 (eval $ac_link) 2>conftest.er1
a848cd7e 12392 ac_status=$?
ac1cb8d3
VS
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
a848cd7e
SC
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
ea7db9ff
DE
12398 { ac_try='test -z "$ac_cxx_werror_flag"
12399 || test ! -s conftest.err'
ac1cb8d3
VS
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
12411 ac_cv_string_strcasecmp=yes
12412else
12413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416ac_cv_string_strcasecmp=no
12417
12418fi
ac1cb8d3
VS
12419rm -f conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12421
12422fi
12423echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12424echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12425
12426 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12427 cat >>confdefs.h <<\_ACEOF
12428#define HAVE_STRCASECMP_IN_STRING_H 1
12429_ACEOF
12430
12431 else
12432 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12433echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12434if test "${ac_cv_strings_strcasecmp+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12436else
12437
12438 cat >conftest.$ac_ext <<_ACEOF
12439/* confdefs.h. */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
12443/* end confdefs.h. */
12444
12445 #include <strings.h>
12446
12447int
12448main ()
12449{
12450
12451 strcasecmp("foo", "bar");
12452
12453 ;
12454 return 0;
12455}
12456_ACEOF
12457rm -f conftest.$ac_objext conftest$ac_exeext
12458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12459 (eval $ac_link) 2>conftest.er1
a848cd7e 12460 ac_status=$?
ac1cb8d3
VS
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
a848cd7e
SC
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
ea7db9ff
DE
12466 { ac_try='test -z "$ac_cxx_werror_flag"
12467 || test ! -s conftest.err'
ac1cb8d3
VS
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_cv_strings_strcasecmp=yes
12480else
12481 echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
12484ac_cv_strings_strcasecmp=no
12485
12486fi
ac1cb8d3
VS
12487rm -f conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12489
12490fi
12491echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12492echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12493
12494 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12495 cat >>confdefs.h <<\_ACEOF
12496#define HAVE_STRCASECMP_IN_STRINGS_H 1
12497_ACEOF
12498
12499 else
12500 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12501echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12502 { (exit 1); exit 1; }; }
12503 fi
12504 fi
12505
12506 ac_ext=c
12507ac_cpp='$CPP $CPPFLAGS'
12508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510ac_compiler_gnu=$ac_cv_c_compiler_gnu
12511
12512 ;;
12513esac
12514
12515
12516echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12517echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12518if test "${ac_cv_header_stdc+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520else
12521 cat >conftest.$ac_ext <<_ACEOF
12522/* confdefs.h. */
12523_ACEOF
12524cat confdefs.h >>conftest.$ac_ext
12525cat >>conftest.$ac_ext <<_ACEOF
12526/* end confdefs.h. */
12527#include <stdlib.h>
12528#include <stdarg.h>
12529#include <string.h>
12530#include <float.h>
12531
12532int
12533main ()
12534{
12535
12536 ;
12537 return 0;
12538}
12539_ACEOF
12540rm -f conftest.$ac_objext
12541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12542 (eval $ac_compile) 2>conftest.er1
a848cd7e 12543 ac_status=$?
ac1cb8d3
VS
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
a848cd7e
SC
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
ea7db9ff
DE
12549 { ac_try='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
ac1cb8d3
VS
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_cv_header_stdc=yes
12563else
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567ac_cv_header_stdc=no
12568fi
ac1cb8d3 12569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12570
12571if test $ac_cv_header_stdc = yes; then
12572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12573 cat >conftest.$ac_ext <<_ACEOF
12574/* confdefs.h. */
12575_ACEOF
12576cat confdefs.h >>conftest.$ac_ext
12577cat >>conftest.$ac_ext <<_ACEOF
12578/* end confdefs.h. */
12579#include <string.h>
12580
12581_ACEOF
12582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12583 $EGREP "memchr" >/dev/null 2>&1; then
12584 :
12585else
12586 ac_cv_header_stdc=no
12587fi
12588rm -f conftest*
12589
12590fi
12591
12592if test $ac_cv_header_stdc = yes; then
12593 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12594 cat >conftest.$ac_ext <<_ACEOF
12595/* confdefs.h. */
12596_ACEOF
12597cat confdefs.h >>conftest.$ac_ext
12598cat >>conftest.$ac_ext <<_ACEOF
12599/* end confdefs.h. */
12600#include <stdlib.h>
12601
12602_ACEOF
12603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12604 $EGREP "free" >/dev/null 2>&1; then
12605 :
12606else
12607 ac_cv_header_stdc=no
12608fi
12609rm -f conftest*
12610
12611fi
12612
12613if test $ac_cv_header_stdc = yes; then
12614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12615 if test "$cross_compiling" = yes; then
12616 :
12617else
12618 cat >conftest.$ac_ext <<_ACEOF
12619/* confdefs.h. */
12620_ACEOF
12621cat confdefs.h >>conftest.$ac_ext
12622cat >>conftest.$ac_ext <<_ACEOF
12623/* end confdefs.h. */
12624#include <ctype.h>
12625#if ((' ' & 0x0FF) == 0x020)
12626# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12627# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12628#else
12629# define ISLOWER(c) \
ac1cb8d3
VS
12630 (('a' <= (c) && (c) <= 'i') \
12631 || ('j' <= (c) && (c) <= 'r') \
12632 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12633# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12634#endif
12635
12636#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12637int
12638main ()
12639{
12640 int i;
12641 for (i = 0; i < 256; i++)
12642 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12643 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12644 exit(2);
12645 exit (0);
12646}
12647_ACEOF
12648rm -f conftest$ac_exeext
12649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650 (eval $ac_link) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 :
12660else
12661 echo "$as_me: program exited with status $ac_status" >&5
12662echo "$as_me: failed program was:" >&5
12663sed 's/^/| /' conftest.$ac_ext >&5
12664
12665( exit $ac_status )
12666ac_cv_header_stdc=no
12667fi
ac1cb8d3 12668rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12669fi
12670fi
12671fi
12672echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12673echo "${ECHO_T}$ac_cv_header_stdc" >&6
12674if test $ac_cv_header_stdc = yes; then
12675
12676cat >>confdefs.h <<\_ACEOF
12677#define STDC_HEADERS 1
12678_ACEOF
12679
12680fi
12681
12682# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12693 inttypes.h stdint.h unistd.h
a848cd7e
SC
12694do
12695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12696echo "$as_me:$LINENO: checking for $ac_header" >&5
12697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12698if eval "test \"\${$as_ac_Header+set}\" = set"; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12700else
12701 cat >conftest.$ac_ext <<_ACEOF
12702/* confdefs.h. */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h. */
12707$ac_includes_default
12708
12709#include <$ac_header>
12710_ACEOF
12711rm -f conftest.$ac_objext
12712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12713 (eval $ac_compile) 2>conftest.er1
a848cd7e 12714 ac_status=$?
ac1cb8d3
VS
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
a848cd7e
SC
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
ea7db9ff
DE
12720 { ac_try='test -z "$ac_c_werror_flag"
12721 || test ! -s conftest.err'
ac1cb8d3
VS
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 eval "$as_ac_Header=yes"
12734else
12735 echo "$as_me: failed program was:" >&5
12736sed 's/^/| /' conftest.$ac_ext >&5
12737
12738eval "$as_ac_Header=no"
12739fi
ac1cb8d3 12740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12741fi
12742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12744if test `eval echo '${'$as_ac_Header'}'` = yes; then
12745 cat >>confdefs.h <<_ACEOF
12746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12747_ACEOF
12748
12749fi
12750
12751done
12752
12753
12754
12755for ac_header in stdlib.h
12756do
12757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12758if eval "test \"\${$as_ac_Header+set}\" = set"; then
12759 echo "$as_me:$LINENO: checking for $ac_header" >&5
12760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12761if eval "test \"\${$as_ac_Header+set}\" = set"; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763fi
12764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12766else
12767 # Is the header compilable?
12768echo "$as_me:$LINENO: checking $ac_header usability" >&5
12769echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12770cat >conftest.$ac_ext <<_ACEOF
12771/* confdefs.h. */
12772_ACEOF
12773cat confdefs.h >>conftest.$ac_ext
12774cat >>conftest.$ac_ext <<_ACEOF
12775/* end confdefs.h. */
12776$ac_includes_default
12777#include <$ac_header>
12778_ACEOF
12779rm -f conftest.$ac_objext
12780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12781 (eval $ac_compile) 2>conftest.er1
a848cd7e 12782 ac_status=$?
ac1cb8d3
VS
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
a848cd7e
SC
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
ea7db9ff
DE
12788 { ac_try='test -z "$ac_c_werror_flag"
12789 || test ! -s conftest.err'
ac1cb8d3
VS
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_header_compiler=yes
12802else
12803 echo "$as_me: failed program was:" >&5
12804sed 's/^/| /' conftest.$ac_ext >&5
12805
12806ac_header_compiler=no
12807fi
ac1cb8d3 12808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12809echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12810echo "${ECHO_T}$ac_header_compiler" >&6
12811
12812# Is the header present?
12813echo "$as_me:$LINENO: checking $ac_header presence" >&5
12814echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12815cat >conftest.$ac_ext <<_ACEOF
12816/* confdefs.h. */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */
12821#include <$ac_header>
12822_ACEOF
12823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } >/dev/null; then
12831 if test -s conftest.err; then
12832 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12834 else
12835 ac_cpp_err=
12836 fi
12837else
12838 ac_cpp_err=yes
12839fi
12840if test -z "$ac_cpp_err"; then
12841 ac_header_preproc=yes
12842else
12843 echo "$as_me: failed program was:" >&5
12844sed 's/^/| /' conftest.$ac_ext >&5
12845
12846 ac_header_preproc=no
12847fi
12848rm -f conftest.err conftest.$ac_ext
12849echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12850echo "${ECHO_T}$ac_header_preproc" >&6
12851
12852# So? What about this header?
ac1cb8d3
VS
12853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12854 yes:no: )
a848cd7e
SC
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12858echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12859 ac_header_preproc=yes
a848cd7e 12860 ;;
ac1cb8d3 12861 no:yes:* )
a848cd7e
SC
12862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12867echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12869echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12873echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12874 (
12875 cat <<\_ASBOX
ac1cb8d3
VS
12876## ----------------------------------------- ##
12877## Report this to wx-dev@lists.wxwidgets.org ##
12878## ----------------------------------------- ##
a848cd7e
SC
12879_ASBOX
12880 ) |
12881 sed "s/^/$as_me: WARNING: /" >&2
12882 ;;
12883esac
12884echo "$as_me:$LINENO: checking for $ac_header" >&5
12885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12886if eval "test \"\${$as_ac_Header+set}\" = set"; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12888else
ac1cb8d3 12889 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12890fi
12891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12893
12894fi
12895if test `eval echo '${'$as_ac_Header'}'` = yes; then
12896 cat >>confdefs.h <<_ACEOF
12897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12898_ACEOF
12899
12900fi
12901
12902done
12903
12904
12905for ac_header in malloc.h
12906do
12907as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12908if eval "test \"\${$as_ac_Header+set}\" = set"; then
12909 echo "$as_me:$LINENO: checking for $ac_header" >&5
12910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12911if eval "test \"\${$as_ac_Header+set}\" = set"; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913fi
12914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12916else
12917 # Is the header compilable?
12918echo "$as_me:$LINENO: checking $ac_header usability" >&5
12919echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12920cat >conftest.$ac_ext <<_ACEOF
12921/* confdefs.h. */
12922_ACEOF
12923cat confdefs.h >>conftest.$ac_ext
12924cat >>conftest.$ac_ext <<_ACEOF
12925/* end confdefs.h. */
12926$ac_includes_default
12927#include <$ac_header>
12928_ACEOF
12929rm -f conftest.$ac_objext
12930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12931 (eval $ac_compile) 2>conftest.er1
a848cd7e 12932 ac_status=$?
ac1cb8d3
VS
12933 grep -v '^ *+' conftest.er1 >conftest.err
12934 rm -f conftest.er1
12935 cat conftest.err >&5
a848cd7e
SC
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } &&
ea7db9ff
DE
12938 { ac_try='test -z "$ac_c_werror_flag"
12939 || test ! -s conftest.err'
ac1cb8d3
VS
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; } &&
12945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 ac_header_compiler=yes
12952else
12953 echo "$as_me: failed program was:" >&5
12954sed 's/^/| /' conftest.$ac_ext >&5
12955
12956ac_header_compiler=no
12957fi
ac1cb8d3 12958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12959echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12960echo "${ECHO_T}$ac_header_compiler" >&6
12961
12962# Is the header present?
12963echo "$as_me:$LINENO: checking $ac_header presence" >&5
12964echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12965cat >conftest.$ac_ext <<_ACEOF
12966/* confdefs.h. */
12967_ACEOF
12968cat confdefs.h >>conftest.$ac_ext
12969cat >>conftest.$ac_ext <<_ACEOF
12970/* end confdefs.h. */
12971#include <$ac_header>
12972_ACEOF
12973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12975 ac_status=$?
12976 grep -v '^ *+' conftest.er1 >conftest.err
12977 rm -f conftest.er1
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } >/dev/null; then
12981 if test -s conftest.err; then
12982 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12984 else
12985 ac_cpp_err=
12986 fi
12987else
12988 ac_cpp_err=yes
12989fi
12990if test -z "$ac_cpp_err"; then
12991 ac_header_preproc=yes
12992else
12993 echo "$as_me: failed program was:" >&5
12994sed 's/^/| /' conftest.$ac_ext >&5
12995
12996 ac_header_preproc=no
12997fi
12998rm -f conftest.err conftest.$ac_ext
12999echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13000echo "${ECHO_T}$ac_header_preproc" >&6
13001
13002# So? What about this header?
ac1cb8d3
VS
13003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13004 yes:no: )
a848cd7e
SC
13005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13006echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13008echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13009 ac_header_preproc=yes
a848cd7e 13010 ;;
ac1cb8d3 13011 no:yes:* )
a848cd7e
SC
13012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13013echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13015echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13017echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13019echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13021echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13023echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13024 (
13025 cat <<\_ASBOX
ac1cb8d3
VS
13026## ----------------------------------------- ##
13027## Report this to wx-dev@lists.wxwidgets.org ##
13028## ----------------------------------------- ##
a848cd7e
SC
13029_ASBOX
13030 ) |
13031 sed "s/^/$as_me: WARNING: /" >&2
13032 ;;
13033esac
13034echo "$as_me:$LINENO: checking for $ac_header" >&5
13035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13036if eval "test \"\${$as_ac_Header+set}\" = set"; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13038else
ac1cb8d3 13039 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13040fi
13041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13043
13044fi
13045if test `eval echo '${'$as_ac_Header'}'` = yes; then
13046 cat >>confdefs.h <<_ACEOF
13047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13048_ACEOF
13049
13050fi
13051
13052done
13053
13054
13055for ac_header in unistd.h
13056do
13057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13058if eval "test \"\${$as_ac_Header+set}\" = set"; then
13059 echo "$as_me:$LINENO: checking for $ac_header" >&5
13060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13061if eval "test \"\${$as_ac_Header+set}\" = set"; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13063fi
13064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13065echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13066else
13067 # Is the header compilable?
13068echo "$as_me:$LINENO: checking $ac_header usability" >&5
13069echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13070cat >conftest.$ac_ext <<_ACEOF
13071/* confdefs.h. */
13072_ACEOF
13073cat confdefs.h >>conftest.$ac_ext
13074cat >>conftest.$ac_ext <<_ACEOF
13075/* end confdefs.h. */
13076$ac_includes_default
13077#include <$ac_header>
13078_ACEOF
13079rm -f conftest.$ac_objext
13080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13081 (eval $ac_compile) 2>conftest.er1
a848cd7e 13082 ac_status=$?
ac1cb8d3
VS
13083 grep -v '^ *+' conftest.er1 >conftest.err
13084 rm -f conftest.er1
13085 cat conftest.err >&5
a848cd7e
SC
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } &&
ea7db9ff
DE
13088 { ac_try='test -z "$ac_c_werror_flag"
13089 || test ! -s conftest.err'
ac1cb8d3
VS
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; } &&
13095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_header_compiler=yes
13102else
13103 echo "$as_me: failed program was:" >&5
13104sed 's/^/| /' conftest.$ac_ext >&5
13105
13106ac_header_compiler=no
13107fi
ac1cb8d3 13108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13109echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110echo "${ECHO_T}$ac_header_compiler" >&6
13111
13112# Is the header present?
13113echo "$as_me:$LINENO: checking $ac_header presence" >&5
13114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13115cat >conftest.$ac_ext <<_ACEOF
13116/* confdefs.h. */
13117_ACEOF
13118cat confdefs.h >>conftest.$ac_ext
13119cat >>conftest.$ac_ext <<_ACEOF
13120/* end confdefs.h. */
13121#include <$ac_header>
13122_ACEOF
13123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } >/dev/null; then
13131 if test -s conftest.err; then
13132 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13134 else
13135 ac_cpp_err=
13136 fi
13137else
13138 ac_cpp_err=yes
13139fi
13140if test -z "$ac_cpp_err"; then
13141 ac_header_preproc=yes
13142else
13143 echo "$as_me: failed program was:" >&5
13144sed 's/^/| /' conftest.$ac_ext >&5
13145
13146 ac_header_preproc=no
13147fi
13148rm -f conftest.err conftest.$ac_ext
13149echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13150echo "${ECHO_T}$ac_header_preproc" >&6
13151
13152# So? What about this header?
ac1cb8d3
VS
13153case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13154 yes:no: )
a848cd7e
SC
13155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13156echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13158echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13159 ac_header_preproc=yes
a848cd7e 13160 ;;
ac1cb8d3 13161 no:yes:* )
a848cd7e
SC
13162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13163echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13165echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13167echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13169echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13171echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13173echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13174 (
13175 cat <<\_ASBOX
ac1cb8d3
VS
13176## ----------------------------------------- ##
13177## Report this to wx-dev@lists.wxwidgets.org ##
13178## ----------------------------------------- ##
a848cd7e
SC
13179_ASBOX
13180 ) |
13181 sed "s/^/$as_me: WARNING: /" >&2
13182 ;;
13183esac
13184echo "$as_me:$LINENO: checking for $ac_header" >&5
13185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13186if eval "test \"\${$as_ac_Header+set}\" = set"; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188else
ac1cb8d3 13189 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13190fi
13191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13193
13194fi
13195if test `eval echo '${'$as_ac_Header'}'` = yes; then
13196 cat >>confdefs.h <<_ACEOF
13197#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13198_ACEOF
13199
13200fi
13201
13202done
13203
13204
13205for ac_header in wchar.h
13206do
13207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13208if eval "test \"\${$as_ac_Header+set}\" = set"; then
13209 echo "$as_me:$LINENO: checking for $ac_header" >&5
13210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13211if eval "test \"\${$as_ac_Header+set}\" = set"; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13213fi
13214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13216else
13217 # Is the header compilable?
13218echo "$as_me:$LINENO: checking $ac_header usability" >&5
13219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13220cat >conftest.$ac_ext <<_ACEOF
13221/* confdefs.h. */
13222_ACEOF
13223cat confdefs.h >>conftest.$ac_ext
13224cat >>conftest.$ac_ext <<_ACEOF
13225/* end confdefs.h. */
13226$ac_includes_default
13227#include <$ac_header>
13228_ACEOF
13229rm -f conftest.$ac_objext
13230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13231 (eval $ac_compile) 2>conftest.er1
a848cd7e 13232 ac_status=$?
ac1cb8d3
VS
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
a848cd7e
SC
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
ea7db9ff
DE
13238 { ac_try='test -z "$ac_c_werror_flag"
13239 || test ! -s conftest.err'
ac1cb8d3
VS
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; } &&
13245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 ac_header_compiler=yes
13252else
13253 echo "$as_me: failed program was:" >&5
13254sed 's/^/| /' conftest.$ac_ext >&5
13255
13256ac_header_compiler=no
13257fi
ac1cb8d3 13258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13260echo "${ECHO_T}$ac_header_compiler" >&6
13261
13262# Is the header present?
13263echo "$as_me:$LINENO: checking $ac_header presence" >&5
13264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13265cat >conftest.$ac_ext <<_ACEOF
13266/* confdefs.h. */
13267_ACEOF
13268cat confdefs.h >>conftest.$ac_ext
13269cat >>conftest.$ac_ext <<_ACEOF
13270/* end confdefs.h. */
13271#include <$ac_header>
13272_ACEOF
13273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13275 ac_status=$?
13276 grep -v '^ *+' conftest.er1 >conftest.err
13277 rm -f conftest.er1
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } >/dev/null; then
13281 if test -s conftest.err; then
13282 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13284 else
13285 ac_cpp_err=
13286 fi
13287else
13288 ac_cpp_err=yes
13289fi
13290if test -z "$ac_cpp_err"; then
13291 ac_header_preproc=yes
13292else
13293 echo "$as_me: failed program was:" >&5
13294sed 's/^/| /' conftest.$ac_ext >&5
13295
13296 ac_header_preproc=no
13297fi
13298rm -f conftest.err conftest.$ac_ext
13299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13300echo "${ECHO_T}$ac_header_preproc" >&6
13301
13302# So? What about this header?
ac1cb8d3
VS
13303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13304 yes:no: )
a848cd7e
SC
13305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13306echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13308echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13309 ac_header_preproc=yes
a848cd7e 13310 ;;
ac1cb8d3 13311 no:yes:* )
a848cd7e
SC
13312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13313echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13315echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13317echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13319echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13323echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13324 (
13325 cat <<\_ASBOX
ac1cb8d3
VS
13326## ----------------------------------------- ##
13327## Report this to wx-dev@lists.wxwidgets.org ##
13328## ----------------------------------------- ##
a848cd7e
SC
13329_ASBOX
13330 ) |
13331 sed "s/^/$as_me: WARNING: /" >&2
13332 ;;
13333esac
13334echo "$as_me:$LINENO: checking for $ac_header" >&5
13335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13336if eval "test \"\${$as_ac_Header+set}\" = set"; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338else
ac1cb8d3 13339 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13340fi
13341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13343
13344fi
13345if test `eval echo '${'$as_ac_Header'}'` = yes; then
13346 cat >>confdefs.h <<_ACEOF
13347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13348_ACEOF
13349
13350fi
13351
13352done
13353
13354
13355if test "$ac_cv_header_wchar_h" != "yes"; then
13356
13357for ac_header in wcstr.h
13358do
13359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13360if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361 echo "$as_me:$LINENO: checking for $ac_header" >&5
13362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13363if eval "test \"\${$as_ac_Header+set}\" = set"; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365fi
13366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13368else
13369 # Is the header compilable?
13370echo "$as_me:$LINENO: checking $ac_header usability" >&5
13371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13372cat >conftest.$ac_ext <<_ACEOF
13373/* confdefs.h. */
13374_ACEOF
13375cat confdefs.h >>conftest.$ac_ext
13376cat >>conftest.$ac_ext <<_ACEOF
13377/* end confdefs.h. */
13378$ac_includes_default
13379#include <$ac_header>
13380_ACEOF
13381rm -f conftest.$ac_objext
13382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13383 (eval $ac_compile) 2>conftest.er1
a848cd7e 13384 ac_status=$?
ac1cb8d3
VS
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
a848cd7e
SC
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
ea7db9ff
DE
13390 { ac_try='test -z "$ac_c_werror_flag"
13391 || test ! -s conftest.err'
ac1cb8d3
VS
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_header_compiler=yes
13404else
13405 echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
13408ac_header_compiler=no
13409fi
ac1cb8d3 13410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13412echo "${ECHO_T}$ac_header_compiler" >&6
13413
13414# Is the header present?
13415echo "$as_me:$LINENO: checking $ac_header presence" >&5
13416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13417cat >conftest.$ac_ext <<_ACEOF
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423#include <$ac_header>
13424_ACEOF
13425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13427 ac_status=$?
13428 grep -v '^ *+' conftest.er1 >conftest.err
13429 rm -f conftest.er1
13430 cat conftest.err >&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } >/dev/null; then
13433 if test -s conftest.err; then
13434 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13436 else
13437 ac_cpp_err=
13438 fi
13439else
13440 ac_cpp_err=yes
13441fi
13442if test -z "$ac_cpp_err"; then
13443 ac_header_preproc=yes
13444else
13445 echo "$as_me: failed program was:" >&5
13446sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 ac_header_preproc=no
13449fi
13450rm -f conftest.err conftest.$ac_ext
13451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13452echo "${ECHO_T}$ac_header_preproc" >&6
13453
13454# So? What about this header?
ac1cb8d3
VS
13455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13456 yes:no: )
a848cd7e
SC
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13461 ac_header_preproc=yes
a848cd7e 13462 ;;
ac1cb8d3 13463 no:yes:* )
a848cd7e
SC
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13471echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13476 (
13477 cat <<\_ASBOX
ac1cb8d3
VS
13478## ----------------------------------------- ##
13479## Report this to wx-dev@lists.wxwidgets.org ##
13480## ----------------------------------------- ##
a848cd7e
SC
13481_ASBOX
13482 ) |
13483 sed "s/^/$as_me: WARNING: /" >&2
13484 ;;
13485esac
13486echo "$as_me:$LINENO: checking for $ac_header" >&5
13487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13488if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490else
ac1cb8d3 13491 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13492fi
13493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13495
13496fi
13497if test `eval echo '${'$as_ac_Header'}'` = yes; then
13498 cat >>confdefs.h <<_ACEOF
13499#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13500_ACEOF
13501
13502fi
13503
13504done
13505
13506fi
13507
13508
13509for ac_header in fnmatch.h
13510do
13511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13512if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513 echo "$as_me:$LINENO: checking for $ac_header" >&5
13514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13515if eval "test \"\${$as_ac_Header+set}\" = set"; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517fi
13518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520else
13521 # Is the header compilable?
13522echo "$as_me:$LINENO: checking $ac_header usability" >&5
13523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13524cat >conftest.$ac_ext <<_ACEOF
13525/* confdefs.h. */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
13529/* end confdefs.h. */
13530$ac_includes_default
13531#include <$ac_header>
13532_ACEOF
13533rm -f conftest.$ac_objext
13534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13535 (eval $ac_compile) 2>conftest.er1
a848cd7e 13536 ac_status=$?
ac1cb8d3
VS
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
a848cd7e
SC
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
ea7db9ff
DE
13542 { ac_try='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
ac1cb8d3
VS
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 ac_header_compiler=yes
13556else
13557 echo "$as_me: failed program was:" >&5
13558sed 's/^/| /' conftest.$ac_ext >&5
13559
13560ac_header_compiler=no
13561fi
ac1cb8d3 13562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13563echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13564echo "${ECHO_T}$ac_header_compiler" >&6
13565
13566# Is the header present?
13567echo "$as_me:$LINENO: checking $ac_header presence" >&5
13568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13569cat >conftest.$ac_ext <<_ACEOF
13570/* confdefs.h. */
13571_ACEOF
13572cat confdefs.h >>conftest.$ac_ext
13573cat >>conftest.$ac_ext <<_ACEOF
13574/* end confdefs.h. */
13575#include <$ac_header>
13576_ACEOF
13577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } >/dev/null; then
13585 if test -s conftest.err; then
13586 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13588 else
13589 ac_cpp_err=
13590 fi
13591else
13592 ac_cpp_err=yes
13593fi
13594if test -z "$ac_cpp_err"; then
13595 ac_header_preproc=yes
13596else
13597 echo "$as_me: failed program was:" >&5
13598sed 's/^/| /' conftest.$ac_ext >&5
13599
13600 ac_header_preproc=no
13601fi
13602rm -f conftest.err conftest.$ac_ext
13603echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13604echo "${ECHO_T}$ac_header_preproc" >&6
13605
13606# So? What about this header?
ac1cb8d3
VS
13607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13608 yes:no: )
a848cd7e
SC
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13613 ac_header_preproc=yes
a848cd7e 13614 ;;
ac1cb8d3 13615 no:yes:* )
a848cd7e
SC
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13628 (
13629 cat <<\_ASBOX
ac1cb8d3
VS
13630## ----------------------------------------- ##
13631## Report this to wx-dev@lists.wxwidgets.org ##
13632## ----------------------------------------- ##
a848cd7e
SC
13633_ASBOX
13634 ) |
13635 sed "s/^/$as_me: WARNING: /" >&2
13636 ;;
13637esac
13638echo "$as_me:$LINENO: checking for $ac_header" >&5
13639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13640if eval "test \"\${$as_ac_Header+set}\" = set"; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642else
ac1cb8d3 13643 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13644fi
13645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13647
13648fi
13649if test `eval echo '${'$as_ac_Header'}'` = yes; then
13650 cat >>confdefs.h <<_ACEOF
13651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13652_ACEOF
13653
13654fi
13655
13656done
13657
13658
13659if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13660
13661for ac_func in fnmatch
13662do
13663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13664echo "$as_me:$LINENO: checking for $ac_func" >&5
13665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13666if eval "test \"\${$as_ac_var+set}\" = set"; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668else
13669 cat >conftest.$ac_ext <<_ACEOF
13670/* confdefs.h. */
13671_ACEOF
13672cat confdefs.h >>conftest.$ac_ext
13673cat >>conftest.$ac_ext <<_ACEOF
13674/* end confdefs.h. */
ac1cb8d3
VS
13675/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13677#define $ac_func innocuous_$ac_func
13678
a848cd7e
SC
13679/* System header to define __stub macros and hopefully few prototypes,
13680 which can conflict with char $ac_func (); below.
13681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13682 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13683
a848cd7e
SC
13684#ifdef __STDC__
13685# include <limits.h>
13686#else
13687# include <assert.h>
13688#endif
ac1cb8d3
VS
13689
13690#undef $ac_func
13691
a848cd7e
SC
13692/* Override any gcc2 internal prototype to avoid an error. */
13693#ifdef __cplusplus
13694extern "C"
13695{
13696#endif
13697/* We use char because int might match the return type of a gcc2
13698 builtin and then its argument prototype would still apply. */
13699char $ac_func ();
13700/* The GNU C library defines this for functions which it implements
13701 to always fail with ENOSYS. Some functions are actually named
13702 something starting with __ and the normal name is an alias. */
13703#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13704choke me
13705#else
13706char (*f) () = $ac_func;
13707#endif
13708#ifdef __cplusplus
13709}
13710#endif
13711
13712int
13713main ()
13714{
13715return f != $ac_func;
13716 ;
13717 return 0;
13718}
13719_ACEOF
13720rm -f conftest.$ac_objext conftest$ac_exeext
13721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13722 (eval $ac_link) 2>conftest.er1
a848cd7e 13723 ac_status=$?
ac1cb8d3
VS
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
a848cd7e
SC
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
ea7db9ff
DE
13729 { ac_try='test -z "$ac_c_werror_flag"
13730 || test ! -s conftest.err'
ac1cb8d3
VS
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 eval "$as_ac_var=yes"
13743else
13744 echo "$as_me: failed program was:" >&5
13745sed 's/^/| /' conftest.$ac_ext >&5
13746
13747eval "$as_ac_var=no"
13748fi
ac1cb8d3
VS
13749rm -f conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13751fi
13752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13754if test `eval echo '${'$as_ac_var'}'` = yes; then
13755 cat >>confdefs.h <<_ACEOF
13756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13757_ACEOF
13758
13759fi
13760done
13761
13762fi
13763
13764
13765for ac_header in langinfo.h
13766do
13767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13768if eval "test \"\${$as_ac_Header+set}\" = set"; then
13769 echo "$as_me:$LINENO: checking for $ac_header" >&5
13770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13771if eval "test \"\${$as_ac_Header+set}\" = set"; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773fi
13774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13776else
13777 # Is the header compilable?
13778echo "$as_me:$LINENO: checking $ac_header usability" >&5
13779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13780cat >conftest.$ac_ext <<_ACEOF
13781/* confdefs.h. */
13782_ACEOF
13783cat confdefs.h >>conftest.$ac_ext
13784cat >>conftest.$ac_ext <<_ACEOF
13785/* end confdefs.h. */
13786$ac_includes_default
13787#include <$ac_header>
13788_ACEOF
13789rm -f conftest.$ac_objext
13790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13791 (eval $ac_compile) 2>conftest.er1
a848cd7e 13792 ac_status=$?
ac1cb8d3
VS
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
a848cd7e
SC
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
ea7db9ff
DE
13798 { ac_try='test -z "$ac_c_werror_flag"
13799 || test ! -s conftest.err'
ac1cb8d3
VS
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 ac_header_compiler=yes
13812else
13813 echo "$as_me: failed program was:" >&5
13814sed 's/^/| /' conftest.$ac_ext >&5
13815
13816ac_header_compiler=no
13817fi
ac1cb8d3 13818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13819echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13820echo "${ECHO_T}$ac_header_compiler" >&6
13821
13822# Is the header present?
13823echo "$as_me:$LINENO: checking $ac_header presence" >&5
13824echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13825cat >conftest.$ac_ext <<_ACEOF
13826/* confdefs.h. */
13827_ACEOF
13828cat confdefs.h >>conftest.$ac_ext
13829cat >>conftest.$ac_ext <<_ACEOF
13830/* end confdefs.h. */
13831#include <$ac_header>
13832_ACEOF
13833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } >/dev/null; then
13841 if test -s conftest.err; then
13842 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13844 else
13845 ac_cpp_err=
13846 fi
13847else
13848 ac_cpp_err=yes
13849fi
13850if test -z "$ac_cpp_err"; then
13851 ac_header_preproc=yes
13852else
13853 echo "$as_me: failed program was:" >&5
13854sed 's/^/| /' conftest.$ac_ext >&5
13855
13856 ac_header_preproc=no
13857fi
13858rm -f conftest.err conftest.$ac_ext
13859echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13860echo "${ECHO_T}$ac_header_preproc" >&6
13861
13862# So? What about this header?
ac1cb8d3
VS
13863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13864 yes:no: )
a848cd7e
SC
13865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13869 ac_header_preproc=yes
a848cd7e 13870 ;;
ac1cb8d3 13871 no:yes:* )
a848cd7e
SC
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13884 (
13885 cat <<\_ASBOX
ac1cb8d3
VS
13886## ----------------------------------------- ##
13887## Report this to wx-dev@lists.wxwidgets.org ##
13888## ----------------------------------------- ##
a848cd7e
SC
13889_ASBOX
13890 ) |
13891 sed "s/^/$as_me: WARNING: /" >&2
13892 ;;
13893esac
13894echo "$as_me:$LINENO: checking for $ac_header" >&5
13895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13896if eval "test \"\${$as_ac_Header+set}\" = set"; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898else
ac1cb8d3 13899 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13900fi
13901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13903
13904fi
13905if test `eval echo '${'$as_ac_Header'}'` = yes; then
13906 cat >>confdefs.h <<_ACEOF
13907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13908_ACEOF
13909
13910fi
13911
13912done
13913
13914
13915case "${host}" in
13916 *-pc-os2_emx | *-pc-os2-emx )
13917 if test $ac_cv_header_langinfo_h = "yes"; then
13918 LIBS="$LIBS -lintl"
13919 fi
13920 ;;
13921esac
13922
13923if test "$wxUSE_GUI" = "yes"; then
13924 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13925
13926for ac_header in X11/Xlib.h
13927do
13928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13929if eval "test \"\${$as_ac_Header+set}\" = set"; then
13930 echo "$as_me:$LINENO: checking for $ac_header" >&5
13931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13932if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934fi
13935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13937else
13938 # Is the header compilable?
13939echo "$as_me:$LINENO: checking $ac_header usability" >&5
13940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13941cat >conftest.$ac_ext <<_ACEOF
13942/* confdefs.h. */
13943_ACEOF
13944cat confdefs.h >>conftest.$ac_ext
13945cat >>conftest.$ac_ext <<_ACEOF
13946/* end confdefs.h. */
13947$ac_includes_default
13948#include <$ac_header>
13949_ACEOF
13950rm -f conftest.$ac_objext
13951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13952 (eval $ac_compile) 2>conftest.er1
a848cd7e 13953 ac_status=$?
ac1cb8d3
VS
13954 grep -v '^ *+' conftest.er1 >conftest.err
13955 rm -f conftest.er1
13956 cat conftest.err >&5
a848cd7e
SC
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } &&
ea7db9ff
DE
13959 { ac_try='test -z "$ac_c_werror_flag"
13960 || test ! -s conftest.err'
ac1cb8d3
VS
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; } &&
13966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }; then
13972 ac_header_compiler=yes
13973else
13974 echo "$as_me: failed program was:" >&5
13975sed 's/^/| /' conftest.$ac_ext >&5
13976
13977ac_header_compiler=no
13978fi
ac1cb8d3 13979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13981echo "${ECHO_T}$ac_header_compiler" >&6
13982
13983# Is the header present?
13984echo "$as_me:$LINENO: checking $ac_header presence" >&5
13985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13986cat >conftest.$ac_ext <<_ACEOF
13987/* confdefs.h. */
13988_ACEOF
13989cat confdefs.h >>conftest.$ac_ext
13990cat >>conftest.$ac_ext <<_ACEOF
13991/* end confdefs.h. */
13992#include <$ac_header>
13993_ACEOF
13994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } >/dev/null; then
14002 if test -s conftest.err; then
14003 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14005 else
14006 ac_cpp_err=
14007 fi
14008else
14009 ac_cpp_err=yes
14010fi
14011if test -z "$ac_cpp_err"; then
14012 ac_header_preproc=yes
14013else
14014 echo "$as_me: failed program was:" >&5
14015sed 's/^/| /' conftest.$ac_ext >&5
14016
14017 ac_header_preproc=no
14018fi
14019rm -f conftest.err conftest.$ac_ext
14020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14021echo "${ECHO_T}$ac_header_preproc" >&6
14022
14023# So? What about this header?
ac1cb8d3
VS
14024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14025 yes:no: )
a848cd7e
SC
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14030 ac_header_preproc=yes
a848cd7e 14031 ;;
ac1cb8d3 14032 no:yes:* )
a848cd7e
SC
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14045 (
14046 cat <<\_ASBOX
ac1cb8d3
VS
14047## ----------------------------------------- ##
14048## Report this to wx-dev@lists.wxwidgets.org ##
14049## ----------------------------------------- ##
a848cd7e
SC
14050_ASBOX
14051 ) |
14052 sed "s/^/$as_me: WARNING: /" >&2
14053 ;;
14054esac
14055echo "$as_me:$LINENO: checking for $ac_header" >&5
14056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14057if eval "test \"\${$as_ac_Header+set}\" = set"; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059else
ac1cb8d3 14060 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14061fi
14062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14064
14065fi
14066if test `eval echo '${'$as_ac_Header'}'` = yes; then
14067 cat >>confdefs.h <<_ACEOF
14068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14069_ACEOF
14070
14071fi
14072
14073done
14074
14075
14076for ac_header in X11/XKBlib.h
14077do
14078as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14079echo "$as_me:$LINENO: checking for $ac_header" >&5
14080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14081if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083else
14084 cat >conftest.$ac_ext <<_ACEOF
14085/* confdefs.h. */
14086_ACEOF
14087cat confdefs.h >>conftest.$ac_ext
14088cat >>conftest.$ac_ext <<_ACEOF
14089/* end confdefs.h. */
14090
14091 #if HAVE_X11_XLIB_H
14092 #include <X11/Xlib.h>
14093 #endif
14094
14095
14096#include <$ac_header>
14097_ACEOF
14098rm -f conftest.$ac_objext
14099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14100 (eval $ac_compile) 2>conftest.er1
a848cd7e 14101 ac_status=$?
ac1cb8d3
VS
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
14104 cat conftest.err >&5
a848cd7e
SC
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } &&
ea7db9ff
DE
14107 { ac_try='test -z "$ac_c_werror_flag"
14108 || test ! -s conftest.err'
ac1cb8d3
VS
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } &&
14114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 eval "$as_ac_Header=yes"
14121else
14122 echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125eval "$as_ac_Header=no"
14126fi
ac1cb8d3 14127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14128fi
14129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14131if test `eval echo '${'$as_ac_Header'}'` = yes; then
14132 cat >>confdefs.h <<_ACEOF
14133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14134_ACEOF
14135
14136fi
14137
14138done
14139
14140 fi
14141fi
14142
14143
14144echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14145echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14146if test "${ac_cv_c_const+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148else
14149 cat >conftest.$ac_ext <<_ACEOF
14150/* confdefs.h. */
14151_ACEOF
14152cat confdefs.h >>conftest.$ac_ext
14153cat >>conftest.$ac_ext <<_ACEOF
14154/* end confdefs.h. */
14155
14156int
14157main ()
14158{
14159/* FIXME: Include the comments suggested by Paul. */
14160#ifndef __cplusplus
14161 /* Ultrix mips cc rejects this. */
14162 typedef int charset[2];
14163 const charset x;
14164 /* SunOS 4.1.1 cc rejects this. */
14165 char const *const *ccp;
14166 char **p;
14167 /* NEC SVR4.0.2 mips cc rejects this. */
14168 struct point {int x, y;};
14169 static struct point const zero = {0,0};
14170 /* AIX XL C 1.02.0.0 rejects this.
14171 It does not let you subtract one const X* pointer from another in
14172 an arm of an if-expression whose if-part is not a constant
14173 expression */
14174 const char *g = "string";
14175 ccp = &g + (g ? g-g : 0);
14176 /* HPUX 7.0 cc rejects these. */
14177 ++ccp;
14178 p = (char**) ccp;
14179 ccp = (char const *const *) p;
14180 { /* SCO 3.2v4 cc rejects this. */
14181 char *t;
14182 char const *s = 0 ? (char *) 0 : (char const *) 0;
14183
14184 *t++ = 0;
14185 }
14186 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14187 int x[] = {25, 17};
14188 const int *foo = &x[0];
14189 ++foo;
14190 }
14191 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14192 typedef const int *iptr;
14193 iptr p = 0;
14194 ++p;
14195 }
14196 { /* AIX XL C 1.02.0.0 rejects this saying
14197 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14198 struct s { int j; const int *ap[3]; };
14199 struct s *b; b->j = 5;
14200 }
14201 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14202 const int foo = 10;
14203 }
14204#endif
14205
14206 ;
14207 return 0;
14208}
14209_ACEOF
14210rm -f conftest.$ac_objext
14211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14212 (eval $ac_compile) 2>conftest.er1
a848cd7e 14213 ac_status=$?
ac1cb8d3
VS
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
a848cd7e
SC
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } &&
ea7db9ff
DE
14219 { ac_try='test -z "$ac_c_werror_flag"
14220 || test ! -s conftest.err'
ac1cb8d3
VS
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; } &&
14226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; }; then
14232 ac_cv_c_const=yes
14233else
14234 echo "$as_me: failed program was:" >&5
14235sed 's/^/| /' conftest.$ac_ext >&5
14236
14237ac_cv_c_const=no
14238fi
ac1cb8d3 14239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14240fi
14241echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14242echo "${ECHO_T}$ac_cv_c_const" >&6
14243if test $ac_cv_c_const = no; then
14244
14245cat >>confdefs.h <<\_ACEOF
14246#define const
14247_ACEOF
14248
14249fi
14250
14251echo "$as_me:$LINENO: checking for inline" >&5
14252echo $ECHO_N "checking for inline... $ECHO_C" >&6
14253if test "${ac_cv_c_inline+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255else
14256 ac_cv_c_inline=no
14257for ac_kw in inline __inline__ __inline; do
14258 cat >conftest.$ac_ext <<_ACEOF
14259/* confdefs.h. */
14260_ACEOF
14261cat confdefs.h >>conftest.$ac_ext
14262cat >>conftest.$ac_ext <<_ACEOF
14263/* end confdefs.h. */
14264#ifndef __cplusplus
14265typedef int foo_t;
14266static $ac_kw foo_t static_foo () {return 0; }
14267$ac_kw foo_t foo () {return 0; }
14268#endif
14269
14270_ACEOF
14271rm -f conftest.$ac_objext
14272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14273 (eval $ac_compile) 2>conftest.er1
a848cd7e 14274 ac_status=$?
ac1cb8d3
VS
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
a848cd7e
SC
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
ea7db9ff
DE
14280 { ac_try='test -z "$ac_c_werror_flag"
14281 || test ! -s conftest.err'
ac1cb8d3
VS
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_c_inline=$ac_kw; break
14294else
14295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
14298fi
ac1cb8d3 14299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14300done
14301
14302fi
14303echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14304echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14305
14306
a848cd7e
SC
14307case $ac_cv_c_inline in
14308 inline | yes) ;;
ac1cb8d3
VS
14309 *)
14310 case $ac_cv_c_inline in
14311 no) ac_val=;;
14312 *) ac_val=$ac_cv_c_inline;;
14313 esac
14314 cat >>confdefs.h <<_ACEOF
14315#ifndef __cplusplus
14316#define inline $ac_val
14317#endif
de59c161 14318_ACEOF
ac1cb8d3 14319 ;;
a848cd7e
SC
14320esac
14321
14322
14323echo "$as_me:$LINENO: checking for char" >&5
14324echo $ECHO_N "checking for char... $ECHO_C" >&6
14325if test "${ac_cv_type_char+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327else
14328 cat >conftest.$ac_ext <<_ACEOF
14329/* confdefs.h. */
14330_ACEOF
14331cat confdefs.h >>conftest.$ac_ext
14332cat >>conftest.$ac_ext <<_ACEOF
14333/* end confdefs.h. */
14334$ac_includes_default
14335int
14336main ()
14337{
14338if ((char *) 0)
14339 return 0;
14340if (sizeof (char))
14341 return 0;
14342 ;
14343 return 0;
14344}
14345_ACEOF
14346rm -f conftest.$ac_objext
14347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14348 (eval $ac_compile) 2>conftest.er1
a848cd7e 14349 ac_status=$?
ac1cb8d3
VS
14350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
a848cd7e
SC
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
ea7db9ff
DE
14355 { ac_try='test -z "$ac_c_werror_flag"
14356 || test ! -s conftest.err'
ac1cb8d3
VS
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; } &&
14362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 ac_cv_type_char=yes
14369else
14370 echo "$as_me: failed program was:" >&5
14371sed 's/^/| /' conftest.$ac_ext >&5
14372
14373ac_cv_type_char=no
14374fi
ac1cb8d3 14375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14376fi
14377echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14378echo "${ECHO_T}$ac_cv_type_char" >&6
14379
14380echo "$as_me:$LINENO: checking size of char" >&5
14381echo $ECHO_N "checking size of char... $ECHO_C" >&6
14382if test "${ac_cv_sizeof_char+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384else
14385 if test "$ac_cv_type_char" = yes; then
14386 # The cast to unsigned long works around a bug in the HP C Compiler
14387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14389 # This bug is HP SR number 8606223364.
14390 if test "$cross_compiling" = yes; then
14391 # Depending upon the size, compute the lo and hi bounds.
14392cat >conftest.$ac_ext <<_ACEOF
14393/* confdefs.h. */
14394_ACEOF
14395cat confdefs.h >>conftest.$ac_ext
14396cat >>conftest.$ac_ext <<_ACEOF
14397/* end confdefs.h. */
14398$ac_includes_default
14399int
14400main ()
14401{
14402static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14403test_array [0] = 0
14404
14405 ;
14406 return 0;
14407}
14408_ACEOF
14409rm -f conftest.$ac_objext
14410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14411 (eval $ac_compile) 2>conftest.er1
a848cd7e 14412 ac_status=$?
ac1cb8d3
VS
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
a848cd7e
SC
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
ea7db9ff
DE
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
ac1cb8d3
VS
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 ac_lo=0 ac_mid=0
14432 while :; do
14433 cat >conftest.$ac_ext <<_ACEOF
14434/* confdefs.h. */
14435_ACEOF
14436cat confdefs.h >>conftest.$ac_ext
14437cat >>conftest.$ac_ext <<_ACEOF
14438/* end confdefs.h. */
14439$ac_includes_default
14440int
14441main ()
14442{
14443static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14444test_array [0] = 0
14445
14446 ;
14447 return 0;
14448}
14449_ACEOF
14450rm -f conftest.$ac_objext
14451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14452 (eval $ac_compile) 2>conftest.er1
a848cd7e 14453 ac_status=$?
ac1cb8d3
VS
14454 grep -v '^ *+' conftest.er1 >conftest.err
14455 rm -f conftest.er1
14456 cat conftest.err >&5
a848cd7e
SC
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
ea7db9ff
DE
14459 { ac_try='test -z "$ac_c_werror_flag"
14460 || test ! -s conftest.err'
ac1cb8d3
VS
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_hi=$ac_mid; break
14473else
14474 echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
14477ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14478 if test $ac_lo -le $ac_mid; then
14479 ac_lo= ac_hi=
14480 break
14481 fi
14482 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14483fi
ac1cb8d3 14484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14485 done
14486else
14487 echo "$as_me: failed program was:" >&5
14488sed 's/^/| /' conftest.$ac_ext >&5
14489
14490cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
14495/* end confdefs.h. */
14496$ac_includes_default
14497int
14498main ()
14499{
14500static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14501test_array [0] = 0
14502
14503 ;
14504 return 0;
14505}
14506_ACEOF
14507rm -f conftest.$ac_objext
14508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14509 (eval $ac_compile) 2>conftest.er1
a848cd7e 14510 ac_status=$?
ac1cb8d3
VS
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
a848cd7e
SC
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
ea7db9ff
DE
14516 { ac_try='test -z "$ac_c_werror_flag"
14517 || test ! -s conftest.err'
ac1cb8d3
VS
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 ac_hi=-1 ac_mid=-1
14530 while :; do
14531 cat >conftest.$ac_ext <<_ACEOF
14532/* confdefs.h. */
14533_ACEOF
14534cat confdefs.h >>conftest.$ac_ext
14535cat >>conftest.$ac_ext <<_ACEOF
14536/* end confdefs.h. */
14537$ac_includes_default
14538int
14539main ()
14540{
14541static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14542test_array [0] = 0
14543
14544 ;
14545 return 0;
14546}
14547_ACEOF
14548rm -f conftest.$ac_objext
14549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14550 (eval $ac_compile) 2>conftest.er1
a848cd7e 14551 ac_status=$?
ac1cb8d3
VS
14552 grep -v '^ *+' conftest.er1 >conftest.err
14553 rm -f conftest.er1
14554 cat conftest.err >&5
a848cd7e
SC
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } &&
ea7db9ff
DE
14557 { ac_try='test -z "$ac_c_werror_flag"
14558 || test ! -s conftest.err'
ac1cb8d3
VS
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; } &&
14564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_lo=$ac_mid; break
14571else
14572 echo "$as_me: failed program was:" >&5
14573sed 's/^/| /' conftest.$ac_ext >&5
14574
14575ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14576 if test $ac_mid -le $ac_hi; then
14577 ac_lo= ac_hi=
14578 break
14579 fi
14580 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14581fi
ac1cb8d3 14582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14583 done
14584else
14585 echo "$as_me: failed program was:" >&5
14586sed 's/^/| /' conftest.$ac_ext >&5
14587
14588ac_lo= ac_hi=
14589fi
ac1cb8d3 14590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14591fi
ac1cb8d3 14592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14593# Binary search between lo and hi bounds.
14594while test "x$ac_lo" != "x$ac_hi"; do
14595 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14596 cat >conftest.$ac_ext <<_ACEOF
14597/* confdefs.h. */
14598_ACEOF
14599cat confdefs.h >>conftest.$ac_ext
14600cat >>conftest.$ac_ext <<_ACEOF
14601/* end confdefs.h. */
14602$ac_includes_default
14603int
14604main ()
14605{
14606static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14607test_array [0] = 0
14608
14609 ;
14610 return 0;
14611}
14612_ACEOF
14613rm -f conftest.$ac_objext
14614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14615 (eval $ac_compile) 2>conftest.er1
a848cd7e 14616 ac_status=$?
ac1cb8d3
VS
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
a848cd7e
SC
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
ea7db9ff
DE
14622 { ac_try='test -z "$ac_c_werror_flag"
14623 || test ! -s conftest.err'
ac1cb8d3
VS
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; } &&
14629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 ac_hi=$ac_mid
14636else
14637 echo "$as_me: failed program was:" >&5
14638sed 's/^/| /' conftest.$ac_ext >&5
14639
14640ac_lo=`expr '(' $ac_mid ')' + 1`
14641fi
ac1cb8d3 14642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14643done
14644case $ac_lo in
14645?*) ac_cv_sizeof_char=$ac_lo;;
14646'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14647See \`config.log' for more details." >&5
14648echo "$as_me: error: cannot compute sizeof (char), 77
14649See \`config.log' for more details." >&2;}
14650 { (exit 1); exit 1; }; } ;;
14651esac
14652else
14653 if test "$cross_compiling" = yes; then
ea7db9ff
DE
14654 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14655See \`config.log' for more details." >&5
14656echo "$as_me: error: cannot run test program while cross compiling
14657See \`config.log' for more details." >&2;}
a848cd7e
SC
14658 { (exit 1); exit 1; }; }
14659else
14660 cat >conftest.$ac_ext <<_ACEOF
14661/* confdefs.h. */
14662_ACEOF
14663cat confdefs.h >>conftest.$ac_ext
14664cat >>conftest.$ac_ext <<_ACEOF
14665/* end confdefs.h. */
14666$ac_includes_default
14667long longval () { return (long) (sizeof (char)); }
14668unsigned long ulongval () { return (long) (sizeof (char)); }
14669#include <stdio.h>
14670#include <stdlib.h>
14671int
14672main ()
14673{
14674
14675 FILE *f = fopen ("conftest.val", "w");
14676 if (! f)
14677 exit (1);
14678 if (((long) (sizeof (char))) < 0)
14679 {
14680 long i = longval ();
14681 if (i != ((long) (sizeof (char))))
14682 exit (1);
14683 fprintf (f, "%ld\n", i);
14684 }
14685 else
14686 {
14687 unsigned long i = ulongval ();
14688 if (i != ((long) (sizeof (char))))
14689 exit (1);
14690 fprintf (f, "%lu\n", i);
14691 }
14692 exit (ferror (f) || fclose (f) != 0);
14693
14694 ;
14695 return 0;
14696}
14697_ACEOF
14698rm -f conftest$ac_exeext
14699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14700 (eval $ac_link) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14709 ac_cv_sizeof_char=`cat conftest.val`
14710else
14711 echo "$as_me: program exited with status $ac_status" >&5
14712echo "$as_me: failed program was:" >&5
14713sed 's/^/| /' conftest.$ac_ext >&5
14714
14715( exit $ac_status )
14716{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14717See \`config.log' for more details." >&5
14718echo "$as_me: error: cannot compute sizeof (char), 77
14719See \`config.log' for more details." >&2;}
14720 { (exit 1); exit 1; }; }
14721fi
ac1cb8d3 14722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14723fi
14724fi
14725rm -f conftest.val
14726else
14727 ac_cv_sizeof_char=0
14728fi
14729fi
14730echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14731echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14732cat >>confdefs.h <<_ACEOF
14733#define SIZEOF_CHAR $ac_cv_sizeof_char
14734_ACEOF
14735
14736
14737echo "$as_me:$LINENO: checking for short" >&5
14738echo $ECHO_N "checking for short... $ECHO_C" >&6
14739if test "${ac_cv_type_short+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741else
14742 cat >conftest.$ac_ext <<_ACEOF
14743/* confdefs.h. */
14744_ACEOF
14745cat confdefs.h >>conftest.$ac_ext
14746cat >>conftest.$ac_ext <<_ACEOF
14747/* end confdefs.h. */
14748$ac_includes_default
14749int
14750main ()
14751{
14752if ((short *) 0)
14753 return 0;
14754if (sizeof (short))
14755 return 0;
14756 ;
14757 return 0;
14758}
14759_ACEOF
14760rm -f conftest.$ac_objext
14761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14762 (eval $ac_compile) 2>conftest.er1
a848cd7e 14763 ac_status=$?
ac1cb8d3
VS
14764 grep -v '^ *+' conftest.er1 >conftest.err
14765 rm -f conftest.er1
14766 cat conftest.err >&5
a848cd7e
SC
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
ea7db9ff
DE
14769 { ac_try='test -z "$ac_c_werror_flag"
14770 || test ! -s conftest.err'
ac1cb8d3
VS
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; } &&
14776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_type_short=yes
14783else
14784 echo "$as_me: failed program was:" >&5
14785sed 's/^/| /' conftest.$ac_ext >&5
14786
14787ac_cv_type_short=no
14788fi
ac1cb8d3 14789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14790fi
14791echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14792echo "${ECHO_T}$ac_cv_type_short" >&6
14793
14794echo "$as_me:$LINENO: checking size of short" >&5
14795echo $ECHO_N "checking size of short... $ECHO_C" >&6
14796if test "${ac_cv_sizeof_short+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798else
14799 if test "$ac_cv_type_short" = yes; then
14800 # The cast to unsigned long works around a bug in the HP C Compiler
14801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14803 # This bug is HP SR number 8606223364.
14804 if test "$cross_compiling" = yes; then
14805 # Depending upon the size, compute the lo and hi bounds.
14806cat >conftest.$ac_ext <<_ACEOF
14807/* confdefs.h. */
14808_ACEOF
14809cat confdefs.h >>conftest.$ac_ext
14810cat >>conftest.$ac_ext <<_ACEOF
14811/* end confdefs.h. */
14812$ac_includes_default
14813int
14814main ()
14815{
14816static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14817test_array [0] = 0
14818
14819 ;
14820 return 0;
14821}
14822_ACEOF
14823rm -f conftest.$ac_objext
14824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14825 (eval $ac_compile) 2>conftest.er1
a848cd7e 14826 ac_status=$?
ac1cb8d3
VS
14827 grep -v '^ *+' conftest.er1 >conftest.err
14828 rm -f conftest.er1
14829 cat conftest.err >&5
a848cd7e
SC
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
ea7db9ff
DE
14832 { ac_try='test -z "$ac_c_werror_flag"
14833 || test ! -s conftest.err'
ac1cb8d3
VS
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 ac_lo=0 ac_mid=0
14846 while :; do
14847 cat >conftest.$ac_ext <<_ACEOF
14848/* confdefs.h. */
14849_ACEOF
14850cat confdefs.h >>conftest.$ac_ext
14851cat >>conftest.$ac_ext <<_ACEOF
14852/* end confdefs.h. */
14853$ac_includes_default
14854int
14855main ()
14856{
14857static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14858test_array [0] = 0
14859
14860 ;
14861 return 0;
14862}
14863_ACEOF
14864rm -f conftest.$ac_objext
14865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14866 (eval $ac_compile) 2>conftest.er1
a848cd7e 14867 ac_status=$?
ac1cb8d3
VS
14868 grep -v '^ *+' conftest.er1 >conftest.err
14869 rm -f conftest.er1
14870 cat conftest.err >&5
a848cd7e
SC
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
ea7db9ff
DE
14873 { ac_try='test -z "$ac_c_werror_flag"
14874 || test ! -s conftest.err'
ac1cb8d3
VS
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_hi=$ac_mid; break
14887else
14888 echo "$as_me: failed program was:" >&5
14889sed 's/^/| /' conftest.$ac_ext >&5
14890
14891ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14892 if test $ac_lo -le $ac_mid; then
14893 ac_lo= ac_hi=
14894 break
14895 fi
14896 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14897fi
ac1cb8d3 14898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14899 done
14900else
14901 echo "$as_me: failed program was:" >&5
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
14904cat >conftest.$ac_ext <<_ACEOF
14905/* confdefs.h. */
14906_ACEOF
14907cat confdefs.h >>conftest.$ac_ext
14908cat >>conftest.$ac_ext <<_ACEOF
14909/* end confdefs.h. */
14910$ac_includes_default
14911int
14912main ()
14913{
14914static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14915test_array [0] = 0
14916
14917 ;
14918 return 0;
14919}
14920_ACEOF
14921rm -f conftest.$ac_objext
14922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14923 (eval $ac_compile) 2>conftest.er1
a848cd7e 14924 ac_status=$?
ac1cb8d3
VS
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
a848cd7e
SC
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } &&
ea7db9ff
DE
14930 { ac_try='test -z "$ac_c_werror_flag"
14931 || test ! -s conftest.err'
ac1cb8d3
VS
14932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933 (eval $ac_try) 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; } &&
14937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_hi=-1 ac_mid=-1
14944 while :; do
14945 cat >conftest.$ac_ext <<_ACEOF
14946/* confdefs.h. */
14947_ACEOF
14948cat confdefs.h >>conftest.$ac_ext
14949cat >>conftest.$ac_ext <<_ACEOF
14950/* end confdefs.h. */
14951$ac_includes_default
14952int
14953main ()
14954{
14955static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14956test_array [0] = 0
14957
14958 ;
14959 return 0;
14960}
14961_ACEOF
14962rm -f conftest.$ac_objext
14963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14964 (eval $ac_compile) 2>conftest.er1
a848cd7e 14965 ac_status=$?
ac1cb8d3
VS
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
a848cd7e
SC
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
ea7db9ff
DE
14971 { ac_try='test -z "$ac_c_werror_flag"
14972 || test ! -s conftest.err'
ac1cb8d3
VS
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } &&
14978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_lo=$ac_mid; break
14985else
14986 echo "$as_me: failed program was:" >&5
14987sed 's/^/| /' conftest.$ac_ext >&5
14988
14989ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14990 if test $ac_mid -le $ac_hi; then
14991 ac_lo= ac_hi=
14992 break
14993 fi
14994 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14995fi
ac1cb8d3 14996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14997 done
14998else
14999 echo "$as_me: failed program was:" >&5
15000sed 's/^/| /' conftest.$ac_ext >&5
15001
15002ac_lo= ac_hi=
15003fi
ac1cb8d3 15004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15005fi
ac1cb8d3 15006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15007# Binary search between lo and hi bounds.
15008while test "x$ac_lo" != "x$ac_hi"; do
15009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15010 cat >conftest.$ac_ext <<_ACEOF
15011/* confdefs.h. */
15012_ACEOF
15013cat confdefs.h >>conftest.$ac_ext
15014cat >>conftest.$ac_ext <<_ACEOF
15015/* end confdefs.h. */
15016$ac_includes_default
15017int
15018main ()
15019{
15020static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15021test_array [0] = 0
15022
15023 ;
15024 return 0;
15025}
15026_ACEOF
15027rm -f conftest.$ac_objext
15028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15029 (eval $ac_compile) 2>conftest.er1
a848cd7e 15030 ac_status=$?
ac1cb8d3
VS
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
a848cd7e
SC
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } &&
ea7db9ff
DE
15036 { ac_try='test -z "$ac_c_werror_flag"
15037 || test ! -s conftest.err'
ac1cb8d3
VS
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; } &&
15043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_hi=$ac_mid
15050else
15051 echo "$as_me: failed program was:" >&5
15052sed 's/^/| /' conftest.$ac_ext >&5
15053
15054ac_lo=`expr '(' $ac_mid ')' + 1`
15055fi
ac1cb8d3 15056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15057done
15058case $ac_lo in
15059?*) ac_cv_sizeof_short=$ac_lo;;
15060'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15061See \`config.log' for more details." >&5
15062echo "$as_me: error: cannot compute sizeof (short), 77
15063See \`config.log' for more details." >&2;}
15064 { (exit 1); exit 1; }; } ;;
15065esac
15066else
15067 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15068 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15069See \`config.log' for more details." >&5
15070echo "$as_me: error: cannot run test program while cross compiling
15071See \`config.log' for more details." >&2;}
a848cd7e
SC
15072 { (exit 1); exit 1; }; }
15073else
15074 cat >conftest.$ac_ext <<_ACEOF
15075/* confdefs.h. */
15076_ACEOF
15077cat confdefs.h >>conftest.$ac_ext
15078cat >>conftest.$ac_ext <<_ACEOF
15079/* end confdefs.h. */
15080$ac_includes_default
15081long longval () { return (long) (sizeof (short)); }
15082unsigned long ulongval () { return (long) (sizeof (short)); }
15083#include <stdio.h>
15084#include <stdlib.h>
15085int
15086main ()
15087{
15088
15089 FILE *f = fopen ("conftest.val", "w");
15090 if (! f)
15091 exit (1);
15092 if (((long) (sizeof (short))) < 0)
15093 {
15094 long i = longval ();
15095 if (i != ((long) (sizeof (short))))
15096 exit (1);
15097 fprintf (f, "%ld\n", i);
15098 }
15099 else
15100 {
15101 unsigned long i = ulongval ();
15102 if (i != ((long) (sizeof (short))))
15103 exit (1);
15104 fprintf (f, "%lu\n", i);
15105 }
15106 exit (ferror (f) || fclose (f) != 0);
15107
15108 ;
15109 return 0;
15110}
15111_ACEOF
15112rm -f conftest$ac_exeext
15113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15114 (eval $ac_link) 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; }; then
15123 ac_cv_sizeof_short=`cat conftest.val`
15124else
15125 echo "$as_me: program exited with status $ac_status" >&5
15126echo "$as_me: failed program was:" >&5
15127sed 's/^/| /' conftest.$ac_ext >&5
15128
15129( exit $ac_status )
15130{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15131See \`config.log' for more details." >&5
15132echo "$as_me: error: cannot compute sizeof (short), 77
15133See \`config.log' for more details." >&2;}
15134 { (exit 1); exit 1; }; }
15135fi
ac1cb8d3 15136rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15137fi
15138fi
15139rm -f conftest.val
15140else
15141 ac_cv_sizeof_short=0
15142fi
15143fi
15144echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15145echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15146cat >>confdefs.h <<_ACEOF
15147#define SIZEOF_SHORT $ac_cv_sizeof_short
15148_ACEOF
15149
15150
15151echo "$as_me:$LINENO: checking for void *" >&5
15152echo $ECHO_N "checking for void *... $ECHO_C" >&6
15153if test "${ac_cv_type_void_p+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15155else
15156 cat >conftest.$ac_ext <<_ACEOF
15157/* confdefs.h. */
15158_ACEOF
15159cat confdefs.h >>conftest.$ac_ext
15160cat >>conftest.$ac_ext <<_ACEOF
15161/* end confdefs.h. */
15162$ac_includes_default
15163int
15164main ()
15165{
15166if ((void * *) 0)
15167 return 0;
15168if (sizeof (void *))
15169 return 0;
15170 ;
15171 return 0;
15172}
15173_ACEOF
15174rm -f conftest.$ac_objext
15175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15176 (eval $ac_compile) 2>conftest.er1
a848cd7e 15177 ac_status=$?
ac1cb8d3
VS
15178 grep -v '^ *+' conftest.er1 >conftest.err
15179 rm -f conftest.er1
15180 cat conftest.err >&5
a848cd7e
SC
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
ea7db9ff
DE
15183 { ac_try='test -z "$ac_c_werror_flag"
15184 || test ! -s conftest.err'
ac1cb8d3
VS
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; } &&
15190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15196 ac_cv_type_void_p=yes
15197else
15198 echo "$as_me: failed program was:" >&5
15199sed 's/^/| /' conftest.$ac_ext >&5
15200
15201ac_cv_type_void_p=no
15202fi
ac1cb8d3 15203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15204fi
15205echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15206echo "${ECHO_T}$ac_cv_type_void_p" >&6
15207
15208echo "$as_me:$LINENO: checking size of void *" >&5
15209echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15210if test "${ac_cv_sizeof_void_p+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212else
15213 if test "$ac_cv_type_void_p" = yes; then
15214 # The cast to unsigned long works around a bug in the HP C Compiler
15215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15217 # This bug is HP SR number 8606223364.
15218 if test "$cross_compiling" = yes; then
15219 # Depending upon the size, compute the lo and hi bounds.
15220cat >conftest.$ac_ext <<_ACEOF
15221/* confdefs.h. */
15222_ACEOF
15223cat confdefs.h >>conftest.$ac_ext
15224cat >>conftest.$ac_ext <<_ACEOF
15225/* end confdefs.h. */
15226$ac_includes_default
15227int
15228main ()
15229{
15230static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15231test_array [0] = 0
15232
15233 ;
15234 return 0;
15235}
15236_ACEOF
15237rm -f conftest.$ac_objext
15238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15239 (eval $ac_compile) 2>conftest.er1
a848cd7e 15240 ac_status=$?
ac1cb8d3
VS
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
a848cd7e
SC
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
ea7db9ff
DE
15246 { ac_try='test -z "$ac_c_werror_flag"
15247 || test ! -s conftest.err'
ac1cb8d3
VS
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_lo=0 ac_mid=0
15260 while :; do
15261 cat >conftest.$ac_ext <<_ACEOF
15262/* confdefs.h. */
15263_ACEOF
15264cat confdefs.h >>conftest.$ac_ext
15265cat >>conftest.$ac_ext <<_ACEOF
15266/* end confdefs.h. */
15267$ac_includes_default
15268int
15269main ()
15270{
15271static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15272test_array [0] = 0
15273
15274 ;
15275 return 0;
15276}
15277_ACEOF
15278rm -f conftest.$ac_objext
15279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15280 (eval $ac_compile) 2>conftest.er1
a848cd7e 15281 ac_status=$?
ac1cb8d3
VS
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
a848cd7e
SC
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
ea7db9ff
DE
15287 { ac_try='test -z "$ac_c_werror_flag"
15288 || test ! -s conftest.err'
ac1cb8d3
VS
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_hi=$ac_mid; break
15301else
15302 echo "$as_me: failed program was:" >&5
15303sed 's/^/| /' conftest.$ac_ext >&5
15304
15305ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15306 if test $ac_lo -le $ac_mid; then
15307 ac_lo= ac_hi=
15308 break
15309 fi
15310 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15311fi
ac1cb8d3 15312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15313 done
15314else
15315 echo "$as_me: failed program was:" >&5
15316sed 's/^/| /' conftest.$ac_ext >&5
15317
15318cat >conftest.$ac_ext <<_ACEOF
15319/* confdefs.h. */
15320_ACEOF
15321cat confdefs.h >>conftest.$ac_ext
15322cat >>conftest.$ac_ext <<_ACEOF
15323/* end confdefs.h. */
15324$ac_includes_default
15325int
15326main ()
15327{
15328static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15329test_array [0] = 0
15330
15331 ;
15332 return 0;
15333}
15334_ACEOF
15335rm -f conftest.$ac_objext
15336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15337 (eval $ac_compile) 2>conftest.er1
a848cd7e 15338 ac_status=$?
ac1cb8d3
VS
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
a848cd7e
SC
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
ea7db9ff
DE
15344 { ac_try='test -z "$ac_c_werror_flag"
15345 || test ! -s conftest.err'
ac1cb8d3
VS
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_hi=-1 ac_mid=-1
15358 while :; do
15359 cat >conftest.$ac_ext <<_ACEOF
15360/* confdefs.h. */
15361_ACEOF
15362cat confdefs.h >>conftest.$ac_ext
15363cat >>conftest.$ac_ext <<_ACEOF
15364/* end confdefs.h. */
15365$ac_includes_default
15366int
15367main ()
15368{
15369static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15370test_array [0] = 0
15371
15372 ;
15373 return 0;
15374}
15375_ACEOF
15376rm -f conftest.$ac_objext
15377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15378 (eval $ac_compile) 2>conftest.er1
a848cd7e 15379 ac_status=$?
ac1cb8d3
VS
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
a848cd7e
SC
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
ea7db9ff
DE
15385 { ac_try='test -z "$ac_c_werror_flag"
15386 || test ! -s conftest.err'
ac1cb8d3
VS
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_lo=$ac_mid; break
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15404 if test $ac_mid -le $ac_hi; then
15405 ac_lo= ac_hi=
15406 break
15407 fi
15408 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15409fi
ac1cb8d3 15410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15411 done
15412else
15413 echo "$as_me: failed program was:" >&5
15414sed 's/^/| /' conftest.$ac_ext >&5
15415
15416ac_lo= ac_hi=
15417fi
ac1cb8d3 15418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15419fi
ac1cb8d3 15420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15421# Binary search between lo and hi bounds.
15422while test "x$ac_lo" != "x$ac_hi"; do
15423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15424 cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h. */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h. */
15430$ac_includes_default
15431int
15432main ()
15433{
15434static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15435test_array [0] = 0
15436
15437 ;
15438 return 0;
15439}
15440_ACEOF
15441rm -f conftest.$ac_objext
15442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15443 (eval $ac_compile) 2>conftest.er1
a848cd7e 15444 ac_status=$?
ac1cb8d3
VS
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
a848cd7e
SC
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
ea7db9ff
DE
15450 { ac_try='test -z "$ac_c_werror_flag"
15451 || test ! -s conftest.err'
ac1cb8d3
VS
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_hi=$ac_mid
15464else
15465 echo "$as_me: failed program was:" >&5
15466sed 's/^/| /' conftest.$ac_ext >&5
15467
15468ac_lo=`expr '(' $ac_mid ')' + 1`
15469fi
ac1cb8d3 15470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15471done
15472case $ac_lo in
15473?*) ac_cv_sizeof_void_p=$ac_lo;;
15474'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15475See \`config.log' for more details." >&5
15476echo "$as_me: error: cannot compute sizeof (void *), 77
15477See \`config.log' for more details." >&2;}
15478 { (exit 1); exit 1; }; } ;;
15479esac
15480else
15481 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15482 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15483See \`config.log' for more details." >&5
15484echo "$as_me: error: cannot run test program while cross compiling
15485See \`config.log' for more details." >&2;}
a848cd7e
SC
15486 { (exit 1); exit 1; }; }
15487else
15488 cat >conftest.$ac_ext <<_ACEOF
15489/* confdefs.h. */
15490_ACEOF
15491cat confdefs.h >>conftest.$ac_ext
15492cat >>conftest.$ac_ext <<_ACEOF
15493/* end confdefs.h. */
15494$ac_includes_default
15495long longval () { return (long) (sizeof (void *)); }
15496unsigned long ulongval () { return (long) (sizeof (void *)); }
15497#include <stdio.h>
15498#include <stdlib.h>
15499int
15500main ()
15501{
15502
15503 FILE *f = fopen ("conftest.val", "w");
15504 if (! f)
15505 exit (1);
15506 if (((long) (sizeof (void *))) < 0)
15507 {
15508 long i = longval ();
15509 if (i != ((long) (sizeof (void *))))
15510 exit (1);
15511 fprintf (f, "%ld\n", i);
15512 }
15513 else
15514 {
15515 unsigned long i = ulongval ();
15516 if (i != ((long) (sizeof (void *))))
15517 exit (1);
15518 fprintf (f, "%lu\n", i);
15519 }
15520 exit (ferror (f) || fclose (f) != 0);
15521
15522 ;
15523 return 0;
15524}
15525_ACEOF
15526rm -f conftest$ac_exeext
15527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528 (eval $ac_link) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_cv_sizeof_void_p=`cat conftest.val`
15538else
15539 echo "$as_me: program exited with status $ac_status" >&5
15540echo "$as_me: failed program was:" >&5
15541sed 's/^/| /' conftest.$ac_ext >&5
15542
15543( exit $ac_status )
15544{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15545See \`config.log' for more details." >&5
15546echo "$as_me: error: cannot compute sizeof (void *), 77
15547See \`config.log' for more details." >&2;}
15548 { (exit 1); exit 1; }; }
15549fi
ac1cb8d3 15550rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15551fi
15552fi
15553rm -f conftest.val
15554else
15555 ac_cv_sizeof_void_p=0
15556fi
15557fi
15558echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15559echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15560cat >>confdefs.h <<_ACEOF
15561#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15562_ACEOF
15563
15564
15565echo "$as_me:$LINENO: checking for int" >&5
15566echo $ECHO_N "checking for int... $ECHO_C" >&6
15567if test "${ac_cv_type_int+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569else
15570 cat >conftest.$ac_ext <<_ACEOF
15571/* confdefs.h. */
15572_ACEOF
15573cat confdefs.h >>conftest.$ac_ext
15574cat >>conftest.$ac_ext <<_ACEOF
15575/* end confdefs.h. */
15576$ac_includes_default
15577int
15578main ()
15579{
15580if ((int *) 0)
15581 return 0;
15582if (sizeof (int))
15583 return 0;
15584 ;
15585 return 0;
15586}
15587_ACEOF
15588rm -f conftest.$ac_objext
15589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15590 (eval $ac_compile) 2>conftest.er1
a848cd7e 15591 ac_status=$?
ac1cb8d3
VS
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
a848cd7e
SC
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
ea7db9ff
DE
15597 { ac_try='test -z "$ac_c_werror_flag"
15598 || test ! -s conftest.err'
ac1cb8d3
VS
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_cv_type_int=yes
15611else
15612 echo "$as_me: failed program was:" >&5
15613sed 's/^/| /' conftest.$ac_ext >&5
15614
15615ac_cv_type_int=no
15616fi
ac1cb8d3 15617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15618fi
15619echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15620echo "${ECHO_T}$ac_cv_type_int" >&6
15621
15622echo "$as_me:$LINENO: checking size of int" >&5
15623echo $ECHO_N "checking size of int... $ECHO_C" >&6
15624if test "${ac_cv_sizeof_int+set}" = set; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626else
15627 if test "$ac_cv_type_int" = yes; then
15628 # The cast to unsigned long works around a bug in the HP C Compiler
15629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15631 # This bug is HP SR number 8606223364.
15632 if test "$cross_compiling" = yes; then
15633 # Depending upon the size, compute the lo and hi bounds.
15634cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */
15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
15640$ac_includes_default
15641int
15642main ()
15643{
15644static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15645test_array [0] = 0
15646
15647 ;
15648 return 0;
15649}
15650_ACEOF
15651rm -f conftest.$ac_objext
15652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15653 (eval $ac_compile) 2>conftest.er1
a848cd7e 15654 ac_status=$?
ac1cb8d3
VS
15655 grep -v '^ *+' conftest.er1 >conftest.err
15656 rm -f conftest.er1
15657 cat conftest.err >&5
a848cd7e
SC
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
ea7db9ff
DE
15660 { ac_try='test -z "$ac_c_werror_flag"
15661 || test ! -s conftest.err'
ac1cb8d3
VS
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; } &&
15667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 ac_lo=0 ac_mid=0
15674 while :; do
15675 cat >conftest.$ac_ext <<_ACEOF
15676/* confdefs.h. */
15677_ACEOF
15678cat confdefs.h >>conftest.$ac_ext
15679cat >>conftest.$ac_ext <<_ACEOF
15680/* end confdefs.h. */
15681$ac_includes_default
15682int
15683main ()
15684{
15685static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15686test_array [0] = 0
15687
15688 ;
15689 return 0;
15690}
15691_ACEOF
15692rm -f conftest.$ac_objext
15693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15694 (eval $ac_compile) 2>conftest.er1
a848cd7e 15695 ac_status=$?
ac1cb8d3
VS
15696 grep -v '^ *+' conftest.er1 >conftest.err
15697 rm -f conftest.er1
15698 cat conftest.err >&5
a848cd7e
SC
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
ea7db9ff
DE
15701 { ac_try='test -z "$ac_c_werror_flag"
15702 || test ! -s conftest.err'
ac1cb8d3
VS
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 ac_hi=$ac_mid; break
15715else
15716 echo "$as_me: failed program was:" >&5
15717sed 's/^/| /' conftest.$ac_ext >&5
15718
15719ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15720 if test $ac_lo -le $ac_mid; then
15721 ac_lo= ac_hi=
15722 break
15723 fi
15724 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15725fi
ac1cb8d3 15726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15727 done
15728else
15729 echo "$as_me: failed program was:" >&5
15730sed 's/^/| /' conftest.$ac_ext >&5
15731
15732cat >conftest.$ac_ext <<_ACEOF
15733/* confdefs.h. */
15734_ACEOF
15735cat confdefs.h >>conftest.$ac_ext
15736cat >>conftest.$ac_ext <<_ACEOF
15737/* end confdefs.h. */
15738$ac_includes_default
15739int
15740main ()
15741{
15742static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15743test_array [0] = 0
15744
15745 ;
15746 return 0;
15747}
15748_ACEOF
15749rm -f conftest.$ac_objext
15750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15751 (eval $ac_compile) 2>conftest.er1
a848cd7e 15752 ac_status=$?
ac1cb8d3
VS
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
a848cd7e
SC
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
ea7db9ff
DE
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
ac1cb8d3
VS
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 ac_hi=-1 ac_mid=-1
15772 while :; do
15773 cat >conftest.$ac_ext <<_ACEOF
15774/* confdefs.h. */
15775_ACEOF
15776cat confdefs.h >>conftest.$ac_ext
15777cat >>conftest.$ac_ext <<_ACEOF
15778/* end confdefs.h. */
15779$ac_includes_default
15780int
15781main ()
15782{
15783static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15784test_array [0] = 0
15785
15786 ;
15787 return 0;
15788}
15789_ACEOF
15790rm -f conftest.$ac_objext
15791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15792 (eval $ac_compile) 2>conftest.er1
a848cd7e 15793 ac_status=$?
ac1cb8d3
VS
15794 grep -v '^ *+' conftest.er1 >conftest.err
15795 rm -f conftest.er1
15796 cat conftest.err >&5
a848cd7e
SC
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } &&
ea7db9ff
DE
15799 { ac_try='test -z "$ac_c_werror_flag"
15800 || test ! -s conftest.err'
ac1cb8d3
VS
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; } &&
15806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; }; then
15812 ac_lo=$ac_mid; break
15813else
15814 echo "$as_me: failed program was:" >&5
15815sed 's/^/| /' conftest.$ac_ext >&5
15816
15817ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15818 if test $ac_mid -le $ac_hi; then
15819 ac_lo= ac_hi=
15820 break
15821 fi
15822 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15823fi
ac1cb8d3 15824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15825 done
15826else
15827 echo "$as_me: failed program was:" >&5
15828sed 's/^/| /' conftest.$ac_ext >&5
15829
15830ac_lo= ac_hi=
15831fi
ac1cb8d3 15832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15833fi
ac1cb8d3 15834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15835# Binary search between lo and hi bounds.
15836while test "x$ac_lo" != "x$ac_hi"; do
15837 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15838 cat >conftest.$ac_ext <<_ACEOF
15839/* confdefs.h. */
15840_ACEOF
15841cat confdefs.h >>conftest.$ac_ext
15842cat >>conftest.$ac_ext <<_ACEOF
15843/* end confdefs.h. */
15844$ac_includes_default
15845int
15846main ()
15847{
15848static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15849test_array [0] = 0
15850
15851 ;
15852 return 0;
15853}
15854_ACEOF
15855rm -f conftest.$ac_objext
15856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15857 (eval $ac_compile) 2>conftest.er1
a848cd7e 15858 ac_status=$?
ac1cb8d3
VS
15859 grep -v '^ *+' conftest.er1 >conftest.err
15860 rm -f conftest.er1
15861 cat conftest.err >&5
a848cd7e
SC
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
ea7db9ff
DE
15864 { ac_try='test -z "$ac_c_werror_flag"
15865 || test ! -s conftest.err'
ac1cb8d3
VS
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 ac_hi=$ac_mid
15878else
15879 echo "$as_me: failed program was:" >&5
15880sed 's/^/| /' conftest.$ac_ext >&5
15881
15882ac_lo=`expr '(' $ac_mid ')' + 1`
15883fi
ac1cb8d3 15884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15885done
15886case $ac_lo in
15887?*) ac_cv_sizeof_int=$ac_lo;;
15888'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15889See \`config.log' for more details." >&5
15890echo "$as_me: error: cannot compute sizeof (int), 77
15891See \`config.log' for more details." >&2;}
15892 { (exit 1); exit 1; }; } ;;
15893esac
15894else
15895 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15896 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15897See \`config.log' for more details." >&5
15898echo "$as_me: error: cannot run test program while cross compiling
15899See \`config.log' for more details." >&2;}
a848cd7e
SC
15900 { (exit 1); exit 1; }; }
15901else
15902 cat >conftest.$ac_ext <<_ACEOF
15903/* confdefs.h. */
15904_ACEOF
15905cat confdefs.h >>conftest.$ac_ext
15906cat >>conftest.$ac_ext <<_ACEOF
15907/* end confdefs.h. */
15908$ac_includes_default
15909long longval () { return (long) (sizeof (int)); }
15910unsigned long ulongval () { return (long) (sizeof (int)); }
15911#include <stdio.h>
15912#include <stdlib.h>
15913int
15914main ()
15915{
15916
15917 FILE *f = fopen ("conftest.val", "w");
15918 if (! f)
15919 exit (1);
15920 if (((long) (sizeof (int))) < 0)
15921 {
15922 long i = longval ();
15923 if (i != ((long) (sizeof (int))))
15924 exit (1);
15925 fprintf (f, "%ld\n", i);
15926 }
15927 else
15928 {
15929 unsigned long i = ulongval ();
15930 if (i != ((long) (sizeof (int))))
15931 exit (1);
15932 fprintf (f, "%lu\n", i);
15933 }
15934 exit (ferror (f) || fclose (f) != 0);
15935
15936 ;
15937 return 0;
15938}
15939_ACEOF
15940rm -f conftest$ac_exeext
15941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }; then
15951 ac_cv_sizeof_int=`cat conftest.val`
15952else
15953 echo "$as_me: program exited with status $ac_status" >&5
15954echo "$as_me: failed program was:" >&5
15955sed 's/^/| /' conftest.$ac_ext >&5
15956
15957( exit $ac_status )
15958{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15959See \`config.log' for more details." >&5
15960echo "$as_me: error: cannot compute sizeof (int), 77
15961See \`config.log' for more details." >&2;}
15962 { (exit 1); exit 1; }; }
15963fi
ac1cb8d3 15964rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15965fi
15966fi
15967rm -f conftest.val
15968else
15969 ac_cv_sizeof_int=0
15970fi
15971fi
15972echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15973echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15974cat >>confdefs.h <<_ACEOF
15975#define SIZEOF_INT $ac_cv_sizeof_int
15976_ACEOF
15977
15978
15979echo "$as_me:$LINENO: checking for long" >&5
15980echo $ECHO_N "checking for long... $ECHO_C" >&6
15981if test "${ac_cv_type_long+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15983else
15984 cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
15990$ac_includes_default
15991int
15992main ()
15993{
15994if ((long *) 0)
15995 return 0;
15996if (sizeof (long))
15997 return 0;
15998 ;
15999 return 0;
16000}
16001_ACEOF
16002rm -f conftest.$ac_objext
16003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16004 (eval $ac_compile) 2>conftest.er1
a848cd7e 16005 ac_status=$?
ac1cb8d3
VS
16006 grep -v '^ *+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
a848cd7e
SC
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } &&
ea7db9ff
DE
16011 { ac_try='test -z "$ac_c_werror_flag"
16012 || test ! -s conftest.err'
ac1cb8d3
VS
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_cv_type_long=yes
16025else
16026 echo "$as_me: failed program was:" >&5
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
16029ac_cv_type_long=no
16030fi
ac1cb8d3 16031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16032fi
16033echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16034echo "${ECHO_T}$ac_cv_type_long" >&6
16035
16036echo "$as_me:$LINENO: checking size of long" >&5
16037echo $ECHO_N "checking size of long... $ECHO_C" >&6
16038if test "${ac_cv_sizeof_long+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040else
16041 if test "$ac_cv_type_long" = yes; then
16042 # The cast to unsigned long works around a bug in the HP C Compiler
16043 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16044 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16045 # This bug is HP SR number 8606223364.
16046 if test "$cross_compiling" = yes; then
16047 # Depending upon the size, compute the lo and hi bounds.
16048cat >conftest.$ac_ext <<_ACEOF
16049/* confdefs.h. */
16050_ACEOF
16051cat confdefs.h >>conftest.$ac_ext
16052cat >>conftest.$ac_ext <<_ACEOF
16053/* end confdefs.h. */
16054$ac_includes_default
16055int
16056main ()
16057{
16058static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16059test_array [0] = 0
16060
16061 ;
16062 return 0;
16063}
16064_ACEOF
16065rm -f conftest.$ac_objext
16066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16067 (eval $ac_compile) 2>conftest.er1
a848cd7e 16068 ac_status=$?
ac1cb8d3
VS
16069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
a848cd7e
SC
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
ea7db9ff
DE
16074 { ac_try='test -z "$ac_c_werror_flag"
16075 || test ! -s conftest.err'
ac1cb8d3
VS
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 ac_lo=0 ac_mid=0
16088 while :; do
16089 cat >conftest.$ac_ext <<_ACEOF
16090/* confdefs.h. */
16091_ACEOF
16092cat confdefs.h >>conftest.$ac_ext
16093cat >>conftest.$ac_ext <<_ACEOF
16094/* end confdefs.h. */
16095$ac_includes_default
16096int
16097main ()
16098{
16099static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16100test_array [0] = 0
16101
16102 ;
16103 return 0;
16104}
16105_ACEOF
16106rm -f conftest.$ac_objext
16107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16108 (eval $ac_compile) 2>conftest.er1
a848cd7e 16109 ac_status=$?
ac1cb8d3
VS
16110 grep -v '^ *+' conftest.er1 >conftest.err
16111 rm -f conftest.er1
16112 cat conftest.err >&5
a848cd7e
SC
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
ea7db9ff
DE
16115 { ac_try='test -z "$ac_c_werror_flag"
16116 || test ! -s conftest.err'
ac1cb8d3
VS
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_hi=$ac_mid; break
16129else
16130 echo "$as_me: failed program was:" >&5
16131sed 's/^/| /' conftest.$ac_ext >&5
16132
16133ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16134 if test $ac_lo -le $ac_mid; then
16135 ac_lo= ac_hi=
16136 break
16137 fi
16138 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16139fi
ac1cb8d3 16140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16141 done
16142else
16143 echo "$as_me: failed program was:" >&5
16144sed 's/^/| /' conftest.$ac_ext >&5
16145
16146cat >conftest.$ac_ext <<_ACEOF
16147/* confdefs.h. */
16148_ACEOF
16149cat confdefs.h >>conftest.$ac_ext
16150cat >>conftest.$ac_ext <<_ACEOF
16151/* end confdefs.h. */
16152$ac_includes_default
16153int
16154main ()
16155{
16156static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16157test_array [0] = 0
16158
16159 ;
16160 return 0;
16161}
16162_ACEOF
16163rm -f conftest.$ac_objext
16164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16165 (eval $ac_compile) 2>conftest.er1
a848cd7e 16166 ac_status=$?
ac1cb8d3
VS
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
a848cd7e
SC
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
ea7db9ff
DE
16172 { ac_try='test -z "$ac_c_werror_flag"
16173 || test ! -s conftest.err'
ac1cb8d3
VS
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; } &&
16179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_hi=-1 ac_mid=-1
16186 while :; do
16187 cat >conftest.$ac_ext <<_ACEOF
16188/* confdefs.h. */
16189_ACEOF
16190cat confdefs.h >>conftest.$ac_ext
16191cat >>conftest.$ac_ext <<_ACEOF
16192/* end confdefs.h. */
16193$ac_includes_default
16194int
16195main ()
16196{
16197static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16198test_array [0] = 0
16199
16200 ;
16201 return 0;
16202}
16203_ACEOF
16204rm -f conftest.$ac_objext
16205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16206 (eval $ac_compile) 2>conftest.er1
a848cd7e 16207 ac_status=$?
ac1cb8d3
VS
16208 grep -v '^ *+' conftest.er1 >conftest.err
16209 rm -f conftest.er1
16210 cat conftest.err >&5
a848cd7e
SC
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
ea7db9ff
DE
16213 { ac_try='test -z "$ac_c_werror_flag"
16214 || test ! -s conftest.err'
ac1cb8d3
VS
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } &&
16220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
16223 ac_status=$?
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_lo=$ac_mid; break
16227else
16228 echo "$as_me: failed program was:" >&5
16229sed 's/^/| /' conftest.$ac_ext >&5
16230
16231ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16232 if test $ac_mid -le $ac_hi; then
16233 ac_lo= ac_hi=
16234 break
16235 fi
16236 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16237fi
ac1cb8d3 16238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16239 done
16240else
16241 echo "$as_me: failed program was:" >&5
16242sed 's/^/| /' conftest.$ac_ext >&5
16243
16244ac_lo= ac_hi=
16245fi
ac1cb8d3 16246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16247fi
ac1cb8d3 16248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16249# Binary search between lo and hi bounds.
16250while test "x$ac_lo" != "x$ac_hi"; do
16251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16252 cat >conftest.$ac_ext <<_ACEOF
16253/* confdefs.h. */
16254_ACEOF
16255cat confdefs.h >>conftest.$ac_ext
16256cat >>conftest.$ac_ext <<_ACEOF
16257/* end confdefs.h. */
16258$ac_includes_default
16259int
16260main ()
16261{
16262static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16263test_array [0] = 0
16264
16265 ;
16266 return 0;
16267}
16268_ACEOF
16269rm -f conftest.$ac_objext
16270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16271 (eval $ac_compile) 2>conftest.er1
a848cd7e 16272 ac_status=$?
ac1cb8d3
VS
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
a848cd7e
SC
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
ea7db9ff
DE
16278 { ac_try='test -z "$ac_c_werror_flag"
16279 || test ! -s conftest.err'
ac1cb8d3
VS
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } &&
16285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 ac_hi=$ac_mid
16292else
16293 echo "$as_me: failed program was:" >&5
16294sed 's/^/| /' conftest.$ac_ext >&5
16295
16296ac_lo=`expr '(' $ac_mid ')' + 1`
16297fi
ac1cb8d3 16298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16299done
16300case $ac_lo in
16301?*) ac_cv_sizeof_long=$ac_lo;;
16302'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16303See \`config.log' for more details." >&5
16304echo "$as_me: error: cannot compute sizeof (long), 77
16305See \`config.log' for more details." >&2;}
16306 { (exit 1); exit 1; }; } ;;
16307esac
16308else
16309 if test "$cross_compiling" = yes; then
ea7db9ff
DE
16310 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16311See \`config.log' for more details." >&5
16312echo "$as_me: error: cannot run test program while cross compiling
16313See \`config.log' for more details." >&2;}
a848cd7e
SC
16314 { (exit 1); exit 1; }; }
16315else
16316 cat >conftest.$ac_ext <<_ACEOF
16317/* confdefs.h. */
16318_ACEOF
16319cat confdefs.h >>conftest.$ac_ext
16320cat >>conftest.$ac_ext <<_ACEOF
16321/* end confdefs.h. */
16322$ac_includes_default
16323long longval () { return (long) (sizeof (long)); }
16324unsigned long ulongval () { return (long) (sizeof (long)); }
16325#include <stdio.h>
16326#include <stdlib.h>
16327int
16328main ()
16329{
16330
16331 FILE *f = fopen ("conftest.val", "w");
16332 if (! f)
16333 exit (1);
16334 if (((long) (sizeof (long))) < 0)
16335 {
16336 long i = longval ();
16337 if (i != ((long) (sizeof (long))))
16338 exit (1);
16339 fprintf (f, "%ld\n", i);
16340 }
16341 else
16342 {
16343 unsigned long i = ulongval ();
16344 if (i != ((long) (sizeof (long))))
16345 exit (1);
16346 fprintf (f, "%lu\n", i);
16347 }
16348 exit (ferror (f) || fclose (f) != 0);
16349
16350 ;
16351 return 0;
16352}
16353_ACEOF
16354rm -f conftest$ac_exeext
16355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16356 (eval $ac_link) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 ac_cv_sizeof_long=`cat conftest.val`
16366else
16367 echo "$as_me: program exited with status $ac_status" >&5
16368echo "$as_me: failed program was:" >&5
16369sed 's/^/| /' conftest.$ac_ext >&5
16370
16371( exit $ac_status )
16372{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16373See \`config.log' for more details." >&5
16374echo "$as_me: error: cannot compute sizeof (long), 77
16375See \`config.log' for more details." >&2;}
16376 { (exit 1); exit 1; }; }
16377fi
ac1cb8d3 16378rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16379fi
16380fi
16381rm -f conftest.val
16382else
16383 ac_cv_sizeof_long=0
16384fi
16385fi
16386echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16387echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16388cat >>confdefs.h <<_ACEOF
16389#define SIZEOF_LONG $ac_cv_sizeof_long
16390_ACEOF
16391
16392
16393echo "$as_me:$LINENO: checking for size_t" >&5
16394echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16395if test "${ac_cv_type_size_t+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16397else
16398 cat >conftest.$ac_ext <<_ACEOF
16399/* confdefs.h. */
16400_ACEOF
16401cat confdefs.h >>conftest.$ac_ext
16402cat >>conftest.$ac_ext <<_ACEOF
16403/* end confdefs.h. */
16404$ac_includes_default
16405int
16406main ()
16407{
16408if ((size_t *) 0)
16409 return 0;
16410if (sizeof (size_t))
16411 return 0;
16412 ;
16413 return 0;
16414}
16415_ACEOF
16416rm -f conftest.$ac_objext
16417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16418 (eval $ac_compile) 2>conftest.er1
a848cd7e 16419 ac_status=$?
ac1cb8d3
VS
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
a848cd7e
SC
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
ea7db9ff
DE
16425 { ac_try='test -z "$ac_c_werror_flag"
16426 || test ! -s conftest.err'
ac1cb8d3
VS
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_type_size_t=yes
16439else
16440 echo "$as_me: failed program was:" >&5
16441sed 's/^/| /' conftest.$ac_ext >&5
16442
16443ac_cv_type_size_t=no
16444fi
ac1cb8d3 16445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16446fi
16447echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16448echo "${ECHO_T}$ac_cv_type_size_t" >&6
16449
16450echo "$as_me:$LINENO: checking size of size_t" >&5
16451echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16452if test "${ac_cv_sizeof_size_t+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16454else
16455 if test "$ac_cv_type_size_t" = yes; then
16456 # The cast to unsigned long works around a bug in the HP C Compiler
16457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16459 # This bug is HP SR number 8606223364.
16460 if test "$cross_compiling" = yes; then
16461 # Depending upon the size, compute the lo and hi bounds.
16462cat >conftest.$ac_ext <<_ACEOF
16463/* confdefs.h. */
16464_ACEOF
16465cat confdefs.h >>conftest.$ac_ext
16466cat >>conftest.$ac_ext <<_ACEOF
16467/* end confdefs.h. */
16468$ac_includes_default
16469int
16470main ()
16471{
16472static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16473test_array [0] = 0
16474
16475 ;
16476 return 0;
16477}
16478_ACEOF
16479rm -f conftest.$ac_objext
16480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16481 (eval $ac_compile) 2>conftest.er1
a848cd7e 16482 ac_status=$?
ac1cb8d3
VS
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
a848cd7e
SC
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
ea7db9ff
DE
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
ac1cb8d3
VS
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_lo=0 ac_mid=0
16502 while :; do
16503 cat >conftest.$ac_ext <<_ACEOF
16504/* confdefs.h. */
16505_ACEOF
16506cat confdefs.h >>conftest.$ac_ext
16507cat >>conftest.$ac_ext <<_ACEOF
16508/* end confdefs.h. */
16509$ac_includes_default
16510int
16511main ()
16512{
16513static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16514test_array [0] = 0
16515
16516 ;
16517 return 0;
16518}
16519_ACEOF
16520rm -f conftest.$ac_objext
16521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16522 (eval $ac_compile) 2>conftest.er1
a848cd7e 16523 ac_status=$?
ac1cb8d3
VS
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
a848cd7e
SC
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
ea7db9ff
DE
16529 { ac_try='test -z "$ac_c_werror_flag"
16530 || test ! -s conftest.err'
ac1cb8d3
VS
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_hi=$ac_mid; break
16543else
16544 echo "$as_me: failed program was:" >&5
16545sed 's/^/| /' conftest.$ac_ext >&5
16546
16547ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16548 if test $ac_lo -le $ac_mid; then
16549 ac_lo= ac_hi=
16550 break
16551 fi
16552 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16553fi
ac1cb8d3 16554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16555 done
16556else
16557 echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
16559
16560cat >conftest.$ac_ext <<_ACEOF
16561/* confdefs.h. */
16562_ACEOF
16563cat confdefs.h >>conftest.$ac_ext
16564cat >>conftest.$ac_ext <<_ACEOF
16565/* end confdefs.h. */
16566$ac_includes_default
16567int
16568main ()
16569{
16570static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16571test_array [0] = 0
16572
16573 ;
16574 return 0;
16575}
16576_ACEOF
16577rm -f conftest.$ac_objext
16578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16579 (eval $ac_compile) 2>conftest.er1
a848cd7e 16580 ac_status=$?
ac1cb8d3
VS
16581 grep -v '^ *+' conftest.er1 >conftest.err
16582 rm -f conftest.er1
16583 cat conftest.err >&5
a848cd7e
SC
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } &&
ea7db9ff
DE
16586 { ac_try='test -z "$ac_c_werror_flag"
16587 || test ! -s conftest.err'
ac1cb8d3
VS
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; } &&
16593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_hi=-1 ac_mid=-1
16600 while :; do
16601 cat >conftest.$ac_ext <<_ACEOF
16602/* confdefs.h. */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h. */
16607$ac_includes_default
16608int
16609main ()
16610{
16611static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16612test_array [0] = 0
16613
16614 ;
16615 return 0;
16616}
16617_ACEOF
16618rm -f conftest.$ac_objext
16619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16620 (eval $ac_compile) 2>conftest.er1
a848cd7e 16621 ac_status=$?
ac1cb8d3
VS
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
a848cd7e
SC
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } &&
ea7db9ff
DE
16627 { ac_try='test -z "$ac_c_werror_flag"
16628 || test ! -s conftest.err'
ac1cb8d3
VS
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_lo=$ac_mid; break
16641else
16642 echo "$as_me: failed program was:" >&5
16643sed 's/^/| /' conftest.$ac_ext >&5
16644
16645ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16646 if test $ac_mid -le $ac_hi; then
16647 ac_lo= ac_hi=
16648 break
16649 fi
16650 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16651fi
ac1cb8d3 16652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16653 done
16654else
16655 echo "$as_me: failed program was:" >&5
16656sed 's/^/| /' conftest.$ac_ext >&5
16657
16658ac_lo= ac_hi=
16659fi
ac1cb8d3 16660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16661fi
ac1cb8d3 16662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16663# Binary search between lo and hi bounds.
16664while test "x$ac_lo" != "x$ac_hi"; do
16665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16666 cat >conftest.$ac_ext <<_ACEOF
16667/* confdefs.h. */
16668_ACEOF
16669cat confdefs.h >>conftest.$ac_ext
16670cat >>conftest.$ac_ext <<_ACEOF
16671/* end confdefs.h. */
16672$ac_includes_default
16673int
16674main ()
16675{
16676static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16677test_array [0] = 0
16678
16679 ;
16680 return 0;
16681}
16682_ACEOF
16683rm -f conftest.$ac_objext
16684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16685 (eval $ac_compile) 2>conftest.er1
a848cd7e 16686 ac_status=$?
ac1cb8d3
VS
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
a848cd7e
SC
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
ea7db9ff
DE
16692 { ac_try='test -z "$ac_c_werror_flag"
16693 || test ! -s conftest.err'
ac1cb8d3
VS
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } &&
16699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_hi=$ac_mid
16706else
16707 echo "$as_me: failed program was:" >&5
16708sed 's/^/| /' conftest.$ac_ext >&5
16709
16710ac_lo=`expr '(' $ac_mid ')' + 1`
16711fi
ac1cb8d3 16712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16713done
16714case $ac_lo in
16715?*) ac_cv_sizeof_size_t=$ac_lo;;
16716'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16717See \`config.log' for more details." >&5
16718echo "$as_me: error: cannot compute sizeof (size_t), 77
16719See \`config.log' for more details." >&2;}
16720 { (exit 1); exit 1; }; } ;;
16721esac
16722else
16723 if test "$cross_compiling" = yes; then
ea7db9ff
DE
16724 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16725See \`config.log' for more details." >&5
16726echo "$as_me: error: cannot run test program while cross compiling
16727See \`config.log' for more details." >&2;}
a848cd7e
SC
16728 { (exit 1); exit 1; }; }
16729else
16730 cat >conftest.$ac_ext <<_ACEOF
16731/* confdefs.h. */
16732_ACEOF
16733cat confdefs.h >>conftest.$ac_ext
16734cat >>conftest.$ac_ext <<_ACEOF
16735/* end confdefs.h. */
16736$ac_includes_default
16737long longval () { return (long) (sizeof (size_t)); }
16738unsigned long ulongval () { return (long) (sizeof (size_t)); }
16739#include <stdio.h>
16740#include <stdlib.h>
16741int
16742main ()
16743{
16744
16745 FILE *f = fopen ("conftest.val", "w");
16746 if (! f)
16747 exit (1);
16748 if (((long) (sizeof (size_t))) < 0)
16749 {
16750 long i = longval ();
16751 if (i != ((long) (sizeof (size_t))))
16752 exit (1);
16753 fprintf (f, "%ld\n", i);
16754 }
16755 else
16756 {
16757 unsigned long i = ulongval ();
16758 if (i != ((long) (sizeof (size_t))))
16759 exit (1);
16760 fprintf (f, "%lu\n", i);
16761 }
16762 exit (ferror (f) || fclose (f) != 0);
16763
16764 ;
16765 return 0;
16766}
16767_ACEOF
16768rm -f conftest$ac_exeext
16769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16770 (eval $ac_link) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_cv_sizeof_size_t=`cat conftest.val`
16780else
16781 echo "$as_me: program exited with status $ac_status" >&5
16782echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
16784
16785( exit $ac_status )
16786{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16787See \`config.log' for more details." >&5
16788echo "$as_me: error: cannot compute sizeof (size_t), 77
16789See \`config.log' for more details." >&2;}
16790 { (exit 1); exit 1; }; }
16791fi
ac1cb8d3 16792rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16793fi
16794fi
16795rm -f conftest.val
16796else
16797 ac_cv_sizeof_size_t=0
16798fi
16799fi
16800echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16801echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16802cat >>confdefs.h <<_ACEOF
16803#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16804_ACEOF
16805
16806
16807
16808case "${host}" in
16809 arm-*-linux* )
16810 echo "$as_me:$LINENO: checking for long long" >&5
16811echo $ECHO_N "checking for long long... $ECHO_C" >&6
16812if test "${ac_cv_type_long_long+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16814else
16815 cat >conftest.$ac_ext <<_ACEOF
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821$ac_includes_default
16822int
16823main ()
16824{
16825if ((long long *) 0)
16826 return 0;
16827if (sizeof (long long))
16828 return 0;
16829 ;
16830 return 0;
16831}
16832_ACEOF
16833rm -f conftest.$ac_objext
16834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16835 (eval $ac_compile) 2>conftest.er1
a848cd7e 16836 ac_status=$?
ac1cb8d3
VS
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
a848cd7e
SC
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
ea7db9ff
DE
16842 { ac_try='test -z "$ac_c_werror_flag"
16843 || test ! -s conftest.err'
ac1cb8d3
VS
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_cv_type_long_long=yes
16856else
16857 echo "$as_me: failed program was:" >&5
16858sed 's/^/| /' conftest.$ac_ext >&5
16859
16860ac_cv_type_long_long=no
16861fi
ac1cb8d3 16862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16863fi
16864echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16865echo "${ECHO_T}$ac_cv_type_long_long" >&6
16866
16867echo "$as_me:$LINENO: checking size of long long" >&5
16868echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16869if test "${ac_cv_sizeof_long_long+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16871else
16872 if test "$ac_cv_type_long_long" = yes; then
16873 # The cast to unsigned long works around a bug in the HP C Compiler
16874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16876 # This bug is HP SR number 8606223364.
16877 if test "$cross_compiling" = yes; then
16878 # Depending upon the size, compute the lo and hi bounds.
16879cat >conftest.$ac_ext <<_ACEOF
16880/* confdefs.h. */
16881_ACEOF
16882cat confdefs.h >>conftest.$ac_ext
16883cat >>conftest.$ac_ext <<_ACEOF
16884/* end confdefs.h. */
16885$ac_includes_default
16886int
16887main ()
16888{
16889static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16890test_array [0] = 0
16891
16892 ;
16893 return 0;
16894}
16895_ACEOF
16896rm -f conftest.$ac_objext
16897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16898 (eval $ac_compile) 2>conftest.er1
a848cd7e 16899 ac_status=$?
ac1cb8d3
VS
16900 grep -v '^ *+' conftest.er1 >conftest.err
16901 rm -f conftest.er1
16902 cat conftest.err >&5
a848cd7e
SC
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
ea7db9ff
DE
16905 { ac_try='test -z "$ac_c_werror_flag"
16906 || test ! -s conftest.err'
ac1cb8d3
VS
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 ac_lo=0 ac_mid=0
16919 while :; do
16920 cat >conftest.$ac_ext <<_ACEOF
16921/* confdefs.h. */
16922_ACEOF
16923cat confdefs.h >>conftest.$ac_ext
16924cat >>conftest.$ac_ext <<_ACEOF
16925/* end confdefs.h. */
16926$ac_includes_default
16927int
16928main ()
16929{
16930static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16931test_array [0] = 0
16932
16933 ;
16934 return 0;
16935}
16936_ACEOF
16937rm -f conftest.$ac_objext
16938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16939 (eval $ac_compile) 2>conftest.er1
a848cd7e 16940 ac_status=$?
ac1cb8d3
VS
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
a848cd7e
SC
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
ea7db9ff
DE
16946 { ac_try='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
ac1cb8d3
VS
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_hi=$ac_mid; break
16960else
16961 echo "$as_me: failed program was:" >&5
16962sed 's/^/| /' conftest.$ac_ext >&5
16963
16964ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16965 if test $ac_lo -le $ac_mid; then
16966 ac_lo= ac_hi=
16967 break
16968 fi
16969 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16970fi
ac1cb8d3 16971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16972 done
16973else
16974 echo "$as_me: failed program was:" >&5
16975sed 's/^/| /' conftest.$ac_ext >&5
16976
16977cat >conftest.$ac_ext <<_ACEOF
16978/* confdefs.h. */
16979_ACEOF
16980cat confdefs.h >>conftest.$ac_ext
16981cat >>conftest.$ac_ext <<_ACEOF
16982/* end confdefs.h. */
16983$ac_includes_default
16984int
16985main ()
16986{
16987static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16988test_array [0] = 0
16989
16990 ;
16991 return 0;
16992}
16993_ACEOF
16994rm -f conftest.$ac_objext
16995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16996 (eval $ac_compile) 2>conftest.er1
a848cd7e 16997 ac_status=$?
ac1cb8d3
VS
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
a848cd7e
SC
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } &&
ea7db9ff
DE
17003 { ac_try='test -z "$ac_c_werror_flag"
17004 || test ! -s conftest.err'
ac1cb8d3
VS
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 ac_hi=-1 ac_mid=-1
17017 while :; do
17018 cat >conftest.$ac_ext <<_ACEOF
17019/* confdefs.h. */
17020_ACEOF
17021cat confdefs.h >>conftest.$ac_ext
17022cat >>conftest.$ac_ext <<_ACEOF
17023/* end confdefs.h. */
17024$ac_includes_default
17025int
17026main ()
17027{
17028static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17029test_array [0] = 0
17030
17031 ;
17032 return 0;
17033}
17034_ACEOF
17035rm -f conftest.$ac_objext
17036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17037 (eval $ac_compile) 2>conftest.er1
a848cd7e 17038 ac_status=$?
ac1cb8d3
VS
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
a848cd7e
SC
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
ea7db9ff
DE
17044 { ac_try='test -z "$ac_c_werror_flag"
17045 || test ! -s conftest.err'
ac1cb8d3
VS
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 ac_lo=$ac_mid; break
17058else
17059 echo "$as_me: failed program was:" >&5
17060sed 's/^/| /' conftest.$ac_ext >&5
17061
17062ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17063 if test $ac_mid -le $ac_hi; then
17064 ac_lo= ac_hi=
17065 break
17066 fi
17067 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17068fi
ac1cb8d3 17069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17070 done
17071else
17072 echo "$as_me: failed program was:" >&5
17073sed 's/^/| /' conftest.$ac_ext >&5
17074
17075ac_lo= ac_hi=
17076fi
ac1cb8d3 17077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17078fi
ac1cb8d3 17079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17080# Binary search between lo and hi bounds.
17081while test "x$ac_lo" != "x$ac_hi"; do
17082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17083 cat >conftest.$ac_ext <<_ACEOF
17084/* confdefs.h. */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h. */
17089$ac_includes_default
17090int
17091main ()
17092{
17093static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17094test_array [0] = 0
17095
17096 ;
17097 return 0;
17098}
17099_ACEOF
17100rm -f conftest.$ac_objext
17101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17102 (eval $ac_compile) 2>conftest.er1
a848cd7e 17103 ac_status=$?
ac1cb8d3
VS
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
a848cd7e
SC
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } &&
ea7db9ff
DE
17109 { ac_try='test -z "$ac_c_werror_flag"
17110 || test ! -s conftest.err'
ac1cb8d3
VS
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; } &&
17116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17122 ac_hi=$ac_mid
17123else
17124 echo "$as_me: failed program was:" >&5
17125sed 's/^/| /' conftest.$ac_ext >&5
17126
17127ac_lo=`expr '(' $ac_mid ')' + 1`
17128fi
ac1cb8d3 17129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17130done
17131case $ac_lo in
17132?*) ac_cv_sizeof_long_long=$ac_lo;;
17133'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17134See \`config.log' for more details." >&5
17135echo "$as_me: error: cannot compute sizeof (long long), 77
17136See \`config.log' for more details." >&2;}
17137 { (exit 1); exit 1; }; } ;;
17138esac
17139else
17140 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17142See \`config.log' for more details." >&5
17143echo "$as_me: error: cannot run test program while cross compiling
17144See \`config.log' for more details." >&2;}
a848cd7e
SC
17145 { (exit 1); exit 1; }; }
17146else
17147 cat >conftest.$ac_ext <<_ACEOF
17148/* confdefs.h. */
17149_ACEOF
17150cat confdefs.h >>conftest.$ac_ext
17151cat >>conftest.$ac_ext <<_ACEOF
17152/* end confdefs.h. */
17153$ac_includes_default
17154long longval () { return (long) (sizeof (long long)); }
17155unsigned long ulongval () { return (long) (sizeof (long long)); }
17156#include <stdio.h>
17157#include <stdlib.h>
17158int
17159main ()
17160{
17161
17162 FILE *f = fopen ("conftest.val", "w");
17163 if (! f)
17164 exit (1);
17165 if (((long) (sizeof (long long))) < 0)
17166 {
17167 long i = longval ();
17168 if (i != ((long) (sizeof (long long))))
17169 exit (1);
17170 fprintf (f, "%ld\n", i);
17171 }
17172 else
17173 {
17174 unsigned long i = ulongval ();
17175 if (i != ((long) (sizeof (long long))))
17176 exit (1);
17177 fprintf (f, "%lu\n", i);
17178 }
17179 exit (ferror (f) || fclose (f) != 0);
17180
17181 ;
17182 return 0;
17183}
17184_ACEOF
17185rm -f conftest$ac_exeext
17186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_cv_sizeof_long_long=`cat conftest.val`
17197else
17198 echo "$as_me: program exited with status $ac_status" >&5
17199echo "$as_me: failed program was:" >&5
17200sed 's/^/| /' conftest.$ac_ext >&5
17201
17202( exit $ac_status )
17203{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17204See \`config.log' for more details." >&5
17205echo "$as_me: error: cannot compute sizeof (long long), 77
17206See \`config.log' for more details." >&2;}
17207 { (exit 1); exit 1; }; }
17208fi
ac1cb8d3 17209rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17210fi
17211fi
17212rm -f conftest.val
17213else
17214 ac_cv_sizeof_long_long=0
17215fi
17216fi
17217echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17218echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17219cat >>confdefs.h <<_ACEOF
17220#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17221_ACEOF
17222
17223
17224 ;;
17225 *-hp-hpux* )
17226 echo "$as_me:$LINENO: checking for long long" >&5
17227echo $ECHO_N "checking for long long... $ECHO_C" >&6
17228if test "${ac_cv_type_long_long+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230else
17231 cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
17237$ac_includes_default
17238int
17239main ()
17240{
17241if ((long long *) 0)
17242 return 0;
17243if (sizeof (long long))
17244 return 0;
17245 ;
17246 return 0;
17247}
17248_ACEOF
17249rm -f conftest.$ac_objext
17250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17251 (eval $ac_compile) 2>conftest.er1
a848cd7e 17252 ac_status=$?
ac1cb8d3
VS
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
a848cd7e
SC
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
ea7db9ff
DE
17258 { ac_try='test -z "$ac_c_werror_flag"
17259 || test ! -s conftest.err'
ac1cb8d3
VS
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_type_long_long=yes
17272else
17273 echo "$as_me: failed program was:" >&5
17274sed 's/^/| /' conftest.$ac_ext >&5
17275
17276ac_cv_type_long_long=no
17277fi
ac1cb8d3 17278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17279fi
17280echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17281echo "${ECHO_T}$ac_cv_type_long_long" >&6
17282
17283echo "$as_me:$LINENO: checking size of long long" >&5
17284echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17285if test "${ac_cv_sizeof_long_long+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287else
17288 if test "$ac_cv_type_long_long" = yes; then
17289 # The cast to unsigned long works around a bug in the HP C Compiler
17290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17292 # This bug is HP SR number 8606223364.
17293 if test "$cross_compiling" = yes; then
17294 # Depending upon the size, compute the lo and hi bounds.
17295cat >conftest.$ac_ext <<_ACEOF
17296/* confdefs.h. */
17297_ACEOF
17298cat confdefs.h >>conftest.$ac_ext
17299cat >>conftest.$ac_ext <<_ACEOF
17300/* end confdefs.h. */
17301$ac_includes_default
17302int
17303main ()
17304{
17305static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17306test_array [0] = 0
17307
17308 ;
17309 return 0;
17310}
17311_ACEOF
17312rm -f conftest.$ac_objext
17313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17314 (eval $ac_compile) 2>conftest.er1
a848cd7e 17315 ac_status=$?
ac1cb8d3
VS
17316 grep -v '^ *+' conftest.er1 >conftest.err
17317 rm -f conftest.er1
17318 cat conftest.err >&5
a848cd7e
SC
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
ea7db9ff
DE
17321 { ac_try='test -z "$ac_c_werror_flag"
17322 || test ! -s conftest.err'
ac1cb8d3
VS
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } &&
17328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
17334 ac_lo=0 ac_mid=0
17335 while :; do
17336 cat >conftest.$ac_ext <<_ACEOF
17337/* confdefs.h. */
17338_ACEOF
17339cat confdefs.h >>conftest.$ac_ext
17340cat >>conftest.$ac_ext <<_ACEOF
17341/* end confdefs.h. */
17342$ac_includes_default
17343int
17344main ()
17345{
17346static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17347test_array [0] = 0
17348
17349 ;
17350 return 0;
17351}
17352_ACEOF
17353rm -f conftest.$ac_objext
17354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17355 (eval $ac_compile) 2>conftest.er1
a848cd7e 17356 ac_status=$?
ac1cb8d3
VS
17357 grep -v '^ *+' conftest.er1 >conftest.err
17358 rm -f conftest.er1
17359 cat conftest.err >&5
a848cd7e
SC
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
ea7db9ff
DE
17362 { ac_try='test -z "$ac_c_werror_flag"
17363 || test ! -s conftest.err'
ac1cb8d3
VS
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; } &&
17369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 ac_hi=$ac_mid; break
17376else
17377 echo "$as_me: failed program was:" >&5
17378sed 's/^/| /' conftest.$ac_ext >&5
17379
17380ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17381 if test $ac_lo -le $ac_mid; then
17382 ac_lo= ac_hi=
17383 break
17384 fi
17385 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17386fi
ac1cb8d3 17387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17388 done
17389else
17390 echo "$as_me: failed program was:" >&5
17391sed 's/^/| /' conftest.$ac_ext >&5
17392
17393cat >conftest.$ac_ext <<_ACEOF
17394/* confdefs.h. */
17395_ACEOF
17396cat confdefs.h >>conftest.$ac_ext
17397cat >>conftest.$ac_ext <<_ACEOF
17398/* end confdefs.h. */
17399$ac_includes_default
17400int
17401main ()
17402{
17403static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17404test_array [0] = 0
17405
17406 ;
17407 return 0;
17408}
17409_ACEOF
17410rm -f conftest.$ac_objext
17411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17412 (eval $ac_compile) 2>conftest.er1
a848cd7e 17413 ac_status=$?
ac1cb8d3
VS
17414 grep -v '^ *+' conftest.er1 >conftest.err
17415 rm -f conftest.er1
17416 cat conftest.err >&5
a848cd7e
SC
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
ea7db9ff
DE
17419 { ac_try='test -z "$ac_c_werror_flag"
17420 || test ! -s conftest.err'
ac1cb8d3
VS
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 ac_hi=-1 ac_mid=-1
17433 while :; do
17434 cat >conftest.$ac_ext <<_ACEOF
17435/* confdefs.h. */
17436_ACEOF
17437cat confdefs.h >>conftest.$ac_ext
17438cat >>conftest.$ac_ext <<_ACEOF
17439/* end confdefs.h. */
17440$ac_includes_default
17441int
17442main ()
17443{
17444static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17445test_array [0] = 0
17446
17447 ;
17448 return 0;
17449}
17450_ACEOF
17451rm -f conftest.$ac_objext
17452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17453 (eval $ac_compile) 2>conftest.er1
a848cd7e 17454 ac_status=$?
ac1cb8d3
VS
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
a848cd7e
SC
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
ea7db9ff
DE
17460 { ac_try='test -z "$ac_c_werror_flag"
17461 || test ! -s conftest.err'
ac1cb8d3
VS
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; } &&
17467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
17473 ac_lo=$ac_mid; break
17474else
17475 echo "$as_me: failed program was:" >&5
17476sed 's/^/| /' conftest.$ac_ext >&5
17477
17478ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17479 if test $ac_mid -le $ac_hi; then
17480 ac_lo= ac_hi=
17481 break
17482 fi
17483 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17484fi
ac1cb8d3 17485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17486 done
17487else
17488 echo "$as_me: failed program was:" >&5
17489sed 's/^/| /' conftest.$ac_ext >&5
17490
17491ac_lo= ac_hi=
17492fi
ac1cb8d3 17493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17494fi
ac1cb8d3 17495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17496# Binary search between lo and hi bounds.
17497while test "x$ac_lo" != "x$ac_hi"; do
17498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17499 cat >conftest.$ac_ext <<_ACEOF
17500/* confdefs.h. */
17501_ACEOF
17502cat confdefs.h >>conftest.$ac_ext
17503cat >>conftest.$ac_ext <<_ACEOF
17504/* end confdefs.h. */
17505$ac_includes_default
17506int
17507main ()
17508{
17509static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17510test_array [0] = 0
17511
17512 ;
17513 return 0;
17514}
17515_ACEOF
17516rm -f conftest.$ac_objext
17517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17518 (eval $ac_compile) 2>conftest.er1
a848cd7e 17519 ac_status=$?
ac1cb8d3
VS
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
a848cd7e
SC
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
ea7db9ff
DE
17525 { ac_try='test -z "$ac_c_werror_flag"
17526 || test ! -s conftest.err'
ac1cb8d3
VS
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_hi=$ac_mid
17539else
17540 echo "$as_me: failed program was:" >&5
17541sed 's/^/| /' conftest.$ac_ext >&5
17542
17543ac_lo=`expr '(' $ac_mid ')' + 1`
17544fi
ac1cb8d3 17545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17546done
17547case $ac_lo in
17548?*) ac_cv_sizeof_long_long=$ac_lo;;
17549'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17550See \`config.log' for more details." >&5
17551echo "$as_me: error: cannot compute sizeof (long long), 77
17552See \`config.log' for more details." >&2;}
17553 { (exit 1); exit 1; }; } ;;
17554esac
17555else
17556 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17557 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17558See \`config.log' for more details." >&5
17559echo "$as_me: error: cannot run test program while cross compiling
17560See \`config.log' for more details." >&2;}
a848cd7e
SC
17561 { (exit 1); exit 1; }; }
17562else
17563 cat >conftest.$ac_ext <<_ACEOF
17564/* confdefs.h. */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h. */
17569$ac_includes_default
17570long longval () { return (long) (sizeof (long long)); }
17571unsigned long ulongval () { return (long) (sizeof (long long)); }
17572#include <stdio.h>
17573#include <stdlib.h>
17574int
17575main ()
17576{
17577
17578 FILE *f = fopen ("conftest.val", "w");
17579 if (! f)
17580 exit (1);
17581 if (((long) (sizeof (long long))) < 0)
17582 {
17583 long i = longval ();
17584 if (i != ((long) (sizeof (long long))))
17585 exit (1);
17586 fprintf (f, "%ld\n", i);
17587 }
17588 else
17589 {
17590 unsigned long i = ulongval ();
17591 if (i != ((long) (sizeof (long long))))
17592 exit (1);
17593 fprintf (f, "%lu\n", i);
17594 }
17595 exit (ferror (f) || fclose (f) != 0);
17596
17597 ;
17598 return 0;
17599}
17600_ACEOF
17601rm -f conftest$ac_exeext
17602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17603 (eval $ac_link) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 ac_cv_sizeof_long_long=`cat conftest.val`
17613else
17614 echo "$as_me: program exited with status $ac_status" >&5
17615echo "$as_me: failed program was:" >&5
17616sed 's/^/| /' conftest.$ac_ext >&5
17617
17618( exit $ac_status )
17619{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17620See \`config.log' for more details." >&5
17621echo "$as_me: error: cannot compute sizeof (long long), 77
17622See \`config.log' for more details." >&2;}
17623 { (exit 1); exit 1; }; }
17624fi
ac1cb8d3 17625rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17626fi
17627fi
17628rm -f conftest.val
17629else
17630 ac_cv_sizeof_long_long=0
17631fi
17632fi
17633echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17634echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17635cat >>confdefs.h <<_ACEOF
17636#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17637_ACEOF
17638
17639
17640 if test "$ac_cv_sizeof_long_long" != "0"; then
17641 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17642 fi
17643 ;;
17644 * )
17645 echo "$as_me:$LINENO: checking for long long" >&5
17646echo $ECHO_N "checking for long long... $ECHO_C" >&6
17647if test "${ac_cv_type_long_long+set}" = set; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17649else
17650 cat >conftest.$ac_ext <<_ACEOF
17651/* confdefs.h. */
17652_ACEOF
17653cat confdefs.h >>conftest.$ac_ext
17654cat >>conftest.$ac_ext <<_ACEOF
17655/* end confdefs.h. */
17656$ac_includes_default
17657int
17658main ()
17659{
17660if ((long long *) 0)
17661 return 0;
17662if (sizeof (long long))
17663 return 0;
17664 ;
17665 return 0;
17666}
17667_ACEOF
17668rm -f conftest.$ac_objext
17669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17670 (eval $ac_compile) 2>conftest.er1
a848cd7e 17671 ac_status=$?
ac1cb8d3
VS
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
a848cd7e
SC
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
ea7db9ff
DE
17677 { ac_try='test -z "$ac_c_werror_flag"
17678 || test ! -s conftest.err'
ac1cb8d3
VS
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_type_long_long=yes
17691else
17692 echo "$as_me: failed program was:" >&5
17693sed 's/^/| /' conftest.$ac_ext >&5
17694
17695ac_cv_type_long_long=no
17696fi
ac1cb8d3 17697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17698fi
17699echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17700echo "${ECHO_T}$ac_cv_type_long_long" >&6
17701
17702echo "$as_me:$LINENO: checking size of long long" >&5
17703echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17704if test "${ac_cv_sizeof_long_long+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17706else
17707 if test "$ac_cv_type_long_long" = yes; then
17708 # The cast to unsigned long works around a bug in the HP C Compiler
17709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17711 # This bug is HP SR number 8606223364.
17712 if test "$cross_compiling" = yes; then
17713 # Depending upon the size, compute the lo and hi bounds.
17714cat >conftest.$ac_ext <<_ACEOF
17715/* confdefs.h. */
17716_ACEOF
17717cat confdefs.h >>conftest.$ac_ext
17718cat >>conftest.$ac_ext <<_ACEOF
17719/* end confdefs.h. */
17720$ac_includes_default
17721int
17722main ()
17723{
17724static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17725test_array [0] = 0
17726
17727 ;
17728 return 0;
17729}
17730_ACEOF
17731rm -f conftest.$ac_objext
17732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17733 (eval $ac_compile) 2>conftest.er1
a848cd7e 17734 ac_status=$?
ac1cb8d3
VS
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
a848cd7e
SC
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
ea7db9ff
DE
17740 { ac_try='test -z "$ac_c_werror_flag"
17741 || test ! -s conftest.err'
ac1cb8d3
VS
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 ac_lo=0 ac_mid=0
17754 while :; do
17755 cat >conftest.$ac_ext <<_ACEOF
17756/* confdefs.h. */
17757_ACEOF
17758cat confdefs.h >>conftest.$ac_ext
17759cat >>conftest.$ac_ext <<_ACEOF
17760/* end confdefs.h. */
17761$ac_includes_default
17762int
17763main ()
17764{
17765static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17766test_array [0] = 0
17767
17768 ;
17769 return 0;
17770}
17771_ACEOF
17772rm -f conftest.$ac_objext
17773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17774 (eval $ac_compile) 2>conftest.er1
a848cd7e 17775 ac_status=$?
ac1cb8d3
VS
17776 grep -v '^ *+' conftest.er1 >conftest.err
17777 rm -f conftest.er1
17778 cat conftest.err >&5
a848cd7e
SC
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
ea7db9ff
DE
17781 { ac_try='test -z "$ac_c_werror_flag"
17782 || test ! -s conftest.err'
ac1cb8d3
VS
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 ac_hi=$ac_mid; break
17795else
17796 echo "$as_me: failed program was:" >&5
17797sed 's/^/| /' conftest.$ac_ext >&5
17798
17799ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17800 if test $ac_lo -le $ac_mid; then
17801 ac_lo= ac_hi=
17802 break
17803 fi
17804 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17805fi
ac1cb8d3 17806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17807 done
17808else
17809 echo "$as_me: failed program was:" >&5
17810sed 's/^/| /' conftest.$ac_ext >&5
17811
17812cat >conftest.$ac_ext <<_ACEOF
17813/* confdefs.h. */
17814_ACEOF
17815cat confdefs.h >>conftest.$ac_ext
17816cat >>conftest.$ac_ext <<_ACEOF
17817/* end confdefs.h. */
17818$ac_includes_default
17819int
17820main ()
17821{
17822static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17823test_array [0] = 0
17824
17825 ;
17826 return 0;
17827}
17828_ACEOF
17829rm -f conftest.$ac_objext
17830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17831 (eval $ac_compile) 2>conftest.er1
a848cd7e 17832 ac_status=$?
ac1cb8d3
VS
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
a848cd7e
SC
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
ea7db9ff
DE
17838 { ac_try='test -z "$ac_c_werror_flag"
17839 || test ! -s conftest.err'
ac1cb8d3
VS
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 ac_hi=-1 ac_mid=-1
17852 while :; do
17853 cat >conftest.$ac_ext <<_ACEOF
17854/* confdefs.h. */
17855_ACEOF
17856cat confdefs.h >>conftest.$ac_ext
17857cat >>conftest.$ac_ext <<_ACEOF
17858/* end confdefs.h. */
17859$ac_includes_default
17860int
17861main ()
17862{
17863static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17864test_array [0] = 0
17865
17866 ;
17867 return 0;
17868}
17869_ACEOF
17870rm -f conftest.$ac_objext
17871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17872 (eval $ac_compile) 2>conftest.er1
a848cd7e 17873 ac_status=$?
ac1cb8d3
VS
17874 grep -v '^ *+' conftest.er1 >conftest.err
17875 rm -f conftest.er1
17876 cat conftest.err >&5
a848cd7e
SC
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
ea7db9ff
DE
17879 { ac_try='test -z "$ac_c_werror_flag"
17880 || test ! -s conftest.err'
ac1cb8d3
VS
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_lo=$ac_mid; break
17893else
17894 echo "$as_me: failed program was:" >&5
17895sed 's/^/| /' conftest.$ac_ext >&5
17896
17897ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17898 if test $ac_mid -le $ac_hi; then
17899 ac_lo= ac_hi=
17900 break
17901 fi
17902 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17903fi
ac1cb8d3 17904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17905 done
17906else
17907 echo "$as_me: failed program was:" >&5
17908sed 's/^/| /' conftest.$ac_ext >&5
17909
17910ac_lo= ac_hi=
17911fi
ac1cb8d3 17912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17913fi
ac1cb8d3 17914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17915# Binary search between lo and hi bounds.
17916while test "x$ac_lo" != "x$ac_hi"; do
17917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17918 cat >conftest.$ac_ext <<_ACEOF
17919/* confdefs.h. */
17920_ACEOF
17921cat confdefs.h >>conftest.$ac_ext
17922cat >>conftest.$ac_ext <<_ACEOF
17923/* end confdefs.h. */
17924$ac_includes_default
17925int
17926main ()
17927{
17928static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17929test_array [0] = 0
17930
17931 ;
17932 return 0;
17933}
17934_ACEOF
17935rm -f conftest.$ac_objext
17936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17937 (eval $ac_compile) 2>conftest.er1
a848cd7e 17938 ac_status=$?
ac1cb8d3
VS
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
a848cd7e
SC
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
ea7db9ff
DE
17944 { ac_try='test -z "$ac_c_werror_flag"
17945 || test ! -s conftest.err'
ac1cb8d3
VS
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_hi=$ac_mid
17958else
17959 echo "$as_me: failed program was:" >&5
17960sed 's/^/| /' conftest.$ac_ext >&5
17961
17962ac_lo=`expr '(' $ac_mid ')' + 1`
17963fi
ac1cb8d3 17964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17965done
17966case $ac_lo in
17967?*) ac_cv_sizeof_long_long=$ac_lo;;
17968'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17969See \`config.log' for more details." >&5
17970echo "$as_me: error: cannot compute sizeof (long long), 77
17971See \`config.log' for more details." >&2;}
17972 { (exit 1); exit 1; }; } ;;
17973esac
17974else
17975 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17977See \`config.log' for more details." >&5
17978echo "$as_me: error: cannot run test program while cross compiling
17979See \`config.log' for more details." >&2;}
a848cd7e
SC
17980 { (exit 1); exit 1; }; }
17981else
17982 cat >conftest.$ac_ext <<_ACEOF
17983/* confdefs.h. */
17984_ACEOF
17985cat confdefs.h >>conftest.$ac_ext
17986cat >>conftest.$ac_ext <<_ACEOF
17987/* end confdefs.h. */
17988$ac_includes_default
17989long longval () { return (long) (sizeof (long long)); }
17990unsigned long ulongval () { return (long) (sizeof (long long)); }
17991#include <stdio.h>
17992#include <stdlib.h>
17993int
17994main ()
17995{
17996
17997 FILE *f = fopen ("conftest.val", "w");
17998 if (! f)
17999 exit (1);
18000 if (((long) (sizeof (long long))) < 0)
18001 {
18002 long i = longval ();
18003 if (i != ((long) (sizeof (long long))))
18004 exit (1);
18005 fprintf (f, "%ld\n", i);
18006 }
18007 else
18008 {
18009 unsigned long i = ulongval ();
18010 if (i != ((long) (sizeof (long long))))
18011 exit (1);
18012 fprintf (f, "%lu\n", i);
18013 }
18014 exit (ferror (f) || fclose (f) != 0);
18015
18016 ;
18017 return 0;
18018}
18019_ACEOF
18020rm -f conftest$ac_exeext
18021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18022 (eval $ac_link) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 ac_cv_sizeof_long_long=`cat conftest.val`
18032else
18033 echo "$as_me: program exited with status $ac_status" >&5
18034echo "$as_me: failed program was:" >&5
18035sed 's/^/| /' conftest.$ac_ext >&5
18036
18037( exit $ac_status )
18038{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18039See \`config.log' for more details." >&5
18040echo "$as_me: error: cannot compute sizeof (long long), 77
18041See \`config.log' for more details." >&2;}
18042 { (exit 1); exit 1; }; }
18043fi
ac1cb8d3 18044rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18045fi
18046fi
18047rm -f conftest.val
18048else
18049 ac_cv_sizeof_long_long=0
18050fi
18051fi
18052echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18053echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18054cat >>confdefs.h <<_ACEOF
18055#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18056_ACEOF
18057
18058
18059esac
18060
18061echo "$as_me:$LINENO: checking size of wchar_t" >&5
18062echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18063if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
18065else
18066
18067 if test "$cross_compiling" = yes; then
18068
18069 case "${host}" in
18070 *-pc-msdosdjgpp )
18071 wx_cv_sizeof_wchar_t=0
18072 ;;
18073 * )
18074 wx_cv_sizeof_wchar_t=4
18075 ;;
18076 esac
18077
18078
18079else
18080 cat >conftest.$ac_ext <<_ACEOF
18081/* confdefs.h. */
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h. */
18086
18087 /* DJGPP only has fake wchar_t: */
18088 #ifdef __DJGPP__
18089 # error "fake wchar_t"
18090 #endif
18091 #ifdef HAVE_WCHAR_H
18092 # ifdef __CYGWIN__
18093 # include <stddef.h>
18094 # endif
18095 # include <wchar.h>
18096 #endif
18097 #ifdef HAVE_STDLIB_H
18098 # include <stdlib.h>
18099 #endif
18100 #include <stdio.h>
18101 int main()
18102 {
18103 FILE *f=fopen("conftestval", "w");
18104 if (!f) exit(1);
18105 fprintf(f, "%i", sizeof(wchar_t));
18106 exit(0);
18107 }
18108
18109_ACEOF
18110rm -f conftest$ac_exeext
18111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18112 (eval $ac_link) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 wx_cv_sizeof_wchar_t=`cat conftestval`
18122else
18123 echo "$as_me: program exited with status $ac_status" >&5
18124echo "$as_me: failed program was:" >&5
18125sed 's/^/| /' conftest.$ac_ext >&5
18126
18127( exit $ac_status )
18128wx_cv_sizeof_wchar_t=0
18129fi
ac1cb8d3 18130rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18131fi
18132
18133fi
18134echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18135echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18136
18137cat >>confdefs.h <<_ACEOF
18138#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18139_ACEOF
18140
18141
18142# Check whether --enable-largefile or --disable-largefile was given.
18143if test "${enable_largefile+set}" = set; then
18144 enableval="$enable_largefile"
18145
18146fi;
18147if test "$enable_largefile" != no; then
18148 wx_largefile=no
18149
18150 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18151echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18152if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18154else
18155
18156 cat >conftest.$ac_ext <<_ACEOF
18157/* confdefs.h. */
18158_ACEOF
18159cat confdefs.h >>conftest.$ac_ext
18160cat >>conftest.$ac_ext <<_ACEOF
18161/* end confdefs.h. */
18162#define _FILE_OFFSET_BITS 64
18163 #include <sys/types.h>
18164int
18165main ()
18166{
18167typedef struct {
18168 unsigned int field: sizeof(off_t) == 8;
18169} wxlf;
18170
18171 ;
18172 return 0;
18173}
18174_ACEOF
18175rm -f conftest.$ac_objext
18176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18177 (eval $ac_compile) 2>conftest.er1
a848cd7e 18178 ac_status=$?
ac1cb8d3
VS
18179 grep -v '^ *+' conftest.er1 >conftest.err
18180 rm -f conftest.er1
18181 cat conftest.err >&5
a848cd7e
SC
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
ea7db9ff
DE
18184 { ac_try='test -z "$ac_c_werror_flag"
18185 || test ! -s conftest.err'
ac1cb8d3
VS
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; } &&
18191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193 (eval $ac_try) 2>&5
18194 ac_status=$?
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; }; then
18197 ac_cv_sys_file_offset_bits=64
18198else
18199 echo "$as_me: failed program was:" >&5
18200sed 's/^/| /' conftest.$ac_ext >&5
18201
18202ac_cv_sys_file_offset_bits=no
18203fi
ac1cb8d3 18204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18205
18206
18207fi
18208echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18209echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18210
18211 if test "$ac_cv_sys_file_offset_bits" != no; then
18212 wx_largefile=yes
18213 cat >>confdefs.h <<_ACEOF
18214#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18215_ACEOF
18216
18217 fi
18218
18219 if test "x$wx_largefile" != "xyes"; then
18220
18221 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18222echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18223if test "${ac_cv_sys_large_files+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225else
18226
18227 cat >conftest.$ac_ext <<_ACEOF
18228/* confdefs.h. */
18229_ACEOF
18230cat confdefs.h >>conftest.$ac_ext
18231cat >>conftest.$ac_ext <<_ACEOF
18232/* end confdefs.h. */
18233#define _LARGE_FILES 1
18234 #include <sys/types.h>
18235int
18236main ()
18237{
18238typedef struct {
18239 unsigned int field: sizeof(off_t) == 8;
18240} wxlf;
18241
18242 ;
18243 return 0;
18244}
18245_ACEOF
18246rm -f conftest.$ac_objext
18247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18248 (eval $ac_compile) 2>conftest.er1
a848cd7e 18249 ac_status=$?
ac1cb8d3
VS
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
a848cd7e
SC
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
ea7db9ff
DE
18255 { ac_try='test -z "$ac_c_werror_flag"
18256 || test ! -s conftest.err'
ac1cb8d3
VS
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 ac_cv_sys_large_files=1
18269else
18270 echo "$as_me: failed program was:" >&5
18271sed 's/^/| /' conftest.$ac_ext >&5
18272
18273ac_cv_sys_large_files=no
18274fi
ac1cb8d3 18275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18276
18277
18278fi
18279echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18280echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18281
18282 if test "$ac_cv_sys_large_files" != no; then
18283 wx_largefile=yes
18284 cat >>confdefs.h <<_ACEOF
18285#define _LARGE_FILES $ac_cv_sys_large_files
18286_ACEOF
18287
18288 fi
18289
18290 fi
18291
18292 echo "$as_me:$LINENO: checking if large file support is available" >&5
18293echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18294 if test "x$wx_largefile" = "xyes"; then
18295 cat >>confdefs.h <<\_ACEOF
18296#define HAVE_LARGEFILE_SUPPORT 1
18297_ACEOF
18298
18299 fi
18300 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18301echo "${ECHO_T}$wx_largefile" >&6
18302fi
18303
18304
18305if test "x$wx_largefile" = "xyes"; then
18306 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18307 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18308 else
18309 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18310 fi
18311 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18312fi
18313
18314echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18315echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18316if test "${ac_cv_c_bigendian+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18318else
18319 ac_cv_c_bigendian=unknown
18320# See if sys/param.h defines the BYTE_ORDER macro.
18321cat >conftest.$ac_ext <<_ACEOF
18322/* confdefs.h. */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h. */
18327#include <sys/types.h>
18328#include <sys/param.h>
18329int
18330main ()
18331{
18332
18333#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18334 bogus endian macros
18335#endif
18336 ;
18337 return 0;
18338}
18339_ACEOF
18340rm -f conftest.$ac_objext
18341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18342 (eval $ac_compile) 2>conftest.er1
a848cd7e 18343 ac_status=$?
ac1cb8d3
VS
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
a848cd7e
SC
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
ea7db9ff
DE
18349 { ac_try='test -z "$ac_c_werror_flag"
18350 || test ! -s conftest.err'
ac1cb8d3
VS
18351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352 (eval $ac_try) 2>&5
18353 ac_status=$?
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; } &&
18356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 # It does; now see whether it defined to BIG_ENDIAN or not.
18363cat >conftest.$ac_ext <<_ACEOF
18364/* confdefs.h. */
18365_ACEOF
18366cat confdefs.h >>conftest.$ac_ext
18367cat >>conftest.$ac_ext <<_ACEOF
18368/* end confdefs.h. */
18369#include <sys/types.h>
18370#include <sys/param.h>
18371int
18372main ()
18373{
18374
18375#if BYTE_ORDER != BIG_ENDIAN
18376 not big endian
18377#endif
18378 ;
18379 return 0;
18380}
18381_ACEOF
18382rm -f conftest.$ac_objext
18383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18384 (eval $ac_compile) 2>conftest.er1
a848cd7e 18385 ac_status=$?
ac1cb8d3
VS
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
a848cd7e
SC
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
ea7db9ff
DE
18391 { ac_try='test -z "$ac_c_werror_flag"
18392 || test ! -s conftest.err'
ac1cb8d3
VS
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; } &&
18398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18404 ac_cv_c_bigendian=yes
18405else
18406 echo "$as_me: failed program was:" >&5
18407sed 's/^/| /' conftest.$ac_ext >&5
18408
18409ac_cv_c_bigendian=no
18410fi
ac1cb8d3 18411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18412else
18413 echo "$as_me: failed program was:" >&5
18414sed 's/^/| /' conftest.$ac_ext >&5
18415
18416fi
ac1cb8d3 18417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18418if test $ac_cv_c_bigendian = unknown; then
18419if test "$cross_compiling" = yes; then
18420 ac_cv_c_bigendian=unknown
18421else
18422 cat >conftest.$ac_ext <<_ACEOF
18423/* confdefs.h. */
18424_ACEOF
18425cat confdefs.h >>conftest.$ac_ext
18426cat >>conftest.$ac_ext <<_ACEOF
18427/* end confdefs.h. */
18428main () {
18429 /* Are we little or big endian? From Harbison&Steele. */
18430 union
18431 {
18432 long l;
18433 char c[sizeof (long)];
18434 } u;
18435 u.l = 1;
18436 exit (u.c[sizeof (long) - 1] == 1);
18437}
18438_ACEOF
18439rm -f conftest$ac_exeext
18440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18441 (eval $ac_link) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 ac_cv_c_bigendian=no
18451else
18452 echo "$as_me: program exited with status $ac_status" >&5
18453echo "$as_me: failed program was:" >&5
18454sed 's/^/| /' conftest.$ac_ext >&5
18455
18456( exit $ac_status )
18457ac_cv_c_bigendian=yes
18458fi
ac1cb8d3 18459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18460fi
18461fi
18462fi
18463echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18464echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18465if test $ac_cv_c_bigendian = unknown; then
18466 { 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
18467echo "$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;}
18468fi
18469if test $ac_cv_c_bigendian = yes; then
18470 cat >>confdefs.h <<\_ACEOF
18471#define WORDS_BIGENDIAN 1
18472_ACEOF
18473
18474fi
18475
18476
18477ac_ext=cc
18478ac_cpp='$CXXCPP $CPPFLAGS'
18479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18482echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18483echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18484if test -z "$CXXCPP"; then
18485 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18487else
18488 # Double quotes because CXXCPP needs to be expanded
18489 for CXXCPP in "$CXX -E" "/lib/cpp"
18490 do
18491 ac_preproc_ok=false
18492for ac_cxx_preproc_warn_flag in '' yes
18493do
18494 # Use a header file that comes with gcc, so configuring glibc
18495 # with a fresh cross-compiler works.
18496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18497 # <limits.h> exists even on freestanding compilers.
18498 # On the NeXT, cc -E runs the code through the compiler's parser,
18499 # not just through cpp. "Syntax error" is here to catch this case.
18500 cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506#ifdef __STDC__
18507# include <limits.h>
18508#else
18509# include <assert.h>
18510#endif
ac1cb8d3 18511 Syntax error
a848cd7e
SC
18512_ACEOF
18513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18515 ac_status=$?
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } >/dev/null; then
18521 if test -s conftest.err; then
18522 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18523 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18524 else
18525 ac_cpp_err=
18526 fi
18527else
18528 ac_cpp_err=yes
18529fi
18530if test -z "$ac_cpp_err"; then
18531 :
18532else
18533 echo "$as_me: failed program was:" >&5
18534sed 's/^/| /' conftest.$ac_ext >&5
18535
18536 # Broken: fails on valid input.
18537continue
18538fi
18539rm -f conftest.err conftest.$ac_ext
18540
18541 # OK, works on sane cases. Now check whether non-existent headers
18542 # can be detected and how.
18543 cat >conftest.$ac_ext <<_ACEOF
18544/* confdefs.h. */
18545_ACEOF
18546cat confdefs.h >>conftest.$ac_ext
18547cat >>conftest.$ac_ext <<_ACEOF
18548/* end confdefs.h. */
18549#include <ac_nonexistent.h>
18550_ACEOF
18551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18553 ac_status=$?
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } >/dev/null; then
18559 if test -s conftest.err; then
18560 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18561 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18562 else
18563 ac_cpp_err=
18564 fi
18565else
18566 ac_cpp_err=yes
18567fi
18568if test -z "$ac_cpp_err"; then
18569 # Broken: success on invalid input.
18570continue
18571else
18572 echo "$as_me: failed program was:" >&5
18573sed 's/^/| /' conftest.$ac_ext >&5
18574
18575 # Passes both tests.
18576ac_preproc_ok=:
18577break
18578fi
18579rm -f conftest.err conftest.$ac_ext
18580
18581done
18582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18583rm -f conftest.err conftest.$ac_ext
18584if $ac_preproc_ok; then
18585 break
18586fi
18587
18588 done
18589 ac_cv_prog_CXXCPP=$CXXCPP
18590
18591fi
18592 CXXCPP=$ac_cv_prog_CXXCPP
18593else
18594 ac_cv_prog_CXXCPP=$CXXCPP
18595fi
18596echo "$as_me:$LINENO: result: $CXXCPP" >&5
18597echo "${ECHO_T}$CXXCPP" >&6
18598ac_preproc_ok=false
18599for ac_cxx_preproc_warn_flag in '' yes
18600do
18601 # Use a header file that comes with gcc, so configuring glibc
18602 # with a fresh cross-compiler works.
18603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18604 # <limits.h> exists even on freestanding compilers.
18605 # On the NeXT, cc -E runs the code through the compiler's parser,
18606 # not just through cpp. "Syntax error" is here to catch this case.
18607 cat >conftest.$ac_ext <<_ACEOF
18608/* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
18613#ifdef __STDC__
18614# include <limits.h>
18615#else
18616# include <assert.h>
18617#endif
ac1cb8d3 18618 Syntax error
a848cd7e
SC
18619_ACEOF
18620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18622 ac_status=$?
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } >/dev/null; then
18628 if test -s conftest.err; then
18629 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18630 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18631 else
18632 ac_cpp_err=
18633 fi
18634else
18635 ac_cpp_err=yes
18636fi
18637if test -z "$ac_cpp_err"; then
18638 :
18639else
18640 echo "$as_me: failed program was:" >&5
18641sed 's/^/| /' conftest.$ac_ext >&5
18642
18643 # Broken: fails on valid input.
18644continue
18645fi
18646rm -f conftest.err conftest.$ac_ext
18647
18648 # OK, works on sane cases. Now check whether non-existent headers
18649 # can be detected and how.
18650 cat >conftest.$ac_ext <<_ACEOF
18651/* confdefs.h. */
18652_ACEOF
18653cat confdefs.h >>conftest.$ac_ext
18654cat >>conftest.$ac_ext <<_ACEOF
18655/* end confdefs.h. */
18656#include <ac_nonexistent.h>
18657_ACEOF
18658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18660 ac_status=$?
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } >/dev/null; then
18666 if test -s conftest.err; then
18667 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18668 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18669 else
18670 ac_cpp_err=
18671 fi
18672else
18673 ac_cpp_err=yes
18674fi
18675if test -z "$ac_cpp_err"; then
18676 # Broken: success on invalid input.
18677continue
18678else
18679 echo "$as_me: failed program was:" >&5
18680sed 's/^/| /' conftest.$ac_ext >&5
18681
18682 # Passes both tests.
18683ac_preproc_ok=:
18684break
18685fi
18686rm -f conftest.err conftest.$ac_ext
18687
18688done
18689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18690rm -f conftest.err conftest.$ac_ext
18691if $ac_preproc_ok; then
18692 :
18693else
18694 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18695See \`config.log' for more details." >&5
18696echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18697See \`config.log' for more details." >&2;}
18698 { (exit 1); exit 1; }; }
18699fi
18700
18701ac_ext=cc
18702ac_cpp='$CXXCPP $CPPFLAGS'
18703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18706
18707
18708
18709
18710
18711 ac_ext=cc
18712ac_cpp='$CXXCPP $CPPFLAGS'
18713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18716
18717
18718
18719for ac_header in iostream
18720do
18721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18722if eval "test \"\${$as_ac_Header+set}\" = set"; then
18723 echo "$as_me:$LINENO: checking for $ac_header" >&5
18724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18725if eval "test \"\${$as_ac_Header+set}\" = set"; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18727fi
18728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18730else
18731 # Is the header compilable?
18732echo "$as_me:$LINENO: checking $ac_header usability" >&5
18733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18734cat >conftest.$ac_ext <<_ACEOF
18735/* confdefs.h. */
18736_ACEOF
18737cat confdefs.h >>conftest.$ac_ext
18738cat >>conftest.$ac_ext <<_ACEOF
18739/* end confdefs.h. */
18740$ac_includes_default
18741#include <$ac_header>
18742_ACEOF
18743rm -f conftest.$ac_objext
18744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18745 (eval $ac_compile) 2>conftest.er1
a848cd7e 18746 ac_status=$?
ac1cb8d3
VS
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
a848cd7e
SC
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
ea7db9ff
DE
18752 { ac_try='test -z "$ac_cxx_werror_flag"
18753 || test ! -s conftest.err'
ac1cb8d3
VS
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; }; then
18765 ac_header_compiler=yes
18766else
18767 echo "$as_me: failed program was:" >&5
18768sed 's/^/| /' conftest.$ac_ext >&5
18769
18770ac_header_compiler=no
18771fi
ac1cb8d3 18772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18774echo "${ECHO_T}$ac_header_compiler" >&6
18775
18776# Is the header present?
18777echo "$as_me:$LINENO: checking $ac_header presence" >&5
18778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18779cat >conftest.$ac_ext <<_ACEOF
18780/* confdefs.h. */
18781_ACEOF
18782cat confdefs.h >>conftest.$ac_ext
18783cat >>conftest.$ac_ext <<_ACEOF
18784/* end confdefs.h. */
18785#include <$ac_header>
18786_ACEOF
18787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } >/dev/null; then
18795 if test -s conftest.err; then
18796 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18797 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18798 else
18799 ac_cpp_err=
18800 fi
18801else
18802 ac_cpp_err=yes
18803fi
18804if test -z "$ac_cpp_err"; then
18805 ac_header_preproc=yes
18806else
18807 echo "$as_me: failed program was:" >&5
18808sed 's/^/| /' conftest.$ac_ext >&5
18809
18810 ac_header_preproc=no
18811fi
18812rm -f conftest.err conftest.$ac_ext
18813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18814echo "${ECHO_T}$ac_header_preproc" >&6
18815
18816# So? What about this header?
ac1cb8d3
VS
18817case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18818 yes:no: )
a848cd7e
SC
18819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18820echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18822echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18823 ac_header_preproc=yes
a848cd7e 18824 ;;
ac1cb8d3 18825 no:yes:* )
a848cd7e
SC
18826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18827echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18829echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18831echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18833echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18835echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18837echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18838 (
18839 cat <<\_ASBOX
ac1cb8d3
VS
18840## ----------------------------------------- ##
18841## Report this to wx-dev@lists.wxwidgets.org ##
18842## ----------------------------------------- ##
a848cd7e
SC
18843_ASBOX
18844 ) |
18845 sed "s/^/$as_me: WARNING: /" >&2
18846 ;;
18847esac
18848echo "$as_me:$LINENO: checking for $ac_header" >&5
18849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18850if eval "test \"\${$as_ac_Header+set}\" = set"; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852else
ac1cb8d3 18853 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18854fi
18855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18857
18858fi
18859if test `eval echo '${'$as_ac_Header'}'` = yes; then
18860 cat >>confdefs.h <<_ACEOF
18861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18862_ACEOF
18863
18864fi
18865
18866done
18867
18868
18869 if test "$ac_cv_header_iostream" = "yes" ; then
18870 :
18871 else
18872 cat >>confdefs.h <<\_ACEOF
18873#define wxUSE_IOSTREAMH 1
18874_ACEOF
18875
18876 fi
18877
18878 ac_ext=c
18879ac_cpp='$CPP $CPPFLAGS'
18880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18882ac_compiler_gnu=$ac_cv_c_compiler_gnu
18883
18884
18885
18886
18887 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18888echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18889if test "${wx_cv_cpp_bool+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891else
18892
18893
18894
18895 ac_ext=cc
18896ac_cpp='$CXXCPP $CPPFLAGS'
18897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18900
18901
18902 cat >conftest.$ac_ext <<_ACEOF
18903/* confdefs.h. */
18904_ACEOF
18905cat confdefs.h >>conftest.$ac_ext
18906cat >>conftest.$ac_ext <<_ACEOF
18907/* end confdefs.h. */
18908
18909
18910int
18911main ()
18912{
18913
18914 bool b = true;
18915
18916 return 0;
18917
18918 ;
18919 return 0;
18920}
18921_ACEOF
18922rm -f conftest.$ac_objext
18923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18924 (eval $ac_compile) 2>conftest.er1
a848cd7e 18925 ac_status=$?
ac1cb8d3
VS
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
a848cd7e
SC
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
ea7db9ff
DE
18931 { ac_try='test -z "$ac_cxx_werror_flag"
18932 || test ! -s conftest.err'
ac1cb8d3
VS
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18935 ac_status=$?
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18941 ac_status=$?
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944
18945 wx_cv_cpp_bool=yes
18946
18947else
18948 echo "$as_me: failed program was:" >&5
18949sed 's/^/| /' conftest.$ac_ext >&5
18950
18951
18952 wx_cv_cpp_bool=no
18953
18954
18955fi
ac1cb8d3 18956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18957
18958 ac_ext=c
18959ac_cpp='$CPP $CPPFLAGS'
18960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18962ac_compiler_gnu=$ac_cv_c_compiler_gnu
18963
18964
18965fi
18966echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18967echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18968
18969 if test "$wx_cv_cpp_bool" = "yes"; then
18970 cat >>confdefs.h <<\_ACEOF
18971#define HAVE_BOOL 1
18972_ACEOF
18973
18974 fi
18975
18976
18977
18978 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18979echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18980if test "${wx_cv_explicit+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18982else
18983
18984
18985
18986 ac_ext=cc
18987ac_cpp='$CXXCPP $CPPFLAGS'
18988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18991
18992
18993 cat >conftest.$ac_ext <<_ACEOF
18994/* confdefs.h. */
18995_ACEOF
18996cat confdefs.h >>conftest.$ac_ext
18997cat >>conftest.$ac_ext <<_ACEOF
18998/* end confdefs.h. */
18999
19000 class Foo { public: explicit Foo(int) {} };
19001
19002int
19003main ()
19004{
19005
19006 return 0;
19007
19008 ;
19009 return 0;
19010}
19011_ACEOF
19012rm -f conftest.$ac_objext
19013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19014 (eval $ac_compile) 2>conftest.er1
a848cd7e 19015 ac_status=$?
ac1cb8d3
VS
19016 grep -v '^ *+' conftest.er1 >conftest.err
19017 rm -f conftest.er1
19018 cat conftest.err >&5
a848cd7e
SC
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } &&
ea7db9ff
DE
19021 { ac_try='test -z "$ac_cxx_werror_flag"
19022 || test ! -s conftest.err'
ac1cb8d3
VS
19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024 (eval $ac_try) 2>&5
19025 ac_status=$?
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034
19035 cat >conftest.$ac_ext <<_ACEOF
19036/* confdefs.h. */
19037_ACEOF
19038cat confdefs.h >>conftest.$ac_ext
19039cat >>conftest.$ac_ext <<_ACEOF
19040/* end confdefs.h. */
19041
19042 class Foo { public: explicit Foo(int) {} };
19043 static void TakeFoo(const Foo& foo) { }
19044
19045int
19046main ()
19047{
19048
19049 TakeFoo(17);
19050 return 0;
19051
19052 ;
19053 return 0;
19054}
19055_ACEOF
19056rm -f conftest.$ac_objext
19057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19058 (eval $ac_compile) 2>conftest.er1
a848cd7e 19059 ac_status=$?
ac1cb8d3
VS
19060 grep -v '^ *+' conftest.er1 >conftest.err
19061 rm -f conftest.er1
19062 cat conftest.err >&5
a848cd7e
SC
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } &&
ea7db9ff
DE
19065 { ac_try='test -z "$ac_cxx_werror_flag"
19066 || test ! -s conftest.err'
ac1cb8d3
VS
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 wx_cv_explicit=no
19079else
19080 echo "$as_me: failed program was:" >&5
19081sed 's/^/| /' conftest.$ac_ext >&5
19082
19083wx_cv_explicit=yes
19084
19085fi
ac1cb8d3 19086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19087
19088else
19089 echo "$as_me: failed program was:" >&5
19090sed 's/^/| /' conftest.$ac_ext >&5
19091
19092wx_cv_explicit=no
19093
19094fi
ac1cb8d3 19095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19096
19097 ac_ext=c
19098ac_cpp='$CPP $CPPFLAGS'
19099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19101ac_compiler_gnu=$ac_cv_c_compiler_gnu
19102
19103
19104fi
19105echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19106echo "${ECHO_T}$wx_cv_explicit" >&6
19107
19108 if test "$wx_cv_explicit" = "yes"; then
19109 cat >>confdefs.h <<\_ACEOF
19110#define HAVE_EXPLICIT 1
19111_ACEOF
19112
19113 fi
19114
19115
19116echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19117echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19118if test "${ac_cv_cxx_const_cast+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19120else
19121
19122
19123 ac_ext=cc
19124ac_cpp='$CXXCPP $CPPFLAGS'
19125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19128
19129 cat >conftest.$ac_ext <<_ACEOF
19130/* confdefs.h. */
19131_ACEOF
19132cat confdefs.h >>conftest.$ac_ext
19133cat >>conftest.$ac_ext <<_ACEOF
19134/* end confdefs.h. */
19135
19136int
19137main ()
19138{
19139int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19140 ;
19141 return 0;
19142}
19143_ACEOF
19144rm -f conftest.$ac_objext
19145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19146 (eval $ac_compile) 2>conftest.er1
a848cd7e 19147 ac_status=$?
ac1cb8d3
VS
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
a848cd7e
SC
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
ea7db9ff
DE
19153 { ac_try='test -z "$ac_cxx_werror_flag"
19154 || test ! -s conftest.err'
ac1cb8d3
VS
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_cv_cxx_const_cast=yes
19167else
19168 echo "$as_me: failed program was:" >&5
19169sed 's/^/| /' conftest.$ac_ext >&5
19170
19171ac_cv_cxx_const_cast=no
19172fi
ac1cb8d3 19173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19174 ac_ext=c
19175ac_cpp='$CPP $CPPFLAGS'
19176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19178ac_compiler_gnu=$ac_cv_c_compiler_gnu
19179
19180
19181fi
19182echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19183echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19184if test "$ac_cv_cxx_const_cast" = yes; then
19185
19186cat >>confdefs.h <<\_ACEOF
19187#define HAVE_CONST_CAST
19188_ACEOF
19189
19190fi
19191
19192echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19193echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19194if test "${ac_cv_cxx_static_cast+set}" = set; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19196else
19197
19198
19199 ac_ext=cc
19200ac_cpp='$CXXCPP $CPPFLAGS'
19201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19204
19205 cat >conftest.$ac_ext <<_ACEOF
19206/* confdefs.h. */
19207_ACEOF
19208cat confdefs.h >>conftest.$ac_ext
19209cat >>conftest.$ac_ext <<_ACEOF
19210/* end confdefs.h. */
19211#include <typeinfo>
19212class Base { public : Base () {} virtual void f () = 0; };
19213class Derived : public Base { public : Derived () {} virtual void f () {} };
19214int g (Derived&) { return 0; }
19215int
19216main ()
19217{
19218
19219Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19220 ;
19221 return 0;
19222}
19223_ACEOF
19224rm -f conftest.$ac_objext
19225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19226 (eval $ac_compile) 2>conftest.er1
a848cd7e 19227 ac_status=$?
ac1cb8d3
VS
19228 grep -v '^ *+' conftest.er1 >conftest.err
19229 rm -f conftest.er1
19230 cat conftest.err >&5
a848cd7e
SC
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
ea7db9ff
DE
19233 { ac_try='test -z "$ac_cxx_werror_flag"
19234 || test ! -s conftest.err'
ac1cb8d3
VS
19235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19237 ac_status=$?
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; } &&
19240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_cv_cxx_static_cast=yes
19247else
19248 echo "$as_me: failed program was:" >&5
19249sed 's/^/| /' conftest.$ac_ext >&5
19250
19251ac_cv_cxx_static_cast=no
19252fi
ac1cb8d3 19253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19254 ac_ext=c
19255ac_cpp='$CPP $CPPFLAGS'
19256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258ac_compiler_gnu=$ac_cv_c_compiler_gnu
19259
19260
19261fi
19262echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19263echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19264if test "$ac_cv_cxx_static_cast" = yes; then
19265
19266cat >>confdefs.h <<\_ACEOF
19267#define HAVE_STATIC_CAST
19268_ACEOF
19269
19270fi
19271
19272
19273if test "$wxUSE_STL" = "yes"; then
19274 ac_ext=cc
19275ac_cpp='$CXXCPP $CPPFLAGS'
19276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19279
19280
19281 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19282echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19283 cat >conftest.$ac_ext <<_ACEOF
19284/* confdefs.h. */
19285_ACEOF
19286cat confdefs.h >>conftest.$ac_ext
19287cat >>conftest.$ac_ext <<_ACEOF
19288/* end confdefs.h. */
19289#include <string>
19290 #include <functional>
19291 #include <algorithm>
19292 #include <vector>
19293 #include <list>
19294int
19295main ()
19296{
19297std::vector<int> moo;
19298 std::list<int> foo;
19299 std::vector<int>::iterator it =
19300 std::find_if(moo.begin(), moo.end(),
19301 std::bind2nd(std::less<int>(), 3));
19302 ;
19303 return 0;
19304}
19305_ACEOF
19306rm -f conftest.$ac_objext
19307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19308 (eval $ac_compile) 2>conftest.er1
a848cd7e 19309 ac_status=$?
ac1cb8d3
VS
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
a848cd7e
SC
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
ea7db9ff
DE
19315 { ac_try='test -z "$ac_cxx_werror_flag"
19316 || test ! -s conftest.err'
ac1cb8d3
VS
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } &&
19322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 echo "$as_me:$LINENO: result: yes" >&5
19329echo "${ECHO_T}yes" >&6
19330else
19331 echo "$as_me: failed program was:" >&5
19332sed 's/^/| /' conftest.$ac_ext >&5
19333
19334echo "$as_me:$LINENO: result: no" >&5
19335echo "${ECHO_T}no" >&6
19336 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19337echo "$as_me: error: Basic STL functionality missing" >&2;}
19338 { (exit 1); exit 1; }; }
19339fi
ac1cb8d3 19340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19341
19342 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19343echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19344 cat >conftest.$ac_ext <<_ACEOF
19345/* confdefs.h. */
19346_ACEOF
19347cat confdefs.h >>conftest.$ac_ext
19348cat >>conftest.$ac_ext <<_ACEOF
19349/* end confdefs.h. */
19350#include <string>
19351int
19352main ()
19353{
19354std::wstring foo;
19355 ;
19356 return 0;
19357}
19358_ACEOF
19359rm -f conftest.$ac_objext
19360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19361 (eval $ac_compile) 2>conftest.er1
a848cd7e 19362 ac_status=$?
ac1cb8d3
VS
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
a848cd7e
SC
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
ea7db9ff
DE
19368 { ac_try='test -z "$ac_cxx_werror_flag"
19369 || test ! -s conftest.err'
ac1cb8d3
VS
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; } &&
19375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377 (eval $ac_try) 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; }; then
19381 echo "$as_me:$LINENO: result: yes" >&5
19382echo "${ECHO_T}yes" >&6
19383 cat >>confdefs.h <<\_ACEOF
19384#define HAVE_STD_WSTRING 1
19385_ACEOF
19386
19387else
19388 echo "$as_me: failed program was:" >&5
19389sed 's/^/| /' conftest.$ac_ext >&5
19390
19391echo "$as_me:$LINENO: result: no" >&5
19392echo "${ECHO_T}no" >&6
19393fi
ac1cb8d3 19394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19395
19396 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19397echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19398 cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404#include <string>
19405int
19406main ()
19407{
19408std::string foo, bar;
19409 foo.compare(bar);
19410 foo.compare(1, 1, bar);
19411 foo.compare(1, 1, bar, 1, 1);
19412 foo.compare("");
19413 foo.compare(1, 1, "");
19414 foo.compare(1, 1, "", 2);
19415 ;
19416 return 0;
19417}
19418_ACEOF
19419rm -f conftest.$ac_objext
19420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19421 (eval $ac_compile) 2>conftest.er1
a848cd7e 19422 ac_status=$?
ac1cb8d3
VS
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
a848cd7e
SC
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
ea7db9ff
DE
19428 { ac_try='test -z "$ac_cxx_werror_flag"
19429 || test ! -s conftest.err'
ac1cb8d3
VS
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; } &&
19435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 echo "$as_me:$LINENO: result: yes" >&5
19442echo "${ECHO_T}yes" >&6
19443 cat >>confdefs.h <<\_ACEOF
19444#define HAVE_STD_STRING_COMPARE 1
19445_ACEOF
19446
19447else
19448 echo "$as_me: failed program was:" >&5
19449sed 's/^/| /' conftest.$ac_ext >&5
19450
19451echo "$as_me:$LINENO: result: no" >&5
19452echo "${ECHO_T}no" >&6
19453fi
ac1cb8d3 19454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19455
19456 if test "${ac_cv_header_hash_map+set}" = set; then
19457 echo "$as_me:$LINENO: checking for hash_map" >&5
19458echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19459if test "${ac_cv_header_hash_map+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461fi
19462echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19463echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19464else
19465 # Is the header compilable?
19466echo "$as_me:$LINENO: checking hash_map usability" >&5
19467echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19468cat >conftest.$ac_ext <<_ACEOF
19469/* confdefs.h. */
19470_ACEOF
19471cat confdefs.h >>conftest.$ac_ext
19472cat >>conftest.$ac_ext <<_ACEOF
19473/* end confdefs.h. */
19474$ac_includes_default
19475#include <hash_map>
19476_ACEOF
19477rm -f conftest.$ac_objext
19478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19479 (eval $ac_compile) 2>conftest.er1
bdcade0a 19480 ac_status=$?
ac1cb8d3
VS
19481 grep -v '^ *+' conftest.er1 >conftest.err
19482 rm -f conftest.er1
19483 cat conftest.err >&5
bdcade0a
MB
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
ea7db9ff
DE
19486 { ac_try='test -z "$ac_cxx_werror_flag"
19487 || test ! -s conftest.err'
ac1cb8d3
VS
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } &&
19493 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 ac_header_compiler=yes
19500else
19501 echo "$as_me: failed program was:" >&5
19502sed 's/^/| /' conftest.$ac_ext >&5
19503
19504ac_header_compiler=no
19505fi
ac1cb8d3 19506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19507echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19508echo "${ECHO_T}$ac_header_compiler" >&6
19509
19510# Is the header present?
19511echo "$as_me:$LINENO: checking hash_map presence" >&5
19512echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19513cat >conftest.$ac_ext <<_ACEOF
19514/* confdefs.h. */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
19518/* end confdefs.h. */
19519#include <hash_map>
19520_ACEOF
19521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } >/dev/null; then
19529 if test -s conftest.err; then
19530 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19531 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19532 else
19533 ac_cpp_err=
19534 fi
19535else
19536 ac_cpp_err=yes
19537fi
19538if test -z "$ac_cpp_err"; then
19539 ac_header_preproc=yes
19540else
19541 echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544 ac_header_preproc=no
19545fi
19546rm -f conftest.err conftest.$ac_ext
19547echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19548echo "${ECHO_T}$ac_header_preproc" >&6
19549
19550# So? What about this header?
ac1cb8d3
VS
19551case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19552 yes:no: )
bdcade0a
MB
19553 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19554echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19555 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19556echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19557 ac_header_preproc=yes
bdcade0a 19558 ;;
ac1cb8d3 19559 no:yes:* )
bdcade0a
MB
19560 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19561echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19562 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19563echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19564 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19565echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19566 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19567echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19568 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19569echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19570 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19571echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19572 (
19573 cat <<\_ASBOX
ac1cb8d3
VS
19574## ----------------------------------------- ##
19575## Report this to wx-dev@lists.wxwidgets.org ##
19576## ----------------------------------------- ##
bdcade0a
MB
19577_ASBOX
19578 ) |
19579 sed "s/^/$as_me: WARNING: /" >&2
19580 ;;
19581esac
19582echo "$as_me:$LINENO: checking for hash_map" >&5
19583echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19584if test "${ac_cv_header_hash_map+set}" = set; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19586else
19587 ac_cv_header_hash_map=$ac_header_preproc
19588fi
19589echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19590echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19591
19592fi
19593if test $ac_cv_header_hash_map = yes; then
19594 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19595echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19596 cat >conftest.$ac_ext <<_ACEOF
19597/* confdefs.h. */
19598_ACEOF
19599cat confdefs.h >>conftest.$ac_ext
19600cat >>conftest.$ac_ext <<_ACEOF
19601/* end confdefs.h. */
19602#include <hash_map>
19603 #include <hash_set>
19604int
19605main ()
19606{
19607std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19608 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19609 ;
19610 return 0;
19611}
19612_ACEOF
19613rm -f conftest.$ac_objext
19614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19615 (eval $ac_compile) 2>conftest.er1
bdcade0a 19616 ac_status=$?
ac1cb8d3
VS
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
bdcade0a
MB
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
ea7db9ff
DE
19622 { ac_try='test -z "$ac_cxx_werror_flag"
19623 || test ! -s conftest.err'
ac1cb8d3
VS
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; } &&
19629 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 echo "$as_me:$LINENO: result: yes" >&5
19636echo "${ECHO_T}yes" >&6
19637 cat >>confdefs.h <<\_ACEOF
19638#define HAVE_HASH_MAP 1
19639_ACEOF
19640
19641 cat >>confdefs.h <<\_ACEOF
19642#define HAVE_STD_HASH_MAP 1
19643_ACEOF
19644
19645else
19646 echo "$as_me: failed program was:" >&5
19647sed 's/^/| /' conftest.$ac_ext >&5
19648
19649echo "$as_me:$LINENO: result: no" >&5
19650echo "${ECHO_T}no" >&6
19651fi
ac1cb8d3 19652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19653
19654fi
19655
19656
19657
19658 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19659 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19660echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19661if test "${ac_cv_header_ext_hash_map+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663fi
19664echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19665echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19666else
19667 # Is the header compilable?
19668echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19669echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19670cat >conftest.$ac_ext <<_ACEOF
19671/* confdefs.h. */
19672_ACEOF
19673cat confdefs.h >>conftest.$ac_ext
19674cat >>conftest.$ac_ext <<_ACEOF
19675/* end confdefs.h. */
19676$ac_includes_default
19677#include <ext/hash_map>
19678_ACEOF
19679rm -f conftest.$ac_objext
19680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19681 (eval $ac_compile) 2>conftest.er1
bdcade0a 19682 ac_status=$?
ac1cb8d3
VS
19683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
bdcade0a
MB
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
ea7db9ff
DE
19688 { ac_try='test -z "$ac_cxx_werror_flag"
19689 || test ! -s conftest.err'
ac1cb8d3
VS
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; } &&
19695 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19698 ac_status=$?
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; }; then
19701 ac_header_compiler=yes
19702else
19703 echo "$as_me: failed program was:" >&5
19704sed 's/^/| /' conftest.$ac_ext >&5
19705
19706ac_header_compiler=no
19707fi
ac1cb8d3 19708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19710echo "${ECHO_T}$ac_header_compiler" >&6
19711
19712# Is the header present?
19713echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19714echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19715cat >conftest.$ac_ext <<_ACEOF
19716/* confdefs.h. */
19717_ACEOF
19718cat confdefs.h >>conftest.$ac_ext
19719cat >>conftest.$ac_ext <<_ACEOF
19720/* end confdefs.h. */
19721#include <ext/hash_map>
19722_ACEOF
19723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } >/dev/null; then
19731 if test -s conftest.err; then
19732 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19733 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19734 else
19735 ac_cpp_err=
19736 fi
19737else
19738 ac_cpp_err=yes
19739fi
19740if test -z "$ac_cpp_err"; then
19741 ac_header_preproc=yes
19742else
19743 echo "$as_me: failed program was:" >&5
19744sed 's/^/| /' conftest.$ac_ext >&5
19745
19746 ac_header_preproc=no
19747fi
19748rm -f conftest.err conftest.$ac_ext
19749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19750echo "${ECHO_T}$ac_header_preproc" >&6
19751
19752# So? What about this header?
ac1cb8d3
VS
19753case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19754 yes:no: )
bdcade0a
MB
19755 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19756echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19757 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19758echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19759 ac_header_preproc=yes
bdcade0a 19760 ;;
ac1cb8d3 19761 no:yes:* )
bdcade0a
MB
19762 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19763echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19764 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19765echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19767echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19768 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19769echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19770 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19771echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19772 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19773echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19774 (
19775 cat <<\_ASBOX
ac1cb8d3
VS
19776## ----------------------------------------- ##
19777## Report this to wx-dev@lists.wxwidgets.org ##
19778## ----------------------------------------- ##
bdcade0a
MB
19779_ASBOX
19780 ) |
19781 sed "s/^/$as_me: WARNING: /" >&2
19782 ;;
19783esac
19784echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19785echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19786if test "${ac_cv_header_ext_hash_map+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788else
19789 ac_cv_header_ext_hash_map=$ac_header_preproc
19790fi
19791echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19792echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19793
19794fi
19795if test $ac_cv_header_ext_hash_map = yes; then
19796 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19797echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19798 cat >conftest.$ac_ext <<_ACEOF
19799/* confdefs.h. */
19800_ACEOF
19801cat confdefs.h >>conftest.$ac_ext
19802cat >>conftest.$ac_ext <<_ACEOF
19803/* end confdefs.h. */
19804#include <ext/hash_map>
19805 #include <ext/hash_set>
19806int
19807main ()
19808{
19809__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19810 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19811 ;
19812 return 0;
19813}
19814_ACEOF
19815rm -f conftest.$ac_objext
19816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19817 (eval $ac_compile) 2>conftest.er1
bdcade0a 19818 ac_status=$?
ac1cb8d3
VS
19819 grep -v '^ *+' conftest.er1 >conftest.err
19820 rm -f conftest.er1
19821 cat conftest.err >&5
bdcade0a
MB
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
ea7db9ff
DE
19824 { ac_try='test -z "$ac_cxx_werror_flag"
19825 || test ! -s conftest.err'
ac1cb8d3
VS
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; } &&
19831 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
19837 echo "$as_me:$LINENO: result: yes" >&5
19838echo "${ECHO_T}yes" >&6
19839 cat >>confdefs.h <<\_ACEOF
19840#define HAVE_EXT_HASH_MAP 1
19841_ACEOF
19842
19843 cat >>confdefs.h <<\_ACEOF
19844#define HAVE_GNU_CXX_HASH_MAP 1
19845_ACEOF
19846
19847else
19848 echo "$as_me: failed program was:" >&5
19849sed 's/^/| /' conftest.$ac_ext >&5
19850
19851echo "$as_me:$LINENO: result: no" >&5
19852echo "${ECHO_T}no" >&6
19853fi
ac1cb8d3 19854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19855
19856fi
19857
19858
a848cd7e
SC
19859
19860 ac_ext=c
19861ac_cpp='$CPP $CPPFLAGS'
19862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19864ac_compiler_gnu=$ac_cv_c_compiler_gnu
19865
19866fi
19867
19868
19869SEARCH_INCLUDE="\
19870 /usr/local/include \
19871 \
19872 /usr/Motif-2.1/include \
19873 /usr/Motif-1.2/include \
19874 /usr/include/Motif1.2 \
19875 /opt/xpm/include/X11 \
19876 /opt/GBxpm/include/ \
19877 /opt/GBxpm/X11/include/ \
19878 \
19879 /usr/dt/include \
19880 /usr/openwin/include \
19881 \
19882 /usr/include/Xm \
19883 \
19884 /usr/X11R6/include \
19885 /usr/X11R6.4/include \
19886 /usr/X11R5/include \
19887 /usr/X11R4/include \
19888 \
19889 /usr/include/X11R6 \
19890 /usr/include/X11R5 \
19891 /usr/include/X11R4 \
19892 \
19893 /usr/local/X11R6/include \
19894 /usr/local/X11R5/include \
19895 /usr/local/X11R4/include \
19896 \
19897 /usr/local/include/X11R6 \
19898 /usr/local/include/X11R5 \
19899 /usr/local/include/X11R4 \
19900 \
19901 /usr/X11/include \
19902 /usr/include/X11 \
19903 /usr/local/X11/include \
19904 /usr/local/include/X11 \
19905 \
19906 /usr/X386/include \
19907 /usr/x386/include \
19908 /usr/XFree86/include/X11 \
19909 \
19910 X:/XFree86/include \
19911 X:/XFree86/include/X11 \
19912 \
19913 /usr/include/gtk \
19914 /usr/local/include/gtk \
19915 /usr/include/glib \
19916 /usr/local/include/glib \
19917 \
19918 /usr/include/qt \
19919 /usr/local/include/qt \
19920 \
19921 /usr/local/arm/3.3.2/include \
19922 \
19923 /usr/include/windows \
19924 /usr/include/wine \
19925 /usr/local/include/wine \
19926 \
19927 /usr/unsupported/include \
19928 /usr/athena/include \
19929 /usr/local/x11r5/include \
19930 /usr/lpp/Xamples/include \
19931 \
19932 /usr/openwin/share/include"
19933
19934SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19935
19936
19937cat >confcache <<\_ACEOF
19938# This file is a shell script that caches the results of configure
19939# tests run on this system so they can be shared between configure
19940# scripts and configure runs, see configure's option --config-cache.
19941# It is not useful on other systems. If it contains results you don't
19942# want to keep, you may remove or edit it.
19943#
19944# config.status only pays attention to the cache file if you give it
19945# the --recheck option to rerun configure.
19946#
19947# `ac_cv_env_foo' variables (set or unset) will be overridden when
19948# loading this file, other *unset* `ac_cv_foo' will be assigned the
19949# following values.
19950
19951_ACEOF
19952
19953# The following way of writing the cache mishandles newlines in values,
19954# but we know of no workaround that is simple, portable, and efficient.
19955# So, don't put newlines in cache variables' values.
19956# Ultrix sh set writes to stderr and can't be redirected directly,
19957# and sets the high bit in the cache file unless we assign to the vars.
19958{
19959 (set) 2>&1 |
19960 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19961 *ac_space=\ *)
19962 # `set' does not quote correctly, so add quotes (double-quote
19963 # substitution turns \\\\ into \\, and sed turns \\ into \).
19964 sed -n \
ac1cb8d3
VS
19965 "s/'/'\\\\''/g;
19966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19967 ;;
19968 *)
19969 # `set' quotes correctly as required by POSIX, so do not add quotes.
19970 sed -n \
ac1cb8d3 19971 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19972 ;;
19973 esac;
19974} |
19975 sed '
19976 t clear
19977 : clear
19978 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19979 t end
19980 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19981 : end' >>confcache
19982if diff $cache_file confcache >/dev/null 2>&1; then :; else
19983 if test -w $cache_file; then
19984 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19985 cat confcache >$cache_file
19986 else
19987 echo "not updating unwritable cache $cache_file"
19988 fi
19989fi
19990rm -f confcache
19991
19992if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19993 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19994echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19995if test "${wx_cv_lib_glibc21+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19997else
19998
19999 cat >conftest.$ac_ext <<_ACEOF
20000/* confdefs.h. */
20001_ACEOF
20002cat confdefs.h >>conftest.$ac_ext
20003cat >>conftest.$ac_ext <<_ACEOF
20004/* end confdefs.h. */
20005#include <features.h>
20006int
20007main ()
20008{
20009
20010 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20011 #error not glibc2.1
20012 #endif
20013
20014 ;
20015 return 0;
20016}
20017_ACEOF
20018rm -f conftest.$ac_objext
20019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20020 (eval $ac_compile) 2>conftest.er1
a848cd7e 20021 ac_status=$?
ac1cb8d3
VS
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
a848cd7e
SC
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
ea7db9ff
DE
20027 { ac_try='test -z "$ac_c_werror_flag"
20028 || test ! -s conftest.err'
ac1cb8d3
VS
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040
20041 wx_cv_lib_glibc21=yes
20042
20043else
20044 echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
20047
20048 wx_cv_lib_glibc21=no
20049
20050
20051fi
ac1cb8d3 20052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20053
20054fi
20055echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20056echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20057 if test "$wx_cv_lib_glibc21" = "yes"; then
20058 cat >>confdefs.h <<\_ACEOF
20059#define wxHAVE_GLIBC2 1
20060_ACEOF
20061
20062 fi
20063fi
20064
20065if test "x$wx_cv_lib_glibc21" = "xyes"; then
20066 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20067 cat >>confdefs.h <<\_ACEOF
20068#define _GNU_SOURCE 1
20069_ACEOF
20070
20071 fi
20072fi
20073
20074
20075
20076if test "$wxUSE_REGEX" != "no"; then
20077 cat >>confdefs.h <<\_ACEOF
20078#define wxUSE_REGEX 1
20079_ACEOF
20080
20081
20082 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20083 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20084echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20085 wxUSE_REGEX=builtin
20086 fi
20087
20088 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20089 if test "${ac_cv_header_regex_h+set}" = set; then
20090 echo "$as_me:$LINENO: checking for regex.h" >&5
20091echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20092if test "${ac_cv_header_regex_h+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094fi
20095echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20096echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20097else
20098 # Is the header compilable?
20099echo "$as_me:$LINENO: checking regex.h usability" >&5
20100echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20101cat >conftest.$ac_ext <<_ACEOF
20102/* confdefs.h. */
20103_ACEOF
20104cat confdefs.h >>conftest.$ac_ext
20105cat >>conftest.$ac_ext <<_ACEOF
20106/* end confdefs.h. */
20107$ac_includes_default
20108#include <regex.h>
20109_ACEOF
20110rm -f conftest.$ac_objext
20111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20112 (eval $ac_compile) 2>conftest.er1
a848cd7e 20113 ac_status=$?
ac1cb8d3
VS
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
a848cd7e
SC
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
ea7db9ff
DE
20119 { ac_try='test -z "$ac_c_werror_flag"
20120 || test ! -s conftest.err'
ac1cb8d3
VS
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 ac_header_compiler=yes
20133else
20134 echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
20137ac_header_compiler=no
20138fi
ac1cb8d3 20139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20141echo "${ECHO_T}$ac_header_compiler" >&6
20142
20143# Is the header present?
20144echo "$as_me:$LINENO: checking regex.h presence" >&5
20145echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20146cat >conftest.$ac_ext <<_ACEOF
20147/* confdefs.h. */
20148_ACEOF
20149cat confdefs.h >>conftest.$ac_ext
20150cat >>conftest.$ac_ext <<_ACEOF
20151/* end confdefs.h. */
20152#include <regex.h>
20153_ACEOF
20154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20156 ac_status=$?
20157 grep -v '^ *+' conftest.er1 >conftest.err
20158 rm -f conftest.er1
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } >/dev/null; then
20162 if test -s conftest.err; then
20163 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20165 else
20166 ac_cpp_err=
20167 fi
20168else
20169 ac_cpp_err=yes
20170fi
20171if test -z "$ac_cpp_err"; then
20172 ac_header_preproc=yes
20173else
20174 echo "$as_me: failed program was:" >&5
20175sed 's/^/| /' conftest.$ac_ext >&5
20176
20177 ac_header_preproc=no
20178fi
20179rm -f conftest.err conftest.$ac_ext
20180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20181echo "${ECHO_T}$ac_header_preproc" >&6
20182
20183# So? What about this header?
ac1cb8d3
VS
20184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20185 yes:no: )
a848cd7e
SC
20186 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20187echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20188 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20189echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20190 ac_header_preproc=yes
a848cd7e 20191 ;;
ac1cb8d3 20192 no:yes:* )
a848cd7e
SC
20193 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20194echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20195 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20196echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20197 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20198echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20199 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20200echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20201 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20202echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20203 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20204echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20205 (
20206 cat <<\_ASBOX
ac1cb8d3
VS
20207## ----------------------------------------- ##
20208## Report this to wx-dev@lists.wxwidgets.org ##
20209## ----------------------------------------- ##
a848cd7e
SC
20210_ASBOX
20211 ) |
20212 sed "s/^/$as_me: WARNING: /" >&2
20213 ;;
20214esac
20215echo "$as_me:$LINENO: checking for regex.h" >&5
20216echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20217if test "${ac_cv_header_regex_h+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20219else
20220 ac_cv_header_regex_h=$ac_header_preproc
20221fi
20222echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20223echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20224
20225fi
20226if test $ac_cv_header_regex_h = yes; then
20227
20228for ac_func in regcomp
20229do
20230as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20231echo "$as_me:$LINENO: checking for $ac_func" >&5
20232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20233if eval "test \"\${$as_ac_var+set}\" = set"; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20235else
20236 cat >conftest.$ac_ext <<_ACEOF
20237/* confdefs.h. */
20238_ACEOF
20239cat confdefs.h >>conftest.$ac_ext
20240cat >>conftest.$ac_ext <<_ACEOF
20241/* end confdefs.h. */
ac1cb8d3
VS
20242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20244#define $ac_func innocuous_$ac_func
20245
a848cd7e
SC
20246/* System header to define __stub macros and hopefully few prototypes,
20247 which can conflict with char $ac_func (); below.
20248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20249 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20250
a848cd7e
SC
20251#ifdef __STDC__
20252# include <limits.h>
20253#else
20254# include <assert.h>
20255#endif
ac1cb8d3
VS
20256
20257#undef $ac_func
20258
a848cd7e
SC
20259/* Override any gcc2 internal prototype to avoid an error. */
20260#ifdef __cplusplus
20261extern "C"
20262{
20263#endif
20264/* We use char because int might match the return type of a gcc2
20265 builtin and then its argument prototype would still apply. */
20266char $ac_func ();
20267/* The GNU C library defines this for functions which it implements
20268 to always fail with ENOSYS. Some functions are actually named
20269 something starting with __ and the normal name is an alias. */
20270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20271choke me
20272#else
20273char (*f) () = $ac_func;
20274#endif
20275#ifdef __cplusplus
20276}
20277#endif
20278
20279int
20280main ()
20281{
20282return f != $ac_func;
20283 ;
20284 return 0;
20285}
20286_ACEOF
20287rm -f conftest.$ac_objext conftest$ac_exeext
20288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20289 (eval $ac_link) 2>conftest.er1
a848cd7e 20290 ac_status=$?
ac1cb8d3
VS
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
a848cd7e
SC
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
ea7db9ff
DE
20296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
ac1cb8d3
VS
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 eval "$as_ac_var=yes"
20310else
20311 echo "$as_me: failed program was:" >&5
20312sed 's/^/| /' conftest.$ac_ext >&5
20313
20314eval "$as_ac_var=no"
20315fi
ac1cb8d3
VS
20316rm -f conftest.err conftest.$ac_objext \
20317 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20318fi
20319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20320echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20321if test `eval echo '${'$as_ac_var'}'` = yes; then
20322 cat >>confdefs.h <<_ACEOF
20323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20324_ACEOF
20325
20326fi
20327done
20328
20329fi
20330
20331
20332
20333 if test "x$ac_cv_func_regcomp" != "xyes"; then
20334 if test "$wxUSE_REGEX" = "sys" ; then
20335 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20336echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20337 { (exit 1); exit 1; }; }
20338 else
20339 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20340echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20341 wxUSE_REGEX=builtin
20342 fi
20343 else
20344 wxUSE_REGEX=sys
20345 cat >>confdefs.h <<\_ACEOF
20346#define WX_NO_REGEX_ADVANCED 1
20347_ACEOF
20348
20349 fi
20350 fi
20351fi
20352
20353
20354ZLIB_LINK=
20355if test "$wxUSE_ZLIB" != "no" ; then
20356 cat >>confdefs.h <<\_ACEOF
20357#define wxUSE_ZLIB 1
20358_ACEOF
20359
20360
20361 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20362 if test "$USE_DARWIN" = 1; then
20363 system_zlib_h_ok="yes"
20364 else
20365 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20366echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20367if test "${ac_cv_header_zlib_h+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20369else
20370 if test "$cross_compiling" = yes; then
20371 unset ac_cv_header_zlib_h
20372
20373else
20374 cat >conftest.$ac_ext <<_ACEOF
20375/* confdefs.h. */
20376_ACEOF
20377cat confdefs.h >>conftest.$ac_ext
20378cat >>conftest.$ac_ext <<_ACEOF
20379/* end confdefs.h. */
20380
20381 #include <zlib.h>
20382 #include <stdio.h>
20383
20384 int main()
20385 {
20386 FILE *f=fopen("conftestval", "w");
20387 if (!f) exit(1);
20388 fprintf(f, "%s",
20389 ZLIB_VERSION[0] == '1' &&
20390 (ZLIB_VERSION[2] > '1' ||
20391 (ZLIB_VERSION[2] == '1' &&
20392 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20393 exit(0);
20394 }
20395
20396_ACEOF
20397rm -f conftest$ac_exeext
20398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20399 (eval $ac_link) 2>&5
20400 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 ac_cv_header_zlib_h=`cat conftestval`
20409else
20410 echo "$as_me: program exited with status $ac_status" >&5
20411echo "$as_me: failed program was:" >&5
20412sed 's/^/| /' conftest.$ac_ext >&5
20413
20414( exit $ac_status )
20415ac_cv_header_zlib_h=no
20416fi
ac1cb8d3 20417rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20418fi
20419
20420fi
20421echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20422echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20423 if test "${ac_cv_header_zlib_h+set}" = set; then
20424 echo "$as_me:$LINENO: checking for zlib.h" >&5
20425echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20426if test "${ac_cv_header_zlib_h+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20428fi
20429echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20430echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20431else
20432 # Is the header compilable?
20433echo "$as_me:$LINENO: checking zlib.h usability" >&5
20434echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20435cat >conftest.$ac_ext <<_ACEOF
20436/* confdefs.h. */
20437_ACEOF
20438cat confdefs.h >>conftest.$ac_ext
20439cat >>conftest.$ac_ext <<_ACEOF
20440/* end confdefs.h. */
20441$ac_includes_default
20442#include <zlib.h>
20443_ACEOF
20444rm -f conftest.$ac_objext
20445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20446 (eval $ac_compile) 2>conftest.er1
a848cd7e 20447 ac_status=$?
ac1cb8d3
VS
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
a848cd7e
SC
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } &&
ea7db9ff
DE
20453 { ac_try='test -z "$ac_c_werror_flag"
20454 || test ! -s conftest.err'
ac1cb8d3
VS
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ac_header_compiler=yes
20467else
20468 echo "$as_me: failed program was:" >&5
20469sed 's/^/| /' conftest.$ac_ext >&5
20470
20471ac_header_compiler=no
20472fi
ac1cb8d3 20473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20474echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20475echo "${ECHO_T}$ac_header_compiler" >&6
20476
20477# Is the header present?
20478echo "$as_me:$LINENO: checking zlib.h presence" >&5
20479echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20480cat >conftest.$ac_ext <<_ACEOF
20481/* confdefs.h. */
20482_ACEOF
20483cat confdefs.h >>conftest.$ac_ext
20484cat >>conftest.$ac_ext <<_ACEOF
20485/* end confdefs.h. */
20486#include <zlib.h>
20487_ACEOF
20488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20490 ac_status=$?
20491 grep -v '^ *+' conftest.er1 >conftest.err
20492 rm -f conftest.er1
20493 cat conftest.err >&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } >/dev/null; then
20496 if test -s conftest.err; then
20497 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20499 else
20500 ac_cpp_err=
20501 fi
20502else
20503 ac_cpp_err=yes
20504fi
20505if test -z "$ac_cpp_err"; then
20506 ac_header_preproc=yes
20507else
20508 echo "$as_me: failed program was:" >&5
20509sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 ac_header_preproc=no
20512fi
20513rm -f conftest.err conftest.$ac_ext
20514echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20515echo "${ECHO_T}$ac_header_preproc" >&6
20516
20517# So? What about this header?
ac1cb8d3
VS
20518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20519 yes:no: )
a848cd7e
SC
20520 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20521echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20522 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20523echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20524 ac_header_preproc=yes
a848cd7e 20525 ;;
ac1cb8d3 20526 no:yes:* )
a848cd7e
SC
20527 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20528echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20529 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20530echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20531 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20532echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20534echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20535 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20536echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20537 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20538echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20539 (
20540 cat <<\_ASBOX
ac1cb8d3
VS
20541## ----------------------------------------- ##
20542## Report this to wx-dev@lists.wxwidgets.org ##
20543## ----------------------------------------- ##
a848cd7e
SC
20544_ASBOX
20545 ) |
20546 sed "s/^/$as_me: WARNING: /" >&2
20547 ;;
20548esac
20549echo "$as_me:$LINENO: checking for zlib.h" >&5
20550echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20551if test "${ac_cv_header_zlib_h+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20553else
20554 ac_cv_header_zlib_h=$ac_header_preproc
20555fi
20556echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20557echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20558
20559fi
20560
20561
20562
20563 system_zlib_h_ok=$ac_cv_header_zlib_h
20564 fi
20565
20566 if test "$system_zlib_h_ok" = "yes"; then
20567 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20568echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20569if test "${ac_cv_lib_z_deflate+set}" = set; then
20570 echo $ECHO_N "(cached) $ECHO_C" >&6
20571else
20572 ac_check_lib_save_LIBS=$LIBS
20573LIBS="-lz $LIBS"
20574cat >conftest.$ac_ext <<_ACEOF
20575/* confdefs.h. */
20576_ACEOF
20577cat confdefs.h >>conftest.$ac_ext
20578cat >>conftest.$ac_ext <<_ACEOF
20579/* end confdefs.h. */
20580
20581/* Override any gcc2 internal prototype to avoid an error. */
20582#ifdef __cplusplus
20583extern "C"
20584#endif
20585/* We use char because int might match the return type of a gcc2
20586 builtin and then its argument prototype would still apply. */
20587char deflate ();
20588int
20589main ()
20590{
20591deflate ();
20592 ;
20593 return 0;
20594}
20595_ACEOF
20596rm -f conftest.$ac_objext conftest$ac_exeext
20597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20598 (eval $ac_link) 2>conftest.er1
a848cd7e 20599 ac_status=$?
ac1cb8d3
VS
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
a848cd7e
SC
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
ea7db9ff
DE
20605 { ac_try='test -z "$ac_c_werror_flag"
20606 || test ! -s conftest.err'
ac1cb8d3
VS
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; } &&
20612 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 ac_cv_lib_z_deflate=yes
20619else
20620 echo "$as_me: failed program was:" >&5
20621sed 's/^/| /' conftest.$ac_ext >&5
20622
20623ac_cv_lib_z_deflate=no
20624fi
ac1cb8d3
VS
20625rm -f conftest.err conftest.$ac_objext \
20626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20627LIBS=$ac_check_lib_save_LIBS
20628fi
20629echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20630echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20631if test $ac_cv_lib_z_deflate = yes; then
20632 ZLIB_LINK=" -lz"
20633fi
20634
20635 fi
20636
20637 if test "x$ZLIB_LINK" = "x" ; then
20638 if test "$wxUSE_ZLIB" = "sys" ; then
20639 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20640echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20641 { (exit 1); exit 1; }; }
20642 else
20643 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20644echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20645 wxUSE_ZLIB=builtin
20646 fi
20647 else
20648 wxUSE_ZLIB=sys
20649 fi
20650 fi
20651fi
20652
20653
20654PNG_LINK=
20655if test "$wxUSE_LIBPNG" != "no" ; then
20656 cat >>confdefs.h <<\_ACEOF
20657#define wxUSE_LIBPNG 1
20658_ACEOF
20659
20660
20661 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20662 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20663echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20664 wxUSE_LIBPNG=sys
20665 fi
20666
20667 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20668 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20669echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20670 wxUSE_LIBPNG=builtin
20671 fi
20672
20673 if test "$wxUSE_MGL" != 1 ; then
20674 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20675 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20676echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20677if test "${ac_cv_header_png_h+set}" = set; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20679else
20680 if test "$cross_compiling" = yes; then
20681 unset ac_cv_header_png_h
20682
20683else
20684 cat >conftest.$ac_ext <<_ACEOF
20685/* confdefs.h. */
20686_ACEOF
20687cat confdefs.h >>conftest.$ac_ext
20688cat >>conftest.$ac_ext <<_ACEOF
20689/* end confdefs.h. */
20690
20691 #include <png.h>
20692 #include <stdio.h>
20693
20694 int main()
20695 {
20696 FILE *f=fopen("conftestval", "w");
20697 if (!f) exit(1);
20698 fprintf(f, "%s",
20699 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20700 exit(0);
20701 }
20702
20703_ACEOF
20704rm -f conftest$ac_exeext
20705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20706 (eval $ac_link) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 ac_cv_header_png_h=`cat conftestval`
20716else
20717 echo "$as_me: program exited with status $ac_status" >&5
20718echo "$as_me: failed program was:" >&5
20719sed 's/^/| /' conftest.$ac_ext >&5
20720
20721( exit $ac_status )
20722ac_cv_header_png_h=no
20723fi
ac1cb8d3 20724rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20725fi
20726
20727fi
20728echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20729echo "${ECHO_T}$ac_cv_header_png_h" >&6
20730 if test "${ac_cv_header_png_h+set}" = set; then
20731 echo "$as_me:$LINENO: checking for png.h" >&5
20732echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20733if test "${ac_cv_header_png_h+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20735fi
20736echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20737echo "${ECHO_T}$ac_cv_header_png_h" >&6
20738else
20739 # Is the header compilable?
20740echo "$as_me:$LINENO: checking png.h usability" >&5
20741echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20742cat >conftest.$ac_ext <<_ACEOF
20743/* confdefs.h. */
20744_ACEOF
20745cat confdefs.h >>conftest.$ac_ext
20746cat >>conftest.$ac_ext <<_ACEOF
20747/* end confdefs.h. */
20748$ac_includes_default
20749#include <png.h>
20750_ACEOF
20751rm -f conftest.$ac_objext
20752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20753 (eval $ac_compile) 2>conftest.er1
a848cd7e 20754 ac_status=$?
ac1cb8d3
VS
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
a848cd7e
SC
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
ea7db9ff
DE
20760 { ac_try='test -z "$ac_c_werror_flag"
20761 || test ! -s conftest.err'
ac1cb8d3
VS
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; } &&
20767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; }; then
20773 ac_header_compiler=yes
20774else
20775 echo "$as_me: failed program was:" >&5
20776sed 's/^/| /' conftest.$ac_ext >&5
20777
20778ac_header_compiler=no
20779fi
ac1cb8d3 20780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20782echo "${ECHO_T}$ac_header_compiler" >&6
20783
20784# Is the header present?
20785echo "$as_me:$LINENO: checking png.h presence" >&5
20786echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20787cat >conftest.$ac_ext <<_ACEOF
20788/* confdefs.h. */
20789_ACEOF
20790cat confdefs.h >>conftest.$ac_ext
20791cat >>conftest.$ac_ext <<_ACEOF
20792/* end confdefs.h. */
20793#include <png.h>
20794_ACEOF
20795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } >/dev/null; then
20803 if test -s conftest.err; then
20804 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20806 else
20807 ac_cpp_err=
20808 fi
20809else
20810 ac_cpp_err=yes
20811fi
20812if test -z "$ac_cpp_err"; then
20813 ac_header_preproc=yes
20814else
20815 echo "$as_me: failed program was:" >&5
20816sed 's/^/| /' conftest.$ac_ext >&5
20817
20818 ac_header_preproc=no
20819fi
20820rm -f conftest.err conftest.$ac_ext
20821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20822echo "${ECHO_T}$ac_header_preproc" >&6
20823
20824# So? What about this header?
ac1cb8d3
VS
20825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20826 yes:no: )
a848cd7e
SC
20827 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20828echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20829 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20830echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20831 ac_header_preproc=yes
a848cd7e 20832 ;;
ac1cb8d3 20833 no:yes:* )
a848cd7e
SC
20834 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20835echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20836 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20837echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20838 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20839echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20840 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20841echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20842 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20843echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20844 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20845echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20846 (
20847 cat <<\_ASBOX
ac1cb8d3
VS
20848## ----------------------------------------- ##
20849## Report this to wx-dev@lists.wxwidgets.org ##
20850## ----------------------------------------- ##
a848cd7e
SC
20851_ASBOX
20852 ) |
20853 sed "s/^/$as_me: WARNING: /" >&2
20854 ;;
20855esac
20856echo "$as_me:$LINENO: checking for png.h" >&5
20857echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20858if test "${ac_cv_header_png_h+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20860else
20861 ac_cv_header_png_h=$ac_header_preproc
20862fi
20863echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20864echo "${ECHO_T}$ac_cv_header_png_h" >&6
20865
20866fi
20867
20868
20869
20870 if test "$ac_cv_header_png_h" = "yes"; then
20871 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20872echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20873if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20875else
20876 ac_check_lib_save_LIBS=$LIBS
20877LIBS="-lpng -lz -lm $LIBS"
20878cat >conftest.$ac_ext <<_ACEOF
20879/* confdefs.h. */
20880_ACEOF
20881cat confdefs.h >>conftest.$ac_ext
20882cat >>conftest.$ac_ext <<_ACEOF
20883/* end confdefs.h. */
20884
20885/* Override any gcc2 internal prototype to avoid an error. */
20886#ifdef __cplusplus
20887extern "C"
20888#endif
20889/* We use char because int might match the return type of a gcc2
20890 builtin and then its argument prototype would still apply. */
20891char png_check_sig ();
20892int
20893main ()
20894{
20895png_check_sig ();
20896 ;
20897 return 0;
20898}
20899_ACEOF
20900rm -f conftest.$ac_objext conftest$ac_exeext
20901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20902 (eval $ac_link) 2>conftest.er1
a848cd7e 20903 ac_status=$?
ac1cb8d3
VS
20904 grep -v '^ *+' conftest.er1 >conftest.err
20905 rm -f conftest.er1
20906 cat conftest.err >&5
a848cd7e
SC
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } &&
ea7db9ff
DE
20909 { ac_try='test -z "$ac_c_werror_flag"
20910 || test ! -s conftest.err'
ac1cb8d3
VS
20911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20912 (eval $ac_try) 2>&5
20913 ac_status=$?
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; } &&
20916 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; }; then
20922 ac_cv_lib_png_png_check_sig=yes
20923else
20924 echo "$as_me: failed program was:" >&5
20925sed 's/^/| /' conftest.$ac_ext >&5
20926
20927ac_cv_lib_png_png_check_sig=no
20928fi
ac1cb8d3
VS
20929rm -f conftest.err conftest.$ac_objext \
20930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20931LIBS=$ac_check_lib_save_LIBS
20932fi
20933echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20934echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20935if test $ac_cv_lib_png_png_check_sig = yes; then
20936 PNG_LINK=" -lpng -lz"
20937fi
20938
20939 fi
20940
20941 if test "x$PNG_LINK" = "x" ; then
20942 if test "$wxUSE_LIBPNG" = "sys" ; then
20943 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20944echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20945 { (exit 1); exit 1; }; }
20946 else
20947 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20948echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20949 wxUSE_LIBPNG=builtin
20950 fi
20951 else
20952 wxUSE_LIBPNG=sys
20953 fi
20954 fi
20955 fi
20956
20957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20958fi
20959
20960
20961JPEG_LINK=
20962if test "$wxUSE_LIBJPEG" != "no" ; then
20963 cat >>confdefs.h <<\_ACEOF
20964#define wxUSE_LIBJPEG 1
20965_ACEOF
20966
20967
20968 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20969 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20970echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20971 wxUSE_LIBJPEG=sys
20972 fi
20973
20974 if test "$wxUSE_MGL" != 1 ; then
20975 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20976 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20977echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20978 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980else
20981 cat >conftest.$ac_ext <<_ACEOF
20982/* confdefs.h. */
20983_ACEOF
20984cat confdefs.h >>conftest.$ac_ext
20985cat >>conftest.$ac_ext <<_ACEOF
20986/* end confdefs.h. */
20987
20988 #undef HAVE_STDLIB_H
20989 #include <stdio.h>
20990 #include <jpeglib.h>
20991
20992int
20993main ()
20994{
20995
20996
20997 ;
20998 return 0;
20999}
21000_ACEOF
21001rm -f conftest.$ac_objext
21002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21003 (eval $ac_compile) 2>conftest.er1
a848cd7e 21004 ac_status=$?
ac1cb8d3
VS
21005 grep -v '^ *+' conftest.er1 >conftest.err
21006 rm -f conftest.er1
21007 cat conftest.err >&5
a848cd7e
SC
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
ea7db9ff
DE
21010 { ac_try='test -z "$ac_c_werror_flag"
21011 || test ! -s conftest.err'
ac1cb8d3
VS
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; } &&
21017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ac_cv_header_jpeglib_h=yes
21024else
21025 echo "$as_me: failed program was:" >&5
21026sed 's/^/| /' conftest.$ac_ext >&5
21027
21028ac_cv_header_jpeglib_h=no
21029
21030fi
ac1cb8d3 21031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21032
21033fi
21034
21035 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21036echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21037
21038 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21039 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21040echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21041if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21043else
21044 ac_check_lib_save_LIBS=$LIBS
21045LIBS="-ljpeg $LIBS"
21046cat >conftest.$ac_ext <<_ACEOF
21047/* confdefs.h. */
21048_ACEOF
21049cat confdefs.h >>conftest.$ac_ext
21050cat >>conftest.$ac_ext <<_ACEOF
21051/* end confdefs.h. */
21052
21053/* Override any gcc2 internal prototype to avoid an error. */
21054#ifdef __cplusplus
21055extern "C"
21056#endif
21057/* We use char because int might match the return type of a gcc2
21058 builtin and then its argument prototype would still apply. */
21059char jpeg_read_header ();
21060int
21061main ()
21062{
21063jpeg_read_header ();
21064 ;
21065 return 0;
21066}
21067_ACEOF
21068rm -f conftest.$ac_objext conftest$ac_exeext
21069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21070 (eval $ac_link) 2>conftest.er1
a848cd7e 21071 ac_status=$?
ac1cb8d3
VS
21072 grep -v '^ *+' conftest.er1 >conftest.err
21073 rm -f conftest.er1
21074 cat conftest.err >&5
a848cd7e
SC
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } &&
ea7db9ff
DE
21077 { ac_try='test -z "$ac_c_werror_flag"
21078 || test ! -s conftest.err'
ac1cb8d3
VS
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; } &&
21084 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21087 ac_status=$?
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; }; then
21090 ac_cv_lib_jpeg_jpeg_read_header=yes
21091else
21092 echo "$as_me: failed program was:" >&5
21093sed 's/^/| /' conftest.$ac_ext >&5
21094
21095ac_cv_lib_jpeg_jpeg_read_header=no
21096fi
ac1cb8d3
VS
21097rm -f conftest.err conftest.$ac_objext \
21098 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21099LIBS=$ac_check_lib_save_LIBS
21100fi
21101echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21102echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21103if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21104 JPEG_LINK=" -ljpeg"
21105fi
21106
21107 fi
21108
21109 if test "x$JPEG_LINK" = "x" ; then
21110 if test "$wxUSE_LIBJPEG" = "sys" ; then
21111 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21112echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21113 { (exit 1); exit 1; }; }
21114 else
21115 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21116echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21117 wxUSE_LIBJPEG=builtin
21118 fi
21119 else
21120 wxUSE_LIBJPEG=sys
21121 fi
21122 fi
21123 fi
21124fi
21125
21126
21127TIFF_LINK=
21128TIFF_PREREQ_LINKS=-lm
21129if test "$wxUSE_LIBTIFF" != "no" ; then
21130 cat >>confdefs.h <<\_ACEOF
21131#define wxUSE_LIBTIFF 1
21132_ACEOF
21133
21134
21135 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21136 if test "$wxUSE_LIBJPEG" = "sys"; then
21137 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21138 fi
21139 if test "$wxUSE_ZLIB" = "sys"; then
21140 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21141 fi
21142 if test "${ac_cv_header_tiffio_h+set}" = set; then
21143 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21144echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21145if test "${ac_cv_header_tiffio_h+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21147fi
21148echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21149echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21150else
21151 # Is the header compilable?
21152echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21153echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21154cat >conftest.$ac_ext <<_ACEOF
21155/* confdefs.h. */
21156_ACEOF
21157cat confdefs.h >>conftest.$ac_ext
21158cat >>conftest.$ac_ext <<_ACEOF
21159/* end confdefs.h. */
21160$ac_includes_default
21161#include <tiffio.h>
21162_ACEOF
21163rm -f conftest.$ac_objext
21164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21165 (eval $ac_compile) 2>conftest.er1
a848cd7e 21166 ac_status=$?
ac1cb8d3
VS
21167 grep -v '^ *+' conftest.er1 >conftest.err
21168 rm -f conftest.er1
21169 cat conftest.err >&5
a848cd7e
SC
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
ea7db9ff
DE
21172 { ac_try='test -z "$ac_c_werror_flag"
21173 || test ! -s conftest.err'
ac1cb8d3
VS
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } &&
21179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; }; then
21185 ac_header_compiler=yes
21186else
21187 echo "$as_me: failed program was:" >&5
21188sed 's/^/| /' conftest.$ac_ext >&5
21189
21190ac_header_compiler=no
21191fi
ac1cb8d3 21192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21193echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21194echo "${ECHO_T}$ac_header_compiler" >&6
21195
21196# Is the header present?
21197echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21198echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21199cat >conftest.$ac_ext <<_ACEOF
21200/* confdefs.h. */
21201_ACEOF
21202cat confdefs.h >>conftest.$ac_ext
21203cat >>conftest.$ac_ext <<_ACEOF
21204/* end confdefs.h. */
21205#include <tiffio.h>
21206_ACEOF
21207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21209 ac_status=$?
21210 grep -v '^ *+' conftest.er1 >conftest.err
21211 rm -f conftest.er1
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } >/dev/null; then
21215 if test -s conftest.err; then
21216 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21218 else
21219 ac_cpp_err=
21220 fi
21221else
21222 ac_cpp_err=yes
21223fi
21224if test -z "$ac_cpp_err"; then
21225 ac_header_preproc=yes
21226else
21227 echo "$as_me: failed program was:" >&5
21228sed 's/^/| /' conftest.$ac_ext >&5
21229
21230 ac_header_preproc=no
21231fi
21232rm -f conftest.err conftest.$ac_ext
21233echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21234echo "${ECHO_T}$ac_header_preproc" >&6
21235
21236# So? What about this header?
ac1cb8d3
VS
21237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21238 yes:no: )
a848cd7e
SC
21239 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21240echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21241 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21242echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21243 ac_header_preproc=yes
a848cd7e 21244 ;;
ac1cb8d3 21245 no:yes:* )
a848cd7e
SC
21246 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21247echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21248 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21249echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21250 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21251echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21252 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21253echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21254 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21255echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21256 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21257echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21258 (
21259 cat <<\_ASBOX
ac1cb8d3
VS
21260## ----------------------------------------- ##
21261## Report this to wx-dev@lists.wxwidgets.org ##
21262## ----------------------------------------- ##
a848cd7e
SC
21263_ASBOX
21264 ) |
21265 sed "s/^/$as_me: WARNING: /" >&2
21266 ;;
21267esac
21268echo "$as_me:$LINENO: checking for tiffio.h" >&5
21269echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21270if test "${ac_cv_header_tiffio_h+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21272else
21273 ac_cv_header_tiffio_h=$ac_header_preproc
21274fi
21275echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21276echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21277
21278fi
21279if test $ac_cv_header_tiffio_h = yes; then
21280
21281 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21282echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21283if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
21285else
21286 ac_check_lib_save_LIBS=$LIBS
21287LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21288cat >conftest.$ac_ext <<_ACEOF
21289/* confdefs.h. */
21290_ACEOF
21291cat confdefs.h >>conftest.$ac_ext
21292cat >>conftest.$ac_ext <<_ACEOF
21293/* end confdefs.h. */
21294
21295/* Override any gcc2 internal prototype to avoid an error. */
21296#ifdef __cplusplus
21297extern "C"
21298#endif
21299/* We use char because int might match the return type of a gcc2
21300 builtin and then its argument prototype would still apply. */
21301char TIFFError ();
21302int
21303main ()
21304{
21305TIFFError ();
21306 ;
21307 return 0;
21308}
21309_ACEOF
21310rm -f conftest.$ac_objext conftest$ac_exeext
21311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21312 (eval $ac_link) 2>conftest.er1
a848cd7e 21313 ac_status=$?
ac1cb8d3
VS
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
a848cd7e
SC
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } &&
ea7db9ff
DE
21319 { ac_try='test -z "$ac_c_werror_flag"
21320 || test ! -s conftest.err'
ac1cb8d3
VS
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; } &&
21326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
21332 ac_cv_lib_tiff_TIFFError=yes
21333else
21334 echo "$as_me: failed program was:" >&5
21335sed 's/^/| /' conftest.$ac_ext >&5
21336
21337ac_cv_lib_tiff_TIFFError=no
21338fi
ac1cb8d3
VS
21339rm -f conftest.err conftest.$ac_objext \
21340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21341LIBS=$ac_check_lib_save_LIBS
21342fi
21343echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21344echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21345if test $ac_cv_lib_tiff_TIFFError = yes; then
21346 TIFF_LINK=" -ltiff"
21347fi
21348
21349
21350
21351fi
21352
21353
21354
21355 if test "x$TIFF_LINK" = "x" ; then
21356 if test "$wxUSE_LIBTIFF" = "sys" ; then
21357 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21358echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21359 { (exit 1); exit 1; }; }
21360 else
21361 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21362echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21363 wxUSE_LIBTIFF=builtin
21364 fi
21365 else
21366 wxUSE_LIBTIFF=sys
21367 fi
21368 fi
21369fi
21370
21371
21372if test "$wxUSE_EXPAT" != "no"; then
21373 wxUSE_XML=yes
21374 cat >>confdefs.h <<\_ACEOF
21375#define wxUSE_EXPAT 1
21376_ACEOF
21377
21378 cat >>confdefs.h <<\_ACEOF
21379#define wxUSE_XML 1
21380_ACEOF
21381
21382
21383 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21384 if test "${ac_cv_header_expat_h+set}" = set; then
21385 echo "$as_me:$LINENO: checking for expat.h" >&5
21386echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21387if test "${ac_cv_header_expat_h+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389fi
21390echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21391echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21392else
21393 # Is the header compilable?
21394echo "$as_me:$LINENO: checking expat.h usability" >&5
21395echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21396cat >conftest.$ac_ext <<_ACEOF
21397/* confdefs.h. */
21398_ACEOF
21399cat confdefs.h >>conftest.$ac_ext
21400cat >>conftest.$ac_ext <<_ACEOF
21401/* end confdefs.h. */
21402$ac_includes_default
21403#include <expat.h>
21404_ACEOF
21405rm -f conftest.$ac_objext
21406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21407 (eval $ac_compile) 2>conftest.er1
a848cd7e 21408 ac_status=$?
ac1cb8d3
VS
21409 grep -v '^ *+' conftest.er1 >conftest.err
21410 rm -f conftest.er1
21411 cat conftest.err >&5
a848cd7e
SC
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } &&
ea7db9ff
DE
21414 { ac_try='test -z "$ac_c_werror_flag"
21415 || test ! -s conftest.err'
ac1cb8d3
VS
21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; } &&
21421 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; }; then
21427 ac_header_compiler=yes
21428else
21429 echo "$as_me: failed program was:" >&5
21430sed 's/^/| /' conftest.$ac_ext >&5
21431
21432ac_header_compiler=no
21433fi
ac1cb8d3 21434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21435echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21436echo "${ECHO_T}$ac_header_compiler" >&6
21437
21438# Is the header present?
21439echo "$as_me:$LINENO: checking expat.h presence" >&5
21440echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21441cat >conftest.$ac_ext <<_ACEOF
21442/* confdefs.h. */
21443_ACEOF
21444cat confdefs.h >>conftest.$ac_ext
21445cat >>conftest.$ac_ext <<_ACEOF
21446/* end confdefs.h. */
21447#include <expat.h>
21448_ACEOF
21449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21451 ac_status=$?
21452 grep -v '^ *+' conftest.er1 >conftest.err
21453 rm -f conftest.er1
21454 cat conftest.err >&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } >/dev/null; then
21457 if test -s conftest.err; then
21458 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21460 else
21461 ac_cpp_err=
21462 fi
21463else
21464 ac_cpp_err=yes
21465fi
21466if test -z "$ac_cpp_err"; then
21467 ac_header_preproc=yes
21468else
21469 echo "$as_me: failed program was:" >&5
21470sed 's/^/| /' conftest.$ac_ext >&5
21471
21472 ac_header_preproc=no
21473fi
21474rm -f conftest.err conftest.$ac_ext
21475echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21476echo "${ECHO_T}$ac_header_preproc" >&6
21477
21478# So? What about this header?
ac1cb8d3
VS
21479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21480 yes:no: )
a848cd7e
SC
21481 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21482echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21483 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21484echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21485 ac_header_preproc=yes
a848cd7e 21486 ;;
ac1cb8d3 21487 no:yes:* )
a848cd7e
SC
21488 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21489echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21490 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21491echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21493echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21495echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21496 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21497echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21498 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21499echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21500 (
21501 cat <<\_ASBOX
ac1cb8d3
VS
21502## ----------------------------------------- ##
21503## Report this to wx-dev@lists.wxwidgets.org ##
21504## ----------------------------------------- ##
a848cd7e
SC
21505_ASBOX
21506 ) |
21507 sed "s/^/$as_me: WARNING: /" >&2
21508 ;;
21509esac
21510echo "$as_me:$LINENO: checking for expat.h" >&5
21511echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21512if test "${ac_cv_header_expat_h+set}" = set; then
21513 echo $ECHO_N "(cached) $ECHO_C" >&6
21514else
21515 ac_cv_header_expat_h=$ac_header_preproc
21516fi
21517echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21518echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21519
21520fi
21521if test $ac_cv_header_expat_h = yes; then
21522 found_expat_h=1
21523fi
21524
21525
21526 if test "x$found_expat_h" = "x1"; then
21527 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21528echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21529if test "${wx_cv_expat_is_not_broken+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21531else
21532
21533
21534
21535 ac_ext=cc
21536ac_cpp='$CXXCPP $CPPFLAGS'
21537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21540
21541 cat >conftest.$ac_ext <<_ACEOF
21542/* confdefs.h. */
21543_ACEOF
21544cat confdefs.h >>conftest.$ac_ext
21545cat >>conftest.$ac_ext <<_ACEOF
21546/* end confdefs.h. */
21547#include <expat.h>
21548int
21549main ()
21550{
21551
21552 ;
21553 return 0;
21554}
21555_ACEOF
21556rm -f conftest.$ac_objext
21557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21558 (eval $ac_compile) 2>conftest.er1
a848cd7e 21559 ac_status=$?
ac1cb8d3
VS
21560 grep -v '^ *+' conftest.er1 >conftest.err
21561 rm -f conftest.er1
21562 cat conftest.err >&5
a848cd7e
SC
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } &&
ea7db9ff
DE
21565 { ac_try='test -z "$ac_cxx_werror_flag"
21566 || test ! -s conftest.err'
ac1cb8d3
VS
21567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568 (eval $ac_try) 2>&5
21569 ac_status=$?
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); }; } &&
21572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5
21575 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; }; then
21578 wx_cv_expat_is_not_broken=yes
21579else
21580 echo "$as_me: failed program was:" >&5
21581sed 's/^/| /' conftest.$ac_ext >&5
21582
21583wx_cv_expat_is_not_broken=no
21584
21585fi
ac1cb8d3 21586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21587 ac_ext=c
21588ac_cpp='$CPP $CPPFLAGS'
21589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21591ac_compiler_gnu=$ac_cv_c_compiler_gnu
21592
21593
21594
21595fi
21596echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21597echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21598 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21599 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21600echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21601if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21602 echo $ECHO_N "(cached) $ECHO_C" >&6
21603else
21604 ac_check_lib_save_LIBS=$LIBS
21605LIBS="-lexpat $LIBS"
21606cat >conftest.$ac_ext <<_ACEOF
21607/* confdefs.h. */
21608_ACEOF
21609cat confdefs.h >>conftest.$ac_ext
21610cat >>conftest.$ac_ext <<_ACEOF
21611/* end confdefs.h. */
21612
21613/* Override any gcc2 internal prototype to avoid an error. */
21614#ifdef __cplusplus
21615extern "C"
21616#endif
21617/* We use char because int might match the return type of a gcc2
21618 builtin and then its argument prototype would still apply. */
21619char XML_ParserCreate ();
21620int
21621main ()
21622{
21623XML_ParserCreate ();
21624 ;
21625 return 0;
21626}
21627_ACEOF
21628rm -f conftest.$ac_objext conftest$ac_exeext
21629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21630 (eval $ac_link) 2>conftest.er1
a848cd7e 21631 ac_status=$?
ac1cb8d3
VS
21632 grep -v '^ *+' conftest.er1 >conftest.err
21633 rm -f conftest.er1
21634 cat conftest.err >&5
a848cd7e
SC
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } &&
ea7db9ff
DE
21637 { ac_try='test -z "$ac_c_werror_flag"
21638 || test ! -s conftest.err'
ac1cb8d3
VS
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; } &&
21644 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 ac_cv_lib_expat_XML_ParserCreate=yes
21651else
21652 echo "$as_me: failed program was:" >&5
21653sed 's/^/| /' conftest.$ac_ext >&5
21654
21655ac_cv_lib_expat_XML_ParserCreate=no
21656fi
ac1cb8d3
VS
21657rm -f conftest.err conftest.$ac_objext \
21658 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21659LIBS=$ac_check_lib_save_LIBS
21660fi
21661echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21662echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21663if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21664 EXPAT_LINK=" -lexpat"
21665fi
21666
21667 fi
21668 fi
21669 if test "x$EXPAT_LINK" = "x" ; then
21670 if test "$wxUSE_EXPAT" = "sys" ; then
21671 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21672echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21673 { (exit 1); exit 1; }; }
21674 else
21675 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21676echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21677 wxUSE_EXPAT=builtin
21678 fi
21679 else
21680 wxUSE_EXPAT=sys
21681 fi
21682 fi
21683 if test "$wxUSE_EXPAT" = "builtin" ; then
21684
21685
21686subdirs="$subdirs src/expat"
21687
21688 fi
21689fi
21690
21691
21692
21693if test "$wxUSE_LIBMSPACK" != "no"; then
21694
21695 if test "${ac_cv_header_mspack_h+set}" = set; then
21696 echo "$as_me:$LINENO: checking for mspack.h" >&5
21697echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21698if test "${ac_cv_header_mspack_h+set}" = set; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21700fi
21701echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21702echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21703else
21704 # Is the header compilable?
21705echo "$as_me:$LINENO: checking mspack.h usability" >&5
21706echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21707cat >conftest.$ac_ext <<_ACEOF
21708/* confdefs.h. */
21709_ACEOF
21710cat confdefs.h >>conftest.$ac_ext
21711cat >>conftest.$ac_ext <<_ACEOF
21712/* end confdefs.h. */
21713$ac_includes_default
21714#include <mspack.h>
21715_ACEOF
21716rm -f conftest.$ac_objext
21717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21718 (eval $ac_compile) 2>conftest.er1
a848cd7e 21719 ac_status=$?
ac1cb8d3
VS
21720 grep -v '^ *+' conftest.er1 >conftest.err
21721 rm -f conftest.er1
21722 cat conftest.err >&5
a848cd7e
SC
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } &&
ea7db9ff
DE
21725 { ac_try='test -z "$ac_c_werror_flag"
21726 || test ! -s conftest.err'
ac1cb8d3
VS
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; } &&
21732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; }; then
21738 ac_header_compiler=yes
21739else
21740 echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
21743ac_header_compiler=no
21744fi
ac1cb8d3 21745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21747echo "${ECHO_T}$ac_header_compiler" >&6
21748
21749# Is the header present?
21750echo "$as_me:$LINENO: checking mspack.h presence" >&5
21751echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21752cat >conftest.$ac_ext <<_ACEOF
21753/* confdefs.h. */
21754_ACEOF
21755cat confdefs.h >>conftest.$ac_ext
21756cat >>conftest.$ac_ext <<_ACEOF
21757/* end confdefs.h. */
21758#include <mspack.h>
21759_ACEOF
21760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21762 ac_status=$?
21763 grep -v '^ *+' conftest.er1 >conftest.err
21764 rm -f conftest.er1
21765 cat conftest.err >&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } >/dev/null; then
21768 if test -s conftest.err; then
21769 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21771 else
21772 ac_cpp_err=
21773 fi
21774else
21775 ac_cpp_err=yes
21776fi
21777if test -z "$ac_cpp_err"; then
21778 ac_header_preproc=yes
21779else
21780 echo "$as_me: failed program was:" >&5
21781sed 's/^/| /' conftest.$ac_ext >&5
21782
21783 ac_header_preproc=no
21784fi
21785rm -f conftest.err conftest.$ac_ext
21786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21787echo "${ECHO_T}$ac_header_preproc" >&6
21788
21789# So? What about this header?
ac1cb8d3
VS
21790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21791 yes:no: )
a848cd7e
SC
21792 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21793echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21794 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21795echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21796 ac_header_preproc=yes
a848cd7e 21797 ;;
ac1cb8d3 21798 no:yes:* )
a848cd7e
SC
21799 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21800echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21801 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21802echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21804echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21806echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21807 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21808echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21809 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21810echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21811 (
21812 cat <<\_ASBOX
ac1cb8d3
VS
21813## ----------------------------------------- ##
21814## Report this to wx-dev@lists.wxwidgets.org ##
21815## ----------------------------------------- ##
a848cd7e
SC
21816_ASBOX
21817 ) |
21818 sed "s/^/$as_me: WARNING: /" >&2
21819 ;;
21820esac
21821echo "$as_me:$LINENO: checking for mspack.h" >&5
21822echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21823if test "${ac_cv_header_mspack_h+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825else
21826 ac_cv_header_mspack_h=$ac_header_preproc
21827fi
21828echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21829echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21830
21831fi
21832if test $ac_cv_header_mspack_h = yes; then
21833 found_mspack_h=1
21834fi
21835
21836
21837 if test "x$found_mspack_h" = "x1"; then
21838 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21839echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21840if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21842else
21843 ac_check_lib_save_LIBS=$LIBS
21844LIBS="-lmspack $LIBS"
21845cat >conftest.$ac_ext <<_ACEOF
21846/* confdefs.h. */
21847_ACEOF
21848cat confdefs.h >>conftest.$ac_ext
21849cat >>conftest.$ac_ext <<_ACEOF
21850/* end confdefs.h. */
21851
21852/* Override any gcc2 internal prototype to avoid an error. */
21853#ifdef __cplusplus
21854extern "C"
21855#endif
21856/* We use char because int might match the return type of a gcc2
21857 builtin and then its argument prototype would still apply. */
21858char mspack_create_chm_decompressor ();
21859int
21860main ()
21861{
21862mspack_create_chm_decompressor ();
21863 ;
21864 return 0;
21865}
21866_ACEOF
21867rm -f conftest.$ac_objext conftest$ac_exeext
21868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21869 (eval $ac_link) 2>conftest.er1
a848cd7e 21870 ac_status=$?
ac1cb8d3
VS
21871 grep -v '^ *+' conftest.er1 >conftest.err
21872 rm -f conftest.er1
21873 cat conftest.err >&5
a848cd7e
SC
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } &&
ea7db9ff
DE
21876 { ac_try='test -z "$ac_c_werror_flag"
21877 || test ! -s conftest.err'
ac1cb8d3
VS
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; } &&
21883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885 (eval $ac_try) 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; }; then
21889 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21890else
21891 echo "$as_me: failed program was:" >&5
21892sed 's/^/| /' conftest.$ac_ext >&5
21893
21894ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21895fi
ac1cb8d3
VS
21896rm -f conftest.err conftest.$ac_objext \
21897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21898LIBS=$ac_check_lib_save_LIBS
21899fi
21900echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21901echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21902if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21903 MSPACK_LINK=" -lmspack"
21904fi
21905
21906 fi
21907 if test "x$MSPACK_LINK" = "x" ; then
21908 wxUSE_LIBMSPACK=no
21909 else
21910 cat >>confdefs.h <<\_ACEOF
21911#define wxUSE_LIBMSPACK 1
21912_ACEOF
21913
21914 fi
21915fi
21916
21917
21918
21919AFMINSTALL=
21920WIN32INSTALL=
21921
21922TOOLKIT=
21923TOOLKIT_INCLUDE=
21924WIDGET_SET=
21925
21926if test "$USE_WIN32" = 1 ; then
21927
21928for ac_header in w32api.h
21929do
21930as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21931if eval "test \"\${$as_ac_Header+set}\" = set"; then
21932 echo "$as_me:$LINENO: checking for $ac_header" >&5
21933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21934if eval "test \"\${$as_ac_Header+set}\" = set"; then
21935 echo $ECHO_N "(cached) $ECHO_C" >&6
21936fi
21937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21939else
21940 # Is the header compilable?
21941echo "$as_me:$LINENO: checking $ac_header usability" >&5
21942echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21943cat >conftest.$ac_ext <<_ACEOF
21944/* confdefs.h. */
21945_ACEOF
21946cat confdefs.h >>conftest.$ac_ext
21947cat >>conftest.$ac_ext <<_ACEOF
21948/* end confdefs.h. */
21949$ac_includes_default
21950#include <$ac_header>
21951_ACEOF
21952rm -f conftest.$ac_objext
21953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21954 (eval $ac_compile) 2>conftest.er1
a848cd7e 21955 ac_status=$?
ac1cb8d3
VS
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
a848cd7e
SC
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
ea7db9ff
DE
21961 { ac_try='test -z "$ac_c_werror_flag"
21962 || test ! -s conftest.err'
ac1cb8d3
VS
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; } &&
21968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; }; then
21974 ac_header_compiler=yes
21975else
21976 echo "$as_me: failed program was:" >&5
21977sed 's/^/| /' conftest.$ac_ext >&5
21978
21979ac_header_compiler=no
21980fi
ac1cb8d3 21981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21982echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21983echo "${ECHO_T}$ac_header_compiler" >&6
21984
21985# Is the header present?
21986echo "$as_me:$LINENO: checking $ac_header presence" >&5
21987echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21988cat >conftest.$ac_ext <<_ACEOF
21989/* confdefs.h. */
21990_ACEOF
21991cat confdefs.h >>conftest.$ac_ext
21992cat >>conftest.$ac_ext <<_ACEOF
21993/* end confdefs.h. */
21994#include <$ac_header>
21995_ACEOF
21996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21998 ac_status=$?
21999 grep -v '^ *+' conftest.er1 >conftest.err
22000 rm -f conftest.er1
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } >/dev/null; then
22004 if test -s conftest.err; then
22005 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22007 else
22008 ac_cpp_err=
22009 fi
22010else
22011 ac_cpp_err=yes
22012fi
22013if test -z "$ac_cpp_err"; then
22014 ac_header_preproc=yes
22015else
22016 echo "$as_me: failed program was:" >&5
22017sed 's/^/| /' conftest.$ac_ext >&5
22018
22019 ac_header_preproc=no
22020fi
22021rm -f conftest.err conftest.$ac_ext
22022echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22023echo "${ECHO_T}$ac_header_preproc" >&6
22024
22025# So? What about this header?
ac1cb8d3
VS
22026case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22027 yes:no: )
a848cd7e
SC
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22029echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22031echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22032 ac_header_preproc=yes
a848cd7e 22033 ;;
ac1cb8d3 22034 no:yes:* )
a848cd7e
SC
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22036echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22038echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22040echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22042echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22046echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22047 (
22048 cat <<\_ASBOX
ac1cb8d3
VS
22049## ----------------------------------------- ##
22050## Report this to wx-dev@lists.wxwidgets.org ##
22051## ----------------------------------------- ##
a848cd7e
SC
22052_ASBOX
22053 ) |
22054 sed "s/^/$as_me: WARNING: /" >&2
22055 ;;
22056esac
22057echo "$as_me:$LINENO: checking for $ac_header" >&5
22058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22059if eval "test \"\${$as_ac_Header+set}\" = set"; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22061else
ac1cb8d3 22062 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22063fi
22064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22065echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22066
22067fi
22068if test `eval echo '${'$as_ac_Header'}'` = yes; then
22069 cat >>confdefs.h <<_ACEOF
22070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22071_ACEOF
22072
22073fi
22074
22075done
22076
22077 if test "${ac_cv_header_windows_h+set}" = set; then
22078 echo "$as_me:$LINENO: checking for windows.h" >&5
22079echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22080if test "${ac_cv_header_windows_h+set}" = set; then
22081 echo $ECHO_N "(cached) $ECHO_C" >&6
22082fi
22083echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22084echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22085else
22086 # Is the header compilable?
22087echo "$as_me:$LINENO: checking windows.h usability" >&5
22088echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22089cat >conftest.$ac_ext <<_ACEOF
22090/* confdefs.h. */
22091_ACEOF
22092cat confdefs.h >>conftest.$ac_ext
22093cat >>conftest.$ac_ext <<_ACEOF
22094/* end confdefs.h. */
22095$ac_includes_default
22096#include <windows.h>
22097_ACEOF
22098rm -f conftest.$ac_objext
22099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22100 (eval $ac_compile) 2>conftest.er1
a848cd7e 22101 ac_status=$?
ac1cb8d3
VS
22102 grep -v '^ *+' conftest.er1 >conftest.err
22103 rm -f conftest.er1
22104 cat conftest.err >&5
a848cd7e
SC
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } &&
ea7db9ff
DE
22107 { ac_try='test -z "$ac_c_werror_flag"
22108 || test ! -s conftest.err'
ac1cb8d3
VS
22109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110 (eval $ac_try) 2>&5
22111 ac_status=$?
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); }; } &&
22114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116 (eval $ac_try) 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; }; then
22120 ac_header_compiler=yes
22121else
22122 echo "$as_me: failed program was:" >&5
22123sed 's/^/| /' conftest.$ac_ext >&5
22124
22125ac_header_compiler=no
22126fi
ac1cb8d3 22127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22128echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22129echo "${ECHO_T}$ac_header_compiler" >&6
22130
22131# Is the header present?
22132echo "$as_me:$LINENO: checking windows.h presence" >&5
22133echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22134cat >conftest.$ac_ext <<_ACEOF
22135/* confdefs.h. */
22136_ACEOF
22137cat confdefs.h >>conftest.$ac_ext
22138cat >>conftest.$ac_ext <<_ACEOF
22139/* end confdefs.h. */
22140#include <windows.h>
22141_ACEOF
22142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22144 ac_status=$?
22145 grep -v '^ *+' conftest.er1 >conftest.err
22146 rm -f conftest.er1
22147 cat conftest.err >&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } >/dev/null; then
22150 if test -s conftest.err; then
22151 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22153 else
22154 ac_cpp_err=
22155 fi
22156else
22157 ac_cpp_err=yes
22158fi
22159if test -z "$ac_cpp_err"; then
22160 ac_header_preproc=yes
22161else
22162 echo "$as_me: failed program was:" >&5
22163sed 's/^/| /' conftest.$ac_ext >&5
22164
22165 ac_header_preproc=no
22166fi
22167rm -f conftest.err conftest.$ac_ext
22168echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22169echo "${ECHO_T}$ac_header_preproc" >&6
22170
22171# So? What about this header?
ac1cb8d3
VS
22172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22173 yes:no: )
a848cd7e
SC
22174 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22175echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22176 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22177echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22178 ac_header_preproc=yes
a848cd7e 22179 ;;
ac1cb8d3 22180 no:yes:* )
a848cd7e
SC
22181 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22182echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22183 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22184echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22186echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22188echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22189 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22190echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22191 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22192echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22193 (
22194 cat <<\_ASBOX
ac1cb8d3
VS
22195## ----------------------------------------- ##
22196## Report this to wx-dev@lists.wxwidgets.org ##
22197## ----------------------------------------- ##
a848cd7e
SC
22198_ASBOX
22199 ) |
22200 sed "s/^/$as_me: WARNING: /" >&2
22201 ;;
22202esac
22203echo "$as_me:$LINENO: checking for windows.h" >&5
22204echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22205if test "${ac_cv_header_windows_h+set}" = set; then
22206 echo $ECHO_N "(cached) $ECHO_C" >&6
22207else
22208 ac_cv_header_windows_h=$ac_header_preproc
22209fi
22210echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22211echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22212
22213fi
22214if test $ac_cv_header_windows_h = yes; then
22215 :
22216else
22217
22218 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22219echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22220 { (exit 1); exit 1; }; }
22221
22222fi
22223
22224
22225
22226 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22227
22228 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22229 LIBS="$LIBS -loleacc"
22230 fi
22231
22232 case "${host}" in
22233 *-*-cygwin* )
22234 LIBS="$LIBS -lkernel32 -luser32"
22235 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22236 esac
22237
22238 if test "$wxUSE_ODBC" = "sys" ; then
22239 wxUSE_ODBC = "yes"
22240 fi
22241 if test "$wxUSE_ODBC" = "yes" ; then
22242 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22243 cat >>confdefs.h <<\_ACEOF
22244#define wxUSE_ODBC 1
22245_ACEOF
22246
22247 fi
22248
22249 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22250 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22251
22252 WIN32INSTALL=win32install
22253fi
22254
22255if test "$wxUSE_GUI" = "yes"; then
22256 USE_GUI=1
22257
22258 GUI_TK_LIBRARY=
22259
22260 WXGTK12=
22261 WXGTK127=
22262 WXGTK20=
22263 WXGPE=
22264
22265 if test "$wxUSE_MSW" = 1 ; then
22266 TOOLKIT=MSW
22267 GUIDIST=MSW_DIST
22268
22269 case "${host}" in
22270 *-*-mingw32* )
22271 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22272 esac
22273 fi
22274
22275 if test "$wxUSE_GTK" = 1; then
22276 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22277echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22278
22279 gtk_version_cached=1
22280 if test "${wx_cv_lib_gtk+set}" = set; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22282else
22283
22284 gtk_version_cached=0
22285 echo "$as_me:$LINENO: result: " >&5
22286echo "${ECHO_T}" >&6
22287
22288 GTK_MODULES=
22289 if test "$wxUSE_THREADS" = "yes"; then
22290 GTK_MODULES=gthread
22291 fi
22292
22293 wx_cv_lib_gtk=
22294 if test "x$wxUSE_GTK2" = "xyes"; then
22295 # Check whether --enable-gtktest or --disable-gtktest was given.
22296if test "${enable_gtktest+set}" = set; then
22297 enableval="$enable_gtktest"
22298
22299else
22300 enable_gtktest=yes
22301fi;
22302
22303 pkg_config_args=gtk+-2.0
22304 for module in . $GTK_MODULES
22305 do
22306 case "$module" in
22307 gthread)
22308 pkg_config_args="$pkg_config_args gthread-2.0"
22309 ;;
22310 esac
22311 done
22312
22313 no_gtk=""
22314
22315 # Extract the first word of "pkg-config", so it can be a program name with args.
22316set dummy pkg-config; ac_word=$2
22317echo "$as_me:$LINENO: checking for $ac_word" >&5
22318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22319if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22321else
22322 case $PKG_CONFIG in
22323 [\\/]* | ?:[\\/]*)
22324 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22325 ;;
22326 *)
22327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22328for as_dir in $PATH
22329do
22330 IFS=$as_save_IFS
22331 test -z "$as_dir" && as_dir=.
22332 for ac_exec_ext in '' $ac_executable_extensions; do
22333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22334 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22336 break 2
22337 fi
22338done
22339done
22340
22341 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22342 ;;
22343esac
22344fi
22345PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22346
22347if test -n "$PKG_CONFIG"; then
22348 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22349echo "${ECHO_T}$PKG_CONFIG" >&6
22350else
22351 echo "$as_me:$LINENO: result: no" >&5
22352echo "${ECHO_T}no" >&6
22353fi
22354
22355
22356 if test x$PKG_CONFIG != xno ; then
22357 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22358 :
22359 else
c2218763 22360 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22361 no_gtk=yes
22362 PKG_CONFIG=no
22363 fi
22364 else
22365 no_gtk=yes
22366 fi
22367
22368 min_gtk_version=2.0.0
22369 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22370echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22371
22372 if test x$PKG_CONFIG != xno ; then
22373 ## don't try to run the test against uninstalled libtool libs
22374 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22375 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22376 enable_gtktest=no
22377 fi
22378
22379 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22380 :
22381 else
22382 no_gtk=yes
22383 fi
22384 fi
22385
22386 if test x"$no_gtk" = x ; then
22387 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22388 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22389 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22390 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22391 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22392 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22393 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22394 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22395 if test "x$enable_gtktest" = "xyes" ; then
22396 ac_save_CFLAGS="$CFLAGS"
22397 ac_save_LIBS="$LIBS"
22398 CFLAGS="$CFLAGS $GTK_CFLAGS"
22399 LIBS="$GTK_LIBS $LIBS"
22400 rm -f conf.gtktest
22401 if test "$cross_compiling" = yes; then
22402 echo $ac_n "cross compiling; assumed OK... $ac_c"
22403else
22404 cat >conftest.$ac_ext <<_ACEOF
22405/* confdefs.h. */
22406_ACEOF
22407cat confdefs.h >>conftest.$ac_ext
22408cat >>conftest.$ac_ext <<_ACEOF
22409/* end confdefs.h. */
22410
22411#include <gtk/gtk.h>
22412#include <stdio.h>
22413#include <stdlib.h>
22414
22415int
22416main ()
22417{
22418 int major, minor, micro;
22419 char *tmp_version;
22420
22421 system ("touch conf.gtktest");
22422
22423 /* HP/UX 9 (%@#!) writes to sscanf strings */
22424 tmp_version = g_strdup("$min_gtk_version");
22425 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22426 printf("%s, bad version string\n", "$min_gtk_version");
22427 exit(1);
22428 }
22429
22430 if ((gtk_major_version != $gtk_config_major_version) ||
22431 (gtk_minor_version != $gtk_config_minor_version) ||
22432 (gtk_micro_version != $gtk_config_micro_version))
22433 {
22434 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22435 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22436 gtk_major_version, gtk_minor_version, gtk_micro_version);
22437 printf ("*** was found! If pkg-config was correct, then it is best\n");
22438 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22439 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22440 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22441 printf("*** required on your system.\n");
22442 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22443 printf("*** to point to the correct configuration files\n");
22444 }
22445 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22446 (gtk_minor_version != GTK_MINOR_VERSION) ||
22447 (gtk_micro_version != GTK_MICRO_VERSION))
22448 {
22449 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22450 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22451 printf("*** library (version %d.%d.%d)\n",
22452 gtk_major_version, gtk_minor_version, gtk_micro_version);
22453 }
22454 else
22455 {
22456 if ((gtk_major_version > major) ||
22457 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22458 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22459 {
22460 return 0;
22461 }
22462 else
22463 {
22464 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22465 gtk_major_version, gtk_minor_version, gtk_micro_version);
22466 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22467 major, minor, micro);
22468 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22469 printf("***\n");
22470 printf("*** If you have already installed a sufficiently new version, this error\n");
22471 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22472 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22473 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22474 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22475 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22476 printf("*** so that the correct libraries are found at run-time))\n");
22477 }
22478 }
22479 return 1;
22480}
22481
22482_ACEOF
22483rm -f conftest$ac_exeext
22484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22485 (eval $ac_link) 2>&5
22486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490 (eval $ac_try) 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; }; then
22494 :
22495else
22496 echo "$as_me: program exited with status $ac_status" >&5
22497echo "$as_me: failed program was:" >&5
22498sed 's/^/| /' conftest.$ac_ext >&5
22499
22500( exit $ac_status )
22501no_gtk=yes
22502fi
ac1cb8d3 22503rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22504fi
22505 CFLAGS="$ac_save_CFLAGS"
22506 LIBS="$ac_save_LIBS"
22507 fi
22508 fi
22509 if test "x$no_gtk" = x ; then
22510 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22511echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22512 wx_cv_lib_gtk=2.0
22513 else
22514 echo "$as_me:$LINENO: result: no" >&5
22515echo "${ECHO_T}no" >&6
22516 if test "$PKG_CONFIG" = "no" ; then
22517 echo "*** A new enough version of pkg-config was not found."
22518 echo "*** See http://pkgconfig.sourceforge.net"
22519 else
22520 if test -f conf.gtktest ; then
22521 :
22522 else
22523 echo "*** Could not run GTK+ test program, checking why..."
22524 ac_save_CFLAGS="$CFLAGS"
22525 ac_save_LIBS="$LIBS"
22526 CFLAGS="$CFLAGS $GTK_CFLAGS"
22527 LIBS="$LIBS $GTK_LIBS"
22528 cat >conftest.$ac_ext <<_ACEOF
22529/* confdefs.h. */
22530_ACEOF
22531cat confdefs.h >>conftest.$ac_ext
22532cat >>conftest.$ac_ext <<_ACEOF
22533/* end confdefs.h. */
22534
22535#include <gtk/gtk.h>
22536#include <stdio.h>
22537
22538int
22539main ()
22540{
22541 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22542 ;
22543 return 0;
22544}
22545_ACEOF
22546rm -f conftest.$ac_objext conftest$ac_exeext
22547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22548 (eval $ac_link) 2>conftest.er1
a848cd7e 22549 ac_status=$?
ac1cb8d3
VS
22550 grep -v '^ *+' conftest.er1 >conftest.err
22551 rm -f conftest.er1
22552 cat conftest.err >&5
a848cd7e
SC
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } &&
ea7db9ff
DE
22555 { ac_try='test -z "$ac_c_werror_flag"
22556 || test ! -s conftest.err'
ac1cb8d3
VS
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; } &&
22562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }; then
22568 echo "*** The test program compiled, but did not run. This usually means"
22569 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22570 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22571 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22572 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22573 echo "*** is required on your system"
22574 echo "***"
22575 echo "*** If you have an old version installed, it is best to remove it, although"
22576 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22577else
22578 echo "$as_me: failed program was:" >&5
22579sed 's/^/| /' conftest.$ac_ext >&5
22580
22581 echo "*** The test program failed to compile or link. See the file config.log for the"
22582 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22583fi
ac1cb8d3
VS
22584rm -f conftest.err conftest.$ac_objext \
22585 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22586 CFLAGS="$ac_save_CFLAGS"
22587 LIBS="$ac_save_LIBS"
22588 fi
22589 fi
22590 GTK_CFLAGS=""
22591 GTK_LIBS=""
22592 :
22593 fi
22594
22595
22596 rm -f conf.gtktest
22597
22598 else
22599
22600# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22601if test "${with_gtk_prefix+set}" = set; then
22602 withval="$with_gtk_prefix"
22603 gtk_config_prefix="$withval"
22604else
22605 gtk_config_prefix=""
22606fi;
22607
22608# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22609if test "${with_gtk_exec_prefix+set}" = set; then
22610 withval="$with_gtk_exec_prefix"
22611 gtk_config_exec_prefix="$withval"
22612else
22613 gtk_config_exec_prefix=""
22614fi;
22615# Check whether --enable-gtktest or --disable-gtktest was given.
22616if test "${enable_gtktest+set}" = set; then
22617 enableval="$enable_gtktest"
22618
22619else
22620 enable_gtktest=yes
22621fi;
22622
22623 for module in . $GTK_MODULES
22624 do
22625 case "$module" in
22626 gthread)
22627 gtk_config_args="$gtk_config_args gthread"
22628 ;;
22629 esac
22630 done
22631
22632 if test x$gtk_config_exec_prefix != x ; then
22633 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22634 if test x${GTK_CONFIG+set} != xset ; then
22635 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22636 fi
22637 fi
22638 if test x$gtk_config_prefix != x ; then
22639 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22640 if test x${GTK_CONFIG+set} != xset ; then
22641 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22642 fi
22643 fi
22644
22645 # Extract the first word of "gtk-config", so it can be a program name with args.
22646set dummy gtk-config; ac_word=$2
22647echo "$as_me:$LINENO: checking for $ac_word" >&5
22648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22649if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651else
22652 case $GTK_CONFIG in
22653 [\\/]* | ?:[\\/]*)
22654 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22655 ;;
22656 *)
22657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22658for as_dir in $PATH
22659do
22660 IFS=$as_save_IFS
22661 test -z "$as_dir" && as_dir=.
22662 for ac_exec_ext in '' $ac_executable_extensions; do
22663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22664 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22666 break 2
22667 fi
22668done
22669done
22670
22671 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22672 ;;
22673esac
22674fi
22675GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22676
22677if test -n "$GTK_CONFIG"; then
22678 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22679echo "${ECHO_T}$GTK_CONFIG" >&6
22680else
22681 echo "$as_me:$LINENO: result: no" >&5
22682echo "${ECHO_T}no" >&6
22683fi
22684
22685 min_gtk_version=1.2.7
22686 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22687echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22688 no_gtk=""
22689 if test "$GTK_CONFIG" = "no" ; then
22690 no_gtk=yes
22691 else
22692 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22693 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22694 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22695 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22696 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22697 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22698 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22699 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22700 if test "x$enable_gtktest" = "xyes" ; then
22701 ac_save_CFLAGS="$CFLAGS"
22702 ac_save_LIBS="$LIBS"
22703 CFLAGS="$CFLAGS $GTK_CFLAGS"
22704 LIBS="$GTK_LIBS $LIBS"
22705 rm -f conf.gtktest
22706 if test "$cross_compiling" = yes; then
22707 echo $ac_n "cross compiling; assumed OK... $ac_c"
22708else
22709 cat >conftest.$ac_ext <<_ACEOF
22710/* confdefs.h. */
22711_ACEOF
22712cat confdefs.h >>conftest.$ac_ext
22713cat >>conftest.$ac_ext <<_ACEOF
22714/* end confdefs.h. */
22715
22716#include <gtk/gtk.h>
22717#include <stdio.h>
22718#include <stdlib.h>
22719
22720int
22721main ()
22722{
22723 int major, minor, micro;
22724 char *tmp_version;
22725
22726 system ("touch conf.gtktest");
22727
22728 /* HP/UX 9 (%@#!) writes to sscanf strings */
22729 tmp_version = g_strdup("$min_gtk_version");
22730 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22731 printf("%s, bad version string\n", "$min_gtk_version");
22732 exit(1);
22733 }
22734
22735 if ((gtk_major_version != $gtk_config_major_version) ||
22736 (gtk_minor_version != $gtk_config_minor_version) ||
22737 (gtk_micro_version != $gtk_config_micro_version))
22738 {
22739 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22740 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22741 gtk_major_version, gtk_minor_version, gtk_micro_version);
22742 printf ("*** was found! If gtk-config was correct, then it is best\n");
22743 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22744 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22745 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22746 printf("*** required on your system.\n");
22747 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22748 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22749 printf("*** before re-running configure\n");
22750 }
22751#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22752 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22753 (gtk_minor_version != GTK_MINOR_VERSION) ||
22754 (gtk_micro_version != GTK_MICRO_VERSION))
22755 {
22756 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22757 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22758 printf("*** library (version %d.%d.%d)\n",
22759 gtk_major_version, gtk_minor_version, gtk_micro_version);
22760 }
22761#endif /* defined (GTK_MAJOR_VERSION) ... */
22762 else
22763 {
22764 if ((gtk_major_version > major) ||
22765 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22766 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22767 {
22768 return 0;
22769 }
22770 else
22771 {
22772 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22773 gtk_major_version, gtk_minor_version, gtk_micro_version);
22774 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22775 major, minor, micro);
22776 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22777 printf("***\n");
22778 printf("*** If you have already installed a sufficiently new version, this error\n");
22779 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22780 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22781 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22782 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22783 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22784 printf("*** so that the correct libraries are found at run-time))\n");
22785 }
22786 }
22787 return 1;
22788}
22789
22790_ACEOF
22791rm -f conftest$ac_exeext
22792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22793 (eval $ac_link) 2>&5
22794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; }; then
22802 :
22803else
22804 echo "$as_me: program exited with status $ac_status" >&5
22805echo "$as_me: failed program was:" >&5
22806sed 's/^/| /' conftest.$ac_ext >&5
22807
22808( exit $ac_status )
22809no_gtk=yes
22810fi
ac1cb8d3 22811rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22812fi
22813 CFLAGS="$ac_save_CFLAGS"
22814 LIBS="$ac_save_LIBS"
22815 fi
22816 fi
22817 if test "x$no_gtk" = x ; then
22818 echo "$as_me:$LINENO: result: yes" >&5
22819echo "${ECHO_T}yes" >&6
22820 wx_cv_lib_gtk=1.2.7
22821 else
22822 echo "$as_me:$LINENO: result: no" >&5
22823echo "${ECHO_T}no" >&6
22824 if test "$GTK_CONFIG" = "no" ; then
22825 echo "*** The gtk-config script installed by GTK could not be found"
22826 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22827 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22828 echo "*** full path to gtk-config."
22829 else
22830 if test -f conf.gtktest ; then
22831 :
22832 else
22833 echo "*** Could not run GTK test program, checking why..."
22834 CFLAGS="$CFLAGS $GTK_CFLAGS"
22835 LIBS="$LIBS $GTK_LIBS"
22836 cat >conftest.$ac_ext <<_ACEOF
22837/* confdefs.h. */
22838_ACEOF
22839cat confdefs.h >>conftest.$ac_ext
22840cat >>conftest.$ac_ext <<_ACEOF
22841/* end confdefs.h. */
22842
22843#include <gtk/gtk.h>
22844#include <stdio.h>
22845
22846int
22847main ()
22848{
22849 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22850 ;
22851 return 0;
22852}
22853_ACEOF
22854rm -f conftest.$ac_objext conftest$ac_exeext
22855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22856 (eval $ac_link) 2>conftest.er1
a848cd7e 22857 ac_status=$?
ac1cb8d3
VS
22858 grep -v '^ *+' conftest.er1 >conftest.err
22859 rm -f conftest.er1
22860 cat conftest.err >&5
a848cd7e
SC
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
ea7db9ff
DE
22863 { ac_try='test -z "$ac_c_werror_flag"
22864 || test ! -s conftest.err'
ac1cb8d3
VS
22865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866 (eval $ac_try) 2>&5
22867 ac_status=$?
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); }; } &&
22870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
22876 echo "*** The test program compiled, but did not run. This usually means"
22877 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22878 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22879 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22880 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22881 echo "*** is required on your system"
22882 echo "***"
22883 echo "*** If you have an old version installed, it is best to remove it, although"
22884 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22885 echo "***"
22886 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22887 echo "*** came with the system with the command"
22888 echo "***"
22889 echo "*** rpm --erase --nodeps gtk gtk-devel"
22890else
22891 echo "$as_me: failed program was:" >&5
22892sed 's/^/| /' conftest.$ac_ext >&5
22893
22894 echo "*** The test program failed to compile or link. See the file config.log for the"
22895 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22896 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22897 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22898fi
ac1cb8d3
VS
22899rm -f conftest.err conftest.$ac_objext \
22900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22901 CFLAGS="$ac_save_CFLAGS"
22902 LIBS="$ac_save_LIBS"
22903 fi
22904 fi
22905 GTK_CFLAGS=""
22906 GTK_LIBS=""
22907 :
22908 fi
22909
22910
22911 rm -f conf.gtktest
22912
22913
22914 if test -z "$wx_cv_lib_gtk"; then
22915
22916# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22917if test "${with_gtk_prefix+set}" = set; then
22918 withval="$with_gtk_prefix"
22919 gtk_config_prefix="$withval"
22920else
22921 gtk_config_prefix=""
22922fi;
22923
22924# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22925if test "${with_gtk_exec_prefix+set}" = set; then
22926 withval="$with_gtk_exec_prefix"
22927 gtk_config_exec_prefix="$withval"
22928else
22929 gtk_config_exec_prefix=""
22930fi;
22931# Check whether --enable-gtktest or --disable-gtktest was given.
22932if test "${enable_gtktest+set}" = set; then
22933 enableval="$enable_gtktest"
22934
22935else
22936 enable_gtktest=yes
22937fi;
22938
22939 for module in . $GTK_MODULES
22940 do
22941 case "$module" in
22942 gthread)
22943 gtk_config_args="$gtk_config_args gthread"
22944 ;;
22945 esac
22946 done
22947
22948 if test x$gtk_config_exec_prefix != x ; then
22949 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22950 if test x${GTK_CONFIG+set} != xset ; then
22951 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22952 fi
22953 fi
22954 if test x$gtk_config_prefix != x ; then
22955 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22956 if test x${GTK_CONFIG+set} != xset ; then
22957 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22958 fi
22959 fi
22960
22961 # Extract the first word of "gtk-config", so it can be a program name with args.
22962set dummy gtk-config; ac_word=$2
22963echo "$as_me:$LINENO: checking for $ac_word" >&5
22964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22965if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22967else
22968 case $GTK_CONFIG in
22969 [\\/]* | ?:[\\/]*)
22970 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22971 ;;
22972 *)
22973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22974for as_dir in $PATH
22975do
22976 IFS=$as_save_IFS
22977 test -z "$as_dir" && as_dir=.
22978 for ac_exec_ext in '' $ac_executable_extensions; do
22979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22980 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22982 break 2
22983 fi
22984done
22985done
22986
22987 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22988 ;;
22989esac
22990fi
22991GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22992
22993if test -n "$GTK_CONFIG"; then
22994 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22995echo "${ECHO_T}$GTK_CONFIG" >&6
22996else
22997 echo "$as_me:$LINENO: result: no" >&5
22998echo "${ECHO_T}no" >&6
22999fi
23000
23001 min_gtk_version=1.2.3
23002 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23003echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23004 no_gtk=""
23005 if test "$GTK_CONFIG" = "no" ; then
23006 no_gtk=yes
23007 else
23008 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23009 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23010 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23011 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23012 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23013 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23014 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23015 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23016 if test "x$enable_gtktest" = "xyes" ; then
23017 ac_save_CFLAGS="$CFLAGS"
23018 ac_save_LIBS="$LIBS"
23019 CFLAGS="$CFLAGS $GTK_CFLAGS"
23020 LIBS="$GTK_LIBS $LIBS"
23021 rm -f conf.gtktest
23022 if test "$cross_compiling" = yes; then
23023 echo $ac_n "cross compiling; assumed OK... $ac_c"
23024else
23025 cat >conftest.$ac_ext <<_ACEOF
23026/* confdefs.h. */
23027_ACEOF
23028cat confdefs.h >>conftest.$ac_ext
23029cat >>conftest.$ac_ext <<_ACEOF
23030/* end confdefs.h. */
23031
23032#include <gtk/gtk.h>
23033#include <stdio.h>
23034#include <stdlib.h>
23035
23036int
23037main ()
23038{
23039 int major, minor, micro;
23040 char *tmp_version;
23041
23042 system ("touch conf.gtktest");
23043
23044 /* HP/UX 9 (%@#!) writes to sscanf strings */
23045 tmp_version = g_strdup("$min_gtk_version");
23046 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23047 printf("%s, bad version string\n", "$min_gtk_version");
23048 exit(1);
23049 }
23050
23051 if ((gtk_major_version != $gtk_config_major_version) ||
23052 (gtk_minor_version != $gtk_config_minor_version) ||
23053 (gtk_micro_version != $gtk_config_micro_version))
23054 {
23055 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23056 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23057 gtk_major_version, gtk_minor_version, gtk_micro_version);
23058 printf ("*** was found! If gtk-config was correct, then it is best\n");
23059 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23060 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23061 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23062 printf("*** required on your system.\n");
23063 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23064 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23065 printf("*** before re-running configure\n");
23066 }
23067#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23068 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23069 (gtk_minor_version != GTK_MINOR_VERSION) ||
23070 (gtk_micro_version != GTK_MICRO_VERSION))
23071 {
23072 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23073 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23074 printf("*** library (version %d.%d.%d)\n",
23075 gtk_major_version, gtk_minor_version, gtk_micro_version);
23076 }
23077#endif /* defined (GTK_MAJOR_VERSION) ... */
23078 else
23079 {
23080 if ((gtk_major_version > major) ||
23081 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23082 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23083 {
23084 return 0;
23085 }
23086 else
23087 {
23088 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23089 gtk_major_version, gtk_minor_version, gtk_micro_version);
23090 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23091 major, minor, micro);
23092 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23093 printf("***\n");
23094 printf("*** If you have already installed a sufficiently new version, this error\n");
23095 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23096 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23097 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23098 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23099 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23100 printf("*** so that the correct libraries are found at run-time))\n");
23101 }
23102 }
23103 return 1;
23104}
23105
23106_ACEOF
23107rm -f conftest$ac_exeext
23108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23109 (eval $ac_link) 2>&5
23110 ac_status=$?
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 :
23119else
23120 echo "$as_me: program exited with status $ac_status" >&5
23121echo "$as_me: failed program was:" >&5
23122sed 's/^/| /' conftest.$ac_ext >&5
23123
23124( exit $ac_status )
23125no_gtk=yes
23126fi
ac1cb8d3 23127rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23128fi
23129 CFLAGS="$ac_save_CFLAGS"
23130 LIBS="$ac_save_LIBS"
23131 fi
23132 fi
23133 if test "x$no_gtk" = x ; then
23134 echo "$as_me:$LINENO: result: yes" >&5
23135echo "${ECHO_T}yes" >&6
23136 wx_cv_lib_gtk=1.2.3
23137 else
23138 echo "$as_me:$LINENO: result: no" >&5
23139echo "${ECHO_T}no" >&6
23140 if test "$GTK_CONFIG" = "no" ; then
23141 echo "*** The gtk-config script installed by GTK could not be found"
23142 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23143 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23144 echo "*** full path to gtk-config."
23145 else
23146 if test -f conf.gtktest ; then
23147 :
23148 else
23149 echo "*** Could not run GTK test program, checking why..."
23150 CFLAGS="$CFLAGS $GTK_CFLAGS"
23151 LIBS="$LIBS $GTK_LIBS"
23152 cat >conftest.$ac_ext <<_ACEOF
23153/* confdefs.h. */
23154_ACEOF
23155cat confdefs.h >>conftest.$ac_ext
23156cat >>conftest.$ac_ext <<_ACEOF
23157/* end confdefs.h. */
23158
23159#include <gtk/gtk.h>
23160#include <stdio.h>
23161
23162int
23163main ()
23164{
23165 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23166 ;
23167 return 0;
23168}
23169_ACEOF
23170rm -f conftest.$ac_objext conftest$ac_exeext
23171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23172 (eval $ac_link) 2>conftest.er1
a848cd7e 23173 ac_status=$?
ac1cb8d3
VS
23174 grep -v '^ *+' conftest.er1 >conftest.err
23175 rm -f conftest.er1
23176 cat conftest.err >&5
a848cd7e
SC
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } &&
ea7db9ff
DE
23179 { ac_try='test -z "$ac_c_werror_flag"
23180 || test ! -s conftest.err'
ac1cb8d3
VS
23181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182 (eval $ac_try) 2>&5
23183 ac_status=$?
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; } &&
23186 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23189 ac_status=$?
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; }; then
23192 echo "*** The test program compiled, but did not run. This usually means"
23193 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23194 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23195 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23196 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23197 echo "*** is required on your system"
23198 echo "***"
23199 echo "*** If you have an old version installed, it is best to remove it, although"
23200 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23201 echo "***"
23202 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23203 echo "*** came with the system with the command"
23204 echo "***"
23205 echo "*** rpm --erase --nodeps gtk gtk-devel"
23206else
23207 echo "$as_me: failed program was:" >&5
23208sed 's/^/| /' conftest.$ac_ext >&5
23209
23210 echo "*** The test program failed to compile or link. See the file config.log for the"
23211 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23212 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23213 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23214fi
ac1cb8d3
VS
23215rm -f conftest.err conftest.$ac_objext \
23216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23217 CFLAGS="$ac_save_CFLAGS"
23218 LIBS="$ac_save_LIBS"
23219 fi
23220 fi
23221 GTK_CFLAGS=""
23222 GTK_LIBS=""
23223 :
23224 fi
23225
23226
23227 rm -f conf.gtktest
23228
23229 fi
23230 fi
23231
23232 if test -z "$wx_cv_lib_gtk"; then
23233 wx_cv_lib_gtk=none
23234 else
23235 wx_cv_cflags_gtk=$GTK_CFLAGS
23236 wx_cv_libs_gtk=$GTK_LIBS
23237 fi
23238
23239
23240fi
23241
23242
23243 if test "$gtk_version_cached" = 1; then
23244 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23245echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23246 fi
23247
23248 case "$wx_cv_lib_gtk" in
23249 2.0) WXGTK20=1
23250 TOOLKIT_VERSION=2
23251 ;;
23252 1.2.7) WXGTK127=1
23253 WXGTK12=1
23254 ;;
23255 1.2.3) WXGTK12=1
23256 ;;
23257 *) { { echo "$as_me:$LINENO: error:
23258Please check that gtk-config is in path, the directory
23259where GTK+ libraries are installed (returned by
23260'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23261equivalent variable and GTK+ is version 1.2.3 or above.
23262 " >&5
23263echo "$as_me: error:
23264Please check that gtk-config is in path, the directory
23265where GTK+ libraries are installed (returned by
23266'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23267equivalent variable and GTK+ is version 1.2.3 or above.
23268 " >&2;}
23269 { (exit 1); exit 1; }; }
23270 ;;
23271 esac
23272
23273 if test "$WXGTK20" = 1; then
23274 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23275
23276 succeeded=no
23277
23278 if test -z "$PKG_CONFIG"; then
23279 # Extract the first word of "pkg-config", so it can be a program name with args.
23280set dummy pkg-config; ac_word=$2
23281echo "$as_me:$LINENO: checking for $ac_word" >&5
23282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23283if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23284 echo $ECHO_N "(cached) $ECHO_C" >&6
23285else
23286 case $PKG_CONFIG in
23287 [\\/]* | ?:[\\/]*)
23288 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23289 ;;
23290 *)
23291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23292for as_dir in $PATH
23293do
23294 IFS=$as_save_IFS
23295 test -z "$as_dir" && as_dir=.
23296 for ac_exec_ext in '' $ac_executable_extensions; do
23297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23298 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23300 break 2
23301 fi
23302done
23303done
23304
23305 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23306 ;;
23307esac
23308fi
23309PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23310
23311if test -n "$PKG_CONFIG"; then
23312 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23313echo "${ECHO_T}$PKG_CONFIG" >&6
23314else
23315 echo "$as_me:$LINENO: result: no" >&5
23316echo "${ECHO_T}no" >&6
23317fi
23318
23319 fi
23320
23321 if test "$PKG_CONFIG" = "no" ; then
23322 echo "*** The pkg-config script could not be found. Make sure it is"
23323 echo "*** in your path, or set the PKG_CONFIG environment variable"
23324 echo "*** to the full path to pkg-config."
23325 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23326 else
23327 PKG_CONFIG_MIN_VERSION=0.9.0
23328 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23329 echo "$as_me:$LINENO: checking for pangoft2" >&5
23330echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23331
23332 if $PKG_CONFIG --exists "pangoft2" ; then
23333 echo "$as_me:$LINENO: result: yes" >&5
23334echo "${ECHO_T}yes" >&6
23335 succeeded=yes
23336
23337 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23338echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23339 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23340 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23341echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23342
23343 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23344echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23345 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23346 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23347echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23348 else
23349 PANGOFT2_CFLAGS=""
23350 PANGOFT2_LIBS=""
23351 ## If we have a custom action on failure, don't print errors, but
23352 ## do set a variable so people can do so.
23353 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23354
23355 fi
23356
23357
23358
23359 else
23360 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23361 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23362 fi
23363 fi
23364
23365 if test $succeeded = yes; then
23366
23367 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23368 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23369
23370 else
23371
23372 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23373echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23374 wxUSE_PRINTING_ARCHITECTURE="no"
23375
23376
23377 fi
23378
23379 fi
304205f1
VS
23380
23381 save_CFLAGS="$CFLAGS"
23382 save_LIBS="$LIBS"
23383 CFLAGS="$CFLAGS $GTK_CFLAGS"
23384 LIBS="$LIBS $GTK_LIBS"
23385
23386for ac_func in pango_font_family_is_monospace
23387do
23388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23389echo "$as_me:$LINENO: checking for $ac_func" >&5
23390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23391if eval "test \"\${$as_ac_var+set}\" = set"; then
23392 echo $ECHO_N "(cached) $ECHO_C" >&6
23393else
23394 cat >conftest.$ac_ext <<_ACEOF
23395/* confdefs.h. */
23396_ACEOF
23397cat confdefs.h >>conftest.$ac_ext
23398cat >>conftest.$ac_ext <<_ACEOF
23399/* end confdefs.h. */
23400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23402#define $ac_func innocuous_$ac_func
23403
23404/* System header to define __stub macros and hopefully few prototypes,
23405 which can conflict with char $ac_func (); below.
23406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23407 <limits.h> exists even on freestanding compilers. */
23408
23409#ifdef __STDC__
23410# include <limits.h>
23411#else
23412# include <assert.h>
23413#endif
23414
23415#undef $ac_func
23416
23417/* Override any gcc2 internal prototype to avoid an error. */
23418#ifdef __cplusplus
23419extern "C"
23420{
23421#endif
23422/* We use char because int might match the return type of a gcc2
23423 builtin and then its argument prototype would still apply. */
23424char $ac_func ();
23425/* The GNU C library defines this for functions which it implements
23426 to always fail with ENOSYS. Some functions are actually named
23427 something starting with __ and the normal name is an alias. */
23428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23429choke me
23430#else
23431char (*f) () = $ac_func;
23432#endif
23433#ifdef __cplusplus
23434}
23435#endif
23436
23437int
23438main ()
23439{
23440return f != $ac_func;
23441 ;
23442 return 0;
23443}
23444_ACEOF
23445rm -f conftest.$ac_objext conftest$ac_exeext
23446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23447 (eval $ac_link) 2>conftest.er1
23448 ac_status=$?
23449 grep -v '^ *+' conftest.er1 >conftest.err
23450 rm -f conftest.er1
23451 cat conftest.err >&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); } &&
ea7db9ff
DE
23454 { ac_try='test -z "$ac_c_werror_flag"
23455 || test ! -s conftest.err'
304205f1
VS
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } &&
23461 { ac_try='test -s conftest$ac_exeext'
23462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); }; }; then
23467 eval "$as_ac_var=yes"
23468else
23469 echo "$as_me: failed program was:" >&5
23470sed 's/^/| /' conftest.$ac_ext >&5
23471
23472eval "$as_ac_var=no"
23473fi
23474rm -f conftest.err conftest.$ac_objext \
23475 conftest$ac_exeext conftest.$ac_ext
23476fi
23477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23479if test `eval echo '${'$as_ac_var'}'` = yes; then
23480 cat >>confdefs.h <<_ACEOF
23481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23482_ACEOF
23483
23484fi
23485done
23486
23487 CFLAGS="$save_CFLAGS"
23488 LIBS="$save_LIBS"
a848cd7e
SC
23489 else
23490 if test "$wxUSE_UNICODE" = "yes"; then
23491 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23492echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23493 wxUSE_UNICODE=no
23494 fi
23495 fi
23496
23497 if test "$USE_DARWIN" != 1; then
23498
23499for ac_func in poll
23500do
23501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23502echo "$as_me:$LINENO: checking for $ac_func" >&5
23503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23504if eval "test \"\${$as_ac_var+set}\" = set"; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23506else
23507 cat >conftest.$ac_ext <<_ACEOF
23508/* confdefs.h. */
23509_ACEOF
23510cat confdefs.h >>conftest.$ac_ext
23511cat >>conftest.$ac_ext <<_ACEOF
23512/* end confdefs.h. */
ac1cb8d3
VS
23513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23515#define $ac_func innocuous_$ac_func
23516
a848cd7e
SC
23517/* System header to define __stub macros and hopefully few prototypes,
23518 which can conflict with char $ac_func (); below.
23519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23520 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23521
a848cd7e
SC
23522#ifdef __STDC__
23523# include <limits.h>
23524#else
23525# include <assert.h>
23526#endif
ac1cb8d3
VS
23527
23528#undef $ac_func
23529
a848cd7e
SC
23530/* Override any gcc2 internal prototype to avoid an error. */
23531#ifdef __cplusplus
23532extern "C"
23533{
23534#endif
23535/* We use char because int might match the return type of a gcc2
23536 builtin and then its argument prototype would still apply. */
23537char $ac_func ();
23538/* The GNU C library defines this for functions which it implements
23539 to always fail with ENOSYS. Some functions are actually named
23540 something starting with __ and the normal name is an alias. */
23541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23542choke me
23543#else
23544char (*f) () = $ac_func;
23545#endif
23546#ifdef __cplusplus
23547}
23548#endif
23549
23550int
23551main ()
23552{
23553return f != $ac_func;
23554 ;
23555 return 0;
23556}
23557_ACEOF
23558rm -f conftest.$ac_objext conftest$ac_exeext
23559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23560 (eval $ac_link) 2>conftest.er1
a848cd7e 23561 ac_status=$?
ac1cb8d3
VS
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
a848cd7e
SC
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } &&
ea7db9ff
DE
23567 { ac_try='test -z "$ac_c_werror_flag"
23568 || test ! -s conftest.err'
ac1cb8d3
VS
23569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570 (eval $ac_try) 2>&5
23571 ac_status=$?
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; } &&
23574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; }; then
23580 eval "$as_ac_var=yes"
23581else
23582 echo "$as_me: failed program was:" >&5
23583sed 's/^/| /' conftest.$ac_ext >&5
23584
23585eval "$as_ac_var=no"
23586fi
ac1cb8d3
VS
23587rm -f conftest.err conftest.$ac_objext \
23588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23589fi
23590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23592if test `eval echo '${'$as_ac_var'}'` = yes; then
23593 cat >>confdefs.h <<_ACEOF
23594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23595_ACEOF
23596
23597fi
23598done
23599
23600 fi
23601
23602 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23603 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23604
23605 AFMINSTALL=afminstall
23606 TOOLKIT=GTK
23607 GUIDIST=GTK_DIST
23608
23609 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23610echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23611if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23613else
23614 ac_check_lib_save_LIBS=$LIBS
23615LIBS="-lgdk $LIBS"
23616cat >conftest.$ac_ext <<_ACEOF
23617/* confdefs.h. */
23618_ACEOF
23619cat confdefs.h >>conftest.$ac_ext
23620cat >>conftest.$ac_ext <<_ACEOF
23621/* end confdefs.h. */
23622
23623/* Override any gcc2 internal prototype to avoid an error. */
23624#ifdef __cplusplus
23625extern "C"
23626#endif
23627/* We use char because int might match the return type of a gcc2
23628 builtin and then its argument prototype would still apply. */
23629char gdk_im_open ();
23630int
23631main ()
23632{
23633gdk_im_open ();
23634 ;
23635 return 0;
23636}
23637_ACEOF
23638rm -f conftest.$ac_objext conftest$ac_exeext
23639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23640 (eval $ac_link) 2>conftest.er1
a848cd7e 23641 ac_status=$?
ac1cb8d3
VS
23642 grep -v '^ *+' conftest.er1 >conftest.err
23643 rm -f conftest.er1
23644 cat conftest.err >&5
a848cd7e
SC
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
ea7db9ff
DE
23647 { ac_try='test -z "$ac_c_werror_flag"
23648 || test ! -s conftest.err'
ac1cb8d3
VS
23649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650 (eval $ac_try) 2>&5
23651 ac_status=$?
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; } &&
23654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; }; then
23660 ac_cv_lib_gdk_gdk_im_open=yes
23661else
23662 echo "$as_me: failed program was:" >&5
23663sed 's/^/| /' conftest.$ac_ext >&5
23664
23665ac_cv_lib_gdk_gdk_im_open=no
23666fi
ac1cb8d3
VS
23667rm -f conftest.err conftest.$ac_objext \
23668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23669LIBS=$ac_check_lib_save_LIBS
23670fi
23671echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23672echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23673if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23674 cat >>confdefs.h <<\_ACEOF
23675#define HAVE_XIM 1
23676_ACEOF
23677
23678fi
23679
23680
23681
23682 if test "$wxUSE_GPE" = "yes"; then
23683 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23684echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23685
23686ac_find_libraries=
23687for ac_dir in $SEARCH_LIB /usr/lib;
23688 do
23689 for ac_extension in a so sl dylib; do
23690 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23691 ac_find_libraries=$ac_dir
23692 break 2
23693 fi
23694 done
23695 done
23696
23697 if test "$ac_find_libraries" != "" ; then
23698
23699 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23700 result=$?
23701 if test $result = 0; then
23702 ac_path_to_link=""
23703 else
23704 ac_path_to_link=" -L$ac_find_libraries"
23705 fi
23706
23707 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23708 WXGPE=1
23709 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23710echo "${ECHO_T}found at $ac_find_libraries" >&6
23711 else
23712 echo "$as_me:$LINENO: result: not found" >&5
23713echo "${ECHO_T}not found" >&6
23714 fi
23715
23716 fi
23717 fi
23718
23719 if test "$wxUSE_MGL" = 1; then
23720 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23721echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23722 if test "x$MGL_ROOT" = x ; then
23723 echo "$as_me:$LINENO: result: not found" >&5
23724echo "${ECHO_T}not found" >&6
23725 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23726echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23727 { (exit 1); exit 1; }; }
23728 else
23729 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23730echo "${ECHO_T}$MGL_ROOT" >&6
23731 fi
23732
23733 echo "$as_me:$LINENO: checking for libmgl location" >&5
23734echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23735 case "${host}" in
23736 *-*-linux* )
23737 if test "x$wxUSE_SHARED" = xyes ; then
23738 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23739 else
23740 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23741 fi
23742 ;;
23743 *-pc-msdosdjgpp )
23744 mgl_os_candidates="dos32/dj2"
23745 ;;
23746 *)
23747 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23748echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23749 { (exit 1); exit 1; }; }
23750 esac
23751
23752 mgl_lib_type=""
23753 mgl_os=""
23754
23755 for mgl_os_i in $mgl_os_candidates ; do
23756 if test "x$mgl_os" = x ; then
23757 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23758 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23759 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23760 mgl_lib_type=debug
23761 mgl_os=$mgl_os_i
23762 fi
23763 fi
23764 if test "x$mgl_lib_type" = x ; then
23765 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23766 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23767 mgl_lib_type=release
23768 mgl_os=$mgl_os_i
23769 fi
23770 fi
23771 fi
23772 done
23773
23774 if test "x$mgl_os" = x ; then
23775 echo "$as_me:$LINENO: result: not found" >&5
23776echo "${ECHO_T}not found" >&6
23777 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23778echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23779 { (exit 1); exit 1; }; }
23780 fi
23781 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23782echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23783
23784 wxUSE_UNIVERSAL="yes"
23785
23786 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23787 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23788
23789 AFMINSTALL=afminstall
23790 TOOLKIT=MGL
23791 GUIDIST=MGL_DIST
23792 fi
23793
23794 if test "$wxUSE_MICROWIN" = 1; then
23795 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23796echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23797 if test "x$MICROWINDOWS" = x ; then
23798 echo "$as_me:$LINENO: result: not found" >&5
23799echo "${ECHO_T}not found" >&6
23800 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23801echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23802 { (exit 1); exit 1; }; }
23803 else
23804 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23805echo "${ECHO_T}$MICROWINDOWS" >&6
23806 fi
23807
23808 if test -f $MICROWINDOWS/lib/libmwin.a; then
23809 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23810echo "${ECHO_T}MicroWindows' libraries found." >&6
23811 else
23812 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23813echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23814 { (exit 1); exit 1; }; }
23815 fi
23816
23817 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23818 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23819
23820 wxUSE_UNIVERSAL="yes"
23821
23822 AFMINSTALL=afminstall
23823 TOOLKIT=MICROWIN
23824 GUIDIST=MICROWIN_DIST
23825
23826 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23827 fi
23828
74b84332 23829 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
ea7db9ff 23830 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23831echo $ECHO_N "checking for X... $ECHO_C" >&6
23832
23833
23834# Check whether --with-x or --without-x was given.
23835if test "${with_x+set}" = set; then
23836 withval="$with_x"
23837
23838fi;
23839# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23840if test "x$with_x" = xno; then
23841 # The user explicitly disabled X.
23842 have_x=disabled
23843else
23844 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23845 # Both variables are already set.
23846 have_x=yes
23847 else
23848 if test "${ac_cv_have_x+set}" = set; then
23849 echo $ECHO_N "(cached) $ECHO_C" >&6
23850else
23851 # One or both of the vars are not set, and there is no cached value.
23852ac_x_includes=no ac_x_libraries=no
23853rm -fr conftest.dir
23854if mkdir conftest.dir; then
23855 cd conftest.dir
23856 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23857 cat >Imakefile <<'_ACEOF'
23858acfindx:
23859 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23860_ACEOF
23861 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23862 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23863 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23864 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23865 for ac_extension in a so sl; do
23866 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23867 test -f $ac_im_libdir/libX11.$ac_extension; then
23868 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23869 fi
23870 done
23871 # Screen out bogus values from the imake configuration. They are
23872 # bogus both because they are the default anyway, and because
23873 # using them would break gcc on systems where it needs fixed includes.
23874 case $ac_im_incroot in
23875 /usr/include) ;;
23876 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23877 esac
23878 case $ac_im_usrlibdir in
23879 /usr/lib | /lib) ;;
23880 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23881 esac
23882 fi
23883 cd ..
23884 rm -fr conftest.dir
23885fi
23886
23887# Standard set of common directories for X headers.
23888# Check X11 before X11Rn because it is often a symlink to the current release.
23889ac_x_header_dirs='
23890/usr/X11/include
23891/usr/X11R6/include
23892/usr/X11R5/include
23893/usr/X11R4/include
23894
23895/usr/include/X11
23896/usr/include/X11R6
23897/usr/include/X11R5
23898/usr/include/X11R4
23899
23900/usr/local/X11/include
23901/usr/local/X11R6/include
23902/usr/local/X11R5/include
23903/usr/local/X11R4/include
23904
23905/usr/local/include/X11
23906/usr/local/include/X11R6
23907/usr/local/include/X11R5
23908/usr/local/include/X11R4
23909
23910/usr/X386/include
23911/usr/x386/include
23912/usr/XFree86/include/X11
23913
23914/usr/include
23915/usr/local/include
23916/usr/unsupported/include
23917/usr/athena/include
23918/usr/local/x11r5/include
23919/usr/lpp/Xamples/include
23920
23921/usr/openwin/include
23922/usr/openwin/share/include'
23923
23924if test "$ac_x_includes" = no; then
ea7db9ff 23925 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
23926 # First, try using that file with no special directory specified.
23927 cat >conftest.$ac_ext <<_ACEOF
23928/* confdefs.h. */
23929_ACEOF
23930cat confdefs.h >>conftest.$ac_ext
23931cat >>conftest.$ac_ext <<_ACEOF
23932/* end confdefs.h. */
23933#include <X11/Intrinsic.h>
23934_ACEOF
23935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23937 ac_status=$?
23938 grep -v '^ *+' conftest.er1 >conftest.err
23939 rm -f conftest.er1
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } >/dev/null; then
23943 if test -s conftest.err; then
23944 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23946 else
23947 ac_cpp_err=
23948 fi
23949else
23950 ac_cpp_err=yes
23951fi
23952if test -z "$ac_cpp_err"; then
23953 # We can compile using X headers with no special include directory.
23954ac_x_includes=
23955else
23956 echo "$as_me: failed program was:" >&5
23957sed 's/^/| /' conftest.$ac_ext >&5
23958
23959 for ac_dir in $ac_x_header_dirs; do
23960 if test -r "$ac_dir/X11/Intrinsic.h"; then
23961 ac_x_includes=$ac_dir
23962 break
23963 fi
23964done
23965fi
23966rm -f conftest.err conftest.$ac_ext
23967fi # $ac_x_includes = no
23968
23969if test "$ac_x_libraries" = no; then
23970 # Check for the libraries.
23971 # See if we find them without any special options.
23972 # Don't add to $LIBS permanently.
23973 ac_save_LIBS=$LIBS
23974 LIBS="-lXt $LIBS"
23975 cat >conftest.$ac_ext <<_ACEOF
23976/* confdefs.h. */
23977_ACEOF
23978cat confdefs.h >>conftest.$ac_ext
23979cat >>conftest.$ac_ext <<_ACEOF
23980/* end confdefs.h. */
23981#include <X11/Intrinsic.h>
23982int
23983main ()
23984{
23985XtMalloc (0)
23986 ;
23987 return 0;
23988}
23989_ACEOF
23990rm -f conftest.$ac_objext conftest$ac_exeext
23991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23992 (eval $ac_link) 2>conftest.er1
a848cd7e 23993 ac_status=$?
ac1cb8d3
VS
23994 grep -v '^ *+' conftest.er1 >conftest.err
23995 rm -f conftest.er1
23996 cat conftest.err >&5
a848cd7e
SC
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } &&
ea7db9ff
DE
23999 { ac_try='test -z "$ac_c_werror_flag"
24000 || test ! -s conftest.err'
ac1cb8d3
VS
24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002 (eval $ac_try) 2>&5
24003 ac_status=$?
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); }; } &&
24006 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 LIBS=$ac_save_LIBS
24013# We can link X programs with no special library path.
24014ac_x_libraries=
24015else
24016 echo "$as_me: failed program was:" >&5
24017sed 's/^/| /' conftest.$ac_ext >&5
24018
24019LIBS=$ac_save_LIBS
24020for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24021do
24022 # Don't even attempt the hair of trying to link an X program!
24023 for ac_extension in a so sl; do
24024 if test -r $ac_dir/libXt.$ac_extension; then
24025 ac_x_libraries=$ac_dir
24026 break 2
24027 fi
24028 done
24029done
24030fi
ac1cb8d3
VS
24031rm -f conftest.err conftest.$ac_objext \
24032 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24033fi # $ac_x_libraries = no
24034
24035if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24036 # Didn't find X anywhere. Cache the known absence of X.
24037 ac_cv_have_x="have_x=no"
24038else
24039 # Record where we found X for the cache.
24040 ac_cv_have_x="have_x=yes \
ac1cb8d3 24041 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24042fi
24043fi
24044
24045 fi
24046 eval "$ac_cv_have_x"
24047fi # $with_x != no
24048
24049if test "$have_x" != yes; then
24050 echo "$as_me:$LINENO: result: $have_x" >&5
24051echo "${ECHO_T}$have_x" >&6
24052 no_x=yes
24053else
24054 # If each of the values was on the command line, it overrides each guess.
24055 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24056 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24057 # Update the cache value to reflect the command line values.
24058 ac_cv_have_x="have_x=yes \
24059 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
ea7db9ff
DE
24060 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24061echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24062fi
24063
24064if test "$no_x" = yes; then
24065 # Not all programs may use this symbol, but it does not hurt to define it.
24066
24067cat >>confdefs.h <<\_ACEOF
24068#define X_DISPLAY_MISSING 1
24069_ACEOF
24070
24071 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24072else
24073 if test -n "$x_includes"; then
24074 X_CFLAGS="$X_CFLAGS -I$x_includes"
24075 fi
24076
24077 # It would also be nice to do this for all -L options, not just this one.
24078 if test -n "$x_libraries"; then
24079 X_LIBS="$X_LIBS -L$x_libraries"
24080 # For Solaris; some versions of Sun CC require a space after -R and
24081 # others require no space. Words are not sufficient . . . .
24082 case `(uname -sr) 2>/dev/null` in
24083 "SunOS 5"*)
24084 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24085echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24086 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24087 cat >conftest.$ac_ext <<_ACEOF
24088/* confdefs.h. */
24089_ACEOF
24090cat confdefs.h >>conftest.$ac_ext
24091cat >>conftest.$ac_ext <<_ACEOF
24092/* end confdefs.h. */
24093
24094int
24095main ()
24096{
24097
24098 ;
24099 return 0;
24100}
24101_ACEOF
24102rm -f conftest.$ac_objext conftest$ac_exeext
24103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24104 (eval $ac_link) 2>conftest.er1
a848cd7e 24105 ac_status=$?
ac1cb8d3
VS
24106 grep -v '^ *+' conftest.er1 >conftest.err
24107 rm -f conftest.er1
24108 cat conftest.err >&5
a848cd7e
SC
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); } &&
ea7db9ff
DE
24111 { ac_try='test -z "$ac_c_werror_flag"
24112 || test ! -s conftest.err'
ac1cb8d3
VS
24113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114 (eval $ac_try) 2>&5
24115 ac_status=$?
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); }; } &&
24118 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24120 (eval $ac_try) 2>&5
24121 ac_status=$?
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); }; }; then
24124 ac_R_nospace=yes
24125else
24126 echo "$as_me: failed program was:" >&5
24127sed 's/^/| /' conftest.$ac_ext >&5
24128
24129ac_R_nospace=no
24130fi
ac1cb8d3
VS
24131rm -f conftest.err conftest.$ac_objext \
24132 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24133 if test $ac_R_nospace = yes; then
24134 echo "$as_me:$LINENO: result: no" >&5
24135echo "${ECHO_T}no" >&6
24136 X_LIBS="$X_LIBS -R$x_libraries"
24137 else
24138 LIBS="$ac_xsave_LIBS -R $x_libraries"
24139 cat >conftest.$ac_ext <<_ACEOF
24140/* confdefs.h. */
24141_ACEOF
24142cat confdefs.h >>conftest.$ac_ext
24143cat >>conftest.$ac_ext <<_ACEOF
24144/* end confdefs.h. */
24145
24146int
24147main ()
24148{
24149
24150 ;
24151 return 0;
24152}
24153_ACEOF
24154rm -f conftest.$ac_objext conftest$ac_exeext
24155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24156 (eval $ac_link) 2>conftest.er1
a848cd7e 24157 ac_status=$?
ac1cb8d3
VS
24158 grep -v '^ *+' conftest.er1 >conftest.err
24159 rm -f conftest.er1
24160 cat conftest.err >&5
a848cd7e
SC
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); } &&
ea7db9ff
DE
24163 { ac_try='test -z "$ac_c_werror_flag"
24164 || test ! -s conftest.err'
ac1cb8d3
VS
24165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166 (eval $ac_try) 2>&5
24167 ac_status=$?
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; } &&
24170 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172 (eval $ac_try) 2>&5
24173 ac_status=$?
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); }; }; then
24176 ac_R_space=yes
24177else
24178 echo "$as_me: failed program was:" >&5
24179sed 's/^/| /' conftest.$ac_ext >&5
24180
24181ac_R_space=no
24182fi
ac1cb8d3
VS
24183rm -f conftest.err conftest.$ac_objext \
24184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24185 if test $ac_R_space = yes; then
24186 echo "$as_me:$LINENO: result: yes" >&5
24187echo "${ECHO_T}yes" >&6
24188 X_LIBS="$X_LIBS -R $x_libraries"
24189 else
24190 echo "$as_me:$LINENO: result: neither works" >&5
24191echo "${ECHO_T}neither works" >&6
24192 fi
24193 fi
24194 LIBS=$ac_xsave_LIBS
24195 esac
24196 fi
24197
24198 # Check for system-dependent libraries X programs must link with.
24199 # Do this before checking for the system-independent R6 libraries
24200 # (-lICE), since we may need -lsocket or whatever for X linking.
24201
24202 if test "$ISC" = yes; then
24203 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24204 else
24205 # Martyn Johnson says this is needed for Ultrix, if the X
24206 # libraries were built with DECnet support. And Karl Berry says
24207 # the Alpha needs dnet_stub (dnet does not exist).
24208 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24209 cat >conftest.$ac_ext <<_ACEOF
24210/* confdefs.h. */
24211_ACEOF
24212cat confdefs.h >>conftest.$ac_ext
24213cat >>conftest.$ac_ext <<_ACEOF
24214/* end confdefs.h. */
24215
24216/* Override any gcc2 internal prototype to avoid an error. */
24217#ifdef __cplusplus
24218extern "C"
24219#endif
24220/* We use char because int might match the return type of a gcc2
24221 builtin and then its argument prototype would still apply. */
24222char XOpenDisplay ();
24223int
24224main ()
24225{
24226XOpenDisplay ();
24227 ;
24228 return 0;
24229}
24230_ACEOF
24231rm -f conftest.$ac_objext conftest$ac_exeext
24232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24233 (eval $ac_link) 2>conftest.er1
a848cd7e 24234 ac_status=$?
ac1cb8d3
VS
24235 grep -v '^ *+' conftest.er1 >conftest.err
24236 rm -f conftest.er1
24237 cat conftest.err >&5
a848cd7e
SC
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } &&
ea7db9ff
DE
24240 { ac_try='test -z "$ac_c_werror_flag"
24241 || test ! -s conftest.err'
ac1cb8d3
VS
24242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243 (eval $ac_try) 2>&5
24244 ac_status=$?
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; } &&
24247 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; }; then
24253 :
24254else
24255 echo "$as_me: failed program was:" >&5
24256sed 's/^/| /' conftest.$ac_ext >&5
24257
24258echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24259echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24260if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24261 echo $ECHO_N "(cached) $ECHO_C" >&6
24262else
24263 ac_check_lib_save_LIBS=$LIBS
24264LIBS="-ldnet $LIBS"
24265cat >conftest.$ac_ext <<_ACEOF
24266/* confdefs.h. */
24267_ACEOF
24268cat confdefs.h >>conftest.$ac_ext
24269cat >>conftest.$ac_ext <<_ACEOF
24270/* end confdefs.h. */
24271
24272/* Override any gcc2 internal prototype to avoid an error. */
24273#ifdef __cplusplus
24274extern "C"
24275#endif
24276/* We use char because int might match the return type of a gcc2
24277 builtin and then its argument prototype would still apply. */
24278char dnet_ntoa ();
24279int
24280main ()
24281{
24282dnet_ntoa ();
24283 ;
24284 return 0;
24285}
24286_ACEOF
24287rm -f conftest.$ac_objext conftest$ac_exeext
24288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24289 (eval $ac_link) 2>conftest.er1
a848cd7e 24290 ac_status=$?
ac1cb8d3
VS
24291 grep -v '^ *+' conftest.er1 >conftest.err
24292 rm -f conftest.er1
24293 cat conftest.err >&5
a848cd7e
SC
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } &&
ea7db9ff
DE
24296 { ac_try='test -z "$ac_c_werror_flag"
24297 || test ! -s conftest.err'
ac1cb8d3
VS
24298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24299 (eval $ac_try) 2>&5
24300 ac_status=$?
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); }; } &&
24303 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); }; }; then
24309 ac_cv_lib_dnet_dnet_ntoa=yes
24310else
24311 echo "$as_me: failed program was:" >&5
24312sed 's/^/| /' conftest.$ac_ext >&5
24313
24314ac_cv_lib_dnet_dnet_ntoa=no
24315fi
ac1cb8d3
VS
24316rm -f conftest.err conftest.$ac_objext \
24317 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24318LIBS=$ac_check_lib_save_LIBS
24319fi
24320echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24321echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24322if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24323 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24324fi
24325
24326 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24327 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24328echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24329if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24331else
24332 ac_check_lib_save_LIBS=$LIBS
24333LIBS="-ldnet_stub $LIBS"
24334cat >conftest.$ac_ext <<_ACEOF
24335/* confdefs.h. */
24336_ACEOF
24337cat confdefs.h >>conftest.$ac_ext
24338cat >>conftest.$ac_ext <<_ACEOF
24339/* end confdefs.h. */
24340
24341/* Override any gcc2 internal prototype to avoid an error. */
24342#ifdef __cplusplus
24343extern "C"
24344#endif
24345/* We use char because int might match the return type of a gcc2
24346 builtin and then its argument prototype would still apply. */
24347char dnet_ntoa ();
24348int
24349main ()
24350{
24351dnet_ntoa ();
24352 ;
24353 return 0;
24354}
24355_ACEOF
24356rm -f conftest.$ac_objext conftest$ac_exeext
24357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24358 (eval $ac_link) 2>conftest.er1
a848cd7e 24359 ac_status=$?
ac1cb8d3
VS
24360 grep -v '^ *+' conftest.er1 >conftest.err
24361 rm -f conftest.er1
24362 cat conftest.err >&5
a848cd7e
SC
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); } &&
ea7db9ff
DE
24365 { ac_try='test -z "$ac_c_werror_flag"
24366 || test ! -s conftest.err'
ac1cb8d3
VS
24367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24368 (eval $ac_try) 2>&5
24369 ac_status=$?
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); }; } &&
24372 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); }; }; then
24378 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24379else
24380 echo "$as_me: failed program was:" >&5
24381sed 's/^/| /' conftest.$ac_ext >&5
24382
24383ac_cv_lib_dnet_stub_dnet_ntoa=no
24384fi
ac1cb8d3
VS
24385rm -f conftest.err conftest.$ac_objext \
24386 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24387LIBS=$ac_check_lib_save_LIBS
24388fi
24389echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24390echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24391if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24392 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24393fi
24394
24395 fi
24396fi
ac1cb8d3
VS
24397rm -f conftest.err conftest.$ac_objext \
24398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24399 LIBS="$ac_xsave_LIBS"
24400
24401 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24402 # to get the SysV transport functions.
24403 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24404 # needs -lnsl.
24405 # The nsl library prevents programs from opening the X display
24406 # on Irix 5.2, according to T.E. Dickey.
24407 # The functions gethostbyname, getservbyname, and inet_addr are
24408 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24409 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24410echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24411if test "${ac_cv_func_gethostbyname+set}" = set; then
24412 echo $ECHO_N "(cached) $ECHO_C" >&6
24413else
24414 cat >conftest.$ac_ext <<_ACEOF
24415/* confdefs.h. */
24416_ACEOF
24417cat confdefs.h >>conftest.$ac_ext
24418cat >>conftest.$ac_ext <<_ACEOF
24419/* end confdefs.h. */
ac1cb8d3
VS
24420/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24422#define gethostbyname innocuous_gethostbyname
24423
a848cd7e
SC
24424/* System header to define __stub macros and hopefully few prototypes,
24425 which can conflict with char gethostbyname (); below.
24426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24427 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24428
a848cd7e
SC
24429#ifdef __STDC__
24430# include <limits.h>
24431#else
24432# include <assert.h>
24433#endif
ac1cb8d3
VS
24434
24435#undef gethostbyname
24436
a848cd7e
SC
24437/* Override any gcc2 internal prototype to avoid an error. */
24438#ifdef __cplusplus
24439extern "C"
24440{
24441#endif
24442/* We use char because int might match the return type of a gcc2
24443 builtin and then its argument prototype would still apply. */
24444char gethostbyname ();
24445/* The GNU C library defines this for functions which it implements
24446 to always fail with ENOSYS. Some functions are actually named
24447 something starting with __ and the normal name is an alias. */
24448#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24449choke me
24450#else
24451char (*f) () = gethostbyname;
24452#endif
24453#ifdef __cplusplus
24454}
24455#endif
24456
24457int
24458main ()
24459{
24460return f != gethostbyname;
24461 ;
24462 return 0;
24463}
24464_ACEOF
24465rm -f conftest.$ac_objext conftest$ac_exeext
24466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24467 (eval $ac_link) 2>conftest.er1
a848cd7e 24468 ac_status=$?
ac1cb8d3
VS
24469 grep -v '^ *+' conftest.er1 >conftest.err
24470 rm -f conftest.er1
24471 cat conftest.err >&5
a848cd7e
SC
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); } &&
ea7db9ff
DE
24474 { ac_try='test -z "$ac_c_werror_flag"
24475 || test ! -s conftest.err'
ac1cb8d3
VS
24476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477 (eval $ac_try) 2>&5
24478 ac_status=$?
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); }; } &&
24481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483 (eval $ac_try) 2>&5
24484 ac_status=$?
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); }; }; then
24487 ac_cv_func_gethostbyname=yes
24488else
24489 echo "$as_me: failed program was:" >&5
24490sed 's/^/| /' conftest.$ac_ext >&5
24491
24492ac_cv_func_gethostbyname=no
24493fi
ac1cb8d3
VS
24494rm -f conftest.err conftest.$ac_objext \
24495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24496fi
24497echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24498echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24499
24500 if test $ac_cv_func_gethostbyname = no; then
24501 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24502echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24503if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24504 echo $ECHO_N "(cached) $ECHO_C" >&6
24505else
24506 ac_check_lib_save_LIBS=$LIBS
24507LIBS="-lnsl $LIBS"
24508cat >conftest.$ac_ext <<_ACEOF
24509/* confdefs.h. */
24510_ACEOF
24511cat confdefs.h >>conftest.$ac_ext
24512cat >>conftest.$ac_ext <<_ACEOF
24513/* end confdefs.h. */
24514
24515/* Override any gcc2 internal prototype to avoid an error. */
24516#ifdef __cplusplus
24517extern "C"
24518#endif
24519/* We use char because int might match the return type of a gcc2
24520 builtin and then its argument prototype would still apply. */
24521char gethostbyname ();
24522int
24523main ()
24524{
24525gethostbyname ();
24526 ;
24527 return 0;
24528}
24529_ACEOF
24530rm -f conftest.$ac_objext conftest$ac_exeext
24531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24532 (eval $ac_link) 2>conftest.er1
24533 ac_status=$?
24534 grep -v '^ *+' conftest.er1 >conftest.err
24535 rm -f conftest.er1
24536 cat conftest.err >&5
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); } &&
ea7db9ff
DE
24539 { ac_try='test -z "$ac_c_werror_flag"
24540 || test ! -s conftest.err'
ac1cb8d3
VS
24541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24542 (eval $ac_try) 2>&5
24543 ac_status=$?
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); }; } &&
24546 { ac_try='test -s conftest$ac_exeext'
24547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); }; }; then
24552 ac_cv_lib_nsl_gethostbyname=yes
24553else
24554 echo "$as_me: failed program was:" >&5
24555sed 's/^/| /' conftest.$ac_ext >&5
24556
24557ac_cv_lib_nsl_gethostbyname=no
24558fi
24559rm -f conftest.err conftest.$ac_objext \
24560 conftest$ac_exeext conftest.$ac_ext
24561LIBS=$ac_check_lib_save_LIBS
24562fi
24563echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24564echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24565if test $ac_cv_lib_nsl_gethostbyname = yes; then
24566 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24567fi
24568
24569 if test $ac_cv_lib_nsl_gethostbyname = no; then
24570 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24571echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24572if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24574else
24575 ac_check_lib_save_LIBS=$LIBS
24576LIBS="-lbsd $LIBS"
24577cat >conftest.$ac_ext <<_ACEOF
24578/* confdefs.h. */
24579_ACEOF
24580cat confdefs.h >>conftest.$ac_ext
24581cat >>conftest.$ac_ext <<_ACEOF
24582/* end confdefs.h. */
24583
24584/* Override any gcc2 internal prototype to avoid an error. */
24585#ifdef __cplusplus
24586extern "C"
24587#endif
24588/* We use char because int might match the return type of a gcc2
24589 builtin and then its argument prototype would still apply. */
24590char gethostbyname ();
24591int
24592main ()
24593{
24594gethostbyname ();
24595 ;
24596 return 0;
24597}
24598_ACEOF
24599rm -f conftest.$ac_objext conftest$ac_exeext
24600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24601 (eval $ac_link) 2>conftest.er1
a848cd7e 24602 ac_status=$?
ac1cb8d3
VS
24603 grep -v '^ *+' conftest.er1 >conftest.err
24604 rm -f conftest.er1
24605 cat conftest.err >&5
a848cd7e
SC
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); } &&
ea7db9ff
DE
24608 { ac_try='test -z "$ac_c_werror_flag"
24609 || test ! -s conftest.err'
a848cd7e
SC
24610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24611 (eval $ac_try) 2>&5
24612 ac_status=$?
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24614 (exit $ac_status); }; } &&
24615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617 (eval $ac_try) 2>&5
24618 ac_status=$?
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); }; }; then
24621 ac_cv_lib_bsd_gethostbyname=yes
24622else
24623 echo "$as_me: failed program was:" >&5
24624sed 's/^/| /' conftest.$ac_ext >&5
24625
24626ac_cv_lib_bsd_gethostbyname=no
24627fi
ac1cb8d3
VS
24628rm -f conftest.err conftest.$ac_objext \
24629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24630LIBS=$ac_check_lib_save_LIBS
24631fi
24632echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24633echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24634if test $ac_cv_lib_bsd_gethostbyname = yes; then
24635 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24636fi
24637
24638 fi
24639 fi
24640
24641 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24642 # socket/setsockopt and other routines are undefined under SCO ODT
24643 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24644 # on later versions), says Simon Leinen: it contains gethostby*
24645 # variants that don't use the name server (or something). -lsocket
24646 # must be given before -lnsl if both are needed. We assume that
24647 # if connect needs -lnsl, so does gethostbyname.
24648 echo "$as_me:$LINENO: checking for connect" >&5
24649echo $ECHO_N "checking for connect... $ECHO_C" >&6
24650if test "${ac_cv_func_connect+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24652else
24653 cat >conftest.$ac_ext <<_ACEOF
24654/* confdefs.h. */
24655_ACEOF
24656cat confdefs.h >>conftest.$ac_ext
24657cat >>conftest.$ac_ext <<_ACEOF
24658/* end confdefs.h. */
ac1cb8d3
VS
24659/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24661#define connect innocuous_connect
24662
a848cd7e
SC
24663/* System header to define __stub macros and hopefully few prototypes,
24664 which can conflict with char connect (); below.
24665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24666 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24667
a848cd7e
SC
24668#ifdef __STDC__
24669# include <limits.h>
24670#else
24671# include <assert.h>
24672#endif
ac1cb8d3
VS
24673
24674#undef connect
24675
a848cd7e
SC
24676/* Override any gcc2 internal prototype to avoid an error. */
24677#ifdef __cplusplus
24678extern "C"
24679{
24680#endif
24681/* We use char because int might match the return type of a gcc2
24682 builtin and then its argument prototype would still apply. */
24683char connect ();
24684/* The GNU C library defines this for functions which it implements
24685 to always fail with ENOSYS. Some functions are actually named
24686 something starting with __ and the normal name is an alias. */
24687#if defined (__stub_connect) || defined (__stub___connect)
24688choke me
24689#else
24690char (*f) () = connect;
24691#endif
24692#ifdef __cplusplus
24693}
24694#endif
24695
24696int
24697main ()
24698{
24699return f != connect;
24700 ;
24701 return 0;
24702}
24703_ACEOF
24704rm -f conftest.$ac_objext conftest$ac_exeext
24705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24706 (eval $ac_link) 2>conftest.er1
a848cd7e 24707 ac_status=$?
ac1cb8d3
VS
24708 grep -v '^ *+' conftest.er1 >conftest.err
24709 rm -f conftest.er1
24710 cat conftest.err >&5
a848cd7e
SC
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } &&
ea7db9ff
DE
24713 { ac_try='test -z "$ac_c_werror_flag"
24714 || test ! -s conftest.err'
ac1cb8d3
VS
24715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716 (eval $ac_try) 2>&5
24717 ac_status=$?
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; } &&
24720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24722 (eval $ac_try) 2>&5
24723 ac_status=$?
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); }; }; then
24726 ac_cv_func_connect=yes
24727else
24728 echo "$as_me: failed program was:" >&5
24729sed 's/^/| /' conftest.$ac_ext >&5
24730
24731ac_cv_func_connect=no
24732fi
ac1cb8d3
VS
24733rm -f conftest.err conftest.$ac_objext \
24734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24735fi
24736echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24737echo "${ECHO_T}$ac_cv_func_connect" >&6
24738
24739 if test $ac_cv_func_connect = no; then
24740 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24741echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24742if test "${ac_cv_lib_socket_connect+set}" = set; then
24743 echo $ECHO_N "(cached) $ECHO_C" >&6
24744else
24745 ac_check_lib_save_LIBS=$LIBS
24746LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24747cat >conftest.$ac_ext <<_ACEOF
24748/* confdefs.h. */
24749_ACEOF
24750cat confdefs.h >>conftest.$ac_ext
24751cat >>conftest.$ac_ext <<_ACEOF
24752/* end confdefs.h. */
24753
24754/* Override any gcc2 internal prototype to avoid an error. */
24755#ifdef __cplusplus
24756extern "C"
24757#endif
24758/* We use char because int might match the return type of a gcc2
24759 builtin and then its argument prototype would still apply. */
24760char connect ();
24761int
24762main ()
24763{
24764connect ();
24765 ;
24766 return 0;
24767}
24768_ACEOF
24769rm -f conftest.$ac_objext conftest$ac_exeext
24770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24771 (eval $ac_link) 2>conftest.er1
a848cd7e 24772 ac_status=$?
ac1cb8d3
VS
24773 grep -v '^ *+' conftest.er1 >conftest.err
24774 rm -f conftest.er1
24775 cat conftest.err >&5
a848cd7e
SC
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); } &&
ea7db9ff
DE
24778 { ac_try='test -z "$ac_c_werror_flag"
24779 || test ! -s conftest.err'
ac1cb8d3
VS
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; } &&
24785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787 (eval $ac_try) 2>&5
24788 ac_status=$?
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; }; then
24791 ac_cv_lib_socket_connect=yes
24792else
24793 echo "$as_me: failed program was:" >&5
24794sed 's/^/| /' conftest.$ac_ext >&5
24795
24796ac_cv_lib_socket_connect=no
24797fi
ac1cb8d3
VS
24798rm -f conftest.err conftest.$ac_objext \
24799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24800LIBS=$ac_check_lib_save_LIBS
24801fi
24802echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24803echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24804if test $ac_cv_lib_socket_connect = yes; then
24805 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24806fi
24807
24808 fi
24809
24810 # Guillermo Gomez says -lposix is necessary on A/UX.
24811 echo "$as_me:$LINENO: checking for remove" >&5
24812echo $ECHO_N "checking for remove... $ECHO_C" >&6
24813if test "${ac_cv_func_remove+set}" = set; then
24814 echo $ECHO_N "(cached) $ECHO_C" >&6
24815else
24816 cat >conftest.$ac_ext <<_ACEOF
24817/* confdefs.h. */
24818_ACEOF
24819cat confdefs.h >>conftest.$ac_ext
24820cat >>conftest.$ac_ext <<_ACEOF
24821/* end confdefs.h. */
ac1cb8d3
VS
24822/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24824#define remove innocuous_remove
24825
a848cd7e
SC
24826/* System header to define __stub macros and hopefully few prototypes,
24827 which can conflict with char remove (); below.
24828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24829 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24830
a848cd7e
SC
24831#ifdef __STDC__
24832# include <limits.h>
24833#else
24834# include <assert.h>
24835#endif
ac1cb8d3
VS
24836
24837#undef remove
24838
a848cd7e
SC
24839/* Override any gcc2 internal prototype to avoid an error. */
24840#ifdef __cplusplus
24841extern "C"
24842{
24843#endif
24844/* We use char because int might match the return type of a gcc2
24845 builtin and then its argument prototype would still apply. */
24846char remove ();
24847/* The GNU C library defines this for functions which it implements
24848 to always fail with ENOSYS. Some functions are actually named
24849 something starting with __ and the normal name is an alias. */
24850#if defined (__stub_remove) || defined (__stub___remove)
24851choke me
24852#else
24853char (*f) () = remove;
24854#endif
24855#ifdef __cplusplus
24856}
24857#endif
24858
24859int
24860main ()
24861{
24862return f != remove;
24863 ;
24864 return 0;
24865}
24866_ACEOF
24867rm -f conftest.$ac_objext conftest$ac_exeext
24868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24869 (eval $ac_link) 2>conftest.er1
a848cd7e 24870 ac_status=$?
ac1cb8d3
VS
24871 grep -v '^ *+' conftest.er1 >conftest.err
24872 rm -f conftest.er1
24873 cat conftest.err >&5
a848cd7e
SC
24874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875 (exit $ac_status); } &&
ea7db9ff
DE
24876 { ac_try='test -z "$ac_c_werror_flag"
24877 || test ! -s conftest.err'
ac1cb8d3
VS
24878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879 (eval $ac_try) 2>&5
24880 ac_status=$?
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); }; } &&
24883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885 (eval $ac_try) 2>&5
24886 ac_status=$?
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); }; }; then
24889 ac_cv_func_remove=yes
24890else
24891 echo "$as_me: failed program was:" >&5
24892sed 's/^/| /' conftest.$ac_ext >&5
24893
24894ac_cv_func_remove=no
24895fi
ac1cb8d3
VS
24896rm -f conftest.err conftest.$ac_objext \
24897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24898fi
24899echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24900echo "${ECHO_T}$ac_cv_func_remove" >&6
24901
24902 if test $ac_cv_func_remove = no; then
24903 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24904echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24905if test "${ac_cv_lib_posix_remove+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24907else
24908 ac_check_lib_save_LIBS=$LIBS
24909LIBS="-lposix $LIBS"
24910cat >conftest.$ac_ext <<_ACEOF
24911/* confdefs.h. */
24912_ACEOF
24913cat confdefs.h >>conftest.$ac_ext
24914cat >>conftest.$ac_ext <<_ACEOF
24915/* end confdefs.h. */
24916
24917/* Override any gcc2 internal prototype to avoid an error. */
24918#ifdef __cplusplus
24919extern "C"
24920#endif
24921/* We use char because int might match the return type of a gcc2
24922 builtin and then its argument prototype would still apply. */
24923char remove ();
24924int
24925main ()
24926{
24927remove ();
24928 ;
24929 return 0;
24930}
24931_ACEOF
24932rm -f conftest.$ac_objext conftest$ac_exeext
24933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24934 (eval $ac_link) 2>conftest.er1
a848cd7e 24935 ac_status=$?
ac1cb8d3
VS
24936 grep -v '^ *+' conftest.er1 >conftest.err
24937 rm -f conftest.er1
24938 cat conftest.err >&5
a848cd7e
SC
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); } &&
ea7db9ff
DE
24941 { ac_try='test -z "$ac_c_werror_flag"
24942 || test ! -s conftest.err'
ac1cb8d3
VS
24943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); }; } &&
24948 { ac_try='test -s conftest$ac_exeext'
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
24953 (exit $ac_status); }; }; then
24954 ac_cv_lib_posix_remove=yes
24955else
24956 echo "$as_me: failed program was:" >&5
24957sed 's/^/| /' conftest.$ac_ext >&5
24958
24959ac_cv_lib_posix_remove=no
24960fi
ac1cb8d3
VS
24961rm -f conftest.err conftest.$ac_objext \
24962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24963LIBS=$ac_check_lib_save_LIBS
24964fi
24965echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24966echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24967if test $ac_cv_lib_posix_remove = yes; then
24968 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24969fi
24970
24971 fi
24972
24973 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24974 echo "$as_me:$LINENO: checking for shmat" >&5
24975echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24976if test "${ac_cv_func_shmat+set}" = set; then
24977 echo $ECHO_N "(cached) $ECHO_C" >&6
24978else
24979 cat >conftest.$ac_ext <<_ACEOF
24980/* confdefs.h. */
24981_ACEOF
24982cat confdefs.h >>conftest.$ac_ext
24983cat >>conftest.$ac_ext <<_ACEOF
24984/* end confdefs.h. */
ac1cb8d3
VS
24985/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24987#define shmat innocuous_shmat
24988
a848cd7e
SC
24989/* System header to define __stub macros and hopefully few prototypes,
24990 which can conflict with char shmat (); below.
24991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24992 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24993
a848cd7e
SC
24994#ifdef __STDC__
24995# include <limits.h>
24996#else
24997# include <assert.h>
24998#endif
ac1cb8d3
VS
24999
25000#undef shmat
25001
a848cd7e
SC
25002/* Override any gcc2 internal prototype to avoid an error. */
25003#ifdef __cplusplus
25004extern "C"
25005{
25006#endif
25007/* We use char because int might match the return type of a gcc2
25008 builtin and then its argument prototype would still apply. */
25009char shmat ();
25010/* The GNU C library defines this for functions which it implements
25011 to always fail with ENOSYS. Some functions are actually named
25012 something starting with __ and the normal name is an alias. */
25013#if defined (__stub_shmat) || defined (__stub___shmat)
25014choke me
25015#else
25016char (*f) () = shmat;
25017#endif
25018#ifdef __cplusplus
25019}
25020#endif
25021
25022int
25023main ()
25024{
25025return f != shmat;
25026 ;
25027 return 0;
25028}
25029_ACEOF
25030rm -f conftest.$ac_objext conftest$ac_exeext
25031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25032 (eval $ac_link) 2>conftest.er1
a848cd7e 25033 ac_status=$?
ac1cb8d3
VS
25034 grep -v '^ *+' conftest.er1 >conftest.err
25035 rm -f conftest.er1
25036 cat conftest.err >&5
a848cd7e
SC
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } &&
ea7db9ff
DE
25039 { ac_try='test -z "$ac_c_werror_flag"
25040 || test ! -s conftest.err'
ac1cb8d3
VS
25041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25042 (eval $ac_try) 2>&5
25043 ac_status=$?
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); }; } &&
25046 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25048 (eval $ac_try) 2>&5
25049 ac_status=$?
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); }; }; then
25052 ac_cv_func_shmat=yes
25053else
25054 echo "$as_me: failed program was:" >&5
25055sed 's/^/| /' conftest.$ac_ext >&5
25056
25057ac_cv_func_shmat=no
25058fi
ac1cb8d3
VS
25059rm -f conftest.err conftest.$ac_objext \
25060 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25061fi
25062echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25063echo "${ECHO_T}$ac_cv_func_shmat" >&6
25064
25065 if test $ac_cv_func_shmat = no; then
25066 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25067echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25068if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25069 echo $ECHO_N "(cached) $ECHO_C" >&6
25070else
25071 ac_check_lib_save_LIBS=$LIBS
25072LIBS="-lipc $LIBS"
25073cat >conftest.$ac_ext <<_ACEOF
25074/* confdefs.h. */
25075_ACEOF
25076cat confdefs.h >>conftest.$ac_ext
25077cat >>conftest.$ac_ext <<_ACEOF
25078/* end confdefs.h. */
25079
25080/* Override any gcc2 internal prototype to avoid an error. */
25081#ifdef __cplusplus
25082extern "C"
25083#endif
25084/* We use char because int might match the return type of a gcc2
25085 builtin and then its argument prototype would still apply. */
25086char shmat ();
25087int
25088main ()
25089{
25090shmat ();
25091 ;
25092 return 0;
25093}
25094_ACEOF
25095rm -f conftest.$ac_objext conftest$ac_exeext
25096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25097 (eval $ac_link) 2>conftest.er1
a848cd7e 25098 ac_status=$?
ac1cb8d3
VS
25099 grep -v '^ *+' conftest.er1 >conftest.err
25100 rm -f conftest.er1
25101 cat conftest.err >&5
a848cd7e
SC
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } &&
ea7db9ff
DE
25104 { ac_try='test -z "$ac_c_werror_flag"
25105 || test ! -s conftest.err'
ac1cb8d3
VS
25106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107 (eval $ac_try) 2>&5
25108 ac_status=$?
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); }; } &&
25111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25114 ac_status=$?
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; }; then
25117 ac_cv_lib_ipc_shmat=yes
25118else
25119 echo "$as_me: failed program was:" >&5
25120sed 's/^/| /' conftest.$ac_ext >&5
25121
25122ac_cv_lib_ipc_shmat=no
25123fi
ac1cb8d3
VS
25124rm -f conftest.err conftest.$ac_objext \
25125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25126LIBS=$ac_check_lib_save_LIBS
25127fi
25128echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25129echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25130if test $ac_cv_lib_ipc_shmat = yes; then
25131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25132fi
25133
25134 fi
25135 fi
25136
25137 # Check for libraries that X11R6 Xt/Xaw programs need.
25138 ac_save_LDFLAGS=$LDFLAGS
25139 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25140 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25141 # check for ICE first), but we must link in the order -lSM -lICE or
25142 # we get undefined symbols. So assume we have SM if we have ICE.
25143 # These have to be linked with before -lX11, unlike the other
25144 # libraries we check for below, so use a different variable.
25145 # John Interrante, Karl Berry
25146 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25147echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25148if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25149 echo $ECHO_N "(cached) $ECHO_C" >&6
25150else
25151 ac_check_lib_save_LIBS=$LIBS
25152LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25153cat >conftest.$ac_ext <<_ACEOF
25154/* confdefs.h. */
25155_ACEOF
25156cat confdefs.h >>conftest.$ac_ext
25157cat >>conftest.$ac_ext <<_ACEOF
25158/* end confdefs.h. */
25159
25160/* Override any gcc2 internal prototype to avoid an error. */
25161#ifdef __cplusplus
25162extern "C"
25163#endif
25164/* We use char because int might match the return type of a gcc2
25165 builtin and then its argument prototype would still apply. */
25166char IceConnectionNumber ();
25167int
25168main ()
25169{
25170IceConnectionNumber ();
25171 ;
25172 return 0;
25173}
25174_ACEOF
25175rm -f conftest.$ac_objext conftest$ac_exeext
25176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25177 (eval $ac_link) 2>conftest.er1
a848cd7e 25178 ac_status=$?
ac1cb8d3
VS
25179 grep -v '^ *+' conftest.er1 >conftest.err
25180 rm -f conftest.er1
25181 cat conftest.err >&5
a848cd7e
SC
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } &&
ea7db9ff
DE
25184 { ac_try='test -z "$ac_c_werror_flag"
25185 || test ! -s conftest.err'
ac1cb8d3
VS
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
25197 ac_cv_lib_ICE_IceConnectionNumber=yes
25198else
25199 echo "$as_me: failed program was:" >&5
25200sed 's/^/| /' conftest.$ac_ext >&5
25201
25202ac_cv_lib_ICE_IceConnectionNumber=no
25203fi
ac1cb8d3
VS
25204rm -f conftest.err conftest.$ac_objext \
25205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25206LIBS=$ac_check_lib_save_LIBS
25207fi
25208echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25209echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25210if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25211 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25212fi
25213
25214 LDFLAGS=$ac_save_LDFLAGS
25215
25216fi
25217
25218
25219 if test "$no_x" = "yes"; then
25220 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25221echo "$as_me: error: X11 not found" >&2;}
25222 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25223 fi
25224
74b84332
VS
25225 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25226 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25227 AFMINSTALL=afminstall
25228 COMPILED_X_PROGRAM=0
25229
74b84332
VS
25230 fi
25231
25232 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25233 if test "$wxUSE_NANOX" = "yes"; then
25234 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25235echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25236 if test "x$MICROWIN" = x ; then
25237 echo "$as_me:$LINENO: result: not found" >&5
25238echo "${ECHO_T}not found" >&6
25239 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25240echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25241 { (exit 1); exit 1; }; }
25242 else
25243 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25244echo "${ECHO_T}$MICROWIN" >&6
25245 cat >>confdefs.h <<\_ACEOF
25246#define wxUSE_NANOX 1
25247_ACEOF
25248
25249 fi
25250 fi
25251
25252 if test "$wxUSE_UNICODE" = "yes"; then
25253
25254 succeeded=no
25255
25256 if test -z "$PKG_CONFIG"; then
25257 # Extract the first word of "pkg-config", so it can be a program name with args.
25258set dummy pkg-config; ac_word=$2
25259echo "$as_me:$LINENO: checking for $ac_word" >&5
25260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25261if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25262 echo $ECHO_N "(cached) $ECHO_C" >&6
25263else
25264 case $PKG_CONFIG in
25265 [\\/]* | ?:[\\/]*)
25266 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25267 ;;
25268 *)
25269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25270for as_dir in $PATH
25271do
25272 IFS=$as_save_IFS
25273 test -z "$as_dir" && as_dir=.
25274 for ac_exec_ext in '' $ac_executable_extensions; do
25275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25276 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25278 break 2
25279 fi
25280done
25281done
25282
25283 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25284 ;;
25285esac
25286fi
25287PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25288
25289if test -n "$PKG_CONFIG"; then
25290 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25291echo "${ECHO_T}$PKG_CONFIG" >&6
25292else
25293 echo "$as_me:$LINENO: result: no" >&5
25294echo "${ECHO_T}no" >&6
25295fi
25296
25297 fi
25298
25299 if test "$PKG_CONFIG" = "no" ; then
25300 echo "*** The pkg-config script could not be found. Make sure it is"
25301 echo "*** in your path, or set the PKG_CONFIG environment variable"
25302 echo "*** to the full path to pkg-config."
25303 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25304 else
25305 PKG_CONFIG_MIN_VERSION=0.9.0
25306 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25307 echo "$as_me:$LINENO: checking for pangox" >&5
25308echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25309
25310 if $PKG_CONFIG --exists "pangox" ; then
25311 echo "$as_me:$LINENO: result: yes" >&5
25312echo "${ECHO_T}yes" >&6
25313 succeeded=yes
25314
25315 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25316echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25317 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25318 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25319echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25320
25321 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25322echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25323 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25324 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25325echo "${ECHO_T}$PANGOX_LIBS" >&6
25326 else
25327 PANGOX_CFLAGS=""
25328 PANGOX_LIBS=""
25329 ## If we have a custom action on failure, don't print errors, but
25330 ## do set a variable so people can do so.
25331 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25332
25333 fi
25334
25335
25336
25337 else
25338 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25339 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25340 fi
25341 fi
25342
25343 if test $succeeded = yes; then
25344
25345 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25346 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25347
25348 else
25349
25350 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25351echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25352 { (exit 1); exit 1; }; }
25353
25354
25355 fi
25356
25357
25358 succeeded=no
25359
25360 if test -z "$PKG_CONFIG"; then
25361 # Extract the first word of "pkg-config", so it can be a program name with args.
25362set dummy pkg-config; ac_word=$2
25363echo "$as_me:$LINENO: checking for $ac_word" >&5
25364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25365if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25366 echo $ECHO_N "(cached) $ECHO_C" >&6
25367else
25368 case $PKG_CONFIG in
25369 [\\/]* | ?:[\\/]*)
25370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25371 ;;
25372 *)
25373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25374for as_dir in $PATH
25375do
25376 IFS=$as_save_IFS
25377 test -z "$as_dir" && as_dir=.
25378 for ac_exec_ext in '' $ac_executable_extensions; do
25379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25382 break 2
25383 fi
25384done
25385done
25386
25387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25388 ;;
25389esac
25390fi
25391PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25392
25393if test -n "$PKG_CONFIG"; then
25394 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25395echo "${ECHO_T}$PKG_CONFIG" >&6
25396else
25397 echo "$as_me:$LINENO: result: no" >&5
25398echo "${ECHO_T}no" >&6
25399fi
25400
25401 fi
25402
25403 if test "$PKG_CONFIG" = "no" ; then
25404 echo "*** The pkg-config script could not be found. Make sure it is"
25405 echo "*** in your path, or set the PKG_CONFIG environment variable"
25406 echo "*** to the full path to pkg-config."
25407 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25408 else
25409 PKG_CONFIG_MIN_VERSION=0.9.0
25410 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25411 echo "$as_me:$LINENO: checking for pangoft2" >&5
25412echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25413
25414 if $PKG_CONFIG --exists "pangoft2" ; then
25415 echo "$as_me:$LINENO: result: yes" >&5
25416echo "${ECHO_T}yes" >&6
25417 succeeded=yes
25418
25419 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25420echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25421 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25422 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25423echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25424
25425 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25426echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25427 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25428 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25429echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25430 else
25431 PANGOFT2_CFLAGS=""
25432 PANGOFT2_LIBS=""
25433 ## If we have a custom action on failure, don't print errors, but
25434 ## do set a variable so people can do so.
25435 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25436
25437 fi
25438
25439
25440
25441 else
25442 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25443 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25444 fi
25445 fi
25446
25447 if test $succeeded = yes; then
25448
25449 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25450 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25451
25452 else
25453
25454 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25455echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25456 wxUSE_PRINTING_ARCHITECTURE="no"
25457
25458
25459 fi
25460
25461
25462 succeeded=no
25463
25464 if test -z "$PKG_CONFIG"; then
25465 # Extract the first word of "pkg-config", so it can be a program name with args.
25466set dummy pkg-config; ac_word=$2
25467echo "$as_me:$LINENO: checking for $ac_word" >&5
25468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25469if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25470 echo $ECHO_N "(cached) $ECHO_C" >&6
25471else
25472 case $PKG_CONFIG in
25473 [\\/]* | ?:[\\/]*)
25474 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25475 ;;
25476 *)
25477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25478for as_dir in $PATH
25479do
25480 IFS=$as_save_IFS
25481 test -z "$as_dir" && as_dir=.
25482 for ac_exec_ext in '' $ac_executable_extensions; do
25483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25484 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25486 break 2
25487 fi
25488done
25489done
25490
25491 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25492 ;;
25493esac
25494fi
25495PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25496
25497if test -n "$PKG_CONFIG"; then
25498 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25499echo "${ECHO_T}$PKG_CONFIG" >&6
25500else
25501 echo "$as_me:$LINENO: result: no" >&5
25502echo "${ECHO_T}no" >&6
25503fi
25504
25505 fi
25506
25507 if test "$PKG_CONFIG" = "no" ; then
25508 echo "*** The pkg-config script could not be found. Make sure it is"
25509 echo "*** in your path, or set the PKG_CONFIG environment variable"
25510 echo "*** to the full path to pkg-config."
25511 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25512 else
25513 PKG_CONFIG_MIN_VERSION=0.9.0
25514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25515 echo "$as_me:$LINENO: checking for pangoxft" >&5
25516echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25517
25518 if $PKG_CONFIG --exists "pangoxft" ; then
25519 echo "$as_me:$LINENO: result: yes" >&5
25520echo "${ECHO_T}yes" >&6
25521 succeeded=yes
25522
25523 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25524echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25525 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25526 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25527echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25528
25529 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25530echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25531 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25532 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25533echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25534 else
25535 PANGOXFT_CFLAGS=""
25536 PANGOXFT_LIBS=""
25537 ## If we have a custom action on failure, don't print errors, but
25538 ## do set a variable so people can do so.
25539 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25540
25541 fi
25542
25543
25544
25545 else
25546 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25547 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25548 fi
25549 fi
25550
25551 if test $succeeded = yes; then
25552
25553 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25554 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25555
25556 else
25557
25558 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25559echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25560
25561
25562 fi
25563
304205f1
VS
25564 save_CFLAGS="$CFLAGS"
25565 save_LIBS="$LIBS"
25566 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25567 LIBS="$LIBS $PANGOX_LIBS"
25568
25569for ac_func in pango_font_family_is_monospace
25570do
25571as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25572echo "$as_me:$LINENO: checking for $ac_func" >&5
25573echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25574if eval "test \"\${$as_ac_var+set}\" = set"; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25576else
25577 cat >conftest.$ac_ext <<_ACEOF
25578/* confdefs.h. */
25579_ACEOF
25580cat confdefs.h >>conftest.$ac_ext
25581cat >>conftest.$ac_ext <<_ACEOF
25582/* end confdefs.h. */
25583/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25585#define $ac_func innocuous_$ac_func
25586
25587/* System header to define __stub macros and hopefully few prototypes,
25588 which can conflict with char $ac_func (); below.
25589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25590 <limits.h> exists even on freestanding compilers. */
25591
25592#ifdef __STDC__
25593# include <limits.h>
25594#else
25595# include <assert.h>
25596#endif
25597
25598#undef $ac_func
25599
25600/* Override any gcc2 internal prototype to avoid an error. */
25601#ifdef __cplusplus
25602extern "C"
25603{
25604#endif
25605/* We use char because int might match the return type of a gcc2
25606 builtin and then its argument prototype would still apply. */
25607char $ac_func ();
25608/* The GNU C library defines this for functions which it implements
25609 to always fail with ENOSYS. Some functions are actually named
25610 something starting with __ and the normal name is an alias. */
25611#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25612choke me
25613#else
25614char (*f) () = $ac_func;
25615#endif
25616#ifdef __cplusplus
25617}
25618#endif
25619
25620int
25621main ()
25622{
25623return f != $ac_func;
25624 ;
25625 return 0;
25626}
25627_ACEOF
25628rm -f conftest.$ac_objext conftest$ac_exeext
25629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25630 (eval $ac_link) 2>conftest.er1
25631 ac_status=$?
25632 grep -v '^ *+' conftest.er1 >conftest.err
25633 rm -f conftest.er1
25634 cat conftest.err >&5
25635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); } &&
ea7db9ff
DE
25637 { ac_try='test -z "$ac_c_werror_flag"
25638 || test ! -s conftest.err'
304205f1
VS
25639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640 (eval $ac_try) 2>&5
25641 ac_status=$?
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); }; } &&
25644 { ac_try='test -s conftest$ac_exeext'
25645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25646 (eval $ac_try) 2>&5
25647 ac_status=$?
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); }; }; then
25650 eval "$as_ac_var=yes"
25651else
25652 echo "$as_me: failed program was:" >&5
25653sed 's/^/| /' conftest.$ac_ext >&5
25654
25655eval "$as_ac_var=no"
25656fi
25657rm -f conftest.err conftest.$ac_objext \
25658 conftest$ac_exeext conftest.$ac_ext
25659fi
25660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25661echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25662if test `eval echo '${'$as_ac_var'}'` = yes; then
25663 cat >>confdefs.h <<_ACEOF
25664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25665_ACEOF
25666
25667fi
25668done
25669
25670 CFLAGS="$save_CFLAGS"
25671 LIBS="$save_LIBS"
a848cd7e
SC
25672 fi
25673
25674 wxUSE_UNIVERSAL="yes"
25675
25676 if test "$wxUSE_NANOX" = "yes"; then
25677 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25678 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"
25679 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25680 else
25681 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25682 fi
25683
25684 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25685 TOOLKIT=X11
25686 GUIDIST=X11_DIST
25687 fi
25688
25689 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25690 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25691echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25692
74b84332
VS
25693ac_find_includes=
25694for ac_dir in $SEARCH_INCLUDE /usr/include;
25695 do
25696 if test -f "$ac_dir/Xm/Xm.h"; then
25697 ac_find_includes=$ac_dir
25698 break
25699 fi
25700 done
a848cd7e 25701
74b84332
VS
25702 if test "$ac_find_includes" != "" ; then
25703 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25704echo "${ECHO_T}found in $ac_find_includes" >&6
25705
25706 if test "x$ac_find_includes" = "x/usr/include"; then
25707 ac_path_to_include=""
25708 else
25709 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25710 result=$?
25711 if test $result = 0; then
25712 ac_path_to_include=""
25713 else
25714 ac_path_to_include=" -I$ac_find_includes"
25715 fi
a848cd7e
SC
25716 fi
25717
74b84332
VS
25718 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25719 else
25720 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25721/* confdefs.h. */
25722_ACEOF
25723cat confdefs.h >>conftest.$ac_ext
25724cat >>conftest.$ac_ext <<_ACEOF
25725/* end confdefs.h. */
25726
74b84332
VS
25727 #include <Xm/Xm.h>
25728
a848cd7e
SC
25729int
25730main ()
25731{
25732
74b84332
VS
25733 int version;
25734 version = xmUseVersion;
25735
a848cd7e
SC
25736 ;
25737 return 0;
25738}
25739_ACEOF
74b84332
VS
25740rm -f conftest.$ac_objext
25741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25742 (eval $ac_compile) 2>conftest.er1
a848cd7e 25743 ac_status=$?
ac1cb8d3
VS
25744 grep -v '^ *+' conftest.er1 >conftest.err
25745 rm -f conftest.er1
25746 cat conftest.err >&5
a848cd7e
SC
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); } &&
ea7db9ff
DE
25749 { ac_try='test -z "$ac_c_werror_flag"
25750 || test ! -s conftest.err'
ac1cb8d3
VS
25751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25752 (eval $ac_try) 2>&5
25753 ac_status=$?
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); }; } &&
74b84332 25756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; }; then
74b84332
VS
25762
25763 echo "$as_me:$LINENO: result: found in default search path" >&5
25764echo "${ECHO_T}found in default search path" >&6
25765 COMPILED_X_PROGRAM=1
25766
a848cd7e
SC
25767else
25768 echo "$as_me: failed program was:" >&5
25769sed 's/^/| /' conftest.$ac_ext >&5
25770
a848cd7e 25771
74b84332
VS
25772 echo "$as_me:$LINENO: result: no" >&5
25773echo "${ECHO_T}no" >&6
25774 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25775echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25776 { (exit 1); exit 1; }; }
a848cd7e 25777
a848cd7e 25778
a848cd7e 25779fi
74b84332
VS
25780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25781 fi
25782
25783 if test "$COMPILED_X_PROGRAM" = 0; then
25784 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25785echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25786
25787ac_find_libraries=
25788for ac_dir in $SEARCH_LIB /usr/lib;
25789 do
25790 for ac_extension in a so sl dylib; do
25791 if test -f "$ac_dir/libXm.$ac_extension"; then
25792 ac_find_libraries=$ac_dir
25793 break 2
a848cd7e 25794 fi
74b84332
VS
25795 done
25796 done
a848cd7e 25797
74b84332
VS
25798 if test "$ac_find_libraries" != "" ; then
25799 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25800echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25801
74b84332
VS
25802
25803 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25804 result=$?
25805 if test $result = 0; then
25806 ac_path_to_link=""
a848cd7e 25807 else
74b84332
VS
25808 ac_path_to_link=" -L$ac_find_libraries"
25809 fi
25810
25811 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25812 else
25813 save_CFLAGS=$CFLAGS
25814 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25815
25816 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25817/* confdefs.h. */
25818_ACEOF
25819cat confdefs.h >>conftest.$ac_ext
25820cat >>conftest.$ac_ext <<_ACEOF
25821/* end confdefs.h. */
25822
74b84332
VS
25823 #include <Xm/Xm.h>
25824
a848cd7e
SC
25825int
25826main ()
25827{
74b84332
VS
25828
25829 int version;
25830 version = xmUseVersion;
25831
a848cd7e
SC
25832 ;
25833 return 0;
25834}
25835_ACEOF
74b84332
VS
25836rm -f conftest.$ac_objext
25837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25838 (eval $ac_compile) 2>conftest.er1
a848cd7e 25839 ac_status=$?
ac1cb8d3
VS
25840 grep -v '^ *+' conftest.er1 >conftest.err
25841 rm -f conftest.er1
25842 cat conftest.err >&5
a848cd7e
SC
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); } &&
ea7db9ff
DE
25845 { ac_try='test -z "$ac_c_werror_flag"
25846 || test ! -s conftest.err'
ac1cb8d3
VS
25847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848 (eval $ac_try) 2>&5
25849 ac_status=$?
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; } &&
74b84332 25852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; }; then
74b84332
VS
25858
25859 echo "$as_me:$LINENO: result: found in default search path" >&5
25860echo "${ECHO_T}found in default search path" >&6
25861 COMPILED_X_PROGRAM=1
25862
a848cd7e
SC
25863else
25864 echo "$as_me: failed program was:" >&5
25865sed 's/^/| /' conftest.$ac_ext >&5
25866
74b84332
VS
25867
25868 echo "$as_me:$LINENO: result: no" >&5
25869echo "${ECHO_T}no" >&6
25870 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25871echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25872 { (exit 1); exit 1; }; }
25873
25874
25875fi
25876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25877
25878 CFLAGS=$save_CFLAGS
25879 fi
25880 fi
25881
25882 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25883echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25884 libp_link=""
25885 libsm_ice_link=""
25886 libs_found=0
25887 for libp in "" " -lXp"; do
25888 if test "$libs_found" = "0"; then
25889 for libsm_ice in "" " -lSM -lICE"; do
25890 if test "$libs_found" = "0"; then
25891 save_LIBS="$LIBS"
25892 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25893 save_CFLAGS=$CFLAGS
25894 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25895
25896 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25897/* confdefs.h. */
25898_ACEOF
25899cat confdefs.h >>conftest.$ac_ext
25900cat >>conftest.$ac_ext <<_ACEOF
25901/* end confdefs.h. */
25902
74b84332
VS
25903 #include <Xm/Xm.h>
25904 #include <Xm/List.h>
25905
a848cd7e
SC
25906int
25907main ()
25908{
74b84332
VS
25909
25910 XmString string = NULL;
25911 Widget w = NULL;
25912 int position = 0;
25913 XmListAddItem(w, string, position);
25914
a848cd7e
SC
25915 ;
25916 return 0;
25917}
25918_ACEOF
25919rm -f conftest.$ac_objext conftest$ac_exeext
25920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25921 (eval $ac_link) 2>conftest.er1
a848cd7e 25922 ac_status=$?
ac1cb8d3
VS
25923 grep -v '^ *+' conftest.er1 >conftest.err
25924 rm -f conftest.er1
25925 cat conftest.err >&5
a848cd7e
SC
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); } &&
ea7db9ff
DE
25928 { ac_try='test -z "$ac_c_werror_flag"
25929 || test ! -s conftest.err'
ac1cb8d3
VS
25930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); }; } &&
25935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; }; then
25941
25942 libp_link="$libp"
25943 libsm_ice_link="$libsm_ice"
25944 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25945echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25946 libs_found=1
25947
25948else
25949 echo "$as_me: failed program was:" >&5
25950sed 's/^/| /' conftest.$ac_ext >&5
25951
25952
25953
25954fi
ac1cb8d3
VS
25955rm -f conftest.err conftest.$ac_objext \
25956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25957
25958 LIBS="$save_LIBS"
25959 CFLAGS=$save_CFLAGS
25960 fi
25961 done
25962 fi
25963 done
25964
25965 if test "$libs_found" = "0"; then
25966 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25967echo "${ECHO_T}can't find the right libraries" >&6
25968 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25969echo "$as_me: error: can't link a simple motif program" >&2;}
25970 { (exit 1); exit 1; }; }
25971 fi
25972
25973 save_CFLAGS=$CFLAGS
25974 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25975 echo "$as_me:$LINENO: checking for Motif 2" >&5
25976echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25977 cat >conftest.$ac_ext <<_ACEOF
25978/* confdefs.h. */
25979_ACEOF
25980cat confdefs.h >>conftest.$ac_ext
25981cat >>conftest.$ac_ext <<_ACEOF
25982/* end confdefs.h. */
25983
25984 #include <Xm/Xm.h>
25985
25986int
25987main ()
25988{
25989
25990 #if XmVersion < 2000
25991 #error "Not Motif 2"
25992 #endif
25993
25994 ;
25995 return 0;
25996}
25997_ACEOF
25998rm -f conftest.$ac_objext
25999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26000 (eval $ac_compile) 2>conftest.er1
a848cd7e 26001 ac_status=$?
ac1cb8d3
VS
26002 grep -v '^ *+' conftest.er1 >conftest.err
26003 rm -f conftest.er1
26004 cat conftest.err >&5
a848cd7e
SC
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); } &&
ea7db9ff
DE
26007 { ac_try='test -z "$ac_c_werror_flag"
26008 || test ! -s conftest.err'
ac1cb8d3
VS
26009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010 (eval $ac_try) 2>&5
26011 ac_status=$?
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); }; } &&
26014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26016 (eval $ac_try) 2>&5
26017 ac_status=$?
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); }; }; then
26020
26021 cat >>confdefs.h <<\_ACEOF
26022#define __WXMOTIF20__ 1
26023_ACEOF
26024
26025 echo "$as_me:$LINENO: result: found" >&5
26026echo "${ECHO_T}found" >&6
26027
26028else
26029 echo "$as_me: failed program was:" >&5
26030sed 's/^/| /' conftest.$ac_ext >&5
26031
26032
26033 cat >>confdefs.h <<\_ACEOF
26034#define __WXMOTIF20__ 0
26035_ACEOF
26036
26037 echo "$as_me:$LINENO: result: not found" >&5
26038echo "${ECHO_T}not found" >&6
26039
26040fi
ac1cb8d3 26041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26042 CFLAGS=$save_CFLAGS
26043
26044 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26045 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26046 TOOLKIT=MOTIF
26047 GUIDIST=MOTIF_DIST
26048 fi
26049
74b84332 26050 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26051 if test "$wxUSE_LIBXPM" = "sys"; then
26052 echo "$as_me:$LINENO: checking for Xpm library" >&5
26053echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26054
26055ac_find_libraries=
26056for ac_dir in $SEARCH_LIB /usr/lib;
26057 do
26058 for ac_extension in a so sl dylib; do
26059 if test -f "$ac_dir/libXpm.$ac_extension"; then
26060 ac_find_libraries=$ac_dir
26061 break 2
26062 fi
26063 done
26064 done
26065
26066 if test "$ac_find_libraries" != "" ; then
26067
26068 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26069 result=$?
26070 if test $result = 0; then
26071 ac_path_to_link=""
26072 else
26073 ac_path_to_link=" -L$ac_find_libraries"
26074 fi
26075
26076 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26077 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26078echo "${ECHO_T}found at $ac_find_libraries" >&6
26079
26080 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26081echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26082if test "${wx_cv_x11_xpm_h+set}" = set; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26084else
26085
26086 save_CFLAGS=$CFLAGS
26087 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26088
26089 cat >conftest.$ac_ext <<_ACEOF
26090/* confdefs.h. */
26091_ACEOF
26092cat confdefs.h >>conftest.$ac_ext
26093cat >>conftest.$ac_ext <<_ACEOF
26094/* end confdefs.h. */
26095
26096 #include <X11/xpm.h>
26097
26098int
26099main ()
26100{
26101
26102 int version;
26103 version = XpmLibraryVersion();
26104
26105 ;
26106 return 0;
26107}
26108_ACEOF
26109rm -f conftest.$ac_objext
26110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26111 (eval $ac_compile) 2>conftest.er1
a848cd7e 26112 ac_status=$?
ac1cb8d3
VS
26113 grep -v '^ *+' conftest.er1 >conftest.err
26114 rm -f conftest.er1
26115 cat conftest.err >&5
a848cd7e
SC
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); } &&
ea7db9ff
DE
26118 { ac_try='test -z "$ac_c_werror_flag"
26119 || test ! -s conftest.err'
ac1cb8d3
VS
26120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26121 (eval $ac_try) 2>&5
26122 ac_status=$?
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); }; } &&
26125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; }; then
26131 wx_cv_x11_xpm_h=yes
26132else
26133 echo "$as_me: failed program was:" >&5
26134sed 's/^/| /' conftest.$ac_ext >&5
26135
26136wx_cv_x11_xpm_h=no
26137
26138fi
ac1cb8d3 26139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26140
26141 CFLAGS=$save_CFLAGS
26142
26143
26144fi
26145echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26146echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26147
26148 if test $wx_cv_x11_xpm_h = "yes"; then
26149 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26150 cat >>confdefs.h <<\_ACEOF
26151#define wxHAVE_LIB_XPM 1
26152_ACEOF
26153
26154 else
26155 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26156echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26157 fi
26158 fi
26159
26160 fi
26161
26162 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26163echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26164if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26165 echo $ECHO_N "(cached) $ECHO_C" >&6
26166else
26167 ac_check_lib_save_LIBS=$LIBS
26168LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26169cat >conftest.$ac_ext <<_ACEOF
26170/* confdefs.h. */
26171_ACEOF
26172cat confdefs.h >>conftest.$ac_ext
26173cat >>conftest.$ac_ext <<_ACEOF
26174/* end confdefs.h. */
26175
26176/* Override any gcc2 internal prototype to avoid an error. */
26177#ifdef __cplusplus
26178extern "C"
26179#endif
26180/* We use char because int might match the return type of a gcc2
26181 builtin and then its argument prototype would still apply. */
26182char XShapeQueryExtension ();
26183int
26184main ()
26185{
26186XShapeQueryExtension ();
26187 ;
26188 return 0;
26189}
26190_ACEOF
26191rm -f conftest.$ac_objext conftest$ac_exeext
26192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26193 (eval $ac_link) 2>conftest.er1
a848cd7e 26194 ac_status=$?
ac1cb8d3
VS
26195 grep -v '^ *+' conftest.er1 >conftest.err
26196 rm -f conftest.er1
26197 cat conftest.err >&5
a848cd7e
SC
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); } &&
ea7db9ff
DE
26200 { ac_try='test -z "$ac_c_werror_flag"
26201 || test ! -s conftest.err'
ac1cb8d3
VS
26202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26203 (eval $ac_try) 2>&5
26204 ac_status=$?
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); }; } &&
26207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); }; }; then
26213 ac_cv_lib_Xext_XShapeQueryExtension=yes
26214else
26215 echo "$as_me: failed program was:" >&5
26216sed 's/^/| /' conftest.$ac_ext >&5
26217
26218ac_cv_lib_Xext_XShapeQueryExtension=no
26219fi
ac1cb8d3
VS
26220rm -f conftest.err conftest.$ac_objext \
26221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26222LIBS=$ac_check_lib_save_LIBS
26223fi
26224echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26225echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26226if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26227
26228 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26229 wxHAVE_XEXT_LIB=1
26230
26231fi
26232
26233
26234 if test "$wxHAVE_XEXT_LIB" = 1; then
26235 save_CFLAGS="$CFLAGS"
26236 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26237
26238 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26239echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26240 cat >conftest.$ac_ext <<_ACEOF
26241/* confdefs.h. */
26242_ACEOF
26243cat confdefs.h >>conftest.$ac_ext
26244cat >>conftest.$ac_ext <<_ACEOF
26245/* end confdefs.h. */
26246
26247 #include <X11/Xlib.h>
26248 #include <X11/extensions/shape.h>
26249
26250int
26251main ()
26252{
26253
26254 int dummy1, dummy2;
26255 XShapeQueryExtension((Display*)NULL,
26256 (int*)NULL, (int*)NULL);
26257
26258 ;
26259 return 0;
26260}
26261_ACEOF
26262rm -f conftest.$ac_objext
26263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26264 (eval $ac_compile) 2>conftest.er1
a848cd7e 26265 ac_status=$?
ac1cb8d3
VS
26266 grep -v '^ *+' conftest.er1 >conftest.err
26267 rm -f conftest.er1
26268 cat conftest.err >&5
a848cd7e
SC
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); } &&
ea7db9ff
DE
26271 { ac_try='test -z "$ac_c_werror_flag"
26272 || test ! -s conftest.err'
ac1cb8d3
VS
26273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26274 (eval $ac_try) 2>&5
26275 ac_status=$?
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); }; } &&
26278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26280 (eval $ac_try) 2>&5
26281 ac_status=$?
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); }; }; then
26284
26285 cat >>confdefs.h <<\_ACEOF
26286#define HAVE_XSHAPE 1
26287_ACEOF
26288
26289 echo "$as_me:$LINENO: result: found" >&5
26290echo "${ECHO_T}found" >&6
26291
26292else
26293 echo "$as_me: failed program was:" >&5
26294sed 's/^/| /' conftest.$ac_ext >&5
26295
26296
26297 echo "$as_me:$LINENO: result: not found" >&5
26298echo "${ECHO_T}not found" >&6
26299
26300fi
ac1cb8d3 26301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26302 CFLAGS="$save_CFLAGS"
26303
26304 fi
26305 fi
26306
26307 if test "$wxUSE_MAC" = 1; then
26308 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26309echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26310 if test "$GCC" = yes; then
26311 echo "$as_me:$LINENO: result: gcc" >&5
26312echo "${ECHO_T}gcc" >&6
26313 CPPFLAGS_PASCAL="-fpascal-strings"
26314 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26315 echo "$as_me:$LINENO: result: xlc" >&5
26316echo "${ECHO_T}xlc" >&6
26317 CPPFLAGS_PASCAL="-qmacpstr"
26318 else
26319 echo "$as_me:$LINENO: result: none" >&5
26320echo "${ECHO_T}none" >&6
26321 fi
26322
26323 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26324
26325 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26326 TOOLKIT=MAC
26327 GUIDIST=MACX_DIST
26328 WXBASEPORT="_carbon"
26329 fi
26330
26331 if test "$wxUSE_COCOA" = 1; then
26332 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26333 TOOLKIT=COCOA
26334 GUIDIST=COCOA_DIST
26335 fi
26336
26337 if test "$wxUSE_PM" = 1; then
26338 TOOLKIT=PM
de59c161
RD
26339 GUIDIST=PM_DIST
26340 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26341echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26342if test "${wx_cv_spbcdata+set}" = set; then
26343 echo $ECHO_N "(cached) $ECHO_C" >&6
26344else
26345
26346 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26347/* confdefs.h. */
26348_ACEOF
26349cat confdefs.h >>conftest.$ac_ext
26350cat >>conftest.$ac_ext <<_ACEOF
26351/* end confdefs.h. */
26352
26353 #define INCL_PM
26354 #include <os2.h>
26355
26356int
26357main ()
26358{
26359
26360 SPBCDATA test;
26361
26362 ;
26363 return 0;
26364}
26365_ACEOF
26366rm -f conftest.$ac_objext
26367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26368 (eval $ac_compile) 2>conftest.er1
de59c161 26369 ac_status=$?
ac1cb8d3
VS
26370 grep -v '^ *+' conftest.er1 >conftest.err
26371 rm -f conftest.er1
26372 cat conftest.err >&5
de59c161
RD
26373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); } &&
ea7db9ff
DE
26375 { ac_try='test -z "$ac_c_werror_flag"
26376 || test ! -s conftest.err'
ac1cb8d3
VS
26377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378 (eval $ac_try) 2>&5
26379 ac_status=$?
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); }; } &&
26382 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384 (eval $ac_try) 2>&5
26385 ac_status=$?
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); }; }; then
26388 wx_cv_spbcdata=yes
26389else
26390 echo "$as_me: failed program was:" >&5
26391sed 's/^/| /' conftest.$ac_ext >&5
26392
26393wx_cv_spbcdata=no
26394
26395fi
ac1cb8d3 26396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26397
26398
26399fi
26400echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26401echo "${ECHO_T}$wx_cv_spbcdata" >&6
26402
26403 if test $wx_cv_spbcdata = "yes"; then
26404 cat >>confdefs.h <<\_ACEOF
26405#define HAVE_SPBCDATA 1
26406_ACEOF
26407
26408 fi
a848cd7e
SC
26409 fi
26410
26411 if test "$TOOLKIT" = "PM" ; then
26412 TOOLKIT_DIR="os2"
26413 else
26414 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26415 fi
26416
26417 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26418
26419 if test "$wxUSE_UNIVERSAL" = "yes"; then
26420 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26421
26422 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26423 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26424
26425 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26426 if test "$wxUSE_X11" = 1; then
26427 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26428 else
26429 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26430 fi
26431 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26432 WIDGET_SET=univ
26433 else
26434 ALL_OBJECTS="\$(GUIOBJS)"
26435 ALL_SOURCES="\$(ALL_SOURCES)"
26436 ALL_HEADERS="\$(ALL_HEADERS)"
26437 fi
26438
26439 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26440
26441 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26442 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26443 fi
26444
26445 if test "$wxUSE_HTML" = "yes"; then
26446 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26447 fi
26448
26449 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26450 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26451 fi
26452 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26453 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26454 fi
26455 if test "$wxUSE_LIBPNG" = "builtin" ; then
26456 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26457 fi
26458
26459 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26460 DISTDIR="wx\$(TOOLKIT)"
26461else
26462 USE_GUI=0
26463
26464 TOOLKIT_DIR="base"
26465
26466 if test "$USE_WIN32" = 1 ; then
26467 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26468 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26469
26470 TOOLKIT="MSW"
26471 else
26472 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26473 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26474 fi
26475
26476 ALL_SOURCES="\$(ALL_SOURCES)"
26477 ALL_HEADERS="\$(ALL_HEADERS)"
26478
26479 PORT_FILES="\${top_srcdir}/src/files.lst"
26480
26481 GUIDIST="BASE_DIST"
26482 DISTDIR="wxBase"
26483fi
26484
26485
26486
26487
26488IODBC_C_SRC=""
26489
26490
26491if test "$TOOLKIT" != "MSW" ; then
26492
26493 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26494
26495 if test "${ac_cv_header_sql_h+set}" = set; then
26496 echo "$as_me:$LINENO: checking for sql.h" >&5
26497echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26498if test "${ac_cv_header_sql_h+set}" = set; then
26499 echo $ECHO_N "(cached) $ECHO_C" >&6
26500fi
26501echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26502echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26503else
26504 # Is the header compilable?
26505echo "$as_me:$LINENO: checking sql.h usability" >&5
26506echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26507cat >conftest.$ac_ext <<_ACEOF
26508/* confdefs.h. */
26509_ACEOF
26510cat confdefs.h >>conftest.$ac_ext
26511cat >>conftest.$ac_ext <<_ACEOF
26512/* end confdefs.h. */
26513$ac_includes_default
26514#include <sql.h>
26515_ACEOF
26516rm -f conftest.$ac_objext
26517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26518 (eval $ac_compile) 2>conftest.er1
a848cd7e 26519 ac_status=$?
ac1cb8d3
VS
26520 grep -v '^ *+' conftest.er1 >conftest.err
26521 rm -f conftest.er1
26522 cat conftest.err >&5
a848cd7e
SC
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); } &&
ea7db9ff
DE
26525 { ac_try='test -z "$ac_c_werror_flag"
26526 || test ! -s conftest.err'
ac1cb8d3
VS
26527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528 (eval $ac_try) 2>&5
26529 ac_status=$?
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); }; } &&
26532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26534 (eval $ac_try) 2>&5
26535 ac_status=$?
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); }; }; then
26538 ac_header_compiler=yes
26539else
26540 echo "$as_me: failed program was:" >&5
26541sed 's/^/| /' conftest.$ac_ext >&5
26542
26543ac_header_compiler=no
26544fi
ac1cb8d3 26545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26547echo "${ECHO_T}$ac_header_compiler" >&6
26548
26549# Is the header present?
26550echo "$as_me:$LINENO: checking sql.h presence" >&5
26551echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26552cat >conftest.$ac_ext <<_ACEOF
26553/* confdefs.h. */
26554_ACEOF
26555cat confdefs.h >>conftest.$ac_ext
26556cat >>conftest.$ac_ext <<_ACEOF
26557/* end confdefs.h. */
26558#include <sql.h>
26559_ACEOF
26560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26562 ac_status=$?
26563 grep -v '^ *+' conftest.er1 >conftest.err
26564 rm -f conftest.er1
26565 cat conftest.err >&5
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); } >/dev/null; then
26568 if test -s conftest.err; then
26569 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26571 else
26572 ac_cpp_err=
26573 fi
26574else
26575 ac_cpp_err=yes
26576fi
26577if test -z "$ac_cpp_err"; then
26578 ac_header_preproc=yes
26579else
26580 echo "$as_me: failed program was:" >&5
26581sed 's/^/| /' conftest.$ac_ext >&5
26582
26583 ac_header_preproc=no
26584fi
26585rm -f conftest.err conftest.$ac_ext
26586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26587echo "${ECHO_T}$ac_header_preproc" >&6
26588
26589# So? What about this header?
ac1cb8d3
VS
26590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26591 yes:no: )
a848cd7e
SC
26592 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26593echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26594 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26595echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26596 ac_header_preproc=yes
a848cd7e 26597 ;;
ac1cb8d3 26598 no:yes:* )
a848cd7e
SC
26599 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26600echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26601 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26602echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26603 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26604echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26605 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26606echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26607 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26608echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26609 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26610echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26611 (
26612 cat <<\_ASBOX
ac1cb8d3
VS
26613## ----------------------------------------- ##
26614## Report this to wx-dev@lists.wxwidgets.org ##
26615## ----------------------------------------- ##
a848cd7e
SC
26616_ASBOX
26617 ) |
26618 sed "s/^/$as_me: WARNING: /" >&2
26619 ;;
26620esac
26621echo "$as_me:$LINENO: checking for sql.h" >&5
26622echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26623if test "${ac_cv_header_sql_h+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26625else
26626 ac_cv_header_sql_h=$ac_header_preproc
26627fi
26628echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26629echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26630
26631fi
26632if test $ac_cv_header_sql_h = yes; then
26633 found_sql_h=1
26634fi
26635
26636
26637 if test "x$found_sql_h" = "x1" ; then
26638 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26639echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26640if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26641 echo $ECHO_N "(cached) $ECHO_C" >&6
26642else
26643 ac_check_lib_save_LIBS=$LIBS
26644LIBS="-liodbc $LIBS"
26645cat >conftest.$ac_ext <<_ACEOF
26646/* confdefs.h. */
26647_ACEOF
26648cat confdefs.h >>conftest.$ac_ext
26649cat >>conftest.$ac_ext <<_ACEOF
26650/* end confdefs.h. */
26651
26652/* Override any gcc2 internal prototype to avoid an error. */
26653#ifdef __cplusplus
26654extern "C"
26655#endif
26656/* We use char because int might match the return type of a gcc2
26657 builtin and then its argument prototype would still apply. */
26658char SQLAllocEnv ();
26659int
26660main ()
26661{
26662SQLAllocEnv ();
26663 ;
26664 return 0;
26665}
26666_ACEOF
26667rm -f conftest.$ac_objext conftest$ac_exeext
26668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26669 (eval $ac_link) 2>conftest.er1
a848cd7e 26670 ac_status=$?
ac1cb8d3
VS
26671 grep -v '^ *+' conftest.er1 >conftest.err
26672 rm -f conftest.er1
26673 cat conftest.err >&5
a848cd7e
SC
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } &&
ea7db9ff
DE
26676 { ac_try='test -z "$ac_c_werror_flag"
26677 || test ! -s conftest.err'
ac1cb8d3
VS
26678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679 (eval $ac_try) 2>&5
26680 ac_status=$?
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); }; } &&
26683 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26686 ac_status=$?
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; }; then
26689 ac_cv_lib_iodbc_SQLAllocEnv=yes
26690else
26691 echo "$as_me: failed program was:" >&5
26692sed 's/^/| /' conftest.$ac_ext >&5
26693
26694ac_cv_lib_iodbc_SQLAllocEnv=no
26695fi
ac1cb8d3
VS
26696rm -f conftest.err conftest.$ac_objext \
26697 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26698LIBS=$ac_check_lib_save_LIBS
26699fi
26700echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26701echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26702if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26703 ODBC_LINK=" -liodbc"
26704else
26705
26706 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26707echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26708if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26709 echo $ECHO_N "(cached) $ECHO_C" >&6
26710else
26711 ac_check_lib_save_LIBS=$LIBS
26712LIBS="-lunixodbc $LIBS"
26713cat >conftest.$ac_ext <<_ACEOF
26714/* confdefs.h. */
26715_ACEOF
26716cat confdefs.h >>conftest.$ac_ext
26717cat >>conftest.$ac_ext <<_ACEOF
26718/* end confdefs.h. */
26719
26720/* Override any gcc2 internal prototype to avoid an error. */
26721#ifdef __cplusplus
26722extern "C"
26723#endif
26724/* We use char because int might match the return type of a gcc2
26725 builtin and then its argument prototype would still apply. */
26726char SQLAllocEnv ();
26727int
26728main ()
26729{
26730SQLAllocEnv ();
26731 ;
26732 return 0;
26733}
26734_ACEOF
26735rm -f conftest.$ac_objext conftest$ac_exeext
26736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26737 (eval $ac_link) 2>conftest.er1
a848cd7e 26738 ac_status=$?
ac1cb8d3
VS
26739 grep -v '^ *+' conftest.er1 >conftest.err
26740 rm -f conftest.er1
26741 cat conftest.err >&5
a848cd7e
SC
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); } &&
ea7db9ff
DE
26744 { ac_try='test -z "$ac_c_werror_flag"
26745 || test ! -s conftest.err'
ac1cb8d3
VS
26746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747 (eval $ac_try) 2>&5
26748 ac_status=$?
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); }; } &&
26751 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753 (eval $ac_try) 2>&5
26754 ac_status=$?
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; }; then
26757 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26758else
26759 echo "$as_me: failed program was:" >&5
26760sed 's/^/| /' conftest.$ac_ext >&5
26761
26762ac_cv_lib_unixodbc_SQLAllocEnv=no
26763fi
ac1cb8d3
VS
26764rm -f conftest.err conftest.$ac_objext \
26765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26766LIBS=$ac_check_lib_save_LIBS
26767fi
26768echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26769echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26770if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26771 ODBC_LINK=" -lunixodbc"
26772else
26773
26774 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26775echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26776if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26777 echo $ECHO_N "(cached) $ECHO_C" >&6
26778else
26779 ac_check_lib_save_LIBS=$LIBS
26780LIBS="-lodbc $LIBS"
26781cat >conftest.$ac_ext <<_ACEOF
26782/* confdefs.h. */
26783_ACEOF
26784cat confdefs.h >>conftest.$ac_ext
26785cat >>conftest.$ac_ext <<_ACEOF
26786/* end confdefs.h. */
26787
26788/* Override any gcc2 internal prototype to avoid an error. */
26789#ifdef __cplusplus
26790extern "C"
26791#endif
26792/* We use char because int might match the return type of a gcc2
26793 builtin and then its argument prototype would still apply. */
26794char SQLAllocEnv ();
26795int
26796main ()
26797{
26798SQLAllocEnv ();
26799 ;
26800 return 0;
26801}
26802_ACEOF
26803rm -f conftest.$ac_objext conftest$ac_exeext
26804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26805 (eval $ac_link) 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); } &&
ea7db9ff
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_exeext'
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_cv_lib_odbc_SQLAllocEnv=yes
26826else
26827 echo "$as_me: failed program was:" >&5
26828sed 's/^/| /' conftest.$ac_ext >&5
26829
26830ac_cv_lib_odbc_SQLAllocEnv=no
26831fi
ac1cb8d3
VS
26832rm -f conftest.err conftest.$ac_objext \
26833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26834LIBS=$ac_check_lib_save_LIBS
26835fi
26836echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26837echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26838if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26839 ODBC_LINK=" -lodbc"
26840fi
26841
26842
26843fi
26844
26845
26846fi
26847
26848 fi
26849 if test "x$ODBC_LINK" = "x" ; then
26850 if test "$wxUSE_ODBC" = "sys" ; then
26851 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26852echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26853 { (exit 1); exit 1; }; }
26854 else
26855 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26856echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26857 wxUSE_ODBC=builtin
26858 fi
26859 else
26860 wxUSE_ODBC=sys
26861 fi
26862 fi
26863 if test "$wxUSE_ODBC" != "no" ; then
26864 cat >>confdefs.h <<\_ACEOF
26865#define wxUSE_ODBC 1
26866_ACEOF
26867
26868 if test "$wxUSE_ODBC" = "builtin" ; then
26869 cat >>confdefs.h <<\_ACEOF
26870#define wxUSE_BUILTIN_IODBC 1
26871_ACEOF
26872
26873 fi
26874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26875
26876 WXODBCFLAG="-D_IODBC_"
26877 fi
26878fi
26879
26880if test "$wxUSE_REGEX" = "builtin" ; then
26881 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26882fi
26883if test "$wxUSE_ZLIB" = "builtin" ; then
26884 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26885fi
26886
01cb68df 26887
a848cd7e 26888if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26889 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26890 echo "$as_me:$LINENO: checking for Xinerama" >&5
26891echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26892
26893ac_find_libraries=
26894for ac_dir in $SEARCH_LIB /usr/lib;
26895 do
26896 for ac_extension in a so sl dylib; do
26897 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26898 ac_find_libraries=$ac_dir
26899 break 2
26900 fi
26901 done
26902 done
26903
26904 if test "$ac_find_libraries" != "" ; then
26905
26906 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26907 result=$?
26908 if test $result = 0; then
26909 ac_path_to_link=""
26910 else
26911 ac_path_to_link=" -L$ac_find_libraries"
26912 fi
26913
26914 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26915 LDFLAGS="$LDFLAGS $ac_path_to_link"
26916 fi
26917 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26918 echo "$as_me:$LINENO: result: yes" >&5
26919echo "${ECHO_T}yes" >&6
26920
26921 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26922echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26923
26924ac_find_libraries=
26925for ac_dir in $SEARCH_LIB /usr/lib;
26926 do
26927 for ac_extension in a so sl dylib; do
26928 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26929 ac_find_libraries=$ac_dir
26930 break 2
26931 fi
26932 done
26933 done
26934
26935 if test "$ac_find_libraries" != "" ; then
26936 echo "$as_me:$LINENO: result: yes" >&5
26937echo "${ECHO_T}yes" >&6
26938
26939for ac_header in X11/extensions/xf86vmode.h
26940do
26941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26942echo "$as_me:$LINENO: checking for $ac_header" >&5
26943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26944if eval "test \"\${$as_ac_Header+set}\" = set"; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
26946else
26947 cat >conftest.$ac_ext <<_ACEOF
26948/* confdefs.h. */
26949_ACEOF
26950cat confdefs.h >>conftest.$ac_ext
26951cat >>conftest.$ac_ext <<_ACEOF
26952/* end confdefs.h. */
26953
26954 #if HAVE_X11_XLIB_H
26955 #include <X11/Xlib.h>
26956 #endif
26957
26958
26959#include <$ac_header>
26960_ACEOF
26961rm -f conftest.$ac_objext
26962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26963 (eval $ac_compile) 2>conftest.er1
a848cd7e 26964 ac_status=$?
ac1cb8d3
VS
26965 grep -v '^ *+' conftest.er1 >conftest.err
26966 rm -f conftest.er1
26967 cat conftest.err >&5
a848cd7e
SC
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); } &&
ea7db9ff
DE
26970 { ac_try='test -z "$ac_c_werror_flag"
26971 || test ! -s conftest.err'
ac1cb8d3
VS
26972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; } &&
26977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26979 (eval $ac_try) 2>&5
26980 ac_status=$?
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); }; }; then
26983 eval "$as_ac_Header=yes"
26984else
26985 echo "$as_me: failed program was:" >&5
26986sed 's/^/| /' conftest.$ac_ext >&5
26987
26988eval "$as_ac_Header=no"
26989fi
ac1cb8d3 26990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26991fi
26992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26994if test `eval echo '${'$as_ac_Header'}'` = yes; then
26995 cat >>confdefs.h <<_ACEOF
26996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26997_ACEOF
26998
26999 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27000
27001fi
27002
27003done
27004
27005 else
27006 echo "$as_me:$LINENO: result: no" >&5
27007echo "${ECHO_T}no" >&6
27008 fi
27009
27010 else
27011 echo "$as_me:$LINENO: result: no" >&5
27012echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27013 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27014echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27015 wxUSE_DISPLAY="no"
27016 fi
01cb68df
RG
27017 elif test "$wxUSE_MSW" = 1; then
27018
27019
27020for ac_header in multimon.h ddraw.h
27021do
27022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27023if eval "test \"\${$as_ac_Header+set}\" = set"; then
27024 echo "$as_me:$LINENO: checking for $ac_header" >&5
27025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27026if eval "test \"\${$as_ac_Header+set}\" = set"; then
27027 echo $ECHO_N "(cached) $ECHO_C" >&6
27028fi
27029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27031else
27032 # Is the header compilable?
27033echo "$as_me:$LINENO: checking $ac_header usability" >&5
27034echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27035cat >conftest.$ac_ext <<_ACEOF
27036/* confdefs.h. */
27037_ACEOF
27038cat confdefs.h >>conftest.$ac_ext
27039cat >>conftest.$ac_ext <<_ACEOF
27040/* end confdefs.h. */
27041$ac_includes_default
27042#include <$ac_header>
27043_ACEOF
27044rm -f conftest.$ac_objext
27045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27046 (eval $ac_compile) 2>conftest.er1
01cb68df 27047 ac_status=$?
ac1cb8d3
VS
27048 grep -v '^ *+' conftest.er1 >conftest.err
27049 rm -f conftest.er1
27050 cat conftest.err >&5
01cb68df
RG
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); } &&
ea7db9ff
DE
27053 { ac_try='test -z "$ac_c_werror_flag"
27054 || test ! -s conftest.err'
ac1cb8d3
VS
27055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27056 (eval $ac_try) 2>&5
27057 ac_status=$?
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); }; } &&
27060 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062 (eval $ac_try) 2>&5
27063 ac_status=$?
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); }; }; then
27066 ac_header_compiler=yes
27067else
27068 echo "$as_me: failed program was:" >&5
27069sed 's/^/| /' conftest.$ac_ext >&5
27070
27071ac_header_compiler=no
27072fi
ac1cb8d3 27073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27075echo "${ECHO_T}$ac_header_compiler" >&6
27076
27077# Is the header present?
27078echo "$as_me:$LINENO: checking $ac_header presence" >&5
27079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27080cat >conftest.$ac_ext <<_ACEOF
27081/* confdefs.h. */
27082_ACEOF
27083cat confdefs.h >>conftest.$ac_ext
27084cat >>conftest.$ac_ext <<_ACEOF
27085/* end confdefs.h. */
27086#include <$ac_header>
27087_ACEOF
27088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27090 ac_status=$?
27091 grep -v '^ *+' conftest.er1 >conftest.err
27092 rm -f conftest.er1
27093 cat conftest.err >&5
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } >/dev/null; then
27096 if test -s conftest.err; then
27097 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27099 else
27100 ac_cpp_err=
27101 fi
27102else
27103 ac_cpp_err=yes
27104fi
27105if test -z "$ac_cpp_err"; then
27106 ac_header_preproc=yes
27107else
27108 echo "$as_me: failed program was:" >&5
27109sed 's/^/| /' conftest.$ac_ext >&5
27110
27111 ac_header_preproc=no
27112fi
27113rm -f conftest.err conftest.$ac_ext
27114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27115echo "${ECHO_T}$ac_header_preproc" >&6
27116
27117# So? What about this header?
ac1cb8d3
VS
27118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27119 yes:no: )
01cb68df
RG
27120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27123echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27124 ac_header_preproc=yes
01cb68df 27125 ;;
ac1cb8d3 27126 no:yes:* )
01cb68df
RG
27127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27128echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27130echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27132echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27134echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27138echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27139 (
27140 cat <<\_ASBOX
ac1cb8d3
VS
27141## ----------------------------------------- ##
27142## Report this to wx-dev@lists.wxwidgets.org ##
27143## ----------------------------------------- ##
01cb68df
RG
27144_ASBOX
27145 ) |
27146 sed "s/^/$as_me: WARNING: /" >&2
27147 ;;
27148esac
27149echo "$as_me:$LINENO: checking for $ac_header" >&5
27150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27151if eval "test \"\${$as_ac_Header+set}\" = set"; then
27152 echo $ECHO_N "(cached) $ECHO_C" >&6
27153else
ac1cb8d3 27154 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27155fi
27156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27158
27159fi
27160if test `eval echo '${'$as_ac_Header'}'` = yes; then
27161 cat >>confdefs.h <<_ACEOF
27162#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27163_ACEOF
27164
27165else
27166
27167 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27168 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27169echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27170
27171fi
27172
27173done
27174
a848cd7e
SC
27175 fi
27176fi
27177
27178
27179USE_OPENGL=0
27180if test "$wxUSE_OPENGL" = "yes"; then
27181 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27182 OPENGL_LIBS="-framework OpenGL -framework AGL"
27183 elif test "$wxUSE_MSW" = 1; then
27184 OPENGL_LIBS="-lopengl32 -lglu32"
27185 else
27186
27187
27188ac_find_includes=
27189for ac_dir in $SEARCH_INCLUDE /usr/include;
27190 do
27191 if test -f "$ac_dir/GL/gl.h"; then
27192 ac_find_includes=$ac_dir
27193 break
27194 fi
27195 done
27196
27197 if test "$ac_find_includes" != "" ; then
27198 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27199echo "${ECHO_T}found in $ac_find_includes" >&6
27200
27201 if test "x$ac_find_includes" = "x/usr/include"; then
27202 ac_path_to_include=""
27203 else
27204 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27205 result=$?
27206 if test $result = 0; then
27207 ac_path_to_include=""
27208 else
27209 ac_path_to_include=" -I$ac_find_includes"
27210 fi
27211 fi
27212
27213 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27214 fi
27215
27216 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27217 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27218echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27219if test "${ac_cv_header_GL_gl_h+set}" = set; then
27220 echo $ECHO_N "(cached) $ECHO_C" >&6
27221fi
27222echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27223echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27224else
27225 # Is the header compilable?
27226echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27227echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27228cat >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$ac_includes_default
27235#include <GL/gl.h>
27236_ACEOF
27237rm -f conftest.$ac_objext
27238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27239 (eval $ac_compile) 2>conftest.er1
a848cd7e 27240 ac_status=$?
ac1cb8d3
VS
27241 grep -v '^ *+' conftest.er1 >conftest.err
27242 rm -f conftest.er1
27243 cat conftest.err >&5
a848cd7e
SC
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } &&
ea7db9ff
DE
27246 { ac_try='test -z "$ac_c_werror_flag"
27247 || test ! -s conftest.err'
ac1cb8d3
VS
27248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249 (eval $ac_try) 2>&5
27250 ac_status=$?
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; } &&
27253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); }; }; then
27259 ac_header_compiler=yes
27260else
27261 echo "$as_me: failed program was:" >&5
27262sed 's/^/| /' conftest.$ac_ext >&5
27263
27264ac_header_compiler=no
27265fi
ac1cb8d3 27266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27267echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27268echo "${ECHO_T}$ac_header_compiler" >&6
27269
27270# Is the header present?
27271echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27272echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27273cat >conftest.$ac_ext <<_ACEOF
27274/* confdefs.h. */
27275_ACEOF
27276cat confdefs.h >>conftest.$ac_ext
27277cat >>conftest.$ac_ext <<_ACEOF
27278/* end confdefs.h. */
27279#include <GL/gl.h>
27280_ACEOF
27281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27283 ac_status=$?
27284 grep -v '^ *+' conftest.er1 >conftest.err
27285 rm -f conftest.er1
27286 cat conftest.err >&5
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); } >/dev/null; then
27289 if test -s conftest.err; then
27290 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27292 else
27293 ac_cpp_err=
27294 fi
27295else
27296 ac_cpp_err=yes
27297fi
27298if test -z "$ac_cpp_err"; then
27299 ac_header_preproc=yes
27300else
27301 echo "$as_me: failed program was:" >&5
27302sed 's/^/| /' conftest.$ac_ext >&5
27303
27304 ac_header_preproc=no
27305fi
27306rm -f conftest.err conftest.$ac_ext
27307echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27308echo "${ECHO_T}$ac_header_preproc" >&6
27309
27310# So? What about this header?
ac1cb8d3
VS
27311case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27312 yes:no: )
a848cd7e
SC
27313 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27314echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27315 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27316echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27317 ac_header_preproc=yes
a848cd7e 27318 ;;
ac1cb8d3 27319 no:yes:* )
a848cd7e
SC
27320 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27321echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27322 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27323echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27324 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27325echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27326 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27327echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27328 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27329echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27330 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27331echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27332 (
27333 cat <<\_ASBOX
ac1cb8d3
VS
27334## ----------------------------------------- ##
27335## Report this to wx-dev@lists.wxwidgets.org ##
27336## ----------------------------------------- ##
a848cd7e
SC
27337_ASBOX
27338 ) |
27339 sed "s/^/$as_me: WARNING: /" >&2
27340 ;;
27341esac
27342echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27343echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27344if test "${ac_cv_header_GL_gl_h+set}" = set; then
27345 echo $ECHO_N "(cached) $ECHO_C" >&6
27346else
27347 ac_cv_header_GL_gl_h=$ac_header_preproc
27348fi
27349echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27350echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27351
27352fi
27353if test $ac_cv_header_GL_gl_h = yes; then
27354
27355 found_gl=0
27356
27357 echo "$as_me:$LINENO: checking for -lGL" >&5
27358echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27359
27360ac_find_libraries=
27361for ac_dir in $SEARCH_LIB /usr/lib;
27362 do
27363 for ac_extension in a so sl dylib; do
27364 if test -f "$ac_dir/libGL.$ac_extension"; then
27365 ac_find_libraries=$ac_dir
27366 break 2
27367 fi
27368 done
27369 done
27370
27371 if test "$ac_find_libraries" != "" ; then
27372
27373 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27374 result=$?
27375 if test $result = 0; then
27376 ac_path_to_link=""
27377 else
27378 ac_path_to_link=" -L$ac_find_libraries"
27379 fi
27380
27381 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27382 LDFLAGS_GL="$ac_path_to_link"
27383 fi
27384
27385
27386ac_find_libraries=
27387for ac_dir in $SEARCH_LIB /usr/lib;
27388 do
27389 for ac_extension in a so sl dylib; do
27390 if test -f "$ac_dir/libGLU.$ac_extension"; then
27391 ac_find_libraries=$ac_dir
27392 break 2
27393 fi
27394 done
27395 done
27396
27397 if test "$ac_find_libraries" != "" ; then
27398
27399 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27400 result=$?
27401 if test $result = 0; then
27402 ac_path_to_link=""
27403 else
27404 ac_path_to_link=" -L$ac_find_libraries"
27405 fi
27406
27407 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27408 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27409 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27410 fi
27411
27412 found_gl=1
27413 OPENGL_LIBS="-lGL -lGLU"
27414 echo "$as_me:$LINENO: result: yes" >&5
27415echo "${ECHO_T}yes" >&6
27416 fi
27417 fi
27418
27419 if test "$found_gl" != 1; then
27420 echo "$as_me:$LINENO: result: no" >&5
27421echo "${ECHO_T}no" >&6
27422 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27423echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27424
27425ac_find_libraries=
27426for ac_dir in $SEARCH_LIB /usr/lib;
27427 do
27428 for ac_extension in a so sl dylib; do
27429 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27430 ac_find_libraries=$ac_dir
27431 break 2
27432 fi
27433 done
27434 done
27435
27436 if test "$ac_find_libraries" != "" ; then
27437
27438 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27439 result=$?
27440 if test $result = 0; then
27441 ac_path_to_link=""
27442 else
27443 ac_path_to_link=" -L$ac_find_libraries"
27444 fi
27445
27446 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27447 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27448 echo "$as_me:$LINENO: result: yes" >&5
27449echo "${ECHO_T}yes" >&6
27450 else
27451 echo "$as_me:$LINENO: result: no" >&5
27452echo "${ECHO_T}no" >&6
27453 fi
27454 fi
27455
27456fi
27457
27458
27459
27460 if test "x$OPENGL_LIBS" = "x"; then
27461 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27462echo "$as_me: error: OpenGL libraries not available" >&2;}
27463 { (exit 1); exit 1; }; }
27464 fi
27465 fi
27466
27467 if test "$wxUSE_OPENGL" = "yes"; then
27468 USE_OPENGL=1
27469 cat >>confdefs.h <<\_ACEOF
27470#define wxUSE_OPENGL 1
27471_ACEOF
27472
27473 cat >>confdefs.h <<\_ACEOF
27474#define wxUSE_GLCANVAS 1
27475_ACEOF
27476
27477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27478 fi
27479fi
27480
27481if test -z "$TOOLKIT_VPATH" ; then
27482 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27483fi
27484
27485if test -n "$TOOLKIT" ; then
27486 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27487fi
27488
27489UNICODE=0
27490lib_unicode_suffix=
48112931 27491wxconfig_filename_unicode="ansi"
a848cd7e
SC
27492if test "$wxUSE_UNICODE" = "yes"; then
27493 lib_unicode_suffix=u
48112931 27494 wxconfig_filename_unicode="unicode"
a848cd7e
SC
27495 UNICODE=1
27496fi
27497
27498lib_debug_suffix=
48112931 27499wxconfig_filename_debug="release"
a848cd7e
SC
27500DEBUG_FLAG=0
27501if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27502 lib_debug_suffix=d
48112931 27503 wxconfig_filename_debug="debug"
a848cd7e
SC
27504 DEBUG_FLAG=1
27505fi
27506
27507DEBUG_INFO=0
27508if test "$wxUSE_DEBUG_INFO" = "yes"; then
27509 DEBUG_INFO=1
27510fi
27511
27512WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27513
27514TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27515TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27516
48112931
VS
27517WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}"
27518
a848cd7e
SC
27519if test "$cross_compiling" = "yes"; then
27520 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27521 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
48112931 27522 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}"
a848cd7e
SC
27523 HOST_SUFFIX="-${host_alias}"
27524fi
27525
27526WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27527WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27528WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27529WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27530
27531WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27532WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27533
27534WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27535WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27536WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27537WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27538
27539case "${host}" in
27540 *-*-cygwin* | *-*-mingw32* )
27541 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27542 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27543 ;;
27544
27545 *-*-darwin* )
27546
27547 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27548 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27549
27550 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27551 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27552 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27553 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27554
27555 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27556 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27557 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27558 fi
27559 ;;
27560esac
27561
27562WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27563WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27564
27565WXCONFIG_LIBS="-l${WX_LIBRARY}"
27566WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27567
27568if test "$wxUSE_OPENGL" = "yes"; then
27569 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27570 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27571fi
27572
27573
27574
27575if test "$wxUSE_SHARED" = "yes"; then
27576 case "${host}" in
27577 *-pc-msdosdjgpp )
27578 wxUSE_SHARED=no
27579 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27580echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27581 ;;
27582 esac
27583fi
27584
27585SHARED=0
27586if test "$wxUSE_SHARED" = "yes"; then
27587 SHARED=1
27588
27589
27590 found_versioning=no
27591
27592
27593 if test $found_versioning = no ; then
27594 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27595echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27596if test "${wx_cv_version_script+set}" = set; then
27597 echo $ECHO_N "(cached) $ECHO_C" >&6
27598else
27599
27600 echo "VER_1 { *; };" >conftest.sym
27601 echo "int main() { return 0; }" >conftest.cpp
27602
27603 if { ac_try='
27604 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27605 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27607 (eval $ac_try) 2>&5
27608 ac_status=$?
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); }; } ; then
27611 if test -s conftest.stderr ; then
27612 wx_cv_version_script=no
27613 else
27614 wx_cv_version_script=yes
27615 fi
27616 else
27617 wx_cv_version_script=no
27618 fi
27619 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27620
27621fi
27622echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27623echo "${ECHO_T}$wx_cv_version_script" >&6
27624 if test $wx_cv_version_script = yes ; then
27625 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27626 fi
27627 fi
27628
27629
27630 case "${host}" in
27631 *-*-linux* | *-*-gnu* )
27632 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27633 ;;
27634
27635 *-*-solaris2* )
27636 if test "$GCC" = yes ; then
27637 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27638
27639 saveLdflags="$LDFLAGS"
27640 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27641 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27642echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27643 cat >conftest.$ac_ext <<_ACEOF
27644/* confdefs.h. */
27645_ACEOF
27646cat confdefs.h >>conftest.$ac_ext
27647cat >>conftest.$ac_ext <<_ACEOF
27648/* end confdefs.h. */
27649
27650int
27651main ()
27652{
27653
27654 ;
27655 return 0;
27656}
27657_ACEOF
27658rm -f conftest.$ac_objext conftest$ac_exeext
27659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27660 (eval $ac_link) 2>conftest.er1
a848cd7e 27661 ac_status=$?
ac1cb8d3
VS
27662 grep -v '^ *+' conftest.er1 >conftest.err
27663 rm -f conftest.er1
27664 cat conftest.err >&5
a848cd7e
SC
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); } &&
ea7db9ff
DE
27667 { ac_try='test -z "$ac_c_werror_flag"
27668 || test ! -s conftest.err'
ac1cb8d3
VS
27669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27670 (eval $ac_try) 2>&5
27671 ac_status=$?
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; } &&
27674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676 (eval $ac_try) 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; }; then
27680
27681 echo "$as_me:$LINENO: result: yes" >&5
27682echo "${ECHO_T}yes" >&6
27683 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27684
27685else
27686 echo "$as_me: failed program was:" >&5
27687sed 's/^/| /' conftest.$ac_ext >&5
27688
27689
27690 echo "$as_me:$LINENO: result: no" >&5
27691echo "${ECHO_T}no" >&6
27692 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27693echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27694 LDFLAGS="$saveLdflags -Wl,-R,/"
27695 cat >conftest.$ac_ext <<_ACEOF
27696/* confdefs.h. */
27697_ACEOF
27698cat confdefs.h >>conftest.$ac_ext
27699cat >>conftest.$ac_ext <<_ACEOF
27700/* end confdefs.h. */
27701
27702int
27703main ()
27704{
27705
27706 ;
27707 return 0;
27708}
27709_ACEOF
27710rm -f conftest.$ac_objext conftest$ac_exeext
27711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27712 (eval $ac_link) 2>conftest.er1
a848cd7e 27713 ac_status=$?
ac1cb8d3
VS
27714 grep -v '^ *+' conftest.er1 >conftest.err
27715 rm -f conftest.er1
27716 cat conftest.err >&5
a848cd7e
SC
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
ea7db9ff
DE
27719 { ac_try='test -z "$ac_c_werror_flag"
27720 || test ! -s conftest.err'
ac1cb8d3
VS
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27723 ac_status=$?
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; } &&
27726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27729 ac_status=$?
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; }; then
27732
27733 echo "$as_me:$LINENO: result: yes" >&5
27734echo "${ECHO_T}yes" >&6
27735 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27736else
27737 echo "$as_me: failed program was:" >&5
27738sed 's/^/| /' conftest.$ac_ext >&5
27739
27740
27741 echo "$as_me:$LINENO: result: no" >&5
27742echo "${ECHO_T}no" >&6
27743
27744fi
ac1cb8d3
VS
27745rm -f conftest.err conftest.$ac_objext \
27746 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27747
27748fi
ac1cb8d3
VS
27749rm -f conftest.err conftest.$ac_objext \
27750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27751 LDFLAGS="$saveLdflags"
27752 else
27753 SHARED_LD="${CXX} -G -o"
27754 PIC_FLAG="-KPIC"
27755 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27756 fi
27757 ;;
27758
27759 powerpc-*-darwin* )
27760 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27761 cat <<EOF >change-install-names
27762#!/bin/sh
27763libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27764inst_cmd="install_name_tool "
27765for i in \${libnames} ; do
27766 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27767done
27768\${inst_cmd} \${3}
27769EOF
27770 chmod +x change-install-names
27771 ;;
27772
27773 *-*-cygwin* | *-*-mingw32* )
27774 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27775 ;;
27776
27777 esac
27778
27779 if test "x$WX_TARGET_LIBRARY" = "x"; then
27780 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27781 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27782 fi
27783
27784 WX_TARGET_LIBRARY_TYPE="so"
27785 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27786fi
27787
27788if test "$wxUSE_SHARED" = "no"; then
27789
27790 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27791 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27792 fi
27793
27794 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27795 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27796 fi
27797
27798 if test "$wxUSE_OPENGL" = "yes"; then
27799 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27800 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27801 else
27802 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27803 fi
27804
27805 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27806 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27807
27808 WX_TARGET_LIBRARY_TYPE="a"
27809 INSTALL_LIBRARY='$(INSTALL_DATA)'
27810
27811 STATIC_FLAG="yes"
27812else
27813 STATIC_FLAG="no"
27814fi
27815
27816if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27817 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27818 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27819 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27820
27821 # Extract the first word of "Rez", so it can be a program name with args.
27822set dummy Rez; ac_word=$2
27823echo "$as_me:$LINENO: checking for $ac_word" >&5
27824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27825if test "${ac_cv_prog_RESCOMP+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827else
27828 if test -n "$RESCOMP"; then
27829 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27830else
27831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27832for as_dir in $PATH
27833do
27834 IFS=$as_save_IFS
27835 test -z "$as_dir" && as_dir=.
27836 for ac_exec_ext in '' $ac_executable_extensions; do
27837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27838 ac_cv_prog_RESCOMP="Rez"
27839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27840 break 2
27841 fi
27842done
27843done
27844
27845 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27846fi
27847fi
27848RESCOMP=$ac_cv_prog_RESCOMP
27849if test -n "$RESCOMP"; then
27850 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27851echo "${ECHO_T}$RESCOMP" >&6
27852else
27853 echo "$as_me:$LINENO: result: no" >&5
27854echo "${ECHO_T}no" >&6
27855fi
27856
27857 # Extract the first word of "DeRez", so it can be a program name with args.
27858set dummy DeRez; ac_word=$2
27859echo "$as_me:$LINENO: checking for $ac_word" >&5
27860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27861if test "${ac_cv_prog_DEREZ+set}" = set; then
27862 echo $ECHO_N "(cached) $ECHO_C" >&6
27863else
27864 if test -n "$DEREZ"; then
27865 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27866else
27867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27868for as_dir in $PATH
27869do
27870 IFS=$as_save_IFS
27871 test -z "$as_dir" && as_dir=.
27872 for ac_exec_ext in '' $ac_executable_extensions; do
27873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27874 ac_cv_prog_DEREZ="DeRez"
27875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27876 break 2
27877 fi
27878done
27879done
27880
27881 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27882fi
27883fi
27884DEREZ=$ac_cv_prog_DEREZ
27885if test -n "$DEREZ"; then
27886 echo "$as_me:$LINENO: result: $DEREZ" >&5
27887echo "${ECHO_T}$DEREZ" >&6
27888else
27889 echo "$as_me:$LINENO: result: no" >&5
27890echo "${ECHO_T}no" >&6
27891fi
27892
27893 # Extract the first word of "SetFile", so it can be a program name with args.
27894set dummy SetFile; ac_word=$2
27895echo "$as_me:$LINENO: checking for $ac_word" >&5
27896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27897if test "${ac_cv_prog_SETFILE+set}" = set; then
27898 echo $ECHO_N "(cached) $ECHO_C" >&6
27899else
27900 if test -n "$SETFILE"; then
27901 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27902else
27903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27904for as_dir in $PATH
27905do
27906 IFS=$as_save_IFS
27907 test -z "$as_dir" && as_dir=.
27908 for ac_exec_ext in '' $ac_executable_extensions; do
27909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27910 ac_cv_prog_SETFILE="SetFile"
27911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27912 break 2
27913 fi
27914done
27915done
27916
27917 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27918fi
27919fi
27920SETFILE=$ac_cv_prog_SETFILE
27921if test -n "$SETFILE"; then
27922 echo "$as_me:$LINENO: result: $SETFILE" >&5
27923echo "${ECHO_T}$SETFILE" >&6
27924else
27925 echo "$as_me:$LINENO: result: no" >&5
27926echo "${ECHO_T}no" >&6
27927fi
27928
27929
27930 MACSETFILE="\$(SETFILE)"
27931
27932 if test "$wxUSE_MAC" = 1; then
27933 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27934
27935 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27936 else
27937 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27938 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27939 fi
27940else
27941 MACSETFILE="@#"
27942 MACRESWXCONFIG="#"
27943
27944 if test "$wxUSE_PM" = 1; then
27945 MACRESCOMP="emxbind -ep"
27946 else
27947 MACRESCOMP="@#"
27948 fi
27949fi
27950
27951
27952
27953echo "$as_me:$LINENO: checking for mode_t" >&5
27954echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27955if test "${ac_cv_type_mode_t+set}" = set; then
27956 echo $ECHO_N "(cached) $ECHO_C" >&6
27957else
27958 cat >conftest.$ac_ext <<_ACEOF
27959/* confdefs.h. */
27960_ACEOF
27961cat confdefs.h >>conftest.$ac_ext
27962cat >>conftest.$ac_ext <<_ACEOF
27963/* end confdefs.h. */
27964$ac_includes_default
27965int
27966main ()
27967{
27968if ((mode_t *) 0)
27969 return 0;
27970if (sizeof (mode_t))
27971 return 0;
27972 ;
27973 return 0;
27974}
27975_ACEOF
27976rm -f conftest.$ac_objext
27977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27978 (eval $ac_compile) 2>conftest.er1
a848cd7e 27979 ac_status=$?
ac1cb8d3
VS
27980 grep -v '^ *+' conftest.er1 >conftest.err
27981 rm -f conftest.er1
27982 cat conftest.err >&5
a848cd7e
SC
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
ea7db9ff
DE
27985 { ac_try='test -z "$ac_c_werror_flag"
27986 || test ! -s conftest.err'
ac1cb8d3
VS
27987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27988 (eval $ac_try) 2>&5
27989 ac_status=$?
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27995 ac_status=$?
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; }; then
27998 ac_cv_type_mode_t=yes
27999else
28000 echo "$as_me: failed program was:" >&5
28001sed 's/^/| /' conftest.$ac_ext >&5
28002
28003ac_cv_type_mode_t=no
28004fi
ac1cb8d3 28005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28006fi
28007echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28008echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28009if test $ac_cv_type_mode_t = yes; then
28010 :
28011else
28012
28013cat >>confdefs.h <<_ACEOF
28014#define mode_t int
28015_ACEOF
28016
28017fi
28018
28019echo "$as_me:$LINENO: checking for off_t" >&5
28020echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28021if test "${ac_cv_type_off_t+set}" = set; then
28022 echo $ECHO_N "(cached) $ECHO_C" >&6
28023else
28024 cat >conftest.$ac_ext <<_ACEOF
28025/* confdefs.h. */
28026_ACEOF
28027cat confdefs.h >>conftest.$ac_ext
28028cat >>conftest.$ac_ext <<_ACEOF
28029/* end confdefs.h. */
28030$ac_includes_default
28031int
28032main ()
28033{
28034if ((off_t *) 0)
28035 return 0;
28036if (sizeof (off_t))
28037 return 0;
28038 ;
28039 return 0;
28040}
28041_ACEOF
28042rm -f conftest.$ac_objext
28043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28044 (eval $ac_compile) 2>conftest.er1
a848cd7e 28045 ac_status=$?
ac1cb8d3
VS
28046 grep -v '^ *+' conftest.er1 >conftest.err
28047 rm -f conftest.er1
28048 cat conftest.err >&5
a848cd7e
SC
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); } &&
ea7db9ff
DE
28051 { ac_try='test -z "$ac_c_werror_flag"
28052 || test ! -s conftest.err'
ac1cb8d3
VS
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28055 ac_status=$?
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; } &&
28058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28061 ac_status=$?
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
28064 ac_cv_type_off_t=yes
28065else
28066 echo "$as_me: failed program was:" >&5
28067sed 's/^/| /' conftest.$ac_ext >&5
28068
28069ac_cv_type_off_t=no
28070fi
ac1cb8d3 28071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28072fi
28073echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28074echo "${ECHO_T}$ac_cv_type_off_t" >&6
28075if test $ac_cv_type_off_t = yes; then
28076 :
28077else
28078
28079cat >>confdefs.h <<_ACEOF
28080#define off_t long
28081_ACEOF
28082
28083fi
28084
28085echo "$as_me:$LINENO: checking for pid_t" >&5
28086echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28087if test "${ac_cv_type_pid_t+set}" = set; then
28088 echo $ECHO_N "(cached) $ECHO_C" >&6
28089else
28090 cat >conftest.$ac_ext <<_ACEOF
28091/* confdefs.h. */
28092_ACEOF
28093cat confdefs.h >>conftest.$ac_ext
28094cat >>conftest.$ac_ext <<_ACEOF
28095/* end confdefs.h. */
28096$ac_includes_default
28097int
28098main ()
28099{
28100if ((pid_t *) 0)
28101 return 0;
28102if (sizeof (pid_t))
28103 return 0;
28104 ;
28105 return 0;
28106}
28107_ACEOF
28108rm -f conftest.$ac_objext
28109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28110 (eval $ac_compile) 2>conftest.er1
a848cd7e 28111 ac_status=$?
ac1cb8d3
VS
28112 grep -v '^ *+' conftest.er1 >conftest.err
28113 rm -f conftest.er1
28114 cat conftest.err >&5
a848cd7e
SC
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); } &&
ea7db9ff
DE
28117 { ac_try='test -z "$ac_c_werror_flag"
28118 || test ! -s conftest.err'
ac1cb8d3
VS
28119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28120 (eval $ac_try) 2>&5
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); }; } &&
28124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; }; then
28130 ac_cv_type_pid_t=yes
28131else
28132 echo "$as_me: failed program was:" >&5
28133sed 's/^/| /' conftest.$ac_ext >&5
28134
28135ac_cv_type_pid_t=no
28136fi
ac1cb8d3 28137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28138fi
28139echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28140echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28141if test $ac_cv_type_pid_t = yes; then
28142 :
28143else
28144
28145cat >>confdefs.h <<_ACEOF
28146#define pid_t int
28147_ACEOF
28148
28149fi
28150
28151echo "$as_me:$LINENO: checking for size_t" >&5
28152echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28153if test "${ac_cv_type_size_t+set}" = set; then
28154 echo $ECHO_N "(cached) $ECHO_C" >&6
28155else
28156 cat >conftest.$ac_ext <<_ACEOF
28157/* confdefs.h. */
28158_ACEOF
28159cat confdefs.h >>conftest.$ac_ext
28160cat >>conftest.$ac_ext <<_ACEOF
28161/* end confdefs.h. */
28162$ac_includes_default
28163int
28164main ()
28165{
28166if ((size_t *) 0)
28167 return 0;
28168if (sizeof (size_t))
28169 return 0;
28170 ;
28171 return 0;
28172}
28173_ACEOF
28174rm -f conftest.$ac_objext
28175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28176 (eval $ac_compile) 2>conftest.er1
a848cd7e 28177 ac_status=$?
ac1cb8d3
VS
28178 grep -v '^ *+' conftest.er1 >conftest.err
28179 rm -f conftest.er1
28180 cat conftest.err >&5
a848cd7e
SC
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } &&
ea7db9ff
DE
28183 { ac_try='test -z "$ac_c_werror_flag"
28184 || test ! -s conftest.err'
ac1cb8d3
VS
28185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28186 (eval $ac_try) 2>&5
28187 ac_status=$?
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); }; } &&
28190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192 (eval $ac_try) 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; }; then
28196 ac_cv_type_size_t=yes
28197else
28198 echo "$as_me: failed program was:" >&5
28199sed 's/^/| /' conftest.$ac_ext >&5
28200
28201ac_cv_type_size_t=no
28202fi
ac1cb8d3 28203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28204fi
28205echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28206echo "${ECHO_T}$ac_cv_type_size_t" >&6
28207if test $ac_cv_type_size_t = yes; then
28208 :
28209else
28210
28211cat >>confdefs.h <<_ACEOF
28212#define size_t unsigned
28213_ACEOF
28214
28215fi
28216
28217echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28218echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28219if test "${ac_cv_type_uid_t+set}" = set; then
28220 echo $ECHO_N "(cached) $ECHO_C" >&6
28221else
28222 cat >conftest.$ac_ext <<_ACEOF
28223/* confdefs.h. */
28224_ACEOF
28225cat confdefs.h >>conftest.$ac_ext
28226cat >>conftest.$ac_ext <<_ACEOF
28227/* end confdefs.h. */
28228#include <sys/types.h>
28229
28230_ACEOF
28231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28232 $EGREP "uid_t" >/dev/null 2>&1; then
28233 ac_cv_type_uid_t=yes
28234else
28235 ac_cv_type_uid_t=no
28236fi
28237rm -f conftest*
28238
28239fi
28240echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28241echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28242if test $ac_cv_type_uid_t = no; then
28243
28244cat >>confdefs.h <<\_ACEOF
28245#define uid_t int
28246_ACEOF
28247
28248
28249cat >>confdefs.h <<\_ACEOF
28250#define gid_t int
28251_ACEOF
28252
28253fi
28254
28255
28256
28257
28258ac_ext=cc
28259ac_cpp='$CXXCPP $CPPFLAGS'
28260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28263
28264echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28265echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28266if test "${wx_cv_size_t_is_uint+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28268else
28269
28270 cat >conftest.$ac_ext <<_ACEOF
28271/* confdefs.h. */
28272_ACEOF
28273cat confdefs.h >>conftest.$ac_ext
28274cat >>conftest.$ac_ext <<_ACEOF
28275/* end confdefs.h. */
28276#include <stddef.h>
28277int
28278main ()
28279{
28280
28281 return 0; }
28282
28283 struct Foo { void foo(size_t); void foo(unsigned int); };
28284
28285 int bar() {
28286
28287 ;
28288 return 0;
28289}
28290_ACEOF
28291rm -f conftest.$ac_objext
28292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28293 (eval $ac_compile) 2>conftest.er1
a848cd7e 28294 ac_status=$?
ac1cb8d3
VS
28295 grep -v '^ *+' conftest.er1 >conftest.err
28296 rm -f conftest.er1
28297 cat conftest.err >&5
a848cd7e
SC
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); } &&
ea7db9ff
DE
28300 { ac_try='test -z "$ac_cxx_werror_flag"
28301 || test ! -s conftest.err'
ac1cb8d3
VS
28302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28303 (eval $ac_try) 2>&5
28304 ac_status=$?
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; } &&
28307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28309 (eval $ac_try) 2>&5
28310 ac_status=$?
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; }; then
28313 wx_cv_size_t_is_uint=no
28314else
28315 echo "$as_me: failed program was:" >&5
28316sed 's/^/| /' conftest.$ac_ext >&5
28317
28318wx_cv_size_t_is_uint=yes
28319
28320fi
ac1cb8d3 28321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28322
28323
28324fi
28325echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28326echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28327
28328if test "$wx_cv_size_t_is_uint" = "yes"; then
28329 cat >>confdefs.h <<\_ACEOF
28330#define wxSIZE_T_IS_UINT 1
28331_ACEOF
28332
28333else
28334 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28335echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28336if test "${wx_cv_size_t_is_ulong+set}" = set; then
28337 echo $ECHO_N "(cached) $ECHO_C" >&6
28338else
28339 cat >conftest.$ac_ext <<_ACEOF
28340/* confdefs.h. */
28341_ACEOF
28342cat confdefs.h >>conftest.$ac_ext
28343cat >>conftest.$ac_ext <<_ACEOF
28344/* end confdefs.h. */
28345#include <stddef.h>
28346int
28347main ()
28348{
28349
28350 return 0; }
28351
28352 struct Foo { void foo(size_t); void foo(unsigned long); };
28353
28354 int bar() {
28355
28356 ;
28357 return 0;
28358}
28359_ACEOF
28360rm -f conftest.$ac_objext
28361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28362 (eval $ac_compile) 2>conftest.er1
a848cd7e 28363 ac_status=$?
ac1cb8d3
VS
28364 grep -v '^ *+' conftest.er1 >conftest.err
28365 rm -f conftest.er1
28366 cat conftest.err >&5
a848cd7e
SC
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } &&
ea7db9ff
DE
28369 { ac_try='test -z "$ac_cxx_werror_flag"
28370 || test ! -s conftest.err'
ac1cb8d3
VS
28371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372 (eval $ac_try) 2>&5
28373 ac_status=$?
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; } &&
28376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378 (eval $ac_try) 2>&5
28379 ac_status=$?
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; }; then
28382 wx_cv_size_t_is_ulong=no
28383else
28384 echo "$as_me: failed program was:" >&5
28385sed 's/^/| /' conftest.$ac_ext >&5
28386
28387wx_cv_size_t_is_ulong=yes
28388
28389fi
ac1cb8d3 28390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28391
28392fi
28393echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28394echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28395
28396 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28397 cat >>confdefs.h <<\_ACEOF
28398#define wxSIZE_T_IS_ULONG 1
28399_ACEOF
28400
28401 fi
28402fi
28403
28404ac_ext=c
28405ac_cpp='$CPP $CPPFLAGS'
28406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28408ac_compiler_gnu=$ac_cv_c_compiler_gnu
28409
28410
28411
28412echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28413echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28414if test "${wx_cv_struct_pw_gecos+set}" = set; then
28415 echo $ECHO_N "(cached) $ECHO_C" >&6
28416else
28417
28418 cat >conftest.$ac_ext <<_ACEOF
28419/* confdefs.h. */
28420_ACEOF
28421cat confdefs.h >>conftest.$ac_ext
28422cat >>conftest.$ac_ext <<_ACEOF
28423/* end confdefs.h. */
28424#include <pwd.h>
28425int
28426main ()
28427{
28428
28429 char *p;
28430 struct passwd *pw;
28431 p = pw->pw_gecos;
28432
28433 ;
28434 return 0;
28435}
28436_ACEOF
28437rm -f conftest.$ac_objext
28438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28439 (eval $ac_compile) 2>conftest.er1
a848cd7e 28440 ac_status=$?
ac1cb8d3
VS
28441 grep -v '^ *+' conftest.er1 >conftest.err
28442 rm -f conftest.er1
28443 cat conftest.err >&5
a848cd7e
SC
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); } &&
ea7db9ff
DE
28446 { ac_try='test -z "$ac_c_werror_flag"
28447 || test ! -s conftest.err'
ac1cb8d3
VS
28448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449 (eval $ac_try) 2>&5
28450 ac_status=$?
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; } &&
28453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28456 ac_status=$?
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; }; then
28459
28460 wx_cv_struct_pw_gecos=yes
28461
28462else
28463 echo "$as_me: failed program was:" >&5
28464sed 's/^/| /' conftest.$ac_ext >&5
28465
28466
28467 wx_cv_struct_pw_gecos=no
28468
28469
28470fi
ac1cb8d3 28471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28472
28473
28474fi
28475echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28476echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28477
28478if test "$wx_cv_struct_pw_gecos" = "yes"; then
28479 cat >>confdefs.h <<\_ACEOF
28480#define HAVE_PW_GECOS 1
28481_ACEOF
28482
28483fi
28484
28485
28486if test "$wx_cv_sizeof_wchar_t" != "0"; then
28487 cat >>confdefs.h <<\_ACEOF
28488#define wxUSE_WCHAR_T 1
28489_ACEOF
28490
28491
28492 WCSLEN_FOUND=0
28493 WCHAR_LINK=
28494
28495for ac_func in wcslen
28496do
28497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28498echo "$as_me:$LINENO: checking for $ac_func" >&5
28499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28500if eval "test \"\${$as_ac_var+set}\" = set"; then
28501 echo $ECHO_N "(cached) $ECHO_C" >&6
28502else
28503 cat >conftest.$ac_ext <<_ACEOF
28504/* confdefs.h. */
28505_ACEOF
28506cat confdefs.h >>conftest.$ac_ext
28507cat >>conftest.$ac_ext <<_ACEOF
28508/* end confdefs.h. */
ac1cb8d3
VS
28509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28511#define $ac_func innocuous_$ac_func
28512
a848cd7e
SC
28513/* System header to define __stub macros and hopefully few prototypes,
28514 which can conflict with char $ac_func (); below.
28515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28516 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28517
a848cd7e
SC
28518#ifdef __STDC__
28519# include <limits.h>
28520#else
28521# include <assert.h>
28522#endif
ac1cb8d3
VS
28523
28524#undef $ac_func
28525
a848cd7e
SC
28526/* Override any gcc2 internal prototype to avoid an error. */
28527#ifdef __cplusplus
28528extern "C"
28529{
28530#endif
28531/* We use char because int might match the return type of a gcc2
28532 builtin and then its argument prototype would still apply. */
28533char $ac_func ();
28534/* The GNU C library defines this for functions which it implements
28535 to always fail with ENOSYS. Some functions are actually named
28536 something starting with __ and the normal name is an alias. */
28537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28538choke me
28539#else
28540char (*f) () = $ac_func;
28541#endif
28542#ifdef __cplusplus
28543}
28544#endif
28545
28546int
28547main ()
28548{
28549return f != $ac_func;
28550 ;
28551 return 0;
28552}
28553_ACEOF
28554rm -f conftest.$ac_objext conftest$ac_exeext
28555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28556 (eval $ac_link) 2>conftest.er1
a848cd7e 28557 ac_status=$?
ac1cb8d3
VS
28558 grep -v '^ *+' conftest.er1 >conftest.err
28559 rm -f conftest.er1
28560 cat conftest.err >&5
a848cd7e
SC
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); } &&
ea7db9ff
DE
28563 { ac_try='test -z "$ac_c_werror_flag"
28564 || test ! -s conftest.err'
ac1cb8d3
VS
28565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566 (eval $ac_try) 2>&5
28567 ac_status=$?
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; } &&
28570 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572 (eval $ac_try) 2>&5
28573 ac_status=$?
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); }; }; then
28576 eval "$as_ac_var=yes"
28577else
28578 echo "$as_me: failed program was:" >&5
28579sed 's/^/| /' conftest.$ac_ext >&5
28580
28581eval "$as_ac_var=no"
28582fi
ac1cb8d3
VS
28583rm -f conftest.err conftest.$ac_objext \
28584 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28585fi
28586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28588if test `eval echo '${'$as_ac_var'}'` = yes; then
28589 cat >>confdefs.h <<_ACEOF
28590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28591_ACEOF
28592 WCSLEN_FOUND=1
28593fi
28594done
28595
28596
28597 if test "$WCSLEN_FOUND" = 0; then
28598 if test "$TOOLKIT" = "MSW"; then
28599 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28600echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28601if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28602 echo $ECHO_N "(cached) $ECHO_C" >&6
28603else
28604 ac_check_lib_save_LIBS=$LIBS
28605LIBS="-lmsvcrt $LIBS"
28606cat >conftest.$ac_ext <<_ACEOF
28607/* confdefs.h. */
28608_ACEOF
28609cat confdefs.h >>conftest.$ac_ext
28610cat >>conftest.$ac_ext <<_ACEOF
28611/* end confdefs.h. */
28612
28613/* Override any gcc2 internal prototype to avoid an error. */
28614#ifdef __cplusplus
28615extern "C"
28616#endif
28617/* We use char because int might match the return type of a gcc2
28618 builtin and then its argument prototype would still apply. */
28619char wcslen ();
28620int
28621main ()
28622{
28623wcslen ();
28624 ;
28625 return 0;
28626}
28627_ACEOF
28628rm -f conftest.$ac_objext conftest$ac_exeext
28629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28630 (eval $ac_link) 2>conftest.er1
a848cd7e 28631 ac_status=$?
ac1cb8d3
VS
28632 grep -v '^ *+' conftest.er1 >conftest.err
28633 rm -f conftest.er1
28634 cat conftest.err >&5
a848cd7e
SC
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } &&
ea7db9ff
DE
28637 { ac_try='test -z "$ac_c_werror_flag"
28638 || test ! -s conftest.err'
ac1cb8d3
VS
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28641 ac_status=$?
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; } &&
28644 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646 (eval $ac_try) 2>&5
28647 ac_status=$?
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; }; then
28650 ac_cv_lib_msvcrt_wcslen=yes
28651else
28652 echo "$as_me: failed program was:" >&5
28653sed 's/^/| /' conftest.$ac_ext >&5
28654
28655ac_cv_lib_msvcrt_wcslen=no
28656fi
ac1cb8d3
VS
28657rm -f conftest.err conftest.$ac_objext \
28658 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28659LIBS=$ac_check_lib_save_LIBS
28660fi
28661echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28662echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28663if test $ac_cv_lib_msvcrt_wcslen = yes; then
28664 WCHAR_OK=1
28665fi
28666
28667 else
28668 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28669echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28670if test "${ac_cv_lib_w_wcslen+set}" = set; then
28671 echo $ECHO_N "(cached) $ECHO_C" >&6
28672else
28673 ac_check_lib_save_LIBS=$LIBS
28674LIBS="-lw $LIBS"
28675cat >conftest.$ac_ext <<_ACEOF
28676/* confdefs.h. */
28677_ACEOF
28678cat confdefs.h >>conftest.$ac_ext
28679cat >>conftest.$ac_ext <<_ACEOF
28680/* end confdefs.h. */
28681
28682/* Override any gcc2 internal prototype to avoid an error. */
28683#ifdef __cplusplus
28684extern "C"
28685#endif
28686/* We use char because int might match the return type of a gcc2
28687 builtin and then its argument prototype would still apply. */
28688char wcslen ();
28689int
28690main ()
28691{
28692wcslen ();
28693 ;
28694 return 0;
28695}
28696_ACEOF
28697rm -f conftest.$ac_objext conftest$ac_exeext
28698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28699 (eval $ac_link) 2>conftest.er1
a848cd7e 28700 ac_status=$?
ac1cb8d3
VS
28701 grep -v '^ *+' conftest.er1 >conftest.err
28702 rm -f conftest.er1
28703 cat conftest.err >&5
a848cd7e
SC
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); } &&
ea7db9ff
DE
28706 { ac_try='test -z "$ac_c_werror_flag"
28707 || test ! -s conftest.err'
ac1cb8d3
VS
28708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28709 (eval $ac_try) 2>&5
28710 ac_status=$?
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); }; } &&
28713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715 (eval $ac_try) 2>&5
28716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); }; }; then
28719 ac_cv_lib_w_wcslen=yes
28720else
28721 echo "$as_me: failed program was:" >&5
28722sed 's/^/| /' conftest.$ac_ext >&5
28723
28724ac_cv_lib_w_wcslen=no
28725fi
ac1cb8d3
VS
28726rm -f conftest.err conftest.$ac_objext \
28727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28728LIBS=$ac_check_lib_save_LIBS
28729fi
28730echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28731echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28732if test $ac_cv_lib_w_wcslen = yes; then
28733
28734 WCHAR_LINK=" -lw"
28735 WCSLEN_FOUND=1
28736
28737fi
28738
28739 fi
28740 fi
28741
28742 if test "$WCSLEN_FOUND" = 1; then
28743 cat >>confdefs.h <<\_ACEOF
28744#define HAVE_WCSLEN 1
28745_ACEOF
28746
28747 fi
28748
473276a9
VS
28749 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28750 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28751 fi
28752
a848cd7e
SC
28753
28754for ac_func in wcsrtombs
28755do
28756as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28757echo "$as_me:$LINENO: checking for $ac_func" >&5
28758echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28759if eval "test \"\${$as_ac_var+set}\" = set"; then
28760 echo $ECHO_N "(cached) $ECHO_C" >&6
28761else
28762 cat >conftest.$ac_ext <<_ACEOF
28763/* confdefs.h. */
28764_ACEOF
28765cat confdefs.h >>conftest.$ac_ext
28766cat >>conftest.$ac_ext <<_ACEOF
28767/* end confdefs.h. */
ac1cb8d3
VS
28768/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28770#define $ac_func innocuous_$ac_func
28771
a848cd7e
SC
28772/* System header to define __stub macros and hopefully few prototypes,
28773 which can conflict with char $ac_func (); below.
28774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28775 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28776
a848cd7e
SC
28777#ifdef __STDC__
28778# include <limits.h>
28779#else
28780# include <assert.h>
28781#endif
ac1cb8d3
VS
28782
28783#undef $ac_func
28784
a848cd7e
SC
28785/* Override any gcc2 internal prototype to avoid an error. */
28786#ifdef __cplusplus
28787extern "C"
28788{
28789#endif
28790/* We use char because int might match the return type of a gcc2
28791 builtin and then its argument prototype would still apply. */
28792char $ac_func ();
28793/* The GNU C library defines this for functions which it implements
28794 to always fail with ENOSYS. Some functions are actually named
28795 something starting with __ and the normal name is an alias. */
28796#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28797choke me
28798#else
28799char (*f) () = $ac_func;
28800#endif
28801#ifdef __cplusplus
28802}
28803#endif
28804
28805int
28806main ()
28807{
28808return f != $ac_func;
28809 ;
28810 return 0;
28811}
28812_ACEOF
28813rm -f conftest.$ac_objext conftest$ac_exeext
28814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28815 (eval $ac_link) 2>conftest.er1
a848cd7e 28816 ac_status=$?
ac1cb8d3
VS
28817 grep -v '^ *+' conftest.er1 >conftest.err
28818 rm -f conftest.er1
28819 cat conftest.err >&5
a848cd7e
SC
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); } &&
ea7db9ff
DE
28822 { ac_try='test -z "$ac_c_werror_flag"
28823 || test ! -s conftest.err'
ac1cb8d3
VS
28824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825 (eval $ac_try) 2>&5
28826 ac_status=$?
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; } &&
28829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831 (eval $ac_try) 2>&5
28832 ac_status=$?
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; }; then
28835 eval "$as_ac_var=yes"
28836else
28837 echo "$as_me: failed program was:" >&5
28838sed 's/^/| /' conftest.$ac_ext >&5
28839
28840eval "$as_ac_var=no"
28841fi
ac1cb8d3
VS
28842rm -f conftest.err conftest.$ac_objext \
28843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28844fi
28845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28846echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28847if test `eval echo '${'$as_ac_var'}'` = yes; then
28848 cat >>confdefs.h <<_ACEOF
28849#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28850_ACEOF
28851
28852fi
28853done
28854
28855else
28856 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28857echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28858fi
28859
28860
28861
28862ac_ext=cc
28863ac_cpp='$CXXCPP $CPPFLAGS'
28864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28867
28868
28869
28870for ac_func in vsnprintf
28871do
28872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28873echo "$as_me:$LINENO: checking for $ac_func" >&5
28874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28875if eval "test \"\${$as_ac_var+set}\" = set"; then
28876 echo $ECHO_N "(cached) $ECHO_C" >&6
28877else
28878 cat >conftest.$ac_ext <<_ACEOF
28879/* confdefs.h. */
28880_ACEOF
28881cat confdefs.h >>conftest.$ac_ext
28882cat >>conftest.$ac_ext <<_ACEOF
28883/* end confdefs.h. */
ac1cb8d3
VS
28884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28886#define $ac_func innocuous_$ac_func
28887
a848cd7e
SC
28888/* System header to define __stub macros and hopefully few prototypes,
28889 which can conflict with char $ac_func (); below.
28890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28891 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28892
a848cd7e
SC
28893#ifdef __STDC__
28894# include <limits.h>
28895#else
28896# include <assert.h>
28897#endif
ac1cb8d3
VS
28898
28899#undef $ac_func
28900
a848cd7e
SC
28901/* Override any gcc2 internal prototype to avoid an error. */
28902#ifdef __cplusplus
28903extern "C"
28904{
28905#endif
28906/* We use char because int might match the return type of a gcc2
28907 builtin and then its argument prototype would still apply. */
28908char $ac_func ();
28909/* The GNU C library defines this for functions which it implements
28910 to always fail with ENOSYS. Some functions are actually named
28911 something starting with __ and the normal name is an alias. */
28912#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28913choke me
28914#else
28915char (*f) () = $ac_func;
28916#endif
28917#ifdef __cplusplus
28918}
28919#endif
28920
28921int
28922main ()
28923{
28924return f != $ac_func;
28925 ;
28926 return 0;
28927}
28928_ACEOF
28929rm -f conftest.$ac_objext conftest$ac_exeext
28930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28931 (eval $ac_link) 2>conftest.er1
a848cd7e 28932 ac_status=$?
ac1cb8d3
VS
28933 grep -v '^ *+' conftest.er1 >conftest.err
28934 rm -f conftest.er1
28935 cat conftest.err >&5
a848cd7e
SC
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); } &&
ea7db9ff
DE
28938 { ac_try='test -z "$ac_cxx_werror_flag"
28939 || test ! -s conftest.err'
ac1cb8d3
VS
28940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941 (eval $ac_try) 2>&5
28942 ac_status=$?
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; } &&
28945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28947 (eval $ac_try) 2>&5
28948 ac_status=$?
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); }; }; then
28951 eval "$as_ac_var=yes"
28952else
28953 echo "$as_me: failed program was:" >&5
28954sed 's/^/| /' conftest.$ac_ext >&5
28955
28956eval "$as_ac_var=no"
28957fi
ac1cb8d3
VS
28958rm -f conftest.err conftest.$ac_objext \
28959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28960fi
28961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28962echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28963if test `eval echo '${'$as_ac_var'}'` = yes; then
28964 cat >>confdefs.h <<_ACEOF
28965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28966_ACEOF
28967
28968fi
28969done
28970
28971
28972if test "$ac_cv_func_vsnprintf" = "yes"; then
28973 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28974echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28975if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28976 echo $ECHO_N "(cached) $ECHO_C" >&6
28977else
28978
28979 cat >conftest.$ac_ext <<_ACEOF
28980/* confdefs.h. */
28981_ACEOF
28982cat confdefs.h >>conftest.$ac_ext
28983cat >>conftest.$ac_ext <<_ACEOF
28984/* end confdefs.h. */
28985
28986 #include <stdio.h>
28987 #include <stdarg.h>
28988
28989int
28990main ()
28991{
28992
28993 char *buf;
28994 va_list ap;
28995 vsnprintf(buf, 10u, "%s", ap);
28996
28997 ;
28998 return 0;
28999}
29000_ACEOF
29001rm -f conftest.$ac_objext
29002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29003 (eval $ac_compile) 2>conftest.er1
a848cd7e 29004 ac_status=$?
ac1cb8d3
VS
29005 grep -v '^ *+' conftest.er1 >conftest.err
29006 rm -f conftest.er1
29007 cat conftest.err >&5
a848cd7e
SC
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } &&
ea7db9ff
DE
29010 { ac_try='test -z "$ac_cxx_werror_flag"
29011 || test ! -s conftest.err'
ac1cb8d3
VS
29012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29013 (eval $ac_try) 2>&5
29014 ac_status=$?
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); }; } &&
29017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29019 (eval $ac_try) 2>&5
29020 ac_status=$?
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; }; then
29023 wx_cv_func_vsnprintf_decl=yes
29024else
29025 echo "$as_me: failed program was:" >&5
29026sed 's/^/| /' conftest.$ac_ext >&5
29027
29028wx_cv_func_vsnprintf_decl=no
29029
29030fi
ac1cb8d3 29031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29032
29033
29034fi
29035echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29036echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29037
29038 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29039 cat >>confdefs.h <<\_ACEOF
29040#define HAVE_VSNPRINTF_DECL 1
29041_ACEOF
29042
29043 fi
29044fi
29045
29046if test "$wxUSE_UNICODE" = yes; then
29047
29048
29049
fbe47c7b
VS
29050
29051
29052
29053for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29054do
29055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29056echo "$as_me:$LINENO: checking for $ac_func" >&5
29057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29058if eval "test \"\${$as_ac_var+set}\" = set"; then
29059 echo $ECHO_N "(cached) $ECHO_C" >&6
29060else
29061 cat >conftest.$ac_ext <<_ACEOF
29062/* confdefs.h. */
29063_ACEOF
29064cat confdefs.h >>conftest.$ac_ext
29065cat >>conftest.$ac_ext <<_ACEOF
29066/* end confdefs.h. */
ac1cb8d3
VS
29067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29069#define $ac_func innocuous_$ac_func
29070
a848cd7e
SC
29071/* System header to define __stub macros and hopefully few prototypes,
29072 which can conflict with char $ac_func (); below.
29073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29074 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29075
a848cd7e
SC
29076#ifdef __STDC__
29077# include <limits.h>
29078#else
29079# include <assert.h>
29080#endif
ac1cb8d3
VS
29081
29082#undef $ac_func
29083
a848cd7e
SC
29084/* Override any gcc2 internal prototype to avoid an error. */
29085#ifdef __cplusplus
29086extern "C"
29087{
29088#endif
29089/* We use char because int might match the return type of a gcc2
29090 builtin and then its argument prototype would still apply. */
29091char $ac_func ();
29092/* The GNU C library defines this for functions which it implements
29093 to always fail with ENOSYS. Some functions are actually named
29094 something starting with __ and the normal name is an alias. */
29095#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29096choke me
29097#else
29098char (*f) () = $ac_func;
29099#endif
29100#ifdef __cplusplus
29101}
29102#endif
29103
29104int
29105main ()
29106{
29107return f != $ac_func;
29108 ;
29109 return 0;
29110}
29111_ACEOF
29112rm -f conftest.$ac_objext conftest$ac_exeext
29113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29114 (eval $ac_link) 2>conftest.er1
a848cd7e 29115 ac_status=$?
ac1cb8d3
VS
29116 grep -v '^ *+' conftest.er1 >conftest.err
29117 rm -f conftest.er1
29118 cat conftest.err >&5
a848cd7e
SC
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } &&
ea7db9ff
DE
29121 { ac_try='test -z "$ac_cxx_werror_flag"
29122 || test ! -s conftest.err'
ac1cb8d3
VS
29123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29124 (eval $ac_try) 2>&5
29125 ac_status=$?
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; } &&
29128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130 (eval $ac_try) 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; }; then
29134 eval "$as_ac_var=yes"
29135else
29136 echo "$as_me: failed program was:" >&5
29137sed 's/^/| /' conftest.$ac_ext >&5
29138
29139eval "$as_ac_var=no"
29140fi
ac1cb8d3
VS
29141rm -f conftest.err conftest.$ac_objext \
29142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29143fi
29144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29145echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29146if test `eval echo '${'$as_ac_var'}'` = yes; then
29147 cat >>confdefs.h <<_ACEOF
29148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29149_ACEOF
29150
29151fi
29152done
29153
29154
29155 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29156echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29157 cat >conftest.$ac_ext <<_ACEOF
29158/* confdefs.h. */
29159_ACEOF
29160cat confdefs.h >>conftest.$ac_ext
29161cat >>conftest.$ac_ext <<_ACEOF
29162/* end confdefs.h. */
29163#include <wchar.h>
29164int
29165main ()
29166{
29167&_vsnwprintf;
29168 ;
29169 return 0;
29170}
29171_ACEOF
29172rm -f conftest.$ac_objext
29173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29174 (eval $ac_compile) 2>conftest.er1
a848cd7e 29175 ac_status=$?
ac1cb8d3
VS
29176 grep -v '^ *+' conftest.er1 >conftest.err
29177 rm -f conftest.er1
29178 cat conftest.err >&5
a848cd7e
SC
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); } &&
ea7db9ff
DE
29181 { ac_try='test -z "$ac_cxx_werror_flag"
29182 || test ! -s conftest.err'
ac1cb8d3
VS
29183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29184 (eval $ac_try) 2>&5
29185 ac_status=$?
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); }; } &&
29188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190 (eval $ac_try) 2>&5
29191 ac_status=$?
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; }; then
29194 echo "$as_me:$LINENO: result: yes" >&5
29195echo "${ECHO_T}yes" >&6
29196 cat >>confdefs.h <<\_ACEOF
29197#define HAVE__VSNWPRINTF 1
29198_ACEOF
29199
29200else
29201 echo "$as_me: failed program was:" >&5
29202sed 's/^/| /' conftest.$ac_ext >&5
29203
29204echo "$as_me:$LINENO: result: no" >&5
29205echo "${ECHO_T}no" >&6
29206fi
ac1cb8d3 29207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29208fi
29209
29210ac_ext=c
29211ac_cpp='$CPP $CPPFLAGS'
29212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29214ac_compiler_gnu=$ac_cv_c_compiler_gnu
29215
29216
29217
29218
29219if test "$TOOLKIT" != "MSW"; then
29220
29221
29222
29223
29224ac_ext=cc
29225ac_cpp='$CXXCPP $CPPFLAGS'
29226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29229
29230
29231
29232
29233# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29234if test "${with_libiconv_prefix+set}" = set; then
29235 withval="$with_libiconv_prefix"
29236
29237 for dir in `echo "$withval" | tr : ' '`; do
29238 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29239 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29240 done
29241
29242fi;
29243
29244 echo "$as_me:$LINENO: checking for iconv" >&5
29245echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29246if test "${am_cv_func_iconv+set}" = set; then
29247 echo $ECHO_N "(cached) $ECHO_C" >&6
29248else
29249
29250 am_cv_func_iconv="no, consider installing GNU libiconv"
29251 am_cv_lib_iconv=no
29252 cat >conftest.$ac_ext <<_ACEOF
29253/* confdefs.h. */
29254_ACEOF
29255cat confdefs.h >>conftest.$ac_ext
29256cat >>conftest.$ac_ext <<_ACEOF
29257/* end confdefs.h. */
29258#include <stdlib.h>
29259#include <iconv.h>
29260int
29261main ()
29262{
29263iconv_t cd = iconv_open("","");
29264 iconv(cd,NULL,NULL,NULL,NULL);
29265 iconv_close(cd);
29266 ;
29267 return 0;
29268}
29269_ACEOF
29270rm -f conftest.$ac_objext conftest$ac_exeext
29271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29272 (eval $ac_link) 2>conftest.er1
a848cd7e 29273 ac_status=$?
ac1cb8d3
VS
29274 grep -v '^ *+' conftest.er1 >conftest.err
29275 rm -f conftest.er1
29276 cat conftest.err >&5
a848cd7e
SC
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); } &&
ea7db9ff
DE
29279 { ac_try='test -z "$ac_cxx_werror_flag"
29280 || test ! -s conftest.err'
ac1cb8d3
VS
29281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282 (eval $ac_try) 2>&5
29283 ac_status=$?
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; } &&
29286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29288 (eval $ac_try) 2>&5
29289 ac_status=$?
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); }; }; then
29292 am_cv_func_iconv=yes
29293else
29294 echo "$as_me: failed program was:" >&5
29295sed 's/^/| /' conftest.$ac_ext >&5
29296
29297fi
ac1cb8d3
VS
29298rm -f conftest.err conftest.$ac_objext \
29299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29300 if test "$am_cv_func_iconv" != yes; then
29301 am_save_LIBS="$LIBS"
29302 LIBS="$LIBS -liconv"
29303 cat >conftest.$ac_ext <<_ACEOF
29304/* confdefs.h. */
29305_ACEOF
29306cat confdefs.h >>conftest.$ac_ext
29307cat >>conftest.$ac_ext <<_ACEOF
29308/* end confdefs.h. */
29309#include <stdlib.h>
29310#include <iconv.h>
29311int
29312main ()
29313{
29314iconv_t cd = iconv_open("","");
29315 iconv(cd,NULL,NULL,NULL,NULL);
29316 iconv_close(cd);
29317 ;
29318 return 0;
29319}
29320_ACEOF
29321rm -f conftest.$ac_objext conftest$ac_exeext
29322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29323 (eval $ac_link) 2>conftest.er1
a848cd7e 29324 ac_status=$?
ac1cb8d3
VS
29325 grep -v '^ *+' conftest.er1 >conftest.err
29326 rm -f conftest.er1
29327 cat conftest.err >&5
a848cd7e
SC
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); } &&
ea7db9ff
DE
29330 { ac_try='test -z "$ac_cxx_werror_flag"
29331 || test ! -s conftest.err'
ac1cb8d3
VS
29332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333 (eval $ac_try) 2>&5
29334 ac_status=$?
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); }; } &&
29337 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29339 (eval $ac_try) 2>&5
29340 ac_status=$?
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); }; }; then
29343 am_cv_lib_iconv=yes
29344 am_cv_func_iconv=yes
29345else
29346 echo "$as_me: failed program was:" >&5
29347sed 's/^/| /' conftest.$ac_ext >&5
29348
29349fi
ac1cb8d3
VS
29350rm -f conftest.err conftest.$ac_objext \
29351 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29352 LIBS="$am_save_LIBS"
29353 fi
29354
29355fi
29356echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29357echo "${ECHO_T}$am_cv_func_iconv" >&6
29358 if test "$am_cv_func_iconv" = yes; then
29359
29360cat >>confdefs.h <<\_ACEOF
29361#define HAVE_ICONV 1
29362_ACEOF
29363
29364 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29365echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29366if test "${wx_cv_func_iconv_const+set}" = set; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29368else
29369 cat >conftest.$ac_ext <<_ACEOF
29370/* confdefs.h. */
29371_ACEOF
29372cat confdefs.h >>conftest.$ac_ext
29373cat >>conftest.$ac_ext <<_ACEOF
29374/* end confdefs.h. */
29375
29376#include <stdlib.h>
29377#include <iconv.h>
29378extern
29379#ifdef __cplusplus
29380"C"
29381#endif
29382#if defined(__STDC__) || defined(__cplusplus)
29383size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29384#else
29385size_t iconv();
29386#endif
29387
29388int
29389main ()
29390{
29391
29392 ;
29393 return 0;
29394}
29395_ACEOF
29396rm -f conftest.$ac_objext
29397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29398 (eval $ac_compile) 2>conftest.er1
a848cd7e 29399 ac_status=$?
ac1cb8d3
VS
29400 grep -v '^ *+' conftest.er1 >conftest.err
29401 rm -f conftest.er1
29402 cat conftest.err >&5
a848cd7e
SC
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); } &&
ea7db9ff
DE
29405 { ac_try='test -z "$ac_cxx_werror_flag"
29406 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
29412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414 (eval $ac_try) 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; }; then
29418 wx_cv_func_iconv_const="no"
29419else
29420 echo "$as_me: failed program was:" >&5
29421sed 's/^/| /' conftest.$ac_ext >&5
29422
29423wx_cv_func_iconv_const="yes"
29424
29425fi
ac1cb8d3 29426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29427
29428fi
29429echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29430echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29431
29432 iconv_const=
29433 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29434 iconv_const="const"
29435 fi
29436
29437
29438cat >>confdefs.h <<_ACEOF
29439#define ICONV_CONST $iconv_const
29440_ACEOF
29441
29442 fi
29443 LIBICONV=
29444 if test "$am_cv_lib_iconv" = yes; then
29445 LIBICONV="-liconv"
29446 fi
29447
29448
29449LIBS="$LIBICONV $LIBS"
29450ac_ext=c
29451ac_cpp='$CPP $CPPFLAGS'
29452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454ac_compiler_gnu=$ac_cv_c_compiler_gnu
29455
29456
29457if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29458
29459for ac_func in sigaction
29460do
29461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29462echo "$as_me:$LINENO: checking for $ac_func" >&5
29463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29464if eval "test \"\${$as_ac_var+set}\" = set"; then
29465 echo $ECHO_N "(cached) $ECHO_C" >&6
29466else
29467 cat >conftest.$ac_ext <<_ACEOF
29468/* confdefs.h. */
29469_ACEOF
29470cat confdefs.h >>conftest.$ac_ext
29471cat >>conftest.$ac_ext <<_ACEOF
29472/* end confdefs.h. */
ac1cb8d3
VS
29473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29475#define $ac_func innocuous_$ac_func
29476
a848cd7e
SC
29477/* System header to define __stub macros and hopefully few prototypes,
29478 which can conflict with char $ac_func (); below.
29479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29480 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29481
a848cd7e
SC
29482#ifdef __STDC__
29483# include <limits.h>
29484#else
29485# include <assert.h>
29486#endif
ac1cb8d3
VS
29487
29488#undef $ac_func
29489
a848cd7e
SC
29490/* Override any gcc2 internal prototype to avoid an error. */
29491#ifdef __cplusplus
29492extern "C"
29493{
29494#endif
29495/* We use char because int might match the return type of a gcc2
29496 builtin and then its argument prototype would still apply. */
29497char $ac_func ();
29498/* The GNU C library defines this for functions which it implements
29499 to always fail with ENOSYS. Some functions are actually named
29500 something starting with __ and the normal name is an alias. */
29501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29502choke me
29503#else
29504char (*f) () = $ac_func;
29505#endif
29506#ifdef __cplusplus
29507}
29508#endif
29509
29510int
29511main ()
29512{
29513return f != $ac_func;
29514 ;
29515 return 0;
29516}
29517_ACEOF
29518rm -f conftest.$ac_objext conftest$ac_exeext
29519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29520 (eval $ac_link) 2>conftest.er1
a848cd7e 29521 ac_status=$?
ac1cb8d3
VS
29522 grep -v '^ *+' conftest.er1 >conftest.err
29523 rm -f conftest.er1
29524 cat conftest.err >&5
a848cd7e
SC
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); } &&
ea7db9ff
DE
29527 { ac_try='test -z "$ac_c_werror_flag"
29528 || test ! -s conftest.err'
ac1cb8d3
VS
29529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29530 (eval $ac_try) 2>&5
29531 ac_status=$?
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); }; } &&
29534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536 (eval $ac_try) 2>&5
29537 ac_status=$?
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); }; }; then
29540 eval "$as_ac_var=yes"
29541else
29542 echo "$as_me: failed program was:" >&5
29543sed 's/^/| /' conftest.$ac_ext >&5
29544
29545eval "$as_ac_var=no"
29546fi
ac1cb8d3
VS
29547rm -f conftest.err conftest.$ac_objext \
29548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29549fi
29550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29552if test `eval echo '${'$as_ac_var'}'` = yes; then
29553 cat >>confdefs.h <<_ACEOF
29554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29555_ACEOF
29556
29557fi
29558done
29559
29560
29561 if test "$ac_cv_func_sigaction" = "no"; then
29562 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29563echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29564 wxUSE_ON_FATAL_EXCEPTION=no
29565 fi
29566
29567 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29568
29569
29570 ac_ext=cc
29571ac_cpp='$CXXCPP $CPPFLAGS'
29572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29575
29576
29577 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29578echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29579if test "${wx_cv_type_sa_handler+set}" = set; then
29580 echo $ECHO_N "(cached) $ECHO_C" >&6
29581else
29582
29583 cat >conftest.$ac_ext <<_ACEOF
29584/* confdefs.h. */
29585_ACEOF
29586cat confdefs.h >>conftest.$ac_ext
29587cat >>conftest.$ac_ext <<_ACEOF
29588/* end confdefs.h. */
29589#include <signal.h>
29590int
29591main ()
29592{
29593
29594 extern void testSigHandler(int);
29595
29596 struct sigaction sa;
29597 sa.sa_handler = testSigHandler;
29598
29599 ;
29600 return 0;
29601}
29602_ACEOF
29603rm -f conftest.$ac_objext
29604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29605 (eval $ac_compile) 2>conftest.er1
a848cd7e 29606 ac_status=$?
ac1cb8d3
VS
29607 grep -v '^ *+' conftest.er1 >conftest.err
29608 rm -f conftest.er1
29609 cat conftest.err >&5
a848cd7e
SC
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } &&
ea7db9ff
DE
29612 { ac_try='test -z "$ac_cxx_werror_flag"
29613 || test ! -s conftest.err'
ac1cb8d3
VS
29614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615 (eval $ac_try) 2>&5
29616 ac_status=$?
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; } &&
29619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625
29626 wx_cv_type_sa_handler=int
29627
29628else
29629 echo "$as_me: failed program was:" >&5
29630sed 's/^/| /' conftest.$ac_ext >&5
29631
29632
29633 wx_cv_type_sa_handler=void
29634
29635fi
ac1cb8d3 29636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29637
29638fi
29639echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29640echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29641
29642 ac_ext=c
29643ac_cpp='$CPP $CPPFLAGS'
29644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29646ac_compiler_gnu=$ac_cv_c_compiler_gnu
29647
29648
29649 cat >>confdefs.h <<_ACEOF
29650#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29651_ACEOF
29652
29653 fi
29654fi
29655
29656
29657
29658for ac_func in mkstemp mktemp
29659do
29660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29661echo "$as_me:$LINENO: checking for $ac_func" >&5
29662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29663if eval "test \"\${$as_ac_var+set}\" = set"; then
29664 echo $ECHO_N "(cached) $ECHO_C" >&6
29665else
29666 cat >conftest.$ac_ext <<_ACEOF
29667/* confdefs.h. */
29668_ACEOF
29669cat confdefs.h >>conftest.$ac_ext
29670cat >>conftest.$ac_ext <<_ACEOF
29671/* end confdefs.h. */
ac1cb8d3
VS
29672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29674#define $ac_func innocuous_$ac_func
29675
a848cd7e
SC
29676/* System header to define __stub macros and hopefully few prototypes,
29677 which can conflict with char $ac_func (); below.
29678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29679 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29680
a848cd7e
SC
29681#ifdef __STDC__
29682# include <limits.h>
29683#else
29684# include <assert.h>
29685#endif
ac1cb8d3
VS
29686
29687#undef $ac_func
29688
a848cd7e
SC
29689/* Override any gcc2 internal prototype to avoid an error. */
29690#ifdef __cplusplus
29691extern "C"
29692{
29693#endif
29694/* We use char because int might match the return type of a gcc2
29695 builtin and then its argument prototype would still apply. */
29696char $ac_func ();
29697/* The GNU C library defines this for functions which it implements
29698 to always fail with ENOSYS. Some functions are actually named
29699 something starting with __ and the normal name is an alias. */
29700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29701choke me
29702#else
29703char (*f) () = $ac_func;
29704#endif
29705#ifdef __cplusplus
29706}
29707#endif
29708
29709int
29710main ()
29711{
29712return f != $ac_func;
29713 ;
29714 return 0;
29715}
29716_ACEOF
29717rm -f conftest.$ac_objext conftest$ac_exeext
29718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29719 (eval $ac_link) 2>conftest.er1
a848cd7e 29720 ac_status=$?
ac1cb8d3
VS
29721 grep -v '^ *+' conftest.er1 >conftest.err
29722 rm -f conftest.er1
29723 cat conftest.err >&5
a848cd7e
SC
29724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725 (exit $ac_status); } &&
ea7db9ff
DE
29726 { ac_try='test -z "$ac_c_werror_flag"
29727 || test ! -s conftest.err'
ac1cb8d3
VS
29728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29729 (eval $ac_try) 2>&5
29730 ac_status=$?
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; } &&
29733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29735 (eval $ac_try) 2>&5
29736 ac_status=$?
29737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738 (exit $ac_status); }; }; then
29739 eval "$as_ac_var=yes"
29740else
29741 echo "$as_me: failed program was:" >&5
29742sed 's/^/| /' conftest.$ac_ext >&5
29743
29744eval "$as_ac_var=no"
29745fi
ac1cb8d3
VS
29746rm -f conftest.err conftest.$ac_objext \
29747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29748fi
29749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29750echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29751if test `eval echo '${'$as_ac_var'}'` = yes; then
29752 cat >>confdefs.h <<_ACEOF
29753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29754_ACEOF
29755 break
29756fi
29757done
29758
29759
29760echo "$as_me:$LINENO: checking for statfs" >&5
29761echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29762if test "${wx_cv_func_statfs+set}" = set; then
29763 echo $ECHO_N "(cached) $ECHO_C" >&6
29764else
29765 cat >conftest.$ac_ext <<_ACEOF
29766/* confdefs.h. */
29767_ACEOF
29768cat confdefs.h >>conftest.$ac_ext
29769cat >>conftest.$ac_ext <<_ACEOF
29770/* end confdefs.h. */
29771
29772 #if defined(__BSD__)
29773 #include <sys/param.h>
29774 #include <sys/mount.h>
29775 #else
29776 #include <sys/vfs.h>
29777 #endif
29778
29779int
29780main ()
29781{
29782
29783 long l;
29784 struct statfs fs;
29785 statfs("/", &fs);
29786 l = fs.f_bsize;
29787 l += fs.f_blocks;
29788 l += fs.f_bavail;
29789
29790 ;
29791 return 0;
29792}
29793_ACEOF
29794rm -f conftest.$ac_objext
29795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29796 (eval $ac_compile) 2>conftest.er1
a848cd7e 29797 ac_status=$?
ac1cb8d3
VS
29798 grep -v '^ *+' conftest.er1 >conftest.err
29799 rm -f conftest.er1
29800 cat conftest.err >&5
a848cd7e
SC
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); } &&
ea7db9ff
DE
29803 { ac_try='test -z "$ac_c_werror_flag"
29804 || test ! -s conftest.err'
ac1cb8d3
VS
29805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29806 (eval $ac_try) 2>&5
29807 ac_status=$?
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); }; } &&
29810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29812 (eval $ac_try) 2>&5
29813 ac_status=$?
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); }; }; then
29816
29817 wx_cv_func_statfs=yes
29818
29819else
29820 echo "$as_me: failed program was:" >&5
29821sed 's/^/| /' conftest.$ac_ext >&5
29822
29823
29824 wx_cv_func_statfs=no
29825
29826
29827fi
ac1cb8d3 29828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29829
29830fi
29831echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29832echo "${ECHO_T}$wx_cv_func_statfs" >&6
29833
29834if test "$wx_cv_func_statfs" = "yes"; then
29835 wx_cv_type_statvfs_t="struct statfs"
29836 cat >>confdefs.h <<\_ACEOF
29837#define HAVE_STATFS 1
29838_ACEOF
29839
29840else
29841 echo "$as_me:$LINENO: checking for statvfs" >&5
29842echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29843if test "${wx_cv_func_statvfs+set}" = set; then
29844 echo $ECHO_N "(cached) $ECHO_C" >&6
29845else
29846 cat >conftest.$ac_ext <<_ACEOF
29847/* confdefs.h. */
29848_ACEOF
29849cat confdefs.h >>conftest.$ac_ext
29850cat >>conftest.$ac_ext <<_ACEOF
29851/* end confdefs.h. */
29852
29853 #include <stddef.h>
29854 #include <sys/statvfs.h>
29855
29856int
29857main ()
29858{
29859
29860 statvfs("/", NULL);
29861
29862 ;
29863 return 0;
29864}
29865_ACEOF
29866rm -f conftest.$ac_objext
29867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29868 (eval $ac_compile) 2>conftest.er1
a848cd7e 29869 ac_status=$?
ac1cb8d3
VS
29870 grep -v '^ *+' conftest.er1 >conftest.err
29871 rm -f conftest.er1
29872 cat conftest.err >&5
a848cd7e
SC
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); } &&
ea7db9ff
DE
29875 { ac_try='test -z "$ac_c_werror_flag"
29876 || test ! -s conftest.err'
ac1cb8d3
VS
29877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878 (eval $ac_try) 2>&5
29879 ac_status=$?
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); }; } &&
29882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29884 (eval $ac_try) 2>&5
29885 ac_status=$?
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); }; }; then
29888 wx_cv_func_statvfs=yes
29889else
29890 echo "$as_me: failed program was:" >&5
29891sed 's/^/| /' conftest.$ac_ext >&5
29892
29893wx_cv_func_statvfs=no
29894
29895fi
ac1cb8d3 29896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29897
29898fi
29899echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29900echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29901
29902 if test "$wx_cv_func_statvfs" = "yes"; then
29903
29904
29905 ac_ext=cc
29906ac_cpp='$CXXCPP $CPPFLAGS'
29907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29910
29911
29912 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29913echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29914if test "${wx_cv_type_statvfs_t+set}" = set; then
29915 echo $ECHO_N "(cached) $ECHO_C" >&6
29916else
29917 cat >conftest.$ac_ext <<_ACEOF
29918/* confdefs.h. */
29919_ACEOF
29920cat confdefs.h >>conftest.$ac_ext
29921cat >>conftest.$ac_ext <<_ACEOF
29922/* end confdefs.h. */
29923
29924 #include <sys/statvfs.h>
29925
29926int
29927main ()
29928{
29929
29930 long l;
29931 statvfs_t fs;
29932 statvfs("/", &fs);
29933 l = fs.f_bsize;
29934 l += fs.f_blocks;
29935 l += fs.f_bavail;
29936
29937 ;
29938 return 0;
29939}
29940_ACEOF
29941rm -f conftest.$ac_objext
29942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29943 (eval $ac_compile) 2>conftest.er1
a848cd7e 29944 ac_status=$?
ac1cb8d3
VS
29945 grep -v '^ *+' conftest.er1 >conftest.err
29946 rm -f conftest.er1
29947 cat conftest.err >&5
a848cd7e
SC
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); } &&
ea7db9ff
DE
29950 { ac_try='test -z "$ac_cxx_werror_flag"
29951 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
29957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29959 (eval $ac_try) 2>&5
29960 ac_status=$?
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); }; }; then
29963 wx_cv_type_statvfs_t=statvfs_t
29964else
29965 echo "$as_me: failed program was:" >&5
29966sed 's/^/| /' conftest.$ac_ext >&5
29967
29968
29969 cat >conftest.$ac_ext <<_ACEOF
29970/* confdefs.h. */
29971_ACEOF
29972cat confdefs.h >>conftest.$ac_ext
29973cat >>conftest.$ac_ext <<_ACEOF
29974/* end confdefs.h. */
29975
29976 #include <sys/statvfs.h>
29977
29978int
29979main ()
29980{
29981
29982 long l;
29983 struct statvfs fs;
29984 statvfs("/", &fs);
29985 l = fs.f_bsize;
29986 l += fs.f_blocks;
29987 l += fs.f_bavail;
29988
29989 ;
29990 return 0;
29991}
29992_ACEOF
29993rm -f conftest.$ac_objext
29994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29995 (eval $ac_compile) 2>conftest.er1
a848cd7e 29996 ac_status=$?
ac1cb8d3
VS
29997 grep -v '^ *+' conftest.er1 >conftest.err
29998 rm -f conftest.er1
29999 cat conftest.err >&5
a848cd7e
SC
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); } &&
ea7db9ff
DE
30002 { ac_try='test -z "$ac_cxx_werror_flag"
30003 || test ! -s conftest.err'
ac1cb8d3
VS
30004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005 (eval $ac_try) 2>&5
30006 ac_status=$?
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; } &&
30009 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011 (eval $ac_try) 2>&5
30012 ac_status=$?
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); }; }; then
30015 wx_cv_type_statvfs_t="struct statvfs"
30016else
30017 echo "$as_me: failed program was:" >&5
30018sed 's/^/| /' conftest.$ac_ext >&5
30019
30020wx_cv_type_statvfs_t="unknown"
30021
30022fi
ac1cb8d3 30023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30024
30025
30026fi
ac1cb8d3 30027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30028
30029fi
30030echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30031echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30032
30033 ac_ext=c
30034ac_cpp='$CPP $CPPFLAGS'
30035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30037ac_compiler_gnu=$ac_cv_c_compiler_gnu
30038
30039
30040 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30041 cat >>confdefs.h <<\_ACEOF
30042#define HAVE_STATVFS 1
30043_ACEOF
30044
30045 fi
30046 else
30047 wx_cv_type_statvfs_t="unknown"
30048 fi
30049fi
30050
30051if test "$wx_cv_type_statvfs_t" != "unknown"; then
30052 cat >>confdefs.h <<_ACEOF
30053#define WX_STATFS_T $wx_cv_type_statvfs_t
30054_ACEOF
30055
30056else
30057 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30058echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30059fi
30060
30061if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30062
30063
30064for ac_func in fcntl flock
30065do
30066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30067echo "$as_me:$LINENO: checking for $ac_func" >&5
30068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30069if eval "test \"\${$as_ac_var+set}\" = set"; then
30070 echo $ECHO_N "(cached) $ECHO_C" >&6
30071else
30072 cat >conftest.$ac_ext <<_ACEOF
30073/* confdefs.h. */
30074_ACEOF
30075cat confdefs.h >>conftest.$ac_ext
30076cat >>conftest.$ac_ext <<_ACEOF
30077/* end confdefs.h. */
ac1cb8d3
VS
30078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30080#define $ac_func innocuous_$ac_func
30081
a848cd7e
SC
30082/* System header to define __stub macros and hopefully few prototypes,
30083 which can conflict with char $ac_func (); below.
30084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30085 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30086
a848cd7e
SC
30087#ifdef __STDC__
30088# include <limits.h>
30089#else
30090# include <assert.h>
30091#endif
ac1cb8d3
VS
30092
30093#undef $ac_func
30094
a848cd7e
SC
30095/* Override any gcc2 internal prototype to avoid an error. */
30096#ifdef __cplusplus
30097extern "C"
30098{
30099#endif
30100/* We use char because int might match the return type of a gcc2
30101 builtin and then its argument prototype would still apply. */
30102char $ac_func ();
30103/* The GNU C library defines this for functions which it implements
30104 to always fail with ENOSYS. Some functions are actually named
30105 something starting with __ and the normal name is an alias. */
30106#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30107choke me
30108#else
30109char (*f) () = $ac_func;
30110#endif
30111#ifdef __cplusplus
30112}
30113#endif
30114
30115int
30116main ()
30117{
30118return f != $ac_func;
30119 ;
30120 return 0;
30121}
30122_ACEOF
30123rm -f conftest.$ac_objext conftest$ac_exeext
30124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30125 (eval $ac_link) 2>conftest.er1
a848cd7e 30126 ac_status=$?
ac1cb8d3
VS
30127 grep -v '^ *+' conftest.er1 >conftest.err
30128 rm -f conftest.er1
30129 cat conftest.err >&5
a848cd7e
SC
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); } &&
ea7db9ff
DE
30132 { ac_try='test -z "$ac_c_werror_flag"
30133 || test ! -s conftest.err'
ac1cb8d3
VS
30134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30135 (eval $ac_try) 2>&5
30136 ac_status=$?
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; } &&
30139 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141 (eval $ac_try) 2>&5
30142 ac_status=$?
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); }; }; then
30145 eval "$as_ac_var=yes"
30146else
30147 echo "$as_me: failed program was:" >&5
30148sed 's/^/| /' conftest.$ac_ext >&5
30149
30150eval "$as_ac_var=no"
30151fi
ac1cb8d3
VS
30152rm -f conftest.err conftest.$ac_objext \
30153 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30154fi
30155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30156echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30157if test `eval echo '${'$as_ac_var'}'` = yes; then
30158 cat >>confdefs.h <<_ACEOF
30159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30160_ACEOF
30161 break
30162fi
30163done
30164
30165
30166 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30167 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30168echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30169 wxUSE_SNGLINST_CHECKER=no
30170 fi
30171fi
30172
30173
30174for ac_func in timegm
30175do
30176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30177echo "$as_me:$LINENO: checking for $ac_func" >&5
30178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30179if eval "test \"\${$as_ac_var+set}\" = set"; then
30180 echo $ECHO_N "(cached) $ECHO_C" >&6
30181else
30182 cat >conftest.$ac_ext <<_ACEOF
30183/* confdefs.h. */
30184_ACEOF
30185cat confdefs.h >>conftest.$ac_ext
30186cat >>conftest.$ac_ext <<_ACEOF
30187/* end confdefs.h. */
ac1cb8d3
VS
30188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30190#define $ac_func innocuous_$ac_func
30191
a848cd7e
SC
30192/* System header to define __stub macros and hopefully few prototypes,
30193 which can conflict with char $ac_func (); below.
30194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30195 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30196
a848cd7e
SC
30197#ifdef __STDC__
30198# include <limits.h>
30199#else
30200# include <assert.h>
30201#endif
ac1cb8d3
VS
30202
30203#undef $ac_func
30204
a848cd7e
SC
30205/* Override any gcc2 internal prototype to avoid an error. */
30206#ifdef __cplusplus
30207extern "C"
30208{
30209#endif
30210/* We use char because int might match the return type of a gcc2
30211 builtin and then its argument prototype would still apply. */
30212char $ac_func ();
30213/* The GNU C library defines this for functions which it implements
30214 to always fail with ENOSYS. Some functions are actually named
30215 something starting with __ and the normal name is an alias. */
30216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30217choke me
30218#else
30219char (*f) () = $ac_func;
30220#endif
30221#ifdef __cplusplus
30222}
30223#endif
30224
30225int
30226main ()
30227{
30228return f != $ac_func;
30229 ;
30230 return 0;
30231}
30232_ACEOF
30233rm -f conftest.$ac_objext conftest$ac_exeext
30234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30235 (eval $ac_link) 2>conftest.er1
a848cd7e 30236 ac_status=$?
ac1cb8d3
VS
30237 grep -v '^ *+' conftest.er1 >conftest.err
30238 rm -f conftest.er1
30239 cat conftest.err >&5
a848cd7e
SC
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); } &&
ea7db9ff
DE
30242 { ac_try='test -z "$ac_c_werror_flag"
30243 || test ! -s conftest.err'
ac1cb8d3
VS
30244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30245 (eval $ac_try) 2>&5
30246 ac_status=$?
30247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248 (exit $ac_status); }; } &&
30249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30251 (eval $ac_try) 2>&5
30252 ac_status=$?
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; }; then
30255 eval "$as_ac_var=yes"
30256else
30257 echo "$as_me: failed program was:" >&5
30258sed 's/^/| /' conftest.$ac_ext >&5
30259
30260eval "$as_ac_var=no"
30261fi
ac1cb8d3
VS
30262rm -f conftest.err conftest.$ac_objext \
30263 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30264fi
30265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30267if test `eval echo '${'$as_ac_var'}'` = yes; then
30268 cat >>confdefs.h <<_ACEOF
30269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30270_ACEOF
30271
30272fi
30273done
30274
30275
30276
30277
30278for ac_func in putenv setenv
30279do
30280as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30281echo "$as_me:$LINENO: checking for $ac_func" >&5
30282echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30283if eval "test \"\${$as_ac_var+set}\" = set"; then
30284 echo $ECHO_N "(cached) $ECHO_C" >&6
30285else
30286 cat >conftest.$ac_ext <<_ACEOF
30287/* confdefs.h. */
30288_ACEOF
30289cat confdefs.h >>conftest.$ac_ext
30290cat >>conftest.$ac_ext <<_ACEOF
30291/* end confdefs.h. */
ac1cb8d3
VS
30292/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30294#define $ac_func innocuous_$ac_func
30295
a848cd7e
SC
30296/* System header to define __stub macros and hopefully few prototypes,
30297 which can conflict with char $ac_func (); below.
30298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30299 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30300
a848cd7e
SC
30301#ifdef __STDC__
30302# include <limits.h>
30303#else
30304# include <assert.h>
30305#endif
ac1cb8d3
VS
30306
30307#undef $ac_func
30308
a848cd7e
SC
30309/* Override any gcc2 internal prototype to avoid an error. */
30310#ifdef __cplusplus
30311extern "C"
30312{
30313#endif
30314/* We use char because int might match the return type of a gcc2
30315 builtin and then its argument prototype would still apply. */
30316char $ac_func ();
30317/* The GNU C library defines this for functions which it implements
30318 to always fail with ENOSYS. Some functions are actually named
30319 something starting with __ and the normal name is an alias. */
30320#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30321choke me
30322#else
30323char (*f) () = $ac_func;
30324#endif
30325#ifdef __cplusplus
30326}
30327#endif
30328
30329int
30330main ()
30331{
30332return f != $ac_func;
30333 ;
30334 return 0;
30335}
30336_ACEOF
30337rm -f conftest.$ac_objext conftest$ac_exeext
30338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30339 (eval $ac_link) 2>conftest.er1
a848cd7e 30340 ac_status=$?
ac1cb8d3
VS
30341 grep -v '^ *+' conftest.er1 >conftest.err
30342 rm -f conftest.er1
30343 cat conftest.err >&5
a848cd7e
SC
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); } &&
ea7db9ff
DE
30346 { ac_try='test -z "$ac_c_werror_flag"
30347 || test ! -s conftest.err'
ac1cb8d3
VS
30348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349 (eval $ac_try) 2>&5
30350 ac_status=$?
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); }; } &&
30353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
30356 ac_status=$?
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; }; then
30359 eval "$as_ac_var=yes"
30360else
30361 echo "$as_me: failed program was:" >&5
30362sed 's/^/| /' conftest.$ac_ext >&5
30363
30364eval "$as_ac_var=no"
30365fi
ac1cb8d3
VS
30366rm -f conftest.err conftest.$ac_objext \
30367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30368fi
30369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30370echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30371if test `eval echo '${'$as_ac_var'}'` = yes; then
30372 cat >>confdefs.h <<_ACEOF
30373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30374_ACEOF
30375 break
30376fi
30377done
30378
30379
30380HAVE_SOME_SLEEP_FUNC=0
30381if test "$USE_BEOS" = 1; then
30382 cat >>confdefs.h <<\_ACEOF
30383#define HAVE_SLEEP 1
30384_ACEOF
30385
30386 HAVE_SOME_SLEEP_FUNC=1
30387fi
30388
30389if test "$USE_DARWIN" = 1; then
30390 cat >>confdefs.h <<\_ACEOF
30391#define HAVE_USLEEP 1
30392_ACEOF
30393
30394 HAVE_SOME_SLEEP_FUNC=1
30395fi
30396
30397if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30398 POSIX4_LINK=
30399
30400for ac_func in nanosleep
30401do
30402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30403echo "$as_me:$LINENO: checking for $ac_func" >&5
30404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30405if eval "test \"\${$as_ac_var+set}\" = set"; then
30406 echo $ECHO_N "(cached) $ECHO_C" >&6
30407else
30408 cat >conftest.$ac_ext <<_ACEOF
30409/* confdefs.h. */
30410_ACEOF
30411cat confdefs.h >>conftest.$ac_ext
30412cat >>conftest.$ac_ext <<_ACEOF
30413/* end confdefs.h. */
ac1cb8d3
VS
30414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30416#define $ac_func innocuous_$ac_func
30417
a848cd7e
SC
30418/* System header to define __stub macros and hopefully few prototypes,
30419 which can conflict with char $ac_func (); below.
30420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30421 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30422
a848cd7e
SC
30423#ifdef __STDC__
30424# include <limits.h>
30425#else
30426# include <assert.h>
30427#endif
ac1cb8d3
VS
30428
30429#undef $ac_func
30430
a848cd7e
SC
30431/* Override any gcc2 internal prototype to avoid an error. */
30432#ifdef __cplusplus
30433extern "C"
30434{
30435#endif
30436/* We use char because int might match the return type of a gcc2
30437 builtin and then its argument prototype would still apply. */
30438char $ac_func ();
30439/* The GNU C library defines this for functions which it implements
30440 to always fail with ENOSYS. Some functions are actually named
30441 something starting with __ and the normal name is an alias. */
30442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30443choke me
30444#else
30445char (*f) () = $ac_func;
30446#endif
30447#ifdef __cplusplus
30448}
30449#endif
30450
30451int
30452main ()
30453{
30454return f != $ac_func;
30455 ;
30456 return 0;
30457}
30458_ACEOF
30459rm -f conftest.$ac_objext conftest$ac_exeext
30460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30461 (eval $ac_link) 2>conftest.er1
a848cd7e 30462 ac_status=$?
ac1cb8d3
VS
30463 grep -v '^ *+' conftest.er1 >conftest.err
30464 rm -f conftest.er1
30465 cat conftest.err >&5
a848cd7e
SC
30466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467 (exit $ac_status); } &&
ea7db9ff
DE
30468 { ac_try='test -z "$ac_c_werror_flag"
30469 || test ! -s conftest.err'
ac1cb8d3
VS
30470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30471 (eval $ac_try) 2>&5
30472 ac_status=$?
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); }; } &&
30475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30477 (eval $ac_try) 2>&5
30478 ac_status=$?
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; }; then
30481 eval "$as_ac_var=yes"
30482else
30483 echo "$as_me: failed program was:" >&5
30484sed 's/^/| /' conftest.$ac_ext >&5
30485
30486eval "$as_ac_var=no"
30487fi
ac1cb8d3
VS
30488rm -f conftest.err conftest.$ac_objext \
30489 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30490fi
30491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30493if test `eval echo '${'$as_ac_var'}'` = yes; then
30494 cat >>confdefs.h <<_ACEOF
30495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30496_ACEOF
30497 cat >>confdefs.h <<\_ACEOF
30498#define HAVE_NANOSLEEP 1
30499_ACEOF
30500
30501else
30502
30503 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30504echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30505if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
30507else
30508 ac_check_lib_save_LIBS=$LIBS
30509LIBS="-lposix4 $LIBS"
30510cat >conftest.$ac_ext <<_ACEOF
30511/* confdefs.h. */
30512_ACEOF
30513cat confdefs.h >>conftest.$ac_ext
30514cat >>conftest.$ac_ext <<_ACEOF
30515/* end confdefs.h. */
30516
30517/* Override any gcc2 internal prototype to avoid an error. */
30518#ifdef __cplusplus
30519extern "C"
30520#endif
30521/* We use char because int might match the return type of a gcc2
30522 builtin and then its argument prototype would still apply. */
30523char nanosleep ();
30524int
30525main ()
30526{
30527nanosleep ();
30528 ;
30529 return 0;
30530}
30531_ACEOF
30532rm -f conftest.$ac_objext conftest$ac_exeext
30533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30534 (eval $ac_link) 2>conftest.er1
a848cd7e 30535 ac_status=$?
ac1cb8d3
VS
30536 grep -v '^ *+' conftest.er1 >conftest.err
30537 rm -f conftest.er1
30538 cat conftest.err >&5
a848cd7e
SC
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); } &&
ea7db9ff
DE
30541 { ac_try='test -z "$ac_c_werror_flag"
30542 || test ! -s conftest.err'
ac1cb8d3
VS
30543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544 (eval $ac_try) 2>&5
30545 ac_status=$?
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; } &&
30548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30550 (eval $ac_try) 2>&5
30551 ac_status=$?
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); }; }; then
30554 ac_cv_lib_posix4_nanosleep=yes
30555else
30556 echo "$as_me: failed program was:" >&5
30557sed 's/^/| /' conftest.$ac_ext >&5
30558
30559ac_cv_lib_posix4_nanosleep=no
30560fi
ac1cb8d3
VS
30561rm -f conftest.err conftest.$ac_objext \
30562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30563LIBS=$ac_check_lib_save_LIBS
30564fi
30565echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30566echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30567if test $ac_cv_lib_posix4_nanosleep = yes; then
30568
30569 cat >>confdefs.h <<\_ACEOF
30570#define HAVE_NANOSLEEP 1
30571_ACEOF
30572
30573 POSIX4_LINK=" -lposix4"
30574
30575else
30576
30577
30578for ac_func in usleep
30579do
30580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30581echo "$as_me:$LINENO: checking for $ac_func" >&5
30582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30583if eval "test \"\${$as_ac_var+set}\" = set"; then
30584 echo $ECHO_N "(cached) $ECHO_C" >&6
30585else
30586 cat >conftest.$ac_ext <<_ACEOF
30587/* confdefs.h. */
30588_ACEOF
30589cat confdefs.h >>conftest.$ac_ext
30590cat >>conftest.$ac_ext <<_ACEOF
30591/* end confdefs.h. */
ac1cb8d3
VS
30592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30594#define $ac_func innocuous_$ac_func
30595
a848cd7e
SC
30596/* System header to define __stub macros and hopefully few prototypes,
30597 which can conflict with char $ac_func (); below.
30598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30599 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30600
a848cd7e
SC
30601#ifdef __STDC__
30602# include <limits.h>
30603#else
30604# include <assert.h>
30605#endif
ac1cb8d3
VS
30606
30607#undef $ac_func
30608
a848cd7e
SC
30609/* Override any gcc2 internal prototype to avoid an error. */
30610#ifdef __cplusplus
30611extern "C"
30612{
30613#endif
30614/* We use char because int might match the return type of a gcc2
30615 builtin and then its argument prototype would still apply. */
30616char $ac_func ();
30617/* The GNU C library defines this for functions which it implements
30618 to always fail with ENOSYS. Some functions are actually named
30619 something starting with __ and the normal name is an alias. */
30620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30621choke me
30622#else
30623char (*f) () = $ac_func;
30624#endif
30625#ifdef __cplusplus
30626}
30627#endif
30628
30629int
30630main ()
30631{
30632return f != $ac_func;
30633 ;
30634 return 0;
30635}
30636_ACEOF
30637rm -f conftest.$ac_objext conftest$ac_exeext
30638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30639 (eval $ac_link) 2>conftest.er1
a848cd7e 30640 ac_status=$?
ac1cb8d3
VS
30641 grep -v '^ *+' conftest.er1 >conftest.err
30642 rm -f conftest.er1
30643 cat conftest.err >&5
a848cd7e
SC
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } &&
ea7db9ff
DE
30646 { ac_try='test -z "$ac_c_werror_flag"
30647 || test ! -s conftest.err'
ac1cb8d3
VS
30648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30649 (eval $ac_try) 2>&5
30650 ac_status=$?
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); }; } &&
30653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655 (eval $ac_try) 2>&5
30656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; }; then
30659 eval "$as_ac_var=yes"
30660else
30661 echo "$as_me: failed program was:" >&5
30662sed 's/^/| /' conftest.$ac_ext >&5
30663
30664eval "$as_ac_var=no"
30665fi
ac1cb8d3
VS
30666rm -f conftest.err conftest.$ac_objext \
30667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30668fi
30669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30670echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30671if test `eval echo '${'$as_ac_var'}'` = yes; then
30672 cat >>confdefs.h <<_ACEOF
30673#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30674_ACEOF
30675 cat >>confdefs.h <<\_ACEOF
30676#define HAVE_USLEEP 1
30677_ACEOF
30678
30679else
30680 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30681echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30682
30683fi
30684done
30685
30686
30687
30688fi
30689
30690
30691
30692fi
30693done
30694
30695fi
30696
30697
30698
30699for ac_func in uname gethostname
30700do
30701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30702echo "$as_me:$LINENO: checking for $ac_func" >&5
30703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30704if eval "test \"\${$as_ac_var+set}\" = set"; then
30705 echo $ECHO_N "(cached) $ECHO_C" >&6
30706else
30707 cat >conftest.$ac_ext <<_ACEOF
30708/* confdefs.h. */
30709_ACEOF
30710cat confdefs.h >>conftest.$ac_ext
30711cat >>conftest.$ac_ext <<_ACEOF
30712/* end confdefs.h. */
ac1cb8d3
VS
30713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30715#define $ac_func innocuous_$ac_func
30716
a848cd7e
SC
30717/* System header to define __stub macros and hopefully few prototypes,
30718 which can conflict with char $ac_func (); below.
30719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30720 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30721
a848cd7e
SC
30722#ifdef __STDC__
30723# include <limits.h>
30724#else
30725# include <assert.h>
30726#endif
ac1cb8d3
VS
30727
30728#undef $ac_func
30729
a848cd7e
SC
30730/* Override any gcc2 internal prototype to avoid an error. */
30731#ifdef __cplusplus
30732extern "C"
30733{
30734#endif
30735/* We use char because int might match the return type of a gcc2
30736 builtin and then its argument prototype would still apply. */
30737char $ac_func ();
30738/* The GNU C library defines this for functions which it implements
30739 to always fail with ENOSYS. Some functions are actually named
30740 something starting with __ and the normal name is an alias. */
30741#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30742choke me
30743#else
30744char (*f) () = $ac_func;
30745#endif
30746#ifdef __cplusplus
30747}
30748#endif
30749
30750int
30751main ()
30752{
30753return f != $ac_func;
30754 ;
30755 return 0;
30756}
30757_ACEOF
30758rm -f conftest.$ac_objext conftest$ac_exeext
30759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30760 (eval $ac_link) 2>conftest.er1
a848cd7e 30761 ac_status=$?
ac1cb8d3
VS
30762 grep -v '^ *+' conftest.er1 >conftest.err
30763 rm -f conftest.er1
30764 cat conftest.err >&5
a848cd7e
SC
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); } &&
ea7db9ff
DE
30767 { ac_try='test -z "$ac_c_werror_flag"
30768 || test ! -s conftest.err'
ac1cb8d3
VS
30769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770 (eval $ac_try) 2>&5
30771 ac_status=$?
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); }; } &&
30774 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30776 (eval $ac_try) 2>&5
30777 ac_status=$?
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); }; }; then
30780 eval "$as_ac_var=yes"
30781else
30782 echo "$as_me: failed program was:" >&5
30783sed 's/^/| /' conftest.$ac_ext >&5
30784
30785eval "$as_ac_var=no"
30786fi
ac1cb8d3
VS
30787rm -f conftest.err conftest.$ac_objext \
30788 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30789fi
30790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30791echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30792if test `eval echo '${'$as_ac_var'}'` = yes; then
30793 cat >>confdefs.h <<_ACEOF
30794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30795_ACEOF
30796 break
30797fi
30798done
30799
30800
30801
30802
30803ac_ext=cc
30804ac_cpp='$CXXCPP $CPPFLAGS'
30805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30808
30809
30810
30811for ac_func in strtok_r
30812do
30813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30814echo "$as_me:$LINENO: checking for $ac_func" >&5
30815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30816if eval "test \"\${$as_ac_var+set}\" = set"; then
30817 echo $ECHO_N "(cached) $ECHO_C" >&6
30818else
30819 cat >conftest.$ac_ext <<_ACEOF
30820/* confdefs.h. */
30821_ACEOF
30822cat confdefs.h >>conftest.$ac_ext
30823cat >>conftest.$ac_ext <<_ACEOF
30824/* end confdefs.h. */
ac1cb8d3
VS
30825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30827#define $ac_func innocuous_$ac_func
30828
a848cd7e
SC
30829/* System header to define __stub macros and hopefully few prototypes,
30830 which can conflict with char $ac_func (); below.
30831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30832 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30833
a848cd7e
SC
30834#ifdef __STDC__
30835# include <limits.h>
30836#else
30837# include <assert.h>
30838#endif
ac1cb8d3
VS
30839
30840#undef $ac_func
30841
a848cd7e
SC
30842/* Override any gcc2 internal prototype to avoid an error. */
30843#ifdef __cplusplus
30844extern "C"
30845{
30846#endif
30847/* We use char because int might match the return type of a gcc2
30848 builtin and then its argument prototype would still apply. */
30849char $ac_func ();
30850/* The GNU C library defines this for functions which it implements
30851 to always fail with ENOSYS. Some functions are actually named
30852 something starting with __ and the normal name is an alias. */
30853#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30854choke me
30855#else
30856char (*f) () = $ac_func;
30857#endif
30858#ifdef __cplusplus
30859}
30860#endif
30861
30862int
30863main ()
30864{
30865return f != $ac_func;
30866 ;
30867 return 0;
30868}
30869_ACEOF
30870rm -f conftest.$ac_objext conftest$ac_exeext
30871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30872 (eval $ac_link) 2>conftest.er1
a848cd7e 30873 ac_status=$?
ac1cb8d3
VS
30874 grep -v '^ *+' conftest.er1 >conftest.err
30875 rm -f conftest.er1
30876 cat conftest.err >&5
a848cd7e
SC
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); } &&
ea7db9ff
DE
30879 { ac_try='test -z "$ac_cxx_werror_flag"
30880 || test ! -s conftest.err'
ac1cb8d3
VS
30881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882 (eval $ac_try) 2>&5
30883 ac_status=$?
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; } &&
30886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888 (eval $ac_try) 2>&5
30889 ac_status=$?
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); }; }; then
30892 eval "$as_ac_var=yes"
30893else
30894 echo "$as_me: failed program was:" >&5
30895sed 's/^/| /' conftest.$ac_ext >&5
30896
30897eval "$as_ac_var=no"
30898fi
ac1cb8d3
VS
30899rm -f conftest.err conftest.$ac_objext \
30900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30901fi
30902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30903echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30904if test `eval echo '${'$as_ac_var'}'` = yes; then
30905 cat >>confdefs.h <<_ACEOF
30906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30907_ACEOF
30908
30909fi
30910done
30911
30912
30913ac_ext=c
30914ac_cpp='$CPP $CPPFLAGS'
30915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30917ac_compiler_gnu=$ac_cv_c_compiler_gnu
30918
30919
30920INET_LINK=
30921
30922for ac_func in inet_addr
30923do
30924as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30925echo "$as_me:$LINENO: checking for $ac_func" >&5
30926echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30927if eval "test \"\${$as_ac_var+set}\" = set"; then
30928 echo $ECHO_N "(cached) $ECHO_C" >&6
30929else
30930 cat >conftest.$ac_ext <<_ACEOF
30931/* confdefs.h. */
30932_ACEOF
30933cat confdefs.h >>conftest.$ac_ext
30934cat >>conftest.$ac_ext <<_ACEOF
30935/* end confdefs.h. */
ac1cb8d3
VS
30936/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30938#define $ac_func innocuous_$ac_func
30939
a848cd7e
SC
30940/* System header to define __stub macros and hopefully few prototypes,
30941 which can conflict with char $ac_func (); below.
30942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30943 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30944
a848cd7e
SC
30945#ifdef __STDC__
30946# include <limits.h>
30947#else
30948# include <assert.h>
30949#endif
ac1cb8d3
VS
30950
30951#undef $ac_func
30952
a848cd7e
SC
30953/* Override any gcc2 internal prototype to avoid an error. */
30954#ifdef __cplusplus
30955extern "C"
30956{
30957#endif
30958/* We use char because int might match the return type of a gcc2
30959 builtin and then its argument prototype would still apply. */
30960char $ac_func ();
30961/* The GNU C library defines this for functions which it implements
30962 to always fail with ENOSYS. Some functions are actually named
30963 something starting with __ and the normal name is an alias. */
30964#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30965choke me
30966#else
30967char (*f) () = $ac_func;
30968#endif
30969#ifdef __cplusplus
30970}
30971#endif
30972
30973int
30974main ()
30975{
30976return f != $ac_func;
30977 ;
30978 return 0;
30979}
30980_ACEOF
30981rm -f conftest.$ac_objext conftest$ac_exeext
30982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30983 (eval $ac_link) 2>conftest.er1
a848cd7e 30984 ac_status=$?
ac1cb8d3
VS
30985 grep -v '^ *+' conftest.er1 >conftest.err
30986 rm -f conftest.er1
30987 cat conftest.err >&5
a848cd7e
SC
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); } &&
ea7db9ff
DE
30990 { ac_try='test -z "$ac_c_werror_flag"
30991 || test ! -s conftest.err'
ac1cb8d3
VS
30992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993 (eval $ac_try) 2>&5
30994 ac_status=$?
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; } &&
30997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999 (eval $ac_try) 2>&5
31000 ac_status=$?
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; }; then
31003 eval "$as_ac_var=yes"
31004else
31005 echo "$as_me: failed program was:" >&5
31006sed 's/^/| /' conftest.$ac_ext >&5
31007
31008eval "$as_ac_var=no"
31009fi
ac1cb8d3
VS
31010rm -f conftest.err conftest.$ac_objext \
31011 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31012fi
31013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31014echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31015if test `eval echo '${'$as_ac_var'}'` = yes; then
31016 cat >>confdefs.h <<_ACEOF
31017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31018_ACEOF
31019 cat >>confdefs.h <<\_ACEOF
31020#define HAVE_INET_ADDR 1
31021_ACEOF
31022
31023else
31024
31025 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31026echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31027if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31028 echo $ECHO_N "(cached) $ECHO_C" >&6
31029else
31030 ac_check_lib_save_LIBS=$LIBS
31031LIBS="-lnsl $LIBS"
31032cat >conftest.$ac_ext <<_ACEOF
31033/* confdefs.h. */
31034_ACEOF
31035cat confdefs.h >>conftest.$ac_ext
31036cat >>conftest.$ac_ext <<_ACEOF
31037/* end confdefs.h. */
31038
31039/* Override any gcc2 internal prototype to avoid an error. */
31040#ifdef __cplusplus
31041extern "C"
31042#endif
31043/* We use char because int might match the return type of a gcc2
31044 builtin and then its argument prototype would still apply. */
31045char inet_addr ();
31046int
31047main ()
31048{
31049inet_addr ();
31050 ;
31051 return 0;
31052}
31053_ACEOF
31054rm -f conftest.$ac_objext conftest$ac_exeext
31055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31056 (eval $ac_link) 2>conftest.er1
a848cd7e 31057 ac_status=$?
ac1cb8d3
VS
31058 grep -v '^ *+' conftest.er1 >conftest.err
31059 rm -f conftest.er1
31060 cat conftest.err >&5
a848cd7e
SC
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); } &&
ea7db9ff
DE
31063 { ac_try='test -z "$ac_c_werror_flag"
31064 || test ! -s conftest.err'
ac1cb8d3
VS
31065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31066 (eval $ac_try) 2>&5
31067 ac_status=$?
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; } &&
31070 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31072 (eval $ac_try) 2>&5
31073 ac_status=$?
31074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31075 (exit $ac_status); }; }; then
31076 ac_cv_lib_nsl_inet_addr=yes
31077else
31078 echo "$as_me: failed program was:" >&5
31079sed 's/^/| /' conftest.$ac_ext >&5
31080
31081ac_cv_lib_nsl_inet_addr=no
31082fi
ac1cb8d3
VS
31083rm -f conftest.err conftest.$ac_objext \
31084 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31085LIBS=$ac_check_lib_save_LIBS
31086fi
31087echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31088echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31089if test $ac_cv_lib_nsl_inet_addr = yes; then
31090 INET_LINK="nsl"
31091else
31092
31093 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31094echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31095if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31096 echo $ECHO_N "(cached) $ECHO_C" >&6
31097else
31098 ac_check_lib_save_LIBS=$LIBS
31099LIBS="-lresolv $LIBS"
31100cat >conftest.$ac_ext <<_ACEOF
31101/* confdefs.h. */
31102_ACEOF
31103cat confdefs.h >>conftest.$ac_ext
31104cat >>conftest.$ac_ext <<_ACEOF
31105/* end confdefs.h. */
31106
31107/* Override any gcc2 internal prototype to avoid an error. */
31108#ifdef __cplusplus
31109extern "C"
31110#endif
31111/* We use char because int might match the return type of a gcc2
31112 builtin and then its argument prototype would still apply. */
31113char inet_addr ();
31114int
31115main ()
31116{
31117inet_addr ();
31118 ;
31119 return 0;
31120}
31121_ACEOF
31122rm -f conftest.$ac_objext conftest$ac_exeext
31123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31124 (eval $ac_link) 2>conftest.er1
a848cd7e 31125 ac_status=$?
ac1cb8d3
VS
31126 grep -v '^ *+' conftest.er1 >conftest.err
31127 rm -f conftest.er1
31128 cat conftest.err >&5
a848cd7e
SC
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); } &&
ea7db9ff
DE
31131 { ac_try='test -z "$ac_c_werror_flag"
31132 || test ! -s conftest.err'
ac1cb8d3
VS
31133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31134 (eval $ac_try) 2>&5
31135 ac_status=$?
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); }; } &&
31138 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31140 (eval $ac_try) 2>&5
31141 ac_status=$?
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); }; }; then
31144 ac_cv_lib_resolv_inet_addr=yes
31145else
31146 echo "$as_me: failed program was:" >&5
31147sed 's/^/| /' conftest.$ac_ext >&5
31148
31149ac_cv_lib_resolv_inet_addr=no
31150fi
ac1cb8d3
VS
31151rm -f conftest.err conftest.$ac_objext \
31152 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31153LIBS=$ac_check_lib_save_LIBS
31154fi
31155echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31156echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31157if test $ac_cv_lib_resolv_inet_addr = yes; then
31158 INET_LINK="resolv"
31159else
31160
31161 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31162echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31163if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31164 echo $ECHO_N "(cached) $ECHO_C" >&6
31165else
31166 ac_check_lib_save_LIBS=$LIBS
31167LIBS="-lsocket $LIBS"
31168cat >conftest.$ac_ext <<_ACEOF
31169/* confdefs.h. */
31170_ACEOF
31171cat confdefs.h >>conftest.$ac_ext
31172cat >>conftest.$ac_ext <<_ACEOF
31173/* end confdefs.h. */
31174
31175/* Override any gcc2 internal prototype to avoid an error. */
31176#ifdef __cplusplus
31177extern "C"
31178#endif
31179/* We use char because int might match the return type of a gcc2
31180 builtin and then its argument prototype would still apply. */
31181char inet_addr ();
31182int
31183main ()
31184{
31185inet_addr ();
31186 ;
31187 return 0;
31188}
31189_ACEOF
31190rm -f conftest.$ac_objext conftest$ac_exeext
31191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31192 (eval $ac_link) 2>conftest.er1
a848cd7e 31193 ac_status=$?
ac1cb8d3
VS
31194 grep -v '^ *+' conftest.er1 >conftest.err
31195 rm -f conftest.er1
31196 cat conftest.err >&5
a848cd7e
SC
31197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198 (exit $ac_status); } &&
ea7db9ff
DE
31199 { ac_try='test -z "$ac_c_werror_flag"
31200 || test ! -s conftest.err'
ac1cb8d3
VS
31201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31202 (eval $ac_try) 2>&5
31203 ac_status=$?
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); }; } &&
31206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31208 (eval $ac_try) 2>&5
31209 ac_status=$?
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); }; }; then
31212 ac_cv_lib_socket_inet_addr=yes
31213else
31214 echo "$as_me: failed program was:" >&5
31215sed 's/^/| /' conftest.$ac_ext >&5
31216
31217ac_cv_lib_socket_inet_addr=no
31218fi
ac1cb8d3
VS
31219rm -f conftest.err conftest.$ac_objext \
31220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31221LIBS=$ac_check_lib_save_LIBS
31222fi
31223echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31224echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31225if test $ac_cv_lib_socket_inet_addr = yes; then
31226 INET_LINK="socket"
31227
31228fi
31229
31230
31231
31232fi
31233
31234
31235
31236fi
31237
31238
31239
31240fi
31241done
31242
31243
31244
31245for ac_func in inet_aton
31246do
31247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31248echo "$as_me:$LINENO: checking for $ac_func" >&5
31249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31250if eval "test \"\${$as_ac_var+set}\" = set"; then
31251 echo $ECHO_N "(cached) $ECHO_C" >&6
31252else
31253 cat >conftest.$ac_ext <<_ACEOF
31254/* confdefs.h. */
31255_ACEOF
31256cat confdefs.h >>conftest.$ac_ext
31257cat >>conftest.$ac_ext <<_ACEOF
31258/* end confdefs.h. */
ac1cb8d3
VS
31259/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31261#define $ac_func innocuous_$ac_func
31262
a848cd7e
SC
31263/* System header to define __stub macros and hopefully few prototypes,
31264 which can conflict with char $ac_func (); below.
31265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31266 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31267
a848cd7e
SC
31268#ifdef __STDC__
31269# include <limits.h>
31270#else
31271# include <assert.h>
31272#endif
ac1cb8d3
VS
31273
31274#undef $ac_func
31275
a848cd7e
SC
31276/* Override any gcc2 internal prototype to avoid an error. */
31277#ifdef __cplusplus
31278extern "C"
31279{
31280#endif
31281/* We use char because int might match the return type of a gcc2
31282 builtin and then its argument prototype would still apply. */
31283char $ac_func ();
31284/* The GNU C library defines this for functions which it implements
31285 to always fail with ENOSYS. Some functions are actually named
31286 something starting with __ and the normal name is an alias. */
31287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31288choke me
31289#else
31290char (*f) () = $ac_func;
31291#endif
31292#ifdef __cplusplus
31293}
31294#endif
31295
31296int
31297main ()
31298{
31299return f != $ac_func;
31300 ;
31301 return 0;
31302}
31303_ACEOF
31304rm -f conftest.$ac_objext conftest$ac_exeext
31305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31306 (eval $ac_link) 2>conftest.er1
a848cd7e 31307 ac_status=$?
ac1cb8d3
VS
31308 grep -v '^ *+' conftest.er1 >conftest.err
31309 rm -f conftest.er1
31310 cat conftest.err >&5
a848cd7e
SC
31311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312 (exit $ac_status); } &&
ea7db9ff
DE
31313 { ac_try='test -z "$ac_c_werror_flag"
31314 || test ! -s conftest.err'
ac1cb8d3
VS
31315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31316 (eval $ac_try) 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; } &&
31320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31322 (eval $ac_try) 2>&5
31323 ac_status=$?
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); }; }; then
31326 eval "$as_ac_var=yes"
31327else
31328 echo "$as_me: failed program was:" >&5
31329sed 's/^/| /' conftest.$ac_ext >&5
31330
31331eval "$as_ac_var=no"
31332fi
ac1cb8d3
VS
31333rm -f conftest.err conftest.$ac_objext \
31334 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31335fi
31336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31337echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31338if test `eval echo '${'$as_ac_var'}'` = yes; then
31339 cat >>confdefs.h <<_ACEOF
31340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31341_ACEOF
31342 cat >>confdefs.h <<\_ACEOF
31343#define HAVE_INET_ATON 1
31344_ACEOF
31345
31346else
31347
31348 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31349echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31350echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31351if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31352 echo $ECHO_N "(cached) $ECHO_C" >&6
31353else
31354 ac_check_lib_save_LIBS=$LIBS
31355LIBS="-l$INET_LINK $LIBS"
31356cat >conftest.$ac_ext <<_ACEOF
31357/* confdefs.h. */
31358_ACEOF
31359cat confdefs.h >>conftest.$ac_ext
31360cat >>conftest.$ac_ext <<_ACEOF
31361/* end confdefs.h. */
31362
31363/* Override any gcc2 internal prototype to avoid an error. */
31364#ifdef __cplusplus
31365extern "C"
31366#endif
31367/* We use char because int might match the return type of a gcc2
31368 builtin and then its argument prototype would still apply. */
31369char inet_aton ();
31370int
31371main ()
31372{
31373inet_aton ();
31374 ;
31375 return 0;
31376}
31377_ACEOF
31378rm -f conftest.$ac_objext conftest$ac_exeext
31379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31380 (eval $ac_link) 2>conftest.er1
a848cd7e 31381 ac_status=$?
ac1cb8d3
VS
31382 grep -v '^ *+' conftest.er1 >conftest.err
31383 rm -f conftest.er1
31384 cat conftest.err >&5
a848cd7e
SC
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); } &&
ea7db9ff
DE
31387 { ac_try='test -z "$ac_c_werror_flag"
31388 || test ! -s conftest.err'
ac1cb8d3
VS
31389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31390 (eval $ac_try) 2>&5
31391 ac_status=$?
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); }; } &&
31394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31396 (eval $ac_try) 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; }; then
31400 eval "$as_ac_Lib=yes"
31401else
31402 echo "$as_me: failed program was:" >&5
31403sed 's/^/| /' conftest.$ac_ext >&5
31404
31405eval "$as_ac_Lib=no"
31406fi
ac1cb8d3
VS
31407rm -f conftest.err conftest.$ac_objext \
31408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31409LIBS=$ac_check_lib_save_LIBS
31410fi
31411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31412echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31413if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31414 cat >>confdefs.h <<\_ACEOF
31415#define HAVE_INET_ATON 1
31416_ACEOF
31417
31418fi
31419
31420
31421fi
31422done
31423
31424
31425if test "x$INET_LINK" != "x"; then
31426 cat >>confdefs.h <<\_ACEOF
31427#define HAVE_INET_ADDR 1
31428_ACEOF
31429
31430 INET_LINK=" -l$INET_LINK"
31431fi
31432
31433fi
31434
31435
31436
31437EXTRALIBS_ESD=
31438echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31439echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31440if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31441 echo $ECHO_N "(cached) $ECHO_C" >&6
31442else
31443 ac_check_lib_save_LIBS=$LIBS
31444LIBS="-lesd $LIBS"
31445cat >conftest.$ac_ext <<_ACEOF
31446/* confdefs.h. */
31447_ACEOF
31448cat confdefs.h >>conftest.$ac_ext
31449cat >>conftest.$ac_ext <<_ACEOF
31450/* end confdefs.h. */
31451
31452/* Override any gcc2 internal prototype to avoid an error. */
31453#ifdef __cplusplus
31454extern "C"
31455#endif
31456/* We use char because int might match the return type of a gcc2
31457 builtin and then its argument prototype would still apply. */
31458char esd_close ();
31459int
31460main ()
31461{
31462esd_close ();
31463 ;
31464 return 0;
31465}
31466_ACEOF
31467rm -f conftest.$ac_objext conftest$ac_exeext
31468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31469 (eval $ac_link) 2>conftest.er1
a848cd7e 31470 ac_status=$?
ac1cb8d3
VS
31471 grep -v '^ *+' conftest.er1 >conftest.err
31472 rm -f conftest.er1
31473 cat conftest.err >&5
a848cd7e
SC
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); } &&
ea7db9ff
DE
31476 { ac_try='test -z "$ac_c_werror_flag"
31477 || test ! -s conftest.err'
ac1cb8d3
VS
31478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31479 (eval $ac_try) 2>&5
31480 ac_status=$?
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); }; } &&
31483 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485 (eval $ac_try) 2>&5
31486 ac_status=$?
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); }; }; then
31489 ac_cv_lib_esd_esd_close=yes
31490else
31491 echo "$as_me: failed program was:" >&5
31492sed 's/^/| /' conftest.$ac_ext >&5
31493
31494ac_cv_lib_esd_esd_close=no
31495fi
ac1cb8d3
VS
31496rm -f conftest.err conftest.$ac_objext \
31497 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31498LIBS=$ac_check_lib_save_LIBS
31499fi
31500echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31501echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31502if test $ac_cv_lib_esd_esd_close = yes; then
31503
31504
31505for ac_header in esd.h
31506do
31507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31508if eval "test \"\${$as_ac_Header+set}\" = set"; then
31509 echo "$as_me:$LINENO: checking for $ac_header" >&5
31510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31511if eval "test \"\${$as_ac_Header+set}\" = set"; then
31512 echo $ECHO_N "(cached) $ECHO_C" >&6
31513fi
31514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31516else
31517 # Is the header compilable?
31518echo "$as_me:$LINENO: checking $ac_header usability" >&5
31519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31520cat >conftest.$ac_ext <<_ACEOF
31521/* confdefs.h. */
31522_ACEOF
31523cat confdefs.h >>conftest.$ac_ext
31524cat >>conftest.$ac_ext <<_ACEOF
31525/* end confdefs.h. */
31526$ac_includes_default
31527#include <$ac_header>
31528_ACEOF
31529rm -f conftest.$ac_objext
31530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31531 (eval $ac_compile) 2>conftest.er1
a848cd7e 31532 ac_status=$?
ac1cb8d3
VS
31533 grep -v '^ *+' conftest.er1 >conftest.err
31534 rm -f conftest.er1
31535 cat conftest.err >&5
a848cd7e
SC
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); } &&
ea7db9ff
DE
31538 { ac_try='test -z "$ac_c_werror_flag"
31539 || test ! -s conftest.err'
ac1cb8d3
VS
31540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541 (eval $ac_try) 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; } &&
31545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547 (eval $ac_try) 2>&5
31548 ac_status=$?
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; }; then
31551 ac_header_compiler=yes
31552else
31553 echo "$as_me: failed program was:" >&5
31554sed 's/^/| /' conftest.$ac_ext >&5
31555
31556ac_header_compiler=no
31557fi
ac1cb8d3 31558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31560echo "${ECHO_T}$ac_header_compiler" >&6
31561
31562# Is the header present?
31563echo "$as_me:$LINENO: checking $ac_header presence" >&5
31564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31565cat >conftest.$ac_ext <<_ACEOF
31566/* confdefs.h. */
31567_ACEOF
31568cat confdefs.h >>conftest.$ac_ext
31569cat >>conftest.$ac_ext <<_ACEOF
31570/* end confdefs.h. */
31571#include <$ac_header>
31572_ACEOF
31573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31575 ac_status=$?
31576 grep -v '^ *+' conftest.er1 >conftest.err
31577 rm -f conftest.er1
31578 cat conftest.err >&5
31579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); } >/dev/null; then
31581 if test -s conftest.err; then
31582 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31584 else
31585 ac_cpp_err=
31586 fi
31587else
31588 ac_cpp_err=yes
31589fi
31590if test -z "$ac_cpp_err"; then
31591 ac_header_preproc=yes
31592else
31593 echo "$as_me: failed program was:" >&5
31594sed 's/^/| /' conftest.$ac_ext >&5
31595
31596 ac_header_preproc=no
31597fi
31598rm -f conftest.err conftest.$ac_ext
31599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31600echo "${ECHO_T}$ac_header_preproc" >&6
31601
31602# So? What about this header?
ac1cb8d3
VS
31603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31604 yes:no: )
a848cd7e
SC
31605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31609 ac_header_preproc=yes
a848cd7e 31610 ;;
ac1cb8d3 31611 no:yes:* )
a848cd7e
SC
31612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31624 (
31625 cat <<\_ASBOX
ac1cb8d3
VS
31626## ----------------------------------------- ##
31627## Report this to wx-dev@lists.wxwidgets.org ##
31628## ----------------------------------------- ##
a848cd7e
SC
31629_ASBOX
31630 ) |
31631 sed "s/^/$as_me: WARNING: /" >&2
31632 ;;
31633esac
31634echo "$as_me:$LINENO: checking for $ac_header" >&5
31635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31636if eval "test \"\${$as_ac_Header+set}\" = set"; then
31637 echo $ECHO_N "(cached) $ECHO_C" >&6
31638else
ac1cb8d3 31639 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31640fi
31641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31643
31644fi
31645if test `eval echo '${'$as_ac_Header'}'` = yes; then
31646 cat >>confdefs.h <<_ACEOF
31647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31648_ACEOF
31649
31650 EXTRALIBS_ESD="-lesd"
31651
31652fi
31653
31654done
31655
31656
31657fi
31658
31659
31660
31661echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31662echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
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#ifdef __linux__
31670 #include <linux/cdrom.h>
31671 #else
31672 /* For Solaris */
31673 #include <sys/cdio.h>
31674 #endif
31675
31676int
31677main ()
31678{
31679struct cdrom_tocentry entry, old_entry;
31680 ;
31681 return 0;
31682}
31683_ACEOF
31684rm -f conftest.$ac_objext
31685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31686 (eval $ac_compile) 2>conftest.er1
a848cd7e 31687 ac_status=$?
ac1cb8d3
VS
31688 grep -v '^ *+' conftest.er1 >conftest.err
31689 rm -f conftest.er1
31690 cat conftest.err >&5
a848cd7e
SC
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); } &&
ea7db9ff
DE
31693 { ac_try='test -z "$ac_c_werror_flag"
31694 || test ! -s conftest.err'
ac1cb8d3
VS
31695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31696 (eval $ac_try) 2>&5
31697 ac_status=$?
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); }; } &&
31700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702 (eval $ac_try) 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; }; then
31706 echo "$as_me:$LINENO: result: yes" >&5
31707echo "${ECHO_T}yes" >&6
31708 cat >>confdefs.h <<\_ACEOF
31709#define HAVE_KNOWN_CDROM_INTERFACE 1
31710_ACEOF
31711
31712else
31713 echo "$as_me: failed program was:" >&5
31714sed 's/^/| /' conftest.$ac_ext >&5
31715
31716echo "$as_me:$LINENO: result: no" >&5
31717echo "${ECHO_T}no" >&6
31718fi
ac1cb8d3 31719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31720
31721
31722cat >confcache <<\_ACEOF
31723# This file is a shell script that caches the results of configure
31724# tests run on this system so they can be shared between configure
31725# scripts and configure runs, see configure's option --config-cache.
31726# It is not useful on other systems. If it contains results you don't
31727# want to keep, you may remove or edit it.
31728#
31729# config.status only pays attention to the cache file if you give it
31730# the --recheck option to rerun configure.
31731#
31732# `ac_cv_env_foo' variables (set or unset) will be overridden when
31733# loading this file, other *unset* `ac_cv_foo' will be assigned the
31734# following values.
31735
31736_ACEOF
31737
31738# The following way of writing the cache mishandles newlines in values,
31739# but we know of no workaround that is simple, portable, and efficient.
31740# So, don't put newlines in cache variables' values.
31741# Ultrix sh set writes to stderr and can't be redirected directly,
31742# and sets the high bit in the cache file unless we assign to the vars.
31743{
31744 (set) 2>&1 |
31745 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31746 *ac_space=\ *)
31747 # `set' does not quote correctly, so add quotes (double-quote
31748 # substitution turns \\\\ into \\, and sed turns \\ into \).
31749 sed -n \
ac1cb8d3
VS
31750 "s/'/'\\\\''/g;
31751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31752 ;;
31753 *)
31754 # `set' quotes correctly as required by POSIX, so do not add quotes.
31755 sed -n \
ac1cb8d3 31756 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31757 ;;
31758 esac;
31759} |
31760 sed '
31761 t clear
31762 : clear
31763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31764 t end
31765 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31766 : end' >>confcache
31767if diff $cache_file confcache >/dev/null 2>&1; then :; else
31768 if test -w $cache_file; then
31769 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31770 cat confcache >$cache_file
31771 else
31772 echo "not updating unwritable cache $cache_file"
31773 fi
31774fi
31775rm -f confcache
31776
31777
31778CPP_MT_FLAG=
31779if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31780
31781
31782 THREADS_LINK=
31783 THREADS_CFLAGS=
31784
31785 if test "$wxUSE_THREADS" = "yes" ; then
31786 if test "$USE_BEOS" = 1; then
31787 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31788echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31789 wxUSE_THREADS="no"
31790 fi
31791 fi
31792
31793 if test "$wxUSE_THREADS" = "yes" ; then
31794
31795
31796 THREAD_OPTS="-pthread"
31797 case "${host}" in
31798 *-*-solaris2* | *-*-sunos4* )
31799 if test "x$GCC" = "xyes"; then
31800 THREAD_OPTS="-pthreads $THREAD_OPTS"
31801 else
31802 THREAD_OPTS="-mt $THREAD_OPTS"
31803 fi
31804 ;;
31805 *-*-freebsd*)
31806 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31807 ;;
31808 *-*-darwin* | *-*-cygwin* )
31809 THREAD_OPTS=""
31810 ;;
31811 *-*-aix*)
31812 THREAD_OPTS="pthreads"
31813 ;;
31814 *-hp-hpux* )
31815 if test "x$GCC" != "xyes"; then
31816 THREAD_OPTS=""
31817 fi
31818 ;;
31819
31820 *-*-irix* )
31821 if test "x$GCC" = "xyes"; then
31822 THREAD_OPTS=""
31823 fi
31824 ;;
31825
31826 *-*-*UnixWare*)
31827 if test "x$GCC" != "xyes"; then
31828 THREAD_OPTS="-Ethread"
31829 fi
31830 ;;
31831 esac
31832
31833 THREAD_OPTS="$THREAD_OPTS pthread none"
31834
31835 THREADS_OK=no
31836 for flag in $THREAD_OPTS; do
31837 case $flag in
31838 none)
31839 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31840echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31841 ;;
31842
31843 -*)
31844 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31845echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31846 THREADS_CFLAGS="$flag"
31847 ;;
31848
31849 *)
31850 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31851echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31852 THREADS_LINK="-l$flag"
31853 ;;
31854 esac
31855
31856 save_LIBS="$LIBS"
31857 save_CFLAGS="$CFLAGS"
31858 LIBS="$THREADS_LINK $LIBS"
31859 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31860
31861 cat >conftest.$ac_ext <<_ACEOF
31862/* confdefs.h. */
31863_ACEOF
31864cat confdefs.h >>conftest.$ac_ext
31865cat >>conftest.$ac_ext <<_ACEOF
31866/* end confdefs.h. */
31867#include <pthread.h>
31868int
31869main ()
31870{
31871pthread_create(0,0,0,0);
31872 ;
31873 return 0;
31874}
31875_ACEOF
31876rm -f conftest.$ac_objext conftest$ac_exeext
31877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31878 (eval $ac_link) 2>conftest.er1
a848cd7e 31879 ac_status=$?
ac1cb8d3
VS
31880 grep -v '^ *+' conftest.er1 >conftest.err
31881 rm -f conftest.er1
31882 cat conftest.err >&5
a848cd7e
SC
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); } &&
ea7db9ff
DE
31885 { ac_try='test -z "$ac_c_werror_flag"
31886 || test ! -s conftest.err'
ac1cb8d3
VS
31887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888 (eval $ac_try) 2>&5
31889 ac_status=$?
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); }; } &&
31892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31895 ac_status=$?
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; }; then
31898 THREADS_OK=yes
31899else
31900 echo "$as_me: failed program was:" >&5
31901sed 's/^/| /' conftest.$ac_ext >&5
31902
31903fi
ac1cb8d3
VS
31904rm -f conftest.err conftest.$ac_objext \
31905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31906
31907 LIBS="$save_LIBS"
31908 CFLAGS="$save_CFLAGS"
31909
31910 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31911echo "${ECHO_T}$THREADS_OK" >&6
31912 if test "x$THREADS_OK" = "xyes"; then
31913 break;
31914 fi
31915
31916 THREADS_LINK=""
31917 THREADS_CFLAGS=""
31918 done
31919
31920 if test "x$THREADS_OK" != "xyes"; then
31921 wxUSE_THREADS=no
31922 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31923echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31924 else
31925 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31926 LIBS="$THREADS_LINK $LIBS"
31927
31928 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31929echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31930 flag=no
31931 case "${host}" in
31932 *-aix*)
31933 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31934 flag="-D_THREAD_SAFE"
31935 ;;
31936 *-freebsd*)
31937 flag="-D_THREAD_SAFE"
31938 ;;
31939 *-hp-hpux* )
31940 flag="-D_REENTRANT"
31941 if test "x$GCC" != "xyes"; then
31942 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31943
31944 LIBS="$LIBS -lcma"
a848cd7e
SC
31945 fi
31946 ;;
31947 *solaris* | alpha*-osf*)
31948 flag="-D_REENTRANT"
31949 ;;
31950 esac
31951 echo "$as_me:$LINENO: result: ${flag}" >&5
31952echo "${ECHO_T}${flag}" >&6
31953 if test "x$flag" != xno; then
31954 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31955 fi
31956
31957 if test "x$THREADS_CFLAGS" != "x"; then
31958 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31959 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31960 fi
31961 fi
31962 fi
31963
31964 if test "$wxUSE_THREADS" = "yes" ; then
31965
31966for ac_func in thr_setconcurrency
31967do
31968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31969echo "$as_me:$LINENO: checking for $ac_func" >&5
31970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31971if eval "test \"\${$as_ac_var+set}\" = set"; then
31972 echo $ECHO_N "(cached) $ECHO_C" >&6
31973else
31974 cat >conftest.$ac_ext <<_ACEOF
31975/* confdefs.h. */
31976_ACEOF
31977cat confdefs.h >>conftest.$ac_ext
31978cat >>conftest.$ac_ext <<_ACEOF
31979/* end confdefs.h. */
ac1cb8d3
VS
31980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31982#define $ac_func innocuous_$ac_func
31983
a848cd7e
SC
31984/* System header to define __stub macros and hopefully few prototypes,
31985 which can conflict with char $ac_func (); below.
31986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31987 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31988
a848cd7e
SC
31989#ifdef __STDC__
31990# include <limits.h>
31991#else
31992# include <assert.h>
31993#endif
ac1cb8d3
VS
31994
31995#undef $ac_func
31996
a848cd7e
SC
31997/* Override any gcc2 internal prototype to avoid an error. */
31998#ifdef __cplusplus
31999extern "C"
32000{
32001#endif
32002/* We use char because int might match the return type of a gcc2
32003 builtin and then its argument prototype would still apply. */
32004char $ac_func ();
32005/* The GNU C library defines this for functions which it implements
32006 to always fail with ENOSYS. Some functions are actually named
32007 something starting with __ and the normal name is an alias. */
32008#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32009choke me
32010#else
32011char (*f) () = $ac_func;
32012#endif
32013#ifdef __cplusplus
32014}
32015#endif
32016
32017int
32018main ()
32019{
32020return f != $ac_func;
32021 ;
32022 return 0;
32023}
32024_ACEOF
32025rm -f conftest.$ac_objext conftest$ac_exeext
32026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32027 (eval $ac_link) 2>conftest.er1
a848cd7e 32028 ac_status=$?
ac1cb8d3
VS
32029 grep -v '^ *+' conftest.er1 >conftest.err
32030 rm -f conftest.er1
32031 cat conftest.err >&5
a848cd7e
SC
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); } &&
ea7db9ff
DE
32034 { ac_try='test -z "$ac_c_werror_flag"
32035 || test ! -s conftest.err'
ac1cb8d3
VS
32036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32037 (eval $ac_try) 2>&5
32038 ac_status=$?
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); }; } &&
32041 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32043 (eval $ac_try) 2>&5
32044 ac_status=$?
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); }; }; then
32047 eval "$as_ac_var=yes"
32048else
32049 echo "$as_me: failed program was:" >&5
32050sed 's/^/| /' conftest.$ac_ext >&5
32051
32052eval "$as_ac_var=no"
32053fi
ac1cb8d3
VS
32054rm -f conftest.err conftest.$ac_objext \
32055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32056fi
32057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32059if test `eval echo '${'$as_ac_var'}'` = yes; then
32060 cat >>confdefs.h <<_ACEOF
32061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32062_ACEOF
32063
32064fi
32065done
32066
32067
32068
32069for ac_header in sched.h
32070do
32071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32072if eval "test \"\${$as_ac_Header+set}\" = set"; then
32073 echo "$as_me:$LINENO: checking for $ac_header" >&5
32074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32075if eval "test \"\${$as_ac_Header+set}\" = set"; then
32076 echo $ECHO_N "(cached) $ECHO_C" >&6
32077fi
32078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32080else
32081 # Is the header compilable?
32082echo "$as_me:$LINENO: checking $ac_header usability" >&5
32083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32084cat >conftest.$ac_ext <<_ACEOF
32085/* confdefs.h. */
32086_ACEOF
32087cat confdefs.h >>conftest.$ac_ext
32088cat >>conftest.$ac_ext <<_ACEOF
32089/* end confdefs.h. */
32090$ac_includes_default
32091#include <$ac_header>
32092_ACEOF
32093rm -f conftest.$ac_objext
32094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32095 (eval $ac_compile) 2>conftest.er1
a848cd7e 32096 ac_status=$?
ac1cb8d3
VS
32097 grep -v '^ *+' conftest.er1 >conftest.err
32098 rm -f conftest.er1
32099 cat conftest.err >&5
a848cd7e
SC
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); } &&
ea7db9ff
DE
32102 { ac_try='test -z "$ac_c_werror_flag"
32103 || test ! -s conftest.err'
ac1cb8d3
VS
32104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32105 (eval $ac_try) 2>&5
32106 ac_status=$?
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; } &&
32109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32111 (eval $ac_try) 2>&5
32112 ac_status=$?
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); }; }; then
32115 ac_header_compiler=yes
32116else
32117 echo "$as_me: failed program was:" >&5
32118sed 's/^/| /' conftest.$ac_ext >&5
32119
32120ac_header_compiler=no
32121fi
ac1cb8d3 32122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32124echo "${ECHO_T}$ac_header_compiler" >&6
32125
32126# Is the header present?
32127echo "$as_me:$LINENO: checking $ac_header presence" >&5
32128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32129cat >conftest.$ac_ext <<_ACEOF
32130/* confdefs.h. */
32131_ACEOF
32132cat confdefs.h >>conftest.$ac_ext
32133cat >>conftest.$ac_ext <<_ACEOF
32134/* end confdefs.h. */
32135#include <$ac_header>
32136_ACEOF
32137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32139 ac_status=$?
32140 grep -v '^ *+' conftest.er1 >conftest.err
32141 rm -f conftest.er1
32142 cat conftest.err >&5
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); } >/dev/null; then
32145 if test -s conftest.err; then
32146 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32148 else
32149 ac_cpp_err=
32150 fi
32151else
32152 ac_cpp_err=yes
32153fi
32154if test -z "$ac_cpp_err"; then
32155 ac_header_preproc=yes
32156else
32157 echo "$as_me: failed program was:" >&5
32158sed 's/^/| /' conftest.$ac_ext >&5
32159
32160 ac_header_preproc=no
32161fi
32162rm -f conftest.err conftest.$ac_ext
32163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32164echo "${ECHO_T}$ac_header_preproc" >&6
32165
32166# So? What about this header?
ac1cb8d3
VS
32167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32168 yes:no: )
a848cd7e
SC
32169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32173 ac_header_preproc=yes
a848cd7e 32174 ;;
ac1cb8d3 32175 no:yes:* )
a848cd7e
SC
32176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32188 (
32189 cat <<\_ASBOX
ac1cb8d3
VS
32190## ----------------------------------------- ##
32191## Report this to wx-dev@lists.wxwidgets.org ##
32192## ----------------------------------------- ##
a848cd7e
SC
32193_ASBOX
32194 ) |
32195 sed "s/^/$as_me: WARNING: /" >&2
32196 ;;
32197esac
32198echo "$as_me:$LINENO: checking for $ac_header" >&5
32199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32200if eval "test \"\${$as_ac_Header+set}\" = set"; then
32201 echo $ECHO_N "(cached) $ECHO_C" >&6
32202else
ac1cb8d3 32203 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32204fi
32205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32207
32208fi
32209if test `eval echo '${'$as_ac_Header'}'` = yes; then
32210 cat >>confdefs.h <<_ACEOF
32211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32212_ACEOF
32213
32214fi
32215
32216done
32217
32218 if test "$ac_cv_header_sched_h" = "yes"; then
32219 echo "$as_me:$LINENO: checking for sched_yield" >&5
32220echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32221if test "${ac_cv_func_sched_yield+set}" = set; then
32222 echo $ECHO_N "(cached) $ECHO_C" >&6
32223else
32224 cat >conftest.$ac_ext <<_ACEOF
32225/* confdefs.h. */
32226_ACEOF
32227cat confdefs.h >>conftest.$ac_ext
32228cat >>conftest.$ac_ext <<_ACEOF
32229/* end confdefs.h. */
ac1cb8d3
VS
32230/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32232#define sched_yield innocuous_sched_yield
32233
a848cd7e
SC
32234/* System header to define __stub macros and hopefully few prototypes,
32235 which can conflict with char sched_yield (); below.
32236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32237 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32238
a848cd7e
SC
32239#ifdef __STDC__
32240# include <limits.h>
32241#else
32242# include <assert.h>
32243#endif
ac1cb8d3
VS
32244
32245#undef sched_yield
32246
a848cd7e
SC
32247/* Override any gcc2 internal prototype to avoid an error. */
32248#ifdef __cplusplus
32249extern "C"
32250{
32251#endif
32252/* We use char because int might match the return type of a gcc2
32253 builtin and then its argument prototype would still apply. */
32254char sched_yield ();
32255/* The GNU C library defines this for functions which it implements
32256 to always fail with ENOSYS. Some functions are actually named
32257 something starting with __ and the normal name is an alias. */
32258#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32259choke me
32260#else
32261char (*f) () = sched_yield;
32262#endif
32263#ifdef __cplusplus
32264}
32265#endif
32266
32267int
32268main ()
32269{
32270return f != sched_yield;
32271 ;
32272 return 0;
32273}
32274_ACEOF
32275rm -f conftest.$ac_objext conftest$ac_exeext
32276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32277 (eval $ac_link) 2>conftest.er1
a848cd7e 32278 ac_status=$?
ac1cb8d3
VS
32279 grep -v '^ *+' conftest.er1 >conftest.err
32280 rm -f conftest.er1
32281 cat conftest.err >&5
a848cd7e
SC
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); } &&
ea7db9ff
DE
32284 { ac_try='test -z "$ac_c_werror_flag"
32285 || test ! -s conftest.err'
ac1cb8d3
VS
32286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32287 (eval $ac_try) 2>&5
32288 ac_status=$?
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); }; } &&
32291 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32293 (eval $ac_try) 2>&5
32294 ac_status=$?
32295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); }; }; then
32297 ac_cv_func_sched_yield=yes
32298else
32299 echo "$as_me: failed program was:" >&5
32300sed 's/^/| /' conftest.$ac_ext >&5
32301
32302ac_cv_func_sched_yield=no
32303fi
ac1cb8d3
VS
32304rm -f conftest.err conftest.$ac_objext \
32305 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32306fi
32307echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32308echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32309if test $ac_cv_func_sched_yield = yes; then
32310 cat >>confdefs.h <<\_ACEOF
32311#define HAVE_SCHED_YIELD 1
32312_ACEOF
32313
32314else
32315
32316 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32317echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32318if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32319 echo $ECHO_N "(cached) $ECHO_C" >&6
32320else
32321 ac_check_lib_save_LIBS=$LIBS
32322LIBS="-lposix4 $LIBS"
32323cat >conftest.$ac_ext <<_ACEOF
32324/* confdefs.h. */
32325_ACEOF
32326cat confdefs.h >>conftest.$ac_ext
32327cat >>conftest.$ac_ext <<_ACEOF
32328/* end confdefs.h. */
32329
32330/* Override any gcc2 internal prototype to avoid an error. */
32331#ifdef __cplusplus
32332extern "C"
32333#endif
32334/* We use char because int might match the return type of a gcc2
32335 builtin and then its argument prototype would still apply. */
32336char sched_yield ();
32337int
32338main ()
32339{
32340sched_yield ();
32341 ;
32342 return 0;
32343}
32344_ACEOF
32345rm -f conftest.$ac_objext conftest$ac_exeext
32346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32347 (eval $ac_link) 2>conftest.er1
a848cd7e 32348 ac_status=$?
ac1cb8d3
VS
32349 grep -v '^ *+' conftest.er1 >conftest.err
32350 rm -f conftest.er1
32351 cat conftest.err >&5
a848cd7e
SC
32352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353 (exit $ac_status); } &&
ea7db9ff
DE
32354 { ac_try='test -z "$ac_c_werror_flag"
32355 || test ! -s conftest.err'
ac1cb8d3
VS
32356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32357 (eval $ac_try) 2>&5
32358 ac_status=$?
32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); }; } &&
32361 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32363 (eval $ac_try) 2>&5
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; }; then
32367 ac_cv_lib_posix4_sched_yield=yes
32368else
32369 echo "$as_me: failed program was:" >&5
32370sed 's/^/| /' conftest.$ac_ext >&5
32371
32372ac_cv_lib_posix4_sched_yield=no
32373fi
ac1cb8d3
VS
32374rm -f conftest.err conftest.$ac_objext \
32375 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32376LIBS=$ac_check_lib_save_LIBS
32377fi
32378echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32379echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32380if test $ac_cv_lib_posix4_sched_yield = yes; then
32381 cat >>confdefs.h <<\_ACEOF
32382#define HAVE_SCHED_YIELD 1
32383_ACEOF
32384 POSIX4_LINK=" -lposix4"
32385else
32386 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32387echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32388
32389fi
32390
32391
32392
32393fi
32394
32395 fi
32396
32397 HAVE_PRIOR_FUNCS=0
32398 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32399echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32400if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32401 echo $ECHO_N "(cached) $ECHO_C" >&6
32402else
32403 cat >conftest.$ac_ext <<_ACEOF
32404/* confdefs.h. */
32405_ACEOF
32406cat confdefs.h >>conftest.$ac_ext
32407cat >>conftest.$ac_ext <<_ACEOF
32408/* end confdefs.h. */
ac1cb8d3
VS
32409/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32411#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32412
a848cd7e
SC
32413/* System header to define __stub macros and hopefully few prototypes,
32414 which can conflict with char pthread_attr_getschedpolicy (); below.
32415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32416 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32417
a848cd7e
SC
32418#ifdef __STDC__
32419# include <limits.h>
32420#else
32421# include <assert.h>
32422#endif
ac1cb8d3
VS
32423
32424#undef pthread_attr_getschedpolicy
32425
a848cd7e
SC
32426/* Override any gcc2 internal prototype to avoid an error. */
32427#ifdef __cplusplus
32428extern "C"
32429{
32430#endif
32431/* We use char because int might match the return type of a gcc2
32432 builtin and then its argument prototype would still apply. */
32433char pthread_attr_getschedpolicy ();
32434/* The GNU C library defines this for functions which it implements
32435 to always fail with ENOSYS. Some functions are actually named
32436 something starting with __ and the normal name is an alias. */
32437#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32438choke me
32439#else
32440char (*f) () = pthread_attr_getschedpolicy;
32441#endif
32442#ifdef __cplusplus
32443}
32444#endif
32445
32446int
32447main ()
32448{
32449return f != pthread_attr_getschedpolicy;
32450 ;
32451 return 0;
32452}
32453_ACEOF
32454rm -f conftest.$ac_objext conftest$ac_exeext
32455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32456 (eval $ac_link) 2>conftest.er1
a848cd7e 32457 ac_status=$?
ac1cb8d3
VS
32458 grep -v '^ *+' conftest.er1 >conftest.err
32459 rm -f conftest.er1
32460 cat conftest.err >&5
a848cd7e
SC
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } &&
ea7db9ff
DE
32463 { ac_try='test -z "$ac_c_werror_flag"
32464 || test ! -s conftest.err'
ac1cb8d3
VS
32465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32466 (eval $ac_try) 2>&5
32467 ac_status=$?
32468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); }; } &&
32470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32472 (eval $ac_try) 2>&5
32473 ac_status=$?
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; }; then
32476 ac_cv_func_pthread_attr_getschedpolicy=yes
32477else
32478 echo "$as_me: failed program was:" >&5
32479sed 's/^/| /' conftest.$ac_ext >&5
32480
32481ac_cv_func_pthread_attr_getschedpolicy=no
32482fi
ac1cb8d3
VS
32483rm -f conftest.err conftest.$ac_objext \
32484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32485fi
32486echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32487echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32488if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32489 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32490echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32491if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32492 echo $ECHO_N "(cached) $ECHO_C" >&6
32493else
32494 cat >conftest.$ac_ext <<_ACEOF
32495/* confdefs.h. */
32496_ACEOF
32497cat confdefs.h >>conftest.$ac_ext
32498cat >>conftest.$ac_ext <<_ACEOF
32499/* end confdefs.h. */
ac1cb8d3
VS
32500/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32502#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32503
a848cd7e
SC
32504/* System header to define __stub macros and hopefully few prototypes,
32505 which can conflict with char pthread_attr_setschedparam (); below.
32506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32507 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32508
a848cd7e
SC
32509#ifdef __STDC__
32510# include <limits.h>
32511#else
32512# include <assert.h>
32513#endif
ac1cb8d3
VS
32514
32515#undef pthread_attr_setschedparam
32516
a848cd7e
SC
32517/* Override any gcc2 internal prototype to avoid an error. */
32518#ifdef __cplusplus
32519extern "C"
32520{
32521#endif
32522/* We use char because int might match the return type of a gcc2
32523 builtin and then its argument prototype would still apply. */
32524char pthread_attr_setschedparam ();
32525/* The GNU C library defines this for functions which it implements
32526 to always fail with ENOSYS. Some functions are actually named
32527 something starting with __ and the normal name is an alias. */
32528#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32529choke me
32530#else
32531char (*f) () = pthread_attr_setschedparam;
32532#endif
32533#ifdef __cplusplus
32534}
32535#endif
32536
32537int
32538main ()
32539{
32540return f != pthread_attr_setschedparam;
32541 ;
32542 return 0;
32543}
32544_ACEOF
32545rm -f conftest.$ac_objext conftest$ac_exeext
32546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32547 (eval $ac_link) 2>conftest.er1
a848cd7e 32548 ac_status=$?
ac1cb8d3
VS
32549 grep -v '^ *+' conftest.er1 >conftest.err
32550 rm -f conftest.er1
32551 cat conftest.err >&5
a848cd7e
SC
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); } &&
ea7db9ff
DE
32554 { ac_try='test -z "$ac_c_werror_flag"
32555 || test ! -s conftest.err'
ac1cb8d3
VS
32556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32557 (eval $ac_try) 2>&5
32558 ac_status=$?
32559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560 (exit $ac_status); }; } &&
32561 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32563 (eval $ac_try) 2>&5
32564 ac_status=$?
32565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32566 (exit $ac_status); }; }; then
32567 ac_cv_func_pthread_attr_setschedparam=yes
32568else
32569 echo "$as_me: failed program was:" >&5
32570sed 's/^/| /' conftest.$ac_ext >&5
32571
32572ac_cv_func_pthread_attr_setschedparam=no
32573fi
ac1cb8d3
VS
32574rm -f conftest.err conftest.$ac_objext \
32575 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32576fi
32577echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32578echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32579if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32580 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32581echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32582if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32583 echo $ECHO_N "(cached) $ECHO_C" >&6
32584else
32585 cat >conftest.$ac_ext <<_ACEOF
32586/* confdefs.h. */
32587_ACEOF
32588cat confdefs.h >>conftest.$ac_ext
32589cat >>conftest.$ac_ext <<_ACEOF
32590/* end confdefs.h. */
ac1cb8d3
VS
32591/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32593#define sched_get_priority_max innocuous_sched_get_priority_max
32594
a848cd7e
SC
32595/* System header to define __stub macros and hopefully few prototypes,
32596 which can conflict with char sched_get_priority_max (); below.
32597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32598 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32599
a848cd7e
SC
32600#ifdef __STDC__
32601# include <limits.h>
32602#else
32603# include <assert.h>
32604#endif
ac1cb8d3
VS
32605
32606#undef sched_get_priority_max
32607
a848cd7e
SC
32608/* Override any gcc2 internal prototype to avoid an error. */
32609#ifdef __cplusplus
32610extern "C"
32611{
32612#endif
32613/* We use char because int might match the return type of a gcc2
32614 builtin and then its argument prototype would still apply. */
32615char sched_get_priority_max ();
32616/* The GNU C library defines this for functions which it implements
32617 to always fail with ENOSYS. Some functions are actually named
32618 something starting with __ and the normal name is an alias. */
32619#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32620choke me
32621#else
32622char (*f) () = sched_get_priority_max;
32623#endif
32624#ifdef __cplusplus
32625}
32626#endif
32627
32628int
32629main ()
32630{
32631return f != sched_get_priority_max;
32632 ;
32633 return 0;
32634}
32635_ACEOF
32636rm -f conftest.$ac_objext conftest$ac_exeext
32637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32638 (eval $ac_link) 2>conftest.er1
a848cd7e 32639 ac_status=$?
ac1cb8d3
VS
32640 grep -v '^ *+' conftest.er1 >conftest.err
32641 rm -f conftest.er1
32642 cat conftest.err >&5
a848cd7e
SC
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); } &&
ea7db9ff
DE
32645 { ac_try='test -z "$ac_c_werror_flag"
32646 || test ! -s conftest.err'
ac1cb8d3
VS
32647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648 (eval $ac_try) 2>&5
32649 ac_status=$?
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; } &&
32652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32654 (eval $ac_try) 2>&5
32655 ac_status=$?
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); }; }; then
32658 ac_cv_func_sched_get_priority_max=yes
32659else
32660 echo "$as_me: failed program was:" >&5
32661sed 's/^/| /' conftest.$ac_ext >&5
32662
32663ac_cv_func_sched_get_priority_max=no
32664fi
ac1cb8d3
VS
32665rm -f conftest.err conftest.$ac_objext \
32666 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32667fi
32668echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32669echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32670if test $ac_cv_func_sched_get_priority_max = yes; then
32671 HAVE_PRIOR_FUNCS=1
32672else
32673 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32674echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32675if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32676 echo $ECHO_N "(cached) $ECHO_C" >&6
32677else
32678 ac_check_lib_save_LIBS=$LIBS
32679LIBS="-lposix4 $LIBS"
32680cat >conftest.$ac_ext <<_ACEOF
32681/* confdefs.h. */
32682_ACEOF
32683cat confdefs.h >>conftest.$ac_ext
32684cat >>conftest.$ac_ext <<_ACEOF
32685/* end confdefs.h. */
32686
32687/* Override any gcc2 internal prototype to avoid an error. */
32688#ifdef __cplusplus
32689extern "C"
32690#endif
32691/* We use char because int might match the return type of a gcc2
32692 builtin and then its argument prototype would still apply. */
32693char sched_get_priority_max ();
32694int
32695main ()
32696{
32697sched_get_priority_max ();
32698 ;
32699 return 0;
32700}
32701_ACEOF
32702rm -f conftest.$ac_objext conftest$ac_exeext
32703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32704 (eval $ac_link) 2>conftest.er1
a848cd7e 32705 ac_status=$?
ac1cb8d3
VS
32706 grep -v '^ *+' conftest.er1 >conftest.err
32707 rm -f conftest.er1
32708 cat conftest.err >&5
a848cd7e
SC
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); } &&
ea7db9ff
DE
32711 { ac_try='test -z "$ac_c_werror_flag"
32712 || test ! -s conftest.err'
ac1cb8d3
VS
32713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32714 (eval $ac_try) 2>&5
32715 ac_status=$?
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); }; } &&
32718 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32720 (eval $ac_try) 2>&5
32721 ac_status=$?
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); }; }; then
32724 ac_cv_lib_posix4_sched_get_priority_max=yes
32725else
32726 echo "$as_me: failed program was:" >&5
32727sed 's/^/| /' conftest.$ac_ext >&5
32728
32729ac_cv_lib_posix4_sched_get_priority_max=no
32730fi
ac1cb8d3
VS
32731rm -f conftest.err conftest.$ac_objext \
32732 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32733LIBS=$ac_check_lib_save_LIBS
32734fi
32735echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32736echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32737if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32738
32739 HAVE_PRIOR_FUNCS=1
32740 POSIX4_LINK=" -lposix4"
32741
32742fi
32743
32744
32745fi
32746
32747
32748fi
32749
32750
32751fi
32752
32753
32754 if test "$HAVE_PRIOR_FUNCS" = 1; then
32755 cat >>confdefs.h <<\_ACEOF
32756#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32757_ACEOF
32758
32759 else
32760 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32761echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32762 fi
32763
32764 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32765echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32766if test "${ac_cv_func_pthread_cancel+set}" = set; then
32767 echo $ECHO_N "(cached) $ECHO_C" >&6
32768else
32769 cat >conftest.$ac_ext <<_ACEOF
32770/* confdefs.h. */
32771_ACEOF
32772cat confdefs.h >>conftest.$ac_ext
32773cat >>conftest.$ac_ext <<_ACEOF
32774/* end confdefs.h. */
ac1cb8d3
VS
32775/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32777#define pthread_cancel innocuous_pthread_cancel
32778
a848cd7e
SC
32779/* System header to define __stub macros and hopefully few prototypes,
32780 which can conflict with char pthread_cancel (); below.
32781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32782 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32783
a848cd7e
SC
32784#ifdef __STDC__
32785# include <limits.h>
32786#else
32787# include <assert.h>
32788#endif
ac1cb8d3
VS
32789
32790#undef pthread_cancel
32791
a848cd7e
SC
32792/* Override any gcc2 internal prototype to avoid an error. */
32793#ifdef __cplusplus
32794extern "C"
32795{
32796#endif
32797/* We use char because int might match the return type of a gcc2
32798 builtin and then its argument prototype would still apply. */
32799char pthread_cancel ();
32800/* The GNU C library defines this for functions which it implements
32801 to always fail with ENOSYS. Some functions are actually named
32802 something starting with __ and the normal name is an alias. */
32803#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32804choke me
32805#else
32806char (*f) () = pthread_cancel;
32807#endif
32808#ifdef __cplusplus
32809}
32810#endif
32811
32812int
32813main ()
32814{
32815return f != pthread_cancel;
32816 ;
32817 return 0;
32818}
32819_ACEOF
32820rm -f conftest.$ac_objext conftest$ac_exeext
32821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32822 (eval $ac_link) 2>conftest.er1
a848cd7e 32823 ac_status=$?
ac1cb8d3
VS
32824 grep -v '^ *+' conftest.er1 >conftest.err
32825 rm -f conftest.er1
32826 cat conftest.err >&5
a848cd7e
SC
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); } &&
ea7db9ff
DE
32829 { ac_try='test -z "$ac_c_werror_flag"
32830 || test ! -s conftest.err'
ac1cb8d3
VS
32831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32832 (eval $ac_try) 2>&5
32833 ac_status=$?
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); }; } &&
32836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32838 (eval $ac_try) 2>&5
32839 ac_status=$?
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; }; then
32842 ac_cv_func_pthread_cancel=yes
32843else
32844 echo "$as_me: failed program was:" >&5
32845sed 's/^/| /' conftest.$ac_ext >&5
32846
32847ac_cv_func_pthread_cancel=no
32848fi
ac1cb8d3
VS
32849rm -f conftest.err conftest.$ac_objext \
32850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32851fi
32852echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32853echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32854if test $ac_cv_func_pthread_cancel = yes; then
32855 cat >>confdefs.h <<\_ACEOF
32856#define HAVE_PTHREAD_CANCEL 1
32857_ACEOF
32858
32859else
32860 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32861echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32862fi
32863
32864
32865
32866
32867 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32868echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32869if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32870 echo $ECHO_N "(cached) $ECHO_C" >&6
32871else
32872
32873 cat >conftest.$ac_ext <<_ACEOF
32874/* confdefs.h. */
32875_ACEOF
32876cat confdefs.h >>conftest.$ac_ext
32877cat >>conftest.$ac_ext <<_ACEOF
32878/* end confdefs.h. */
32879#include <pthread.h>
32880int
32881main ()
32882{
32883
32884 pthread_mutexattr_t attr;
32885 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32886
32887 ;
32888 return 0;
32889}
32890_ACEOF
32891rm -f conftest.$ac_objext
32892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32893 (eval $ac_compile) 2>conftest.er1
a848cd7e 32894 ac_status=$?
ac1cb8d3
VS
32895 grep -v '^ *+' conftest.er1 >conftest.err
32896 rm -f conftest.er1
32897 cat conftest.err >&5
a848cd7e
SC
32898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32899 (exit $ac_status); } &&
ea7db9ff
DE
32900 { ac_try='test -z "$ac_c_werror_flag"
32901 || test ! -s conftest.err'
ac1cb8d3
VS
32902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32903 (eval $ac_try) 2>&5
32904 ac_status=$?
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); }; } &&
32907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32909 (eval $ac_try) 2>&5
32910 ac_status=$?
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); }; }; then
32913
32914 wx_cv_type_pthread_mutexattr_t=yes
32915
32916else
32917 echo "$as_me: failed program was:" >&5
32918sed 's/^/| /' conftest.$ac_ext >&5
32919
32920
32921 wx_cv_type_pthread_mutexattr_t=no
32922
32923
32924fi
ac1cb8d3 32925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32926
32927fi
32928echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32929echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32930
32931 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32932 cat >>confdefs.h <<\_ACEOF
32933#define HAVE_PTHREAD_MUTEXATTR_T 1
32934_ACEOF
32935
32936 else
32937 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32938echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32939if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32940 echo $ECHO_N "(cached) $ECHO_C" >&6
32941else
32942
32943 cat >conftest.$ac_ext <<_ACEOF
32944/* confdefs.h. */
32945_ACEOF
32946cat confdefs.h >>conftest.$ac_ext
32947cat >>conftest.$ac_ext <<_ACEOF
32948/* end confdefs.h. */
32949#include <pthread.h>
32950int
32951main ()
32952{
32953
32954 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32955
32956 ;
32957 return 0;
32958}
32959_ACEOF
32960rm -f conftest.$ac_objext
32961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32962 (eval $ac_compile) 2>conftest.er1
a848cd7e 32963 ac_status=$?
ac1cb8d3
VS
32964 grep -v '^ *+' conftest.er1 >conftest.err
32965 rm -f conftest.er1
32966 cat conftest.err >&5
a848cd7e
SC
32967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968 (exit $ac_status); } &&
ea7db9ff
DE
32969 { ac_try='test -z "$ac_c_werror_flag"
32970 || test ! -s conftest.err'
ac1cb8d3
VS
32971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32972 (eval $ac_try) 2>&5
32973 ac_status=$?
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); }; } &&
32976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32978 (eval $ac_try) 2>&5
32979 ac_status=$?
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); }; }; then
32982
32983 wx_cv_type_pthread_rec_mutex_init=yes
32984
32985else
32986 echo "$as_me: failed program was:" >&5
32987sed 's/^/| /' conftest.$ac_ext >&5
32988
32989
32990 wx_cv_type_pthread_rec_mutex_init=no
32991
32992
32993fi
ac1cb8d3 32994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32995
32996fi
32997echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32998echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32999 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33000 cat >>confdefs.h <<\_ACEOF
33001#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33002_ACEOF
33003
33004 else
33005 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33006echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33007 fi
33008 fi
33009 fi
33010
33011else
33012 if test "$wxUSE_THREADS" = "yes" ; then
33013 case "${host}" in
33014 *-*-mingw32* )
33015 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33016echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33017if test "${wx_cv_cflags_mthread+set}" = set; then
33018 echo $ECHO_N "(cached) $ECHO_C" >&6
33019else
33020
33021 CFLAGS_OLD="$CFLAGS"
33022 CFLAGS="$CFLAGS -mthreads"
33023 cat >conftest.$ac_ext <<_ACEOF
33024/* confdefs.h. */
33025_ACEOF
33026cat confdefs.h >>conftest.$ac_ext
33027cat >>conftest.$ac_ext <<_ACEOF
33028/* end confdefs.h. */
33029
33030int
33031main ()
33032{
33033
33034 ;
33035 return 0;
33036}
33037_ACEOF
33038rm -f conftest.$ac_objext
33039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33040 (eval $ac_compile) 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); } &&
ea7db9ff
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_objext'
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 wx_cv_cflags_mthread=yes
33061else
33062 echo "$as_me: failed program was:" >&5
33063sed 's/^/| /' conftest.$ac_ext >&5
33064
33065wx_cv_cflags_mthread=no
33066
33067fi
ac1cb8d3 33068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33069
33070
33071fi
33072echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33073echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33074
33075 if test "$wx_cv_cflags_mthread" = "yes"; then
33076 CXXFLAGS="$CXXFLAGS -mthreads"
33077 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33078 LDFLAGS="$LDFLAGS -mthreads"
33079 else
33080 CFLAGS="$CFLAGS_OLD"
33081 fi
33082 ;;
33083 *-pc-os2*emx )
33084 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33085 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33086 LDFLAGS="$LDFLAGS -Zmt"
33087 ;;
33088 esac
33089 fi
33090fi
33091
33092if test "$wxUSE_THREADS" = "yes"; then
33093 cat >>confdefs.h <<\_ACEOF
33094#define wxUSE_THREADS 1
33095_ACEOF
33096
33097
33098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33099else
33100 if test "$ac_cv_func_strtok_r" = "yes"; then
33101 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33102echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33103 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33104 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33105 echo "$as_me:$LINENO: result: yes" >&5
33106echo "${ECHO_T}yes" >&6
33107 else
33108 echo "$as_me:$LINENO: result: no" >&5
33109echo "${ECHO_T}no" >&6
33110 fi
33111 fi
33112fi
33113
33114if test "$WXGTK20" = 1 ; then
33115 cat >>confdefs.h <<_ACEOF
33116#define __WXGTK20__ $WXGTK20
33117_ACEOF
33118
33119 WXGTK12=1
33120fi
33121
33122if test "$WXGTK12" = 1 ; then
33123 cat >>confdefs.h <<_ACEOF
33124#define __WXGTK12__ $WXGTK12
33125_ACEOF
33126
33127fi
33128
33129if test "$WXGTK127" = 1 ; then
33130 cat >>confdefs.h <<_ACEOF
33131#define __WXGTK127__ $WXGTK127
33132_ACEOF
33133
33134fi
33135
33136if test "$WXGPE" = 1 ; then
33137 cat >>confdefs.h <<_ACEOF
33138#define __WXGPE__ $WXGPE
33139_ACEOF
33140
33141fi
33142
33143WXDEBUG=
33144
33145if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33146 WXDEBUG="-g"
33147 wxUSE_OPTIMISE=no
33148fi
33149
33150if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33151 wxUSE_DEBUG_INFO=yes
33152 WXDEBUG="-ggdb"
33153fi
33154
33155if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33156 cat >>confdefs.h <<\_ACEOF
33157#define WXDEBUG 1
33158_ACEOF
33159
33160 WXDEBUG_DEFINE="-D__WXDEBUG__"
33161else
33162 if test "$wxUSE_GTK" = 1 ; then
33163 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33164 fi
33165fi
33166
33167if test "$wxUSE_MEM_TRACING" = "yes" ; then
33168 cat >>confdefs.h <<\_ACEOF
33169#define wxUSE_MEMORY_TRACING 1
33170_ACEOF
33171
33172 cat >>confdefs.h <<\_ACEOF
33173#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33174_ACEOF
33175
33176 cat >>confdefs.h <<\_ACEOF
33177#define wxUSE_DEBUG_NEW_ALWAYS 1
33178_ACEOF
33179
33180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33181fi
33182
33183if test "$wxUSE_DMALLOC" = "yes" ; then
33184 DMALLOC_LIBS="-ldmalloc"
33185fi
33186
33187PROFILE=
33188if test "$wxUSE_PROFILE" = "yes" ; then
33189 PROFILE=" -pg"
33190fi
33191
33192CODE_GEN_FLAGS=
33193CODE_GEN_FLAGS_CXX=
33194if test "$GCC" = "yes" ; then
33195 if test "$wxUSE_NO_RTTI" = "yes" ; then
33196 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33197 fi
33198 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33199 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33200 fi
33201 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33202 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33203 fi
33204
33205 case "${host}" in
33206 powerpc*-*-aix* )
33207 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33208 ;;
33209 *-hppa* )
33210 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33211 ;;
33212 esac
33213fi
33214
33215OPTIMISE=
33216if test "$wxUSE_OPTIMISE" = "no" ; then
33217 if test "$GCC" = yes ; then
33218 OPTIMISE="-O0"
33219 fi
33220else
33221 if test "$GCC" = yes ; then
33222 OPTIMISE="-O2"
33223
33224 case "${host}" in
33225 i586-*-*|i686-*-* )
33226 OPTIMISE="${OPTIMISE} "
33227 ;;
33228 esac
33229 else
33230 OPTIMISE="-O"
33231 fi
33232fi
33233
33234
33235if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33236 cat >>confdefs.h <<\_ACEOF
33237#define WXWIN_COMPATIBILITY_2_2 1
33238_ACEOF
33239
33240
33241 WXWIN_COMPATIBILITY_2_4="yes"
33242fi
33243
33244if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33245 cat >>confdefs.h <<\_ACEOF
33246#define WXWIN_COMPATIBILITY_2_4 1
33247_ACEOF
33248
33249fi
33250
33251
33252if test "$wxUSE_GUI" = "yes"; then
33253 cat >>confdefs.h <<\_ACEOF
33254#define wxUSE_GUI 1
33255_ACEOF
33256
33257
33258 else
33259 cat >>confdefs.h <<\_ACEOF
33260#define wxUSE_NOGUI 1
33261_ACEOF
33262
33263fi
33264
33265
33266if test "$wxUSE_UNIX" = "yes"; then
33267 cat >>confdefs.h <<\_ACEOF
33268#define wxUSE_UNIX 1
33269_ACEOF
33270
33271fi
33272
33273
33274if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33275
33276 HAVE_DL_FUNCS=0
33277 HAVE_SHL_FUNCS=0
33278 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33279 if test "$USE_DARWIN" = 1; then
33280 HAVE_DL_FUNCS=1
33281 else
33282
33283for ac_func in dlopen
33284do
33285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33286echo "$as_me:$LINENO: checking for $ac_func" >&5
33287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33288if eval "test \"\${$as_ac_var+set}\" = set"; then
33289 echo $ECHO_N "(cached) $ECHO_C" >&6
33290else
33291 cat >conftest.$ac_ext <<_ACEOF
33292/* confdefs.h. */
33293_ACEOF
33294cat confdefs.h >>conftest.$ac_ext
33295cat >>conftest.$ac_ext <<_ACEOF
33296/* end confdefs.h. */
ac1cb8d3
VS
33297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33299#define $ac_func innocuous_$ac_func
33300
a848cd7e
SC
33301/* System header to define __stub macros and hopefully few prototypes,
33302 which can conflict with char $ac_func (); below.
33303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33304 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33305
a848cd7e
SC
33306#ifdef __STDC__
33307# include <limits.h>
33308#else
33309# include <assert.h>
33310#endif
ac1cb8d3
VS
33311
33312#undef $ac_func
33313
a848cd7e
SC
33314/* Override any gcc2 internal prototype to avoid an error. */
33315#ifdef __cplusplus
33316extern "C"
33317{
33318#endif
33319/* We use char because int might match the return type of a gcc2
33320 builtin and then its argument prototype would still apply. */
33321char $ac_func ();
33322/* The GNU C library defines this for functions which it implements
33323 to always fail with ENOSYS. Some functions are actually named
33324 something starting with __ and the normal name is an alias. */
33325#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33326choke me
33327#else
33328char (*f) () = $ac_func;
33329#endif
33330#ifdef __cplusplus
33331}
33332#endif
33333
33334int
33335main ()
33336{
33337return f != $ac_func;
33338 ;
33339 return 0;
33340}
33341_ACEOF
33342rm -f conftest.$ac_objext conftest$ac_exeext
33343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33344 (eval $ac_link) 2>conftest.er1
a848cd7e 33345 ac_status=$?
ac1cb8d3
VS
33346 grep -v '^ *+' conftest.er1 >conftest.err
33347 rm -f conftest.er1
33348 cat conftest.err >&5
a848cd7e
SC
33349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350 (exit $ac_status); } &&
ea7db9ff
DE
33351 { ac_try='test -z "$ac_c_werror_flag"
33352 || test ! -s conftest.err'
ac1cb8d3
VS
33353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33354 (eval $ac_try) 2>&5
33355 ac_status=$?
33356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357 (exit $ac_status); }; } &&
33358 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33360 (eval $ac_try) 2>&5
33361 ac_status=$?
33362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363 (exit $ac_status); }; }; then
33364 eval "$as_ac_var=yes"
33365else
33366 echo "$as_me: failed program was:" >&5
33367sed 's/^/| /' conftest.$ac_ext >&5
33368
33369eval "$as_ac_var=no"
33370fi
ac1cb8d3
VS
33371rm -f conftest.err conftest.$ac_objext \
33372 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33373fi
33374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33375echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33376if test `eval echo '${'$as_ac_var'}'` = yes; then
33377 cat >>confdefs.h <<_ACEOF
33378#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33379_ACEOF
33380
33381 cat >>confdefs.h <<\_ACEOF
33382#define HAVE_DLOPEN 1
33383_ACEOF
33384
33385 HAVE_DL_FUNCS=1
33386
33387else
33388
33389 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33390echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33391if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33392 echo $ECHO_N "(cached) $ECHO_C" >&6
33393else
33394 ac_check_lib_save_LIBS=$LIBS
33395LIBS="-ldl $LIBS"
33396cat >conftest.$ac_ext <<_ACEOF
33397/* confdefs.h. */
33398_ACEOF
33399cat confdefs.h >>conftest.$ac_ext
33400cat >>conftest.$ac_ext <<_ACEOF
33401/* end confdefs.h. */
33402
33403/* Override any gcc2 internal prototype to avoid an error. */
33404#ifdef __cplusplus
33405extern "C"
33406#endif
33407/* We use char because int might match the return type of a gcc2
33408 builtin and then its argument prototype would still apply. */
33409char dlopen ();
33410int
33411main ()
33412{
33413dlopen ();
33414 ;
33415 return 0;
33416}
33417_ACEOF
33418rm -f conftest.$ac_objext conftest$ac_exeext
33419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33420 (eval $ac_link) 2>conftest.er1
a848cd7e 33421 ac_status=$?
ac1cb8d3
VS
33422 grep -v '^ *+' conftest.er1 >conftest.err
33423 rm -f conftest.er1
33424 cat conftest.err >&5
a848cd7e
SC
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); } &&
ea7db9ff
DE
33427 { ac_try='test -z "$ac_c_werror_flag"
33428 || test ! -s conftest.err'
ac1cb8d3
VS
33429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430 (eval $ac_try) 2>&5
33431 ac_status=$?
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); }; } &&
33434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33436 (eval $ac_try) 2>&5
33437 ac_status=$?
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; }; then
33440 ac_cv_lib_dl_dlopen=yes
33441else
33442 echo "$as_me: failed program was:" >&5
33443sed 's/^/| /' conftest.$ac_ext >&5
33444
33445ac_cv_lib_dl_dlopen=no
33446fi
ac1cb8d3
VS
33447rm -f conftest.err conftest.$ac_objext \
33448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33449LIBS=$ac_check_lib_save_LIBS
33450fi
33451echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33452echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33453if test $ac_cv_lib_dl_dlopen = yes; then
33454
33455 cat >>confdefs.h <<\_ACEOF
33456#define HAVE_DLOPEN 1
33457_ACEOF
33458
33459 HAVE_DL_FUNCS=1
33460 DL_LINK=" -ldl$DL_LINK"
33461
33462else
33463
33464
33465for ac_func in shl_load
33466do
33467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33468echo "$as_me:$LINENO: checking for $ac_func" >&5
33469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33470if eval "test \"\${$as_ac_var+set}\" = set"; then
33471 echo $ECHO_N "(cached) $ECHO_C" >&6
33472else
33473 cat >conftest.$ac_ext <<_ACEOF
33474/* confdefs.h. */
33475_ACEOF
33476cat confdefs.h >>conftest.$ac_ext
33477cat >>conftest.$ac_ext <<_ACEOF
33478/* end confdefs.h. */
ac1cb8d3
VS
33479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33481#define $ac_func innocuous_$ac_func
33482
a848cd7e
SC
33483/* System header to define __stub macros and hopefully few prototypes,
33484 which can conflict with char $ac_func (); below.
33485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33486 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33487
a848cd7e
SC
33488#ifdef __STDC__
33489# include <limits.h>
33490#else
33491# include <assert.h>
33492#endif
ac1cb8d3
VS
33493
33494#undef $ac_func
33495
a848cd7e
SC
33496/* Override any gcc2 internal prototype to avoid an error. */
33497#ifdef __cplusplus
33498extern "C"
33499{
33500#endif
33501/* We use char because int might match the return type of a gcc2
33502 builtin and then its argument prototype would still apply. */
33503char $ac_func ();
33504/* The GNU C library defines this for functions which it implements
33505 to always fail with ENOSYS. Some functions are actually named
33506 something starting with __ and the normal name is an alias. */
33507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33508choke me
33509#else
33510char (*f) () = $ac_func;
33511#endif
33512#ifdef __cplusplus
33513}
33514#endif
33515
33516int
33517main ()
33518{
33519return f != $ac_func;
33520 ;
33521 return 0;
33522}
33523_ACEOF
33524rm -f conftest.$ac_objext conftest$ac_exeext
33525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33526 (eval $ac_link) 2>conftest.er1
a848cd7e 33527 ac_status=$?
ac1cb8d3
VS
33528 grep -v '^ *+' conftest.er1 >conftest.err
33529 rm -f conftest.er1
33530 cat conftest.err >&5
a848cd7e
SC
33531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532 (exit $ac_status); } &&
ea7db9ff
DE
33533 { ac_try='test -z "$ac_c_werror_flag"
33534 || test ! -s conftest.err'
ac1cb8d3
VS
33535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33536 (eval $ac_try) 2>&5
33537 ac_status=$?
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); }; } &&
33540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542 (eval $ac_try) 2>&5
33543 ac_status=$?
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); }; }; then
33546 eval "$as_ac_var=yes"
33547else
33548 echo "$as_me: failed program was:" >&5
33549sed 's/^/| /' conftest.$ac_ext >&5
33550
33551eval "$as_ac_var=no"
33552fi
ac1cb8d3
VS
33553rm -f conftest.err conftest.$ac_objext \
33554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33555fi
33556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33558if test `eval echo '${'$as_ac_var'}'` = yes; then
33559 cat >>confdefs.h <<_ACEOF
33560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33561_ACEOF
33562
33563 cat >>confdefs.h <<\_ACEOF
33564#define HAVE_SHL_LOAD 1
33565_ACEOF
33566
33567 HAVE_SHL_FUNCS=1
33568
33569else
33570
33571 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33572echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33573if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33574 echo $ECHO_N "(cached) $ECHO_C" >&6
33575else
33576 ac_check_lib_save_LIBS=$LIBS
33577LIBS="-lshl_load $LIBS"
33578cat >conftest.$ac_ext <<_ACEOF
33579/* confdefs.h. */
33580_ACEOF
33581cat confdefs.h >>conftest.$ac_ext
33582cat >>conftest.$ac_ext <<_ACEOF
33583/* end confdefs.h. */
33584
33585/* Override any gcc2 internal prototype to avoid an error. */
33586#ifdef __cplusplus
33587extern "C"
33588#endif
33589/* We use char because int might match the return type of a gcc2
33590 builtin and then its argument prototype would still apply. */
33591char dld ();
33592int
33593main ()
33594{
33595dld ();
33596 ;
33597 return 0;
33598}
33599_ACEOF
33600rm -f conftest.$ac_objext conftest$ac_exeext
33601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33602 (eval $ac_link) 2>conftest.er1
a848cd7e 33603 ac_status=$?
ac1cb8d3
VS
33604 grep -v '^ *+' conftest.er1 >conftest.err
33605 rm -f conftest.er1
33606 cat conftest.err >&5
a848cd7e
SC
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); } &&
ea7db9ff
DE
33609 { ac_try='test -z "$ac_c_werror_flag"
33610 || test ! -s conftest.err'
ac1cb8d3
VS
33611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612 (eval $ac_try) 2>&5
33613 ac_status=$?
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; } &&
33616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618 (eval $ac_try) 2>&5
33619 ac_status=$?
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; }; then
33622 ac_cv_lib_shl_load_dld=yes
33623else
33624 echo "$as_me: failed program was:" >&5
33625sed 's/^/| /' conftest.$ac_ext >&5
33626
33627ac_cv_lib_shl_load_dld=no
33628fi
ac1cb8d3
VS
33629rm -f conftest.err conftest.$ac_objext \
33630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33631LIBS=$ac_check_lib_save_LIBS
33632fi
33633echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33634echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33635if test $ac_cv_lib_shl_load_dld = yes; then
33636
33637 HAVE_SHL_FUNCS=1
33638 DL_LINK=" -ldld$DL_LINK"
33639
33640fi
33641
33642
33643fi
33644done
33645
33646
33647fi
33648
33649
33650fi
33651done
33652
33653
33654 if test "$HAVE_DL_FUNCS" = 1; then
33655
33656for ac_func in dlerror
33657do
33658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33659echo "$as_me:$LINENO: checking for $ac_func" >&5
33660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33661if eval "test \"\${$as_ac_var+set}\" = set"; then
33662 echo $ECHO_N "(cached) $ECHO_C" >&6
33663else
33664 cat >conftest.$ac_ext <<_ACEOF
33665/* confdefs.h. */
33666_ACEOF
33667cat confdefs.h >>conftest.$ac_ext
33668cat >>conftest.$ac_ext <<_ACEOF
33669/* end confdefs.h. */
ac1cb8d3
VS
33670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33672#define $ac_func innocuous_$ac_func
33673
a848cd7e
SC
33674/* System header to define __stub macros and hopefully few prototypes,
33675 which can conflict with char $ac_func (); below.
33676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33677 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33678
a848cd7e
SC
33679#ifdef __STDC__
33680# include <limits.h>
33681#else
33682# include <assert.h>
33683#endif
ac1cb8d3
VS
33684
33685#undef $ac_func
33686
a848cd7e
SC
33687/* Override any gcc2 internal prototype to avoid an error. */
33688#ifdef __cplusplus
33689extern "C"
33690{
33691#endif
33692/* We use char because int might match the return type of a gcc2
33693 builtin and then its argument prototype would still apply. */
33694char $ac_func ();
33695/* The GNU C library defines this for functions which it implements
33696 to always fail with ENOSYS. Some functions are actually named
33697 something starting with __ and the normal name is an alias. */
33698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33699choke me
33700#else
33701char (*f) () = $ac_func;
33702#endif
33703#ifdef __cplusplus
33704}
33705#endif
33706
33707int
33708main ()
33709{
33710return f != $ac_func;
33711 ;
33712 return 0;
33713}
33714_ACEOF
33715rm -f conftest.$ac_objext conftest$ac_exeext
33716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33717 (eval $ac_link) 2>conftest.er1
a848cd7e 33718 ac_status=$?
ac1cb8d3
VS
33719 grep -v '^ *+' conftest.er1 >conftest.err
33720 rm -f conftest.er1
33721 cat conftest.err >&5
a848cd7e
SC
33722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723 (exit $ac_status); } &&
ea7db9ff
DE
33724 { ac_try='test -z "$ac_c_werror_flag"
33725 || test ! -s conftest.err'
ac1cb8d3
VS
33726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33727 (eval $ac_try) 2>&5
33728 ac_status=$?
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); }; } &&
33731 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33733 (eval $ac_try) 2>&5
33734 ac_status=$?
33735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736 (exit $ac_status); }; }; then
33737 eval "$as_ac_var=yes"
33738else
33739 echo "$as_me: failed program was:" >&5
33740sed 's/^/| /' conftest.$ac_ext >&5
33741
33742eval "$as_ac_var=no"
33743fi
ac1cb8d3
VS
33744rm -f conftest.err conftest.$ac_objext \
33745 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33746fi
33747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33748echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33749if test `eval echo '${'$as_ac_var'}'` = yes; then
33750 cat >>confdefs.h <<_ACEOF
33751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33752_ACEOF
33753 cat >>confdefs.h <<\_ACEOF
33754#define HAVE_DLERROR 1
33755_ACEOF
33756
33757else
33758
33759 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33760echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33761if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33762 echo $ECHO_N "(cached) $ECHO_C" >&6
33763else
33764 ac_check_lib_save_LIBS=$LIBS
33765LIBS="-ldl $LIBS"
33766cat >conftest.$ac_ext <<_ACEOF
33767/* confdefs.h. */
33768_ACEOF
33769cat confdefs.h >>conftest.$ac_ext
33770cat >>conftest.$ac_ext <<_ACEOF
33771/* end confdefs.h. */
33772
33773/* Override any gcc2 internal prototype to avoid an error. */
33774#ifdef __cplusplus
33775extern "C"
33776#endif
33777/* We use char because int might match the return type of a gcc2
33778 builtin and then its argument prototype would still apply. */
33779char dlerror ();
33780int
33781main ()
33782{
33783dlerror ();
33784 ;
33785 return 0;
33786}
33787_ACEOF
33788rm -f conftest.$ac_objext conftest$ac_exeext
33789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33790 (eval $ac_link) 2>conftest.er1
a848cd7e 33791 ac_status=$?
ac1cb8d3
VS
33792 grep -v '^ *+' conftest.er1 >conftest.err
33793 rm -f conftest.er1
33794 cat conftest.err >&5
a848cd7e
SC
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); } &&
ea7db9ff
DE
33797 { ac_try='test -z "$ac_c_werror_flag"
33798 || test ! -s conftest.err'
ac1cb8d3
VS
33799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33800 (eval $ac_try) 2>&5
33801 ac_status=$?
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); }; } &&
33804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33806 (eval $ac_try) 2>&5
33807 ac_status=$?
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); }; }; then
33810 ac_cv_lib_dl_dlerror=yes
33811else
33812 echo "$as_me: failed program was:" >&5
33813sed 's/^/| /' conftest.$ac_ext >&5
33814
33815ac_cv_lib_dl_dlerror=no
33816fi
ac1cb8d3
VS
33817rm -f conftest.err conftest.$ac_objext \
33818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33819LIBS=$ac_check_lib_save_LIBS
33820fi
33821echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33822echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33823if test $ac_cv_lib_dl_dlerror = yes; then
33824 cat >>confdefs.h <<\_ACEOF
33825#define HAVE_DLERROR 1
33826_ACEOF
33827
33828fi
33829
33830
33831
33832fi
33833done
33834
33835 fi
33836 fi
33837
33838 if test "$HAVE_DL_FUNCS" = 0; then
33839 if test "$HAVE_SHL_FUNCS" = 0; then
33840 if test "$USE_UNIX" = 1; then
33841 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33842echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33843 wxUSE_DYNAMIC_LOADER=no
33844 wxUSE_DYNLIB_CLASS=no
33845 else
33846 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33847echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33848 fi
33849 fi
33850 fi
33851 fi
33852fi
33853
33854if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33855 cat >>confdefs.h <<\_ACEOF
33856#define wxUSE_DYNAMIC_LOADER 1
33857_ACEOF
33858
33859fi
33860if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33861 cat >>confdefs.h <<\_ACEOF
33862#define wxUSE_DYNLIB_CLASS 1
33863_ACEOF
33864
33865fi
33866
33867
33868
33869if test "$wxUSE_PLUGINS" = "yes" ; then
33870 if test "$wxUSE_SHARED" = "no" ; then
33871 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33872echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33873 wxUSE_PLUGINS=no
33874 fi
33875 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33876 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33877echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33878 wxUSE_PLUGINS=no
33879 fi
33880 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33881 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33882echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33883 wxUSE_PLUGINS=no
33884 fi
33885 if test "$wxUSE_PLUGINS" = "yes" ; then
33886 cat >>confdefs.h <<\_ACEOF
33887#define wxUSE_PLUGINS 1
33888_ACEOF
33889
33890 fi
33891fi
33892
33893
33894if test "$wxUSE_STL" = "yes"; then
33895 cat >>confdefs.h <<\_ACEOF
33896#define wxUSE_STL 1
33897_ACEOF
33898
33899fi
33900
33901if test "$wxUSE_APPLE_IEEE" = "yes"; then
33902 cat >>confdefs.h <<\_ACEOF
33903#define wxUSE_APPLE_IEEE 1
33904_ACEOF
33905
33906fi
33907
33908if test "$wxUSE_TIMER" = "yes"; then
33909 cat >>confdefs.h <<\_ACEOF
33910#define wxUSE_TIMER 1
33911_ACEOF
33912
33913fi
33914
33915WITH_PLUGIN_SDL=0
33916if test "$wxUSE_SOUND" = "yes"; then
33917 if test "$USE_UNIX" = "1" ; then
33918
33919for ac_header in sys/soundcard.h
33920do
33921as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33922if eval "test \"\${$as_ac_Header+set}\" = set"; then
33923 echo "$as_me:$LINENO: checking for $ac_header" >&5
33924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33925if eval "test \"\${$as_ac_Header+set}\" = set"; then
33926 echo $ECHO_N "(cached) $ECHO_C" >&6
33927fi
33928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33930else
33931 # Is the header compilable?
33932echo "$as_me:$LINENO: checking $ac_header usability" >&5
33933echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33934cat >conftest.$ac_ext <<_ACEOF
33935/* confdefs.h. */
33936_ACEOF
33937cat confdefs.h >>conftest.$ac_ext
33938cat >>conftest.$ac_ext <<_ACEOF
33939/* end confdefs.h. */
33940$ac_includes_default
33941#include <$ac_header>
33942_ACEOF
33943rm -f conftest.$ac_objext
33944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33945 (eval $ac_compile) 2>conftest.er1
a848cd7e 33946 ac_status=$?
ac1cb8d3
VS
33947 grep -v '^ *+' conftest.er1 >conftest.err
33948 rm -f conftest.er1
33949 cat conftest.err >&5
a848cd7e
SC
33950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); } &&
ea7db9ff
DE
33952 { ac_try='test -z "$ac_c_werror_flag"
33953 || test ! -s conftest.err'
ac1cb8d3
VS
33954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955 (eval $ac_try) 2>&5
33956 ac_status=$?
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; } &&
33959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33961 (eval $ac_try) 2>&5
33962 ac_status=$?
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; }; then
33965 ac_header_compiler=yes
33966else
33967 echo "$as_me: failed program was:" >&5
33968sed 's/^/| /' conftest.$ac_ext >&5
33969
33970ac_header_compiler=no
33971fi
ac1cb8d3 33972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33973echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33974echo "${ECHO_T}$ac_header_compiler" >&6
33975
33976# Is the header present?
33977echo "$as_me:$LINENO: checking $ac_header presence" >&5
33978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33979cat >conftest.$ac_ext <<_ACEOF
33980/* confdefs.h. */
33981_ACEOF
33982cat confdefs.h >>conftest.$ac_ext
33983cat >>conftest.$ac_ext <<_ACEOF
33984/* end confdefs.h. */
33985#include <$ac_header>
33986_ACEOF
33987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33989 ac_status=$?
33990 grep -v '^ *+' conftest.er1 >conftest.err
33991 rm -f conftest.er1
33992 cat conftest.err >&5
33993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994 (exit $ac_status); } >/dev/null; then
33995 if test -s conftest.err; then
33996 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33998 else
33999 ac_cpp_err=
34000 fi
34001else
34002 ac_cpp_err=yes
34003fi
34004if test -z "$ac_cpp_err"; then
34005 ac_header_preproc=yes
34006else
34007 echo "$as_me: failed program was:" >&5
34008sed 's/^/| /' conftest.$ac_ext >&5
34009
34010 ac_header_preproc=no
34011fi
34012rm -f conftest.err conftest.$ac_ext
34013echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34014echo "${ECHO_T}$ac_header_preproc" >&6
34015
34016# So? What about this header?
ac1cb8d3
VS
34017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34018 yes:no: )
a848cd7e
SC
34019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34020echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34022echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34023 ac_header_preproc=yes
a848cd7e 34024 ;;
ac1cb8d3 34025 no:yes:* )
a848cd7e
SC
34026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34031echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34033echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34037echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34038 (
34039 cat <<\_ASBOX
ac1cb8d3
VS
34040## ----------------------------------------- ##
34041## Report this to wx-dev@lists.wxwidgets.org ##
34042## ----------------------------------------- ##
a848cd7e
SC
34043_ASBOX
34044 ) |
34045 sed "s/^/$as_me: WARNING: /" >&2
34046 ;;
34047esac
34048echo "$as_me:$LINENO: checking for $ac_header" >&5
34049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34050if eval "test \"\${$as_ac_Header+set}\" = set"; then
34051 echo $ECHO_N "(cached) $ECHO_C" >&6
34052else
ac1cb8d3 34053 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34054fi
34055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34057
34058fi
34059if test `eval echo '${'$as_ac_Header'}'` = yes; then
34060 cat >>confdefs.h <<_ACEOF
34061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34062_ACEOF
34063
34064fi
34065
34066done
34067
34068
34069 if test "$wxUSE_LIBSDL" != "no"; then
34070
34071# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34072if test "${with_sdl_prefix+set}" = set; then
34073 withval="$with_sdl_prefix"
34074 sdl_prefix="$withval"
34075else
34076 sdl_prefix=""
34077fi;
34078
34079# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34080if test "${with_sdl_exec_prefix+set}" = set; then
34081 withval="$with_sdl_exec_prefix"
34082 sdl_exec_prefix="$withval"
34083else
34084 sdl_exec_prefix=""
34085fi;
34086# Check whether --enable-sdltest or --disable-sdltest was given.
34087if test "${enable_sdltest+set}" = set; then
34088 enableval="$enable_sdltest"
34089
34090else
34091 enable_sdltest=yes
34092fi;
34093
34094 if test x$sdl_exec_prefix != x ; then
34095 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34096 if test x${SDL_CONFIG+set} != xset ; then
34097 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34098 fi
34099 fi
34100 if test x$sdl_prefix != x ; then
34101 sdl_args="$sdl_args --prefix=$sdl_prefix"
34102 if test x${SDL_CONFIG+set} != xset ; then
34103 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34104 fi
34105 fi
34106
34107
34108 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34109 # Extract the first word of "sdl-config", so it can be a program name with args.
34110set dummy sdl-config; ac_word=$2
34111echo "$as_me:$LINENO: checking for $ac_word" >&5
34112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34113if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34114 echo $ECHO_N "(cached) $ECHO_C" >&6
34115else
34116 case $SDL_CONFIG in
34117 [\\/]* | ?:[\\/]*)
34118 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34119 ;;
34120 *)
34121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34122for as_dir in $PATH
34123do
34124 IFS=$as_save_IFS
34125 test -z "$as_dir" && as_dir=.
34126 for ac_exec_ext in '' $ac_executable_extensions; do
34127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34128 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34130 break 2
34131 fi
34132done
34133done
34134
34135 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34136 ;;
34137esac
34138fi
34139SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34140
34141if test -n "$SDL_CONFIG"; then
34142 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34143echo "${ECHO_T}$SDL_CONFIG" >&6
34144else
34145 echo "$as_me:$LINENO: result: no" >&5
34146echo "${ECHO_T}no" >&6
34147fi
34148
34149 min_sdl_version=1.2.0
34150 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34151echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34152 no_sdl=""
34153 if test "$SDL_CONFIG" = "no" ; then
34154 no_sdl=yes
34155 else
34156 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34157 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34158
34159 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34160 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34161 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34162 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34163 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34165 if test "x$enable_sdltest" = "xyes" ; then
34166 ac_save_CFLAGS="$CFLAGS"
34167 ac_save_LIBS="$LIBS"
34168 CFLAGS="$CFLAGS $SDL_CFLAGS"
34169 LIBS="$LIBS $SDL_LIBS"
34170 rm -f conf.sdltest
34171 if test "$cross_compiling" = yes; then
34172 echo $ac_n "cross compiling; assumed OK... $ac_c"
34173else
34174 cat >conftest.$ac_ext <<_ACEOF
34175/* confdefs.h. */
34176_ACEOF
34177cat confdefs.h >>conftest.$ac_ext
34178cat >>conftest.$ac_ext <<_ACEOF
34179/* end confdefs.h. */
34180
34181#include <stdio.h>
34182#include <stdlib.h>
34183#include <string.h>
34184#include "SDL.h"
34185
34186char*
34187my_strdup (char *str)
34188{
34189 char *new_str;
34190
34191 if (str)
34192 {
34193 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34194 strcpy (new_str, str);
34195 }
34196 else
34197 new_str = NULL;
34198
34199 return new_str;
34200}
34201
34202int main (int argc, char *argv[])
34203{
34204 int major, minor, micro;
34205 char *tmp_version;
34206
34207 /* This hangs on some systems (?)
34208 system ("touch conf.sdltest");
34209 */
34210 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34211
34212 /* HP/UX 9 (%@#!) writes to sscanf strings */
34213 tmp_version = my_strdup("$min_sdl_version");
34214 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34215 printf("%s, bad version string\n", "$min_sdl_version");
34216 exit(1);
34217 }
34218
34219 if (($sdl_major_version > major) ||
34220 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34221 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34222 {
34223 return 0;
34224 }
34225 else
34226 {
34227 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34228 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34229 printf("*** best to upgrade to the required version.\n");
34230 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34231 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34232 printf("*** config.cache before re-running configure\n");
34233 return 1;
34234 }
34235}
34236
34237
34238_ACEOF
34239rm -f conftest$ac_exeext
34240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34241 (eval $ac_link) 2>&5
34242 ac_status=$?
34243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34246 (eval $ac_try) 2>&5
34247 ac_status=$?
34248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34249 (exit $ac_status); }; }; then
34250 :
34251else
34252 echo "$as_me: program exited with status $ac_status" >&5
34253echo "$as_me: failed program was:" >&5
34254sed 's/^/| /' conftest.$ac_ext >&5
34255
34256( exit $ac_status )
34257no_sdl=yes
34258fi
ac1cb8d3 34259rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34260fi
34261 CFLAGS="$ac_save_CFLAGS"
34262 LIBS="$ac_save_LIBS"
34263 fi
34264 fi
34265 if test "x$no_sdl" = x ; then
34266 echo "$as_me:$LINENO: result: yes" >&5
34267echo "${ECHO_T}yes" >&6
34268
34269 EXTRALIBS_SDL="$SDL_LIBS"
34270 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34271 cat >>confdefs.h <<\_ACEOF
34272#define wxUSE_LIBSDL 1
34273_ACEOF
34274
34275
34276 else
34277 echo "$as_me:$LINENO: result: no" >&5
34278echo "${ECHO_T}no" >&6
34279 if test "$SDL_CONFIG" = "no" ; then
34280 echo "*** The sdl-config script installed by SDL could not be found"
34281 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34282 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34283 echo "*** full path to sdl-config."
34284 else
34285 if test -f conf.sdltest ; then
34286 :
34287 else
34288 echo "*** Could not run SDL test program, checking why..."
34289 CFLAGS="$CFLAGS $SDL_CFLAGS"
34290 LIBS="$LIBS $SDL_LIBS"
34291 cat >conftest.$ac_ext <<_ACEOF
34292/* confdefs.h. */
34293_ACEOF
34294cat confdefs.h >>conftest.$ac_ext
34295cat >>conftest.$ac_ext <<_ACEOF
34296/* end confdefs.h. */
34297
34298#include <stdio.h>
34299#include "SDL.h"
34300
34301int main(int argc, char *argv[])
34302{ return 0; }
34303#undef main
34304#define main K_and_R_C_main
34305
34306int
34307main ()
34308{
34309 return 0;
34310 ;
34311 return 0;
34312}
34313_ACEOF
34314rm -f conftest.$ac_objext conftest$ac_exeext
34315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34316 (eval $ac_link) 2>conftest.er1
a848cd7e 34317 ac_status=$?
ac1cb8d3
VS
34318 grep -v '^ *+' conftest.er1 >conftest.err
34319 rm -f conftest.er1
34320 cat conftest.err >&5
a848cd7e
SC
34321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34322 (exit $ac_status); } &&
ea7db9ff
DE
34323 { ac_try='test -z "$ac_c_werror_flag"
34324 || test ! -s conftest.err'
ac1cb8d3
VS
34325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34326 (eval $ac_try) 2>&5
34327 ac_status=$?
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); }; } &&
34330 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34332 (eval $ac_try) 2>&5
34333 ac_status=$?
34334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335 (exit $ac_status); }; }; then
34336 echo "*** The test program compiled, but did not run. This usually means"
34337 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34338 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34339 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34340 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34341 echo "*** is required on your system"
34342 echo "***"
34343 echo "*** If you have an old version installed, it is best to remove it, although"
34344 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34345else
34346 echo "$as_me: failed program was:" >&5
34347sed 's/^/| /' conftest.$ac_ext >&5
34348
34349 echo "*** The test program failed to compile or link. See the file config.log for the"
34350 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34351 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34352 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34353fi
ac1cb8d3
VS
34354rm -f conftest.err conftest.$ac_objext \
34355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34356 CFLAGS="$ac_save_CFLAGS"
34357 LIBS="$ac_save_LIBS"
34358 fi
34359 fi
34360 SDL_CFLAGS=""
34361 SDL_LIBS=""
34362 wxUSE_LIBSDL="no"
34363 fi
34364
34365
34366 rm -f conf.sdltest
34367
34368 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34369 WITH_PLUGIN_SDL=1
34370 fi
34371 fi
34372 fi
34373
34374 cat >>confdefs.h <<\_ACEOF
34375#define wxUSE_SOUND 1
34376_ACEOF
34377
34378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34379fi
34380
34381if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34382 cat >>confdefs.h <<\_ACEOF
34383#define wxUSE_CMDLINE_PARSER 1
34384_ACEOF
34385
34386fi
34387
34388if test "$wxUSE_STOPWATCH" = "yes"; then
34389 cat >>confdefs.h <<\_ACEOF
34390#define wxUSE_STOPWATCH 1
34391_ACEOF
34392
34393fi
34394
34395if test "$wxUSE_DATETIME" = "yes"; then
34396 cat >>confdefs.h <<\_ACEOF
34397#define wxUSE_DATETIME 1
34398_ACEOF
34399
34400fi
34401
34402if test "$wxUSE_FILE" = "yes"; then
34403 cat >>confdefs.h <<\_ACEOF
34404#define wxUSE_FILE 1
34405_ACEOF
34406
34407fi
34408
34409if test "$wxUSE_FFILE" = "yes"; then
34410 cat >>confdefs.h <<\_ACEOF
34411#define wxUSE_FFILE 1
34412_ACEOF
34413
34414fi
34415
34416if test "$wxUSE_FILESYSTEM" = "yes"; then
34417 cat >>confdefs.h <<\_ACEOF
34418#define wxUSE_FILESYSTEM 1
34419_ACEOF
34420
34421fi
34422
34423if test "$wxUSE_FS_ZIP" = "yes"; then
34424 cat >>confdefs.h <<\_ACEOF
34425#define wxUSE_FS_ZIP 1
34426_ACEOF
34427
34428fi
34429
34430if test "$wxUSE_ZIPSTREAM" = "yes"; then
34431 cat >>confdefs.h <<\_ACEOF
34432#define wxUSE_ZIPSTREAM 1
34433_ACEOF
34434
34435fi
34436
a848cd7e
SC
34437if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34438 cat >>confdefs.h <<\_ACEOF
34439#define wxUSE_ON_FATAL_EXCEPTION 1
34440_ACEOF
34441
34442fi
34443
34444if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34445 cat >>confdefs.h <<\_ACEOF
34446#define wxUSE_SNGLINST_CHECKER 1
34447_ACEOF
34448
34449fi
34450
34451if test "$wxUSE_BUSYINFO" = "yes"; then
34452 cat >>confdefs.h <<\_ACEOF
34453#define wxUSE_BUSYINFO 1
34454_ACEOF
34455
34456fi
34457
34458if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34459 cat >>confdefs.h <<\_ACEOF
34460#define wxUSE_STD_IOSTREAM 1
34461_ACEOF
34462
34463fi
34464
34465if test "$wxUSE_TEXTBUFFER" = "yes"; then
34466 cat >>confdefs.h <<\_ACEOF
34467#define wxUSE_TEXTBUFFER 1
34468_ACEOF
34469
34470fi
34471
34472if test "$wxUSE_TEXTFILE" = "yes"; then
34473 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34474 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34475echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34476 else
34477 cat >>confdefs.h <<\_ACEOF
34478#define wxUSE_TEXTFILE 1
34479_ACEOF
34480
34481 fi
34482fi
34483
34484if test "$wxUSE_CONFIG" = "yes" ; then
34485 if test "$wxUSE_TEXTFILE" != "yes"; then
34486 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34487echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34488 else
34489 cat >>confdefs.h <<\_ACEOF
34490#define wxUSE_CONFIG 1
34491_ACEOF
34492
34493 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34494 fi
34495fi
34496
34497if test "$wxUSE_INTL" = "yes" ; then
34498 if test "$wxUSE_FILE" != "yes"; then
34499 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34500echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34501 else
34502 cat >>confdefs.h <<\_ACEOF
34503#define wxUSE_INTL 1
34504_ACEOF
34505
34506 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34507 GUIDIST="$GUIDIST INTL_DIST"
34508 fi
34509fi
34510
34511if test "$wxUSE_LOG" = "yes"; then
34512 cat >>confdefs.h <<\_ACEOF
34513#define wxUSE_LOG 1
34514_ACEOF
34515
34516
34517 if test "$wxUSE_LOGGUI" = "yes"; then
34518 cat >>confdefs.h <<\_ACEOF
34519#define wxUSE_LOGGUI 1
34520_ACEOF
34521
34522 fi
34523
34524 if test "$wxUSE_LOGWINDOW" = "yes"; then
34525 cat >>confdefs.h <<\_ACEOF
34526#define wxUSE_LOGWINDOW 1
34527_ACEOF
34528
34529 fi
34530
34531 if test "$wxUSE_LOGDIALOG" = "yes"; then
34532 cat >>confdefs.h <<\_ACEOF
34533#define wxUSE_LOG_DIALOG 1
34534_ACEOF
34535
34536 fi
34537fi
34538
34539if test "$wxUSE_LONGLONG" = "yes"; then
34540 cat >>confdefs.h <<\_ACEOF
34541#define wxUSE_LONGLONG 1
34542_ACEOF
34543
34544fi
34545
34546if test "$wxUSE_GEOMETRY" = "yes"; then
34547 cat >>confdefs.h <<\_ACEOF
34548#define wxUSE_GEOMETRY 1
34549_ACEOF
34550
34551fi
34552
34553if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34554 cat >>confdefs.h <<\_ACEOF
34555#define wxUSE_DIALUP_MANAGER 1
34556_ACEOF
34557
34558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34559fi
34560
34561if test "$wxUSE_STREAMS" = "yes" ; then
34562 cat >>confdefs.h <<\_ACEOF
34563#define wxUSE_STREAMS 1
34564_ACEOF
34565
34566fi
34567
34568
34569if test "$wxUSE_DATETIME" = "yes"; then
34570
34571for ac_func in strptime
34572do
34573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34574echo "$as_me:$LINENO: checking for $ac_func" >&5
34575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34576if eval "test \"\${$as_ac_var+set}\" = set"; then
34577 echo $ECHO_N "(cached) $ECHO_C" >&6
34578else
34579 cat >conftest.$ac_ext <<_ACEOF
34580/* confdefs.h. */
34581_ACEOF
34582cat confdefs.h >>conftest.$ac_ext
34583cat >>conftest.$ac_ext <<_ACEOF
34584/* end confdefs.h. */
ac1cb8d3
VS
34585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34587#define $ac_func innocuous_$ac_func
34588
a848cd7e
SC
34589/* System header to define __stub macros and hopefully few prototypes,
34590 which can conflict with char $ac_func (); below.
34591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34592 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34593
a848cd7e
SC
34594#ifdef __STDC__
34595# include <limits.h>
34596#else
34597# include <assert.h>
34598#endif
ac1cb8d3
VS
34599
34600#undef $ac_func
34601
a848cd7e
SC
34602/* Override any gcc2 internal prototype to avoid an error. */
34603#ifdef __cplusplus
34604extern "C"
34605{
34606#endif
34607/* We use char because int might match the return type of a gcc2
34608 builtin and then its argument prototype would still apply. */
34609char $ac_func ();
34610/* The GNU C library defines this for functions which it implements
34611 to always fail with ENOSYS. Some functions are actually named
34612 something starting with __ and the normal name is an alias. */
34613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34614choke me
34615#else
34616char (*f) () = $ac_func;
34617#endif
34618#ifdef __cplusplus
34619}
34620#endif
34621
34622int
34623main ()
34624{
34625return f != $ac_func;
34626 ;
34627 return 0;
34628}
34629_ACEOF
34630rm -f conftest.$ac_objext conftest$ac_exeext
34631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34632 (eval $ac_link) 2>conftest.er1
a848cd7e 34633 ac_status=$?
ac1cb8d3
VS
34634 grep -v '^ *+' conftest.er1 >conftest.err
34635 rm -f conftest.er1
34636 cat conftest.err >&5
a848cd7e
SC
34637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638 (exit $ac_status); } &&
ea7db9ff
DE
34639 { ac_try='test -z "$ac_c_werror_flag"
34640 || test ! -s conftest.err'
ac1cb8d3
VS
34641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34642 (eval $ac_try) 2>&5
34643 ac_status=$?
34644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34645 (exit $ac_status); }; } &&
34646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34648 (eval $ac_try) 2>&5
34649 ac_status=$?
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); }; }; then
34652 eval "$as_ac_var=yes"
34653else
34654 echo "$as_me: failed program was:" >&5
34655sed 's/^/| /' conftest.$ac_ext >&5
34656
34657eval "$as_ac_var=no"
34658fi
ac1cb8d3
VS
34659rm -f conftest.err conftest.$ac_objext \
34660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34661fi
34662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34663echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34664if test `eval echo '${'$as_ac_var'}'` = yes; then
34665 cat >>confdefs.h <<_ACEOF
34666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34667_ACEOF
34668
34669fi
34670done
34671
34672
34673 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34674echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34675if test "${wx_cv_var_timezone+set}" = set; then
34676 echo $ECHO_N "(cached) $ECHO_C" >&6
34677else
34678
34679 cat >conftest.$ac_ext <<_ACEOF
34680/* confdefs.h. */
34681_ACEOF
34682cat confdefs.h >>conftest.$ac_ext
34683cat >>conftest.$ac_ext <<_ACEOF
34684/* end confdefs.h. */
34685
34686 #include <time.h>
34687
34688int
34689main ()
34690{
34691
34692 int tz;
34693 tz = timezone;
34694
34695 ;
34696 return 0;
34697}
34698_ACEOF
34699rm -f conftest.$ac_objext
34700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34701 (eval $ac_compile) 2>conftest.er1
a848cd7e 34702 ac_status=$?
ac1cb8d3
VS
34703 grep -v '^ *+' conftest.er1 >conftest.err
34704 rm -f conftest.er1
34705 cat conftest.err >&5
a848cd7e
SC
34706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 (exit $ac_status); } &&
ea7db9ff
DE
34708 { ac_try='test -z "$ac_c_werror_flag"
34709 || test ! -s conftest.err'
ac1cb8d3
VS
34710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34711 (eval $ac_try) 2>&5
34712 ac_status=$?
34713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34714 (exit $ac_status); }; } &&
34715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34717 (eval $ac_try) 2>&5
34718 ac_status=$?
34719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720 (exit $ac_status); }; }; then
34721
34722 wx_cv_var_timezone=timezone
34723
34724else
34725 echo "$as_me: failed program was:" >&5
34726sed 's/^/| /' conftest.$ac_ext >&5
34727
34728
34729 cat >conftest.$ac_ext <<_ACEOF
34730/* confdefs.h. */
34731_ACEOF
34732cat confdefs.h >>conftest.$ac_ext
34733cat >>conftest.$ac_ext <<_ACEOF
34734/* end confdefs.h. */
34735
34736 #include <time.h>
34737
34738int
34739main ()
34740{
34741
34742 int tz;
34743 tz = _timezone;
34744
34745 ;
34746 return 0;
34747}
34748_ACEOF
34749rm -f conftest.$ac_objext
34750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34751 (eval $ac_compile) 2>conftest.er1
a848cd7e 34752 ac_status=$?
ac1cb8d3
VS
34753 grep -v '^ *+' conftest.er1 >conftest.err
34754 rm -f conftest.er1
34755 cat conftest.err >&5
a848cd7e
SC
34756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757 (exit $ac_status); } &&
ea7db9ff
DE
34758 { ac_try='test -z "$ac_c_werror_flag"
34759 || test ! -s conftest.err'
ac1cb8d3
VS
34760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34761 (eval $ac_try) 2>&5
34762 ac_status=$?
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); }; } &&
34765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34767 (eval $ac_try) 2>&5
34768 ac_status=$?
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); }; }; then
34771
34772 wx_cv_var_timezone=_timezone
34773
34774else
34775 echo "$as_me: failed program was:" >&5
34776sed 's/^/| /' conftest.$ac_ext >&5
34777
34778
34779 cat >conftest.$ac_ext <<_ACEOF
34780/* confdefs.h. */
34781_ACEOF
34782cat confdefs.h >>conftest.$ac_ext
34783cat >>conftest.$ac_ext <<_ACEOF
34784/* end confdefs.h. */
34785
34786 #include <time.h>
34787
34788int
34789main ()
34790{
34791
34792 int tz;
34793 tz = __timezone;
34794
34795 ;
34796 return 0;
34797}
34798_ACEOF
34799rm -f conftest.$ac_objext
34800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34801 (eval $ac_compile) 2>conftest.er1
a848cd7e 34802 ac_status=$?
ac1cb8d3
VS
34803 grep -v '^ *+' conftest.er1 >conftest.err
34804 rm -f conftest.er1
34805 cat conftest.err >&5
a848cd7e
SC
34806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807 (exit $ac_status); } &&
ea7db9ff
DE
34808 { ac_try='test -z "$ac_c_werror_flag"
34809 || test ! -s conftest.err'
ac1cb8d3
VS
34810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34811 (eval $ac_try) 2>&5
34812 ac_status=$?
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); }; } &&
34815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34817 (eval $ac_try) 2>&5
34818 ac_status=$?
34819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820 (exit $ac_status); }; }; then
34821
34822 wx_cv_var_timezone=__timezone
34823
34824else
34825 echo "$as_me: failed program was:" >&5
34826sed 's/^/| /' conftest.$ac_ext >&5
34827
34828
34829 if test "$USE_DOS" = 0 ; then
34830 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34831echo "$as_me: WARNING: no timezone variable" >&2;}
34832 fi
34833
34834
34835fi
ac1cb8d3 34836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34837
34838
34839fi
ac1cb8d3 34840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34841
34842
34843fi
ac1cb8d3 34844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34845
34846
34847fi
34848echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34849echo "${ECHO_T}$wx_cv_var_timezone" >&6
34850
34851 if test "x$wx_cv_var_timezone" != x ; then
34852 cat >>confdefs.h <<_ACEOF
34853#define WX_TIMEZONE $wx_cv_var_timezone
34854_ACEOF
34855
34856 fi
34857
34858
34859for ac_func in localtime
34860do
34861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34862echo "$as_me:$LINENO: checking for $ac_func" >&5
34863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34864if eval "test \"\${$as_ac_var+set}\" = set"; then
34865 echo $ECHO_N "(cached) $ECHO_C" >&6
34866else
34867 cat >conftest.$ac_ext <<_ACEOF
34868/* confdefs.h. */
34869_ACEOF
34870cat confdefs.h >>conftest.$ac_ext
34871cat >>conftest.$ac_ext <<_ACEOF
34872/* end confdefs.h. */
ac1cb8d3
VS
34873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34875#define $ac_func innocuous_$ac_func
34876
a848cd7e
SC
34877/* System header to define __stub macros and hopefully few prototypes,
34878 which can conflict with char $ac_func (); below.
34879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34880 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34881
a848cd7e
SC
34882#ifdef __STDC__
34883# include <limits.h>
34884#else
34885# include <assert.h>
34886#endif
ac1cb8d3
VS
34887
34888#undef $ac_func
34889
a848cd7e
SC
34890/* Override any gcc2 internal prototype to avoid an error. */
34891#ifdef __cplusplus
34892extern "C"
34893{
34894#endif
34895/* We use char because int might match the return type of a gcc2
34896 builtin and then its argument prototype would still apply. */
34897char $ac_func ();
34898/* The GNU C library defines this for functions which it implements
34899 to always fail with ENOSYS. Some functions are actually named
34900 something starting with __ and the normal name is an alias. */
34901#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34902choke me
34903#else
34904char (*f) () = $ac_func;
34905#endif
34906#ifdef __cplusplus
34907}
34908#endif
34909
34910int
34911main ()
34912{
34913return f != $ac_func;
34914 ;
34915 return 0;
34916}
34917_ACEOF
34918rm -f conftest.$ac_objext conftest$ac_exeext
34919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34920 (eval $ac_link) 2>conftest.er1
a848cd7e 34921 ac_status=$?
ac1cb8d3
VS
34922 grep -v '^ *+' conftest.er1 >conftest.err
34923 rm -f conftest.er1
34924 cat conftest.err >&5
a848cd7e
SC
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); } &&
ea7db9ff
DE
34927 { ac_try='test -z "$ac_c_werror_flag"
34928 || test ! -s conftest.err'
ac1cb8d3
VS
34929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34930 (eval $ac_try) 2>&5
34931 ac_status=$?
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); }; } &&
34934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34936 (eval $ac_try) 2>&5
34937 ac_status=$?
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 (exit $ac_status); }; }; then
34940 eval "$as_ac_var=yes"
34941else
34942 echo "$as_me: failed program was:" >&5
34943sed 's/^/| /' conftest.$ac_ext >&5
34944
34945eval "$as_ac_var=no"
34946fi
ac1cb8d3
VS
34947rm -f conftest.err conftest.$ac_objext \
34948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34949fi
34950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34952if test `eval echo '${'$as_ac_var'}'` = yes; then
34953 cat >>confdefs.h <<_ACEOF
34954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34955_ACEOF
34956
34957fi
34958done
34959
34960
34961 if test "$ac_cv_func_localtime" = "yes"; then
34962 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34963echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34964if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34965 echo $ECHO_N "(cached) $ECHO_C" >&6
34966else
34967
34968 cat >conftest.$ac_ext <<_ACEOF
34969/* confdefs.h. */
34970_ACEOF
34971cat confdefs.h >>conftest.$ac_ext
34972cat >>conftest.$ac_ext <<_ACEOF
34973/* end confdefs.h. */
34974
34975 #include <time.h>
34976
34977int
34978main ()
34979{
34980
34981 struct tm tm;
34982 tm.tm_gmtoff++;
34983
34984 ;
34985 return 0;
34986}
34987_ACEOF
34988rm -f conftest.$ac_objext
34989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34990 (eval $ac_compile) 2>conftest.er1
a848cd7e 34991 ac_status=$?
ac1cb8d3
VS
34992 grep -v '^ *+' conftest.er1 >conftest.err
34993 rm -f conftest.er1
34994 cat conftest.err >&5
a848cd7e
SC
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); } &&
ea7db9ff
DE
34997 { ac_try='test -z "$ac_c_werror_flag"
34998 || test ! -s conftest.err'
ac1cb8d3
VS
34999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35000 (eval $ac_try) 2>&5
35001 ac_status=$?
35002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); }; } &&
35004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35006 (eval $ac_try) 2>&5
35007 ac_status=$?
35008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009 (exit $ac_status); }; }; then
35010
35011 wx_cv_struct_tm_has_gmtoff=yes
35012
35013else
35014 echo "$as_me: failed program was:" >&5
35015sed 's/^/| /' conftest.$ac_ext >&5
35016
35017wx_cv_struct_tm_has_gmtoff=no
35018
35019fi
ac1cb8d3 35020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35021
35022fi
35023echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35024echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35025 fi
35026
35027 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35028 cat >>confdefs.h <<\_ACEOF
35029#define WX_GMTOFF_IN_TM 1
35030_ACEOF
35031
35032 fi
35033
35034
35035
35036for ac_func in gettimeofday ftime
35037do
35038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35039echo "$as_me:$LINENO: checking for $ac_func" >&5
35040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35041if eval "test \"\${$as_ac_var+set}\" = set"; then
35042 echo $ECHO_N "(cached) $ECHO_C" >&6
35043else
35044 cat >conftest.$ac_ext <<_ACEOF
35045/* confdefs.h. */
35046_ACEOF
35047cat confdefs.h >>conftest.$ac_ext
35048cat >>conftest.$ac_ext <<_ACEOF
35049/* end confdefs.h. */
ac1cb8d3
VS
35050/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35052#define $ac_func innocuous_$ac_func
35053
a848cd7e
SC
35054/* System header to define __stub macros and hopefully few prototypes,
35055 which can conflict with char $ac_func (); below.
35056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35057 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35058
a848cd7e
SC
35059#ifdef __STDC__
35060# include <limits.h>
35061#else
35062# include <assert.h>
35063#endif
ac1cb8d3
VS
35064
35065#undef $ac_func
35066
a848cd7e
SC
35067/* Override any gcc2 internal prototype to avoid an error. */
35068#ifdef __cplusplus
35069extern "C"
35070{
35071#endif
35072/* We use char because int might match the return type of a gcc2
35073 builtin and then its argument prototype would still apply. */
35074char $ac_func ();
35075/* The GNU C library defines this for functions which it implements
35076 to always fail with ENOSYS. Some functions are actually named
35077 something starting with __ and the normal name is an alias. */
35078#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35079choke me
35080#else
35081char (*f) () = $ac_func;
35082#endif
35083#ifdef __cplusplus
35084}
35085#endif
35086
35087int
35088main ()
35089{
35090return f != $ac_func;
35091 ;
35092 return 0;
35093}
35094_ACEOF
35095rm -f conftest.$ac_objext conftest$ac_exeext
35096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35097 (eval $ac_link) 2>conftest.er1
a848cd7e 35098 ac_status=$?
ac1cb8d3
VS
35099 grep -v '^ *+' conftest.er1 >conftest.err
35100 rm -f conftest.er1
35101 cat conftest.err >&5
a848cd7e
SC
35102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103 (exit $ac_status); } &&
ea7db9ff
DE
35104 { ac_try='test -z "$ac_c_werror_flag"
35105 || test ! -s conftest.err'
ac1cb8d3
VS
35106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35107 (eval $ac_try) 2>&5
35108 ac_status=$?
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); }; } &&
35111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35114 ac_status=$?
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; }; then
35117 eval "$as_ac_var=yes"
35118else
35119 echo "$as_me: failed program was:" >&5
35120sed 's/^/| /' conftest.$ac_ext >&5
35121
35122eval "$as_ac_var=no"
35123fi
ac1cb8d3
VS
35124rm -f conftest.err conftest.$ac_objext \
35125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35126fi
35127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35128echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35129if test `eval echo '${'$as_ac_var'}'` = yes; then
35130 cat >>confdefs.h <<_ACEOF
35131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35132_ACEOF
35133 break
35134fi
35135done
35136
35137
35138 if test "$ac_cv_func_gettimeofday" = "yes"; then
35139 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35140echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35141if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35142 echo $ECHO_N "(cached) $ECHO_C" >&6
35143else
35144
35145
35146
35147 ac_ext=cc
35148ac_cpp='$CXXCPP $CPPFLAGS'
35149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35152
35153
35154 cat >conftest.$ac_ext <<_ACEOF
35155/* confdefs.h. */
35156_ACEOF
35157cat confdefs.h >>conftest.$ac_ext
35158cat >>conftest.$ac_ext <<_ACEOF
35159/* end confdefs.h. */
35160
35161 #include <sys/time.h>
35162 #include <unistd.h>
35163
35164int
35165main ()
35166{
35167
35168 struct timeval tv;
35169 gettimeofday(&tv, NULL);
35170
35171 ;
35172 return 0;
35173}
35174_ACEOF
35175rm -f conftest.$ac_objext
35176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35177 (eval $ac_compile) 2>conftest.er1
a848cd7e 35178 ac_status=$?
ac1cb8d3
VS
35179 grep -v '^ *+' conftest.er1 >conftest.err
35180 rm -f conftest.er1
35181 cat conftest.err >&5
a848cd7e
SC
35182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183 (exit $ac_status); } &&
ea7db9ff
DE
35184 { ac_try='test -z "$ac_cxx_werror_flag"
35185 || test ! -s conftest.err'
ac1cb8d3
VS
35186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35187 (eval $ac_try) 2>&5
35188 ac_status=$?
35189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190 (exit $ac_status); }; } &&
35191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35193 (eval $ac_try) 2>&5
35194 ac_status=$?
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); }; }; then
35197 wx_cv_func_gettimeofday_has_2_args=yes
35198else
35199 echo "$as_me: failed program was:" >&5
35200sed 's/^/| /' conftest.$ac_ext >&5
35201
35202cat >conftest.$ac_ext <<_ACEOF
35203/* confdefs.h. */
35204_ACEOF
35205cat confdefs.h >>conftest.$ac_ext
35206cat >>conftest.$ac_ext <<_ACEOF
35207/* end confdefs.h. */
35208
35209 #include <sys/time.h>
35210 #include <unistd.h>
35211
35212int
35213main ()
35214{
35215
35216 struct timeval tv;
35217 gettimeofday(&tv);
35218
35219 ;
35220 return 0;
35221}
35222_ACEOF
35223rm -f conftest.$ac_objext
35224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35225 (eval $ac_compile) 2>conftest.er1
a848cd7e 35226 ac_status=$?
ac1cb8d3
VS
35227 grep -v '^ *+' conftest.er1 >conftest.err
35228 rm -f conftest.er1
35229 cat conftest.err >&5
a848cd7e
SC
35230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); } &&
ea7db9ff
DE
35232 { ac_try='test -z "$ac_cxx_werror_flag"
35233 || test ! -s conftest.err'
ac1cb8d3
VS
35234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35235 (eval $ac_try) 2>&5
35236 ac_status=$?
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); }; } &&
35239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241 (eval $ac_try) 2>&5
35242 ac_status=$?
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); }; }; then
35245 wx_cv_func_gettimeofday_has_2_args=no
35246else
35247 echo "$as_me: failed program was:" >&5
35248sed 's/^/| /' conftest.$ac_ext >&5
35249
35250
35251 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35252echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35253 wx_cv_func_gettimeofday_has_2_args=unknown
35254
35255
35256fi
ac1cb8d3 35257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35258
35259fi
ac1cb8d3 35260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35261 ac_ext=c
35262ac_cpp='$CPP $CPPFLAGS'
35263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35265ac_compiler_gnu=$ac_cv_c_compiler_gnu
35266
35267
35268fi
35269echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35270echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35271
35272 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35273 cat >>confdefs.h <<\_ACEOF
35274#define WX_GETTIMEOFDAY_NO_TZ 1
35275_ACEOF
35276
35277 fi
35278 fi
35279
35280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35281fi
35282
35283
35284if test "$wxUSE_SOCKETS" = "yes"; then
35285 if test "$wxUSE_MGL" = "1"; then
35286 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35287echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35288 wxUSE_SOCKETS="no"
35289 fi
35290fi
35291
35292if test "$wxUSE_SOCKETS" = "yes"; then
35293 if test "$TOOLKIT" != "MSW"; then
35294 echo "$as_me:$LINENO: checking for socket" >&5
35295echo $ECHO_N "checking for socket... $ECHO_C" >&6
35296if test "${ac_cv_func_socket+set}" = set; then
35297 echo $ECHO_N "(cached) $ECHO_C" >&6
35298else
35299 cat >conftest.$ac_ext <<_ACEOF
35300/* confdefs.h. */
35301_ACEOF
35302cat confdefs.h >>conftest.$ac_ext
35303cat >>conftest.$ac_ext <<_ACEOF
35304/* end confdefs.h. */
ac1cb8d3
VS
35305/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35307#define socket innocuous_socket
35308
a848cd7e
SC
35309/* System header to define __stub macros and hopefully few prototypes,
35310 which can conflict with char socket (); below.
35311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35312 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35313
a848cd7e
SC
35314#ifdef __STDC__
35315# include <limits.h>
35316#else
35317# include <assert.h>
35318#endif
ac1cb8d3
VS
35319
35320#undef socket
35321
a848cd7e
SC
35322/* Override any gcc2 internal prototype to avoid an error. */
35323#ifdef __cplusplus
35324extern "C"
35325{
35326#endif
35327/* We use char because int might match the return type of a gcc2
35328 builtin and then its argument prototype would still apply. */
35329char socket ();
35330/* The GNU C library defines this for functions which it implements
35331 to always fail with ENOSYS. Some functions are actually named
35332 something starting with __ and the normal name is an alias. */
35333#if defined (__stub_socket) || defined (__stub___socket)
35334choke me
35335#else
35336char (*f) () = socket;
35337#endif
35338#ifdef __cplusplus
35339}
35340#endif
35341
35342int
35343main ()
35344{
35345return f != socket;
35346 ;
35347 return 0;
35348}
35349_ACEOF
35350rm -f conftest.$ac_objext conftest$ac_exeext
35351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35352 (eval $ac_link) 2>conftest.er1
a848cd7e 35353 ac_status=$?
ac1cb8d3
VS
35354 grep -v '^ *+' conftest.er1 >conftest.err
35355 rm -f conftest.er1
35356 cat conftest.err >&5
a848cd7e
SC
35357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); } &&
ea7db9ff
DE
35359 { ac_try='test -z "$ac_c_werror_flag"
35360 || test ! -s conftest.err'
ac1cb8d3
VS
35361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35362 (eval $ac_try) 2>&5
35363 ac_status=$?
35364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365 (exit $ac_status); }; } &&
35366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35368 (eval $ac_try) 2>&5
35369 ac_status=$?
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); }; }; then
35372 ac_cv_func_socket=yes
35373else
35374 echo "$as_me: failed program was:" >&5
35375sed 's/^/| /' conftest.$ac_ext >&5
35376
35377ac_cv_func_socket=no
35378fi
ac1cb8d3
VS
35379rm -f conftest.err conftest.$ac_objext \
35380 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35381fi
35382echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35383echo "${ECHO_T}$ac_cv_func_socket" >&6
35384if test $ac_cv_func_socket = yes; then
35385 :
35386else
35387
35388 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35389echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35390if test "${ac_cv_lib_socket_socket+set}" = set; then
35391 echo $ECHO_N "(cached) $ECHO_C" >&6
35392else
35393 ac_check_lib_save_LIBS=$LIBS
35394LIBS="-lsocket $LIBS"
35395cat >conftest.$ac_ext <<_ACEOF
35396/* confdefs.h. */
35397_ACEOF
35398cat confdefs.h >>conftest.$ac_ext
35399cat >>conftest.$ac_ext <<_ACEOF
35400/* end confdefs.h. */
35401
35402/* Override any gcc2 internal prototype to avoid an error. */
35403#ifdef __cplusplus
35404extern "C"
35405#endif
35406/* We use char because int might match the return type of a gcc2
35407 builtin and then its argument prototype would still apply. */
35408char socket ();
35409int
35410main ()
35411{
35412socket ();
35413 ;
35414 return 0;
35415}
35416_ACEOF
35417rm -f conftest.$ac_objext conftest$ac_exeext
35418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35419 (eval $ac_link) 2>conftest.er1
a848cd7e 35420 ac_status=$?
ac1cb8d3
VS
35421 grep -v '^ *+' conftest.er1 >conftest.err
35422 rm -f conftest.er1
35423 cat conftest.err >&5
a848cd7e
SC
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); } &&
ea7db9ff
DE
35426 { ac_try='test -z "$ac_c_werror_flag"
35427 || test ! -s conftest.err'
ac1cb8d3
VS
35428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35429 (eval $ac_try) 2>&5
35430 ac_status=$?
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); }; } &&
35433 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35435 (eval $ac_try) 2>&5
35436 ac_status=$?
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); }; }; then
35439 ac_cv_lib_socket_socket=yes
35440else
35441 echo "$as_me: failed program was:" >&5
35442sed 's/^/| /' conftest.$ac_ext >&5
35443
35444ac_cv_lib_socket_socket=no
35445fi
ac1cb8d3
VS
35446rm -f conftest.err conftest.$ac_objext \
35447 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35448LIBS=$ac_check_lib_save_LIBS
35449fi
35450echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35451echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35452if test $ac_cv_lib_socket_socket = yes; then
35453 if test "$INET_LINK" != " -lsocket"; then
35454 INET_LINK="$INET_LINK -lsocket"
35455 fi
35456else
35457
35458 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35459echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35460 wxUSE_SOCKETS=no
35461
35462
35463fi
35464
35465
35466
35467fi
35468
35469 fi
35470fi
35471
35472if test "$wxUSE_SOCKETS" = "yes" ; then
35473 if test "$TOOLKIT" != "MSW"; then
35474 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35475echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35476if test "${wx_cv_type_getsockname3+set}" = set; then
35477 echo $ECHO_N "(cached) $ECHO_C" >&6
35478else
35479
35480 cat >conftest.$ac_ext <<_ACEOF
35481/* confdefs.h. */
35482_ACEOF
35483cat confdefs.h >>conftest.$ac_ext
35484cat >>conftest.$ac_ext <<_ACEOF
35485/* end confdefs.h. */
35486
35487 #include <sys/types.h>
35488 #include <sys/socket.h>
35489
35490int
35491main ()
35492{
35493
35494 socklen_t len;
35495 getsockname(0, 0, &len);
35496
35497 ;
35498 return 0;
35499}
35500_ACEOF
35501rm -f conftest.$ac_objext
35502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35503 (eval $ac_compile) 2>conftest.er1
a848cd7e 35504 ac_status=$?
ac1cb8d3
VS
35505 grep -v '^ *+' conftest.er1 >conftest.err
35506 rm -f conftest.er1
35507 cat conftest.err >&5
a848cd7e
SC
35508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509 (exit $ac_status); } &&
ea7db9ff
DE
35510 { ac_try='test -z "$ac_c_werror_flag"
35511 || test ! -s conftest.err'
ac1cb8d3
VS
35512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35513 (eval $ac_try) 2>&5
35514 ac_status=$?
35515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516 (exit $ac_status); }; } &&
35517 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35519 (eval $ac_try) 2>&5
35520 ac_status=$?
35521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); }; }; then
35523 wx_cv_type_getsockname3=socklen_t
35524else
35525 echo "$as_me: failed program was:" >&5
35526sed 's/^/| /' conftest.$ac_ext >&5
35527
35528
35529 CFLAGS_OLD="$CFLAGS"
35530 if test "$GCC" = yes ; then
35531 CFLAGS="$CFLAGS -Werror"
35532 fi
35533
35534 cat >conftest.$ac_ext <<_ACEOF
35535/* confdefs.h. */
35536_ACEOF
35537cat confdefs.h >>conftest.$ac_ext
35538cat >>conftest.$ac_ext <<_ACEOF
35539/* end confdefs.h. */
35540
35541 #include <sys/types.h>
35542 #include <sys/socket.h>
35543
35544int
35545main ()
35546{
35547
35548 size_t len;
35549 getsockname(0, 0, &len);
35550
35551 ;
35552 return 0;
35553}
35554_ACEOF
35555rm -f conftest.$ac_objext
35556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35557 (eval $ac_compile) 2>conftest.er1
a848cd7e 35558 ac_status=$?
ac1cb8d3
VS
35559 grep -v '^ *+' conftest.er1 >conftest.err
35560 rm -f conftest.er1
35561 cat conftest.err >&5
a848cd7e
SC
35562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563 (exit $ac_status); } &&
ea7db9ff
DE
35564 { ac_try='test -z "$ac_c_werror_flag"
35565 || test ! -s conftest.err'
ac1cb8d3
VS
35566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35567 (eval $ac_try) 2>&5
35568 ac_status=$?
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); }; } &&
35571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35573 (eval $ac_try) 2>&5
35574 ac_status=$?
35575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576 (exit $ac_status); }; }; then
35577 wx_cv_type_getsockname3=size_t
35578else
35579 echo "$as_me: failed program was:" >&5
35580sed 's/^/| /' conftest.$ac_ext >&5
35581
35582cat >conftest.$ac_ext <<_ACEOF
35583/* confdefs.h. */
35584_ACEOF
35585cat confdefs.h >>conftest.$ac_ext
35586cat >>conftest.$ac_ext <<_ACEOF
35587/* end confdefs.h. */
35588
35589 #include <sys/types.h>
35590 #include <sys/socket.h>
35591
35592int
35593main ()
35594{
35595
35596 int len;
35597 getsockname(0, 0, &len);
35598
35599 ;
35600 return 0;
35601}
35602_ACEOF
35603rm -f conftest.$ac_objext
35604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35605 (eval $ac_compile) 2>conftest.er1
a848cd7e 35606 ac_status=$?
ac1cb8d3
VS
35607 grep -v '^ *+' conftest.er1 >conftest.err
35608 rm -f conftest.er1
35609 cat conftest.err >&5
a848cd7e
SC
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); } &&
ea7db9ff
DE
35612 { ac_try='test -z "$ac_c_werror_flag"
35613 || test ! -s conftest.err'
ac1cb8d3
VS
35614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35615 (eval $ac_try) 2>&5
35616 ac_status=$?
35617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618 (exit $ac_status); }; } &&
35619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621 (eval $ac_try) 2>&5
35622 ac_status=$?
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); }; }; then
35625 wx_cv_type_getsockname3=int
35626else
35627 echo "$as_me: failed program was:" >&5
35628sed 's/^/| /' conftest.$ac_ext >&5
35629
35630wx_cv_type_getsockname3=unknown
35631
35632fi
ac1cb8d3 35633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35634
35635fi
ac1cb8d3 35636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35637
35638 CFLAGS="$CFLAGS_OLD"
35639
35640
35641fi
ac1cb8d3 35642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35643
35644fi
35645echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35646echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35647
35648 if test "$wx_cv_type_getsockname3" = "unknown"; then
35649 wxUSE_SOCKETS=no
35650 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35651echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35652 else
35653 cat >>confdefs.h <<_ACEOF
35654#define SOCKLEN_T $wx_cv_type_getsockname3
35655_ACEOF
35656
35657 fi
35658 fi
35659fi
35660
35661if test "$wxUSE_SOCKETS" = "yes" ; then
35662 cat >>confdefs.h <<\_ACEOF
35663#define wxUSE_SOCKETS 1
35664_ACEOF
35665
35666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35667fi
35668
35669if test "$wxUSE_PROTOCOL" = "yes"; then
35670 if test "$wxUSE_SOCKETS" != "yes"; then
35671 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35672echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35673 wxUSE_PROTOCOL=no
35674 fi
35675fi
35676
35677if test "$wxUSE_PROTOCOL" = "yes"; then
35678 cat >>confdefs.h <<\_ACEOF
35679#define wxUSE_PROTOCOL 1
35680_ACEOF
35681
35682
35683 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35684 cat >>confdefs.h <<\_ACEOF
35685#define wxUSE_PROTOCOL_HTTP 1
35686_ACEOF
35687
35688 fi
35689 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35690 cat >>confdefs.h <<\_ACEOF
35691#define wxUSE_PROTOCOL_FTP 1
35692_ACEOF
35693
35694 fi
35695 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35696 cat >>confdefs.h <<\_ACEOF
35697#define wxUSE_PROTOCOL_FILE 1
35698_ACEOF
35699
35700 fi
35701else
35702 if test "$wxUSE_FS_INET" = "yes"; then
35703 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35704echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35705 wxUSE_FS_INET="no"
35706 fi
35707fi
35708
35709if test "$wxUSE_URL" = "yes"; then
35710 if test "$wxUSE_PROTOCOL" != "yes"; then
35711 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35712echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35713 wxUSE_URL=no
35714 fi
35715 if test "$wxUSE_URL" = "yes"; then
35716 cat >>confdefs.h <<\_ACEOF
35717#define wxUSE_URL 1
35718_ACEOF
35719
35720 fi
35721fi
35722
35723if test "$wxUSE_FS_INET" = "yes"; then
35724 cat >>confdefs.h <<\_ACEOF
35725#define wxUSE_FS_INET 1
35726_ACEOF
35727
35728fi
35729
35730
35731if test "$wxUSE_GUI" = "yes"; then
35732
35733 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35734 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35735echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35736 wxUSE_JOYSTICK=no
35737 fi
35738
35739 if test "$TOOLKIT" != "MSW"; then
35740 if test "$wxUSE_JOYSTICK" = "yes"; then
35741
35742for ac_header in linux/joystick.h
35743do
35744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35745if eval "test \"\${$as_ac_Header+set}\" = set"; then
35746 echo "$as_me:$LINENO: checking for $ac_header" >&5
35747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35748if eval "test \"\${$as_ac_Header+set}\" = set"; then
35749 echo $ECHO_N "(cached) $ECHO_C" >&6
35750fi
35751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35753else
35754 # Is the header compilable?
35755echo "$as_me:$LINENO: checking $ac_header usability" >&5
35756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35757cat >conftest.$ac_ext <<_ACEOF
35758/* confdefs.h. */
35759_ACEOF
35760cat confdefs.h >>conftest.$ac_ext
35761cat >>conftest.$ac_ext <<_ACEOF
35762/* end confdefs.h. */
35763$ac_includes_default
35764#include <$ac_header>
35765_ACEOF
35766rm -f conftest.$ac_objext
35767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35768 (eval $ac_compile) 2>conftest.er1
a848cd7e 35769 ac_status=$?
ac1cb8d3
VS
35770 grep -v '^ *+' conftest.er1 >conftest.err
35771 rm -f conftest.er1
35772 cat conftest.err >&5
a848cd7e
SC
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); } &&
ea7db9ff
DE
35775 { ac_try='test -z "$ac_c_werror_flag"
35776 || test ! -s conftest.err'
ac1cb8d3
VS
35777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35778 (eval $ac_try) 2>&5
35779 ac_status=$?
35780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); }; } &&
35782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35784 (eval $ac_try) 2>&5
35785 ac_status=$?
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); }; }; then
35788 ac_header_compiler=yes
35789else
35790 echo "$as_me: failed program was:" >&5
35791sed 's/^/| /' conftest.$ac_ext >&5
35792
35793ac_header_compiler=no
35794fi
ac1cb8d3 35795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35797echo "${ECHO_T}$ac_header_compiler" >&6
35798
35799# Is the header present?
35800echo "$as_me:$LINENO: checking $ac_header presence" >&5
35801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35802cat >conftest.$ac_ext <<_ACEOF
35803/* confdefs.h. */
35804_ACEOF
35805cat confdefs.h >>conftest.$ac_ext
35806cat >>conftest.$ac_ext <<_ACEOF
35807/* end confdefs.h. */
35808#include <$ac_header>
35809_ACEOF
35810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35812 ac_status=$?
35813 grep -v '^ *+' conftest.er1 >conftest.err
35814 rm -f conftest.er1
35815 cat conftest.err >&5
35816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817 (exit $ac_status); } >/dev/null; then
35818 if test -s conftest.err; then
35819 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35821 else
35822 ac_cpp_err=
35823 fi
35824else
35825 ac_cpp_err=yes
35826fi
35827if test -z "$ac_cpp_err"; then
35828 ac_header_preproc=yes
35829else
35830 echo "$as_me: failed program was:" >&5
35831sed 's/^/| /' conftest.$ac_ext >&5
35832
35833 ac_header_preproc=no
35834fi
35835rm -f conftest.err conftest.$ac_ext
35836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35837echo "${ECHO_T}$ac_header_preproc" >&6
35838
35839# So? What about this header?
ac1cb8d3
VS
35840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35841 yes:no: )
a848cd7e
SC
35842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35846 ac_header_preproc=yes
a848cd7e 35847 ;;
ac1cb8d3 35848 no:yes:* )
a848cd7e
SC
35849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35852echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35856echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35861 (
35862 cat <<\_ASBOX
ac1cb8d3
VS
35863## ----------------------------------------- ##
35864## Report this to wx-dev@lists.wxwidgets.org ##
35865## ----------------------------------------- ##
a848cd7e
SC
35866_ASBOX
35867 ) |
35868 sed "s/^/$as_me: WARNING: /" >&2
35869 ;;
35870esac
35871echo "$as_me:$LINENO: checking for $ac_header" >&5
35872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35873if eval "test \"\${$as_ac_Header+set}\" = set"; then
35874 echo $ECHO_N "(cached) $ECHO_C" >&6
35875else
ac1cb8d3 35876 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35877fi
35878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35880
35881fi
35882if test `eval echo '${'$as_ac_Header'}'` = yes; then
35883 cat >>confdefs.h <<_ACEOF
35884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35885_ACEOF
35886
35887fi
35888
35889done
35890
35891 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35892 wxUSE_JOYSTICK=no
35893 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35894echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35895 fi
35896 fi
35897 fi
35898
35899 if test "$wxUSE_JOYSTICK" = "yes"; then
35900 cat >>confdefs.h <<\_ACEOF
35901#define wxUSE_JOYSTICK 1
35902_ACEOF
35903
35904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35905 fi
35906fi
35907
35908
35909
35910if test "$wxUSE_FONTMAP" = "yes" ; then
35911 cat >>confdefs.h <<\_ACEOF
35912#define wxUSE_FONTMAP 1
35913_ACEOF
35914
35915fi
35916
35917if test "$wxUSE_UNICODE" = "yes" ; then
35918 cat >>confdefs.h <<\_ACEOF
35919#define wxUSE_UNICODE 1
35920_ACEOF
35921
35922
35923 if test "$USE_WIN32" != 1; then
35924 wxUSE_UNICODE_MSLU=no
35925 fi
35926
35927 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35928 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35929echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35930if test "${ac_cv_lib_unicows_main+set}" = set; then
35931 echo $ECHO_N "(cached) $ECHO_C" >&6
35932else
35933 ac_check_lib_save_LIBS=$LIBS
35934LIBS="-lunicows $LIBS"
35935cat >conftest.$ac_ext <<_ACEOF
35936/* confdefs.h. */
35937_ACEOF
35938cat confdefs.h >>conftest.$ac_ext
35939cat >>conftest.$ac_ext <<_ACEOF
35940/* end confdefs.h. */
35941
35942
35943int
35944main ()
35945{
35946main ();
35947 ;
35948 return 0;
35949}
35950_ACEOF
35951rm -f conftest.$ac_objext conftest$ac_exeext
35952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35953 (eval $ac_link) 2>conftest.er1
a848cd7e 35954 ac_status=$?
ac1cb8d3
VS
35955 grep -v '^ *+' conftest.er1 >conftest.err
35956 rm -f conftest.er1
35957 cat conftest.err >&5
a848cd7e
SC
35958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959 (exit $ac_status); } &&
ea7db9ff
DE
35960 { ac_try='test -z "$ac_c_werror_flag"
35961 || test ! -s conftest.err'
ac1cb8d3
VS
35962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35963 (eval $ac_try) 2>&5
35964 ac_status=$?
35965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35966 (exit $ac_status); }; } &&
35967 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35969 (eval $ac_try) 2>&5
35970 ac_status=$?
35971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35972 (exit $ac_status); }; }; then
35973 ac_cv_lib_unicows_main=yes
35974else
35975 echo "$as_me: failed program was:" >&5
35976sed 's/^/| /' conftest.$ac_ext >&5
35977
35978ac_cv_lib_unicows_main=no
35979fi
ac1cb8d3
VS
35980rm -f conftest.err conftest.$ac_objext \
35981 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35982LIBS=$ac_check_lib_save_LIBS
35983fi
35984echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35985echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35986if test $ac_cv_lib_unicows_main = yes; then
35987
35988 cat >>confdefs.h <<\_ACEOF
35989#define wxUSE_UNICODE_MSLU 1
35990_ACEOF
35991
35992
35993else
35994
35995 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35996 Applications will only run on Windows NT/2000/XP!" >&5
35997echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35998 Applications will only run on Windows NT/2000/XP!" >&2;}
35999 wxUSE_UNICODE_MSLU=no
36000
36001fi
36002
36003 fi
36004fi
36005
36006if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36007 cat >>confdefs.h <<\_ACEOF
36008#define wxUSE_EXPERIMENTAL_PRINTF 1
36009_ACEOF
36010
36011fi
36012
36013
36014if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36015 cat >>confdefs.h <<\_ACEOF
36016#define wxUSE_POSTSCRIPT 1
36017_ACEOF
36018
36019fi
36020
36021cat >>confdefs.h <<\_ACEOF
36022#define wxUSE_AFM_FOR_POSTSCRIPT 1
36023_ACEOF
36024
36025
36026cat >>confdefs.h <<\_ACEOF
36027#define wxUSE_NORMALIZED_PS_FONTS 1
36028_ACEOF
36029
36030
36031
36032if test "$wxUSE_CONSTRAINTS" = "yes"; then
36033 cat >>confdefs.h <<\_ACEOF
36034#define wxUSE_CONSTRAINTS 1
36035_ACEOF
36036
36037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36038fi
36039
8a7b1113
VZ
36040if test "$wxUSE_MDI" = "yes"; then
36041 cat >>confdefs.h <<\_ACEOF
36042#define wxUSE_MDI 1
36043_ACEOF
36044
36045
36046 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36047 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36048#define wxUSE_MDI_ARCHITECTURE 1
36049_ACEOF
36050
8a7b1113
VZ
36051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36052 fi
a848cd7e
SC
36053fi
36054
36055if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36056 cat >>confdefs.h <<\_ACEOF
36057#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36058_ACEOF
36059
36060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36061 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36063 fi
36064fi
36065
36066if test "$wxUSE_HELP" = "yes"; then
36067 cat >>confdefs.h <<\_ACEOF
36068#define wxUSE_HELP 1
36069_ACEOF
36070
36071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36072
36073 if test "$wxUSE_MSW" = 1; then
36074 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36075 cat >>confdefs.h <<\_ACEOF
36076#define wxUSE_MS_HTML_HELP 1
36077_ACEOF
36078
36079 fi
36080 fi
36081
36082 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36083 if test "$wxUSE_HTML" = "yes"; then
36084 cat >>confdefs.h <<\_ACEOF
36085#define wxUSE_WXHTML_HELP 1
36086_ACEOF
36087
36088 else
36089 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36090echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36091 wxUSE_WXHTML_HELP=no
36092 fi
36093 fi
36094fi
36095
36096if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36097 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36098 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36099echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36100 else
36101 cat >>confdefs.h <<\_ACEOF
36102#define wxUSE_PRINTING_ARCHITECTURE 1
36103_ACEOF
36104
36105 fi
36106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36107fi
36108
36109if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36110 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36111echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36112 { (exit 1); exit 1; }; }
36113fi
36114
36115
36116if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36117 -o "$wxUSE_CLIPBOARD" = "yes" \
36118 -o "$wxUSE_OLE" = "yes" \
36119 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36120
36121for ac_header in ole2.h
36122do
36123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36124if eval "test \"\${$as_ac_Header+set}\" = set"; then
36125 echo "$as_me:$LINENO: checking for $ac_header" >&5
36126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36127if eval "test \"\${$as_ac_Header+set}\" = set"; then
36128 echo $ECHO_N "(cached) $ECHO_C" >&6
36129fi
36130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36132else
36133 # Is the header compilable?
36134echo "$as_me:$LINENO: checking $ac_header usability" >&5
36135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36136cat >conftest.$ac_ext <<_ACEOF
36137/* confdefs.h. */
36138_ACEOF
36139cat confdefs.h >>conftest.$ac_ext
36140cat >>conftest.$ac_ext <<_ACEOF
36141/* end confdefs.h. */
36142$ac_includes_default
36143#include <$ac_header>
36144_ACEOF
36145rm -f conftest.$ac_objext
36146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36147 (eval $ac_compile) 2>conftest.er1
a848cd7e 36148 ac_status=$?
ac1cb8d3
VS
36149 grep -v '^ *+' conftest.er1 >conftest.err
36150 rm -f conftest.er1
36151 cat conftest.err >&5
a848cd7e
SC
36152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); } &&
ea7db9ff
DE
36154 { ac_try='test -z "$ac_c_werror_flag"
36155 || test ! -s conftest.err'
ac1cb8d3
VS
36156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36157 (eval $ac_try) 2>&5
36158 ac_status=$?
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); }; } &&
36161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36163 (eval $ac_try) 2>&5
36164 ac_status=$?
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); }; }; then
36167 ac_header_compiler=yes
36168else
36169 echo "$as_me: failed program was:" >&5
36170sed 's/^/| /' conftest.$ac_ext >&5
36171
36172ac_header_compiler=no
36173fi
ac1cb8d3 36174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36176echo "${ECHO_T}$ac_header_compiler" >&6
36177
36178# Is the header present?
36179echo "$as_me:$LINENO: checking $ac_header presence" >&5
36180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36181cat >conftest.$ac_ext <<_ACEOF
36182/* confdefs.h. */
36183_ACEOF
36184cat confdefs.h >>conftest.$ac_ext
36185cat >>conftest.$ac_ext <<_ACEOF
36186/* end confdefs.h. */
36187#include <$ac_header>
36188_ACEOF
36189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36191 ac_status=$?
36192 grep -v '^ *+' conftest.er1 >conftest.err
36193 rm -f conftest.er1
36194 cat conftest.err >&5
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); } >/dev/null; then
36197 if test -s conftest.err; then
36198 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36200 else
36201 ac_cpp_err=
36202 fi
36203else
36204 ac_cpp_err=yes
36205fi
36206if test -z "$ac_cpp_err"; then
36207 ac_header_preproc=yes
36208else
36209 echo "$as_me: failed program was:" >&5
36210sed 's/^/| /' conftest.$ac_ext >&5
36211
36212 ac_header_preproc=no
36213fi
36214rm -f conftest.err conftest.$ac_ext
36215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36216echo "${ECHO_T}$ac_header_preproc" >&6
36217
36218# So? What about this header?
ac1cb8d3
VS
36219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36220 yes:no: )
a848cd7e
SC
36221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36225 ac_header_preproc=yes
a848cd7e 36226 ;;
ac1cb8d3 36227 no:yes:* )
a848cd7e
SC
36228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36240 (
36241 cat <<\_ASBOX
ac1cb8d3
VS
36242## ----------------------------------------- ##
36243## Report this to wx-dev@lists.wxwidgets.org ##
36244## ----------------------------------------- ##
a848cd7e
SC
36245_ASBOX
36246 ) |
36247 sed "s/^/$as_me: WARNING: /" >&2
36248 ;;
36249esac
36250echo "$as_me:$LINENO: checking for $ac_header" >&5
36251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36252if eval "test \"\${$as_ac_Header+set}\" = set"; then
36253 echo $ECHO_N "(cached) $ECHO_C" >&6
36254else
ac1cb8d3 36255 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36256fi
36257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36259
36260fi
36261if test `eval echo '${'$as_ac_Header'}'` = yes; then
36262 cat >>confdefs.h <<_ACEOF
36263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36264_ACEOF
36265
36266fi
36267
36268done
36269
36270
36271 if test "$ac_cv_header_ole2_h" = "yes" ; then
36272 if test "$GCC" = yes ; then
36273
36274
36275 ac_ext=cc
36276ac_cpp='$CXXCPP $CPPFLAGS'
36277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36280
36281
36282 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36283echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36284 cat >conftest.$ac_ext <<_ACEOF
36285/* confdefs.h. */
36286_ACEOF
36287cat confdefs.h >>conftest.$ac_ext
36288cat >>conftest.$ac_ext <<_ACEOF
36289/* end confdefs.h. */
36290#include <windows.h>
36291 #include <ole2.h>
36292int
36293main ()
36294{
36295
36296 ;
36297 return 0;
36298}
36299_ACEOF
36300rm -f conftest.$ac_objext
36301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36302 (eval $ac_compile) 2>conftest.er1
a848cd7e 36303 ac_status=$?
ac1cb8d3
VS
36304 grep -v '^ *+' conftest.er1 >conftest.err
36305 rm -f conftest.er1
36306 cat conftest.err >&5
a848cd7e
SC
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); } &&
ea7db9ff
DE
36309 { ac_try='test -z "$ac_cxx_werror_flag"
36310 || test ! -s conftest.err'
ac1cb8d3
VS
36311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36312 (eval $ac_try) 2>&5
36313 ac_status=$?
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); }; } &&
36316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36318 (eval $ac_try) 2>&5
36319 ac_status=$?
36320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321 (exit $ac_status); }; }; then
36322 echo "$as_me:$LINENO: result: no" >&5
36323echo "${ECHO_T}no" >&6
36324else
36325 echo "$as_me: failed program was:" >&5
36326sed 's/^/| /' conftest.$ac_ext >&5
36327
36328echo "$as_me:$LINENO: result: yes" >&5
36329echo "${ECHO_T}yes" >&6
36330 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36331fi
ac1cb8d3 36332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36333 ac_ext=c
36334ac_cpp='$CPP $CPPFLAGS'
36335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36337ac_compiler_gnu=$ac_cv_c_compiler_gnu
36338
36339 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36340 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36341 if test "$wxUSE_OLE" = "yes" ; then
36342 cat >>confdefs.h <<\_ACEOF
36343#define wxUSE_OLE 1
36344_ACEOF
36345
36346 fi
36347 fi
36348
36349 if test "$wxUSE_DATAOBJ" = "yes" ; then
36350 cat >>confdefs.h <<\_ACEOF
36351#define wxUSE_DATAOBJ 1
36352_ACEOF
36353
36354 fi
36355 else
36356 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36357echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36358
36359 wxUSE_CLIPBOARD=no
36360 wxUSE_DRAG_AND_DROP=no
36361 wxUSE_DATAOBJ=no
36362 wxUSE_OLE=no
36363 fi
36364
36365 if test "$wxUSE_METAFILE" = "yes"; then
36366 cat >>confdefs.h <<\_ACEOF
36367#define wxUSE_METAFILE 1
36368_ACEOF
36369
36370
36371 cat >>confdefs.h <<\_ACEOF
36372#define wxUSE_ENH_METAFILE 1
36373_ACEOF
36374
36375 fi
36376fi
36377
36378if test "$wxUSE_IPC" = "yes"; then
36379 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36380 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36381echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36382 fi
36383
36384 cat >>confdefs.h <<\_ACEOF
36385#define wxUSE_IPC 1
36386_ACEOF
36387
36388fi
36389
36390if test "$wxUSE_CLIPBOARD" = "yes"; then
36391 if test "$wxUSE_MGL" = 1; then
36392 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36393echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36394 wxUSE_CLIPBOARD=no
36395 fi
36396
36397 if test "$wxUSE_CLIPBOARD" = "yes"; then
36398 cat >>confdefs.h <<\_ACEOF
36399#define wxUSE_CLIPBOARD 1
36400_ACEOF
36401
36402
36403 cat >>confdefs.h <<\_ACEOF
36404#define wxUSE_DATAOBJ 1
36405_ACEOF
36406
36407 fi
36408fi
36409
36410if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36411 if test "$wxUSE_GTK" = 1; then
36412 if test "$WXGTK12" != 1; then
36413 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36414echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36415 wxUSE_DRAG_AND_DROP=no
36416 fi
36417 fi
36418
36419 if test "$wxUSE_MOTIF" = 1; then
36420 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36421echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36422 wxUSE_DRAG_AND_DROP=no
36423 fi
36424
36425 if test "$wxUSE_X11" = 1; then
36426 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36427echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36428 wxUSE_DRAG_AND_DROP=no
36429 fi
36430
36431 if test "$wxUSE_MGL" = 1; then
36432 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36433echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36434 wxUSE_DRAG_AND_DROP=no
36435 fi
36436
36437 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36438 cat >>confdefs.h <<\_ACEOF
36439#define wxUSE_DRAG_AND_DROP 1
36440_ACEOF
36441
36442 fi
36443
36444fi
36445
36446if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36448fi
36449
36450if test "$wxUSE_SPLINES" = "yes" ; then
36451 cat >>confdefs.h <<\_ACEOF
36452#define wxUSE_SPLINES 1
36453_ACEOF
36454
36455fi
36456
36457
36458USES_CONTROLS=0
36459if test "$wxUSE_CONTROLS" = "yes"; then
36460 USES_CONTROLS=1
36461fi
36462
36463if test "$wxUSE_ACCEL" = "yes"; then
36464 cat >>confdefs.h <<\_ACEOF
36465#define wxUSE_ACCEL 1
36466_ACEOF
36467
36468 USES_CONTROLS=1
36469fi
36470
36471if test "$wxUSE_BUTTON" = "yes"; then
36472 cat >>confdefs.h <<\_ACEOF
36473#define wxUSE_BUTTON 1
36474_ACEOF
36475
36476 USES_CONTROLS=1
36477fi
36478
36479if test "$wxUSE_BMPBUTTON" = "yes"; then
36480 cat >>confdefs.h <<\_ACEOF
36481#define wxUSE_BMPBUTTON 1
36482_ACEOF
36483
36484 USES_CONTROLS=1
36485fi
36486
36487if test "$wxUSE_CALCTRL" = "yes"; then
36488 cat >>confdefs.h <<\_ACEOF
36489#define wxUSE_CALENDARCTRL 1
36490_ACEOF
36491
36492 USES_CONTROLS=1
36493 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36494fi
36495
36496if test "$wxUSE_CARET" = "yes"; then
36497 cat >>confdefs.h <<\_ACEOF
36498#define wxUSE_CARET 1
36499_ACEOF
36500
36501 USES_CONTROLS=1
36502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36503fi
36504
36505if test "$wxUSE_COMBOBOX" = "yes"; then
36506 cat >>confdefs.h <<\_ACEOF
36507#define wxUSE_COMBOBOX 1
36508_ACEOF
36509
36510 USES_CONTROLS=1
36511fi
36512
36513if test "$wxUSE_CHOICE" = "yes"; then
36514 cat >>confdefs.h <<\_ACEOF
36515#define wxUSE_CHOICE 1
36516_ACEOF
36517
36518 USES_CONTROLS=1
36519fi
36520
36521if test "$wxUSE_CHECKBOX" = "yes"; then
36522 cat >>confdefs.h <<\_ACEOF
36523#define wxUSE_CHECKBOX 1
36524_ACEOF
36525
36526 USES_CONTROLS=1
36527fi
36528
36529if test "$wxUSE_CHECKLST" = "yes"; then
36530 cat >>confdefs.h <<\_ACEOF
36531#define wxUSE_CHECKLISTBOX 1
36532_ACEOF
36533
36534 USES_CONTROLS=1
36535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36536fi
36537
36538if test "$wxUSE_DISPLAY" = "yes"; then
36539 cat >>confdefs.h <<\_ACEOF
36540#define wxUSE_DISPLAY 1
36541_ACEOF
36542
36543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36544fi
36545
36546if test "$wxUSE_GAUGE" = "yes"; then
36547 cat >>confdefs.h <<\_ACEOF
36548#define wxUSE_GAUGE 1
36549_ACEOF
36550
36551 USES_CONTROLS=1
36552fi
36553
36554if test "$wxUSE_GRID" = "yes"; then
36555 cat >>confdefs.h <<\_ACEOF
36556#define wxUSE_GRID 1
36557_ACEOF
36558
36559 USES_CONTROLS=1
36560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36561fi
36562
36563if test "$wxUSE_IMAGLIST" = "yes"; then
36564 cat >>confdefs.h <<\_ACEOF
36565#define wxUSE_IMAGLIST 1
36566_ACEOF
36567
36568fi
36569
36570if test "$wxUSE_LISTBOOK" = "yes"; then
36571 cat >>confdefs.h <<\_ACEOF
36572#define wxUSE_LISTBOOK 1
36573_ACEOF
36574
36575 USES_CONTROLS=1
36576fi
36577
36578if test "$wxUSE_LISTBOX" = "yes"; then
36579 cat >>confdefs.h <<\_ACEOF
36580#define wxUSE_LISTBOX 1
36581_ACEOF
36582
36583 USES_CONTROLS=1
36584fi
36585
36586if test "$wxUSE_LISTCTRL" = "yes"; then
36587 if test "$wxUSE_IMAGLIST" = "yes"; then
36588 cat >>confdefs.h <<\_ACEOF
36589#define wxUSE_LISTCTRL 1
36590_ACEOF
36591
36592 USES_CONTROLS=1
36593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36594 else
36595 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36596echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36597 fi
36598fi
36599
36600if test "$wxUSE_NOTEBOOK" = "yes"; then
36601 cat >>confdefs.h <<\_ACEOF
36602#define wxUSE_NOTEBOOK 1
36603_ACEOF
36604
36605 USES_CONTROLS=1
36606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36607fi
36608
36609
36610if test "$wxUSE_RADIOBOX" = "yes"; then
36611 cat >>confdefs.h <<\_ACEOF
36612#define wxUSE_RADIOBOX 1
36613_ACEOF
36614
36615 USES_CONTROLS=1
36616fi
36617
36618if test "$wxUSE_RADIOBTN" = "yes"; then
36619 cat >>confdefs.h <<\_ACEOF
36620#define wxUSE_RADIOBTN 1
36621_ACEOF
36622
36623 USES_CONTROLS=1
36624fi
36625
36626if test "$wxUSE_SASH" = "yes"; then
36627 cat >>confdefs.h <<\_ACEOF
36628#define wxUSE_SASH 1
36629_ACEOF
36630
36631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36632fi
36633
36634if test "$wxUSE_SCROLLBAR" = "yes"; then
36635 cat >>confdefs.h <<\_ACEOF
36636#define wxUSE_SCROLLBAR 1
36637_ACEOF
36638
36639 USES_CONTROLS=1
36640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36641fi
36642
36643if test "$wxUSE_SLIDER" = "yes"; then
36644 cat >>confdefs.h <<\_ACEOF
36645#define wxUSE_SLIDER 1
36646_ACEOF
36647
36648 USES_CONTROLS=1
36649fi
36650
36651if test "$wxUSE_SPINBTN" = "yes"; then
36652 cat >>confdefs.h <<\_ACEOF
36653#define wxUSE_SPINBTN 1
36654_ACEOF
36655
36656 USES_CONTROLS=1
36657fi
36658
36659if test "$wxUSE_SPINCTRL" = "yes"; then
36660 cat >>confdefs.h <<\_ACEOF
36661#define wxUSE_SPINCTRL 1
36662_ACEOF
36663
36664 USES_CONTROLS=1
36665fi
36666
36667if test "$wxUSE_SPLITTER" = "yes"; then
36668 cat >>confdefs.h <<\_ACEOF
36669#define wxUSE_SPLITTER 1
36670_ACEOF
36671
36672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36673fi
36674
36675if test "$wxUSE_STATBMP" = "yes"; then
36676 cat >>confdefs.h <<\_ACEOF
36677#define wxUSE_STATBMP 1
36678_ACEOF
36679
36680 USES_CONTROLS=1
36681fi
36682
36683if test "$wxUSE_STATBOX" = "yes"; then
36684 cat >>confdefs.h <<\_ACEOF
36685#define wxUSE_STATBOX 1
36686_ACEOF
36687
36688 USES_CONTROLS=1
36689fi
36690
36691if test "$wxUSE_STATTEXT" = "yes"; then
36692 cat >>confdefs.h <<\_ACEOF
36693#define wxUSE_STATTEXT 1
36694_ACEOF
36695
36696 USES_CONTROLS=1
36697fi
36698
36699if test "$wxUSE_STATLINE" = "yes"; then
36700 cat >>confdefs.h <<\_ACEOF
36701#define wxUSE_STATLINE 1
36702_ACEOF
36703
36704 USES_CONTROLS=1
36705fi
36706
36707if test "$wxUSE_STATUSBAR" = "yes"; then
36708 cat >>confdefs.h <<\_ACEOF
36709#define wxUSE_STATUSBAR 1
36710_ACEOF
36711
36712 USES_CONTROLS=1
36713
36714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36715fi
36716
36717if test "$wxUSE_TABDIALOG" = "yes"; then
36718 cat >>confdefs.h <<\_ACEOF
36719#define wxUSE_TAB_DIALOG 1
36720_ACEOF
36721
36722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36723fi
36724
36725if test "$wxUSE_TEXTCTRL" = "yes"; then
36726 cat >>confdefs.h <<\_ACEOF
36727#define wxUSE_TEXTCTRL 1
36728_ACEOF
36729
36730 USES_CONTROLS=1
36731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36732fi
36733
36734if test "$wxUSE_TOGGLEBTN" = "yes"; then
36735 if test "$wxUSE_COCOA" = 1 ; then
36736 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36737echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36738 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36739 else
36740 if test "$wxUSE_PM" = 1; then
36741 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36742echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36743 wxUSE_TOGGLEBTN=no
36744 fi
a848cd7e
SC
36745 fi
36746 if test "$wxUSE_UNIVERSAL" = "yes"; then
36747 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36748echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36749 wxUSE_TOGGLEBTN=no
36750 fi
36751
36752 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36753 cat >>confdefs.h <<\_ACEOF
36754#define wxUSE_TOGGLEBTN 1
36755_ACEOF
36756
36757 USES_CONTROLS=1
36758 fi
36759fi
36760
36761if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36762 cat >>confdefs.h <<\_ACEOF
36763#define wxUSE_TOOLBAR_SIMPLE 1
36764_ACEOF
36765
36766 wxUSE_TOOLBAR="yes"
36767 USES_CONTROLS=1
36768fi
36769
36770if test "$wxUSE_TOOLBAR" = "yes"; then
36771 cat >>confdefs.h <<\_ACEOF
36772#define wxUSE_TOOLBAR 1
36773_ACEOF
36774
36775 USES_CONTROLS=1
36776
36777 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36778 wxUSE_TOOLBAR_NATIVE="yes"
36779 fi
36780
36781 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36782 cat >>confdefs.h <<\_ACEOF
36783#define wxUSE_TOOLBAR_NATIVE 1
36784_ACEOF
36785
36786 USES_CONTROLS=1
36787 fi
36788
36789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36790fi
36791
36792if test "$wxUSE_TOOLTIPS" = "yes"; then
36793 if test "$wxUSE_MOTIF" = 1; then
36794 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36795echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36796 else
36797 if test "$wxUSE_UNIVERSAL" = "yes"; then
36798 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36799echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36800 else
36801 cat >>confdefs.h <<\_ACEOF
36802#define wxUSE_TOOLTIPS 1
36803_ACEOF
36804
36805 fi
36806 fi
36807fi
36808
36809if test "$wxUSE_TREECTRL" = "yes"; then
36810 if test "$wxUSE_IMAGLIST" = "yes"; then
36811 cat >>confdefs.h <<\_ACEOF
36812#define wxUSE_TREECTRL 1
36813_ACEOF
36814
36815 USES_CONTROLS=1
36816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36817 else
36818 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36819echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36820 fi
36821fi
36822
36823if test "$wxUSE_POPUPWIN" = "yes"; then
36824 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36825 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36826echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36827 else
36828 if test "$wxUSE_PM" = 1; then
36829 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36830echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36831 else
36832 cat >>confdefs.h <<\_ACEOF
36833#define wxUSE_POPUPWIN 1
36834_ACEOF
36835
36836
36837 USES_CONTROLS=1
36838 fi
36839 fi
36840fi
36841
36842if test "$wxUSE_TIPWINDOW" = "yes"; then
36843 if test "$wxUSE_PM" = 1; then
36844 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36845echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36846 else
36847 cat >>confdefs.h <<\_ACEOF
36848#define wxUSE_TIPWINDOW 1
36849_ACEOF
36850
36851 fi
36852fi
36853
36854if test "$USES_CONTROLS" = 1; then
36855 cat >>confdefs.h <<\_ACEOF
36856#define wxUSE_CONTROLS 1
36857_ACEOF
36858
36859fi
36860
36861
36862if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36863 cat >>confdefs.h <<\_ACEOF
36864#define wxUSE_ACCESSIBILITY 1
36865_ACEOF
36866
36867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36868fi
36869
36870if test "$wxUSE_DRAGIMAGE" = "yes"; then
36871 cat >>confdefs.h <<\_ACEOF
36872#define wxUSE_DRAGIMAGE 1
36873_ACEOF
36874
36875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36876fi
36877
36878if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36879 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36880 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36881echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36882 else
36883 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36884#define wxUSE_EXCEPTIONS 1
36885_ACEOF
36886
07bea8f0
VS
36887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36888 fi
a848cd7e
SC
36889fi
36890
36891USE_HTML=0
36892if test "$wxUSE_HTML" = "yes"; then
36893 cat >>confdefs.h <<\_ACEOF
36894#define wxUSE_HTML 1
36895_ACEOF
36896
36897 USE_HTML=1
36898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36899 if test "$wxUSE_MAC" = 1; then
36900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36901 fi
a848cd7e 36902fi
646b6ec1 36903if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36904 if test "$wxUSE_MAC" = 1; then
36905 old_CPPFLAGS="$CPPFLAGS"
36906 CPPFLAGS="$CPPFLAGS -x objective-c++"
36907 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36908echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36909if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36910 echo $ECHO_N "(cached) $ECHO_C" >&6
36911else
36912 cat >conftest.$ac_ext <<_ACEOF
36913/* confdefs.h. */
36914_ACEOF
36915cat confdefs.h >>conftest.$ac_ext
36916cat >>conftest.$ac_ext <<_ACEOF
36917/* end confdefs.h. */
36918#include <Carbon/Carbon.h>
36919
36920#include <WebKit/HIWebView.h>
36921_ACEOF
36922rm -f conftest.$ac_objext
36923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36924 (eval $ac_compile) 2>conftest.er1
36925 ac_status=$?
36926 grep -v '^ *+' conftest.er1 >conftest.err
36927 rm -f conftest.er1
36928 cat conftest.err >&5
36929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930 (exit $ac_status); } &&
ea7db9ff
DE
36931 { ac_try='test -z "$ac_c_werror_flag"
36932 || test ! -s conftest.err'
07bea8f0
VS
36933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36934 (eval $ac_try) 2>&5
36935 ac_status=$?
36936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937 (exit $ac_status); }; } &&
36938 { ac_try='test -s conftest.$ac_objext'
36939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36940 (eval $ac_try) 2>&5
36941 ac_status=$?
36942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); }; }; then
36944 ac_cv_header_WebKit_HIWebView_h=yes
36945else
36946 echo "$as_me: failed program was:" >&5
36947sed 's/^/| /' conftest.$ac_ext >&5
36948
36949ac_cv_header_WebKit_HIWebView_h=no
36950fi
36951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36952fi
36953echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36954echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36955if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36956
36957 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36958#define wxUSE_WEBKIT 1
36959_ACEOF
36960
07bea8f0
VS
36961 WEBKIT_LINK="-framework WebKit"
36962
36963else
36964
36965 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36966echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36967 wxUSE_WEBKIT=no
36968
646b6ec1
VS
36969fi
36970
07bea8f0
VS
36971
36972 CPPFLAGS="$old_CPPFLAGS"
36973 elif test "$wxUSE_COCOA" = 1; then
36974 cat >>confdefs.h <<\_ACEOF
36975#define wxUSE_WEBKIT 1
36976_ACEOF
36977
36978 else
36979 wxUSE_WEBKIT=no
36980 fi
36981fi
36982
36983
a848cd7e
SC
36984if test "$wxUSE_MENUS" = "yes"; then
36985 cat >>confdefs.h <<\_ACEOF
36986#define wxUSE_MENUS 1
36987_ACEOF
36988
36989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36990fi
36991
36992if test "$wxUSE_METAFILE" = "yes"; then
36993 cat >>confdefs.h <<\_ACEOF
36994#define wxUSE_METAFILE 1
36995_ACEOF
36996
36997fi
36998
36999if test "$wxUSE_MIMETYPE" = "yes"; then
37000 cat >>confdefs.h <<\_ACEOF
37001#define wxUSE_MIMETYPE 1
37002_ACEOF
37003
37004fi
37005
37006if test "$wxUSE_MINIFRAME" = "yes"; then
37007 cat >>confdefs.h <<\_ACEOF
37008#define wxUSE_MINIFRAME 1
37009_ACEOF
37010
37011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37012fi
37013
37014if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37015 cat >>confdefs.h <<\_ACEOF
37016#define wxUSE_SYSTEM_OPTIONS 1
37017_ACEOF
37018
37019 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37020 "$TOOLKIT" = "MOTIF"; then
37021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37022 fi
37023fi
37024
37025
37026if test "$wxUSE_VALIDATORS" = "yes"; then
37027 cat >>confdefs.h <<\_ACEOF
37028#define wxUSE_VALIDATORS 1
37029_ACEOF
37030
37031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37032fi
37033
37034if test "$wxUSE_PALETTE" = "yes" ; then
37035 cat >>confdefs.h <<\_ACEOF
37036#define wxUSE_PALETTE 1
37037_ACEOF
37038
37039fi
37040
37041if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37042 LIBS=" -lunicows $LIBS"
37043fi
37044
37045
37046if test "$wxUSE_IMAGE" = "yes" ; then
37047 cat >>confdefs.h <<\_ACEOF
37048#define wxUSE_IMAGE 1
37049_ACEOF
37050
37051
37052 if test "$wxUSE_GIF" = "yes" ; then
37053 cat >>confdefs.h <<\_ACEOF
37054#define wxUSE_GIF 1
37055_ACEOF
37056
37057 fi
37058
37059 if test "$wxUSE_PCX" = "yes" ; then
37060 cat >>confdefs.h <<\_ACEOF
37061#define wxUSE_PCX 1
37062_ACEOF
37063
37064 fi
37065
37066 if test "$wxUSE_IFF" = "yes" ; then
37067 cat >>confdefs.h <<\_ACEOF
37068#define wxUSE_IFF 1
37069_ACEOF
37070
37071 fi
37072
37073 if test "$wxUSE_PNM" = "yes" ; then
37074 cat >>confdefs.h <<\_ACEOF
37075#define wxUSE_PNM 1
37076_ACEOF
37077
37078 fi
37079
37080 if test "$wxUSE_XPM" = "yes" ; then
37081 cat >>confdefs.h <<\_ACEOF
37082#define wxUSE_XPM 1
37083_ACEOF
37084
37085 fi
37086
37087 if test "$wxUSE_ICO_CUR" = "yes" ; then
37088 cat >>confdefs.h <<\_ACEOF
37089#define wxUSE_ICO_CUR 1
37090_ACEOF
37091
37092 fi
37093fi
37094
37095
37096if test "$wxUSE_CHOICEDLG" = "yes"; then
37097 cat >>confdefs.h <<\_ACEOF
37098#define wxUSE_CHOICEDLG 1
37099_ACEOF
37100
37101fi
37102
37103if test "$wxUSE_COLOURDLG" = "yes"; then
37104 cat >>confdefs.h <<\_ACEOF
37105#define wxUSE_COLOURDLG 1
37106_ACEOF
37107
37108fi
37109
37110if test "$wxUSE_FILEDLG" = "yes"; then
37111 cat >>confdefs.h <<\_ACEOF
37112#define wxUSE_FILEDLG 1
37113_ACEOF
37114
37115fi
37116
37117if test "$wxUSE_FINDREPLDLG" = "yes"; then
37118 cat >>confdefs.h <<\_ACEOF
37119#define wxUSE_FINDREPLDLG 1
37120_ACEOF
37121
37122fi
37123
37124if test "$wxUSE_FONTDLG" = "yes"; then
37125 cat >>confdefs.h <<\_ACEOF
37126#define wxUSE_FONTDLG 1
37127_ACEOF
37128
37129fi
37130
37131if test "$wxUSE_DIRDLG" = "yes"; then
37132 if test "$wxUSE_TREECTRL" != "yes"; then
37133 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37134echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37135 else
37136 cat >>confdefs.h <<\_ACEOF
37137#define wxUSE_DIRDLG 1
37138_ACEOF
37139
37140 fi
37141fi
37142
37143if test "$wxUSE_MSGDLG" = "yes"; then
37144 cat >>confdefs.h <<\_ACEOF
37145#define wxUSE_MSGDLG 1
37146_ACEOF
37147
37148fi
37149
37150if test "$wxUSE_NUMBERDLG" = "yes"; then
37151 cat >>confdefs.h <<\_ACEOF
37152#define wxUSE_NUMBERDLG 1
37153_ACEOF
37154
37155fi
37156
37157if test "$wxUSE_PROGRESSDLG" = "yes"; then
37158 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37159 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37160echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37161 else
37162 cat >>confdefs.h <<\_ACEOF
37163#define wxUSE_PROGRESSDLG 1
37164_ACEOF
37165
37166 fi
37167fi
37168
37169if test "$wxUSE_SPLASH" = "yes"; then
37170 cat >>confdefs.h <<\_ACEOF
37171#define wxUSE_SPLASH 1
37172_ACEOF
37173
37174fi
37175
37176if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37177 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37178 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37179echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37180 else
37181 cat >>confdefs.h <<\_ACEOF
37182#define wxUSE_STARTUP_TIPS 1
37183_ACEOF
37184
37185 fi
37186fi
37187
37188if test "$wxUSE_TEXTDLG" = "yes"; then
37189 cat >>confdefs.h <<\_ACEOF
37190#define wxUSE_TEXTDLG 1
37191_ACEOF
37192
37193fi
37194
37195if test "$wxUSE_WIZARDDLG" = "yes"; then
37196 cat >>confdefs.h <<\_ACEOF
37197#define wxUSE_WIZARDDLG 1
37198_ACEOF
37199
37200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37201fi
37202
37203
37204if test "$cross_compiling" = "yes"; then
37205 OSINFO="\"$host\""
37206else
37207 OSINFO=`uname -s -r -m`
37208 OSINFO="\"$OSINFO\""
37209fi
37210
37211cat >>confdefs.h <<_ACEOF
37212#define WXWIN_OS_DESCRIPTION $OSINFO
37213_ACEOF
37214
37215
37216
37217if test "x$prefix" != "xNONE"; then
37218 wxPREFIX=$prefix
37219else
37220 wxPREFIX=$ac_default_prefix
37221fi
37222
37223cat >>confdefs.h <<_ACEOF
37224#define wxINSTALL_PREFIX "$wxPREFIX"
37225_ACEOF
37226
37227
37228top_builddir_wxconfig=`pwd`
37229
37230
37231
37232CORE_BASE_LIBS="net base"
37233CORE_GUI_LIBS="adv core"
37234
37235if test "$wxUSE_XML" = "yes" ; then
37236 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37237fi
37238if test "$wxUSE_ODBC" != "no" ; then
37239 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37240 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37241fi
37242if test "$wxUSE_HTML" = "yes" ; then
37243 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37244fi
37245
37246if test "$wxUSE_GUI" != "yes"; then
37247 CORE_GUI_LIBS=""
37248fi
37249
37250
37251
37252
37253
37254
37255
37256
37257if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37258 if test "$wxUSE_SOUND" = "yes"; then
37259 LDFLAGS="$LDFLAGS -framework QuickTime"
37260 fi
37261 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37262fi
37263if test "$wxUSE_COCOA" = 1 ; then
37264 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37265fi
37266
37267
37268LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37269
37270have_cos=0
37271have_floor=0
37272
37273for ac_func in cos
37274do
37275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37276echo "$as_me:$LINENO: checking for $ac_func" >&5
37277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37278if eval "test \"\${$as_ac_var+set}\" = set"; then
37279 echo $ECHO_N "(cached) $ECHO_C" >&6
37280else
37281 cat >conftest.$ac_ext <<_ACEOF
37282/* confdefs.h. */
37283_ACEOF
37284cat confdefs.h >>conftest.$ac_ext
37285cat >>conftest.$ac_ext <<_ACEOF
37286/* end confdefs.h. */
ac1cb8d3
VS
37287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37289#define $ac_func innocuous_$ac_func
37290
a848cd7e
SC
37291/* System header to define __stub macros and hopefully few prototypes,
37292 which can conflict with char $ac_func (); below.
37293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37294 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37295
a848cd7e
SC
37296#ifdef __STDC__
37297# include <limits.h>
37298#else
37299# include <assert.h>
37300#endif
ac1cb8d3
VS
37301
37302#undef $ac_func
37303
a848cd7e
SC
37304/* Override any gcc2 internal prototype to avoid an error. */
37305#ifdef __cplusplus
37306extern "C"
37307{
37308#endif
37309/* We use char because int might match the return type of a gcc2
37310 builtin and then its argument prototype would still apply. */
37311char $ac_func ();
37312/* The GNU C library defines this for functions which it implements
37313 to always fail with ENOSYS. Some functions are actually named
37314 something starting with __ and the normal name is an alias. */
37315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37316choke me
37317#else
37318char (*f) () = $ac_func;
37319#endif
37320#ifdef __cplusplus
37321}
37322#endif
37323
37324int
37325main ()
37326{
37327return f != $ac_func;
37328 ;
37329 return 0;
37330}
37331_ACEOF
37332rm -f conftest.$ac_objext conftest$ac_exeext
37333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37334 (eval $ac_link) 2>conftest.er1
a848cd7e 37335 ac_status=$?
ac1cb8d3
VS
37336 grep -v '^ *+' conftest.er1 >conftest.err
37337 rm -f conftest.er1
37338 cat conftest.err >&5
a848cd7e
SC
37339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); } &&
ea7db9ff
DE
37341 { ac_try='test -z "$ac_c_werror_flag"
37342 || test ! -s conftest.err'
ac1cb8d3
VS
37343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344 (eval $ac_try) 2>&5
37345 ac_status=$?
37346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347 (exit $ac_status); }; } &&
37348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350 (eval $ac_try) 2>&5
37351 ac_status=$?
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); }; }; then
37354 eval "$as_ac_var=yes"
37355else
37356 echo "$as_me: failed program was:" >&5
37357sed 's/^/| /' conftest.$ac_ext >&5
37358
37359eval "$as_ac_var=no"
37360fi
ac1cb8d3
VS
37361rm -f conftest.err conftest.$ac_objext \
37362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37363fi
37364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37365echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37366if test `eval echo '${'$as_ac_var'}'` = yes; then
37367 cat >>confdefs.h <<_ACEOF
37368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37369_ACEOF
37370 have_cos=1
37371fi
37372done
37373
37374
37375for ac_func in floor
37376do
37377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37378echo "$as_me:$LINENO: checking for $ac_func" >&5
37379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37380if eval "test \"\${$as_ac_var+set}\" = set"; then
37381 echo $ECHO_N "(cached) $ECHO_C" >&6
37382else
37383 cat >conftest.$ac_ext <<_ACEOF
37384/* confdefs.h. */
37385_ACEOF
37386cat confdefs.h >>conftest.$ac_ext
37387cat >>conftest.$ac_ext <<_ACEOF
37388/* end confdefs.h. */
ac1cb8d3
VS
37389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37391#define $ac_func innocuous_$ac_func
37392
a848cd7e
SC
37393/* System header to define __stub macros and hopefully few prototypes,
37394 which can conflict with char $ac_func (); below.
37395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37396 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37397
a848cd7e
SC
37398#ifdef __STDC__
37399# include <limits.h>
37400#else
37401# include <assert.h>
37402#endif
ac1cb8d3
VS
37403
37404#undef $ac_func
37405
a848cd7e
SC
37406/* Override any gcc2 internal prototype to avoid an error. */
37407#ifdef __cplusplus
37408extern "C"
37409{
37410#endif
37411/* We use char because int might match the return type of a gcc2
37412 builtin and then its argument prototype would still apply. */
37413char $ac_func ();
37414/* The GNU C library defines this for functions which it implements
37415 to always fail with ENOSYS. Some functions are actually named
37416 something starting with __ and the normal name is an alias. */
37417#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37418choke me
37419#else
37420char (*f) () = $ac_func;
37421#endif
37422#ifdef __cplusplus
37423}
37424#endif
37425
37426int
37427main ()
37428{
37429return f != $ac_func;
37430 ;
37431 return 0;
37432}
37433_ACEOF
37434rm -f conftest.$ac_objext conftest$ac_exeext
37435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37436 (eval $ac_link) 2>conftest.er1
a848cd7e 37437 ac_status=$?
ac1cb8d3
VS
37438 grep -v '^ *+' conftest.er1 >conftest.err
37439 rm -f conftest.er1
37440 cat conftest.err >&5
a848cd7e
SC
37441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442 (exit $ac_status); } &&
ea7db9ff
DE
37443 { ac_try='test -z "$ac_c_werror_flag"
37444 || test ! -s conftest.err'
ac1cb8d3
VS
37445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37446 (eval $ac_try) 2>&5
37447 ac_status=$?
37448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37449 (exit $ac_status); }; } &&
37450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37452 (eval $ac_try) 2>&5
37453 ac_status=$?
37454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37455 (exit $ac_status); }; }; then
37456 eval "$as_ac_var=yes"
37457else
37458 echo "$as_me: failed program was:" >&5
37459sed 's/^/| /' conftest.$ac_ext >&5
37460
37461eval "$as_ac_var=no"
37462fi
ac1cb8d3
VS
37463rm -f conftest.err conftest.$ac_objext \
37464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37465fi
37466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37467echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37468if test `eval echo '${'$as_ac_var'}'` = yes; then
37469 cat >>confdefs.h <<_ACEOF
37470#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37471_ACEOF
37472 have_floor=1
37473fi
37474done
37475
37476echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37477echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37478if test "$have_cos" = 1 -a "$have_floor" = 1; then
37479 echo "$as_me:$LINENO: result: yes" >&5
37480echo "${ECHO_T}yes" >&6
37481else
37482 echo "$as_me:$LINENO: result: no" >&5
37483echo "${ECHO_T}no" >&6
37484 LIBS="$LIBS -lm"
37485 # use different functions to avoid configure caching
37486 have_sin=0
37487 have_ceil=0
37488
37489for ac_func in sin
37490do
37491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37492echo "$as_me:$LINENO: checking for $ac_func" >&5
37493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37494if eval "test \"\${$as_ac_var+set}\" = set"; then
37495 echo $ECHO_N "(cached) $ECHO_C" >&6
37496else
37497 cat >conftest.$ac_ext <<_ACEOF
37498/* confdefs.h. */
37499_ACEOF
37500cat confdefs.h >>conftest.$ac_ext
37501cat >>conftest.$ac_ext <<_ACEOF
37502/* end confdefs.h. */
ac1cb8d3
VS
37503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37505#define $ac_func innocuous_$ac_func
37506
a848cd7e
SC
37507/* System header to define __stub macros and hopefully few prototypes,
37508 which can conflict with char $ac_func (); below.
37509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37510 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37511
a848cd7e
SC
37512#ifdef __STDC__
37513# include <limits.h>
37514#else
37515# include <assert.h>
37516#endif
ac1cb8d3
VS
37517
37518#undef $ac_func
37519
a848cd7e
SC
37520/* Override any gcc2 internal prototype to avoid an error. */
37521#ifdef __cplusplus
37522extern "C"
37523{
37524#endif
37525/* We use char because int might match the return type of a gcc2
37526 builtin and then its argument prototype would still apply. */
37527char $ac_func ();
37528/* The GNU C library defines this for functions which it implements
37529 to always fail with ENOSYS. Some functions are actually named
37530 something starting with __ and the normal name is an alias. */
37531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37532choke me
37533#else
37534char (*f) () = $ac_func;
37535#endif
37536#ifdef __cplusplus
37537}
37538#endif
37539
37540int
37541main ()
37542{
37543return f != $ac_func;
37544 ;
37545 return 0;
37546}
37547_ACEOF
37548rm -f conftest.$ac_objext conftest$ac_exeext
37549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37550 (eval $ac_link) 2>conftest.er1
a848cd7e 37551 ac_status=$?
ac1cb8d3
VS
37552 grep -v '^ *+' conftest.er1 >conftest.err
37553 rm -f conftest.er1
37554 cat conftest.err >&5
a848cd7e
SC
37555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556 (exit $ac_status); } &&
ea7db9ff
DE
37557 { ac_try='test -z "$ac_c_werror_flag"
37558 || test ! -s conftest.err'
ac1cb8d3
VS
37559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37560 (eval $ac_try) 2>&5
37561 ac_status=$?
37562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563 (exit $ac_status); }; } &&
37564 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37566 (eval $ac_try) 2>&5
37567 ac_status=$?
37568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37569 (exit $ac_status); }; }; then
37570 eval "$as_ac_var=yes"
37571else
37572 echo "$as_me: failed program was:" >&5
37573sed 's/^/| /' conftest.$ac_ext >&5
37574
37575eval "$as_ac_var=no"
37576fi
ac1cb8d3
VS
37577rm -f conftest.err conftest.$ac_objext \
37578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37579fi
37580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37581echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37582if test `eval echo '${'$as_ac_var'}'` = yes; then
37583 cat >>confdefs.h <<_ACEOF
37584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37585_ACEOF
37586 have_sin=1
37587fi
37588done
37589
37590
37591for ac_func in ceil
37592do
37593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37594echo "$as_me:$LINENO: checking for $ac_func" >&5
37595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37596if eval "test \"\${$as_ac_var+set}\" = set"; then
37597 echo $ECHO_N "(cached) $ECHO_C" >&6
37598else
37599 cat >conftest.$ac_ext <<_ACEOF
37600/* confdefs.h. */
37601_ACEOF
37602cat confdefs.h >>conftest.$ac_ext
37603cat >>conftest.$ac_ext <<_ACEOF
37604/* end confdefs.h. */
ac1cb8d3
VS
37605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37607#define $ac_func innocuous_$ac_func
37608
a848cd7e
SC
37609/* System header to define __stub macros and hopefully few prototypes,
37610 which can conflict with char $ac_func (); below.
37611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37612 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37613
a848cd7e
SC
37614#ifdef __STDC__
37615# include <limits.h>
37616#else
37617# include <assert.h>
37618#endif
ac1cb8d3
VS
37619
37620#undef $ac_func
37621
a848cd7e
SC
37622/* Override any gcc2 internal prototype to avoid an error. */
37623#ifdef __cplusplus
37624extern "C"
37625{
37626#endif
37627/* We use char because int might match the return type of a gcc2
37628 builtin and then its argument prototype would still apply. */
37629char $ac_func ();
37630/* The GNU C library defines this for functions which it implements
37631 to always fail with ENOSYS. Some functions are actually named
37632 something starting with __ and the normal name is an alias. */
37633#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37634choke me
37635#else
37636char (*f) () = $ac_func;
37637#endif
37638#ifdef __cplusplus
37639}
37640#endif
37641
37642int
37643main ()
37644{
37645return f != $ac_func;
37646 ;
37647 return 0;
37648}
37649_ACEOF
37650rm -f conftest.$ac_objext conftest$ac_exeext
37651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37652 (eval $ac_link) 2>conftest.er1
a848cd7e 37653 ac_status=$?
ac1cb8d3
VS
37654 grep -v '^ *+' conftest.er1 >conftest.err
37655 rm -f conftest.er1
37656 cat conftest.err >&5
a848cd7e
SC
37657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658 (exit $ac_status); } &&
ea7db9ff
DE
37659 { ac_try='test -z "$ac_c_werror_flag"
37660 || test ! -s conftest.err'
ac1cb8d3
VS
37661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37662 (eval $ac_try) 2>&5
37663 ac_status=$?
37664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665 (exit $ac_status); }; } &&
37666 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37668 (eval $ac_try) 2>&5
37669 ac_status=$?
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); }; }; then
37672 eval "$as_ac_var=yes"
37673else
37674 echo "$as_me: failed program was:" >&5
37675sed 's/^/| /' conftest.$ac_ext >&5
37676
37677eval "$as_ac_var=no"
37678fi
ac1cb8d3
VS
37679rm -f conftest.err conftest.$ac_objext \
37680 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37681fi
37682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37683echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37684if test `eval echo '${'$as_ac_var'}'` = yes; then
37685 cat >>confdefs.h <<_ACEOF
37686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37687_ACEOF
37688 have_ceil=1
37689fi
37690done
37691
37692 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37693echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37694 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37695 echo "$as_me:$LINENO: result: yes" >&5
37696echo "${ECHO_T}yes" >&6
37697 else
37698 echo "$as_me:$LINENO: result: no" >&5
37699echo "${ECHO_T}no" >&6
37700 # not sure we should warn the user, crash, etc.
37701 fi
37702fi
37703
37704if test "$wxUSE_GUI" = "yes"; then
37705
37706
37707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37708 drawing dynamic erase event exec font image \
37709 minimal propsize rotate shaped widgets render"
37710
37711 if test "$wxUSE_MONOLITHIC" != "yes"; then
37712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37713 fi
37714else
37715 SAMPLES_SUBDIRS="console"
37716fi
37717
37718
37719INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37720-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37721
37722if test "$GXX" = yes ; then
37723 CXXWARNINGS="-Wall"
37724 fi
37725
37726EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37727
37728CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37729CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37730CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37731
37732
37733LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37734EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37735EXTRALIBS_XML="$EXPAT_LINK"
37736EXTRALIBS_HTML="$MSPACK_LINK"
37737EXTRALIBS_ODBC="$ODBC_LINK"
37738if test "$wxUSE_GUI" = "yes"; then
07bea8f0 37739 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK | sed 's/ \+/ /g'`
a848cd7e
SC
37740fi
37741if test "$wxUSE_OPENGL" = "yes"; then
37742 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37743fi
37744
37745LDFLAGS="$LDFLAGS $PROFILE"
37746
37747if test "$wxUSE_GTK" = 1; then
37748 WXCONFIG_INCLUDE=
37749else
37750 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37751fi
37752
37753WXCONFIG_EXTRALIBS="$LIBS"
37754
37755if test "$wxUSE_REGEX" = "builtin" ; then
37756 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37757fi
37758if test "$wxUSE_EXPAT" = "builtin" ; then
37759 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37760fi
37761if test "$wxUSE_ODBC" = "builtin" ; then
37762 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37763fi
37764if test "$wxUSE_LIBTIFF" = "builtin" ; then
37765 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37766fi
37767if test "$wxUSE_LIBJPEG" = "builtin" ; then
37768 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37769fi
37770if test "$wxUSE_LIBPNG" = "builtin" ; then
37771 wxconfig_3rdparty="$wxconfig_3rdparty png"
37772fi
37773if test "$wxUSE_ZLIB" = "builtin" ; then
37774 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37775fi
37776if test "$wxUSE_ODBC" = "builtin" ; then
37777 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37778fi
37779
37780for i in $wxconfig_3rdparty ; do
37781 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37782done
37783
37784
37785if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37786 WXUNIV=1
37787else
37788 WXUNIV=0
37789fi
37790
37791
37792
37793
37794
37795
37796
37797
37798
37799if test $wxUSE_MONOLITHIC = "yes" ; then
37800 MONOLITHIC=1
37801else
37802 MONOLITHIC=0
37803fi
37804
37805if test $wxUSE_PLUGINS = "yes" ; then
37806 USE_PLUGINS=1
37807else
37808 USE_PLUGINS=0
37809fi
37810
37811if test $wxUSE_ODBC != "no" ; then
37812 USE_ODBC=1
37813else
37814 USE_ODBC=0
37815fi
37816
37817if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37818 OFFICIAL_BUILD=1
37819else
37820 OFFICIAL_BUILD=0
37821fi
37822
37823
37824
37825
37826
37827
37828
37829
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37844
37845
37846
37847
37848
37849
37850
37851
37852
37853 if test "x$BAKEFILE_HOST" = "x"; then
37854 BAKEFILE_HOST="${host}"
37855 fi
37856
37857 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37858
37859 if test -n "$ac_tool_prefix"; then
37860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37861set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37862echo "$as_me:$LINENO: checking for $ac_word" >&5
37863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37864if test "${ac_cv_prog_RANLIB+set}" = set; then
37865 echo $ECHO_N "(cached) $ECHO_C" >&6
37866else
37867 if test -n "$RANLIB"; then
37868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37869else
37870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37871for as_dir in $PATH
37872do
37873 IFS=$as_save_IFS
37874 test -z "$as_dir" && as_dir=.
37875 for ac_exec_ext in '' $ac_executable_extensions; do
37876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37879 break 2
37880 fi
37881done
37882done
37883
37884fi
37885fi
37886RANLIB=$ac_cv_prog_RANLIB
37887if test -n "$RANLIB"; then
37888 echo "$as_me:$LINENO: result: $RANLIB" >&5
37889echo "${ECHO_T}$RANLIB" >&6
37890else
37891 echo "$as_me:$LINENO: result: no" >&5
37892echo "${ECHO_T}no" >&6
37893fi
37894
37895fi
37896if test -z "$ac_cv_prog_RANLIB"; then
37897 ac_ct_RANLIB=$RANLIB
37898 # Extract the first word of "ranlib", so it can be a program name with args.
37899set dummy ranlib; ac_word=$2
37900echo "$as_me:$LINENO: checking for $ac_word" >&5
37901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37902if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37903 echo $ECHO_N "(cached) $ECHO_C" >&6
37904else
37905 if test -n "$ac_ct_RANLIB"; then
37906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37907else
37908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37909for as_dir in $PATH
37910do
37911 IFS=$as_save_IFS
37912 test -z "$as_dir" && as_dir=.
37913 for ac_exec_ext in '' $ac_executable_extensions; do
37914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37915 ac_cv_prog_ac_ct_RANLIB="ranlib"
37916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37917 break 2
37918 fi
37919done
37920done
37921
37922 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37923fi
37924fi
37925ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37926if test -n "$ac_ct_RANLIB"; then
37927 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37928echo "${ECHO_T}$ac_ct_RANLIB" >&6
37929else
37930 echo "$as_me:$LINENO: result: no" >&5
37931echo "${ECHO_T}no" >&6
37932fi
37933
37934 RANLIB=$ac_ct_RANLIB
37935else
37936 RANLIB="$ac_cv_prog_RANLIB"
37937fi
37938
37939 # Find a good install program. We prefer a C program (faster),
37940# so one script is as good as another. But avoid the broken or
37941# incompatible versions:
37942# SysV /etc/install, /usr/sbin/install
37943# SunOS /usr/etc/install
37944# IRIX /sbin/install
37945# AIX /bin/install
37946# AmigaOS /C/install, which installs bootblocks on floppy discs
37947# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37948# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37949# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37950# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37951# ./install, which can be erroneously created by make from ./install.sh.
37952echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37953echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37954if test -z "$INSTALL"; then
37955if test "${ac_cv_path_install+set}" = set; then
37956 echo $ECHO_N "(cached) $ECHO_C" >&6
37957else
37958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37959for as_dir in $PATH
37960do
37961 IFS=$as_save_IFS
37962 test -z "$as_dir" && as_dir=.
37963 # Account for people who put trailing slashes in PATH elements.
37964case $as_dir/ in
37965 ./ | .// | /cC/* | \
37966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37967 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37968 /usr/ucb/* ) ;;
37969 *)
37970 # OSF1 and SCO ODT 3.0 have their own names for install.
37971 # Don't use installbsd from OSF since it installs stuff as root
37972 # by default.
37973 for ac_prog in ginstall scoinst install; do
37974 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37975 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37976 if test $ac_prog = install &&
37977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37978 # AIX install. It has an incompatible calling convention.
37979 :
37980 elif test $ac_prog = install &&
37981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37982 # program-specific install script used by HP pwplus--don't use.
37983 :
37984 else
37985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37986 break 3
37987 fi
37988 fi
a848cd7e
SC
37989 done
37990 done
37991 ;;
37992esac
37993done
37994
37995
37996fi
37997 if test "${ac_cv_path_install+set}" = set; then
37998 INSTALL=$ac_cv_path_install
37999 else
38000 # As a last resort, use the slow shell script. We don't cache a
38001 # path for INSTALL within a source directory, because that will
38002 # break other packages using the cache if that directory is
38003 # removed, or if the path is relative.
38004 INSTALL=$ac_install_sh
38005 fi
38006fi
38007echo "$as_me:$LINENO: result: $INSTALL" >&5
38008echo "${ECHO_T}$INSTALL" >&6
38009
38010# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38011# It thinks the first close brace ends the variable substitution.
38012test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38013
38014test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38015
38016test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38017
38018 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38019echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38020LN_S=$as_ln_s
38021if test "$LN_S" = "ln -s"; then
38022 echo "$as_me:$LINENO: result: yes" >&5
38023echo "${ECHO_T}yes" >&6
38024else
38025 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38026echo "${ECHO_T}no, using $LN_S" >&6
38027fi
38028
38029
38030 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38031echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38032set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38033if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38034 echo $ECHO_N "(cached) $ECHO_C" >&6
38035else
38036 cat >conftest.make <<\_ACEOF
38037all:
38038 @echo 'ac_maketemp="$(MAKE)"'
38039_ACEOF
38040# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38041eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38042if test -n "$ac_maketemp"; then
38043 eval ac_cv_prog_make_${ac_make}_set=yes
38044else
38045 eval ac_cv_prog_make_${ac_make}_set=no
38046fi
38047rm -f conftest.make
38048fi
38049if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38050 echo "$as_me:$LINENO: result: yes" >&5
38051echo "${ECHO_T}yes" >&6
38052 SET_MAKE=
38053else
38054 echo "$as_me:$LINENO: result: no" >&5
38055echo "${ECHO_T}no" >&6
38056 SET_MAKE="MAKE=${MAKE-make}"
38057fi
38058
38059
38060
38061 if test -n "$ac_tool_prefix"; then
38062 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38063set dummy ${ac_tool_prefix}ar; ac_word=$2
38064echo "$as_me:$LINENO: checking for $ac_word" >&5
38065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38066if test "${ac_cv_prog_AR+set}" = set; then
38067 echo $ECHO_N "(cached) $ECHO_C" >&6
38068else
38069 if test -n "$AR"; then
38070 ac_cv_prog_AR="$AR" # Let the user override the test.
38071else
38072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38073for as_dir in $PATH
38074do
38075 IFS=$as_save_IFS
38076 test -z "$as_dir" && as_dir=.
38077 for ac_exec_ext in '' $ac_executable_extensions; do
38078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38079 ac_cv_prog_AR="${ac_tool_prefix}ar"
38080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38081 break 2
38082 fi
38083done
38084done
38085
38086fi
38087fi
38088AR=$ac_cv_prog_AR
38089if test -n "$AR"; then
38090 echo "$as_me:$LINENO: result: $AR" >&5
38091echo "${ECHO_T}$AR" >&6
38092else
38093 echo "$as_me:$LINENO: result: no" >&5
38094echo "${ECHO_T}no" >&6
38095fi
38096
38097fi
38098if test -z "$ac_cv_prog_AR"; then
38099 ac_ct_AR=$AR
38100 # Extract the first word of "ar", so it can be a program name with args.
38101set dummy ar; ac_word=$2
38102echo "$as_me:$LINENO: checking for $ac_word" >&5
38103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38104if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38105 echo $ECHO_N "(cached) $ECHO_C" >&6
38106else
38107 if test -n "$ac_ct_AR"; then
38108 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38109else
38110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38111for as_dir in $PATH
38112do
38113 IFS=$as_save_IFS
38114 test -z "$as_dir" && as_dir=.
38115 for ac_exec_ext in '' $ac_executable_extensions; do
38116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38117 ac_cv_prog_ac_ct_AR="ar"
38118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38119 break 2
38120 fi
38121done
38122done
38123
38124 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38125fi
38126fi
38127ac_ct_AR=$ac_cv_prog_ac_ct_AR
38128if test -n "$ac_ct_AR"; then
38129 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38130echo "${ECHO_T}$ac_ct_AR" >&6
38131else
38132 echo "$as_me:$LINENO: result: no" >&5
38133echo "${ECHO_T}no" >&6
38134fi
38135
38136 AR=$ac_ct_AR
38137else
38138 AR="$ac_cv_prog_AR"
38139fi
38140
38141 if test -n "$ac_tool_prefix"; then
38142 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38143set dummy ${ac_tool_prefix}strip; ac_word=$2
38144echo "$as_me:$LINENO: checking for $ac_word" >&5
38145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38146if test "${ac_cv_prog_STRIP+set}" = set; then
38147 echo $ECHO_N "(cached) $ECHO_C" >&6
38148else
38149 if test -n "$STRIP"; then
38150 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38151else
38152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38153for as_dir in $PATH
38154do
38155 IFS=$as_save_IFS
38156 test -z "$as_dir" && as_dir=.
38157 for ac_exec_ext in '' $ac_executable_extensions; do
38158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38159 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38161 break 2
38162 fi
38163done
38164done
38165
38166fi
38167fi
38168STRIP=$ac_cv_prog_STRIP
38169if test -n "$STRIP"; then
38170 echo "$as_me:$LINENO: result: $STRIP" >&5
38171echo "${ECHO_T}$STRIP" >&6
38172else
38173 echo "$as_me:$LINENO: result: no" >&5
38174echo "${ECHO_T}no" >&6
38175fi
38176
38177fi
38178if test -z "$ac_cv_prog_STRIP"; then
38179 ac_ct_STRIP=$STRIP
38180 # Extract the first word of "strip", so it can be a program name with args.
38181set dummy strip; ac_word=$2
38182echo "$as_me:$LINENO: checking for $ac_word" >&5
38183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38184if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38185 echo $ECHO_N "(cached) $ECHO_C" >&6
38186else
38187 if test -n "$ac_ct_STRIP"; then
38188 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38189else
38190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38191for as_dir in $PATH
38192do
38193 IFS=$as_save_IFS
38194 test -z "$as_dir" && as_dir=.
38195 for ac_exec_ext in '' $ac_executable_extensions; do
38196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38197 ac_cv_prog_ac_ct_STRIP="strip"
38198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38199 break 2
38200 fi
38201done
38202done
38203
38204 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38205fi
38206fi
38207ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38208if test -n "$ac_ct_STRIP"; then
38209 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38210echo "${ECHO_T}$ac_ct_STRIP" >&6
38211else
38212 echo "$as_me:$LINENO: result: no" >&5
38213echo "${ECHO_T}no" >&6
38214fi
38215
38216 STRIP=$ac_ct_STRIP
38217else
38218 STRIP="$ac_cv_prog_STRIP"
38219fi
38220
38221 if test -n "$ac_tool_prefix"; then
38222 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38223set dummy ${ac_tool_prefix}nm; ac_word=$2
38224echo "$as_me:$LINENO: checking for $ac_word" >&5
38225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38226if test "${ac_cv_prog_NM+set}" = set; then
38227 echo $ECHO_N "(cached) $ECHO_C" >&6
38228else
38229 if test -n "$NM"; then
38230 ac_cv_prog_NM="$NM" # Let the user override the test.
38231else
38232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38233for as_dir in $PATH
38234do
38235 IFS=$as_save_IFS
38236 test -z "$as_dir" && as_dir=.
38237 for ac_exec_ext in '' $ac_executable_extensions; do
38238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38239 ac_cv_prog_NM="${ac_tool_prefix}nm"
38240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38241 break 2
38242 fi
38243done
38244done
38245
38246fi
38247fi
38248NM=$ac_cv_prog_NM
38249if test -n "$NM"; then
38250 echo "$as_me:$LINENO: result: $NM" >&5
38251echo "${ECHO_T}$NM" >&6
38252else
38253 echo "$as_me:$LINENO: result: no" >&5
38254echo "${ECHO_T}no" >&6
38255fi
38256
38257fi
38258if test -z "$ac_cv_prog_NM"; then
38259 ac_ct_NM=$NM
38260 # Extract the first word of "nm", so it can be a program name with args.
38261set dummy nm; ac_word=$2
38262echo "$as_me:$LINENO: checking for $ac_word" >&5
38263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38264if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38265 echo $ECHO_N "(cached) $ECHO_C" >&6
38266else
38267 if test -n "$ac_ct_NM"; then
38268 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38269else
38270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38271for as_dir in $PATH
38272do
38273 IFS=$as_save_IFS
38274 test -z "$as_dir" && as_dir=.
38275 for ac_exec_ext in '' $ac_executable_extensions; do
38276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38277 ac_cv_prog_ac_ct_NM="nm"
38278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38279 break 2
38280 fi
38281done
38282done
38283
38284 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38285fi
38286fi
38287ac_ct_NM=$ac_cv_prog_ac_ct_NM
38288if test -n "$ac_ct_NM"; then
38289 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38290echo "${ECHO_T}$ac_ct_NM" >&6
38291else
38292 echo "$as_me:$LINENO: result: no" >&5
38293echo "${ECHO_T}no" >&6
38294fi
38295
38296 NM=$ac_ct_NM
38297else
38298 NM="$ac_cv_prog_NM"
38299fi
38300
38301
38302 case ${BAKEFILE_HOST} in
38303 *-hp-hpux* )
38304 INSTALL_DIR="mkdir"
38305 ;;
38306 *) INSTALL_DIR="$INSTALL -d"
38307 ;;
38308 esac
38309
38310
38311 LDFLAGS_GUI=
38312 case ${BAKEFILE_HOST} in
38313 *-*-cygwin* | *-*-mingw32* )
38314 LDFLAGS_GUI="-mwindows"
38315 esac
38316
38317
38318 fi
38319
38320 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38321echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38322if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38323 echo $ECHO_N "(cached) $ECHO_C" >&6
38324else
38325
38326 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38327 egrep -s GNU > /dev/null); then
38328 bakefile_cv_prog_makeisgnu="yes"
38329 else
38330 bakefile_cv_prog_makeisgnu="no"
38331 fi
38332
38333fi
38334echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38335echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38336
38337 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38338 IF_GNU_MAKE=""
38339 else
38340 IF_GNU_MAKE="#"
38341 fi
38342
38343
38344
38345 PLATFORM_UNIX=0
38346 PLATFORM_WIN32=0
38347 PLATFORM_MSDOS=0
38348 PLATFORM_MAC=0
38349 PLATFORM_MACOSX=0
38350 PLATFORM_OS2=0
38351
38352 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38353 case "${BAKEFILE_HOST}" in
38354 *-*-cygwin* | *-*-mingw32* )
38355 PLATFORM_WIN32=1
38356 ;;
38357 *-pc-msdosdjgpp )
38358 PLATFORM_MSDOS=1
38359 ;;
38360 *-pc-os2_emx | *-pc-os2-emx )
38361 PLATFORM_OS2=1
38362 ;;
38363 powerpc-*-darwin* )
38364 PLATFORM_MAC=1
38365 PLATFORM_MACOSX=1
38366 ;;
38367 * )
38368 PLATFORM_UNIX=1
38369 ;;
38370 esac
38371 else
38372 case "$BAKEFILE_FORCE_PLATFORM" in
38373 win32 )
38374 PLATFORM_WIN32=1
38375 ;;
38376 msdos )
38377 PLATFORM_MSDOS=1
38378 ;;
38379 os2 )
38380 PLATFORM_OS2=1
38381 ;;
38382 darwin )
38383 PLATFORM_MAC=1
38384 PLATFORM_MACOSX=1
38385 ;;
38386 unix )
38387 PLATFORM_UNIX=1
38388 ;;
38389 * )
38390 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38391echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38392 { (exit 1); exit 1; }; }
38393 ;;
38394 esac
38395 fi
38396
38397
38398
38399
38400
38401
38402
38403
38404
38405 # Check whether --enable-omf or --disable-omf was given.
38406if test "${enable_omf+set}" = set; then
38407 enableval="$enable_omf"
38408 bk_os2_use_omf="$enableval"
38409fi;
38410
38411 case "${BAKEFILE_HOST}" in
38412 *-*-darwin* )
38413 CFLAGS="$CFLAGS -fno-common"
38414 CXXFLAGS="$CXXFLAGS -fno-common"
38415 ;;
38416
38417 *-pc-os2_emx | *-pc-os2-emx )
38418 if test "x$bk_os2_use_omf" = "xyes" ; then
38419 AR=emxomfar
38420 RANLIB=:
38421 LDFLAGS="-Zomf $LDFLAGS"
38422 CFLAGS="-Zomf $CFLAGS"
38423 CXXFLAGS="-Zomf $CXXFLAGS"
38424 OS2_LIBEXT="lib"
38425 else
38426 OS2_LIBEXT="a"
38427 fi
38428 ;;
38429 esac
38430
38431
38432 SO_SUFFIX="so"
38433 SO_SUFFIX_MODULE="so"
38434 EXEEXT=""
38435 LIBPREFIX="lib"
38436 LIBEXT=".a"
38437 DLLPREFIX="lib"
38438 DLLPREFIX_MODULE=""
38439 DLLIMP_SUFFIX=""
38440
38441 case "${BAKEFILE_HOST}" in
38442 *-hp-hpux* )
38443 SO_SUFFIX="sl"
38444 SO_SUFFIX_MODULE="sl"
38445 ;;
38446 *-*-aix* )
38447 SO_SUFFIX="a"
38448 SO_SUFFIX_MODULE="a"
38449 ;;
38450 *-*-cygwin* | *-*-mingw32* )
38451 SO_SUFFIX="dll"
38452 SO_SUFFIX_MODULE="dll"
38453 DLLIMP_SUFFIX="dll.a"
38454 EXEEXT=".exe"
38455 DLLPREFIX=""
38456 ;;
38457 *-pc-msdosdjgpp )
38458 EXEEXT=".exe"
38459 DLLPREFIX=""
38460 ;;
38461 *-pc-os2_emx | *-pc-os2-emx )
38462 SO_SUFFIX="dll"
38463 SO_SUFFIX_MODULE="dll"
38464 DLLIMP_SUFFIX=$OS2_LIBEXT
38465 EXEEXT=".exe"
38466 DLLPREFIX=""
38467 LIBPREFIX=""
38468 LIBEXT=".$OS2_LIBEXT"
38469 ;;
38470 powerpc-*-darwin* )
38471 SO_SUFFIX="dylib"
38472 SO_SUFFIX_MODULE="bundle"
38473 ;;
38474 esac
38475
38476 if test "x$DLLIMP_SUFFIX" = "x" ; then
38477 DLLIMP_SUFFIX="$SO_SUFFIX"
38478 fi
38479
38480
38481
38482
38483
38484
38485
38486
38487
38488
38489
38490 SHARED_LD_CC="\$(CC) -shared -o"
38491 SHARED_LD_CXX="\$(CXX) -shared -o"
38492
38493 if test "x$GCC" = "xyes"; then
38494 PIC_FLAG="-fPIC"
38495 fi
38496
38497 case "${BAKEFILE_HOST}" in
38498 *-hp-hpux* )
38499 if test "x$GCC" = "xyes"; then
38500 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38501 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38502 else
38503 LDFLAGS="$LDFLAGS -L/usr/lib"
38504
38505 SHARED_LD_CC="${CC} -b -o"
38506 SHARED_LD_CXX="${CXX} -b -o"
38507 PIC_FLAG="+Z"
38508 fi
38509 ;;
38510
38511 *-*-linux* )
38512 if test "x$GCC" != "xyes"; then
38513 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38514echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38515if test "${bakefile_cv_prog_icc+set}" = set; then
38516 echo $ECHO_N "(cached) $ECHO_C" >&6
38517else
38518
38519 cat >conftest.$ac_ext <<_ACEOF
38520/* confdefs.h. */
38521_ACEOF
38522cat confdefs.h >>conftest.$ac_ext
38523cat >>conftest.$ac_ext <<_ACEOF
38524/* end confdefs.h. */
38525
38526int
38527main ()
38528{
38529
38530 #ifndef __INTEL_COMPILER
38531 #error Not icc
38532 #endif
38533
38534 ;
38535 return 0;
38536}
38537_ACEOF
38538rm -f conftest.$ac_objext
38539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38540 (eval $ac_compile) 2>conftest.er1
a848cd7e 38541 ac_status=$?
ac1cb8d3
VS
38542 grep -v '^ *+' conftest.er1 >conftest.err
38543 rm -f conftest.er1
38544 cat conftest.err >&5
a848cd7e
SC
38545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38546 (exit $ac_status); } &&
ea7db9ff
DE
38547 { ac_try='test -z "$ac_c_werror_flag"
38548 || test ! -s conftest.err'
ac1cb8d3
VS
38549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38550 (eval $ac_try) 2>&5
38551 ac_status=$?
38552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38553 (exit $ac_status); }; } &&
38554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38556 (eval $ac_try) 2>&5
38557 ac_status=$?
38558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559 (exit $ac_status); }; }; then
38560 bakefile_cv_prog_icc=yes
38561else
38562 echo "$as_me: failed program was:" >&5
38563sed 's/^/| /' conftest.$ac_ext >&5
38564
38565bakefile_cv_prog_icc=no
38566
38567fi
ac1cb8d3 38568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38569
38570fi
38571echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38572echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38573 if test "$bakefile_cv_prog_icc" = "yes"; then
38574 PIC_FLAG="-KPIC"
38575 fi
38576 fi
38577 ;;
38578
38579 *-*-solaris2* )
38580 if test "x$GCC" != xyes ; then
38581 SHARED_LD_CC="${CC} -G -o"
38582 SHARED_LD_CXX="${CXX} -G -o"
38583 PIC_FLAG="-KPIC"
38584 fi
38585 ;;
38586
38587 *-*-darwin* )
38588
38589 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38590echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38591if test "${wx_cv_gcc31+set}" = set; then
38592 echo $ECHO_N "(cached) $ECHO_C" >&6
38593else
38594
38595 cat >conftest.$ac_ext <<_ACEOF
38596/* confdefs.h. */
38597_ACEOF
38598cat confdefs.h >>conftest.$ac_ext
38599cat >>conftest.$ac_ext <<_ACEOF
38600/* end confdefs.h. */
38601
38602int
38603main ()
38604{
38605
38606 #if (__GNUC__ < 3) || \
38607 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38608 #error old gcc
38609 #endif
38610
38611 ;
38612 return 0;
38613}
38614_ACEOF
38615rm -f conftest.$ac_objext
38616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38617 (eval $ac_compile) 2>conftest.er1
a848cd7e 38618 ac_status=$?
ac1cb8d3
VS
38619 grep -v '^ *+' conftest.er1 >conftest.err
38620 rm -f conftest.er1
38621 cat conftest.err >&5
a848cd7e
SC
38622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623 (exit $ac_status); } &&
ea7db9ff
DE
38624 { ac_try='test -z "$ac_c_werror_flag"
38625 || test ! -s conftest.err'
ac1cb8d3
VS
38626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38627 (eval $ac_try) 2>&5
38628 ac_status=$?
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); }; } &&
38631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38633 (eval $ac_try) 2>&5
38634 ac_status=$?
38635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38636 (exit $ac_status); }; }; then
38637
38638 wx_cv_gcc31=yes
38639
38640else
38641 echo "$as_me: failed program was:" >&5
38642sed 's/^/| /' conftest.$ac_ext >&5
38643
38644
38645 wx_cv_gcc31=no
38646
38647
38648fi
ac1cb8d3 38649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38650
38651fi
38652echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38653echo "${ECHO_T}$wx_cv_gcc31" >&6
38654 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38655
38656D='$'
38657cat <<EOF >shared-ld-sh
a848cd7e
SC
38658#!/bin/sh
38659#-----------------------------------------------------------------------------
38660#-- Name: distrib/mac/shared-ld-sh
38661#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38662#-- Author: Gilles Depeyrot
38663#-- Copyright: (c) 2002 Gilles Depeyrot
38664#-- Licence: any use permitted
38665#-----------------------------------------------------------------------------
38666
38667verbose=0
38668args=""
38669objects=""
38670linking_flag="-dynamiclib"
38671
473276a9
VS
38672while test ${D}# -gt 0; do
38673 case ${D}1 in
a848cd7e
SC
38674
38675 -v)
38676 verbose=1
38677 ;;
38678
38679 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38680 # collect these options and values
473276a9 38681 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38682 shift
38683 ;;
38684
38685 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38686 # collect these options
473276a9 38687 args="${D}{args} ${D}1"
a848cd7e
SC
38688 ;;
38689
38690 -dynamiclib|-bundle)
473276a9 38691 linking_flag="${D}1"
a848cd7e
SC
38692 ;;
38693
38694 -*)
473276a9 38695 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38696 exit 1
38697 ;;
38698
38699 *.o | *.a | *.dylib)
38700 # collect object files
473276a9 38701 objects="${D}{objects} ${D}1"
a848cd7e
SC
38702 ;;
38703
38704 *)
473276a9 38705 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38706 exit 1
38707 ;;
38708
38709 esac
38710 shift
38711done
38712
38713#
38714# Link one module containing all the others
38715#
473276a9
VS
38716if test ${D}{verbose} = 1; then
38717 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38718fi
473276a9
VS
38719c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38720status=${D}?
38721if test ${D}{status} != 0; then
38722 exit ${D}{status}
a848cd7e
SC
38723fi
38724
38725#
38726# Link the shared library from the single module created
38727#
473276a9
VS
38728if test ${D}{verbose} = 1; then
38729 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38730fi
473276a9
VS
38731c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38732status=${D}?
38733if test ${D}{status} != 0; then
38734 exit ${D}{status}
a848cd7e
SC
38735fi
38736
38737#
38738# Remove intermediate module
38739#
473276a9 38740rm -f master.${D}${D}.o
a848cd7e
SC
38741
38742exit 0
38743EOF
473276a9 38744
a848cd7e
SC
38745 chmod +x shared-ld-sh
38746
38747 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38748 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38749 SHARED_LD_CXX="$SHARED_LD_CC"
38750 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38751 else
38752 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38753 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38754 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38755 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38756 fi
38757
38758 PIC_FLAG="-dynamic -fPIC"
38759 ;;
38760
38761 *-*-aix* )
38762 if test "x$GCC" != "xyes"; then
38763 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38764set dummy makeC++SharedLib; ac_word=$2
38765echo "$as_me:$LINENO: checking for $ac_word" >&5
38766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38767if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38768 echo $ECHO_N "(cached) $ECHO_C" >&6
38769else
38770 if test -n "$AIX_CXX_LD"; then
38771 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38772else
38773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38774for as_dir in $PATH
38775do
38776 IFS=$as_save_IFS
38777 test -z "$as_dir" && as_dir=.
38778 for ac_exec_ext in '' $ac_executable_extensions; do
38779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38780 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38782 break 2
38783 fi
38784done
38785done
38786
38787 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38788fi
38789fi
38790AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38791if test -n "$AIX_CXX_LD"; then
38792 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38793echo "${ECHO_T}$AIX_CXX_LD" >&6
38794else
38795 echo "$as_me:$LINENO: result: no" >&5
38796echo "${ECHO_T}no" >&6
38797fi
38798
38799 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38800 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38801 fi
38802 ;;
38803
38804 *-*-beos* )
38805 SHARED_LD_CC="${LD} -shared -o"
38806 SHARED_LD_CXX="${LD} -shared -o"
38807 ;;
38808
38809 *-*-irix* )
38810 if test "x$GCC" != "xyes"; then
38811 PIC_FLAG="-KPIC"
38812 fi
38813 ;;
38814
38815 *-*-cygwin* | *-*-mingw32* )
38816 PIC_FLAG=""
38817 ;;
38818
38819 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38820 SHARED_LD_CC="`pwd`/dllar.sh -o"
38821 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38822 PIC_FLAG=""
473276a9
VS
38823
38824D='$'
38825cat <<EOF >dllar.sh
38826#!/bin/sh
38827#
38828# dllar - a tool to build both a .dll and an .a file
38829# from a set of object (.o) files for EMX/OS2.
38830#
38831# Written by Andrew Zabolotny, bit@freya.etu.ru
38832# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38833#
38834# This script will accept a set of files on the command line.
38835# All the public symbols from the .o files will be exported into
38836# a .DEF file, then linker will be run (through gcc) against them to
38837# build a shared library consisting of all given .o files. All libraries
38838# (.a) will be first decompressed into component .o files then act as
38839# described above. You can optionally give a description (-d "description")
38840# which will be put into .DLL. To see the list of accepted options (as well
38841# as command-line format) simply run this program without options. The .DLL
38842# is built to be imported by name (there is no guarantee that new versions
38843# of the library you build will have same ordinals for same symbols).
38844#
38845# dllar is free software; you can redistribute it and/or modify
38846# it under the terms of the GNU General Public License as published by
38847# the Free Software Foundation; either version 2, or (at your option)
38848# any later version.
38849#
38850# dllar is distributed in the hope that it will be useful,
38851# but WITHOUT ANY WARRANTY; without even the implied warranty of
38852# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38853# GNU General Public License for more details.
38854#
38855# You should have received a copy of the GNU General Public License
38856# along with dllar; see the file COPYING. If not, write to the Free
38857# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38858# 02111-1307, USA.
38859
38860# To successfuly run this program you will need:
38861# - Current drive should have LFN support (HPFS, ext2, network, etc)
38862# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38863# - gcc
38864# (used to build the .dll)
38865# - emxexp
38866# (used to create .def file from .o files)
38867# - emximp
38868# (used to create .a file from .def file)
38869# - GNU text utilites (cat, sort, uniq)
38870# used to process emxexp output
38871# - GNU file utilities (mv, rm)
38872# - GNU sed
38873# - lxlite (optional, see flag below)
38874# (used for general .dll cleanup)
38875#
38876
38877flag_USE_LXLITE=1;
38878
38879#
38880# helper functions
38881# basnam, variant of basename, which does _not_ remove the path, _iff_
38882# second argument (suffix to remove) is given
38883basnam(){
38884 case ${D}# in
38885 1)
38886 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38887 ;;
38888 2)
38889 echo ${D}1 | sed 's/'${D}2'${D}//'
38890 ;;
38891 *)
38892 echo "error in basnam ${D}*"
38893 exit 8
38894 ;;
38895 esac
38896}
38897
38898# Cleanup temporary files and output
38899CleanUp() {
38900 cd ${D}curDir
38901 for i in ${D}inputFiles ; do
38902 case ${D}i in
38903 *!)
38904 rm -rf \`basnam ${D}i !\`
38905 ;;
38906 *)
38907 ;;
38908 esac
38909 done
38910
38911 # Kill result in case of failure as there is just to many stupid make/nmake
38912 # things out there which doesn't do this.
224bf05c 38913 if ${D}# -eq 0 ; then
473276a9
VS
38914 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38915 fi
38916}
38917
38918# Print usage and exit script with rc=1.
38919PrintHelp() {
224bf05c
VZ
38920 echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
38921 echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
38922 echo ' -ord[inals] -exclude "symbol(s)"'
38923 echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
38924 echo ' *.o *.a'
473276a9
VS
38925 echo '*> "output_file" should have no extension.'
38926 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38927 echo ' The import library name is derived from this and is set to "name".a,'
38928 echo ' unless overridden by -import'
38929 echo '*> "importlib_name" should have no extension.'
38930 echo ' If it has the .o, or .a extension, it is automatically removed.'
38931 echo ' This name is used as the import library name and may be longer and'
38932 echo ' more descriptive than the DLL name which has to follow the old '
38933 echo ' 8.3 convention of FAT.'
38934 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38935 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38936 echo ' These flags will be put at the start of GCC command line.'
224bf05c
VZ
38937 echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
38938 echo '*> -exclude defines symbols which will not be exported. You can define'
473276a9
VS
38939 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38940 echo ' If the last character of a symbol is "*", all symbols beginning'
38941 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
224bf05c 38942 echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38943 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
224bf05c 38944 echo '*> -nocrtdll switch will disable linking the library against emx''s'
473276a9 38945 echo ' C runtime DLLs.'
224bf05c 38946 echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38947 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38948 echo ' unchanged to GCC at the end of command line.'
38949 echo '*> If you create a DLL from a library and you do not specify -o,'
38950 echo ' the basename for DLL and import library will be set to library name,'
38951 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38952 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38953 echo ' library will be renamed into gcc_s.a.'
38954 echo '--------'
38955 echo 'Example:'
38956 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38957 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38958 CleanUp
38959 exit 1
38960}
38961
38962# Execute a command.
38963# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38964# @Uses Whatever CleanUp() uses.
38965doCommand() {
38966 echo "${D}*"
38967 eval ${D}*
38968 rcCmd=${D}?
38969
224bf05c 38970 if ${D}rcCmd -ne 0 ; then
473276a9
VS
38971 echo "command failed, exit code="${D}rcCmd
38972 CleanUp
38973 exit ${D}rcCmd
38974 fi
38975}
38976
38977# main routine
38978# setup globals
38979cmdLine=${D}*
38980outFile=""
38981outimpFile=""
38982inputFiles=""
38983description=""
38984CC=gcc.exe
38985CFLAGS="-s -Zcrtdll"
38986EXTRA_CFLAGS=""
38987EXPORT_BY_ORDINALS=0
38988exclude_symbols=""
38989library_flags=""
38990curDir=\`pwd\`
38991curDirS=curDir
38992case ${D}curDirS in
38993*/)
38994 ;;
38995*)
38996 curDirS=${D}{curDirS}"/"
38997 ;;
38998esac
38999# Parse commandline
39000libsToLink=0
224bf05c 39001while ${D}1 ; do
473276a9
VS
39002 case ${D}1 in
39003 -ord*)
39004 EXPORT_BY_ORDINALS=1;
39005 ;;
39006 -o*)
39007 shift
39008 outFile=${D}1
39009 ;;
39010 -i*)
39011 shift
39012 outimpFile=${D}1
39013 ;;
39014 -d*)
39015 shift
39016 description=${D}1
39017 ;;
39018 -f*)
39019 shift
39020 CFLAGS=${D}1
39021 ;;
39022 -c*)
39023 shift
39024 CC=${D}1
39025 ;;
39026 -h*)
39027 PrintHelp
39028 ;;
39029 -ex*)
39030 shift
39031 exclude_symbols=${D}{exclude_symbols}${D}1" "
39032 ;;
39033 -libf*)
39034 shift
39035 library_flags=${D}{library_flags}${D}1" "
39036 ;;
39037 -nocrt*)
39038 CFLAGS="-s"
39039 ;;
39040 -nolxl*)
39041 flag_USE_LXLITE=0
39042 ;;
39043 -* | /*)
39044 case ${D}1 in
39045 -L* | -l*)
39046 libsToLink=1
39047 ;;
39048 *)
39049 ;;
39050 esac
39051 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39052 ;;
39053 *)
39054 found=0;
224bf05c 39055 if ${D}libsToLink -ne 0 ; then
473276a9
VS
39056 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39057 else
39058 for file in ${D}1 ; do
224bf05c 39059 if -f ${D}file ; then
473276a9
VS
39060 inputFiles="${D}{inputFiles} ${D}file"
39061 found=1
39062 fi
39063 done
224bf05c 39064 if ${D}found -eq 0 ; then
473276a9
VS
39065 echo "ERROR: No file(s) found: "${D}1
39066 exit 8
39067 fi
39068 fi
39069 ;;
39070 esac
39071 shift
39072done # iterate cmdline words
39073
39074#
224bf05c 39075if -z "${D}inputFiles" ; then
473276a9
VS
39076 echo "dllar: no input files"
39077 PrintHelp
39078fi
39079
39080# Now extract all .o files from .a files
39081newInputFiles=""
39082for file in ${D}inputFiles ; do
39083 case ${D}file in
39084 *.a | *.lib)
39085 case ${D}file in
39086 *.a)
39087 suffix=".a"
39088 AR="ar"
39089 ;;
39090 *.lib)
39091 suffix=".lib"
39092 AR="emxomfar"
39093 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39094 ;;
39095 *)
39096 ;;
39097 esac
39098 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39099 mkdir ${D}dirname
224bf05c 39100 if ${D}? -ne 0 ; then
473276a9
VS
39101 echo "Failed to create subdirectory ./${D}dirname"
39102 CleanUp
39103 exit 8;
39104 fi
39105 # Append '!' to indicate archive
39106 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39107 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39108 cd ${D}curDir
39109 found=0;
39110 for subfile in ${D}dirname/*.o* ; do
224bf05c 39111 if -f ${D}subfile ; then
473276a9 39112 found=1
224bf05c 39113 if -s ${D}subfile ; then
473276a9
VS
39114 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39115 newInputFiles="${D}newInputFiles ${D}subfile"
39116 fi
39117 fi
39118 done
224bf05c 39119 if ${D}found -eq 0 ; then
473276a9
VS
39120 echo "WARNING: there are no files in archive \'${D}file\'"
39121 fi
39122 ;;
39123 *)
39124 newInputFiles="${D}{newInputFiles} ${D}file"
39125 ;;
39126 esac
39127done
39128inputFiles="${D}newInputFiles"
39129
39130# Output filename(s).
39131do_backup=0;
224bf05c 39132if -z ${D}outFile ; then
473276a9
VS
39133 do_backup=1;
39134 set outFile ${D}inputFiles; outFile=${D}2
39135fi
39136
39137# If it is an archive, remove the '!' and the '_%' suffixes
39138case ${D}outFile in
39139*_%!)
39140 outFile=\`basnam ${D}outFile _%!\`
39141 ;;
39142*)
39143 ;;
39144esac
39145case ${D}outFile in
39146*.dll)
39147 outFile=\`basnam ${D}outFile .dll\`
39148 ;;
39149*.DLL)
39150 outFile=\`basnam ${D}outFile .DLL\`
39151 ;;
39152*.o)
39153 outFile=\`basnam ${D}outFile .o\`
39154 ;;
39155*.obj)
39156 outFile=\`basnam ${D}outFile .obj\`
39157 ;;
39158*.a)
39159 outFile=\`basnam ${D}outFile .a\`
39160 ;;
39161*.lib)
39162 outFile=\`basnam ${D}outFile .lib\`
39163 ;;
39164*)
39165 ;;
39166esac
39167case ${D}outimpFile in
39168*.a)
39169 outimpFile=\`basnam ${D}outimpFile .a\`
39170 ;;
39171*.lib)
39172 outimpFile=\`basnam ${D}outimpFile .lib\`
39173 ;;
39174*)
39175 ;;
39176esac
224bf05c 39177if -z ${D}outimpFile ; then
473276a9
VS
39178 outimpFile=${D}outFile
39179fi
39180defFile="${D}{outFile}.def"
39181arcFile="${D}{outimpFile}.a"
39182arcFile2="${D}{outimpFile}.lib"
39183dllFile="${D}outFile"
39184# Add suffix to dllFile later, first we need a version to use as
39185# name in .def file.
39186
224bf05c
VZ
39187if ${D}do_backup -ne 0 ; then
39188 if -f ${D}arcFile ; then
473276a9
VS
39189 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39190 fi
224bf05c 39191 if -f ${D}arcFile2 ; then
473276a9
VS
39192 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39193 fi
39194fi
39195
39196# Extract public symbols from all the object files.
39197tmpdefFile=${D}{defFile}_%
39198rm -f ${D}tmpdefFile
39199for file in ${D}inputFiles ; do
39200 case ${D}file in
39201 *!)
39202 ;;
39203 *)
39204 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39205 ;;
39206 esac
39207done
39208
39209# Create the def file.
39210rm -f ${D}defFile
39211echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39212dllFile="${D}dllFile.dll"
224bf05c 39213if -n ${D}description ; then
473276a9
VS
39214 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39215fi
39216echo "EXPORTS" >> ${D}defFile
39217
39218doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39219grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39220
39221# Checks if the export is ok or not.
39222for word in ${D}exclude_symbols; do
39223 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39224 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39225done
39226
39227
224bf05c 39228if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
473276a9
VS
39229 sed "=" < ${D}tmpdefFile | \
39230 sed '
39231 N
39232 : loop
224bf05c 39233 s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39234 t loop
39235 ' > ${D}{tmpdefFile}%
39236 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39237else
39238 rm -f ${D}{tmpdefFile}%
39239fi
39240cat ${D}tmpdefFile >> ${D}defFile
39241rm -f ${D}tmpdefFile
39242
39243# Do linking, create implib, and apply lxlite.
39244gccCmdl="";
39245for file in ${D}inputFiles ; do
39246 case ${D}file in
39247 *!)
39248 ;;
39249 *)
39250 gccCmdl="${D}gccCmdl ${D}file"
39251 ;;
39252 esac
39253done
39254doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39255touch "${D}{outFile}.dll"
39256
39257doCommand "emximp -o ${D}arcFile ${D}defFile"
224bf05c 39258if ${D}flag_USE_LXLITE -ne 0 ; then
473276a9 39259 add_flags="";
224bf05c 39260 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
473276a9
VS
39261 add_flags="-ynd"
39262 fi
39263 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39264fi
39265doCommand "emxomf -s -l ${D}arcFile"
39266
39267# Successful exit.
39268CleanUp 1
39269exit 0
39270EOF
39271
39272 chmod +x dllar.sh
a848cd7e
SC
39273 ;;
39274
39275 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39276 *-*-sunos4* | \
39277 *-*-osf* | \
39278 *-*-dgux5* | \
39279 *-*-sysv5* )
39280 ;;
39281
39282 *)
39283 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39284echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39285 { (exit 1); exit 1; }; }
39286 esac
39287
39288 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39289 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39290 fi
39291 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39292 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39293 fi
39294
39295
39296
39297
39298
39299
39300
39301
39302 USE_SOVERSION=0
39303 USE_SOVERLINUX=0
39304 USE_SOVERSOLARIS=0
39305 USE_SOSYMLINKS=0
39306 USE_MACVERSION=0
39307 SONAME_FLAG=
39308
39309 case "${BAKEFILE_HOST}" in
39310 *-*-linux* )
39311 SONAME_FLAG="-Wl,-soname,"
39312 USE_SOVERSION=1
39313 USE_SOVERLINUX=1
39314 USE_SOSYMLINKS=1
39315 ;;
39316
39317 *-*-solaris2* )
39318 SONAME_FLAG="-h "
39319 USE_SOVERSION=1
39320 USE_SOVERSOLARIS=1
39321 USE_SOSYMLINKS=1
39322 ;;
39323
39324 *-*-darwin* )
39325 USE_MACVERSION=1
39326 USE_SOVERSION=1
39327 USE_SOSYMLINKS=1
39328 ;;
39329 esac
39330
39331
39332
39333
39334
39335
39336
39337
39338
39339 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39340echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39341 DEPS_TRACKING=0
39342
39343 if test "x$GCC" = "xyes"; then
39344 DEPSMODE=gcc
39345 DEPS_TRACKING=1
39346 case "${BAKEFILE_HOST}" in
39347 powerpc-*-darwin* )
39348 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39349 ;;
39350 * )
39351 DEPSFLAG_GCC="-MMD"
39352 ;;
39353 esac
39354 echo "$as_me:$LINENO: result: gcc" >&5
39355echo "${ECHO_T}gcc" >&6
39356 else
39357 echo "$as_me:$LINENO: result: none" >&5
39358echo "${ECHO_T}none" >&6
39359 fi
39360
39361 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39362
39363D='$'
39364cat <<EOF >bk-deps
a848cd7e
SC
39365#!/bin/sh
39366
39367# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39368# script. It is used to track C/C++ files dependencies in portable way.
39369#
39370# Permission is given to use this file in any way.
39371
473276a9 39372DEPSMODE=${DEPSMODE}
a848cd7e 39373DEPSDIR=.deps
473276a9 39374DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39375
473276a9 39376mkdir -p ${D}DEPSDIR
a848cd7e 39377
473276a9
VS
39378if test ${D}DEPSMODE = gcc ; then
39379 ${D}* ${D}{DEPSFLAG_GCC}
39380 status=${D}?
39381 if test ${D}{status} != 0 ; then
39382 exit ${D}{status}
a848cd7e
SC
39383 fi
39384 # move created file to the location we want it in:
473276a9
VS
39385 while test ${D}# -gt 0; do
39386 case "${D}1" in
a848cd7e
SC
39387 -o )
39388 shift
473276a9 39389 objfile=${D}1
a848cd7e
SC
39390 ;;
39391 -* )
39392 ;;
39393 * )
473276a9 39394 srcfile=${D}1
a848cd7e
SC
39395 ;;
39396 esac
39397 shift
39398 done
473276a9
VS
39399 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39400 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39401 if test -f ${D}depfile ; then
39402 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39403 rm -f ${D}depfile
a848cd7e 39404 else
473276a9
VS
39405 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39406 if test -f ${D}depfile ; then
39407 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39408 rm -f ${D}depfile
a848cd7e
SC
39409 fi
39410 fi
39411 exit 0
39412else
473276a9
VS
39413 ${D}*
39414 exit ${D}?
a848cd7e
SC
39415fi
39416EOF
473276a9 39417
a848cd7e
SC
39418 chmod +x bk-deps
39419 fi
39420
39421
39422
39423
39424 RESCOMP=
39425 SETFILE=
39426
39427 case ${BAKEFILE_HOST} in
39428 *-*-cygwin* | *-*-mingw32* )
39429 if test "$build" != "$host" ; then
39430 RESCOMP=$host_alias-windres
39431 else
39432 # Extract the first word of "windres", so it can be a program name with args.
39433set dummy windres; ac_word=$2
39434echo "$as_me:$LINENO: checking for $ac_word" >&5
39435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39436if test "${ac_cv_prog_RESCOMP+set}" = set; then
39437 echo $ECHO_N "(cached) $ECHO_C" >&6
39438else
39439 if test -n "$RESCOMP"; then
39440 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39441else
39442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39443for as_dir in $PATH
39444do
39445 IFS=$as_save_IFS
39446 test -z "$as_dir" && as_dir=.
39447 for ac_exec_ext in '' $ac_executable_extensions; do
39448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39449 ac_cv_prog_RESCOMP="windres"
39450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39451 break 2
39452 fi
39453done
39454done
39455
39456 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39457fi
39458fi
39459RESCOMP=$ac_cv_prog_RESCOMP
39460if test -n "$RESCOMP"; then
39461 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39462echo "${ECHO_T}$RESCOMP" >&6
39463else
39464 echo "$as_me:$LINENO: result: no" >&5
39465echo "${ECHO_T}no" >&6
39466fi
39467
39468 fi
39469 ;;
39470
39471 *-*-darwin* )
39472 # Extract the first word of "Rez", so it can be a program name with args.
39473set dummy Rez; ac_word=$2
39474echo "$as_me:$LINENO: checking for $ac_word" >&5
39475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39476if test "${ac_cv_prog_RESCOMP+set}" = set; then
39477 echo $ECHO_N "(cached) $ECHO_C" >&6
39478else
39479 if test -n "$RESCOMP"; then
39480 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39481else
39482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39483for as_dir in $PATH
39484do
39485 IFS=$as_save_IFS
39486 test -z "$as_dir" && as_dir=.
39487 for ac_exec_ext in '' $ac_executable_extensions; do
39488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39489 ac_cv_prog_RESCOMP="Rez"
39490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39491 break 2
39492 fi
39493done
39494done
39495
39496 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39497fi
39498fi
39499RESCOMP=$ac_cv_prog_RESCOMP
39500if test -n "$RESCOMP"; then
39501 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39502echo "${ECHO_T}$RESCOMP" >&6
39503else
39504 echo "$as_me:$LINENO: result: no" >&5
39505echo "${ECHO_T}no" >&6
39506fi
39507
39508 # Extract the first word of "SetFile", so it can be a program name with args.
39509set dummy SetFile; ac_word=$2
39510echo "$as_me:$LINENO: checking for $ac_word" >&5
39511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39512if test "${ac_cv_prog_SETFILE+set}" = set; then
39513 echo $ECHO_N "(cached) $ECHO_C" >&6
39514else
39515 if test -n "$SETFILE"; then
39516 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39517else
39518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39519for as_dir in $PATH
39520do
39521 IFS=$as_save_IFS
39522 test -z "$as_dir" && as_dir=.
39523 for ac_exec_ext in '' $ac_executable_extensions; do
39524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39525 ac_cv_prog_SETFILE="SetFile"
39526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39527 break 2
39528 fi
39529done
39530done
39531
39532 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39533fi
39534fi
39535SETFILE=$ac_cv_prog_SETFILE
39536if test -n "$SETFILE"; then
39537 echo "$as_me:$LINENO: result: $SETFILE" >&5
39538echo "${ECHO_T}$SETFILE" >&6
39539else
39540 echo "$as_me:$LINENO: result: no" >&5
39541echo "${ECHO_T}no" >&6
39542fi
39543
39544 ;;
39545 esac
39546
39547
39548
39549
39550
224bf05c
VZ
39551
39552
a848cd7e 39553
dcc1b6ad 39554
9f45f08e 39555BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39556
646b6ec1 39557
74b84332 39558
a848cd7e
SC
39559 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39560if test "${enable_precomp_headers+set}" = set; then
39561 enableval="$enable_precomp_headers"
39562 bk_use_pch="$enableval"
39563fi;
39564
39565 GCC_PCH=0
39566
39567 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39568 if test "x$GCC" = "xyes"; then
39569 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39570echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39571 cat >conftest.$ac_ext <<_ACEOF
39572/* confdefs.h. */
39573_ACEOF
39574cat confdefs.h >>conftest.$ac_ext
39575cat >>conftest.$ac_ext <<_ACEOF
39576/* end confdefs.h. */
39577
39578int
39579main ()
39580{
39581
39582 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39583 #error "no pch support"
39584 #endif
39585 #if (__GNUC__ < 3)
39586 #error "no pch support"
39587 #endif
39588 #if (__GNUC__ == 3) && \
39589 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39590 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39591 #error "no pch support"
39592 #endif
39593
39594 ;
39595 return 0;
39596}
39597_ACEOF
39598rm -f conftest.$ac_objext
39599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39600 (eval $ac_compile) 2>conftest.er1
a848cd7e 39601 ac_status=$?
ac1cb8d3
VS
39602 grep -v '^ *+' conftest.er1 >conftest.err
39603 rm -f conftest.er1
39604 cat conftest.err >&5
a848cd7e
SC
39605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606 (exit $ac_status); } &&
ea7db9ff
DE
39607 { ac_try='test -z "$ac_c_werror_flag"
39608 || test ! -s conftest.err'
ac1cb8d3
VS
39609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39610 (eval $ac_try) 2>&5
39611 ac_status=$?
39612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613 (exit $ac_status); }; } &&
39614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39616 (eval $ac_try) 2>&5
39617 ac_status=$?
39618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39619 (exit $ac_status); }; }; then
39620
39621 echo "$as_me:$LINENO: result: yes" >&5
39622echo "${ECHO_T}yes" >&6
39623 CPPFLAGS="-fpch-deps $CPPFLAGS"
39624 GCC_PCH=1
39625
39626else
39627 echo "$as_me: failed program was:" >&5
39628sed 's/^/| /' conftest.$ac_ext >&5
39629
39630
39631 echo "$as_me:$LINENO: result: no" >&5
39632echo "${ECHO_T}no" >&6
39633
39634fi
ac1cb8d3 39635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39636 if test $GCC_PCH = 1 ; then
39637 cat <<EOF >bk-make-pch
39638#!/bin/sh
39639
39640# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39641# script. It is used to generated precompiled headers.
39642#
39643# Permission is given to use this file in any way.
39644
39645outfile="\${1}"
39646header="\${2}"
39647shift
39648shift
39649
39650compiler=
39651headerfile=
39652while test \${#} -gt 0; do
39653 case "\${1}" in
39654 -I* )
39655 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39656 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39657 headerfile="\${incdir}/\${header}"
39658 fi
39659 ;;
39660 esac
39661 compiler="\${compiler} \${1}"
39662 shift
39663done
39664
39665if test "x\${headerfile}" = "x" ; then
39666 echo "error: can't find header \${header} in include paths" >2
39667else
39668 if test -f \${outfile} ; then
39669 rm -f \${outfile}
39670 else
39671 mkdir -p \`dirname \${outfile}\`
39672 fi
39673 depsfile=".deps/\`basename \${outfile}\`.d"
39674 mkdir -p .deps
39675 # can do this because gcc is >= 3.4:
39676 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39677 exit \${?}
39678fi
39679EOF
39680 chmod +x bk-make-pch
39681 fi
39682 fi
39683 fi
39684
39685
39686
39687
39688
dcc1b6ad
VS
39689
39690
39691 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39692if test "${enable_precomp_headers+set}" = set; then
39693 enableval="$enable_precomp_headers"
39694 bk_use_pch="$enableval"
39695fi;
39696
39697 GCC_PCH=0
39698
39699 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39700 if test "x$GCC" = "xyes"; then
39701 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39702echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39703 cat >conftest.$ac_ext <<_ACEOF
39704/* confdefs.h. */
39705_ACEOF
39706cat confdefs.h >>conftest.$ac_ext
39707cat >>conftest.$ac_ext <<_ACEOF
39708/* end confdefs.h. */
39709
39710int
39711main ()
39712{
39713
39714 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39715 #error "no pch support"
39716 #endif
39717 #if (__GNUC__ < 3)
39718 #error "no pch support"
39719 #endif
39720 #if (__GNUC__ == 3) && \
39721 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39722 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39723 #error "no pch support"
39724 #endif
39725
39726 ;
39727 return 0;
39728}
39729_ACEOF
39730rm -f conftest.$ac_objext
39731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39732 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39733 ac_status=$?
ac1cb8d3
VS
39734 grep -v '^ *+' conftest.er1 >conftest.err
39735 rm -f conftest.er1
39736 cat conftest.err >&5
dcc1b6ad
VS
39737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738 (exit $ac_status); } &&
ea7db9ff
DE
39739 { ac_try='test -z "$ac_c_werror_flag"
39740 || test ! -s conftest.err'
ac1cb8d3
VS
39741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39742 (eval $ac_try) 2>&5
39743 ac_status=$?
39744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39745 (exit $ac_status); }; } &&
39746 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39748 (eval $ac_try) 2>&5
39749 ac_status=$?
39750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39751 (exit $ac_status); }; }; then
39752
39753 echo "$as_me:$LINENO: result: yes" >&5
39754echo "${ECHO_T}yes" >&6
39755 CPPFLAGS="-fpch-deps $CPPFLAGS"
39756 GCC_PCH=1
39757
39758else
39759 echo "$as_me: failed program was:" >&5
39760sed 's/^/| /' conftest.$ac_ext >&5
39761
39762
39763 echo "$as_me:$LINENO: result: no" >&5
39764echo "${ECHO_T}no" >&6
39765
39766fi
ac1cb8d3 39767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39768 if test $GCC_PCH = 1 ; then
39769 cat <<EOF >bk-make-pch
39770#!/bin/sh
39771
39772# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39773# script. It is used to generated precompiled headers.
39774#
39775# Permission is given to use this file in any way.
39776
39777outfile="\${1}"
39778header="\${2}"
39779shift
39780shift
39781
39782compiler=
39783headerfile=
39784while test \${#} -gt 0; do
39785 case "\${1}" in
39786 -I* )
39787 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39788 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39789 headerfile="\${incdir}/\${header}"
39790 fi
39791 ;;
39792 esac
39793 compiler="\${compiler} \${1}"
39794 shift
39795done
39796
39797if test "x\${headerfile}" = "x" ; then
39798 echo "error: can't find header \${header} in include paths" >2
39799else
39800 if test -f \${outfile} ; then
39801 rm -f \${outfile}
39802 else
39803 mkdir -p \`dirname \${outfile}\`
39804 fi
39805 depsfile=".deps/\`basename \${outfile}\`.d"
39806 mkdir -p .deps
39807 # can do this because gcc is >= 3.4:
39808 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39809 exit \${?}
39810fi
39811EOF
39812 chmod +x bk-make-pch
39813 fi
39814 fi
39815 fi
39816
39817
39818
39819
a848cd7e
SC
39820 COND_BUILD_DEBUG="#"
39821 if test "x$BUILD" = "xdebug" ; then
39822 COND_BUILD_DEBUG=""
39823 fi
39824
39825 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39826 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39827 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39828 fi
39829
39830 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39831 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39832 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39833 fi
39834
39835 COND_BUILD_DEBUG_UNICODE_0="#"
39836 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39837 COND_BUILD_DEBUG_UNICODE_0=""
39838 fi
39839
39840 COND_BUILD_DEBUG_UNICODE_1="#"
39841 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39842 COND_BUILD_DEBUG_UNICODE_1=""
39843 fi
39844
39845 COND_BUILD_RELEASE="#"
39846 if test "x$BUILD" = "xrelease" ; then
39847 COND_BUILD_RELEASE=""
39848 fi
39849
39850 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39851 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39852 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39853 fi
39854
39855 COND_BUILD_RELEASE_UNICODE_0="#"
39856 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39857 COND_BUILD_RELEASE_UNICODE_0=""
39858 fi
39859
39860 COND_BUILD_RELEASE_UNICODE_1="#"
39861 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39862 COND_BUILD_RELEASE_UNICODE_1=""
39863 fi
39864
39865 COND_DEBUG_FLAG_1="#"
39866 if test "x$DEBUG_FLAG" = "x1" ; then
39867 COND_DEBUG_FLAG_1=""
39868 fi
39869
39870 COND_DEBUG_INFO_0="#"
39871 if test "x$DEBUG_INFO" = "x0" ; then
39872 COND_DEBUG_INFO_0=""
39873 fi
39874
39875 COND_DEBUG_INFO_1="#"
39876 if test "x$DEBUG_INFO" = "x1" ; then
39877 COND_DEBUG_INFO_1=""
39878 fi
39879
39880 COND_DEPS_TRACKING_0="#"
39881 if test "x$DEPS_TRACKING" = "x0" ; then
39882 COND_DEPS_TRACKING_0=""
39883 fi
39884
39885 COND_DEPS_TRACKING_1="#"
39886 if test "x$DEPS_TRACKING" = "x1" ; then
39887 COND_DEPS_TRACKING_1=""
39888 fi
39889
39890 COND_GCC_PCH_1="#"
39891 if test "x$GCC_PCH" = "x1" ; then
39892 COND_GCC_PCH_1=""
39893 fi
39894
39895 COND_MONOLITHIC_0="#"
39896 if test "x$MONOLITHIC" = "x0" ; then
39897 COND_MONOLITHIC_0=""
39898 fi
39899
39900 COND_MONOLITHIC_0_SHARED_0="#"
39901 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39902 COND_MONOLITHIC_0_SHARED_0=""
39903 fi
39904
39905 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39906 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39907 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39908 fi
39909
39910 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39911 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39912 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39913 fi
39914
39915 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39916 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39917 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39918 fi
39919
39920 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39921 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39922 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39923 fi
39924
39925 COND_MONOLITHIC_0_SHARED_1="#"
39926 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39927 COND_MONOLITHIC_0_SHARED_1=""
39928 fi
39929
39930 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39931 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39932 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39933 fi
39934
39935 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39936 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39937 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39938 fi
39939
39940 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39941 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39942 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39943 fi
39944
39945 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39946 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39947 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39948 fi
39949
39950 COND_MONOLITHIC_0_USE_ODBC_1="#"
39951 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39952 COND_MONOLITHIC_0_USE_ODBC_1=""
39953 fi
39954
39955 COND_MONOLITHIC_1="#"
39956 if test "x$MONOLITHIC" = "x1" ; then
39957 COND_MONOLITHIC_1=""
39958 fi
39959
39960 COND_MONOLITHIC_1_SHARED_0="#"
39961 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39962 COND_MONOLITHIC_1_SHARED_0=""
39963 fi
39964
39965 COND_MONOLITHIC_1_SHARED_1="#"
39966 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39967 COND_MONOLITHIC_1_SHARED_1=""
39968 fi
39969
39970 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39971 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39972 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39973 fi
39974
39975 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39976 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39977 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39978 fi
39979
39980 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39981 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39982 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39983 fi
39984
39985 COND_PLATFORM_MACOSX_1="#"
39986 if test "x$PLATFORM_MACOSX" = "x1" ; then
39987 COND_PLATFORM_MACOSX_1=""
39988 fi
39989
39990 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39991 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39992 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39993 fi
39994
39995 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39996 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39997 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39998 fi
39999
40000 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40001 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40002 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40003 fi
40004
ea7db9ff
DE
40005 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40006 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40007 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40008 fi
40009
40010 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40011 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40012 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40013 fi
40014
a848cd7e
SC
40015 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40016 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40017 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40018 fi
40019
40020 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40021 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40022 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40023 fi
40024
40025 COND_PLATFORM_MAC_1="#"
40026 if test "x$PLATFORM_MAC" = "x1" ; then
40027 COND_PLATFORM_MAC_1=""
40028 fi
40029
40030 COND_PLATFORM_OS2_1="#"
40031 if test "x$PLATFORM_OS2" = "x1" ; then
40032 COND_PLATFORM_OS2_1=""
40033 fi
40034
40035 COND_PLATFORM_UNIX_0="#"
40036 if test "x$PLATFORM_UNIX" = "x0" ; then
40037 COND_PLATFORM_UNIX_0=""
40038 fi
40039
40040 COND_PLATFORM_UNIX_1="#"
40041 if test "x$PLATFORM_UNIX" = "x1" ; then
40042 COND_PLATFORM_UNIX_1=""
40043 fi
40044
40045 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40046 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40047 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40048 fi
40049
40050 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40051 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40052 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40053 fi
40054
40055 COND_PLATFORM_WIN32_0="#"
40056 if test "x$PLATFORM_WIN32" = "x0" ; then
40057 COND_PLATFORM_WIN32_0=""
40058 fi
40059
40060 COND_PLATFORM_WIN32_1="#"
40061 if test "x$PLATFORM_WIN32" = "x1" ; then
40062 COND_PLATFORM_WIN32_1=""
40063 fi
40064
40065 COND_SHARED_0="#"
40066 if test "x$SHARED" = "x0" ; then
40067 COND_SHARED_0=""
40068 fi
40069
40070 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40071 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40072 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40073 fi
40074
40075 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40076 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40077 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40078 fi
40079
40080 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40081 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40082 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40083 fi
40084
40085 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40086 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40087 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40088 fi
40089
40090 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40091 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40092 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40093 fi
40094
40095 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40096 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40097 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40098 fi
40099
40100 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40101 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40102 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40103 fi
40104
40105 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40106 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40107 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40108 fi
40109
40110 COND_SHARED_1="#"
40111 if test "x$SHARED" = "x1" ; then
40112 COND_SHARED_1=""
40113 fi
40114
40115 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40116 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40117 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40118 fi
40119
40120 COND_TOOLKIT_COCOA="#"
40121 if test "x$TOOLKIT" = "xCOCOA" ; then
40122 COND_TOOLKIT_COCOA=""
40123 fi
40124
40125 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40126 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40127 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40128 fi
40129
40130 COND_TOOLKIT_GTK="#"
40131 if test "x$TOOLKIT" = "xGTK" ; then
40132 COND_TOOLKIT_GTK=""
40133 fi
40134
40135 COND_TOOLKIT_GTK_USE_GUI_1="#"
40136 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40137 COND_TOOLKIT_GTK_USE_GUI_1=""
40138 fi
40139
40140 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40141 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40142 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40143 fi
40144
40145 COND_TOOLKIT_MAC="#"
40146 if test "x$TOOLKIT" = "xMAC" ; then
40147 COND_TOOLKIT_MAC=""
40148 fi
40149
40150 COND_TOOLKIT_MAC_USE_GUI_1="#"
40151 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40152 COND_TOOLKIT_MAC_USE_GUI_1=""
40153 fi
40154
40155 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40156 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40157 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40158 fi
40159
e835546c
DE
40160 COND_TOOLKIT_MAC_WXUNIV_0="#"
40161 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40162 COND_TOOLKIT_MAC_WXUNIV_0=""
40163 fi
40164
a848cd7e
SC
40165 COND_TOOLKIT_MGL="#"
40166 if test "x$TOOLKIT" = "xMGL" ; then
40167 COND_TOOLKIT_MGL=""
40168 fi
40169
40170 COND_TOOLKIT_MGL_USE_GUI_1="#"
40171 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40172 COND_TOOLKIT_MGL_USE_GUI_1=""
40173 fi
40174
40175 COND_TOOLKIT_MOTIF="#"
40176 if test "x$TOOLKIT" = "xMOTIF" ; then
40177 COND_TOOLKIT_MOTIF=""
40178 fi
40179
40180 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40181 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40182 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40183 fi
40184
40185 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40186 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40187 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40188 fi
40189
40190 COND_TOOLKIT_MSW="#"
40191 if test "x$TOOLKIT" = "xMSW" ; then
40192 COND_TOOLKIT_MSW=""
40193 fi
40194
40195 COND_TOOLKIT_MSW_USE_GUI_1="#"
40196 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40197 COND_TOOLKIT_MSW_USE_GUI_1=""
40198 fi
40199
40200 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40201 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40202 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40203 fi
40204
e835546c
DE
40205 COND_TOOLKIT_MSW_WXUNIV_0="#"
40206 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40207 COND_TOOLKIT_MSW_WXUNIV_0=""
40208 fi
40209
a848cd7e
SC
40210 COND_TOOLKIT_PM="#"
40211 if test "x$TOOLKIT" = "xPM" ; then
40212 COND_TOOLKIT_PM=""
40213 fi
40214
40215 COND_TOOLKIT_PM_USE_GUI_1="#"
40216 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40217 COND_TOOLKIT_PM_USE_GUI_1=""
40218 fi
40219
40220 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40221 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40222 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40223 fi
40224
e835546c
DE
40225 COND_TOOLKIT_PM_WXUNIV_0="#"
40226 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40227 COND_TOOLKIT_PM_WXUNIV_0=""
40228 fi
40229
3fd9c298
DE
40230 COND_TOOLKIT_WINCE="#"
40231 if test "x$TOOLKIT" = "xWINCE" ; then
40232 COND_TOOLKIT_WINCE=""
40233 fi
40234
40235 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40236 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40237 COND_TOOLKIT_WINCE_USE_GUI_1=""
40238 fi
40239
40240 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40241 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40242 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40243 fi
40244
a848cd7e
SC
40245 COND_TOOLKIT_X11="#"
40246 if test "x$TOOLKIT" = "xX11" ; then
40247 COND_TOOLKIT_X11=""
40248 fi
40249
40250 COND_TOOLKIT_X11_USE_GUI_1="#"
40251 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40252 COND_TOOLKIT_X11_USE_GUI_1=""
40253 fi
40254
40255 COND_UNICODE_1="#"
40256 if test "x$UNICODE" = "x1" ; then
40257 COND_UNICODE_1=""
40258 fi
40259
40260 COND_USE_EXCEPTIONS_0="#"
40261 if test "x$USE_EXCEPTIONS" = "x0" ; then
40262 COND_USE_EXCEPTIONS_0=""
40263 fi
40264
40265 COND_USE_EXCEPTIONS_1="#"
40266 if test "x$USE_EXCEPTIONS" = "x1" ; then
40267 COND_USE_EXCEPTIONS_1=""
40268 fi
40269
40270 COND_USE_GUI_0="#"
40271 if test "x$USE_GUI" = "x0" ; then
40272 COND_USE_GUI_0=""
40273 fi
40274
40275 COND_USE_GUI_1="#"
40276 if test "x$USE_GUI" = "x1" ; then
40277 COND_USE_GUI_1=""
40278 fi
40279
40280 COND_USE_GUI_1_WXUNIV_0="#"
40281 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40282 COND_USE_GUI_1_WXUNIV_0=""
40283 fi
40284
40285 COND_USE_GUI_1_WXUNIV_1="#"
40286 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40287 COND_USE_GUI_1_WXUNIV_1=""
40288 fi
40289
40290 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40291 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40292 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40293 fi
40294
40295 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40296 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40297 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40298 fi
40299
40300 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40301 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40302 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40303 fi
40304
40305 COND_USE_ODBC_1="#"
40306 if test "x$USE_ODBC" = "x1" ; then
40307 COND_USE_ODBC_1=""
40308 fi
40309
40310 COND_USE_PLUGINS_0="#"
40311 if test "x$USE_PLUGINS" = "x0" ; then
40312 COND_USE_PLUGINS_0=""
40313 fi
40314
40315 COND_USE_SOSYMLINKS_1="#"
40316 if test "x$USE_SOSYMLINKS" = "x1" ; then
40317 COND_USE_SOSYMLINKS_1=""
40318 fi
40319
40320 COND_USE_SOVERLINUX_1="#"
40321 if test "x$USE_SOVERLINUX" = "x1" ; then
40322 COND_USE_SOVERLINUX_1=""
40323 fi
40324
40325 COND_USE_SOVERSION_0="#"
40326 if test "x$USE_SOVERSION" = "x0" ; then
40327 COND_USE_SOVERSION_0=""
40328 fi
40329
40330 COND_USE_SOVERSOLARIS_1="#"
40331 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40332 COND_USE_SOVERSOLARIS_1=""
40333 fi
40334
40335 COND_WITH_PLUGIN_SDL_1="#"
40336 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40337 COND_WITH_PLUGIN_SDL_1=""
40338 fi
40339
40340 COND_WITH_SDL_1="#"
40341 if test "x$WITH_SDL" = "x1" ; then
40342 COND_WITH_SDL_1=""
40343 fi
40344
40345 COND_WXUNIV_1="#"
40346 if test "x$WXUNIV" = "x1" ; then
40347 COND_WXUNIV_1=""
40348 fi
40349
40350 COND_WXUSE_EXPAT_BUILTIN="#"
40351 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40352 COND_WXUSE_EXPAT_BUILTIN=""
40353 fi
40354
40355 COND_WXUSE_LIBJPEG_BUILTIN="#"
40356 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40357 COND_WXUSE_LIBJPEG_BUILTIN=""
40358 fi
40359
40360 COND_WXUSE_LIBPNG_BUILTIN="#"
40361 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40362 COND_WXUSE_LIBPNG_BUILTIN=""
40363 fi
40364
40365 COND_WXUSE_LIBTIFF_BUILTIN="#"
40366 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40367 COND_WXUSE_LIBTIFF_BUILTIN=""
40368 fi
40369
40370 COND_WXUSE_ODBC_BUILTIN="#"
40371 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40372 COND_WXUSE_ODBC_BUILTIN=""
40373 fi
40374
40375 COND_WXUSE_REGEX_BUILTIN="#"
40376 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40377 COND_WXUSE_REGEX_BUILTIN=""
40378 fi
40379
40380 COND_WXUSE_ZLIB_BUILTIN="#"
40381 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40382 COND_WXUSE_ZLIB_BUILTIN=""
40383 fi
40384
dcc1b6ad
VS
40385 COND_BUILD_DEBUG="#"
40386 if test "x$BUILD" = "xdebug" ; then
40387 COND_BUILD_DEBUG=""
40388 fi
40389
40390 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40391 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40392 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40393 fi
40394
40395 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40396 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40397 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40398 fi
40399
40400 COND_BUILD_DEBUG_UNICODE_0="#"
40401 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40402 COND_BUILD_DEBUG_UNICODE_0=""
40403 fi
40404
40405 COND_BUILD_DEBUG_UNICODE_1="#"
40406 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40407 COND_BUILD_DEBUG_UNICODE_1=""
40408 fi
40409
40410 COND_BUILD_RELEASE="#"
40411 if test "x$BUILD" = "xrelease" ; then
40412 COND_BUILD_RELEASE=""
40413 fi
40414
40415 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40416 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40417 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40418 fi
40419
40420 COND_BUILD_RELEASE_UNICODE_0="#"
40421 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40422 COND_BUILD_RELEASE_UNICODE_0=""
40423 fi
40424
40425 COND_BUILD_RELEASE_UNICODE_1="#"
40426 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40427 COND_BUILD_RELEASE_UNICODE_1=""
40428 fi
40429
40430 COND_DEBUG_FLAG_1="#"
40431 if test "x$DEBUG_FLAG" = "x1" ; then
40432 COND_DEBUG_FLAG_1=""
40433 fi
40434
40435 COND_DEBUG_INFO_0="#"
40436 if test "x$DEBUG_INFO" = "x0" ; then
40437 COND_DEBUG_INFO_0=""
40438 fi
40439
40440 COND_DEBUG_INFO_1="#"
40441 if test "x$DEBUG_INFO" = "x1" ; then
40442 COND_DEBUG_INFO_1=""
40443 fi
40444
40445 COND_DEPS_TRACKING_0="#"
40446 if test "x$DEPS_TRACKING" = "x0" ; then
40447 COND_DEPS_TRACKING_0=""
40448 fi
40449
40450 COND_DEPS_TRACKING_1="#"
40451 if test "x$DEPS_TRACKING" = "x1" ; then
40452 COND_DEPS_TRACKING_1=""
40453 fi
40454
40455 COND_GCC_PCH_1="#"
40456 if test "x$GCC_PCH" = "x1" ; then
40457 COND_GCC_PCH_1=""
40458 fi
40459
40460 COND_MONOLITHIC_0="#"
40461 if test "x$MONOLITHIC" = "x0" ; then
40462 COND_MONOLITHIC_0=""
40463 fi
40464
40465 COND_MONOLITHIC_0_SHARED_0="#"
40466 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40467 COND_MONOLITHIC_0_SHARED_0=""
40468 fi
40469
40470 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40471 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40472 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40473 fi
40474
40475 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40476 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40477 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40478 fi
40479
40480 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40481 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40482 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40483 fi
40484
40485 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40486 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40487 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40488 fi
40489
40490 COND_MONOLITHIC_0_SHARED_1="#"
40491 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40492 COND_MONOLITHIC_0_SHARED_1=""
40493 fi
40494
40495 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40496 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40497 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40498 fi
40499
40500 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40501 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40502 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40503 fi
40504
40505 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40506 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40507 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40508 fi
40509
40510 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40511 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40512 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40513 fi
40514
40515 COND_MONOLITHIC_0_USE_ODBC_1="#"
40516 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40517 COND_MONOLITHIC_0_USE_ODBC_1=""
40518 fi
40519
40520 COND_MONOLITHIC_1="#"
40521 if test "x$MONOLITHIC" = "x1" ; then
40522 COND_MONOLITHIC_1=""
40523 fi
40524
40525 COND_MONOLITHIC_1_SHARED_0="#"
40526 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40527 COND_MONOLITHIC_1_SHARED_0=""
40528 fi
40529
40530 COND_MONOLITHIC_1_SHARED_1="#"
40531 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40532 COND_MONOLITHIC_1_SHARED_1=""
40533 fi
40534
40535 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40536 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40537 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40538 fi
40539
40540 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40541 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40542 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40543 fi
40544
40545 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40546 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40547 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40548 fi
40549
40550 COND_PLATFORM_MACOSX_1="#"
40551 if test "x$PLATFORM_MACOSX" = "x1" ; then
40552 COND_PLATFORM_MACOSX_1=""
40553 fi
40554
40555 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40556 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40557 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40558 fi
40559
40560 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40561 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40562 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40563 fi
40564
40565 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40566 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40567 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40568 fi
40569
40570 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40571 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40572 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40573 fi
40574
40575 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40576 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40577 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40578 fi
40579
40580 COND_PLATFORM_MAC_1="#"
40581 if test "x$PLATFORM_MAC" = "x1" ; then
40582 COND_PLATFORM_MAC_1=""
40583 fi
40584
40585 COND_PLATFORM_OS2_1="#"
40586 if test "x$PLATFORM_OS2" = "x1" ; then
40587 COND_PLATFORM_OS2_1=""
40588 fi
40589
40590 COND_PLATFORM_UNIX_0="#"
40591 if test "x$PLATFORM_UNIX" = "x0" ; then
40592 COND_PLATFORM_UNIX_0=""
40593 fi
40594
40595 COND_PLATFORM_UNIX_1="#"
40596 if test "x$PLATFORM_UNIX" = "x1" ; then
40597 COND_PLATFORM_UNIX_1=""
40598 fi
40599
40600 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40601 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40602 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40603 fi
40604
40605 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40606 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40607 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40608 fi
40609
40610 COND_PLATFORM_WIN32_0="#"
40611 if test "x$PLATFORM_WIN32" = "x0" ; then
40612 COND_PLATFORM_WIN32_0=""
40613 fi
40614
40615 COND_PLATFORM_WIN32_1="#"
40616 if test "x$PLATFORM_WIN32" = "x1" ; then
40617 COND_PLATFORM_WIN32_1=""
40618 fi
40619
40620 COND_SHARED_0="#"
40621 if test "x$SHARED" = "x0" ; then
40622 COND_SHARED_0=""
40623 fi
40624
40625 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40626 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40627 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40628 fi
40629
40630 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40631 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40632 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40633 fi
40634
40635 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40636 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40637 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40638 fi
40639
40640 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40641 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40642 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40643 fi
40644
40645 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40646 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40647 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40648 fi
40649
40650 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40651 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40652 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40653 fi
40654
40655 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40656 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40657 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40658 fi
40659
40660 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40661 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40662 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40663 fi
40664
40665 COND_SHARED_1="#"
40666 if test "x$SHARED" = "x1" ; then
40667 COND_SHARED_1=""
40668 fi
40669
40670 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40671 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40672 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40673 fi
40674
40675 COND_TOOLKIT_COCOA="#"
40676 if test "x$TOOLKIT" = "xCOCOA" ; then
40677 COND_TOOLKIT_COCOA=""
40678 fi
40679
40680 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40681 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40682 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40683 fi
40684
40685 COND_TOOLKIT_GTK="#"
40686 if test "x$TOOLKIT" = "xGTK" ; then
40687 COND_TOOLKIT_GTK=""
40688 fi
40689
40690 COND_TOOLKIT_GTK_USE_GUI_1="#"
40691 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40692 COND_TOOLKIT_GTK_USE_GUI_1=""
40693 fi
40694
40695 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40696 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40697 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40698 fi
40699
40700 COND_TOOLKIT_MAC="#"
40701 if test "x$TOOLKIT" = "xMAC" ; then
40702 COND_TOOLKIT_MAC=""
40703 fi
40704
40705 COND_TOOLKIT_MAC_USE_GUI_1="#"
40706 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40707 COND_TOOLKIT_MAC_USE_GUI_1=""
40708 fi
40709
40710 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40711 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40712 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40713 fi
40714
40715 COND_TOOLKIT_MGL="#"
40716 if test "x$TOOLKIT" = "xMGL" ; then
40717 COND_TOOLKIT_MGL=""
40718 fi
40719
40720 COND_TOOLKIT_MGL_USE_GUI_1="#"
40721 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40722 COND_TOOLKIT_MGL_USE_GUI_1=""
40723 fi
40724
40725 COND_TOOLKIT_MOTIF="#"
40726 if test "x$TOOLKIT" = "xMOTIF" ; then
40727 COND_TOOLKIT_MOTIF=""
40728 fi
40729
40730 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40731 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40732 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40733 fi
40734
40735 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40736 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40737 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40738 fi
40739
40740 COND_TOOLKIT_MSW="#"
40741 if test "x$TOOLKIT" = "xMSW" ; then
40742 COND_TOOLKIT_MSW=""
40743 fi
40744
40745 COND_TOOLKIT_MSW_USE_GUI_1="#"
40746 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40747 COND_TOOLKIT_MSW_USE_GUI_1=""
40748 fi
40749
40750 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40751 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40752 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40753 fi
40754
40755 COND_TOOLKIT_PM="#"
40756 if test "x$TOOLKIT" = "xPM" ; then
40757 COND_TOOLKIT_PM=""
40758 fi
40759
40760 COND_TOOLKIT_PM_USE_GUI_1="#"
40761 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40762 COND_TOOLKIT_PM_USE_GUI_1=""
40763 fi
40764
40765 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40766 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40767 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40768 fi
40769
40770 COND_TOOLKIT_WINCE="#"
40771 if test "x$TOOLKIT" = "xWINCE" ; then
40772 COND_TOOLKIT_WINCE=""
40773 fi
40774
40775 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40776 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40777 COND_TOOLKIT_WINCE_USE_GUI_1=""
40778 fi
40779
40780 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40781 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40782 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40783 fi
40784
40785 COND_TOOLKIT_X11="#"
40786 if test "x$TOOLKIT" = "xX11" ; then
40787 COND_TOOLKIT_X11=""
40788 fi
40789
40790 COND_TOOLKIT_X11_USE_GUI_1="#"
40791 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40792 COND_TOOLKIT_X11_USE_GUI_1=""
40793 fi
40794
40795 COND_UNICODE_1="#"
40796 if test "x$UNICODE" = "x1" ; then
40797 COND_UNICODE_1=""
40798 fi
40799
40800 COND_USE_EXCEPTIONS_0="#"
40801 if test "x$USE_EXCEPTIONS" = "x0" ; then
40802 COND_USE_EXCEPTIONS_0=""
40803 fi
40804
40805 COND_USE_EXCEPTIONS_1="#"
40806 if test "x$USE_EXCEPTIONS" = "x1" ; then
40807 COND_USE_EXCEPTIONS_1=""
40808 fi
40809
40810 COND_USE_GUI_0="#"
40811 if test "x$USE_GUI" = "x0" ; then
40812 COND_USE_GUI_0=""
40813 fi
40814
40815 COND_USE_GUI_1="#"
40816 if test "x$USE_GUI" = "x1" ; then
40817 COND_USE_GUI_1=""
40818 fi
40819
40820 COND_USE_GUI_1_WXUNIV_0="#"
40821 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40822 COND_USE_GUI_1_WXUNIV_0=""
40823 fi
40824
40825 COND_USE_GUI_1_WXUNIV_1="#"
40826 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40827 COND_USE_GUI_1_WXUNIV_1=""
40828 fi
40829
40830 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40831 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40832 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40833 fi
40834
40835 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40836 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40837 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40838 fi
40839
40840 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40841 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40842 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40843 fi
40844
40845 COND_USE_ODBC_1="#"
40846 if test "x$USE_ODBC" = "x1" ; then
40847 COND_USE_ODBC_1=""
40848 fi
40849
40850 COND_USE_PLUGINS_0="#"
40851 if test "x$USE_PLUGINS" = "x0" ; then
40852 COND_USE_PLUGINS_0=""
40853 fi
40854
40855 COND_USE_SOSYMLINKS_1="#"
40856 if test "x$USE_SOSYMLINKS" = "x1" ; then
40857 COND_USE_SOSYMLINKS_1=""
40858 fi
40859
40860 COND_USE_SOVERLINUX_1="#"
40861 if test "x$USE_SOVERLINUX" = "x1" ; then
40862 COND_USE_SOVERLINUX_1=""
40863 fi
40864
40865 COND_USE_SOVERSION_0="#"
40866 if test "x$USE_SOVERSION" = "x0" ; then
40867 COND_USE_SOVERSION_0=""
40868 fi
40869
40870 COND_USE_SOVERSOLARIS_1="#"
40871 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40872 COND_USE_SOVERSOLARIS_1=""
40873 fi
40874
40875 COND_WITH_PLUGIN_SDL_1="#"
40876 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40877 COND_WITH_PLUGIN_SDL_1=""
40878 fi
40879
40880 COND_WXUNIV_1="#"
40881 if test "x$WXUNIV" = "x1" ; then
40882 COND_WXUNIV_1=""
40883 fi
40884
40885 COND_WXUSE_EXPAT_BUILTIN="#"
40886 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40887 COND_WXUSE_EXPAT_BUILTIN=""
40888 fi
40889
40890 COND_WXUSE_LIBJPEG_BUILTIN="#"
40891 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40892 COND_WXUSE_LIBJPEG_BUILTIN=""
40893 fi
40894
40895 COND_WXUSE_LIBPNG_BUILTIN="#"
40896 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40897 COND_WXUSE_LIBPNG_BUILTIN=""
40898 fi
40899
40900 COND_WXUSE_LIBTIFF_BUILTIN="#"
40901 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40902 COND_WXUSE_LIBTIFF_BUILTIN=""
40903 fi
40904
40905 COND_WXUSE_ODBC_BUILTIN="#"
40906 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40907 COND_WXUSE_ODBC_BUILTIN=""
40908 fi
40909
40910 COND_WXUSE_REGEX_BUILTIN="#"
40911 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40912 COND_WXUSE_REGEX_BUILTIN=""
40913 fi
40914
40915 COND_WXUSE_ZLIB_BUILTIN="#"
40916 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40917 COND_WXUSE_ZLIB_BUILTIN=""
40918 fi
40919
a848cd7e
SC
40920
40921
40922
40923
74b84332 40924GCC_PRAGMA_FLAGS=""
a848cd7e 40925if test $GCC_PCH = 1 ; then
74b84332 40926 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40927else
40928 case "${host}" in
40929 powerpc-*-darwin* )
74b84332 40930 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40931 ;;
bea8e651 40932 *-*-mingw32* )
1f344abf
VS
40933 if test "$wxUSE_STL" = "yes" -o \
40934 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40935 "$wxUSE_NO_RTTI" != "yes"; then
40936 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40937echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40938 cat >conftest.$ac_ext <<_ACEOF
40939/* confdefs.h. */
40940_ACEOF
40941cat confdefs.h >>conftest.$ac_ext
40942cat >>conftest.$ac_ext <<_ACEOF
40943/* end confdefs.h. */
40944
40945int
40946main ()
40947{
1f344abf 40948#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40949 #error "Not GCC 3.2 or greater"
40950 #endif
40951
40952 ;
40953 return 0;
40954}
40955_ACEOF
40956rm -f conftest.$ac_objext
40957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40958 (eval $ac_compile) 2>conftest.er1
bea8e651 40959 ac_status=$?
ac1cb8d3
VS
40960 grep -v '^ *+' conftest.er1 >conftest.err
40961 rm -f conftest.er1
40962 cat conftest.err >&5
bea8e651
MB
40963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964 (exit $ac_status); } &&
ea7db9ff
DE
40965 { ac_try='test -z "$ac_c_werror_flag"
40966 || test ! -s conftest.err'
ac1cb8d3
VS
40967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968 (eval $ac_try) 2>&5
40969 ac_status=$?
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); }; } &&
40972 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974 (eval $ac_try) 2>&5
40975 ac_status=$?
40976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); }; }; then
74b84332 40978 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40979 echo "$as_me:$LINENO: result: yes" >&5
40980echo "${ECHO_T}yes" >&6
40981else
40982 echo "$as_me: failed program was:" >&5
40983sed 's/^/| /' conftest.$ac_ext >&5
40984
40985echo "$as_me:$LINENO: result: no" >&5
40986echo "${ECHO_T}no" >&6
40987fi
ac1cb8d3 40988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
40989 fi
40990 ;;
a848cd7e
SC
40991 esac
40992fi
74b84332 40993CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
40994
40995
40996SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
40997
40998
40999
41000
41001
41002
41003
41004
41005
41006
41007
41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
41072
41073
41074
41075
41076
41077
41078
41079
41080
41081
41082
41083
41084
41085
41086
41087
41088
41089
41090
41091
41092
41093
41094
74b84332 41095
224bf05c 41096
a848cd7e
SC
41097
41098
41099echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41100echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41101set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41102if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41103 echo $ECHO_N "(cached) $ECHO_C" >&6
41104else
41105 cat >conftest.make <<\_ACEOF
41106all:
41107 @echo 'ac_maketemp="$(MAKE)"'
41108_ACEOF
41109# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41110eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41111if test -n "$ac_maketemp"; then
41112 eval ac_cv_prog_make_${ac_make}_set=yes
41113else
41114 eval ac_cv_prog_make_${ac_make}_set=no
41115fi
41116rm -f conftest.make
41117fi
41118if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41119 echo "$as_me:$LINENO: result: yes" >&5
41120echo "${ECHO_T}yes" >&6
41121 SET_MAKE=
41122else
41123 echo "$as_me:$LINENO: result: no" >&5
41124echo "${ECHO_T}no" >&6
41125 SET_MAKE="MAKE=${MAKE-make}"
41126fi
41127
41128
41129if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
41130 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
41131fi
41132
41133 ac_config_headers="$ac_config_headers setup.h"
41134
41135
8708fa76 41136 ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile"
a848cd7e
SC
41137
41138
41139 ac_config_commands="$ac_config_commands default"
41140
41141
41142
41143if test "$wxUSE_GUI" = "yes"; then
41144 SUBDIRS="samples demos utils contrib"
41145else SUBDIRS="samples utils"
41146fi
41147
41148
41149
41150# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41151if test "${with_cppunit_prefix+set}" = set; then
41152 withval="$with_cppunit_prefix"
41153 cppunit_config_prefix="$withval"
41154else
41155 cppunit_config_prefix=""
41156fi;
41157
41158# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41159if test "${with_cppunit_exec_prefix+set}" = set; then
41160 withval="$with_cppunit_exec_prefix"
41161 cppunit_config_exec_prefix="$withval"
41162else
41163 cppunit_config_exec_prefix=""
41164fi;
41165
41166 if test x$cppunit_config_exec_prefix != x ; then
41167 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41168 if test x${CPPUNIT_CONFIG+set} != xset ; then
41169 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41170 fi
41171 fi
41172 if test x$cppunit_config_prefix != x ; then
41173 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41174 if test x${CPPUNIT_CONFIG+set} != xset ; then
41175 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41176 fi
41177 fi
41178
41179 # Extract the first word of "cppunit-config", so it can be a program name with args.
41180set dummy cppunit-config; ac_word=$2
41181echo "$as_me:$LINENO: checking for $ac_word" >&5
41182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41183if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41184 echo $ECHO_N "(cached) $ECHO_C" >&6
41185else
41186 case $CPPUNIT_CONFIG in
41187 [\\/]* | ?:[\\/]*)
41188 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41189 ;;
41190 *)
41191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41192for as_dir in $PATH
41193do
41194 IFS=$as_save_IFS
41195 test -z "$as_dir" && as_dir=.
41196 for ac_exec_ext in '' $ac_executable_extensions; do
41197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41198 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41200 break 2
41201 fi
41202done
41203done
41204
41205 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41206 ;;
41207esac
41208fi
41209CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41210
41211if test -n "$CPPUNIT_CONFIG"; then
41212 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41213echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41214else
41215 echo "$as_me:$LINENO: result: no" >&5
41216echo "${ECHO_T}no" >&6
41217fi
41218
41219 cppunit_version_min=1.8.0
41220
41221 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41222echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41223 no_cppunit=""
41224 if test "$CPPUNIT_CONFIG" = "no" ; then
41225 no_cppunit=yes
224bf05c
VZ
41226 echo "$as_me:$LINENO: result: no" >&5
41227echo "${ECHO_T}no" >&6
a848cd7e
SC
41228 else
41229 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41230 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41231 cppunit_version=`$CPPUNIT_CONFIG --version`
41232
41233 cppunit_major_version=`echo $cppunit_version | \
41234 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41235 cppunit_minor_version=`echo $cppunit_version | \
41236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41237 cppunit_micro_version=`echo $cppunit_version | \
41238 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41239
41240 cppunit_major_min=`echo $cppunit_version_min | \
41241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41242 cppunit_minor_min=`echo $cppunit_version_min | \
41243 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41244 cppunit_micro_min=`echo $cppunit_version_min | \
41245 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41246
41247 cppunit_version_proper=`expr \
41248 $cppunit_major_version \> $cppunit_major_min \| \
41249 $cppunit_major_version \= $cppunit_major_min \& \
41250 $cppunit_minor_version \> $cppunit_minor_min \| \
41251 $cppunit_major_version \= $cppunit_major_min \& \
41252 $cppunit_minor_version \= $cppunit_minor_min \& \
41253 $cppunit_micro_version \>= $cppunit_micro_min `
41254
41255 if test "$cppunit_version_proper" = "1" ; then
41256 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41257echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41258 else
41259 echo "$as_me:$LINENO: result: no" >&5
41260echo "${ECHO_T}no" >&6
41261 no_cppunit=yes
41262 fi
41263 fi
41264
41265 if test "x$no_cppunit" = x ; then
c2218763 41266 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41267 else
41268 CPPUNIT_CFLAGS=""
41269 CPPUNIT_LIBS=""
c2218763 41270 :
a848cd7e
SC
41271 fi
41272
41273
41274
41275
41276
41277for subdir in `echo $SUBDIRS`; do
41278 if test -d ${srcdir}/${subdir} ; then
41279 if test "$wxUSE_GUI" = "yes"; then
41280 if test ${subdir} = "samples"; then
41281 makefiles="samples/Makefile.in $makefiles"
41282 for sample in `echo $SAMPLES_SUBDIRS`; do
41283 if test -d $srcdir/samples/$sample; then
41284 makefiles="samples/$sample/Makefile.in $makefiles"
41285 fi
41286 done
41287 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41288 fi
41289 else if test ${subdir} = "samples"; then
41290 makefiles="samples/Makefile.in samples/console/Makefile.in"
41291 elif test ${subdir} = "utils"; then
41292 makefiles="utils/HelpGen/Makefile.in \
41293 utils/HelpGen/src/Makefile.in \
41294 utils/tex2rtf/Makefile.in \
41295 utils/tex2rtf/src/Makefile.in"
41296 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41297 fi
41298 fi
41299
41300 for mkin in $makefiles ; do
41301 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41302 ac_config_files="$ac_config_files $mk"
41303
41304 done
41305 fi
41306done
41307
41308
41309cat >confcache <<\_ACEOF
41310# This file is a shell script that caches the results of configure
41311# tests run on this system so they can be shared between configure
41312# scripts and configure runs, see configure's option --config-cache.
41313# It is not useful on other systems. If it contains results you don't
41314# want to keep, you may remove or edit it.
41315#
41316# config.status only pays attention to the cache file if you give it
41317# the --recheck option to rerun configure.
41318#
41319# `ac_cv_env_foo' variables (set or unset) will be overridden when
41320# loading this file, other *unset* `ac_cv_foo' will be assigned the
41321# following values.
41322
41323_ACEOF
41324
41325# The following way of writing the cache mishandles newlines in values,
41326# but we know of no workaround that is simple, portable, and efficient.
41327# So, don't put newlines in cache variables' values.
41328# Ultrix sh set writes to stderr and can't be redirected directly,
41329# and sets the high bit in the cache file unless we assign to the vars.
41330{
41331 (set) 2>&1 |
41332 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41333 *ac_space=\ *)
41334 # `set' does not quote correctly, so add quotes (double-quote
41335 # substitution turns \\\\ into \\, and sed turns \\ into \).
41336 sed -n \
ac1cb8d3
VS
41337 "s/'/'\\\\''/g;
41338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41339 ;;
41340 *)
41341 # `set' quotes correctly as required by POSIX, so do not add quotes.
41342 sed -n \
ac1cb8d3 41343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41344 ;;
41345 esac;
41346} |
41347 sed '
41348 t clear
41349 : clear
41350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41351 t end
41352 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41353 : end' >>confcache
41354if diff $cache_file confcache >/dev/null 2>&1; then :; else
41355 if test -w $cache_file; then
41356 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41357 cat confcache >$cache_file
41358 else
41359 echo "not updating unwritable cache $cache_file"
41360 fi
41361fi
41362rm -f confcache
41363
41364test "x$prefix" = xNONE && prefix=$ac_default_prefix
41365# Let make expand exec_prefix.
41366test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41367
41368# VPATH may cause trouble with some makes, so we remove $(srcdir),
41369# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41370# trailing colons and then remove the whole line if VPATH becomes empty
41371# (actually we leave an empty line to preserve line numbers).
41372if test "x$srcdir" = x.; then
ac1cb8d3 41373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41374s/:*\$(srcdir):*/:/;
41375s/:*\${srcdir}:*/:/;
41376s/:*@srcdir@:*/:/;
ac1cb8d3 41377s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41378s/:*$//;
ac1cb8d3 41379s/^[^=]*=[ ]*$//;
a848cd7e
SC
41380}'
41381fi
41382
41383DEFS=-DHAVE_CONFIG_H
41384
41385ac_libobjs=
41386ac_ltlibobjs=
41387for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41388 # 1. Remove the extension, and $U if already installed.
41389 ac_i=`echo "$ac_i" |
ac1cb8d3 41390 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41391 # 2. Add them.
41392 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41393 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41394done
41395LIBOBJS=$ac_libobjs
41396
41397LTLIBOBJS=$ac_ltlibobjs
41398
41399
41400
41401: ${CONFIG_STATUS=./config.status}
41402ac_clean_files_save=$ac_clean_files
41403ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41404{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41405echo "$as_me: creating $CONFIG_STATUS" >&6;}
41406cat >$CONFIG_STATUS <<_ACEOF
41407#! $SHELL
41408# Generated by $as_me.
41409# Run this file to recreate the current configuration.
41410# Compiler output produced by configure, useful for debugging
41411# configure, is in config.log if it exists.
41412
41413debug=false
41414ac_cs_recheck=false
41415ac_cs_silent=false
41416SHELL=\${CONFIG_SHELL-$SHELL}
41417_ACEOF
41418
41419cat >>$CONFIG_STATUS <<\_ACEOF
41420## --------------------- ##
41421## M4sh Initialization. ##
41422## --------------------- ##
41423
41424# Be Bourne compatible
41425if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41426 emulate sh
41427 NULLCMD=:
41428 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41429 # is contrary to our usage. Disable this feature.
41430 alias -g '${1+"$@"}'='"$@"'
41431elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41432 set -o posix
41433fi
ac1cb8d3 41434DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41435
41436# Support unset when possible.
ac1cb8d3 41437if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41438 as_unset=unset
41439else
41440 as_unset=false
41441fi
41442
41443
41444# Work around bugs in pre-3.0 UWIN ksh.
41445$as_unset ENV MAIL MAILPATH
41446PS1='$ '
41447PS2='> '
41448PS4='+ '
41449
41450# NLS nuisances.
41451for as_var in \
41452 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41453 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41454 LC_TELEPHONE LC_TIME
41455do
ac1cb8d3 41456 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41457 eval $as_var=C; export $as_var
41458 else
41459 $as_unset $as_var
41460 fi
41461done
41462
41463# Required to use basename.
41464if expr a : '\(a\)' >/dev/null 2>&1; then
41465 as_expr=expr
41466else
41467 as_expr=false
41468fi
41469
41470if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41471 as_basename=basename
41472else
41473 as_basename=false
41474fi
41475
41476
41477# Name of the executable.
41478as_me=`$as_basename "$0" ||
41479$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41480 X"$0" : 'X\(//\)$' \| \
41481 X"$0" : 'X\(/\)$' \| \
41482 . : '\(.\)' 2>/dev/null ||
41483echo X/"$0" |
41484 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41485 /^X\/\(\/\/\)$/{ s//\1/; q; }
41486 /^X\/\(\/\).*/{ s//\1/; q; }
41487 s/.*/./; q'`
41488
41489
41490# PATH needs CR, and LINENO needs CR and PATH.
41491# Avoid depending upon Character Ranges.
41492as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41493as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41494as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41495as_cr_digits='0123456789'
41496as_cr_alnum=$as_cr_Letters$as_cr_digits
41497
41498# The user is always right.
41499if test "${PATH_SEPARATOR+set}" != set; then
41500 echo "#! /bin/sh" >conf$$.sh
41501 echo "exit 0" >>conf$$.sh
41502 chmod +x conf$$.sh
41503 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41504 PATH_SEPARATOR=';'
41505 else
41506 PATH_SEPARATOR=:
41507 fi
41508 rm -f conf$$.sh
41509fi
41510
41511
41512 as_lineno_1=$LINENO
41513 as_lineno_2=$LINENO
41514 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41515 test "x$as_lineno_1" != "x$as_lineno_2" &&
41516 test "x$as_lineno_3" = "x$as_lineno_2" || {
41517 # Find who we are. Look in the path if we contain no path at all
41518 # relative or not.
41519 case $0 in
41520 *[\\/]* ) as_myself=$0 ;;
41521 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41522for as_dir in $PATH
41523do
41524 IFS=$as_save_IFS
41525 test -z "$as_dir" && as_dir=.
41526 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41527done
41528
41529 ;;
41530 esac
41531 # We did not find ourselves, most probably we were run as `sh COMMAND'
41532 # in which case we are not to be found in the path.
41533 if test "x$as_myself" = x; then
41534 as_myself=$0
41535 fi
41536 if test ! -f "$as_myself"; then
41537 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41538echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41539 { (exit 1); exit 1; }; }
41540 fi
41541 case $CONFIG_SHELL in
41542 '')
41543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41544for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41545do
41546 IFS=$as_save_IFS
41547 test -z "$as_dir" && as_dir=.
41548 for as_base in sh bash ksh sh5; do
41549 case $as_dir in
41550 /*)
41551 if ("$as_dir/$as_base" -c '
41552 as_lineno_1=$LINENO
41553 as_lineno_2=$LINENO
41554 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41555 test "x$as_lineno_1" != "x$as_lineno_2" &&
41556 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41557 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41558 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41559 CONFIG_SHELL=$as_dir/$as_base
41560 export CONFIG_SHELL
41561 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41562 fi;;
41563 esac
41564 done
41565done
41566;;
41567 esac
41568
41569 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41570 # uniformly replaced by the line number. The first 'sed' inserts a
41571 # line-number line before each line; the second 'sed' does the real
41572 # work. The second script uses 'N' to pair each line-number line
41573 # with the numbered line, and appends trailing '-' during
41574 # substitution so that $LINENO is not a special case at line end.
41575 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41576 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41577 sed '=' <$as_myself |
41578 sed '
41579 N
41580 s,$,-,
41581 : loop
41582 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41583 t loop
41584 s,-$,,
41585 s,^['$as_cr_digits']*\n,,
41586 ' >$as_me.lineno &&
41587 chmod +x $as_me.lineno ||
41588 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41589echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41590 { (exit 1); exit 1; }; }
41591
41592 # Don't try to exec as it changes $[0], causing all sort of problems
41593 # (the dirname of $[0] is not the place where we might find the
41594 # original and so on. Autoconf is especially sensible to this).
41595 . ./$as_me.lineno
41596 # Exit status is that of the last command.
41597 exit
41598}
41599
41600
41601case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41602 *c*,-n*) ECHO_N= ECHO_C='
41603' ECHO_T=' ' ;;
41604 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41605 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41606esac
41607
41608if expr a : '\(a\)' >/dev/null 2>&1; then
41609 as_expr=expr
41610else
41611 as_expr=false
41612fi
41613
41614rm -f conf$$ conf$$.exe conf$$.file
41615echo >conf$$.file
41616if ln -s conf$$.file conf$$ 2>/dev/null; then
41617 # We could just check for DJGPP; but this test a) works b) is more generic
41618 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41619 if test -f conf$$.exe; then
41620 # Don't use ln at all; we don't have any links
41621 as_ln_s='cp -p'
41622 else
41623 as_ln_s='ln -s'
41624 fi
41625elif ln conf$$.file conf$$ 2>/dev/null; then
41626 as_ln_s=ln
41627else
41628 as_ln_s='cp -p'
41629fi
41630rm -f conf$$ conf$$.exe conf$$.file
41631
41632if mkdir -p . 2>/dev/null; then
41633 as_mkdir_p=:
41634else
ac1cb8d3 41635 test -d ./-p && rmdir ./-p
a848cd7e
SC
41636 as_mkdir_p=false
41637fi
41638
41639as_executable_p="test -f"
41640
41641# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41642as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41643
41644# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41645as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41646
41647
41648# IFS
41649# We need space, tab and new line, in precisely that order.
41650as_nl='
41651'
41652IFS=" $as_nl"
41653
41654# CDPATH.
41655$as_unset CDPATH
41656
41657exec 6>&1
41658
41659# Open the log real soon, to keep \$[0] and so on meaningful, and to
41660# report actual input values of CONFIG_FILES etc. instead of their
41661# values after options handling. Logging --version etc. is OK.
41662exec 5>>config.log
41663{
41664 echo
41665 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41666## Running $as_me. ##
41667_ASBOX
41668} >&5
41669cat >&5 <<_CSEOF
41670
77ffb593 41671This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 41672generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41673
41674 CONFIG_FILES = $CONFIG_FILES
41675 CONFIG_HEADERS = $CONFIG_HEADERS
41676 CONFIG_LINKS = $CONFIG_LINKS
41677 CONFIG_COMMANDS = $CONFIG_COMMANDS
41678 $ $0 $@
41679
41680_CSEOF
41681echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41682echo >&5
41683_ACEOF
41684
41685# Files that config.status was made for.
41686if test -n "$ac_config_files"; then
41687 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41688fi
41689
41690if test -n "$ac_config_headers"; then
41691 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41692fi
41693
41694if test -n "$ac_config_links"; then
41695 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41696fi
41697
41698if test -n "$ac_config_commands"; then
41699 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41700fi
41701
41702cat >>$CONFIG_STATUS <<\_ACEOF
41703
41704ac_cs_usage="\
41705\`$as_me' instantiates files from templates according to the
41706current configuration.
41707
41708Usage: $0 [OPTIONS] [FILE]...
41709
41710 -h, --help print this help, then exit
41711 -V, --version print version number, then exit
41712 -q, --quiet do not print progress messages
41713 -d, --debug don't remove temporary files
41714 --recheck update $as_me by reconfiguring in the same conditions
41715 --file=FILE[:TEMPLATE]
ac1cb8d3 41716 instantiate the configuration file FILE
a848cd7e 41717 --header=FILE[:TEMPLATE]
ac1cb8d3 41718 instantiate the configuration header FILE
a848cd7e
SC
41719
41720Configuration files:
41721$config_files
41722
41723Configuration headers:
41724$config_headers
41725
41726Configuration commands:
41727$config_commands
41728
41729Report bugs to <bug-autoconf@gnu.org>."
41730_ACEOF
41731
41732cat >>$CONFIG_STATUS <<_ACEOF
41733ac_cs_version="\\
77ffb593 41734wxWidgets config.status 2.5.2
ac1cb8d3 41735configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41736 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41737
ac1cb8d3 41738Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41739This config.status script is free software; the Free Software Foundation
41740gives unlimited permission to copy, distribute and modify it."
41741srcdir=$srcdir
41742INSTALL="$INSTALL"
41743_ACEOF
41744
41745cat >>$CONFIG_STATUS <<\_ACEOF
41746# If no file are specified by the user, then we need to provide default
41747# value. By we need to know if files were specified by the user.
41748ac_need_defaults=:
41749while test $# != 0
41750do
41751 case $1 in
41752 --*=*)
41753 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41754 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41755 ac_shift=:
41756 ;;
41757 -*)
41758 ac_option=$1
41759 ac_optarg=$2
41760 ac_shift=shift
41761 ;;
41762 *) # This is not an option, so the user has probably given explicit
41763 # arguments.
41764 ac_option=$1
41765 ac_need_defaults=false;;
41766 esac
41767
41768 case $ac_option in
41769 # Handling of the options.
41770_ACEOF
41771cat >>$CONFIG_STATUS <<\_ACEOF
41772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41773 ac_cs_recheck=: ;;
41774 --version | --vers* | -V )
41775 echo "$ac_cs_version"; exit 0 ;;
41776 --he | --h)
41777 # Conflict between --help and --header
41778 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41779Try \`$0 --help' for more information." >&5
41780echo "$as_me: error: ambiguous option: $1
41781Try \`$0 --help' for more information." >&2;}
41782 { (exit 1); exit 1; }; };;
41783 --help | --hel | -h )
41784 echo "$ac_cs_usage"; exit 0 ;;
41785 --debug | --d* | -d )
41786 debug=: ;;
41787 --file | --fil | --fi | --f )
41788 $ac_shift
41789 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41790 ac_need_defaults=false;;
41791 --header | --heade | --head | --hea )
41792 $ac_shift
41793 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41794 ac_need_defaults=false;;
41795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41796 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41797 ac_cs_silent=: ;;
41798
41799 # This is an error.
41800 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41801Try \`$0 --help' for more information." >&5
41802echo "$as_me: error: unrecognized option: $1
41803Try \`$0 --help' for more information." >&2;}
41804 { (exit 1); exit 1; }; } ;;
41805
41806 *) ac_config_targets="$ac_config_targets $1" ;;
41807
41808 esac
41809 shift
41810done
41811
41812ac_configure_extra_args=
41813
41814if $ac_cs_silent; then
41815 exec 6>/dev/null
41816 ac_configure_extra_args="$ac_configure_extra_args --silent"
41817fi
41818
41819_ACEOF
41820cat >>$CONFIG_STATUS <<_ACEOF
41821if \$ac_cs_recheck; then
41822 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41823 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41824fi
41825
41826_ACEOF
41827
41828cat >>$CONFIG_STATUS <<_ACEOF
41829#
41830# INIT-COMMANDS section.
41831#
41832
41833
41834 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
48112931 41835 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}"
a848cd7e
SC
41836 LN_S="${LN_S}"
41837
41838
41839
41840_ACEOF
41841
41842
41843
41844cat >>$CONFIG_STATUS <<\_ACEOF
41845for ac_config_target in $ac_config_targets
41846do
41847 case "$ac_config_target" in
41848 # Handling of arguments.
41849 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
8708fa76 41850 "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;;
a848cd7e
SC
41851 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41852 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41853 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41854 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41855 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41856 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41857echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41858 { (exit 1); exit 1; }; };;
41859 esac
41860done
41861
41862# If the user did not use the arguments to specify the items to instantiate,
41863# then the envvar interface is used. Set only those that are not.
41864# We use the long form for the default assignment because of an extremely
41865# bizarre bug on SunOS 4.1.3.
41866if $ac_need_defaults; then
41867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41870fi
41871
41872# Have a temporary directory for convenience. Make it in the build tree
41873# simply because there is no reason to put it here, and in addition,
41874# creating and moving files from /tmp can sometimes cause problems.
41875# Create a temporary directory, and hook for its removal unless debugging.
41876$debug ||
41877{
41878 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41879 trap '{ (exit 1); exit 1; }' 1 2 13 15
41880}
41881
41882# Create a (secure) tmp directory for tmp files.
41883
41884{
41885 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41886 test -n "$tmp" && test -d "$tmp"
41887} ||
41888{
41889 tmp=./confstat$$-$RANDOM
41890 (umask 077 && mkdir $tmp)
41891} ||
41892{
41893 echo "$me: cannot create a temporary directory in ." >&2
41894 { (exit 1); exit 1; }
41895}
41896
41897_ACEOF
41898
41899cat >>$CONFIG_STATUS <<_ACEOF
41900
41901#
41902# CONFIG_FILES section.
41903#
41904
41905# No need to generate the scripts if there are no CONFIG_FILES.
41906# This happens for instance when ./config.status config.h
41907if test -n "\$CONFIG_FILES"; then
41908 # Protect against being on the right side of a sed subst in config.status.
41909 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41910 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41911s,@SHELL@,$SHELL,;t t
41912s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41913s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41914s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41915s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41916s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41917s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41918s,@exec_prefix@,$exec_prefix,;t t
41919s,@prefix@,$prefix,;t t
41920s,@program_transform_name@,$program_transform_name,;t t
41921s,@bindir@,$bindir,;t t
41922s,@sbindir@,$sbindir,;t t
41923s,@libexecdir@,$libexecdir,;t t
41924s,@datadir@,$datadir,;t t
41925s,@sysconfdir@,$sysconfdir,;t t
41926s,@sharedstatedir@,$sharedstatedir,;t t
41927s,@localstatedir@,$localstatedir,;t t
41928s,@libdir@,$libdir,;t t
41929s,@includedir@,$includedir,;t t
41930s,@oldincludedir@,$oldincludedir,;t t
41931s,@infodir@,$infodir,;t t
41932s,@mandir@,$mandir,;t t
41933s,@build_alias@,$build_alias,;t t
41934s,@host_alias@,$host_alias,;t t
41935s,@target_alias@,$target_alias,;t t
41936s,@DEFS@,$DEFS,;t t
41937s,@ECHO_C@,$ECHO_C,;t t
41938s,@ECHO_N@,$ECHO_N,;t t
41939s,@ECHO_T@,$ECHO_T,;t t
41940s,@LIBS@,$LIBS,;t t
41941s,@build@,$build,;t t
41942s,@build_cpu@,$build_cpu,;t t
41943s,@build_vendor@,$build_vendor,;t t
41944s,@build_os@,$build_os,;t t
41945s,@host@,$host,;t t
41946s,@host_cpu@,$host_cpu,;t t
41947s,@host_vendor@,$host_vendor,;t t
41948s,@host_os@,$host_os,;t t
41949s,@target@,$target,;t t
41950s,@target_cpu@,$target_cpu,;t t
41951s,@target_vendor@,$target_vendor,;t t
41952s,@target_os@,$target_os,;t t
41953s,@CC@,$CC,;t t
41954s,@CFLAGS@,$CFLAGS,;t t
41955s,@LDFLAGS@,$LDFLAGS,;t t
41956s,@CPPFLAGS@,$CPPFLAGS,;t t
41957s,@ac_ct_CC@,$ac_ct_CC,;t t
41958s,@EXEEXT@,$EXEEXT,;t t
41959s,@OBJEXT@,$OBJEXT,;t t
41960s,@CPP@,$CPP,;t t
41961s,@EGREP@,$EGREP,;t t
41962s,@CXX@,$CXX,;t t
41963s,@CXXFLAGS@,$CXXFLAGS,;t t
41964s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41965s,@RANLIB@,$RANLIB,;t t
41966s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41967s,@AR@,$AR,;t t
41968s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41969s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41970s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41971s,@STRIP@,$STRIP,;t t
41972s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41973s,@LN_S@,$LN_S,;t t
41974s,@CXXCPP@,$CXXCPP,;t t
41975s,@subdirs@,$subdirs,;t t
41976s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41977s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41978s,@GTK_LIBS@,$GTK_LIBS,;t t
41979s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41980s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41981s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41982s,@X_CFLAGS@,$X_CFLAGS,;t t
41983s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41984s,@X_LIBS@,$X_LIBS,;t t
41985s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41986s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41987s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41988s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41989s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41990s,@RESCOMP@,$RESCOMP,;t t
41991s,@DEREZ@,$DEREZ,;t t
41992s,@SETFILE@,$SETFILE,;t t
41993s,@LIBICONV@,$LIBICONV,;t t
41994s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41995s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41996s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41997s,@SDL_LIBS@,$SDL_LIBS,;t t
41998s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
41999s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42000s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42001s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42002s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42003s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42004s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42005s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42006s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42007s,@VENDOR@,$VENDOR,;t t
42008s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
42009s,@WXUNIV@,$WXUNIV,;t t
42010s,@MONOLITHIC@,$MONOLITHIC,;t t
42011s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42012s,@EXTRALIBS@,$EXTRALIBS,;t t
42013s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42014s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42015s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42016s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42017s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42018s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42019s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42020s,@UNICODE@,$UNICODE,;t t
42021s,@BUILD@,$BUILD,;t t
42022s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42023s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
42024s,@SHARED@,$SHARED,;t t
42025s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42026s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42027s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42028s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42029s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42030s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42031s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42032s,@SET_MAKE@,$SET_MAKE,;t t
42033s,@MAKE_SET@,$MAKE_SET,;t t
42034s,@ac_ct_AR@,$ac_ct_AR,;t t
42035s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42036s,@NM@,$NM,;t t
42037s,@ac_ct_NM@,$ac_ct_NM,;t t
42038s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42039s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42040s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42041s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42042s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42043s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42044s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42045s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42046s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42047s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42048s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42049s,@LIBPREFIX@,$LIBPREFIX,;t t
42050s,@LIBEXT@,$LIBEXT,;t t
42051s,@DLLPREFIX@,$DLLPREFIX,;t t
42052s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42053s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42054s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42055s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42056s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42057s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42058s,@PIC_FLAG@,$PIC_FLAG,;t t
42059s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42060s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42061s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42062s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42063s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42064s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42065s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42066s,@GCC_PCH@,$GCC_PCH,;t t
42067s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42068s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42069s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42070s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42071s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42072s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42073s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42074s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42075s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42076s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42077s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42078s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42079s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42080s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42081s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42082s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42083s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42084s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42085s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42086s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42087s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
42088s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42089s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42090s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42091s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42092s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
42093s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42094s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42095s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42096s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42097s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42098s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42099s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42100s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42101s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42102s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42103s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ea7db9ff
DE
42104s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42105s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42106s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42107s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42108s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42109s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42110s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42111s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42112s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42113s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42114s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42115s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42116s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42117s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42118s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42119s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42120s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42121s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42122s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42123s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42124s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42125s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42126s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42127s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42128s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42129s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42130s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42131s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42132s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42133s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42134s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
e835546c 42135s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
a848cd7e
SC
42136s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42137s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42138s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42139s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42140s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42141s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42142s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42143s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
e835546c 42144s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
42145s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42146s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42147s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
e835546c 42148s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
3fd9c298
DE
42149s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42150s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42151s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42152s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42153s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42154s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42155s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42156s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42157s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42158s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42159s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42160s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42161s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42162s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42163s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42164s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
42165s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42166s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42167s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42168s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42169s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42170s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
42171s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
42172s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42173s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42174s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42175s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42176s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42177s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42178s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42179s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
42180s,@PATH_IFS@,$PATH_IFS,;t t
42181s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42182s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42183s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
224bf05c 42184s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t
a848cd7e
SC
42185s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42186s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42187s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42188s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42189s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42190s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42191s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42192s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42193s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42194s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42195s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42196s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42197s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42198s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42199s,@WX_ALL@,$WX_ALL,;t t
42200s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42201s,@SHARED_LD@,$SHARED_LD,;t t
42202s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42203s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42204s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42205s,@USE_GUI@,$USE_GUI,;t t
42206s,@AFMINSTALL@,$AFMINSTALL,;t t
42207s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42208s,@TOOLKIT@,$TOOLKIT,;t t
42209s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42210s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42211s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42212s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42213s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42214s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42215s,@cross_compiling@,$cross_compiling,;t t
42216s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42217s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42218s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42219s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42220s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42221s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42222s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42223s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
48112931 42224s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t
a848cd7e 42225s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42226s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42227s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42228s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42229s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42230s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42231s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42232s,@GUIDIST@,$GUIDIST,;t t
42233s,@PORT_FILES@,$PORT_FILES,;t t
42234s,@DISTDIR@,$DISTDIR,;t t
42235s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42236s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42237s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42238s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42239s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42240s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42241s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42242s,@RESFLAGS@,$RESFLAGS,;t t
42243s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42244s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42245s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42246s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42247s,@MACRESCOMP@,$MACRESCOMP,;t t
42248s,@MACSETFILE@,$MACSETFILE,;t t
42249s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42250s,@GCC@,$GCC,;t t
a848cd7e
SC
42251s,@DLLTOOL@,$DLLTOOL,;t t
42252s,@AS@,$AS,;t t
42253s,@LD@,$LD,;t t
42254s,@MAKEINFO@,$MAKEINFO,;t t
42255s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42256s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42257s,@LIBOBJS@,$LIBOBJS,;t t
42258s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42259CEOF
42260
42261_ACEOF
42262
42263 cat >>$CONFIG_STATUS <<\_ACEOF
42264 # Split the substitutions into bite-sized pieces for seds with
42265 # small command number limits, like on Digital OSF/1 and HP-UX.
42266 ac_max_sed_lines=48
42267 ac_sed_frag=1 # Number of current file.
42268 ac_beg=1 # First line for current file.
42269 ac_end=$ac_max_sed_lines # Line after last line for current file.
42270 ac_more_lines=:
42271 ac_sed_cmds=
42272 while $ac_more_lines; do
42273 if test $ac_beg -gt 1; then
42274 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42275 else
42276 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42277 fi
42278 if test ! -s $tmp/subs.frag; then
42279 ac_more_lines=false
42280 else
42281 # The purpose of the label and of the branching condition is to
42282 # speed up the sed processing (if there are no `@' at all, there
42283 # is no need to browse any of the substitutions).
42284 # These are the two extra sed commands mentioned above.
42285 (echo ':t
42286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42287 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42288 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42289 else
ac1cb8d3 42290 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42291 fi
42292 ac_sed_frag=`expr $ac_sed_frag + 1`
42293 ac_beg=$ac_end
42294 ac_end=`expr $ac_end + $ac_max_sed_lines`
42295 fi
42296 done
42297 if test -z "$ac_sed_cmds"; then
42298 ac_sed_cmds=cat
42299 fi
42300fi # test -n "$CONFIG_FILES"
42301
42302_ACEOF
42303cat >>$CONFIG_STATUS <<\_ACEOF
42304for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42305 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42306 case $ac_file in
42307 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42308 cat >$tmp/stdin
42309 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42310 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42311 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42312 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42313 * ) ac_file_in=$ac_file.in ;;
42314 esac
42315
42316 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42317 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42318$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42319 X"$ac_file" : 'X\(//\)[^/]' \| \
42320 X"$ac_file" : 'X\(//\)$' \| \
42321 X"$ac_file" : 'X\(/\)' \| \
42322 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42323echo X"$ac_file" |
42324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42326 /^X\(\/\/\)$/{ s//\1/; q; }
42327 /^X\(\/\).*/{ s//\1/; q; }
42328 s/.*/./; q'`
42329 { if $as_mkdir_p; then
42330 mkdir -p "$ac_dir"
42331 else
42332 as_dir="$ac_dir"
42333 as_dirs=
42334 while test ! -d "$as_dir"; do
42335 as_dirs="$as_dir $as_dirs"
42336 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42338 X"$as_dir" : 'X\(//\)[^/]' \| \
42339 X"$as_dir" : 'X\(//\)$' \| \
42340 X"$as_dir" : 'X\(/\)' \| \
42341 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42342echo X"$as_dir" |
42343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42345 /^X\(\/\/\)$/{ s//\1/; q; }
42346 /^X\(\/\).*/{ s//\1/; q; }
42347 s/.*/./; q'`
42348 done
42349 test ! -n "$as_dirs" || mkdir $as_dirs
42350 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42351echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42352 { (exit 1); exit 1; }; }; }
42353
42354 ac_builddir=.
42355
42356if test "$ac_dir" != .; then
42357 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42358 # A "../" for each directory in $ac_dir_suffix.
42359 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42360else
42361 ac_dir_suffix= ac_top_builddir=
42362fi
42363
42364case $srcdir in
42365 .) # No --srcdir option. We are building in place.
42366 ac_srcdir=.
42367 if test -z "$ac_top_builddir"; then
42368 ac_top_srcdir=.
42369 else
42370 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42371 fi ;;
42372 [\\/]* | ?:[\\/]* ) # Absolute path.
42373 ac_srcdir=$srcdir$ac_dir_suffix;
42374 ac_top_srcdir=$srcdir ;;
42375 *) # Relative path.
42376 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42377 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42378esac
ac1cb8d3
VS
42379
42380# Do not use `cd foo && pwd` to compute absolute paths, because
42381# the directories may not exist.
42382case `pwd` in
42383.) ac_abs_builddir="$ac_dir";;
42384*)
42385 case "$ac_dir" in
42386 .) ac_abs_builddir=`pwd`;;
42387 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42388 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42389 esac;;
42390esac
42391case $ac_abs_builddir in
42392.) ac_abs_top_builddir=${ac_top_builddir}.;;
42393*)
42394 case ${ac_top_builddir}. in
42395 .) ac_abs_top_builddir=$ac_abs_builddir;;
42396 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42397 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42398 esac;;
42399esac
42400case $ac_abs_builddir in
42401.) ac_abs_srcdir=$ac_srcdir;;
42402*)
42403 case $ac_srcdir in
42404 .) ac_abs_srcdir=$ac_abs_builddir;;
42405 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42406 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42407 esac;;
42408esac
42409case $ac_abs_builddir in
42410.) ac_abs_top_srcdir=$ac_top_srcdir;;
42411*)
42412 case $ac_top_srcdir in
42413 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42414 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42415 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42416 esac;;
42417esac
a848cd7e
SC
42418
42419
42420 case $INSTALL in
42421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42422 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42423 esac
42424
ea7db9ff
DE
42425 if test x"$ac_file" != x-; then
42426 { echo "$as_me:$LINENO: creating $ac_file" >&5
42427echo "$as_me: creating $ac_file" >&6;}
42428 rm -f "$ac_file"
42429 fi
a848cd7e
SC
42430 # Let's still pretend it is `configure' which instantiates (i.e., don't
42431 # use $as_me), people would be surprised to read:
42432 # /* config.h. Generated by config.status. */
42433 if test x"$ac_file" = x-; then
42434 configure_input=
42435 else
42436 configure_input="$ac_file. "
42437 fi
42438 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42439 sed 's,.*/,,'` by configure."
a848cd7e
SC
42440
42441 # First look for the input files in the build tree, otherwise in the
42442 # src tree.
42443 ac_file_inputs=`IFS=:
42444 for f in $ac_file_in; do
42445 case $f in
42446 -) echo $tmp/stdin ;;
42447 [\\/$]*)
ac1cb8d3
VS
42448 # Absolute (can't be DOS-style, as IFS=:)
42449 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42450echo "$as_me: error: cannot find input file: $f" >&2;}
42451 { (exit 1); exit 1; }; }
ac1cb8d3 42452 echo "$f";;
a848cd7e 42453 *) # Relative
ac1cb8d3
VS
42454 if test -f "$f"; then
42455 # Build tree
42456 echo "$f"
42457 elif test -f "$srcdir/$f"; then
42458 # Source tree
42459 echo "$srcdir/$f"
42460 else
42461 # /dev/null tree
42462 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42463echo "$as_me: error: cannot find input file: $f" >&2;}
42464 { (exit 1); exit 1; }; }
ac1cb8d3 42465 fi;;
a848cd7e
SC
42466 esac
42467 done` || { (exit 1); exit 1; }
42468_ACEOF
42469cat >>$CONFIG_STATUS <<_ACEOF
42470 sed "$ac_vpsub
42471$extrasub
42472_ACEOF
42473cat >>$CONFIG_STATUS <<\_ACEOF
42474:t
42475/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42476s,@configure_input@,$configure_input,;t t
42477s,@srcdir@,$ac_srcdir,;t t
42478s,@abs_srcdir@,$ac_abs_srcdir,;t t
42479s,@top_srcdir@,$ac_top_srcdir,;t t
42480s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42481s,@builddir@,$ac_builddir,;t t
42482s,@abs_builddir@,$ac_abs_builddir,;t t
42483s,@top_builddir@,$ac_top_builddir,;t t
42484s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42485s,@INSTALL@,$ac_INSTALL,;t t
42486" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42487 rm -f $tmp/stdin
42488 if test x"$ac_file" != x-; then
42489 mv $tmp/out $ac_file
42490 else
42491 cat $tmp/out
42492 rm -f $tmp/out
42493 fi
42494
42495done
42496_ACEOF
42497cat >>$CONFIG_STATUS <<\_ACEOF
42498
42499#
42500# CONFIG_HEADER section.
42501#
42502
42503# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42504# NAME is the cpp macro being defined and VALUE is the value it is being given.
42505#
42506# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42507ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42508ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42509ac_dC=' '
42510ac_dD=',;t'
42511# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42512ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42513ac_uB='$,\1#\2define\3'
42514ac_uC=' '
42515ac_uD=',;t'
42516
42517for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42518 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42519 case $ac_file in
42520 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42521 cat >$tmp/stdin
42522 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42523 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42524 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42525 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42526 * ) ac_file_in=$ac_file.in ;;
42527 esac
42528
42529 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42530echo "$as_me: creating $ac_file" >&6;}
42531
42532 # First look for the input files in the build tree, otherwise in the
42533 # src tree.
42534 ac_file_inputs=`IFS=:
42535 for f in $ac_file_in; do
42536 case $f in
42537 -) echo $tmp/stdin ;;
42538 [\\/$]*)
ac1cb8d3
VS
42539 # Absolute (can't be DOS-style, as IFS=:)
42540 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42541echo "$as_me: error: cannot find input file: $f" >&2;}
42542 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42543 # Do quote $f, to prevent DOS paths from being IFS'd.
42544 echo "$f";;
a848cd7e 42545 *) # Relative
ac1cb8d3
VS
42546 if test -f "$f"; then
42547 # Build tree
42548 echo "$f"
42549 elif test -f "$srcdir/$f"; then
42550 # Source tree
42551 echo "$srcdir/$f"
42552 else
42553 # /dev/null tree
42554 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42555echo "$as_me: error: cannot find input file: $f" >&2;}
42556 { (exit 1); exit 1; }; }
ac1cb8d3 42557 fi;;
a848cd7e
SC
42558 esac
42559 done` || { (exit 1); exit 1; }
42560 # Remove the trailing spaces.
ac1cb8d3 42561 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42562
42563_ACEOF
42564
42565# Transform confdefs.h into two sed scripts, `conftest.defines' and
42566# `conftest.undefs', that substitutes the proper values into
42567# config.h.in to produce config.h. The first handles `#define'
42568# templates, and the second `#undef' templates.
42569# And first: Protect against being on the right side of a sed subst in
42570# config.status. Protect against being in an unquoted here document
42571# in config.status.
42572rm -f conftest.defines conftest.undefs
42573# Using a here document instead of a string reduces the quoting nightmare.
42574# Putting comments in sed scripts is not portable.
42575#
42576# `end' is used to avoid that the second main sed command (meant for
42577# 0-ary CPP macros) applies to n-ary macro definitions.
42578# See the Autoconf documentation for `clear'.
42579cat >confdef2sed.sed <<\_ACEOF
42580s/[\\&,]/\\&/g
42581s,[\\$`],\\&,g
42582t clear
42583: clear
ac1cb8d3 42584s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42585t end
ac1cb8d3 42586s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42587: end
42588_ACEOF
42589# If some macros were called several times there might be several times
42590# the same #defines, which is useless. Nevertheless, we may not want to
42591# sort them, since we want the *last* AC-DEFINE to be honored.
42592uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42593sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42594rm -f confdef2sed.sed
42595
42596# This sed command replaces #undef with comments. This is necessary, for
42597# example, in the case of _POSIX_SOURCE, which is predefined and required
42598# on some systems where configure will not decide to define it.
42599cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42600s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42601_ACEOF
42602
42603# Break up conftest.defines because some shells have a limit on the size
42604# of here documents, and old seds have small limits too (100 cmds).
42605echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42606echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42607echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42608echo ' :' >>$CONFIG_STATUS
42609rm -f conftest.tail
42610while grep . conftest.defines >/dev/null
42611do
42612 # Write a limited-size here document to $tmp/defines.sed.
42613 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42614 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42615 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42616 # Work around the forget-to-reset-the-flag bug.
42617 echo 't clr' >>$CONFIG_STATUS
42618 echo ': clr' >>$CONFIG_STATUS
42619 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42620 echo 'CEOF
42621 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42622 rm -f $tmp/in
42623 mv $tmp/out $tmp/in
42624' >>$CONFIG_STATUS
42625 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42626 rm -f conftest.defines
42627 mv conftest.tail conftest.defines
42628done
42629rm -f conftest.defines
42630echo ' fi # grep' >>$CONFIG_STATUS
42631echo >>$CONFIG_STATUS
42632
42633# Break up conftest.undefs because some shells have a limit on the size
42634# of here documents, and old seds have small limits too (100 cmds).
42635echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42636rm -f conftest.tail
42637while grep . conftest.undefs >/dev/null
42638do
42639 # Write a limited-size here document to $tmp/undefs.sed.
42640 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42641 # Speed up: don't consider the non `#undef'
ac1cb8d3 42642 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42643 # Work around the forget-to-reset-the-flag bug.
42644 echo 't clr' >>$CONFIG_STATUS
42645 echo ': clr' >>$CONFIG_STATUS
42646 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42647 echo 'CEOF
42648 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42649 rm -f $tmp/in
42650 mv $tmp/out $tmp/in
42651' >>$CONFIG_STATUS
42652 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42653 rm -f conftest.undefs
42654 mv conftest.tail conftest.undefs
42655done
42656rm -f conftest.undefs
42657
42658cat >>$CONFIG_STATUS <<\_ACEOF
42659 # Let's still pretend it is `configure' which instantiates (i.e., don't
42660 # use $as_me), people would be surprised to read:
42661 # /* config.h. Generated by config.status. */
42662 if test x"$ac_file" = x-; then
42663 echo "/* Generated by configure. */" >$tmp/config.h
42664 else
42665 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42666 fi
42667 cat $tmp/in >>$tmp/config.h
42668 rm -f $tmp/in
42669 if test x"$ac_file" != x-; then
42670 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42671 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42672echo "$as_me: $ac_file is unchanged" >&6;}
42673 else
42674 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42675$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42676 X"$ac_file" : 'X\(//\)[^/]' \| \
42677 X"$ac_file" : 'X\(//\)$' \| \
42678 X"$ac_file" : 'X\(/\)' \| \
42679 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42680echo X"$ac_file" |
42681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42683 /^X\(\/\/\)$/{ s//\1/; q; }
42684 /^X\(\/\).*/{ s//\1/; q; }
42685 s/.*/./; q'`
42686 { if $as_mkdir_p; then
42687 mkdir -p "$ac_dir"
42688 else
42689 as_dir="$ac_dir"
42690 as_dirs=
42691 while test ! -d "$as_dir"; do
42692 as_dirs="$as_dir $as_dirs"
42693 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42694$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42695 X"$as_dir" : 'X\(//\)[^/]' \| \
42696 X"$as_dir" : 'X\(//\)$' \| \
42697 X"$as_dir" : 'X\(/\)' \| \
42698 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42699echo X"$as_dir" |
42700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42702 /^X\(\/\/\)$/{ s//\1/; q; }
42703 /^X\(\/\).*/{ s//\1/; q; }
42704 s/.*/./; q'`
42705 done
42706 test ! -n "$as_dirs" || mkdir $as_dirs
42707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42708echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42709 { (exit 1); exit 1; }; }; }
42710
42711 rm -f $ac_file
42712 mv $tmp/config.h $ac_file
42713 fi
42714 else
42715 cat $tmp/config.h
42716 rm -f $tmp/config.h
42717 fi
42718done
42719_ACEOF
42720cat >>$CONFIG_STATUS <<\_ACEOF
42721
42722#
42723# CONFIG_COMMANDS section.
42724#
42725for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42726 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42727 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42728 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42729$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42730 X"$ac_dest" : 'X\(//\)[^/]' \| \
42731 X"$ac_dest" : 'X\(//\)$' \| \
42732 X"$ac_dest" : 'X\(/\)' \| \
42733 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42734echo X"$ac_dest" |
42735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42737 /^X\(\/\/\)$/{ s//\1/; q; }
42738 /^X\(\/\).*/{ s//\1/; q; }
42739 s/.*/./; q'`
ac1cb8d3
VS
42740 { if $as_mkdir_p; then
42741 mkdir -p "$ac_dir"
42742 else
42743 as_dir="$ac_dir"
42744 as_dirs=
42745 while test ! -d "$as_dir"; do
42746 as_dirs="$as_dir $as_dirs"
42747 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42749 X"$as_dir" : 'X\(//\)[^/]' \| \
42750 X"$as_dir" : 'X\(//\)$' \| \
42751 X"$as_dir" : 'X\(/\)' \| \
42752 . : '\(.\)' 2>/dev/null ||
42753echo X"$as_dir" |
42754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42756 /^X\(\/\/\)$/{ s//\1/; q; }
42757 /^X\(\/\).*/{ s//\1/; q; }
42758 s/.*/./; q'`
42759 done
42760 test ! -n "$as_dirs" || mkdir $as_dirs
42761 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42762echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42763 { (exit 1); exit 1; }; }; }
42764
a848cd7e
SC
42765 ac_builddir=.
42766
42767if test "$ac_dir" != .; then
42768 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42769 # A "../" for each directory in $ac_dir_suffix.
42770 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42771else
42772 ac_dir_suffix= ac_top_builddir=
42773fi
42774
42775case $srcdir in
42776 .) # No --srcdir option. We are building in place.
42777 ac_srcdir=.
42778 if test -z "$ac_top_builddir"; then
42779 ac_top_srcdir=.
42780 else
42781 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42782 fi ;;
42783 [\\/]* | ?:[\\/]* ) # Absolute path.
42784 ac_srcdir=$srcdir$ac_dir_suffix;
42785 ac_top_srcdir=$srcdir ;;
42786 *) # Relative path.
42787 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42788 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42789esac
ac1cb8d3
VS
42790
42791# Do not use `cd foo && pwd` to compute absolute paths, because
42792# the directories may not exist.
42793case `pwd` in
42794.) ac_abs_builddir="$ac_dir";;
42795*)
42796 case "$ac_dir" in
42797 .) ac_abs_builddir=`pwd`;;
42798 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42799 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42800 esac;;
42801esac
42802case $ac_abs_builddir in
42803.) ac_abs_top_builddir=${ac_top_builddir}.;;
42804*)
42805 case ${ac_top_builddir}. in
42806 .) ac_abs_top_builddir=$ac_abs_builddir;;
42807 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42808 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42809 esac;;
42810esac
42811case $ac_abs_builddir in
42812.) ac_abs_srcdir=$ac_srcdir;;
42813*)
42814 case $ac_srcdir in
42815 .) ac_abs_srcdir=$ac_abs_builddir;;
42816 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42817 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42818 esac;;
42819esac
42820case $ac_abs_builddir in
42821.) ac_abs_top_srcdir=$ac_top_srcdir;;
42822*)
42823 case $ac_top_srcdir in
42824 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42825 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42826 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42827 esac;;
42828esac
a848cd7e
SC
42829
42830
42831 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42832echo "$as_me: executing $ac_dest commands" >&6;}
42833 case $ac_dest in
42834 default )
a848cd7e
SC
42835 if test ! -d lib; then
42836 mkdir lib
42837 fi
42838 if test ! -d lib/wx; then
42839 mkdir lib/wx
42840 fi
8708fa76
VS
42841 if test ! -d lib/wx/config; then
42842 mkdir lib/wx/config
42843 fi
a848cd7e
SC
42844 if test ! -d lib/wx/include; then
42845 mkdir lib/wx/include
42846 fi
42847 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42848 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42849 fi
42850 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42851 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42852 fi
42853 if test -f setup.h; then
42854 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42855 fi
8708fa76
VS
42856
42857 if test -f wx-config; then
42858 chmod +x wx-config
48112931 42859 mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE}
a87bf378
VS
42860 ( cd lib/wx/config ;
42861 rm -f ${TOOLCHAIN_NAME}
42862 ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} )
8708fa76 42863 fi
8708fa76
VS
42864 if test -f wx-config-wrapper; then
42865 chmod +x wx-config-wrapper
42866 mv -f wx-config-wrapper wx-config
b3de4970
VS
42867 rm -f wx${TOOLCHAIN_NAME}-config
42868 ${LN_S} wx-config wx${TOOLCHAIN_NAME}-config
8708fa76 42869 fi
a848cd7e
SC
42870 ;;
42871 esac
42872done
42873_ACEOF
42874
42875cat >>$CONFIG_STATUS <<\_ACEOF
42876
42877{ (exit 0); exit 0; }
42878_ACEOF
42879chmod +x $CONFIG_STATUS
42880ac_clean_files=$ac_clean_files_save
42881
42882
42883# configure is writing to config.log, and then calls config.status.
42884# config.status does its own redirection, appending to config.log.
42885# Unfortunately, on DOS this fails, as config.log is still kept open
42886# by configure, so config.status won't be able to write to it; its
42887# output is simply discarded. So we exec the FD to /dev/null,
42888# effectively closing config.log, so it can be properly (re)opened and
42889# appended to by config.status. When coming back to configure, we
42890# need to make the FD available again.
42891if test "$no_create" != yes; then
42892 ac_cs_success=:
42893 ac_config_status_args=
42894 test "$silent" = yes &&
42895 ac_config_status_args="$ac_config_status_args --quiet"
42896 exec 5>/dev/null
42897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42898 exec 5>>config.log
42899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42900 # would make configure fail if this is the last instruction.
42901 $ac_cs_success || { (exit 1); exit 1; }
42902fi
42903
42904#
42905# CONFIG_SUBDIRS section.
42906#
42907if test "$no_recursion" != yes; then
42908
42909 # Remove --cache-file and --srcdir arguments so they do not pile up.
42910 ac_sub_configure_args=
42911 ac_prev=
42912 for ac_arg in $ac_configure_args; do
42913 if test -n "$ac_prev"; then
42914 ac_prev=
42915 continue
42916 fi
42917 case $ac_arg in
42918 -cache-file | --cache-file | --cache-fil | --cache-fi \
42919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42920 ac_prev=cache_file ;;
42921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42923 | --c=*)
42924 ;;
42925 --config-cache | -C)
42926 ;;
42927 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42928 ac_prev=srcdir ;;
42929 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42930 ;;
42931 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42932 ac_prev=prefix ;;
42933 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42934 ;;
42935 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42936 esac
42937 done
42938
42939 # Always prepend --prefix to ensure using the same prefix
42940 # in subdir configurations.
42941 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42942
42943 ac_popdir=`pwd`
42944 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42945
42946 # Do not complain, so a configure script can configure whichever
42947 # parts of a large source tree are present.
42948 test -d $srcdir/$ac_dir || continue
42949
42950 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42951echo "$as_me: configuring in $ac_dir" >&6;}
42952 { if $as_mkdir_p; then
42953 mkdir -p "$ac_dir"
42954 else
42955 as_dir="$ac_dir"
42956 as_dirs=
42957 while test ! -d "$as_dir"; do
42958 as_dirs="$as_dir $as_dirs"
42959 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42961 X"$as_dir" : 'X\(//\)[^/]' \| \
42962 X"$as_dir" : 'X\(//\)$' \| \
42963 X"$as_dir" : 'X\(/\)' \| \
42964 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42965echo X"$as_dir" |
42966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42968 /^X\(\/\/\)$/{ s//\1/; q; }
42969 /^X\(\/\).*/{ s//\1/; q; }
42970 s/.*/./; q'`
42971 done
42972 test ! -n "$as_dirs" || mkdir $as_dirs
42973 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42974echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42975 { (exit 1); exit 1; }; }; }
42976
42977 ac_builddir=.
42978
42979if test "$ac_dir" != .; then
42980 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42981 # A "../" for each directory in $ac_dir_suffix.
42982 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42983else
42984 ac_dir_suffix= ac_top_builddir=
42985fi
42986
42987case $srcdir in
42988 .) # No --srcdir option. We are building in place.
42989 ac_srcdir=.
42990 if test -z "$ac_top_builddir"; then
42991 ac_top_srcdir=.
42992 else
42993 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42994 fi ;;
42995 [\\/]* | ?:[\\/]* ) # Absolute path.
42996 ac_srcdir=$srcdir$ac_dir_suffix;
42997 ac_top_srcdir=$srcdir ;;
42998 *) # Relative path.
42999 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43000 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43001esac
ac1cb8d3
VS
43002
43003# Do not use `cd foo && pwd` to compute absolute paths, because
43004# the directories may not exist.
43005case `pwd` in
43006.) ac_abs_builddir="$ac_dir";;
43007*)
43008 case "$ac_dir" in
43009 .) ac_abs_builddir=`pwd`;;
43010 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43011 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43012 esac;;
43013esac
43014case $ac_abs_builddir in
43015.) ac_abs_top_builddir=${ac_top_builddir}.;;
43016*)
43017 case ${ac_top_builddir}. in
43018 .) ac_abs_top_builddir=$ac_abs_builddir;;
43019 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43020 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43021 esac;;
43022esac
43023case $ac_abs_builddir in
43024.) ac_abs_srcdir=$ac_srcdir;;
43025*)
43026 case $ac_srcdir in
43027 .) ac_abs_srcdir=$ac_abs_builddir;;
43028 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43029 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43030 esac;;
43031esac
43032case $ac_abs_builddir in
43033.) ac_abs_top_srcdir=$ac_top_srcdir;;
43034*)
43035 case $ac_top_srcdir in
43036 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43037 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43038 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43039 esac;;
43040esac
a848cd7e
SC
43041
43042
43043 cd $ac_dir
43044
43045 # Check for guested configure; otherwise get Cygnus style configure.
43046 if test -f $ac_srcdir/configure.gnu; then
43047 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43048 elif test -f $ac_srcdir/configure; then
43049 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43050 elif test -f $ac_srcdir/configure.in; then
43051 ac_sub_configure=$ac_configure
43052 else
43053 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43054echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43055 ac_sub_configure=
43056 fi
43057
43058 # The recursion is here.
43059 if test -n "$ac_sub_configure"; then
43060 # Make the cache file name correct relative to the subdirectory.
43061 case $cache_file in
43062 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43063 *) # Relative path.
ac1cb8d3 43064 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43065 esac
43066
43067 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43068echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43069 # The eval makes quoting arguments work.
43070 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43071 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43072 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43073echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43074 { (exit 1); exit 1; }; }
43075 fi
43076
ea7db9ff 43077 cd $ac_popdir
a848cd7e
SC
43078 done
43079fi
43080
43081
43082echo
77ffb593 43083echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43084echo ""
77ffb593
JS
43085echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}"
43086echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43087
77ffb593
JS
43088echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43089echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43090echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43091
77ffb593
JS
43092echo " What level of wxWidgets compatibility should be enabled?"
43093echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43094echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43095
77ffb593 43096echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43097echo " jpeg ${wxUSE_LIBJPEG-none}"
43098echo " png ${wxUSE_LIBPNG-none}"
43099echo " regex ${wxUSE_REGEX}"
43100echo " tiff ${wxUSE_LIBTIFF-none}"
43101if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43102echo " xpm ${wxUSE_LIBXPM-none}"
43103fi
43104echo " zlib ${wxUSE_ZLIB}"
43105echo " odbc ${wxUSE_ODBC}"
43106echo " expat ${wxUSE_EXPAT}"
43107echo " libmspack ${wxUSE_LIBMSPACK}"
43108echo " sdl ${wxUSE_LIBSDL}"
43109
43110echo ""
43111